UNPKG

wx-filemanager-data-provider

Version:

25 lines (24 loc) 837 B
import { Rest } from "@wx/lib-data-provider"; import type { ActionMap } from "@wx/lib-data-provider"; import type { IDrive, THandlersConfig, TID, IEntity, IFile } from "@wx/filemanager-store"; type TProviderMethodsConfig = THandlersConfig & { "upload-file": { file: IFile; parent: TID; }; "file-renamed": { id: TID; newId: TID; }; }; export default class RestDataProvider extends Rest<TProviderMethodsConfig> { constructor(url: string); getHandlers(): ActionMap<TProviderMethodsConfig>; loadFiles(id: TID): Promise<IEntity[]>; loadInfo(id: TID): Promise<void | IDrive[]>; parseDates(data: IEntity[]): IEntity[]; send<T>(url: string, method: string, data?: any, customHeaders?: any): Promise<T>; private getParams; private handleNonUniqueNames; } export {};