@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.
Files changed (38) hide show
  1. package/README.md +3 -1
  2. package/dist/es/auditableItemGraphRoutes.js +609 -44
  3. package/dist/es/auditableItemGraphRoutes.js.map +1 -1
  4. package/dist/es/auditableItemGraphService.js +714 -159
  5. package/dist/es/auditableItemGraphService.js.map +1 -1
  6. package/dist/es/entities/auditableItemGraphAlias.js +8 -0
  7. package/dist/es/entities/auditableItemGraphAlias.js.map +1 -1
  8. package/dist/es/entities/auditableItemGraphChangeset.js +8 -0
  9. package/dist/es/entities/auditableItemGraphChangeset.js.map +1 -1
  10. package/dist/es/entities/auditableItemGraphVertex.js +8 -0
  11. package/dist/es/entities/auditableItemGraphVertex.js.map +1 -1
  12. package/dist/es/models/IAuditableItemGraphServiceConstructorOptions.js.map +1 -1
  13. package/dist/types/auditableItemGraphRoutes.d.ts +42 -2
  14. package/dist/types/auditableItemGraphService.d.ts +81 -55
  15. package/dist/types/entities/auditableItemGraphAlias.d.ts +4 -0
  16. package/dist/types/entities/auditableItemGraphChangeset.d.ts +4 -0
  17. package/dist/types/entities/auditableItemGraphVertex.d.ts +4 -0
  18. package/dist/types/models/IAuditableItemGraphServiceConstructorOptions.d.ts +4 -0
  19. package/docs/changelog.md +370 -71
  20. package/docs/examples.md +241 -1
  21. package/docs/open-api/spec.json +1218 -220
  22. package/docs/reference/classes/AuditableItemGraphAlias.md +18 -10
  23. package/docs/reference/classes/AuditableItemGraphChangeset.md +16 -8
  24. package/docs/reference/classes/AuditableItemGraphEdge.md +10 -10
  25. package/docs/reference/classes/AuditableItemGraphPatch.md +6 -6
  26. package/docs/reference/classes/AuditableItemGraphResource.md +9 -9
  27. package/docs/reference/classes/AuditableItemGraphService.md +221 -59
  28. package/docs/reference/classes/AuditableItemGraphVertex.md +26 -18
  29. package/docs/reference/functions/auditableItemGraphChangesetGet.md +31 -0
  30. package/docs/reference/functions/auditableItemGraphChangesetList.md +31 -0
  31. package/docs/reference/functions/auditableItemGraphUpdate.md +1 -1
  32. package/docs/reference/functions/auditableItemGraphUpdatePartial.md +31 -0
  33. package/docs/reference/functions/auditableItemGraphVersionGet.md +31 -0
  34. package/docs/reference/functions/auditableItemGraphVersionList.md +31 -0
  35. package/docs/reference/index.md +5 -0
  36. package/docs/reference/interfaces/IAuditableItemGraphServiceConstructorOptions.md +18 -10
  37. package/locales/en.json +7 -2
  38. 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**: `string`
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**: `string`
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**: `string`
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**: `IJsonLdNodeObject`
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**: `string`
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**: `string`
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**: `string`
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**: `string`
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**: `IJsonLdNodeObject`
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**: `string`
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**: `unknown`
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**: `string`
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**: `string`
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**: `string`
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**: `IJsonLdNodeObject`
51
+ > `optional` **resourceObject?**: `IJsonLdNodeObject`
52
52
 
53
53
  Object to associate with the resource as JSON-LD.