@nmshd/consumption 7.0.0-alpha.70 → 7.0.0-alpha.72

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 (260) hide show
  1. package/dist/buildInformation.js +4 -4
  2. package/dist/consumption/ConsumptionConfig.d.ts +1 -1
  3. package/dist/consumption/ConsumptionConfig.d.ts.map +1 -1
  4. package/dist/consumption/ConsumptionController.d.ts.map +1 -1
  5. package/dist/consumption/ConsumptionController.js +5 -5
  6. package/dist/consumption/ConsumptionController.js.map +1 -1
  7. package/dist/consumption/ConsumptionCoreErrors.d.ts +7 -37
  8. package/dist/consumption/ConsumptionCoreErrors.d.ts.map +1 -1
  9. package/dist/consumption/ConsumptionCoreErrors.js +18 -114
  10. package/dist/consumption/ConsumptionCoreErrors.js.map +1 -1
  11. package/dist/consumption/ConsumptionIds.d.ts +1 -0
  12. package/dist/consumption/ConsumptionIds.d.ts.map +1 -1
  13. package/dist/consumption/ConsumptionIds.js +1 -0
  14. package/dist/consumption/ConsumptionIds.js.map +1 -1
  15. package/dist/modules/attributes/AttributesController.d.ts +106 -69
  16. package/dist/modules/attributes/AttributesController.d.ts.map +1 -1
  17. package/dist/modules/attributes/AttributesController.js +640 -732
  18. package/dist/modules/attributes/AttributesController.js.map +1 -1
  19. package/dist/modules/attributes/events/AttributeCreatedEvent.d.ts +1 -1
  20. package/dist/modules/attributes/events/AttributeCreatedEvent.d.ts.map +1 -1
  21. package/dist/modules/attributes/events/AttributeDeletedEvent.d.ts +1 -1
  22. package/dist/modules/attributes/events/AttributeDeletedEvent.d.ts.map +1 -1
  23. package/dist/modules/attributes/events/AttributeForwardingDetailsChangedEvent.d.ts +9 -0
  24. package/dist/modules/attributes/events/AttributeForwardingDetailsChangedEvent.d.ts.map +1 -0
  25. package/dist/modules/attributes/events/AttributeForwardingDetailsChangedEvent.js +12 -0
  26. package/dist/modules/attributes/events/AttributeForwardingDetailsChangedEvent.js.map +1 -0
  27. package/dist/modules/attributes/events/AttributeSucceededEvent.d.ts +11 -0
  28. package/dist/modules/attributes/events/AttributeSucceededEvent.d.ts.map +1 -0
  29. package/dist/modules/attributes/events/AttributeSucceededEvent.js +12 -0
  30. package/dist/modules/attributes/events/AttributeSucceededEvent.js.map +1 -0
  31. package/dist/modules/attributes/events/AttributeWasViewedAtChangedEvent.d.ts +1 -1
  32. package/dist/modules/attributes/events/AttributeWasViewedAtChangedEvent.d.ts.map +1 -1
  33. package/dist/modules/attributes/events/ForwardedAttributeDeletedByPeerEvent.d.ts +7 -0
  34. package/dist/modules/attributes/events/ForwardedAttributeDeletedByPeerEvent.d.ts.map +1 -0
  35. package/dist/modules/attributes/events/ForwardedAttributeDeletedByPeerEvent.js +12 -0
  36. package/dist/modules/attributes/events/ForwardedAttributeDeletedByPeerEvent.js.map +1 -0
  37. package/dist/modules/attributes/events/OwnAttributeDeletedByOwnerEvent.d.ts +7 -0
  38. package/dist/modules/attributes/events/OwnAttributeDeletedByOwnerEvent.d.ts.map +1 -0
  39. package/dist/modules/attributes/events/OwnAttributeDeletedByOwnerEvent.js +12 -0
  40. package/dist/modules/attributes/events/OwnAttributeDeletedByOwnerEvent.js.map +1 -0
  41. package/dist/modules/attributes/events/PeerRelationshipAttributeDeletedByPeerEvent.d.ts +7 -0
  42. package/dist/modules/attributes/events/PeerRelationshipAttributeDeletedByPeerEvent.d.ts.map +1 -0
  43. package/dist/modules/attributes/events/PeerRelationshipAttributeDeletedByPeerEvent.js +12 -0
  44. package/dist/modules/attributes/events/PeerRelationshipAttributeDeletedByPeerEvent.js.map +1 -0
  45. package/dist/modules/attributes/events/index.d.ts +5 -9
  46. package/dist/modules/attributes/events/index.d.ts.map +1 -1
  47. package/dist/modules/attributes/events/index.js +5 -9
  48. package/dist/modules/attributes/events/index.js.map +1 -1
  49. package/dist/modules/attributes/index.d.ts +9 -7
  50. package/dist/modules/attributes/index.d.ts.map +1 -1
  51. package/dist/modules/attributes/index.js +9 -7
  52. package/dist/modules/attributes/index.js.map +1 -1
  53. package/dist/modules/attributes/local/AttributeForwardingDetails.d.ts +28 -0
  54. package/dist/modules/attributes/local/AttributeForwardingDetails.d.ts.map +1 -0
  55. package/dist/modules/attributes/local/AttributeForwardingDetails.js +62 -0
  56. package/dist/modules/attributes/local/AttributeForwardingDetails.js.map +1 -0
  57. package/dist/modules/attributes/local/QueryTranslator.d.ts.map +1 -1
  58. package/dist/modules/attributes/local/QueryTranslator.js +1 -1
  59. package/dist/modules/attributes/local/QueryTranslator.js.map +1 -1
  60. package/dist/modules/attributes/local/attributeTypes/LocalAttribute.d.ts +29 -0
  61. package/dist/modules/attributes/local/attributeTypes/LocalAttribute.d.ts.map +1 -0
  62. package/dist/modules/attributes/local/{AttributeSuccessorParams.js → attributeTypes/LocalAttribute.js} +34 -26
  63. package/dist/modules/attributes/local/attributeTypes/LocalAttribute.js.map +1 -0
  64. package/dist/modules/attributes/local/attributeTypes/OwnIdentityAttribute.d.ts +19 -0
  65. package/dist/modules/attributes/local/attributeTypes/OwnIdentityAttribute.d.ts.map +1 -0
  66. package/dist/modules/attributes/local/attributeTypes/OwnIdentityAttribute.js +40 -0
  67. package/dist/modules/attributes/local/attributeTypes/OwnIdentityAttribute.js.map +1 -0
  68. package/dist/modules/attributes/local/attributeTypes/OwnRelationshipAttribute.d.ts +29 -0
  69. package/dist/modules/attributes/local/attributeTypes/OwnRelationshipAttribute.d.ts.map +1 -0
  70. package/dist/modules/attributes/local/attributeTypes/OwnRelationshipAttribute.js +73 -0
  71. package/dist/modules/attributes/local/attributeTypes/OwnRelationshipAttribute.js.map +1 -0
  72. package/dist/modules/attributes/local/attributeTypes/PeerIdentityAttribute.d.ts +29 -0
  73. package/dist/modules/attributes/local/attributeTypes/PeerIdentityAttribute.d.ts.map +1 -0
  74. package/dist/modules/attributes/local/attributeTypes/PeerIdentityAttribute.js +76 -0
  75. package/dist/modules/attributes/local/attributeTypes/PeerIdentityAttribute.js.map +1 -0
  76. package/dist/modules/attributes/local/attributeTypes/PeerRelationshipAttribute.d.ts +30 -0
  77. package/dist/modules/attributes/local/attributeTypes/PeerRelationshipAttribute.d.ts.map +1 -0
  78. package/dist/modules/attributes/local/attributeTypes/PeerRelationshipAttribute.js +76 -0
  79. package/dist/modules/attributes/local/attributeTypes/PeerRelationshipAttribute.js.map +1 -0
  80. package/dist/modules/attributes/local/attributeTypes/ThirdPartyRelationshipAttribute.d.ts +33 -0
  81. package/dist/modules/attributes/local/attributeTypes/ThirdPartyRelationshipAttribute.d.ts.map +1 -0
  82. package/dist/modules/attributes/local/attributeTypes/ThirdPartyRelationshipAttribute.js +85 -0
  83. package/dist/modules/attributes/local/attributeTypes/ThirdPartyRelationshipAttribute.js.map +1 -0
  84. package/dist/modules/attributes/local/deletionInfos/AbstractAttributeDeletionInfo.d.ts +15 -0
  85. package/dist/modules/attributes/local/deletionInfos/AbstractAttributeDeletionInfo.d.ts.map +1 -0
  86. package/dist/modules/attributes/local/deletionInfos/AbstractAttributeDeletionInfo.js +28 -0
  87. package/dist/modules/attributes/local/deletionInfos/AbstractAttributeDeletionInfo.js.map +1 -0
  88. package/dist/modules/attributes/local/deletionInfos/EmittedAttributeDeletionInfo.d.ts +18 -0
  89. package/dist/modules/attributes/local/deletionInfos/EmittedAttributeDeletionInfo.d.ts.map +1 -0
  90. package/dist/modules/attributes/local/deletionInfos/EmittedAttributeDeletionInfo.js +38 -0
  91. package/dist/modules/attributes/local/deletionInfos/EmittedAttributeDeletionInfo.js.map +1 -0
  92. package/dist/modules/attributes/local/deletionInfos/ReceivedAttributeDeletionInfo.d.ts +16 -0
  93. package/dist/modules/attributes/local/deletionInfos/ReceivedAttributeDeletionInfo.d.ts.map +1 -0
  94. package/dist/modules/attributes/local/deletionInfos/ReceivedAttributeDeletionInfo.js +36 -0
  95. package/dist/modules/attributes/local/deletionInfos/ReceivedAttributeDeletionInfo.js.map +1 -0
  96. package/dist/modules/attributes/local/deletionInfos/index.d.ts +4 -0
  97. package/dist/modules/attributes/local/deletionInfos/index.d.ts.map +1 -0
  98. package/dist/modules/attributes/local/deletionInfos/index.js +20 -0
  99. package/dist/modules/attributes/local/deletionInfos/index.js.map +1 -0
  100. package/dist/modules/attributes/local/successorParams/OwnIdentityAttributeSuccessorParams.d.ts +13 -0
  101. package/dist/modules/attributes/local/successorParams/OwnIdentityAttributeSuccessorParams.d.ts.map +1 -0
  102. package/dist/modules/attributes/local/successorParams/OwnIdentityAttributeSuccessorParams.js +29 -0
  103. package/dist/modules/attributes/local/successorParams/OwnIdentityAttributeSuccessorParams.js.map +1 -0
  104. package/dist/modules/attributes/local/successorParams/OwnRelationshipAttributeSuccessorParams.d.ts +17 -0
  105. package/dist/modules/attributes/local/successorParams/OwnRelationshipAttributeSuccessorParams.d.ts.map +1 -0
  106. package/dist/modules/attributes/local/{CreateAttributeParams.js → successorParams/OwnRelationshipAttributeSuccessorParams.js} +10 -15
  107. package/dist/modules/attributes/local/successorParams/OwnRelationshipAttributeSuccessorParams.js.map +1 -0
  108. package/dist/modules/attributes/local/successorParams/PeerIdentityAttributeSuccessorParams.d.ts +20 -0
  109. package/dist/modules/attributes/local/successorParams/PeerIdentityAttributeSuccessorParams.d.ts.map +1 -0
  110. package/dist/modules/attributes/local/{CreateRepositoryAttributeParams.js → successorParams/PeerIdentityAttributeSuccessorParams.js} +16 -13
  111. package/dist/modules/attributes/local/successorParams/PeerIdentityAttributeSuccessorParams.js.map +1 -0
  112. package/dist/modules/attributes/local/successorParams/PeerRelationshipAttributeSuccessorParams.d.ts +20 -0
  113. package/dist/modules/attributes/local/successorParams/PeerRelationshipAttributeSuccessorParams.d.ts.map +1 -0
  114. package/dist/modules/attributes/local/{CreateSharedLocalAttributeCopyParams.js → successorParams/PeerRelationshipAttributeSuccessorParams.js} +15 -16
  115. package/dist/modules/attributes/local/successorParams/PeerRelationshipAttributeSuccessorParams.js.map +1 -0
  116. package/dist/modules/attributes/local/successorParams/ThirdPartyRelationshipAttributeSuccessorParams.d.ts +20 -0
  117. package/dist/modules/attributes/local/successorParams/ThirdPartyRelationshipAttributeSuccessorParams.d.ts.map +1 -0
  118. package/dist/modules/attributes/local/{CreateSharedLocalAttributeParams.js → successorParams/ThirdPartyRelationshipAttributeSuccessorParams.js} +15 -22
  119. package/dist/modules/attributes/local/successorParams/ThirdPartyRelationshipAttributeSuccessorParams.js.map +1 -0
  120. package/dist/modules/attributes/local/successorParams/index.d.ts +6 -0
  121. package/dist/modules/attributes/local/successorParams/index.d.ts.map +1 -0
  122. package/dist/modules/attributes/local/successorParams/index.js +22 -0
  123. package/dist/modules/attributes/local/successorParams/index.js.map +1 -0
  124. package/dist/modules/notifications/index.d.ts +4 -4
  125. package/dist/modules/notifications/index.d.ts.map +1 -1
  126. package/dist/modules/notifications/index.js +4 -4
  127. package/dist/modules/notifications/index.js.map +1 -1
  128. package/dist/modules/notifications/itemProcessors/attributeDeleted/ForwardedAttributeDeletedByPeerNotificationItemProcessor.d.ts +14 -0
  129. package/dist/modules/notifications/itemProcessors/attributeDeleted/ForwardedAttributeDeletedByPeerNotificationItemProcessor.d.ts.map +1 -0
  130. package/dist/modules/notifications/itemProcessors/attributeDeleted/ForwardedAttributeDeletedByPeerNotificationItemProcessor.js +53 -0
  131. package/dist/modules/notifications/itemProcessors/attributeDeleted/ForwardedAttributeDeletedByPeerNotificationItemProcessor.js.map +1 -0
  132. package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnAttributeDeletedByOwnerNotificationItemProcessor.d.ts +14 -0
  133. package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnAttributeDeletedByOwnerNotificationItemProcessor.d.ts.map +1 -0
  134. package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnAttributeDeletedByOwnerNotificationItemProcessor.js +59 -0
  135. package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnAttributeDeletedByOwnerNotificationItemProcessor.js.map +1 -0
  136. package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor.d.ts +14 -0
  137. package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor.d.ts.map +1 -0
  138. package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor.js +63 -0
  139. package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor.js.map +1 -0
  140. package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerAttributeSucceededNotificationItemProcessor.d.ts +15 -0
  141. package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerAttributeSucceededNotificationItemProcessor.d.ts.map +1 -0
  142. package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerAttributeSucceededNotificationItemProcessor.js +102 -0
  143. package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerAttributeSucceededNotificationItemProcessor.js.map +1 -0
  144. package/dist/modules/requests/itemProcessors/createAttribute/CreateAttributeRequestItemProcessor.d.ts +2 -2
  145. package/dist/modules/requests/itemProcessors/createAttribute/CreateAttributeRequestItemProcessor.d.ts.map +1 -1
  146. package/dist/modules/requests/itemProcessors/createAttribute/CreateAttributeRequestItemProcessor.js +54 -20
  147. package/dist/modules/requests/itemProcessors/createAttribute/CreateAttributeRequestItemProcessor.js.map +1 -1
  148. package/dist/modules/requests/itemProcessors/deleteAttribute/DeleteAttributeRequestItemProcessor.d.ts +4 -2
  149. package/dist/modules/requests/itemProcessors/deleteAttribute/DeleteAttributeRequestItemProcessor.d.ts.map +1 -1
  150. package/dist/modules/requests/itemProcessors/deleteAttribute/DeleteAttributeRequestItemProcessor.js +50 -43
  151. package/dist/modules/requests/itemProcessors/deleteAttribute/DeleteAttributeRequestItemProcessor.js.map +1 -1
  152. package/dist/modules/requests/itemProcessors/proposeAttribute/ProposeAttributeRequestItemProcessor.d.ts +2 -2
  153. package/dist/modules/requests/itemProcessors/proposeAttribute/ProposeAttributeRequestItemProcessor.d.ts.map +1 -1
  154. package/dist/modules/requests/itemProcessors/proposeAttribute/ProposeAttributeRequestItemProcessor.js +83 -97
  155. package/dist/modules/requests/itemProcessors/proposeAttribute/ProposeAttributeRequestItemProcessor.js.map +1 -1
  156. package/dist/modules/requests/itemProcessors/readAttribute/ReadAttributeRequestItemProcessor.d.ts +2 -2
  157. package/dist/modules/requests/itemProcessors/readAttribute/ReadAttributeRequestItemProcessor.d.ts.map +1 -1
  158. package/dist/modules/requests/itemProcessors/readAttribute/ReadAttributeRequestItemProcessor.js +136 -133
  159. package/dist/modules/requests/itemProcessors/readAttribute/ReadAttributeRequestItemProcessor.js.map +1 -1
  160. package/dist/modules/requests/itemProcessors/shareAttribute/ShareAttributeRequestItemProcessor.d.ts +3 -5
  161. package/dist/modules/requests/itemProcessors/shareAttribute/ShareAttributeRequestItemProcessor.d.ts.map +1 -1
  162. package/dist/modules/requests/itemProcessors/shareAttribute/ShareAttributeRequestItemProcessor.js +94 -90
  163. package/dist/modules/requests/itemProcessors/shareAttribute/ShareAttributeRequestItemProcessor.js.map +1 -1
  164. package/dist/modules/requests/itemProcessors/transferFileOwnership/TransferFileOwnershipRequestItemProcessor.d.ts +2 -2
  165. package/dist/modules/requests/itemProcessors/transferFileOwnership/TransferFileOwnershipRequestItemProcessor.d.ts.map +1 -1
  166. package/dist/modules/requests/itemProcessors/transferFileOwnership/TransferFileOwnershipRequestItemProcessor.js +7 -11
  167. package/dist/modules/requests/itemProcessors/transferFileOwnership/TransferFileOwnershipRequestItemProcessor.js.map +1 -1
  168. package/dist/modules/requests/itemProcessors/utility/createAppropriateResponseItem.d.ts.map +1 -1
  169. package/dist/modules/requests/itemProcessors/utility/createAppropriateResponseItem.js +31 -53
  170. package/dist/modules/requests/itemProcessors/utility/createAppropriateResponseItem.js.map +1 -1
  171. package/dist/modules/requests/itemProcessors/utility/validateAttributeMatchesWithQuery.js +2 -2
  172. package/dist/modules/requests/itemProcessors/utility/validateAttributeMatchesWithQuery.js.map +1 -1
  173. package/dist/modules/requests/local/LocalRequest.js +1 -1
  174. package/dist/modules/requests/local/LocalRequest.js.map +1 -1
  175. package/dist/modules/requests/local/LocalResponse.js +1 -1
  176. package/dist/modules/requests/local/LocalResponse.js.map +1 -1
  177. package/dist/modules/requests/outgoing/OutgoingRequestsController.d.ts +1 -1
  178. package/dist/modules/requests/outgoing/OutgoingRequestsController.d.ts.map +1 -1
  179. package/dist/modules/requests/outgoing/OutgoingRequestsController.js +17 -16
  180. package/dist/modules/requests/outgoing/OutgoingRequestsController.js.map +1 -1
  181. package/package.json +4 -4
  182. package/dist/modules/attributes/events/AttributeSucceededEventData.d.ts +0 -6
  183. package/dist/modules/attributes/events/AttributeSucceededEventData.d.ts.map +0 -1
  184. package/dist/modules/attributes/events/AttributeSucceededEventData.js +0 -3
  185. package/dist/modules/attributes/events/AttributeSucceededEventData.js.map +0 -1
  186. package/dist/modules/attributes/events/OwnSharedAttributeDeletedByOwnerEvent.d.ts +0 -7
  187. package/dist/modules/attributes/events/OwnSharedAttributeDeletedByOwnerEvent.d.ts.map +0 -1
  188. package/dist/modules/attributes/events/OwnSharedAttributeDeletedByOwnerEvent.js +0 -12
  189. package/dist/modules/attributes/events/OwnSharedAttributeDeletedByOwnerEvent.js.map +0 -1
  190. package/dist/modules/attributes/events/OwnSharedAttributeSucceededEvent.d.ts +0 -8
  191. package/dist/modules/attributes/events/OwnSharedAttributeSucceededEvent.d.ts.map +0 -1
  192. package/dist/modules/attributes/events/OwnSharedAttributeSucceededEvent.js +0 -12
  193. package/dist/modules/attributes/events/OwnSharedAttributeSucceededEvent.js.map +0 -1
  194. package/dist/modules/attributes/events/PeerSharedAttributeDeletedByPeerEvent.d.ts +0 -7
  195. package/dist/modules/attributes/events/PeerSharedAttributeDeletedByPeerEvent.d.ts.map +0 -1
  196. package/dist/modules/attributes/events/PeerSharedAttributeDeletedByPeerEvent.js +0 -12
  197. package/dist/modules/attributes/events/PeerSharedAttributeDeletedByPeerEvent.js.map +0 -1
  198. package/dist/modules/attributes/events/PeerSharedAttributeSucceededEvent.d.ts +0 -8
  199. package/dist/modules/attributes/events/PeerSharedAttributeSucceededEvent.d.ts.map +0 -1
  200. package/dist/modules/attributes/events/PeerSharedAttributeSucceededEvent.js +0 -12
  201. package/dist/modules/attributes/events/PeerSharedAttributeSucceededEvent.js.map +0 -1
  202. package/dist/modules/attributes/events/RepositoryAttributeSucceededEvent.d.ts +0 -8
  203. package/dist/modules/attributes/events/RepositoryAttributeSucceededEvent.d.ts.map +0 -1
  204. package/dist/modules/attributes/events/RepositoryAttributeSucceededEvent.js +0 -12
  205. package/dist/modules/attributes/events/RepositoryAttributeSucceededEvent.js.map +0 -1
  206. package/dist/modules/attributes/events/SharedAttributeCopyCreatedEvent.d.ts +0 -7
  207. package/dist/modules/attributes/events/SharedAttributeCopyCreatedEvent.d.ts.map +0 -1
  208. package/dist/modules/attributes/events/SharedAttributeCopyCreatedEvent.js +0 -12
  209. package/dist/modules/attributes/events/SharedAttributeCopyCreatedEvent.js.map +0 -1
  210. package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeDeletedByPeerEvent.d.ts +0 -7
  211. package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeDeletedByPeerEvent.d.ts.map +0 -1
  212. package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeDeletedByPeerEvent.js +0 -12
  213. package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeDeletedByPeerEvent.js.map +0 -1
  214. package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeSucceededEvent.d.ts +0 -8
  215. package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeSucceededEvent.d.ts.map +0 -1
  216. package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeSucceededEvent.js +0 -12
  217. package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeSucceededEvent.js.map +0 -1
  218. package/dist/modules/attributes/local/AttributeSuccessorParams.d.ts +0 -24
  219. package/dist/modules/attributes/local/AttributeSuccessorParams.d.ts.map +0 -1
  220. package/dist/modules/attributes/local/AttributeSuccessorParams.js.map +0 -1
  221. package/dist/modules/attributes/local/CreateAttributeParams.d.ts +0 -15
  222. package/dist/modules/attributes/local/CreateAttributeParams.d.ts.map +0 -1
  223. package/dist/modules/attributes/local/CreateAttributeParams.js.map +0 -1
  224. package/dist/modules/attributes/local/CreateRepositoryAttributeParams.d.ts +0 -20
  225. package/dist/modules/attributes/local/CreateRepositoryAttributeParams.d.ts.map +0 -1
  226. package/dist/modules/attributes/local/CreateRepositoryAttributeParams.js.map +0 -1
  227. package/dist/modules/attributes/local/CreateSharedLocalAttributeCopyParams.d.ts +0 -22
  228. package/dist/modules/attributes/local/CreateSharedLocalAttributeCopyParams.d.ts.map +0 -1
  229. package/dist/modules/attributes/local/CreateSharedLocalAttributeCopyParams.js.map +0 -1
  230. package/dist/modules/attributes/local/CreateSharedLocalAttributeParams.d.ts +0 -26
  231. package/dist/modules/attributes/local/CreateSharedLocalAttributeParams.d.ts.map +0 -1
  232. package/dist/modules/attributes/local/CreateSharedLocalAttributeParams.js.map +0 -1
  233. package/dist/modules/attributes/local/LocalAttribute.d.ts +0 -112
  234. package/dist/modules/attributes/local/LocalAttribute.d.ts.map +0 -1
  235. package/dist/modules/attributes/local/LocalAttribute.js +0 -186
  236. package/dist/modules/attributes/local/LocalAttribute.js.map +0 -1
  237. package/dist/modules/attributes/local/LocalAttributeDeletionInfo.d.ts +0 -24
  238. package/dist/modules/attributes/local/LocalAttributeDeletionInfo.d.ts.map +0 -1
  239. package/dist/modules/attributes/local/LocalAttributeDeletionInfo.js +0 -42
  240. package/dist/modules/attributes/local/LocalAttributeDeletionInfo.js.map +0 -1
  241. package/dist/modules/attributes/local/LocalAttributeShareInfo.d.ts +0 -26
  242. package/dist/modules/attributes/local/LocalAttributeShareInfo.d.ts.map +0 -1
  243. package/dist/modules/attributes/local/LocalAttributeShareInfo.js +0 -59
  244. package/dist/modules/attributes/local/LocalAttributeShareInfo.js.map +0 -1
  245. package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnSharedAttributeDeletedByOwnerNotificationItemProcessor.d.ts +0 -14
  246. package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnSharedAttributeDeletedByOwnerNotificationItemProcessor.d.ts.map +0 -1
  247. package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnSharedAttributeDeletedByOwnerNotificationItemProcessor.js +0 -56
  248. package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnSharedAttributeDeletedByOwnerNotificationItemProcessor.js.map +0 -1
  249. package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerSharedAttributeDeletedByPeerNotificationItemProcessor.d.ts +0 -14
  250. package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerSharedAttributeDeletedByPeerNotificationItemProcessor.d.ts.map +0 -1
  251. package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerSharedAttributeDeletedByPeerNotificationItemProcessor.js +0 -57
  252. package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerSharedAttributeDeletedByPeerNotificationItemProcessor.js.map +0 -1
  253. package/dist/modules/notifications/itemProcessors/attributeDeleted/ThirdPartyRelationshipAttributeDeletedByPeerNotificationItemProcessor.d.ts +0 -14
  254. package/dist/modules/notifications/itemProcessors/attributeDeleted/ThirdPartyRelationshipAttributeDeletedByPeerNotificationItemProcessor.d.ts.map +0 -1
  255. package/dist/modules/notifications/itemProcessors/attributeDeleted/ThirdPartyRelationshipAttributeDeletedByPeerNotificationItemProcessor.js +0 -57
  256. package/dist/modules/notifications/itemProcessors/attributeDeleted/ThirdPartyRelationshipAttributeDeletedByPeerNotificationItemProcessor.js.map +0 -1
  257. package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerSharedAttributeSucceededNotificationItemProcessor.d.ts +0 -15
  258. package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerSharedAttributeSucceededNotificationItemProcessor.d.ts.map +0 -1
  259. package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerSharedAttributeSucceededNotificationItemProcessor.js +0 -74
  260. package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerSharedAttributeSucceededNotificationItemProcessor.js.map +0 -1
