@twin.org/engine-models 0.0.2-next.10 → 0.0.2-next.12
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/types/index.d.ts +1 -0
- package/dist/types/models/config/IEngineModuleConfig.d.ts +30 -0
- package/dist/types/models/engineTypeInitialiser.d.ts +1 -1
- package/docs/changelog.md +14 -0
- package/docs/reference/index.md +1 -0
- package/docs/reference/interfaces/IEngineModuleConfig.md +59 -0
- package/docs/reference/type-aliases/EngineTypeInitialiser.md +2 -2
- package/docs/reference/type-aliases/IEngineCoreTypeConfig.md +1 -1
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from "./factories/engineServerFactory";
|
|
|
3
3
|
export * from "./models/config/IEngineCoreConfig";
|
|
4
4
|
export * from "./models/config/IEngineCoreTypeBaseConfig";
|
|
5
5
|
export * from "./models/config/IEngineCoreTypeConfig";
|
|
6
|
+
export * from "./models/config/IEngineModuleConfig";
|
|
6
7
|
export * from "./models/engineTypeInitialiser";
|
|
7
8
|
export * from "./models/IEngineCore";
|
|
8
9
|
export * from "./models/IEngineCoreClone";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration for an engine module.
|
|
3
|
+
*/
|
|
4
|
+
export interface IEngineModuleConfig {
|
|
5
|
+
/**
|
|
6
|
+
* The unique identifier for the module.
|
|
7
|
+
*/
|
|
8
|
+
id: string;
|
|
9
|
+
/**
|
|
10
|
+
* The module that implements the additional component.
|
|
11
|
+
*/
|
|
12
|
+
moduleName: string;
|
|
13
|
+
/**
|
|
14
|
+
* The class name of the additional component.
|
|
15
|
+
*/
|
|
16
|
+
className: string;
|
|
17
|
+
/**
|
|
18
|
+
* Additional dependencies required by the component.
|
|
19
|
+
*/
|
|
20
|
+
dependencies?: {
|
|
21
|
+
propertyName: string;
|
|
22
|
+
componentName: string;
|
|
23
|
+
features?: string[];
|
|
24
|
+
isOptional?: boolean;
|
|
25
|
+
}[];
|
|
26
|
+
/**
|
|
27
|
+
* Additional configuration for the component.
|
|
28
|
+
*/
|
|
29
|
+
config?: unknown;
|
|
30
|
+
}
|
|
@@ -4,4 +4,4 @@ import type { IEngineCoreContext } from "./IEngineCoreContext";
|
|
|
4
4
|
/**
|
|
5
5
|
* Method definition for the engine type initialiser.
|
|
6
6
|
*/
|
|
7
|
-
export type EngineTypeInitialiser<T extends IEngineCoreTypeBaseConfig = IEngineCoreTypeBaseConfig> = (engineCore: IEngineCore, context: IEngineCoreContext, instanceConfig: T, overrideInstanceType?: string) => string | undefined
|
|
7
|
+
export type EngineTypeInitialiser<T extends IEngineCoreTypeBaseConfig = IEngineCoreTypeBaseConfig> = (engineCore: IEngineCore, context: IEngineCoreContext, instanceConfig: T, overrideInstanceType?: string) => Promise<string | undefined>;
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @twin.org/engine-models - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.12](https://github.com/twinfoundation/engine/compare/engine-models-v0.0.2-next.11...engine-models-v0.0.2-next.12) (2025-09-05)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add rights management negotiation ([84ef46b](https://github.com/twinfoundation/engine/commit/84ef46bff110611a19512793425c8c873ee2a590))
|
|
9
|
+
|
|
10
|
+
## [0.0.2-next.11](https://github.com/twinfoundation/engine/compare/engine-models-v0.0.2-next.10...engine-models-v0.0.2-next.11) (2025-08-29)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* eslint migration to flat config ([6b978da](https://github.com/twinfoundation/engine/commit/6b978daf777a615d7758b63c3df57d5a376f6dfb))
|
|
16
|
+
|
|
3
17
|
## [0.0.2-next.10](https://github.com/twinfoundation/engine/compare/engine-models-v0.0.2-next.9...engine-models-v0.0.2-next.10) (2025-08-26)
|
|
4
18
|
|
|
5
19
|
|
package/docs/reference/index.md
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
- [IEngineStateStorage](interfaces/IEngineStateStorage.md)
|
|
11
11
|
- [IEngineCoreConfig](interfaces/IEngineCoreConfig.md)
|
|
12
12
|
- [IEngineCoreTypeBaseConfig](interfaces/IEngineCoreTypeBaseConfig.md)
|
|
13
|
+
- [IEngineModuleConfig](interfaces/IEngineModuleConfig.md)
|
|
13
14
|
|
|
14
15
|
## Type Aliases
|
|
15
16
|
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Interface: IEngineModuleConfig
|
|
2
|
+
|
|
3
|
+
Configuration for an engine module.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### id
|
|
8
|
+
|
|
9
|
+
> **id**: `string`
|
|
10
|
+
|
|
11
|
+
The unique identifier for the module.
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### moduleName
|
|
16
|
+
|
|
17
|
+
> **moduleName**: `string`
|
|
18
|
+
|
|
19
|
+
The module that implements the additional component.
|
|
20
|
+
|
|
21
|
+
***
|
|
22
|
+
|
|
23
|
+
### className
|
|
24
|
+
|
|
25
|
+
> **className**: `string`
|
|
26
|
+
|
|
27
|
+
The class name of the additional component.
|
|
28
|
+
|
|
29
|
+
***
|
|
30
|
+
|
|
31
|
+
### dependencies?
|
|
32
|
+
|
|
33
|
+
> `optional` **dependencies**: `object`[]
|
|
34
|
+
|
|
35
|
+
Additional dependencies required by the component.
|
|
36
|
+
|
|
37
|
+
#### propertyName
|
|
38
|
+
|
|
39
|
+
> **propertyName**: `string`
|
|
40
|
+
|
|
41
|
+
#### componentName
|
|
42
|
+
|
|
43
|
+
> **componentName**: `string`
|
|
44
|
+
|
|
45
|
+
#### features?
|
|
46
|
+
|
|
47
|
+
> `optional` **features**: `string`[]
|
|
48
|
+
|
|
49
|
+
#### isOptional?
|
|
50
|
+
|
|
51
|
+
> `optional` **isOptional**: `boolean`
|
|
52
|
+
|
|
53
|
+
***
|
|
54
|
+
|
|
55
|
+
### config?
|
|
56
|
+
|
|
57
|
+
> `optional` **config**: `unknown`
|
|
58
|
+
|
|
59
|
+
Additional configuration for the component.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Type Alias: EngineTypeInitialiser()\<T\>
|
|
2
2
|
|
|
3
|
-
> **EngineTypeInitialiser**\<`T`\> = (`engineCore`, `context`, `instanceConfig`, `overrideInstanceType?`) => `string` \| `undefined
|
|
3
|
+
> **EngineTypeInitialiser**\<`T`\> = (`engineCore`, `context`, `instanceConfig`, `overrideInstanceType?`) => `Promise`\<`string` \| `undefined`\>
|
|
4
4
|
|
|
5
5
|
Method definition for the engine type initialiser.
|
|
6
6
|
|
|
@@ -30,4 +30,4 @@ Method definition for the engine type initialiser.
|
|
|
30
30
|
|
|
31
31
|
## Returns
|
|
32
32
|
|
|
33
|
-
`string` \| `undefined
|
|
33
|
+
`Promise`\<`string` \| `undefined`\>
|