@nmshd/content 2.3.3 → 2.3.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/buildInformation.js +4 -4
- package/dist/requests/items/proposeAttribute/ProposeAttributeRequestItem.js +4 -2
- package/dist/requests/items/proposeAttribute/ProposeAttributeRequestItem.js.map +1 -1
- package/lib-web/nmshd.content.js +8 -6
- package/lib-web/nmshd.content.min.js +1 -1
- package/package.json +1 -1
package/dist/buildInformation.js
CHANGED
|
@@ -5,10 +5,10 @@ const ts_serval_1 = require("@js-soft/ts-serval");
|
|
|
5
5
|
const crypto_1 = require("@nmshd/crypto");
|
|
6
6
|
const transport_1 = require("@nmshd/transport");
|
|
7
7
|
exports.buildInformation = {
|
|
8
|
-
version: "2.3.
|
|
9
|
-
build: "
|
|
10
|
-
date: "2023-07-
|
|
11
|
-
commit: "
|
|
8
|
+
version: "2.3.4",
|
|
9
|
+
build: "133",
|
|
10
|
+
date: "2023-07-11T09:29:28+00:00",
|
|
11
|
+
commit: "a49345a45fb570dad40eff05c82ebbeebec6cdfe",
|
|
12
12
|
dependencies: {"@js-soft/logging-abstractions":"^1.0.0","@nmshd/iql":"^0.0.1","easy-tsnameof":"^3.0.6","mocha-param":"^2.0.1"},
|
|
13
13
|
libraries: {
|
|
14
14
|
serval: ts_serval_1.buildInformation,
|
|
@@ -29,11 +29,13 @@ let ProposeAttributeRequestItem = ProposeAttributeRequestItem_1 = class ProposeA
|
|
|
29
29
|
throw new ts_serval_1.ValidationError(ProposeAttributeRequestItem_1.name, `${(0, ts_simple_nameof_1.nameof)((x) => x.query)}.${(0, ts_simple_nameof_1.nameof)((x) => x.valueType)}`, `You cannot propose an Attribute whose type of the value ('${attributeValueType}') is different from the value type of the query ('${queryValueType}').`);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
+
// IQL queries might also be possible for Relationship Attributes in the future
|
|
32
33
|
if (value.attribute instanceof attributes_1.RelationshipAttribute && !(value.query instanceof attributes_1.RelationshipAttributeQuery)) {
|
|
33
34
|
throw new ts_serval_1.ValidationError(ProposeAttributeRequestItem_1.name, "", "When proposing a RelationshipAttribute, the corresponding query has to be a RelationshipAttributeQuery.");
|
|
34
35
|
}
|
|
35
|
-
if (value.attribute instanceof attributes_1.IdentityAttribute &&
|
|
36
|
-
|
|
36
|
+
if (value.attribute instanceof attributes_1.IdentityAttribute &&
|
|
37
|
+
!(value.query instanceof attributes_1.IdentityAttributeQuery || value.query instanceof attributes_1.IQLQuery)) {
|
|
38
|
+
throw new ts_serval_1.ValidationError(ProposeAttributeRequestItem_1.name, "", "When proposing an IdentityAttribute, the corresponding query has to be a IdentityAttributeQuery or IQLQuery");
|
|
37
39
|
}
|
|
38
40
|
return value;
|
|
39
41
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProposeAttributeRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/proposeAttribute/ProposeAttributeRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAA6F;AAC7F,uDAAyC;AACzC,oDAgB4B;AAC5B,mDAA8E;AAcvE,IAAM,2BAA2B,mCAAjC,MAAM,2BAA4B,SAAQ,yBAAW;IASjD,MAAM,CAAC,IAAI,CACd,KAAoF;QAEpF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAES,MAAM,CAAU,QAAQ,CAAyB,KAAQ;QAC/D,IAAI,CAAC,CAAC,KAAK,YAAY,6BAA2B,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;QAEhG,IAAI,KAAK,CAAC,KAAK,YAAY,mCAAsB,EAAE;YAC/C,MAAM,kBAAkB,GAAI,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,EAAU,CAAC,OAAO,CAAC,CAAA;YAC3E,MAAM,cAAc,GAAG,KAAK,CAAC,KAAK,CAAC,SAAS,CAAA;YAE5C,IAAI,kBAAkB,KAAK,cAAc,EAAE;gBACvC,MAAM,IAAI,2BAAe,CACrB,6BAA2B,CAAC,IAAI,EAChC,GAAG,IAAA,yBAAM,EAA8B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,IAAA,yBAAM,EAC5D,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CACrB,EAAE,EACH,6DAA6D,kBAAkB,sDAAsD,cAAc,KAAK,CAC3J,CAAA;aACJ;SACJ;QAED,IAAI,KAAK,CAAC,SAAS,YAAY,kCAAqB,IAAI,CAAC,CAAC,KAAK,CAAC,KAAK,YAAY,uCAA0B,CAAC,EAAE;YAC1G,MAAM,IAAI,2BAAe,CACrB,6BAA2B,CAAC,IAAI,EAChC,EAAE,EACF,yGAAyG,CAC5G,CAAA;SACJ;QAED,
|
|
1
|
+
{"version":3,"file":"ProposeAttributeRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/proposeAttribute/ProposeAttributeRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAA6F;AAC7F,uDAAyC;AACzC,oDAgB4B;AAC5B,mDAA8E;AAcvE,IAAM,2BAA2B,mCAAjC,MAAM,2BAA4B,SAAQ,yBAAW;IASjD,MAAM,CAAC,IAAI,CACd,KAAoF;QAEpF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAES,MAAM,CAAU,QAAQ,CAAyB,KAAQ;QAC/D,IAAI,CAAC,CAAC,KAAK,YAAY,6BAA2B,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;QAEhG,IAAI,KAAK,CAAC,KAAK,YAAY,mCAAsB,EAAE;YAC/C,MAAM,kBAAkB,GAAI,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,EAAU,CAAC,OAAO,CAAC,CAAA;YAC3E,MAAM,cAAc,GAAG,KAAK,CAAC,KAAK,CAAC,SAAS,C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AAE;;8DACgD;AAPlD,2BAA2B;IADvC,IAAA,gBAAI,EAAC,6BAA6B,CAAC;GACvB,2BAA2B,CA8DvC;AA9DY,kEAA2B"}
|
package/lib-web/nmshd.content.js
CHANGED
|
@@ -6221,10 +6221,10 @@ const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-s
|
|
|
6221
6221
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
6222
6222
|
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
6223
6223
|
exports.buildInformation = {
|
|
6224
|
-
version: "2.3.
|
|
6225
|
-
build: "
|
|
6226
|
-
date: "2023-07-
|
|
6227
|
-
commit: "
|
|
6224
|
+
version: "2.3.4",
|
|
6225
|
+
build: "133",
|
|
6226
|
+
date: "2023-07-11T09:29:28+00:00",
|
|
6227
|
+
commit: "a49345a45fb570dad40eff05c82ebbeebec6cdfe",
|
|
6228
6228
|
dependencies: {"@js-soft/logging-abstractions":"^1.0.0","@nmshd/iql":"^0.0.1","easy-tsnameof":"^3.0.6","mocha-param":"^2.0.1"},
|
|
6229
6229
|
libraries: {
|
|
6230
6230
|
serval: ts_serval_1.buildInformation,
|
|
@@ -7033,11 +7033,13 @@ let ProposeAttributeRequestItem = ProposeAttributeRequestItem_1 = class ProposeA
|
|
|
7033
7033
|
throw new ts_serval_1.ValidationError(ProposeAttributeRequestItem_1.name, `${(0, ts_simple_nameof_1.nameof)((x) => x.query)}.${(0, ts_simple_nameof_1.nameof)((x) => x.valueType)}`, `You cannot propose an Attribute whose type of the value ('${attributeValueType}') is different from the value type of the query ('${queryValueType}').`);
|
|
7034
7034
|
}
|
|
7035
7035
|
}
|
|
7036
|
+
// IQL queries might also be possible for Relationship Attributes in the future
|
|
7036
7037
|
if (value.attribute instanceof attributes_1.RelationshipAttribute && !(value.query instanceof attributes_1.RelationshipAttributeQuery)) {
|
|
7037
7038
|
throw new ts_serval_1.ValidationError(ProposeAttributeRequestItem_1.name, "", "When proposing a RelationshipAttribute, the corresponding query has to be a RelationshipAttributeQuery.");
|
|
7038
7039
|
}
|
|
7039
|
-
if (value.attribute instanceof attributes_1.IdentityAttribute &&
|
|
7040
|
-
|
|
7040
|
+
if (value.attribute instanceof attributes_1.IdentityAttribute &&
|
|
7041
|
+
!(value.query instanceof attributes_1.IdentityAttributeQuery || value.query instanceof attributes_1.IQLQuery)) {
|
|
7042
|
+
throw new ts_serval_1.ValidationError(ProposeAttributeRequestItem_1.name, "", "When proposing an IdentityAttribute, the corresponding query has to be a IdentityAttributeQuery or IQLQuery");
|
|
7041
7043
|
}
|
|
7042
7044
|
return value;
|
|
7043
7045
|
}
|