@cellaware/utils 8.6.2 → 8.6.3
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,5 +1,15 @@
|
|
|
1
1
|
export declare function chatwmsStorageGetBlobId(clientId: string, blobName: string): string;
|
|
2
2
|
export declare function chatwmsStorageContainerCreate(): Promise<void>;
|
|
3
|
+
/**
|
|
4
|
+
* Stringifies `data` and uploads to blob storage.
|
|
5
|
+
*
|
|
6
|
+
* **Important:** `data` must not be a string.
|
|
7
|
+
*/
|
|
3
8
|
export declare function chatwmsStorageBlobUpload(blobId: string, data: any): Promise<void>;
|
|
4
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Parses string data downloaded from blob storage and returns JSON object/JSON array.
|
|
11
|
+
*
|
|
12
|
+
* **Important:** will return `undefined` if any issues or blob does not exist.
|
|
13
|
+
*/
|
|
5
14
|
export declare function chatwmsStorageBlobDownload(blobId: string): Promise<any>;
|
|
15
|
+
export declare function chatwmsStorageBlobDelete(blobId: string): Promise<void>;
|
|
@@ -6,12 +6,22 @@ export function chatwmsStorageGetBlobId(clientId, blobName) {
|
|
|
6
6
|
export async function chatwmsStorageContainerCreate() {
|
|
7
7
|
return storageContainerCreate(CONTAINER_CLIENT_ID);
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* Stringifies `data` and uploads to blob storage.
|
|
11
|
+
*
|
|
12
|
+
* **Important:** `data` must not be a string.
|
|
13
|
+
*/
|
|
9
14
|
export async function chatwmsStorageBlobUpload(blobId, data) {
|
|
10
15
|
return storageBlobUpload(CONTAINER_CLIENT_ID, blobId, data);
|
|
11
16
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Parses string data downloaded from blob storage and returns JSON object/JSON array.
|
|
19
|
+
*
|
|
20
|
+
* **Important:** will return `undefined` if any issues or blob does not exist.
|
|
21
|
+
*/
|
|
15
22
|
export async function chatwmsStorageBlobDownload(blobId) {
|
|
16
23
|
return storageBlobDownload(CONTAINER_CLIENT_ID, blobId);
|
|
17
24
|
}
|
|
25
|
+
export async function chatwmsStorageBlobDelete(blobId) {
|
|
26
|
+
return storageBlobDelete(CONTAINER_CLIENT_ID, blobId);
|
|
27
|
+
}
|