Merge branch 'main' of git.odit.services:lfk/lfk-client-node
This commit is contained in:
commit
6b08195b1f
|
@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
exports.OpenAPI = void 0;
|
||||
exports.OpenAPI = {
|
||||
BASE: '',
|
||||
VERSION: '0.5.0',
|
||||
VERSION: '0.11.1',
|
||||
WITH_CREDENTIALS: false,
|
||||
TOKEN: undefined,
|
||||
USERNAME: undefined,
|
||||
|
|
|
@ -53,7 +53,11 @@ export type { Logout } from './models/Logout';
|
|||
export type { MailSendingError } from './models/MailSendingError';
|
||||
export type { NoPermissionError } from './models/NoPermissionError';
|
||||
export type { Participant } from './models/Participant';
|
||||
export type { PasswordMustContainLowercaseLetterError } from './models/PasswordMustContainLowercaseLetterError';
|
||||
export type { PasswordMustContainNumberError } from './models/PasswordMustContainNumberError';
|
||||
export type { PasswordMustContainUppercaseLetterError } from './models/PasswordMustContainUppercaseLetterError';
|
||||
export type { PasswordNeededError } from './models/PasswordNeededError';
|
||||
export type { PasswordTooShortError } from './models/PasswordTooShortError';
|
||||
export { Permission } from './models/Permission';
|
||||
export type { PermissionIdsNotMatchingError } from './models/PermissionIdsNotMatchingError';
|
||||
export type { PermissionNeedsPrincipalError } from './models/PermissionNeedsPrincipalError';
|
||||
|
@ -82,6 +86,7 @@ export type { ResponseRunnerTeam } from './models/ResponseRunnerTeam';
|
|||
export type { ResponseScan } from './models/ResponseScan';
|
||||
export type { ResponseScanStation } from './models/ResponseScanStation';
|
||||
export type { ResponseSelfServiceDonation } from './models/ResponseSelfServiceDonation';
|
||||
export type { ResponseSelfServiceDonor } from './models/ResponseSelfServiceDonor';
|
||||
export type { ResponseSelfServiceOrganisation } from './models/ResponseSelfServiceOrganisation';
|
||||
export type { ResponseSelfServiceRunner } from './models/ResponseSelfServiceRunner';
|
||||
export type { ResponseSelfServiceScan } from './models/ResponseSelfServiceScan';
|
||||
|
@ -116,6 +121,7 @@ export type { RunnerOrganizationHasTeamsError } from './models/RunnerOrganizatio
|
|||
export type { RunnerOrganizationIdsNotMatchingError } from './models/RunnerOrganizationIdsNotMatchingError';
|
||||
export type { RunnerOrganizationNotFoundError } from './models/RunnerOrganizationNotFoundError';
|
||||
export type { RunnerOrganizationWrongTypeError } from './models/RunnerOrganizationWrongTypeError';
|
||||
export type { RunnerSelfserviceTimeoutError } from './models/RunnerSelfserviceTimeoutError';
|
||||
export type { RunnerTeam } from './models/RunnerTeam';
|
||||
export type { RunnerTeamHasRunnersError } from './models/RunnerTeamHasRunnersError';
|
||||
export type { RunnerTeamIdsNotMatchingError } from './models/RunnerTeamIdsNotMatchingError';
|
||||
|
|
|
@ -2,4 +2,5 @@ export declare type CreateDistanceDonation = {
|
|||
runner: number;
|
||||
amountPerDistance: number;
|
||||
donor: number;
|
||||
paidAmount?: number;
|
||||
};
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
export declare type CreateDonation = {
|
||||
donor: number;
|
||||
paidAmount?: number;
|
||||
};
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
export declare type CreateFixedDonation = {
|
||||
amount: number;
|
||||
donor: number;
|
||||
paidAmount?: number;
|
||||
};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
export declare type CreateTrackScan = {
|
||||
card: number;
|
||||
station: number;
|
||||
station?: number;
|
||||
};
|
||||
|
|
|
@ -3,4 +3,5 @@ export declare type DistanceDonation = {
|
|||
amountPerDistance: number;
|
||||
id: number;
|
||||
donor: string;
|
||||
paidAmount: number;
|
||||
};
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
export declare type Donation = {
|
||||
id: number;
|
||||
donor: string;
|
||||
paidAmount: number;
|
||||
};
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
export declare type Donor = {
|
||||
receiptNeeded: boolean;
|
||||
donationAmount: number;
|
||||
paidDonationAmount: number;
|
||||
id: number;
|
||||
firstname: string;
|
||||
middlename?: string;
|
||||
|
|
|
@ -3,4 +3,5 @@ export declare type FixedDonation = {
|
|||
amount: number;
|
||||
id: number;
|
||||
donor: string;
|
||||
paidAmount: number;
|
||||
};
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
export declare type PasswordMustContainLowercaseLetterError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
|
@ -0,0 +1,5 @@
|
|||
"use strict";
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@ -0,0 +1,4 @@
|
|||
export declare type PasswordMustContainNumberError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
|
@ -0,0 +1,5 @@
|
|||
"use strict";
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@ -0,0 +1,4 @@
|
|||
export declare type PasswordMustContainUppercaseLetterError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
|
@ -0,0 +1,5 @@
|
|||
"use strict";
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@ -0,0 +1,4 @@
|
|||
export declare type PasswordTooShortError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
|
@ -0,0 +1,5 @@
|
|||
"use strict";
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@ -4,4 +4,5 @@ export declare type ResponseDistanceDonation = {
|
|||
id: number;
|
||||
donor: string;
|
||||
amount: number;
|
||||
paidAmount: number;
|
||||
};
|
||||
|
|
|
@ -2,4 +2,5 @@ export declare type ResponseDonation = {
|
|||
id: number;
|
||||
donor: string;
|
||||
amount: number;
|
||||
paidAmount: number;
|
||||
};
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
export declare type ResponseDonor = {
|
||||
receiptNeeded: boolean;
|
||||
donationAmount: number;
|
||||
paidDonationAmount: number;
|
||||
id: number;
|
||||
firstname: string;
|
||||
middlename: string;
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
export declare type ResponseSelfServiceDonor = {
|
||||
id: number;
|
||||
firstname: string;
|
||||
middlename: string;
|
||||
lastname: string;
|
||||
};
|
|
@ -0,0 +1,5 @@
|
|||
"use strict";
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@ -2,7 +2,7 @@ export declare type ResponseSelfServiceRunner = {
|
|||
distance: number;
|
||||
donationAmount: number;
|
||||
group: string;
|
||||
donations: string;
|
||||
distanceDonations: string;
|
||||
token?: string;
|
||||
id: number;
|
||||
firstname: string;
|
||||
|
|
|
@ -5,5 +5,6 @@ export declare type ResponseStatsRunner = {
|
|||
lastname: string;
|
||||
distance: number;
|
||||
donationAmount: number;
|
||||
minLaptime?: number;
|
||||
group: any;
|
||||
};
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
export declare type Runner = {
|
||||
group: string;
|
||||
resetRequestedTimestamp?: string;
|
||||
distance: number;
|
||||
distanceDonationAmount: number;
|
||||
id: number;
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
export declare type RunnerSelfserviceTimeoutError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
|
@ -0,0 +1,5 @@
|
|||
"use strict";
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@ -3,4 +3,5 @@ export declare type UpdateDistanceDonation = {
|
|||
amountPerDistance: number;
|
||||
id: number;
|
||||
donor: number;
|
||||
paidAmount?: number;
|
||||
};
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
export declare type UpdateDonation = {
|
||||
id: number;
|
||||
donor: number;
|
||||
paidAmount?: number;
|
||||
};
|
||||
|
|
|
@ -2,4 +2,5 @@ export declare type UpdateFixedDonation = {
|
|||
amount: number;
|
||||
id: number;
|
||||
donor: number;
|
||||
paidAmount?: number;
|
||||
};
|
||||
|
|
|
@ -2,5 +2,5 @@ export declare type UpdateTrackScan = {
|
|||
id: number;
|
||||
runner: number;
|
||||
valid?: boolean;
|
||||
station: number;
|
||||
track: number;
|
||||
};
|
||||
|
|
|
@ -3,12 +3,12 @@ import type { ResponseUserPermissions } from '../models/ResponseUserPermissions'
|
|||
import type { UpdateUser } from '../models/UpdateUser';
|
||||
export declare class MeService {
|
||||
/**
|
||||
* Get permissions
|
||||
* Lists all permissions granted to the you sorted into directly granted and inherited as permission response objects.
|
||||
* @returns ResponseUserPermissions
|
||||
* Get
|
||||
* Lists all information about yourself.
|
||||
* @returns ResponseUser
|
||||
* @throws ApiError
|
||||
*/
|
||||
static meControllerGetPermissions(): Promise<ResponseUserPermissions>;
|
||||
static meControllerGet(): Promise<ResponseUser>;
|
||||
/**
|
||||
* Put
|
||||
* Update the yourself. <br> You can't edit your own permissions or group memberships here - Please use the /api/users/:id enpoint instead. <br> Please remember that ids can't be changed.
|
||||
|
@ -25,4 +25,11 @@ export declare class MeService {
|
|||
* @throws ApiError
|
||||
*/
|
||||
static meControllerRemove(force?: boolean): Promise<ResponseUser>;
|
||||
/**
|
||||
* Get permissions
|
||||
* Lists all permissions granted to the you sorted into directly granted and inherited as permission response objects.
|
||||
* @returns ResponseUserPermissions
|
||||
* @throws ApiError
|
||||
*/
|
||||
static meControllerGetPermissions(): Promise<ResponseUserPermissions>;
|
||||
}
|
||||
|
|
|
@ -4,12 +4,12 @@ exports.MeService = void 0;
|
|||
const request_1 = require("../core/request");
|
||||
class MeService {
|
||||
/**
|
||||
* Get permissions
|
||||
* Lists all permissions granted to the you sorted into directly granted and inherited as permission response objects.
|
||||
* @returns ResponseUserPermissions
|
||||
* Get
|
||||
* Lists all information about yourself.
|
||||
* @returns ResponseUser
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async meControllerGetPermissions() {
|
||||
static async meControllerGet() {
|
||||
const result = await request_1.request({
|
||||
method: 'GET',
|
||||
path: `/api/users/me/`,
|
||||
|
@ -48,5 +48,18 @@ class MeService {
|
|||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Get permissions
|
||||
* Lists all permissions granted to the you sorted into directly granted and inherited as permission response objects.
|
||||
* @returns ResponseUserPermissions
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async meControllerGetPermissions() {
|
||||
const result = await request_1.request({
|
||||
method: 'GET',
|
||||
path: `/api/users/me/permissions`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
}
|
||||
exports.MeService = MeService;
|
||||
|
|
|
@ -45,4 +45,13 @@ export declare class RunnerCardService {
|
|||
* @throws ApiError
|
||||
*/
|
||||
static runnerCardControllerRemove(id: number, force?: boolean): Promise<ResponseRunnerCard | ResponseEmpty>;
|
||||
/**
|
||||
* Post blanco bulk
|
||||
* Create blank cards in bulk. <br> Just provide the count as a query param and wait for the 200 response. <br> You can provide the 'returnCards' query param if you want to receive the RESPONSERUNNERCARD objects in the response.
|
||||
* @param count
|
||||
* @param returnCards
|
||||
* @returns ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static runnerCardControllerPostBlancoBulk(count?: number, returnCards?: boolean): Promise<ResponseEmpty>;
|
||||
}
|
||||
|
|
|
@ -80,5 +80,24 @@ class RunnerCardService {
|
|||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Post blanco bulk
|
||||
* Create blank cards in bulk. <br> Just provide the count as a query param and wait for the 200 response. <br> You can provide the 'returnCards' query param if you want to receive the RESPONSERUNNERCARD objects in the response.
|
||||
* @param count
|
||||
* @param returnCards
|
||||
* @returns ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async runnerCardControllerPostBlancoBulk(count, returnCards) {
|
||||
const result = await request_1.request({
|
||||
method: 'POST',
|
||||
path: `/api/cards/bulk`,
|
||||
query: {
|
||||
'count': count,
|
||||
'returnCards': returnCards,
|
||||
},
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
}
|
||||
exports.RunnerCardService = RunnerCardService;
|
||||
|
|
|
@ -1,17 +1,27 @@
|
|||
import type { CreateSelfServiceCitizenRunner } from '../models/CreateSelfServiceCitizenRunner';
|
||||
import type { CreateSelfServiceRunner } from '../models/CreateSelfServiceRunner';
|
||||
import type { ResponseScanStation } from '../models/ResponseScanStation';
|
||||
import type { ResponseSelfServiceOrganisation } from '../models/ResponseSelfServiceOrganisation';
|
||||
import type { ResponseSelfServiceRunner } from '../models/ResponseSelfServiceRunner';
|
||||
import type { ResponseSelfServiceScan } from '../models/ResponseSelfServiceScan';
|
||||
export declare class RunnerSelfService {
|
||||
/**
|
||||
* Get
|
||||
* Lists all information about yourself. <br> Please provide your runner jwt(that code we gave you during registration) for auth. <br> If you lost your jwt/personalized link please contact support.
|
||||
* Lists all information about yourself. <br> Please provide your runner jwt(that code we gave you during registration) for auth. <br> If you lost your jwt/personalized link please use the forgot endpoint.
|
||||
* @param jwt
|
||||
* @returns ResponseSelfServiceRunner
|
||||
* @throws ApiError
|
||||
*/
|
||||
static runnerSelfServiceControllerGet(jwt: string): Promise<ResponseSelfServiceRunner>;
|
||||
/**
|
||||
* Remove
|
||||
* Deletes all information about yourself. <br> Please provide your runner jwt(that code we gave you during registration) for auth. <br> If you lost your jwt/personalized link please use the forgot endpoint.
|
||||
* @param jwt
|
||||
* @param force
|
||||
* @returns ResponseSelfServiceRunner
|
||||
* @throws ApiError
|
||||
*/
|
||||
static runnerSelfServiceControllerRemove(jwt: string, force?: boolean): Promise<ResponseSelfServiceRunner>;
|
||||
/**
|
||||
* Get scans
|
||||
* Lists all your (runner) scans. <br> Please provide your runner jwt(that code we gave you during registration) for auth. <br> If you lost your jwt/personalized link please contact support.
|
||||
|
@ -20,23 +30,41 @@ export declare class RunnerSelfService {
|
|||
* @throws ApiError
|
||||
*/
|
||||
static runnerSelfServiceControllerGetScans(jwt: string): Promise<Array<ResponseSelfServiceScan>>;
|
||||
/**
|
||||
* Get station me
|
||||
* Lists basic information about the station whose token got provided. <br> This includes it's associated track.
|
||||
* @returns ResponseScanStation
|
||||
* @throws ApiError
|
||||
*/
|
||||
static runnerSelfServiceControllerGetStationMe(): Promise<ResponseScanStation>;
|
||||
/**
|
||||
* Request new token
|
||||
* Use this endpoint to reuqest a new selfservice token/link to be sent to your mail address (rate limited to one mail every 24hrs).
|
||||
* @param mail
|
||||
* @param locale
|
||||
* @returns any Successful response
|
||||
* @throws ApiError
|
||||
*/
|
||||
static runnerSelfServiceControllerRequestNewToken(mail?: string, locale?: string): Promise<any>;
|
||||
/**
|
||||
* Register runner
|
||||
* Create a new selfservice runner in the citizen org. <br> This endpoint shoud be used to allow "everyday citizen" to register themselves. <br> You have to provide a mail address, b/c the future we'll implement email verification.
|
||||
* @param locale
|
||||
* @param requestBody CreateSelfServiceCitizenRunner
|
||||
* @returns ResponseSelfServiceRunner
|
||||
* @throws ApiError
|
||||
*/
|
||||
static runnerSelfServiceControllerRegisterRunner(requestBody?: CreateSelfServiceCitizenRunner): Promise<ResponseSelfServiceRunner>;
|
||||
static runnerSelfServiceControllerRegisterRunner(locale?: string, requestBody?: CreateSelfServiceCitizenRunner): Promise<ResponseSelfServiceRunner>;
|
||||
/**
|
||||
* Register organization runner
|
||||
* Create a new selfservice runner in a provided org. <br> The orgs get provided and authorized via api tokens that can be optained via the /organizations endpoint.
|
||||
* @param token
|
||||
* @param locale
|
||||
* @param requestBody CreateSelfServiceRunner
|
||||
* @returns ResponseSelfServiceRunner
|
||||
* @throws ApiError
|
||||
*/
|
||||
static runnerSelfServiceControllerRegisterOrganizationRunner(token: string, requestBody?: CreateSelfServiceRunner): Promise<ResponseSelfServiceRunner>;
|
||||
static runnerSelfServiceControllerRegisterOrganizationRunner(token: string, locale?: string, requestBody?: CreateSelfServiceRunner): Promise<ResponseSelfServiceRunner>;
|
||||
/**
|
||||
* Get selfservice org
|
||||
* Get the basic info and teams for a org.
|
||||
|
|
|
@ -5,7 +5,7 @@ const request_1 = require("../core/request");
|
|||
class RunnerSelfService {
|
||||
/**
|
||||
* Get
|
||||
* Lists all information about yourself. <br> Please provide your runner jwt(that code we gave you during registration) for auth. <br> If you lost your jwt/personalized link please contact support.
|
||||
* Lists all information about yourself. <br> Please provide your runner jwt(that code we gave you during registration) for auth. <br> If you lost your jwt/personalized link please use the forgot endpoint.
|
||||
* @param jwt
|
||||
* @returns ResponseSelfServiceRunner
|
||||
* @throws ApiError
|
||||
|
@ -17,6 +17,24 @@ class RunnerSelfService {
|
|||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Remove
|
||||
* Deletes all information about yourself. <br> Please provide your runner jwt(that code we gave you during registration) for auth. <br> If you lost your jwt/personalized link please use the forgot endpoint.
|
||||
* @param jwt
|
||||
* @param force
|
||||
* @returns ResponseSelfServiceRunner
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async runnerSelfServiceControllerRemove(jwt, force) {
|
||||
const result = await request_1.request({
|
||||
method: 'DELETE',
|
||||
path: `/api/runners/me/${jwt}`,
|
||||
query: {
|
||||
'force': force,
|
||||
},
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Get scans
|
||||
* Lists all your (runner) scans. <br> Please provide your runner jwt(that code we gave you during registration) for auth. <br> If you lost your jwt/personalized link please contact support.
|
||||
|
@ -31,17 +49,53 @@ class RunnerSelfService {
|
|||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Get station me
|
||||
* Lists basic information about the station whose token got provided. <br> This includes it's associated track.
|
||||
* @returns ResponseScanStation
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async runnerSelfServiceControllerGetStationMe() {
|
||||
const result = await request_1.request({
|
||||
method: 'GET',
|
||||
path: `/api/stations/me`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Request new token
|
||||
* Use this endpoint to reuqest a new selfservice token/link to be sent to your mail address (rate limited to one mail every 24hrs).
|
||||
* @param mail
|
||||
* @param locale
|
||||
* @returns any Successful response
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async runnerSelfServiceControllerRequestNewToken(mail, locale) {
|
||||
const result = await request_1.request({
|
||||
method: 'POST',
|
||||
path: `/api/runners/forgot`,
|
||||
query: {
|
||||
'mail': mail,
|
||||
'locale': locale,
|
||||
},
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Register runner
|
||||
* Create a new selfservice runner in the citizen org. <br> This endpoint shoud be used to allow "everyday citizen" to register themselves. <br> You have to provide a mail address, b/c the future we'll implement email verification.
|
||||
* @param locale
|
||||
* @param requestBody CreateSelfServiceCitizenRunner
|
||||
* @returns ResponseSelfServiceRunner
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async runnerSelfServiceControllerRegisterRunner(requestBody) {
|
||||
static async runnerSelfServiceControllerRegisterRunner(locale, requestBody) {
|
||||
const result = await request_1.request({
|
||||
method: 'POST',
|
||||
path: `/api/runners/register`,
|
||||
query: {
|
||||
'locale': locale,
|
||||
},
|
||||
body: requestBody,
|
||||
});
|
||||
return result.body;
|
||||
|
@ -50,14 +104,18 @@ class RunnerSelfService {
|
|||
* Register organization runner
|
||||
* Create a new selfservice runner in a provided org. <br> The orgs get provided and authorized via api tokens that can be optained via the /organizations endpoint.
|
||||
* @param token
|
||||
* @param locale
|
||||
* @param requestBody CreateSelfServiceRunner
|
||||
* @returns ResponseSelfServiceRunner
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async runnerSelfServiceControllerRegisterOrganizationRunner(token, requestBody) {
|
||||
static async runnerSelfServiceControllerRegisterOrganizationRunner(token, locale, requestBody) {
|
||||
const result = await request_1.request({
|
||||
method: 'POST',
|
||||
path: `/api/runners/register/${token}`,
|
||||
query: {
|
||||
'locale': locale,
|
||||
},
|
||||
body: requestBody,
|
||||
});
|
||||
return result.body;
|
||||
|
|
|
@ -24,6 +24,14 @@ export declare class StatsService {
|
|||
* @throws ApiError
|
||||
*/
|
||||
static statsControllerGetTopRunnersByDonations(): Promise<Array<ResponseStatsRunner>>;
|
||||
/**
|
||||
* Get top runners by laptime
|
||||
* Returns the top ten runners by fastest laptime on your selected track (track by id).
|
||||
* @param track
|
||||
* @returns ResponseStatsRunner
|
||||
* @throws ApiError
|
||||
*/
|
||||
static statsControllerGetTopRunnersByLaptime(track?: number): Promise<Array<ResponseStatsRunner>>;
|
||||
/**
|
||||
* Get top runners by track time
|
||||
* Returns the top ten fastest track times (with their runner and the runner's group).
|
||||
|
|
|
@ -42,6 +42,23 @@ class StatsService {
|
|||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Get top runners by laptime
|
||||
* Returns the top ten runners by fastest laptime on your selected track (track by id).
|
||||
* @param track
|
||||
* @returns ResponseStatsRunner
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async statsControllerGetTopRunnersByLaptime(track) {
|
||||
const result = await request_1.request({
|
||||
method: 'GET',
|
||||
path: `/api/stats/runners/laptime`,
|
||||
query: {
|
||||
'track': track,
|
||||
},
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Get top runners by track time
|
||||
* Returns the top ten fastest track times (with their runner and the runner's group).
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@odit/lfk-client-node",
|
||||
"description": "A lib to interact with https://git.odit.services/lfk/backend. Use this version for NodeJS applications.",
|
||||
"version": "0.5.0",
|
||||
"version": "0.11.1",
|
||||
"license": "CC-BY-NC-SA-4.0",
|
||||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
|
|
Reference in New Issue