/** * Emil PublicAPI * The Emil Public API description * * The version of the OpenAPI document: 1.0 * Contact: kontakt@emil.de * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { Configuration } from "./configuration"; import { AxiosInstance, AxiosRequestConfig } from 'axios'; export declare const BASE_PATH: string; /** * * @export */ export declare const COLLECTION_FORMATS: { csv: string; ssv: string; tsv: string; pipes: string; }; export interface LoginClass { accessToken: string; permissions: string; } export interface SwitchWorkspaceRequest { username: string; targetWorkspace: string; } export interface SwitchWorkspaceResponseClass { accessToken: string; permissions: string; } export declare enum Environment { Production = "https://apiv2.emil.de", Test = "https://apiv2-test.emil.de", Staging = "https://apiv2-staging.emil.de", Development = "https://apiv2-dev.emil.de", ProductionZurich = "https://eu-central-2.apiv2.emil.de" } export declare function resetRetry(): void; /** * * @export * @interface RequestArgs */ export interface RequestArgs { url: string; options: AxiosRequestConfig; } /** * * @export * @class BaseAPI */ export declare class BaseAPI { protected basePath: string; protected axios: AxiosInstance; protected configuration: Configuration; private username?; private password?; constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance); initialize(env?: Environment, targetWorkspace?: string): Promise; private loadCredentials; private readConfigFile; private readEnvVariables; selectEnvironment(env: Environment): void; authorize(username: string, password: string, targetWorkspace?: string): Promise; switchWorkspace(targetWorkspace: string): Promise; refreshTokenInternal(): Promise; private extractRefreshToken; getConfiguration(): Configuration; private attachInterceptor; } /** * * @export * @class RequiredError * @extends {Error} */ export declare class RequiredError extends Error { field: string; name: "RequiredError"; constructor(field: string, msg?: string); }