new lib version [CI SKIP]
This commit is contained in:
parent
55cdf79f9c
commit
823fb926a5
8
dist/core/ApiError.d.ts
vendored
Normal file
8
dist/core/ApiError.d.ts
vendored
Normal file
@ -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);
|
||||
}
|
11
dist/core/ApiRequestOptions.d.ts
vendored
Normal file
11
dist/core/ApiRequestOptions.d.ts
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
export declare type ApiRequestOptions = {
|
||||
readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH';
|
||||
readonly path: string;
|
||||
readonly cookies?: Record<string, any>;
|
||||
readonly headers?: Record<string, any>;
|
||||
readonly query?: Record<string, any>;
|
||||
readonly formData?: Record<string, any>;
|
||||
readonly body?: any;
|
||||
readonly responseHeader?: string;
|
||||
readonly errors?: Record<number, string>;
|
||||
};
|
7
dist/core/ApiResult.d.ts
vendored
Normal file
7
dist/core/ApiResult.d.ts
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
export declare type ApiResult = {
|
||||
readonly url: string;
|
||||
readonly ok: boolean;
|
||||
readonly status: number;
|
||||
readonly statusText: string;
|
||||
readonly body: any;
|
||||
};
|
13
dist/core/OpenAPI.d.ts
vendored
Normal file
13
dist/core/OpenAPI.d.ts
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
declare type Resolver<T> = () => Promise<T>;
|
||||
declare type Headers = Record<string, string>;
|
||||
declare type Config = {
|
||||
BASE: string;
|
||||
VERSION: string;
|
||||
WITH_CREDENTIALS: boolean;
|
||||
TOKEN?: string | Resolver<string>;
|
||||
USERNAME?: string | Resolver<string>;
|
||||
PASSWORD?: string | Resolver<string>;
|
||||
HEADERS?: Headers | Resolver<Headers>;
|
||||
};
|
||||
export declare const OpenAPI: Config;
|
||||
export {};
|
9
dist/core/request.d.ts
vendored
Normal file
9
dist/core/request.d.ts
vendored
Normal file
@ -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<ApiResult>;
|
83
dist/index.d.ts
vendored
Normal file
83
dist/index.d.ts
vendored
Normal file
@ -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';
|
9
dist/models/Address.d.ts
vendored
Normal file
9
dist/models/Address.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
export declare type Address = {
|
||||
id: number;
|
||||
description?: string;
|
||||
address1: string;
|
||||
address2?: string;
|
||||
postalcode: string;
|
||||
city: string;
|
||||
country: string;
|
||||
};
|
4
dist/models/AddressNotFoundError.d.ts
vendored
Normal file
4
dist/models/AddressNotFoundError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type AddressNotFoundError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
4
dist/models/AddressWrongTypeError.d.ts
vendored
Normal file
4
dist/models/AddressWrongTypeError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type AddressWrongTypeError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
6
dist/models/Auth.d.ts
vendored
Normal file
6
dist/models/Auth.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
export declare type Auth = {
|
||||
access_token: string;
|
||||
refresh_token: string;
|
||||
access_token_expires_at: number;
|
||||
refresh_token_expires_at: number;
|
||||
};
|
5
dist/models/CreateAuth.d.ts
vendored
Normal file
5
dist/models/CreateAuth.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
export declare type CreateAuth = {
|
||||
username?: string;
|
||||
password: string;
|
||||
email?: string;
|
||||
};
|
8
dist/models/CreateParticipant.d.ts
vendored
Normal file
8
dist/models/CreateParticipant.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
export declare type CreateParticipant = {
|
||||
firstname: string;
|
||||
middlename?: string;
|
||||
lastname: string;
|
||||
phone?: string;
|
||||
email?: string;
|
||||
address?: number;
|
||||
};
|
9
dist/models/CreateRunner.d.ts
vendored
Normal file
9
dist/models/CreateRunner.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
export declare type CreateRunner = {
|
||||
group: number;
|
||||
firstname: string;
|
||||
middlename?: string;
|
||||
lastname: string;
|
||||
phone?: string;
|
||||
email?: string;
|
||||
address?: number;
|
||||
};
|
4
dist/models/CreateRunnerGroup.d.ts
vendored
Normal file
4
dist/models/CreateRunnerGroup.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type CreateRunnerGroup = {
|
||||
name: string;
|
||||
contact?: number;
|
||||
};
|
5
dist/models/CreateRunnerOrganisation.d.ts
vendored
Normal file
5
dist/models/CreateRunnerOrganisation.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
export declare type CreateRunnerOrganisation = {
|
||||
address?: number;
|
||||
name: string;
|
||||
contact?: number;
|
||||
};
|
5
dist/models/CreateRunnerTeam.d.ts
vendored
Normal file
5
dist/models/CreateRunnerTeam.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
export declare type CreateRunnerTeam = {
|
||||
parentGroup: number;
|
||||
name: string;
|
||||
contact?: number;
|
||||
};
|
4
dist/models/CreateTrack.d.ts
vendored
Normal file
4
dist/models/CreateTrack.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type CreateTrack = {
|
||||
name: string;
|
||||
distance: number;
|
||||
};
|
10
dist/models/CreateUser.d.ts
vendored
Normal file
10
dist/models/CreateUser.d.ts
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
export declare type CreateUser = {
|
||||
firstname: string;
|
||||
middlename?: string;
|
||||
lastname: string;
|
||||
username?: string;
|
||||
email?: string;
|
||||
phone?: string;
|
||||
password: string;
|
||||
groupId?: any;
|
||||
};
|
4
dist/models/CreateUserGroup.d.ts
vendored
Normal file
4
dist/models/CreateUserGroup.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type CreateUserGroup = {
|
||||
name: string;
|
||||
description?: string;
|
||||
};
|
6
dist/models/DistanceDonation.d.ts
vendored
Normal file
6
dist/models/DistanceDonation.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
export declare type DistanceDonation = {
|
||||
runner: string;
|
||||
amountPerDistance: number;
|
||||
id: number;
|
||||
donor: string;
|
||||
};
|
4
dist/models/Donation.d.ts
vendored
Normal file
4
dist/models/Donation.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type Donation = {
|
||||
id: number;
|
||||
donor: string;
|
||||
};
|
4
dist/models/ExpiredJWTError.d.ts
vendored
Normal file
4
dist/models/ExpiredJWTError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type ExpiredJWTError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
9
dist/models/GroupContact.d.ts
vendored
Normal file
9
dist/models/GroupContact.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
export declare type GroupContact = {
|
||||
id: number;
|
||||
firstname: string;
|
||||
middlename?: string;
|
||||
lastname: string;
|
||||
address?: any;
|
||||
phone?: string;
|
||||
email?: string;
|
||||
};
|
4
dist/models/GroupContactNotFoundError.d.ts
vendored
Normal file
4
dist/models/GroupContactNotFoundError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type GroupContactNotFoundError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
4
dist/models/GroupContactWrongTypeError.d.ts
vendored
Normal file
4
dist/models/GroupContactWrongTypeError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type GroupContactWrongTypeError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
4
dist/models/GroupNameNeededError.d.ts
vendored
Normal file
4
dist/models/GroupNameNeededError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type GroupNameNeededError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
3
dist/models/HandleLogout.d.ts
vendored
Normal file
3
dist/models/HandleLogout.d.ts
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
export declare type HandleLogout = {
|
||||
token?: string;
|
||||
};
|
4
dist/models/IllegalJWTError.d.ts
vendored
Normal file
4
dist/models/IllegalJWTError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type IllegalJWTError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
4
dist/models/InvalidCredentialsError.d.ts
vendored
Normal file
4
dist/models/InvalidCredentialsError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type InvalidCredentialsError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
4
dist/models/JwtNotProvidedError.d.ts
vendored
Normal file
4
dist/models/JwtNotProvidedError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type JwtNotProvidedError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
3
dist/models/Logout.d.ts
vendored
Normal file
3
dist/models/Logout.d.ts
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
export declare type Logout = {
|
||||
timestamp: string;
|
||||
};
|
4
dist/models/NoPermissionError.d.ts
vendored
Normal file
4
dist/models/NoPermissionError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type NoPermissionError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
8
dist/models/Participant.d.ts
vendored
Normal file
8
dist/models/Participant.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
export declare type Participant = {
|
||||
id: number;
|
||||
firstname: string;
|
||||
middlename?: string;
|
||||
lastname: string;
|
||||
phone?: string;
|
||||
email?: string;
|
||||
};
|
4
dist/models/PasswordNeededError.d.ts
vendored
Normal file
4
dist/models/PasswordNeededError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type PasswordNeededError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
5
dist/models/Permission.d.ts
vendored
Normal file
5
dist/models/Permission.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
export declare type Permission = {
|
||||
id: number;
|
||||
target: string;
|
||||
action: string;
|
||||
};
|
3
dist/models/RefreshAuth.d.ts
vendored
Normal file
3
dist/models/RefreshAuth.d.ts
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
export declare type RefreshAuth = {
|
||||
token?: string;
|
||||
};
|
4
dist/models/RefreshTokenCountInvalidError.d.ts
vendored
Normal file
4
dist/models/RefreshTokenCountInvalidError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type RefreshTokenCountInvalidError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
3
dist/models/ResponseEmpty.d.ts
vendored
Normal file
3
dist/models/ResponseEmpty.d.ts
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
export declare type ResponseEmpty = {
|
||||
response: string;
|
||||
};
|
8
dist/models/ResponseParticipant.d.ts
vendored
Normal file
8
dist/models/ResponseParticipant.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
export declare type ResponseParticipant = {
|
||||
id: number;
|
||||
firstname: string;
|
||||
middlename: string;
|
||||
lastname: string;
|
||||
phone: string;
|
||||
email: string;
|
||||
};
|
11
dist/models/ResponseRunner.d.ts
vendored
Normal file
11
dist/models/ResponseRunner.d.ts
vendored
Normal file
@ -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;
|
||||
};
|
6
dist/models/ResponseRunnerGroup.d.ts
vendored
Normal file
6
dist/models/ResponseRunnerGroup.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
import type { GroupContact } from './GroupContact';
|
||||
export declare type ResponseRunnerGroup = {
|
||||
id: number;
|
||||
name: string;
|
||||
contact?: GroupContact;
|
||||
};
|
9
dist/models/ResponseRunnerOrganisation.d.ts
vendored
Normal file
9
dist/models/ResponseRunnerOrganisation.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
import type { Address } from './Address';
|
||||
import type { GroupContact } from './GroupContact';
|
||||
export declare type ResponseRunnerOrganisation = {
|
||||
address: Address;
|
||||
teams: Array<any>;
|
||||
id: number;
|
||||
name: string;
|
||||
contact?: GroupContact;
|
||||
};
|
8
dist/models/ResponseRunnerTeam.d.ts
vendored
Normal file
8
dist/models/ResponseRunnerTeam.d.ts
vendored
Normal file
@ -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;
|
||||
};
|
5
dist/models/ResponseTrack.d.ts
vendored
Normal file
5
dist/models/ResponseTrack.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
export declare type ResponseTrack = {
|
||||
id: number;
|
||||
name: string;
|
||||
distance: number;
|
||||
};
|
10
dist/models/Runner.d.ts
vendored
Normal file
10
dist/models/Runner.d.ts
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
export declare type Runner = {
|
||||
group: string;
|
||||
distance: number;
|
||||
id: number;
|
||||
firstname: string;
|
||||
middlename?: string;
|
||||
lastname: string;
|
||||
phone?: string;
|
||||
email?: string;
|
||||
};
|
6
dist/models/RunnerCard.d.ts
vendored
Normal file
6
dist/models/RunnerCard.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
export declare type RunnerCard = {
|
||||
id: number;
|
||||
runner?: any;
|
||||
code: string;
|
||||
enabled: boolean;
|
||||
};
|
5
dist/models/RunnerGroup.d.ts
vendored
Normal file
5
dist/models/RunnerGroup.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
export declare type RunnerGroup = {
|
||||
id: number;
|
||||
name: string;
|
||||
contact?: any;
|
||||
};
|
4
dist/models/RunnerGroupNeededError.d.ts
vendored
Normal file
4
dist/models/RunnerGroupNeededError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type RunnerGroupNeededError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
4
dist/models/RunnerGroupNotFoundError.d.ts
vendored
Normal file
4
dist/models/RunnerGroupNotFoundError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type RunnerGroupNotFoundError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
4
dist/models/RunnerIdsNotMatchingError.d.ts
vendored
Normal file
4
dist/models/RunnerIdsNotMatchingError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type RunnerIdsNotMatchingError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
4
dist/models/RunnerNotFoundError.d.ts
vendored
Normal file
4
dist/models/RunnerNotFoundError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type RunnerNotFoundError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
6
dist/models/RunnerOrganisation.d.ts
vendored
Normal file
6
dist/models/RunnerOrganisation.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
export declare type RunnerOrganisation = {
|
||||
address?: any;
|
||||
id: number;
|
||||
name: string;
|
||||
contact?: any;
|
||||
};
|
4
dist/models/RunnerOrganisationHasRunnersError.d.ts
vendored
Normal file
4
dist/models/RunnerOrganisationHasRunnersError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type RunnerOrganisationHasRunnersError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
4
dist/models/RunnerOrganisationHasTeamsError.d.ts
vendored
Normal file
4
dist/models/RunnerOrganisationHasTeamsError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type RunnerOrganisationHasTeamsError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
4
dist/models/RunnerOrganisationIdsNotMatchingError.d.ts
vendored
Normal file
4
dist/models/RunnerOrganisationIdsNotMatchingError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type RunnerOrganisationIdsNotMatchingError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
4
dist/models/RunnerOrganisationNotFoundError.d.ts
vendored
Normal file
4
dist/models/RunnerOrganisationNotFoundError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type RunnerOrganisationNotFoundError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
4
dist/models/RunnerOrganisationWrongTypeError.d.ts
vendored
Normal file
4
dist/models/RunnerOrganisationWrongTypeError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type RunnerOrganisationWrongTypeError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
6
dist/models/RunnerTeam.d.ts
vendored
Normal file
6
dist/models/RunnerTeam.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
export declare type RunnerTeam = {
|
||||
parentGroup: string;
|
||||
id: number;
|
||||
name: string;
|
||||
contact?: any;
|
||||
};
|
4
dist/models/RunnerTeamHasRunnersError.d.ts
vendored
Normal file
4
dist/models/RunnerTeamHasRunnersError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type RunnerTeamHasRunnersError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
4
dist/models/RunnerTeamIdsNotMatchingError.d.ts
vendored
Normal file
4
dist/models/RunnerTeamIdsNotMatchingError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type RunnerTeamIdsNotMatchingError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
4
dist/models/RunnerTeamNeedsParentError.d.ts
vendored
Normal file
4
dist/models/RunnerTeamNeedsParentError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type RunnerTeamNeedsParentError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
4
dist/models/RunnerTeamNotFoundError.d.ts
vendored
Normal file
4
dist/models/RunnerTeamNotFoundError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type RunnerTeamNotFoundError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
6
dist/models/Scan.d.ts
vendored
Normal file
6
dist/models/Scan.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
export declare type Scan = {
|
||||
id: number;
|
||||
runner: string;
|
||||
distance: number;
|
||||
valid: boolean;
|
||||
};
|
7
dist/models/ScanStation.d.ts
vendored
Normal file
7
dist/models/ScanStation.d.ts
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
export declare type ScanStation = {
|
||||
id: number;
|
||||
description?: string;
|
||||
track: string;
|
||||
key: string;
|
||||
enabled: boolean;
|
||||
};
|
5
dist/models/Track.d.ts
vendored
Normal file
5
dist/models/Track.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
export declare type Track = {
|
||||
id: number;
|
||||
name: string;
|
||||
distance: number;
|
||||
};
|
4
dist/models/TrackIdsNotMatchingError.d.ts
vendored
Normal file
4
dist/models/TrackIdsNotMatchingError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type TrackIdsNotMatchingError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
4
dist/models/TrackNotFoundError.d.ts
vendored
Normal file
4
dist/models/TrackNotFoundError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type TrackNotFoundError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
10
dist/models/TrackScan.d.ts
vendored
Normal file
10
dist/models/TrackScan.d.ts
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
export declare type TrackScan = {
|
||||
track: string;
|
||||
card: string;
|
||||
station: string;
|
||||
distance: number;
|
||||
timestamp: string;
|
||||
id: number;
|
||||
runner: string;
|
||||
valid: boolean;
|
||||
};
|
11
dist/models/UpdateRunner.d.ts
vendored
Normal file
11
dist/models/UpdateRunner.d.ts
vendored
Normal file
@ -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;
|
||||
};
|
7
dist/models/UpdateRunnerTeam.d.ts
vendored
Normal file
7
dist/models/UpdateRunnerTeam.d.ts
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
import type { RunnerOrganisation } from './RunnerOrganisation';
|
||||
export declare type UpdateRunnerTeam = {
|
||||
id: number;
|
||||
parentGroup: RunnerOrganisation;
|
||||
name: string;
|
||||
contact?: number;
|
||||
};
|
17
dist/models/User.d.ts
vendored
Normal file
17
dist/models/User.d.ts
vendored
Normal file
@ -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;
|
||||
};
|
6
dist/models/UserAction.d.ts
vendored
Normal file
6
dist/models/UserAction.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
export declare type UserAction = {
|
||||
id: number;
|
||||
target: string;
|
||||
action: string;
|
||||
changed?: string;
|
||||
};
|
5
dist/models/UserGroup.d.ts
vendored
Normal file
5
dist/models/UserGroup.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
export declare type UserGroup = {
|
||||
id: number;
|
||||
name: string;
|
||||
description?: string;
|
||||
};
|
4
dist/models/UserGroupIdsNotMatchingError.d.ts
vendored
Normal file
4
dist/models/UserGroupIdsNotMatchingError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type UserGroupIdsNotMatchingError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
4
dist/models/UserGroupNotFoundError.d.ts
vendored
Normal file
4
dist/models/UserGroupNotFoundError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type UserGroupNotFoundError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
4
dist/models/UserIdsNotMatchingError.d.ts
vendored
Normal file
4
dist/models/UserIdsNotMatchingError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type UserIdsNotMatchingError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
4
dist/models/UserNonexistantOrRefreshtokenInvalidError.d.ts
vendored
Normal file
4
dist/models/UserNonexistantOrRefreshtokenInvalidError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type UserNonexistantOrRefreshtokenInvalidError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
4
dist/models/UserNotFoundError.d.ts
vendored
Normal file
4
dist/models/UserNotFoundError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type UserNotFoundError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
4
dist/models/UserNotFoundOrRefreshTokenCountInvalidError.d.ts
vendored
Normal file
4
dist/models/UserNotFoundOrRefreshTokenCountInvalidError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type UserNotFoundOrRefreshTokenCountInvalidError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
4
dist/models/UsernameOrEmailNeededError.d.ts
vendored
Normal file
4
dist/models/UsernameOrEmailNeededError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare type UsernameOrEmailNeededError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
38
dist/services/AuthService.d.ts
vendored
Normal file
38
dist/services/AuthService.d.ts
vendored
Normal file
@ -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)>;
|
||||
}
|
48
dist/services/RunnerOrganisationService.d.ts
vendored
Normal file
48
dist/services/RunnerOrganisationService.d.ts
vendored
Normal file
@ -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<Array<ResponseRunnerOrganisation>>;
|
||||
/**
|
||||
* Post
|
||||
* Create a new runnerOrganisation object (id will be generated automagicly).
|
||||
* @param requestBody CreateRunnerOrganisation
|
||||
* @result ResponseRunnerOrganisation
|
||||
* @throws ApiError
|
||||
*/
|
||||
static runnerOrganisationControllerPost(requestBody?: CreateRunnerOrganisation): Promise<ResponseRunnerOrganisation>;
|
||||
/**
|
||||
* Get one
|
||||
* Returns a runnerOrganisation of a specified id (if it exists)
|
||||
* @param id
|
||||
* @result ResponseRunnerOrganisation
|
||||
* @throws ApiError
|
||||
*/
|
||||
static runnerOrganisationControllerGetOne(id: number): Promise<ResponseRunnerOrganisation>;
|
||||
/**
|
||||
* 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<ResponseRunnerOrganisation>;
|
||||
/**
|
||||
* 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<ResponseRunnerOrganisation | ResponseEmpty>;
|
||||
}
|
50
dist/services/RunnerService.d.ts
vendored
Normal file
50
dist/services/RunnerService.d.ts
vendored
Normal file
@ -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<Array<ResponseRunner>>;
|
||||
/**
|
||||
* 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<ResponseRunner>;
|
||||
/**
|
||||
* 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<ResponseRunner>;
|
||||
/**
|
||||
* 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<ResponseRunner | ResponseEmpty>;
|
||||
}
|
48
dist/services/RunnerTeamService.d.ts
vendored
Normal file
48
dist/services/RunnerTeamService.d.ts
vendored
Normal file
@ -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<Array<ResponseRunnerTeam>>;
|
||||
/**
|
||||
* Post
|
||||
* Create a new runnerTeam object (id will be generated automagicly).
|
||||
* @param requestBody CreateRunnerTeam
|
||||
* @result ResponseRunnerTeam
|
||||
* @throws ApiError
|
||||
*/
|
||||
static runnerTeamControllerPost(requestBody?: CreateRunnerTeam): Promise<ResponseRunnerTeam>;
|
||||
/**
|
||||
* Get one
|
||||
* Returns a runnerTeam of a specified id (if it exists)
|
||||
* @param id
|
||||
* @result ResponseRunnerTeam
|
||||
* @throws ApiError
|
||||
*/
|
||||
static runnerTeamControllerGetOne(id: number): Promise<ResponseRunnerTeam>;
|
||||
/**
|
||||
* 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<ResponseRunnerTeam>;
|
||||
/**
|
||||
* 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<ResponseRunnerTeam | ResponseEmpty>;
|
||||
}
|
47
dist/services/TrackService.d.ts
vendored
Normal file
47
dist/services/TrackService.d.ts
vendored
Normal file
@ -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<Array<ResponseTrack>>;
|
||||
/**
|
||||
* Post
|
||||
* Create a new track object (id will be generated automagicly).
|
||||
* @param requestBody CreateTrack
|
||||
* @result ResponseTrack
|
||||
* @throws ApiError
|
||||
*/
|
||||
static trackControllerPost(requestBody?: CreateTrack): Promise<ResponseTrack>;
|
||||
/**
|
||||
* Get one
|
||||
* Returns a track of a specified id (if it exists)
|
||||
* @param id
|
||||
* @result ResponseTrack
|
||||
* @throws ApiError
|
||||
*/
|
||||
static trackControllerGetOne(id: number): Promise<ResponseTrack>;
|
||||
/**
|
||||
* 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<ResponseTrack>;
|
||||
/**
|
||||
* Remove
|
||||
* Delete a specified track (if it exists).
|
||||
* @param id
|
||||
* @result ResponseTrack
|
||||
* @result ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static trackControllerRemove(id: number): Promise<ResponseTrack | ResponseEmpty>;
|
||||
}
|
47
dist/services/UserGroupService.d.ts
vendored
Normal file
47
dist/services/UserGroupService.d.ts
vendored
Normal file
@ -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<Array<UserGroup>>;
|
||||
/**
|
||||
* 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<UserGroup>;
|
||||
/**
|
||||
* 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<UserGroup>;
|
||||
/**
|
||||
* Remove
|
||||
* Delete a specified usergroup (if it exists).
|
||||
* @param id
|
||||
* @result UserGroup
|
||||
* @result ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static userGroupControllerRemove(id: number): Promise<UserGroup | ResponseEmpty>;
|
||||
}
|
47
dist/services/UserService.d.ts
vendored
Normal file
47
dist/services/UserService.d.ts
vendored
Normal file
@ -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<Array<User>>;
|
||||
/**
|
||||
* 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<User>;
|
||||
/**
|
||||
* 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<User>;
|
||||
/**
|
||||
* Remove
|
||||
* Delete a specified runner (if it exists).
|
||||
* @param id
|
||||
* @result User
|
||||
* @result ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static userControllerRemove(id: number): Promise<User | ResponseEmpty>;
|
||||
}
|
Reference in New Issue
Block a user