@nmshd/runtime 7.0.0-openid4vc.6 → 7.1.0-openid4vc.1

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 (201) hide show
  1. package/LICENSE +659 -3
  2. package/README.md +1 -1
  3. package/dist/buildInformation.js +4 -4
  4. package/dist/dataViews/DataViewExpander.d.ts +5 -3
  5. package/dist/dataViews/DataViewExpander.d.ts.map +1 -1
  6. package/dist/dataViews/DataViewExpander.js +163 -174
  7. package/dist/dataViews/DataViewExpander.js.map +1 -1
  8. package/dist/dataViews/consumption/LocalAttributeDVO.d.ts +37 -46
  9. package/dist/dataViews/consumption/LocalAttributeDVO.d.ts.map +1 -1
  10. package/dist/dataViews/content/RequestItemDVOs.d.ts +1 -2
  11. package/dist/dataViews/content/RequestItemDVOs.d.ts.map +1 -1
  12. package/dist/dataViews/content/ResponseItemDVOs.d.ts +4 -10
  13. package/dist/dataViews/content/ResponseItemDVOs.d.ts.map +1 -1
  14. package/dist/events/EventProxy.d.ts.map +1 -1
  15. package/dist/events/EventProxy.js +10 -29
  16. package/dist/events/EventProxy.js.map +1 -1
  17. package/dist/events/consumption/AttributeForwardingDetailsChangedEvent.d.ts +7 -0
  18. package/dist/events/consumption/AttributeForwardingDetailsChangedEvent.d.ts.map +1 -0
  19. package/dist/events/consumption/AttributeForwardingDetailsChangedEvent.js +12 -0
  20. package/dist/events/consumption/AttributeForwardingDetailsChangedEvent.js.map +1 -0
  21. package/dist/events/consumption/AttributeSucceededEvent.d.ts +11 -0
  22. package/dist/events/consumption/AttributeSucceededEvent.d.ts.map +1 -0
  23. package/dist/events/consumption/AttributeSucceededEvent.js +12 -0
  24. package/dist/events/consumption/AttributeSucceededEvent.js.map +1 -0
  25. package/dist/events/consumption/ForwardedAttributeDeletedByPeerEvent.d.ts +7 -0
  26. package/dist/events/consumption/ForwardedAttributeDeletedByPeerEvent.d.ts.map +1 -0
  27. package/dist/events/consumption/ForwardedAttributeDeletedByPeerEvent.js +12 -0
  28. package/dist/events/consumption/ForwardedAttributeDeletedByPeerEvent.js.map +1 -0
  29. package/dist/events/consumption/OwnAttributeDeletedByOwnerEvent.d.ts +7 -0
  30. package/dist/events/consumption/OwnAttributeDeletedByOwnerEvent.d.ts.map +1 -0
  31. package/dist/events/consumption/OwnAttributeDeletedByOwnerEvent.js +12 -0
  32. package/dist/events/consumption/OwnAttributeDeletedByOwnerEvent.js.map +1 -0
  33. package/dist/events/consumption/PeerRelationshipAttributeDeletedByPeerEvent.d.ts +7 -0
  34. package/dist/events/consumption/PeerRelationshipAttributeDeletedByPeerEvent.d.ts.map +1 -0
  35. package/dist/events/consumption/PeerRelationshipAttributeDeletedByPeerEvent.js +12 -0
  36. package/dist/events/consumption/PeerRelationshipAttributeDeletedByPeerEvent.js.map +1 -0
  37. package/dist/events/consumption/index.d.ts +5 -9
  38. package/dist/events/consumption/index.d.ts.map +1 -1
  39. package/dist/events/consumption/index.js +5 -9
  40. package/dist/events/consumption/index.js.map +1 -1
  41. package/dist/extensibility/facades/consumption/AttributesFacade.d.ts +27 -31
  42. package/dist/extensibility/facades/consumption/AttributesFacade.d.ts.map +1 -1
  43. package/dist/extensibility/facades/consumption/AttributesFacade.js +51 -63
  44. package/dist/extensibility/facades/consumption/AttributesFacade.js.map +1 -1
  45. package/dist/useCases/common/RuntimeErrors.d.ts +8 -11
  46. package/dist/useCases/common/RuntimeErrors.d.ts.map +1 -1
  47. package/dist/useCases/common/RuntimeErrors.js +16 -25
  48. package/dist/useCases/common/RuntimeErrors.js.map +1 -1
  49. package/dist/useCases/common/Schemas.d.ts +13 -31
  50. package/dist/useCases/common/Schemas.d.ts.map +1 -1
  51. package/dist/useCases/common/Schemas.js +9571 -12972
  52. package/dist/useCases/common/Schemas.js.map +1 -1
  53. package/dist/useCases/consumption/attributes/AttributeMapper.d.ts +3 -2
  54. package/dist/useCases/consumption/attributes/AttributeMapper.d.ts.map +1 -1
  55. package/dist/useCases/consumption/attributes/AttributeMapper.js +27 -5
  56. package/dist/useCases/consumption/attributes/AttributeMapper.js.map +1 -1
  57. package/dist/useCases/consumption/attributes/CanCreateOwnIdentityAttribute.d.ts +37 -0
  58. package/dist/useCases/consumption/attributes/CanCreateOwnIdentityAttribute.d.ts.map +1 -0
  59. package/dist/useCases/consumption/attributes/{CanCreateRepositoryAttribute.js → CanCreateOwnIdentityAttribute.js} +20 -10
  60. package/dist/useCases/consumption/attributes/CanCreateOwnIdentityAttribute.js.map +1 -0
  61. package/dist/useCases/consumption/attributes/{ChangeDefaultRepositoryAttribute.d.ts → ChangeDefaultOwnIdentityAttribute.d.ts} +5 -5
  62. package/dist/useCases/consumption/attributes/ChangeDefaultOwnIdentityAttribute.d.ts.map +1 -0
  63. package/dist/useCases/consumption/attributes/{ChangeDefaultRepositoryAttribute.js → ChangeDefaultOwnIdentityAttribute.js} +13 -13
  64. package/dist/useCases/consumption/attributes/ChangeDefaultOwnIdentityAttribute.js.map +1 -0
  65. package/dist/useCases/consumption/attributes/CreateOwnIdentityAttribute.d.ts +30 -0
  66. package/dist/useCases/consumption/attributes/CreateOwnIdentityAttribute.d.ts.map +1 -0
  67. package/dist/useCases/consumption/attributes/{CreateRepositoryAttribute.js → CreateOwnIdentityAttribute.js} +15 -16
  68. package/dist/useCases/consumption/attributes/CreateOwnIdentityAttribute.js.map +1 -0
  69. package/dist/useCases/consumption/attributes/DeleteAttributeAndNotify.d.ts +33 -0
  70. package/dist/useCases/consumption/attributes/DeleteAttributeAndNotify.d.ts.map +1 -0
  71. package/dist/useCases/consumption/attributes/DeleteAttributeAndNotify.js +198 -0
  72. package/dist/useCases/consumption/attributes/DeleteAttributeAndNotify.js.map +1 -0
  73. package/dist/useCases/consumption/attributes/DeleteSharedAttributesForRejectedOrRevokedRelationship.d.ts.map +1 -1
  74. package/dist/useCases/consumption/attributes/DeleteSharedAttributesForRejectedOrRevokedRelationship.js +8 -2
  75. package/dist/useCases/consumption/attributes/DeleteSharedAttributesForRejectedOrRevokedRelationship.js.map +1 -1
  76. package/dist/useCases/consumption/attributes/GetAttributes.d.ts +5 -8
  77. package/dist/useCases/consumption/attributes/GetAttributes.d.ts.map +1 -1
  78. package/dist/useCases/consumption/attributes/GetAttributes.js +9 -18
  79. package/dist/useCases/consumption/attributes/GetAttributes.js.map +1 -1
  80. package/dist/useCases/consumption/attributes/GetForwardingDetailsForAttribute.d.ts +28 -0
  81. package/dist/useCases/consumption/attributes/GetForwardingDetailsForAttribute.d.ts.map +1 -0
  82. package/dist/useCases/consumption/attributes/GetForwardingDetailsForAttribute.js +77 -0
  83. package/dist/useCases/consumption/attributes/GetForwardingDetailsForAttribute.js.map +1 -0
  84. package/dist/useCases/consumption/attributes/{GetPeerSharedAttributes.d.ts → GetOwnAttributesSharedWithPeer.d.ts} +10 -11
  85. package/dist/useCases/consumption/attributes/GetOwnAttributesSharedWithPeer.d.ts.map +1 -0
  86. package/dist/useCases/consumption/attributes/{GetOwnSharedAttributes.js → GetOwnAttributesSharedWithPeer.js} +11 -18
  87. package/dist/useCases/consumption/attributes/GetOwnAttributesSharedWithPeer.js.map +1 -0
  88. package/dist/useCases/consumption/attributes/{GetRepositoryAttributes.d.ts → GetOwnIdentityAttributes.d.ts} +9 -9
  89. package/dist/useCases/consumption/attributes/GetOwnIdentityAttributes.d.ts.map +1 -0
  90. package/dist/useCases/consumption/attributes/{GetRepositoryAttributes.js → GetOwnIdentityAttributes.js} +8 -8
  91. package/dist/useCases/consumption/attributes/GetOwnIdentityAttributes.js.map +1 -0
  92. package/dist/useCases/consumption/attributes/GetPeerAttributes.d.ts +39 -0
  93. package/dist/useCases/consumption/attributes/GetPeerAttributes.d.ts.map +1 -0
  94. package/dist/useCases/consumption/attributes/{GetPeerSharedAttributes.js → GetPeerAttributes.js} +10 -10
  95. package/dist/useCases/consumption/attributes/GetPeerAttributes.js.map +1 -0
  96. package/dist/useCases/consumption/attributes/GetVersionsOfAttribute.js +1 -1
  97. package/dist/useCases/consumption/attributes/GetVersionsOfAttribute.js.map +1 -1
  98. package/dist/useCases/consumption/attributes/GetVersionsOfAttributeSharedWithPeer.d.ts +22 -0
  99. package/dist/useCases/consumption/attributes/GetVersionsOfAttributeSharedWithPeer.d.ts.map +1 -0
  100. package/dist/useCases/consumption/attributes/{GetSharedVersionsOfAttribute.js → GetVersionsOfAttributeSharedWithPeer.js} +14 -20
  101. package/dist/useCases/consumption/attributes/GetVersionsOfAttributeSharedWithPeer.js.map +1 -0
  102. package/dist/useCases/consumption/attributes/{NotifyPeerAboutRepositoryAttributeSuccession.d.ts → NotifyPeerAboutOwnIdentityAttributeSuccession.d.ts} +9 -9
  103. package/dist/useCases/consumption/attributes/NotifyPeerAboutOwnIdentityAttributeSuccession.d.ts.map +1 -0
  104. package/dist/useCases/consumption/attributes/NotifyPeerAboutOwnIdentityAttributeSuccession.js +95 -0
  105. package/dist/useCases/consumption/attributes/NotifyPeerAboutOwnIdentityAttributeSuccession.js.map +1 -0
  106. package/dist/useCases/consumption/attributes/{ShareRepositoryAttribute.d.ts → ShareOwnIdentityAttribute.d.ts} +5 -5
  107. package/dist/useCases/consumption/attributes/ShareOwnIdentityAttribute.d.ts.map +1 -0
  108. package/dist/useCases/consumption/attributes/{ShareRepositoryAttribute.js → ShareOwnIdentityAttribute.js} +14 -15
  109. package/dist/useCases/consumption/attributes/ShareOwnIdentityAttribute.js.map +1 -0
  110. package/dist/useCases/consumption/attributes/{SucceedRepositoryAttribute.d.ts → SucceedOwnIdentityAttribute.d.ts} +6 -6
  111. package/dist/useCases/consumption/attributes/SucceedOwnIdentityAttribute.d.ts.map +1 -0
  112. package/dist/useCases/consumption/attributes/{SucceedRepositoryAttribute.js → SucceedOwnIdentityAttribute.js} +13 -14
  113. package/dist/useCases/consumption/attributes/SucceedOwnIdentityAttribute.js.map +1 -0
  114. package/dist/useCases/consumption/attributes/SucceedRelationshipAttributeAndNotifyPeer.d.ts.map +1 -1
  115. package/dist/useCases/consumption/attributes/SucceedRelationshipAttributeAndNotifyPeer.js +13 -16
  116. package/dist/useCases/consumption/attributes/SucceedRelationshipAttributeAndNotifyPeer.js.map +1 -1
  117. package/dist/useCases/consumption/attributes/index.d.ts +12 -14
  118. package/dist/useCases/consumption/attributes/index.d.ts.map +1 -1
  119. package/dist/useCases/consumption/attributes/index.js +12 -14
  120. package/dist/useCases/consumption/attributes/index.js.map +1 -1
  121. package/dist/useCases/transport/relationships/GetAttributesForRelationship.d.ts.map +1 -1
  122. package/dist/useCases/transport/relationships/GetAttributesForRelationship.js +1 -8
  123. package/dist/useCases/transport/relationships/GetAttributesForRelationship.js.map +1 -1
  124. package/package.json +7 -7
  125. package/dist/events/consumption/OwnSharedAttributeDeletedByOwnerEvent.d.ts +0 -7
  126. package/dist/events/consumption/OwnSharedAttributeDeletedByOwnerEvent.d.ts.map +0 -1
  127. package/dist/events/consumption/OwnSharedAttributeDeletedByOwnerEvent.js +0 -12
  128. package/dist/events/consumption/OwnSharedAttributeDeletedByOwnerEvent.js.map +0 -1
  129. package/dist/events/consumption/OwnSharedAttributeSucceededEvent.d.ts +0 -7
  130. package/dist/events/consumption/OwnSharedAttributeSucceededEvent.d.ts.map +0 -1
  131. package/dist/events/consumption/OwnSharedAttributeSucceededEvent.js +0 -12
  132. package/dist/events/consumption/OwnSharedAttributeSucceededEvent.js.map +0 -1
  133. package/dist/events/consumption/PeerSharedAttributeDeletedByPeerEvent.d.ts +0 -7
  134. package/dist/events/consumption/PeerSharedAttributeDeletedByPeerEvent.d.ts.map +0 -1
  135. package/dist/events/consumption/PeerSharedAttributeDeletedByPeerEvent.js +0 -12
  136. package/dist/events/consumption/PeerSharedAttributeDeletedByPeerEvent.js.map +0 -1
  137. package/dist/events/consumption/PeerSharedAttributeSucceededEvent.d.ts +0 -7
  138. package/dist/events/consumption/PeerSharedAttributeSucceededEvent.d.ts.map +0 -1
  139. package/dist/events/consumption/PeerSharedAttributeSucceededEvent.js +0 -12
  140. package/dist/events/consumption/PeerSharedAttributeSucceededEvent.js.map +0 -1
  141. package/dist/events/consumption/RepositoryAttributeSucceededEvent.d.ts +0 -7
  142. package/dist/events/consumption/RepositoryAttributeSucceededEvent.d.ts.map +0 -1
  143. package/dist/events/consumption/RepositoryAttributeSucceededEvent.js +0 -12
  144. package/dist/events/consumption/RepositoryAttributeSucceededEvent.js.map +0 -1
  145. package/dist/events/consumption/SuccessionEventData.d.ts +0 -6
  146. package/dist/events/consumption/SuccessionEventData.d.ts.map +0 -1
  147. package/dist/events/consumption/SuccessionEventData.js +0 -3
  148. package/dist/events/consumption/SuccessionEventData.js.map +0 -1
  149. package/dist/events/consumption/ThirdPartyOwnedRelationshipAttributeSucceededEvent.d.ts +0 -7
  150. package/dist/events/consumption/ThirdPartyOwnedRelationshipAttributeSucceededEvent.d.ts.map +0 -1
  151. package/dist/events/consumption/ThirdPartyOwnedRelationshipAttributeSucceededEvent.js +0 -12
  152. package/dist/events/consumption/ThirdPartyOwnedRelationshipAttributeSucceededEvent.js.map +0 -1
  153. package/dist/events/consumption/ThirdPartyRelationshipAttributeDeletedByPeerEvent.d.ts +0 -7
  154. package/dist/events/consumption/ThirdPartyRelationshipAttributeDeletedByPeerEvent.d.ts.map +0 -1
  155. package/dist/events/consumption/ThirdPartyRelationshipAttributeDeletedByPeerEvent.js +0 -12
  156. package/dist/events/consumption/ThirdPartyRelationshipAttributeDeletedByPeerEvent.js.map +0 -1
  157. package/dist/events/consumption/ThirdPartyRelationshipAttributeSucceededEvent.d.ts +0 -7
  158. package/dist/events/consumption/ThirdPartyRelationshipAttributeSucceededEvent.d.ts.map +0 -1
  159. package/dist/events/consumption/ThirdPartyRelationshipAttributeSucceededEvent.js +0 -12
  160. package/dist/events/consumption/ThirdPartyRelationshipAttributeSucceededEvent.js.map +0 -1
  161. package/dist/useCases/consumption/attributes/CanCreateRepositoryAttribute.d.ts +0 -37
  162. package/dist/useCases/consumption/attributes/CanCreateRepositoryAttribute.d.ts.map +0 -1
  163. package/dist/useCases/consumption/attributes/CanCreateRepositoryAttribute.js.map +0 -1
  164. package/dist/useCases/consumption/attributes/ChangeDefaultRepositoryAttribute.d.ts.map +0 -1
  165. package/dist/useCases/consumption/attributes/ChangeDefaultRepositoryAttribute.js.map +0 -1
  166. package/dist/useCases/consumption/attributes/CreateRepositoryAttribute.d.ts +0 -30
  167. package/dist/useCases/consumption/attributes/CreateRepositoryAttribute.d.ts.map +0 -1
  168. package/dist/useCases/consumption/attributes/CreateRepositoryAttribute.js.map +0 -1
  169. package/dist/useCases/consumption/attributes/DeleteOwnSharedAttributeAndNotifyPeer.d.ts +0 -23
  170. package/dist/useCases/consumption/attributes/DeleteOwnSharedAttributeAndNotifyPeer.d.ts.map +0 -1
  171. package/dist/useCases/consumption/attributes/DeleteOwnSharedAttributeAndNotifyPeer.js +0 -89
  172. package/dist/useCases/consumption/attributes/DeleteOwnSharedAttributeAndNotifyPeer.js.map +0 -1
  173. package/dist/useCases/consumption/attributes/DeletePeerSharedAttributeAndNotifyOwner.d.ts +0 -23
  174. package/dist/useCases/consumption/attributes/DeletePeerSharedAttributeAndNotifyOwner.d.ts.map +0 -1
  175. package/dist/useCases/consumption/attributes/DeletePeerSharedAttributeAndNotifyOwner.js +0 -90
  176. package/dist/useCases/consumption/attributes/DeletePeerSharedAttributeAndNotifyOwner.js.map +0 -1
  177. package/dist/useCases/consumption/attributes/DeleteRepositoryAttribute.d.ts +0 -18
  178. package/dist/useCases/consumption/attributes/DeleteRepositoryAttribute.d.ts.map +0 -1
  179. package/dist/useCases/consumption/attributes/DeleteRepositoryAttribute.js +0 -65
  180. package/dist/useCases/consumption/attributes/DeleteRepositoryAttribute.js.map +0 -1
  181. package/dist/useCases/consumption/attributes/DeleteThirdPartyRelationshipAttributeAndNotifyPeer.d.ts +0 -23
  182. package/dist/useCases/consumption/attributes/DeleteThirdPartyRelationshipAttributeAndNotifyPeer.d.ts.map +0 -1
  183. package/dist/useCases/consumption/attributes/DeleteThirdPartyRelationshipAttributeAndNotifyPeer.js +0 -88
  184. package/dist/useCases/consumption/attributes/DeleteThirdPartyRelationshipAttributeAndNotifyPeer.js.map +0 -1
  185. package/dist/useCases/consumption/attributes/GetOwnSharedAttributes.d.ts +0 -43
  186. package/dist/useCases/consumption/attributes/GetOwnSharedAttributes.d.ts.map +0 -1
  187. package/dist/useCases/consumption/attributes/GetOwnSharedAttributes.js.map +0 -1
  188. package/dist/useCases/consumption/attributes/GetPeerSharedAttributes.d.ts.map +0 -1
  189. package/dist/useCases/consumption/attributes/GetPeerSharedAttributes.js.map +0 -1
  190. package/dist/useCases/consumption/attributes/GetRepositoryAttributes.d.ts.map +0 -1
  191. package/dist/useCases/consumption/attributes/GetRepositoryAttributes.js.map +0 -1
  192. package/dist/useCases/consumption/attributes/GetSharedVersionsOfAttribute.d.ts +0 -24
  193. package/dist/useCases/consumption/attributes/GetSharedVersionsOfAttribute.d.ts.map +0 -1
  194. package/dist/useCases/consumption/attributes/GetSharedVersionsOfAttribute.js.map +0 -1
  195. package/dist/useCases/consumption/attributes/NotifyPeerAboutRepositoryAttributeSuccession.d.ts.map +0 -1
  196. package/dist/useCases/consumption/attributes/NotifyPeerAboutRepositoryAttributeSuccession.js +0 -105
  197. package/dist/useCases/consumption/attributes/NotifyPeerAboutRepositoryAttributeSuccession.js.map +0 -1
  198. package/dist/useCases/consumption/attributes/ShareRepositoryAttribute.d.ts.map +0 -1
  199. package/dist/useCases/consumption/attributes/ShareRepositoryAttribute.js.map +0 -1
  200. package/dist/useCases/consumption/attributes/SucceedRepositoryAttribute.d.ts.map +0 -1
  201. package/dist/useCases/consumption/attributes/SucceedRepositoryAttribute.js.map +0 -1
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RepositoryAttributeSucceededEvent = void 0;
4
- const DataEvent_1 = require("../DataEvent");
5
- class RepositoryAttributeSucceededEvent extends DataEvent_1.DataEvent {
6
- static { this.namespace = "consumption.repositoryAttributeSucceeded"; }
7
- constructor(eventTargetAddress, data) {
8
- super(RepositoryAttributeSucceededEvent.namespace, eventTargetAddress, data);
9
- }
10
- }
11
- exports.RepositoryAttributeSucceededEvent = RepositoryAttributeSucceededEvent;
12
- //# sourceMappingURL=RepositoryAttributeSucceededEvent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RepositoryAttributeSucceededEvent.js","sourceRoot":"","sources":["../../../src/events/consumption/RepositoryAttributeSucceededEvent.ts"],"names":[],"mappings":";;;AAAA,4CAAyC;AAGzC,MAAa,iCAAkC,SAAQ,qBAA8B;aAC1D,cAAS,GAAG,0CAA0C,CAAC;IAE9E,YAAmB,kBAA0B,EAAE,IAAyB;QACpE,KAAK,CAAC,iCAAiC,CAAC,SAAS,EAAE,kBAAkB,EAAE,IAAI,CAAC,CAAC;IACjF,CAAC;;AALL,8EAMC"}
@@ -1,6 +0,0 @@
1
- import { LocalAttributeDTO } from "@nmshd/runtime-types";
2
- export interface SuccessionEventData {
3
- predecessor: LocalAttributeDTO;
4
- successor: LocalAttributeDTO;
5
- }
6
- //# sourceMappingURL=SuccessionEventData.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SuccessionEventData.d.ts","sourceRoot":"","sources":["../../../src/events/consumption/SuccessionEventData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,MAAM,WAAW,mBAAmB;IAChC,WAAW,EAAE,iBAAiB,CAAC;IAC/B,SAAS,EAAE,iBAAiB,CAAC;CAChC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=SuccessionEventData.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SuccessionEventData.js","sourceRoot":"","sources":["../../../src/events/consumption/SuccessionEventData.ts"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
1
- import { DataEvent } from "../DataEvent";
2
- import { SuccessionEventData } from "./SuccessionEventData";
3
- export declare class ThirdPartyOwnedRelationshipAttributeSucceededEvent extends DataEvent<SuccessionEventData> {
4
- static readonly namespace = "consumption.thirdPartyOwnedRelationshipAttributeSucceeded";
5
- constructor(eventTargetAddress: string, data: SuccessionEventData);
6
- }
7
- //# sourceMappingURL=ThirdPartyOwnedRelationshipAttributeSucceededEvent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ThirdPartyOwnedRelationshipAttributeSucceededEvent.d.ts","sourceRoot":"","sources":["../../../src/events/consumption/ThirdPartyOwnedRelationshipAttributeSucceededEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,qBAAa,kDAAmD,SAAQ,SAAS,CAAC,mBAAmB,CAAC;IAClG,gBAAuB,SAAS,+DAA+D;gBAE5E,kBAAkB,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB;CAG3E"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ThirdPartyOwnedRelationshipAttributeSucceededEvent = void 0;
4
- const DataEvent_1 = require("../DataEvent");
5
- class ThirdPartyOwnedRelationshipAttributeSucceededEvent extends DataEvent_1.DataEvent {
6
- static { this.namespace = "consumption.thirdPartyOwnedRelationshipAttributeSucceeded"; }
7
- constructor(eventTargetAddress, data) {
8
- super(ThirdPartyOwnedRelationshipAttributeSucceededEvent.namespace, eventTargetAddress, data);
9
- }
10
- }
11
- exports.ThirdPartyOwnedRelationshipAttributeSucceededEvent = ThirdPartyOwnedRelationshipAttributeSucceededEvent;
12
- //# sourceMappingURL=ThirdPartyOwnedRelationshipAttributeSucceededEvent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ThirdPartyOwnedRelationshipAttributeSucceededEvent.js","sourceRoot":"","sources":["../../../src/events/consumption/ThirdPartyOwnedRelationshipAttributeSucceededEvent.ts"],"names":[],"mappings":";;;AAAA,4CAAyC;AAGzC,MAAa,kDAAmD,SAAQ,qBAA8B;aAC3E,cAAS,GAAG,2DAA2D,CAAC;IAE/F,YAAmB,kBAA0B,EAAE,IAAyB;QACpE,KAAK,CAAC,kDAAkD,CAAC,SAAS,EAAE,kBAAkB,EAAE,IAAI,CAAC,CAAC;IAClG,CAAC;;AALL,gHAMC"}
@@ -1,7 +0,0 @@
1
- import { LocalAttributeDTO } from "@nmshd/runtime-types";
2
- import { DataEvent } from "../DataEvent";
3
- export declare class ThirdPartyRelationshipAttributeDeletedByPeerEvent extends DataEvent<LocalAttributeDTO> {
4
- static readonly namespace = "consumption.thirdPartyRelationshipAttributeDeletedByPeer";
5
- constructor(eventTargetAddress: string, data: LocalAttributeDTO);
6
- }
7
- //# sourceMappingURL=ThirdPartyRelationshipAttributeDeletedByPeerEvent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ThirdPartyRelationshipAttributeDeletedByPeerEvent.d.ts","sourceRoot":"","sources":["../../../src/events/consumption/ThirdPartyRelationshipAttributeDeletedByPeerEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,qBAAa,iDAAkD,SAAQ,SAAS,CAAC,iBAAiB,CAAC;IAC/F,gBAAuB,SAAS,8DAA8D;gBAE3E,kBAAkB,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB;CAGzE"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ThirdPartyRelationshipAttributeDeletedByPeerEvent = void 0;
4
- const DataEvent_1 = require("../DataEvent");
5
- class ThirdPartyRelationshipAttributeDeletedByPeerEvent extends DataEvent_1.DataEvent {
6
- static { this.namespace = "consumption.thirdPartyRelationshipAttributeDeletedByPeer"; }
7
- constructor(eventTargetAddress, data) {
8
- super(ThirdPartyRelationshipAttributeDeletedByPeerEvent.namespace, eventTargetAddress, data);
9
- }
10
- }
11
- exports.ThirdPartyRelationshipAttributeDeletedByPeerEvent = ThirdPartyRelationshipAttributeDeletedByPeerEvent;
12
- //# sourceMappingURL=ThirdPartyRelationshipAttributeDeletedByPeerEvent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ThirdPartyRelationshipAttributeDeletedByPeerEvent.js","sourceRoot":"","sources":["../../../src/events/consumption/ThirdPartyRelationshipAttributeDeletedByPeerEvent.ts"],"names":[],"mappings":";;;AACA,4CAAyC;AAEzC,MAAa,iDAAkD,SAAQ,qBAA4B;aACxE,cAAS,GAAG,0DAA0D,CAAC;IAE9F,YAAmB,kBAA0B,EAAE,IAAuB;QAClE,KAAK,CAAC,iDAAiD,CAAC,SAAS,EAAE,kBAAkB,EAAE,IAAI,CAAC,CAAC;IACjG,CAAC;;AALL,8GAMC"}
@@ -1,7 +0,0 @@
1
- import { DataEvent } from "../DataEvent";
2
- import { SuccessionEventData } from "./SuccessionEventData";
3
- export declare class ThirdPartyRelationshipAttributeSucceededEvent extends DataEvent<SuccessionEventData> {
4
- static readonly namespace = "consumption.thirdPartyRelationshipAttributeSucceeded";
5
- constructor(eventTargetAddress: string, data: SuccessionEventData);
6
- }
7
- //# sourceMappingURL=ThirdPartyRelationshipAttributeSucceededEvent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ThirdPartyRelationshipAttributeSucceededEvent.d.ts","sourceRoot":"","sources":["../../../src/events/consumption/ThirdPartyRelationshipAttributeSucceededEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,qBAAa,6CAA8C,SAAQ,SAAS,CAAC,mBAAmB,CAAC;IAC7F,gBAAuB,SAAS,0DAA0D;gBAEvE,kBAAkB,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB;CAG3E"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ThirdPartyRelationshipAttributeSucceededEvent = void 0;
4
- const DataEvent_1 = require("../DataEvent");
5
- class ThirdPartyRelationshipAttributeSucceededEvent extends DataEvent_1.DataEvent {
6
- static { this.namespace = "consumption.thirdPartyRelationshipAttributeSucceeded"; }
7
- constructor(eventTargetAddress, data) {
8
- super(ThirdPartyRelationshipAttributeSucceededEvent.namespace, eventTargetAddress, data);
9
- }
10
- }
11
- exports.ThirdPartyRelationshipAttributeSucceededEvent = ThirdPartyRelationshipAttributeSucceededEvent;
12
- //# sourceMappingURL=ThirdPartyRelationshipAttributeSucceededEvent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ThirdPartyRelationshipAttributeSucceededEvent.js","sourceRoot":"","sources":["../../../src/events/consumption/ThirdPartyRelationshipAttributeSucceededEvent.ts"],"names":[],"mappings":";;;AAAA,4CAAyC;AAGzC,MAAa,6CAA8C,SAAQ,qBAA8B;aACtE,cAAS,GAAG,sDAAsD,CAAC;IAE1F,YAAmB,kBAA0B,EAAE,IAAyB;QACpE,KAAK,CAAC,6CAA6C,CAAC,SAAS,EAAE,kBAAkB,EAAE,IAAI,CAAC,CAAC;IAC7F,CAAC;;AALL,sGAMC"}
@@ -1,37 +0,0 @@
1
- import { Result } from "@js-soft/ts-utils";
2
- import { AttributesController } from "@nmshd/consumption";
3
- import { AttributeValues } from "@nmshd/content";
4
- import { AccountController } from "@nmshd/transport";
5
- import { SchemaRepository, UseCase, ValidationResult } from "../../common";
6
- import { IValidator } from "../../common/validation/IValidator";
7
- interface AbstractCanCreateRepositoryAttributeRequest<T> {
8
- content: {
9
- value: T;
10
- tags?: string[];
11
- };
12
- }
13
- export interface CanCreateRepositoryAttributeRequest extends AbstractCanCreateRepositoryAttributeRequest<AttributeValues.Identity.Json> {
14
- }
15
- export interface SchemaValidatableCanCreateRepositoryAttributeRequest extends AbstractCanCreateRepositoryAttributeRequest<unknown> {
16
- }
17
- declare class Validator implements IValidator<CanCreateRepositoryAttributeRequest> {
18
- private readonly schemaRepository;
19
- constructor(schemaRepository: SchemaRepository);
20
- validate(request: CanCreateRepositoryAttributeRequest): ValidationResult;
21
- }
22
- export type CanCreateRepositoryAttributeResponse = {
23
- isSuccess: true;
24
- } | {
25
- isSuccess: false;
26
- code: string;
27
- message: string;
28
- };
29
- export declare class CanCreateRepositoryAttributeUseCase extends UseCase<CanCreateRepositoryAttributeRequest, CanCreateRepositoryAttributeResponse> {
30
- private readonly attributesController;
31
- private readonly accountController;
32
- private readonly schemaRepository;
33
- constructor(attributesController: AttributesController, accountController: AccountController, schemaRepository: SchemaRepository, validator: Validator);
34
- protected executeInternal(request: CanCreateRepositoryAttributeRequest): Promise<Result<CanCreateRepositoryAttributeResponse>>;
35
- }
36
- export {};
37
- //# sourceMappingURL=CanCreateRepositoryAttribute.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CanCreateRepositoryAttribute.d.ts","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/CanCreateRepositoryAttribute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAiB,gBAAgB,EAAmB,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC3G,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAGhE,UAAU,2CAA2C,CAAC,CAAC;IACnD,OAAO,EAAE;QACL,KAAK,EAAE,CAAC,CAAC;QACT,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;KACnB,CAAC;CACL;AAED,MAAM,WAAW,mCAAoC,SAAQ,2CAA2C,CAAC,eAAe,CAAC,QAAQ,CAAC,IAAI,CAAC;CAAG;AAE1I,MAAM,WAAW,oDAAqD,SAAQ,2CAA2C,CAAC,OAAO,CAAC;CAAG;AAErI,cAAM,SAAU,YAAW,UAAU,CAAC,mCAAmC,CAAC;IAC3C,OAAO,CAAC,QAAQ,CAAC,gBAAgB;gBAAhB,gBAAgB,EAAE,gBAAgB;IAEvE,QAAQ,CAAC,OAAO,EAAE,mCAAmC,GAAG,gBAAgB;CAIlF;AAED,MAAM,MAAM,oCAAoC,GAC1C;IAAE,SAAS,EAAE,IAAI,CAAA;CAAE,GACnB;IACI,SAAS,EAAE,KAAK,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC;AAER,qBAAa,mCAAoC,SAAQ,OAAO,CAAC,mCAAmC,EAAE,oCAAoC,CAAC;IAE3H,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IACrC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,gBAAgB;gBAFhB,oBAAoB,EAAE,oBAAoB,EAC1C,iBAAiB,EAAE,iBAAiB,EACpC,gBAAgB,EAAE,gBAAgB,EACnD,SAAS,EAAE,SAAS;cAKhB,eAAe,CAAC,OAAO,EAAE,mCAAmC,GAAG,OAAO,CAAC,MAAM,CAAC,oCAAoC,CAAC,CAAC;CAqBvI"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"CanCreateRepositoryAttribute.js","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/CanCreateRepositoryAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAA2C;AAC3C,oDAA0D;AAE1D,gDAAqD;AACrD,0DAA+C;AAC/C,yCAA2G;AAE3G,uFAAoF;AAapF,IAAM,SAAS,GAAf,MAAM,SAAS;IACX,YAA4C,gBAAkC;QAAlC,qBAAgB,GAAhB,gBAAgB,CAAkB;IAAG,CAAC;IAE3E,QAAQ,CAAC,OAA4C;QACxD,MAAM,sBAAsB,GAAG,IAAI,wBAAe,CAAC,IAAI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AAa,CAAC,UAAU,CAAC,wCAAwC,CAAC,4BAA4B,CAAC,EAAE,CAAC,CAAC;YACjH,OAAO,iBAAM,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;QACrF,CAAC;QAED,IAAI,OAAO,CAAC,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC1D,MAAM,mBAAmB,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,mBAAmB,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;YACtI,IAAI,mBAAmB,CAAC,OAAO,EAAE;gBAAE,OAAO,iBAAM,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,mBAAmB,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,mBAAmB,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;QAChK,CAAC;QAED,OAAO,iBAAM,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC1C,CAAC;CACJ,CAAA;AA/BY,kFAAmC;8CAAnC,mCAAmC;IAEvC,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCAHwC,kCAAoB;QACvB,6BAAiB;QAClB,yBAAgB;QACxC,SAAS;GALvB,mCAAmC,CA+B/C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChangeDefaultRepositoryAttribute.d.ts","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/ChangeDefaultRepositoryAttribute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAkB,MAAM,oBAAoB,CAAC;AAE1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAE,iBAAiB,EAAiB,gBAAgB,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAG5G,MAAM,WAAW,uCAAuC;IACpD,WAAW,EAAE,iBAAiB,CAAC;CAClC;AAED,cAAM,SAAU,SAAQ,eAAe,CAAC,uCAAuC,CAAC;gBACjD,gBAAgB,EAAE,gBAAgB;CAGhE;AAED,qBAAa,uCAAwC,SAAQ,OAAO,CAAC,uCAAuC,EAAE,iBAAiB,CAAC;IAEhH,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IACrC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBADjB,oBAAoB,EAAE,oBAAoB,EAC1C,iBAAiB,EAAE,iBAAiB,EACrD,SAAS,EAAE,SAAS;cAKhB,eAAe,CAAC,OAAO,EAAE,uCAAuC,GAAG,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;CAsBxH"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChangeDefaultRepositoryAttribute.js","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/ChangeDefaultRepositoryAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAA2C;AAC3C,oDAA0E;AAC1E,kDAA2C;AAE3C,gDAAqD;AACrD,0DAA+C;AAC/C,yCAA4G;AAC5G,uDAAoD;AAMpD,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,wBAAwD;IAC5E,YAA2B,gBAAkC;QACzD,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,yCAAyC,CAAC,CAAC,CAAC;IACjF,CAAC;CACJ,CAAA;AAJK,SAAS;IACS,WAAA,uBAAM,CAAA;qCA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,CAAC,+BAA+B,CAAC,mBAAmB,EAAE,KAAK,CAAC,CAAC;QAE/H,MAAM,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,CAAC;QAE9C,OAAO,iBAAM,CAAC,EAAE,CAAC,iCAAe,CAAC,cAAc,CAAC,0BAA0B,CAAC,CAAC,CAAC;IACjF,CAAC;CACJ,CAAA;AA/BY,0FAAuC;kDAAvC,uCAAuC;IAE3C,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCAFwC,kCAAoB;QACvB,6BAAiB;QAC1C,SAAS;GAJvB,uCAAuC,CA+BnD"}
@@ -1,30 +0,0 @@
1
- import { Result } from "@js-soft/ts-utils";
2
- import { AttributesController } from "@nmshd/consumption";
3
- import { AttributeValues } from "@nmshd/content";
4
- import { LocalAttributeDTO } from "@nmshd/runtime-types";
5
- import { AccountController } from "@nmshd/transport";
6
- import { SchemaRepository, UseCase, ValidationResult } from "../../common";
7
- import { IValidator } from "../../common/validation/IValidator";
8
- interface AbstractCreateRepositoryAttributeRequest<T> {
9
- content: {
10
- value: T;
11
- tags?: string[];
12
- };
13
- }
14
- export interface CreateRepositoryAttributeRequest extends AbstractCreateRepositoryAttributeRequest<AttributeValues.Identity.Json> {
15
- }
16
- export interface SchemaValidatableCreateRepositoryAttributeRequest extends AbstractCreateRepositoryAttributeRequest<unknown> {
17
- }
18
- declare class Validator implements IValidator<CreateRepositoryAttributeRequest> {
19
- private readonly schemaRepository;
20
- constructor(schemaRepository: SchemaRepository);
21
- validate(request: CreateRepositoryAttributeRequest): Promise<ValidationResult> | ValidationResult;
22
- }
23
- export declare class CreateRepositoryAttributeUseCase extends UseCase<CreateRepositoryAttributeRequest, LocalAttributeDTO> {
24
- private readonly attributesController;
25
- private readonly accountController;
26
- constructor(attributesController: AttributesController, accountController: AccountController, validator: Validator);
27
- protected executeInternal(request: CreateRepositoryAttributeRequest): Promise<Result<LocalAttributeDTO>>;
28
- }
29
- export {};
30
- //# sourceMappingURL=CreateRepositoryAttribute.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateRepositoryAttribute.d.ts","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/CreateRepositoryAttribute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAmC,MAAM,oBAAoB,CAAC;AAC3F,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAiB,gBAAgB,EAAmB,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC3G,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAIhE,UAAU,wCAAwC,CAAC,CAAC;IAChD,OAAO,EAAE;QACL,KAAK,EAAE,CAAC,CAAC;QACT,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;KACnB,CAAC;CACL;AAED,MAAM,WAAW,gCAAiC,SAAQ,wCAAwC,CAAC,eAAe,CAAC,QAAQ,CAAC,IAAI,CAAC;CAAG;AAEpI,MAAM,WAAW,iDAAkD,SAAQ,wCAAwC,CAAC,OAAO,CAAC;CAAG;AAE/H,cAAM,SAAU,YAAW,UAAU,CAAC,gCAAgC,CAAC;IACxC,OAAO,CAAC,QAAQ,CAAC,gBAAgB;gBAAhB,gBAAgB,EAAE,gBAAgB;IAEvE,QAAQ,CAAC,OAAO,EAAE,gCAAgC,GAAG,OAAO,CAAC,gBAAgB,CAAC,GAAG,gBAAgB;CAQ3G;AAED,qBAAa,gCAAiC,SAAQ,OAAO,CAAC,gCAAgC,EAAE,iBAAiB,CAAC;IAElG,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IACrC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBADjB,oBAAoB,EAAE,oBAAoB,EAC1C,iBAAiB,EAAE,iBAAiB,EACrD,SAAS,EAAE,SAAS;cAKhB,eAAe,CAAC,OAAO,EAAE,gCAAgC,GAAG,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;CAmBjH"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateRepositoryAttribute.js","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/CreateRepositoryAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAA2C;AAC3C,oDAA2F;AAG3F,gDAAqD;AACrD,0DAA+C;AAC/C,yCAA2G;AAE3G,uDAAoD;AACpD,uFAAoF;AAapF,IAAM,SAAS,GAAf,MAAM,SAAS;IACX,YAA4C,gBAAkC;QAAlC,qBAAgB,GAAhB,gBAAgB,CAAkB;IAAG,CAAC;IAE3E,QAAQ,CAAC,OAAyC;QACrD,MAAM,sBAAsB,GAAG,IAAI,wBAAe,CAAC,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,kCAAkC,CAAC,CAAC,CAAC;QACxH,MAAM,uBAAuB,GAAG,sBAAsB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACzE,IAAI,uBAAuB,CAAC,SAAS,EAAE;YAAE,OAAO,uBAAuB,CAAC;QAExE,MAAM,+BAA+B,GAAG,IAAI,iEAA+B,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACnG,OAAO,+BAA+B,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC3E,CAAC;CACJ,CAAA;AAXK,SAAS;IACS,WAAA,uBAAM,CAAA;qCAAoC,yBAAgB;GAD5E,SAAS,CAWd;AAED,IAAa,gCAAgC,GAA7C,MAAa,gCAAiC,SAAQ,gBAA4D;IAC9G,YAC6B,oBAA0C,EAC1C,iBAAoC,EACrD,SAAoB;QAE5B,KAAK,CAAC,SAAS,CAAC,CAAC;QAJQ,yBAAoB,GAApB,oBAAoB,CAAsB;QAC1C,sBAAiB,GAAjB,iBAAiB,CAAmB;IAIjE,CAAC;IAES,KAAK,CAAC,eAAe,CAAC,OAAyC;QACrE,MAAM,4BAA4B,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,mCAAmC,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAChI,IAAI,4BAA4B,EAAE,CAAC;YAC/B,OAAO,iBAAM,CAAC,IAAI,CAAC,sBAAa,CAAC,UAAU,CAAC,wCAAwC,CAAC,4BAA4B,CAAC,EAAE,CAAC,CAAC,CAAC;QAC3H,CAAC;QAED,MAAM,MAAM,GAAG,6CAA+B,CAAC,IAAI,CAAC;YAChD,OAAO,EAAE;gBACL,OAAO,EAAE,mBAAmB;gBAC5B,KAAK,EAAE,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE;gBACzD,GAAG,OAAO,CAAC,OAAO;aACrB;SACJ,CAAC,CAAC;QACH,MAAM,qBAAqB,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,yBAAyB,CAAC,MAAM,CAAC,CAAC;QAEhG,MAAM,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,CAAC;QAE9C,OAAO,iBAAM,CAAC,EAAE,CAAC,iCAAe,CAAC,cAAc,CAAC,qBAAqB,CAAC,CAAC,CAAC;IAC5E,CAAC;CACJ,CAAA;AA5BY,4EAAgC;2CAAhC,gCAAgC;IAEpC,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCAFwC,kCAAoB;QACvB,6BAAiB;QAC1C,SAAS;GAJvB,gCAAgC,CA4B5C"}
@@ -1,23 +0,0 @@
1
- import { Result } from "@js-soft/ts-utils";
2
- import { AttributesController } from "@nmshd/consumption";
3
- import { AccountController, MessageController, RelationshipsController } from "@nmshd/transport";
4
- import { AttributeIdString, NotificationIdString, SchemaRepository, SchemaValidator, UseCase } from "../../common";
5
- export interface DeleteOwnSharedAttributeAndNotifyPeerRequest {
6
- attributeId: AttributeIdString;
7
- }
8
- export interface DeleteOwnSharedAttributeAndNotifyPeerResponse {
9
- notificationId?: NotificationIdString;
10
- }
11
- declare class Validator extends SchemaValidator<DeleteOwnSharedAttributeAndNotifyPeerRequest> {
12
- constructor(schemaRepository: SchemaRepository);
13
- }
14
- export declare class DeleteOwnSharedAttributeAndNotifyPeerUseCase extends UseCase<DeleteOwnSharedAttributeAndNotifyPeerRequest, DeleteOwnSharedAttributeAndNotifyPeerResponse> {
15
- private readonly attributesController;
16
- private readonly accountController;
17
- private readonly messageController;
18
- private readonly relationshipsController;
19
- constructor(attributesController: AttributesController, accountController: AccountController, messageController: MessageController, relationshipsController: RelationshipsController, validator: Validator);
20
- protected executeInternal(request: DeleteOwnSharedAttributeAndNotifyPeerRequest): Promise<Result<DeleteOwnSharedAttributeAndNotifyPeerResponse>>;
21
- }
22
- export {};
23
- //# sourceMappingURL=DeleteOwnSharedAttributeAndNotifyPeer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeleteOwnSharedAttributeAndNotifyPeer.d.ts","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/DeleteOwnSharedAttributeAndNotifyPeer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAkC,MAAM,oBAAoB,CAAC;AAG1F,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,uBAAuB,EAAsB,MAAM,kBAAkB,CAAC;AAErH,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAiB,gBAAgB,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAElI,MAAM,WAAW,4CAA4C;IACzD,WAAW,EAAE,iBAAiB,CAAC;CAClC;AAED,MAAM,WAAW,6CAA6C;IAC1D,cAAc,CAAC,EAAE,oBAAoB,CAAC;CACzC;AAED,cAAM,SAAU,SAAQ,eAAe,CAAC,4CAA4C,CAAC;gBACtD,gBAAgB,EAAE,gBAAgB;CAGhE;AAED,qBAAa,4CAA6C,SAAQ,OAAO,CAAC,4CAA4C,EAAE,6CAA6C,CAAC;IAEtJ,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IACrC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,uBAAuB;gBAHvB,oBAAoB,EAAE,oBAAoB,EAC1C,iBAAiB,EAAE,iBAAiB,EACpC,iBAAiB,EAAE,iBAAiB,EACpC,uBAAuB,EAAE,uBAAuB,EACjE,SAAS,EAAE,SAAS;cAKhB,eAAe,CAAC,OAAO,EAAE,4CAA4C,GAAG,OAAO,CAAC,MAAM,CAAC,6CAA6C,CAAC,CAAC;CA0CzJ"}
@@ -1,89 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.DeleteOwnSharedAttributeAndNotifyPeerUseCase = void 0;
16
- const ts_utils_1 = require("@js-soft/ts-utils");
17
- const consumption_1 = require("@nmshd/consumption");
18
- const content_1 = require("@nmshd/content");
19
- const core_types_1 = require("@nmshd/core-types");
20
- const transport_1 = require("@nmshd/transport");
21
- const typescript_ioc_1 = require("@nmshd/typescript-ioc");
22
- const common_1 = require("../../common");
23
- let Validator = class Validator extends common_1.SchemaValidator {
24
- constructor(schemaRepository) {
25
- super(schemaRepository.getSchema("DeleteOwnSharedAttributeAndNotifyPeerRequest"));
26
- }
27
- };
28
- Validator = __decorate([
29
- __param(0, typescript_ioc_1.Inject),
30
- __metadata("design:paramtypes", [common_1.SchemaRepository])
31
- ], Validator);
32
- let DeleteOwnSharedAttributeAndNotifyPeerUseCase = class DeleteOwnSharedAttributeAndNotifyPeerUseCase extends common_1.UseCase {
33
- constructor(attributesController, accountController, messageController, relationshipsController, validator) {
34
- super(validator);
35
- this.attributesController = attributesController;
36
- this.accountController = accountController;
37
- this.messageController = messageController;
38
- this.relationshipsController = relationshipsController;
39
- }
40
- async executeInternal(request) {
41
- const ownSharedAttributeId = core_types_1.CoreId.from(request.attributeId);
42
- const ownSharedAttribute = await this.attributesController.getLocalAttribute(ownSharedAttributeId);
43
- if (!ownSharedAttribute)
44
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.general.recordNotFound(consumption_1.LocalAttribute));
45
- if (!ownSharedAttribute.isOwnSharedAttribute(this.accountController.identity.address)) {
46
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.isNotOwnSharedAttribute(ownSharedAttributeId));
47
- }
48
- const relationshipWithStatusPending = await this.relationshipsController.getRelationshipToIdentity(ownSharedAttribute.shareInfo.peer, transport_1.RelationshipStatus.Pending);
49
- if (relationshipWithStatusPending) {
50
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.cannotDeleteSharedAttributeWhileRelationshipIsPending());
51
- }
52
- const validationResult = await this.attributesController.validateFullAttributeDeletionProcess(ownSharedAttribute);
53
- if (validationResult.isError()) {
54
- return ts_utils_1.Result.fail(validationResult.error);
55
- }
56
- await this.attributesController.executeFullAttributeDeletionProcess(ownSharedAttribute);
57
- const messageRecipientsValidationResult = await this.messageController.validateMessageRecipients([ownSharedAttribute.shareInfo.peer]);
58
- if (messageRecipientsValidationResult.isError) {
59
- return ts_utils_1.Result.ok({});
60
- }
61
- const notificationId = await consumption_1.ConsumptionIds.notification.generate();
62
- const notificationItem = content_1.OwnSharedAttributeDeletedByOwnerNotificationItem.from({ attributeId: ownSharedAttributeId });
63
- const notification = content_1.Notification.from({
64
- id: notificationId,
65
- items: [notificationItem]
66
- });
67
- await this.messageController.sendMessage({
68
- recipients: [ownSharedAttribute.shareInfo.peer],
69
- content: notification
70
- });
71
- await this.accountController.syncDatawallet();
72
- const result = { notificationId: notificationId.toString() };
73
- return ts_utils_1.Result.ok(result);
74
- }
75
- };
76
- exports.DeleteOwnSharedAttributeAndNotifyPeerUseCase = DeleteOwnSharedAttributeAndNotifyPeerUseCase;
77
- exports.DeleteOwnSharedAttributeAndNotifyPeerUseCase = DeleteOwnSharedAttributeAndNotifyPeerUseCase = __decorate([
78
- __param(0, typescript_ioc_1.Inject),
79
- __param(1, typescript_ioc_1.Inject),
80
- __param(2, typescript_ioc_1.Inject),
81
- __param(3, typescript_ioc_1.Inject),
82
- __param(4, typescript_ioc_1.Inject),
83
- __metadata("design:paramtypes", [consumption_1.AttributesController,
84
- transport_1.AccountController,
85
- transport_1.MessageController,
86
- transport_1.RelationshipsController,
87
- Validator])
88
- ], DeleteOwnSharedAttributeAndNotifyPeerUseCase);
89
- //# sourceMappingURL=DeleteOwnSharedAttributeAndNotifyPeer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeleteOwnSharedAttributeAndNotifyPeer.js","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/DeleteOwnSharedAttributeAndNotifyPeer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAA2C;AAC3C,oDAA0F;AAC1F,4CAAgG;AAChG,kDAA2C;AAC3C,gDAAqH;AACrH,0DAA+C;AAC/C,yCAAkI;AAUlI,IAAM,SAAS,GAAf,MAA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M,GAAG,EAAE,cAAc,EAAE,cAAc,CAAC,QAAQ,EAAE,EAAE,CAAC;QAC7D,OAAO,iBAAM,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IAC7B,CAAC;CACJ,CAAA;AArDY,oGAA4C;uDAA5C,4CAA4C;IAEhD,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCAJwC,kCAAoB;QACvB,6BAAiB;QACjB,6BAAiB;QACX,mCAAuB;QACtD,SAAS;GANvB,4CAA4C,CAqDxD"}
@@ -1,23 +0,0 @@
1
- import { Result } from "@js-soft/ts-utils";
2
- import { AttributesController } from "@nmshd/consumption";
3
- import { AccountController, MessageController, RelationshipsController } from "@nmshd/transport";
4
- import { AttributeIdString, NotificationIdString, SchemaRepository, SchemaValidator, UseCase } from "../../common";
5
- export interface DeletePeerSharedAttributeAndNotifyOwnerRequest {
6
- attributeId: AttributeIdString;
7
- }
8
- export interface DeletePeerSharedAttributeAndNotifyOwnerResponse {
9
- notificationId?: NotificationIdString;
10
- }
11
- declare class Validator extends SchemaValidator<DeletePeerSharedAttributeAndNotifyOwnerRequest> {
12
- constructor(schemaRepository: SchemaRepository);
13
- }
14
- export declare class DeletePeerSharedAttributeAndNotifyOwnerUseCase extends UseCase<DeletePeerSharedAttributeAndNotifyOwnerRequest, DeletePeerSharedAttributeAndNotifyOwnerResponse> {
15
- private readonly attributesController;
16
- private readonly accountController;
17
- private readonly messageController;
18
- private readonly relationshipsController;
19
- constructor(attributesController: AttributesController, accountController: AccountController, messageController: MessageController, relationshipsController: RelationshipsController, validator: Validator);
20
- protected executeInternal(request: DeletePeerSharedAttributeAndNotifyOwnerRequest): Promise<Result<DeletePeerSharedAttributeAndNotifyOwnerResponse>>;
21
- }
22
- export {};
23
- //# sourceMappingURL=DeletePeerSharedAttributeAndNotifyOwner.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeletePeerSharedAttributeAndNotifyOwner.d.ts","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/DeletePeerSharedAttributeAndNotifyOwner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAkC,MAAM,oBAAoB,CAAC;AAI1F,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAEjG,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAiB,gBAAgB,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAElI,MAAM,WAAW,8CAA8C;IAC3D,WAAW,EAAE,iBAAiB,CAAC;CAClC;AAED,MAAM,WAAW,+CAA+C;IAC5D,cAAc,CAAC,EAAE,oBAAoB,CAAC;CACzC;AAED,cAAM,SAAU,SAAQ,eAAe,CAAC,8CAA8C,CAAC;gBACxD,gBAAgB,EAAE,gBAAgB;CAGhE;AAED,qBAAa,8CAA+C,SAAQ,OAAO,CAAC,8CAA8C,EAAE,+CAA+C,CAAC;IAE5J,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IACrC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,uBAAuB;gBAHvB,oBAAoB,EAAE,oBAAoB,EAC1C,iBAAiB,EAAE,iBAAiB,EACpC,iBAAiB,EAAE,iBAAiB,EACpC,uBAAuB,EAAE,uBAAuB,EACjE,SAAS,EAAE,SAAS;cAKhB,eAAe,CAAC,OAAO,EAAE,8CAA8C,GAAG,OAAO,CAAC,MAAM,CAAC,+CAA+C,CAAC,CAAC;CA0C7J"}
@@ -1,90 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.DeletePeerSharedAttributeAndNotifyOwnerUseCase = void 0;
16
- const ts_utils_1 = require("@js-soft/ts-utils");
17
- const consumption_1 = require("@nmshd/consumption");
18
- const content_1 = require("@nmshd/content");
19
- const core_types_1 = require("@nmshd/core-types");
20
- const runtime_types_1 = require("@nmshd/runtime-types");
21
- const transport_1 = require("@nmshd/transport");
22
- const typescript_ioc_1 = require("@nmshd/typescript-ioc");
23
- const common_1 = require("../../common");
24
- let Validator = class Validator extends common_1.SchemaValidator {
25
- constructor(schemaRepository) {
26
- super(schemaRepository.getSchema("DeletePeerSharedAttributeAndNotifyOwnerRequest"));
27
- }
28
- };
29
- Validator = __decorate([
30
- __param(0, typescript_ioc_1.Inject),
31
- __metadata("design:paramtypes", [common_1.SchemaRepository])
32
- ], Validator);
33
- let DeletePeerSharedAttributeAndNotifyOwnerUseCase = class DeletePeerSharedAttributeAndNotifyOwnerUseCase extends common_1.UseCase {
34
- constructor(attributesController, accountController, messageController, relationshipsController, validator) {
35
- super(validator);
36
- this.attributesController = attributesController;
37
- this.accountController = accountController;
38
- this.messageController = messageController;
39
- this.relationshipsController = relationshipsController;
40
- }
41
- async executeInternal(request) {
42
- const peerSharedAttributeId = core_types_1.CoreId.from(request.attributeId);
43
- const peerSharedAttribute = await this.attributesController.getLocalAttribute(peerSharedAttributeId);
44
- if (!peerSharedAttribute)
45
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.general.recordNotFound(consumption_1.LocalAttribute));
46
- if (!peerSharedAttribute.isPeerSharedAttribute(peerSharedAttribute.shareInfo?.peer)) {
47
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.isNotPeerSharedAttribute(peerSharedAttributeId));
48
- }
49
- const relationshipWithStatusPending = await this.relationshipsController.getRelationshipToIdentity(peerSharedAttribute.shareInfo.peer, runtime_types_1.RelationshipStatus.Pending);
50
- if (relationshipWithStatusPending) {
51
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.cannotDeleteSharedAttributeWhileRelationshipIsPending());
52
- }
53
- const validationResult = await this.attributesController.validateFullAttributeDeletionProcess(peerSharedAttribute);
54
- if (validationResult.isError()) {
55
- return ts_utils_1.Result.fail(validationResult.error);
56
- }
57
- await this.attributesController.executeFullAttributeDeletionProcess(peerSharedAttribute);
58
- const messageRecipientsValidationResult = await this.messageController.validateMessageRecipients([peerSharedAttribute.shareInfo.peer]);
59
- if (messageRecipientsValidationResult.isError) {
60
- return ts_utils_1.Result.ok({});
61
- }
62
- const notificationId = await consumption_1.ConsumptionIds.notification.generate();
63
- const notificationItem = content_1.PeerSharedAttributeDeletedByPeerNotificationItem.from({ attributeId: peerSharedAttributeId });
64
- const notification = content_1.Notification.from({
65
- id: notificationId,
66
- items: [notificationItem]
67
- });
68
- await this.messageController.sendMessage({
69
- recipients: [peerSharedAttribute.shareInfo.peer],
70
- content: notification
71
- });
72
- await this.accountController.syncDatawallet();
73
- const result = { notificationId: notificationId.toString() };
74
- return ts_utils_1.Result.ok(result);
75
- }
76
- };
77
- exports.DeletePeerSharedAttributeAndNotifyOwnerUseCase = DeletePeerSharedAttributeAndNotifyOwnerUseCase;
78
- exports.DeletePeerSharedAttributeAndNotifyOwnerUseCase = DeletePeerSharedAttributeAndNotifyOwnerUseCase = __decorate([
79
- __param(0, typescript_ioc_1.Inject),
80
- __param(1, typescript_ioc_1.Inject),
81
- __param(2, typescript_ioc_1.Inject),
82
- __param(3, typescript_ioc_1.Inject),
83
- __param(4, typescript_ioc_1.Inject),
84
- __metadata("design:paramtypes", [consumption_1.AttributesController,
85
- transport_1.AccountController,
86
- transport_1.MessageController,
87
- transport_1.RelationshipsController,
88
- Validator])
89
- ], DeletePeerSharedAttributeAndNotifyOwnerUseCase);
90
- //# sourceMappingURL=DeletePeerSharedAttributeAndNotifyOwner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeletePeerSharedAttributeAndNotifyOwner.js","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/DeletePeerSharedAttributeAndNotifyOwner.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAA2C;AAC3C,oDAA0F;AAC1F,4CAAgG;AAChG,kDAA2C;AAC3C,wDAA0D;AAC1D,gDAAiG;AACjG,0DAA+C;AAC/C,yCAAkI;AAUlI,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,wBAA+D;IACnF,YAA2B,gBAAkC;QACzD,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,gDAAgD,CAAC,CAAC,CAAC;IACxF,CAAC;CACJ,CAAA;AAJK,SAAS;IACS,WAAA,uBAAM,CAAA;qCAAmB,yBAAgB;GAD3D,SAAS,CAId;AAED,IAAa,8CAA8C,GAA3D,MAAa,8CAA+C,SAAQ,gBAAwG;IACxK,YAC6B,oBAA0C,EAC1C,iBAAoC,EACpC,iBAAoC,EACpC,uBAAgD,EACjE,SAAoB;QAE5B,KAAK,CAAC,SAAS,CAAC,CAAC;QANQ,yBAAoB,GAApB,oBAAoB,CAAsB;QAC1C,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,4BAAuB,GAAvB,uBAAuB,CAAyB;IAI7E,CAAC;IAES,KAAK,CAAC,eAAe,CAAC,OAAuD;QACnF,MAAM,qBAAqB,GA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O,EAAE,CAAC;YAC5C,OAAO,iBAAM,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QACzB,CAAC;QAED,MAAM,cAAc,GAAG,MAAM,4BAAc,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC;QACpE,MAAM,gBAAgB,GAAG,0DAAgD,CAAC,IAAI,CAAC,EAAE,WAAW,EAAE,qBAAqB,EAAE,CAAC,CAAC;QACvH,MAAM,YAAY,GAAG,sBAAY,CAAC,IAAI,CAAC;YACnC,EAAE,EAAE,cAAc;YAClB,KAAK,EAAE,CAAC,gBAAgB,CAAC;SAC5B,CAAC,CAAC;QACH,MAAM,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC;YACrC,UAAU,EAAE,CAAC,mBAAmB,CAAC,SAAS,CAAC,IAAI,CAAC;YAChD,OAAO,EAAE,YAAY;SACxB,CAAC,CAAC;QAEH,MAAM,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,CAAC;QAE9C,MAAM,MAAM,GAAG,EAAE,cAAc,EAAE,cAAc,CAAC,QAAQ,EAAE,EAAE,CAAC;QAC7D,OAAO,iBAAM,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IAC7B,CAAC;CACJ,CAAA;AArDY,wGAA8C;yDAA9C,8CAA8C;IAElD,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCAJwC,kCAAoB;QACvB,6BAAiB;QACjB,6BAAiB;QACX,mCAAuB;QACtD,SAAS;GANvB,8CAA8C,CAqD1D"}
@@ -1,18 +0,0 @@
1
- import { Result } from "@js-soft/ts-utils";
2
- import { AttributesController } from "@nmshd/consumption";
3
- import { AccountController } from "@nmshd/transport";
4
- import { AttributeIdString, SchemaRepository, SchemaValidator, UseCase } from "../../common";
5
- export interface DeleteRepositoryAttributeRequest {
6
- attributeId: AttributeIdString;
7
- }
8
- declare class Validator extends SchemaValidator<DeleteRepositoryAttributeRequest> {
9
- constructor(schemaRepository: SchemaRepository);
10
- }
11
- export declare class DeleteRepositoryAttributeUseCase extends UseCase<DeleteRepositoryAttributeRequest, void> {
12
- private readonly attributesController;
13
- private readonly accountController;
14
- constructor(attributesController: AttributesController, accountController: AccountController, validator: Validator);
15
- protected executeInternal(request: DeleteRepositoryAttributeRequest): Promise<Result<void>>;
16
- }
17
- export {};
18
- //# sourceMappingURL=DeleteRepositoryAttribute.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeleteRepositoryAttribute.d.ts","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/DeleteRepositoryAttribute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAkB,MAAM,oBAAoB,CAAC;AAE1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAE,iBAAiB,EAAiB,gBAAgB,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5G,MAAM,WAAW,gCAAgC;IAC7C,WAAW,EAAE,iBAAiB,CAAC;CAClC;AAED,cAAM,SAAU,SAAQ,eAAe,CAAC,gCAAgC,CAAC;gBAC1C,gBAAgB,EAAE,gBAAgB;CAGhE;AAED,qBAAa,gCAAiC,SAAQ,OAAO,CAAC,gCAAgC,EAAE,IAAI,CAAC;IAErF,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IACrC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBADjB,oBAAoB,EAAE,oBAAoB,EAC1C,iBAAiB,EAAE,iBAAiB,EACrD,SAAS,EAAE,SAAS;cAKhB,eAAe,CAAC,OAAO,EAAE,gCAAgC,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;CAuBpG"}
@@ -1,65 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.DeleteRepositoryAttributeUseCase = void 0;
16
- const ts_utils_1 = require("@js-soft/ts-utils");
17
- const consumption_1 = require("@nmshd/consumption");
18
- const core_types_1 = require("@nmshd/core-types");
19
- const transport_1 = require("@nmshd/transport");
20
- const typescript_ioc_1 = require("@nmshd/typescript-ioc");
21
- const common_1 = require("../../common");
22
- let Validator = class Validator extends common_1.SchemaValidator {
23
- constructor(schemaRepository) {
24
- super(schemaRepository.getSchema("DeleteRepositoryAttributeRequest"));
25
- }
26
- };
27
- Validator = __decorate([
28
- __param(0, typescript_ioc_1.Inject),
29
- __metadata("design:paramtypes", [common_1.SchemaRepository])
30
- ], Validator);
31
- let DeleteRepositoryAttributeUseCase = class DeleteRepositoryAttributeUseCase extends common_1.UseCase {
32
- constructor(attributesController, accountController, validator) {
33
- super(validator);
34
- this.attributesController = attributesController;
35
- this.accountController = accountController;
36
- }
37
- async executeInternal(request) {
38
- const repositoryAttribute = await this.attributesController.getLocalAttribute(core_types_1.CoreId.from(request.attributeId));
39
- if (!repositoryAttribute)
40
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.general.recordNotFound(consumption_1.LocalAttribute));
41
- if (!repositoryAttribute.isRepositoryAttribute(this.accountController.identity.address)) {
42
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.isNotRepositoryAttribute(request.attributeId));
43
- }
44
- if (repositoryAttribute.parentId) {
45
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.cannotSeparatelyDeleteChildOfComplexAttribute(request.attributeId));
46
- }
47
- const validationResult = await this.attributesController.validateFullAttributeDeletionProcess(repositoryAttribute);
48
- if (validationResult.isError()) {
49
- return ts_utils_1.Result.fail(validationResult.error);
50
- }
51
- await this.attributesController.executeFullAttributeDeletionProcess(repositoryAttribute);
52
- await this.accountController.syncDatawallet();
53
- return ts_utils_1.Result.ok(undefined);
54
- }
55
- };
56
- exports.DeleteRepositoryAttributeUseCase = DeleteRepositoryAttributeUseCase;
57
- exports.DeleteRepositoryAttributeUseCase = DeleteRepositoryAttributeUseCase = __decorate([
58
- __param(0, typescript_ioc_1.Inject),
59
- __param(1, typescript_ioc_1.Inject),
60
- __param(2, typescript_ioc_1.Inject),
61
- __metadata("design:paramtypes", [consumption_1.AttributesController,
62
- transport_1.AccountController,
63
- Validator])
64
- ], DeleteRepositoryAttributeUseCase);
65
- //# sourceMappingURL=DeleteRepositoryAttribute.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeleteRepositoryAttribute.js","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/DeleteRepositoryAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAA2C;AAC3C,oDAA0E;AAC1E,kDAA2C;AAC3C,gDAAqD;AACrD,0DAA+C;AAC/C,yCAA4G;AAM5G,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,wBAAiD;IACrE,YAA2B,gBAAkC;QACzD,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,kCAAkC,CAAC,CAAC,CAAC;IAC1E,CAAC;CACJ,CAAA;AAJK,SAAS;IACS,WAAA,uBAAM,CAAA;qCAAmB,yBAAgB;GAD3D,SAAS,CAId;AAED,IAAa,gCAAgC,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