@nmshd/consumption 2.0.0-beta.15 → 2.0.0-beta.16

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.
Files changed (63) hide show
  1. package/dist/buildInformation.js +4 -4
  2. package/dist/consumption/ConsumptionController.d.ts +3 -7
  3. package/dist/consumption/ConsumptionController.js +10 -12
  4. package/dist/consumption/ConsumptionController.js.map +1 -1
  5. package/dist/consumption/ConsumptionControllerName.d.ts +1 -0
  6. package/dist/consumption/ConsumptionControllerName.js +1 -0
  7. package/dist/consumption/ConsumptionControllerName.js.map +1 -1
  8. package/dist/consumption/ConsumptionIds.d.ts +1 -0
  9. package/dist/consumption/ConsumptionIds.js +1 -0
  10. package/dist/consumption/ConsumptionIds.js.map +1 -1
  11. package/dist/modules/attributeListeners/AttributeListenersController.d.ts +18 -0
  12. package/dist/modules/attributeListeners/AttributeListenersController.js +44 -0
  13. package/dist/modules/attributeListeners/AttributeListenersController.js.map +1 -0
  14. package/dist/modules/attributeListeners/events/AttributeListenerCreatedEvent.d.ts +6 -0
  15. package/dist/modules/attributeListeners/events/AttributeListenerCreatedEvent.js +12 -0
  16. package/dist/modules/attributeListeners/events/AttributeListenerCreatedEvent.js.map +1 -0
  17. package/dist/modules/attributeListeners/events/index.d.ts +1 -0
  18. package/dist/modules/attributeListeners/events/index.js +18 -0
  19. package/dist/modules/attributeListeners/events/index.js.map +1 -0
  20. package/dist/modules/attributeListeners/index.d.ts +4 -0
  21. package/dist/modules/attributeListeners/index.js +21 -0
  22. package/dist/modules/attributeListeners/index.js.map +1 -0
  23. package/dist/modules/attributeListeners/local/CreateLocalAttributeListenerParams.d.ts +12 -0
  24. package/dist/modules/attributeListeners/local/CreateLocalAttributeListenerParams.js +31 -0
  25. package/dist/modules/attributeListeners/local/CreateLocalAttributeListenerParams.js.map +1 -0
  26. package/dist/modules/attributeListeners/local/LocalAttributeListener.d.ts +19 -0
  27. package/dist/modules/attributeListeners/local/LocalAttributeListener.js +48 -0
  28. package/dist/modules/attributeListeners/local/LocalAttributeListener.js.map +1 -0
  29. package/dist/modules/attributes/local/CreateAttributeParams.js.map +1 -1
  30. package/dist/modules/attributes/local/CreateLocalAttributeParams.js.map +1 -1
  31. package/dist/modules/attributes/local/CreatePeerLocalAttributeParams.js.map +1 -1
  32. package/dist/modules/attributes/local/CreateSharedLocalAttributeCopyParams.js.map +1 -1
  33. package/dist/modules/attributes/local/LocalAttribute.js.map +1 -1
  34. package/dist/modules/attributes/local/LocalAttributeShareInfo.js.map +1 -1
  35. package/dist/modules/attributes/local/SucceedLocalAttributeParams.js.map +1 -1
  36. package/dist/modules/attributes/local/UpdateLocalAttributeParams.js.map +1 -1
  37. package/dist/modules/drafts/local/Draft.js.map +1 -1
  38. package/dist/modules/index.d.ts +1 -0
  39. package/dist/modules/index.js +1 -0
  40. package/dist/modules/index.js.map +1 -1
  41. package/dist/modules/requests/incoming/checkPrerequisites/CheckPrerequisitesOfIncomingRequestParameters.js.map +1 -1
  42. package/dist/modules/requests/incoming/complete/CompleteIncomingRequestParameters.js.map +1 -1
  43. package/dist/modules/requests/incoming/decide/InternalDecideRequestParameters.js.map +1 -1
  44. package/dist/modules/requests/incoming/received/ReceivedIncomingRequestParameters.js.map +1 -1
  45. package/dist/modules/requests/incoming/requireManualDecision/RequireManualDecisionOfIncomingRequestParameters.js.map +1 -1
  46. package/dist/modules/requests/itemProcessors/createAttribute/AcceptCreateAttributeRequestItemParameters.js.map +1 -1
  47. package/dist/modules/requests/itemProcessors/proposeAttribute/AcceptProposeAttributeRequestItemParameters.js.map +1 -1
  48. package/dist/modules/requests/itemProcessors/readAttribute/AcceptReadAttributeRequestItemParameters.js.map +1 -1
  49. package/dist/modules/requests/itemProcessors/shareAttribute/AcceptShareAttributeRequestItemParameters.js.map +1 -1
  50. package/dist/modules/requests/local/LocalRequest.js.map +1 -1
  51. package/dist/modules/requests/local/LocalRequestStatusLogEntry.js.map +1 -1
  52. package/dist/modules/requests/local/LocalResponse.js.map +1 -1
  53. package/dist/modules/requests/outgoing/completeOutgoingRequest/CompleteOutgoingRequestParameters.js.map +1 -1
  54. package/dist/modules/requests/outgoing/createFromRelationshipCreationChange/CreateOutgoingRequestFromRelationshipCreationChangeParameters.js.map +1 -1
  55. package/dist/modules/requests/outgoing/createOutgoingRequest/CanCreateOutgoingRequestParameters.js.map +1 -1
  56. package/dist/modules/requests/outgoing/createOutgoingRequest/CreateOutgoingRequestParameters.js.map +1 -1
  57. package/dist/modules/requests/outgoing/sentOutgoingRequest/SentOutgoingRequestParameters.js.map +1 -1
  58. package/dist/modules/settings/local/Setting.js.map +1 -1
  59. package/lib-web/nmshd.consumption.js +251 -16
  60. package/lib-web/nmshd.consumption.js.map +1 -1
  61. package/lib-web/nmshd.consumption.min.js +1 -1
  62. package/lib-web/nmshd.consumption.min.js.map +1 -1
  63. package/package.json +8 -8
