🚀New lib version v0.4.0 [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:
5
dist/services/AuthService.d.ts
vendored
5
dist/services/AuthService.d.ts
vendored
@@ -10,6 +10,7 @@ import type { RefreshAuth } from '../models/RefreshAuth';
|
||||
import type { RefreshTokenCountInvalidError } from '../models/RefreshTokenCountInvalidError';
|
||||
import type { ResetPassword } from '../models/ResetPassword';
|
||||
import type { ResponseAuth } from '../models/ResponseAuth';
|
||||
import type { ResponseEmpty } from '../models/ResponseEmpty';
|
||||
import type { UsernameOrEmailNeededError } from '../models/UsernameOrEmailNeededError';
|
||||
import type { UserNotFoundError } from '../models/UserNotFoundError';
|
||||
export declare class AuthService {
|
||||
@@ -45,10 +46,10 @@ 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 requestBody CreateResetToken
|
||||
* @returns any
|
||||
* @returns ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static authControllerGetResetToken(requestBody?: CreateResetToken): Promise<(ResponseAuth | UserNotFoundError | UsernameOrEmailNeededError)>;
|
||||
static authControllerGetResetToken(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.
|
||||
|
||||
2
dist/services/AuthService.js
vendored
2
dist/services/AuthService.js
vendored
@@ -56,7 +56,7 @@ 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 requestBody CreateResetToken
|
||||
* @returns any
|
||||
* @returns ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async authControllerGetResetToken(requestBody) {
|
||||
|
||||
10
dist/services/MailService.d.ts
vendored
Normal file
10
dist/services/MailService.d.ts
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
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
Normal file
20
dist/services/MailService.js
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
"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;
|
||||
Reference in New Issue
Block a user