@twin.org/engine-types 0.0.3-next.32 → 0.0.3-next.34

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.
Files changed (37) hide show
  1. package/dist/es/components/health.js +32 -0
  2. package/dist/es/components/health.js.map +1 -0
  3. package/dist/es/components/rightsManagementPnp.js +2 -1
  4. package/dist/es/components/rightsManagementPnp.js.map +1 -1
  5. package/dist/es/components/urlTransformer.js +29 -0
  6. package/dist/es/components/urlTransformer.js.map +1 -0
  7. package/dist/es/index.js +6 -0
  8. package/dist/es/index.js.map +1 -1
  9. package/dist/es/models/IEngineConfig.js.map +1 -1
  10. package/dist/es/models/config/healthComponentConfig.js +2 -0
  11. package/dist/es/models/config/healthComponentConfig.js.map +1 -0
  12. package/dist/es/models/config/urlTransformerComponentConfig.js +2 -0
  13. package/dist/es/models/config/urlTransformerComponentConfig.js.map +1 -0
  14. package/dist/es/models/types/healthComponentType.js +17 -0
  15. package/dist/es/models/types/healthComponentType.js.map +1 -0
  16. package/dist/es/models/types/urlTransformerComponentType.js +13 -0
  17. package/dist/es/models/types/urlTransformerComponentType.js.map +1 -0
  18. package/dist/types/components/health.d.ts +12 -0
  19. package/dist/types/components/urlTransformer.d.ts +12 -0
  20. package/dist/types/index.d.ts +6 -0
  21. package/dist/types/models/IEngineConfig.d.ts +10 -0
  22. package/dist/types/models/config/healthComponentConfig.d.ts +13 -0
  23. package/dist/types/models/config/urlTransformerComponentConfig.d.ts +9 -0
  24. package/dist/types/models/types/healthComponentType.d.ts +17 -0
  25. package/dist/types/models/types/urlTransformerComponentType.d.ts +13 -0
  26. package/docs/changelog.md +311 -281
  27. package/docs/reference/functions/initialiseHealthComponent.md +31 -0
  28. package/docs/reference/functions/initialiseUrlTransformerComponent.md +31 -0
  29. package/docs/reference/index.md +8 -0
  30. package/docs/reference/interfaces/IEngineConfig.md +12 -0
  31. package/docs/reference/type-aliases/HealthComponentConfig.md +5 -0
  32. package/docs/reference/type-aliases/HealthComponentType.md +5 -0
  33. package/docs/reference/type-aliases/UrlTransformerComponentConfig.md +17 -0
  34. package/docs/reference/type-aliases/UrlTransformerComponentType.md +5 -0
  35. package/docs/reference/variables/HealthComponentType.md +19 -0
  36. package/docs/reference/variables/UrlTransformerComponentType.md +13 -0
  37. package/package.json +5 -3
@@ -0,0 +1,31 @@
1
+ # Function: initialiseHealthComponent()
2
+
3
+ > **initialiseHealthComponent**(`engineCore`, `context`, `instanceConfig`): `EngineTypeInitialiserReturn`\<[`HealthComponentConfig`](../type-aliases/HealthComponentConfig.md), `Factory`\<`IComponent`\>\>
4
+
5
+ Initialise the health 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
+ [`HealthComponentConfig`](../type-aliases/HealthComponentConfig.md)
24
+
25
+ The instance config.
26
+
27
+ ## Returns
28
+
29
+ `EngineTypeInitialiserReturn`\<[`HealthComponentConfig`](../type-aliases/HealthComponentConfig.md), `Factory`\<`IComponent`\>\>
30
+
31
+ The instance created and the factory for it.
@@ -0,0 +1,31 @@
1
+ # Function: initialiseUrlTransformerComponent()
2
+
3
+ > **initialiseUrlTransformerComponent**(`engineCore`, `context`, `instanceConfig`): `EngineTypeInitialiserReturn`\<[`UrlTransformerComponentConfig`](../type-aliases/UrlTransformerComponentConfig.md), `Factory`\<`IComponent`\>\>
4
+
5
+ Initialise the URL transformer 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
+ [`UrlTransformerComponentConfig`](../type-aliases/UrlTransformerComponentConfig.md)
24
+
25
+ The instance config.
26
+
27
+ ## Returns
28
+
29
+ `EngineTypeInitialiserReturn`\<[`UrlTransformerComponentConfig`](../type-aliases/UrlTransformerComponentConfig.md), `Factory`\<`IComponent`\>\>
30
+
31
+ The instance created and the factory for it.
@@ -34,6 +34,7 @@
34
34
  - [FaucetConnectorConfig](type-aliases/FaucetConnectorConfig.md)
35
35
  - [FederatedCatalogueComponentConfig](type-aliases/FederatedCatalogueComponentConfig.md)
36
36
  - [FederatedCatalogueFilterComponentConfig](type-aliases/FederatedCatalogueFilterComponentConfig.md)
37
+ - [HealthComponentConfig](type-aliases/HealthComponentConfig.md)
37
38
  - [IdentityComponentConfig](type-aliases/IdentityComponentConfig.md)
38
39
  - [IdentityConnectorConfig](type-aliases/IdentityConnectorConfig.md)
39
40
  - [IdentityProfileComponentConfig](type-aliases/IdentityProfileComponentConfig.md)
@@ -75,6 +76,7 @@
75
76
  - [TrustComponentConfig](type-aliases/TrustComponentConfig.md)
76
77
  - [TrustGeneratorComponentConfig](type-aliases/TrustGeneratorComponentConfig.md)
77
78
  - [TrustVerifierComponentConfig](type-aliases/TrustVerifierComponentConfig.md)
79
+ - [UrlTransformerComponentConfig](type-aliases/UrlTransformerComponentConfig.md)
78
80
  - [VaultConnectorConfig](type-aliases/VaultConnectorConfig.md)
79
81
  - [VerifiableStorageComponentConfig](type-aliases/VerifiableStorageComponentConfig.md)
80
82
  - [VerifiableStorageConnectorConfig](type-aliases/VerifiableStorageConnectorConfig.md)
@@ -103,6 +105,7 @@
103
105
  - [FaucetConnectorType](type-aliases/FaucetConnectorType.md)
104
106
  - [FederatedCatalogueComponentType](type-aliases/FederatedCatalogueComponentType.md)
105
107
  - [FederatedCatalogueFilterComponentType](type-aliases/FederatedCatalogueFilterComponentType.md)
108
+ - [HealthComponentType](type-aliases/HealthComponentType.md)
106
109
  - [IdentityComponentType](type-aliases/IdentityComponentType.md)
107
110
  - [IdentityConnectorType](type-aliases/IdentityConnectorType.md)
108
111
  - [IdentityProfileComponentType](type-aliases/IdentityProfileComponentType.md)
@@ -144,6 +147,7 @@
144
147
  - [TrustComponentType](type-aliases/TrustComponentType.md)
145
148
  - [TrustGeneratorComponentType](type-aliases/TrustGeneratorComponentType.md)
146
149
  - [TrustVerifierComponentType](type-aliases/TrustVerifierComponentType.md)
150
+ - [UrlTransformerComponentType](type-aliases/UrlTransformerComponentType.md)
147
151
  - [VaultConnectorType](type-aliases/VaultConnectorType.md)
148
152
  - [IVerifiableStorageComponentType](type-aliases/IVerifiableStorageComponentType.md)
149
153
  - [VerifiableStorageConnectorType](type-aliases/VerifiableStorageConnectorType.md)
@@ -175,6 +179,7 @@
175
179
  - [FaucetConnectorType](variables/FaucetConnectorType.md)
176
180
  - [FederatedCatalogueComponentType](variables/FederatedCatalogueComponentType.md)
