🚀New lib version v0.5.0 [CI SKIP]
This commit is contained in:
3
dist/services/AuthService.d.ts
vendored
3
dist/services/AuthService.d.ts
vendored
@@ -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.
|
||||
|
||||
6
dist/services/AuthService.js
vendored
6
dist/services/AuthService.js
vendored
@@ -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;
|
||||
|
||||
10
dist/services/MailService.d.ts
vendored
10
dist/services/MailService.d.ts
vendored
@@ -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>;
|
||||
}
|
||||
20
dist/services/MailService.js
vendored
20
dist/services/MailService.js
vendored
@@ -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;
|
||||
9
dist/services/RunnerSelfService.d.ts
vendored
9
dist/services/RunnerSelfService.d.ts
vendored
@@ -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.
|
||||
|
||||
14
dist/services/RunnerSelfService.js
vendored
14
dist/services/RunnerSelfService.js
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user