@3sixty/auditable-item-graph-service 0.0.0-stage → 0.20.0-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.
Files changed (89) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +26 -2
  3. package/dist/es/auditableItemGraphRoutes.js +1136 -0
  4. package/dist/es/auditableItemGraphRoutes.js.map +1 -0
  5. package/dist/es/auditableItemGraphService.js +1913 -0
  6. package/dist/es/auditableItemGraphService.js.map +1 -0
  7. package/dist/es/entities/auditableItemGraphAlias.js +70 -0
  8. package/dist/es/entities/auditableItemGraphAlias.js.map +1 -0
  9. package/dist/es/entities/auditableItemGraphChangeset.js +79 -0
  10. package/dist/es/entities/auditableItemGraphChangeset.js.map +1 -0
  11. package/dist/es/entities/auditableItemGraphEdge.js +70 -0
  12. package/dist/es/entities/auditableItemGraphEdge.js.map +1 -0
  13. package/dist/es/entities/auditableItemGraphPatch.js +45 -0
  14. package/dist/es/entities/auditableItemGraphPatch.js.map +1 -0
  15. package/dist/es/entities/auditableItemGraphResource.js +54 -0
  16. package/dist/es/entities/auditableItemGraphResource.js.map +1 -0
  17. package/dist/es/entities/auditableItemGraphVertex.js +97 -0
  18. package/dist/es/entities/auditableItemGraphVertex.js.map +1 -0
  19. package/dist/es/entities/auditableItemGraphVertexIndex.js +95 -0
  20. package/dist/es/entities/auditableItemGraphVertexIndex.js.map +1 -0
  21. package/dist/es/entities/auditableItemGraphVertexV0.js +107 -0
  22. package/dist/es/entities/auditableItemGraphVertexV0.js.map +1 -0
  23. package/dist/es/entities/auditableItemGraphVertexV1.js +113 -0
  24. package/dist/es/entities/auditableItemGraphVertexV1.js.map +1 -0
  25. package/dist/es/index.js +19 -0
  26. package/dist/es/index.js.map +1 -0
  27. package/dist/es/models/IAuditableItemGraphServiceConfig.js +4 -0
  28. package/dist/es/models/IAuditableItemGraphServiceConfig.js.map +1 -0
  29. package/dist/es/models/IAuditableItemGraphServiceConstructorOptions.js +2 -0
  30. package/dist/es/models/IAuditableItemGraphServiceConstructorOptions.js.map +1 -0
  31. package/dist/es/models/IAuditableItemGraphServiceContext.js +4 -0
  32. package/dist/es/models/IAuditableItemGraphServiceContext.js.map +1 -0
  33. package/dist/es/restEntryPoints.js +13 -0
  34. package/dist/es/restEntryPoints.js.map +1 -0
  35. package/dist/es/schema.js +27 -0
  36. package/dist/es/schema.js.map +1 -0
  37. package/dist/es/utils/auditableItemGraphVertexIndexHelper.js +57 -0
  38. package/dist/es/utils/auditableItemGraphVertexIndexHelper.js.map +1 -0
  39. package/dist/types/auditableItemGraphRoutes.d.ts +94 -0
  40. package/dist/types/auditableItemGraphService.d.ts +164 -0
  41. package/dist/types/entities/auditableItemGraphAlias.d.ts +34 -0
  42. package/dist/types/entities/auditableItemGraphChangeset.d.ts +34 -0
  43. package/dist/types/entities/auditableItemGraphEdge.d.ts +34 -0
  44. package/dist/types/entities/auditableItemGraphPatch.d.ts +21 -0
  45. package/dist/types/entities/auditableItemGraphResource.d.ts +26 -0
  46. package/dist/types/entities/auditableItemGraphVertex.d.ts +50 -0
  47. package/dist/types/entities/auditableItemGraphVertexIndex.d.ts +39 -0
  48. package/dist/types/entities/auditableItemGraphVertexV0.d.ts +53 -0
  49. package/dist/types/entities/auditableItemGraphVertexV1.d.ts +58 -0
  50. package/dist/types/index.d.ts +16 -0
  51. package/dist/types/models/IAuditableItemGraphServiceConfig.d.ts +9 -0
  52. package/dist/types/models/IAuditableItemGraphServiceConstructorOptions.d.ts +38 -0
  53. package/dist/types/models/IAuditableItemGraphServiceContext.d.ts +17 -0
  54. package/dist/types/restEntryPoints.d.ts +5 -0
  55. package/dist/types/schema.d.ts +4 -0
  56. package/dist/types/utils/auditableItemGraphVertexIndexHelper.d.ts +25 -0
  57. package/docs/changelog.md +0 -0
  58. package/docs/examples.md +273 -0
  59. package/docs/open-api/spec.json +2190 -0
  60. package/docs/reference/classes/AuditableItemGraphAlias.md +69 -0
  61. package/docs/reference/classes/AuditableItemGraphChangeset.md +69 -0
  62. package/docs/reference/classes/AuditableItemGraphEdge.md +69 -0
  63. package/docs/reference/classes/AuditableItemGraphPatch.md +45 -0
  64. package/docs/reference/classes/AuditableItemGraphResource.md +53 -0
  65. package/docs/reference/classes/AuditableItemGraphService.md +539 -0
  66. package/docs/reference/classes/AuditableItemGraphVertex.md +93 -0
  67. package/docs/reference/classes/AuditableItemGraphVertexIndex.md +75 -0
  68. package/docs/reference/classes/AuditableItemGraphVertexIndexHelper.md +84 -0
  69. package/docs/reference/classes/AuditableItemGraphVertexV0.md +101 -0
  70. package/docs/reference/classes/AuditableItemGraphVertexV1.md +109 -0
  71. package/docs/reference/functions/auditableItemGraphChangesetGet.md +31 -0
  72. package/docs/reference/functions/auditableItemGraphChangesetList.md +31 -0
  73. package/docs/reference/functions/auditableItemGraphCreate.md +37 -0
  74. package/docs/reference/functions/auditableItemGraphGet.md +31 -0
  75. package/docs/reference/functions/auditableItemGraphList.md +31 -0
  76. package/docs/reference/functions/auditableItemGraphRemoveProof.md +31 -0
  77. package/docs/reference/functions/auditableItemGraphUpdate.md +31 -0
  78. package/docs/reference/functions/auditableItemGraphUpdatePartial.md +31 -0
  79. package/docs/reference/functions/auditableItemGraphVersionGet.md +31 -0
  80. package/docs/reference/functions/auditableItemGraphVersionList.md +31 -0
  81. package/docs/reference/functions/generateRestRoutesAuditableItemGraph.md +25 -0
  82. package/docs/reference/functions/initSchema.md +9 -0
  83. package/docs/reference/index.md +40 -0
  84. package/docs/reference/interfaces/IAuditableItemGraphServiceConfig.md +11 -0
  85. package/docs/reference/interfaces/IAuditableItemGraphServiceConstructorOptions.md +83 -0
  86. package/docs/reference/variables/restEntryPoints.md +5 -0
  87. package/docs/reference/variables/tagsAuditableItemGraph.md +5 -0
  88. package/locales/en.json +34 -0
  89. package/package.json +64 -5
