@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
@@ -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.
@@ -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**: `string`
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**: `string`
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**: `string`
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**: `string`
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
- ### config?
57
+ ### telemetryComponentType? {#telemetrycomponenttype}
58
58
 
59
- > `optional` **config**: [`IAuditableItemGraphServiceConfig`](IAuditableItemGraphServiceConfig.md)
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
- "removeVerifiableFailed": "Removing the verifiable data the Auditable Item Graph vertex failed",
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.2",
4
- "description": "Auditable Item Graph contract implementation and REST endpoint definitions",
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/twinfoundation/auditable-item-graph.git",
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.2",
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/verifiable-storage-models": "next",
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/twinfoundation/auditable-item-graph/issues"
61
+ "url": "git+https://github.com/iotaledger/twin-auditable-item-graph/issues"
62
62
  },
63
63
  "homepage": "https://twindev.org"
64
64
  }