UNPKG

@xompass/sdk-cloud-api

Version:

Xompass Client for cloud-api

30 lines (29 loc) 723 B
export interface HTTPResponse { data?: any; status?: number; statusText?: string; headers?: any; request?: any; [x: string]: any; } export declare class XompassHTTPError extends Error { statusCode?: number; code: string; constructor(response: HTTPResponse); } export interface XompassHTTPOptions { method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH' | 'HEAD' | 'OPTIONS'; url: string; routeParams?: { [key: string]: string | number; }; body?: any; headers?: { [key: string]: string | number; }; timeout?: number; retry?: boolean; } export declare class XompassHTTPClient { static exec(options: XompassHTTPOptions): Promise<any>; }