@twin.org/engine-server 0.0.1-next.38 → 0.0.1-next.39

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.
@@ -276,6 +276,7 @@ class EngineServer {
276
276
  this.addRestRouteGenerator("auditableItemGraphComponent", coreConfig.types.auditableItemGraphComponent, "@twin.org/auditable-item-graph-service", "generateRestRoutesAuditableItemGraph");
277
277
  this.addRestRouteGenerator("auditableItemStreamComponent", coreConfig.types.auditableItemStreamComponent, "@twin.org/auditable-item-stream-service", "generateRestRoutesAuditableItemStream");
278
278
  this.addRestRouteGenerator("entityStorageComponent", coreConfig.types.entityStorageComponent, "@twin.org/entity-storage-service", "generateRestRoutesEntityStorage");
279
+ this.addRestRouteGenerator("dataProcessingComponent", coreConfig.types.dataProcessingComponent, "@twin.org/data-processing-service", "generateRestRoutesDataProcessing");
279
280
  }
280
281
  /**
281
282
  * Add the server socket route generators.
@@ -460,6 +461,10 @@ function addRestPaths(coreEngineConfig, serverConfig) {
460
461
  !core.Is.stringValue(coreEngineConfig.types.auditableItemStreamComponent[0].restPath)) {
461
462
  coreEngineConfig.types.auditableItemStreamComponent[0].restPath = "ais";
462
463
  }
464
+ if (core.Is.arrayValue(coreEngineConfig.types.dataProcessingComponent) &&
465
+ !core.Is.stringValue(coreEngineConfig.types.dataProcessingComponent[0].restPath)) {
466
+ coreEngineConfig.types.dataProcessingComponent[0].restPath = "data-processing";
467
+ }
463
468
  }
464
469
  /**
465
470
  * Adds the socket paths to the server config.
@@ -274,6 +274,7 @@ class EngineServer {
274
274
  this.addRestRouteGenerator("auditableItemGraphComponent", coreConfig.types.auditableItemGraphComponent, "@twin.org/auditable-item-graph-service", "generateRestRoutesAuditableItemGraph");
275
275
  this.addRestRouteGenerator("auditableItemStreamComponent", coreConfig.types.auditableItemStreamComponent, "@twin.org/auditable-item-stream-service", "generateRestRoutesAuditableItemStream");
276
276
  this.addRestRouteGenerator("entityStorageComponent", coreConfig.types.entityStorageComponent, "@twin.org/entity-storage-service", "generateRestRoutesEntityStorage");
277
+ this.addRestRouteGenerator("dataProcessingComponent", coreConfig.types.dataProcessingComponent, "@twin.org/data-processing-service", "generateRestRoutesDataProcessing");
277
278
  }
278
279
  /**
279
280
  * Add the server socket route generators.
@@ -458,6 +459,10 @@ function addRestPaths(coreEngineConfig, serverConfig) {
458
459
  !Is.stringValue(coreEngineConfig.types.auditableItemStreamComponent[0].restPath)) {
459
460
  coreEngineConfig.types.auditableItemStreamComponent[0].restPath = "ais";
460
461
  }
462
+ if (Is.arrayValue(coreEngineConfig.types.dataProcessingComponent) &&
463
+ !Is.stringValue(coreEngineConfig.types.dataProcessingComponent[0].restPath)) {
464
+ coreEngineConfig.types.dataProcessingComponent[0].restPath = "data-processing";
465
+ }
461
466
  }
462
467
  /**
463
468
  * Adds the socket paths to the server config.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/engine-server",
3
- "version": "0.0.1-next.38",
3
+ "version": "0.0.1-next.39",
4
4
  "description": "Engine implementation for a server.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,9 +17,9 @@
17
17
  "@twin.org/api-models": "next",
18
18
  "@twin.org/api-server-fastify": "next",
19
19
  "@twin.org/core": "next",
20
- "@twin.org/engine-core": "0.0.1-next.38",
21
- "@twin.org/engine-models": "0.0.1-next.38",
22
- "@twin.org/engine-server-types": "0.0.1-next.38",
20
+ "@twin.org/engine-core": "0.0.1-next.39",
21
+ "@twin.org/engine-models": "0.0.1-next.39",
22
+ "@twin.org/engine-server-types": "0.0.1-next.39",
23
23
  "@twin.org/modules": "next",
24
24
  "@twin.org/nameof": "next"
25
25
  },