@@ -9,29 +9,32 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CreateRepositoryAttributeParams = void 0;
12
+ exports.PeerIdentityAttributeSuccessorParams = void 0;
13
13
  const ts_serval_1 = require("@js-soft/ts-serval");
14
14
  const content_1 = require("@nmshd/content");
15
15
  const core_types_1 = require("@nmshd/core-types");
16
- class CreateRepositoryAttributeParams extends ts_serval_1.Serializable {
16
+ let PeerIdentityAttributeSuccessorParams = class PeerIdentityAttributeSuccessorParams extends ts_serval_1.Serializable {
17
17
  static from(value) {
18
18
  return this.fromAny(value);
19
19
  }
20
- }
21
- exports.CreateRepositoryAttributeParams = CreateRepositoryAttributeParams;
22
- __decorate([
23
- (0, ts_serval_1.serialize)(),
24
- (0, ts_serval_1.validate)({ nullable: true }),
25
- __metadata("design:type", core_types_1.CoreId)
26
- ], CreateRepositoryAttributeParams.prototype, "id", void 0);
20
+ };
21
+ exports.PeerIdentityAttributeSuccessorParams = PeerIdentityAttributeSuccessorParams;
27
22
  __decorate([
28
- (0, ts_serval_1.serialize)({ unionTypes: [content_1.IdentityAttribute, content_1.RelationshipAttribute] }),
29
23
  (0, ts_serval_1.validate)(),
24
+ (0, ts_serval_1.serialize)(),
30
25
  __metadata("design:type", content_1.IdentityAttribute)
31
- ], CreateRepositoryAttributeParams.prototype, "content", void 0);
26
+ ], PeerIdentityAttributeSuccessorParams.prototype, "content", void 0);
32
27
  __decorate([
28
+ (0, ts_serval_1.validate)(),
33
29
  (0, ts_serval_1.serialize)(),
30
+ __metadata("design:type", core_types_1.CoreId)
31
+ ], PeerIdentityAttributeSuccessorParams.prototype, "id", void 0);
32
+ __decorate([
34
33
  (0, ts_serval_1.validate)({ nullable: true }),
34
+ (0, ts_serval_1.serialize)(),
35
35
  __metadata("design:type", core_types_1.CoreId)
36
- ], CreateRepositoryAttributeParams.prototype, "parentId", void 0);
37
- //# sourceMappingURL=CreateRepositoryAttributeParams.js.map
36
+ ], PeerIdentityAttributeSuccessorParams.prototype, "sourceReference", void 0);
37
+ exports.PeerIdentityAttributeSuccessorParams = PeerIdentityAttributeSuccessorParams = __decorate([
38
+ (0, ts_serval_1.type)("PeerIdentityAttributeSuccessorParams")
39
+ ], PeerIdentityAttributeSuccessorParams);
40
+ //# sourceMappingURL=PeerIdentityAttributeSuccessorParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PeerIdentityAttributeSuccessorParams.js","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/successorParams/PeerIdentityAttributeSuccessorParams.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA4F;AAC5F,4CAA0E;AAC1E,kDAAoD;AAe7C,IAAM,oCAAoC,GAA1C,MAAM,oCAAqC,SAAQ,wBAAY;IAa3D,MAAM,CAAC,IAAI,CAAC,KAAuF;QACtG,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AAhBY,oFAAoC;AAGtC;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACI,2BAAiB;qEAAC;AAI3B;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACD,mBAAM;gEAAC;AAIX;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACY,mBAAM;6EAAC;+CAXtB,oCAAoC;IADhD,IAAA,gBAAI,EAAC,sCAAsC,CAAC;GAChC,oCAAoC,CAgBhD"}
@@ -0,0 +1,20 @@
1
+ import { ISerializable, Serializable } from "@js-soft/ts-serval";
2
+ import { RelationshipAttribute, RelationshipAttributeJSON } from "@nmshd/content";
3
+ import { CoreId, ICoreId } from "@nmshd/core-types";
4
+ export interface PeerRelationshipAttributeSuccessorParamsJSON {
5
+ content: RelationshipAttributeJSON;
6
+ id: string;
7
+ sourceReference: string;
8
+ }
9
+ export interface IPeerRelationshipAttributeSuccessorParams extends ISerializable {
10
+ content: RelationshipAttribute;
11
+ id: ICoreId;
12
+ sourceReference: ICoreId;
13
+ }
14
+ export declare class PeerRelationshipAttributeSuccessorParams extends Serializable implements IPeerRelationshipAttributeSuccessorParams {
15
+ content: RelationshipAttribute;
16
+ id: CoreId;
17
+ sourceReference: CoreId;
18
+ static from(value: IPeerRelationshipAttributeSuccessorParams | PeerRelationshipAttributeSuccessorParamsJSON): PeerRelationshipAttributeSuccessorParams;
19
+ }
20
+ //# sourceMappingURL=PeerRelationshipAttributeSuccessorParams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PeerRelationshipAttributeSuccessorParams.d.ts","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/successorParams/PeerRelationshipAttributeSuccessorParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAA6B,MAAM,oBAAoB,CAAC;AAC5F,OAAO,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAClF,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,WAAW,4CAA4C;IACzD,OAAO,EAAE,yBAAyB,CAAC;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,eAAe,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,yCAA0C,SAAQ,aAAa;IAC5E,OAAO,EAAE,qBAAqB,CAAC;IAC/B,EAAE,EAAE,OAAO,CAAC;IACZ,eAAe,EAAE,OAAO,CAAC;CAC5B;AAED,qBACa,wCAAyC,SAAQ,YAAa,YAAW,yCAAyC;IAGpH,OAAO,EAAE,qBAAqB,CAAC;IAI/B,EAAE,EAAE,MAAM,CAAC;IAIX,eAAe,EAAE,MAAM,CAAC;WAEjB,IAAI,CAAC,KAAK,EAAE,yCAAyC,GAAG,4CAA4C,GAAG,wCAAwC;CAGhK"}
@@ -9,33 +9,32 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CreateSharedLocalAttributeCopyParams = void 0;
12
+ exports.PeerRelationshipAttributeSuccessorParams = void 0;
13
13
  const ts_serval_1 = require("@js-soft/ts-serval");
