@twin.org/auditable-item-graph-models 0.0.1-next.9 → 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.
- package/dist/cjs/index.cjs +234 -148
- package/dist/esm/index.mjs +233 -149
- package/dist/types/index.d.ts +4 -0
- package/dist/types/models/IAuditableItemGraphAlias.d.ts +9 -4
- package/dist/types/models/IAuditableItemGraphAuditedElement.d.ts +2 -2
- package/dist/types/models/IAuditableItemGraphChangeset.d.ts +8 -2
- package/dist/types/models/IAuditableItemGraphComponent.d.ts +52 -36
- package/dist/types/models/IAuditableItemGraphEdge.d.ts +11 -6
- package/dist/types/models/IAuditableItemGraphPatchOperation.d.ts +3 -1
- package/dist/types/models/IAuditableItemGraphResource.d.ts +3 -2
- package/dist/types/models/IAuditableItemGraphVertex.d.ts +13 -4
- package/dist/types/models/IAuditableItemGraphVertexList.d.ts +11 -4
- package/dist/types/models/api/IAuditableItemGraphCreateRequest.d.ts +6 -6
- package/dist/types/models/api/IAuditableItemGraphGetRequest.d.ts +2 -2
- package/dist/types/models/api/IAuditableItemGraphListRequest.d.ts +10 -2
- package/dist/types/models/api/IAuditableItemGraphUpdateRequest.d.ts +6 -6
- package/dist/types/models/auditableItemGraphContexts.d.ts +17 -0
- package/dist/types/models/auditableItemGraphTopics.d.ts +17 -0
- package/dist/types/models/auditableItemGraphTypes.d.ts +4 -8
- package/dist/types/models/eventBus/IAuditableItemGraphEventBusVertexCreated.d.ts +9 -0
- package/dist/types/models/eventBus/IAuditableItemGraphEventBusVertexUpdated.d.ts +14 -0
- package/docs/changelog.md +90 -1
- package/docs/reference/classes/AuditableItemGraphDataTypes.md +3 -3
- package/docs/reference/index.md +6 -0
- package/docs/reference/interfaces/IAuditableItemGraphAlias.md +18 -18
- package/docs/reference/interfaces/IAuditableItemGraphAuditedElement.md +4 -4
- package/docs/reference/interfaces/IAuditableItemGraphChangeset.md +2 -2
- package/docs/reference/interfaces/IAuditableItemGraphComponent.md +109 -37
- package/docs/reference/interfaces/IAuditableItemGraphCreateRequest.md +4 -4
- package/docs/reference/interfaces/IAuditableItemGraphEdge.md +21 -21
- package/docs/reference/interfaces/IAuditableItemGraphEventBusVertexCreated.md +11 -0
- package/docs/reference/interfaces/IAuditableItemGraphEventBusVertexUpdated.md +19 -0
- package/docs/reference/interfaces/IAuditableItemGraphGetRequest.md +2 -2
- package/docs/reference/interfaces/IAuditableItemGraphListRequest.md +15 -3
- package/docs/reference/interfaces/IAuditableItemGraphPatchOperation.md +2 -2
- package/docs/reference/interfaces/IAuditableItemGraphResource.md +5 -5
- package/docs/reference/interfaces/IAuditableItemGraphUpdateRequest.md +4 -4
- package/docs/reference/interfaces/IAuditableItemGraphVertex.md +18 -18
- package/docs/reference/interfaces/IAuditableItemGraphVertexList.md +6 -6
- package/docs/reference/type-aliases/AuditableItemGraphContexts.md +5 -0
- package/docs/reference/type-aliases/AuditableItemGraphTopics.md +5 -0
- package/docs/reference/type-aliases/AuditableItemGraphTypes.md +1 -1
- package/docs/reference/type-aliases/VerifyDepth.md +1 -1
- package/docs/reference/variables/AuditableItemGraphContexts.md +19 -0
- package/docs/reference/variables/AuditableItemGraphTopics.md +19 -0
- package/docs/reference/variables/AuditableItemGraphTypes.md +6 -12
- package/package.json +12 -11
|
@@ -8,21 +8,9 @@ Interface describing an auditable item graph vertex.
|
|
|
8
8
|
|
|
9
9
|
## Properties
|
|
10
10
|
|
|
11
|
-
###
|
|
12
|
-
|
|
13
|
-
> **id**: `string`
|
|
14
|
-
|
|
15
|
-
The id of the element.
|
|
16
|
-
|
|
17
|
-
#### Inherited from
|
|
18
|
-
|
|
19
|
-
`Omit.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/"
|
|
49
|
+
> **@context**: \[`"https://schema.twindev.org/aig/"`, `"https://schema.twindev.org/common/"`, `...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
|
+
`Omit.id`
|
|
64
|
+
|
|
65
|
+
***
|
|
66
|
+
|
|
67
67
|
### type
|
|
68
68
|
|
|
69
69
|
> **type**: `"AuditableItemGraphVertex"`
|
|
@@ -80,11 +80,11 @@ The identity of the node which controls the vertex.
|
|
|
80
80
|
|
|
81
81
|
***
|
|
82
82
|
|
|
83
|
-
###
|
|
83
|
+
### annotationObject?
|
|
84
84
|
|
|
85
|
-
> `optional` **
|
|
85
|
+
> `optional` **annotationObject**: `IJsonLdNodeObject`
|
|
86
86
|
|
|
87
|
-
The JSON-LD object for the vertex.
|
|
87
|
+
The JSON-LD annotation object for the vertex.
|
|
88
88
|
|
|
89
89
|
***
|
|
90
90
|
|
|
@@ -6,7 +6,7 @@ Interface describing an auditable item graph vertex list.
|
|
|
6
6
|
|
|
7
7
|
### @context
|
|
8
8
|
|
|
9
|
-
> **@context**: `"https://schema.
|
|
9
|
+
> **@context**: \[`"https://schema.org"`, `"https://schema.twindev.org/aig/"`, `...IJsonLdContextDefinitionElement[]`\]
|
|
10
10
|
|
|
11
11
|
JSON-LD Context.
|
|
12
12
|
|
|
@@ -14,22 +14,22 @@ JSON-LD Context.
|
|
|
14
14
|
|
|
15
15
|
### type
|
|
16
16
|
|
|
17
|
-
> **type**: `"AuditableItemGraphVertexList"
|
|
17
|
+
> **type**: \[`"ItemList"`, `"AuditableItemGraphVertexList"`\]
|
|
18
18
|
|
|
19
19
|
JSON-LD Type.
|
|
20
20
|
|
|
21
21
|
***
|
|
22
22
|
|
|
23
|
-
###
|
|
23
|
+
### itemListElement
|
|
24
24
|
|
|
25
|
-
> **
|
|
25
|
+
> **itemListElement**: [`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md)[]
|
|
26
26
|
|
|
27
27
|
The list of vertices.
|
|
28
28
|
|
|
29
29
|
***
|
|
30
30
|
|
|
31
|
-
###
|
|
31
|
+
### nextItem?
|
|
32
32
|
|
|
33
|
-
> `optional` **
|
|
33
|
+
> `optional` **nextItem**: `string`
|
|
34
34
|
|
|
35
35
|
The cursor to get the next chunk of vertices.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Type Alias: AuditableItemGraphContexts
|
|
2
|
+
|
|
3
|
+
> **AuditableItemGraphContexts** = *typeof* [`AuditableItemGraphContexts`](../variables/AuditableItemGraphContexts.md)\[keyof *typeof* [`AuditableItemGraphContexts`](../variables/AuditableItemGraphContexts.md)\]
|
|
4
|
+
|
|
5
|
+
The contexts of auditable item graph data.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Type Alias: AuditableItemGraphTopics
|
|
2
|
+
|
|
3
|
+
> **AuditableItemGraphTopics** = *typeof* [`AuditableItemGraphTopics`](../variables/AuditableItemGraphTopics.md)\[keyof *typeof* [`AuditableItemGraphTopics`](../variables/AuditableItemGraphTopics.md)\]
|
|
4
|
+
|
|
5
|
+
The topics for auditable item graph event bus notifications.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Type Alias: AuditableItemGraphTypes
|
|
2
2
|
|
|
3
|
-
> **AuditableItemGraphTypes
|
|
3
|
+
> **AuditableItemGraphTypes** = *typeof* [`AuditableItemGraphTypes`](../variables/AuditableItemGraphTypes.md)\[keyof *typeof* [`AuditableItemGraphTypes`](../variables/AuditableItemGraphTypes.md)\]
|
|
4
4
|
|
|
5
5
|
The types of auditable item graph data.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Type Alias: VerifyDepth
|
|
2
2
|
|
|
3
|
-
> **VerifyDepth
|
|
3
|
+
> **VerifyDepth** = *typeof* [`VerifyDepth`](../variables/VerifyDepth.md)\[keyof *typeof* [`VerifyDepth`](../variables/VerifyDepth.md)\]
|
|
4
4
|
|
|
5
5
|
How deep to verify the signatures.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Variable: AuditableItemGraphContexts
|
|
2
|
+
|
|
3
|
+
> `const` **AuditableItemGraphContexts**: `object`
|
|
4
|
+
|
|
5
|
+
The contexts of auditable item graph data.
|
|
6
|
+
|
|
7
|
+
## Type declaration
|
|
8
|
+
|
|
9
|
+
### ContextRoot
|
|
10
|
+
|
|
11
|
+
> `readonly` **ContextRoot**: `"https://schema.twindev.org/aig/"` = `"https://schema.twindev.org/aig/"`
|
|
12
|
+
|
|
13
|
+
The context root for the auditable item graph types.
|
|
14
|
+
|
|
15
|
+
### ContextRootCommon
|
|
16
|
+
|
|
17
|
+
> `readonly` **ContextRootCommon**: `"https://schema.twindev.org/common/"` = `"https://schema.twindev.org/common/"`
|
|
18
|
+
|
|
19
|
+
The context root for the common types.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Variable: AuditableItemGraphTopics
|
|
2
|
+
|
|
3
|
+
> `const` **AuditableItemGraphTopics**: `object`
|
|
4
|
+
|
|
5
|
+
The topics for auditable item graph event bus notifications.
|
|
6
|
+
|
|
7
|
+
## Type declaration
|
|
8
|
+
|
|
9
|
+
### VertexCreated
|
|
10
|
+
|
|
11
|
+
> `readonly` **VertexCreated**: `"auditable-item-graph:vertex-created"` = `"auditable-item-graph:vertex-created"`
|
|
12
|
+
|
|
13
|
+
A vertex was created.
|
|
14
|
+
|
|
15
|
+
### VertexUpdated
|
|
16
|
+
|
|
17
|
+
> `readonly` **VertexUpdated**: `"auditable-item-graph:vertex-updated"` = `"auditable-item-graph:vertex-updated"`
|
|
18
|
+
|
|
19
|
+
A vertex was updated.
|
|
@@ -6,18 +6,18 @@ The types of auditable item graph data.
|
|
|
6
6
|
|
|
7
7
|
## Type declaration
|
|
8
8
|
|
|
9
|
-
### ContextRoot
|
|
10
|
-
|
|
11
|
-
> `readonly` **ContextRoot**: `"https://schema.twindev.org/aig/"` = `"https://schema.twindev.org/aig/"`
|
|
12
|
-
|
|
13
|
-
The context root for the auditable item graph types.
|
|
14
|
-
|
|
15
9
|
### Vertex
|
|
16
10
|
|
|
17
11
|
> `readonly` **Vertex**: `"AuditableItemGraphVertex"` = `"AuditableItemGraphVertex"`
|
|
18
12
|
|
|
19
13
|
Represents auditable item graph vertex.
|
|
20
14
|
|
|
15
|
+
### VertexList
|
|
16
|
+
|
|
17
|
+
> `readonly` **VertexList**: `"AuditableItemGraphVertexList"` = `"AuditableItemGraphVertexList"`
|
|
18
|
+
|
|
19
|
+
Represents auditable item graph vertex list.
|
|
20
|
+
|
|
21
21
|
### Alias
|
|
22
22
|
|
|
23
23
|
> `readonly` **Alias**: `"AuditableItemGraphAlias"` = `"AuditableItemGraphAlias"`
|
|
@@ -47,9 +47,3 @@ Represents auditable item graph changeset.
|
|
|
47
47
|
> `readonly` **PatchOperation**: `"AuditableItemGraphPatchOperation"` = `"AuditableItemGraphPatchOperation"`
|
|
48
48
|
|
|
49
49
|
Represents patch operation.
|
|
50
|
-
|
|
51
|
-
### VertexList
|
|
52
|
-
|
|
53
|
-
> `readonly` **VertexList**: `"AuditableItemGraphVertexList"` = `"AuditableItemGraphVertexList"`
|
|
54
|
-
|
|
55
|
-
Represents auditable item stream vertex list.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/auditable-item-graph-models",
|
|
3
|
-
"version": "0.0.1
|
|
3
|
+
"version": "0.0.1",
|
|
4
4
|
"description": "Models which define the structure of the auditable item graph connectors and services",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,24 +14,25 @@
|
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@twin.org/core": "
|
|
18
|
-
"@twin.org/data-core": "
|
|
19
|
-
"@twin.org/data-json-ld": "
|
|
20
|
-
"@twin.org/entity": "
|
|
21
|
-
"@twin.org/immutable-proof-models": "
|
|
22
|
-
"@twin.org/nameof": "
|
|
23
|
-
"@twin.org/
|
|
17
|
+
"@twin.org/core": "^0.0.1",
|
|
18
|
+
"@twin.org/data-core": "^0.0.1",
|
|
19
|
+
"@twin.org/data-json-ld": "^0.0.1",
|
|
20
|
+
"@twin.org/entity": "^0.0.1",
|
|
21
|
+
"@twin.org/immutable-proof-models": "^0.0.1",
|
|
22
|
+
"@twin.org/nameof": "^0.0.1",
|
|
23
|
+
"@twin.org/standards-schema-org": "^0.0.1",
|
|
24
|
+
"@twin.org/web": "^0.0.1"
|
|
24
25
|
},
|
|
25
26
|
"main": "./dist/cjs/index.cjs",
|
|
26
27
|
"module": "./dist/esm/index.mjs",
|
|
27
28
|
"types": "./dist/types/index.d.ts",
|
|
28
29
|
"exports": {
|
|
29
30
|
".": {
|
|
31
|
+
"types": "./dist/types/index.d.ts",
|
|
30
32
|
"require": "./dist/cjs/index.cjs",
|
|
31
|
-
"import": "./dist/esm/index.mjs"
|
|
32
|
-
"types": "./dist/types/index.d.ts"
|
|
33
|
+
"import": "./dist/esm/index.mjs"
|
|
33
34
|
},
|
|
34
|
-
"./locales": "./locales"
|
|
35
|
+
"./locales/*.json": "./locales/*.json"
|
|
35
36
|
},
|
|
36
37
|
"files": [
|
|
37
38
|
"dist/cjs",
|