@nmshd/consumption 7.0.0-openid4vc.5 → 7.0.0
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 -12
- 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 -19
- 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
package/dist/buildInformation.js
CHANGED
|
@@ -6,11 +6,11 @@ const content_1 = require("@nmshd/content");
|
|
|
6
6
|
const crypto_1 = require("@nmshd/crypto");
|
|
7
7
|
const transport_1 = require("@nmshd/transport");
|
|
8
8
|
exports.buildInformation = {
|
|
9
|
-
version: "7.0.0
|
|
10
|
-
build: "
|
|
11
|
-
date: "2025-10-
|
|
12
|
-
commit: "
|
|
13
|
-
dependencies: {"@
|
|
9
|
+
version: "7.0.0",
|
|
10
|
+
build: "359",
|
|
11
|
+
date: "2025-10-27T15:10:17+00:00",
|
|
12
|
+
commit: "28aa600f1720df82b089891e9d4bb2766c135e55",
|
|
13
|
+
dependencies: {"@js-soft/docdb-querytranslator":"^1.1.6","@js-soft/ts-serval":"2.0.14","@js-soft/ts-utils":"2.3.5","@nmshd/content":"*","@nmshd/core-types":"*","@nmshd/iql":"^1.0.4","@nmshd/transport":"*","lodash":"^4.17.21","ts-simple-nameof":"^1.3.3"},
|
|
14
14
|
libraries: {
|
|
15
15
|
transport: transport_1.buildInformation,
|
|
16
16
|
crypto: crypto_1.buildInformation,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsumptionConfig.d.ts","sourceRoot":"","sources":["../../src/consumption/ConsumptionConfig.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAC9B,
|
|
1
|
+
{"version":3,"file":"ConsumptionConfig.d.ts","sourceRoot":"","sources":["../../src/consumption/ConsumptionConfig.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAC9B,+BAA+B,EAAE,OAAO,CAAC;CAC5C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CoreAddress, CoreId } from "@nmshd/core-types";
|
|
2
2
|
import { AccountController, Transport } from "@nmshd/transport";
|
|
3
|
-
import { AttributesController, DraftsController, IdentityMetadataController, IncomingRequestsController, NotificationItemConstructor, NotificationItemProcessorConstructor, NotificationsController,
|
|
3
|
+
import { AttributesController, DraftsController, IdentityMetadataController, IncomingRequestsController, NotificationItemConstructor, NotificationItemProcessorConstructor, NotificationsController, OutgoingRequestsController, RequestItemConstructor, RequestItemProcessorConstructor, SettingsController } from "../modules";
|
|
4
4
|
import { ConsumptionConfig } from "./ConsumptionConfig";
|
|
5
5
|
export declare class ConsumptionController {
|
|
6
6
|
readonly transport: Transport;
|
|
@@ -19,8 +19,6 @@ export declare class ConsumptionController {
|
|
|
19
19
|
get settings(): SettingsController;
|
|
20
20
|
private _notifications;
|
|
21
21
|
get notifications(): NotificationsController;
|
|
22
|
-
private _openId4Vc;
|
|
23
|
-
get openId4Vc(): OpenId4VcController;
|
|
24
22
|
private _identityMetadata;
|
|
25
23
|
get identityMetadata(): IdentityMetadataController;
|
|
26
24
|
init(requestItemProcessorOverrides?: Map<RequestItemConstructor, RequestItemProcessorConstructor>, notificationItemProcessorOverrides?: Map<NotificationItemConstructor, NotificationItemProcessorConstructor>): Promise<ConsumptionController>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsumptionController.d.ts","sourceRoot":"","sources":["../../src/consumption/ConsumptionController.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EACH,oBAAoB,EAGpB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"ConsumptionController.d.ts","sourceRoot":"","sources":["../../src/consumption/ConsumptionController.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EACH,oBAAoB,EAGpB,gBAAgB,EAIhB,0BAA0B,EAC1B,0BAA0B,EAC1B,2BAA2B,EAC3B,oCAAoC,EAEpC,uBAAuB,EACvB,0BAA0B,EAM1B,sBAAsB,EACtB,+BAA+B,EAE/B,kBAAkB,EAGrB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,qBAAqB;aAEV,SAAS,EAAE,SAAS;aACpB,iBAAiB,EAAE,iBAAiB;aACpC,iBAAiB,EAAE,iBAAiB;gBAFpC,SAAS,EAAE,SAAS,EACpB,iBAAiB,EAAE,iBAAiB,EACpC,iBAAiB,EAAE,iBAAiB;IAGxD,OAAO,CAAC,WAAW,CAAuB;IAC1C,IAAW,UAAU,IAAI,oBAAoB,CAE5C;IAED,OAAO,CAAC,OAAO,CAAmB;IAClC,IAAW,MAAM,IAAI,gBAAgB,CAEpC;IAED,OAAO,CAAC,iBAAiB,CAA6B;IACtD,IAAW,gBAAgB,IAAI,0BAA0B,CAExD;IAED,OAAO,CAAC,iBAAiB,CAA6B;IACtD,IAAW,gBAAgB,IAAI,0BAA0B,CAExD;IAED,OAAO,CAAC,SAAS,CAAqB;IACtC,IAAW,QAAQ,IAAI,kBAAkB,CAExC;IAED,OAAO,CAAC,cAAc,CAA0B;IAChD,IAAW,aAAa,IAAI,uBAAuB,CAElD;IAED,OAAO,CAAC,iBAAiB,CAA6B;IACtD,IAAW,gBAAgB,IAAI,0BAA0B,CAExD;IAEY,IAAI,CACb,6BAA6B,+DAAqE,EAClG,kCAAkC,yEAA+E,GAClH,OAAO,CAAC,qBAAqB,CAAC;IAoDjC,OAAO,CAAC,+BAA+B;IAcvC,OAAO,CAAC,oCAAoC;IAS/B,mCAAmC,CAAC,IAAI,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAQ7G"}
|
|
@@ -27,14 +27,11 @@ class ConsumptionController {
|
|
|
27
27
|
get notifications() {
|
|
28
28
|
return this._notifications;
|
|
29
29
|
}
|
|
30
|
-
get openId4Vc() {
|
|
31
|
-
return this._openId4Vc;
|
|
32
|
-
}
|
|
33
30
|
get identityMetadata() {
|
|
34
31
|
return this._identityMetadata;
|
|
35
32
|
}
|
|
36
33
|
async init(requestItemProcessorOverrides = new Map(), notificationItemProcessorOverrides = new Map()) {
|
|
37
|
-
this._attributes = await new modules_1.AttributesController(this, this.transport.eventBus, this.accountController.identity, this.consumptionConfig.
|
|
34
|
+
this._attributes = await new modules_1.AttributesController(this, this.transport.eventBus, this.accountController.identity, this.consumptionConfig.setDefaultOwnIdentityAttributes).init();
|
|
38
35
|
this._drafts = await new modules_1.DraftsController(this).init();
|
|
39
36
|
const requestItemProcessorRegistry = new modules_1.RequestItemProcessorRegistry(this, this.getDefaultRequestItemProcessors());
|
|
40
37
|
for (const [itemConstructor, processorConstructor] of requestItemProcessorOverrides) {
|
|
@@ -49,7 +46,6 @@ class ConsumptionController {
|
|
|
49
46
|
this._notifications = await new modules_1.NotificationsController(await this.accountController.getSynchronizedCollection("Notifications"), notificationItemProcessorRegistry, this, this.transport.eventBus, this.accountController.activeDevice).init();
|
|
50
47
|
this._identityMetadata = await new modules_1.IdentityMetadataController(this).init();
|
|
51
48
|
this._settings = await new modules_1.SettingsController(this).init();
|
|
52
|
-
this._openId4Vc = await new modules_1.OpenId4VcController(this).init();
|
|
53
49
|
return this;
|
|
54
50
|
}
|
|
55
51
|
getDefaultRequestItemProcessors() {
|
|
@@ -67,10 +63,10 @@ class ConsumptionController {
|
|
|
67
63
|
}
|
|
68
64
|
getDefaultNotificationItemProcessors() {
|
|
69
65
|
return new Map([
|
|
70
|
-
[content_1.
|
|
71
|
-
[content_1.
|
|
72
|
-
[content_1.
|
|
73
|
-
[content_1.
|
|
66
|
+
[content_1.PeerAttributeSucceededNotificationItem, modules_1.PeerAttributeSucceededNotificationItemProcessor],
|
|
67
|
+
[content_1.OwnAttributeDeletedByOwnerNotificationItem, modules_1.OwnAttributeDeletedByOwnerNotificationItemProcessor],
|
|
68
|
+
[content_1.PeerRelationshipAttributeDeletedByPeerNotificationItem, modules_1.PeerRelationshipAttributeDeletedByPeerNotificationItemProcessor],
|
|
69
|
+
[content_1.ForwardedAttributeDeletedByPeerNotificationItem, modules_1.ForwardedAttributeDeletedByPeerNotificationItemProcessor]
|
|
74
70
|
]);
|
|
75
71
|
}
|
|
76
72
|
async cleanupDataOfDecomposedRelationship(peer, relationshipId) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsumptionController.js","sourceRoot":"","sources":["../../src/consumption/ConsumptionController.ts"],"names":[],"mappings":";;;AAAA,4CAcwB;AAGxB,
|
|
1
|
+
{"version":3,"file":"ConsumptionController.js","sourceRoot":"","sources":["../../src/consumption/ConsumptionController.ts"],"names":[],"mappings":";;;AAAA,4CAcwB;AAGxB,wCA0BoB;AAGpB,MAAa,qBAAqB;IAC9B,YACoB,SAAoB,EACpB,iBAAoC,EACpC,iBAAoC;QAFpC,cAAS,GAAT,SAAS,CAAW;QACpB,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,sBAAiB,GAAjB,iBAAiB,CAAmB;IACrD,CAAC;IAGJ,IAAW,UAAU;QACjB,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;IAGD,IAAW,MAAM;QACb,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAGD,IAAW,gBAAgB;QACvB,OAAO,IAAI,CAAC,iBAAiB,CAAC;IAClC,CAAC;IAGD,IAAW,gBAAgB;QACvB,OAAO,IAAI,CAAC,iBAAiB,CAAC;IAClC,CAAC;IAGD,IAAW,QAAQ;QACf,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAGD,IAAW,aAAa;QACpB,OAAO,IAAI,CAAC,cAAc,CAAC;IAC/B,CAAC;IAGD,IAAW,gBAAgB;QACvB,OAAO,IAAI,CAAC,iBAAiB,CAAC;IAClC,CAAC;IAEM,KAAK,CAAC,IAAI,CACb,gCAAgC,IAAI,GAAG,EAA2D,EAClG,qCAAqC,IAAI,GAAG,EAAqE;QAEjH,IAAI,CAAC,WAAW,GAAG,MAAM,IAAI,8BAAoB,CAC7C,IAAI,EACJ,IAAI,CAAC,SAAS,CAAC,QAAQ,EACvB,IAAI,CAAC,iBAAiB,CAAC,QAAQ,EAC/B,IAAI,CAAC,iBAAiB,CAAC,+BAA+B,CACzD,C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AC,IAAI,CAAC,CAAC;QAC9D,MAAM,IAAI,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,IAAI,CAAC,gBAAgB,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;QACzD,MAAM,IAAI,CAAC,QAAQ,CAAC,6BAA6B,CAAC,cAAc,CAAC,CAAC;QAClE,MAAM,IAAI,CAAC,aAAa,CAAC,oCAAoC,CAAC,IAAI,CAAC,CAAC;QACpE,MAAM,IAAI,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,IAAI,CAAC,CAAC;IAC/E,CAAC;CACJ;AAhID,sDAgIC"}
|
|
@@ -4,7 +4,6 @@ export declare enum ConsumptionControllerName {
|
|
|
4
4
|
RequestsController = "RequestsController",
|
|
5
5
|
SettingsController = "SettingsController",
|
|
6
6
|
NotificationsController = "NotificationsController",
|
|
7
|
-
IdentityMetadataController = "IdentityMetadataController"
|
|
8
|
-
OpenId4VcController = "OpenId4VcController"
|
|
7
|
+
IdentityMetadataController = "IdentityMetadataController"
|
|
9
8
|
}
|
|
10
9
|
//# sourceMappingURL=ConsumptionControllerName.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsumptionControllerName.d.ts","sourceRoot":"","sources":["../../src/consumption/ConsumptionControllerName.ts"],"names":[],"mappings":"AAAA,oBAAY,yBAAyB;IACjC,oBAAoB,yBAAyB;IAC7C,gBAAgB,qBAAqB;IACrC,kBAAkB,uBAAuB;IACzC,kBAAkB,uBAAuB;IACzC,uBAAuB,4BAA4B;IACnD,0BAA0B,+BAA+B;
|
|
1
|
+
{"version":3,"file":"ConsumptionControllerName.d.ts","sourceRoot":"","sources":["../../src/consumption/ConsumptionControllerName.ts"],"names":[],"mappings":"AAAA,oBAAY,yBAAyB;IACjC,oBAAoB,yBAAyB;IAC7C,gBAAgB,qBAAqB;IACrC,kBAAkB,uBAAuB;IACzC,kBAAkB,uBAAuB;IACzC,uBAAuB,4BAA4B;IACnD,0BAA0B,+BAA+B;CAC5D"}
|
|
@@ -9,6 +9,5 @@ var ConsumptionControllerName;
|
|
|
9
9
|
ConsumptionControllerName["SettingsController"] = "SettingsController";
|
|
10
10
|
ConsumptionControllerName["NotificationsController"] = "NotificationsController";
|
|
11
11
|
ConsumptionControllerName["IdentityMetadataController"] = "IdentityMetadataController";
|
|
12
|
-
ConsumptionControllerName["OpenId4VcController"] = "OpenId4VcController";
|
|
13
12
|
})(ConsumptionControllerName || (exports.ConsumptionControllerName = ConsumptionControllerName = {}));
|
|
14
13
|
//# sourceMappingURL=ConsumptionControllerName.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsumptionControllerName.js","sourceRoot":"","sources":["../../src/consumption/ConsumptionControllerName.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"ConsumptionControllerName.js","sourceRoot":"","sources":["../../src/consumption/ConsumptionControllerName.ts"],"names":[],"mappings":";;;AAAA,IAAY,yBAOX;AAPD,WAAY,yBAAyB;IACjC,0EAA6C,CAAA;IAC7C,kEAAqC,CAAA;IACrC,sEAAyC,CAAA;IACzC,sEAAyC,CAAA;IACzC,gFAAmD,CAAA;IACnD,sFAAyD,CAAA;AAC7D,CAAC,EAPW,yBAAyB,yCAAzB,yBAAyB,QAOpC"}
|
|
@@ -1,56 +1,26 @@
|
|
|
1
1
|
import { ApplicationError } from "@js-soft/ts-utils";
|
|
2
2
|
import { CoreAddress, CoreError, CoreId } from "@nmshd/core-types";
|
|
3
3
|
declare class Attributes {
|
|
4
|
+
alreadyForwarded(attributeId: CoreId, peer: CoreAddress): CoreError;
|
|
4
5
|
successorIsNotAValidAttribute(error: any): CoreError;
|
|
5
6
|
successionMustNotChangeKey(): CoreError;
|
|
6
7
|
successionPeerIsNotOwner(): CoreError;
|
|
7
|
-
predecessorSourceAttributeIsNotRepositoryAttribute(): CoreError;
|
|
8
|
-
successorSourceAttributeIsNotRepositoryAttribute(): CoreError;
|
|
9
|
-
successorSourceDoesNotSucceedPredecessorSource(): CoreError;
|
|
10
|
-
predecessorSourceContentIsNotEqualToCopyContent(): CoreError;
|
|
11
|
-
successorSourceContentIsNotEqualToCopyContent(): CoreError;
|
|
12
|
-
cannotSucceedChildOfComplexAttribute(parentId: string | CoreId): CoreError;
|
|
13
8
|
successorMustNotYetExist(): CoreError;
|
|
14
|
-
successorMustNotHaveASuccessor(comment?: string): CoreError;
|
|
15
|
-
predecessorIsNotRepositoryAttribute(): CoreError;
|
|
16
|
-
predecessorIsNotOwnSharedIdentityAttribute(): CoreError;
|
|
17
|
-
predecessorIsNotPeerSharedIdentityAttribute(): CoreError;
|
|
18
|
-
predecessorIsNotOwnSharedRelationshipAttribute(): CoreError;
|
|
19
|
-
predecessorIsNotPeerSharedRelationshipAttribute(): CoreError;
|
|
20
|
-
predecessorIsNotThirdPartyRelationshipAttribute(): CoreError;
|
|
21
|
-
successorIsNotRepositoryAttribute(): CoreError;
|
|
22
|
-
successorIsNotOwnSharedIdentityAttribute(): CoreError;
|
|
23
|
-
successorIsNotPeerSharedIdentityAttribute(): CoreError;
|
|
24
|
-
successorIsNotOwnSharedRelationshipAttribute(): CoreError;
|
|
25
|
-
successorIsNotPeerSharedRelationshipAttribute(): CoreError;
|
|
26
|
-
successorIsNotThirdPartyRelationshipAttribute(): CoreError;
|
|
27
|
-
setPredecessorIdDoesNotMatchActualPredecessorId(): CoreError;
|
|
28
9
|
predecessorDoesNotExist(): CoreError;
|
|
29
10
|
successorDoesNotExist(): CoreError;
|
|
30
|
-
successorSourceAttributeIsNotSpecified(): CoreError;
|
|
31
|
-
successorSourceAttributeDoesNotExist(): CoreError;
|
|
32
11
|
successionMustChangeContent(): CoreError;
|
|
33
12
|
successionMustNotChangeOwner(): CoreError;
|
|
34
13
|
successionMustNotChangeValueType(): CoreError;
|
|
35
14
|
successionMustNotChangeContentType(): CoreError;
|
|
36
|
-
successionMustNotChangePeer(comment?: string): CoreError;
|
|
37
|
-
successionMustNotChangeThirdParty(comment?: string): CoreError;
|
|
38
15
|
cannotSucceedAttributesWithASuccessor(successorId: string | CoreId): CoreError;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
invalidDeletionInfoOfOwnSharedAttribute(): CoreError;
|
|
43
|
-
invalidDeletionInfoOfPeerSharedAttribute(): CoreError;
|
|
44
|
-
invalidDeletionInfoOfThirdPartyRelationshipAttribute(): CoreError;
|
|
16
|
+
cannotSucceedSharedAttributesDeletedByPeer(): CoreError;
|
|
17
|
+
cannotSetAttributeDeletionInfo(attributeId: string | CoreId, peer?: CoreAddress | string): CoreError;
|
|
18
|
+
cannotSetForwardingDetailsForPeer(attributeId: string | CoreId, peer: CoreAddress | string): CoreError;
|
|
45
19
|
wrongRelationshipStatusToSetDeletionInfo(): CoreError;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
isNotSharedAttribute(attributeId: string | CoreId): CoreError;
|
|
49
|
-
isNotOwnSharedAttribute(attributeId: string | CoreId): CoreError;
|
|
50
|
-
isNotPeerSharedAttribute(attributeId: string | CoreId): CoreError;
|
|
51
|
-
isNotThirdPartyRelationshipAttribute(attributeId: string | CoreId): CoreError;
|
|
20
|
+
wrongOwnerOfAttribute(message: string): CoreError;
|
|
21
|
+
wrongTypeOfAttribute(message: string): CoreError;
|
|
52
22
|
senderIsNotPeerOfSharedAttribute(senderId: string | CoreAddress, attributeId: string | CoreId): CoreError;
|
|
53
|
-
|
|
23
|
+
setDefaultOwnIdentityAttributesIsDisabled(): CoreError;
|
|
54
24
|
invalidTags(tags: string[]): ApplicationError;
|
|
55
25
|
forbiddenCharactersInAttribute(message: string): CoreError;
|
|
56
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsumptionCoreErrors.d.ts","sourceRoot":"","sources":["../../src/consumption/ConsumptionCoreErrors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC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,GAAG;IAUjD,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,gBAAgB;IAI1D,kBAAkB,CAAC,OAAO,EAAE,MAAM;IAIlC,sBAAsB,CAAC,OAAO,EAAE,MAAM;IAItC,qDAAqD;IAOrD,uBAAuB,CAAC,OAAO,EAAE,MAAM;IAIvC,mBAAmB,CAAC,OAAO,EAAE,MAAM;IAInC,aAAa,CAAC,OAAO,EAAE,MAAM;IAI7B,gBAAgB,CAAC,OAAO,EAAE,MAAM;IAIhC,6CAA6C,CAAC,OAAO,EAAE,MAAM;IAI7D,iBAAiB,CAAC,OAAO,EAAE,MAAM;IAIjC,8BAA8B;IAI9B,2CAA2C;IAI3C,kCAAkC,CAAC,EAAE,EAAE,MAAM;IAO7C,yCAAyC,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAO3E,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,iBAAiB,CA0BvC;IAEF,SAAgB,gBAAgB;sCA3BS,MAAM;mDAIO,MAAM,GAAG,gBAAgB;+CAI7B,MAAM,GAAG,gBAAgB;iDAIvB,gBAAgB;iDAOhB,gBAAgB;MAQA;CACvE;AAED,qBAAa,qBAAqB;IAC9B,OAAc,UAAU,aAAoB;IAC5C,OAAc,QAAQ,WAAkB;CAC3C"}
|
|
@@ -4,6 +4,9 @@ exports.ConsumptionCoreErrors = void 0;
|
|
|
4
4
|
const ts_utils_1 = require("@js-soft/ts-utils");
|
|
5
5
|
const core_types_1 = require("@nmshd/core-types");
|
|
6
6
|
class Attributes {
|
|
7
|
+
alreadyForwarded(attributeId, peer) {
|
|
8
|
+
return new core_types_1.CoreError("error.consumption.attributes.alreadyForwarded", `The Attribute '${attributeId.toString()} is already forwarded to peer '${peer.toString()}'.`);
|
|
9
|
+
}
|
|
7
10
|
successorIsNotAValidAttribute(error) {
|
|
8
11
|
return new core_types_1.CoreError("error.consumption.attributes.successorIsNotAValidAttribute", "Validation failed during creation of successor.", error, undefined, error instanceof Error ? error : undefined);
|
|
9
12
|
}
|
|
@@ -13,84 +16,15 @@ class Attributes {
|
|
|
13
16
|
successionPeerIsNotOwner() {
|
|
14
17
|
return new core_types_1.CoreError("error.consumption.attributes.successionPeerIsNotOwner", "The peer of the succeeded Attribute is not its owner. This may be an attempt of spoofing.");
|
|
15
18
|
}
|
|
16
|
-
predecessorSourceAttributeIsNotRepositoryAttribute() {
|
|
17
|
-
return new core_types_1.CoreError("error.consumption.attributes.predecessorSourceAttributeIsNotRepositoryAttribute", "Predecessor sourceAttribute is not a RepositoryAttribute.");
|
|
18
|
-
}
|
|
19
|
-
successorSourceAttributeIsNotRepositoryAttribute() {
|
|
20
|
-
return new core_types_1.CoreError("error.consumption.attributes.successorSourceAttributeIsNotRepositoryAttribute", "Successor sourceAttribute is not a RepositoryAttribute.");
|
|
21
|
-
}
|
|
22
|
-
successorSourceDoesNotSucceedPredecessorSource() {
|
|
23
|
-
return new core_types_1.CoreError("error.consumption.attributes.successorSourceDoesNotSucceedPredecessorSource", "Predecessor sourceAttribute is not succeeded by successor sourceAttribute.");
|
|
24
|
-
}
|
|
25
|
-
predecessorSourceContentIsNotEqualToCopyContent() {
|
|
26
|
-
return new core_types_1.CoreError("error.consumption.attributes.predecessorSourceContentIsNotEqualToCopyContent", "Predecessor sourceAttribute content doesn't match the content of the predecessor shared Attribute copy.");
|
|
27
|
-
}
|
|
28
|
-
successorSourceContentIsNotEqualToCopyContent() {
|
|
29
|
-
return new core_types_1.CoreError("error.consumption.attributes.successorSourceContentIsNotEqualToCopyContent", "Successor sourceAttribute content doesn't match the content of the successor shared Attribute copy.");
|
|
30
|
-
}
|
|
31
|
-
cannotSucceedChildOfComplexAttribute(parentId) {
|
|
32
|
-
return new core_types_1.CoreError("error.consumption.attributes.cannotSucceedChildOfComplexAttribute", `The Attribute you want to succeed is a child Attribute of a complex Attribute (id: '${parentId}'), and cannot be succeeded on its own. Instead, succeed the parent which will implicitly succeed all its children.`);
|
|
33
|
-
}
|
|
34
19
|
successorMustNotYetExist() {
|
|
35
20
|
return new core_types_1.CoreError("error.consumption.attributes.successorMustNotYetExist", "The predecessor Attribute's successor must not exist. It will be created by the succession handlers and must not be created manually.");
|
|
36
21
|
}
|
|
37
|
-
successorMustNotHaveASuccessor(comment) {
|
|
38
|
-
let errorMessage = "The successor must not have a successor itself.";
|
|
39
|
-
if (comment)
|
|
40
|
-
errorMessage += ` ${comment}`;
|
|
41
|
-
return new core_types_1.CoreError("error.consumption.attributes.successorMustNotHaveASuccessor", errorMessage);
|
|
42
|
-
}
|
|
43
|
-
predecessorIsNotRepositoryAttribute() {
|
|
44
|
-
return new core_types_1.CoreError("error.consumption.attributes.predecessorIsNotRepositoryAttribute", "Predecessor is not a RepositoryAttribute.");
|
|
45
|
-
}
|
|
46
|
-
predecessorIsNotOwnSharedIdentityAttribute() {
|
|
47
|
-
return new core_types_1.CoreError("error.consumption.attributes.predecessorIsNotOwnSharedIdentityAttribute", "Predecessor is not an own shared IdentityAttribute.");
|
|
48
|
-
}
|
|
49
|
-
predecessorIsNotPeerSharedIdentityAttribute() {
|
|
50
|
-
return new core_types_1.CoreError("error.consumption.attributes.predecessorIsNotPeerSharedIdentityAttribute", "Predecessor is not a peer shared IdentityAttribute.");
|
|
51
|
-
}
|
|
52
|
-
predecessorIsNotOwnSharedRelationshipAttribute() {
|
|
53
|
-
return new core_types_1.CoreError("error.consumption.attributes.predecessorIsNotOwnSharedRelationshipAttribute", "Predecessor is not an own shared RelationshipAttribute.");
|
|
54
|
-
}
|
|
55
|
-
predecessorIsNotPeerSharedRelationshipAttribute() {
|
|
56
|
-
return new core_types_1.CoreError("error.consumption.attributes.predecessorIsNotPeerSharedRelationshipAttribute", "Predecessor is not a peer shared RelationshipAttribute.");
|
|
57
|
-
}
|
|
58
|
-
predecessorIsNotThirdPartyRelationshipAttribute() {
|
|
59
|
-
return new core_types_1.CoreError("error.consumption.attributes.predecessorIsNotThirdPartyRelationshipAttribute", "Predecessor is not a ThirdPartyRelationshipAttribute.");
|
|
60
|
-
}
|
|
61
|
-
successorIsNotRepositoryAttribute() {
|
|
62
|
-
return new core_types_1.CoreError("error.consumption.attributes.successorIsNotRepositoryAttribute", "Successor is not a RepositoryAttribute.");
|
|
63
|
-
}
|
|
64
|
-
successorIsNotOwnSharedIdentityAttribute() {
|
|
65
|
-
return new core_types_1.CoreError("error.consumption.attributes.successorIsNotOwnSharedIdentityAttribute", "Successor is not an own shared IdentityAttribute.");
|
|
66
|
-
}
|
|
67
|
-
successorIsNotPeerSharedIdentityAttribute() {
|
|
68
|
-
return new core_types_1.CoreError("error.consumption.attributes.successorIsNotPeerSharedIdentityAttribute", "Successor is not a peer shared IdentityAttribute.");
|
|
69
|
-
}
|
|
70
|
-
successorIsNotOwnSharedRelationshipAttribute() {
|
|
71
|
-
return new core_types_1.CoreError("error.consumption.attributes.successorIsNotOwnSharedRelationshipAttribute", "Successor is not an own shared RelationshipAttribute.");
|
|
72
|
-
}
|
|
73
|
-
successorIsNotPeerSharedRelationshipAttribute() {
|
|
74
|
-
return new core_types_1.CoreError("error.consumption.attributes.successorIsNotPeerSharedRelationshipAttribute", "Successor is not a peer shared RelationshipAttribute.");
|
|
75
|
-
}
|
|
76
|
-
successorIsNotThirdPartyRelationshipAttribute() {
|
|
77
|
-
return new core_types_1.CoreError("error.consumption.attributes.successorIsNotThirdPartyRelationshipAttribute", "Successor is not a ThirdPartyRelationshipAttribute.");
|
|
78
|
-
}
|
|
79
|
-
setPredecessorIdDoesNotMatchActualPredecessorId() {
|
|
80
|
-
return new core_types_1.CoreError("error.consumption.attributes.setPredecessorIdDoesNotMatchActualPredecessorId", "The predecessor's ID and the explicitly set value for the successor's succeeds field don't match.");
|
|
81
|
-
}
|
|
82
22
|
predecessorDoesNotExist() {
|
|
83
23
|
return new core_types_1.CoreError("error.consumption.attributes.predecessorDoesNotExist", "The predecessor does not exist.");
|
|
84
24
|
}
|
|
85
25
|
successorDoesNotExist() {
|
|
86
26
|
return new core_types_1.CoreError("error.consumption.attributes.successorDoesNotExist", "The successor does not exist.");
|
|
87
27
|
}
|
|
88
|
-
successorSourceAttributeIsNotSpecified() {
|
|
89
|
-
return new core_types_1.CoreError("error.consumption.attributes.successorSourceAttributeIsNotSpecified", "You must specify the sourceAttribute of the successor.");
|
|
90
|
-
}
|
|
91
|
-
successorSourceAttributeDoesNotExist() {
|
|
92
|
-
return new core_types_1.CoreError("error.consumption.attributes.successorSourceAttributeDoesNotExist", "The successor sourceAttribute does not exist.");
|
|
93
|
-
}
|
|
94
28
|
successionMustChangeContent() {
|
|
95
29
|
return new core_types_1.CoreError("error.consumption.attributes.successionMustChangeContent", "The content of the successor matches that of the predecessor. An Attribute succession must change the Attribute's content.");
|
|
96
30
|
}
|
|
@@ -103,65 +37,35 @@ class Attributes {
|
|
|
103
37
|
successionMustNotChangeContentType() {
|
|
104
38
|
return new core_types_1.CoreError("error.consumption.attributes.successionMustNotChangeContentType", "The successor Attribute's content type does not match that of the predecessor. An Attribute succession must not change the Attribute's content type, i.e. an IdentityAttribute must not be succeeded by a RelationshipAttribute and v.v.");
|
|
105
39
|
}
|
|
106
|
-
successionMustNotChangePeer(comment) {
|
|
107
|
-
let errorMessage = "The peer of the shared Attribute must not change.";
|
|
108
|
-
if (comment)
|
|
109
|
-
errorMessage += ` ${comment}`;
|
|
110
|
-
return new core_types_1.CoreError("error.consumption.attributes.successionMustNotChangePeer", errorMessage);
|
|
111
|
-
}
|
|
112
|
-
successionMustNotChangeThirdParty(comment) {
|
|
113
|
-
let errorMessage = "The thirdPartyAddress of the shared Attribute must not change.";
|
|
114
|
-
if (comment)
|
|
115
|
-
errorMessage += ` ${comment}`;
|
|
116
|
-
return new core_types_1.CoreError("error.consumption.attributes.successionMustNotChangeThirdParty", errorMessage);
|
|
117
|
-
}
|
|
118
40
|
cannotSucceedAttributesWithASuccessor(successorId) {
|
|
119
41
|
return new core_types_1.CoreError("error.consumption.attributes.cannotSucceedAttributesWithASuccessor", `The Attribute you want to succeed has a successor (id: ${successorId}). You cannot succeed Attributes with a successor. Instead, succeed the successor.`);
|
|
120
42
|
}
|
|
121
|
-
|
|
122
|
-
return new core_types_1.CoreError("error.consumption.attributes.
|
|
123
|
-
}
|
|
124
|
-
cannotSucceedAttributesWithDeletionInfo() {
|
|
125
|
-
return new core_types_1.CoreError("error.consumption.attributes.cannotSucceedAttributesWithDeletionInfo", "You cannot succeed Attributes with a deletionInfo, since the peer may have already deleted it or marked it for deletion.");
|
|
126
|
-
}
|
|
127
|
-
cannotSetDeletionInfoOfRepositoryAttributes() {
|
|
128
|
-
return new core_types_1.CoreError("error.consumption.attributes.cannotSetDeletionInfoOfRepositoryAttributes", "RepositoryAttributes can not have a deletionInfo, since they are not shared with a peer and you can delete them directly.");
|
|
129
|
-
}
|
|
130
|
-
invalidDeletionInfoOfOwnSharedAttribute() {
|
|
131
|
-
return new core_types_1.CoreError("error.consumption.attributes.invalidDeletionInfoOfOwnSharedAttribute", "The only valid deletionStatuses for own shared Attributes are 'DeletionRequestSent', 'DeletionRequestRejected', 'DeletedByPeer' or 'ToBeDeletedByPeer'.");
|
|
43
|
+
cannotSucceedSharedAttributesDeletedByPeer() {
|
|
44
|
+
return new core_types_1.CoreError("error.consumption.attributes.cannotSucceedSharedAttributesDeletedByPeer", "You cannot succeed shared Attributes that are already deleted by the peer.");
|
|
132
45
|
}
|
|
133
|
-
|
|
134
|
-
|
|
46
|
+
cannotSetAttributeDeletionInfo(attributeId, peer) {
|
|
47
|
+
const errorMessageWithPeer = `You cannot set the deletionInfo of Attribute '${attributeId.toString()}' for peer '${peer?.toString()}' since it isn't shared with them or already deleted by them.`;
|
|
48
|
+
const errorMessageWithoutPeer = `You cannot set the deletionInfo of Attribute '${attributeId.toString()}' since it is already deleted by the peer.`;
|
|
49
|
+
const errorMessage = peer ? errorMessageWithPeer : errorMessageWithoutPeer;
|
|
50
|
+
return new core_types_1.CoreError("error.consumption.attributes.cannotSetAttributeDeletionInfo", errorMessage);
|
|
135
51
|
}
|
|
136
|
-
|
|
137
|
-
return new core_types_1.CoreError("error.consumption.attributes.
|
|
52
|
+
cannotSetForwardingDetailsForPeer(attributeId, peer) {
|
|
53
|
+
return new core_types_1.CoreError("error.consumption.attributes.cannotSetForwardingDetailsForPeer", `You cannot set the ForwardingDetails of Attribute '${attributeId.toString()}' for peer '${peer.toString()}' since they are the peer of the Relationship in whose context the RelationshipAttribute exists.`);
|
|
138
54
|
}
|
|
139
55
|
wrongRelationshipStatusToSetDeletionInfo() {
|
|
140
56
|
return new core_types_1.CoreError("error.consumption.attributes.wrongRelationshipStatusToSetDeletionInfo", "In order to manually set the deletionInfo of an Attribute, the corresponding Relationship must have status 'DeletionProposed'.");
|
|
141
57
|
}
|
|
142
|
-
|
|
143
|
-
return new core_types_1.CoreError("error.consumption.attributes.
|
|
144
|
-
}
|
|
145
|
-
isNotRepositoryAttribute(attributeId) {
|
|
146
|
-
return new core_types_1.CoreError("error.consumption.attributes.isNotRepositoryAttribute", `The Attribute (id: ${attributeId}) is not a RepositoryAttribute.`);
|
|
147
|
-
}
|
|
148
|
-
isNotSharedAttribute(attributeId) {
|
|
149
|
-
return new core_types_1.CoreError("error.consumption.attributes.isNotSharedAttribute", `The Attribute (id: '${attributeId}') is not a shared Attribute.`);
|
|
150
|
-
}
|
|
151
|
-
isNotOwnSharedAttribute(attributeId) {
|
|
152
|
-
return new core_types_1.CoreError("error.consumption.attributes.isNotOwnSharedAttribute", `The Attribute (id: '${attributeId}') is not an own shared Attribute.`);
|
|
153
|
-
}
|
|
154
|
-
isNotPeerSharedAttribute(attributeId) {
|
|
155
|
-
return new core_types_1.CoreError("error.consumption.attributes.isNotPeerSharedAttribute", `The Attribute (id: '${attributeId}') is not a peer shared Attribute.`);
|
|
58
|
+
wrongOwnerOfAttribute(message) {
|
|
59
|
+
return new core_types_1.CoreError("error.consumption.attributes.wrongOwnerOfAttribute", message);
|
|
156
60
|
}
|
|
157
|
-
|
|
158
|
-
return new core_types_1.CoreError("error.consumption.attributes.
|
|
61
|
+
wrongTypeOfAttribute(message) {
|
|
62
|
+
return new core_types_1.CoreError("error.consumption.attributes.wrongTypeOfAttribute", message);
|
|
159
63
|
}
|
|
160
64
|
senderIsNotPeerOfSharedAttribute(senderId, attributeId) {
|
|
161
65
|
return new core_types_1.CoreError("error.consumption.attributes.senderIsNotPeerOfSharedAttribute", `The sender (id: '${senderId}') of the Notification is not the peer you shared the Attribute (id: '${attributeId}') with.`);
|
|
162
66
|
}
|
|
163
|
-
|
|
164
|
-
return new core_types_1.CoreError("error.consumption.attributes.
|
|
67
|
+
setDefaultOwnIdentityAttributesIsDisabled() {
|
|
68
|
+
return new core_types_1.CoreError("error.consumption.attributes.setDefaultOwnIdentityAttributesIsDisabled", "Setting default OwnIdentityAttributes is disabled for this Account.");
|
|
165
69
|
}
|
|
166
70
|
invalidTags(tags) {
|
|
167
71
|
return new ts_utils_1.ApplicationError("error.consumption.attributes.invalidTags", `Detected invalidity of the following tags: '${tags.join("', '")}'.`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsumptionCoreErrors.js","sourceRoot":"","sources":["../../src/consumption/ConsumptionCoreErrors.ts"],"names":[],"mappings":";;;AAAA,gDAAqD;AACrD,kDAAmE;AAEnE,MAAM,UAAU;IACL,
|
|
1
|
+
{"version":3,"file":"ConsumptionCoreErrors.js","sourceRoot":"","sources":["../../src/consumption/ConsumptionCoreErrors.ts"],"names":[],"mappings":";;;AAAA,gDAAqD;AACrD,kDAAmE;AAEnE,MAAM,UAAU;IACL,gBAAgB,CAAC,WAAmB,EAAE,IAAiB;QAC1D,OAAO,IAAI,sBAAS,CAAC,+CAA+C,EAAE,kBAAkB,WAAW,CAAC,QAAQ,EAAE,kCAAkC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IACzK,CAAC;IAEM,6BAA6B,CAAC,KAAU;QAC3C,OAAO,IAAI,sBAAS,CAChB,4DAA4D,EAC5D,iDAAiD,EACjD,KAAK,EACL,SAAS,EACT,KAAK,YAAY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;YACxC,OAAO,IAAI,2BAAgB,CACvB,oFAAoF,EACpF,qDAAqD,CACxD,CAAC;QACN,CAAC;QAEM,qCAAqC;YACxC,OAAO,IAAI,2BAAgB,CACvB,oFAAoF,EACpF,qDAAqD,CACxD,CAAC;QACN,CAAC;KACJ,AA1BwC,CA0BvC;;AAKN,MAAa,qBAAqB;aAChB,eAAU,GAAG,IAAI,UAAU,EAAE,CAAC;aAC9B,aAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;;AAF5C,sDAGC"}
|
|
@@ -3,6 +3,7 @@ export declare class ConsumptionIds {
|
|
|
3
3
|
static readonly draft: CoreIdHelper;
|
|
4
4
|
static readonly setting: CoreIdHelper;
|
|
5
5
|
static readonly attribute: CoreIdHelper;
|
|
6
|
+
static readonly attributeForwardingDetails: CoreIdHelper;
|
|
6
7
|
static readonly request: CoreIdHelper;
|
|
7
8
|
static readonly notification: CoreIdHelper;
|
|
8
9
|
static readonly identityMetadata: CoreIdHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsumptionIds.d.ts","sourceRoot":"","sources":["../../src/consumption/ConsumptionIds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,qBAAa,cAAc;IACvB,gBAAuB,KAAK,eAA8B;IAC1D,gBAAuB,OAAO,eAA8B;IAE5D,gBAAuB,SAAS,eAA2B;IAC3D,gBAAuB,OAAO,eAA2B;IACzD,gBAAuB,YAAY,eAA2B;IAC9D,gBAAuB,gBAAgB,eAA2B;CACrE"}
|
|
1
|
+
{"version":3,"file":"ConsumptionIds.d.ts","sourceRoot":"","sources":["../../src/consumption/ConsumptionIds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,qBAAa,cAAc;IACvB,gBAAuB,KAAK,eAA8B;IAC1D,gBAAuB,OAAO,eAA8B;IAE5D,gBAAuB,SAAS,eAA2B;IAC3D,gBAAuB,0BAA0B,eAA6B;IAC9E,gBAAuB,OAAO,eAA2B;IACzD,gBAAuB,YAAY,eAA2B;IAC9D,gBAAuB,gBAAgB,eAA2B;CACrE"}
|
|
@@ -6,6 +6,7 @@ class ConsumptionIds {
|
|
|
6
6
|
static { this.draft = new core_types_1.CoreIdHelper("LCLDRF"); }
|
|
7
7
|
static { this.setting = new core_types_1.CoreIdHelper("LCLSET"); }
|
|
8
8
|
static { this.attribute = new core_types_1.CoreIdHelper("ATT"); }
|
|
9
|
+
static { this.attributeForwardingDetails = new core_types_1.CoreIdHelper("ATTFD"); }
|
|
9
10
|
static { this.request = new core_types_1.CoreIdHelper("REQ"); }
|
|
10
11
|
static { this.notification = new core_types_1.CoreIdHelper("NOT"); }
|
|
11
12
|
static { this.identityMetadata = new core_types_1.CoreIdHelper("IDM"); }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsumptionIds.js","sourceRoot":"","sources":["../../src/consumption/ConsumptionIds.ts"],"names":[],"mappings":";;;AAAA,kDAAiD;AAEjD,MAAa,cAAc;aACA,UAAK,GAAG,IAAI,yBAAY,CAAC,QAAQ,CAAC,CAAC;aACnC,YAAO,GAAG,IAAI,yBAAY,CAAC,QAAQ,CAAC,CAAC;aAErC,cAAS,GAAG,IAAI,yBAAY,CAAC,KAAK,CAAC,CAAC;aACpC,YAAO,GAAG,IAAI,yBAAY,CAAC,KAAK,CAAC,CAAC;aAClC,iBAAY,GAAG,IAAI,yBAAY,CAAC,KAAK,CAAC,CAAC;aACvC,qBAAgB,GAAG,IAAI,yBAAY,CAAC,KAAK,CAAC,CAAC;;
|
|
1
|
+
{"version":3,"file":"ConsumptionIds.js","sourceRoot":"","sources":["../../src/consumption/ConsumptionIds.ts"],"names":[],"mappings":";;;AAAA,kDAAiD;AAEjD,MAAa,cAAc;aACA,UAAK,GAAG,IAAI,yBAAY,CAAC,QAAQ,CAAC,CAAC;aACnC,YAAO,GAAG,IAAI,yBAAY,CAAC,QAAQ,CAAC,CAAC;aAErC,cAAS,GAAG,IAAI,yBAAY,CAAC,KAAK,CAAC,CAAC;aACpC,+BAA0B,GAAG,IAAI,yBAAY,CAAC,OAAO,CAAC,CAAC;aACvD,YAAO,GAAG,IAAI,yBAAY,CAAC,KAAK,CAAC,CAAC;aAClC,iBAAY,GAAG,IAAI,yBAAY,CAAC,KAAK,CAAC,CAAC;aACvC,qBAAgB,GAAG,IAAI,yBAAY,CAAC,KAAK,CAAC,CAAC;;AARtE,wCASC"}
|