Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. export interface FileManagerInterface {
  2.   fetchBlobContent: (file: BlobData, modelID?: string) => void;
  3.   uploadFiles: (files: FileList) => void;
  4.   deleteFiles: (blobs: BlobData[]) => void;
  5.   deleteForceFiles: () => void;
  6.   copy: (toBlobPath: string, toBlobId: string, filesToCopy: BlobData[]) => void;
  7.   move: (toBlobPath: string, toBlobId: string, filesToMove: BlobData[]) => void;
  8.   filterBlobs: (searchText: string) => void;
  9.   refreshBlobContent: (modelID?: string) => void;
  10. }
  11.  
  12. export const MainFileManager: FileManagerInterface = {
  13.   fetchBlobContent: (blob: BlobData, modelID?: string) =>
  14.     fetchBlobContent(FileManagerLocationEnum.Main, blob, modelID),
  15.   uploadFiles: (files: FileList) =>
  16.     uploadFiles(FileManagerLocationEnum.Main, files),
  17.   deleteFiles: (blobs: BlobData[]) =>
  18.     deleteFiles(FileManagerLocationEnum.Main, blobs),
  19.   deleteForceFiles: () => deleteForceFiles(FileManagerLocationEnum.Main),
  20.   copy: (toBlobPath: string, toBlobId: string, filesToCopy: BlobData[]) =>
  21.     copy(FileManagerLocationEnum.Main, toBlobPath, toBlobId, filesToCopy),
  22.   move: (toBlobPath: string, toBlobId: string, filesToMove: BlobData[]) =>
  23.     move(FileManagerLocationEnum.Main, toBlobPath, toBlobId, filesToMove),
  24.   filterBlobs: (searchText: string) =>
  25.     filterBlobs(FileManagerLocationEnum.Main, searchText),
  26.   refreshBlobContent: (modelID?: string) =>
  27.     refreshBlobContent(FileManagerLocationEnum.Main, modelID)
  28. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement