@nmshd/content 2.0.0-beta.2 → 2.0.0-beta.3

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.2",
9
- build: "79",
10
- date: "2022-07-28T14:49:49+00:00",
11
- commit: "2480c7735e3065723f3f0c9f69512b95388986dc",
8
+ version: "2.0.0-beta.3",
9
+ build: "80",
10
+ date: "2022-08-03T07:04:17+00:00",
11
+ commit: "d7a6a7f8c35014354d1d18af51475a25bfec575c",
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,6 +1,6 @@
1
1
  import { ISerializable, Serializable } from "@js-soft/ts-serval";
2
2
  import { ContentJSON } from "../ContentJSON";
3
- import { CreateAttributeRequestItem, CreateAttributeRequestItemJSON, ICreateAttributeRequestItem, IProposeAttributeRequestItem, IReadAttributeRequestItem, IShareAttributeRequestItem, ProposeAttributeRequestItem, ProposeAttributeRequestItemJSON, ReadAttributeRequestItem, ReadAttributeRequestItemJSON, ShareAttributeRequestItem, ShareAttributeRequestItemJSON } from "./items";
3
+ import { ConsentRequestItem, ConsentRequestItemJSON, CreateAttributeRequestItem, CreateAttributeRequestItemJSON, IConsentRequestItem, ICreateAttributeRequestItem, IProposeAttributeRequestItem, IReadAttributeRequestItem, IShareAttributeRequestItem, ProposeAttributeRequestItem, ProposeAttributeRequestItemJSON, ReadAttributeRequestItem, ReadAttributeRequestItemJSON, ShareAttributeRequestItem, ShareAttributeRequestItemJSON } from "./items";
4
4
  export interface RequestItemJSON extends ContentJSON {
5
5
  /**
6
6
  * The human-readable title of this item.
@@ -28,7 +28,7 @@ export interface RequestItemJSON extends ContentJSON {
28
28
  */
29
29
  mustBeAccepted: boolean;
30
30
  }
31
- export declare type RequestItemJSONDerivations = RequestItemJSON | CreateAttributeRequestItemJSON | ProposeAttributeRequestItemJSON | ReadAttributeRequestItemJSON | ShareAttributeRequestItemJSON;
31
+ export declare type RequestItemJSONDerivations = RequestItemJSON | CreateAttributeRequestItemJSON | ProposeAttributeRequestItemJSON | ReadAttributeRequestItemJSON | ShareAttributeRequestItemJSON | ConsentRequestItemJSON;
32
32
  export interface IRequestItem extends ISerializable {
33
33
  /**
34
34
  * The human-readable title of this item.
@@ -56,7 +56,7 @@ export interface IRequestItem extends ISerializable {
56
56
  */
57
57
  mustBeAccepted: boolean;
58
58
  }
