@docsvision/webclient
Version:
Type definitions for DocsVision WebClient scripts and extensions.
29 lines (28 loc) • 1.69 kB
TypeScript
import { RequestOptions } from "@docsvision/webclient/Legacy/Utils";
import { $ApplicationSettings } from "@docsvision/webclient/StandardServices";
import { $RequestManager } from "@docsvision/webclient/System/$RequestManager";
import { ControllerBase, HttpMethods } from "@docsvision/webclient/System/ControllerBase";
import { $WebSockets } from "@docsvision/webclient/System/$WebSockets";
import { IWebServicesConnection } from "@docsvision/webclient/System/IWebServicesConnection";
import { IWebServicesInfo } from "@docsvision/webclient/System/IWebServicesInfo";
import { IWebServicesRequest } from "@docsvision/webclient/System/IWebServicesRequest";
import { IWebServicesService } from "@docsvision/webclient/System/IWebServicesService";
/** @internal Реализация {@link IWebServicesService}. */
export declare class WebServicesService extends ControllerBase implements IWebServicesService {
protected services: $RequestManager & $WebSockets & $ApplicationSettings;
constructor(services: $RequestManager & $WebSockets & $ApplicationSettings);
check(): Promise<IWebServicesInfo>;
get<T>(plugin: string, message?: IWebServicesRequest<T>, options?: RequestOptions): Promise<T>;
post<T>(plugin: string, message?: IWebServicesRequest<T>, options?: RequestOptions): Promise<T>;
connect(plugin: string): Promise<IWebServicesConnection>;
protected getUrl({ controller, action, isApi, method, data, relativePath }: {
controller: string;
action: string;
isApi: boolean;
method: HttpMethods;
data: unknown;
relativePath: boolean;
}): string;
private get addressConnect();
private get address();
}