import { Base } from "../../"; import { MS } from "../../"; /********************************************* * FileSystemItem **********************************************/ export interface FileSystemItem { CreatedBy?: MS.FileServices.UserInformation; ETag?: string; Id?: string; LastModifiedBy?: MS.FileServices.UserInformation; Name?: string; Size?: number; TimeCreated?: any; TimeLastModified?: any; Url?: string; } /********************************************* * FileSystemItemCollections **********************************************/ export interface FileSystemItemCollections extends FileSystemItemCollectionMethods { } /********************************************* * FileSystemItemCollectionMethods **********************************************/ export interface FileSystemItemCollectionMethods { add(name?: string, overwrite?: boolean, content?: any): Base.IBaseExecution; getById(id?: string): Base.IBaseQuery & MS.FileServices.FileSystemItemCollections; } /********************************************* * IFile **********************************************/ export interface IFile extends MS.FileServices.FileSystemItemCollections, FileCollections, FileMethods, Base.IBaseQuery { } /********************************************* * IFileCollection **********************************************/ export interface IFileCollection extends Base.IBaseResults { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * IFileQueryCollection **********************************************/ export interface IFileQueryCollection extends Base.IBaseResults { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * IFileQuery **********************************************/ export interface IFileQuery extends FileOData, FileMethods { } /********************************************* * File **********************************************/ export interface File extends MS.FileServices.FileSystemItem, Base.IBaseResult, FileProps, FileCollections, FileMethods { } /********************************************* * FileProps **********************************************/ export interface FileProps { } /********************************************* * FilePropMethods **********************************************/ export interface FilePropMethods { } /********************************************* * FileCollections **********************************************/ export interface FileCollections extends FilePropMethods { } /********************************************* * FileOData **********************************************/ export interface FileOData extends MS.FileServices.FileSystemItem, Base.IBaseResult, FileProps, FileMethods { } /********************************************* * FileMethods **********************************************/ export interface FileMethods { copyTo(target?: string, overwrite?: boolean): Base.IBaseExecution; delete(): Base.IBaseExecution; download(): Base.IBaseExecution; moveTo(target?: string, overwrite?: boolean): Base.IBaseExecution; upload(stream?: any): Base.IBaseExecution; } /********************************************* * FileService **********************************************/ export interface FileService { Id4a81de82eeb94d6080ea5bf63e27023a?: string; } /********************************************* * FileServiceCollections **********************************************/ export interface FileServiceCollections { } /********************************************* * IFolder **********************************************/ export interface IFolder extends MS.FileServices.FileSystemItemCollections, FolderCollections, FolderMethods, Base.IBaseQuery { } /********************************************* * IFolderCollection **********************************************/ export interface IFolderCollection extends Base.IBaseResults { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * IFolderQueryCollection **********************************************/ export interface IFolderQueryCollection extends Base.IBaseResults { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * IFolderQuery **********************************************/ export interface IFolderQuery extends FolderOData, FolderMethods { } /********************************************* * Folder **********************************************/ export interface Folder extends MS.FileServices.FileSystemItem, Base.IBaseResult, FolderProps, FolderCollections, FolderMethods { } /********************************************* * FolderProps **********************************************/ export interface FolderProps { ChildrenCount?: number; } /********************************************* * FolderPropMethods **********************************************/ export interface FolderPropMethods { } /********************************************* * FolderCollections **********************************************/ export interface FolderCollections extends FolderPropMethods { Children(): Base.IBaseCollection & MS.FileServices.FileSystemItemCollectionMethods; Children(id: string | number): MS.FileServices.FileSystemItemCollections & Base.IBaseQuery & MS.FileServices.FileSystemItemCollections; } /********************************************* * FolderOData **********************************************/ export interface FolderOData extends MS.FileServices.FileSystemItem, Base.IBaseResult, FolderProps, FolderMethods { Children: Base.IBaseResults & MS.FileServices.FileSystemItemCollectionMethods; } /********************************************* * FolderMethods **********************************************/ export interface FolderMethods { delete(): Base.IBaseExecution; moveTo(target?: string): Base.IBaseExecution; } /********************************************* * MeFileService **********************************************/ export interface MeFileService { Id4a81de82eeb94d6080ea5bf63e27023a?: string; } /********************************************* * MeFileServiceCollections **********************************************/ export interface MeFileServiceCollections { }