@twin.org/auditable-item-graph-models 0.0.1-next.4 → 0.0.1-next.6

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.
Files changed (44) hide show
  1. package/dist/cjs/index.cjs +489 -165
  2. package/dist/esm/index.mjs +489 -165
  3. package/dist/types/index.d.ts +1 -0
  4. package/dist/types/models/IAuditableItemGraphAlias.d.ts +16 -3
  5. package/dist/types/models/IAuditableItemGraphAuditedElement.d.ts +6 -6
  6. package/dist/types/models/IAuditableItemGraphChangeset.d.ts +11 -2
  7. package/dist/types/models/IAuditableItemGraphComponent.d.ts +22 -40
  8. package/dist/types/models/IAuditableItemGraphCredential.d.ts +11 -2
  9. package/dist/types/models/IAuditableItemGraphEdge.d.ts +16 -3
  10. package/dist/types/models/IAuditableItemGraphPatchOperation.d.ts +26 -2
  11. package/dist/types/models/IAuditableItemGraphResource.d.ts +15 -2
  12. package/dist/types/models/IAuditableItemGraphVerification.d.ts +17 -3
  13. package/dist/types/models/IAuditableItemGraphVertex.d.ts +24 -2
  14. package/dist/types/models/IAuditableItemGraphVertexList.d.ts +23 -0
  15. package/dist/types/models/api/IAuditableItemGraphCreateRequest.d.ts +7 -7
  16. package/dist/types/models/api/IAuditableItemGraphGetRequest.d.ts +2 -2
  17. package/dist/types/models/api/IAuditableItemGraphGetResponse.d.ts +2 -13
  18. package/dist/types/models/api/IAuditableItemGraphListRequest.d.ts +6 -5
  19. package/dist/types/models/api/IAuditableItemGraphListResponse.d.ts +2 -12
  20. package/dist/types/models/api/IAuditableItemGraphUpdateRequest.d.ts +7 -7
  21. package/dist/types/models/auditableItemGraphTypes.d.ts +13 -9
  22. package/docs/changelog.md +1 -1
  23. package/docs/reference/index.md +1 -1
  24. package/docs/reference/interfaces/IAuditableItemGraphAlias.md +37 -25
  25. package/docs/reference/interfaces/IAuditableItemGraphAuditedElement.md +9 -9
  26. package/docs/reference/interfaces/IAuditableItemGraphChangeset.md +19 -3
  27. package/docs/reference/interfaces/IAuditableItemGraphComponent.md +13 -29
  28. package/docs/reference/interfaces/IAuditableItemGraphCreateRequest.md +3 -3
  29. package/docs/reference/interfaces/IAuditableItemGraphCredential.md +19 -3
  30. package/docs/reference/interfaces/IAuditableItemGraphEdge.md +33 -21
  31. package/docs/reference/interfaces/IAuditableItemGraphGetRequest.md +2 -2
  32. package/docs/reference/interfaces/IAuditableItemGraphGetResponse.md +4 -4
  33. package/docs/reference/interfaces/IAuditableItemGraphListRequest.md +5 -5
  34. package/docs/reference/interfaces/IAuditableItemGraphListResponse.md +3 -3
  35. package/docs/reference/interfaces/IAuditableItemGraphPatchOperation.md +46 -2
  36. package/docs/reference/interfaces/IAuditableItemGraphResource.md +30 -18
  37. package/docs/reference/interfaces/IAuditableItemGraphUpdateRequest.md +3 -3
  38. package/docs/reference/interfaces/IAuditableItemGraphVerification.md +30 -6
  39. package/docs/reference/interfaces/IAuditableItemGraphVertex.md +53 -13
  40. package/docs/reference/interfaces/IAuditableItemGraphVertexList.md +35 -0
  41. package/docs/reference/variables/AuditableItemGraphTypes.md +15 -9
  42. package/package.json +1 -1
  43. package/dist/types/models/IAuditableItemGraphMetadataElement.d.ts +0 -10
  44. package/docs/reference/type-aliases/JsonReturnType.md +0 -13
