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

This commit is contained in:
2021-04-14 17:08:11 +00:00
parent 1a378fcea9
commit 76a08a9c34
19 changed files with 42 additions and 3 deletions

View File

@@ -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).

View File

@@ -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).