Compare commits

..

4 Commits

Author SHA1 Message Date
fb04bb8dc2
chore: 1.2.2 2025-04-08 21:10:08 +02:00
cdddf5c2b4
chore: Fresh openapi 2025-04-08 21:09:51 +02:00
a4747a23e7
chore: 1.2.1 2025-04-08 20:09:18 +02:00
9b36d6e6dc
chore: Fresh build 2025-04-08 20:09:05 +02:00
13 changed files with 16 additions and 5 deletions

View File

@ -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: '1.3.4', VERSION: '1.3.6',
WITH_CREDENTIALS: false, WITH_CREDENTIALS: false,
TOKEN: undefined, TOKEN: undefined,
USERNAME: undefined, USERNAME: undefined,

View File

@ -6,4 +6,5 @@ export type CreateDonor = {
phone?: string; phone?: string;
email?: string; email?: string;
address?: any; address?: any;
created_via?: string;
}; };

View File

@ -5,4 +5,5 @@ export type CreateParticipant = {
phone?: string; phone?: string;
email?: string; email?: string;
address?: any; address?: any;
created_via?: string;
}; };

View File

@ -6,4 +6,5 @@ export type CreateRunner = {
phone?: string; phone?: string;
email?: string; email?: string;
address?: any; address?: any;
created_via?: string;
}; };

View File

@ -5,4 +5,5 @@ export type CreateSelfServiceCitizenRunner = {
lastname: string; lastname: string;
phone?: string; phone?: string;
address?: any; address?: any;
created_via?: string;
}; };

View File

@ -6,4 +6,5 @@ export type CreateSelfServiceRunner = {
phone?: string; phone?: string;
email?: string; email?: string;
address?: any; address?: any;
created_via?: string;
}; };

View File

@ -1,6 +1,7 @@
export type ResponseRunner = { export type ResponseRunner = {
distance: number; distance: number;
group: any; group: any;
selfserviceLink?: string;
id: number; id: number;
firstname: string; firstname: string;
middlename: string; middlename: string;

View File

@ -7,4 +7,5 @@ export type UpdateDonor = {
phone?: string; phone?: string;
email?: string; email?: string;
address?: any; address?: any;
created_via?: string;
}; };

View File

@ -7,4 +7,5 @@ export type UpdateRunner = {
phone?: string; phone?: string;
email?: string; email?: string;
address?: any; address?: any;
created_via?: string;
}; };

View File

@ -12,10 +12,11 @@ export declare class RunnerService {
* Lists all runners from all teams/orgs. <br> This includes the runner's group and distance ran. * Lists all runners from all teams/orgs. <br> This includes the runner's group and distance ran.
* @param page * @param page
* @param pageSize * @param pageSize
* @param selfserviceLinks
* @result ResponseRunner * @result ResponseRunner
* @throws ApiError * @throws ApiError
*/ */
static runnerControllerGetAll(page?: number, pageSize?: number): Promise<Array<ResponseRunner>>; static runnerControllerGetAll(page?: number, pageSize?: number, selfserviceLinks?: boolean): Promise<Array<ResponseRunner>>;
/** /**
* Post * Post
* Create a new runner. <br> Please remeber to provide the runner's group's id. * Create a new runner. <br> Please remeber to provide the runner's group's id.

View File

@ -8,16 +8,18 @@ class RunnerService {
* Lists all runners from all teams/orgs. <br> This includes the runner's group and distance ran. * Lists all runners from all teams/orgs. <br> This includes the runner's group and distance ran.
* @param page * @param page
* @param pageSize * @param pageSize
* @param selfserviceLinks
* @result ResponseRunner * @result ResponseRunner
* @throws ApiError * @throws ApiError
*/ */
static async runnerControllerGetAll(page, pageSize) { static async runnerControllerGetAll(page, pageSize, selfserviceLinks) {
const result = await (0, request_1.request)({ const result = await (0, request_1.request)({
method: 'GET', method: 'GET',
path: `/api/runners`, path: `/api/runners`,
query: { query: {
'page': page, 'page': page,
'page_size': pageSize, 'page_size': pageSize,
'selfservice_links': selfserviceLinks,
}, },
}); });
return result.body; return result.body;

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,7 @@
{ {
"name": "@odit/lfk-client-js", "name": "@odit/lfk-client-js",
"description": "A lib to interact with https://git.odit.services/lfk/backend. Use this version for native JS applications.", "description": "A lib to interact with https://git.odit.services/lfk/backend. Use this version for native JS applications.",
"version": "1.2.0", "version": "1.2.2",
"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",