🚀New lib version v0.4.0 [CI SKIP]
continuous-integration/drone Build is passing
Details
continuous-integration/drone Build is passing
Details
This commit is contained in:
parent
fc01350288
commit
8000129da7
|
@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
exports.OpenAPI = void 0;
|
||||
exports.OpenAPI = {
|
||||
BASE: '',
|
||||
VERSION: '0.3.1',
|
||||
VERSION: '0.4.0',
|
||||
WITH_CREDENTIALS: false,
|
||||
TOKEN: undefined,
|
||||
USERNAME: undefined,
|
||||
|
|
|
@ -50,6 +50,7 @@ export type { InvalidCredentialsError } from './models/InvalidCredentialsError';
|
|||
export type { JwtNotProvidedError } from './models/JwtNotProvidedError';
|
||||
export type { JwtUser } from './models/JwtUser';
|
||||
export type { Logout } from './models/Logout';
|
||||
export type { MailServerConfigError } from './models/MailServerConfigError';
|
||||
export type { NoPermissionError } from './models/NoPermissionError';
|
||||
export type { Participant } from './models/Participant';
|
||||
export type { PasswordNeededError } from './models/PasswordNeededError';
|
||||
|
@ -167,6 +168,7 @@ export { DonationService } from './services/DonationService';
|
|||
export { DonorService } from './services/DonorService';
|
||||
export { GroupContactService } from './services/GroupContactService';
|
||||
export { ImportService } from './services/ImportService';
|
||||
export { MailService } from './services/MailService';
|
||||
export { MeService } from './services/MeService';
|
||||
export { PermissionService } from './services/PermissionService';
|
||||
export { RunnerCardService } from './services/RunnerCardService';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.UserService = exports.UserGroupService = exports.TrackService = exports.StatusService = exports.StatsService = exports.StatsClientService = exports.ScanStationService = exports.ScanService = exports.RunnerTeamService = exports.RunnerService = exports.RunnerSelfService = exports.RunnerOrganizationService = exports.RunnerCardService = exports.PermissionService = exports.MeService = exports.ImportService = exports.GroupContactService = exports.DonorService = exports.DonationService = exports.AuthService = exports.UserAction = exports.ResponsePermission = exports.Permission = exports.CreatePermission = exports.OpenAPI = exports.ApiError = void 0;
|
||||
exports.UserService = exports.UserGroupService = exports.TrackService = exports.StatusService = exports.StatsService = exports.StatsClientService = exports.ScanStationService = exports.ScanService = exports.RunnerTeamService = exports.RunnerService = exports.RunnerSelfService = exports.RunnerOrganizationService = exports.RunnerCardService = exports.PermissionService = exports.MeService = exports.MailService = exports.ImportService = exports.GroupContactService = exports.DonorService = exports.DonationService = exports.AuthService = exports.UserAction = exports.ResponsePermission = exports.Permission = exports.CreatePermission = exports.OpenAPI = exports.ApiError = void 0;
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
@ -26,6 +26,8 @@ var GroupContactService_1 = require("./services/GroupContactService");
|
|||
Object.defineProperty(exports, "GroupContactService", { enumerable: true, get: function () { return GroupContactService_1.GroupContactService; } });
|
||||
var ImportService_1 = require("./services/ImportService");
|
||||
Object.defineProperty(exports, "ImportService", { enumerable: true, get: function () { return ImportService_1.ImportService; } });
|
||||
var MailService_1 = require("./services/MailService");
|
||||
Object.defineProperty(exports, "MailService", { enumerable: true, get: function () { return MailService_1.MailService; } });
|
||||
var MeService_1 = require("./services/MeService");
|
||||
Object.defineProperty(exports, "MeService", { enumerable: true, get: function () { return MeService_1.MeService; } });
|
||||
var PermissionService_1 = require("./services/PermissionService");
|
||||
|
|
|
@ -18,7 +18,8 @@ export declare namespace CreatePermission {
|
|||
STATION = "STATION",
|
||||
CARD = "CARD",
|
||||
DONATION = "DONATION",
|
||||
CONTACT = "CONTACT"
|
||||
CONTACT = "CONTACT",
|
||||
MAIL = "MAIL"
|
||||
}
|
||||
enum action {
|
||||
GET = "GET",
|
||||
|
|
|
@ -22,6 +22,7 @@ var CreatePermission;
|
|||
target["CARD"] = "CARD";
|
||||
target["DONATION"] = "DONATION";
|
||||
target["CONTACT"] = "CONTACT";
|
||||
target["MAIL"] = "MAIL";
|
||||
})(target = CreatePermission.target || (CreatePermission.target = {}));
|
||||
let action;
|
||||
(function (action) {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
export declare type CreateResetToken = {
|
||||
username?: string;
|
||||
email?: string;
|
||||
email: string;
|
||||
};
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
export declare type MailServerConfigError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
|
@ -0,0 +1,5 @@
|
|||
"use strict";
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@ -18,7 +18,8 @@ export declare namespace Permission {
|
|||
STATION = "STATION",
|
||||
CARD = "CARD",
|
||||
DONATION = "DONATION",
|
||||
CONTACT = "CONTACT"
|
||||
CONTACT = "CONTACT",
|
||||
MAIL = "MAIL"
|
||||
}
|
||||
enum action {
|
||||
GET = "GET",
|
||||
|
|
|
@ -22,6 +22,7 @@ var Permission;
|
|||
target["CARD"] = "CARD";
|
||||
target["DONATION"] = "DONATION";
|
||||
target["CONTACT"] = "CONTACT";
|
||||
target["MAIL"] = "MAIL";
|
||||
})(target = Permission.target || (Permission.target = {}));
|
||||
let action;
|
||||
(function (action) {
|
||||
|
|
|
@ -19,7 +19,8 @@ export declare namespace ResponsePermission {
|
|||
STATION = "STATION",
|
||||
CARD = "CARD",
|
||||
DONATION = "DONATION",
|
||||
CONTACT = "CONTACT"
|
||||
CONTACT = "CONTACT",
|
||||
MAIL = "MAIL"
|
||||
}
|
||||
enum action {
|
||||
GET = "GET",
|
||||
|
|
|
@ -22,6 +22,7 @@ var ResponsePermission;
|
|||
target["CARD"] = "CARD";
|
||||
target["DONATION"] = "DONATION";
|
||||
target["CONTACT"] = "CONTACT";
|
||||
target["MAIL"] = "MAIL";
|
||||
})(target = ResponsePermission.target || (ResponsePermission.target = {}));
|
||||
let action;
|
||||
(function (action) {
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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>;
|
||||
}
|
|
@ -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;
|
File diff suppressed because one or more lines are too long
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@odit/lfk-client-node",
|
||||
"description": "A lib to interact with https://git.odit.services/lfk/backend. Use this version for NodeJS applications.",
|
||||
"version": "0.3.1",
|
||||
"version": "0.4.0",
|
||||
"license": "CC-BY-NC-SA-4.0",
|
||||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
|
|
Reference in New Issue