@twin.org/blob-storage-connector-file 0.0.1-next.17 → 0.0.1-next.18
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/fileBlobStorageConnector.d.ts +2 -5
- package/dist/types/index.d.ts +1 -0
- package/dist/types/models/IFileBlobStorageConnectorConstructorOptions.d.ts +10 -0
- package/docs/changelog.md +1 -1
- package/docs/reference/classes/FileBlobStorageConnector.md +15 -9
- package/docs/reference/index.md +1 -0
- package/docs/reference/interfaces/IFileBlobStorageConnectorConstructorOptions.md +11 -0
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
@@ -33,7 +33,6 @@ class FileBlobStorageConnector {
|
|
33
33
|
/**
|
34
34
|
* Create a new instance of FileBlobStorageConnector.
|
35
35
|
* @param options The options for the connector.
|
36
|
-
* @param options.config The configuration for the connector.
|
37
36
|
*/
|
38
37
|
constructor(options) {
|
39
38
|
core.Guards.object(this.CLASS_NAME, "options", options);
|
package/dist/esm/index.mjs
CHANGED
@@ -31,7 +31,6 @@ class FileBlobStorageConnector {
|
|
31
31
|
/**
|
32
32
|
* Create a new instance of FileBlobStorageConnector.
|
33
33
|
* @param options The options for the connector.
|
34
|
-
* @param options.config The configuration for the connector.
|
35
34
|
*/
|
36
35
|
constructor(options) {
|
37
36
|
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 { IFileBlobStorageConnectorConstructorOptions } from "./models/IFileBlobStorageConnectorConstructorOptions";
|
3
3
|
/**
|
4
4
|
* Class for performing blob storage operations in file.
|
5
5
|
*/
|
@@ -15,11 +15,8 @@ export declare class FileBlobStorageConnector implements IBlobStorageConnector {
|
|
15
15
|
/**
|
16
16
|
* Create a new instance of FileBlobStorageConnector.
|
17
17
|
* @param options The options for the connector.
|
18
|
-
* @param options.config The configuration for the connector.
|
19
18
|
*/
|
20
|
-
constructor(options:
|
21
|
-
config: IFileBlobStorageConnectorConfig;
|
22
|
-
});
|
19
|
+
constructor(options: IFileBlobStorageConnectorConstructorOptions);
|
23
20
|
/**
|
24
21
|
* Bootstrap the component by creating and initializing any resources it needs.
|
25
22
|
* @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 { IFileBlobStorageConnectorConfig } from "./IFileBlobStorageConnectorConfig";
|
2
|
+
/**
|
3
|
+
* Options for the File Blob Storage Connector constructor.
|
4
|
+
*/
|
5
|
+
export interface IFileBlobStorageConnectorConstructorOptions {
|
6
|
+
/**
|
7
|
+
* The configuration for the connector.
|
8
|
+
*/
|
9
|
+
config: IFileBlobStorageConnectorConfig;
|
10
|
+
}
|
package/docs/changelog.md
CHANGED
@@ -16,13 +16,11 @@ Create a new instance of FileBlobStorageConnector.
|
|
16
16
|
|
17
17
|
#### Parameters
|
18
18
|
|
19
|
-
|
19
|
+
##### options
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
• **options.config**: [`IFileBlobStorageConnectorConfig`](../interfaces/IFileBlobStorageConnectorConfig.md)
|
21
|
+
[`IFileBlobStorageConnectorConstructorOptions`](../interfaces/IFileBlobStorageConnectorConstructorOptions.md)
|
24
22
|
|
25
|
-
The
|
23
|
+
The options for the connector.
|
26
24
|
|
27
25
|
#### Returns
|
28
26
|
|
@@ -58,7 +56,9 @@ Bootstrap the component by creating and initializing any resources it needs.
|
|
58
56
|
|
59
57
|
#### Parameters
|
60
58
|
|
61
|
-
|
59
|
+
##### nodeLoggingConnectorType?
|
60
|
+
|
61
|
+
`string`
|
62
62
|
|
63
63
|
The node logging connector type, defaults to "node-logging".
|
64
64
|
|
@@ -82,7 +82,9 @@ Set the blob.
|
|
82
82
|
|
83
83
|
#### Parameters
|
84
84
|
|
85
|
-
|
85
|
+
##### blob
|
86
|
+
|
87
|
+
`Uint8Array`
|
86
88
|
|
87
89
|
The data for the blob.
|
88
90
|
|
@@ -106,7 +108,9 @@ Get the blob.
|
|
106
108
|
|
107
109
|
#### Parameters
|
108
110
|
|
109
|
-
|
111
|
+
##### id
|
112
|
+
|
113
|
+
`string`
|
110
114
|
|
111
115
|
The id of the blob to get in urn format.
|
112
116
|
|
@@ -130,7 +134,9 @@ Remove the blob.
|
|
130
134
|
|
131
135
|
#### Parameters
|
132
136
|
|
133
|
-
|
137
|
+
##### id
|
138
|
+
|
139
|
+
`string`
|
134
140
|
|
135
141
|
The id of the blob to remove in urn format.
|
136
142
|
|
package/docs/reference/index.md
CHANGED
@@ -0,0 +1,11 @@
|
|
1
|
+
# Interface: IFileBlobStorageConnectorConstructorOptions
|
2
|
+
|
3
|
+
Options for the File Blob Storage Connector constructor.
|
4
|
+
|
5
|
+
## Properties
|
6
|
+
|
7
|
+
### config
|
8
|
+
|
9
|
+
> **config**: [`IFileBlobStorageConnectorConfig`](IFileBlobStorageConnectorConfig.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-file",
|
3
|
-
"version": "0.0.1-next.
|
3
|
+
"version": "0.0.1-next.18",
|
4
4
|
"description": "Blob Storage connector implementation using file storage",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -14,7 +14,7 @@
|
|
14
14
|
"node": ">=20.0.0"
|
15
15
|
},
|
16
16
|
"dependencies": {
|
17
|
-
"@twin.org/blob-storage-models": "0.0.1-next.
|
17
|
+
"@twin.org/blob-storage-models": "0.0.1-next.18",
|
18
18
|
"@twin.org/core": "next",
|
19
19
|
"@twin.org/crypto": "next",
|
20
20
|
"@twin.org/logging-models": "next",
|