import { BaseService } from "@web-atoms/core/dist/services/http/RestService"; export interface IPackageFile { package?: string; path?: string; snapshot?: string; version?: string; localPath?: string; remoteUrl?: string; url?: string; files?: IPackageFile[]; } export interface ISaveModel { id?: string; comments?: string; files: Array<{ name: string; snapshot?: string; content?: string; url?: string; }>; } export interface IFolderStructure { root: string; host: string; start: string; contentUrl: string; downloadUrl: string; list: IPackageFile[]; } export default class FileService extends BaseService { getFileSource(url: string): Promise; check(all: string): Promise; create(model: any): Promise; saveFiles(root: string, model: any): Promise; getSourceFileList(folder: string): Promise; getPackageFiles(p: string, version: string): Promise; private remoteGetPackageFiles; }