Skip to content
Snippets Groups Projects
api.ts 814 KiB
Newer Older
Alexey Lunin's avatar
Alexey Lunin committed
/// <reference path="./custom.d.ts" />
// tslint:disable
/**
 * OCMacapy80
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: v1.0.0-rc1
 *
 *
 * NOTE: This file is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the file manually.
 */

import * as url from "url";
import * as isomorphicFetch from "isomorphic-fetch";
import { Configuration } from "./configuration";

const BASE_PATH = "/".replace(/\/+$/, "");

/**
 *
 * @export
 */
export const COLLECTION_FORMATS = {
    csv: ",",
    ssv: " ",
    tsv: "\t",
    pipes: "|",
};

/**
 *
 * @export
 * @interface FetchAPI
 */
export interface FetchAPI {
    (url: string, init?: any): Promise<Response>;
}

/**
 *
 * @export
 * @interface FetchArgs
 */
export interface FetchArgs {
    url: string;
    options: any;
}

/**
 *
 * @export
 * @class BaseAPI
 */
export class BaseAPI {
    protected configuration: Configuration;

    constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected fetch: FetchAPI = isomorphicFetch) {
        if (configuration) {
            this.configuration = configuration;
            this.basePath = configuration.basePath || this.basePath;
        }
    }
};

/**
 *
 * @export
 * @class RequiredError
 * @extends {Error}
 */
export class RequiredError extends Error {
    name: "RequiredError"
    constructor(public field: string, msg?: string) {
        super(msg);
    }
}

/**
 *
 * @export
 * @interface AMLRecord
 */
export interface AMLRecord {
    /**
     *
     * @type {{ [key: string]: string; }}
     * @memberof AMLRecord
     */
    aml?: { [key: string]: string; };
    /**
     *
     * @type {string}
     * @memberof AMLRecord
     */
    amlContext?: string;
    /**
     *
     * @type {string}
     * @memberof AMLRecord
     */
    version?: string;
}
/**
 *
 * @export
 * @interface ActionMenuFetchResult
 */
export interface ActionMenuFetchResult {
    /**
     * Action menu
     * @type {Menu}
     * @memberof ActionMenuFetchResult
     */
    result?: Menu;
}
/**
 *
 * @export
 * @interface ActionMenuModulesResult
 */
export interface ActionMenuModulesResult {
}
/**
 *
 * @export
 * @interface AdminConfig
 */
export interface AdminConfig {
    /**
     * Configuration settings
     * @type {any}
     * @memberof AdminConfig
     */
    config?: any;
}
/**
 *
 * @export
 * @interface AdminMediationDeny
 */
export interface AdminMediationDeny {
    /**
     * List of mediator rules for recipient
     * @type {Array<string>}
     * @memberof AdminMediationDeny
     */
    mediator_terms?: Array<string>;
    /**
     * List of recipient rules for mediation
     * @type {Array<string>}
     * @memberof AdminMediationDeny
     */
    recipient_terms?: Array<string>;
}
/**
 *
 * @export
 * @interface AdminModules
 */
export interface AdminModules {
    /**
     * List of admin modules
     * @type {Array<string>}
     * @memberof AdminModules
     */
    result?: Array<string>;
}
/**
 *
 * @export
 * @interface AdminReset
 */
export interface AdminReset {
}
/**
 *
 * @export
 * @interface AdminShutdown
 */
export interface AdminShutdown {
}
/**
 *
 * @export
 * @interface AdminStatus
 */
export interface AdminStatus {
    /**
     * Conductor statistics
     * @type {any}
     * @memberof AdminStatus
     */
    conductor?: any;
    /**
     * Default label
     * @type {string}
     * @memberof AdminStatus
     */
Loading
Loading full blame...