@twin.org/auditable-item-graph-models 0.0.1-next.32 → 0.0.1-next.34

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.
@@ -170,7 +170,7 @@ var required$5 = [
170
170
  "patches"
171
171
  ];
172
172
  var additionalProperties$5 = false;
173
- var description$5 = "Interface describing a set of updates to the vertex.";
173
+ var description$5 = "Interface describing a set of changes to the vertex.";
174
174
  var AuditableItemGraphChangesetSchema = {
175
175
  type: type$5,
176
176
  properties: properties$5,
@@ -228,16 +228,19 @@ var properties$4 = {
228
228
  $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject",
229
229
  description: "The JSON-LD annotation object for the edge."
230
230
  },
231
- edgeRelationship: {
232
- type: "string",
233
- description: "The relationship between the two vertices."
231
+ edgeRelationships: {
232
+ type: "array",
233
+ items: {
234
+ type: "string"
235
+ },
236
+ description: "The relationships between the two vertices."
234
237
  }
235
238
  };
236
239
  var required$4 = [
237
240
  "@context",
238
241
  "id",
239
242
  "type",
240
- "edgeRelationship"
243
+ "edgeRelationships"
241
244
  ];
242
245
  var additionalProperties$4 = false;
243
246
  var description$4 = "Interface describing an edge between two vertices in an auditable item graph.";
@@ -168,7 +168,7 @@ var required$5 = [
168
168
  "patches"
169
169
  ];
170
170
  var additionalProperties$5 = false;
171
- var description$5 = "Interface describing a set of updates to the vertex.";
171
+ var description$5 = "Interface describing a set of changes to the vertex.";
172
172
  var AuditableItemGraphChangesetSchema = {
173
173
  type: type$5,
174
174
  properties: properties$5,
@@ -226,16 +226,19 @@ var properties$4 = {
226
226
  $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject",
227
227
  description: "The JSON-LD annotation object for the edge."
228
228
  },
229
- edgeRelationship: {
230
- type: "string",
231
- description: "The relationship between the two vertices."
229
+ edgeRelationships: {
230
+ type: "array",
231
+ items: {
232
+ type: "string"
233
+ },
234
+ description: "The relationships between the two vertices."
232
235
  }
233
236
  };
234
237
  var required$4 = [
235
238
  "@context",
236
239
  "id",
237
240
  "type",
238
- "edgeRelationship"
241
+ "edgeRelationships"
239
242
  ];
240
243
  var additionalProperties$4 = false;
241
244
  var description$4 = "Interface describing an edge between two vertices in an auditable item graph.";
@@ -4,7 +4,7 @@ import type { AuditableItemGraphContexts } from "./auditableItemGraphContexts";
4
4
  import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes";
5
5
  import type { IAuditableItemGraphPatchOperation } from "./IAuditableItemGraphPatchOperation";
6
6
  /**
7
- * Interface describing a set of updates to the vertex.
7
+ * Interface describing a set of changes to the vertex.
8
8
  */
9
9
  export interface IAuditableItemGraphChangeset {
10
10
  /**
@@ -32,7 +32,7 @@ export interface IAuditableItemGraphComponent extends IComponent {
32
32
  }[];
33
33
  edges?: {
34
34
  id: string;
35
- edgeRelationship: string;
35
+ edgeRelationships: string[];
36
36
  annotationObject?: IJsonLdNodeObject;
37
37
  }[];
38
38
  }, userIdentity?: string, nodeIdentity?: string): Promise<string>;
@@ -62,7 +62,7 @@ export interface IAuditableItemGraphComponent extends IComponent {
62
62
  }[];
63
63
  edges?: {
64
64
  id: string;
65
- edgeRelationship: string;
65
+ edgeRelationships: string[];
66
66
  annotationObject?: IJsonLdNodeObject;
67
67
  }[];
68
68
  }, userIdentity?: string, nodeIdentity?: string): Promise<void>;
@@ -23,7 +23,7 @@ export interface IAuditableItemGraphEdge extends IAuditableItemGraphAuditedEleme
23
23
  */
24
24
  annotationObject?: IJsonLdNodeObject;
25
25
  /**
26
- * The relationship between the two vertices.
26
+ * The relationships between the two vertices.
27
27
  */
28
- edgeRelationship: string;
28
+ edgeRelationships: string[];
29
29
  }
@@ -31,7 +31,7 @@ export interface IAuditableItemGraphCreateRequest {
31
31
  */
32
32
  edges?: {
33
33
  id: string;
34
- edgeRelationship: string;
34
+ edgeRelationships: string[];
35
35
  annotationObject?: IJsonLdNodeObject;
36
36
  }[];
37
37
  };
@@ -40,7 +40,7 @@ export interface IAuditableItemGraphUpdateRequest {
40
40
  */
41
41
  edges?: {
42
42
  id: string;
43
- edgeRelationship: string;
43
+ edgeRelationships: string[];
44
44
  annotationObject?: IJsonLdNodeObject;
45
45
  }[];
46
46
  };
package/docs/changelog.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @twin.org/auditable-item-graph-models - Changelog
2
2
 
3
- ## v0.0.1-next.32
3
+ ## [0.0.1-next.34](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-models-v0.0.1-next.33...auditable-item-graph-models-v0.0.1-next.34) (2025-03-28)
4
+
5
+
6
+ ### Features
7
+
8
+ * improve comments ([97f311a](https://github.com/twinfoundation/auditable-item-graph/commit/97f311a9cc4353b5020a48a44420c97a2fa0c8d7))
9
+
10
+ ## v0.0.1-next.33
4
11
 
5
12
  - Initial Release
@@ -1,6 +1,6 @@
1
1
  # Interface: IAuditableItemGraphChangeset
2
2
 
3
- Interface describing a set of updates to the vertex.
3
+ Interface describing a set of changes to the vertex.
4
4
 
5
5
  ## Properties
6
6
 
@@ -80,8 +80,8 @@ The JSON-LD annotation object for the edge.
80
80
 
81
81
  ***
82
82
 
83
- ### edgeRelationship
83
+ ### edgeRelationships
84
84
 
85
- > **edgeRelationship**: `string`
85
+ > **edgeRelationships**: `string`[]
86
86
 
87
- The relationship between the two vertices.
87
+ The relationships between the two vertices.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/auditable-item-graph-models",
3
- "version": "0.0.1-next.32",
3
+ "version": "0.0.1-next.34",
4
4
  "description": "Models which define the structure of the auditable item graph connectors and services",
5
5
  "repository": {
6
6
  "type": "git",