new lib version [CI SKIP]
This commit is contained in:
parent
33157c934e
commit
5b44c086f2
16
dist/core/ApiError.d.ts
vendored
16
dist/core/ApiError.d.ts
vendored
@ -1,8 +1,8 @@
|
|||||||
import type { ApiResult } from './ApiResult';
|
import type { ApiResult } from './ApiResult';
|
||||||
export declare class ApiError extends Error {
|
export declare class ApiError extends Error {
|
||||||
readonly url: string;
|
readonly url: string;
|
||||||
readonly status: number;
|
readonly status: number;
|
||||||
readonly statusText: string;
|
readonly statusText: string;
|
||||||
readonly body: any;
|
readonly body: any;
|
||||||
constructor(response: ApiResult, message: string);
|
constructor(response: ApiResult, message: string);
|
||||||
}
|
}
|
||||||
|
26
dist/core/ApiError.js
vendored
26
dist/core/ApiError.js
vendored
@ -1,13 +1,13 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.ApiError = void 0;
|
exports.ApiError = void 0;
|
||||||
class ApiError extends Error {
|
class ApiError extends Error {
|
||||||
constructor(response, message) {
|
constructor(response, message) {
|
||||||
super(message);
|
super(message);
|
||||||
this.url = response.url;
|
this.url = response.url;
|
||||||
this.status = response.status;
|
this.status = response.status;
|
||||||
this.statusText = response.statusText;
|
this.statusText = response.statusText;
|
||||||
this.body = response.body;
|
this.body = response.body;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
exports.ApiError = ApiError;
|
exports.ApiError = ApiError;
|
||||||
|
22
dist/core/ApiRequestOptions.d.ts
vendored
22
dist/core/ApiRequestOptions.d.ts
vendored
@ -1,11 +1,11 @@
|
|||||||
export declare type ApiRequestOptions = {
|
export declare type ApiRequestOptions = {
|
||||||
readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH';
|
readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH';
|
||||||
readonly path: string;
|
readonly path: string;
|
||||||
readonly cookies?: Record<string, any>;
|
readonly cookies?: Record<string, any>;
|
||||||
readonly headers?: Record<string, any>;
|
readonly headers?: Record<string, any>;
|
||||||
readonly query?: Record<string, any>;
|
readonly query?: Record<string, any>;
|
||||||
readonly formData?: Record<string, any>;
|
readonly formData?: Record<string, any>;
|
||||||
readonly body?: any;
|
readonly body?: any;
|
||||||
readonly responseHeader?: string;
|
readonly responseHeader?: string;
|
||||||
readonly errors?: Record<number, string>;
|
readonly errors?: Record<number, string>;
|
||||||
};
|
};
|
||||||
|
4
dist/core/ApiRequestOptions.js
vendored
4
dist/core/ApiRequestOptions.js
vendored
@ -1,2 +1,2 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
14
dist/core/ApiResult.d.ts
vendored
14
dist/core/ApiResult.d.ts
vendored
@ -1,7 +1,7 @@
|
|||||||
export declare type ApiResult = {
|
export declare type ApiResult = {
|
||||||
readonly url: string;
|
readonly url: string;
|
||||||
readonly ok: boolean;
|
readonly ok: boolean;
|
||||||
readonly status: number;
|
readonly status: number;
|
||||||
readonly statusText: string;
|
readonly statusText: string;
|
||||||
readonly body: any;
|
readonly body: any;
|
||||||
};
|
};
|
||||||
|
4
dist/core/ApiResult.js
vendored
4
dist/core/ApiResult.js
vendored
@ -1,2 +1,2 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
26
dist/core/OpenAPI.d.ts
vendored
26
dist/core/OpenAPI.d.ts
vendored
@ -1,13 +1,13 @@
|
|||||||
declare type Resolver<T> = () => Promise<T>;
|
declare type Resolver<T> = () => Promise<T>;
|
||||||
declare type Headers = Record<string, string>;
|
declare type Headers = Record<string, string>;
|
||||||
declare type Config = {
|
declare type Config = {
|
||||||
BASE: string;
|
BASE: string;
|
||||||
VERSION: string;
|
VERSION: string;
|
||||||
WITH_CREDENTIALS: boolean;
|
WITH_CREDENTIALS: boolean;
|
||||||
TOKEN?: string | Resolver<string>;
|
TOKEN?: string | Resolver<string>;
|
||||||
USERNAME?: string | Resolver<string>;
|
USERNAME?: string | Resolver<string>;
|
||||||
PASSWORD?: string | Resolver<string>;
|
PASSWORD?: string | Resolver<string>;
|
||||||
HEADERS?: Headers | Resolver<Headers>;
|
HEADERS?: Headers | Resolver<Headers>;
|
||||||
};
|
};
|
||||||
export declare const OpenAPI: Config;
|
export declare const OpenAPI: Config;
|
||||||
export {};
|
export {};
|
||||||
|
24
dist/core/OpenAPI.js
vendored
24
dist/core/OpenAPI.js
vendored
@ -1,12 +1,12 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.OpenAPI = void 0;
|
exports.OpenAPI = void 0;
|
||||||
exports.OpenAPI = {
|
exports.OpenAPI = {
|
||||||
BASE: '',
|
BASE: '',
|
||||||
VERSION: '1.0.0',
|
VERSION: '0.0.5',
|
||||||
WITH_CREDENTIALS: false,
|
WITH_CREDENTIALS: false,
|
||||||
TOKEN: undefined,
|
TOKEN: undefined,
|
||||||
USERNAME: undefined,
|
USERNAME: undefined,
|
||||||
PASSWORD: undefined,
|
PASSWORD: undefined,
|
||||||
HEADERS: undefined,
|
HEADERS: undefined,
|
||||||
};
|
};
|
||||||
|
18
dist/core/request.d.ts
vendored
18
dist/core/request.d.ts
vendored
@ -1,9 +1,9 @@
|
|||||||
import type { ApiRequestOptions } from './ApiRequestOptions';
|
import type { ApiRequestOptions } from './ApiRequestOptions';
|
||||||
import type { ApiResult } from './ApiResult';
|
import type { ApiResult } from './ApiResult';
|
||||||
/**
|
/**
|
||||||
* Request using fetch client
|
* Request using fetch client
|
||||||
* @param options The request options from the the service
|
* @param options The request options from the the service
|
||||||
* @result ApiResult
|
* @returns ApiResult
|
||||||
* @throws ApiError
|
* @throws ApiError
|
||||||
*/
|
*/
|
||||||
export declare function request(options: ApiRequestOptions): Promise<ApiResult>;
|
export declare function request(options: ApiRequestOptions): Promise<ApiResult>;
|
||||||
|
369
dist/core/request.js
vendored
369
dist/core/request.js
vendored
@ -1,183 +1,186 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.request = void 0;
|
exports.request = void 0;
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
const ApiError_1 = require("./ApiError");
|
const ApiError_1 = require("./ApiError");
|
||||||
const OpenAPI_1 = require("./OpenAPI");
|
const OpenAPI_1 = require("./OpenAPI");
|
||||||
function isDefined(value) {
|
function isDefined(value) {
|
||||||
return value !== undefined && value !== null;
|
return value !== undefined && value !== null;
|
||||||
}
|
}
|
||||||
function isString(value) {
|
function isString(value) {
|
||||||
return typeof value === 'string';
|
return typeof value === 'string';
|
||||||
}
|
}
|
||||||
function isStringWithValue(value) {
|
function isStringWithValue(value) {
|
||||||
return isString(value) && value !== '';
|
return isString(value) && value !== '';
|
||||||
}
|
}
|
||||||
function isBlob(value) {
|
function isBlob(value) {
|
||||||
return value instanceof Blob;
|
return value instanceof Blob;
|
||||||
}
|
}
|
||||||
function getQueryString(params) {
|
function getQueryString(params) {
|
||||||
const qs = [];
|
const qs = [];
|
||||||
Object.keys(params).forEach(key => {
|
Object.keys(params).forEach(key => {
|
||||||
const value = params[key];
|
const value = params[key];
|
||||||
if (isDefined(value)) {
|
if (isDefined(value)) {
|
||||||
if (Array.isArray(value)) {
|
if (Array.isArray(value)) {
|
||||||
value.forEach(value => {
|
value.forEach(value => {
|
||||||
qs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);
|
qs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
qs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);
|
qs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (qs.length > 0) {
|
if (qs.length > 0) {
|
||||||
return `?${qs.join('&')}`;
|
return `?${qs.join('&')}`;
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
function getUrl(options) {
|
function getUrl(options) {
|
||||||
const path = options.path.replace(/[:]/g, '_');
|
const path = options.path.replace(/[:]/g, '_');
|
||||||
const url = `${OpenAPI_1.OpenAPI.BASE}${path}`;
|
const url = `${OpenAPI_1.OpenAPI.BASE}${path}`;
|
||||||
if (options.query) {
|
if (options.query) {
|
||||||
return `${url}${getQueryString(options.query)}`;
|
return `${url}${getQueryString(options.query)}`;
|
||||||
}
|
}
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
function getFormData(params) {
|
function getFormData(params) {
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
Object.keys(params).forEach(key => {
|
Object.keys(params).forEach(key => {
|
||||||
const value = params[key];
|
const value = params[key];
|
||||||
if (isDefined(value)) {
|
if (isDefined(value)) {
|
||||||
formData.append(key, value);
|
formData.append(key, value);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return formData;
|
return formData;
|
||||||
}
|
}
|
||||||
async function resolve(resolver) {
|
async function resolve(resolver) {
|
||||||
if (typeof resolver === 'function') {
|
if (typeof resolver === 'function') {
|
||||||
return resolver();
|
return resolver();
|
||||||
}
|
}
|
||||||
return resolver;
|
return resolver;
|
||||||
}
|
}
|
||||||
async function getHeaders(options) {
|
async function getHeaders(options) {
|
||||||
const headers = new Headers({
|
const headers = new Headers({
|
||||||
Accept: 'application/json',
|
Accept: 'application/json',
|
||||||
...OpenAPI_1.OpenAPI.HEADERS,
|
...OpenAPI_1.OpenAPI.HEADERS,
|
||||||
...options.headers,
|
...options.headers,
|
||||||
});
|
});
|
||||||
const token = await resolve(OpenAPI_1.OpenAPI.TOKEN);
|
const token = await resolve(OpenAPI_1.OpenAPI.TOKEN);
|
||||||
const username = await resolve(OpenAPI_1.OpenAPI.USERNAME);
|
const username = await resolve(OpenAPI_1.OpenAPI.USERNAME);
|
||||||
const password = await resolve(OpenAPI_1.OpenAPI.PASSWORD);
|
const password = await resolve(OpenAPI_1.OpenAPI.PASSWORD);
|
||||||
if (isStringWithValue(token)) {
|
if (isStringWithValue(token)) {
|
||||||
headers.append('Authorization', `Bearer ${token}`);
|
headers.append('Authorization', `Bearer ${token}`);
|
||||||
}
|
}
|
||||||
if (isStringWithValue(username) && isStringWithValue(password)) {
|
if (isStringWithValue(username) && isStringWithValue(password)) {
|
||||||
const credentials = btoa(`${username}:${password}`);
|
const credentials = btoa(`${username}:${password}`);
|
||||||
headers.append('Authorization', `Basic ${credentials}`);
|
headers.append('Authorization', `Basic ${credentials}`);
|
||||||
}
|
}
|
||||||
if (options.body) {
|
if (options.body) {
|
||||||
if (isBlob(options.body)) {
|
if (isBlob(options.body)) {
|
||||||
headers.append('Content-Type', options.body.type || 'application/octet-stream');
|
headers.append('Content-Type', options.body.type || 'application/octet-stream');
|
||||||
}
|
}
|
||||||
else if (isString(options.body)) {
|
else if (isString(options.body)) {
|
||||||
headers.append('Content-Type', 'text/plain');
|
headers.append('Content-Type', 'text/plain');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
headers.append('Content-Type', 'application/json');
|
headers.append('Content-Type', 'application/json');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return headers;
|
return headers;
|
||||||
}
|
}
|
||||||
function getRequestBody(options) {
|
function getRequestBody(options) {
|
||||||
if (options.formData) {
|
if (options.formData) {
|
||||||
return getFormData(options.formData);
|
return getFormData(options.formData);
|
||||||
}
|
}
|
||||||
if (options.body) {
|
if (options.body) {
|
||||||
if (isString(options.body) || isBlob(options.body)) {
|
if (isString(options.body) || isBlob(options.body)) {
|
||||||
return options.body;
|
return options.body;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return JSON.stringify(options.body);
|
return JSON.stringify(options.body);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
async function sendRequest(options, url) {
|
async function sendRequest(options, url) {
|
||||||
const request = {
|
const request = {
|
||||||
method: options.method,
|
method: options.method,
|
||||||
headers: await getHeaders(options),
|
headers: await getHeaders(options),
|
||||||
body: getRequestBody(options),
|
body: getRequestBody(options),
|
||||||
};
|
};
|
||||||
return await fetch(url, request);
|
if (OpenAPI_1.OpenAPI.WITH_CREDENTIALS) {
|
||||||
}
|
request.credentials = 'include';
|
||||||
function getResponseHeader(response, responseHeader) {
|
}
|
||||||
if (responseHeader) {
|
return await fetch(url, request);
|
||||||
const content = response.headers.get(responseHeader);
|
}
|
||||||
if (isString(content)) {
|
function getResponseHeader(response, responseHeader) {
|
||||||
return content;
|
if (responseHeader) {
|
||||||
}
|
const content = response.headers.get(responseHeader);
|
||||||
}
|
if (isString(content)) {
|
||||||
return null;
|
return content;
|
||||||
}
|
}
|
||||||
async function getResponseBody(response) {
|
}
|
||||||
try {
|
return null;
|
||||||
const contentType = response.headers.get('Content-Type');
|
}
|
||||||
if (contentType) {
|
async function getResponseBody(response) {
|
||||||
const isJSON = contentType.toLowerCase().startsWith('application/json');
|
try {
|
||||||
if (isJSON) {
|
const contentType = response.headers.get('Content-Type');
|
||||||
return await response.json();
|
if (contentType) {
|
||||||
}
|
const isJSON = contentType.toLowerCase().startsWith('application/json');
|
||||||
else {
|
if (isJSON) {
|
||||||
return await response.text();
|
return await response.json();
|
||||||
}
|
}
|
||||||
}
|
else {
|
||||||
}
|
return await response.text();
|
||||||
catch (error) {
|
}
|
||||||
console.error(error);
|
}
|
||||||
}
|
}
|
||||||
return null;
|
catch (error) {
|
||||||
}
|
console.error(error);
|
||||||
function catchErrors(options, result) {
|
}
|
||||||
const errors = {
|
return null;
|
||||||
400: 'Bad Request',
|
}
|
||||||
401: 'Unauthorized',
|
function catchErrors(options, result) {
|
||||||
403: 'Forbidden',
|
const errors = {
|
||||||
404: 'Not Found',
|
400: 'Bad Request',
|
||||||
500: 'Internal Server Error',
|
401: 'Unauthorized',
|
||||||
502: 'Bad Gateway',
|
403: 'Forbidden',
|
||||||
503: 'Service Unavailable',
|
404: 'Not Found',
|
||||||
...options.errors,
|
500: 'Internal Server Error',
|
||||||
};
|
502: 'Bad Gateway',
|
||||||
const error = errors[result.status];
|
503: 'Service Unavailable',
|
||||||
if (error) {
|
...options.errors,
|
||||||
throw new ApiError_1.ApiError(result, error);
|
};
|
||||||
}
|
const error = errors[result.status];
|
||||||
if (!result.ok) {
|
if (error) {
|
||||||
throw new ApiError_1.ApiError(result, 'Generic Error');
|
throw new ApiError_1.ApiError(result, error);
|
||||||
}
|
}
|
||||||
}
|
if (!result.ok) {
|
||||||
/**
|
throw new ApiError_1.ApiError(result, 'Generic Error');
|
||||||
* Request using fetch client
|
}
|
||||||
* @param options The request options from the the service
|
}
|
||||||
* @result ApiResult
|
/**
|
||||||
* @throws ApiError
|
* Request using fetch client
|
||||||
*/
|
* @param options The request options from the the service
|
||||||
async function request(options) {
|
* @returns ApiResult
|
||||||
const url = getUrl(options);
|
* @throws ApiError
|
||||||
const response = await sendRequest(options, url);
|
*/
|
||||||
const responseBody = await getResponseBody(response);
|
async function request(options) {
|
||||||
const responseHeader = getResponseHeader(response, options.responseHeader);
|
const url = getUrl(options);
|
||||||
const result = {
|
const response = await sendRequest(options, url);
|
||||||
url,
|
const responseBody = await getResponseBody(response);
|
||||||
ok: response.ok,
|
const responseHeader = getResponseHeader(response, options.responseHeader);
|
||||||
status: response.status,
|
const result = {
|
||||||
statusText: response.statusText,
|
url,
|
||||||
body: responseHeader || responseBody,
|
ok: response.ok,
|
||||||
};
|
status: response.status,
|
||||||
catchErrors(options, result);
|
statusText: response.statusText,
|
||||||
return result;
|
body: responseHeader || responseBody,
|
||||||
}
|
};
|
||||||
exports.request = request;
|
catchErrors(options, result);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
exports.request = request;
|
||||||
|
199
dist/index.d.ts
vendored
199
dist/index.d.ts
vendored
@ -1,83 +1,116 @@
|
|||||||
export { ApiError } from './core/ApiError';
|
export { ApiError } from './core/ApiError';
|
||||||
export { OpenAPI } from './core/OpenAPI';
|
export { OpenAPI } from './core/OpenAPI';
|
||||||
export type { Address } from './models/Address';
|
export type { Address } from './models/Address';
|
||||||
export type { AddressNotFoundError } from './models/AddressNotFoundError';
|
export type { AddressNotFoundError } from './models/AddressNotFoundError';
|
||||||
export type { AddressWrongTypeError } from './models/AddressWrongTypeError';
|
export type { AddressWrongTypeError } from './models/AddressWrongTypeError';
|
||||||
export type { Auth } from './models/Auth';
|
export type { Auth } from './models/Auth';
|
||||||
export type { CreateAuth } from './models/CreateAuth';
|
export type { CreateAuth } from './models/CreateAuth';
|
||||||
export type { CreateParticipant } from './models/CreateParticipant';
|
export type { CreateParticipant } from './models/CreateParticipant';
|
||||||
export type { CreateRunner } from './models/CreateRunner';
|
export { CreatePermission } from './models/CreatePermission';
|
||||||
export type { CreateRunnerGroup } from './models/CreateRunnerGroup';
|
export type { CreateResetToken } from './models/CreateResetToken';
|
||||||
export type { CreateRunnerOrganisation } from './models/CreateRunnerOrganisation';
|
export type { CreateRunner } from './models/CreateRunner';
|
||||||
export type { CreateRunnerTeam } from './models/CreateRunnerTeam';
|
export type { CreateRunnerGroup } from './models/CreateRunnerGroup';
|
||||||
export type { CreateTrack } from './models/CreateTrack';
|
export type { CreateRunnerOrganisation } from './models/CreateRunnerOrganisation';
|
||||||
export type { CreateUser } from './models/CreateUser';
|
export type { CreateRunnerTeam } from './models/CreateRunnerTeam';
|
||||||
export type { CreateUserGroup } from './models/CreateUserGroup';
|
export type { CreateStatsClient } from './models/CreateStatsClient';
|
||||||
export type { DistanceDonation } from './models/DistanceDonation';
|
export type { CreateTrack } from './models/CreateTrack';
|
||||||
export type { Donation } from './models/Donation';
|
export type { CreateUser } from './models/CreateUser';
|
||||||
export type { ExpiredJWTError } from './models/ExpiredJWTError';
|
export type { CreateUserGroup } from './models/CreateUserGroup';
|
||||||
export type { GroupContact } from './models/GroupContact';
|
export type { DistanceDonation } from './models/DistanceDonation';
|
||||||
export type { GroupContactNotFoundError } from './models/GroupContactNotFoundError';
|
export type { Donation } from './models/Donation';
|
||||||
export type { GroupContactWrongTypeError } from './models/GroupContactWrongTypeError';
|
export type { GroupContact } from './models/GroupContact';
|
||||||
export type { GroupNameNeededError } from './models/GroupNameNeededError';
|
export type { GroupContactNotFoundError } from './models/GroupContactNotFoundError';
|
||||||
export type { HandleLogout } from './models/HandleLogout';
|
export type { GroupContactWrongTypeError } from './models/GroupContactWrongTypeError';
|
||||||
export type { IllegalJWTError } from './models/IllegalJWTError';
|
export type { GroupNameNeededError } from './models/GroupNameNeededError';
|
||||||
export type { InvalidCredentialsError } from './models/InvalidCredentialsError';
|
export type { HandleLogout } from './models/HandleLogout';
|
||||||
export type { JwtNotProvidedError } from './models/JwtNotProvidedError';
|
export type { IllegalJWTError } from './models/IllegalJWTError';
|
||||||
export type { Logout } from './models/Logout';
|
export type { ImportRunner } from './models/ImportRunner';
|
||||||
export type { NoPermissionError } from './models/NoPermissionError';
|
export type { InvalidCredentialsError } from './models/InvalidCredentialsError';
|
||||||
export type { Participant } from './models/Participant';
|
export type { JwtNotProvidedError } from './models/JwtNotProvidedError';
|
||||||
export type { PasswordNeededError } from './models/PasswordNeededError';
|
export type { JwtUser } from './models/JwtUser';
|
||||||
export type { Permission } from './models/Permission';
|
export type { Logout } from './models/Logout';
|
||||||
export type { RefreshAuth } from './models/RefreshAuth';
|
export type { NoPermissionError } from './models/NoPermissionError';
|
||||||
export type { RefreshTokenCountInvalidError } from './models/RefreshTokenCountInvalidError';
|
export type { Participant } from './models/Participant';
|
||||||
export type { ResponseEmpty } from './models/ResponseEmpty';
|
export type { PasswordNeededError } from './models/PasswordNeededError';
|
||||||
export type { ResponseParticipant } from './models/ResponseParticipant';
|
export { Permission } from './models/Permission';
|
||||||
export type { ResponseRunner } from './models/ResponseRunner';
|
export type { PermissionIdsNotMatchingError } from './models/PermissionIdsNotMatchingError';
|
||||||
export type { ResponseRunnerGroup } from './models/ResponseRunnerGroup';
|
export type { PermissionNeedsPrincipalError } from './models/PermissionNeedsPrincipalError';
|
||||||
export type { ResponseRunnerOrganisation } from './models/ResponseRunnerOrganisation';
|
export type { PermissionNotFoundError } from './models/PermissionNotFoundError';
|
||||||
export type { ResponseRunnerTeam } from './models/ResponseRunnerTeam';
|
export type { Principal } from './models/Principal';
|
||||||
export type { ResponseTrack } from './models/ResponseTrack';
|
export type { PrincipalNotFoundError } from './models/PrincipalNotFoundError';
|
||||||
export type { Runner } from './models/Runner';
|
export type { PrincipalWrongTypeError } from './models/PrincipalWrongTypeError';
|
||||||
export type { RunnerCard } from './models/RunnerCard';
|
export type { RefreshAuth } from './models/RefreshAuth';
|
||||||
export type { RunnerGroup } from './models/RunnerGroup';
|
export type { RefreshTokenCountInvalidError } from './models/RefreshTokenCountInvalidError';
|
||||||
export type { RunnerGroupNeededError } from './models/RunnerGroupNeededError';
|
export type { ResetAlreadyRequestedError } from './models/ResetAlreadyRequestedError';
|
||||||
export type { RunnerGroupNotFoundError } from './models/RunnerGroupNotFoundError';
|
export type { ResetPassword } from './models/ResetPassword';
|
||||||
export type { RunnerIdsNotMatchingError } from './models/RunnerIdsNotMatchingError';
|
export type { ResponseEmpty } from './models/ResponseEmpty';
|
||||||
export type { RunnerNotFoundError } from './models/RunnerNotFoundError';
|
export type { ResponseParticipant } from './models/ResponseParticipant';
|
||||||
export type { RunnerOrganisation } from './models/RunnerOrganisation';
|
export { ResponsePermission } from './models/ResponsePermission';
|
||||||
export type { RunnerOrganisationHasRunnersError } from './models/RunnerOrganisationHasRunnersError';
|
export type { ResponsePrincipal } from './models/ResponsePrincipal';
|
||||||
export type { RunnerOrganisationHasTeamsError } from './models/RunnerOrganisationHasTeamsError';
|
export type { ResponseRunner } from './models/ResponseRunner';
|
||||||
export type { RunnerOrganisationIdsNotMatchingError } from './models/RunnerOrganisationIdsNotMatchingError';
|
export type { ResponseRunnerGroup } from './models/ResponseRunnerGroup';
|
||||||
export type { RunnerOrganisationNotFoundError } from './models/RunnerOrganisationNotFoundError';
|
export type { ResponseRunnerOrganisation } from './models/ResponseRunnerOrganisation';
|
||||||
export type { RunnerOrganisationWrongTypeError } from './models/RunnerOrganisationWrongTypeError';
|
export type { ResponseRunnerTeam } from './models/ResponseRunnerTeam';
|
||||||
export type { RunnerTeam } from './models/RunnerTeam';
|
export type { ResponseStats } from './models/ResponseStats';
|
||||||
export type { RunnerTeamHasRunnersError } from './models/RunnerTeamHasRunnersError';
|
export type { ResponseStatsClient } from './models/ResponseStatsClient';
|
||||||
export type { RunnerTeamIdsNotMatchingError } from './models/RunnerTeamIdsNotMatchingError';
|
export type { ResponseStatsOrgnisation } from './models/ResponseStatsOrgnisation';
|
||||||
export type { RunnerTeamNeedsParentError } from './models/RunnerTeamNeedsParentError';
|
export type { ResponseStatsRunner } from './models/ResponseStatsRunner';
|
||||||
export type { RunnerTeamNotFoundError } from './models/RunnerTeamNotFoundError';
|
export type { ResponseStatsTeam } from './models/ResponseStatsTeam';
|
||||||
export type { Scan } from './models/Scan';
|
export type { ResponseTrack } from './models/ResponseTrack';
|
||||||
export type { ScanStation } from './models/ScanStation';
|
export type { ResponseUser } from './models/ResponseUser';
|
||||||
export type { Track } from './models/Track';
|
export type { ResponseUserGroup } from './models/ResponseUserGroup';
|
||||||
export type { TrackIdsNotMatchingError } from './models/TrackIdsNotMatchingError';
|
export type { Runner } from './models/Runner';
|
||||||
export type { TrackNotFoundError } from './models/TrackNotFoundError';
|
export type { RunnerCard } from './models/RunnerCard';
|
||||||
export type { TrackScan } from './models/TrackScan';
|
export type { RunnerGroup } from './models/RunnerGroup';
|
||||||
export type { UpdateRunner } from './models/UpdateRunner';
|
export type { RunnerGroupNeededError } from './models/RunnerGroupNeededError';
|
||||||
export type { UpdateRunnerTeam } from './models/UpdateRunnerTeam';
|
export type { RunnerGroupNotFoundError } from './models/RunnerGroupNotFoundError';
|
||||||
export type { User } from './models/User';
|
export type { RunnerIdsNotMatchingError } from './models/RunnerIdsNotMatchingError';
|
||||||
export type { UserAction } from './models/UserAction';
|
export type { RunnerNotFoundError } from './models/RunnerNotFoundError';
|
||||||
export type { UserGroup } from './models/UserGroup';
|
export type { RunnerOrganisation } from './models/RunnerOrganisation';
|
||||||
export type { UserGroupIdsNotMatchingError } from './models/UserGroupIdsNotMatchingError';
|
export type { RunnerOrganisationHasRunnersError } from './models/RunnerOrganisationHasRunnersError';
|
||||||
export type { UserGroupNotFoundError } from './models/UserGroupNotFoundError';
|
export type { RunnerOrganisationHasTeamsError } from './models/RunnerOrganisationHasTeamsError';
|
||||||
export type { UserIdsNotMatchingError } from './models/UserIdsNotMatchingError';
|
export type { RunnerOrganisationIdsNotMatchingError } from './models/RunnerOrganisationIdsNotMatchingError';
|
||||||
export type { UsernameOrEmailNeededError } from './models/UsernameOrEmailNeededError';
|
export type { RunnerOrganisationNotFoundError } from './models/RunnerOrganisationNotFoundError';
|
||||||
export type { UserNonexistantOrRefreshtokenInvalidError } from './models/UserNonexistantOrRefreshtokenInvalidError';
|
export type { RunnerOrganisationWrongTypeError } from './models/RunnerOrganisationWrongTypeError';
|
||||||
export type { UserNotFoundError } from './models/UserNotFoundError';
|
export type { RunnerTeam } from './models/RunnerTeam';
|
||||||
export type { UserNotFoundOrRefreshTokenCountInvalidError } from './models/UserNotFoundOrRefreshTokenCountInvalidError';
|
export type { RunnerTeamHasRunnersError } from './models/RunnerTeamHasRunnersError';
|
||||||
export { AuthService } from './services/AuthService';
|
export type { RunnerTeamIdsNotMatchingError } from './models/RunnerTeamIdsNotMatchingError';
|
||||||
export { RunnerOrganisationService } from './services/RunnerOrganisationService';
|
export type { RunnerTeamNeedsParentError } from './models/RunnerTeamNeedsParentError';
|
||||||
export { RunnerService } from './services/RunnerService';
|
export type { RunnerTeamNotFoundError } from './models/RunnerTeamNotFoundError';
|
||||||
export { RunnerTeamService } from './services/RunnerTeamService';
|
export type { Scan } from './models/Scan';
|
||||||
export { TrackService } from './services/TrackService';
|
export type { ScanStation } from './models/ScanStation';
|
||||||
export { UserGroupService } from './services/UserGroupService';
|
export type { StatsClient } from './models/StatsClient';
|
||||||
export { UserService } from './services/UserService';
|
export type { StatsClientIdsNotMatchingError } from './models/StatsClientIdsNotMatchingError';
|
||||||
|
export type { StatsClientNotFoundError } from './models/StatsClientNotFoundError';
|
||||||
|
export type { Track } from './models/Track';
|
||||||
|
export type { TrackIdsNotMatchingError } from './models/TrackIdsNotMatchingError';
|
||||||
|
export type { TrackNotFoundError } from './models/TrackNotFoundError';
|
||||||
|
export type { TrackScan } from './models/TrackScan';
|
||||||
|
export type { UpdatePermission } from './models/UpdatePermission';
|
||||||
|
export type { UpdateRunner } from './models/UpdateRunner';
|
||||||
|
export type { UpdateRunnerOrganisation } from './models/UpdateRunnerOrganisation';
|
||||||
|
export type { UpdateRunnerTeam } from './models/UpdateRunnerTeam';
|
||||||
|
export type { UpdateUser } from './models/UpdateUser';
|
||||||
|
export type { User } from './models/User';
|
||||||
|
export { UserAction } from './models/UserAction';
|
||||||
|
export type { UserDisabledError } from './models/UserDisabledError';
|
||||||
|
export type { UserGroup } from './models/UserGroup';
|
||||||
|
export type { UserGroupIdsNotMatchingError } from './models/UserGroupIdsNotMatchingError';
|
||||||
|
export type { UserGroupNotFoundError } from './models/UserGroupNotFoundError';
|
||||||
|
export type { UserIdsNotMatchingError } from './models/UserIdsNotMatchingError';
|
||||||
|
export type { UsernameOrEmailNeededError } from './models/UsernameOrEmailNeededError';
|
||||||
|
export type { UserNonexistantOrRefreshtokenInvalidError } from './models/UserNonexistantOrRefreshtokenInvalidError';
|
||||||
|
export type { UserNotFoundError } from './models/UserNotFoundError';
|
||||||
|
export type { UserNotFoundOrRefreshTokenCountInvalidError } from './models/UserNotFoundOrRefreshTokenCountInvalidError';
|
||||||
|
export { AuthService } from './services/AuthService';
|
||||||
|
export { ImportService } from './services/ImportService';
|
||||||
|
export { PermissionService } from './services/PermissionService';
|
||||||
|
export { RunnerOrganisationService } from './services/RunnerOrganisationService';
|
||||||
|
export { RunnerService } from './services/RunnerService';
|
||||||
|
export { RunnerTeamService } from './services/RunnerTeamService';
|
||||||
|
export { StatsClientService } from './services/StatsClientService';
|
||||||
|
export { StatsService } from './services/StatsService';
|
||||||
|
export { StatusService } from './services/StatusService';
|
||||||
|
export { TrackService } from './services/TrackService';
|
||||||
|
export { UserGroupService } from './services/UserGroupService';
|
||||||
|
export { UserService } from './services/UserService';
|
||||||
|
66
dist/index.js
vendored
66
dist/index.js
vendored
@ -1,24 +1,42 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.UserService = exports.UserGroupService = exports.TrackService = exports.RunnerTeamService = exports.RunnerService = exports.RunnerOrganisationService = exports.AuthService = exports.OpenAPI = exports.ApiError = void 0;
|
exports.UserService = exports.UserGroupService = exports.TrackService = exports.StatusService = exports.StatsService = exports.StatsClientService = exports.RunnerTeamService = exports.RunnerService = exports.RunnerOrganisationService = exports.PermissionService = exports.ImportService = exports.AuthService = exports.UserAction = exports.ResponsePermission = exports.Permission = exports.CreatePermission = exports.OpenAPI = exports.ApiError = void 0;
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
var ApiError_1 = require("./core/ApiError");
|
var ApiError_1 = require("./core/ApiError");
|
||||||
Object.defineProperty(exports, "ApiError", { enumerable: true, get: function () { return ApiError_1.ApiError; } });
|
Object.defineProperty(exports, "ApiError", { enumerable: true, get: function () { return ApiError_1.ApiError; } });
|
||||||
var OpenAPI_1 = require("./core/OpenAPI");
|
var OpenAPI_1 = require("./core/OpenAPI");
|
||||||
Object.defineProperty(exports, "OpenAPI", { enumerable: true, get: function () { return OpenAPI_1.OpenAPI; } });
|
Object.defineProperty(exports, "OpenAPI", { enumerable: true, get: function () { return OpenAPI_1.OpenAPI; } });
|
||||||
var AuthService_1 = require("./services/AuthService");
|
var CreatePermission_1 = require("./models/CreatePermission");
|
||||||
Object.defineProperty(exports, "AuthService", { enumerable: true, get: function () { return AuthService_1.AuthService; } });
|
Object.defineProperty(exports, "CreatePermission", { enumerable: true, get: function () { return CreatePermission_1.CreatePermission; } });
|
||||||
var RunnerOrganisationService_1 = require("./services/RunnerOrganisationService");
|
var Permission_1 = require("./models/Permission");
|
||||||
Object.defineProperty(exports, "RunnerOrganisationService", { enumerable: true, get: function () { return RunnerOrganisationService_1.RunnerOrganisationService; } });
|
Object.defineProperty(exports, "Permission", { enumerable: true, get: function () { return Permission_1.Permission; } });
|
||||||
var RunnerService_1 = require("./services/RunnerService");
|
var ResponsePermission_1 = require("./models/ResponsePermission");
|
||||||
Object.defineProperty(exports, "RunnerService", { enumerable: true, get: function () { return RunnerService_1.RunnerService; } });
|
Object.defineProperty(exports, "ResponsePermission", { enumerable: true, get: function () { return ResponsePermission_1.ResponsePermission; } });
|
||||||
var RunnerTeamService_1 = require("./services/RunnerTeamService");
|
var UserAction_1 = require("./models/UserAction");
|
||||||
Object.defineProperty(exports, "RunnerTeamService", { enumerable: true, get: function () { return RunnerTeamService_1.RunnerTeamService; } });
|
Object.defineProperty(exports, "UserAction", { enumerable: true, get: function () { return UserAction_1.UserAction; } });
|
||||||
var TrackService_1 = require("./services/TrackService");
|
var AuthService_1 = require("./services/AuthService");
|
||||||
Object.defineProperty(exports, "TrackService", { enumerable: true, get: function () { return TrackService_1.TrackService; } });
|
Object.defineProperty(exports, "AuthService", { enumerable: true, get: function () { return AuthService_1.AuthService; } });
|
||||||
var UserGroupService_1 = require("./services/UserGroupService");
|
var ImportService_1 = require("./services/ImportService");
|
||||||
Object.defineProperty(exports, "UserGroupService", { enumerable: true, get: function () { return UserGroupService_1.UserGroupService; } });
|
Object.defineProperty(exports, "ImportService", { enumerable: true, get: function () { return ImportService_1.ImportService; } });
|
||||||
var UserService_1 = require("./services/UserService");
|
var PermissionService_1 = require("./services/PermissionService");
|
||||||
Object.defineProperty(exports, "UserService", { enumerable: true, get: function () { return UserService_1.UserService; } });
|
Object.defineProperty(exports, "PermissionService", { enumerable: true, get: function () { return PermissionService_1.PermissionService; } });
|
||||||
|
var RunnerOrganisationService_1 = require("./services/RunnerOrganisationService");
|
||||||
|
Object.defineProperty(exports, "RunnerOrganisationService", { enumerable: true, get: function () { return RunnerOrganisationService_1.RunnerOrganisationService; } });
|
||||||
|
var RunnerService_1 = require("./services/RunnerService");
|
||||||
|
Object.defineProperty(exports, "RunnerService", { enumerable: true, get: function () { return RunnerService_1.RunnerService; } });
|
||||||
|
var RunnerTeamService_1 = require("./services/RunnerTeamService");
|
||||||
|
Object.defineProperty(exports, "RunnerTeamService", { enumerable: true, get: function () { return RunnerTeamService_1.RunnerTeamService; } });
|
||||||
|
var StatsClientService_1 = require("./services/StatsClientService");
|
||||||
|
Object.defineProperty(exports, "StatsClientService", { enumerable: true, get: function () { return StatsClientService_1.StatsClientService; } });
|
||||||
|
var StatsService_1 = require("./services/StatsService");
|
||||||
|
Object.defineProperty(exports, "StatsService", { enumerable: true, get: function () { return StatsService_1.StatsService; } });
|
||||||
|
var StatusService_1 = require("./services/StatusService");
|
||||||
|
Object.defineProperty(exports, "StatusService", { enumerable: true, get: function () { return StatusService_1.StatusService; } });
|
||||||
|
var TrackService_1 = require("./services/TrackService");
|
||||||
|
Object.defineProperty(exports, "TrackService", { enumerable: true, get: function () { return TrackService_1.TrackService; } });
|
||||||
|
var UserGroupService_1 = require("./services/UserGroupService");
|
||||||
|
Object.defineProperty(exports, "UserGroupService", { enumerable: true, get: function () { return UserGroupService_1.UserGroupService; } });
|
||||||
|
var UserService_1 = require("./services/UserService");
|
||||||
|
Object.defineProperty(exports, "UserService", { enumerable: true, get: function () { return UserService_1.UserService; } });
|
||||||
|
18
dist/models/Address.d.ts
vendored
18
dist/models/Address.d.ts
vendored
@ -1,9 +1,9 @@
|
|||||||
export declare type Address = {
|
export declare type Address = {
|
||||||
id: number;
|
id: number;
|
||||||
description?: string;
|
description?: string;
|
||||||
address1: string;
|
address1: string;
|
||||||
address2?: string;
|
address2?: string;
|
||||||
postalcode: string;
|
postalcode: string;
|
||||||
city: string;
|
city: string;
|
||||||
country: string;
|
country: string;
|
||||||
};
|
};
|
||||||
|
10
dist/models/Address.js
vendored
10
dist/models/Address.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
8
dist/models/AddressNotFoundError.d.ts
vendored
8
dist/models/AddressNotFoundError.d.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
export declare type AddressNotFoundError = {
|
export declare type AddressNotFoundError = {
|
||||||
name: string;
|
name: string;
|
||||||
message: string;
|
message: string;
|
||||||
};
|
};
|
||||||
|
10
dist/models/AddressNotFoundError.js
vendored
10
dist/models/AddressNotFoundError.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
8
dist/models/AddressWrongTypeError.d.ts
vendored
8
dist/models/AddressWrongTypeError.d.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
export declare type AddressWrongTypeError = {
|
export declare type AddressWrongTypeError = {
|
||||||
name: string;
|
name: string;
|
||||||
message: string;
|
message: string;
|
||||||
};
|
};
|
||||||
|
10
dist/models/AddressWrongTypeError.js
vendored
10
dist/models/AddressWrongTypeError.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
12
dist/models/Auth.d.ts
vendored
12
dist/models/Auth.d.ts
vendored
@ -1,6 +1,6 @@
|
|||||||
export declare type Auth = {
|
export declare type Auth = {
|
||||||
access_token: string;
|
access_token: string;
|
||||||
refresh_token: string;
|
refresh_token: string;
|
||||||
access_token_expires_at: number;
|
access_token_expires_at: number;
|
||||||
refresh_token_expires_at: number;
|
refresh_token_expires_at: number;
|
||||||
};
|
};
|
||||||
|
10
dist/models/Auth.js
vendored
10
dist/models/Auth.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
10
dist/models/CreateAuth.d.ts
vendored
10
dist/models/CreateAuth.d.ts
vendored
@ -1,5 +1,5 @@
|
|||||||
export declare type CreateAuth = {
|
export declare type CreateAuth = {
|
||||||
username?: string;
|
username?: string;
|
||||||
password: string;
|
email?: string;
|
||||||
email?: string;
|
password: string;
|
||||||
};
|
};
|
||||||
|
10
dist/models/CreateAuth.js
vendored
10
dist/models/CreateAuth.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
16
dist/models/CreateParticipant.d.ts
vendored
16
dist/models/CreateParticipant.d.ts
vendored
@ -1,8 +1,8 @@
|
|||||||
export declare type CreateParticipant = {
|
export declare type CreateParticipant = {
|
||||||
firstname: string;
|
firstname: string;
|
||||||
middlename?: string;
|
middlename?: string;
|
||||||
lastname: string;
|
lastname: string;
|
||||||
phone?: string;
|
phone?: string;
|
||||||
email?: string;
|
email?: string;
|
||||||
address?: number;
|
address?: number;
|
||||||
};
|
};
|
||||||
|
10
dist/models/CreateParticipant.js
vendored
10
dist/models/CreateParticipant.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
24
dist/models/CreatePermission.d.ts
vendored
Normal file
24
dist/models/CreatePermission.d.ts
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
export declare type CreatePermission = {
|
||||||
|
principal: number;
|
||||||
|
target: CreatePermission.target;
|
||||||
|
action: CreatePermission.action;
|
||||||
|
};
|
||||||
|
export declare namespace CreatePermission {
|
||||||
|
enum target {
|
||||||
|
RUNNER = "RUNNER",
|
||||||
|
ORGANISATION = "ORGANISATION",
|
||||||
|
TEAM = "TEAM",
|
||||||
|
TRACK = "TRACK",
|
||||||
|
USER = "USER",
|
||||||
|
USERGROUP = "USERGROUP",
|
||||||
|
PERMISSION = "PERMISSION",
|
||||||
|
STATSCLIENT = "STATSCLIENT"
|
||||||
|
}
|
||||||
|
enum action {
|
||||||
|
GET = "GET",
|
||||||
|
CREATE = "CREATE",
|
||||||
|
UPDATE = "UPDATE",
|
||||||
|
DELETE = "DELETE",
|
||||||
|
IMPORT = "IMPORT"
|
||||||
|
}
|
||||||
|
}
|
28
dist/models/CreatePermission.js
vendored
Normal file
28
dist/models/CreatePermission.js
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
"use strict";
|
||||||
|
/* istanbul ignore file */
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.CreatePermission = void 0;
|
||||||
|
var CreatePermission;
|
||||||
|
(function (CreatePermission) {
|
||||||
|
let target;
|
||||||
|
(function (target) {
|
||||||
|
target["RUNNER"] = "RUNNER";
|
||||||
|
target["ORGANISATION"] = "ORGANISATION";
|
||||||
|
target["TEAM"] = "TEAM";
|
||||||
|
target["TRACK"] = "TRACK";
|
||||||
|
target["USER"] = "USER";
|
||||||
|
target["USERGROUP"] = "USERGROUP";
|
||||||
|
target["PERMISSION"] = "PERMISSION";
|
||||||
|
target["STATSCLIENT"] = "STATSCLIENT";
|
||||||
|
})(target = CreatePermission.target || (CreatePermission.target = {}));
|
||||||
|
let action;
|
||||||
|
(function (action) {
|
||||||
|
action["GET"] = "GET";
|
||||||
|
action["CREATE"] = "CREATE";
|
||||||
|
action["UPDATE"] = "UPDATE";
|
||||||
|
action["DELETE"] = "DELETE";
|
||||||
|
action["IMPORT"] = "IMPORT";
|
||||||
|
})(action = CreatePermission.action || (CreatePermission.action = {}));
|
||||||
|
})(CreatePermission = exports.CreatePermission || (exports.CreatePermission = {}));
|
4
dist/models/CreateResetToken.d.ts
vendored
Normal file
4
dist/models/CreateResetToken.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export declare type CreateResetToken = {
|
||||||
|
username?: string;
|
||||||
|
email?: string;
|
||||||
|
};
|
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
18
dist/models/CreateRunner.d.ts
vendored
18
dist/models/CreateRunner.d.ts
vendored
@ -1,9 +1,9 @@
|
|||||||
export declare type CreateRunner = {
|
export declare type CreateRunner = {
|
||||||
group: number;
|
group: number;
|
||||||
firstname: string;
|
firstname: string;
|
||||||
middlename?: string;
|
middlename?: string;
|
||||||
lastname: string;
|
lastname: string;
|
||||||
phone?: string;
|
phone?: string;
|
||||||
email?: string;
|
email?: string;
|
||||||
address?: number;
|
address?: number;
|
||||||
};
|
};
|
||||||
|
10
dist/models/CreateRunner.js
vendored
10
dist/models/CreateRunner.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
8
dist/models/CreateRunnerGroup.d.ts
vendored
8
dist/models/CreateRunnerGroup.d.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
export declare type CreateRunnerGroup = {
|
export declare type CreateRunnerGroup = {
|
||||||
name: string;
|
name: string;
|
||||||
contact?: number;
|
contact?: number;
|
||||||
};
|
};
|
||||||
|
10
dist/models/CreateRunnerGroup.js
vendored
10
dist/models/CreateRunnerGroup.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
10
dist/models/CreateRunnerOrganisation.d.ts
vendored
10
dist/models/CreateRunnerOrganisation.d.ts
vendored
@ -1,5 +1,5 @@
|
|||||||
export declare type CreateRunnerOrganisation = {
|
export declare type CreateRunnerOrganisation = {
|
||||||
address?: number;
|
address?: number;
|
||||||
name: string;
|
name: string;
|
||||||
contact?: number;
|
contact?: number;
|
||||||
};
|
};
|
||||||
|
10
dist/models/CreateRunnerOrganisation.js
vendored
10
dist/models/CreateRunnerOrganisation.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
10
dist/models/CreateRunnerTeam.d.ts
vendored
10
dist/models/CreateRunnerTeam.d.ts
vendored
@ -1,5 +1,5 @@
|
|||||||
export declare type CreateRunnerTeam = {
|
export declare type CreateRunnerTeam = {
|
||||||
parentGroup: number;
|
parentGroup: number;
|
||||||
name: string;
|
name: string;
|
||||||
contact?: number;
|
contact?: number;
|
||||||
};
|
};
|
||||||
|
10
dist/models/CreateRunnerTeam.js
vendored
10
dist/models/CreateRunnerTeam.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
3
dist/models/CreateStatsClient.d.ts
vendored
Normal file
3
dist/models/CreateStatsClient.d.ts
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
export declare type CreateStatsClient = {
|
||||||
|
description?: string;
|
||||||
|
};
|
5
dist/models/CreateStatsClient.js
vendored
Normal file
5
dist/models/CreateStatsClient.js
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
"use strict";
|
||||||
|
/* istanbul ignore file */
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
8
dist/models/CreateTrack.d.ts
vendored
8
dist/models/CreateTrack.d.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
export declare type CreateTrack = {
|
export declare type CreateTrack = {
|
||||||
name: string;
|
name: string;
|
||||||
distance: number;
|
distance: number;
|
||||||
};
|
};
|
||||||
|
10
dist/models/CreateTrack.js
vendored
10
dist/models/CreateTrack.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
21
dist/models/CreateUser.d.ts
vendored
21
dist/models/CreateUser.d.ts
vendored
@ -1,10 +1,11 @@
|
|||||||
export declare type CreateUser = {
|
export declare type CreateUser = {
|
||||||
firstname: string;
|
firstname: string;
|
||||||
middlename?: string;
|
middlename?: string;
|
||||||
lastname: string;
|
lastname: string;
|
||||||
username?: string;
|
username?: string;
|
||||||
email?: string;
|
email?: string;
|
||||||
phone?: string;
|
phone?: string;
|
||||||
password: string;
|
password: string;
|
||||||
groupId?: any;
|
enabled?: boolean;
|
||||||
};
|
groups?: any;
|
||||||
|
};
|
||||||
|
10
dist/models/CreateUser.js
vendored
10
dist/models/CreateUser.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
8
dist/models/CreateUserGroup.d.ts
vendored
8
dist/models/CreateUserGroup.d.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
export declare type CreateUserGroup = {
|
export declare type CreateUserGroup = {
|
||||||
name: string;
|
name: string;
|
||||||
description?: string;
|
description?: string;
|
||||||
};
|
};
|
||||||
|
10
dist/models/CreateUserGroup.js
vendored
10
dist/models/CreateUserGroup.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
12
dist/models/DistanceDonation.d.ts
vendored
12
dist/models/DistanceDonation.d.ts
vendored
@ -1,6 +1,6 @@
|
|||||||
export declare type DistanceDonation = {
|
export declare type DistanceDonation = {
|
||||||
runner: string;
|
runner: string;
|
||||||
amountPerDistance: number;
|
amountPerDistance: number;
|
||||||
id: number;
|
id: number;
|
||||||
donor: string;
|
donor: string;
|
||||||
};
|
};
|
||||||
|
10
dist/models/DistanceDonation.js
vendored
10
dist/models/DistanceDonation.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
8
dist/models/Donation.d.ts
vendored
8
dist/models/Donation.d.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
export declare type Donation = {
|
export declare type Donation = {
|
||||||
id: number;
|
id: number;
|
||||||
donor: string;
|
donor: string;
|
||||||
};
|
};
|
||||||
|
10
dist/models/Donation.js
vendored
10
dist/models/Donation.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
4
dist/models/ExpiredJWTError.d.ts
vendored
4
dist/models/ExpiredJWTError.d.ts
vendored
@ -1,4 +0,0 @@
|
|||||||
export declare type ExpiredJWTError = {
|
|
||||||
name: string;
|
|
||||||
message: string;
|
|
||||||
};
|
|
18
dist/models/GroupContact.d.ts
vendored
18
dist/models/GroupContact.d.ts
vendored
@ -1,9 +1,9 @@
|
|||||||
export declare type GroupContact = {
|
export declare type GroupContact = {
|
||||||
id: number;
|
id: number;
|
||||||
firstname: string;
|
firstname: string;
|
||||||
middlename?: string;
|
middlename?: string;
|
||||||
lastname: string;
|
lastname: string;
|
||||||
address?: any;
|
address?: any;
|
||||||
phone?: string;
|
phone?: string;
|
||||||
email?: string;
|
email?: string;
|
||||||
};
|
};
|
||||||
|
10
dist/models/GroupContact.js
vendored
10
dist/models/GroupContact.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
8
dist/models/GroupContactNotFoundError.d.ts
vendored
8
dist/models/GroupContactNotFoundError.d.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
export declare type GroupContactNotFoundError = {
|
export declare type GroupContactNotFoundError = {
|
||||||
name: string;
|
name: string;
|
||||||
message: string;
|
message: string;
|
||||||
};
|
};
|
||||||
|
10
dist/models/GroupContactNotFoundError.js
vendored
10
dist/models/GroupContactNotFoundError.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
8
dist/models/GroupContactWrongTypeError.d.ts
vendored
8
dist/models/GroupContactWrongTypeError.d.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
export declare type GroupContactWrongTypeError = {
|
export declare type GroupContactWrongTypeError = {
|
||||||
name: string;
|
name: string;
|
||||||
message: string;
|
message: string;
|
||||||
};
|
};
|
||||||
|
10
dist/models/GroupContactWrongTypeError.js
vendored
10
dist/models/GroupContactWrongTypeError.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
8
dist/models/GroupNameNeededError.d.ts
vendored
8
dist/models/GroupNameNeededError.d.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
export declare type GroupNameNeededError = {
|
export declare type GroupNameNeededError = {
|
||||||
name: string;
|
name: string;
|
||||||
message: string;
|
message: string;
|
||||||
};
|
};
|
||||||
|
10
dist/models/GroupNameNeededError.js
vendored
10
dist/models/GroupNameNeededError.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
6
dist/models/HandleLogout.d.ts
vendored
6
dist/models/HandleLogout.d.ts
vendored
@ -1,3 +1,3 @@
|
|||||||
export declare type HandleLogout = {
|
export declare type HandleLogout = {
|
||||||
token?: string;
|
token?: string;
|
||||||
};
|
};
|
||||||
|
10
dist/models/HandleLogout.js
vendored
10
dist/models/HandleLogout.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
8
dist/models/IllegalJWTError.d.ts
vendored
8
dist/models/IllegalJWTError.d.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
export declare type IllegalJWTError = {
|
export declare type IllegalJWTError = {
|
||||||
name: string;
|
name: string;
|
||||||
message: string;
|
message: string;
|
||||||
};
|
};
|
||||||
|
10
dist/models/IllegalJWTError.js
vendored
10
dist/models/IllegalJWTError.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
7
dist/models/ImportRunner.d.ts
vendored
Normal file
7
dist/models/ImportRunner.d.ts
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
export declare type ImportRunner = {
|
||||||
|
firstname: string;
|
||||||
|
middlename?: string;
|
||||||
|
lastname: string;
|
||||||
|
team?: string;
|
||||||
|
class?: string;
|
||||||
|
};
|
5
dist/models/ImportRunner.js
vendored
Normal file
5
dist/models/ImportRunner.js
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
"use strict";
|
||||||
|
/* istanbul ignore file */
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
8
dist/models/InvalidCredentialsError.d.ts
vendored
8
dist/models/InvalidCredentialsError.d.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
export declare type InvalidCredentialsError = {
|
export declare type InvalidCredentialsError = {
|
||||||
name: string;
|
name: string;
|
||||||
message: string;
|
message: string;
|
||||||
};
|
};
|
||||||
|
10
dist/models/InvalidCredentialsError.js
vendored
10
dist/models/InvalidCredentialsError.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
8
dist/models/JwtNotProvidedError.d.ts
vendored
8
dist/models/JwtNotProvidedError.d.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
export declare type JwtNotProvidedError = {
|
export declare type JwtNotProvidedError = {
|
||||||
name: string;
|
name: string;
|
||||||
message: string;
|
message: string;
|
||||||
};
|
};
|
||||||
|
10
dist/models/JwtNotProvidedError.js
vendored
10
dist/models/JwtNotProvidedError.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
12
dist/models/JwtUser.d.ts
vendored
Normal file
12
dist/models/JwtUser.d.ts
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
export declare type JwtUser = {
|
||||||
|
id: number;
|
||||||
|
uuid: string;
|
||||||
|
email?: string;
|
||||||
|
username?: string;
|
||||||
|
firstname: string;
|
||||||
|
middlename?: string;
|
||||||
|
lastname: string;
|
||||||
|
enabled: boolean;
|
||||||
|
refreshTokenCount: number;
|
||||||
|
profilePic?: string;
|
||||||
|
};
|
5
dist/models/JwtUser.js
vendored
Normal file
5
dist/models/JwtUser.js
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
"use strict";
|
||||||
|
/* istanbul ignore file */
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
dist/models/Logout.d.ts
vendored
6
dist/models/Logout.d.ts
vendored
@ -1,3 +1,3 @@
|
|||||||
export declare type Logout = {
|
export declare type Logout = {
|
||||||
timestamp: string;
|
timestamp: string;
|
||||||
};
|
};
|
||||||
|
10
dist/models/Logout.js
vendored
10
dist/models/Logout.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
8
dist/models/NoPermissionError.d.ts
vendored
8
dist/models/NoPermissionError.d.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
export declare type NoPermissionError = {
|
export declare type NoPermissionError = {
|
||||||
name: string;
|
name: string;
|
||||||
message: string;
|
message: string;
|
||||||
};
|
};
|
||||||
|
10
dist/models/NoPermissionError.js
vendored
10
dist/models/NoPermissionError.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
16
dist/models/Participant.d.ts
vendored
16
dist/models/Participant.d.ts
vendored
@ -1,8 +1,8 @@
|
|||||||
export declare type Participant = {
|
export declare type Participant = {
|
||||||
id: number;
|
id: number;
|
||||||
firstname: string;
|
firstname: string;
|
||||||
middlename?: string;
|
middlename?: string;
|
||||||
lastname: string;
|
lastname: string;
|
||||||
phone?: string;
|
phone?: string;
|
||||||
email?: string;
|
email?: string;
|
||||||
};
|
};
|
||||||
|
10
dist/models/Participant.js
vendored
10
dist/models/Participant.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
8
dist/models/PasswordNeededError.d.ts
vendored
8
dist/models/PasswordNeededError.d.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
export declare type PasswordNeededError = {
|
export declare type PasswordNeededError = {
|
||||||
name: string;
|
name: string;
|
||||||
message: string;
|
message: string;
|
||||||
};
|
};
|
||||||
|
10
dist/models/PasswordNeededError.js
vendored
10
dist/models/PasswordNeededError.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
29
dist/models/Permission.d.ts
vendored
29
dist/models/Permission.d.ts
vendored
@ -1,5 +1,24 @@
|
|||||||
export declare type Permission = {
|
export declare type Permission = {
|
||||||
id: number;
|
id: number;
|
||||||
target: string;
|
target: Permission.target;
|
||||||
action: string;
|
action: Permission.action;
|
||||||
};
|
};
|
||||||
|
export declare namespace Permission {
|
||||||
|
enum target {
|
||||||
|
RUNNER = "RUNNER",
|
||||||
|
ORGANISATION = "ORGANISATION",
|
||||||
|
TEAM = "TEAM",
|
||||||
|
TRACK = "TRACK",
|
||||||
|
USER = "USER",
|
||||||
|
USERGROUP = "USERGROUP",
|
||||||
|
PERMISSION = "PERMISSION",
|
||||||
|
STATSCLIENT = "STATSCLIENT"
|
||||||
|
}
|
||||||
|
enum action {
|
||||||
|
GET = "GET",
|
||||||
|
CREATE = "CREATE",
|
||||||
|
UPDATE = "UPDATE",
|
||||||
|
DELETE = "DELETE",
|
||||||
|
IMPORT = "IMPORT"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
33
dist/models/Permission.js
vendored
33
dist/models/Permission.js
vendored
@ -1,5 +1,28 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.Permission = void 0;
|
||||||
|
var Permission;
|
||||||
|
(function (Permission) {
|
||||||
|
let target;
|
||||||
|
(function (target) {
|
||||||
|
target["RUNNER"] = "RUNNER";
|
||||||
|
target["ORGANISATION"] = "ORGANISATION";
|
||||||
|
target["TEAM"] = "TEAM";
|
||||||
|
target["TRACK"] = "TRACK";
|
||||||
|
target["USER"] = "USER";
|
||||||
|
target["USERGROUP"] = "USERGROUP";
|
||||||
|
target["PERMISSION"] = "PERMISSION";
|
||||||
|
target["STATSCLIENT"] = "STATSCLIENT";
|
||||||
|
})(target = Permission.target || (Permission.target = {}));
|
||||||
|
let action;
|
||||||
|
(function (action) {
|
||||||
|
action["GET"] = "GET";
|
||||||
|
action["CREATE"] = "CREATE";
|
||||||
|
action["UPDATE"] = "UPDATE";
|
||||||
|
action["DELETE"] = "DELETE";
|
||||||
|
action["IMPORT"] = "IMPORT";
|
||||||
|
})(action = Permission.action || (Permission.action = {}));
|
||||||
|
})(Permission = exports.Permission || (exports.Permission = {}));
|
||||||
|
4
dist/models/PermissionIdsNotMatchingError.d.ts
vendored
Normal file
4
dist/models/PermissionIdsNotMatchingError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export declare type PermissionIdsNotMatchingError = {
|
||||||
|
name: string;
|
||||||
|
message: string;
|
||||||
|
};
|
5
dist/models/PermissionIdsNotMatchingError.js
vendored
Normal file
5
dist/models/PermissionIdsNotMatchingError.js
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
"use strict";
|
||||||
|
/* istanbul ignore file */
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
dist/models/PermissionNeedsPrincipalError.d.ts
vendored
Normal file
4
dist/models/PermissionNeedsPrincipalError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export declare type PermissionNeedsPrincipalError = {
|
||||||
|
name: string;
|
||||||
|
message: string;
|
||||||
|
};
|
5
dist/models/PermissionNeedsPrincipalError.js
vendored
Normal file
5
dist/models/PermissionNeedsPrincipalError.js
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
"use strict";
|
||||||
|
/* istanbul ignore file */
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
dist/models/PermissionNotFoundError.d.ts
vendored
Normal file
4
dist/models/PermissionNotFoundError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export declare type PermissionNotFoundError = {
|
||||||
|
name: string;
|
||||||
|
message: string;
|
||||||
|
};
|
5
dist/models/PermissionNotFoundError.js
vendored
Normal file
5
dist/models/PermissionNotFoundError.js
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
"use strict";
|
||||||
|
/* istanbul ignore file */
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
dist/models/Principal.d.ts
vendored
Normal file
3
dist/models/Principal.d.ts
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
export declare type Principal = {
|
||||||
|
id: number;
|
||||||
|
};
|
5
dist/models/Principal.js
vendored
Normal file
5
dist/models/Principal.js
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
"use strict";
|
||||||
|
/* istanbul ignore file */
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
dist/models/PrincipalNotFoundError.d.ts
vendored
Normal file
4
dist/models/PrincipalNotFoundError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export declare type PrincipalNotFoundError = {
|
||||||
|
name: string;
|
||||||
|
message: string;
|
||||||
|
};
|
5
dist/models/PrincipalNotFoundError.js
vendored
Normal file
5
dist/models/PrincipalNotFoundError.js
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
"use strict";
|
||||||
|
/* istanbul ignore file */
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
dist/models/PrincipalWrongTypeError.d.ts
vendored
Normal file
4
dist/models/PrincipalWrongTypeError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export declare type PrincipalWrongTypeError = {
|
||||||
|
name: string;
|
||||||
|
message: string;
|
||||||
|
};
|
5
dist/models/PrincipalWrongTypeError.js
vendored
Normal file
5
dist/models/PrincipalWrongTypeError.js
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
"use strict";
|
||||||
|
/* istanbul ignore file */
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
dist/models/RefreshAuth.d.ts
vendored
6
dist/models/RefreshAuth.d.ts
vendored
@ -1,3 +1,3 @@
|
|||||||
export declare type RefreshAuth = {
|
export declare type RefreshAuth = {
|
||||||
token?: string;
|
token?: string;
|
||||||
};
|
};
|
||||||
|
10
dist/models/RefreshAuth.js
vendored
10
dist/models/RefreshAuth.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
export declare type RefreshTokenCountInvalidError = {
|
export declare type RefreshTokenCountInvalidError = {
|
||||||
name: string;
|
name: string;
|
||||||
message: string;
|
message: string;
|
||||||
};
|
};
|
||||||
|
10
dist/models/RefreshTokenCountInvalidError.js
vendored
10
dist/models/RefreshTokenCountInvalidError.js
vendored
@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* istanbul ignore file */
|
/* istanbul ignore file */
|
||||||
/* tslint:disable */
|
/* tslint:disable */
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
4
dist/models/ResetAlreadyRequestedError.d.ts
vendored
Normal file
4
dist/models/ResetAlreadyRequestedError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export declare type ResetAlreadyRequestedError = {
|
||||||
|
name: string;
|
||||||
|
message: string;
|
||||||
|
};
|
5
dist/models/ResetAlreadyRequestedError.js
vendored
Normal file
5
dist/models/ResetAlreadyRequestedError.js
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
"use strict";
|
||||||
|
/* istanbul ignore file */
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
dist/models/ResetPassword.d.ts
vendored
Normal file
4
dist/models/ResetPassword.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export declare type ResetPassword = {
|
||||||
|
resetToken?: string;
|
||||||
|
password: string;
|
||||||
|
};
|
5
dist/models/ResetPassword.js
vendored
Normal file
5
dist/models/ResetPassword.js
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
"use strict";
|
||||||
|
/* istanbul ignore file */
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
dist/models/ResponseEmpty.d.ts
vendored
6
dist/models/ResponseEmpty.d.ts
vendored
@ -1,3 +1,3 @@
|
|||||||
export declare type ResponseEmpty = {
|
export declare type ResponseEmpty = {
|
||||||
response: string;
|
response: string;
|
||||||
};
|
};
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user