@twin.org/engine-server 0.0.1-next.9 → 0.0.1

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.
@@ -1,45 +1,53 @@
1
- import { type IEngineCore, type IEngineCoreTypeConfig, type IEngineServer, type IEngineServerConfig, type RestRouteGenerator, type SocketRouteGenerator } from "@twin.org/engine-models";
1
+ import type { IRestRoute, ISocketRoute } from "@twin.org/api-models";
2
+ import type { IEngineCore, IEngineCoreTypeConfig, IEngineServer } from "@twin.org/engine-models";
3
+ import { type IEngineServerConfig } from "@twin.org/engine-server-types";
2
4
  /**
3
5
  * Server for the engine.
4
6
  */
5
- export declare class EngineServer implements IEngineServer {
7
+ export declare class EngineServer<T extends IEngineServerConfig = IEngineServerConfig> implements IEngineServer {
6
8
  /**
7
9
  * Runtime name for the class.
8
10
  */
9
11
  readonly CLASS_NAME: string;
10
- /**
11
- * The server config.
12
- */
13
- protected readonly _config: IEngineServerConfig;
14
12
  /**
15
13
  * Create a new instance of EngineServer.
16
14
  * @param options The options for the engine.
17
- * @param options.server The server options for the engine.
18
15
  * @param options.engineCore The engine core to serve from.
19
16
  */
20
17
  constructor(options: {
21
- engineCore: IEngineCore;
22
- server?: IEngineServerConfig;
18
+ engineCore: IEngineCore<T>;
23
19
  });
24
20
  /**
25
21
  * Add a REST route generator.
26
22
  * @param type The type to add the generator for.
27
23
  * @param typeConfig The type config.
28
- * @param generator The generator to add.
24
+ * @param module The module containing the generator.
25
+ * @param method The method to call on the module.
29
26
  */
30
- addRestRouteGenerator(type: string, typeConfig: IEngineCoreTypeConfig[] | undefined, generator: RestRouteGenerator): void;
27
+ addRestRouteGenerator(type: string, typeConfig: IEngineCoreTypeConfig[] | undefined, module: string, method: string): void;
31
28
  /**
32
29
  * Add a socket route generator.
33
30
  * @param type The type to add the generator for.
34
31
  * @param typeConfig The type config.
35
- * @param generator The generator to add.
32
+ * @param module The module containing the generator.
33
+ * @param method The method to call on the module.
34
+ */
35
+ addSocketRouteGenerator(type: string, typeConfig: IEngineCoreTypeConfig[] | undefined, module: string, method: string): void;
36
+ /**
37
+ * Get the built REST routes.
38
+ * @returns The REST routes.
36
39
  */
37
- addSocketRouteGenerator(type: string, typeConfig: IEngineCoreTypeConfig[] | undefined, generator: SocketRouteGenerator): void;
40
+ getRestRoutes(): IRestRoute[];
41
+ /**
42
+ * Get the built socket routes.
43
+ * @returns The socket routes.
44
+ */
45
+ getSocketRoutes(): ISocketRoute[];
38
46
  /**
39
47
  * Start the engine server.
40
- * @returns Nothing.
48
+ * @returns True if the start was successful.
41
49
  */
42
- start(): Promise<void>;
50
+ start(): Promise<boolean>;
43
51
  /**
44
52
  * Stop the engine server.
45
53
  * @returns Nothing.
@@ -1,3 +1,2 @@
1
1
  export * from "./engineServer";
2
- export * from "./models/IEngineServerEnvironmentVariables";
3
- export * from "./utils/engineServerEnvBuilder";
2
+ export * from "./utils/engineServerConfigHelper";
@@ -0,0 +1,11 @@
1
+ import type { IEngineServerConfig } from "@twin.org/engine-server-types";
2
+ /**
3
+ * Adds the rest paths to the server config.
4
+ * @param serverConfig The server config.
5
+ */
6
+ export declare function addDefaultRestPaths(serverConfig: IEngineServerConfig): void;
7
+ /**
8
+ * Adds the socket paths to the server config.
9
+ * @param serverConfig The server config.
10
+ */
11
+ export declare function addDefaultSocketPaths(serverConfig: IEngineServerConfig): void;
package/docs/changelog.md CHANGED
@@ -1,5 +1,372 @@
1
1
  # @twin.org/engine-server - Changelog
2
2
 
3
- ## v0.0.1-next.9
3
+ ## 0.0.1 (2025-07-11)
4
+
5
+
6
+ ### Features
7
+
8
+ * add federated catalogue ([1b15dd0](https://github.com/twinfoundation/engine/commit/1b15dd059a11446457651c411a73145fab37f025))
9
+ * add mimeTypeProcessors and disableNodeIdentity ([bb7e81e](https://github.com/twinfoundation/engine/commit/bb7e81e2036fe042068a5645ec59b22e20d33aad))
10
+ * add task scheduler ([0951107](https://github.com/twinfoundation/engine/commit/09511073ad042194a45206303f0ef31d8d6af5db))
11
+ * expose default rest and socket path creation ([e6c6e26](https://github.com/twinfoundation/engine/commit/e6c6e266c8017212a74d4997e2e335347457a2bc))
12
+ * iota rebased release ([474d92b](https://github.com/twinfoundation/engine/commit/474d92b352f4ccc431a4f138afee2ee89824664d))
13
+ * modifying the engine to run the new services ([#10](https://github.com/twinfoundation/engine/issues/10)) ([6f7141f](https://github.com/twinfoundation/engine/commit/6f7141fe0a6d05c725066b274bcc18b5490e580b))
14
+ * move environment variable processing to node level ([2223c12](https://github.com/twinfoundation/engine/commit/2223c12f49f3d34051ecec9687351aa5dd094e54))
15
+ * release to production ([3a4acd1](https://github.com/twinfoundation/engine/commit/3a4acd1f6c66b841d80b6fd3bc1a439a77148fa5))
16
+ * release to production ([5559958](https://github.com/twinfoundation/engine/commit/5559958e2128e6ec3a81e779d1ebd3f370bbb081))
17
+ * update dependencies ([97c9f64](https://github.com/twinfoundation/engine/commit/97c9f64b6ef096963bcc5de338a2a9e99bdc1a11))
18
+ * use shared store mechanism ([#2](https://github.com/twinfoundation/engine/issues/2)) ([9eed8d7](https://github.com/twinfoundation/engine/commit/9eed8d7766388479b42f03e2542fe761f2156408))
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * method docs ([fb3d73f](https://github.com/twinfoundation/engine/commit/fb3d73fa9e71ab392378fe7bad7a3677e5e7b132))
24
+ * use abbreviated docs path ([9258a72](https://github.com/twinfoundation/engine/commit/9258a72adf266ddcc4f98002a07a7a162755f24b))
25
+
26
+
27
+ ### Dependencies
28
+
29
+ * The following workspace dependencies were updated
30
+ * dependencies
31
+ * @twin.org/engine-core bumped from 0.0.1-next.84 to 0.0.1
32
+ * @twin.org/engine-models bumped from 0.0.1-next.84 to 0.0.1
33
+ * @twin.org/engine-server-types bumped from 0.0.1-next.84 to 0.0.1
34
+ * devDependencies
35
+ * @twin.org/engine bumped from 0.0.1-next.84 to 0.0.1
36
+
37
+ ## [0.0.1-next.84](https://github.com/twinfoundation/engine/compare/engine-server-v0.0.1-next.83...engine-server-v0.0.1-next.84) (2025-07-11)
38
+
39
+
40
+ ### Features
41
+
42
+ * move environment variable processing to node level ([2223c12](https://github.com/twinfoundation/engine/commit/2223c12f49f3d34051ecec9687351aa5dd094e54))
43
+
44
+
45
+ ### Dependencies
46
+
47
+ * The following workspace dependencies were updated
48
+ * dependencies
49
+ * @twin.org/engine-core bumped from 0.0.1-next.83 to 0.0.1-next.84
50
+ * @twin.org/engine-models bumped from 0.0.1-next.83 to 0.0.1-next.84
51
+ * @twin.org/engine-server-types bumped from 0.0.1-next.83 to 0.0.1-next.84
52
+ * devDependencies
53
+ * @twin.org/engine bumped from 0.0.1-next.83 to 0.0.1-next.84
54
+
55
+ ## [0.0.1-next.83](https://github.com/twinfoundation/engine/compare/engine-server-v0.0.1-next.82...engine-server-v0.0.1-next.83) (2025-07-10)
56
+
57
+
58
+ ### Features
59
+
60
+ * add federated catalogue ([1b15dd0](https://github.com/twinfoundation/engine/commit/1b15dd059a11446457651c411a73145fab37f025))
61
+ * add mimeTypeProcessors and disableNodeIdentity ([bb7e81e](https://github.com/twinfoundation/engine/commit/bb7e81e2036fe042068a5645ec59b22e20d33aad))
62
+ * add task scheduler ([0951107](https://github.com/twinfoundation/engine/commit/09511073ad042194a45206303f0ef31d8d6af5db))
63
+ * expose default rest and socket path creation ([e6c6e26](https://github.com/twinfoundation/engine/commit/e6c6e266c8017212a74d4997e2e335347457a2bc))
64
+ * iota rebased release ([474d92b](https://github.com/twinfoundation/engine/commit/474d92b352f4ccc431a4f138afee2ee89824664d))
65
+ * modifying the engine to run the new services ([#10](https://github.com/twinfoundation/engine/issues/10)) ([6f7141f](https://github.com/twinfoundation/engine/commit/6f7141fe0a6d05c725066b274bcc18b5490e580b))
66
+ * update dependencies ([97c9f64](https://github.com/twinfoundation/engine/commit/97c9f64b6ef096963bcc5de338a2a9e99bdc1a11))
67
+ * use shared store mechanism ([#2](https://github.com/twinfoundation/engine/issues/2)) ([9eed8d7](https://github.com/twinfoundation/engine/commit/9eed8d7766388479b42f03e2542fe761f2156408))
68
+
69
+
70
+ ### Bug Fixes
71
+
72
+ * method docs ([fb3d73f](https://github.com/twinfoundation/engine/commit/fb3d73fa9e71ab392378fe7bad7a3677e5e7b132))
73
+ * use abbreviated docs path ([9258a72](https://github.com/twinfoundation/engine/commit/9258a72adf266ddcc4f98002a07a7a162755f24b))
74
+
75
+
76
+ ### Dependencies
77
+
78
+ * The following workspace dependencies were updated
79
+ * dependencies
80
+ * @twin.org/engine-core bumped from 0.0.1-next.81 to 0.0.1-next.83
81
+ * @twin.org/engine-models bumped from 0.0.1-next.81 to 0.0.1-next.83
82
+ * @twin.org/engine-server-types bumped from 0.0.1-next.81 to 0.0.1-next.83
83
+ * devDependencies
84
+ * @twin.org/engine bumped from 0.0.1-next.81 to 0.0.1-next.83
85
+
86
+ ## [0.0.1-next.81](https://github.com/twinfoundation/engine/compare/engine-server-v0.0.1-next.80...engine-server-v0.0.1-next.81) (2025-07-07)
87
+
88
+
89
+ ### Miscellaneous Chores
90
+
91
+ * **engine-server:** Synchronize repo versions
92
+
93
+
94
+ ### Dependencies
95
+
96
+ * The following workspace dependencies were updated
97
+ * dependencies
98
+ * @twin.org/engine-core bumped from 0.0.1-next.80 to 0.0.1-next.81
99
+ * @twin.org/engine-models bumped from 0.0.1-next.80 to 0.0.1-next.81
100
+ * @twin.org/engine-server-types bumped from 0.0.1-next.80 to 0.0.1-next.81
101
+ * devDependencies
102
+ * @twin.org/engine bumped from 0.0.1-next.80 to 0.0.1-next.81
103
+
104
+ ## [0.0.1-next.80](https://github.com/twinfoundation/engine/compare/engine-server-v0.0.1-next.79...engine-server-v0.0.1-next.80) (2025-06-23)
105
+
106
+
107
+ ### Features
108
+
109
+ * add task scheduler ([0951107](https://github.com/twinfoundation/engine/commit/09511073ad042194a45206303f0ef31d8d6af5db))
110
+
111
+
112
+ ### Dependencies
113
+
114
+ * The following workspace dependencies were updated
115
+ * dependencies
116
+ * @twin.org/engine-core bumped from 0.0.1-next.79 to 0.0.1-next.80
117
+ * @twin.org/engine-models bumped from 0.0.1-next.79 to 0.0.1-next.80
118
+ * @twin.org/engine-server-types bumped from 0.0.1-next.79 to 0.0.1-next.80
119
+ * devDependencies
120
+ * @twin.org/engine bumped from 0.0.1-next.79 to 0.0.1-next.80
121
+
122
+ ## [0.0.1-next.79](https://github.com/twinfoundation/engine/compare/engine-server-v0.0.1-next.78...engine-server-v0.0.1-next.79) (2025-06-18)
123
+
124
+
125
+ ### Miscellaneous Chores
126
+
127
+ * **engine-server:** Synchronize repo versions
128
+
129
+
130
+ ### Dependencies
131
+
132
+ * The following workspace dependencies were updated
133
+ * dependencies
134
+ * @twin.org/engine-core bumped from 0.0.1-next.78 to 0.0.1-next.79
135
+ * @twin.org/engine-models bumped from 0.0.1-next.78 to 0.0.1-next.79
136
+ * @twin.org/engine-server-types bumped from 0.0.1-next.78 to 0.0.1-next.79
137
+ * devDependencies
138
+ * @twin.org/engine bumped from 0.0.1-next.78 to 0.0.1-next.79
139
+
140
+ ## [0.0.1-next.78](https://github.com/twinfoundation/engine/compare/engine-server-v0.0.1-next.77...engine-server-v0.0.1-next.78) (2025-06-18)
141
+
142
+
143
+ ### Miscellaneous Chores
144
+
145
+ * **engine-server:** Synchronize repo versions
146
+
147
+
148
+ ### Dependencies
149
+
150
+ * The following workspace dependencies were updated
151
+ * dependencies
152
+ * @twin.org/engine-core bumped from 0.0.1-next.77 to 0.0.1-next.78
153
+ * @twin.org/engine-models bumped from 0.0.1-next.77 to 0.0.1-next.78
154
+ * @twin.org/engine-server-types bumped from 0.0.1-next.77 to 0.0.1-next.78
155
+ * devDependencies
156
+ * @twin.org/engine bumped from 0.0.1-next.77 to 0.0.1-next.78
157
+
158
+ ## [0.0.1-next.77](https://github.com/twinfoundation/engine/compare/engine-server-v0.0.1-next.76...engine-server-v0.0.1-next.77) (2025-06-18)
159
+
160
+
161
+ ### Miscellaneous Chores
162
+
163
+ * **engine-server:** Synchronize repo versions
164
+
165
+
166
+ ### Dependencies
167
+
168
+ * The following workspace dependencies were updated
169
+ * dependencies
170
+ * @twin.org/engine-core bumped from 0.0.1-next.76 to 0.0.1-next.77
171
+ * @twin.org/engine-models bumped from 0.0.1-next.76 to 0.0.1-next.77
172
+ * @twin.org/engine-server-types bumped from 0.0.1-next.76 to 0.0.1-next.77
173
+ * devDependencies
174
+ * @twin.org/engine bumped from 0.0.1-next.76 to 0.0.1-next.77
175
+
176
+ ## [0.0.1-next.76](https://github.com/twinfoundation/engine/compare/engine-server-v0.0.1-next.75...engine-server-v0.0.1-next.76) (2025-06-12)
177
+
178
+
179
+ ### Features
180
+
181
+ * update dependencies ([97c9f64](https://github.com/twinfoundation/engine/commit/97c9f64b6ef096963bcc5de338a2a9e99bdc1a11))
182
+
183
+
184
+ ### Dependencies
185
+
186
+ * The following workspace dependencies were updated
187
+ * dependencies
188
+ * @twin.org/engine-core bumped from 0.0.1-next.75 to 0.0.1-next.76
189
+ * @twin.org/engine-models bumped from 0.0.1-next.75 to 0.0.1-next.76
190
+ * @twin.org/engine-server-types bumped from 0.0.1-next.75 to 0.0.1-next.76
191
+ * devDependencies
192
+ * @twin.org/engine bumped from 0.0.1-next.75 to 0.0.1-next.76
193
+
194
+ ## [0.0.1-next.75](https://github.com/twinfoundation/engine/compare/engine-server-v0.0.1-next.74...engine-server-v0.0.1-next.75) (2025-05-29)
195
+
196
+
197
+ ### Features
198
+
199
+ * modifying the engine to run the new services ([#10](https://github.com/twinfoundation/engine/issues/10)) ([6f7141f](https://github.com/twinfoundation/engine/commit/6f7141fe0a6d05c725066b274bcc18b5490e580b))
200
+
201
+
202
+ ### Dependencies
203
+
204
+ * The following workspace dependencies were updated
205
+ * dependencies
206
+ * @twin.org/engine-core bumped from 0.0.1-next.74 to 0.0.1-next.75
207
+ * @twin.org/engine-models bumped from 0.0.1-next.74 to 0.0.1-next.75
208
+ * @twin.org/engine-server-types bumped from 0.0.1-next.74 to 0.0.1-next.75
209
+ * devDependencies
210
+ * @twin.org/engine bumped from 0.0.1-next.74 to 0.0.1-next.75
211
+
212
+ ## [0.0.1-next.74](https://github.com/twinfoundation/engine/compare/engine-server-v0.0.1-next.73...engine-server-v0.0.1-next.74) (2025-05-23)
213
+
214
+
215
+ ### Features
216
+
217
+ * add federated catalogue ([1b15dd0](https://github.com/twinfoundation/engine/commit/1b15dd059a11446457651c411a73145fab37f025))
218
+
219
+
220
+ ### Dependencies
221
+
222
+ * The following workspace dependencies were updated
223
+ * dependencies
224
+ * @twin.org/engine-core bumped from 0.0.1-next.73 to 0.0.1-next.74
225
+ * @twin.org/engine-models bumped from 0.0.1-next.73 to 0.0.1-next.74
226
+ * @twin.org/engine-server-types bumped from 0.0.1-next.73 to 0.0.1-next.74
227
+ * devDependencies
228
+ * @twin.org/engine bumped from 0.0.1-next.73 to 0.0.1-next.74
229
+
230
+ ## [0.0.1-next.73](https://github.com/twinfoundation/engine/compare/engine-server-v0.0.1-next.72...engine-server-v0.0.1-next.73) (2025-05-22)
231
+
232
+
233
+ ### Miscellaneous Chores
234
+
235
+ * **engine-server:** 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.1-next.72 to 0.0.1-next.73
243
+ * @twin.org/engine-models bumped from 0.0.1-next.72 to 0.0.1-next.73
244
+ * @twin.org/engine-server-types bumped from 0.0.1-next.72 to 0.0.1-next.73
245
+ * devDependencies
246
+ * @twin.org/engine bumped from 0.0.1-next.72 to 0.0.1-next.73
247
+
248
+ ## [0.0.1-next.72](https://github.com/twinfoundation/engine/compare/engine-server-v0.0.1-next.71...engine-server-v0.0.1-next.72) (2025-05-06)
249
+
250
+
251
+ ### Features
252
+
253
+ * add mimeTypeProcessors and disableNodeIdentity ([bb7e81e](https://github.com/twinfoundation/engine/commit/bb7e81e2036fe042068a5645ec59b22e20d33aad))
254
+ * expose default rest and socket path creation ([e6c6e26](https://github.com/twinfoundation/engine/commit/e6c6e266c8017212a74d4997e2e335347457a2bc))
255
+ * iota rebased release ([474d92b](https://github.com/twinfoundation/engine/commit/474d92b352f4ccc431a4f138afee2ee89824664d))
256
+ * use shared store mechanism ([#2](https://github.com/twinfoundation/engine/issues/2)) ([9eed8d7](https://github.com/twinfoundation/engine/commit/9eed8d7766388479b42f03e2542fe761f2156408))
257
+
258
+
259
+ ### Bug Fixes
260
+
261
+ * method docs ([fb3d73f](https://github.com/twinfoundation/engine/commit/fb3d73fa9e71ab392378fe7bad7a3677e5e7b132))
262
+ * use abbreviated docs path ([9258a72](https://github.com/twinfoundation/engine/commit/9258a72adf266ddcc4f98002a07a7a162755f24b))
263
+
264
+
265
+ ### Dependencies
266
+
267
+ * The following workspace dependencies were updated
268
+ * dependencies
269
+ * @twin.org/engine-core bumped from 0.0.1-next.71 to 0.0.1-next.72
270
+ * @twin.org/engine-models bumped from 0.0.1-next.71 to 0.0.1-next.72
271
+ * @twin.org/engine-server-types bumped from 0.0.1-next.71 to 0.0.1-next.72
272
+ * devDependencies
273
+ * @twin.org/engine bumped from 0.0.1-next.71 to 0.0.1-next.72
274
+
275
+ ## [0.0.1-next.71](https://github.com/twinfoundation/engine/compare/engine-server-v0.0.1-next.70...engine-server-v0.0.1-next.71) (2025-05-06)
276
+
277
+
278
+ ### Features
279
+
280
+ * iota rebased release ([474d92b](https://github.com/twinfoundation/engine/commit/474d92b352f4ccc431a4f138afee2ee89824664d))
281
+
282
+
283
+ ### Dependencies
284
+
285
+ * The following workspace dependencies were updated
286
+ * dependencies
287
+ * @twin.org/engine-core bumped from 0.0.1-next.70 to 0.0.1-next.71
288
+ * @twin.org/engine-models bumped from 0.0.1-next.70 to 0.0.1-next.71
289
+ * @twin.org/engine-server-types bumped from 0.0.1-next.70 to 0.0.1-next.71
290
+ * devDependencies
291
+ * @twin.org/engine bumped from 0.0.1-next.70 to 0.0.1-next.71
292
+
293
+ ## [0.0.1-next.70](https://github.com/twinfoundation/engine/compare/engine-server-v0.0.1-next.69...engine-server-v0.0.1-next.70) (2025-04-28)
294
+
295
+
296
+ ### Miscellaneous Chores
297
+
298
+ * **engine-server:** Synchronize repo versions
299
+
300
+
301
+ ### Dependencies
302
+
303
+ * The following workspace dependencies were updated
304
+ * dependencies
305
+ * @twin.org/engine-core bumped from 0.0.1-next.69 to 0.0.1-next.70
306
+ * @twin.org/engine-models bumped from 0.0.1-next.69 to 0.0.1-next.70
307
+ * @twin.org/engine-server-types bumped from 0.0.1-next.69 to 0.0.1-next.70
308
+ * devDependencies
309
+ * @twin.org/engine bumped from 0.0.1-next.69 to 0.0.1-next.70
310
+
311
+ ## [0.0.1-next.69](https://github.com/twinfoundation/engine/compare/engine-server-v0.0.1-next.68...engine-server-v0.0.1-next.69) (2025-04-25)
312
+
313
+
314
+ ### Features
315
+
316
+ * expose default rest and socket path creation ([e6c6e26](https://github.com/twinfoundation/engine/commit/e6c6e266c8017212a74d4997e2e335347457a2bc))
317
+
318
+
319
+ ### Bug Fixes
320
+
321
+ * use abbreviated docs path ([9258a72](https://github.com/twinfoundation/engine/commit/9258a72adf266ddcc4f98002a07a7a162755f24b))
322
+
323
+
324
+ ### Dependencies
325
+
326
+ * The following workspace dependencies were updated
327
+ * dependencies
328
+ * @twin.org/engine-core bumped from 0.0.1-next.68 to 0.0.1-next.69
329
+ * @twin.org/engine-models bumped from 0.0.1-next.68 to 0.0.1-next.69
330
+ * @twin.org/engine-server-types bumped from 0.0.1-next.68 to 0.0.1-next.69
331
+ * devDependencies
332
+ * @twin.org/engine bumped from 0.0.1-next.68 to 0.0.1-next.69
333
+
334
+ ## [0.0.1-next.68](https://github.com/twinfoundation/engine/compare/engine-server-v0.0.1-next.67...engine-server-v0.0.1-next.68) (2025-04-17)
335
+
336
+
337
+ ### Features
338
+
339
+ * use shared store mechanism ([#2](https://github.com/twinfoundation/engine/issues/2)) ([9eed8d7](https://github.com/twinfoundation/engine/commit/9eed8d7766388479b42f03e2542fe761f2156408))
340
+
341
+
342
+ ### Dependencies
343
+
344
+ * The following workspace dependencies were updated
345
+ * dependencies
346
+ * @twin.org/engine-core bumped from 0.0.1-next.67 to 0.0.1-next.68
347
+ * @twin.org/engine-models bumped from 0.0.1-next.67 to 0.0.1-next.68
348
+ * @twin.org/engine-server-types bumped from 0.0.1-next.67 to 0.0.1-next.68
349
+ * devDependencies
350
+ * @twin.org/engine bumped from 0.0.1-next.67 to 0.0.1-next.68
351
+
352
+ ## [0.0.1-next.67](https://github.com/twinfoundation/engine/compare/engine-server-v0.0.1-next.66...engine-server-v0.0.1-next.67) (2025-03-28)
353
+
354
+
355
+ ### Features
356
+
357
+ * add mimeTypeProcessors and disableNodeIdentity ([bb7e81e](https://github.com/twinfoundation/engine/commit/bb7e81e2036fe042068a5645ec59b22e20d33aad))
358
+
359
+
360
+ ### Dependencies
361
+
362
+ * The following workspace dependencies were updated
363
+ * dependencies
364
+ * @twin.org/engine-core bumped from 0.0.1-next.66 to 0.0.1-next.67
365
+ * @twin.org/engine-models bumped from 0.0.1-next.66 to 0.0.1-next.67
366
+ * @twin.org/engine-server-types bumped from 0.0.1-next.66 to 0.0.1-next.67
367
+ * devDependencies
368
+ * @twin.org/engine bumped from 0.0.1-next.66 to 0.0.1-next.67
369
+
370
+ ## v0.0.1-next.66
4
371
 
5
372
  - Initial Release
@@ -1,36 +1,40 @@
1
- # Class: EngineServer
1
+ # Class: EngineServer\<T\>
2
2
 
3
3
  Server for the engine.
4
4
 
5
+ ## Type Parameters
6
+
7
+ ### T
8
+
9
+ `T` *extends* `IEngineServerConfig` = `IEngineServerConfig`
10
+
5
11
  ## Implements
6
12
 
7
13
  - `IEngineServer`
8
14
 
9
15
  ## Constructors
10
16
 
11
- ### new EngineServer()
17
+ ### Constructor
12
18
 
13
- > **new EngineServer**(`options`): [`EngineServer`](EngineServer.md)
19
+ > **new EngineServer**\<`T`\>(`options`): `EngineServer`\<`T`\>
14
20
 
15
21
  Create a new instance of EngineServer.
16
22
 
17
23
  #### Parameters
18
24
 
19
- **options**
25
+ ##### options
20
26
 
21
27
  The options for the engine.
22
28
 
23
- **options.engineCore**: `IEngineCore`\<`IEngineState`\>
29
+ ###### engineCore
24
30
 
25
- The engine core to serve from.
26
-
27
- • **options.server?**: `IEngineServerConfig`
31
+ `IEngineCore`\<`T`\>
28
32
 
29
- The server options for the engine.
33
+ The engine core to serve from.
30
34
 
31
35
  #### Returns
32
36
 
33
- [`EngineServer`](EngineServer.md)
37
+ `EngineServer`\<`T`\>
34
38
 
35
39
  ## Properties
36
40
 
@@ -40,35 +44,39 @@ The server options for the engine.
40
44
 
41
45
  Runtime name for the class.
42
46
 
43
- ***
44
-
45
- ### \_config
46
-
47
- > `protected` `readonly` **\_config**: `IEngineServerConfig`
48
-
49
- The server config.
50
-
51
47
  ## Methods
52
48
 
53
49
  ### addRestRouteGenerator()
54
50
 
55
- > **addRestRouteGenerator**(`type`, `typeConfig`, `generator`): `void`
51
+ > **addRestRouteGenerator**(`type`, `typeConfig`, `module`, `method`): `void`
56
52
 
57
53
  Add a REST route generator.
58
54
 
59
55
  #### Parameters
60
56
 
61
- **type**: `string`
57
+ ##### type
58
+
59
+ `string`
62
60
 
63
61
  The type to add the generator for.
64
62
 
65
- **typeConfig**: `undefined` \| `IEngineCoreTypeConfig`[]
63
+ ##### typeConfig
66
64
 
67
65
  The type config.
68
66
 
69
- **generator**: `RestRouteGenerator`
67
+ `undefined` | `IEngineCoreTypeConfig`[]
68
+
69
+ ##### module
70
+
71
+ `string`
72
+
73
+ The module containing the generator.
74
+
75
+ ##### method
76
+
77
+ `string`
70
78
 
71
- The generator to add.
79
+ The method to call on the module.
72
80
 
73
81
  #### Returns
74
82
 
@@ -82,23 +90,35 @@ The generator to add.
82
90
 
83
91
  ### addSocketRouteGenerator()
84
92
 
85
- > **addSocketRouteGenerator**(`type`, `typeConfig`, `generator`): `void`
93
+ > **addSocketRouteGenerator**(`type`, `typeConfig`, `module`, `method`): `void`
86
94
 
87
95
  Add a socket route generator.
88
96
 
89
97
  #### Parameters
90
98
 
91
- **type**: `string`
99
+ ##### type
100
+
101
+ `string`
92
102
 
93
103
  The type to add the generator for.
94
104
 
95
- **typeConfig**: `undefined` \| `IEngineCoreTypeConfig`[]
105
+ ##### typeConfig
96
106
 
97
107
  The type config.
98
108
 
99
- **generator**: `SocketRouteGenerator`
109
+ `undefined` | `IEngineCoreTypeConfig`[]
110
+
111
+ ##### module
112
+
113
+ `string`
114
+
115
+ The module containing the generator.
116
+
117
+ ##### method
100
118
 
101
- The generator to add.
119
+ `string`
120
+
121
+ The method to call on the module.
102
122
 
103
123
  #### Returns
104
124
 
@@ -110,17 +130,45 @@ The generator to add.
110
130
 
111
131
  ***
112
132
 
133
+ ### getRestRoutes()
134
+
135
+ > **getRestRoutes**(): `IRestRoute`\<`any`, `any`\>[]
136
+
137
+ Get the built REST routes.
138
+
139
+ #### Returns
140
+
141
+ `IRestRoute`\<`any`, `any`\>[]
142
+
143
+ The REST routes.
144
+
145
+ ***
146
+
147
+ ### getSocketRoutes()
148
+
149
+ > **getSocketRoutes**(): `ISocketRoute`\<`any`, `any`\>[]
150
+
151
+ Get the built socket routes.
152
+
153
+ #### Returns
154
+
155
+ `ISocketRoute`\<`any`, `any`\>[]
156
+
157
+ The socket routes.
158
+
159
+ ***
160
+
113
161
  ### start()
114
162
 
115
- > **start**(): `Promise`\<`void`\>
163
+ > **start**(): `Promise`\<`boolean`\>
116
164
 
117
165
  Start the engine server.
118
166
 
119
167
  #### Returns
120
168
 
121
- `Promise`\<`void`\>
169
+ `Promise`\<`boolean`\>
122
170
 
123
- Nothing.
171
+ True if the start was successful.
124
172
 
125
173
  #### Implementation of
126
174
 
@@ -0,0 +1,17 @@
1
+ # Function: addDefaultRestPaths()
2
+
3
+ > **addDefaultRestPaths**(`serverConfig`): `void`
4
+
5
+ Adds the rest paths to the server config.
6
+
7
+ ## Parameters
8
+
9
+ ### serverConfig
10
+
11
+ `IEngineServerConfig`
12
+
13
+ The server config.
14
+
15
+ ## Returns
16
+
17
+ `void`
@@ -0,0 +1,17 @@
1
+ # Function: addDefaultSocketPaths()
2
+
3
+ > **addDefaultSocketPaths**(`serverConfig`): `void`
4
+
5
+ Adds the socket paths to the server config.
6
+
7
+ ## Parameters
8
+
9
+ ### serverConfig
10
+
11
+ `IEngineServerConfig`
12
+
13
+ The server config.
14
+
15
+ ## Returns
16
+
17
+ `void`