@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
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Function: auditableItemGraphVersionList()
|
|
2
|
+
|
|
3
|
+
> **auditableItemGraphVersionList**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`IAuditableItemGraphVersionListResponse`\>
|
|
4
|
+
|
|
5
|
+
Get all versions of a graph vertex.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
### httpRequestContext
|
|
10
|
+
|
|
11
|
+
`IHttpRequestContext`
|
|
12
|
+
|
|
13
|
+
The request context for the API.
|
|
14
|
+
|
|
15
|
+
### componentName
|
|
16
|
+
|
|
17
|
+
`string`
|
|
18
|
+
|
|
19
|
+
The name of the component to use in the routes.
|
|
20
|
+
|
|
21
|
+
### request
|
|
22
|
+
|
|
23
|
+
`IAuditableItemGraphVersionListRequest`
|
|
24
|
+
|
|
25
|
+
The request.
|
|
26
|
+
|
|
27
|
+
## Returns
|
|
28
|
+
|
|
29
|
+
`Promise`\<`IAuditableItemGraphVersionListResponse`\>
|
|
30
|
+
|
|
31
|
+
The response object with additional http response properties.
|
package/docs/reference/index.md
CHANGED
|
@@ -25,6 +25,11 @@
|
|
|
25
25
|
- [generateRestRoutesAuditableItemGraph](functions/generateRestRoutesAuditableItemGraph.md)
|
|
26
26
|
- [auditableItemGraphCreate](functions/auditableItemGraphCreate.md)
|
|
27
27
|
- [auditableItemGraphGet](functions/auditableItemGraphGet.md)
|
|
28
|
+
- [auditableItemGraphChangesetList](functions/auditableItemGraphChangesetList.md)
|
|
29
|
+
- [auditableItemGraphChangesetGet](functions/auditableItemGraphChangesetGet.md)
|
|
28
30
|
- [auditableItemGraphUpdate](functions/auditableItemGraphUpdate.md)
|
|
31
|
+
- [auditableItemGraphUpdatePartial](functions/auditableItemGraphUpdatePartial.md)
|
|
29
32
|
- [auditableItemGraphList](functions/auditableItemGraphList.md)
|
|
33
|
+
- [auditableItemGraphVersionGet](functions/auditableItemGraphVersionGet.md)
|
|
34
|
+
- [auditableItemGraphVersionList](functions/auditableItemGraphVersionList.md)
|
|
30
35
|
- [initSchema](functions/initSchema.md)
|
|
@@ -4,9 +4,9 @@ Options for the constructor of the auditable item graph service.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### immutableProofComponentType?
|
|
7
|
+
### immutableProofComponentType? {#immutableproofcomponenttype}
|
|
8
8
|
|
|
9
|
-
> `optional` **immutableProofComponentType
|
|
9
|
+
> `optional` **immutableProofComponentType?**: `string`
|
|
10
10
|
|
|
11
11
|
The immutable proof component type.
|
|
12
12
|
|
|
@@ -18,9 +18,9 @@ immutable-proof
|
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
21
|
-
### vertexEntityStorageType?
|
|
21
|
+
### vertexEntityStorageType? {#vertexentitystoragetype}
|
|
22
22
|
|
|
23
|
-
> `optional` **vertexEntityStorageType
|
|
23
|
+
> `optional` **vertexEntityStorageType?**: `string`
|
|
24
24
|
|
|
25
25
|
The entity storage for vertices.
|
|
26
26
|
|
|
@@ -32,9 +32,9 @@ auditable-item-graph-vertex
|
|
|
32
32
|
|
|
33
33
|
***
|
|
34
34
|
|
|
35
|
-
### changesetEntityStorageType?
|
|
35
|
+
### changesetEntityStorageType? {#changesetentitystoragetype}
|
|
36
36
|
|
|
37
|
-
> `optional` **changesetEntityStorageType
|
|
37
|
+
> `optional` **changesetEntityStorageType?**: `string`
|
|
38
38
|
|
|
39
39
|
The entity storage for changesets.
|
|
40
40
|
|
|
@@ -46,16 +46,24 @@ auditable-item-graph-changeset
|
|
|
46
46
|
|
|
47
47
|
***
|
|
48
48
|
|
|
49
|
-
### eventBusComponentType?
|
|
49
|
+
### eventBusComponentType? {#eventbuscomponenttype}
|
|
50
50
|
|
|
51
|
-
> `optional` **eventBusComponentType
|
|
51
|
+
> `optional` **eventBusComponentType?**: `string`
|
|
52
52
|
|
|
53
53
|
The event bus component type, defaults to no event bus.
|
|
54
54
|
|
|
55
55
|
***
|
|
56
56
|
|
|
57
|
-
###
|
|
57
|
+
### telemetryComponentType? {#telemetrycomponenttype}
|
|
58
58
|
|
|
59
|
-
> `optional` **
|
|
59
|
+
> `optional` **telemetryComponentType?**: `string`
|
|
60
|
+
|
|
61
|
+
The component type for the optional telemetry component used for event metrics, defaults to no telemetry.
|
|
62
|
+
|
|
63
|
+
***
|
|
64
|
+
|
|
65
|
+
### config? {#config}
|
|
66
|
+
|
|
67
|
+
> `optional` **config?**: [`IAuditableItemGraphServiceConfig`](IAuditableItemGraphServiceConfig.md)
|
|
60
68
|
|
|
61
69
|
The configuration for the service.
|
package/locales/en.json
CHANGED
|
@@ -4,13 +4,18 @@
|
|
|
4
4
|
"namespaceMismatch": "The namespace in the urn \"{id}\" does not match the namespace of the Auditable Item Graph service \"{namespace}\"",
|
|
5
5
|
"createFailed": "Creating the Auditable Item Graph vertex failed",
|
|
6
6
|
"getFailed": "Getting the Auditable Item Graph vertex failed",
|
|
7
|
+
"getVersionFailed": "Getting the Auditable Item Graph vertex version failed",
|
|
8
|
+
"getVersionsFailed": "Getting the Auditable Item Graph vertex versions failed",
|
|
9
|
+
"versionNotFound": "The version with the Id \"{notFoundId}\" was not found",
|
|
7
10
|
"updatingFailed": "Updating the Auditable Item Graph vertex failed",
|
|
8
11
|
"queryingFailed": "Querying the Auditable Item Graph failed",
|
|
9
|
-
"
|
|
12
|
+
"removeProofFailed": "Removing the proof from the Auditable Item Graph vertex failed",
|
|
10
13
|
"vertexNotFound": "The vertex with the Id \"{notFoundId}\" was not found",
|
|
14
|
+
"changesetNotFound": "The changeset with the Id \"{notFoundId}\" was not found",
|
|
11
15
|
"resourceIdMissing": "You must provide either the id, or the resourceObject must contain an id property for index \"{index}\"",
|
|
12
16
|
"aliasNotUnique": "The alias id \"{aliasId}\" is already in use on another vertex and the unique flag was set",
|
|
13
|
-
"invalidEdgeId": "The edge id \"{edgeId}\" is not valid"
|
|
17
|
+
"invalidEdgeId": "The edge id \"{edgeId}\" is not valid",
|
|
18
|
+
"listPatchInvalidFormat": "The property \"{property}\" must be a list patch object with add and/or remove, not a bare array"
|
|
14
19
|
},
|
|
15
20
|
"validation": {
|
|
16
21
|
"auditableItemGraphService": {
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/auditable-item-graph-service",
|
|
3
|
-
"version": "0.0.3-next.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.0.3-next.21",
|
|
4
|
+
"description": "Implements graph lifecycle operations and audited change tracking with API route definitions.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/
|
|
7
|
+
"url": "git+https://github.com/iotaledger/twin-auditable-item-graph.git",
|
|
8
8
|
"directory": "packages/auditable-item-graph-service"
|
|
9
9
|
},
|
|
10
10
|
"author": "martyn.janes@iota.org",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@twin.org/api-models": "next",
|
|
18
|
-
"@twin.org/auditable-item-graph-models": "0.0.3-next.
|
|
18
|
+
"@twin.org/auditable-item-graph-models": "0.0.3-next.21",
|
|
19
19
|
"@twin.org/context": "next",
|
|
20
20
|
"@twin.org/core": "next",
|
|
21
21
|
"@twin.org/crypto": "next",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@twin.org/nameof": "next",
|
|
28
28
|
"@twin.org/standards-schema-org": "next",
|
|
29
29
|
"@twin.org/standards-w3c-did": "next",
|
|
30
|
-
"@twin.org/
|
|
30
|
+
"@twin.org/telemetry-models": "next",
|
|
31
31
|
"@twin.org/web": "next"
|
|
32
32
|
},
|
|
33
33
|
"main": "./dist/es/index.js",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"business-logic"
|
|
59
59
|
],
|
|
60
60
|
"bugs": {
|
|
61
|
-
"url": "git+https://github.com/
|
|
61
|
+
"url": "git+https://github.com/iotaledger/twin-auditable-item-graph/issues"
|
|
62
62
|
},
|
|
63
63
|
"homepage": "https://twindev.org"
|
|
64
64
|
}
|