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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/cjs/index.cjs +265 -393
  2. package/dist/esm/index.mjs +264 -393
  3. package/dist/types/index.d.ts +4 -3
  4. package/dist/types/models/IAuditableItemGraphAlias.d.ts +9 -4
  5. package/dist/types/models/IAuditableItemGraphAuditedElement.d.ts +2 -2
  6. package/dist/types/models/IAuditableItemGraphChangeset.d.ts +16 -14
  7. package/dist/types/models/IAuditableItemGraphComponent.d.ts +52 -36
  8. package/dist/types/models/IAuditableItemGraphEdge.d.ts +11 -6
  9. package/dist/types/models/IAuditableItemGraphPatchOperation.d.ts +3 -1
  10. package/dist/types/models/IAuditableItemGraphResource.d.ts +3 -2
  11. package/dist/types/models/IAuditableItemGraphVertex.d.ts +13 -4
  12. package/dist/types/models/IAuditableItemGraphVertexList.d.ts +11 -4
  13. package/dist/types/models/api/IAuditableItemGraphCreateRequest.d.ts +6 -6
  14. package/dist/types/models/api/IAuditableItemGraphGetRequest.d.ts +2 -2
  15. package/dist/types/models/api/IAuditableItemGraphListRequest.d.ts +10 -2
  16. package/dist/types/models/api/IAuditableItemGraphUpdateRequest.d.ts +6 -6
  17. package/dist/types/models/auditableItemGraphContexts.d.ts +17 -0
  18. package/dist/types/models/auditableItemGraphTopics.d.ts +17 -0
  19. package/dist/types/models/auditableItemGraphTypes.d.ts +4 -20
  20. package/dist/types/models/eventBus/IAuditableItemGraphEventBusVertexCreated.d.ts +9 -0
  21. package/dist/types/models/eventBus/IAuditableItemGraphEventBusVertexUpdated.d.ts +14 -0
  22. package/docs/changelog.md +90 -1
  23. package/docs/reference/classes/AuditableItemGraphDataTypes.md +3 -3
  24. package/docs/reference/index.md +6 -4
  25. package/docs/reference/interfaces/IAuditableItemGraphAlias.md +18 -18
  26. package/docs/reference/interfaces/IAuditableItemGraphAuditedElement.md +4 -4
  27. package/docs/reference/interfaces/IAuditableItemGraphChangeset.md +14 -22
  28. package/docs/reference/interfaces/IAuditableItemGraphComponent.md +109 -37
  29. package/docs/reference/interfaces/IAuditableItemGraphCreateRequest.md +4 -4
  30. package/docs/reference/interfaces/IAuditableItemGraphEdge.md +21 -21
  31. package/docs/reference/interfaces/IAuditableItemGraphEventBusVertexCreated.md +11 -0
  32. package/docs/reference/interfaces/IAuditableItemGraphEventBusVertexUpdated.md +19 -0
  33. package/docs/reference/interfaces/IAuditableItemGraphGetRequest.md +2 -2
  34. package/docs/reference/interfaces/IAuditableItemGraphListRequest.md +15 -3
  35. package/docs/reference/interfaces/IAuditableItemGraphPatchOperation.md +2 -2
  36. package/docs/reference/interfaces/IAuditableItemGraphResource.md +5 -5
  37. package/docs/reference/interfaces/IAuditableItemGraphUpdateRequest.md +4 -4
  38. package/docs/reference/interfaces/IAuditableItemGraphVertex.md +18 -18
  39. package/docs/reference/interfaces/IAuditableItemGraphVertexList.md +6 -6
  40. package/docs/reference/type-aliases/AuditableItemGraphContexts.md +5 -0
  41. package/docs/reference/type-aliases/AuditableItemGraphTopics.md +5 -0
  42. package/docs/reference/type-aliases/AuditableItemGraphTypes.md +1 -1
  43. package/docs/reference/type-aliases/VerifyDepth.md +1 -1
  44. package/docs/reference/variables/AuditableItemGraphContexts.md +19 -0
  45. package/docs/reference/variables/AuditableItemGraphTopics.md +19 -0
  46. package/docs/reference/variables/AuditableItemGraphTypes.md +6 -30
  47. package/package.json +12 -10
  48. package/dist/types/models/IAuditableItemGraphCredential.d.ts +0 -34
  49. package/dist/types/models/IAuditableItemGraphVerification.d.ts +0 -29
  50. package/dist/types/models/auditableItemGraphVerificationState.d.ts +0 -37
  51. package/docs/reference/interfaces/IAuditableItemGraphCredential.md +0 -59
  52. package/docs/reference/interfaces/IAuditableItemGraphVerification.md +0 -47
  53. package/docs/reference/type-aliases/AuditableItemGraphVerificationState.md +0 -5
  54. package/docs/reference/variables/AuditableItemGraphVerificationState.md +0 -49
