@veeroute/lss-account-angular
Version:
OpenAPI client for @veeroute/lss-account-angular
80 lines (79 loc) • 4.44 kB
TypeScript
import { HttpClient, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
import { Observable } from 'rxjs';
import { TokenValidationResultAccount } from '../model/tokenValidationResult';
import { Configuration } from '../configuration';
import { BaseService } from '../api.base.service';
import { AuthServiceInterface, ChangePasswordRequestParams, RunTokenGenerationRequestParams, RunTokenValidationRequestParams } from './authServiceInterface';
import * as i0 from "@angular/core";
export declare class AuthService extends BaseService implements AuthServiceInterface {
protected httpClient: HttpClient;
constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
/**
* Change password
* Change password and get new token.
* @param requestParameters
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
changePassword(requestParameters?: ChangePasswordRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
}): Observable<string>;
changePassword(requestParameters?: ChangePasswordRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
}): Observable<HttpResponse<string>>;
changePassword(requestParameters?: ChangePasswordRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
}): Observable<HttpEvent<string>>;
/**
* Obtaining a token
* Obtaining a token using the login and password.
* @param requestParameters
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
runTokenGeneration(requestParameters: RunTokenGenerationRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
}): Observable<string>;
runTokenGeneration(requestParameters: RunTokenGenerationRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
}): Observable<HttpResponse<string>>;
runTokenGeneration(requestParameters: RunTokenGenerationRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
}): Observable<HttpEvent<string>>;
/**
* Validating a token
* Validating a token.
* @param requestParameters
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
runTokenValidation(requestParameters: RunTokenValidationRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
}): Observable<TokenValidationResultAccount>;
runTokenValidation(requestParameters: RunTokenValidationRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
}): Observable<HttpResponse<TokenValidationResultAccount>>;
runTokenValidation(requestParameters: RunTokenValidationRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
}): Observable<HttpEvent<TokenValidationResultAccount>>;
static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, [null, { optional: true; }, { optional: true; }]>;
static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
}