@@ -9,39 +9,43 @@ export declare const AuditableItemGraphTypes: {
9
9
  /**
10
10
  * Represents auditable item graph vertex.
11
11
  */
12
- readonly Vertex: "https://schema.twindev.org/aig/AuditableItemGraphVertex";
12
+ readonly Vertex: "AuditableItemGraphVertex";
13
13
  /**
14
14
  * Represents auditable item graph alias.
15
15
  */
16
- readonly Alias: "https://schema.twindev.org/aig/AuditableItemGraphAlias";
16
+ readonly Alias: "AuditableItemGraphAlias";
17
17
  /**
18
18
  * Represents auditable item graph resource.
19
19
  */
20
- readonly Resource: "https://schema.twindev.org/aig/AuditableItemGraphResource";
20
+ readonly Resource: "AuditableItemGraphResource";
21
21
  /**
22
22
  * Represents auditable item graph edge.
23
23
  */
24
- readonly Edge: "https://schema.twindev.org/aig/AuditableItemGraphEdge";
24
+ readonly Edge: "AuditableItemGraphEdge";
25
25
  /**
26
26
  * Represents auditable item graph changeset.
27
27
  */
28
- readonly Changeset: "https://schema.twindev.org/aig/AuditableItemGraphChangeset";
28
+ readonly Changeset: "AuditableItemGraphChangeset";
29
29
  /**
30
30
  * Represents patch operation.
31
31
  */
32
- readonly PatchOperation: "https://schema.twindev.org/aig/AuditableItemGraphPatchOperation";
32
+ readonly PatchOperation: "AuditableItemGraphPatchOperation";
33
33
  /**
34
34
  * Represents the immutable credential payload.
35
35
  */
36
- readonly Credential: "https://schema.twindev.org/aig/AuditableItemGraphPatchCredential";
36
+ readonly Credential: "AuditableItemGraphPatchCredential";
37
37
  /**
38
38
  * Represents auditable item stream verification.
39
39
  */
40
- readonly Verification: "https://schema.twindev.org/aig/AuditableItemGraphVerification";
40
+ readonly Verification: "AuditableItemGraphVerification";
41
41
  /**
42
42
  * Represents auditable item stream verification state.
43
43
  */
44
- readonly VerificationState: "https://schema.twindev.org/aig/AuditableItemGraphVerificationState";
44
+ readonly VerificationState: "AuditableItemGraphVerificationState";
45
+ /**
46
+ * Represents auditable item stream vertex list.
47
+ */
48
+ readonly VertexList: "AuditableItemGraphVertexList";
45
49
  };