59
- export declare type IRequestItemDerivations = IRequestItem | ICreateAttributeRequestItem | IProposeAttributeRequestItem | IReadAttributeRequestItem | IShareAttributeRequestItem;
59
+ export declare type IRequestItemDerivations = IRequestItem | ICreateAttributeRequestItem | IProposeAttributeRequestItem | IReadAttributeRequestItem | IShareAttributeRequestItem | IConsentRequestItem;
60
60
  export declare abstract class RequestItem extends Serializable {
61
61
  title?: string;
62
62
  description?: string;
@@ -64,4 +64,4 @@ export declare abstract class RequestItem extends Serializable {
64
64
  metadata?: object;
65
65
  toJSON(): RequestItemJSON;
66
66
  }
67
- export declare type RequestItemDerivations = RequestItem | CreateAttributeRequestItem | ProposeAttributeRequestItem | ReadAttributeRequestItem | ShareAttributeRequestItem;
67
+ export declare type RequestItemDerivations = RequestItem | CreateAttributeRequestItem | ProposeAttributeRequestItem | ReadAttributeRequestItem | ShareAttributeRequestItem | ConsentRequestItem;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestItem.js","sourceRoot":"","sources":["../../src/requests/RequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAqF;AA6FrF,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;AAkGrF,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"}
@@ -0,0 +1,17 @@
1
+ import { IRequestItem, RequestItem, RequestItemJSON } from "../../RequestItem";
2
+ export interface ConsentRequestItemJSON extends RequestItemJSON {
3
+ consent: string;
4
+ link?: string;
5
+ requireActiveConsent?: boolean;
6
+ }
7
+ export interface IConsentRequestItem extends IRequestItem {
8
+ consent: string;
9
+ link?: string;
10
+ requireActiveConsent?: boolean;
11
+ }
12
+ export declare class ConsentRequestItem extends RequestItem implements IConsentRequestItem {
13
+ consent: string;
14
+ link?: string;
15
+ requireActiveConsent?: boolean;
16
+ static from(value: IConsentRequestItem): ConsentRequestItem;
17
+ }
@@ -0,0 +1,36 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ConsentRequestItem = void 0;
13
+ const ts_serval_1 = require("@js-soft/ts-serval");
14
+ const RequestItem_1 = require("../../RequestItem");
15
+ class ConsentRequestItem extends RequestItem_1.RequestItem {
16
+ static from(value) {
17
+ return this.fromAny(value);
18
+ }
19
+ }
20
+ __decorate([
21
+ (0, ts_serval_1.serialize)(),
22
+ (0, ts_serval_1.validate)(),
23
+ __metadata("design:type", String)
24
+ ], ConsentRequestItem.prototype, "consent", void 0);
25
+ __decorate([
26
+ (0, ts_serval_1.serialize)(),
27
+ (0, ts_serval_1.validate)({ nullable: true }),
28
+ __metadata("design:type", String)
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
+ exports.ConsentRequestItem = ConsentRequestItem;
36
+ //# sourceMappingURL=ConsentRequestItem.js.map
@@ -0,0 +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,3 +1,4 @@
1
+ export * from "./consent/ConsentRequestItem";
1
2
  export * from "./createAttribute/CreateAttributeAcceptResponseItem";
2
3
  export * from "./createAttribute/CreateAttributeRequestItem";
3
4
  export * from "./proposeAttribute/ProposeAttributeAcceptResponseItem";
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./consent/ConsentRequestItem"), exports);
17
18
  __exportStar(require("./createAttribute/CreateAttributeAcceptResponseItem"), exports);
18
19
  __exportStar(require("./createAttribute/CreateAttributeRequestItem"), exports);
19
20
  __exportStar(require("./proposeAttribute/ProposeAttributeAcceptResponseItem"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/requests/items/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sFAAmE;AACnE,+EAA4D;AAC5D,wFAAqE;AACrE,iFAA8D;AAC9D,kFAA+D;AAC/D,2EAAwD;AACxD,6EAA0D"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/requests/items/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA4C;AAC5C,sFAAmE;AACnE,+EAA4D;AAC5D,wFAAqE;AACrE,iFAA8D;AAC9D,kFAA+D;AAC/D,2EAAwD;AACxD,6EAA0D"}
@@ -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.2",
5491
- build: "79",
5492
- date: "2022-07-28T14:49:49+00:00",
5493
- commit: "2480c7735e3065723f3f0c9f69512b95388986dc",
5490
+ version: "2.0.0-beta.3",
5491
+ build: "80",
5492
+ date: "2022-08-03T07:04:17+00:00",
5493
+ commit: "d7a6a7f8c35014354d1d18af51475a25bfec575c",
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,
@@ -6432,6 +6432,51 @@ __exportStar(__webpack_require__(/*! ./response */ "./dist/requests/response/ind
6432
6432
 
6433
6433
  /***/ }),
6434
6434
 
6435
+ /***/ "./dist/requests/items/consent/ConsentRequestItem.js":
6436
+ /*!***********************************************************!*\
6437
+ !*** ./dist/requests/items/consent/ConsentRequestItem.js ***!
6438
+ \***********************************************************/
6439
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
6440
+
6441
+
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
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
6452
+ exports.ConsentRequestItem = void 0;
6453
+ const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
6454
+ const RequestItem_1 = __webpack_require__(/*! ../../RequestItem */ "./dist/requests/RequestItem.js");
6455
+ class ConsentRequestItem extends RequestItem_1.RequestItem {
6456
+ static from(value) {
6457
+ return this.fromAny(value);
6458
+ }
6459
+ }
6460
+ __decorate([
6461
+ (0, ts_serval_1.serialize)(),
6462
+ (0, ts_serval_1.validate)(),
6463
+ __metadata("design:type", String)
6464
+ ], ConsentRequestItem.prototype, "consent", void 0);
6465
+ __decorate([
6466
+ (0, ts_serval_1.serialize)(),
6467
+ (0, ts_serval_1.validate)({ nullable: true }),
6468
+ __metadata("design:type", String)
6469
+ ], ConsentRequestItem.prototype, "link", void 0);
6470
+ __decorate([
6471
+ (0, ts_serval_1.serialize)(),
6472
+ (0, ts_serval_1.validate)({ nullable: true }),
6473
+ __metadata("design:type", Boolean)
6474
+ ], ConsentRequestItem.prototype, "requireActiveConsent", void 0);
6475
+ exports.ConsentRequestItem = ConsentRequestItem;
6476
+ //# sourceMappingURL=ConsentRequestItem.js.map
6477
+
6478
+ /***/ }),
6479
+
6435
6480
  /***/ "./dist/requests/items/createAttribute/CreateAttributeAcceptResponseItem.js":
6436
6481
  /*!**********************************************************************************!*\
6437
6482
  !*** ./dist/requests/items/createAttribute/CreateAttributeAcceptResponseItem.js ***!
@@ -6538,6 +6583,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
6538
6583
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
6539
6584
  };
6540
6585
  Object.defineProperty(exports, "__esModule", ({ value: true }));
6586
+ __exportStar(__webpack_require__(/*! ./consent/ConsentRequestItem */ "./dist/requests/items/consent/ConsentRequestItem.js"), exports);
6541
6587
  __exportStar(__webpack_require__(/*! ./createAttribute/CreateAttributeAcceptResponseItem */ "./dist/requests/items/createAttribute/CreateAttributeAcceptResponseItem.js"), exports);
6542
6588
  __exportStar(__webpack_require__(/*! ./createAttribute/CreateAttributeRequestItem */ "./dist/requests/items/createAttribute/CreateAttributeRequestItem.js"), exports);
6543
6589
  __exportStar(__webpack_require__(/*! ./proposeAttribute/ProposeAttributeAcceptResponseItem */ "./dist/requests/items/proposeAttribute/ProposeAttributeAcceptResponseItem.js"), exports);