@twin.org/engine 0.0.3-next.3 → 0.0.3-next.31
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/README.md +1 -1
- package/dist/es/data/coreTypeInitialisers.json +75 -10
- package/docs/changelog.md +544 -1
- package/docs/examples.md +56 -23
- package/docs/reference/classes/Engine.md +565 -1
- package/docs/reference/classes/EngineConfigHelper.md +2 -2
- package/package.json +5 -5
package/docs/changelog.md
CHANGED
|
@@ -1,4 +1,547 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [0.0.3-next.31](https://github.com/twinfoundation/engine/compare/engine-v0.0.3-next.30...engine-v0.0.3-next.31) (2026-04-22)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Miscellaneous Chores
|
|
7
|
+
|
|
8
|
+
* **engine:** Synchronize repo versions
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/engine-core bumped from 0.0.3-next.30 to 0.0.3-next.31
|
|
16
|
+
* @twin.org/engine-models bumped from 0.0.3-next.30 to 0.0.3-next.31
|
|
17
|
+
* @twin.org/engine-types bumped from 0.0.3-next.30 to 0.0.3-next.31
|
|
18
|
+
|
|
19
|
+
## [0.0.3-next.30](https://github.com/twinfoundation/engine/compare/engine-v0.0.3-next.29...engine-v0.0.3-next.30) (2026-04-16)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* add notarization ([#98](https://github.com/twinfoundation/engine/issues/98)) ([f560e2a](https://github.com/twinfoundation/engine/commit/f560e2a12a5fba01c95e47518ebdc4220801f8b8))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Dependencies
|
|
28
|
+
|
|
29
|
+
* The following workspace dependencies were updated
|
|
30
|
+
* dependencies
|
|
31
|
+
* @twin.org/engine-core bumped from 0.0.3-next.29 to 0.0.3-next.30
|
|
32
|
+
* @twin.org/engine-models bumped from 0.0.3-next.29 to 0.0.3-next.30
|
|
33
|
+
* @twin.org/engine-types bumped from 0.0.3-next.29 to 0.0.3-next.30
|
|
34
|
+
|
|
35
|
+
## [0.0.3-next.29](https://github.com/twinfoundation/engine/compare/engine-v0.0.3-next.28...engine-v0.0.3-next.29) (2026-04-14)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Miscellaneous Chores
|
|
39
|
+
|
|
40
|
+
* **engine:** Synchronize repo versions
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Dependencies
|
|
44
|
+
|
|
45
|
+
* The following workspace dependencies were updated
|
|
46
|
+
* dependencies
|
|
47
|
+
* @twin.org/engine-core bumped from 0.0.3-next.28 to 0.0.3-next.29
|
|
48
|
+
* @twin.org/engine-models bumped from 0.0.3-next.28 to 0.0.3-next.29
|
|
49
|
+
* @twin.org/engine-types bumped from 0.0.3-next.28 to 0.0.3-next.29
|
|
50
|
+
|
|
51
|
+
## [0.0.3-next.28](https://github.com/twinfoundation/engine/compare/engine-v0.0.3-next.27...engine-v0.0.3-next.28) (2026-04-10)
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### Miscellaneous Chores
|
|
55
|
+
|
|
56
|
+
* **engine:** Synchronize repo versions
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### Dependencies
|
|
60
|
+
|
|
61
|
+
* The following workspace dependencies were updated
|
|
62
|
+
* dependencies
|
|
63
|
+
* @twin.org/engine-core bumped from 0.0.3-next.27 to 0.0.3-next.28
|
|
64
|
+
* @twin.org/engine-models bumped from 0.0.3-next.27 to 0.0.3-next.28
|
|
65
|
+
* @twin.org/engine-types bumped from 0.0.3-next.27 to 0.0.3-next.28
|
|
66
|
+
|
|
67
|
+
## [0.0.3-next.27](https://github.com/twinfoundation/engine/compare/engine-v0.0.3-next.26...engine-v0.0.3-next.27) (2026-03-20)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### Features
|
|
71
|
+
|
|
72
|
+
* update dependencies ([e6ebe42](https://github.com/twinfoundation/engine/commit/e6ebe42b9d61066227ad8b45dae14c8f8615b760))
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
### Dependencies
|
|
76
|
+
|
|
77
|
+
* The following workspace dependencies were updated
|
|
78
|
+
* dependencies
|
|
79
|
+
* @twin.org/engine-core bumped from 0.0.3-next.26 to 0.0.3-next.27
|
|
80
|
+
* @twin.org/engine-models bumped from 0.0.3-next.26 to 0.0.3-next.27
|
|
81
|
+
* @twin.org/engine-types bumped from 0.0.3-next.26 to 0.0.3-next.27
|
|
82
|
+
|
|
83
|
+
## [0.0.3-next.26](https://github.com/twinfoundation/engine/compare/engine-v0.0.3-next.25...engine-v0.0.3-next.26) (2026-03-05)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
### Bug Fixes
|
|
87
|
+
|
|
88
|
+
* use custom instance type for entity storage registration ([#90](https://github.com/twinfoundation/engine/issues/90)) ([2c23995](https://github.com/twinfoundation/engine/commit/2c239953dab4510a4cf97063ee90d048210bf4a6))
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
### Dependencies
|
|
92
|
+
|
|
93
|
+
* The following workspace dependencies were updated
|
|
94
|
+
* dependencies
|
|
95
|
+
* @twin.org/engine-core bumped from 0.0.3-next.25 to 0.0.3-next.26
|
|
96
|
+
* @twin.org/engine-models bumped from 0.0.3-next.25 to 0.0.3-next.26
|
|
97
|
+
* @twin.org/engine-types bumped from 0.0.3-next.25 to 0.0.3-next.26
|
|
98
|
+
|
|
99
|
+
## [0.0.3-next.25](https://github.com/twinfoundation/engine/compare/engine-v0.0.3-next.24...engine-v0.0.3-next.25) (2026-03-02)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### Features
|
|
103
|
+
|
|
104
|
+
* replace unified data space connector with control plane and data plane components ([#78](https://github.com/twinfoundation/engine/issues/78)) ([a6ebace](https://github.com/twinfoundation/engine/commit/a6ebace389dafe754a3ca0827999966b5a101a59))
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
### Dependencies
|
|
108
|
+
|
|
109
|
+
* The following workspace dependencies were updated
|
|
110
|
+
* dependencies
|
|
111
|
+
* @twin.org/engine-core bumped from 0.0.3-next.24 to 0.0.3-next.25
|
|
112
|
+
* @twin.org/engine-models bumped from 0.0.3-next.24 to 0.0.3-next.25
|
|
113
|
+
* @twin.org/engine-types bumped from 0.0.3-next.24 to 0.0.3-next.25
|
|
114
|
+
|
|
115
|
+
## [0.0.3-next.24](https://github.com/twinfoundation/engine/compare/engine-v0.0.3-next.23...engine-v0.0.3-next.24) (2026-02-26)
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
### Features
|
|
119
|
+
|
|
120
|
+
* use factory default feature for sorting ([ec8b370](https://github.com/twinfoundation/engine/commit/ec8b370c5c028cb300cdd1e76b0a0cdb2263773c))
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
### Dependencies
|
|
124
|
+
|
|
125
|
+
* The following workspace dependencies were updated
|
|
126
|
+
* dependencies
|
|
127
|
+
* @twin.org/engine-core bumped from 0.0.3-next.23 to 0.0.3-next.24
|
|
128
|
+
* @twin.org/engine-models bumped from 0.0.3-next.23 to 0.0.3-next.24
|
|
129
|
+
* @twin.org/engine-types bumped from 0.0.3-next.23 to 0.0.3-next.24
|
|
130
|
+
|
|
131
|
+
## [0.0.3-next.23](https://github.com/twinfoundation/engine/compare/engine-v0.0.3-next.22...engine-v0.0.3-next.23) (2026-02-23)
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
### Features
|
|
135
|
+
|
|
136
|
+
* add auth admin component ([201cd06](https://github.com/twinfoundation/engine/commit/201cd061be83afccb5a6b06856ffe7cf8db7d6b3))
|
|
137
|
+
* add context id features ([#51](https://github.com/twinfoundation/engine/issues/51)) ([eaef180](https://github.com/twinfoundation/engine/commit/eaef1807397a907bc7655ef1545a151a710ca2f1))
|
|
138
|
+
* add data space connector ([a824d99](https://github.com/twinfoundation/engine/commit/a824d9931faeaa8115e01f8e7545b802d0e7ac70))
|
|
139
|
+
* add default logging component for web server ([8ad94f0](https://github.com/twinfoundation/engine/commit/8ad94f0d2d9a5241a8854b1e59fb9a55ce310142))
|
|
140
|
+
* add engine type helper for config lookups ([a20a398](https://github.com/twinfoundation/engine/commit/a20a3987016c48351178ab8410bc05b0fba0f2c1))
|
|
141
|
+
* add entity storage to task scheduler ([da4dc0f](https://github.com/twinfoundation/engine/commit/da4dc0f26ee4d506d35cd267144c8300a8b52f90))
|
|
142
|
+
* add fed cat filters ([a52cbf1](https://github.com/twinfoundation/engine/commit/a52cbf1eaf85e6cad61de9ea9448932fb5ae0f43))
|
|
143
|
+
* add federated catalogue ([1b15dd0](https://github.com/twinfoundation/engine/commit/1b15dd059a11446457651c411a73145fab37f025))
|
|
144
|
+
* add hosting component ([#70](https://github.com/twinfoundation/engine/issues/70)) ([2ab0dec](https://github.com/twinfoundation/engine/commit/2ab0dec8fdb979395c639b73f394a40a0dd7e55a))
|
|
145
|
+
* add isPrimary and isClone methods ([a7c63e9](https://github.com/twinfoundation/engine/commit/a7c63e97f54c95b104cc81e66d3fa42c6607bdc1))
|
|
146
|
+
* add latest rights management components ([2d305c8](https://github.com/twinfoundation/engine/commit/2d305c8c85c77bb4f5694c76422db4a11efc1a40))
|
|
147
|
+
* add mimeTypeProcessors and disableNodeIdentity ([bb7e81e](https://github.com/twinfoundation/engine/commit/bb7e81e2036fe042068a5645ec59b22e20d33aad))
|
|
148
|
+
* add rest clients as components ([c6f956a](https://github.com/twinfoundation/engine/commit/c6f956afe4fc22cd552174539c92a109448dc242))
|
|
149
|
+
* add rights management modules ([e02cadc](https://github.com/twinfoundation/engine/commit/e02cadc840d242fe16a73ab41ba61376c7467e50))
|
|
150
|
+
* add rights management negotiation ([84ef46b](https://github.com/twinfoundation/engine/commit/84ef46bff110611a19512793425c8c873ee2a590))
|
|
151
|
+
* add skipComponentStart flag ([#62](https://github.com/twinfoundation/engine/issues/62)) ([07e90af](https://github.com/twinfoundation/engine/commit/07e90afa4ba1baaa79c0c6f0f45200d781801534))
|
|
152
|
+
* add sorting to factories so default entries are at start ([1a69356](https://github.com/twinfoundation/engine/commit/1a693567befcf27e6edc9880746ee82cfb9538e5))
|
|
153
|
+
* add synchronised storage support ([5142e34](https://github.com/twinfoundation/engine/commit/5142e3488f09195cf9f48a9c6c6d1014231a4c2c))
|
|
154
|
+
* add task scheduler ([0951107](https://github.com/twinfoundation/engine/commit/09511073ad042194a45206303f0ef31d8d6af5db))
|
|
155
|
+
* add trust and rights management plugins ([eea0807](https://github.com/twinfoundation/engine/commit/eea0807601833220bd9fd8605b5e4383fbc0ebae))
|
|
156
|
+
* add validate-locales ([b92ea09](https://github.com/twinfoundation/engine/commit/b92ea09dbcfe35225271a51f24d231f59e2d363e))
|
|
157
|
+
* addCustomEntityStorage optional rest path ([55f42c5](https://github.com/twinfoundation/engine/commit/55f42c568945f010eb8883e27fb385d2c30eebff))
|
|
158
|
+
* context id handlers repopulated after engine clone ([9712e32](https://github.com/twinfoundation/engine/commit/9712e328f4607f5b2c82355c394c61bde0ee39bf))
|
|
159
|
+
* eslint migration to flat config ([6b978da](https://github.com/twinfoundation/engine/commit/6b978daf777a615d7758b63c3df57d5a376f6dfb))
|
|
160
|
+
* gas station integration ([#17](https://github.com/twinfoundation/engine/issues/17)) ([a3f844a](https://github.com/twinfoundation/engine/commit/a3f844a7fc58c43b4d0700d8d4351062045e66e1))
|
|
161
|
+
* improve startup error handling ([#65](https://github.com/twinfoundation/engine/issues/65)) ([5b2d1c5](https://github.com/twinfoundation/engine/commit/5b2d1c539cf5484afa85e294d6d6c18f24ef8274))
|
|
162
|
+
* iota rebased release ([474d92b](https://github.com/twinfoundation/engine/commit/474d92b352f4ccc431a4f138afee2ee89824664d))
|
|
163
|
+
* maintain isDefault flag for registered instances ([2ac5bee](https://github.com/twinfoundation/engine/commit/2ac5bee094bef42b396cc82b0d18bb6aebe27352))
|
|
164
|
+
* modifying the engine to run the new services ([#10](https://github.com/twinfoundation/engine/issues/10)) ([6f7141f](https://github.com/twinfoundation/engine/commit/6f7141fe0a6d05c725066b274bcc18b5490e580b))
|
|
165
|
+
* move environment variable processing to node level ([2223c12](https://github.com/twinfoundation/engine/commit/2223c12f49f3d34051ecec9687351aa5dd094e54))
|
|
166
|
+
* multi instance component support ([#83](https://github.com/twinfoundation/engine/issues/83)) ([6012b50](https://github.com/twinfoundation/engine/commit/6012b50959df5af893f05516d42eea2e0800b31a))
|
|
167
|
+
* override type initialisers with new registrations ([5b4ff56](https://github.com/twinfoundation/engine/commit/5b4ff561d06b6513c870a72bb20ba23c0653cfe8))
|
|
168
|
+
* remove authentication generator components ([#67](https://github.com/twinfoundation/engine/issues/67)) ([62f7984](https://github.com/twinfoundation/engine/commit/62f798468f567fdbf648401aa0dc51cda871c913))
|
|
169
|
+
* remove dap and darp ([d568c4f](https://github.com/twinfoundation/engine/commit/d568c4fc58a3159378e1d65f93228ae84f34a31d))
|
|
170
|
+
* simplify config building ([732c871](https://github.com/twinfoundation/engine/commit/732c871c5aca236759168f4bc15aeffd98a330a8))
|
|
171
|
+
* standardised engine logging naming ([0dbf857](https://github.com/twinfoundation/engine/commit/0dbf857587641f86ddf010143519d0e8333489ff))
|
|
172
|
+
* update dependencies ([97c9f64](https://github.com/twinfoundation/engine/commit/97c9f64b6ef096963bcc5de338a2a9e99bdc1a11))
|
|
173
|
+
* update framework core ([acc0f8d](https://github.com/twinfoundation/engine/commit/acc0f8d455a4b8ec47f1da643139fa0f07775fa6))
|
|
174
|
+
* update includeUserIdentity usage ([d34f597](https://github.com/twinfoundation/engine/commit/d34f597a61f9645a029411d2911bbda20ddc9eb9))
|
|
175
|
+
* update rights management and add authentication generators ([f728a1e](https://github.com/twinfoundation/engine/commit/f728a1efea15ada8d10cfbe17cafe7e2b252f527))
|
|
176
|
+
* update rights management components ([#74](https://github.com/twinfoundation/engine/issues/74)) ([be94ba8](https://github.com/twinfoundation/engine/commit/be94ba837999c586266a7c73228689566ec9876b))
|
|
177
|
+
* update rights management config ([d447575](https://github.com/twinfoundation/engine/commit/d447575cd5cdf3cdf1fe92087e90188ec97516f5))
|
|
178
|
+
* update rights management dependencies ([14d06fb](https://github.com/twinfoundation/engine/commit/14d06fb6604ad04e4094da7b51b61a01a0280b8b))
|
|
179
|
+
* upgrade framework components ([efd52e8](https://github.com/twinfoundation/engine/commit/efd52e80564fff29c3897bfa09b6305b3a322812))
|
|
180
|
+
* use peer dependencies ([69dd744](https://github.com/twinfoundation/engine/commit/69dd7449010b8e6f5f35e7fad201ad4c1cab400c))
|
|
181
|
+
* use shared store mechanism ([#2](https://github.com/twinfoundation/engine/issues/2)) ([9eed8d7](https://github.com/twinfoundation/engine/commit/9eed8d7766388479b42f03e2542fe761f2156408))
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
### Bug Fixes
|
|
185
|
+
|
|
186
|
+
* blob storage encryption settings ([63ee879](https://github.com/twinfoundation/engine/commit/63ee87904d2be205d8fe2fa11b536790a0d22082))
|
|
187
|
+
* pass contextIds to populateClone ([#79](https://github.com/twinfoundation/engine/issues/79)) ([b22f1bb](https://github.com/twinfoundation/engine/commit/b22f1bbf0319069914e316d27de4c2a8623421cf))
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
### Dependencies
|
|
191
|
+
|
|
192
|
+
* The following workspace dependencies were updated
|
|
193
|
+
* dependencies
|
|
194
|
+
* @twin.org/engine-core bumped from 0.0.3-next.22 to 0.0.3-next.23
|
|
195
|
+
* @twin.org/engine-models bumped from 0.0.3-next.22 to 0.0.3-next.23
|
|
196
|
+
* @twin.org/engine-types bumped from 0.0.3-next.22 to 0.0.3-next.23
|
|
197
|
+
|
|
198
|
+
## [0.0.3-next.22](https://github.com/twinfoundation/engine/compare/engine-v0.0.3-next.21...engine-v0.0.3-next.22) (2026-02-23)
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
### Features
|
|
202
|
+
|
|
203
|
+
* add sorting to factories so default entries are at start ([1a69356](https://github.com/twinfoundation/engine/commit/1a693567befcf27e6edc9880746ee82cfb9538e5))
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
### Dependencies
|
|
207
|
+
|
|
208
|
+
* The following workspace dependencies were updated
|
|
209
|
+
* dependencies
|
|
210
|
+
* @twin.org/engine-core bumped from 0.0.3-next.21 to 0.0.3-next.22
|
|
211
|
+
* @twin.org/engine-models bumped from 0.0.3-next.21 to 0.0.3-next.22
|
|
212
|
+
* @twin.org/engine-types bumped from 0.0.3-next.21 to 0.0.3-next.22
|
|
213
|
+
|
|
214
|
+
## [0.0.3-next.21](https://github.com/twinfoundation/engine/compare/engine-v0.0.3-next.20...engine-v0.0.3-next.21) (2026-02-13)
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
### Features
|
|
218
|
+
|
|
219
|
+
* multi instance component support ([#83](https://github.com/twinfoundation/engine/issues/83)) ([6012b50](https://github.com/twinfoundation/engine/commit/6012b50959df5af893f05516d42eea2e0800b31a))
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
### Dependencies
|
|
223
|
+
|
|
224
|
+
* The following workspace dependencies were updated
|
|
225
|
+
* dependencies
|
|
226
|
+
* @twin.org/engine-core bumped from 0.0.3-next.20 to 0.0.3-next.21
|
|
227
|
+
* @twin.org/engine-models bumped from 0.0.3-next.20 to 0.0.3-next.21
|
|
228
|
+
* @twin.org/engine-types bumped from 0.0.3-next.20 to 0.0.3-next.21
|
|
229
|
+
|
|
230
|
+
## [0.0.3-next.20](https://github.com/twinfoundation/engine/compare/engine-v0.0.3-next.19...engine-v0.0.3-next.20) (2026-02-06)
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
### Miscellaneous Chores
|
|
234
|
+
|
|
235
|
+
* **engine:** Synchronize repo versions
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
### Dependencies
|
|
239
|
+
|
|
240
|
+
* The following workspace dependencies were updated
|
|
241
|
+
* dependencies
|
|
242
|
+
* @twin.org/engine-core bumped from 0.0.3-next.19 to 0.0.3-next.20
|
|
243
|
+
* @twin.org/engine-models bumped from 0.0.3-next.19 to 0.0.3-next.20
|
|
244
|
+
* @twin.org/engine-types bumped from 0.0.3-next.19 to 0.0.3-next.20
|
|
245
|
+
|
|
246
|
+
## [0.0.3-next.19](https://github.com/twinfoundation/engine/compare/engine-v0.0.3-next.18...engine-v0.0.3-next.19) (2026-02-05)
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
### Bug Fixes
|
|
250
|
+
|
|
251
|
+
* pass contextIds to populateClone ([#79](https://github.com/twinfoundation/engine/issues/79)) ([b22f1bb](https://github.com/twinfoundation/engine/commit/b22f1bbf0319069914e316d27de4c2a8623421cf))
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
### Dependencies
|
|
255
|
+
|
|
256
|
+
* The following workspace dependencies were updated
|
|
257
|
+
* dependencies
|
|
258
|
+
* @twin.org/engine-core bumped from 0.0.3-next.18 to 0.0.3-next.19
|
|
259
|
+
* @twin.org/engine-models bumped from 0.0.3-next.18 to 0.0.3-next.19
|
|
260
|
+
* @twin.org/engine-types bumped from 0.0.3-next.18 to 0.0.3-next.19
|
|
261
|
+
|
|
262
|
+
## [0.0.3-next.18](https://github.com/twinfoundation/engine/compare/engine-v0.0.3-next.17...engine-v0.0.3-next.18) (2026-02-04)
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
### Miscellaneous Chores
|
|
266
|
+
|
|
267
|
+
* **engine:** Synchronize repo versions
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
### Dependencies
|
|
271
|
+
|
|
272
|
+
* The following workspace dependencies were updated
|
|
273
|
+
* dependencies
|
|
274
|
+
* @twin.org/engine-core bumped from 0.0.3-next.17 to 0.0.3-next.18
|
|
275
|
+
* @twin.org/engine-models bumped from 0.0.3-next.17 to 0.0.3-next.18
|
|
276
|
+
* @twin.org/engine-types bumped from 0.0.3-next.17 to 0.0.3-next.18
|
|
277
|
+
|
|
278
|
+
## [0.0.3-next.17](https://github.com/twinfoundation/engine/compare/engine-v0.0.3-next.16...engine-v0.0.3-next.17) (2026-02-02)
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
### Features
|
|
282
|
+
|
|
283
|
+
* update rights management components ([#74](https://github.com/twinfoundation/engine/issues/74)) ([be94ba8](https://github.com/twinfoundation/engine/commit/be94ba837999c586266a7c73228689566ec9876b))
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
### Dependencies
|
|
287
|
+
|
|
288
|
+
* The following workspace dependencies were updated
|
|
289
|
+
* dependencies
|
|
290
|
+
* @twin.org/engine-core bumped from 0.0.3-next.16 to 0.0.3-next.17
|
|
291
|
+
* @twin.org/engine-models bumped from 0.0.3-next.16 to 0.0.3-next.17
|
|
292
|
+
* @twin.org/engine-types bumped from 0.0.3-next.16 to 0.0.3-next.17
|
|
293
|
+
|
|
294
|
+
## [0.0.3-next.16](https://github.com/twinfoundation/engine/compare/engine-v0.0.3-next.15...engine-v0.0.3-next.16) (2026-01-28)
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
### Features
|
|
298
|
+
|
|
299
|
+
* remove dap and darp ([d568c4f](https://github.com/twinfoundation/engine/commit/d568c4fc58a3159378e1d65f93228ae84f34a31d))
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
### Dependencies
|
|
303
|
+
|
|
304
|
+
* The following workspace dependencies were updated
|
|
305
|
+
* dependencies
|
|
306
|
+
* @twin.org/engine-core bumped from 0.0.3-next.15 to 0.0.3-next.16
|
|
307
|
+
* @twin.org/engine-models bumped from 0.0.3-next.15 to 0.0.3-next.16
|
|
308
|
+
* @twin.org/engine-types bumped from 0.0.3-next.15 to 0.0.3-next.16
|
|
309
|
+
|
|
310
|
+
## [0.0.3-next.15](https://github.com/twinfoundation/engine/compare/engine-v0.0.3-next.14...engine-v0.0.3-next.15) (2026-01-26)
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
### Features
|
|
314
|
+
|
|
315
|
+
* add hosting component ([#70](https://github.com/twinfoundation/engine/issues/70)) ([2ab0dec](https://github.com/twinfoundation/engine/commit/2ab0dec8fdb979395c639b73f394a40a0dd7e55a))
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
### Dependencies
|
|
319
|
+
|
|
320
|
+
* The following workspace dependencies were updated
|
|
321
|
+
* dependencies
|
|
322
|
+
* @twin.org/engine-core bumped from 0.0.3-next.14 to 0.0.3-next.15
|
|
323
|
+
* @twin.org/engine-models bumped from 0.0.3-next.14 to 0.0.3-next.15
|
|
324
|
+
* @twin.org/engine-types bumped from 0.0.3-next.14 to 0.0.3-next.15
|
|
325
|
+
|
|
326
|
+
## [0.0.3-next.14](https://github.com/twinfoundation/engine/compare/engine-v0.0.3-next.13...engine-v0.0.3-next.14) (2026-01-19)
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
### Features
|
|
330
|
+
|
|
331
|
+
* add auth admin component ([201cd06](https://github.com/twinfoundation/engine/commit/201cd061be83afccb5a6b06856ffe7cf8db7d6b3))
|
|
332
|
+
* add context id features ([#51](https://github.com/twinfoundation/engine/issues/51)) ([eaef180](https://github.com/twinfoundation/engine/commit/eaef1807397a907bc7655ef1545a151a710ca2f1))
|
|
333
|
+
* add data space connector ([a824d99](https://github.com/twinfoundation/engine/commit/a824d9931faeaa8115e01f8e7545b802d0e7ac70))
|
|
334
|
+
* add default logging component for web server ([8ad94f0](https://github.com/twinfoundation/engine/commit/8ad94f0d2d9a5241a8854b1e59fb9a55ce310142))
|
|
335
|
+
* add engine type helper for config lookups ([a20a398](https://github.com/twinfoundation/engine/commit/a20a3987016c48351178ab8410bc05b0fba0f2c1))
|
|
336
|
+
* add fed cat filters ([a52cbf1](https://github.com/twinfoundation/engine/commit/a52cbf1eaf85e6cad61de9ea9448932fb5ae0f43))
|
|
337
|
+
* add federated catalogue ([1b15dd0](https://github.com/twinfoundation/engine/commit/1b15dd059a11446457651c411a73145fab37f025))
|
|
338
|
+
* add isPrimary and isClone methods ([a7c63e9](https://github.com/twinfoundation/engine/commit/a7c63e97f54c95b104cc81e66d3fa42c6607bdc1))
|
|
339
|
+
* add latest rights management components ([2d305c8](https://github.com/twinfoundation/engine/commit/2d305c8c85c77bb4f5694c76422db4a11efc1a40))
|
|
340
|
+
* add mimeTypeProcessors and disableNodeIdentity ([bb7e81e](https://github.com/twinfoundation/engine/commit/bb7e81e2036fe042068a5645ec59b22e20d33aad))
|
|
341
|
+
* add rest clients as components ([c6f956a](https://github.com/twinfoundation/engine/commit/c6f956afe4fc22cd552174539c92a109448dc242))
|
|
342
|
+
* add rights management modules ([e02cadc](https://github.com/twinfoundation/engine/commit/e02cadc840d242fe16a73ab41ba61376c7467e50))
|
|
343
|
+
* add rights management negotiation ([84ef46b](https://github.com/twinfoundation/engine/commit/84ef46bff110611a19512793425c8c873ee2a590))
|
|
344
|
+
* add skipComponentStart flag ([#62](https://github.com/twinfoundation/engine/issues/62)) ([07e90af](https://github.com/twinfoundation/engine/commit/07e90afa4ba1baaa79c0c6f0f45200d781801534))
|
|
345
|
+
* add synchronised storage support ([5142e34](https://github.com/twinfoundation/engine/commit/5142e3488f09195cf9f48a9c6c6d1014231a4c2c))
|
|
346
|
+
* add task scheduler ([0951107](https://github.com/twinfoundation/engine/commit/09511073ad042194a45206303f0ef31d8d6af5db))
|
|
347
|
+
* add trust and rights management plugins ([eea0807](https://github.com/twinfoundation/engine/commit/eea0807601833220bd9fd8605b5e4383fbc0ebae))
|
|
348
|
+
* add validate-locales ([b92ea09](https://github.com/twinfoundation/engine/commit/b92ea09dbcfe35225271a51f24d231f59e2d363e))
|
|
349
|
+
* addCustomEntityStorage optional rest path ([55f42c5](https://github.com/twinfoundation/engine/commit/55f42c568945f010eb8883e27fb385d2c30eebff))
|
|
350
|
+
* context id handlers repopulated after engine clone ([9712e32](https://github.com/twinfoundation/engine/commit/9712e328f4607f5b2c82355c394c61bde0ee39bf))
|
|
351
|
+
* eslint migration to flat config ([6b978da](https://github.com/twinfoundation/engine/commit/6b978daf777a615d7758b63c3df57d5a376f6dfb))
|
|
352
|
+
* gas station integration ([#17](https://github.com/twinfoundation/engine/issues/17)) ([a3f844a](https://github.com/twinfoundation/engine/commit/a3f844a7fc58c43b4d0700d8d4351062045e66e1))
|
|
353
|
+
* improve startup error handling ([#65](https://github.com/twinfoundation/engine/issues/65)) ([5b2d1c5](https://github.com/twinfoundation/engine/commit/5b2d1c539cf5484afa85e294d6d6c18f24ef8274))
|
|
354
|
+
* iota rebased release ([474d92b](https://github.com/twinfoundation/engine/commit/474d92b352f4ccc431a4f138afee2ee89824664d))
|
|
355
|
+
* maintain isDefault flag for registered instances ([2ac5bee](https://github.com/twinfoundation/engine/commit/2ac5bee094bef42b396cc82b0d18bb6aebe27352))
|
|
356
|
+
* modifying the engine to run the new services ([#10](https://github.com/twinfoundation/engine/issues/10)) ([6f7141f](https://github.com/twinfoundation/engine/commit/6f7141fe0a6d05c725066b274bcc18b5490e580b))
|
|
357
|
+
* move environment variable processing to node level ([2223c12](https://github.com/twinfoundation/engine/commit/2223c12f49f3d34051ecec9687351aa5dd094e54))
|
|
358
|
+
* override type initialisers with new registrations ([5b4ff56](https://github.com/twinfoundation/engine/commit/5b4ff561d06b6513c870a72bb20ba23c0653cfe8))
|
|
359
|
+
* remove authentication generator components ([#67](https://github.com/twinfoundation/engine/issues/67)) ([62f7984](https://github.com/twinfoundation/engine/commit/62f798468f567fdbf648401aa0dc51cda871c913))
|
|
360
|
+
* simplify config building ([732c871](https://github.com/twinfoundation/engine/commit/732c871c5aca236759168f4bc15aeffd98a330a8))
|
|
361
|
+
* standardised engine logging naming ([0dbf857](https://github.com/twinfoundation/engine/commit/0dbf857587641f86ddf010143519d0e8333489ff))
|
|
362
|
+
* update dependencies ([97c9f64](https://github.com/twinfoundation/engine/commit/97c9f64b6ef096963bcc5de338a2a9e99bdc1a11))
|
|
363
|
+
* update framework core ([acc0f8d](https://github.com/twinfoundation/engine/commit/acc0f8d455a4b8ec47f1da643139fa0f07775fa6))
|
|
364
|
+
* update includeUserIdentity usage ([d34f597](https://github.com/twinfoundation/engine/commit/d34f597a61f9645a029411d2911bbda20ddc9eb9))
|
|
365
|
+
* update rights management and add authentication generators ([f728a1e](https://github.com/twinfoundation/engine/commit/f728a1efea15ada8d10cfbe17cafe7e2b252f527))
|
|
366
|
+
* update rights management config ([d447575](https://github.com/twinfoundation/engine/commit/d447575cd5cdf3cdf1fe92087e90188ec97516f5))
|
|
367
|
+
* update rights management dependencies ([14d06fb](https://github.com/twinfoundation/engine/commit/14d06fb6604ad04e4094da7b51b61a01a0280b8b))
|
|
368
|
+
* upgrade framework components ([efd52e8](https://github.com/twinfoundation/engine/commit/efd52e80564fff29c3897bfa09b6305b3a322812))
|
|
369
|
+
* use peer dependencies ([69dd744](https://github.com/twinfoundation/engine/commit/69dd7449010b8e6f5f35e7fad201ad4c1cab400c))
|
|
370
|
+
* use shared store mechanism ([#2](https://github.com/twinfoundation/engine/issues/2)) ([9eed8d7](https://github.com/twinfoundation/engine/commit/9eed8d7766388479b42f03e2542fe761f2156408))
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
### Bug Fixes
|
|
374
|
+
|
|
375
|
+
* blob storage encryption settings ([63ee879](https://github.com/twinfoundation/engine/commit/63ee87904d2be205d8fe2fa11b536790a0d22082))
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
### Dependencies
|
|
379
|
+
|
|
380
|
+
* The following workspace dependencies were updated
|
|
381
|
+
* dependencies
|
|
382
|
+
* @twin.org/engine-core bumped from 0.0.3-next.13 to 0.0.3-next.14
|
|
383
|
+
* @twin.org/engine-models bumped from 0.0.3-next.13 to 0.0.3-next.14
|
|
384
|
+
* @twin.org/engine-types bumped from 0.0.3-next.13 to 0.0.3-next.14
|
|
385
|
+
|
|
386
|
+
## [0.0.3-next.13](https://github.com/twinfoundation/engine/compare/engine-v0.0.3-next.12...engine-v0.0.3-next.13) (2026-01-19)
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
### Features
|
|
390
|
+
|
|
391
|
+
* remove authentication generator components ([#67](https://github.com/twinfoundation/engine/issues/67)) ([62f7984](https://github.com/twinfoundation/engine/commit/62f798468f567fdbf648401aa0dc51cda871c913))
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
### Dependencies
|
|
395
|
+
|
|
396
|
+
* The following workspace dependencies were updated
|
|
397
|
+
* dependencies
|
|
398
|
+
* @twin.org/engine-core bumped from 0.0.3-next.12 to 0.0.3-next.13
|
|
399
|
+
* @twin.org/engine-models bumped from 0.0.3-next.12 to 0.0.3-next.13
|
|
400
|
+
* @twin.org/engine-types bumped from 0.0.3-next.12 to 0.0.3-next.13
|
|
401
|
+
|
|
402
|
+
## [0.0.3-next.12](https://github.com/twinfoundation/engine/compare/engine-v0.0.3-next.11...engine-v0.0.3-next.12) (2026-01-19)
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
### Features
|
|
406
|
+
|
|
407
|
+
* improve startup error handling ([#65](https://github.com/twinfoundation/engine/issues/65)) ([5b2d1c5](https://github.com/twinfoundation/engine/commit/5b2d1c539cf5484afa85e294d6d6c18f24ef8274))
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
### Dependencies
|
|
411
|
+
|
|
412
|
+
* The following workspace dependencies were updated
|
|
413
|
+
* dependencies
|
|
414
|
+
* @twin.org/engine-core bumped from 0.0.3-next.11 to 0.0.3-next.12
|
|
415
|
+
* @twin.org/engine-models bumped from 0.0.3-next.11 to 0.0.3-next.12
|
|
416
|
+
* @twin.org/engine-types bumped from 0.0.3-next.11 to 0.0.3-next.12
|
|
417
|
+
|
|
418
|
+
## [0.0.3-next.11](https://github.com/twinfoundation/engine/compare/engine-v0.0.3-next.10...engine-v0.0.3-next.11) (2026-01-16)
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
### Miscellaneous Chores
|
|
422
|
+
|
|
423
|
+
* **engine:** Synchronize repo versions
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
### Dependencies
|
|
427
|
+
|
|
428
|
+
* The following workspace dependencies were updated
|
|
429
|
+
* dependencies
|
|
430
|
+
* @twin.org/engine-core bumped from 0.0.3-next.10 to 0.0.3-next.11
|
|
431
|
+
* @twin.org/engine-models bumped from 0.0.3-next.10 to 0.0.3-next.11
|
|
432
|
+
* @twin.org/engine-types bumped from 0.0.3-next.10 to 0.0.3-next.11
|
|
433
|
+
|
|
434
|
+
## [0.0.3-next.10](https://github.com/twinfoundation/engine/compare/engine-v0.0.3-next.9...engine-v0.0.3-next.10) (2026-01-13)
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
### Features
|
|
438
|
+
|
|
439
|
+
* add skipComponentStart flag ([#62](https://github.com/twinfoundation/engine/issues/62)) ([07e90af](https://github.com/twinfoundation/engine/commit/07e90afa4ba1baaa79c0c6f0f45200d781801534))
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
### Dependencies
|
|
443
|
+
|
|
444
|
+
* The following workspace dependencies were updated
|
|
445
|
+
* dependencies
|
|
446
|
+
* @twin.org/engine-core bumped from 0.0.3-next.9 to 0.0.3-next.10
|
|
447
|
+
* @twin.org/engine-models bumped from 0.0.3-next.9 to 0.0.3-next.10
|
|
448
|
+
* @twin.org/engine-types bumped from 0.0.3-next.9 to 0.0.3-next.10
|
|
449
|
+
|
|
450
|
+
## [0.0.3-next.9](https://github.com/twinfoundation/engine/compare/engine-v0.0.3-next.8...engine-v0.0.3-next.9) (2026-01-07)
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
### Miscellaneous Chores
|
|
454
|
+
|
|
455
|
+
* **engine:** Synchronize repo versions
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
### Dependencies
|
|
459
|
+
|
|
460
|
+
* The following workspace dependencies were updated
|
|
461
|
+
* dependencies
|
|
462
|
+
* @twin.org/engine-core bumped from 0.0.3-next.8 to 0.0.3-next.9
|
|
463
|
+
* @twin.org/engine-models bumped from 0.0.3-next.8 to 0.0.3-next.9
|
|
464
|
+
* @twin.org/engine-types bumped from 0.0.3-next.8 to 0.0.3-next.9
|
|
465
|
+
|
|
466
|
+
## [0.0.3-next.8](https://github.com/twinfoundation/engine/compare/engine-v0.0.3-next.7...engine-v0.0.3-next.8) (2026-01-06)
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
### Miscellaneous Chores
|
|
470
|
+
|
|
471
|
+
* **engine:** Synchronize repo versions
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
### Dependencies
|
|
475
|
+
|
|
476
|
+
* The following workspace dependencies were updated
|
|
477
|
+
* dependencies
|
|
478
|
+
* @twin.org/engine-core bumped from 0.0.3-next.7 to 0.0.3-next.8
|
|
479
|
+
* @twin.org/engine-models bumped from 0.0.3-next.7 to 0.0.3-next.8
|
|
480
|
+
* @twin.org/engine-types bumped from 0.0.3-next.7 to 0.0.3-next.8
|
|
481
|
+
|
|
482
|
+
## [0.0.3-next.7](https://github.com/twinfoundation/engine/compare/engine-v0.0.3-next.6...engine-v0.0.3-next.7) (2025-12-04)
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
### Features
|
|
486
|
+
|
|
487
|
+
* add trust and rights management plugins ([eea0807](https://github.com/twinfoundation/engine/commit/eea0807601833220bd9fd8605b5e4383fbc0ebae))
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
### Dependencies
|
|
491
|
+
|
|
492
|
+
* The following workspace dependencies were updated
|
|
493
|
+
* dependencies
|
|
494
|
+
* @twin.org/engine-core bumped from 0.0.3-next.6 to 0.0.3-next.7
|
|
495
|
+
* @twin.org/engine-models bumped from 0.0.3-next.6 to 0.0.3-next.7
|
|
496
|
+
* @twin.org/engine-types bumped from 0.0.3-next.6 to 0.0.3-next.7
|
|
497
|
+
|
|
498
|
+
## [0.0.3-next.6](https://github.com/twinfoundation/engine/compare/engine-v0.0.3-next.5...engine-v0.0.3-next.6) (2025-11-28)
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
### Features
|
|
502
|
+
|
|
503
|
+
* add fed cat filters ([a52cbf1](https://github.com/twinfoundation/engine/commit/a52cbf1eaf85e6cad61de9ea9448932fb5ae0f43))
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
### Dependencies
|
|
507
|
+
|
|
508
|
+
* The following workspace dependencies were updated
|
|
509
|
+
* dependencies
|
|
510
|
+
* @twin.org/engine-core bumped from 0.0.3-next.5 to 0.0.3-next.6
|
|
511
|
+
* @twin.org/engine-models bumped from 0.0.3-next.5 to 0.0.3-next.6
|
|
512
|
+
* @twin.org/engine-types bumped from 0.0.3-next.5 to 0.0.3-next.6
|
|
513
|
+
|
|
514
|
+
## [0.0.3-next.5](https://github.com/twinfoundation/engine/compare/engine-v0.0.3-next.4...engine-v0.0.3-next.5) (2025-11-20)
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
### Miscellaneous Chores
|
|
518
|
+
|
|
519
|
+
* **engine:** Synchronize repo versions
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
### Dependencies
|
|
523
|
+
|
|
524
|
+
* The following workspace dependencies were updated
|
|
525
|
+
* dependencies
|
|
526
|
+
* @twin.org/engine-core bumped from 0.0.3-next.4 to 0.0.3-next.5
|
|
527
|
+
* @twin.org/engine-models bumped from 0.0.3-next.4 to 0.0.3-next.5
|
|
528
|
+
* @twin.org/engine-types bumped from 0.0.3-next.4 to 0.0.3-next.5
|
|
529
|
+
|
|
530
|
+
## [0.0.3-next.4](https://github.com/twinfoundation/engine/compare/engine-v0.0.3-next.3...engine-v0.0.3-next.4) (2025-11-20)
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
### Features
|
|
534
|
+
|
|
535
|
+
* context id handlers repopulated after engine clone ([9712e32](https://github.com/twinfoundation/engine/commit/9712e328f4607f5b2c82355c394c61bde0ee39bf))
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
### Dependencies
|
|
539
|
+
|
|
540
|
+
* The following workspace dependencies were updated
|
|
541
|
+
* dependencies
|
|
542
|
+
* @twin.org/engine-core bumped from 0.0.3-next.3 to 0.0.3-next.4
|
|
543
|
+
* @twin.org/engine-models bumped from 0.0.3-next.3 to 0.0.3-next.4
|
|
544
|
+
* @twin.org/engine-types bumped from 0.0.3-next.3 to 0.0.3-next.4
|
|
2
545
|
|
|
3
546
|
## [0.0.3-next.3](https://github.com/twinfoundation/engine/compare/engine-v0.0.3-next.2...engine-v0.0.3-next.3) (2025-11-14)
|
|
4
547
|
|
package/docs/examples.md
CHANGED
|
@@ -1,35 +1,68 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Engine Examples
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
These examples show a practical way to configure and run an instance with built-in type initialisers and custom entity storage.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Engine
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
```typescript
|
|
8
|
+
import { Engine } from '@twin.org/engine';
|
|
9
|
+
import type { IEngineConfig } from '@twin.org/engine-types';
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
const config: IEngineConfig = {
|
|
12
|
+
debug: true,
|
|
13
|
+
silent: false,
|
|
14
|
+
types: {}
|
|
15
|
+
};
|
|
10
16
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
IOTA_EXPLORER_ENDPOINT="https://explorer.iota.org/"
|
|
16
|
-
IOTA_NETWORK="devnet"
|
|
17
|
-
IOTA_COIN_TYPE="4218"
|
|
18
|
-
```
|
|
17
|
+
const engine = new Engine({ config, skipBootstrap: true });
|
|
18
|
+
|
|
19
|
+
engine.addContextIdKey('tenant', ['tenant']);
|
|
20
|
+
engine.addContextId('tenant', 'tenant-a');
|
|
19
21
|
|
|
20
|
-
|
|
22
|
+
engine.addTypeInitialiser('loggingConnector', '@twin.org/engine-types', 'initLoggingConnector');
|
|
21
23
|
|
|
22
|
-
|
|
24
|
+
console.log(engine.getContextIdKeys()); // ["tenant"]
|
|
25
|
+
console.log(engine.getContextIds()); // { tenant: "tenant-a" }
|
|
26
|
+
console.log(engine.isStarted()); // false
|
|
23
27
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
+
await engine.start(true);
|
|
29
|
+
console.log(engine.isStarted()); // true
|
|
30
|
+
|
|
31
|
+
await engine.stop();
|
|
32
|
+
console.log(engine.isStarted()); // false
|
|
28
33
|
```
|
|
29
34
|
|
|
30
|
-
|
|
35
|
+
## EngineConfigHelper
|
|
36
|
+
|
|
37
|
+
```typescript
|
|
38
|
+
import { EngineConfigHelper } from '@twin.org/engine';
|
|
39
|
+
import type { IEngineConfig } from '@twin.org/engine-types';
|
|
40
|
+
import type { IEntitySchema } from '@twin.org/entity';
|
|
31
41
|
|
|
32
|
-
|
|
33
|
-
|
|
42
|
+
interface Product {
|
|
43
|
+
id: string;
|
|
44
|
+
name: string;
|
|
45
|
+
}
|
|
34
46
|
|
|
35
|
-
|
|
47
|
+
const config: IEngineConfig = {
|
|
48
|
+
debug: false,
|
|
49
|
+
silent: true,
|
|
50
|
+
types: {}
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
const productSchema = {
|
|
54
|
+
type: 'Product',
|
|
55
|
+
properties: {
|
|
56
|
+
id: { type: 'string', isPrimary: true },
|
|
57
|
+
name: { type: 'string' }
|
|
58
|
+
}
|
|
59
|
+
} as IEntitySchema<Product>;
|
|
60
|
+
|
|
61
|
+
EngineConfigHelper.addCustomEntityStorage(config, 'product', productSchema, '/products', [
|
|
62
|
+
'node',
|
|
63
|
+
'tenant'
|
|
64
|
+
]);
|
|
65
|
+
|
|
66
|
+
console.log(config.types.entityStorageComponent?.length ?? 0); // 1
|
|
67
|
+
console.log(config.types.entityStorageComponent?.[0].restPath); // "/products"
|
|
68
|
+
```
|