Compare commits

..

No commits in common. "fb04bb8dc21366666702e38ecf4cfd8159408ea6" and "a8045635c6a9f15647cdcdcec0feff4f431fb638" have entirely different histories.

13 changed files with 5 additions and 16 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.6', VERSION: '1.3.4',
WITH_CREDENTIALS: false, WITH_CREDENTIALS: false,
TOKEN: undefined, TOKEN: undefined,
USERNAME: undefined, USERNAME: undefined,

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,7 +1,6 @@
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,5 +7,4 @@ export type UpdateDonor = {
phone?: string; phone?: string;
email?: string; email?: string;
address?: any; address?: any;
created_via?: string;
}; };

View File

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

View File

@ -12,11 +12,10 @@ 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, selfserviceLinks?: boolean): Promise<Array<ResponseRunner>>; static runnerControllerGetAll(page?: number, pageSize?: number): 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,18 +8,16 @@ 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, selfserviceLinks) { static async runnerControllerGetAll(page, pageSize) {
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.2", "version": "1.2.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",