@nmshd/consumption 7.0.0-alpha.7 → 7.0.0-alpha.71
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.
- package/dist/buildInformation.js +5 -5
- package/dist/consumption/ConsumptionBaseController.d.ts.map +1 -1
- package/dist/consumption/ConsumptionBaseController.js +6 -1
- package/dist/consumption/ConsumptionBaseController.js.map +1 -1
- package/dist/consumption/ConsumptionConfig.d.ts +1 -1
- package/dist/consumption/ConsumptionConfig.d.ts.map +1 -1
- package/dist/consumption/ConsumptionController.d.ts +1 -3
- package/dist/consumption/ConsumptionController.d.ts.map +1 -1
- package/dist/consumption/ConsumptionController.js +6 -12
- package/dist/consumption/ConsumptionController.js.map +1 -1
- package/dist/consumption/ConsumptionControllerName.d.ts +0 -1
- package/dist/consumption/ConsumptionControllerName.d.ts.map +1 -1
- package/dist/consumption/ConsumptionControllerName.js +0 -1
- package/dist/consumption/ConsumptionControllerName.js.map +1 -1
- package/dist/consumption/ConsumptionCoreErrors.d.ts +10 -37
- package/dist/consumption/ConsumptionCoreErrors.d.ts.map +1 -1
- package/dist/consumption/ConsumptionCoreErrors.js +26 -113
- package/dist/consumption/ConsumptionCoreErrors.js.map +1 -1
- package/dist/consumption/ConsumptionIds.d.ts +1 -1
- package/dist/consumption/ConsumptionIds.d.ts.map +1 -1
- package/dist/consumption/ConsumptionIds.js +1 -1
- package/dist/consumption/ConsumptionIds.js.map +1 -1
- package/dist/modules/attributes/AttributesController.d.ts +124 -68
- package/dist/modules/attributes/AttributesController.d.ts.map +1 -1
- package/dist/modules/attributes/AttributesController.js +761 -709
- package/dist/modules/attributes/AttributesController.js.map +1 -1
- package/dist/modules/attributes/events/AttributeCreatedEvent.d.ts +1 -1
- package/dist/modules/attributes/events/AttributeCreatedEvent.d.ts.map +1 -1
- package/dist/modules/attributes/events/AttributeDeletedEvent.d.ts +1 -1
- package/dist/modules/attributes/events/AttributeDeletedEvent.d.ts.map +1 -1
- package/dist/modules/attributes/events/AttributeForwardingDetailsChangedEvent.d.ts +9 -0
- package/dist/modules/attributes/events/AttributeForwardingDetailsChangedEvent.d.ts.map +1 -0
- package/dist/modules/attributes/events/AttributeForwardingDetailsChangedEvent.js +12 -0
- package/dist/modules/attributes/events/AttributeForwardingDetailsChangedEvent.js.map +1 -0
- package/dist/modules/attributes/events/AttributeSucceededEvent.d.ts +11 -0
- package/dist/modules/attributes/events/AttributeSucceededEvent.d.ts.map +1 -0
- package/dist/modules/attributes/events/AttributeSucceededEvent.js +12 -0
- package/dist/modules/attributes/events/AttributeSucceededEvent.js.map +1 -0
- package/dist/modules/attributes/events/AttributeWasViewedAtChangedEvent.d.ts +7 -0
- package/dist/modules/attributes/events/AttributeWasViewedAtChangedEvent.d.ts.map +1 -0
- package/dist/modules/attributes/events/AttributeWasViewedAtChangedEvent.js +12 -0
- package/dist/modules/attributes/events/AttributeWasViewedAtChangedEvent.js.map +1 -0
- package/dist/modules/attributes/events/ForwardedAttributeDeletedByPeerEvent.d.ts +7 -0
- package/dist/modules/attributes/events/ForwardedAttributeDeletedByPeerEvent.d.ts.map +1 -0
- package/dist/modules/attributes/events/ForwardedAttributeDeletedByPeerEvent.js +12 -0
- package/dist/modules/attributes/events/ForwardedAttributeDeletedByPeerEvent.js.map +1 -0
- package/dist/modules/attributes/events/OwnAttributeDeletedByOwnerEvent.d.ts +7 -0
- package/dist/modules/attributes/events/OwnAttributeDeletedByOwnerEvent.d.ts.map +1 -0
- package/dist/modules/attributes/events/OwnAttributeDeletedByOwnerEvent.js +12 -0
- package/dist/modules/attributes/events/OwnAttributeDeletedByOwnerEvent.js.map +1 -0
- package/dist/modules/attributes/events/PeerRelationshipAttributeDeletedByPeerEvent.d.ts +7 -0
- package/dist/modules/attributes/events/PeerRelationshipAttributeDeletedByPeerEvent.d.ts.map +1 -0
- package/dist/modules/attributes/events/PeerRelationshipAttributeDeletedByPeerEvent.js +12 -0
- package/dist/modules/attributes/events/PeerRelationshipAttributeDeletedByPeerEvent.js.map +1 -0
- package/dist/modules/attributes/events/index.d.ts +6 -9
- package/dist/modules/attributes/events/index.d.ts.map +1 -1
- package/dist/modules/attributes/events/index.js +6 -9
- package/dist/modules/attributes/events/index.js.map +1 -1
- package/dist/modules/attributes/index.d.ts +9 -7
- package/dist/modules/attributes/index.d.ts.map +1 -1
- package/dist/modules/attributes/index.js +9 -7
- package/dist/modules/attributes/index.js.map +1 -1
- package/dist/modules/attributes/local/AttributeForwardingDetails.d.ts +28 -0
- package/dist/modules/attributes/local/AttributeForwardingDetails.d.ts.map +1 -0
- package/dist/modules/attributes/local/AttributeForwardingDetails.js +62 -0
- package/dist/modules/attributes/local/AttributeForwardingDetails.js.map +1 -0
- package/dist/modules/attributes/local/QueryTranslator.d.ts.map +1 -1
- package/dist/modules/attributes/local/QueryTranslator.js +1 -1
- package/dist/modules/attributes/local/QueryTranslator.js.map +1 -1
- package/dist/modules/attributes/local/attributeTypes/LocalAttribute.d.ts +29 -0
- package/dist/modules/attributes/local/attributeTypes/LocalAttribute.d.ts.map +1 -0
- package/dist/modules/attributes/local/{AttributeSuccessorParams.js → attributeTypes/LocalAttribute.js} +34 -26
- package/dist/modules/attributes/local/attributeTypes/LocalAttribute.js.map +1 -0
- package/dist/modules/attributes/local/attributeTypes/OwnIdentityAttribute.d.ts +19 -0
- package/dist/modules/attributes/local/attributeTypes/OwnIdentityAttribute.d.ts.map +1 -0
- package/dist/modules/{attributeListeners/local/LocalAttributeListener.js → attributes/local/attributeTypes/OwnIdentityAttribute.js} +16 -20
- package/dist/modules/attributes/local/attributeTypes/OwnIdentityAttribute.js.map +1 -0
- package/dist/modules/attributes/local/attributeTypes/OwnRelationshipAttribute.d.ts +29 -0
- package/dist/modules/attributes/local/attributeTypes/OwnRelationshipAttribute.d.ts.map +1 -0
- package/dist/modules/attributes/local/attributeTypes/OwnRelationshipAttribute.js +73 -0
- package/dist/modules/attributes/local/attributeTypes/OwnRelationshipAttribute.js.map +1 -0
- package/dist/modules/attributes/local/attributeTypes/PeerIdentityAttribute.d.ts +29 -0
- package/dist/modules/attributes/local/attributeTypes/PeerIdentityAttribute.d.ts.map +1 -0
- package/dist/modules/attributes/local/attributeTypes/PeerIdentityAttribute.js +76 -0
- package/dist/modules/attributes/local/attributeTypes/PeerIdentityAttribute.js.map +1 -0
- package/dist/modules/attributes/local/attributeTypes/PeerRelationshipAttribute.d.ts +30 -0
- package/dist/modules/attributes/local/attributeTypes/PeerRelationshipAttribute.d.ts.map +1 -0
- package/dist/modules/attributes/local/attributeTypes/PeerRelationshipAttribute.js +76 -0
- package/dist/modules/attributes/local/attributeTypes/PeerRelationshipAttribute.js.map +1 -0
- package/dist/modules/attributes/local/attributeTypes/ThirdPartyRelationshipAttribute.d.ts +33 -0
- package/dist/modules/attributes/local/attributeTypes/ThirdPartyRelationshipAttribute.d.ts.map +1 -0
- package/dist/modules/attributes/local/attributeTypes/ThirdPartyRelationshipAttribute.js +85 -0
- package/dist/modules/attributes/local/attributeTypes/ThirdPartyRelationshipAttribute.js.map +1 -0
- package/dist/modules/attributes/local/deletionInfos/AbstractAttributeDeletionInfo.d.ts +15 -0
- package/dist/modules/attributes/local/deletionInfos/AbstractAttributeDeletionInfo.d.ts.map +1 -0
- package/dist/modules/{requests/itemProcessors/freeText/AcceptFreeTextRequestItemParameters.js → attributes/local/deletionInfos/AbstractAttributeDeletionInfo.js} +12 -12
- package/dist/modules/attributes/local/deletionInfos/AbstractAttributeDeletionInfo.js.map +1 -0
- package/dist/modules/attributes/local/deletionInfos/EmittedAttributeDeletionInfo.d.ts +18 -0
- package/dist/modules/attributes/local/deletionInfos/EmittedAttributeDeletionInfo.d.ts.map +1 -0
- package/dist/modules/attributes/local/deletionInfos/EmittedAttributeDeletionInfo.js +38 -0
- package/dist/modules/attributes/local/deletionInfos/EmittedAttributeDeletionInfo.js.map +1 -0
- package/dist/modules/attributes/local/deletionInfos/ReceivedAttributeDeletionInfo.d.ts +16 -0
- package/dist/modules/attributes/local/deletionInfos/ReceivedAttributeDeletionInfo.d.ts.map +1 -0
- package/dist/modules/attributes/local/deletionInfos/ReceivedAttributeDeletionInfo.js +36 -0
- package/dist/modules/attributes/local/deletionInfos/ReceivedAttributeDeletionInfo.js.map +1 -0
- package/dist/modules/attributes/local/deletionInfos/index.d.ts +4 -0
- package/dist/modules/attributes/local/deletionInfos/index.d.ts.map +1 -0
- package/dist/modules/{attributeListeners/events → attributes/local/deletionInfos}/index.js +3 -1
- package/dist/modules/attributes/local/deletionInfos/index.js.map +1 -0
- package/dist/modules/attributes/local/successorParams/OwnIdentityAttributeSuccessorParams.d.ts +13 -0
- package/dist/modules/attributes/local/successorParams/OwnIdentityAttributeSuccessorParams.d.ts.map +1 -0
- package/dist/modules/{attributeListeners/local/CreateLocalAttributeListenerParams.js → attributes/local/successorParams/OwnIdentityAttributeSuccessorParams.js} +9 -15
- package/dist/modules/attributes/local/successorParams/OwnIdentityAttributeSuccessorParams.js.map +1 -0
- package/dist/modules/attributes/local/successorParams/OwnRelationshipAttributeSuccessorParams.d.ts +17 -0
- package/dist/modules/attributes/local/successorParams/OwnRelationshipAttributeSuccessorParams.d.ts.map +1 -0
- package/dist/modules/attributes/local/{CreateAttributeParams.js → successorParams/OwnRelationshipAttributeSuccessorParams.js} +10 -15
- package/dist/modules/attributes/local/successorParams/OwnRelationshipAttributeSuccessorParams.js.map +1 -0
- package/dist/modules/attributes/local/successorParams/PeerIdentityAttributeSuccessorParams.d.ts +20 -0
- package/dist/modules/attributes/local/successorParams/PeerIdentityAttributeSuccessorParams.d.ts.map +1 -0
- package/dist/modules/attributes/local/{CreateRepositoryAttributeParams.js → successorParams/PeerIdentityAttributeSuccessorParams.js} +16 -13
- package/dist/modules/attributes/local/successorParams/PeerIdentityAttributeSuccessorParams.js.map +1 -0
- package/dist/modules/attributes/local/successorParams/PeerRelationshipAttributeSuccessorParams.d.ts +20 -0
- package/dist/modules/attributes/local/successorParams/PeerRelationshipAttributeSuccessorParams.d.ts.map +1 -0
- package/dist/modules/attributes/local/{CreateSharedLocalAttributeCopyParams.js → successorParams/PeerRelationshipAttributeSuccessorParams.js} +15 -16
- package/dist/modules/attributes/local/successorParams/PeerRelationshipAttributeSuccessorParams.js.map +1 -0
- package/dist/modules/attributes/local/successorParams/ThirdPartyRelationshipAttributeSuccessorParams.d.ts +20 -0
- package/dist/modules/attributes/local/successorParams/ThirdPartyRelationshipAttributeSuccessorParams.d.ts.map +1 -0
- package/dist/modules/attributes/local/{CreateSharedLocalAttributeParams.js → successorParams/ThirdPartyRelationshipAttributeSuccessorParams.js} +15 -22
- package/dist/modules/attributes/local/successorParams/ThirdPartyRelationshipAttributeSuccessorParams.js.map +1 -0
- package/dist/modules/attributes/local/successorParams/index.d.ts +6 -0
- package/dist/modules/attributes/local/successorParams/index.d.ts.map +1 -0
- package/dist/modules/{attributeListeners → attributes/local/successorParams}/index.js +5 -4
- package/dist/modules/attributes/local/successorParams/index.js.map +1 -0
- package/dist/modules/index.d.ts +0 -1
- package/dist/modules/index.d.ts.map +1 -1
- package/dist/modules/index.js +0 -1
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/notifications/NotificationsController.js +6 -6
- package/dist/modules/notifications/NotificationsController.js.map +1 -1
- package/dist/modules/notifications/index.d.ts +4 -4
- package/dist/modules/notifications/index.d.ts.map +1 -1
- package/dist/modules/notifications/index.js +4 -4
- package/dist/modules/notifications/index.js.map +1 -1
- package/dist/modules/notifications/itemProcessors/attributeDeleted/ForwardedAttributeDeletedByPeerNotificationItemProcessor.d.ts +14 -0
- package/dist/modules/notifications/itemProcessors/attributeDeleted/ForwardedAttributeDeletedByPeerNotificationItemProcessor.d.ts.map +1 -0
- package/dist/modules/notifications/itemProcessors/attributeDeleted/ForwardedAttributeDeletedByPeerNotificationItemProcessor.js +53 -0
- package/dist/modules/notifications/itemProcessors/attributeDeleted/ForwardedAttributeDeletedByPeerNotificationItemProcessor.js.map +1 -0
- package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnAttributeDeletedByOwnerNotificationItemProcessor.d.ts +14 -0
- package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnAttributeDeletedByOwnerNotificationItemProcessor.d.ts.map +1 -0
- package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnAttributeDeletedByOwnerNotificationItemProcessor.js +59 -0
- package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnAttributeDeletedByOwnerNotificationItemProcessor.js.map +1 -0
- package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor.d.ts +14 -0
- package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor.d.ts.map +1 -0
- package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor.js +63 -0
- package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor.js.map +1 -0
- package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerAttributeSucceededNotificationItemProcessor.d.ts +15 -0
- package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerAttributeSucceededNotificationItemProcessor.d.ts.map +1 -0
- package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerAttributeSucceededNotificationItemProcessor.js +102 -0
- package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerAttributeSucceededNotificationItemProcessor.js.map +1 -0
- package/dist/modules/requests/incoming/IncomingRequestsController.d.ts +1 -0
- package/dist/modules/requests/incoming/IncomingRequestsController.d.ts.map +1 -1
- package/dist/modules/requests/incoming/IncomingRequestsController.js +21 -8
- package/dist/modules/requests/incoming/IncomingRequestsController.js.map +1 -1
- package/dist/modules/requests/incoming/decide/DecideRequestParameters.d.ts +1 -0
- package/dist/modules/requests/incoming/decide/DecideRequestParameters.d.ts.map +1 -1
- package/dist/modules/requests/incoming/decide/InternalDecideRequestParameters.d.ts +2 -0
- package/dist/modules/requests/incoming/decide/InternalDecideRequestParameters.d.ts.map +1 -1
- package/dist/modules/requests/incoming/decide/InternalDecideRequestParameters.js +5 -0
- package/dist/modules/requests/incoming/decide/InternalDecideRequestParameters.js.map +1 -1
- package/dist/modules/requests/index.d.ts +2 -3
- package/dist/modules/requests/index.d.ts.map +1 -1
- package/dist/modules/requests/index.js +2 -3
- package/dist/modules/requests/index.js.map +1 -1
- package/dist/modules/requests/itemProcessors/createAttribute/CreateAttributeRequestItemProcessor.d.ts +2 -2
- package/dist/modules/requests/itemProcessors/createAttribute/CreateAttributeRequestItemProcessor.d.ts.map +1 -1
- package/dist/modules/requests/itemProcessors/createAttribute/CreateAttributeRequestItemProcessor.js +62 -22
- package/dist/modules/requests/itemProcessors/createAttribute/CreateAttributeRequestItemProcessor.js.map +1 -1
- package/dist/modules/requests/itemProcessors/deleteAttribute/DeleteAttributeRequestItemProcessor.d.ts +4 -2
- package/dist/modules/requests/itemProcessors/deleteAttribute/DeleteAttributeRequestItemProcessor.d.ts.map +1 -1
- package/dist/modules/requests/itemProcessors/deleteAttribute/DeleteAttributeRequestItemProcessor.js +50 -43
- package/dist/modules/requests/itemProcessors/deleteAttribute/DeleteAttributeRequestItemProcessor.js.map +1 -1
- package/dist/modules/requests/itemProcessors/formField/AcceptFormFieldRequestItemParameters.d.ts +10 -0
- package/dist/modules/requests/itemProcessors/formField/AcceptFormFieldRequestItemParameters.d.ts.map +1 -0
- package/dist/modules/requests/itemProcessors/formField/AcceptFormFieldRequestItemParameters.js +31 -0
- package/dist/modules/requests/itemProcessors/formField/AcceptFormFieldRequestItemParameters.js.map +1 -0
- package/dist/modules/requests/itemProcessors/formField/FormFieldRequestItemProcessor.d.ts +10 -0
- package/dist/modules/requests/itemProcessors/formField/FormFieldRequestItemProcessor.d.ts.map +1 -0
- package/dist/modules/requests/itemProcessors/formField/FormFieldRequestItemProcessor.js +34 -0
- package/dist/modules/requests/itemProcessors/formField/FormFieldRequestItemProcessor.js.map +1 -0
- package/dist/modules/requests/itemProcessors/proposeAttribute/ProposeAttributeRequestItemProcessor.d.ts +2 -2
- package/dist/modules/requests/itemProcessors/proposeAttribute/ProposeAttributeRequestItemProcessor.d.ts.map +1 -1
- package/dist/modules/requests/itemProcessors/proposeAttribute/ProposeAttributeRequestItemProcessor.js +93 -101
- package/dist/modules/requests/itemProcessors/proposeAttribute/ProposeAttributeRequestItemProcessor.js.map +1 -1
- package/dist/modules/requests/itemProcessors/readAttribute/ReadAttributeRequestItemProcessor.d.ts +2 -2
- package/dist/modules/requests/itemProcessors/readAttribute/ReadAttributeRequestItemProcessor.d.ts.map +1 -1
- package/dist/modules/requests/itemProcessors/readAttribute/ReadAttributeRequestItemProcessor.js +142 -136
- package/dist/modules/requests/itemProcessors/readAttribute/ReadAttributeRequestItemProcessor.js.map +1 -1
- package/dist/modules/requests/itemProcessors/shareAttribute/ShareAttributeRequestItemProcessor.d.ts +3 -5
- package/dist/modules/requests/itemProcessors/shareAttribute/ShareAttributeRequestItemProcessor.d.ts.map +1 -1
- package/dist/modules/requests/itemProcessors/shareAttribute/ShareAttributeRequestItemProcessor.js +96 -92
- package/dist/modules/requests/itemProcessors/shareAttribute/ShareAttributeRequestItemProcessor.js.map +1 -1
- package/dist/modules/requests/itemProcessors/transferFileOwnership/TransferFileOwnershipRequestItemProcessor.d.ts +2 -2
- package/dist/modules/requests/itemProcessors/transferFileOwnership/TransferFileOwnershipRequestItemProcessor.d.ts.map +1 -1
- package/dist/modules/requests/itemProcessors/transferFileOwnership/TransferFileOwnershipRequestItemProcessor.js +40 -33
- package/dist/modules/requests/itemProcessors/transferFileOwnership/TransferFileOwnershipRequestItemProcessor.js.map +1 -1
- package/dist/modules/requests/itemProcessors/utility/createAppropriateResponseItem.d.ts.map +1 -1
- package/dist/modules/requests/itemProcessors/utility/createAppropriateResponseItem.js +31 -53
- package/dist/modules/requests/itemProcessors/utility/createAppropriateResponseItem.js.map +1 -1
- package/dist/modules/requests/itemProcessors/utility/validateAttributeMatchesWithQuery.js +3 -3
- package/dist/modules/requests/itemProcessors/utility/validateAttributeMatchesWithQuery.js.map +1 -1
- package/dist/modules/requests/local/LocalRequest.d.ts +2 -0
- package/dist/modules/requests/local/LocalRequest.d.ts.map +1 -1
- package/dist/modules/requests/local/LocalRequest.js +8 -2
- package/dist/modules/requests/local/LocalRequest.js.map +1 -1
- package/dist/modules/requests/local/LocalResponse.js +1 -1
- package/dist/modules/requests/local/LocalResponse.js.map +1 -1
- package/dist/modules/requests/outgoing/OutgoingRequestsController.d.ts +1 -1
- package/dist/modules/requests/outgoing/OutgoingRequestsController.d.ts.map +1 -1
- package/dist/modules/requests/outgoing/OutgoingRequestsController.js +29 -25
- package/dist/modules/requests/outgoing/OutgoingRequestsController.js.map +1 -1
- package/package.json +14 -14
- package/dist/modules/attributeListeners/AttributeListenersController.d.ts +0 -20
- package/dist/modules/attributeListeners/AttributeListenersController.d.ts.map +0 -1
- package/dist/modules/attributeListeners/AttributeListenersController.js +0 -51
- package/dist/modules/attributeListeners/AttributeListenersController.js.map +0 -1
- package/dist/modules/attributeListeners/events/AttributeListenerCreatedEvent.d.ts +0 -7
- package/dist/modules/attributeListeners/events/AttributeListenerCreatedEvent.d.ts.map +0 -1
- package/dist/modules/attributeListeners/events/AttributeListenerCreatedEvent.js +0 -12
- package/dist/modules/attributeListeners/events/AttributeListenerCreatedEvent.js.map +0 -1
- package/dist/modules/attributeListeners/events/index.d.ts +0 -2
- package/dist/modules/attributeListeners/events/index.d.ts.map +0 -1
- package/dist/modules/attributeListeners/events/index.js.map +0 -1
- package/dist/modules/attributeListeners/index.d.ts +0 -5
- package/dist/modules/attributeListeners/index.d.ts.map +0 -1
- package/dist/modules/attributeListeners/index.js.map +0 -1
- package/dist/modules/attributeListeners/local/CreateLocalAttributeListenerParams.d.ts +0 -13
- package/dist/modules/attributeListeners/local/CreateLocalAttributeListenerParams.d.ts.map +0 -1
- package/dist/modules/attributeListeners/local/CreateLocalAttributeListenerParams.js.map +0 -1
- package/dist/modules/attributeListeners/local/LocalAttributeListener.d.ts +0 -21
- package/dist/modules/attributeListeners/local/LocalAttributeListener.d.ts.map +0 -1
- package/dist/modules/attributeListeners/local/LocalAttributeListener.js.map +0 -1
- package/dist/modules/attributes/events/AttributeSucceededEventData.d.ts +0 -6
- package/dist/modules/attributes/events/AttributeSucceededEventData.d.ts.map +0 -1
- package/dist/modules/attributes/events/AttributeSucceededEventData.js +0 -3
- package/dist/modules/attributes/events/AttributeSucceededEventData.js.map +0 -1
- package/dist/modules/attributes/events/OwnSharedAttributeDeletedByOwnerEvent.d.ts +0 -7
- package/dist/modules/attributes/events/OwnSharedAttributeDeletedByOwnerEvent.d.ts.map +0 -1
- package/dist/modules/attributes/events/OwnSharedAttributeDeletedByOwnerEvent.js +0 -12
- package/dist/modules/attributes/events/OwnSharedAttributeDeletedByOwnerEvent.js.map +0 -1
- package/dist/modules/attributes/events/OwnSharedAttributeSucceededEvent.d.ts +0 -8
- package/dist/modules/attributes/events/OwnSharedAttributeSucceededEvent.d.ts.map +0 -1
- package/dist/modules/attributes/events/OwnSharedAttributeSucceededEvent.js +0 -12
- package/dist/modules/attributes/events/OwnSharedAttributeSucceededEvent.js.map +0 -1
- package/dist/modules/attributes/events/PeerSharedAttributeDeletedByPeerEvent.d.ts +0 -7
- package/dist/modules/attributes/events/PeerSharedAttributeDeletedByPeerEvent.d.ts.map +0 -1
- package/dist/modules/attributes/events/PeerSharedAttributeDeletedByPeerEvent.js +0 -12
- package/dist/modules/attributes/events/PeerSharedAttributeDeletedByPeerEvent.js.map +0 -1
- package/dist/modules/attributes/events/PeerSharedAttributeSucceededEvent.d.ts +0 -8
- package/dist/modules/attributes/events/PeerSharedAttributeSucceededEvent.d.ts.map +0 -1
- package/dist/modules/attributes/events/PeerSharedAttributeSucceededEvent.js +0 -12
- package/dist/modules/attributes/events/PeerSharedAttributeSucceededEvent.js.map +0 -1
- package/dist/modules/attributes/events/RepositoryAttributeSucceededEvent.d.ts +0 -8
- package/dist/modules/attributes/events/RepositoryAttributeSucceededEvent.d.ts.map +0 -1
- package/dist/modules/attributes/events/RepositoryAttributeSucceededEvent.js +0 -12
- package/dist/modules/attributes/events/RepositoryAttributeSucceededEvent.js.map +0 -1
- package/dist/modules/attributes/events/SharedAttributeCopyCreatedEvent.d.ts +0 -7
- package/dist/modules/attributes/events/SharedAttributeCopyCreatedEvent.d.ts.map +0 -1
- package/dist/modules/attributes/events/SharedAttributeCopyCreatedEvent.js +0 -12
- package/dist/modules/attributes/events/SharedAttributeCopyCreatedEvent.js.map +0 -1
- package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeDeletedByPeerEvent.d.ts +0 -7
- package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeDeletedByPeerEvent.d.ts.map +0 -1
- package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeDeletedByPeerEvent.js +0 -12
- package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeDeletedByPeerEvent.js.map +0 -1
- package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeSucceededEvent.d.ts +0 -8
- package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeSucceededEvent.d.ts.map +0 -1
- package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeSucceededEvent.js +0 -12
- package/dist/modules/attributes/events/ThirdPartyRelationshipAttributeSucceededEvent.js.map +0 -1
- package/dist/modules/attributes/local/AttributeSuccessorParams.d.ts +0 -24
- package/dist/modules/attributes/local/AttributeSuccessorParams.d.ts.map +0 -1
- package/dist/modules/attributes/local/AttributeSuccessorParams.js.map +0 -1
- package/dist/modules/attributes/local/CreateAttributeParams.d.ts +0 -15
- package/dist/modules/attributes/local/CreateAttributeParams.d.ts.map +0 -1
- package/dist/modules/attributes/local/CreateAttributeParams.js.map +0 -1
- package/dist/modules/attributes/local/CreateRepositoryAttributeParams.d.ts +0 -20
- package/dist/modules/attributes/local/CreateRepositoryAttributeParams.d.ts.map +0 -1
- package/dist/modules/attributes/local/CreateRepositoryAttributeParams.js.map +0 -1
- package/dist/modules/attributes/local/CreateSharedLocalAttributeCopyParams.d.ts +0 -22
- package/dist/modules/attributes/local/CreateSharedLocalAttributeCopyParams.d.ts.map +0 -1
- package/dist/modules/attributes/local/CreateSharedLocalAttributeCopyParams.js.map +0 -1
- package/dist/modules/attributes/local/CreateSharedLocalAttributeParams.d.ts +0 -26
- package/dist/modules/attributes/local/CreateSharedLocalAttributeParams.d.ts.map +0 -1
- package/dist/modules/attributes/local/CreateSharedLocalAttributeParams.js.map +0 -1
- package/dist/modules/attributes/local/LocalAttribute.d.ts +0 -109
- package/dist/modules/attributes/local/LocalAttribute.d.ts.map +0 -1
- package/dist/modules/attributes/local/LocalAttribute.js +0 -180
- package/dist/modules/attributes/local/LocalAttribute.js.map +0 -1
- package/dist/modules/attributes/local/LocalAttributeDeletionInfo.d.ts +0 -24
- package/dist/modules/attributes/local/LocalAttributeDeletionInfo.d.ts.map +0 -1
- package/dist/modules/attributes/local/LocalAttributeDeletionInfo.js +0 -42
- package/dist/modules/attributes/local/LocalAttributeDeletionInfo.js.map +0 -1
- package/dist/modules/attributes/local/LocalAttributeShareInfo.d.ts +0 -26
- package/dist/modules/attributes/local/LocalAttributeShareInfo.d.ts.map +0 -1
- package/dist/modules/attributes/local/LocalAttributeShareInfo.js +0 -59
- package/dist/modules/attributes/local/LocalAttributeShareInfo.js.map +0 -1
- package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnSharedAttributeDeletedByOwnerNotificationItemProcessor.d.ts +0 -14
- package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnSharedAttributeDeletedByOwnerNotificationItemProcessor.d.ts.map +0 -1
- package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnSharedAttributeDeletedByOwnerNotificationItemProcessor.js +0 -56
- package/dist/modules/notifications/itemProcessors/attributeDeleted/OwnSharedAttributeDeletedByOwnerNotificationItemProcessor.js.map +0 -1
- package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerSharedAttributeDeletedByPeerNotificationItemProcessor.d.ts +0 -14
- package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerSharedAttributeDeletedByPeerNotificationItemProcessor.d.ts.map +0 -1
- package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerSharedAttributeDeletedByPeerNotificationItemProcessor.js +0 -57
- package/dist/modules/notifications/itemProcessors/attributeDeleted/PeerSharedAttributeDeletedByPeerNotificationItemProcessor.js.map +0 -1
- package/dist/modules/notifications/itemProcessors/attributeDeleted/ThirdPartyRelationshipAttributeDeletedByPeerNotificationItemProcessor.d.ts +0 -14
- package/dist/modules/notifications/itemProcessors/attributeDeleted/ThirdPartyRelationshipAttributeDeletedByPeerNotificationItemProcessor.d.ts.map +0 -1
- package/dist/modules/notifications/itemProcessors/attributeDeleted/ThirdPartyRelationshipAttributeDeletedByPeerNotificationItemProcessor.js +0 -57
- package/dist/modules/notifications/itemProcessors/attributeDeleted/ThirdPartyRelationshipAttributeDeletedByPeerNotificationItemProcessor.js.map +0 -1
- package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerSharedAttributeSucceededNotificationItemProcessor.d.ts +0 -15
- package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerSharedAttributeSucceededNotificationItemProcessor.d.ts.map +0 -1
- package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerSharedAttributeSucceededNotificationItemProcessor.js +0 -74
- package/dist/modules/notifications/itemProcessors/attributeSucceeded/PeerSharedAttributeSucceededNotificationItemProcessor.js.map +0 -1
- package/dist/modules/requests/itemProcessors/freeText/AcceptFreeTextRequestItemParameters.d.ts +0 -10
- package/dist/modules/requests/itemProcessors/freeText/AcceptFreeTextRequestItemParameters.d.ts.map +0 -1
- package/dist/modules/requests/itemProcessors/freeText/AcceptFreeTextRequestItemParameters.js.map +0 -1
- package/dist/modules/requests/itemProcessors/freeText/FreeTextRequestItemProcessor.d.ts +0 -9
- package/dist/modules/requests/itemProcessors/freeText/FreeTextRequestItemProcessor.d.ts.map +0 -1
- package/dist/modules/requests/itemProcessors/freeText/FreeTextRequestItemProcessor.js +0 -31
- package/dist/modules/requests/itemProcessors/freeText/FreeTextRequestItemProcessor.js.map +0 -1
- package/dist/modules/requests/itemProcessors/registerAttributeListener/RegisterAttributeListenerRequestItemProcessor.d.ts +0 -8
- package/dist/modules/requests/itemProcessors/registerAttributeListener/RegisterAttributeListenerRequestItemProcessor.d.ts.map +0 -1
- package/dist/modules/requests/itemProcessors/registerAttributeListener/RegisterAttributeListenerRequestItemProcessor.js +0 -19
- package/dist/modules/requests/itemProcessors/registerAttributeListener/RegisterAttributeListenerRequestItemProcessor.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ThirdPartyRelationshipAttributeDeletedByPeerNotificationItemProcessor.js","sourceRoot":"","sources":["../../../../../src/modules/notifications/itemProcessors/attributeDeleted/ThirdPartyRelationshipAttributeDeletedByPeerNotificationItemProcessor.ts"],"names":[],"mappings":";;;AAEA,kDAA6C;AAC7C,gDAA0D;AAE1D,yFAAsF;AACtF,oDAAwF;AACxF,qGAAgI;AAChI,4CAAmD;AAEnD,4FAAyF;AAEzF,MAAa,qEAAsE,SAAQ,qEAA+F;IAGtL,YAAmB,qBAA4C;QAC3D,KAAK,CAAC,qBAAqB,CAAC,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,kCAAsB,CAAC,SAAS,CAAC,qEAAqE,CAAC,CAAC;IAC3H,CAAC;IAEe,KAAK,CAAC,4CAA4C,CAC9D,gBAA8E,EAC9E,YAA+B;QAE/B,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;QAE9G,IAAI,CAAC,SAAS;YAAE,OAAO,yBAAgB,CAAC,OAAO,EAAE,CAAC;QAElD,IAAI,CAAC,SAAS,CAAC,iCAAiC,EAAE,EAAE,CAAC;YACjD,OAAO,yBAAgB,CAAC,KAAK,CAAC,6CAAqB,CAAC,UAAU,CAAC,oCAAoC,CAAC,gBAAgB,CAAC,WAAW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,CAAC;IAEe,KAAK,CAAC,QAAQ,CAAC,gBAA8E,EAAE,aAAgC;QAC3I,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;QAC9G,IAAI,CAAC,SAAS;YAAE,OAAO;QAEvB,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,0BAA0B,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;QAE1G,KAAK,MAAM,IAAI,IAAI,CAAC,SAAS,EAAE,GAAG,YAAY,CAAC,EAAE,CAAC;YAC9C,2GAA2G;YAC3G,IAAI,CAAC,YAAY,GAAG,SAAS,CAAC;YAC9B,MAAM,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;QAC5E,CAAC;IACL,CAAC;CACJ;AA9DD,sJA8DC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { PeerSharedAttributeSucceededNotificationItem } from "@nmshd/content";
|
|
2
|
-
import { ConsumptionController } from "../../../../consumption/ConsumptionController";
|
|
3
|
-
import { PeerSharedAttributeSucceededEvent } from "../../../attributes";
|
|
4
|
-
import { ValidationResult } from "../../../common";
|
|
5
|
-
import { LocalNotification } from "../../local/LocalNotification";
|
|
6
|
-
import { AbstractNotificationItemProcessor } from "../AbstractNotificationItemProcessor";
|
|
7
|
-
export declare class PeerSharedAttributeSucceededNotificationItemProcessor extends AbstractNotificationItemProcessor<PeerSharedAttributeSucceededNotificationItem> {
|
|
8
|
-
private readonly _logger;
|
|
9
|
-
constructor(consumptionController: ConsumptionController);
|
|
10
|
-
checkPrerequisitesOfIncomingNotificationItem(notificationItem: PeerSharedAttributeSucceededNotificationItem, notification: LocalNotification): Promise<ValidationResult>;
|
|
11
|
-
process(notificationItem: PeerSharedAttributeSucceededNotificationItem, notification: LocalNotification): Promise<PeerSharedAttributeSucceededEvent>;
|
|
12
|
-
rollback(notificationItem: PeerSharedAttributeSucceededNotificationItem, notification: LocalNotification): Promise<void>;
|
|
13
|
-
private rollbackPartialWork;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=PeerSharedAttributeSucceededNotificationItemProcessor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PeerSharedAttributeSucceededNotificationItemProcessor.d.ts","sourceRoot":"","sources":["../../../../../src/modules/notifications/itemProcessors/attributeSucceeded/PeerSharedAttributeSucceededNotificationItemProcessor.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,4CAA4C,EAAE,MAAM,gBAAgB,CAAC;AAEjG,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAEtF,OAAO,EAAkB,iCAAiC,EAAE,MAAM,qBAAqB,CAAC;AACxF,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,qDAAsD,SAAQ,iCAAiC,CAAC,4CAA4C,CAAC;IACtJ,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAU;gBAEf,qBAAqB,EAAE,qBAAqB;IAKzC,4CAA4C,CAC9D,gBAAgB,EAAE,4CAA4C,EAC9D,YAAY,EAAE,iBAAiB,GAChC,OAAO,CAAC,gBAAgB,CAAC;IAoBN,OAAO,CAAC,gBAAgB,EAAE,4CAA4C,EAAE,YAAY,EAAE,iBAAiB,GAAG,OAAO,CAAC,iCAAiC,CAAC;IAkCpJ,QAAQ,CAAC,gBAAgB,EAAE,4CAA4C,EAAE,YAAY,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;YAIhI,mBAAmB;CAgBpC"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PeerSharedAttributeSucceededNotificationItemProcessor = void 0;
|
|
4
|
-
const content_1 = require("@nmshd/content");
|
|
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 PeerSharedAttributeSucceededNotificationItemProcessor extends AbstractNotificationItemProcessor_1.AbstractNotificationItemProcessor {
|
|
11
|
-
constructor(consumptionController) {
|
|
12
|
-
super(consumptionController);
|
|
13
|
-
this._logger = transport_1.TransportLoggerFactory.getLogger(PeerSharedAttributeSucceededNotificationItemProcessor);
|
|
14
|
-
}
|
|
15
|
-
async checkPrerequisitesOfIncomingNotificationItem(notificationItem, notification) {
|
|
16
|
-
if (!notification.peer.equals(notificationItem.successorContent.owner)) {
|
|
17
|
-
return common_1.ValidationResult.error(ConsumptionCoreErrors_1.ConsumptionCoreErrors.attributes.successionPeerIsNotOwner());
|
|
18
|
-
}
|
|
19
|
-
const successorParams = {
|
|
20
|
-
id: notificationItem.successorId,
|
|
21
|
-
content: notificationItem.successorContent,
|
|
22
|
-
shareInfo: { notificationReference: notification.id, peer: notification.peer }
|
|
23
|
-
};
|
|
24
|
-
if (notificationItem.successorContent instanceof content_1.IdentityAttribute) {
|
|
25
|
-
const validationResult = await this.consumptionController.attributes.validatePeerSharedIdentityAttributeSuccession(notificationItem.predecessorId, successorParams);
|
|
26
|
-
return validationResult;
|
|
27
|
-
}
|
|
28
|
-
const validationResult = await this.consumptionController.attributes.validatePeerSharedRelationshipAttributeSuccession(notificationItem.predecessorId, successorParams);
|
|
29
|
-
return validationResult;
|
|
30
|
-
}
|
|
31
|
-
async process(notificationItem, notification) {
|
|
32
|
-
const successorParams = {
|
|
33
|
-
id: notificationItem.successorId,
|
|
34
|
-
content: notificationItem.successorContent,
|
|
35
|
-
shareInfo: { notificationReference: notification.id, peer: notification.peer }
|
|
36
|
-
};
|
|
37
|
-
let predecessor;
|
|
38
|
-
let successor;
|
|
39
|
-
try {
|
|
40
|
-
if (notificationItem.successorContent instanceof content_1.IdentityAttribute) {
|
|
41
|
-
({ predecessor, successor } = await this.consumptionController.attributes.succeedPeerSharedIdentityAttribute(notificationItem.predecessorId, successorParams, false));
|
|
42
|
-
}
|
|
43
|
-
else {
|
|
44
|
-
({ predecessor, successor } = await this.consumptionController.attributes.succeedPeerSharedRelationshipAttribute(notificationItem.predecessorId, successorParams, false));
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
catch (e) {
|
|
48
|
-
await this.rollbackPartialWork(notificationItem, notification).catch((e) => this._logger.error(`Rollback failed for notification item (notification id: ${notification.id}).`, e));
|
|
49
|
-
throw e;
|
|
50
|
-
}
|
|
51
|
-
const myAddress = this.consumptionController.accountController.identity.address;
|
|
52
|
-
return new attributes_1.PeerSharedAttributeSucceededEvent(myAddress.toString(), predecessor, successor);
|
|
53
|
-
}
|
|
54
|
-
async rollback(notificationItem, notification) {
|
|
55
|
-
await this.rollbackPartialWork(notificationItem, notification);
|
|
56
|
-
}
|
|
57
|
-
async rollbackPartialWork(notificationItem, _notification) {
|
|
58
|
-
const successor = await this.consumptionController.attributes.getLocalAttribute(notificationItem.successorId);
|
|
59
|
-
if (successor) {
|
|
60
|
-
await this.consumptionController.attributes
|
|
61
|
-
.deleteAttributeUnsafe(successor.id)
|
|
62
|
-
.catch((e) => this._logger.error(`Deletion failed for attribute (attribute id: ${successor.id}).`, e));
|
|
63
|
-
}
|
|
64
|
-
const predecessor = await this.consumptionController.attributes.getLocalAttribute(notificationItem.predecessorId);
|
|
65
|
-
if (predecessor?.succeededBy) {
|
|
66
|
-
predecessor.succeededBy = undefined;
|
|
67
|
-
await this.consumptionController.attributes
|
|
68
|
-
.updateAttributeUnsafe(predecessor)
|
|
69
|
-
.catch((e) => this._logger.error(`Update failed for attribute (attribute id: ${notificationItem.predecessorId}).`, e));
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
exports.PeerSharedAttributeSucceededNotificationItemProcessor = PeerSharedAttributeSucceededNotificationItemProcessor;
|
|
74
|
-
//# sourceMappingURL=PeerSharedAttributeSucceededNotificationItemProcessor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PeerSharedAttributeSucceededNotificationItemProcessor.js","sourceRoot":"","sources":["../../../../../src/modules/notifications/itemProcessors/attributeSucceeded/PeerSharedAttributeSucceededNotificationItemProcessor.ts"],"names":[],"mappings":";;;AACA,4CAAiG;AACjG,gDAA0D;AAE1D,yFAAsF;AACtF,oDAAwF;AACxF,4CAAmD;AAEnD,4FAAyF;AAEzF,MAAa,qDAAsD,SAAQ,qEAA+E;IAGtJ,YAAmB,qBAA4C;QAC3D,KAAK,CAAC,qBAAqB,CAAC,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,kCAAsB,CAAC,SAAS,CAAC,qDAAqD,CAAC,CAAC;IAC3G,CAAC;IAEe,KAAK,CAAC,4CAA4C,CAC9D,gBAA8D,EAC9D,YAA+B;QAE/B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,KAAK,CAAC,EAAE,CAAC;YACrE,OAAO,yBAAgB,CAAC,KAAK,CAAC,6CAAqB,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAC,CAAC;QAC/F,CAAC;QAED,MAAM,eAAe,GAAG;YACpB,EAAE,EAAE,gBAAgB,CAAC,WAAW;YAChC,OAAO,EAAE,gBAAgB,CAAC,gBAAgB;YAC1C,SAAS,EAAE,EAAE,qBAAqB,EAAE,YAAY,CAAC,EAAE,EAAE,IAAI,EAAE,YAAY,CAAC,IAAI,EAAE;SACjF,CAAC;QAEF,IAAI,gBAAgB,CAAC,gBAAgB,YAAY,2B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AAC,WAAW,CAAC;iBAClC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,8CAA8C,gBAAgB,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QAC/H,CAAC;IACL,CAAC;CACJ;AArFD,sHAqFC"}
|
package/dist/modules/requests/itemProcessors/freeText/AcceptFreeTextRequestItemParameters.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Serializable } from "@js-soft/ts-serval";
|
|
2
|
-
import { AcceptRequestItemParametersJSON } from "../../incoming/decide/AcceptRequestItemParameters";
|
|
3
|
-
export interface AcceptFreeTextRequestItemParametersJSON extends AcceptRequestItemParametersJSON {
|
|
4
|
-
freeText: string;
|
|
5
|
-
}
|
|
6
|
-
export declare class AcceptFreeTextRequestItemParameters extends Serializable {
|
|
7
|
-
freeText: string;
|
|
8
|
-
static from(value: AcceptFreeTextRequestItemParametersJSON): AcceptFreeTextRequestItemParameters;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=AcceptFreeTextRequestItemParameters.d.ts.map
|
package/dist/modules/requests/itemProcessors/freeText/AcceptFreeTextRequestItemParameters.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AcceptFreeTextRequestItemParameters.d.ts","sourceRoot":"","sources":["../../../../../src/modules/requests/itemProcessors/freeText/AcceptFreeTextRequestItemParameters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAA6B,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EAAE,+BAA+B,EAAE,MAAM,mDAAmD,CAAC;AAEpG,MAAM,WAAW,uCAAwC,SAAQ,+BAA+B;IAC5F,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,qBACa,mCAAoC,SAAQ,YAAY;IAG1D,QAAQ,EAAE,MAAM,CAAC;WAEV,IAAI,CAAC,KAAK,EAAE,uCAAuC,GAAG,mCAAmC;CAG1G"}
|
package/dist/modules/requests/itemProcessors/freeText/AcceptFreeTextRequestItemParameters.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AcceptFreeTextRequestItemParameters.js","sourceRoot":"","sources":["../../../../../src/modules/requests/itemProcessors/freeText/AcceptFreeTextRequestItemParameters.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA6E;AAQtE,IAAM,mCAAmC,GAAzC,MAAM,mCAAoC,SAAQ,wBAAY;IAK1D,MAAM,CAAC,IAAI,CAAC,KAA8C;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AARY,kFAAmC;AAGrC;IAFN,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;qEACa;8CAHf,mCAAmC;IAD/C,IAAA,gBAAI,EAAC,qCAAqC,CAAC;GAC/B,mCAAmC,CAQ/C"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FreeTextAcceptResponseItem, FreeTextRequestItem } from "@nmshd/content";
|
|
2
|
-
import { ValidationResult } from "../../../common/ValidationResult";
|
|
3
|
-
import { GenericRequestItemProcessor } from "../GenericRequestItemProcessor";
|
|
4
|
-
import { AcceptFreeTextRequestItemParametersJSON } from "./AcceptFreeTextRequestItemParameters";
|
|
5
|
-
export declare class FreeTextRequestItemProcessor extends GenericRequestItemProcessor<FreeTextRequestItem, AcceptFreeTextRequestItemParametersJSON> {
|
|
6
|
-
canAccept(_requestItem: FreeTextRequestItem, params: AcceptFreeTextRequestItemParametersJSON): ValidationResult;
|
|
7
|
-
accept(_requestItem: FreeTextRequestItem, params: AcceptFreeTextRequestItemParametersJSON): FreeTextAcceptResponseItem;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=FreeTextRequestItemProcessor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FreeTextRequestItemProcessor.d.ts","sourceRoot":"","sources":["../../../../../src/modules/requests/itemProcessors/freeText/FreeTextRequestItemProcessor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,mBAAmB,EAAsB,MAAM,gBAAgB,CAAC;AACrG,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAG7E,OAAO,EAAuC,uCAAuC,EAAE,MAAM,uCAAuC,CAAC;AAErI,qBAAa,4BAA6B,SAAQ,2BAA2B,CAAC,mBAAmB,EAAE,uCAAuC,CAAC;IACvH,SAAS,CAAC,YAAY,EAAE,mBAAmB,EAAE,MAAM,EAAE,uCAAuC,GAAG,gBAAgB;IAY/G,MAAM,CAAC,YAAY,EAAE,mBAAmB,EAAE,MAAM,EAAE,uCAAuC,GAAG,0BAA0B;CAOzI"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FreeTextRequestItemProcessor = void 0;
|
|
4
|
-
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
5
|
-
const content_1 = require("@nmshd/content");
|
|
6
|
-
const ValidationResult_1 = require("../../../common/ValidationResult");
|
|
7
|
-
const GenericRequestItemProcessor_1 = require("../GenericRequestItemProcessor");
|
|
8
|
-
const ConsumptionCoreErrors_1 = require("../../../../consumption/ConsumptionCoreErrors");
|
|
9
|
-
const AcceptFreeTextRequestItemParameters_1 = require("./AcceptFreeTextRequestItemParameters");
|
|
10
|
-
class FreeTextRequestItemProcessor extends GenericRequestItemProcessor_1.GenericRequestItemProcessor {
|
|
11
|
-
canAccept(_requestItem, params) {
|
|
12
|
-
try {
|
|
13
|
-
AcceptFreeTextRequestItemParameters_1.AcceptFreeTextRequestItemParameters.from(params);
|
|
14
|
-
}
|
|
15
|
-
catch (error) {
|
|
16
|
-
if (!(error instanceof ts_serval_1.ParsingError))
|
|
17
|
-
throw error;
|
|
18
|
-
return ValidationResult_1.ValidationResult.error(ConsumptionCoreErrors_1.ConsumptionCoreErrors.requests.invalidAcceptParameters("The RequestItem was answered with incorrect parameters."));
|
|
19
|
-
}
|
|
20
|
-
return ValidationResult_1.ValidationResult.success();
|
|
21
|
-
}
|
|
22
|
-
accept(_requestItem, params) {
|
|
23
|
-
const parsedParams = AcceptFreeTextRequestItemParameters_1.AcceptFreeTextRequestItemParameters.from(params);
|
|
24
|
-
return content_1.FreeTextAcceptResponseItem.from({
|
|
25
|
-
result: content_1.ResponseItemResult.Accepted,
|
|
26
|
-
freeText: parsedParams.freeText
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.FreeTextRequestItemProcessor = FreeTextRequestItemProcessor;
|
|
31
|
-
//# sourceMappingURL=FreeTextRequestItemProcessor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FreeTextRequestItemProcessor.js","sourceRoot":"","sources":["../../../../../src/modules/requests/itemProcessors/freeText/FreeTextRequestItemProcessor.ts"],"names":[],"mappings":";;;AAAA,kDAAkD;AAClD,4CAAqG;AACrG,uEAAoE;AACpE,gFAA6E;AAE7E,yFAAsF;AACtF,+FAAqI;AAErI,MAAa,4BAA6B,SAAQ,yDAAyF;IACvH,SAAS,CAAC,YAAiC,EAAE,MAA+C;QACxG,IAAI,CAAC;YACD,yEAAmC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACrD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,IAAI,CAAC,CAAC,KAAK,YAAY,wBAAY,CAAC;gBAAE,MAAM,KAAK,CAAC;YAElD,OAAO,mCAAgB,CAAC,KAAK,CAAC,6CAAqB,CAAC,QAAQ,CAAC,uBAAuB,CAAC,yDAAyD,CAAC,CAAC,CAAC;QACrJ,CAAC;QAED,OAAO,mCAAgB,CAAC,OAAO,EAAE,CAAC;IACtC,CAAC;IAEe,MAAM,CAAC,YAAiC,EAAE,MAA+C;QACrG,MAAM,YAAY,GAAG,yEAAmC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACtE,OAAO,oCAA0B,CAAC,IAAI,CAAC;YACnC,MAAM,EAAE,4BAAkB,CAAC,QAAQ;YACnC,QAAQ,EAAE,YAAY,CAAC,QAAQ;SAClC,CAAC,CAAC;IACP,CAAC;CACJ;AApBD,oEAoBC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { RegisterAttributeListenerAcceptResponseItem, RegisterAttributeListenerRequestItem } from "@nmshd/content";
|
|
2
|
-
import { AcceptRequestItemParametersJSON } from "../../incoming/decide/AcceptRequestItemParameters";
|
|
3
|
-
import { GenericRequestItemProcessor } from "../GenericRequestItemProcessor";
|
|
4
|
-
import { LocalRequestInfo } from "../IRequestItemProcessor";
|
|
5
|
-
export declare class RegisterAttributeListenerRequestItemProcessor extends GenericRequestItemProcessor<RegisterAttributeListenerRequestItem> {
|
|
6
|
-
accept(requestItem: RegisterAttributeListenerRequestItem, _params: AcceptRequestItemParametersJSON, requestInfo: LocalRequestInfo): Promise<RegisterAttributeListenerAcceptResponseItem>;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=RegisterAttributeListenerRequestItemProcessor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RegisterAttributeListenerRequestItemProcessor.d.ts","sourceRoot":"","sources":["../../../../../src/modules/requests/itemProcessors/registerAttributeListener/RegisterAttributeListenerRequestItemProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2CAA2C,EAAE,oCAAoC,EAAsB,MAAM,gBAAgB,CAAC;AACvI,OAAO,EAAE,+BAA+B,EAAE,MAAM,mDAAmD,CAAC;AACpG,OAAO,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,qBAAa,6CAA8C,SAAQ,2BAA2B,CAAC,oCAAoC,CAAC;IAC1G,MAAM,CACxB,WAAW,EAAE,oCAAoC,EACjD,OAAO,EAAE,+BAA+B,EACxC,WAAW,EAAE,gBAAgB,GAC9B,OAAO,CAAC,2CAA2C,CAAC;CAW1D"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RegisterAttributeListenerRequestItemProcessor = void 0;
|
|
4
|
-
const content_1 = require("@nmshd/content");
|
|
5
|
-
const GenericRequestItemProcessor_1 = require("../GenericRequestItemProcessor");
|
|
6
|
-
class RegisterAttributeListenerRequestItemProcessor extends GenericRequestItemProcessor_1.GenericRequestItemProcessor {
|
|
7
|
-
async accept(requestItem, _params, requestInfo) {
|
|
8
|
-
const listener = await this.consumptionController.attributeListeners.createAttributeListener({
|
|
9
|
-
peer: requestInfo.peer,
|
|
10
|
-
query: requestItem.query
|
|
11
|
-
});
|
|
12
|
-
return content_1.RegisterAttributeListenerAcceptResponseItem.from({
|
|
13
|
-
result: content_1.ResponseItemResult.Accepted,
|
|
14
|
-
listenerId: listener.id.toString()
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.RegisterAttributeListenerRequestItemProcessor = RegisterAttributeListenerRequestItemProcessor;
|
|
19
|
-
//# sourceMappingURL=RegisterAttributeListenerRequestItemProcessor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RegisterAttributeListenerRequestItemProcessor.js","sourceRoot":"","sources":["../../../../../src/modules/requests/itemProcessors/registerAttributeListener/RegisterAttributeListenerRequestItemProcessor.ts"],"names":[],"mappings":";;;AAAA,4CAAuI;AAEvI,gFAA6E;AAG7E,MAAa,6CAA8C,SAAQ,yDAAiE;IAChH,KAAK,CAAC,MAAM,CACxB,WAAiD,EACjD,OAAwC,EACxC,WAA6B;QAE7B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,uBAAuB,CAAC;YACzF,IAAI,EAAE,WAAW,CAAC,IAAI;YACtB,KAAK,EAAE,WAAW,CAAC,KAAK;SAC3B,CAAC,CAAC;QAEH,OAAO,qDAA2C,CAAC,IAAI,CAAC;YACpD,MAAM,EAAE,4BAAkB,CAAC,QAAQ;YACnC,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE;SACrC,CAAC,CAAC;IACP,CAAC;CACJ;AAhBD,sGAgBC"}
|