@twin.org/engine-server 0.0.2-next.11 → 0.0.2-next.12

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.
@@ -314,7 +314,10 @@ class EngineServer {
314
314
  this.addRestRouteGenerator("entityStorageComponent", coreConfig.types.entityStorageComponent, "@twin.org/entity-storage-service", "generateRestRoutesEntityStorage");
315
315
  this.addRestRouteGenerator("dataProcessingComponent", coreConfig.types.dataProcessingComponent, "@twin.org/data-processing-service", "generateRestRoutesDataProcessing");
316
316
  this.addRestRouteGenerator("documentManagementComponent", coreConfig.types.documentManagementComponent, "@twin.org/document-management-service", "generateRestRoutesDocumentManagement");
317
- this.addRestRouteGenerator("rightsManagementComponent", coreConfig.types.rightsManagementComponent, "@twin.org/rights-management-service", "generateRestRoutesRightsManagement");
317
+ this.addRestRouteGenerator("rightsManagementPapComponent", coreConfig.types.rightsManagementPapComponent, "@twin.org/rights-management-service", "generateRestRoutesPolicyAdministrationPoint");
318
+ this.addRestRouteGenerator("rightsManagementPepComponent", coreConfig.types.rightsManagementPepComponent, "@twin.org/rights-management-service", "generateRestRoutesPolicyEnforcementPoint");
319
+ this.addRestRouteGenerator("rightsManagementPnpComponent", coreConfig.types.rightsManagementPnpComponent, "@twin.org/rights-management-service", "generateRestRoutesPolicyNegotiationPoint");
320
+ this.addRestRouteGenerator("rightsManagementPnapComponent", coreConfig.types.rightsManagementPnapComponent, "@twin.org/rights-management-service", "generateRestRoutesPolicyNegotiationAdminPoint");
318
321
  this.addRestRouteGenerator("synchronisedStorageComponent", coreConfig.types.synchronisedStorageComponent, "@twin.org/synchronised-storage-service", "generateRestRoutesSynchronisedStorage");
319
322
  this.addRestRouteGenerator("federatedCatalogueComponent", coreConfig.types.federatedCatalogueComponent, "@twin.org/federated-catalogue-service", "generateRestRoutesFederatedCatalogue");
320
323
  this.addRestRouteGenerator("dataSpaceConnectorComponent", coreConfig.types.dataSpaceConnectorComponent, "@twin.org/data-space-connector-service", "generateRestRoutesDataSpaceConnector");
@@ -400,9 +403,21 @@ function addDefaultRestPaths(serverConfig) {
400
403
  !core.Is.stringValue(serverConfig.types.documentManagementComponent[0].restPath)) {
401
404
  serverConfig.types.documentManagementComponent[0].restPath = "/documents";
402
405
  }
403
- if (core.Is.arrayValue(serverConfig.types.rightsManagementComponent) &&
404
- !core.Is.stringValue(serverConfig.types.rightsManagementComponent[0].restPath)) {
405
- serverConfig.types.rightsManagementComponent[0].restPath = "/rights-management";
406
+ if (core.Is.arrayValue(serverConfig.types.rightsManagementPapComponent) &&
407
+ !core.Is.stringValue(serverConfig.types.rightsManagementPapComponent[0].restPath)) {
408
+ serverConfig.types.rightsManagementPapComponent[0].restPath = "/rights-management";
409
+ }
410
+ if (core.Is.arrayValue(serverConfig.types.rightsManagementPepComponent) &&
411
+ !core.Is.stringValue(serverConfig.types.rightsManagementPepComponent[0].restPath)) {
412
+ serverConfig.types.rightsManagementPepComponent[0].restPath = "/rights-management";
413
+ }
414
+ if (core.Is.arrayValue(serverConfig.types.rightsManagementPnpComponent) &&
415
+ !core.Is.stringValue(serverConfig.types.rightsManagementPnpComponent[0].restPath)) {
416
+ serverConfig.types.rightsManagementPnpComponent[0].restPath = "/rights-management";
417
+ }
418
+ if (core.Is.arrayValue(serverConfig.types.rightsManagementPnapComponent) &&
419
+ !core.Is.stringValue(serverConfig.types.rightsManagementPnapComponent[0].restPath)) {
420
+ serverConfig.types.rightsManagementPnapComponent[0].restPath = "/rights-management";
406
421
  }
407
422
  if (core.Is.arrayValue(serverConfig.types.synchronisedStorageComponent) &&
408
423
  !core.Is.stringValue(serverConfig.types.synchronisedStorageComponent[0].restPath)) {
@@ -312,7 +312,10 @@ class EngineServer {
312
312
  this.addRestRouteGenerator("entityStorageComponent", coreConfig.types.entityStorageComponent, "@twin.org/entity-storage-service", "generateRestRoutesEntityStorage");
313
313
  this.addRestRouteGenerator("dataProcessingComponent", coreConfig.types.dataProcessingComponent, "@twin.org/data-processing-service", "generateRestRoutesDataProcessing");
314
314
  this.addRestRouteGenerator("documentManagementComponent", coreConfig.types.documentManagementComponent, "@twin.org/document-management-service", "generateRestRoutesDocumentManagement");
315
- this.addRestRouteGenerator("rightsManagementComponent", coreConfig.types.rightsManagementComponent, "@twin.org/rights-management-service", "generateRestRoutesRightsManagement");
315
+ this.addRestRouteGenerator("rightsManagementPapComponent", coreConfig.types.rightsManagementPapComponent, "@twin.org/rights-management-service", "generateRestRoutesPolicyAdministrationPoint");
316
+ this.addRestRouteGenerator("rightsManagementPepComponent", coreConfig.types.rightsManagementPepComponent, "@twin.org/rights-management-service", "generateRestRoutesPolicyEnforcementPoint");
317
+ this.addRestRouteGenerator("rightsManagementPnpComponent", coreConfig.types.rightsManagementPnpComponent, "@twin.org/rights-management-service", "generateRestRoutesPolicyNegotiationPoint");
318
+ this.addRestRouteGenerator("rightsManagementPnapComponent", coreConfig.types.rightsManagementPnapComponent, "@twin.org/rights-management-service", "generateRestRoutesPolicyNegotiationAdminPoint");
316
319
  this.addRestRouteGenerator("synchronisedStorageComponent", coreConfig.types.synchronisedStorageComponent, "@twin.org/synchronised-storage-service", "generateRestRoutesSynchronisedStorage");
317
320
  this.addRestRouteGenerator("federatedCatalogueComponent", coreConfig.types.federatedCatalogueComponent, "@twin.org/federated-catalogue-service", "generateRestRoutesFederatedCatalogue");
318
321
  this.addRestRouteGenerator("dataSpaceConnectorComponent", coreConfig.types.dataSpaceConnectorComponent, "@twin.org/data-space-connector-service", "generateRestRoutesDataSpaceConnector");
@@ -398,9 +401,21 @@ function addDefaultRestPaths(serverConfig) {
398
401
  !Is.stringValue(serverConfig.types.documentManagementComponent[0].restPath)) {
399
402
  serverConfig.types.documentManagementComponent[0].restPath = "/documents";
400
403
  }
401
- if (Is.arrayValue(serverConfig.types.rightsManagementComponent) &&
402
- !Is.stringValue(serverConfig.types.rightsManagementComponent[0].restPath)) {
403
- serverConfig.types.rightsManagementComponent[0].restPath = "/rights-management";
404
+ if (Is.arrayValue(serverConfig.types.rightsManagementPapComponent) &&
405
+ !Is.stringValue(serverConfig.types.rightsManagementPapComponent[0].restPath)) {
406
+ serverConfig.types.rightsManagementPapComponent[0].restPath = "/rights-management";
407
+ }
408
+ if (Is.arrayValue(serverConfig.types.rightsManagementPepComponent) &&
409
+ !Is.stringValue(serverConfig.types.rightsManagementPepComponent[0].restPath)) {
410
+ serverConfig.types.rightsManagementPepComponent[0].restPath = "/rights-management";
411
+ }
412
+ if (Is.arrayValue(serverConfig.types.rightsManagementPnpComponent) &&
413
+ !Is.stringValue(serverConfig.types.rightsManagementPnpComponent[0].restPath)) {
414
+ serverConfig.types.rightsManagementPnpComponent[0].restPath = "/rights-management";
415
+ }
416
+ if (Is.arrayValue(serverConfig.types.rightsManagementPnapComponent) &&
417
+ !Is.stringValue(serverConfig.types.rightsManagementPnapComponent[0].restPath)) {
418
+ serverConfig.types.rightsManagementPnapComponent[0].restPath = "/rights-management";
404
419
  }
405
420
  if (Is.arrayValue(serverConfig.types.synchronisedStorageComponent) &&
406
421
  !Is.stringValue(serverConfig.types.synchronisedStorageComponent[0].restPath)) {
package/docs/changelog.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @twin.org/engine-server - Changelog
2
2
 
3
+ ## [0.0.2-next.12](https://github.com/twinfoundation/engine/compare/engine-server-v0.0.2-next.11...engine-server-v0.0.2-next.12) (2025-09-05)
4
+
5
+
6
+ ### Features
7
+
8
+ * add rights management negotiation ([84ef46b](https://github.com/twinfoundation/engine/commit/84ef46bff110611a19512793425c8c873ee2a590))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/engine-core bumped from 0.0.2-next.11 to 0.0.2-next.12
16
+ * @twin.org/engine-models bumped from 0.0.2-next.11 to 0.0.2-next.12
17
+ * @twin.org/engine-server-types bumped from 0.0.2-next.11 to 0.0.2-next.12
18
+ * devDependencies
19
+ * @twin.org/engine bumped from 0.0.2-next.11 to 0.0.2-next.12
20
+
3
21
  ## [0.0.2-next.11](https://github.com/twinfoundation/engine/compare/engine-server-v0.0.2-next.10...engine-server-v0.0.2-next.11) (2025-08-29)
4
22
 
5
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/engine-server",
3
- "version": "0.0.2-next.11",
3
+ "version": "0.0.2-next.12",
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.2-next.11",
21
- "@twin.org/engine-models": "0.0.2-next.11",
22
- "@twin.org/engine-server-types": "0.0.2-next.11",
20
+ "@twin.org/engine-core": "0.0.2-next.12",
21
+ "@twin.org/engine-models": "0.0.2-next.12",
22
+ "@twin.org/engine-server-types": "0.0.2-next.12",
23
23
  "@twin.org/modules": "next",
24
24
  "@twin.org/nameof": "next"
25
25
  },