🚀New lib version v0.6.3 [CI SKIP]
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
2021-03-18 16:01:26 +00:00
parent 040dea9731
commit d638d202ef
11 changed files with 62 additions and 5 deletions

View File

@@ -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.