@nmshd/consumption 7.0.0-alpha.70 → 7.0.0-alpha.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/buildInformation.js +4 -4
- package/dist/consumption/ConsumptionConfig.d.ts +1 -1
- package/dist/consumption/ConsumptionConfig.d.ts.map +1 -1
- package/dist/consumption/ConsumptionController.d.ts.map +1 -1
- package/dist/consumption/ConsumptionController.js +5 -5
- package/dist/consumption/ConsumptionController.js.map +1 -1
- package/dist/consumption/ConsumptionCoreErrors.d.ts +7 -37
- package/dist/consumption/ConsumptionCoreErrors.d.ts.map +1 -1
- package/dist/consumption/ConsumptionCoreErrors.js +18 -114
- package/dist/consumption/ConsumptionCoreErrors.js.map +1 -1
- package/dist/consumption/ConsumptionIds.d.ts +1 -0
- package/dist/consumption/ConsumptionIds.d.ts.map +1 -1
- package/dist/consumption/ConsumptionIds.js +1 -0
- package/dist/consumption/ConsumptionIds.js.map +1 -1
- package/dist/modules/attributes/AttributesController.d.ts +106 -69
- package/dist/modules/attributes/AttributesController.d.ts.map +1 -1
- package/dist/modules/attributes/AttributesController.js +640 -732
- 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 +1 -1
- package/dist/modules/attributes/events/AttributeWasViewedAtChangedEvent.d.ts.map +1 -1
- 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 +5 -9
- package/dist/modules/attributes/events/index.d.ts.map +1 -1
- package/dist/modules/attributes/events/index.js +5 -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/attributes/local/attributeTypes/OwnIdentityAttribute.js +40 -0
- 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/attributes/local/deletionInfos/AbstractAttributeDeletionInfo.js +28 -0
- 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/attributes/local/deletionInfos/index.js +20 -0
- 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/attributes/local/successorParams/OwnIdentityAttributeSuccessorParams.js +29 -0
- 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/attributes/local/successorParams/index.js +22 -0
- package/dist/modules/attributes/local/successorParams/index.js.map +1 -0
- 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/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 +54 -20
- 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/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 +83 -97
- 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 +136 -133
- 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 +94 -90
- 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 +7 -11
- 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 +2 -2
- package/dist/modules/requests/itemProcessors/utility/validateAttributeMatchesWithQuery.js.map +1 -1
- package/dist/modules/requests/local/LocalRequest.js +1 -1
- 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 +17 -16
- package/dist/modules/requests/outgoing/OutgoingRequestsController.js.map +1 -1
- package/package.json +4 -4
- 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 -112
- package/dist/modules/attributes/local/LocalAttribute.d.ts.map +0 -1
- package/dist/modules/attributes/local/LocalAttribute.js +0 -186
- 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
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PeerRelationshipAttribute = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const content_1 = require("@nmshd/content");
|
|
15
|
+
const core_types_1 = require("@nmshd/core-types");
|
|
16
|
+
const ts_simple_nameof_1 = require("ts-simple-nameof");
|
|
17
|
+
const ConsumptionCoreErrors_1 = require("../../../../consumption/ConsumptionCoreErrors");
|
|
18
|
+
const deletionInfos_1 = require("../deletionInfos");
|
|
19
|
+
const LocalAttribute_1 = require("./LocalAttribute");
|
|
20
|
+
let PeerRelationshipAttribute = class PeerRelationshipAttribute extends LocalAttribute_1.LocalAttribute {
|
|
21
|
+
constructor() {
|
|
22
|
+
super(...arguments);
|
|
23
|
+
this.technicalProperties = [
|
|
24
|
+
...this.technicalProperties,
|
|
25
|
+
"@type",
|
|
26
|
+
"@context",
|
|
27
|
+
(0, ts_simple_nameof_1.nameof)((r) => r.peer),
|
|
28
|
+
(0, ts_simple_nameof_1.nameof)((r) => r.sourceReference),
|
|
29
|
+
(0, ts_simple_nameof_1.nameof)((r) => r.deletionInfo)
|
|
30
|
+
];
|
|
31
|
+
}
|
|
32
|
+
isDeletedByEmitterOrToBeDeleted() {
|
|
33
|
+
if (!this.deletionInfo)
|
|
34
|
+
return false;
|
|
35
|
+
const deletionStatuses = [deletionInfos_1.ReceivedAttributeDeletionStatus.DeletedByEmitter, deletionInfos_1.ReceivedAttributeDeletionStatus.ToBeDeleted];
|
|
36
|
+
return deletionStatuses.includes(this.deletionInfo.deletionStatus);
|
|
37
|
+
}
|
|
38
|
+
isToBeDeleted() {
|
|
39
|
+
return this.deletionInfo?.deletionStatus === deletionInfos_1.ReceivedAttributeDeletionStatus.ToBeDeleted;
|
|
40
|
+
}
|
|
41
|
+
setPeerDeletionInfo(deletionInfo, overrideDeleted = false) {
|
|
42
|
+
if (!overrideDeleted && this.deletionInfo?.deletionStatus === deletionInfos_1.ReceivedAttributeDeletionStatus.DeletedByEmitter) {
|
|
43
|
+
throw ConsumptionCoreErrors_1.ConsumptionCoreErrors.attributes.cannotSetAttributeDeletionInfo(this.id);
|
|
44
|
+
}
|
|
45
|
+
this.deletionInfo = deletionInfo;
|
|
46
|
+
return this;
|
|
47
|
+
}
|
|
48
|
+
static from(value) {
|
|
49
|
+
return super.fromAny(value);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
exports.PeerRelationshipAttribute = PeerRelationshipAttribute;
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, ts_serval_1.serialize)({ customGenerator: (value) => value.toJSON(true) }),
|
|
55
|
+
(0, ts_serval_1.validate)(),
|
|
56
|
+
__metadata("design:type", content_1.RelationshipAttribute)
|
|
57
|
+
], PeerRelationshipAttribute.prototype, "content", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, ts_serval_1.validate)(),
|
|
60
|
+
(0, ts_serval_1.serialize)(),
|
|
61
|
+
__metadata("design:type", core_types_1.CoreAddress)
|
|
62
|
+
], PeerRelationshipAttribute.prototype, "peer", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, ts_serval_1.serialize)(),
|
|
65
|
+
(0, ts_serval_1.validate)(),
|
|
66
|
+
__metadata("design:type", core_types_1.CoreId)
|
|
67
|
+
], PeerRelationshipAttribute.prototype, "sourceReference", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, ts_serval_1.serialize)(),
|
|
70
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
71
|
+
__metadata("design:type", deletionInfos_1.ReceivedAttributeDeletionInfo)
|
|
72
|
+
], PeerRelationshipAttribute.prototype, "deletionInfo", void 0);
|
|
73
|
+
exports.PeerRelationshipAttribute = PeerRelationshipAttribute = __decorate([
|
|
74
|
+
(0, ts_serval_1.type)("PeerRelationshipAttribute")
|
|
75
|
+
], PeerRelationshipAttribute);
|
|
76
|
+
//# sourceMappingURL=PeerRelationshipAttribute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PeerRelationshipAttribute.js","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/attributeTypes/PeerRelationshipAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA+D;AAC/D,4CAA0G;AAC1G,kDAA+E;AAC/E,uDAA0C;AAC1C,yFAAsF;AACtF,oDAAqK;AACrK,qDAAuF;AAkBhF,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,+BAAc;IAAtD;;QACsB,wBAAmB,GAAa;YACrD,GAAG,IAAI,CAAC,mBAAmB;YAC3B,OAAO;YACP,UAAU;YACV,IAAA,yBAAM,EAA4B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;YAChD,IAAA,yBAAM,EAA4B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,CAAC;YAC3D,IAAA,yBAAM,EAA4B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC;SAC3D,CAAC;IA4CN,CAAC;IAvBU,+BAA+B;QAClC,IAAI,CAAC,IAAI,CAAC,YAAY;YAAE,OAAO,KAAK,CAAC;QAErC,MAAM,gBAAgB,GAAG,CAAC,+CAA+B,CAAC,gBAAgB,EAAE,+CAA+B,CAAC,WAAW,CAAC,CAAC;QACzH,OAAO,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC;IACvE,CAAC;IAEM,aAAa;QAChB,OAAO,IAAI,CAAC,YAAY,EAAE,cAAc,KAAK,+CAA+B,CAAC,WAAW,CAAC;IAC7F,CAAC;IAEM,mBAAmB,CAAC,YAAuD,EAAE,eAAe,GAAG,KAAK;QACvG,IAAI,CAAC,eAAe,IAAI,IAAI,CAAC,YAAY,EAAE,cAAc,KAAK,+CAA+B,CAAC,gBAAgB,EAAE,CAAC;YAC7G,MAAM,6CAAqB,CAAC,UAAU,CAAC,8BAA8B,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACnF,CAAC;QAED,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,MAAM,CAAU,IAAI,CAAC,KAAiE;QACzF,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAA8B,CAAC;IAC7D,CAAC;CACJ,CAAA;AApDY,8DAAyB;AAYlB;IAFf,IAAA,qBAAS,EAAC,EAAE,eAAe,EAAE,CAAC,KAA4B,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;IACpF,IAAA,oBAAQ,GAAE;8BACc,+BAAqB;0DAAC;AAIxC;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACC,wBAAW;uDAAC;AAIlB;IAFN,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACa,mBAAM;kEAAC;AAIxB;IAFN,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACP,6CAA6B;+DAAC;oCAxB3C,yBAAyB;IADrC,IAAA,gBAAI,EAAC,2BAA2B,CAAC;GACrB,yBAAyB,CAoDrC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { IRelationshipAttribute, RelationshipAttribute, RelationshipAttributeJSON } from "@nmshd/content";
|
|
2
|
+
import { CoreAddress, CoreId, ICoreAddress, ICoreId } from "@nmshd/core-types";
|
|
3
|
+
import { IReceivedAttributeDeletionInfo, ReceivedAttributeDeletionInfo, ReceivedAttributeDeletionInfoJSON } from "../deletionInfos";
|
|
4
|
+
import { ILocalAttribute, LocalAttribute, LocalAttributeJSON } from "./LocalAttribute";
|
|
5
|
+
export interface ThirdPartyRelationshipAttributeJSON extends LocalAttributeJSON {
|
|
6
|
+
"@type": "ThirdPartyRelationshipAttribute";
|
|
7
|
+
content: RelationshipAttributeJSON;
|
|
8
|
+
peer: string;
|
|
9
|
+
sourceReference: string;
|
|
10
|
+
initialAttributePeer: string;
|
|
11
|
+
deletionInfo?: ReceivedAttributeDeletionInfoJSON;
|
|
12
|
+
}
|
|
13
|
+
export interface IThirdPartyRelationshipAttribute extends ILocalAttribute {
|
|
14
|
+
content: IRelationshipAttribute;
|
|
15
|
+
peer: ICoreAddress;
|
|
16
|
+
sourceReference: ICoreId;
|
|
17
|
+
initialAttributePeer: ICoreAddress;
|
|
18
|
+
deletionInfo?: IReceivedAttributeDeletionInfo;
|
|
19
|
+
}
|
|
20
|
+
export declare class ThirdPartyRelationshipAttribute extends LocalAttribute implements IThirdPartyRelationshipAttribute {
|
|
21
|
+
readonly technicalProperties: string[];
|
|
22
|
+
content: RelationshipAttribute;
|
|
23
|
+
peer: CoreAddress;
|
|
24
|
+
sourceReference: CoreId;
|
|
25
|
+
initialAttributePeer: CoreAddress;
|
|
26
|
+
deletionInfo?: ReceivedAttributeDeletionInfo;
|
|
27
|
+
isDeletedByEmitterOrToBeDeleted(): boolean;
|
|
28
|
+
isToBeDeleted(): boolean;
|
|
29
|
+
setPeerDeletionInfo(deletionInfo: ReceivedAttributeDeletionInfo | undefined, overrideDeleted?: boolean): this;
|
|
30
|
+
peerIsOwner(): boolean;
|
|
31
|
+
static from(value: IThirdPartyRelationshipAttribute | ThirdPartyRelationshipAttributeJSON): ThirdPartyRelationshipAttribute;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=ThirdPartyRelationshipAttribute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThirdPartyRelationshipAttribute.d.ts","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/attributeTypes/ThirdPartyRelationshipAttribute.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAC1G,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG/E,OAAO,EAAE,8BAA8B,EAAE,6BAA6B,EAAE,iCAAiC,EAAmC,MAAM,kBAAkB,CAAC;AACrK,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEvF,MAAM,WAAW,mCAAoC,SAAQ,kBAAkB;IAC3E,OAAO,EAAE,iCAAiC,CAAC;IAC3C,OAAO,EAAE,yBAAyB,CAAC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,YAAY,CAAC,EAAE,iCAAiC,CAAC;CACpD;AAED,MAAM,WAAW,gCAAiC,SAAQ,eAAe;IACrE,OAAO,EAAE,sBAAsB,CAAC;IAChC,IAAI,EAAE,YAAY,CAAC;IACnB,eAAe,EAAE,OAAO,CAAC;IACzB,oBAAoB,EAAE,YAAY,CAAC;IACnC,YAAY,CAAC,EAAE,8BAA8B,CAAC;CACjD;AAED,qBACa,+BAAgC,SAAQ,cAAe,YAAW,gCAAgC;IAC3G,SAAyB,mBAAmB,EAAE,MAAM,EAAE,CAQpD;IAIc,OAAO,EAAE,qBAAqB,CAAC;IAIxC,IAAI,EAAE,WAAW,CAAC;IAIlB,eAAe,EAAE,MAAM,CAAC;IAIxB,oBAAoB,EAAE,WAAW,CAAC;IAIlC,YAAY,CAAC,EAAE,6BAA6B,CAAC;IAE7C,+BAA+B,IAAI,OAAO;IAO1C,aAAa,IAAI,OAAO;IAIxB,mBAAmB,CAAC,YAAY,EAAE,6BAA6B,GAAG,SAAS,EAAE,eAAe,UAAQ,GAAG,IAAI;IAS3G,WAAW,IAAI,OAAO;WAIN,IAAI,CAAC,KAAK,EAAE,gCAAgC,GAAG,mCAAmC,GAAG,+BAA+B;CAG9I"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ThirdPartyRelationshipAttribute = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const content_1 = require("@nmshd/content");
|
|
15
|
+
const core_types_1 = require("@nmshd/core-types");
|
|
16
|
+
const ts_simple_nameof_1 = require("ts-simple-nameof");
|
|
17
|
+
const ConsumptionCoreErrors_1 = require("../../../../consumption/ConsumptionCoreErrors");
|
|
18
|
+
const deletionInfos_1 = require("../deletionInfos");
|
|
19
|
+
const LocalAttribute_1 = require("./LocalAttribute");
|
|
20
|
+
let ThirdPartyRelationshipAttribute = class ThirdPartyRelationshipAttribute extends LocalAttribute_1.LocalAttribute {
|
|
21
|
+
constructor() {
|
|
22
|
+
super(...arguments);
|
|
23
|
+
this.technicalProperties = [
|
|
24
|
+
...this.technicalProperties,
|
|
25
|
+
"@type",
|
|
26
|
+
"@context",
|
|
27
|
+
(0, ts_simple_nameof_1.nameof)((r) => r.peer),
|
|
28
|
+
(0, ts_simple_nameof_1.nameof)((r) => r.sourceReference),
|
|
29
|
+
(0, ts_simple_nameof_1.nameof)((r) => r.initialAttributePeer),
|
|
30
|
+
(0, ts_simple_nameof_1.nameof)((r) => r.deletionInfo)
|
|
31
|
+
];
|
|
32
|
+
}
|
|
33
|
+
isDeletedByEmitterOrToBeDeleted() {
|
|
34
|
+
if (!this.deletionInfo)
|
|
35
|
+
return false;
|
|
36
|
+
const deletionStatuses = [deletionInfos_1.ReceivedAttributeDeletionStatus.DeletedByEmitter, deletionInfos_1.ReceivedAttributeDeletionStatus.ToBeDeleted];
|
|
37
|
+
return deletionStatuses.includes(this.deletionInfo.deletionStatus);
|
|
38
|
+
}
|
|
39
|
+
isToBeDeleted() {
|
|
40
|
+
return this.deletionInfo?.deletionStatus === deletionInfos_1.ReceivedAttributeDeletionStatus.ToBeDeleted;
|
|
41
|
+
}
|
|
42
|
+
setPeerDeletionInfo(deletionInfo, overrideDeleted = false) {
|
|
43
|
+
if (!overrideDeleted && this.deletionInfo?.deletionStatus === deletionInfos_1.ReceivedAttributeDeletionStatus.DeletedByEmitter) {
|
|
44
|
+
throw ConsumptionCoreErrors_1.ConsumptionCoreErrors.attributes.cannotSetAttributeDeletionInfo(this.id);
|
|
45
|
+
}
|
|
46
|
+
this.deletionInfo = deletionInfo;
|
|
47
|
+
return this;
|
|
48
|
+
}
|
|
49
|
+
peerIsOwner() {
|
|
50
|
+
return this.peer.equals(this.content.owner);
|
|
51
|
+
}
|
|
52
|
+
static from(value) {
|
|
53
|
+
return super.fromAny(value);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
exports.ThirdPartyRelationshipAttribute = ThirdPartyRelationshipAttribute;
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, ts_serval_1.serialize)({ customGenerator: (value) => value.toJSON(true) }),
|
|
59
|
+
(0, ts_serval_1.validate)(),
|
|
60
|
+
__metadata("design:type", content_1.RelationshipAttribute)
|
|
61
|
+
], ThirdPartyRelationshipAttribute.prototype, "content", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, ts_serval_1.validate)(),
|
|
64
|
+
(0, ts_serval_1.serialize)(),
|
|
65
|
+
__metadata("design:type", core_types_1.CoreAddress)
|
|
66
|
+
], ThirdPartyRelationshipAttribute.prototype, "peer", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, ts_serval_1.serialize)(),
|
|
69
|
+
(0, ts_serval_1.validate)(),
|
|
70
|
+
__metadata("design:type", core_types_1.CoreId)
|
|
71
|
+
], ThirdPartyRelationshipAttribute.prototype, "sourceReference", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, ts_serval_1.serialize)(),
|
|
74
|
+
(0, ts_serval_1.validate)(),
|
|
75
|
+
__metadata("design:type", core_types_1.CoreAddress)
|
|
76
|
+
], ThirdPartyRelationshipAttribute.prototype, "initialAttributePeer", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, ts_serval_1.serialize)(),
|
|
79
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
80
|
+
__metadata("design:type", deletionInfos_1.ReceivedAttributeDeletionInfo)
|
|
81
|
+
], ThirdPartyRelationshipAttribute.prototype, "deletionInfo", void 0);
|
|
82
|
+
exports.ThirdPartyRelationshipAttribute = ThirdPartyRelationshipAttribute = __decorate([
|
|
83
|
+
(0, ts_serval_1.type)("ThirdPartyRelationshipAttribute")
|
|
84
|
+
], ThirdPartyRelationshipAttribute);
|
|
85
|
+
//# sourceMappingURL=ThirdPartyRelationshipAttribute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThirdPartyRelationshipAttribute.js","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/attributeTypes/ThirdPartyRelationshipAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA+D;AAC/D,4CAA0G;AAC1G,kDAA+E;AAC/E,uDAA0C;AAC1C,yFAAsF;AACtF,oDAAqK;AACrK,qDAAuF;AAoBhF,IAAM,+BAA+B,GAArC,MAAM,+BAAgC,SAAQ,+BAAc;IAA5D;;QACsB,wBAAmB,GAAa;YACrD,GAAG,IAAI,CAAC,mBAAmB;YAC3B,OAAO;YACP,UAAU;YACV,IAAA,yBAAM,EAAkC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;YACtD,IAAA,yBAAM,EAAkC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,CAAC;YACjE,IAAA,yBAAM,EAAkC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,oBAAoB,CAAC;YACtE,IAAA,yBAAM,EAAkC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC;SACjE,CAAC;IAiDN,CAAC;IA3BU,+BAA+B;QAClC,IAAI,CAAC,IAAI,CAAC,YAAY;YAAE,OAAO,KAAK,CAAC;QAErC,MAAM,gBAAgB,GAAG,CAAC,+CAA+B,CAAC,gBAAgB,EAAE,+CAA+B,CAAC,WAAW,CAAC,CAAC;QACzH,OAAO,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC;IACvE,CAAC;IAEM,aAAa;QAChB,OAAO,IAAI,CAAC,YAAY,EAAE,cAAc,KAAK,+CAA+B,CAAC,WAAW,CAAC;IAC7F,CAAC;IAEM,mBAAmB,CAAC,YAAuD,EAAE,eAAe,GAAG,KAAK;QACvG,IAAI,CAAC,eAAe,IAAI,IAAI,CAAC,YAAY,EAAE,cAAc,KAAK,+CAA+B,CAAC,gBAAgB,EAAE,CAAC;YAC7G,MAAM,6CAAqB,CAAC,UAAU,CAAC,8BAA8B,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACnF,CAAC;QAED,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,WAAW;QACd,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAChD,CAAC;IAEM,MAAM,CAAU,IAAI,CAAC,KAA6E;QACrG,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAoC,CAAC;IACnE,CAAC;CACJ,CAAA;AA1DY,0EAA+B;AAaxB;IAFf,IAAA,qBAAS,EAAC,EAAE,eAAe,EAAE,CAAC,KAA4B,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;IACpF,IAAA,oBAAQ,GAAE;8BACc,+BAAqB;gEAAC;AAIxC;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACC,wBAAW;6DAAC;AAIlB;IAFN,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACa,mBAAM;wEAAC;AAIxB;IAFN,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACkB,wBAAW;6EAAC;AAIlC;IAFN,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACP,6CAA6B;qEAAC;0CA7B3C,+BAA+B;IAD3C,IAAA,gBAAI,EAAC,iCAAiC,CAAC;GAC3B,+BAA+B,CA0D3C"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
|
+
import { CoreDate, ICoreDate } from "@nmshd/core-types";
|
|
3
|
+
export interface AbstractAttributeDeletionInfoJSON {
|
|
4
|
+
deletionStatus: string;
|
|
5
|
+
deletionDate: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IAbstractAttributeDeletionInfo extends ISerializable {
|
|
8
|
+
deletionStatus: string;
|
|
9
|
+
deletionDate: ICoreDate;
|
|
10
|
+
}
|
|
11
|
+
export declare abstract class AbstractAttributeDeletionInfo extends Serializable implements IAbstractAttributeDeletionInfo {
|
|
12
|
+
deletionStatus: string;
|
|
13
|
+
deletionDate: CoreDate;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=AbstractAttributeDeletionInfo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbstractAttributeDeletionInfo.d.ts","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/deletionInfos/AbstractAttributeDeletionInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAuB,MAAM,oBAAoB,CAAC;AACtF,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,WAAW,iCAAiC;IAC9C,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,8BAA+B,SAAQ,aAAa;IACjE,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,SAAS,CAAC;CAC3B;AAED,8BAAsB,6BAA8B,SAAQ,YAAa,YAAW,8BAA8B;IAGvG,cAAc,EAAE,MAAM,CAAC;IAIvB,YAAY,EAAE,QAAQ,CAAC;CACjC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AbstractAttributeDeletionInfo = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const core_types_1 = require("@nmshd/core-types");
|
|
15
|
+
class AbstractAttributeDeletionInfo extends ts_serval_1.Serializable {
|
|
16
|
+
}
|
|
17
|
+
exports.AbstractAttributeDeletionInfo = AbstractAttributeDeletionInfo;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, ts_serval_1.serialize)(),
|
|
20
|
+
(0, ts_serval_1.validate)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], AbstractAttributeDeletionInfo.prototype, "deletionStatus", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, ts_serval_1.serialize)(),
|
|
25
|
+
(0, ts_serval_1.validate)(),
|
|
26
|
+
__metadata("design:type", core_types_1.CoreDate)
|
|
27
|
+
], AbstractAttributeDeletionInfo.prototype, "deletionDate", void 0);
|
|
28
|
+
//# sourceMappingURL=AbstractAttributeDeletionInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbstractAttributeDeletionInfo.js","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/deletionInfos/AbstractAttributeDeletionInfo.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAsF;AACtF,kDAAwD;AAYxD,MAAsB,6BAA8B,SAAQ,wBAAY;CAQvE;AARD,sEAQC;AALU;IAFN,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;qEACmB;AAIvB;IAFN,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACU,qBAAQ;mEAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AbstractAttributeDeletionInfo, AbstractAttributeDeletionInfoJSON, IAbstractAttributeDeletionInfo } from "./AbstractAttributeDeletionInfo";
|
|
2
|
+
export declare enum EmittedAttributeDeletionStatus {
|
|
3
|
+
DeletionRequestSent = "DeletionRequestSent",
|
|
4
|
+
DeletionRequestRejected = "DeletionRequestRejected",
|
|
5
|
+
ToBeDeletedByRecipient = "ToBeDeletedByRecipient",
|
|
6
|
+
DeletedByRecipient = "DeletedByRecipient"
|
|
7
|
+
}
|
|
8
|
+
export interface EmittedAttributeDeletionInfoJSON extends AbstractAttributeDeletionInfoJSON {
|
|
9
|
+
deletionStatus: EmittedAttributeDeletionStatus;
|
|
10
|
+
}
|
|
11
|
+
export interface IEmittedAttributeDeletionInfo extends IAbstractAttributeDeletionInfo {
|
|
12
|
+
deletionStatus: EmittedAttributeDeletionStatus;
|
|
13
|
+
}
|
|
14
|
+
export declare class EmittedAttributeDeletionInfo extends AbstractAttributeDeletionInfo implements IEmittedAttributeDeletionInfo {
|
|
15
|
+
deletionStatus: EmittedAttributeDeletionStatus;
|
|
16
|
+
static from(value: IEmittedAttributeDeletionInfo | EmittedAttributeDeletionInfoJSON): EmittedAttributeDeletionInfo;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=EmittedAttributeDeletionInfo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmittedAttributeDeletionInfo.d.ts","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/deletionInfos/EmittedAttributeDeletionInfo.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,iCAAiC,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AAEnJ,oBAAY,8BAA8B;IACtC,mBAAmB,wBAAwB;IAC3C,uBAAuB,4BAA4B;IACnD,sBAAsB,2BAA2B;IACjD,kBAAkB,uBAAuB;CAC5C;AAED,MAAM,WAAW,gCAAiC,SAAQ,iCAAiC;IACvF,cAAc,EAAE,8BAA8B,CAAC;CAClD;AAED,MAAM,WAAW,6BAA8B,SAAQ,8BAA8B;IACjF,cAAc,EAAE,8BAA8B,CAAC;CAClD;AAED,qBACa,4BAA6B,SAAQ,6BAA8B,YAAW,6BAA6B;IAMpG,cAAc,EAAE,8BAA8B,CAAC;WAEjD,IAAI,CAAC,KAAK,EAAE,6BAA6B,GAAG,gCAAgC,GAAG,4BAA4B;CAG5H"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.EmittedAttributeDeletionInfo = exports.EmittedAttributeDeletionStatus = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const AbstractAttributeDeletionInfo_1 = require("./AbstractAttributeDeletionInfo");
|
|
15
|
+
var EmittedAttributeDeletionStatus;
|
|
16
|
+
(function (EmittedAttributeDeletionStatus) {
|
|
17
|
+
EmittedAttributeDeletionStatus["DeletionRequestSent"] = "DeletionRequestSent";
|
|
18
|
+
EmittedAttributeDeletionStatus["DeletionRequestRejected"] = "DeletionRequestRejected";
|
|
19
|
+
EmittedAttributeDeletionStatus["ToBeDeletedByRecipient"] = "ToBeDeletedByRecipient";
|
|
20
|
+
EmittedAttributeDeletionStatus["DeletedByRecipient"] = "DeletedByRecipient";
|
|
21
|
+
})(EmittedAttributeDeletionStatus || (exports.EmittedAttributeDeletionStatus = EmittedAttributeDeletionStatus = {}));
|
|
22
|
+
let EmittedAttributeDeletionInfo = class EmittedAttributeDeletionInfo extends AbstractAttributeDeletionInfo_1.AbstractAttributeDeletionInfo {
|
|
23
|
+
static from(value) {
|
|
24
|
+
return this.fromAny(value);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports.EmittedAttributeDeletionInfo = EmittedAttributeDeletionInfo;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, ts_serval_1.serialize)(),
|
|
30
|
+
(0, ts_serval_1.validate)({
|
|
31
|
+
customValidator: (v) => !Object.values(EmittedAttributeDeletionStatus).includes(v) ? `must be one of: ${Object.values(EmittedAttributeDeletionStatus).map((o) => `"${o}"`)}` : undefined
|
|
32
|
+
}),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], EmittedAttributeDeletionInfo.prototype, "deletionStatus", void 0);
|
|
35
|
+
exports.EmittedAttributeDeletionInfo = EmittedAttributeDeletionInfo = __decorate([
|
|
36
|
+
(0, ts_serval_1.type)("EmittedAttributeDeletionInfo")
|
|
37
|
+
], EmittedAttributeDeletionInfo);
|
|
38
|
+
//# sourceMappingURL=EmittedAttributeDeletionInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmittedAttributeDeletionInfo.js","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/deletionInfos/EmittedAttributeDeletionInfo.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA+D;AAC/D,mFAAmJ;AAEnJ,IAAY,8BAKX;AALD,WAAY,8BAA8B;IACtC,6EAA2C,CAAA;IAC3C,qFAAmD,CAAA;IACnD,mFAAiD,CAAA;IACjD,2EAAyC,CAAA;AAC7C,CAAC,EALW,8BAA8B,8CAA9B,8BAA8B,QAKzC;AAWM,IAAM,4BAA4B,GAAlC,MAAM,4BAA6B,SAAQ,6DAA6B;IAQpE,MAAM,CAAC,IAAI,CAAC,KAAuE;QACtF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AAXY,oEAA4B;AAMrB;IALf,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC;QACN,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CACnB,CAAC,MAAM,CAAC,MAAM,CAAC,8BAA8B,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,mBAAmB,MAAM,CAAC,MAAM,CAAC,8BAA8B,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;KACvK,CAAC;;oEAC6D;uCANtD,4BAA4B;IADxC,IAAA,gBAAI,EAAC,8BAA8B,CAAC;GACxB,4BAA4B,CAWxC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AbstractAttributeDeletionInfo, AbstractAttributeDeletionInfoJSON, IAbstractAttributeDeletionInfo } from "./AbstractAttributeDeletionInfo";
|
|
2
|
+
export declare enum ReceivedAttributeDeletionStatus {
|
|
3
|
+
ToBeDeleted = "ToBeDeleted",
|
|
4
|
+
DeletedByEmitter = "DeletedByEmitter"
|
|
5
|
+
}
|
|
6
|
+
export interface ReceivedAttributeDeletionInfoJSON extends AbstractAttributeDeletionInfoJSON {
|
|
7
|
+
deletionStatus: ReceivedAttributeDeletionStatus;
|
|
8
|
+
}
|
|
9
|
+
export interface IReceivedAttributeDeletionInfo extends IAbstractAttributeDeletionInfo {
|
|
10
|
+
deletionStatus: ReceivedAttributeDeletionStatus;
|
|
11
|
+
}
|
|
12
|
+
export declare class ReceivedAttributeDeletionInfo extends AbstractAttributeDeletionInfo implements IReceivedAttributeDeletionInfo {
|
|
13
|
+
deletionStatus: ReceivedAttributeDeletionStatus;
|
|
14
|
+
static from(value: IReceivedAttributeDeletionInfo | ReceivedAttributeDeletionInfoJSON): ReceivedAttributeDeletionInfo;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=ReceivedAttributeDeletionInfo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReceivedAttributeDeletionInfo.d.ts","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/deletionInfos/ReceivedAttributeDeletionInfo.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,iCAAiC,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AAEnJ,oBAAY,+BAA+B;IACvC,WAAW,gBAAgB;IAC3B,gBAAgB,qBAAqB;CACxC;AAED,MAAM,WAAW,iCAAkC,SAAQ,iCAAiC;IACxF,cAAc,EAAE,+BAA+B,CAAC;CACnD;AAED,MAAM,WAAW,8BAA+B,SAAQ,8BAA8B;IAClF,cAAc,EAAE,+BAA+B,CAAC;CACnD;AAED,qBACa,6BAA8B,SAAQ,6BAA8B,YAAW,8BAA8B;IAMtG,cAAc,EAAE,+BAA+B,CAAC;WAElD,IAAI,CAAC,KAAK,EAAE,8BAA8B,GAAG,iCAAiC,GAAG,6BAA6B;CAG/H"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ReceivedAttributeDeletionInfo = exports.ReceivedAttributeDeletionStatus = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const AbstractAttributeDeletionInfo_1 = require("./AbstractAttributeDeletionInfo");
|
|
15
|
+
var ReceivedAttributeDeletionStatus;
|
|
16
|
+
(function (ReceivedAttributeDeletionStatus) {
|
|
17
|
+
ReceivedAttributeDeletionStatus["ToBeDeleted"] = "ToBeDeleted";
|
|
18
|
+
ReceivedAttributeDeletionStatus["DeletedByEmitter"] = "DeletedByEmitter";
|
|
19
|
+
})(ReceivedAttributeDeletionStatus || (exports.ReceivedAttributeDeletionStatus = ReceivedAttributeDeletionStatus = {}));
|
|
20
|
+
let ReceivedAttributeDeletionInfo = class ReceivedAttributeDeletionInfo extends AbstractAttributeDeletionInfo_1.AbstractAttributeDeletionInfo {
|
|
21
|
+
static from(value) {
|
|
22
|
+
return this.fromAny(value);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.ReceivedAttributeDeletionInfo = ReceivedAttributeDeletionInfo;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, ts_serval_1.serialize)(),
|
|
28
|
+
(0, ts_serval_1.validate)({
|
|
29
|
+
customValidator: (v) => !Object.values(ReceivedAttributeDeletionStatus).includes(v) ? `must be one of: ${Object.values(ReceivedAttributeDeletionStatus).map((o) => `"${o}"`)}` : undefined
|
|
30
|
+
}),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], ReceivedAttributeDeletionInfo.prototype, "deletionStatus", void 0);
|
|
33
|
+
exports.ReceivedAttributeDeletionInfo = ReceivedAttributeDeletionInfo = __decorate([
|
|
34
|
+
(0, ts_serval_1.type)("ReceivedAttributeDeletionInfo")
|
|
35
|
+
], ReceivedAttributeDeletionInfo);
|
|
36
|
+
//# sourceMappingURL=ReceivedAttributeDeletionInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReceivedAttributeDeletionInfo.js","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/deletionInfos/ReceivedAttributeDeletionInfo.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA+D;AAC/D,mFAAmJ;AAEnJ,IAAY,+BAGX;AAHD,WAAY,+BAA+B;IACvC,8DAA2B,CAAA;IAC3B,wEAAqC,CAAA;AACzC,CAAC,EAHW,+BAA+B,+CAA/B,+BAA+B,QAG1C;AAWM,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,6DAA6B;IAQrE,MAAM,CAAC,IAAI,CAAC,KAAyE;QACxF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AAXY,sEAA6B;AAMtB;IALf,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC;QACN,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CACnB,CAAC,MAAM,CAAC,MAAM,CAAC,+BAA+B,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,mBAAmB,MAAM,CAAC,MAAM,CAAC,+BAA+B,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;KACzK,CAAC;;qEAC8D;wCANvD,6BAA6B;IADzC,IAAA,gBAAI,EAAC,+BAA+B,CAAC;GACzB,6BAA6B,CAWzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/deletionInfos/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./AbstractAttributeDeletionInfo"), exports);
|
|
18
|
+
__exportStar(require("./EmittedAttributeDeletionInfo"), exports);
|
|
19
|
+
__exportStar(require("./ReceivedAttributeDeletionInfo"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/deletionInfos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD;AAChD,iEAA+C;AAC/C,kEAAgD"}
|
package/dist/modules/attributes/local/successorParams/OwnIdentityAttributeSuccessorParams.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
|
+
import { IdentityAttribute, IdentityAttributeJSON } from "@nmshd/content";
|
|
3
|
+
export interface OwnIdentityAttributeSuccessorParamsJSON {
|
|
4
|
+
content: IdentityAttributeJSON;
|
|
5
|
+
}
|
|
6
|
+
export interface IOwnIdentityAttributeSuccessorParams extends ISerializable {
|
|
7
|
+
content: IdentityAttribute;
|
|
8
|
+
}
|
|
9
|
+
export declare class OwnIdentityAttributeSuccessorParams extends Serializable implements IOwnIdentityAttributeSuccessorParams {
|
|
10
|
+
content: IdentityAttribute;
|
|
11
|
+
static from(value: IOwnIdentityAttributeSuccessorParams | OwnIdentityAttributeSuccessorParamsJSON): OwnIdentityAttributeSuccessorParams;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=OwnIdentityAttributeSuccessorParams.d.ts.map
|
package/dist/modules/attributes/local/successorParams/OwnIdentityAttributeSuccessorParams.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OwnIdentityAttributeSuccessorParams.d.ts","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/successorParams/OwnIdentityAttributeSuccessorParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAA6B,MAAM,oBAAoB,CAAC;AAC5F,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAE1E,MAAM,WAAW,uCAAuC;IACpD,OAAO,EAAE,qBAAqB,CAAC;CAClC;AAED,MAAM,WAAW,oCAAqC,SAAQ,aAAa;IACvE,OAAO,EAAE,iBAAiB,CAAC;CAC9B;AAED,qBACa,mCAAoC,SAAQ,YAAa,YAAW,oCAAoC;IAG1G,OAAO,EAAE,iBAAiB,CAAC;WAEpB,IAAI,CAAC,KAAK,EAAE,oCAAoC,GAAG,uCAAuC,GAAG,mCAAmC;CAGjJ"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.OwnIdentityAttributeSuccessorParams = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const content_1 = require("@nmshd/content");
|
|
15
|
+
let OwnIdentityAttributeSuccessorParams = class OwnIdentityAttributeSuccessorParams extends ts_serval_1.Serializable {
|
|
16
|
+
static from(value) {
|
|
17
|
+
return this.fromAny(value);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
exports.OwnIdentityAttributeSuccessorParams = OwnIdentityAttributeSuccessorParams;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, ts_serval_1.validate)(),
|
|
23
|
+
(0, ts_serval_1.serialize)(),
|
|
24
|
+
__metadata("design:type", content_1.IdentityAttribute)
|
|
25
|
+
], OwnIdentityAttributeSuccessorParams.prototype, "content", void 0);
|
|
26
|
+
exports.OwnIdentityAttributeSuccessorParams = OwnIdentityAttributeSuccessorParams = __decorate([
|
|
27
|
+
(0, ts_serval_1.type)("OwnIdentityAttributeSuccessorParams")
|
|
28
|
+
], OwnIdentityAttributeSuccessorParams);
|
|
29
|
+
//# sourceMappingURL=OwnIdentityAttributeSuccessorParams.js.map
|
package/dist/modules/attributes/local/successorParams/OwnIdentityAttributeSuccessorParams.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OwnIdentityAttributeSuccessorParams.js","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/successorParams/OwnIdentityAttributeSuccessorParams.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA4F;AAC5F,4CAA0E;AAWnE,IAAM,mCAAmC,GAAzC,MAAM,mCAAoC,SAAQ,wBAAY;IAK1D,MAAM,CAAC,IAAI,CAAC,KAAqF;QACpG,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AARY,kFAAmC;AAGrC;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACI,2BAAiB;oEAAC;8CAHzB,mCAAmC;IAD/C,IAAA,gBAAI,EAAC,qCAAqC,CAAC;GAC/B,mCAAmC,CAQ/C"}
|
package/dist/modules/attributes/local/successorParams/OwnRelationshipAttributeSuccessorParams.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
|
+
import { RelationshipAttribute, RelationshipAttributeJSON } from "@nmshd/content";
|
|
3
|
+
import { CoreId, ICoreId } from "@nmshd/core-types";
|
|
4
|
+
export interface OwnRelationshipAttributeSuccessorParamsJSON {
|
|
5
|
+
content: RelationshipAttributeJSON;
|
|
6
|
+
sourceReference: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IOwnRelationshipAttributeSuccessorParams extends ISerializable {
|
|
9
|
+
content: RelationshipAttribute;
|
|
10
|
+
sourceReference: ICoreId;
|
|
11
|
+
}
|
|
12
|
+
export declare class OwnRelationshipAttributeSuccessorParams extends Serializable implements IOwnRelationshipAttributeSuccessorParams {
|
|
13
|
+
content: RelationshipAttribute;
|
|
14
|
+
sourceReference: CoreId;
|
|
15
|
+
static from(value: IOwnRelationshipAttributeSuccessorParams | OwnRelationshipAttributeSuccessorParamsJSON): OwnRelationshipAttributeSuccessorParams;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=OwnRelationshipAttributeSuccessorParams.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OwnRelationshipAttributeSuccessorParams.d.ts","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/successorParams/OwnRelationshipAttributeSuccessorParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAA6B,MAAM,oBAAoB,CAAC;AAC5F,OAAO,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAClF,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,WAAW,2CAA2C;IACxD,OAAO,EAAE,yBAAyB,CAAC;IACnC,eAAe,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,wCAAyC,SAAQ,aAAa;IAC3E,OAAO,EAAE,qBAAqB,CAAC;IAC/B,eAAe,EAAE,OAAO,CAAC;CAC5B;AAED,qBACa,uCAAwC,SAAQ,YAAa,YAAW,wCAAwC;IAGlH,OAAO,EAAE,qBAAqB,CAAC;IAI/B,eAAe,EAAE,MAAM,CAAC;WAEjB,IAAI,CAAC,KAAK,EAAE,wCAAwC,GAAG,2CAA2C,GAAG,uCAAuC;CAG7J"}
|
|
@@ -9,32 +9,27 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.OwnRelationshipAttributeSuccessorParams = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
14
|
const content_1 = require("@nmshd/content");
|
|
15
15
|
const core_types_1 = require("@nmshd/core-types");
|
|
16
|
-
let
|
|
16
|
+
let OwnRelationshipAttributeSuccessorParams = class OwnRelationshipAttributeSuccessorParams extends ts_serval_1.Serializable {
|
|
17
17
|
static from(value) {
|
|
18
18
|
return this.fromAny(value);
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
-
exports.
|
|
21
|
+
exports.OwnRelationshipAttributeSuccessorParams = OwnRelationshipAttributeSuccessorParams;
|
|
22
22
|
__decorate([
|
|
23
|
-
(0, ts_serval_1.serialize)(),
|
|
24
23
|
(0, ts_serval_1.validate)(),
|
|
24
|
+
(0, ts_serval_1.serialize)(),
|
|
25
25
|
__metadata("design:type", content_1.RelationshipAttribute)
|
|
26
|
-
],
|
|
26
|
+
], OwnRelationshipAttributeSuccessorParams.prototype, "content", void 0);
|
|
27
27
|
__decorate([
|
|
28
|
-
(0, ts_serval_1.serialize)(),
|
|
29
28
|
(0, ts_serval_1.validate)(),
|
|
30
|
-
__metadata("design:type", core_types_1.CoreAddress)
|
|
31
|
-
], CreateAttributeParams.prototype, "peer", void 0);
|
|
32
|
-
__decorate([
|
|
33
29
|
(0, ts_serval_1.serialize)(),
|
|
34
|
-
(0, ts_serval_1.validate)(),
|
|
35
30
|
__metadata("design:type", core_types_1.CoreId)
|
|
36
|
-
],
|
|
37
|
-
exports.
|
|
38
|
-
(0, ts_serval_1.type)("
|
|
39
|
-
],
|
|
40
|
-
//# sourceMappingURL=
|
|
31
|
+
], OwnRelationshipAttributeSuccessorParams.prototype, "sourceReference", void 0);
|
|
32
|
+
exports.OwnRelationshipAttributeSuccessorParams = OwnRelationshipAttributeSuccessorParams = __decorate([
|
|
33
|
+
(0, ts_serval_1.type)("OwnRelationshipAttributeSuccessorParams")
|
|
34
|
+
], OwnRelationshipAttributeSuccessorParams);
|
|
35
|
+
//# sourceMappingURL=OwnRelationshipAttributeSuccessorParams.js.map
|
package/dist/modules/attributes/local/successorParams/OwnRelationshipAttributeSuccessorParams.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OwnRelationshipAttributeSuccessorParams.js","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/successorParams/OwnRelationshipAttributeSuccessorParams.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA4F;AAC5F,4CAAkF;AAClF,kDAAoD;AAa7C,IAAM,uCAAuC,GAA7C,MAAM,uCAAwC,SAAQ,wBAAY;IAS9D,MAAM,CAAC,IAAI,CAAC,KAA6F;QAC5G,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AAZY,0FAAuC;AAGzC;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACI,+BAAqB;wEAAC;AAI/B;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACY,mBAAM;gFAAC;kDAPtB,uCAAuC;IADnD,IAAA,gBAAI,EAAC,yCAAyC,CAAC;GACnC,uCAAuC,CAYnD"}
|
package/dist/modules/attributes/local/successorParams/PeerIdentityAttributeSuccessorParams.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
|
+
import { IdentityAttribute, IdentityAttributeJSON } from "@nmshd/content";
|
|
3
|
+
import { CoreId, ICoreId } from "@nmshd/core-types";
|
|
4
|
+
export interface PeerIdentityAttributeSuccessorParamsJSON {
|
|
5
|
+
content: IdentityAttributeJSON;
|
|
6
|
+
id: string;
|
|
7
|
+
sourceReference: string;
|
|
8
|
+
}
|
|
9
|
+
export interface IPeerIdentityAttributeSuccessorParams extends ISerializable {
|
|
10
|
+
content: IdentityAttribute;
|
|
11
|
+
id: ICoreId;
|
|
12
|
+
sourceReference: ICoreId;
|
|
13
|
+
}
|
|
14
|
+
export declare class PeerIdentityAttributeSuccessorParams extends Serializable implements IPeerIdentityAttributeSuccessorParams {
|
|
15
|
+
content: IdentityAttribute;
|
|
16
|
+
id: CoreId;
|
|
17
|
+
sourceReference: CoreId;
|
|
18
|
+
static from(value: IPeerIdentityAttributeSuccessorParams | PeerIdentityAttributeSuccessorParamsJSON): PeerIdentityAttributeSuccessorParams;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=PeerIdentityAttributeSuccessorParams.d.ts.map
|
package/dist/modules/attributes/local/successorParams/PeerIdentityAttributeSuccessorParams.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PeerIdentityAttributeSuccessorParams.d.ts","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/successorParams/PeerIdentityAttributeSuccessorParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAA6B,MAAM,oBAAoB,CAAC;AAC5F,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,WAAW,wCAAwC;IACrD,OAAO,EAAE,qBAAqB,CAAC;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,eAAe,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,qCAAsC,SAAQ,aAAa;IACxE,OAAO,EAAE,iBAAiB,CAAC;IAC3B,EAAE,EAAE,OAAO,CAAC;IACZ,eAAe,EAAE,OAAO,CAAC;CAC5B;AAED,qBACa,oCAAqC,SAAQ,YAAa,YAAW,qCAAqC;IAG5G,OAAO,EAAE,iBAAiB,CAAC;IAI3B,EAAE,EAAE,MAAM,CAAC;IAIX,eAAe,EAAE,MAAM,CAAC;WAEjB,IAAI,CAAC,KAAK,EAAE,qCAAqC,GAAG,wCAAwC,GAAG,oCAAoC;CAGpJ"}
|