From 823fb926a5f3715fb72416a4f548b9b6e154e8fe Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Sun, 13 Dec 2020 18:49:21 +0000 Subject: [PATCH] new lib version [CI SKIP] --- dist/core/ApiError.d.ts | 8 ++ dist/core/ApiRequestOptions.d.ts | 11 +++ dist/core/ApiResult.d.ts | 7 ++ dist/core/OpenAPI.d.ts | 13 +++ dist/core/request.d.ts | 9 ++ dist/index.d.ts | 83 +++++++++++++++++++ dist/models/Address.d.ts | 9 ++ dist/models/AddressNotFoundError.d.ts | 4 + dist/models/AddressWrongTypeError.d.ts | 4 + dist/models/Auth.d.ts | 6 ++ dist/models/CreateAuth.d.ts | 5 ++ dist/models/CreateParticipant.d.ts | 8 ++ dist/models/CreateRunner.d.ts | 9 ++ dist/models/CreateRunnerGroup.d.ts | 4 + dist/models/CreateRunnerOrganisation.d.ts | 5 ++ dist/models/CreateRunnerTeam.d.ts | 5 ++ dist/models/CreateTrack.d.ts | 4 + dist/models/CreateUser.d.ts | 10 +++ dist/models/CreateUserGroup.d.ts | 4 + dist/models/DistanceDonation.d.ts | 6 ++ dist/models/Donation.d.ts | 4 + dist/models/ExpiredJWTError.d.ts | 4 + dist/models/GroupContact.d.ts | 9 ++ dist/models/GroupContactNotFoundError.d.ts | 4 + dist/models/GroupContactWrongTypeError.d.ts | 4 + dist/models/GroupNameNeededError.d.ts | 4 + dist/models/HandleLogout.d.ts | 3 + dist/models/IllegalJWTError.d.ts | 4 + dist/models/InvalidCredentialsError.d.ts | 4 + dist/models/JwtNotProvidedError.d.ts | 4 + dist/models/Logout.d.ts | 3 + dist/models/NoPermissionError.d.ts | 4 + dist/models/Participant.d.ts | 8 ++ dist/models/PasswordNeededError.d.ts | 4 + dist/models/Permission.d.ts | 5 ++ dist/models/RefreshAuth.d.ts | 3 + .../models/RefreshTokenCountInvalidError.d.ts | 4 + dist/models/ResponseEmpty.d.ts | 3 + dist/models/ResponseParticipant.d.ts | 8 ++ dist/models/ResponseRunner.d.ts | 11 +++ dist/models/ResponseRunnerGroup.d.ts | 6 ++ dist/models/ResponseRunnerOrganisation.d.ts | 9 ++ dist/models/ResponseRunnerTeam.d.ts | 8 ++ dist/models/ResponseTrack.d.ts | 5 ++ dist/models/Runner.d.ts | 10 +++ dist/models/RunnerCard.d.ts | 6 ++ dist/models/RunnerGroup.d.ts | 5 ++ dist/models/RunnerGroupNeededError.d.ts | 4 + dist/models/RunnerGroupNotFoundError.d.ts | 4 + dist/models/RunnerIdsNotMatchingError.d.ts | 4 + dist/models/RunnerNotFoundError.d.ts | 4 + dist/models/RunnerOrganisation.d.ts | 6 ++ .../RunnerOrganisationHasRunnersError.d.ts | 4 + .../RunnerOrganisationHasTeamsError.d.ts | 4 + ...RunnerOrganisationIdsNotMatchingError.d.ts | 4 + .../RunnerOrganisationNotFoundError.d.ts | 4 + .../RunnerOrganisationWrongTypeError.d.ts | 4 + dist/models/RunnerTeam.d.ts | 6 ++ dist/models/RunnerTeamHasRunnersError.d.ts | 4 + .../models/RunnerTeamIdsNotMatchingError.d.ts | 4 + dist/models/RunnerTeamNeedsParentError.d.ts | 4 + dist/models/RunnerTeamNotFoundError.d.ts | 4 + dist/models/Scan.d.ts | 6 ++ dist/models/ScanStation.d.ts | 7 ++ dist/models/Track.d.ts | 5 ++ dist/models/TrackIdsNotMatchingError.d.ts | 4 + dist/models/TrackNotFoundError.d.ts | 4 + dist/models/TrackScan.d.ts | 10 +++ dist/models/UpdateRunner.d.ts | 11 +++ dist/models/UpdateRunnerTeam.d.ts | 7 ++ dist/models/User.d.ts | 17 ++++ dist/models/UserAction.d.ts | 6 ++ dist/models/UserGroup.d.ts | 5 ++ dist/models/UserGroupIdsNotMatchingError.d.ts | 4 + dist/models/UserGroupNotFoundError.d.ts | 4 + dist/models/UserIdsNotMatchingError.d.ts | 4 + ...NonexistantOrRefreshtokenInvalidError.d.ts | 4 + dist/models/UserNotFoundError.d.ts | 4 + ...tFoundOrRefreshTokenCountInvalidError.d.ts | 4 + dist/models/UsernameOrEmailNeededError.d.ts | 4 + dist/services/AuthService.d.ts | 38 +++++++++ dist/services/RunnerOrganisationService.d.ts | 48 +++++++++++ dist/services/RunnerService.d.ts | 50 +++++++++++ dist/services/RunnerTeamService.d.ts | 48 +++++++++++ dist/services/TrackService.d.ts | 47 +++++++++++ dist/services/UserGroupService.d.ts | 47 +++++++++++ dist/services/UserService.d.ts | 47 +++++++++++ 87 files changed, 859 insertions(+) create mode 100644 dist/core/ApiError.d.ts create mode 100644 dist/core/ApiRequestOptions.d.ts create mode 100644 dist/core/ApiResult.d.ts create mode 100644 dist/core/OpenAPI.d.ts create mode 100644 dist/core/request.d.ts create mode 100644 dist/index.d.ts create mode 100644 dist/models/Address.d.ts create mode 100644 dist/models/AddressNotFoundError.d.ts create mode 100644 dist/models/AddressWrongTypeError.d.ts create mode 100644 dist/models/Auth.d.ts create mode 100644 dist/models/CreateAuth.d.ts create mode 100644 dist/models/CreateParticipant.d.ts create mode 100644 dist/models/CreateRunner.d.ts create mode 100644 dist/models/CreateRunnerGroup.d.ts create mode 100644 dist/models/CreateRunnerOrganisation.d.ts create mode 100644 dist/models/CreateRunnerTeam.d.ts create mode 100644 dist/models/CreateTrack.d.ts create mode 100644 dist/models/CreateUser.d.ts create mode 100644 dist/models/CreateUserGroup.d.ts create mode 100644 dist/models/DistanceDonation.d.ts create mode 100644 dist/models/Donation.d.ts create mode 100644 dist/models/ExpiredJWTError.d.ts create mode 100644 dist/models/GroupContact.d.ts create mode 100644 dist/models/GroupContactNotFoundError.d.ts create mode 100644 dist/models/GroupContactWrongTypeError.d.ts create mode 100644 dist/models/GroupNameNeededError.d.ts create mode 100644 dist/models/HandleLogout.d.ts create mode 100644 dist/models/IllegalJWTError.d.ts create mode 100644 dist/models/InvalidCredentialsError.d.ts create mode 100644 dist/models/JwtNotProvidedError.d.ts create mode 100644 dist/models/Logout.d.ts create mode 100644 dist/models/NoPermissionError.d.ts create mode 100644 dist/models/Participant.d.ts create mode 100644 dist/models/PasswordNeededError.d.ts create mode 100644 dist/models/Permission.d.ts create mode 100644 dist/models/RefreshAuth.d.ts create mode 100644 dist/models/RefreshTokenCountInvalidError.d.ts create mode 100644 dist/models/ResponseEmpty.d.ts create mode 100644 dist/models/ResponseParticipant.d.ts create mode 100644 dist/models/ResponseRunner.d.ts create mode 100644 dist/models/ResponseRunnerGroup.d.ts create mode 100644 dist/models/ResponseRunnerOrganisation.d.ts create mode 100644 dist/models/ResponseRunnerTeam.d.ts create mode 100644 dist/models/ResponseTrack.d.ts create mode 100644 dist/models/Runner.d.ts create mode 100644 dist/models/RunnerCard.d.ts create mode 100644 dist/models/RunnerGroup.d.ts create mode 100644 dist/models/RunnerGroupNeededError.d.ts create mode 100644 dist/models/RunnerGroupNotFoundError.d.ts create mode 100644 dist/models/RunnerIdsNotMatchingError.d.ts create mode 100644 dist/models/RunnerNotFoundError.d.ts create mode 100644 dist/models/RunnerOrganisation.d.ts create mode 100644 dist/models/RunnerOrganisationHasRunnersError.d.ts create mode 100644 dist/models/RunnerOrganisationHasTeamsError.d.ts create mode 100644 dist/models/RunnerOrganisationIdsNotMatchingError.d.ts create mode 100644 dist/models/RunnerOrganisationNotFoundError.d.ts create mode 100644 dist/models/RunnerOrganisationWrongTypeError.d.ts create mode 100644 dist/models/RunnerTeam.d.ts create mode 100644 dist/models/RunnerTeamHasRunnersError.d.ts create mode 100644 dist/models/RunnerTeamIdsNotMatchingError.d.ts create mode 100644 dist/models/RunnerTeamNeedsParentError.d.ts create mode 100644 dist/models/RunnerTeamNotFoundError.d.ts create mode 100644 dist/models/Scan.d.ts create mode 100644 dist/models/ScanStation.d.ts create mode 100644 dist/models/Track.d.ts create mode 100644 dist/models/TrackIdsNotMatchingError.d.ts create mode 100644 dist/models/TrackNotFoundError.d.ts create mode 100644 dist/models/TrackScan.d.ts create mode 100644 dist/models/UpdateRunner.d.ts create mode 100644 dist/models/UpdateRunnerTeam.d.ts create mode 100644 dist/models/User.d.ts create mode 100644 dist/models/UserAction.d.ts create mode 100644 dist/models/UserGroup.d.ts create mode 100644 dist/models/UserGroupIdsNotMatchingError.d.ts create mode 100644 dist/models/UserGroupNotFoundError.d.ts create mode 100644 dist/models/UserIdsNotMatchingError.d.ts create mode 100644 dist/models/UserNonexistantOrRefreshtokenInvalidError.d.ts create mode 100644 dist/models/UserNotFoundError.d.ts create mode 100644 dist/models/UserNotFoundOrRefreshTokenCountInvalidError.d.ts create mode 100644 dist/models/UsernameOrEmailNeededError.d.ts create mode 100644 dist/services/AuthService.d.ts create mode 100644 dist/services/RunnerOrganisationService.d.ts create mode 100644 dist/services/RunnerService.d.ts create mode 100644 dist/services/RunnerTeamService.d.ts create mode 100644 dist/services/TrackService.d.ts create mode 100644 dist/services/UserGroupService.d.ts create mode 100644 dist/services/UserService.d.ts diff --git a/dist/core/ApiError.d.ts b/dist/core/ApiError.d.ts new file mode 100644 index 0000000..39f92d3 --- /dev/null +++ b/dist/core/ApiError.d.ts @@ -0,0 +1,8 @@ +import type { ApiResult } from './ApiResult'; +export declare class ApiError extends Error { + readonly url: string; + readonly status: number; + readonly statusText: string; + readonly body: any; + constructor(response: ApiResult, message: string); +} diff --git a/dist/core/ApiRequestOptions.d.ts b/dist/core/ApiRequestOptions.d.ts new file mode 100644 index 0000000..982050d --- /dev/null +++ b/dist/core/ApiRequestOptions.d.ts @@ -0,0 +1,11 @@ +export declare type ApiRequestOptions = { + readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH'; + readonly path: string; + readonly cookies?: Record; + readonly headers?: Record; + readonly query?: Record; + readonly formData?: Record; + readonly body?: any; + readonly responseHeader?: string; + readonly errors?: Record; +}; diff --git a/dist/core/ApiResult.d.ts b/dist/core/ApiResult.d.ts new file mode 100644 index 0000000..e9ed2c2 --- /dev/null +++ b/dist/core/ApiResult.d.ts @@ -0,0 +1,7 @@ +export declare type ApiResult = { + readonly url: string; + readonly ok: boolean; + readonly status: number; + readonly statusText: string; + readonly body: any; +}; diff --git a/dist/core/OpenAPI.d.ts b/dist/core/OpenAPI.d.ts new file mode 100644 index 0000000..e1df9ae --- /dev/null +++ b/dist/core/OpenAPI.d.ts @@ -0,0 +1,13 @@ +declare type Resolver = () => Promise; +declare type Headers = Record; +declare type Config = { + BASE: string; + VERSION: string; + WITH_CREDENTIALS: boolean; + TOKEN?: string | Resolver; + USERNAME?: string | Resolver; + PASSWORD?: string | Resolver; + HEADERS?: Headers | Resolver; +}; +export declare const OpenAPI: Config; +export {}; diff --git a/dist/core/request.d.ts b/dist/core/request.d.ts new file mode 100644 index 0000000..f696b2e --- /dev/null +++ b/dist/core/request.d.ts @@ -0,0 +1,9 @@ +import type { ApiRequestOptions } from './ApiRequestOptions'; +import type { ApiResult } from './ApiResult'; +/** +* Request using node-fetch client +* @param options The request options from the the service +* @result ApiResult +* @throws ApiError +*/ +export declare function request(options: ApiRequestOptions): Promise; diff --git a/dist/index.d.ts b/dist/index.d.ts new file mode 100644 index 0000000..095d5d3 --- /dev/null +++ b/dist/index.d.ts @@ -0,0 +1,83 @@ +export { ApiError } from './core/ApiError'; +export { OpenAPI } from './core/OpenAPI'; +export type { Address } from './models/Address'; +export type { AddressNotFoundError } from './models/AddressNotFoundError'; +export type { AddressWrongTypeError } from './models/AddressWrongTypeError'; +export type { Auth } from './models/Auth'; +export type { CreateAuth } from './models/CreateAuth'; +export type { CreateParticipant } from './models/CreateParticipant'; +export type { CreateRunner } from './models/CreateRunner'; +export type { CreateRunnerGroup } from './models/CreateRunnerGroup'; +export type { CreateRunnerOrganisation } from './models/CreateRunnerOrganisation'; +export type { CreateRunnerTeam } from './models/CreateRunnerTeam'; +export type { CreateTrack } from './models/CreateTrack'; +export type { CreateUser } from './models/CreateUser'; +export type { CreateUserGroup } from './models/CreateUserGroup'; +export type { DistanceDonation } from './models/DistanceDonation'; +export type { Donation } from './models/Donation'; +export type { ExpiredJWTError } from './models/ExpiredJWTError'; +export type { GroupContact } from './models/GroupContact'; +export type { GroupContactNotFoundError } from './models/GroupContactNotFoundError'; +export type { GroupContactWrongTypeError } from './models/GroupContactWrongTypeError'; +export type { GroupNameNeededError } from './models/GroupNameNeededError'; +export type { HandleLogout } from './models/HandleLogout'; +export type { IllegalJWTError } from './models/IllegalJWTError'; +export type { InvalidCredentialsError } from './models/InvalidCredentialsError'; +export type { JwtNotProvidedError } from './models/JwtNotProvidedError'; +export type { Logout } from './models/Logout'; +export type { NoPermissionError } from './models/NoPermissionError'; +export type { Participant } from './models/Participant'; +export type { PasswordNeededError } from './models/PasswordNeededError'; +export type { Permission } from './models/Permission'; +export type { RefreshAuth } from './models/RefreshAuth'; +export type { RefreshTokenCountInvalidError } from './models/RefreshTokenCountInvalidError'; +export type { ResponseEmpty } from './models/ResponseEmpty'; +export type { ResponseParticipant } from './models/ResponseParticipant'; +export type { ResponseRunner } from './models/ResponseRunner'; +export type { ResponseRunnerGroup } from './models/ResponseRunnerGroup'; +export type { ResponseRunnerOrganisation } from './models/ResponseRunnerOrganisation'; +export type { ResponseRunnerTeam } from './models/ResponseRunnerTeam'; +export type { ResponseTrack } from './models/ResponseTrack'; +export type { Runner } from './models/Runner'; +export type { RunnerCard } from './models/RunnerCard'; +export type { RunnerGroup } from './models/RunnerGroup'; +export type { RunnerGroupNeededError } from './models/RunnerGroupNeededError'; +export type { RunnerGroupNotFoundError } from './models/RunnerGroupNotFoundError'; +export type { RunnerIdsNotMatchingError } from './models/RunnerIdsNotMatchingError'; +export type { RunnerNotFoundError } from './models/RunnerNotFoundError'; +export type { RunnerOrganisation } from './models/RunnerOrganisation'; +export type { RunnerOrganisationHasRunnersError } from './models/RunnerOrganisationHasRunnersError'; +export type { RunnerOrganisationHasTeamsError } from './models/RunnerOrganisationHasTeamsError'; +export type { RunnerOrganisationIdsNotMatchingError } from './models/RunnerOrganisationIdsNotMatchingError'; +export type { RunnerOrganisationNotFoundError } from './models/RunnerOrganisationNotFoundError'; +export type { RunnerOrganisationWrongTypeError } from './models/RunnerOrganisationWrongTypeError'; +export type { RunnerTeam } from './models/RunnerTeam'; +export type { RunnerTeamHasRunnersError } from './models/RunnerTeamHasRunnersError'; +export type { RunnerTeamIdsNotMatchingError } from './models/RunnerTeamIdsNotMatchingError'; +export type { RunnerTeamNeedsParentError } from './models/RunnerTeamNeedsParentError'; +export type { RunnerTeamNotFoundError } from './models/RunnerTeamNotFoundError'; +export type { Scan } from './models/Scan'; +export type { ScanStation } from './models/ScanStation'; +export type { Track } from './models/Track'; +export type { TrackIdsNotMatchingError } from './models/TrackIdsNotMatchingError'; +export type { TrackNotFoundError } from './models/TrackNotFoundError'; +export type { TrackScan } from './models/TrackScan'; +export type { UpdateRunner } from './models/UpdateRunner'; +export type { UpdateRunnerTeam } from './models/UpdateRunnerTeam'; +export type { User } from './models/User'; +export type { UserAction } from './models/UserAction'; +export type { UserGroup } from './models/UserGroup'; +export type { UserGroupIdsNotMatchingError } from './models/UserGroupIdsNotMatchingError'; +export type { UserGroupNotFoundError } from './models/UserGroupNotFoundError'; +export type { UserIdsNotMatchingError } from './models/UserIdsNotMatchingError'; +export type { UsernameOrEmailNeededError } from './models/UsernameOrEmailNeededError'; +export type { UserNonexistantOrRefreshtokenInvalidError } from './models/UserNonexistantOrRefreshtokenInvalidError'; +export type { UserNotFoundError } from './models/UserNotFoundError'; +export type { UserNotFoundOrRefreshTokenCountInvalidError } from './models/UserNotFoundOrRefreshTokenCountInvalidError'; +export { AuthService } from './services/AuthService'; +export { RunnerOrganisationService } from './services/RunnerOrganisationService'; +export { RunnerService } from './services/RunnerService'; +export { RunnerTeamService } from './services/RunnerTeamService'; +export { TrackService } from './services/TrackService'; +export { UserGroupService } from './services/UserGroupService'; +export { UserService } from './services/UserService'; diff --git a/dist/models/Address.d.ts b/dist/models/Address.d.ts new file mode 100644 index 0000000..5e87a4c --- /dev/null +++ b/dist/models/Address.d.ts @@ -0,0 +1,9 @@ +export declare type Address = { + id: number; + description?: string; + address1: string; + address2?: string; + postalcode: string; + city: string; + country: string; +}; diff --git a/dist/models/AddressNotFoundError.d.ts b/dist/models/AddressNotFoundError.d.ts new file mode 100644 index 0000000..76b5091 --- /dev/null +++ b/dist/models/AddressNotFoundError.d.ts @@ -0,0 +1,4 @@ +export declare type AddressNotFoundError = { + name: string; + message: string; +}; diff --git a/dist/models/AddressWrongTypeError.d.ts b/dist/models/AddressWrongTypeError.d.ts new file mode 100644 index 0000000..a5bedac --- /dev/null +++ b/dist/models/AddressWrongTypeError.d.ts @@ -0,0 +1,4 @@ +export declare type AddressWrongTypeError = { + name: string; + message: string; +}; diff --git a/dist/models/Auth.d.ts b/dist/models/Auth.d.ts new file mode 100644 index 0000000..6af61d8 --- /dev/null +++ b/dist/models/Auth.d.ts @@ -0,0 +1,6 @@ +export declare type Auth = { + access_token: string; + refresh_token: string; + access_token_expires_at: number; + refresh_token_expires_at: number; +}; diff --git a/dist/models/CreateAuth.d.ts b/dist/models/CreateAuth.d.ts new file mode 100644 index 0000000..a9d41ce --- /dev/null +++ b/dist/models/CreateAuth.d.ts @@ -0,0 +1,5 @@ +export declare type CreateAuth = { + username?: string; + password: string; + email?: string; +}; diff --git a/dist/models/CreateParticipant.d.ts b/dist/models/CreateParticipant.d.ts new file mode 100644 index 0000000..248394a --- /dev/null +++ b/dist/models/CreateParticipant.d.ts @@ -0,0 +1,8 @@ +export declare type CreateParticipant = { + firstname: string; + middlename?: string; + lastname: string; + phone?: string; + email?: string; + address?: number; +}; diff --git a/dist/models/CreateRunner.d.ts b/dist/models/CreateRunner.d.ts new file mode 100644 index 0000000..53849d5 --- /dev/null +++ b/dist/models/CreateRunner.d.ts @@ -0,0 +1,9 @@ +export declare type CreateRunner = { + group: number; + firstname: string; + middlename?: string; + lastname: string; + phone?: string; + email?: string; + address?: number; +}; diff --git a/dist/models/CreateRunnerGroup.d.ts b/dist/models/CreateRunnerGroup.d.ts new file mode 100644 index 0000000..1eb3d0f --- /dev/null +++ b/dist/models/CreateRunnerGroup.d.ts @@ -0,0 +1,4 @@ +export declare type CreateRunnerGroup = { + name: string; + contact?: number; +}; diff --git a/dist/models/CreateRunnerOrganisation.d.ts b/dist/models/CreateRunnerOrganisation.d.ts new file mode 100644 index 0000000..1382366 --- /dev/null +++ b/dist/models/CreateRunnerOrganisation.d.ts @@ -0,0 +1,5 @@ +export declare type CreateRunnerOrganisation = { + address?: number; + name: string; + contact?: number; +}; diff --git a/dist/models/CreateRunnerTeam.d.ts b/dist/models/CreateRunnerTeam.d.ts new file mode 100644 index 0000000..afe890c --- /dev/null +++ b/dist/models/CreateRunnerTeam.d.ts @@ -0,0 +1,5 @@ +export declare type CreateRunnerTeam = { + parentGroup: number; + name: string; + contact?: number; +}; diff --git a/dist/models/CreateTrack.d.ts b/dist/models/CreateTrack.d.ts new file mode 100644 index 0000000..af41510 --- /dev/null +++ b/dist/models/CreateTrack.d.ts @@ -0,0 +1,4 @@ +export declare type CreateTrack = { + name: string; + distance: number; +}; diff --git a/dist/models/CreateUser.d.ts b/dist/models/CreateUser.d.ts new file mode 100644 index 0000000..cb674b0 --- /dev/null +++ b/dist/models/CreateUser.d.ts @@ -0,0 +1,10 @@ +export declare type CreateUser = { + firstname: string; + middlename?: string; + lastname: string; + username?: string; + email?: string; + phone?: string; + password: string; + groupId?: any; +}; diff --git a/dist/models/CreateUserGroup.d.ts b/dist/models/CreateUserGroup.d.ts new file mode 100644 index 0000000..9e9788a --- /dev/null +++ b/dist/models/CreateUserGroup.d.ts @@ -0,0 +1,4 @@ +export declare type CreateUserGroup = { + name: string; + description?: string; +}; diff --git a/dist/models/DistanceDonation.d.ts b/dist/models/DistanceDonation.d.ts new file mode 100644 index 0000000..274ffd3 --- /dev/null +++ b/dist/models/DistanceDonation.d.ts @@ -0,0 +1,6 @@ +export declare type DistanceDonation = { + runner: string; + amountPerDistance: number; + id: number; + donor: string; +}; diff --git a/dist/models/Donation.d.ts b/dist/models/Donation.d.ts new file mode 100644 index 0000000..b78aa6b --- /dev/null +++ b/dist/models/Donation.d.ts @@ -0,0 +1,4 @@ +export declare type Donation = { + id: number; + donor: string; +}; diff --git a/dist/models/ExpiredJWTError.d.ts b/dist/models/ExpiredJWTError.d.ts new file mode 100644 index 0000000..8c49df8 --- /dev/null +++ b/dist/models/ExpiredJWTError.d.ts @@ -0,0 +1,4 @@ +export declare type ExpiredJWTError = { + name: string; + message: string; +}; diff --git a/dist/models/GroupContact.d.ts b/dist/models/GroupContact.d.ts new file mode 100644 index 0000000..2f739c3 --- /dev/null +++ b/dist/models/GroupContact.d.ts @@ -0,0 +1,9 @@ +export declare type GroupContact = { + id: number; + firstname: string; + middlename?: string; + lastname: string; + address?: any; + phone?: string; + email?: string; +}; diff --git a/dist/models/GroupContactNotFoundError.d.ts b/dist/models/GroupContactNotFoundError.d.ts new file mode 100644 index 0000000..5eb718c --- /dev/null +++ b/dist/models/GroupContactNotFoundError.d.ts @@ -0,0 +1,4 @@ +export declare type GroupContactNotFoundError = { + name: string; + message: string; +}; diff --git a/dist/models/GroupContactWrongTypeError.d.ts b/dist/models/GroupContactWrongTypeError.d.ts new file mode 100644 index 0000000..28c612f --- /dev/null +++ b/dist/models/GroupContactWrongTypeError.d.ts @@ -0,0 +1,4 @@ +export declare type GroupContactWrongTypeError = { + name: string; + message: string; +}; diff --git a/dist/models/GroupNameNeededError.d.ts b/dist/models/GroupNameNeededError.d.ts new file mode 100644 index 0000000..6e6954c --- /dev/null +++ b/dist/models/GroupNameNeededError.d.ts @@ -0,0 +1,4 @@ +export declare type GroupNameNeededError = { + name: string; + message: string; +}; diff --git a/dist/models/HandleLogout.d.ts b/dist/models/HandleLogout.d.ts new file mode 100644 index 0000000..e9cf7c8 --- /dev/null +++ b/dist/models/HandleLogout.d.ts @@ -0,0 +1,3 @@ +export declare type HandleLogout = { + token?: string; +}; diff --git a/dist/models/IllegalJWTError.d.ts b/dist/models/IllegalJWTError.d.ts new file mode 100644 index 0000000..b2724ae --- /dev/null +++ b/dist/models/IllegalJWTError.d.ts @@ -0,0 +1,4 @@ +export declare type IllegalJWTError = { + name: string; + message: string; +}; diff --git a/dist/models/InvalidCredentialsError.d.ts b/dist/models/InvalidCredentialsError.d.ts new file mode 100644 index 0000000..c543825 --- /dev/null +++ b/dist/models/InvalidCredentialsError.d.ts @@ -0,0 +1,4 @@ +export declare type InvalidCredentialsError = { + name: string; + message: string; +}; diff --git a/dist/models/JwtNotProvidedError.d.ts b/dist/models/JwtNotProvidedError.d.ts new file mode 100644 index 0000000..8f145f6 --- /dev/null +++ b/dist/models/JwtNotProvidedError.d.ts @@ -0,0 +1,4 @@ +export declare type JwtNotProvidedError = { + name: string; + message: string; +}; diff --git a/dist/models/Logout.d.ts b/dist/models/Logout.d.ts new file mode 100644 index 0000000..ea7adfa --- /dev/null +++ b/dist/models/Logout.d.ts @@ -0,0 +1,3 @@ +export declare type Logout = { + timestamp: string; +}; diff --git a/dist/models/NoPermissionError.d.ts b/dist/models/NoPermissionError.d.ts new file mode 100644 index 0000000..f271a5d --- /dev/null +++ b/dist/models/NoPermissionError.d.ts @@ -0,0 +1,4 @@ +export declare type NoPermissionError = { + name: string; + message: string; +}; diff --git a/dist/models/Participant.d.ts b/dist/models/Participant.d.ts new file mode 100644 index 0000000..1beca73 --- /dev/null +++ b/dist/models/Participant.d.ts @@ -0,0 +1,8 @@ +export declare type Participant = { + id: number; + firstname: string; + middlename?: string; + lastname: string; + phone?: string; + email?: string; +}; diff --git a/dist/models/PasswordNeededError.d.ts b/dist/models/PasswordNeededError.d.ts new file mode 100644 index 0000000..122a59d --- /dev/null +++ b/dist/models/PasswordNeededError.d.ts @@ -0,0 +1,4 @@ +export declare type PasswordNeededError = { + name: string; + message: string; +}; diff --git a/dist/models/Permission.d.ts b/dist/models/Permission.d.ts new file mode 100644 index 0000000..049305e --- /dev/null +++ b/dist/models/Permission.d.ts @@ -0,0 +1,5 @@ +export declare type Permission = { + id: number; + target: string; + action: string; +}; diff --git a/dist/models/RefreshAuth.d.ts b/dist/models/RefreshAuth.d.ts new file mode 100644 index 0000000..a53922a --- /dev/null +++ b/dist/models/RefreshAuth.d.ts @@ -0,0 +1,3 @@ +export declare type RefreshAuth = { + token?: string; +}; diff --git a/dist/models/RefreshTokenCountInvalidError.d.ts b/dist/models/RefreshTokenCountInvalidError.d.ts new file mode 100644 index 0000000..bb15adf --- /dev/null +++ b/dist/models/RefreshTokenCountInvalidError.d.ts @@ -0,0 +1,4 @@ +export declare type RefreshTokenCountInvalidError = { + name: string; + message: string; +}; diff --git a/dist/models/ResponseEmpty.d.ts b/dist/models/ResponseEmpty.d.ts new file mode 100644 index 0000000..e80f56c --- /dev/null +++ b/dist/models/ResponseEmpty.d.ts @@ -0,0 +1,3 @@ +export declare type ResponseEmpty = { + response: string; +}; diff --git a/dist/models/ResponseParticipant.d.ts b/dist/models/ResponseParticipant.d.ts new file mode 100644 index 0000000..c1adc1b --- /dev/null +++ b/dist/models/ResponseParticipant.d.ts @@ -0,0 +1,8 @@ +export declare type ResponseParticipant = { + id: number; + firstname: string; + middlename: string; + lastname: string; + phone: string; + email: string; +}; diff --git a/dist/models/ResponseRunner.d.ts b/dist/models/ResponseRunner.d.ts new file mode 100644 index 0000000..6610270 --- /dev/null +++ b/dist/models/ResponseRunner.d.ts @@ -0,0 +1,11 @@ +import type { RunnerGroup } from './RunnerGroup'; +export declare type ResponseRunner = { + distance: number; + group: RunnerGroup; + id: number; + firstname: string; + middlename: string; + lastname: string; + phone: string; + email: string; +}; diff --git a/dist/models/ResponseRunnerGroup.d.ts b/dist/models/ResponseRunnerGroup.d.ts new file mode 100644 index 0000000..dcdcbfa --- /dev/null +++ b/dist/models/ResponseRunnerGroup.d.ts @@ -0,0 +1,6 @@ +import type { GroupContact } from './GroupContact'; +export declare type ResponseRunnerGroup = { + id: number; + name: string; + contact?: GroupContact; +}; diff --git a/dist/models/ResponseRunnerOrganisation.d.ts b/dist/models/ResponseRunnerOrganisation.d.ts new file mode 100644 index 0000000..1ce4cb5 --- /dev/null +++ b/dist/models/ResponseRunnerOrganisation.d.ts @@ -0,0 +1,9 @@ +import type { Address } from './Address'; +import type { GroupContact } from './GroupContact'; +export declare type ResponseRunnerOrganisation = { + address: Address; + teams: Array; + id: number; + name: string; + contact?: GroupContact; +}; diff --git a/dist/models/ResponseRunnerTeam.d.ts b/dist/models/ResponseRunnerTeam.d.ts new file mode 100644 index 0000000..8ca0aa2 --- /dev/null +++ b/dist/models/ResponseRunnerTeam.d.ts @@ -0,0 +1,8 @@ +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/ResponseTrack.d.ts b/dist/models/ResponseTrack.d.ts new file mode 100644 index 0000000..3fc8129 --- /dev/null +++ b/dist/models/ResponseTrack.d.ts @@ -0,0 +1,5 @@ +export declare type ResponseTrack = { + id: number; + name: string; + distance: number; +}; diff --git a/dist/models/Runner.d.ts b/dist/models/Runner.d.ts new file mode 100644 index 0000000..d11d1d0 --- /dev/null +++ b/dist/models/Runner.d.ts @@ -0,0 +1,10 @@ +export declare type Runner = { + group: string; + distance: number; + id: number; + firstname: string; + middlename?: string; + lastname: string; + phone?: string; + email?: string; +}; diff --git a/dist/models/RunnerCard.d.ts b/dist/models/RunnerCard.d.ts new file mode 100644 index 0000000..ca8c342 --- /dev/null +++ b/dist/models/RunnerCard.d.ts @@ -0,0 +1,6 @@ +export declare type RunnerCard = { + id: number; + runner?: any; + code: string; + enabled: boolean; +}; diff --git a/dist/models/RunnerGroup.d.ts b/dist/models/RunnerGroup.d.ts new file mode 100644 index 0000000..2802e41 --- /dev/null +++ b/dist/models/RunnerGroup.d.ts @@ -0,0 +1,5 @@ +export declare type RunnerGroup = { + id: number; + name: string; + contact?: any; +}; diff --git a/dist/models/RunnerGroupNeededError.d.ts b/dist/models/RunnerGroupNeededError.d.ts new file mode 100644 index 0000000..76d28a3 --- /dev/null +++ b/dist/models/RunnerGroupNeededError.d.ts @@ -0,0 +1,4 @@ +export declare type RunnerGroupNeededError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerGroupNotFoundError.d.ts b/dist/models/RunnerGroupNotFoundError.d.ts new file mode 100644 index 0000000..58522bf --- /dev/null +++ b/dist/models/RunnerGroupNotFoundError.d.ts @@ -0,0 +1,4 @@ +export declare type RunnerGroupNotFoundError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerIdsNotMatchingError.d.ts b/dist/models/RunnerIdsNotMatchingError.d.ts new file mode 100644 index 0000000..406e8ef --- /dev/null +++ b/dist/models/RunnerIdsNotMatchingError.d.ts @@ -0,0 +1,4 @@ +export declare type RunnerIdsNotMatchingError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerNotFoundError.d.ts b/dist/models/RunnerNotFoundError.d.ts new file mode 100644 index 0000000..864be4f --- /dev/null +++ b/dist/models/RunnerNotFoundError.d.ts @@ -0,0 +1,4 @@ +export declare type RunnerNotFoundError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerOrganisation.d.ts b/dist/models/RunnerOrganisation.d.ts new file mode 100644 index 0000000..c2b1a48 --- /dev/null +++ b/dist/models/RunnerOrganisation.d.ts @@ -0,0 +1,6 @@ +export declare type RunnerOrganisation = { + address?: any; + id: number; + name: string; + contact?: any; +}; diff --git a/dist/models/RunnerOrganisationHasRunnersError.d.ts b/dist/models/RunnerOrganisationHasRunnersError.d.ts new file mode 100644 index 0000000..e7e206f --- /dev/null +++ b/dist/models/RunnerOrganisationHasRunnersError.d.ts @@ -0,0 +1,4 @@ +export declare type RunnerOrganisationHasRunnersError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerOrganisationHasTeamsError.d.ts b/dist/models/RunnerOrganisationHasTeamsError.d.ts new file mode 100644 index 0000000..3a18223 --- /dev/null +++ b/dist/models/RunnerOrganisationHasTeamsError.d.ts @@ -0,0 +1,4 @@ +export declare type RunnerOrganisationHasTeamsError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerOrganisationIdsNotMatchingError.d.ts b/dist/models/RunnerOrganisationIdsNotMatchingError.d.ts new file mode 100644 index 0000000..2c09ee6 --- /dev/null +++ b/dist/models/RunnerOrganisationIdsNotMatchingError.d.ts @@ -0,0 +1,4 @@ +export declare type RunnerOrganisationIdsNotMatchingError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerOrganisationNotFoundError.d.ts b/dist/models/RunnerOrganisationNotFoundError.d.ts new file mode 100644 index 0000000..165d97d --- /dev/null +++ b/dist/models/RunnerOrganisationNotFoundError.d.ts @@ -0,0 +1,4 @@ +export declare type RunnerOrganisationNotFoundError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerOrganisationWrongTypeError.d.ts b/dist/models/RunnerOrganisationWrongTypeError.d.ts new file mode 100644 index 0000000..6f581f5 --- /dev/null +++ b/dist/models/RunnerOrganisationWrongTypeError.d.ts @@ -0,0 +1,4 @@ +export declare type RunnerOrganisationWrongTypeError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerTeam.d.ts b/dist/models/RunnerTeam.d.ts new file mode 100644 index 0000000..aca5305 --- /dev/null +++ b/dist/models/RunnerTeam.d.ts @@ -0,0 +1,6 @@ +export declare type RunnerTeam = { + parentGroup: string; + id: number; + name: string; + contact?: any; +}; diff --git a/dist/models/RunnerTeamHasRunnersError.d.ts b/dist/models/RunnerTeamHasRunnersError.d.ts new file mode 100644 index 0000000..d0fd4a8 --- /dev/null +++ b/dist/models/RunnerTeamHasRunnersError.d.ts @@ -0,0 +1,4 @@ +export declare type RunnerTeamHasRunnersError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerTeamIdsNotMatchingError.d.ts b/dist/models/RunnerTeamIdsNotMatchingError.d.ts new file mode 100644 index 0000000..2c209b9 --- /dev/null +++ b/dist/models/RunnerTeamIdsNotMatchingError.d.ts @@ -0,0 +1,4 @@ +export declare type RunnerTeamIdsNotMatchingError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerTeamNeedsParentError.d.ts b/dist/models/RunnerTeamNeedsParentError.d.ts new file mode 100644 index 0000000..4feac81 --- /dev/null +++ b/dist/models/RunnerTeamNeedsParentError.d.ts @@ -0,0 +1,4 @@ +export declare type RunnerTeamNeedsParentError = { + name: string; + message: string; +}; diff --git a/dist/models/RunnerTeamNotFoundError.d.ts b/dist/models/RunnerTeamNotFoundError.d.ts new file mode 100644 index 0000000..4844b93 --- /dev/null +++ b/dist/models/RunnerTeamNotFoundError.d.ts @@ -0,0 +1,4 @@ +export declare type RunnerTeamNotFoundError = { + name: string; + message: string; +}; diff --git a/dist/models/Scan.d.ts b/dist/models/Scan.d.ts new file mode 100644 index 0000000..78a570f --- /dev/null +++ b/dist/models/Scan.d.ts @@ -0,0 +1,6 @@ +export declare type Scan = { + id: number; + runner: string; + distance: number; + valid: boolean; +}; diff --git a/dist/models/ScanStation.d.ts b/dist/models/ScanStation.d.ts new file mode 100644 index 0000000..97092f2 --- /dev/null +++ b/dist/models/ScanStation.d.ts @@ -0,0 +1,7 @@ +export declare type ScanStation = { + id: number; + description?: string; + track: string; + key: string; + enabled: boolean; +}; diff --git a/dist/models/Track.d.ts b/dist/models/Track.d.ts new file mode 100644 index 0000000..3f51ef3 --- /dev/null +++ b/dist/models/Track.d.ts @@ -0,0 +1,5 @@ +export declare type Track = { + id: number; + name: string; + distance: number; +}; diff --git a/dist/models/TrackIdsNotMatchingError.d.ts b/dist/models/TrackIdsNotMatchingError.d.ts new file mode 100644 index 0000000..6d0a4f5 --- /dev/null +++ b/dist/models/TrackIdsNotMatchingError.d.ts @@ -0,0 +1,4 @@ +export declare type TrackIdsNotMatchingError = { + name: string; + message: string; +}; diff --git a/dist/models/TrackNotFoundError.d.ts b/dist/models/TrackNotFoundError.d.ts new file mode 100644 index 0000000..2475604 --- /dev/null +++ b/dist/models/TrackNotFoundError.d.ts @@ -0,0 +1,4 @@ +export declare type TrackNotFoundError = { + name: string; + message: string; +}; diff --git a/dist/models/TrackScan.d.ts b/dist/models/TrackScan.d.ts new file mode 100644 index 0000000..3b028c4 --- /dev/null +++ b/dist/models/TrackScan.d.ts @@ -0,0 +1,10 @@ +export declare type TrackScan = { + track: string; + card: string; + station: string; + distance: number; + timestamp: string; + id: number; + runner: string; + valid: boolean; +}; diff --git a/dist/models/UpdateRunner.d.ts b/dist/models/UpdateRunner.d.ts new file mode 100644 index 0000000..2fe1c0d --- /dev/null +++ b/dist/models/UpdateRunner.d.ts @@ -0,0 +1,11 @@ +import type { RunnerGroup } from './RunnerGroup'; +export declare type UpdateRunner = { + id: number; + group: RunnerGroup; + firstname: string; + middlename?: string; + lastname: string; + phone?: string; + email?: string; + address?: number; +}; diff --git a/dist/models/UpdateRunnerTeam.d.ts b/dist/models/UpdateRunnerTeam.d.ts new file mode 100644 index 0000000..921d39a --- /dev/null +++ b/dist/models/UpdateRunnerTeam.d.ts @@ -0,0 +1,7 @@ +import type { RunnerOrganisation } from './RunnerOrganisation'; +export declare type UpdateRunnerTeam = { + id: number; + parentGroup: RunnerOrganisation; + name: string; + contact?: number; +}; diff --git a/dist/models/User.d.ts b/dist/models/User.d.ts new file mode 100644 index 0000000..cd4b571 --- /dev/null +++ b/dist/models/User.d.ts @@ -0,0 +1,17 @@ +export declare type User = { + id: number; + uuid: string; + email: string; + phone?: string; + username: string; + firstname: string; + middlename?: string; + lastname: string; + password: string; + permissions?: any; + groups?: any; + enabled: boolean; + refreshTokenCount: number; + profilePic?: string; + actions?: any; +}; diff --git a/dist/models/UserAction.d.ts b/dist/models/UserAction.d.ts new file mode 100644 index 0000000..874e3c5 --- /dev/null +++ b/dist/models/UserAction.d.ts @@ -0,0 +1,6 @@ +export declare type UserAction = { + id: number; + target: string; + action: string; + changed?: string; +}; diff --git a/dist/models/UserGroup.d.ts b/dist/models/UserGroup.d.ts new file mode 100644 index 0000000..d6da624 --- /dev/null +++ b/dist/models/UserGroup.d.ts @@ -0,0 +1,5 @@ +export declare type UserGroup = { + id: number; + name: string; + description?: string; +}; diff --git a/dist/models/UserGroupIdsNotMatchingError.d.ts b/dist/models/UserGroupIdsNotMatchingError.d.ts new file mode 100644 index 0000000..09101d8 --- /dev/null +++ b/dist/models/UserGroupIdsNotMatchingError.d.ts @@ -0,0 +1,4 @@ +export declare type UserGroupIdsNotMatchingError = { + name: string; + message: string; +}; diff --git a/dist/models/UserGroupNotFoundError.d.ts b/dist/models/UserGroupNotFoundError.d.ts new file mode 100644 index 0000000..72ebe69 --- /dev/null +++ b/dist/models/UserGroupNotFoundError.d.ts @@ -0,0 +1,4 @@ +export declare type UserGroupNotFoundError = { + name: string; + message: string; +}; diff --git a/dist/models/UserIdsNotMatchingError.d.ts b/dist/models/UserIdsNotMatchingError.d.ts new file mode 100644 index 0000000..99b8e68 --- /dev/null +++ b/dist/models/UserIdsNotMatchingError.d.ts @@ -0,0 +1,4 @@ +export declare type UserIdsNotMatchingError = { + name: string; + message: string; +}; diff --git a/dist/models/UserNonexistantOrRefreshtokenInvalidError.d.ts b/dist/models/UserNonexistantOrRefreshtokenInvalidError.d.ts new file mode 100644 index 0000000..119858a --- /dev/null +++ b/dist/models/UserNonexistantOrRefreshtokenInvalidError.d.ts @@ -0,0 +1,4 @@ +export declare type UserNonexistantOrRefreshtokenInvalidError = { + name: string; + message: string; +}; diff --git a/dist/models/UserNotFoundError.d.ts b/dist/models/UserNotFoundError.d.ts new file mode 100644 index 0000000..ed418ef --- /dev/null +++ b/dist/models/UserNotFoundError.d.ts @@ -0,0 +1,4 @@ +export declare type UserNotFoundError = { + name: string; + message: string; +}; diff --git a/dist/models/UserNotFoundOrRefreshTokenCountInvalidError.d.ts b/dist/models/UserNotFoundOrRefreshTokenCountInvalidError.d.ts new file mode 100644 index 0000000..6afa694 --- /dev/null +++ b/dist/models/UserNotFoundOrRefreshTokenCountInvalidError.d.ts @@ -0,0 +1,4 @@ +export declare type UserNotFoundOrRefreshTokenCountInvalidError = { + name: string; + message: string; +}; diff --git a/dist/models/UsernameOrEmailNeededError.d.ts b/dist/models/UsernameOrEmailNeededError.d.ts new file mode 100644 index 0000000..3cf293f --- /dev/null +++ b/dist/models/UsernameOrEmailNeededError.d.ts @@ -0,0 +1,4 @@ +export declare type UsernameOrEmailNeededError = { + name: string; + message: string; +}; diff --git a/dist/services/AuthService.d.ts b/dist/services/AuthService.d.ts new file mode 100644 index 0000000..5b3e6fe --- /dev/null +++ b/dist/services/AuthService.d.ts @@ -0,0 +1,38 @@ +import type { Auth } from '../models/Auth'; +import type { CreateAuth } from '../models/CreateAuth'; +import type { HandleLogout } from '../models/HandleLogout'; +import type { IllegalJWTError } from '../models/IllegalJWTError'; +import type { InvalidCredentialsError } from '../models/InvalidCredentialsError'; +import type { JwtNotProvidedError } from '../models/JwtNotProvidedError'; +import type { Logout } from '../models/Logout'; +import type { PasswordNeededError } from '../models/PasswordNeededError'; +import type { RefreshAuth } from '../models/RefreshAuth'; +import type { RefreshTokenCountInvalidError } from '../models/RefreshTokenCountInvalidError'; +import type { UsernameOrEmailNeededError } from '../models/UsernameOrEmailNeededError'; +import type { UserNotFoundError } from '../models/UserNotFoundError'; +export declare class AuthService { + /** + * Login + * Create a new access token object + * @param requestBody CreateAuth + * @result any + * @throws ApiError + */ + static authControllerLogin(requestBody?: CreateAuth): Promise<(Auth | InvalidCredentialsError | UserNotFoundError | UsernameOrEmailNeededError | PasswordNeededError | InvalidCredentialsError)>; + /** + * Logout + * Create a new access token object + * @param requestBody HandleLogout + * @result any + * @throws ApiError + */ + static authControllerLogout(requestBody?: HandleLogout): Promise<(Logout | InvalidCredentialsError | UserNotFoundError | UsernameOrEmailNeededError | PasswordNeededError | InvalidCredentialsError)>; + /** + * Refresh + * refresh a access token + * @param requestBody RefreshAuth + * @result any + * @throws ApiError + */ + static authControllerRefresh(requestBody?: RefreshAuth): Promise<(Auth | JwtNotProvidedError | IllegalJWTError | UserNotFoundError | RefreshTokenCountInvalidError)>; +} diff --git a/dist/services/RunnerOrganisationService.d.ts b/dist/services/RunnerOrganisationService.d.ts new file mode 100644 index 0000000..6a502b6 --- /dev/null +++ b/dist/services/RunnerOrganisationService.d.ts @@ -0,0 +1,48 @@ +import type { CreateRunnerOrganisation } from '../models/CreateRunnerOrganisation'; +import type { ResponseEmpty } from '../models/ResponseEmpty'; +import type { ResponseRunnerOrganisation } from '../models/ResponseRunnerOrganisation'; +import type { RunnerOrganisation } from '../models/RunnerOrganisation'; +export declare class RunnerOrganisationService { + /** + * Get all + * Lists all runnerOrganisations. + * @result ResponseRunnerOrganisation + * @throws ApiError + */ + static runnerOrganisationControllerGetAll(): Promise>; + /** + * Post + * Create a new runnerOrganisation object (id will be generated automagicly). + * @param requestBody CreateRunnerOrganisation + * @result ResponseRunnerOrganisation + * @throws ApiError + */ + static runnerOrganisationControllerPost(requestBody?: CreateRunnerOrganisation): Promise; + /** + * Get one + * Returns a runnerOrganisation of a specified id (if it exists) + * @param id + * @result ResponseRunnerOrganisation + * @throws ApiError + */ + static runnerOrganisationControllerGetOne(id: number): Promise; + /** + * Put + * Update a runnerOrganisation object (id can't be changed). + * @param id + * @param requestBody RunnerOrganisation + * @result ResponseRunnerOrganisation + * @throws ApiError + */ + static runnerOrganisationControllerPut(id: number, requestBody?: RunnerOrganisation): Promise; + /** + * Remove + * Delete a specified runnerOrganisation (if it exists). + * @param id + * @param force + * @result ResponseRunnerOrganisation + * @result ResponseEmpty + * @throws ApiError + */ + static runnerOrganisationControllerRemove(id: number, force?: boolean): Promise; +} diff --git a/dist/services/RunnerService.d.ts b/dist/services/RunnerService.d.ts new file mode 100644 index 0000000..108151d --- /dev/null +++ b/dist/services/RunnerService.d.ts @@ -0,0 +1,50 @@ +import type { CreateRunner } from '../models/CreateRunner'; +import type { ResponseEmpty } from '../models/ResponseEmpty'; +import type { ResponseRunner } from '../models/ResponseRunner'; +import type { RunnerGroupNeededError } from '../models/RunnerGroupNeededError'; +import type { RunnerGroupNotFoundError } from '../models/RunnerGroupNotFoundError'; +import type { UpdateRunner } from '../models/UpdateRunner'; +export declare class RunnerService { + /** + * Get all + * Lists all runners. + * @result ResponseRunner + * @throws ApiError + */ + static runnerControllerGetAll(): Promise>; + /** + * Post + * Create a new runner object (id will be generated automagicly). + * @param requestBody CreateRunner + * @result any + * @throws ApiError + */ + static runnerControllerPost(requestBody?: CreateRunner): Promise<(ResponseRunner | RunnerGroupNeededError | RunnerGroupNotFoundError)>; + /** + * Get one + * Returns a runner of a specified id (if it exists) + * @param id + * @result ResponseRunner + * @throws ApiError + */ + static runnerControllerGetOne(id: number): Promise; + /** + * Put + * Update a runner object (id can't be changed). + * @param id + * @param requestBody UpdateRunner + * @result ResponseRunner + * @throws ApiError + */ + static runnerControllerPut(id: number, requestBody?: UpdateRunner): Promise; + /** + * Remove + * Delete a specified runner (if it exists). + * @param id + * @param force + * @result ResponseRunner + * @result ResponseEmpty + * @throws ApiError + */ + static runnerControllerRemove(id: number, force?: boolean): Promise; +} diff --git a/dist/services/RunnerTeamService.d.ts b/dist/services/RunnerTeamService.d.ts new file mode 100644 index 0000000..53adc31 --- /dev/null +++ b/dist/services/RunnerTeamService.d.ts @@ -0,0 +1,48 @@ +import type { CreateRunnerTeam } from '../models/CreateRunnerTeam'; +import type { ResponseEmpty } from '../models/ResponseEmpty'; +import type { ResponseRunnerTeam } from '../models/ResponseRunnerTeam'; +import type { UpdateRunnerTeam } from '../models/UpdateRunnerTeam'; +export declare class RunnerTeamService { + /** + * Get all + * Lists all runnerTeams. + * @result ResponseRunnerTeam + * @throws ApiError + */ + static runnerTeamControllerGetAll(): Promise>; + /** + * Post + * Create a new runnerTeam object (id will be generated automagicly). + * @param requestBody CreateRunnerTeam + * @result ResponseRunnerTeam + * @throws ApiError + */ + static runnerTeamControllerPost(requestBody?: CreateRunnerTeam): Promise; + /** + * Get one + * Returns a runnerTeam of a specified id (if it exists) + * @param id + * @result ResponseRunnerTeam + * @throws ApiError + */ + static runnerTeamControllerGetOne(id: number): Promise; + /** + * Put + * Update a runnerTeam object (id can't be changed). + * @param id + * @param requestBody UpdateRunnerTeam + * @result ResponseRunnerTeam + * @throws ApiError + */ + static runnerTeamControllerPut(id: number, requestBody?: UpdateRunnerTeam): Promise; + /** + * Remove + * Delete a specified runnerTeam (if it exists). + * @param id + * @param force + * @result ResponseRunnerTeam + * @result ResponseEmpty + * @throws ApiError + */ + static runnerTeamControllerRemove(id: number, force?: boolean): Promise; +} diff --git a/dist/services/TrackService.d.ts b/dist/services/TrackService.d.ts new file mode 100644 index 0000000..3a96e6d --- /dev/null +++ b/dist/services/TrackService.d.ts @@ -0,0 +1,47 @@ +import type { CreateTrack } from '../models/CreateTrack'; +import type { ResponseEmpty } from '../models/ResponseEmpty'; +import type { ResponseTrack } from '../models/ResponseTrack'; +import type { Track } from '../models/Track'; +export declare class TrackService { + /** + * Get all + * Lists all tracks. + * @result ResponseTrack + * @throws ApiError + */ + static trackControllerGetAll(): Promise>; + /** + * Post + * Create a new track object (id will be generated automagicly). + * @param requestBody CreateTrack + * @result ResponseTrack + * @throws ApiError + */ + static trackControllerPost(requestBody?: CreateTrack): Promise; + /** + * Get one + * Returns a track of a specified id (if it exists) + * @param id + * @result ResponseTrack + * @throws ApiError + */ + static trackControllerGetOne(id: number): Promise; + /** + * Put + * Update a track object (id can't be changed). + * @param id + * @param requestBody Track + * @result ResponseTrack + * @throws ApiError + */ + static trackControllerPut(id: number, requestBody?: Track): Promise; + /** + * Remove + * Delete a specified track (if it exists). + * @param id + * @result ResponseTrack + * @result ResponseEmpty + * @throws ApiError + */ + static trackControllerRemove(id: number): Promise; +} diff --git a/dist/services/UserGroupService.d.ts b/dist/services/UserGroupService.d.ts new file mode 100644 index 0000000..1c8faa9 --- /dev/null +++ b/dist/services/UserGroupService.d.ts @@ -0,0 +1,47 @@ +import type { CreateUserGroup } from '../models/CreateUserGroup'; +import type { ResponseEmpty } from '../models/ResponseEmpty'; +import type { UserGroup } from '../models/UserGroup'; +import type { UserGroupNotFoundError } from '../models/UserGroupNotFoundError'; +export declare class UserGroupService { + /** + * Get all + * Lists all usergroups. + * @result UserGroup + * @throws ApiError + */ + static userGroupControllerGetAll(): Promise>; + /** + * Post + * Create a new usergroup object (id will be generated automagicly). + * @param requestBody CreateUserGroup + * @result any + * @throws ApiError + */ + static userGroupControllerPost(requestBody?: CreateUserGroup): Promise<(UserGroup | UserGroupNotFoundError)>; + /** + * Get one + * Returns a usergroup of a specified id (if it exists) + * @param id + * @result UserGroup + * @throws ApiError + */ + static userGroupControllerGetOne(id: number): Promise; + /** + * Put + * Update a usergroup object (id can't be changed). + * @param id + * @param requestBody UserGroup + * @result UserGroup + * @throws ApiError + */ + static userGroupControllerPut(id: number, requestBody?: UserGroup): Promise; + /** + * Remove + * Delete a specified usergroup (if it exists). + * @param id + * @result UserGroup + * @result ResponseEmpty + * @throws ApiError + */ + static userGroupControllerRemove(id: number): Promise; +} diff --git a/dist/services/UserService.d.ts b/dist/services/UserService.d.ts new file mode 100644 index 0000000..de9f51e --- /dev/null +++ b/dist/services/UserService.d.ts @@ -0,0 +1,47 @@ +import type { CreateUser } from '../models/CreateUser'; +import type { ResponseEmpty } from '../models/ResponseEmpty'; +import type { User } from '../models/User'; +import type { UserGroupNotFoundError } from '../models/UserGroupNotFoundError'; +export declare class UserService { + /** + * Get all + * Lists all users. + * @result User + * @throws ApiError + */ + static userControllerGetAll(): Promise>; + /** + * Post + * Create a new user object (id will be generated automagicly). + * @param requestBody CreateUser + * @result any + * @throws ApiError + */ + static userControllerPost(requestBody?: CreateUser): Promise<(User | UserGroupNotFoundError)>; + /** + * Get one + * Returns a user of a specified id (if it exists) + * @param id + * @result User + * @throws ApiError + */ + static userControllerGetOne(id: number): Promise; + /** + * Put + * Update a user object (id can't be changed). + * @param id + * @param requestBody User + * @result User + * @throws ApiError + */ + static userControllerPut(id: number, requestBody?: User): Promise; + /** + * Remove + * Delete a specified runner (if it exists). + * @param id + * @result User + * @result ResponseEmpty + * @throws ApiError + */ + static userControllerRemove(id: number): Promise; +}