🚀New lib version [CI SKIP]

This commit is contained in:
2023-02-02 09:42:58 +00:00
parent b3676087f2
commit fa42e1085f
220 changed files with 551 additions and 554 deletions

View File

@@ -20,25 +20,25 @@ export declare class AuthService {
* * access token (use it as a bearer token)
* * refresh token (will also be sent as a cookie)
* @param requestBody CreateAuth
* @returns any
* @result any
* @throws ApiError
*/
static authControllerLogin(requestBody?: CreateAuth): Promise<(ResponseAuth | InvalidCredentialsError | UserNotFoundError | UsernameOrEmailNeededError | PasswordNeededError)>;
static authControllerLogin(requestBody?: CreateAuth): Promise<(ResponseAuth | InvalidCredentialsError | UserNotFoundError | UsernameOrEmailNeededError | PasswordNeededError | InvalidCredentialsError)>;
/**
* Logout
* Logout using your refresh token. <br> This instantly invalidates all your access and refresh tokens.
* @param requestBody HandleLogout
* @returns any
* @result any
* @throws ApiError
*/
static authControllerLogout(requestBody?: HandleLogout): Promise<(Logout | InvalidCredentialsError | UserNotFoundError | UsernameOrEmailNeededError | PasswordNeededError)>;
static authControllerLogout(requestBody?: HandleLogout): Promise<(Logout | InvalidCredentialsError | UserNotFoundError | UsernameOrEmailNeededError | PasswordNeededError | InvalidCredentialsError)>;
/**
* Refresh
* Refresh your access and refresh tokens using a valid refresh token. <br> You will receive:
* * access token (use it as a bearer token)
* * refresh token (will also be sent as a cookie)
* @param requestBody RefreshAuth
* @returns any
* @result any
* @throws ApiError
*/
static authControllerRefresh(requestBody?: RefreshAuth): Promise<(ResponseAuth | JwtNotProvidedError | IllegalJWTError | UserNotFoundError | RefreshTokenCountInvalidError)>;
@@ -47,7 +47,7 @@ export declare class AuthService {
* Request a password reset token. <br> This will provide you with a reset token that you can use by posting to /api/auth/reset/{token}.
* @param locale
* @param requestBody CreateResetToken
* @returns ResponseEmpty
* @result ResponseEmpty
* @throws ApiError
*/
static authControllerGetResetToken(locale?: string, requestBody?: CreateResetToken): Promise<ResponseEmpty>;
@@ -56,7 +56,7 @@ export declare class AuthService {
* Reset a user's utilising a valid password reset token. <br> This will set the user's password to the one you provided in the body. <br> To get a reset token post to /api/auth/reset with your username.
* @param token
* @param requestBody ResetPassword
* @returns any
* @result any
* @throws ApiError
*/
static authControllerResetPassword(token: string, requestBody?: ResetPassword): Promise<(ResponseAuth | UserNotFoundError | UsernameOrEmailNeededError)>;

View File

@@ -9,11 +9,11 @@ class AuthService {
* * access token (use it as a bearer token)
* * refresh token (will also be sent as a cookie)
* @param requestBody CreateAuth
* @returns any
* @result any
* @throws ApiError
*/
static async authControllerLogin(requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'POST',
path: `/api/auth/login`,
body: requestBody,
@@ -24,11 +24,11 @@ class AuthService {
* Logout
* Logout using your refresh token. <br> This instantly invalidates all your access and refresh tokens.
* @param requestBody HandleLogout
* @returns any
* @result any
* @throws ApiError
*/
static async authControllerLogout(requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'POST',
path: `/api/auth/logout`,
body: requestBody,
@@ -41,11 +41,11 @@ class AuthService {
* * access token (use it as a bearer token)
* * refresh token (will also be sent as a cookie)
* @param requestBody RefreshAuth
* @returns any
* @result any
* @throws ApiError
*/
static async authControllerRefresh(requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'POST',
path: `/api/auth/refresh`,
body: requestBody,
@@ -57,11 +57,11 @@ class AuthService {
* Request a password reset token. <br> This will provide you with a reset token that you can use by posting to /api/auth/reset/{token}.
* @param locale
* @param requestBody CreateResetToken
* @returns ResponseEmpty
* @result ResponseEmpty
* @throws ApiError
*/
static async authControllerGetResetToken(locale, requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'POST',
path: `/api/auth/reset`,
query: {
@@ -76,11 +76,11 @@ class AuthService {
* Reset a user's utilising a valid password reset token. <br> This will set the user's password to the one you provided in the body. <br> To get a reset token post to /api/auth/reset with your username.
* @param token
* @param requestBody ResetPassword
* @returns any
* @result any
* @throws ApiError
*/
static async authControllerResetPassword(token, requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'POST',
path: `/api/auth/reset/${token}`,
body: requestBody,

View File

@@ -9,7 +9,7 @@ export declare class DonationService {
/**
* Get all
* Lists all donations (fixed or distance based) from all donors. <br> This includes the donations's runner's distance ran(if distance donation).
* @returns any
* @result any
* @throws ApiError
*/
static donationControllerGetAll(): Promise<(Array<ResponseDonation> | Array<ResponseDistanceDonation>)>;
@@ -17,7 +17,7 @@ export declare class DonationService {
* Get one
* Lists all information about the donation whose id got provided. This includes the donation's runner's distance ran (if distance donation).
* @param id
* @returns any
* @result any
* @throws ApiError
*/
static donationControllerGetOne(id: number): Promise<(ResponseDonation | ResponseDistanceDonation)>;
@@ -26,8 +26,8 @@ export declare class DonationService {
* Delete the donation whose id you provided. <br> If no donation with this id exists it will just return 204(no content).
* @param id
* @param force
* @returns any
* @returns ResponseEmpty
* @result any
* @result ResponseEmpty
* @throws ApiError
*/
static donationControllerRemove(id: number, force?: boolean): Promise<(ResponseDonation | ResponseDistanceDonation) | ResponseEmpty>;
@@ -35,7 +35,7 @@ export declare class DonationService {
* Post fixed
* Create a fixed donation (not distance donation - use /donations/distance instead). <br> Please rmemember to provide the donation's donors's id and amount.
* @param requestBody CreateFixedDonation
* @returns ResponseDonation
* @result ResponseDonation
* @throws ApiError
*/
static donationControllerPostFixed(requestBody?: CreateFixedDonation): Promise<ResponseDonation>;
@@ -43,7 +43,7 @@ export declare class DonationService {
* Post distance
* Create a distance donation (not fixed donation - use /donations/fixed instead). <br> Please rmemember to provide the donation's donors's and runners ids and amount per distance (kilometer).
* @param requestBody CreateDistanceDonation
* @returns ResponseDistanceDonation
* @result ResponseDistanceDonation
* @throws ApiError
*/
static donationControllerPostDistance(requestBody?: CreateDistanceDonation): Promise<ResponseDistanceDonation>;
@@ -52,7 +52,7 @@ export declare class DonationService {
* Update the fixed donation (not distance donation - use /donations/distance instead) whose id you provided. <br> Please remember that ids can't be changed and amounts must be positive.
* @param id
* @param requestBody UpdateFixedDonation
* @returns ResponseDonation
* @result ResponseDonation
* @throws ApiError
*/
static donationControllerPutFixed(id: number, requestBody?: UpdateFixedDonation): Promise<ResponseDonation>;
@@ -61,7 +61,7 @@ export declare class DonationService {
* Update the distance donation (not fixed donation - use /donations/fixed instead) whose id you provided. <br> Please remember that ids can't be changed and amountPerDistance must be positive.
* @param id
* @param requestBody UpdateDistanceDonation
* @returns ResponseDonation
* @result ResponseDonation
* @throws ApiError
*/
static donationControllerPutDistance(id: number, requestBody?: UpdateDistanceDonation): Promise<ResponseDonation>;

View File

@@ -6,11 +6,11 @@ class DonationService {
/**
* Get all
* Lists all donations (fixed or distance based) from all donors. <br> This includes the donations's runner's distance ran(if distance donation).
* @returns any
* @result any
* @throws ApiError
*/
static async donationControllerGetAll() {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/donations`,
});
@@ -20,11 +20,11 @@ class DonationService {
* Get one
* Lists all information about the donation whose id got provided. This includes the donation's runner's distance ran (if distance donation).
* @param id
* @returns any
* @result any
* @throws ApiError
*/
static async donationControllerGetOne(id) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/donations/${id}`,
});
@@ -35,12 +35,12 @@ class DonationService {
* Delete the donation whose id you provided. <br> If no donation with this id exists it will just return 204(no content).
* @param id
* @param force
* @returns any
* @returns ResponseEmpty
* @result any
* @result ResponseEmpty
* @throws ApiError
*/
static async donationControllerRemove(id, force) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'DELETE',
path: `/api/donations/${id}`,
query: {
@@ -53,11 +53,11 @@ class DonationService {
* Post fixed
* Create a fixed donation (not distance donation - use /donations/distance instead). <br> Please rmemember to provide the donation's donors's id and amount.
* @param requestBody CreateFixedDonation
* @returns ResponseDonation
* @result ResponseDonation
* @throws ApiError
*/
static async donationControllerPostFixed(requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'POST',
path: `/api/donations/fixed`,
body: requestBody,
@@ -68,11 +68,11 @@ class DonationService {
* Post distance
* Create a distance donation (not fixed donation - use /donations/fixed instead). <br> Please rmemember to provide the donation's donors's and runners ids and amount per distance (kilometer).
* @param requestBody CreateDistanceDonation
* @returns ResponseDistanceDonation
* @result ResponseDistanceDonation
* @throws ApiError
*/
static async donationControllerPostDistance(requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'POST',
path: `/api/donations/distance`,
body: requestBody,
@@ -84,11 +84,11 @@ class DonationService {
* Update the fixed donation (not distance donation - use /donations/distance instead) whose id you provided. <br> Please remember that ids can't be changed and amounts must be positive.
* @param id
* @param requestBody UpdateFixedDonation
* @returns ResponseDonation
* @result ResponseDonation
* @throws ApiError
*/
static async donationControllerPutFixed(id, requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'PUT',
path: `/api/donations/fixed/${id}`,
body: requestBody,
@@ -100,11 +100,11 @@ class DonationService {
* Update the distance donation (not fixed donation - use /donations/fixed instead) whose id you provided. <br> Please remember that ids can't be changed and amountPerDistance must be positive.
* @param id
* @param requestBody UpdateDistanceDonation
* @returns ResponseDonation
* @result ResponseDonation
* @throws ApiError
*/
static async donationControllerPutDistance(id, requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'PUT',
path: `/api/donations/distance/${id}`,
body: requestBody,

View File

@@ -6,7 +6,7 @@ export declare class DonorService {
/**
* Get all
* Lists all donor. <br> This includes the donor's current donation amount.
* @returns ResponseDonor
* @result ResponseDonor
* @throws ApiError
*/
static donorControllerGetAll(): Promise<Array<ResponseDonor>>;
@@ -14,7 +14,7 @@ export declare class DonorService {
* Post
* Create a new donor.
* @param requestBody CreateDonor
* @returns ResponseDonor
* @result ResponseDonor
* @throws ApiError
*/
static donorControllerPost(requestBody?: CreateDonor): Promise<ResponseDonor>;
@@ -22,7 +22,7 @@ export declare class DonorService {
* Get one
* Lists all information about the donor whose id got provided. <br> This includes the donor's current donation amount.
* @param id
* @returns ResponseDonor
* @result ResponseDonor
* @throws ApiError
*/
static donorControllerGetOne(id: number): Promise<ResponseDonor>;
@@ -31,7 +31,7 @@ export declare class DonorService {
* Update the donor whose id you provided. <br> Please remember that ids can't be changed.
* @param id
* @param requestBody UpdateDonor
* @returns ResponseDonor
* @result ResponseDonor
* @throws ApiError
*/
static donorControllerPut(id: number, requestBody?: UpdateDonor): Promise<ResponseDonor>;
@@ -40,8 +40,8 @@ export declare class DonorService {
* Delete the donor whose id you provided. <br> If no donor with this id exists it will just return 204(no content). <br> If the donor still has donations associated this will fail, please provide the query param ?force=true to delete the donor with all associated donations.
* @param id
* @param force
* @returns ResponseDonor
* @returns ResponseEmpty
* @result ResponseDonor
* @result ResponseEmpty
* @throws ApiError
*/
static donorControllerRemove(id: number, force?: boolean): Promise<ResponseDonor | ResponseEmpty>;

View File

@@ -6,11 +6,11 @@ class DonorService {
/**
* Get all
* Lists all donor. <br> This includes the donor's current donation amount.
* @returns ResponseDonor
* @result ResponseDonor
* @throws ApiError
*/
static async donorControllerGetAll() {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/donors`,
});
@@ -20,11 +20,11 @@ class DonorService {
* Post
* Create a new donor.
* @param requestBody CreateDonor
* @returns ResponseDonor
* @result ResponseDonor
* @throws ApiError
*/
static async donorControllerPost(requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'POST',
path: `/api/donors`,
body: requestBody,
@@ -35,11 +35,11 @@ class DonorService {
* Get one
* Lists all information about the donor whose id got provided. <br> This includes the donor's current donation amount.
* @param id
* @returns ResponseDonor
* @result ResponseDonor
* @throws ApiError
*/
static async donorControllerGetOne(id) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/donors/${id}`,
});
@@ -50,11 +50,11 @@ class DonorService {
* Update the donor whose id you provided. <br> Please remember that ids can't be changed.
* @param id
* @param requestBody UpdateDonor
* @returns ResponseDonor
* @result ResponseDonor
* @throws ApiError
*/
static async donorControllerPut(id, requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'PUT',
path: `/api/donors/${id}`,
body: requestBody,
@@ -66,12 +66,12 @@ class DonorService {
* Delete the donor whose id you provided. <br> If no donor with this id exists it will just return 204(no content). <br> If the donor still has donations associated this will fail, please provide the query param ?force=true to delete the donor with all associated donations.
* @param id
* @param force
* @returns ResponseDonor
* @returns ResponseEmpty
* @result ResponseDonor
* @result ResponseEmpty
* @throws ApiError
*/
static async donorControllerRemove(id, force) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'DELETE',
path: `/api/donors/${id}`,
query: {

View File

@@ -6,7 +6,7 @@ export declare class GroupContactService {
/**
* Get all
* Lists all contacts. <br> This includes the contact's associated groups.
* @returns ResponseGroupContact
* @result ResponseGroupContact
* @throws ApiError
*/
static groupContactControllerGetAll(): Promise<Array<ResponseGroupContact>>;
@@ -14,7 +14,7 @@ export declare class GroupContactService {
* Post
* Create a new contact.
* @param requestBody CreateGroupContact
* @returns ResponseGroupContact
* @result ResponseGroupContact
* @throws ApiError
*/
static groupContactControllerPost(requestBody?: CreateGroupContact): Promise<ResponseGroupContact>;
@@ -22,7 +22,7 @@ export declare class GroupContactService {
* Get one
* Lists all information about the contact whose id got provided. <br> This includes the contact's associated groups.
* @param id
* @returns ResponseGroupContact
* @result ResponseGroupContact
* @throws ApiError
*/
static groupContactControllerGetOne(id: number): Promise<ResponseGroupContact>;
@@ -31,7 +31,7 @@ export declare class GroupContactService {
* Update the contact whose id you provided. <br> Please remember that ids can't be changed.
* @param id
* @param requestBody UpdateGroupContact
* @returns ResponseGroupContact
* @result ResponseGroupContact
* @throws ApiError
*/
static groupContactControllerPut(id: number, requestBody?: UpdateGroupContact): Promise<ResponseGroupContact>;
@@ -40,8 +40,8 @@ export declare class GroupContactService {
* Delete the contact whose id you provided. <br> If no contact with this id exists it will just return 204(no content). <br> This won't delete any groups associated with the contact.
* @param id
* @param force
* @returns ResponseGroupContact
* @returns ResponseEmpty
* @result ResponseGroupContact
* @result ResponseEmpty
* @throws ApiError
*/
static groupContactControllerRemove(id: number, force?: boolean): Promise<ResponseGroupContact | ResponseEmpty>;

View File

@@ -6,11 +6,11 @@ class GroupContactService {
/**
* Get all
* Lists all contacts. <br> This includes the contact's associated groups.
* @returns ResponseGroupContact
* @result ResponseGroupContact
* @throws ApiError
*/
static async groupContactControllerGetAll() {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/contacts`,
});
@@ -20,11 +20,11 @@ class GroupContactService {
* Post
* Create a new contact.
* @param requestBody CreateGroupContact
* @returns ResponseGroupContact
* @result ResponseGroupContact
* @throws ApiError
*/
static async groupContactControllerPost(requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'POST',
path: `/api/contacts`,
body: requestBody,
@@ -35,11 +35,11 @@ class GroupContactService {
* Get one
* Lists all information about the contact whose id got provided. <br> This includes the contact's associated groups.
* @param id
* @returns ResponseGroupContact
* @result ResponseGroupContact
* @throws ApiError
*/
static async groupContactControllerGetOne(id) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/contacts/${id}`,
});
@@ -50,11 +50,11 @@ class GroupContactService {
* Update the contact whose id you provided. <br> Please remember that ids can't be changed.
* @param id
* @param requestBody UpdateGroupContact
* @returns ResponseGroupContact
* @result ResponseGroupContact
* @throws ApiError
*/
static async groupContactControllerPut(id, requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'PUT',
path: `/api/contacts/${id}`,
body: requestBody,
@@ -66,12 +66,12 @@ class GroupContactService {
* Delete the contact whose id you provided. <br> If no contact with this id exists it will just return 204(no content). <br> This won't delete any groups associated with the contact.
* @param id
* @param force
* @returns ResponseGroupContact
* @returns ResponseEmpty
* @result ResponseGroupContact
* @result ResponseEmpty
* @throws ApiError
*/
static async groupContactControllerRemove(id, force) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'DELETE',
path: `/api/contacts/${id}`,
query: {

View File

@@ -6,7 +6,7 @@ export declare class ImportService {
* Create new runners from json and insert them into the provided group. <br> If teams/classes are provided alongside the runner's name they'll automaticly be created under the provided org and the runners will be inserted into the teams instead.
* @param group
* @param requestBody ImportRunner
* @returns ResponseRunner
* @result ResponseRunner
* @throws ApiError
*/
static importControllerPostJson(group?: number, requestBody?: Array<ImportRunner>): Promise<Array<ResponseRunner>>;
@@ -15,7 +15,7 @@ export declare class ImportService {
* Create new runners from json and insert them into the provided org. <br> If teams/classes are provided alongside the runner's name they'll automaticly be created under the provided org and the runners will be inserted into the teams instead.
* @param id
* @param requestBody ImportRunner
* @returns ResponseRunner
* @result ResponseRunner
* @throws ApiError
*/
static importControllerPostOrgsJson(id: number, requestBody?: Array<ImportRunner>): Promise<Array<ResponseRunner>>;
@@ -24,7 +24,7 @@ export declare class ImportService {
* Create new runners from json and insert them into the provided team
* @param id
* @param requestBody ImportRunner
* @returns ResponseRunner
* @result ResponseRunner
* @throws ApiError
*/
static importControllerPostTeamsJson(id: number, requestBody?: Array<ImportRunner>): Promise<Array<ResponseRunner>>;
@@ -32,7 +32,7 @@ export declare class ImportService {
* Post csv
* Create new runners from csv and insert them into the provided group. <br> If teams/classes are provided alongside the runner's name they'll automaticly be created under the provided org and the runners will be inserted into the teams instead.
* @param group
* @returns ResponseRunner
* @result ResponseRunner
* @throws ApiError
*/
static importControllerPostCsv(group?: number): Promise<Array<ResponseRunner>>;
@@ -40,7 +40,7 @@ export declare class ImportService {
* Post orgs csv
* Create new runners from csv and insert them into the provided org. <br> If teams/classes are provided alongside the runner's name they'll automaticly be created under the provided org and the runners will be inserted into the teams instead.
* @param id
* @returns ResponseRunner
* @result ResponseRunner
* @throws ApiError
*/
static importControllerPostOrgsCsv(id: number): Promise<Array<ResponseRunner>>;
@@ -48,7 +48,7 @@ export declare class ImportService {
* Post teams csv
* Create new runners from csv and insert them into the provided team
* @param id
* @returns ResponseRunner
* @result ResponseRunner
* @throws ApiError
*/
static importControllerPostTeamsCsv(id: number): Promise<Array<ResponseRunner>>;

View File

@@ -8,11 +8,11 @@ class ImportService {
* Create new runners from json and insert them into the provided group. <br> If teams/classes are provided alongside the runner's name they'll automaticly be created under the provided org and the runners will be inserted into the teams instead.
* @param group
* @param requestBody ImportRunner
* @returns ResponseRunner
* @result ResponseRunner
* @throws ApiError
*/
static async importControllerPostJson(group, requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'POST',
path: `/api/runners/import`,
query: {
@@ -27,11 +27,11 @@ class ImportService {
* Create new runners from json and insert them into the provided org. <br> If teams/classes are provided alongside the runner's name they'll automaticly be created under the provided org and the runners will be inserted into the teams instead.
* @param id
* @param requestBody ImportRunner
* @returns ResponseRunner
* @result ResponseRunner
* @throws ApiError
*/
static async importControllerPostOrgsJson(id, requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'POST',
path: `/api/organizations/${id}/import`,
body: requestBody,
@@ -43,11 +43,11 @@ class ImportService {
* Create new runners from json and insert them into the provided team
* @param id
* @param requestBody ImportRunner
* @returns ResponseRunner
* @result ResponseRunner
* @throws ApiError
*/
static async importControllerPostTeamsJson(id, requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'POST',
path: `/api/teams/${id}/import`,
body: requestBody,
@@ -58,11 +58,11 @@ class ImportService {
* Post csv
* Create new runners from csv and insert them into the provided group. <br> If teams/classes are provided alongside the runner's name they'll automaticly be created under the provided org and the runners will be inserted into the teams instead.
* @param group
* @returns ResponseRunner
* @result ResponseRunner
* @throws ApiError
*/
static async importControllerPostCsv(group) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'POST',
path: `/api/runners/import/csv`,
query: {
@@ -75,11 +75,11 @@ class ImportService {
* Post orgs csv
* Create new runners from csv and insert them into the provided org. <br> If teams/classes are provided alongside the runner's name they'll automaticly be created under the provided org and the runners will be inserted into the teams instead.
* @param id
* @returns ResponseRunner
* @result ResponseRunner
* @throws ApiError
*/
static async importControllerPostOrgsCsv(id) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'POST',
path: `/api/organizations/${id}/import/csv`,
});
@@ -89,11 +89,11 @@ class ImportService {
* Post teams csv
* Create new runners from csv and insert them into the provided team
* @param id
* @returns ResponseRunner
* @result ResponseRunner
* @throws ApiError
*/
static async importControllerPostTeamsCsv(id) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'POST',
path: `/api/teams/${id}/import/csv`,
});

View File

@@ -5,7 +5,7 @@ export declare class MeService {
/**
* Get
* Lists all information about yourself.
* @returns ResponseUser
* @result ResponseUser
* @throws ApiError
*/
static meControllerGet(): Promise<ResponseUser>;
@@ -13,7 +13,7 @@ export declare class MeService {
* Put
* Update the yourself. <br> You can't edit your own permissions or group memberships here - Please use the /api/users/:id enpoint instead. <br> Please remember that ids can't be changed.
* @param requestBody UpdateUser
* @returns ResponseUser
* @result ResponseUser
* @throws ApiError
*/
static meControllerPut(requestBody?: UpdateUser): Promise<ResponseUser>;
@@ -21,14 +21,14 @@ export declare class MeService {
* Remove
* Delete yourself. <br> You have to confirm your decision by providing the ?force=true query param. <br> If there are any permissions directly granted to you they will get deleted as well.
* @param force
* @returns ResponseUser
* @result ResponseUser
* @throws ApiError
*/
static meControllerRemove(force?: boolean): Promise<ResponseUser>;
/**
* Get permissions
* Lists all permissions granted to the you sorted into directly granted and inherited as permission response objects.
* @returns ResponseUserPermissions
* @result ResponseUserPermissions
* @throws ApiError
*/
static meControllerGetPermissions(): Promise<ResponseUserPermissions>;

View File

@@ -6,11 +6,11 @@ class MeService {
/**
* Get
* Lists all information about yourself.
* @returns ResponseUser
* @result ResponseUser
* @throws ApiError
*/
static async meControllerGet() {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/users/me/`,
});
@@ -20,11 +20,11 @@ class MeService {
* Put
* Update the yourself. <br> You can't edit your own permissions or group memberships here - Please use the /api/users/:id enpoint instead. <br> Please remember that ids can't be changed.
* @param requestBody UpdateUser
* @returns ResponseUser
* @result ResponseUser
* @throws ApiError
*/
static async meControllerPut(requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'PUT',
path: `/api/users/me/`,
body: requestBody,
@@ -35,11 +35,11 @@ class MeService {
* Remove
* Delete yourself. <br> You have to confirm your decision by providing the ?force=true query param. <br> If there are any permissions directly granted to you they will get deleted as well.
* @param force
* @returns ResponseUser
* @result ResponseUser
* @throws ApiError
*/
static async meControllerRemove(force) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'DELETE',
path: `/api/users/me/`,
query: {
@@ -51,11 +51,11 @@ class MeService {
/**
* Get permissions
* Lists all permissions granted to the you sorted into directly granted and inherited as permission response objects.
* @returns ResponseUserPermissions
* @result ResponseUserPermissions
* @throws ApiError
*/
static async meControllerGetPermissions() {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/users/me/permissions`,
});

View File

@@ -7,7 +7,7 @@ export declare class PermissionService {
/**
* Get all
* Lists all permissions for all users and groups.
* @returns ResponsePermission
* @result ResponsePermission
* @throws ApiError
*/
static permissionControllerGetAll(): Promise<Array<ResponsePermission>>;
@@ -15,7 +15,7 @@ export declare class PermissionService {
* Post
* Create a new permission for a existing principal(user/group). <br> If a permission with this target, action and prinicpal already exists that permission will be returned instead of creating a new one.
* @param requestBody CreatePermission
* @returns ResponsePermission
* @result ResponsePermission
* @throws ApiError
*/
static permissionControllerPost(requestBody?: CreatePermission): Promise<ResponsePermission>;
@@ -23,7 +23,7 @@ export declare class PermissionService {
* Get one
* Lists all information about the permission whose id got provided.
* @param id
* @returns ResponsePermission
* @result ResponsePermission
* @throws ApiError
*/
static permissionControllerGetOne(id: number): Promise<ResponsePermission>;
@@ -32,7 +32,7 @@ export declare class PermissionService {
* Update a permission object. <br> If updateing the permission object would result in duplicate permission (same target, action and principal) this permission will get deleted and the existing permission will be returned. <br> Please remember that ids can't be changed.
* @param id
* @param requestBody UpdatePermission
* @returns ResponsePrincipal
* @result ResponsePrincipal
* @throws ApiError
*/
static permissionControllerPut(id: number, requestBody?: UpdatePermission): Promise<ResponsePrincipal>;
@@ -41,8 +41,8 @@ export declare class PermissionService {
* Deletes the permission whose id you provide. <br> If no permission with this id exists it will just return 204(no content).
* @param id
* @param force
* @returns ResponsePermission
* @returns ResponseEmpty
* @result ResponsePermission
* @result ResponseEmpty
* @throws ApiError
*/
static permissionControllerRemove(id: number, force?: boolean): Promise<ResponsePermission | ResponseEmpty>;

View File

@@ -6,11 +6,11 @@ class PermissionService {
/**
* Get all
* Lists all permissions for all users and groups.
* @returns ResponsePermission
* @result ResponsePermission
* @throws ApiError
*/
static async permissionControllerGetAll() {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/permissions`,
});
@@ -20,11 +20,11 @@ class PermissionService {
* Post
* Create a new permission for a existing principal(user/group). <br> If a permission with this target, action and prinicpal already exists that permission will be returned instead of creating a new one.
* @param requestBody CreatePermission
* @returns ResponsePermission
* @result ResponsePermission
* @throws ApiError
*/
static async permissionControllerPost(requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'POST',
path: `/api/permissions`,
body: requestBody,
@@ -35,11 +35,11 @@ class PermissionService {
* Get one
* Lists all information about the permission whose id got provided.
* @param id
* @returns ResponsePermission
* @result ResponsePermission
* @throws ApiError
*/
static async permissionControllerGetOne(id) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/permissions/${id}`,
});
@@ -50,11 +50,11 @@ class PermissionService {
* Update a permission object. <br> If updateing the permission object would result in duplicate permission (same target, action and principal) this permission will get deleted and the existing permission will be returned. <br> Please remember that ids can't be changed.
* @param id
* @param requestBody UpdatePermission
* @returns ResponsePrincipal
* @result ResponsePrincipal
* @throws ApiError
*/
static async permissionControllerPut(id, requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'PUT',
path: `/api/permissions/${id}`,
body: requestBody,
@@ -66,12 +66,12 @@ class PermissionService {
* Deletes the permission whose id you provide. <br> If no permission with this id exists it will just return 204(no content).
* @param id
* @param force
* @returns ResponsePermission
* @returns ResponseEmpty
* @result ResponsePermission
* @result ResponseEmpty
* @throws ApiError
*/
static async permissionControllerRemove(id, force) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'DELETE',
path: `/api/permissions/${id}`,
query: {

View File

@@ -6,7 +6,7 @@ export declare class RunnerCardService {
/**
* Get all
* Lists all card.
* @returns ResponseRunnerCard
* @result ResponseRunnerCard
* @throws ApiError
*/
static runnerCardControllerGetAll(): Promise<Array<ResponseRunnerCard>>;
@@ -14,7 +14,7 @@ export declare class RunnerCardService {
* Post
* Create a new card. <br> You can provide a associated runner by id but you don't have to.
* @param requestBody CreateRunnerCard
* @returns ResponseRunnerCard
* @result ResponseRunnerCard
* @throws ApiError
*/
static runnerCardControllerPost(requestBody?: CreateRunnerCard): Promise<ResponseRunnerCard>;
@@ -22,7 +22,7 @@ export declare class RunnerCardService {
* Get one
* Lists all information about the card whose id got provided.
* @param id
* @returns ResponseRunnerCard
* @result ResponseRunnerCard
* @throws ApiError
*/
static runnerCardControllerGetOne(id: number): Promise<ResponseRunnerCard>;
@@ -31,7 +31,7 @@ export declare class RunnerCardService {
* Update the card whose id you provided. <br> Scans created via this card will still be associated with the old runner. <br> Please remember that ids can't be changed.
* @param id
* @param requestBody UpdateRunnerCard
* @returns ResponseRunnerCard
* @result ResponseRunnerCard
* @throws ApiError
*/
static runnerCardControllerPut(id: number, requestBody?: UpdateRunnerCard): Promise<ResponseRunnerCard>;
@@ -40,8 +40,8 @@ export declare class RunnerCardService {
* Delete the card whose id you provided. <br> If no card with this id exists it will just return 204(no content). <br> If the card still has scans associated you have to provide the force=true query param (warning: this deletes all scans associated with by this card - please disable it instead or just remove the runner association).
* @param id
* @param force
* @returns ResponseRunnerCard
* @returns ResponseEmpty
* @result ResponseRunnerCard
* @result ResponseEmpty
* @throws ApiError
*/
static runnerCardControllerRemove(id: number, force?: boolean): Promise<ResponseRunnerCard | ResponseEmpty>;
@@ -50,7 +50,7 @@ export declare class RunnerCardService {
* Create blank cards in bulk. <br> Just provide the count as a query param and wait for the 200 response. <br> You can provide the 'returnCards' query param if you want to receive the RESPONSERUNNERCARD objects in the response.
* @param count
* @param returnCards
* @returns ResponseEmpty
* @result ResponseEmpty
* @throws ApiError
*/
static runnerCardControllerPostBlancoBulk(count?: number, returnCards?: boolean): Promise<ResponseEmpty>;

View File

@@ -6,11 +6,11 @@ class RunnerCardService {
/**
* Get all
* Lists all card.
* @returns ResponseRunnerCard
* @result ResponseRunnerCard
* @throws ApiError
*/
static async runnerCardControllerGetAll() {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/cards`,
});
@@ -20,11 +20,11 @@ class RunnerCardService {
* Post
* Create a new card. <br> You can provide a associated runner by id but you don't have to.
* @param requestBody CreateRunnerCard
* @returns ResponseRunnerCard
* @result ResponseRunnerCard
* @throws ApiError
*/
static async runnerCardControllerPost(requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'POST',
path: `/api/cards`,
body: requestBody,
@@ -35,11 +35,11 @@ class RunnerCardService {
* Get one
* Lists all information about the card whose id got provided.
* @param id
* @returns ResponseRunnerCard
* @result ResponseRunnerCard
* @throws ApiError
*/
static async runnerCardControllerGetOne(id) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/cards/${id}`,
});
@@ -50,11 +50,11 @@ class RunnerCardService {
* Update the card whose id you provided. <br> Scans created via this card will still be associated with the old runner. <br> Please remember that ids can't be changed.
* @param id
* @param requestBody UpdateRunnerCard
* @returns ResponseRunnerCard
* @result ResponseRunnerCard
* @throws ApiError
*/
static async runnerCardControllerPut(id, requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'PUT',
path: `/api/cards/${id}`,
body: requestBody,
@@ -66,12 +66,12 @@ class RunnerCardService {
* Delete the card whose id you provided. <br> If no card with this id exists it will just return 204(no content). <br> If the card still has scans associated you have to provide the force=true query param (warning: this deletes all scans associated with by this card - please disable it instead or just remove the runner association).
* @param id
* @param force
* @returns ResponseRunnerCard
* @returns ResponseEmpty
* @result ResponseRunnerCard
* @result ResponseEmpty
* @throws ApiError
*/
static async runnerCardControllerRemove(id, force) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'DELETE',
path: `/api/cards/${id}`,
query: {
@@ -85,11 +85,11 @@ class RunnerCardService {
* Create blank cards in bulk. <br> Just provide the count as a query param and wait for the 200 response. <br> You can provide the 'returnCards' query param if you want to receive the RESPONSERUNNERCARD objects in the response.
* @param count
* @param returnCards
* @returns ResponseEmpty
* @result ResponseEmpty
* @throws ApiError
*/
static async runnerCardControllerPostBlancoBulk(count, returnCards) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'POST',
path: `/api/cards/bulk`,
query: {

View File

@@ -7,7 +7,7 @@ export declare class RunnerOrganizationService {
/**
* Get all
* Lists all organizations. <br> This includes their address, contact and teams (if existing/associated).
* @returns ResponseRunnerOrganization
* @result ResponseRunnerOrganization
* @throws ApiError
*/
static runnerOrganizationControllerGetAll(): Promise<Array<ResponseRunnerOrganization>>;
@@ -15,7 +15,7 @@ export declare class RunnerOrganizationService {
* Post
* Create a new organsisation.
* @param requestBody CreateRunnerOrganization
* @returns ResponseRunnerOrganization
* @result ResponseRunnerOrganization
* @throws ApiError
*/
static runnerOrganizationControllerPost(requestBody?: CreateRunnerOrganization): Promise<ResponseRunnerOrganization>;
@@ -23,7 +23,7 @@ export declare class RunnerOrganizationService {
* Get one
* Lists all information about the organization whose id got provided.
* @param id
* @returns ResponseRunnerOrganization
* @result ResponseRunnerOrganization
* @throws ApiError
*/
static runnerOrganizationControllerGetOne(id: number): Promise<ResponseRunnerOrganization>;
@@ -32,7 +32,7 @@ export declare class RunnerOrganizationService {
* Update the organization whose id you provided. <br> Please remember that ids can't be changed.
* @param id
* @param requestBody UpdateRunnerOrganization
* @returns ResponseRunnerOrganization
* @result ResponseRunnerOrganization
* @throws ApiError
*/
static runnerOrganizationControllerPut(id: number, requestBody?: UpdateRunnerOrganization): Promise<ResponseRunnerOrganization>;
@@ -41,8 +41,8 @@ export declare class RunnerOrganizationService {
* Delete the organsisation whose id you provided. <br> If the organization still has runners and/or teams associated this will fail. <br> To delete the organization with all associated runners and teams set the force QueryParam to true (cascading deletion might take a while). <br> This won't delete the associated contact. <br> If no organization with this id exists it will just return 204(no content).
* @param id
* @param force
* @returns ResponseRunnerOrganization
* @returns ResponseEmpty
* @result ResponseRunnerOrganization
* @result ResponseEmpty
* @throws ApiError
*/
static runnerOrganizationControllerRemove(id: number, force?: boolean): Promise<ResponseRunnerOrganization | ResponseEmpty>;
@@ -51,7 +51,7 @@ export declare class RunnerOrganizationService {
* Lists all runners from this org and it's teams (if you don't provide the ?onlyDirect=true param). <br> This includes the runner's group and distance ran.
* @param id
* @param onlyDirect
* @returns ResponseRunner
* @result ResponseRunner
* @throws ApiError
*/
static runnerOrganizationControllerGetRunners(id: number, onlyDirect?: boolean): Promise<Array<ResponseRunner>>;

View File

@@ -6,11 +6,11 @@ class RunnerOrganizationService {
/**
* Get all
* Lists all organizations. <br> This includes their address, contact and teams (if existing/associated).
* @returns ResponseRunnerOrganization
* @result ResponseRunnerOrganization
* @throws ApiError
*/
static async runnerOrganizationControllerGetAll() {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/organizations`,
});
@@ -20,11 +20,11 @@ class RunnerOrganizationService {
* Post
* Create a new organsisation.
* @param requestBody CreateRunnerOrganization
* @returns ResponseRunnerOrganization
* @result ResponseRunnerOrganization
* @throws ApiError
*/
static async runnerOrganizationControllerPost(requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'POST',
path: `/api/organizations`,
body: requestBody,
@@ -35,11 +35,11 @@ class RunnerOrganizationService {
* Get one
* Lists all information about the organization whose id got provided.
* @param id
* @returns ResponseRunnerOrganization
* @result ResponseRunnerOrganization
* @throws ApiError
*/
static async runnerOrganizationControllerGetOne(id) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/organizations/${id}`,
});
@@ -50,11 +50,11 @@ class RunnerOrganizationService {
* Update the organization whose id you provided. <br> Please remember that ids can't be changed.
* @param id
* @param requestBody UpdateRunnerOrganization
* @returns ResponseRunnerOrganization
* @result ResponseRunnerOrganization
* @throws ApiError
*/
static async runnerOrganizationControllerPut(id, requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'PUT',
path: `/api/organizations/${id}`,
body: requestBody,
@@ -66,12 +66,12 @@ class RunnerOrganizationService {
* Delete the organsisation whose id you provided. <br> If the organization still has runners and/or teams associated this will fail. <br> To delete the organization with all associated runners and teams set the force QueryParam to true (cascading deletion might take a while). <br> This won't delete the associated contact. <br> If no organization with this id exists it will just return 204(no content).
* @param id
* @param force
* @returns ResponseRunnerOrganization
* @returns ResponseEmpty
* @result ResponseRunnerOrganization
* @result ResponseEmpty
* @throws ApiError
*/
static async runnerOrganizationControllerRemove(id, force) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'DELETE',
path: `/api/organizations/${id}`,
query: {
@@ -85,11 +85,11 @@ class RunnerOrganizationService {
* Lists all runners from this org and it's teams (if you don't provide the ?onlyDirect=true param). <br> This includes the runner's group and distance ran.
* @param id
* @param onlyDirect
* @returns ResponseRunner
* @result ResponseRunner
* @throws ApiError
*/
static async runnerOrganizationControllerGetRunners(id, onlyDirect) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/organizations/${id}/runners`,
query: {

View File

@@ -9,7 +9,7 @@ export declare class RunnerSelfService {
* Get
* Lists all information about yourself. <br> Please provide your runner jwt(that code we gave you during registration) for auth. <br> If you lost your jwt/personalized link please use the forgot endpoint.
* @param jwt
* @returns ResponseSelfServiceRunner
* @result ResponseSelfServiceRunner
* @throws ApiError
*/
static runnerSelfServiceControllerGet(jwt: string): Promise<ResponseSelfServiceRunner>;
@@ -18,7 +18,7 @@ export declare class RunnerSelfService {
* Deletes all information about yourself. <br> Please provide your runner jwt(that code we gave you during registration) for auth. <br> If you lost your jwt/personalized link please use the forgot endpoint.
* @param jwt
* @param force
* @returns ResponseSelfServiceRunner
* @result ResponseSelfServiceRunner
* @throws ApiError
*/
static runnerSelfServiceControllerRemove(jwt: string, force?: boolean): Promise<ResponseSelfServiceRunner>;
@@ -26,14 +26,14 @@ export declare class RunnerSelfService {
* Get scans
* Lists all your (runner) scans. <br> Please provide your runner jwt(that code we gave you during registration) for auth. <br> If you lost your jwt/personalized link please contact support.
* @param jwt
* @returns ResponseSelfServiceScan
* @result ResponseSelfServiceScan
* @throws ApiError
*/
static runnerSelfServiceControllerGetScans(jwt: string): Promise<Array<ResponseSelfServiceScan>>;
/**
* Get station me
* Lists basic information about the station whose token got provided. <br> This includes it's associated track.
* @returns ResponseScanStation
* @result ResponseScanStation
* @throws ApiError
*/
static runnerSelfServiceControllerGetStationMe(): Promise<ResponseScanStation>;
@@ -42,7 +42,7 @@ export declare class RunnerSelfService {
* Use this endpoint to reuqest a new selfservice token/link to be sent to your mail address (rate limited to one mail every 24hrs).
* @param mail
* @param locale
* @returns any Successful response
* @result any Successful response
* @throws ApiError
*/
static runnerSelfServiceControllerRequestNewToken(mail?: string, locale?: string): Promise<any>;
@@ -51,7 +51,7 @@ export declare class RunnerSelfService {
* Create a new selfservice runner in the citizen org. <br> This endpoint shoud be used to allow "everyday citizen" to register themselves. <br> You have to provide a mail address, b/c the future we'll implement email verification.
* @param locale
* @param requestBody CreateSelfServiceCitizenRunner
* @returns ResponseSelfServiceRunner
* @result ResponseSelfServiceRunner
* @throws ApiError
*/
static runnerSelfServiceControllerRegisterRunner(locale?: string, requestBody?: CreateSelfServiceCitizenRunner): Promise<ResponseSelfServiceRunner>;
@@ -61,7 +61,7 @@ export declare class RunnerSelfService {
* @param token
* @param locale
* @param requestBody CreateSelfServiceRunner
* @returns ResponseSelfServiceRunner
* @result ResponseSelfServiceRunner
* @throws ApiError
*/
static runnerSelfServiceControllerRegisterOrganizationRunner(token: string, locale?: string, requestBody?: CreateSelfServiceRunner): Promise<ResponseSelfServiceRunner>;
@@ -69,7 +69,7 @@ export declare class RunnerSelfService {
* Get selfservice org
* Get the basic info and teams for a org.
* @param token
* @returns ResponseSelfServiceOrganisation
* @result ResponseSelfServiceOrganisation
* @throws ApiError
*/
static runnerSelfServiceControllerGetSelfserviceOrg(token: string): Promise<ResponseSelfServiceOrganisation>;

View File

@@ -7,11 +7,11 @@ class RunnerSelfService {
* Get
* Lists all information about yourself. <br> Please provide your runner jwt(that code we gave you during registration) for auth. <br> If you lost your jwt/personalized link please use the forgot endpoint.
* @param jwt
* @returns ResponseSelfServiceRunner
* @result ResponseSelfServiceRunner
* @throws ApiError
*/
static async runnerSelfServiceControllerGet(jwt) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/runners/me/${jwt}`,
});
@@ -22,11 +22,11 @@ class RunnerSelfService {
* Deletes all information about yourself. <br> Please provide your runner jwt(that code we gave you during registration) for auth. <br> If you lost your jwt/personalized link please use the forgot endpoint.
* @param jwt
* @param force
* @returns ResponseSelfServiceRunner
* @result ResponseSelfServiceRunner
* @throws ApiError
*/
static async runnerSelfServiceControllerRemove(jwt, force) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'DELETE',
path: `/api/runners/me/${jwt}`,
query: {
@@ -39,11 +39,11 @@ class RunnerSelfService {
* Get scans
* Lists all your (runner) scans. <br> Please provide your runner jwt(that code we gave you during registration) for auth. <br> If you lost your jwt/personalized link please contact support.
* @param jwt
* @returns ResponseSelfServiceScan
* @result ResponseSelfServiceScan
* @throws ApiError
*/
static async runnerSelfServiceControllerGetScans(jwt) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/runners/me/${jwt}/scans`,
});
@@ -52,11 +52,11 @@ class RunnerSelfService {
/**
* Get station me
* Lists basic information about the station whose token got provided. <br> This includes it's associated track.
* @returns ResponseScanStation
* @result ResponseScanStation
* @throws ApiError
*/
static async runnerSelfServiceControllerGetStationMe() {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/stations/me`,
});
@@ -67,11 +67,11 @@ class RunnerSelfService {
* Use this endpoint to reuqest a new selfservice token/link to be sent to your mail address (rate limited to one mail every 24hrs).
* @param mail
* @param locale
* @returns any Successful response
* @result any Successful response
* @throws ApiError
*/
static async runnerSelfServiceControllerRequestNewToken(mail, locale) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'POST',
path: `/api/runners/forgot`,
query: {
@@ -86,11 +86,11 @@ class RunnerSelfService {
* Create a new selfservice runner in the citizen org. <br> This endpoint shoud be used to allow "everyday citizen" to register themselves. <br> You have to provide a mail address, b/c the future we'll implement email verification.
* @param locale
* @param requestBody CreateSelfServiceCitizenRunner
* @returns ResponseSelfServiceRunner
* @result ResponseSelfServiceRunner
* @throws ApiError
*/
static async runnerSelfServiceControllerRegisterRunner(locale, requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'POST',
path: `/api/runners/register`,
query: {
@@ -106,11 +106,11 @@ class RunnerSelfService {
* @param token
* @param locale
* @param requestBody CreateSelfServiceRunner
* @returns ResponseSelfServiceRunner
* @result ResponseSelfServiceRunner
* @throws ApiError
*/
static async runnerSelfServiceControllerRegisterOrganizationRunner(token, locale, requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'POST',
path: `/api/runners/register/${token}`,
query: {
@@ -124,11 +124,11 @@ class RunnerSelfService {
* Get selfservice org
* Get the basic info and teams for a org.
* @param token
* @returns ResponseSelfServiceOrganisation
* @result ResponseSelfServiceOrganisation
* @throws ApiError
*/
static async runnerSelfServiceControllerGetSelfserviceOrg(token) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/organizations/selfservice/${token}`,
});

View File

@@ -10,7 +10,7 @@ export declare class RunnerService {
/**
* Get all
* Lists all runners from all teams/orgs. <br> This includes the runner's group and distance ran.
* @returns ResponseRunner
* @result ResponseRunner
* @throws ApiError
*/
static runnerControllerGetAll(): Promise<Array<ResponseRunner>>;
@@ -18,7 +18,7 @@ export declare class RunnerService {
* Post
* Create a new runner. <br> Please remeber to provide the runner's group's id.
* @param requestBody CreateRunner
* @returns any
* @result any
* @throws ApiError
*/
static runnerControllerPost(requestBody?: CreateRunner): Promise<(ResponseRunner | RunnerGroupNeededError | RunnerGroupNotFoundError)>;
@@ -26,7 +26,7 @@ export declare class RunnerService {
* Get one
* Lists all information about the runner whose id got provided.
* @param id
* @returns ResponseRunner
* @result ResponseRunner
* @throws ApiError
*/
static runnerControllerGetOne(id: number): Promise<ResponseRunner>;
@@ -35,7 +35,7 @@ export declare class RunnerService {
* Update the runner whose id you provided. <br> Please remember that ids can't be changed.
* @param id
* @param requestBody UpdateRunner
* @returns ResponseRunner
* @result ResponseRunner
* @throws ApiError
*/
static runnerControllerPut(id: number, requestBody?: UpdateRunner): Promise<ResponseRunner>;
@@ -44,8 +44,8 @@ export declare class RunnerService {
* Delete the runner whose id you provided. <br> This will also delete all scans and cards associated with the runner. <br> If no runner with this id exists it will just return 204(no content).
* @param id
* @param force
* @returns ResponseRunner
* @returns ResponseEmpty
* @result ResponseRunner
* @result ResponseEmpty
* @throws ApiError
*/
static runnerControllerRemove(id: number, force?: boolean): Promise<ResponseRunner | ResponseEmpty>;
@@ -53,7 +53,7 @@ export declare class RunnerService {
* Get scans
* Lists all scans of the runner whose id got provided. <br> If you only want the valid scans just add the ?onlyValid=true query param.
* @param id
* @returns any
* @result any
* @throws ApiError
*/
static runnerControllerGetScans(id: number): Promise<(Array<ResponseScan> | Array<ResponseTrackScan>)>;

View File

@@ -6,11 +6,11 @@ class RunnerService {
/**
* Get all
* Lists all runners from all teams/orgs. <br> This includes the runner's group and distance ran.
* @returns ResponseRunner
* @result ResponseRunner
* @throws ApiError
*/
static async runnerControllerGetAll() {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/runners`,
});
@@ -20,11 +20,11 @@ class RunnerService {
* Post
* Create a new runner. <br> Please remeber to provide the runner's group's id.
* @param requestBody CreateRunner
* @returns any
* @result any
* @throws ApiError
*/
static async runnerControllerPost(requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'POST',
path: `/api/runners`,
body: requestBody,
@@ -35,11 +35,11 @@ class RunnerService {
* Get one
* Lists all information about the runner whose id got provided.
* @param id
* @returns ResponseRunner
* @result ResponseRunner
* @throws ApiError
*/
static async runnerControllerGetOne(id) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/runners/${id}`,
});
@@ -50,11 +50,11 @@ class RunnerService {
* Update the runner whose id you provided. <br> Please remember that ids can't be changed.
* @param id
* @param requestBody UpdateRunner
* @returns ResponseRunner
* @result ResponseRunner
* @throws ApiError
*/
static async runnerControllerPut(id, requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'PUT',
path: `/api/runners/${id}`,
body: requestBody,
@@ -66,12 +66,12 @@ class RunnerService {
* Delete the runner whose id you provided. <br> This will also delete all scans and cards associated with the runner. <br> If no runner with this id exists it will just return 204(no content).
* @param id
* @param force
* @returns ResponseRunner
* @returns ResponseEmpty
* @result ResponseRunner
* @result ResponseEmpty
* @throws ApiError
*/
static async runnerControllerRemove(id, force) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'DELETE',
path: `/api/runners/${id}`,
query: {
@@ -84,11 +84,11 @@ class RunnerService {
* Get scans
* Lists all scans of the runner whose id got provided. <br> If you only want the valid scans just add the ?onlyValid=true query param.
* @param id
* @returns any
* @result any
* @throws ApiError
*/
static async runnerControllerGetScans(id) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/runners/${id}/scans`,
});

View File

@@ -7,7 +7,7 @@ export declare class RunnerTeamService {
/**
* Get all
* Lists all teams. <br> This includes their parent organization and contact (if existing/associated).
* @returns ResponseRunnerTeam
* @result ResponseRunnerTeam
* @throws ApiError
*/
static runnerTeamControllerGetAll(): Promise<Array<ResponseRunnerTeam>>;
@@ -15,7 +15,7 @@ export declare class RunnerTeamService {
* Post
* Create a new organsisation. <br> Please remember to provide it's parent group's id.
* @param requestBody CreateRunnerTeam
* @returns ResponseRunnerTeam
* @result ResponseRunnerTeam
* @throws ApiError
*/
static runnerTeamControllerPost(requestBody?: CreateRunnerTeam): Promise<ResponseRunnerTeam>;
@@ -23,7 +23,7 @@ export declare class RunnerTeamService {
* Get one
* Lists all information about the team whose id got provided.
* @param id
* @returns ResponseRunnerTeam
* @result ResponseRunnerTeam
* @throws ApiError
*/
static runnerTeamControllerGetOne(id: number): Promise<ResponseRunnerTeam>;
@@ -32,7 +32,7 @@ export declare class RunnerTeamService {
* Update the team whose id you provided. <br> Please remember that ids can't be changed.
* @param id
* @param requestBody UpdateRunnerTeam
* @returns ResponseRunnerTeam
* @result ResponseRunnerTeam
* @throws ApiError
*/
static runnerTeamControllerPut(id: number, requestBody?: UpdateRunnerTeam): Promise<ResponseRunnerTeam>;
@@ -41,8 +41,8 @@ export declare class RunnerTeamService {
* Delete the team whose id you provided. <br> If the team still has runners associated this will fail. <br> To delete the team with all associated runners set the force QueryParam to true (cascading deletion might take a while). <br> This won't delete the associated contact.<br> If no team with this id exists it will just return 204(no content).
* @param id
* @param force
* @returns ResponseRunnerTeam
* @returns ResponseEmpty
* @result ResponseRunnerTeam
* @result ResponseEmpty
* @throws ApiError
*/
static runnerTeamControllerRemove(id: number, force?: boolean): Promise<ResponseRunnerTeam | ResponseEmpty>;
@@ -50,7 +50,7 @@ export declare class RunnerTeamService {
* Get runners
* Lists all runners from this team. <br> This includes the runner's group and distance ran.
* @param id
* @returns ResponseRunner
* @result ResponseRunner
* @throws ApiError
*/
static runnerTeamControllerGetRunners(id: number): Promise<Array<ResponseRunner>>;

View File

@@ -6,11 +6,11 @@ class RunnerTeamService {
/**
* Get all
* Lists all teams. <br> This includes their parent organization and contact (if existing/associated).
* @returns ResponseRunnerTeam
* @result ResponseRunnerTeam
* @throws ApiError
*/
static async runnerTeamControllerGetAll() {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/teams`,
});
@@ -20,11 +20,11 @@ class RunnerTeamService {
* Post
* Create a new organsisation. <br> Please remember to provide it's parent group's id.
* @param requestBody CreateRunnerTeam
* @returns ResponseRunnerTeam
* @result ResponseRunnerTeam
* @throws ApiError
*/
static async runnerTeamControllerPost(requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'POST',
path: `/api/teams`,
body: requestBody,
@@ -35,11 +35,11 @@ class RunnerTeamService {
* Get one
* Lists all information about the team whose id got provided.
* @param id
* @returns ResponseRunnerTeam
* @result ResponseRunnerTeam
* @throws ApiError
*/
static async runnerTeamControllerGetOne(id) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/teams/${id}`,
});
@@ -50,11 +50,11 @@ class RunnerTeamService {
* Update the team whose id you provided. <br> Please remember that ids can't be changed.
* @param id
* @param requestBody UpdateRunnerTeam
* @returns ResponseRunnerTeam
* @result ResponseRunnerTeam
* @throws ApiError
*/
static async runnerTeamControllerPut(id, requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'PUT',
path: `/api/teams/${id}`,
body: requestBody,
@@ -66,12 +66,12 @@ class RunnerTeamService {
* Delete the team whose id you provided. <br> If the team still has runners associated this will fail. <br> To delete the team with all associated runners set the force QueryParam to true (cascading deletion might take a while). <br> This won't delete the associated contact.<br> If no team with this id exists it will just return 204(no content).
* @param id
* @param force
* @returns ResponseRunnerTeam
* @returns ResponseEmpty
* @result ResponseRunnerTeam
* @result ResponseEmpty
* @throws ApiError
*/
static async runnerTeamControllerRemove(id, force) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'DELETE',
path: `/api/teams/${id}`,
query: {
@@ -84,11 +84,11 @@ class RunnerTeamService {
* Get runners
* Lists all runners from this team. <br> This includes the runner's group and distance ran.
* @param id
* @returns ResponseRunner
* @result ResponseRunner
* @throws ApiError
*/
static async runnerTeamControllerGetRunners(id) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/teams/${id}/runners`,
});

View File

@@ -9,7 +9,7 @@ export declare class ScanService {
/**
* Get all
* Lists all scans (normal or track) from all runners. <br> This includes the scan's runner's distance ran.
* @returns any
* @result any
* @throws ApiError
*/
static scanControllerGetAll(): Promise<(Array<ResponseScan> | Array<ResponseTrackScan>)>;
@@ -17,7 +17,7 @@ export declare class ScanService {
* Post
* Create a new scan (not track scan - use /scans/trackscans instead). <br> Please rmemember to provide the scan's runner's id and distance.
* @param requestBody CreateScan
* @returns ResponseScan
* @result ResponseScan
* @throws ApiError
*/
static scanControllerPost(requestBody?: CreateScan): Promise<ResponseScan>;
@@ -25,7 +25,7 @@ export declare class ScanService {
* Get one
* Lists all information about the scan whose id got provided. This includes the scan's runner's distance ran.
* @param id
* @returns any
* @result any
* @throws ApiError
*/
static scanControllerGetOne(id: number): Promise<(ResponseScan | ResponseTrackScan)>;
@@ -34,7 +34,7 @@ export declare class ScanService {
* Update the scan (not track scan use /scans/trackscans/:id instead) whose id you provided. <br> Please remember that ids can't be changed and distances must be positive.
* @param id
* @param requestBody UpdateScan
* @returns ResponseScan
* @result ResponseScan
* @throws ApiError
*/
static scanControllerPut(id: number, requestBody?: UpdateScan): Promise<ResponseScan>;
@@ -43,8 +43,8 @@ export declare class ScanService {
* Delete the scan whose id you provided. <br> If no scan with this id exists it will just return 204(no content).
* @param id
* @param force
* @returns ResponseScan
* @returns ResponseEmpty
* @result ResponseScan
* @result ResponseEmpty
* @throws ApiError
*/
static scanControllerRemove(id: number, force?: boolean): Promise<ResponseScan | ResponseEmpty>;
@@ -52,7 +52,7 @@ export declare class ScanService {
* Post track scans
* Create a new track scan (for "normal" scans use /scans instead). <br> Please remember that to provide the scan's card's station's id.
* @param requestBody CreateTrackScan
* @returns ResponseTrackScan
* @result ResponseTrackScan
* @throws ApiError
*/
static scanControllerPostTrackScans(requestBody?: CreateTrackScan): Promise<ResponseTrackScan>;
@@ -61,7 +61,7 @@ export declare class ScanService {
* Update the track scan (not "normal" scan use /scans/trackscans/:id instead) whose id you provided. <br> Please remember that only the validity, runner and track can be changed.
* @param id
* @param requestBody UpdateTrackScan
* @returns ResponseTrackScan
* @result ResponseTrackScan
* @throws ApiError
*/
static scanControllerPutTrackScan(id: number, requestBody?: UpdateTrackScan): Promise<ResponseTrackScan>;

View File

@@ -6,11 +6,11 @@ class ScanService {
/**
* Get all
* Lists all scans (normal or track) from all runners. <br> This includes the scan's runner's distance ran.
* @returns any
* @result any
* @throws ApiError
*/
static async scanControllerGetAll() {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/scans`,
});
@@ -20,11 +20,11 @@ class ScanService {
* Post
* Create a new scan (not track scan - use /scans/trackscans instead). <br> Please rmemember to provide the scan's runner's id and distance.
* @param requestBody CreateScan
* @returns ResponseScan
* @result ResponseScan
* @throws ApiError
*/
static async scanControllerPost(requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'POST',
path: `/api/scans`,
body: requestBody,
@@ -35,11 +35,11 @@ class ScanService {
* Get one
* Lists all information about the scan whose id got provided. This includes the scan's runner's distance ran.
* @param id
* @returns any
* @result any
* @throws ApiError
*/
static async scanControllerGetOne(id) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/scans/${id}`,
});
@@ -50,11 +50,11 @@ class ScanService {
* Update the scan (not track scan use /scans/trackscans/:id instead) whose id you provided. <br> Please remember that ids can't be changed and distances must be positive.
* @param id
* @param requestBody UpdateScan
* @returns ResponseScan
* @result ResponseScan
* @throws ApiError
*/
static async scanControllerPut(id, requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'PUT',
path: `/api/scans/${id}`,
body: requestBody,
@@ -66,12 +66,12 @@ class ScanService {
* Delete the scan whose id you provided. <br> If no scan with this id exists it will just return 204(no content).
* @param id
* @param force
* @returns ResponseScan
* @returns ResponseEmpty
* @result ResponseScan
* @result ResponseEmpty
* @throws ApiError
*/
static async scanControllerRemove(id, force) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'DELETE',
path: `/api/scans/${id}`,
query: {
@@ -84,11 +84,11 @@ class ScanService {
* Post track scans
* Create a new track scan (for "normal" scans use /scans instead). <br> Please remember that to provide the scan's card's station's id.
* @param requestBody CreateTrackScan
* @returns ResponseTrackScan
* @result ResponseTrackScan
* @throws ApiError
*/
static async scanControllerPostTrackScans(requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'POST',
path: `/api/scans/trackscans`,
body: requestBody,
@@ -100,11 +100,11 @@ class ScanService {
* Update the track scan (not "normal" scan use /scans/trackscans/:id instead) whose id you provided. <br> Please remember that only the validity, runner and track can be changed.
* @param id
* @param requestBody UpdateTrackScan
* @returns ResponseTrackScan
* @result ResponseTrackScan
* @throws ApiError
*/
static async scanControllerPutTrackScan(id, requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'PUT',
path: `/api/scans/trackscans/${id}`,
body: requestBody,

View File

@@ -6,7 +6,7 @@ export declare class ScanStationService {
/**
* Get all
* Lists all stations. <br> This includes their associated tracks.
* @returns ResponseScanStation
* @result ResponseScanStation
* @throws ApiError
*/
static scanStationControllerGetAll(): Promise<Array<ResponseScanStation>>;
@@ -14,7 +14,7 @@ export declare class ScanStationService {
* Post
* Create a new station. <br> Please remeber to provide the station's track's id. <br> Please also remember that the station key is only visibe on creation.
* @param requestBody CreateScanStation
* @returns ResponseScanStation
* @result ResponseScanStation
* @throws ApiError
*/
static scanStationControllerPost(requestBody?: CreateScanStation): Promise<ResponseScanStation>;
@@ -22,7 +22,7 @@ export declare class ScanStationService {
* Get one
* Lists all information about the station whose id got provided. <br> This includes it's associated track.
* @param id
* @returns ResponseScanStation
* @result ResponseScanStation
* @throws ApiError
*/
static scanStationControllerGetOne(id: number): Promise<ResponseScanStation>;
@@ -31,7 +31,7 @@ export declare class ScanStationService {
* Update the station whose id you provided. <br> Please remember that only the description and enabled state can be changed.
* @param id
* @param requestBody UpdateScanStation
* @returns ResponseScanStation
* @result ResponseScanStation
* @throws ApiError
*/
static scanStationControllerPut(id: number, requestBody?: UpdateScanStation): Promise<ResponseScanStation>;
@@ -40,8 +40,8 @@ export declare class ScanStationService {
* Delete the station whose id you provided. <br> If no station with this id exists it will just return 204(no content). <br> If the station still has scans associated you have to provide the force=true query param (warning: this deletes all scans associated with/created by this station - please disable it instead).
* @param id
* @param force
* @returns ResponseScanStation
* @returns ResponseEmpty
* @result ResponseScanStation
* @result ResponseEmpty
* @throws ApiError
*/
static scanStationControllerRemove(id: number, force?: boolean): Promise<ResponseScanStation | ResponseEmpty>;

View File

@@ -6,11 +6,11 @@ class ScanStationService {
/**
* Get all
* Lists all stations. <br> This includes their associated tracks.
* @returns ResponseScanStation
* @result ResponseScanStation
* @throws ApiError
*/
static async scanStationControllerGetAll() {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/stations`,
});
@@ -20,11 +20,11 @@ class ScanStationService {
* Post
* Create a new station. <br> Please remeber to provide the station's track's id. <br> Please also remember that the station key is only visibe on creation.
* @param requestBody CreateScanStation
* @returns ResponseScanStation
* @result ResponseScanStation
* @throws ApiError
*/
static async scanStationControllerPost(requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'POST',
path: `/api/stations`,
body: requestBody,
@@ -35,11 +35,11 @@ class ScanStationService {
* Get one
* Lists all information about the station whose id got provided. <br> This includes it's associated track.
* @param id
* @returns ResponseScanStation
* @result ResponseScanStation
* @throws ApiError
*/
static async scanStationControllerGetOne(id) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/stations/${id}`,
});
@@ -50,11 +50,11 @@ class ScanStationService {
* Update the station whose id you provided. <br> Please remember that only the description and enabled state can be changed.
* @param id
* @param requestBody UpdateScanStation
* @returns ResponseScanStation
* @result ResponseScanStation
* @throws ApiError
*/
static async scanStationControllerPut(id, requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'PUT',
path: `/api/stations/${id}`,
body: requestBody,
@@ -66,12 +66,12 @@ class ScanStationService {
* Delete the station whose id you provided. <br> If no station with this id exists it will just return 204(no content). <br> If the station still has scans associated you have to provide the force=true query param (warning: this deletes all scans associated with/created by this station - please disable it instead).
* @param id
* @param force
* @returns ResponseScanStation
* @returns ResponseEmpty
* @result ResponseScanStation
* @result ResponseEmpty
* @throws ApiError
*/
static async scanStationControllerRemove(id, force) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'DELETE',
path: `/api/stations/${id}`,
query: {

View File

@@ -5,7 +5,7 @@ export declare class StatsClientService {
/**
* Get all
* Lists all stats clients. Please remember that the key can only be viewed on creation.
* @returns ResponseStatsClient
* @result ResponseStatsClient
* @throws ApiError
*/
static statsClientControllerGetAll(): Promise<Array<ResponseStatsClient>>;
@@ -13,7 +13,7 @@ export declare class StatsClientService {
* Post
* Create a new stats client. <br> Please remember that the client's key will be generated automaticly and that it can only be viewed on creation.
* @param requestBody CreateStatsClient
* @returns ResponseStatsClient
* @result ResponseStatsClient
* @throws ApiError
*/
static statsClientControllerPost(requestBody?: CreateStatsClient): Promise<ResponseStatsClient>;
@@ -21,7 +21,7 @@ export declare class StatsClientService {
* Get one
* Lists all information about the stats client whose id got provided. Please remember that the key can only be viewed on creation.
* @param id
* @returns ResponseStatsClient
* @result ResponseStatsClient
* @throws ApiError
*/
static statsClientControllerGetOne(id: number): Promise<ResponseStatsClient>;
@@ -30,8 +30,8 @@ export declare class StatsClientService {
* Delete the stats client whose id you provided. <br> If no client with this id exists it will just return 204(no content).
* @param id
* @param force
* @returns ResponseStatsClient
* @returns ResponseEmpty
* @result ResponseStatsClient
* @result ResponseEmpty
* @throws ApiError
*/
static statsClientControllerRemove(id: number, force?: boolean): Promise<ResponseStatsClient | ResponseEmpty>;

View File

@@ -6,11 +6,11 @@ class StatsClientService {
/**
* Get all
* Lists all stats clients. Please remember that the key can only be viewed on creation.
* @returns ResponseStatsClient
* @result ResponseStatsClient
* @throws ApiError
*/
static async statsClientControllerGetAll() {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/statsclients`,
});
@@ -20,11 +20,11 @@ class StatsClientService {
* Post
* Create a new stats client. <br> Please remember that the client's key will be generated automaticly and that it can only be viewed on creation.
* @param requestBody CreateStatsClient
* @returns ResponseStatsClient
* @result ResponseStatsClient
* @throws ApiError
*/
static async statsClientControllerPost(requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'POST',
path: `/api/statsclients`,
body: requestBody,
@@ -35,11 +35,11 @@ class StatsClientService {
* Get one
* Lists all information about the stats client whose id got provided. Please remember that the key can only be viewed on creation.
* @param id
* @returns ResponseStatsClient
* @result ResponseStatsClient
* @throws ApiError
*/
static async statsClientControllerGetOne(id) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/statsclients/${id}`,
});
@@ -50,12 +50,12 @@ class StatsClientService {
* Delete the stats client whose id you provided. <br> If no client with this id exists it will just return 204(no content).
* @param id
* @param force
* @returns ResponseStatsClient
* @returns ResponseEmpty
* @result ResponseStatsClient
* @result ResponseEmpty
* @throws ApiError
*/
static async statsClientControllerRemove(id, force) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'DELETE',
path: `/api/statsclients/${id}`,
query: {

View File

@@ -6,21 +6,21 @@ export declare class StatsService {
/**
* Get
* A very basic stats endpoint providing basic counters for a dashboard or simmilar
* @returns ResponseStats
* @result ResponseStats
* @throws ApiError
*/
static statsControllerGet(): Promise<ResponseStats>;
/**
* Get top runners by distance
* Returns the top ten runners by distance.
* @returns ResponseStatsRunner
* @result ResponseStatsRunner
* @throws ApiError
*/
static statsControllerGetTopRunnersByDistance(): Promise<Array<ResponseStatsRunner>>;
/**
* Get top runners by donations
* Returns the top ten runners by donations.
* @returns ResponseStatsRunner
* @result ResponseStatsRunner
* @throws ApiError
*/
static statsControllerGetTopRunnersByDonations(): Promise<Array<ResponseStatsRunner>>;
@@ -28,42 +28,42 @@ export declare class StatsService {
* Get top runners by laptime
* Returns the top ten runners by fastest laptime on your selected track (track by id).
* @param track
* @returns ResponseStatsRunner
* @result ResponseStatsRunner
* @throws ApiError
*/
static statsControllerGetTopRunnersByLaptime(track?: number): Promise<Array<ResponseStatsRunner>>;
/**
* Get top runners by track time
* Returns the top ten fastest track times (with their runner and the runner's group).
* @returns ResponseStatsRunner
* @result ResponseStatsRunner
* @throws ApiError
*/
static statsControllerGetTopRunnersByTrackTime(): Promise<Array<ResponseStatsRunner>>;
/**
* Get top teams by distance
* Returns the top ten teams by distance.
* @returns ResponseStatsTeam
* @result ResponseStatsTeam
* @throws ApiError
*/
static statsControllerGetTopTeamsByDistance(): Promise<Array<ResponseStatsTeam>>;
/**
* Get top teams by donations
* Returns the top ten teams by donations.
* @returns ResponseStatsTeam
* @result ResponseStatsTeam
* @throws ApiError
*/
static statsControllerGetTopTeamsByDonations(): Promise<Array<ResponseStatsTeam>>;
/**
* Get top orgs by distance
* Returns the top ten organizations by distance.
* @returns ResponseStatsOrgnisation
* @result ResponseStatsOrgnisation
* @throws ApiError
*/
static statsControllerGetTopOrgsByDistance(): Promise<Array<ResponseStatsOrgnisation>>;
/**
* Get top orgs by donations
* Returns the top ten organizations by donations.
* @returns ResponseStatsOrgnisation
* @result ResponseStatsOrgnisation
* @throws ApiError
*/
static statsControllerGetTopOrgsByDonations(): Promise<Array<ResponseStatsOrgnisation>>;

View File

@@ -6,11 +6,11 @@ class StatsService {
/**
* Get
* A very basic stats endpoint providing basic counters for a dashboard or simmilar
* @returns ResponseStats
* @result ResponseStats
* @throws ApiError
*/
static async statsControllerGet() {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/stats`,
});
@@ -19,11 +19,11 @@ class StatsService {
/**
* Get top runners by distance
* Returns the top ten runners by distance.
* @returns ResponseStatsRunner
* @result ResponseStatsRunner
* @throws ApiError
*/
static async statsControllerGetTopRunnersByDistance() {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/stats/runners/distance`,
});
@@ -32,11 +32,11 @@ class StatsService {
/**
* Get top runners by donations
* Returns the top ten runners by donations.
* @returns ResponseStatsRunner
* @result ResponseStatsRunner
* @throws ApiError
*/
static async statsControllerGetTopRunnersByDonations() {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/stats/runners/donations`,
});
@@ -46,11 +46,11 @@ class StatsService {
* Get top runners by laptime
* Returns the top ten runners by fastest laptime on your selected track (track by id).
* @param track
* @returns ResponseStatsRunner
* @result ResponseStatsRunner
* @throws ApiError
*/
static async statsControllerGetTopRunnersByLaptime(track) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/stats/runners/laptime`,
query: {
@@ -62,11 +62,11 @@ class StatsService {
/**
* Get top runners by track time
* Returns the top ten fastest track times (with their runner and the runner's group).
* @returns ResponseStatsRunner
* @result ResponseStatsRunner
* @throws ApiError
*/
static async statsControllerGetTopRunnersByTrackTime() {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/stats/scans`,
});
@@ -75,11 +75,11 @@ class StatsService {
/**
* Get top teams by distance
* Returns the top ten teams by distance.
* @returns ResponseStatsTeam
* @result ResponseStatsTeam
* @throws ApiError
*/
static async statsControllerGetTopTeamsByDistance() {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/stats/teams/distance`,
});
@@ -88,11 +88,11 @@ class StatsService {
/**
* Get top teams by donations
* Returns the top ten teams by donations.
* @returns ResponseStatsTeam
* @result ResponseStatsTeam
* @throws ApiError
*/
static async statsControllerGetTopTeamsByDonations() {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/stats/teams/donations`,
});
@@ -101,11 +101,11 @@ class StatsService {
/**
* Get top orgs by distance
* Returns the top ten organizations by distance.
* @returns ResponseStatsOrgnisation
* @result ResponseStatsOrgnisation
* @throws ApiError
*/
static async statsControllerGetTopOrgsByDistance() {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/stats/organizations/distance`,
});
@@ -114,11 +114,11 @@ class StatsService {
/**
* Get top orgs by donations
* Returns the top ten organizations by donations.
* @returns ResponseStatsOrgnisation
* @result ResponseStatsOrgnisation
* @throws ApiError
*/
static async statsControllerGetTopOrgsByDonations() {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/stats/organizations/donations`,
});

View File

@@ -2,14 +2,14 @@ export declare class StatusService {
/**
* Get
* A very basic status/health endpoint that just checks if the database connection is available. <br> The available information depth will be expanded later.
* @returns any Successful response
* @result any Successful response
* @throws ApiError
*/
static statusControllerGet(): Promise<any>;
/**
* Get version
* A very basic endpoint that just returns the curent package version.
* @returns any Successful response
* @result any Successful response
* @throws ApiError
*/
static statusControllerGetVersion(): Promise<any>;

View File

@@ -9,11 +9,11 @@ class StatusService {
/**
* Get
* A very basic status/health endpoint that just checks if the database connection is available. <br> The available information depth will be expanded later.
* @returns any Successful response
* @result any Successful response
* @throws ApiError
*/
static async statusControllerGet() {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/status`,
});
@@ -22,11 +22,11 @@ class StatusService {
/**
* Get version
* A very basic endpoint that just returns the curent package version.
* @returns any Successful response
* @result any Successful response
* @throws ApiError
*/
static async statusControllerGetVersion() {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/version`,
});

View File

@@ -6,7 +6,7 @@ export declare class TrackService {
/**
* Get all
* Lists all tracks.
* @returns ResponseTrack
* @result ResponseTrack
* @throws ApiError
*/
static trackControllerGetAll(): Promise<Array<ResponseTrack>>;
@@ -14,7 +14,7 @@ export declare class TrackService {
* Post
* Create a new track. <br> Please remember that the track's distance must be greater than 0.
* @param requestBody CreateTrack
* @returns ResponseTrack
* @result ResponseTrack
* @throws ApiError
*/
static trackControllerPost(requestBody?: CreateTrack): Promise<ResponseTrack>;
@@ -22,7 +22,7 @@ export declare class TrackService {
* Get one
* Lists all information about the track whose id got provided.
* @param id
* @returns ResponseTrack
* @result ResponseTrack
* @throws ApiError
*/
static trackControllerGetOne(id: number): Promise<ResponseTrack>;
@@ -31,7 +31,7 @@ export declare class TrackService {
* Update the track whose id you provided. <br> Please remember that ids can't be changed.
* @param id
* @param requestBody UpdateTrack
* @returns ResponseTrack
* @result ResponseTrack
* @throws ApiError
*/
static trackControllerPut(id: number, requestBody?: UpdateTrack): Promise<ResponseTrack>;
@@ -40,8 +40,8 @@ export declare class TrackService {
* Delete the track whose id you provided. <br> If no track with this id exists it will just return 204(no content).
* @param id
* @param force
* @returns ResponseTrack
* @returns ResponseEmpty
* @result ResponseTrack
* @result ResponseEmpty
* @throws ApiError
*/
static trackControllerRemove(id: number, force?: boolean): Promise<ResponseTrack | ResponseEmpty>;

View File

@@ -6,11 +6,11 @@ class TrackService {
/**
* Get all
* Lists all tracks.
* @returns ResponseTrack
* @result ResponseTrack
* @throws ApiError
*/
static async trackControllerGetAll() {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/tracks`,
});
@@ -20,11 +20,11 @@ class TrackService {
* Post
* Create a new track. <br> Please remember that the track's distance must be greater than 0.
* @param requestBody CreateTrack
* @returns ResponseTrack
* @result ResponseTrack
* @throws ApiError
*/
static async trackControllerPost(requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'POST',
path: `/api/tracks`,
body: requestBody,
@@ -35,11 +35,11 @@ class TrackService {
* Get one
* Lists all information about the track whose id got provided.
* @param id
* @returns ResponseTrack
* @result ResponseTrack
* @throws ApiError
*/
static async trackControllerGetOne(id) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/tracks/${id}`,
});
@@ -50,11 +50,11 @@ class TrackService {
* Update the track whose id you provided. <br> Please remember that ids can't be changed.
* @param id
* @param requestBody UpdateTrack
* @returns ResponseTrack
* @result ResponseTrack
* @throws ApiError
*/
static async trackControllerPut(id, requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'PUT',
path: `/api/tracks/${id}`,
body: requestBody,
@@ -66,12 +66,12 @@ class TrackService {
* Delete the track whose id you provided. <br> If no track with this id exists it will just return 204(no content).
* @param id
* @param force
* @returns ResponseTrack
* @returns ResponseEmpty
* @result ResponseTrack
* @result ResponseEmpty
* @throws ApiError
*/
static async trackControllerRemove(id, force) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'DELETE',
path: `/api/tracks/${id}`,
query: {

View File

@@ -9,7 +9,7 @@ export declare class UserGroupService {
/**
* Get all
* Lists all groups. <br> The information provided might change while the project continues to evolve.
* @returns ResponseUserGroup
* @result ResponseUserGroup
* @throws ApiError
*/
static userGroupControllerGetAll(): Promise<Array<ResponseUserGroup>>;
@@ -17,7 +17,7 @@ export declare class UserGroupService {
* Post
* Create a new group. <br> If you want to grant permissions to the group you have to create them seperately by posting to /api/permissions after creating the group.
* @param requestBody CreateUserGroup
* @returns any
* @result any
* @throws ApiError
*/
static userGroupControllerPost(requestBody?: CreateUserGroup): Promise<(UserGroup | UserGroupNotFoundError)>;
@@ -25,7 +25,7 @@ export declare class UserGroupService {
* Get one
* Lists all information about the group whose id got provided. <br> The information provided might change while the project continues to evolve.
* @param id
* @returns ResponseUserGroup
* @result ResponseUserGroup
* @throws ApiError
*/
static userGroupControllerGetOne(id: number): Promise<ResponseUserGroup>;
@@ -34,7 +34,7 @@ export declare class UserGroupService {
* Update the group whose id you provided. <br> To change the permissions granted to the group please use /api/permissions instead. <br> Please remember that ids can't be changed.
* @param id
* @param requestBody UpdateUserGroup
* @returns UserGroup
* @result UserGroup
* @throws ApiError
*/
static userGroupControllerPut(id: number, requestBody?: UpdateUserGroup): Promise<UserGroup>;
@@ -43,8 +43,8 @@ export declare class UserGroupService {
* Delete the group whose id you provided. <br> If there are any permissions directly granted to the group they will get deleted as well. <br> Users associated with this group won't get deleted - just deassociated. <br> If no group with this id exists it will just return 204(no content).
* @param id
* @param force
* @returns ResponseUserGroup
* @returns ResponseEmpty
* @result ResponseUserGroup
* @result ResponseEmpty
* @throws ApiError
*/
static userGroupControllerRemove(id: number, force?: boolean): Promise<ResponseUserGroup | ResponseEmpty>;
@@ -52,7 +52,7 @@ export declare class UserGroupService {
* Get permissions
* Lists all permissions granted to the group as permission response objects.
* @param id
* @returns ResponseUserGroupPermissions
* @result ResponseUserGroupPermissions
* @throws ApiError
*/
static userGroupControllerGetPermissions(id: number): Promise<ResponseUserGroupPermissions>;

View File

@@ -6,11 +6,11 @@ class UserGroupService {
/**
* Get all
* Lists all groups. <br> The information provided might change while the project continues to evolve.
* @returns ResponseUserGroup
* @result ResponseUserGroup
* @throws ApiError
*/
static async userGroupControllerGetAll() {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/usergroups`,
});
@@ -20,11 +20,11 @@ class UserGroupService {
* Post
* Create a new group. <br> If you want to grant permissions to the group you have to create them seperately by posting to /api/permissions after creating the group.
* @param requestBody CreateUserGroup
* @returns any
* @result any
* @throws ApiError
*/
static async userGroupControllerPost(requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'POST',
path: `/api/usergroups`,
body: requestBody,
@@ -35,11 +35,11 @@ class UserGroupService {
* Get one
* Lists all information about the group whose id got provided. <br> The information provided might change while the project continues to evolve.
* @param id
* @returns ResponseUserGroup
* @result ResponseUserGroup
* @throws ApiError
*/
static async userGroupControllerGetOne(id) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/usergroups/${id}`,
});
@@ -50,11 +50,11 @@ class UserGroupService {
* Update the group whose id you provided. <br> To change the permissions granted to the group please use /api/permissions instead. <br> Please remember that ids can't be changed.
* @param id
* @param requestBody UpdateUserGroup
* @returns UserGroup
* @result UserGroup
* @throws ApiError
*/
static async userGroupControllerPut(id, requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'PUT',
path: `/api/usergroups/${id}`,
body: requestBody,
@@ -66,12 +66,12 @@ class UserGroupService {
* Delete the group whose id you provided. <br> If there are any permissions directly granted to the group they will get deleted as well. <br> Users associated with this group won't get deleted - just deassociated. <br> If no group with this id exists it will just return 204(no content).
* @param id
* @param force
* @returns ResponseUserGroup
* @returns ResponseEmpty
* @result ResponseUserGroup
* @result ResponseEmpty
* @throws ApiError
*/
static async userGroupControllerRemove(id, force) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'DELETE',
path: `/api/usergroups/${id}`,
query: {
@@ -84,11 +84,11 @@ class UserGroupService {
* Get permissions
* Lists all permissions granted to the group as permission response objects.
* @param id
* @returns ResponseUserGroupPermissions
* @result ResponseUserGroupPermissions
* @throws ApiError
*/
static async userGroupControllerGetPermissions(id) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/usergroups/${id}/permissions`,
});

View File

@@ -6,7 +6,7 @@ export declare class UserService {
/**
* Get all
* Lists all users. <br> This includes their groups and permissions granted to them.
* @returns ResponseUser
* @result ResponseUser
* @throws ApiError
*/
static userControllerGetAll(): Promise<Array<ResponseUser>>;
@@ -14,7 +14,7 @@ export declare class UserService {
* Post
* Create a new user. <br> If you want to grant permissions to the user you have to create them seperately by posting to /api/permissions after creating the user.
* @param requestBody CreateUser
* @returns ResponseUser
* @result ResponseUser
* @throws ApiError
*/
static userControllerPost(requestBody?: CreateUser): Promise<ResponseUser>;
@@ -22,7 +22,7 @@ export declare class UserService {
* Get one
* Lists all information about the user whose id got provided. <br> Please remember that all permissions granted to the user will show up here.
* @param id
* @returns ResponseUser
* @result ResponseUser
* @throws ApiError
*/
static userControllerGetOne(id: number): Promise<ResponseUser>;
@@ -31,7 +31,7 @@ export declare class UserService {
* Update the user whose id you provided. <br> To change the permissions directly granted to the user please use /api/permissions instead. <br> Please remember that ids can't be changed.
* @param id
* @param requestBody UpdateUser
* @returns ResponseUser
* @result ResponseUser
* @throws ApiError
*/
static userControllerPut(id: number, requestBody?: UpdateUser): Promise<ResponseUser>;
@@ -40,8 +40,8 @@ export declare class UserService {
* Delete the user whose id you provided. <br> You have to confirm your decision by providing the ?force=true query param. <br> If there are any permissions directly granted to the user they will get deleted as well. <br> If no user with this id exists it will just return 204(no content).
* @param id
* @param force
* @returns ResponseUser
* @returns ResponseEmpty
* @result ResponseUser
* @result ResponseEmpty
* @throws ApiError
*/
static userControllerRemove(id: number, force?: boolean): Promise<ResponseUser | ResponseEmpty>;
@@ -49,7 +49,7 @@ export declare class UserService {
* Get permissions
* Lists all permissions granted to the user sorted into directly granted and inherited as permission response objects.
* @param id
* @returns ResponseUser
* @result ResponseUser
* @throws ApiError
*/
static userControllerGetPermissions(id: number): Promise<ResponseUser>;

View File

@@ -6,11 +6,11 @@ class UserService {
/**
* Get all
* Lists all users. <br> This includes their groups and permissions granted to them.
* @returns ResponseUser
* @result ResponseUser
* @throws ApiError
*/
static async userControllerGetAll() {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/users`,
});
@@ -20,11 +20,11 @@ class UserService {
* Post
* Create a new user. <br> If you want to grant permissions to the user you have to create them seperately by posting to /api/permissions after creating the user.
* @param requestBody CreateUser
* @returns ResponseUser
* @result ResponseUser
* @throws ApiError
*/
static async userControllerPost(requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'POST',
path: `/api/users`,
body: requestBody,
@@ -35,11 +35,11 @@ class UserService {
* Get one
* Lists all information about the user whose id got provided. <br> Please remember that all permissions granted to the user will show up here.
* @param id
* @returns ResponseUser
* @result ResponseUser
* @throws ApiError
*/
static async userControllerGetOne(id) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/users/${id}`,
});
@@ -50,11 +50,11 @@ class UserService {
* Update the user whose id you provided. <br> To change the permissions directly granted to the user please use /api/permissions instead. <br> Please remember that ids can't be changed.
* @param id
* @param requestBody UpdateUser
* @returns ResponseUser
* @result ResponseUser
* @throws ApiError
*/
static async userControllerPut(id, requestBody) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'PUT',
path: `/api/users/${id}`,
body: requestBody,
@@ -66,12 +66,12 @@ class UserService {
* Delete the user whose id you provided. <br> You have to confirm your decision by providing the ?force=true query param. <br> If there are any permissions directly granted to the user they will get deleted as well. <br> If no user with this id exists it will just return 204(no content).
* @param id
* @param force
* @returns ResponseUser
* @returns ResponseEmpty
* @result ResponseUser
* @result ResponseEmpty
* @throws ApiError
*/
static async userControllerRemove(id, force) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'DELETE',
path: `/api/users/${id}`,
query: {
@@ -84,11 +84,11 @@ class UserService {
* Get permissions
* Lists all permissions granted to the user sorted into directly granted and inherited as permission response objects.
* @param id
* @returns ResponseUser
* @result ResponseUser
* @throws ApiError
*/
static async userControllerGetPermissions(id) {
const result = await request_1.request({
const result = await (0, request_1.request)({
method: 'GET',
path: `/api/users/${id}/permissions`,
});