@twin.org/blob-storage-models 0.0.2-next.3 → 0.0.2-next.5
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/types/models/IBlobStorageComponent.d.ts +2 -2
- package/dist/types/models/api/IBlobStorageListRequest.d.ts +2 -2
- package/docs/changelog.md +14 -0
- package/docs/reference/interfaces/IBlobStorageComponent.md +10 -2
- package/docs/reference/interfaces/IBlobStorageConnector.md +8 -0
- package/docs/reference/interfaces/IBlobStorageListRequest.md +3 -3
- package/package.json +21 -2
|
@@ -71,10 +71,10 @@ export interface IBlobStorageComponent extends IComponent {
|
|
|
71
71
|
* @param orderBy The order for the results, defaults to created.
|
|
72
72
|
* @param orderByDirection The direction for the order, defaults to descending.
|
|
73
73
|
* @param cursor The cursor to request the next page of entries.
|
|
74
|
-
* @param
|
|
74
|
+
* @param limit The suggested number of entries to return in each chunk, in some scenarios can return a different amount.
|
|
75
75
|
* @param userIdentity The user identity to use with storage operations.
|
|
76
76
|
* @returns All the entries for the storage matching the conditions,
|
|
77
77
|
* and a cursor which can be used to request more entities.
|
|
78
78
|
*/
|
|
79
|
-
query(conditions?: EntityCondition<IBlobStorageEntry>, orderBy?: keyof Pick<IBlobStorageEntry, "dateCreated" | "dateModified">, orderByDirection?: SortDirection, cursor?: string,
|
|
79
|
+
query(conditions?: EntityCondition<IBlobStorageEntry>, orderBy?: keyof Pick<IBlobStorageEntry, "dateCreated" | "dateModified">, orderByDirection?: SortDirection, cursor?: string, limit?: number, userIdentity?: string): Promise<IBlobStorageEntryList>;
|
|
80
80
|
}
|
|
@@ -28,9 +28,9 @@ export interface IBlobStorageListRequest {
|
|
|
28
28
|
*/
|
|
29
29
|
orderByDirection?: SortDirection;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Limit the number of entities to return.
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
limit?: string;
|
|
34
34
|
/**
|
|
35
35
|
* The cursor to get next chunk of data, returned in previous response.
|
|
36
36
|
*/
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @twin.org/blob-storage-models - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.5](https://github.com/twinfoundation/blob-storage/compare/blob-storage-models-v0.0.2-next.4...blob-storage-models-v0.0.2-next.5) (2025-10-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add validate-locales ([f20fcec](https://github.com/twinfoundation/blob-storage/commit/f20fceced91e39a0c9edb770b2e43ce944c92f3c))
|
|
9
|
+
|
|
10
|
+
## [0.0.2-next.4](https://github.com/twinfoundation/blob-storage/compare/blob-storage-models-v0.0.2-next.3...blob-storage-models-v0.0.2-next.4) (2025-10-02)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Miscellaneous Chores
|
|
14
|
+
|
|
15
|
+
* **blob-storage-models:** Synchronize repo versions
|
|
16
|
+
|
|
3
17
|
## [0.0.2-next.3](https://github.com/twinfoundation/blob-storage/compare/blob-storage-models-v0.0.2-next.2...blob-storage-models-v0.0.2-next.3) (2025-08-29)
|
|
4
18
|
|
|
5
19
|
|
|
@@ -6,6 +6,14 @@ Interface describing an blob storage component.
|
|
|
6
6
|
|
|
7
7
|
- `IComponent`
|
|
8
8
|
|
|
9
|
+
## Indexable
|
|
10
|
+
|
|
11
|
+
\[`key`: `string`\]: `any`
|
|
12
|
+
|
|
13
|
+
All methods are optional, so we introduce an index signature to allow
|
|
14
|
+
any additional properties or methods, which removes the TypeScript error where
|
|
15
|
+
the class has no properties in common with the type.
|
|
16
|
+
|
|
9
17
|
## Methods
|
|
10
18
|
|
|
11
19
|
### create()
|
|
@@ -232,7 +240,7 @@ Not found error if the blob cannot be found.
|
|
|
232
240
|
|
|
233
241
|
### query()
|
|
234
242
|
|
|
235
|
-
> **query**(`conditions?`, `orderBy?`, `orderByDirection?`, `cursor?`, `
|
|
243
|
+
> **query**(`conditions?`, `orderBy?`, `orderByDirection?`, `cursor?`, `limit?`, `userIdentity?`): `Promise`\<[`IBlobStorageEntryList`](IBlobStorageEntryList.md)\>
|
|
236
244
|
|
|
237
245
|
Query all the blob storage entries which match the conditions.
|
|
238
246
|
|
|
@@ -262,7 +270,7 @@ The direction for the order, defaults to descending.
|
|
|
262
270
|
|
|
263
271
|
The cursor to request the next page of entries.
|
|
264
272
|
|
|
265
|
-
#####
|
|
273
|
+
##### limit?
|
|
266
274
|
|
|
267
275
|
`number`
|
|
268
276
|
|
|
@@ -6,6 +6,14 @@ Interface describing an blob storage connector.
|
|
|
6
6
|
|
|
7
7
|
- `IComponent`
|
|
8
8
|
|
|
9
|
+
## Indexable
|
|
10
|
+
|
|
11
|
+
\[`key`: `string`\]: `any`
|
|
12
|
+
|
|
13
|
+
All methods are optional, so we introduce an index signature to allow
|
|
14
|
+
any additional properties or methods, which removes the TypeScript error where
|
|
15
|
+
the class has no properties in common with the type.
|
|
16
|
+
|
|
9
17
|
## Methods
|
|
10
18
|
|
|
11
19
|
### set()
|
|
@@ -40,11 +40,11 @@ The order for the results, default to created.
|
|
|
40
40
|
|
|
41
41
|
The direction for the order, defaults to desc.
|
|
42
42
|
|
|
43
|
-
####
|
|
43
|
+
#### limit?
|
|
44
44
|
|
|
45
|
-
> `optional` **
|
|
45
|
+
> `optional` **limit**: `string`
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
Limit the number of entities to return.
|
|
48
48
|
|
|
49
49
|
#### cursor?
|
|
50
50
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/blob-storage-models",
|
|
3
|
-
"version": "0.0.2-next.
|
|
3
|
+
"version": "0.0.2-next.5",
|
|
4
4
|
"description": "Models which define the structure of the blob storage contracts and connectors",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -39,5 +39,24 @@
|
|
|
39
39
|
"dist/types",
|
|
40
40
|
"locales",
|
|
41
41
|
"docs"
|
|
42
|
-
]
|
|
42
|
+
],
|
|
43
|
+
"keywords": [
|
|
44
|
+
"twin",
|
|
45
|
+
"trade",
|
|
46
|
+
"iota",
|
|
47
|
+
"framework",
|
|
48
|
+
"blockchain",
|
|
49
|
+
"blob-storage",
|
|
50
|
+
"blob",
|
|
51
|
+
"storage",
|
|
52
|
+
"files",
|
|
53
|
+
"binary",
|
|
54
|
+
"models",
|
|
55
|
+
"types",
|
|
56
|
+
"schemas"
|
|
57
|
+
],
|
|
58
|
+
"bugs": {
|
|
59
|
+
"url": "git+https://github.com/twinfoundation/blob-storage/issues"
|
|
60
|
+
},
|
|
61
|
+
"homepage": "https://twindev.org"
|
|
43
62
|
}
|