onoffice
Version:
OnOffice typescript api client and sdk
22 lines (21 loc) • 908 B
TypeScript
import { IAction, IOFAPIResponse } from "../types";
export declare function signAction(action: IAction, token: string, secret: string): {
timestamp: number;
hmac_version: number;
hmac: string;
actionid: "urn:onoffice-de-ns:smart:2.5:smartml:action:read";
parameters: import("../types").IActionReadParams;
indentifier: string;
resourceid: string;
resourcetype: string;
} | {
timestamp: number;
hmac_version: number;
hmac: string;
actionid: "urn:onoffice-de-ns:smart:2.5:smartml:action:get";
parameters: import("../types/actions").IActionGetParams;
indentifier: string;
resourceid: string;
resourcetype: string;
};
export declare function fetchActions<RecordT>(actions: IAction[], token: string, secret: string, endpoint: string, responseType?: "arraybuffer" | "blob" | "document" | "json" | "stream" | "text"): Promise<IOFAPIResponse<RecordT>>;