UNPKG

@docsvision/webclient

Version:

Type definitions for DocsVision WebClient scripts and extensions.

32 lines (31 loc) 1.11 kB
import { RequestOptions } from "@docsvision/webclient/Legacy/Utils"; import { $RequestManager } from "@docsvision/webclient/System/$RequestManager"; /** @internal */ export declare enum HttpMethods { Get = 0, Post = 1 } /** @internal */ export declare class ControllerBase { protected services: $RequestManager; constructor(services?: $RequestManager); protected basePostRequest(url: string, data: any, options?: RequestOptions): Promise<any>; protected baseGetRequest(url: string, options?: RequestOptions): Promise<any>; protected doRequest({ controller, action, isApi, method, data, options, relativePath }: { controller: string; action: string; isApi: boolean; method: HttpMethods; data?: any; options?: RequestOptions; relativePath?: boolean; }): Promise<any>; protected getUrl({ controller, action, isApi, method, data, relativePath }: { controller: string; action: string; isApi: boolean; method: HttpMethods; data: any; relativePath: boolean; }): string; }