@twin.org/auditable-item-graph-models 0.0.2-next.7 → 0.0.2-next.8

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.
@@ -103,8 +103,8 @@ export interface IAuditableItemGraphComponent extends IComponent {
103
103
  * @param orderBy The order for the results, defaults to dateCreated.
104
104
  * @param orderByDirection The direction for the order, defaults to descending.
105
105
  * @param properties The properties to return, if not provided defaults to id, dateCreated, aliases and object.
106
- * @param cursor The cursor to request the next page of entities.
107
- * @param pageSize The maximum number of entities in a page.
106
+ * @param cursor The cursor to request the next chunk of entities.
107
+ * @param limit Limit the number of entities to return.
108
108
  * @returns The entities, which can be partial if a limited keys list was provided.
109
109
  */
110
110
  query(options?: {
@@ -112,5 +112,5 @@ export interface IAuditableItemGraphComponent extends IComponent {
112
112
  idMode?: "id" | "alias" | "both";
113
113
  idExact?: boolean;
114
114
  resourceTypes?: string[];
115
- }, conditions?: IComparator[], orderBy?: keyof Pick<IAuditableItemGraphVertex, "dateCreated" | "dateModified">, orderByDirection?: SortDirection, properties?: (keyof IAuditableItemGraphVertex)[], cursor?: string, pageSize?: number): Promise<IAuditableItemGraphVertexList>;
115
+ }, conditions?: IComparator[], orderBy?: keyof Pick<IAuditableItemGraphVertex, "dateCreated" | "dateModified">, orderByDirection?: SortDirection, properties?: (keyof IAuditableItemGraphVertex)[], cursor?: string, limit?: number): Promise<IAuditableItemGraphVertexList>;
116
116
  }
@@ -52,8 +52,8 @@ export interface IAuditableItemGraphListRequest {
52
52
  */
53
53
  cursor?: string;
54
54
  /**
55
- * The maximum number of entities in a page.
55
+ * Limit the number of entities to return.
56
56
  */
57
- pageSize?: number | string;
57
+ limit?: string;
58
58
  };
59
59
  }
package/docs/changelog.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @twin.org/auditable-item-graph-models - Changelog
2
2
 
3
+ ## [0.0.2-next.8](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-models-v0.0.2-next.7...auditable-item-graph-models-v0.0.2-next.8) (2025-10-09)
4
+
5
+
6
+ ### Features
7
+
8
+ * add validate-locales ([e76e6f6](https://github.com/twinfoundation/auditable-item-graph/commit/e76e6f6b3ec9c447a04315d353442e32233601d3))
9
+
3
10
  ## [0.0.2-next.7](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-models-v0.0.2-next.6...auditable-item-graph-models-v0.0.2-next.7) (2025-09-29)
4
11
 
5
12
 
@@ -6,6 +6,14 @@ Interface describing an auditable item graph contract.
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()
@@ -208,7 +216,7 @@ NotFoundError if the vertex is not found.
208
216
 
209
217
  ### query()
210
218
 
211
- > **query**(`options?`, `conditions?`, `orderBy?`, `orderByDirection?`, `properties?`, `cursor?`, `pageSize?`): `Promise`\<[`IAuditableItemGraphVertexList`](IAuditableItemGraphVertexList.md)\>
219
+ > **query**(`options?`, `conditions?`, `orderBy?`, `orderByDirection?`, `properties?`, `cursor?`, `limit?`): `Promise`\<[`IAuditableItemGraphVertexList`](IAuditableItemGraphVertexList.md)\>
212
220
 
213
221
  Query the graph for vertices.
214
222
 
@@ -270,13 +278,13 @@ The properties to return, if not provided defaults to id, dateCreated, aliases a
270
278
 
271
279
  `string`
272
280
 
273
- The cursor to request the next page of entities.
281
+ The cursor to request the next chunk of entities.
274
282
 
275
- ##### pageSize?
283
+ ##### limit?
276
284
 
277
285
  `number`
278
286
 
279
- The maximum number of entities in a page.
287
+ Limit the number of entities to return.
280
288
 
281
289
  #### Returns
282
290
 
@@ -76,8 +76,8 @@ The properties to return as a comma separated list, defaults to "id,dateCreated,
76
76
 
77
77
  The optional cursor to get next chunk.
78
78
 
79
- #### pageSize?
79
+ #### limit?
80
80
 
81
- > `optional` **pageSize**: `string` \| `number`
81
+ > `optional` **limit**: `string`
82
82
 
83
- The maximum number of entities in a page.
83
+ Limit the number of entities to return.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/auditable-item-graph-models",
3
- "version": "0.0.2-next.7",
3
+ "version": "0.0.2-next.8",
4
4
  "description": "Models which define the structure of the auditable item graph connectors and services",
5
5
  "repository": {
6
6
  "type": "git",
@@ -40,5 +40,20 @@
40
40
  "dist/types",
41
41
  "locales",
42
42
  "docs"
43
- ]
43
+ ],
44
+ "keywords": [
45
+ "twin",
46
+ "trade",
47
+ "iota",
48
+ "framework",
49
+ "blockchain",
50
+ "auditable-item-graph",
51
+ "models",
52
+ "types",
53
+ "schemas"
54
+ ],
55
+ "bugs": {
56
+ "url": "git+https://github.com/twinfoundation/auditable-item-graph/issues"
57
+ },
58
+ "homepage": "https://twindev.org"
44
59
  }