14
+ const content_1 = require("@nmshd/content");
14
15
  const core_types_1 = require("@nmshd/core-types");
15
- class CreateSharedLocalAttributeCopyParams extends ts_serval_1.Serializable {
16
+ let PeerRelationshipAttributeSuccessorParams = class PeerRelationshipAttributeSuccessorParams extends ts_serval_1.Serializable {
16
17
  static from(value) {
17
18
  return this.fromAny(value);
18
19
  }
19
- }
20
- exports.CreateSharedLocalAttributeCopyParams = CreateSharedLocalAttributeCopyParams;
20
+ };
21
+ exports.PeerRelationshipAttributeSuccessorParams = PeerRelationshipAttributeSuccessorParams;
21
22
  __decorate([
23
+ (0, ts_serval_1.validate)(),
22
24
  (0, ts_serval_1.serialize)(),
23
- (0, ts_serval_1.validate)({ nullable: true }),
24
- __metadata("design:type", core_types_1.CoreId)
25
- ], CreateSharedLocalAttributeCopyParams.prototype, "attributeId", void 0);
25
+ __metadata("design:type", content_1.RelationshipAttribute)
26
+ ], PeerRelationshipAttributeSuccessorParams.prototype, "content", void 0);
26
27
  __decorate([
27
- (0, ts_serval_1.serialize)(),
28
28
  (0, ts_serval_1.validate)(),
29
+ (0, ts_serval_1.serialize)(),
29
30
  __metadata("design:type", core_types_1.CoreId)
30
- ], CreateSharedLocalAttributeCopyParams.prototype, "sourceAttributeId", void 0);
31
+ ], PeerRelationshipAttributeSuccessorParams.prototype, "id", void 0);
31
32
  __decorate([
32
- (0, ts_serval_1.serialize)(),
33
33
  (0, ts_serval_1.validate)(),
34
- __metadata("design:type", core_types_1.CoreAddress)
35
- ], CreateSharedLocalAttributeCopyParams.prototype, "peer", void 0);
36
- __decorate([
37
34
  (0, ts_serval_1.serialize)(),
38
- (0, ts_serval_1.validate)(),
39
35
  __metadata("design:type", core_types_1.CoreId)
40
- ], CreateSharedLocalAttributeCopyParams.prototype, "requestReference", void 0);
41
- //# sourceMappingURL=CreateSharedLocalAttributeCopyParams.js.map
36
+ ], PeerRelationshipAttributeSuccessorParams.prototype, "sourceReference", void 0);
37
+ exports.PeerRelationshipAttributeSuccessorParams = PeerRelationshipAttributeSuccessorParams = __decorate([
38
+ (0, ts_serval_1.type)("PeerRelationshipAttributeSuccessorParams")
39
+ ], PeerRelationshipAttributeSuccessorParams);
40
+ //# sourceMappingURL=PeerRelationshipAttributeSuccessorParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PeerRelationshipAttributeSuccessorParams.js","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/successorParams/PeerRelationshipAttributeSuccessorParams.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA4F;AAC5F,4CAAkF;AAClF,kDAAoD;AAe7C,IAAM,wCAAwC,GAA9C,MAAM,wCAAyC,SAAQ,wBAAY;IAa/D,MAAM,CAAC,IAAI,CAAC,KAA+F;QAC9G,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AAhBY,4FAAwC;AAG1C;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACI,+BAAqB;yEAAC;AAI/B;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACD,mBAAM;oEAAC;AAIX;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACY,mBAAM;iFAAC;mDAXtB,wCAAwC;IADpD,IAAA,gBAAI,EAAC,0CAA0C,CAAC;GACpC,wCAAwC,CAgBpD"}
@@ -0,0 +1,20 @@
1
+ import { ISerializable, Serializable } from "@js-soft/ts-serval";
2
+ import { IRelationshipAttribute, RelationshipAttribute, RelationshipAttributeJSON } from "@nmshd/content";
3
+ import { CoreId, ICoreId } from "@nmshd/core-types";
4
+ export interface ThirdPartyRelationshipAttributeSuccessorParamsJSON {
5
+ content: RelationshipAttributeJSON;
6
+ id: string;
7
+ sourceReference: string;
8
+ }
9
+ export interface IThirdPartyRelationshipAttributeSuccessorParams extends ISerializable {
10
+ content: IRelationshipAttribute;
11
+ id: ICoreId;
12
+ sourceReference: ICoreId;
13
+ }
14
+ export declare class ThirdPartyRelationshipAttributeSuccessorParams extends Serializable implements IThirdPartyRelationshipAttributeSuccessorParams {
15
+ content: RelationshipAttribute;
16
+ id: CoreId;
17
+ sourceReference: CoreId;
18
+ static from(value: IThirdPartyRelationshipAttributeSuccessorParams | ThirdPartyRelationshipAttributeSuccessorParamsJSON): ThirdPartyRelationshipAttributeSuccessorParams;
19
+ }
20
+ //# sourceMappingURL=ThirdPartyRelationshipAttributeSuccessorParams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThirdPartyRelationshipAttributeSuccessorParams.d.ts","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/successorParams/ThirdPartyRelationshipAttributeSuccessorParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAA6B,MAAM,oBAAoB,CAAC;AAC5F,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAC1G,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,WAAW,kDAAkD;IAC/D,OAAO,EAAE,yBAAyB,CAAC;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,eAAe,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,+CAAgD,SAAQ,aAAa;IAClF,OAAO,EAAE,sBAAsB,CAAC;IAChC,EAAE,EAAE,OAAO,CAAC;IACZ,eAAe,EAAE,OAAO,CAAC;CAC5B;AAED,qBACa,8CAA+C,SAAQ,YAAa,YAAW,+CAA+C;IAGhI,OAAO,EAAE,qBAAqB,CAAC;IAI/B,EAAE,EAAE,MAAM,CAAC;IAIX,eAAe,EAAE,MAAM,CAAC;WAEjB,IAAI,CACd,KAAK,EAAE,+CAA+C,GAAG,kDAAkD,GAC5G,8CAA8C;CAGpD"}
@@ -9,39 +9,32 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CreateSharedLocalAttributeParams = void 0;
12
+ exports.ThirdPartyRelationshipAttributeSuccessorParams = void 0;
13
13
  const ts_serval_1 = require("@js-soft/ts-serval");
