@twin.org/blob-storage-models 0.0.2-next.4 → 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.
@@ -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 pageSize The suggested number of entries to return in each chunk, in some scenarios can return a different amount.
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, pageSize?: number, userIdentity?: string): Promise<IBlobStorageEntryList>;
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
- * The number of entries to return per page.
31
+ * Limit the number of entities to return.
32
32
  */
33
- pageSize?: number | string;
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,12 @@
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
+
3
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)
4
11
 
5
12
 
@@ -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?`, `pageSize?`, `userIdentity?`): `Promise`\<[`IBlobStorageEntryList`](IBlobStorageEntryList.md)\>
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
- ##### pageSize?
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
- #### pageSize?
43
+ #### limit?
44
44
 
45
- > `optional` **pageSize**: `string` \| `number`
45
+ > `optional` **limit**: `string`
46
46
 
47
- The number of entries to return per page.
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.4",
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",
@@ -54,5 +54,9 @@
54
54
  "models",
55
55
  "types",
56
56
  "schemas"
57
- ]
57
+ ],
58
+ "bugs": {
59
+ "url": "git+https://github.com/twinfoundation/blob-storage/issues"
60
+ },
61
+ "homepage": "https://twindev.org"
58
62
  }