@alepha/bucket-azure 0.9.2 → 0.9.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.
- package/dist/index.d.cts +6 -6
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.d.ts.map +1 -1
- package/package.json +7 -7
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alepha_core1 from "@alepha/core";
|
|
2
2
|
import * as _alepha_core0 from "@alepha/core";
|
|
3
3
|
import { Alepha, FileLike, Static } from "@alepha/core";
|
|
4
4
|
import { FileStorageProvider } from "@alepha/bucket";
|
|
@@ -6,8 +6,8 @@ import { DateTimeProvider } from "@alepha/datetime";
|
|
|
6
6
|
import { BlobServiceClient, BlockBlobClient, ContainerClient, StoragePipelineOptions } from "@azure/storage-blob";
|
|
7
7
|
|
|
8
8
|
//#region src/providers/AzureFileStorageProvider.d.ts
|
|
9
|
-
declare const envSchema:
|
|
10
|
-
AZ_STORAGE_CONNECTION_STRING:
|
|
9
|
+
declare const envSchema: _alepha_core1.TObject<{
|
|
10
|
+
AZ_STORAGE_CONNECTION_STRING: _alepha_core1.TString;
|
|
11
11
|
}>;
|
|
12
12
|
declare module "@alepha/core" {
|
|
13
13
|
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
@@ -16,7 +16,7 @@ declare module "@alepha/core" {
|
|
|
16
16
|
* Azure Blog Storage implementation of File Storage Provider.
|
|
17
17
|
*/
|
|
18
18
|
declare class AzureFileStorageProvider implements FileStorageProvider {
|
|
19
|
-
protected readonly log:
|
|
19
|
+
protected readonly log: _alepha_core1.Logger;
|
|
20
20
|
protected readonly env: {
|
|
21
21
|
AZ_STORAGE_CONNECTION_STRING: string;
|
|
22
22
|
};
|
|
@@ -26,7 +26,7 @@ declare class AzureFileStorageProvider implements FileStorageProvider {
|
|
|
26
26
|
protected readonly blobServiceClient: BlobServiceClient;
|
|
27
27
|
readonly options: StoragePipelineOptions;
|
|
28
28
|
constructor();
|
|
29
|
-
protected readonly onStart:
|
|
29
|
+
protected readonly onStart: _alepha_core1.HookDescriptor<"start">;
|
|
30
30
|
createContainer(containerName: string): Promise<ContainerClient>;
|
|
31
31
|
upload(bucketName: string, file: FileLike, fileId?: string): Promise<string>;
|
|
32
32
|
download(bucketName: string, fileId: string): Promise<FileLike>;
|
|
@@ -44,7 +44,7 @@ declare class AzureFileStorageProvider implements FileStorageProvider {
|
|
|
44
44
|
* @see {@link AzureFileStorageProvider}
|
|
45
45
|
* @module alepha.bucket.azure
|
|
46
46
|
*/
|
|
47
|
-
declare const AlephaBucketAzure: _alepha_core0.
|
|
47
|
+
declare const AlephaBucketAzure: _alepha_core0.Service<_alepha_core0.Module>;
|
|
48
48
|
//# sourceMappingURL=index.d.ts.map
|
|
49
49
|
|
|
50
50
|
//#endregion
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/providers/AzureFileStorageProvider.ts","../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;cA0BM,
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/providers/AzureFileStorageProvider.ts","../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;cA0BM,yBAAS;gCAIb,aAAA,CAAA;;;EAJI,UAAA,GAIJ,SAGqB,OAHrB,CAG6B,MAH7B,CAAA,OAG2C,SAH3C,CAAA,CAAA,CAAA,CAAA;;;AAJa;AAAA;AAAA,cAaF,wBAAA,YAAoC,mBAblC,CAAA;EAAA,mBAO8B,GAAA,EAMP,aAAA,CACf,MAPsB;EAAS,mBAAvB,GAAA,EAAA;IAAR,4BAAA,EAAA,MAAA;EAAO,CAAA;EAAA,mBAAA,MAAA,EASJ,MATI;EAMjB,mBAAA,IAAA,EAIW,gBAJc;EAAA,mBAAA,UAAA,EAKN,MALM,CAAA,MAAA,EAKS,eALT,CAAA;EAAA,mBACf,iBAAA,EAKgB,iBALhB;EAAA,SAEG,OAAA,EAKA,sBALA;EAAA,WACF,CAAA;EAAA,mBACuB,OAAA,EAGC,aAAA,CASrB,cAZoB,CAAA,OAAA,CAAA;EAAe,eAA9B,CAAA,aAAA,EAAA,MAAA,CAAA,EAmC5B,OAnC4B,CAmCpB,eAnCoB,CAAA;EAAM,MACC,CAAA,UAAA,EAAA,MAAA,EAAA,IAAA,EA6C/B,QA7C+B,EAAA,MAAA,CAAA,EAAA,MAAA,CAAA,EA+CnC,OA/CmC,CAAA,MAAA,CAAA;EAAiB,QAE9B,CAAA,UAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,EAqFkC,OArFlC,CAqF0C,QArF1C,CAAA;EAAsB,MAAA,CAAA,UASrB,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,EAiG+B,OAjG/B,CAAA,OAAA,CAAA;EAAA,MAuBf,CAAA,UAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,EA8E8C,OA9E9C,CAAA,IAAA,CAAA;EAAe,QAAvB,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,EAyFiD,eAzFjD;EAAO,UAWH,qBAAA,CAAA,IAAA,EAAA,MAAA,CAAA,EA0FJ,OA1FI,CA0FI,eA1FJ,CAAA;EAAQ,UAEZ,QAAA,CAAA,CAAA,EAAA,MAAA;;;;;;;;;;cC9ES,mBAAiB,aAAA,CAAA,QAW5B,aAAA,CAX4B,MAAA;ADUD"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { FileStorageProvider } from "@alepha/bucket";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alepha_core1 from "@alepha/core";
|
|
3
3
|
import * as _alepha_core0 from "@alepha/core";
|
|
4
4
|
import { Alepha, FileLike, Static } from "@alepha/core";
|
|
5
5
|
import { DateTimeProvider } from "@alepha/datetime";
|
|
6
6
|
import { BlobServiceClient, BlockBlobClient, ContainerClient, StoragePipelineOptions } from "@azure/storage-blob";
|
|
7
7
|
|
|
8
8
|
//#region src/providers/AzureFileStorageProvider.d.ts
|
|
9
|
-
declare const envSchema:
|
|
10
|
-
AZ_STORAGE_CONNECTION_STRING:
|
|
9
|
+
declare const envSchema: _alepha_core1.TObject<{
|
|
10
|
+
AZ_STORAGE_CONNECTION_STRING: _alepha_core1.TString;
|
|
11
11
|
}>;
|
|
12
12
|
declare module "@alepha/core" {
|
|
13
13
|
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
@@ -16,7 +16,7 @@ declare module "@alepha/core" {
|
|
|
16
16
|
* Azure Blog Storage implementation of File Storage Provider.
|
|
17
17
|
*/
|
|
18
18
|
declare class AzureFileStorageProvider implements FileStorageProvider {
|
|
19
|
-
protected readonly log:
|
|
19
|
+
protected readonly log: _alepha_core1.Logger;
|
|
20
20
|
protected readonly env: {
|
|
21
21
|
AZ_STORAGE_CONNECTION_STRING: string;
|
|
22
22
|
};
|
|
@@ -26,7 +26,7 @@ declare class AzureFileStorageProvider implements FileStorageProvider {
|
|
|
26
26
|
protected readonly blobServiceClient: BlobServiceClient;
|
|
27
27
|
readonly options: StoragePipelineOptions;
|
|
28
28
|
constructor();
|
|
29
|
-
protected readonly onStart:
|
|
29
|
+
protected readonly onStart: _alepha_core1.HookDescriptor<"start">;
|
|
30
30
|
createContainer(containerName: string): Promise<ContainerClient>;
|
|
31
31
|
upload(bucketName: string, file: FileLike, fileId?: string): Promise<string>;
|
|
32
32
|
download(bucketName: string, fileId: string): Promise<FileLike>;
|
|
@@ -44,7 +44,7 @@ declare class AzureFileStorageProvider implements FileStorageProvider {
|
|
|
44
44
|
* @see {@link AzureFileStorageProvider}
|
|
45
45
|
* @module alepha.bucket.azure
|
|
46
46
|
*/
|
|
47
|
-
declare const AlephaBucketAzure: _alepha_core0.
|
|
47
|
+
declare const AlephaBucketAzure: _alepha_core0.Service<_alepha_core0.Module>;
|
|
48
48
|
//# sourceMappingURL=index.d.ts.map
|
|
49
49
|
|
|
50
50
|
//#endregion
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/providers/AzureFileStorageProvider.ts","../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;cA0BM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/providers/AzureFileStorageProvider.ts","../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;cA0BM,yBAAS;gCAIb,aAAA,CAAA;;;EAJI,UAAA,GAIJ,SAGqB,OAHrB,CAG6B,MAH7B,CAAA,OAG2C,SAH3C,CAAA,CAAA,CAAA,CAAA;;;AAJa;AAAA;AAAA,cAaF,wBAAA,YAAoC,mBAblC,CAAA;EAAA,mBAO8B,GAAA,EAMP,aAAA,CACf,MAPsB;EAAS,mBAAvB,GAAA,EAAA;IAAR,4BAAA,EAAA,MAAA;EAAO,CAAA;EAAA,mBAAA,MAAA,EASJ,MATI;EAMjB,mBAAA,IAAA,EAIW,gBAJc;EAAA,mBAAA,UAAA,EAKN,MALM,CAAA,MAAA,EAKS,eALT,CAAA;EAAA,mBACf,iBAAA,EAKgB,iBALhB;EAAA,SAEG,OAAA,EAKA,sBALA;EAAA,WACF,CAAA;EAAA,mBACuB,OAAA,EAGC,aAAA,CASrB,cAZoB,CAAA,OAAA,CAAA;EAAe,eAA9B,CAAA,aAAA,EAAA,MAAA,CAAA,EAmC5B,OAnC4B,CAmCpB,eAnCoB,CAAA;EAAM,MACC,CAAA,UAAA,EAAA,MAAA,EAAA,IAAA,EA6C/B,QA7C+B,EAAA,MAAA,CAAA,EAAA,MAAA,CAAA,EA+CnC,OA/CmC,CAAA,MAAA,CAAA;EAAiB,QAE9B,CAAA,UAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,EAqFkC,OArFlC,CAqF0C,QArF1C,CAAA;EAAsB,MAAA,CAAA,UASrB,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,EAiG+B,OAjG/B,CAAA,OAAA,CAAA;EAAA,MAuBf,CAAA,UAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,EA8E8C,OA9E9C,CAAA,IAAA,CAAA;EAAe,QAAvB,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA,EAyFiD,eAzFjD;EAAO,UAWH,qBAAA,CAAA,IAAA,EAAA,MAAA,CAAA,EA0FJ,OA1FI,CA0FI,eA1FJ,CAAA;EAAQ,UAEZ,QAAA,CAAA,CAAA,EAAA,MAAA;;;;;;;;;;cC9ES,mBAAiB,aAAA,CAAA,QAW5B,aAAA,CAX4B,MAAA;ADUD"}
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"storage-blob"
|
|
11
11
|
],
|
|
12
12
|
"author": "Feunard",
|
|
13
|
-
"version": "0.9.
|
|
13
|
+
"version": "0.9.3",
|
|
14
14
|
"type": "module",
|
|
15
15
|
"engines": {
|
|
16
16
|
"node": ">=22.0.0"
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"src"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@alepha/bucket": "0.9.
|
|
27
|
-
"@alepha/core": "0.9.
|
|
28
|
-
"@alepha/datetime": "0.9.
|
|
29
|
-
"@alepha/file": "0.9.
|
|
30
|
-
"@azure/storage-blob": "12.
|
|
26
|
+
"@alepha/bucket": "0.9.3",
|
|
27
|
+
"@alepha/core": "0.9.3",
|
|
28
|
+
"@alepha/datetime": "0.9.3",
|
|
29
|
+
"@alepha/file": "0.9.3",
|
|
30
|
+
"@azure/storage-blob": "12.28.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"tsdown": "^0.13.
|
|
33
|
+
"tsdown": "^0.13.2",
|
|
34
34
|
"vitest": "^3.2.4"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|