🚀New lib version [CI SKIP]
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Nicolai Ort 2023-02-02 09:47:35 +00:00
parent 068c27f3ff
commit f9aa86b553
199 changed files with 299 additions and 295 deletions

View File

@ -1,4 +1,4 @@
export declare type ApiRequestOptions = { export 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>;

View File

@ -1,4 +1,4 @@
export declare type ApiResult = { export type ApiResult = {
readonly url: string; readonly url: string;
readonly ok: boolean; readonly ok: boolean;
readonly status: number; readonly status: number;

View File

@ -1,6 +1,6 @@
declare type Resolver<T> = () => Promise<T>; type Resolver<T> = () => Promise<T>;
declare type Headers = Record<string, string>; type Headers = Record<string, string>;
declare type Config = { type Config = {
BASE: string; BASE: string;
VERSION: string; VERSION: string;
WITH_CREDENTIALS: boolean; WITH_CREDENTIALS: boolean;

View File

@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
exports.OpenAPI = void 0; exports.OpenAPI = void 0;
exports.OpenAPI = { exports.OpenAPI = {
BASE: '', BASE: '',
VERSION: '0.11.1', VERSION: '0.12.0',
WITH_CREDENTIALS: false, WITH_CREDENTIALS: false,
TOKEN: undefined, TOKEN: undefined,
USERNAME: undefined, USERNAME: undefined,

View File

@ -1,7 +1,11 @@
"use strict"; "use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k; if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) { }) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k; if (k2 === undefined) k2 = k;
o[k2] = m[k]; o[k2] = m[k];
@ -139,7 +143,7 @@ async function sendRequest(options, url) {
headers: await getHeaders(options), headers: await getHeaders(options),
body: getRequestBody(options), body: getRequestBody(options),
}; };
return await node_fetch_1.default(url, request); return await (0, node_fetch_1.default)(url, request);
} }
function getResponseHeader(response, responseHeader) { function getResponseHeader(response, responseHeader) {
if (responseHeader) { if (responseHeader) {

View File

@ -1,4 +1,4 @@
export declare type Address = { export type Address = {
address1: string; address1: string;
address2: string; address2: string;
postalcode: string; postalcode: string;

View File

@ -1,4 +1,4 @@
export declare type AddressCityEmptyError = { export type AddressCityEmptyError = {
name: string; name: string;
message: string; message: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type AddressCountryEmptyError = { export type AddressCountryEmptyError = {
name: string; name: string;
message: string; message: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type AddressFirstLineEmptyError = { export type AddressFirstLineEmptyError = {
name: string; name: string;
message: string; message: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type AddressPostalCodeEmptyError = { export type AddressPostalCodeEmptyError = {
name: string; name: string;
message: string; message: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type AddressPostalCodeInvalidError = { export type AddressPostalCodeInvalidError = {
name: string; name: string;
message: string; message: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type CreateAuth = { export type CreateAuth = {
username?: string; username?: string;
email?: string; email?: string;
password: string; password: string;

View File

@ -1,4 +1,4 @@
export declare type CreateDistanceDonation = { export type CreateDistanceDonation = {
runner: number; runner: number;
amountPerDistance: number; amountPerDistance: number;
donor: number; donor: number;

View File

@ -1,4 +1,4 @@
export declare type CreateDonation = { export type CreateDonation = {
donor: number; donor: number;
paidAmount?: number; paidAmount?: number;
}; };

View File

@ -1,4 +1,4 @@
export declare type CreateDonor = { export type CreateDonor = {
receiptNeeded?: boolean; receiptNeeded?: boolean;
firstname: string; firstname: string;
middlename?: string; middlename?: string;

View File

@ -1,4 +1,4 @@
export declare type CreateFixedDonation = { export type CreateFixedDonation = {
amount: number; amount: number;
donor: number; donor: number;
paidAmount?: number; paidAmount?: number;

View File

@ -1,4 +1,4 @@
export declare type CreateGroupContact = { export type CreateGroupContact = {
firstname: string; firstname: string;
middlename?: string; middlename?: string;
lastname: string; lastname: string;

View File

@ -1,4 +1,4 @@
export declare type CreateParticipant = { export type CreateParticipant = {
firstname: string; firstname: string;
middlename?: string; middlename?: string;
lastname: string; lastname: string;

View File

@ -1,4 +1,4 @@
export declare type CreatePermission = { export type CreatePermission = {
principal: number; principal: number;
target: CreatePermission.target; target: CreatePermission.target;
action: CreatePermission.action; action: CreatePermission.action;

View File

@ -1,3 +1,3 @@
export declare type CreateResetToken = { export type CreateResetToken = {
email: string; email: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type CreateRunner = { export type CreateRunner = {
group: number; group: number;
firstname: string; firstname: string;
middlename?: string; middlename?: string;

View File

@ -1,4 +1,4 @@
export declare type CreateRunnerCard = { export type CreateRunnerCard = {
runner?: number; runner?: number;
enabled: boolean; enabled: boolean;
}; };

View File

@ -1,4 +1,4 @@
export declare type CreateRunnerGroup = { export type CreateRunnerGroup = {
name: string; name: string;
contact?: number; contact?: number;
}; };

View File

@ -1,4 +1,4 @@
export declare type CreateRunnerOrganization = { export type CreateRunnerOrganization = {
address?: any; address?: any;
registrationEnabled?: boolean; registrationEnabled?: boolean;
name: string; name: string;

View File

@ -1,4 +1,4 @@
export declare type CreateRunnerTeam = { export type CreateRunnerTeam = {
parentGroup: number; parentGroup: number;
name: string; name: string;
contact?: number; contact?: number;

View File

@ -1,4 +1,4 @@
export declare type CreateScan = { export type CreateScan = {
runner: number; runner: number;
valid?: boolean; valid?: boolean;
distance: number; distance: number;

View File

@ -1,4 +1,4 @@
export declare type CreateScanStation = { export type CreateScanStation = {
description?: string; description?: string;
track: number; track: number;
enabled?: boolean; enabled?: boolean;

View File

@ -1,4 +1,4 @@
export declare type CreateSelfServiceCitizenRunner = { export type CreateSelfServiceCitizenRunner = {
email?: string; email?: string;
firstname: string; firstname: string;
middlename?: string; middlename?: string;

View File

@ -1,4 +1,4 @@
export declare type CreateSelfServiceRunner = { export type CreateSelfServiceRunner = {
team?: number; team?: number;
firstname: string; firstname: string;
middlename?: string; middlename?: string;

View File

@ -1,3 +1,3 @@
export declare type CreateStatsClient = { export type CreateStatsClient = {
description?: string; description?: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type CreateTrack = { export type CreateTrack = {
name: string; name: string;
distance: number; distance: number;
minimumLapTime?: number; minimumLapTime?: number;

View File

@ -1,4 +1,4 @@
export declare type CreateTrackScan = { export type CreateTrackScan = {
card: number; card: number;
station?: number; station?: number;
}; };

View File

@ -1,4 +1,4 @@
export declare type CreateUser = { export type CreateUser = {
firstname: string; firstname: string;
middlename?: string; middlename?: string;
lastname: string; lastname: string;

View File

@ -1,4 +1,4 @@
export declare type CreateUserGroup = { export type CreateUserGroup = {
name: string; name: string;
description?: string; description?: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type DistanceDonation = { export type DistanceDonation = {
runner: string; runner: string;
amountPerDistance: number; amountPerDistance: number;
id: number; id: number;

View File

@ -1,4 +1,4 @@
export declare type Donation = { export type Donation = {
id: number; id: number;
donor: string; donor: string;
paidAmount: number; paidAmount: number;

View File

@ -1,4 +1,4 @@
export declare type DonationIdsNotMatchingError = { export type DonationIdsNotMatchingError = {
name: string; name: string;
message: string; message: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type DonationNotFoundError = { export type DonationNotFoundError = {
name: string; name: string;
message: string; message: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type Donor = { export type Donor = {
receiptNeeded: boolean; receiptNeeded: boolean;
donationAmount: number; donationAmount: number;
paidDonationAmount: number; paidDonationAmount: number;

View File

@ -1,4 +1,4 @@
export declare type DonorHasDonationsError = { export type DonorHasDonationsError = {
name: string; name: string;
message: string; message: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type DonorIdsNotMatchingError = { export type DonorIdsNotMatchingError = {
name: string; name: string;
message: string; message: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type DonorNotFoundError = { export type DonorNotFoundError = {
name: string; name: string;
message: string; message: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type DonorReceiptAddressNeededError = { export type DonorReceiptAddressNeededError = {
name: string; name: string;
message: string; message: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type FixedDonation = { export type FixedDonation = {
_amount: number; _amount: number;
amount: number; amount: number;
id: number; id: number;

View File

@ -1,4 +1,4 @@
export declare type GroupContact = { export type GroupContact = {
id: number; id: number;
firstname: string; firstname: string;
middlename?: string; middlename?: string;

View File

@ -1,4 +1,4 @@
export declare type GroupContactIdsNotMatchingError = { export type GroupContactIdsNotMatchingError = {
name: string; name: string;
message: string; message: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type GroupContactNotFoundError = { export type GroupContactNotFoundError = {
name: string; name: string;
message: string; message: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type GroupNameNeededError = { export type GroupNameNeededError = {
name: string; name: string;
message: string; message: string;
}; };

View File

@ -1,3 +1,3 @@
export declare type HandleLogout = { export type HandleLogout = {
token?: string; token?: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type IllegalJWTError = { export type IllegalJWTError = {
name: string; name: string;
message: string; message: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type ImportRunner = { export type ImportRunner = {
firstname: string; firstname: string;
middlename?: string; middlename?: string;
lastname: string; lastname: string;

View File

@ -1,4 +1,4 @@
export declare type InvalidCredentialsError = { export type InvalidCredentialsError = {
name: string; name: string;
message: string; message: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type JwtNotProvidedError = { export type JwtNotProvidedError = {
name: string; name: string;
message: string; message: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type JwtUser = { export type JwtUser = {
id: number; id: number;
uuid: string; uuid: string;
email?: string; email?: string;

View File

@ -1,3 +1,3 @@
export declare type Logout = { export type Logout = {
timestamp: string; timestamp: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type MailSendingError = { export type MailSendingError = {
name: string; name: string;
message: string; message: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type NoPermissionError = { export type NoPermissionError = {
name: string; name: string;
message: string; message: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type Participant = { export type Participant = {
id: number; id: number;
firstname: string; firstname: string;
middlename?: string; middlename?: string;

View File

@ -1,4 +1,4 @@
export declare type PasswordMustContainLowercaseLetterError = { export type PasswordMustContainLowercaseLetterError = {
name: string; name: string;
message: string; message: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type PasswordMustContainNumberError = { export type PasswordMustContainNumberError = {
name: string; name: string;
message: string; message: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type PasswordMustContainUppercaseLetterError = { export type PasswordMustContainUppercaseLetterError = {
name: string; name: string;
message: string; message: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type PasswordNeededError = { export type PasswordNeededError = {
name: string; name: string;
message: string; message: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type PasswordTooShortError = { export type PasswordTooShortError = {
name: string; name: string;
message: string; message: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type Permission = { export type Permission = {
id: number; id: number;
target: Permission.target; target: Permission.target;
action: Permission.action; action: Permission.action;

View File

@ -1,4 +1,4 @@
export declare type PermissionIdsNotMatchingError = { export type PermissionIdsNotMatchingError = {
name: string; name: string;
message: string; message: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type PermissionNeedsPrincipalError = { export type PermissionNeedsPrincipalError = {
name: string; name: string;
message: string; message: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type PermissionNotFoundError = { export type PermissionNotFoundError = {
name: string; name: string;
message: string; message: string;
}; };

View File

@ -1,3 +1,3 @@
export declare type Principal = { export type Principal = {
id: number; id: number;
}; };

View File

@ -1,4 +1,4 @@
export declare type PrincipalNotFoundError = { export type PrincipalNotFoundError = {
name: string; name: string;
message: string; message: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type PrincipalWrongTypeError = { export type PrincipalWrongTypeError = {
name: string; name: string;
message: string; message: string;
}; };

View File

@ -1,3 +1,3 @@
export declare type RefreshAuth = { export type RefreshAuth = {
token?: string; token?: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type RefreshTokenCountInvalidError = { export type RefreshTokenCountInvalidError = {
name: string; name: string;
message: string; message: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type ResetAlreadyRequestedError = { export type ResetAlreadyRequestedError = {
name: string; name: string;
message: string; message: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type ResetPassword = { export type ResetPassword = {
resetToken?: string; resetToken?: string;
password: string; password: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type ResponseAuth = { export type ResponseAuth = {
access_token: string; access_token: string;
refresh_token: string; refresh_token: string;
access_token_expires_at: number; access_token_expires_at: number;

View File

@ -1,4 +1,4 @@
export declare type ResponseDistanceDonation = { export type ResponseDistanceDonation = {
runner: any; runner: any;
amountPerDistance: number; amountPerDistance: number;
id: number; id: number;

View File

@ -1,4 +1,4 @@
export declare type ResponseDonation = { export type ResponseDonation = {
id: number; id: number;
donor: string; donor: string;
amount: number; amount: number;

View File

@ -1,4 +1,4 @@
export declare type ResponseDonor = { export type ResponseDonor = {
receiptNeeded: boolean; receiptNeeded: boolean;
donationAmount: number; donationAmount: number;
paidDonationAmount: number; paidDonationAmount: number;

View File

@ -1,3 +1,3 @@
export declare type ResponseEmpty = { export type ResponseEmpty = {
response: string; response: string;
}; };

View File

@ -1,4 +1,4 @@
export declare type ResponseGroupContact = { export type ResponseGroupContact = {
id: number; id: number;
firstname: string; firstname: string;
middlename: string; middlename: string;

View File

@ -1,4 +1,4 @@
export declare type ResponseParticipant = { export type ResponseParticipant = {
id: number; id: number;
firstname: string; firstname: string;
middlename: string; middlename: string;

View File

@ -1,4 +1,4 @@
export declare type ResponsePermission = { export type ResponsePermission = {
id: number; id: number;
principal: any; principal: any;
target: ResponsePermission.target; target: ResponsePermission.target;

View File

@ -1,3 +1,3 @@
export declare type ResponsePrincipal = { export type ResponsePrincipal = {
id: number; id: number;
}; };

View File

@ -1,4 +1,4 @@
export declare type ResponseRunner = { export type ResponseRunner = {
distance: number; distance: number;
group: any; group: any;
id: number; id: number;

View File

@ -1,4 +1,4 @@
export declare type ResponseRunnerCard = { export type ResponseRunnerCard = {
id: number; id: number;
runner: any; runner: any;
code: string; code: string;

View File

@ -1,4 +1,4 @@
export declare type ResponseRunnerGroup = { export type ResponseRunnerGroup = {
id: number; id: number;
name: string; name: string;
contact?: any; contact?: any;

View File

@ -1,4 +1,4 @@
export declare type ResponseRunnerOrganization = { export type ResponseRunnerOrganization = {
address?: any; address?: any;
teams: Array<any>; teams: Array<any>;
registrationKey?: string; registrationKey?: string;

View File

@ -1,4 +1,4 @@
export declare type ResponseRunnerTeam = { export type ResponseRunnerTeam = {
parentGroup: any; parentGroup: any;
id: number; id: number;
name: string; name: string;

View File

@ -1,4 +1,4 @@
export declare type ResponseScan = { export type ResponseScan = {
id: number; id: number;
runner: string; runner: string;
valid: boolean; valid: boolean;

View File

@ -1,4 +1,4 @@
export declare type ResponseScanStation = { export type ResponseScanStation = {
id: number; id: number;
description?: string; description?: string;
key?: string; key?: string;

View File

@ -1,4 +1,4 @@
export declare type ResponseSelfServiceDonation = { export type ResponseSelfServiceDonation = {
donor: string; donor: string;
amount: number; amount: number;
amountPerDistance: number; amountPerDistance: number;

View File

@ -1,4 +1,4 @@
export declare type ResponseSelfServiceDonor = { export type ResponseSelfServiceDonor = {
id: number; id: number;
firstname: string; firstname: string;
middlename: string; middlename: string;

View File

@ -1,4 +1,4 @@
export declare type ResponseSelfServiceOrganisation = { export type ResponseSelfServiceOrganisation = {
name: string; name: string;
teams: Array<any>; teams: Array<any>;
}; };

View File

@ -1,4 +1,4 @@
export declare type ResponseSelfServiceRunner = { export type ResponseSelfServiceRunner = {
distance: number; distance: number;
donationAmount: number; donationAmount: number;
group: string; group: string;

View File

@ -1,4 +1,4 @@
export declare type ResponseSelfServiceScan = { export type ResponseSelfServiceScan = {
id: number; id: number;
valid: boolean; valid: boolean;
distance: number; distance: number;

View File

@ -1,4 +1,4 @@
export declare type ResponseSelfServiceTeam = { export type ResponseSelfServiceTeam = {
name: string; name: string;
id: number; id: number;
}; };

View File

@ -1,4 +1,4 @@
export declare type ResponseStats = { export type ResponseStats = {
total_runners: number; total_runners: number;
total_teams: number; total_teams: number;
total_orgs: number; total_orgs: number;

View File

@ -1,4 +1,4 @@
export declare type ResponseStatsClient = { export type ResponseStatsClient = {
id: number; id: number;
description?: string; description?: string;
key?: string; key?: string;

View File

@ -1,4 +1,4 @@
export declare type ResponseStatsOrgnisation = { export type ResponseStatsOrgnisation = {
id: number; id: number;
name: string; name: string;
distance: number; distance: number;

View File

@ -1,4 +1,4 @@
export declare type ResponseStatsRunner = { export type ResponseStatsRunner = {
id: number; id: number;
firstname: string; firstname: string;
middlename: string; middlename: string;

Some files were not shown because too many files have changed in this diff Show More