@twin.org/engine-types 0.0.3-next.31 → 0.0.3-next.33

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 (35) hide show
  1. package/dist/es/components/automation.js +41 -0
  2. package/dist/es/components/automation.js.map +1 -0
  3. package/dist/es/components/automationAction.js +27 -0
  4. package/dist/es/components/automationAction.js.map +1 -0
  5. package/dist/es/index.js +6 -0
  6. package/dist/es/index.js.map +1 -1
  7. package/dist/es/models/IEngineConfig.js.map +1 -1
  8. package/dist/es/models/config/automationActionConfig.js +2 -0
  9. package/dist/es/models/config/automationActionConfig.js.map +1 -0
  10. package/dist/es/models/config/automationComponentConfig.js +2 -0
  11. package/dist/es/models/config/automationComponentConfig.js.map +1 -0
  12. package/dist/es/models/types/automationActionType.js +13 -0
  13. package/dist/es/models/types/automationActionType.js.map +1 -0
  14. package/dist/es/models/types/automationComponentType.js +17 -0
  15. package/dist/es/models/types/automationComponentType.js.map +1 -0
  16. package/dist/types/components/automation.d.ts +12 -0
  17. package/dist/types/components/automationAction.d.ts +12 -0
  18. package/dist/types/index.d.ts +6 -0
  19. package/dist/types/models/IEngineConfig.d.ts +10 -0
  20. package/dist/types/models/config/automationActionConfig.d.ts +9 -0
  21. package/dist/types/models/config/automationComponentConfig.d.ts +13 -0
  22. package/dist/types/models/types/automationActionType.d.ts +13 -0
  23. package/dist/types/models/types/automationComponentType.d.ts +17 -0
  24. package/docs/changelog.md +309 -279
  25. package/docs/reference/functions/initialiseAutomationAction.md +31 -0
  26. package/docs/reference/functions/initialiseAutomationComponent.md +31 -0
  27. package/docs/reference/index.md +8 -0
  28. package/docs/reference/interfaces/IEngineConfig.md +12 -0
  29. package/docs/reference/type-aliases/AutomationActionConfig.md +17 -0
  30. package/docs/reference/type-aliases/AutomationActionType.md +5 -0
  31. package/docs/reference/type-aliases/AutomationComponentConfig.md +5 -0
  32. package/docs/reference/type-aliases/AutomationComponentType.md +5 -0
  33. package/docs/reference/variables/AutomationActionType.md +13 -0
  34. package/docs/reference/variables/AutomationComponentType.md +19 -0
  35. package/package.json +7 -3
@@ -0,0 +1,31 @@
1
+ # Function: initialiseAutomationAction()
2
+
3
+ > **initialiseAutomationAction**(`engineCore`, `context`, `instanceConfig`): `EngineTypeInitialiserReturn`\<[`AutomationActionConfig`](../type-aliases/AutomationActionConfig.md), `Factory`\<`IAutomationAction`\>\>
4
+
5
+ Initialise the automation actions.
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
+ [`AutomationActionConfig`](../type-aliases/AutomationActionConfig.md)
24
+
25
+ The instance config.
26
+
27
+ ## Returns
28
+
29
+ `EngineTypeInitialiserReturn`\<[`AutomationActionConfig`](../type-aliases/AutomationActionConfig.md), `Factory`\<`IAutomationAction`\>\>
30
+
31
+ The instance created and the factory for it.
@@ -0,0 +1,31 @@
1
+ # Function: initialiseAutomationComponent()
2
+
3
+ > **initialiseAutomationComponent**(`engineCore`, `context`, `instanceConfig`): `EngineTypeInitialiserReturn`\<[`AutomationComponentConfig`](../type-aliases/AutomationComponentConfig.md), `Factory`\<`IComponent`\>\>
4
+
5
+ Initialise the automation 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
+ [`AutomationComponentConfig`](../type-aliases/AutomationComponentConfig.md)
24
+
25
+ The instance config.
26
+
27
+ ## Returns
28
+
29
+ `EngineTypeInitialiserReturn`\<[`AutomationComponentConfig`](../type-aliases/AutomationComponentConfig.md), `Factory`\<`IComponent`\>\>
30
+
31
+ The instance created and the factory for it.
@@ -14,6 +14,8 @@
14
14
  - [AttestationConnectorConfig](type-aliases/AttestationConnectorConfig.md)
