@cauca-911/core
Version:
Run `npm install @cauca-911/core` to add this library to your project
49 lines (48 loc) • 1.66 kB
TypeScript
import { CoreModuleOptions, HttpErrorFunction, LogErrorFunction, LoginUrlFunction, RefreshUrlFunction, UpdateTokenFunction } from '../models/core-module-options';
import { LogLevel } from '../models/log-level.enum';
export declare class Configuration {
jsonConfigFile: string;
libraries: string[];
i18nPaths: string[];
loginURL: LoginUrlFunction;
logError: LogErrorFunction;
updateToken: UpdateTokenFunction;
onHttpError: HttpErrorFunction;
refreshLoginURL: RefreshUrlFunction;
useLogoutService: boolean;
allowRefreshToken: boolean;
autoLoadMaterialLocales: boolean;
logLevel: LogLevel;
apiUrl: string;
nbRetryOnNetworkError: number;
contentSecurityPolicyActivated: boolean;
keepReturnUrlWhenRedirectingToLogin: boolean;
private useCharset;
private useAuthorizationType;
private useAccessToken;
private useRefreshToken;
private useCSRFToken;
private useLocale;
private useLanguages;
constructor(options: CoreModuleOptions);
get locale(): string;
set locale(value: string);
get languages(): string[];
set languages(value: string[]);
get charset(): string;
set charset(value: string);
get authorizationType(): string;
set authorizationType(value: string);
get refreshToken(): string;
set refreshToken(value: string);
get accessToken(): string;
set accessToken(value: string);
get CSRFToken(): string;
set CSRFToken(value: string);
get CSRFCookie(): string;
set CSRFCookie(value: string);
private setDefaultLocale;
private setLoginUrl;
private setRefreshUrl;
private defaultLogError;
}