@nmshd/content 2.0.0-beta.7 → 2.0.0-beta.8

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.
@@ -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-beta.7",
9
- build: "84",
10
- date: "2022-08-05T07:02:13+00:00",
11
- commit: "e2d2fc40b32e299379cd4de4a5e80e07346533e4",
8
+ version: "2.0.0-beta.8",
9
+ build: "85",
10
+ date: "2022-08-05T08:33:21+00:00",
11
+ commit: "1b86a9190b9cd07be27b4213834b574164620960",
12
12
  dependencies: {"@js-soft/logging-abstractions":"^1.0.0","easy-tsnameof":"^3.0.6"},
13
13
  libraries: {
14
14
  serval: ts_serval_1.buildInformation,
@@ -1,17 +1,17 @@
1
1
  import { CoreId, ICoreId } from "@nmshd/transport";
2
2
  import { RequestItemJSON } from "../..";
3
- import { IdentityAttribute, IdentityAttributeJSON, IIdentityAttribute } from "../../../attributes";
3
+ import { IdentityAttribute, IdentityAttributeJSON, IIdentityAttribute, IRelationshipAttribute, RelationshipAttribute, RelationshipAttributeJSON } from "../../../attributes";
4
4
  import { IRequestItem, RequestItem } from "../../RequestItem";
5
5
  export interface ShareAttributeRequestItemJSON extends RequestItemJSON {
6
- attribute: IdentityAttributeJSON;
6
+ attribute: IdentityAttributeJSON | RelationshipAttributeJSON;
7
7
  sourceAttributeId: string;
8
8
  }
9
9
  export interface IShareAttributeRequestItem extends IRequestItem {
10
- attribute: IIdentityAttribute;
10
+ attribute: IIdentityAttribute | IRelationshipAttribute;
11
11
  sourceAttributeId: ICoreId;
12
12
  }
13
13
  export declare class ShareAttributeRequestItem extends RequestItem implements IShareAttributeRequestItem {
14
- attribute: IdentityAttribute;
14
+ attribute: IdentityAttribute | RelationshipAttribute;
15
15
  sourceAttributeId: CoreId;
16
16
  static from(value: IShareAttributeRequestItem | ShareAttributeRequestItemJSON): ShareAttributeRequestItem;
17
17
  }
@@ -20,9 +20,9 @@ let ShareAttributeRequestItem = class ShareAttributeRequestItem extends RequestI
20
20
  }
21
21
  };
22
22
  __decorate([
23
- (0, ts_serval_1.serialize)(),
23
+ (0, ts_serval_1.serialize)({ unionTypes: [attributes_1.IdentityAttribute, attributes_1.RelationshipAttribute] }),
24
24
  (0, ts_serval_1.validate)(),
25
- __metadata("design:type", attributes_1.IdentityAttribute)
25
+ __metadata("design:type", Object)
26
26
  ], ShareAttributeRequestItem.prototype, "attribute", void 0);
27
27
  __decorate([
28
28
  (0, ts_serval_1.serialize)(),
@@ -1 +1 @@
1
- {"version":3,"file":"ShareAttributeRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/shareAttribute/ShareAttributeRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,gDAAkD;AAElD,oDAAkG;AAClG,mDAA6D;AAa7D,IAAa,yBAAyB,GAAtC,MAAa,yBAA0B,SAAQ,yBAAW;IAS/C,MAAM,CAAC,IAAI,CAAC,KAAiE;QAChF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AATG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACO,8BAAiB;4DAAA;AAInC;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACe,kBAAM;oEAAA;AAPvB,yBAAyB;IADrC,IAAA,gBAAI,EAAC,2BAA2B,CAAC;GACrB,yBAAyB,CAYrC;AAZY,8DAAyB"}
1
+ {"version":3,"file":"ShareAttributeRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/shareAttribute/ShareAttributeRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,gDAAkD;AAElD,oDAO4B;AAC5B,mDAA6D;AAa7D,IAAa,yBAAyB,GAAtC,MAAa,yBAA0B,SAAQ,yBAAW;IAS/C,MAAM,CAAC,IAAI,CAAC,KAAiE;QAChF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AATG;IAFC,IAAA,qBAAS,EAAC,EAAE,UAAU,EAAE,CAAC,8BAAiB,EAAE,kCAAqB,CAAC,EAAE,CAAC;IACrE,IAAA,oBAAQ,GAAE;;4DACgD;AAI3D;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACe,kBAAM;oEAAA;AAPvB,yBAAyB;IADrC,IAAA,gBAAI,EAAC,2BAA2B,CAAC;GACrB,yBAAyB,CAYrC;AAZY,8DAAyB"}
@@ -5487,10 +5487,10 @@ const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-s
5487
5487
  const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
5488
5488
  const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
5489
5489
  exports.buildInformation = {
5490
- version: "2.0.0-beta.7",
5491
- build: "84",
5492
- date: "2022-08-05T07:02:13+00:00",
5493
- commit: "e2d2fc40b32e299379cd4de4a5e80e07346533e4",
5490
+ version: "2.0.0-beta.8",
5491
+ build: "85",
5492
+ date: "2022-08-05T08:33:21+00:00",
5493
+ commit: "1b86a9190b9cd07be27b4213834b574164620960",
5494
5494
  dependencies: {"@js-soft/logging-abstractions":"^1.0.0","easy-tsnameof":"^3.0.6"},
5495
5495
  libraries: {
5496
5496
  serval: ts_serval_1.buildInformation,
@@ -6847,9 +6847,9 @@ let ShareAttributeRequestItem = class ShareAttributeRequestItem extends RequestI
6847
6847
  }
6848
6848
  };
6849
6849
  __decorate([
6850
- (0, ts_serval_1.serialize)(),
6850
+ (0, ts_serval_1.serialize)({ unionTypes: [attributes_1.IdentityAttribute, attributes_1.RelationshipAttribute] }),
6851
6851
  (0, ts_serval_1.validate)(),
6852
- __metadata("design:type", attributes_1.IdentityAttribute)
6852
+ __metadata("design:type", Object)
6853
6853
  ], ShareAttributeRequestItem.prototype, "attribute", void 0);
6854
6854
  __decorate([
6855
6855
  (0, ts_serval_1.serialize)(),