new lib version [CI SKIP]
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Nicolai Ort 2020-12-29 13:35:32 +00:00
parent b7a815076f
commit ec3df312be
33 changed files with 188 additions and 86 deletions

View File

@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
exports.OpenAPI = void 0; exports.OpenAPI = void 0;
exports.OpenAPI = { exports.OpenAPI = {
BASE: '', BASE: '',
VERSION: '1.0.0', VERSION: '0.0.5',
WITH_CREDENTIALS: false, WITH_CREDENTIALS: false,
TOKEN: undefined, TOKEN: undefined,
USERNAME: undefined, USERNAME: undefined,

4
dist/index.d.ts vendored
View File

@ -7,6 +7,7 @@ export type { Auth } from './models/Auth';
export type { CreateAuth } from './models/CreateAuth'; export type { CreateAuth } from './models/CreateAuth';
export type { CreateParticipant } from './models/CreateParticipant'; export type { CreateParticipant } from './models/CreateParticipant';
export { CreatePermission } from './models/CreatePermission'; export { CreatePermission } from './models/CreatePermission';
export type { CreateResetToken } from './models/CreateResetToken';
export type { CreateRunner } from './models/CreateRunner'; export type { CreateRunner } from './models/CreateRunner';
export type { CreateRunnerGroup } from './models/CreateRunnerGroup'; export type { CreateRunnerGroup } from './models/CreateRunnerGroup';
export type { CreateRunnerOrganisation } from './models/CreateRunnerOrganisation'; export type { CreateRunnerOrganisation } from './models/CreateRunnerOrganisation';
@ -39,6 +40,8 @@ export type { PrincipalNotFoundError } from './models/PrincipalNotFoundError';
export type { PrincipalWrongTypeError } from './models/PrincipalWrongTypeError'; export type { PrincipalWrongTypeError } from './models/PrincipalWrongTypeError';
export type { RefreshAuth } from './models/RefreshAuth'; export type { RefreshAuth } from './models/RefreshAuth';
export type { RefreshTokenCountInvalidError } from './models/RefreshTokenCountInvalidError'; export type { RefreshTokenCountInvalidError } from './models/RefreshTokenCountInvalidError';
export type { ResetAlreadyRequestedError } from './models/ResetAlreadyRequestedError';
export type { ResetPassword } from './models/ResetPassword';
export type { ResponseEmpty } from './models/ResponseEmpty'; export type { ResponseEmpty } from './models/ResponseEmpty';
export type { ResponseParticipant } from './models/ResponseParticipant'; export type { ResponseParticipant } from './models/ResponseParticipant';
export { ResponsePermission } from './models/ResponsePermission'; export { ResponsePermission } from './models/ResponsePermission';
@ -81,6 +84,7 @@ export type { UpdateRunnerTeam } from './models/UpdateRunnerTeam';
export type { UpdateUser } from './models/UpdateUser'; export type { UpdateUser } from './models/UpdateUser';
export type { User } from './models/User'; export type { User } from './models/User';
export { UserAction } from './models/UserAction'; export { UserAction } from './models/UserAction';
export type { UserDisabledError } from './models/UserDisabledError';
export type { UserGroup } from './models/UserGroup'; export type { UserGroup } from './models/UserGroup';
export type { UserGroupIdsNotMatchingError } from './models/UserGroupIdsNotMatchingError'; export type { UserGroupIdsNotMatchingError } from './models/UserGroupIdsNotMatchingError';
export type { UserGroupNotFoundError } from './models/UserGroupNotFoundError'; export type { UserGroupNotFoundError } from './models/UserGroupNotFoundError';

4
dist/models/CreateResetToken.d.ts vendored Normal file
View File

@ -0,0 +1,4 @@
export declare type CreateResetToken = {
username?: string;
email?: string;
};

5
dist/models/CreateResetToken.js vendored Normal file
View File

@ -0,0 +1,5 @@
"use strict";
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });

View File

@ -6,5 +6,6 @@ export declare type CreateUser = {
email?: string; email?: string;
phone?: string; phone?: string;
password: string; password: string;
enabled?: boolean;
groups?: any; groups?: any;
}; };

View File

@ -0,0 +1,4 @@
export declare type ResetAlreadyRequestedError = {
name: string;
message: string;
};

View File

@ -0,0 +1,5 @@
"use strict";
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });

4
dist/models/ResetPassword.d.ts vendored Normal file
View File

@ -0,0 +1,4 @@
export declare type ResetPassword = {
resetToken?: string;
password: string;
};

5
dist/models/ResetPassword.js vendored Normal file
View File

@ -0,0 +1,5 @@
"use strict";
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });

View File

@ -11,6 +11,7 @@ export declare type User = {
enabled: boolean; enabled: boolean;
refreshTokenCount: number; refreshTokenCount: number;
profilePic?: string; profilePic?: string;
resetRequestedTimestamp?: string;
actions?: any; actions?: any;
id: number; id: number;
}; };

4
dist/models/UserDisabledError.d.ts vendored Normal file
View File

@ -0,0 +1,4 @@
export declare type UserDisabledError = {
name: string;
message: string;
};

5
dist/models/UserDisabledError.js vendored Normal file
View File

@ -0,0 +1,5 @@
"use strict";
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });

View File