177
181
  - [FederatedCatalogueFilterComponentType](variables/FederatedCatalogueFilterComponentType.md)
182
+ - [HealthComponentType](variables/HealthComponentType.md)
178
183
  - [IdentityComponentType](variables/IdentityComponentType.md)
179
184
  - [IdentityConnectorType](variables/IdentityConnectorType.md)
180
185
  - [IdentityProfileComponentType](variables/IdentityProfileComponentType.md)
@@ -216,6 +221,7 @@
216
221
  - [TrustComponentType](variables/TrustComponentType.md)
217
222
  - [TrustGeneratorComponentType](variables/TrustGeneratorComponentType.md)
218
223
  - [TrustVerifierComponentType](variables/TrustVerifierComponentType.md)
224
+ - [UrlTransformerComponentType](variables/UrlTransformerComponentType.md)
219
225
  - [VaultConnectorType](variables/VaultConnectorType.md)
220
226
  - [VerifiableStorageComponentType](variables/VerifiableStorageComponentType.md)
221
227
  - [VerifiableStorageConnectorType](variables/VerifiableStorageConnectorType.md)
@@ -246,6 +252,7 @@
246
252
  - [initialiseFaucetConnector](functions/initialiseFaucetConnector.md)
247
253
  - [initialiseFederatedCatalogueComponent](functions/initialiseFederatedCatalogueComponent.md)
248
254
  - [initialiseFederatedCatalogueFilterComponent](functions/initialiseFederatedCatalogueFilterComponent.md)
255
+ - [initialiseHealthComponent](functions/initialiseHealthComponent.md)
249
256
  - [initialiseIdentityConnector](functions/initialiseIdentityConnector.md)
250
257
  - [initialiseIdentityComponent](functions/initialiseIdentityComponent.md)
251
258
  - [initialiseIdentityProfileConnector](functions/initialiseIdentityProfileConnector.md)
@@ -287,6 +294,7 @@
287
294
  - [initialiseTrustComponent](functions/initialiseTrustComponent.md)
288
295
  - [initialiseTrustGeneratorComponent](functions/initialiseTrustGeneratorComponent.md)
289
296
  - [initialiseTrustVerifierComponent](functions/initialiseTrustVerifierComponent.md)
297
+ - [initialiseUrlTransformerComponent](functions/initialiseUrlTransformerComponent.md)
290
298
  - [initialiseVaultConnector](functions/initialiseVaultConnector.md)
291
299
  - [initialiseVerifiableStorageConnector](functions/initialiseVerifiableStorageConnector.md)
292
300
  - [initialiseVerifiableStorageComponent](functions/initialiseVerifiableStorageComponent.md)
@@ -168,6 +168,18 @@ Automation component options which can be overridden by individual components by
168
168
 
169
169
  Automation action options which can be overridden by individual components by specifying types other than default.
170
170
 
171
+ #### healthComponent?
172
+
173
+ > `optional` **healthComponent?**: `IEngineCoreTypeConfig`\<[`HealthComponentConfig`](../type-aliases/HealthComponentConfig.md)\>[]
174
+
175
+ Health component options which can be overridden by individual components by specifying types other than default.
176
+
177
+ #### urlTransformerComponent?
178
+
179
+ > `optional` **urlTransformerComponent?**: `IEngineCoreTypeConfig`\<[`UrlTransformerComponentConfig`](../type-aliases/UrlTransformerComponentConfig.md)\>[]
180
+
181
+ URL transformer component options which can be overridden by individual components by specifying types other than default.
182
+
171
183
  #### vaultConnector?
172
184
 
173
185
  > `optional` **vaultConnector?**: `IEngineCoreTypeConfig`\<[`VaultConnectorConfig`](../type-aliases/VaultConnectorConfig.md)\>[]
