@twin.org/auditable-item-graph-models 0.0.2-next.8 → 0.0.3-next.0
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/es/dataTypes/auditableItemGraphDataTypes.js +65 -0
- package/dist/es/dataTypes/auditableItemGraphDataTypes.js.map +1 -0
- package/dist/es/index.js +25 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphAlias.js +2 -0
- package/dist/es/models/IAuditableItemGraphAlias.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphAuditedElement.js +4 -0
- package/dist/es/models/IAuditableItemGraphAuditedElement.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphChangeset.js +2 -0
- package/dist/es/models/IAuditableItemGraphChangeset.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphComponent.js +2 -0
- package/dist/es/models/IAuditableItemGraphComponent.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphEdge.js +2 -0
- package/dist/es/models/IAuditableItemGraphEdge.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphPatchOperation.js +2 -0
- package/dist/es/models/IAuditableItemGraphPatchOperation.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphResource.js +2 -0
- package/dist/es/models/IAuditableItemGraphResource.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphVertex.js +2 -0
- package/dist/es/models/IAuditableItemGraphVertex.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphVertexList.js +2 -0
- package/dist/es/models/IAuditableItemGraphVertexList.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphCreateRequest.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphCreateRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphGetRequest.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphGetRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphGetResponse.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphGetResponse.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphListRequest.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphListRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphListResponse.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphListResponse.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphUpdateRequest.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphUpdateRequest.js.map +1 -0
- package/dist/es/models/auditableItemGraphContexts.js +17 -0
- package/dist/es/models/auditableItemGraphContexts.js.map +1 -0
- package/dist/es/models/auditableItemGraphTopics.js +17 -0
- package/dist/es/models/auditableItemGraphTopics.js.map +1 -0
- package/dist/es/models/auditableItemGraphTypes.js +37 -0
- package/dist/es/models/auditableItemGraphTypes.js.map +1 -0
- package/dist/es/models/eventBus/IAuditableItemGraphEventBusVertexCreated.js +4 -0
- package/dist/es/models/eventBus/IAuditableItemGraphEventBusVertexCreated.js.map +1 -0
- package/dist/es/models/eventBus/IAuditableItemGraphEventBusVertexUpdated.js +2 -0
- package/dist/es/models/eventBus/IAuditableItemGraphEventBusVertexUpdated.js.map +1 -0
- package/dist/es/models/verifyDepth.js +21 -0
- package/dist/es/models/verifyDepth.js.map +1 -0
- package/dist/es/schemas/AuditableItemGraphAlias.json +65 -0
- package/dist/es/schemas/AuditableItemGraphChangeset.json +66 -0
- package/dist/es/schemas/AuditableItemGraphEdge.json +73 -0
- package/dist/es/schemas/AuditableItemGraphPatchOperation.json +65 -0
- package/dist/es/schemas/AuditableItemGraphResource.json +60 -0
- package/dist/es/schemas/AuditableItemGraphVertex.json +93 -0
- package/dist/es/schemas/AuditableItemGraphVertexList.json +59 -0
- package/dist/types/index.d.ts +22 -22
- package/dist/types/models/IAuditableItemGraphAlias.d.ts +3 -3
- package/dist/types/models/IAuditableItemGraphChangeset.d.ts +4 -4
- package/dist/types/models/IAuditableItemGraphComponent.d.ts +6 -11
- package/dist/types/models/IAuditableItemGraphEdge.d.ts +3 -3
- package/dist/types/models/IAuditableItemGraphPatchOperation.d.ts +2 -2
- package/dist/types/models/IAuditableItemGraphResource.d.ts +3 -3
- package/dist/types/models/IAuditableItemGraphVertex.d.ts +9 -9
- package/dist/types/models/IAuditableItemGraphVertexList.d.ts +3 -3
- package/dist/types/models/api/IAuditableItemGraphGetRequest.d.ts +1 -1
- package/dist/types/models/api/IAuditableItemGraphGetResponse.d.ts +1 -1
- package/dist/types/models/api/IAuditableItemGraphListRequest.d.ts +1 -1
- package/dist/types/models/api/IAuditableItemGraphListResponse.d.ts +1 -1
- package/docs/reference/interfaces/IAuditableItemGraphChangeset.md +2 -2
- package/docs/reference/interfaces/IAuditableItemGraphComponent.md +3 -41
- package/docs/reference/interfaces/IAuditableItemGraphVertex.md +3 -3
- package/package.json +5 -7
- package/dist/cjs/index.cjs +0 -716
- package/dist/esm/index.mjs +0 -710
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.twindev.org/aig/AuditableItemGraphEdge",
|
|
4
|
+
"description": "Interface describing an edge between two vertices in an auditable item graph.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"id": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The id of the element."
|
|
10
|
+
},
|
|
11
|
+
"dateCreated": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "The date/time of when the element was created."
|
|
14
|
+
},
|
|
15
|
+
"dateModified": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "The date/time of when the element was modified."
|
|
18
|
+
},
|
|
19
|
+
"dateDeleted": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "The date/time of when the element was deleted, as we never actually remove items."
|
|
22
|
+
},
|
|
23
|
+
"@context": {
|
|
24
|
+
"anyOf": [
|
|
25
|
+
{
|
|
26
|
+
"type": "string",
|
|
27
|
+
"const": "https://schema.twindev.org/aig/"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"type": "array",
|
|
31
|
+
"minItems": 1,
|
|
32
|
+
"prefixItems": [
|
|
33
|
+
{
|
|
34
|
+
"type": "string",
|
|
35
|
+
"const": "https://schema.twindev.org/aig/"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"items": {
|
|
39
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"description": "JSON-LD Context."
|
|
44
|
+
},
|
|
45
|
+
"targetId": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"description": "The target vertex id the edge connects to."
|
|
48
|
+
},
|
|
49
|
+
"type": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"const": "AuditableItemGraphEdge",
|
|
52
|
+
"description": "JSON-LD Type."
|
|
53
|
+
},
|
|
54
|
+
"annotationObject": {
|
|
55
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject",
|
|
56
|
+
"description": "The JSON-LD annotation object for the edge."
|
|
57
|
+
},
|
|
58
|
+
"edgeRelationships": {
|
|
59
|
+
"type": "array",
|
|
60
|
+
"items": {
|
|
61
|
+
"type": "string"
|
|
62
|
+
},
|
|
63
|
+
"description": "The relationships between the two vertices."
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"required": [
|
|
67
|
+
"@context",
|
|
68
|
+
"targetId",
|
|
69
|
+
"type",
|
|
70
|
+
"edgeRelationships"
|
|
71
|
+
],
|
|
72
|
+
"additionalProperties": false
|
|
73
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.twindev.org/aig/AuditableItemGraphPatchOperation",
|
|
4
|
+
"description": "The patch operation for JSON diffs.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"@context": {
|
|
8
|
+
"anyOf": [
|
|
9
|
+
{
|
|
10
|
+
"type": "string",
|
|
11
|
+
"const": "https://schema.twindev.org/aig/"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"type": "array",
|
|
15
|
+
"minItems": 1,
|
|
16
|
+
"prefixItems": [
|
|
17
|
+
{
|
|
18
|
+
"type": "string",
|
|
19
|
+
"const": "https://schema.twindev.org/aig/"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"items": {
|
|
23
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"description": "JSON-LD Context."
|
|
28
|
+
},
|
|
29
|
+
"type": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"const": "AuditableItemGraphPatchOperation",
|
|
32
|
+
"description": "JSON-LD Type."
|
|
33
|
+
},
|
|
34
|
+
"patchOperation": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"enum": [
|
|
37
|
+
"add",
|
|
38
|
+
"remove",
|
|
39
|
+
"replace",
|
|
40
|
+
"move",
|
|
41
|
+
"copy",
|
|
42
|
+
"test"
|
|
43
|
+
],
|
|
44
|
+
"description": "The operation that was performed on the item."
|
|
45
|
+
},
|
|
46
|
+
"patchPath": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"description": "The path to the object that was changed."
|
|
49
|
+
},
|
|
50
|
+
"patchFrom": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"description": "The path the value was copied or moved from."
|
|
53
|
+
},
|
|
54
|
+
"patchValue": {
|
|
55
|
+
"description": "The value to add."
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"required": [
|
|
59
|
+
"@context",
|
|
60
|
+
"type",
|
|
61
|
+
"patchOperation",
|
|
62
|
+
"patchPath"
|
|
63
|
+
],
|
|
64
|
+
"additionalProperties": false
|
|
65
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.twindev.org/aig/AuditableItemGraphResource",
|
|
4
|
+
"description": "Interface describing an auditable item graph vertex resource.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"id": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The id of the element."
|
|
10
|
+
},
|
|
11
|
+
"dateCreated": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "The date/time of when the element was created."
|
|
14
|
+
},
|
|
15
|
+
"dateModified": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "The date/time of when the element was modified."
|
|
18
|
+
},
|
|
19
|
+
"dateDeleted": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "The date/time of when the element was deleted, as we never actually remove items."
|
|
22
|
+
},
|
|
23
|
+
"@context": {
|
|
24
|
+
"anyOf": [
|
|
25
|
+
{
|
|
26
|
+
"type": "string",
|
|
27
|
+
"const": "https://schema.twindev.org/aig/"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"type": "array",
|
|
31
|
+
"minItems": 1,
|
|
32
|
+
"prefixItems": [
|
|
33
|
+
{
|
|
34
|
+
"type": "string",
|
|
35
|
+
"const": "https://schema.twindev.org/aig/"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"items": {
|
|
39
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"description": "JSON-LD Context."
|
|
44
|
+
},
|
|
45
|
+
"type": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"const": "AuditableItemGraphResource",
|
|
48
|
+
"description": "JSON-LD Type."
|
|
49
|
+
},
|
|
50
|
+
"resourceObject": {
|
|
51
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject",
|
|
52
|
+
"description": "The JSON-LD object for the resource."
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"required": [
|
|
56
|
+
"@context",
|
|
57
|
+
"type"
|
|
58
|
+
],
|
|
59
|
+
"additionalProperties": false
|
|
60
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.twindev.org/aig/AuditableItemGraphVertex",
|
|
4
|
+
"description": "Interface describing an auditable item graph vertex.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"id": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The id of the element."
|
|
10
|
+
},
|
|
11
|
+
"dateCreated": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "The date/time of when the element was created."
|
|
14
|
+
},
|
|
15
|
+
"dateModified": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "The date/time of when the element was modified."
|
|
18
|
+
},
|
|
19
|
+
"dateDeleted": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "The date/time of when the element was deleted, as we never actually remove items."
|
|
22
|
+
},
|
|
23
|
+
"@context": {
|
|
24
|
+
"type": "array",
|
|
25
|
+
"minItems": 2,
|
|
26
|
+
"description": "JSON-LD Context.",
|
|
27
|
+
"prefixItems": [
|
|
28
|
+
{
|
|
29
|
+
"type": "string",
|
|
30
|
+
"const": "https://schema.twindev.org/aig/"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"type": "string",
|
|
34
|
+
"const": "https://schema.twindev.org/common/"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"items": {
|
|
38
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"type": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"const": "AuditableItemGraphVertex",
|
|
44
|
+
"description": "JSON-LD Type."
|
|
45
|
+
},
|
|
46
|
+
"organizationIdentity": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"description": "The identity of the organization which controls the vertex."
|
|
49
|
+
},
|
|
50
|
+
"annotationObject": {
|
|
51
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject",
|
|
52
|
+
"description": "The JSON-LD annotation object for the vertex."
|
|
53
|
+
},
|
|
54
|
+
"aliases": {
|
|
55
|
+
"type": "array",
|
|
56
|
+
"items": {
|
|
57
|
+
"$ref": "https://schema.twindev.org/aig/AuditableItemGraphAlias"
|
|
58
|
+
},
|
|
59
|
+
"description": "Alternative aliases that can be used to identify the vertex."
|
|
60
|
+
},
|
|
61
|
+
"resources": {
|
|
62
|
+
"type": "array",
|
|
63
|
+
"items": {
|
|
64
|
+
"$ref": "https://schema.twindev.org/aig/AuditableItemGraphResource"
|
|
65
|
+
},
|
|
66
|
+
"description": "The resources attached to the vertex."
|
|
67
|
+
},
|
|
68
|
+
"edges": {
|
|
69
|
+
"type": "array",
|
|
70
|
+
"items": {
|
|
71
|
+
"$ref": "https://schema.twindev.org/aig/AuditableItemGraphEdge"
|
|
72
|
+
},
|
|
73
|
+
"description": "Edges connected to the vertex."
|
|
74
|
+
},
|
|
75
|
+
"changesets": {
|
|
76
|
+
"type": "array",
|
|
77
|
+
"items": {
|
|
78
|
+
"$ref": "https://schema.twindev.org/aig/AuditableItemGraphChangeset"
|
|
79
|
+
},
|
|
80
|
+
"description": "Changesets for the vertex."
|
|
81
|
+
},
|
|
82
|
+
"verified": {
|
|
83
|
+
"type": "boolean",
|
|
84
|
+
"description": "Is the vertex verified, will only be populated when verification is requested."
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"required": [
|
|
88
|
+
"@context",
|
|
89
|
+
"id",
|
|
90
|
+
"type"
|
|
91
|
+
],
|
|
92
|
+
"additionalProperties": false
|
|
93
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.twindev.org/aig/AuditableItemGraphVertexList",
|
|
4
|
+
"description": "Interface describing an auditable item graph vertex list.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"@context": {
|
|
8
|
+
"type": "array",
|
|
9
|
+
"minItems": 2,
|
|
10
|
+
"description": "JSON-LD Context.",
|
|
11
|
+
"prefixItems": [
|
|
12
|
+
{
|
|
13
|
+
"type": "string",
|
|
14
|
+
"const": "https://schema.org"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"type": "string",
|
|
18
|
+
"const": "https://schema.twindev.org/aig/"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"items": {
|
|
22
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"type": {
|
|
26
|
+
"type": "array",
|
|
27
|
+
"items": {
|
|
28
|
+
"allOf": [
|
|
29
|
+
{
|
|
30
|
+
"type": "string",
|
|
31
|
+
"const": "ItemList"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"type": "string",
|
|
35
|
+
"const": "AuditableItemGraphVertexList"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"description": "JSON-LD Type."
|
|
40
|
+
},
|
|
41
|
+
"itemListElement": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"items": {
|
|
44
|
+
"$ref": "https://schema.twindev.org/aig/AuditableItemGraphVertex"
|
|
45
|
+
},
|
|
46
|
+
"description": "The list of vertices."
|
|
47
|
+
},
|
|
48
|
+
"nextItem": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"description": "The cursor to get the next chunk of vertices."
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"required": [
|
|
54
|
+
"@context",
|
|
55
|
+
"type",
|
|
56
|
+
"itemListElement"
|
|
57
|
+
],
|
|
58
|
+
"additionalProperties": false
|
|
59
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export * from "./dataTypes/auditableItemGraphDataTypes";
|
|
2
|
-
export * from "./models/api/IAuditableItemGraphCreateRequest";
|
|
3
|
-
export * from "./models/api/IAuditableItemGraphGetRequest";
|
|
4
|
-
export * from "./models/api/IAuditableItemGraphGetResponse";
|
|
5
|
-
export * from "./models/api/IAuditableItemGraphListRequest";
|
|
6
|
-
export * from "./models/api/IAuditableItemGraphListResponse";
|
|
7
|
-
export * from "./models/api/IAuditableItemGraphUpdateRequest";
|
|
8
|
-
export * from "./models/auditableItemGraphContexts";
|
|
9
|
-
export * from "./models/auditableItemGraphTopics";
|
|
10
|
-
export * from "./models/auditableItemGraphTypes";
|
|
11
|
-
export * from "./models/eventBus/IAuditableItemGraphEventBusVertexCreated";
|
|
12
|
-
export * from "./models/eventBus/IAuditableItemGraphEventBusVertexUpdated";
|
|
13
|
-
export * from "./models/IAuditableItemGraphAlias";
|
|
14
|
-
export * from "./models/IAuditableItemGraphAuditedElement";
|
|
15
|
-
export * from "./models/IAuditableItemGraphChangeset";
|
|
16
|
-
export * from "./models/IAuditableItemGraphComponent";
|
|
17
|
-
export * from "./models/IAuditableItemGraphEdge";
|
|
18
|
-
export * from "./models/IAuditableItemGraphPatchOperation";
|
|
19
|
-
export * from "./models/IAuditableItemGraphResource";
|
|
20
|
-
export * from "./models/IAuditableItemGraphVertex";
|
|
21
|
-
export * from "./models/IAuditableItemGraphVertexList";
|
|
22
|
-
export * from "./models/verifyDepth";
|
|
1
|
+
export * from "./dataTypes/auditableItemGraphDataTypes.js";
|
|
2
|
+
export * from "./models/api/IAuditableItemGraphCreateRequest.js";
|
|
3
|
+
export * from "./models/api/IAuditableItemGraphGetRequest.js";
|
|
4
|
+
export * from "./models/api/IAuditableItemGraphGetResponse.js";
|
|
5
|
+
export * from "./models/api/IAuditableItemGraphListRequest.js";
|
|
6
|
+
export * from "./models/api/IAuditableItemGraphListResponse.js";
|
|
7
|
+
export * from "./models/api/IAuditableItemGraphUpdateRequest.js";
|
|
8
|
+
export * from "./models/auditableItemGraphContexts.js";
|
|
9
|
+
export * from "./models/auditableItemGraphTopics.js";
|
|
10
|
+
export * from "./models/auditableItemGraphTypes.js";
|
|
11
|
+
export * from "./models/eventBus/IAuditableItemGraphEventBusVertexCreated.js";
|
|
12
|
+
export * from "./models/eventBus/IAuditableItemGraphEventBusVertexUpdated.js";
|
|
13
|
+
export * from "./models/IAuditableItemGraphAlias.js";
|
|
14
|
+
export * from "./models/IAuditableItemGraphAuditedElement.js";
|
|
15
|
+
export * from "./models/IAuditableItemGraphChangeset.js";
|
|
16
|
+
export * from "./models/IAuditableItemGraphComponent.js";
|
|
17
|
+
export * from "./models/IAuditableItemGraphEdge.js";
|
|
18
|
+
export * from "./models/IAuditableItemGraphPatchOperation.js";
|
|
19
|
+
export * from "./models/IAuditableItemGraphResource.js";
|
|
20
|
+
export * from "./models/IAuditableItemGraphVertex.js";
|
|
21
|
+
export * from "./models/IAuditableItemGraphVertexList.js";
|
|
22
|
+
export * from "./models/verifyDepth.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IJsonLdContextDefinitionElement, IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
-
import type { AuditableItemGraphContexts } from "./auditableItemGraphContexts";
|
|
3
|
-
import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes";
|
|
4
|
-
import type { IAuditableItemGraphAuditedElement } from "./IAuditableItemGraphAuditedElement";
|
|
2
|
+
import type { AuditableItemGraphContexts } from "./auditableItemGraphContexts.js";
|
|
3
|
+
import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes.js";
|
|
4
|
+
import type { IAuditableItemGraphAuditedElement } from "./IAuditableItemGraphAuditedElement.js";
|
|
5
5
|
/**
|
|
6
6
|
* Interface describing an alias for a vertex.
|
|
7
7
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { IJsonLdContextDefinitionElement } from "@twin.org/data-json-ld";
|
|
2
2
|
import type { IImmutableProofVerification } from "@twin.org/immutable-proof-models";
|
|
3
|
-
import type { AuditableItemGraphContexts } from "./auditableItemGraphContexts";
|
|
4
|
-
import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes";
|
|
5
|
-
import type { IAuditableItemGraphPatchOperation } from "./IAuditableItemGraphPatchOperation";
|
|
3
|
+
import type { AuditableItemGraphContexts } from "./auditableItemGraphContexts.js";
|
|
4
|
+
import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes.js";
|
|
5
|
+
import type { IAuditableItemGraphPatchOperation } from "./IAuditableItemGraphPatchOperation.js";
|
|
6
6
|
/**
|
|
7
7
|
* Interface describing a set of changes to the vertex.
|
|
8
8
|
*/
|
|
@@ -30,7 +30,7 @@ export interface IAuditableItemGraphChangeset {
|
|
|
30
30
|
/**
|
|
31
31
|
* The user identity that created the changes.
|
|
32
32
|
*/
|
|
33
|
-
userIdentity
|
|
33
|
+
userIdentity?: string;
|
|
34
34
|
/**
|
|
35
35
|
* The patches in the changeset.
|
|
36
36
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { IComponent } from "@twin.org/core";
|
|
2
2
|
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
3
3
|
import type { IComparator, SortDirection } from "@twin.org/entity";
|
|
4
|
-
import type { IAuditableItemGraphVertex } from "./IAuditableItemGraphVertex";
|
|
5
|
-
import type { IAuditableItemGraphVertexList } from "./IAuditableItemGraphVertexList";
|
|
6
|
-
import type { VerifyDepth } from "./verifyDepth";
|
|
4
|
+
import type { IAuditableItemGraphVertex } from "./IAuditableItemGraphVertex.js";
|
|
5
|
+
import type { IAuditableItemGraphVertexList } from "./IAuditableItemGraphVertexList.js";
|
|
6
|
+
import type { VerifyDepth } from "./verifyDepth.js";
|
|
7
7
|
/**
|
|
8
8
|
* Interface describing an auditable item graph contract.
|
|
9
9
|
*/
|
|
@@ -15,8 +15,6 @@ export interface IAuditableItemGraphComponent extends IComponent {
|
|
|
15
15
|
* @param vertex.aliases Alternative aliases that can be used to identify the vertex.
|
|
16
16
|
* @param vertex.resources The resources attached to the vertex.
|
|
17
17
|
* @param vertex.edges The edges connected to the vertex.
|
|
18
|
-
* @param userIdentity The identity to create the auditable item graph operation with.
|
|
19
|
-
* @param nodeIdentity The node identity to use for vault operations.
|
|
20
18
|
* @returns The id of the new graph item.
|
|
21
19
|
*/
|
|
22
20
|
create(vertex: {
|
|
@@ -36,7 +34,7 @@ export interface IAuditableItemGraphComponent extends IComponent {
|
|
|
36
34
|
edgeRelationships: string[];
|
|
37
35
|
annotationObject?: IJsonLdNodeObject;
|
|
38
36
|
}[];
|
|
39
|
-
}
|
|
37
|
+
}): Promise<string>;
|
|
40
38
|
/**
|
|
41
39
|
* Update a graph vertex.
|
|
42
40
|
* @param vertex The vertex to update.
|
|
@@ -45,8 +43,6 @@ export interface IAuditableItemGraphComponent extends IComponent {
|
|
|
45
43
|
* @param vertex.aliases Alternative aliases that can be used to identify the vertex.
|
|
46
44
|
* @param vertex.resources The resources attached to the vertex.
|
|
47
45
|
* @param vertex.edges The edges connected to the vertex.
|
|
48
|
-
* @param userIdentity The identity to create the auditable item graph operation with.
|
|
49
|
-
* @param nodeIdentity The node identity to use for vault operations.
|
|
50
46
|
* @returns Nothing.
|
|
51
47
|
*/
|
|
52
48
|
update(vertex: {
|
|
@@ -68,7 +64,7 @@ export interface IAuditableItemGraphComponent extends IComponent {
|
|
|
68
64
|
edgeRelationships: string[];
|
|
69
65
|
annotationObject?: IJsonLdNodeObject;
|
|
70
66
|
}[];
|
|
71
|
-
}
|
|
67
|
+
}): Promise<void>;
|
|
72
68
|
/**
|
|
73
69
|
* Get a graph vertex.
|
|
74
70
|
* @param id The id of the vertex to get.
|
|
@@ -87,11 +83,10 @@ export interface IAuditableItemGraphComponent extends IComponent {
|
|
|
87
83
|
/**
|
|
88
84
|
* Remove the verifiable storage for an item.
|
|
89
85
|
* @param id The id of the vertex to remove the storage from.
|
|
90
|
-
* @param nodeIdentity The node identity to use for vault operations.
|
|
91
86
|
* @returns Nothing.
|
|
92
87
|
* @throws NotFoundError if the vertex is not found.
|
|
93
88
|
*/
|
|
94
|
-
removeVerifiable(id: string
|
|
89
|
+
removeVerifiable(id: string): Promise<void>;
|
|
95
90
|
/**
|
|
96
91
|
* Query the graph for vertices.
|
|
97
92
|
* @param options The query options.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IJsonLdContextDefinitionElement, IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
-
import type { AuditableItemGraphContexts } from "./auditableItemGraphContexts";
|
|
3
|
-
import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes";
|
|
4
|
-
import type { IAuditableItemGraphAuditedElement } from "./IAuditableItemGraphAuditedElement";
|
|
2
|
+
import type { AuditableItemGraphContexts } from "./auditableItemGraphContexts.js";
|
|
3
|
+
import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes.js";
|
|
4
|
+
import type { IAuditableItemGraphAuditedElement } from "./IAuditableItemGraphAuditedElement.js";
|
|
5
5
|
/**
|
|
6
6
|
* Interface describing an edge between two vertices in an auditable item graph.
|
|
7
7
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IJsonLdContextDefinitionElement } from "@twin.org/data-json-ld";
|
|
2
|
-
import type { AuditableItemGraphContexts } from "./auditableItemGraphContexts";
|
|
3
|
-
import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes";
|
|
2
|
+
import type { AuditableItemGraphContexts } from "./auditableItemGraphContexts.js";
|
|
3
|
+
import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes.js";
|
|
4
4
|
/**
|
|
5
5
|
* The patch operation for JSON diffs.
|
|
6
6
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IJsonLdContextDefinitionElement, IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
-
import type { AuditableItemGraphContexts } from "./auditableItemGraphContexts";
|
|
3
|
-
import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes";
|
|
4
|
-
import type { IAuditableItemGraphAuditedElement } from "./IAuditableItemGraphAuditedElement";
|
|
2
|
+
import type { AuditableItemGraphContexts } from "./auditableItemGraphContexts.js";
|
|
3
|
+
import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes.js";
|
|
4
|
+
import type { IAuditableItemGraphAuditedElement } from "./IAuditableItemGraphAuditedElement.js";
|
|
5
5
|
/**
|
|
6
6
|
* Interface describing an auditable item graph vertex resource.
|
|
7
7
|
*/
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { IJsonLdContextDefinitionElement, IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
-
import type { AuditableItemGraphContexts } from "./auditableItemGraphContexts";
|
|
3
|
-
import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes";
|
|
4
|
-
import type { IAuditableItemGraphAlias } from "./IAuditableItemGraphAlias";
|
|
5
|
-
import type { IAuditableItemGraphAuditedElement } from "./IAuditableItemGraphAuditedElement";
|
|
6
|
-
import type { IAuditableItemGraphChangeset } from "./IAuditableItemGraphChangeset";
|
|
7
|
-
import type { IAuditableItemGraphEdge } from "./IAuditableItemGraphEdge";
|
|
8
|
-
import type { IAuditableItemGraphResource } from "./IAuditableItemGraphResource";
|
|
2
|
+
import type { AuditableItemGraphContexts } from "./auditableItemGraphContexts.js";
|
|
3
|
+
import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes.js";
|
|
4
|
+
import type { IAuditableItemGraphAlias } from "./IAuditableItemGraphAlias.js";
|
|
5
|
+
import type { IAuditableItemGraphAuditedElement } from "./IAuditableItemGraphAuditedElement.js";
|
|
6
|
+
import type { IAuditableItemGraphChangeset } from "./IAuditableItemGraphChangeset.js";
|
|
7
|
+
import type { IAuditableItemGraphEdge } from "./IAuditableItemGraphEdge.js";
|
|
8
|
+
import type { IAuditableItemGraphResource } from "./IAuditableItemGraphResource.js";
|
|
9
9
|
/**
|
|
10
10
|
* Interface describing an auditable item graph vertex.
|
|
11
11
|
*/
|
|
@@ -27,9 +27,9 @@ export interface IAuditableItemGraphVertex extends Omit<IAuditableItemGraphAudit
|
|
|
27
27
|
*/
|
|
28
28
|
type: typeof AuditableItemGraphTypes.Vertex;
|
|
29
29
|
/**
|
|
30
|
-
* The identity of the
|
|
30
|
+
* The identity of the organization which controls the vertex.
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
organizationIdentity?: string;
|
|
33
33
|
/**
|
|
34
34
|
* The JSON-LD annotation object for the vertex.
|
|
35
35
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { IJsonLdContextDefinitionElement } from "@twin.org/data-json-ld";
|
|
2
2
|
import type { SchemaOrgContexts, SchemaOrgTypes } from "@twin.org/standards-schema-org";
|
|
3
|
-
import type { AuditableItemGraphContexts } from "./auditableItemGraphContexts";
|
|
4
|
-
import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes";
|
|
5
|
-
import type { IAuditableItemGraphVertex } from "./IAuditableItemGraphVertex";
|
|
3
|
+
import type { AuditableItemGraphContexts } from "./auditableItemGraphContexts.js";
|
|
4
|
+
import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes.js";
|
|
5
|
+
import type { IAuditableItemGraphVertex } from "./IAuditableItemGraphVertex.js";
|
|
6
6
|
/**
|
|
7
7
|
* Interface describing an auditable item graph vertex list.
|
|
8
8
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HeaderTypes, MimeTypes } from "@twin.org/web";
|
|
2
|
-
import type { IAuditableItemGraphVertex } from "../IAuditableItemGraphVertex";
|
|
2
|
+
import type { IAuditableItemGraphVertex } from "../IAuditableItemGraphVertex.js";
|
|
3
3
|
/**
|
|
4
4
|
* Response to getting an auditable item graph vertex.
|
|
5
5
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SortDirection } from "@twin.org/entity";
|
|
2
2
|
import type { HeaderTypes, MimeTypes } from "@twin.org/web";
|
|
3
|
-
import type { IAuditableItemGraphVertex } from "../IAuditableItemGraphVertex";
|
|
3
|
+
import type { IAuditableItemGraphVertex } from "../IAuditableItemGraphVertex.js";
|
|
4
4
|
/**
|
|
5
5
|
* Get the a list of the vertices with matching ids or aliases.
|
|
6
6
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HeaderTypes, MimeTypes } from "@twin.org/web";
|
|
2
|
-
import type { IAuditableItemGraphVertexList } from "../IAuditableItemGraphVertexList";
|
|
2
|
+
import type { IAuditableItemGraphVertexList } from "../IAuditableItemGraphVertexList.js";
|
|
3
3
|
/**
|
|
4
4
|
* The response to getting the a list of the vertices with matching ids or aliases.
|
|
5
5
|
*/
|