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

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.13",
9
+ build: "90",
10
+ date: "2022-08-09T07:51:41+00:00",
11
+ commit: "1adb3dc35a5d6a8234237369331e267aa9837ce2",
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"}
@@ -6,7 +6,7 @@ import { IRequestItemDerivations, RequestItemDerivations, RequestItemJSONDerivat
6
6
  * if you want to
7
7
  * * make sure that the items in the group can only be accepted together
8
8
  *
9
- * Example: when sending a `CreateAttributeRequestItem` **and** a `ShareAttributeRequestItem` in a single
9
+ * Example: when sending a `CreateRelationshipAttributeRequestItem` **and** a `ShareAttributeRequestItem` in a single
10
10
  * Request where the latter one targets an attribute created by the first one, it it should be impossible to
11
11
  * reject the first item, while accepting the second one.
12
12
  * * visually group items on the UI and give the a common title/description
@@ -42,7 +42,7 @@ export interface RequestItemGroupJSON extends ContentJSON {
42
42
  * if you want to
43
43
  * * make sure that the items in the group can only be accepted together
44
44
  *
45
- * Example: when sending a `CreateAttributeRequestItem` **and** a `ShareAttributeRequestItem` in a single
45
+ * Example: when sending a `CreateRelationshipAttributeRequestItem` **and** a `ShareAttributeRequestItem` in a single
46
46
  * Request where the latter one targets an attribute created by the first one, it it should be impossible to
47
47
  * reject the first item, while accepting the second one.
48
48
  * * visually group items on the UI and give the a common title/description
@@ -1,11 +1,8 @@
1
1
  import { IRequestItem, RequestItem, RequestItemJSON } from "../../RequestItem";
2
2
  export interface AuthenticationRequestItemJSON extends RequestItemJSON {
3
- description: string;
4
3
  }
5
4
  export interface IAuthenticationRequestItem extends IRequestItem {
6
- description: string;
7
5
  }
8
6
  export declare class AuthenticationRequestItem extends RequestItem implements IAuthenticationRequestItem {
9
- description: string;
10
7
  static from(value: IAuthenticationRequestItem): AuthenticationRequestItem;
11
8
  }
@@ -1,26 +1,11 @@
1
1
  "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.AuthenticationRequestItem = void 0;
13
- const ts_serval_1 = require("@js-soft/ts-serval");
14
4
  const RequestItem_1 = require("../../RequestItem");
15
5
  class AuthenticationRequestItem extends RequestItem_1.RequestItem {
16
6
  static from(value) {
17
7
  return this.fromAny(value);
18
8
  }
19
9
  }
20
- __decorate([
21
- (0, ts_serval_1.serialize)(),
22
- (0, ts_serval_1.validate)(),
23
- __metadata("design:type", String)
24
- ], AuthenticationRequestItem.prototype, "description", void 0);
25
10
  exports.AuthenticationRequestItem = AuthenticationRequestItem;
26
11
  //# sourceMappingURL=AuthenticationRequestItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AuthenticationRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/authentication/AuthenticationRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,mDAA8E;AAU9E,MAAa,yBAA0B,SAAQ,yBAAW;IAK/C,MAAM,CAAC,IAAI,CAAC,KAAiC;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ;AALG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;8DACwB;AAHvC,8DAQC"}
1
+ {"version":3,"file":"AuthenticationRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/authentication/AuthenticationRequestItem.ts"],"names":[],"mappings":";;;AAAA,mDAA8E;AAM9E,MAAa,yBAA0B,SAAQ,yBAAW;IAC/C,MAAM,CAAC,IAAI,CAAC,KAAiC;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ;AAJD,8DAIC"}
@@ -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.13",
5491
+ build: "90",
5492
+ date: "2022-08-09T07:51:41+00:00",
5493
+ commit: "1adb3dc35a5d6a8234237369331e267aa9837ce2",
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
 
@@ -6436,32 +6441,17 @@ __exportStar(__webpack_require__(/*! ./response */ "./dist/requests/response/ind
6436
6441
  /*!*************************************************************************!*\
6437
6442
  !*** ./dist/requests/items/authentication/AuthenticationRequestItem.js ***!
6438
6443
  \*************************************************************************/
6439
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
6444
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
6440
6445
 
6441
6446
 
6442
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
6443
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6444
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
6445
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6446
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6447
- };
6448
- var __metadata = (this && this.__metadata) || function (k, v) {
6449
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
6450
- };
6451
6447
  Object.defineProperty(exports, "__esModule", ({ value: true }));
6452
6448
  exports.AuthenticationRequestItem = void 0;
6453
- const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
6454
6449
  const RequestItem_1 = __webpack_require__(/*! ../../RequestItem */ "./dist/requests/RequestItem.js");
6455
6450
  class AuthenticationRequestItem extends RequestItem_1.RequestItem {
6456
6451
  static from(value) {
6457
6452
  return this.fromAny(value);
6458
6453
  }
6459
6454
  }
6460
- __decorate([
6461
- (0, ts_serval_1.serialize)(),
6462
- (0, ts_serval_1.validate)(),
6463
- __metadata("design:type", String)
6464
- ], AuthenticationRequestItem.prototype, "description", void 0);
6465
6455
  exports.AuthenticationRequestItem = AuthenticationRequestItem;
6466
6456
  //# sourceMappingURL=AuthenticationRequestItem.js.map
6467
6457
 
@@ -6502,11 +6492,6 @@ __decorate([
6502
6492
  (0, ts_serval_1.validate)({ nullable: true }),
6503
6493
  __metadata("design:type", String)
6504
6494
  ], 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
6495
  exports.ConsentRequestItem = ConsentRequestItem;
6511
6496
  //# sourceMappingURL=ConsentRequestItem.js.map
6512
6497