@twin.org/engine-types 0.0.2-next.2 → 0.0.2-next.20
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 +1310 -1098
- package/dist/esm/index.mjs +1312 -1124
- package/dist/types/components/attestation.d.ts +14 -8
- package/dist/types/components/auditableItemGraph.d.ts +7 -4
- package/dist/types/components/auditableItemStream.d.ts +7 -4
- package/dist/types/components/authenticationGenerator.d.ts +17 -0
- package/dist/types/components/backgroundTask.d.ts +8 -4
- package/dist/types/components/blobStorage.d.ts +14 -8
- package/dist/types/components/dataProcessing.d.ts +20 -12
- package/dist/types/components/dataSpaceConnector.d.ts +16 -0
- package/dist/types/components/documentManagement.d.ts +7 -4
- package/dist/types/components/entityStorage.d.ts +10 -6
- package/dist/types/components/eventBus.d.ts +14 -8
- package/dist/types/components/faucet.d.ts +8 -4
- package/dist/types/components/federatedCatalogue.d.ts +7 -4
- package/dist/types/components/identity.d.ts +14 -8
- package/dist/types/components/identityProfile.d.ts +14 -8
- package/dist/types/components/identityResolver.d.ts +14 -8
- package/dist/types/components/immutableProof.d.ts +7 -4
- package/dist/types/components/logging.d.ts +14 -8
- package/dist/types/components/messaging.d.ts +39 -16
- package/dist/types/components/nft.d.ts +14 -8
- package/dist/types/components/rightsManagementDap.d.ts +16 -0
- package/dist/types/components/rightsManagementDarp.d.ts +16 -0
- package/dist/types/components/rightsManagementPap.d.ts +7 -4
- package/dist/types/components/rightsManagementPdp.d.ts +16 -0
- package/dist/types/components/rightsManagementPep.d.ts +16 -0
- package/dist/types/components/rightsManagementPip.d.ts +16 -0
- package/dist/types/components/rightsManagementPmp.d.ts +16 -0
- package/dist/types/components/rightsManagementPnap.d.ts +16 -0
- package/dist/types/components/rightsManagementPnp.d.ts +16 -0
- package/dist/types/components/rightsManagementPxp.d.ts +16 -0
- package/dist/types/components/synchronisedStorage.d.ts +16 -0
- package/dist/types/components/taskScheduler.d.ts +7 -4
- package/dist/types/components/telemetry.d.ts +14 -8
- package/dist/types/components/vault.d.ts +8 -4
- package/dist/types/components/verifiableStorage.d.ts +14 -8
- package/dist/types/components/wallet.d.ts +8 -14
- package/dist/types/index.d.ts +39 -3
- package/dist/types/models/IEngineConfig.d.ts +67 -7
- package/dist/types/models/config/authenticationGeneratorComponentConfig.d.ts +9 -0
- package/dist/types/models/config/dataSpaceConnectorComponentConfig.d.ts +17 -0
- package/dist/types/models/config/entityStorageConnectorConfig.d.ts +4 -0
- package/dist/types/models/config/messagingAdminComponentConfig.d.ts +9 -0
- package/dist/types/models/config/rightsManagementDapComponentConfig.d.ts +16 -0
- package/dist/types/models/config/rightsManagementDarpComponentConfig.d.ts +12 -0
- package/dist/types/models/config/rightsManagementPapComponentConfig.d.ts +6 -2
- package/dist/types/models/config/rightsManagementPdpComponentConfig.d.ts +12 -0
- package/dist/types/models/config/rightsManagementPepComponentConfig.d.ts +12 -0
- package/dist/types/models/config/rightsManagementPipComponentConfig.d.ts +12 -0
- package/dist/types/models/config/rightsManagementPmpComponentConfig.d.ts +9 -0
- package/dist/types/models/config/rightsManagementPnapComponentConfig.d.ts +13 -0
- package/dist/types/models/config/rightsManagementPnpComponentConfig.d.ts +17 -0
- package/dist/types/models/config/rightsManagementPxpComponentConfig.d.ts +12 -0
- package/dist/types/models/config/synchronisedStorageComponentConfig.d.ts +13 -0
- package/dist/types/models/types/authenticationGeneratorComponentType.d.ts +13 -0
- package/dist/types/models/types/dataSpaceConnectorComponentType.d.ts +21 -0
- package/dist/types/models/types/entityStorageConnectorType.d.ts +4 -0
- package/dist/types/models/types/messagingAdminComponentType.d.ts +13 -0
- package/dist/types/models/types/rightsManagementDapComponentType.d.ts +17 -0
- package/dist/types/models/types/rightsManagementDarpComponentType.d.ts +13 -0
- package/dist/types/models/types/rightsManagementPapComponentType.d.ts +4 -0
- package/dist/types/models/types/rightsManagementPdpComponentType.d.ts +13 -0
- package/dist/types/models/types/rightsManagementPepComponentType.d.ts +17 -0
- package/dist/types/models/types/rightsManagementPipComponentType.d.ts +13 -0
- package/dist/types/models/types/rightsManagementPmpComponentType.d.ts +13 -0
- package/dist/types/models/types/rightsManagementPnapComponentType.d.ts +17 -0
- package/dist/types/models/types/rightsManagementPnpComponentType.d.ts +17 -0
- package/dist/types/models/types/rightsManagementPxpComponentType.d.ts +13 -0
- package/dist/types/models/types/synchronisedStorageComponentType.d.ts +17 -0
- package/dist/types/utils/engineTypeHelper.d.ts +19 -0
- package/docs/changelog.md +261 -0
- package/docs/reference/classes/EngineTypeHelper.md +61 -0
- package/docs/reference/functions/initialiseAttestationComponent.md +3 -13
- package/docs/reference/functions/initialiseAttestationConnector.md +3 -13
- package/docs/reference/functions/initialiseAuditableItemGraphComponent.md +3 -13
- package/docs/reference/functions/initialiseAuditableItemStreamComponent.md +3 -13
- package/docs/reference/functions/initialiseAuthenticationGeneratorComponent.md +31 -0
- package/docs/reference/functions/initialiseBackgroundTaskConnector.md +3 -13
- package/docs/reference/functions/initialiseBlobStorageComponent.md +3 -13
- package/docs/reference/functions/initialiseBlobStorageConnector.md +3 -13
- package/docs/reference/functions/initialiseDataConverterConnector.md +3 -13
- package/docs/reference/functions/initialiseDataExtractorConnector.md +3 -13
- package/docs/reference/functions/initialiseDataProcessingComponent.md +3 -13
- package/docs/reference/functions/initialiseDataSpaceConnectorComponent.md +31 -0
- package/docs/reference/functions/initialiseDocumentManagementComponent.md +3 -13
- package/docs/reference/functions/initialiseEntityStorageComponent.md +3 -13
- package/docs/reference/functions/initialiseEntityStorageConnector.md +5 -3
- package/docs/reference/functions/initialiseEventBusComponent.md +3 -13
- package/docs/reference/functions/initialiseEventBusConnector.md +3 -13
- package/docs/reference/functions/initialiseFaucetConnector.md +3 -13
- package/docs/reference/functions/initialiseFederatedCatalogueComponent.md +3 -13
- package/docs/reference/functions/initialiseIdentityComponent.md +3 -13
- package/docs/reference/functions/initialiseIdentityConnector.md +3 -13
- package/docs/reference/functions/initialiseIdentityProfileComponent.md +3 -13
- package/docs/reference/functions/initialiseIdentityProfileConnector.md +3 -13
- package/docs/reference/functions/initialiseIdentityResolverComponent.md +3 -13
- package/docs/reference/functions/initialiseIdentityResolverConnector.md +3 -13
- package/docs/reference/functions/initialiseImmutableProofComponent.md +3 -13
- package/docs/reference/functions/initialiseLoggingComponent.md +3 -13
- package/docs/reference/functions/initialiseLoggingConnector.md +3 -13
- package/docs/reference/functions/initialiseMessagingAdminComponent.md +31 -0
- package/docs/reference/functions/initialiseMessagingComponent.md +3 -13
- package/docs/reference/functions/initialiseMessagingEmailConnector.md +3 -13
- package/docs/reference/functions/initialiseMessagingPushNotificationConnector.md +3 -13
- package/docs/reference/functions/initialiseMessagingSmsConnector.md +3 -13
- package/docs/reference/functions/initialiseNftComponent.md +3 -13
- package/docs/reference/functions/initialiseNftConnector.md +3 -13
- package/docs/reference/functions/initialiseRightsManagementDapComponent.md +31 -0
- package/docs/reference/functions/initialiseRightsManagementDarpComponent.md +31 -0
- package/docs/reference/functions/initialiseRightsManagementPapComponent.md +3 -13
- package/docs/reference/functions/initialiseRightsManagementPdpComponent.md +31 -0
- package/docs/reference/functions/initialiseRightsManagementPepComponent.md +31 -0
- package/docs/reference/functions/initialiseRightsManagementPipComponent.md +31 -0
- package/docs/reference/functions/initialiseRightsManagementPmpComponent.md +31 -0
- package/docs/reference/functions/initialiseRightsManagementPnapComponent.md +31 -0
- package/docs/reference/functions/initialiseRightsManagementPnpComponent.md +31 -0
- package/docs/reference/functions/initialiseRightsManagementPxpComponent.md +31 -0
- package/docs/reference/functions/initialiseSynchronisedStorageComponent.md +31 -0
- package/docs/reference/functions/initialiseTaskSchedulerComponent.md +3 -13
- package/docs/reference/functions/initialiseTelemetryComponent.md +3 -13
- package/docs/reference/functions/initialiseTelemetryConnector.md +3 -13
- package/docs/reference/functions/initialiseVaultConnector.md +3 -13
- package/docs/reference/functions/initialiseVerifiableStorageComponent.md +3 -13
- package/docs/reference/functions/initialiseVerifiableStorageConnector.md +3 -13
- package/docs/reference/functions/initialiseWalletConnector.md +3 -13
- package/docs/reference/index.md +56 -5
- package/docs/reference/interfaces/IEngineConfig.md +81 -9
- package/docs/reference/type-aliases/AuthenticationGeneratorComponentConfig.md +17 -0
- package/docs/reference/type-aliases/AuthenticationGeneratorComponentType.md +5 -0
- package/docs/reference/type-aliases/DataSpaceConnectorComponentConfig.md +5 -0
- package/docs/reference/type-aliases/DataSpaceConnectorComponentType.md +5 -0
- package/docs/reference/type-aliases/EntityStorageConnectorConfig.md +1 -1
- package/docs/reference/type-aliases/MessagingAdminComponentConfig.md +17 -0
- package/docs/reference/type-aliases/MessagingAdminComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementDapComponentConfig.md +5 -0
- package/docs/reference/type-aliases/RightsManagementDapComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementDarpComponentConfig.md +23 -0
- package/docs/reference/type-aliases/RightsManagementDarpComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPapComponentConfig.md +1 -13
- package/docs/reference/type-aliases/RightsManagementPdpComponentConfig.md +23 -0
- package/docs/reference/type-aliases/RightsManagementPdpComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPepComponentConfig.md +23 -0
- package/docs/reference/type-aliases/RightsManagementPepComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPipComponentConfig.md +23 -0
- package/docs/reference/type-aliases/RightsManagementPipComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPmpComponentConfig.md +17 -0
- package/docs/reference/type-aliases/RightsManagementPmpComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPnapComponentConfig.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPnapComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPnpComponentConfig.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPnpComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPxpComponentConfig.md +23 -0
- package/docs/reference/type-aliases/RightsManagementPxpComponentType.md +5 -0
- package/docs/reference/type-aliases/SynchronisedStorageComponentConfig.md +5 -0
- package/docs/reference/type-aliases/SynchronisedStorageComponentType.md +5 -0
- package/docs/reference/variables/AttestationComponentType.md +1 -1
- package/docs/reference/variables/AttestationConnectorType.md +1 -1
- package/docs/reference/variables/AuditableItemGraphComponentType.md +1 -1
- package/docs/reference/variables/AuditableItemStreamComponentType.md +1 -1
- package/docs/reference/variables/AuthenticationGeneratorComponentType.md +13 -0
- package/docs/reference/variables/BackgroundTaskConnectorType.md +1 -1
- package/docs/reference/variables/BlobStorageComponentType.md +1 -1
- package/docs/reference/variables/BlobStorageConnectorType.md +1 -1
- package/docs/reference/variables/DataConverterConnectorType.md +1 -1
- package/docs/reference/variables/DataExtractorConnectorType.md +1 -1
- package/docs/reference/variables/DataProcessingComponentType.md +1 -1
- package/docs/reference/variables/DataSpaceConnectorComponentType.md +25 -0
- package/docs/reference/variables/DltConfigType.md +1 -1
- package/docs/reference/variables/DocumentManagementComponentType.md +1 -1
- package/docs/reference/variables/EntityStorageComponentType.md +1 -1
- package/docs/reference/variables/EntityStorageConnectorType.md +7 -1
- package/docs/reference/variables/EventBusComponentType.md +1 -1
- package/docs/reference/variables/EventBusConnectorType.md +1 -1
- package/docs/reference/variables/FaucetConnectorType.md +1 -1
- package/docs/reference/variables/FederatedCatalogueComponentType.md +1 -1
- package/docs/reference/variables/IdentityComponentType.md +1 -1
- package/docs/reference/variables/IdentityConnectorType.md +1 -1
- package/docs/reference/variables/IdentityProfileComponentType.md +1 -1
- package/docs/reference/variables/IdentityProfileConnectorType.md +1 -1
- package/docs/reference/variables/IdentityResolverComponentType.md +1 -1
- package/docs/reference/variables/IdentityResolverConnectorType.md +1 -1
- package/docs/reference/variables/ImmutableProofComponentType.md +1 -1
- package/docs/reference/variables/LoggingComponentType.md +1 -1
- package/docs/reference/variables/LoggingConnectorType.md +1 -1
- package/docs/reference/variables/MessagingAdminComponentType.md +13 -0
- package/docs/reference/variables/MessagingComponentType.md +1 -1
- package/docs/reference/variables/MessagingEmailConnectorType.md +1 -1
- package/docs/reference/variables/MessagingPushNotificationConnectorType.md +1 -1
- package/docs/reference/variables/MessagingSmsConnectorType.md +1 -1
- package/docs/reference/variables/NftComponentType.md +1 -1
- package/docs/reference/variables/NftConnectorType.md +1 -1
- package/docs/reference/variables/RightsManagementDapComponentType.md +19 -0
- package/docs/reference/variables/RightsManagementDarpComponentType.md +13 -0
- package/docs/reference/variables/RightsManagementPapComponentType.md +7 -1
- package/docs/reference/variables/RightsManagementPdpComponentType.md +13 -0
- package/docs/reference/variables/RightsManagementPepComponentType.md +19 -0
- package/docs/reference/variables/RightsManagementPipComponentType.md +13 -0
- package/docs/reference/variables/RightsManagementPmpComponentType.md +13 -0
- package/docs/reference/variables/RightsManagementPnapComponentType.md +19 -0
- package/docs/reference/variables/RightsManagementPnpComponentType.md +19 -0
- package/docs/reference/variables/RightsManagementPxpComponentType.md +13 -0
- package/docs/reference/variables/{RightsManagementComponentType.md → SynchronisedStorageComponentType.md} +4 -4
- package/docs/reference/variables/TaskSchedulerComponentType.md +1 -1
- package/docs/reference/variables/TelemetryComponentType.md +1 -1
- package/docs/reference/variables/TelemetryConnectorType.md +1 -1
- package/docs/reference/variables/VaultConnectorType.md +1 -1
- package/docs/reference/variables/VerifiableStorageComponentType.md +1 -1
- package/docs/reference/variables/VerifiableStorageConnectorType.md +1 -1
- package/docs/reference/variables/WalletConnectorType.md +1 -1
- package/package.json +28 -2
- package/dist/types/components/rightsManagement.d.ts +0 -13
- package/dist/types/models/config/rightsManagementComponentConfig.d.ts +0 -13
- package/dist/types/models/types/rightsManagementComponentType.d.ts +0 -17
- package/docs/reference/functions/initialiseRightsManagementComponent.md +0 -41
- package/docs/reference/functions/initialiseWalletStorage.md +0 -41
- package/docs/reference/type-aliases/RightsManagementComponentConfig.md +0 -5
- package/docs/reference/type-aliases/RightsManagementComponentType.md +0 -5
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { AttestationConnectorFactory } from "@twin.org/attestation-models";
|
|
2
|
+
import { ComponentFactory, type IComponent } from "@twin.org/core";
|
|
1
3
|
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
2
4
|
import type { AttestationComponentConfig } from "../models/config/attestationComponentConfig";
|
|
3
5
|
import type { AttestationConnectorConfig } from "../models/config/attestationConnectorConfig";
|
|
@@ -7,18 +9,22 @@ import type { IEngineConfig } from "../models/IEngineConfig";
|
|
|
7
9
|
* @param engineCore The engine core.
|
|
8
10
|
* @param context The context for the engine.
|
|
9
11
|
* @param instanceConfig The instance config.
|
|
10
|
-
* @
|
|
11
|
-
* @returns The name of the instance created.
|
|
12
|
-
* @throws GeneralError if the connector type is unknown.
|
|
12
|
+
* @returns The instance created and the factory for it.
|
|
13
13
|
*/
|
|
14
|
-
export declare function initialiseAttestationConnector(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: AttestationConnectorConfig
|
|
14
|
+
export declare function initialiseAttestationConnector(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: AttestationConnectorConfig): Promise<{
|
|
15
|
+
instanceType?: string;
|
|
16
|
+
factory?: typeof AttestationConnectorFactory;
|
|
17
|
+
component?: IComponent;
|
|
18
|
+
}>;
|
|
15
19
|
/**
|
|
16
20
|
* Initialise the attestation component.
|
|
17
21
|
* @param engineCore The engine core.
|
|
18
22
|
* @param context The context for the engine.
|
|
19
23
|
* @param instanceConfig The instance config.
|
|
20
|
-
* @
|
|
21
|
-
* @returns The name of the instance created.
|
|
22
|
-
* @throws GeneralError if the component type is unknown.
|
|
24
|
+
* @returns The instance created and the factory for it.
|
|
23
25
|
*/
|
|
24
|
-
export declare function initialiseAttestationComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: AttestationComponentConfig
|
|
26
|
+
export declare function initialiseAttestationComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: AttestationComponentConfig): Promise<{
|
|
27
|
+
instanceType?: string;
|
|
28
|
+
factory?: typeof ComponentFactory;
|
|
29
|
+
component?: IComponent;
|
|
30
|
+
}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ComponentFactory, type IComponent } from "@twin.org/core";
|
|
1
2
|
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
2
3
|
import type { AuditableItemGraphComponentConfig } from "../models/config/auditableItemGraphComponentConfig";
|
|
3
4
|
import type { IEngineConfig } from "../models/IEngineConfig";
|
|
@@ -6,8 +7,10 @@ import type { IEngineConfig } from "../models/IEngineConfig";
|
|
|
6
7
|
* @param engineCore The engine core.
|
|
7
8
|
* @param context The context for the engine.
|
|
8
9
|
* @param instanceConfig The instance config.
|
|
9
|
-
* @
|
|
10
|
-
* @returns The name of the instance created.
|
|
11
|
-
* @throws GeneralError if the component type is unknown.
|
|
10
|
+
* @returns The instance created and the factory for it.
|
|
12
11
|
*/
|
|
13
|
-
export declare function initialiseAuditableItemGraphComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: AuditableItemGraphComponentConfig
|
|
12
|
+
export declare function initialiseAuditableItemGraphComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: AuditableItemGraphComponentConfig): Promise<{
|
|
13
|
+
instanceType?: string;
|
|
14
|
+
factory?: typeof ComponentFactory;
|
|
15
|
+
component?: IComponent;
|
|
16
|
+
}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ComponentFactory, type IComponent } from "@twin.org/core";
|
|
1
2
|
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
2
3
|
import type { AuditableItemStreamComponentConfig } from "../models/config/auditableItemStreamComponentConfig";
|
|
3
4
|
import type { IEngineConfig } from "../models/IEngineConfig";
|
|
@@ -6,8 +7,10 @@ import type { IEngineConfig } from "../models/IEngineConfig";
|
|
|
6
7
|
* @param engineCore The engine core.
|
|
7
8
|
* @param context The context for the engine.
|
|
8
9
|
* @param instanceConfig The instance config.
|
|
9
|
-
* @
|
|
10
|
-
* @returns The name of the instance created.
|
|
11
|
-
* @throws GeneralError if the component type is unknown.
|
|
10
|
+
* @returns The instance created and the factory for it.
|
|
12
11
|
*/
|
|
13
|
-
export declare function initialiseAuditableItemStreamComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: AuditableItemStreamComponentConfig
|
|
12
|
+
export declare function initialiseAuditableItemStreamComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: AuditableItemStreamComponentConfig): Promise<{
|
|
13
|
+
instanceType?: string;
|
|
14
|
+
factory?: typeof ComponentFactory;
|
|
15
|
+
component?: IComponent;
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AuthenticationGeneratorFactory } from "@twin.org/api-models";
|
|
2
|
+
import type { IComponent } from "@twin.org/core";
|
|
3
|
+
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
4
|
+
import type { AuthenticationGeneratorComponentConfig } from "../models/config/authenticationGeneratorComponentConfig";
|
|
5
|
+
import type { IEngineConfig } from "../models/IEngineConfig";
|
|
6
|
+
/**
|
|
7
|
+
* Initialise the authentication generator 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 initialiseAuthenticationGeneratorComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: AuthenticationGeneratorComponentConfig): Promise<{
|
|
14
|
+
instanceType?: string;
|
|
15
|
+
factory?: typeof AuthenticationGeneratorFactory;
|
|
16
|
+
component?: IComponent;
|
|
17
|
+
}>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { BackgroundTaskConnectorFactory } from "@twin.org/background-task-models";
|
|
2
|
+
import type { IComponent } from "@twin.org/core";
|
|
1
3
|
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
2
4
|
import type { BackgroundTaskConnectorConfig } from "../models/config/backgroundTaskConnectorConfig";
|
|
3
5
|
import type { IEngineConfig } from "../models/IEngineConfig";
|
|
@@ -6,8 +8,10 @@ import type { IEngineConfig } from "../models/IEngineConfig";
|
|
|
6
8
|
* @param engineCore The engine core.
|
|
7
9
|
* @param context The context for the engine.
|
|
8
10
|
* @param instanceConfig The instance config.
|
|
9
|
-
* @
|
|
10
|
-
* @returns The name of the instance created.
|
|
11
|
-
* @throws GeneralError if the connector type is unknown.
|
|
11
|
+
* @returns The instance created and the factory for it.
|
|
12
12
|
*/
|
|
13
|
-
export declare function initialiseBackgroundTaskConnector(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: BackgroundTaskConnectorConfig
|
|
13
|
+
export declare function initialiseBackgroundTaskConnector(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: BackgroundTaskConnectorConfig): Promise<{
|
|
14
|
+
instanceType?: string;
|
|
15
|
+
factory?: typeof BackgroundTaskConnectorFactory;
|
|
16
|
+
component?: IComponent;
|
|
17
|
+
}>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { BlobStorageConnectorFactory } from "@twin.org/blob-storage-models";
|
|
2
|
+
import { type IComponent, ComponentFactory } from "@twin.org/core";
|
|
1
3
|
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
2
4
|
import type { BlobStorageComponentConfig } from "../models/config/blobStorageComponentConfig";
|
|
3
5
|
import type { BlobStorageConnectorConfig } from "../models/config/blobStorageConnectorConfig";
|
|
@@ -7,18 +9,22 @@ import type { IEngineConfig } from "../models/IEngineConfig";
|
|
|
7
9
|
* @param engineCore The engine core.
|
|
8
10
|
* @param context The context for the engine.
|
|
9
11
|
* @param instanceConfig The instance config.
|
|
10
|
-
* @
|
|
11
|
-
* @returns The name of the instance created.
|
|
12
|
-
* @throws GeneralError if the connector type is unknown.
|
|
12
|
+
* @returns The instance created and the factory for it.
|
|
13
13
|
*/
|
|
14
|
-
export declare function initialiseBlobStorageConnector(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: BlobStorageConnectorConfig
|
|
14
|
+
export declare function initialiseBlobStorageConnector(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: BlobStorageConnectorConfig): Promise<{
|
|
15
|
+
instanceType?: string;
|
|
16
|
+
factory?: typeof BlobStorageConnectorFactory;
|
|
17
|
+
component?: IComponent;
|
|
18
|
+
}>;
|
|
15
19
|
/**
|
|
16
20
|
* Initialise the blob storage component.
|
|
17
21
|
* @param engineCore The engine core.
|
|
18
22
|
* @param context The context for the engine.
|
|
19
23
|
* @param instanceConfig The instance config.
|
|
20
|
-
* @
|
|
21
|
-
* @returns The name of the instance created.
|
|
22
|
-
* @throws GeneralError if the component type is unknown.
|
|
24
|
+
* @returns The instance created and the factory for it.
|
|
23
25
|
*/
|
|
24
|
-
export declare function initialiseBlobStorageComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: BlobStorageComponentConfig
|
|
26
|
+
export declare function initialiseBlobStorageComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: BlobStorageComponentConfig): Promise<{
|
|
27
|
+
instanceType?: string;
|
|
28
|
+
factory?: typeof ComponentFactory;
|
|
29
|
+
component?: IComponent;
|
|
30
|
+
}>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ComponentFactory, type IComponent } from "@twin.org/core";
|
|
2
|
+
import { DataConverterConnectorFactory, DataExtractorConnectorFactory } from "@twin.org/data-processing-models";
|
|
1
3
|
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
2
4
|
import type { DataConverterConnectorConfig } from "../models/config/dataConverterConnectorConfig";
|
|
3
5
|
import type { DataExtractorConnectorConfig } from "../models/config/dataExtractorConnectorConfig";
|
|
@@ -8,28 +10,34 @@ import type { IEngineConfig } from "../models/IEngineConfig";
|
|
|
8
10
|
* @param engineCore The engine core.
|
|
9
11
|
* @param context The context for the engine.
|
|
10
12
|
* @param instanceConfig The instance config.
|
|
11
|
-
* @
|
|
12
|
-
* @returns The name of the instance created.
|
|
13
|
-
* @throws GeneralError if the connector type is unknown.
|
|
13
|
+
* @returns The instance created and the factory for it.
|
|
14
14
|
*/
|
|
15
|
-
export declare function initialiseDataConverterConnector(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: DataConverterConnectorConfig
|
|
15
|
+
export declare function initialiseDataConverterConnector(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: DataConverterConnectorConfig): Promise<{
|
|
16
|
+
instanceType?: string;
|
|
17
|
+
factory?: typeof DataConverterConnectorFactory;
|
|
18
|
+
component?: IComponent;
|
|
19
|
+
}>;
|
|
16
20
|
/**
|
|
17
21
|
* Initialise the data extractor connector.
|
|
18
22
|
* @param engineCore The engine core.
|
|
19
23
|
* @param context The context for the engine.
|
|
20
24
|
* @param instanceConfig The instance config.
|
|
21
|
-
* @
|
|
22
|
-
* @returns The name of the instance created.
|
|
23
|
-
* @throws GeneralError if the connector type is unknown.
|
|
25
|
+
* @returns The instance created and the factory for it.
|
|
24
26
|
*/
|
|
25
|
-
export declare function initialiseDataExtractorConnector(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: DataExtractorConnectorConfig
|
|
27
|
+
export declare function initialiseDataExtractorConnector(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: DataExtractorConnectorConfig): Promise<{
|
|
28
|
+
instanceType?: string;
|
|
29
|
+
factory?: typeof DataExtractorConnectorFactory;
|
|
30
|
+
component?: IComponent;
|
|
31
|
+
}>;
|
|
26
32
|
/**
|
|
27
33
|
* Initialise the data processing component.
|
|
28
34
|
* @param engineCore The engine core.
|
|
29
35
|
* @param context The context for the engine.
|
|
30
36
|
* @param instanceConfig The instance config.
|
|
31
|
-
* @
|
|
32
|
-
* @returns The name of the instance created.
|
|
33
|
-
* @throws GeneralError if the component type is unknown.
|
|
37
|
+
* @returns The instance created and the factory for it.
|
|
34
38
|
*/
|
|
35
|
-
export declare function initialiseDataProcessingComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: DataProcessingComponentConfig
|
|
39
|
+
export declare function initialiseDataProcessingComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: DataProcessingComponentConfig): Promise<{
|
|
40
|
+
instanceType?: string;
|
|
41
|
+
factory?: typeof ComponentFactory;
|
|
42
|
+
component?: IComponent;
|
|
43
|
+
}>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ComponentFactory, type IComponent } from "@twin.org/core";
|
|
2
|
+
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
3
|
+
import type { DataSpaceConnectorComponentConfig } from "../models/config/dataSpaceConnectorComponentConfig";
|
|
4
|
+
import type { IEngineConfig } from "../models/IEngineConfig";
|
|
5
|
+
/**
|
|
6
|
+
* Initialise the data space connector 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 initialiseDataSpaceConnectorComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: DataSpaceConnectorComponentConfig): Promise<{
|
|
13
|
+
instanceType?: string;
|
|
14
|
+
factory?: typeof ComponentFactory;
|
|
15
|
+
component?: IComponent;
|
|
16
|
+
}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ComponentFactory, type IComponent } from "@twin.org/core";
|
|
1
2
|
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
2
3
|
import type { DocumentManagementComponentConfig } from "../models/config/documentManagementComponentConfig";
|
|
3
4
|
import type { IEngineConfig } from "../models/IEngineConfig";
|
|
@@ -6,8 +7,10 @@ import type { IEngineConfig } from "../models/IEngineConfig";
|
|
|
6
7
|
* @param engineCore The engine core.
|
|
7
8
|
* @param context The context for the engine.
|
|
8
9
|
* @param instanceConfig The instance config.
|
|
9
|
-
* @
|
|
10
|
-
* @returns The name of the instance created.
|
|
11
|
-
* @throws GeneralError if the component type is unknown.
|
|
10
|
+
* @returns The instance created and the factory for it.
|
|
12
11
|
*/
|
|
13
|
-
export declare function initialiseDocumentManagementComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: DocumentManagementComponentConfig
|
|
12
|
+
export declare function initialiseDocumentManagementComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: DocumentManagementComponentConfig): Promise<{
|
|
13
|
+
instanceType?: string;
|
|
14
|
+
factory?: typeof ComponentFactory;
|
|
15
|
+
component?: IComponent;
|
|
16
|
+
}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ComponentFactory, type IComponent } from "@twin.org/core";
|
|
1
2
|
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
2
3
|
import type { EntityStorageComponentConfig } from "../models/config/entityStorageComponentConfig";
|
|
3
4
|
import type { IEngineConfig } from "../models/IEngineConfig";
|
|
@@ -7,16 +8,19 @@ import type { IEngineConfig } from "../models/IEngineConfig";
|
|
|
7
8
|
* @param context The context for the engine.
|
|
8
9
|
* @param typeCustom Override the type of connector to use instead of default configuration.
|
|
9
10
|
* @param schema The schema for the entity storage.
|
|
10
|
-
* @
|
|
11
|
+
* @returns The name of the instance type that was created.
|
|
12
|
+
* @throws GeneralError when the configuration is invalid.
|
|
11
13
|
*/
|
|
12
|
-
export declare function initialiseEntityStorageConnector(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, typeCustom: string | undefined, schema: string):
|
|
14
|
+
export declare function initialiseEntityStorageConnector(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, typeCustom: string | undefined, schema: string): string;
|
|
13
15
|
/**
|
|
14
16
|
* Initialise the entity storage connector.
|
|
15
17
|
* @param engineCore The engine core.
|
|
16
18
|
* @param context The context for the engine.
|
|
17
19
|
* @param instanceConfig The instance config.
|
|
18
|
-
* @
|
|
19
|
-
* @returns The name of the instance created.
|
|
20
|
-
* @throws GeneralError if the connector type is unknown.
|
|
20
|
+
* @returns The instance created and the factory for it.
|
|
21
21
|
*/
|
|
22
|
-
export declare function initialiseEntityStorageComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: EntityStorageComponentConfig
|
|
22
|
+
export declare function initialiseEntityStorageComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: EntityStorageComponentConfig): Promise<{
|
|
23
|
+
instanceType?: string;
|
|
24
|
+
factory?: typeof ComponentFactory;
|
|
25
|
+
component?: IComponent;
|
|
26
|
+
}>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { ComponentFactory, type IComponent } from "@twin.org/core";
|
|
1
2
|
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
3
|
+
import { EventBusConnectorFactory } from "@twin.org/event-bus-models";
|
|
2
4
|
import type { EventBusComponentConfig } from "../models/config/eventBusComponentConfig";
|
|
3
5
|
import type { EventBusConnectorConfig } from "../models/config/eventBusConnectorConfig";
|
|
4
6
|
import type { IEngineConfig } from "../models/IEngineConfig";
|
|
@@ -7,18 +9,22 @@ import type { IEngineConfig } from "../models/IEngineConfig";
|
|
|
7
9
|
* @param engineCore The engine core.
|
|
8
10
|
* @param context The context for the engine.
|
|
9
11
|
* @param instanceConfig The instance config.
|
|
10
|
-
* @
|
|
11
|
-
* @returns The name of the instance created.
|
|
12
|
-
* @throws GeneralError if the connector type is unknown.
|
|
12
|
+
* @returns The instance created and the factory for it.
|
|
13
13
|
*/
|
|
14
|
-
export declare function initialiseEventBusConnector(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: EventBusConnectorConfig
|
|
14
|
+
export declare function initialiseEventBusConnector(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: EventBusConnectorConfig): Promise<{
|
|
15
|
+
instanceType?: string;
|
|
16
|
+
factory?: typeof EventBusConnectorFactory;
|
|
17
|
+
component?: IComponent;
|
|
18
|
+
}>;
|
|
15
19
|
/**
|
|
16
20
|
* Initialise the event bus component.
|
|
17
21
|
* @param engineCore The engine core.
|
|
18
22
|
* @param context The context for the engine.
|
|
19
23
|
* @param instanceConfig The instance config.
|
|
20
|
-
* @
|
|
21
|
-
* @returns The name of the instance created.
|
|
22
|
-
* @throws GeneralError if the component type is unknown.
|
|
24
|
+
* @returns The instance created and the factory for it.
|
|
23
25
|
*/
|
|
24
|
-
export declare function initialiseEventBusComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: EventBusComponentConfig
|
|
26
|
+
export declare function initialiseEventBusComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: EventBusComponentConfig): Promise<{
|
|
27
|
+
instanceType?: string;
|
|
28
|
+
factory?: typeof ComponentFactory;
|
|
29
|
+
component?: IComponent;
|
|
30
|
+
}>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import type { IComponent } from "@twin.org/core";
|
|
1
2
|
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
3
|
+
import { FaucetConnectorFactory } from "@twin.org/wallet-models";
|
|
2
4
|
import type { FaucetConnectorConfig } from "../models/config/faucetConnectorConfig";
|
|
3
5
|
import type { IEngineConfig } from "../models/IEngineConfig";
|
|
4
6
|
/**
|
|
@@ -6,8 +8,10 @@ import type { IEngineConfig } from "../models/IEngineConfig";
|
|
|
6
8
|
* @param engineCore The engine core.
|
|
7
9
|
* @param context The context for the engine.
|
|
8
10
|
* @param instanceConfig The instance config.
|
|
9
|
-
* @
|
|
10
|
-
* @returns The name of the instance created.
|
|
11
|
-
* @throws GeneralError if the connector type is unknown.
|
|
11
|
+
* @returns The instance created and the factory for it.
|
|
12
12
|
*/
|
|
13
|
-
export declare function initialiseFaucetConnector(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: FaucetConnectorConfig
|
|
13
|
+
export declare function initialiseFaucetConnector(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: FaucetConnectorConfig): Promise<{
|
|
14
|
+
instanceType?: string;
|
|
15
|
+
factory?: typeof FaucetConnectorFactory;
|
|
16
|
+
component?: IComponent;
|
|
17
|
+
}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ComponentFactory, type IComponent } from "@twin.org/core";
|
|
1
2
|
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
2
3
|
import type { FederatedCatalogueComponentConfig } from "../models/config/federatedCatalogueComponentConfig";
|
|
3
4
|
import type { IEngineConfig } from "../models/IEngineConfig";
|
|
@@ -6,8 +7,10 @@ import type { IEngineConfig } from "../models/IEngineConfig";
|
|
|
6
7
|
* @param engineCore The engine core.
|
|
7
8
|
* @param context The context for the engine.
|
|
8
9
|
* @param instanceConfig The instance config.
|
|
9
|
-
* @
|
|
10
|
-
* @returns The name of the instance created.
|
|
11
|
-
* @throws GeneralError if the component type is unknown.
|
|
10
|
+
* @returns The instance created and the factory for it.
|
|
12
11
|
*/
|
|
13
|
-
export declare function initialiseFederatedCatalogueComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: FederatedCatalogueComponentConfig
|
|
12
|
+
export declare function initialiseFederatedCatalogueComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: FederatedCatalogueComponentConfig): Promise<{
|
|
13
|
+
instanceType?: string;
|
|
14
|
+
factory?: typeof ComponentFactory;
|
|
15
|
+
component?: IComponent;
|
|
16
|
+
}>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { ComponentFactory, type IComponent } from "@twin.org/core";
|
|
1
2
|
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
3
|
+
import { IdentityConnectorFactory } from "@twin.org/identity-models";
|
|
2
4
|
import type { IdentityComponentConfig } from "../models/config/identityComponentConfig";
|
|
3
5
|
import type { IdentityConnectorConfig } from "../models/config/identityConnectorConfig";
|
|
4
6
|
import type { IEngineConfig } from "../models/IEngineConfig";
|
|
@@ -7,18 +9,22 @@ import type { IEngineConfig } from "../models/IEngineConfig";
|
|
|
7
9
|
* @param engineCore The engine core.
|
|
8
10
|
* @param context The context for the engine.
|
|
9
11
|
* @param instanceConfig The instance config.
|
|
10
|
-
* @
|
|
11
|
-
* @returns The name of the instance created.
|
|
12
|
-
* @throws GeneralError if the connector type is unknown.
|
|
12
|
+
* @returns The instance created and the factory for it.
|
|
13
13
|
*/
|
|
14
|
-
export declare function initialiseIdentityConnector(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: IdentityConnectorConfig
|
|
14
|
+
export declare function initialiseIdentityConnector(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: IdentityConnectorConfig): Promise<{
|
|
15
|
+
instanceType?: string;
|
|
16
|
+
factory?: typeof IdentityConnectorFactory;
|
|
17
|
+
component?: IComponent;
|
|
18
|
+
}>;
|
|
15
19
|
/**
|
|
16
20
|
* Initialise the identity component.
|
|
17
21
|
* @param engineCore The engine core.
|
|
18
22
|
* @param context The context for the engine.
|
|
19
23
|
* @param instanceConfig The instance config.
|
|
20
|
-
* @
|
|
21
|
-
* @returns The name of the instance created.
|
|
22
|
-
* @throws GeneralError if the component type is unknown.
|
|
24
|
+
* @returns The instance created and the factory for it.
|
|
23
25
|
*/
|
|
24
|
-
export declare function initialiseIdentityComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: IdentityComponentConfig
|
|
26
|
+
export declare function initialiseIdentityComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: IdentityComponentConfig): Promise<{
|
|
27
|
+
instanceType?: string;
|
|
28
|
+
factory?: typeof ComponentFactory;
|
|
29
|
+
component?: IComponent;
|
|
30
|
+
}>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { ComponentFactory, type IComponent } from "@twin.org/core";
|
|
1
2
|
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
3
|
+
import { IdentityProfileConnectorFactory } from "@twin.org/identity-models";
|
|
2
4
|
import type { IdentityProfileComponentConfig } from "../models/config/identityProfileComponentConfig";
|
|
3
5
|
import type { IdentityProfileConnectorConfig } from "../models/config/identityProfileConnectorConfig";
|
|
4
6
|
import type { IEngineConfig } from "../models/IEngineConfig";
|
|
@@ -7,18 +9,22 @@ import type { IEngineConfig } from "../models/IEngineConfig";
|
|
|
7
9
|
* @param engineCore The engine core.
|
|
8
10
|
* @param context The context for the engine.
|
|
9
11
|
* @param instanceConfig The instance config.
|
|
10
|
-
* @
|
|
11
|
-
* @returns The name of the instance created.
|
|
12
|
-
* @throws GeneralError if the connector type is unknown.
|
|
12
|
+
* @returns The instance created and the factory for it.
|
|
13
13
|
*/
|
|
14
|
-
export declare function initialiseIdentityProfileConnector(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: IdentityProfileConnectorConfig
|
|
14
|
+
export declare function initialiseIdentityProfileConnector(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: IdentityProfileConnectorConfig): Promise<{
|
|
15
|
+
instanceType?: string;
|
|
16
|
+
factory?: typeof IdentityProfileConnectorFactory;
|
|
17
|
+
component?: IComponent;
|
|
18
|
+
}>;
|
|
15
19
|
/**
|
|
16
20
|
* Initialise the identity profile component.
|
|
17
21
|
* @param engineCore The engine core.
|
|
18
22
|
* @param context The context for the engine.
|
|
19
23
|
* @param instanceConfig The instance config.
|
|
20
|
-
* @
|
|
21
|
-
* @returns The name of the instance created.
|
|
22
|
-
* @throws GeneralError if the component type is unknown.
|
|
24
|
+
* @returns The instance created and the factory for it.
|
|
23
25
|
*/
|
|
24
|
-
export declare function initialiseIdentityProfileComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: IdentityProfileComponentConfig
|
|
26
|
+
export declare function initialiseIdentityProfileComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: IdentityProfileComponentConfig): Promise<{
|
|
27
|
+
instanceType?: string;
|
|
28
|
+
factory?: typeof ComponentFactory;
|
|
29
|
+
component?: IComponent;
|
|
30
|
+
}>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { ComponentFactory, type IComponent } from "@twin.org/core";
|
|
1
2
|
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
3
|
+
import { IdentityResolverConnectorFactory } from "@twin.org/identity-models";
|
|
2
4
|
import type { IdentityResolverComponentConfig } from "../models/config/identityResolverComponentConfig";
|
|
3
5
|
import type { IdentityResolverConnectorConfig } from "../models/config/identityResolverConnectorConfig";
|
|
4
6
|
import type { IEngineConfig } from "../models/IEngineConfig";
|
|
@@ -7,18 +9,22 @@ import type { IEngineConfig } from "../models/IEngineConfig";
|
|
|
7
9
|
* @param engineCore The engine core.
|
|
8
10
|
* @param context The context for the engine.
|
|
9
11
|
* @param instanceConfig The instance config.
|
|
10
|
-
* @
|
|
11
|
-
* @returns The name of the instance created.
|
|
12
|
-
* @throws GeneralError if the connector type is unknown.
|
|
12
|
+
* @returns The instance created and the factory for it.
|
|
13
13
|
*/
|
|
14
|
-
export declare function initialiseIdentityResolverConnector(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: IdentityResolverConnectorConfig
|
|
14
|
+
export declare function initialiseIdentityResolverConnector(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: IdentityResolverConnectorConfig): Promise<{
|
|
15
|
+
instanceType?: string;
|
|
16
|
+
factory?: typeof IdentityResolverConnectorFactory;
|
|
17
|
+
component?: IComponent;
|
|
18
|
+
}>;
|
|
15
19
|
/**
|
|
16
20
|
* Initialise the identity resolver component.
|
|
17
21
|
* @param engineCore The engine core.
|
|
18
22
|
* @param context The context for the engine.
|
|
19
23
|
* @param instanceConfig The instance config.
|
|
20
|
-
* @
|
|
21
|
-
* @returns The name of the instance created.
|
|
22
|
-
* @throws GeneralError if the component type is unknown.
|
|
24
|
+
* @returns The instance created and the factory for it.
|
|
23
25
|
*/
|
|
24
|
-
export declare function initialiseIdentityResolverComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: IdentityResolverComponentConfig
|
|
26
|
+
export declare function initialiseIdentityResolverComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: IdentityResolverComponentConfig): Promise<{
|
|
27
|
+
instanceType?: string;
|
|
28
|
+
factory?: typeof ComponentFactory;
|
|
29
|
+
component?: IComponent;
|
|
30
|
+
}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ComponentFactory, type IComponent } from "@twin.org/core";
|
|
1
2
|
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
2
3
|
import type { ImmutableProofComponentConfig } from "../models/config/immutableProofComponentConfig";
|
|
3
4
|
import type { IEngineConfig } from "../models/IEngineConfig";
|
|
@@ -6,8 +7,10 @@ import type { IEngineConfig } from "../models/IEngineConfig";
|
|
|
6
7
|
* @param engineCore The engine core.
|
|
7
8
|
* @param context The context for the engine.
|
|
8
9
|
* @param instanceConfig The instance config.
|
|
9
|
-
* @
|
|
10
|
-
* @returns The name of the instance created.
|
|
11
|
-
* @throws GeneralError if the component type is unknown.
|
|
10
|
+
* @returns The instance created and the factory for it.
|
|
12
11
|
*/
|
|
13
|
-
export declare function initialiseImmutableProofComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: ImmutableProofComponentConfig
|
|
12
|
+
export declare function initialiseImmutableProofComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: ImmutableProofComponentConfig): Promise<{
|
|
13
|
+
instanceType?: string;
|
|
14
|
+
factory?: typeof ComponentFactory;
|
|
15
|
+
component?: IComponent;
|
|
16
|
+
}>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { ComponentFactory, type IComponent } from "@twin.org/core";
|
|
1
2
|
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
3
|
+
import { LoggingConnectorFactory } from "@twin.org/logging-models";
|
|
2
4
|
import type { LoggingComponentConfig } from "../models/config/loggingComponentConfig";
|
|
3
5
|
import type { LoggingConnectorConfig } from "../models/config/loggingConnectorConfig";
|
|
4
6
|
import type { IEngineConfig } from "../models/IEngineConfig";
|
|
@@ -7,18 +9,22 @@ import type { IEngineConfig } from "../models/IEngineConfig";
|
|
|
7
9
|
* @param engineCore The engine core.
|
|
8
10
|
* @param context The engine core context.
|
|
9
11
|
* @param instanceConfig The instance config.
|
|
10
|
-
* @
|
|
11
|
-
* @returns The name of the instance created.
|
|
12
|
-
* @throws GeneralError if the connector type is unknown.
|
|
12
|
+
* @returns The instance created and the factory for it.
|
|
13
13
|
*/
|
|
14
|
-
export declare function initialiseLoggingConnector(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: LoggingConnectorConfig
|
|
14
|
+
export declare function initialiseLoggingConnector(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: LoggingConnectorConfig): Promise<{
|
|
15
|
+
instanceType?: string;
|
|
16
|
+
factory?: typeof LoggingConnectorFactory;
|
|
17
|
+
component?: IComponent;
|
|
18
|
+
}>;
|
|
15
19
|
/**
|
|
16
20
|
* Initialise the logging component.
|
|
17
21
|
* @param engineCore The engine core.
|
|
18
22
|
* @param context The context for the engine.
|
|
19
23
|
* @param instanceConfig The instance config.
|
|
20
|
-
* @
|
|
21
|
-
* @returns The name of the instance created.
|
|
22
|
-
* @throws GeneralError if the component type is unknown.
|
|
24
|
+
* @returns The instance created and the factory for it.
|
|
23
25
|
*/
|
|
24
|
-
export declare function initialiseLoggingComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: LoggingComponentConfig
|
|
26
|
+
export declare function initialiseLoggingComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: LoggingComponentConfig): Promise<{
|
|
27
|
+
instanceType?: string;
|
|
28
|
+
factory?: typeof ComponentFactory;
|
|
29
|
+
component?: IComponent;
|
|
30
|
+
}>;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { ComponentFactory, type IComponent } from "@twin.org/core";
|
|
1
2
|
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
3
|
+
import { MessagingEmailConnectorFactory, MessagingPushNotificationsConnectorFactory, MessagingSmsConnectorFactory } from "@twin.org/messaging-models";
|
|
4
|
+
import type { MessagingAdminComponentConfig } from "../models/config/messagingAdminComponentConfig";
|
|
2
5
|
import type { MessagingComponentConfig } from "../models/config/messagingComponentConfig";
|
|
3
6
|
import type { MessagingEmailConnectorConfig } from "../models/config/messagingEmailConnectorConfig";
|
|
4
7
|
import type { MessagingPushNotificationConnectorConfig } from "../models/config/messagingPushNotificationConnectorConfig";
|
|
@@ -9,38 +12,58 @@ import type { IEngineConfig } from "../models/IEngineConfig";
|
|
|
9
12
|
* @param engineCore The engine core.
|
|
10
13
|
* @param context The context for the engine.
|
|
11
14
|
* @param instanceConfig The instance config.
|
|
12
|
-
* @
|
|
13
|
-
* @returns The name of the instance created.
|
|
14
|
-
* @throws GeneralError if the connector type is unknown.
|
|
15
|
+
* @returns The instance created and the factory for it.
|
|
15
16
|
*/
|
|
16
|
-
export declare function initialiseMessagingEmailConnector(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: MessagingEmailConnectorConfig
|
|
17
|
+
export declare function initialiseMessagingEmailConnector(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: MessagingEmailConnectorConfig): Promise<{
|
|
18
|
+
instanceType?: string;
|
|
19
|
+
factory?: typeof MessagingEmailConnectorFactory;
|
|
20
|
+
component?: IComponent;
|
|
21
|
+
}>;
|
|
17
22
|
/**
|
|
18
23
|
* Initialise a messaging sms connector.
|
|
19
24
|
* @param engineCore The engine core.
|
|
20
25
|
* @param context The context for the engine.
|
|
21
26
|
* @param instanceConfig The instance config.
|
|
22
|
-
* @
|
|
23
|
-
* @returns The name of the instance created.
|
|
24
|
-
* @throws GeneralError if the connector type is unknown.
|
|
27
|
+
* @returns The instance created and the factory for it.
|
|
25
28
|
*/
|
|
26
|
-
export declare function initialiseMessagingSmsConnector(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: MessagingSmsConnectorConfig
|
|
29
|
+
export declare function initialiseMessagingSmsConnector(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: MessagingSmsConnectorConfig): Promise<{
|
|
30
|
+
instanceType?: string;
|
|
31
|
+
factory?: typeof MessagingSmsConnectorFactory;
|
|
32
|
+
component?: IComponent;
|
|
33
|
+
}>;
|
|
27
34
|
/**
|
|
28
35
|
* Initialise a messaging push notification connector.
|
|
29
36
|
* @param engineCore The engine core.
|
|
30
37
|
* @param context The context for the engine.
|
|
31
38
|
* @param instanceConfig The instance config.
|
|
32
|
-
* @
|
|
33
|
-
* @returns The name of the instance created.
|
|
34
|
-
* @throws GeneralError if the connector type is unknown.
|
|
39
|
+
* @returns The instance created and the factory for it.
|
|
35
40
|
*/
|
|
36
|
-
export declare function initialiseMessagingPushNotificationConnector(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: MessagingPushNotificationConnectorConfig
|
|
41
|
+
export declare function initialiseMessagingPushNotificationConnector(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: MessagingPushNotificationConnectorConfig): Promise<{
|
|
42
|
+
instanceType?: string;
|
|
43
|
+
factory?: typeof MessagingPushNotificationsConnectorFactory;
|
|
44
|
+
component?: IComponent;
|
|
45
|
+
}>;
|
|
37
46
|
/**
|
|
38
47
|
* Initialise the messaging component.
|
|
39
48
|
* @param engineCore The engine core.
|
|
40
49
|
* @param context The context for the engine.
|
|
41
50
|
* @param instanceConfig The instance config.
|
|
42
|
-
* @
|
|
43
|
-
* @returns The name of the instance created.
|
|
44
|
-
* @throws GeneralError if the component type is unknown.
|
|
51
|
+
* @returns The instance created and the factory for it.
|
|
45
52
|
*/
|
|
46
|
-
export declare function initialiseMessagingComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: MessagingComponentConfig
|
|
53
|
+
export declare function initialiseMessagingComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: MessagingComponentConfig): Promise<{
|
|
54
|
+
instanceType?: string;
|
|
55
|
+
factory?: typeof ComponentFactory;
|
|
56
|
+
component?: IComponent;
|
|
57
|
+
}>;
|
|
58
|
+
/**
|
|
59
|
+
* Initialise the messaging admin component.
|
|
60
|
+
* @param engineCore The engine core.
|
|
61
|
+
* @param context The context for the engine.
|
|
62
|
+
* @param instanceConfig The instance config.
|
|
63
|
+
* @returns The instance created and the factory for it.
|
|
64
|
+
*/
|
|
65
|
+
export declare function initialiseMessagingAdminComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: MessagingAdminComponentConfig): Promise<{
|
|
66
|
+
instanceType?: string;
|
|
67
|
+
factory?: typeof ComponentFactory;
|
|
68
|
+
component?: IComponent;
|
|
69
|
+
}>;
|