From 5b44c086f2ed3ed4c3cdb7268a197e64ae015115 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Wed, 30 Dec 2020 18:01:24 +0000 Subject: [PATCH] new lib version [CI SKIP] --- dist/core/ApiError.d.ts | 16 +- dist/core/ApiError.js | 26 +- dist/core/ApiRequestOptions.d.ts | 22 +- dist/core/ApiRequestOptions.js | 4 +- dist/core/ApiResult.d.ts | 14 +- dist/core/ApiResult.js | 4 +- dist/core/OpenAPI.d.ts | 26 +- dist/core/OpenAPI.js | 24 +- dist/core/request.d.ts | 18 +- dist/core/request.js | 369 +++++++++--------- dist/index.d.ts | 199 ++++++---- dist/index.js | 66 ++-- dist/models/Address.d.ts | 18 +- dist/models/Address.js | 10 +- dist/models/AddressNotFoundError.d.ts | 8 +- dist/models/AddressNotFoundError.js | 10 +- dist/models/AddressWrongTypeError.d.ts | 8 +- dist/models/AddressWrongTypeError.js | 10 +- dist/models/Auth.d.ts | 12 +- dist/models/Auth.js | 10 +- dist/models/CreateAuth.d.ts | 10 +- dist/models/CreateAuth.js | 10 +- dist/models/CreateParticipant.d.ts | 16 +- dist/models/CreateParticipant.js | 10 +- dist/models/CreatePermission.d.ts | 24 ++ dist/models/CreatePermission.js | 28 ++ dist/models/CreateResetToken.d.ts | 4 + ...ExpiredJWTError.js => CreateResetToken.js} | 10 +- dist/models/CreateRunner.d.ts | 18 +- dist/models/CreateRunner.js | 10 +- dist/models/CreateRunnerGroup.d.ts | 8 +- dist/models/CreateRunnerGroup.js | 10 +- dist/models/CreateRunnerOrganisation.d.ts | 10 +- dist/models/CreateRunnerOrganisation.js | 10 +- dist/models/CreateRunnerTeam.d.ts | 10 +- dist/models/CreateRunnerTeam.js | 10 +- dist/models/CreateStatsClient.d.ts | 3 + dist/models/CreateStatsClient.js | 5 + dist/models/CreateTrack.d.ts | 8 +- dist/models/CreateTrack.js | 10 +- dist/models/CreateUser.d.ts | 21 +- dist/models/CreateUser.js | 10 +- dist/models/CreateUserGroup.d.ts | 8 +- dist/models/CreateUserGroup.js | 10 +- dist/models/DistanceDonation.d.ts | 12 +- dist/models/DistanceDonation.js | 10 +- dist/models/Donation.d.ts | 8 +- dist/models/Donation.js | 10 +- dist/models/ExpiredJWTError.d.ts | 4 - dist/models/GroupContact.d.ts | 18 +- dist/models/GroupContact.js | 10 +- dist/models/GroupContactNotFoundError.d.ts | 8 +- dist/models/GroupContactNotFoundError.js | 10 +- dist/models/GroupContactWrongTypeError.d.ts | 8 +- dist/models/GroupContactWrongTypeError.js | 10 +- dist/models/GroupNameNeededError.d.ts | 8 +- dist/models/GroupNameNeededError.js | 10 +- dist/models/HandleLogout.d.ts | 6 +- dist/models/HandleLogout.js | 10 +- dist/models/IllegalJWTError.d.ts | 8 +- dist/models/IllegalJWTError.js | 10 +- dist/models/ImportRunner.d.ts | 7 + dist/models/ImportRunner.js | 5 + dist/models/InvalidCredentialsError.d.ts | 8 +- dist/models/InvalidCredentialsError.js | 10 +- dist/models/JwtNotProvidedError.d.ts | 8 +- dist/models/JwtNotProvidedError.js | 10 +- dist/models/JwtUser.d.ts | 12 + dist/models/JwtUser.js | 5 + dist/models/Logout.d.ts | 6 +- dist/models/Logout.js | 10 +- dist/models/NoPermissionError.d.ts | 8 +- dist/models/NoPermissionError.js | 10 +- dist/models/Participant.d.ts | 16 +- dist/models/Participant.js | 10 +- dist/models/PasswordNeededError.d.ts | 8 +- dist/models/PasswordNeededError.js | 10 +- dist/models/Permission.d.ts | 29 +- dist/models/Permission.js | 33 +- .../models/PermissionIdsNotMatchingError.d.ts | 4 + dist/models/PermissionIdsNotMatchingError.js | 5 + .../models/PermissionNeedsPrincipalError.d.ts | 4 + dist/models/PermissionNeedsPrincipalError.js | 5 + dist/models/PermissionNotFoundError.d.ts | 4 + dist/models/PermissionNotFoundError.js | 5 + dist/models/Principal.d.ts | 3 + dist/models/Principal.js | 5 + dist/models/PrincipalNotFoundError.d.ts | 4 + dist/models/PrincipalNotFoundError.js | 5 + dist/models/PrincipalWrongTypeError.d.ts | 4 + dist/models/PrincipalWrongTypeError.js | 5 + dist/models/RefreshAuth.d.ts | 6 +- dist/models/RefreshAuth.js | 10 +- .../models/RefreshTokenCountInvalidError.d.ts | 8 +- dist/models/RefreshTokenCountInvalidError.js | 10 +- dist/models/ResetAlreadyRequestedError.d.ts | 4 + dist/models/ResetAlreadyRequestedError.js | 5 + dist/models/ResetPassword.d.ts | 4 + dist/models/ResetPassword.js | 5 + dist/models/ResponseEmpty.d.ts | 6 +- dist/models/ResponseEmpty.js | 10 +- dist/models/ResponseParticipant.d.ts | 16 +- dist/models/ResponseParticipant.js | 10 +- dist/models/ResponsePermission.d.ts | 26 ++ dist/models/ResponsePermission.js | 28 ++ dist/models/ResponsePrincipal.d.ts | 3 + dist/models/ResponsePrincipal.js | 5 + dist/models/ResponseRunner.d.ts | 22 +- dist/models/ResponseRunner.js | 10 +- dist/models/ResponseRunnerGroup.d.ts | 12 +- dist/models/ResponseRunnerGroup.js | 10 +- dist/models/ResponseRunnerOrganisation.d.ts | 18 +- dist/models/ResponseRunnerOrganisation.js | 10 +- dist/models/ResponseRunnerTeam.d.ts | 16 +- dist/models/ResponseRunnerTeam.js | 10 +- dist/models/ResponseStats.d.ts | 10 + dist/models/ResponseStats.js | 5 + dist/models/ResponseStatsClient.d.ts | 6 + dist/models/ResponseStatsClient.js | 5 + dist/models/ResponseStatsOrgnisation.d.ts | 6 + dist/models/ResponseStatsOrgnisation.js | 5 + dist/models/ResponseStatsRunner.d.ts | 10 + dist/models/ResponseStatsRunner.js | 5 + dist/models/ResponseStatsTeam.d.ts | 8 + dist/models/ResponseStatsTeam.js | 5 + dist/models/ResponseTrack.d.ts | 10 +- dist/models/ResponseTrack.js | 10 +- dist/models/ResponseUser.d.ts | 13 + dist/models/ResponseUser.js | 5 + dist/models/ResponseUserGroup.d.ts | 6 + dist/models/ResponseUserGroup.js | 5 + dist/models/Runner.d.ts | 21 +- dist/models/Runner.js | 10 +- dist/models/RunnerCard.d.ts | 12 +- dist/models/RunnerCard.js | 10 +- dist/models/RunnerGroup.d.ts | 12 +- dist/models/RunnerGroup.js | 10 +- dist/models/RunnerGroupNeededError.d.ts | 8 +- dist/models/RunnerGroupNeededError.js | 10 +- dist/models/RunnerGroupNotFoundError.d.ts | 8 +- dist/models/RunnerGroupNotFoundError.js | 10 +- dist/models/RunnerIdsNotMatchingError.d.ts | 8 +- dist/models/RunnerIdsNotMatchingError.js | 10 +- dist/models/RunnerNotFoundError.d.ts | 8 +- dist/models/RunnerNotFoundError.js | 10 +- dist/models/RunnerOrganisation.d.ts | 14 +- dist/models/RunnerOrganisation.js | 10 +- .../RunnerOrganisationHasRunnersError.d.ts | 8 +- .../RunnerOrganisationHasRunnersError.js | 10 +- .../RunnerOrganisationHasTeamsError.d.ts | 8 +- .../models/RunnerOrganisationHasTeamsError.js | 10 +- ...RunnerOrganisationIdsNotMatchingError.d.ts | 8 +- .../RunnerOrganisationIdsNotMatchingError.js | 10 +- .../RunnerOrganisationNotFoundError.d.ts | 8 +- .../models/RunnerOrganisationNotFoundError.js | 10 +- .../RunnerOrganisationWrongTypeError.d.ts | 8 +- .../RunnerOrganisationWrongTypeError.js | 10 +- dist/models/RunnerTeam.d.ts | 14 +- dist/models/RunnerTeam.js | 10 +- dist/models/RunnerTeamHasRunnersError.d.ts | 8 +- dist/models/RunnerTeamHasRunnersError.js | 10 +- .../models/RunnerTeamIdsNotMatchingError.d.ts | 8 +- dist/models/RunnerTeamIdsNotMatchingError.js | 10 +- dist/models/RunnerTeamNeedsParentError.d.ts | 8 +- dist/models/RunnerTeamNeedsParentError.js | 10 +- dist/models/RunnerTeamNotFoundError.d.ts | 8 +- dist/models/RunnerTeamNotFoundError.js | 10 +- dist/models/Scan.d.ts | 12 +- dist/models/Scan.js | 10 +- dist/models/ScanStation.d.ts | 14 +- dist/models/ScanStation.js | 10 +- dist/models/StatsClient.d.ts | 7 + dist/models/StatsClient.js | 5 + .../StatsClientIdsNotMatchingError.d.ts | 4 + dist/models/StatsClientIdsNotMatchingError.js | 5 + dist/models/StatsClientNotFoundError.d.ts | 4 + dist/models/StatsClientNotFoundError.js | 5 + dist/models/Track.d.ts | 10 +- dist/models/Track.js | 10 +- dist/models/TrackIdsNotMatchingError.d.ts | 8 +- dist/models/TrackIdsNotMatchingError.js | 10 +- dist/models/TrackNotFoundError.d.ts | 8 +- dist/models/TrackNotFoundError.js | 10 +- dist/models/TrackScan.d.ts | 20 +- dist/models/TrackScan.js | 10 +- dist/models/UpdatePermission.d.ts | 7 + dist/models/UpdatePermission.js | 5 + dist/models/UpdateRunner.d.ts | 22 +- dist/models/UpdateRunner.js | 10 +- dist/models/UpdateRunnerOrganisation.d.ts | 6 + dist/models/UpdateRunnerOrganisation.js | 5 + dist/models/UpdateRunnerTeam.d.ts | 14 +- dist/models/UpdateRunnerTeam.js | 10 +- dist/models/UpdateUser.d.ts | 12 + dist/models/UpdateUser.js | 5 + dist/models/User.d.ts | 34 +- dist/models/User.js | 10 +- dist/models/UserAction.d.ts | 21 +- dist/models/UserAction.js | 22 +- dist/models/UserDisabledError.d.ts | 4 + dist/models/UserDisabledError.js | 5 + dist/models/UserGroup.d.ts | 10 +- dist/models/UserGroup.js | 10 +- dist/models/UserGroupIdsNotMatchingError.d.ts | 8 +- dist/models/UserGroupIdsNotMatchingError.js | 10 +- dist/models/UserGroupNotFoundError.d.ts | 8 +- dist/models/UserGroupNotFoundError.js | 10 +- dist/models/UserIdsNotMatchingError.d.ts | 8 +- dist/models/UserIdsNotMatchingError.js | 10 +- ...NonexistantOrRefreshtokenInvalidError.d.ts | 8 +- ...erNonexistantOrRefreshtokenInvalidError.js | 10 +- dist/models/UserNotFoundError.d.ts | 8 +- dist/models/UserNotFoundError.js | 10 +- ...tFoundOrRefreshTokenCountInvalidError.d.ts | 8 +- ...NotFoundOrRefreshTokenCountInvalidError.js | 10 +- dist/models/UsernameOrEmailNeededError.d.ts | 8 +- dist/models/UsernameOrEmailNeededError.js | 10 +- dist/services/AuthService.d.ts | 99 +++-- dist/services/AuthService.js | 139 ++++--- dist/services/ImportService.d.ts | 55 +++ dist/services/ImportService.js | 103 +++++ dist/services/PermissionService.d.ts | 49 +++ dist/services/PermissionService.js | 84 ++++ dist/services/RunnerOrganisationService.d.ts | 96 ++--- dist/services/RunnerOrganisationService.js | 168 ++++---- dist/services/RunnerService.d.ts | 100 ++--- dist/services/RunnerService.js | 168 ++++---- dist/services/RunnerTeamService.d.ts | 96 ++--- dist/services/RunnerTeamService.js | 168 ++++---- dist/services/StatsClientService.d.ts | 37 ++ dist/services/StatsClientService.js | 64 +++ dist/services/StatsService.d.ts | 62 +++ dist/services/StatsService.js | 111 ++++++ dist/services/StatusService.d.ts | 9 + dist/services/StatusService.js | 23 ++ dist/services/TrackService.d.ts | 94 ++--- dist/services/TrackService.js | 160 ++++---- dist/services/UserGroupService.d.ts | 96 ++--- dist/services/UserGroupService.js | 164 ++++---- dist/services/UserService.d.ts | 96 ++--- dist/services/UserService.js | 164 ++++---- openapi.json | 2 +- package.json | 2 +- 243 files changed, 3198 insertions(+), 2011 deletions(-) create mode 100644 dist/models/CreatePermission.d.ts create mode 100644 dist/models/CreatePermission.js create mode 100644 dist/models/CreateResetToken.d.ts rename dist/models/{ExpiredJWTError.js => CreateResetToken.js} (96%) create mode 100644 dist/models/CreateStatsClient.d.ts create mode 100644 dist/models/CreateStatsClient.js delete mode 100644 dist/models/ExpiredJWTError.d.ts create mode 100644 dist/models/ImportRunner.d.ts create mode 100644 dist/models/ImportRunner.js create mode 100644 dist/models/JwtUser.d.ts create mode 100644 dist/models/JwtUser.js create mode 100644 dist/models/PermissionIdsNotMatchingError.d.ts create mode 100644 dist/models/PermissionIdsNotMatchingError.js create mode 100644 dist/models/PermissionNeedsPrincipalError.d.ts create mode 100644 dist/models/PermissionNeedsPrincipalError.js create mode 100644 dist/models/PermissionNotFoundError.d.ts create mode 100644 dist/models/PermissionNotFoundError.js create mode 100644 dist/models/Principal.d.ts create mode 100644 dist/models/Principal.js create mode 100644 dist/models/PrincipalNotFoundError.d.ts create mode 100644 dist/models/PrincipalNotFoundError.js create mode 100644 dist/models/PrincipalWrongTypeError.d.ts create mode 100644 dist/models/PrincipalWrongTypeError.js create mode 100644 dist/models/ResetAlreadyRequestedError.d.ts create mode 100644 dist/models/ResetAlreadyRequestedError.js create mode 100644 dist/models/ResetPassword.d.ts create mode 100644 dist/models/ResetPassword.js create mode 100644 dist/models/ResponsePermission.d.ts create mode 100644 dist/models/ResponsePermission.js create mode 100644 dist/models/ResponsePrincipal.d.ts create mode 100644 dist/models/ResponsePrincipal.js create mode 100644 dist/models/ResponseStats.d.ts create mode 100644 dist/models/ResponseStats.js create mode 100644 dist/models/ResponseStatsClient.d.ts create mode 100644 dist/models/ResponseStatsClient.js create mode 100644 dist/models/ResponseStatsOrgnisation.d.ts create mode 100644 dist/models/ResponseStatsOrgnisation.js create mode 100644 dist/models/ResponseStatsRunner.d.ts create mode 100644 dist/models/ResponseStatsRunner.js create mode 100644 dist/models/ResponseStatsTeam.d.ts create mode 100644 dist/models/ResponseStatsTeam.js create mode 100644 dist/models/ResponseUser.d.ts create mode 100644 dist/models/ResponseUser.js create mode 100644 dist/models/ResponseUserGroup.d.ts create mode 100644 dist/models/ResponseUserGroup.js create mode 100644 dist/models/StatsClient.d.ts create mode 100644 dist/models/StatsClient.js create mode 100644 dist/models/StatsClientIdsNotMatchingError.d.ts create mode 100644 dist/models/StatsClientIdsNotMatchingError.js create mode 100644 dist/models/StatsClientNotFoundError.d.ts create mode 100644 dist/models/StatsClientNotFoundError.js create mode 100644 dist/models/UpdatePermission.d.ts create mode 100644 dist/models/UpdatePermission.js create mode 100644 dist/models/UpdateRunnerOrganisation.d.ts create mode 100644 dist/models/UpdateRunnerOrganisation.js create mode 100644 dist/models/UpdateUser.d.ts create mode 100644 dist/models/UpdateUser.js create mode 100644 dist/models/UserDisabledError.d.ts create mode 100644 dist/models/UserDisabledError.js create mode 100644 dist/services/ImportService.d.ts create mode 100644 dist/services/ImportService.js create mode 100644 dist/services/PermissionService.d.ts create mode 100644 dist/services/PermissionService.js create mode 100644 dist/services/StatsClientService.d.ts create mode 100644 dist/services/StatsClientService.js create mode 100644 dist/services/StatsService.d.ts create mode 100644 dist/services/StatsService.js create mode 100644 dist/services/StatusService.d.ts create mode 100644 dist/services/StatusService.js diff --git a/dist/core/ApiError.d.ts b/dist/core/ApiError.d.ts index 110e808..39f92d3 100644 --- a/dist/core/ApiError.d.ts +++ b/dist/core/ApiError.d.ts @@ -1,8 +1,8 @@ -import type { ApiResult } from './ApiResult'; -export declare class ApiError extends Error { - readonly url: string; - readonly status: number; - readonly statusText: string; - readonly body: any; - constructor(response: ApiResult, message: string); -} +import type { ApiResult } from './ApiResult'; +export declare class ApiError extends Error { + readonly url: string; + readonly status: number; + readonly statusText: string; + readonly body: any; + constructor(response: ApiResult, message: string); +} diff --git a/dist/core/ApiError.js b/dist/core/ApiError.js index 62d1e82..cfc48a9 100644 --- a/dist/core/ApiError.js +++ b/dist/core/ApiError.js @@ -1,13 +1,13 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ApiError = void 0; -class ApiError extends Error { - constructor(response, message) { - super(message); - this.url = response.url; - this.status = response.status; - this.statusText = response.statusText; - this.body = response.body; - } -} -exports.ApiError = ApiError; +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ApiError = void 0; +class ApiError extends Error { + constructor(response, message) { + super(message); + this.url = response.url; + this.status = response.status; + this.statusText = response.statusText; + this.body = response.body; + } +} +exports.ApiError = ApiError; diff --git a/dist/core/ApiRequestOptions.d.ts b/dist/core/ApiRequestOptions.d.ts index 1b56af2..982050d 100644 --- a/dist/core/ApiRequestOptions.d.ts +++ b/dist/core/ApiRequestOptions.d.ts @@ -1,11 +1,11 @@ -export declare type ApiRequestOptions = { - readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH'; - readonly path: string; - readonly cookies?: Record; - readonly headers?: Record; - readonly query?: Record; - readonly formData?: Record; - readonly body?: any; - readonly responseHeader?: string; - readonly errors?: Record; -}; +export declare type ApiRequestOptions = { + readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH'; + readonly path: string; + readonly cookies?: Record; + readonly headers?: Record; + readonly query?: Record; + readonly formData?: Record; + readonly body?: any; + readonly responseHeader?: string; + readonly errors?: Record; +}; diff --git a/dist/core/ApiRequestOptions.js b/dist/core/ApiRequestOptions.js index ce03781..c8ad2e5 100644 --- a/dist/core/ApiRequestOptions.js +++ b/dist/core/ApiRequestOptions.js @@ -1,2 +1,2 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/core/ApiResult.d.ts b/dist/core/ApiResult.d.ts index 4074da8..e9ed2c2 100644 --- a/dist/core/ApiResult.d.ts +++ b/dist/core/ApiResult.d.ts @@ -1,7 +1,7 @@ -export declare type ApiResult = { - readonly url: string; - readonly ok: boolean; - readonly status: number; - readonly statusText: string; - readonly body: any; -}; +export declare type ApiResult = { + readonly url: string; + readonly ok: boolean; + readonly status: number; + readonly statusText: string; + readonly body: any; +}; diff --git a/dist/core/ApiResult.js b/dist/core/ApiResult.js index ce03781..c8ad2e5 100644 --- a/dist/core/ApiResult.js +++ b/dist/core/ApiResult.js @@ -1,2 +1,2 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/core/OpenAPI.d.ts b/dist/core/OpenAPI.d.ts index e4b89c2..e1df9ae 100644 --- a/dist/core/OpenAPI.d.ts +++ b/dist/core/OpenAPI.d.ts @@ -1,13 +1,13 @@ -declare type Resolver = () => Promise; -declare type Headers = Record; -declare type Config = { - BASE: string; - VERSION: string; - WITH_CREDENTIALS: boolean; - TOKEN?: string | Resolver; - USERNAME?: string | Resolver; - PASSWORD?: string | Resolver; - HEADERS?: Headers | Resolver; -}; -export declare const OpenAPI: Config; -export {}; +declare type Resolver = () => Promise; +declare type Headers = Record; +declare type Config = { + BASE: string; + VERSION: string; + WITH_CREDENTIALS: boolean; + TOKEN?: string | Resolver; + USERNAME?: string | Resolver; + PASSWORD?: string | Resolver; + HEADERS?: Headers | Resolver; +}; +export declare const OpenAPI: Config; +export {}; diff --git a/dist/core/OpenAPI.js b/dist/core/OpenAPI.js index 7f31296..b24e695 100644 --- a/dist/core/OpenAPI.js +++ b/dist/core/OpenAPI.js @@ -1,12 +1,12 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.OpenAPI = void 0; -exports.OpenAPI = { - BASE: '', - VERSION: '1.0.0', - WITH_CREDENTIALS: false, - TOKEN: undefined, - USERNAME: undefined, - PASSWORD: undefined, - HEADERS: undefined, -}; +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OpenAPI = void 0; +exports.OpenAPI = { + BASE: '', + VERSION: '0.0.5', + WITH_CREDENTIALS: false, + TOKEN: undefined, + USERNAME: undefined, + PASSWORD: undefined, + HEADERS: undefined, +}; diff --git a/dist/core/request.d.ts b/dist/core/request.d.ts index fe44b78..10c785c 100644 --- a/dist/core/request.d.ts +++ b/dist/core/request.d.ts @@ -1,9 +1,9 @@ -import type { ApiRequestOptions } from './ApiRequestOptions'; -import type { ApiResult } from './ApiResult'; -/** - * Request using fetch client - * @param options The request options from the the service - * @result ApiResult - * @throws ApiError - */ -export declare function request(options: ApiRequestOptions): Promise; +import type { ApiRequestOptions } from './ApiRequestOptions'; +import type { ApiResult } from './ApiResult'; +/** + * Request using fetch client + * @param options The request options from the the service + * @returns ApiResult + * @throws ApiError + */ +export declare function request(options: ApiRequestOptions): Promise; diff --git a/dist/core/request.js b/dist/core/request.js index f7366e3..7ac80d5 100644 --- a/dist/core/request.js +++ b/dist/core/request.js @@ -1,183 +1,186 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.request = void 0; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -const ApiError_1 = require("./ApiError"); -const OpenAPI_1 = require("./OpenAPI"); -function isDefined(value) { - return value !== undefined && value !== null; -} -function isString(value) { - return typeof value === 'string'; -} -function isStringWithValue(value) { - return isString(value) && value !== ''; -} -function isBlob(value) { - return value instanceof Blob; -} -function getQueryString(params) { - const qs = []; - Object.keys(params).forEach(key => { - const value = params[key]; - if (isDefined(value)) { - if (Array.isArray(value)) { - value.forEach(value => { - qs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`); - }); - } - else { - qs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`); - } - } - }); - if (qs.length > 0) { - return `?${qs.join('&')}`; - } - return ''; -} -function getUrl(options) { - const path = options.path.replace(/[:]/g, '_'); - const url = `${OpenAPI_1.OpenAPI.BASE}${path}`; - if (options.query) { - return `${url}${getQueryString(options.query)}`; - } - return url; -} -function getFormData(params) { - const formData = new FormData(); - Object.keys(params).forEach(key => { - const value = params[key]; - if (isDefined(value)) { - formData.append(key, value); - } - }); - return formData; -} -async function resolve(resolver) { - if (typeof resolver === 'function') { - return resolver(); - } - return resolver; -} -async function getHeaders(options) { - const headers = new Headers({ - Accept: 'application/json', - ...OpenAPI_1.OpenAPI.HEADERS, - ...options.headers, - }); - const token = await resolve(OpenAPI_1.OpenAPI.TOKEN); - const username = await resolve(OpenAPI_1.OpenAPI.USERNAME); - const password = await resolve(OpenAPI_1.OpenAPI.PASSWORD); - if (isStringWithValue(token)) { - headers.append('Authorization', `Bearer ${token}`); - } - if (isStringWithValue(username) && isStringWithValue(password)) { - const credentials = btoa(`${username}:${password}`); - headers.append('Authorization', `Basic ${credentials}`); - } - if (options.body) { - if (isBlob(options.body)) { - headers.append('Content-Type', options.body.type || 'application/octet-stream'); - } - else if (isString(options.body)) { - headers.append('Content-Type', 'text/plain'); - } - else { - headers.append('Content-Type', 'application/json'); - } - } - return headers; -} -function getRequestBody(options) { - if (options.formData) { - return getFormData(options.formData); - } - if (options.body) { - if (isString(options.body) || isBlob(options.body)) { - return options.body; - } - else { - return JSON.stringify(options.body); - } - } - return undefined; -} -async function sendRequest(options, url) { - const request = { - method: options.method, - headers: await getHeaders(options), - body: getRequestBody(options), - }; - return await fetch(url, request); -} -function getResponseHeader(response, responseHeader) { - if (responseHeader) { - const content = response.headers.get(responseHeader); - if (isString(content)) { - return content; - } - } - return null; -} -async function getResponseBody(response) { - try { - const contentType = response.headers.get('Content-Type'); - if (contentType) { - const isJSON = contentType.toLowerCase().startsWith('application/json'); - if (isJSON) { - return await response.json(); - } - else { - return await response.text(); - } - } - } - catch (error) { - console.error(error); - } - return null; -} -function catchErrors(options, result) { - const errors = { - 400: 'Bad Request', - 401: 'Unauthorized', - 403: 'Forbidden', - 404: 'Not Found', - 500: 'Internal Server Error', - 502: 'Bad Gateway', - 503: 'Service Unavailable', - ...options.errors, - }; - const error = errors[result.status]; - if (error) { - throw new ApiError_1.ApiError(result, error); - } - if (!result.ok) { - throw new ApiError_1.ApiError(result, 'Generic Error'); - } -} -/** - * Request using fetch client - * @param options The request options from the the service - * @result ApiResult - * @throws ApiError - */ -async function request(options) { - const url = getUrl(options); - const response = await sendRequest(options, url); - const responseBody = await getResponseBody(response); - const responseHeader = getResponseHeader(response, options.responseHeader); - const result = { - url, - ok: response.ok, - status: response.status, - statusText: response.statusText, - body: responseHeader || responseBody, - }; - catchErrors(options, result); - return result; -} -exports.request = request; +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.request = void 0; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +const ApiError_1 = require("./ApiError"); +const OpenAPI_1 = require("./OpenAPI"); +function isDefined(value) { + return value !== undefined && value !== null; +} +function isString(value) { + return typeof value === 'string'; +} +function isStringWithValue(value) { + return isString(value) && value !== ''; +} +function isBlob(value) { + return value instanceof Blob; +} +function getQueryString(params) { + const qs = []; + Object.keys(params).forEach(key => { + const value = params[key]; + if (isDefined(value)) { + if (Array.isArray(value)) { + value.forEach(value => { + qs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`); + }); + } + else { + qs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`); + } + } + }); + if (qs.length > 0) { + return `?${qs.join('&')}`; + } + return ''; +} +function getUrl(options) { + const path = options.path.replace(/[:]/g, '_'); + const url = `${OpenAPI_1.OpenAPI.BASE}${path}`; + if (options.query) { + return `${url}${getQueryString(options.query)}`; + } + return url; +} +function getFormData(params) { + const formData = new FormData(); + Object.keys(params).forEach(key => { + const value = params[key]; + if (isDefined(value)) { + formData.append(key, value); + } + }); + return formData; +} +async function resolve(resolver) { + if (typeof resolver === 'function') { + return resolver(); + } + return resolver; +} +async function getHeaders(options) { + const headers = new Headers({ + Accept: 'application/json', + ...OpenAPI_1.OpenAPI.HEADERS, + ...options.headers, + }); + const token = await resolve(OpenAPI_1.OpenAPI.TOKEN); + const username = await resolve(OpenAPI_1.OpenAPI.USERNAME); + const password = await resolve(OpenAPI_1.OpenAPI.PASSWORD); + if (isStringWithValue(token)) { + headers.append('Authorization', `Bearer ${token}`); + } + if (isStringWithValue(username) && isStringWithValue(password)) { + const credentials = btoa(`${username}:${password}`); + headers.append('Authorization', `Basic ${credentials}`); + } + if (options.body) { + if (isBlob(options.body)) { + headers.append('Content-Type', options.body.type || 'application/octet-stream'); + } + else if (isString(options.body)) { + headers.append('Content-Type', 'text/plain'); + } + else { + headers.append('Content-Type', 'application/json'); + } + } + return headers; +} +function getRequestBody(options) { + if (options.formData) { + return getFormData(options.formData); + } + if (options.body) { + if (isString(options.body) || isBlob(options.body)) { + return options.body; + } + else { + return JSON.stringify(options.body); + } + } + return undefined; +} +async function sendRequest(options, url) { + const request = { + method: options.method, + headers: await getHeaders(options), + body: getRequestBody(options), + }; + if (OpenAPI_1.OpenAPI.WITH_CREDENTIALS) { + request.credentials = 'include'; + } + return await fetch(url, request); +} +function getResponseHeader(response, responseHeader) { + if (responseHeader) { + const content = response.headers.get(responseHeader); + if (isString(content)) { + return content; + } + } + return null; +} +async function getResponseBody(response) { + try { + const contentType = response.headers.get('Content-Type'); + if (contentType) { + const isJSON = contentType.toLowerCase().startsWith('application/json'); + if (isJSON) { + return await response.json(); + } + else { + return await response.text(); + } + } + } + catch (error) { + console.error(error); + } + return null; +} +function catchErrors(options, result) { + const errors = { + 400: 'Bad Request', + 401: 'Unauthorized', + 403: 'Forbidden', + 404: 'Not Found', + 500: 'Internal Server Error', + 502: 'Bad Gateway', + 503: 'Service Unavailable', + ...options.errors, + }; + const error = errors[result.status]; + if (error) { + throw new ApiError_1.ApiError(result, error); + } + if (!result.ok) { + throw new ApiError_1.ApiError(result, 'Generic Error'); + } +} +/** + * Request using fetch client + * @param options The request options from the the service + * @returns ApiResult + * @throws ApiError + */ +async function request(options) { + const url = getUrl(options); + const response = await sendRequest(options, url); + const responseBody = await getResponseBody(response); + const responseHeader = getResponseHeader(response, options.responseHeader); + const result = { + url, + ok: response.ok, + status: response.status, + statusText: response.statusText, + body: responseHeader || responseBody, + }; + catchErrors(options, result); + return result; +} +exports.request = request; diff --git a/dist/index.d.ts b/dist/index.d.ts index 267e480..802e65f 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1,83 +1,116 @@ -export { ApiError } from './core/ApiError'; -export { OpenAPI } from './core/OpenAPI'; -export type { Address } from './models/Address'; -export type { AddressNotFoundError } from './models/AddressNotFoundError'; -export type { AddressWrongTypeError } from './models/AddressWrongTypeError'; -export type { Auth } from './models/Auth'; -export type { CreateAuth } from './models/CreateAuth'; -export type { CreateParticipant } from './models/CreateParticipant'; -export type { CreateRunner } from './models/CreateRunner'; -export type { CreateRunnerGroup } from './models/CreateRunnerGroup'; -export type { CreateRunnerOrganisation } from './models/CreateRunnerOrganisation'; -export type { CreateRunnerTeam } from './models/CreateRunnerTeam'; -export type { CreateTrack } from './models/CreateTrack'; -export type { CreateUser } from './models/CreateUser'; -export type { CreateUserGroup } from './models/CreateUserGroup'; -export type { DistanceDonation } from './models/DistanceDonation'; -export type { Donation } from './models/Donation'; -export type { ExpiredJWTError } from './models/ExpiredJWTError'; -export type { GroupContact } from './models/GroupContact'; -export type { GroupContactNotFoundError } from './models/GroupContactNotFoundError'; -export type { GroupContactWrongTypeError } from './models/GroupContactWrongTypeError'; -export type { GroupNameNeededError } from './models/GroupNameNeededError'; -export type { HandleLogout } from './models/HandleLogout'; -export type { IllegalJWTError } from './models/IllegalJWTError'; -export type { InvalidCredentialsError } from './models/InvalidCredentialsError'; -export type { JwtNotProvidedError } from './models/JwtNotProvidedError'; -export type { Logout } from './models/Logout'; -export type { NoPermissionError } from './models/NoPermissionError'; -export type { Participant } from './models/Participant'; -export type { PasswordNeededError } from './models/PasswordNeededError'; -export type { Permission } from './models/Permission'; -export type { RefreshAuth } from './models/RefreshAuth'; -export type { RefreshTokenCountInvalidError } from './models/RefreshTokenCountInvalidError'; -export type { ResponseEmpty } from './models/ResponseEmpty'; -export type { ResponseParticipant } from './models/ResponseParticipant'; -export type { ResponseRunner } from './models/ResponseRunner'; -export type { ResponseRunnerGroup } from './models/ResponseRunnerGroup'; -export type { ResponseRunnerOrganisation } from './models/ResponseRunnerOrganisation'; -export type { ResponseRunnerTeam } from './models/ResponseRunnerTeam'; -export type { ResponseTrack } from './models/ResponseTrack'; -export type { Runner } from './models/Runner'; -export type { RunnerCard } from './models/RunnerCard'; -export type { RunnerGroup } from './models/RunnerGroup'; -export type { RunnerGroupNeededError } from './models/RunnerGroupNeededError'; -export type { RunnerGroupNotFoundError } from './models/RunnerGroupNotFoundError'; -export type { RunnerIdsNotMatchingError } from './models/RunnerIdsNotMatchingError'; -export type { RunnerNotFoundError } from './models/RunnerNotFoundError'; -export type { RunnerOrganisation } from './models/RunnerOrganisation'; -export type { RunnerOrganisationHasRunnersError } from './models/RunnerOrganisationHasRunnersError'; -export type { RunnerOrganisationHasTeamsError } from './models/RunnerOrganisationHasTeamsError'; -export type { RunnerOrganisationIdsNotMatchingError } from './models/RunnerOrganisationIdsNotMatchingError'; -export type { RunnerOrganisationNotFoundError } from './models/RunnerOrganisationNotFoundError'; -export type { RunnerOrganisationWrongTypeError } from './models/RunnerOrganisationWrongTypeError'; -export type { RunnerTeam } from './models/RunnerTeam'; -export type { RunnerTeamHasRunnersError } from './models/RunnerTeamHasRunnersError'; -export type { RunnerTeamIdsNotMatchingError } from './models/RunnerTeamIdsNotMatchingError'; -export type { RunnerTeamNeedsParentError } from './models/RunnerTeamNeedsParentError'; -export type { RunnerTeamNotFoundError } from './models/RunnerTeamNotFoundError'; -export type { Scan } from './models/Scan'; -export type { ScanStation } from './models/ScanStation'; -export type { Track } from './models/Track'; -export type { TrackIdsNotMatchingError } from './models/TrackIdsNotMatchingError'; -export type { TrackNotFoundError } from './models/TrackNotFoundError'; -export type { TrackScan } from './models/TrackScan'; -export type { UpdateRunner } from './models/UpdateRunner'; -export type { UpdateRunnerTeam } from './models/UpdateRunnerTeam'; -export type { User } from './models/User'; -export type { UserAction } from './models/UserAction'; -export type { UserGroup } from './models/UserGroup'; -export type { UserGroupIdsNotMatchingError } from './models/UserGroupIdsNotMatchingError'; -export type { UserGroupNotFoundError } from './models/UserGroupNotFoundError'; -export type { UserIdsNotMatchingError } from './models/UserIdsNotMatchingError'; -export type { UsernameOrEmailNeededError } from './models/UsernameOrEmailNeededError'; -export type { UserNonexistantOrRefreshtokenInvalidError } from './models/UserNonexistantOrRefreshtokenInvalidError'; -export type { UserNotFoundError } from './models/UserNotFoundError'; -export type { UserNotFoundOrRefreshTokenCountInvalidError } from './models/UserNotFoundOrRefreshTokenCountInvalidError'; -export { AuthService } from './services/AuthService'; -export { RunnerOrganisationService } from './services/RunnerOrganisationService'; -export { RunnerService } from './services/RunnerService'; -export { RunnerTeamService } from './services/RunnerTeamService'; -export { TrackService } from './services/TrackService'; -export { UserGroupService } from './services/UserGroupService'; -export { UserService } from './services/UserService'; +export { ApiError } from './core/ApiError'; +export { OpenAPI } from './core/OpenAPI'; +export type { Address } from './models/Address'; +export type { AddressNotFoundError } from './models/AddressNotFoundError'; +export type { AddressWrongTypeError } from './models/AddressWrongTypeError'; +export type { Auth } from './models/Auth'; +export type { CreateAuth } from './models/CreateAuth'; +export type { CreateParticipant } from './models/CreateParticipant'; +export { CreatePermission } from './models/CreatePermission'; +export type { CreateResetToken } from './models/CreateResetToken'; +export type { CreateRunner } from './models/CreateRunner'; +export type { CreateRunnerGroup } from './models/CreateRunnerGroup'; +export type { CreateRunnerOrganisation } from './models/CreateRunnerOrganisation'; +export type { CreateRunnerTeam } from './models/CreateRunnerTeam'; +export type { CreateStatsClient } from './models/CreateStatsClient'; +export type { CreateTrack } from './models/CreateTrack'; +export type { CreateUser } from './models/CreateUser'; +export type { CreateUserGroup } from './models/CreateUserGroup'; +export type { DistanceDonation } from './models/DistanceDonation'; +export type { Donation } from './models/Donation'; +export type { GroupContact } from './models/GroupContact'; +export type { GroupContactNotFoundError } from './models/GroupContactNotFoundError'; +export type { GroupContactWrongTypeError } from './models/GroupContactWrongTypeError'; +export type { GroupNameNeededError } from './models/GroupNameNeededError'; +export type { HandleLogout } from './models/HandleLogout'; +export type { IllegalJWTError } from './models/IllegalJWTError'; +export type { ImportRunner } from './models/ImportRunner'; +export type { InvalidCredentialsError } from './models/InvalidCredentialsError'; +export type { JwtNotProvidedError } from './models/JwtNotProvidedError'; +export type { JwtUser } from './models/JwtUser'; +export type { Logout } from './models/Logout'; +export type { NoPermissionError } from './models/NoPermissionError'; +export type { Participant } from './models/Participant'; +export type { PasswordNeededError } from './models/PasswordNeededError'; +export { Permission } from './models/Permission'; +export type { PermissionIdsNotMatchingError } from './models/PermissionIdsNotMatchingError'; +export type { PermissionNeedsPrincipalError } from './models/PermissionNeedsPrincipalError'; +export type { PermissionNotFoundError } from './models/PermissionNotFoundError'; +export type { Principal } from './models/Principal'; +export type { PrincipalNotFoundError } from './models/PrincipalNotFoundError'; +export type { PrincipalWrongTypeError } from './models/PrincipalWrongTypeError'; +export type { RefreshAuth } from './models/RefreshAuth'; +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 { ResponseParticipant } from './models/ResponseParticipant'; +export { ResponsePermission } from './models/ResponsePermission'; +export type { ResponsePrincipal } from './models/ResponsePrincipal'; +export type { ResponseRunner } from './models/ResponseRunner'; +export type { ResponseRunnerGroup } from './models/ResponseRunnerGroup'; +export type { ResponseRunnerOrganisation } from './models/ResponseRunnerOrganisation'; +export type { ResponseRunnerTeam } from './models/ResponseRunnerTeam'; +export type { ResponseStats } from './models/ResponseStats'; +export type { ResponseStatsClient } from './models/ResponseStatsClient'; +export type { ResponseStatsOrgnisation } from './models/ResponseStatsOrgnisation'; +export type { ResponseStatsRunner } from './models/ResponseStatsRunner'; +export type { ResponseStatsTeam } from './models/ResponseStatsTeam'; +export type { ResponseTrack } from './models/ResponseTrack'; +export type { ResponseUser } from './models/ResponseUser'; +export type { ResponseUserGroup } from './models/ResponseUserGroup'; +export type { Runner } from './models/Runner'; +export type { RunnerCard } from './models/RunnerCard'; +export type { RunnerGroup } from './models/RunnerGroup'; +export type { RunnerGroupNeededError } from './models/RunnerGroupNeededError'; +export type { RunnerGroupNotFoundError } from './models/RunnerGroupNotFoundError'; +export type { RunnerIdsNotMatchingError } from './models/RunnerIdsNotMatchingError'; +export type { RunnerNotFoundError } from './models/RunnerNotFoundError'; +export type { RunnerOrganisation } from './models/RunnerOrganisation'; +export type { RunnerOrganisationHasRunnersError } from './models/RunnerOrganisationHasRunnersError'; +export type { RunnerOrganisationHasTeamsError } from './models/RunnerOrganisationHasTeamsError'; +export type { RunnerOrganisationIdsNotMatchingError } from './models/RunnerOrganisationIdsNotMatchingError'; +export type { RunnerOrganisationNotFoundError } from './models/RunnerOrganisationNotFoundError'; +export type { RunnerOrganisationWrongTypeError } from './models/RunnerOrganisationWrongTypeError'; +export type { RunnerTeam } from './models/RunnerTeam'; +export type { RunnerTeamHasRunnersError } from './models/RunnerTeamHasRunnersError'; +export type { RunnerTeamIdsNotMatchingError } from './models/RunnerTeamIdsNotMatchingError'; +export type { RunnerTeamNeedsParentError } from './models/RunnerTeamNeedsParentError'; +export type { RunnerTeamNotFoundError } from './models/RunnerTeamNotFoundError'; +export type { Scan } from './models/Scan'; +export type { ScanStation } from './models/ScanStation'; +export type { StatsClient } from './models/StatsClient'; +export type { StatsClientIdsNotMatchingError } from './models/StatsClientIdsNotMatchingError'; +export type { StatsClientNotFoundError } from './models/StatsClientNotFoundError'; +export type { Track } from './models/Track'; +export type { TrackIdsNotMatchingError } from './models/TrackIdsNotMatchingError'; +export type { TrackNotFoundError } from './models/TrackNotFoundError'; +export type { TrackScan } from './models/TrackScan'; +export type { UpdatePermission } from './models/UpdatePermission'; +export type { UpdateRunner } from './models/UpdateRunner'; +export type { UpdateRunnerOrganisation } from './models/UpdateRunnerOrganisation'; +export type { UpdateRunnerTeam } from './models/UpdateRunnerTeam'; +export type { UpdateUser } from './models/UpdateUser'; +export type { User } from './models/User'; +export { UserAction } from './models/UserAction'; +export type { UserDisabledError } from './models/UserDisabledError'; +export type { UserGroup } from './models/UserGroup'; +export type { UserGroupIdsNotMatchingError } from './models/UserGroupIdsNotMatchingError'; +export type { UserGroupNotFoundError } from './models/UserGroupNotFoundError'; +export type { UserIdsNotMatchingError } from './models/UserIdsNotMatchingError'; +export type { UsernameOrEmailNeededError } from './models/UsernameOrEmailNeededError'; +export type { UserNonexistantOrRefreshtokenInvalidError } from './models/UserNonexistantOrRefreshtokenInvalidError'; +export type { UserNotFoundError } from './models/UserNotFoundError'; +export type { UserNotFoundOrRefreshTokenCountInvalidError } from './models/UserNotFoundOrRefreshTokenCountInvalidError'; +export { AuthService } from './services/AuthService'; +export { ImportService } from './services/ImportService'; +export { PermissionService } from './services/PermissionService'; +export { RunnerOrganisationService } from './services/RunnerOrganisationService'; +export { RunnerService } from './services/RunnerService'; +export { RunnerTeamService } from './services/RunnerTeamService'; +export { StatsClientService } from './services/StatsClientService'; +export { StatsService } from './services/StatsService'; +export { StatusService } from './services/StatusService'; +export { TrackService } from './services/TrackService'; +export { UserGroupService } from './services/UserGroupService'; +export { UserService } from './services/UserService'; diff --git a/dist/index.js b/dist/index.js index 5386138..a811ee8 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,24 +1,42 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UserService = exports.UserGroupService = exports.TrackService = exports.RunnerTeamService = exports.RunnerService = exports.RunnerOrganisationService = exports.AuthService = exports.OpenAPI = exports.ApiError = void 0; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -var ApiError_1 = require("./core/ApiError"); -Object.defineProperty(exports, "ApiError", { enumerable: true, get: function () { return ApiError_1.ApiError; } }); -var OpenAPI_1 = require("./core/OpenAPI"); -Object.defineProperty(exports, "OpenAPI", { enumerable: true, get: function () { return OpenAPI_1.OpenAPI; } }); -var AuthService_1 = require("./services/AuthService"); -Object.defineProperty(exports, "AuthService", { enumerable: true, get: function () { return AuthService_1.AuthService; } }); -var RunnerOrganisationService_1 = require("./services/RunnerOrganisationService"); -Object.defineProperty(exports, "RunnerOrganisationService", { enumerable: true, get: function () { return RunnerOrganisationService_1.RunnerOrganisationService; } }); -var RunnerService_1 = require("./services/RunnerService"); -Object.defineProperty(exports, "RunnerService", { enumerable: true, get: function () { return RunnerService_1.RunnerService; } }); -var RunnerTeamService_1 = require("./services/RunnerTeamService"); -Object.defineProperty(exports, "RunnerTeamService", { enumerable: true, get: function () { return RunnerTeamService_1.RunnerTeamService; } }); -var TrackService_1 = require("./services/TrackService"); -Object.defineProperty(exports, "TrackService", { enumerable: true, get: function () { return TrackService_1.TrackService; } }); -var UserGroupService_1 = require("./services/UserGroupService"); -Object.defineProperty(exports, "UserGroupService", { enumerable: true, get: function () { return UserGroupService_1.UserGroupService; } }); -var UserService_1 = require("./services/UserService"); -Object.defineProperty(exports, "UserService", { enumerable: true, get: function () { return UserService_1.UserService; } }); +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UserService = exports.UserGroupService = exports.TrackService = exports.StatusService = exports.StatsService = exports.StatsClientService = exports.RunnerTeamService = exports.RunnerService = exports.RunnerOrganisationService = exports.PermissionService = exports.ImportService = exports.AuthService = exports.UserAction = exports.ResponsePermission = exports.Permission = exports.CreatePermission = exports.OpenAPI = exports.ApiError = void 0; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +var ApiError_1 = require("./core/ApiError"); +Object.defineProperty(exports, "ApiError", { enumerable: true, get: function () { return ApiError_1.ApiError; } }); +var OpenAPI_1 = require("./core/OpenAPI"); +Object.defineProperty(exports, "OpenAPI", { enumerable: true, get: function () { return OpenAPI_1.OpenAPI; } }); +var CreatePermission_1 = require("./models/CreatePermission"); +Object.defineProperty(exports, "CreatePermission", { enumerable: true, get: function () { return CreatePermission_1.CreatePermission; } }); +var Permission_1 = require("./models/Permission"); +Object.defineProperty(exports, "Permission", { enumerable: true, get: function () { return Permission_1.Permission; } }); +var ResponsePermission_1 = require("./models/ResponsePermission"); +Object.defineProperty(exports, "ResponsePermission", { enumerable: true, get: function () { return ResponsePermission_1.ResponsePermission; } }); +var UserAction_1 = require("./models/UserAction"); +Object.defineProperty(exports, "UserAction", { enumerable: true, get: function () { return UserAction_1.UserAction; } }); +var AuthService_1 = require("./services/AuthService"); +Object.defineProperty(exports, "AuthService", { enumerable: true, get: function () { return AuthService_1.AuthService; } }); +var ImportService_1 = require("./services/ImportService"); +Object.defineProperty(exports, "ImportService", { enumerable: true, get: function () { return ImportService_1.ImportService; } }); +var PermissionService_1 = require("./services/PermissionService"); +Object.defineProperty(exports, "PermissionService", { enumerable: true, get: function () { return PermissionService_1.PermissionService; } }); +var RunnerOrganisationService_1 = require("./services/RunnerOrganisationService"); +Object.defineProperty(exports, "RunnerOrganisationService", { enumerable: true, get: function () { return RunnerOrganisationService_1.RunnerOrganisationService; } }); +var RunnerService_1 = require("./services/RunnerService"); +Object.defineProperty(exports, "RunnerService", { enumerable: true, get: function () { return RunnerService_1.RunnerService; } }); +var RunnerTeamService_1 = require("./services/RunnerTeamService"); +Object.defineProperty(exports, "RunnerTeamService", { enumerable: true, get: function () { return RunnerTeamService_1.RunnerTeamService; } }); +var StatsClientService_1 = require("./services/StatsClientService"); +Object.defineProperty(exports, "StatsClientService", { enumerable: true, get: function () { return StatsClientService_1.StatsClientService; } }); +var StatsService_1 = require("./services/StatsService"); +Object.defineProperty(exports, "StatsService", { enumerable: true, get: function () { return StatsService_1.StatsService; } }); +var StatusService_1 = require("./services/StatusService"); +Object.defineProperty(exports, "StatusService", { enumerable: true, get: function () { return StatusService_1.StatusService; } }); +var TrackService_1 = require("./services/TrackService"); +Object.defineProperty(exports, "TrackService", { enumerable: true, get: function () { return TrackService_1.TrackService; } }); +var UserGroupService_1 = require("./services/UserGroupService"); +Object.defineProperty(exports, "UserGroupService", { enumerable: true, get: function () { return UserGroupService_1.UserGroupService; } }); +var UserService_1 = require("./services/UserService"); +Object.defineProperty(exports, "UserService", { enumerable: true, get: function () { return UserService_1.UserService; } }); diff --git a/dist/models/Address.d.ts b/dist/models/Address.d.ts index 05fdd58..5e87a4c 100644 --- a/dist/models/Address.d.ts +++ b/dist/models/Address.d.ts @@ -1,9 +1,9 @@ -export declare type Address = { - id: number; - description?: string; - address1: string; - address2?: string; - postalcode: string; - city: string; - country: string; -}; +export declare type Address = { + id: number; + description?: string; + address1: string; + address2?: string; + postalcode: string; + city: string; + country: string; +}; diff --git a/dist/models/Address.js b/dist/models/Address.js index 27bdcf1..1e550d8 100644 --- a/dist/models/Address.js +++ b/dist/models/Address.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/AddressNotFoundError.d.ts b/dist/models/AddressNotFoundError.d.ts index 0bcf25b..76b5091 100644 --- a/dist/models/AddressNotFoundError.d.ts +++ b/dist/models/AddressNotFoundError.d.ts @@ -1,4 +1,4 @@ -export declare type AddressNotFoundError = { - name: string; - message: string; -}; +export declare type AddressNotFoundError = { + name: string; + message: string; +}; diff --git a/dist/models/AddressNotFoundError.js b/dist/models/AddressNotFoundError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/AddressNotFoundError.js +++ b/dist/models/AddressNotFoundError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/AddressWrongTypeError.d.ts b/dist/models/AddressWrongTypeError.d.ts index 14f6935..a5bedac 100644 --- a/dist/models/AddressWrongTypeError.d.ts +++ b/dist/models/AddressWrongTypeError.d.ts @@ -1,4 +1,4 @@ -export declare type AddressWrongTypeError = { - name: string; - message: string; -}; +export declare type AddressWrongTypeError = { + name: string; + message: string; +}; diff --git a/dist/models/AddressWrongTypeError.js b/dist/models/AddressWrongTypeError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/AddressWrongTypeError.js +++ b/dist/models/AddressWrongTypeError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/Auth.d.ts b/dist/models/Auth.d.ts index 85555d5..6af61d8 100644 --- a/dist/models/Auth.d.ts +++ b/dist/models/Auth.d.ts @@ -1,6 +1,6 @@ -export declare type Auth = { - access_token: string; - refresh_token: string; - access_token_expires_at: number; - refresh_token_expires_at: number; -}; +export declare type Auth = { + access_token: string; + refresh_token: string; + access_token_expires_at: number; + refresh_token_expires_at: number; +}; diff --git a/dist/models/Auth.js b/dist/models/Auth.js index 27bdcf1..1e550d8 100644 --- a/dist/models/Auth.js +++ b/dist/models/Auth.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/CreateAuth.d.ts b/dist/models/CreateAuth.d.ts index f44f55f..be72ec6 100644 --- a/dist/models/CreateAuth.d.ts +++ b/dist/models/CreateAuth.d.ts @@ -1,5 +1,5 @@ -export declare type CreateAuth = { - username?: string; - password: string; - email?: string; -}; +export declare type CreateAuth = { + username?: string; + email?: string; + password: string; +}; diff --git a/dist/models/CreateAuth.js b/dist/models/CreateAuth.js index 27bdcf1..1e550d8 100644 --- a/dist/models/CreateAuth.js +++ b/dist/models/CreateAuth.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/CreateParticipant.d.ts b/dist/models/CreateParticipant.d.ts index b22a2cb..248394a 100644 --- a/dist/models/CreateParticipant.d.ts +++ b/dist/models/CreateParticipant.d.ts @@ -1,8 +1,8 @@ -export declare type CreateParticipant = { - firstname: string; - middlename?: string; - lastname: string; - phone?: string; - email?: string; - address?: number; -}; +export declare type CreateParticipant = { + firstname: string; + middlename?: string; + lastname: string; + phone?: string; + email?: string; + address?: number; +}; diff --git a/dist/models/CreateParticipant.js b/dist/models/CreateParticipant.js index 27bdcf1..1e550d8 100644 --- a/dist/models/CreateParticipant.js +++ b/dist/models/CreateParticipant.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/CreatePermission.d.ts b/dist/models/CreatePermission.d.ts new file mode 100644 index 0000000..0842eef --- /dev/null +++ b/dist/models/CreatePermission.d.ts @@ -0,0 +1,24 @@ +export declare type CreatePermission = { + principal: number; + target: CreatePermission.target; + action: CreatePermission.action; +}; +export declare namespace CreatePermission { + enum target { + RUNNER = "RUNNER", + ORGANISATION = "ORGANISATION", + TEAM = "TEAM", + TRACK = "TRACK", + USER = "USER", + USERGROUP = "USERGROUP", + PERMISSION = "PERMISSION", + STATSCLIENT = "STATSCLIENT" + } + enum action { + GET = "GET", + CREATE = "CREATE", + UPDATE = "UPDATE", + DELETE = "DELETE", + IMPORT = "IMPORT" + } +} diff --git a/dist/models/CreatePermission.js b/dist/models/CreatePermission.js new file mode 100644 index 0000000..45f8b6d --- /dev/null +++ b/dist/models/CreatePermission.js @@ -0,0 +1,28 @@ +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreatePermission = void 0; +var CreatePermission; +(function (CreatePermission) { + let target; + (function (target) { + target["RUNNER"] = "RUNNER"; + target["ORGANISATION"] = "ORGANISATION"; + target["TEAM"] = "TEAM"; + target["TRACK"] = "TRACK"; + target["USER"] = "USER"; + target["USERGROUP"] = "USERGROUP"; + target["PERMISSION"] = "PERMISSION"; + target["STATSCLIENT"] = "STATSCLIENT"; + })(target = CreatePermission.target || (CreatePermission.target = {})); + let action; + (function (action) { + action["GET"] = "GET"; + action["CREATE"] = "CREATE"; + action["UPDATE"] = "UPDATE"; + action["DELETE"] = "DELETE"; + action["IMPORT"] = "IMPORT"; + })(action = CreatePermission.action || (CreatePermission.action = {})); +})(CreatePermission = exports.CreatePermission || (exports.CreatePermission = {})); diff --git a/dist/models/CreateResetToken.d.ts b/dist/models/CreateResetToken.d.ts new file mode 100644 index 0000000..364041f --- /dev/null +++ b/dist/models/CreateResetToken.d.ts @@ -0,0 +1,4 @@ +export declare type CreateResetToken = { + username?: string; + email?: string; +}; diff --git a/dist/models/ExpiredJWTError.js b/dist/models/CreateResetToken.js similarity index 96% rename from dist/models/ExpiredJWTError.js rename to dist/models/CreateResetToken.js index 27bdcf1..1e550d8 100644 --- a/dist/models/ExpiredJWTError.js +++ b/dist/models/CreateResetToken.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/CreateRunner.d.ts b/dist/models/CreateRunner.d.ts index 39e9c54..53849d5 100644 --- a/dist/models/CreateRunner.d.ts +++ b/dist/models/CreateRunner.d.ts @@ -1,9 +1,9 @@ -export declare type CreateRunner = { - group: number; - firstname: string; - middlename?: string; - lastname: string; - phone?: string; - email?: string; - address?: number; -}; +export declare type CreateRunner = { + group: number; + firstname: string; + middlename?: string; + lastname: string; + phone?: string; + email?: string; + address?: number; +}; diff --git a/dist/models/CreateRunner.js b/dist/models/CreateRunner.js index 27bdcf1..1e550d8 100644 --- a/dist/models/CreateRunner.js +++ b/dist/models/CreateRunner.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/CreateRunnerGroup.d.ts b/dist/models/CreateRunnerGroup.d.ts index 2341f7b..1eb3d0f 100644 --- a/dist/models/CreateRunnerGroup.d.ts +++ b/dist/models/CreateRunnerGroup.d.ts @@ -1,4 +1,4 @@ -export declare type CreateRunnerGroup = { - name: string; - contact?: number; -}; +export declare type CreateRunnerGroup = { + name: string; + contact?: number; +}; diff --git a/dist/models/CreateRunnerGroup.js b/dist/models/CreateRunnerGroup.js index 27bdcf1..1e550d8 100644 --- a/dist/models/CreateRunnerGroup.js +++ b/dist/models/CreateRunnerGroup.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/CreateRunnerOrganisation.d.ts b/dist/models/CreateRunnerOrganisation.d.ts index 41b1aa6..1382366 100644 --- a/dist/models/CreateRunnerOrganisation.d.ts +++ b/dist/models/CreateRunnerOrganisation.d.ts @@ -1,5 +1,5 @@ -export declare type CreateRunnerOrganisation = { - address?: number; - name: string; - contact?: number; -}; +export declare type CreateRunnerOrganisation = { + address?: number; + name: string; + contact?: number; +}; diff --git a/dist/models/CreateRunnerOrganisation.js b/dist/models/CreateRunnerOrganisation.js index 27bdcf1..1e550d8 100644 --- a/dist/models/CreateRunnerOrganisation.js +++ b/dist/models/CreateRunnerOrganisation.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/CreateRunnerTeam.d.ts b/dist/models/CreateRunnerTeam.d.ts index 8addd5c..afe890c 100644 --- a/dist/models/CreateRunnerTeam.d.ts +++ b/dist/models/CreateRunnerTeam.d.ts @@ -1,5 +1,5 @@ -export declare type CreateRunnerTeam = { - parentGroup: number; - name: string; - contact?: number; -}; +export declare type CreateRunnerTeam = { + parentGroup: number; + name: string; + contact?: number; +}; diff --git a/dist/models/CreateRunnerTeam.js b/dist/models/CreateRunnerTeam.js index 27bdcf1..1e550d8 100644 --- a/dist/models/CreateRunnerTeam.js +++ b/dist/models/CreateRunnerTeam.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/CreateStatsClient.d.ts b/dist/models/CreateStatsClient.d.ts new file mode 100644 index 0000000..06f223c --- /dev/null +++ b/dist/models/CreateStatsClient.d.ts @@ -0,0 +1,3 @@ +export declare type CreateStatsClient = { + description?: string; +}; diff --git a/dist/models/CreateStatsClient.js b/dist/models/CreateStatsClient.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/CreateStatsClient.js @@ -0,0 +1,5 @@ +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/CreateTrack.d.ts b/dist/models/CreateTrack.d.ts index 71fc99e..af41510 100644 --- a/dist/models/CreateTrack.d.ts +++ b/dist/models/CreateTrack.d.ts @@ -1,4 +1,4 @@ -export declare type CreateTrack = { - name: string; - distance: number; -}; +export declare type CreateTrack = { + name: string; + distance: number; +}; diff --git a/dist/models/CreateTrack.js b/dist/models/CreateTrack.js index 27bdcf1..1e550d8 100644 --- a/dist/models/CreateTrack.js +++ b/dist/models/CreateTrack.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/CreateUser.d.ts b/dist/models/CreateUser.d.ts index e947bae..d557e4c 100644 --- a/dist/models/CreateUser.d.ts +++ b/dist/models/CreateUser.d.ts @@ -1,10 +1,11 @@ -export declare type CreateUser = { - firstname: string; - middlename?: string; - lastname: string; - username?: string; - email?: string; - phone?: string; - password: string; - groupId?: any; -}; +export declare type CreateUser = { + firstname: string; + middlename?: string; + lastname: string; + username?: string; + email?: string; + phone?: string; + password: string; + enabled?: boolean; + groups?: any; +}; diff --git a/dist/models/CreateUser.js b/dist/models/CreateUser.js index 27bdcf1..1e550d8 100644 --- a/dist/models/CreateUser.js +++ b/dist/models/CreateUser.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/CreateUserGroup.d.ts b/dist/models/CreateUserGroup.d.ts index d5602de..9e9788a 100644 --- a/dist/models/CreateUserGroup.d.ts +++ b/dist/models/CreateUserGroup.d.ts @@ -1,4 +1,4 @@ -export declare type CreateUserGroup = { - name: string; - description?: string; -}; +export declare type CreateUserGroup = { + name: string; + description?: string; +}; diff --git a/dist/models/CreateUserGroup.js b/dist/models/CreateUserGroup.js index 27bdcf1..1e550d8 100644 --- a/dist/models/CreateUserGroup.js +++ b/dist/models/CreateUserGroup.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/DistanceDonation.d.ts b/dist/models/DistanceDonation.d.ts index b8db7d8..274ffd3 100644 --- a/dist/models/DistanceDonation.d.ts +++ b/dist/models/DistanceDonation.d.ts @@ -1,6 +1,6 @@ -export declare type DistanceDonation = { - runner: string; - amountPerDistance: number; - id: number; - donor: string; -}; +export declare type DistanceDonation = { + runner: string; + amountPerDistance: number; + id: number; + donor: string; +}; diff --git a/dist/models/DistanceDonation.js b/dist/models/DistanceDonation.js index 27bdcf1..1e550d8 100644 --- a/dist/models/DistanceDonation.js +++ b/dist/models/DistanceDonation.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/Donation.d.ts b/dist/models/Donation.d.ts index c016c56..b78aa6b 100644 --- a/dist/models/Donation.d.ts +++ b/dist/models/Donation.d.ts @@ -1,4 +1,4 @@ -export declare type Donation = { - id: number; - donor: string; -}; +export declare type Donation = { + id: number; + donor: string; +}; diff --git a/dist/models/Donation.js b/dist/models/Donation.js index 27bdcf1..1e550d8 100644 --- a/dist/models/Donation.js +++ b/dist/models/Donation.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/ExpiredJWTError.d.ts b/dist/models/ExpiredJWTError.d.ts deleted file mode 100644 index 94aa37d..0000000 --- a/dist/models/ExpiredJWTError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type ExpiredJWTError = { - name: string; - message: string; -}; diff --git a/dist/models/GroupContact.d.ts b/dist/models/GroupContact.d.ts index b87216f..2f739c3 100644 --- a/dist/models/GroupContact.d.ts +++ b/dist/models/GroupContact.d.ts @@ -1,9 +1,9 @@ -export declare type GroupContact = { - id: number; - firstname: string; - middlename?: string; - lastname: string; - address?: any; - phone?: string; - email?: string; -}; +export declare type GroupContact = { + id: number; + firstname: string; + middlename?: string; + lastname: string; + address?: any; + phone?: string; + email?: string; +}; diff --git a/dist/models/GroupContact.js b/dist/models/GroupContact.js index 27bdcf1..1e550d8 100644 --- a/dist/models/GroupContact.js +++ b/dist/models/GroupContact.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/GroupContactNotFoundError.d.ts b/dist/models/GroupContactNotFoundError.d.ts index 06c55a0..5eb718c 100644 --- a/dist/models/GroupContactNotFoundError.d.ts +++ b/dist/models/GroupContactNotFoundError.d.ts @@ -1,4 +1,4 @@ -export declare type GroupContactNotFoundError = { - name: string; - message: string; -}; +export declare type GroupContactNotFoundError = { + name: string; + message: string; +}; diff --git a/dist/models/GroupContactNotFoundError.js b/dist/models/GroupContactNotFoundError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/GroupContactNotFoundError.js +++ b/dist/models/GroupContactNotFoundError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/GroupContactWrongTypeError.d.ts b/dist/models/GroupContactWrongTypeError.d.ts index e44163c..28c612f 100644 --- a/dist/models/GroupContactWrongTypeError.d.ts +++ b/dist/models/GroupContactWrongTypeError.d.ts @@ -1,4 +1,4 @@ -export declare type GroupContactWrongTypeError = { - name: string; - message: string; -}; +export declare type GroupContactWrongTypeError = { + name: string; + message: string; +}; diff --git a/dist/models/GroupContactWrongTypeError.js b/dist/models/GroupContactWrongTypeError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/GroupContactWrongTypeError.js +++ b/dist/models/GroupContactWrongTypeError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/GroupNameNeededError.d.ts b/dist/models/GroupNameNeededError.d.ts index f84fc19..6e6954c 100644 --- a/dist/models/GroupNameNeededError.d.ts +++ b/dist/models/GroupNameNeededError.d.ts @@ -1,4 +1,4 @@ -export declare type GroupNameNeededError = { - name: string; - message: string; -}; +export declare type GroupNameNeededError = { + name: string; + message: string; +}; diff --git a/dist/models/GroupNameNeededError.js b/dist/models/GroupNameNeededError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/GroupNameNeededError.js +++ b/dist/models/GroupNameNeededError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/HandleLogout.d.ts b/dist/models/HandleLogout.d.ts index 70c8ea4..e9cf7c8 100644 --- a/dist/models/HandleLogout.d.ts +++ b/dist/models/HandleLogout.d.ts @@ -1,3 +1,3 @@ -export declare type HandleLogout = { - token?: string; -}; +export declare type HandleLogout = { + token?: string; +}; diff --git a/dist/models/HandleLogout.js b/dist/models/HandleLogout.js index 27bdcf1..1e550d8 100644 --- a/dist/models/HandleLogout.js +++ b/dist/models/HandleLogout.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/IllegalJWTError.d.ts b/dist/models/IllegalJWTError.d.ts index f66788e..b2724ae 100644 --- a/dist/models/IllegalJWTError.d.ts +++ b/dist/models/IllegalJWTError.d.ts @@ -1,4 +1,4 @@ -export declare type IllegalJWTError = { - name: string; - message: string; -}; +export declare type IllegalJWTError = { + name: string; + message: string; +}; diff --git a/dist/models/IllegalJWTError.js b/dist/models/IllegalJWTError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/IllegalJWTError.js +++ b/dist/models/IllegalJWTError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/ImportRunner.d.ts b/dist/models/ImportRunner.d.ts new file mode 100644 index 0000000..8bd356b --- /dev/null +++ b/dist/models/ImportRunner.d.ts @@ -0,0 +1,7 @@ +export declare type ImportRunner = { + firstname: string; + middlename?: string; + lastname: string; + team?: string; + class?: string; +}; diff --git a/dist/models/ImportRunner.js b/dist/models/ImportRunner.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/ImportRunner.js @@ -0,0 +1,5 @@ +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/InvalidCredentialsError.d.ts b/dist/models/InvalidCredentialsError.d.ts index 819b3dd..c543825 100644 --- a/dist/models/InvalidCredentialsError.d.ts +++ b/dist/models/InvalidCredentialsError.d.ts @@ -1,4 +1,4 @@ -export declare type InvalidCredentialsError = { - name: string; - message: string; -}; +export declare type InvalidCredentialsError = { + name: string; + message: string; +}; diff --git a/dist/models/InvalidCredentialsError.js b/dist/models/InvalidCredentialsError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/InvalidCredentialsError.js +++ b/dist/models/InvalidCredentialsError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/JwtNotProvidedError.d.ts b/dist/models/JwtNotProvidedError.d.ts index 075c476..8f145f6 100644 --- a/dist/models/JwtNotProvidedError.d.ts +++ b/dist/models/JwtNotProvidedError.d.ts @@ -1,4 +1,4 @@ -export declare type JwtNotProvidedError = { - name: string; - message: string; -}; +export declare type JwtNotProvidedError = { + name: string; + message: string; +}; diff --git a/dist/models/JwtNotProvidedError.js b/dist/models/JwtNotProvidedError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/JwtNotProvidedError.js +++ b/dist/models/JwtNotProvidedError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/JwtUser.d.ts b/dist/models/JwtUser.d.ts new file mode 100644 index 0000000..cf3405b --- /dev/null +++ b/dist/models/JwtUser.d.ts @@ -0,0 +1,12 @@ +export declare type JwtUser = { + id: number; + uuid: string; + email?: string; + username?: string; + firstname: string; + middlename?: string; + lastname: string; + enabled: boolean; + refreshTokenCount: number; + profilePic?: string; +}; diff --git a/dist/models/JwtUser.js b/dist/models/JwtUser.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/JwtUser.js @@ -0,0 +1,5 @@ +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/Logout.d.ts b/dist/models/Logout.d.ts index 530d287..ea7adfa 100644 --- a/dist/models/Logout.d.ts +++ b/dist/models/Logout.d.ts @@ -1,3 +1,3 @@ -export declare type Logout = { - timestamp: string; -}; +export declare type Logout = { + timestamp: string; +}; diff --git a/dist/models/Logout.js b/dist/models/Logout.js index 27bdcf1..1e550d8 100644 --- a/dist/models/Logout.js +++ b/dist/models/Logout.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/NoPermissionError.d.ts b/dist/models/NoPermissionError.d.ts index d786d54..f271a5d 100644 --- a/dist/models/NoPermissionError.d.ts +++ b/dist/models/NoPermissionError.d.ts @@ -1,4 +1,4 @@ -export declare type NoPermissionError = { - name: string; - message: string; -}; +export declare type NoPermissionError = { + name: string; + message: string; +}; diff --git a/dist/models/NoPermissionError.js b/dist/models/NoPermissionError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/NoPermissionError.js +++ b/dist/models/NoPermissionError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/Participant.d.ts b/dist/models/Participant.d.ts index c1d9eac..1beca73 100644 --- a/dist/models/Participant.d.ts +++ b/dist/models/Participant.d.ts @@ -1,8 +1,8 @@ -export declare type Participant = { - id: number; - firstname: string; - middlename?: string; - lastname: string; - phone?: string; - email?: string; -}; +export declare type Participant = { + id: number; + firstname: string; + middlename?: string; + lastname: string; + phone?: string; + email?: string; +}; diff --git a/dist/models/Participant.js b/dist/models/Participant.js index 27bdcf1..1e550d8 100644 --- a/dist/models/Participant.js +++ b/dist/models/Participant.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/PasswordNeededError.d.ts b/dist/models/PasswordNeededError.d.ts index 6cd729b..122a59d 100644 --- a/dist/models/PasswordNeededError.d.ts +++ b/dist/models/PasswordNeededError.d.ts @@ -1,4 +1,4 @@ -export declare type PasswordNeededError = { - name: string; - message: string; -}; +export declare type PasswordNeededError = { + name: string; + message: string; +}; diff --git a/dist/models/PasswordNeededError.js b/dist/models/PasswordNeededError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/PasswordNeededError.js +++ b/dist/models/PasswordNeededError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/Permission.d.ts b/dist/models/Permission.d.ts index c04ecd9..3039bcf 100644 --- a/dist/models/Permission.d.ts +++ b/dist/models/Permission.d.ts @@ -1,5 +1,24 @@ -export declare type Permission = { - id: number; - target: string; - action: string; -}; +export declare type Permission = { + id: number; + target: Permission.target; + action: Permission.action; +}; +export declare namespace Permission { + enum target { + RUNNER = "RUNNER", + ORGANISATION = "ORGANISATION", + TEAM = "TEAM", + TRACK = "TRACK", + USER = "USER", + USERGROUP = "USERGROUP", + PERMISSION = "PERMISSION", + STATSCLIENT = "STATSCLIENT" + } + enum action { + GET = "GET", + CREATE = "CREATE", + UPDATE = "UPDATE", + DELETE = "DELETE", + IMPORT = "IMPORT" + } +} diff --git a/dist/models/Permission.js b/dist/models/Permission.js index 27bdcf1..8af8e46 100644 --- a/dist/models/Permission.js +++ b/dist/models/Permission.js @@ -1,5 +1,28 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Permission = void 0; +var Permission; +(function (Permission) { + let target; + (function (target) { + target["RUNNER"] = "RUNNER"; + target["ORGANISATION"] = "ORGANISATION"; + target["TEAM"] = "TEAM"; + target["TRACK"] = "TRACK"; + target["USER"] = "USER"; + target["USERGROUP"] = "USERGROUP"; + target["PERMISSION"] = "PERMISSION"; + target["STATSCLIENT"] = "STATSCLIENT"; + })(target = Permission.target || (Permission.target = {})); + let action; + (function (action) { + action["GET"] = "GET"; + action["CREATE"] = "CREATE"; + action["UPDATE"] = "UPDATE"; + action["DELETE"] = "DELETE"; + action["IMPORT"] = "IMPORT"; + })(action = Permission.action || (Permission.action = {})); +})(Permission = exports.Permission || (exports.Permission = {})); diff --git a/dist/models/PermissionIdsNotMatchingError.d.ts b/dist/models/PermissionIdsNotMatchingError.d.ts new file mode 100644 index 0000000..8f35772 --- /dev/null +++ b/dist/models/PermissionIdsNotMatchingError.d.ts @@ -0,0 +1,4 @@ +export declare type PermissionIdsNotMatchingError = { + name: string; + message: string; +}; diff --git a/dist/models/PermissionIdsNotMatchingError.js b/dist/models/PermissionIdsNotMatchingError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/PermissionIdsNotMatchingError.js @@ -0,0 +1,5 @@ +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/PermissionNeedsPrincipalError.d.ts b/dist/models/PermissionNeedsPrincipalError.d.ts new file mode 100644 index 0000000..d5faa38 --- /dev/null +++ b/dist/models/PermissionNeedsPrincipalError.d.ts @@ -0,0 +1,4 @@ +export declare type PermissionNeedsPrincipalError = { + name: string; + message: string; +}; diff --git a/dist/models/PermissionNeedsPrincipalError.js b/dist/models/PermissionNeedsPrincipalError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/PermissionNeedsPrincipalError.js @@ -0,0 +1,5 @@ +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/PermissionNotFoundError.d.ts b/dist/models/PermissionNotFoundError.d.ts new file mode 100644 index 0000000..43509a0 --- /dev/null +++ b/dist/models/PermissionNotFoundError.d.ts @@ -0,0 +1,4 @@ +export declare type PermissionNotFoundError = { + name: string; + message: string; +}; diff --git a/dist/models/PermissionNotFoundError.js b/dist/models/PermissionNotFoundError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/PermissionNotFoundError.js @@ -0,0 +1,5 @@ +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/Principal.d.ts b/dist/models/Principal.d.ts new file mode 100644 index 0000000..400a954 --- /dev/null +++ b/dist/models/Principal.d.ts @@ -0,0 +1,3 @@ +export declare type Principal = { + id: number; +}; diff --git a/dist/models/Principal.js b/dist/models/Principal.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/Principal.js @@ -0,0 +1,5 @@ +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/PrincipalNotFoundError.d.ts b/dist/models/PrincipalNotFoundError.d.ts new file mode 100644 index 0000000..7879adb --- /dev/null +++ b/dist/models/PrincipalNotFoundError.d.ts @@ -0,0 +1,4 @@ +export declare type PrincipalNotFoundError = { + name: string; + message: string; +}; diff --git a/dist/models/PrincipalNotFoundError.js b/dist/models/PrincipalNotFoundError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/PrincipalNotFoundError.js @@ -0,0 +1,5 @@ +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/PrincipalWrongTypeError.d.ts b/dist/models/PrincipalWrongTypeError.d.ts new file mode 100644 index 0000000..72f0e6c --- /dev/null +++ b/dist/models/PrincipalWrongTypeError.d.ts @@ -0,0 +1,4 @@ +export declare type PrincipalWrongTypeError = { + name: string; + message: string; +}; diff --git a/dist/models/PrincipalWrongTypeError.js b/dist/models/PrincipalWrongTypeError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/PrincipalWrongTypeError.js @@ -0,0 +1,5 @@ +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/RefreshAuth.d.ts b/dist/models/RefreshAuth.d.ts index 03349eb..a53922a 100644 --- a/dist/models/RefreshAuth.d.ts +++ b/dist/models/RefreshAuth.d.ts @@ -1,3 +1,3 @@ -export declare type RefreshAuth = { - token?: string; -}; +export declare type RefreshAuth = { + token?: string; +}; diff --git a/dist/models/RefreshAuth.js b/dist/models/RefreshAuth.js index 27bdcf1..1e550d8 100644 --- a/dist/models/RefreshAuth.js +++ b/dist/models/RefreshAuth.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/RefreshTokenCountInvalidError.d.ts b/dist/models/RefreshTokenCountInvalidError.d.ts index 1586f62..bb15adf 100644 --- a/dist/models/RefreshTokenCountInvalidError.d.ts +++ b/dist/models/RefreshTokenCountInvalidError.d.ts @@ -1,4 +1,4 @@ -export declare type RefreshTokenCountInvalidError = { - name: string; - message: string; -}; +export declare type RefreshTokenCountInvalidError = { + name: string; + message: string; +}; diff --git a/dist/models/RefreshTokenCountInvalidError.js b/dist/models/RefreshTokenCountInvalidError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/RefreshTokenCountInvalidError.js +++ b/dist/models/RefreshTokenCountInvalidError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/ResetAlreadyRequestedError.d.ts b/dist/models/ResetAlreadyRequestedError.d.ts new file mode 100644 index 0000000..1487dc9 --- /dev/null +++ b/dist/models/ResetAlreadyRequestedError.d.ts @@ -0,0 +1,4 @@ +export declare type ResetAlreadyRequestedError = { + name: string; + message: string; +}; diff --git a/dist/models/ResetAlreadyRequestedError.js b/dist/models/ResetAlreadyRequestedError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/ResetAlreadyRequestedError.js @@ -0,0 +1,5 @@ +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/ResetPassword.d.ts b/dist/models/ResetPassword.d.ts new file mode 100644 index 0000000..759fc99 --- /dev/null +++ b/dist/models/ResetPassword.d.ts @@ -0,0 +1,4 @@ +export declare type ResetPassword = { + resetToken?: string; + password: string; +}; diff --git a/dist/models/ResetPassword.js b/dist/models/ResetPassword.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/ResetPassword.js @@ -0,0 +1,5 @@ +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/ResponseEmpty.d.ts b/dist/models/ResponseEmpty.d.ts index 3549d91..e80f56c 100644 --- a/dist/models/ResponseEmpty.d.ts +++ b/dist/models/ResponseEmpty.d.ts @@ -1,3 +1,3 @@ -export declare type ResponseEmpty = { - response: string; -}; +export declare type ResponseEmpty = { + response: string; +}; diff --git a/dist/models/ResponseEmpty.js b/dist/models/ResponseEmpty.js index 27bdcf1..1e550d8 100644 --- a/dist/models/ResponseEmpty.js +++ b/dist/models/ResponseEmpty.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/ResponseParticipant.d.ts b/dist/models/ResponseParticipant.d.ts index 7460ba0..c1adc1b 100644 --- a/dist/models/ResponseParticipant.d.ts +++ b/dist/models/ResponseParticipant.d.ts @@ -1,8 +1,8 @@ -export declare type ResponseParticipant = { - id: number; - firstname: string; - middlename: string; - lastname: string; - phone: string; - email: string; -}; +export declare type ResponseParticipant = { + id: number; + firstname: string; + middlename: string; + lastname: string; + phone: string; + email: string; +}; diff --git a/dist/models/ResponseParticipant.js b/dist/models/ResponseParticipant.js index 27bdcf1..1e550d8 100644 --- a/dist/models/ResponseParticipant.js +++ b/dist/models/ResponseParticipant.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/ResponsePermission.d.ts b/dist/models/ResponsePermission.d.ts new file mode 100644 index 0000000..6c23dcd --- /dev/null +++ b/dist/models/ResponsePermission.d.ts @@ -0,0 +1,26 @@ +import type { ResponsePrincipal } from './ResponsePrincipal'; +export declare type ResponsePermission = { + id: number; + principal: ResponsePrincipal; + target: ResponsePermission.target; + action: ResponsePermission.action; +}; +export declare namespace ResponsePermission { + enum target { + RUNNER = "RUNNER", + ORGANISATION = "ORGANISATION", + TEAM = "TEAM", + TRACK = "TRACK", + USER = "USER", + USERGROUP = "USERGROUP", + PERMISSION = "PERMISSION", + STATSCLIENT = "STATSCLIENT" + } + enum action { + GET = "GET", + CREATE = "CREATE", + UPDATE = "UPDATE", + DELETE = "DELETE", + IMPORT = "IMPORT" + } +} diff --git a/dist/models/ResponsePermission.js b/dist/models/ResponsePermission.js new file mode 100644 index 0000000..54c4010 --- /dev/null +++ b/dist/models/ResponsePermission.js @@ -0,0 +1,28 @@ +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ResponsePermission = void 0; +var ResponsePermission; +(function (ResponsePermission) { + let target; + (function (target) { + target["RUNNER"] = "RUNNER"; + target["ORGANISATION"] = "ORGANISATION"; + target["TEAM"] = "TEAM"; + target["TRACK"] = "TRACK"; + target["USER"] = "USER"; + target["USERGROUP"] = "USERGROUP"; + target["PERMISSION"] = "PERMISSION"; + target["STATSCLIENT"] = "STATSCLIENT"; + })(target = ResponsePermission.target || (ResponsePermission.target = {})); + let action; + (function (action) { + action["GET"] = "GET"; + action["CREATE"] = "CREATE"; + action["UPDATE"] = "UPDATE"; + action["DELETE"] = "DELETE"; + action["IMPORT"] = "IMPORT"; + })(action = ResponsePermission.action || (ResponsePermission.action = {})); +})(ResponsePermission = exports.ResponsePermission || (exports.ResponsePermission = {})); diff --git a/dist/models/ResponsePrincipal.d.ts b/dist/models/ResponsePrincipal.d.ts new file mode 100644 index 0000000..1d8f4f1 --- /dev/null +++ b/dist/models/ResponsePrincipal.d.ts @@ -0,0 +1,3 @@ +export declare type ResponsePrincipal = { + id: number; +}; diff --git a/dist/models/ResponsePrincipal.js b/dist/models/ResponsePrincipal.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/ResponsePrincipal.js @@ -0,0 +1,5 @@ +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/ResponseRunner.d.ts b/dist/models/ResponseRunner.d.ts index 71a16a7..6610270 100644 --- a/dist/models/ResponseRunner.d.ts +++ b/dist/models/ResponseRunner.d.ts @@ -1,11 +1,11 @@ -import type { RunnerGroup } from './RunnerGroup'; -export declare type ResponseRunner = { - distance: number; - group: RunnerGroup; - id: number; - firstname: string; - middlename: string; - lastname: string; - phone: string; - email: string; -}; +import type { RunnerGroup } from './RunnerGroup'; +export declare type ResponseRunner = { + distance: number; + group: RunnerGroup; + id: number; + firstname: string; + middlename: string; + lastname: string; + phone: string; + email: string; +}; diff --git a/dist/models/ResponseRunner.js b/dist/models/ResponseRunner.js index 27bdcf1..1e550d8 100644 --- a/dist/models/ResponseRunner.js +++ b/dist/models/ResponseRunner.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/ResponseRunnerGroup.d.ts b/dist/models/ResponseRunnerGroup.d.ts index bfcf452..dcdcbfa 100644 --- a/dist/models/ResponseRunnerGroup.d.ts +++ b/dist/models/ResponseRunnerGroup.d.ts @@ -1,6 +1,6 @@ -import type { GroupContact } from './GroupContact'; -export declare type ResponseRunnerGroup = { - id: number; - name: string; - contact?: GroupContact; -}; +import type { GroupContact } from './GroupContact'; +export declare type ResponseRunnerGroup = { + id: number; + name: string; + contact?: GroupContact; +}; diff --git a/dist/models/ResponseRunnerGroup.js b/dist/models/ResponseRunnerGroup.js index 27bdcf1..1e550d8 100644 --- a/dist/models/ResponseRunnerGroup.js +++ b/dist/models/ResponseRunnerGroup.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/ResponseRunnerOrganisation.d.ts b/dist/models/ResponseRunnerOrganisation.d.ts index 0c0edd1..1ce4cb5 100644 --- a/dist/models/ResponseRunnerOrganisation.d.ts +++ b/dist/models/ResponseRunnerOrganisation.d.ts @@ -1,9 +1,9 @@ -import type { Address } from './Address'; -import type { GroupContact } from './GroupContact'; -export declare type ResponseRunnerOrganisation = { - address: Address; - teams: Array; - id: number; - name: string; - contact?: GroupContact; -}; +import type { Address } from './Address'; +import type { GroupContact } from './GroupContact'; +export declare type ResponseRunnerOrganisation = { + address: Address; + teams: Array; + id: number; + name: string; + contact?: GroupContact; +}; diff --git a/dist/models/ResponseRunnerOrganisation.js b/dist/models/ResponseRunnerOrganisation.js index 27bdcf1..1e550d8 100644 --- a/dist/models/ResponseRunnerOrganisation.js +++ b/dist/models/ResponseRunnerOrganisation.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/ResponseRunnerTeam.d.ts b/dist/models/ResponseRunnerTeam.d.ts index ed51f57..8ca0aa2 100644 --- a/dist/models/ResponseRunnerTeam.d.ts +++ b/dist/models/ResponseRunnerTeam.d.ts @@ -1,8 +1,8 @@ -import type { GroupContact } from './GroupContact'; -import type { RunnerOrganisation } from './RunnerOrganisation'; -export declare type ResponseRunnerTeam = { - parentGroup: RunnerOrganisation; - id: number; - name: string; - contact?: GroupContact; -}; +import type { GroupContact } from './GroupContact'; +import type { RunnerOrganisation } from './RunnerOrganisation'; +export declare type ResponseRunnerTeam = { + parentGroup: RunnerOrganisation; + id: number; + name: string; + contact?: GroupContact; +}; diff --git a/dist/models/ResponseRunnerTeam.js b/dist/models/ResponseRunnerTeam.js index 27bdcf1..1e550d8 100644 --- a/dist/models/ResponseRunnerTeam.js +++ b/dist/models/ResponseRunnerTeam.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/ResponseStats.d.ts b/dist/models/ResponseStats.d.ts new file mode 100644 index 0000000..e81c7ac --- /dev/null +++ b/dist/models/ResponseStats.d.ts @@ -0,0 +1,10 @@ +export declare type ResponseStats = { + total_runners: number; + total_teams: number; + total_orgs: number; + total_users: number; + total_scans: number; + total_distance: number; + total_donation: number; + average_distance: number; +}; diff --git a/dist/models/ResponseStats.js b/dist/models/ResponseStats.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/ResponseStats.js @@ -0,0 +1,5 @@ +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/ResponseStatsClient.d.ts b/dist/models/ResponseStatsClient.d.ts new file mode 100644 index 0000000..75b1aff --- /dev/null +++ b/dist/models/ResponseStatsClient.d.ts @@ -0,0 +1,6 @@ +export declare type ResponseStatsClient = { + id: number; + description?: string; + key?: string; + prefix: string; +}; diff --git a/dist/models/ResponseStatsClient.js b/dist/models/ResponseStatsClient.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/ResponseStatsClient.js @@ -0,0 +1,5 @@ +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/ResponseStatsOrgnisation.d.ts b/dist/models/ResponseStatsOrgnisation.d.ts new file mode 100644 index 0000000..0e23a8a --- /dev/null +++ b/dist/models/ResponseStatsOrgnisation.d.ts @@ -0,0 +1,6 @@ +export declare type ResponseStatsOrgnisation = { + id: number; + name: string; + distance: number; + donationAmount: number; +}; diff --git a/dist/models/ResponseStatsOrgnisation.js b/dist/models/ResponseStatsOrgnisation.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/ResponseStatsOrgnisation.js @@ -0,0 +1,5 @@ +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/ResponseStatsRunner.d.ts b/dist/models/ResponseStatsRunner.d.ts new file mode 100644 index 0000000..fecf769 --- /dev/null +++ b/dist/models/ResponseStatsRunner.d.ts @@ -0,0 +1,10 @@ +import type { RunnerGroup } from './RunnerGroup'; +export declare type ResponseStatsRunner = { + id: number; + firstname: string; + middlename: string; + lastname: string; + distance: number; + donationAmount: number; + group: RunnerGroup; +}; diff --git a/dist/models/ResponseStatsRunner.js b/dist/models/ResponseStatsRunner.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/ResponseStatsRunner.js @@ -0,0 +1,5 @@ +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/ResponseStatsTeam.d.ts b/dist/models/ResponseStatsTeam.d.ts new file mode 100644 index 0000000..2f786ca --- /dev/null +++ b/dist/models/ResponseStatsTeam.d.ts @@ -0,0 +1,8 @@ +import type { RunnerGroup } from './RunnerGroup'; +export declare type ResponseStatsTeam = { + id: number; + name: string; + distance: number; + donationAmount: number; + parent: RunnerGroup; +}; diff --git a/dist/models/ResponseStatsTeam.js b/dist/models/ResponseStatsTeam.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/ResponseStatsTeam.js @@ -0,0 +1,5 @@ +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/ResponseTrack.d.ts b/dist/models/ResponseTrack.d.ts index a70bc88..3fc8129 100644 --- a/dist/models/ResponseTrack.d.ts +++ b/dist/models/ResponseTrack.d.ts @@ -1,5 +1,5 @@ -export declare type ResponseTrack = { - id: number; - name: string; - distance: number; -}; +export declare type ResponseTrack = { + id: number; + name: string; + distance: number; +}; diff --git a/dist/models/ResponseTrack.js b/dist/models/ResponseTrack.js index 27bdcf1..1e550d8 100644 --- a/dist/models/ResponseTrack.js +++ b/dist/models/ResponseTrack.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/ResponseUser.d.ts b/dist/models/ResponseUser.d.ts new file mode 100644 index 0000000..1d10591 --- /dev/null +++ b/dist/models/ResponseUser.d.ts @@ -0,0 +1,13 @@ +export declare type ResponseUser = { + firstname: string; + middlename: string; + lastname: string; + phone: string; + email: string; + username: string; + enabled: boolean; + profilePic?: string; + groups?: Array; + permissions?: Array; + id: number; +}; diff --git a/dist/models/ResponseUser.js b/dist/models/ResponseUser.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/ResponseUser.js @@ -0,0 +1,5 @@ +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/ResponseUserGroup.d.ts b/dist/models/ResponseUserGroup.d.ts new file mode 100644 index 0000000..4abbdc3 --- /dev/null +++ b/dist/models/ResponseUserGroup.d.ts @@ -0,0 +1,6 @@ +export declare type ResponseUserGroup = { + name: string; + description?: string; + permissions?: Array; + id: number; +}; diff --git a/dist/models/ResponseUserGroup.js b/dist/models/ResponseUserGroup.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/ResponseUserGroup.js @@ -0,0 +1,5 @@ +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/Runner.d.ts b/dist/models/Runner.d.ts index c89715f..5f0a0f2 100644 --- a/dist/models/Runner.d.ts +++ b/dist/models/Runner.d.ts @@ -1,10 +1,11 @@ -export declare type Runner = { - group: string; - distance: number; - id: number; - firstname: string; - middlename?: string; - lastname: string; - phone?: string; - email?: string; -}; +export declare type Runner = { + group: string; + distance: number; + distanceDonationAmount: number; + id: number; + firstname: string; + middlename?: string; + lastname: string; + phone?: string; + email?: string; +}; diff --git a/dist/models/Runner.js b/dist/models/Runner.js index 27bdcf1..1e550d8 100644 --- a/dist/models/Runner.js +++ b/dist/models/Runner.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/RunnerCard.d.ts b/dist/models/RunnerCard.d.ts index 09e0255..ca8c342 100644 --- a/dist/models/RunnerCard.d.ts +++ b/dist/models/RunnerCard.d.ts @@ -1,6 +1,6 @@ -export declare type RunnerCard = { - id: number; - runner?: any; - code: string; - enabled: boolean; -}; +export declare type RunnerCard = { + id: number; + runner?: any; + code: string; + enabled: boolean; +}; diff --git a/dist/models/RunnerCard.js b/dist/models/RunnerCard.js index 27bdcf1..1e550d8 100644 --- a/dist/models/RunnerCard.js +++ b/dist/models/RunnerCard.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/RunnerGroup.d.ts b/dist/models/RunnerGroup.d.ts index 9fce82f..68a4740 100644 --- a/dist/models/RunnerGroup.d.ts +++ b/dist/models/RunnerGroup.d.ts @@ -1,5 +1,7 @@ -export declare type RunnerGroup = { - id: number; - name: string; - contact?: any; -}; +export declare type RunnerGroup = { + id: number; + name: string; + contact?: any; + distance: number; + distanceDonationAmount: number; +}; diff --git a/dist/models/RunnerGroup.js b/dist/models/RunnerGroup.js index 27bdcf1..1e550d8 100644 --- a/dist/models/RunnerGroup.js +++ b/dist/models/RunnerGroup.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/RunnerGroupNeededError.d.ts b/dist/models/RunnerGroupNeededError.d.ts index 7256aec..76d28a3 100644 --- a/dist/models/RunnerGroupNeededError.d.ts +++ b/dist/models/RunnerGroupNeededError.d.ts @@ -1,4 +1,4 @@ -export declare type RunnerGroupNeededError = { - name: string; - message: string; -}; +export declare type RunnerGroupNeededError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerGroupNeededError.js b/dist/models/RunnerGroupNeededError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/RunnerGroupNeededError.js +++ b/dist/models/RunnerGroupNeededError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/RunnerGroupNotFoundError.d.ts b/dist/models/RunnerGroupNotFoundError.d.ts index 685b3d7..58522bf 100644 --- a/dist/models/RunnerGroupNotFoundError.d.ts +++ b/dist/models/RunnerGroupNotFoundError.d.ts @@ -1,4 +1,4 @@ -export declare type RunnerGroupNotFoundError = { - name: string; - message: string; -}; +export declare type RunnerGroupNotFoundError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerGroupNotFoundError.js b/dist/models/RunnerGroupNotFoundError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/RunnerGroupNotFoundError.js +++ b/dist/models/RunnerGroupNotFoundError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/RunnerIdsNotMatchingError.d.ts b/dist/models/RunnerIdsNotMatchingError.d.ts index 863f151..406e8ef 100644 --- a/dist/models/RunnerIdsNotMatchingError.d.ts +++ b/dist/models/RunnerIdsNotMatchingError.d.ts @@ -1,4 +1,4 @@ -export declare type RunnerIdsNotMatchingError = { - name: string; - message: string; -}; +export declare type RunnerIdsNotMatchingError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerIdsNotMatchingError.js b/dist/models/RunnerIdsNotMatchingError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/RunnerIdsNotMatchingError.js +++ b/dist/models/RunnerIdsNotMatchingError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/RunnerNotFoundError.d.ts b/dist/models/RunnerNotFoundError.d.ts index b1e5c12..864be4f 100644 --- a/dist/models/RunnerNotFoundError.d.ts +++ b/dist/models/RunnerNotFoundError.d.ts @@ -1,4 +1,4 @@ -export declare type RunnerNotFoundError = { - name: string; - message: string; -}; +export declare type RunnerNotFoundError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerNotFoundError.js b/dist/models/RunnerNotFoundError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/RunnerNotFoundError.js +++ b/dist/models/RunnerNotFoundError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/RunnerOrganisation.d.ts b/dist/models/RunnerOrganisation.d.ts index 6e32b70..27d8c35 100644 --- a/dist/models/RunnerOrganisation.d.ts +++ b/dist/models/RunnerOrganisation.d.ts @@ -1,6 +1,8 @@ -export declare type RunnerOrganisation = { - address?: any; - id: number; - name: string; - contact?: any; -}; +export declare type RunnerOrganisation = { + address?: any; + distance: number; + distanceDonationAmount: number; + id: number; + name: string; + contact?: any; +}; diff --git a/dist/models/RunnerOrganisation.js b/dist/models/RunnerOrganisation.js index 27bdcf1..1e550d8 100644 --- a/dist/models/RunnerOrganisation.js +++ b/dist/models/RunnerOrganisation.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/RunnerOrganisationHasRunnersError.d.ts b/dist/models/RunnerOrganisationHasRunnersError.d.ts index 0ca4210..e7e206f 100644 --- a/dist/models/RunnerOrganisationHasRunnersError.d.ts +++ b/dist/models/RunnerOrganisationHasRunnersError.d.ts @@ -1,4 +1,4 @@ -export declare type RunnerOrganisationHasRunnersError = { - name: string; - message: string; -}; +export declare type RunnerOrganisationHasRunnersError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerOrganisationHasRunnersError.js b/dist/models/RunnerOrganisationHasRunnersError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/RunnerOrganisationHasRunnersError.js +++ b/dist/models/RunnerOrganisationHasRunnersError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/RunnerOrganisationHasTeamsError.d.ts b/dist/models/RunnerOrganisationHasTeamsError.d.ts index 6a2ab0a..3a18223 100644 --- a/dist/models/RunnerOrganisationHasTeamsError.d.ts +++ b/dist/models/RunnerOrganisationHasTeamsError.d.ts @@ -1,4 +1,4 @@ -export declare type RunnerOrganisationHasTeamsError = { - name: string; - message: string; -}; +export declare type RunnerOrganisationHasTeamsError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerOrganisationHasTeamsError.js b/dist/models/RunnerOrganisationHasTeamsError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/RunnerOrganisationHasTeamsError.js +++ b/dist/models/RunnerOrganisationHasTeamsError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/RunnerOrganisationIdsNotMatchingError.d.ts b/dist/models/RunnerOrganisationIdsNotMatchingError.d.ts index 0249f1c..2c09ee6 100644 --- a/dist/models/RunnerOrganisationIdsNotMatchingError.d.ts +++ b/dist/models/RunnerOrganisationIdsNotMatchingError.d.ts @@ -1,4 +1,4 @@ -export declare type RunnerOrganisationIdsNotMatchingError = { - name: string; - message: string; -}; +export declare type RunnerOrganisationIdsNotMatchingError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerOrganisationIdsNotMatchingError.js b/dist/models/RunnerOrganisationIdsNotMatchingError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/RunnerOrganisationIdsNotMatchingError.js +++ b/dist/models/RunnerOrganisationIdsNotMatchingError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/RunnerOrganisationNotFoundError.d.ts b/dist/models/RunnerOrganisationNotFoundError.d.ts index 70e55ab..165d97d 100644 --- a/dist/models/RunnerOrganisationNotFoundError.d.ts +++ b/dist/models/RunnerOrganisationNotFoundError.d.ts @@ -1,4 +1,4 @@ -export declare type RunnerOrganisationNotFoundError = { - name: string; - message: string; -}; +export declare type RunnerOrganisationNotFoundError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerOrganisationNotFoundError.js b/dist/models/RunnerOrganisationNotFoundError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/RunnerOrganisationNotFoundError.js +++ b/dist/models/RunnerOrganisationNotFoundError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/RunnerOrganisationWrongTypeError.d.ts b/dist/models/RunnerOrganisationWrongTypeError.d.ts index f2248f0..6f581f5 100644 --- a/dist/models/RunnerOrganisationWrongTypeError.d.ts +++ b/dist/models/RunnerOrganisationWrongTypeError.d.ts @@ -1,4 +1,4 @@ -export declare type RunnerOrganisationWrongTypeError = { - name: string; - message: string; -}; +export declare type RunnerOrganisationWrongTypeError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerOrganisationWrongTypeError.js b/dist/models/RunnerOrganisationWrongTypeError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/RunnerOrganisationWrongTypeError.js +++ b/dist/models/RunnerOrganisationWrongTypeError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/RunnerTeam.d.ts b/dist/models/RunnerTeam.d.ts index 0e01499..59656f8 100644 --- a/dist/models/RunnerTeam.d.ts +++ b/dist/models/RunnerTeam.d.ts @@ -1,6 +1,8 @@ -export declare type RunnerTeam = { - parentGroup: string; - id: number; - name: string; - contact?: any; -}; +export declare type RunnerTeam = { + parentGroup: string; + id: number; + name: string; + contact?: any; + distance: number; + distanceDonationAmount: number; +}; diff --git a/dist/models/RunnerTeam.js b/dist/models/RunnerTeam.js index 27bdcf1..1e550d8 100644 --- a/dist/models/RunnerTeam.js +++ b/dist/models/RunnerTeam.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/RunnerTeamHasRunnersError.d.ts b/dist/models/RunnerTeamHasRunnersError.d.ts index f87d0f6..d0fd4a8 100644 --- a/dist/models/RunnerTeamHasRunnersError.d.ts +++ b/dist/models/RunnerTeamHasRunnersError.d.ts @@ -1,4 +1,4 @@ -export declare type RunnerTeamHasRunnersError = { - name: string; - message: string; -}; +export declare type RunnerTeamHasRunnersError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerTeamHasRunnersError.js b/dist/models/RunnerTeamHasRunnersError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/RunnerTeamHasRunnersError.js +++ b/dist/models/RunnerTeamHasRunnersError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/RunnerTeamIdsNotMatchingError.d.ts b/dist/models/RunnerTeamIdsNotMatchingError.d.ts index 179318a..2c209b9 100644 --- a/dist/models/RunnerTeamIdsNotMatchingError.d.ts +++ b/dist/models/RunnerTeamIdsNotMatchingError.d.ts @@ -1,4 +1,4 @@ -export declare type RunnerTeamIdsNotMatchingError = { - name: string; - message: string; -}; +export declare type RunnerTeamIdsNotMatchingError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerTeamIdsNotMatchingError.js b/dist/models/RunnerTeamIdsNotMatchingError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/RunnerTeamIdsNotMatchingError.js +++ b/dist/models/RunnerTeamIdsNotMatchingError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/RunnerTeamNeedsParentError.d.ts b/dist/models/RunnerTeamNeedsParentError.d.ts index d917aaa..4feac81 100644 --- a/dist/models/RunnerTeamNeedsParentError.d.ts +++ b/dist/models/RunnerTeamNeedsParentError.d.ts @@ -1,4 +1,4 @@ -export declare type RunnerTeamNeedsParentError = { - name: string; - message: string; -}; +export declare type RunnerTeamNeedsParentError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerTeamNeedsParentError.js b/dist/models/RunnerTeamNeedsParentError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/RunnerTeamNeedsParentError.js +++ b/dist/models/RunnerTeamNeedsParentError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/RunnerTeamNotFoundError.d.ts b/dist/models/RunnerTeamNotFoundError.d.ts index c2ce631..4844b93 100644 --- a/dist/models/RunnerTeamNotFoundError.d.ts +++ b/dist/models/RunnerTeamNotFoundError.d.ts @@ -1,4 +1,4 @@ -export declare type RunnerTeamNotFoundError = { - name: string; - message: string; -}; +export declare type RunnerTeamNotFoundError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerTeamNotFoundError.js b/dist/models/RunnerTeamNotFoundError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/RunnerTeamNotFoundError.js +++ b/dist/models/RunnerTeamNotFoundError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/Scan.d.ts b/dist/models/Scan.d.ts index 80e7f29..78a570f 100644 --- a/dist/models/Scan.d.ts +++ b/dist/models/Scan.d.ts @@ -1,6 +1,6 @@ -export declare type Scan = { - id: number; - runner: string; - distance: number; - valid: boolean; -}; +export declare type Scan = { + id: number; + runner: string; + distance: number; + valid: boolean; +}; diff --git a/dist/models/Scan.js b/dist/models/Scan.js index 27bdcf1..1e550d8 100644 --- a/dist/models/Scan.js +++ b/dist/models/Scan.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/ScanStation.d.ts b/dist/models/ScanStation.d.ts index 7695415..97092f2 100644 --- a/dist/models/ScanStation.d.ts +++ b/dist/models/ScanStation.d.ts @@ -1,7 +1,7 @@ -export declare type ScanStation = { - id: number; - description?: string; - track: string; - key: string; - enabled: boolean; -}; +export declare type ScanStation = { + id: number; + description?: string; + track: string; + key: string; + enabled: boolean; +}; diff --git a/dist/models/ScanStation.js b/dist/models/ScanStation.js index 27bdcf1..1e550d8 100644 --- a/dist/models/ScanStation.js +++ b/dist/models/ScanStation.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/StatsClient.d.ts b/dist/models/StatsClient.d.ts new file mode 100644 index 0000000..6349ff5 --- /dev/null +++ b/dist/models/StatsClient.d.ts @@ -0,0 +1,7 @@ +export declare type StatsClient = { + id: number; + description?: string; + prefix: string; + key: string; + cleartextkey?: string; +}; diff --git a/dist/models/StatsClient.js b/dist/models/StatsClient.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/StatsClient.js @@ -0,0 +1,5 @@ +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/StatsClientIdsNotMatchingError.d.ts b/dist/models/StatsClientIdsNotMatchingError.d.ts new file mode 100644 index 0000000..81f7417 --- /dev/null +++ b/dist/models/StatsClientIdsNotMatchingError.d.ts @@ -0,0 +1,4 @@ +export declare type StatsClientIdsNotMatchingError = { + name: string; + message: string; +}; diff --git a/dist/models/StatsClientIdsNotMatchingError.js b/dist/models/StatsClientIdsNotMatchingError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/StatsClientIdsNotMatchingError.js @@ -0,0 +1,5 @@ +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/StatsClientNotFoundError.d.ts b/dist/models/StatsClientNotFoundError.d.ts new file mode 100644 index 0000000..38504d8 --- /dev/null +++ b/dist/models/StatsClientNotFoundError.d.ts @@ -0,0 +1,4 @@ +export declare type StatsClientNotFoundError = { + name: string; + message: string; +}; diff --git a/dist/models/StatsClientNotFoundError.js b/dist/models/StatsClientNotFoundError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/StatsClientNotFoundError.js @@ -0,0 +1,5 @@ +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/Track.d.ts b/dist/models/Track.d.ts index 23c7e0c..3f51ef3 100644 --- a/dist/models/Track.d.ts +++ b/dist/models/Track.d.ts @@ -1,5 +1,5 @@ -export declare type Track = { - id: number; - name: string; - distance: number; -}; +export declare type Track = { + id: number; + name: string; + distance: number; +}; diff --git a/dist/models/Track.js b/dist/models/Track.js index 27bdcf1..1e550d8 100644 --- a/dist/models/Track.js +++ b/dist/models/Track.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/TrackIdsNotMatchingError.d.ts b/dist/models/TrackIdsNotMatchingError.d.ts index 3dcd4bf..6d0a4f5 100644 --- a/dist/models/TrackIdsNotMatchingError.d.ts +++ b/dist/models/TrackIdsNotMatchingError.d.ts @@ -1,4 +1,4 @@ -export declare type TrackIdsNotMatchingError = { - name: string; - message: string; -}; +export declare type TrackIdsNotMatchingError = { + name: string; + message: string; +}; diff --git a/dist/models/TrackIdsNotMatchingError.js b/dist/models/TrackIdsNotMatchingError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/TrackIdsNotMatchingError.js +++ b/dist/models/TrackIdsNotMatchingError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/TrackNotFoundError.d.ts b/dist/models/TrackNotFoundError.d.ts index 07a39c7..2475604 100644 --- a/dist/models/TrackNotFoundError.d.ts +++ b/dist/models/TrackNotFoundError.d.ts @@ -1,4 +1,4 @@ -export declare type TrackNotFoundError = { - name: string; - message: string; -}; +export declare type TrackNotFoundError = { + name: string; + message: string; +}; diff --git a/dist/models/TrackNotFoundError.js b/dist/models/TrackNotFoundError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/TrackNotFoundError.js +++ b/dist/models/TrackNotFoundError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/TrackScan.d.ts b/dist/models/TrackScan.d.ts index 6902ef3..3b028c4 100644 --- a/dist/models/TrackScan.d.ts +++ b/dist/models/TrackScan.d.ts @@ -1,10 +1,10 @@ -export declare type TrackScan = { - track: string; - card: string; - station: string; - distance: number; - timestamp: string; - id: number; - runner: string; - valid: boolean; -}; +export declare type TrackScan = { + track: string; + card: string; + station: string; + distance: number; + timestamp: string; + id: number; + runner: string; + valid: boolean; +}; diff --git a/dist/models/TrackScan.js b/dist/models/TrackScan.js index 27bdcf1..1e550d8 100644 --- a/dist/models/TrackScan.js +++ b/dist/models/TrackScan.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/UpdatePermission.d.ts b/dist/models/UpdatePermission.d.ts new file mode 100644 index 0000000..e7f2002 --- /dev/null +++ b/dist/models/UpdatePermission.d.ts @@ -0,0 +1,7 @@ +import type { Principal } from './Principal'; +export declare type UpdatePermission = { + id: number; + principal: Principal; + target: string; + action: string; +}; diff --git a/dist/models/UpdatePermission.js b/dist/models/UpdatePermission.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/UpdatePermission.js @@ -0,0 +1,5 @@ +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/UpdateRunner.d.ts b/dist/models/UpdateRunner.d.ts index 39ad9ee..2fe1c0d 100644 --- a/dist/models/UpdateRunner.d.ts +++ b/dist/models/UpdateRunner.d.ts @@ -1,11 +1,11 @@ -import type { RunnerGroup } from './RunnerGroup'; -export declare type UpdateRunner = { - id: number; - group: RunnerGroup; - firstname: string; - middlename?: string; - lastname: string; - phone?: string; - email?: string; - address?: number; -}; +import type { RunnerGroup } from './RunnerGroup'; +export declare type UpdateRunner = { + id: number; + group: RunnerGroup; + firstname: string; + middlename?: string; + lastname: string; + phone?: string; + email?: string; + address?: number; +}; diff --git a/dist/models/UpdateRunner.js b/dist/models/UpdateRunner.js index 27bdcf1..1e550d8 100644 --- a/dist/models/UpdateRunner.js +++ b/dist/models/UpdateRunner.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/UpdateRunnerOrganisation.d.ts b/dist/models/UpdateRunnerOrganisation.d.ts new file mode 100644 index 0000000..9354c9b --- /dev/null +++ b/dist/models/UpdateRunnerOrganisation.d.ts @@ -0,0 +1,6 @@ +export declare type UpdateRunnerOrganisation = { + id: number; + address?: number; + name: string; + contact?: number; +}; diff --git a/dist/models/UpdateRunnerOrganisation.js b/dist/models/UpdateRunnerOrganisation.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/UpdateRunnerOrganisation.js @@ -0,0 +1,5 @@ +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/UpdateRunnerTeam.d.ts b/dist/models/UpdateRunnerTeam.d.ts index 016410a..921d39a 100644 --- a/dist/models/UpdateRunnerTeam.d.ts +++ b/dist/models/UpdateRunnerTeam.d.ts @@ -1,7 +1,7 @@ -import type { RunnerOrganisation } from './RunnerOrganisation'; -export declare type UpdateRunnerTeam = { - id: number; - parentGroup: RunnerOrganisation; - name: string; - contact?: number; -}; +import type { RunnerOrganisation } from './RunnerOrganisation'; +export declare type UpdateRunnerTeam = { + id: number; + parentGroup: RunnerOrganisation; + name: string; + contact?: number; +}; diff --git a/dist/models/UpdateRunnerTeam.js b/dist/models/UpdateRunnerTeam.js index 27bdcf1..1e550d8 100644 --- a/dist/models/UpdateRunnerTeam.js +++ b/dist/models/UpdateRunnerTeam.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/UpdateUser.d.ts b/dist/models/UpdateUser.d.ts new file mode 100644 index 0000000..d658921 --- /dev/null +++ b/dist/models/UpdateUser.d.ts @@ -0,0 +1,12 @@ +export declare type UpdateUser = { + id: number; + firstname: string; + middlename?: string; + lastname: string; + username?: string; + email?: string; + phone?: string; + password?: string; + enabled: boolean; + groups?: any; +}; diff --git a/dist/models/UpdateUser.js b/dist/models/UpdateUser.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/UpdateUser.js @@ -0,0 +1,5 @@ +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/User.d.ts b/dist/models/User.d.ts index 63b6a66..e5125bc 100644 --- a/dist/models/User.d.ts +++ b/dist/models/User.d.ts @@ -1,17 +1,17 @@ -export declare type User = { - id: number; - uuid: string; - email: string; - phone?: string; - username: string; - firstname: string; - middlename?: string; - lastname: string; - password: string; - permissions?: any; - groups?: any; - enabled: boolean; - refreshTokenCount: number; - profilePic?: string; - actions?: any; -}; +export declare type User = { + uuid: string; + email: string; + phone?: string; + username: string; + firstname: string; + middlename?: string; + lastname: string; + password: string; + groups?: any; + enabled: boolean; + refreshTokenCount: number; + profilePic?: string; + resetRequestedTimestamp?: string; + actions?: any; + id: number; +}; diff --git a/dist/models/User.js b/dist/models/User.js index 27bdcf1..1e550d8 100644 --- a/dist/models/User.js +++ b/dist/models/User.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/UserAction.d.ts b/dist/models/UserAction.d.ts index c93f140..6af2012 100644 --- a/dist/models/UserAction.d.ts +++ b/dist/models/UserAction.d.ts @@ -1,6 +1,15 @@ -export declare type UserAction = { - id: number; - target: string; - action: string; - changed?: string; -}; +export declare type UserAction = { + id: number; + target: string; + action: UserAction.action; + changed?: string; +}; +export declare namespace UserAction { + enum action { + GET = "GET", + CREATE = "CREATE", + UPDATE = "UPDATE", + DELETE = "DELETE", + IMPORT = "IMPORT" + } +} diff --git a/dist/models/UserAction.js b/dist/models/UserAction.js index 27bdcf1..fceb590 100644 --- a/dist/models/UserAction.js +++ b/dist/models/UserAction.js @@ -1,5 +1,17 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UserAction = void 0; +var UserAction; +(function (UserAction) { + let action; + (function (action) { + action["GET"] = "GET"; + action["CREATE"] = "CREATE"; + action["UPDATE"] = "UPDATE"; + action["DELETE"] = "DELETE"; + action["IMPORT"] = "IMPORT"; + })(action = UserAction.action || (UserAction.action = {})); +})(UserAction = exports.UserAction || (exports.UserAction = {})); diff --git a/dist/models/UserDisabledError.d.ts b/dist/models/UserDisabledError.d.ts new file mode 100644 index 0000000..d3c8467 --- /dev/null +++ b/dist/models/UserDisabledError.d.ts @@ -0,0 +1,4 @@ +export declare type UserDisabledError = { + name: string; + message: string; +}; diff --git a/dist/models/UserDisabledError.js b/dist/models/UserDisabledError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/UserDisabledError.js @@ -0,0 +1,5 @@ +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/UserGroup.d.ts b/dist/models/UserGroup.d.ts index 243ffd6..d4a5d60 100644 --- a/dist/models/UserGroup.d.ts +++ b/dist/models/UserGroup.d.ts @@ -1,5 +1,5 @@ -export declare type UserGroup = { - id: number; - name: string; - description?: string; -}; +export declare type UserGroup = { + name: string; + description?: string; + id: number; +}; diff --git a/dist/models/UserGroup.js b/dist/models/UserGroup.js index 27bdcf1..1e550d8 100644 --- a/dist/models/UserGroup.js +++ b/dist/models/UserGroup.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/UserGroupIdsNotMatchingError.d.ts b/dist/models/UserGroupIdsNotMatchingError.d.ts index 9dca8c6..09101d8 100644 --- a/dist/models/UserGroupIdsNotMatchingError.d.ts +++ b/dist/models/UserGroupIdsNotMatchingError.d.ts @@ -1,4 +1,4 @@ -export declare type UserGroupIdsNotMatchingError = { - name: string; - message: string; -}; +export declare type UserGroupIdsNotMatchingError = { + name: string; + message: string; +}; diff --git a/dist/models/UserGroupIdsNotMatchingError.js b/dist/models/UserGroupIdsNotMatchingError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/UserGroupIdsNotMatchingError.js +++ b/dist/models/UserGroupIdsNotMatchingError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/UserGroupNotFoundError.d.ts b/dist/models/UserGroupNotFoundError.d.ts index 80f5a4a..72ebe69 100644 --- a/dist/models/UserGroupNotFoundError.d.ts +++ b/dist/models/UserGroupNotFoundError.d.ts @@ -1,4 +1,4 @@ -export declare type UserGroupNotFoundError = { - name: string; - message: string; -}; +export declare type UserGroupNotFoundError = { + name: string; + message: string; +}; diff --git a/dist/models/UserGroupNotFoundError.js b/dist/models/UserGroupNotFoundError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/UserGroupNotFoundError.js +++ b/dist/models/UserGroupNotFoundError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/UserIdsNotMatchingError.d.ts b/dist/models/UserIdsNotMatchingError.d.ts index 2a6d90f..99b8e68 100644 --- a/dist/models/UserIdsNotMatchingError.d.ts +++ b/dist/models/UserIdsNotMatchingError.d.ts @@ -1,4 +1,4 @@ -export declare type UserIdsNotMatchingError = { - name: string; - message: string; -}; +export declare type UserIdsNotMatchingError = { + name: string; + message: string; +}; diff --git a/dist/models/UserIdsNotMatchingError.js b/dist/models/UserIdsNotMatchingError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/UserIdsNotMatchingError.js +++ b/dist/models/UserIdsNotMatchingError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/UserNonexistantOrRefreshtokenInvalidError.d.ts b/dist/models/UserNonexistantOrRefreshtokenInvalidError.d.ts index 7835a95..119858a 100644 --- a/dist/models/UserNonexistantOrRefreshtokenInvalidError.d.ts +++ b/dist/models/UserNonexistantOrRefreshtokenInvalidError.d.ts @@ -1,4 +1,4 @@ -export declare type UserNonexistantOrRefreshtokenInvalidError = { - name: string; - message: string; -}; +export declare type UserNonexistantOrRefreshtokenInvalidError = { + name: string; + message: string; +}; diff --git a/dist/models/UserNonexistantOrRefreshtokenInvalidError.js b/dist/models/UserNonexistantOrRefreshtokenInvalidError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/UserNonexistantOrRefreshtokenInvalidError.js +++ b/dist/models/UserNonexistantOrRefreshtokenInvalidError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/UserNotFoundError.d.ts b/dist/models/UserNotFoundError.d.ts index d80ddb5..ed418ef 100644 --- a/dist/models/UserNotFoundError.d.ts +++ b/dist/models/UserNotFoundError.d.ts @@ -1,4 +1,4 @@ -export declare type UserNotFoundError = { - name: string; - message: string; -}; +export declare type UserNotFoundError = { + name: string; + message: string; +}; diff --git a/dist/models/UserNotFoundError.js b/dist/models/UserNotFoundError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/UserNotFoundError.js +++ b/dist/models/UserNotFoundError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/UserNotFoundOrRefreshTokenCountInvalidError.d.ts b/dist/models/UserNotFoundOrRefreshTokenCountInvalidError.d.ts index cc32a5a..6afa694 100644 --- a/dist/models/UserNotFoundOrRefreshTokenCountInvalidError.d.ts +++ b/dist/models/UserNotFoundOrRefreshTokenCountInvalidError.d.ts @@ -1,4 +1,4 @@ -export declare type UserNotFoundOrRefreshTokenCountInvalidError = { - name: string; - message: string; -}; +export declare type UserNotFoundOrRefreshTokenCountInvalidError = { + name: string; + message: string; +}; diff --git a/dist/models/UserNotFoundOrRefreshTokenCountInvalidError.js b/dist/models/UserNotFoundOrRefreshTokenCountInvalidError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/UserNotFoundOrRefreshTokenCountInvalidError.js +++ b/dist/models/UserNotFoundOrRefreshTokenCountInvalidError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/UsernameOrEmailNeededError.d.ts b/dist/models/UsernameOrEmailNeededError.d.ts index e78074b..3cf293f 100644 --- a/dist/models/UsernameOrEmailNeededError.d.ts +++ b/dist/models/UsernameOrEmailNeededError.d.ts @@ -1,4 +1,4 @@ -export declare type UsernameOrEmailNeededError = { - name: string; - message: string; -}; +export declare type UsernameOrEmailNeededError = { + name: string; + message: string; +}; diff --git a/dist/models/UsernameOrEmailNeededError.js b/dist/models/UsernameOrEmailNeededError.js index 27bdcf1..1e550d8 100644 --- a/dist/models/UsernameOrEmailNeededError.js +++ b/dist/models/UsernameOrEmailNeededError.js @@ -1,5 +1,5 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/services/AuthService.d.ts b/dist/services/AuthService.d.ts index 4887b07..fd37314 100644 --- a/dist/services/AuthService.d.ts +++ b/dist/services/AuthService.d.ts @@ -1,38 +1,61 @@ -import type { Auth } from '../models/Auth'; -import type { CreateAuth } from '../models/CreateAuth'; -import type { HandleLogout } from '../models/HandleLogout'; -import type { IllegalJWTError } from '../models/IllegalJWTError'; -import type { InvalidCredentialsError } from '../models/InvalidCredentialsError'; -import type { JwtNotProvidedError } from '../models/JwtNotProvidedError'; -import type { Logout } from '../models/Logout'; -import type { PasswordNeededError } from '../models/PasswordNeededError'; -import type { RefreshAuth } from '../models/RefreshAuth'; -import type { RefreshTokenCountInvalidError } from '../models/RefreshTokenCountInvalidError'; -import type { UsernameOrEmailNeededError } from '../models/UsernameOrEmailNeededError'; -import type { UserNotFoundError } from '../models/UserNotFoundError'; -export declare class AuthService { - /** - * Login - * Create a new access token object - * @param requestBody CreateAuth - * @result any - * @throws ApiError - */ - static authControllerLogin(requestBody?: CreateAuth): Promise<(Auth | InvalidCredentialsError | UserNotFoundError | UsernameOrEmailNeededError | PasswordNeededError | InvalidCredentialsError)>; - /** - * Logout - * Create a new access token object - * @param requestBody HandleLogout - * @result any - * @throws ApiError - */ - static authControllerLogout(requestBody?: HandleLogout): Promise<(Logout | InvalidCredentialsError | UserNotFoundError | UsernameOrEmailNeededError | PasswordNeededError | InvalidCredentialsError)>; - /** - * Refresh - * refresh a access token - * @param requestBody RefreshAuth - * @result any - * @throws ApiError - */ - static authControllerRefresh(requestBody?: RefreshAuth): Promise<(Auth | JwtNotProvidedError | IllegalJWTError | UserNotFoundError | RefreshTokenCountInvalidError)>; -} +import type { Auth } from '../models/Auth'; +import type { CreateAuth } from '../models/CreateAuth'; +import type { CreateResetToken } from '../models/CreateResetToken'; +import type { HandleLogout } from '../models/HandleLogout'; +import type { IllegalJWTError } from '../models/IllegalJWTError'; +import type { InvalidCredentialsError } from '../models/InvalidCredentialsError'; +import type { JwtNotProvidedError } from '../models/JwtNotProvidedError'; +import type { Logout } from '../models/Logout'; +import type { PasswordNeededError } from '../models/PasswordNeededError'; +import type { RefreshAuth } from '../models/RefreshAuth'; +import type { RefreshTokenCountInvalidError } from '../models/RefreshTokenCountInvalidError'; +import type { ResetPassword } from '../models/ResetPassword'; +import type { UsernameOrEmailNeededError } from '../models/UsernameOrEmailNeededError'; +import type { UserNotFoundError } from '../models/UserNotFoundError'; +export declare class AuthService { + /** + * Login + * Login with your username/email and password.
You will receive: + * * access token (use it as a bearer token) + * * refresh token (will also be sent as a cookie) + * @param requestBody CreateAuth + * @returns any + * @throws ApiError + */ + static authControllerLogin(requestBody?: CreateAuth): Promise<(Auth | InvalidCredentialsError | UserNotFoundError | UsernameOrEmailNeededError | PasswordNeededError)>; + /** + * Logout + * Logout using your refresh token.
This instantly invalidates all your access and refresh tokens. + * @param requestBody HandleLogout + * @returns any + * @throws ApiError + */ + static authControllerLogout(requestBody?: HandleLogout): Promise<(Logout | InvalidCredentialsError | UserNotFoundError | UsernameOrEmailNeededError | PasswordNeededError)>; + /** + * Refresh + * Refresh your access and refresh tokens using a valid refresh token.
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 + * @throws ApiError + */ + static authControllerRefresh(requestBody?: RefreshAuth): Promise<(Auth | JwtNotProvidedError | IllegalJWTError | UserNotFoundError | RefreshTokenCountInvalidError)>; + /** + * Get reset token + * Request a password reset token.
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.
This will set the user's password to the one you provided in the body.
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)>; +} diff --git a/dist/services/AuthService.js b/dist/services/AuthService.js index 60e6511..55fe198 100644 --- a/dist/services/AuthService.js +++ b/dist/services/AuthService.js @@ -1,52 +1,87 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AuthService = void 0; -const request_1 = require("../core/request"); -class AuthService { - /** - * Login - * Create a new access token object - * @param requestBody CreateAuth - * @result any - * @throws ApiError - */ - static async authControllerLogin(requestBody) { - const result = await request_1.request({ - method: 'POST', - path: `/api/auth/login`, - body: requestBody, - }); - return result.body; - } - /** - * Logout - * Create a new access token object - * @param requestBody HandleLogout - * @result any - * @throws ApiError - */ - static async authControllerLogout(requestBody) { - const result = await request_1.request({ - method: 'POST', - path: `/api/auth/logout`, - body: requestBody, - }); - return result.body; - } - /** - * Refresh - * refresh a access token - * @param requestBody RefreshAuth - * @result any - * @throws ApiError - */ - static async authControllerRefresh(requestBody) { - const result = await request_1.request({ - method: 'POST', - path: `/api/auth/refresh`, - body: requestBody, - }); - return result.body; - } -} -exports.AuthService = AuthService; +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AuthService = void 0; +const request_1 = require("../core/request"); +class AuthService { + /** + * Login + * Login with your username/email and password.
You will receive: + * * access token (use it as a bearer token) + * * refresh token (will also be sent as a cookie) + * @param requestBody CreateAuth + * @returns any + * @throws ApiError + */ + static async authControllerLogin(requestBody) { + const result = await request_1.request({ + method: 'POST', + path: `/api/auth/login`, + body: requestBody, + }); + return result.body; + } + /** + * Logout + * Logout using your refresh token.
This instantly invalidates all your access and refresh tokens. + * @param requestBody HandleLogout + * @returns any + * @throws ApiError + */ + static async authControllerLogout(requestBody) { + const result = await request_1.request({ + method: 'POST', + path: `/api/auth/logout`, + body: requestBody, + }); + return result.body; + } + /** + * Refresh + * Refresh your access and refresh tokens using a valid refresh token.
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 + * @throws ApiError + */ + static async authControllerRefresh(requestBody) { + const result = await request_1.request({ + method: 'POST', + path: `/api/auth/refresh`, + body: requestBody, + }); + return result.body; + } + /** + * Get reset token + * Request a password reset token.
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.
This will set the user's password to the one you provided in the body.
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; diff --git a/dist/services/ImportService.d.ts b/dist/services/ImportService.d.ts new file mode 100644 index 0000000..3977284 --- /dev/null +++ b/dist/services/ImportService.d.ts @@ -0,0 +1,55 @@ +import type { ImportRunner } from '../models/ImportRunner'; +import type { ResponseRunner } from '../models/ResponseRunner'; +export declare class ImportService { + /** + * Post json + * Create new runners from json and insert them into the provided group.
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 + * @throws ApiError + */ + static importControllerPostJson(group?: number, requestBody?: Array): Promise>; + /** + * Post orgs json + * Create new runners from json and insert them into the provided org.
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 + * @throws ApiError + */ + static importControllerPostOrgsJson(id: number, requestBody?: Array): Promise>; + /** + * Post teams json + * Create new runners from json and insert them into the provided team + * @param id + * @param requestBody ImportRunner + * @returns ResponseRunner + * @throws ApiError + */ + static importControllerPostTeamsJson(id: number, requestBody?: Array): Promise>; + /** + * Post csv + * Create new runners from csv and insert them into the provided group.
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 + * @throws ApiError + */ + static importControllerPostCsv(group?: number): Promise>; + /** + * Post orgs csv + * Create new runners from csv and insert them into the provided org.
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 + * @throws ApiError + */ + static importControllerPostOrgsCsv(id: number): Promise>; + /** + * Post teams csv + * Create new runners from csv and insert them into the provided team + * @param id + * @returns ResponseRunner + * @throws ApiError + */ + static importControllerPostTeamsCsv(id: number): Promise>; +} diff --git a/dist/services/ImportService.js b/dist/services/ImportService.js new file mode 100644 index 0000000..7f22adc --- /dev/null +++ b/dist/services/ImportService.js @@ -0,0 +1,103 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ImportService = void 0; +const request_1 = require("../core/request"); +class ImportService { + /** + * Post json + * Create new runners from json and insert them into the provided group.
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 + * @throws ApiError + */ + static async importControllerPostJson(group, requestBody) { + const result = await request_1.request({ + method: 'POST', + path: `/api/runners/import`, + query: { + 'group': group, + }, + body: requestBody, + }); + return result.body; + } + /** + * Post orgs json + * Create new runners from json and insert them into the provided org.
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 + * @throws ApiError + */ + static async importControllerPostOrgsJson(id, requestBody) { + const result = await request_1.request({ + method: 'POST', + path: `/api/organisations/${id}/import`, + body: requestBody, + }); + return result.body; + } + /** + * Post teams json + * Create new runners from json and insert them into the provided team + * @param id + * @param requestBody ImportRunner + * @returns ResponseRunner + * @throws ApiError + */ + static async importControllerPostTeamsJson(id, requestBody) { + const result = await request_1.request({ + method: 'POST', + path: `/api/teams/${id}/import`, + body: requestBody, + }); + return result.body; + } + /** + * Post csv + * Create new runners from csv and insert them into the provided group.
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 + * @throws ApiError + */ + static async importControllerPostCsv(group) { + const result = await request_1.request({ + method: 'POST', + path: `/api/runners/import/csv`, + query: { + 'group': group, + }, + }); + return result.body; + } + /** + * Post orgs csv + * Create new runners from csv and insert them into the provided org.
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 + * @throws ApiError + */ + static async importControllerPostOrgsCsv(id) { + const result = await request_1.request({ + method: 'POST', + path: `/api/organisations/${id}/import/csv`, + }); + return result.body; + } + /** + * Post teams csv + * Create new runners from csv and insert them into the provided team + * @param id + * @returns ResponseRunner + * @throws ApiError + */ + static async importControllerPostTeamsCsv(id) { + const result = await request_1.request({ + method: 'POST', + path: `/api/teams/${id}/import/csv`, + }); + return result.body; + } +} +exports.ImportService = ImportService; diff --git a/dist/services/PermissionService.d.ts b/dist/services/PermissionService.d.ts new file mode 100644 index 0000000..3092e86 --- /dev/null +++ b/dist/services/PermissionService.d.ts @@ -0,0 +1,49 @@ +import type { CreatePermission } from '../models/CreatePermission'; +import type { ResponseEmpty } from '../models/ResponseEmpty'; +import type { ResponsePermission } from '../models/ResponsePermission'; +import type { ResponsePrincipal } from '../models/ResponsePrincipal'; +import type { UpdatePermission } from '../models/UpdatePermission'; +export declare class PermissionService { + /** + * Get all + * Lists all permissions for all users and groups. + * @returns ResponsePermission + * @throws ApiError + */ + static permissionControllerGetAll(): Promise>; + /** + * Post + * Create a new permission for a existing principal(user/group).
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 + * @throws ApiError + */ + static permissionControllerPost(requestBody?: CreatePermission): Promise; + /** + * Get one + * Lists all information about the permission whose id got provided. + * @param id + * @returns ResponsePermission + * @throws ApiError + */ + static permissionControllerGetOne(id: number): Promise; + /** + * Put + * Update a permission object.
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.
Please remember that ids can't be changed. + * @param id + * @param requestBody UpdatePermission + * @returns ResponsePrincipal + * @throws ApiError + */ + static permissionControllerPut(id: number, requestBody?: UpdatePermission): Promise; + /** + * Remove + * Deletes the permission whose id you provide.
If no permission with this id exists it will just return 204(no content). + * @param id + * @param force + * @returns ResponsePermission + * @returns ResponseEmpty + * @throws ApiError + */ + static permissionControllerRemove(id: number, force?: boolean): Promise; +} diff --git a/dist/services/PermissionService.js b/dist/services/PermissionService.js new file mode 100644 index 0000000..586f3bb --- /dev/null +++ b/dist/services/PermissionService.js @@ -0,0 +1,84 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PermissionService = void 0; +const request_1 = require("../core/request"); +class PermissionService { + /** + * Get all + * Lists all permissions for all users and groups. + * @returns ResponsePermission + * @throws ApiError + */ + static async permissionControllerGetAll() { + const result = await request_1.request({ + method: 'GET', + path: `/api/permissions`, + }); + return result.body; + } + /** + * Post + * Create a new permission for a existing principal(user/group).
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 + * @throws ApiError + */ + static async permissionControllerPost(requestBody) { + const result = await request_1.request({ + method: 'POST', + path: `/api/permissions`, + body: requestBody, + }); + return result.body; + } + /** + * Get one + * Lists all information about the permission whose id got provided. + * @param id + * @returns ResponsePermission + * @throws ApiError + */ + static async permissionControllerGetOne(id) { + const result = await request_1.request({ + method: 'GET', + path: `/api/permissions/${id}`, + }); + return result.body; + } + /** + * Put + * Update a permission object.
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.
Please remember that ids can't be changed. + * @param id + * @param requestBody UpdatePermission + * @returns ResponsePrincipal + * @throws ApiError + */ + static async permissionControllerPut(id, requestBody) { + const result = await request_1.request({ + method: 'PUT', + path: `/api/permissions/${id}`, + body: requestBody, + }); + return result.body; + } + /** + * Remove + * Deletes the permission whose id you provide.
If no permission with this id exists it will just return 204(no content). + * @param id + * @param force + * @returns ResponsePermission + * @returns ResponseEmpty + * @throws ApiError + */ + static async permissionControllerRemove(id, force) { + const result = await request_1.request({ + method: 'DELETE', + path: `/api/permissions/${id}`, + query: { + 'force': force, + }, + }); + return result.body; + } +} +exports.PermissionService = PermissionService; diff --git a/dist/services/RunnerOrganisationService.d.ts b/dist/services/RunnerOrganisationService.d.ts index 9a67ce6..1a5015b 100644 --- a/dist/services/RunnerOrganisationService.d.ts +++ b/dist/services/RunnerOrganisationService.d.ts @@ -1,48 +1,48 @@ -import type { CreateRunnerOrganisation } from '../models/CreateRunnerOrganisation'; -import type { ResponseEmpty } from '../models/ResponseEmpty'; -import type { ResponseRunnerOrganisation } from '../models/ResponseRunnerOrganisation'; -import type { RunnerOrganisation } from '../models/RunnerOrganisation'; -export declare class RunnerOrganisationService { - /** - * Get all - * Lists all runnerOrganisations. - * @result ResponseRunnerOrganisation - * @throws ApiError - */ - static runnerOrganisationControllerGetAll(): Promise>; - /** - * Post - * Create a new runnerOrganisation object (id will be generated automagicly). - * @param requestBody CreateRunnerOrganisation - * @result ResponseRunnerOrganisation - * @throws ApiError - */ - static runnerOrganisationControllerPost(requestBody?: CreateRunnerOrganisation): Promise; - /** - * Get one - * Returns a runnerOrganisation of a specified id (if it exists) - * @param id - * @result ResponseRunnerOrganisation - * @throws ApiError - */ - static runnerOrganisationControllerGetOne(id: number): Promise; - /** - * Put - * Update a runnerOrganisation object (id can't be changed). - * @param id - * @param requestBody RunnerOrganisation - * @result ResponseRunnerOrganisation - * @throws ApiError - */ - static runnerOrganisationControllerPut(id: number, requestBody?: RunnerOrganisation): Promise; - /** - * Remove - * Delete a specified runnerOrganisation (if it exists). - * @param id - * @param force - * @result ResponseRunnerOrganisation - * @result ResponseEmpty - * @throws ApiError - */ - static runnerOrganisationControllerRemove(id: number, force?: boolean): Promise; -} +import type { CreateRunnerOrganisation } from '../models/CreateRunnerOrganisation'; +import type { ResponseEmpty } from '../models/ResponseEmpty'; +import type { ResponseRunnerOrganisation } from '../models/ResponseRunnerOrganisation'; +import type { UpdateRunnerOrganisation } from '../models/UpdateRunnerOrganisation'; +export declare class RunnerOrganisationService { + /** + * Get all + * Lists all organisations.
This includes their address, contact and teams (if existing/associated). + * @returns ResponseRunnerOrganisation + * @throws ApiError + */ + static runnerOrganisationControllerGetAll(): Promise>; + /** + * Post + * Create a new organsisation. + * @param requestBody CreateRunnerOrganisation + * @returns ResponseRunnerOrganisation + * @throws ApiError + */ + static runnerOrganisationControllerPost(requestBody?: CreateRunnerOrganisation): Promise; + /** + * Get one + * Lists all information about the organisation whose id got provided. + * @param id + * @returns ResponseRunnerOrganisation + * @throws ApiError + */ + static runnerOrganisationControllerGetOne(id: number): Promise; + /** + * Put + * Update the organisation whose id you provided.
Please remember that ids can't be changed. + * @param id + * @param requestBody UpdateRunnerOrganisation + * @returns ResponseRunnerOrganisation + * @throws ApiError + */ + static runnerOrganisationControllerPut(id: number, requestBody?: UpdateRunnerOrganisation): Promise; + /** + * Remove + * Delete the organsisation whose id you provided.
If the organisation still has runners and/or teams associated this will fail.
To delete the organisation with all associated runners and teams set the force QueryParam to true (cascading deletion might take a while).
If no organisation with this id exists it will just return 204(no content). + * @param id + * @param force + * @returns ResponseRunnerOrganisation + * @returns ResponseEmpty + * @throws ApiError + */ + static runnerOrganisationControllerRemove(id: number, force?: boolean): Promise; +} diff --git a/dist/services/RunnerOrganisationService.js b/dist/services/RunnerOrganisationService.js index 7a0f8f7..9665579 100644 --- a/dist/services/RunnerOrganisationService.js +++ b/dist/services/RunnerOrganisationService.js @@ -1,84 +1,84 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RunnerOrganisationService = void 0; -const request_1 = require("../core/request"); -class RunnerOrganisationService { - /** - * Get all - * Lists all runnerOrganisations. - * @result ResponseRunnerOrganisation - * @throws ApiError - */ - static async runnerOrganisationControllerGetAll() { - const result = await request_1.request({ - method: 'GET', - path: `/api/organisations`, - }); - return result.body; - } - /** - * Post - * Create a new runnerOrganisation object (id will be generated automagicly). - * @param requestBody CreateRunnerOrganisation - * @result ResponseRunnerOrganisation - * @throws ApiError - */ - static async runnerOrganisationControllerPost(requestBody) { - const result = await request_1.request({ - method: 'POST', - path: `/api/organisations`, - body: requestBody, - }); - return result.body; - } - /** - * Get one - * Returns a runnerOrganisation of a specified id (if it exists) - * @param id - * @result ResponseRunnerOrganisation - * @throws ApiError - */ - static async runnerOrganisationControllerGetOne(id) { - const result = await request_1.request({ - method: 'GET', - path: `/api/organisations/${id}`, - }); - return result.body; - } - /** - * Put - * Update a runnerOrganisation object (id can't be changed). - * @param id - * @param requestBody RunnerOrganisation - * @result ResponseRunnerOrganisation - * @throws ApiError - */ - static async runnerOrganisationControllerPut(id, requestBody) { - const result = await request_1.request({ - method: 'PUT', - path: `/api/organisations/${id}`, - body: requestBody, - }); - return result.body; - } - /** - * Remove - * Delete a specified runnerOrganisation (if it exists). - * @param id - * @param force - * @result ResponseRunnerOrganisation - * @result ResponseEmpty - * @throws ApiError - */ - static async runnerOrganisationControllerRemove(id, force) { - const result = await request_1.request({ - method: 'DELETE', - path: `/api/organisations/${id}`, - query: { - 'force': force, - }, - }); - return result.body; - } -} -exports.RunnerOrganisationService = RunnerOrganisationService; +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RunnerOrganisationService = void 0; +const request_1 = require("../core/request"); +class RunnerOrganisationService { + /** + * Get all + * Lists all organisations.
This includes their address, contact and teams (if existing/associated). + * @returns ResponseRunnerOrganisation + * @throws ApiError + */ + static async runnerOrganisationControllerGetAll() { + const result = await request_1.request({ + method: 'GET', + path: `/api/organisations`, + }); + return result.body; + } + /** + * Post + * Create a new organsisation. + * @param requestBody CreateRunnerOrganisation + * @returns ResponseRunnerOrganisation + * @throws ApiError + */ + static async runnerOrganisationControllerPost(requestBody) { + const result = await request_1.request({ + method: 'POST', + path: `/api/organisations`, + body: requestBody, + }); + return result.body; + } + /** + * Get one + * Lists all information about the organisation whose id got provided. + * @param id + * @returns ResponseRunnerOrganisation + * @throws ApiError + */ + static async runnerOrganisationControllerGetOne(id) { + const result = await request_1.request({ + method: 'GET', + path: `/api/organisations/${id}`, + }); + return result.body; + } + /** + * Put + * Update the organisation whose id you provided.
Please remember that ids can't be changed. + * @param id + * @param requestBody UpdateRunnerOrganisation + * @returns ResponseRunnerOrganisation + * @throws ApiError + */ + static async runnerOrganisationControllerPut(id, requestBody) { + const result = await request_1.request({ + method: 'PUT', + path: `/api/organisations/${id}`, + body: requestBody, + }); + return result.body; + } + /** + * Remove + * Delete the organsisation whose id you provided.
If the organisation still has runners and/or teams associated this will fail.
To delete the organisation with all associated runners and teams set the force QueryParam to true (cascading deletion might take a while).
If no organisation with this id exists it will just return 204(no content). + * @param id + * @param force + * @returns ResponseRunnerOrganisation + * @returns ResponseEmpty + * @throws ApiError + */ + static async runnerOrganisationControllerRemove(id, force) { + const result = await request_1.request({ + method: 'DELETE', + path: `/api/organisations/${id}`, + query: { + 'force': force, + }, + }); + return result.body; + } +} +exports.RunnerOrganisationService = RunnerOrganisationService; diff --git a/dist/services/RunnerService.d.ts b/dist/services/RunnerService.d.ts index 54ee4c3..1ae374f 100644 --- a/dist/services/RunnerService.d.ts +++ b/dist/services/RunnerService.d.ts @@ -1,50 +1,50 @@ -import type { CreateRunner } from '../models/CreateRunner'; -import type { ResponseEmpty } from '../models/ResponseEmpty'; -import type { ResponseRunner } from '../models/ResponseRunner'; -import type { RunnerGroupNeededError } from '../models/RunnerGroupNeededError'; -import type { RunnerGroupNotFoundError } from '../models/RunnerGroupNotFoundError'; -import type { UpdateRunner } from '../models/UpdateRunner'; -export declare class RunnerService { - /** - * Get all - * Lists all runners. - * @result ResponseRunner - * @throws ApiError - */ - static runnerControllerGetAll(): Promise>; - /** - * Post - * Create a new runner object (id will be generated automagicly). - * @param requestBody CreateRunner - * @result any - * @throws ApiError - */ - static runnerControllerPost(requestBody?: CreateRunner): Promise<(ResponseRunner | RunnerGroupNeededError | RunnerGroupNotFoundError)>; - /** - * Get one - * Returns a runner of a specified id (if it exists) - * @param id - * @result ResponseRunner - * @throws ApiError - */ - static runnerControllerGetOne(id: number): Promise; - /** - * Put - * Update a runner object (id can't be changed). - * @param id - * @param requestBody UpdateRunner - * @result ResponseRunner - * @throws ApiError - */ - static runnerControllerPut(id: number, requestBody?: UpdateRunner): Promise; - /** - * Remove - * Delete a specified runner (if it exists). - * @param id - * @param force - * @result ResponseRunner - * @result ResponseEmpty - * @throws ApiError - */ - static runnerControllerRemove(id: number, force?: boolean): Promise; -} +import type { CreateRunner } from '../models/CreateRunner'; +import type { ResponseEmpty } from '../models/ResponseEmpty'; +import type { ResponseRunner } from '../models/ResponseRunner'; +import type { RunnerGroupNeededError } from '../models/RunnerGroupNeededError'; +import type { RunnerGroupNotFoundError } from '../models/RunnerGroupNotFoundError'; +import type { UpdateRunner } from '../models/UpdateRunner'; +export declare class RunnerService { + /** + * Get all + * Lists all runners from all teams/orgs.
This includes the runner's group and distance ran. + * @returns ResponseRunner + * @throws ApiError + */ + static runnerControllerGetAll(): Promise>; + /** + * Post + * Create a new runner.
Please remeber to provide the runner's group's id. + * @param requestBody CreateRunner + * @returns any + * @throws ApiError + */ + static runnerControllerPost(requestBody?: CreateRunner): Promise<(ResponseRunner | RunnerGroupNeededError | RunnerGroupNotFoundError)>; + /** + * Get one + * Lists all information about the runner whose id got provided. + * @param id + * @returns ResponseRunner + * @throws ApiError + */ + static runnerControllerGetOne(id: number): Promise; + /** + * Put + * Update the runner whose id you provided.
Please remember that ids can't be changed. + * @param id + * @param requestBody UpdateRunner + * @returns ResponseRunner + * @throws ApiError + */ + static runnerControllerPut(id: number, requestBody?: UpdateRunner): Promise; + /** + * Remove + * Delete the runner whose id you provided.
If no runner with this id exists it will just return 204(no content). + * @param id + * @param force + * @returns ResponseRunner + * @returns ResponseEmpty + * @throws ApiError + */ + static runnerControllerRemove(id: number, force?: boolean): Promise; +} diff --git a/dist/services/RunnerService.js b/dist/services/RunnerService.js index a1557cc..fdb7abb 100644 --- a/dist/services/RunnerService.js +++ b/dist/services/RunnerService.js @@ -1,84 +1,84 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RunnerService = void 0; -const request_1 = require("../core/request"); -class RunnerService { - /** - * Get all - * Lists all runners. - * @result ResponseRunner - * @throws ApiError - */ - static async runnerControllerGetAll() { - const result = await request_1.request({ - method: 'GET', - path: `/api/runners`, - }); - return result.body; - } - /** - * Post - * Create a new runner object (id will be generated automagicly). - * @param requestBody CreateRunner - * @result any - * @throws ApiError - */ - static async runnerControllerPost(requestBody) { - const result = await request_1.request({ - method: 'POST', - path: `/api/runners`, - body: requestBody, - }); - return result.body; - } - /** - * Get one - * Returns a runner of a specified id (if it exists) - * @param id - * @result ResponseRunner - * @throws ApiError - */ - static async runnerControllerGetOne(id) { - const result = await request_1.request({ - method: 'GET', - path: `/api/runners/${id}`, - }); - return result.body; - } - /** - * Put - * Update a runner object (id can't be changed). - * @param id - * @param requestBody UpdateRunner - * @result ResponseRunner - * @throws ApiError - */ - static async runnerControllerPut(id, requestBody) { - const result = await request_1.request({ - method: 'PUT', - path: `/api/runners/${id}`, - body: requestBody, - }); - return result.body; - } - /** - * Remove - * Delete a specified runner (if it exists). - * @param id - * @param force - * @result ResponseRunner - * @result ResponseEmpty - * @throws ApiError - */ - static async runnerControllerRemove(id, force) { - const result = await request_1.request({ - method: 'DELETE', - path: `/api/runners/${id}`, - query: { - 'force': force, - }, - }); - return result.body; - } -} -exports.RunnerService = RunnerService; +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RunnerService = void 0; +const request_1 = require("../core/request"); +class RunnerService { + /** + * Get all + * Lists all runners from all teams/orgs.
This includes the runner's group and distance ran. + * @returns ResponseRunner + * @throws ApiError + */ + static async runnerControllerGetAll() { + const result = await request_1.request({ + method: 'GET', + path: `/api/runners`, + }); + return result.body; + } + /** + * Post + * Create a new runner.
Please remeber to provide the runner's group's id. + * @param requestBody CreateRunner + * @returns any + * @throws ApiError + */ + static async runnerControllerPost(requestBody) { + const result = await request_1.request({ + method: 'POST', + path: `/api/runners`, + body: requestBody, + }); + return result.body; + } + /** + * Get one + * Lists all information about the runner whose id got provided. + * @param id + * @returns ResponseRunner + * @throws ApiError + */ + static async runnerControllerGetOne(id) { + const result = await request_1.request({ + method: 'GET', + path: `/api/runners/${id}`, + }); + return result.body; + } + /** + * Put + * Update the runner whose id you provided.
Please remember that ids can't be changed. + * @param id + * @param requestBody UpdateRunner + * @returns ResponseRunner + * @throws ApiError + */ + static async runnerControllerPut(id, requestBody) { + const result = await request_1.request({ + method: 'PUT', + path: `/api/runners/${id}`, + body: requestBody, + }); + return result.body; + } + /** + * Remove + * Delete the runner whose id you provided.
If no runner with this id exists it will just return 204(no content). + * @param id + * @param force + * @returns ResponseRunner + * @returns ResponseEmpty + * @throws ApiError + */ + static async runnerControllerRemove(id, force) { + const result = await request_1.request({ + method: 'DELETE', + path: `/api/runners/${id}`, + query: { + 'force': force, + }, + }); + return result.body; + } +} +exports.RunnerService = RunnerService; diff --git a/dist/services/RunnerTeamService.d.ts b/dist/services/RunnerTeamService.d.ts index 16cc319..48d1213 100644 --- a/dist/services/RunnerTeamService.d.ts +++ b/dist/services/RunnerTeamService.d.ts @@ -1,48 +1,48 @@ -import type { CreateRunnerTeam } from '../models/CreateRunnerTeam'; -import type { ResponseEmpty } from '../models/ResponseEmpty'; -import type { ResponseRunnerTeam } from '../models/ResponseRunnerTeam'; -import type { UpdateRunnerTeam } from '../models/UpdateRunnerTeam'; -export declare class RunnerTeamService { - /** - * Get all - * Lists all runnerTeams. - * @result ResponseRunnerTeam - * @throws ApiError - */ - static runnerTeamControllerGetAll(): Promise>; - /** - * Post - * Create a new runnerTeam object (id will be generated automagicly). - * @param requestBody CreateRunnerTeam - * @result ResponseRunnerTeam - * @throws ApiError - */ - static runnerTeamControllerPost(requestBody?: CreateRunnerTeam): Promise; - /** - * Get one - * Returns a runnerTeam of a specified id (if it exists) - * @param id - * @result ResponseRunnerTeam - * @throws ApiError - */ - static runnerTeamControllerGetOne(id: number): Promise; - /** - * Put - * Update a runnerTeam object (id can't be changed). - * @param id - * @param requestBody UpdateRunnerTeam - * @result ResponseRunnerTeam - * @throws ApiError - */ - static runnerTeamControllerPut(id: number, requestBody?: UpdateRunnerTeam): Promise; - /** - * Remove - * Delete a specified runnerTeam (if it exists). - * @param id - * @param force - * @result ResponseRunnerTeam - * @result ResponseEmpty - * @throws ApiError - */ - static runnerTeamControllerRemove(id: number, force?: boolean): Promise; -} +import type { CreateRunnerTeam } from '../models/CreateRunnerTeam'; +import type { ResponseEmpty } from '../models/ResponseEmpty'; +import type { ResponseRunnerTeam } from '../models/ResponseRunnerTeam'; +import type { UpdateRunnerTeam } from '../models/UpdateRunnerTeam'; +export declare class RunnerTeamService { + /** + * Get all + * Lists all teams.
This includes their parent organisation and contact (if existing/associated). + * @returns ResponseRunnerTeam + * @throws ApiError + */ + static runnerTeamControllerGetAll(): Promise>; + /** + * Post + * Create a new organsisation.
Please remember to provide it's parent group's id. + * @param requestBody CreateRunnerTeam + * @returns ResponseRunnerTeam + * @throws ApiError + */ + static runnerTeamControllerPost(requestBody?: CreateRunnerTeam): Promise; + /** + * Get one + * Lists all information about the team whose id got provided. + * @param id + * @returns ResponseRunnerTeam + * @throws ApiError + */ + static runnerTeamControllerGetOne(id: number): Promise; + /** + * Put + * Update the team whose id you provided.
Please remember that ids can't be changed. + * @param id + * @param requestBody UpdateRunnerTeam + * @returns ResponseRunnerTeam + * @throws ApiError + */ + static runnerTeamControllerPut(id: number, requestBody?: UpdateRunnerTeam): Promise; + /** + * Remove + * Delete the team whose id you provided.
If the team still has runners associated this will fail.
To delete the team with all associated runners set the force QueryParam to true (cascading deletion might take a while).
If no team with this id exists it will just return 204(no content). + * @param id + * @param force + * @returns ResponseRunnerTeam + * @returns ResponseEmpty + * @throws ApiError + */ + static runnerTeamControllerRemove(id: number, force?: boolean): Promise; +} diff --git a/dist/services/RunnerTeamService.js b/dist/services/RunnerTeamService.js index c620596..e20493a 100644 --- a/dist/services/RunnerTeamService.js +++ b/dist/services/RunnerTeamService.js @@ -1,84 +1,84 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RunnerTeamService = void 0; -const request_1 = require("../core/request"); -class RunnerTeamService { - /** - * Get all - * Lists all runnerTeams. - * @result ResponseRunnerTeam - * @throws ApiError - */ - static async runnerTeamControllerGetAll() { - const result = await request_1.request({ - method: 'GET', - path: `/api/teams`, - }); - return result.body; - } - /** - * Post - * Create a new runnerTeam object (id will be generated automagicly). - * @param requestBody CreateRunnerTeam - * @result ResponseRunnerTeam - * @throws ApiError - */ - static async runnerTeamControllerPost(requestBody) { - const result = await request_1.request({ - method: 'POST', - path: `/api/teams`, - body: requestBody, - }); - return result.body; - } - /** - * Get one - * Returns a runnerTeam of a specified id (if it exists) - * @param id - * @result ResponseRunnerTeam - * @throws ApiError - */ - static async runnerTeamControllerGetOne(id) { - const result = await request_1.request({ - method: 'GET', - path: `/api/teams/${id}`, - }); - return result.body; - } - /** - * Put - * Update a runnerTeam object (id can't be changed). - * @param id - * @param requestBody UpdateRunnerTeam - * @result ResponseRunnerTeam - * @throws ApiError - */ - static async runnerTeamControllerPut(id, requestBody) { - const result = await request_1.request({ - method: 'PUT', - path: `/api/teams/${id}`, - body: requestBody, - }); - return result.body; - } - /** - * Remove - * Delete a specified runnerTeam (if it exists). - * @param id - * @param force - * @result ResponseRunnerTeam - * @result ResponseEmpty - * @throws ApiError - */ - static async runnerTeamControllerRemove(id, force) { - const result = await request_1.request({ - method: 'DELETE', - path: `/api/teams/${id}`, - query: { - 'force': force, - }, - }); - return result.body; - } -} -exports.RunnerTeamService = RunnerTeamService; +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RunnerTeamService = void 0; +const request_1 = require("../core/request"); +class RunnerTeamService { + /** + * Get all + * Lists all teams.
This includes their parent organisation and contact (if existing/associated). + * @returns ResponseRunnerTeam + * @throws ApiError + */ + static async runnerTeamControllerGetAll() { + const result = await request_1.request({ + method: 'GET', + path: `/api/teams`, + }); + return result.body; + } + /** + * Post + * Create a new organsisation.
Please remember to provide it's parent group's id. + * @param requestBody CreateRunnerTeam + * @returns ResponseRunnerTeam + * @throws ApiError + */ + static async runnerTeamControllerPost(requestBody) { + const result = await request_1.request({ + method: 'POST', + path: `/api/teams`, + body: requestBody, + }); + return result.body; + } + /** + * Get one + * Lists all information about the team whose id got provided. + * @param id + * @returns ResponseRunnerTeam + * @throws ApiError + */ + static async runnerTeamControllerGetOne(id) { + const result = await request_1.request({ + method: 'GET', + path: `/api/teams/${id}`, + }); + return result.body; + } + /** + * Put + * Update the team whose id you provided.
Please remember that ids can't be changed. + * @param id + * @param requestBody UpdateRunnerTeam + * @returns ResponseRunnerTeam + * @throws ApiError + */ + static async runnerTeamControllerPut(id, requestBody) { + const result = await request_1.request({ + method: 'PUT', + path: `/api/teams/${id}`, + body: requestBody, + }); + return result.body; + } + /** + * Remove + * Delete the team whose id you provided.
If the team still has runners associated this will fail.
To delete the team with all associated runners set the force QueryParam to true (cascading deletion might take a while).
If no team with this id exists it will just return 204(no content). + * @param id + * @param force + * @returns ResponseRunnerTeam + * @returns ResponseEmpty + * @throws ApiError + */ + static async runnerTeamControllerRemove(id, force) { + const result = await request_1.request({ + method: 'DELETE', + path: `/api/teams/${id}`, + query: { + 'force': force, + }, + }); + return result.body; + } +} +exports.RunnerTeamService = RunnerTeamService; diff --git a/dist/services/StatsClientService.d.ts b/dist/services/StatsClientService.d.ts new file mode 100644 index 0000000..3919301 --- /dev/null +++ b/dist/services/StatsClientService.d.ts @@ -0,0 +1,37 @@ +import type { CreateStatsClient } from '../models/CreateStatsClient'; +import type { ResponseEmpty } from '../models/ResponseEmpty'; +import type { ResponseStatsClient } from '../models/ResponseStatsClient'; +export declare class StatsClientService { + /** + * Get all + * Lists all stats clients. Please remember that the key can only be viewed on creation. + * @returns ResponseStatsClient + * @throws ApiError + */ + static statsClientControllerGetAll(): Promise>; + /** + * Post + * Create a new stats client.
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 + * @throws ApiError + */ + static statsClientControllerPost(requestBody?: CreateStatsClient): Promise; + /** + * 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 + * @throws ApiError + */ + static statsClientControllerGetOne(id: number): Promise; + /** + * Remove + * Delete the stats client whose id you provided.
If no client with this id exists it will just return 204(no content). + * @param id + * @returns ResponseStatsClient + * @returns ResponseEmpty + * @throws ApiError + */ + static statsClientControllerRemove(id: number): Promise; +} diff --git a/dist/services/StatsClientService.js b/dist/services/StatsClientService.js new file mode 100644 index 0000000..ef405b4 --- /dev/null +++ b/dist/services/StatsClientService.js @@ -0,0 +1,64 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.StatsClientService = void 0; +const request_1 = require("../core/request"); +class StatsClientService { + /** + * Get all + * Lists all stats clients. Please remember that the key can only be viewed on creation. + * @returns ResponseStatsClient + * @throws ApiError + */ + static async statsClientControllerGetAll() { + const result = await request_1.request({ + method: 'GET', + path: `/api/statsclients`, + }); + return result.body; + } + /** + * Post + * Create a new stats client.
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 + * @throws ApiError + */ + static async statsClientControllerPost(requestBody) { + const result = await request_1.request({ + method: 'POST', + path: `/api/statsclients`, + body: requestBody, + }); + return result.body; + } + /** + * 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 + * @throws ApiError + */ + static async statsClientControllerGetOne(id) { + const result = await request_1.request({ + method: 'GET', + path: `/api/statsclients/${id}`, + }); + return result.body; + } + /** + * Remove + * Delete the stats client whose id you provided.
If no client with this id exists it will just return 204(no content). + * @param id + * @returns ResponseStatsClient + * @returns ResponseEmpty + * @throws ApiError + */ + static async statsClientControllerRemove(id) { + const result = await request_1.request({ + method: 'DELETE', + path: `/api/statsclients/${id}`, + }); + return result.body; + } +} +exports.StatsClientService = StatsClientService; diff --git a/dist/services/StatsService.d.ts b/dist/services/StatsService.d.ts new file mode 100644 index 0000000..f2cc469 --- /dev/null +++ b/dist/services/StatsService.d.ts @@ -0,0 +1,62 @@ +import type { ResponseStats } from '../models/ResponseStats'; +import type { ResponseStatsOrgnisation } from '../models/ResponseStatsOrgnisation'; +import type { ResponseStatsRunner } from '../models/ResponseStatsRunner'; +import type { ResponseStatsTeam } from '../models/ResponseStatsTeam'; +export declare class StatsService { + /** + * Get + * A very basic stats endpoint providing basic counters for a dashboard or simmilar + * @returns ResponseStats + * @throws ApiError + */ + static statsControllerGet(): Promise; + /** + * Get top runners by distance + * Returns the top ten runners by distance. + * @returns ResponseStatsRunner + * @throws ApiError + */ + static statsControllerGetTopRunnersByDistance(): Promise>; + /** + * Get top runners by donations + * Returns the top ten runners by donations. + * @returns ResponseStatsRunner + * @throws ApiError + */ + static statsControllerGetTopRunnersByDonations(): Promise>; + /** + * Get top runners by track time + * Returns the top ten fastest track times (with their runner and the runner's group). + * @returns ResponseStatsRunner + * @throws ApiError + */ + static statsControllerGetTopRunnersByTrackTime(): Promise>; + /** + * Get top teams by distance + * Returns the top ten teams by distance. + * @returns ResponseStatsTeam + * @throws ApiError + */ + static statsControllerGetTopTeamsByDistance(): Promise>; + /** + * Get top teams by donations + * Returns the top ten teams by donations. + * @returns ResponseStatsTeam + * @throws ApiError + */ + static statsControllerGetTopTeamsByDonations(): Promise>; + /** + * Get top orgs by distance + * Returns the top ten organisations by distance. + * @returns ResponseStatsOrgnisation + * @throws ApiError + */ + static statsControllerGetTopOrgsByDistance(): Promise>; + /** + * Get top orgs by donations + * Returns the top ten organisations by donations. + * @returns ResponseStatsOrgnisation + * @throws ApiError + */ + static statsControllerGetTopOrgsByDonations(): Promise>; +} diff --git a/dist/services/StatsService.js b/dist/services/StatsService.js new file mode 100644 index 0000000..62dbb43 --- /dev/null +++ b/dist/services/StatsService.js @@ -0,0 +1,111 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.StatsService = void 0; +const request_1 = require("../core/request"); +class StatsService { + /** + * Get + * A very basic stats endpoint providing basic counters for a dashboard or simmilar + * @returns ResponseStats + * @throws ApiError + */ + static async statsControllerGet() { + const result = await request_1.request({ + method: 'GET', + path: `/api/stats`, + }); + return result.body; + } + /** + * Get top runners by distance + * Returns the top ten runners by distance. + * @returns ResponseStatsRunner + * @throws ApiError + */ + static async statsControllerGetTopRunnersByDistance() { + const result = await request_1.request({ + method: 'GET', + path: `/api/stats/runners/distance`, + }); + return result.body; + } + /** + * Get top runners by donations + * Returns the top ten runners by donations. + * @returns ResponseStatsRunner + * @throws ApiError + */ + static async statsControllerGetTopRunnersByDonations() { + const result = await request_1.request({ + method: 'GET', + path: `/api/stats/runners/donations`, + }); + return result.body; + } + /** + * Get top runners by track time + * Returns the top ten fastest track times (with their runner and the runner's group). + * @returns ResponseStatsRunner + * @throws ApiError + */ + static async statsControllerGetTopRunnersByTrackTime() { + const result = await request_1.request({ + method: 'GET', + path: `/api/stats/scans`, + }); + return result.body; + } + /** + * Get top teams by distance + * Returns the top ten teams by distance. + * @returns ResponseStatsTeam + * @throws ApiError + */ + static async statsControllerGetTopTeamsByDistance() { + const result = await request_1.request({ + method: 'GET', + path: `/api/stats/teams/distance`, + }); + return result.body; + } + /** + * Get top teams by donations + * Returns the top ten teams by donations. + * @returns ResponseStatsTeam + * @throws ApiError + */ + static async statsControllerGetTopTeamsByDonations() { + const result = await request_1.request({ + method: 'GET', + path: `/api/stats/teams/donations`, + }); + return result.body; + } + /** + * Get top orgs by distance + * Returns the top ten organisations by distance. + * @returns ResponseStatsOrgnisation + * @throws ApiError + */ + static async statsControllerGetTopOrgsByDistance() { + const result = await request_1.request({ + method: 'GET', + path: `/api/stats/organisations/distance`, + }); + return result.body; + } + /** + * Get top orgs by donations + * Returns the top ten organisations by donations. + * @returns ResponseStatsOrgnisation + * @throws ApiError + */ + static async statsControllerGetTopOrgsByDonations() { + const result = await request_1.request({ + method: 'GET', + path: `/api/stats/organisations/donations`, + }); + return result.body; + } +} +exports.StatsService = StatsService; diff --git a/dist/services/StatusService.d.ts b/dist/services/StatusService.d.ts new file mode 100644 index 0000000..7112de9 --- /dev/null +++ b/dist/services/StatusService.d.ts @@ -0,0 +1,9 @@ +export declare class StatusService { + /** + * Get + * A very basic status/health endpoint that just checks if the database connection is available.
The available information depth will be expanded later. + * @returns any Successful response + * @throws ApiError + */ + static statusControllerGet(): Promise; +} diff --git a/dist/services/StatusService.js b/dist/services/StatusService.js new file mode 100644 index 0000000..23edbb8 --- /dev/null +++ b/dist/services/StatusService.js @@ -0,0 +1,23 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.StatusService = void 0; +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +const request_1 = require("../core/request"); +class StatusService { + /** + * Get + * A very basic status/health endpoint that just checks if the database connection is available.
The available information depth will be expanded later. + * @returns any Successful response + * @throws ApiError + */ + static async statusControllerGet() { + const result = await request_1.request({ + method: 'GET', + path: `/api/status`, + }); + return result.body; + } +} +exports.StatusService = StatusService; diff --git a/dist/services/TrackService.d.ts b/dist/services/TrackService.d.ts index 7d23986..9ea4361 100644 --- a/dist/services/TrackService.d.ts +++ b/dist/services/TrackService.d.ts @@ -1,47 +1,47 @@ -import type { CreateTrack } from '../models/CreateTrack'; -import type { ResponseEmpty } from '../models/ResponseEmpty'; -import type { ResponseTrack } from '../models/ResponseTrack'; -import type { Track } from '../models/Track'; -export declare class TrackService { - /** - * Get all - * Lists all tracks. - * @result ResponseTrack - * @throws ApiError - */ - static trackControllerGetAll(): Promise>; - /** - * Post - * Create a new track object (id will be generated automagicly). - * @param requestBody CreateTrack - * @result ResponseTrack - * @throws ApiError - */ - static trackControllerPost(requestBody?: CreateTrack): Promise; - /** - * Get one - * Returns a track of a specified id (if it exists) - * @param id - * @result ResponseTrack - * @throws ApiError - */ - static trackControllerGetOne(id: number): Promise; - /** - * Put - * Update a track object (id can't be changed). - * @param id - * @param requestBody Track - * @result ResponseTrack - * @throws ApiError - */ - static trackControllerPut(id: number, requestBody?: Track): Promise; - /** - * Remove - * Delete a specified track (if it exists). - * @param id - * @result ResponseTrack - * @result ResponseEmpty - * @throws ApiError - */ - static trackControllerRemove(id: number): Promise; -} +import type { CreateTrack } from '../models/CreateTrack'; +import type { ResponseEmpty } from '../models/ResponseEmpty'; +import type { ResponseTrack } from '../models/ResponseTrack'; +import type { Track } from '../models/Track'; +export declare class TrackService { + /** + * Get all + * Lists all tracks. + * @returns ResponseTrack + * @throws ApiError + */ + static trackControllerGetAll(): Promise>; + /** + * Post + * Create a new track.
Please remember that the track's distance must be greater than 0. + * @param requestBody CreateTrack + * @returns ResponseTrack + * @throws ApiError + */ + static trackControllerPost(requestBody?: CreateTrack): Promise; + /** + * Get one + * Lists all information about the track whose id got provided. + * @param id + * @returns ResponseTrack + * @throws ApiError + */ + static trackControllerGetOne(id: number): Promise; + /** + * Put + * Update the track whose id you provided.
Please remember that ids can't be changed. + * @param id + * @param requestBody Track + * @returns ResponseTrack + * @throws ApiError + */ + static trackControllerPut(id: number, requestBody?: Track): Promise; + /** + * Remove + * Delete the track whose id you provided.
If no track with this id exists it will just return 204(no content). + * @param id + * @returns ResponseTrack + * @returns ResponseEmpty + * @throws ApiError + */ + static trackControllerRemove(id: number): Promise; +} diff --git a/dist/services/TrackService.js b/dist/services/TrackService.js index 0a2f8ed..373140b 100644 --- a/dist/services/TrackService.js +++ b/dist/services/TrackService.js @@ -1,80 +1,80 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TrackService = void 0; -const request_1 = require("../core/request"); -class TrackService { - /** - * Get all - * Lists all tracks. - * @result ResponseTrack - * @throws ApiError - */ - static async trackControllerGetAll() { - const result = await request_1.request({ - method: 'GET', - path: `/api/tracks`, - }); - return result.body; - } - /** - * Post - * Create a new track object (id will be generated automagicly). - * @param requestBody CreateTrack - * @result ResponseTrack - * @throws ApiError - */ - static async trackControllerPost(requestBody) { - const result = await request_1.request({ - method: 'POST', - path: `/api/tracks`, - body: requestBody, - }); - return result.body; - } - /** - * Get one - * Returns a track of a specified id (if it exists) - * @param id - * @result ResponseTrack - * @throws ApiError - */ - static async trackControllerGetOne(id) { - const result = await request_1.request({ - method: 'GET', - path: `/api/tracks/${id}`, - }); - return result.body; - } - /** - * Put - * Update a track object (id can't be changed). - * @param id - * @param requestBody Track - * @result ResponseTrack - * @throws ApiError - */ - static async trackControllerPut(id, requestBody) { - const result = await request_1.request({ - method: 'PUT', - path: `/api/tracks/${id}`, - body: requestBody, - }); - return result.body; - } - /** - * Remove - * Delete a specified track (if it exists). - * @param id - * @result ResponseTrack - * @result ResponseEmpty - * @throws ApiError - */ - static async trackControllerRemove(id) { - const result = await request_1.request({ - method: 'DELETE', - path: `/api/tracks/${id}`, - }); - return result.body; - } -} -exports.TrackService = TrackService; +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TrackService = void 0; +const request_1 = require("../core/request"); +class TrackService { + /** + * Get all + * Lists all tracks. + * @returns ResponseTrack + * @throws ApiError + */ + static async trackControllerGetAll() { + const result = await request_1.request({ + method: 'GET', + path: `/api/tracks`, + }); + return result.body; + } + /** + * Post + * Create a new track.
Please remember that the track's distance must be greater than 0. + * @param requestBody CreateTrack + * @returns ResponseTrack + * @throws ApiError + */ + static async trackControllerPost(requestBody) { + const result = await request_1.request({ + method: 'POST', + path: `/api/tracks`, + body: requestBody, + }); + return result.body; + } + /** + * Get one + * Lists all information about the track whose id got provided. + * @param id + * @returns ResponseTrack + * @throws ApiError + */ + static async trackControllerGetOne(id) { + const result = await request_1.request({ + method: 'GET', + path: `/api/tracks/${id}`, + }); + return result.body; + } + /** + * Put + * Update the track whose id you provided.
Please remember that ids can't be changed. + * @param id + * @param requestBody Track + * @returns ResponseTrack + * @throws ApiError + */ + static async trackControllerPut(id, requestBody) { + const result = await request_1.request({ + method: 'PUT', + path: `/api/tracks/${id}`, + body: requestBody, + }); + return result.body; + } + /** + * Remove + * Delete the track whose id you provided.
If no track with this id exists it will just return 204(no content). + * @param id + * @returns ResponseTrack + * @returns ResponseEmpty + * @throws ApiError + */ + static async trackControllerRemove(id) { + const result = await request_1.request({ + method: 'DELETE', + path: `/api/tracks/${id}`, + }); + return result.body; + } +} +exports.TrackService = TrackService; diff --git a/dist/services/UserGroupService.d.ts b/dist/services/UserGroupService.d.ts index 930e935..9e9146d 100644 --- a/dist/services/UserGroupService.d.ts +++ b/dist/services/UserGroupService.d.ts @@ -1,47 +1,49 @@ -import type { CreateUserGroup } from '../models/CreateUserGroup'; -import type { ResponseEmpty } from '../models/ResponseEmpty'; -import type { UserGroup } from '../models/UserGroup'; -import type { UserGroupNotFoundError } from '../models/UserGroupNotFoundError'; -export declare class UserGroupService { - /** - * Get all - * Lists all usergroups. - * @result UserGroup - * @throws ApiError - */ - static userGroupControllerGetAll(): Promise>; - /** - * Post - * Create a new usergroup object (id will be generated automagicly). - * @param requestBody CreateUserGroup - * @result any - * @throws ApiError - */ - static userGroupControllerPost(requestBody?: CreateUserGroup): Promise<(UserGroup | UserGroupNotFoundError)>; - /** - * Get one - * Returns a usergroup of a specified id (if it exists) - * @param id - * @result UserGroup - * @throws ApiError - */ - static userGroupControllerGetOne(id: number): Promise; - /** - * Put - * Update a usergroup object (id can't be changed). - * @param id - * @param requestBody UserGroup - * @result UserGroup - * @throws ApiError - */ - static userGroupControllerPut(id: number, requestBody?: UserGroup): Promise; - /** - * Remove - * Delete a specified usergroup (if it exists). - * @param id - * @result UserGroup - * @result ResponseEmpty - * @throws ApiError - */ - static userGroupControllerRemove(id: number): Promise; -} +import type { CreateUserGroup } from '../models/CreateUserGroup'; +import type { ResponseEmpty } from '../models/ResponseEmpty'; +import type { ResponseUserGroup } from '../models/ResponseUserGroup'; +import type { UserGroup } from '../models/UserGroup'; +import type { UserGroupNotFoundError } from '../models/UserGroupNotFoundError'; +export declare class UserGroupService { + /** + * Get all + * Lists all groups.
The information provided might change while the project continues to evolve. + * @returns UserGroup + * @throws ApiError + */ + static userGroupControllerGetAll(): Promise>; + /** + * Post + * Create a new group.
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 + * @throws ApiError + */ + static userGroupControllerPost(requestBody?: CreateUserGroup): Promise<(UserGroup | UserGroupNotFoundError)>; + /** + * Get one + * Lists all information about the group whose id got provided.
The information provided might change while the project continues to evolve. + * @param id + * @returns UserGroup + * @throws ApiError + */ + static userGroupControllerGetOne(id: number): Promise; + /** + * Put + * Update the group whose id you provided.
To change the permissions granted to the group please use /api/permissions instead.
Please remember that ids can't be changed. + * @param id + * @param requestBody UserGroup + * @returns UserGroup + * @throws ApiError + */ + static userGroupControllerPut(id: number, requestBody?: UserGroup): Promise; + /** + * Remove + * Delete the group whose id you provided.
If there are any permissions directly granted to the group they will get deleted as well.
Users associated with this group won't get deleted - just deassociated.
If no group with this id exists it will just return 204(no content). + * @param id + * @param force + * @returns ResponseUserGroup + * @returns ResponseEmpty + * @throws ApiError + */ + static userGroupControllerRemove(id: number, force?: boolean): Promise; +} diff --git a/dist/services/UserGroupService.js b/dist/services/UserGroupService.js index f7d1d2f..743412a 100644 --- a/dist/services/UserGroupService.js +++ b/dist/services/UserGroupService.js @@ -1,80 +1,84 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UserGroupService = void 0; -const request_1 = require("../core/request"); -class UserGroupService { - /** - * Get all - * Lists all usergroups. - * @result UserGroup - * @throws ApiError - */ - static async userGroupControllerGetAll() { - const result = await request_1.request({ - method: 'GET', - path: `/api/usergroups`, - }); - return result.body; - } - /** - * Post - * Create a new usergroup object (id will be generated automagicly). - * @param requestBody CreateUserGroup - * @result any - * @throws ApiError - */ - static async userGroupControllerPost(requestBody) { - const result = await request_1.request({ - method: 'POST', - path: `/api/usergroups`, - body: requestBody, - }); - return result.body; - } - /** - * Get one - * Returns a usergroup of a specified id (if it exists) - * @param id - * @result UserGroup - * @throws ApiError - */ - static async userGroupControllerGetOne(id) { - const result = await request_1.request({ - method: 'GET', - path: `/api/usergroups/${id}`, - }); - return result.body; - } - /** - * Put - * Update a usergroup object (id can't be changed). - * @param id - * @param requestBody UserGroup - * @result UserGroup - * @throws ApiError - */ - static async userGroupControllerPut(id, requestBody) { - const result = await request_1.request({ - method: 'PUT', - path: `/api/usergroups/${id}`, - body: requestBody, - }); - return result.body; - } - /** - * Remove - * Delete a specified usergroup (if it exists). - * @param id - * @result UserGroup - * @result ResponseEmpty - * @throws ApiError - */ - static async userGroupControllerRemove(id) { - const result = await request_1.request({ - method: 'DELETE', - path: `/api/usergroups/${id}`, - }); - return result.body; - } -} -exports.UserGroupService = UserGroupService; +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UserGroupService = void 0; +const request_1 = require("../core/request"); +class UserGroupService { + /** + * Get all + * Lists all groups.
The information provided might change while the project continues to evolve. + * @returns UserGroup + * @throws ApiError + */ + static async userGroupControllerGetAll() { + const result = await request_1.request({ + method: 'GET', + path: `/api/usergroups`, + }); + return result.body; + } + /** + * Post + * Create a new group.
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 + * @throws ApiError + */ + static async userGroupControllerPost(requestBody) { + const result = await request_1.request({ + method: 'POST', + path: `/api/usergroups`, + body: requestBody, + }); + return result.body; + } + /** + * Get one + * Lists all information about the group whose id got provided.
The information provided might change while the project continues to evolve. + * @param id + * @returns UserGroup + * @throws ApiError + */ + static async userGroupControllerGetOne(id) { + const result = await request_1.request({ + method: 'GET', + path: `/api/usergroups/${id}`, + }); + return result.body; + } + /** + * Put + * Update the group whose id you provided.
To change the permissions granted to the group please use /api/permissions instead.
Please remember that ids can't be changed. + * @param id + * @param requestBody UserGroup + * @returns UserGroup + * @throws ApiError + */ + static async userGroupControllerPut(id, requestBody) { + const result = await request_1.request({ + method: 'PUT', + path: `/api/usergroups/${id}`, + body: requestBody, + }); + return result.body; + } + /** + * Remove + * Delete the group whose id you provided.
If there are any permissions directly granted to the group they will get deleted as well.
Users associated with this group won't get deleted - just deassociated.
If no group with this id exists it will just return 204(no content). + * @param id + * @param force + * @returns ResponseUserGroup + * @returns ResponseEmpty + * @throws ApiError + */ + static async userGroupControllerRemove(id, force) { + const result = await request_1.request({ + method: 'DELETE', + path: `/api/usergroups/${id}`, + query: { + 'force': force, + }, + }); + return result.body; + } +} +exports.UserGroupService = UserGroupService; diff --git a/dist/services/UserService.d.ts b/dist/services/UserService.d.ts index 16e428e..d16eece 100644 --- a/dist/services/UserService.d.ts +++ b/dist/services/UserService.d.ts @@ -1,47 +1,49 @@ -import type { CreateUser } from '../models/CreateUser'; -import type { ResponseEmpty } from '../models/ResponseEmpty'; -import type { User } from '../models/User'; -import type { UserGroupNotFoundError } from '../models/UserGroupNotFoundError'; -export declare class UserService { - /** - * Get all - * Lists all users. - * @result User - * @throws ApiError - */ - static userControllerGetAll(): Promise>; - /** - * Post - * Create a new user object (id will be generated automagicly). - * @param requestBody CreateUser - * @result any - * @throws ApiError - */ - static userControllerPost(requestBody?: CreateUser): Promise<(User | UserGroupNotFoundError)>; - /** - * Get one - * Returns a user of a specified id (if it exists) - * @param id - * @result User - * @throws ApiError - */ - static userControllerGetOne(id: number): Promise; - /** - * Put - * Update a user object (id can't be changed). - * @param id - * @param requestBody User - * @result User - * @throws ApiError - */ - static userControllerPut(id: number, requestBody?: User): Promise; - /** - * Remove - * Delete a specified runner (if it exists). - * @param id - * @result User - * @result ResponseEmpty - * @throws ApiError - */ - static userControllerRemove(id: number): Promise; -} +import type { CreateUser } from '../models/CreateUser'; +import type { ResponseEmpty } from '../models/ResponseEmpty'; +import type { UpdateUser } from '../models/UpdateUser'; +import type { User } from '../models/User'; +import type { UserGroupNotFoundError } from '../models/UserGroupNotFoundError'; +export declare class UserService { + /** + * Get all + * Lists all users.
This includes their groups and permissions directly granted to them (if existing/associated). + * @returns User + * @throws ApiError + */ + static userControllerGetAll(): Promise>; + /** + * Post + * Create a new user.
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 any + * @throws ApiError + */ + static userControllerPost(requestBody?: CreateUser): Promise<(User | UserGroupNotFoundError)>; + /** + * Get one + * Lists all information about the user whose id got provided.
Please remember that only permissions granted directly to the user will show up here, not permissions inherited from groups. + * @param id + * @returns User + * @throws ApiError + */ + static userControllerGetOne(id: number): Promise; + /** + * Put + * Update the user whose id you provided.
To change the permissions directly granted to the user please use /api/permissions instead.
Please remember that ids can't be changed. + * @param id + * @param requestBody UpdateUser + * @returns User + * @throws ApiError + */ + static userControllerPut(id: number, requestBody?: UpdateUser): Promise; + /** + * Remove + * Delete the user whose id you provided.
If there are any permissions directly granted to the user they will get deleted as well.
If no user with this id exists it will just return 204(no content). + * @param id + * @param force + * @returns User + * @returns ResponseEmpty + * @throws ApiError + */ + static userControllerRemove(id: number, force?: boolean): Promise; +} diff --git a/dist/services/UserService.js b/dist/services/UserService.js index 9520e7d..12ef43a 100644 --- a/dist/services/UserService.js +++ b/dist/services/UserService.js @@ -1,80 +1,84 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UserService = void 0; -const request_1 = require("../core/request"); -class UserService { - /** - * Get all - * Lists all users. - * @result User - * @throws ApiError - */ - static async userControllerGetAll() { - const result = await request_1.request({ - method: 'GET', - path: `/api/users`, - }); - return result.body; - } - /** - * Post - * Create a new user object (id will be generated automagicly). - * @param requestBody CreateUser - * @result any - * @throws ApiError - */ - static async userControllerPost(requestBody) { - const result = await request_1.request({ - method: 'POST', - path: `/api/users`, - body: requestBody, - }); - return result.body; - } - /** - * Get one - * Returns a user of a specified id (if it exists) - * @param id - * @result User - * @throws ApiError - */ - static async userControllerGetOne(id) { - const result = await request_1.request({ - method: 'GET', - path: `/api/users/${id}`, - }); - return result.body; - } - /** - * Put - * Update a user object (id can't be changed). - * @param id - * @param requestBody User - * @result User - * @throws ApiError - */ - static async userControllerPut(id, requestBody) { - const result = await request_1.request({ - method: 'PUT', - path: `/api/users/${id}`, - body: requestBody, - }); - return result.body; - } - /** - * Remove - * Delete a specified runner (if it exists). - * @param id - * @result User - * @result ResponseEmpty - * @throws ApiError - */ - static async userControllerRemove(id) { - const result = await request_1.request({ - method: 'DELETE', - path: `/api/users/${id}`, - }); - return result.body; - } -} -exports.UserService = UserService; +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UserService = void 0; +const request_1 = require("../core/request"); +class UserService { + /** + * Get all + * Lists all users.
This includes their groups and permissions directly granted to them (if existing/associated). + * @returns User + * @throws ApiError + */ + static async userControllerGetAll() { + const result = await request_1.request({ + method: 'GET', + path: `/api/users`, + }); + return result.body; + } + /** + * Post + * Create a new user.
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 any + * @throws ApiError + */ + static async userControllerPost(requestBody) { + const result = await request_1.request({ + method: 'POST', + path: `/api/users`, + body: requestBody, + }); + return result.body; + } + /** + * Get one + * Lists all information about the user whose id got provided.
Please remember that only permissions granted directly to the user will show up here, not permissions inherited from groups. + * @param id + * @returns User + * @throws ApiError + */ + static async userControllerGetOne(id) { + const result = await request_1.request({ + method: 'GET', + path: `/api/users/${id}`, + }); + return result.body; + } + /** + * Put + * Update the user whose id you provided.
To change the permissions directly granted to the user please use /api/permissions instead.
Please remember that ids can't be changed. + * @param id + * @param requestBody UpdateUser + * @returns User + * @throws ApiError + */ + static async userControllerPut(id, requestBody) { + const result = await request_1.request({ + method: 'PUT', + path: `/api/users/${id}`, + body: requestBody, + }); + return result.body; + } + /** + * Remove + * Delete the user whose id you provided.
If there are any permissions directly granted to the user they will get deleted as well.
If no user with this id exists it will just return 204(no content). + * @param id + * @param force + * @returns User + * @returns ResponseEmpty + * @throws ApiError + */ + static async userControllerRemove(id, force) { + const result = await request_1.request({ + method: 'DELETE', + path: `/api/users/${id}`, + query: { + 'force': force, + }, + }); + return result.body; + } +} +exports.UserService = UserService; diff --git a/openapi.json b/openapi.json index 59e037f..ec3d5af 100644 --- a/openapi.json +++ b/openapi.json @@ -1 +1 @@ -{"components":{"schemas":{"IllegalJWTError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"UserNonexistantOrRefreshtokenInvalidError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"InvalidCredentialsError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"NoPermissionError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"UsernameOrEmailNeededError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"PasswordNeededError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"UserNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"JwtNotProvidedError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"UserNotFoundOrRefreshTokenCountInvalidError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RefreshTokenCountInvalidError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"ResetAlreadyRequestedError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"UserDisabledError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"JwtUser":{"properties":{"id":{"type":"integer"},"uuid":{"format":"uuid","type":"string"},"email":{"format":"email","type":"string"},"username":{"type":"string"},"firstname":{"minLength":1,"type":"string"},"middlename":{"type":"string"},"lastname":{"minLength":1,"type":"string"},"enabled":{"type":"boolean"},"refreshTokenCount":{"minLength":1,"type":"integer"},"profilePic":{"type":"string"}},"type":"object","required":["id","uuid","firstname","lastname","enabled","refreshTokenCount"]},"ResponsePrincipal":{"properties":{"id":{"type":"integer"}},"type":"object","required":["id"]},"ResponseUser":{"properties":{"firstname":{"type":"string"},"middlename":{"type":"string"},"lastname":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"username":{"type":"string"},"enabled":{"type":"boolean"},"profilePic":{"type":"string"},"groups":{"items":{},"type":"array"},"permissions":{"items":{},"type":"array"},"id":{"type":"integer"}},"type":"object","required":["firstname","middlename","lastname","phone","email","username","enabled","id"]},"Permission":{"properties":{"id":{"type":"integer"},"target":{"enum":["RUNNER","ORGANISATION","TEAM","TRACK","USER","USERGROUP","PERMISSION"],"type":"string","minLength":1},"action":{"enum":["GET","CREATE","UPDATE","DELETE","IMPORT"],"type":"string"}},"type":"object","required":["id","target","action"]},"Principal":{"properties":{"id":{"type":"integer"}},"type":"object","required":["id"]},"UserAction":{"properties":{"id":{"type":"integer"},"target":{"type":"string","minLength":1},"action":{"enum":["GET","CREATE","UPDATE","DELETE","IMPORT"],"type":"string"},"changed":{"type":"string"}},"type":"object","required":["id","target","action"]},"ResponseUserGroup":{"properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"permissions":{"items":{},"type":"array"},"id":{"type":"integer"}},"type":"object","required":["name","id"]},"UserGroup":{"properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"id":{"type":"integer"}},"type":"object","required":["name","id"]},"User":{"properties":{"uuid":{"format":"uuid","type":"string"},"email":{"format":"email","type":"string"},"phone":{"type":"string"},"username":{"type":"string"},"firstname":{"minLength":1,"type":"string"},"middlename":{"type":"string"},"lastname":{"minLength":1,"type":"string"},"password":{"minLength":1,"type":"string"},"groups":{},"enabled":{"type":"boolean"},"refreshTokenCount":{"type":"integer"},"profilePic":{"type":"string"},"resetRequestedTimestamp":{"type":"string"},"actions":{},"id":{"type":"integer"}},"type":"object","required":["uuid","email","username","firstname","lastname","password","enabled","refreshTokenCount","id"]},"UserIdsNotMatchingError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"Auth":{"properties":{"access_token":{"type":"string"},"refresh_token":{"type":"string"},"access_token_expires_at":{"type":"integer"},"refresh_token_expires_at":{"type":"integer"}},"type":"object","required":["access_token","refresh_token","access_token_expires_at","refresh_token_expires_at"]},"CreateAuth":{"properties":{"username":{"type":"string"},"email":{"type":"string","format":"email"},"password":{"type":"string","minLength":1}},"type":"object","required":["password"]},"CreateResetToken":{"properties":{"username":{"type":"string"},"email":{"type":"string","format":"email"}},"type":"object"},"Logout":{"properties":{"timestamp":{"type":"string"}},"type":"object","required":["timestamp"]},"HandleLogout":{"properties":{"token":{"type":"string"}},"type":"object"},"RefreshAuth":{"properties":{"token":{"type":"string"}},"type":"object"},"ResetPassword":{"properties":{"resetToken":{"type":"string"},"password":{"type":"string","minLength":1}},"type":"object","required":["password"]},"RunnerNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerIdsNotMatchingError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerGroupNeededError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerGroupNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerOrganisationNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerOrganisationIdsNotMatchingError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerOrganisationHasRunnersError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerOrganisationHasTeamsError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerOrganisationWrongTypeError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"Donation":{"properties":{"id":{"type":"integer"},"donor":{"minLength":1,"type":"string"}},"type":"object","required":["id","donor"]},"Participant":{"properties":{"id":{"type":"integer"},"firstname":{"type":"string","minLength":1},"middlename":{"type":"string"},"lastname":{"type":"string","minLength":1},"phone":{"type":"string"},"email":{"format":"email","type":"string"}},"type":"object","required":["id","firstname","lastname"]},"Address":{"properties":{"id":{"type":"integer"},"description":{"type":"string"},"address1":{"minLength":1,"type":"string"},"address2":{"type":"string"},"postalcode":{"type":"string","minLength":1},"city":{"minLength":1,"type":"string"},"country":{"minLength":1,"type":"string"}},"type":"object","required":["id","address1","postalcode","city","country"]},"GroupContact":{"properties":{"id":{"type":"integer"},"firstname":{"type":"string","minLength":1},"middlename":{"type":"string"},"lastname":{"type":"string","minLength":1},"address":{},"phone":{"type":"string"},"email":{"format":"email","type":"string"}},"type":"object","required":["id","firstname","lastname"]},"DistanceDonation":{"properties":{"runner":{"minLength":1,"type":"string"},"amountPerDistance":{"exclusiveMinimum":true,"minimum":0,"type":"integer"},"id":{"type":"integer"},"donor":{"minLength":1,"type":"string"}},"type":"object","required":["runner","amountPerDistance","id","donor"]},"Scan":{"properties":{"id":{"type":"integer"},"runner":{"minLength":1,"type":"string"},"distance":{"exclusiveMinimum":true,"minimum":0,"type":"integer"},"valid":{"type":"boolean"}},"type":"object","required":["id","runner","distance","valid"]},"Track":{"properties":{"id":{"type":"integer"},"name":{"minLength":1,"type":"string"},"distance":{"exclusiveMinimum":true,"minimum":0,"type":"integer"}},"type":"object","required":["id","name","distance"]},"ScanStation":{"properties":{"id":{"type":"integer"},"description":{"type":"string"},"track":{"minLength":1,"type":"string"},"key":{"type":"string","minLength":1},"enabled":{"type":"boolean"}},"type":"object","required":["id","track","key","enabled"]},"TrackScan":{"properties":{"track":{"minLength":1,"type":"string"},"card":{"minLength":1,"type":"string"},"station":{"minLength":1,"type":"string"},"distance":{"exclusiveMinimum":true,"minimum":0,"type":"integer"},"timestamp":{"minLength":1,"type":"string","pattern":"d{4}-[01]d-[0-3]dT[0-2]d:[0-5]d:[0-5]d.d+Z?"},"id":{"type":"integer"},"runner":{"minLength":1,"type":"string"},"valid":{"type":"boolean"}},"type":"object","required":["track","card","station","distance","timestamp","id","runner","valid"]},"RunnerCard":{"properties":{"id":{"type":"integer"},"runner":{},"code":{"minLength":1,"type":"string"},"enabled":{"type":"boolean"}},"type":"object","required":["id","code","enabled"]},"Runner":{"properties":{"group":{"minLength":1,"type":"string"},"distance":{"type":"integer"},"id":{"type":"integer"},"firstname":{"type":"string","minLength":1},"middlename":{"type":"string"},"lastname":{"type":"string","minLength":1},"phone":{"type":"string"},"email":{"format":"email","type":"string"}},"type":"object","required":["group","distance","id","firstname","lastname"]},"RunnerGroup":{"properties":{"id":{"type":"integer"},"name":{"type":"string","minLength":1},"contact":{}},"type":"object","required":["id","name"]},"RunnerTeam":{"properties":{"parentGroup":{"minLength":1,"type":"string"},"id":{"type":"integer"},"name":{"type":"string","minLength":1},"contact":{}},"type":"object","required":["parentGroup","id","name"]},"RunnerOrganisation":{"properties":{"address":{},"id":{"type":"integer"},"name":{"type":"string","minLength":1},"contact":{}},"type":"object","required":["id","name"]},"RunnerTeamNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerTeamIdsNotMatchingError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerTeamHasRunnersError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerTeamNeedsParentError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"AddressWrongTypeError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"AddressNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"CreateParticipant":{"properties":{"firstname":{"minLength":1,"type":"string"},"middlename":{"type":"string"},"lastname":{"minLength":1,"type":"string"},"phone":{"type":"string"},"email":{"format":"email","type":"string"},"address":{"type":"integer"}},"type":"object","required":["firstname","lastname"]},"CreateRunner":{"properties":{"group":{"type":"integer"},"firstname":{"minLength":1,"type":"string"},"middlename":{"type":"string"},"lastname":{"minLength":1,"type":"string"},"phone":{"type":"string"},"email":{"format":"email","type":"string"},"address":{"type":"integer"}},"type":"object","required":["group","firstname","lastname"]},"ImportRunner":{"properties":{"firstname":{"minLength":1,"type":"string"},"middlename":{"type":"string"},"lastname":{"minLength":1,"type":"string"},"team":{"type":"string"},"class":{"type":"string"}},"type":"object","required":["firstname","lastname"]},"ResponseParticipant":{"properties":{"id":{"type":"integer"},"firstname":{"type":"string"},"middlename":{"type":"string"},"lastname":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"}},"type":"object","required":["id","firstname","middlename","lastname","phone","email"]},"ResponseRunner":{"properties":{"distance":{"type":"integer"},"group":{"$ref":"#/components/schemas/RunnerGroup"},"id":{"type":"integer"},"firstname":{"type":"string"},"middlename":{"type":"string"},"lastname":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"}},"type":"object","required":["distance","group","id","firstname","middlename","lastname","phone","email"]},"UpdateRunner":{"properties":{"id":{"type":"integer"},"group":{"$ref":"#/components/schemas/RunnerGroup"},"firstname":{"minLength":1,"type":"string"},"middlename":{"type":"string"},"lastname":{"minLength":1,"type":"string"},"phone":{"type":"string"},"email":{"format":"email","type":"string"},"address":{"type":"integer"}},"type":"object","required":["id","group","firstname","lastname"]},"ResponseEmpty":{"properties":{"response":{"type":"string"}},"type":"object","required":["response"]},"PermissionNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"PermissionIdsNotMatchingError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"PermissionNeedsPrincipalError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"PrincipalNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"PrincipalWrongTypeError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"CreatePermission":{"properties":{"principal":{"minLength":1,"type":"integer"},"target":{"enum":["RUNNER","ORGANISATION","TEAM","TRACK","USER","USERGROUP","PERMISSION"],"type":"string","minLength":1},"action":{"enum":["GET","CREATE","UPDATE","DELETE","IMPORT"],"type":"string","minLength":1}},"type":"object","required":["principal","target","action"]},"UpdatePermission":{"properties":{"id":{"type":"integer"},"principal":{"minLength":1,"type":"string","$ref":"#/components/schemas/Principal"},"target":{"minLength":1,"type":"string"},"action":{"minLength":1,"type":"string"}},"type":"object","required":["id","principal","target","action"]},"ResponsePermission":{"properties":{"id":{"type":"integer"},"principal":{"minLength":1,"type":"string","$ref":"#/components/schemas/ResponsePrincipal"},"target":{"enum":["RUNNER","ORGANISATION","TEAM","TRACK","USER","USERGROUP","PERMISSION"],"type":"string","minLength":1},"action":{"enum":["GET","CREATE","UPDATE","DELETE","IMPORT"],"type":"string","minLength":1}},"type":"object","required":["id","principal","target","action"]},"GroupContactWrongTypeError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"GroupContactNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"CreateRunnerGroup":{"properties":{"name":{"type":"string","minLength":1},"contact":{"type":"integer"}},"type":"object","required":["name"]},"CreateRunnerOrganisation":{"properties":{"address":{"type":"integer"},"name":{"type":"string","minLength":1},"contact":{"type":"integer"}},"type":"object","required":["name"]},"UpdateRunnerOrganisation":{"properties":{"id":{"type":"integer"},"address":{"type":"integer"},"name":{"type":"string","minLength":1},"contact":{"type":"integer"}},"type":"object","required":["id","name"]},"ResponseRunnerGroup":{"properties":{"id":{"minLength":1,"type":"integer"},"name":{"minLength":1,"type":"string"},"contact":{"$ref":"#/components/schemas/GroupContact"}},"type":"object","required":["id","name"]},"ResponseRunnerOrganisation":{"properties":{"address":{"minLength":1,"type":"string","$ref":"#/components/schemas/Address"},"teams":{"items":{},"type":"array"},"id":{"minLength":1,"type":"integer"},"name":{"minLength":1,"type":"string"},"contact":{"$ref":"#/components/schemas/GroupContact"}},"type":"object","required":["address","teams","id","name"]},"CreateRunnerTeam":{"properties":{"parentGroup":{"minLength":1,"type":"integer"},"name":{"type":"string","minLength":1},"contact":{"type":"integer"}},"type":"object","required":["parentGroup","name"]},"UpdateRunnerTeam":{"properties":{"id":{"type":"integer"},"parentGroup":{"minLength":1,"type":"string","$ref":"#/components/schemas/RunnerOrganisation"},"name":{"type":"string","minLength":1},"contact":{"type":"integer"}},"type":"object","required":["id","parentGroup","name"]},"ResponseRunnerTeam":{"properties":{"parentGroup":{"minLength":1,"type":"string","$ref":"#/components/schemas/RunnerOrganisation"},"id":{"minLength":1,"type":"integer"},"name":{"minLength":1,"type":"string"},"contact":{"$ref":"#/components/schemas/GroupContact"}},"type":"object","required":["parentGroup","id","name"]},"TrackNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"TrackIdsNotMatchingError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"CreateTrack":{"properties":{"name":{"minLength":1,"type":"string"},"distance":{"exclusiveMinimum":true,"minimum":0,"type":"integer"}},"type":"object","required":["name","distance"]},"ResponseTrack":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"distance":{"type":"integer"}},"type":"object","required":["id","name","distance"]},"GroupNameNeededError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"UserGroupNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"UserGroupIdsNotMatchingError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"CreateUser":{"properties":{"firstname":{"type":"string"},"middlename":{"type":"string"},"lastname":{"type":"string"},"username":{"type":"string"},"email":{"type":"string","format":"email"},"phone":{"type":"string"},"password":{"type":"string"},"enabled":{"type":"boolean"},"groups":{}},"type":"object","required":["firstname","lastname","password"]},"UpdateUser":{"properties":{"id":{"type":"integer"},"firstname":{"type":"string"},"middlename":{"type":"string"},"lastname":{"type":"string"},"username":{"type":"string"},"email":{"type":"string","format":"email"},"phone":{"type":"string"},"password":{"type":"string"},"enabled":{"type":"boolean"},"groups":{}},"type":"object","required":["id","firstname","lastname","enabled"]},"CreateUserGroup":{"properties":{"name":{"type":"string"},"description":{"type":"string"}},"type":"object","required":["name"]}},"securitySchemes":{"AuthToken":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"A JWT based access token. Use /api/auth/login or /api/auth/refresh to get one."},"RefreshTokenCookie":{"type":"apiKey","in":"cookie","name":"lfk_backend__refresh_token","description":"A cookie containing a JWT based refreh token. Attention: Doesn't work in swagger-ui. Use /api/auth/login or /api/auth/refresh to get one."}}},"info":{"title":"LfK! Backend API","version":"0.0.5","description":"The the backend API for the LfK! runner system."},"openapi":"3.0.0","paths":{"/api/auth/login":{"post":{"operationId":"AuthController.login","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAuth"}}},"description":"CreateAuth","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Auth"},{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/UserNotFoundError"},{"$ref":"#/components/schemas/UsernameOrEmailNeededError"},{"$ref":"#/components/schemas/PasswordNeededError"},{"$ref":"#/components/schemas/InvalidCredentialsError"}]}}},"description":""}},"summary":"Login","tags":["Auth"],"description":"Login with your username/email and password.
You will receive: \n * access token (use it as a bearer token) \n * refresh token (will also be sent as a cookie)"}},"/api/auth/logout":{"post":{"operationId":"AuthController.logout","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HandleLogout"}}},"description":"HandleLogout","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Logout"},{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/UserNotFoundError"},{"$ref":"#/components/schemas/UsernameOrEmailNeededError"},{"$ref":"#/components/schemas/PasswordNeededError"},{"$ref":"#/components/schemas/InvalidCredentialsError"}]}}},"description":""}},"summary":"Logout","tags":["Auth"],"description":"Logout using your refresh token.
This instantly invalidates all your access and refresh tokens.","security":[{"RefreshTokenCookie":[]}]}},"/api/auth/refresh":{"post":{"operationId":"AuthController.refresh","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshAuth"}}},"description":"RefreshAuth","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Auth"},{"$ref":"#/components/schemas/JwtNotProvidedError"},{"$ref":"#/components/schemas/IllegalJWTError"},{"$ref":"#/components/schemas/UserNotFoundError"},{"$ref":"#/components/schemas/RefreshTokenCountInvalidError"}]}}},"description":""}},"summary":"Refresh","tags":["Auth"],"description":"Refresh your access and refresh tokens using a valid refresh token.
You will receive: \n * access token (use it as a bearer token) \n * refresh token (will also be sent as a cookie)","security":[{"RefreshTokenCookie":[]}]}},"/api/auth/reset":{"post":{"operationId":"AuthController.getResetToken","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateResetToken"}}},"description":"CreateResetToken","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Auth"},{"$ref":"#/components/schemas/UserNotFoundError"},{"$ref":"#/components/schemas/UsernameOrEmailNeededError"}]}}},"description":""}},"summary":"Get reset token","tags":["Auth"],"description":"Request a password reset token.
This will provide you with a reset token that you can use by posting to /api/auth/reset/{token}."}},"/api/auth/reset/{token}":{"post":{"operationId":"AuthController.resetPassword","parameters":[{"in":"path","name":"token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPassword"}}},"description":"ResetPassword","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Auth"},{"$ref":"#/components/schemas/UserNotFoundError"},{"$ref":"#/components/schemas/UsernameOrEmailNeededError"}]}}},"description":""}},"summary":"Reset password","tags":["Auth"],"description":"Reset a user's utilising a valid password reset token.
This will set the user's password to the one you provided in the body.
To get a reset token post to /api/auth/reset with your username."}},"/api/runners":{"get":{"operationId":"RunnerController.getAll","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseRunner"},"type":"array"}}},"description":""}},"summary":"Get all","tags":["Runner"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all runners from all teams/orgs.
This includes the runner's group and distance ran."},"post":{"operationId":"RunnerController.post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRunner"}}},"description":"CreateRunner","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ResponseRunner"},{"$ref":"#/components/schemas/RunnerGroupNeededError"},{"$ref":"#/components/schemas/RunnerGroupNotFoundError"}]}}},"description":""}},"summary":"Post","tags":["Runner"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create a new runner.
Please remeber to provide the runner's group's id."}},"/api/runners/{id}":{"get":{"operationId":"RunnerController.getOne","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunner"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerNotFoundError"}}},"description":""}},"summary":"Get one","tags":["Runner"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all information about the runner whose id got provided."},"put":{"operationId":"RunnerController.put","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRunner"}}},"description":"UpdateRunner","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunner"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerIdsNotMatchingError"}}},"description":""}},"summary":"Put","tags":["Runner"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Update the runner whose id you provided.
Please remember that ids can't be changed."},"delete":{"operationId":"RunnerController.remove","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}},{"in":"query","name":"force","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunner"}}},"description":""},"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseEmpty"}}},"description":""}},"summary":"Remove","tags":["Runner"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Delete the runner whose id you provided.
If no runner with this id exists it will just return 204(no content)."}},"/api/runners/import":{"post":{"operationId":"ImportController.postJSON","parameters":[{"in":"query","name":"group","required":false,"schema":{"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ImportRunner"},"type":"array"}}},"description":"ImportRunner","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseRunner"},"type":"array"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNeededError"}}},"description":""}},"summary":"Post json","tags":["Import"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create new runners from json and insert them into the provided group.
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."}},"/api/organisations/{id}/import":{"post":{"operationId":"ImportController.postOrgsJSON","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ImportRunner"},"type":"array"}}},"description":"ImportRunner","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseRunner"},"type":"array"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNeededError"}}},"description":""}},"summary":"Post orgs json","tags":["Import"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create new runners from json and insert them into the provided org.
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."}},"/api/teams/{id}/import":{"post":{"operationId":"ImportController.postTeamsJSON","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ImportRunner"},"type":"array"}}},"description":"ImportRunner","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseRunner"},"type":"array"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNeededError"}}},"description":""}},"summary":"Post teams json","tags":["Import"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create new runners from json and insert them into the provided team"}},"/api/runners/import/csv":{"post":{"operationId":"ImportController.postCSV","parameters":[{"in":"query","name":"group","required":false,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseRunner"},"type":"array"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNeededError"}}},"description":""}},"summary":"Post csv","tags":["Import"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create new runners from csv and insert them into the provided group.
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."}},"/api/organisations/{id}/import/csv":{"post":{"operationId":"ImportController.postOrgsCSV","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseRunner"},"type":"array"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNeededError"}}},"description":""}},"summary":"Post orgs csv","tags":["Import"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create new runners from csv and insert them into the provided org.
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."}},"/api/teams/{id}/import/csv":{"post":{"operationId":"ImportController.postTeamsCSV","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseRunner"},"type":"array"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNeededError"}}},"description":""}},"summary":"Post teams csv","tags":["Import"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create new runners from csv and insert them into the provided team"}},"/api/permissions":{"get":{"operationId":"PermissionController.getAll","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponsePermission"},"type":"array"}}},"description":""}},"summary":"Get all","tags":["Permission"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all permissions for all users and groups."},"post":{"operationId":"PermissionController.post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePermission"}}},"description":"CreatePermission","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponsePermission"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrincipalNotFoundError"}}},"description":""}},"summary":"Post","tags":["Permission"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create a new permission for a existing principal(user/group).
If a permission with this target, action and prinicpal already exists that permission will be returned instead of creating a new one."}},"/api/permissions/{id}":{"get":{"operationId":"PermissionController.getOne","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponsePermission"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PermissionNotFoundError"}}},"description":""}},"summary":"Get one","tags":["Permission"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all information about the permission whose id got provided."},"put":{"operationId":"PermissionController.put","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePermission"}}},"description":"UpdatePermission","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponsePrincipal"}}},"description":""},"404":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/PermissionNotFoundError"},{"$ref":"#/components/schemas/PrincipalNotFoundError"}]}}},"description":""},"406":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/PermissionIdsNotMatchingError"},{"$ref":"#/components/schemas/PermissionNeedsPrincipalError"}]}}},"description":""}},"summary":"Put","tags":["Permission"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Update a permission object.
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.
Please remember that ids can't be changed."},"delete":{"operationId":"PermissionController.remove","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}},{"in":"query","name":"force","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponsePermission"}}},"description":""},"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseEmpty"}}},"description":""}},"summary":"Remove","tags":["Permission"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Deletes the permission whose id you provide.
If no permission with this id exists it will just return 204(no content)."}},"/api/teams":{"get":{"operationId":"RunnerTeamController.getAll","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseRunnerTeam"},"type":"array"}}},"description":""}},"summary":"Get all","tags":["Runner Team"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all teams.
This includes their parent organisation and contact (if existing/associated)."},"post":{"operationId":"RunnerTeamController.post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRunnerTeam"}}},"description":"CreateRunnerTeam","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunnerTeam"}}},"description":""}},"summary":"Post","tags":["Runner Team"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create a new organsisation.
Please remember to provide it's parent group's id."}},"/api/teams/{id}":{"get":{"operationId":"RunnerTeamController.getOne","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunnerTeam"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerTeamNotFoundError"}}},"description":""}},"summary":"Get one","tags":["Runner Team"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all information about the team whose id got provided."},"put":{"operationId":"RunnerTeamController.put","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRunnerTeam"}}},"description":"UpdateRunnerTeam","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunnerTeam"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerTeamNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerTeamIdsNotMatchingError"}}},"description":""}},"summary":"Put","tags":["Runner Team"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Update the team whose id you provided.
Please remember that ids can't be changed."},"delete":{"operationId":"RunnerTeamController.remove","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}},{"in":"query","name":"force","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunnerTeam"}}},"description":""},"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseEmpty"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerTeamHasRunnersError"}}},"description":""}},"summary":"Remove","tags":["Runner Team"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Delete the team whose id you provided.
If the team still has runners associated this will fail.
To delete the team with all associated runners set the force QueryParam to true (cascading deletion might take a while).
If no team with this id exists it will just return 204(no content)."}},"/api/organisations":{"get":{"operationId":"RunnerOrganisationController.getAll","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseRunnerOrganisation"},"type":"array"}}},"description":""}},"summary":"Get all","tags":["Runner Organisation"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all organisations.
This includes their address, contact and teams (if existing/associated)."},"post":{"operationId":"RunnerOrganisationController.post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRunnerOrganisation"}}},"description":"CreateRunnerOrganisation","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunnerOrganisation"}}},"description":""}},"summary":"Post","tags":["Runner Organisation"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create a new organsisation."}},"/api/organisations/{id}":{"get":{"operationId":"RunnerOrganisationController.getOne","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunnerOrganisation"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerOrganisationNotFoundError"}}},"description":""}},"summary":"Get one","tags":["Runner Organisation"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all information about the organisation whose id got provided."},"put":{"operationId":"RunnerOrganisationController.put","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRunnerOrganisation"}}},"description":"UpdateRunnerOrganisation","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunnerOrganisation"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerOrganisationNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerOrganisationIdsNotMatchingError"}}},"description":""}},"summary":"Put","tags":["Runner Organisation"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Update the organisation whose id you provided.
Please remember that ids can't be changed."},"delete":{"operationId":"RunnerOrganisationController.remove","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}},{"in":"query","name":"force","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunnerOrganisation"}}},"description":""},"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseEmpty"}}},"description":""},"406":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/RunnerOrganisationHasTeamsError"},{"$ref":"#/components/schemas/RunnerOrganisationHasRunnersError"}]}}},"description":""}},"summary":"Remove","tags":["Runner Organisation"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Delete the organsisation whose id you provided.
If the organisation still has runners and/or teams associated this will fail.
To delete the organisation with all associated runners and teams set the force QueryParam to true (cascading deletion might take a while).
If no organisation with this id exists it will just return 204(no content)."}},"/api/status":{"get":{"operationId":"StatusController.get","responses":{"200":{"content":{"application/json":{}},"description":"Successful response"}},"summary":"Get","tags":["Status"],"description":"A very basic status/health endpoint that just checks if the database connection is available.
The available information depth will be expanded later."}},"/api/tracks":{"get":{"operationId":"TrackController.getAll","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseTrack"},"type":"array"}}},"description":""}},"summary":"Get all","tags":["Track"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all tracks."},"post":{"operationId":"TrackController.post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTrack"}}},"description":"CreateTrack","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseTrack"}}},"description":""}},"summary":"Post","tags":["Track"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create a new track.
Please remember that the track's distance must be greater than 0."}},"/api/tracks/{id}":{"get":{"operationId":"TrackController.getOne","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseTrack"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackNotFoundError"}}},"description":""}},"summary":"Get one","tags":["Track"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all information about the track whose id got provided."},"put":{"operationId":"TrackController.put","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Track"}}},"description":"Track","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseTrack"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackIdsNotMatchingError"}}},"description":""}},"summary":"Put","tags":["Track"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Update the track whose id you provided.
Please remember that ids can't be changed."},"delete":{"operationId":"TrackController.remove","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseTrack"}}},"description":""},"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseEmpty"}}},"description":""}},"summary":"Remove","tags":["Track"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Delete the track whose id you provided.
If no track with this id exists it will just return 204(no content)."}},"/api/users":{"get":{"operationId":"UserController.getAll","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/User"},"type":"array"}}},"description":""}},"summary":"Get all","tags":["User"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all users.
This includes their groups and permissions directly granted to them (if existing/associated)."},"post":{"operationId":"UserController.post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUser"}}},"description":"CreateUser","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/User"},{"$ref":"#/components/schemas/UserGroupNotFoundError"}]}}},"description":""}},"summary":"Post","tags":["User"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create a new user.
If you want to grant permissions to the user you have to create them seperately by posting to /api/permissions after creating the user."}},"/api/users/{id}":{"get":{"operationId":"UserController.getOne","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserNotFoundError"}}},"description":""}},"summary":"Get one","tags":["User"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all information about the user whose id got provided.
Please remember that only permissions granted directly to the user will show up here, not permissions inherited from groups."},"put":{"operationId":"UserController.put","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUser"}}},"description":"UpdateUser","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserIdsNotMatchingError"}}},"description":""}},"summary":"Put","tags":["User"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Update the user whose id you provided.
To change the permissions directly granted to the user please use /api/permissions instead.
Please remember that ids can't be changed."},"delete":{"operationId":"UserController.remove","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}},{"in":"query","name":"force","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}},"description":""},"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseEmpty"}}},"description":""}},"summary":"Remove","tags":["User"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Delete the user whose id you provided.
If there are any permissions directly granted to the user they will get deleted as well.
If no user with this id exists it will just return 204(no content)."}},"/api/usergroups":{"get":{"operationId":"UserGroupController.getAll","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/UserGroup"},"type":"array"}}},"description":""}},"summary":"Get all","tags":["User Group"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all groups.
The information provided might change while the project continues to evolve."},"post":{"operationId":"UserGroupController.post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserGroup"}}},"description":"CreateUserGroup","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/UserGroup"},{"$ref":"#/components/schemas/UserGroupNotFoundError"}]}}},"description":""}},"summary":"Post","tags":["User Group"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create a new group.
If you want to grant permissions to the group you have to create them seperately by posting to /api/permissions after creating the group."}},"/api/usergroups/{id}":{"get":{"operationId":"UserGroupController.getOne","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserGroup"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserGroupNotFoundError"}}},"description":""}},"summary":"Get one","tags":["User Group"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all information about the group whose id got provided.
The information provided might change while the project continues to evolve."},"put":{"operationId":"UserGroupController.put","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserGroup"}}},"description":"UserGroup","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserGroup"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserGroupNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserGroupIdsNotMatchingError"}}},"description":""}},"summary":"Put","tags":["User Group"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Update the group whose id you provided.
To change the permissions granted to the group please use /api/permissions instead.
Please remember that ids can't be changed."},"delete":{"operationId":"UserGroupController.remove","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}},{"in":"query","name":"force","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseUserGroup"}}},"description":""},"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseEmpty"}}},"description":""}},"summary":"Remove","tags":["User Group"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Delete the group whose id you provided.
If there are any permissions directly granted to the group they will get deleted as well.
Users associated with this group won't get deleted - just deassociated.
If no group with this id exists it will just return 204(no content)."}}}} \ No newline at end of file +{"components":{"schemas":{"IllegalJWTError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"UserNonexistantOrRefreshtokenInvalidError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"InvalidCredentialsError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"NoPermissionError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"UsernameOrEmailNeededError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"PasswordNeededError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"UserNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"JwtNotProvidedError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"UserNotFoundOrRefreshTokenCountInvalidError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RefreshTokenCountInvalidError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"ResetAlreadyRequestedError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"UserDisabledError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"JwtUser":{"properties":{"id":{"type":"integer"},"uuid":{"format":"uuid","type":"string"},"email":{"format":"email","type":"string"},"username":{"type":"string"},"firstname":{"minLength":1,"type":"string"},"middlename":{"type":"string"},"lastname":{"minLength":1,"type":"string"},"enabled":{"type":"boolean"},"refreshTokenCount":{"minLength":1,"type":"integer"},"profilePic":{"type":"string"}},"type":"object","required":["id","uuid","firstname","lastname","enabled","refreshTokenCount"]},"ResponsePrincipal":{"properties":{"id":{"type":"integer"}},"type":"object","required":["id"]},"ResponseUser":{"properties":{"firstname":{"type":"string"},"middlename":{"type":"string"},"lastname":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"username":{"type":"string"},"enabled":{"type":"boolean"},"profilePic":{"type":"string"},"groups":{"items":{},"type":"array"},"permissions":{"items":{},"type":"array"},"id":{"type":"integer"}},"type":"object","required":["firstname","middlename","lastname","phone","email","username","enabled","id"]},"Permission":{"properties":{"id":{"type":"integer"},"target":{"enum":["RUNNER","ORGANISATION","TEAM","TRACK","USER","USERGROUP","PERMISSION","STATSCLIENT"],"type":"string","minLength":1},"action":{"enum":["GET","CREATE","UPDATE","DELETE","IMPORT"],"type":"string"}},"type":"object","required":["id","target","action"]},"Principal":{"properties":{"id":{"type":"integer"}},"type":"object","required":["id"]},"UserAction":{"properties":{"id":{"type":"integer"},"target":{"type":"string","minLength":1},"action":{"enum":["GET","CREATE","UPDATE","DELETE","IMPORT"],"type":"string"},"changed":{"type":"string"}},"type":"object","required":["id","target","action"]},"ResponseUserGroup":{"properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"permissions":{"items":{},"type":"array"},"id":{"type":"integer"}},"type":"object","required":["name","id"]},"UserGroup":{"properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"id":{"type":"integer"}},"type":"object","required":["name","id"]},"User":{"properties":{"uuid":{"format":"uuid","type":"string"},"email":{"format":"email","type":"string"},"phone":{"type":"string"},"username":{"type":"string"},"firstname":{"minLength":1,"type":"string"},"middlename":{"type":"string"},"lastname":{"minLength":1,"type":"string"},"password":{"minLength":1,"type":"string"},"groups":{},"enabled":{"type":"boolean"},"refreshTokenCount":{"type":"integer"},"profilePic":{"type":"string"},"resetRequestedTimestamp":{"type":"string"},"actions":{},"id":{"type":"integer"}},"type":"object","required":["uuid","email","username","firstname","lastname","password","enabled","refreshTokenCount","id"]},"UserIdsNotMatchingError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"Auth":{"properties":{"access_token":{"type":"string"},"refresh_token":{"type":"string"},"access_token_expires_at":{"type":"integer"},"refresh_token_expires_at":{"type":"integer"}},"type":"object","required":["access_token","refresh_token","access_token_expires_at","refresh_token_expires_at"]},"CreateAuth":{"properties":{"username":{"type":"string"},"email":{"type":"string","format":"email"},"password":{"type":"string","minLength":1}},"type":"object","required":["password"]},"CreateResetToken":{"properties":{"username":{"type":"string"},"email":{"type":"string","format":"email"}},"type":"object"},"Logout":{"properties":{"timestamp":{"type":"string"}},"type":"object","required":["timestamp"]},"HandleLogout":{"properties":{"token":{"type":"string"}},"type":"object"},"RefreshAuth":{"properties":{"token":{"type":"string"}},"type":"object"},"ResetPassword":{"properties":{"resetToken":{"type":"string"},"password":{"type":"string","minLength":1}},"type":"object","required":["password"]},"RunnerNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerIdsNotMatchingError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerGroupNeededError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerGroupNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerOrganisationNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerOrganisationIdsNotMatchingError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerOrganisationHasRunnersError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerOrganisationHasTeamsError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerOrganisationWrongTypeError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"Donation":{"properties":{"id":{"type":"integer"},"donor":{"minLength":1,"type":"string"}},"type":"object","required":["id","donor"]},"Participant":{"properties":{"id":{"type":"integer"},"firstname":{"type":"string","minLength":1},"middlename":{"type":"string"},"lastname":{"type":"string","minLength":1},"phone":{"type":"string"},"email":{"format":"email","type":"string"}},"type":"object","required":["id","firstname","lastname"]},"Address":{"properties":{"id":{"type":"integer"},"description":{"type":"string"},"address1":{"minLength":1,"type":"string"},"address2":{"type":"string"},"postalcode":{"type":"string","minLength":1},"city":{"minLength":1,"type":"string"},"country":{"minLength":1,"type":"string"}},"type":"object","required":["id","address1","postalcode","city","country"]},"GroupContact":{"properties":{"id":{"type":"integer"},"firstname":{"type":"string","minLength":1},"middlename":{"type":"string"},"lastname":{"type":"string","minLength":1},"address":{},"phone":{"type":"string"},"email":{"format":"email","type":"string"}},"type":"object","required":["id","firstname","lastname"]},"DistanceDonation":{"properties":{"runner":{"minLength":1,"type":"string"},"amountPerDistance":{"exclusiveMinimum":true,"minimum":0,"type":"integer"},"id":{"type":"integer"},"donor":{"minLength":1,"type":"string"}},"type":"object","required":["runner","amountPerDistance","id","donor"]},"Scan":{"properties":{"id":{"type":"integer"},"runner":{"minLength":1,"type":"string"},"distance":{"exclusiveMinimum":true,"minimum":0,"type":"integer"},"valid":{"type":"boolean"}},"type":"object","required":["id","runner","distance","valid"]},"Track":{"properties":{"id":{"type":"integer"},"name":{"minLength":1,"type":"string"},"distance":{"exclusiveMinimum":true,"minimum":0,"type":"integer"}},"type":"object","required":["id","name","distance"]},"ScanStation":{"properties":{"id":{"type":"integer"},"description":{"type":"string"},"track":{"minLength":1,"type":"string"},"key":{"type":"string","minLength":1},"enabled":{"type":"boolean"}},"type":"object","required":["id","track","key","enabled"]},"TrackScan":{"properties":{"track":{"minLength":1,"type":"string"},"card":{"minLength":1,"type":"string"},"station":{"minLength":1,"type":"string"},"distance":{"exclusiveMinimum":true,"minimum":0,"type":"integer"},"timestamp":{"minLength":1,"type":"string","pattern":"d{4}-[01]d-[0-3]dT[0-2]d:[0-5]d:[0-5]d.d+Z?"},"id":{"type":"integer"},"runner":{"minLength":1,"type":"string"},"valid":{"type":"boolean"}},"type":"object","required":["track","card","station","distance","timestamp","id","runner","valid"]},"RunnerCard":{"properties":{"id":{"type":"integer"},"runner":{},"code":{"minLength":1,"type":"string"},"enabled":{"type":"boolean"}},"type":"object","required":["id","code","enabled"]},"Runner":{"properties":{"group":{"minLength":1,"type":"string"},"distance":{"type":"integer"},"distanceDonationAmount":{"type":"integer"},"id":{"type":"integer"},"firstname":{"type":"string","minLength":1},"middlename":{"type":"string"},"lastname":{"type":"string","minLength":1},"phone":{"type":"string"},"email":{"format":"email","type":"string"}},"type":"object","required":["group","distance","distanceDonationAmount","id","firstname","lastname"]},"RunnerGroup":{"properties":{"id":{"type":"integer"},"name":{"type":"string","minLength":1},"contact":{},"distance":{"type":"integer"},"distanceDonationAmount":{"type":"integer"}},"type":"object","required":["id","name","distance","distanceDonationAmount"]},"RunnerTeam":{"properties":{"parentGroup":{"minLength":1,"type":"string"},"id":{"type":"integer"},"name":{"type":"string","minLength":1},"contact":{},"distance":{"type":"integer"},"distanceDonationAmount":{"type":"integer"}},"type":"object","required":["parentGroup","id","name","distance","distanceDonationAmount"]},"RunnerOrganisation":{"properties":{"address":{},"distance":{"type":"integer"},"distanceDonationAmount":{"type":"integer"},"id":{"type":"integer"},"name":{"type":"string","minLength":1},"contact":{}},"type":"object","required":["distance","distanceDonationAmount","id","name"]},"RunnerTeamNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerTeamIdsNotMatchingError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerTeamHasRunnersError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerTeamNeedsParentError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"AddressWrongTypeError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"AddressNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"CreateParticipant":{"properties":{"firstname":{"minLength":1,"type":"string"},"middlename":{"type":"string"},"lastname":{"minLength":1,"type":"string"},"phone":{"type":"string"},"email":{"format":"email","type":"string"},"address":{"type":"integer"}},"type":"object","required":["firstname","lastname"]},"CreateRunner":{"properties":{"group":{"type":"integer"},"firstname":{"minLength":1,"type":"string"},"middlename":{"type":"string"},"lastname":{"minLength":1,"type":"string"},"phone":{"type":"string"},"email":{"format":"email","type":"string"},"address":{"type":"integer"}},"type":"object","required":["group","firstname","lastname"]},"ImportRunner":{"properties":{"firstname":{"minLength":1,"type":"string"},"middlename":{"type":"string"},"lastname":{"minLength":1,"type":"string"},"team":{"type":"string"},"class":{"type":"string"}},"type":"object","required":["firstname","lastname"]},"ResponseParticipant":{"properties":{"id":{"type":"integer"},"firstname":{"type":"string"},"middlename":{"type":"string"},"lastname":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"}},"type":"object","required":["id","firstname","middlename","lastname","phone","email"]},"ResponseRunner":{"properties":{"distance":{"type":"integer"},"group":{"$ref":"#/components/schemas/RunnerGroup"},"id":{"type":"integer"},"firstname":{"type":"string"},"middlename":{"type":"string"},"lastname":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"}},"type":"object","required":["distance","group","id","firstname","middlename","lastname","phone","email"]},"UpdateRunner":{"properties":{"id":{"type":"integer"},"group":{"$ref":"#/components/schemas/RunnerGroup"},"firstname":{"minLength":1,"type":"string"},"middlename":{"type":"string"},"lastname":{"minLength":1,"type":"string"},"phone":{"type":"string"},"email":{"format":"email","type":"string"},"address":{"type":"integer"}},"type":"object","required":["id","group","firstname","lastname"]},"ResponseEmpty":{"properties":{"response":{"type":"string"}},"type":"object","required":["response"]},"PermissionNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"PermissionIdsNotMatchingError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"PermissionNeedsPrincipalError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"PrincipalNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"PrincipalWrongTypeError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"CreatePermission":{"properties":{"principal":{"minLength":1,"type":"integer"},"target":{"enum":["RUNNER","ORGANISATION","TEAM","TRACK","USER","USERGROUP","PERMISSION","STATSCLIENT"],"type":"string","minLength":1},"action":{"enum":["GET","CREATE","UPDATE","DELETE","IMPORT"],"type":"string","minLength":1}},"type":"object","required":["principal","target","action"]},"UpdatePermission":{"properties":{"id":{"type":"integer"},"principal":{"minLength":1,"type":"string","$ref":"#/components/schemas/Principal"},"target":{"minLength":1,"type":"string"},"action":{"minLength":1,"type":"string"}},"type":"object","required":["id","principal","target","action"]},"ResponsePermission":{"properties":{"id":{"type":"integer"},"principal":{"minLength":1,"type":"string","$ref":"#/components/schemas/ResponsePrincipal"},"target":{"enum":["RUNNER","ORGANISATION","TEAM","TRACK","USER","USERGROUP","PERMISSION","STATSCLIENT"],"type":"string","minLength":1},"action":{"enum":["GET","CREATE","UPDATE","DELETE","IMPORT"],"type":"string","minLength":1}},"type":"object","required":["id","principal","target","action"]},"GroupContactWrongTypeError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"GroupContactNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"CreateRunnerGroup":{"properties":{"name":{"type":"string","minLength":1},"contact":{"type":"integer"}},"type":"object","required":["name"]},"CreateRunnerOrganisation":{"properties":{"address":{"type":"integer"},"name":{"type":"string","minLength":1},"contact":{"type":"integer"}},"type":"object","required":["name"]},"UpdateRunnerOrganisation":{"properties":{"id":{"type":"integer"},"address":{"type":"integer"},"name":{"type":"string","minLength":1},"contact":{"type":"integer"}},"type":"object","required":["id","name"]},"ResponseRunnerGroup":{"properties":{"id":{"minLength":1,"type":"integer"},"name":{"minLength":1,"type":"string"},"contact":{"$ref":"#/components/schemas/GroupContact"}},"type":"object","required":["id","name"]},"ResponseRunnerOrganisation":{"properties":{"address":{"minLength":1,"type":"string","$ref":"#/components/schemas/Address"},"teams":{"items":{},"type":"array"},"id":{"minLength":1,"type":"integer"},"name":{"minLength":1,"type":"string"},"contact":{"$ref":"#/components/schemas/GroupContact"}},"type":"object","required":["address","teams","id","name"]},"CreateRunnerTeam":{"properties":{"parentGroup":{"minLength":1,"type":"integer"},"name":{"type":"string","minLength":1},"contact":{"type":"integer"}},"type":"object","required":["parentGroup","name"]},"UpdateRunnerTeam":{"properties":{"id":{"type":"integer"},"parentGroup":{"minLength":1,"type":"string","$ref":"#/components/schemas/RunnerOrganisation"},"name":{"type":"string","minLength":1},"contact":{"type":"integer"}},"type":"object","required":["id","parentGroup","name"]},"ResponseRunnerTeam":{"properties":{"parentGroup":{"minLength":1,"type":"string","$ref":"#/components/schemas/RunnerOrganisation"},"id":{"minLength":1,"type":"integer"},"name":{"minLength":1,"type":"string"},"contact":{"$ref":"#/components/schemas/GroupContact"}},"type":"object","required":["parentGroup","id","name"]},"StatsClientNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"StatsClientIdsNotMatchingError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"TrackNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"TrackIdsNotMatchingError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"StatsClient":{"properties":{"id":{"type":"integer"},"description":{"type":"string"},"prefix":{"type":"string"},"key":{"type":"string"},"cleartextkey":{"type":"string"}},"type":"object","required":["id","prefix","key"]},"CreateStatsClient":{"properties":{"description":{"type":"string"}},"type":"object"},"ResponseStatsClient":{"properties":{"id":{"type":"integer"},"description":{"type":"string"},"key":{"type":"string"},"prefix":{"minLength":1,"type":"string"}},"type":"object","required":["id","prefix"]},"ResponseStats":{"properties":{"total_runners":{"type":"integer"},"total_teams":{"type":"integer"},"total_orgs":{"type":"integer"},"total_users":{"type":"integer"},"total_scans":{"type":"integer"},"total_distance":{"type":"integer"},"total_donation":{"type":"integer"},"average_distance":{"type":"integer"}},"type":"object","required":["total_runners","total_teams","total_orgs","total_users","total_scans","total_distance","total_donation","average_distance"]},"ResponseStatsOrgnisation":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"distance":{"type":"integer"},"donationAmount":{"type":"integer"}},"type":"object","required":["id","name","distance","donationAmount"]},"ResponseStatsRunner":{"properties":{"id":{"type":"integer"},"firstname":{"type":"string"},"middlename":{"type":"string"},"lastname":{"type":"string"},"distance":{"type":"integer"},"donationAmount":{"type":"integer"},"group":{"$ref":"#/components/schemas/RunnerGroup"}},"type":"object","required":["id","firstname","middlename","lastname","distance","donationAmount","group"]},"ResponseStatsTeam":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"distance":{"type":"integer"},"donationAmount":{"type":"integer"},"parent":{"$ref":"#/components/schemas/RunnerGroup"}},"type":"object","required":["id","name","distance","donationAmount","parent"]},"CreateTrack":{"properties":{"name":{"minLength":1,"type":"string"},"distance":{"exclusiveMinimum":true,"minimum":0,"type":"integer"}},"type":"object","required":["name","distance"]},"ResponseTrack":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"distance":{"type":"integer"}},"type":"object","required":["id","name","distance"]},"GroupNameNeededError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"UserGroupNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"UserGroupIdsNotMatchingError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"CreateUser":{"properties":{"firstname":{"type":"string"},"middlename":{"type":"string"},"lastname":{"type":"string"},"username":{"type":"string"},"email":{"type":"string","format":"email"},"phone":{"type":"string"},"password":{"type":"string"},"enabled":{"type":"boolean"},"groups":{}},"type":"object","required":["firstname","lastname","password"]},"UpdateUser":{"properties":{"id":{"type":"integer"},"firstname":{"type":"string"},"middlename":{"type":"string"},"lastname":{"type":"string"},"username":{"type":"string"},"email":{"type":"string","format":"email"},"phone":{"type":"string"},"password":{"type":"string"},"enabled":{"type":"boolean"},"groups":{}},"type":"object","required":["id","firstname","lastname","enabled"]},"CreateUserGroup":{"properties":{"name":{"type":"string"},"description":{"type":"string"}},"type":"object","required":["name"]}},"securitySchemes":{"AuthToken":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"A JWT based access token. Use /api/auth/login or /api/auth/refresh to get one."},"RefreshTokenCookie":{"type":"apiKey","in":"cookie","name":"lfk_backend__refresh_token","description":"A cookie containing a JWT based refreh token. Attention: Doesn't work in swagger-ui. Use /api/auth/login or /api/auth/refresh to get one."},"StatsApiToken":{"type":"http","scheme":"bearer","description":"Api token that can be obtained by creating a new stats client (post to /api/statsclients)."}}},"info":{"title":"LfK! Backend API","version":"0.0.5","description":"The the backend API for the LfK! runner system."},"openapi":"3.0.0","paths":{"/api/auth/login":{"post":{"operationId":"AuthController.login","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAuth"}}},"description":"CreateAuth","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Auth"},{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/UserNotFoundError"},{"$ref":"#/components/schemas/UsernameOrEmailNeededError"},{"$ref":"#/components/schemas/PasswordNeededError"},{"$ref":"#/components/schemas/InvalidCredentialsError"}]}}},"description":""}},"summary":"Login","tags":["Auth"],"description":"Login with your username/email and password.
You will receive: \n * access token (use it as a bearer token) \n * refresh token (will also be sent as a cookie)"}},"/api/auth/logout":{"post":{"operationId":"AuthController.logout","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HandleLogout"}}},"description":"HandleLogout","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Logout"},{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/UserNotFoundError"},{"$ref":"#/components/schemas/UsernameOrEmailNeededError"},{"$ref":"#/components/schemas/PasswordNeededError"},{"$ref":"#/components/schemas/InvalidCredentialsError"}]}}},"description":""}},"summary":"Logout","tags":["Auth"],"description":"Logout using your refresh token.
This instantly invalidates all your access and refresh tokens.","security":[{"RefreshTokenCookie":[]}]}},"/api/auth/refresh":{"post":{"operationId":"AuthController.refresh","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshAuth"}}},"description":"RefreshAuth","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Auth"},{"$ref":"#/components/schemas/JwtNotProvidedError"},{"$ref":"#/components/schemas/IllegalJWTError"},{"$ref":"#/components/schemas/UserNotFoundError"},{"$ref":"#/components/schemas/RefreshTokenCountInvalidError"}]}}},"description":""}},"summary":"Refresh","tags":["Auth"],"description":"Refresh your access and refresh tokens using a valid refresh token.
You will receive: \n * access token (use it as a bearer token) \n * refresh token (will also be sent as a cookie)","security":[{"RefreshTokenCookie":[]}]}},"/api/auth/reset":{"post":{"operationId":"AuthController.getResetToken","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateResetToken"}}},"description":"CreateResetToken","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Auth"},{"$ref":"#/components/schemas/UserNotFoundError"},{"$ref":"#/components/schemas/UsernameOrEmailNeededError"}]}}},"description":""}},"summary":"Get reset token","tags":["Auth"],"description":"Request a password reset token.
This will provide you with a reset token that you can use by posting to /api/auth/reset/{token}."}},"/api/auth/reset/{token}":{"post":{"operationId":"AuthController.resetPassword","parameters":[{"in":"path","name":"token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPassword"}}},"description":"ResetPassword","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Auth"},{"$ref":"#/components/schemas/UserNotFoundError"},{"$ref":"#/components/schemas/UsernameOrEmailNeededError"}]}}},"description":""}},"summary":"Reset password","tags":["Auth"],"description":"Reset a user's utilising a valid password reset token.
This will set the user's password to the one you provided in the body.
To get a reset token post to /api/auth/reset with your username."}},"/api/runners":{"get":{"operationId":"RunnerController.getAll","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseRunner"},"type":"array"}}},"description":""}},"summary":"Get all","tags":["Runner"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all runners from all teams/orgs.
This includes the runner's group and distance ran."},"post":{"operationId":"RunnerController.post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRunner"}}},"description":"CreateRunner","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ResponseRunner"},{"$ref":"#/components/schemas/RunnerGroupNeededError"},{"$ref":"#/components/schemas/RunnerGroupNotFoundError"}]}}},"description":""}},"summary":"Post","tags":["Runner"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create a new runner.
Please remeber to provide the runner's group's id."}},"/api/runners/{id}":{"get":{"operationId":"RunnerController.getOne","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunner"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerNotFoundError"}}},"description":""}},"summary":"Get one","tags":["Runner"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all information about the runner whose id got provided."},"put":{"operationId":"RunnerController.put","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRunner"}}},"description":"UpdateRunner","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunner"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerIdsNotMatchingError"}}},"description":""}},"summary":"Put","tags":["Runner"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Update the runner whose id you provided.
Please remember that ids can't be changed."},"delete":{"operationId":"RunnerController.remove","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}},{"in":"query","name":"force","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunner"}}},"description":""},"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseEmpty"}}},"description":""}},"summary":"Remove","tags":["Runner"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Delete the runner whose id you provided.
If no runner with this id exists it will just return 204(no content)."}},"/api/runners/import":{"post":{"operationId":"ImportController.postJSON","parameters":[{"in":"query","name":"group","required":false,"schema":{"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ImportRunner"},"type":"array"}}},"description":"ImportRunner","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseRunner"},"type":"array"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNeededError"}}},"description":""}},"summary":"Post json","tags":["Import"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create new runners from json and insert them into the provided group.
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."}},"/api/organisations/{id}/import":{"post":{"operationId":"ImportController.postOrgsJSON","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ImportRunner"},"type":"array"}}},"description":"ImportRunner","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseRunner"},"type":"array"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNeededError"}}},"description":""}},"summary":"Post orgs json","tags":["Import"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create new runners from json and insert them into the provided org.
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."}},"/api/teams/{id}/import":{"post":{"operationId":"ImportController.postTeamsJSON","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ImportRunner"},"type":"array"}}},"description":"ImportRunner","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseRunner"},"type":"array"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNeededError"}}},"description":""}},"summary":"Post teams json","tags":["Import"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create new runners from json and insert them into the provided team"}},"/api/runners/import/csv":{"post":{"operationId":"ImportController.postCSV","parameters":[{"in":"query","name":"group","required":false,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseRunner"},"type":"array"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNeededError"}}},"description":""}},"summary":"Post csv","tags":["Import"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create new runners from csv and insert them into the provided group.
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."}},"/api/organisations/{id}/import/csv":{"post":{"operationId":"ImportController.postOrgsCSV","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseRunner"},"type":"array"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNeededError"}}},"description":""}},"summary":"Post orgs csv","tags":["Import"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create new runners from csv and insert them into the provided org.
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."}},"/api/teams/{id}/import/csv":{"post":{"operationId":"ImportController.postTeamsCSV","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseRunner"},"type":"array"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNeededError"}}},"description":""}},"summary":"Post teams csv","tags":["Import"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create new runners from csv and insert them into the provided team"}},"/api/permissions":{"get":{"operationId":"PermissionController.getAll","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponsePermission"},"type":"array"}}},"description":""}},"summary":"Get all","tags":["Permission"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all permissions for all users and groups."},"post":{"operationId":"PermissionController.post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePermission"}}},"description":"CreatePermission","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponsePermission"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrincipalNotFoundError"}}},"description":""}},"summary":"Post","tags":["Permission"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create a new permission for a existing principal(user/group).
If a permission with this target, action and prinicpal already exists that permission will be returned instead of creating a new one."}},"/api/permissions/{id}":{"get":{"operationId":"PermissionController.getOne","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponsePermission"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PermissionNotFoundError"}}},"description":""}},"summary":"Get one","tags":["Permission"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all information about the permission whose id got provided."},"put":{"operationId":"PermissionController.put","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePermission"}}},"description":"UpdatePermission","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponsePrincipal"}}},"description":""},"404":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/PermissionNotFoundError"},{"$ref":"#/components/schemas/PrincipalNotFoundError"}]}}},"description":""},"406":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/PermissionIdsNotMatchingError"},{"$ref":"#/components/schemas/PermissionNeedsPrincipalError"}]}}},"description":""}},"summary":"Put","tags":["Permission"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Update a permission object.
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.
Please remember that ids can't be changed."},"delete":{"operationId":"PermissionController.remove","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}},{"in":"query","name":"force","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponsePermission"}}},"description":""},"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseEmpty"}}},"description":""}},"summary":"Remove","tags":["Permission"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Deletes the permission whose id you provide.
If no permission with this id exists it will just return 204(no content)."}},"/api/teams":{"get":{"operationId":"RunnerTeamController.getAll","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseRunnerTeam"},"type":"array"}}},"description":""}},"summary":"Get all","tags":["Runner Team"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all teams.
This includes their parent organisation and contact (if existing/associated)."},"post":{"operationId":"RunnerTeamController.post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRunnerTeam"}}},"description":"CreateRunnerTeam","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunnerTeam"}}},"description":""}},"summary":"Post","tags":["Runner Team"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create a new organsisation.
Please remember to provide it's parent group's id."}},"/api/teams/{id}":{"get":{"operationId":"RunnerTeamController.getOne","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunnerTeam"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerTeamNotFoundError"}}},"description":""}},"summary":"Get one","tags":["Runner Team"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all information about the team whose id got provided."},"put":{"operationId":"RunnerTeamController.put","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRunnerTeam"}}},"description":"UpdateRunnerTeam","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunnerTeam"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerTeamNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerTeamIdsNotMatchingError"}}},"description":""}},"summary":"Put","tags":["Runner Team"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Update the team whose id you provided.
Please remember that ids can't be changed."},"delete":{"operationId":"RunnerTeamController.remove","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}},{"in":"query","name":"force","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunnerTeam"}}},"description":""},"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseEmpty"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerTeamHasRunnersError"}}},"description":""}},"summary":"Remove","tags":["Runner Team"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Delete the team whose id you provided.
If the team still has runners associated this will fail.
To delete the team with all associated runners set the force QueryParam to true (cascading deletion might take a while).
If no team with this id exists it will just return 204(no content)."}},"/api/organisations":{"get":{"operationId":"RunnerOrganisationController.getAll","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseRunnerOrganisation"},"type":"array"}}},"description":""}},"summary":"Get all","tags":["Runner Organisation"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all organisations.
This includes their address, contact and teams (if existing/associated)."},"post":{"operationId":"RunnerOrganisationController.post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRunnerOrganisation"}}},"description":"CreateRunnerOrganisation","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunnerOrganisation"}}},"description":""}},"summary":"Post","tags":["Runner Organisation"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create a new organsisation."}},"/api/organisations/{id}":{"get":{"operationId":"RunnerOrganisationController.getOne","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunnerOrganisation"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerOrganisationNotFoundError"}}},"description":""}},"summary":"Get one","tags":["Runner Organisation"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all information about the organisation whose id got provided."},"put":{"operationId":"RunnerOrganisationController.put","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRunnerOrganisation"}}},"description":"UpdateRunnerOrganisation","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunnerOrganisation"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerOrganisationNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerOrganisationIdsNotMatchingError"}}},"description":""}},"summary":"Put","tags":["Runner Organisation"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Update the organisation whose id you provided.
Please remember that ids can't be changed."},"delete":{"operationId":"RunnerOrganisationController.remove","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}},{"in":"query","name":"force","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunnerOrganisation"}}},"description":""},"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseEmpty"}}},"description":""},"406":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/RunnerOrganisationHasTeamsError"},{"$ref":"#/components/schemas/RunnerOrganisationHasRunnersError"}]}}},"description":""}},"summary":"Remove","tags":["Runner Organisation"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Delete the organsisation whose id you provided.
If the organisation still has runners and/or teams associated this will fail.
To delete the organisation with all associated runners and teams set the force QueryParam to true (cascading deletion might take a while).
If no organisation with this id exists it will just return 204(no content)."}},"/api/statsclients":{"get":{"operationId":"StatsClientController.getAll","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseStatsClient"},"type":"array"}}},"description":""}},"summary":"Get all","tags":["Stats Client"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all stats clients. Please remember that the key can only be viewed on creation."},"post":{"operationId":"StatsClientController.post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStatsClient"}}},"description":"CreateStatsClient","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseStatsClient"}}},"description":""}},"summary":"Post","tags":["Stats Client"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create a new stats client.
Please remember that the client's key will be generated automaticly and that it can only be viewed on creation."}},"/api/statsclients/{id}":{"get":{"operationId":"StatsClientController.getOne","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseStatsClient"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatsClientNotFoundError"}}},"description":""}},"summary":"Get one","tags":["Stats Client"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all information about the stats client whose id got provided. Please remember that the key can only be viewed on creation."},"delete":{"operationId":"StatsClientController.remove","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseStatsClient"}}},"description":""},"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseEmpty"}}},"description":""}},"summary":"Remove","tags":["Stats Client"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Delete the stats client whose id you provided.
If no client with this id exists it will just return 204(no content)."}},"/api/stats":{"get":{"operationId":"StatsController.get","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseStats"}}},"description":""}},"summary":"Get","tags":["Stats"],"description":"A very basic stats endpoint providing basic counters for a dashboard or simmilar"}},"/api/stats/runners/distance":{"get":{"operationId":"StatsController.getTopRunnersByDistance","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseStatsRunner"},"type":"array"}}},"description":""}},"summary":"Get top runners by distance","tags":["Stats"],"description":"Returns the top ten runners by distance.","security":[{"StatsApiToken":[]},{"AuthToken":[]},{"RefreshTokenCookie":[]}]}},"/api/stats/runners/donations":{"get":{"operationId":"StatsController.getTopRunnersByDonations","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseStatsRunner"},"type":"array"}}},"description":""}},"summary":"Get top runners by donations","tags":["Stats"],"description":"Returns the top ten runners by donations.","security":[{"StatsApiToken":[]},{"AuthToken":[]},{"RefreshTokenCookie":[]}]}},"/api/stats/scans":{"get":{"operationId":"StatsController.getTopRunnersByTrackTime","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseStatsRunner"},"type":"array"}}},"description":""}},"summary":"Get top runners by track time","tags":["Stats"],"description":"Returns the top ten fastest track times (with their runner and the runner's group).","security":[{"StatsApiToken":[]},{"AuthToken":[]},{"RefreshTokenCookie":[]}]}},"/api/stats/teams/distance":{"get":{"operationId":"StatsController.getTopTeamsByDistance","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseStatsTeam"},"type":"array"}}},"description":""}},"summary":"Get top teams by distance","tags":["Stats"],"description":"Returns the top ten teams by distance.","security":[{"StatsApiToken":[]},{"AuthToken":[]},{"RefreshTokenCookie":[]}]}},"/api/stats/teams/donations":{"get":{"operationId":"StatsController.getTopTeamsByDonations","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseStatsTeam"},"type":"array"}}},"description":""}},"summary":"Get top teams by donations","tags":["Stats"],"description":"Returns the top ten teams by donations.","security":[{"StatsApiToken":[]},{"AuthToken":[]},{"RefreshTokenCookie":[]}]}},"/api/stats/organisations/distance":{"get":{"operationId":"StatsController.getTopOrgsByDistance","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseStatsOrgnisation"},"type":"array"}}},"description":""}},"summary":"Get top orgs by distance","tags":["Stats"],"description":"Returns the top ten organisations by distance.","security":[{"StatsApiToken":[]},{"AuthToken":[]},{"RefreshTokenCookie":[]}]}},"/api/stats/organisations/donations":{"get":{"operationId":"StatsController.getTopOrgsByDonations","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseStatsOrgnisation"},"type":"array"}}},"description":""}},"summary":"Get top orgs by donations","tags":["Stats"],"description":"Returns the top ten organisations by donations.","security":[{"StatsApiToken":[]},{"AuthToken":[]},{"RefreshTokenCookie":[]}]}},"/api/status":{"get":{"operationId":"StatusController.get","responses":{"200":{"content":{"application/json":{}},"description":"Successful response"}},"summary":"Get","tags":["Status"],"description":"A very basic status/health endpoint that just checks if the database connection is available.
The available information depth will be expanded later."}},"/api/tracks":{"get":{"operationId":"TrackController.getAll","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseTrack"},"type":"array"}}},"description":""}},"summary":"Get all","tags":["Track"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all tracks."},"post":{"operationId":"TrackController.post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTrack"}}},"description":"CreateTrack","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseTrack"}}},"description":""}},"summary":"Post","tags":["Track"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create a new track.
Please remember that the track's distance must be greater than 0."}},"/api/tracks/{id}":{"get":{"operationId":"TrackController.getOne","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseTrack"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackNotFoundError"}}},"description":""}},"summary":"Get one","tags":["Track"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all information about the track whose id got provided."},"put":{"operationId":"TrackController.put","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Track"}}},"description":"Track","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseTrack"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackIdsNotMatchingError"}}},"description":""}},"summary":"Put","tags":["Track"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Update the track whose id you provided.
Please remember that ids can't be changed."},"delete":{"operationId":"TrackController.remove","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseTrack"}}},"description":""},"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseEmpty"}}},"description":""}},"summary":"Remove","tags":["Track"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Delete the track whose id you provided.
If no track with this id exists it will just return 204(no content)."}},"/api/users":{"get":{"operationId":"UserController.getAll","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/User"},"type":"array"}}},"description":""}},"summary":"Get all","tags":["User"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all users.
This includes their groups and permissions directly granted to them (if existing/associated)."},"post":{"operationId":"UserController.post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUser"}}},"description":"CreateUser","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/User"},{"$ref":"#/components/schemas/UserGroupNotFoundError"}]}}},"description":""}},"summary":"Post","tags":["User"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create a new user.
If you want to grant permissions to the user you have to create them seperately by posting to /api/permissions after creating the user."}},"/api/users/{id}":{"get":{"operationId":"UserController.getOne","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserNotFoundError"}}},"description":""}},"summary":"Get one","tags":["User"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all information about the user whose id got provided.
Please remember that only permissions granted directly to the user will show up here, not permissions inherited from groups."},"put":{"operationId":"UserController.put","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUser"}}},"description":"UpdateUser","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserIdsNotMatchingError"}}},"description":""}},"summary":"Put","tags":["User"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Update the user whose id you provided.
To change the permissions directly granted to the user please use /api/permissions instead.
Please remember that ids can't be changed."},"delete":{"operationId":"UserController.remove","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}},{"in":"query","name":"force","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}},"description":""},"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseEmpty"}}},"description":""}},"summary":"Remove","tags":["User"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Delete the user whose id you provided.
If there are any permissions directly granted to the user they will get deleted as well.
If no user with this id exists it will just return 204(no content)."}},"/api/usergroups":{"get":{"operationId":"UserGroupController.getAll","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/UserGroup"},"type":"array"}}},"description":""}},"summary":"Get all","tags":["User Group"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all groups.
The information provided might change while the project continues to evolve."},"post":{"operationId":"UserGroupController.post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserGroup"}}},"description":"CreateUserGroup","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/UserGroup"},{"$ref":"#/components/schemas/UserGroupNotFoundError"}]}}},"description":""}},"summary":"Post","tags":["User Group"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create a new group.
If you want to grant permissions to the group you have to create them seperately by posting to /api/permissions after creating the group."}},"/api/usergroups/{id}":{"get":{"operationId":"UserGroupController.getOne","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserGroup"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserGroupNotFoundError"}}},"description":""}},"summary":"Get one","tags":["User Group"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all information about the group whose id got provided.
The information provided might change while the project continues to evolve."},"put":{"operationId":"UserGroupController.put","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserGroup"}}},"description":"UserGroup","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserGroup"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserGroupNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserGroupIdsNotMatchingError"}}},"description":""}},"summary":"Put","tags":["User Group"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Update the group whose id you provided.
To change the permissions granted to the group please use /api/permissions instead.
Please remember that ids can't be changed."},"delete":{"operationId":"UserGroupController.remove","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}},{"in":"query","name":"force","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseUserGroup"}}},"description":""},"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseEmpty"}}},"description":""}},"summary":"Remove","tags":["User Group"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Delete the group whose id you provided.
If there are any permissions directly granted to the group they will get deleted as well.
Users associated with this group won't get deleted - just deassociated.
If no group with this id exists it will just return 204(no content)."}}}} \ No newline at end of file diff --git a/package.json b/package.json index 9fefd5c..6809c01 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@odit/lfk-client-js", "description": "A lib to interact with https://git.odit.services/lfk/backend. Use this version for native JS applications.", - "version": "0.0.5", + "version": "0.0.6", "license": "CC-BY-NC-SA-4.0", "main": "./dist/index.js", "types": "./dist/index.d.ts",