@twin.org/blob-storage-models 0.0.1 → 0.0.2-next.1
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.
|
@@ -53,20 +53,18 @@ export interface IBlobStorageComponent extends IComponent {
|
|
|
53
53
|
* @param fileExtension Extension for the blob, will be detected if left undefined.
|
|
54
54
|
* @param metadata Data for the custom metadata as JSON-LD.
|
|
55
55
|
* @param userIdentity The user identity to use with storage operations.
|
|
56
|
-
* @param nodeIdentity The node identity to use with storage operations.
|
|
57
56
|
* @returns Nothing.
|
|
58
57
|
* @throws Not found error if the blob cannot be found.
|
|
59
58
|
*/
|
|
60
|
-
update(id: string, encodingFormat?: string, fileExtension?: string, metadata?: IJsonLdNodeObject, userIdentity?: string
|
|
59
|
+
update(id: string, encodingFormat?: string, fileExtension?: string, metadata?: IJsonLdNodeObject, userIdentity?: string): Promise<void>;
|
|
61
60
|
/**
|
|
62
61
|
* Remove the blob.
|
|
63
62
|
* @param id The id of the blob to remove in urn format.
|
|
64
63
|
* @param userIdentity The user identity to use with storage operations.
|
|
65
|
-
* @param nodeIdentity The node identity to use with storage operations.
|
|
66
64
|
* @returns Nothing.
|
|
67
65
|
* @throws Not found error if the blob cannot be found.
|
|
68
66
|
*/
|
|
69
|
-
remove(id: string, userIdentity?: string
|
|
67
|
+
remove(id: string, userIdentity?: string): Promise<void>;
|
|
70
68
|
/**
|
|
71
69
|
* Query all the blob storage entries which match the conditions.
|
|
72
70
|
* @param conditions The conditions to match for the entries.
|
|
@@ -75,9 +73,8 @@ export interface IBlobStorageComponent extends IComponent {
|
|
|
75
73
|
* @param cursor The cursor to request the next page of entries.
|
|
76
74
|
* @param pageSize The suggested number of entries to return in each chunk, in some scenarios can return a different amount.
|
|
77
75
|
* @param userIdentity The user identity to use with storage operations.
|
|
78
|
-
* @param nodeIdentity The node identity to use with storage operations.
|
|
79
76
|
* @returns All the entries for the storage matching the conditions,
|
|
80
77
|
* and a cursor which can be used to request more entities.
|
|
81
78
|
*/
|
|
82
|
-
query(conditions?: EntityCondition<IBlobStorageEntry>, orderBy?: keyof Pick<IBlobStorageEntry, "dateCreated" | "dateModified">, orderByDirection?: SortDirection, cursor?: string, pageSize?: number, userIdentity?: string
|
|
79
|
+
query(conditions?: EntityCondition<IBlobStorageEntry>, orderBy?: keyof Pick<IBlobStorageEntry, "dateCreated" | "dateModified">, orderByDirection?: SortDirection, cursor?: string, pageSize?: number, userIdentity?: string): Promise<IBlobStorageEntryList>;
|
|
83
80
|
}
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @twin.org/blob-storage-models - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.1](https://github.com/twinfoundation/blob-storage/compare/blob-storage-models-v0.0.2-next.0...blob-storage-models-v0.0.2-next.1) (2025-07-24)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add compression support ([67d239b](https://github.com/twinfoundation/blob-storage/commit/67d239bca8321bd90bf4ff93167c564130309730))
|
|
9
|
+
* additional encryption options on per item basis ([4b95a65](https://github.com/twinfoundation/blob-storage/commit/4b95a656d19e3b571cea905e36f29b679b13e1e8))
|
|
10
|
+
* remove includeNodeIdentity flag ([13bc334](https://github.com/twinfoundation/blob-storage/commit/13bc33445b179879688af3c98e8be8a5609d3f46))
|
|
11
|
+
* update dependencies ([56f0094](https://github.com/twinfoundation/blob-storage/commit/56f0094b68d8bd22864cd899ac1b61d95540f719))
|
|
12
|
+
* update to support fully qualified data type names ([3297d69](https://github.com/twinfoundation/blob-storage/commit/3297d69d332058b0f0141002087f56ba230620e1))
|
|
13
|
+
* update ts-to-schema generation ([03439c7](https://github.com/twinfoundation/blob-storage/commit/03439c726108bf645941290e41824c57a6a23de3))
|
|
14
|
+
* use shared store mechanism ([#12](https://github.com/twinfoundation/blob-storage/issues/12)) ([cae8110](https://github.com/twinfoundation/blob-storage/commit/cae8110681847a1ac4fcac968b8196694e49c320))
|
|
15
|
+
* use standard list json ld types ([d6bdfd6](https://github.com/twinfoundation/blob-storage/commit/d6bdfd68af47f70f3cc53658b4a12543497e1f48))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* Adding the optional flag to the entity ([#10](https://github.com/twinfoundation/blob-storage/issues/10)) ([626677e](https://github.com/twinfoundation/blob-storage/commit/626677e5730d23535a0eb1f36f8394d941ff2447))
|
|
21
|
+
* query params force coercion ([a5e547a](https://github.com/twinfoundation/blob-storage/commit/a5e547a775f8997cb04780938c7a9561ddb048d1))
|
|
22
|
+
|
|
3
23
|
## 0.0.1 (2025-07-04)
|
|
4
24
|
|
|
5
25
|
|
|
@@ -150,7 +150,7 @@ Not found error if the blob cannot be found.
|
|
|
150
150
|
|
|
151
151
|
### update()
|
|
152
152
|
|
|
153
|
-
> **update**(`id`, `encodingFormat?`, `fileExtension?`, `metadata?`, `userIdentity
|
|
153
|
+
> **update**(`id`, `encodingFormat?`, `fileExtension?`, `metadata?`, `userIdentity?`): `Promise`\<`void`\>
|
|
154
154
|
|
|
155
155
|
Update the blob with metadata.
|
|
156
156
|
|
|
@@ -186,12 +186,6 @@ Data for the custom metadata as JSON-LD.
|
|
|
186
186
|
|
|
187
187
|
The user identity to use with storage operations.
|
|
188
188
|
|
|
189
|
-
##### nodeIdentity?
|
|
190
|
-
|
|
191
|
-
`string`
|
|
192
|
-
|
|
193
|
-
The node identity to use with storage operations.
|
|
194
|
-
|
|
195
189
|
#### Returns
|
|
196
190
|
|
|
197
191
|
`Promise`\<`void`\>
|
|
@@ -206,7 +200,7 @@ Not found error if the blob cannot be found.
|
|
|
206
200
|
|
|
207
201
|
### remove()
|
|
208
202
|
|
|
209
|
-
> **remove**(`id`, `userIdentity
|
|
203
|
+
> **remove**(`id`, `userIdentity?`): `Promise`\<`void`\>
|
|
210
204
|
|
|
211
205
|
Remove the blob.
|
|
212
206
|
|
|
@@ -224,12 +218,6 @@ The id of the blob to remove in urn format.
|
|
|
224
218
|
|
|
225
219
|
The user identity to use with storage operations.
|
|
226
220
|
|
|
227
|
-
##### nodeIdentity?
|
|
228
|
-
|
|
229
|
-
`string`
|
|
230
|
-
|
|
231
|
-
The node identity to use with storage operations.
|
|
232
|
-
|
|
233
221
|
#### Returns
|
|
234
222
|
|
|
235
223
|
`Promise`\<`void`\>
|
|
@@ -244,7 +232,7 @@ Not found error if the blob cannot be found.
|
|
|
244
232
|
|
|
245
233
|
### query()
|
|
246
234
|
|
|
247
|
-
> **query**(`conditions?`, `orderBy?`, `orderByDirection?`, `cursor?`, `pageSize?`, `userIdentity
|
|
235
|
+
> **query**(`conditions?`, `orderBy?`, `orderByDirection?`, `cursor?`, `pageSize?`, `userIdentity?`): `Promise`\<[`IBlobStorageEntryList`](IBlobStorageEntryList.md)\>
|
|
248
236
|
|
|
249
237
|
Query all the blob storage entries which match the conditions.
|
|
250
238
|
|
|
@@ -286,12 +274,6 @@ The suggested number of entries to return in each chunk, in some scenarios can r
|
|
|
286
274
|
|
|
287
275
|
The user identity to use with storage operations.
|
|
288
276
|
|
|
289
|
-
##### nodeIdentity?
|
|
290
|
-
|
|
291
|
-
`string`
|
|
292
|
-
|
|
293
|
-
The node identity to use with storage operations.
|
|
294
|
-
|
|
295
277
|
#### Returns
|
|
296
278
|
|
|
297
279
|
`Promise`\<[`IBlobStorageEntryList`](IBlobStorageEntryList.md)\>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/blob-storage-models",
|
|
3
|
-
"version": "0.0.1",
|
|
3
|
+
"version": "0.0.2-next.1",
|
|
4
4
|
"description": "Models which define the structure of the blob storage contracts and connectors",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@twin.org/core": "
|
|
18
|
-
"@twin.org/data-core": "
|
|
19
|
-
"@twin.org/data-json-ld": "
|
|
20
|
-
"@twin.org/entity": "
|
|
21
|
-
"@twin.org/nameof": "
|
|
22
|
-
"@twin.org/standards-schema-org": "
|
|
23
|
-
"@twin.org/web": "
|
|
17
|
+
"@twin.org/core": "next",
|
|
18
|
+
"@twin.org/data-core": "next",
|
|
19
|
+
"@twin.org/data-json-ld": "next",
|
|
20
|
+
"@twin.org/entity": "next",
|
|
21
|
+
"@twin.org/nameof": "next",
|
|
22
|
+
"@twin.org/standards-schema-org": "next",
|
|
23
|
+
"@twin.org/web": "next"
|
|
24
24
|
},
|
|
25
25
|
"main": "./dist/cjs/index.cjs",
|
|
26
26
|
"module": "./dist/esm/index.mjs",
|