🚀New lib version v0.11.0 [CI SKIP]
continuous-integration/drone Build is passing
Details
continuous-integration/drone Build is passing
Details
This commit is contained in:
parent
1a378fcea9
commit
76a08a9c34
|
@ -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.10.1',
|
VERSION: '0.11.0',
|
||||||
WITH_CREDENTIALS: false,
|
WITH_CREDENTIALS: false,
|
||||||
TOKEN: undefined,
|
TOKEN: undefined,
|
||||||
USERNAME: undefined,
|
USERNAME: undefined,
|
||||||
|
|
|
@ -2,4 +2,5 @@ export declare type CreateDistanceDonation = {
|
||||||
runner: number;
|
runner: number;
|
||||||
amountPerDistance: number;
|
amountPerDistance: number;
|
||||||
donor: number;
|
donor: number;
|
||||||
|
paidAmount?: number;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
export declare type CreateDonation = {
|
export declare type CreateDonation = {
|
||||||
donor: number;
|
donor: number;
|
||||||
|
paidAmount?: number;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
export declare type CreateFixedDonation = {
|
export declare type CreateFixedDonation = {
|
||||||
amount: number;
|
amount: number;
|
||||||
donor: number;
|
donor: number;
|
||||||
|
paidAmount?: number;
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,4 +3,5 @@ export declare type DistanceDonation = {
|
||||||
amountPerDistance: number;
|
amountPerDistance: number;
|
||||||
id: number;
|
id: number;
|
||||||
donor: string;
|
donor: string;
|
||||||
|
paidAmount: number;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
export declare type Donation = {
|
export declare type Donation = {
|
||||||
id: number;
|
id: number;
|
||||||
donor: string;
|
donor: string;
|
||||||
|
paidAmount: number;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
export declare type Donor = {
|
export declare type Donor = {
|
||||||
receiptNeeded: boolean;
|
receiptNeeded: boolean;
|
||||||
donationAmount: number;
|
donationAmount: number;
|
||||||
|
paidDonationAmount: number;
|
||||||
id: number;
|
id: number;
|
||||||
firstname: string;
|
firstname: string;
|
||||||
middlename?: string;
|
middlename?: string;
|
||||||
|
|
|
@ -3,4 +3,5 @@ export declare type FixedDonation = {
|
||||||
amount: number;
|
amount: number;
|
||||||
id: number;
|
id: number;
|
||||||
donor: string;
|
donor: string;
|
||||||
|
paidAmount: number;
|
||||||
};
|
};
|
||||||
|
|
|
@ -4,4 +4,5 @@ export declare type ResponseDistanceDonation = {
|
||||||
id: number;
|
id: number;
|
||||||
donor: string;
|
donor: string;
|
||||||
amount: number;
|
amount: number;
|
||||||
|
paidAmount: number;
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,4 +2,5 @@ export declare type ResponseDonation = {
|
||||||
id: number;
|
id: number;
|
||||||
donor: string;
|
donor: string;
|
||||||
amount: number;
|
amount: number;
|
||||||
|
paidAmount: number;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
export declare type ResponseDonor = {
|
export declare type ResponseDonor = {
|
||||||
receiptNeeded: boolean;
|
receiptNeeded: boolean;
|
||||||
donationAmount: number;
|
donationAmount: number;
|
||||||
|
paidDonationAmount: number;
|
||||||
id: number;
|
id: number;
|
||||||
firstname: string;
|
firstname: string;
|
||||||
middlename: string;
|
middlename: string;
|
||||||
|
|
|
@ -5,5 +5,6 @@ export declare type ResponseStatsRunner = {
|
||||||
lastname: string;
|
lastname: string;
|
||||||
distance: number;
|
distance: number;
|
||||||
donationAmount: number;
|
donationAmount: number;
|
||||||
|
minLaptime?: number;
|
||||||
group: any;
|
group: any;
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,4 +3,5 @@ export declare type UpdateDistanceDonation = {
|
||||||
amountPerDistance: number;
|
amountPerDistance: number;
|
||||||
id: number;
|
id: number;
|
||||||
donor: number;
|
donor: number;
|
||||||
|
paidAmount?: number;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
export declare type UpdateDonation = {
|
export declare type UpdateDonation = {
|
||||||
id: number;
|
id: number;
|
||||||
donor: number;
|
donor: number;
|
||||||
|
paidAmount?: number;
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,4 +2,5 @@ export declare type UpdateFixedDonation = {
|
||||||
amount: number;
|
amount: number;
|
||||||
id: number;
|
id: number;
|
||||||
donor: number;
|
donor: number;
|
||||||
|
paidAmount?: number;
|
||||||
};
|
};
|
||||||
|
|
|
@ -24,6 +24,14 @@ export declare class StatsService {
|
||||||
* @throws ApiError
|
* @throws ApiError
|
||||||
*/
|
*/
|
||||||
static statsControllerGetTopRunnersByDonations(): Promise<Array<ResponseStatsRunner>>;
|
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
|
* Get top runners by track time
|
||||||
* Returns the top ten fastest track times (with their runner and the runner's group).
|
* Returns the top ten fastest track times (with their runner and the runner's group).
|
||||||
|
|
|
@ -42,6 +42,23 @@ class StatsService {
|
||||||
});
|
});
|
||||||
return result.body;
|
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
|
* Get top runners by track time
|
||||||
* Returns the top ten fastest track times (with their runner and the runner's group).
|
* 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",
|
"name": "@odit/lfk-client-node",
|
||||||
"description": "A lib to interact with https://git.odit.services/lfk/backend. Use this version for NodeJS applications.",
|
"description": "A lib to interact with https://git.odit.services/lfk/backend. Use this version for NodeJS applications.",
|
||||||
"version": "0.10.1",
|
"version": "0.11.0",
|
||||||
"license": "CC-BY-NC-SA-4.0",
|
"license": "CC-BY-NC-SA-4.0",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
|
|
Reference in New Issue