46
50
  /**
47
51
  * The types of auditable item graph data.
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/auditable-item-graph-models - Changelog
2
2
 
3
- ## v0.0.1-next.4
3
+ ## v0.0.1-next.6
4
4
 
5
5
  - Initial Release
@@ -16,6 +16,7 @@
16
16
  - [IAuditableItemGraphResource](interfaces/IAuditableItemGraphResource.md)
17
17
  - [IAuditableItemGraphVerification](interfaces/IAuditableItemGraphVerification.md)
18
18
  - [IAuditableItemGraphVertex](interfaces/IAuditableItemGraphVertex.md)
19
+ - [IAuditableItemGraphVertexList](interfaces/IAuditableItemGraphVertexList.md)
19
20
  - [IAuditableItemGraphCreateRequest](interfaces/IAuditableItemGraphCreateRequest.md)
20
21
  - [IAuditableItemGraphGetRequest](interfaces/IAuditableItemGraphGetRequest.md)
21
22
  - [IAuditableItemGraphGetResponse](interfaces/IAuditableItemGraphGetResponse.md)
@@ -25,7 +26,6 @@
25
26
 
26
27
  ## Type Aliases
27
28
 
28
- - [JsonReturnType](type-aliases/JsonReturnType.md)
29
29
  - [AuditableItemGraphTypes](type-aliases/AuditableItemGraphTypes.md)
30
30
  - [AuditableItemGraphVerificationState](type-aliases/AuditableItemGraphVerificationState.md)
31
31
  - [VerifyDepth](type-aliases/VerifyDepth.md)
@@ -4,72 +4,84 @@ Interface describing an alias for a vertex.
4
4
 
5
5
  ## Extends
6
6
 
7
- - [`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).`IAuditableItemGraphMetadataElement`
7
+ - [`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md)
8
8
 
9
9
  ## Properties
10
10
 
11
- ### format?
11
+ ### @context
12
12
 
13
- > `optional` **format**: `string`
13
+ > **@context**: `"https://schema.twindev.org/aig/"` \| [`"https://schema.twindev.org/aig/"`, `...string[]`]
14
14
 
15
- The format of the id in the alias.
15
+ JSON-LD Context.
16
16
 
17
17
  ***
18
18
 
19
- ### id
19
+ ### type
20
20
 
21
- > **id**: `string`
21
+ > **type**: `"AuditableItemGraphAlias"`
22
22
 
23
- The id of the element.
23
+ JSON-LD Type.
24
24
 
25
- #### Inherited from
25
+ ***
26
26
 
27
- [`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`id`](IAuditableItemGraphAuditedElement.md#id)
27
+ ### aliasObject?
28
+
29
+ > `optional` **aliasObject**: `IJsonLdNodeObject`
30
+
31
+ The JSON-LD object for the alias.
28
32
 
29
33
  ***
30
34
 
31
- ### created
35
+ ### aliasFormat?
32
36
 
33
- > **created**: `number`
37
+ > `optional` **aliasFormat**: `string`
34
38
 
35
- The timestamp of when the element was created.
39
+ The format of the id in the alias.
40
+
41
+ ***
42
+
43
+ ### id
44
+
45
+ > **id**: `string`
46
+
47
+ The id of the element.
36
48
 
37
49
  #### Inherited from
38
50
 
39
- [`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`created`](IAuditableItemGraphAuditedElement.md#created)
51
+ [`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`id`](IAuditableItemGraphAuditedElement.md#id)
40
52
 
41
53
  ***
42
54
 
43
- ### updated?
55
+ ### dateCreated
44
56
 
45
- > `optional` **updated**: `number`
57
+ > **dateCreated**: `string`
46
58
 
47
- The timestamp of when the element was updated.
59
+ The date/time of when the element was created.
48
60
 
49
61
  #### Inherited from
50
62
 
51
- [`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`updated`](IAuditableItemGraphAuditedElement.md#updated)
63
+ [`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`dateCreated`](IAuditableItemGraphAuditedElement.md#datecreated)
52
64
 
53
65
  ***
54
66
 
55
- ### deleted?
67
+ ### dateModified?
56
68
 
57
- > `optional` **deleted**: `number`
69
+ > `optional` **dateModified**: `string`
58
70
 
59
- The timestamp of when the element was deleted, as we never actually remove items.
71
+ The date/time of when the element was modified.
60
72
 
61
73
  #### Inherited from
62
74
 
63
- [`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`deleted`](IAuditableItemGraphAuditedElement.md#deleted)
75
+ [`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`dateModified`](IAuditableItemGraphAuditedElement.md#datemodified)
64
76
 
65
77
  ***
66
78
 
67
- ### metadata?
79
+ ### dateDeleted?
68
80
 
69
- > `optional` **metadata**: `IJsonLdNodeObject`
81
+ > `optional` **dateDeleted**: `string`
70
82
 
71
- The metadata to associate with the element as JSON-LD.
83
+ The date/time of when the element was deleted, as we never actually remove items.
72
84
 
73
85
  #### Inherited from
74
86
 
75
- `IAuditableItemGraphMetadataElement.metadata`
87
+ [`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`dateDeleted`](IAuditableItemGraphAuditedElement.md#datedeleted)
@@ -18,24 +18,24 @@ The id of the element.
18
18
 
19
19
  ***
20
20
 
21
- ### created
21
+ ### dateCreated
22
22
 
23
- > **created**: `number`
23
+ > **dateCreated**: `string`
24
24
 
25
- The timestamp of when the element was created.
25
+ The date/time of when the element was created.
26
26
 
27
27
  ***
28
28
 
29
- ### updated?
29
+ ### dateModified?
30
30
 
31
- > `optional` **updated**: `number`
31
+ > `optional` **dateModified**: `string`
32
32
 
33
- The timestamp of when the element was updated.
33
+ The date/time of when the element was modified.
34
34
 
35
35
  ***
36
36
 
37
- ### deleted?
37
+ ### dateDeleted?
38
38
 
39
- > `optional` **deleted**: `number`
39
+ > `optional` **dateDeleted**: `string`
40
40
 
41
- The timestamp of when the element was deleted, as we never actually remove items.
41
+ The date/time of when the element was deleted, as we never actually remove items.
@@ -4,11 +4,27 @@ Interface describing a set of updates to the vertex.
4
4
 
5
5
  ## Properties
6
6
 
7
- ### created
7
+ ### @context
8
8
 
9
- > **created**: `number`
9
+ > **@context**: `"https://schema.twindev.org/aig/"` \| [`"https://schema.twindev.org/aig/"`, `...string[]`]
10
10
 
11
- The timestamp of when the changeset was created.
11
+ JSON-LD Context.
12
+
13
+ ***
14
+
15
+ ### type
16
+
17
+ > **type**: `"AuditableItemGraphChangeset"`
18
+
19
+ JSON-LD Type.
20
+
21
+ ***
22
+
23
+ ### dateCreated
24
+
25
+ > **dateCreated**: `string`
26
+
27
+ The date/time of when the changeset was created.
12
28
 
13
29
  ***
14
30
 
@@ -10,15 +10,15 @@ Interface describing an auditable item graph contract.
10
10
 
11
11
  ### create()
12
12
 
13
- > **create**(`metadata`?, `aliases`?, `resources`?, `edges`?, `userIdentity`?, `nodeIdentity`?): `Promise`\<`string`\>
13
+ > **create**(`vertexObject`?, `aliases`?, `resources`?, `edges`?, `userIdentity`?, `nodeIdentity`?): `Promise`\<`string`\>
14
14
 
15
15
  Create a new graph vertex.
16
16
 
17
17
  #### Parameters
18
18
 
19
- • **metadata?**: `IJsonLdNodeObject`
19
+ • **vertexObject?**: `IJsonLdNodeObject`
20
20
 
21
- The metadata for the vertex as JSON-LD.
21
+ The object for the vertex as JSON-LD.
22
22
 
23
23
  • **aliases?**: `object`[]
24
24
 
@@ -50,7 +50,7 @@ The id of the new graph item.
50
50
 
51
51
  ### update()
52
52
 
53
- > **update**(`id`, `metadata`?, `aliases`?, `resources`?, `edges`?, `userIdentity`?, `nodeIdentity`?): `Promise`\<`void`\>
53
+ > **update**(`id`, `vertexObject`?, `aliases`?, `resources`?, `edges`?, `userIdentity`?, `nodeIdentity`?): `Promise`\<`void`\>
54
54
 
55
55
  Update a graph vertex.
56
56
 
@@ -60,9 +60,9 @@ Update a graph vertex.
60
60
 
61
61
  The id of the vertex to update.
62
62
 
63
- • **metadata?**: `IJsonLdNodeObject`
63
+ • **vertexObject?**: `IJsonLdNodeObject`
64
64
 
65
- The metadata for the vertex as JSON-LD.
65
+ The object for the vertex as JSON-LD.
66
66
 
67
67
  • **aliases?**: `object`[]
68
68
 
@@ -94,14 +94,10 @@ Nothing.
94
94
 
95
95
  ### get()
96
96
 
97
- > **get**\<`T`\>(`id`, `options`?, `responseType`?): `Promise`\<[`JsonReturnType`](../type-aliases/JsonReturnType.md)\<`T`, [`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md) & `object`, `IJsonLdDocument`\>\>
97
+ > **get**(`id`, `options`?): `Promise`\<[`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md)\>
98
98
 
99
99
  Get a graph vertex.
100
100
 
101
- #### Type Parameters
102
-
103
- • **T** *extends* `"json"` \| `"jsonld"` = `"json"`
104
-
105
101
  #### Parameters
106
102
 
107
103
  • **id**: `string`
@@ -124,13 +120,9 @@ Whether to include the changesets of the vertex, defaults to false.
124
120
 
125
121
  How many signatures to verify, defaults to "none".
126
122
 
127
- • **responseType?**: `T`
128
-
129
- The response type to return, defaults to application/json.
130
-
131
123
  #### Returns
132
124
 
133
- `Promise`\<[`JsonReturnType`](../type-aliases/JsonReturnType.md)\<`T`, [`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md) & `object`, `IJsonLdDocument`\>\>
125
+ `Promise`\<[`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md)\>
134
126
 
135
127
  The vertex if found.
136
128
 
@@ -170,14 +162,10 @@ NotFoundError if the vertex is not found.
170
162
 
171
163
  ### query()
172
164
 
173
- > **query**\<`T`\>(`options`?, `orderBy`?, `orderByDirection`?, `properties`?, `cursor`?, `pageSize`?, `responseType`?): `Promise`\<[`JsonReturnType`](../type-aliases/JsonReturnType.md)\<`T`, `object`, `IJsonLdDocument`\>\>
165
+ > **query**(`options`?, `orderBy`?, `orderByDirection`?, `properties`?, `cursor`?, `pageSize`?): `Promise`\<[`IAuditableItemGraphVertexList`](IAuditableItemGraphVertexList.md)\>
174
166
 
175
167
  Query the graph for vertices.
176
168
 
177
- #### Type Parameters
178
-
179
- • **T** *extends* `"json"` \| `"jsonld"` = `"json"`
180
-
181
169
  #### Parameters
182
170
 
183
171
  • **options?**
@@ -192,9 +180,9 @@ The optional id to look for.
192
180
 
193
181
  Look in id, alias or both, defaults to both.
194
182
 
195
- • **orderBy?**: `"created"` \| `"updated"`
183
+ • **orderBy?**: `"dateCreated"` \| `"dateModified"`
196
184
 
197
- The order for the results, defaults to created.
185
+ The order for the results, defaults to dateCreated.
198
186
 
199
187
  • **orderByDirection?**: `SortDirection`
200
188
 
@@ -202,7 +190,7 @@ The direction for the order, defaults to descending.
202
190
 
203
191
  • **properties?**: keyof [`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md)[]
204
192
 
205
- The properties to return, if not provided defaults to id, created, aliases and metadata.
193
+ The properties to return, if not provided defaults to id, dateCreated, aliases and object.
206
194
 
207
195
  • **cursor?**: `string`
208
196
 
@@ -212,12 +200,8 @@ The cursor to request the next page of entities.
212
200
 
213
201
  The maximum number of entities in a page.
214
202
 
215
- • **responseType?**: `T`
216
-
217
- The response type to return, defaults to application/json.
218
-
219
203
  #### Returns
220
204
 
221
- `Promise`\<[`JsonReturnType`](../type-aliases/JsonReturnType.md)\<`T`, `object`, `IJsonLdDocument`\>\>
205
+ `Promise`\<[`IAuditableItemGraphVertexList`](IAuditableItemGraphVertexList.md)\>
222
206
 
223
207
  The entities, which can be partial if a limited keys list was provided.
@@ -10,11 +10,11 @@ Create an auditable item graph vertex.
10
10
 
11
11
  The data to be used in the vertex.
12
12
 
13
- #### metadata?
13
+ #### vertexObject?
14
14
 
15
- > `optional` **metadata**: `IJsonLdNodeObject`
15
+ > `optional` **vertexObject**: `IJsonLdNodeObject`
16
16
 
17
- The metadata to be used in the vertex as JSON-LD.
17
+ The object to be used in the vertex as JSON-LD.
18
18
 
19
19
  #### aliases?
20
20
 
@@ -4,11 +4,27 @@ The data stored immutably for the graph in a verifiable credential.
4
4
 
5
5
  ## Properties
6
6
 
7
- ### created
7
+ ### @context
8
8
 
9
- > **created**: `number`
9
+ > **@context**: `"https://schema.twindev.org/aig/"` \| [`"https://schema.twindev.org/aig/"`, `...string[]`]
10
10
 
11
- The timestamp of when the changeset was created.
11
+ JSON-LD Context.
12
+
13
+ ***
14
+
15
+ ### type
16
+
17
+ > **type**: `"AuditableItemGraphPatchCredential"`
18
+
19
+ JSON-LD Type.
20
+
21
+ ***
22
+
23
+ ### dateCreated
24
+
25
+ > **dateCreated**: `string`
26
+
27
+ The date/time of when the changeset was created.
12
28
 
13
29
  ***
14
30
 
@@ -4,7 +4,7 @@ Interface describing an edge between two vertices in an auditable item graph.
4
4
 
5
5
  ## Extends
6
6
 
7
- - [`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).`IAuditableItemGraphMetadataElement`
7
+ - [`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md)
8
8
 
9
9
  ## Properties
10
10
 
@@ -20,56 +20,68 @@ The id of the element.
20
20
 
21
21
  ***
22
22
 
23
- ### created
23
+ ### dateCreated
24
24
 
25
- > **created**: `number`
25
+ > **dateCreated**: `string`
26
26
 
27
- The timestamp of when the element was created.
27
+ The date/time of when the element was created.
28
28
 
29
29
  #### Inherited from
30
30
 
31
- [`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`created`](IAuditableItemGraphAuditedElement.md#created)
31
+ [`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`dateCreated`](IAuditableItemGraphAuditedElement.md#datecreated)
32
32
 
33
33
  ***
34
34
 
35
- ### updated?
35
+ ### dateModified?
36
36
 
37
- > `optional` **updated**: `number`
37
+ > `optional` **dateModified**: `string`
38
38
 
39
- The timestamp of when the element was updated.
39
+ The date/time of when the element was modified.
40
40
 
41
41
  #### Inherited from
42
42
 
43
- [`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`updated`](IAuditableItemGraphAuditedElement.md#updated)
43
+ [`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`dateModified`](IAuditableItemGraphAuditedElement.md#datemodified)
44
44
 
45
45
  ***
46
46
 
47
- ### deleted?
47
+ ### dateDeleted?
48
48
 
49
- > `optional` **deleted**: `number`
49
+ > `optional` **dateDeleted**: `string`
50
50
 
51
- The timestamp of when the element was deleted, as we never actually remove items.
51
+ The date/time of when the element was deleted, as we never actually remove items.
52
52
 
53
53
  #### Inherited from
54
54
 
55
- [`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`deleted`](IAuditableItemGraphAuditedElement.md#deleted)
55
+ [`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`dateDeleted`](IAuditableItemGraphAuditedElement.md#datedeleted)
56
56
 
57
57
  ***
58
58
 
59
- ### relationship
59
+ ### @context
60
60
 
61
- > **relationship**: `string`
61
+ > **@context**: `"https://schema.twindev.org/aig/"` \| [`"https://schema.twindev.org/aig/"`, `...string[]`]
62
62
 
63
- The relationship between the two vertices.
63
+ JSON-LD Context.
64
64
 
65
65
  ***
66
66
 
67
- ### metadata?
67
+ ### type
68
68
 
69
- > `optional` **metadata**: `IJsonLdNodeObject`
69
+ > **type**: `"AuditableItemGraphEdge"`
70
70
 
71
- The metadata to associate with the element as JSON-LD.
71
+ JSON-LD Type.
72
72
 
73
- #### Inherited from
73
+ ***
74
+
75
+ ### edgeObject?
76
+
77
+ > `optional` **edgeObject**: `IJsonLdNodeObject`
78
+
79
+ The JSON-LD object for the edge.
74
80
 
75
- `IAuditableItemGraphMetadataElement.metadata`
81
+ ***
82
+
83
+ ### edgeRelationship
84
+
85
+ > **edgeRelationship**: `string`
86
+
87
+ The relationship between the two vertices.
@@ -10,9 +10,9 @@ Get an auditable item graph vertex.
10
10
 
11
11
  The headers which can be used to determine the response data type.
12
12
 
13
- #### Accept
13
+ #### accept
14
14
 
15
- > **Accept**: `"application/json"` \| `"application/ld+json"`
15
+ > **accept**: `"application/json"` \| `"application/ld+json"`
16
16
 
17
17
  ***
18
18
 
@@ -10,14 +10,14 @@ Response to getting an auditable item graph vertex.
10
10
 
11
11
  The headers which can be used to determine the response data type.
12
12
 
13
- #### Content-Type
13
+ #### content-type
14
14
 
15
- > **Content-Type**: `"application/json"` \| `"application/ld+json"`
15
+ > **content-type**: `"application/json"` \| `"application/ld+json"`
16
16
 
17
17
  ***
18
18
 
19
19
  ### body
20
20
 
21
- > **body**: `IJsonLdDocument` \| [`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md) & `object`
21
+ > **body**: [`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md)
22
22
 
23
- The response body, if accept header is set to application/ld+json the return object is JSON-LD document.
23
+ The response body.
@@ -10,9 +10,9 @@ Get the a list of the vertices with matching ids or aliases.
10
10
 
11
11
  The headers which can be used to determine the response data type.
12
12
 
13
- #### Accept
13
+ #### accept
14
14
 
15
- > **Accept**: `"application/json"` \| `"application/ld+json"`
15
+ > **accept**: `"application/json"` \| `"application/ld+json"`
16
16
 
17
17
  ***
18
18
 
@@ -36,9 +36,9 @@ Which field to look in with the id, defaults to both.
36
36
 
37
37
  #### orderBy?
38
38
 
39
- > `optional` **orderBy**: `"created"` \| `"updated"`
39
+ > `optional` **orderBy**: `"dateCreated"` \| `"dateModified"`
40
40
 
41
- The order for the results, default to created.
41
+ The order for the results, default to dateCreated.
42
42
 
43
43
  #### orderByDirection?
44
44
 
@@ -50,7 +50,7 @@ The direction for the order, defaults to desc.
50
50
 
51
51
  > `optional` **properties**: `string`
52
52
 
53
- The properties to return as a comma separated list, defaults to "id,created,aliases,metadata".
53
+ The properties to return as a comma separated list, defaults to "id,dateCreated,aliases,vertexObject".
54
54
 
55
55
  #### cursor?
56
56
 
@@ -10,14 +10,14 @@ The response to getting the a list of the vertices with matching ids or aliases.
10
10
 
11
11
  The headers which can be used to determine the response data type.
12
12
 
13
- #### Content-Type
13
+ #### content-type
14
14
 
15
- > **Content-Type**: `"application/json"` \| `"application/ld+json"`
15
+ > **content-type**: `"application/json"` \| `"application/ld+json"`
16
16
 
17
17
  ***
18
18
 
19
19
  ### body
20
20
 
21
- > **body**: `IJsonLdDocument` \| `object`
21
+ > **body**: [`IAuditableItemGraphVertexList`](IAuditableItemGraphVertexList.md)
22
22
 
23
23
  The response payload.
@@ -2,6 +2,50 @@
2
2
 
3
3
  The patch operation for JSON diffs.
4
4
 
5
- ## Extends
5
+ ## Properties
6
6
 
7
- - `IPatchOperation`
7
+ ### @context
8
+
9
+ > **@context**: `"https://schema.twindev.org/aig/"` \| [`"https://schema.twindev.org/aig/"`, `...string[]`]
10
+
11
+ JSON-LD Context.
12
+
13
+ ***
14
+
15
+ ### type
16
+
17
+ > **type**: `"AuditableItemGraphPatchOperation"`
18
+
19
+ JSON-LD Type.
20
+
21
+ ***
22
+
23
+ ### patchOperation
24
+
25
+ > **patchOperation**: `"replace"` \| `"add"` \| `"remove"` \| `"copy"` \| `"move"` \| `"test"`
26
+
27
+ The operation that was performed on the item.
28
+
29
+ ***
30
+
31
+ ### patchPath
32
+
33
+ > **patchPath**: `string`
34
+
35
+ The path to the object that was changed.
36
+
37
+ ***
38
+
39
+ ### patchFrom?
40
+
41
+ > `optional` **patchFrom**: `string`
42
+
43
+ The path the value was copied or moved from.
44
+
45
+ ***
46
+
47
+ ### patchValue?
48
+
49
+ > `optional` **patchValue**: `unknown`
50
+
51
+ The value to add.