@dataclouder/ngx-cloud-storage 0.0.26 → 0.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +0,0 @@
1
- import { ImgStorageData, FileStorageData } from '../classes/storage.models';
2
- import * as i0 from "@angular/core";
3
- export declare class MultiImagesStorageService {
4
- private storage;
5
- uploadImage(image: Blob, path: string): Promise<ImgStorageData>;
6
- delete_directory(imagePath: string): Promise<void>;
7
- deleteImage(imagePath: string): Promise<void>;
8
- private uploadAndGetUrl;
9
- uploadGenericFile(file: File, storagePath: string): Promise<FileStorageData | null>;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<MultiImagesStorageService, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<MultiImagesStorageService>;
12
- }
@@ -1,46 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * Represents the metadata of an object stored in Firebase Storage.
4
- */
5
- export interface ObjectStorageData {
6
- /** The download URL of the stored object. */
7
- url: string;
8
- /** The full path of the object in the storage bucket (e.g., 'folder/subfolder/file.txt'). */
9
- path: string;
10
- /** The name of the Firebase Storage bucket where the object is stored. */
11
- bucket: string;
12
- /** The name of the object file (e.g., 'file.txt'). */
13
- name?: string;
14
- }
15
- export declare class MultiObjectStorageService {
16
- private storage;
17
- /**
18
- * Uploads a Blob or File object to a specified path in Firebase Storage.
19
- * @param objectToUpload The Blob or File to upload.
20
- * @param path The desired storage path (e.g., 'documents/report.pdf').
21
- * @returns A promise that resolves with the storage metadata of the uploaded object.
22
- * @throws Throws an error if the upload fails.
23
- */
24
- uploadObject(objectToUpload: Blob | File, path: string): Promise<ObjectStorageData>;
25
- /**
26
- * Deletes all objects within a specified directory path in Firebase Storage.
27
- * WARNING: Use with extreme caution as this will permanently delete all files in the directory.
28
- * @param directoryPath The path to the directory to delete (e.g., 'users/userId/files/').
29
- * @returns A promise that resolves when the deletion attempt is complete.
30
- */
31
- deleteDirectory(directoryPath: string): Promise<void>;
32
- /**
33
- * Deletes a single object from Firebase Storage based on its full path.
34
- * @param objectPath The full path of the object to delete (e.g., 'images/profile.jpg').
35
- * @returns A promise that resolves when the deletion is complete.
36
- */
37
- deleteObjectByPath(objectPath: string): Promise<void>;
38
- /**
39
- * Private helper to get metadata after an upload task completes.
40
- * @param task The AngularFireUploadTask.
41
- * @returns A promise resolving with the object's storage metadata.
42
- */
43
- private uploadAndGetObjectMetadata;
44
- static ɵfac: i0.ɵɵFactoryDeclaration<MultiObjectStorageService, never>;
45
- static ɵprov: i0.ɵɵInjectableDeclaration<MultiObjectStorageService>;
46
- }
package/public-api.d.ts DELETED
@@ -1,10 +0,0 @@
1
- export * from './lib/components/cropper/cropper.component';
2
- export * from './lib/components/cropper-modal/cropper-modal.component';
3
- export * from './lib/components/image-storage-preview/image-storage-preview';
4
- export * from './lib/components/simple-uploader/simple-uploader.component';
5
- export * from './lib/classes/storage.models';
6
- export * from './lib/services/multi-images-storage.service';
7
- export * from './lib/services/dc-files-cache.service';
8
- export * from './lib/services/multi-object-storage.service';
9
- export * from './lib/components/assets-loader/csa-assets-loader.component';
10
- export * from './lib/models/assetable.model';