@twin.org/auditable-item-graph-models 0.0.3-next.9 → 0.9.0-next.2
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.
- package/README.md +3 -1
- package/dist/es/dataTypes/auditableItemGraphDataTypes.js +47 -43
- package/dist/es/dataTypes/auditableItemGraphDataTypes.js.map +1 -1
- package/dist/es/index.js +11 -0
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/IAuditableItemGraphAlias.js.map +1 -1
- package/dist/es/models/IAuditableItemGraphAuditedElement.js.map +1 -1
- package/dist/es/models/IAuditableItemGraphChangeset.js.map +1 -1
- package/dist/es/models/IAuditableItemGraphChangesetList.js.map +1 -1
- package/dist/es/models/IAuditableItemGraphComponent.js.map +1 -1
- package/dist/es/models/IAuditableItemGraphEdge.js.map +1 -1
- package/dist/es/models/IAuditableItemGraphListPatch.js +2 -0
- package/dist/es/models/IAuditableItemGraphListPatch.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphPartialVertex.js +2 -0
- package/dist/es/models/IAuditableItemGraphPartialVertex.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphPatchOperation.js.map +1 -1
- package/dist/es/models/IAuditableItemGraphResource.js.map +1 -1
- package/dist/es/models/IAuditableItemGraphVertex.js.map +1 -1
- package/dist/es/models/IAuditableItemGraphVertexList.js.map +1 -1
- package/dist/es/models/IAuditableItemGraphVertexVersionList.js +2 -0
- package/dist/es/models/IAuditableItemGraphVertexVersionList.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphCreateRequest.js.map +1 -1
- package/dist/es/models/api/IAuditableItemGraphListRequest.js.map +1 -1
- package/dist/es/models/api/IAuditableItemGraphRemoveProofRequest.js +4 -0
- package/dist/es/models/api/IAuditableItemGraphRemoveProofRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphUpdatePartialRequest.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphUpdatePartialRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphUpdateRequest.js.map +1 -1
- package/dist/es/models/api/IAuditableItemGraphVersionGetRequest.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphVersionGetRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphVersionGetResponse.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphVersionGetResponse.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphVersionListRequest.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphVersionListRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphVersionListResponse.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphVersionListResponse.js.map +1 -0
- package/dist/es/models/auditableItemGraphMetricIds.js +69 -0
- package/dist/es/models/auditableItemGraphMetricIds.js.map +1 -0
- package/dist/es/models/auditableItemGraphMetrics.js +82 -0
- package/dist/es/models/auditableItemGraphMetrics.js.map +1 -0
- package/dist/es/models/auditableItemGraphTypes.js +13 -1
- package/dist/es/models/auditableItemGraphTypes.js.map +1 -1
- package/dist/es/schemas/AuditableItemGraphAlias.json +18 -25
- package/dist/es/schemas/AuditableItemGraphAuditedElement.json +25 -0
- package/dist/es/schemas/AuditableItemGraphChangeset.json +14 -13
- package/dist/es/schemas/AuditableItemGraphEdge.json +15 -26
- package/dist/es/schemas/AuditableItemGraphListPatch.json +33 -0
- package/dist/es/schemas/AuditableItemGraphPartialVertex.json +110 -0
- package/dist/es/schemas/AuditableItemGraphPatchOperation.json +27 -19
- package/dist/es/schemas/AuditableItemGraphResource.json +9 -24
- package/dist/es/schemas/AuditableItemGraphVertex.json +39 -29
- package/dist/es/schemas/AuditableItemGraphVertexList.json +17 -20
- package/dist/types/index.d.ts +11 -0
- package/dist/types/models/IAuditableItemGraphAlias.d.ts +8 -3
- package/dist/types/models/IAuditableItemGraphAuditedElement.d.ts +3 -3
- package/dist/types/models/IAuditableItemGraphChangeset.d.ts +11 -5
- package/dist/types/models/IAuditableItemGraphChangesetList.d.ts +1 -1
- package/dist/types/models/IAuditableItemGraphComponent.d.ts +43 -47
- package/dist/types/models/IAuditableItemGraphEdge.d.ts +4 -4
- package/dist/types/models/IAuditableItemGraphListPatch.d.ts +18 -0
- package/dist/types/models/IAuditableItemGraphPartialVertex.d.ts +45 -0
- package/dist/types/models/IAuditableItemGraphPatchOperation.d.ts +4 -4
- package/dist/types/models/IAuditableItemGraphResource.d.ts +2 -2
- package/dist/types/models/IAuditableItemGraphVertex.d.ts +12 -6
- package/dist/types/models/IAuditableItemGraphVertexList.d.ts +1 -1
- package/dist/types/models/IAuditableItemGraphVertexVersionList.d.ts +29 -0
- package/dist/types/models/api/IAuditableItemGraphCreateRequest.d.ts +2 -31
- package/dist/types/models/api/IAuditableItemGraphListRequest.d.ts +1 -1
- package/dist/types/models/api/IAuditableItemGraphRemoveProofRequest.d.ts +14 -0
- package/dist/types/models/api/IAuditableItemGraphUpdatePartialRequest.d.ts +20 -0
- package/dist/types/models/api/IAuditableItemGraphUpdateRequest.d.ts +4 -34
- package/dist/types/models/api/IAuditableItemGraphVersionGetRequest.d.ts +25 -0
- package/dist/types/models/api/IAuditableItemGraphVersionGetResponse.d.ts +17 -0
- package/dist/types/models/api/IAuditableItemGraphVersionListRequest.d.ts +34 -0
- package/dist/types/models/api/IAuditableItemGraphVersionListResponse.d.ts +17 -0
- package/dist/types/models/auditableItemGraphMetricIds.d.ts +69 -0
- package/dist/types/models/auditableItemGraphMetrics.d.ts +5 -0
- package/dist/types/models/auditableItemGraphTypes.d.ts +12 -0
- package/docs/changelog.md +270 -81
- package/docs/examples.md +22 -1
- package/docs/reference/classes/AuditableItemGraphDataTypes.md +1 -1
- package/docs/reference/index.md +12 -0
- package/docs/reference/interfaces/IAuditableItemGraphAlias.md +22 -19
- package/docs/reference/interfaces/IAuditableItemGraphAuditedElement.md +8 -11
- package/docs/reference/interfaces/IAuditableItemGraphChangeset.md +21 -17
- package/docs/reference/interfaces/IAuditableItemGraphChangesetGetRequest.md +6 -6
- package/docs/reference/interfaces/IAuditableItemGraphChangesetGetResponse.md +3 -3
- package/docs/reference/interfaces/IAuditableItemGraphChangesetList.md +3 -4
- package/docs/reference/interfaces/IAuditableItemGraphChangesetListRequest.md +8 -8
- package/docs/reference/interfaces/IAuditableItemGraphChangesetListResponse.md +4 -4
- package/docs/reference/interfaces/IAuditableItemGraphComponent.md +109 -59
- package/docs/reference/interfaces/IAuditableItemGraphCreateRequest.md +2 -26
- package/docs/reference/interfaces/IAuditableItemGraphEdge.md +15 -21
- package/docs/reference/interfaces/IAuditableItemGraphEventBusVertexCreated.md +1 -1
- package/docs/reference/interfaces/IAuditableItemGraphEventBusVertexUpdated.md +2 -2
- package/docs/reference/interfaces/IAuditableItemGraphGetRequest.md +7 -7
- package/docs/reference/interfaces/IAuditableItemGraphGetResponse.md +3 -3
- package/docs/reference/interfaces/IAuditableItemGraphListPatch.md +25 -0
- package/docs/reference/interfaces/IAuditableItemGraphListRequest.md +15 -15
- package/docs/reference/interfaces/IAuditableItemGraphListResponse.md +4 -4
- package/docs/reference/interfaces/IAuditableItemGraphPartialVertex.md +149 -0
- package/docs/reference/interfaces/IAuditableItemGraphPatchOperation.md +9 -13
- package/docs/reference/interfaces/IAuditableItemGraphRemoveProofRequest.md +17 -0
- package/docs/reference/interfaces/IAuditableItemGraphResource.md +13 -17
- package/docs/reference/interfaces/IAuditableItemGraphUpdatePartialRequest.md +26 -0
- package/docs/reference/interfaces/IAuditableItemGraphUpdateRequest.md +5 -29
- package/docs/reference/interfaces/IAuditableItemGraphVersionGetRequest.md +35 -0
- package/docs/reference/interfaces/IAuditableItemGraphVersionGetResponse.md +23 -0
- package/docs/reference/interfaces/IAuditableItemGraphVersionListRequest.md +49 -0
- package/docs/reference/interfaces/IAuditableItemGraphVersionListResponse.md +23 -0
- package/docs/reference/interfaces/IAuditableItemGraphVertex.md +30 -30
- package/docs/reference/interfaces/IAuditableItemGraphVertexList.md +3 -4
- package/docs/reference/interfaces/IAuditableItemGraphVertexVersionList.md +35 -0
- package/docs/reference/type-aliases/AuditableItemGraphMetricIds.md +5 -0
- package/docs/reference/variables/AuditableItemGraphContexts.md +6 -6
- package/docs/reference/variables/AuditableItemGraphMetricIds.md +97 -0
- package/docs/reference/variables/AuditableItemGraphMetrics.md +5 -0
- package/docs/reference/variables/AuditableItemGraphTopics.md +2 -2
- package/docs/reference/variables/AuditableItemGraphTypes.md +26 -8
- package/docs/reference/variables/VerifyDepth.md +3 -3
- package/package.json +5 -4
|
@@ -8,7 +8,7 @@ Interface describing an auditable item graph contract.
|
|
|
8
8
|
|
|
9
9
|
## Methods
|
|
10
10
|
|
|
11
|
-
### create()
|
|
11
|
+
### create() {#create}
|
|
12
12
|
|
|
13
13
|
> **create**(`vertex`): `Promise`\<`string`\>
|
|
14
14
|
|
|
@@ -18,31 +18,9 @@ Create a new graph vertex.
|
|
|
18
18
|
|
|
19
19
|
##### vertex
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
###### annotationObject?
|
|
24
|
-
|
|
25
|
-
`IJsonLdNodeObject`
|
|
26
|
-
|
|
27
|
-
The annotation object for the vertex as JSON-LD.
|
|
28
|
-
|
|
29
|
-
###### aliases?
|
|
30
|
-
|
|
31
|
-
`object`[]
|
|
32
|
-
|
|
33
|
-
Alternative aliases that can be used to identify the vertex.
|
|
34
|
-
|
|
35
|
-
###### resources?
|
|
36
|
-
|
|
37
|
-
`object`[]
|
|
38
|
-
|
|
39
|
-
The resources attached to the vertex.
|
|
21
|
+
`Omit`\<[`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md), `"id"`\>
|
|
40
22
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
`object`[]
|
|
44
|
-
|
|
45
|
-
The edges connected to the vertex.
|
|
23
|
+
The vertex to create.
|
|
46
24
|
|
|
47
25
|
#### Returns
|
|
48
26
|
|
|
@@ -52,57 +30,55 @@ The id of the new graph item.
|
|
|
52
30
|
|
|
53
31
|
***
|
|
54
32
|
|
|
55
|
-
### update()
|
|
33
|
+
### update() {#update}
|
|
56
34
|
|
|
57
35
|
> **update**(`vertex`): `Promise`\<`void`\>
|
|
58
36
|
|
|
59
|
-
Update a graph vertex.
|
|
37
|
+
Update a graph vertex (PUT — full replacement of vertex state).
|
|
38
|
+
Concurrent updates for the same vertex are serialized via `Mutex` on the vertex id.
|
|
39
|
+
Multi-replica deployments are not coordinated.
|
|
60
40
|
|
|
61
41
|
#### Parameters
|
|
62
42
|
|
|
63
43
|
##### vertex
|
|
64
44
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
###### id
|
|
45
|
+
[`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md)
|
|
68
46
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
The id of the vertex to update.
|
|
72
|
-
|
|
73
|
-
###### annotationObject?
|
|
47
|
+
The vertex to update.
|
|
74
48
|
|
|
75
|
-
|
|
49
|
+
#### Returns
|
|
76
50
|
|
|
77
|
-
|
|
51
|
+
`Promise`\<`void`\>
|
|
78
52
|
|
|
79
|
-
|
|
53
|
+
A promise that resolves when the vertex has been updated.
|
|
80
54
|
|
|
81
|
-
|
|
55
|
+
***
|
|
82
56
|
|
|
83
|
-
|
|
57
|
+
### updatePartial() {#updatepartial}
|
|
84
58
|
|
|
85
|
-
|
|
59
|
+
> **updatePartial**(`partial`): `Promise`\<`void`\>
|
|
86
60
|
|
|
87
|
-
|
|
61
|
+
Partially update a graph vertex (PATCH); only properties that are not undefined are applied.
|
|
62
|
+
Sub-lists use explicit `{ add, remove }` patch objects. Serialized with `update()` via `Mutex`
|
|
63
|
+
on the same vertex id.
|
|
88
64
|
|
|
89
|
-
|
|
65
|
+
#### Parameters
|
|
90
66
|
|
|
91
|
-
|
|
67
|
+
##### partial
|
|
92
68
|
|
|
93
|
-
`
|
|
69
|
+
[`IAuditableItemGraphPartialVertex`](IAuditableItemGraphPartialVertex.md)
|
|
94
70
|
|
|
95
|
-
The
|
|
71
|
+
The partial vertex update (must include `id`).
|
|
96
72
|
|
|
97
73
|
#### Returns
|
|
98
74
|
|
|
99
75
|
`Promise`\<`void`\>
|
|
100
76
|
|
|
101
|
-
|
|
77
|
+
A promise that resolves when the partial update has been applied.
|
|
102
78
|
|
|
103
79
|
***
|
|
104
80
|
|
|
105
|
-
### get()
|
|
81
|
+
### get() {#get}
|
|
106
82
|
|
|
107
83
|
> **get**(`id`, `options?`): `Promise`\<[`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md)\>
|
|
108
84
|
|
|
@@ -144,7 +120,7 @@ NotFoundError if the vertex is not found.
|
|
|
144
120
|
|
|
145
121
|
***
|
|
146
122
|
|
|
147
|
-
### getChangesets()
|
|
123
|
+
### getChangesets() {#getchangesets}
|
|
148
124
|
|
|
149
125
|
> **getChangesets**(`id`, `cursor?`, `limit?`, `options?`): `Promise`\<\{ `changesets`: [`IAuditableItemGraphChangesetList`](IAuditableItemGraphChangesetList.md); `cursor?`: `string`; \}\>
|
|
150
126
|
|
|
@@ -192,7 +168,7 @@ NotFoundError if the vertex is not found.
|
|
|
192
168
|
|
|
193
169
|
***
|
|
194
170
|
|
|
195
|
-
### getChangeset()
|
|
171
|
+
### getChangeset() {#getchangeset}
|
|
196
172
|
|
|
197
173
|
> **getChangeset**(`id`, `options?`): `Promise`\<[`IAuditableItemGraphChangeset`](IAuditableItemGraphChangeset.md)\>
|
|
198
174
|
|
|
@@ -228,11 +204,85 @@ NotFoundError if the vertex or changeset is not found.
|
|
|
228
204
|
|
|
229
205
|
***
|
|
230
206
|
|
|
231
|
-
###
|
|
207
|
+
### getVersion() {#getversion}
|
|
208
|
+
|
|
209
|
+
> **getVersion**(`id`, `version`): `Promise`\<[`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md)\>
|
|
210
|
+
|
|
211
|
+
Get a graph vertex at a specific version.
|
|
212
|
+
|
|
213
|
+
#### Parameters
|
|
214
|
+
|
|
215
|
+
##### id
|
|
216
|
+
|
|
217
|
+
`string`
|
|
218
|
+
|
|
219
|
+
The id of the vertex.
|
|
220
|
+
|
|
221
|
+
##### version
|
|
222
|
+
|
|
223
|
+
`number`
|
|
224
|
+
|
|
225
|
+
The version number to retrieve.
|
|
226
|
+
|
|
227
|
+
#### Returns
|
|
228
|
+
|
|
229
|
+
`Promise`\<[`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md)\>
|
|
230
|
+
|
|
231
|
+
The vertex reconstructed at that version.
|
|
232
|
+
|
|
233
|
+
#### Throws
|
|
234
|
+
|
|
235
|
+
NotFoundError if the vertex or version is not found.
|
|
236
|
+
|
|
237
|
+
***
|
|
238
|
+
|
|
239
|
+
### getVersions() {#getversions}
|
|
240
|
+
|
|
241
|
+
> **getVersions**(`id`, `options?`): `Promise`\<[`IAuditableItemGraphVertexVersionList`](IAuditableItemGraphVertexVersionList.md)\>
|
|
242
|
+
|
|
243
|
+
Get all versions of a graph vertex.
|
|
244
|
+
|
|
245
|
+
#### Parameters
|
|
246
|
+
|
|
247
|
+
##### id
|
|
248
|
+
|
|
249
|
+
`string`
|
|
250
|
+
|
|
251
|
+
The id of the vertex.
|
|
252
|
+
|
|
253
|
+
##### options?
|
|
254
|
+
|
|
255
|
+
Additional options for the operation.
|
|
256
|
+
|
|
257
|
+
###### after?
|
|
258
|
+
|
|
259
|
+
`string`
|
|
260
|
+
|
|
261
|
+
Only return versions created after this ISO 8601 timestamp (exclusive).
|
|
262
|
+
|
|
263
|
+
###### before?
|
|
264
|
+
|
|
265
|
+
`string`
|
|
266
|
+
|
|
267
|
+
Only return versions created before this ISO 8601 timestamp (exclusive).
|
|
268
|
+
|
|
269
|
+
#### Returns
|
|
270
|
+
|
|
271
|
+
`Promise`\<[`IAuditableItemGraphVertexVersionList`](IAuditableItemGraphVertexVersionList.md)\>
|
|
272
|
+
|
|
273
|
+
The list of vertex versions.
|
|
274
|
+
|
|
275
|
+
#### Throws
|
|
276
|
+
|
|
277
|
+
NotFoundError if the vertex is not found.
|
|
278
|
+
|
|
279
|
+
***
|
|
280
|
+
|
|
281
|
+
### removeProof() {#removeproof}
|
|
232
282
|
|
|
233
|
-
> **
|
|
283
|
+
> **removeProof**(`id`): `Promise`\<`void`\>
|
|
234
284
|
|
|
235
|
-
Remove the
|
|
285
|
+
Remove the proof for an item.
|
|
236
286
|
|
|
237
287
|
#### Parameters
|
|
238
288
|
|
|
@@ -240,13 +290,13 @@ Remove the verifiable storage for an item.
|
|
|
240
290
|
|
|
241
291
|
`string`
|
|
242
292
|
|
|
243
|
-
The id of the vertex to remove the
|
|
293
|
+
The id of the vertex to remove the proof from.
|
|
244
294
|
|
|
245
295
|
#### Returns
|
|
246
296
|
|
|
247
297
|
`Promise`\<`void`\>
|
|
248
298
|
|
|
249
|
-
|
|
299
|
+
A promise that resolves when the proof has been removed from all changesets.
|
|
250
300
|
|
|
251
301
|
#### Throws
|
|
252
302
|
|
|
@@ -254,7 +304,7 @@ NotFoundError if the vertex is not found.
|
|
|
254
304
|
|
|
255
305
|
***
|
|
256
306
|
|
|
257
|
-
### query()
|
|
307
|
+
### query() {#query}
|
|
258
308
|
|
|
259
309
|
> **query**(`options?`, `conditions?`, `orderBy?`, `orderByDirection?`, `properties?`, `cursor?`, `limit?`): `Promise`\<\{ `entries`: [`IAuditableItemGraphVertexList`](IAuditableItemGraphVertexList.md); `cursor?`: `string`; \}\>
|
|
260
310
|
|
|
@@ -292,15 +342,15 @@ Include vertices with specific resource types.
|
|
|
292
342
|
|
|
293
343
|
##### conditions?
|
|
294
344
|
|
|
295
|
-
`
|
|
345
|
+
`EntityCondition`\<[`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md)\>
|
|
296
346
|
|
|
297
347
|
Conditions to use in the query.
|
|
298
348
|
|
|
299
349
|
##### orderBy?
|
|
300
350
|
|
|
301
|
-
|
|
351
|
+
`"dateCreated"` \| `"dateModified"`
|
|
302
352
|
|
|
303
|
-
|
|
353
|
+
The order for the results, defaults to dateCreated.
|
|
304
354
|
|
|
305
355
|
##### orderByDirection?
|
|
306
356
|
|
|
@@ -4,32 +4,8 @@ Create an auditable item graph vertex.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### body
|
|
7
|
+
### body {#body}
|
|
8
8
|
|
|
9
|
-
> **body**: `
|
|
9
|
+
> **body**: `Omit`\<[`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md), `"id"`\>
|
|
10
10
|
|
|
11
11
|
The data to be used in the vertex.
|
|
12
|
-
|
|
13
|
-
#### annotationObject?
|
|
14
|
-
|
|
15
|
-
> `optional` **annotationObject**: `IJsonLdNodeObject`
|
|
16
|
-
|
|
17
|
-
The object to be used in the vertex as JSON-LD.
|
|
18
|
-
|
|
19
|
-
#### aliases?
|
|
20
|
-
|
|
21
|
-
> `optional` **aliases**: `object`[]
|
|
22
|
-
|
|
23
|
-
Alternative aliases that can be used to identify the vertex.
|
|
24
|
-
|
|
25
|
-
#### resources?
|
|
26
|
-
|
|
27
|
-
> `optional` **resources**: `object`[]
|
|
28
|
-
|
|
29
|
-
The resources attached to the vertex.
|
|
30
|
-
|
|
31
|
-
#### edges?
|
|
32
|
-
|
|
33
|
-
> `optional` **edges**: `object`[]
|
|
34
|
-
|
|
35
|
-
The edges connected to the vertex.
|
|
@@ -8,12 +8,11 @@ Interface describing an edge between two vertices in an auditable item graph.
|
|
|
8
8
|
|
|
9
9
|
## Properties
|
|
10
10
|
|
|
11
|
-
### dateCreated?
|
|
11
|
+
### dateCreated? {#datecreated}
|
|
12
12
|
|
|
13
|
-
> `optional` **dateCreated
|
|
13
|
+
> `optional` **dateCreated?**: `string`
|
|
14
14
|
|
|
15
15
|
The date/time of when the element was created.
|
|
16
|
-
json-ld namespace:schema
|
|
17
16
|
|
|
18
17
|
#### Inherited from
|
|
19
18
|
|
|
@@ -21,12 +20,11 @@ json-ld namespace:schema
|
|
|
21
20
|
|
|
22
21
|
***
|
|
23
22
|
|
|
24
|
-
### dateModified?
|
|
23
|
+
### dateModified? {#datemodified}
|
|
25
24
|
|
|
26
|
-
> `optional` **dateModified
|
|
25
|
+
> `optional` **dateModified?**: `string`
|
|
27
26
|
|
|
28
27
|
The date/time of when the element was modified.
|
|
29
|
-
json-ld namespace:schema
|
|
30
28
|
|
|
31
29
|
#### Inherited from
|
|
32
30
|
|
|
@@ -34,12 +32,11 @@ json-ld namespace:schema
|
|
|
34
32
|
|
|
35
33
|
***
|
|
36
34
|
|
|
37
|
-
### dateDeleted?
|
|
35
|
+
### dateDeleted? {#datedeleted}
|
|
38
36
|
|
|
39
|
-
> `optional` **dateDeleted
|
|
37
|
+
> `optional` **dateDeleted?**: `string`
|
|
40
38
|
|
|
41
39
|
The date/time of when the element was deleted, as we never actually remove items.
|
|
42
|
-
json-ld namespace:schema
|
|
43
40
|
|
|
44
41
|
#### Inherited from
|
|
45
42
|
|
|
@@ -47,17 +44,17 @@ json-ld namespace:schema
|
|
|
47
44
|
|
|
48
45
|
***
|
|
49
46
|
|
|
50
|
-
### @context
|
|
47
|
+
### @context? {#context}
|
|
51
48
|
|
|
52
|
-
> **@context
|
|
49
|
+
> `optional` **@context?**: `"https://schema.twindev.org/aig/"` \| \[`"https://schema.twindev.org/aig/"`, `...IJsonLdContextDefinitionElement[]`\]
|
|
53
50
|
|
|
54
51
|
JSON-LD Context.
|
|
55
52
|
|
|
56
53
|
***
|
|
57
54
|
|
|
58
|
-
### id?
|
|
55
|
+
### id? {#id}
|
|
59
56
|
|
|
60
|
-
> `optional` **id
|
|
57
|
+
> `optional` **id?**: `string`
|
|
61
58
|
|
|
62
59
|
The id of the element.
|
|
63
60
|
|
|
@@ -67,16 +64,15 @@ The id of the element.
|
|
|
67
64
|
|
|
68
65
|
***
|
|
69
66
|
|
|
70
|
-
### targetId
|
|
67
|
+
### targetId {#targetid}
|
|
71
68
|
|
|
72
69
|
> **targetId**: `string`
|
|
73
70
|
|
|
74
71
|
The target vertex id the edge connects to.
|
|
75
|
-
json-ld type:@id
|
|
76
72
|
|
|
77
73
|
***
|
|
78
74
|
|
|
79
|
-
### type
|
|
75
|
+
### type {#type}
|
|
80
76
|
|
|
81
77
|
> **type**: `"AuditableItemGraphEdge"`
|
|
82
78
|
|
|
@@ -84,18 +80,16 @@ JSON-LD Type.
|
|
|
84
80
|
|
|
85
81
|
***
|
|
86
82
|
|
|
87
|
-
### annotationObject?
|
|
83
|
+
### annotationObject? {#annotationobject}
|
|
88
84
|
|
|
89
|
-
> `optional` **annotationObject
|
|
85
|
+
> `optional` **annotationObject?**: `IJsonLdNodeObject`
|
|
90
86
|
|
|
91
87
|
The JSON-LD annotation object for the edge.
|
|
92
|
-
json-ld namespace:twin-common
|
|
93
88
|
|
|
94
89
|
***
|
|
95
90
|
|
|
96
|
-
### edgeRelationships
|
|
91
|
+
### edgeRelationships {#edgerelationships}
|
|
97
92
|
|
|
98
93
|
> **edgeRelationships**: `string`[]
|
|
99
94
|
|
|
100
95
|
The relationships between the two vertices.
|
|
101
|
-
json-ld container:set
|
|
@@ -4,7 +4,7 @@ Event bus payload for vertex updated.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### id
|
|
7
|
+
### id {#id}
|
|
8
8
|
|
|
9
9
|
> **id**: `string`
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ The id of the vertex updated.
|
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
15
|
-
### patches
|
|
15
|
+
### patches {#patches}
|
|
16
16
|
|
|
17
17
|
> **patches**: `IPatchOperation`[]
|
|
18
18
|
|
|
@@ -4,9 +4,9 @@ Get an auditable item graph vertex.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### headers?
|
|
7
|
+
### headers? {#headers}
|
|
8
8
|
|
|
9
|
-
> `optional` **headers
|
|
9
|
+
> `optional` **headers?**: `object`
|
|
10
10
|
|
|
11
11
|
The headers which can be used to determine the response data type.
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ The headers which can be used to determine the response data type.
|
|
|
16
16
|
|
|
17
17
|
***
|
|
18
18
|
|
|
19
|
-
### pathParams
|
|
19
|
+
### pathParams {#pathparams}
|
|
20
20
|
|
|
21
21
|
> **pathParams**: `object`
|
|
22
22
|
|
|
@@ -30,20 +30,20 @@ The id of the vertex to get.
|
|
|
30
30
|
|
|
31
31
|
***
|
|
32
32
|
|
|
33
|
-
### query?
|
|
33
|
+
### query? {#query}
|
|
34
34
|
|
|
35
|
-
> `optional` **query
|
|
35
|
+
> `optional` **query?**: `object`
|
|
36
36
|
|
|
37
37
|
The query parameters.
|
|
38
38
|
|
|
39
39
|
#### includeDeleted?
|
|
40
40
|
|
|
41
|
-
> `optional` **includeDeleted
|
|
41
|
+
> `optional` **includeDeleted?**: `string`
|
|
42
42
|
|
|
43
43
|
Whether to include deleted aliases, resource, edges, defaults to false.
|
|
44
44
|
|
|
45
45
|
#### verifySignatureDepth?
|
|
46
46
|
|
|
47
|
-
> `optional` **verifySignatureDepth
|
|
47
|
+
> `optional` **verifySignatureDepth?**: [`VerifyDepth`](../type-aliases/VerifyDepth.md)
|
|
48
48
|
|
|
49
49
|
How many signatures to verify, none, current or all, defaults to "none".
|
|
@@ -4,9 +4,9 @@ Response to getting an auditable item graph vertex.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### headers?
|
|
7
|
+
### headers? {#headers}
|
|
8
8
|
|
|
9
|
-
> `optional` **headers
|
|
9
|
+
> `optional` **headers?**: `object`
|
|
10
10
|
|
|
11
11
|
The headers which can be used to determine the response data type.
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ The headers which can be used to determine the response data type.
|
|
|
16
16
|
|
|
17
17
|
***
|
|
18
18
|
|
|
19
|
-
### body
|
|
19
|
+
### body {#body}
|
|
20
20
|
|
|
21
21
|
> **body**: [`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md)
|
|
22
22
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Interface: IAuditableItemGraphListPatch\<TItem\>
|
|
2
|
+
|
|
3
|
+
PATCH operations for a sub-list on a vertex.
|
|
4
|
+
|
|
5
|
+
## Type Parameters
|
|
6
|
+
|
|
7
|
+
### TItem
|
|
8
|
+
|
|
9
|
+
`TItem` = [`IAuditableItemGraphEdge`](IAuditableItemGraphEdge.md) \| [`IAuditableItemGraphAlias`](IAuditableItemGraphAlias.md) \| [`IAuditableItemGraphResource`](IAuditableItemGraphResource.md)
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
### add? {#add}
|
|
14
|
+
|
|
15
|
+
> `optional` **add?**: `TItem`[]
|
|
16
|
+
|
|
17
|
+
Items to add or update in the active set.
|
|
18
|
+
|
|
19
|
+
***
|
|
20
|
+
|
|
21
|
+
### remove? {#remove}
|
|
22
|
+
|
|
23
|
+
> `optional` **remove?**: `string`[]
|
|
24
|
+
|
|
25
|
+
Identifiers of items to remove from the active set (soft-delete).
|
|
@@ -4,9 +4,9 @@ Get the a list of the vertices with matching ids or aliases.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### headers?
|
|
7
|
+
### headers? {#headers}
|
|
8
8
|
|
|
9
|
-
> `optional` **headers
|
|
9
|
+
> `optional` **headers?**: `object`
|
|
10
10
|
|
|
11
11
|
The headers which can be used to determine the response data type.
|
|
12
12
|
|
|
@@ -16,68 +16,68 @@ The headers which can be used to determine the response data type.
|
|
|
16
16
|
|
|
17
17
|
***
|
|
18
18
|
|
|
19
|
-
### query?
|
|
19
|
+
### query? {#query}
|
|
20
20
|
|
|
21
|
-
> `optional` **query
|
|
21
|
+
> `optional` **query?**: `object`
|
|
22
22
|
|
|
23
23
|
The query parameters.
|
|
24
24
|
|
|
25
25
|
#### id?
|
|
26
26
|
|
|
27
|
-
> `optional` **id
|
|
27
|
+
> `optional` **id?**: `string`
|
|
28
28
|
|
|
29
29
|
The id or alias to try and find.
|
|
30
30
|
|
|
31
31
|
#### idMode?
|
|
32
32
|
|
|
33
|
-
> `optional` **idMode
|
|
33
|
+
> `optional` **idMode?**: `"id"` \| `"alias"` \| `"both"`
|
|
34
34
|
|
|
35
35
|
Which field to look in with the id, defaults to both.
|
|
36
36
|
|
|
37
37
|
#### idExact?
|
|
38
38
|
|
|
39
|
-
> `optional` **idExact
|
|
39
|
+
> `optional` **idExact?**: `string`
|
|
40
40
|
|
|
41
41
|
Find only exact matches, default to false meaning partial matching.
|
|
42
42
|
|
|
43
43
|
#### resourceTypes?
|
|
44
44
|
|
|
45
|
-
> `optional` **resourceTypes
|
|
45
|
+
> `optional` **resourceTypes?**: `string`
|
|
46
46
|
|
|
47
47
|
Include vertices with specific resource types, comma separated.
|
|
48
48
|
|
|
49
49
|
#### conditions?
|
|
50
50
|
|
|
51
|
-
> `optional` **conditions
|
|
51
|
+
> `optional` **conditions?**: `string`
|
|
52
52
|
|
|
53
|
-
The conditions to filter the streams, JSON stringified
|
|
53
|
+
The conditions to filter the streams, JSON stringified EntityCondition<IAuditableItemGraphVertex>.
|
|
54
54
|
|
|
55
55
|
#### orderBy?
|
|
56
56
|
|
|
57
|
-
> `optional` **orderBy
|
|
57
|
+
> `optional` **orderBy?**: `"dateCreated"` \| `"dateModified"`
|
|
58
58
|
|
|
59
59
|
The order for the results, default to dateCreated.
|
|
60
60
|
|
|
61
61
|
#### orderByDirection?
|
|
62
62
|
|
|
63
|
-
> `optional` **orderByDirection
|
|
63
|
+
> `optional` **orderByDirection?**: `SortDirection`
|
|
64
64
|
|
|
65
65
|
The direction for the order, defaults to desc.
|
|
66
66
|
|
|
67
67
|
#### properties?
|
|
68
68
|
|
|
69
|
-
> `optional` **properties
|
|
69
|
+
> `optional` **properties?**: `string`
|
|
70
70
|
|
|
71
71
|
The properties to return as a comma separated list, defaults to "id,dateCreated,aliases,annotationObject".
|
|
72
72
|
|
|
73
73
|
#### cursor?
|
|
74
74
|
|
|
75
|
-
> `optional` **cursor
|
|
75
|
+
> `optional` **cursor?**: `string`
|
|
76
76
|
|
|
77
77
|
The optional cursor to get next chunk.
|
|
78
78
|
|
|
79
79
|
#### limit?
|
|
80
80
|
|
|
81
|
-
> `optional` **limit
|
|
81
|
+
> `optional` **limit?**: `string`
|
|
82
82
|
|
|
83
83
|
Limit the number of entities to return.
|
|
@@ -4,9 +4,9 @@ The response to getting the a list of the vertices with matching ids or aliases.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### headers?
|
|
7
|
+
### headers? {#headers}
|
|
8
8
|
|
|
9
|
-
> `optional` **headers
|
|
9
|
+
> `optional` **headers?**: `object`
|
|
10
10
|
|
|
11
11
|
The headers which can be used to determine the response data type.
|
|
12
12
|
|
|
@@ -16,11 +16,11 @@ The headers which can be used to determine the response data type.
|
|
|
16
16
|
|
|
17
17
|
#### link?
|
|
18
18
|
|
|
19
|
-
> `optional` **link
|
|
19
|
+
> `optional` **link?**: `string` \| `string`[]
|
|
20
20
|
|
|
21
21
|
***
|
|
22
22
|
|
|
23
|
-
### body
|
|
23
|
+
### body {#body}
|
|
24
24
|
|
|
25
25
|
> **body**: [`IAuditableItemGraphVertexList`](IAuditableItemGraphVertexList.md)
|
|
26
26
|
|