🚀New lib version v0.5.0 [CI SKIP]

This commit is contained in:
2021-03-04 16:27:59 +00:00
parent dbbd5b27da
commit c11b709e0b
18 changed files with 53 additions and 44 deletions

View File

@@ -45,11 +45,12 @@ export declare class AuthService {
/**
* Get reset token
* Request a password reset token. <br> This will provide you with a reset token that you can use by posting to /api/auth/reset/{token}.
* @param locale
* @param requestBody CreateResetToken
* @returns ResponseEmpty
* @throws ApiError
*/
static authControllerGetResetToken(requestBody?: CreateResetToken): Promise<ResponseEmpty>;
static authControllerGetResetToken(locale?: string, requestBody?: CreateResetToken): Promise<ResponseEmpty>;
/**
* Reset password
* Reset a user's utilising a valid password reset token. <br> This will set the user's password to the one you provided in the body. <br> To get a reset token post to /api/auth/reset with your username.

View File

@@ -55,14 +55,18 @@ class AuthService {
/**
* Get reset token
* Request a password reset token. <br> This will provide you with a reset token that you can use by posting to /api/auth/reset/{token}.
* @param locale
* @param requestBody CreateResetToken
* @returns ResponseEmpty
* @throws ApiError
*/
static async authControllerGetResetToken(requestBody) {
static async authControllerGetResetToken(locale, requestBody) {
const result = await request_1.request({
method: 'POST',
path: `/api/auth/reset`,
query: {
'locale': locale,
},
body: requestBody,
});
return result.body;

View File

@@ -1,10 +0,0 @@
import type { ResponseEmpty } from '../models/ResponseEmpty';
export declare class MailService {
/**
* Get
* Sends a test email to the configured from-address.
* @returns ResponseEmpty
* @throws ApiError
*/
static mailControllerGet(): Promise<ResponseEmpty>;
}

View File

@@ -1,20 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MailService = void 0;
const request_1 = require("../core/request");
class MailService {
/**
* Get
* Sends a test email to the configured from-address.
* @returns ResponseEmpty
* @throws ApiError
*/
static async mailControllerGet() {
const result = await request_1.request({
method: 'POST',
path: `/api/mails/test`,
});
return result.body;
}
}
exports.MailService = MailService;

View File

@@ -2,6 +2,7 @@ import type { CreateSelfServiceCitizenRunner } from '../models/CreateSelfService
import type { CreateSelfServiceRunner } from '../models/CreateSelfServiceRunner';
import type { ResponseSelfServiceOrganisation } from '../models/ResponseSelfServiceOrganisation';
import type { ResponseSelfServiceRunner } from '../models/ResponseSelfServiceRunner';
import type { ResponseSelfServiceScan } from '../models/ResponseSelfServiceScan';
export declare class RunnerSelfService {
/**
* Get
@@ -11,6 +12,14 @@ export declare class RunnerSelfService {
* @throws ApiError
*/
static runnerSelfServiceControllerGet(jwt: string): Promise<ResponseSelfServiceRunner>;
/**
* Get scans
* Lists all your (runner) scans. <br> Please provide your runner jwt(that code we gave you during registration) for auth. <br> If you lost your jwt/personalized link please contact support.
* @param jwt
* @returns ResponseSelfServiceScan
* @throws ApiError
*/
static runnerSelfServiceControllerGetScans(jwt: string): Promise<Array<ResponseSelfServiceScan>>;
/**
* 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.

View File

@@ -17,6 +17,20 @@ class RunnerSelfService {
});
return result.body;
}
/**
* Get scans
* Lists all your (runner) scans. <br> Please provide your runner jwt(that code we gave you during registration) for auth. <br> If you lost your jwt/personalized link please contact support.
* @param jwt
* @returns ResponseSelfServiceScan
* @throws ApiError
*/
static async runnerSelfServiceControllerGetScans(jwt) {
const result = await request_1.request({
method: 'GET',
path: `/api/runners/me/${jwt}/scans`,
});
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.