14
14
  const content_1 = require("@nmshd/content");
15
15
  const core_types_1 = require("@nmshd/core-types");
16
- class CreateSharedLocalAttributeParams extends ts_serval_1.Serializable {
16
+ let ThirdPartyRelationshipAttributeSuccessorParams = class ThirdPartyRelationshipAttributeSuccessorParams extends ts_serval_1.Serializable {
17
17
  static from(value) {
18
18
  return this.fromAny(value);
19
19
  }
20
- }
21
- exports.CreateSharedLocalAttributeParams = CreateSharedLocalAttributeParams;
20
+ };
21
+ exports.ThirdPartyRelationshipAttributeSuccessorParams = ThirdPartyRelationshipAttributeSuccessorParams;
22
22
  __decorate([
23
+ (0, ts_serval_1.validate)(),
23
24
  (0, ts_serval_1.serialize)(),
24
- (0, ts_serval_1.validate)({ nullable: true }),
25
- __metadata("design:type", core_types_1.CoreId)
26
- ], CreateSharedLocalAttributeParams.prototype, "id", void 0);
25
+ __metadata("design:type", content_1.RelationshipAttribute)
26
+ ], ThirdPartyRelationshipAttributeSuccessorParams.prototype, "content", void 0);
27
27
  __decorate([
28
- (0, ts_serval_1.serialize)({ unionTypes: [content_1.IdentityAttribute, content_1.RelationshipAttribute] }),
29
28
  (0, ts_serval_1.validate)(),
30
- __metadata("design:type", Object)
31
- ], CreateSharedLocalAttributeParams.prototype, "content", void 0);
32
- __decorate([
33
29
  (0, ts_serval_1.serialize)(),
34
- (0, ts_serval_1.validate)(),
35
30
  __metadata("design:type", core_types_1.CoreId)
36
- ], CreateSharedLocalAttributeParams.prototype, "requestReference", void 0);
31
+ ], ThirdPartyRelationshipAttributeSuccessorParams.prototype, "id", void 0);
37
32
  __decorate([
38
- (0, ts_serval_1.serialize)(),
39
- (0, ts_serval_1.validate)(),
40
- __metadata("design:type", core_types_1.CoreAddress)
41
- ], CreateSharedLocalAttributeParams.prototype, "peer", void 0);
42
- __decorate([
43
- (0, ts_serval_1.serialize)(),
44
33
  (0, ts_serval_1.validate)({ nullable: true }),
45
- __metadata("design:type", core_types_1.CoreAddress)
46
- ], CreateSharedLocalAttributeParams.prototype, "thirdPartyAddress", void 0);
47
- //# sourceMappingURL=CreateSharedLocalAttributeParams.js.map
34
+ (0, ts_serval_1.serialize)(),
35
+ __metadata("design:type", core_types_1.CoreId)
36
+ ], ThirdPartyRelationshipAttributeSuccessorParams.prototype, "sourceReference", void 0);
37
+ exports.ThirdPartyRelationshipAttributeSuccessorParams = ThirdPartyRelationshipAttributeSuccessorParams = __decorate([
38
+ (0, ts_serval_1.type)("ThirdPartyRelationshipAttributeSuccessorParams")
39
+ ], ThirdPartyRelationshipAttributeSuccessorParams);
40
+ //# sourceMappingURL=ThirdPartyRelationshipAttributeSuccessorParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThirdPartyRelationshipAttributeSuccessorParams.js","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/successorParams/ThirdPartyRelationshipAttributeSuccessorParams.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA4F;AAC5F,4CAA0G;AAC1G,kDAAoD;AAe7C,IAAM,8CAA8C,GAApD,MAAM,8CAA+C,SAAQ,wBAAY;IAarE,MAAM,CAAC,IAAI,CACd,KAA2G;QAE3G,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AAlBY,wGAA8C;AAGhD;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACI,+BAAqB;+EAAC;AAI/B;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACD,mBAAM;0EAAC;AAIX;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACY,mBAAM;uFAAC;yDAXtB,8CAA8C;IAD1D,IAAA,gBAAI,EAAC,gDAAgD,CAAC;GAC1C,8CAA8C,CAkB1D"}
@@ -0,0 +1,6 @@
1
+ export * from "./OwnIdentityAttributeSuccessorParams";
2
+ export * from "./OwnRelationshipAttributeSuccessorParams";
3
+ export * from "./PeerIdentityAttributeSuccessorParams";
4
+ export * from "./PeerRelationshipAttributeSuccessorParams";
5
+ export * from "./ThirdPartyRelationshipAttributeSuccessorParams";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/successorParams/index.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,wCAAwC,CAAC;AACvD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,kDAAkD,CAAC"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./OwnIdentityAttributeSuccessorParams"), exports);
18
+ __exportStar(require("./OwnRelationshipAttributeSuccessorParams"), exports);
19
+ __exportStar(require("./PeerIdentityAttributeSuccessorParams"), exports);
20
+ __exportStar(require("./PeerRelationshipAttributeSuccessorParams"), exports);
21
+ __exportStar(require("./ThirdPartyRelationshipAttributeSuccessorParams"), exports);
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/successorParams/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wEAAsD;AACtD,4EAA0D;AAC1D,yEAAuD;AACvD,6EAA2D;AAC3D,mFAAiE"}
@@ -1,8 +1,8 @@
1
1
  export * from "./itemProcessors/AbstractNotificationItemProcessor";
