@steffesgroup/steffes-auth
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -9,7 +9,7 @@ import { AxiosInstance, AxiosRequestConfig, AxiosResponse, CancelToken } from 'axios'; | ||
export interface IAuthClient { | ||
getToken(tenantId: string | null, loginDTO: LoginDTO): Promise<TokenDTO>; | ||
refreshToken(tenantId: string | null, refreshTokenDTO: RefreshTokenDTO): Promise<TokenDTO>; | ||
resetPassword(tenantId: string | null, resetPasswordDTO: ResetPasswordDTO): Promise<FileResponse>; | ||
sendResetPassword(tenantId: string | null, email: string): Promise<FileResponse>; | ||
unlock(tenantId: string | null, unlockDTO: UnlockDTO): Promise<FileResponse>; | ||
getToken(tenantId: string, loginDTO: LoginDTO): Promise<TokenDTO>; | ||
refreshToken(tenantId: string, refreshTokenDTO: RefreshTokenDTO): Promise<TokenDTO>; | ||
resetPassword(tenantId: string, resetPasswordDTO: ResetPasswordDTO): Promise<FileResponse>; | ||
sendResetPassword(tenantId: string, email: string): Promise<FileResponse>; | ||
unlock(tenantId: string, unlockDTO: UnlockDTO): Promise<FileResponse>; | ||
} | ||
@@ -21,11 +21,11 @@ export declare class AuthClient extends AuthorizedApiBase implements IAuthClient { | ||
constructor(configuration: IConfig, baseUrl?: string, instance?: AxiosInstance); | ||
getToken(tenantId: string | null, loginDTO: LoginDTO, cancelToken?: CancelToken | undefined): Promise<TokenDTO>; | ||
getToken(tenantId: string, loginDTO: LoginDTO, cancelToken?: CancelToken | undefined): Promise<TokenDTO>; | ||
protected processGetToken(response: AxiosResponse): Promise<TokenDTO>; | ||
refreshToken(tenantId: string | null, refreshTokenDTO: RefreshTokenDTO, cancelToken?: CancelToken | undefined): Promise<TokenDTO>; | ||
refreshToken(tenantId: string, refreshTokenDTO: RefreshTokenDTO, cancelToken?: CancelToken | undefined): Promise<TokenDTO>; | ||
protected processRefreshToken(response: AxiosResponse): Promise<TokenDTO>; | ||
resetPassword(tenantId: string | null, resetPasswordDTO: ResetPasswordDTO, cancelToken?: CancelToken | undefined): Promise<FileResponse>; | ||
resetPassword(tenantId: string, resetPasswordDTO: ResetPasswordDTO, cancelToken?: CancelToken | undefined): Promise<FileResponse>; | ||
protected processResetPassword(response: AxiosResponse): Promise<FileResponse>; | ||
sendResetPassword(tenantId: string | null, email: string, cancelToken?: CancelToken | undefined): Promise<FileResponse>; | ||
sendResetPassword(tenantId: string, email: string, cancelToken?: CancelToken | undefined): Promise<FileResponse>; | ||
protected processSendResetPassword(response: AxiosResponse): Promise<FileResponse>; | ||
unlock(tenantId: string | null, unlockDTO: UnlockDTO, cancelToken?: CancelToken | undefined): Promise<FileResponse>; | ||
unlock(tenantId: string, unlockDTO: UnlockDTO, cancelToken?: CancelToken | undefined): Promise<FileResponse>; | ||
protected processUnlock(response: AxiosResponse): Promise<FileResponse>; | ||
@@ -190,1 +190,11 @@ } | ||
} | ||
export declare class Crs implements ICrs { | ||
type?: any; | ||
constructor(data?: ICrs); | ||
init(_data?: any): void; | ||
static fromJS(data: any): Crs; | ||
toJSON(data?: any): any; | ||
} | ||
export interface ICrs { | ||
type?: any; | ||
} |
"use strict"; | ||
//---------------------- | ||
// <auto-generated> | ||
// Generated using the NSwag toolchain v13.18.2.0 (NJsonSchema v10.8.0.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org) | ||
// Generated using the NSwag toolchain v13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org) | ||
// </auto-generated> | ||
//---------------------- | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.IConfig = exports.ApiException = exports.UserDTO = exports.UnlockDTO = exports.ResetPasswordDTO = exports.RefreshTokenDTO = exports.PlatformType = exports.LoginDTO = exports.TokenDTO = exports.UserClient = exports.AuthClient = exports.AuthorizedApiBase = void 0; | ||
exports.Crs = exports.IConfig = exports.ApiException = exports.UserDTO = exports.UnlockDTO = exports.ResetPasswordDTO = exports.RefreshTokenDTO = exports.PlatformType = exports.LoginDTO = exports.TokenDTO = exports.UserClient = exports.AuthClient = exports.AuthorizedApiBase = void 0; | ||
/* tslint:disable */ | ||
@@ -636,1 +636,26 @@ /* eslint-disable */ | ||
exports.IConfig = IConfig; | ||
class Crs { | ||
constructor(data) { | ||
if (data) { | ||
for (var property in data) { | ||
if (data.hasOwnProperty(property)) | ||
this[property] = data[property]; | ||
} | ||
} | ||
} | ||
init(_data) { | ||
if (_data) { | ||
this.type = _data["type"]; | ||
} | ||
} | ||
static fromJS(data) { | ||
data = typeof data === 'object' ? data : {}; | ||
throw new Error("The abstract class 'Crs' cannot be instantiated."); | ||
} | ||
toJSON(data) { | ||
data = typeof data === 'object' ? data : {}; | ||
data["type"] = this.type; | ||
return data; | ||
} | ||
} | ||
exports.Crs = Crs; |
{ | ||
"name": "@steffesgroup/steffes-auth", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Steffes Auth", | ||
@@ -5,0 +5,0 @@ "main": "dist/api.js", |
33463
858