@nmshd/runtime 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/Runtime.d.ts.map +1 -1
- package/dist/Runtime.js +0 -3
- package/dist/Runtime.js.map +1 -1
- package/dist/buildInformation.js +5 -5
- package/dist/dataViews/DataViewExpander.d.ts +5 -3
- package/dist/dataViews/DataViewExpander.d.ts.map +1 -1
- package/dist/dataViews/DataViewExpander.js +163 -174
- package/dist/dataViews/DataViewExpander.js.map +1 -1
- package/dist/dataViews/consumption/LocalAttributeDVO.d.ts +37 -46
- package/dist/dataViews/consumption/LocalAttributeDVO.d.ts.map +1 -1
- package/dist/dataViews/content/RequestItemDVOs.d.ts +1 -2
- package/dist/dataViews/content/RequestItemDVOs.d.ts.map +1 -1
- package/dist/dataViews/content/ResponseItemDVOs.d.ts +4 -10
- package/dist/dataViews/content/ResponseItemDVOs.d.ts.map +1 -1
- package/dist/events/EventProxy.d.ts.map +1 -1
- package/dist/events/EventProxy.js +10 -29
- package/dist/events/EventProxy.js.map +1 -1
- package/dist/events/consumption/AttributeForwardingDetailsChangedEvent.d.ts +7 -0
- package/dist/events/consumption/AttributeForwardingDetailsChangedEvent.d.ts.map +1 -0
- package/dist/events/consumption/AttributeForwardingDetailsChangedEvent.js +12 -0
- package/dist/events/consumption/AttributeForwardingDetailsChangedEvent.js.map +1 -0
- package/dist/events/consumption/AttributeSucceededEvent.d.ts +11 -0
- package/dist/events/consumption/AttributeSucceededEvent.d.ts.map +1 -0
- package/dist/events/consumption/AttributeSucceededEvent.js +12 -0
- package/dist/events/consumption/AttributeSucceededEvent.js.map +1 -0
- package/dist/events/consumption/ForwardedAttributeDeletedByPeerEvent.d.ts +7 -0
- package/dist/events/consumption/ForwardedAttributeDeletedByPeerEvent.d.ts.map +1 -0
- package/dist/events/consumption/ForwardedAttributeDeletedByPeerEvent.js +12 -0
- package/dist/events/consumption/ForwardedAttributeDeletedByPeerEvent.js.map +1 -0
- package/dist/events/consumption/OwnAttributeDeletedByOwnerEvent.d.ts +7 -0
- package/dist/events/consumption/OwnAttributeDeletedByOwnerEvent.d.ts.map +1 -0
- package/dist/events/consumption/OwnAttributeDeletedByOwnerEvent.js +12 -0
- package/dist/events/consumption/OwnAttributeDeletedByOwnerEvent.js.map +1 -0
- package/dist/events/consumption/PeerRelationshipAttributeDeletedByPeerEvent.d.ts +7 -0
- package/dist/events/consumption/PeerRelationshipAttributeDeletedByPeerEvent.d.ts.map +1 -0
- package/dist/events/consumption/PeerRelationshipAttributeDeletedByPeerEvent.js +12 -0
- package/dist/events/consumption/PeerRelationshipAttributeDeletedByPeerEvent.js.map +1 -0
- package/dist/events/consumption/index.d.ts +5 -9
- package/dist/events/consumption/index.d.ts.map +1 -1
- package/dist/events/consumption/index.js +5 -9
- package/dist/events/consumption/index.js.map +1 -1
- package/dist/extensibility/ConsumptionServices.d.ts +2 -3
- package/dist/extensibility/ConsumptionServices.d.ts.map +1 -1
- package/dist/extensibility/ConsumptionServices.js +2 -5
- package/dist/extensibility/ConsumptionServices.js.map +1 -1
- package/dist/extensibility/facades/consumption/AttributesFacade.d.ts +27 -31
- package/dist/extensibility/facades/consumption/AttributesFacade.d.ts.map +1 -1
- package/dist/extensibility/facades/consumption/AttributesFacade.js +51 -63
- package/dist/extensibility/facades/consumption/AttributesFacade.js.map +1 -1
- package/dist/extensibility/facades/consumption/index.d.ts +0 -1
- package/dist/extensibility/facades/consumption/index.d.ts.map +1 -1
- package/dist/extensibility/facades/consumption/index.js +0 -1
- package/dist/extensibility/facades/consumption/index.js.map +1 -1
- package/dist/useCases/common/RuntimeErrors.d.ts +8 -11
- package/dist/useCases/common/RuntimeErrors.d.ts.map +1 -1
- package/dist/useCases/common/RuntimeErrors.js +16 -25
- package/dist/useCases/common/RuntimeErrors.js.map +1 -1
- package/dist/useCases/common/Schemas.d.ts +13 -38
- package/dist/useCases/common/Schemas.d.ts.map +1 -1
- package/dist/useCases/common/Schemas.js +9981 -13789
- package/dist/useCases/common/Schemas.js.map +1 -1
- package/dist/useCases/consumption/attributes/AttributeMapper.d.ts +3 -2
- package/dist/useCases/consumption/attributes/AttributeMapper.d.ts.map +1 -1
- package/dist/useCases/consumption/attributes/AttributeMapper.js +27 -5
- package/dist/useCases/consumption/attributes/AttributeMapper.js.map +1 -1
- package/dist/useCases/consumption/attributes/CanCreateOwnIdentityAttribute.d.ts +37 -0
- package/dist/useCases/consumption/attributes/CanCreateOwnIdentityAttribute.d.ts.map +1 -0
- package/dist/useCases/consumption/attributes/{CanCreateRepositoryAttribute.js → CanCreateOwnIdentityAttribute.js} +20 -10
- package/dist/useCases/consumption/attributes/CanCreateOwnIdentityAttribute.js.map +1 -0
- package/dist/useCases/consumption/attributes/{ChangeDefaultRepositoryAttribute.d.ts → ChangeDefaultOwnIdentityAttribute.d.ts} +5 -5
- package/dist/useCases/consumption/attributes/ChangeDefaultOwnIdentityAttribute.d.ts.map +1 -0
- package/dist/useCases/consumption/attributes/{ChangeDefaultRepositoryAttribute.js → ChangeDefaultOwnIdentityAttribute.js} +13 -13
- package/dist/useCases/consumption/attributes/ChangeDefaultOwnIdentityAttribute.js.map +1 -0
- package/dist/useCases/consumption/attributes/CreateOwnIdentityAttribute.d.ts +30 -0
- package/dist/useCases/consumption/attributes/CreateOwnIdentityAttribute.d.ts.map +1 -0
- package/dist/useCases/consumption/attributes/{CreateRepositoryAttribute.js → CreateOwnIdentityAttribute.js} +15 -16
- package/dist/useCases/consumption/attributes/CreateOwnIdentityAttribute.js.map +1 -0
- package/dist/useCases/consumption/attributes/DeleteAttributeAndNotify.d.ts +33 -0
- package/dist/useCases/consumption/attributes/DeleteAttributeAndNotify.d.ts.map +1 -0
- package/dist/useCases/consumption/attributes/DeleteAttributeAndNotify.js +198 -0
- package/dist/useCases/consumption/attributes/DeleteAttributeAndNotify.js.map +1 -0
- package/dist/useCases/consumption/attributes/DeleteSharedAttributesForRejectedOrRevokedRelationship.d.ts.map +1 -1
- package/dist/useCases/consumption/attributes/DeleteSharedAttributesForRejectedOrRevokedRelationship.js +8 -2
- package/dist/useCases/consumption/attributes/DeleteSharedAttributesForRejectedOrRevokedRelationship.js.map +1 -1
- package/dist/useCases/consumption/attributes/GetAttributes.d.ts +5 -8
- package/dist/useCases/consumption/attributes/GetAttributes.d.ts.map +1 -1
- package/dist/useCases/consumption/attributes/GetAttributes.js +9 -18
- package/dist/useCases/consumption/attributes/GetAttributes.js.map +1 -1
- package/dist/useCases/consumption/attributes/GetForwardingDetailsForAttribute.d.ts +28 -0
- package/dist/useCases/consumption/attributes/GetForwardingDetailsForAttribute.d.ts.map +1 -0
- package/dist/useCases/consumption/attributes/GetForwardingDetailsForAttribute.js +77 -0
- package/dist/useCases/consumption/attributes/GetForwardingDetailsForAttribute.js.map +1 -0
- package/dist/useCases/consumption/attributes/{GetPeerSharedAttributes.d.ts → GetOwnAttributesSharedWithPeer.d.ts} +10 -11
- package/dist/useCases/consumption/attributes/GetOwnAttributesSharedWithPeer.d.ts.map +1 -0
- package/dist/useCases/consumption/attributes/{GetOwnSharedAttributes.js → GetOwnAttributesSharedWithPeer.js} +11 -18
- package/dist/useCases/consumption/attributes/GetOwnAttributesSharedWithPeer.js.map +1 -0
- package/dist/useCases/consumption/attributes/{GetRepositoryAttributes.d.ts → GetOwnIdentityAttributes.d.ts} +9 -9
- package/dist/useCases/consumption/attributes/GetOwnIdentityAttributes.d.ts.map +1 -0
- package/dist/useCases/consumption/attributes/{GetRepositoryAttributes.js → GetOwnIdentityAttributes.js} +8 -8
- package/dist/useCases/consumption/attributes/GetOwnIdentityAttributes.js.map +1 -0
- package/dist/useCases/consumption/attributes/GetPeerAttributes.d.ts +39 -0
- package/dist/useCases/consumption/attributes/GetPeerAttributes.d.ts.map +1 -0
- package/dist/useCases/consumption/attributes/{GetPeerSharedAttributes.js → GetPeerAttributes.js} +10 -10
- package/dist/useCases/consumption/attributes/GetPeerAttributes.js.map +1 -0
- package/dist/useCases/consumption/attributes/GetVersionsOfAttribute.js +1 -1
- package/dist/useCases/consumption/attributes/GetVersionsOfAttribute.js.map +1 -1
- package/dist/useCases/consumption/attributes/GetVersionsOfAttributeSharedWithPeer.d.ts +22 -0
- package/dist/useCases/consumption/attributes/GetVersionsOfAttributeSharedWithPeer.d.ts.map +1 -0
- package/dist/useCases/consumption/attributes/{GetSharedVersionsOfAttribute.js → GetVersionsOfAttributeSharedWithPeer.js} +14 -20
- package/dist/useCases/consumption/attributes/GetVersionsOfAttributeSharedWithPeer.js.map +1 -0
- package/dist/useCases/consumption/attributes/{NotifyPeerAboutRepositoryAttributeSuccession.d.ts → NotifyPeerAboutOwnIdentityAttributeSuccession.d.ts} +9 -9
- package/dist/useCases/consumption/attributes/NotifyPeerAboutOwnIdentityAttributeSuccession.d.ts.map +1 -0
- package/dist/useCases/consumption/attributes/NotifyPeerAboutOwnIdentityAttributeSuccession.js +95 -0
- package/dist/useCases/consumption/attributes/NotifyPeerAboutOwnIdentityAttributeSuccession.js.map +1 -0
- package/dist/useCases/consumption/attributes/{ShareRepositoryAttribute.d.ts → ShareOwnIdentityAttribute.d.ts} +5 -5
- package/dist/useCases/consumption/attributes/ShareOwnIdentityAttribute.d.ts.map +1 -0
- package/dist/useCases/consumption/attributes/{ShareRepositoryAttribute.js → ShareOwnIdentityAttribute.js} +14 -15
- package/dist/useCases/consumption/attributes/ShareOwnIdentityAttribute.js.map +1 -0
- package/dist/useCases/consumption/attributes/{SucceedRepositoryAttribute.d.ts → SucceedOwnIdentityAttribute.d.ts} +6 -6
- package/dist/useCases/consumption/attributes/SucceedOwnIdentityAttribute.d.ts.map +1 -0
- package/dist/useCases/consumption/attributes/{SucceedRepositoryAttribute.js → SucceedOwnIdentityAttribute.js} +13 -14
- package/dist/useCases/consumption/attributes/SucceedOwnIdentityAttribute.js.map +1 -0
- package/dist/useCases/consumption/attributes/SucceedRelationshipAttributeAndNotifyPeer.d.ts.map +1 -1
- package/dist/useCases/consumption/attributes/SucceedRelationshipAttributeAndNotifyPeer.js +13 -16
- package/dist/useCases/consumption/attributes/SucceedRelationshipAttributeAndNotifyPeer.js.map +1 -1
- package/dist/useCases/consumption/attributes/index.d.ts +12 -14
- package/dist/useCases/consumption/attributes/index.d.ts.map +1 -1
- package/dist/useCases/consumption/attributes/index.js +12 -14
- package/dist/useCases/consumption/attributes/index.js.map +1 -1
- package/dist/useCases/consumption/index.d.ts +0 -1
- package/dist/useCases/consumption/index.d.ts.map +1 -1
- package/dist/useCases/consumption/index.js +0 -1
- package/dist/useCases/consumption/index.js.map +1 -1
- package/dist/useCases/transport/relationships/GetAttributesForRelationship.d.ts.map +1 -1
- package/dist/useCases/transport/relationships/GetAttributesForRelationship.js +1 -8
- package/dist/useCases/transport/relationships/GetAttributesForRelationship.js.map +1 -1
- package/package.json +8 -11
- package/dist/events/consumption/OwnSharedAttributeDeletedByOwnerEvent.d.ts +0 -7
- package/dist/events/consumption/OwnSharedAttributeDeletedByOwnerEvent.d.ts.map +0 -1
- package/dist/events/consumption/OwnSharedAttributeDeletedByOwnerEvent.js +0 -12
- package/dist/events/consumption/OwnSharedAttributeDeletedByOwnerEvent.js.map +0 -1
- package/dist/events/consumption/OwnSharedAttributeSucceededEvent.d.ts +0 -7
- package/dist/events/consumption/OwnSharedAttributeSucceededEvent.d.ts.map +0 -1
- package/dist/events/consumption/OwnSharedAttributeSucceededEvent.js +0 -12
- package/dist/events/consumption/OwnSharedAttributeSucceededEvent.js.map +0 -1
- package/dist/events/consumption/PeerSharedAttributeDeletedByPeerEvent.d.ts +0 -7
- package/dist/events/consumption/PeerSharedAttributeDeletedByPeerEvent.d.ts.map +0 -1
- package/dist/events/consumption/PeerSharedAttributeDeletedByPeerEvent.js +0 -12
- package/dist/events/consumption/PeerSharedAttributeDeletedByPeerEvent.js.map +0 -1
- package/dist/events/consumption/PeerSharedAttributeSucceededEvent.d.ts +0 -7
- package/dist/events/consumption/PeerSharedAttributeSucceededEvent.d.ts.map +0 -1
- package/dist/events/consumption/PeerSharedAttributeSucceededEvent.js +0 -12
- package/dist/events/consumption/PeerSharedAttributeSucceededEvent.js.map +0 -1
- package/dist/events/consumption/RepositoryAttributeSucceededEvent.d.ts +0 -7
- package/dist/events/consumption/RepositoryAttributeSucceededEvent.d.ts.map +0 -1
- package/dist/events/consumption/RepositoryAttributeSucceededEvent.js +0 -12
- package/dist/events/consumption/RepositoryAttributeSucceededEvent.js.map +0 -1
- package/dist/events/consumption/SuccessionEventData.d.ts +0 -6
- package/dist/events/consumption/SuccessionEventData.d.ts.map +0 -1
- package/dist/events/consumption/SuccessionEventData.js +0 -3
- package/dist/events/consumption/SuccessionEventData.js.map +0 -1
- package/dist/events/consumption/ThirdPartyOwnedRelationshipAttributeSucceededEvent.d.ts +0 -7
- package/dist/events/consumption/ThirdPartyOwnedRelationshipAttributeSucceededEvent.d.ts.map +0 -1
- package/dist/events/consumption/ThirdPartyOwnedRelationshipAttributeSucceededEvent.js +0 -12
- package/dist/events/consumption/ThirdPartyOwnedRelationshipAttributeSucceededEvent.js.map +0 -1
- package/dist/events/consumption/ThirdPartyRelationshipAttributeDeletedByPeerEvent.d.ts +0 -7
- package/dist/events/consumption/ThirdPartyRelationshipAttributeDeletedByPeerEvent.d.ts.map +0 -1
- package/dist/events/consumption/ThirdPartyRelationshipAttributeDeletedByPeerEvent.js +0 -12
- package/dist/events/consumption/ThirdPartyRelationshipAttributeDeletedByPeerEvent.js.map +0 -1
- package/dist/events/consumption/ThirdPartyRelationshipAttributeSucceededEvent.d.ts +0 -7
- package/dist/events/consumption/ThirdPartyRelationshipAttributeSucceededEvent.d.ts.map +0 -1
- package/dist/events/consumption/ThirdPartyRelationshipAttributeSucceededEvent.js +0 -12
- package/dist/events/consumption/ThirdPartyRelationshipAttributeSucceededEvent.js.map +0 -1
- package/dist/extensibility/facades/consumption/OpenId4VcFacade.d.ts +0 -20
- package/dist/extensibility/facades/consumption/OpenId4VcFacade.d.ts.map +0 -1
- package/dist/extensibility/facades/consumption/OpenId4VcFacade.js +0 -64
- package/dist/extensibility/facades/consumption/OpenId4VcFacade.js.map +0 -1
- package/dist/useCases/consumption/attributes/CanCreateRepositoryAttribute.d.ts +0 -37
- package/dist/useCases/consumption/attributes/CanCreateRepositoryAttribute.d.ts.map +0 -1
- package/dist/useCases/consumption/attributes/CanCreateRepositoryAttribute.js.map +0 -1
- package/dist/useCases/consumption/attributes/ChangeDefaultRepositoryAttribute.d.ts.map +0 -1
- package/dist/useCases/consumption/attributes/ChangeDefaultRepositoryAttribute.js.map +0 -1
- package/dist/useCases/consumption/attributes/CreateRepositoryAttribute.d.ts +0 -30
- package/dist/useCases/consumption/attributes/CreateRepositoryAttribute.d.ts.map +0 -1
- package/dist/useCases/consumption/attributes/CreateRepositoryAttribute.js.map +0 -1
- package/dist/useCases/consumption/attributes/DeleteOwnSharedAttributeAndNotifyPeer.d.ts +0 -23
- package/dist/useCases/consumption/attributes/DeleteOwnSharedAttributeAndNotifyPeer.d.ts.map +0 -1
- package/dist/useCases/consumption/attributes/DeleteOwnSharedAttributeAndNotifyPeer.js +0 -89
- package/dist/useCases/consumption/attributes/DeleteOwnSharedAttributeAndNotifyPeer.js.map +0 -1
- package/dist/useCases/consumption/attributes/DeletePeerSharedAttributeAndNotifyOwner.d.ts +0 -23
- package/dist/useCases/consumption/attributes/DeletePeerSharedAttributeAndNotifyOwner.d.ts.map +0 -1
- package/dist/useCases/consumption/attributes/DeletePeerSharedAttributeAndNotifyOwner.js +0 -90
- package/dist/useCases/consumption/attributes/DeletePeerSharedAttributeAndNotifyOwner.js.map +0 -1
- package/dist/useCases/consumption/attributes/DeleteRepositoryAttribute.d.ts +0 -18
- package/dist/useCases/consumption/attributes/DeleteRepositoryAttribute.d.ts.map +0 -1
- package/dist/useCases/consumption/attributes/DeleteRepositoryAttribute.js +0 -65
- package/dist/useCases/consumption/attributes/DeleteRepositoryAttribute.js.map +0 -1
- package/dist/useCases/consumption/attributes/DeleteThirdPartyRelationshipAttributeAndNotifyPeer.d.ts +0 -23
- package/dist/useCases/consumption/attributes/DeleteThirdPartyRelationshipAttributeAndNotifyPeer.d.ts.map +0 -1
- package/dist/useCases/consumption/attributes/DeleteThirdPartyRelationshipAttributeAndNotifyPeer.js +0 -88
- package/dist/useCases/consumption/attributes/DeleteThirdPartyRelationshipAttributeAndNotifyPeer.js.map +0 -1
- package/dist/useCases/consumption/attributes/GetOwnSharedAttributes.d.ts +0 -43
- package/dist/useCases/consumption/attributes/GetOwnSharedAttributes.d.ts.map +0 -1
- package/dist/useCases/consumption/attributes/GetOwnSharedAttributes.js.map +0 -1
- package/dist/useCases/consumption/attributes/GetPeerSharedAttributes.d.ts.map +0 -1
- package/dist/useCases/consumption/attributes/GetPeerSharedAttributes.js.map +0 -1
- package/dist/useCases/consumption/attributes/GetRepositoryAttributes.d.ts.map +0 -1
- package/dist/useCases/consumption/attributes/GetRepositoryAttributes.js.map +0 -1
- package/dist/useCases/consumption/attributes/GetSharedVersionsOfAttribute.d.ts +0 -24
- package/dist/useCases/consumption/attributes/GetSharedVersionsOfAttribute.d.ts.map +0 -1
- package/dist/useCases/consumption/attributes/GetSharedVersionsOfAttribute.js.map +0 -1
- package/dist/useCases/consumption/attributes/NotifyPeerAboutRepositoryAttributeSuccession.d.ts.map +0 -1
- package/dist/useCases/consumption/attributes/NotifyPeerAboutRepositoryAttributeSuccession.js +0 -105
- package/dist/useCases/consumption/attributes/NotifyPeerAboutRepositoryAttributeSuccession.js.map +0 -1
- package/dist/useCases/consumption/attributes/ShareRepositoryAttribute.d.ts.map +0 -1
- package/dist/useCases/consumption/attributes/ShareRepositoryAttribute.js.map +0 -1
- package/dist/useCases/consumption/attributes/SucceedRepositoryAttribute.d.ts.map +0 -1
- package/dist/useCases/consumption/attributes/SucceedRepositoryAttribute.js.map +0 -1
- package/dist/useCases/consumption/openid4vc/AcceptProofRequestUseCase.d.ts +0 -17
- package/dist/useCases/consumption/openid4vc/AcceptProofRequestUseCase.d.ts.map +0 -1
- package/dist/useCases/consumption/openid4vc/AcceptProofRequestUseCase.js +0 -46
- package/dist/useCases/consumption/openid4vc/AcceptProofRequestUseCase.js.map +0 -1
- package/dist/useCases/consumption/openid4vc/FetchCredentialOfferUseCase.d.ts +0 -17
- package/dist/useCases/consumption/openid4vc/FetchCredentialOfferUseCase.d.ts.map +0 -1
- package/dist/useCases/consumption/openid4vc/FetchCredentialOfferUseCase.js +0 -46
- package/dist/useCases/consumption/openid4vc/FetchCredentialOfferUseCase.js.map +0 -1
- package/dist/useCases/consumption/openid4vc/FetchProofRequestUseCase.d.ts +0 -17
- package/dist/useCases/consumption/openid4vc/FetchProofRequestUseCase.d.ts.map +0 -1
- package/dist/useCases/consumption/openid4vc/FetchProofRequestUseCase.js +0 -46
- package/dist/useCases/consumption/openid4vc/FetchProofRequestUseCase.js.map +0 -1
- package/dist/useCases/consumption/openid4vc/GetVerifiableCredentialsUseCase.d.ts +0 -17
- package/dist/useCases/consumption/openid4vc/GetVerifiableCredentialsUseCase.d.ts.map +0 -1
- package/dist/useCases/consumption/openid4vc/GetVerifiableCredentialsUseCase.js +0 -48
- package/dist/useCases/consumption/openid4vc/GetVerifiableCredentialsUseCase.js.map +0 -1
- package/dist/useCases/consumption/openid4vc/ResolveCredentialOfferUseCase.d.ts +0 -17
- package/dist/useCases/consumption/openid4vc/ResolveCredentialOfferUseCase.d.ts.map +0 -1
- package/dist/useCases/consumption/openid4vc/ResolveCredentialOfferUseCase.js +0 -46
- package/dist/useCases/consumption/openid4vc/ResolveCredentialOfferUseCase.js.map +0 -1
- package/dist/useCases/consumption/openid4vc/ResolveFetchedCredentialUseCase.d.ts +0 -19
- package/dist/useCases/consumption/openid4vc/ResolveFetchedCredentialUseCase.d.ts.map +0 -1
- package/dist/useCases/consumption/openid4vc/ResolveFetchedCredentialUseCase.js +0 -51
- package/dist/useCases/consumption/openid4vc/ResolveFetchedCredentialUseCase.js.map +0 -1
- package/dist/useCases/consumption/openid4vc/index.d.ts +0 -6
- package/dist/useCases/consumption/openid4vc/index.d.ts.map +0 -1
- package/dist/useCases/consumption/openid4vc/index.js +0 -22
- package/dist/useCases/consumption/openid4vc/index.js.map +0 -1
|
@@ -1,90 +0,0 @@
|
|
|
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
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.DeletePeerSharedAttributeAndNotifyOwnerUseCase = void 0;
|
|
16
|
-
const ts_utils_1 = require("@js-soft/ts-utils");
|
|
17
|
-
const consumption_1 = require("@nmshd/consumption");
|
|
18
|
-
const content_1 = require("@nmshd/content");
|
|
19
|
-
const core_types_1 = require("@nmshd/core-types");
|
|
20
|
-
const runtime_types_1 = require("@nmshd/runtime-types");
|
|
21
|
-
const transport_1 = require("@nmshd/transport");
|
|
22
|
-
const typescript_ioc_1 = require("@nmshd/typescript-ioc");
|
|
23
|
-
const common_1 = require("../../common");
|
|
24
|
-
let Validator = class Validator extends common_1.SchemaValidator {
|
|
25
|
-
constructor(schemaRepository) {
|
|
26
|
-
super(schemaRepository.getSchema("DeletePeerSharedAttributeAndNotifyOwnerRequest"));
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
Validator = __decorate([
|
|
30
|
-
__param(0, typescript_ioc_1.Inject),
|
|
31
|
-
__metadata("design:paramtypes", [common_1.SchemaRepository])
|
|
32
|
-
], Validator);
|
|
33
|
-
let DeletePeerSharedAttributeAndNotifyOwnerUseCase = class DeletePeerSharedAttributeAndNotifyOwnerUseCase extends common_1.UseCase {
|
|
34
|
-
constructor(attributesController, accountController, messageController, relationshipsController, validator) {
|
|
35
|
-
super(validator);
|
|
36
|
-
this.attributesController = attributesController;
|
|
37
|
-
this.accountController = accountController;
|
|
38
|
-
this.messageController = messageController;
|
|
39
|
-
this.relationshipsController = relationshipsController;
|
|
40
|
-
}
|
|
41
|
-
async executeInternal(request) {
|
|
42
|
-
const peerSharedAttributeId = core_types_1.CoreId.from(request.attributeId);
|
|
43
|
-
const peerSharedAttribute = await this.attributesController.getLocalAttribute(peerSharedAttributeId);
|
|
44
|
-
if (!peerSharedAttribute)
|
|
45
|
-
return ts_utils_1.Result.fail(common_1.RuntimeErrors.general.recordNotFound(consumption_1.LocalAttribute));
|
|
46
|
-
if (!peerSharedAttribute.isPeerSharedAttribute(peerSharedAttribute.shareInfo?.peer)) {
|
|
47
|
-
return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.isNotPeerSharedAttribute(peerSharedAttributeId));
|
|
48
|
-
}
|
|
49
|
-
const relationshipWithStatusPending = await this.relationshipsController.getRelationshipToIdentity(peerSharedAttribute.shareInfo.peer, runtime_types_1.RelationshipStatus.Pending);
|
|
50
|
-
if (relationshipWithStatusPending) {
|
|
51
|
-
return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.cannotDeleteSharedAttributeWhileRelationshipIsPending());
|
|
52
|
-
}
|
|
53
|
-
const validationResult = await this.attributesController.validateFullAttributeDeletionProcess(peerSharedAttribute);
|
|
54
|
-
if (validationResult.isError()) {
|
|
55
|
-
return ts_utils_1.Result.fail(validationResult.error);
|
|
56
|
-
}
|
|
57
|
-
await this.attributesController.executeFullAttributeDeletionProcess(peerSharedAttribute);
|
|
58
|
-
const messageRecipientsValidationResult = await this.messageController.validateMessageRecipients([peerSharedAttribute.shareInfo.peer]);
|
|
59
|
-
if (messageRecipientsValidationResult.isError) {
|
|
60
|
-
return ts_utils_1.Result.ok({});
|
|
61
|
-
}
|
|
62
|
-
const notificationId = await consumption_1.ConsumptionIds.notification.generate();
|
|
63
|
-
const notificationItem = content_1.PeerSharedAttributeDeletedByPeerNotificationItem.from({ attributeId: peerSharedAttributeId });
|
|
64
|
-
const notification = content_1.Notification.from({
|
|
65
|
-
id: notificationId,
|
|
66
|
-
items: [notificationItem]
|
|
67
|
-
});
|
|
68
|
-
await this.messageController.sendMessage({
|
|
69
|
-
recipients: [peerSharedAttribute.shareInfo.peer],
|
|
70
|
-
content: notification
|
|
71
|
-
});
|
|
72
|
-
await this.accountController.syncDatawallet();
|
|
73
|
-
const result = { notificationId: notificationId.toString() };
|
|
74
|
-
return ts_utils_1.Result.ok(result);
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
exports.DeletePeerSharedAttributeAndNotifyOwnerUseCase = DeletePeerSharedAttributeAndNotifyOwnerUseCase;
|
|
78
|
-
exports.DeletePeerSharedAttributeAndNotifyOwnerUseCase = DeletePeerSharedAttributeAndNotifyOwnerUseCase = __decorate([
|
|
79
|
-
__param(0, typescript_ioc_1.Inject),
|
|
80
|
-
__param(1, typescript_ioc_1.Inject),
|
|
81
|
-
__param(2, typescript_ioc_1.Inject),
|
|
82
|
-
__param(3, typescript_ioc_1.Inject),
|
|
83
|
-
__param(4, typescript_ioc_1.Inject),
|
|
84
|
-
__metadata("design:paramtypes", [consumption_1.AttributesController,
|
|
85
|
-
transport_1.AccountController,
|
|
86
|
-
transport_1.MessageController,
|
|
87
|
-
transport_1.RelationshipsController,
|
|
88
|
-
Validator])
|
|
89
|
-
], DeletePeerSharedAttributeAndNotifyOwnerUseCase);
|
|
90
|
-
//# sourceMappingURL=DeletePeerSharedAttributeAndNotifyOwner.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DeletePeerSharedAttributeAndNotifyOwner.js","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/DeletePeerSharedAttributeAndNotifyOwner.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAA2C;AAC3C,oDAA0F;AAC1F,4CAAgG;AAChG,kDAA2C;AAC3C,wDAA0D;AAC1D,gDAAiG;AACjG,0DAA+C;AAC/C,yCAAkI;AAUlI,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,wBAA+D;IACnF,YAA2B,gBAAkC;QACzD,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,gDAAgD,CAAC,CAAC,CAAC;IACxF,CAAC;CACJ,CAAA;AAJK,SAAS;IACS,WAAA,uBAAM,CAAA;qCAAmB,yBAAgB;GAD3D,SAAS,CAId;AAED,IAAa,8CAA8C,GAA3D,MAAa,8CAA+C,SAAQ,gBAAwG;IACxK,YAC6B,oBAA0C,EAC1C,iBAAoC,EACpC,iBAAoC,EACpC,uBAAgD,EACjE,SAAoB;QAE5B,KAAK,CAAC,SAAS,CAAC,CAAC;QANQ,yBAAoB,GAApB,oBAAoB,CAAsB;QAC1C,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,4BAAuB,GAAvB,uBAAuB,CAAyB;IAI7E,CAAC;IAES,KAAK,CAAC,eAAe,CAAC,OAAuD;QACnF,MAAM,qBAAqB,GAAG,mBAAM,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QAC/D,MAAM,mBAAmB,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,CAAC;QACrG,IAAI,CAAC,mBAAmB;YAAE,OAAO,iBAAM,CAAC,IAAI,CAAC,sBAAa,CAAC,O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qB,EAAE,CAAC,CAAC;QACvH,MAAM,YAAY,GAAG,sBAAY,CAAC,IAAI,CAAC;YACnC,EAAE,EAAE,cAAc;YAClB,KAAK,EAAE,CAAC,gBAAgB,CAAC;SAC5B,CAAC,CAAC;QACH,MAAM,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC;YACrC,UAAU,EAAE,CAAC,mBAAmB,CAAC,SAAS,CAAC,IAAI,CAAC;YAChD,OAAO,EAAE,YAAY;SACxB,CAAC,CAAC;QAEH,MAAM,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,CAAC;QAE9C,MAAM,MAAM,GAAG,EAAE,cAAc,EAAE,cAAc,CAAC,QAAQ,EAAE,EAAE,CAAC;QAC7D,OAAO,iBAAM,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IAC7B,CAAC;CACJ,CAAA;AArDY,wGAA8C;yDAA9C,8CAA8C;IAElD,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCAJwC,kCAAoB;QACvB,6BAAiB;QACjB,6BAAiB;QACX,mCAAuB;QACtD,SAAS;GANvB,8CAA8C,CAqD1D"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Result } from "@js-soft/ts-utils";
|
|
2
|
-
import { AttributesController } from "@nmshd/consumption";
|
|
3
|
-
import { AccountController } from "@nmshd/transport";
|
|
4
|
-
import { AttributeIdString, SchemaRepository, SchemaValidator, UseCase } from "../../common";
|
|
5
|
-
export interface DeleteRepositoryAttributeRequest {
|
|
6
|
-
attributeId: AttributeIdString;
|
|
7
|
-
}
|
|
8
|
-
declare class Validator extends SchemaValidator<DeleteRepositoryAttributeRequest> {
|
|
9
|
-
constructor(schemaRepository: SchemaRepository);
|
|
10
|
-
}
|
|
11
|
-
export declare class DeleteRepositoryAttributeUseCase extends UseCase<DeleteRepositoryAttributeRequest, void> {
|
|
12
|
-
private readonly attributesController;
|
|
13
|
-
private readonly accountController;
|
|
14
|
-
constructor(attributesController: AttributesController, accountController: AccountController, validator: Validator);
|
|
15
|
-
protected executeInternal(request: DeleteRepositoryAttributeRequest): Promise<Result<void>>;
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
18
|
-
//# sourceMappingURL=DeleteRepositoryAttribute.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteRepositoryAttribute.d.ts","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/DeleteRepositoryAttribute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAkB,MAAM,oBAAoB,CAAC;AAE1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAE,iBAAiB,EAAiB,gBAAgB,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5G,MAAM,WAAW,gCAAgC;IAC7C,WAAW,EAAE,iBAAiB,CAAC;CAClC;AAED,cAAM,SAAU,SAAQ,eAAe,CAAC,gCAAgC,CAAC;gBAC1C,gBAAgB,EAAE,gBAAgB;CAGhE;AAED,qBAAa,gCAAiC,SAAQ,OAAO,CAAC,gCAAgC,EAAE,IAAI,CAAC;IAErF,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IACrC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBADjB,oBAAoB,EAAE,oBAAoB,EAC1C,iBAAiB,EAAE,iBAAiB,EACrD,SAAS,EAAE,SAAS;cAKhB,eAAe,CAAC,OAAO,EAAE,gCAAgC,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;CAuBpG"}
|
|
@@ -1,65 +0,0 @@
|
|
|
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
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.DeleteRepositoryAttributeUseCase = void 0;
|
|
16
|
-
const ts_utils_1 = require("@js-soft/ts-utils");
|
|
17
|
-
const consumption_1 = require("@nmshd/consumption");
|
|
18
|
-
const core_types_1 = require("@nmshd/core-types");
|
|
19
|
-
const transport_1 = require("@nmshd/transport");
|
|
20
|
-
const typescript_ioc_1 = require("@nmshd/typescript-ioc");
|
|
21
|
-
const common_1 = require("../../common");
|
|
22
|
-
let Validator = class Validator extends common_1.SchemaValidator {
|
|
23
|
-
constructor(schemaRepository) {
|
|
24
|
-
super(schemaRepository.getSchema("DeleteRepositoryAttributeRequest"));
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
Validator = __decorate([
|
|
28
|
-
__param(0, typescript_ioc_1.Inject),
|
|
29
|
-
__metadata("design:paramtypes", [common_1.SchemaRepository])
|
|
30
|
-
], Validator);
|
|
31
|
-
let DeleteRepositoryAttributeUseCase = class DeleteRepositoryAttributeUseCase extends common_1.UseCase {
|
|
32
|
-
constructor(attributesController, accountController, validator) {
|
|
33
|
-
super(validator);
|
|
34
|
-
this.attributesController = attributesController;
|
|
35
|
-
this.accountController = accountController;
|
|
36
|
-
}
|
|
37
|
-
async executeInternal(request) {
|
|
38
|
-
const repositoryAttribute = await this.attributesController.getLocalAttribute(core_types_1.CoreId.from(request.attributeId));
|
|
39
|
-
if (!repositoryAttribute)
|
|
40
|
-
return ts_utils_1.Result.fail(common_1.RuntimeErrors.general.recordNotFound(consumption_1.LocalAttribute));
|
|
41
|
-
if (!repositoryAttribute.isRepositoryAttribute(this.accountController.identity.address)) {
|
|
42
|
-
return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.isNotRepositoryAttribute(request.attributeId));
|
|
43
|
-
}
|
|
44
|
-
if (repositoryAttribute.parentId) {
|
|
45
|
-
return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.cannotSeparatelyDeleteChildOfComplexAttribute(request.attributeId));
|
|
46
|
-
}
|
|
47
|
-
const validationResult = await this.attributesController.validateFullAttributeDeletionProcess(repositoryAttribute);
|
|
48
|
-
if (validationResult.isError()) {
|
|
49
|
-
return ts_utils_1.Result.fail(validationResult.error);
|
|
50
|
-
}
|
|
51
|
-
await this.attributesController.executeFullAttributeDeletionProcess(repositoryAttribute);
|
|
52
|
-
await this.accountController.syncDatawallet();
|
|
53
|
-
return ts_utils_1.Result.ok(undefined);
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
exports.DeleteRepositoryAttributeUseCase = DeleteRepositoryAttributeUseCase;
|
|
57
|
-
exports.DeleteRepositoryAttributeUseCase = DeleteRepositoryAttributeUseCase = __decorate([
|
|
58
|
-
__param(0, typescript_ioc_1.Inject),
|
|
59
|
-
__param(1, typescript_ioc_1.Inject),
|
|
60
|
-
__param(2, typescript_ioc_1.Inject),
|
|
61
|
-
__metadata("design:paramtypes", [consumption_1.AttributesController,
|
|
62
|
-
transport_1.AccountController,
|
|
63
|
-
Validator])
|
|
64
|
-
], DeleteRepositoryAttributeUseCase);
|
|
65
|
-
//# sourceMappingURL=DeleteRepositoryAttribute.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteRepositoryAttribute.js","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/DeleteRepositoryAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAA2C;AAC3C,oDAA0E;AAC1E,kDAA2C;AAC3C,gDAAqD;AACrD,0DAA+C;AAC/C,yCAA4G;AAM5G,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,wBAAiD;IACrE,YAA2B,gBAAkC;QACzD,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,kCAAkC,CAAC,CAAC,CAAC;IAC1E,CAAC;CACJ,CAAA;AAJK,SAAS;IACS,WAAA,uBAAM,CAAA;qCAAmB,yBAAgB;GAD3D,SAAS,CAId;AAED,IAAa,gCAAgC,GAA7C,MAAa,gCAAiC,SAAQ,gBAA+C;IACjG,YAC6B,oBAA0C,EAC1C,iBAAoC,EACrD,SAAoB;QAE5B,KAAK,CAAC,SAAS,CAAC,CAAC;QAJQ,yBAAoB,GAApB,oBAAoB,CAAsB;QAC1C,sBAAiB,GAAjB,iBAAiB,CAAmB;IAIjE,CAAC;IAES,KAAK,CAAC,eAAe,CAAC,OAAyC;QACrE,MAAM,mBAAmB,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,mBAAM,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;QAChH,IAAI,CAAC,mBAAmB;YAAE,OAAO,iBAAM,CAAC,IAAI,CAAC,sBAAa,CAAC,OAAO,CAAC,cAAc,CAAC,4BAAc,CAAC,CAAC,CAAC;QAEnG,IAAI,CAAC,mBAAmB,CAAC,qBAAqB,CAAC,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;YACtF,OAAO,iBAAM,CAAC,IAAI,CAAC,sBAAa,CAAC,UAAU,CAAC,wBAAwB,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;QAC/F,CAAC;QAED,IAAI,mBAAmB,CAAC,QAAQ,EAAE,CAAC;YAC/B,OAAO,iBAAM,CAAC,IAAI,CAAC,sBAAa,CAAC,UAAU,CAAC,6CAA6C,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;QACpH,CAAC;QAED,MAAM,gBAAgB,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,oCAAoC,CAAC,mBAAmB,CAAC,CAAC;QACnH,IAAI,gBAAgB,CAAC,OAAO,EAAE,EAAE,CAAC;YAC7B,OAAO,iBAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;QAC/C,CAAC;QAED,MAAM,IAAI,CAAC,oBAAoB,CAAC,mCAAmC,CAAC,mBAAmB,CAAC,CAAC;QAEzF,MAAM,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,CAAC;QAE9C,OAAO,iBAAM,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC;IAChC,CAAC;CACJ,CAAA;AAhCY,4EAAgC;2CAAhC,gCAAgC;IAEpC,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCAFwC,kCAAoB;QACvB,6BAAiB;QAC1C,SAAS;GAJvB,gCAAgC,CAgC5C"}
|
package/dist/useCases/consumption/attributes/DeleteThirdPartyRelationshipAttributeAndNotifyPeer.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Result } from "@js-soft/ts-utils";
|
|
2
|
-
import { AttributesController } from "@nmshd/consumption";
|
|
3
|
-
import { AccountController, MessageController, RelationshipsController } from "@nmshd/transport";
|
|
4
|
-
import { AttributeIdString, NotificationIdString, SchemaRepository, SchemaValidator, UseCase } from "../../common";
|
|
5
|
-
export interface DeleteThirdPartyRelationshipAttributeAndNotifyPeerRequest {
|
|
6
|
-
attributeId: AttributeIdString;
|
|
7
|
-
}
|
|
8
|
-
export interface DeleteThirdPartyRelationshipAttributeAndNotifyPeerResponse {
|
|
9
|
-
notificationId?: NotificationIdString;
|
|
10
|
-
}
|
|
11
|
-
declare class Validator extends SchemaValidator<DeleteThirdPartyRelationshipAttributeAndNotifyPeerRequest> {
|
|
12
|
-
constructor(schemaRepository: SchemaRepository);
|
|
13
|
-
}
|
|
14
|
-
export declare class DeleteThirdPartyRelationshipAttributeAndNotifyPeerUseCase extends UseCase<DeleteThirdPartyRelationshipAttributeAndNotifyPeerRequest, DeleteThirdPartyRelationshipAttributeAndNotifyPeerResponse> {
|
|
15
|
-
private readonly attributesController;
|
|
16
|
-
private readonly accountController;
|
|
17
|
-
private readonly messageController;
|
|
18
|
-
private readonly relationshipsController;
|
|
19
|
-
constructor(attributesController: AttributesController, accountController: AccountController, messageController: MessageController, relationshipsController: RelationshipsController, validator: Validator);
|
|
20
|
-
protected executeInternal(request: DeleteThirdPartyRelationshipAttributeAndNotifyPeerRequest): Promise<Result<DeleteThirdPartyRelationshipAttributeAndNotifyPeerResponse>>;
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
23
|
-
//# sourceMappingURL=DeleteThirdPartyRelationshipAttributeAndNotifyPeer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteThirdPartyRelationshipAttributeAndNotifyPeer.d.ts","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/DeleteThirdPartyRelationshipAttributeAndNotifyPeer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAkC,MAAM,oBAAoB,CAAC;AAG1F,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,uBAAuB,EAAsB,MAAM,kBAAkB,CAAC;AAErH,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAiB,gBAAgB,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAElI,MAAM,WAAW,yDAAyD;IACtE,WAAW,EAAE,iBAAiB,CAAC;CAClC;AAED,MAAM,WAAW,0DAA0D;IACvE,cAAc,CAAC,EAAE,oBAAoB,CAAC;CACzC;AAED,cAAM,SAAU,SAAQ,eAAe,CAAC,yDAAyD,CAAC;gBACnE,gBAAgB,EAAE,gBAAgB;CAGhE;AAED,qBAAa,yDAA0D,SAAQ,OAAO,CAClF,yDAAyD,EACzD,0DAA0D,CAC7D;IAEe,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IACrC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,uBAAuB;gBAHvB,oBAAoB,EAAE,oBAAoB,EAC1C,iBAAiB,EAAE,iBAAiB,EACpC,iBAAiB,EAAE,iBAAiB,EACpC,uBAAuB,EAAE,uBAAuB,EACjE,SAAS,EAAE,SAAS;cAKhB,eAAe,CAC3B,OAAO,EAAE,yDAAyD,GACnE,OAAO,CAAC,MAAM,CAAC,0DAA0D,CAAC,CAAC;CA2CjF"}
|
package/dist/useCases/consumption/attributes/DeleteThirdPartyRelationshipAttributeAndNotifyPeer.js
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
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
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.DeleteThirdPartyRelationshipAttributeAndNotifyPeerUseCase = void 0;
|
|
16
|
-
const ts_utils_1 = require("@js-soft/ts-utils");
|
|
17
|
-
const consumption_1 = require("@nmshd/consumption");
|
|
18
|
-
const content_1 = require("@nmshd/content");
|
|
19
|
-
const core_types_1 = require("@nmshd/core-types");
|
|
20
|
-
const transport_1 = require("@nmshd/transport");
|
|
21
|
-
const typescript_ioc_1 = require("@nmshd/typescript-ioc");
|
|
22
|
-
const common_1 = require("../../common");
|
|
23
|
-
let Validator = class Validator extends common_1.SchemaValidator {
|
|
24
|
-
constructor(schemaRepository) {
|
|
25
|
-
super(schemaRepository.getSchema("DeleteThirdPartyRelationshipAttributeAndNotifyPeerRequest"));
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
Validator = __decorate([
|
|
29
|
-
__param(0, typescript_ioc_1.Inject),
|
|
30
|
-
__metadata("design:paramtypes", [common_1.SchemaRepository])
|
|
31
|
-
], Validator);
|
|
32
|
-
let DeleteThirdPartyRelationshipAttributeAndNotifyPeerUseCase = class DeleteThirdPartyRelationshipAttributeAndNotifyPeerUseCase extends common_1.UseCase {
|
|
33
|
-
constructor(attributesController, accountController, messageController, relationshipsController, validator) {
|
|
34
|
-
super(validator);
|
|
35
|
-
this.attributesController = attributesController;
|
|
36
|
-
this.accountController = accountController;
|
|
37
|
-
this.messageController = messageController;
|
|
38
|
-
this.relationshipsController = relationshipsController;
|
|
39
|
-
}
|
|
40
|
-
async executeInternal(request) {
|
|
41
|
-
const thirdPartyRelationshipAttributeId = core_types_1.CoreId.from(request.attributeId);
|
|
42
|
-
const thirdPartyRelationshipAttribute = await this.attributesController.getLocalAttribute(thirdPartyRelationshipAttributeId);
|
|
43
|
-
if (!thirdPartyRelationshipAttribute)
|
|
44
|
-
return ts_utils_1.Result.fail(common_1.RuntimeErrors.general.recordNotFound(consumption_1.LocalAttribute));
|
|
45
|
-
if (!thirdPartyRelationshipAttribute.isThirdPartyRelationshipAttribute()) {
|
|
46
|
-
return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.isNotThirdPartyRelationshipAttribute(thirdPartyRelationshipAttributeId));
|
|
47
|
-
}
|
|
48
|
-
const relationshipWithStatusPending = await this.relationshipsController.getRelationshipToIdentity(thirdPartyRelationshipAttribute.shareInfo.peer, transport_1.RelationshipStatus.Pending);
|
|
49
|
-
if (relationshipWithStatusPending) {
|
|
50
|
-
return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.cannotDeleteSharedAttributeWhileRelationshipIsPending());
|
|
51
|
-
}
|
|
52
|
-
const validationResult = await this.attributesController.validateFullAttributeDeletionProcess(thirdPartyRelationshipAttribute);
|
|
53
|
-
if (validationResult.isError())
|
|
54
|
-
return ts_utils_1.Result.fail(validationResult.error);
|
|
55
|
-
await this.attributesController.executeFullAttributeDeletionProcess(thirdPartyRelationshipAttribute);
|
|
56
|
-
const messageRecipientsValidationResult = await this.messageController.validateMessageRecipients([thirdPartyRelationshipAttribute.shareInfo.peer]);
|
|
57
|
-
if (messageRecipientsValidationResult.isError) {
|
|
58
|
-
return ts_utils_1.Result.ok({});
|
|
59
|
-
}
|
|
60
|
-
const notificationId = await consumption_1.ConsumptionIds.notification.generate();
|
|
61
|
-
const notificationItem = content_1.ThirdPartyRelationshipAttributeDeletedByPeerNotificationItem.from({ attributeId: thirdPartyRelationshipAttributeId });
|
|
62
|
-
const notification = content_1.Notification.from({
|
|
63
|
-
id: notificationId,
|
|
64
|
-
items: [notificationItem]
|
|
65
|
-
});
|
|
66
|
-
await this.messageController.sendMessage({
|
|
67
|
-
recipients: [thirdPartyRelationshipAttribute.shareInfo.peer],
|
|
68
|
-
content: notification
|
|
69
|
-
});
|
|
70
|
-
await this.accountController.syncDatawallet();
|
|
71
|
-
const result = { notificationId: notificationId.toString() };
|
|
72
|
-
return ts_utils_1.Result.ok(result);
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
exports.DeleteThirdPartyRelationshipAttributeAndNotifyPeerUseCase = DeleteThirdPartyRelationshipAttributeAndNotifyPeerUseCase;
|
|
76
|
-
exports.DeleteThirdPartyRelationshipAttributeAndNotifyPeerUseCase = DeleteThirdPartyRelationshipAttributeAndNotifyPeerUseCase = __decorate([
|
|
77
|
-
__param(0, typescript_ioc_1.Inject),
|
|
78
|
-
__param(1, typescript_ioc_1.Inject),
|
|
79
|
-
__param(2, typescript_ioc_1.Inject),
|
|
80
|
-
__param(3, typescript_ioc_1.Inject),
|
|
81
|
-
__param(4, typescript_ioc_1.Inject),
|
|
82
|
-
__metadata("design:paramtypes", [consumption_1.AttributesController,
|
|
83
|
-
transport_1.AccountController,
|
|
84
|
-
transport_1.MessageController,
|
|
85
|
-
transport_1.RelationshipsController,
|
|
86
|
-
Validator])
|
|
87
|
-
], DeleteThirdPartyRelationshipAttributeAndNotifyPeerUseCase);
|
|
88
|
-
//# sourceMappingURL=DeleteThirdPartyRelationshipAttributeAndNotifyPeer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteThirdPartyRelationshipAttributeAndNotifyPeer.js","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/DeleteThirdPartyRelationshipAttributeAndNotifyPeer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAA2C;AAC3C,oDAA0F;AAC1F,4CAA4G;AAC5G,kDAA2C;AAC3C,gDAAqH;AACrH,0DAA+C;AAC/C,yCAAkI;AAUlI,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,wBAA0E;IAC9F,YAA2B,gBAAkC;QACzD,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,2DAA2D,CAAC,CAAC,CAAC;IACnG,CAAC;CACJ,CAAA;AA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AA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCAJwC,kCAAoB;QACvB,6BAAiB;QACjB,6BAAiB;QACX,mCAAuB;QACtD,SAAS;GATvB,yDAAyD,CA2DrE"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Result } from "@js-soft/ts-utils";
|
|
2
|
-
import { AttributesController } from "@nmshd/consumption";
|
|
3
|
-
import { LocalAttributeDTO } from "@nmshd/runtime-types";
|
|
4
|
-
import { IdentityController } from "@nmshd/transport";
|
|
5
|
-
import { AddressString, SchemaRepository, SchemaValidator, UseCase } from "../../common";
|
|
6
|
-
export interface GetOwnSharedAttributesRequest {
|
|
7
|
-
peer: AddressString;
|
|
8
|
-
query?: GetOwnSharedAttributeRequestQuery;
|
|
9
|
-
hideTechnical?: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* default: true
|
|
12
|
-
*/
|
|
13
|
-
onlyLatestVersions?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface GetOwnSharedAttributeRequestQuery {
|
|
16
|
-
createdAt?: string;
|
|
17
|
-
wasViewedAt?: string | string[];
|
|
18
|
-
"content.@type"?: string | string[];
|
|
19
|
-
"content.tags"?: string | string[];
|
|
20
|
-
"content.key"?: string | string[];
|
|
21
|
-
"content.isTechnical"?: string;
|
|
22
|
-
"content.confidentiality"?: string | string[];
|
|
23
|
-
"content.value.@type"?: string | string[];
|
|
24
|
-
shareInfo?: string | string[];
|
|
25
|
-
"shareInfo.requestReference"?: string | string[];
|
|
26
|
-
"shareInfo.notificationReference"?: string | string[];
|
|
27
|
-
"shareInfo.sourceAttribute"?: string | string[];
|
|
28
|
-
"shareInfo.thirdPartyAddress"?: string | string[];
|
|
29
|
-
deletionInfo?: string | string[];
|
|
30
|
-
"deletionInfo.deletionStatus"?: string | string[];
|
|
31
|
-
"deletionInfo.deletionDate"?: string | string[];
|
|
32
|
-
}
|
|
33
|
-
declare class Validator extends SchemaValidator<GetOwnSharedAttributesRequest> {
|
|
34
|
-
constructor(schemaRepository: SchemaRepository);
|
|
35
|
-
}
|
|
36
|
-
export declare class GetOwnSharedAttributesUseCase extends UseCase<GetOwnSharedAttributesRequest, LocalAttributeDTO[]> {
|
|
37
|
-
private readonly attributeController;
|
|
38
|
-
private readonly identityController;
|
|
39
|
-
constructor(attributeController: AttributesController, identityController: IdentityController, validator: Validator);
|
|
40
|
-
protected executeInternal(request: GetOwnSharedAttributesRequest): Promise<Result<LocalAttributeDTO[]>>;
|
|
41
|
-
}
|
|
42
|
-
export {};
|
|
43
|
-
//# sourceMappingURL=GetOwnSharedAttributes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetOwnSharedAttributes.d.ts","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/GetOwnSharedAttributes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAKzF,MAAM,WAAW,6BAA6B;IAC1C,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,CAAC,EAAE,iCAAiC,CAAC;IAC1C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,MAAM,WAAW,iCAAiC;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAChC,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACpC,cA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AAI,CAAC,mBAAmB,CAAC,kBAAkB,CAAC,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;QAErG,OAAO,iBAAM,CAAC,EAAE,CAAC,iCAAe,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAAC;IACrE,CAAC;CACJ,CAAA;AA1BY,sEAA6B;wCAA7B,6BAA6B;IAEjC,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCAFuC,kCAAoB;QACrB,8BAAkB;QAC5C,SAAS;GAJvB,6BAA6B,CA0BzC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetPeerSharedAttributes.d.ts","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/GetPeerSharedAttributes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAKzF,MAAM,WAAW,8BAA8B;IAC3C,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,CAAC,EAAE,mCAAmC,CAAC;IAC5C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,MAAM,WAAW,mCAAmC;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAChC,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACpC,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACnC,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAClC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,yBAAyB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC9C,qBAAqB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC1C,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC9B,4BAA4B,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACjD,iCAAiC,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACtD,6BAA6B,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAClD,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACjC,6BAA6B,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAClD,2BAA2B,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CACnD;AAED,cAAM,SAAU,SAAQ,eAAe,CAAC,8BAA8B,CAAC;gBACxC,gBAAgB,EAAE,gBAAgB;CAGhE;AAED,qBAAa,8BAA+B,SAAQ,OAAO,CAAC,8BAA8B,EAAE,iBAAiB,EAAE,CAAC;IAEhG,OAAO,CAAC,QAAQ,CAAC,mBAAmB;gBAAnB,mBAAmB,EAAE,oBAAoB,EAC1D,SAAS,EAAE,SAAS;cAKhB,eAAe,CAAC,OAAO,EAAE,8BAA8B,GAAG,OAAO,CAAC,MAAM,CAAC,iBAAiB,EAAE,CAAC,CAAC;CAejH"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetPeerSharedAttributes.js","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/GetPeerSharedAttributes.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAA2C;AAC3C,oDAA0D;AAE1D,0DAA+C;AAC/C,yCAAyF;AACzF,8DAA2D;AAC3D,uDAAoD;AACpD,mDAAkF;AA8BlF,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,wBAA+C;IAC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ttributes.d.ts","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/GetRepositoryAttributes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,OAAO,EAAiB,MAAM,cAAc,CAAC;AAIzF,MAAM,WAAW,8BAA8B;IAC3C;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,KAAK,CAAC,EAAE,mCAAmC,CAAC;CAC/C;AAED,MAAM,WAAW,mCAAmC;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAChC,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACnC,qBAAqB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC7C;AAED,MAAM,WAAW,+BAAgC,SAAQ,KAAK,CAAC,iBAAiB,CAAC;CAAG;AAEpF,cAAM,SAAU,SAAQ,eAAe,CAAC,8BAA8B,CAAC;gBACxC,gBAAgB,EAAE,gBAAgB;CAGhE;AAED,qBAAa,8BAA+B,SAAQ,OAAO,CAAC,8BAA8B,EAAE,+BAA+B,CAAC;IAE5G,OAAO,CAAC,QAAQ,CAAC,oBAAoB;gBAApB,oBAAoB,EAAE,oBAAoB,EAC3D,SAAS,EAAE,SAAS;cAKhB,eAAe,CAAC,OAAO,EAAE,8BAA8B,GAAG,OAAO,CAAC,MAAM,CAAC,+BAA+B,CAAC,CAAC;CAY7H"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetRepositoryAttributes.js","sourceRoot":"","sources":["../../../../src/useCases/consumption/attribut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,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCADwC,kCAAoB;QAChD,SAAS;GAHvB,8BAA8B,CAoB1C"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Result } from "@js-soft/ts-utils";
|
|
2
|
-
import { AttributesController } from "@nmshd/consumption";
|
|
3
|
-
import { LocalAttributeDTO } from "@nmshd/runtime-types";
|
|
4
|
-
import { AccountController } from "@nmshd/transport";
|
|
5
|
-
import { AddressString, AttributeIdString, SchemaRepository, SchemaValidator, UseCase } from "../../common";
|
|
6
|
-
export interface GetSharedVersionsOfAttributeRequest {
|
|
7
|
-
attributeId: AttributeIdString;
|
|
8
|
-
peers?: AddressString[];
|
|
9
|
-
/**
|
|
10
|
-
* default: true
|
|
11
|
-
*/
|
|
12
|
-
onlyLatestVersions?: boolean;
|
|
13
|
-
}
|
|
14
|
-
declare class Validator extends SchemaValidator<GetSharedVersionsOfAttributeRequest> {
|
|
15
|
-
constructor(schemaRepository: SchemaRepository);
|
|
16
|
-
}
|
|
17
|
-
export declare class GetSharedVersionsOfAttributeUseCase extends UseCase<GetSharedVersionsOfAttributeRequest, LocalAttributeDTO[]> {
|
|
18
|
-
private readonly accountController;
|
|
19
|
-
private readonly attributeController;
|
|
20
|
-
constructor(accountController: AccountController, attributeController: AttributesController, validator: Validator);
|
|
21
|
-
protected executeInternal(request: GetSharedVersionsOfAttributeRequest): Promise<Result<LocalAttributeDTO[]>>;
|
|
22
|
-
}
|
|
23
|
-
export {};
|
|
24
|
-
//# sourceMappingURL=GetSharedVersionsOfAttribute.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetSharedVersionsOfAttribute.d.ts","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/GetSharedVersionsOfAttribute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAkB,MAAM,oBAAoB,CAAC;AAE1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAiB,gBAAgB,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAG3H,MAAM,WAAW,mCAAmC;IAChD,WAAW,EAAE,iBAAiB,CAAC;IAC/B,KAAK,CAAC,EAAE,aAAa,EAAE,CAAC;IACxB;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,cAAM,SAAU,SAAQ,eAAe,CAAC,mCAAmC,CAAC;gBAC7C,gBAAgB,EAAE,gBAAgB;CAGhE;AAED,qBAAa,mCAAoC,SAAQ,OAAO,CAAC,mCAAmC,EAAE,iBAAiB,EAAE,CAAC;IAE1G,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,mBAAmB;gBADnB,iBAAiB,EAAE,iBAAiB,EACpC,mBAAmB,EAAE,oBAAoB,EAC1D,SAAS,EAAE,SAAS;cAKhB,eAAe,CAAC,OAAO,EAAE,mCAAmC,GAAG,OAAO,CAAC,MAAM,CAAC,iBAAiB,EAAE,CAAC,CAAC;CAetH"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetSharedVersionsOfAttribute.js","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/GetSharedVersionsOfAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAA2C;AAC3C,oDAA0E;AAC1E,kDAAwD;AAExD,gDAAqD;AACrD,0DAA+C;AAC/C,yCAA2H;AAC3H,uDAAoD;AAWpD,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,wBAAoD;IACxE,YAA2B,gBAAkC;QACzD,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,qCAAqC,CAAC,CAAC,CAAC;IAC7E,CAA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mC;8CAAnC,mCAAmC;IAEvC,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCAFqC,6BAAiB;QACf,kCAAoB;QAC/C,SAAS;GAJvB,mCAAmC,CAwB/C"}
|
package/dist/useCases/consumption/attributes/NotifyPeerAboutRepositoryAttributeSuccession.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NotifyPeerAboutRepositoryAttributeSuccession.d.ts","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/NotifyPeerAboutRepositoryAttributeSuccession.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAA2F,MAAM,oBAAoB,CAAC;AAGnJ,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,oBAAoB,EAAiB,gBAAgB,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGjJ,MAAM,WAAW,oDAAoD;IACjE,WAAW,EAAE,iBAAiB,CAAC;IAC/B,SAAS,EAAE,iBAAiB,CAAC;IAC7B,cAAc,EAAE,oBAAoB,CAAC;CACxC;AAED,MAAM,WAAW,mDAAmD;IAChE,WAAW,EAAE,iBAAiB,CAAC;IAC/B,IAAI,EAAE,aAAa,CAAC;CACvB;AAED,cAAM,SAAU,SAAQ,eAAe,CAAC,mDAAmD,CAAC;gBAC7D,gBAAgB,EAAE,gBAAgB;CAGhE;AAED,qBAAa,mDAAoD,SAAQ,OAAO,CAC5E,mDAAmD,EACnD,oDAAoD,CACvD;IAEe,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAFjB,iBAAiB,EAAE,iBAAiB,EACpC,mBAAmB,EAAE,oBAAoB,EACzC,iBAAiB,EAAE,iBAAiB,EACrD,SAAS,EAAE,SAAS;cAKhB,eAAe,CAAC,OAAO,EAAE,mDAAmD,GAAG,OAAO,CAAC,MAAM,CAAC,oDAAoD,CAAC,CAAC;CAuEvK"}
|
package/dist/useCases/consumption/attributes/NotifyPeerAboutRepositoryAttributeSuccession.js
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
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
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.NotifyPeerAboutRepositoryAttributeSuccessionUseCase = void 0;
|
|
16
|
-
const ts_utils_1 = require("@js-soft/ts-utils");
|
|
17
|
-
const consumption_1 = require("@nmshd/consumption");
|
|
18
|
-
const content_1 = require("@nmshd/content");
|
|
19
|
-
const core_types_1 = require("@nmshd/core-types");
|
|
20
|
-
const transport_1 = require("@nmshd/transport");
|
|
21
|
-
const typescript_ioc_1 = require("@nmshd/typescript-ioc");
|
|
22
|
-
const common_1 = require("../../common");
|
|
23
|
-
const AttributeMapper_1 = require("./AttributeMapper");
|
|
24
|
-
let Validator = class Validator extends common_1.SchemaValidator {
|
|
25
|
-
constructor(schemaRepository) {
|
|
26
|
-
super(schemaRepository.getSchema("NotifyPeerAboutRepositoryAttributeSuccessionRequest"));
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
Validator = __decorate([
|
|
30
|
-
__param(0, typescript_ioc_1.Inject),
|
|
31
|
-
__metadata("design:paramtypes", [common_1.SchemaRepository])
|
|
32
|
-
], Validator);
|
|
33
|
-
let NotifyPeerAboutRepositoryAttributeSuccessionUseCase = class NotifyPeerAboutRepositoryAttributeSuccessionUseCase extends common_1.UseCase {
|
|
34
|
-
constructor(accountController, attributeController, messageController, validator) {
|
|
35
|
-
super(validator);
|
|
36
|
-
this.accountController = accountController;
|
|
37
|
-
this.attributeController = attributeController;
|
|
38
|
-
this.messageController = messageController;
|
|
39
|
-
}
|
|
40
|
-
async executeInternal(request) {
|
|
41
|
-
const repositoryAttributeSuccessorId = core_types_1.CoreId.from(request.attributeId);
|
|
42
|
-
const repositoryAttributeSuccessor = await this.attributeController.getLocalAttribute(repositoryAttributeSuccessorId);
|
|
43
|
-
if (!repositoryAttributeSuccessor)
|
|
44
|
-
return ts_utils_1.Result.fail(common_1.RuntimeErrors.general.recordNotFound(consumption_1.LocalAttribute.name));
|
|
45
|
-
if (!repositoryAttributeSuccessor.isRepositoryAttribute(this.accountController.identity.address)) {
|
|
46
|
-
return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.isNotRepositoryAttribute(repositoryAttributeSuccessorId));
|
|
47
|
-
}
|
|
48
|
-
const candidatePredecessors = await this.attributeController.getSharedVersionsOfAttribute(repositoryAttributeSuccessorId, [core_types_1.CoreAddress.from(request.peer)]);
|
|
49
|
-
if (candidatePredecessors.length === 0) {
|
|
50
|
-
return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.noPreviousVersionOfRepositoryAttributeHasBeenSharedWithPeerBefore(repositoryAttributeSuccessorId, request.peer));
|
|
51
|
-
}
|
|
52
|
-
const ownSharedIdentityAttributePredecessor = candidatePredecessors.find((attribute) => attribute.deletionInfo?.deletionStatus !== consumption_1.LocalAttributeDeletionStatus.DeletedByPeer &&
|
|
53
|
-
attribute.deletionInfo?.deletionStatus !== consumption_1.LocalAttributeDeletionStatus.ToBeDeletedByPeer);
|
|
54
|
-
if (!ownSharedIdentityAttributePredecessor) {
|
|
55
|
-
return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.cannotSucceedAttributesWithDeletionInfo(candidatePredecessors.map((attribute) => attribute.id)));
|
|
56
|
-
}
|
|
57
|
-
if (ownSharedIdentityAttributePredecessor.shareInfo?.sourceAttribute?.toString() === request.attributeId) {
|
|
58
|
-
return ts_utils_1.Result.fail(common_1.RuntimeErrors.attributes.repositoryAttributeHasAlreadyBeenSharedWithPeer(request.attributeId, request.peer, ownSharedIdentityAttributePredecessor.id));
|
|
59
|
-
}
|
|
60
|
-
const notificationId = await consumption_1.ConsumptionIds.notification.generate();
|
|
61
|
-
const successorParams = {
|
|
62
|
-
content: repositoryAttributeSuccessor.content,
|
|
63
|
-
succeeds: ownSharedIdentityAttributePredecessor.id,
|
|
64
|
-
shareInfo: { peer: ownSharedIdentityAttributePredecessor.shareInfo.peer, sourceAttribute: repositoryAttributeSuccessor.id, notificationReference: notificationId },
|
|
65
|
-
parentId: repositoryAttributeSuccessor.parentId
|
|
66
|
-
};
|
|
67
|
-
const validationResult = await this.attributeController.validateOwnSharedIdentityAttributeSuccession(ownSharedIdentityAttributePredecessor.id, successorParams);
|
|
68
|
-
if (validationResult.isError()) {
|
|
69
|
-
return ts_utils_1.Result.fail(validationResult.error);
|
|
70
|
-
}
|
|
71
|
-
const { predecessor: updatedOwnSharedIdentityAttributePredecessor, successor: ownSharedIdentityAttributeSuccessor } = await this.attributeController.succeedOwnSharedIdentityAttribute(ownSharedIdentityAttributePredecessor.id, successorParams, false);
|
|
72
|
-
const notificationItem = content_1.PeerSharedAttributeSucceededNotificationItem.from({
|
|
73
|
-
predecessorId: ownSharedIdentityAttributePredecessor.id,
|
|
74
|
-
successorId: ownSharedIdentityAttributeSuccessor.id,
|
|
75
|
-
successorContent: ownSharedIdentityAttributeSuccessor.content
|
|
76
|
-
});
|
|
77
|
-
const notification = content_1.Notification.from({
|
|
78
|
-
id: notificationId,
|
|
79
|
-
items: [notificationItem]
|
|
80
|
-
});
|
|
81
|
-
await this.messageController.sendMessage({
|
|
82
|
-
recipients: [ownSharedIdentityAttributePredecessor.shareInfo.peer],
|
|
83
|
-
content: notification
|
|
84
|
-
});
|
|
85
|
-
await this.accountController.syncDatawallet();
|
|
86
|
-
const result = {
|
|
87
|
-
predecessor: AttributeMapper_1.AttributeMapper.toAttributeDTO(updatedOwnSharedIdentityAttributePredecessor),
|
|
88
|
-
successor: AttributeMapper_1.AttributeMapper.toAttributeDTO(ownSharedIdentityAttributeSuccessor),
|
|
89
|
-
notificationId: notificationId.toString()
|
|
90
|
-
};
|
|
91
|
-
return ts_utils_1.Result.ok(result);
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
exports.NotifyPeerAboutRepositoryAttributeSuccessionUseCase = NotifyPeerAboutRepositoryAttributeSuccessionUseCase;
|
|
95
|
-
exports.NotifyPeerAboutRepositoryAttributeSuccessionUseCase = NotifyPeerAboutRepositoryAttributeSuccessionUseCase = __decorate([
|
|
96
|
-
__param(0, typescript_ioc_1.Inject),
|
|
97
|
-
__param(1, typescript_ioc_1.Inject),
|
|
98
|
-
__param(2, typescript_ioc_1.Inject),
|
|
99
|
-
__param(3, typescript_ioc_1.Inject),
|
|
100
|
-
__metadata("design:paramtypes", [transport_1.AccountController,
|
|
101
|
-
consumption_1.AttributesController,
|
|
102
|
-
transport_1.MessageController,
|
|
103
|
-
Validator])
|
|
104
|
-
], NotifyPeerAboutRepositoryAttributeSuccessionUseCase);
|
|
105
|
-
//# sourceMappingURL=NotifyPeerAboutRepositoryAttributeSuccession.js.map
|
package/dist/useCases/consumption/attributes/NotifyPeerAboutRepositoryAttributeSuccession.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NotifyPeerAboutRepositoryAttributeSuccession.js","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/NotifyPeerAboutRepositoryAttributeSuccession.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAA2C;AAC3C,oDAAmJ;AACnJ,4CAA4F;AAC5F,kDAAwD;AAExD,gDAAwE;AACxE,0DAA+C;AAC/C,yCAAiJ;AACjJ,uDAAoD;AAapD,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,wBAAoE;IACxF,YAA2B,gBAAkC;QACzD,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,qDAAqD,CAAC,CAAC,CAAC;IAC7F,CAAC;CACJ,CAAA;AAJK,SAAS;IACS,WAAA,uBAAM,CAAA;qCAAmB,yBAAgB;GAD3D,SAAS,CAId;AAED,IAAa,mDAAmD,GAAhE,MAAa,mDAAoD,SAAQ,gBAGxE;IACG,YAC6B,iBAAoC,EACpC,mBAAyC,EACzC,iBAAoC,EACrD,SAAoB;QAE5B,KAAK,CAAC,SAAS,CAAC,CAAC;QALQ,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,wBAAmB,GAAnB,mBAAmB,CAAsB;QACzC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAIjE,CAAC;IAES,KAAK,CAAC,eAAe,CAAC,OAA4D;QACxF,MAAM,8BAA8B,GAAG,mBAAM,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QACxE,MAAM,4BAA4B,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,8BAA8B,CAAC,CAAC;QAEtH,IAAI,CAAC,4BAA4B;YAAE,OAAO,iBAAM,CAAC,IAAI,CAAC,sBAAa,CAAC,OAAO,CAAC,cA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AC,CAAC;QACH,MAAM,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC;YACrC,UAAU,EAAE,CAAC,qCAAqC,CAAC,SAAU,CAAC,IAAI,CAAC;YACnE,OAAO,EAAE,YAAY;SACxB,CAAC,CAAC;QAEH,MAAM,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,CAAC;QAE9C,MAAM,MAAM,GAAG;YACX,WAAW,EAAE,iCAAe,CAAC,cAAc,CAAC,4CAA4C,CAAC;YACzF,SAAS,EAAE,iCAAe,CAAC,cAAc,CAAC,mCAAmC,CAAC;YAC9E,cAAc,EAAE,cAAc,CAAC,QAAQ,EAAE;SAC5C,CAAC;QACF,OAAO,iBAAM,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IAC7B,CAAC;CACJ,CAAA;AApFY,kHAAmD;8DAAnD,mDAAmD;IAKvD,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCAHqC,6BAAiB;QACf,kCAAoB;QACtB,6BAAiB;QAC1C,SAAS;GARvB,mDAAmD,CAoF/D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ShareRepositoryAttribute.d.ts","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/ShareRepositoryAttribute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAA0E,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAG9J,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,qBAAqB,EAAiB,gBAAgB,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGlJ,MAAM,WAAW,+BAA+B;IAC5C,WAAW,EAAE,iBAAiB,CAAC;IAC/B,IAAI,EAAE,aAAa,CAAC;IACpB,eAAe,CAAC,EAAE;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC/B,SAAS,CAAC,EAAE,qBAAqB,CAAC;KACrC,CAAC;IACF,mBAAmB,CAAC,EAAE;QAClB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAClC,CAAC;CACL;AAED,cAAM,SAAU,SAAQ,eAAe,CAAC,+BAA+B,CAAC;gBACzC,gBAAgB,EAAE,gBAAgB;CAGhE;AAED,qBAAa,+BAAgC,SAAQ,OAAO,CAAC,+BAA+B,EAAE,eAAe,CAAC;IAE9F,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IACnC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAHjB,mBAAmB,EAAE,oBAAoB,EACzC,iBAAiB,EAAE,iBAAiB,EACpC,kBAAkB,EAAE,0BAA0B,EAC9C,iBAAiB,EAAE,iBAAiB,EACrD,SAAS,EAAE,SAAS;cAKhB,eAAe,CAAC,OAAO,EAAE,+BAA+B,GAAG,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;CAiC9G"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ShareRepositoryAttribute.js","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/ShareRepositoryAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAA2C;AAC3C,oDAA8J;AAC9J,4CAAoE;AACpE,kDAAwD;AAExD,gDAAwE;AACxE,0DAA+C;AAC/C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A,uBAAM,CAAA;qCAJuC,kCAAoB;QACtB,6BAAiB;QAChB,wCAA0B;QAC3B,6BAAiB;QAC1C,SAAS;GANvB,+BAA+B,CA4C3C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SucceedRepositoryAttribute.d.ts","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/SucceedRepositoryAttribute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAuD,MAAM,oBAAoB,CAAC;AAC/G,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAG1E,MAAM,WAAW,kCAAkC;IAC/C,WAAW,EAAE,iBAAiB,CAAC;IAC/B,SAAS,EAAE,iBAAiB,CAAC;CAChC;AAED,MAAM,WAAW,iCAAiC;IAC9C,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE;QACd,KAAK,EAAE,eAAe,CAAC,QAAQ,CAAC,IAAI,CAAC;QACrC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;KACnB,CAAC;CACL;AAED,cAAM,SAAU,SAAQ,eAAe,CAAC,iCAAiC,CAAC;gBAC3C,gBAAgB,EAAE,gBAAgB;CAGhE;AAED,qBAAa,iCAAkC,SAAQ,OAAO,CAAC,iCAAiC,EAAE,kCAAkC,CAAC;IAErH,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBADjB,mBAAmB,EAAE,oBAAoB,EACzC,iBAAiB,EAAE,iBAAiB,EACrD,SAAS,EAAE,SAAS;cAKhB,eAAe,CAAC,OAAO,EAAE,iCAAiC,GAAG,OAAO,CAAC,MAAM,CAAC,kCAAkC,CAAC,CAAC;CA2BnI"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SucceedRepositoryAttribute.js","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/SucceedRepositoryAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAA2C;AAC3C,oDAA+G;AAE/G,kDAA2C;AAE3C,gDAAqD;AACrD,0DAA+C;AAC/C,yCAA0E;AAC1E,uDAAoD;AAepD,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,wBAAkD;IACtE,YAA2B,gBAAkC;QACzD,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,mCAAmC,CAAC,CAAC,CAAC;IAC3E,CAAC;CACJ,CAAA;AAJK,SAAS;IACS,WAAA,uBAAM,CAAA;qCAAmB,yBAAgB;GAD3D,SAAS,CAId;AAED,IAAa,iCAAiC,GAA9C,MAAa,iCAAkC,SAAQ,gBAA8E;IACjI,YAC6B,mBAAyC,EACzC,iBAAoC,EACrD,SAAoB;QAE5B,KAAK,CAAC,SAAS,CAAC,CAAC;QAJQ,wBAAmB,GAAnB,mBAAmB,CAAsB;QACzC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAIjE,CAAC;IAES,KAAK,CAAC,eAAe,CAAC,OAA0C;QACtE,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,mBAAM,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;QACzG,IAAI,CAAC,WAAW;YAAE,OAAO,iBAAM,CAAC,IAAI,CAAC,mCAAqB,CAAC,UAAU,CAAC,uBAAuB,EAAE,CAAC,CAAC;QAEjG,MAAM,eAAe,GAAiC;YAClD,OAAO,EAAE;gBACL,OAAO,EAAE,mBAAmB;gBAC5B,KAAK,EAAE,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE;gBACzD,GAAG,OAAO,CAAC,gBAAgB;aAC9B;YACD,QAAQ,EAAE,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE;SACtC,CAAC;QACF,MAAM,aAAa,GAAG,mBAAM,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;QACzD,MAAM,gBAAgB,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,qCAAqC,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC;QAC9H,IAAI,gBAAgB,CAAC,OAAO,EAAE,EAAE,CAAC;YAC7B,OAAO,iBAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;QAC/C,CAAC;QAED,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE,SAAS,EAAE,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,0BAA0B,CAAC,aAAa,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC;QACxJ,MAAM,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,CAAC;QAE9C,MAAM,QAAQ,GAAuC;YACjD,WAAW,EAAE,iCAAe,CAAC,cAAc,CAAC,kBAAkB,CAAC;YAC/D,SAAS,EAAE,iCAAe,CAAC,cAAc,CAAC,SAAS,CAAC;SACvD,CAAC;QACF,OAAO,iBAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;IAC/B,CAAC;CACJ,CAAA;AApCY,8EAAiC;4CAAjC,iCAAiC;IAErC,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCAFuC,kCAAoB;QACtB,6BAAiB;QAC1C,SAAS;GAJvB,iCAAiC,CAoC7C"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Result } from "@js-soft/ts-utils";
|
|
2
|
-
import { OpenId4VcController } from "@nmshd/consumption";
|
|
3
|
-
import { AcceptProofRequestDTO } from "@nmshd/runtime-types";
|
|
4
|
-
import { SchemaRepository, SchemaValidator, UseCase } from "../../common";
|
|
5
|
-
export interface AcceptProofRequestRequest {
|
|
6
|
-
jsonEncodedRequest: string;
|
|
7
|
-
}
|
|
8
|
-
declare class Validator extends SchemaValidator<AcceptProofRequestRequest> {
|
|
9
|
-
constructor(schemaRepository: SchemaRepository);
|
|
10
|
-
}
|
|
11
|
-
export declare class AcceptProofRequestUseCase extends UseCase<AcceptProofRequestRequest, AcceptProofRequestDTO> {
|
|
12
|
-
private readonly openId4VcContoller;
|
|
13
|
-
constructor(openId4VcContoller: OpenId4VcController, validator: Validator);
|
|
14
|
-
protected executeInternal(request: AcceptProofRequestRequest): Promise<Result<AcceptProofRequestDTO>>;
|
|
15
|
-
}
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=AcceptProofRequestUseCase.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AcceptProofRequestUseCase.d.ts","sourceRoot":"","sources":["../../../../src/useCases/consumption/openid4vc/AcceptProofRequestUseCase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE1E,MAAM,WAAW,yBAAyB;IACtC,kBAAkB,EAAE,MAAM,CAAC;CAC9B;AAED,cAAM,SAAU,SAAQ,eAAe,CAAC,yBAAyB,CAAC;gBACnC,gBAAgB,EAAE,gBAAgB;CAGhE;AAED,qBAAa,yBAA0B,SAAQ,OAAO,CAAC,yBAAyB,EAAE,qBAAqB,CAAC;IAExF,OAAO,CAAC,QAAQ,CAAC,kBAAkB;gBAAlB,kBAAkB,EAAE,mBAAmB,EACxD,SAAS,EAAE,SAAS;cAKP,eAAe,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;CAIvH"}
|