2
- export * from "./itemProcessors/attributeDeleted/OwnSharedAttributeDeletedByOwnerNotificationItemProcessor";
3
- export * from "./itemProcessors/attributeDeleted/PeerSharedAttributeDeletedByPeerNotificationItemProcessor";
4
- export * from "./itemProcessors/attributeDeleted/ThirdPartyRelationshipAttributeDeletedByPeerNotificationItemProcessor";
5
- export * from "./itemProcessors/attributeSucceeded/PeerSharedAttributeSucceededNotificationItemProcessor";
2
+ export * from "./itemProcessors/attributeDeleted/ForwardedAttributeDeletedByPeerNotificationItemProcessor";
3
+ export * from "./itemProcessors/attributeDeleted/OwnAttributeDeletedByOwnerNotificationItemProcessor";
4
+ export * from "./itemProcessors/attributeDeleted/PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor";
5
+ export * from "./itemProcessors/attributeSucceeded/PeerAttributeSucceededNotificationItemProcessor";
6
6
  export * from "./itemProcessors/NotificationItemConstructor";
7
7
  export * from "./itemProcessors/NotificationItemProcessorConstructor";
8
8
  export * from "./itemProcessors/NotificationItemProcessorRegistry";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/notifications/index.ts"],"names":[],"mappings":"AAAA,cAAc,oDAAoD,CAAC;AACnE,cAAc,6FAA6F,CAAC;AAC5G,cAAc,6FAA6F,CAAC;AAC5G,cAAc,yGAAyG,CAAC;AACxH,cAAc,2FAA2F,CAAC;AAC1G,cAAc,8CAA8C,CAAC;AAC7D,cAAc,uDAAuD,CAAC;AACtE,cAAc,oDAAoD,CAAC;AACnE,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/notifications/index.ts"],"names":[],"mappings":"AAAA,cAAc,oDAAoD,CAAC;AACnE,cAAc,4FAA4F,CAAC;AAC3G,cAAc,uFAAuF,CAAC;AACtG,cAAc,mGAAmG,CAAC;AAClH,cAAc,qFAAqF,CAAC;AACpG,cAAc,8CAA8C,CAAC;AAC7D,cAAc,uDAAuD,CAAC;AACtE,cAAc,oDAAoD,CAAC;AACnE,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC"}
@@ -15,10 +15,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./itemProcessors/AbstractNotificationItemProcessor"), exports);
18
- __exportStar(require("./itemProcessors/attributeDeleted/OwnSharedAttributeDeletedByOwnerNotificationItemProcessor"), exports);
19
- __exportStar(require("./itemProcessors/attributeDeleted/PeerSharedAttributeDeletedByPeerNotificationItemProcessor"), exports);
20
- __exportStar(require("./itemProcessors/attributeDeleted/ThirdPartyRelationshipAttributeDeletedByPeerNotificationItemProcessor"), exports);
21
- __exportStar(require("./itemProcessors/attributeSucceeded/PeerSharedAttributeSucceededNotificationItemProcessor"), exports);
18
+ __exportStar(require("./itemProcessors/attributeDeleted/ForwardedAttributeDeletedByPeerNotificationItemProcessor"), exports);
19
+ __exportStar(require("./itemProcessors/attributeDeleted/OwnAttributeDeletedByOwnerNotificationItemProcessor"), exports);
20
+ __exportStar(require("./itemProcessors/attributeDeleted/PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor"), exports);
21
+ __exportStar(require("./itemProcessors/attributeSucceeded/PeerAttributeSucceededNotificationItemProcessor"), exports);
22
22
  __exportStar(require("./itemProcessors/NotificationItemConstructor"), exports);
23
23
  __exportStar(require("./itemProcessors/NotificationItemProcessorConstructor"), exports);
