@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.
@@ -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
- constructor() {
49
- super(...arguments);
50
- this.isTechnical = false;
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", Object)
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,qE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BAAI,EAAC,uBAAuB,CAAC;GACjB,qBAAqB,CAyCjC;AAzCY,sDAAqB"}
@@ -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.22",
9
- build: "51",
10
- date: "2022-05-25T13:26:20+00:00",
11
- commit: "b90a332ffdb417a5d05dffdad4435016a0aa6f00",
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,
@@ -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
- constructor() {
362
- super(...arguments);
363
- this.isTechnical = false;
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", Object)
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.22",
4687
- build: "51",
4688
- date: "2022-05-25T13:26:20+00:00",
4689
- commit: "b90a332ffdb417a5d05dffdad4435016a0aa6f00",
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,