@twin.org/engine-types 0.0.3-next.49 → 0.0.3-next.50
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/components/automation.js +3 -1
- package/dist/es/components/automation.js.map +1 -1
- package/dist/es/components/backgroundTask.js +3 -1
- package/dist/es/components/backgroundTask.js.map +1 -1
- package/dist/es/components/dataspaceControlPlane.js +3 -3
- package/dist/es/components/dataspaceControlPlane.js.map +1 -1
- package/dist/es/components/dataspaceDataPlane.js +2 -4
- package/dist/es/components/dataspaceDataPlane.js.map +1 -1
- package/dist/es/components/eventBus.js +6 -2
- package/dist/es/components/eventBus.js.map +1 -1
- package/dist/es/components/federatedCatalogue.js +1 -2
- package/dist/es/components/federatedCatalogue.js.map +1 -1
- package/dist/es/components/federatedCatalogueFilter.js +4 -4
- package/dist/es/components/federatedCatalogueFilter.js.map +1 -1
- package/dist/es/components/immutableProof.js +1 -1
- package/dist/es/components/immutableProof.js.map +1 -1
- package/dist/es/components/logging.js +1 -1
- package/dist/es/components/logging.js.map +1 -1
- package/dist/es/components/messaging.js +18 -6
- package/dist/es/components/messaging.js.map +1 -1
- package/dist/es/components/metricsCollector.js +1 -1
- package/dist/es/components/metricsCollector.js.map +1 -1
- package/dist/es/components/platform.js +34 -0
- package/dist/es/components/platform.js.map +1 -0
- package/dist/es/components/rightsManagementPap.js +3 -1
- package/dist/es/components/rightsManagementPap.js.map +1 -1
- package/dist/es/components/rightsManagementPdp.js +1 -1
- package/dist/es/components/rightsManagementPdp.js.map +1 -1
- package/dist/es/components/rightsManagementPep.js +1 -1
- package/dist/es/components/rightsManagementPep.js.map +1 -1
- package/dist/es/components/rightsManagementPip.js +3 -1
- package/dist/es/components/rightsManagementPip.js.map +1 -1
- package/dist/es/components/rightsManagementPmp.js +1 -1
- package/dist/es/components/rightsManagementPmp.js.map +1 -1
- package/dist/es/components/rightsManagementPnap.js +2 -3
- package/dist/es/components/rightsManagementPnap.js.map +1 -1
- package/dist/es/components/rightsManagementPnp.js +2 -3
- package/dist/es/components/rightsManagementPnp.js.map +1 -1
- package/dist/es/components/rightsManagementPolicyArbiter.js +4 -2
- package/dist/es/components/rightsManagementPolicyArbiter.js.map +1 -1
- package/dist/es/components/rightsManagementPolicyEnforcementProcessor.js +2 -2
- package/dist/es/components/rightsManagementPolicyEnforcementProcessor.js.map +1 -1
- package/dist/es/components/rightsManagementPolicyExecutionAction.js +3 -1
- package/dist/es/components/rightsManagementPolicyExecutionAction.js.map +1 -1
- package/dist/es/components/rightsManagementPolicyInformationSource.js +2 -2
- package/dist/es/components/rightsManagementPolicyInformationSource.js.map +1 -1
- package/dist/es/components/rightsManagementPolicyNegotiator.js +1 -1
- package/dist/es/components/rightsManagementPolicyNegotiator.js.map +1 -1
- package/dist/es/components/rightsManagementPolicyObligationEnforcer.js +1 -1
- package/dist/es/components/rightsManagementPolicyObligationEnforcer.js.map +1 -1
- package/dist/es/components/rightsManagementPolicyRequester.js +3 -1
- package/dist/es/components/rightsManagementPolicyRequester.js.map +1 -1
- package/dist/es/components/rightsManagementPxp.js +3 -1
- package/dist/es/components/rightsManagementPxp.js.map +1 -1
- package/dist/es/components/taskScheduler.js +3 -1
- package/dist/es/components/taskScheduler.js.map +1 -1
- package/dist/es/components/telemetry.js +7 -3
- package/dist/es/components/telemetry.js.map +1 -1
- package/dist/es/components/tenant.js +1 -26
- package/dist/es/components/tenant.js.map +1 -1
- package/dist/es/components/trust.js +3 -1
- package/dist/es/components/trust.js.map +1 -1
- package/dist/es/components/trustGenerator.js +1 -1
- package/dist/es/components/trustGenerator.js.map +1 -1
- package/dist/es/index.js +3 -5
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/IEngineConfig.js.map +1 -1
- package/dist/es/models/config/federatedCatalogueFilterComponentConfig.js.map +1 -1
- package/dist/es/models/config/platformComponentConfig.js +2 -0
- package/dist/es/models/config/platformComponentConfig.js.map +1 -0
- package/dist/es/models/types/federatedCatalogueFilterComponentType.js +2 -2
- package/dist/es/models/types/federatedCatalogueFilterComponentType.js.map +1 -1
- package/dist/es/models/types/{tenantComponentType.js → platformComponentType.js} +3 -3
- package/dist/es/models/types/platformComponentType.js.map +1 -0
- package/dist/types/components/platform.d.ts +12 -0
- package/dist/types/components/tenant.d.ts +0 -9
- package/dist/types/index.d.ts +3 -5
- package/dist/types/models/IEngineConfig.d.ts +3 -8
- package/dist/types/models/config/federatedCatalogueFilterComponentConfig.d.ts +3 -3
- package/dist/types/models/config/platformComponentConfig.d.ts +9 -0
- package/dist/types/models/types/federatedCatalogueFilterComponentType.d.ts +2 -2
- package/dist/types/models/types/platformComponentType.d.ts +13 -0
- package/docs/changelog.md +15 -0
- package/docs/reference/functions/initialisePlatformComponent.md +31 -0
- package/docs/reference/index.md +4 -8
- package/docs/reference/interfaces/IEngineConfig.md +15 -9
- package/docs/reference/type-aliases/FederatedCatalogueFilterComponentConfig.md +2 -2
- package/docs/reference/type-aliases/PlatformComponentConfig.md +17 -0
- package/docs/reference/type-aliases/PlatformComponentType.md +5 -0
- package/docs/reference/variables/FederatedCatalogueFilterComponentType.md +3 -3
- package/docs/reference/variables/{TenantComponentType.md → PlatformComponentType.md} +3 -3
- package/package.json +3 -3
- package/dist/es/components/urlTransformer.js +0 -29
- package/dist/es/components/urlTransformer.js.map +0 -1
- package/dist/es/models/config/tenantComponentConfig.js +0 -2
- package/dist/es/models/config/tenantComponentConfig.js.map +0 -1
- package/dist/es/models/config/urlTransformerComponentConfig.js +0 -2
- package/dist/es/models/config/urlTransformerComponentConfig.js.map +0 -1
- package/dist/es/models/types/tenantComponentType.js.map +0 -1
- package/dist/es/models/types/urlTransformerComponentType.js +0 -13
- package/dist/es/models/types/urlTransformerComponentType.js.map +0 -1
- package/dist/types/components/urlTransformer.d.ts +0 -12
- package/dist/types/models/config/tenantComponentConfig.d.ts +0 -9
- package/dist/types/models/config/urlTransformerComponentConfig.d.ts +0 -9
- package/dist/types/models/types/tenantComponentType.d.ts +0 -13
- package/dist/types/models/types/urlTransformerComponentType.d.ts +0 -13
- package/docs/reference/functions/initialiseTenantComponent.md +0 -31
- package/docs/reference/functions/initialiseUrlTransformerComponent.md +0 -31
- package/docs/reference/type-aliases/TenantComponentConfig.md +0 -17
- package/docs/reference/type-aliases/TenantComponentType.md +0 -5
- package/docs/reference/type-aliases/UrlTransformerComponentConfig.md +0 -17
- package/docs/reference/type-aliases/UrlTransformerComponentType.md +0 -5
- package/docs/reference/variables/UrlTransformerComponentType.md +0 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"federatedCatalogueFilterComponentType.js","sourceRoot":"","sources":["../../../../src/models/types/federatedCatalogueFilterComponentType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,qCAAqC,GAAG;IACpD;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"federatedCatalogueFilterComponentType.js","sourceRoot":"","sources":["../../../../src/models/types/federatedCatalogueFilterComponentType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,qCAAqC,GAAG;IACpD;;OAEG;IACH,gBAAgB,EAAE,oBAAoB;CAC7B,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Federated catalogue filter component types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const FederatedCatalogueFilterComponentType = {\n\t/**\n\t * Filter By Metadata.\n\t */\n\tFilterByMetadata: \"filter-by-metadata\"\n} as const;\n\n/**\n * Federated catalogue filter component types.\n */\nexport type FederatedCatalogueFilterComponentType =\n\t(typeof FederatedCatalogueFilterComponentType)[keyof typeof FederatedCatalogueFilterComponentType];\n"]}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// Copyright 2026 IOTA Stiftung.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0.
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Platform component types.
|
|
5
5
|
*/
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
-
export const
|
|
7
|
+
export const PlatformComponentType = {
|
|
8
8
|
/**
|
|
9
9
|
* Service.
|
|
10
10
|
*/
|
|
11
11
|
Service: "service"
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=
|
|
13
|
+
//# sourceMappingURL=platformComponentType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformComponentType.js","sourceRoot":"","sources":["../../../../src/models/types/platformComponentType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACpC;;OAEG;IACH,OAAO,EAAE,SAAS;CACT,CAAC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Platform component types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const PlatformComponentType = {\n\t/**\n\t * Service.\n\t */\n\tService: \"service\"\n} as const;\n\n/**\n * Platform component types.\n */\nexport type PlatformComponentType =\n\t(typeof PlatformComponentType)[keyof typeof PlatformComponentType];\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentFactory } from "@twin.org/core";
|
|
2
|
+
import type { EngineTypeInitialiserReturn, IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
3
|
+
import type { PlatformComponentConfig } from "../models/config/platformComponentConfig.js";
|
|
4
|
+
import type { IEngineConfig } from "../models/IEngineConfig.js";
|
|
5
|
+
/**
|
|
6
|
+
* Initialise the platform component.
|
|
7
|
+
* @param engineCore The engine core.
|
|
8
|
+
* @param context The context for the engine.
|
|
9
|
+
* @param instanceConfig The instance config.
|
|
10
|
+
* @returns The instance created and the factory for it.
|
|
11
|
+
*/
|
|
12
|
+
export declare function initialisePlatformComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: PlatformComponentConfig): EngineTypeInitialiserReturn<typeof instanceConfig, typeof ComponentFactory>;
|
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
import { ComponentFactory } from "@twin.org/core";
|
|
2
2
|
import type { EngineTypeInitialiserReturn, IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
3
3
|
import type { TenantAdminComponentConfig } from "../models/config/tenantAdminComponentConfig.js";
|
|
4
|
-
import type { TenantComponentConfig } from "../models/config/tenantComponentConfig.js";
|
|
5
4
|
import type { IEngineConfig } from "../models/IEngineConfig.js";
|
|
6
|
-
/**
|
|
7
|
-
* Initialise the tenant component.
|
|
8
|
-
* @param engineCore The engine core.
|
|
9
|
-
* @param context The context for the engine.
|
|
10
|
-
* @param instanceConfig The instance config.
|
|
11
|
-
* @returns The instance created and the factory for it.
|
|
12
|
-
*/
|
|
13
|
-
export declare function initialiseTenantComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: TenantComponentConfig): EngineTypeInitialiserReturn<typeof instanceConfig, typeof ComponentFactory>;
|
|
14
5
|
/**
|
|
15
6
|
* Initialise the tenant admin component.
|
|
16
7
|
* @param engineCore The engine core.
|
package/dist/types/index.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export * from "./components/metricsCollector.js";
|
|
|
26
26
|
export * from "./components/metricsProducer.js";
|
|
27
27
|
export * from "./components/nft.js";
|
|
28
28
|
export * from "./components/notarization.js";
|
|
29
|
+
export * from "./components/platform.js";
|
|
29
30
|
export * from "./components/rightsManagementPap.js";
|
|
30
31
|
export * from "./components/rightsManagementPdp.js";
|
|
31
32
|
export * from "./components/rightsManagementPep.js";
|
|
@@ -48,7 +49,6 @@ export * from "./components/tenant.js";
|
|
|
48
49
|
export * from "./components/trust.js";
|
|
49
50
|
export * from "./components/trustGenerator.js";
|
|
50
51
|
export * from "./components/trustVerifier.js";
|
|
51
|
-
export * from "./components/urlTransformer.js";
|
|
52
52
|
export * from "./components/vault.js";
|
|
53
53
|
export * from "./components/wallet.js";
|
|
54
54
|
export * from "./models/config/attestationComponentConfig.js";
|
|
@@ -96,6 +96,7 @@ export * from "./models/config/nftComponentConfig.js";
|
|
|
96
96
|
export * from "./models/config/nftConnectorConfig.js";
|
|
97
97
|
export * from "./models/config/notarizationComponentConfig.js";
|
|
98
98
|
export * from "./models/config/notarizationConnectorConfig.js";
|
|
99
|
+
export * from "./models/config/platformComponentConfig.js";
|
|
99
100
|
export * from "./models/config/rightsManagementPapComponentConfig.js";
|
|
100
101
|
export * from "./models/config/rightsManagementPdpComponentConfig.js";
|
|
101
102
|
export * from "./models/config/rightsManagementPepComponentConfig.js";
|
|
@@ -116,11 +117,9 @@ export * from "./models/config/taskSchedulerComponentConfig.js";
|
|
|
116
117
|
export * from "./models/config/telemetryComponentConfig.js";
|
|
117
118
|
export * from "./models/config/telemetryConnectorConfig.js";
|
|
118
119
|
export * from "./models/config/tenantAdminComponentConfig.js";
|
|
119
|
-
export * from "./models/config/tenantComponentConfig.js";
|
|
120
120
|
export * from "./models/config/trustComponentConfig.js";
|
|
121
121
|
export * from "./models/config/trustGeneratorComponentConfig.js";
|
|
122
122
|
export * from "./models/config/trustVerifierComponentConfig.js";
|
|
123
|
-
export * from "./models/config/urlTransformerComponentConfig.js";
|
|
124
123
|
export * from "./models/config/vaultConnectorConfig.js";
|
|
125
124
|
export * from "./models/config/walletConnectorConfig.js";
|
|
126
125
|
export * from "./models/IEngineConfig.js";
|
|
@@ -169,6 +168,7 @@ export * from "./models/types/nftComponentType.js";
|
|
|
169
168
|
export * from "./models/types/nftConnectorType.js";
|
|
170
169
|
export * from "./models/types/notarizationComponentType.js";
|
|
171
170
|
export * from "./models/types/notarizationConnectorType.js";
|
|
171
|
+
export * from "./models/types/platformComponentType.js";
|
|
172
172
|
export * from "./models/types/rightsManagementPapComponentType.js";
|
|
173
173
|
export * from "./models/types/rightsManagementPdpComponentType.js";
|
|
174
174
|
export * from "./models/types/rightsManagementPepComponentType.js";
|
|
@@ -189,11 +189,9 @@ export * from "./models/types/taskSchedulerComponentType.js";
|
|
|
189
189
|
export * from "./models/types/telemetryComponentType.js";
|
|
190
190
|
export * from "./models/types/telemetryConnectorType.js";
|
|
191
191
|
export * from "./models/types/tenantAdminComponentType.js";
|
|
192
|
-
export * from "./models/types/tenantComponentType.js";
|
|
193
192
|
export * from "./models/types/trustComponentType.js";
|
|
194
193
|
export * from "./models/types/trustGeneratorComponentType.js";
|
|
195
194
|
export * from "./models/types/trustVerifierComponentType.js";
|
|
196
|
-
export * from "./models/types/urlTransformerComponentType.js";
|
|
197
195
|
export * from "./models/types/vaultConnectorType.js";
|
|
198
196
|
export * from "./models/types/walletConnectorType.js";
|
|
199
197
|
export * from "./utils/engineTypeHelper.js";
|
|
@@ -44,6 +44,7 @@ import type { NftComponentConfig } from "./config/nftComponentConfig.js";
|
|
|
44
44
|
import type { NftConnectorConfig } from "./config/nftConnectorConfig.js";
|
|
45
45
|
import type { NotarizationComponentConfig } from "./config/notarizationComponentConfig.js";
|
|
46
46
|
import type { NotarizationConnectorConfig } from "./config/notarizationConnectorConfig.js";
|
|
47
|
+
import type { PlatformComponentConfig } from "./config/platformComponentConfig.js";
|
|
47
48
|
import type { RightsManagementPapComponentConfig } from "./config/rightsManagementPapComponentConfig.js";
|
|
48
49
|
import type { RightsManagementPdpComponentConfig } from "./config/rightsManagementPdpComponentConfig.js";
|
|
49
50
|
import type { RightsManagementPepComponentConfig } from "./config/rightsManagementPepComponentConfig.js";
|
|
@@ -64,11 +65,9 @@ import type { TaskSchedulerComponentConfig } from "./config/taskSchedulerCompone
|
|
|
64
65
|
import type { TelemetryComponentConfig } from "./config/telemetryComponentConfig.js";
|
|
65
66
|
import type { TelemetryConnectorConfig } from "./config/telemetryConnectorConfig.js";
|
|
66
67
|
import type { TenantAdminComponentConfig } from "./config/tenantAdminComponentConfig.js";
|
|
67
|
-
import type { TenantComponentConfig } from "./config/tenantComponentConfig.js";
|
|
68
68
|
import type { TrustComponentConfig } from "./config/trustComponentConfig.js";
|
|
69
69
|
import type { TrustGeneratorComponentConfig } from "./config/trustGeneratorComponentConfig.js";
|
|
70
70
|
import type { TrustVerifierComponentConfig } from "./config/trustVerifierComponentConfig.js";
|
|
71
|
-
import type { UrlTransformerComponentConfig } from "./config/urlTransformerComponentConfig.js";
|
|
72
71
|
import type { VaultConnectorConfig } from "./config/vaultConnectorConfig.js";
|
|
73
72
|
import type { WalletConnectorConfig } from "./config/walletConnectorConfig.js";
|
|
74
73
|
/**
|
|
@@ -172,10 +171,6 @@ export interface IEngineConfig extends IEngineCoreConfig {
|
|
|
172
171
|
* Health component options which can be overridden by individual components by specifying types other than default.
|
|
173
172
|
*/
|
|
174
173
|
healthComponent?: IEngineCoreTypeConfig<HealthComponentConfig>[];
|
|
175
|
-
/**
|
|
176
|
-
* URL transformer component options which can be overridden by individual components by specifying types other than default.
|
|
177
|
-
*/
|
|
178
|
-
urlTransformerComponent?: IEngineCoreTypeConfig<UrlTransformerComponentConfig>[];
|
|
179
174
|
/**
|
|
180
175
|
* Vault connector options which can be overridden by individual components by specifying types other than default.
|
|
181
176
|
*/
|
|
@@ -357,9 +352,9 @@ export interface IEngineConfig extends IEngineCoreConfig {
|
|
|
357
352
|
*/
|
|
358
353
|
dataspaceDataPlaneComponent?: IEngineCoreTypeConfig<DataspaceDataPlaneComponentConfig>[];
|
|
359
354
|
/**
|
|
360
|
-
*
|
|
355
|
+
* Platform component options which can be overridden by individual components by specifying types other than default.
|
|
361
356
|
*/
|
|
362
|
-
|
|
357
|
+
platformComponent?: IEngineCoreTypeConfig<PlatformComponentConfig>[];
|
|
363
358
|
/**
|
|
364
359
|
* Tenant admin component options which can be overridden by individual components by specifying types other than default.
|
|
365
360
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IFilterByMetadataConstructorOptions } from "@twin.org/federated-catalogue-filters";
|
|
2
2
|
import type { FederatedCatalogueFilterComponentType } from "../types/federatedCatalogueFilterComponentType.js";
|
|
3
3
|
/**
|
|
4
4
|
* Federated catalog filter component config types.
|
|
5
5
|
*/
|
|
6
6
|
export type FederatedCatalogueFilterComponentConfig = {
|
|
7
|
-
type: typeof FederatedCatalogueFilterComponentType.
|
|
8
|
-
options:
|
|
7
|
+
type: typeof FederatedCatalogueFilterComponentType.FilterByMetadata;
|
|
8
|
+
options: IFilterByMetadataConstructorOptions;
|
|
9
9
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IPlatformServiceConstructorOptions } from "@twin.org/api-service";
|
|
2
|
+
import type { PlatformComponentType } from "../types/platformComponentType.js";
|
|
3
|
+
/**
|
|
4
|
+
* Platform component config types.
|
|
5
|
+
*/
|
|
6
|
+
export type PlatformComponentConfig = {
|
|
7
|
+
type: typeof PlatformComponentType.Service;
|
|
8
|
+
options?: IPlatformServiceConstructorOptions;
|
|
9
|
+
};
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const FederatedCatalogueFilterComponentType: {
|
|
5
5
|
/**
|
|
6
|
-
* Filter By
|
|
6
|
+
* Filter By Metadata.
|
|
7
7
|
*/
|
|
8
|
-
readonly
|
|
8
|
+
readonly FilterByMetadata: "filter-by-metadata";
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* Federated catalogue filter component types.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Platform component types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const PlatformComponentType: {
|
|
5
|
+
/**
|
|
6
|
+
* Service.
|
|
7
|
+
*/
|
|
8
|
+
readonly Service: "service";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Platform component types.
|
|
12
|
+
*/
|
|
13
|
+
export type PlatformComponentType = (typeof PlatformComponentType)[keyof typeof PlatformComponentType];
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.50](https://github.com/iotaledger/twin-engine/compare/engine-types-v0.0.3-next.49...engine-types-v0.0.3-next.50) (2026-06-11)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* organization identifiers ([#152](https://github.com/iotaledger/twin-engine/issues/152)) ([d8e6d51](https://github.com/iotaledger/twin-engine/commit/d8e6d5147f402f0fe17b445efd8ae97db0c36adb))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/engine-core bumped from 0.0.3-next.49 to 0.0.3-next.50
|
|
16
|
+
* @twin.org/engine-models bumped from 0.0.3-next.49 to 0.0.3-next.50
|
|
17
|
+
|
|
3
18
|
## [0.0.3-next.49](https://github.com/iotaledger/twin-engine/compare/engine-types-v0.0.3-next.48...engine-types-v0.0.3-next.49) (2026-06-09)
|
|
4
19
|
|
|
5
20
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Function: initialisePlatformComponent()
|
|
2
|
+
|
|
3
|
+
> **initialisePlatformComponent**(`engineCore`, `context`, `instanceConfig`): `EngineTypeInitialiserReturn`\<[`PlatformComponentConfig`](../type-aliases/PlatformComponentConfig.md), `Factory`\<`IComponent`\>\>
|
|
4
|
+
|
|
5
|
+
Initialise the platform component.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
### engineCore
|
|
10
|
+
|
|
11
|
+
`IEngineCore`\<[`IEngineConfig`](../interfaces/IEngineConfig.md)\>
|
|
12
|
+
|
|
13
|
+
The engine core.
|
|
14
|
+
|
|
15
|
+
### context
|
|
16
|
+
|
|
17
|
+
`IEngineCoreContext`\<[`IEngineConfig`](../interfaces/IEngineConfig.md)\>
|
|
18
|
+
|
|
19
|
+
The context for the engine.
|
|
20
|
+
|
|
21
|
+
### instanceConfig
|
|
22
|
+
|
|
23
|
+
[`PlatformComponentConfig`](../type-aliases/PlatformComponentConfig.md)
|
|
24
|
+
|
|
25
|
+
The instance config.
|
|
26
|
+
|
|
27
|
+
## Returns
|
|
28
|
+
|
|
29
|
+
`EngineTypeInitialiserReturn`\<[`PlatformComponentConfig`](../type-aliases/PlatformComponentConfig.md), `Factory`\<`IComponent`\>\>
|
|
30
|
+
|
|
31
|
+
The instance created and the factory for it.
|
package/docs/reference/index.md
CHANGED
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
- [NftConnectorConfig](type-aliases/NftConnectorConfig.md)
|
|
56
56
|
- [NotarizationComponentConfig](type-aliases/NotarizationComponentConfig.md)
|
|
57
57
|
- [NotarizationConnectorConfig](type-aliases/NotarizationConnectorConfig.md)
|
|
58
|
+
- [PlatformComponentConfig](type-aliases/PlatformComponentConfig.md)
|
|
58
59
|
- [RightsManagementPapComponentConfig](type-aliases/RightsManagementPapComponentConfig.md)
|
|
59
60
|
- [RightsManagementPdpComponentConfig](type-aliases/RightsManagementPdpComponentConfig.md)
|
|
60
61
|
- [RightsManagementPepComponentConfig](type-aliases/RightsManagementPepComponentConfig.md)
|
|
@@ -75,11 +76,9 @@
|
|
|
75
76
|
- [TelemetryComponentConfig](type-aliases/TelemetryComponentConfig.md)
|
|
76
77
|
- [TelemetryConnectorConfig](type-aliases/TelemetryConnectorConfig.md)
|
|
77
78
|
- [TenantAdminComponentConfig](type-aliases/TenantAdminComponentConfig.md)
|
|
78
|
-
- [TenantComponentConfig](type-aliases/TenantComponentConfig.md)
|
|
79
79
|
- [TrustComponentConfig](type-aliases/TrustComponentConfig.md)
|
|
80
80
|
- [TrustGeneratorComponentConfig](type-aliases/TrustGeneratorComponentConfig.md)
|
|
81
81
|
- [TrustVerifierComponentConfig](type-aliases/TrustVerifierComponentConfig.md)
|
|
82
|
-
- [UrlTransformerComponentConfig](type-aliases/UrlTransformerComponentConfig.md)
|
|
83
82
|
- [VaultConnectorConfig](type-aliases/VaultConnectorConfig.md)
|
|
84
83
|
- [WalletConnectorConfig](type-aliases/WalletConnectorConfig.md)
|
|
85
84
|
- [AttestationComponentType](type-aliases/AttestationComponentType.md)
|
|
@@ -127,6 +126,7 @@
|
|
|
127
126
|
- [NftConnectorType](type-aliases/NftConnectorType.md)
|
|
128
127
|
- [NotarizationComponentType](type-aliases/NotarizationComponentType.md)
|
|
129
128
|
- [NotarizationConnectorType](type-aliases/NotarizationConnectorType.md)
|
|
129
|
+
- [PlatformComponentType](type-aliases/PlatformComponentType.md)
|
|
130
130
|
- [RightsManagementPapComponentType](type-aliases/RightsManagementPapComponentType.md)
|
|
131
131
|
- [RightsManagementPdpComponentType](type-aliases/RightsManagementPdpComponentType.md)
|
|
132
132
|
- [RightsManagementPepComponentType](type-aliases/RightsManagementPepComponentType.md)
|
|
@@ -147,11 +147,9 @@
|
|
|
147
147
|
- [TelemetryComponentType](type-aliases/TelemetryComponentType.md)
|
|
148
148
|
- [TelemetryConnectorType](type-aliases/TelemetryConnectorType.md)
|
|
149
149
|
- [TenantAdminComponentType](type-aliases/TenantAdminComponentType.md)
|
|
150
|
-
- [TenantComponentType](type-aliases/TenantComponentType.md)
|
|
151
150
|
- [TrustComponentType](type-aliases/TrustComponentType.md)
|
|
152
151
|
- [TrustGeneratorComponentType](type-aliases/TrustGeneratorComponentType.md)
|
|
153
152
|
- [TrustVerifierComponentType](type-aliases/TrustVerifierComponentType.md)
|
|
154
|
-
- [UrlTransformerComponentType](type-aliases/UrlTransformerComponentType.md)
|
|
155
153
|
- [VaultConnectorType](type-aliases/VaultConnectorType.md)
|
|
156
154
|
- [WalletConnectorType](type-aliases/WalletConnectorType.md)
|
|
157
155
|
|
|
@@ -202,6 +200,7 @@
|
|
|
202
200
|
- [NftConnectorType](variables/NftConnectorType.md)
|
|
203
201
|
- [NotarizationComponentType](variables/NotarizationComponentType.md)
|
|
204
202
|
- [NotarizationConnectorType](variables/NotarizationConnectorType.md)
|
|
203
|
+
- [PlatformComponentType](variables/PlatformComponentType.md)
|
|
205
204
|
- [RightsManagementPapComponentType](variables/RightsManagementPapComponentType.md)
|
|
206
205
|
- [RightsManagementPdpComponentType](variables/RightsManagementPdpComponentType.md)
|
|
207
206
|
- [RightsManagementPepComponentType](variables/RightsManagementPepComponentType.md)
|
|
@@ -222,11 +221,9 @@
|
|
|
222
221
|
- [TelemetryComponentType](variables/TelemetryComponentType.md)
|
|
223
222
|
- [TelemetryConnectorType](variables/TelemetryConnectorType.md)
|
|
224
223
|
- [TenantAdminComponentType](variables/TenantAdminComponentType.md)
|
|
225
|
-
- [TenantComponentType](variables/TenantComponentType.md)
|
|
226
224
|
- [TrustComponentType](variables/TrustComponentType.md)
|
|
227
225
|
- [TrustGeneratorComponentType](variables/TrustGeneratorComponentType.md)
|
|
228
226
|
- [TrustVerifierComponentType](variables/TrustVerifierComponentType.md)
|
|
229
|
-
- [UrlTransformerComponentType](variables/UrlTransformerComponentType.md)
|
|
230
227
|
- [VaultConnectorType](variables/VaultConnectorType.md)
|
|
231
228
|
- [WalletConnectorType](variables/WalletConnectorType.md)
|
|
232
229
|
|
|
@@ -276,6 +273,7 @@
|
|
|
276
273
|
- [initialiseNftComponent](functions/initialiseNftComponent.md)
|
|
277
274
|
- [initialiseNotarizationConnector](functions/initialiseNotarizationConnector.md)
|
|
278
275
|
- [initialiseNotarizationComponent](functions/initialiseNotarizationComponent.md)
|
|
276
|
+
- [initialisePlatformComponent](functions/initialisePlatformComponent.md)
|
|
279
277
|
- [initialiseRightsManagementPapComponent](functions/initialiseRightsManagementPapComponent.md)
|
|
280
278
|
- [initialiseRightsManagementPdpComponent](functions/initialiseRightsManagementPdpComponent.md)
|
|
281
279
|
- [initialiseRightsManagementPepComponent](functions/initialiseRightsManagementPepComponent.md)
|
|
@@ -295,11 +293,9 @@
|
|
|
295
293
|
- [initialiseTaskSchedulerComponent](functions/initialiseTaskSchedulerComponent.md)
|
|
296
294
|
- [initialiseTelemetryConnector](functions/initialiseTelemetryConnector.md)
|
|
297
295
|
- [initialiseTelemetryComponent](functions/initialiseTelemetryComponent.md)
|
|
298
|
-
- [initialiseTenantComponent](functions/initialiseTenantComponent.md)
|
|
299
296
|
- [initialiseTenantAdminComponent](functions/initialiseTenantAdminComponent.md)
|
|
300
297
|
- [initialiseTrustComponent](functions/initialiseTrustComponent.md)
|
|
301
298
|
- [initialiseTrustGeneratorComponent](functions/initialiseTrustGeneratorComponent.md)
|
|
302
299
|
- [initialiseTrustVerifierComponent](functions/initialiseTrustVerifierComponent.md)
|
|
303
|
-
- [initialiseUrlTransformerComponent](functions/initialiseUrlTransformerComponent.md)
|
|
304
300
|
- [initialiseVaultConnector](functions/initialiseVaultConnector.md)
|
|
305
301
|
- [initialiseWalletConnector](functions/initialiseWalletConnector.md)
|
|
@@ -44,6 +44,18 @@ false
|
|
|
44
44
|
|
|
45
45
|
***
|
|
46
46
|
|
|
47
|
+
### silentLoggers? {#silentloggers}
|
|
48
|
+
|
|
49
|
+
> `optional` **silentLoggers?**: `string`[]
|
|
50
|
+
|
|
51
|
+
The loggers to disable output for.
|
|
52
|
+
|
|
53
|
+
#### Inherited from
|
|
54
|
+
|
|
55
|
+
`IEngineCoreConfig.silentLoggers`
|
|
56
|
+
|
|
57
|
+
***
|
|
58
|
+
|
|
47
59
|
### types {#types}
|
|
48
60
|
|
|
49
61
|
> **types**: `object`
|
|
@@ -192,12 +204,6 @@ Automation action options which can be overridden by individual components by sp
|
|
|
192
204
|
|
|
193
205
|
Health component options which can be overridden by individual components by specifying types other than default.
|
|
194
206
|
|
|
195
|
-
#### urlTransformerComponent?
|
|
196
|
-
|
|
197
|
-
> `optional` **urlTransformerComponent?**: `IEngineCoreTypeConfig`\<[`UrlTransformerComponentConfig`](../type-aliases/UrlTransformerComponentConfig.md)\>[]
|
|
198
|
-
|
|
199
|
-
URL transformer component options which can be overridden by individual components by specifying types other than default.
|
|
200
|
-
|
|
201
207
|
#### vaultConnector?
|
|
202
208
|
|
|
203
209
|
> `optional` **vaultConnector?**: `IEngineCoreTypeConfig`\<[`VaultConnectorConfig`](../type-aliases/VaultConnectorConfig.md)\>[]
|
|
@@ -468,11 +474,11 @@ Dataspace control plane component options which can be overridden by individual
|
|
|
468
474
|
|
|
469
475
|
Dataspace data plane component options which can be overridden by individual components by specifying types other than default.
|
|
470
476
|
|
|
471
|
-
####
|
|
477
|
+
#### platformComponent?
|
|
472
478
|
|
|
473
|
-
> `optional` **
|
|
479
|
+
> `optional` **platformComponent?**: `IEngineCoreTypeConfig`\<[`PlatformComponentConfig`](../type-aliases/PlatformComponentConfig.md)\>[]
|
|
474
480
|
|
|
475
|
-
|
|
481
|
+
Platform component options which can be overridden by individual components by specifying types other than default.
|
|
476
482
|
|
|
477
483
|
#### tenantAdminComponent?
|
|
478
484
|
|
|
@@ -8,10 +8,10 @@ Federated catalog filter component config types.
|
|
|
8
8
|
|
|
9
9
|
### type {#type}
|
|
10
10
|
|
|
11
|
-
> **type**: *typeof* [`
|
|
11
|
+
> **type**: *typeof* [`FilterByMetadata`](../variables/FederatedCatalogueFilterComponentType.md#filterbymetadata)
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
15
15
|
### options {#options}
|
|
16
16
|
|
|
17
|
-
> **options**: `
|
|
17
|
+
> **options**: `IFilterByMetadataConstructorOptions`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Type Alias: PlatformComponentConfig
|
|
2
|
+
|
|
3
|
+
> **PlatformComponentConfig** = `object`
|
|
4
|
+
|
|
5
|
+
Platform component config types.
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
### type {#type}
|
|
10
|
+
|
|
11
|
+
> **type**: *typeof* [`Service`](../variables/PlatformComponentType.md#service)
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### options? {#options}
|
|
16
|
+
|
|
17
|
+
> `optional` **options?**: `IPlatformServiceConstructorOptions`
|
|
@@ -6,8 +6,8 @@ Federated catalogue filter component types.
|
|
|
6
6
|
|
|
7
7
|
## Type Declaration
|
|
8
8
|
|
|
9
|
-
###
|
|
9
|
+
### FilterByMetadata {#filterbymetadata}
|
|
10
10
|
|
|
11
|
-
> `readonly` **
|
|
11
|
+
> `readonly` **FilterByMetadata**: `"filter-by-metadata"` = `"filter-by-metadata"`
|
|
12
12
|
|
|
13
|
-
Filter By
|
|
13
|
+
Filter By Metadata.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/engine-types",
|
|
3
|
-
"version": "0.0.3-next.
|
|
3
|
+
"version": "0.0.3-next.50",
|
|
4
4
|
"description": "Component and connector type definitions with configuration helpers for engine composition.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"@twin.org/document-management-models": "next",
|
|
63
63
|
"@twin.org/document-management-rest-client": "next",
|
|
64
64
|
"@twin.org/document-management-service": "next",
|
|
65
|
-
"@twin.org/engine-core": "0.0.3-next.
|
|
66
|
-
"@twin.org/engine-models": "0.0.3-next.
|
|
65
|
+
"@twin.org/engine-core": "0.0.3-next.50",
|
|
66
|
+
"@twin.org/engine-models": "0.0.3-next.50",
|
|
67
67
|
"@twin.org/entity": "next",
|
|
68
68
|
"@twin.org/entity-storage-connector-cosmosdb": "next",
|
|
69
69
|
"@twin.org/entity-storage-connector-dynamodb": "next",
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// Copyright 2026 IOTA Stiftung.
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
-
import { UrlTransformerService } from "@twin.org/api-service";
|
|
4
|
-
import { ComponentFactory } from "@twin.org/core";
|
|
5
|
-
import { UrlTransformerComponentType } from "../models/types/urlTransformerComponentType.js";
|
|
6
|
-
import { EngineTypeHelper } from "../utils/engineTypeHelper.js";
|
|
7
|
-
/**
|
|
8
|
-
* Initialise the URL transformer component.
|
|
9
|
-
* @param engineCore The engine core.
|
|
10
|
-
* @param context The context for the engine.
|
|
11
|
-
* @param instanceConfig The instance config.
|
|
12
|
-
* @returns The instance created and the factory for it.
|
|
13
|
-
*/
|
|
14
|
-
export function initialiseUrlTransformerComponent(engineCore, context, instanceConfig) {
|
|
15
|
-
let createComponent;
|
|
16
|
-
let instanceTypeName;
|
|
17
|
-
if (instanceConfig.type === UrlTransformerComponentType.Service) {
|
|
18
|
-
createComponent = (createConfig) => new UrlTransformerService(EngineTypeHelper.mergeConfig({
|
|
19
|
-
vaultConnectorType: engineCore.getRegisteredInstanceType("vaultConnector")
|
|
20
|
-
}, createConfig.options));
|
|
21
|
-
instanceTypeName = "url-transformer-service";
|
|
22
|
-
}
|
|
23
|
-
return {
|
|
24
|
-
createComponent,
|
|
25
|
-
instanceTypeName,
|
|
26
|
-
factory: ComponentFactory
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=urlTransformer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"urlTransformer.js","sourceRoot":"","sources":["../../../src/components/urlTransformer.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AASlD,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAC7F,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE;;;;;;GAMG;AACH,MAAM,UAAU,iCAAiC,CAChD,UAAsC,EACtC,OAA0C,EAC1C,cAA6C;IAE7C,IAAI,eAAe,CAAC;IACpB,IAAI,gBAAgB,CAAC;IAErB,IAAI,cAAc,CAAC,IAAI,KAAK,2BAA2B,CAAC,OAAO,EAAE,CAAC;QACjE,eAAe,GAAG,CAAC,YAAmC,EAAE,EAAE,CACzD,IAAI,qBAAqB,CACxB,gBAAgB,CAAC,WAAW,CAC3B;YACC,kBAAkB,EAAE,UAAU,CAAC,yBAAyB,CAAC,gBAAgB,CAAC;SAC1E,EACD,YAAY,CAAC,OAAO,CACpB,CACD,CAAC;QACH,gBAAgB,4BAAyC,CAAC;IAC3D,CAAC;IAED,OAAO;QACN,eAAe;QACf,gBAAgB;QAChB,OAAO,EAAE,gBAAgB;KACzB,CAAC;AACH,CAAC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { UrlTransformerService } from \"@twin.org/api-service\";\nimport { ComponentFactory } from \"@twin.org/core\";\nimport type {\n\tEngineTypeInitialiserReturn,\n\tIEngineCore,\n\tIEngineCoreContext\n} from \"@twin.org/engine-models\";\nimport { nameofKebabCase } from \"@twin.org/nameof\";\nimport type { UrlTransformerComponentConfig } from \"../models/config/urlTransformerComponentConfig.js\";\nimport type { IEngineConfig } from \"../models/IEngineConfig.js\";\nimport { UrlTransformerComponentType } from \"../models/types/urlTransformerComponentType.js\";\nimport { EngineTypeHelper } from \"../utils/engineTypeHelper.js\";\n\n/**\n * Initialise the URL transformer component.\n * @param engineCore The engine core.\n * @param context The context for the engine.\n * @param instanceConfig The instance config.\n * @returns The instance created and the factory for it.\n */\nexport function initialiseUrlTransformerComponent(\n\tengineCore: IEngineCore<IEngineConfig>,\n\tcontext: IEngineCoreContext<IEngineConfig>,\n\tinstanceConfig: UrlTransformerComponentConfig\n): EngineTypeInitialiserReturn<UrlTransformerComponentConfig, typeof ComponentFactory> {\n\tlet createComponent;\n\tlet instanceTypeName;\n\n\tif (instanceConfig.type === UrlTransformerComponentType.Service) {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) =>\n\t\t\tnew UrlTransformerService(\n\t\t\t\tEngineTypeHelper.mergeConfig<(typeof instanceConfig)[\"options\"]>(\n\t\t\t\t\t{\n\t\t\t\t\t\tvaultConnectorType: engineCore.getRegisteredInstanceType(\"vaultConnector\")\n\t\t\t\t\t},\n\t\t\t\t\tcreateConfig.options\n\t\t\t\t)\n\t\t\t);\n\t\tinstanceTypeName = nameofKebabCase(UrlTransformerService);\n\t}\n\n\treturn {\n\t\tcreateComponent,\n\t\tinstanceTypeName,\n\t\tfactory: ComponentFactory\n\t};\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tenantComponentConfig.js","sourceRoot":"","sources":["../../../../src/models/config/tenantComponentConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ITenantServiceConstructorOptions } from \"@twin.org/api-tenant-processor\";\nimport type { TenantComponentType } from \"../types/tenantComponentType.js\";\n\n/**\n * Tenant component config types.\n */\n// eslint-disable-next-line @typescript-eslint/consistent-type-definitions\nexport type TenantComponentConfig = {\n\ttype: typeof TenantComponentType.Service;\n\toptions?: ITenantServiceConstructorOptions;\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"urlTransformerComponentConfig.js","sourceRoot":"","sources":["../../../../src/models/config/urlTransformerComponentConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IUrlTransformerServiceConstructorOptions } from \"@twin.org/api-service\";\nimport type { UrlTransformerComponentType } from \"../types/urlTransformerComponentType.js\";\n\n/**\n * URL transformer component config types.\n */\n// eslint-disable-next-line @typescript-eslint/consistent-type-definitions\nexport type UrlTransformerComponentConfig = {\n\ttype: typeof UrlTransformerComponentType.Service;\n\toptions?: IUrlTransformerServiceConstructorOptions;\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tenantComponentType.js","sourceRoot":"","sources":["../../../../src/models/types/tenantComponentType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAClC;;OAEG;IACH,OAAO,EAAE,SAAS;CACT,CAAC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Tenant component types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const TenantComponentType = {\n\t/**\n\t * Service.\n\t */\n\tService: \"service\"\n} as const;\n\n/**\n * Tenant component types.\n */\nexport type TenantComponentType = (typeof TenantComponentType)[keyof typeof TenantComponentType];\n"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// Copyright 2026 IOTA Stiftung.
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
-
/**
|
|
4
|
-
* URL transformer component types.
|
|
5
|
-
*/
|
|
6
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
-
export const UrlTransformerComponentType = {
|
|
8
|
-
/**
|
|
9
|
-
* Service.
|
|
10
|
-
*/
|
|
11
|
-
Service: "service"
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=urlTransformerComponentType.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"urlTransformerComponentType.js","sourceRoot":"","sources":["../../../../src/models/types/urlTransformerComponentType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,2BAA2B,GAAG;IAC1C;;OAEG;IACH,OAAO,EAAE,SAAS;CACT,CAAC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * URL transformer component types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const UrlTransformerComponentType = {\n\t/**\n\t * Service.\n\t */\n\tService: \"service\"\n} as const;\n\n/**\n * URL transformer component types.\n */\nexport type UrlTransformerComponentType =\n\t(typeof UrlTransformerComponentType)[keyof typeof UrlTransformerComponentType];\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ComponentFactory } from "@twin.org/core";
|
|
2
|
-
import type { EngineTypeInitialiserReturn, IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
3
|
-
import type { UrlTransformerComponentConfig } from "../models/config/urlTransformerComponentConfig.js";
|
|
4
|
-
import type { IEngineConfig } from "../models/IEngineConfig.js";
|
|
5
|
-
/**
|
|
6
|
-
* Initialise the URL transformer component.
|
|
7
|
-
* @param engineCore The engine core.
|
|
8
|
-
* @param context The context for the engine.
|
|
9
|
-
* @param instanceConfig The instance config.
|
|
10
|
-
* @returns The instance created and the factory for it.
|
|
11
|
-
*/
|
|
12
|
-
export declare function initialiseUrlTransformerComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: UrlTransformerComponentConfig): EngineTypeInitialiserReturn<UrlTransformerComponentConfig, typeof ComponentFactory>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ITenantServiceConstructorOptions } from "@twin.org/api-tenant-processor";
|
|
2
|
-
import type { TenantComponentType } from "../types/tenantComponentType.js";
|
|
3
|
-
/**
|
|
4
|
-
* Tenant component config types.
|
|
5
|
-
*/
|
|
6
|
-
export type TenantComponentConfig = {
|
|
7
|
-
type: typeof TenantComponentType.Service;
|
|
8
|
-
options?: ITenantServiceConstructorOptions;
|
|
9
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { IUrlTransformerServiceConstructorOptions } from "@twin.org/api-service";
|
|
2
|
-
import type { UrlTransformerComponentType } from "../types/urlTransformerComponentType.js";
|
|
3
|
-
/**
|
|
4
|
-
* URL transformer component config types.
|
|
5
|
-
*/
|
|
6
|
-
export type UrlTransformerComponentConfig = {
|
|
7
|
-
type: typeof UrlTransformerComponentType.Service;
|
|
8
|
-
options?: IUrlTransformerServiceConstructorOptions;
|
|
9
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tenant component types.
|
|
3
|
-
*/
|
|
4
|
-
export declare const TenantComponentType: {
|
|
5
|
-
/**
|
|
6
|
-
* Service.
|
|
7
|
-
*/
|
|
8
|
-
readonly Service: "service";
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Tenant component types.
|
|
12
|
-
*/
|
|
13
|
-
export type TenantComponentType = (typeof TenantComponentType)[keyof typeof TenantComponentType];
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* URL transformer component types.
|
|
3
|
-
*/
|
|
4
|
-
export declare const UrlTransformerComponentType: {
|
|
5
|
-
/**
|
|
6
|
-
* Service.
|
|
7
|
-
*/
|
|
8
|
-
readonly Service: "service";
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* URL transformer component types.
|
|
12
|
-
*/
|
|
13
|
-
export type UrlTransformerComponentType = (typeof UrlTransformerComponentType)[keyof typeof UrlTransformerComponentType];
|