@twin.org/blob-storage-connector-azure 0.0.1-next.17 → 0.0.1-next.19
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/cjs/index.cjs +0 -1
- package/dist/esm/index.mjs +0 -1
- package/dist/types/azureBlobStorageConnector.d.ts +2 -5
- package/dist/types/index.d.ts +1 -0
- package/dist/types/models/IAzureBlobStorageConnectorConstructorOptions.d.ts +10 -0
- package/docs/changelog.md +1 -1
- package/docs/reference/classes/AzureBlobStorageConnector.md +15 -9
- package/docs/reference/index.md +1 -0
- package/docs/reference/interfaces/IAzureBlobStorageConnectorConstructorOptions.md +11 -0
- package/package.json +4 -4
package/dist/cjs/index.cjs
CHANGED
|
@@ -38,7 +38,6 @@ class AzureBlobStorageConnector {
|
|
|
38
38
|
/**
|
|
39
39
|
* Create a new instance of AzureBlobStorageConnector.
|
|
40
40
|
* @param options The options for the connector.
|
|
41
|
-
* @param options.config The configuration for the connector.
|
|
42
41
|
*/
|
|
43
42
|
constructor(options) {
|
|
44
43
|
core.Guards.object(this.CLASS_NAME, "options", options);
|
package/dist/esm/index.mjs
CHANGED
|
@@ -36,7 +36,6 @@ class AzureBlobStorageConnector {
|
|
|
36
36
|
/**
|
|
37
37
|
* Create a new instance of AzureBlobStorageConnector.
|
|
38
38
|
* @param options The options for the connector.
|
|
39
|
-
* @param options.config The configuration for the connector.
|
|
40
39
|
*/
|
|
41
40
|
constructor(options) {
|
|
42
41
|
Guards.object(this.CLASS_NAME, "options", options);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IBlobStorageConnector } from "@twin.org/blob-storage-models";
|
|
2
|
-
import type {
|
|
2
|
+
import type { IAzureBlobStorageConnectorConstructorOptions } from "./models/IAzureBlobStorageConnectorConstructorOptions";
|
|
3
3
|
/**
|
|
4
4
|
* Class for performing blob storage operations on Azure.
|
|
5
5
|
* See https://learn.microsoft.com/en-us/azure/storage/common/storage-samples-javascript?toc=%2Fazure%2Fstorage%2Fblobs%2Ftoc.json for more information.
|
|
@@ -16,11 +16,8 @@ export declare class AzureBlobStorageConnector implements IBlobStorageConnector
|
|
|
16
16
|
/**
|
|
17
17
|
* Create a new instance of AzureBlobStorageConnector.
|
|
18
18
|
* @param options The options for the connector.
|
|
19
|
-
* @param options.config The configuration for the connector.
|
|
20
19
|
*/
|
|
21
|
-
constructor(options:
|
|
22
|
-
config: IAzureBlobStorageConnectorConfig;
|
|
23
|
-
});
|
|
20
|
+
constructor(options: IAzureBlobStorageConnectorConstructorOptions);
|
|
24
21
|
/**
|
|
25
22
|
* Bootstrap the component by creating and initializing any resources it needs.
|
|
26
23
|
* @param nodeLoggingConnectorType The node logging connector type, defaults to "node-logging".
|
package/dist/types/index.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IAzureBlobStorageConnectorConfig } from "./IAzureBlobStorageConnectorConfig";
|
|
2
|
+
/**
|
|
3
|
+
* Options for the Azure Blob Storage Connector constructor.
|
|
4
|
+
*/
|
|
5
|
+
export interface IAzureBlobStorageConnectorConstructorOptions {
|
|
6
|
+
/**
|
|
7
|
+
* The configuration for the connector.
|
|
8
|
+
*/
|
|
9
|
+
config: IAzureBlobStorageConnectorConfig;
|
|
10
|
+
}
|
package/docs/changelog.md
CHANGED
|
@@ -17,13 +17,11 @@ Create a new instance of AzureBlobStorageConnector.
|
|
|
17
17
|
|
|
18
18
|
#### Parameters
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
##### options
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
• **options.config**: [`IAzureBlobStorageConnectorConfig`](../interfaces/IAzureBlobStorageConnectorConfig.md)
|
|
22
|
+
[`IAzureBlobStorageConnectorConstructorOptions`](../interfaces/IAzureBlobStorageConnectorConstructorOptions.md)
|
|
25
23
|
|
|
26
|
-
The
|
|
24
|
+
The options for the connector.
|
|
27
25
|
|
|
28
26
|
#### Returns
|
|
29
27
|
|
|
@@ -59,7 +57,9 @@ Bootstrap the component by creating and initializing any resources it needs.
|
|
|
59
57
|
|
|
60
58
|
#### Parameters
|
|
61
59
|
|
|
62
|
-
|
|
60
|
+
##### nodeLoggingConnectorType?
|
|
61
|
+
|
|
62
|
+
`string`
|
|
63
63
|
|
|
64
64
|
The node logging connector type, defaults to "node-logging".
|
|
65
65
|
|
|
@@ -83,7 +83,9 @@ Set the blob.
|
|
|
83
83
|
|
|
84
84
|
#### Parameters
|
|
85
85
|
|
|
86
|
-
|
|
86
|
+
##### blob
|
|
87
|
+
|
|
88
|
+
`Uint8Array`
|
|
87
89
|
|
|
88
90
|
The data for the blob.
|
|
89
91
|
|
|
@@ -107,7 +109,9 @@ Get the blob.
|
|
|
107
109
|
|
|
108
110
|
#### Parameters
|
|
109
111
|
|
|
110
|
-
|
|
112
|
+
##### id
|
|
113
|
+
|
|
114
|
+
`string`
|
|
111
115
|
|
|
112
116
|
The id of the blob to get in urn format.
|
|
113
117
|
|
|
@@ -131,7 +135,9 @@ Remove the blob.
|
|
|
131
135
|
|
|
132
136
|
#### Parameters
|
|
133
137
|
|
|
134
|
-
|
|
138
|
+
##### id
|
|
139
|
+
|
|
140
|
+
`string`
|
|
135
141
|
|
|
136
142
|
The id of the blob to remove in urn format.
|
|
137
143
|
|
package/docs/reference/index.md
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Interface: IAzureBlobStorageConnectorConstructorOptions
|
|
2
|
+
|
|
3
|
+
Options for the Azure Blob Storage Connector constructor.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### config
|
|
8
|
+
|
|
9
|
+
> **config**: [`IAzureBlobStorageConnectorConfig`](IAzureBlobStorageConnectorConfig.md)
|
|
10
|
+
|
|
11
|
+
The configuration for the connector.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/blob-storage-connector-azure",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.19",
|
|
4
4
|
"description": "Blob Storage connector implementation using Azure",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@azure/storage-blob": "^12.26.0",
|
|
18
|
-
"@twin.org/blob-storage-models": "0.0.1-next.
|
|
18
|
+
"@twin.org/blob-storage-models": "0.0.1-next.19",
|
|
19
19
|
"@twin.org/core": "next",
|
|
20
20
|
"@twin.org/crypto": "next",
|
|
21
21
|
"@twin.org/logging-models": "next",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"types": "./dist/types/index.d.ts",
|
|
27
27
|
"exports": {
|
|
28
28
|
".": {
|
|
29
|
+
"types": "./dist/types/index.d.ts",
|
|
29
30
|
"require": "./dist/cjs/index.cjs",
|
|
30
|
-
"import": "./dist/esm/index.mjs"
|
|
31
|
-
"types": "./dist/types/index.d.ts"
|
|
31
|
+
"import": "./dist/esm/index.mjs"
|
|
32
32
|
},
|
|
33
33
|
"./locales/*.json": "./locales/*.json"
|
|
34
34
|
},
|