15
15
  - [AuditableItemGraphComponentConfig](type-aliases/AuditableItemGraphComponentConfig.md)
16
16
  - [AuditableItemStreamComponentConfig](type-aliases/AuditableItemStreamComponentConfig.md)
17
+ - [AutomationActionConfig](type-aliases/AutomationActionConfig.md)
18
+ - [AutomationComponentConfig](type-aliases/AutomationComponentConfig.md)
17
19
  - [BackgroundTaskComponentConfig](type-aliases/BackgroundTaskComponentConfig.md)
18
20
  - [BlobStorageComponentConfig](type-aliases/BlobStorageComponentConfig.md)
19
21
  - [BlobStorageConnectorConfig](type-aliases/BlobStorageConnectorConfig.md)
@@ -81,6 +83,8 @@
81
83
  - [AttestationConnectorType](type-aliases/AttestationConnectorType.md)
82
84
  - [AuditableItemGraphComponentType](type-aliases/AuditableItemGraphComponentType.md)
83
85
  - [AuditableItemStreamComponentType](type-aliases/AuditableItemStreamComponentType.md)
86
+ - [AutomationActionType](type-aliases/AutomationActionType.md)
87
+ - [AutomationComponentType](type-aliases/AutomationComponentType.md)
84
88
  - [BackgroundTaskComponentType](type-aliases/BackgroundTaskComponentType.md)
85
89
  - [BlobStorageComponentType](type-aliases/BlobStorageComponentType.md)
86
90
  - [BlobStorageConnectorType](type-aliases/BlobStorageConnectorType.md)
@@ -151,6 +155,8 @@
151
155
  - [AttestationConnectorType](variables/AttestationConnectorType.md)
152
156
  - [AuditableItemGraphComponentType](variables/AuditableItemGraphComponentType.md)
153
157
  - [AuditableItemStreamComponentType](variables/AuditableItemStreamComponentType.md)
158
+ - [AutomationActionType](variables/AutomationActionType.md)
159
+ - [AutomationComponentType](variables/AutomationComponentType.md)
154
160
  - [BackgroundTaskComponentType](variables/BackgroundTaskComponentType.md)
155
161
  - [BlobStorageComponentType](variables/BlobStorageComponentType.md)
156
162
  - [BlobStorageConnectorType](variables/BlobStorageConnectorType.md)
@@ -221,6 +227,8 @@
221
227
  - [initialiseAttestationComponent](functions/initialiseAttestationComponent.md)
222
228
  - [initialiseAuditableItemGraphComponent](functions/initialiseAuditableItemGraphComponent.md)
223
229
  - [initialiseAuditableItemStreamComponent](functions/initialiseAuditableItemStreamComponent.md)
230
+ - [initialiseAutomationComponent](functions/initialiseAutomationComponent.md)
231
+ - [initialiseAutomationAction](functions/initialiseAutomationAction.md)
224
232
  - [initialiseBackgroundTaskComponent](functions/initialiseBackgroundTaskComponent.md)
225
233
  - [initialiseBlobStorageConnector](functions/initialiseBlobStorageConnector.md)
226
234
  - [initialiseBlobStorageComponent](functions/initialiseBlobStorageComponent.md)
@@ -156,6 +156,18 @@ Event bus connector options which can be overridden by individual components by
156
156
 
157
157
  Event bus component options which can be overridden by individual components by specifying types other than default.
158
158
 
159
+ #### automationComponent?
160
+
161
+ > `optional` **automationComponent?**: `IEngineCoreTypeConfig`\<[`AutomationComponentConfig`](../type-aliases/AutomationComponentConfig.md)\>[]
162
+
163
+ Automation component options which can be overridden by individual components by specifying types other than default.
164
+
165
+ #### automationAction?
166
+
167
+ > `optional` **automationAction?**: `IEngineCoreTypeConfig`\<[`AutomationActionConfig`](../type-aliases/AutomationActionConfig.md)\>[]
168
+
169
+ Automation action options which can be overridden by individual components by specifying types other than default.
170
+
159
171
  #### vaultConnector?
