🚀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:
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 { 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.
|
||||
|
||||
30
dist/services/RunnerSelfService.js
vendored
30
dist/services/RunnerSelfService.js
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user