/** * EMIL CommissionService * The EMIL CommissionService 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", StagingZurich = "https://eu-central-2.apiv2-staging.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 | undefined; private tokenData?; constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance); selectEnvironment(env: Environment): void; selectBasePath(path: string): void; getPermissions(): Array; authorize(username: string, password: string, targetWorkspace?: string): Promise; switchWorkspace(targetWorkspace: string): Promise; refreshTokenInternal(): Promise; private storeTokenData; loadTokenData(): void; cleanTokenData(): void; private attachInterceptor; } /** * * @export * @class RequiredError * @extends {Error} */ export declare class RequiredError extends Error { field: string; name: "RequiredError"; constructor(field: string, msg?: string); }