@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
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# Interface: IAuditableItemGraphPartialVertex
|
|
2
|
+
|
|
3
|
+
Partial vertex payload for updatePartial (PATCH — requires id).
|
|
4
|
+
Sub-lists use explicit `{ add, remove }` patches; bare arrays are not supported.
|
|
5
|
+
|
|
6
|
+
## Extends
|
|
7
|
+
|
|
8
|
+
- `Omit`\<[`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md), `"type"` \| `"aliases"` \| `"edges"` \| `"resources"`\>
|
|
9
|
+
|
|
10
|
+
## Properties
|
|
11
|
+
|
|
12
|
+
### dateCreated? {#datecreated}
|
|
13
|
+
|
|
14
|
+
> `optional` **dateCreated?**: `string`
|
|
15
|
+
|
|
16
|
+
The date/time of when the element was created.
|
|
17
|
+
|
|
18
|
+
#### Inherited from
|
|
19
|
+
|
|
20
|
+
[`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`dateCreated`](IAuditableItemGraphAuditedElement.md#datecreated)
|
|
21
|
+
|
|
22
|
+
***
|
|
23
|
+
|
|
24
|
+
### dateModified? {#datemodified}
|
|
25
|
+
|
|
26
|
+
> `optional` **dateModified?**: `string`
|
|
27
|
+
|
|
28
|
+
The date/time of when the element was modified.
|
|
29
|
+
|
|
30
|
+
#### Inherited from
|
|
31
|
+
|
|
32
|
+
[`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`dateModified`](IAuditableItemGraphAuditedElement.md#datemodified)
|
|
33
|
+
|
|
34
|
+
***
|
|
35
|
+
|
|
36
|
+
### dateDeleted? {#datedeleted}
|
|
37
|
+
|
|
38
|
+
> `optional` **dateDeleted?**: `string`
|
|
39
|
+
|
|
40
|
+
The date/time of when the element was deleted, as we never actually remove items.
|
|
41
|
+
|
|
42
|
+
#### Inherited from
|
|
43
|
+
|
|
44
|
+
[`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`dateDeleted`](IAuditableItemGraphAuditedElement.md#datedeleted)
|
|
45
|
+
|
|
46
|
+
***
|
|
47
|
+
|
|
48
|
+
### id {#id}
|
|
49
|
+
|
|
50
|
+
> **id**: `string`
|
|
51
|
+
|
|
52
|
+
The id of the vertex to update.
|
|
53
|
+
|
|
54
|
+
#### Overrides
|
|
55
|
+
|
|
56
|
+
[`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md).[`id`](IAuditableItemGraphVertex.md#id)
|
|
57
|
+
|
|
58
|
+
***
|
|
59
|
+
|
|
60
|
+
### @context {#context}
|
|
61
|
+
|
|
62
|
+
> **@context**: \[`"https://schema.twindev.org/aig/"`, `"https://schema.twindev.org/common/"`, `...IJsonLdContextDefinitionElement[]`\]
|
|
63
|
+
|
|
64
|
+
JSON-LD Context.
|
|
65
|
+
|
|
66
|
+
#### Overrides
|
|
67
|
+
|
|
68
|
+
`Omit.@context`
|
|
69
|
+
|
|
70
|
+
***
|
|
71
|
+
|
|
72
|
+
### type? {#type}
|
|
73
|
+
|
|
74
|
+
> `optional` **type?**: `"AuditableItemGraphVertex"`
|
|
75
|
+
|
|
76
|
+
JSON-LD Type.
|
|
77
|
+
|
|
78
|
+
***
|
|
79
|
+
|
|
80
|
+
### aliasPatches? {#aliaspatches}
|
|
81
|
+
|
|
82
|
+
> `optional` **aliasPatches?**: [`IAuditableItemGraphListPatch`](IAuditableItemGraphListPatch.md)\<[`IAuditableItemGraphAlias`](IAuditableItemGraphAlias.md)\>
|
|
83
|
+
|
|
84
|
+
Patch operations for aliases.
|
|
85
|
+
|
|
86
|
+
***
|
|
87
|
+
|
|
88
|
+
### resourcePatches? {#resourcepatches}
|
|
89
|
+
|
|
90
|
+
> `optional` **resourcePatches?**: [`IAuditableItemGraphListPatch`](IAuditableItemGraphListPatch.md)\<[`IAuditableItemGraphResource`](IAuditableItemGraphResource.md)\>
|
|
91
|
+
|
|
92
|
+
Patch operations for resources.
|
|
93
|
+
|
|
94
|
+
***
|
|
95
|
+
|
|
96
|
+
### edgePatches? {#edgepatches}
|
|
97
|
+
|
|
98
|
+
> `optional` **edgePatches?**: [`IAuditableItemGraphListPatch`](IAuditableItemGraphListPatch.md)\<[`IAuditableItemGraphEdge`](IAuditableItemGraphEdge.md)\>
|
|
99
|
+
|
|
100
|
+
Patch operations for edges.
|
|
101
|
+
|
|
102
|
+
***
|
|
103
|
+
|
|
104
|
+
### organizationIdentity? {#organizationidentity}
|
|
105
|
+
|
|
106
|
+
> `optional` **organizationIdentity?**: `string`
|
|
107
|
+
|
|
108
|
+
The identity of the organization which controls the vertex.
|
|
109
|
+
|
|
110
|
+
#### Inherited from
|
|
111
|
+
|
|
112
|
+
[`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md).[`organizationIdentity`](IAuditableItemGraphVertex.md#organizationidentity)
|
|
113
|
+
|
|
114
|
+
***
|
|
115
|
+
|
|
116
|
+
### annotationObject? {#annotationobject}
|
|
117
|
+
|
|
118
|
+
> `optional` **annotationObject?**: `IJsonLdNodeObject`
|
|
119
|
+
|
|
120
|
+
The JSON-LD annotation object for the vertex.
|
|
121
|
+
|
|
122
|
+
#### Inherited from
|
|
123
|
+
|
|
124
|
+
[`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md).[`annotationObject`](IAuditableItemGraphVertex.md#annotationobject)
|
|
125
|
+
|
|
126
|
+
***
|
|
127
|
+
|
|
128
|
+
### verified? {#verified}
|
|
129
|
+
|
|
130
|
+
> `optional` **verified?**: `boolean`
|
|
131
|
+
|
|
132
|
+
Is the vertex verified, will only be populated when verification is requested.
|
|
133
|
+
|
|
134
|
+
#### Inherited from
|
|
135
|
+
|
|
136
|
+
[`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md).[`verified`](IAuditableItemGraphVertex.md#verified)
|
|
137
|
+
|
|
138
|
+
***
|
|
139
|
+
|
|
140
|
+
### version? {#version}
|
|
141
|
+
|
|
142
|
+
> `optional` **version?**: `number`
|
|
143
|
+
|
|
144
|
+
The version of the vertex, populated only when getting a specific version.
|
|
145
|
+
Maps to https://schema.org/version.
|
|
146
|
+
|
|
147
|
+
#### Inherited from
|
|
148
|
+
|
|
149
|
+
[`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md).[`version`](IAuditableItemGraphVertex.md#version)
|
|
@@ -4,15 +4,15 @@ The patch operation for JSON diffs.
|
|
|
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/aig/"`, `...IJsonLdContextDefinitionElement[]`\]
|
|
10
10
|
|
|
11
11
|
JSON-LD Context.
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
15
|
-
### type
|
|
15
|
+
### type {#type}
|
|
16
16
|
|
|
17
17
|
> **type**: `"AuditableItemGraphPatchOperation"`
|
|
18
18
|
|
|
@@ -20,36 +20,32 @@ JSON-LD Type.
|
|
|
20
20
|
|
|
21
21
|
***
|
|
22
22
|
|
|
23
|
-
### patchOperation
|
|
23
|
+
### patchOperation {#patchoperation}
|
|
24
24
|
|
|
25
25
|
> **patchOperation**: `"add"` \| `"remove"` \| `"replace"` \| `"move"` \| `"copy"` \| `"test"`
|
|
26
26
|
|
|
27
27
|
The operation that was performed on the item.
|
|
28
|
-
json-ld type:schema:Text
|
|
29
28
|
|
|
30
29
|
***
|
|
31
30
|
|
|
32
|
-
### patchPath
|
|
31
|
+
### patchPath {#patchpath}
|
|
33
32
|
|
|
34
33
|
> **patchPath**: `string`
|
|
35
34
|
|
|
36
35
|
The path to the object that was changed.
|
|
37
|
-
json-ld type:schema:Text
|
|
38
36
|
|
|
39
37
|
***
|
|
40
38
|
|
|
41
|
-
### patchFrom?
|
|
39
|
+
### patchFrom? {#patchfrom}
|
|
42
40
|
|
|
43
|
-
> `optional` **patchFrom
|
|
41
|
+
> `optional` **patchFrom?**: `string`
|
|
44
42
|
|
|
45
43
|
The path the value was copied or moved from.
|
|
46
|
-
json-ld type:schema:Text
|
|
47
44
|
|
|
48
45
|
***
|
|
49
46
|
|
|
50
|
-
### patchValue?
|
|
47
|
+
### patchValue? {#patchvalue}
|
|
51
48
|
|
|
52
|
-
> `optional` **patchValue
|
|
49
|
+
> `optional` **patchValue?**: `unknown`
|
|
53
50
|
|
|
54
51
|
The value to add.
|
|
55
|
-
json-ld type:json
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Interface: IAuditableItemGraphRemoveProofRequest
|
|
2
|
+
|
|
3
|
+
Remove the notarization proof from all changesets of a graph vertex.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### pathParams {#pathparams}
|
|
8
|
+
|
|
9
|
+
> **pathParams**: `object`
|
|
10
|
+
|
|
11
|
+
The parameters from the path.
|
|
12
|
+
|
|
13
|
+
#### id
|
|
14
|
+
|
|
15
|
+
> **id**: `string`
|
|
16
|
+
|
|
17
|
+
The id of the vertex whose proof should be removed.
|
|
@@ -8,9 +8,9 @@ Interface describing an auditable item graph vertex resource.
|
|
|
8
8
|
|
|
9
9
|
## Properties
|
|
10
10
|
|
|
11
|
-
### id?
|
|
11
|
+
### id? {#id}
|
|
12
12
|
|
|
13
|
-
> `optional` **id
|
|
13
|
+
> `optional` **id?**: `string`
|
|
14
14
|
|
|
15
15
|
The id of the element.
|
|
16
16
|
|
|
@@ -20,12 +20,11 @@ The id of the element.
|
|
|
20
20
|
|
|
21
21
|
***
|
|
22
22
|
|
|
23
|
-
### dateCreated?
|
|
23
|
+
### dateCreated? {#datecreated}
|
|
24
24
|
|
|
25
|
-
> `optional` **dateCreated
|
|
25
|
+
> `optional` **dateCreated?**: `string`
|
|
26
26
|
|
|
27
27
|
The date/time of when the element was created.
|
|
28
|
-
json-ld namespace:schema
|
|
29
28
|
|
|
30
29
|
#### Inherited from
|
|
31
30
|
|
|
@@ -33,12 +32,11 @@ json-ld namespace:schema
|
|
|
33
32
|
|
|
34
33
|
***
|
|
35
34
|
|
|
36
|
-
### dateModified?
|
|
35
|
+
### dateModified? {#datemodified}
|
|
37
36
|
|
|
38
|
-
> `optional` **dateModified
|
|
37
|
+
> `optional` **dateModified?**: `string`
|
|
39
38
|
|
|
40
39
|
The date/time of when the element was modified.
|
|
41
|
-
json-ld namespace:schema
|
|
42
40
|
|
|
43
41
|
#### Inherited from
|
|
44
42
|
|
|
@@ -46,12 +44,11 @@ json-ld namespace:schema
|
|
|
46
44
|
|
|
47
45
|
***
|
|
48
46
|
|
|
49
|
-
### dateDeleted?
|
|
47
|
+
### dateDeleted? {#datedeleted}
|
|
50
48
|
|
|
51
|
-
> `optional` **dateDeleted
|
|
49
|
+
> `optional` **dateDeleted?**: `string`
|
|
52
50
|
|
|
53
51
|
The date/time of when the element was deleted, as we never actually remove items.
|
|
54
|
-
json-ld namespace:schema
|
|
55
52
|
|
|
56
53
|
#### Inherited from
|
|
57
54
|
|
|
@@ -59,15 +56,15 @@ json-ld namespace:schema
|
|
|
59
56
|
|
|
60
57
|
***
|
|
61
58
|
|
|
62
|
-
### @context
|
|
59
|
+
### @context? {#context}
|
|
63
60
|
|
|
64
|
-
> **@context
|
|
61
|
+
> `optional` **@context?**: `"https://schema.twindev.org/aig/"` \| \[`"https://schema.twindev.org/aig/"`, `...IJsonLdContextDefinitionElement[]`\]
|
|
65
62
|
|
|
66
63
|
JSON-LD Context.
|
|
67
64
|
|
|
68
65
|
***
|
|
69
66
|
|
|
70
|
-
### type
|
|
67
|
+
### type {#type}
|
|
71
68
|
|
|
72
69
|
> **type**: `"AuditableItemGraphResource"`
|
|
73
70
|
|
|
@@ -75,9 +72,8 @@ JSON-LD Type.
|
|
|
75
72
|
|
|
76
73
|
***
|
|
77
74
|
|
|
78
|
-
### resourceObject?
|
|
75
|
+
### resourceObject? {#resourceobject}
|
|
79
76
|
|
|
80
|
-
> `optional` **resourceObject
|
|
77
|
+
> `optional` **resourceObject?**: `IJsonLdNodeObject`
|
|
81
78
|
|
|
82
79
|
The JSON-LD object for the resource.
|
|
83
|
-
json-ld type:json
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Interface: IAuditableItemGraphUpdatePartialRequest
|
|
2
|
+
|
|
3
|
+
Partially update an auditable item graph vertex (PATCH — explicit list patches).
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### pathParams {#pathparams}
|
|
8
|
+
|
|
9
|
+
> **pathParams**: `object`
|
|
10
|
+
|
|
11
|
+
The path parameters.
|
|
12
|
+
|
|
13
|
+
#### id
|
|
14
|
+
|
|
15
|
+
> **id**: `string`
|
|
16
|
+
|
|
17
|
+
The id of the vertex to update.
|
|
18
|
+
|
|
19
|
+
***
|
|
20
|
+
|
|
21
|
+
### body {#body}
|
|
22
|
+
|
|
23
|
+
> **body**: `Omit`\<[`IAuditableItemGraphPartialVertex`](IAuditableItemGraphPartialVertex.md), `"id"`\>
|
|
24
|
+
|
|
25
|
+
Partial vertex data; only defined properties are applied.
|
|
26
|
+
Sub-lists use `{ add, remove }` patch objects.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Interface: IAuditableItemGraphUpdateRequest
|
|
2
2
|
|
|
3
|
-
Update an auditable item graph vertex.
|
|
3
|
+
Update an auditable item graph vertex (PUT — full replacement of vertex state).
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### pathParams
|
|
7
|
+
### pathParams {#pathparams}
|
|
8
8
|
|
|
9
9
|
> **pathParams**: `object`
|
|
10
10
|
|
|
@@ -18,32 +18,8 @@ The id of the vertex to update.
|
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
21
|
-
### body
|
|
21
|
+
### body {#body}
|
|
22
22
|
|
|
23
|
-
> **body**: `
|
|
23
|
+
> **body**: `Omit`\<[`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md), `"id"`\>
|
|
24
24
|
|
|
25
|
-
The
|
|
26
|
-
|
|
27
|
-
#### annotationObject?
|
|
28
|
-
|
|
29
|
-
> `optional` **annotationObject**: `IJsonLdNodeObject`
|
|
30
|
-
|
|
31
|
-
The object to be used in the vertex as JSON-LD.
|
|
32
|
-
|
|
33
|
-
#### aliases?
|
|
34
|
-
|
|
35
|
-
> `optional` **aliases**: `object`[]
|
|
36
|
-
|
|
37
|
-
Alternative aliases that can be used to identify the vertex.
|
|
38
|
-
|
|
39
|
-
#### resources?
|
|
40
|
-
|
|
41
|
-
> `optional` **resources**: `object`[]
|
|
42
|
-
|
|
43
|
-
The resources attached to the vertex.
|
|
44
|
-
|
|
45
|
-
#### edges?
|
|
46
|
-
|
|
47
|
-
> `optional` **edges**: `object`[]
|
|
48
|
-
|
|
49
|
-
The edges connected to the vertex.
|
|
25
|
+
The full vertex payload. Replaces annotation and active sub-lists; omitted collections are cleared.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Interface: IAuditableItemGraphVersionGetRequest
|
|
2
|
+
|
|
3
|
+
Get an auditable item graph vertex at a specific version.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### headers? {#headers}
|
|
8
|
+
|
|
9
|
+
> `optional` **headers?**: `object`
|
|
10
|
+
|
|
11
|
+
The headers which can be used to determine the response data type.
|
|
12
|
+
|
|
13
|
+
#### accept
|
|
14
|
+
|
|
15
|
+
> **accept**: `"application/json"` \| `"application/ld+json"`
|
|
16
|
+
|
|
17
|
+
***
|
|
18
|
+
|
|
19
|
+
### pathParams {#pathparams}
|
|
20
|
+
|
|
21
|
+
> **pathParams**: `object`
|
|
22
|
+
|
|
23
|
+
The parameters from the path.
|
|
24
|
+
|
|
25
|
+
#### id
|
|
26
|
+
|
|
27
|
+
> **id**: `string`
|
|
28
|
+
|
|
29
|
+
The id of the vertex.
|
|
30
|
+
|
|
31
|
+
#### version
|
|
32
|
+
|
|
33
|
+
> **version**: `string`
|
|
34
|
+
|
|
35
|
+
The version number to get.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Interface: IAuditableItemGraphVersionGetResponse
|
|
2
|
+
|
|
3
|
+
Response to getting an auditable item graph vertex at a specific version.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### headers? {#headers}
|
|
8
|
+
|
|
9
|
+
> `optional` **headers?**: `object`
|
|
10
|
+
|
|
11
|
+
The headers.
|
|
12
|
+
|
|
13
|
+
#### content-type
|
|
14
|
+
|
|
15
|
+
> **content-type**: `"application/json"` \| `"application/ld+json"`
|
|
16
|
+
|
|
17
|
+
***
|
|
18
|
+
|
|
19
|
+
### body {#body}
|
|
20
|
+
|
|
21
|
+
> **body**: [`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md)
|
|
22
|
+
|
|
23
|
+
The response body.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Interface: IAuditableItemGraphVersionListRequest
|
|
2
|
+
|
|
3
|
+
Get all versions of an auditable item graph vertex.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### headers? {#headers}
|
|
8
|
+
|
|
9
|
+
> `optional` **headers?**: `object`
|
|
10
|
+
|
|
11
|
+
The headers which can be used to determine the response data type.
|
|
12
|
+
|
|
13
|
+
#### accept
|
|
14
|
+
|
|
15
|
+
> **accept**: `"application/json"` \| `"application/ld+json"`
|
|
16
|
+
|
|
17
|
+
***
|
|
18
|
+
|
|
19
|
+
### pathParams {#pathparams}
|
|
20
|
+
|
|
21
|
+
> **pathParams**: `object`
|
|
22
|
+
|
|
23
|
+
The parameters from the path.
|
|
24
|
+
|
|
25
|
+
#### id
|
|
26
|
+
|
|
27
|
+
> **id**: `string`
|
|
28
|
+
|
|
29
|
+
The id of the vertex.
|
|
30
|
+
|
|
31
|
+
***
|
|
32
|
+
|
|
33
|
+
### query? {#query}
|
|
34
|
+
|
|
35
|
+
> `optional` **query?**: `object`
|
|
36
|
+
|
|
37
|
+
The query parameters.
|
|
38
|
+
|
|
39
|
+
#### after?
|
|
40
|
+
|
|
41
|
+
> `optional` **after?**: `string`
|
|
42
|
+
|
|
43
|
+
Only return versions created after this ISO 8601 timestamp (exclusive).
|
|
44
|
+
|
|
45
|
+
#### before?
|
|
46
|
+
|
|
47
|
+
> `optional` **before?**: `string`
|
|
48
|
+
|
|
49
|
+
Only return versions created before this ISO 8601 timestamp (exclusive).
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Interface: IAuditableItemGraphVersionListResponse
|
|
2
|
+
|
|
3
|
+
Response to getting all versions of an auditable item graph vertex.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### headers? {#headers}
|
|
8
|
+
|
|
9
|
+
> `optional` **headers?**: `object`
|
|
10
|
+
|
|
11
|
+
The headers.
|
|
12
|
+
|
|
13
|
+
#### content-type
|
|
14
|
+
|
|
15
|
+
> **content-type**: `"application/json"` \| `"application/ld+json"`
|
|
16
|
+
|
|
17
|
+
***
|
|
18
|
+
|
|
19
|
+
### body {#body}
|
|
20
|
+
|
|
21
|
+
> **body**: [`IAuditableItemGraphVertexVersionList`](IAuditableItemGraphVertexVersionList.md)
|
|
22
|
+
|
|
23
|
+
The response body.
|
|
@@ -8,12 +8,11 @@ Interface describing an auditable item graph vertex.
|
|
|
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,7 +44,7 @@ json-ld namespace:schema
|
|
|
47
44
|
|
|
48
45
|
***
|
|
49
46
|
|
|
50
|
-
### @context
|
|
47
|
+
### @context {#context}
|
|
51
48
|
|
|
52
49
|
> **@context**: \[`"https://schema.twindev.org/aig/"`, `"https://schema.twindev.org/common/"`, `...IJsonLdContextDefinitionElement[]`\]
|
|
53
50
|
|
|
@@ -55,7 +52,7 @@ JSON-LD Context.
|
|
|
55
52
|
|
|
56
53
|
***
|
|
57
54
|
|
|
58
|
-
### id
|
|
55
|
+
### id {#id}
|
|
59
56
|
|
|
60
57
|
> **id**: `string`
|
|
61
58
|
|
|
@@ -67,7 +64,7 @@ The id of the element.
|
|
|
67
64
|
|
|
68
65
|
***
|
|
69
66
|
|
|
70
|
-
### type
|
|
67
|
+
### type {#type}
|
|
71
68
|
|
|
72
69
|
> **type**: `"AuditableItemGraphVertex"`
|
|
73
70
|
|
|
@@ -75,54 +72,57 @@ JSON-LD Type.
|
|
|
75
72
|
|
|
76
73
|
***
|
|
77
74
|
|
|
78
|
-
### organizationIdentity?
|
|
75
|
+
### organizationIdentity? {#organizationidentity}
|
|
79
76
|
|
|
80
|
-
> `optional` **organizationIdentity
|
|
77
|
+
> `optional` **organizationIdentity?**: `string`
|
|
81
78
|
|
|
82
79
|
The identity of the organization which controls the vertex.
|
|
83
|
-
json-ld namespace:twin-common
|
|
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 vertex.
|
|
92
|
-
json-ld namespace:twin-common
|
|
93
88
|
|
|
94
89
|
***
|
|
95
90
|
|
|
96
|
-
### aliases?
|
|
91
|
+
### aliases? {#aliases}
|
|
97
92
|
|
|
98
|
-
> `optional` **aliases
|
|
93
|
+
> `optional` **aliases?**: [`IAuditableItemGraphAlias`](IAuditableItemGraphAlias.md)[]
|
|
99
94
|
|
|
100
95
|
Alternative aliases that can be used to identify the vertex.
|
|
101
|
-
json-ld container:set
|
|
102
96
|
|
|
103
97
|
***
|
|
104
98
|
|
|
105
|
-
### resources?
|
|
99
|
+
### resources? {#resources}
|
|
106
100
|
|
|
107
|
-
> `optional` **resources
|
|
101
|
+
> `optional` **resources?**: [`IAuditableItemGraphResource`](IAuditableItemGraphResource.md)[]
|
|
108
102
|
|
|
109
103
|
The resources attached to the vertex.
|
|
110
|
-
json-ld container:set
|
|
111
104
|
|
|
112
105
|
***
|
|
113
106
|
|
|
114
|
-
### edges?
|
|
107
|
+
### edges? {#edges}
|
|
115
108
|
|
|
116
|
-
> `optional` **edges
|
|
109
|
+
> `optional` **edges?**: [`IAuditableItemGraphEdge`](IAuditableItemGraphEdge.md)[]
|
|
117
110
|
|
|
118
111
|
Edges connected to the vertex.
|
|
119
|
-
json-ld container:set
|
|
120
112
|
|
|
121
113
|
***
|
|
122
114
|
|
|
123
|
-
### verified?
|
|
115
|
+
### verified? {#verified}
|
|
124
116
|
|
|
125
|
-
> `optional` **verified
|
|
117
|
+
> `optional` **verified?**: `boolean`
|
|
126
118
|
|
|
127
119
|
Is the vertex verified, will only be populated when verification is requested.
|
|
128
|
-
|
|
120
|
+
|
|
121
|
+
***
|
|
122
|
+
|
|
123
|
+
### version? {#version}
|
|
124
|
+
|
|
125
|
+
> `optional` **version?**: `number`
|
|
126
|
+
|
|
127
|
+
The version of the vertex, populated only when getting a specific version.
|
|
128
|
+
Maps to https://schema.org/version.
|
|
@@ -4,7 +4,7 @@ Interface describing an auditable item graph vertex 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"`, `"AuditableItemGraphVertexList"`\]
|
|
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**: [`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md)[]
|
|
26
26
|
|
|
27
27
|
The list of vertices.
|
|
28
|
-
json-ld namespace:schema
|