@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.
- package/dist/es/components/automation.js +41 -0
- package/dist/es/components/automation.js.map +1 -0
- package/dist/es/components/automationAction.js +27 -0
- package/dist/es/components/automationAction.js.map +1 -0
- package/dist/es/index.js +6 -0
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/IEngineConfig.js.map +1 -1
- package/dist/es/models/config/automationActionConfig.js +2 -0
- package/dist/es/models/config/automationActionConfig.js.map +1 -0
- package/dist/es/models/config/automationComponentConfig.js +2 -0
- package/dist/es/models/config/automationComponentConfig.js.map +1 -0
- package/dist/es/models/types/automationActionType.js +13 -0
- package/dist/es/models/types/automationActionType.js.map +1 -0
- package/dist/es/models/types/automationComponentType.js +17 -0
- package/dist/es/models/types/automationComponentType.js.map +1 -0
- package/dist/types/components/automation.d.ts +12 -0
- package/dist/types/components/automationAction.d.ts +12 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/models/IEngineConfig.d.ts +10 -0
- package/dist/types/models/config/automationActionConfig.d.ts +9 -0
- package/dist/types/models/config/automationComponentConfig.d.ts +13 -0
- package/dist/types/models/types/automationActionType.d.ts +13 -0
- package/dist/types/models/types/automationComponentType.d.ts +17 -0
- package/docs/changelog.md +309 -279
- package/docs/reference/functions/initialiseAutomationAction.md +31 -0
- package/docs/reference/functions/initialiseAutomationComponent.md +31 -0
- package/docs/reference/index.md +8 -0
- package/docs/reference/interfaces/IEngineConfig.md +12 -0
- package/docs/reference/type-aliases/AutomationActionConfig.md +17 -0
- package/docs/reference/type-aliases/AutomationActionType.md +5 -0
- package/docs/reference/type-aliases/AutomationComponentConfig.md +5 -0
- package/docs/reference/type-aliases/AutomationComponentType.md +5 -0
- package/docs/reference/variables/AutomationActionType.md +13 -0
- package/docs/reference/variables/AutomationComponentType.md +19 -0
- 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.
|
package/docs/reference/index.md
CHANGED
|
@@ -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: 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,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.
|
|
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.
|
|
60
|
-
"@twin.org/engine-models": "0.0.3-next.
|
|
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",
|