@ -1,5 +1,6 @@
import type { Auth } from '../models/Auth'; import type { Auth } from '../models/Auth';
import type { CreateAuth } from '../models/CreateAuth'; import type { CreateAuth } from '../models/CreateAuth';
import type { CreateResetToken } from '../models/CreateResetToken';
import type { HandleLogout } from '../models/HandleLogout'; import type { HandleLogout } from '../models/HandleLogout';
import type { IllegalJWTError } from '../models/IllegalJWTError'; import type { IllegalJWTError } from '../models/IllegalJWTError';
import type { InvalidCredentialsError } from '../models/InvalidCredentialsError'; import type { InvalidCredentialsError } from '../models/InvalidCredentialsError';
@ -8,12 +9,15 @@ import type { Logout } from '../models/Logout';
import type { PasswordNeededError } from '../models/PasswordNeededError'; import type { PasswordNeededError } from '../models/PasswordNeededError';
import type { RefreshAuth } from '../models/RefreshAuth'; import type { RefreshAuth } from '../models/RefreshAuth';
import type { RefreshTokenCountInvalidError } from '../models/RefreshTokenCountInvalidError'; import type { RefreshTokenCountInvalidError } from '../models/RefreshTokenCountInvalidError';
import type { ResetPassword } from '../models/ResetPassword';
import type { UsernameOrEmailNeededError } from '../models/UsernameOrEmailNeededError'; import type { UsernameOrEmailNeededError } from '../models/UsernameOrEmailNeededError';
import type { UserNotFoundError } from '../models/UserNotFoundError'; import type { UserNotFoundError } from '../models/UserNotFoundError';
export declare class AuthService { export declare class AuthService {
/** /**
* Login * Login
* Create a new access token object * Login with your username/email and password. <br> You will receive:
* * access token (use it as a bearer token)
* * refresh token (will also be sent as a cookie)
* @param requestBody CreateAuth * @param requestBody CreateAuth
* @returns any * @returns any
* @throws ApiError * @throws ApiError
@ -21,7 +25,7 @@ export declare class AuthService {
static authControllerLogin(requestBody?: CreateAuth): Promise<(Auth | InvalidCredentialsError | UserNotFoundError | UsernameOrEmailNeededError | PasswordNeededError)>; static authControllerLogin(requestBody?: CreateAuth): Promise<(Auth | InvalidCredentialsError | UserNotFoundError | UsernameOrEmailNeededError | PasswordNeededError)>;
/** /**
* Logout * Logout
* Create a new access token object * Logout using your refresh token. <br> This instantly invalidates all your access and refresh tokens.
* @param requestBody HandleLogout * @param requestBody HandleLogout
* @returns any * @returns any
* @throws ApiError * @throws ApiError
@ -29,10 +33,29 @@ export declare class AuthService {
static authControllerLogout(requestBody?: HandleLogout): Promise<(Logout | InvalidCredentialsError | UserNotFoundError | UsernameOrEmailNeededError | PasswordNeededError)>; static authControllerLogout(requestBody?: HandleLogout): Promise<(Logout | InvalidCredentialsError | UserNotFoundError | UsernameOrEmailNeededError | PasswordNeededError)>;
/** /**
* Refresh * Refresh
* refresh a access token * 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 * @param requestBody RefreshAuth
* @returns any * @returns any
* @throws ApiError * @throws ApiError
*/ */
static authControllerRefresh(requestBody?: RefreshAuth): Promise<(Auth | JwtNotProvidedError | IllegalJWTError | UserNotFoundError | RefreshTokenCountInvalidError)>; static authControllerRefresh(requestBody?: RefreshAuth): Promise<(Auth | JwtNotProvidedError | IllegalJWTError | UserNotFoundError | RefreshTokenCountInvalidError)>;
/**
* Get reset token
* 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 requestBody CreateResetToken
* @returns any
* @throws ApiError
*/
static authControllerGetResetToken(requestBody?: CreateResetToken): Promise<(Auth | UserNotFoundError | UsernameOrEmailNeededError)>;
/**
* Reset password
* 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
* @throws ApiError
*/
static authControllerResetPassword(token: string, requestBody?: ResetPassword): Promise<(Auth | UserNotFoundError | UsernameOrEmailNeededError)>;
} }

View File

@ -5,7 +5,9 @@ const request_1 = require("../core/request");
class AuthService { class AuthService {
/** /**
* Login * Login
* Create a new access token object * Login with your username/email and password. <br> You will receive:
* * access token (use it as a bearer token)
* * refresh token (will also be sent as a cookie)
* @param requestBody CreateAuth * @param requestBody CreateAuth
* @returns any * @returns any
* @throws ApiError * @throws ApiError
@ -20,7 +22,7 @@ class AuthService {
} }
/** /**
* Logout * Logout
* Create a new access token object * Logout using your refresh token. <br> This instantly invalidates all your access and refresh tokens.
* @param requestBody HandleLogout * @param requestBody HandleLogout
* @returns any * @returns any
* @throws ApiError * @throws ApiError
@ -35,7 +37,9 @@ class AuthService {
} }
/** /**
* Refresh * Refresh
* refresh a access token * 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 * @param requestBody RefreshAuth
* @returns any * @returns any
* @throws ApiError * @throws ApiError
@ -48,5 +52,36 @@ class AuthService {
}); });
return result.body; return result.body;
} }
/**
* Get reset token
* 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 requestBody CreateResetToken
* @returns any
* @throws ApiError
*/
static async authControllerGetResetToken(requestBody) {
const result = await request_1.request({
method: 'POST',
path: `/api/auth/reset`,
body: requestBody,
});
return result.body;
}
/**
* Reset password
* 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
* @throws ApiError
*/
static async authControllerResetPassword(token, requestBody) {
const result = await request_1.request({
method: 'POST',
path: `/api/auth/reset/${token}`,
body: requestBody,
});
return result.body;
}
} }
exports.AuthService = AuthService; exports.AuthService = AuthService;

