diff --git a/dist/index.d.ts b/dist/index.d.ts index 802e65f..0e3406f 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1,116 +1,23 @@ export { ApiError } from './core/ApiError'; export { OpenAPI } from './core/OpenAPI'; -export type { Address } from './models/Address'; -export type { AddressNotFoundError } from './models/AddressNotFoundError'; -export type { AddressWrongTypeError } from './models/AddressWrongTypeError'; -export type { Auth } from './models/Auth'; -export type { CreateAuth } from './models/CreateAuth'; -export type { CreateParticipant } from './models/CreateParticipant'; -export { CreatePermission } from './models/CreatePermission'; -export type { CreateResetToken } from './models/CreateResetToken'; -export type { CreateRunner } from './models/CreateRunner'; -export type { CreateRunnerGroup } from './models/CreateRunnerGroup'; -export type { CreateRunnerOrganisation } from './models/CreateRunnerOrganisation'; -export type { CreateRunnerTeam } from './models/CreateRunnerTeam'; -export type { CreateStatsClient } from './models/CreateStatsClient'; -export type { CreateTrack } from './models/CreateTrack'; -export type { CreateUser } from './models/CreateUser'; -export type { CreateUserGroup } from './models/CreateUserGroup'; -export type { DistanceDonation } from './models/DistanceDonation'; -export type { Donation } from './models/Donation'; -export type { GroupContact } from './models/GroupContact'; -export type { GroupContactNotFoundError } from './models/GroupContactNotFoundError'; -export type { GroupContactWrongTypeError } from './models/GroupContactWrongTypeError'; -export type { GroupNameNeededError } from './models/GroupNameNeededError'; -export type { HandleLogout } from './models/HandleLogout'; export type { IllegalJWTError } from './models/IllegalJWTError'; -export type { ImportRunner } from './models/ImportRunner'; export type { InvalidCredentialsError } from './models/InvalidCredentialsError'; export type { JwtNotProvidedError } from './models/JwtNotProvidedError'; export type { JwtUser } from './models/JwtUser'; -export type { Logout } from './models/Logout'; export type { NoPermissionError } from './models/NoPermissionError'; -export type { Participant } from './models/Participant'; export type { PasswordNeededError } from './models/PasswordNeededError'; export { Permission } from './models/Permission'; -export type { PermissionIdsNotMatchingError } from './models/PermissionIdsNotMatchingError'; -export type { PermissionNeedsPrincipalError } from './models/PermissionNeedsPrincipalError'; -export type { PermissionNotFoundError } from './models/PermissionNotFoundError'; export type { Principal } from './models/Principal'; -export type { PrincipalNotFoundError } from './models/PrincipalNotFoundError'; -export type { PrincipalWrongTypeError } from './models/PrincipalWrongTypeError'; -export type { RefreshAuth } from './models/RefreshAuth'; export type { RefreshTokenCountInvalidError } from './models/RefreshTokenCountInvalidError'; export type { ResetAlreadyRequestedError } from './models/ResetAlreadyRequestedError'; -export type { ResetPassword } from './models/ResetPassword'; -export type { ResponseEmpty } from './models/ResponseEmpty'; -export type { ResponseParticipant } from './models/ResponseParticipant'; -export { ResponsePermission } from './models/ResponsePermission'; export type { ResponsePrincipal } from './models/ResponsePrincipal'; -export type { ResponseRunner } from './models/ResponseRunner'; -export type { ResponseRunnerGroup } from './models/ResponseRunnerGroup'; -export type { ResponseRunnerOrganisation } from './models/ResponseRunnerOrganisation'; -export type { ResponseRunnerTeam } from './models/ResponseRunnerTeam'; -export type { ResponseStats } from './models/ResponseStats'; -export type { ResponseStatsClient } from './models/ResponseStatsClient'; -export type { ResponseStatsOrgnisation } from './models/ResponseStatsOrgnisation'; -export type { ResponseStatsRunner } from './models/ResponseStatsRunner'; -export type { ResponseStatsTeam } from './models/ResponseStatsTeam'; -export type { ResponseTrack } from './models/ResponseTrack'; export type { ResponseUser } from './models/ResponseUser'; export type { ResponseUserGroup } from './models/ResponseUserGroup'; -export type { Runner } from './models/Runner'; -export type { RunnerCard } from './models/RunnerCard'; -export type { RunnerGroup } from './models/RunnerGroup'; -export type { RunnerGroupNeededError } from './models/RunnerGroupNeededError'; -export type { RunnerGroupNotFoundError } from './models/RunnerGroupNotFoundError'; -export type { RunnerIdsNotMatchingError } from './models/RunnerIdsNotMatchingError'; -export type { RunnerNotFoundError } from './models/RunnerNotFoundError'; -export type { RunnerOrganisation } from './models/RunnerOrganisation'; -export type { RunnerOrganisationHasRunnersError } from './models/RunnerOrganisationHasRunnersError'; -export type { RunnerOrganisationHasTeamsError } from './models/RunnerOrganisationHasTeamsError'; -export type { RunnerOrganisationIdsNotMatchingError } from './models/RunnerOrganisationIdsNotMatchingError'; -export type { RunnerOrganisationNotFoundError } from './models/RunnerOrganisationNotFoundError'; -export type { RunnerOrganisationWrongTypeError } from './models/RunnerOrganisationWrongTypeError'; -export type { RunnerTeam } from './models/RunnerTeam'; -export type { RunnerTeamHasRunnersError } from './models/RunnerTeamHasRunnersError'; -export type { RunnerTeamIdsNotMatchingError } from './models/RunnerTeamIdsNotMatchingError'; -export type { RunnerTeamNeedsParentError } from './models/RunnerTeamNeedsParentError'; -export type { RunnerTeamNotFoundError } from './models/RunnerTeamNotFoundError'; -export type { Scan } from './models/Scan'; -export type { ScanStation } from './models/ScanStation'; -export type { StatsClient } from './models/StatsClient'; -export type { StatsClientIdsNotMatchingError } from './models/StatsClientIdsNotMatchingError'; -export type { StatsClientNotFoundError } from './models/StatsClientNotFoundError'; -export type { Track } from './models/Track'; -export type { TrackIdsNotMatchingError } from './models/TrackIdsNotMatchingError'; -export type { TrackNotFoundError } from './models/TrackNotFoundError'; -export type { TrackScan } from './models/TrackScan'; -export type { UpdatePermission } from './models/UpdatePermission'; -export type { UpdateRunner } from './models/UpdateRunner'; -export type { UpdateRunnerOrganisation } from './models/UpdateRunnerOrganisation'; -export type { UpdateRunnerTeam } from './models/UpdateRunnerTeam'; -export type { UpdateUser } from './models/UpdateUser'; export type { User } from './models/User'; export { UserAction } from './models/UserAction'; export type { UserDisabledError } from './models/UserDisabledError'; export type { UserGroup } from './models/UserGroup'; -export type { UserGroupIdsNotMatchingError } from './models/UserGroupIdsNotMatchingError'; -export type { UserGroupNotFoundError } from './models/UserGroupNotFoundError'; -export type { UserIdsNotMatchingError } from './models/UserIdsNotMatchingError'; export type { UsernameOrEmailNeededError } from './models/UsernameOrEmailNeededError'; export type { UserNonexistantOrRefreshtokenInvalidError } from './models/UserNonexistantOrRefreshtokenInvalidError'; export type { UserNotFoundError } from './models/UserNotFoundError'; export type { UserNotFoundOrRefreshTokenCountInvalidError } from './models/UserNotFoundOrRefreshTokenCountInvalidError'; -export { AuthService } from './services/AuthService'; -export { ImportService } from './services/ImportService'; -export { PermissionService } from './services/PermissionService'; -export { RunnerOrganisationService } from './services/RunnerOrganisationService'; -export { RunnerService } from './services/RunnerService'; -export { RunnerTeamService } from './services/RunnerTeamService'; -export { StatsClientService } from './services/StatsClientService'; -export { StatsService } from './services/StatsService'; -export { StatusService } from './services/StatusService'; -export { TrackService } from './services/TrackService'; -export { UserGroupService } from './services/UserGroupService'; -export { UserService } from './services/UserService'; diff --git a/dist/index.js b/dist/index.js index a811ee8..f967770 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,6 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.UserService = exports.UserGroupService = exports.TrackService = exports.StatusService = exports.StatsService = exports.StatsClientService = exports.RunnerTeamService = exports.RunnerService = exports.RunnerOrganisationService = exports.PermissionService = exports.ImportService = exports.AuthService = exports.UserAction = exports.ResponsePermission = exports.Permission = exports.CreatePermission = exports.OpenAPI = exports.ApiError = void 0; +exports.UserAction = exports.Permission = exports.OpenAPI = exports.ApiError = void 0; /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ @@ -8,35 +8,7 @@ var ApiError_1 = require("./core/ApiError"); Object.defineProperty(exports, "ApiError", { enumerable: true, get: function () { return ApiError_1.ApiError; } }); var OpenAPI_1 = require("./core/OpenAPI"); Object.defineProperty(exports, "OpenAPI", { enumerable: true, get: function () { return OpenAPI_1.OpenAPI; } }); -var CreatePermission_1 = require("./models/CreatePermission"); -Object.defineProperty(exports, "CreatePermission", { enumerable: true, get: function () { return CreatePermission_1.CreatePermission; } }); var Permission_1 = require("./models/Permission"); Object.defineProperty(exports, "Permission", { enumerable: true, get: function () { return Permission_1.Permission; } }); -var ResponsePermission_1 = require("./models/ResponsePermission"); -Object.defineProperty(exports, "ResponsePermission", { enumerable: true, get: function () { return ResponsePermission_1.ResponsePermission; } }); var UserAction_1 = require("./models/UserAction"); Object.defineProperty(exports, "UserAction", { enumerable: true, get: function () { return UserAction_1.UserAction; } }); -var AuthService_1 = require("./services/AuthService"); -Object.defineProperty(exports, "AuthService", { enumerable: true, get: function () { return AuthService_1.AuthService; } }); -var ImportService_1 = require("./services/ImportService"); -Object.defineProperty(exports, "ImportService", { enumerable: true, get: function () { return ImportService_1.ImportService; } }); -var PermissionService_1 = require("./services/PermissionService"); -Object.defineProperty(exports, "PermissionService", { enumerable: true, get: function () { return PermissionService_1.PermissionService; } }); -var RunnerOrganisationService_1 = require("./services/RunnerOrganisationService"); -Object.defineProperty(exports, "RunnerOrganisationService", { enumerable: true, get: function () { return RunnerOrganisationService_1.RunnerOrganisationService; } }); -var RunnerService_1 = require("./services/RunnerService"); -Object.defineProperty(exports, "RunnerService", { enumerable: true, get: function () { return RunnerService_1.RunnerService; } }); -var RunnerTeamService_1 = require("./services/RunnerTeamService"); -Object.defineProperty(exports, "RunnerTeamService", { enumerable: true, get: function () { return RunnerTeamService_1.RunnerTeamService; } }); -var StatsClientService_1 = require("./services/StatsClientService"); -Object.defineProperty(exports, "StatsClientService", { enumerable: true, get: function () { return StatsClientService_1.StatsClientService; } }); -var StatsService_1 = require("./services/StatsService"); -Object.defineProperty(exports, "StatsService", { enumerable: true, get: function () { return StatsService_1.StatsService; } }); -var StatusService_1 = require("./services/StatusService"); -Object.defineProperty(exports, "StatusService", { enumerable: true, get: function () { return StatusService_1.StatusService; } }); -var TrackService_1 = require("./services/TrackService"); -Object.defineProperty(exports, "TrackService", { enumerable: true, get: function () { return TrackService_1.TrackService; } }); -var UserGroupService_1 = require("./services/UserGroupService"); -Object.defineProperty(exports, "UserGroupService", { enumerable: true, get: function () { return UserGroupService_1.UserGroupService; } }); -var UserService_1 = require("./services/UserService"); -Object.defineProperty(exports, "UserService", { enumerable: true, get: function () { return UserService_1.UserService; } }); diff --git a/dist/models/Address.d.ts b/dist/models/Address.d.ts deleted file mode 100644 index 5e87a4c..0000000 --- a/dist/models/Address.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -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 deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/Address.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 76b5091..0000000 --- a/dist/models/AddressNotFoundError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type AddressNotFoundError = { - name: string; - message: string; -}; diff --git a/dist/models/AddressNotFoundError.js b/dist/models/AddressNotFoundError.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/AddressNotFoundError.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index a5bedac..0000000 --- a/dist/models/AddressWrongTypeError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type AddressWrongTypeError = { - name: string; - message: string; -}; diff --git a/dist/models/AddressWrongTypeError.js b/dist/models/AddressWrongTypeError.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/AddressWrongTypeError.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 6af61d8..0000000 --- a/dist/models/Auth.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -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 deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/Auth.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index be72ec6..0000000 --- a/dist/models/CreateAuth.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export declare type CreateAuth = { - username?: string; - email?: string; - password: string; -}; diff --git a/dist/models/CreateAuth.js b/dist/models/CreateAuth.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/CreateAuth.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 248394a..0000000 --- a/dist/models/CreateParticipant.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/CreateParticipant.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 0842eef..0000000 --- a/dist/models/CreatePermission.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -export declare type CreatePermission = { - principal: number; - target: CreatePermission.target; - action: CreatePermission.action; -}; -export declare namespace CreatePermission { - enum target { - RUNNER = "RUNNER", - ORGANISATION = "ORGANISATION", - TEAM = "TEAM", - TRACK = "TRACK", - USER = "USER", - USERGROUP = "USERGROUP", - PERMISSION = "PERMISSION", - STATSCLIENT = "STATSCLIENT" - } - enum action { - GET = "GET", - CREATE = "CREATE", - UPDATE = "UPDATE", - DELETE = "DELETE", - IMPORT = "IMPORT" - } -} diff --git a/dist/models/CreatePermission.js b/dist/models/CreatePermission.js deleted file mode 100644 index 45f8b6d..0000000 --- a/dist/models/CreatePermission.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CreatePermission = void 0; -var CreatePermission; -(function (CreatePermission) { - let target; - (function (target) { - target["RUNNER"] = "RUNNER"; - target["ORGANISATION"] = "ORGANISATION"; - target["TEAM"] = "TEAM"; - target["TRACK"] = "TRACK"; - target["USER"] = "USER"; - target["USERGROUP"] = "USERGROUP"; - target["PERMISSION"] = "PERMISSION"; - target["STATSCLIENT"] = "STATSCLIENT"; - })(target = CreatePermission.target || (CreatePermission.target = {})); - let action; - (function (action) { - action["GET"] = "GET"; - action["CREATE"] = "CREATE"; - action["UPDATE"] = "UPDATE"; - action["DELETE"] = "DELETE"; - action["IMPORT"] = "IMPORT"; - })(action = CreatePermission.action || (CreatePermission.action = {})); -})(CreatePermission = exports.CreatePermission || (exports.CreatePermission = {})); diff --git a/dist/models/CreateResetToken.d.ts b/dist/models/CreateResetToken.d.ts deleted file mode 100644 index 364041f..0000000 --- a/dist/models/CreateResetToken.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type CreateResetToken = { - username?: string; - email?: string; -}; diff --git a/dist/models/CreateResetToken.js b/dist/models/CreateResetToken.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/CreateResetToken.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 53849d5..0000000 --- a/dist/models/CreateRunner.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -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 deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/CreateRunner.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 1eb3d0f..0000000 --- a/dist/models/CreateRunnerGroup.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type CreateRunnerGroup = { - name: string; - contact?: number; -}; diff --git a/dist/models/CreateRunnerGroup.js b/dist/models/CreateRunnerGroup.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/CreateRunnerGroup.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 1382366..0000000 --- a/dist/models/CreateRunnerOrganisation.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export declare type CreateRunnerOrganisation = { - address?: number; - name: string; - contact?: number; -}; diff --git a/dist/models/CreateRunnerOrganisation.js b/dist/models/CreateRunnerOrganisation.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/CreateRunnerOrganisation.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index afe890c..0000000 --- a/dist/models/CreateRunnerTeam.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export declare type CreateRunnerTeam = { - parentGroup: number; - name: string; - contact?: number; -}; diff --git a/dist/models/CreateRunnerTeam.js b/dist/models/CreateRunnerTeam.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/CreateRunnerTeam.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 06f223c..0000000 --- a/dist/models/CreateStatsClient.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export declare type CreateStatsClient = { - description?: string; -}; diff --git a/dist/models/CreateStatsClient.js b/dist/models/CreateStatsClient.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/CreateStatsClient.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index af41510..0000000 --- a/dist/models/CreateTrack.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type CreateTrack = { - name: string; - distance: number; -}; diff --git a/dist/models/CreateTrack.js b/dist/models/CreateTrack.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/CreateTrack.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index d557e4c..0000000 --- a/dist/models/CreateUser.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -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 deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/CreateUser.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 9e9788a..0000000 --- a/dist/models/CreateUserGroup.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type CreateUserGroup = { - name: string; - description?: string; -}; diff --git a/dist/models/CreateUserGroup.js b/dist/models/CreateUserGroup.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/CreateUserGroup.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 274ffd3..0000000 --- a/dist/models/DistanceDonation.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export declare type DistanceDonation = { - runner: string; - amountPerDistance: number; - id: number; - donor: string; -}; diff --git a/dist/models/DistanceDonation.js b/dist/models/DistanceDonation.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/DistanceDonation.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index b78aa6b..0000000 --- a/dist/models/Donation.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type Donation = { - id: number; - donor: string; -}; diff --git a/dist/models/Donation.js b/dist/models/Donation.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/Donation.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 2f739c3..0000000 --- a/dist/models/GroupContact.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -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 deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/GroupContact.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 5eb718c..0000000 --- a/dist/models/GroupContactNotFoundError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type GroupContactNotFoundError = { - name: string; - message: string; -}; diff --git a/dist/models/GroupContactNotFoundError.js b/dist/models/GroupContactNotFoundError.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/GroupContactNotFoundError.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 28c612f..0000000 --- a/dist/models/GroupContactWrongTypeError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type GroupContactWrongTypeError = { - name: string; - message: string; -}; diff --git a/dist/models/GroupContactWrongTypeError.js b/dist/models/GroupContactWrongTypeError.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/GroupContactWrongTypeError.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 6e6954c..0000000 --- a/dist/models/GroupNameNeededError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type GroupNameNeededError = { - name: string; - message: string; -}; diff --git a/dist/models/GroupNameNeededError.js b/dist/models/GroupNameNeededError.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/GroupNameNeededError.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index e9cf7c8..0000000 --- a/dist/models/HandleLogout.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export declare type HandleLogout = { - token?: string; -}; diff --git a/dist/models/HandleLogout.js b/dist/models/HandleLogout.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/HandleLogout.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 8bd356b..0000000 --- a/dist/models/ImportRunner.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -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 deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/ImportRunner.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index ea7adfa..0000000 --- a/dist/models/Logout.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export declare type Logout = { - timestamp: string; -}; diff --git a/dist/models/Logout.js b/dist/models/Logout.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/Logout.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 1beca73..0000000 --- a/dist/models/Participant.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/Participant.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/models/Permission.d.ts b/dist/models/Permission.d.ts index 3039bcf..667ae0d 100644 --- a/dist/models/Permission.d.ts +++ b/dist/models/Permission.d.ts @@ -12,7 +12,8 @@ export declare namespace Permission { USER = "USER", USERGROUP = "USERGROUP", PERMISSION = "PERMISSION", - STATSCLIENT = "STATSCLIENT" + STATSCLIENT = "STATSCLIENT", + DONOR = "DONOR" } enum action { GET = "GET", diff --git a/dist/models/Permission.js b/dist/models/Permission.js index 8af8e46..472114e 100644 --- a/dist/models/Permission.js +++ b/dist/models/Permission.js @@ -16,6 +16,7 @@ var Permission; target["USERGROUP"] = "USERGROUP"; target["PERMISSION"] = "PERMISSION"; target["STATSCLIENT"] = "STATSCLIENT"; + target["DONOR"] = "DONOR"; })(target = Permission.target || (Permission.target = {})); let action; (function (action) { diff --git a/dist/models/PermissionIdsNotMatchingError.d.ts b/dist/models/PermissionIdsNotMatchingError.d.ts deleted file mode 100644 index 8f35772..0000000 --- a/dist/models/PermissionIdsNotMatchingError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type PermissionIdsNotMatchingError = { - name: string; - message: string; -}; diff --git a/dist/models/PermissionIdsNotMatchingError.js b/dist/models/PermissionIdsNotMatchingError.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/PermissionIdsNotMatchingError.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index d5faa38..0000000 --- a/dist/models/PermissionNeedsPrincipalError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type PermissionNeedsPrincipalError = { - name: string; - message: string; -}; diff --git a/dist/models/PermissionNeedsPrincipalError.js b/dist/models/PermissionNeedsPrincipalError.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/PermissionNeedsPrincipalError.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 43509a0..0000000 --- a/dist/models/PermissionNotFoundError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type PermissionNotFoundError = { - name: string; - message: string; -}; diff --git a/dist/models/PermissionNotFoundError.js b/dist/models/PermissionNotFoundError.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/PermissionNotFoundError.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 7879adb..0000000 --- a/dist/models/PrincipalNotFoundError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type PrincipalNotFoundError = { - name: string; - message: string; -}; diff --git a/dist/models/PrincipalNotFoundError.js b/dist/models/PrincipalNotFoundError.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/PrincipalNotFoundError.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 72f0e6c..0000000 --- a/dist/models/PrincipalWrongTypeError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type PrincipalWrongTypeError = { - name: string; - message: string; -}; diff --git a/dist/models/PrincipalWrongTypeError.js b/dist/models/PrincipalWrongTypeError.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/PrincipalWrongTypeError.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index a53922a..0000000 --- a/dist/models/RefreshAuth.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export declare type RefreshAuth = { - token?: string; -}; diff --git a/dist/models/RefreshAuth.js b/dist/models/RefreshAuth.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/RefreshAuth.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 759fc99..0000000 --- a/dist/models/ResetPassword.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type ResetPassword = { - resetToken?: string; - password: string; -}; diff --git a/dist/models/ResetPassword.js b/dist/models/ResetPassword.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/ResetPassword.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index e80f56c..0000000 --- a/dist/models/ResponseEmpty.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export declare type ResponseEmpty = { - response: string; -}; diff --git a/dist/models/ResponseEmpty.js b/dist/models/ResponseEmpty.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/ResponseEmpty.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index c1adc1b..0000000 --- a/dist/models/ResponseParticipant.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/ResponseParticipant.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 6c23dcd..0000000 --- a/dist/models/ResponsePermission.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import type { ResponsePrincipal } from './ResponsePrincipal'; -export declare type ResponsePermission = { - id: number; - principal: ResponsePrincipal; - target: ResponsePermission.target; - action: ResponsePermission.action; -}; -export declare namespace ResponsePermission { - enum target { - RUNNER = "RUNNER", - ORGANISATION = "ORGANISATION", - TEAM = "TEAM", - TRACK = "TRACK", - USER = "USER", - USERGROUP = "USERGROUP", - PERMISSION = "PERMISSION", - STATSCLIENT = "STATSCLIENT" - } - enum action { - GET = "GET", - CREATE = "CREATE", - UPDATE = "UPDATE", - DELETE = "DELETE", - IMPORT = "IMPORT" - } -} diff --git a/dist/models/ResponsePermission.js b/dist/models/ResponsePermission.js deleted file mode 100644 index 54c4010..0000000 --- a/dist/models/ResponsePermission.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -/* istanbul ignore file */ -/* tslint:disable */ -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ResponsePermission = void 0; -var ResponsePermission; -(function (ResponsePermission) { - let target; - (function (target) { - target["RUNNER"] = "RUNNER"; - target["ORGANISATION"] = "ORGANISATION"; - target["TEAM"] = "TEAM"; - target["TRACK"] = "TRACK"; - target["USER"] = "USER"; - target["USERGROUP"] = "USERGROUP"; - target["PERMISSION"] = "PERMISSION"; - target["STATSCLIENT"] = "STATSCLIENT"; - })(target = ResponsePermission.target || (ResponsePermission.target = {})); - let action; - (function (action) { - action["GET"] = "GET"; - action["CREATE"] = "CREATE"; - action["UPDATE"] = "UPDATE"; - action["DELETE"] = "DELETE"; - action["IMPORT"] = "IMPORT"; - })(action = ResponsePermission.action || (ResponsePermission.action = {})); -})(ResponsePermission = exports.ResponsePermission || (exports.ResponsePermission = {})); diff --git a/dist/models/ResponseRunner.d.ts b/dist/models/ResponseRunner.d.ts deleted file mode 100644 index 6610270..0000000 --- a/dist/models/ResponseRunner.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type { RunnerGroup } from './RunnerGroup'; -export declare type ResponseRunner = { - distance: number; - group: RunnerGroup; - id: number; - firstname: string; - middlename: string; - lastname: string; - phone: string; - email: string; -}; diff --git a/dist/models/ResponseRunner.js b/dist/models/ResponseRunner.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/ResponseRunner.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index dcdcbfa..0000000 --- a/dist/models/ResponseRunnerGroup.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { GroupContact } from './GroupContact'; -export declare type ResponseRunnerGroup = { - id: number; - name: string; - contact?: GroupContact; -}; diff --git a/dist/models/ResponseRunnerGroup.js b/dist/models/ResponseRunnerGroup.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/ResponseRunnerGroup.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 1ce4cb5..0000000 --- a/dist/models/ResponseRunnerOrganisation.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { Address } from './Address'; -import type { GroupContact } from './GroupContact'; -export declare type ResponseRunnerOrganisation = { - address: Address; - teams: Array; - id: number; - name: string; - contact?: GroupContact; -}; diff --git a/dist/models/ResponseRunnerOrganisation.js b/dist/models/ResponseRunnerOrganisation.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/ResponseRunnerOrganisation.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 8ca0aa2..0000000 --- a/dist/models/ResponseRunnerTeam.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { GroupContact } from './GroupContact'; -import type { RunnerOrganisation } from './RunnerOrganisation'; -export declare type ResponseRunnerTeam = { - parentGroup: RunnerOrganisation; - id: number; - name: string; - contact?: GroupContact; -}; diff --git a/dist/models/ResponseRunnerTeam.js b/dist/models/ResponseRunnerTeam.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/ResponseRunnerTeam.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index e81c7ac..0000000 --- a/dist/models/ResponseStats.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -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 deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/ResponseStats.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 75b1aff..0000000 --- a/dist/models/ResponseStatsClient.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export declare type ResponseStatsClient = { - id: number; - description?: string; - key?: string; - prefix: string; -}; diff --git a/dist/models/ResponseStatsClient.js b/dist/models/ResponseStatsClient.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/ResponseStatsClient.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 0e23a8a..0000000 --- a/dist/models/ResponseStatsOrgnisation.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export declare type ResponseStatsOrgnisation = { - id: number; - name: string; - distance: number; - donationAmount: number; -}; diff --git a/dist/models/ResponseStatsOrgnisation.js b/dist/models/ResponseStatsOrgnisation.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/ResponseStatsOrgnisation.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index fecf769..0000000 --- a/dist/models/ResponseStatsRunner.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { RunnerGroup } from './RunnerGroup'; -export declare type ResponseStatsRunner = { - id: number; - firstname: string; - middlename: string; - lastname: string; - distance: number; - donationAmount: number; - group: RunnerGroup; -}; diff --git a/dist/models/ResponseStatsRunner.js b/dist/models/ResponseStatsRunner.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/ResponseStatsRunner.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 2f786ca..0000000 --- a/dist/models/ResponseStatsTeam.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { RunnerGroup } from './RunnerGroup'; -export declare type ResponseStatsTeam = { - id: number; - name: string; - distance: number; - donationAmount: number; - parent: RunnerGroup; -}; diff --git a/dist/models/ResponseStatsTeam.js b/dist/models/ResponseStatsTeam.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/ResponseStatsTeam.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 3fc8129..0000000 --- a/dist/models/ResponseTrack.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export declare type ResponseTrack = { - id: number; - name: string; - distance: number; -}; diff --git a/dist/models/ResponseTrack.js b/dist/models/ResponseTrack.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/ResponseTrack.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 5f0a0f2..0000000 --- a/dist/models/Runner.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -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 deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/Runner.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index ca8c342..0000000 --- a/dist/models/RunnerCard.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export declare type RunnerCard = { - id: number; - runner?: any; - code: string; - enabled: boolean; -}; diff --git a/dist/models/RunnerCard.js b/dist/models/RunnerCard.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/RunnerCard.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 68a4740..0000000 --- a/dist/models/RunnerGroup.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -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 deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/RunnerGroup.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 76d28a3..0000000 --- a/dist/models/RunnerGroupNeededError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type RunnerGroupNeededError = { - name: string; - message: string; -}; diff --git a/dist/models/RunnerGroupNeededError.js b/dist/models/RunnerGroupNeededError.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/RunnerGroupNeededError.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 58522bf..0000000 --- a/dist/models/RunnerGroupNotFoundError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type RunnerGroupNotFoundError = { - name: string; - message: string; -}; diff --git a/dist/models/RunnerGroupNotFoundError.js b/dist/models/RunnerGroupNotFoundError.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/RunnerGroupNotFoundError.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 406e8ef..0000000 --- a/dist/models/RunnerIdsNotMatchingError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type RunnerIdsNotMatchingError = { - name: string; - message: string; -}; diff --git a/dist/models/RunnerIdsNotMatchingError.js b/dist/models/RunnerIdsNotMatchingError.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/RunnerIdsNotMatchingError.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 864be4f..0000000 --- a/dist/models/RunnerNotFoundError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type RunnerNotFoundError = { - name: string; - message: string; -}; diff --git a/dist/models/RunnerNotFoundError.js b/dist/models/RunnerNotFoundError.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/RunnerNotFoundError.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 27d8c35..0000000 --- a/dist/models/RunnerOrganisation.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/RunnerOrganisation.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index e7e206f..0000000 --- a/dist/models/RunnerOrganisationHasRunnersError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type RunnerOrganisationHasRunnersError = { - name: string; - message: string; -}; diff --git a/dist/models/RunnerOrganisationHasRunnersError.js b/dist/models/RunnerOrganisationHasRunnersError.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/RunnerOrganisationHasRunnersError.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 3a18223..0000000 --- a/dist/models/RunnerOrganisationHasTeamsError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type RunnerOrganisationHasTeamsError = { - name: string; - message: string; -}; diff --git a/dist/models/RunnerOrganisationHasTeamsError.js b/dist/models/RunnerOrganisationHasTeamsError.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/RunnerOrganisationHasTeamsError.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 2c09ee6..0000000 --- a/dist/models/RunnerOrganisationIdsNotMatchingError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type RunnerOrganisationIdsNotMatchingError = { - name: string; - message: string; -}; diff --git a/dist/models/RunnerOrganisationIdsNotMatchingError.js b/dist/models/RunnerOrganisationIdsNotMatchingError.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/RunnerOrganisationIdsNotMatchingError.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 165d97d..0000000 --- a/dist/models/RunnerOrganisationNotFoundError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type RunnerOrganisationNotFoundError = { - name: string; - message: string; -}; diff --git a/dist/models/RunnerOrganisationNotFoundError.js b/dist/models/RunnerOrganisationNotFoundError.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/RunnerOrganisationNotFoundError.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 6f581f5..0000000 --- a/dist/models/RunnerOrganisationWrongTypeError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type RunnerOrganisationWrongTypeError = { - name: string; - message: string; -}; diff --git a/dist/models/RunnerOrganisationWrongTypeError.js b/dist/models/RunnerOrganisationWrongTypeError.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/RunnerOrganisationWrongTypeError.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 59656f8..0000000 --- a/dist/models/RunnerTeam.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/RunnerTeam.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index d0fd4a8..0000000 --- a/dist/models/RunnerTeamHasRunnersError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type RunnerTeamHasRunnersError = { - name: string; - message: string; -}; diff --git a/dist/models/RunnerTeamHasRunnersError.js b/dist/models/RunnerTeamHasRunnersError.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/RunnerTeamHasRunnersError.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 2c209b9..0000000 --- a/dist/models/RunnerTeamIdsNotMatchingError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type RunnerTeamIdsNotMatchingError = { - name: string; - message: string; -}; diff --git a/dist/models/RunnerTeamIdsNotMatchingError.js b/dist/models/RunnerTeamIdsNotMatchingError.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/RunnerTeamIdsNotMatchingError.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 4feac81..0000000 --- a/dist/models/RunnerTeamNeedsParentError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type RunnerTeamNeedsParentError = { - name: string; - message: string; -}; diff --git a/dist/models/RunnerTeamNeedsParentError.js b/dist/models/RunnerTeamNeedsParentError.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/RunnerTeamNeedsParentError.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 4844b93..0000000 --- a/dist/models/RunnerTeamNotFoundError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type RunnerTeamNotFoundError = { - name: string; - message: string; -}; diff --git a/dist/models/RunnerTeamNotFoundError.js b/dist/models/RunnerTeamNotFoundError.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/RunnerTeamNotFoundError.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 78a570f..0000000 --- a/dist/models/Scan.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export declare type Scan = { - id: number; - runner: string; - distance: number; - valid: boolean; -}; diff --git a/dist/models/Scan.js b/dist/models/Scan.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/Scan.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 97092f2..0000000 --- a/dist/models/ScanStation.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -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 deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/ScanStation.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 6349ff5..0000000 --- a/dist/models/StatsClient.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -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 deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/StatsClient.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 81f7417..0000000 --- a/dist/models/StatsClientIdsNotMatchingError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type StatsClientIdsNotMatchingError = { - name: string; - message: string; -}; diff --git a/dist/models/StatsClientIdsNotMatchingError.js b/dist/models/StatsClientIdsNotMatchingError.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/StatsClientIdsNotMatchingError.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 38504d8..0000000 --- a/dist/models/StatsClientNotFoundError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type StatsClientNotFoundError = { - name: string; - message: string; -}; diff --git a/dist/models/StatsClientNotFoundError.js b/dist/models/StatsClientNotFoundError.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/StatsClientNotFoundError.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 3f51ef3..0000000 --- a/dist/models/Track.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export declare type Track = { - id: number; - name: string; - distance: number; -}; diff --git a/dist/models/Track.js b/dist/models/Track.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/Track.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 6d0a4f5..0000000 --- a/dist/models/TrackIdsNotMatchingError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type TrackIdsNotMatchingError = { - name: string; - message: string; -}; diff --git a/dist/models/TrackIdsNotMatchingError.js b/dist/models/TrackIdsNotMatchingError.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/TrackIdsNotMatchingError.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 2475604..0000000 --- a/dist/models/TrackNotFoundError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type TrackNotFoundError = { - name: string; - message: string; -}; diff --git a/dist/models/TrackNotFoundError.js b/dist/models/TrackNotFoundError.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/TrackNotFoundError.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 3b028c4..0000000 --- a/dist/models/TrackScan.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -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 deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/TrackScan.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index e7f2002..0000000 --- a/dist/models/UpdatePermission.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { Principal } from './Principal'; -export declare type UpdatePermission = { - id: number; - principal: Principal; - target: string; - action: string; -}; diff --git a/dist/models/UpdatePermission.js b/dist/models/UpdatePermission.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/UpdatePermission.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 2fe1c0d..0000000 --- a/dist/models/UpdateRunner.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type { RunnerGroup } from './RunnerGroup'; -export declare type UpdateRunner = { - id: number; - group: RunnerGroup; - firstname: string; - middlename?: string; - lastname: string; - phone?: string; - email?: string; - address?: number; -}; diff --git a/dist/models/UpdateRunner.js b/dist/models/UpdateRunner.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/UpdateRunner.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 9354c9b..0000000 --- a/dist/models/UpdateRunnerOrganisation.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export declare type UpdateRunnerOrganisation = { - id: number; - address?: number; - name: string; - contact?: number; -}; diff --git a/dist/models/UpdateRunnerOrganisation.js b/dist/models/UpdateRunnerOrganisation.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/UpdateRunnerOrganisation.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 921d39a..0000000 --- a/dist/models/UpdateRunnerTeam.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { RunnerOrganisation } from './RunnerOrganisation'; -export declare type UpdateRunnerTeam = { - id: number; - parentGroup: RunnerOrganisation; - name: string; - contact?: number; -}; diff --git a/dist/models/UpdateRunnerTeam.js b/dist/models/UpdateRunnerTeam.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/UpdateRunnerTeam.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index d658921..0000000 --- a/dist/models/UpdateUser.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -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 deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/UpdateUser.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 09101d8..0000000 --- a/dist/models/UserGroupIdsNotMatchingError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type UserGroupIdsNotMatchingError = { - name: string; - message: string; -}; diff --git a/dist/models/UserGroupIdsNotMatchingError.js b/dist/models/UserGroupIdsNotMatchingError.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/UserGroupIdsNotMatchingError.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 72ebe69..0000000 --- a/dist/models/UserGroupNotFoundError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type UserGroupNotFoundError = { - name: string; - message: string; -}; diff --git a/dist/models/UserGroupNotFoundError.js b/dist/models/UserGroupNotFoundError.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/UserGroupNotFoundError.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index 99b8e68..0000000 --- a/dist/models/UserIdsNotMatchingError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type UserIdsNotMatchingError = { - name: string; - message: string; -}; diff --git a/dist/models/UserIdsNotMatchingError.js b/dist/models/UserIdsNotMatchingError.js deleted file mode 100644 index 1e550d8..0000000 --- a/dist/models/UserIdsNotMatchingError.js +++ /dev/null @@ -1,5 +0,0 @@ -"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 deleted file mode 100644 index fd37314..0000000 --- a/dist/services/AuthService.d.ts +++ /dev/null @@ -1,61 +0,0 @@ -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 deleted file mode 100644 index 55fe198..0000000 --- a/dist/services/AuthService.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AuthService = void 0; -const request_1 = require("../core/request"); -class AuthService { - /** - * Login - * Login with your username/email and password.
You will receive: - * * access token (use it as a bearer token) - * * refresh token (will also be sent as a cookie) - * @param requestBody CreateAuth - * @returns any - * @throws ApiError - */ - static async authControllerLogin(requestBody) { - const result = await request_1.request({ - method: 'POST', - path: `/api/auth/login`, - body: requestBody, - }); - return result.body; - } - /** - * Logout - * Logout using your refresh token.
This instantly invalidates all your access and refresh tokens. - * @param requestBody HandleLogout - * @returns any - * @throws ApiError - */ - static async authControllerLogout(requestBody) { - const result = await request_1.request({ - method: 'POST', - path: `/api/auth/logout`, - body: requestBody, - }); - return result.body; - } - /** - * Refresh - * Refresh your access and refresh tokens using a valid refresh token.
You will receive: - * * access token (use it as a bearer token) - * * refresh token (will also be sent as a cookie) - * @param requestBody RefreshAuth - * @returns any - * @throws ApiError - */ - static async authControllerRefresh(requestBody) { - const result = await request_1.request({ - method: 'POST', - path: `/api/auth/refresh`, - body: requestBody, - }); - return result.body; - } - /** - * Get reset token - * Request a password reset token.
This will provide you with a reset token that you can use by posting to /api/auth/reset/{token}. - * @param requestBody CreateResetToken - * @returns any - * @throws ApiError - */ - static async authControllerGetResetToken(requestBody) { - const result = await request_1.request({ - method: 'POST', - path: `/api/auth/reset`, - body: requestBody, - }); - return result.body; - } - /** - * Reset password - * Reset a user's utilising a valid password reset token.
This will set the user's password to the one you provided in the body.
To get a reset token post to /api/auth/reset with your username. - * @param token - * @param requestBody ResetPassword - * @returns any - * @throws ApiError - */ - static async authControllerResetPassword(token, requestBody) { - const result = await request_1.request({ - method: 'POST', - path: `/api/auth/reset/${token}`, - body: requestBody, - }); - return result.body; - } -} -exports.AuthService = AuthService; diff --git a/dist/services/ImportService.d.ts b/dist/services/ImportService.d.ts deleted file mode 100644 index 3977284..0000000 --- a/dist/services/ImportService.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -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 deleted file mode 100644 index 7f22adc..0000000 --- a/dist/services/ImportService.js +++ /dev/null @@ -1,103 +0,0 @@ -"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 deleted file mode 100644 index 3092e86..0000000 --- a/dist/services/PermissionService.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -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 deleted file mode 100644 index 586f3bb..0000000 --- a/dist/services/PermissionService.js +++ /dev/null @@ -1,84 +0,0 @@ -"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 deleted file mode 100644 index 1a5015b..0000000 --- a/dist/services/RunnerOrganisationService.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -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 deleted file mode 100644 index 9665579..0000000 --- a/dist/services/RunnerOrganisationService.js +++ /dev/null @@ -1,84 +0,0 @@ -"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 deleted file mode 100644 index 1ae374f..0000000 --- a/dist/services/RunnerService.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -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 deleted file mode 100644 index fdb7abb..0000000 --- a/dist/services/RunnerService.js +++ /dev/null @@ -1,84 +0,0 @@ -"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 deleted file mode 100644 index 48d1213..0000000 --- a/dist/services/RunnerTeamService.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -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 deleted file mode 100644 index e20493a..0000000 --- a/dist/services/RunnerTeamService.js +++ /dev/null @@ -1,84 +0,0 @@ -"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 deleted file mode 100644 index 3919301..0000000 --- a/dist/services/StatsClientService.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -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 deleted file mode 100644 index ef405b4..0000000 --- a/dist/services/StatsClientService.js +++ /dev/null @@ -1,64 +0,0 @@ -"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 deleted file mode 100644 index f2cc469..0000000 --- a/dist/services/StatsService.d.ts +++ /dev/null @@ -1,62 +0,0 @@ -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 deleted file mode 100644 index 62dbb43..0000000 --- a/dist/services/StatsService.js +++ /dev/null @@ -1,111 +0,0 @@ -"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 deleted file mode 100644 index 7112de9..0000000 --- a/dist/services/StatusService.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -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 deleted file mode 100644 index 23edbb8..0000000 --- a/dist/services/StatusService.js +++ /dev/null @@ -1,23 +0,0 @@ -"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 deleted file mode 100644 index 9ea4361..0000000 --- a/dist/services/TrackService.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -import type { CreateTrack } from '../models/CreateTrack'; -import type { ResponseEmpty } from '../models/ResponseEmpty'; -import type { ResponseTrack } from '../models/ResponseTrack'; -import type { Track } from '../models/Track'; -export declare class TrackService { - /** - * Get all - * Lists all tracks. - * @returns ResponseTrack - * @throws ApiError - */ - static trackControllerGetAll(): Promise>; - /** - * Post - * Create a new track.
Please remember that the track's distance must be greater than 0. - * @param requestBody CreateTrack - * @returns ResponseTrack - * @throws ApiError - */ - static trackControllerPost(requestBody?: CreateTrack): Promise; - /** - * Get one - * Lists all information about the track whose id got provided. - * @param id - * @returns ResponseTrack - * @throws ApiError - */ - static trackControllerGetOne(id: number): Promise; - /** - * Put - * Update the track whose id you provided.
Please remember that ids can't be changed. - * @param id - * @param requestBody Track - * @returns ResponseTrack - * @throws ApiError - */ - static trackControllerPut(id: number, requestBody?: Track): Promise; - /** - * Remove - * Delete the track whose id you provided.
If no track with this id exists it will just return 204(no content). - * @param id - * @returns ResponseTrack - * @returns ResponseEmpty - * @throws ApiError - */ - static trackControllerRemove(id: number): Promise; -} diff --git a/dist/services/TrackService.js b/dist/services/TrackService.js deleted file mode 100644 index 373140b..0000000 --- a/dist/services/TrackService.js +++ /dev/null @@ -1,80 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TrackService = void 0; -const request_1 = require("../core/request"); -class TrackService { - /** - * Get all - * Lists all tracks. - * @returns ResponseTrack - * @throws ApiError - */ - static async trackControllerGetAll() { - const result = await request_1.request({ - method: 'GET', - path: `/api/tracks`, - }); - return result.body; - } - /** - * Post - * Create a new track.
Please remember that the track's distance must be greater than 0. - * @param requestBody CreateTrack - * @returns ResponseTrack - * @throws ApiError - */ - static async trackControllerPost(requestBody) { - const result = await request_1.request({ - method: 'POST', - path: `/api/tracks`, - body: requestBody, - }); - return result.body; - } - /** - * Get one - * Lists all information about the track whose id got provided. - * @param id - * @returns ResponseTrack - * @throws ApiError - */ - static async trackControllerGetOne(id) { - const result = await request_1.request({ - method: 'GET', - path: `/api/tracks/${id}`, - }); - return result.body; - } - /** - * Put - * Update the track whose id you provided.
Please remember that ids can't be changed. - * @param id - * @param requestBody Track - * @returns ResponseTrack - * @throws ApiError - */ - static async trackControllerPut(id, requestBody) { - const result = await request_1.request({ - method: 'PUT', - path: `/api/tracks/${id}`, - body: requestBody, - }); - return result.body; - } - /** - * Remove - * Delete the track whose id you provided.
If no track with this id exists it will just return 204(no content). - * @param id - * @returns ResponseTrack - * @returns ResponseEmpty - * @throws ApiError - */ - static async trackControllerRemove(id) { - const result = await request_1.request({ - method: 'DELETE', - path: `/api/tracks/${id}`, - }); - return result.body; - } -} -exports.TrackService = TrackService; diff --git a/dist/services/UserGroupService.d.ts b/dist/services/UserGroupService.d.ts deleted file mode 100644 index 9e9146d..0000000 --- a/dist/services/UserGroupService.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -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 deleted file mode 100644 index 743412a..0000000 --- a/dist/services/UserGroupService.js +++ /dev/null @@ -1,84 +0,0 @@ -"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 deleted file mode 100644 index d16eece..0000000 --- a/dist/services/UserService.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -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 deleted file mode 100644 index 12ef43a..0000000 --- a/dist/services/UserService.js +++ /dev/null @@ -1,84 +0,0 @@ -"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 ec3d5af..b8990c9 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"],"type":"string","minLength":1},"action":{"enum":["GET","CREATE","UPDATE","DELETE","IMPORT"],"type":"string"}},"type":"object","required":["id","target","action"]},"Principal":{"properties":{"id":{"type":"integer"}},"type":"object","required":["id"]},"UserAction":{"properties":{"id":{"type":"integer"},"target":{"type":"string","minLength":1},"action":{"enum":["GET","CREATE","UPDATE","DELETE","IMPORT"],"type":"string"},"changed":{"type":"string"}},"type":"object","required":["id","target","action"]},"ResponseUserGroup":{"properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"permissions":{"items":{},"type":"array"},"id":{"type":"integer"}},"type":"object","required":["name","id"]},"UserGroup":{"properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"id":{"type":"integer"}},"type":"object","required":["name","id"]},"User":{"properties":{"uuid":{"format":"uuid","type":"string"},"email":{"format":"email","type":"string"},"phone":{"type":"string"},"username":{"type":"string"},"firstname":{"minLength":1,"type":"string"},"middlename":{"type":"string"},"lastname":{"minLength":1,"type":"string"},"password":{"minLength":1,"type":"string"},"groups":{},"enabled":{"type":"boolean"},"refreshTokenCount":{"type":"integer"},"profilePic":{"type":"string"},"resetRequestedTimestamp":{"type":"string"},"actions":{},"id":{"type":"integer"}},"type":"object","required":["uuid","email","username","firstname","lastname","password","enabled","refreshTokenCount","id"]},"UserIdsNotMatchingError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"Auth":{"properties":{"access_token":{"type":"string"},"refresh_token":{"type":"string"},"access_token_expires_at":{"type":"integer"},"refresh_token_expires_at":{"type":"integer"}},"type":"object","required":["access_token","refresh_token","access_token_expires_at","refresh_token_expires_at"]},"CreateAuth":{"properties":{"username":{"type":"string"},"email":{"type":"string","format":"email"},"password":{"type":"string","minLength":1}},"type":"object","required":["password"]},"CreateResetToken":{"properties":{"username":{"type":"string"},"email":{"type":"string","format":"email"}},"type":"object"},"Logout":{"properties":{"timestamp":{"type":"string"}},"type":"object","required":["timestamp"]},"HandleLogout":{"properties":{"token":{"type":"string"}},"type":"object"},"RefreshAuth":{"properties":{"token":{"type":"string"}},"type":"object"},"ResetPassword":{"properties":{"resetToken":{"type":"string"},"password":{"type":"string","minLength":1}},"type":"object","required":["password"]},"RunnerNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerIdsNotMatchingError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerGroupNeededError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerGroupNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerOrganisationNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerOrganisationIdsNotMatchingError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerOrganisationHasRunnersError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerOrganisationHasTeamsError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerOrganisationWrongTypeError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"Donation":{"properties":{"id":{"type":"integer"},"donor":{"minLength":1,"type":"string"}},"type":"object","required":["id","donor"]},"Participant":{"properties":{"id":{"type":"integer"},"firstname":{"type":"string","minLength":1},"middlename":{"type":"string"},"lastname":{"type":"string","minLength":1},"phone":{"type":"string"},"email":{"format":"email","type":"string"}},"type":"object","required":["id","firstname","lastname"]},"Address":{"properties":{"id":{"type":"integer"},"description":{"type":"string"},"address1":{"minLength":1,"type":"string"},"address2":{"type":"string"},"postalcode":{"type":"string","minLength":1},"city":{"minLength":1,"type":"string"},"country":{"minLength":1,"type":"string"}},"type":"object","required":["id","address1","postalcode","city","country"]},"GroupContact":{"properties":{"id":{"type":"integer"},"firstname":{"type":"string","minLength":1},"middlename":{"type":"string"},"lastname":{"type":"string","minLength":1},"address":{},"phone":{"type":"string"},"email":{"format":"email","type":"string"}},"type":"object","required":["id","firstname","lastname"]},"DistanceDonation":{"properties":{"runner":{"minLength":1,"type":"string"},"amountPerDistance":{"exclusiveMinimum":true,"minimum":0,"type":"integer"},"id":{"type":"integer"},"donor":{"minLength":1,"type":"string"}},"type":"object","required":["runner","amountPerDistance","id","donor"]},"Scan":{"properties":{"id":{"type":"integer"},"runner":{"minLength":1,"type":"string"},"distance":{"exclusiveMinimum":true,"minimum":0,"type":"integer"},"valid":{"type":"boolean"}},"type":"object","required":["id","runner","distance","valid"]},"Track":{"properties":{"id":{"type":"integer"},"name":{"minLength":1,"type":"string"},"distance":{"exclusiveMinimum":true,"minimum":0,"type":"integer"}},"type":"object","required":["id","name","distance"]},"ScanStation":{"properties":{"id":{"type":"integer"},"description":{"type":"string"},"track":{"minLength":1,"type":"string"},"key":{"type":"string","minLength":1},"enabled":{"type":"boolean"}},"type":"object","required":["id","track","key","enabled"]},"TrackScan":{"properties":{"track":{"minLength":1,"type":"string"},"card":{"minLength":1,"type":"string"},"station":{"minLength":1,"type":"string"},"distance":{"exclusiveMinimum":true,"minimum":0,"type":"integer"},"timestamp":{"minLength":1,"type":"string","pattern":"d{4}-[01]d-[0-3]dT[0-2]d:[0-5]d:[0-5]d.d+Z?"},"id":{"type":"integer"},"runner":{"minLength":1,"type":"string"},"valid":{"type":"boolean"}},"type":"object","required":["track","card","station","distance","timestamp","id","runner","valid"]},"RunnerCard":{"properties":{"id":{"type":"integer"},"runner":{},"code":{"minLength":1,"type":"string"},"enabled":{"type":"boolean"}},"type":"object","required":["id","code","enabled"]},"Runner":{"properties":{"group":{"minLength":1,"type":"string"},"distance":{"type":"integer"},"distanceDonationAmount":{"type":"integer"},"id":{"type":"integer"},"firstname":{"type":"string","minLength":1},"middlename":{"type":"string"},"lastname":{"type":"string","minLength":1},"phone":{"type":"string"},"email":{"format":"email","type":"string"}},"type":"object","required":["group","distance","distanceDonationAmount","id","firstname","lastname"]},"RunnerGroup":{"properties":{"id":{"type":"integer"},"name":{"type":"string","minLength":1},"contact":{},"distance":{"type":"integer"},"distanceDonationAmount":{"type":"integer"}},"type":"object","required":["id","name","distance","distanceDonationAmount"]},"RunnerTeam":{"properties":{"parentGroup":{"minLength":1,"type":"string"},"id":{"type":"integer"},"name":{"type":"string","minLength":1},"contact":{},"distance":{"type":"integer"},"distanceDonationAmount":{"type":"integer"}},"type":"object","required":["parentGroup","id","name","distance","distanceDonationAmount"]},"RunnerOrganisation":{"properties":{"address":{},"distance":{"type":"integer"},"distanceDonationAmount":{"type":"integer"},"id":{"type":"integer"},"name":{"type":"string","minLength":1},"contact":{}},"type":"object","required":["distance","distanceDonationAmount","id","name"]},"RunnerTeamNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerTeamIdsNotMatchingError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerTeamHasRunnersError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RunnerTeamNeedsParentError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"AddressWrongTypeError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"AddressNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"CreateParticipant":{"properties":{"firstname":{"minLength":1,"type":"string"},"middlename":{"type":"string"},"lastname":{"minLength":1,"type":"string"},"phone":{"type":"string"},"email":{"format":"email","type":"string"},"address":{"type":"integer"}},"type":"object","required":["firstname","lastname"]},"CreateRunner":{"properties":{"group":{"type":"integer"},"firstname":{"minLength":1,"type":"string"},"middlename":{"type":"string"},"lastname":{"minLength":1,"type":"string"},"phone":{"type":"string"},"email":{"format":"email","type":"string"},"address":{"type":"integer"}},"type":"object","required":["group","firstname","lastname"]},"ImportRunner":{"properties":{"firstname":{"minLength":1,"type":"string"},"middlename":{"type":"string"},"lastname":{"minLength":1,"type":"string"},"team":{"type":"string"},"class":{"type":"string"}},"type":"object","required":["firstname","lastname"]},"ResponseParticipant":{"properties":{"id":{"type":"integer"},"firstname":{"type":"string"},"middlename":{"type":"string"},"lastname":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"}},"type":"object","required":["id","firstname","middlename","lastname","phone","email"]},"ResponseRunner":{"properties":{"distance":{"type":"integer"},"group":{"$ref":"#/components/schemas/RunnerGroup"},"id":{"type":"integer"},"firstname":{"type":"string"},"middlename":{"type":"string"},"lastname":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"}},"type":"object","required":["distance","group","id","firstname","middlename","lastname","phone","email"]},"UpdateRunner":{"properties":{"id":{"type":"integer"},"group":{"$ref":"#/components/schemas/RunnerGroup"},"firstname":{"minLength":1,"type":"string"},"middlename":{"type":"string"},"lastname":{"minLength":1,"type":"string"},"phone":{"type":"string"},"email":{"format":"email","type":"string"},"address":{"type":"integer"}},"type":"object","required":["id","group","firstname","lastname"]},"ResponseEmpty":{"properties":{"response":{"type":"string"}},"type":"object","required":["response"]},"PermissionNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"PermissionIdsNotMatchingError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"PermissionNeedsPrincipalError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"PrincipalNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"PrincipalWrongTypeError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"CreatePermission":{"properties":{"principal":{"minLength":1,"type":"integer"},"target":{"enum":["RUNNER","ORGANISATION","TEAM","TRACK","USER","USERGROUP","PERMISSION","STATSCLIENT"],"type":"string","minLength":1},"action":{"enum":["GET","CREATE","UPDATE","DELETE","IMPORT"],"type":"string","minLength":1}},"type":"object","required":["principal","target","action"]},"UpdatePermission":{"properties":{"id":{"type":"integer"},"principal":{"minLength":1,"type":"string","$ref":"#/components/schemas/Principal"},"target":{"minLength":1,"type":"string"},"action":{"minLength":1,"type":"string"}},"type":"object","required":["id","principal","target","action"]},"ResponsePermission":{"properties":{"id":{"type":"integer"},"principal":{"minLength":1,"type":"string","$ref":"#/components/schemas/ResponsePrincipal"},"target":{"enum":["RUNNER","ORGANISATION","TEAM","TRACK","USER","USERGROUP","PERMISSION","STATSCLIENT"],"type":"string","minLength":1},"action":{"enum":["GET","CREATE","UPDATE","DELETE","IMPORT"],"type":"string","minLength":1}},"type":"object","required":["id","principal","target","action"]},"GroupContactWrongTypeError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"GroupContactNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"CreateRunnerGroup":{"properties":{"name":{"type":"string","minLength":1},"contact":{"type":"integer"}},"type":"object","required":["name"]},"CreateRunnerOrganisation":{"properties":{"address":{"type":"integer"},"name":{"type":"string","minLength":1},"contact":{"type":"integer"}},"type":"object","required":["name"]},"UpdateRunnerOrganisation":{"properties":{"id":{"type":"integer"},"address":{"type":"integer"},"name":{"type":"string","minLength":1},"contact":{"type":"integer"}},"type":"object","required":["id","name"]},"ResponseRunnerGroup":{"properties":{"id":{"minLength":1,"type":"integer"},"name":{"minLength":1,"type":"string"},"contact":{"$ref":"#/components/schemas/GroupContact"}},"type":"object","required":["id","name"]},"ResponseRunnerOrganisation":{"properties":{"address":{"minLength":1,"type":"string","$ref":"#/components/schemas/Address"},"teams":{"items":{},"type":"array"},"id":{"minLength":1,"type":"integer"},"name":{"minLength":1,"type":"string"},"contact":{"$ref":"#/components/schemas/GroupContact"}},"type":"object","required":["address","teams","id","name"]},"CreateRunnerTeam":{"properties":{"parentGroup":{"minLength":1,"type":"integer"},"name":{"type":"string","minLength":1},"contact":{"type":"integer"}},"type":"object","required":["parentGroup","name"]},"UpdateRunnerTeam":{"properties":{"id":{"type":"integer"},"parentGroup":{"minLength":1,"type":"string","$ref":"#/components/schemas/RunnerOrganisation"},"name":{"type":"string","minLength":1},"contact":{"type":"integer"}},"type":"object","required":["id","parentGroup","name"]},"ResponseRunnerTeam":{"properties":{"parentGroup":{"minLength":1,"type":"string","$ref":"#/components/schemas/RunnerOrganisation"},"id":{"minLength":1,"type":"integer"},"name":{"minLength":1,"type":"string"},"contact":{"$ref":"#/components/schemas/GroupContact"}},"type":"object","required":["parentGroup","id","name"]},"StatsClientNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"StatsClientIdsNotMatchingError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"TrackNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"TrackIdsNotMatchingError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"StatsClient":{"properties":{"id":{"type":"integer"},"description":{"type":"string"},"prefix":{"type":"string"},"key":{"type":"string"},"cleartextkey":{"type":"string"}},"type":"object","required":["id","prefix","key"]},"CreateStatsClient":{"properties":{"description":{"type":"string"}},"type":"object"},"ResponseStatsClient":{"properties":{"id":{"type":"integer"},"description":{"type":"string"},"key":{"type":"string"},"prefix":{"minLength":1,"type":"string"}},"type":"object","required":["id","prefix"]},"ResponseStats":{"properties":{"total_runners":{"type":"integer"},"total_teams":{"type":"integer"},"total_orgs":{"type":"integer"},"total_users":{"type":"integer"},"total_scans":{"type":"integer"},"total_distance":{"type":"integer"},"total_donation":{"type":"integer"},"average_distance":{"type":"integer"}},"type":"object","required":["total_runners","total_teams","total_orgs","total_users","total_scans","total_distance","total_donation","average_distance"]},"ResponseStatsOrgnisation":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"distance":{"type":"integer"},"donationAmount":{"type":"integer"}},"type":"object","required":["id","name","distance","donationAmount"]},"ResponseStatsRunner":{"properties":{"id":{"type":"integer"},"firstname":{"type":"string"},"middlename":{"type":"string"},"lastname":{"type":"string"},"distance":{"type":"integer"},"donationAmount":{"type":"integer"},"group":{"$ref":"#/components/schemas/RunnerGroup"}},"type":"object","required":["id","firstname","middlename","lastname","distance","donationAmount","group"]},"ResponseStatsTeam":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"distance":{"type":"integer"},"donationAmount":{"type":"integer"},"parent":{"$ref":"#/components/schemas/RunnerGroup"}},"type":"object","required":["id","name","distance","donationAmount","parent"]},"CreateTrack":{"properties":{"name":{"minLength":1,"type":"string"},"distance":{"exclusiveMinimum":true,"minimum":0,"type":"integer"}},"type":"object","required":["name","distance"]},"ResponseTrack":{"properties":{"id":{"type":"integer"},"name":{"type":"string"},"distance":{"type":"integer"}},"type":"object","required":["id","name","distance"]},"GroupNameNeededError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"UserGroupNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"UserGroupIdsNotMatchingError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"CreateUser":{"properties":{"firstname":{"type":"string"},"middlename":{"type":"string"},"lastname":{"type":"string"},"username":{"type":"string"},"email":{"type":"string","format":"email"},"phone":{"type":"string"},"password":{"type":"string"},"enabled":{"type":"boolean"},"groups":{}},"type":"object","required":["firstname","lastname","password"]},"UpdateUser":{"properties":{"id":{"type":"integer"},"firstname":{"type":"string"},"middlename":{"type":"string"},"lastname":{"type":"string"},"username":{"type":"string"},"email":{"type":"string","format":"email"},"phone":{"type":"string"},"password":{"type":"string"},"enabled":{"type":"boolean"},"groups":{}},"type":"object","required":["id","firstname","lastname","enabled"]},"CreateUserGroup":{"properties":{"name":{"type":"string"},"description":{"type":"string"}},"type":"object","required":["name"]}},"securitySchemes":{"AuthToken":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"A JWT based access token. Use /api/auth/login or /api/auth/refresh to get one."},"RefreshTokenCookie":{"type":"apiKey","in":"cookie","name":"lfk_backend__refresh_token","description":"A cookie containing a JWT based refreh token. Attention: Doesn't work in swagger-ui. Use /api/auth/login or /api/auth/refresh to get one."},"StatsApiToken":{"type":"http","scheme":"bearer","description":"Api token that can be obtained by creating a new stats client (post to /api/statsclients)."}}},"info":{"title":"LfK! Backend API","version":"0.0.5","description":"The the backend API for the LfK! runner system."},"openapi":"3.0.0","paths":{"/api/auth/login":{"post":{"operationId":"AuthController.login","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAuth"}}},"description":"CreateAuth","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Auth"},{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/UserNotFoundError"},{"$ref":"#/components/schemas/UsernameOrEmailNeededError"},{"$ref":"#/components/schemas/PasswordNeededError"},{"$ref":"#/components/schemas/InvalidCredentialsError"}]}}},"description":""}},"summary":"Login","tags":["Auth"],"description":"Login with your username/email and password.
You will receive: \n * access token (use it as a bearer token) \n * refresh token (will also be sent as a cookie)"}},"/api/auth/logout":{"post":{"operationId":"AuthController.logout","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HandleLogout"}}},"description":"HandleLogout","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Logout"},{"$ref":"#/components/schemas/InvalidCredentialsError"},{"$ref":"#/components/schemas/UserNotFoundError"},{"$ref":"#/components/schemas/UsernameOrEmailNeededError"},{"$ref":"#/components/schemas/PasswordNeededError"},{"$ref":"#/components/schemas/InvalidCredentialsError"}]}}},"description":""}},"summary":"Logout","tags":["Auth"],"description":"Logout using your refresh token.
This instantly invalidates all your access and refresh tokens.","security":[{"RefreshTokenCookie":[]}]}},"/api/auth/refresh":{"post":{"operationId":"AuthController.refresh","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshAuth"}}},"description":"RefreshAuth","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Auth"},{"$ref":"#/components/schemas/JwtNotProvidedError"},{"$ref":"#/components/schemas/IllegalJWTError"},{"$ref":"#/components/schemas/UserNotFoundError"},{"$ref":"#/components/schemas/RefreshTokenCountInvalidError"}]}}},"description":""}},"summary":"Refresh","tags":["Auth"],"description":"Refresh your access and refresh tokens using a valid refresh token.
You will receive: \n * access token (use it as a bearer token) \n * refresh token (will also be sent as a cookie)","security":[{"RefreshTokenCookie":[]}]}},"/api/auth/reset":{"post":{"operationId":"AuthController.getResetToken","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateResetToken"}}},"description":"CreateResetToken","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Auth"},{"$ref":"#/components/schemas/UserNotFoundError"},{"$ref":"#/components/schemas/UsernameOrEmailNeededError"}]}}},"description":""}},"summary":"Get reset token","tags":["Auth"],"description":"Request a password reset token.
This will provide you with a reset token that you can use by posting to /api/auth/reset/{token}."}},"/api/auth/reset/{token}":{"post":{"operationId":"AuthController.resetPassword","parameters":[{"in":"path","name":"token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPassword"}}},"description":"ResetPassword","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Auth"},{"$ref":"#/components/schemas/UserNotFoundError"},{"$ref":"#/components/schemas/UsernameOrEmailNeededError"}]}}},"description":""}},"summary":"Reset password","tags":["Auth"],"description":"Reset a user's utilising a valid password reset token.
This will set the user's password to the one you provided in the body.
To get a reset token post to /api/auth/reset with your username."}},"/api/runners":{"get":{"operationId":"RunnerController.getAll","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseRunner"},"type":"array"}}},"description":""}},"summary":"Get all","tags":["Runner"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all runners from all teams/orgs.
This includes the runner's group and distance ran."},"post":{"operationId":"RunnerController.post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRunner"}}},"description":"CreateRunner","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ResponseRunner"},{"$ref":"#/components/schemas/RunnerGroupNeededError"},{"$ref":"#/components/schemas/RunnerGroupNotFoundError"}]}}},"description":""}},"summary":"Post","tags":["Runner"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create a new runner.
Please remeber to provide the runner's group's id."}},"/api/runners/{id}":{"get":{"operationId":"RunnerController.getOne","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunner"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerNotFoundError"}}},"description":""}},"summary":"Get one","tags":["Runner"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all information about the runner whose id got provided."},"put":{"operationId":"RunnerController.put","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRunner"}}},"description":"UpdateRunner","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunner"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerIdsNotMatchingError"}}},"description":""}},"summary":"Put","tags":["Runner"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Update the runner whose id you provided.
Please remember that ids can't be changed."},"delete":{"operationId":"RunnerController.remove","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}},{"in":"query","name":"force","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunner"}}},"description":""},"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseEmpty"}}},"description":""}},"summary":"Remove","tags":["Runner"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Delete the runner whose id you provided.
If no runner with this id exists it will just return 204(no content)."}},"/api/runners/import":{"post":{"operationId":"ImportController.postJSON","parameters":[{"in":"query","name":"group","required":false,"schema":{"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ImportRunner"},"type":"array"}}},"description":"ImportRunner","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseRunner"},"type":"array"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNeededError"}}},"description":""}},"summary":"Post json","tags":["Import"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create new runners from json and insert them into the provided group.
If teams/classes are provided alongside the runner's name they'll automaticly be created under the provided org and the runners will be inserted into the teams instead."}},"/api/organisations/{id}/import":{"post":{"operationId":"ImportController.postOrgsJSON","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ImportRunner"},"type":"array"}}},"description":"ImportRunner","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseRunner"},"type":"array"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNeededError"}}},"description":""}},"summary":"Post orgs json","tags":["Import"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create new runners from json and insert them into the provided org.
If teams/classes are provided alongside the runner's name they'll automaticly be created under the provided org and the runners will be inserted into the teams instead."}},"/api/teams/{id}/import":{"post":{"operationId":"ImportController.postTeamsJSON","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ImportRunner"},"type":"array"}}},"description":"ImportRunner","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseRunner"},"type":"array"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNeededError"}}},"description":""}},"summary":"Post teams json","tags":["Import"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create new runners from json and insert them into the provided team"}},"/api/runners/import/csv":{"post":{"operationId":"ImportController.postCSV","parameters":[{"in":"query","name":"group","required":false,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseRunner"},"type":"array"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNeededError"}}},"description":""}},"summary":"Post csv","tags":["Import"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create new runners from csv and insert them into the provided group.
If teams/classes are provided alongside the runner's name they'll automaticly be created under the provided org and the runners will be inserted into the teams instead."}},"/api/organisations/{id}/import/csv":{"post":{"operationId":"ImportController.postOrgsCSV","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseRunner"},"type":"array"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNeededError"}}},"description":""}},"summary":"Post orgs csv","tags":["Import"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create new runners from csv and insert them into the provided org.
If teams/classes are provided alongside the runner's name they'll automaticly be created under the provided org and the runners will be inserted into the teams instead."}},"/api/teams/{id}/import/csv":{"post":{"operationId":"ImportController.postTeamsCSV","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseRunner"},"type":"array"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerGroupNeededError"}}},"description":""}},"summary":"Post teams csv","tags":["Import"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create new runners from csv and insert them into the provided team"}},"/api/permissions":{"get":{"operationId":"PermissionController.getAll","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponsePermission"},"type":"array"}}},"description":""}},"summary":"Get all","tags":["Permission"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all permissions for all users and groups."},"post":{"operationId":"PermissionController.post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePermission"}}},"description":"CreatePermission","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponsePermission"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrincipalNotFoundError"}}},"description":""}},"summary":"Post","tags":["Permission"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create a new permission for a existing principal(user/group).
If a permission with this target, action and prinicpal already exists that permission will be returned instead of creating a new one."}},"/api/permissions/{id}":{"get":{"operationId":"PermissionController.getOne","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponsePermission"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PermissionNotFoundError"}}},"description":""}},"summary":"Get one","tags":["Permission"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all information about the permission whose id got provided."},"put":{"operationId":"PermissionController.put","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePermission"}}},"description":"UpdatePermission","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponsePrincipal"}}},"description":""},"404":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/PermissionNotFoundError"},{"$ref":"#/components/schemas/PrincipalNotFoundError"}]}}},"description":""},"406":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/PermissionIdsNotMatchingError"},{"$ref":"#/components/schemas/PermissionNeedsPrincipalError"}]}}},"description":""}},"summary":"Put","tags":["Permission"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Update a permission object.
If updateing the permission object would result in duplicate permission (same target, action and principal) this permission will get deleted and the existing permission will be returned.
Please remember that ids can't be changed."},"delete":{"operationId":"PermissionController.remove","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}},{"in":"query","name":"force","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponsePermission"}}},"description":""},"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseEmpty"}}},"description":""}},"summary":"Remove","tags":["Permission"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Deletes the permission whose id you provide.
If no permission with this id exists it will just return 204(no content)."}},"/api/teams":{"get":{"operationId":"RunnerTeamController.getAll","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseRunnerTeam"},"type":"array"}}},"description":""}},"summary":"Get all","tags":["Runner Team"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all teams.
This includes their parent organisation and contact (if existing/associated)."},"post":{"operationId":"RunnerTeamController.post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRunnerTeam"}}},"description":"CreateRunnerTeam","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunnerTeam"}}},"description":""}},"summary":"Post","tags":["Runner Team"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create a new organsisation.
Please remember to provide it's parent group's id."}},"/api/teams/{id}":{"get":{"operationId":"RunnerTeamController.getOne","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunnerTeam"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerTeamNotFoundError"}}},"description":""}},"summary":"Get one","tags":["Runner Team"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all information about the team whose id got provided."},"put":{"operationId":"RunnerTeamController.put","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRunnerTeam"}}},"description":"UpdateRunnerTeam","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunnerTeam"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerTeamNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerTeamIdsNotMatchingError"}}},"description":""}},"summary":"Put","tags":["Runner Team"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Update the team whose id you provided.
Please remember that ids can't be changed."},"delete":{"operationId":"RunnerTeamController.remove","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}},{"in":"query","name":"force","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunnerTeam"}}},"description":""},"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseEmpty"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerTeamHasRunnersError"}}},"description":""}},"summary":"Remove","tags":["Runner Team"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Delete the team whose id you provided.
If the team still has runners associated this will fail.
To delete the team with all associated runners set the force QueryParam to true (cascading deletion might take a while).
If no team with this id exists it will just return 204(no content)."}},"/api/organisations":{"get":{"operationId":"RunnerOrganisationController.getAll","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseRunnerOrganisation"},"type":"array"}}},"description":""}},"summary":"Get all","tags":["Runner Organisation"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all organisations.
This includes their address, contact and teams (if existing/associated)."},"post":{"operationId":"RunnerOrganisationController.post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRunnerOrganisation"}}},"description":"CreateRunnerOrganisation","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunnerOrganisation"}}},"description":""}},"summary":"Post","tags":["Runner Organisation"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create a new organsisation."}},"/api/organisations/{id}":{"get":{"operationId":"RunnerOrganisationController.getOne","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunnerOrganisation"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerOrganisationNotFoundError"}}},"description":""}},"summary":"Get one","tags":["Runner Organisation"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all information about the organisation whose id got provided."},"put":{"operationId":"RunnerOrganisationController.put","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRunnerOrganisation"}}},"description":"UpdateRunnerOrganisation","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunnerOrganisation"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerOrganisationNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunnerOrganisationIdsNotMatchingError"}}},"description":""}},"summary":"Put","tags":["Runner Organisation"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Update the organisation whose id you provided.
Please remember that ids can't be changed."},"delete":{"operationId":"RunnerOrganisationController.remove","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}},{"in":"query","name":"force","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseRunnerOrganisation"}}},"description":""},"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseEmpty"}}},"description":""},"406":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/RunnerOrganisationHasTeamsError"},{"$ref":"#/components/schemas/RunnerOrganisationHasRunnersError"}]}}},"description":""}},"summary":"Remove","tags":["Runner Organisation"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Delete the organsisation whose id you provided.
If the organisation still has runners and/or teams associated this will fail.
To delete the organisation with all associated runners and teams set the force QueryParam to true (cascading deletion might take a while).
If no organisation with this id exists it will just return 204(no content)."}},"/api/statsclients":{"get":{"operationId":"StatsClientController.getAll","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseStatsClient"},"type":"array"}}},"description":""}},"summary":"Get all","tags":["Stats Client"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all stats clients. Please remember that the key can only be viewed on creation."},"post":{"operationId":"StatsClientController.post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStatsClient"}}},"description":"CreateStatsClient","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseStatsClient"}}},"description":""}},"summary":"Post","tags":["Stats Client"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create a new stats client.
Please remember that the client's key will be generated automaticly and that it can only be viewed on creation."}},"/api/statsclients/{id}":{"get":{"operationId":"StatsClientController.getOne","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseStatsClient"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatsClientNotFoundError"}}},"description":""}},"summary":"Get one","tags":["Stats Client"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all information about the stats client whose id got provided. Please remember that the key can only be viewed on creation."},"delete":{"operationId":"StatsClientController.remove","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseStatsClient"}}},"description":""},"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseEmpty"}}},"description":""}},"summary":"Remove","tags":["Stats Client"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Delete the stats client whose id you provided.
If no client with this id exists it will just return 204(no content)."}},"/api/stats":{"get":{"operationId":"StatsController.get","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseStats"}}},"description":""}},"summary":"Get","tags":["Stats"],"description":"A very basic stats endpoint providing basic counters for a dashboard or simmilar"}},"/api/stats/runners/distance":{"get":{"operationId":"StatsController.getTopRunnersByDistance","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseStatsRunner"},"type":"array"}}},"description":""}},"summary":"Get top runners by distance","tags":["Stats"],"description":"Returns the top ten runners by distance.","security":[{"StatsApiToken":[]},{"AuthToken":[]},{"RefreshTokenCookie":[]}]}},"/api/stats/runners/donations":{"get":{"operationId":"StatsController.getTopRunnersByDonations","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseStatsRunner"},"type":"array"}}},"description":""}},"summary":"Get top runners by donations","tags":["Stats"],"description":"Returns the top ten runners by donations.","security":[{"StatsApiToken":[]},{"AuthToken":[]},{"RefreshTokenCookie":[]}]}},"/api/stats/scans":{"get":{"operationId":"StatsController.getTopRunnersByTrackTime","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseStatsRunner"},"type":"array"}}},"description":""}},"summary":"Get top runners by track time","tags":["Stats"],"description":"Returns the top ten fastest track times (with their runner and the runner's group).","security":[{"StatsApiToken":[]},{"AuthToken":[]},{"RefreshTokenCookie":[]}]}},"/api/stats/teams/distance":{"get":{"operationId":"StatsController.getTopTeamsByDistance","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseStatsTeam"},"type":"array"}}},"description":""}},"summary":"Get top teams by distance","tags":["Stats"],"description":"Returns the top ten teams by distance.","security":[{"StatsApiToken":[]},{"AuthToken":[]},{"RefreshTokenCookie":[]}]}},"/api/stats/teams/donations":{"get":{"operationId":"StatsController.getTopTeamsByDonations","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseStatsTeam"},"type":"array"}}},"description":""}},"summary":"Get top teams by donations","tags":["Stats"],"description":"Returns the top ten teams by donations.","security":[{"StatsApiToken":[]},{"AuthToken":[]},{"RefreshTokenCookie":[]}]}},"/api/stats/organisations/distance":{"get":{"operationId":"StatsController.getTopOrgsByDistance","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseStatsOrgnisation"},"type":"array"}}},"description":""}},"summary":"Get top orgs by distance","tags":["Stats"],"description":"Returns the top ten organisations by distance.","security":[{"StatsApiToken":[]},{"AuthToken":[]},{"RefreshTokenCookie":[]}]}},"/api/stats/organisations/donations":{"get":{"operationId":"StatsController.getTopOrgsByDonations","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseStatsOrgnisation"},"type":"array"}}},"description":""}},"summary":"Get top orgs by donations","tags":["Stats"],"description":"Returns the top ten organisations by donations.","security":[{"StatsApiToken":[]},{"AuthToken":[]},{"RefreshTokenCookie":[]}]}},"/api/status":{"get":{"operationId":"StatusController.get","responses":{"200":{"content":{"application/json":{}},"description":"Successful response"}},"summary":"Get","tags":["Status"],"description":"A very basic status/health endpoint that just checks if the database connection is available.
The available information depth will be expanded later."}},"/api/tracks":{"get":{"operationId":"TrackController.getAll","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ResponseTrack"},"type":"array"}}},"description":""}},"summary":"Get all","tags":["Track"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all tracks."},"post":{"operationId":"TrackController.post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTrack"}}},"description":"CreateTrack","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseTrack"}}},"description":""}},"summary":"Post","tags":["Track"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create a new track.
Please remember that the track's distance must be greater than 0."}},"/api/tracks/{id}":{"get":{"operationId":"TrackController.getOne","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseTrack"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackNotFoundError"}}},"description":""}},"summary":"Get one","tags":["Track"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all information about the track whose id got provided."},"put":{"operationId":"TrackController.put","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Track"}}},"description":"Track","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseTrack"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackIdsNotMatchingError"}}},"description":""}},"summary":"Put","tags":["Track"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Update the track whose id you provided.
Please remember that ids can't be changed."},"delete":{"operationId":"TrackController.remove","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseTrack"}}},"description":""},"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseEmpty"}}},"description":""}},"summary":"Remove","tags":["Track"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Delete the track whose id you provided.
If no track with this id exists it will just return 204(no content)."}},"/api/users":{"get":{"operationId":"UserController.getAll","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/User"},"type":"array"}}},"description":""}},"summary":"Get all","tags":["User"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all users.
This includes their groups and permissions directly granted to them (if existing/associated)."},"post":{"operationId":"UserController.post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUser"}}},"description":"CreateUser","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/User"},{"$ref":"#/components/schemas/UserGroupNotFoundError"}]}}},"description":""}},"summary":"Post","tags":["User"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create a new user.
If you want to grant permissions to the user you have to create them seperately by posting to /api/permissions after creating the user."}},"/api/users/{id}":{"get":{"operationId":"UserController.getOne","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserNotFoundError"}}},"description":""}},"summary":"Get one","tags":["User"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all information about the user whose id got provided.
Please remember that only permissions granted directly to the user will show up here, not permissions inherited from groups."},"put":{"operationId":"UserController.put","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUser"}}},"description":"UpdateUser","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserIdsNotMatchingError"}}},"description":""}},"summary":"Put","tags":["User"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Update the user whose id you provided.
To change the permissions directly granted to the user please use /api/permissions instead.
Please remember that ids can't be changed."},"delete":{"operationId":"UserController.remove","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}},{"in":"query","name":"force","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}},"description":""},"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseEmpty"}}},"description":""}},"summary":"Remove","tags":["User"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Delete the user whose id you provided.
If there are any permissions directly granted to the user they will get deleted as well.
If no user with this id exists it will just return 204(no content)."}},"/api/usergroups":{"get":{"operationId":"UserGroupController.getAll","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/UserGroup"},"type":"array"}}},"description":""}},"summary":"Get all","tags":["User Group"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all groups.
The information provided might change while the project continues to evolve."},"post":{"operationId":"UserGroupController.post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserGroup"}}},"description":"CreateUserGroup","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/UserGroup"},{"$ref":"#/components/schemas/UserGroupNotFoundError"}]}}},"description":""}},"summary":"Post","tags":["User Group"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Create a new group.
If you want to grant permissions to the group you have to create them seperately by posting to /api/permissions after creating the group."}},"/api/usergroups/{id}":{"get":{"operationId":"UserGroupController.getOne","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserGroup"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserGroupNotFoundError"}}},"description":""}},"summary":"Get one","tags":["User Group"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Lists all information about the group whose id got provided.
The information provided might change while the project continues to evolve."},"put":{"operationId":"UserGroupController.put","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserGroup"}}},"description":"UserGroup","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserGroup"}}},"description":""},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserGroupNotFoundError"}}},"description":""},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserGroupIdsNotMatchingError"}}},"description":""}},"summary":"Put","tags":["User Group"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Update the group whose id you provided.
To change the permissions granted to the group please use /api/permissions instead.
Please remember that ids can't be changed."},"delete":{"operationId":"UserGroupController.remove","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"number"}},{"in":"query","name":"force","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseUserGroup"}}},"description":""},"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseEmpty"}}},"description":""}},"summary":"Remove","tags":["User Group"],"security":[{"AuthToken":[]},{"RefreshTokenCookie":[]}],"description":"Delete the group whose id you provided.
If there are any permissions directly granted to the group they will get deleted as well.
Users associated with this group won't get deleted - just deassociated.
If no group with this id exists it will just return 204(no content)."}}}} \ No newline at end of file +{"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 diff --git a/package.json b/package.json index 6809c01..45c286c 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.6", + "version": "0.0.7", "license": "CC-BY-NC-SA-4.0", "main": "./dist/index.js", "types": "./dist/index.d.ts",