@@ -0,0 +1,5 @@
1
+ # Type Alias: HealthComponentConfig
2
+
3
+ > **HealthComponentConfig** = \{ `type`: *typeof* [`Service`](../variables/HealthComponentType.md#service); `options?`: `IHealthServiceConstructorOptions`; \} \| \{ `type`: *typeof* [`RestClient`](../variables/HealthComponentType.md#restclient); `options`: `IBaseRestClientConfig`; \}
4
+
5
+ Health component config types.
@@ -0,0 +1,5 @@
1
+ # Type Alias: HealthComponentType
2
+
3
+ > **HealthComponentType** = *typeof* [`HealthComponentType`](../variables/HealthComponentType.md)\[keyof *typeof* [`HealthComponentType`](../variables/HealthComponentType.md)\]
4
+
5
+ Health component types.
@@ -0,0 +1,17 @@
1
+ # Type Alias: UrlTransformerComponentConfig
2
+
3
+ > **UrlTransformerComponentConfig** = `object`
4
+
5
+ URL transformer component config types.
6
+
7
+ ## Properties
8
+
9
+ ### type {#type}
10
+
11
+ > **type**: *typeof* [`Service`](../variables/UrlTransformerComponentType.md#service)
12
+
13
+ ***
14
+
15
+ ### options? {#options}
16
+
17
+ > `optional` **options?**: `IUrlTransformerServiceConstructorOptions`
@@ -0,0 +1,5 @@
1
+ # Type Alias: UrlTransformerComponentType
2
+
3
+ > **UrlTransformerComponentType** = *typeof* [`UrlTransformerComponentType`](../variables/UrlTransformerComponentType.md)\[keyof *typeof* [`UrlTransformerComponentType`](../variables/UrlTransformerComponentType.md)\]
4
+
5
+ URL transformer component types.
@@ -0,0 +1,19 @@
1
+ # Variable: HealthComponentType
2
+
3
+ > `const` **HealthComponentType**: `object`
4
+
5
+ Health component types.
6
+
7
+ ## Type Declaration
8
+
9
+ ### Service {#service}
10
+
11
+ > `readonly` **Service**: `"service"` = `"service"`
12
+
13
+ Service.
14
+
15
+ ### RestClient {#restclient}
16
+
17
+ > `readonly` **RestClient**: `"rest-client"` = `"rest-client"`
18
+
19
+ REST client.
@@ -0,0 +1,13 @@
1
+ # Variable: UrlTransformerComponentType
2
+
3
+ > `const` **UrlTransformerComponentType**: `object`
4
+
5
+ URL transformer component types.
6
+
7
+ ## Type Declaration
8
+
9
+ ### Service {#service}
10
+
11
+ > `readonly` **Service**: `"service"` = `"service"`
12
+
13
+ Service.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/engine-types",
3
- "version": "0.0.3-next.32",
3
+ "version": "0.0.3-next.34",
4
4
  "description": "Component and connector type definitions with configuration helpers for engine composition.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,6 +15,8 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@twin.org/api-models": "next",
18
+ "@twin.org/api-rest-client": "next",
19
+ "@twin.org/api-service": "next",
18
20
  "@twin.org/api-tenant-processor": "next",
19
21
  "@twin.org/attestation-connector-nft": "next",
20
22
  "@twin.org/attestation-models": "next",
@@ -60,8 +62,8 @@
60
62
  "@twin.org/document-management-models": "next",
61
63
  "@twin.org/document-management-rest-client": "next",
62
64
  "@twin.org/document-management-service": "next",
63
- "@twin.org/engine-core": "0.0.3-next.32",
64
- "@twin.org/engine-models": "0.0.3-next.32",
65
+ "@twin.org/engine-core": "0.0.3-next.34",
66
+ "@twin.org/engine-models": "0.0.3-next.34",
65
67
  "@twin.org/entity": "next",
66
68
  "@twin.org/entity-storage-connector-cosmosdb": "next",
67
69
  "@twin.org/entity-storage-connector-dynamodb": "next",