@nmshd/content 2.0.0-beta.10 → 2.0.0-beta.11

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.10",
9
- build: "87",
10
- date: "2022-08-05T13:38:37+00:00",
11
- commit: "a6aa8ba83ab66f07b1417a5868c274bb52313029",
8
+ version: "2.0.0-beta.11",
9
+ build: "88",
10
+ date: "2022-08-05T14:06:18+00:00",
11
+ commit: "8bda279eea8ee03bb31bf12687508f7677ce9a77",
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,
@@ -29,6 +29,11 @@ export interface RequestItemJSON extends ContentJSON {
29
29
  * is accepted as well.
30
30
  */
31
31
  mustBeAccepted: boolean;
32
+ /**
33
+ * If set to `true`, it advices the recipient of this RequestItem to carefully consider
34
+ * their decision and especially do not decide based on some automation rules.
35
+ */
36
+ requireManualDecision?: boolean;
32
37
  }
33
38
  export declare type RequestItemJSONDerivations = RequestItemJSON | CreateRelationshipAttributeRequestItemJSON | ShareAttributeRequestItemJSON | ProposeAttributeRequestItemJSON | ReadAttributeRequestItemJSON | ConsentRequestItemJSON | AuthenticationRequestItemJSON;
34
39
  export interface IRequestItem extends ISerializable {
@@ -57,6 +62,11 @@ export interface IRequestItem extends ISerializable {
57
62
  * is accepted as well.
58
63
  */
59
64
  mustBeAccepted: boolean;
65
+ /**
66
+ * If set to `true`, it advices the recipient of this RequestItem to carefully consider
67
+ * their decision and especially do not decide based on some automation rules.
68
+ */
69
+ requireManualDecision?: boolean;
60
70
  }
61
71
  export declare type IRequestItemDerivations = IRequestItem | ICreateRelationshipAttributeRequestItem | IShareAttributeRequestItem | IProposeAttributeRequestItem | IReadAttributeRequestItem | IConsentRequestItem | IAuthenticationRequestItem;
62
72
  export declare abstract class RequestItem extends Serializable {
@@ -64,6 +74,7 @@ export declare abstract class RequestItem extends Serializable {
64
74
  description?: string;
65
75
  mustBeAccepted: boolean;
66
76
  metadata?: object;
77
+ requireManualDecision?: boolean;
67
78
  toJSON(): RequestItemJSON;
68
79
  }
69
80
  export declare type RequestItemDerivations = RequestItem | CreateRelationshipAttributeRequestItem | ShareAttributeRequestItem | ProposeAttributeRequestItem | ReadAttributeRequestItem | ConsentRequestItem | AuthenticationRequestItem;
@@ -36,5 +36,10 @@ __decorate([
36
36
  (0, ts_serval_1.validate)({ nullable: true }),
37
37
  __metadata("design:type", Object)
38
38
  ], RequestItem.prototype, "metadata", void 0);
39
+ __decorate([
40
+ (0, ts_serval_1.serialize)(),
41
+ (0, ts_serval_1.validate)({ nullable: true }),
42
+ __metadata("design:type", Boolean)
43
+ ], RequestItem.prototype, "requireManualDecision", void 0);
39
44
  exports.RequestItem = RequestItem;
40
45
  //# sourceMappingURL=RequestItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RequestItem.js","sourceRoot":"","sources":["../../src/requests/RequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAqF;AA2GrF,MAAsB,WAAY,SAAQ,wBAAY;IAiBlC,MAAM;QAClB,OAAO,KAAK,CAAC,MAAM,EAAqB,CAAA;IAC5C,CAAC;CACJ;AAjBG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACR;AAIrB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACF;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;mDACmB;AAI9B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACL;AAf5B,kCAoBC"}
1
+ {"version":3,"file":"RequestItem.js","sourceRoot":"","sources":["../../src/requests/RequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAqF;AAuHrF,MAAsB,WAAY,SAAQ,wBAAY;IAqBlC,MAAM;QAClB,OAAO,KAAK,CAAC,MAAM,EAAqB,CAAA;IAC5C,CAAC;CACJ;AArBG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACR;AAIrB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACF;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;mDACmB;AAI9B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACL;AAIxB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACS;AAnB1C,kCAwBC"}
@@ -2,16 +2,13 @@ import { IRequestItem, RequestItem, RequestItemJSON } from "../../RequestItem";
2
2
  export interface ConsentRequestItemJSON extends RequestItemJSON {
3
3
  consent: string;
4
4
  link?: string;
5
- requireActiveConsent?: boolean;
6
5
  }
7
6
  export interface IConsentRequestItem extends IRequestItem {
8
7
  consent: string;
9
8
  link?: string;
10
- requireActiveConsent?: boolean;
11
9
  }
12
10
  export declare class ConsentRequestItem extends RequestItem implements IConsentRequestItem {
13
11
  consent: string;
14
12
  link?: string;
15
- requireActiveConsent?: boolean;
16
13
  static from(value: IConsentRequestItem): ConsentRequestItem;
17
14
  }
@@ -27,10 +27,5 @@ __decorate([
27
27
  (0, ts_serval_1.validate)({ nullable: true }),
28
28
  __metadata("design:type", String)
29
29
  ], ConsentRequestItem.prototype, "link", void 0);
30
- __decorate([
31
- (0, ts_serval_1.serialize)(),
32
- (0, ts_serval_1.validate)({ nullable: true }),
33
- __metadata("design:type", Boolean)
34
- ], ConsentRequestItem.prototype, "requireActiveConsent", void 0);
35
30
  exports.ConsentRequestItem = ConsentRequestItem;
36
31
  //# sourceMappingURL=ConsentRequestItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConsentRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/consent/ConsentRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,mDAA8E;AAc9E,MAAa,kBAAmB,SAAQ,yBAAW;IAaxC,MAAM,CAAC,IAAI,CAAC,KAA0B;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ;AAbG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;mDACW;AAItB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACT;AAIpB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gEACQ;AAXzC,gDAgBC"}
1
+ {"version":3,"file":"ConsentRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/consent/ConsentRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,mDAA8E;AAY9E,MAAa,kBAAmB,SAAQ,yBAAW;IASxC,MAAM,CAAC,IAAI,CAAC,KAA0B;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ;AATG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;mDACW;AAItB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACT;AAPxB,gDAYC"}
@@ -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.10",
5491
- build: "87",
5492
- date: "2022-08-05T13:38:37+00:00",
5493
- commit: "a6aa8ba83ab66f07b1417a5868c274bb52313029",
5490
+ version: "2.0.0-beta.11",
5491
+ build: "88",
5492
+ date: "2022-08-05T14:06:18+00:00",
5493
+ commit: "8bda279eea8ee03bb31bf12687508f7677ce9a77",
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,
@@ -6323,6 +6323,11 @@ __decorate([
6323
6323
  (0, ts_serval_1.validate)({ nullable: true }),
6324
6324
  __metadata("design:type", Object)
6325
6325
  ], RequestItem.prototype, "metadata", void 0);
6326
+ __decorate([
6327
+ (0, ts_serval_1.serialize)(),
6328
+ (0, ts_serval_1.validate)({ nullable: true }),
6329
+ __metadata("design:type", Boolean)
6330
+ ], RequestItem.prototype, "requireManualDecision", void 0);
6326
6331
  exports.RequestItem = RequestItem;
6327
6332
  //# sourceMappingURL=RequestItem.js.map
6328
6333
 
@@ -6502,11 +6507,6 @@ __decorate([
6502
6507
  (0, ts_serval_1.validate)({ nullable: true }),
6503
6508
  __metadata("design:type", String)
6504
6509
  ], ConsentRequestItem.prototype, "link", void 0);
6505
- __decorate([
6506
- (0, ts_serval_1.serialize)(),
6507
- (0, ts_serval_1.validate)({ nullable: true }),
6508
- __metadata("design:type", Boolean)
6509
- ], ConsentRequestItem.prototype, "requireActiveConsent", void 0);
6510
6510
  exports.ConsentRequestItem = ConsentRequestItem;
6511
6511
  //# sourceMappingURL=ConsentRequestItem.js.map
6512
6512