package/docs/changelog.md CHANGED
@@ -1,5 +1,94 @@
1
1
  # @twin.org/auditable-item-graph-models - Changelog
2
2
 
3
- ## v0.0.1-next.8
3
+ ## 0.0.1 (2025-07-09)
4
+
5
+
6
+ ### Features
7
+
8
+ * release to production ([0ce06f7](https://github.com/twinfoundation/auditable-item-graph/commit/0ce06f7825aa72d04b7a2ffd8c98cb56290b9d16))
9
+
10
+ ## [0.0.1-next.44](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-models-v0.0.1-next.43...auditable-item-graph-models-v0.0.1-next.44) (2025-06-20)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * query params force coercion ([2dd9afe](https://github.com/twinfoundation/auditable-item-graph/commit/2dd9afe9ec37e2a91c110317fe289f7495c187a0))
16
+
17
+ ## [0.0.1-next.43](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-models-v0.0.1-next.42...auditable-item-graph-models-v0.0.1-next.43) (2025-06-17)
18
+
19
+
20
+ ### Features
21
+
22
+ * improve JSON schemas ([bec8dc1](https://github.com/twinfoundation/auditable-item-graph/commit/bec8dc1f270c6c9710623a192b984cf46f8a5613))
23
+
24
+ ## [0.0.1-next.42](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-models-v0.0.1-next.41...auditable-item-graph-models-v0.0.1-next.42) (2025-06-12)
25
+
26
+
27
+ ### Features
28
+
29
+ * update dependencies ([6986689](https://github.com/twinfoundation/auditable-item-graph/commit/698668957a1fcb7f85ce2f117914d5980043924f))
30
+
31
+ ## [0.0.1-next.41](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-models-v0.0.1-next.40...auditable-item-graph-models-v0.0.1-next.41) (2025-06-03)
32
+
33
+
34
+ ### Features
35
+
36
+ * update ts-to-schema generation ([edce91e](https://github.com/twinfoundation/auditable-item-graph/commit/edce91e8272ab361595489458066040caf582df2))
37
+
38
+ ## [0.0.1-next.40](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-models-v0.0.1-next.39...auditable-item-graph-models-v0.0.1-next.40) (2025-05-28)
39
+
40
+
41
+ ### Features
42
+
43
+ * add data types with fully qualified name ([93e1ee7](https://github.com/twinfoundation/auditable-item-graph/commit/93e1ee7c0f7bad81f003787f797f363864e201af))
44
+
45
+ ## [0.0.1-next.39](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-models-v0.0.1-next.38...auditable-item-graph-models-v0.0.1-next.39) (2025-05-08)
46
+
47
+
48
+ ### Features
49
+
50
+ * use standard list json ld types ([8f53836](https://github.com/twinfoundation/auditable-item-graph/commit/8f53836d4c83a98d64d7f5fe0531bb9af09464ae))
51
+
52
+ ## [0.0.1-next.38](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-models-v0.0.1-next.37...auditable-item-graph-models-v0.0.1-next.38) (2025-04-17)
53
+
54
+
55
+ ### Features
56
+
57
+ * use shared store mechanism ([#10](https://github.com/twinfoundation/auditable-item-graph/issues/10)) ([da035e5](https://github.com/twinfoundation/auditable-item-graph/commit/da035e5eb8f157482b4eb2bdbc689c6c0647ff7d))
58
+
59
+ ## [0.0.1-next.37](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-models-v0.0.1-next.36...auditable-item-graph-models-v0.0.1-next.37) (2025-04-11)
60
+
61
+
62
+ ### Features
63
+
64
+ * improve comments ([97f311a](https://github.com/twinfoundation/auditable-item-graph/commit/97f311a9cc4353b5020a48a44420c97a2fa0c8d7))
65
+
66
+
67
+ ### Bug Fixes
68
+
69
+ * only include alias in index if not deleted ([#6](https://github.com/twinfoundation/auditable-item-graph/issues/6)) ([5da3c41](https://github.com/twinfoundation/auditable-item-graph/commit/5da3c419fafa2afefd34b1c570d103012b888a75))
70
+
71
+ ## [0.0.1-next.36](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-models-v0.0.1-next.35...auditable-item-graph-models-v0.0.1-next.36) (2025-04-11)
72
+
73
+
74
+ ### Bug Fixes
75
+
76
+ * only include alias in index if not deleted ([#6](https://github.com/twinfoundation/auditable-item-graph/issues/6)) ([5da3c41](https://github.com/twinfoundation/auditable-item-graph/commit/5da3c419fafa2afefd34b1c570d103012b888a75))
77
+
78
+ ## [0.0.1-next.35](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-models-v0.0.1-next.34...auditable-item-graph-models-v0.0.1-next.35) (2025-04-10)
79
+
80
+
81
+ ### Miscellaneous Chores
82
+
83
+ * **auditable-item-graph-models:** Synchronize repo versions
84
+
85
+ ## [0.0.1-next.34](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-models-v0.0.1-next.33...auditable-item-graph-models-v0.0.1-next.34) (2025-03-28)
86
+
87
+
88
+ ### Features
89
+
90
+ * improve comments ([97f311a](https://github.com/twinfoundation/auditable-item-graph/commit/97f311a9cc4353b5020a48a44420c97a2fa0c8d7))
91
+
92
+ ## v0.0.1-next.33
4
93
 
5
94
  - Initial Release
@@ -4,13 +4,13 @@ Handle all the data types for auditable item graph.
4
4
 
5
5
  ## Constructors
6
6
 
7
- ### new AuditableItemGraphDataTypes()
7
+ ### Constructor
8
8
 
9
- > **new AuditableItemGraphDataTypes**(): [`AuditableItemGraphDataTypes`](AuditableItemGraphDataTypes.md)
9
+ > **new AuditableItemGraphDataTypes**(): `AuditableItemGraphDataTypes`
10
10
 
11
11
  #### Returns
12
12
 
13
- [`AuditableItemGraphDataTypes`](AuditableItemGraphDataTypes.md)
13
+ `AuditableItemGraphDataTypes`
14
14
 
15
15
  ## Methods
16
16
 
@@ -10,11 +10,9 @@
10
10
  - [IAuditableItemGraphAuditedElement](interfaces/IAuditableItemGraphAuditedElement.md)
11
11
  - [IAuditableItemGraphChangeset](interfaces/IAuditableItemGraphChangeset.md)
12
12
  - [IAuditableItemGraphComponent](interfaces/IAuditableItemGraphComponent.md)
13
- - [IAuditableItemGraphCredential](interfaces/IAuditableItemGraphCredential.md)
14
13
  - [IAuditableItemGraphEdge](interfaces/IAuditableItemGraphEdge.md)
15
14
  - [IAuditableItemGraphPatchOperation](interfaces/IAuditableItemGraphPatchOperation.md)
16
15
  - [IAuditableItemGraphResource](interfaces/IAuditableItemGraphResource.md)
17
- - [IAuditableItemGraphVerification](interfaces/IAuditableItemGraphVerification.md)
18
16
  - [IAuditableItemGraphVertex](interfaces/IAuditableItemGraphVertex.md)
19
17
  - [IAuditableItemGraphVertexList](interfaces/IAuditableItemGraphVertexList.md)
20
18
  - [IAuditableItemGraphCreateRequest](interfaces/IAuditableItemGraphCreateRequest.md)
@@ -23,15 +21,19 @@
23
21
  - [IAuditableItemGraphListRequest](interfaces/IAuditableItemGraphListRequest.md)
24
22
  - [IAuditableItemGraphListResponse](interfaces/IAuditableItemGraphListResponse.md)
25
23
  - [IAuditableItemGraphUpdateRequest](interfaces/IAuditableItemGraphUpdateRequest.md)
24
+ - [IAuditableItemGraphEventBusVertexCreated](interfaces/IAuditableItemGraphEventBusVertexCreated.md)
25
+ - [IAuditableItemGraphEventBusVertexUpdated](interfaces/IAuditableItemGraphEventBusVertexUpdated.md)
26
26
 
27
27
  ## Type Aliases
28
28
 
29
+ - [AuditableItemGraphContexts](type-aliases/AuditableItemGraphContexts.md)
30
+ - [AuditableItemGraphTopics](type-aliases/AuditableItemGraphTopics.md)
29
31
  - [AuditableItemGraphTypes](type-aliases/AuditableItemGraphTypes.md)
30
- - [AuditableItemGraphVerificationState](type-aliases/AuditableItemGraphVerificationState.md)
31
32
  - [VerifyDepth](type-aliases/VerifyDepth.md)
32
33
 
33
34
  ## Variables
34
35
 
36
+ - [AuditableItemGraphContexts](variables/AuditableItemGraphContexts.md)
37
+ - [AuditableItemGraphTopics](variables/AuditableItemGraphTopics.md)
35
38
  - [AuditableItemGraphTypes](variables/AuditableItemGraphTypes.md)
36
- - [AuditableItemGraphVerificationState](variables/AuditableItemGraphVerificationState.md)
37
39
  - [VerifyDepth](variables/VerifyDepth.md)
@@ -10,12 +10,24 @@ Interface describing an alias for a vertex.
10
10
 
11
11
  ### @context
12
12
 
13
- > **@context**: `"https://schema.twindev.org/aig/"` \| [`"https://schema.twindev.org/aig/"`, `...string[]`]
13
+ > **@context**: `"https://schema.twindev.org/aig/"` \| \[`"https://schema.twindev.org/aig/"`, `...IJsonLdContextDefinitionElement[]`\]
14
14
 
15
15
  JSON-LD Context.
16
16
 
17
17
  ***
18
18
 
19
+ ### id
20
+
21
+ > **id**: `string`
22
+
23
+ The id of the element.
24
+
25
+ #### Overrides
26
+
27
+ [`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`id`](IAuditableItemGraphAuditedElement.md#id)
28
+
29
+ ***
30
+
19
31
  ### type
20
32
 
21
33
  > **type**: `"AuditableItemGraphAlias"`
@@ -24,11 +36,11 @@ JSON-LD Type.
24
36
 
25
37
  ***
26
38
 
27
- ### aliasObject?
39
+ ### annotationObject?
28
40
 
29
- > `optional` **aliasObject**: `IJsonLdNodeObject`
41
+ > `optional` **annotationObject**: `IJsonLdNodeObject`
30
42
 
31
- The JSON-LD object for the alias.
43
+ The JSON-LD annotation object for the alias.
32
44
 
33
45
  ***
34
46
 
@@ -40,21 +52,9 @@ The format of the id in the alias.
40
52
 
41
53
  ***
42
54
 
43
- ### id
44
-
45
- > **id**: `string`
46
-
47
- The id of the element.
48
-
49
- #### Inherited from
50
-
51
- [`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`id`](IAuditableItemGraphAuditedElement.md#id)
52
-
53
- ***
54
-
55
- ### dateCreated
55
+ ### dateCreated?
56
56
 
57
- > **dateCreated**: `string`
57
+ > `optional` **dateCreated**: `string`
58
58
 
59
59
  The date/time of when the element was created.
60
60
 
@@ -10,17 +10,17 @@ Interface describing the base properties for auditable elements.
10
10
 
11
11
  ## Properties
12
12
 
13
- ### id
13
+ ### id?
14
14
 
15
- > **id**: `string`
15
+ > `optional` **id**: `string`
16
16
 
17
17
  The id of the element.
18
18
 
19
19
  ***
20
20
 
21
- ### dateCreated
21
+ ### dateCreated?
22
22
 
23
- > **dateCreated**: `string`
23
+ > `optional` **dateCreated**: `string`
24
24
 
25
25
  The date/time of when the element was created.
26
26
 
@@ -1,12 +1,12 @@
1
1
  # Interface: IAuditableItemGraphChangeset
2
2
 
3
- Interface describing a set of updates to the vertex.
3
+ Interface describing a set of changes to the vertex.
4
4
 
5
5
  ## Properties
6
6
 
7
7
  ### @context
8
8
 
9
- > **@context**: `"https://schema.twindev.org/aig/"` \| [`"https://schema.twindev.org/aig/"`, `...string[]`]
9
+ > **@context**: \[`"https://schema.twindev.org/aig/"`, `"https://schema.twindev.org/common/"`, `...IJsonLdContextDefinitionElement[]`\]
10
10
 
11
11
  JSON-LD Context.
12
12
 
@@ -20,6 +20,14 @@ JSON-LD Type.
20
20
 
21
21
  ***
22
22
 
23
+ ### id
24
+
25
+ > **id**: `string`
26
+
27
+ The id of the changeset.
28
+
29
+ ***
30
+
23
31
  ### dateCreated
24
32
 
25
33
  > **dateCreated**: `string`
@@ -44,32 +52,16 @@ The patches in the changeset.
44
52
 
45
53
  ***
46
54
 
47
- ### hash
48
-
49
- > **hash**: `string`
50
-
51
- The hash for the changeset.
52
-
53
- ***
54
-
55
- ### signature
56
-
57
- > **signature**: `string`
58
-
59
- The signature for the changeset.
60
-
61
- ***
62
-
63
- ### immutableStorageId?
55
+ ### proofId?
64
56
 
65
- > `optional` **immutableStorageId**: `string`
57
+ > `optional` **proofId**: `string`
66
58
 
67
- The immutable storage id containing the signature for the changeset.
59
+ The immutable proof id which contains the signature for this changeset.
68
60
 
69
61
  ***
70
62
 
71
63
  ### verification?
72
64
 
73
- > `optional` **verification**: [`IAuditableItemGraphVerification`](IAuditableItemGraphVerification.md)
65
+ > `optional` **verification**: `IImmutableProofVerification`
74
66
 
75
67
  The verification for the changeset.
@@ -10,33 +10,49 @@ Interface describing an auditable item graph contract.
10
10
 
11
11
  ### create()
12
12
 
13
- > **create**(`vertexObject`?, `aliases`?, `resources`?, `edges`?, `userIdentity`?, `nodeIdentity`?): `Promise`\<`string`\>
13
+ > **create**(`vertex`, `userIdentity?`, `nodeIdentity?`): `Promise`\<`string`\>
14
14
 
15
15
  Create a new graph vertex.
16
16
 
17
17
  #### Parameters
18
18
 
19
- **vertexObject?**: `IJsonLdNodeObject`
19
+ ##### vertex
20
20
 
21
- The object for the vertex as JSON-LD.
21
+ The vertex to create.
22
22
 
23
- **aliases?**: `object`[]
23
+ ###### annotationObject?
24
+
25
+ `IJsonLdNodeObject`
26
+
27
+ The annotation object for the vertex as JSON-LD.
28
+
29
+ ###### aliases?
30
+
31
+ `object`[]
24
32
 
25
33
  Alternative aliases that can be used to identify the vertex.
26
34
 
27
- **resources?**: `object`[]
35
+ ###### resources?
36
+
37
+ `object`[]
28
38
 
29
39
  The resources attached to the vertex.
30
40
 
31
- **edges?**: `object`[]
41
+ ###### edges?
42
+
43
+ `object`[]
32
44
 
33
45
  The edges connected to the vertex.
34
46
 
35
- **userIdentity?**: `string`
47
+ ##### userIdentity?
48
+
49
+ `string`
36
50
 
37
51
  The identity to create the auditable item graph operation with.
38
52
 
39
- **nodeIdentity?**: `string`
53
+ ##### nodeIdentity?
54
+
55
+ `string`
40
56
 
41
57
  The node identity to use for vault operations.
42
58
 
@@ -50,37 +66,55 @@ The id of the new graph item.
50
66
 
51
67
  ### update()
52
68
 
53
- > **update**(`id`, `vertexObject`?, `aliases`?, `resources`?, `edges`?, `userIdentity`?, `nodeIdentity`?): `Promise`\<`void`\>
69
+ > **update**(`vertex`, `userIdentity?`, `nodeIdentity?`): `Promise`\<`void`\>
54
70
 
55
71
  Update a graph vertex.
56
72
 
57
73
  #### Parameters
58
74
 
59
- **id**: `string`
75
+ ##### vertex
76
+
77
+ The vertex to update.
78
+
79
+ ###### id
80
+
81
+ `string`
60
82
 
61
83
  The id of the vertex to update.
62
84
 
63
- **vertexObject?**: `IJsonLdNodeObject`
85
+ ###### annotationObject?
86
+
87
+ `IJsonLdNodeObject`
64
88
 
65
- The object for the vertex as JSON-LD.
89
+ The annotation object for the vertex as JSON-LD.
66
90
 
67
- **aliases?**: `object`[]
91
+ ###### aliases?
92
+
93
+ `object`[]
68
94
 
69
95
  Alternative aliases that can be used to identify the vertex.
70
96
 
71
- **resources?**: `object`[]
97
+ ###### resources?
98
+
99
+ `object`[]
72
100
 
73
101
  The resources attached to the vertex.
74
102
 
75
- **edges?**: `object`[]
103
+ ###### edges?
104
+
105
+ `object`[]
76
106
 
77
107
  The edges connected to the vertex.
78
108
 
79
- **userIdentity?**: `string`
109
+ ##### userIdentity?
110
+
111
+ `string`
80
112
 
81
113
  The identity to create the auditable item graph operation with.
82
114
 
83
- **nodeIdentity?**: `string`
115
+ ##### nodeIdentity?
116
+
117
+ `string`
84
118
 
85
119
  The node identity to use for vault operations.
86
120
 
@@ -94,29 +128,37 @@ Nothing.
94
128
 
95
129
  ### get()
96
130
 
97
- > **get**(`id`, `options`?): `Promise`\<[`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md)\>
131
+ > **get**(`id`, `options?`): `Promise`\<[`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md)\>
98
132
 
99
133
  Get a graph vertex.
100
134
 
101
135
  #### Parameters
102
136
 
103
- **id**: `string`
137
+ ##### id
138
+
139
+ `string`
104
140
 
105
141
  The id of the vertex to get.
106
142
 
107
- **options?**
143
+ ##### options?
108
144
 
109
145
  Additional options for the get operation.
110
146
 
111
- **options.includeDeleted?**: `boolean`
147
+ ###### includeDeleted?
148
+
149
+ `boolean`
112
150
 
113
151
  Whether to include deleted aliases, resource, edges, defaults to false.
114
152
 
115
- **options.includeChangesets?**: `boolean`
153
+ ###### includeChangesets?
154
+
155
+ `boolean`
116
156
 
117
157
  Whether to include the changesets of the vertex, defaults to false.
118
158
 
119
- **options.verifySignatureDepth?**: [`VerifyDepth`](../type-aliases/VerifyDepth.md)
159
+ ###### verifySignatureDepth?
160
+
161
+ [`VerifyDepth`](../type-aliases/VerifyDepth.md)
120
162
 
121
163
  How many signatures to verify, defaults to "none".
122
164
 
@@ -132,19 +174,23 @@ NotFoundError if the vertex is not found.
132
174
 
133
175
  ***
134
176
 
135
- ### removeImmutable()
177
+ ### removeVerifiable()
136
178
 
137
- > **removeImmutable**(`id`, `nodeIdentity`?): `Promise`\<`void`\>
179
+ > **removeVerifiable**(`id`, `nodeIdentity?`): `Promise`\<`void`\>
138
180
 
139
- Remove the immutable storage for an item.
181
+ Remove the verifiable storage for an item.
140
182
 
141
183
  #### Parameters
142
184
 
143
- **id**: `string`
185
+ ##### id
186
+
187
+ `string`
144
188
 
145
189
  The id of the vertex to remove the storage from.
146
190
 
147
- **nodeIdentity?**: `string`
191
+ ##### nodeIdentity?
192
+
193
+ `string`
148
194
 
149
195
  The node identity to use for vault operations.
150
196
 
@@ -162,41 +208,67 @@ NotFoundError if the vertex is not found.
162
208
 
163
209
  ### query()
164
210
 
165
- > **query**(`options`?, `orderBy`?, `orderByDirection`?, `properties`?, `cursor`?, `pageSize`?): `Promise`\<[`IAuditableItemGraphVertexList`](IAuditableItemGraphVertexList.md)\>
211
+ > **query**(`options?`, `conditions?`, `orderBy?`, `orderByDirection?`, `properties?`, `cursor?`, `pageSize?`): `Promise`\<[`IAuditableItemGraphVertexList`](IAuditableItemGraphVertexList.md)\>
166
212
 
167
213
  Query the graph for vertices.
168
214
 
169
215
  #### Parameters
170
216
 
171
- **options?**
217
+ ##### options?
172
218
 
173
219
  The query options.
174
220
 
175
- **options.id?**: `string`
221
+ ###### id?
222
+
223
+ `string`
176
224
 
177
225
  The optional id to look for.
178
226
 
179
- **options.idMode?**: `"both"` \| `"id"` \| `"alias"`
227
+ ###### idMode?
228
+
229
+ `"id"` \| `"alias"` \| `"both"`
180
230
 
181
231
  Look in id, alias or both, defaults to both.
182
232
 
183
- **orderBy?**: `"dateCreated"` \| `"dateModified"`
233
+ ###### resourceTypes?
234
+
235
+ `string`[]
236
+
237
+ Include vertices with specific resource types.
238
+
239
+ ##### conditions?
240
+
241
+ `IComparator`[]
242
+
243
+ Conditions to use in the query.
244
+
245
+ ##### orderBy?
184
246
 
185
247
  The order for the results, defaults to dateCreated.
186
248
 
187
- **orderByDirection?**: `SortDirection`
249
+ `"dateCreated"` | `"dateModified"`
250
+
251
+ ##### orderByDirection?
252
+
253
+ `SortDirection`
188
254
 
189
255
  The direction for the order, defaults to descending.
190
256
 
191
- **properties?**: keyof [`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md)[]
257
+ ##### properties?
258
+
259
+ keyof [`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md)[]
192
260
 
193
261
  The properties to return, if not provided defaults to id, dateCreated, aliases and object.
194
262
 
195
- **cursor?**: `string`
263
+ ##### cursor?
264
+
265
+ `string`
196
266
 
197
267
  The cursor to request the next page of entities.
198
268
 
199
- **pageSize?**: `number`
269
+ ##### pageSize?
270
+
271
+ `number`
200
272
 
201
273
  The maximum number of entities in a page.
202
274
 
@@ -4,15 +4,15 @@ Create an auditable item graph vertex.
4
4
 
5
5
  ## Properties
6
6
 
7
- ### body?
7
+ ### body
8
8
 
9
- > `optional` **body**: `object`
9
+ > **body**: `object`
10
10
 
11
11
  The data to be used in the vertex.
12
12
 
13
- #### vertexObject?
13
+ #### annotationObject?
14
14
 
15
- > `optional` **vertexObject**: `IJsonLdNodeObject`
15
+ > `optional` **annotationObject**: `IJsonLdNodeObject`
16
16
 
17
17
  The object to be used in the vertex as JSON-LD.
18
18
 
@@ -8,21 +8,9 @@ Interface describing an edge between two vertices in an auditable item graph.
8
8
 
9
9
  ## Properties
10
10
 
11
- ### id
12
-
13
- > **id**: `string`
14
-
15
- The id of the element.
16
-
17
- #### Inherited from
18
-
19
- [`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`id`](IAuditableItemGraphAuditedElement.md#id)
20
-
21
- ***
22
-
23
- ### dateCreated
11
+ ### dateCreated?
24
12
 
25
- > **dateCreated**: `string`
13
+ > `optional` **dateCreated**: `string`
26
14
 
27
15
  The date/time of when the element was created.
28
16
 
@@ -58,12 +46,24 @@ The date/time of when the element was deleted, as we never actually remove items
58
46
 
59
47
  ### @context
60
48
 
61
- > **@context**: `"https://schema.twindev.org/aig/"` \| [`"https://schema.twindev.org/aig/"`, `...string[]`]
49
+ > **@context**: `"https://schema.twindev.org/aig/"` \| \[`"https://schema.twindev.org/aig/"`, `...IJsonLdContextDefinitionElement[]`\]
62
50
 
63
51
  JSON-LD Context.
64
52
 
65
53
  ***
66
54
 
55
+ ### id
56
+
57
+ > **id**: `string`
58
+
59
+ The id of the element.
60
+
61
+ #### Overrides
62
+
63
+ [`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`id`](IAuditableItemGraphAuditedElement.md#id)
64
+
65
+ ***
66
+
67
67
  ### type
68
68
 
69
69
  > **type**: `"AuditableItemGraphEdge"`
@@ -72,16 +72,16 @@ JSON-LD Type.
72
72
 
73
73
  ***
74
74
 
75
- ### edgeObject?
75
+ ### annotationObject?
76
76
 
77
- > `optional` **edgeObject**: `IJsonLdNodeObject`
77
+ > `optional` **annotationObject**: `IJsonLdNodeObject`
78
78
 
79
- The JSON-LD object for the edge.
79
+ The JSON-LD annotation object for the edge.
80
80
 
81
81
  ***
82
82
 
83
- ### edgeRelationship
83
+ ### edgeRelationships
84
84
 
85
- > **edgeRelationship**: `string`
85
+ > **edgeRelationships**: `string`[]
86
86
 
87
- The relationship between the two vertices.
87
+ The relationships between the two vertices.
@@ -0,0 +1,11 @@
1
+ # Interface: IAuditableItemGraphEventBusVertexCreated
2
+
3
+ Event bus payload for vertex created.
4
+
5
+ ## Properties
6
+
7
+ ### id
8
+
9
+ > **id**: `string`
10
+
11
+ The id of the vertex created.