@nmshd/content 2.0.0-alpha.22 → 2.0.0-alpha.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/attributes/RelationshipAttribute.d.ts +1 -0
- package/dist/attributes/RelationshipAttribute.js +5 -4
- package/dist/attributes/RelationshipAttribute.js.map +1 -1
- package/dist/buildInformation.js +4 -4
- package/lib-web/nmshd.content.js +9 -8
- package/lib-web/nmshd.content.min.js +1 -1
- package/package.json +1 -1
|
@@ -47,5 +47,6 @@ export declare class RelationshipAttribute<TValueClass extends AbstractAttribute
|
|
|
47
47
|
key: string;
|
|
48
48
|
isTechnical: boolean;
|
|
49
49
|
confidentiality: RelationshipAttributeConfidentiality;
|
|
50
|
+
protected static preFrom(value: any): any;
|
|
50
51
|
static from<TValueClass extends AbstractAttributeValue = AbstractAttributeValue, TValueInterface extends IAbstractAttributeValue = IAbstractAttributeValue, TValueJSONInterface extends AbstractAttributeValueJSON = AbstractAttributeValueJSON>(value: IRelationshipAttribute<TValueInterface> | RelationshipAttributeJSON<TValueJSONInterface>): RelationshipAttribute<TValueClass>;
|
|
51
52
|
}
|
|
@@ -45,9 +45,10 @@ var RelationshipAttributeConfidentiality;
|
|
|
45
45
|
RelationshipAttributeConfidentiality["Protected"] = "protected";
|
|
46
46
|
})(RelationshipAttributeConfidentiality = exports.RelationshipAttributeConfidentiality || (exports.RelationshipAttributeConfidentiality = {}));
|
|
47
47
|
let RelationshipAttribute = class RelationshipAttribute extends AbstractAttribute_1.AbstractAttribute {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
static preFrom(value) {
|
|
49
|
+
if (typeof value.isTechnical === "undefined")
|
|
50
|
+
value.isTechnical = false;
|
|
51
|
+
return value;
|
|
51
52
|
}
|
|
52
53
|
static from(value) {
|
|
53
54
|
return this.fromAny(value);
|
|
@@ -66,7 +67,7 @@ __decorate([
|
|
|
66
67
|
__decorate([
|
|
67
68
|
(0, ts_serval_1.serialize)(),
|
|
68
69
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
69
|
-
__metadata("design:type",
|
|
70
|
+
__metadata("design:type", Boolean)
|
|
70
71
|
], RelationshipAttribute.prototype, "isTechnical", void 0);
|
|
71
72
|
__decorate([
|
|
72
73
|
(0, ts_serval_1.serialize)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelationshipAttribute.js","sourceRoot":"","sources":["../../src/attributes/RelationshipAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,2DAAkG;AAClG,qEAAsH;AAEtH,IAAY,oCA6BX;AA7BD,WAAY,oCAAoC;IAC5C;;;;;;;;;OASG;IACH,yDAAiB,CAAA;IACjB;;;;;;OAMG;IACH,2DAAmB,CAAA;IACnB;;;;;;;OAOG;IACH,+DAAuB,CAAA;AAC3B,CAAC,EA7BW,oCAAoC,GAApC,4CAAoC,KAApC,4CAAoC,QA6B/C;AAoBD,IAAa,qBAAqB,GAAlC,MAAa,qBACT,SAAQ,qCAAiB;
|
|
1
|
+
{"version":3,"file":"RelationshipAttribute.js","sourceRoot":"","sources":["../../src/attributes/RelationshipAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,2DAAkG;AAClG,qEAAsH;AAEtH,IAAY,oCA6BX;AA7BD,WAAY,oCAAoC;IAC5C;;;;;;;;;OASG;IACH,yDAAiB,CAAA;IACjB;;;;;;OAMG;IACH,2DAAmB,CAAA;IACnB;;;;;;;OAOG;IACH,+DAAuB,CAAA;AAC3B,CAAC,EA7BW,oCAAoC,GAApC,4CAAoC,KAApC,4CAAoC,QA6B/C;AAoBD,IAAa,qBAAqB,GAAlC,MAAa,qBACT,SAAQ,qCAAiB;IAyBf,MAAM,CAAU,OAAO,CAAC,KAAU;QACxC,IAAI,OAAO,KAAK,CAAC,WAAW,KAAK,WAAW;YAAE,KAAK,CAAC,WAAW,GAAG,KAAK,CAAA;QAEvE,OAAO,KAAK,CAAA;IAChB,CAAC;IAEM,MAAM,CAAC,IAAI,CAKd,KAA+F;QAE/F,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAuC,CAAA;IACpE,CAAC;CACJ,CAAA;AAlCG;IAFC,IAAA,qBAAS,EAAC,EAAE,UAAU,EAAE,CAAC,+CAAsB,CAAC,EAAE,CAAC;IACnD,IAAA,oBAAQ,GAAE;;oDACc;AAIzB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;kDACO;AAIlB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACF;AAS3B;IAPC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC;QACN,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CACnB,CAAC,MAAM,CAAC,MAAM,CAAC,oCAAoC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;YAC5D,CAAC,CAAC,mBAAmB,MAAM,CAAC,MAAM,CAAC,oCAAoC,CAAC,EAAE;YAC1E,CAAC,CAAC,SAAS;KACtB,CAAC;;8DAC0D;AAxBnD,qBAAqB;IADjC,IAAA,gBAAI,EAAC,uBAAuB,CAAC;GACjB,qBAAqB,CAyCjC;AAzCY,sDAAqB"}
|
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.0.0-alpha.
|
|
9
|
-
build: "
|
|
10
|
-
date: "2022-05-25T13:
|
|
11
|
-
commit: "
|
|
8
|
+
version: "2.0.0-alpha.23",
|
|
9
|
+
build: "52",
|
|
10
|
+
date: "2022-05-25T13:40:31+00:00",
|
|
11
|
+
commit: "ab5758eb644d1a25f0ec62d35b2379322360239e",
|
|
12
12
|
dependencies: {"@js-soft/logging-abstractions":"^1.0.0"},
|
|
13
13
|
libraries: {
|
|
14
14
|
serval: ts_serval_1.buildInformation,
|
package/lib-web/nmshd.content.js
CHANGED
|
@@ -358,9 +358,10 @@ var RelationshipAttributeConfidentiality;
|
|
|
358
358
|
RelationshipAttributeConfidentiality["Protected"] = "protected";
|
|
359
359
|
})(RelationshipAttributeConfidentiality = exports.RelationshipAttributeConfidentiality || (exports.RelationshipAttributeConfidentiality = {}));
|
|
360
360
|
let RelationshipAttribute = class RelationshipAttribute extends AbstractAttribute_1.AbstractAttribute {
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
361
|
+
static preFrom(value) {
|
|
362
|
+
if (typeof value.isTechnical === "undefined")
|
|
363
|
+
value.isTechnical = false;
|
|
364
|
+
return value;
|
|
364
365
|
}
|
|
365
366
|
static from(value) {
|
|
366
367
|
return this.fromAny(value);
|
|
@@ -379,7 +380,7 @@ __decorate([
|
|
|
379
380
|
__decorate([
|
|
380
381
|
(0, ts_serval_1.serialize)(),
|
|
381
382
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
382
|
-
__metadata("design:type",
|
|
383
|
+
__metadata("design:type", Boolean)
|
|
383
384
|
], RelationshipAttribute.prototype, "isTechnical", void 0);
|
|
384
385
|
__decorate([
|
|
385
386
|
(0, ts_serval_1.serialize)(),
|
|
@@ -4683,10 +4684,10 @@ const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-s
|
|
|
4683
4684
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
4684
4685
|
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
4685
4686
|
exports.buildInformation = {
|
|
4686
|
-
version: "2.0.0-alpha.
|
|
4687
|
-
build: "
|
|
4688
|
-
date: "2022-05-25T13:
|
|
4689
|
-
commit: "
|
|
4687
|
+
version: "2.0.0-alpha.23",
|
|
4688
|
+
build: "52",
|
|
4689
|
+
date: "2022-05-25T13:40:31+00:00",
|
|
4690
|
+
commit: "ab5758eb644d1a25f0ec62d35b2379322360239e",
|
|
4690
4691
|
dependencies: {"@js-soft/logging-abstractions":"^1.0.0"},
|
|
4691
4692
|
libraries: {
|
|
4692
4693
|
serval: ts_serval_1.buildInformation,
|