@topgroup/diginext
Version:
A BUILD SERVER & CLI to deploy apps to any Kubernetes clusters.
29 lines • 1.42 kB
TypeScript
/// <reference types="node" />
/// <reference types="node" />
import type { ICloudStorage } from "../entities/CloudStorage";
import type { IQueryFilter, IQueryOptions } from "../interfaces";
import type { Ownership } from "../interfaces/SystemTypes";
import type { StorageUploadOptions } from "../modules/storages/storage-types";
import BaseService from "./BaseService";
export declare class CloudStorageService extends BaseService<ICloudStorage> {
constructor(ownership?: Ownership);
create(data: any, options?: IQueryOptions): Promise<ICloudStorage>;
update(filter: IQueryFilter<ICloudStorage>, data: any, options?: IQueryOptions): Promise<ICloudStorage[]>;
verify(item: ICloudStorage): Promise<boolean>;
uploadFileFromUrl(storage: ICloudStorage, url: string, destFileName: string, options?: StorageUploadOptions): Promise<{
path: string;
storageUrl: string;
publicUrl: string;
}>;
uploadFileFromBuffer(storage: ICloudStorage, buffer: Buffer, destFileName: string, options?: StorageUploadOptions): Promise<{
path: string;
storageUrl: string;
publicUrl: string;
}>;
uploadFileFromFilePath(storage: ICloudStorage, filePath: string, destFileName: string, options?: StorageUploadOptions): Promise<{
path: string;
storageUrl: string;
publicUrl: string;
}>;
}
//# sourceMappingURL=CloudStorageService.d.ts.map