@twin.org/auditable-item-graph-models 0.0.2-next.6 → 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.
@@ -276,7 +276,6 @@ var properties$4 = {
276
276
  };
277
277
  var required$4 = [
278
278
  "@context",
279
- "id",
280
279
  "targetId",
281
280
  "type",
282
281
  "edgeRelationships"
@@ -274,7 +274,6 @@ var properties$4 = {
274
274
  };
275
275
  var required$4 = [
276
276
  "@context",
277
- "id",
278
277
  "targetId",
279
278
  "type",
280
279
  "edgeRelationships"
@@ -63,7 +63,7 @@ export interface IAuditableItemGraphComponent extends IComponent {
63
63
  resourceObject?: IJsonLdNodeObject;
64
64
  }[];
65
65
  edges?: {
66
- id: string;
66
+ id?: string;
67
67
  targetId: string;
68
68
  edgeRelationships: string[];
69
69
  annotationObject?: IJsonLdNodeObject;
@@ -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
  }
@@ -13,7 +13,7 @@ export interface IAuditableItemGraphEdge extends IAuditableItemGraphAuditedEleme
13
13
  /**
14
14
  * The id of the element.
15
15
  */
16
- id: string;
16
+ id?: string;
17
17
  /**
18
18
  * The target vertex id the edge connects to.
19
19
  */
@@ -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
  }
@@ -40,7 +40,7 @@ export interface IAuditableItemGraphUpdateRequest {
40
40
  * The edges connected to the vertex.
41
41
  */
42
42
  edges?: {
43
- id: string;
43
+ id?: string;
44
44
  targetId: string;
45
45
  edgeRelationships: string[];
46
46
  annotationObject?: IJsonLdNodeObject;
package/docs/changelog.md CHANGED
@@ -1,5 +1,19 @@
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
+
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)
11
+
12
+
13
+ ### Features
14
+
15
+ * id optional in edge updates ([6b63fe3](https://github.com/twinfoundation/auditable-item-graph/commit/6b63fe34553104843ae15aa5066775f5872859e9))
16
+
3
17
  ## [0.0.2-next.6](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-models-v0.0.2-next.5...auditable-item-graph-models-v0.0.2-next.6) (2025-09-29)
4
18
 
5
19
 
@@ -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
 
@@ -52,9 +52,9 @@ JSON-LD Context.
52
52
 
53
53
  ***
54
54
 
55
- ### id
55
+ ### id?
56
56
 
57
- > **id**: `string`
57
+ > `optional` **id**: `string`
58
58
 
59
59
  The id of the element.
60
60
 
@@ -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.6",
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
  }