UNPKG

@becomes/cms-cloud-client

Version:

SDK for accessing BCMS Cloud API

34 lines (33 loc) 934 B
import type { BCMSCloudSdk } from '../../../sdk/sdk/main'; import type { InstancePlugin } from '../../../b-types/instance'; import type { FD } from '../media'; export declare class InstancePluginHandler { sdk: BCMSCloudSdk; private baseUrl; private storeKey; private getAllLatch; private getAllQueue; private getQueue; constructor(sdk: BCMSCloudSdk); getAll(data: { instanceId: string; skipCache?: boolean; }): Promise<InstancePlugin[]>; get(data: { instanceId: string; id: string; skipCache?: boolean; }): Promise<InstancePlugin>; set(data: { instanceId: string; name: string; tag: string; version: string; formData: FD; onUploadProgress?(event: any): void; }): Promise<InstancePlugin>; deleteById(data: { instanceId: string; id: string; }): Promise<InstancePlugin>; }