@twin.org/engine-server 0.0.2-next.11 → 0.0.2-next.13
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/dist/cjs/index.cjs +18 -4
- package/dist/esm/index.mjs +18 -4
- package/docs/changelog.md +36 -0
- package/package.json +4 -4
package/dist/cjs/index.cjs
CHANGED
|
@@ -314,7 +314,9 @@ 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("
|
|
317
|
+
this.addRestRouteGenerator("rightsManagementPapComponent", coreConfig.types.rightsManagementPapComponent, "@twin.org/rights-management-service", "generateRestRoutesPolicyAdministrationPoint");
|
|
318
|
+
this.addRestRouteGenerator("rightsManagementPnpComponent", coreConfig.types.rightsManagementPnpComponent, "@twin.org/rights-management-service", "generateRestRoutesPolicyNegotiationPoint");
|
|
319
|
+
this.addRestRouteGenerator("rightsManagementPnapComponent", coreConfig.types.rightsManagementPnapComponent, "@twin.org/rights-management-service", "generateRestRoutesPolicyNegotiationAdminPoint");
|
|
318
320
|
this.addRestRouteGenerator("synchronisedStorageComponent", coreConfig.types.synchronisedStorageComponent, "@twin.org/synchronised-storage-service", "generateRestRoutesSynchronisedStorage");
|
|
319
321
|
this.addRestRouteGenerator("federatedCatalogueComponent", coreConfig.types.federatedCatalogueComponent, "@twin.org/federated-catalogue-service", "generateRestRoutesFederatedCatalogue");
|
|
320
322
|
this.addRestRouteGenerator("dataSpaceConnectorComponent", coreConfig.types.dataSpaceConnectorComponent, "@twin.org/data-space-connector-service", "generateRestRoutesDataSpaceConnector");
|
|
@@ -400,9 +402,21 @@ function addDefaultRestPaths(serverConfig) {
|
|
|
400
402
|
!core.Is.stringValue(serverConfig.types.documentManagementComponent[0].restPath)) {
|
|
401
403
|
serverConfig.types.documentManagementComponent[0].restPath = "/documents";
|
|
402
404
|
}
|
|
403
|
-
if (core.Is.arrayValue(serverConfig.types.
|
|
404
|
-
!core.Is.stringValue(serverConfig.types.
|
|
405
|
-
serverConfig.types.
|
|
405
|
+
if (core.Is.arrayValue(serverConfig.types.rightsManagementPapComponent) &&
|
|
406
|
+
!core.Is.stringValue(serverConfig.types.rightsManagementPapComponent[0].restPath)) {
|
|
407
|
+
serverConfig.types.rightsManagementPapComponent[0].restPath = "/rights-management";
|
|
408
|
+
}
|
|
409
|
+
if (core.Is.arrayValue(serverConfig.types.rightsManagementPepComponent) &&
|
|
410
|
+
!core.Is.stringValue(serverConfig.types.rightsManagementPepComponent[0].restPath)) {
|
|
411
|
+
serverConfig.types.rightsManagementPepComponent[0].restPath = "/rights-management";
|
|
412
|
+
}
|
|
413
|
+
if (core.Is.arrayValue(serverConfig.types.rightsManagementPnpComponent) &&
|
|
414
|
+
!core.Is.stringValue(serverConfig.types.rightsManagementPnpComponent[0].restPath)) {
|
|
415
|
+
serverConfig.types.rightsManagementPnpComponent[0].restPath = "/rights-management";
|
|
416
|
+
}
|
|
417
|
+
if (core.Is.arrayValue(serverConfig.types.rightsManagementPnapComponent) &&
|
|
418
|
+
!core.Is.stringValue(serverConfig.types.rightsManagementPnapComponent[0].restPath)) {
|
|
419
|
+
serverConfig.types.rightsManagementPnapComponent[0].restPath = "/rights-management";
|
|
406
420
|
}
|
|
407
421
|
if (core.Is.arrayValue(serverConfig.types.synchronisedStorageComponent) &&
|
|
408
422
|
!core.Is.stringValue(serverConfig.types.synchronisedStorageComponent[0].restPath)) {
|
package/dist/esm/index.mjs
CHANGED
|
@@ -312,7 +312,9 @@ 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("
|
|
315
|
+
this.addRestRouteGenerator("rightsManagementPapComponent", coreConfig.types.rightsManagementPapComponent, "@twin.org/rights-management-service", "generateRestRoutesPolicyAdministrationPoint");
|
|
316
|
+
this.addRestRouteGenerator("rightsManagementPnpComponent", coreConfig.types.rightsManagementPnpComponent, "@twin.org/rights-management-service", "generateRestRoutesPolicyNegotiationPoint");
|
|
317
|
+
this.addRestRouteGenerator("rightsManagementPnapComponent", coreConfig.types.rightsManagementPnapComponent, "@twin.org/rights-management-service", "generateRestRoutesPolicyNegotiationAdminPoint");
|
|
316
318
|
this.addRestRouteGenerator("synchronisedStorageComponent", coreConfig.types.synchronisedStorageComponent, "@twin.org/synchronised-storage-service", "generateRestRoutesSynchronisedStorage");
|
|
317
319
|
this.addRestRouteGenerator("federatedCatalogueComponent", coreConfig.types.federatedCatalogueComponent, "@twin.org/federated-catalogue-service", "generateRestRoutesFederatedCatalogue");
|
|
318
320
|
this.addRestRouteGenerator("dataSpaceConnectorComponent", coreConfig.types.dataSpaceConnectorComponent, "@twin.org/data-space-connector-service", "generateRestRoutesDataSpaceConnector");
|
|
@@ -398,9 +400,21 @@ function addDefaultRestPaths(serverConfig) {
|
|
|
398
400
|
!Is.stringValue(serverConfig.types.documentManagementComponent[0].restPath)) {
|
|
399
401
|
serverConfig.types.documentManagementComponent[0].restPath = "/documents";
|
|
400
402
|
}
|
|
401
|
-
if (Is.arrayValue(serverConfig.types.
|
|
402
|
-
!Is.stringValue(serverConfig.types.
|
|
403
|
-
serverConfig.types.
|
|
403
|
+
if (Is.arrayValue(serverConfig.types.rightsManagementPapComponent) &&
|
|
404
|
+
!Is.stringValue(serverConfig.types.rightsManagementPapComponent[0].restPath)) {
|
|
405
|
+
serverConfig.types.rightsManagementPapComponent[0].restPath = "/rights-management";
|
|
406
|
+
}
|
|
407
|
+
if (Is.arrayValue(serverConfig.types.rightsManagementPepComponent) &&
|
|
408
|
+
!Is.stringValue(serverConfig.types.rightsManagementPepComponent[0].restPath)) {
|
|
409
|
+
serverConfig.types.rightsManagementPepComponent[0].restPath = "/rights-management";
|
|
410
|
+
}
|
|
411
|
+
if (Is.arrayValue(serverConfig.types.rightsManagementPnpComponent) &&
|
|
412
|
+
!Is.stringValue(serverConfig.types.rightsManagementPnpComponent[0].restPath)) {
|
|
413
|
+
serverConfig.types.rightsManagementPnpComponent[0].restPath = "/rights-management";
|
|
414
|
+
}
|
|
415
|
+
if (Is.arrayValue(serverConfig.types.rightsManagementPnapComponent) &&
|
|
416
|
+
!Is.stringValue(serverConfig.types.rightsManagementPnapComponent[0].restPath)) {
|
|
417
|
+
serverConfig.types.rightsManagementPnapComponent[0].restPath = "/rights-management";
|
|
404
418
|
}
|
|
405
419
|
if (Is.arrayValue(serverConfig.types.synchronisedStorageComponent) &&
|
|
406
420
|
!Is.stringValue(serverConfig.types.synchronisedStorageComponent[0].restPath)) {
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# @twin.org/engine-server - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.13](https://github.com/twinfoundation/engine/compare/engine-server-v0.0.2-next.12...engine-server-v0.0.2-next.13) (2025-09-08)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* update rights management dependencies ([14d06fb](https://github.com/twinfoundation/engine/commit/14d06fb6604ad04e4094da7b51b61a01a0280b8b))
|
|
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.12 to 0.0.2-next.13
|
|
16
|
+
* @twin.org/engine-models bumped from 0.0.2-next.12 to 0.0.2-next.13
|
|
17
|
+
* @twin.org/engine-server-types bumped from 0.0.2-next.12 to 0.0.2-next.13
|
|
18
|
+
* devDependencies
|
|
19
|
+
* @twin.org/engine bumped from 0.0.2-next.12 to 0.0.2-next.13
|
|
20
|
+
|
|
21
|
+
## [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)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
* add rights management negotiation ([84ef46b](https://github.com/twinfoundation/engine/commit/84ef46bff110611a19512793425c8c873ee2a590))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Dependencies
|
|
30
|
+
|
|
31
|
+
* The following workspace dependencies were updated
|
|
32
|
+
* dependencies
|
|
33
|
+
* @twin.org/engine-core bumped from 0.0.2-next.11 to 0.0.2-next.12
|
|
34
|
+
* @twin.org/engine-models bumped from 0.0.2-next.11 to 0.0.2-next.12
|
|
35
|
+
* @twin.org/engine-server-types bumped from 0.0.2-next.11 to 0.0.2-next.12
|
|
36
|
+
* devDependencies
|
|
37
|
+
* @twin.org/engine bumped from 0.0.2-next.11 to 0.0.2-next.12
|
|
38
|
+
|
|
3
39
|
## [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
40
|
|
|
5
41
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/engine-server",
|
|
3
|
-
"version": "0.0.2-next.
|
|
3
|
+
"version": "0.0.2-next.13",
|
|
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.
|
|
21
|
-
"@twin.org/engine-models": "0.0.2-next.
|
|
22
|
-
"@twin.org/engine-server-types": "0.0.2-next.
|
|
20
|
+
"@twin.org/engine-core": "0.0.2-next.13",
|
|
21
|
+
"@twin.org/engine-models": "0.0.2-next.13",
|
|
22
|
+
"@twin.org/engine-server-types": "0.0.2-next.13",
|
|
23
23
|
"@twin.org/modules": "next",
|
|
24
24
|
"@twin.org/nameof": "next"
|
|
25
25
|
},
|