UNPKG

@hopeio/utils

Version:
47 lines (46 loc) 1.88 kB
import { SpaceType, SortType } from './const'; export interface File { familyId: number; fid: string; creator: string; size: number; createTime: string; name: string; shootingTime: string; id: string; type: number; previewUrl: string; thumbUrl: string; fileType: string; } export interface QueryAllFilesData { files: File[]; } export declare function QueryAllFiles(spaceType: SpaceType, parentDirectoryId: string, pageNum: number, pageSize: number, sortRule: SortType, familyId: string): Promise<QueryAllFilesData>; export interface PrivateSpaceLoginData { psToken: string; isPass: string; desc: string; } export declare function PrivateSpaceLogin(pwd: string): Promise<PrivateSpaceLoginData>; export interface GetDownloadUrlV2Data { type: number; list: DownloadUrl[]; } export interface DownloadUrl { fid: string; downloadUrl: string; } export declare function GetDownloadUrlV2(fidList: string[]): Promise<GetDownloadUrlV2Data>; export declare function GetDownloadUrl(spaceType: string, fidList: string[]): Promise<DownloadUrl>; export declare function MoveFile(dirList: string[], fileList: string[], targetDirId: string, sourceType: string, targetType: string, fromFamilyId: string, targetFamilyId: string): Promise<void>; export declare function CopyFile(dirList: string[], fileList: string[], targetDirId: string, sourceType: string, targetType: string, fromFamilyId: string, targetFamilyId: string): Promise<void>; export declare function DeleteFile(spaceType: string, dirList: string[], fileList: string[]): Promise<void>; export declare function EmptyRecycleData(): Promise<void>; interface VerifySetPwd { phone: string; verifyResult: string; } export declare function VerifySetPwd(): Promise<VerifySetPwd>; export declare function FCloudProductOrdListQry(): Promise<void>; export {};