@nmshd/consumption 7.0.0-openid4vc.6 → 7.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +659 -3
- package/README.md +1 -1
- package/dist/buildInformation.js +5 -5
- 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 +5 -9
- package/dist/consumption/ConsumptionController.js.map +1 -1
- package/dist/consumption/ConsumptionControllerName.d.ts +1 -2
- 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 +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 +108 -69
- package/dist/modules/attributes/AttributesController.d.ts.map +1 -1
- package/dist/modules/attributes/AttributesController.js +664 -734
- 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/{openid4vc → attributes/local/successorParams}/index.js +5 -7
- 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/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 +6 -14
- 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
- package/dist/modules/openid4vc/OpenId4VcController.d.ts +0 -17
- package/dist/modules/openid4vc/OpenId4VcController.d.ts.map +0 -1
- package/dist/modules/openid4vc/OpenId4VcController.js +0 -82
- package/dist/modules/openid4vc/OpenId4VcController.js.map +0 -1
- package/dist/modules/openid4vc/index.d.ts +0 -8
- package/dist/modules/openid4vc/index.d.ts.map +0 -1
- package/dist/modules/openid4vc/index.js.map +0 -1
- package/dist/modules/openid4vc/local/BaseAgent.d.ts +0 -20
- package/dist/modules/openid4vc/local/BaseAgent.d.ts.map +0 -1
- package/dist/modules/openid4vc/local/BaseAgent.js +0 -69
- package/dist/modules/openid4vc/local/BaseAgent.js.map +0 -1
- package/dist/modules/openid4vc/local/EnmeshedHolderFileSystem.d.ts +0 -18
- package/dist/modules/openid4vc/local/EnmeshedHolderFileSystem.d.ts.map +0 -1
- package/dist/modules/openid4vc/local/EnmeshedHolderFileSystem.js +0 -94
- package/dist/modules/openid4vc/local/EnmeshedHolderFileSystem.js.map +0 -1
- package/dist/modules/openid4vc/local/EnmeshedHolderKeyManagmentService.d.ts +0 -34
- package/dist/modules/openid4vc/local/EnmeshedHolderKeyManagmentService.d.ts.map +0 -1
- package/dist/modules/openid4vc/local/EnmeshedHolderKeyManagmentService.js +0 -364
- package/dist/modules/openid4vc/local/EnmeshedHolderKeyManagmentService.js.map +0 -1
- package/dist/modules/openid4vc/local/EnmeshedStorageService.d.ts +0 -20
- package/dist/modules/openid4vc/local/EnmeshedStorageService.d.ts.map +0 -1
- package/dist/modules/openid4vc/local/EnmeshedStorageService.js +0 -218
- package/dist/modules/openid4vc/local/EnmeshedStorageService.js.map +0 -1
- package/dist/modules/openid4vc/local/Holder.d.ts +0 -34
- package/dist/modules/openid4vc/local/Holder.d.ts.map +0 -1
- package/dist/modules/openid4vc/local/Holder.js +0 -225
- package/dist/modules/openid4vc/local/Holder.js.map +0 -1
- package/dist/modules/openid4vc/local/LocalAgentDependencies.d.ts +0 -3
- package/dist/modules/openid4vc/local/LocalAgentDependencies.d.ts.map +0 -1
- package/dist/modules/openid4vc/local/LocalAgentDependencies.js +0 -18
- package/dist/modules/openid4vc/local/LocalAgentDependencies.js.map +0 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CoreAddress, CoreDate, CoreId, ICoreAddress, ICoreDate, ICoreId } from "@nmshd/core-types";
|
|
2
|
+
import { CoreSynchronizable, ICoreSynchronizable } from "@nmshd/transport";
|
|
3
|
+
import { EmittedAttributeDeletionInfo, EmittedAttributeDeletionInfoJSON, IEmittedAttributeDeletionInfo } from "./deletionInfos";
|
|
4
|
+
export interface AttributeForwardingDetailsJSON {
|
|
5
|
+
"@type": "AttributeForwardingDetails";
|
|
6
|
+
attributeId: string;
|
|
7
|
+
peer: string;
|
|
8
|
+
sourceReference: string;
|
|
9
|
+
sharedAt: string;
|
|
10
|
+
deletionInfo?: EmittedAttributeDeletionInfoJSON;
|
|
11
|
+
}
|
|
12
|
+
export interface IAttributeForwardingDetails extends ICoreSynchronizable {
|
|
13
|
+
attributeId: ICoreId;
|
|
14
|
+
peer: ICoreAddress;
|
|
15
|
+
sourceReference: ICoreId;
|
|
16
|
+
sharedAt: ICoreDate;
|
|
17
|
+
deletionInfo?: IEmittedAttributeDeletionInfo;
|
|
18
|
+
}
|
|
19
|
+
export declare class AttributeForwardingDetails extends CoreSynchronizable implements IAttributeForwardingDetails {
|
|
20
|
+
technicalProperties: string[];
|
|
21
|
+
attributeId: CoreId;
|
|
22
|
+
peer: CoreAddress;
|
|
23
|
+
sourceReference: CoreId;
|
|
24
|
+
sharedAt: CoreDate;
|
|
25
|
+
deletionInfo?: EmittedAttributeDeletionInfo;
|
|
26
|
+
static from(value: IAttributeForwardingDetails | AttributeForwardingDetailsJSON): AttributeForwardingDetails;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=AttributeForwardingDetails.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttributeForwardingDetails.d.ts","sourceRoot":"","sources":["../../../../src/modules/attributes/local/AttributeForwardingDetails.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACpG,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE3E,OAAO,EAAE,4BAA4B,EAAE,gCAAgC,EAAE,6BAA6B,EAAE,MAAM,iBAAiB,CAAC;AAEhI,MAAM,WAAW,8BAA8B;IAC3C,OAAO,EAAE,4BAA4B,CAAC;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,gCAAgC,CAAC;CACnD;AAED,MAAM,WAAW,2BAA4B,SAAQ,mBAAmB;IACpE,WAAW,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,YAAY,CAAC;IACnB,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,SAAS,CAAC;IACpB,YAAY,CAAC,EAAE,6BAA6B,CAAC;CAChD;AAED,qBACa,0BAA2B,SAAQ,kBAAmB,YAAW,2BAA2B;IACrF,mBAAmB,WAMjC;IAIK,WAAW,EAAE,MAAM,CAAC;IAIpB,IAAI,EAAE,WAAW,CAAC;IAIlB,eAAe,EAAE,MAAM,CAAC;IAIxB,QAAQ,EAAE,QAAQ,CAAC;IAInB,YAAY,CAAC,EAAE,4BAA4B,CAAC;WAErC,IAAI,CAAC,KAAK,EAAE,2BAA2B,GAAG,8BAA8B,GAAG,0BAA0B;CAGtH"}
|
|
@@ -0,0 +1,62 @@
|
|
|
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.AttributeForwardingDetails = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const core_types_1 = require("@nmshd/core-types");
|
|
15
|
+
const transport_1 = require("@nmshd/transport");
|
|
16
|
+
const ts_simple_nameof_1 = require("ts-simple-nameof");
|
|
17
|
+
const deletionInfos_1 = require("./deletionInfos");
|
|
18
|
+
let AttributeForwardingDetails = class AttributeForwardingDetails extends transport_1.CoreSynchronizable {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments);
|
|
21
|
+
this.technicalProperties = [
|
|
22
|
+
(0, ts_simple_nameof_1.nameof)((f) => f.attributeId),
|
|
23
|
+
(0, ts_simple_nameof_1.nameof)((f) => f.peer),
|
|
24
|
+
(0, ts_simple_nameof_1.nameof)((f) => f.sourceReference),
|
|
25
|
+
(0, ts_simple_nameof_1.nameof)((f) => f.sharedAt),
|
|
26
|
+
(0, ts_simple_nameof_1.nameof)((f) => f.deletionInfo)
|
|
27
|
+
];
|
|
28
|
+
}
|
|
29
|
+
static from(value) {
|
|
30
|
+
return super.fromAny(value);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
exports.AttributeForwardingDetails = AttributeForwardingDetails;
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, ts_serval_1.validate)(),
|
|
36
|
+
(0, ts_serval_1.serialize)(),
|
|
37
|
+
__metadata("design:type", core_types_1.CoreId)
|
|
38
|
+
], AttributeForwardingDetails.prototype, "attributeId", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, ts_serval_1.validate)(),
|
|
41
|
+
(0, ts_serval_1.serialize)(),
|
|
42
|
+
__metadata("design:type", core_types_1.CoreAddress)
|
|
43
|
+
], AttributeForwardingDetails.prototype, "peer", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, ts_serval_1.serialize)(),
|
|
46
|
+
(0, ts_serval_1.validate)(),
|
|
47
|
+
__metadata("design:type", core_types_1.CoreId)
|
|
48
|
+
], AttributeForwardingDetails.prototype, "sourceReference", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, ts_serval_1.serialize)(),
|
|
51
|
+
(0, ts_serval_1.validate)(),
|
|
52
|
+
__metadata("design:type", core_types_1.CoreDate)
|
|
53
|
+
], AttributeForwardingDetails.prototype, "sharedAt", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, ts_serval_1.serialize)(),
|
|
56
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
57
|
+
__metadata("design:type", deletionInfos_1.EmittedAttributeDeletionInfo)
|
|
58
|
+
], AttributeForwardingDetails.prototype, "deletionInfo", void 0);
|
|
59
|
+
exports.AttributeForwardingDetails = AttributeForwardingDetails = __decorate([
|
|
60
|
+
(0, ts_serval_1.type)("AttributeForwardingDetails")
|
|
61
|
+
], AttributeForwardingDetails);
|
|
62
|
+
//# sourceMappingURL=AttributeForwardingDetails.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttributeForwardingDetails.js","sourceRoot":"","sources":["../../../../src/modules/attributes/local/AttributeForwardingDetails.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA+D;AAC/D,kDAAoG;AACpG,gDAA2E;AAC3E,uDAA0C;AAC1C,mDAAgI;AAoBzH,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,8BAAkB;IAA3D;;QACa,wBAAmB,GAAG;YAClC,IAAA,yBAAM,EAA6B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC;YACxD,IAAA,yBAAM,EAA6B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;YACjD,IAAA,yBAAM,EAA6B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,CAAC;YAC5D,IAAA,yBAAM,EAA6B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;YACrD,IAAA,yBAAM,EAA6B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC;SAC5D,CAAC;IAyBN,CAAC;IAHU,MAAM,CAAC,IAAI,CAAC,KAAmE;QAClF,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAA+B,CAAC;IAC9D,CAAC;CACJ,CAAA;AAhCY,gEAA0B;AAW5B;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACQ,mBAAM;+DAAC;AAIpB;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACC,wBAAW;wDAAC;AAIlB;IAFN,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACa,mBAAM;mEAAC;AAIxB;IAFN,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACM,qBAAQ;4DAAC;AAInB;IAFN,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACP,4CAA4B;gEAAC;qCA3B1C,0BAA0B;IADtC,IAAA,gBAAI,EAAC,4BAA4B,CAAC;GACtB,0BAA0B,CAgCtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryTranslator.d.ts","sourceRoot":"","sources":["../../../../src/modules/attributes/local/QueryTranslator.ts"],"names":[],"mappings":"AACA,OAAO,EAGH,sBAAsB,EAKtB,0BAA0B,EAC1B,oCAAoC,EACvC,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"QueryTranslator.d.ts","sourceRoot":"","sources":["../../../../src/modules/attributes/local/QueryTranslator.ts"],"names":[],"mappings":"AACA,OAAO,EAGH,sBAAsB,EAKtB,0BAA0B,EAC1B,oCAAoC,EACvC,MAAM,gBAAgB,CAAC;AAOxB,qBAAa,gCAAgC;WAC3B,SAAS,CAAC,KAAK,EAAE,sBAAsB,GAAG,GAAG;IAI3D,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CA8B/B;CACN;AAED,qBAAa,oCAAoC;WAC/B,SAAS,CAAC,KAAK,EAAE,0BAA0B,GAAG,GAAG;IAI/D,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAc/B;CACN;AAED,qBAAa,8CAA8C;WACzC,SAAS,CAAC,KAAK,EAAE,oCAAoC,GAAG,GAAG;IAIzE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAiB/B;CACN"}
|
|
@@ -79,7 +79,7 @@ class ThirdPartyRelationshipAttributeQueryTranslator {
|
|
|
79
79
|
// owner
|
|
80
80
|
[(0, ts_simple_nameof_1.nameof)((x) => x.owner)]: `${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.owner)}`,
|
|
81
81
|
// peer
|
|
82
|
-
[(0, ts_simple_nameof_1.nameof)((x) => x.thirdParty)]: `${(0, ts_simple_nameof_1.nameof)((x) => x.
|
|
82
|
+
[(0, ts_simple_nameof_1.nameof)((x) => x.thirdParty)]: `${(0, ts_simple_nameof_1.nameof)((x) => x.peer)}`
|
|
83
83
|
}
|
|
84
84
|
}); }
|
|
85
85
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryTranslator.js","sourceRoot":"","sources":["../../../../src/modules/attributes/local/QueryTranslator.ts"],"names":[],"mappings":";;;AAAA,0EAAiE;AAYjE,uDAA0C;AAC1C,4EAAyE;
|
|
1
|
+
{"version":3,"file":"QueryTranslator.js","sourceRoot":"","sources":["../../../../src/modules/attributes/local/QueryTranslator.ts"],"names":[],"mappings":";;;AAAA,0EAAiE;AAYjE,uDAA0C;AAC1C,4EAAyE;AAKzE,MAAa,gCAAgC;IAClC,MAAM,CA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AI,IAAA,yBAAM,EAAwB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE;YAC3J,qBAAqB;YACrB,aAAa,EAAE,GAAG,IAAA,yBAAM,EAAiB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ;YAClE,QAAQ;YACR,CAAC,IAAA,yBAAM,EAAwC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,IAAA,yBAAM,EAAiB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,IAAA,yBAAM,EAAwB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE;YAC/J,OAAO;YACP,CAAC,IAAA,yBAAM,EAAwC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,EAAE,GAAG,IAAA,yBAAM,EAAuD,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE;SACzJ;KACJ,CAAC,CAAC;;AAtBP,wGAuBC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IIdentityAttribute, IRelationshipAttribute, IdentityAttribute, IdentityAttributeJSON, RelationshipAttribute, RelationshipAttributeJSON } from "@nmshd/content";
|
|
2
|
+
import { CoreDate, CoreId, ICoreDate, ICoreId } from "@nmshd/core-types";
|
|
3
|
+
import { CoreSynchronizable, ICoreSynchronizable } from "@nmshd/transport";
|
|
4
|
+
export interface LocalAttributeJSON {
|
|
5
|
+
id: string;
|
|
6
|
+
content: IdentityAttributeJSON | RelationshipAttributeJSON;
|
|
7
|
+
createdAt: string;
|
|
8
|
+
succeeds?: string;
|
|
9
|
+
succeededBy?: string;
|
|
10
|
+
wasViewedAt?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ILocalAttribute extends ICoreSynchronizable {
|
|
13
|
+
content: IIdentityAttribute | IRelationshipAttribute;
|
|
14
|
+
createdAt: ICoreDate;
|
|
15
|
+
succeeds?: ICoreId;
|
|
16
|
+
succeededBy?: ICoreId;
|
|
17
|
+
wasViewedAt?: ICoreDate;
|
|
18
|
+
}
|
|
19
|
+
export declare class LocalAttribute extends CoreSynchronizable implements ILocalAttribute {
|
|
20
|
+
readonly technicalProperties: string[];
|
|
21
|
+
readonly userdataProperties: string[];
|
|
22
|
+
content: IdentityAttribute | RelationshipAttribute;
|
|
23
|
+
createdAt: CoreDate;
|
|
24
|
+
succeeds?: CoreId;
|
|
25
|
+
succeededBy?: CoreId;
|
|
26
|
+
wasViewedAt?: CoreDate;
|
|
27
|
+
static from(value: ILocalAttribute | LocalAttributeJSON): LocalAttribute;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=LocalAttribute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LocalAttribute.d.ts","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/attributeTypes/LocalAttribute.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AACxK,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAG3E,MAAM,WAAW,kBAAkB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,qBAAqB,GAAG,yBAAyB,CAAC;IAC3D,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,eAAgB,SAAQ,mBAAmB;IACxD,OAAO,EAAE,kBAAkB,GAAG,sBAAsB,CAAC;IACrD,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,SAAS,CAAC;CAC3B;AAED,qBACa,cAAe,SAAQ,kBAAmB,YAAW,eAAe;IAC7E,SAAyB,mBAAmB,WAO1C;IAEF,SAAyB,kBAAkB,WAA8C;IAIlF,OAAO,EAAE,iBAAiB,GAAG,qBAAqB,CAAC;IAInD,SAAS,EAAE,QAAQ,CAAC;IAIpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAIlB,WAAW,CAAC,EAAE,MAAM,CAAC;IAIrB,WAAW,CAAC,EAAE,QAAQ,CAAC;WAEhB,IAAI,CAAC,KAAK,EAAE,eAAe,GAAG,kBAAkB,GAAG,cAAc;CAQlF"}
|
|
@@ -8,54 +8,62 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
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
|
+
var LocalAttribute_1;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
13
|
+
exports.LocalAttribute = void 0;
|
|
13
14
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
15
|
const content_1 = require("@nmshd/content");
|
|
15
16
|
const core_types_1 = require("@nmshd/core-types");
|
|
16
|
-
const
|
|
17
|
-
|
|
17
|
+
const transport_1 = require("@nmshd/transport");
|
|
18
|
+
const ts_simple_nameof_1 = require("ts-simple-nameof");
|
|
19
|
+
let LocalAttribute = LocalAttribute_1 = class LocalAttribute extends transport_1.CoreSynchronizable {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments);
|
|
22
|
+
this.technicalProperties = [
|
|
23
|
+
"@type",
|
|
24
|
+
"@context",
|
|
25
|
+
(0, ts_simple_nameof_1.nameof)((r) => r.createdAt),
|
|
26
|
+
(0, ts_simple_nameof_1.nameof)((r) => r.succeeds),
|
|
27
|
+
(0, ts_simple_nameof_1.nameof)((r) => r.succeededBy),
|
|
28
|
+
(0, ts_simple_nameof_1.nameof)((r) => r.wasViewedAt)
|
|
29
|
+
];
|
|
30
|
+
this.userdataProperties = [(0, ts_simple_nameof_1.nameof)((r) => r.content)];
|
|
31
|
+
}
|
|
18
32
|
static from(value) {
|
|
19
|
-
|
|
33
|
+
const parsed = this.fromUnknown(value);
|
|
34
|
+
if (!(parsed instanceof LocalAttribute_1)) {
|
|
35
|
+
throw new Error(`Parsed value is not an instance of ${LocalAttribute_1.name}`);
|
|
36
|
+
}
|
|
37
|
+
return parsed;
|
|
20
38
|
}
|
|
21
39
|
};
|
|
22
|
-
exports.
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
25
|
-
(0, ts_serval_1.serialize)(),
|
|
26
|
-
__metadata("design:type", core_types_1.CoreId)
|
|
27
|
-
], AttributeSuccessorParams.prototype, "id", void 0);
|
|
40
|
+
exports.LocalAttribute = LocalAttribute;
|
|
28
41
|
__decorate([
|
|
29
42
|
(0, ts_serval_1.validate)(),
|
|
30
43
|
(0, ts_serval_1.serialize)({ unionTypes: [content_1.IdentityAttribute, content_1.RelationshipAttribute] }),
|
|
31
44
|
__metadata("design:type", Object)
|
|
32
|
-
],
|
|
45
|
+
], LocalAttribute.prototype, "content", void 0);
|
|
33
46
|
__decorate([
|
|
34
|
-
(0, ts_serval_1.validate)(
|
|
47
|
+
(0, ts_serval_1.validate)(),
|
|
35
48
|
(0, ts_serval_1.serialize)(),
|
|
36
49
|
__metadata("design:type", core_types_1.CoreDate)
|
|
37
|
-
],
|
|
50
|
+
], LocalAttribute.prototype, "createdAt", void 0);
|
|
38
51
|
__decorate([
|
|
39
52
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
40
53
|
(0, ts_serval_1.serialize)(),
|
|
41
54
|
__metadata("design:type", core_types_1.CoreId)
|
|
42
|
-
],
|
|
55
|
+
], LocalAttribute.prototype, "succeeds", void 0);
|
|
43
56
|
__decorate([
|
|
44
57
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
45
58
|
(0, ts_serval_1.serialize)(),
|
|
46
59
|
__metadata("design:type", core_types_1.CoreId)
|
|
47
|
-
],
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
50
|
-
(0, ts_serval_1.serialize)(),
|
|
51
|
-
__metadata("design:type", LocalAttributeShareInfo_1.LocalAttributeShareInfo)
|
|
52
|
-
], AttributeSuccessorParams.prototype, "shareInfo", void 0);
|
|
60
|
+
], LocalAttribute.prototype, "succeededBy", void 0);
|
|
53
61
|
__decorate([
|
|
54
62
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
55
63
|
(0, ts_serval_1.serialize)(),
|
|
56
|
-
__metadata("design:type", core_types_1.
|
|
57
|
-
],
|
|
58
|
-
exports.
|
|
59
|
-
(0, ts_serval_1.type)("
|
|
60
|
-
],
|
|
61
|
-
//# sourceMappingURL=
|
|
64
|
+
__metadata("design:type", core_types_1.CoreDate)
|
|
65
|
+
], LocalAttribute.prototype, "wasViewedAt", void 0);
|
|
66
|
+
exports.LocalAttribute = LocalAttribute = LocalAttribute_1 = __decorate([
|
|
67
|
+
(0, ts_serval_1.type)("LocalAttribute")
|
|
68
|
+
], LocalAttribute);
|
|
69
|
+
//# sourceMappingURL=LocalAttribute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LocalAttribute.js","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/attributeTypes/LocalAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAA+D;AAC/D,4CAAwK;AACxK,kDAAyE;AACzE,gDAA2E;AAC3E,uDAA0C;AAoBnC,IAAM,cAAc,sBAApB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Q,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACS,mBAAM;mDAAC;AAIrB;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACS,qBAAQ;mDAAC;yBA9BrB,cAAc;IAD1B,IAAA,gBAAI,EAAC,gBAAgB,CAAC;GACV,cAAc,CAwC1B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IdentityAttribute, IdentityAttributeJSON, IIdentityAttribute } from "@nmshd/content";
|
|
2
|
+
import { ILocalAttribute, LocalAttribute, LocalAttributeJSON } from "./LocalAttribute";
|
|
3
|
+
export interface OwnIdentityAttributeJSON extends LocalAttributeJSON {
|
|
4
|
+
"@type": "OwnIdentityAttribute";
|
|
5
|
+
content: IdentityAttributeJSON;
|
|
6
|
+
isDefault?: true;
|
|
7
|
+
}
|
|
8
|
+
export interface IOwnIdentityAttribute extends ILocalAttribute {
|
|
9
|
+
content: IIdentityAttribute;
|
|
10
|
+
isDefault?: true;
|
|
11
|
+
}
|
|
12
|
+
export declare class OwnIdentityAttribute extends LocalAttribute implements IOwnIdentityAttribute {
|
|
13
|
+
readonly technicalProperties: string[];
|
|
14
|
+
content: IdentityAttribute;
|
|
15
|
+
isDefault?: true;
|
|
16
|
+
numberOfForwards?: number;
|
|
17
|
+
static from(value: IOwnIdentityAttribute | OwnIdentityAttributeJSON): OwnIdentityAttribute;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=OwnIdentityAttribute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OwnIdentityAttribute.d.ts","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/attributeTypes/OwnIdentityAttribute.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAE9F,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEvF,MAAM,WAAW,wBAAyB,SAAQ,kBAAkB;IAChE,OAAO,EAAE,sBAAsB,CAAC;IAChC,OAAO,EAAE,qBAAqB,CAAC;IAC/B,SAAS,CAAC,EAAE,IAAI,CAAC;CACpB;AAED,MAAM,WAAW,qBAAsB,SAAQ,eAAe;IAC1D,OAAO,EAAE,kBAAkB,CAAC;IAC5B,SAAS,CAAC,EAAE,IAAI,CAAC;CACpB;AAED,qBACa,oBAAqB,SAAQ,cAAe,YAAW,qBAAqB;IACrF,SAAyB,mBAAmB,EAAE,MAAM,EAAE,CAAwG;IAI9I,OAAO,EAAE,iBAAiB,CAAC;IAIpC,SAAS,CAAC,EAAE,IAAI,CAAC;IAGjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;WAEV,IAAI,CAAC,KAAK,EAAE,qBAAqB,GAAG,wBAAwB,GAAG,oBAAoB;CAG7G"}
|
|
@@ -0,0 +1,40 @@
|
|
|
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.OwnIdentityAttribute = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const content_1 = require("@nmshd/content");
|
|
15
|
+
const ts_simple_nameof_1 = require("ts-simple-nameof");
|
|
16
|
+
const LocalAttribute_1 = require("./LocalAttribute");
|
|
17
|
+
let OwnIdentityAttribute = class OwnIdentityAttribute extends LocalAttribute_1.LocalAttribute {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
this.technicalProperties = [...this.technicalProperties, "@type", "@context", (0, ts_simple_nameof_1.nameof)((r) => r.isDefault)];
|
|
21
|
+
}
|
|
22
|
+
static from(value) {
|
|
23
|
+
return super.fromAny(value);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
exports.OwnIdentityAttribute = OwnIdentityAttribute;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, ts_serval_1.serialize)({ customGenerator: (value) => value.toJSON(true) }),
|
|
29
|
+
(0, ts_serval_1.validate)(),
|
|
30
|
+
__metadata("design:type", content_1.IdentityAttribute)
|
|
31
|
+
], OwnIdentityAttribute.prototype, "content", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, ts_serval_1.serialize)(),
|
|
34
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
35
|
+
__metadata("design:type", Boolean)
|
|
36
|
+
], OwnIdentityAttribute.prototype, "isDefault", void 0);
|
|
37
|
+
exports.OwnIdentityAttribute = OwnIdentityAttribute = __decorate([
|
|
38
|
+
(0, ts_serval_1.type)("OwnIdentityAttribute")
|
|
39
|
+
], OwnIdentityAttribute);
|
|
40
|
+
//# sourceMappingURL=OwnIdentityAttribute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OwnIdentityAttribute.js","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/attributeTypes/OwnIdentityAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA+D;AAC/D,4CAA8F;AAC9F,uDAA0C;AAC1C,qDAAuF;AAchF,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,+BAAc;IAAjD;;QACsB,wBAAmB,GAAa,CAAC,GAAG,IAAI,CAAC,mBAAmB,EAAE,OAAO,EAAE,UAAU,EAAE,IAAA,yBAAM,EAAuB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;IAgBlK,CAAC;IAHU,MAAM,CAAU,IAAI,CAAC,KAAuD;QAC/E,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAyB,CAAC;IACxD,CAAC;CACJ,CAAA;AAjBY,oDAAoB;AAKb;IAFf,IAAA,qBAAS,EAAC,EAAE,eAAe,EAAE,CAAC,KAAwB,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;IAChF,IAAA,oBAAQ,GAAE;8BACc,2BAAiB;qDAAC;AAIpC;IAFN,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACL;+BATf,oBAAoB;IADhC,IAAA,gBAAI,EAAC,sBAAsB,CAAC;GAChB,oBAAoB,CAiBhC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IRelationshipAttribute, RelationshipAttribute, RelationshipAttributeJSON } from "@nmshd/content";
|
|
2
|
+
import { CoreAddress, CoreId, ICoreAddress, ICoreId } from "@nmshd/core-types";
|
|
3
|
+
import { EmittedAttributeDeletionInfo, EmittedAttributeDeletionInfoJSON, IEmittedAttributeDeletionInfo } from "../deletionInfos";
|
|
4
|
+
import { ILocalAttribute, LocalAttribute, LocalAttributeJSON } from "./LocalAttribute";
|
|
5
|
+
export interface OwnRelationshipAttributeJSON extends LocalAttributeJSON {
|
|
6
|
+
"@type": "OwnRelationshipAttribute";
|
|
7
|
+
content: RelationshipAttributeJSON;
|
|
8
|
+
peer: string;
|
|
9
|
+
sourceReference: string;
|
|
10
|
+
deletionInfo?: EmittedAttributeDeletionInfoJSON;
|
|
11
|
+
}
|
|
12
|
+
export interface IOwnRelationshipAttribute extends ILocalAttribute {
|
|
13
|
+
content: IRelationshipAttribute;
|
|
14
|
+
peer: ICoreAddress;
|
|
15
|
+
sourceReference: ICoreId;
|
|
16
|
+
deletionInfo?: IEmittedAttributeDeletionInfo;
|
|
17
|
+
}
|
|
18
|
+
export declare class OwnRelationshipAttribute extends LocalAttribute implements IOwnRelationshipAttribute {
|
|
19
|
+
readonly technicalProperties: string[];
|
|
20
|
+
content: RelationshipAttribute;
|
|
21
|
+
peer: CoreAddress;
|
|
22
|
+
sourceReference: CoreId;
|
|
23
|
+
deletionInfo?: EmittedAttributeDeletionInfo;
|
|
24
|
+
numberOfForwards?: number;
|
|
25
|
+
isDeletedOrToBeDeletedByRecipient(): boolean;
|
|
26
|
+
setPeerDeletionInfo(deletionInfo: EmittedAttributeDeletionInfo | undefined, overrideDeleted?: boolean): this;
|
|
27
|
+
static from(value: IOwnRelationshipAttribute | OwnRelationshipAttributeJSON): OwnRelationshipAttribute;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=OwnRelationshipAttribute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OwnRelationshipAttribute.d.ts","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/attributeTypes/OwnRelationshipAttribute.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,4BAA4B,EAAE,gCAAgC,EAAkC,6BAA6B,EAAE,MAAM,kBAAkB,CAAC;AACjK,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEvF,MAAM,WAAW,4BAA6B,SAAQ,kBAAkB;IACpE,OAAO,EAAE,0BAA0B,CAAC;IACpC,OAAO,EAAE,yBAAyB,CAAC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,gCAAgC,CAAC;CACnD;AAED,MAAM,WAAW,yBAA0B,SAAQ,eAAe;IAC9D,OAAO,EAAE,sBAAsB,CAAC;IAChC,IAAI,EAAE,YAAY,CAAC;IACnB,eAAe,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,6BAA6B,CAAC;CAChD;AAED,qBACa,wBAAyB,SAAQ,cAAe,YAAW,yBAAyB;IAC7F,SAAyB,mBAAmB,EAAE,MAAM,EAAE,CAOpD;IAIc,OAAO,EAAE,qBAAqB,CAAC;IAIxC,IAAI,EAAE,WAAW,CAAC;IAIlB,eAAe,EAAE,MAAM,CAAC;IAIxB,YAAY,CAAC,EAAE,4BAA4B,CAAC;IAG5C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,iCAAiC,IAAI,OAAO;IAO5C,mBAAmB,CAAC,YAAY,EAAE,4BAA4B,GAAG,SAAS,EAAE,eAAe,UAAQ,GAAG,IAAI;WAS1F,IAAI,CAAC,KAAK,EAAE,yBAAyB,GAAG,4BAA4B,GAAG,wBAAwB;CAGzH"}
|
|
@@ -0,0 +1,73 @@
|
|
|
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.OwnRelationshipAttribute = 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 OwnRelationshipAttribute = class OwnRelationshipAttribute 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
|
+
isDeletedOrToBeDeletedByRecipient() {
|
|
33
|
+
if (!this.deletionInfo)
|
|
34
|
+
return false;
|
|
35
|
+
const deletionStatuses = [deletionInfos_1.EmittedAttributeDeletionStatus.DeletedByRecipient, deletionInfos_1.EmittedAttributeDeletionStatus.ToBeDeletedByRecipient];
|
|
36
|
+
return deletionStatuses.includes(this.deletionInfo.deletionStatus);
|
|
37
|
+
}
|
|
38
|
+
setPeerDeletionInfo(deletionInfo, overrideDeleted = false) {
|
|
39
|
+
if (!overrideDeleted && this.deletionInfo?.deletionStatus === deletionInfos_1.EmittedAttributeDeletionStatus.DeletedByRecipient) {
|
|
40
|
+
throw ConsumptionCoreErrors_1.ConsumptionCoreErrors.attributes.cannotSetAttributeDeletionInfo(this.id);
|
|
41
|
+
}
|
|
42
|
+
this.deletionInfo = deletionInfo;
|
|
43
|
+
return this;
|
|
44
|
+
}
|
|
45
|
+
static from(value) {
|
|
46
|
+
return super.fromAny(value);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
exports.OwnRelationshipAttribute = OwnRelationshipAttribute;
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, ts_serval_1.serialize)({ customGenerator: (value) => value.toJSON(true) }),
|
|
52
|
+
(0, ts_serval_1.validate)(),
|
|
53
|
+
__metadata("design:type", content_1.RelationshipAttribute)
|
|
54
|
+
], OwnRelationshipAttribute.prototype, "content", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, ts_serval_1.validate)(),
|
|
57
|
+
(0, ts_serval_1.serialize)(),
|
|
58
|
+
__metadata("design:type", core_types_1.CoreAddress)
|
|
59
|
+
], OwnRelationshipAttribute.prototype, "peer", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, ts_serval_1.serialize)(),
|
|
62
|
+
(0, ts_serval_1.validate)(),
|
|
63
|
+
__metadata("design:type", core_types_1.CoreId)
|
|
64
|
+
], OwnRelationshipAttribute.prototype, "sourceReference", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, ts_serval_1.serialize)(),
|
|
67
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
68
|
+
__metadata("design:type", deletionInfos_1.EmittedAttributeDeletionInfo)
|
|
69
|
+
], OwnRelationshipAttribute.prototype, "deletionInfo", void 0);
|
|
70
|
+
exports.OwnRelationshipAttribute = OwnRelationshipAttribute = __decorate([
|
|
71
|
+
(0, ts_serval_1.type)("OwnRelationshipAttribute")
|
|
72
|
+
], OwnRelationshipAttribute);
|
|
73
|
+
//# sourceMappingURL=OwnRelationshipAttribute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OwnRelationshipAttribute.js","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/attributeTypes/OwnRelationshipAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA+D;AAC/D,4CAA0G;AAC1G,kDAA+E;AAC/E,uDAA0C;AAC1C,yFAAsF;AACtF,oDAAiK;AACjK,qDAAuF;AAkBhF,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,+BAAc;IAArD;;QACsB,wBAAmB,GAAa;YACrD,GAAG,IAAI,CAAC,mBAAmB;YAC3B,OAAO;YACP,UAAU;YACV,IAAA,yBAAM,EAA2B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;YAC/C,IAAA,yBAAM,EAA2B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,CAAC;YAC1D,IAAA,yBAAM,EAA2B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC;SAC1D,CAAC;IAwCN,CAAC;IAnBU,iCAAiC;QACpC,IAAI,CAAC,IAAI,CAAC,YAAY;YAAE,OAAO,KAAK,CAAC;QAErC,MAAM,gBAAgB,GAAG,CAAC,8CAA8B,CAAC,kBAAkB,EAAE,8CAA8B,CAAC,sBAAsB,CAAC,CAAC;QACpI,OAAO,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC;IACvE,CAAC;IAEM,mBAAmB,CAAC,YAAsD,EAAE,eAAe,GAAG,KAAK;QACtG,IAAI,CAAC,eAAe,IAAI,IAAI,CAAC,YAAY,EAAE,cAAc,KAAK,8CAA8B,CAAC,kBAAkB,EAAE,CAAC;YAC9G,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,KAA+D;QACvF,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAA6B,CAAC;IAC5D,CAAC;CACJ,CAAA;AAhDY,4DAAwB;AAYjB;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;yDAAC;AAIxC;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACC,wBAAW;sDAAC;AAIlB;IAFN,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACa,mBAAM;iEAAC;AAIxB;IAFN,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACP,4CAA4B;8DAAC;mCAxB1C,wBAAwB;IADpC,IAAA,gBAAI,EAAC,0BAA0B,CAAC;GACpB,wBAAwB,CAgDpC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IdentityAttribute, IdentityAttributeJSON, IIdentityAttribute } 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 PeerIdentityAttributeJSON extends LocalAttributeJSON {
|
|
6
|
+
"@type": "PeerIdentityAttribute";
|
|
7
|
+
content: IdentityAttributeJSON;
|
|
8
|
+
peer: string;
|
|
9
|
+
sourceReference: string;
|
|
10
|
+
deletionInfo?: ReceivedAttributeDeletionInfoJSON;
|
|
11
|
+
}
|
|
12
|
+
export interface IPeerIdentityAttribute extends ILocalAttribute {
|
|
13
|
+
content: IIdentityAttribute;
|
|
14
|
+
peer: ICoreAddress;
|
|
15
|
+
sourceReference: ICoreId;
|
|
16
|
+
deletionInfo?: IReceivedAttributeDeletionInfo;
|
|
17
|
+
}
|
|
18
|
+
export declare class PeerIdentityAttribute extends LocalAttribute implements IPeerIdentityAttribute {
|
|
19
|
+
readonly technicalProperties: string[];
|
|
20
|
+
content: IdentityAttribute;
|
|
21
|
+
peer: CoreAddress;
|
|
22
|
+
sourceReference: CoreId;
|
|
23
|
+
deletionInfo?: ReceivedAttributeDeletionInfo;
|
|
24
|
+
isDeletedByEmitterOrToBeDeleted(): boolean;
|
|
25
|
+
isToBeDeleted(): boolean;
|
|
26
|
+
setPeerDeletionInfo(deletionInfo: ReceivedAttributeDeletionInfo | undefined, overrideDeleted?: boolean): this;
|
|
27
|
+
static from(value: IPeerIdentityAttribute | PeerIdentityAttributeJSON): PeerIdentityAttribute;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=PeerIdentityAttribute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PeerIdentityAttribute.d.ts","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/attributeTypes/PeerIdentityAttribute.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAC9F,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,yBAA0B,SAAQ,kBAAkB;IACjE,OAAO,EAAE,uBAAuB,CAAC;IACjC,OAAO,EAAE,qBAAqB,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,iCAAiC,CAAC;CACpD;AAED,MAAM,WAAW,sBAAuB,SAAQ,eAAe;IAC3D,OAAO,EAAE,kBAAkB,CAAC;IAC5B,IAAI,EAAE,YAAY,CAAC;IACnB,eAAe,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,8BAA8B,CAAC;CACjD;AAED,qBACa,qBAAsB,SAAQ,cAAe,YAAW,sBAAsB;IACvF,SAAyB,mBAAmB,EAAE,MAAM,EAAE,CAOpD;IAIc,OAAO,EAAE,iBAAiB,CAAC;IAIpC,IAAI,EAAE,WAAW,CAAC;IAIlB,eAAe,EAAE,MAAM,CAAC;IAIxB,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;WAS3F,IAAI,CAAC,KAAK,EAAE,sBAAsB,GAAG,yBAAyB,GAAG,qBAAqB;CAGhH"}
|
|
@@ -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.PeerIdentityAttribute = 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 PeerIdentityAttribute = class PeerIdentityAttribute 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.PeerIdentityAttribute = PeerIdentityAttribute;
|
|
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.IdentityAttribute)
|
|
57
|
+
], PeerIdentityAttribute.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
|
+
], PeerIdentityAttribute.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
|
+
], PeerIdentityAttribute.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
|
+
], PeerIdentityAttribute.prototype, "deletionInfo", void 0);
|
|
73
|
+
exports.PeerIdentityAttribute = PeerIdentityAttribute = __decorate([
|
|
74
|
+
(0, ts_serval_1.type)("PeerIdentityAttribute")
|
|
75
|
+
], PeerIdentityAttribute);
|
|
76
|
+
//# sourceMappingURL=PeerIdentityAttribute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PeerIdentityAttribute.js","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/attributeTypes/PeerIdentityAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA+D;AAC/D,4CAA8F;AAC9F,kDAA+E;AAC/E,uDAA0C;AAC1C,yFAAsF;AACtF,oDAAqK;AACrK,qDAAuF;AAkBhF,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,+BAAc;IAAlD;;QACsB,wBAAmB,GAAa;YACrD,GAAG,IAAI,CAAC,mBAAmB;YAC3B,OAAO;YACP,UAAU;YACV,IAAA,yBAAM,EAAwB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;YAC5C,IAAA,yBAAM,EAAwB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,CAAC;YACvD,IAAA,yBAAM,EAAwB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC;SACvD,CAAC;IAyCN,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,KAAyD;QACjF,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAA0B,CAAC;IACzD,CAAC;CACJ,CAAA;AAjDY,sDAAqB;AAYd;IAFf,IAAA,qBAAS,EAAC,EAAE,eAAe,EAAE,CAAC,KAAwB,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;IAChF,IAAA,oBAAQ,GAAE;8BACc,2BAAiB;sDAAC;AAIpC;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACC,wBAAW;mDAAC;AAIlB;IAFN,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACa,mBAAM;8DAAC;AAIxB;IAFN,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACP,6CAA6B;2DAAC;gCAxB3C,qBAAqB;IADjC,IAAA,gBAAI,EAAC,uBAAuB,CAAC;GACjB,qBAAqB,CAiDjC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 PeerRelationshipAttributeJSON extends LocalAttributeJSON {
|
|
6
|
+
"@type": "PeerRelationshipAttribute";
|
|
7
|
+
content: RelationshipAttributeJSON;
|
|
8
|
+
peer: string;
|
|
9
|
+
sourceReference: string;
|
|
10
|
+
deletionInfo?: ReceivedAttributeDeletionInfoJSON;
|
|
11
|
+
}
|
|
12
|
+
export interface IPeerRelationshipAttribute extends ILocalAttribute {
|
|
13
|
+
content: IRelationshipAttribute;
|
|
14
|
+
peer: ICoreAddress;
|
|
15
|
+
sourceReference: ICoreId;
|
|
16
|
+
deletionInfo?: IReceivedAttributeDeletionInfo;
|
|
17
|
+
}
|
|
18
|
+
export declare class PeerRelationshipAttribute extends LocalAttribute implements IPeerRelationshipAttribute {
|
|
19
|
+
readonly technicalProperties: string[];
|
|
20
|
+
content: RelationshipAttribute;
|
|
21
|
+
peer: CoreAddress;
|
|
22
|
+
sourceReference: CoreId;
|
|
23
|
+
deletionInfo?: ReceivedAttributeDeletionInfo;
|
|
24
|
+
numberOfForwards?: number;
|
|
25
|
+
isDeletedByEmitterOrToBeDeleted(): boolean;
|
|
26
|
+
isToBeDeleted(): boolean;
|
|
27
|
+
setPeerDeletionInfo(deletionInfo: ReceivedAttributeDeletionInfo | undefined, overrideDeleted?: boolean): this;
|
|
28
|
+
static from(value: IPeerRelationshipAttribute | PeerRelationshipAttributeJSON): PeerRelationshipAttribute;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=PeerRelationshipAttribute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PeerRelationshipAttribute.d.ts","sourceRoot":"","sources":["../../../../../src/modules/attributes/local/attributeTypes/PeerRelationshipAttribute.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,eAA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