160
172
 
161
173
  > `optional` **vaultConnector?**: `IEngineCoreTypeConfig`\<[`VaultConnectorConfig`](../type-aliases/VaultConnectorConfig.md)\>[]
@@ -0,0 +1,17 @@
1
+ # Type Alias: AutomationActionConfig
2
+
3
+ > **AutomationActionConfig** = `object`
4
+
5
+ Automation action configuration.
6
+
7
+ ## Properties
8
+
9
+ ### type {#type}
10
+
11
+ > **type**: *typeof* [`Fetch`](../variables/AutomationActionType.md#fetch)
12
+
13
+ ***
14
+
15
+ ### options {#options}
16
+
17
+ > **options**: `IFetchActionConstructorOptions`
@@ -0,0 +1,5 @@
1
+ # Type Alias: AutomationActionType
2
+
3
+ > **AutomationActionType** = *typeof* [`AutomationActionType`](../variables/AutomationActionType.md)\[keyof *typeof* [`AutomationActionType`](../variables/AutomationActionType.md)\]
4
+
5
+ Automation action types.
@@ -0,0 +1,5 @@
1
+ # Type Alias: AutomationComponentConfig
2
+
3
+ > **AutomationComponentConfig** = \{ `type`: *typeof* [`Service`](../variables/AutomationComponentType.md#service); `options?`: `IAutomationServiceConstructorOptions`; \} \| \{ `type`: *typeof* [`RestClient`](../variables/AutomationComponentType.md#restclient); `options`: `IBaseRestClientConfig`; \}
4
+
5
+ Automation component configuration.
@@ -0,0 +1,5 @@
1
+ # Type Alias: AutomationComponentType
2
+
3
+ > **AutomationComponentType** = *typeof* [`AutomationComponentType`](../variables/AutomationComponentType.md)\[keyof *typeof* [`AutomationComponentType`](../variables/AutomationComponentType.md)\]
4
+
5
+ Automation component types.
@@ -0,0 +1,13 @@
1
+ # Variable: AutomationActionType
2
+
3
+ > `const` **AutomationActionType**: `object`
4
+
5
+ Automation action types.
6
+
7
+ ## Type Declaration
8
+
9
+ ### Fetch {#fetch}
10
+
11
+ > `readonly` **Fetch**: `"fetch"` = `"fetch"`
12
+
13
+ Fetch action.
@@ -0,0 +1,19 @@
1
+ # Variable: AutomationComponentType
2
+
3
+ > `const` **AutomationComponentType**: `object`
4
+
5
+ Automation 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/engine-types",
3
- "version": "0.0.3-next.31",
3
+ "version": "0.0.3-next.33",
4
4
  "description": "Component and connector type definitions with configuration helpers for engine composition.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,6 +26,10 @@
26
26
  "@twin.org/auditable-item-stream-models": "next",
27
27
  "@twin.org/auditable-item-stream-rest-client": "next",
28
28
  "@twin.org/auditable-item-stream-service": "next",
29
+ "@twin.org/automation-actions": "next",
30
+ "@twin.org/automation-models": "next",
31
+ "@twin.org/automation-rest-client": "next",
32
+ "@twin.org/automation-service": "next",
29
33
  "@twin.org/background-task-models": "next",
30
34
  "@twin.org/background-task-scheduler": "next",
31
35
  "@twin.org/background-task-service": "next",
@@ -56,8 +60,8 @@
56
60
  "@twin.org/document-management-models": "next",
57
61
  "@twin.org/document-management-rest-client": "next",
58
62
  "@twin.org/document-management-service": "next",
59
- "@twin.org/engine-core": "0.0.3-next.31",
60
- "@twin.org/engine-models": "0.0.3-next.31",
63
+ "@twin.org/engine-core": "0.0.3-next.33",
64
+ "@twin.org/engine-models": "0.0.3-next.33",
61
65
  "@twin.org/entity": "next",
62
66
  "@twin.org/entity-storage-connector-cosmosdb": "next",
63
67
  "@twin.org/entity-storage-connector-dynamodb": "next",