UNPKG

@hpcc-js/comms

Version:
35 lines 1.3 kB
import { IConnection, IOptions, ResponseType } from "./connection"; export declare type ESPResponseType = ResponseType | "json2" | "xsd"; export declare function isArray(arg: any): boolean; export interface Exception { Code: number; Message: string; } export interface Exceptions { Source: string; Exception: Exception[]; } export declare class ESPExceptions extends Error implements Exceptions { readonly isESPExceptions = true; action: string; request: string; Source: string; Exception: Exception[]; constructor(action: string, request: any, exceptions: Exceptions); } export declare class ESPConnection implements IConnection { private _connection; private _service; private _version; constructor(optsConnection: IOptions | IConnection, service: string, version: string); service(): string; service(_: string): ESPConnection; version(): string; version(_: string): ESPConnection; toESPStringArray(target: any, arrayName: string): any; opts(_: Partial<IOptions>): this; opts(): IOptions; send(action: string, _request?: any, espResponseType?: ESPResponseType, largeUpload?: boolean): Promise<any>; clone(): ESPConnection; } //# sourceMappingURL=espConnection.d.ts.map