🚀New lib version v0.4.0 [CI SKIP]
continuous-integration/drone Build is passing

This commit is contained in:
2021-01-30 15:30:27 +00:00
parent fc01350288
commit 8000129da7
18 changed files with 61 additions and 12 deletions
+3 -2
View File
@@ -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.
+1 -1
View File
@@ -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
View 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
View 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;