@twin.org/engine-core 0.0.2-next.9 → 0.0.3-next.2
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/{esm/index.mjs → es/engineCore.js} +205 -266
- package/dist/es/engineCore.js.map +1 -0
- package/dist/es/index.js +8 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/models/IEngineCoreOptions.js +2 -0
- package/dist/es/models/IEngineCoreOptions.js.map +1 -0
- package/dist/es/storage/fileStateStorage.js +92 -0
- package/dist/es/storage/fileStateStorage.js.map +1 -0
- package/dist/es/storage/memoryStateStorage.js +55 -0
- package/dist/es/storage/memoryStateStorage.js.map +1 -0
- package/dist/es/utils/engineModuleHelper.js +46 -0
- package/dist/es/utils/engineModuleHelper.js.map +1 -0
- package/dist/types/engineCore.d.ts +51 -7
- package/dist/types/index.d.ts +5 -4
- package/dist/types/models/IEngineCoreOptions.d.ts +0 -5
- package/dist/types/storage/fileStateStorage.d.ts +1 -1
- package/dist/types/storage/memoryStateStorage.d.ts +1 -1
- package/dist/types/utils/engineModuleHelper.d.ts +17 -0
- package/docs/changelog.md +290 -0
- package/docs/reference/classes/EngineCore.md +156 -14
- package/docs/reference/classes/EngineModuleHelper.md +55 -0
- package/docs/reference/classes/FileStateStorage.md +1 -1
- package/docs/reference/classes/MemoryStateStorage.md +1 -1
- package/docs/reference/index.md +1 -0
- package/docs/reference/interfaces/IEngineCoreOptions.md +0 -14
- package/locales/en.json +10 -10
- package/package.json +23 -9
- package/dist/cjs/index.cjs +0 -649
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,295 @@
|
|
|
1
1
|
# @twin.org/engine-core - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.2](https://github.com/twinfoundation/engine/compare/engine-core-v0.0.3-next.1...engine-core-v0.0.3-next.2) (2025-11-13)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* close already started components on startup error ([a55a117](https://github.com/twinfoundation/engine/commit/a55a117a508998288c8ae804e732fc6085cb22fa))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/engine-models bumped from 0.0.3-next.1 to 0.0.3-next.2
|
|
16
|
+
|
|
17
|
+
## [0.0.3-next.1](https://github.com/twinfoundation/engine/compare/engine-core-v0.0.3-next.0...engine-core-v0.0.3-next.1) (2025-11-13)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* add auth admin component ([201cd06](https://github.com/twinfoundation/engine/commit/201cd061be83afccb5a6b06856ffe7cf8db7d6b3))
|
|
23
|
+
* add context id features ([#51](https://github.com/twinfoundation/engine/issues/51)) ([eaef180](https://github.com/twinfoundation/engine/commit/eaef1807397a907bc7655ef1545a151a710ca2f1))
|
|
24
|
+
* add default logging component for web server ([8ad94f0](https://github.com/twinfoundation/engine/commit/8ad94f0d2d9a5241a8854b1e59fb9a55ce310142))
|
|
25
|
+
* add isPrimary and isClone methods ([a7c63e9](https://github.com/twinfoundation/engine/commit/a7c63e97f54c95b104cc81e66d3fa42c6607bdc1))
|
|
26
|
+
* add mimeTypeProcessors and disableNodeIdentity ([bb7e81e](https://github.com/twinfoundation/engine/commit/bb7e81e2036fe042068a5645ec59b22e20d33aad))
|
|
27
|
+
* add rights management negotiation ([84ef46b](https://github.com/twinfoundation/engine/commit/84ef46bff110611a19512793425c8c873ee2a590))
|
|
28
|
+
* add synchronised storage support ([5142e34](https://github.com/twinfoundation/engine/commit/5142e3488f09195cf9f48a9c6c6d1014231a4c2c))
|
|
29
|
+
* add validate-locales ([b92ea09](https://github.com/twinfoundation/engine/commit/b92ea09dbcfe35225271a51f24d231f59e2d363e))
|
|
30
|
+
* eslint migration to flat config ([6b978da](https://github.com/twinfoundation/engine/commit/6b978daf777a615d7758b63c3df57d5a376f6dfb))
|
|
31
|
+
* maintain isDefault flag for registered instances ([2ac5bee](https://github.com/twinfoundation/engine/commit/2ac5bee094bef42b396cc82b0d18bb6aebe27352))
|
|
32
|
+
* override type initialisers with new registrations ([5b4ff56](https://github.com/twinfoundation/engine/commit/5b4ff561d06b6513c870a72bb20ba23c0653cfe8))
|
|
33
|
+
* remove bootstrapped components, component should manage their own state ([5c7e9e4](https://github.com/twinfoundation/engine/commit/5c7e9e419ef26933e49c9c5a21a20a8961244e7f))
|
|
34
|
+
* remove unused component states ([d56d648](https://github.com/twinfoundation/engine/commit/d56d6486119ea8b8501a33f9e3a3101a08b826ed))
|
|
35
|
+
* simplify config building ([732c871](https://github.com/twinfoundation/engine/commit/732c871c5aca236759168f4bc15aeffd98a330a8))
|
|
36
|
+
* standardised engine logging naming ([0dbf857](https://github.com/twinfoundation/engine/commit/0dbf857587641f86ddf010143519d0e8333489ff))
|
|
37
|
+
* update dependencies ([97c9f64](https://github.com/twinfoundation/engine/commit/97c9f64b6ef096963bcc5de338a2a9e99bdc1a11))
|
|
38
|
+
* update framework core ([acc0f8d](https://github.com/twinfoundation/engine/commit/acc0f8d455a4b8ec47f1da643139fa0f07775fa6))
|
|
39
|
+
* upgrade framework components ([efd52e8](https://github.com/twinfoundation/engine/commit/efd52e80564fff29c3897bfa09b6305b3a322812))
|
|
40
|
+
* use peer dependencies ([69dd744](https://github.com/twinfoundation/engine/commit/69dd7449010b8e6f5f35e7fad201ad4c1cab400c))
|
|
41
|
+
* use shared store mechanism ([#2](https://github.com/twinfoundation/engine/issues/2)) ([9eed8d7](https://github.com/twinfoundation/engine/commit/9eed8d7766388479b42f03e2542fe761f2156408))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Bug Fixes
|
|
45
|
+
|
|
46
|
+
* use correct instance type name ([6278486](https://github.com/twinfoundation/engine/commit/6278486d8f0f2d601d3cf521a647898cd7cc1f31))
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### Dependencies
|
|
50
|
+
|
|
51
|
+
* The following workspace dependencies were updated
|
|
52
|
+
* dependencies
|
|
53
|
+
* @twin.org/engine-models bumped from 0.0.3-next.0 to 0.0.3-next.1
|
|
54
|
+
|
|
55
|
+
## [0.0.2-next.26](https://github.com/twinfoundation/engine/compare/engine-core-v0.0.2-next.25...engine-core-v0.0.2-next.26) (2025-10-09)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### Bug Fixes
|
|
59
|
+
|
|
60
|
+
* use correct instance type name ([6278486](https://github.com/twinfoundation/engine/commit/6278486d8f0f2d601d3cf521a647898cd7cc1f31))
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
### Dependencies
|
|
64
|
+
|
|
65
|
+
* The following workspace dependencies were updated
|
|
66
|
+
* dependencies
|
|
67
|
+
* @twin.org/engine-models bumped from 0.0.2-next.25 to 0.0.2-next.26
|
|
68
|
+
|
|
69
|
+
## [0.0.2-next.25](https://github.com/twinfoundation/engine/compare/engine-core-v0.0.2-next.24...engine-core-v0.0.2-next.25) (2025-10-09)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
### Features
|
|
73
|
+
|
|
74
|
+
* add validate-locales ([b92ea09](https://github.com/twinfoundation/engine/commit/b92ea09dbcfe35225271a51f24d231f59e2d363e))
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
### Dependencies
|
|
78
|
+
|
|
79
|
+
* The following workspace dependencies were updated
|
|
80
|
+
* dependencies
|
|
81
|
+
* @twin.org/engine-models bumped from 0.0.2-next.24 to 0.0.2-next.25
|
|
82
|
+
|
|
83
|
+
## [0.0.2-next.24](https://github.com/twinfoundation/engine/compare/engine-core-v0.0.2-next.23...engine-core-v0.0.2-next.24) (2025-10-08)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
### Features
|
|
87
|
+
|
|
88
|
+
* maintain isDefault flag for registered instances ([2ac5bee](https://github.com/twinfoundation/engine/commit/2ac5bee094bef42b396cc82b0d18bb6aebe27352))
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
### Dependencies
|
|
92
|
+
|
|
93
|
+
* The following workspace dependencies were updated
|
|
94
|
+
* dependencies
|
|
95
|
+
* @twin.org/engine-models bumped from 0.0.2-next.23 to 0.0.2-next.24
|
|
96
|
+
|
|
97
|
+
## [0.0.2-next.23](https://github.com/twinfoundation/engine/compare/engine-core-v0.0.2-next.22...engine-core-v0.0.2-next.23) (2025-10-07)
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
### Features
|
|
101
|
+
|
|
102
|
+
* override type initialisers with new registrations ([5b4ff56](https://github.com/twinfoundation/engine/commit/5b4ff561d06b6513c870a72bb20ba23c0653cfe8))
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
### Dependencies
|
|
106
|
+
|
|
107
|
+
* The following workspace dependencies were updated
|
|
108
|
+
* dependencies
|
|
109
|
+
* @twin.org/engine-models bumped from 0.0.2-next.22 to 0.0.2-next.23
|
|
110
|
+
|
|
111
|
+
## [0.0.2-next.22](https://github.com/twinfoundation/engine/compare/engine-core-v0.0.2-next.21...engine-core-v0.0.2-next.22) (2025-10-07)
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
### Miscellaneous Chores
|
|
115
|
+
|
|
116
|
+
* **engine-core:** Synchronize repo versions
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
### Dependencies
|
|
120
|
+
|
|
121
|
+
* The following workspace dependencies were updated
|
|
122
|
+
* dependencies
|
|
123
|
+
* @twin.org/engine-models bumped from 0.0.2-next.21 to 0.0.2-next.22
|
|
124
|
+
|
|
125
|
+
## [0.0.2-next.21](https://github.com/twinfoundation/engine/compare/engine-core-v0.0.2-next.20...engine-core-v0.0.2-next.21) (2025-10-07)
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
### Features
|
|
129
|
+
|
|
130
|
+
* use peer dependencies ([69dd744](https://github.com/twinfoundation/engine/commit/69dd7449010b8e6f5f35e7fad201ad4c1cab400c))
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
### Dependencies
|
|
134
|
+
|
|
135
|
+
* The following workspace dependencies were updated
|
|
136
|
+
* dependencies
|
|
137
|
+
* @twin.org/engine-models bumped from 0.0.2-next.20 to 0.0.2-next.21
|
|
138
|
+
|
|
139
|
+
## [0.0.2-next.20](https://github.com/twinfoundation/engine/compare/engine-core-v0.0.2-next.19...engine-core-v0.0.2-next.20) (2025-10-06)
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
### Features
|
|
143
|
+
|
|
144
|
+
* standardised engine logging naming ([0dbf857](https://github.com/twinfoundation/engine/commit/0dbf857587641f86ddf010143519d0e8333489ff))
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
### Dependencies
|
|
148
|
+
|
|
149
|
+
* The following workspace dependencies were updated
|
|
150
|
+
* dependencies
|
|
151
|
+
* @twin.org/engine-models bumped from 0.0.2-next.19 to 0.0.2-next.20
|
|
152
|
+
|
|
153
|
+
## [0.0.2-next.19](https://github.com/twinfoundation/engine/compare/engine-core-v0.0.2-next.18...engine-core-v0.0.2-next.19) (2025-10-02)
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
### Features
|
|
157
|
+
|
|
158
|
+
* simplify config building ([732c871](https://github.com/twinfoundation/engine/commit/732c871c5aca236759168f4bc15aeffd98a330a8))
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
### Dependencies
|
|
162
|
+
|
|
163
|
+
* The following workspace dependencies were updated
|
|
164
|
+
* dependencies
|
|
165
|
+
* @twin.org/engine-models bumped from 0.0.2-next.18 to 0.0.2-next.19
|
|
166
|
+
|
|
167
|
+
## [0.0.2-next.18](https://github.com/twinfoundation/engine/compare/engine-core-v0.0.2-next.17...engine-core-v0.0.2-next.18) (2025-09-29)
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
### Features
|
|
171
|
+
|
|
172
|
+
* upgrade framework components ([efd52e8](https://github.com/twinfoundation/engine/commit/efd52e80564fff29c3897bfa09b6305b3a322812))
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
### Dependencies
|
|
176
|
+
|
|
177
|
+
* The following workspace dependencies were updated
|
|
178
|
+
* dependencies
|
|
179
|
+
* @twin.org/engine-models bumped from 0.0.2-next.17 to 0.0.2-next.18
|
|
180
|
+
|
|
181
|
+
## [0.0.2-next.17](https://github.com/twinfoundation/engine/compare/engine-core-v0.0.2-next.16...engine-core-v0.0.2-next.17) (2025-09-26)
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
### Miscellaneous Chores
|
|
185
|
+
|
|
186
|
+
* **engine-core:** Synchronize repo versions
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
### Dependencies
|
|
190
|
+
|
|
191
|
+
* The following workspace dependencies were updated
|
|
192
|
+
* dependencies
|
|
193
|
+
* @twin.org/engine-models bumped from 0.0.2-next.16 to 0.0.2-next.17
|
|
194
|
+
|
|
195
|
+
## [0.0.2-next.16](https://github.com/twinfoundation/engine/compare/engine-core-v0.0.2-next.15...engine-core-v0.0.2-next.16) (2025-09-25)
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
### Miscellaneous Chores
|
|
199
|
+
|
|
200
|
+
* **engine-core:** Synchronize repo versions
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
### Dependencies
|
|
204
|
+
|
|
205
|
+
* The following workspace dependencies were updated
|
|
206
|
+
* dependencies
|
|
207
|
+
* @twin.org/engine-models bumped from 0.0.2-next.15 to 0.0.2-next.16
|
|
208
|
+
|
|
209
|
+
## [0.0.2-next.15](https://github.com/twinfoundation/engine/compare/engine-core-v0.0.2-next.14...engine-core-v0.0.2-next.15) (2025-09-24)
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
### Miscellaneous Chores
|
|
213
|
+
|
|
214
|
+
* **engine-core:** Synchronize repo versions
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
### Dependencies
|
|
218
|
+
|
|
219
|
+
* The following workspace dependencies were updated
|
|
220
|
+
* dependencies
|
|
221
|
+
* @twin.org/engine-models bumped from 0.0.2-next.14 to 0.0.2-next.15
|
|
222
|
+
|
|
223
|
+
## [0.0.2-next.14](https://github.com/twinfoundation/engine/compare/engine-core-v0.0.2-next.13...engine-core-v0.0.2-next.14) (2025-09-19)
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
### Miscellaneous Chores
|
|
227
|
+
|
|
228
|
+
* **engine-core:** Synchronize repo versions
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
### Dependencies
|
|
232
|
+
|
|
233
|
+
* The following workspace dependencies were updated
|
|
234
|
+
* dependencies
|
|
235
|
+
* @twin.org/engine-models bumped from 0.0.2-next.13 to 0.0.2-next.14
|
|
236
|
+
|
|
237
|
+
## [0.0.2-next.13](https://github.com/twinfoundation/engine/compare/engine-core-v0.0.2-next.12...engine-core-v0.0.2-next.13) (2025-09-08)
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
### Miscellaneous Chores
|
|
241
|
+
|
|
242
|
+
* **engine-core:** Synchronize repo versions
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
### Dependencies
|
|
246
|
+
|
|
247
|
+
* The following workspace dependencies were updated
|
|
248
|
+
* dependencies
|
|
249
|
+
* @twin.org/engine-models bumped from 0.0.2-next.12 to 0.0.2-next.13
|
|
250
|
+
|
|
251
|
+
## [0.0.2-next.12](https://github.com/twinfoundation/engine/compare/engine-core-v0.0.2-next.11...engine-core-v0.0.2-next.12) (2025-09-05)
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
### Features
|
|
255
|
+
|
|
256
|
+
* add rights management negotiation ([84ef46b](https://github.com/twinfoundation/engine/commit/84ef46bff110611a19512793425c8c873ee2a590))
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
### Dependencies
|
|
260
|
+
|
|
261
|
+
* The following workspace dependencies were updated
|
|
262
|
+
* dependencies
|
|
263
|
+
* @twin.org/engine-models bumped from 0.0.2-next.11 to 0.0.2-next.12
|
|
264
|
+
|
|
265
|
+
## [0.0.2-next.11](https://github.com/twinfoundation/engine/compare/engine-core-v0.0.2-next.10...engine-core-v0.0.2-next.11) (2025-08-29)
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
### Features
|
|
269
|
+
|
|
270
|
+
* eslint migration to flat config ([6b978da](https://github.com/twinfoundation/engine/commit/6b978daf777a615d7758b63c3df57d5a376f6dfb))
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
### Dependencies
|
|
274
|
+
|
|
275
|
+
* The following workspace dependencies were updated
|
|
276
|
+
* dependencies
|
|
277
|
+
* @twin.org/engine-models bumped from 0.0.2-next.10 to 0.0.2-next.11
|
|
278
|
+
|
|
279
|
+
## [0.0.2-next.10](https://github.com/twinfoundation/engine/compare/engine-core-v0.0.2-next.9...engine-core-v0.0.2-next.10) (2025-08-26)
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
### Miscellaneous Chores
|
|
283
|
+
|
|
284
|
+
* **engine-core:** Synchronize repo versions
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
### Dependencies
|
|
288
|
+
|
|
289
|
+
* The following workspace dependencies were updated
|
|
290
|
+
* dependencies
|
|
291
|
+
* @twin.org/engine-models bumped from 0.0.2-next.9 to 0.0.2-next.10
|
|
292
|
+
|
|
3
293
|
## [0.0.2-next.9](https://github.com/twinfoundation/engine/compare/engine-core-v0.0.2-next.8...engine-core-v0.0.2-next.9) (2025-08-25)
|
|
4
294
|
|
|
5
295
|
|
|
@@ -38,11 +38,27 @@ The options for the engine.
|
|
|
38
38
|
|
|
39
39
|
## Properties
|
|
40
40
|
|
|
41
|
-
###
|
|
41
|
+
### LOGGING\_COMPONENT\_TYPE\_NAME
|
|
42
42
|
|
|
43
|
-
> `readonly` `static` **
|
|
43
|
+
> `readonly` `static` **LOGGING\_COMPONENT\_TYPE\_NAME**: `string` = `"engine-logging-service"`
|
|
44
44
|
|
|
45
|
-
Name for the engine logger.
|
|
45
|
+
Name for the engine logger component, used for direct console logging.
|
|
46
|
+
|
|
47
|
+
***
|
|
48
|
+
|
|
49
|
+
### LOGGING\_CONNECTOR\_TYPE\_NAME
|
|
50
|
+
|
|
51
|
+
> `readonly` `static` **LOGGING\_CONNECTOR\_TYPE\_NAME**: `string` = `"engine-logging-connector"`
|
|
52
|
+
|
|
53
|
+
Name for the engine logger connector, used for direct console logging.
|
|
54
|
+
|
|
55
|
+
***
|
|
56
|
+
|
|
57
|
+
### CLASS\_NAME
|
|
58
|
+
|
|
59
|
+
> `readonly` `static` **CLASS\_NAME**: `string`
|
|
60
|
+
|
|
61
|
+
Runtime name for the class.
|
|
46
62
|
|
|
47
63
|
***
|
|
48
64
|
|
|
@@ -52,11 +68,27 @@ Name for the engine logger.
|
|
|
52
68
|
|
|
53
69
|
The core context.
|
|
54
70
|
|
|
71
|
+
***
|
|
72
|
+
|
|
73
|
+
### \_contextIdKeys
|
|
74
|
+
|
|
75
|
+
> `protected` `readonly` **\_contextIdKeys**: `string`[]
|
|
76
|
+
|
|
77
|
+
The context ID keys.
|
|
78
|
+
|
|
79
|
+
***
|
|
80
|
+
|
|
81
|
+
### \_contextIds?
|
|
82
|
+
|
|
83
|
+
> `protected` `optional` **\_contextIds**: `IContextIds`
|
|
84
|
+
|
|
85
|
+
The context IDs.
|
|
86
|
+
|
|
55
87
|
## Methods
|
|
56
88
|
|
|
57
89
|
### addTypeInitialiser()
|
|
58
90
|
|
|
59
|
-
> **addTypeInitialiser**(`type`, `
|
|
91
|
+
> **addTypeInitialiser**(`type`, `module`, `method`): `void`
|
|
60
92
|
|
|
61
93
|
Add a type initialiser.
|
|
62
94
|
|
|
@@ -68,12 +100,6 @@ Add a type initialiser.
|
|
|
68
100
|
|
|
69
101
|
The type to add the initialiser for.
|
|
70
102
|
|
|
71
|
-
##### typeConfig
|
|
72
|
-
|
|
73
|
-
The type config.
|
|
74
|
-
|
|
75
|
-
`undefined` | `IEngineCoreTypeConfig`[]
|
|
76
|
-
|
|
77
103
|
##### module
|
|
78
104
|
|
|
79
105
|
`string`
|
|
@@ -96,6 +122,122 @@ The name of the method to call.
|
|
|
96
122
|
|
|
97
123
|
***
|
|
98
124
|
|
|
125
|
+
### getTypeConfig()
|
|
126
|
+
|
|
127
|
+
> **getTypeConfig**(`type`): `undefined` \| `IEngineCoreTypeConfig`[]
|
|
128
|
+
|
|
129
|
+
Get the type config for a specific type.
|
|
130
|
+
|
|
131
|
+
#### Parameters
|
|
132
|
+
|
|
133
|
+
##### type
|
|
134
|
+
|
|
135
|
+
`string`
|
|
136
|
+
|
|
137
|
+
The type to get the config for.
|
|
138
|
+
|
|
139
|
+
#### Returns
|
|
140
|
+
|
|
141
|
+
`undefined` \| `IEngineCoreTypeConfig`[]
|
|
142
|
+
|
|
143
|
+
The type config or undefined if not found.
|
|
144
|
+
|
|
145
|
+
#### Implementation of
|
|
146
|
+
|
|
147
|
+
`IEngineCore.getTypeConfig`
|
|
148
|
+
|
|
149
|
+
***
|
|
150
|
+
|
|
151
|
+
### addContextIdKey()
|
|
152
|
+
|
|
153
|
+
> **addContextIdKey**(`key`): `void`
|
|
154
|
+
|
|
155
|
+
Add a context ID key to the engine.
|
|
156
|
+
|
|
157
|
+
#### Parameters
|
|
158
|
+
|
|
159
|
+
##### key
|
|
160
|
+
|
|
161
|
+
`string`
|
|
162
|
+
|
|
163
|
+
The context ID key.
|
|
164
|
+
|
|
165
|
+
#### Returns
|
|
166
|
+
|
|
167
|
+
`void`
|
|
168
|
+
|
|
169
|
+
#### Implementation of
|
|
170
|
+
|
|
171
|
+
`IEngineCore.addContextIdKey`
|
|
172
|
+
|
|
173
|
+
***
|
|
174
|
+
|
|
175
|
+
### getContextIdKeys()
|
|
176
|
+
|
|
177
|
+
> **getContextIdKeys**(): `string`[]
|
|
178
|
+
|
|
179
|
+
Get the context ID keys for the engine.
|
|
180
|
+
|
|
181
|
+
#### Returns
|
|
182
|
+
|
|
183
|
+
`string`[]
|
|
184
|
+
|
|
185
|
+
The context IDs keys.
|
|
186
|
+
|
|
187
|
+
#### Implementation of
|
|
188
|
+
|
|
189
|
+
`IEngineCore.getContextIdKeys`
|
|
190
|
+
|
|
191
|
+
***
|
|
192
|
+
|
|
193
|
+
### addContextId()
|
|
194
|
+
|
|
195
|
+
> **addContextId**(`key`, `value`): `void`
|
|
196
|
+
|
|
197
|
+
Add a context ID to the engine.
|
|
198
|
+
|
|
199
|
+
#### Parameters
|
|
200
|
+
|
|
201
|
+
##### key
|
|
202
|
+
|
|
203
|
+
`string`
|
|
204
|
+
|
|
205
|
+
The context ID key.
|
|
206
|
+
|
|
207
|
+
##### value
|
|
208
|
+
|
|
209
|
+
`string`
|
|
210
|
+
|
|
211
|
+
The context ID value.
|
|
212
|
+
|
|
213
|
+
#### Returns
|
|
214
|
+
|
|
215
|
+
`void`
|
|
216
|
+
|
|
217
|
+
#### Implementation of
|
|
218
|
+
|
|
219
|
+
`IEngineCore.addContextId`
|
|
220
|
+
|
|
221
|
+
***
|
|
222
|
+
|
|
223
|
+
### getContextIds()
|
|
224
|
+
|
|
225
|
+
> **getContextIds**(): `undefined` \| `IContextIds`
|
|
226
|
+
|
|
227
|
+
Get the context IDs for the engine.
|
|
228
|
+
|
|
229
|
+
#### Returns
|
|
230
|
+
|
|
231
|
+
`undefined` \| `IContextIds`
|
|
232
|
+
|
|
233
|
+
The context IDs or undefined if none are set.
|
|
234
|
+
|
|
235
|
+
#### Implementation of
|
|
236
|
+
|
|
237
|
+
`IEngineCore.getContextIds`
|
|
238
|
+
|
|
239
|
+
***
|
|
240
|
+
|
|
99
241
|
### start()
|
|
100
242
|
|
|
101
243
|
> **start**(): `Promise`\<`boolean`\>
|
|
@@ -188,7 +330,7 @@ True if the engine instance is a clone.
|
|
|
188
330
|
|
|
189
331
|
### logInfo()
|
|
190
332
|
|
|
191
|
-
> **logInfo**(`message`): `void
|
|
333
|
+
> **logInfo**(`message`): `Promise`\<`void`\>
|
|
192
334
|
|
|
193
335
|
Log info.
|
|
194
336
|
|
|
@@ -202,7 +344,7 @@ The message to log.
|
|
|
202
344
|
|
|
203
345
|
#### Returns
|
|
204
346
|
|
|
205
|
-
`void
|
|
347
|
+
`Promise`\<`void`\>
|
|
206
348
|
|
|
207
349
|
#### Implementation of
|
|
208
350
|
|
|
@@ -212,7 +354,7 @@ The message to log.
|
|
|
212
354
|
|
|
213
355
|
### logError()
|
|
214
356
|
|
|
215
|
-
> **logError**(`error`): `void
|
|
357
|
+
> **logError**(`error`): `Promise`\<`void`\>
|
|
216
358
|
|
|
217
359
|
Log error.
|
|
218
360
|
|
|
@@ -226,7 +368,7 @@ The error to log.
|
|
|
226
368
|
|
|
227
369
|
#### Returns
|
|
228
370
|
|
|
229
|
-
`void
|
|
371
|
+
`Promise`\<`void`\>
|
|
230
372
|
|
|
231
373
|
#### Implementation of
|
|
232
374
|
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Class: EngineModuleHelper
|
|
2
|
+
|
|
3
|
+
Helper class for engine modules.
|
|
4
|
+
|
|
5
|
+
## Constructors
|
|
6
|
+
|
|
7
|
+
### Constructor
|
|
8
|
+
|
|
9
|
+
> **new EngineModuleHelper**(): `EngineModuleHelper`
|
|
10
|
+
|
|
11
|
+
#### Returns
|
|
12
|
+
|
|
13
|
+
`EngineModuleHelper`
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
### CLASS\_NAME
|
|
18
|
+
|
|
19
|
+
> `readonly` `static` **CLASS\_NAME**: `string`
|
|
20
|
+
|
|
21
|
+
Runtime name for the class.
|
|
22
|
+
|
|
23
|
+
## Methods
|
|
24
|
+
|
|
25
|
+
### loadComponent()
|
|
26
|
+
|
|
27
|
+
> `static` **loadComponent**\<`T`\>(`engineCore`, `engineModuleConfig`): `Promise`\<`T`\>
|
|
28
|
+
|
|
29
|
+
Loads an engine component and constructs it with the relevant dependencies and configuration.
|
|
30
|
+
|
|
31
|
+
#### Type Parameters
|
|
32
|
+
|
|
33
|
+
##### T
|
|
34
|
+
|
|
35
|
+
`T`
|
|
36
|
+
|
|
37
|
+
#### Parameters
|
|
38
|
+
|
|
39
|
+
##### engineCore
|
|
40
|
+
|
|
41
|
+
`IEngineCore`
|
|
42
|
+
|
|
43
|
+
The engine core.
|
|
44
|
+
|
|
45
|
+
##### engineModuleConfig
|
|
46
|
+
|
|
47
|
+
`IEngineModuleConfig`
|
|
48
|
+
|
|
49
|
+
The configuration for the module.
|
|
50
|
+
|
|
51
|
+
#### Returns
|
|
52
|
+
|
|
53
|
+
`Promise`\<`T`\>
|
|
54
|
+
|
|
55
|
+
The instantiated component.
|
package/docs/reference/index.md
CHANGED
|
@@ -79,17 +79,3 @@ Custom bootstrap method for the engine.
|
|
|
79
79
|
#### Returns
|
|
80
80
|
|
|
81
81
|
`Promise`\<`void`\>
|
|
82
|
-
|
|
83
|
-
***
|
|
84
|
-
|
|
85
|
-
### loggerTypeName?
|
|
86
|
-
|
|
87
|
-
> `optional` **loggerTypeName**: `string`
|
|
88
|
-
|
|
89
|
-
The name of the logger to use in the engine.
|
|
90
|
-
|
|
91
|
-
#### Default
|
|
92
|
-
|
|
93
|
-
```ts
|
|
94
|
-
engine
|
|
95
|
-
```
|
package/locales/en.json
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"error": {
|
|
3
3
|
"engineCore": {
|
|
4
|
-
"connectorUnknownType": "Unknown connector type \"{type}\" specified for \"{connectorType}\"",
|
|
5
4
|
"componentUnknownType": "Unknown component type \"{type}\" specified for \"{componentType}\"",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"componentStopFailed": "Failed to stop component \"{component}\"",
|
|
5
|
+
"bootstrapFailed": "Failed to bootstrap component type \"{className}\" with instance type \"{instanceType}\"",
|
|
6
|
+
"componentStartFailed": "Failed to start component type \"{className}\" with instance type \"{instanceType}\"",
|
|
7
|
+
"componentStopFailed": "Failed to stop component type \"{className}\" with instance type \"{instanceType}\"",
|
|
10
8
|
"instanceTypeNotFound": "Instance type not found for \"{type}\" with features \"{features}\""
|
|
11
9
|
},
|
|
12
10
|
"fileStateStorage": {
|
|
13
11
|
"failedLoading": "Failed to load file state storage from \"{filename}\"",
|
|
14
12
|
"failedSaving": "Failed to save file state storage to \"{filename}\""
|
|
13
|
+
},
|
|
14
|
+
"engineModuleHelper": {
|
|
15
|
+
"moduleNotClass": "The module \"{moduleName}\" does not export a class \"{className}\""
|
|
15
16
|
}
|
|
16
17
|
},
|
|
17
18
|
"engineCore": {
|
|
@@ -20,17 +21,16 @@
|
|
|
20
21
|
"started": "Engine has started",
|
|
21
22
|
"stopping": "Engine is stopping",
|
|
22
23
|
"stopped": "Engine has stopped",
|
|
23
|
-
"configuring": "Configuring {
|
|
24
|
-
"configuringEntityStorage": "Configuring {element} with name \"{storageName}\" using \"{storageType}\" connector",
|
|
24
|
+
"configuring": "Configuring component type \"{componentType}\" with configuration type \"{configType}\"",
|
|
25
25
|
"bootstrapStarted": "Bootstrap started",
|
|
26
26
|
"bootstrapComplete": "Bootstrap complete",
|
|
27
|
-
"bootstrapping": "
|
|
27
|
+
"bootstrapping": "Bootstrapping component type \"{className}\" with instance type \"{instanceType}\"",
|
|
28
28
|
"componentsStarting": "Components are starting",
|
|
29
29
|
"componentsComplete": "Components have started",
|
|
30
30
|
"componentsStopping": "Components are stopping",
|
|
31
31
|
"componentsStopped": "Components have stopped",
|
|
32
|
-
"componentStarting": "Starting {
|
|
33
|
-
"componentStopping": "Stopping {
|
|
32
|
+
"componentStarting": "Starting component type \"{className}\" with instance type \"{instanceType}\"",
|
|
33
|
+
"componentStopping": "Stopping component type \"{className}\" with instance type \"{instanceType}\""
|
|
34
34
|
},
|
|
35
35
|
"fileStateStorage": {
|
|
36
36
|
"loading": "Loading state from file storage with filename \"{filename}\"",
|