@twin.org/auditable-item-graph-service 0.0.3-next.2 → 0.0.3-next.21
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/auditableItemGraphRoutes.js +609 -44
- package/dist/es/auditableItemGraphRoutes.js.map +1 -1
- package/dist/es/auditableItemGraphService.js +714 -159
- package/dist/es/auditableItemGraphService.js.map +1 -1
- package/dist/es/entities/auditableItemGraphAlias.js +8 -0
- package/dist/es/entities/auditableItemGraphAlias.js.map +1 -1
- package/dist/es/entities/auditableItemGraphChangeset.js +8 -0
- package/dist/es/entities/auditableItemGraphChangeset.js.map +1 -1
- package/dist/es/entities/auditableItemGraphVertex.js +8 -0
- package/dist/es/entities/auditableItemGraphVertex.js.map +1 -1
- package/dist/es/models/IAuditableItemGraphServiceConstructorOptions.js.map +1 -1
- package/dist/types/auditableItemGraphRoutes.d.ts +42 -2
- package/dist/types/auditableItemGraphService.d.ts +81 -55
- package/dist/types/entities/auditableItemGraphAlias.d.ts +4 -0
- package/dist/types/entities/auditableItemGraphChangeset.d.ts +4 -0
- package/dist/types/entities/auditableItemGraphVertex.d.ts +4 -0
- package/dist/types/models/IAuditableItemGraphServiceConstructorOptions.d.ts +4 -0
- package/docs/changelog.md +370 -71
- package/docs/examples.md +241 -1
- package/docs/open-api/spec.json +1218 -220
- package/docs/reference/classes/AuditableItemGraphAlias.md +18 -10
- package/docs/reference/classes/AuditableItemGraphChangeset.md +16 -8
- package/docs/reference/classes/AuditableItemGraphEdge.md +10 -10
- package/docs/reference/classes/AuditableItemGraphPatch.md +6 -6
- package/docs/reference/classes/AuditableItemGraphResource.md +9 -9
- package/docs/reference/classes/AuditableItemGraphService.md +221 -59
- package/docs/reference/classes/AuditableItemGraphVertex.md +26 -18
- package/docs/reference/functions/auditableItemGraphChangesetGet.md +31 -0
- package/docs/reference/functions/auditableItemGraphChangesetList.md +31 -0
- package/docs/reference/functions/auditableItemGraphUpdate.md +1 -1
- package/docs/reference/functions/auditableItemGraphUpdatePartial.md +31 -0
- package/docs/reference/functions/auditableItemGraphVersionGet.md +31 -0
- package/docs/reference/functions/auditableItemGraphVersionList.md +31 -0
- package/docs/reference/index.md +5 -0
- package/docs/reference/interfaces/IAuditableItemGraphServiceConstructorOptions.md +18 -10
- package/locales/en.json +7 -2
- package/package.json +6 -6
|
@@ -14,7 +14,7 @@ Class describing the auditable item graph alias.
|
|
|
14
14
|
|
|
15
15
|
## Properties
|
|
16
16
|
|
|
17
|
-
### id
|
|
17
|
+
### id {#id}
|
|
18
18
|
|
|
19
19
|
> **id**: `string`
|
|
20
20
|
|
|
@@ -22,15 +22,15 @@ The alternative alias for the vertex.
|
|
|
22
22
|
|
|
23
23
|
***
|
|
24
24
|
|
|
25
|
-
### aliasFormat?
|
|
25
|
+
### aliasFormat? {#aliasformat}
|
|
26
26
|
|
|
27
|
-
> `optional` **aliasFormat
|
|
27
|
+
> `optional` **aliasFormat?**: `string`
|
|
28
28
|
|
|
29
29
|
The format of the alias for the vertex.
|
|
30
30
|
|
|
31
31
|
***
|
|
32
32
|
|
|
33
|
-
### dateCreated
|
|
33
|
+
### dateCreated {#datecreated}
|
|
34
34
|
|
|
35
35
|
> **dateCreated**: `string`
|
|
36
36
|
|
|
@@ -38,24 +38,32 @@ The date/time of when the alias was created.
|
|
|
38
38
|
|
|
39
39
|
***
|
|
40
40
|
|
|
41
|
-
### dateModified?
|
|
41
|
+
### dateModified? {#datemodified}
|
|
42
42
|
|
|
43
|
-
> `optional` **dateModified
|
|
43
|
+
> `optional` **dateModified?**: `string`
|
|
44
44
|
|
|
45
45
|
The date/time of when the alias was last modified.
|
|
46
46
|
|
|
47
47
|
***
|
|
48
48
|
|
|
49
|
-
### dateDeleted?
|
|
49
|
+
### dateDeleted? {#datedeleted}
|
|
50
50
|
|
|
51
|
-
> `optional` **dateDeleted
|
|
51
|
+
> `optional` **dateDeleted?**: `string`
|
|
52
52
|
|
|
53
53
|
The timestamp of when the alias was deleted, as we never actually remove items.
|
|
54
54
|
|
|
55
55
|
***
|
|
56
56
|
|
|
57
|
-
### annotationObject?
|
|
57
|
+
### annotationObject? {#annotationobject}
|
|
58
58
|
|
|
59
|
-
> `optional` **annotationObject
|
|
59
|
+
> `optional` **annotationObject?**: `IJsonLdNodeObject`
|
|
60
60
|
|
|
61
61
|
Object to associate with the alias as JSON-LD.
|
|
62
|
+
|
|
63
|
+
***
|
|
64
|
+
|
|
65
|
+
### unique? {#unique}
|
|
66
|
+
|
|
67
|
+
> `optional` **unique?**: `boolean`
|
|
68
|
+
|
|
69
|
+
Whether the alias should be unique across the graph, meaning that no other vertex can have the same alias. Defaults to false.
|
|
@@ -14,7 +14,7 @@ Class describing a set of updates to the vertex.
|
|
|
14
14
|
|
|
15
15
|
## Properties
|
|
16
16
|
|
|
17
|
-
### id
|
|
17
|
+
### id {#id}
|
|
18
18
|
|
|
19
19
|
> **id**: `string`
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ The id of the changeset.
|
|
|
22
22
|
|
|
23
23
|
***
|
|
24
24
|
|
|
25
|
-
### vertexId
|
|
25
|
+
### vertexId {#vertexid}
|
|
26
26
|
|
|
27
27
|
> **vertexId**: `string`
|
|
28
28
|
|
|
@@ -30,7 +30,7 @@ The vertex the changeset belongs to.
|
|
|
30
30
|
|
|
31
31
|
***
|
|
32
32
|
|
|
33
|
-
### dateCreated
|
|
33
|
+
### dateCreated {#datecreated}
|
|
34
34
|
|
|
35
35
|
> **dateCreated**: `string`
|
|
36
36
|
|
|
@@ -38,15 +38,15 @@ The date/time of when the changeset was created.
|
|
|
38
38
|
|
|
39
39
|
***
|
|
40
40
|
|
|
41
|
-
### userIdentity?
|
|
41
|
+
### userIdentity? {#useridentity}
|
|
42
42
|
|
|
43
|
-
> `optional` **userIdentity
|
|
43
|
+
> `optional` **userIdentity?**: `string`
|
|
44
44
|
|
|
45
45
|
The identity of the user who made the changeset.
|
|
46
46
|
|
|
47
47
|
***
|
|
48
48
|
|
|
49
|
-
### patches
|
|
49
|
+
### patches {#patches}
|
|
50
50
|
|
|
51
51
|
> **patches**: [`AuditableItemGraphPatch`](AuditableItemGraphPatch.md)[]
|
|
52
52
|
|
|
@@ -54,8 +54,16 @@ The patches in the changeset.
|
|
|
54
54
|
|
|
55
55
|
***
|
|
56
56
|
|
|
57
|
-
### proofId?
|
|
57
|
+
### proofId? {#proofid}
|
|
58
58
|
|
|
59
|
-
> `optional` **proofId
|
|
59
|
+
> `optional` **proofId?**: `string`
|
|
60
60
|
|
|
61
61
|
The immutable proof id which contains the signature for this changeset.
|
|
62
|
+
|
|
63
|
+
***
|
|
64
|
+
|
|
65
|
+
### version? {#version}
|
|
66
|
+
|
|
67
|
+
> `optional` **version?**: `number`
|
|
68
|
+
|
|
69
|
+
The version number of the vertex after this changeset was applied.
|
|
@@ -14,7 +14,7 @@ Class describing the auditable item graph edge.
|
|
|
14
14
|
|
|
15
15
|
## Properties
|
|
16
16
|
|
|
17
|
-
### id
|
|
17
|
+
### id {#id}
|
|
18
18
|
|
|
19
19
|
> **id**: `string`
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ The id of the edge.
|
|
|
22
22
|
|
|
23
23
|
***
|
|
24
24
|
|
|
25
|
-
### dateCreated
|
|
25
|
+
### dateCreated {#datecreated}
|
|
26
26
|
|
|
27
27
|
> **dateCreated**: `string`
|
|
28
28
|
|
|
@@ -30,23 +30,23 @@ The date/time of when the edge was created.
|
|
|
30
30
|
|
|
31
31
|
***
|
|
32
32
|
|
|
33
|
-
### dateModified?
|
|
33
|
+
### dateModified? {#datemodified}
|
|
34
34
|
|
|
35
|
-
> `optional` **dateModified
|
|
35
|
+
> `optional` **dateModified?**: `string`
|
|
36
36
|
|
|
37
37
|
The date/time of when the edge was last modified.
|
|
38
38
|
|
|
39
39
|
***
|
|
40
40
|
|
|
41
|
-
### dateDeleted?
|
|
41
|
+
### dateDeleted? {#datedeleted}
|
|
42
42
|
|
|
43
|
-
> `optional` **dateDeleted
|
|
43
|
+
> `optional` **dateDeleted?**: `string`
|
|
44
44
|
|
|
45
45
|
The timestamp of when the edge was deleted, as we never actually remove items.
|
|
46
46
|
|
|
47
47
|
***
|
|
48
48
|
|
|
49
|
-
### targetId
|
|
49
|
+
### targetId {#targetid}
|
|
50
50
|
|
|
51
51
|
> **targetId**: `string`
|
|
52
52
|
|
|
@@ -54,7 +54,7 @@ The target id of the edge.
|
|
|
54
54
|
|
|
55
55
|
***
|
|
56
56
|
|
|
57
|
-
### edgeRelationships
|
|
57
|
+
### edgeRelationships {#edgerelationships}
|
|
58
58
|
|
|
59
59
|
> **edgeRelationships**: `string`[]
|
|
60
60
|
|
|
@@ -62,8 +62,8 @@ The relationships between the two vertices.
|
|
|
62
62
|
|
|
63
63
|
***
|
|
64
64
|
|
|
65
|
-
### annotationObject?
|
|
65
|
+
### annotationObject? {#annotationobject}
|
|
66
66
|
|
|
67
|
-
> `optional` **annotationObject
|
|
67
|
+
> `optional` **annotationObject?**: `IJsonLdNodeObject`
|
|
68
68
|
|
|
69
69
|
Object to associate with the edge as JSON-LD.
|
|
@@ -14,7 +14,7 @@ Class describing the auditable item graph patches.
|
|
|
14
14
|
|
|
15
15
|
## Properties
|
|
16
16
|
|
|
17
|
-
### op
|
|
17
|
+
### op {#op}
|
|
18
18
|
|
|
19
19
|
> **op**: `"add"` \| `"remove"` \| `"replace"` \| `"move"` \| `"copy"` \| `"test"`
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ The operation for the patch.
|
|
|
22
22
|
|
|
23
23
|
***
|
|
24
24
|
|
|
25
|
-
### path
|
|
25
|
+
### path {#path}
|
|
26
26
|
|
|
27
27
|
> **path**: `string`
|
|
28
28
|
|
|
@@ -30,16 +30,16 @@ The path for the patch.
|
|
|
30
30
|
|
|
31
31
|
***
|
|
32
32
|
|
|
33
|
-
### from?
|
|
33
|
+
### from? {#from}
|
|
34
34
|
|
|
35
|
-
> `optional` **from
|
|
35
|
+
> `optional` **from?**: `string`
|
|
36
36
|
|
|
37
37
|
The from for the patch.
|
|
38
38
|
|
|
39
39
|
***
|
|
40
40
|
|
|
41
|
-
### value?
|
|
41
|
+
### value? {#value}
|
|
42
42
|
|
|
43
|
-
> `optional` **value
|
|
43
|
+
> `optional` **value?**: `unknown`
|
|
44
44
|
|
|
45
45
|
The value for the patch.
|
|
@@ -14,15 +14,15 @@ Class describing the auditable item graph vertex resource.
|
|
|
14
14
|
|
|
15
15
|
## Properties
|
|
16
16
|
|
|
17
|
-
### id?
|
|
17
|
+
### id? {#id}
|
|
18
18
|
|
|
19
|
-
> `optional` **id
|
|
19
|
+
> `optional` **id?**: `string`
|
|
20
20
|
|
|
21
21
|
The id of the resource.
|
|
22
22
|
|
|
23
23
|
***
|
|
24
24
|
|
|
25
|
-
### dateCreated
|
|
25
|
+
### dateCreated {#datecreated}
|
|
26
26
|
|
|
27
27
|
> **dateCreated**: `string`
|
|
28
28
|
|
|
@@ -30,24 +30,24 @@ The date/time of when the resource was created.
|
|
|
30
30
|
|
|
31
31
|
***
|
|
32
32
|
|
|
33
|
-
### dateModified?
|
|
33
|
+
### dateModified? {#datemodified}
|
|
34
34
|
|
|
35
|
-
> `optional` **dateModified
|
|
35
|
+
> `optional` **dateModified?**: `string`
|
|
36
36
|
|
|
37
37
|
The date/time of when the resource was last modified.
|
|
38
38
|
|
|
39
39
|
***
|
|
40
40
|
|
|
41
|
-
### dateDeleted?
|
|
41
|
+
### dateDeleted? {#datedeleted}
|
|
42
42
|
|
|
43
|
-
> `optional` **dateDeleted
|
|
43
|
+
> `optional` **dateDeleted?**: `string`
|
|
44
44
|
|
|
45
45
|
The timestamp of when the resource was deleted, as we never actually remove items.
|
|
46
46
|
|
|
47
47
|
***
|
|
48
48
|
|
|
49
|
-
### resourceObject?
|
|
49
|
+
### resourceObject? {#resourceobject}
|
|
50
50
|
|
|
51
|
-
> `optional` **resourceObject
|
|
51
|
+
> `optional` **resourceObject?**: `IJsonLdNodeObject`
|
|
52
52
|
|
|
53
53
|
Object to associate with the resource as JSON-LD.
|