@@ -0,0 +1,11 @@
1
+ # Interface: IAuditableItemGraphServiceConfig
2
+
3
+ Configuration for the auditable item graph service.
4
+
5
+ ## Properties
6
+
7
+ ### mutexTimeoutMs? {#mutextimeoutms}
8
+
9
+ > `optional` **mutexTimeoutMs?**: `number`
10
+
11
+ Timeout in milliseconds for acquiring a mutex lock.
@@ -0,0 +1,83 @@
1
+ # Interface: IAuditableItemGraphServiceConstructorOptions
2
+
3
+ Options for the constructor of the auditable item graph service.
4
+
5
+ ## Properties
6
+
7
+ ### immutableProofComponentType? {#immutableproofcomponenttype}
8
+
9
+ > `optional` **immutableProofComponentType?**: `string`
10
+
11
+ The immutable proof component type.
12
+
13
+ #### Default
14
+
15
+ ```ts
16
+ immutable-proof
17
+ ```
18
+
19
+ ***
20
+
21
+ ### vertexEntityStorageType? {#vertexentitystoragetype}
22
+
23
+ > `optional` **vertexEntityStorageType?**: `string`
24
+
25
+ The entity storage for vertices.
26
+
27
+ #### Default
28
+
29
+ ```ts
30
+ auditable-item-graph-vertex
31
+ ```
32
+
33
+ ***
34
+
35
+ ### vertexIndexEntityStorageType? {#vertexindexentitystoragetype}
36
+
37
+ > `optional` **vertexIndexEntityStorageType?**: `string`
38
+
39
+ The entity storage for vertex indices.
40
+
41
+ #### Default
42
+
43
+ ```ts
44
+ auditable-item-graph-vertex-index
45
+ ```
46
+
47
+ ***
48
+
49
+ ### changesetEntityStorageType? {#changesetentitystoragetype}
50
+
51
+ > `optional` **changesetEntityStorageType?**: `string`
52
+
53
+ The entity storage for changesets.
54
+
55
+ #### Default
56
+
57
+ ```ts
58
+ auditable-item-graph-changeset
59
+ ```
60
+
61
+ ***
62
+
63
+ ### eventBusComponentType? {#eventbuscomponenttype}
64
+
65
+ > `optional` **eventBusComponentType?**: `string`
66
+
67
+ The event bus component type, defaults to no event bus.
68
+
69
+ ***
70
+
71
+ ### telemetryComponentType? {#telemetrycomponenttype}
72
+
73
+ > `optional` **telemetryComponentType?**: `string`
74
+
75
+ The component type for the optional telemetry component used for event metrics, defaults to no telemetry.
76
+
77
+ ***
78
+
79
+ ### config? {#config}
80
+
81
+ > `optional` **config?**: [`IAuditableItemGraphServiceConfig`](IAuditableItemGraphServiceConfig.md)
82
+
83
+ The configuration for the service.
@@ -0,0 +1,5 @@
1
+ # Variable: restEntryPoints
2
+
3
+ > `const` **restEntryPoints**: `IRestRouteEntryPoint`[]
4
+
5
+ The REST entry points for the auditable item graph service.
@@ -0,0 +1,5 @@
1
+ # Variable: tagsAuditableItemGraph
2
+
3
+ > `const` **tagsAuditableItemGraph**: `ITag`[]
4
+
5
+ The tag to associate with the routes.
@@ -0,0 +1,34 @@
1
+ {
2
+ "error": {
3
+ "auditableItemGraphService": {
4
+ "namespaceMismatch": "The namespace in the urn \"{id}\" does not match the namespace of the Auditable Item Graph service \"{namespace}\"",
5
+ "createFailed": "Creating the Auditable Item Graph vertex failed",
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",
10
+ "updatingFailed": "Updating the Auditable Item Graph vertex failed",
11
+ "queryingFailed": "Querying the Auditable Item Graph failed",
12
+ "removeProofFailed": "Removing the proof from the Auditable Item Graph vertex failed",
13
+ "vertexNotFound": "The vertex with the Id \"{notFoundId}\" was not found",
14
+ "changesetNotFound": "The changeset with the Id \"{notFoundId}\" was not found",
15
+ "resourceIdMissing": "You must provide either the id, or the resourceObject must contain an id property for index \"{index}\"",
16
+ "aliasNotUnique": "The alias id \"{aliasId}\" is already in use on another vertex and the unique flag was set",
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",
19
+ "auditModeTransitionNotAllowed": "The vertex audit mode can not be changed from \"{currentMode}\" to \"{requestedMode}\", bypass is a terminal mode"
20
+ },
21
+ "validation": {
22
+ "auditableItemGraphService": {
23
+ "edgeIdSameAsVertexId": "The edge with target id \"{targetId}\" can not point to the vertex it belongs to"
24
+ }
25
+ }
26
+ },
27
+ "auditableItemGraphService": {},
28
+ "health": {
29
+ "auditableItemGraphService": {
30
+ "healthDescription": "Auditable item graph service application health check",
31
+ "getVertexFailed": "Failed to complete the auditable item graph vertex storage health check"
32
+ }
33
+ }
34
+ }
package/package.json CHANGED
@@ -1,6 +1,65 @@
1
1
  {
2
- "name": "@3sixty/auditable-item-graph-service",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
2
+ "name": "@3sixty/auditable-item-graph-service",
3
+ "version": "0.20.0-next.0",
4
+ "description": "Implements graph lifecycle operations and audited change tracking with API route definitions.",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/3sixtyglobal/auditable-item-graph.git",
8
+ "directory": "packages/auditable-item-graph-service"
9
+ },
10
+ "author": "martyn.janes@iota.org",
11
+ "license": "Apache-2.0",
12
+ "type": "module",
13
+ "engines": {
14
+ "node": ">=24.0.0"
15
+ },
16
+ "dependencies": {
17
+ "@3sixty/api-models": "next",
18
+ "@3sixty/auditable-item-graph-models": "0.20.0-next.0",
19
+ "@3sixty/context": "next",
20
+ "@3sixty/core": "next",
21
+ "@3sixty/crypto": "next",
22
+ "@3sixty/data-core": "next",
23
+ "@3sixty/data-json-ld": "next",
24
+ "@3sixty/entity": "next",
25
+ "@3sixty/entity-storage-models": "next",
26
+ "@3sixty/event-bus-models": "next",
27
+ "@3sixty/immutable-proof-models": "next",
28
+ "@3sixty/nameof": "next",
29
+ "@3sixty/standards-schema-org": "next",
30
+ "@3sixty/standards-w3c-did": "next",
31
+ "@3sixty/telemetry-models": "next",
32
+ "@3sixty/web": "next"
33
+ },
34
+ "main": "./dist/es/index.js",
35
+ "types": "./dist/types/index.d.ts",
36
+ "exports": {
37
+ ".": {
38
+ "types": "./dist/types/index.d.ts",
39
+ "import": "./dist/es/index.js",
40
+ "default": "./dist/es/index.js"
41
+ },
42
+ "./locales/*.json": "./locales/*.json"
43
+ },
44
+ "files": [
45
+ "dist/es",
46
+ "dist/types",
47
+ "locales",
48
+ "docs"
49
+ ],
50
+ "keywords": [
51
+ "twin",
52
+ "trade",
53
+ "iota",
54
+ "framework",
55
+ "blockchain",
56
+ "auditable-item-graph",
57
+ "service",
58
+ "microservice",
59
+ "business-logic"
60
+ ],
61
+ "bugs": {
62
+ "url": "git+https://github.com/3sixtyglobal/auditable-item-graph/issues"
63
+ },
64
+ "homepage": "https://3sixty.global"
65
+ }