@twin.org/dataspace-test-app 0.9.1-next.9 → 0.9.2-next.1
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/es/extension.js +10 -6
- package/dist/es/extension.js.map +1 -1
- package/dist/types/extension.d.ts +26 -9
- package/docs/changelog.md +98 -0
- package/docs/reference/functions/extensionInitialise.md +6 -2
- package/docs/reference/functions/extensionInitialiseEngine.md +6 -2
- package/docs/reference/functions/extensionInitialiseEngineServer.md +8 -4
- package/docs/reference/functions/testAppInitialiser.md +38 -6
- package/package.json +3 -5
package/dist/es/extension.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Is } from "@twin.org/core";
|
|
2
2
|
import { DataspaceAppFactory } from "@twin.org/dataspace-models";
|
|
3
|
-
import { EngineTypeHelper } from "@twin.org/engine-types";
|
|
4
3
|
import { TestDataspaceDataPlaneApp } from "./testDataspaceDataPlaneApp.js";
|
|
5
4
|
/**
|
|
6
5
|
* Initialise the extension.
|
|
7
6
|
* @param envVars The environment variables for the node.
|
|
8
7
|
* @param nodeEngineConfig The node engine config.
|
|
8
|
+
* @param nodeEngineConfig.types The component type configurations keyed by type name.
|
|
9
9
|
* @returns A promise that resolves when the test app component type has been registered in the engine config.
|
|
10
10
|
*/
|
|
11
11
|
export async function extensionInitialise(envVars, nodeEngineConfig) {
|
|
@@ -23,6 +23,7 @@ export async function extensionInitialise(envVars, nodeEngineConfig) {
|
|
|
23
23
|
/**
|
|
24
24
|
* Initialise the engine for the extension.
|
|
25
25
|
* @param engineCore The engine core instance.
|
|
26
|
+
* @param engineCore.addTypeInitialiser Registers a named type initialiser module and export with the engine.
|
|
26
27
|
* @returns A promise that resolves when the type initialiser has been registered with the engine.
|
|
27
28
|
*/
|
|
28
29
|
export async function extensionInitialiseEngine(engineCore) {
|
|
@@ -30,8 +31,9 @@ export async function extensionInitialiseEngine(engineCore) {
|
|
|
30
31
|
}
|
|
31
32
|
/**
|
|
32
33
|
* Initialise the engine server for the extension.
|
|
33
|
-
* @param engineCore The engine core instance.
|
|
34
|
+
* @param engineCore The engine core instance (unused by this extension).
|
|
34
35
|
* @param engineServer The engine server instance.
|
|
36
|
+
* @param engineServer.addRestRouteGenerator Registers a named REST route generator module and export with the engine server.
|
|
35
37
|
* @returns A promise that resolves when the REST route generator has been registered with the engine server.
|
|
36
38
|
*/
|
|
37
39
|
export async function extensionInitialiseEngineServer(engineCore, engineServer) {
|
|
@@ -40,7 +42,8 @@ export async function extensionInitialiseEngineServer(engineCore, engineServer)
|
|
|
40
42
|
/**
|
|
41
43
|
* Test Dataspace Data Plane App initializer.
|
|
42
44
|
* @param engineCore The engine core.
|
|
43
|
-
* @param
|
|
45
|
+
* @param engineCore.getRegisteredInstanceType Returns the registered instance type name for a given component type.
|
|
46
|
+
* @param context The engine core context (unused by this extension).
|
|
44
47
|
* @param instanceConfig The instance config.
|
|
45
48
|
* @param instanceConfig.options The instance config options.
|
|
46
49
|
* @param instanceConfig.type The instance type.
|
|
@@ -50,9 +53,10 @@ export function testAppInitialiser(engineCore, context, instanceConfig) {
|
|
|
50
53
|
let instanceTypeName;
|
|
51
54
|
let createComponent;
|
|
52
55
|
if (instanceConfig.type === "service") {
|
|
53
|
-
createComponent = (createConfig) => new TestDataspaceDataPlaneApp(
|
|
54
|
-
loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent")
|
|
55
|
-
|
|
56
|
+
createComponent = (createConfig) => new TestDataspaceDataPlaneApp({
|
|
57
|
+
loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent"),
|
|
58
|
+
...createConfig.options
|
|
59
|
+
});
|
|
56
60
|
instanceTypeName = TestDataspaceDataPlaneApp.APP_ID;
|
|
57
61
|
}
|
|
58
62
|
return {
|
package/dist/es/extension.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension.js","sourceRoot":"","sources":["../../src/extension.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"extension.js","sourceRoot":"","sources":["../../src/extension.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAE3E;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACxC,OAA2C,EAC3C,gBAAyD;IAEzD,gBAAgB,CAAC,KAAK,CAAC,gBAAgB,GAAG;QACzC;YACC,IAAI,EAAE,SAAS;YACf,OAAO,EAAE;gBACR,YAAY,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,mBAAmB,CAAC;oBACvD,CAAC,CAAC,OAAO,CAAC,mBAAmB;oBAC7B,CAAC,CAAC,SAAS;aACZ;SACD;KACD,CAAC;AACH,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAAC,UAE/C;IACA,UAAU,CAAC,kBAAkB,CAC5B,kBAAkB,EAClB,8BAA8B,EAC9B,oBAAoB,CACpB,CAAC;AACH,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,+BAA+B,CACpD,UAAmB,EACnB,YAEC;IAED,YAAY,CAAC,qBAAqB,CACjC,kBAAkB,EAClB,8BAA8B,EAC9B,oBAAoB,CACpB,CAAC;AACH,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,kBAAkB,CACjC,UAAmE,EACnE,OAAgB,EAChB,cAAwE;IAMxE,IAAI,gBAAoC,CAAC;IACzC,IAAI,eAAe,CAAC;IAEpB,IAAI,cAAc,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QACvC,eAAe,GAAG,CAAC,YAAmC,EAAE,EAAE,CACzD,IAAI,yBAAyB,CAAC;YAC7B,oBAAoB,EAAE,UAAU,CAAC,yBAAyB,CAAC,kBAAkB,CAAC;YAC9E,GAAG,YAAY,CAAC,OAAO;SACvB,CAAC,CAAC;QACJ,gBAAgB,GAAG,yBAAyB,CAAC,MAAM,CAAC;IACrD,CAAC;IAED,OAAO;QACN,gBAAgB;QAChB,OAAO,EAAE,mBAAmB;QAC5B,eAAe;KACf,CAAC;AACH,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAAC,aAAqB,EAAE,aAAqB;IAC9E,OAAO,EAAE,CAAC;AACX,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IRestRoute } from \"@twin.org/api-models\";\nimport { Is } from \"@twin.org/core\";\nimport { DataspaceAppFactory } from \"@twin.org/dataspace-models\";\nimport type { ITestAppConstructorOptions } from \"./ITestAppConstructorOptions.js\";\nimport { TestDataspaceDataPlaneApp } from \"./testDataspaceDataPlaneApp.js\";\n\n/**\n * Initialise the extension.\n * @param envVars The environment variables for the node.\n * @param nodeEngineConfig The node engine config.\n * @param nodeEngineConfig.types The component type configurations keyed by type name.\n * @returns A promise that resolves when the test app component type has been registered in the engine config.\n */\nexport async function extensionInitialise(\n\tenvVars: { [id: string]: string | unknown },\n\tnodeEngineConfig: { types: { [key: string]: unknown[] } }\n): Promise<void> {\n\tnodeEngineConfig.types.testAppComponent = [\n\t\t{\n\t\t\ttype: \"service\",\n\t\t\toptions: {\n\t\t\t\tconsignments: Is.arrayValue(envVars.testAppConsignments)\n\t\t\t\t\t? envVars.testAppConsignments\n\t\t\t\t\t: undefined\n\t\t\t}\n\t\t}\n\t];\n}\n\n/**\n * Initialise the engine for the extension.\n * @param engineCore The engine core instance.\n * @param engineCore.addTypeInitialiser Registers a named type initialiser module and export with the engine.\n * @returns A promise that resolves when the type initialiser has been registered with the engine.\n */\nexport async function extensionInitialiseEngine(engineCore: {\n\taddTypeInitialiser: (type: string, module: string, name: string) => void;\n}): Promise<void> {\n\tengineCore.addTypeInitialiser(\n\t\t\"testAppComponent\",\n\t\t\"@twin.org/dataspace-test-app\",\n\t\t\"testAppInitialiser\"\n\t);\n}\n\n/**\n * Initialise the engine server for the extension.\n * @param engineCore The engine core instance (unused by this extension).\n * @param engineServer The engine server instance.\n * @param engineServer.addRestRouteGenerator Registers a named REST route generator module and export with the engine server.\n * @returns A promise that resolves when the REST route generator has been registered with the engine server.\n */\nexport async function extensionInitialiseEngineServer(\n\tengineCore: unknown,\n\tengineServer: {\n\t\taddRestRouteGenerator: (type: string, module: string, name: string) => void;\n\t}\n): Promise<void> {\n\tengineServer.addRestRouteGenerator(\n\t\t\"testAppComponent\",\n\t\t\"@twin.org/dataspace-test-app\",\n\t\t\"generateRestRoutes\"\n\t);\n}\n\n/**\n * Test Dataspace Data Plane App initializer.\n * @param engineCore The engine core.\n * @param engineCore.getRegisteredInstanceType Returns the registered instance type name for a given component type.\n * @param context The engine core context (unused by this extension).\n * @param instanceConfig The instance config.\n * @param instanceConfig.options The instance config options.\n * @param instanceConfig.type The instance type.\n * @returns The instance created and the factory for it.\n */\nexport function testAppInitialiser(\n\tengineCore: { getRegisteredInstanceType: (type: string) => string },\n\tcontext: unknown,\n\tinstanceConfig: { type: \"service\"; options: ITestAppConstructorOptions }\n): {\n\tinstanceTypeName?: string;\n\tfactory: typeof DataspaceAppFactory;\n\tcreateComponent?: (createConfig: typeof instanceConfig) => TestDataspaceDataPlaneApp;\n} {\n\tlet instanceTypeName: string | undefined;\n\tlet createComponent;\n\n\tif (instanceConfig.type === \"service\") {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) =>\n\t\t\tnew TestDataspaceDataPlaneApp({\n\t\t\t\tloggingComponentType: engineCore.getRegisteredInstanceType(\"loggingComponent\"),\n\t\t\t\t...createConfig.options\n\t\t\t});\n\t\tinstanceTypeName = TestDataspaceDataPlaneApp.APP_ID;\n\t}\n\n\treturn {\n\t\tinstanceTypeName,\n\t\tfactory: DataspaceAppFactory,\n\t\tcreateComponent\n\t};\n}\n\n/**\n * Generate the rest routes for the component.\n * @param baseRouteName The base route name.\n * @param componentName The component name.\n * @returns The rest routes.\n */\nexport function generateRestRoutes(baseRouteName: string, componentName: string): IRestRoute[] {\n\treturn [];\n}\n"]}
|
|
@@ -1,43 +1,60 @@
|
|
|
1
1
|
import type { IRestRoute } from "@twin.org/api-models";
|
|
2
2
|
import { DataspaceAppFactory } from "@twin.org/dataspace-models";
|
|
3
|
-
import type { EngineTypeInitialiserReturn, IEngineCore, IEngineCoreConfig, IEngineCoreContext, IEngineServer } from "@twin.org/engine-models";
|
|
4
|
-
import { type IEngineConfig } from "@twin.org/engine-types";
|
|
5
3
|
import type { ITestAppConstructorOptions } from "./ITestAppConstructorOptions.js";
|
|
4
|
+
import { TestDataspaceDataPlaneApp } from "./testDataspaceDataPlaneApp.js";
|
|
6
5
|
/**
|
|
7
6
|
* Initialise the extension.
|
|
8
7
|
* @param envVars The environment variables for the node.
|
|
9
8
|
* @param nodeEngineConfig The node engine config.
|
|
9
|
+
* @param nodeEngineConfig.types The component type configurations keyed by type name.
|
|
10
10
|
* @returns A promise that resolves when the test app component type has been registered in the engine config.
|
|
11
11
|
*/
|
|
12
12
|
export declare function extensionInitialise(envVars: {
|
|
13
13
|
[id: string]: string | unknown;
|
|
14
|
-
}, nodeEngineConfig:
|
|
14
|
+
}, nodeEngineConfig: {
|
|
15
|
+
types: {
|
|
16
|
+
[key: string]: unknown[];
|
|
17
|
+
};
|
|
18
|
+
}): Promise<void>;
|
|
15
19
|
/**
|
|
16
20
|
* Initialise the engine for the extension.
|
|
17
21
|
* @param engineCore The engine core instance.
|
|
22
|
+
* @param engineCore.addTypeInitialiser Registers a named type initialiser module and export with the engine.
|
|
18
23
|
* @returns A promise that resolves when the type initialiser has been registered with the engine.
|
|
19
24
|
*/
|
|
20
|
-
export declare function extensionInitialiseEngine(engineCore:
|
|
25
|
+
export declare function extensionInitialiseEngine(engineCore: {
|
|
26
|
+
addTypeInitialiser: (type: string, module: string, name: string) => void;
|
|
27
|
+
}): Promise<void>;
|
|
21
28
|
/**
|
|
22
29
|
* Initialise the engine server for the extension.
|
|
23
|
-
* @param engineCore The engine core instance.
|
|
30
|
+
* @param engineCore The engine core instance (unused by this extension).
|
|
24
31
|
* @param engineServer The engine server instance.
|
|
32
|
+
* @param engineServer.addRestRouteGenerator Registers a named REST route generator module and export with the engine server.
|
|
25
33
|
* @returns A promise that resolves when the REST route generator has been registered with the engine server.
|
|
26
34
|
*/
|
|
27
|
-
export declare function extensionInitialiseEngineServer(engineCore:
|
|
35
|
+
export declare function extensionInitialiseEngineServer(engineCore: unknown, engineServer: {
|
|
36
|
+
addRestRouteGenerator: (type: string, module: string, name: string) => void;
|
|
37
|
+
}): Promise<void>;
|
|
28
38
|
/**
|
|
29
39
|
* Test Dataspace Data Plane App initializer.
|
|
30
40
|
* @param engineCore The engine core.
|
|
31
|
-
* @param
|
|
41
|
+
* @param engineCore.getRegisteredInstanceType Returns the registered instance type name for a given component type.
|
|
42
|
+
* @param context The engine core context (unused by this extension).
|
|
32
43
|
* @param instanceConfig The instance config.
|
|
33
44
|
* @param instanceConfig.options The instance config options.
|
|
34
45
|
* @param instanceConfig.type The instance type.
|
|
35
46
|
* @returns The instance created and the factory for it.
|
|
36
47
|
*/
|
|
37
|
-
export declare function testAppInitialiser(engineCore:
|
|
48
|
+
export declare function testAppInitialiser(engineCore: {
|
|
49
|
+
getRegisteredInstanceType: (type: string) => string;
|
|
50
|
+
}, context: unknown, instanceConfig: {
|
|
38
51
|
type: "service";
|
|
39
52
|
options: ITestAppConstructorOptions;
|
|
40
|
-
}):
|
|
53
|
+
}): {
|
|
54
|
+
instanceTypeName?: string;
|
|
55
|
+
factory: typeof DataspaceAppFactory;
|
|
56
|
+
createComponent?: (createConfig: typeof instanceConfig) => TestDataspaceDataPlaneApp;
|
|
57
|
+
};
|
|
41
58
|
/**
|
|
42
59
|
* Generate the rest routes for the component.
|
|
43
60
|
* @param baseRouteName The base route name.
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,103 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.9.2-next.1](https://github.com/iotaledger/twin-dataspace/compare/dataspace-test-app-v0.9.2-next.0...dataspace-test-app-v0.9.2-next.1) (2026-07-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add inline tasks and concurrent options ([#104](https://github.com/iotaledger/twin-dataspace/issues/104)) ([2227a21](https://github.com/iotaledger/twin-dataspace/commit/2227a212d906f58ba77850c79bb20bf2cb7195a8))
|
|
9
|
+
* align all config times to ms ([40238d5](https://github.com/iotaledger/twin-dataspace/commit/40238d59a2b45caedc01792b682ce7206815dfd1))
|
|
10
|
+
* docs update ([8b44c7a](https://github.com/iotaledger/twin-dataspace/commit/8b44c7a75afb8d377a6f606616f8a78d58439ab4))
|
|
11
|
+
* endpoint encryption + getDatasetTargets multi-target fix ([#112](https://github.com/iotaledger/twin-dataspace/issues/112)) ([3288941](https://github.com/iotaledger/twin-dataspace/commit/328894113c19c7402f7d00dfa77b6a97ae40ca91))
|
|
12
|
+
* extend test app with multi-consignment data using UNECE vocabulary ([#92](https://github.com/iotaledger/twin-dataspace/issues/92)) ([2f69566](https://github.com/iotaledger/twin-dataspace/commit/2f695668ec03e50c89ddb1437f2be39c047e3268))
|
|
13
|
+
* improve open-api examples ([1368dbe](https://github.com/iotaledger/twin-dataspace/commit/1368dbed5c36e074b4854942304a19b9ce51e088))
|
|
14
|
+
* organization identifiers ([#188](https://github.com/iotaledger/twin-dataspace/issues/188)) ([af643d3](https://github.com/iotaledger/twin-dataspace/commit/af643d3bb7f212d6cbb672e362a9e1bbe886d1a5))
|
|
15
|
+
* remove engine dependency ([#313](https://github.com/iotaledger/twin-dataspace/issues/313)) ([aec9f60](https://github.com/iotaledger/twin-dataspace/commit/aec9f60d530cd06a73170b3226795a260db8e6f4))
|
|
16
|
+
* resolve DSP transfer flow bugs for cross-node communication ([#76](https://github.com/iotaledger/twin-dataspace/issues/76)) ([506a45c](https://github.com/iotaledger/twin-dataspace/commit/506a45c94e63d5f958b1fc7131adfe452c3e2974))
|
|
17
|
+
* types update ([77c338e](https://github.com/iotaledger/twin-dataspace/commit/77c338e9244dcc7e3d597fdb06229513b1f13eac))
|
|
18
|
+
* typescript 6 update ([340f10e](https://github.com/iotaledger/twin-dataspace/commit/340f10e4767f6285c694938944f7e044474f9aaa))
|
|
19
|
+
* unification of the data exchange and the data space connector ([#57](https://github.com/iotaledger/twin-dataspace/issues/57)) ([df2644d](https://github.com/iotaledger/twin-dataspace/commit/df2644d989471e07dadd83d27bef736179e31bf4))
|
|
20
|
+
* update dependencies ([55cb41c](https://github.com/iotaledger/twin-dataspace/commit/55cb41c1d0ce7ebddcce41c60fe944650bcf0499))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* avoid compaction of incoming activities ([#77](https://github.com/iotaledger/twin-dataspace/issues/77)) ([ff43d6a](https://github.com/iotaledger/twin-dataspace/commit/ff43d6a3e1563eb9cb185501134b2a53ae88787c))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Dependencies
|
|
29
|
+
|
|
30
|
+
* The following workspace dependencies were updated
|
|
31
|
+
* dependencies
|
|
32
|
+
* @twin.org/dataspace-models bumped from 0.9.2-next.0 to 0.9.2-next.1
|
|
33
|
+
|
|
34
|
+
## [0.9.1](https://github.com/iotaledger/twin-dataspace/compare/dataspace-test-app-v0.9.1...dataspace-test-app-v0.9.1) (2026-07-27)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Features
|
|
38
|
+
|
|
39
|
+
* add inline tasks and concurrent options ([#104](https://github.com/iotaledger/twin-dataspace/issues/104)) ([2227a21](https://github.com/iotaledger/twin-dataspace/commit/2227a212d906f58ba77850c79bb20bf2cb7195a8))
|
|
40
|
+
* align all config times to ms ([40238d5](https://github.com/iotaledger/twin-dataspace/commit/40238d59a2b45caedc01792b682ce7206815dfd1))
|
|
41
|
+
* docs update ([8b44c7a](https://github.com/iotaledger/twin-dataspace/commit/8b44c7a75afb8d377a6f606616f8a78d58439ab4))
|
|
42
|
+
* endpoint encryption + getDatasetTargets multi-target fix ([#112](https://github.com/iotaledger/twin-dataspace/issues/112)) ([3288941](https://github.com/iotaledger/twin-dataspace/commit/328894113c19c7402f7d00dfa77b6a97ae40ca91))
|
|
43
|
+
* extend test app with multi-consignment data using UNECE vocabulary ([#92](https://github.com/iotaledger/twin-dataspace/issues/92)) ([2f69566](https://github.com/iotaledger/twin-dataspace/commit/2f695668ec03e50c89ddb1437f2be39c047e3268))
|
|
44
|
+
* improve open-api examples ([1368dbe](https://github.com/iotaledger/twin-dataspace/commit/1368dbed5c36e074b4854942304a19b9ce51e088))
|
|
45
|
+
* organization identifiers ([#188](https://github.com/iotaledger/twin-dataspace/issues/188)) ([af643d3](https://github.com/iotaledger/twin-dataspace/commit/af643d3bb7f212d6cbb672e362a9e1bbe886d1a5))
|
|
46
|
+
* release to production ([#243](https://github.com/iotaledger/twin-dataspace/issues/243)) ([9906476](https://github.com/iotaledger/twin-dataspace/commit/9906476c5b9150f0660f7950a3afd4fa87009d14))
|
|
47
|
+
* release to production ([#308](https://github.com/iotaledger/twin-dataspace/issues/308)) ([fba29a0](https://github.com/iotaledger/twin-dataspace/commit/fba29a083d7e4892f1f06b9e2e3faa6a72185cda))
|
|
48
|
+
* resolve DSP transfer flow bugs for cross-node communication ([#76](https://github.com/iotaledger/twin-dataspace/issues/76)) ([506a45c](https://github.com/iotaledger/twin-dataspace/commit/506a45c94e63d5f958b1fc7131adfe452c3e2974))
|
|
49
|
+
* types update ([77c338e](https://github.com/iotaledger/twin-dataspace/commit/77c338e9244dcc7e3d597fdb06229513b1f13eac))
|
|
50
|
+
* typescript 6 update ([340f10e](https://github.com/iotaledger/twin-dataspace/commit/340f10e4767f6285c694938944f7e044474f9aaa))
|
|
51
|
+
* unification of the data exchange and the data space connector ([#57](https://github.com/iotaledger/twin-dataspace/issues/57)) ([df2644d](https://github.com/iotaledger/twin-dataspace/commit/df2644d989471e07dadd83d27bef736179e31bf4))
|
|
52
|
+
* update dependencies ([55cb41c](https://github.com/iotaledger/twin-dataspace/commit/55cb41c1d0ce7ebddcce41c60fe944650bcf0499))
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### Bug Fixes
|
|
56
|
+
|
|
57
|
+
* avoid compaction of incoming activities ([#77](https://github.com/iotaledger/twin-dataspace/issues/77)) ([ff43d6a](https://github.com/iotaledger/twin-dataspace/commit/ff43d6a3e1563eb9cb185501134b2a53ae88787c))
|
|
58
|
+
|
|
59
|
+
## [0.9.1-next.12](https://github.com/iotaledger/twin-dataspace/compare/dataspace-test-app-v0.9.1-next.11...dataspace-test-app-v0.9.1-next.12) (2026-07-26)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### Miscellaneous Chores
|
|
63
|
+
|
|
64
|
+
* **dataspace-test-app:** Synchronize repo versions
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
### Dependencies
|
|
68
|
+
|
|
69
|
+
* The following workspace dependencies were updated
|
|
70
|
+
* dependencies
|
|
71
|
+
* @twin.org/dataspace-models bumped from 0.9.1-next.11 to 0.9.1-next.12
|
|
72
|
+
|
|
73
|
+
## [0.9.1-next.11](https://github.com/iotaledger/twin-dataspace/compare/dataspace-test-app-v0.9.1-next.10...dataspace-test-app-v0.9.1-next.11) (2026-07-21)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
### Miscellaneous Chores
|
|
77
|
+
|
|
78
|
+
* **dataspace-test-app:** Synchronize repo versions
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
### Dependencies
|
|
82
|
+
|
|
83
|
+
* The following workspace dependencies were updated
|
|
84
|
+
* dependencies
|
|
85
|
+
* @twin.org/dataspace-models bumped from 0.9.1-next.10 to 0.9.1-next.11
|
|
86
|
+
|
|
87
|
+
## [0.9.1-next.10](https://github.com/iotaledger/twin-dataspace/compare/dataspace-test-app-v0.9.1-next.9...dataspace-test-app-v0.9.1-next.10) (2026-07-20)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
### Miscellaneous Chores
|
|
91
|
+
|
|
92
|
+
* **dataspace-test-app:** Synchronize repo versions
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
### Dependencies
|
|
96
|
+
|
|
97
|
+
* The following workspace dependencies were updated
|
|
98
|
+
* dependencies
|
|
99
|
+
* @twin.org/dataspace-models bumped from 0.9.1-next.9 to 0.9.1-next.10
|
|
100
|
+
|
|
3
101
|
## [0.9.1-next.9](https://github.com/iotaledger/twin-dataspace/compare/dataspace-test-app-v0.9.1-next.8...dataspace-test-app-v0.9.1-next.9) (2026-07-06)
|
|
4
102
|
|
|
5
103
|
|
|
@@ -12,10 +12,14 @@ The environment variables for the node.
|
|
|
12
12
|
|
|
13
13
|
### nodeEngineConfig
|
|
14
14
|
|
|
15
|
-
`IEngineCoreConfig`
|
|
16
|
-
|
|
17
15
|
The node engine config.
|
|
18
16
|
|
|
17
|
+
#### types
|
|
18
|
+
|
|
19
|
+
\{\[`key`: `string`\]: `unknown`[]; \}
|
|
20
|
+
|
|
21
|
+
The component type configurations keyed by type name.
|
|
22
|
+
|
|
19
23
|
## Returns
|
|
20
24
|
|
|
21
25
|
`Promise`\<`void`\>
|
|
@@ -8,10 +8,14 @@ Initialise the engine for the extension.
|
|
|
8
8
|
|
|
9
9
|
### engineCore
|
|
10
10
|
|
|
11
|
-
`IEngineCore`
|
|
12
|
-
|
|
13
11
|
The engine core instance.
|
|
14
12
|
|
|
13
|
+
#### addTypeInitialiser
|
|
14
|
+
|
|
15
|
+
(`type`, `module`, `name`) => `void`
|
|
16
|
+
|
|
17
|
+
Registers a named type initialiser module and export with the engine.
|
|
18
|
+
|
|
15
19
|
## Returns
|
|
16
20
|
|
|
17
21
|
`Promise`\<`void`\>
|
|
@@ -8,16 +8,20 @@ Initialise the engine server for the extension.
|
|
|
8
8
|
|
|
9
9
|
### engineCore
|
|
10
10
|
|
|
11
|
-
`
|
|
11
|
+
`unknown`
|
|
12
12
|
|
|
13
|
-
The engine core instance.
|
|
13
|
+
The engine core instance (unused by this extension).
|
|
14
14
|
|
|
15
15
|
### engineServer
|
|
16
16
|
|
|
17
|
-
`IEngineServer`
|
|
18
|
-
|
|
19
17
|
The engine server instance.
|
|
20
18
|
|
|
19
|
+
#### addRestRouteGenerator
|
|
20
|
+
|
|
21
|
+
(`type`, `module`, `name`) => `void`
|
|
22
|
+
|
|
23
|
+
Registers a named REST route generator module and export with the engine server.
|
|
24
|
+
|
|
21
25
|
## Returns
|
|
22
26
|
|
|
23
27
|
`Promise`\<`void`\>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Function: testAppInitialiser()
|
|
2
2
|
|
|
3
|
-
> **testAppInitialiser**(`engineCore`, `context`, `instanceConfig`): `
|
|
3
|
+
> **testAppInitialiser**(`engineCore`, `context`, `instanceConfig`): `object`
|
|
4
4
|
|
|
5
5
|
Test Dataspace Data Plane App initializer.
|
|
6
6
|
|
|
@@ -8,15 +8,19 @@ Test Dataspace Data Plane App initializer.
|
|
|
8
8
|
|
|
9
9
|
### engineCore
|
|
10
10
|
|
|
11
|
-
`IEngineCore`\<`IEngineConfig`\>
|
|
12
|
-
|
|
13
11
|
The engine core.
|
|
14
12
|
|
|
13
|
+
#### getRegisteredInstanceType
|
|
14
|
+
|
|
15
|
+
(`type`) => `string`
|
|
16
|
+
|
|
17
|
+
Returns the registered instance type name for a given component type.
|
|
18
|
+
|
|
15
19
|
### context
|
|
16
20
|
|
|
17
|
-
`
|
|
21
|
+
`unknown`
|
|
18
22
|
|
|
19
|
-
The context
|
|
23
|
+
The engine core context (unused by this extension).
|
|
20
24
|
|
|
21
25
|
### instanceConfig
|
|
22
26
|
|
|
@@ -36,6 +40,34 @@ The instance config options.
|
|
|
36
40
|
|
|
37
41
|
## Returns
|
|
38
42
|
|
|
39
|
-
`
|
|
43
|
+
`object`
|
|
40
44
|
|
|
41
45
|
The instance created and the factory for it.
|
|
46
|
+
|
|
47
|
+
### instanceTypeName?
|
|
48
|
+
|
|
49
|
+
> `optional` **instanceTypeName?**: `string`
|
|
50
|
+
|
|
51
|
+
### factory
|
|
52
|
+
|
|
53
|
+
> **factory**: `Factory`\<`IDataspaceApp`\>
|
|
54
|
+
|
|
55
|
+
### createComponent?
|
|
56
|
+
|
|
57
|
+
> `optional` **createComponent?**: (`createConfig`) => [`TestDataspaceDataPlaneApp`](../classes/TestDataspaceDataPlaneApp.md)
|
|
58
|
+
|
|
59
|
+
#### Parameters
|
|
60
|
+
|
|
61
|
+
##### createConfig
|
|
62
|
+
|
|
63
|
+
###### type
|
|
64
|
+
|
|
65
|
+
`"service"`
|
|
66
|
+
|
|
67
|
+
###### options
|
|
68
|
+
|
|
69
|
+
[`ITestAppConstructorOptions`](../interfaces/ITestAppConstructorOptions.md)
|
|
70
|
+
|
|
71
|
+
#### Returns
|
|
72
|
+
|
|
73
|
+
[`TestDataspaceDataPlaneApp`](../classes/TestDataspaceDataPlaneApp.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/dataspace-test-app",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2-next.1",
|
|
4
4
|
"description": "Provides a sample dataspace app for local integration tests and development workflows.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"type": "module",
|
|
13
13
|
"engines": {
|
|
14
|
-
"node": ">=
|
|
14
|
+
"node": ">=24.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@twin.org/api-models": "next",
|
|
@@ -19,9 +19,7 @@
|
|
|
19
19
|
"@twin.org/core": "next",
|
|
20
20
|
"@twin.org/data-core": "next",
|
|
21
21
|
"@twin.org/data-json-ld": "next",
|
|
22
|
-
"@twin.org/dataspace-models": "0.9.
|
|
23
|
-
"@twin.org/engine-models": "next",
|
|
24
|
-
"@twin.org/engine-types": "next",
|
|
22
|
+
"@twin.org/dataspace-models": "0.9.2-next.1",
|
|
25
23
|
"@twin.org/logging-models": "next",
|
|
26
24
|
"@twin.org/nameof": "next",
|
|
27
25
|
"@twin.org/standards-dataspace-protocol": "next",
|