🚀New lib version v0.6.3 [CI SKIP]
continuous-integration/drone Build is passing
Details
continuous-integration/drone Build is passing
Details
This commit is contained in:
parent
f1e5179fc1
commit
971998f954
|
@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
exports.OpenAPI = void 0;
|
||||
exports.OpenAPI = {
|
||||
BASE: '',
|
||||
VERSION: '0.5.0',
|
||||
VERSION: '0.6.3',
|
||||
WITH_CREDENTIALS: false,
|
||||
TOKEN: undefined,
|
||||
USERNAME: undefined,
|
||||
|
|
|
@ -116,6 +116,7 @@ export type { RunnerOrganizationHasTeamsError } from './models/RunnerOrganizatio
|
|||
export type { RunnerOrganizationIdsNotMatchingError } from './models/RunnerOrganizationIdsNotMatchingError';
|
||||
export type { RunnerOrganizationNotFoundError } from './models/RunnerOrganizationNotFoundError';
|
||||
export type { RunnerOrganizationWrongTypeError } from './models/RunnerOrganizationWrongTypeError';
|
||||
export type { RunnerSelfserviceTimeoutError } from './models/RunnerSelfserviceTimeoutError';
|
||||
export type { RunnerTeam } from './models/RunnerTeam';
|
||||
export type { RunnerTeamHasRunnersError } from './models/RunnerTeamHasRunnersError';
|
||||
export type { RunnerTeamIdsNotMatchingError } from './models/RunnerTeamIdsNotMatchingError';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
export declare type CreateTrackScan = {
|
||||
card: number;
|
||||
station: number;
|
||||
station?: number;
|
||||
};
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
export declare type Runner = {
|
||||
group: string;
|
||||
resetRequestedTimestamp?: string;
|
||||
distance: number;
|
||||
distanceDonationAmount: number;
|
||||
id: number;
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
export declare type RunnerSelfserviceTimeoutError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
|
@ -0,0 +1,5 @@
|
|||
"use strict";
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@ -2,5 +2,5 @@ export declare type UpdateTrackScan = {
|
|||
id: number;
|
||||
runner: number;
|
||||
valid?: boolean;
|
||||
station: number;
|
||||
track: number;
|
||||
};
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import type { CreateSelfServiceCitizenRunner } from '../models/CreateSelfServiceCitizenRunner';
|
||||
import type { CreateSelfServiceRunner } from '../models/CreateSelfServiceRunner';
|
||||
import type { ResponseScanStation } from '../models/ResponseScanStation';
|
||||
import type { ResponseSelfServiceOrganisation } from '../models/ResponseSelfServiceOrganisation';
|
||||
import type { ResponseSelfServiceRunner } from '../models/ResponseSelfServiceRunner';
|
||||
import type { ResponseSelfServiceScan } from '../models/ResponseSelfServiceScan';
|
||||
|
@ -20,6 +21,21 @@ export declare class RunnerSelfService {
|
|||
* @throws ApiError
|
||||
*/
|
||||
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
|
||||
* 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.
|
||||
|
|
|
@ -31,6 +31,36 @@ class RunnerSelfService {
|
|||
});
|
||||
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
|
||||
* 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-node",
|
||||
"description": "A lib to interact with https://git.odit.services/lfk/backend. Use this version for NodeJS applications.",
|
||||
"version": "0.5.0",
|
||||
"version": "0.6.3",
|
||||
"license": "CC-BY-NC-SA-4.0",
|
||||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
|
|
Reference in New Issue