@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.
- package/dist/cjs/index.cjs +489 -165
- package/dist/esm/index.mjs +489 -165
- package/dist/types/index.d.ts +1 -0
- package/dist/types/models/IAuditableItemGraphAlias.d.ts +16 -3
- package/dist/types/models/IAuditableItemGraphAuditedElement.d.ts +6 -6
- package/dist/types/models/IAuditableItemGraphChangeset.d.ts +11 -2
- package/dist/types/models/IAuditableItemGraphComponent.d.ts +22 -40
- package/dist/types/models/IAuditableItemGraphCredential.d.ts +11 -2
- package/dist/types/models/IAuditableItemGraphEdge.d.ts +16 -3
- package/dist/types/models/IAuditableItemGraphPatchOperation.d.ts +26 -2
- package/dist/types/models/IAuditableItemGraphResource.d.ts +15 -2
- package/dist/types/models/IAuditableItemGraphVerification.d.ts +17 -3
- package/dist/types/models/IAuditableItemGraphVertex.d.ts +24 -2
- package/dist/types/models/IAuditableItemGraphVertexList.d.ts +23 -0
- package/dist/types/models/api/IAuditableItemGraphCreateRequest.d.ts +7 -7
- package/dist/types/models/api/IAuditableItemGraphGetRequest.d.ts +2 -2
- package/dist/types/models/api/IAuditableItemGraphGetResponse.d.ts +2 -13
- package/dist/types/models/api/IAuditableItemGraphListRequest.d.ts +6 -5
- package/dist/types/models/api/IAuditableItemGraphListResponse.d.ts +2 -12
- package/dist/types/models/api/IAuditableItemGraphUpdateRequest.d.ts +7 -7
- package/dist/types/models/auditableItemGraphTypes.d.ts +13 -9
- package/docs/changelog.md +1 -1
- package/docs/reference/index.md +1 -1
- package/docs/reference/interfaces/IAuditableItemGraphAlias.md +37 -25
- package/docs/reference/interfaces/IAuditableItemGraphAuditedElement.md +9 -9
- package/docs/reference/interfaces/IAuditableItemGraphChangeset.md +19 -3
- package/docs/reference/interfaces/IAuditableItemGraphComponent.md +13 -29
- package/docs/reference/interfaces/IAuditableItemGraphCreateRequest.md +3 -3
- package/docs/reference/interfaces/IAuditableItemGraphCredential.md +19 -3
- package/docs/reference/interfaces/IAuditableItemGraphEdge.md +33 -21
- package/docs/reference/interfaces/IAuditableItemGraphGetRequest.md +2 -2
- package/docs/reference/interfaces/IAuditableItemGraphGetResponse.md +4 -4
- package/docs/reference/interfaces/IAuditableItemGraphListRequest.md +5 -5
- package/docs/reference/interfaces/IAuditableItemGraphListResponse.md +3 -3
- package/docs/reference/interfaces/IAuditableItemGraphPatchOperation.md +46 -2
- package/docs/reference/interfaces/IAuditableItemGraphResource.md +30 -18
- package/docs/reference/interfaces/IAuditableItemGraphUpdateRequest.md +3 -3
- package/docs/reference/interfaces/IAuditableItemGraphVerification.md +30 -6
- package/docs/reference/interfaces/IAuditableItemGraphVertex.md +53 -13
- package/docs/reference/interfaces/IAuditableItemGraphVertexList.md +35 -0
- package/docs/reference/variables/AuditableItemGraphTypes.md +15 -9
- package/package.json +1 -1
- package/dist/types/models/IAuditableItemGraphMetadataElement.d.ts +0 -10
- 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: "
|
|
12
|
+
readonly Vertex: "AuditableItemGraphVertex";
|
|
13
13
|
/**
|
|
14
14
|
* Represents auditable item graph alias.
|
|
15
15
|
*/
|
|
16
|
-
readonly Alias: "
|
|
16
|
+
readonly Alias: "AuditableItemGraphAlias";
|
|
17
17
|
/**
|
|
18
18
|
* Represents auditable item graph resource.
|
|
19
19
|
*/
|
|
20
|
-
readonly Resource: "
|
|
20
|
+
readonly Resource: "AuditableItemGraphResource";
|
|
21
21
|
/**
|
|
22
22
|
* Represents auditable item graph edge.
|
|
23
23
|
*/
|
|
24
|
-
readonly Edge: "
|
|
24
|
+
readonly Edge: "AuditableItemGraphEdge";
|
|
25
25
|
/**
|
|
26
26
|
* Represents auditable item graph changeset.
|
|
27
27
|
*/
|
|
28
|
-
readonly Changeset: "
|
|
28
|
+
readonly Changeset: "AuditableItemGraphChangeset";
|
|
29
29
|
/**
|
|
30
30
|
* Represents patch operation.
|
|
31
31
|
*/
|
|
32
|
-
readonly PatchOperation: "
|
|
32
|
+
readonly PatchOperation: "AuditableItemGraphPatchOperation";
|
|
33
33
|
/**
|
|
34
34
|
* Represents the immutable credential payload.
|
|
35
35
|
*/
|
|
36
|
-
readonly Credential: "
|
|
36
|
+
readonly Credential: "AuditableItemGraphPatchCredential";
|
|
37
37
|
/**
|
|
38
38
|
* Represents auditable item stream verification.
|
|
39
39
|
*/
|
|
40
|
-
readonly Verification: "
|
|
40
|
+
readonly Verification: "AuditableItemGraphVerification";
|
|
41
41
|
/**
|
|
42
42
|
* Represents auditable item stream verification state.
|
|
43
43
|
*/
|
|
44
|
-
readonly VerificationState: "
|
|
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
package/docs/reference/index.md
CHANGED
|
@@ -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)
|
|
7
|
+
- [`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md)
|
|
8
8
|
|
|
9
9
|
## Properties
|
|
10
10
|
|
|
11
|
-
###
|
|
11
|
+
### @context
|
|
12
12
|
|
|
13
|
-
> `
|
|
13
|
+
> **@context**: `"https://schema.twindev.org/aig/"` \| [`"https://schema.twindev.org/aig/"`, `...string[]`]
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
JSON-LD Context.
|
|
16
16
|
|
|
17
17
|
***
|
|
18
18
|
|
|
19
|
-
###
|
|
19
|
+
### type
|
|
20
20
|
|
|
21
|
-
> **
|
|
21
|
+
> **type**: `"AuditableItemGraphAlias"`
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
JSON-LD Type.
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
***
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
### aliasObject?
|
|
28
|
+
|
|
29
|
+
> `optional` **aliasObject**: `IJsonLdNodeObject`
|
|
30
|
+
|
|
31
|
+
The JSON-LD object for the alias.
|
|
28
32
|
|
|
29
33
|
***
|
|
30
34
|
|
|
31
|
-
###
|
|
35
|
+
### aliasFormat?
|
|
32
36
|
|
|
33
|
-
> **
|
|
37
|
+
> `optional` **aliasFormat**: `string`
|
|
34
38
|
|
|
35
|
-
The
|
|
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).[`
|
|
51
|
+
[`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`id`](IAuditableItemGraphAuditedElement.md#id)
|
|
40
52
|
|
|
41
53
|
***
|
|
42
54
|
|
|
43
|
-
###
|
|
55
|
+
### dateCreated
|
|
44
56
|
|
|
45
|
-
>
|
|
57
|
+
> **dateCreated**: `string`
|
|
46
58
|
|
|
47
|
-
The
|
|
59
|
+
The date/time of when the element was created.
|
|
48
60
|
|
|
49
61
|
#### Inherited from
|
|
50
62
|
|
|
51
|
-
[`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`
|
|
63
|
+
[`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`dateCreated`](IAuditableItemGraphAuditedElement.md#datecreated)
|
|
52
64
|
|
|
53
65
|
***
|
|
54
66
|
|
|
55
|
-
###
|
|
67
|
+
### dateModified?
|
|
56
68
|
|
|
57
|
-
> `optional` **
|
|
69
|
+
> `optional` **dateModified**: `string`
|
|
58
70
|
|
|
59
|
-
The
|
|
71
|
+
The date/time of when the element was modified.
|
|
60
72
|
|
|
61
73
|
#### Inherited from
|
|
62
74
|
|
|
63
|
-
[`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`
|
|
75
|
+
[`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`dateModified`](IAuditableItemGraphAuditedElement.md#datemodified)
|
|
64
76
|
|
|
65
77
|
***
|
|
66
78
|
|
|
67
|
-
###
|
|
79
|
+
### dateDeleted?
|
|
68
80
|
|
|
69
|
-
> `optional` **
|
|
81
|
+
> `optional` **dateDeleted**: `string`
|
|
70
82
|
|
|
71
|
-
The
|
|
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
|
-
`
|
|
87
|
+
[`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`dateDeleted`](IAuditableItemGraphAuditedElement.md#datedeleted)
|
|
@@ -18,24 +18,24 @@ The id of the element.
|
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
21
|
-
###
|
|
21
|
+
### dateCreated
|
|
22
22
|
|
|
23
|
-
> **
|
|
23
|
+
> **dateCreated**: `string`
|
|
24
24
|
|
|
25
|
-
The
|
|
25
|
+
The date/time of when the element was created.
|
|
26
26
|
|
|
27
27
|
***
|
|
28
28
|
|
|
29
|
-
###
|
|
29
|
+
### dateModified?
|
|
30
30
|
|
|
31
|
-
> `optional` **
|
|
31
|
+
> `optional` **dateModified**: `string`
|
|
32
32
|
|
|
33
|
-
The
|
|
33
|
+
The date/time of when the element was modified.
|
|
34
34
|
|
|
35
35
|
***
|
|
36
36
|
|
|
37
|
-
###
|
|
37
|
+
### dateDeleted?
|
|
38
38
|
|
|
39
|
-
> `optional` **
|
|
39
|
+
> `optional` **dateDeleted**: `string`
|
|
40
40
|
|
|
41
|
-
The
|
|
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
|
-
###
|
|
7
|
+
### @context
|
|
8
8
|
|
|
9
|
-
>
|
|
9
|
+
> **@context**: `"https://schema.twindev.org/aig/"` \| [`"https://schema.twindev.org/aig/"`, `...string[]`]
|
|
10
10
|
|
|
11
|
-
|
|
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**(`
|
|
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
|
-
• **
|
|
19
|
+
• **vertexObject?**: `IJsonLdNodeObject`
|
|
20
20
|
|
|
21
|
-
The
|
|
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`, `
|
|
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
|
-
• **
|
|
63
|
+
• **vertexObject?**: `IJsonLdNodeObject`
|
|
64
64
|
|
|
65
|
-
The
|
|
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
|
|
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`\<[`
|
|
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
|
|
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?**: `"
|
|
183
|
+
• **orderBy?**: `"dateCreated"` \| `"dateModified"`
|
|
196
184
|
|
|
197
|
-
The order for the results, defaults to
|
|
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,
|
|
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`\<[`
|
|
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
|
-
####
|
|
13
|
+
#### vertexObject?
|
|
14
14
|
|
|
15
|
-
> `optional` **
|
|
15
|
+
> `optional` **vertexObject**: `IJsonLdNodeObject`
|
|
16
16
|
|
|
17
|
-
The
|
|
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
|
-
###
|
|
7
|
+
### @context
|
|
8
8
|
|
|
9
|
-
>
|
|
9
|
+
> **@context**: `"https://schema.twindev.org/aig/"` \| [`"https://schema.twindev.org/aig/"`, `...string[]`]
|
|
10
10
|
|
|
11
|
-
|
|
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)
|
|
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
|
-
###
|
|
23
|
+
### dateCreated
|
|
24
24
|
|
|
25
|
-
> **
|
|
25
|
+
> **dateCreated**: `string`
|
|
26
26
|
|
|
27
|
-
The
|
|
27
|
+
The date/time of when the element was created.
|
|
28
28
|
|
|
29
29
|
#### Inherited from
|
|
30
30
|
|
|
31
|
-
[`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`
|
|
31
|
+
[`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`dateCreated`](IAuditableItemGraphAuditedElement.md#datecreated)
|
|
32
32
|
|
|
33
33
|
***
|
|
34
34
|
|
|
35
|
-
###
|
|
35
|
+
### dateModified?
|
|
36
36
|
|
|
37
|
-
> `optional` **
|
|
37
|
+
> `optional` **dateModified**: `string`
|
|
38
38
|
|
|
39
|
-
The
|
|
39
|
+
The date/time of when the element was modified.
|
|
40
40
|
|
|
41
41
|
#### Inherited from
|
|
42
42
|
|
|
43
|
-
[`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`
|
|
43
|
+
[`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`dateModified`](IAuditableItemGraphAuditedElement.md#datemodified)
|
|
44
44
|
|
|
45
45
|
***
|
|
46
46
|
|
|
47
|
-
###
|
|
47
|
+
### dateDeleted?
|
|
48
48
|
|
|
49
|
-
> `optional` **
|
|
49
|
+
> `optional` **dateDeleted**: `string`
|
|
50
50
|
|
|
51
|
-
The
|
|
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).[`
|
|
55
|
+
[`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`dateDeleted`](IAuditableItemGraphAuditedElement.md#datedeleted)
|
|
56
56
|
|
|
57
57
|
***
|
|
58
58
|
|
|
59
|
-
###
|
|
59
|
+
### @context
|
|
60
60
|
|
|
61
|
-
>
|
|
61
|
+
> **@context**: `"https://schema.twindev.org/aig/"` \| [`"https://schema.twindev.org/aig/"`, `...string[]`]
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
JSON-LD Context.
|
|
64
64
|
|
|
65
65
|
***
|
|
66
66
|
|
|
67
|
-
###
|
|
67
|
+
### type
|
|
68
68
|
|
|
69
|
-
>
|
|
69
|
+
> **type**: `"AuditableItemGraphEdge"`
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
JSON-LD Type.
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
***
|
|
74
|
+
|
|
75
|
+
### edgeObject?
|
|
76
|
+
|
|
77
|
+
> `optional` **edgeObject**: `IJsonLdNodeObject`
|
|
78
|
+
|
|
79
|
+
The JSON-LD object for the edge.
|
|
74
80
|
|
|
75
|
-
|
|
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
|
-
####
|
|
13
|
+
#### accept
|
|
14
14
|
|
|
15
|
-
> **
|
|
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
|
-
####
|
|
13
|
+
#### content-type
|
|
14
14
|
|
|
15
|
-
> **
|
|
15
|
+
> **content-type**: `"application/json"` \| `"application/ld+json"`
|
|
16
16
|
|
|
17
17
|
***
|
|
18
18
|
|
|
19
19
|
### body
|
|
20
20
|
|
|
21
|
-
> **body**:
|
|
21
|
+
> **body**: [`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md)
|
|
22
22
|
|
|
23
|
-
The response body
|
|
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
|
-
####
|
|
13
|
+
#### accept
|
|
14
14
|
|
|
15
|
-
> **
|
|
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**: `"
|
|
39
|
+
> `optional` **orderBy**: `"dateCreated"` \| `"dateModified"`
|
|
40
40
|
|
|
41
|
-
The order for the results, default to
|
|
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,
|
|
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
|
-
####
|
|
13
|
+
#### content-type
|
|
14
14
|
|
|
15
|
-
> **
|
|
15
|
+
> **content-type**: `"application/json"` \| `"application/ld+json"`
|
|
16
16
|
|
|
17
17
|
***
|
|
18
18
|
|
|
19
19
|
### body
|
|
20
20
|
|
|
21
|
-
> **body**: `
|
|
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
|
-
##
|
|
5
|
+
## Properties
|
|
6
6
|
|
|
7
|
-
|
|
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.
|