@twin.org/auditable-item-graph-models 0.0.3-next.11 → 0.0.3-next.13
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 +37 -43
- package/dist/es/dataTypes/auditableItemGraphDataTypes.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/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/api/IAuditableItemGraphCreateRequest.js.map +1 -1
- package/dist/es/models/api/IAuditableItemGraphUpdateRequest.js.map +1 -1
- package/dist/es/schemas/AuditableItemGraphAlias.json +18 -24
- package/dist/es/schemas/AuditableItemGraphAuditedElement.json +25 -0
- package/dist/es/schemas/AuditableItemGraphChangeset.json +9 -11
- package/dist/es/schemas/AuditableItemGraphEdge.json +15 -25
- package/dist/es/schemas/AuditableItemGraphPatchOperation.json +26 -17
- package/dist/es/schemas/AuditableItemGraphResource.json +9 -23
- package/dist/es/schemas/AuditableItemGraphVertex.json +35 -28
- package/dist/es/schemas/AuditableItemGraphVertexList.json +16 -18
- 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 +5 -5
- package/dist/types/models/IAuditableItemGraphChangesetList.d.ts +1 -1
- package/dist/types/models/IAuditableItemGraphComponent.d.ts +2 -39
- package/dist/types/models/IAuditableItemGraphEdge.d.ts +4 -4
- 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 +6 -6
- package/dist/types/models/IAuditableItemGraphVertexList.d.ts +1 -1
- package/dist/types/models/api/IAuditableItemGraphCreateRequest.d.ts +2 -31
- package/dist/types/models/api/IAuditableItemGraphUpdateRequest.d.ts +2 -32
- package/docs/changelog.md +122 -108
- package/docs/examples.md +22 -1
- package/docs/reference/classes/AuditableItemGraphDataTypes.md +1 -1
- package/docs/reference/interfaces/IAuditableItemGraphAlias.md +22 -19
- package/docs/reference/interfaces/IAuditableItemGraphAuditedElement.md +8 -11
- package/docs/reference/interfaces/IAuditableItemGraphChangeset.md +12 -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 +13 -63
- 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/IAuditableItemGraphListRequest.md +14 -14
- package/docs/reference/interfaces/IAuditableItemGraphListResponse.md +4 -4
- package/docs/reference/interfaces/IAuditableItemGraphPatchOperation.md +9 -13
- package/docs/reference/interfaces/IAuditableItemGraphResource.md +13 -17
- package/docs/reference/interfaces/IAuditableItemGraphUpdateRequest.md +3 -27
- package/docs/reference/interfaces/IAuditableItemGraphVertex.md +21 -30
- package/docs/reference/interfaces/IAuditableItemGraphVertexList.md +3 -4
- package/docs/reference/variables/AuditableItemGraphContexts.md +6 -6
- package/docs/reference/variables/AuditableItemGraphTopics.md +2 -2
- package/docs/reference/variables/AuditableItemGraphTypes.md +8 -8
- package/docs/reference/variables/VerifyDepth.md +3 -3
- package/package.json +4 -4
|
@@ -10,35 +10,32 @@ Interface describing the base properties for auditable elements.
|
|
|
10
10
|
|
|
11
11
|
## Properties
|
|
12
12
|
|
|
13
|
-
### id?
|
|
13
|
+
### id? {#id}
|
|
14
14
|
|
|
15
|
-
> `optional` **id
|
|
15
|
+
> `optional` **id?**: `string`
|
|
16
16
|
|
|
17
17
|
The id of the element.
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
21
|
-
### dateCreated?
|
|
21
|
+
### dateCreated? {#datecreated}
|
|
22
22
|
|
|
23
|
-
> `optional` **dateCreated
|
|
23
|
+
> `optional` **dateCreated?**: `string`
|
|
24
24
|
|
|
25
25
|
The date/time of when the element was created.
|
|
26
|
-
json-ld namespace:sch
|
|
27
26
|
|
|
28
27
|
***
|
|
29
28
|
|
|
30
|
-
### dateModified?
|
|
29
|
+
### dateModified? {#datemodified}
|
|
31
30
|
|
|
32
|
-
> `optional` **dateModified
|
|
31
|
+
> `optional` **dateModified?**: `string`
|
|
33
32
|
|
|
34
33
|
The date/time of when the element was modified.
|
|
35
|
-
json-ld namespace:sch
|
|
36
34
|
|
|
37
35
|
***
|
|
38
36
|
|
|
39
|
-
### dateDeleted?
|
|
37
|
+
### dateDeleted? {#datedeleted}
|
|
40
38
|
|
|
41
|
-
> `optional` **dateDeleted
|
|
39
|
+
> `optional` **dateDeleted?**: `string`
|
|
42
40
|
|
|
43
41
|
The date/time of when the element was deleted, as we never actually remove items.
|
|
44
|
-
json-ld namespace:sch
|
|
@@ -4,15 +4,15 @@ Interface describing a set of changes to the vertex.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### @context?
|
|
7
|
+
### @context? {#context}
|
|
8
8
|
|
|
9
|
-
> `optional` **@context
|
|
9
|
+
> `optional` **@context?**: \[`"https://schema.twindev.org/aig/"`, `"https://schema.twindev.org/common/"`, `...IJsonLdContextDefinitionElement[]`\]
|
|
10
10
|
|
|
11
11
|
JSON-LD Context.
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
15
|
-
### type
|
|
15
|
+
### type {#type}
|
|
16
16
|
|
|
17
17
|
> **type**: `"AuditableItemGraphChangeset"`
|
|
18
18
|
|
|
@@ -20,7 +20,7 @@ JSON-LD Type.
|
|
|
20
20
|
|
|
21
21
|
***
|
|
22
22
|
|
|
23
|
-
### id
|
|
23
|
+
### id {#id}
|
|
24
24
|
|
|
25
25
|
> **id**: `string`
|
|
26
26
|
|
|
@@ -28,45 +28,40 @@ The id of the changeset.
|
|
|
28
28
|
|
|
29
29
|
***
|
|
30
30
|
|
|
31
|
-
### dateCreated
|
|
31
|
+
### dateCreated {#datecreated}
|
|
32
32
|
|
|
33
33
|
> **dateCreated**: `string`
|
|
34
34
|
|
|
35
35
|
The date/time of when the changeset was created.
|
|
36
|
-
json-ld namespace:sch
|
|
37
36
|
|
|
38
37
|
***
|
|
39
38
|
|
|
40
|
-
### userIdentity?
|
|
39
|
+
### userIdentity? {#useridentity}
|
|
41
40
|
|
|
42
|
-
> `optional` **userIdentity
|
|
41
|
+
> `optional` **userIdentity?**: `string`
|
|
43
42
|
|
|
44
43
|
The user identity that created the changes.
|
|
45
|
-
json-ld namespace:twin-common
|
|
46
44
|
|
|
47
45
|
***
|
|
48
46
|
|
|
49
|
-
### patches
|
|
47
|
+
### patches {#patches}
|
|
50
48
|
|
|
51
49
|
> **patches**: [`IAuditableItemGraphPatchOperation`](IAuditableItemGraphPatchOperation.md)[]
|
|
52
50
|
|
|
53
51
|
The patches in the changeset.
|
|
54
|
-
json-ld container:set
|
|
55
52
|
|
|
56
53
|
***
|
|
57
54
|
|
|
58
|
-
### proofId?
|
|
55
|
+
### proofId? {#proofid}
|
|
59
56
|
|
|
60
|
-
> `optional` **proofId
|
|
57
|
+
> `optional` **proofId?**: `string`
|
|
61
58
|
|
|
62
59
|
The immutable proof id which contains the signature for this changeset.
|
|
63
|
-
json-ld type:sch:identifier
|
|
64
60
|
|
|
65
61
|
***
|
|
66
62
|
|
|
67
|
-
### verification?
|
|
63
|
+
### verification? {#verification}
|
|
68
64
|
|
|
69
|
-
> `optional` **verification
|
|
65
|
+
> `optional` **verification?**: `IImmutableProofVerification`
|
|
70
66
|
|
|
71
67
|
The verification for the changeset.
|
|
72
|
-
json-ld id
|
|
@@ -4,9 +4,9 @@ Get an auditable item graph vertex changeset.
|
|
|
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
|
|
|
@@ -36,14 +36,14 @@ The id of the changeset to get.
|
|
|
36
36
|
|
|
37
37
|
***
|
|
38
38
|
|
|
39
|
-
### query?
|
|
39
|
+
### query? {#query}
|
|
40
40
|
|
|
41
|
-
> `optional` **query
|
|
41
|
+
> `optional` **query?**: `object`
|
|
42
42
|
|
|
43
43
|
The query parameters.
|
|
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 changeset.
|
|
|
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**: [`IAuditableItemGraphChangeset`](IAuditableItemGraphChangeset.md)
|
|
22
22
|
|
|
@@ -4,7 +4,7 @@ Interface describing an auditable item graph changeset list.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### @context
|
|
7
|
+
### @context {#context}
|
|
8
8
|
|
|
9
9
|
> **@context**: \[`"https://schema.org"`, `"https://schema.twindev.org/aig/"`, `...IJsonLdContextDefinitionElement[]`\]
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ JSON-LD Context.
|
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
15
|
-
### type
|
|
15
|
+
### type {#type}
|
|
16
16
|
|
|
17
17
|
> **type**: \[`"ItemList"`, `"AuditableItemGraphChangesetList"`\]
|
|
18
18
|
|
|
@@ -20,9 +20,8 @@ JSON-LD Type.
|
|
|
20
20
|
|
|
21
21
|
***
|
|
22
22
|
|
|
23
|
-
### itemListElement
|
|
23
|
+
### itemListElement {#itemlistelement}
|
|
24
24
|
|
|
25
25
|
> **itemListElement**: [`IAuditableItemGraphChangeset`](IAuditableItemGraphChangeset.md)[]
|
|
26
26
|
|
|
27
27
|
The list of changesets.
|
|
28
|
-
json-ld namespace:sch
|
|
@@ -4,9 +4,9 @@ Get an auditable item graph changeset.
|
|
|
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,26 +30,26 @@ The id of the changeset 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
|
#### cursor?
|
|
40
40
|
|
|
41
|
-
> `optional` **cursor
|
|
41
|
+
> `optional` **cursor?**: `string`
|
|
42
42
|
|
|
43
43
|
The optional cursor to get next chunk.
|
|
44
44
|
|
|
45
45
|
#### limit?
|
|
46
46
|
|
|
47
|
-
> `optional` **limit
|
|
47
|
+
> `optional` **limit?**: `string`
|
|
48
48
|
|
|
49
49
|
Limit the number of entities to return.
|
|
50
50
|
|
|
51
51
|
#### verifySignatureDepth?
|
|
52
52
|
|
|
53
|
-
> `optional` **verifySignatureDepth
|
|
53
|
+
> `optional` **verifySignatureDepth?**: [`VerifyDepth`](../type-aliases/VerifyDepth.md)
|
|
54
54
|
|
|
55
55
|
How many signatures to verify, none, current or all, defaults to "none".
|
|
@@ -4,9 +4,9 @@ Response to getting an auditable item graph changeset list.
|
|
|
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**: [`IAuditableItemGraphChangesetList`](IAuditableItemGraphChangesetList.md)
|
|
26
26
|
|
|
@@ -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?
|
|
21
|
+
`Omit`\<[`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md), `"id"`\>
|
|
36
22
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
The resources attached to the vertex.
|
|
40
|
-
|
|
41
|
-
###### edges?
|
|
42
|
-
|
|
43
|
-
`object`[]
|
|
44
|
-
|
|
45
|
-
The edges connected to the vertex.
|
|
23
|
+
The vertex to create.
|
|
46
24
|
|
|
47
25
|
#### Returns
|
|
48
26
|
|
|
@@ -52,7 +30,7 @@ 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
|
|
|
@@ -62,37 +40,9 @@ Update a graph vertex.
|
|
|
62
40
|
|
|
63
41
|
##### vertex
|
|
64
42
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
###### id
|
|
68
|
-
|
|
69
|
-
`string`
|
|
70
|
-
|
|
71
|
-
The id of the vertex to update.
|
|
72
|
-
|
|
73
|
-
###### annotationObject?
|
|
74
|
-
|
|
75
|
-
`IJsonLdNodeObject`
|
|
76
|
-
|
|
77
|
-
The annotation object for the vertex as JSON-LD.
|
|
78
|
-
|
|
79
|
-
###### aliases?
|
|
80
|
-
|
|
81
|
-
`object`[]
|
|
82
|
-
|
|
83
|
-
Alternative aliases that can be used to identify the vertex.
|
|
43
|
+
[`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md)
|
|
84
44
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
`object`[]
|
|
88
|
-
|
|
89
|
-
The resources attached to the vertex.
|
|
90
|
-
|
|
91
|
-
###### edges?
|
|
92
|
-
|
|
93
|
-
`object`[]
|
|
94
|
-
|
|
95
|
-
The edges connected to the vertex.
|
|
45
|
+
The vertex to update.
|
|
96
46
|
|
|
97
47
|
#### Returns
|
|
98
48
|
|
|
@@ -102,7 +52,7 @@ Nothing.
|
|
|
102
52
|
|
|
103
53
|
***
|
|
104
54
|
|
|
105
|
-
### get()
|
|
55
|
+
### get() {#get}
|
|
106
56
|
|
|
107
57
|
> **get**(`id`, `options?`): `Promise`\<[`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md)\>
|
|
108
58
|
|
|
@@ -144,7 +94,7 @@ NotFoundError if the vertex is not found.
|
|
|
144
94
|
|
|
145
95
|
***
|
|
146
96
|
|
|
147
|
-
### getChangesets()
|
|
97
|
+
### getChangesets() {#getchangesets}
|
|
148
98
|
|
|
149
99
|
> **getChangesets**(`id`, `cursor?`, `limit?`, `options?`): `Promise`\<\{ `changesets`: [`IAuditableItemGraphChangesetList`](IAuditableItemGraphChangesetList.md); `cursor?`: `string`; \}\>
|
|
150
100
|
|
|
@@ -192,7 +142,7 @@ NotFoundError if the vertex is not found.
|
|
|
192
142
|
|
|
193
143
|
***
|
|
194
144
|
|
|
195
|
-
### getChangeset()
|
|
145
|
+
### getChangeset() {#getchangeset}
|
|
196
146
|
|
|
197
147
|
> **getChangeset**(`id`, `options?`): `Promise`\<[`IAuditableItemGraphChangeset`](IAuditableItemGraphChangeset.md)\>
|
|
198
148
|
|
|
@@ -228,7 +178,7 @@ NotFoundError if the vertex or changeset is not found.
|
|
|
228
178
|
|
|
229
179
|
***
|
|
230
180
|
|
|
231
|
-
### removeVerifiable()
|
|
181
|
+
### removeVerifiable() {#removeverifiable}
|
|
232
182
|
|
|
233
183
|
> **removeVerifiable**(`id`): `Promise`\<`void`\>
|
|
234
184
|
|
|
@@ -254,7 +204,7 @@ NotFoundError if the vertex is not found.
|
|
|
254
204
|
|
|
255
205
|
***
|
|
256
206
|
|
|
257
|
-
### query()
|
|
207
|
+
### query() {#query}
|
|
258
208
|
|
|
259
209
|
> **query**(`options?`, `conditions?`, `orderBy?`, `orderByDirection?`, `properties?`, `cursor?`, `limit?`): `Promise`\<\{ `entries`: [`IAuditableItemGraphVertexList`](IAuditableItemGraphVertexList.md); `cursor?`: `string`; \}\>
|
|
260
210
|
|
|
@@ -298,9 +248,9 @@ Conditions to use in the query.
|
|
|
298
248
|
|
|
299
249
|
##### orderBy?
|
|
300
250
|
|
|
301
|
-
|
|
251
|
+
`"dateCreated"` \| `"dateModified"`
|
|
302
252
|
|
|
303
|
-
|
|
253
|
+
The order for the results, defaults to dateCreated.
|
|
304
254
|
|
|
305
255
|
##### orderByDirection?
|
|
306
256
|
|
|
@@ -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:sch
|
|
17
16
|
|
|
18
17
|
#### Inherited from
|
|
19
18
|
|
|
@@ -21,12 +20,11 @@ json-ld namespace:sch
|
|
|
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:sch
|
|
30
28
|
|
|
31
29
|
#### Inherited from
|
|
32
30
|
|
|
@@ -34,12 +32,11 @@ json-ld namespace:sch
|
|
|
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:sch
|
|
43
40
|
|
|
44
41
|
#### Inherited from
|
|
45
42
|
|
|
@@ -47,17 +44,17 @@ json-ld namespace:sch
|
|
|
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
|
|