@twin.org/engine-types 0.0.2-next.21 → 0.0.2-next.23
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 +4 -4
- package/dist/esm/index.mjs +4 -4
- package/docs/changelog.md +30 -0
- package/locales/en.json +10 -1
- package/package.json +9 -11
package/dist/cjs/index.cjs
CHANGED
|
@@ -271,7 +271,7 @@ function initialiseEntityStorageConnector(engineCore, context, typeCustom, schem
|
|
|
271
271
|
// A custom type has been specified, so look it up
|
|
272
272
|
entityStorageConfig = context.config.types.entityStorageConnector?.find(c => c.type === typeCustom || c.overrideInstanceType === typeCustom);
|
|
273
273
|
if (core.Is.empty(entityStorageConfig)) {
|
|
274
|
-
throw new core.GeneralError("
|
|
274
|
+
throw new core.GeneralError("engineTypes", "entityStorageCustomMissing", {
|
|
275
275
|
typeCustom,
|
|
276
276
|
storageName: instanceName
|
|
277
277
|
});
|
|
@@ -284,14 +284,14 @@ function initialiseEntityStorageConnector(engineCore, context, typeCustom, schem
|
|
|
284
284
|
context.config.types.entityStorageConnector?.find(c => c.isDefault ?? false) ??
|
|
285
285
|
context.config.types.entityStorageConnector?.[0];
|
|
286
286
|
if (core.Is.empty(entityStorageConfig)) {
|
|
287
|
-
throw new core.GeneralError("
|
|
287
|
+
throw new core.GeneralError("engineTypes", "entityStorageMissing", {
|
|
288
288
|
storageName: instanceName
|
|
289
289
|
});
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
const type = entityStorageConfig.type;
|
|
293
293
|
let entityStorageConnector;
|
|
294
|
-
engineCore.logInfo(core.I18n.formatMessage("
|
|
294
|
+
engineCore.logInfo(core.I18n.formatMessage("engineTypes.configuringEntityStorage", {
|
|
295
295
|
element: "Entity Storage",
|
|
296
296
|
storageName: instanceName,
|
|
297
297
|
storageType: type
|
|
@@ -399,7 +399,7 @@ function initialiseEntityStorageConnector(engineCore, context, typeCustom, schem
|
|
|
399
399
|
});
|
|
400
400
|
}
|
|
401
401
|
else {
|
|
402
|
-
throw new core.GeneralError("
|
|
402
|
+
throw new core.GeneralError("engineTypes", "connectorUnknownType", {
|
|
403
403
|
type,
|
|
404
404
|
connectorType: "entityStorageConnector"
|
|
405
405
|
});
|
package/dist/esm/index.mjs
CHANGED
|
@@ -269,7 +269,7 @@ function initialiseEntityStorageConnector(engineCore, context, typeCustom, schem
|
|
|
269
269
|
// A custom type has been specified, so look it up
|
|
270
270
|
entityStorageConfig = context.config.types.entityStorageConnector?.find(c => c.type === typeCustom || c.overrideInstanceType === typeCustom);
|
|
271
271
|
if (Is.empty(entityStorageConfig)) {
|
|
272
|
-
throw new GeneralError("
|
|
272
|
+
throw new GeneralError("engineTypes", "entityStorageCustomMissing", {
|
|
273
273
|
typeCustom,
|
|
274
274
|
storageName: instanceName
|
|
275
275
|
});
|
|
@@ -282,14 +282,14 @@ function initialiseEntityStorageConnector(engineCore, context, typeCustom, schem
|
|
|
282
282
|
context.config.types.entityStorageConnector?.find(c => c.isDefault ?? false) ??
|
|
283
283
|
context.config.types.entityStorageConnector?.[0];
|
|
284
284
|
if (Is.empty(entityStorageConfig)) {
|
|
285
|
-
throw new GeneralError("
|
|
285
|
+
throw new GeneralError("engineTypes", "entityStorageMissing", {
|
|
286
286
|
storageName: instanceName
|
|
287
287
|
});
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
290
|
const type = entityStorageConfig.type;
|
|
291
291
|
let entityStorageConnector;
|
|
292
|
-
engineCore.logInfo(I18n.formatMessage("
|
|
292
|
+
engineCore.logInfo(I18n.formatMessage("engineTypes.configuringEntityStorage", {
|
|
293
293
|
element: "Entity Storage",
|
|
294
294
|
storageName: instanceName,
|
|
295
295
|
storageType: type
|
|
@@ -397,7 +397,7 @@ function initialiseEntityStorageConnector(engineCore, context, typeCustom, schem
|
|
|
397
397
|
});
|
|
398
398
|
}
|
|
399
399
|
else {
|
|
400
|
-
throw new GeneralError("
|
|
400
|
+
throw new GeneralError("engineTypes", "connectorUnknownType", {
|
|
401
401
|
type,
|
|
402
402
|
connectorType: "entityStorageConnector"
|
|
403
403
|
});
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @twin.org/engine-types - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.23](https://github.com/twinfoundation/engine/compare/engine-types-v0.0.2-next.22...engine-types-v0.0.2-next.23) (2025-10-07)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* override type initialisers with new registrations ([5b4ff56](https://github.com/twinfoundation/engine/commit/5b4ff561d06b6513c870a72bb20ba23c0653cfe8))
|
|
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.22 to 0.0.2-next.23
|
|
16
|
+
* @twin.org/engine-models bumped from 0.0.2-next.22 to 0.0.2-next.23
|
|
17
|
+
|
|
18
|
+
## [0.0.2-next.22](https://github.com/twinfoundation/engine/compare/engine-types-v0.0.2-next.21...engine-types-v0.0.2-next.22) (2025-10-07)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* regular dependencies ([c95095f](https://github.com/twinfoundation/engine/commit/c95095f6644dc55665108e6749caa2a4187020b8))
|
|
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.21 to 0.0.2-next.22
|
|
31
|
+
* @twin.org/engine-models bumped from 0.0.2-next.21 to 0.0.2-next.22
|
|
32
|
+
|
|
3
33
|
## [0.0.2-next.21](https://github.com/twinfoundation/engine/compare/engine-types-v0.0.2-next.20...engine-types-v0.0.2-next.21) (2025-10-07)
|
|
4
34
|
|
|
5
35
|
|
package/locales/en.json
CHANGED
|
@@ -1 +1,10 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"error": {
|
|
3
|
+
"engineTypes": {
|
|
4
|
+
"entityStorageCustomMissing": "Entity storage custom \"{typeCustom}\" missing for component \"{storageName}\"",
|
|
5
|
+
"entityStorageMissing": "Entity storage configuration missing for component \"{storageName}\"",
|
|
6
|
+
"configuringEntityStorage": "Configuring {element} with name \"{storageName}\" using \"{storageType}\" connector",
|
|
7
|
+
"connectorUnknownType": "Unknown connector type \"{type}\" specified for \"{connectorType}\""
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/engine-types",
|
|
3
|
-
"version": "0.0.2-next.
|
|
3
|
+
"version": "0.0.2-next.23",
|
|
4
4
|
"description": "Types to use in an engine.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,16 +14,6 @@
|
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@twin.org/core": "next",
|
|
18
|
-
"@twin.org/crypto": "next",
|
|
19
|
-
"@twin.org/data-core": "next",
|
|
20
|
-
"@twin.org/engine-core": "0.0.2-next.21",
|
|
21
|
-
"@twin.org/engine-models": "0.0.2-next.21",
|
|
22
|
-
"@twin.org/entity": "next",
|
|
23
|
-
"@twin.org/modules": "next",
|
|
24
|
-
"@twin.org/nameof": "next"
|
|
25
|
-
},
|
|
26
|
-
"peerDependencies": {
|
|
27
17
|
"@twin.org/api-models": "next",
|
|
28
18
|
"@twin.org/attestation-connector-nft": "next",
|
|
29
19
|
"@twin.org/attestation-models": "next",
|
|
@@ -47,6 +37,9 @@
|
|
|
47
37
|
"@twin.org/blob-storage-models": "next",
|
|
48
38
|
"@twin.org/blob-storage-rest-client": "next",
|
|
49
39
|
"@twin.org/blob-storage-service": "next",
|
|
40
|
+
"@twin.org/core": "next",
|
|
41
|
+
"@twin.org/crypto": "next",
|
|
42
|
+
"@twin.org/data-core": "next",
|
|
50
43
|
"@twin.org/data-processing-converters": "next",
|
|
51
44
|
"@twin.org/data-processing-extractors": "next",
|
|
52
45
|
"@twin.org/data-processing-models": "next",
|
|
@@ -59,6 +52,9 @@
|
|
|
59
52
|
"@twin.org/document-management-models": "next",
|
|
60
53
|
"@twin.org/document-management-rest-client": "next",
|
|
61
54
|
"@twin.org/document-management-service": "next",
|
|
55
|
+
"@twin.org/engine-core": "0.0.2-next.23",
|
|
56
|
+
"@twin.org/engine-models": "0.0.2-next.23",
|
|
57
|
+
"@twin.org/entity": "next",
|
|
62
58
|
"@twin.org/entity-storage-connector-cosmosdb": "next",
|
|
63
59
|
"@twin.org/entity-storage-connector-dynamodb": "next",
|
|
64
60
|
"@twin.org/entity-storage-connector-file": "next",
|
|
@@ -98,6 +94,8 @@
|
|
|
98
94
|
"@twin.org/messaging-connector-entity-storage": "next",
|
|
99
95
|
"@twin.org/messaging-models": "next",
|
|
100
96
|
"@twin.org/messaging-service": "next",
|
|
97
|
+
"@twin.org/modules": "next",
|
|
98
|
+
"@twin.org/nameof": "next",
|
|
101
99
|
"@twin.org/nft-connector-entity-storage": "next",
|
|
102
100
|
"@twin.org/nft-connector-iota": "next",
|
|
103
101
|
"@twin.org/nft-models": "next",
|