This commit is contained in:
37
dist/services/StatsClientService.d.ts
vendored
Normal file
37
dist/services/StatsClientService.d.ts
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
import type { CreateStatsClient } from '../models/CreateStatsClient';
|
||||
import type { ResponseEmpty } from '../models/ResponseEmpty';
|
||||
import type { ResponseStatsClient } from '../models/ResponseStatsClient';
|
||||
export declare class StatsClientService {
|
||||
/**
|
||||
* Get all
|
||||
* Lists all stats clients. Please remember that the key can only be viewed on creation.
|
||||
* @returns ResponseStatsClient
|
||||
* @throws ApiError
|
||||
*/
|
||||
static statsClientControllerGetAll(): Promise<Array<ResponseStatsClient>>;
|
||||
/**
|
||||
* Post
|
||||
* Create a new stats client. <br> Please remember that the client's key will be generated automaticly and that it can only be viewed on creation.
|
||||
* @param requestBody CreateStatsClient
|
||||
* @returns ResponseStatsClient
|
||||
* @throws ApiError
|
||||
*/
|
||||
static statsClientControllerPost(requestBody?: CreateStatsClient): Promise<ResponseStatsClient>;
|
||||
/**
|
||||
* Get one
|
||||
* Lists all information about the stats client whose id got provided. Please remember that the key can only be viewed on creation.
|
||||
* @param id
|
||||
* @returns ResponseStatsClient
|
||||
* @throws ApiError
|
||||
*/
|
||||
static statsClientControllerGetOne(id: number): Promise<ResponseStatsClient>;
|
||||
/**
|
||||
* Remove
|
||||
* Delete the stats client whose id you provided. <br> If no client with this id exists it will just return 204(no content).
|
||||
* @param id
|
||||
* @returns ResponseStatsClient
|
||||
* @returns ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static statsClientControllerRemove(id: number): Promise<ResponseStatsClient | ResponseEmpty>;
|
||||
}
|
||||
64
dist/services/StatsClientService.js
vendored
Normal file
64
dist/services/StatsClientService.js
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.StatsClientService = void 0;
|
||||
const request_1 = require("../core/request");
|
||||
class StatsClientService {
|
||||
/**
|
||||
* Get all
|
||||
* Lists all stats clients. Please remember that the key can only be viewed on creation.
|
||||
* @returns ResponseStatsClient
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async statsClientControllerGetAll() {
|
||||
const result = await request_1.request({
|
||||
method: 'GET',
|
||||
path: `/api/statsclients`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Post
|
||||
* Create a new stats client. <br> Please remember that the client's key will be generated automaticly and that it can only be viewed on creation.
|
||||
* @param requestBody CreateStatsClient
|
||||
* @returns ResponseStatsClient
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async statsClientControllerPost(requestBody) {
|
||||
const result = await request_1.request({
|
||||
method: 'POST',
|
||||
path: `/api/statsclients`,
|
||||
body: requestBody,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Get one
|
||||
* Lists all information about the stats client whose id got provided. Please remember that the key can only be viewed on creation.
|
||||
* @param id
|
||||
* @returns ResponseStatsClient
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async statsClientControllerGetOne(id) {
|
||||
const result = await request_1.request({
|
||||
method: 'GET',
|
||||
path: `/api/statsclients/${id}`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Remove
|
||||
* Delete the stats client whose id you provided. <br> If no client with this id exists it will just return 204(no content).
|
||||
* @param id
|
||||
* @returns ResponseStatsClient
|
||||
* @returns ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async statsClientControllerRemove(id) {
|
||||
const result = await request_1.request({
|
||||
method: 'DELETE',
|
||||
path: `/api/statsclients/${id}`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
}
|
||||
exports.StatsClientService = StatsClientService;
|
||||
62
dist/services/StatsService.d.ts
vendored
Normal file
62
dist/services/StatsService.d.ts
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
import type { ResponseStats } from '../models/ResponseStats';
|
||||
import type { ResponseStatsOrgnisation } from '../models/ResponseStatsOrgnisation';
|
||||
import type { ResponseStatsRunner } from '../models/ResponseStatsRunner';
|
||||
import type { ResponseStatsTeam } from '../models/ResponseStatsTeam';
|
||||
export declare class StatsService {
|
||||
/**
|
||||
* Get
|
||||
* A very basic stats endpoint providing basic counters for a dashboard or simmilar
|
||||
* @returns ResponseStats
|
||||
* @throws ApiError
|
||||
*/
|
||||
static statsControllerGet(): Promise<ResponseStats>;
|
||||
/**
|
||||
* Get top runners by distance
|
||||
* Returns the top ten runners by distance.
|
||||
* @returns ResponseStatsRunner
|
||||
* @throws ApiError
|
||||
*/
|
||||
static statsControllerGetTopRunnersByDistance(): Promise<Array<ResponseStatsRunner>>;
|
||||
/**
|
||||
* Get top runners by donations
|
||||
* Returns the top ten runners by donations.
|
||||
* @returns ResponseStatsRunner
|
||||
* @throws ApiError
|
||||
*/
|
||||
static statsControllerGetTopRunnersByDonations(): Promise<Array<ResponseStatsRunner>>;
|
||||
/**
|
||||
* Get top runners by track time
|
||||
* Returns the top ten fastest track times (with their runner and the runner's group).
|
||||
* @returns ResponseStatsRunner
|
||||
* @throws ApiError
|
||||
*/
|
||||
static statsControllerGetTopRunnersByTrackTime(): Promise<Array<ResponseStatsRunner>>;
|
||||
/**
|
||||
* Get top teams by distance
|
||||
* Returns the top ten teams by distance.
|
||||
* @returns ResponseStatsTeam
|
||||
* @throws ApiError
|
||||
*/
|
||||
static statsControllerGetTopTeamsByDistance(): Promise<Array<ResponseStatsTeam>>;
|
||||
/**
|
||||
* Get top teams by donations
|
||||
* Returns the top ten teams by donations.
|
||||
* @returns ResponseStatsTeam
|
||||
* @throws ApiError
|
||||
*/
|
||||
static statsControllerGetTopTeamsByDonations(): Promise<Array<ResponseStatsTeam>>;
|
||||
/**
|
||||
* Get top orgs by distance
|
||||
* Returns the top ten organisations by distance.
|
||||
* @returns ResponseStatsOrgnisation
|
||||
* @throws ApiError
|
||||
*/
|
||||
static statsControllerGetTopOrgsByDistance(): Promise<Array<ResponseStatsOrgnisation>>;
|
||||
/**
|
||||
* Get top orgs by donations
|
||||
* Returns the top ten organisations by donations.
|
||||
* @returns ResponseStatsOrgnisation
|
||||
* @throws ApiError
|
||||
*/
|
||||
static statsControllerGetTopOrgsByDonations(): Promise<Array<ResponseStatsOrgnisation>>;
|
||||
}
|
||||
111
dist/services/StatsService.js
vendored
Normal file
111
dist/services/StatsService.js
vendored
Normal file
@@ -0,0 +1,111 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.StatsService = void 0;
|
||||
const request_1 = require("../core/request");
|
||||
class StatsService {
|
||||
/**
|
||||
* Get
|
||||
* A very basic stats endpoint providing basic counters for a dashboard or simmilar
|
||||
* @returns ResponseStats
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async statsControllerGet() {
|
||||
const result = await request_1.request({
|
||||
method: 'GET',
|
||||
path: `/api/stats`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Get top runners by distance
|
||||
* Returns the top ten runners by distance.
|
||||
* @returns ResponseStatsRunner
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async statsControllerGetTopRunnersByDistance() {
|
||||
const result = await request_1.request({
|
||||
method: 'GET',
|
||||
path: `/api/stats/runners/distance`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Get top runners by donations
|
||||
* Returns the top ten runners by donations.
|
||||
* @returns ResponseStatsRunner
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async statsControllerGetTopRunnersByDonations() {
|
||||
const result = await request_1.request({
|
||||
method: 'GET',
|
||||
path: `/api/stats/runners/donations`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Get top runners by track time
|
||||
* Returns the top ten fastest track times (with their runner and the runner's group).
|
||||
* @returns ResponseStatsRunner
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async statsControllerGetTopRunnersByTrackTime() {
|
||||
const result = await request_1.request({
|
||||
method: 'GET',
|
||||
path: `/api/stats/scans`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Get top teams by distance
|
||||
* Returns the top ten teams by distance.
|
||||
* @returns ResponseStatsTeam
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async statsControllerGetTopTeamsByDistance() {
|
||||
const result = await request_1.request({
|
||||
method: 'GET',
|
||||
path: `/api/stats/teams/distance`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Get top teams by donations
|
||||
* Returns the top ten teams by donations.
|
||||
* @returns ResponseStatsTeam
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async statsControllerGetTopTeamsByDonations() {
|
||||
const result = await request_1.request({
|
||||
method: 'GET',
|
||||
path: `/api/stats/teams/donations`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Get top orgs by distance
|
||||
* Returns the top ten organisations by distance.
|
||||
* @returns ResponseStatsOrgnisation
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async statsControllerGetTopOrgsByDistance() {
|
||||
const result = await request_1.request({
|
||||
method: 'GET',
|
||||
path: `/api/stats/organisations/distance`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Get top orgs by donations
|
||||
* Returns the top ten organisations by donations.
|
||||
* @returns ResponseStatsOrgnisation
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async statsControllerGetTopOrgsByDonations() {
|
||||
const result = await request_1.request({
|
||||
method: 'GET',
|
||||
path: `/api/stats/organisations/donations`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
}
|
||||
exports.StatsService = StatsService;
|
||||
Reference in New Issue
Block a user