🚀New lib version v0.11.0 [CI SKIP]
All checks were successful
continuous-integration/drone Build is passing
All checks were successful
continuous-integration/drone Build is passing
This commit is contained in:
8
dist/services/StatsService.d.ts
vendored
8
dist/services/StatsService.d.ts
vendored
@@ -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).
|
||||
|
||||
17
dist/services/StatsService.js
vendored
17
dist/services/StatsService.js
vendored
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user