@twin.org/auditable-item-graph-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.
@@ -250,6 +250,10 @@ var properties$4 = {
250
250
  ],
251
251
  description: "JSON-LD Context."
252
252
  },
253
+ targetId: {
254
+ type: "string",
255
+ description: "The target vertex id the edge connects to."
256
+ },
253
257
  type: {
254
258
  type: "string",
255
259
  "const": "AuditableItemGraphEdge",
@@ -273,6 +277,7 @@ var properties$4 = {
273
277
  var required$4 = [
274
278
  "@context",
275
279
  "id",
280
+ "targetId",
276
281
  "type",
277
282
  "edgeRelationships"
278
283
  ];
@@ -248,6 +248,10 @@ var properties$4 = {
248
248
  ],
249
249
  description: "JSON-LD Context."
250
250
  },
251
+ targetId: {
252
+ type: "string",
253
+ description: "The target vertex id the edge connects to."
254
+ },
251
255
  type: {
252
256
  type: "string",
253
257
  "const": "AuditableItemGraphEdge",
@@ -271,6 +275,7 @@ var properties$4 = {
271
275
  var required$4 = [
272
276
  "@context",
273
277
  "id",
278
+ "targetId",
274
279
  "type",
275
280
  "edgeRelationships"
276
281
  ];
@@ -32,7 +32,7 @@ export interface IAuditableItemGraphComponent extends IComponent {
32
32
  resourceObject?: IJsonLdNodeObject;
33
33
  }[];
34
34
  edges?: {
35
- id: string;
35
+ targetId: string;
36
36
  edgeRelationships: string[];
37
37
  annotationObject?: IJsonLdNodeObject;
38
38
  }[];
@@ -64,6 +64,7 @@ export interface IAuditableItemGraphComponent extends IComponent {
64
64
  }[];
65
65
  edges?: {
66
66
  id: string;
67
+ targetId: string;
67
68
  edgeRelationships: string[];
68
69
  annotationObject?: IJsonLdNodeObject;
69
70
  }[];
@@ -14,6 +14,10 @@ export interface IAuditableItemGraphEdge extends IAuditableItemGraphAuditedEleme
14
14
  * The id of the element.
15
15
  */
16
16
  id: string;
17
+ /**
18
+ * The target vertex id the edge connects to.
19
+ */
20
+ targetId: string;
17
21
  /**
18
22
  * JSON-LD Type.
19
23
  */
@@ -17,6 +17,7 @@ export interface IAuditableItemGraphCreateRequest {
17
17
  aliases?: {
18
18
  id: string;
19
19
  aliasFormat?: string;
20
+ unique?: boolean;
20
21
  annotationObject?: IJsonLdNodeObject;
21
22
  }[];
22
23
  /**
@@ -30,7 +31,7 @@ export interface IAuditableItemGraphCreateRequest {
30
31
  * The edges connected to the vertex.
31
32
  */
32
33
  edges?: {
33
- id: string;
34
+ targetId: string;
34
35
  edgeRelationships: string[];
35
36
  annotationObject?: IJsonLdNodeObject;
36
37
  }[];
@@ -26,6 +26,7 @@ export interface IAuditableItemGraphUpdateRequest {
26
26
  aliases?: {
27
27
  id: string;
28
28
  aliasFormat?: string;
29
+ unique?: boolean;
29
30
  annotationObject?: IJsonLdNodeObject;
30
31
  }[];
31
32
  /**
@@ -40,6 +41,7 @@ export interface IAuditableItemGraphUpdateRequest {
40
41
  */
41
42
  edges?: {
42
43
  id: string;
44
+ targetId: string;
43
45
  edgeRelationships: string[];
44
46
  annotationObject?: IJsonLdNodeObject;
45
47
  }[];
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.5](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-models-v0.0.2-next.4...auditable-item-graph-models-v0.0.2-next.5) (2025-09-26)
4
+
5
+
6
+ ### Features
7
+
8
+ * update edges to use targetId instead of id ([6c5d0e3](https://github.com/twinfoundation/auditable-item-graph/commit/6c5d0e31b6e2ea74bfa2f3344e4be628e5f237af))
9
+
3
10
  ## [0.0.2-next.4](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-models-v0.0.2-next.3...auditable-item-graph-models-v0.0.2-next.4) (2025-09-24)
4
11
 
5
12
 
@@ -64,6 +64,14 @@ The id of the element.
64
64
 
65
65
  ***
66
66
 
67
+ ### targetId
68
+
69
+ > **targetId**: `string`
70
+
71
+ The target vertex id the edge connects to.
72
+
73
+ ***
74
+
67
75
  ### type
68
76
 
69
77
  > **type**: `"AuditableItemGraphEdge"`
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.4",
3
+ "version": "0.0.2-next.5",
4
4
  "description": "Models which define the structure of the auditable item graph connectors and services",
5
5
  "repository": {
6
6
  "type": "git",