From 7d6de0936f4780c15b9ab630f090fd3d690bb04d Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Sun, 3 Jan 2021 18:16:00 +0000 Subject: [PATCH] new lib version [CI SKIP] --- dist/core/OpenAPI.js | 2 +- dist/index.d.ts | 103 ++++++++++++++++ dist/index.js | 32 ++++- dist/models/Address.d.ts | 9 ++ dist/models/Address.js | 5 + dist/models/AddressNotFoundError.d.ts | 4 + dist/models/AddressNotFoundError.js | 5 + dist/models/AddressWrongTypeError.d.ts | 4 + dist/models/AddressWrongTypeError.js | 5 + dist/models/Auth.d.ts | 6 + dist/models/Auth.js | 5 + dist/models/CreateAuth.d.ts | 5 + dist/models/CreateAuth.js | 5 + dist/models/CreateDonor.d.ts | 9 ++ dist/models/CreateDonor.js | 5 + dist/models/CreateParticipant.d.ts | 8 ++ dist/models/CreateParticipant.js | 5 + dist/models/CreatePermission.d.ts | 25 ++++ dist/models/CreatePermission.js | 29 +++++ dist/models/CreateResetToken.d.ts | 4 + dist/models/CreateResetToken.js | 5 + dist/models/CreateRunner.d.ts | 9 ++ dist/models/CreateRunner.js | 5 + dist/models/CreateRunnerGroup.d.ts | 4 + dist/models/CreateRunnerGroup.js | 5 + dist/models/CreateRunnerOrganisation.d.ts | 5 + dist/models/CreateRunnerOrganisation.js | 5 + dist/models/CreateRunnerTeam.d.ts | 5 + dist/models/CreateRunnerTeam.js | 5 + dist/models/CreateStatsClient.d.ts | 3 + dist/models/CreateStatsClient.js | 5 + dist/models/CreateTrack.d.ts | 5 + dist/models/CreateTrack.js | 5 + dist/models/CreateUser.d.ts | 11 ++ dist/models/CreateUser.js | 5 + dist/models/CreateUserGroup.d.ts | 4 + dist/models/CreateUserGroup.js | 5 + dist/models/DistanceDonation.d.ts | 6 + dist/models/DistanceDonation.js | 5 + dist/models/Donation.d.ts | 4 + dist/models/Donation.js | 5 + dist/models/Donor.d.ts | 9 ++ dist/models/Donor.js | 5 + dist/models/DonorIdsNotMatchingError.d.ts | 4 + dist/models/DonorIdsNotMatchingError.js | 5 + dist/models/DonorNotFoundError.d.ts | 4 + dist/models/DonorNotFoundError.js | 5 + .../DonorReceiptAddressNeededError.d.ts | 4 + dist/models/DonorReceiptAddressNeededError.js | 5 + dist/models/GroupContact.d.ts | 9 ++ dist/models/GroupContact.js | 5 + dist/models/GroupContactNotFoundError.d.ts | 4 + dist/models/GroupContactNotFoundError.js | 5 + dist/models/GroupContactWrongTypeError.d.ts | 4 + dist/models/GroupContactWrongTypeError.js | 5 + dist/models/GroupNameNeededError.d.ts | 4 + dist/models/GroupNameNeededError.js | 5 + dist/models/HandleLogout.d.ts | 3 + dist/models/HandleLogout.js | 5 + dist/models/ImportRunner.d.ts | 7 ++ dist/models/ImportRunner.js | 5 + dist/models/Logout.d.ts | 3 + dist/models/Logout.js | 5 + dist/models/Participant.d.ts | 8 ++ dist/models/Participant.js | 5 + .../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/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 | 3 + dist/models/RefreshAuth.js | 5 + dist/models/ResetPassword.d.ts | 4 + dist/models/ResetPassword.js | 5 + dist/models/ResponseDonor.d.ts | 9 ++ dist/models/ResponseDonor.js | 5 + dist/models/ResponseEmpty.d.ts | 3 + dist/models/ResponseEmpty.js | 5 + dist/models/ResponseParticipant.d.ts | 8 ++ dist/models/ResponseParticipant.js | 5 + dist/models/ResponsePermission.d.ts | 26 ++++ dist/models/ResponsePermission.js | 29 +++++ dist/models/ResponseRunner.d.ts | 10 ++ dist/models/ResponseRunner.js | 5 + dist/models/ResponseRunnerGroup.d.ts | 5 + dist/models/ResponseRunnerGroup.js | 5 + dist/models/ResponseRunnerOrganisation.d.ts | 7 ++ dist/models/ResponseRunnerOrganisation.js | 5 + dist/models/ResponseRunnerTeam.d.ts | 6 + dist/models/ResponseRunnerTeam.js | 5 + 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 | 9 ++ dist/models/ResponseStatsRunner.js | 5 + dist/models/ResponseStatsTeam.d.ts | 7 ++ dist/models/ResponseStatsTeam.js | 5 + dist/models/ResponseTrack.d.ts | 6 + dist/models/ResponseTrack.js | 5 + dist/models/Runner.d.ts | 11 ++ dist/models/Runner.js | 5 + dist/models/RunnerCard.d.ts | 6 + dist/models/RunnerCard.js | 5 + dist/models/RunnerGroup.d.ts | 7 ++ dist/models/RunnerGroup.js | 5 + dist/models/RunnerGroupNeededError.d.ts | 4 + dist/models/RunnerGroupNeededError.js | 5 + dist/models/RunnerGroupNotFoundError.d.ts | 4 + dist/models/RunnerGroupNotFoundError.js | 5 + dist/models/RunnerIdsNotMatchingError.d.ts | 4 + dist/models/RunnerIdsNotMatchingError.js | 5 + dist/models/RunnerNotFoundError.d.ts | 4 + dist/models/RunnerNotFoundError.js | 5 + dist/models/RunnerOrganisation.d.ts | 8 ++ dist/models/RunnerOrganisation.js | 5 + .../RunnerOrganisationHasRunnersError.d.ts | 4 + .../RunnerOrganisationHasRunnersError.js | 5 + .../RunnerOrganisationHasTeamsError.d.ts | 4 + .../models/RunnerOrganisationHasTeamsError.js | 5 + ...RunnerOrganisationIdsNotMatchingError.d.ts | 4 + .../RunnerOrganisationIdsNotMatchingError.js | 5 + .../RunnerOrganisationNotFoundError.d.ts | 4 + .../models/RunnerOrganisationNotFoundError.js | 5 + .../RunnerOrganisationWrongTypeError.d.ts | 4 + .../RunnerOrganisationWrongTypeError.js | 5 + dist/models/RunnerTeam.d.ts | 8 ++ dist/models/RunnerTeam.js | 5 + dist/models/RunnerTeamHasRunnersError.d.ts | 4 + dist/models/RunnerTeamHasRunnersError.js | 5 + .../models/RunnerTeamIdsNotMatchingError.d.ts | 4 + dist/models/RunnerTeamIdsNotMatchingError.js | 5 + dist/models/RunnerTeamNeedsParentError.d.ts | 4 + dist/models/RunnerTeamNeedsParentError.js | 5 + dist/models/RunnerTeamNotFoundError.d.ts | 4 + dist/models/RunnerTeamNotFoundError.js | 5 + dist/models/Scan.d.ts | 6 + dist/models/Scan.js | 5 + dist/models/ScanStation.d.ts | 7 ++ dist/models/ScanStation.js | 5 + 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 | 6 + dist/models/Track.js | 5 + dist/models/TrackIdsNotMatchingError.d.ts | 4 + dist/models/TrackIdsNotMatchingError.js | 5 + .../TrackLapTimeCantBeNegativeError.d.ts | 4 + .../models/TrackLapTimeCantBeNegativeError.js | 5 + dist/models/TrackNotFoundError.d.ts | 4 + dist/models/TrackNotFoundError.js | 5 + dist/models/TrackScan.d.ts | 10 ++ dist/models/TrackScan.js | 5 + dist/models/UpdateDonor.d.ts | 10 ++ dist/models/UpdateDonor.js | 5 + dist/models/UpdatePermission.d.ts | 6 + dist/models/UpdatePermission.js | 5 + dist/models/UpdateRunner.d.ts | 10 ++ dist/models/UpdateRunner.js | 5 + dist/models/UpdateRunnerOrganisation.d.ts | 6 + dist/models/UpdateRunnerOrganisation.js | 5 + dist/models/UpdateRunnerTeam.d.ts | 6 + dist/models/UpdateRunnerTeam.js | 5 + dist/models/UpdateTrack.d.ts | 6 + dist/models/UpdateTrack.js | 5 + dist/models/UpdateUser.d.ts | 12 ++ dist/models/UpdateUser.js | 5 + dist/models/UserGroupIdsNotMatchingError.d.ts | 4 + dist/models/UserGroupIdsNotMatchingError.js | 5 + dist/models/UserGroupNotFoundError.d.ts | 4 + dist/models/UserGroupNotFoundError.js | 5 + dist/models/UserIdsNotMatchingError.d.ts | 4 + dist/models/UserIdsNotMatchingError.js | 5 + dist/services/AuthService.d.ts | 61 ++++++++++ dist/services/AuthService.js | 87 ++++++++++++++ dist/services/DonorService.d.ts | 48 ++++++++ dist/services/DonorService.js | 84 +++++++++++++ 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 | 48 ++++++++ dist/services/RunnerOrganisationService.js | 84 +++++++++++++ dist/services/RunnerService.d.ts | 50 ++++++++ dist/services/RunnerService.js | 84 +++++++++++++ dist/services/RunnerTeamService.d.ts | 48 ++++++++ dist/services/RunnerTeamService.js | 84 +++++++++++++ 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 | 47 ++++++++ dist/services/TrackService.js | 80 +++++++++++++ dist/services/UserGroupService.d.ts | 49 ++++++++ dist/services/UserGroupService.js | 84 +++++++++++++ dist/services/UserService.d.ts | 49 ++++++++ dist/services/UserService.js | 84 +++++++++++++ openapi.json | 2 +- package.json | 2 +- 211 files changed, 2857 insertions(+), 4 deletions(-) create mode 100644 dist/models/Address.d.ts create mode 100644 dist/models/Address.js create mode 100644 dist/models/AddressNotFoundError.d.ts create mode 100644 dist/models/AddressNotFoundError.js create mode 100644 dist/models/AddressWrongTypeError.d.ts create mode 100644 dist/models/AddressWrongTypeError.js create mode 100644 dist/models/Auth.d.ts create mode 100644 dist/models/Auth.js create mode 100644 dist/models/CreateAuth.d.ts create mode 100644 dist/models/CreateAuth.js create mode 100644 dist/models/CreateDonor.d.ts create mode 100644 dist/models/CreateDonor.js create mode 100644 dist/models/CreateParticipant.d.ts create mode 100644 dist/models/CreateParticipant.js create mode 100644 dist/models/CreatePermission.d.ts create mode 100644 dist/models/CreatePermission.js create mode 100644 dist/models/CreateResetToken.d.ts create mode 100644 dist/models/CreateResetToken.js create mode 100644 dist/models/CreateRunner.d.ts create mode 100644 dist/models/CreateRunner.js create mode 100644 dist/models/CreateRunnerGroup.d.ts create mode 100644 dist/models/CreateRunnerGroup.js create mode 100644 dist/models/CreateRunnerOrganisation.d.ts create mode 100644 dist/models/CreateRunnerOrganisation.js create mode 100644 dist/models/CreateRunnerTeam.d.ts create mode 100644 dist/models/CreateRunnerTeam.js create mode 100644 dist/models/CreateStatsClient.d.ts create mode 100644 dist/models/CreateStatsClient.js create mode 100644 dist/models/CreateTrack.d.ts create mode 100644 dist/models/CreateTrack.js create mode 100644 dist/models/CreateUser.d.ts create mode 100644 dist/models/CreateUser.js create mode 100644 dist/models/CreateUserGroup.d.ts create mode 100644 dist/models/CreateUserGroup.js create mode 100644 dist/models/DistanceDonation.d.ts create mode 100644 dist/models/DistanceDonation.js create mode 100644 dist/models/Donation.d.ts create mode 100644 dist/models/Donation.js create mode 100644 dist/models/Donor.d.ts create mode 100644 dist/models/Donor.js create mode 100644 dist/models/DonorIdsNotMatchingError.d.ts create mode 100644 dist/models/DonorIdsNotMatchingError.js create mode 100644 dist/models/DonorNotFoundError.d.ts create mode 100644 dist/models/DonorNotFoundError.js create mode 100644 dist/models/DonorReceiptAddressNeededError.d.ts create mode 100644 dist/models/DonorReceiptAddressNeededError.js create mode 100644 dist/models/GroupContact.d.ts create mode 100644 dist/models/GroupContact.js create mode 100644 dist/models/GroupContactNotFoundError.d.ts create mode 100644 dist/models/GroupContactNotFoundError.js create mode 100644 dist/models/GroupContactWrongTypeError.d.ts create mode 100644 dist/models/GroupContactWrongTypeError.js create mode 100644 dist/models/GroupNameNeededError.d.ts create mode 100644 dist/models/GroupNameNeededError.js create mode 100644 dist/models/HandleLogout.d.ts create mode 100644 dist/models/HandleLogout.js create mode 100644 dist/models/ImportRunner.d.ts create mode 100644 dist/models/ImportRunner.js create mode 100644 dist/models/Logout.d.ts create mode 100644 dist/models/Logout.js create mode 100644 dist/models/Participant.d.ts create mode 100644 dist/models/Participant.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/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/RefreshAuth.d.ts create mode 100644 dist/models/RefreshAuth.js create mode 100644 dist/models/ResetPassword.d.ts create mode 100644 dist/models/ResetPassword.js create mode 100644 dist/models/ResponseDonor.d.ts create mode 100644 dist/models/ResponseDonor.js create mode 100644 dist/models/ResponseEmpty.d.ts create mode 100644 dist/models/ResponseEmpty.js create mode 100644 dist/models/ResponseParticipant.d.ts create mode 100644 dist/models/ResponseParticipant.js create mode 100644 dist/models/ResponsePermission.d.ts create mode 100644 dist/models/ResponsePermission.js create mode 100644 dist/models/ResponseRunner.d.ts create mode 100644 dist/models/ResponseRunner.js create mode 100644 dist/models/ResponseRunnerGroup.d.ts create mode 100644 dist/models/ResponseRunnerGroup.js create mode 100644 dist/models/ResponseRunnerOrganisation.d.ts create mode 100644 dist/models/ResponseRunnerOrganisation.js create mode 100644 dist/models/ResponseRunnerTeam.d.ts create mode 100644 dist/models/ResponseRunnerTeam.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/ResponseTrack.d.ts create mode 100644 dist/models/ResponseTrack.js create mode 100644 dist/models/Runner.d.ts create mode 100644 dist/models/Runner.js create mode 100644 dist/models/RunnerCard.d.ts create mode 100644 dist/models/RunnerCard.js create mode 100644 dist/models/RunnerGroup.d.ts create mode 100644 dist/models/RunnerGroup.js create mode 100644 dist/models/RunnerGroupNeededError.d.ts create mode 100644 dist/models/RunnerGroupNeededError.js create mode 100644 dist/models/RunnerGroupNotFoundError.d.ts create mode 100644 dist/models/RunnerGroupNotFoundError.js create mode 100644 dist/models/RunnerIdsNotMatchingError.d.ts create mode 100644 dist/models/RunnerIdsNotMatchingError.js create mode 100644 dist/models/RunnerNotFoundError.d.ts create mode 100644 dist/models/RunnerNotFoundError.js create mode 100644 dist/models/RunnerOrganisation.d.ts create mode 100644 dist/models/RunnerOrganisation.js create mode 100644 dist/models/RunnerOrganisationHasRunnersError.d.ts create mode 100644 dist/models/RunnerOrganisationHasRunnersError.js create mode 100644 dist/models/RunnerOrganisationHasTeamsError.d.ts create mode 100644 dist/models/RunnerOrganisationHasTeamsError.js create mode 100644 dist/models/RunnerOrganisationIdsNotMatchingError.d.ts create mode 100644 dist/models/RunnerOrganisationIdsNotMatchingError.js create mode 100644 dist/models/RunnerOrganisationNotFoundError.d.ts create mode 100644 dist/models/RunnerOrganisationNotFoundError.js create mode 100644 dist/models/RunnerOrganisationWrongTypeError.d.ts create mode 100644 dist/models/RunnerOrganisationWrongTypeError.js create mode 100644 dist/models/RunnerTeam.d.ts create mode 100644 dist/models/RunnerTeam.js create mode 100644 dist/models/RunnerTeamHasRunnersError.d.ts create mode 100644 dist/models/RunnerTeamHasRunnersError.js create mode 100644 dist/models/RunnerTeamIdsNotMatchingError.d.ts create mode 100644 dist/models/RunnerTeamIdsNotMatchingError.js create mode 100644 dist/models/RunnerTeamNeedsParentError.d.ts create mode 100644 dist/models/RunnerTeamNeedsParentError.js create mode 100644 dist/models/RunnerTeamNotFoundError.d.ts create mode 100644 dist/models/RunnerTeamNotFoundError.js create mode 100644 dist/models/Scan.d.ts create mode 100644 dist/models/Scan.js create mode 100644 dist/models/ScanStation.d.ts create mode 100644 dist/models/ScanStation.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/Track.d.ts create mode 100644 dist/models/Track.js create mode 100644 dist/models/TrackIdsNotMatchingError.d.ts create mode 100644 dist/models/TrackIdsNotMatchingError.js create mode 100644 dist/models/TrackLapTimeCantBeNegativeError.d.ts create mode 100644 dist/models/TrackLapTimeCantBeNegativeError.js create mode 100644 dist/models/TrackNotFoundError.d.ts create mode 100644 dist/models/TrackNotFoundError.js create mode 100644 dist/models/TrackScan.d.ts create mode 100644 dist/models/TrackScan.js create mode 100644 dist/models/UpdateDonor.d.ts create mode 100644 dist/models/UpdateDonor.js create mode 100644 dist/models/UpdatePermission.d.ts create mode 100644 dist/models/UpdatePermission.js create mode 100644 dist/models/UpdateRunner.d.ts create mode 100644 dist/models/UpdateRunner.js create mode 100644 dist/models/UpdateRunnerOrganisation.d.ts create mode 100644 dist/models/UpdateRunnerOrganisation.js create mode 100644 dist/models/UpdateRunnerTeam.d.ts create mode 100644 dist/models/UpdateRunnerTeam.js create mode 100644 dist/models/UpdateTrack.d.ts create mode 100644 dist/models/UpdateTrack.js create mode 100644 dist/models/UpdateUser.d.ts create mode 100644 dist/models/UpdateUser.js create mode 100644 dist/models/UserGroupIdsNotMatchingError.d.ts create mode 100644 dist/models/UserGroupIdsNotMatchingError.js create mode 100644 dist/models/UserGroupNotFoundError.d.ts create mode 100644 dist/models/UserGroupNotFoundError.js create mode 100644 dist/models/UserIdsNotMatchingError.d.ts create mode 100644 dist/models/UserIdsNotMatchingError.js create mode 100644 dist/services/AuthService.d.ts create mode 100644 dist/services/AuthService.js create mode 100644 dist/services/DonorService.d.ts create mode 100644 dist/services/DonorService.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/RunnerOrganisationService.d.ts create mode 100644 dist/services/RunnerOrganisationService.js create mode 100644 dist/services/RunnerService.d.ts create mode 100644 dist/services/RunnerService.js create mode 100644 dist/services/RunnerTeamService.d.ts create mode 100644 dist/services/RunnerTeamService.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 create mode 100644 dist/services/TrackService.d.ts create mode 100644 dist/services/TrackService.js create mode 100644 dist/services/UserGroupService.d.ts create mode 100644 dist/services/UserGroupService.js create mode 100644 dist/services/UserService.d.ts create mode 100644 dist/services/UserService.js diff --git a/dist/core/OpenAPI.js b/dist/core/OpenAPI.js index b24e695..4894f85 100644 --- a/dist/core/OpenAPI.js +++ b/dist/core/OpenAPI.js @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.OpenAPI = void 0; exports.OpenAPI = { BASE: '', - VERSION: '0.0.5', + VERSION: '0.0.8', WITH_CREDENTIALS: false, TOKEN: undefined, USERNAME: undefined, diff --git a/dist/index.d.ts b/dist/index.d.ts index 0e3406f..d551812 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1,23 +1,126 @@ 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 { CreateDonor } from './models/CreateDonor'; +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 { Donor } from './models/Donor'; +export type { DonorIdsNotMatchingError } from './models/DonorIdsNotMatchingError'; +export type { DonorNotFoundError } from './models/DonorNotFoundError'; +export type { DonorReceiptAddressNeededError } from './models/DonorReceiptAddressNeededError'; +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 { ResponseDonor } from './models/ResponseDonor'; +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 { TrackLapTimeCantBeNegativeError } from './models/TrackLapTimeCantBeNegativeError'; +export type { TrackNotFoundError } from './models/TrackNotFoundError'; +export type { TrackScan } from './models/TrackScan'; +export type { UpdateDonor } from './models/UpdateDonor'; +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 { UpdateTrack } from './models/UpdateTrack'; +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 { DonorService } from './services/DonorService'; +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 f967770..59da035 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,6 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.UserAction = exports.Permission = exports.OpenAPI = exports.ApiError = void 0; +exports.UserService = exports.UserGroupService = exports.TrackService = exports.StatusService = exports.StatsService = exports.StatsClientService = exports.RunnerTeamService = exports.RunnerService = exports.RunnerOrganisationService = exports.PermissionService = exports.ImportService = exports.DonorService = exports.AuthService = exports.UserAction = exports.ResponsePermission = exports.Permission = exports.CreatePermission = exports.OpenAPI = exports.ApiError = void 0; /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ @@ -8,7 +8,37 @@ 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 DonorService_1 = require("./services/DonorService"); +Object.defineProperty(exports, "DonorService", { enumerable: true, get: function () { return DonorService_1.DonorService; } }); +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 new file mode 100644 index 0000000..5e87a4c --- /dev/null +++ b/dist/models/Address.d.ts @@ -0,0 +1,9 @@ +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 new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/Address.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/AddressNotFoundError.d.ts b/dist/models/AddressNotFoundError.d.ts new file mode 100644 index 0000000..76b5091 --- /dev/null +++ b/dist/models/AddressNotFoundError.d.ts @@ -0,0 +1,4 @@ +export declare type AddressNotFoundError = { + name: string; + message: string; +}; diff --git a/dist/models/AddressNotFoundError.js b/dist/models/AddressNotFoundError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/AddressNotFoundError.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/AddressWrongTypeError.d.ts b/dist/models/AddressWrongTypeError.d.ts new file mode 100644 index 0000000..a5bedac --- /dev/null +++ b/dist/models/AddressWrongTypeError.d.ts @@ -0,0 +1,4 @@ +export declare type AddressWrongTypeError = { + name: string; + message: string; +}; diff --git a/dist/models/AddressWrongTypeError.js b/dist/models/AddressWrongTypeError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/AddressWrongTypeError.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/Auth.d.ts b/dist/models/Auth.d.ts new file mode 100644 index 0000000..6af61d8 --- /dev/null +++ b/dist/models/Auth.d.ts @@ -0,0 +1,6 @@ +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 new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/Auth.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/CreateAuth.d.ts b/dist/models/CreateAuth.d.ts new file mode 100644 index 0000000..be72ec6 --- /dev/null +++ b/dist/models/CreateAuth.d.ts @@ -0,0 +1,5 @@ +export declare type CreateAuth = { + username?: string; + email?: string; + password: string; +}; diff --git a/dist/models/CreateAuth.js b/dist/models/CreateAuth.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/CreateAuth.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/CreateDonor.d.ts b/dist/models/CreateDonor.d.ts new file mode 100644 index 0000000..56627d5 --- /dev/null +++ b/dist/models/CreateDonor.d.ts @@ -0,0 +1,9 @@ +export declare type CreateDonor = { + receiptNeeded?: boolean; + firstname: string; + middlename?: string; + lastname: string; + phone?: string; + email?: string; + address?: number; +}; diff --git a/dist/models/CreateDonor.js b/dist/models/CreateDonor.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/CreateDonor.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/CreateParticipant.d.ts b/dist/models/CreateParticipant.d.ts new file mode 100644 index 0000000..248394a --- /dev/null +++ b/dist/models/CreateParticipant.d.ts @@ -0,0 +1,8 @@ +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 new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/CreateParticipant.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/CreatePermission.d.ts b/dist/models/CreatePermission.d.ts new file mode 100644 index 0000000..9c27a32 --- /dev/null +++ b/dist/models/CreatePermission.d.ts @@ -0,0 +1,25 @@ +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", + DONOR = "DONOR" + } + 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..7bf77e2 --- /dev/null +++ b/dist/models/CreatePermission.js @@ -0,0 +1,29 @@ +"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["DONOR"] = "DONOR"; + })(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/CreateResetToken.js b/dist/models/CreateResetToken.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/CreateResetToken.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/CreateRunner.d.ts b/dist/models/CreateRunner.d.ts new file mode 100644 index 0000000..53849d5 --- /dev/null +++ b/dist/models/CreateRunner.d.ts @@ -0,0 +1,9 @@ +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 new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/CreateRunner.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/CreateRunnerGroup.d.ts b/dist/models/CreateRunnerGroup.d.ts new file mode 100644 index 0000000..1eb3d0f --- /dev/null +++ b/dist/models/CreateRunnerGroup.d.ts @@ -0,0 +1,4 @@ +export declare type CreateRunnerGroup = { + name: string; + contact?: number; +}; diff --git a/dist/models/CreateRunnerGroup.js b/dist/models/CreateRunnerGroup.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/CreateRunnerGroup.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/CreateRunnerOrganisation.d.ts b/dist/models/CreateRunnerOrganisation.d.ts new file mode 100644 index 0000000..1382366 --- /dev/null +++ b/dist/models/CreateRunnerOrganisation.d.ts @@ -0,0 +1,5 @@ +export declare type CreateRunnerOrganisation = { + address?: number; + name: string; + contact?: number; +}; diff --git a/dist/models/CreateRunnerOrganisation.js b/dist/models/CreateRunnerOrganisation.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/CreateRunnerOrganisation.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/CreateRunnerTeam.d.ts b/dist/models/CreateRunnerTeam.d.ts new file mode 100644 index 0000000..afe890c --- /dev/null +++ b/dist/models/CreateRunnerTeam.d.ts @@ -0,0 +1,5 @@ +export declare type CreateRunnerTeam = { + parentGroup: number; + name: string; + contact?: number; +}; diff --git a/dist/models/CreateRunnerTeam.js b/dist/models/CreateRunnerTeam.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/CreateRunnerTeam.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/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 new file mode 100644 index 0000000..4384779 --- /dev/null +++ b/dist/models/CreateTrack.d.ts @@ -0,0 +1,5 @@ +export declare type CreateTrack = { + name: string; + distance: number; + minimumLapTime?: number; +}; diff --git a/dist/models/CreateTrack.js b/dist/models/CreateTrack.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/CreateTrack.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/CreateUser.d.ts b/dist/models/CreateUser.d.ts new file mode 100644 index 0000000..d557e4c --- /dev/null +++ b/dist/models/CreateUser.d.ts @@ -0,0 +1,11 @@ +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 new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/CreateUser.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/CreateUserGroup.d.ts b/dist/models/CreateUserGroup.d.ts new file mode 100644 index 0000000..9e9788a --- /dev/null +++ b/dist/models/CreateUserGroup.d.ts @@ -0,0 +1,4 @@ +export declare type CreateUserGroup = { + name: string; + description?: string; +}; diff --git a/dist/models/CreateUserGroup.js b/dist/models/CreateUserGroup.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/CreateUserGroup.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/DistanceDonation.d.ts b/dist/models/DistanceDonation.d.ts new file mode 100644 index 0000000..274ffd3 --- /dev/null +++ b/dist/models/DistanceDonation.d.ts @@ -0,0 +1,6 @@ +export declare type DistanceDonation = { + runner: string; + amountPerDistance: number; + id: number; + donor: string; +}; diff --git a/dist/models/DistanceDonation.js b/dist/models/DistanceDonation.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/DistanceDonation.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/Donation.d.ts b/dist/models/Donation.d.ts new file mode 100644 index 0000000..b78aa6b --- /dev/null +++ b/dist/models/Donation.d.ts @@ -0,0 +1,4 @@ +export declare type Donation = { + id: number; + donor: string; +}; diff --git a/dist/models/Donation.js b/dist/models/Donation.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/Donation.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/Donor.d.ts b/dist/models/Donor.d.ts new file mode 100644 index 0000000..4d30a20 --- /dev/null +++ b/dist/models/Donor.d.ts @@ -0,0 +1,9 @@ +export declare type Donor = { + receiptNeeded: boolean; + id: number; + firstname: string; + middlename?: string; + lastname: string; + phone?: string; + email?: string; +}; diff --git a/dist/models/Donor.js b/dist/models/Donor.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/Donor.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/DonorIdsNotMatchingError.d.ts b/dist/models/DonorIdsNotMatchingError.d.ts new file mode 100644 index 0000000..5eaea43 --- /dev/null +++ b/dist/models/DonorIdsNotMatchingError.d.ts @@ -0,0 +1,4 @@ +export declare type DonorIdsNotMatchingError = { + name: string; + message: string; +}; diff --git a/dist/models/DonorIdsNotMatchingError.js b/dist/models/DonorIdsNotMatchingError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/DonorIdsNotMatchingError.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/DonorNotFoundError.d.ts b/dist/models/DonorNotFoundError.d.ts new file mode 100644 index 0000000..34ca85b --- /dev/null +++ b/dist/models/DonorNotFoundError.d.ts @@ -0,0 +1,4 @@ +export declare type DonorNotFoundError = { + name: string; + message: string; +}; diff --git a/dist/models/DonorNotFoundError.js b/dist/models/DonorNotFoundError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/DonorNotFoundError.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/DonorReceiptAddressNeededError.d.ts b/dist/models/DonorReceiptAddressNeededError.d.ts new file mode 100644 index 0000000..bcd6e3e --- /dev/null +++ b/dist/models/DonorReceiptAddressNeededError.d.ts @@ -0,0 +1,4 @@ +export declare type DonorReceiptAddressNeededError = { + name: string; + message: string; +}; diff --git a/dist/models/DonorReceiptAddressNeededError.js b/dist/models/DonorReceiptAddressNeededError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/DonorReceiptAddressNeededError.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/GroupContact.d.ts b/dist/models/GroupContact.d.ts new file mode 100644 index 0000000..2f739c3 --- /dev/null +++ b/dist/models/GroupContact.d.ts @@ -0,0 +1,9 @@ +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 new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/GroupContact.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/GroupContactNotFoundError.d.ts b/dist/models/GroupContactNotFoundError.d.ts new file mode 100644 index 0000000..5eb718c --- /dev/null +++ b/dist/models/GroupContactNotFoundError.d.ts @@ -0,0 +1,4 @@ +export declare type GroupContactNotFoundError = { + name: string; + message: string; +}; diff --git a/dist/models/GroupContactNotFoundError.js b/dist/models/GroupContactNotFoundError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/GroupContactNotFoundError.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/GroupContactWrongTypeError.d.ts b/dist/models/GroupContactWrongTypeError.d.ts new file mode 100644 index 0000000..28c612f --- /dev/null +++ b/dist/models/GroupContactWrongTypeError.d.ts @@ -0,0 +1,4 @@ +export declare type GroupContactWrongTypeError = { + name: string; + message: string; +}; diff --git a/dist/models/GroupContactWrongTypeError.js b/dist/models/GroupContactWrongTypeError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/GroupContactWrongTypeError.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/GroupNameNeededError.d.ts b/dist/models/GroupNameNeededError.d.ts new file mode 100644 index 0000000..6e6954c --- /dev/null +++ b/dist/models/GroupNameNeededError.d.ts @@ -0,0 +1,4 @@ +export declare type GroupNameNeededError = { + name: string; + message: string; +}; diff --git a/dist/models/GroupNameNeededError.js b/dist/models/GroupNameNeededError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/GroupNameNeededError.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/HandleLogout.d.ts b/dist/models/HandleLogout.d.ts new file mode 100644 index 0000000..e9cf7c8 --- /dev/null +++ b/dist/models/HandleLogout.d.ts @@ -0,0 +1,3 @@ +export declare type HandleLogout = { + token?: string; +}; diff --git a/dist/models/HandleLogout.js b/dist/models/HandleLogout.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/HandleLogout.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/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/Logout.d.ts b/dist/models/Logout.d.ts new file mode 100644 index 0000000..ea7adfa --- /dev/null +++ b/dist/models/Logout.d.ts @@ -0,0 +1,3 @@ +export declare type Logout = { + timestamp: string; +}; diff --git a/dist/models/Logout.js b/dist/models/Logout.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/Logout.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/Participant.d.ts b/dist/models/Participant.d.ts new file mode 100644 index 0000000..1beca73 --- /dev/null +++ b/dist/models/Participant.d.ts @@ -0,0 +1,8 @@ +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 new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/Participant.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/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/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 new file mode 100644 index 0000000..a53922a --- /dev/null +++ b/dist/models/RefreshAuth.d.ts @@ -0,0 +1,3 @@ +export declare type RefreshAuth = { + token?: string; +}; diff --git a/dist/models/RefreshAuth.js b/dist/models/RefreshAuth.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/RefreshAuth.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/ResponseDonor.d.ts b/dist/models/ResponseDonor.d.ts new file mode 100644 index 0000000..50430ce --- /dev/null +++ b/dist/models/ResponseDonor.d.ts @@ -0,0 +1,9 @@ +export declare type ResponseDonor = { + receiptNeeded: boolean; + id: number; + firstname: string; + middlename: string; + lastname: string; + phone: string; + email: string; +}; diff --git a/dist/models/ResponseDonor.js b/dist/models/ResponseDonor.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/ResponseDonor.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 new file mode 100644 index 0000000..e80f56c --- /dev/null +++ b/dist/models/ResponseEmpty.d.ts @@ -0,0 +1,3 @@ +export declare type ResponseEmpty = { + response: string; +}; diff --git a/dist/models/ResponseEmpty.js b/dist/models/ResponseEmpty.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/ResponseEmpty.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/ResponseParticipant.d.ts b/dist/models/ResponseParticipant.d.ts new file mode 100644 index 0000000..c1adc1b --- /dev/null +++ b/dist/models/ResponseParticipant.d.ts @@ -0,0 +1,8 @@ +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 new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/ResponseParticipant.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/ResponsePermission.d.ts b/dist/models/ResponsePermission.d.ts new file mode 100644 index 0000000..afdd2b4 --- /dev/null +++ b/dist/models/ResponsePermission.d.ts @@ -0,0 +1,26 @@ +export declare type ResponsePermission = { + id: number; + principal: any; + 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", + DONOR = "DONOR" + } + 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..db5678f --- /dev/null +++ b/dist/models/ResponsePermission.js @@ -0,0 +1,29 @@ +"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["DONOR"] = "DONOR"; + })(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/ResponseRunner.d.ts b/dist/models/ResponseRunner.d.ts new file mode 100644 index 0000000..0d95b77 --- /dev/null +++ b/dist/models/ResponseRunner.d.ts @@ -0,0 +1,10 @@ +export declare type ResponseRunner = { + distance: number; + group: any; + id: number; + firstname: string; + middlename: string; + lastname: string; + phone: string; + email: string; +}; diff --git a/dist/models/ResponseRunner.js b/dist/models/ResponseRunner.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/ResponseRunner.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/ResponseRunnerGroup.d.ts b/dist/models/ResponseRunnerGroup.d.ts new file mode 100644 index 0000000..afd57b2 --- /dev/null +++ b/dist/models/ResponseRunnerGroup.d.ts @@ -0,0 +1,5 @@ +export declare type ResponseRunnerGroup = { + id: number; + name: string; + contact?: any; +}; diff --git a/dist/models/ResponseRunnerGroup.js b/dist/models/ResponseRunnerGroup.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/ResponseRunnerGroup.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/ResponseRunnerOrganisation.d.ts b/dist/models/ResponseRunnerOrganisation.d.ts new file mode 100644 index 0000000..f64af75 --- /dev/null +++ b/dist/models/ResponseRunnerOrganisation.d.ts @@ -0,0 +1,7 @@ +export declare type ResponseRunnerOrganisation = { + address?: any; + teams: Array; + id: number; + name: string; + contact?: any; +}; diff --git a/dist/models/ResponseRunnerOrganisation.js b/dist/models/ResponseRunnerOrganisation.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/ResponseRunnerOrganisation.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/ResponseRunnerTeam.d.ts b/dist/models/ResponseRunnerTeam.d.ts new file mode 100644 index 0000000..5c28c6e --- /dev/null +++ b/dist/models/ResponseRunnerTeam.d.ts @@ -0,0 +1,6 @@ +export declare type ResponseRunnerTeam = { + parentGroup: any; + id: number; + name: string; + contact?: any; +}; diff --git a/dist/models/ResponseRunnerTeam.js b/dist/models/ResponseRunnerTeam.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/ResponseRunnerTeam.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/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..1e77b1a --- /dev/null +++ b/dist/models/ResponseStatsRunner.d.ts @@ -0,0 +1,9 @@ +export declare type ResponseStatsRunner = { + id: number; + firstname: string; + middlename: string; + lastname: string; + distance: number; + donationAmount: number; + group: any; +}; 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..5e397da --- /dev/null +++ b/dist/models/ResponseStatsTeam.d.ts @@ -0,0 +1,7 @@ +export declare type ResponseStatsTeam = { + id: number; + name: string; + distance: number; + donationAmount: number; + parent: any; +}; 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 new file mode 100644 index 0000000..23abed6 --- /dev/null +++ b/dist/models/ResponseTrack.d.ts @@ -0,0 +1,6 @@ +export declare type ResponseTrack = { + id: number; + name: string; + distance: number; + minimumLapTime?: number; +}; diff --git a/dist/models/ResponseTrack.js b/dist/models/ResponseTrack.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/ResponseTrack.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 new file mode 100644 index 0000000..5f0a0f2 --- /dev/null +++ b/dist/models/Runner.d.ts @@ -0,0 +1,11 @@ +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 new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/Runner.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/RunnerCard.d.ts b/dist/models/RunnerCard.d.ts new file mode 100644 index 0000000..ca8c342 --- /dev/null +++ b/dist/models/RunnerCard.d.ts @@ -0,0 +1,6 @@ +export declare type RunnerCard = { + id: number; + runner?: any; + code: string; + enabled: boolean; +}; diff --git a/dist/models/RunnerCard.js b/dist/models/RunnerCard.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/RunnerCard.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/RunnerGroup.d.ts b/dist/models/RunnerGroup.d.ts new file mode 100644 index 0000000..68a4740 --- /dev/null +++ b/dist/models/RunnerGroup.d.ts @@ -0,0 +1,7 @@ +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 new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/RunnerGroup.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/RunnerGroupNeededError.d.ts b/dist/models/RunnerGroupNeededError.d.ts new file mode 100644 index 0000000..76d28a3 --- /dev/null +++ b/dist/models/RunnerGroupNeededError.d.ts @@ -0,0 +1,4 @@ +export declare type RunnerGroupNeededError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerGroupNeededError.js b/dist/models/RunnerGroupNeededError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/RunnerGroupNeededError.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/RunnerGroupNotFoundError.d.ts b/dist/models/RunnerGroupNotFoundError.d.ts new file mode 100644 index 0000000..58522bf --- /dev/null +++ b/dist/models/RunnerGroupNotFoundError.d.ts @@ -0,0 +1,4 @@ +export declare type RunnerGroupNotFoundError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerGroupNotFoundError.js b/dist/models/RunnerGroupNotFoundError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/RunnerGroupNotFoundError.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/RunnerIdsNotMatchingError.d.ts b/dist/models/RunnerIdsNotMatchingError.d.ts new file mode 100644 index 0000000..406e8ef --- /dev/null +++ b/dist/models/RunnerIdsNotMatchingError.d.ts @@ -0,0 +1,4 @@ +export declare type RunnerIdsNotMatchingError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerIdsNotMatchingError.js b/dist/models/RunnerIdsNotMatchingError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/RunnerIdsNotMatchingError.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/RunnerNotFoundError.d.ts b/dist/models/RunnerNotFoundError.d.ts new file mode 100644 index 0000000..864be4f --- /dev/null +++ b/dist/models/RunnerNotFoundError.d.ts @@ -0,0 +1,4 @@ +export declare type RunnerNotFoundError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerNotFoundError.js b/dist/models/RunnerNotFoundError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/RunnerNotFoundError.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/RunnerOrganisation.d.ts b/dist/models/RunnerOrganisation.d.ts new file mode 100644 index 0000000..27d8c35 --- /dev/null +++ b/dist/models/RunnerOrganisation.d.ts @@ -0,0 +1,8 @@ +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 new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/RunnerOrganisation.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/RunnerOrganisationHasRunnersError.d.ts b/dist/models/RunnerOrganisationHasRunnersError.d.ts new file mode 100644 index 0000000..e7e206f --- /dev/null +++ b/dist/models/RunnerOrganisationHasRunnersError.d.ts @@ -0,0 +1,4 @@ +export declare type RunnerOrganisationHasRunnersError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerOrganisationHasRunnersError.js b/dist/models/RunnerOrganisationHasRunnersError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/RunnerOrganisationHasRunnersError.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/RunnerOrganisationHasTeamsError.d.ts b/dist/models/RunnerOrganisationHasTeamsError.d.ts new file mode 100644 index 0000000..3a18223 --- /dev/null +++ b/dist/models/RunnerOrganisationHasTeamsError.d.ts @@ -0,0 +1,4 @@ +export declare type RunnerOrganisationHasTeamsError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerOrganisationHasTeamsError.js b/dist/models/RunnerOrganisationHasTeamsError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/RunnerOrganisationHasTeamsError.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/RunnerOrganisationIdsNotMatchingError.d.ts b/dist/models/RunnerOrganisationIdsNotMatchingError.d.ts new file mode 100644 index 0000000..2c09ee6 --- /dev/null +++ b/dist/models/RunnerOrganisationIdsNotMatchingError.d.ts @@ -0,0 +1,4 @@ +export declare type RunnerOrganisationIdsNotMatchingError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerOrganisationIdsNotMatchingError.js b/dist/models/RunnerOrganisationIdsNotMatchingError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/RunnerOrganisationIdsNotMatchingError.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/RunnerOrganisationNotFoundError.d.ts b/dist/models/RunnerOrganisationNotFoundError.d.ts new file mode 100644 index 0000000..165d97d --- /dev/null +++ b/dist/models/RunnerOrganisationNotFoundError.d.ts @@ -0,0 +1,4 @@ +export declare type RunnerOrganisationNotFoundError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerOrganisationNotFoundError.js b/dist/models/RunnerOrganisationNotFoundError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/RunnerOrganisationNotFoundError.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/RunnerOrganisationWrongTypeError.d.ts b/dist/models/RunnerOrganisationWrongTypeError.d.ts new file mode 100644 index 0000000..6f581f5 --- /dev/null +++ b/dist/models/RunnerOrganisationWrongTypeError.d.ts @@ -0,0 +1,4 @@ +export declare type RunnerOrganisationWrongTypeError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerOrganisationWrongTypeError.js b/dist/models/RunnerOrganisationWrongTypeError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/RunnerOrganisationWrongTypeError.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/RunnerTeam.d.ts b/dist/models/RunnerTeam.d.ts new file mode 100644 index 0000000..59656f8 --- /dev/null +++ b/dist/models/RunnerTeam.d.ts @@ -0,0 +1,8 @@ +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 new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/RunnerTeam.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/RunnerTeamHasRunnersError.d.ts b/dist/models/RunnerTeamHasRunnersError.d.ts new file mode 100644 index 0000000..d0fd4a8 --- /dev/null +++ b/dist/models/RunnerTeamHasRunnersError.d.ts @@ -0,0 +1,4 @@ +export declare type RunnerTeamHasRunnersError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerTeamHasRunnersError.js b/dist/models/RunnerTeamHasRunnersError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/RunnerTeamHasRunnersError.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/RunnerTeamIdsNotMatchingError.d.ts b/dist/models/RunnerTeamIdsNotMatchingError.d.ts new file mode 100644 index 0000000..2c209b9 --- /dev/null +++ b/dist/models/RunnerTeamIdsNotMatchingError.d.ts @@ -0,0 +1,4 @@ +export declare type RunnerTeamIdsNotMatchingError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerTeamIdsNotMatchingError.js b/dist/models/RunnerTeamIdsNotMatchingError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/RunnerTeamIdsNotMatchingError.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/RunnerTeamNeedsParentError.d.ts b/dist/models/RunnerTeamNeedsParentError.d.ts new file mode 100644 index 0000000..4feac81 --- /dev/null +++ b/dist/models/RunnerTeamNeedsParentError.d.ts @@ -0,0 +1,4 @@ +export declare type RunnerTeamNeedsParentError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerTeamNeedsParentError.js b/dist/models/RunnerTeamNeedsParentError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/RunnerTeamNeedsParentError.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/RunnerTeamNotFoundError.d.ts b/dist/models/RunnerTeamNotFoundError.d.ts new file mode 100644 index 0000000..4844b93 --- /dev/null +++ b/dist/models/RunnerTeamNotFoundError.d.ts @@ -0,0 +1,4 @@ +export declare type RunnerTeamNotFoundError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerTeamNotFoundError.js b/dist/models/RunnerTeamNotFoundError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/RunnerTeamNotFoundError.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/Scan.d.ts b/dist/models/Scan.d.ts new file mode 100644 index 0000000..78a570f --- /dev/null +++ b/dist/models/Scan.d.ts @@ -0,0 +1,6 @@ +export declare type Scan = { + id: number; + runner: string; + distance: number; + valid: boolean; +}; diff --git a/dist/models/Scan.js b/dist/models/Scan.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/Scan.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/ScanStation.d.ts b/dist/models/ScanStation.d.ts new file mode 100644 index 0000000..97092f2 --- /dev/null +++ b/dist/models/ScanStation.d.ts @@ -0,0 +1,7 @@ +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 new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/ScanStation.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/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 new file mode 100644 index 0000000..6ac61fa --- /dev/null +++ b/dist/models/Track.d.ts @@ -0,0 +1,6 @@ +export declare type Track = { + id: number; + name: string; + distance: number; + minimumLapTime?: number; +}; diff --git a/dist/models/Track.js b/dist/models/Track.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/Track.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/TrackIdsNotMatchingError.d.ts b/dist/models/TrackIdsNotMatchingError.d.ts new file mode 100644 index 0000000..6d0a4f5 --- /dev/null +++ b/dist/models/TrackIdsNotMatchingError.d.ts @@ -0,0 +1,4 @@ +export declare type TrackIdsNotMatchingError = { + name: string; + message: string; +}; diff --git a/dist/models/TrackIdsNotMatchingError.js b/dist/models/TrackIdsNotMatchingError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/TrackIdsNotMatchingError.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/TrackLapTimeCantBeNegativeError.d.ts b/dist/models/TrackLapTimeCantBeNegativeError.d.ts new file mode 100644 index 0000000..891bced --- /dev/null +++ b/dist/models/TrackLapTimeCantBeNegativeError.d.ts @@ -0,0 +1,4 @@ +export declare type TrackLapTimeCantBeNegativeError = { + name: string; + message: string; +}; diff --git a/dist/models/TrackLapTimeCantBeNegativeError.js b/dist/models/TrackLapTimeCantBeNegativeError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/TrackLapTimeCantBeNegativeError.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/TrackNotFoundError.d.ts b/dist/models/TrackNotFoundError.d.ts new file mode 100644 index 0000000..2475604 --- /dev/null +++ b/dist/models/TrackNotFoundError.d.ts @@ -0,0 +1,4 @@ +export declare type TrackNotFoundError = { + name: string; + message: string; +}; diff --git a/dist/models/TrackNotFoundError.js b/dist/models/TrackNotFoundError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/TrackNotFoundError.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/TrackScan.d.ts b/dist/models/TrackScan.d.ts new file mode 100644 index 0000000..3b028c4 --- /dev/null +++ b/dist/models/TrackScan.d.ts @@ -0,0 +1,10 @@ +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 new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/TrackScan.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/UpdateDonor.d.ts b/dist/models/UpdateDonor.d.ts new file mode 100644 index 0000000..937e7c5 --- /dev/null +++ b/dist/models/UpdateDonor.d.ts @@ -0,0 +1,10 @@ +export declare type UpdateDonor = { + id: number; + receiptNeeded?: boolean; + firstname: string; + middlename?: string; + lastname: string; + phone?: string; + email?: string; + address?: number; +}; diff --git a/dist/models/UpdateDonor.js b/dist/models/UpdateDonor.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/UpdateDonor.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/UpdatePermission.d.ts b/dist/models/UpdatePermission.d.ts new file mode 100644 index 0000000..c5dca70 --- /dev/null +++ b/dist/models/UpdatePermission.d.ts @@ -0,0 +1,6 @@ +export declare type UpdatePermission = { + id: number; + principal: any; + 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 new file mode 100644 index 0000000..23a7d11 --- /dev/null +++ b/dist/models/UpdateRunner.d.ts @@ -0,0 +1,10 @@ +export declare type UpdateRunner = { + id: number; + group: any; + firstname: string; + middlename?: string; + lastname: string; + phone?: string; + email?: string; + address?: number; +}; diff --git a/dist/models/UpdateRunner.js b/dist/models/UpdateRunner.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/UpdateRunner.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/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 new file mode 100644 index 0000000..689ab89 --- /dev/null +++ b/dist/models/UpdateRunnerTeam.d.ts @@ -0,0 +1,6 @@ +export declare type UpdateRunnerTeam = { + id: number; + parentGroup: any; + name: string; + contact?: number; +}; diff --git a/dist/models/UpdateRunnerTeam.js b/dist/models/UpdateRunnerTeam.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/UpdateRunnerTeam.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/UpdateTrack.d.ts b/dist/models/UpdateTrack.d.ts new file mode 100644 index 0000000..f724aea --- /dev/null +++ b/dist/models/UpdateTrack.d.ts @@ -0,0 +1,6 @@ +export declare type UpdateTrack = { + id: number; + name: string; + distance: number; + minimumLapTime?: number; +}; diff --git a/dist/models/UpdateTrack.js b/dist/models/UpdateTrack.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/UpdateTrack.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/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/UserGroupIdsNotMatchingError.d.ts b/dist/models/UserGroupIdsNotMatchingError.d.ts new file mode 100644 index 0000000..09101d8 --- /dev/null +++ b/dist/models/UserGroupIdsNotMatchingError.d.ts @@ -0,0 +1,4 @@ +export declare type UserGroupIdsNotMatchingError = { + name: string; + message: string; +}; diff --git a/dist/models/UserGroupIdsNotMatchingError.js b/dist/models/UserGroupIdsNotMatchingError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/UserGroupIdsNotMatchingError.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/UserGroupNotFoundError.d.ts b/dist/models/UserGroupNotFoundError.d.ts new file mode 100644 index 0000000..72ebe69 --- /dev/null +++ b/dist/models/UserGroupNotFoundError.d.ts @@ -0,0 +1,4 @@ +export declare type UserGroupNotFoundError = { + name: string; + message: string; +}; diff --git a/dist/models/UserGroupNotFoundError.js b/dist/models/UserGroupNotFoundError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/UserGroupNotFoundError.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/UserIdsNotMatchingError.d.ts b/dist/models/UserIdsNotMatchingError.d.ts new file mode 100644 index 0000000..99b8e68 --- /dev/null +++ b/dist/models/UserIdsNotMatchingError.d.ts @@ -0,0 +1,4 @@ +export declare type UserIdsNotMatchingError = { + name: string; + message: string; +}; diff --git a/dist/models/UserIdsNotMatchingError.js b/dist/models/UserIdsNotMatchingError.js new file mode 100644 index 0000000..1e550d8 --- /dev/null +++ b/dist/models/UserIdsNotMatchingError.js @@ -0,0 +1,5 @@ +"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 new file mode 100644 index 0000000..fd37314 --- /dev/null +++ b/dist/services/AuthService.d.ts @@ -0,0 +1,61 @@ +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 new file mode 100644 index 0000000..55fe198 --- /dev/null +++ b/dist/services/AuthService.js @@ -0,0 +1,87 @@ +"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/DonorService.d.ts b/dist/services/DonorService.d.ts new file mode 100644 index 0000000..bb7b29d --- /dev/null +++ b/dist/services/DonorService.d.ts @@ -0,0 +1,48 @@ +import type { CreateDonor } from '../models/CreateDonor'; +import type { ResponseDonor } from '../models/ResponseDonor'; +import type { ResponseEmpty } from '../models/ResponseEmpty'; +import type { UpdateDonor } from '../models/UpdateDonor'; +export declare class DonorService { + /** + * Get all + * Lists all runners from all teams/orgs.
This includes the runner's group and distance ran. + * @returns ResponseDonor + * @throws ApiError + */ + static donorControllerGetAll(): Promise>; + /** + * Post + * Create a new runner.
Please remeber to provide the runner's group's id. + * @param requestBody CreateDonor + * @returns ResponseDonor + * @throws ApiError + */ + static donorControllerPost(requestBody?: CreateDonor): Promise; + /** + * Get one + * Lists all information about the runner whose id got provided. + * @param id + * @returns ResponseDonor + * @throws ApiError + */ + static donorControllerGetOne(id: number): Promise; + /** + * Put + * Update the runner whose id you provided.
Please remember that ids can't be changed. + * @param id + * @param requestBody UpdateDonor + * @returns ResponseDonor + * @throws ApiError + */ + static donorControllerPut(id: number, requestBody?: UpdateDonor): 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 ResponseDonor + * @returns ResponseEmpty + * @throws ApiError + */ + static donorControllerRemove(id: number, force?: boolean): Promise; +} diff --git a/dist/services/DonorService.js b/dist/services/DonorService.js new file mode 100644 index 0000000..7acc82b --- /dev/null +++ b/dist/services/DonorService.js @@ -0,0 +1,84 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DonorService = void 0; +const request_1 = require("../core/request"); +class DonorService { + /** + * Get all + * Lists all runners from all teams/orgs.
This includes the runner's group and distance ran. + * @returns ResponseDonor + * @throws ApiError + */ + static async donorControllerGetAll() { + const result = await request_1.request({ + method: 'GET', + path: `/api/donors`, + }); + return result.body; + } + /** + * Post + * Create a new runner.
Please remeber to provide the runner's group's id. + * @param requestBody CreateDonor + * @returns ResponseDonor + * @throws ApiError + */ + static async donorControllerPost(requestBody) { + const result = await request_1.request({ + method: 'POST', + path: `/api/donors`, + body: requestBody, + }); + return result.body; + } + /** + * Get one + * Lists all information about the runner whose id got provided. + * @param id + * @returns ResponseDonor + * @throws ApiError + */ + static async donorControllerGetOne(id) { + const result = await request_1.request({ + method: 'GET', + path: `/api/donors/${id}`, + }); + return result.body; + } + /** + * Put + * Update the runner whose id you provided.
Please remember that ids can't be changed. + * @param id + * @param requestBody UpdateDonor + * @returns ResponseDonor + * @throws ApiError + */ + static async donorControllerPut(id, requestBody) { + const result = await request_1.request({ + method: 'PUT', + path: `/api/donors/${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 ResponseDonor + * @returns ResponseEmpty + * @throws ApiError + */ + static async donorControllerRemove(id, force) { + const result = await request_1.request({ + method: 'DELETE', + path: `/api/donors/${id}`, + query: { + 'force': force, + }, + }); + return result.body; + } +} +exports.DonorService = DonorService; 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 new file mode 100644 index 0000000..1a5015b --- /dev/null +++ b/dist/services/RunnerOrganisationService.d.ts @@ -0,0 +1,48 @@ +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 new file mode 100644 index 0000000..9665579 --- /dev/null +++ b/dist/services/RunnerOrganisationService.js @@ -0,0 +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 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 new file mode 100644 index 0000000..1ae374f --- /dev/null +++ b/dist/services/RunnerService.d.ts @@ -0,0 +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 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 new file mode 100644 index 0000000..fdb7abb --- /dev/null +++ b/dist/services/RunnerService.js @@ -0,0 +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 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 new file mode 100644 index 0000000..48d1213 --- /dev/null +++ b/dist/services/RunnerTeamService.d.ts @@ -0,0 +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 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 new file mode 100644 index 0000000..e20493a --- /dev/null +++ b/dist/services/RunnerTeamService.js @@ -0,0 +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 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 new file mode 100644 index 0000000..19fe0c2 --- /dev/null +++ b/dist/services/TrackService.d.ts @@ -0,0 +1,47 @@ +import type { CreateTrack } from '../models/CreateTrack'; +import type { ResponseEmpty } from '../models/ResponseEmpty'; +import type { ResponseTrack } from '../models/ResponseTrack'; +import type { UpdateTrack } from '../models/UpdateTrack'; +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 UpdateTrack + * @returns ResponseTrack + * @throws ApiError + */ + static trackControllerPut(id: number, requestBody?: UpdateTrack): 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 new file mode 100644 index 0000000..58e48d0 --- /dev/null +++ b/dist/services/TrackService.js @@ -0,0 +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. + * @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 UpdateTrack + * @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 new file mode 100644 index 0000000..9e9146d --- /dev/null +++ b/dist/services/UserGroupService.d.ts @@ -0,0 +1,49 @@ +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 new file mode 100644 index 0000000..743412a --- /dev/null +++ b/dist/services/UserGroupService.js @@ -0,0 +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 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 new file mode 100644 index 0000000..d16eece --- /dev/null +++ b/dist/services/UserService.d.ts @@ -0,0 +1,49 @@ +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 new file mode 100644 index 0000000..12ef43a --- /dev/null +++ b/dist/services/UserService.js @@ -0,0 +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.
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 b8990c9..1931a81 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","STATSCLIENT","DONOR"],"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"]}},"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":{}} \ 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","DONOR"],"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"]},"DonorNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"DonorIdsNotMatchingError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"DonorReceiptAddressNeededError":{"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"]},"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"]},"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"]},"Donor":{"properties":{"receiptNeeded":{"type":"boolean"},"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":["receiptNeeded","id","firstname","lastname"]},"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"]},"CreateDonor":{"properties":{"receiptNeeded":{"type":"boolean"},"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"]},"UpdateDonor":{"properties":{"id":{"type":"integer"},"receiptNeeded":{"type":"boolean"},"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","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"]},"ResponseDonor":{"properties":{"receiptNeeded":{"type":"boolean"},"id":{"type":"integer"},"firstname":{"type":"string"},"middlename":{"type":"string"},"lastname":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"}},"type":"object","required":["receiptNeeded","id","firstname","middlename","lastname","phone","email"]},"ResponseEmpty":{"properties":{"response":{"type":"string"}},"type":"object","required":["response"]},"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"]},"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"},"minimumLapTime":{"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"]},"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"]},"ResponseRunner":{"properties":{"distance":{"type":"integer"},"group":{"type":"object"},"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":{"type":"object"},"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"]},"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","DONOR"],"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":"object"},"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":"object"},"target":{"enum":["RUNNER","ORGANISATION","TEAM","TRACK","USER","USERGROUP","PERMISSION","STATSCLIENT","DONOR"],"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":{"type":"object"}},"type":"object","required":["id","name"]},"ResponseRunnerOrganisation":{"properties":{"address":{"type":"object"},"teams":{"items":{},"type":"array"},"id":{"minLength":1,"type":"integer"},"name":{"minLength":1,"type":"string"},"contact":{"type":"object"}},"type":"object","required":["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":"object"},"name":{"type":"string","minLength":1},"contact":{"type":"integer"}},"type":"object","required":["id","parentGroup","name"]},"ResponseRunnerTeam":{"properties":{"parentGroup":{"minLength":1,"type":"object"},"id":{"minLength":1,"type":"integer"},"name":{"minLength":1,"type":"string"},"contact":{"type":"object"}},"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"]},"TrackLapTimeCantBeNegativeError":{"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":{"type":"object"}},"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":{"type":"object"}},"type":"object","required":["id","name","distance","donationAmount","parent"]},"CreateTrack":{"properties":{"name":{"minLength":1,"type":"string"},"distance":{"exclusiveMinimum":true,"minimum":0,"type":"integer"},"minimumLapTime":{"type":"integer"}},"type":"object","required":["name","distance"]},"UpdateTrack":{"properties":{"id":{"type":"integer"},"name":{"minLength":1,"type":"string"},"distance":{"exclusiveMinimum":true,"minimum":0,"type":"integer"},"minimumLapTime":{"type":"integer"}},"type":"object","required":["id","name","distance"]},"ResponseTrack":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"distance":{"type":"integer"},"minimumLapTime":{"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.8","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/donors":{"get":{"operationId":"DonorController.getAll","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseDonor"},"type":"array"}}},"description":""}},"summary":"Get all","tags":["Donor"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all runners from all teams/orgs.
This includes the runner's group and distance ran."},"post":{"operationId":"DonorController.post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDonor"}}},"description":"CreateDonor","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseDonor"}}},"description":""}},"summary":"Post","tags":["Donor"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create a new runner.
Please remeber to provide the runner's group's id."}},"/api/donors/{id}":{"get":{"operationId":"DonorController.getOne","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseDonor"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DonorNotFoundError"}}},"description":""}},"summary":"Get one","tags":["Donor"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all information about the runner whose id got provided."},"put":{"operationId":"DonorController.put","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDonor"}}},"description":"UpdateDonor","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseDonor"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DonorNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DonorIdsNotMatchingError"}}},"description":""}},"summary":"Put","tags":["Donor"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Update the runner whose id you provided.
Please remember that ids can't be changed."},"delete":{"operationId":"DonorController.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/ResponseDonor"}}},"description":""},"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseEmpty"}}},"description":""}},"summary":"Remove","tags":["Donor"],"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":{"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":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackLapTimeCantBeNegativeError"}}},"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/UpdateTrack"}}},"description":"UpdateTrack","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":{"oneOf":[{"$ref":"#/components/schemas/TrackIdsNotMatchingError"},{"$ref":"#/components/schemas/TrackLapTimeCantBeNegativeError"}]}}},"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 45c286c..8403020 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.7", + "version": "0.0.8", "license": "CC-BY-NC-SA-4.0", "main": "./dist/index.js", "types": "./dist/index.d.ts",