@twin.org/engine 0.0.2-next.2 → 0.0.2-next.4
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/cjs/index.cjs
CHANGED
|
@@ -89,8 +89,7 @@ class EngineConfigHelper {
|
|
|
89
89
|
* @param entitySchema The entity schema.
|
|
90
90
|
* @param restPath The rest path to serve the entity storage from, leave undefined for no endpoints.
|
|
91
91
|
* @param options Additional options.
|
|
92
|
-
* @param options.
|
|
93
|
-
* @param options.includeUserIdentity Whether to include the user identity in the entity, defaults to true.
|
|
92
|
+
* @param options.partitionPerUser Whether to partition the user identity in the data, defaults to false.
|
|
94
93
|
*/
|
|
95
94
|
static addCustomEntityStorage(engineConfig, entityTypeName, entitySchema, restPath, options) {
|
|
96
95
|
core.Guards.object(EngineConfigHelper.CLASS_NAME, "engineConfig", engineConfig);
|
|
@@ -103,8 +102,7 @@ class EngineConfigHelper {
|
|
|
103
102
|
options: {
|
|
104
103
|
entityStorageType: entityTypeName,
|
|
105
104
|
config: {
|
|
106
|
-
|
|
107
|
-
includeUserIdentity: options?.includeUserIdentity ?? true
|
|
105
|
+
partitionPerUser: options?.partitionPerUser
|
|
108
106
|
}
|
|
109
107
|
},
|
|
110
108
|
overrideInstanceType: core.StringHelper.kebabCase(entityTypeName),
|
package/dist/esm/index.mjs
CHANGED
|
@@ -87,8 +87,7 @@ class EngineConfigHelper {
|
|
|
87
87
|
* @param entitySchema The entity schema.
|
|
88
88
|
* @param restPath The rest path to serve the entity storage from, leave undefined for no endpoints.
|
|
89
89
|
* @param options Additional options.
|
|
90
|
-
* @param options.
|
|
91
|
-
* @param options.includeUserIdentity Whether to include the user identity in the entity, defaults to true.
|
|
90
|
+
* @param options.partitionPerUser Whether to partition the user identity in the data, defaults to false.
|
|
92
91
|
*/
|
|
93
92
|
static addCustomEntityStorage(engineConfig, entityTypeName, entitySchema, restPath, options) {
|
|
94
93
|
Guards.object(EngineConfigHelper.CLASS_NAME, "engineConfig", engineConfig);
|
|
@@ -101,8 +100,7 @@ class EngineConfigHelper {
|
|
|
101
100
|
options: {
|
|
102
101
|
entityStorageType: entityTypeName,
|
|
103
102
|
config: {
|
|
104
|
-
|
|
105
|
-
includeUserIdentity: options?.includeUserIdentity ?? true
|
|
103
|
+
partitionPerUser: options?.partitionPerUser
|
|
106
104
|
}
|
|
107
105
|
},
|
|
108
106
|
overrideInstanceType: StringHelper.kebabCase(entityTypeName),
|
|
@@ -15,11 +15,9 @@ export declare class EngineConfigHelper {
|
|
|
15
15
|
* @param entitySchema The entity schema.
|
|
16
16
|
* @param restPath The rest path to serve the entity storage from, leave undefined for no endpoints.
|
|
17
17
|
* @param options Additional options.
|
|
18
|
-
* @param options.
|
|
19
|
-
* @param options.includeUserIdentity Whether to include the user identity in the entity, defaults to true.
|
|
18
|
+
* @param options.partitionPerUser Whether to partition the user identity in the data, defaults to false.
|
|
20
19
|
*/
|
|
21
20
|
static addCustomEntityStorage<T>(engineConfig: IEngineConfig, entityTypeName: string, entitySchema: IEntitySchema<T>, restPath?: string, options?: {
|
|
22
|
-
|
|
23
|
-
includeUserIdentity?: true;
|
|
21
|
+
partitionPerUser?: boolean;
|
|
24
22
|
}): void;
|
|
25
23
|
}
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @twin.org/engine - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.4](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.3...engine-v0.0.2-next.4) (2025-07-25)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add default logging component for web server ([8ad94f0](https://github.com/twinfoundation/engine/commit/8ad94f0d2d9a5241a8854b1e59fb9a55ce310142))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/engine-core bumped from 0.0.2-next.3 to 0.0.2-next.4
|
|
16
|
+
* @twin.org/engine-types bumped from 0.0.2-next.3 to 0.0.2-next.4
|
|
17
|
+
|
|
18
|
+
## [0.0.2-next.3](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.2...engine-v0.0.2-next.3) (2025-07-24)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* update includeUserIdentity usage ([d34f597](https://github.com/twinfoundation/engine/commit/d34f597a61f9645a029411d2911bbda20ddc9eb9))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Dependencies
|
|
27
|
+
|
|
28
|
+
* The following workspace dependencies were updated
|
|
29
|
+
* dependencies
|
|
30
|
+
* @twin.org/engine-core bumped from 0.0.2-next.2 to 0.0.2-next.3
|
|
31
|
+
* @twin.org/engine-types bumped from 0.0.2-next.2 to 0.0.2-next.3
|
|
32
|
+
|
|
3
33
|
## [0.0.2-next.2](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.1...engine-v0.0.2-next.2) (2025-07-21)
|
|
4
34
|
|
|
5
35
|
|
|
@@ -64,17 +64,11 @@ The rest path to serve the entity storage from, leave undefined for no endpoints
|
|
|
64
64
|
|
|
65
65
|
Additional options.
|
|
66
66
|
|
|
67
|
-
######
|
|
67
|
+
###### partitionPerUser?
|
|
68
68
|
|
|
69
69
|
`boolean`
|
|
70
70
|
|
|
71
|
-
Whether to
|
|
72
|
-
|
|
73
|
-
###### includeUserIdentity?
|
|
74
|
-
|
|
75
|
-
`true`
|
|
76
|
-
|
|
77
|
-
Whether to include the user identity in the entity, defaults to true.
|
|
71
|
+
Whether to partition the user identity in the data, defaults to false.
|
|
78
72
|
|
|
79
73
|
#### Returns
|
|
80
74
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/engine",
|
|
3
|
-
"version": "0.0.2-next.
|
|
3
|
+
"version": "0.0.2-next.4",
|
|
4
4
|
"description": "Engine implementation.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@twin.org/core": "next",
|
|
18
|
-
"@twin.org/engine-core": "0.0.2-next.
|
|
19
|
-
"@twin.org/engine-types": "0.0.2-next.
|
|
18
|
+
"@twin.org/engine-core": "0.0.2-next.4",
|
|
19
|
+
"@twin.org/engine-types": "0.0.2-next.4",
|
|
20
20
|
"@twin.org/entity": "next"
|
|
21
21
|
},
|
|
22
22
|
"main": "./dist/cjs/index.cjs",
|