View File

@ -3,7 +3,7 @@ import type { ResponseRunner } from '../models/ResponseRunner';
export declare class ImportService { export declare class ImportService {
/** /**
* Post json * Post json
* Create new runners from json and insert them (or their teams) into the provided group * 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 group
* @param requestBody ImportRunner * @param requestBody ImportRunner
* @returns ResponseRunner * @returns ResponseRunner
@ -12,7 +12,7 @@ export declare class ImportService {
static importControllerPostJson(group?: number, requestBody?: Array<ImportRunner>): Promise<Array<ResponseRunner>>; static importControllerPostJson(group?: number, requestBody?: Array<ImportRunner>): Promise<Array<ResponseRunner>>;
/** /**
* Post orgs json * Post orgs json
* Create new runners from json and insert them (or their teams) into the provided org * 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 id
* @param requestBody ImportRunner * @param requestBody ImportRunner
* @returns ResponseRunner * @returns ResponseRunner
@ -30,7 +30,7 @@ export declare class ImportService {
static importControllerPostTeamsJson(id: number, requestBody?: Array<ImportRunner>): Promise<Array<ResponseRunner>>; static importControllerPostTeamsJson(id: number, requestBody?: Array<ImportRunner>): Promise<Array<ResponseRunner>>;
/** /**
* Post csv * Post csv
* Create new runners from csv and insert them (or their teams) into the provided group * 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 * @param group
* @returns ResponseRunner * @returns ResponseRunner
* @throws ApiError * @throws ApiError
@ -38,7 +38,7 @@ export declare class ImportService {
static importControllerPostCsv(group?: number): Promise<Array<ResponseRunner>>; static importControllerPostCsv(group?: number): Promise<Array<ResponseRunner>>;
/** /**
* Post orgs csv * Post orgs csv
* Create new runners from csv and insert them (or their teams) into the provided org * 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 * @param id
* @returns ResponseRunner * @returns ResponseRunner
* @throws ApiError * @throws ApiError

View File

@ -5,7 +5,7 @@ const request_1 = require("../core/request");
class ImportService { class ImportService {
/** /**
* Post json * Post json
* Create new runners from json and insert them (or their teams) into the provided group * 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 group
* @param requestBody ImportRunner * @param requestBody ImportRunner
* @returns ResponseRunner * @returns ResponseRunner
@ -24,7 +24,7 @@ class ImportService {
} }
/** /**
* Post orgs json * Post orgs json
* Create new runners from json and insert them (or their teams) into the provided org * 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 id
* @param requestBody ImportRunner * @param requestBody ImportRunner
* @returns ResponseRunner * @returns ResponseRunner
@ -56,7 +56,7 @@ class ImportService {
} }
/** /**
* Post csv * Post csv
* Create new runners from csv and insert them (or their teams) into the provided group * 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 * @param group
* @returns ResponseRunner * @returns ResponseRunner
* @throws ApiError * @throws ApiError
@ -73,7 +73,7 @@ class ImportService {
} }
/** /**
* Post orgs csv * Post orgs csv
* Create new runners from csv and insert them (or their teams) into the provided org * 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 * @param id
* @returns ResponseRunner * @returns ResponseRunner
* @throws ApiError * @throws ApiError

View File

@ -6,14 +6,14 @@ import type { UpdatePermission } from '../models/UpdatePermission';
export declare class PermissionService { export declare class PermissionService {
/** /**
* Get all * Get all
* Lists all permissions. * Lists all permissions for all users and groups.
* @returns ResponsePermission * @returns ResponsePermission
* @throws ApiError * @throws ApiError
*/ */
static permissionControllerGetAll(): Promise<Array<ResponsePermission>>; static permissionControllerGetAll(): Promise<Array<ResponsePermission>>;
/** /**
* Post * Post
* Create a new runnerTeam object (id will be generated automagicly). * 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 * @param requestBody CreatePermission
* @returns ResponsePermission * @returns ResponsePermission
* @throws ApiError * @throws ApiError
@ -21,7 +21,7 @@ export declare class PermissionService {
static permissionControllerPost(requestBody?: CreatePermission): Promise<ResponsePermission>; static permissionControllerPost(requestBody?: CreatePermission): Promise<ResponsePermission>;
/** /**
* Get one * Get one
* Returns a permissions of a specified id (if it exists) * Lists all information about the permission whose id got provided.
* @param id * @param id
* @returns ResponsePermission * @returns ResponsePermission
* @throws ApiError * @throws ApiError
@ -29,7 +29,7 @@ export declare class PermissionService {
static permissionControllerGetOne(id: number): Promise<ResponsePermission>; static permissionControllerGetOne(id: number): Promise<ResponsePermission>;
/** /**
* Put * Put
* Update a permission object (id can't be changed). * 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 id
* @param requestBody UpdatePermission * @param requestBody UpdatePermission
* @returns ResponsePrincipal * @returns ResponsePrincipal
@ -38,7 +38,7 @@ export declare class PermissionService {
static permissionControllerPut(id: number, requestBody?: UpdatePermission): Promise<ResponsePrincipal>; static permissionControllerPut(id: number, requestBody?: UpdatePermission): Promise<ResponsePrincipal>;
/** /**
* Remove * Remove
* Delete a specified permission (if it exists). * 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 id
* @param force * @param force
* @returns ResponsePermission * @returns ResponsePermission

View File

@ -5,7 +5,7 @@ const request_1 = require("../core/request");
class PermissionService { class PermissionService {
/** /**
* Get all * Get all
* Lists all permissions. * Lists all permissions for all users and groups.
* @returns ResponsePermission * @returns ResponsePermission
* @throws ApiError * @throws ApiError
*/ */
@ -18,7 +18,7 @@ class PermissionService {
} }
/** /**
* Post * Post
* Create a new runnerTeam object (id will be generated automagicly). * 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 * @param requestBody CreatePermission
* @returns ResponsePermission * @returns ResponsePermission
* @throws ApiError * @throws ApiError
@ -33,7 +33,7 @@ class PermissionService {
} }
/** /**
* Get one * Get one
* Returns a permissions of a specified id (if it exists) * Lists all information about the permission whose id got provided.
* @param id * @param id
* @returns ResponsePermission * @returns ResponsePermission
* @throws ApiError * @throws ApiError
@ -47,7 +47,7 @@ class PermissionService {
} }
/** /**
* Put * Put
* Update a permission object (id can't be changed). * 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 id
* @param requestBody UpdatePermission * @param requestBody UpdatePermission
* @returns ResponsePrincipal * @returns ResponsePrincipal
@ -63,7 +63,7 @@ class PermissionService {
} }
/** /**
* Remove * Remove
* Delete a specified permission (if it exists). * 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 id
* @param force * @param force
* @returns ResponsePermission * @returns ResponsePermission

View File

@ -5,14 +5,14 @@ import type { UpdateRunnerOrganisation } from '../models/UpdateRunnerOrganisatio
export declare class RunnerOrganisationService { export declare class RunnerOrganisationService {
/** /**
* Get all * Get all
* Lists all runnerOrganisations. * Lists all organisations. <br> This includes their address, contact and teams (if existing/associated).
* @returns ResponseRunnerOrganisation * @returns ResponseRunnerOrganisation
* @throws ApiError * @throws ApiError
*/ */
static runnerOrganisationControllerGetAll(): Promise<Array<ResponseRunnerOrganisation>>; static runnerOrganisationControllerGetAll(): Promise<Array<ResponseRunnerOrganisation>>;
/** /**
* Post * Post
* Create a new runnerOrganisation object (id will be generated automagicly). * Create a new organsisation.
* @param requestBody CreateRunnerOrganisation * @param requestBody CreateRunnerOrganisation
* @returns ResponseRunnerOrganisation * @returns ResponseRunnerOrganisation
* @throws ApiError * @throws ApiError
@ -20,7 +20,7 @@ export declare class RunnerOrganisationService {
static runnerOrganisationControllerPost(requestBody?: CreateRunnerOrganisation): Promise<ResponseRunnerOrganisation>; static runnerOrganisationControllerPost(requestBody?: CreateRunnerOrganisation): Promise<ResponseRunnerOrganisation>;
/** /**
* Get one * Get one
* Returns a runnerOrganisation of a specified id (if it exists) * Lists all information about the organisation whose id got provided.
* @param id * @param id
* @returns ResponseRunnerOrganisation * @returns ResponseRunnerOrganisation
* @throws ApiError * @throws ApiError
@ -28,7 +28,7 @@ export declare class RunnerOrganisationService {
static runnerOrganisationControllerGetOne(id: number): Promise<ResponseRunnerOrganisation>; static runnerOrganisationControllerGetOne(id: number): Promise<ResponseRunnerOrganisation>;
/** /**
* Put * Put
* Update a runnerOrganisation object (id can't be changed). * Update the organisation whose id you provided. <br> Please remember that ids can't be changed.
* @param id * @param id
* @param requestBody UpdateRunnerOrganisation * @param requestBody UpdateRunnerOrganisation
* @returns ResponseRunnerOrganisation * @returns ResponseRunnerOrganisation
@ -37,7 +37,7 @@ export declare class RunnerOrganisationService {
static runnerOrganisationControllerPut(id: number, requestBody?: UpdateRunnerOrganisation): Promise<ResponseRunnerOrganisation>; static runnerOrganisationControllerPut(id: number, requestBody?: UpdateRunnerOrganisation): Promise<ResponseRunnerOrganisation>;
/** /**
* Remove * Remove
* Delete a specified runnerOrganisation (if it exists). * Delete the organsisation whose id you provided. <br> If the organisation still has runners and/or teams associated this will fail. <br> To delete the organisation with all associated runners and teams set the force QueryParam to true (cascading deletion might take a while). <br> If no organisation with this id exists it will just return 204(no content).
* @param id * @param id
* @param force * @param force
* @returns ResponseRunnerOrganisation * @returns ResponseRunnerOrganisation

View File

@ -5,7 +5,7 @@ const request_1 = require("../core/request");
class RunnerOrganisationService { class RunnerOrganisationService {
/** /**
* Get all * Get all
* Lists all runnerOrganisations. * Lists all organisations. <br> This includes their address, contact and teams (if existing/associated).
* @returns ResponseRunnerOrganisation * @returns ResponseRunnerOrganisation
* @throws ApiError * @throws ApiError
*/ */
@ -18,7 +18,7 @@ class RunnerOrganisationService {
} }
/** /**
* Post * Post
* Create a new runnerOrganisation object (id will be generated automagicly). * Create a new organsisation.
* @param requestBody CreateRunnerOrganisation * @param requestBody CreateRunnerOrganisation
* @returns ResponseRunnerOrganisation * @returns ResponseRunnerOrganisation
* @throws ApiError * @throws ApiError
@ -33,7 +33,7 @@ class RunnerOrganisationService {
} }
/** /**
* Get one * Get one
* Returns a runnerOrganisation of a specified id (if it exists) * Lists all information about the organisation whose id got provided.
* @param id * @param id
* @returns ResponseRunnerOrganisation * @returns ResponseRunnerOrganisation
* @throws ApiError * @throws ApiError
@ -47,7 +47,7 @@ class RunnerOrganisationService {
} }
/** /**
* Put * Put
* Update a runnerOrganisation object (id can't be changed). * Update the organisation whose id you provided. <br> Please remember that ids can't be changed.
* @param id * @param id
* @param requestBody UpdateRunnerOrganisation * @param requestBody UpdateRunnerOrganisation
* @returns ResponseRunnerOrganisation * @returns ResponseRunnerOrganisation
@ -63,7 +63,7 @@ class RunnerOrganisationService {
} }
/** /**
* Remove * Remove
* Delete a specified runnerOrganisation (if it exists). * Delete the organsisation whose id you provided. <br> If the organisation still has runners and/or teams associated this will fail. <br> To delete the organisation with all associated runners and teams set the force QueryParam to true (cascading deletion might take a while). <br> If no organisation with this id exists it will just return 204(no content).
* @param id * @param id
* @param force * @param force
* @returns ResponseRunnerOrganisation * @returns ResponseRunnerOrganisation

View File

@ -7,14 +7,14 @@ import type { UpdateRunner } from '../models/UpdateRunner';
export declare class RunnerService { export declare class RunnerService {
/** /**
* Get all * Get all
* Lists all runners. * Lists all runners from all teams/orgs. <br> This includes the runner's group and distance ran.
* @returns ResponseRunner * @returns ResponseRunner
* @throws ApiError * @throws ApiError
*/ */
static runnerControllerGetAll(): Promise<Array<ResponseRunner>>; static runnerControllerGetAll(): Promise<Array<ResponseRunner>>;
/** /**
* Post * Post
* Create a new runner object (id will be generated automagicly). * Create a new runner. <br> Please remeber to provide the runner's group's id.
* @param requestBody CreateRunner * @param requestBody CreateRunner
* @returns any * @returns any
* @throws ApiError * @throws ApiError
@ -22,7 +22,7 @@ export declare class RunnerService {
static runnerControllerPost(requestBody?: CreateRunner): Promise<(ResponseRunner | RunnerGroupNeededError | RunnerGroupNotFoundError)>; static runnerControllerPost(requestBody?: CreateRunner): Promise<(ResponseRunner | RunnerGroupNeededError | RunnerGroupNotFoundError)>;
/** /**
* Get one * Get one
* Returns a runner of a specified id (if it exists) * Lists all information about the runner whose id got provided.
* @param id * @param id
* @returns ResponseRunner * @returns ResponseRunner
* @throws ApiError * @throws ApiError
@ -30,7 +30,7 @@ export declare class RunnerService {
static runnerControllerGetOne(id: number): Promise<ResponseRunner>; static runnerControllerGetOne(id: number): Promise<ResponseRunner>;
/** /**
* Put * Put
* Update a runner object (id can't be changed). * Update the runner whose id you provided. <br> Please remember that ids can't be changed.
* @param id * @param id
* @param requestBody UpdateRunner * @param requestBody UpdateRunner
* @returns ResponseRunner * @returns ResponseRunner
@ -39,7 +39,7 @@ export declare class RunnerService {
static runnerControllerPut(id: number, requestBody?: UpdateRunner): Promise<ResponseRunner>; static runnerControllerPut(id: number, requestBody?: UpdateRunner): Promise<ResponseRunner>;
/** /**
* Remove * Remove
* Delete a specified runner (if it exists). * Delete the runner whose id you provided. <br> If no runner with this id exists it will just return 204(no content).
* @param id * @param id
* @param force * @param force
* @returns ResponseRunner * @returns ResponseRunner

View File

@ -5,7 +5,7 @@ const request_1 = require("../core/request");
class RunnerService { class RunnerService {
/** /**
* Get all * Get all
* Lists all runners. * Lists all runners from all teams/orgs. <br> This includes the runner's group and distance ran.
* @returns ResponseRunner * @returns ResponseRunner
* @throws ApiError * @throws ApiError
*/ */
@ -18,7 +18,7 @@ class RunnerService {
} }
/** /**
* Post * Post
* Create a new runner object (id will be generated automagicly). * Create a new runner. <br> Please remeber to provide the runner's group's id.
* @param requestBody CreateRunner * @param requestBody CreateRunner
* @returns any * @returns any
* @throws ApiError * @throws ApiError
@ -33,7 +33,7 @@ class RunnerService {
} }
/** /**
* Get one * Get one
* Returns a runner of a specified id (if it exists) * Lists all information about the runner whose id got provided.
* @param id * @param id
* @returns ResponseRunner * @returns ResponseRunner
* @throws ApiError * @throws ApiError
@ -47,7 +47,7 @@ class RunnerService {
} }
/** /**
* Put * Put
* Update a runner object (id can't be changed). * Update the runner whose id you provided. <br> Please remember that ids can't be changed.
* @param id * @param id
* @param requestBody UpdateRunner * @param requestBody UpdateRunner
* @returns ResponseRunner * @returns ResponseRunner
@ -63,7 +63,7 @@ class RunnerService {
} }
/** /**
* Remove * Remove
* Delete a specified runner (if it exists). * Delete the runner whose id you provided. <br> If no runner with this id exists it will just return 204(no content).
* @param id * @param id
* @param force * @param force
* @returns ResponseRunner * @returns ResponseRunner

View File

@ -5,14 +5,14 @@ import type { UpdateRunnerTeam } from '../models/UpdateRunnerTeam';
export declare class RunnerTeamService { export declare class RunnerTeamService {
/** /**
* Get all * Get all
* Lists all runnerTeams. * Lists all teams. <br> This includes their parent organisation and contact (if existing/associated).
* @returns ResponseRunnerTeam * @returns ResponseRunnerTeam
* @throws ApiError * @throws ApiError
*/ */
static runnerTeamControllerGetAll(): Promise<Array<ResponseRunnerTeam>>; static runnerTeamControllerGetAll(): Promise<Array<ResponseRunnerTeam>>;
/** /**
* Post * Post
* Create a new runnerTeam object (id will be generated automagicly). * Create a new organsisation. <br> Please remember to provide it's parent group's id.
* @param requestBody CreateRunnerTeam * @param requestBody CreateRunnerTeam
* @returns ResponseRunnerTeam * @returns ResponseRunnerTeam
* @throws ApiError * @throws ApiError
@ -20,7 +20,7 @@ export declare class RunnerTeamService {
static runnerTeamControllerPost(requestBody?: CreateRunnerTeam): Promise<ResponseRunnerTeam>; static runnerTeamControllerPost(requestBody?: CreateRunnerTeam): Promise<ResponseRunnerTeam>;
/** /**
* Get one * Get one
* Returns a runnerTeam of a specified id (if it exists) * Lists all information about the team whose id got provided.
* @param id * @param id
* @returns ResponseRunnerTeam * @returns ResponseRunnerTeam
* @throws ApiError * @throws ApiError
@ -28,7 +28,7 @@ export declare class RunnerTeamService {
static runnerTeamControllerGetOne(id: number): Promise<ResponseRunnerTeam>; static runnerTeamControllerGetOne(id: number): Promise<ResponseRunnerTeam>;
/** /**
* Put * Put
* Update a runnerTeam object (id can't be changed). * Update the team whose id you provided. <br> Please remember that ids can't be changed.
* @param id * @param id
* @param requestBody UpdateRunnerTeam * @param requestBody UpdateRunnerTeam
* @returns ResponseRunnerTeam * @returns ResponseRunnerTeam
@ -37,7 +37,7 @@ export declare class RunnerTeamService {
static runnerTeamControllerPut(id: number, requestBody?: UpdateRunnerTeam): Promise<ResponseRunnerTeam>; static runnerTeamControllerPut(id: number, requestBody?: UpdateRunnerTeam): Promise<ResponseRunnerTeam>;
/** /**
* Remove * Remove
* Delete a specified runnerTeam (if it exists). * 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> If no team with this id exists it will just return 204(no content).
* @param id * @param id
* @param force * @param force
* @returns ResponseRunnerTeam * @returns ResponseRunnerTeam

View File

@ -5,7 +5,7 @@ const request_1 = require("../core/request");
class RunnerTeamService { class RunnerTeamService {
/** /**
* Get all * Get all
* Lists all runnerTeams. * Lists all teams. <br> This includes their parent organisation and contact (if existing/associated).
* @returns ResponseRunnerTeam * @returns ResponseRunnerTeam
* @throws ApiError * @throws ApiError
*/ */
@ -18,7 +18,7 @@ class RunnerTeamService {
} }
/** /**
* Post * Post
* Create a new runnerTeam object (id will be generated automagicly). * Create a new organsisation. <br> Please remember to provide it's parent group's id.
* @param requestBody CreateRunnerTeam * @param requestBody CreateRunnerTeam
* @returns ResponseRunnerTeam * @returns ResponseRunnerTeam
* @throws ApiError * @throws ApiError
@ -33,7 +33,7 @@ class RunnerTeamService {
} }
/** /**
* Get one * Get one
* Returns a runnerTeam of a specified id (if it exists) * Lists all information about the team whose id got provided.
* @param id * @param id
* @returns ResponseRunnerTeam * @returns ResponseRunnerTeam
* @throws ApiError * @throws ApiError
@ -47,7 +47,7 @@ class RunnerTeamService {
} }
/** /**
* Put * Put
* Update a runnerTeam object (id can't be changed). * Update the team whose id you provided. <br> Please remember that ids can't be changed.
* @param id * @param id
* @param requestBody UpdateRunnerTeam * @param requestBody UpdateRunnerTeam
* @returns ResponseRunnerTeam * @returns ResponseRunnerTeam
@ -63,7 +63,7 @@ class RunnerTeamService {
} }
/** /**
* Remove * Remove
* Delete a specified runnerTeam (if it exists). * 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> If no team with this id exists it will just return 204(no content).
* @param id * @param id
* @param force * @param force
* @returns ResponseRunnerTeam * @returns ResponseRunnerTeam

View File

@ -1,7 +1,7 @@
export declare class StatusService { export declare class StatusService {
/** /**
* Get * Get
* Lists all tracks. * 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 * @returns any Successful response
* @throws ApiError * @throws ApiError
*/ */

