🚀New lib version v0.6.3 [CI SKIP]
All checks were successful
continuous-integration/drone Build is passing
All checks were successful
continuous-integration/drone Build is passing
This commit is contained in:
parent
040dea9731
commit
d638d202ef
2
dist/core/OpenAPI.js
vendored
2
dist/core/OpenAPI.js
vendored
@ -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.5.0',
|
VERSION: '0.6.3',
|
||||||
WITH_CREDENTIALS: false,
|
WITH_CREDENTIALS: false,
|
||||||
TOKEN: undefined,
|
TOKEN: undefined,
|
||||||
USERNAME: undefined,
|
USERNAME: undefined,
|
||||||
|
1
dist/index.d.ts
vendored
1
dist/index.d.ts
vendored
@ -116,6 +116,7 @@ export type { RunnerOrganizationHasTeamsError } from './models/RunnerOrganizatio
|
|||||||
export type { RunnerOrganizationIdsNotMatchingError } from './models/RunnerOrganizationIdsNotMatchingError';
|
export type { RunnerOrganizationIdsNotMatchingError } from './models/RunnerOrganizationIdsNotMatchingError';
|
||||||
export type { RunnerOrganizationNotFoundError } from './models/RunnerOrganizationNotFoundError';
|
export type { RunnerOrganizationNotFoundError } from './models/RunnerOrganizationNotFoundError';
|
||||||
export type { RunnerOrganizationWrongTypeError } from './models/RunnerOrganizationWrongTypeError';
|
export type { RunnerOrganizationWrongTypeError } from './models/RunnerOrganizationWrongTypeError';
|
||||||
|
export type { RunnerSelfserviceTimeoutError } from './models/RunnerSelfserviceTimeoutError';
|
||||||
export type { RunnerTeam } from './models/RunnerTeam';
|
export type { RunnerTeam } from './models/RunnerTeam';
|
||||||
export type { RunnerTeamHasRunnersError } from './models/RunnerTeamHasRunnersError';
|
export type { RunnerTeamHasRunnersError } from './models/RunnerTeamHasRunnersError';
|
||||||
export type { RunnerTeamIdsNotMatchingError } from './models/RunnerTeamIdsNotMatchingError';
|
export type { RunnerTeamIdsNotMatchingError } from './models/RunnerTeamIdsNotMatchingError';
|
||||||
|
2
dist/models/CreateTrackScan.d.ts
vendored
2
dist/models/CreateTrackScan.d.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
export declare type CreateTrackScan = {
|
export declare type CreateTrackScan = {
|
||||||
card: number;
|
card: number;
|
||||||
station: number;
|
station?: number;
|
||||||
};
|
};
|
||||||
|
1
dist/models/Runner.d.ts
vendored
1
dist/models/Runner.d.ts
vendored
@ -1,5 +1,6 @@
|
|||||||
export declare type Runner = {
|
export declare type Runner = {
|
||||||
group: string;
|
group: string;
|
||||||
|
resetRequestedTimestamp?: string;
|
||||||
distance: number;
|
distance: number;
|
||||||
distanceDonationAmount: number;
|
distanceDonationAmount: number;
|
||||||
id: number;
|
id: number;
|
||||||
|
4
dist/models/RunnerSelfserviceTimeoutError.d.ts
vendored
Normal file
4
dist/models/RunnerSelfserviceTimeoutError.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export declare type RunnerSelfserviceTimeoutError = {
|
||||||
|
name: string;
|
||||||
|
message: string;
|
||||||
|
};
|
5
dist/models/RunnerSelfserviceTimeoutError.js
vendored
Normal file
5
dist/models/RunnerSelfserviceTimeoutError.js
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
"use strict";
|
||||||
|
/* istanbul ignore file */
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
2
dist/models/UpdateTrackScan.d.ts
vendored
2
dist/models/UpdateTrackScan.d.ts
vendored
@ -2,5 +2,5 @@ export declare type UpdateTrackScan = {
|
|||||||
id: number;
|
id: number;
|
||||||
runner: number;
|
runner: number;
|
||||||
valid?: boolean;
|
valid?: boolean;
|
||||||
station: number;
|
track: number;
|
||||||
};
|
};
|
||||||
|
16
dist/services/RunnerSelfService.d.ts
vendored
16
dist/services/RunnerSelfService.d.ts
vendored
@ -1,5 +1,6 @@
|
|||||||
import type { CreateSelfServiceCitizenRunner } from '../models/CreateSelfServiceCitizenRunner';
|
import type { CreateSelfServiceCitizenRunner } from '../models/CreateSelfServiceCitizenRunner';
|
||||||
import type { CreateSelfServiceRunner } from '../models/CreateSelfServiceRunner';
|
import type { CreateSelfServiceRunner } from '../models/CreateSelfServiceRunner';
|
||||||
|
import type { ResponseScanStation } from '../models/ResponseScanStation';
|
||||||
import type { ResponseSelfServiceOrganisation } from '../models/ResponseSelfServiceOrganisation';
|
import type { ResponseSelfServiceOrganisation } from '../models/ResponseSelfServiceOrganisation';
|
||||||
import type { ResponseSelfServiceRunner } from '../models/ResponseSelfServiceRunner';
|
import type { ResponseSelfServiceRunner } from '../models/ResponseSelfServiceRunner';
|
||||||
import type { ResponseSelfServiceScan } from '../models/ResponseSelfServiceScan';
|
import type { ResponseSelfServiceScan } from '../models/ResponseSelfServiceScan';
|
||||||
@ -20,6 +21,21 @@ export declare class RunnerSelfService {
|
|||||||
* @throws ApiError
|
* @throws ApiError
|
||||||
*/
|
*/
|
||||||
static runnerSelfServiceControllerGetScans(jwt: string): Promise<Array<ResponseSelfServiceScan>>;
|
static runnerSelfServiceControllerGetScans(jwt: string): Promise<Array<ResponseSelfServiceScan>>;
|
||||||
|
/**
|
||||||
|
* Get station me
|
||||||
|
* Lists basic information about the station whose token got provided. <br> This includes it's associated track.
|
||||||
|
* @returns ResponseScanStation
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
static runnerSelfServiceControllerGetStationMe(): Promise<ResponseScanStation>;
|
||||||
|
/**
|
||||||
|
* Request new token
|
||||||
|
* Use this endpoint to reuqest a new selfservice token/link to be sent to your mail address (rate limited to one mail every 24hrs).
|
||||||
|
* @param mail
|
||||||
|
* @returns any Successful response
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
static runnerSelfServiceControllerRequestNewToken(mail?: string): Promise<any>;
|
||||||
/**
|
/**
|
||||||
* Register runner
|
* Register runner
|
||||||
* Create a new selfservice runner in the citizen org. <br> This endpoint shoud be used to allow "everyday citizen" to register themselves. <br> You have to provide a mail address, b/c the future we'll implement email verification.
|
* Create a new selfservice runner in the citizen org. <br> This endpoint shoud be used to allow "everyday citizen" to register themselves. <br> You have to provide a mail address, b/c the future we'll implement email verification.
|
||||||
|
30
dist/services/RunnerSelfService.js
vendored
30
dist/services/RunnerSelfService.js
vendored
@ -31,6 +31,36 @@ class RunnerSelfService {
|
|||||||
});
|
});
|
||||||
return result.body;
|
return result.body;
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Get station me
|
||||||
|
* Lists basic information about the station whose token got provided. <br> This includes it's associated track.
|
||||||
|
* @returns ResponseScanStation
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
static async runnerSelfServiceControllerGetStationMe() {
|
||||||
|
const result = await request_1.request({
|
||||||
|
method: 'GET',
|
||||||
|
path: `/api/stations/me`,
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Request new token
|
||||||
|
* Use this endpoint to reuqest a new selfservice token/link to be sent to your mail address (rate limited to one mail every 24hrs).
|
||||||
|
* @param mail
|
||||||
|
* @returns any Successful response
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
static async runnerSelfServiceControllerRequestNewToken(mail) {
|
||||||
|
const result = await request_1.request({
|
||||||
|
method: 'POST',
|
||||||
|
path: `/api/runners/forgot`,
|
||||||
|
query: {
|
||||||
|
'mail': mail,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
return result.body;
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* Register runner
|
* Register runner
|
||||||
* Create a new selfservice runner in the citizen org. <br> This endpoint shoud be used to allow "everyday citizen" to register themselves. <br> You have to provide a mail address, b/c the future we'll implement email verification.
|
* Create a new selfservice runner in the citizen org. <br> This endpoint shoud be used to allow "everyday citizen" to register themselves. <br> You have to provide a mail address, b/c the future we'll implement email verification.
|
||||||
|
File diff suppressed because one or more lines are too long
@ -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": "0.5.0",
|
"version": "0.6.3",
|
||||||
"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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user