@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
package/dist/buildInformation.js
CHANGED
|
@@ -6,11 +6,11 @@ const content_1 = require("@nmshd/content");
|
|
|
6
6
|
const crypto_1 = require("@nmshd/crypto");
|
|
7
7
|
const transport_1 = require("@nmshd/transport");
|
|
8
8
|
exports.buildInformation = {
|
|
9
|
-
version: "7.0.0-alpha.
|
|
10
|
-
build: "
|
|
11
|
-
date: "2025-
|
|
12
|
-
commit: "
|
|
13
|
-
dependencies: {"@js-soft/docdb-querytranslator":"^1.1.
|
|
9
|
+
version: "7.0.0-alpha.71",
|
|
10
|
+
build: "357",
|
|
11
|
+
date: "2025-10-23T09:54:31+00:00",
|
|
12
|
+
commit: "d01f0f675519368728b20cdf5ff261ea115facdf",
|
|
13
|
+
dependencies: {"@js-soft/docdb-querytranslator":"^1.1.6","@js-soft/ts-serval":"2.0.14","@js-soft/ts-utils":"2.3.5","@nmshd/content":"*","@nmshd/core-types":"*","@nmshd/iql":"^1.0.4","@nmshd/transport":"*","lodash":"^4.17.21","ts-simple-nameof":"^1.3.3"},
|
|
14
14
|
libraries: {
|
|
15
15
|
transport: transport_1.buildInformation,
|
|
16
16
|
crypto: crypto_1.buildInformation,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsumptionBaseController.d.ts","sourceRoot":"","sources":["../../src/consumption/ConsumptionBaseController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,E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UAAU,CAAC,GAAG,CAAC,EAAE;CAQzF"}
|
|
@@ -17,7 +17,12 @@ class ConsumptionBaseController {
|
|
|
17
17
|
return Promise.resolve(this);
|
|
18
18
|
}
|
|
19
19
|
parseArray(values, type) {
|
|
20
|
-
return values.map((v) =>
|
|
20
|
+
return values.map((v) => {
|
|
21
|
+
const parsed = type.fromUnknown(v);
|
|
22
|
+
if (!(parsed instanceof type))
|
|
23
|
+
throw new Error(`Parsed value is not an instance of ${type.name}`);
|
|
24
|
+
return parsed;
|
|
25
|
+
});
|
|
21
26
|
}
|
|
22
27
|
}
|
|
23
28
|
exports.ConsumptionBaseController = ConsumptionBaseController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsumptionBaseController.js","sourceRoot":"","sources":["../../src/consumption/ConsumptionBaseController.ts"],"names":[],"mappings":";;;AAEA,gDAA0D;AAI1D,MAAa,yBAAyB;IAElC,IAAW,GAAG;QACV,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAED,IAAW,MAAM;QACb,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAED,YACI,cAAyC,EAC/B,OAA8B;QAA9B,YAAO,GAAP,OAAO,CAAuB;QAExC,IAAI,CAAC,IAAI,GAAG,kCAAsB,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IACjE,CAAC;IAEM,IAAI;QACP,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;IAES,UAAU,CAAyB,MAAgB,EAAE,IAAiB;QAC5E,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"ConsumptionBaseController.js","sourceRoot":"","sources":["../../src/consumption/ConsumptionBaseController.ts"],"names":[],"mappings":";;;AAEA,gDAA0D;AAI1D,MAAa,yBAAyB;IAElC,IAAW,GAAG;QACV,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAED,IAAW,MAAM;QACb,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAED,YACI,cAAyC,EAC/B,OAA8B;QAA9B,YAAO,GAAP,OAAO,CAAuB;QAExC,IAAI,CAAC,IAAI,GAAG,kCAAsB,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IACjE,CAAC;IAEM,IAAI;QACP,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;IAES,UAAU,CAAyB,MAAgB,EAAE,IAAiB;QAC5E,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;YACpB,MAAM,MAAM,GAAI,IAAY,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;YAC5C,IAAI,CAAC,CAAC,MAAM,YAAY,IAAI,CAAC;gBAAE,MAAM,IAAI,KAAK,CAAC,sCAAsC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;YAElG,OAAO,MAAM,CAAC;QAClB,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AA7BD,8DA6BC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsumptionConfig.d.ts","sourceRoot":"","sources":["../../src/consumption/ConsumptionConfig.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAC9B,
|
|
1
|
+
{"version":3,"file":"ConsumptionConfig.d.ts","sourceRoot":"","sources":["../../src/consumption/ConsumptionConfig.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAC9B,+BAA+B,EAAE,OAAO,CAAC;CAC5C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CoreAddress, CoreId } from "@nmshd/core-types";
|
|
2
2
|
import { AccountController, Transport } from "@nmshd/transport";
|
|
3
|
-
import {
|
|
3
|
+
import { AttributesController, DraftsController, IdentityMetadataController, IncomingRequestsController, NotificationItemConstructor, NotificationItemProcessorConstructor, NotificationsController, OutgoingRequestsController, RequestItemConstructor, RequestItemProcessorConstructor, SettingsController } from "../modules";
|
|
4
4
|
import { ConsumptionConfig } from "./ConsumptionConfig";
|
|
5
5
|
export declare class ConsumptionController {
|
|
6
6
|
readonly transport: Transport;
|
|
@@ -17,8 +17,6 @@ export declare class ConsumptionController {
|
|
|
17
17
|
get incomingRequests(): IncomingRequestsController;
|
|
18
18
|
private _settings;
|
|
19
19
|
get settings(): SettingsController;
|
|
20
|
-
private _attributeListeners;
|
|
21
|
-
get attributeListeners(): AttributeListenersController;
|
|
22
20
|
private _notifications;
|
|
23
21
|
get notifications(): NotificationsController;
|
|
24
22
|
private _identityMetadata;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsumptionController.d.ts","sourceRoot":"","sources":["../../src/consumption/ConsumptionController.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConsumptionController.d.ts","sourceRoot":"","sources":["../../src/consumption/ConsumptionController.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EACH,oBAAoB,EAGpB,gBAAgB,EAIhB,0BAA0B,EAC1B,0BAA0B,EAC1B,2BAA2B,EAC3B,oCAAoC,EAEpC,uBAAuB,EACvB,0BAA0B,EAM1B,sBAAsB,EACtB,+BAA+B,EAE/B,kBAAkB,EAGrB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,qBAAqB;aAEV,SAAS,EAAE,SAAS;aACpB,iBAAiB,EAAE,iBAAiB;aACpC,iBAAiB,EAAE,iBAAiB;gBAFpC,SAAS,EAAE,SAAS,EACpB,iBAAiB,EAAE,iBAAiB,EACpC,iBAAiB,EAAE,iBAAiB;IAGxD,OAAO,CAAC,WAAW,CAAuB;IAC1C,IAAW,UAAU,IAAI,oBAAoB,CAE5C;IAED,OAAO,CAAC,OAAO,CAAmB;IAClC,IAAW,MAAM,IAAI,gBAAgB,CAEpC;IAED,OAAO,CAAC,iBAAiB,CAA6B;IACtD,IAAW,gBAAgB,IAAI,0BAA0B,CAExD;IAED,OAAO,CAAC,iBAAiB,CAA6B;IACtD,IAAW,gBAAgB,IAAI,0BAA0B,CAExD;IAED,OAAO,CAAC,SAAS,CAAqB;IACtC,IAAW,QAAQ,IAAI,kBAAkB,CAExC;IAED,OAAO,CAAC,cAAc,CAA0B;IAChD,IAAW,aAAa,IAAI,uBAAuB,CAElD;IAED,OAAO,CAAC,iBAAiB,CAA6B;IACtD,IAAW,gBAAgB,IAAI,0BAA0B,CAExD;IAEY,IAAI,CACb,6BAA6B,+DAAqE,EAClG,kCAAkC,yEAA+E,GAClH,OAAO,CAAC,qBAAqB,CAAC;IAoDjC,OAAO,CAAC,+BAA+B;IAcvC,OAAO,CAAC,oCAAoC;IAS/B,mCAAmC,CAAC,IAAI,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAQ7G"}
|
|
@@ -24,9 +24,6 @@ class ConsumptionController {
|
|
|
24
24
|
get settings() {
|
|
25
25
|
return this._settings;
|
|
26
26
|
}
|
|
27
|
-
get attributeListeners() {
|
|
28
|
-
return this._attributeListeners;
|
|
29
|
-
}
|
|
30
27
|
get notifications() {
|
|
31
28
|
return this._notifications;
|
|
32
29
|
}
|
|
@@ -34,7 +31,7 @@ class ConsumptionController {
|
|
|
34
31
|
return this._identityMetadata;
|
|
35
32
|
}
|
|
36
33
|
async init(requestItemProcessorOverrides = new Map(), notificationItemProcessorOverrides = new Map()) {
|
|
37
|
-
this._attributes = await new modules_1.AttributesController(this, this.transport.eventBus, this.accountController.identity, this.consumptionConfig.
|
|
34
|
+
this._attributes = await new modules_1.AttributesController(this, this.transport.eventBus, this.accountController.identity, this.consumptionConfig.setDefaultOwnIdentityAttributes).init();
|
|
38
35
|
this._drafts = await new modules_1.DraftsController(this).init();
|
|
39
36
|
const requestItemProcessorRegistry = new modules_1.RequestItemProcessorRegistry(this, this.getDefaultRequestItemProcessors());
|
|
40
37
|
for (const [itemConstructor, processorConstructor] of requestItemProcessorOverrides) {
|
|
@@ -49,7 +46,6 @@ class ConsumptionController {
|
|
|
49
46
|
this._notifications = await new modules_1.NotificationsController(await this.accountController.getSynchronizedCollection("Notifications"), notificationItemProcessorRegistry, this, this.transport.eventBus, this.accountController.activeDevice).init();
|
|
50
47
|
this._identityMetadata = await new modules_1.IdentityMetadataController(this).init();
|
|
51
48
|
this._settings = await new modules_1.SettingsController(this).init();
|
|
52
|
-
this._attributeListeners = await new modules_1.AttributeListenersController(this, this.transport.eventBus, this.accountController.identity).init();
|
|
53
49
|
return this;
|
|
54
50
|
}
|
|
55
51
|
getDefaultRequestItemProcessors() {
|
|
@@ -61,17 +57,16 @@ class ConsumptionController {
|
|
|
61
57
|
[content_1.ProposeAttributeRequestItem, modules_1.ProposeAttributeRequestItemProcessor],
|
|
62
58
|
[content_1.ConsentRequestItem, modules_1.GenericRequestItemProcessor],
|
|
63
59
|
[content_1.AuthenticationRequestItem, modules_1.GenericRequestItemProcessor],
|
|
64
|
-
[content_1.
|
|
65
|
-
[content_1.FreeTextRequestItem, modules_1.FreeTextRequestItemProcessor],
|
|
60
|
+
[content_1.FormFieldRequestItem, modules_1.FormFieldRequestItemProcessor],
|
|
66
61
|
[content_1.TransferFileOwnershipRequestItem, modules_1.TransferFileOwnershipRequestItemProcessor]
|
|
67
62
|
]);
|
|
68
63
|
}
|
|
69
64
|
getDefaultNotificationItemProcessors() {
|
|
70
65
|
return new Map([
|
|
71
|
-
[content_1.
|
|
72
|
-
[content_1.
|
|
73
|
-
[content_1.
|
|
74
|
-
[content_1.
|
|
66
|
+
[content_1.PeerAttributeSucceededNotificationItem, modules_1.PeerAttributeSucceededNotificationItemProcessor],
|
|
67
|
+
[content_1.OwnAttributeDeletedByOwnerNotificationItem, modules_1.OwnAttributeDeletedByOwnerNotificationItemProcessor],
|
|
68
|
+
[content_1.PeerRelationshipAttributeDeletedByPeerNotificationItem, modules_1.PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor],
|
|
69
|
+
[content_1.ForwardedAttributeDeletedByPeerNotificationItem, modules_1.ForwardedAttributeDeletedByPeerNotificationItemProcessor]
|
|
75
70
|
]);
|
|
76
71
|
}
|
|
77
72
|
async cleanupDataOfDecomposedRelationship(peer, relationshipId) {
|
|
@@ -79,7 +74,6 @@ class ConsumptionController {
|
|
|
79
74
|
await this.outgoingRequests.deleteRequestsToPeer(peer);
|
|
80
75
|
await this.incomingRequests.deleteRequestsFromPeer(peer);
|
|
81
76
|
await this.settings.deleteSettingsForRelationship(relationshipId);
|
|
82
|
-
await this.attributeListeners.deletePeerAttributeListeners(peer);
|
|
83
77
|
await this.notifications.deleteNotificationsExchangedWithPeer(peer);
|
|
84
78
|
await this.identityMetadata.deleteIdentityMetadataReferencedWithPeer(peer);
|
|
85
79
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsumptionController.js","sourceRoot":"","sources":["../../src/consumption/ConsumptionController.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"ConsumptionController.js","sourceRoot":"","sources":["../../src/consumption/ConsumptionController.ts"],"names":[],"mappings":";;;AAAA,4CAcwB;AAGxB,wCA0BoB;AAGpB,MAAa,qBAAqB;IAC9B,YACoB,SAAoB,EACpB,iBAAoC,EACpC,iBAAoC;QAFpC,cAAS,GAAT,SAAS,CAAW;QACpB,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,sBAAiB,GAAjB,iBAAiB,CAAmB;IACrD,CAAC;IAGJ,IAAW,UAAU;QACjB,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;IAGD,IAAW,MAAM;QACb,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAGD,IAAW,gBAAgB;QACvB,OAAO,IAAI,CAAC,iBAAiB,CAAC;IAClC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AC,qCAA2B,EAAE,8CAAoC,CAAC;YACnE,CAAC,4BAAkB,EAAE,qCAA2B,CAAC;YACjD,CAAC,mCAAyB,EAAE,qCAA2B,CAAC;YACxD,CAAC,8BAAoB,EAAE,uCAA6B,CAAC;YACrD,CAAC,0CAAgC,EAAE,mDAAyC,CAAC;SAChF,CAAC,CAAC;IACP,CAAC;IAEO,oCAAoC;QACxC,OAAO,IAAI,GAAG,CAAoE;YAC9E,CAAC,gDAAsC,EAAE,yDAA+C,CAAC;YACzF,CAAC,oDAA0C,EAAE,6DAAmD,CAAC;YACjG,CAAC,gEAAsD,EAAE,yEAA+D,CAAC;YACzH,CAAC,yDAA+C,EAAE,kEAAwD,CAAC;SAC9G,CAAC,CAAC;IACP,CAAC;IAEM,KAAK,CAAC,mCAAmC,CAAC,IAAiB,EAAE,cAAsB;QACtF,MAAM,IAAI,CAAC,UAAU,CAAC,iCAAiC,CAAC,IAAI,CAAC,CAAC;QAC9D,MAAM,IAAI,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,IAAI,CAAC,gBAAgB,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;QACzD,MAAM,IAAI,CAAC,QAAQ,CAAC,6BAA6B,CAAC,cAAc,CAAC,CAAC;QAClE,MAAM,IAAI,CAAC,aAAa,CAAC,oCAAoC,CAAC,IAAI,CAAC,CAAC;QACpE,MAAM,IAAI,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,IAAI,CAAC,CAAC;IAC/E,CAAC;CACJ;AAhID,sDAgIC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export declare enum ConsumptionControllerName {
|
|
2
2
|
AttributesController = "AttributesController",
|
|
3
|
-
AttributeListenersController = "AttributeListenersController",
|
|
4
3
|
DraftsController = "DraftsController",
|
|
5
4
|
RequestsController = "RequestsController",
|
|
6
5
|
SettingsController = "SettingsController",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsumptionControllerName.d.ts","sourceRoot":"","sources":["../../src/consumption/ConsumptionControllerName.ts"],"names":[],"mappings":"AAAA,oBAAY,yBAAyB;IACjC,oBAAoB,yBAAyB;IAC7C,
|
|
1
|
+
{"version":3,"file":"ConsumptionControllerName.d.ts","sourceRoot":"","sources":["../../src/consumption/ConsumptionControllerName.ts"],"names":[],"mappings":"AAAA,oBAAY,yBAAyB;IACjC,oBAAoB,yBAAyB;IAC7C,gBAAgB,qBAAqB;IACrC,kBAAkB,uBAAuB;IACzC,kBAAkB,uBAAuB;IACzC,uBAAuB,4BAA4B;IACnD,0BAA0B,+BAA+B;CAC5D"}
|
|
@@ -4,7 +4,6 @@ exports.ConsumptionControllerName = void 0;
|
|
|
4
4
|
var ConsumptionControllerName;
|
|
5
5
|
(function (ConsumptionControllerName) {
|
|
6
6
|
ConsumptionControllerName["AttributesController"] = "AttributesController";
|
|
7
|
-
ConsumptionControllerName["AttributeListenersController"] = "AttributeListenersController";
|
|
8
7
|
ConsumptionControllerName["DraftsController"] = "DraftsController";
|
|
9
8
|
ConsumptionControllerName["RequestsController"] = "RequestsController";
|
|
10
9
|
ConsumptionControllerName["SettingsController"] = "SettingsController";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsumptionControllerName.js","sourceRoot":"","sources":["../../src/consumption/ConsumptionControllerName.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"ConsumptionControllerName.js","sourceRoot":"","sources":["../../src/consumption/ConsumptionControllerName.ts"],"names":[],"mappings":";;;AAAA,IAAY,yBAOX;AAPD,WAAY,yBAAyB;IACjC,0EAA6C,CAAA;IAC7C,kEAAqC,CAAA;IACrC,sEAAyC,CAAA;IACzC,sEAAyC,CAAA;IACzC,gFAAmD,CAAA;IACnD,sFAAyD,CAAA;AAC7D,CAAC,EAPW,yBAAyB,yCAAzB,yBAAyB,QAOpC"}
|
|
@@ -1,56 +1,28 @@
|
|
|
1
1
|
import { ApplicationError } from "@js-soft/ts-utils";
|
|
2
2
|
import { CoreAddress, CoreError, CoreId } from "@nmshd/core-types";
|
|
3
3
|
declare class Attributes {
|
|
4
|
+
alreadyForwarded(attributeId: CoreId, peer: CoreAddress): CoreError;
|
|
4
5
|
successorIsNotAValidAttribute(error: any): CoreError;
|
|
5
6
|
successionMustNotChangeKey(): CoreError;
|
|
6
7
|
successionPeerIsNotOwner(): CoreError;
|
|
7
|
-
predecessorSourceAttributeIsNotRepositoryAttribute(): CoreError;
|
|
8
|
-
successorSourceAttributeIsNotRepositoryAttribute(): CoreError;
|
|
9
|
-
successorSourceDoesNotSucceedPredecessorSource(): CoreError;
|
|
10
|
-
predecessorSourceContentIsNotEqualToCopyContent(): CoreError;
|
|
11
|
-
successorSourceContentIsNotEqualToCopyContent(): CoreError;
|
|
12
|
-
cannotSucceedChildOfComplexAttribute(parentId: string | CoreId): CoreError;
|
|
13
8
|
successorMustNotYetExist(): CoreError;
|
|
14
|
-
successorMustNotHaveASuccessor(comment?: string): CoreError;
|
|
15
|
-
predecessorIsNotRepositoryAttribute(): CoreError;
|
|
16
|
-
predecessorIsNotOwnSharedIdentityAttribute(): CoreError;
|
|
17
|
-
predecessorIsNotPeerSharedIdentityAttribute(): CoreError;
|
|
18
|
-
predecessorIsNotOwnSharedRelationshipAttribute(): CoreError;
|
|
19
|
-
predecessorIsNotPeerSharedRelationshipAttribute(): CoreError;
|
|
20
|
-
predecessorIsNotThirdPartyRelationshipAttribute(): CoreError;
|
|
21
|
-
successorIsNotRepositoryAttribute(): CoreError;
|
|
22
|
-
successorIsNotOwnSharedIdentityAttribute(): CoreError;
|
|
23
|
-
successorIsNotPeerSharedIdentityAttribute(): CoreError;
|
|
24
|
-
successorIsNotOwnSharedRelationshipAttribute(): CoreError;
|
|
25
|
-
successorIsNotPeerSharedRelationshipAttribute(): CoreError;
|
|
26
|
-
successorIsNotThirdPartyRelationshipAttribute(): CoreError;
|
|
27
|
-
setPredecessorIdDoesNotMatchActualPredecessorId(): CoreError;
|
|
28
9
|
predecessorDoesNotExist(): CoreError;
|
|
29
10
|
successorDoesNotExist(): CoreError;
|
|
30
|
-
successorSourceAttributeIsNotSpecified(): CoreError;
|
|
31
|
-
successorSourceAttributeDoesNotExist(): CoreError;
|
|
32
11
|
successionMustChangeContent(): CoreError;
|
|
33
12
|
successionMustNotChangeOwner(): CoreError;
|
|
34
13
|
successionMustNotChangeValueType(): CoreError;
|
|
35
14
|
successionMustNotChangeContentType(): CoreError;
|
|
36
|
-
successionMustNotChangePeer(comment?: string): CoreError;
|
|
37
|
-
successionMustNotChangeThirdParty(comment?: string): CoreError;
|
|
38
15
|
cannotSucceedAttributesWithASuccessor(successorId: string | CoreId): CoreError;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
wrongOwnerOfRepositoryAttribute(): CoreError;
|
|
46
|
-
isNotRepositoryAttribute(attributeId: string | CoreId): CoreError;
|
|
47
|
-
isNotSharedAttribute(attributeId: string | CoreId): CoreError;
|
|
48
|
-
isNotOwnSharedAttribute(attributeId: string | CoreId): CoreError;
|
|
49
|
-
isNotPeerSharedAttribute(attributeId: string | CoreId): CoreError;
|
|
50
|
-
isNotThirdPartyRelationshipAttribute(attributeId: string | CoreId): CoreError;
|
|
16
|
+
cannotSucceedSharedAttributesDeletedByPeer(): CoreError;
|
|
17
|
+
cannotSetAttributeDeletionInfo(attributeId: string | CoreId, peer?: CoreAddress | string): CoreError;
|
|
18
|
+
cannotSetForwardingDetailsForPeer(attributeId: string | CoreId, peer: CoreAddress | string): CoreError;
|
|
19
|
+
wrongRelationshipStatusToSetDeletionInfo(): CoreError;
|
|
20
|
+
wrongOwnerOfAttribute(message: string): CoreError;
|
|
21
|
+
wrongTypeOfAttribute(message: string): CoreError;
|
|
51
22
|
senderIsNotPeerOfSharedAttribute(senderId: string | CoreAddress, attributeId: string | CoreId): CoreError;
|
|
52
|
-
|
|
23
|
+
setDefaultOwnIdentityAttributesIsDisabled(): CoreError;
|
|
53
24
|
invalidTags(tags: string[]): ApplicationError;
|
|
25
|
+
forbiddenCharactersInAttribute(message: string): CoreError;
|
|
54
26
|
}
|
|
55
27
|
declare class Requests {
|
|
56
28
|
unexpectedErrorDuringRequestItemProcessing(error: any): CoreError;
|
|
@@ -67,6 +39,7 @@ declare class Requests {
|
|
|
67
39
|
inheritedFromItem(message: string): ApplicationError;
|
|
68
40
|
cannotShareRequestWithYourself(): CoreError;
|
|
69
41
|
cannotCreateRequestWithExpirationDateInPast(): CoreError;
|
|
42
|
+
cannotCreateRequestWithDuplicateId(id: string): CoreError;
|
|
70
43
|
canOnlyDeleteIncomingRequestThatIsExpired(id: string, status: string): CoreError;
|
|
71
44
|
private static readonly _decideValidation;
|
|
72
45
|
readonly decideValidation: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsumptionCoreErrors.d.ts","sourceRoot":"","sources":["../../src/consumption/ConsumptionCoreErrors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEnE,cAAM,UAAU;IACL,
|
|
1
|
+
{"version":3,"file":"ConsumptionCoreErrors.d.ts","sourceRoot":"","sources":["../../src/consumption/ConsumptionCoreErrors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEnE,cAAM,UAAU;IACL,gBAAgB,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW;IAIvD,6BAA6B,CAAC,KAAK,EAAE,GAAG;IAUxC,0BAA0B;IAO1B,wBAAwB;IAIxB,wBAAwB;IAOxB,uBAAuB;IAIvB,qBAAqB;IAIrB,2BAA2B;I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AAM,CAAC,QAAQ,CAAC,iBAAiB,CA0BvC;IAEF,SAAgB,gBAAgB;sCA3BS,MAAM;mDAIO,MAAM,GAAG,gBAAgB;+CAI7B,MAAM,GAAG,gBAAgB;iDAIvB,gBAAgB;iDAOhB,gBAAgB;MAQA;CACvE;AAED,qBAAa,qBAAqB;IAC9B,OAAc,UAAU,aAAoB;IAC5C,OAAc,QAAQ,WAAkB;CAC3C"}
|
|
@@ -4,6 +4,9 @@ exports.ConsumptionCoreErrors = void 0;
|
|
|
4
4
|
const ts_utils_1 = require("@js-soft/ts-utils");
|
|
5
5
|
const core_types_1 = require("@nmshd/core-types");
|
|
6
6
|
class Attributes {
|
|
7
|
+
alreadyForwarded(attributeId, peer) {
|
|
8
|
+
return new core_types_1.CoreError("error.consumption.attributes.alreadyForwarded", `The Attribute '${attributeId.toString()} is already forwarded to peer '${peer.toString()}'.`);
|
|
9
|
+
}
|
|
7
10
|
successorIsNotAValidAttribute(error) {
|
|
8
11
|
return new core_types_1.CoreError("error.consumption.attributes.successorIsNotAValidAttribute", "Validation failed during creation of successor.", error, undefined, error instanceof Error ? error : undefined);
|
|
9
12
|
}
|
|
@@ -13,84 +16,15 @@ class Attributes {
|
|
|
13
16
|
successionPeerIsNotOwner() {
|
|
14
17
|
return new core_types_1.CoreError("error.consumption.attributes.successionPeerIsNotOwner", "The peer of the succeeded Attribute is not its owner. This may be an attempt of spoofing.");
|
|
15
18
|
}
|
|
16
|
-
predecessorSourceAttributeIsNotRepositoryAttribute() {
|
|
17
|
-
return new core_types_1.CoreError("error.consumption.attributes.predecessorSourceAttributeIsNotRepositoryAttribute", "Predecessor sourceAttribute is not a RepositoryAttribute.");
|
|
18
|
-
}
|
|
19
|
-
successorSourceAttributeIsNotRepositoryAttribute() {
|
|
20
|
-
return new core_types_1.CoreError("error.consumption.attributes.successorSourceAttributeIsNotRepositoryAttribute", "Successor sourceAttribute is not a RepositoryAttribute.");
|
|
21
|
-
}
|
|
22
|
-
successorSourceDoesNotSucceedPredecessorSource() {
|
|
23
|
-
return new core_types_1.CoreError("error.consumption.attributes.successorSourceDoesNotSucceedPredecessorSource", "Predecessor sourceAttribute is not succeeded by successor sourceAttribute.");
|
|
24
|
-
}
|
|
25
|
-
predecessorSourceContentIsNotEqualToCopyContent() {
|
|
26
|
-
return new core_types_1.CoreError("error.consumption.attributes.predecessorSourceContentIsNotEqualToCopyContent", "Predecessor sourceAttribute content doesn't match the content of the predecessor shared Attribute copy.");
|
|
27
|
-
}
|
|
28
|
-
successorSourceContentIsNotEqualToCopyContent() {
|
|
29
|
-
return new core_types_1.CoreError("error.consumption.attributes.successorSourceContentIsNotEqualToCopyContent", "Successor sourceAttribute content doesn't match the content of the successor shared Attribute copy.");
|
|
30
|
-
}
|
|
31
|
-
cannotSucceedChildOfComplexAttribute(parentId) {
|
|
32
|
-
return new core_types_1.CoreError("error.consumption.attributes.cannotSucceedChildOfComplexAttribute", `The Attribute you want to succeed is a child Attribute of a complex Attribute (id: '${parentId}'), and cannot be succeeded on its own. Instead, succeed the parent which will implicitly succeed all its children.`);
|
|
33
|
-
}
|
|
34
19
|
successorMustNotYetExist() {
|
|
35
20
|
return new core_types_1.CoreError("error.consumption.attributes.successorMustNotYetExist", "The predecessor Attribute's successor must not exist. It will be created by the succession handlers and must not be created manually.");
|
|
36
21
|
}
|
|
37
|
-
successorMustNotHaveASuccessor(comment) {
|
|
38
|
-
let errorMessage = "The successor must not have a successor itself.";
|
|
39
|
-
if (comment)
|
|
40
|
-
errorMessage += ` ${comment}`;
|
|
41
|
-
return new core_types_1.CoreError("error.consumption.attributes.successorMustNotHaveASuccessor", errorMessage);
|
|
42
|
-
}
|
|
43
|
-
predecessorIsNotRepositoryAttribute() {
|
|
44
|
-
return new core_types_1.CoreError("error.consumption.attributes.predecessorIsNotRepositoryAttribute", "Predecessor is not a RepositoryAttribute.");
|
|
45
|
-
}
|
|
46
|
-
predecessorIsNotOwnSharedIdentityAttribute() {
|
|
47
|
-
return new core_types_1.CoreError("error.consumption.attributes.predecessorIsNotOwnSharedIdentityAttribute", "Predecessor is not an own shared IdentityAttribute.");
|
|
48
|
-
}
|
|
49
|
-
predecessorIsNotPeerSharedIdentityAttribute() {
|
|
50
|
-
return new core_types_1.CoreError("error.consumption.attributes.predecessorIsNotPeerSharedIdentityAttribute", "Predecessor is not a peer shared IdentityAttribute.");
|
|
51
|
-
}
|
|
52
|
-
predecessorIsNotOwnSharedRelationshipAttribute() {
|
|
53
|
-
return new core_types_1.CoreError("error.consumption.attributes.predecessorIsNotOwnSharedRelationshipAttribute", "Predecessor is not an own shared RelationshipAttribute.");
|
|
54
|
-
}
|
|
55
|
-
predecessorIsNotPeerSharedRelationshipAttribute() {
|
|
56
|
-
return new core_types_1.CoreError("error.consumption.attributes.predecessorIsNotPeerSharedRelationshipAttribute", "Predecessor is not a peer shared RelationshipAttribute.");
|
|
57
|
-
}
|
|
58
|
-
predecessorIsNotThirdPartyRelationshipAttribute() {
|
|
59
|
-
return new core_types_1.CoreError("error.consumption.attributes.predecessorIsNotThirdPartyRelationshipAttribute", "Predecessor is not a ThirdPartyRelationshipAttribute.");
|
|
60
|
-
}
|
|
61
|
-
successorIsNotRepositoryAttribute() {
|
|
62
|
-
return new core_types_1.CoreError("error.consumption.attributes.successorIsNotRepositoryAttribute", "Successor is not a RepositoryAttribute.");
|
|
63
|
-
}
|
|
64
|
-
successorIsNotOwnSharedIdentityAttribute() {
|
|
65
|
-
return new core_types_1.CoreError("error.consumption.attributes.successorIsNotOwnSharedIdentityAttribute", "Successor is not an own shared IdentityAttribute.");
|
|
66
|
-
}
|
|
67
|
-
successorIsNotPeerSharedIdentityAttribute() {
|
|
68
|
-
return new core_types_1.CoreError("error.consumption.attributes.successorIsNotPeerSharedIdentityAttribute", "Successor is not a peer shared IdentityAttribute.");
|
|
69
|
-
}
|
|
70
|
-
successorIsNotOwnSharedRelationshipAttribute() {
|
|
71
|
-
return new core_types_1.CoreError("error.consumption.attributes.successorIsNotOwnSharedRelationshipAttribute", "Successor is not an own shared RelationshipAttribute.");
|
|
72
|
-
}
|
|
73
|
-
successorIsNotPeerSharedRelationshipAttribute() {
|
|
74
|
-
return new core_types_1.CoreError("error.consumption.attributes.successorIsNotPeerSharedRelationshipAttribute", "Successor is not a peer shared RelationshipAttribute.");
|
|
75
|
-
}
|
|
76
|
-
successorIsNotThirdPartyRelationshipAttribute() {
|
|
77
|
-
return new core_types_1.CoreError("error.consumption.attributes.successorIsNotThirdPartyRelationshipAttribute", "Successor is not a ThirdPartyRelationshipAttribute.");
|
|
78
|
-
}
|
|
79
|
-
setPredecessorIdDoesNotMatchActualPredecessorId() {
|
|
80
|
-
return new core_types_1.CoreError("error.consumption.attributes.setPredecessorIdDoesNotMatchActualPredecessorId", "The predecessor's ID and the explicitly set value for the successor's succeeds field don't match.");
|
|
81
|
-
}
|
|
82
22
|
predecessorDoesNotExist() {
|
|
83
23
|
return new core_types_1.CoreError("error.consumption.attributes.predecessorDoesNotExist", "The predecessor does not exist.");
|
|
84
24
|
}
|
|
85
25
|
successorDoesNotExist() {
|
|
86
26
|
return new core_types_1.CoreError("error.consumption.attributes.successorDoesNotExist", "The successor does not exist.");
|
|
87
27
|
}
|
|
88
|
-
successorSourceAttributeIsNotSpecified() {
|
|
89
|
-
return new core_types_1.CoreError("error.consumption.attributes.successorSourceAttributeIsNotSpecified", "You must specify the sourceAttribute of the successor.");
|
|
90
|
-
}
|
|
91
|
-
successorSourceAttributeDoesNotExist() {
|
|
92
|
-
return new core_types_1.CoreError("error.consumption.attributes.successorSourceAttributeDoesNotExist", "The successor sourceAttribute does not exist.");
|
|
93
|
-
}
|
|
94
28
|
successionMustChangeContent() {
|
|
95
29
|
return new core_types_1.CoreError("error.consumption.attributes.successionMustChangeContent", "The content of the successor matches that of the predecessor. An Attribute succession must change the Attribute's content.");
|
|
96
30
|
}
|
|
@@ -103,66 +37,42 @@ class Attributes {
|
|
|
103
37
|
successionMustNotChangeContentType() {
|
|
104
38
|
return new core_types_1.CoreError("error.consumption.attributes.successionMustNotChangeContentType", "The successor Attribute's content type does not match that of the predecessor. An Attribute succession must not change the Attribute's content type, i.e. an IdentityAttribute must not be succeeded by a RelationshipAttribute and v.v.");
|
|
105
39
|
}
|
|
106
|
-
successionMustNotChangePeer(comment) {
|
|
107
|
-
let errorMessage = "The peer of the shared Attribute must not change.";
|
|
108
|
-
if (comment)
|
|
109
|
-
errorMessage += ` ${comment}`;
|
|
110
|
-
return new core_types_1.CoreError("error.consumption.attributes.successionMustNotChangePeer", errorMessage);
|
|
111
|
-
}
|
|
112
|
-
successionMustNotChangeThirdParty(comment) {
|
|
113
|
-
let errorMessage = "The thirdPartyAddress of the shared Attribute must not change.";
|
|
114
|
-
if (comment)
|
|
115
|
-
errorMessage += ` ${comment}`;
|
|
116
|
-
return new core_types_1.CoreError("error.consumption.attributes.successionMustNotChangeThirdParty", errorMessage);
|
|
117
|
-
}
|
|
118
40
|
cannotSucceedAttributesWithASuccessor(successorId) {
|
|
119
41
|
return new core_types_1.CoreError("error.consumption.attributes.cannotSucceedAttributesWithASuccessor", `The Attribute you want to succeed has a successor (id: ${successorId}). You cannot succeed Attributes with a successor. Instead, succeed the successor.`);
|
|
120
42
|
}
|
|
121
|
-
|
|
122
|
-
return new core_types_1.CoreError("error.consumption.attributes.
|
|
43
|
+
cannotSucceedSharedAttributesDeletedByPeer() {
|
|
44
|
+
return new core_types_1.CoreError("error.consumption.attributes.cannotSucceedSharedAttributesDeletedByPeer", "You cannot succeed shared Attributes that are already deleted by the peer.");
|
|
123
45
|
}
|
|
124
|
-
|
|
125
|
-
|
|
46
|
+
cannotSetAttributeDeletionInfo(attributeId, peer) {
|
|
47
|
+
const errorMessageWithPeer = `You cannot set the deletionInfo of Attribute '${attributeId.toString()}' for peer '${peer?.toString()}' since it isn't shared with them or already deleted by them.`;
|
|
48
|
+
const errorMessageWithoutPeer = `You cannot set the deletionInfo of Attribute '${attributeId.toString()}' since it is already deleted by the peer.`;
|
|
49
|
+
const errorMessage = peer ? errorMessageWithPeer : errorMessageWithoutPeer;
|
|
50
|
+
return new core_types_1.CoreError("error.consumption.attributes.cannotSetAttributeDeletionInfo", errorMessage);
|
|
126
51
|
}
|
|
127
|
-
|
|
128
|
-
return new core_types_1.CoreError("error.consumption.attributes.
|
|
52
|
+
cannotSetForwardingDetailsForPeer(attributeId, peer) {
|
|
53
|
+
return new core_types_1.CoreError("error.consumption.attributes.cannotSetForwardingDetailsForPeer", `You cannot set the ForwardingDetails of Attribute '${attributeId.toString()}' for peer '${peer.toString()}' since they are the peer of the Relationship in whose context the RelationshipAttribute exists.`);
|
|
129
54
|
}
|
|
130
|
-
|
|
131
|
-
return new core_types_1.CoreError("error.consumption.attributes.
|
|
55
|
+
wrongRelationshipStatusToSetDeletionInfo() {
|
|
56
|
+
return new core_types_1.CoreError("error.consumption.attributes.wrongRelationshipStatusToSetDeletionInfo", "In order to manually set the deletionInfo of an Attribute, the corresponding Relationship must have status 'DeletionProposed'.");
|
|
132
57
|
}
|
|
133
|
-
|
|
134
|
-
return new core_types_1.CoreError("error.consumption.attributes.
|
|
58
|
+
wrongOwnerOfAttribute(message) {
|
|
59
|
+
return new core_types_1.CoreError("error.consumption.attributes.wrongOwnerOfAttribute", message);
|
|
135
60
|
}
|
|
136
|
-
|
|
137
|
-
return new core_types_1.CoreError("error.consumption.attributes.
|
|
138
|
-
}
|
|
139
|
-
wrongOwnerOfRepositoryAttribute() {
|
|
140
|
-
return new core_types_1.CoreError("error.consumption.attributes.wrongOwnerOfRepositoryAttribute", "A wrong owner was provided wanting to create a RepositoryAttribute. You can only create RepositoryAttributes for yourself.");
|
|
141
|
-
}
|
|
142
|
-
isNotRepositoryAttribute(attributeId) {
|
|
143
|
-
return new core_types_1.CoreError("error.consumption.attributes.isNotRepositoryAttribute", `The Attribute (id: ${attributeId}) is not a RepositoryAttribute.`);
|
|
144
|
-
}
|
|
145
|
-
isNotSharedAttribute(attributeId) {
|
|
146
|
-
return new core_types_1.CoreError("error.consumption.attributes.isNotSharedAttribute", `The Attribute (id: '${attributeId}') is not a shared Attribute.`);
|
|
147
|
-
}
|
|
148
|
-
isNotOwnSharedAttribute(attributeId) {
|
|
149
|
-
return new core_types_1.CoreError("error.consumption.attributes.isNotOwnSharedAttribute", `The Attribute (id: '${attributeId}') is not an own shared Attribute.`);
|
|
150
|
-
}
|
|
151
|
-
isNotPeerSharedAttribute(attributeId) {
|
|
152
|
-
return new core_types_1.CoreError("error.consumption.attributes.isNotPeerSharedAttribute", `The Attribute (id: '${attributeId}') is not a peer shared Attribute.`);
|
|
153
|
-
}
|
|
154
|
-
isNotThirdPartyRelationshipAttribute(attributeId) {
|
|
155
|
-
return new core_types_1.CoreError("error.consumption.attributes.isNotThirdPartyRelationshipAttribute", `The Attribute (id: '${attributeId}') is not a ThirdPartyRelationshipAttribute.`);
|
|
61
|
+
wrongTypeOfAttribute(message) {
|
|
62
|
+
return new core_types_1.CoreError("error.consumption.attributes.wrongTypeOfAttribute", message);
|
|
156
63
|
}
|
|
157
64
|
senderIsNotPeerOfSharedAttribute(senderId, attributeId) {
|
|
158
65
|
return new core_types_1.CoreError("error.consumption.attributes.senderIsNotPeerOfSharedAttribute", `The sender (id: '${senderId}') of the Notification is not the peer you shared the Attribute (id: '${attributeId}') with.`);
|
|
159
66
|
}
|
|
160
|
-
|
|
161
|
-
return new core_types_1.CoreError("error.consumption.attributes.
|
|
67
|
+
setDefaultOwnIdentityAttributesIsDisabled() {
|
|
68
|
+
return new core_types_1.CoreError("error.consumption.attributes.setDefaultOwnIdentityAttributesIsDisabled", "Setting default OwnIdentityAttributes is disabled for this Account.");
|
|
162
69
|
}
|
|
163
70
|
invalidTags(tags) {
|
|
164
71
|
return new ts_utils_1.ApplicationError("error.consumption.attributes.invalidTags", `Detected invalidity of the following tags: '${tags.join("', '")}'.`);
|
|
165
72
|
}
|
|
73
|
+
forbiddenCharactersInAttribute(message) {
|
|
74
|
+
return new core_types_1.CoreError("error.consumption.attributes.forbiddenCharactersInAttribute", message);
|
|
75
|
+
}
|
|
166
76
|
}
|
|
167
77
|
class Requests {
|
|
168
78
|
constructor() {
|
|
@@ -210,6 +120,9 @@ class Requests {
|
|
|
210
120
|
cannotCreateRequestWithExpirationDateInPast() {
|
|
211
121
|
return new core_types_1.CoreError("error.consumption.requests.cannotCreateRequestWithExpirationDateInPast", "You cannot create a Request with an expiration date that is in the past.");
|
|
212
122
|
}
|
|
123
|
+
cannotCreateRequestWithDuplicateId(id) {
|
|
124
|
+
return new core_types_1.CoreError("error.consumption.requests.cannotCreateRequestWithDuplicateId", `You cannot create the Request since there already is a Request with the id '${id}'.`);
|
|
125
|
+
}
|
|
213
126
|
canOnlyDeleteIncomingRequestThatIsExpired(id, status) {
|
|
214
127
|
return new core_types_1.CoreError("error.consumption.requests.canOnlyDeleteIncomingRequestThatIsExpired", `The incoming Request '${id}' is in status '${status}'. At the moment, you can only delete incoming Requests that are expired.`);
|
|
215
128
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsumptionCoreErrors.js","sourceRoot":"","sources":["../../src/consumption/ConsumptionCoreErrors.ts"],"names":[],"mappings":";;;AAAA,gDAAqD;AACrD,kDAAmE;AAEnE,MAAM,UAAU;IACL,
|
|
1
|
+
{"version":3,"file":"ConsumptionCoreErrors.js","sourceRoot":"","sources":["../../src/consumption/ConsumptionCoreErrors.ts"],"names":[],"mappings":";;;AAAA,gDAAqD;AACrD,kDAAmE;AAEnE,MAAM,UAAU;IACL,gBAAgB,CAAC,WAAmB,EAAE,IAAiB;QAC1D,OAAO,IAAI,sBAAS,CAAC,+CAA+C,EAAE,kBAAkB,WAAW,CAAC,QAAQ,EAAE,kCAAkC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IACzK,CAAC;IAEM,6BAA6B,CAAC,KAAU;QAC3C,OAAO,IAAI,sBAAS,CAChB,4DAA4D,EAC5D,iDAAiD,EACjD,KAAK,EACL,SAAS,EACT,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAA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ACvB,oFAAoF,EACpF,qDAAqD,CACxD,CAAC;QACN,CAAC;QAEM,qCAAqC;YACxC,OAAO,IAAI,2BAAgB,CACvB,oFAAoF,EACpF,qDAAqD,CACxD,CAAC;QACN,CAAC;KACJ,AA1BwC,CA0BvC;;AAKN,MAAa,qBAAqB;aAChB,eAAU,GAAG,IAAI,UAAU,EAAE,CAAC;aAC9B,aAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;;AAF5C,sDAGC"}
|
|
@@ -3,8 +3,8 @@ export declare class ConsumptionIds {
|
|
|
3
3
|
static readonly draft: CoreIdHelper;
|
|
4
4
|
static readonly setting: CoreIdHelper;
|
|
5
5
|
static readonly attribute: CoreIdHelper;
|
|
6
|
+
static readonly attributeForwardingDetails: CoreIdHelper;
|
|
6
7
|
static readonly request: CoreIdHelper;
|
|
7
|
-
static readonly attributeListener: CoreIdHelper;
|
|
8
8
|
static readonly notification: CoreIdHelper;
|
|
9
9
|
static readonly identityMetadata: CoreIdHelper;
|
|
10
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsumptionIds.d.ts","sourceRoot":"","sources":["../../src/consumption/ConsumptionIds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,qBAAa,cAAc;IACvB,gBAAuB,KAAK,eAA8B;IAC1D,gBAAuB,OAAO,eAA8B;IAE5D,gBAAuB,SAAS,eAA2B;IAC3D,gBAAuB,
|
|
1
|
+
{"version":3,"file":"ConsumptionIds.d.ts","sourceRoot":"","sources":["../../src/consumption/ConsumptionIds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,qBAAa,cAAc;IACvB,gBAAuB,KAAK,eAA8B;IAC1D,gBAAuB,OAAO,eAA8B;IAE5D,gBAAuB,SAAS,eAA2B;IAC3D,gBAAuB,0BAA0B,eAA6B;IAC9E,gBAAuB,OAAO,eAA2B;IACzD,gBAAuB,YAAY,eAA2B;IAC9D,gBAAuB,gBAAgB,eAA2B;CACrE"}
|
|
@@ -6,8 +6,8 @@ class ConsumptionIds {
|
|
|
6
6
|
static { this.draft = new core_types_1.CoreIdHelper("LCLDRF"); }
|
|
7
7
|
static { this.setting = new core_types_1.CoreIdHelper("LCLSET"); }
|
|
8
8
|
static { this.attribute = new core_types_1.CoreIdHelper("ATT"); }
|
|
9
|
+
static { this.attributeForwardingDetails = new core_types_1.CoreIdHelper("ATTFD"); }
|
|
9
10
|
static { this.request = new core_types_1.CoreIdHelper("REQ"); }
|
|
10
|
-
static { this.attributeListener = new core_types_1.CoreIdHelper("ATL"); }
|
|
11
11
|
static { this.notification = new core_types_1.CoreIdHelper("NOT"); }
|
|
12
12
|
static { this.identityMetadata = new core_types_1.CoreIdHelper("IDM"); }
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsumptionIds.js","sourceRoot":"","sources":["../../src/consumption/ConsumptionIds.ts"],"names":[],"mappings":";;;AAAA,kDAAiD;AAEjD,MAAa,cAAc;aACA,UAAK,GAAG,IAAI,yBAAY,CAAC,QAAQ,CAAC,CAAC;aACnC,YAAO,GAAG,IAAI,yBAAY,CAAC,QAAQ,CAAC,CAAC;aAErC,cAAS,GAAG,IAAI,yBAAY,CAAC,KAAK,CAAC,CAAC;aACpC,
|
|
1
|
+
{"version":3,"file":"ConsumptionIds.js","sourceRoot":"","sources":["../../src/consumption/ConsumptionIds.ts"],"names":[],"mappings":";;;AAAA,kDAAiD;AAEjD,MAAa,cAAc;aACA,UAAK,GAAG,IAAI,yBAAY,CAAC,QAAQ,CAAC,CAAC;aACnC,YAAO,GAAG,IAAI,yBAAY,CAAC,QAAQ,CAAC,CAAC;aAErC,cAAS,GAAG,IAAI,yBAAY,CAAC,KAAK,CAAC,CAAC;aACpC,+BAA0B,GAAG,IAAI,yBAAY,CAAC,OAAO,CAAC,CAAC;aACvD,YAAO,GAAG,IAAI,yBAAY,CAAC,KAAK,CAAC,CAAC;aAClC,iBAAY,GAAG,IAAI,yBAAY,CAAC,KAAK,CAAC,CAAC;aACvC,qBAAgB,GAAG,IAAI,yBAAY,CAAC,KAAK,CAAC,CAAC;;AARtE,wCASC"}
|