View File

@ -8,7 +8,7 @@ const request_1 = require("../core/request");
class StatusService { class StatusService {
/** /**
* Get * Get
* Lists all tracks. * 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 * @returns any Successful response
* @throws ApiError * @throws ApiError
*/ */

View File

@ -5,13 +5,14 @@ import type { Track } from '../models/Track';
export declare class TrackService { export declare class TrackService {
/** /**
* Get all * Get all
* Lists all tracks.
* @returns ResponseTrack * @returns ResponseTrack
* @throws ApiError * @throws ApiError
*/ */
static trackControllerGetAll(): Promise<Array<ResponseTrack>>; static trackControllerGetAll(): Promise<Array<ResponseTrack>>;
/** /**
* Post * Post
* Create a new track object (id will be generated automagicly). * Create a new track. <br> Please remember that the track's distance must be greater than 0.
* @param requestBody CreateTrack * @param requestBody CreateTrack
* @returns ResponseTrack * @returns ResponseTrack
* @throws ApiError * @throws ApiError
@ -19,7 +20,7 @@ export declare class TrackService {
static trackControllerPost(requestBody?: CreateTrack): Promise<ResponseTrack>; static trackControllerPost(requestBody?: CreateTrack): Promise<ResponseTrack>;
/** /**
* Get one * Get one
* Returns a track of a specified id (if it exists) * Lists all information about the track whose id got provided.
* @param id * @param id
* @returns ResponseTrack * @returns ResponseTrack
* @throws ApiError * @throws ApiError
@ -27,7 +28,7 @@ export declare class TrackService {
static trackControllerGetOne(id: number): Promise<ResponseTrack>; static trackControllerGetOne(id: number): Promise<ResponseTrack>;
/** /**
* Put * Put
* Update a track object (id can't be changed). * Update the track whose id you provided. <br> Please remember that ids can't be changed.
* @param id * @param id
* @param requestBody Track * @param requestBody Track
* @returns ResponseTrack * @returns ResponseTrack
@ -36,7 +37,7 @@ export declare class TrackService {
static trackControllerPut(id: number, requestBody?: Track): Promise<ResponseTrack>; static trackControllerPut(id: number, requestBody?: Track): Promise<ResponseTrack>;
/** /**
* Remove * Remove
* Delete a specified track (if it exists). * 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 id
* @returns ResponseTrack * @returns ResponseTrack
* @returns ResponseEmpty * @returns ResponseEmpty

View File

@ -5,6 +5,7 @@ const request_1 = require("../core/request");
class TrackService { class TrackService {
/** /**
* Get all * Get all
* Lists all tracks.
* @returns ResponseTrack * @returns ResponseTrack
* @throws ApiError * @throws ApiError
*/ */
@ -17,7 +18,7 @@ class TrackService {
} }
/** /**
* Post * Post
* Create a new track object (id will be generated automagicly). * Create a new track. <br> Please remember that the track's distance must be greater than 0.
* @param requestBody CreateTrack * @param requestBody CreateTrack
* @returns ResponseTrack * @returns ResponseTrack
* @throws ApiError * @throws ApiError
@ -32,7 +33,7 @@ class TrackService {
} }
/** /**
* Get one * Get one
* Returns a track of a specified id (if it exists) * Lists all information about the track whose id got provided.
* @param id * @param id
* @returns ResponseTrack * @returns ResponseTrack
* @throws ApiError * @throws ApiError
@ -46,7 +47,7 @@ class TrackService {
} }
/** /**
* Put * Put
* Update a track object (id can't be changed). * Update the track whose id you provided. <br> Please remember that ids can't be changed.
* @param id * @param id
* @param requestBody Track * @param requestBody Track
* @returns ResponseTrack * @returns ResponseTrack
@ -62,7 +63,7 @@ class TrackService {
} }
/** /**
* Remove * Remove
* Delete a specified track (if it exists). * 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 id
* @returns ResponseTrack * @returns ResponseTrack
* @returns ResponseEmpty * @returns ResponseEmpty

View File

@ -6,14 +6,14 @@ import type { UserGroupNotFoundError } from '../models/UserGroupNotFoundError';
export declare class UserGroupService { export declare class UserGroupService {
/** /**
* Get all * Get all
* Lists all usergroups. * Lists all groups. <br> The information provided might change while the project continues to evolve.
* @returns UserGroup * @returns UserGroup
* @throws ApiError * @throws ApiError
*/ */
static userGroupControllerGetAll(): Promise<Array<UserGroup>>; static userGroupControllerGetAll(): Promise<Array<UserGroup>>;
/** /**
* Post * Post
* Create a new usergroup object (id will be generated automagicly). * 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 * @param requestBody CreateUserGroup
* @returns any * @returns any
* @throws ApiError * @throws ApiError
@ -21,7 +21,7 @@ export declare class UserGroupService {
static userGroupControllerPost(requestBody?: CreateUserGroup): Promise<(UserGroup | UserGroupNotFoundError)>; static userGroupControllerPost(requestBody?: CreateUserGroup): Promise<(UserGroup | UserGroupNotFoundError)>;
/** /**
* Get one * Get one
* Returns a usergroup of a specified id (if it exists) * Lists all information about the group whose id got provided. <br> The information provided might change while the project continues to evolve.
* @param id * @param id
* @returns UserGroup * @returns UserGroup
* @throws ApiError * @throws ApiError
@ -29,7 +29,7 @@ export declare class UserGroupService {
static userGroupControllerGetOne(id: number): Promise<UserGroup>; static userGroupControllerGetOne(id: number): Promise<UserGroup>;
/** /**
* Put * Put
* Update a usergroup object (id can't be changed). * 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 id
* @param requestBody UserGroup * @param requestBody UserGroup
* @returns UserGroup * @returns UserGroup
@ -38,7 +38,7 @@ export declare class UserGroupService {
static userGroupControllerPut(id: number, requestBody?: UserGroup): Promise<UserGroup>; static userGroupControllerPut(id: number, requestBody?: UserGroup): Promise<UserGroup>;
/** /**
* Remove * Remove
* Delete a specified usergroup (if it exists). * 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 id
* @param force * @param force
* @returns ResponseUserGroup * @returns ResponseUserGroup

View File

@ -5,7 +5,7 @@ const request_1 = require("../core/request");
class UserGroupService { class UserGroupService {
/** /**
* Get all * Get all
* Lists all usergroups. * Lists all groups. <br> The information provided might change while the project continues to evolve.
* @returns UserGroup * @returns UserGroup
* @throws ApiError * @throws ApiError
*/ */
@ -18,7 +18,7 @@ class UserGroupService {
} }
/** /**
* Post * Post
* Create a new usergroup object (id will be generated automagicly). * 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 * @param requestBody CreateUserGroup
* @returns any * @returns any
* @throws ApiError * @throws ApiError
@ -33,7 +33,7 @@ class UserGroupService {
} }
/** /**
* Get one * Get one
* Returns a usergroup of a specified id (if it exists) * Lists all information about the group whose id got provided. <br> The information provided might change while the project continues to evolve.
* @param id * @param id
* @returns UserGroup * @returns UserGroup
* @throws ApiError * @throws ApiError
@ -47,7 +47,7 @@ class UserGroupService {
} }
/** /**
* Put * Put
* Update a usergroup object (id can't be changed). * 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 id
* @param requestBody UserGroup * @param requestBody UserGroup
* @returns UserGroup * @returns UserGroup
@ -63,7 +63,7 @@ class UserGroupService {
} }
/** /**
* Remove * Remove
* Delete a specified usergroup (if it exists). * 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 id
* @param force * @param force
* @returns ResponseUserGroup * @returns ResponseUserGroup

View File

@ -6,14 +6,14 @@ import type { UserGroupNotFoundError } from '../models/UserGroupNotFoundError';
export declare class UserService { export declare class UserService {
/** /**
* Get all * Get all
* Lists all users. * Lists all users. <br> This includes their groups and permissions directly granted to them (if existing/associated).
* @returns User * @returns User
* @throws ApiError * @throws ApiError
*/ */
static userControllerGetAll(): Promise<Array<User>>; static userControllerGetAll(): Promise<Array<User>>;
/** /**
* Post * Post
* Create a new user object (id will be generated automagicly). * 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 * @param requestBody CreateUser
* @returns any * @returns any
* @throws ApiError * @throws ApiError
@ -21,7 +21,7 @@ export declare class UserService {
static userControllerPost(requestBody?: CreateUser): Promise<(User | UserGroupNotFoundError)>; static userControllerPost(requestBody?: CreateUser): Promise<(User | UserGroupNotFoundError)>;
/** /**
* Get one * Get one
* Returns a user of a specified id (if it exists) * Lists all information about the user whose id got provided. <br> Please remember that only permissions granted directly to the user will show up here, not permissions inherited from groups.
* @param id * @param id
* @returns User * @returns User
* @throws ApiError * @throws ApiError
@ -29,7 +29,7 @@ export declare class UserService {
static userControllerGetOne(id: number): Promise<User>; static userControllerGetOne(id: number): Promise<User>;
/** /**
* Put * Put
* Update a user object (id can't be changed). * 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 id
* @param requestBody UpdateUser * @param requestBody UpdateUser
* @returns User * @returns User
@ -38,7 +38,7 @@ export declare class UserService {
static userControllerPut(id: number, requestBody?: UpdateUser): Promise<User>; static userControllerPut(id: number, requestBody?: UpdateUser): Promise<User>;
/** /**
* Remove * Remove
* Delete a user runner (if it exists). * Delete the user whose id you provided. <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 id
* @param force * @param force
* @returns User * @returns User

View File

@ -5,7 +5,7 @@ const request_1 = require("../core/request");
class UserService { class UserService {
/** /**
* Get all * Get all
* Lists all users. * Lists all users. <br> This includes their groups and permissions directly granted to them (if existing/associated).
* @returns User * @returns User
* @throws ApiError * @throws ApiError
*/ */
@ -18,7 +18,7 @@ class UserService {
} }
/** /**
* Post * Post
* Create a new user object (id will be generated automagicly). * 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 * @param requestBody CreateUser
* @returns any * @returns any
* @throws ApiError * @throws ApiError
@ -33,7 +33,7 @@ class UserService {
} }
/** /**
* Get one * Get one
* Returns a user of a specified id (if it exists) * Lists all information about the user whose id got provided. <br> Please remember that only permissions granted directly to the user will show up here, not permissions inherited from groups.
* @param id * @param id
* @returns User * @returns User
* @throws ApiError * @throws ApiError
@ -47,7 +47,7 @@ class UserService {
} }
/** /**
* Put * Put
* Update a user object (id can't be changed). * 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 id
* @param requestBody UpdateUser * @param requestBody UpdateUser
* @returns User * @returns User
@ -63,7 +63,7 @@ class UserService {
} }
/** /**
* Remove * Remove
* Delete a user runner (if it exists). * Delete the user whose id you provided. <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 id
* @param force * @param force
* @returns User * @returns User

File diff suppressed because one or more lines are too long