@twin.org/engine 0.0.2-next.2 → 0.0.2-next.20
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
|
@@ -5,6 +5,269 @@ var core = require('@twin.org/core');
|
|
|
5
5
|
var engineTypes = require('@twin.org/engine-types');
|
|
6
6
|
var entity = require('@twin.org/entity');
|
|
7
7
|
|
|
8
|
+
var coreTypeInitialisers = [
|
|
9
|
+
{
|
|
10
|
+
type: "loggingConnector",
|
|
11
|
+
module: "@twin.org/engine-types",
|
|
12
|
+
method: "initialiseLoggingConnector"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
type: "loggingComponent",
|
|
16
|
+
module: "@twin.org/engine-types",
|
|
17
|
+
method: "initialiseLoggingComponent"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
type: "backgroundTaskConnector",
|
|
21
|
+
module: "@twin.org/engine-types",
|
|
22
|
+
method: "initialiseBackgroundTaskConnector"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
type: "taskSchedulerComponent",
|
|
26
|
+
module: "@twin.org/engine-types",
|
|
27
|
+
method: "initialiseTaskSchedulerComponent"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
type: "eventBusConnector",
|
|
31
|
+
module: "@twin.org/engine-types",
|
|
32
|
+
method: "initialiseEventBusConnector"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
type: "eventBusComponent",
|
|
36
|
+
module: "@twin.org/engine-types",
|
|
37
|
+
method: "initialiseEventBusComponent"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
type: "telemetryConnector",
|
|
41
|
+
module: "@twin.org/engine-types",
|
|
42
|
+
method: "initialiseTelemetryConnector"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
type: "telemetryComponent",
|
|
46
|
+
module: "@twin.org/engine-types",
|
|
47
|
+
method: "initialiseTelemetryComponent"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
type: "messagingEmailConnector",
|
|
51
|
+
module: "@twin.org/engine-types",
|
|
52
|
+
method: "initialiseMessagingEmailConnector"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
type: "messagingSmsConnector",
|
|
56
|
+
module: "@twin.org/engine-types",
|
|
57
|
+
method: "initialiseMessagingSmsConnector"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
type: "messagingPushNotificationConnector",
|
|
61
|
+
module: "@twin.org/engine-types",
|
|
62
|
+
method: "initialiseMessagingPushNotificationConnector"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
type: "messagingAdminComponent",
|
|
66
|
+
module: "@twin.org/engine-types",
|
|
67
|
+
method: "initialiseMessagingAdminComponent"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
type: "messagingComponent",
|
|
71
|
+
module: "@twin.org/engine-types",
|
|
72
|
+
method: "initialiseMessagingComponent"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
type: "entityStorageComponent",
|
|
76
|
+
module: "@twin.org/engine-types",
|
|
77
|
+
method: "initialiseEntityStorageComponent"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
type: "vaultConnector",
|
|
81
|
+
module: "@twin.org/engine-types",
|
|
82
|
+
method: "initialiseVaultConnector"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
type: "blobStorageConnector",
|
|
86
|
+
module: "@twin.org/engine-types",
|
|
87
|
+
method: "initialiseBlobStorageConnector"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
type: "blobStorageComponent",
|
|
91
|
+
module: "@twin.org/engine-types",
|
|
92
|
+
method: "initialiseBlobStorageComponent"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
type: "verifiableStorageConnector",
|
|
96
|
+
module: "@twin.org/engine-types",
|
|
97
|
+
method: "initialiseVerifiableStorageConnector"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
type: "verifiableStorageComponent",
|
|
101
|
+
module: "@twin.org/engine-types",
|
|
102
|
+
method: "initialiseVerifiableStorageComponent"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
type: "faucetConnector",
|
|
106
|
+
module: "@twin.org/engine-types",
|
|
107
|
+
method: "initialiseFaucetConnector"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
type: "walletConnector",
|
|
111
|
+
module: "@twin.org/engine-types",
|
|
112
|
+
method: "initialiseWalletConnector"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
type: "identityConnector",
|
|
116
|
+
module: "@twin.org/engine-types",
|
|
117
|
+
method: "initialiseIdentityConnector"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
type: "identityComponent",
|
|
121
|
+
module: "@twin.org/engine-types",
|
|
122
|
+
method: "initialiseIdentityComponent"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
type: "identityResolverConnector",
|
|
126
|
+
module: "@twin.org/engine-types",
|
|
127
|
+
method: "initialiseIdentityResolverConnector"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
type: "identityResolverComponent",
|
|
131
|
+
module: "@twin.org/engine-types",
|
|
132
|
+
method: "initialiseIdentityResolverComponent"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
type: "identityProfileConnector",
|
|
136
|
+
module: "@twin.org/engine-types",
|
|
137
|
+
method: "initialiseIdentityProfileConnector"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
type: "identityProfileComponent",
|
|
141
|
+
module: "@twin.org/engine-types",
|
|
142
|
+
method: "initialiseIdentityProfileComponent"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
type: "nftConnector",
|
|
146
|
+
module: "@twin.org/engine-types",
|
|
147
|
+
method: "initialiseNftConnector"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
type: "nftComponent",
|
|
151
|
+
module: "@twin.org/engine-types",
|
|
152
|
+
method: "initialiseNftComponent"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
type: "immutableProofComponent",
|
|
156
|
+
module: "@twin.org/engine-types",
|
|
157
|
+
method: "initialiseImmutableProofComponent"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
type: "attestationConnector",
|
|
161
|
+
module: "@twin.org/engine-types",
|
|
162
|
+
method: "initialiseAttestationConnector"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
type: "attestationComponent",
|
|
166
|
+
module: "@twin.org/engine-types",
|
|
167
|
+
method: "initialiseAttestationComponent"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
type: "auditableItemGraphComponent",
|
|
171
|
+
module: "@twin.org/engine-types",
|
|
172
|
+
method: "initialiseAuditableItemGraphComponent"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
type: "auditableItemStreamComponent",
|
|
176
|
+
module: "@twin.org/engine-types",
|
|
177
|
+
method: "initialiseAuditableItemStreamComponent"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
type: "dataConverterConnector",
|
|
181
|
+
module: "@twin.org/engine-types",
|
|
182
|
+
method: "initialiseDataConverterConnector"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
type: "dataExtractorConnector",
|
|
186
|
+
module: "@twin.org/engine-types",
|
|
187
|
+
method: "initialiseDataExtractorConnector"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
type: "dataProcessingComponent",
|
|
191
|
+
module: "@twin.org/engine-types",
|
|
192
|
+
method: "initialiseDataProcessingComponent"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
type: "documentManagementComponent",
|
|
196
|
+
module: "@twin.org/engine-types",
|
|
197
|
+
method: "initialiseDocumentManagementComponent"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
type: "authenticationGeneratorComponent",
|
|
201
|
+
module: "@twin.org/engine-types",
|
|
202
|
+
method: "initialiseAuthenticationGeneratorComponent"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
type: "rightsManagementPapComponent",
|
|
206
|
+
module: "@twin.org/engine-types",
|
|
207
|
+
method: "initialiseRightsManagementPapComponent"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
type: "rightsManagementPmpComponent",
|
|
211
|
+
module: "@twin.org/engine-types",
|
|
212
|
+
method: "initialiseRightsManagementPmpComponent"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
type: "rightsManagementPxpComponent",
|
|
216
|
+
module: "@twin.org/engine-types",
|
|
217
|
+
method: "initialiseRightsManagementPxpComponent"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
type: "rightsManagementPipComponent",
|
|
221
|
+
module: "@twin.org/engine-types",
|
|
222
|
+
method: "initialiseRightsManagementPipComponent"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
type: "rightsManagementPdpComponent",
|
|
226
|
+
module: "@twin.org/engine-types",
|
|
227
|
+
method: "initialiseRightsManagementPdpComponent"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
type: "rightsManagementPepComponent",
|
|
231
|
+
module: "@twin.org/engine-types",
|
|
232
|
+
method: "initialiseRightsManagementPepComponent"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
type: "rightsManagementPnapComponent",
|
|
236
|
+
module: "@twin.org/engine-types",
|
|
237
|
+
method: "initialiseRightsManagementPnapComponent"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
type: "rightsManagementPnpComponent",
|
|
241
|
+
module: "@twin.org/engine-types",
|
|
242
|
+
method: "initialiseRightsManagementPnpComponent"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
type: "rightsManagementDapComponent",
|
|
246
|
+
module: "@twin.org/engine-types",
|
|
247
|
+
method: "initialiseRightsManagementDapComponent"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
type: "rightsManagementDarpComponent",
|
|
251
|
+
module: "@twin.org/engine-types",
|
|
252
|
+
method: "initialiseRightsManagementDarpComponent"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
type: "synchronisedStorageComponent",
|
|
256
|
+
module: "@twin.org/engine-types",
|
|
257
|
+
method: "initialiseSynchronisedStorageComponent"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
type: "federatedCatalogueComponent",
|
|
261
|
+
module: "@twin.org/engine-types",
|
|
262
|
+
method: "initialiseFederatedCatalogueComponent"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
type: "dataSpaceConnectorComponent",
|
|
266
|
+
module: "@twin.org/engine-types",
|
|
267
|
+
method: "initialiseDataSpaceConnectorComponent"
|
|
268
|
+
}
|
|
269
|
+
];
|
|
270
|
+
|
|
8
271
|
// Copyright 2024 IOTA Stiftung.
|
|
9
272
|
// SPDX-License-Identifier: Apache-2.0.
|
|
10
273
|
/**
|
|
@@ -28,47 +291,9 @@ class Engine extends engineCore.EngineCore {
|
|
|
28
291
|
* @internal
|
|
29
292
|
*/
|
|
30
293
|
addCoreTypeInitialisers() {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
this.addTypeInitialiser("taskSchedulerComponent", this._context.config.types.taskSchedulerComponent, "@twin.org/engine-types", "initialiseTaskSchedulerComponent");
|
|
35
|
-
this.addTypeInitialiser("eventBusConnector", this._context.config.types.eventBusConnector, "@twin.org/engine-types", "initialiseEventBusConnector");
|
|
36
|
-
this.addTypeInitialiser("eventBusComponent", this._context.config.types.eventBusComponent, "@twin.org/engine-types", "initialiseEventBusComponent");
|
|
37
|
-
this.addTypeInitialiser("telemetryConnector", this._context.config.types.telemetryConnector, "@twin.org/engine-types", "initialiseTelemetryConnector");
|
|
38
|
-
this.addTypeInitialiser("telemetryComponent", this._context.config.types.telemetryComponent, "@twin.org/engine-types", "initialiseTelemetryComponent");
|
|
39
|
-
this.addTypeInitialiser("messagingEmailConnector", this._context.config.types.messagingEmailConnector, "@twin.org/engine-types", "initialiseMessagingEmailConnector");
|
|
40
|
-
this.addTypeInitialiser("messagingSmsConnector", this._context.config.types.messagingSmsConnector, "@twin.org/engine-types", "initialiseMessagingSmsConnector");
|
|
41
|
-
this.addTypeInitialiser("messagingPushNotificationConnector", this._context.config.types.messagingPushNotificationConnector, "@twin.org/engine-types", "initialiseMessagingPushNotificationConnector");
|
|
42
|
-
this.addTypeInitialiser("messagingComponent", this._context.config.types.messagingComponent, "@twin.org/engine-types", "initialiseMessagingComponent");
|
|
43
|
-
this.addTypeInitialiser("entityStorageComponent", this._context.config.types.entityStorageComponent, "@twin.org/engine-types", "initialiseEntityStorageComponent");
|
|
44
|
-
this.addTypeInitialiser("vaultConnector", this._context.config.types.vaultConnector, "@twin.org/engine-types", "initialiseVaultConnector");
|
|
45
|
-
this.addTypeInitialiser("blobStorageConnector", this._context.config.types.blobStorageConnector, "@twin.org/engine-types", "initialiseBlobStorageConnector");
|
|
46
|
-
this.addTypeInitialiser("blobStorageComponent", this._context.config.types.blobStorageComponent, "@twin.org/engine-types", "initialiseBlobStorageComponent");
|
|
47
|
-
this.addTypeInitialiser("verifiableStorageConnector", this._context.config.types.verifiableStorageConnector, "@twin.org/engine-types", "initialiseVerifiableStorageConnector");
|
|
48
|
-
this.addTypeInitialiser("verifiableStorageComponent", this._context.config.types.verifiableStorageComponent, "@twin.org/engine-types", "initialiseVerifiableStorageComponent");
|
|
49
|
-
this.addTypeInitialiser("walletConnector", this._context.config.types.walletConnector, "@twin.org/engine-types", "initialiseWalletStorage");
|
|
50
|
-
this.addTypeInitialiser("faucetConnector", this._context.config.types.faucetConnector, "@twin.org/engine-types", "initialiseFaucetConnector");
|
|
51
|
-
this.addTypeInitialiser("walletConnector", this._context.config.types.walletConnector, "@twin.org/engine-types", "initialiseWalletConnector");
|
|
52
|
-
this.addTypeInitialiser("identityConnector", this._context.config.types.identityConnector, "@twin.org/engine-types", "initialiseIdentityConnector");
|
|
53
|
-
this.addTypeInitialiser("identityComponent", this._context.config.types.identityComponent, "@twin.org/engine-types", "initialiseIdentityComponent");
|
|
54
|
-
this.addTypeInitialiser("identityResolverConnector", this._context.config.types.identityResolverConnector, "@twin.org/engine-types", "initialiseIdentityResolverConnector");
|
|
55
|
-
this.addTypeInitialiser("identityResolverComponent", this._context.config.types.identityResolverComponent, "@twin.org/engine-types", "initialiseIdentityResolverComponent");
|
|
56
|
-
this.addTypeInitialiser("identityProfileConnector", this._context.config.types.identityProfileConnector, "@twin.org/engine-types", "initialiseIdentityProfileConnector");
|
|
57
|
-
this.addTypeInitialiser("identityProfileComponent", this._context.config.types.identityProfileComponent, "@twin.org/engine-types", "initialiseIdentityProfileComponent");
|
|
58
|
-
this.addTypeInitialiser("nftConnector", this._context.config.types.nftConnector, "@twin.org/engine-types", "initialiseNftConnector");
|
|
59
|
-
this.addTypeInitialiser("nftComponent", this._context.config.types.nftComponent, "@twin.org/engine-types", "initialiseNftComponent");
|
|
60
|
-
this.addTypeInitialiser("immutableProofComponent", this._context.config.types.immutableProofComponent, "@twin.org/engine-types", "initialiseImmutableProofComponent");
|
|
61
|
-
this.addTypeInitialiser("attestationConnector", this._context.config.types.attestationConnector, "@twin.org/engine-types", "initialiseAttestationConnector");
|
|
62
|
-
this.addTypeInitialiser("attestationComponent", this._context.config.types.attestationComponent, "@twin.org/engine-types", "initialiseAttestationComponent");
|
|
63
|
-
this.addTypeInitialiser("auditableItemGraphComponent", this._context.config.types.auditableItemGraphComponent, "@twin.org/engine-types", "initialiseAuditableItemGraphComponent");
|
|
64
|
-
this.addTypeInitialiser("auditableItemStreamComponent", this._context.config.types.auditableItemStreamComponent, "@twin.org/engine-types", "initialiseAuditableItemStreamComponent");
|
|
65
|
-
this.addTypeInitialiser("dataConverterConnector", this._context.config.types.dataConverterConnector, "@twin.org/engine-types", "initialiseDataConverterConnector");
|
|
66
|
-
this.addTypeInitialiser("dataExtractorConnector", this._context.config.types.dataExtractorConnector, "@twin.org/engine-types", "initialiseDataExtractorConnector");
|
|
67
|
-
this.addTypeInitialiser("dataProcessingComponent", this._context.config.types.dataProcessingComponent, "@twin.org/engine-types", "initialiseDataProcessingComponent");
|
|
68
|
-
this.addTypeInitialiser("documentManagementComponent", this._context.config.types.documentManagementComponent, "@twin.org/engine-types", "initialiseDocumentManagementComponent");
|
|
69
|
-
this.addTypeInitialiser("federatedCatalogueComponent", this._context.config.types.federatedCatalogueComponent, "@twin.org/engine-types", "initialiseFederatedCatalogueComponent");
|
|
70
|
-
this.addTypeInitialiser("rightsManagementPapComponent", this._context.config.types.rightsManagementPapComponent, "@twin.org/engine-types", "initialiseRightsManagementPapComponent");
|
|
71
|
-
this.addTypeInitialiser("rightsManagementComponent", this._context.config.types.rightsManagementComponent, "@twin.org/engine-types", "initialiseRightsManagementComponent");
|
|
294
|
+
for (const initializer of coreTypeInitialisers) {
|
|
295
|
+
this.addTypeInitialiser(initializer.type, initializer.module, initializer.method);
|
|
296
|
+
}
|
|
72
297
|
}
|
|
73
298
|
}
|
|
74
299
|
|
|
@@ -89,8 +314,7 @@ class EngineConfigHelper {
|
|
|
89
314
|
* @param entitySchema The entity schema.
|
|
90
315
|
* @param restPath The rest path to serve the entity storage from, leave undefined for no endpoints.
|
|
91
316
|
* @param options Additional options.
|
|
92
|
-
* @param options.
|
|
93
|
-
* @param options.includeUserIdentity Whether to include the user identity in the entity, defaults to true.
|
|
317
|
+
* @param options.partitionPerUser Whether to partition the user identity in the data, defaults to false.
|
|
94
318
|
*/
|
|
95
319
|
static addCustomEntityStorage(engineConfig, entityTypeName, entitySchema, restPath, options) {
|
|
96
320
|
core.Guards.object(EngineConfigHelper.CLASS_NAME, "engineConfig", engineConfig);
|
|
@@ -103,8 +327,7 @@ class EngineConfigHelper {
|
|
|
103
327
|
options: {
|
|
104
328
|
entityStorageType: entityTypeName,
|
|
105
329
|
config: {
|
|
106
|
-
|
|
107
|
-
includeUserIdentity: options?.includeUserIdentity ?? true
|
|
330
|
+
partitionPerUser: options?.partitionPerUser
|
|
108
331
|
}
|
|
109
332
|
},
|
|
110
333
|
overrideInstanceType: core.StringHelper.kebabCase(entityTypeName),
|
package/dist/esm/index.mjs
CHANGED
|
@@ -3,6 +3,269 @@ import { Guards, StringHelper, Is } from '@twin.org/core';
|
|
|
3
3
|
import { EntityStorageComponentType } from '@twin.org/engine-types';
|
|
4
4
|
import { EntitySchemaFactory } from '@twin.org/entity';
|
|
5
5
|
|
|
6
|
+
var coreTypeInitialisers = [
|
|
7
|
+
{
|
|
8
|
+
type: "loggingConnector",
|
|
9
|
+
module: "@twin.org/engine-types",
|
|
10
|
+
method: "initialiseLoggingConnector"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
type: "loggingComponent",
|
|
14
|
+
module: "@twin.org/engine-types",
|
|
15
|
+
method: "initialiseLoggingComponent"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
type: "backgroundTaskConnector",
|
|
19
|
+
module: "@twin.org/engine-types",
|
|
20
|
+
method: "initialiseBackgroundTaskConnector"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
type: "taskSchedulerComponent",
|
|
24
|
+
module: "@twin.org/engine-types",
|
|
25
|
+
method: "initialiseTaskSchedulerComponent"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
type: "eventBusConnector",
|
|
29
|
+
module: "@twin.org/engine-types",
|
|
30
|
+
method: "initialiseEventBusConnector"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
type: "eventBusComponent",
|
|
34
|
+
module: "@twin.org/engine-types",
|
|
35
|
+
method: "initialiseEventBusComponent"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
type: "telemetryConnector",
|
|
39
|
+
module: "@twin.org/engine-types",
|
|
40
|
+
method: "initialiseTelemetryConnector"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
type: "telemetryComponent",
|
|
44
|
+
module: "@twin.org/engine-types",
|
|
45
|
+
method: "initialiseTelemetryComponent"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
type: "messagingEmailConnector",
|
|
49
|
+
module: "@twin.org/engine-types",
|
|
50
|
+
method: "initialiseMessagingEmailConnector"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
type: "messagingSmsConnector",
|
|
54
|
+
module: "@twin.org/engine-types",
|
|
55
|
+
method: "initialiseMessagingSmsConnector"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
type: "messagingPushNotificationConnector",
|
|
59
|
+
module: "@twin.org/engine-types",
|
|
60
|
+
method: "initialiseMessagingPushNotificationConnector"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
type: "messagingAdminComponent",
|
|
64
|
+
module: "@twin.org/engine-types",
|
|
65
|
+
method: "initialiseMessagingAdminComponent"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
type: "messagingComponent",
|
|
69
|
+
module: "@twin.org/engine-types",
|
|
70
|
+
method: "initialiseMessagingComponent"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
type: "entityStorageComponent",
|
|
74
|
+
module: "@twin.org/engine-types",
|
|
75
|
+
method: "initialiseEntityStorageComponent"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
type: "vaultConnector",
|
|
79
|
+
module: "@twin.org/engine-types",
|
|
80
|
+
method: "initialiseVaultConnector"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
type: "blobStorageConnector",
|
|
84
|
+
module: "@twin.org/engine-types",
|
|
85
|
+
method: "initialiseBlobStorageConnector"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
type: "blobStorageComponent",
|
|
89
|
+
module: "@twin.org/engine-types",
|
|
90
|
+
method: "initialiseBlobStorageComponent"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
type: "verifiableStorageConnector",
|
|
94
|
+
module: "@twin.org/engine-types",
|
|
95
|
+
method: "initialiseVerifiableStorageConnector"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
type: "verifiableStorageComponent",
|
|
99
|
+
module: "@twin.org/engine-types",
|
|
100
|
+
method: "initialiseVerifiableStorageComponent"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
type: "faucetConnector",
|
|
104
|
+
module: "@twin.org/engine-types",
|
|
105
|
+
method: "initialiseFaucetConnector"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
type: "walletConnector",
|
|
109
|
+
module: "@twin.org/engine-types",
|
|
110
|
+
method: "initialiseWalletConnector"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
type: "identityConnector",
|
|
114
|
+
module: "@twin.org/engine-types",
|
|
115
|
+
method: "initialiseIdentityConnector"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
type: "identityComponent",
|
|
119
|
+
module: "@twin.org/engine-types",
|
|
120
|
+
method: "initialiseIdentityComponent"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
type: "identityResolverConnector",
|
|
124
|
+
module: "@twin.org/engine-types",
|
|
125
|
+
method: "initialiseIdentityResolverConnector"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
type: "identityResolverComponent",
|
|
129
|
+
module: "@twin.org/engine-types",
|
|
130
|
+
method: "initialiseIdentityResolverComponent"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
type: "identityProfileConnector",
|
|
134
|
+
module: "@twin.org/engine-types",
|
|
135
|
+
method: "initialiseIdentityProfileConnector"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
type: "identityProfileComponent",
|
|
139
|
+
module: "@twin.org/engine-types",
|
|
140
|
+
method: "initialiseIdentityProfileComponent"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
type: "nftConnector",
|
|
144
|
+
module: "@twin.org/engine-types",
|
|
145
|
+
method: "initialiseNftConnector"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
type: "nftComponent",
|
|
149
|
+
module: "@twin.org/engine-types",
|
|
150
|
+
method: "initialiseNftComponent"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
type: "immutableProofComponent",
|
|
154
|
+
module: "@twin.org/engine-types",
|
|
155
|
+
method: "initialiseImmutableProofComponent"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
type: "attestationConnector",
|
|
159
|
+
module: "@twin.org/engine-types",
|
|
160
|
+
method: "initialiseAttestationConnector"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
type: "attestationComponent",
|
|
164
|
+
module: "@twin.org/engine-types",
|
|
165
|
+
method: "initialiseAttestationComponent"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
type: "auditableItemGraphComponent",
|
|
169
|
+
module: "@twin.org/engine-types",
|
|
170
|
+
method: "initialiseAuditableItemGraphComponent"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
type: "auditableItemStreamComponent",
|
|
174
|
+
module: "@twin.org/engine-types",
|
|
175
|
+
method: "initialiseAuditableItemStreamComponent"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
type: "dataConverterConnector",
|
|
179
|
+
module: "@twin.org/engine-types",
|
|
180
|
+
method: "initialiseDataConverterConnector"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
type: "dataExtractorConnector",
|
|
184
|
+
module: "@twin.org/engine-types",
|
|
185
|
+
method: "initialiseDataExtractorConnector"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
type: "dataProcessingComponent",
|
|
189
|
+
module: "@twin.org/engine-types",
|
|
190
|
+
method: "initialiseDataProcessingComponent"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
type: "documentManagementComponent",
|
|
194
|
+
module: "@twin.org/engine-types",
|
|
195
|
+
method: "initialiseDocumentManagementComponent"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
type: "authenticationGeneratorComponent",
|
|
199
|
+
module: "@twin.org/engine-types",
|
|
200
|
+
method: "initialiseAuthenticationGeneratorComponent"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
type: "rightsManagementPapComponent",
|
|
204
|
+
module: "@twin.org/engine-types",
|
|
205
|
+
method: "initialiseRightsManagementPapComponent"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
type: "rightsManagementPmpComponent",
|
|
209
|
+
module: "@twin.org/engine-types",
|
|
210
|
+
method: "initialiseRightsManagementPmpComponent"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
type: "rightsManagementPxpComponent",
|
|
214
|
+
module: "@twin.org/engine-types",
|
|
215
|
+
method: "initialiseRightsManagementPxpComponent"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
type: "rightsManagementPipComponent",
|
|
219
|
+
module: "@twin.org/engine-types",
|
|
220
|
+
method: "initialiseRightsManagementPipComponent"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
type: "rightsManagementPdpComponent",
|
|
224
|
+
module: "@twin.org/engine-types",
|
|
225
|
+
method: "initialiseRightsManagementPdpComponent"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
type: "rightsManagementPepComponent",
|
|
229
|
+
module: "@twin.org/engine-types",
|
|
230
|
+
method: "initialiseRightsManagementPepComponent"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
type: "rightsManagementPnapComponent",
|
|
234
|
+
module: "@twin.org/engine-types",
|
|
235
|
+
method: "initialiseRightsManagementPnapComponent"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
type: "rightsManagementPnpComponent",
|
|
239
|
+
module: "@twin.org/engine-types",
|
|
240
|
+
method: "initialiseRightsManagementPnpComponent"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
type: "rightsManagementDapComponent",
|
|
244
|
+
module: "@twin.org/engine-types",
|
|
245
|
+
method: "initialiseRightsManagementDapComponent"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
type: "rightsManagementDarpComponent",
|
|
249
|
+
module: "@twin.org/engine-types",
|
|
250
|
+
method: "initialiseRightsManagementDarpComponent"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
type: "synchronisedStorageComponent",
|
|
254
|
+
module: "@twin.org/engine-types",
|
|
255
|
+
method: "initialiseSynchronisedStorageComponent"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
type: "federatedCatalogueComponent",
|
|
259
|
+
module: "@twin.org/engine-types",
|
|
260
|
+
method: "initialiseFederatedCatalogueComponent"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
type: "dataSpaceConnectorComponent",
|
|
264
|
+
module: "@twin.org/engine-types",
|
|
265
|
+
method: "initialiseDataSpaceConnectorComponent"
|
|
266
|
+
}
|
|
267
|
+
];
|
|
268
|
+
|
|
6
269
|
// Copyright 2024 IOTA Stiftung.
|
|
7
270
|
// SPDX-License-Identifier: Apache-2.0.
|
|
8
271
|
/**
|
|
@@ -26,47 +289,9 @@ class Engine extends EngineCore {
|
|
|
26
289
|
* @internal
|
|
27
290
|
*/
|
|
28
291
|
addCoreTypeInitialisers() {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
this.addTypeInitialiser("taskSchedulerComponent", this._context.config.types.taskSchedulerComponent, "@twin.org/engine-types", "initialiseTaskSchedulerComponent");
|
|
33
|
-
this.addTypeInitialiser("eventBusConnector", this._context.config.types.eventBusConnector, "@twin.org/engine-types", "initialiseEventBusConnector");
|
|
34
|
-
this.addTypeInitialiser("eventBusComponent", this._context.config.types.eventBusComponent, "@twin.org/engine-types", "initialiseEventBusComponent");
|
|
35
|
-
this.addTypeInitialiser("telemetryConnector", this._context.config.types.telemetryConnector, "@twin.org/engine-types", "initialiseTelemetryConnector");
|
|
36
|
-
this.addTypeInitialiser("telemetryComponent", this._context.config.types.telemetryComponent, "@twin.org/engine-types", "initialiseTelemetryComponent");
|
|
37
|
-
this.addTypeInitialiser("messagingEmailConnector", this._context.config.types.messagingEmailConnector, "@twin.org/engine-types", "initialiseMessagingEmailConnector");
|
|
38
|
-
this.addTypeInitialiser("messagingSmsConnector", this._context.config.types.messagingSmsConnector, "@twin.org/engine-types", "initialiseMessagingSmsConnector");
|
|
39
|
-
this.addTypeInitialiser("messagingPushNotificationConnector", this._context.config.types.messagingPushNotificationConnector, "@twin.org/engine-types", "initialiseMessagingPushNotificationConnector");
|
|
40
|
-
this.addTypeInitialiser("messagingComponent", this._context.config.types.messagingComponent, "@twin.org/engine-types", "initialiseMessagingComponent");
|
|
41
|
-
this.addTypeInitialiser("entityStorageComponent", this._context.config.types.entityStorageComponent, "@twin.org/engine-types", "initialiseEntityStorageComponent");
|
|
42
|
-
this.addTypeInitialiser("vaultConnector", this._context.config.types.vaultConnector, "@twin.org/engine-types", "initialiseVaultConnector");
|
|
43
|
-
this.addTypeInitialiser("blobStorageConnector", this._context.config.types.blobStorageConnector, "@twin.org/engine-types", "initialiseBlobStorageConnector");
|
|
44
|
-
this.addTypeInitialiser("blobStorageComponent", this._context.config.types.blobStorageComponent, "@twin.org/engine-types", "initialiseBlobStorageComponent");
|
|
45
|
-
this.addTypeInitialiser("verifiableStorageConnector", this._context.config.types.verifiableStorageConnector, "@twin.org/engine-types", "initialiseVerifiableStorageConnector");
|
|
46
|
-
this.addTypeInitialiser("verifiableStorageComponent", this._context.config.types.verifiableStorageComponent, "@twin.org/engine-types", "initialiseVerifiableStorageComponent");
|
|
47
|
-
this.addTypeInitialiser("walletConnector", this._context.config.types.walletConnector, "@twin.org/engine-types", "initialiseWalletStorage");
|
|
48
|
-
this.addTypeInitialiser("faucetConnector", this._context.config.types.faucetConnector, "@twin.org/engine-types", "initialiseFaucetConnector");
|
|
49
|
-
this.addTypeInitialiser("walletConnector", this._context.config.types.walletConnector, "@twin.org/engine-types", "initialiseWalletConnector");
|
|
50
|
-
this.addTypeInitialiser("identityConnector", this._context.config.types.identityConnector, "@twin.org/engine-types", "initialiseIdentityConnector");
|
|
51
|
-
this.addTypeInitialiser("identityComponent", this._context.config.types.identityComponent, "@twin.org/engine-types", "initialiseIdentityComponent");
|
|
52
|
-
this.addTypeInitialiser("identityResolverConnector", this._context.config.types.identityResolverConnector, "@twin.org/engine-types", "initialiseIdentityResolverConnector");
|
|
53
|
-
this.addTypeInitialiser("identityResolverComponent", this._context.config.types.identityResolverComponent, "@twin.org/engine-types", "initialiseIdentityResolverComponent");
|
|
54
|
-
this.addTypeInitialiser("identityProfileConnector", this._context.config.types.identityProfileConnector, "@twin.org/engine-types", "initialiseIdentityProfileConnector");
|
|
55
|
-
this.addTypeInitialiser("identityProfileComponent", this._context.config.types.identityProfileComponent, "@twin.org/engine-types", "initialiseIdentityProfileComponent");
|
|
56
|
-
this.addTypeInitialiser("nftConnector", this._context.config.types.nftConnector, "@twin.org/engine-types", "initialiseNftConnector");
|
|
57
|
-
this.addTypeInitialiser("nftComponent", this._context.config.types.nftComponent, "@twin.org/engine-types", "initialiseNftComponent");
|
|
58
|
-
this.addTypeInitialiser("immutableProofComponent", this._context.config.types.immutableProofComponent, "@twin.org/engine-types", "initialiseImmutableProofComponent");
|
|
59
|
-
this.addTypeInitialiser("attestationConnector", this._context.config.types.attestationConnector, "@twin.org/engine-types", "initialiseAttestationConnector");
|
|
60
|
-
this.addTypeInitialiser("attestationComponent", this._context.config.types.attestationComponent, "@twin.org/engine-types", "initialiseAttestationComponent");
|
|
61
|
-
this.addTypeInitialiser("auditableItemGraphComponent", this._context.config.types.auditableItemGraphComponent, "@twin.org/engine-types", "initialiseAuditableItemGraphComponent");
|
|
62
|
-
this.addTypeInitialiser("auditableItemStreamComponent", this._context.config.types.auditableItemStreamComponent, "@twin.org/engine-types", "initialiseAuditableItemStreamComponent");
|
|
63
|
-
this.addTypeInitialiser("dataConverterConnector", this._context.config.types.dataConverterConnector, "@twin.org/engine-types", "initialiseDataConverterConnector");
|
|
64
|
-
this.addTypeInitialiser("dataExtractorConnector", this._context.config.types.dataExtractorConnector, "@twin.org/engine-types", "initialiseDataExtractorConnector");
|
|
65
|
-
this.addTypeInitialiser("dataProcessingComponent", this._context.config.types.dataProcessingComponent, "@twin.org/engine-types", "initialiseDataProcessingComponent");
|
|
66
|
-
this.addTypeInitialiser("documentManagementComponent", this._context.config.types.documentManagementComponent, "@twin.org/engine-types", "initialiseDocumentManagementComponent");
|
|
67
|
-
this.addTypeInitialiser("federatedCatalogueComponent", this._context.config.types.federatedCatalogueComponent, "@twin.org/engine-types", "initialiseFederatedCatalogueComponent");
|
|
68
|
-
this.addTypeInitialiser("rightsManagementPapComponent", this._context.config.types.rightsManagementPapComponent, "@twin.org/engine-types", "initialiseRightsManagementPapComponent");
|
|
69
|
-
this.addTypeInitialiser("rightsManagementComponent", this._context.config.types.rightsManagementComponent, "@twin.org/engine-types", "initialiseRightsManagementComponent");
|
|
292
|
+
for (const initializer of coreTypeInitialisers) {
|
|
293
|
+
this.addTypeInitialiser(initializer.type, initializer.module, initializer.method);
|
|
294
|
+
}
|
|
70
295
|
}
|
|
71
296
|
}
|
|
72
297
|
|
|
@@ -87,8 +312,7 @@ class EngineConfigHelper {
|
|
|
87
312
|
* @param entitySchema The entity schema.
|
|
88
313
|
* @param restPath The rest path to serve the entity storage from, leave undefined for no endpoints.
|
|
89
314
|
* @param options Additional options.
|
|
90
|
-
* @param options.
|
|
91
|
-
* @param options.includeUserIdentity Whether to include the user identity in the entity, defaults to true.
|
|
315
|
+
* @param options.partitionPerUser Whether to partition the user identity in the data, defaults to false.
|
|
92
316
|
*/
|
|
93
317
|
static addCustomEntityStorage(engineConfig, entityTypeName, entitySchema, restPath, options) {
|
|
94
318
|
Guards.object(EngineConfigHelper.CLASS_NAME, "engineConfig", engineConfig);
|
|
@@ -101,8 +325,7 @@ class EngineConfigHelper {
|
|
|
101
325
|
options: {
|
|
102
326
|
entityStorageType: entityTypeName,
|
|
103
327
|
config: {
|
|
104
|
-
|
|
105
|
-
includeUserIdentity: options?.includeUserIdentity ?? true
|
|
328
|
+
partitionPerUser: options?.partitionPerUser
|
|
106
329
|
}
|
|
107
330
|
},
|
|
108
331
|
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,279 @@
|
|
|
1
1
|
# @twin.org/engine - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.20](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.19...engine-v0.0.2-next.20) (2025-10-06)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* standardised engine logging naming ([0dbf857](https://github.com/twinfoundation/engine/commit/0dbf857587641f86ddf010143519d0e8333489ff))
|
|
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.19 to 0.0.2-next.20
|
|
16
|
+
* @twin.org/engine-models bumped from 0.0.2-next.19 to 0.0.2-next.20
|
|
17
|
+
* @twin.org/engine-types bumped from 0.0.2-next.19 to 0.0.2-next.20
|
|
18
|
+
|
|
19
|
+
## [0.0.2-next.19](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.18...engine-v0.0.2-next.19) (2025-10-02)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* simplify config building ([732c871](https://github.com/twinfoundation/engine/commit/732c871c5aca236759168f4bc15aeffd98a330a8))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Dependencies
|
|
28
|
+
|
|
29
|
+
* The following workspace dependencies were updated
|
|
30
|
+
* dependencies
|
|
31
|
+
* @twin.org/engine-core bumped from 0.0.2-next.18 to 0.0.2-next.19
|
|
32
|
+
* @twin.org/engine-models bumped from 0.0.2-next.18 to 0.0.2-next.19
|
|
33
|
+
* @twin.org/engine-types bumped from 0.0.2-next.18 to 0.0.2-next.19
|
|
34
|
+
|
|
35
|
+
## [0.0.2-next.18](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.17...engine-v0.0.2-next.18) (2025-09-29)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Features
|
|
39
|
+
|
|
40
|
+
* upgrade framework components ([efd52e8](https://github.com/twinfoundation/engine/commit/efd52e80564fff29c3897bfa09b6305b3a322812))
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Dependencies
|
|
44
|
+
|
|
45
|
+
* The following workspace dependencies were updated
|
|
46
|
+
* dependencies
|
|
47
|
+
* @twin.org/engine-core bumped from 0.0.2-next.17 to 0.0.2-next.18
|
|
48
|
+
* @twin.org/engine-models bumped from 0.0.2-next.17 to 0.0.2-next.18
|
|
49
|
+
* @twin.org/engine-types bumped from 0.0.2-next.17 to 0.0.2-next.18
|
|
50
|
+
|
|
51
|
+
## [0.0.2-next.17](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.16...engine-v0.0.2-next.17) (2025-09-26)
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### Features
|
|
55
|
+
|
|
56
|
+
* add engine type helper for config lookups ([a20a398](https://github.com/twinfoundation/engine/commit/a20a3987016c48351178ab8410bc05b0fba0f2c1))
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### Dependencies
|
|
60
|
+
|
|
61
|
+
* The following workspace dependencies were updated
|
|
62
|
+
* dependencies
|
|
63
|
+
* @twin.org/engine-core bumped from 0.0.2-next.16 to 0.0.2-next.17
|
|
64
|
+
* @twin.org/engine-models bumped from 0.0.2-next.16 to 0.0.2-next.17
|
|
65
|
+
* @twin.org/engine-types bumped from 0.0.2-next.16 to 0.0.2-next.17
|
|
66
|
+
|
|
67
|
+
## [0.0.2-next.16](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.15...engine-v0.0.2-next.16) (2025-09-25)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### Miscellaneous Chores
|
|
71
|
+
|
|
72
|
+
* **engine:** Synchronize repo versions
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
### Dependencies
|
|
76
|
+
|
|
77
|
+
* The following workspace dependencies were updated
|
|
78
|
+
* dependencies
|
|
79
|
+
* @twin.org/engine-core bumped from 0.0.2-next.15 to 0.0.2-next.16
|
|
80
|
+
* @twin.org/engine-types bumped from 0.0.2-next.15 to 0.0.2-next.16
|
|
81
|
+
|
|
82
|
+
## [0.0.2-next.15](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.14...engine-v0.0.2-next.15) (2025-09-24)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
### Features
|
|
86
|
+
|
|
87
|
+
* update rights management and add authentication generators ([f728a1e](https://github.com/twinfoundation/engine/commit/f728a1efea15ada8d10cfbe17cafe7e2b252f527))
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
### Dependencies
|
|
91
|
+
|
|
92
|
+
* The following workspace dependencies were updated
|
|
93
|
+
* dependencies
|
|
94
|
+
* @twin.org/engine-core bumped from 0.0.2-next.14 to 0.0.2-next.15
|
|
95
|
+
* @twin.org/engine-types bumped from 0.0.2-next.14 to 0.0.2-next.15
|
|
96
|
+
|
|
97
|
+
## [0.0.2-next.14](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.13...engine-v0.0.2-next.14) (2025-09-19)
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
### Features
|
|
101
|
+
|
|
102
|
+
* add latest rights management components ([2d305c8](https://github.com/twinfoundation/engine/commit/2d305c8c85c77bb4f5694c76422db4a11efc1a40))
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
### Dependencies
|
|
106
|
+
|
|
107
|
+
* The following workspace dependencies were updated
|
|
108
|
+
* dependencies
|
|
109
|
+
* @twin.org/engine-core bumped from 0.0.2-next.13 to 0.0.2-next.14
|
|
110
|
+
* @twin.org/engine-types bumped from 0.0.2-next.13 to 0.0.2-next.14
|
|
111
|
+
|
|
112
|
+
## [0.0.2-next.13](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.12...engine-v0.0.2-next.13) (2025-09-08)
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
### Features
|
|
116
|
+
|
|
117
|
+
* update rights management dependencies ([14d06fb](https://github.com/twinfoundation/engine/commit/14d06fb6604ad04e4094da7b51b61a01a0280b8b))
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
### Dependencies
|
|
121
|
+
|
|
122
|
+
* The following workspace dependencies were updated
|
|
123
|
+
* dependencies
|
|
124
|
+
* @twin.org/engine-core bumped from 0.0.2-next.12 to 0.0.2-next.13
|
|
125
|
+
* @twin.org/engine-types bumped from 0.0.2-next.12 to 0.0.2-next.13
|
|
126
|
+
|
|
127
|
+
## [0.0.2-next.12](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.11...engine-v0.0.2-next.12) (2025-09-05)
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
### Features
|
|
131
|
+
|
|
132
|
+
* add rights management negotiation ([84ef46b](https://github.com/twinfoundation/engine/commit/84ef46bff110611a19512793425c8c873ee2a590))
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
### Dependencies
|
|
136
|
+
|
|
137
|
+
* The following workspace dependencies were updated
|
|
138
|
+
* dependencies
|
|
139
|
+
* @twin.org/engine-core bumped from 0.0.2-next.11 to 0.0.2-next.12
|
|
140
|
+
* @twin.org/engine-types bumped from 0.0.2-next.11 to 0.0.2-next.12
|
|
141
|
+
|
|
142
|
+
## [0.0.2-next.11](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.10...engine-v0.0.2-next.11) (2025-08-29)
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
### Features
|
|
146
|
+
|
|
147
|
+
* eslint migration to flat config ([6b978da](https://github.com/twinfoundation/engine/commit/6b978daf777a615d7758b63c3df57d5a376f6dfb))
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
### Dependencies
|
|
151
|
+
|
|
152
|
+
* The following workspace dependencies were updated
|
|
153
|
+
* dependencies
|
|
154
|
+
* @twin.org/engine-core bumped from 0.0.2-next.10 to 0.0.2-next.11
|
|
155
|
+
* @twin.org/engine-types bumped from 0.0.2-next.10 to 0.0.2-next.11
|
|
156
|
+
|
|
157
|
+
## [0.0.2-next.10](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.9...engine-v0.0.2-next.10) (2025-08-26)
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
### Features
|
|
161
|
+
|
|
162
|
+
* add data space connector ([a824d99](https://github.com/twinfoundation/engine/commit/a824d9931faeaa8115e01f8e7545b802d0e7ac70))
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
### Dependencies
|
|
166
|
+
|
|
167
|
+
* The following workspace dependencies were updated
|
|
168
|
+
* dependencies
|
|
169
|
+
* @twin.org/engine-core bumped from 0.0.2-next.9 to 0.0.2-next.10
|
|
170
|
+
* @twin.org/engine-types bumped from 0.0.2-next.9 to 0.0.2-next.10
|
|
171
|
+
|
|
172
|
+
## [0.0.2-next.9](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.8...engine-v0.0.2-next.9) (2025-08-25)
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
### Features
|
|
176
|
+
|
|
177
|
+
* add isPrimary and isClone methods ([a7c63e9](https://github.com/twinfoundation/engine/commit/a7c63e97f54c95b104cc81e66d3fa42c6607bdc1))
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
### Dependencies
|
|
181
|
+
|
|
182
|
+
* The following workspace dependencies were updated
|
|
183
|
+
* dependencies
|
|
184
|
+
* @twin.org/engine-core bumped from 0.0.2-next.8 to 0.0.2-next.9
|
|
185
|
+
* @twin.org/engine-types bumped from 0.0.2-next.8 to 0.0.2-next.9
|
|
186
|
+
|
|
187
|
+
## [0.0.2-next.8](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.7...engine-v0.0.2-next.8) (2025-08-22)
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
### Features
|
|
191
|
+
|
|
192
|
+
* add rights management modules ([e02cadc](https://github.com/twinfoundation/engine/commit/e02cadc840d242fe16a73ab41ba61376c7467e50))
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
### Dependencies
|
|
196
|
+
|
|
197
|
+
* The following workspace dependencies were updated
|
|
198
|
+
* dependencies
|
|
199
|
+
* @twin.org/engine-core bumped from 0.0.2-next.7 to 0.0.2-next.8
|
|
200
|
+
* @twin.org/engine-types bumped from 0.0.2-next.7 to 0.0.2-next.8
|
|
201
|
+
|
|
202
|
+
## [0.0.2-next.7](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.6...engine-v0.0.2-next.7) (2025-08-22)
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
### Miscellaneous Chores
|
|
206
|
+
|
|
207
|
+
* **engine:** Synchronize repo versions
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
### Dependencies
|
|
211
|
+
|
|
212
|
+
* The following workspace dependencies were updated
|
|
213
|
+
* dependencies
|
|
214
|
+
* @twin.org/engine-core bumped from 0.0.2-next.6 to 0.0.2-next.7
|
|
215
|
+
* @twin.org/engine-types bumped from 0.0.2-next.6 to 0.0.2-next.7
|
|
216
|
+
|
|
217
|
+
## [0.0.2-next.6](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.5...engine-v0.0.2-next.6) (2025-08-21)
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
### Features
|
|
221
|
+
|
|
222
|
+
* update framework core ([acc0f8d](https://github.com/twinfoundation/engine/commit/acc0f8d455a4b8ec47f1da643139fa0f07775fa6))
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
### Dependencies
|
|
226
|
+
|
|
227
|
+
* The following workspace dependencies were updated
|
|
228
|
+
* dependencies
|
|
229
|
+
* @twin.org/engine-core bumped from 0.0.2-next.5 to 0.0.2-next.6
|
|
230
|
+
* @twin.org/engine-types bumped from 0.0.2-next.5 to 0.0.2-next.6
|
|
231
|
+
|
|
232
|
+
## [0.0.2-next.5](https://github.com/twinfoundation/engine/compare/engine-v0.0.2-next.4...engine-v0.0.2-next.5) (2025-08-14)
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
### Features
|
|
236
|
+
|
|
237
|
+
* add synchronised storage support ([5142e34](https://github.com/twinfoundation/engine/commit/5142e3488f09195cf9f48a9c6c6d1014231a4c2c))
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
### Dependencies
|
|
241
|
+
|
|
242
|
+
* The following workspace dependencies were updated
|
|
243
|
+
* dependencies
|
|
244
|
+
* @twin.org/engine-core bumped from 0.0.2-next.4 to 0.0.2-next.5
|
|
245
|
+
* @twin.org/engine-types bumped from 0.0.2-next.4 to 0.0.2-next.5
|
|
246
|
+
|
|
247
|
+
## [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)
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
### Features
|
|
251
|
+
|
|
252
|
+
* add default logging component for web server ([8ad94f0](https://github.com/twinfoundation/engine/commit/8ad94f0d2d9a5241a8854b1e59fb9a55ce310142))
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
### Dependencies
|
|
256
|
+
|
|
257
|
+
* The following workspace dependencies were updated
|
|
258
|
+
* dependencies
|
|
259
|
+
* @twin.org/engine-core bumped from 0.0.2-next.3 to 0.0.2-next.4
|
|
260
|
+
* @twin.org/engine-types bumped from 0.0.2-next.3 to 0.0.2-next.4
|
|
261
|
+
|
|
262
|
+
## [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)
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
### Features
|
|
266
|
+
|
|
267
|
+
* update includeUserIdentity usage ([d34f597](https://github.com/twinfoundation/engine/commit/d34f597a61f9645a029411d2911bbda20ddc9eb9))
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
### Dependencies
|
|
271
|
+
|
|
272
|
+
* The following workspace dependencies were updated
|
|
273
|
+
* dependencies
|
|
274
|
+
* @twin.org/engine-core bumped from 0.0.2-next.2 to 0.0.2-next.3
|
|
275
|
+
* @twin.org/engine-types bumped from 0.0.2-next.2 to 0.0.2-next.3
|
|
276
|
+
|
|
3
277
|
## [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
278
|
|
|
5
279
|
|
|
@@ -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.20",
|
|
4
4
|
"description": "Engine implementation.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,9 +15,11 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@twin.org/core": "next",
|
|
18
|
-
"@twin.org/engine-core": "0.0.2-next.
|
|
19
|
-
"@twin.org/engine-
|
|
20
|
-
"@twin.org/
|
|
18
|
+
"@twin.org/engine-core": "0.0.2-next.20",
|
|
19
|
+
"@twin.org/engine-models": "0.0.2-next.20",
|
|
20
|
+
"@twin.org/engine-types": "0.0.2-next.20",
|
|
21
|
+
"@twin.org/entity": "next",
|
|
22
|
+
"@twin.org/nameof": "next"
|
|
21
23
|
},
|
|
22
24
|
"main": "./dist/cjs/index.cjs",
|
|
23
25
|
"module": "./dist/esm/index.mjs",
|
|
@@ -36,5 +38,13 @@
|
|
|
36
38
|
"dist/types",
|
|
37
39
|
"locales",
|
|
38
40
|
"docs"
|
|
41
|
+
],
|
|
42
|
+
"keywords": [
|
|
43
|
+
"twin",
|
|
44
|
+
"trade",
|
|
45
|
+
"iota",
|
|
46
|
+
"framework",
|
|
47
|
+
"blockchain",
|
|
48
|
+
"engine"
|
|
39
49
|
]
|
|
40
50
|
}
|