24
24
  __exportStar(require("./itemProcessors/NotificationItemProcessorRegistry"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/notifications/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qFAAmE;AACnE,8HAA4G;AAC5G,8HAA4G;AAC5G,0IAAwH;AACxH,4HAA0G;AAC1G,+EAA6D;AAC7D,wFAAsE;AACtE,qFAAmE;AACnE,4DAA0C;AAC1C,kEAAgD;AAChD,4DAA0C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/notifications/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qFAAmE;AACnE,6HAA2G;AAC3G,wHAAsG;AACtG,oIAAkH;AAClH,sHAAoG;AACpG,+EAA6D;AAC7D,wFAAsE;AACtE,qFAAmE;AACnE,4DAA0C;AAC1C,kEAAgD;AAChD,4DAA0C"}
@@ -0,0 +1,14 @@
1
+ import { ForwardedAttributeDeletedByPeerNotificationItem } from "@nmshd/content";
2
+ import { ConsumptionController } from "../../../../consumption/ConsumptionController";
3
+ import { ForwardedAttributeDeletedByPeerEvent } from "../../../attributes";
4
+ import { ValidationResult } from "../../../common";
5
+ import { LocalNotification } from "../../local/LocalNotification";
6
+ import { AbstractNotificationItemProcessor } from "../AbstractNotificationItemProcessor";
7
+ export declare class ForwardedAttributeDeletedByPeerNotificationItemProcessor extends AbstractNotificationItemProcessor<ForwardedAttributeDeletedByPeerNotificationItem> {
8
+ private readonly _logger;
9
+ constructor(consumptionController: ConsumptionController);
10
+ checkPrerequisitesOfIncomingNotificationItem(notificationItem: ForwardedAttributeDeletedByPeerNotificationItem, notification: LocalNotification): Promise<ValidationResult>;
11
+ process(notificationItem: ForwardedAttributeDeletedByPeerNotificationItem, notification: LocalNotification): Promise<ForwardedAttributeDeletedByPeerEvent | void>;
12
+ rollback(notificationItem: ForwardedAttributeDeletedByPeerNotificationItem, notification: LocalNotification): Promise<void>;
13
+ }
14
+ //# sourceMappingURL=ForwardedAttributeDeletedByPeerNotificationItemProcessor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ForwardedAttributeDeletedByPeerNotificationItemProcessor.d.ts","sourceRoot":"","sources":["../../../../../src/modules/notifications/itemProcessors/attributeDeleted/ForwardedAttributeDeletedByPeerNotificationItemProcessor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,+CAA+C,EAAE,MAAM,gBAAgB,CAAC;AAGjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAEtF,OAAO,EAGH,oCAAoC,EAIvC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,iCAAiC,EAAE,MAAM,sCAAsC,CAAC;AAEzF,qBAAa,wDAAyD,SAAQ,iCAAiC,CAAC,+CAA+C,CAAC;IAC5J,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAU;gBAEf,qBAAqB,EAAE,qBAAqB;IAKzC,4CAA4C,CAC9D,gBAAgB,EAAE,+CAA+C,EACjE,YAAY,EAAE,iBAAiB,GAChC,OAAO,CAAC,gBAAgB,CAAC;IAmBN,OAAO,CACzB,gBAAgB,EAAE,+CAA+C,EACjE,YAAY,EAAE,iBAAiB,GAChC,OAAO,CAAC,oCAAoC,GAAG,IAAI,CAAC;IAoBjC,QAAQ,CAAC,gBAAgB,EAAE,+CAA+C,EAAE,YAAY,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;CAWpJ"}
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ForwardedAttributeDeletedByPeerNotificationItemProcessor = void 0;
4
+ const core_types_1 = require("@nmshd/core-types");
5
+ const transport_1 = require("@nmshd/transport");
6
+ const ConsumptionCoreErrors_1 = require("../../../../consumption/ConsumptionCoreErrors");
7
+ const attributes_1 = require("../../../attributes");
8
+ const common_1 = require("../../../common");
9
+ const AbstractNotificationItemProcessor_1 = require("../AbstractNotificationItemProcessor");
10
+ class ForwardedAttributeDeletedByPeerNotificationItemProcessor extends AbstractNotificationItemProcessor_1.AbstractNotificationItemProcessor {
11
+ constructor(consumptionController) {
12
+ super(consumptionController);
13
+ this._logger = transport_1.TransportLoggerFactory.getLogger(ForwardedAttributeDeletedByPeerNotificationItemProcessor);
14
+ }
15
+ async checkPrerequisitesOfIncomingNotificationItem(notificationItem, notification) {
16
+ const attribute = await this.consumptionController.attributes.getLocalAttribute(notificationItem.attributeId);
17
+ if (!attribute)
18
+ return common_1.ValidationResult.success();
19
+ if (!(attribute instanceof attributes_1.OwnIdentityAttribute || attribute instanceof attributes_1.OwnRelationshipAttribute || attribute instanceof attributes_1.PeerRelationshipAttribute)) {
20
+ return common_1.ValidationResult.error(ConsumptionCoreErrors_1.ConsumptionCoreErrors.attributes.wrongTypeOfAttribute(`The Attribute ${notificationItem.attributeId} is not an OwnIdentityAttribute, an OwnRelationshipAttribute or a PeerRelationshipAttribute.`));
21
+ }
22
+ if (!(await this.consumptionController.attributes.isAttributeForwardedToPeer(attribute, notification.peer))) {
23
+ return common_1.ValidationResult.error(ConsumptionCoreErrors_1.ConsumptionCoreErrors.attributes.senderIsNotPeerOfSharedAttribute(notification.peer, notificationItem.attributeId));
24
+ }
25
+ return common_1.ValidationResult.success();
26
+ }
27
+ async process(notificationItem, notification) {
28
+ const attribute = await this.consumptionController.attributes.getLocalAttribute(notificationItem.attributeId);
29
+ if (!attribute)
30
+ return;
31
+ if (!(attribute instanceof attributes_1.OwnIdentityAttribute || attribute instanceof attributes_1.OwnRelationshipAttribute || attribute instanceof attributes_1.PeerRelationshipAttribute)) {
32
+ throw ConsumptionCoreErrors_1.ConsumptionCoreErrors.attributes.wrongTypeOfAttribute(`The Attribute ${notificationItem.attributeId} is not an OwnIdentityAttribute, an OwnRelationshipAttribute or a PeerRelationshipAttribute.`);
33
+ }
34
+ const deletionInfo = attributes_1.EmittedAttributeDeletionInfo.from({
35
+ deletionStatus: attributes_1.EmittedAttributeDeletionStatus.DeletedByRecipient,
36
+ deletionDate: core_types_1.CoreDate.utc()
37
+ });
38
+ await this.consumptionController.attributes.setForwardedDeletionInfoOfAttributeAndPredecessors(attribute, deletionInfo, notification.peer, true);
39
+ return new attributes_1.ForwardedAttributeDeletedByPeerEvent(this.currentIdentityAddress.toString(), attribute);
40
+ }
41
+ async rollback(notificationItem, notification) {
42
+ const attribute = await this.consumptionController.attributes.getLocalAttribute(notificationItem.attributeId);
43
+ if (!attribute)
44
+ return;
45
+ if (!(attribute instanceof attributes_1.OwnIdentityAttribute || attribute instanceof attributes_1.OwnRelationshipAttribute || attribute instanceof attributes_1.PeerRelationshipAttribute)) {
46
+ return;
47
+ }
48
+ // the previous deletionState cannot be unambiguously known
49
+ await this.consumptionController.attributes.setForwardedDeletionInfoOfAttributeAndPredecessors(attribute, undefined, notification.peer, true);
50
+ }
51
+ }
52
+ exports.ForwardedAttributeDeletedByPeerNotificationItemProcessor = ForwardedAttributeDeletedByPeerNotificationItemProcessor;
53
+ //# sourceMappingURL=ForwardedAttributeDeletedByPeerNotificationItemProcessor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ForwardedAttributeDeletedByPeerNotificationItemProcessor.js","sourceRoot":"","sources":["../../../../../src/modules/notifications/itemProcessors/attributeDeleted/ForwardedAttributeDeletedByPeerNotificationItemProcessor.ts"],"names":[],"mappings":";;;AAEA,kDAA6C;AAC7C,gDAA0D;AAE1D,yFAAsF;AACtF,oDAO6B;AAC7B,4CAAmD;AAEnD,4FAAyF;AAEzF,MAAa,wDAAyD,SAAQ,qEAAkF;IAG5J,YAAmB,qBAA4C;QAC3D,KAAK,CAAC,qBAAqB,CAAC,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,kCAAsB,CAAC,SAAS,CAAC,wDAAwD,CAAC,CAAC;IAC9G,CAAC;IAEe,KAAK,CAAC,4CAA4C,CAC9D,gBAAiE,EACjE,YAA+B;QAE/B,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;QAC9G,IAAI,CAAC,SAAS;YAAE,OAAO,yBAAgB,CAAC,OAAO,EAAE,CAAC;QAElD,IAAI,CAAC,CAAC,SAAS,YAAY,iCAAoB,IAAI,SAAS,YAAY,qCAAwB,IAAI,SAAS,YAAY,sCAAyB,CAAC,EAAE,CAAC;YAClJ,OAAO,yBAAgB,CAAC,KAAK,CACzB,6CAAqB,CAAC,UAAU,CAAC,oBAAoB,CACjD,iBAAiB,gBAAgB,CAAC,WAAW,8FAA8F,CAC9I,CACJ,CAAC;QACN,CAAC;QAED,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,0BAA0B,CAAC,SAAS,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;YAC1G,OAAO,yBAAgB,CAAC,KAAK,CAAC,6CAAqB,CAAC,UAAU,CAAC,gCAAgC,CAAC,YAAY,CAAC,IAAI,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAC,CAAC;QACtJ,CAAC;QAED,OAAO,yBAAgB,CAAC,OAAO,EAAE,CAAC;IACtC,CAAC;IAEe,KAAK,CAAC,OAAO,CACzB,gBAAiE,EACjE,YAA+B;QAE/B,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;QAC9G,IAAI,CAAC,SAAS;YAAE,OAAO;QAEvB,IAAI,CAAC,CAAC,SAAS,YAAY,iCAAoB,IAAI,SAAS,YAAY,qCAAwB,IAAI,SAAS,YAAY,sCAAyB,CAAC,EAAE,CAAC;YAClJ,MAAM,6CAAqB,CAAC,UAAU,CAAC,oBAAoB,CACvD,iBAAiB,gBAAgB,CAAC,WAAW,8FAA8F,CAC9I,CAAC;QACN,CAAC;QAED,MAAM,YAAY,GAAG,yCAA4B,CAAC,IAAI,CAAC;YACnD,cAAc,EAAE,2CAA8B,CAAC,kBAAkB;YACjE,YAAY,EAAE,qBAAQ,CAAC,GAAG,EAAE;SAC/B,CAAC,CAAC;QAEH,MAAM,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,kDAAkD,CAAC,SAAS,EAAE,YAAY,EAAE,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAEjJ,OAAO,IAAI,iDAAoC,CAAC,IAAI,CAAC,sBAAsB,CAAC,QAAQ,EAAE,EAAE,SAAS,CAAC,CAAC;IACvG,CAAC;IAEe,KAAK,CAAC,QAAQ,CAAC,gBAAiE,EAAE,YAA+B;QAC7H,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;QAC9G,IAAI,CAAC,SAAS;YAAE,OAAO;QAEvB,IAAI,CAAC,CAAC,SAAS,YAAY,iCAAoB,IAAI,SAAS,YAAY,qCAAwB,IAAI,SAAS,YAAY,sCAAyB,CAAC,EAAE,CAAC;YAClJ,OAAO;QACX,CAAC;QAED,2DAA2D;QAC3D,MAAM,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,kDAAkD,CAAC,SAAS,EAAE,SAAS,EAAE,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAClJ,CAAC;CACJ;AAhED,4HAgEC"}
@@ -0,0 +1,14 @@
1
+ import { OwnAttributeDeletedByOwnerNotificationItem } from "@nmshd/content";
2
+ import { ConsumptionController } from "../../../../consumption/ConsumptionController";
3
+ import { OwnAttributeDeletedByOwnerEvent } from "../../../attributes";
4
+ import { ValidationResult } from "../../../common";
5
+ import { LocalNotification } from "../../local/LocalNotification";
6
+ import { AbstractNotificationItemProcessor } from "../AbstractNotificationItemProcessor";
7
+ export declare class OwnAttributeDeletedByOwnerNotificationItemProcessor extends AbstractNotificationItemProcessor<OwnAttributeDeletedByOwnerNotificationItem> {
8
+ private readonly _logger;
9
+ constructor(consumptionController: ConsumptionController);
10
+ checkPrerequisitesOfIncomingNotificationItem(notificationItem: OwnAttributeDeletedByOwnerNotificationItem, notification: LocalNotification): Promise<ValidationResult>;
11
+ process(notificationItem: OwnAttributeDeletedByOwnerNotificationItem, _notification: LocalNotification): Promise<OwnAttributeDeletedByOwnerEvent | void>;
12
+ rollback(notificationItem: OwnAttributeDeletedByOwnerNotificationItem, _notification: LocalNotification): Promise<void>;
13
+ }
14
+ //# sourceMappingURL=OwnAttributeDeletedByOwnerNotificationItemProcessor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OwnAttributeDeletedByOwnerNotificationItemProcessor.d.ts","sourceRoot":"","sources":["../../../../../src/modules/notifications/itemProcessors/attributeDeleted/OwnAttributeDeletedByOwnerNotificationItemProcessor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0CAA0C,EAAE,MAAM,gBAAgB,CAAC;AAG5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAEtF,OAAO,EACH,+BAA+B,EAMlC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,iCAAiC,EAAE,MAAM,sCAAsC,CAAC;AAEzF,qBAAa,mDAAoD,SAAQ,iCAAiC,CAAC,0CAA0C,CAAC;IAClJ,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAU;gBAEf,qBAAqB,EAAE,qBAAqB;IAKzC,4CAA4C,CAC9D,gBAAgB,EAAE,0CAA0C,EAC5D,YAAY,EAAE,iBAAiB,GAChC,OAAO,CAAC,gBAAgB,CAAC;IAmBN,OAAO,CAAC,gBAAgB,EAAE,0CAA0C,EAAE,aAAa,EAAE,iBAAiB,GAAG,OAAO,CAAC,+BAA+B,GAAG,IAAI,CAAC;IAsBxJ,QAAQ,CAAC,gBAAgB,EAAE,0CAA0C,EAAE,aAAa,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;CAchJ"}
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OwnAttributeDeletedByOwnerNotificationItemProcessor = void 0;
4
+ const core_types_1 = require("@nmshd/core-types");
5
+ const transport_1 = require("@nmshd/transport");
6
+ const ConsumptionCoreErrors_1 = require("../../../../consumption/ConsumptionCoreErrors");
7
+ const attributes_1 = require("../../../attributes");
8
+ const common_1 = require("../../../common");
9
+ const AbstractNotificationItemProcessor_1 = require("../AbstractNotificationItemProcessor");
10
+ class OwnAttributeDeletedByOwnerNotificationItemProcessor extends AbstractNotificationItemProcessor_1.AbstractNotificationItemProcessor {
11
+ constructor(consumptionController) {
12
+ super(consumptionController);
13
+ this._logger = transport_1.TransportLoggerFactory.getLogger(OwnAttributeDeletedByOwnerNotificationItemProcessor);
14
+ }
15
+ async checkPrerequisitesOfIncomingNotificationItem(notificationItem, notification) {
16
+ const attribute = await this.consumptionController.attributes.getLocalAttribute(notificationItem.attributeId);
17
+ if (!attribute)
18
+ return common_1.ValidationResult.success();
19
+ if (!(attribute instanceof attributes_1.PeerIdentityAttribute || attribute instanceof attributes_1.PeerRelationshipAttribute || attribute instanceof attributes_1.ThirdPartyRelationshipAttribute)) {
20
+ return common_1.ValidationResult.error(ConsumptionCoreErrors_1.ConsumptionCoreErrors.attributes.wrongTypeOfAttribute(`The Attribute ${notificationItem.attributeId} is not a PeerIdentityAttribute, a PeerRelationshipAttribute or a ThirdPartyRelationshipAttribute.`));
21
+ }
22
+ if (!notification.peer.equals(attribute.peer)) {
23
+ return common_1.ValidationResult.error(ConsumptionCoreErrors_1.ConsumptionCoreErrors.attributes.senderIsNotPeerOfSharedAttribute(notification.peer, notificationItem.attributeId));
24
+ }
25
+ return common_1.ValidationResult.success();
26
+ }
27
+ async process(notificationItem, _notification) {
28
+ const attribute = await this.consumptionController.attributes.getLocalAttribute(notificationItem.attributeId);
29
+ if (!attribute)
30
+ return;
31
+ if (!(attribute instanceof attributes_1.PeerIdentityAttribute || attribute instanceof attributes_1.PeerRelationshipAttribute || attribute instanceof attributes_1.ThirdPartyRelationshipAttribute)) {
32
+ throw ConsumptionCoreErrors_1.ConsumptionCoreErrors.attributes.wrongTypeOfAttribute(`The Attribute ${notificationItem.attributeId} is not a PeerIdentityAttribute, a PeerRelationshipAttribute or a ThirdPartyRelationshipAttribute.`);
33
+ }
34
+ if (attribute.isToBeDeleted())
35
+ return;
36
+ const deletionInfo = attributes_1.ReceivedAttributeDeletionInfo.from({
37
+ deletionStatus: attributes_1.ReceivedAttributeDeletionStatus.DeletedByEmitter,
38
+ deletionDate: core_types_1.CoreDate.utc()
39
+ });
40
+ await this.consumptionController.attributes.setPeerDeletionInfoOfReceivedAttributeAndPredecessors(attribute, deletionInfo);
41
+ return new attributes_1.OwnAttributeDeletedByOwnerEvent(this.currentIdentityAddress.toString(), attribute);
42
+ }
43
+ async rollback(notificationItem, _notification) {
44
+ const attribute = await this.consumptionController.attributes.getLocalAttribute(notificationItem.attributeId);
45
+ if (!attribute)
46
+ return;
47
+ if (!(attribute instanceof attributes_1.PeerIdentityAttribute || attribute instanceof attributes_1.PeerRelationshipAttribute || attribute instanceof attributes_1.ThirdPartyRelationshipAttribute))
48
+ return;
49
+ const predecessors = await this.consumptionController.attributes.getPredecessorsOfAttribute(attribute);
50
+ for (const attr of [attribute, ...predecessors]) {
51
+ if (attr.isToBeDeleted())
52
+ continue;
53
+ attr.deletionInfo = undefined;
54
+ await this.consumptionController.attributes.updateAttributeUnsafe(attr);
55
+ }
56
+ }
57
+ }
58
+ exports.OwnAttributeDeletedByOwnerNotificationItemProcessor = OwnAttributeDeletedByOwnerNotificationItemProcessor;
59
+ //# sourceMappingURL=OwnAttributeDeletedByOwnerNotificationItemProcessor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OwnAttributeDeletedByOwnerNotificationItemProcessor.js","sourceRoot":"","sources":["../../../../../src/modules/notifications/itemProcessors/attributeDeleted/OwnAttributeDeletedByOwnerNotificationItemProcessor.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,14 @@
1
+ import { PeerRelationshipAttributeDeletedByPeerNotificationItem } from "@nmshd/content";
2
+ import { ConsumptionController } from "../../../../consumption/ConsumptionController";
3
+ import { PeerRelationshipAttributeDeletedByPeerEvent } from "../../../attributes";
4
+ import { ValidationResult } from "../../../common";
5
+ import { LocalNotification } from "../../local/LocalNotification";
6
+ import { AbstractNotificationItemProcessor } from "../AbstractNotificationItemProcessor";
7
+ export declare class PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor extends AbstractNotificationItemProcessor<PeerRelationshipAttributeDeletedByPeerNotificationItem> {
8
+ private readonly _logger;
9
+ constructor(consumptionController: ConsumptionController);
10
+ checkPrerequisitesOfIncomingNotificationItem(notificationItem: PeerRelationshipAttributeDeletedByPeerNotificationItem, notification: LocalNotification): Promise<ValidationResult>;
11
+ process(notificationItem: PeerRelationshipAttributeDeletedByPeerNotificationItem, _notification: LocalNotification): Promise<PeerRelationshipAttributeDeletedByPeerEvent | void>;
12
+ rollback(notificationItem: PeerRelationshipAttributeDeletedByPeerNotificationItem, _notification: LocalNotification): Promise<void>;
13
+ }
14
+ //# sourceMappingURL=PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor.d.ts","sourceRoot":"","sources":["../../../../../src/modules/notifications/itemProcessors/attributeDeleted/PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sDAAsD,EAAE,MAAM,gBAAgB,CAAC;AAGxF,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAEtF,OAAO,EAIH,2CAA2C,EAI9C,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,iCAAiC,EAAE,MAAM,sCAAsC,CAAC;AAEzF,qBAAa,+DAAgE,SAAQ,iCAAiC,CAAC,sDAAsD,CAAC;IAC1K,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAU;gBAEf,qBAAqB,EAAE,qBAAqB;IAKzC,4CAA4C,CAC9D,gBAAgB,EAAE,sDAAsD,EACxE,YAAY,EAAE,iBAAiB,GAChC,OAAO,CAAC,gBAAgB,CAAC;IAmBN,OAAO,CACzB,gBAAgB,EAAE,sDAAsD,EACxE,aAAa,EAAE,iBAAiB,GACjC,OAAO,CAAC,2CAA2C,GAAG,IAAI,CAAC;IA+BxC,QAAQ,CAAC,gBAAgB,EAAE,sDAAsD,EAAE,aAAa,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;CAa5J"}
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor = void 0;
4
+ const core_types_1 = require("@nmshd/core-types");
5
+ const transport_1 = require("@nmshd/transport");
6
+ const ConsumptionCoreErrors_1 = require("../../../../consumption/ConsumptionCoreErrors");
7
+ const attributes_1 = require("../../../attributes");
8
+ const common_1 = require("../../../common");
9
+ const AbstractNotificationItemProcessor_1 = require("../AbstractNotificationItemProcessor");
10
+ class PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor extends AbstractNotificationItemProcessor_1.AbstractNotificationItemProcessor {
11
+ constructor(consumptionController) {
12
+ super(consumptionController);
13
+ this._logger = transport_1.TransportLoggerFactory.getLogger(PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor);
14
+ }
15
+ async checkPrerequisitesOfIncomingNotificationItem(notificationItem, notification) {
16
+ const attribute = await this.consumptionController.attributes.getLocalAttribute(notificationItem.attributeId);
17
+ if (!attribute)
18
+ return common_1.ValidationResult.success();
19
+ if (!(attribute instanceof attributes_1.OwnRelationshipAttribute || attribute instanceof attributes_1.ThirdPartyRelationshipAttribute)) {
20
+ return common_1.ValidationResult.error(ConsumptionCoreErrors_1.ConsumptionCoreErrors.attributes.wrongTypeOfAttribute(`The Attribute ${notificationItem.attributeId} is not an OwnRelationshipAttribute or a ThirdPartyRelationshipAttribute.`));
21
+ }
22
+ if (!notification.peer.equals(attribute.peer)) {
23
+ return common_1.ValidationResult.error(ConsumptionCoreErrors_1.ConsumptionCoreErrors.attributes.senderIsNotPeerOfSharedAttribute(notification.peer, notificationItem.attributeId));
24
+ }
25
+ return common_1.ValidationResult.success();
26
+ }
27
+ async process(notificationItem, _notification) {
28
+ const attribute = await this.consumptionController.attributes.getLocalAttribute(notificationItem.attributeId);
29
+ if (!attribute)
30
+ return;
31
+ if (!(attribute instanceof attributes_1.OwnRelationshipAttribute || attribute instanceof attributes_1.ThirdPartyRelationshipAttribute)) {
32
+ throw ConsumptionCoreErrors_1.ConsumptionCoreErrors.attributes.wrongTypeOfAttribute(`The Attribute ${notificationItem.attributeId} is not an OwnRelationshipAttribute or a ThirdPartyRelationshipAttribute.`);
33
+ }
34
+ if (attribute instanceof attributes_1.OwnRelationshipAttribute) {
35
+ const deletionInfo = attributes_1.EmittedAttributeDeletionInfo.from({
36
+ deletionStatus: attributes_1.EmittedAttributeDeletionStatus.DeletedByRecipient,
37
+ deletionDate: core_types_1.CoreDate.utc()
38
+ });
39
+ await this.consumptionController.attributes.setPeerDeletionInfoOfOwnRelationshipAttributeAndPredecessors(attribute, deletionInfo, true);
40
+ return new attributes_1.PeerRelationshipAttributeDeletedByPeerEvent(this.currentIdentityAddress.toString(), attribute);
41
+ }
42
+ const deletionInfo = attributes_1.ReceivedAttributeDeletionInfo.from({
43
+ deletionStatus: attributes_1.ReceivedAttributeDeletionStatus.DeletedByEmitter,
44
+ deletionDate: core_types_1.CoreDate.utc()
45
+ });
46
+ await this.consumptionController.attributes.setPeerDeletionInfoOfReceivedAttributeAndPredecessors(attribute, deletionInfo, true);
47
+ return new attributes_1.PeerRelationshipAttributeDeletedByPeerEvent(this.currentIdentityAddress.toString(), attribute);
48
+ }
49
+ async rollback(notificationItem, _notification) {
50
+ const attribute = await this.consumptionController.attributes.getLocalAttribute(notificationItem.attributeId);
51
+ if (!attribute)
52
+ return;
53
+ if (!(attribute instanceof attributes_1.OwnRelationshipAttribute || attribute instanceof attributes_1.ThirdPartyRelationshipAttribute)) {
54
+ return;
55
+ }
56
+ // the previous deletionState cannot be unambiguously known
57
+ return attribute instanceof attributes_1.OwnRelationshipAttribute
58
+ ? await this.consumptionController.attributes.setPeerDeletionInfoOfOwnRelationshipAttributeAndPredecessors(attribute, undefined, true)
59
+ : await this.consumptionController.attributes.setPeerDeletionInfoOfReceivedAttributeAndPredecessors(attribute, undefined, true);
60
+ }
61
+ }
62
+ exports.PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor = PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor;
63
+ //# sourceMappingURL=PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor.js","sourceRoot":"","sources":["../../../../../src/modules/notifications/itemProcessors/attributeDeleted/PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor.ts"],"names":[],"mappings":";;;AAEA,kDAA6C;AAC7C,gDAA0D;AAE1D,yFAAsF;AACtF,oDAQ6B;AAC7B,4CAAmD;AAEnD,4FAAyF;AAEzF,MAAa,+DAAgE,SAAQ,qEAAyF;IAG1K,YAAmB,qBAA4C;QAC3D,KAAK,CAAC,qBAAqB,CAAC,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,kCAAsB,CAAC,SAAS,CAAC,+DAA+D,CAAC,CAAC;IACrH,CAAC;IAEe,KAAK,CAAC,4CAA4C,CAC9D,gBAAwE,EACxE,YAA+B;QAE/B,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;QAC9G,IAAI,CAAC,SAAS;YAAE,OAAO,yBAAgB,CAAC,OAAO,EAAE,CAAC;QAElD,IAAI,CAAC,CAAC,SAAS,YAAY,qCAAwB,IAAI,SAAS,YAAY,4CAA+B,CAAC,EAAE,CAAC;YAC3G,OAAO,yBAAgB,CAAC,KAAK,CACzB,6CAAqB,CAAC,UAAU,CAAC,oBAAoB,CACjD,iBAAiB,gBAAgB,CAAC,WAAW,2EAA2E,CAC3H,CACJ,CAAC;QACN,CAAC;QAED,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;YAC5C,OAAO,yBAAgB,CAAC,KAAK,CAAC,6CAAqB,CAAC,UAAU,CAAC,gCAAgC,CAAC,YAAY,CAAC,IAAI,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAC,CAAC;QACtJ,CAAC;QAED,OAAO,yBAAgB,CAAC,OAAO,EAAE,CAAC;IACtC,CAAC;IAEe,KAAK,CAAC,OAAO,CACzB,gBAAwE,EACxE,aAAgC;QAEhC,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;QAC9G,IAAI,CAAC,SAAS;YAAE,OAAO;QAEvB,IAAI,CAAC,CAAC,SAAS,YAAY,qCAAwB,IAAI,SAAS,YAAY,4CAA+B,CAAC,EAAE,CAAC;YAC3G,MAAM,6CAAqB,CAAC,UAAU,CAAC,oBAAoB,CACvD,iBAAiB,gBAAgB,CAAC,WAAW,2EAA2E,CAC3H,CAAC;QACN,CAAC;QAED,IAAI,SAAS,YAAY,qCAAwB,EAAE,CAAC;YAChD,MAAM,YAAY,GAAG,yCAA4B,CAAC,IAAI,CAAC;gBACnD,cAAc,EAAE,2CAA8B,CAAC,kBAAkB;gBACjE,YAAY,EAAE,qBAAQ,CAAC,GAAG,EAAE;aAC/B,CAAC,CAAC;YAEH,MAAM,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,4DAA4D,CAAC,SAAS,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC;YAExI,OAAO,IAAI,wDAA2C,CAAC,IAAI,CAAC,sBAAsB,CAAC,QAAQ,EAAE,EAAE,SAAS,CAAC,CAAC;QAC9G,CAAC;QAED,MAAM,YAAY,GAAG,0CAA6B,CAAC,IAAI,CAAC;YACpD,cAAc,EAAE,4CAA+B,CAAC,gBAAgB;YAChE,YAAY,EAAE,qBAAQ,CAAC,GAAG,EAAE;SAC/B,CAAC,CAAC;QAEH,MAAM,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,qDAAqD,CAAC,SAAS,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC;QAEjI,OAAO,IAAI,wDAA2C,CAAC,IAAI,CAAC,sBAAsB,CAAC,QAAQ,EAAE,EAAE,SAAS,CAAC,CAAC;IAC9G,CAAC;IAEe,KAAK,CAAC,QAAQ,CAAC,gBAAwE,EAAE,aAAgC;QACrI,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;QAC9G,IAAI,CAAC,SAAS;YAAE,OAAO;QAEvB,IAAI,CAAC,CAAC,SAAS,YAAY,qCAAwB,IAAI,SAAS,YAAY,4CAA+B,CAAC,EAAE,CAAC;YAC3G,OAAO;QACX,CAAC;QAED,2DAA2D;QAC3D,OAAO,SAAS,YAAY,qCAAwB;YAChD,CAAC,CAAC,MAAM,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,4DAA4D,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,CAAC;YACtI,CAAC,CAAC,MAAM,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,qDAAqD,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;IACxI,CAAC;CACJ;AA7ED,0IA6EC"}
@@ -0,0 +1,15 @@
1
+ import { PeerAttributeSucceededNotificationItem } from "@nmshd/content";
2
+ import { ConsumptionController } from "../../../../consumption/ConsumptionController";
3
+ import { AttributeSucceededEvent } from "../../../attributes";
4
+ import { ValidationResult } from "../../../common";
5
+ import { LocalNotification } from "../../local/LocalNotification";
6
+ import { AbstractNotificationItemProcessor } from "../AbstractNotificationItemProcessor";
7
+ export declare class PeerAttributeSucceededNotificationItemProcessor extends AbstractNotificationItemProcessor<PeerAttributeSucceededNotificationItem> {
8
+ private readonly _logger;
9
+ constructor(consumptionController: ConsumptionController);
10
+ checkPrerequisitesOfIncomingNotificationItem(notificationItem: PeerAttributeSucceededNotificationItem, notification: LocalNotification): Promise<ValidationResult>;
11
+ process(notificationItem: PeerAttributeSucceededNotificationItem, notification: LocalNotification): Promise<AttributeSucceededEvent>;
12
+ rollback(notificationItem: PeerAttributeSucceededNotificationItem, notification: LocalNotification): Promise<void>;
13
+ private rollbackPartialWork;
14
+ }
15
+ //# sourceMappingURL=PeerAttributeSucceededNotificationItemProcessor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PeerAttributeSucceededNotificationItemProcessor.d.ts","sourceRoot":"","sources":["../../../../../src/modules/notifications/itemProcessors/attributeSucceeded/PeerAttributeSucceededNotificationItemProcessor.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,sCAAsC,EAAyB,MAAM,gBAAgB,CAAC;AAElH,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAEtF,OAAO,EAAE,uBAAuB,EAA0G,MAAM,qBAAqB,CAAC;AAEtK,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,iCAAiC,EAAE,MAAM,sCAAsC,CAAC;AAEzF,qBAAa,+CAAgD,SAAQ,iCAAiC,CAAC,sCAAsC,CAAC;IAC1I,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAU;gBAEf,qBAAqB,EAAE,qBAAqB;IAKzC,4CAA4C,CAC9D,gBAAgB,EAAE,sCAAsC,EACxD,YAAY,EAAE,iBAAiB,GAChC,OAAO,CAAC,gBAAgB,CAAC;IAyCN,OAAO,CAAC,gBAAgB,EAAE,sCAAsC,EAAE,YAAY,EAAE,iBAAiB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IA2CpI,QAAQ,CAAC,gBAAgB,EAAE,sCAAsC,EAAE,YAAY,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;YAI1H,mBAAmB;CAgBpC"}