Merge branch 'main' of git.odit.services:lfk/lfk-client-js
continuous-integration/drone Build is failing
continuous-integration/drone Build is failing
This commit is contained in:
19 files changed
+42
-3
No files matched your search
Vendored
+1
-1
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.OpenAPI = void 0;
|
||||
exports.OpenAPI = {
|
||||
BASE: '',
|
||||
VERSION: '0.10.1',
|
||||
VERSION: '0.11.1',
|
||||
WITH_CREDENTIALS: false,
|
||||
TOKEN: undefined,
|
||||
USERNAME: undefined,
|
||||
|
||||
+1
@@ -2,4 +2,5 @@ export declare type CreateDistanceDonation = {
|
||||
runner: number;
|
||||
amountPerDistance: number;
|
||||
donor: number;
|
||||
paidAmount?: number;
|
||||
};
|
||||
Vendored
+1
@@ -1,3 +1,4 @@
|
||||
export declare type CreateDonation = {
|
||||
donor: number;
|
||||
paidAmount?: number;
|
||||
};
|
||||
Vendored
+1
@@ -1,4 +1,5 @@
|
||||
export declare type CreateFixedDonation = {
|
||||
amount: number;
|
||||
donor: number;
|
||||
paidAmount?: number;
|
||||
};
|
||||
Vendored
+1
@@ -3,4 +3,5 @@ export declare type DistanceDonation = {
|
||||
amountPerDistance: number;
|
||||
id: number;
|
||||
donor: string;
|
||||
paidAmount: number;
|
||||
};
|
||||
Vendored
+1
@@ -1,4 +1,5 @@
|
||||
export declare type Donation = {
|
||||
id: number;
|
||||
donor: string;
|
||||
paidAmount: number;
|
||||
};
|
||||
Vendored
+1
@@ -1,6 +1,7 @@
|
||||
export declare type Donor = {
|
||||
receiptNeeded: boolean;
|
||||
donationAmount: number;
|
||||
paidDonationAmount: number;
|
||||
id: number;
|
||||
firstname: string;
|
||||
middlename?: string;
|
||||
|
||||
Vendored
+1
@@ -3,4 +3,5 @@ export declare type FixedDonation = {
|
||||
amount: number;
|
||||
id: number;
|
||||
donor: string;
|
||||
paidAmount: number;
|
||||
};
|
||||
+1
@@ -4,4 +4,5 @@ export declare type ResponseDistanceDonation = {
|
||||
id: number;
|
||||
donor: string;
|
||||
amount: number;
|
||||
paidAmount: number;
|
||||
};
|
||||
Vendored
+1
@@ -2,4 +2,5 @@ export declare type ResponseDonation = {
|
||||
id: number;
|
||||
donor: string;
|
||||
amount: number;
|
||||
paidAmount: number;
|
||||
};
|
||||
Vendored
+1
@@ -1,6 +1,7 @@
|
||||
export declare type ResponseDonor = {
|
||||
receiptNeeded: boolean;
|
||||
donationAmount: number;
|
||||
paidDonationAmount: number;
|
||||
id: number;
|
||||
firstname: string;
|
||||
middlename: string;
|
||||
|
||||
Vendored
+1
@@ -5,5 +5,6 @@ export declare type ResponseStatsRunner = {
|
||||
lastname: string;
|
||||
distance: number;
|
||||
donationAmount: number;
|
||||
minLaptime?: number;
|
||||
group: any;
|
||||
};
|
||||
+1
@@ -3,4 +3,5 @@ export declare type UpdateDistanceDonation = {
|
||||
amountPerDistance: number;
|
||||
id: number;
|
||||
donor: number;
|
||||
paidAmount?: number;
|
||||
};
|
||||
Vendored
+1
@@ -1,4 +1,5 @@
|
||||
export declare type UpdateDonation = {
|
||||
id: number;
|
||||
donor: number;
|
||||
paidAmount?: number;
|
||||
};
|
||||
Vendored
+1
@@ -2,4 +2,5 @@ export declare type UpdateFixedDonation = {
|
||||
amount: number;
|
||||
id: number;
|
||||
donor: number;
|
||||
paidAmount?: number;
|
||||
};
|
||||
Vendored
+8
@@ -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).
|
||||
|
||||
Vendored
+17
@@ -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).
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"components":{"schemas":{"IllegalJWTError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"UserNonexistantOrRefreshtokenInvalidError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"InvalidCredentialsError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"NoPermissionError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"UsernameOrEmailNeededError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"PasswordNeededError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"UserNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"JwtNotProvidedError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"UserNotFoundOrRefreshTokenCountInvalidError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RefreshTokenCountInvalidError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"ResetAlreadyRequestedError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"UserDisabledError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"JwtUser":{"properties":{"id":{"type":"integer"},"uuid":{"format":"uuid","type":"string"},"email":{"format":"email","type":"string"},"username":{"type":"string"},"firstname":{"minLength":1,"type":"string"},"middlename":{"type":"string"},"lastname":{"minLength":1,"type":"string"},"enabled":{"type":"boolean"},"refreshTokenCount":{"minLength":1,"type":"integer"},"profilePic":{"type":"string"}},"type":"object","required":["id","uuid","firstname","lastname","enabled","refreshTokenCount"]},"ResponsePrincipal":{"properties":{"id":{"type":"integer"}},"type":"object","required":["id"]},"ResponseUser":{"properties":{"firstname":{"type":"string"},"middlename":{"type":"string"},"lastname":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"username":{"type":"string"},"enabled":{"type":"boolean"},"profilePic":{"type":"string"},"groups":{"items":{},"type":"array"},"permissions":{"items":{},"type":"array"},"id":{"type":"integer"}},"type":"object","required":["firstname","middlename","lastname","phone","email","username","enabled","profilePic","id"]},"ResponsePermission":{"properties":{"id":{"type":"integer"},"principal":{"minLength":1,"type":"object"},"target":{"enum":["RUNNER","ORGANIZATION","TEAM","TRACK","USER","USERGROUP","PERMISSION","STATSCLIENT","DONOR","SCAN","STATION","CARD","DONATION","CONTACT","MAIL"],"type":"string","minLength":1},"action":{"enum":["GET","CREATE","UPDATE","DELETE","IMPORT"],"type":"string","minLength":1}},"type":"object","required":["id","principal","target","action"]},"Permission":{"properties":{"id":{"type":"integer"},"target":{"enum":["RUNNER","ORGANIZATION","TEAM","TRACK","USER","USERGROUP","PERMISSION","STATSCLIENT","DONOR","SCAN","STATION","CARD","DONATION","CONTACT","MAIL"],"type":"string","minLength":1},"action":{"enum":["GET","CREATE","UPDATE","DELETE","IMPORT"],"type":"string"}},"type":"object","required":["id","target","action"]},"Principal":{"properties":{"id":{"type":"integer"}},"type":"object","required":["id"]},"UserAction":{"properties":{"id":{"type":"integer"},"target":{"type":"string","minLength":1},"action":{"enum":["GET","CREATE","UPDATE","DELETE","IMPORT"],"type":"string"},"changed":{"type":"string"}},"type":"object","required":["id","target","action"]},"ResponseUserGroup":{"properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"permissions":{"items":{},"type":"array"},"id":{"type":"integer"}},"type":"object","required":["name","id"]},"UserGroup":{"properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"id":{"type":"integer"}},"type":"object","required":["name","id"]},"User":{"properties":{"uuid":{"format":"uuid","type":"string"},"email":{"minLength":1,"type":"string","format":"email"},"phone":{"type":"string"},"username":{"type":"string"},"firstname":{"minLength":1,"type":"string"},"middlename":{"type":"string"},"lastname":{"minLength":1,"type":"string"},"password":{"minLength":1,"type":"string"},"groups":{},"enabled":{"type":"boolean"},"refreshTokenCount":{"type":"integer"},"profilePic":{"format":"url","type":"string"},"resetRequestedTimestamp":{"type":"string"},"actions":{},"id":{"type":"integer"}},"type":"object","required":["uuid","email","username","firstname","lastname","passwLine truncated
|
||||
{"components":{"schemas":{"IllegalJWTError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"UserNonexistantOrRefreshtokenInvalidError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"InvalidCredentialsError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"NoPermissionError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"UsernameOrEmailNeededError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"PasswordNeededError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"UserNotFoundError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"JwtNotProvidedError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"UserNotFoundOrRefreshTokenCountInvalidError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"RefreshTokenCountInvalidError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"ResetAlreadyRequestedError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"UserDisabledError":{"properties":{"name":{"type":"string"},"message":{"type":"string"}},"type":"object","required":["name","message"]},"JwtUser":{"properties":{"id":{"type":"integer"},"uuid":{"format":"uuid","type":"string"},"email":{"format":"email","type":"string"},"username":{"type":"string"},"firstname":{"minLength":1,"type":"string"},"middlename":{"type":"string"},"lastname":{"minLength":1,"type":"string"},"enabled":{"type":"boolean"},"refreshTokenCount":{"minLength":1,"type":"integer"},"profilePic":{"type":"string"}},"type":"object","required":["id","uuid","firstname","lastname","enabled","refreshTokenCount"]},"ResponsePrincipal":{"properties":{"id":{"type":"integer"}},"type":"object","required":["id"]},"ResponseUser":{"properties":{"firstname":{"type":"string"},"middlename":{"type":"string"},"lastname":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"username":{"type":"string"},"enabled":{"type":"boolean"},"profilePic":{"type":"string"},"groups":{"items":{},"type":"array"},"permissions":{"items":{},"type":"array"},"id":{"type":"integer"}},"type":"object","required":["firstname","middlename","lastname","phone","email","username","enabled","profilePic","id"]},"ResponsePermission":{"properties":{"id":{"type":"integer"},"principal":{"minLength":1,"type":"object"},"target":{"enum":["RUNNER","ORGANIZATION","TEAM","TRACK","USER","USERGROUP","PERMISSION","STATSCLIENT","DONOR","SCAN","STATION","CARD","DONATION","CONTACT","MAIL"],"type":"string","minLength":1},"action":{"enum":["GET","CREATE","UPDATE","DELETE","IMPORT"],"type":"string","minLength":1}},"type":"object","required":["id","principal","target","action"]},"Permission":{"properties":{"id":{"type":"integer"},"target":{"enum":["RUNNER","ORGANIZATION","TEAM","TRACK","USER","USERGROUP","PERMISSION","STATSCLIENT","DONOR","SCAN","STATION","CARD","DONATION","CONTACT","MAIL"],"type":"string","minLength":1},"action":{"enum":["GET","CREATE","UPDATE","DELETE","IMPORT"],"type":"string"}},"type":"object","required":["id","target","action"]},"Principal":{"properties":{"id":{"type":"integer"}},"type":"object","required":["id"]},"UserAction":{"properties":{"id":{"type":"integer"},"target":{"type":"string","minLength":1},"action":{"enum":["GET","CREATE","UPDATE","DELETE","IMPORT"],"type":"string"},"changed":{"type":"string"}},"type":"object","required":["id","target","action"]},"ResponseUserGroup":{"properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"permissions":{"items":{},"type":"array"},"id":{"type":"integer"}},"type":"object","required":["name","id"]},"UserGroup":{"properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"id":{"type":"integer"}},"type":"object","required":["name","id"]},"User":{"properties":{"uuid":{"format":"uuid","type":"string"},"email":{"minLength":1,"type":"string","format":"email"},"phone":{"type":"string"},"username":{"type":"string"},"firstname":{"minLength":1,"type":"string"},"middlename":{"type":"string"},"lastname":{"minLength":1,"type":"string"},"password":{"minLength":1,"type":"string"},"groups":{},"enabled":{"type":"boolean"},"refreshTokenCount":{"type":"integer"},"profilePic":{"format":"url","type":"string"},"resetRequestedTimestamp":{"type":"string"},"actions":{},"id":{"type":"integer"}},"type":"object","required":["uuid","email","username","firstname","lastname","passwLine truncated
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@odit/lfk-client-js",
|
||||
"description": "A lib to interact with https://git.odit.services/lfk/backend. Use this version for native JS applications.",
|
||||
"version": "0.10.1",
|
||||
"version": "0.11.1",
|
||||
"license": "CC-BY-NC-SA-4.0",
|
||||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
|
||||
Reference in new issue
Block a user