@@ -1 +1 @@
1
- {"version":3,"file":"LocalRequest.js","sourceRoot":"","sources":["../../../../src/modules/requests/local/LocalRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,4CAAkD;AAClD,gDAWyB;AACzB,6DAAyD;AACzD,6EAAsG;AACtG,mDAA+D;AAQ/D,IAAa,kBAAkB,GAA/B,MAAa,kBAAmB,SAAQ,4BAAgB;IAS7C,MAAM,CAAC,IAAI,CAAC,KAA0B;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AATG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;gDACoC;AAI/C;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACO,kBAAM;qDAAA;AAPf,kBAAkB;IAD9B,IAAA,gBAAI,EAAC,oBAAoB,CAAC;GACd,kBAAkB,CAY9B;AAZY,gDAAkB;AA0B/B,IAAa,YAAY,GAAzB,MAAa,YAAa,SAAQ,8BAAkB;IAiCzC,YAAY,CAAC,S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ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,gDAA2F;AAC3F,6DAAyD;AAWzD,IAAa,0BAA0B,GAAvC,MAAa,0BAA2B,SAAQ,4BAAgB;IAqBrD,MAAM,CAAC,IAAI,CAAC,KAAkC;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AArBG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACO,oBAAQ;6DAAA;AAI1B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;6DACyB;AAIpC;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;6DACyB;AAIpC;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACT;AAIpB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACT;AAnBX,0BAA0B;IADtC,IAAA,gBAAI,EAAC,4BAA4B,CAAC;GACtB,0BAA0B,CAwBtC;AAxBY,gEAA0B"}
1
+ {"version":3,"file":"LocalRequestStatusLogEntry.js","sourceRoot":"","sources":["../../../../src/modules/requests/local/LocalRequestStatusLogEntry.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,gDAA2F;AAC3F,6DAAyD;AAWlD,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,4BAAgB;IAqBrD,MAAM,CAAC,IAAI,CAAC,KAAkC;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAvBG;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACO,oBAAQ;6DAAA;AAE1B;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,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AE,CAAC;8BACb,mBAAmB;6CAAA;AAX1B,aAAa;IADzB,IAAA,gBAAI,EAAC,eAAe,CAAC;GACT,aAAa,CAgBzB;AAhBY,sCAAa"}
@@ -1 +1 @@
1
- {"version":3,"file":"CompleteOutgoingRequestParameters.js","sourceRoot":"","sources":["../../../../../src/modules/requests/outgoing/completeOutgoingRequest/CompleteOutgoingRequestParameters.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,4CAAoD;AACpD,gDAAqE;AASrE,IAAa,gCAAgC,GAA7C,MAAa,gCAAiC,SAAQ,wBAAY;IAavD,MAAM,CAAC,IAAI,CAAC,KAAwC;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAbG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACO,kBAAM;mEAAA;AAIxB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACkB,mBAAO;8EAAA;AAIpC;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACc,kBAAQ;0EAAA;AAXxB,gCAAgC;IAD5C,IAAA,gBAAI,EAAC,kCAAkC,CAAC;GAC5B,gCAAgC,CAgB5C;AAhBY,4EAAgC"}
1
+ {"version":3,"file":"CompleteOutgoingRequestParameters.js","sourceRoot":"","sources":["../../../../../src/modules/requests/outgoing/completeOutgoingRequest/CompleteOutgoingRequestParameters.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,4CAAoD;AACpD,gDAAqE;AAS9D,IAAM,gCAAgC,GAAtC,MAAM,gCAAiC,SAAQ,wBAAY;IAavD,MAAM,CAAC,IAAI,CAAC,KAAwC;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAfG;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACO,kBAAM;mEAAA;AAExB;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACkB,mBAAO;8EAAA;AAEpC;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACc,kBAAQ;0EAAA;AAXxB,gCAAgC;IAD5C,IAAA,gBAAI,EAAC,kCAAkC,CAAC;GAC5B,gCAAgC,CAgB5C;AAhBY,4EAAgC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CreateOutgoingRequestFromRelationshipCreationChangeParameters.js","sourceRoot":"","sources":["../../../../../src/modules/requests/outgoing/createFromRelationshipCreationChange/CreateOutgoingRequestFromRelationshipCreationChangeParameters.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,gDAAuH;AAQvH,IAAa,6DAA6D,GAA1E,MAAa,6DACT,SAAQ,wBAAY;IAWb,MAAM,CAAC,IAAI,CACd,KAAqE;QAErE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAXG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACM,gCAAoB;+FAAA;AAIrC;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACY,8BAAkB;qGAAA;AAVhC,6DAA6D;IADzE,IAAA,gBAAI,EAAC,+DAA+D,CAAC;GACzD,6DAA6D,CAiBzE;AAjBY,sIAA6D"}
1
+ {"version":3,"file":"CreateOutgoingRequestFromRelationshipCreationChangeParameters.js","sourceRoot":"","sources":["../../../../../src/modules/requests/outgoing/createFromRelationshipCreationChange/CreateOutgoingRequestFromRelationshipCreationChangeParameters.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,gDAAuH;AAQhH,IAAM,6DAA6D,GAAnE,MAAM,6DACT,SAAQ,wBAAY;IAWb,MAAM,CAAC,IAAI,CACd,KAAqE;QAErE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAbG;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACM,gCAAoB;+FAAA;AAErC;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACY,8BAAkB;qGAAA;AAVhC,6DAA6D;IADzE,IAAA,gBAAI,EAAC,+DAA+D,CAAC;GACzD,6DAA6D,CAiBzE;AAjBY,sIAA6D"}
@@ -1 +1 @@
1
- {"version":3,"file":"CanCreateOutgoingRequestParameters.js","sourceRoot":"","sources":["../../../../../src/modules/requests/outgoing/createOutgoingRequest/CanCreateOutgoingRequestParameters.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,4CAAwC;AACxC,gDAA4D;AAS5D,IAAa,kCAAkC,GAA/C,MAAa,kCAAmC,SAAQ,wBAAY;IASzD,MAAM,CAAC,IAAI,CAAC,KAA0C;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AATG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACK,iBAAO;mEAAA;AAIvB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACf,uBAAW;gEAAA;AAPhB,kCAAkC;IAD9C,IAAA,gBAAI,EAAC,oCAAoC,CAAC;GAC9B,kCAAkC,CAY9C;AAZY,gFAAkC"}
1
+ {"version":3,"file":"CanCreateOutgoingRequestParameters.js","sourceRoot":"","sources":["../../../../../src/modules/requests/outgoing/createOutgoingRequest/CanCreateOutgoingRequestParameters.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,4CAAwC;AACxC,gDAA4D;AASrD,IAAM,kCAAkC,GAAxC,MAAM,kCAAmC,SAAQ,wBAAY;IASzD,MAAM,CAAC,IAAI,CAAC,KAA0C;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAXG;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACK,iBAAO;mEAAA;AAEvB;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACf,uBAAW;gEAAA;AAPhB,kCAAkC;IAD9C,IAAA,gBAAI,EAAC,oCAAoC,CAAC;GAC9B,kCAAkC,CAY9C;AAZY,gFAAkC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CreateOutgoingRequestParameters.js","sourceRoot":"","sources":["../../../../../src/modules/requests/outgoing/createOutgoingRequest/CreateOutgoingRequestParameters.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,4CAAkD;AAClD,gDAA4D;AAU5D,IAAa,+BAA+B,GAA5C,MAAa,+BAAgC,SAAQ,wBAAY;IAStD,MAAM,CAAC,IAAI,CAAC,KAAuC;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AATG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACK,iBAAO;gEAAA;AAIvB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACE,uBAAW;6DAAA;AAPf,+BAA+B;IAD3C,IAAA,gBAAI,EAAC,iCAAiC,CAAC;GAC3B,+BAA+B,CAY3C;AAZY,0EAA+B"}
1
+ {"version":3,"file":"CreateOutgoingRequestParameters.js","sourceRoot":"","sources":["../../../../../src/modules/requests/outgoing/createOutgoingRequest/CreateOutgoingRequestParameters.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,4CAAkD;AAClD,gDAA4D;AAUrD,IAAM,+BAA+B,GAArC,MAAM,+BAAgC,SAAQ,wBAAY;IAStD,MAAM,CAAC,IAAI,CAAC,KAAuC;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAXG;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACK,iBAAO;gEAAA;AAEvB;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACE,uBAAW;6DAAA;AAPf,+BAA+B;IAD3C,IAAA,gBAAI,EAAC,iCAAiC,CAAC;GAC3B,+BAA+B,CAY3C;AAZY,0EAA+B"}
@@ -1 +1 @@
1
- {"version":3,"file":"SentOutgoingRequestParameters.js","sourceRoot":"","sources":["../../../../../src/modules/requests/outgoing/sentOutgoingRequest/SentOutgoingRequestParameters.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,gDAAqE;AAQrE,IAAa,6BAA6B,GAA1C,MAAa,6BAA8B,SAAQ,wBAAY;IASpD,MAAM,CAAC,IAAI,CAAC,KAAqC;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AATG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACO,kBAAM;gEAAA;AAIxB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACiB,mBAAO;0EAAA;AAP1B,6BAA6B;IADzC,IAAA,gBAAI,EAAC,+BAA+B,CAAC;GACzB,6BAA6B,CAYzC;AAZY,sEAA6B"}
1
+ {"version":3,"file":"SentOutgoingRequestParameters.js","sourceRoot":"","sources":["../../../../../src/modules/requests/outgoing/sentOutgoingRequest/SentOutgoingRequestParameters.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,gDAAqE;AAQ9D,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,wBAAY;IASpD,MAAM,CAAC,IAAI,C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;IADnB,IAAA,gBAAI,EAAC,SAAS,CAAC;GACH,OAAO,CA0DnB;AA1DY,0BAAO"}
@@ -17,10 +17,10 @@ const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
17
17
  const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
18
18
  const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
19
19
  exports.buildInformation = {
20
- version: "2.0.0-beta.15",
21
- build: "66",
22
- date: "2022-09-09T06:59:05+00:00",
23
- commit: "36168f3d7a06186c388a1563731cfa88541125b5",
20
+ version: "2.0.0-beta.16",
21
+ build: "68",
22
+ date: "2022-09-13T12:54:16+00:00",
23
+ commit: "0e745294518a8409ceacda7019eb2cd6c442a755",
24
24
  dependencies: {"@js-soft/docdb-querytranslator":"^1.1.0","ts-simple-nameof":"^1.3.1"},
25
25
  libraries: {
26
26
  transport: transport_1.buildInformation,
@@ -79,12 +79,6 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
79
79
  exports.ConsumptionController = void 0;
80
80
  const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
81
81
  const modules_1 = __webpack_require__(/*! ../modules */ "./dist/modules/index.js");
82
- const LocalAttributesController_1 = __webpack_require__(/*! ../modules/attributes/LocalAttributesController */ "./dist/modules/attributes/LocalAttributesController.js");
83
- const DraftsController_1 = __webpack_require__(/*! ../modules/drafts/DraftsController */ "./dist/modules/drafts/DraftsController.js");
84
- const IncomingRequestsController_1 = __webpack_require__(/*! ../modules/requests/incoming/IncomingRequestsController */ "./dist/modules/requests/incoming/IncomingRequestsController.js");
85
- const RequestItemProcessorRegistry_1 = __webpack_require__(/*! ../modules/requests/itemProcessors/RequestItemProcessorRegistry */ "./dist/modules/requests/itemProcessors/RequestItemProcessorRegistry.js");
86
- const OutgoingRequestsController_1 = __webpack_require__(/*! ../modules/requests/outgoing/OutgoingRequestsController */ "./dist/modules/requests/outgoing/OutgoingRequestsController.js");
87
- const SettingsController_1 = __webpack_require__(/*! ../modules/settings/SettingsController */ "./dist/modules/settings/SettingsController.js");
88
82
  class ConsumptionController {
89
83
  constructor(transport, accountController) {
90
84
  this.transport = transport;
@@ -105,16 +99,20 @@ class ConsumptionController {
105
99
  get settings() {
106
100
  return this._settings;
107
101
  }
102
+ get attributeListeners() {
103
+ return this._attributeListeners;
104
+ }
108
105
  async init(requestItemProcessorOverrides = new Map()) {
109
- this._attributes = await new LocalAttributesController_1.LocalAttributesController(this, this.transport.eventBus, this.accountController.identity).init();
110
- this._drafts = await new DraftsController_1.DraftsController(this).init();
111
- const processorRegistry = new RequestItemProcessorRegistry_1.RequestItemProcessorRegistry(this, this.getDefaultProcessors());
106
+ this._attributes = await new modules_1.LocalAttributesController(this, this.transport.eventBus, this.accountController.identity).init();
107
+ this._drafts = await new modules_1.DraftsController(this).init();
108
+ const processorRegistry = new modules_1.RequestItemProcessorRegistry(this, this.getDefaultProcessors());
112
109
  for (const [itemConstructor, processorConstructor] of requestItemProcessorOverrides) {
113
110
  processorRegistry.registerOrReplaceProcessor(itemConstructor, processorConstructor);
114
111
  }
115
- this._outgoingRequests = await new OutgoingRequestsController_1.OutgoingRequestsController(await this.accountController.getSynchronizedCollection("Requests"), processorRegistry, this, this.transport.eventBus, this.accountController.identity).init();
116
- this._incomingRequests = await new IncomingRequestsController_1.IncomingRequestsController(await this.accountController.getSynchronizedCollection("Requests"), processorRegistry, this, this.transport.eventBus, this.accountController.identity).init();
117
- this._settings = await new SettingsController_1.SettingsController(this).init();
112
+ this._outgoingRequests = await new modules_1.OutgoingRequestsController(await this.accountController.getSynchronizedCollection("Requests"), processorRegistry, this, this.transport.eventBus, this.accountController.identity).init();
113
+ this._incomingRequests = await new modules_1.IncomingRequestsController(await this.accountController.getSynchronizedCollection("Requests"), processorRegistry, this, this.transport.eventBus, this.accountController.identity).init();
114
+ this._settings = await new modules_1.SettingsController(this).init();
115
+ this._attributeListeners = await new modules_1.AttributeListenersController(this, this.transport.eventBus, this.accountController.identity).init();
118
116
  return this;
119
117
  }
120
118
  getDefaultProcessors() {
@@ -146,6 +144,7 @@ exports.ConsumptionControllerName = void 0;
146
144
  var ConsumptionControllerName;
147
145
  (function (ConsumptionControllerName) {
148
146
  ConsumptionControllerName["LocalAttributesController"] = "LocalAttributesController";
147
+ ConsumptionControllerName["AttributeListenersController"] = "AttributeListenersController";
149
148
  ConsumptionControllerName["DraftsController"] = "DraftsController";
150
149
  ConsumptionControllerName["RelationshipInfoController"] = "RelationshipInfoController";
151
150
  ConsumptionControllerName["SingleRelationshipController"] = "SingleRelationshipController";
@@ -258,6 +257,7 @@ ConsumptionIds.draft = new transport_1.CoreIdHelper("LCLDRF");
258
257
  ConsumptionIds.setting = new transport_1.CoreIdHelper("LCLSET");
259
258
  ConsumptionIds.attribute = new transport_1.CoreIdHelper("ATT");
260
259
  ConsumptionIds.request = new transport_1.CoreIdHelper("REQ");
260
+ ConsumptionIds.attributeListener = new transport_1.CoreIdHelper("ATL");
261
261
  //# sourceMappingURL=ConsumptionIds.js.map
262
262
 
263
263
  /***/ }),
@@ -324,6 +324,240 @@ __exportStar(__webpack_require__(/*! ./modules */ "./dist/modules/index.js"), ex
324
324
 
325
325
  /***/ }),
326
326
 
327
+ /***/ "./dist/modules/attributeListeners/AttributeListenersController.js":
328
+ /*!*************************************************************************!*\
329
+ !*** ./dist/modules/attributeListeners/AttributeListenersController.js ***!
330
+ \*************************************************************************/
331
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
332
+
333
+ "use strict";
334
+
335
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
336
+ exports.AttributeListenersController = void 0;
337
+ const consumption_1 = __webpack_require__(/*! ../../consumption */ "./dist/consumption/index.js");
338
+ const ConsumptionBaseController_1 = __webpack_require__(/*! ../../consumption/ConsumptionBaseController */ "./dist/consumption/ConsumptionBaseController.js");
339
+ const ConsumptionControllerName_1 = __webpack_require__(/*! ../../consumption/ConsumptionControllerName */ "./dist/consumption/ConsumptionControllerName.js");
340
+ const events_1 = __webpack_require__(/*! ./events */ "./dist/modules/attributeListeners/events/index.js");
341
+ const CreateLocalAttributeListenerParams_1 = __webpack_require__(/*! ./local/CreateLocalAttributeListenerParams */ "./dist/modules/attributeListeners/local/CreateLocalAttributeListenerParams.js");
342
+ const LocalAttributeListener_1 = __webpack_require__(/*! ./local/LocalAttributeListener */ "./dist/modules/attributeListeners/local/LocalAttributeListener.js");
343
+ class AttributeListenersController extends ConsumptionBaseController_1.ConsumptionBaseController {
344
+ constructor(parent, eventBus, identity) {
345
+ super(ConsumptionControllerName_1.ConsumptionControllerName.AttributeListenersController, parent);
346
+ this.eventBus = eventBus;
347
+ this.identity = identity;
348
+ }
349
+ async init() {
350
+ await super.init();
351
+ this.attributeListeners = await this.parent.accountController.getSynchronizedCollection("AttributeListeners");
352
+ return this;
353
+ }
354
+ async getAttributeListeners(query) {
355
+ const items = await this.attributeListeners.find(query);
356
+ return this.parseArray(items, LocalAttributeListener_1.LocalAttributeListener);
357
+ }
358
+ async getAttributeListener(id) {
359
+ const listener = await this.attributeListeners.read(id.toString());
360
+ if (!listener)
361
+ return;
362
+ return LocalAttributeListener_1.LocalAttributeListener.from(listener);
363
+ }
364
+ async createAttributeListener(params) {
365
+ const parsedParams = CreateLocalAttributeListenerParams_1.CreateLocalAttributeListenerParams.from(params);
366
+ const listener = LocalAttributeListener_1.LocalAttributeListener.from({
367
+ id: await consumption_1.ConsumptionIds.attributeListener.generate(),
368
+ query: parsedParams.query,
369
+ peer: parsedParams.peer
370
+ });
371
+ await this.attributeListeners.create(listener);
372
+ this.eventBus.publish(new events_1.AttributeListenerCreatedEvent(this.identity.address.toString(), listener));
373
+ return listener;
374
+ }
375
+ }
376
+ exports.AttributeListenersController = AttributeListenersController;
377
+ //# sourceMappingURL=AttributeListenersController.js.map
378
+
379
+ /***/ }),
380
+
381
+ /***/ "./dist/modules/attributeListeners/events/AttributeListenerCreatedEvent.js":
382
+ /*!*********************************************************************************!*\
383
+ !*** ./dist/modules/attributeListeners/events/AttributeListenerCreatedEvent.js ***!
384
+ \*********************************************************************************/
385
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
386
+
387
+ "use strict";
388
+
389
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
390
+ exports.AttributeListenerCreatedEvent = void 0;
391
+ const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
392
+ class AttributeListenerCreatedEvent extends transport_1.TransportDataEvent {
393
+ constructor(eventTargetAddress, data) {
394
+ super(AttributeListenerCreatedEvent.namespace, eventTargetAddress, data);
395
+ }
396
+ }
397
+ exports.AttributeListenerCreatedEvent = AttributeListenerCreatedEvent;
398
+ AttributeListenerCreatedEvent.namespace = "consumption.attributeListenerCreated";
399
+ //# sourceMappingURL=AttributeListenerCreatedEvent.js.map
400
+
401
+ /***/ }),
402
+
403
+ /***/ "./dist/modules/attributeListeners/events/index.js":
404
+ /*!*********************************************************!*\
405
+ !*** ./dist/modules/attributeListeners/events/index.js ***!
406
+ \*********************************************************/
407
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
408
+
409
+ "use strict";
410
+
411
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
412
+ if (k2 === undefined) k2 = k;
413
+ var desc = Object.getOwnPropertyDescriptor(m, k);
414
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
415
+ desc = { enumerable: true, get: function() { return m[k]; } };
416
+ }
417
+ Object.defineProperty(o, k2, desc);
418
+ }) : (function(o, m, k, k2) {
419
+ if (k2 === undefined) k2 = k;
420
+ o[k2] = m[k];
421
+ }));
422
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
423
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
424
+ };
425
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
426
+ __exportStar(__webpack_require__(/*! ./AttributeListenerCreatedEvent */ "./dist/modules/attributeListeners/events/AttributeListenerCreatedEvent.js"), exports);
427
+ //# sourceMappingURL=index.js.map
428
+
429
+ /***/ }),
430
+
431
+ /***/ "./dist/modules/attributeListeners/index.js":
432
+ /*!**************************************************!*\
433
+ !*** ./dist/modules/attributeListeners/index.js ***!
434
+ \**************************************************/
435
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
436
+
437
+ "use strict";
438
+
439
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
440
+ if (k2 === undefined) k2 = k;
441
+ var desc = Object.getOwnPropertyDescriptor(m, k);
442
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
443
+ desc = { enumerable: true, get: function() { return m[k]; } };
444
+ }
445
+ Object.defineProperty(o, k2, desc);
446
+ }) : (function(o, m, k, k2) {
447
+ if (k2 === undefined) k2 = k;
448
+ o[k2] = m[k];
449
+ }));
450
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
451
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
452
+ };
453
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
454
+ __exportStar(__webpack_require__(/*! ./AttributeListenersController */ "./dist/modules/attributeListeners/AttributeListenersController.js"), exports);
455
+ __exportStar(__webpack_require__(/*! ./events */ "./dist/modules/attributeListeners/events/index.js"), exports);
456
+ __exportStar(__webpack_require__(/*! ./local/CreateLocalAttributeListenerParams */ "./dist/modules/attributeListeners/local/CreateLocalAttributeListenerParams.js"), exports);
457
+ __exportStar(__webpack_require__(/*! ./local/LocalAttributeListener */ "./dist/modules/attributeListeners/local/LocalAttributeListener.js"), exports);
458
+ //# sourceMappingURL=index.js.map
459
+
460
+ /***/ }),
461
+
462
+ /***/ "./dist/modules/attributeListeners/local/CreateLocalAttributeListenerParams.js":
463
+ /*!*************************************************************************************!*\
464
+ !*** ./dist/modules/attributeListeners/local/CreateLocalAttributeListenerParams.js ***!
465
+ \*************************************************************************************/
466
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
467
+
468
+ "use strict";
469
+
470
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
471
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
472
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
473
+ 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;
474
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
475
+ };
476
+ var __metadata = (this && this.__metadata) || function (k, v) {
477
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
478
+ };
479
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
480
+ exports.CreateLocalAttributeListenerParams = void 0;
481
+ const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
482
+ const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
483
+ class CreateLocalAttributeListenerParams extends ts_serval_1.Serializable {
484
+ static from(value) {
485
+ return this.fromAny(value);
486
+ }
487
+ }
488
+ __decorate([
489
+ (0, ts_serval_1.serialize)(),
490
+ (0, ts_serval_1.validate)(),
491
+ __metadata("design:type", Object)
492
+ ], CreateLocalAttributeListenerParams.prototype, "query", void 0);
493
+ __decorate([
494
+ (0, ts_serval_1.serialize)(),
495
+ (0, ts_serval_1.validate)(),
496
+ __metadata("design:type", transport_1.CoreAddress)
497
+ ], CreateLocalAttributeListenerParams.prototype, "peer", void 0);
498
+ exports.CreateLocalAttributeListenerParams = CreateLocalAttributeListenerParams;
499
+ //# sourceMappingURL=CreateLocalAttributeListenerParams.js.map
500
+
501
+ /***/ }),
502
+
503
+ /***/ "./dist/modules/attributeListeners/local/LocalAttributeListener.js":
504
+ /*!*************************************************************************!*\
505
+ !*** ./dist/modules/attributeListeners/local/LocalAttributeListener.js ***!
506
+ \*************************************************************************/
507
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
508
+
509
+ "use strict";
510
+
511
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
512
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
513
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
514
+ 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;
515
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
516
+ };
517
+ var __metadata = (this && this.__metadata) || function (k, v) {
518
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
519
+ };
520
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
521
+ exports.LocalAttributeListener = void 0;
522
+ const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
523
+ const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
524
+ const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
525
+ const ts_simple_nameof_1 = __webpack_require__(/*! ts-simple-nameof */ "./node_modules/ts-simple-nameof/index.js");
526
+ let LocalAttributeListener = class LocalAttributeListener extends transport_1.CoreSynchronizable {
527
+ constructor() {
528
+ super(...arguments);
529
+ this.userdataProperties = [
530
+ (0, ts_simple_nameof_1.nameof)((r) => r.query),
531
+ (0, ts_simple_nameof_1.nameof)((r) => r.peer)
532
+ ];
533
+ }
534
+ static from(value) {
535
+ return this.fromAny(value);
536
+ }
537
+ toJSON() {
538
+ return super.toJSON();
539
+ }
540
+ };
541
+ __decorate([
542
+ (0, ts_serval_1.serialize)({
543
+ unionTypes: [content_1.IdentityAttributeQuery, content_1.RelationshipAttributeQuery, content_1.ThirdPartyRelationshipAttributeQuery]
544
+ }),
545
+ (0, ts_serval_1.validate)(),
546
+ __metadata("design:type", Object)
547
+ ], LocalAttributeListener.prototype, "query", void 0);
548
+ __decorate([
549
+ (0, ts_serval_1.serialize)(),
550
+ (0, ts_serval_1.validate)(),
551
+ __metadata("design:type", transport_1.CoreAddress)
552
+ ], LocalAttributeListener.prototype, "peer", void 0);
553
+ LocalAttributeListener = __decorate([
554
+ (0, ts_serval_1.type)("LocalAttributeListener")
555
+ ], LocalAttributeListener);
556
+ exports.LocalAttributeListener = LocalAttributeListener;
557
+ //# sourceMappingURL=LocalAttributeListener.js.map
558
+
559
+ /***/ }),
560
+
327
561
  /***/ "./dist/modules/attributes/LocalAttributesController.js":
328
562
  /*!**************************************************************!*\
329
563
  !*** ./dist/modules/attributes/LocalAttributesController.js ***!
@@ -1433,6 +1667,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
1433
1667
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
1434
1668
  };
1435
1669
  Object.defineProperty(exports, "__esModule", ({ value: true }));
1670
+ __exportStar(__webpack_require__(/*! ./attributeListeners */ "./dist/modules/attributeListeners/index.js"), exports);
1436
1671
  __exportStar(__webpack_require__(/*! ./attributes */ "./dist/modules/attributes/index.js"), exports);
1437
1672
  __exportStar(__webpack_require__(/*! ./drafts */ "./dist/modules/drafts/index.js"), exports);
1438
1673
  __exportStar(__webpack_require__(/*! ./requests */ "./dist/modules/requests/index.js"), exports);