@nmshd/runtime 4.5.0 → 4.7.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/dist/Runtime.d.ts.map +1 -1
- package/dist/Runtime.js +3 -0
- package/dist/Runtime.js.map +1 -1
- package/dist/buildInformation.js +5 -5
- package/dist/dataViews/DataViewExpander.d.ts +1 -2
- package/dist/dataViews/DataViewExpander.d.ts.map +1 -1
- package/dist/dataViews/DataViewExpander.js +44 -4
- package/dist/dataViews/DataViewExpander.js.map +1 -1
- package/dist/dataViews/consumption/DecidableRequestItemDVOs.d.ts +7 -1
- package/dist/dataViews/consumption/DecidableRequestItemDVOs.d.ts.map +1 -1
- package/dist/dataViews/consumption/LocalAttributeDVO.d.ts +8 -0
- package/dist/dataViews/consumption/LocalAttributeDVO.d.ts.map +1 -1
- package/dist/dataViews/content/RequestItemDVOs.d.ts +6 -0
- package/dist/dataViews/content/RequestItemDVOs.d.ts.map +1 -1
- package/dist/dataViews/content/ResponseItemDVOs.d.ts +5 -1
- package/dist/dataViews/content/ResponseItemDVOs.d.ts.map +1 -1
- package/dist/events/EventProxy.d.ts.map +1 -1
- package/dist/events/EventProxy.js +12 -0
- package/dist/events/EventProxy.js.map +1 -1
- package/dist/events/consumption/OwnSharedAttributeDeletedByOwnerEvent.d.ts +7 -0
- package/dist/events/consumption/OwnSharedAttributeDeletedByOwnerEvent.d.ts.map +1 -0
- package/dist/events/consumption/OwnSharedAttributeDeletedByOwnerEvent.js +12 -0
- package/dist/events/consumption/OwnSharedAttributeDeletedByOwnerEvent.js.map +1 -0
- package/dist/events/consumption/PeerSharedAttributeDeletedByPeerEvent.d.ts +7 -0
- package/dist/events/consumption/PeerSharedAttributeDeletedByPeerEvent.d.ts.map +1 -0
- package/dist/events/consumption/PeerSharedAttributeDeletedByPeerEvent.js +12 -0
- package/dist/events/consumption/PeerSharedAttributeDeletedByPeerEvent.js.map +1 -0
- package/dist/events/consumption/ThirdPartyOwnedRelationshipAttributeDeletedByPeerEvent.d.ts +7 -0
- package/dist/events/consumption/ThirdPartyOwnedRelationshipAttributeDeletedByPeerEvent.d.ts.map +1 -0
- package/dist/events/consumption/ThirdPartyOwnedRelationshipAttributeDeletedByPeerEvent.js +12 -0
- package/dist/events/consumption/ThirdPartyOwnedRelationshipAttributeDeletedByPeerEvent.js.map +1 -0
- package/dist/events/consumption/index.d.ts +3 -0
- package/dist/events/consumption/index.d.ts.map +1 -1
- package/dist/events/consumption/index.js +3 -0
- package/dist/events/consumption/index.js.map +1 -1
- package/dist/events/transport/IdentityDeletionProcessStatusChangedEvent.d.ts +7 -0
- package/dist/events/transport/IdentityDeletionProcessStatusChangedEvent.d.ts.map +1 -0
- package/dist/events/transport/IdentityDeletionProcessStatusChangedEvent.js +12 -0
- package/dist/events/transport/IdentityDeletionProcessStatusChangedEvent.js.map +1 -0
- package/dist/events/transport/index.d.ts +1 -0
- package/dist/events/transport/index.d.ts.map +1 -1
- package/dist/events/transport/index.js +1 -0
- package/dist/events/transport/index.js.map +1 -1
- package/dist/extensibility/TransportServices.d.ts +4 -2
- package/dist/extensibility/TransportServices.d.ts.map +1 -1
- package/dist/extensibility/TransportServices.js +8 -2
- package/dist/extensibility/TransportServices.js.map +1 -1
- package/dist/extensibility/facades/consumption/AttributesFacade.d.ts +10 -2
- package/dist/extensibility/facades/consumption/AttributesFacade.d.ts.map +1 -1
- package/dist/extensibility/facades/consumption/AttributesFacade.js +26 -2
- package/dist/extensibility/facades/consumption/AttributesFacade.js.map +1 -1
- package/dist/extensibility/facades/transport/IdentityDeletionProcessesFacade.d.ts +21 -0
- package/dist/extensibility/facades/transport/IdentityDeletionProcessesFacade.d.ts.map +1 -0
- package/dist/extensibility/facades/transport/IdentityDeletionProcessesFacade.js +67 -0
- package/dist/extensibility/facades/transport/IdentityDeletionProcessesFacade.js.map +1 -0
- package/dist/extensibility/facades/transport/index.d.ts +1 -0
- package/dist/extensibility/facades/transport/index.d.ts.map +1 -1
- package/dist/extensibility/facades/transport/index.js +1 -0
- package/dist/extensibility/facades/transport/index.js.map +1 -1
- package/dist/types/consumption/LocalAttributeDTO.d.ts +2 -1
- package/dist/types/consumption/LocalAttributeDTO.d.ts.map +1 -1
- package/dist/types/transport/IdentityDeletionProcessDTO.d.ts +15 -0
- package/dist/types/transport/IdentityDeletionProcessDTO.d.ts.map +1 -0
- package/dist/types/transport/IdentityDeletionProcessDTO.js +3 -0
- package/dist/types/transport/IdentityDeletionProcessDTO.js.map +1 -0
- package/dist/types/transport/index.d.ts +1 -0
- package/dist/types/transport/index.d.ts.map +1 -1
- package/dist/types/transport/index.js +1 -0
- package/dist/types/transport/index.js.map +1 -1
- package/dist/useCases/common/RuntimeErrors.d.ts +11 -1
- package/dist/useCases/common/RuntimeErrors.d.ts.map +1 -1
- package/dist/useCases/common/RuntimeErrors.js +26 -2
- package/dist/useCases/common/RuntimeErrors.js.map +1 -1
- package/dist/useCases/common/Schemas.d.ts +5 -0
- package/dist/useCases/common/Schemas.d.ts.map +1 -1
- package/dist/useCases/common/Schemas.js +269 -3
- package/dist/useCases/common/Schemas.js.map +1 -1
- package/dist/useCases/common/validation/ValidatableStrings.d.ts +4 -0
- package/dist/useCases/common/validation/ValidatableStrings.d.ts.map +1 -1
- package/dist/useCases/consumption/attributes/AttributeMapper.d.ts.map +1 -1
- package/dist/useCases/consumption/attributes/AttributeMapper.js +2 -1
- package/dist/useCases/consumption/attributes/AttributeMapper.js.map +1 -1
- package/dist/useCases/consumption/attributes/DeleteOwnSharedAttributeAndNotifyPeer.d.ts +22 -0
- package/dist/useCases/consumption/attributes/DeleteOwnSharedAttributeAndNotifyPeer.d.ts.map +1 -0
- package/dist/useCases/consumption/attributes/DeleteOwnSharedAttributeAndNotifyPeer.js +78 -0
- package/dist/useCases/consumption/attributes/DeleteOwnSharedAttributeAndNotifyPeer.js.map +1 -0
- package/dist/useCases/consumption/attributes/DeletePeerSharedAttributeAndNotifyOwner.d.ts +22 -0
- package/dist/useCases/consumption/attributes/DeletePeerSharedAttributeAndNotifyOwner.d.ts.map +1 -0
- package/dist/useCases/consumption/attributes/DeletePeerSharedAttributeAndNotifyOwner.js +78 -0
- package/dist/useCases/consumption/attributes/DeletePeerSharedAttributeAndNotifyOwner.js.map +1 -0
- package/dist/useCases/consumption/attributes/DeleteRepositoryAttribute.d.ts +18 -0
- package/dist/useCases/consumption/attributes/DeleteRepositoryAttribute.d.ts.map +1 -0
- package/dist/useCases/consumption/attributes/DeleteRepositoryAttribute.js +62 -0
- package/dist/useCases/consumption/attributes/DeleteRepositoryAttribute.js.map +1 -0
- package/dist/useCases/consumption/attributes/DeleteThirdPartyOwnedRelationshipAttributeAndNotifyPeer.d.ts +22 -0
- package/dist/useCases/consumption/attributes/DeleteThirdPartyOwnedRelationshipAttributeAndNotifyPeer.d.ts.map +1 -0
- package/dist/useCases/consumption/attributes/DeleteThirdPartyOwnedRelationshipAttributeAndNotifyPeer.js +78 -0
- package/dist/useCases/consumption/attributes/DeleteThirdPartyOwnedRelationshipAttributeAndNotifyPeer.js.map +1 -0
- package/dist/useCases/consumption/attributes/GetAttributes.d.ts +3 -0
- package/dist/useCases/consumption/attributes/GetAttributes.d.ts.map +1 -1
- package/dist/useCases/consumption/attributes/GetAttributes.js +11 -3
- package/dist/useCases/consumption/attributes/GetAttributes.js.map +1 -1
- package/dist/useCases/consumption/attributes/GetOwnSharedAttributes.d.ts +3 -0
- package/dist/useCases/consumption/attributes/GetOwnSharedAttributes.d.ts.map +1 -1
- package/dist/useCases/consumption/attributes/GetOwnSharedAttributes.js.map +1 -1
- package/dist/useCases/consumption/attributes/GetPeerSharedAttributes.d.ts +3 -0
- package/dist/useCases/consumption/attributes/GetPeerSharedAttributes.d.ts.map +1 -1
- package/dist/useCases/consumption/attributes/GetPeerSharedAttributes.js.map +1 -1
- package/dist/useCases/consumption/attributes/GetRepositoryAttributes.d.ts +3 -0
- package/dist/useCases/consumption/attributes/GetRepositoryAttributes.d.ts.map +1 -1
- package/dist/useCases/consumption/attributes/GetRepositoryAttributes.js.map +1 -1
- package/dist/useCases/consumption/attributes/NotifyPeerAboutRepositoryAttributeSuccession.js +1 -1
- package/dist/useCases/consumption/attributes/NotifyPeerAboutRepositoryAttributeSuccession.js.map +1 -1
- package/dist/useCases/consumption/attributes/index.d.ts +4 -0
- package/dist/useCases/consumption/attributes/index.d.ts.map +1 -1
- package/dist/useCases/consumption/attributes/index.js +4 -0
- package/dist/useCases/consumption/attributes/index.js.map +1 -1
- package/dist/useCases/transport/account/SyncEverything.d.ts +2 -1
- package/dist/useCases/transport/account/SyncEverything.d.ts.map +1 -1
- package/dist/useCases/transport/account/SyncEverything.js +6 -3
- package/dist/useCases/transport/account/SyncEverything.js.map +1 -1
- package/dist/useCases/transport/identityDeletionProcesses/ApproveIdentityDeletionProcess.d.ts +11 -0
- package/dist/useCases/transport/identityDeletionProcesses/ApproveIdentityDeletionProcess.d.ts.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/ApproveIdentityDeletionProcess.js +44 -0
- package/dist/useCases/transport/identityDeletionProcesses/ApproveIdentityDeletionProcess.js.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/CancelIdentityDeletionProcess.d.ts +11 -0
- package/dist/useCases/transport/identityDeletionProcesses/CancelIdentityDeletionProcess.d.ts.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/CancelIdentityDeletionProcess.js +44 -0
- package/dist/useCases/transport/identityDeletionProcesses/CancelIdentityDeletionProcess.js.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/GetActiveIdentityDeletionProcess.d.ts +10 -0
- package/dist/useCases/transport/identityDeletionProcesses/GetActiveIdentityDeletionProcess.d.ts.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/GetActiveIdentityDeletionProcess.js +39 -0
- package/dist/useCases/transport/identityDeletionProcesses/GetActiveIdentityDeletionProcess.js.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/GetIdentityDeletionProcess.d.ts +17 -0
- package/dist/useCases/transport/identityDeletionProcesses/GetIdentityDeletionProcess.d.ts.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/GetIdentityDeletionProcess.js +50 -0
- package/dist/useCases/transport/identityDeletionProcesses/GetIdentityDeletionProcess.js.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/GetIdentityDeletionProcesses.d.ts +10 -0
- package/dist/useCases/transport/identityDeletionProcesses/GetIdentityDeletionProcesses.d.ts.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/GetIdentityDeletionProcesses.js +36 -0
- package/dist/useCases/transport/identityDeletionProcesses/GetIdentityDeletionProcesses.js.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/IdentityDeletionProcessMapper.d.ts +7 -0
- package/dist/useCases/transport/identityDeletionProcesses/IdentityDeletionProcessMapper.d.ts.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/IdentityDeletionProcessMapper.js +30 -0
- package/dist/useCases/transport/identityDeletionProcesses/IdentityDeletionProcessMapper.js.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/InitiateIdentityDeletionProcess.d.ts +11 -0
- package/dist/useCases/transport/identityDeletionProcesses/InitiateIdentityDeletionProcess.d.ts.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/InitiateIdentityDeletionProcess.js +44 -0
- package/dist/useCases/transport/identityDeletionProcesses/InitiateIdentityDeletionProcess.js.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/RejectIdentityDeletionProcess.d.ts +11 -0
- package/dist/useCases/transport/identityDeletionProcesses/RejectIdentityDeletionProcess.d.ts.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/RejectIdentityDeletionProcess.js +44 -0
- package/dist/useCases/transport/identityDeletionProcesses/RejectIdentityDeletionProcess.js.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/index.d.ts +9 -0
- package/dist/useCases/transport/identityDeletionProcesses/index.d.ts.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/index.js +25 -0
- package/dist/useCases/transport/identityDeletionProcesses/index.js.map +1 -0
- package/dist/useCases/transport/index.d.ts +1 -0
- package/dist/useCases/transport/index.d.ts.map +1 -1
- package/dist/useCases/transport/index.js +1 -0
- package/dist/useCases/transport/index.js.map +1 -1
- package/package.json +12 -21
- package/lib-web/nmshd.runtime.js +0 -83267
- package/lib-web/nmshd.runtime.js.map +0 -1
- package/lib-web/nmshd.runtime.min.js +0 -9
- package/lib-web/nmshd.runtime.min.js.map +0 -1
- package/ui5.yaml +0 -9
package/dist/useCases/transport/identityDeletionProcesses/IdentityDeletionProcessMapper.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IdentityDeletionProcessMapper.js","sourceRoot":"","sources":["../../../../src/useCases/transport/identityDeletionProcesses/IdentityDeletionProcessMapper.ts"],"names":[],"mappings":";;;AAAA,gDAA2D;AAE3D,yCAA6C;AAE7C,MAAa,6BAA6B;IAC/B,MAAM,CAAC,4BAA4B,CAAC,uBAAgD;QACvF,IAAI,CAAC,uBAAuB,CAAC,KAAK,EAAE,CAAC;YACjC,MAAM,sBAAa,CAAC,OAAO,CAAC,UAAU,CAAC,mCAAuB,EAAE,uBAAuB,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC3G,CAAC;QAED,OAAO;YACH,EAAE,EAAE,uBAAuB,CAAC,EAAE,CAAC,QAAQ,EAAE;YACzC,SAAS,EAAE,uBAAuB,CAAC,KAAK,CAAC,SAAS,EAAE,QAAQ,EAAE;YAC9D,eAAe,EAAE,uBAAuB,CAAC,KAAK,CAAC,eAAe,EAAE,QAAQ,EAAE;YAC1E,UAAU,EAAE,uBAAuB,CAAC,KAAK,CAAC,UAAU,EAAE,QAAQ,EAAE;YAChE,gBAAgB,EAAE,uBAAuB,CAAC,KAAK,CAAC,gBAAgB,EAAE,QAAQ,EAAE;YAC5E,iBAAiB,EAAE,uBAAuB,CAAC,KAAK,CAAC,iBAAiB,EAAE,QAAQ,EAAE;YAC9E,MAAM,EAAE,uBAAuB,CAAC,KAAK,CAAC,MAAM;YAC5C,WAAW,EAAE,uBAAuB,CAAC,KAAK,CAAC,WAAW,EAAE,QAAQ,EAAE;YAClE,iBAAiB,EAAE,uBAAuB,CAAC,KAAK,CAAC,iBAAiB,EAAE,QAAQ,EAAE;YAC9E,UAAU,EAAE,uBAAuB,CAAC,KAAK,CAAC,UAAU,EAAE,QAAQ,EAAE;YAChE,gBAAgB,EAAE,uBAAuB,CAAC,KAAK,CAAC,gBAAgB,EAAE,QAAQ,EAAE;SAC/E,CAAC;IACN,CAAC;IAEM,MAAM,CAAC,gCAAgC,CAAC,yBAAoD;QAC/F,OAAO,yBAAyB,CAAC,GAAG,CAAC,CAAC,uBAAuB,EAAE,EAAE,CAAC,IAAI,CAAC,4BAA4B,CAAC,uBAAuB,CAAC,CAAC,CAAC;IAClI,CAAC;CACJ;AAxBD,sEAwBC"}
|
package/dist/useCases/transport/identityDeletionProcesses/InitiateIdentityDeletionProcess.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Result } from "@js-soft/ts-utils";
|
|
2
|
+
import { AccountController, IdentityDeletionProcessController } from "@nmshd/transport";
|
|
3
|
+
import { IdentityDeletionProcessDTO } from "../../../types/transport/IdentityDeletionProcessDTO";
|
|
4
|
+
import { UseCase } from "../../common";
|
|
5
|
+
export declare class InitiateIdentityDeletionProcessUseCase extends UseCase<void, IdentityDeletionProcessDTO> {
|
|
6
|
+
private readonly identityDeletionProcessController;
|
|
7
|
+
private readonly accountController;
|
|
8
|
+
constructor(identityDeletionProcessController: IdentityDeletionProcessController, accountController: AccountController);
|
|
9
|
+
protected executeInternal(): Promise<Result<IdentityDeletionProcessDTO>>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=InitiateIdentityDeletionProcess.d.ts.map
|
package/dist/useCases/transport/identityDeletionProcesses/InitiateIdentityDeletionProcess.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InitiateIdentityDeletionProcess.d.ts","sourceRoot":"","sources":["../../../../src/useCases/transport/identityDeletionProcesses/InitiateIdentityDeletionProcess.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,iCAAiC,EAAiC,MAAM,kBAAkB,CAAC;AAEvH,OAAO,EAAE,0BAA0B,EAAE,MAAM,qDAAqD,CAAC;AACjG,OAAO,EAAiB,OAAO,EAAE,MAAM,cAAc,CAAC;AAGtD,qBAAa,sCAAuC,SAAQ,OAAO,CAAC,IAAI,EAAE,0BAA0B,CAAC;IAErF,OAAO,CAAC,QAAQ,CAAC,iCAAiC;IAClD,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBADjB,iCAAiC,EAAE,iCAAiC,EACpE,iBAAiB,EAAE,iBAAiB;cAKjD,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC;CAajF"}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.InitiateIdentityDeletionProcessUseCase = void 0;
|
|
16
|
+
const ts_utils_1 = require("@js-soft/ts-utils");
|
|
17
|
+
const transport_1 = require("@nmshd/transport");
|
|
18
|
+
const typescript_ioc_1 = require("typescript-ioc");
|
|
19
|
+
const common_1 = require("../../common");
|
|
20
|
+
const IdentityDeletionProcessMapper_1 = require("./IdentityDeletionProcessMapper");
|
|
21
|
+
let InitiateIdentityDeletionProcessUseCase = class InitiateIdentityDeletionProcessUseCase extends common_1.UseCase {
|
|
22
|
+
constructor(identityDeletionProcessController, accountController) {
|
|
23
|
+
super();
|
|
24
|
+
this.identityDeletionProcessController = identityDeletionProcessController;
|
|
25
|
+
this.accountController = accountController;
|
|
26
|
+
}
|
|
27
|
+
async executeInternal() {
|
|
28
|
+
const activeIdentityDeletionProcess = await this.identityDeletionProcessController.getIdentityDeletionProcessByStatus(transport_1.IdentityDeletionProcessStatus.Approved, transport_1.IdentityDeletionProcessStatus.WaitingForApproval);
|
|
29
|
+
if (typeof activeIdentityDeletionProcess !== "undefined") {
|
|
30
|
+
return ts_utils_1.Result.fail(common_1.RuntimeErrors.identityDeletionProcess.activeIdentityDeletionProcessAlreadyExists());
|
|
31
|
+
}
|
|
32
|
+
const initiatedIdentityDeletionProcess = await this.identityDeletionProcessController.initiateIdentityDeletionProcess();
|
|
33
|
+
await this.accountController.syncDatawallet();
|
|
34
|
+
return ts_utils_1.Result.ok(IdentityDeletionProcessMapper_1.IdentityDeletionProcessMapper.toIdentityDeletionProcessDTO(initiatedIdentityDeletionProcess));
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
exports.InitiateIdentityDeletionProcessUseCase = InitiateIdentityDeletionProcessUseCase;
|
|
38
|
+
exports.InitiateIdentityDeletionProcessUseCase = InitiateIdentityDeletionProcessUseCase = __decorate([
|
|
39
|
+
__param(0, typescript_ioc_1.Inject),
|
|
40
|
+
__param(1, typescript_ioc_1.Inject),
|
|
41
|
+
__metadata("design:paramtypes", [transport_1.IdentityDeletionProcessController,
|
|
42
|
+
transport_1.AccountController])
|
|
43
|
+
], InitiateIdentityDeletionProcessUseCase);
|
|
44
|
+
//# sourceMappingURL=InitiateIdentityDeletionProcess.js.map
|
package/dist/useCases/transport/identityDeletionProcesses/InitiateIdentityDeletionProcess.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InitiateIdentityDeletionProcess.js","sourceRoot":"","sources":["../../../../src/useCases/transport/identityDeletionProcesses/InitiateIdentityDeletionProcess.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAA2C;AAC3C,gDAAuH;AACvH,mDAAwC;AAExC,yCAAsD;AACtD,mFAAgF;AAEhF,IAAa,sCAAsC,GAAnD,MAAa,sCAAuC,SAAQ,gBAAyC;IACjG,YAC6B,iCAAoE,EACpE,iBAAoC;QAE7D,KAAK,EAAE,CAAC;QAHiB,sCAAiC,GAAjC,iCAAiC,CAAmC;QACpE,sBAAiB,GAAjB,iBAAiB,CAAmB;IAGjE,CAAC;IAES,KAAK,CAAC,eAAe;QAC3B,MAAM,6BAA6B,GAAG,MAAM,IAAI,CAAC,iCAAiC,CAAC,kCAAkC,CACjH,yCAA6B,CAAC,QAAQ,EACtC,yCAA6B,CAAC,kBAAkB,CACnD,CAAC;QACF,IAAI,OAAO,6BAA6B,KAAK,WAAW,EAAE,CAAC;YACvD,OAAO,iBAAM,CAAC,IAAI,CAAC,sBAAa,CAAC,uBAAuB,CAAC,0CAA0C,EAAE,CAAC,CAAC;QAC3G,CAAC;QAED,MAAM,gCAAgC,GAAG,MAAM,IAAI,CAAC,iCAAiC,CAAC,+BAA+B,EAAE,CAAC;QACxH,MAAM,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,CAAC;QAC9C,OAAO,iBAAM,CAAC,EAAE,CAAC,6DAA6B,CAAC,4BAA4B,CAAC,gCAAgC,CAAC,CAAC,CAAC;IACnH,CAAC;CACJ,CAAA;AArBY,wFAAsC;iDAAtC,sCAAsC;IAE1C,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCADqD,6CAAiC;QACjD,6BAAiB;GAHxD,sCAAsC,CAqBlD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Result } from "@js-soft/ts-utils";
|
|
2
|
+
import { AccountController, IdentityDeletionProcessController } from "@nmshd/transport";
|
|
3
|
+
import { IdentityDeletionProcessDTO } from "../../../types/transport/IdentityDeletionProcessDTO";
|
|
4
|
+
import { UseCase } from "../../common";
|
|
5
|
+
export declare class RejectIdentityDeletionProcessUseCase extends UseCase<void, IdentityDeletionProcessDTO> {
|
|
6
|
+
private readonly identityDeletionProcessController;
|
|
7
|
+
private readonly accountController;
|
|
8
|
+
constructor(identityDeletionProcessController: IdentityDeletionProcessController, accountController: AccountController);
|
|
9
|
+
protected executeInternal(): Promise<Result<IdentityDeletionProcessDTO>>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=RejectIdentityDeletionProcess.d.ts.map
|
package/dist/useCases/transport/identityDeletionProcesses/RejectIdentityDeletionProcess.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RejectIdentityDeletionProcess.d.ts","sourceRoot":"","sources":["../../../../src/useCases/transport/identityDeletionProcesses/RejectIdentityDeletionProcess.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,iCAAiC,EAAiC,MAAM,kBAAkB,CAAC;AAEvH,OAAO,EAAE,0BAA0B,EAAE,MAAM,qDAAqD,CAAC;AACjG,OAAO,EAAiB,OAAO,EAAE,MAAM,cAAc,CAAC;AAGtD,qBAAa,oCAAqC,SAAQ,OAAO,CAAC,IAAI,EAAE,0BAA0B,CAAC;IAEnF,OAAO,CAAC,QAAQ,CAAC,iCAAiC;IAClD,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBADjB,iCAAiC,EAAE,iCAAiC,EACpE,iBAAiB,EAAE,iBAAiB;cAKjD,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC;CAWjF"}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.RejectIdentityDeletionProcessUseCase = void 0;
|
|
16
|
+
const ts_utils_1 = require("@js-soft/ts-utils");
|
|
17
|
+
const transport_1 = require("@nmshd/transport");
|
|
18
|
+
const typescript_ioc_1 = require("typescript-ioc");
|
|
19
|
+
const common_1 = require("../../common");
|
|
20
|
+
const IdentityDeletionProcessMapper_1 = require("./IdentityDeletionProcessMapper");
|
|
21
|
+
let RejectIdentityDeletionProcessUseCase = class RejectIdentityDeletionProcessUseCase extends common_1.UseCase {
|
|
22
|
+
constructor(identityDeletionProcessController, accountController) {
|
|
23
|
+
super();
|
|
24
|
+
this.identityDeletionProcessController = identityDeletionProcessController;
|
|
25
|
+
this.accountController = accountController;
|
|
26
|
+
}
|
|
27
|
+
async executeInternal() {
|
|
28
|
+
const identityDeletionProcess = await this.identityDeletionProcessController.getIdentityDeletionProcessByStatus(transport_1.IdentityDeletionProcessStatus.WaitingForApproval);
|
|
29
|
+
if (typeof identityDeletionProcess === "undefined") {
|
|
30
|
+
return ts_utils_1.Result.fail(common_1.RuntimeErrors.identityDeletionProcess.noWaitingForApprovalIdentityDeletionProcess());
|
|
31
|
+
}
|
|
32
|
+
const rejectedIdentityDeletionProcess = await this.identityDeletionProcessController.rejectIdentityDeletionProcess(identityDeletionProcess.id.toString());
|
|
33
|
+
await this.accountController.syncDatawallet();
|
|
34
|
+
return ts_utils_1.Result.ok(IdentityDeletionProcessMapper_1.IdentityDeletionProcessMapper.toIdentityDeletionProcessDTO(rejectedIdentityDeletionProcess));
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
exports.RejectIdentityDeletionProcessUseCase = RejectIdentityDeletionProcessUseCase;
|
|
38
|
+
exports.RejectIdentityDeletionProcessUseCase = RejectIdentityDeletionProcessUseCase = __decorate([
|
|
39
|
+
__param(0, typescript_ioc_1.Inject),
|
|
40
|
+
__param(1, typescript_ioc_1.Inject),
|
|
41
|
+
__metadata("design:paramtypes", [transport_1.IdentityDeletionProcessController,
|
|
42
|
+
transport_1.AccountController])
|
|
43
|
+
], RejectIdentityDeletionProcessUseCase);
|
|
44
|
+
//# sourceMappingURL=RejectIdentityDeletionProcess.js.map
|
package/dist/useCases/transport/identityDeletionProcesses/RejectIdentityDeletionProcess.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RejectIdentityDeletionProcess.js","sourceRoot":"","sources":["../../../../src/useCases/transport/identityDeletionProcesses/RejectIdentityDeletionProcess.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAA2C;AAC3C,gDAAuH;AACvH,mDAAwC;AAExC,yCAAsD;AACtD,mFAAgF;AAEhF,IAAa,oCAAoC,GAAjD,MAAa,oCAAqC,SAAQ,gBAAyC;IAC/F,YAC6B,iCAAoE,EACpE,iBAAoC;QAE7D,KAAK,EAAE,CAAC;QAHiB,sCAAiC,GAAjC,iCAAiC,CAAmC;QACpE,sBAAiB,GAAjB,iBAAiB,CAAmB;IAGjE,CAAC;IAES,KAAK,CAAC,eAAe;QAC3B,MAAM,uBAAuB,GAAG,MAAM,IAAI,CAAC,iCAAiC,CAAC,kCAAkC,CAAC,yCAA6B,CAAC,kBAAkB,CAAC,CAAC;QAElK,IAAI,OAAO,uBAAuB,KAAK,WAAW,EAAE,CAAC;YACjD,OAAO,iBAAM,CAAC,IAAI,CAAC,sBAAa,CAAC,uBAAuB,CAAC,2CAA2C,EAAE,CAAC,CAAC;QAC5G,CAAC;QAED,MAAM,+BAA+B,GAAG,MAAM,IAAI,CAAC,iCAAiC,CAAC,6BAA6B,CAAC,uBAAuB,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC1J,MAAM,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,CAAC;QAC9C,OAAO,iBAAM,CAAC,EAAE,CAAC,6DAA6B,CAAC,4BAA4B,CAAC,+BAA+B,CAAC,CAAC,CAAC;IAClH,CAAC;CACJ,CAAA;AAnBY,oFAAoC;+CAApC,oCAAoC;IAExC,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCADqD,6CAAiC;QACjD,6BAAiB;GAHxD,oCAAoC,CAmBhD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./ApproveIdentityDeletionProcess";
|
|
2
|
+
export * from "./CancelIdentityDeletionProcess";
|
|
3
|
+
export * from "./GetActiveIdentityDeletionProcess";
|
|
4
|
+
export * from "./GetIdentityDeletionProcess";
|
|
5
|
+
export * from "./GetIdentityDeletionProcesses";
|
|
6
|
+
export * from "./IdentityDeletionProcessMapper";
|
|
7
|
+
export * from "./InitiateIdentityDeletionProcess";
|
|
8
|
+
export * from "./RejectIdentityDeletionProcess";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/useCases/transport/identityDeletionProcesses/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,oCAAoC,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ApproveIdentityDeletionProcess"), exports);
|
|
18
|
+
__exportStar(require("./CancelIdentityDeletionProcess"), exports);
|
|
19
|
+
__exportStar(require("./GetActiveIdentityDeletionProcess"), exports);
|
|
20
|
+
__exportStar(require("./GetIdentityDeletionProcess"), exports);
|
|
21
|
+
__exportStar(require("./GetIdentityDeletionProcesses"), exports);
|
|
22
|
+
__exportStar(require("./IdentityDeletionProcessMapper"), exports);
|
|
23
|
+
__exportStar(require("./InitiateIdentityDeletionProcess"), exports);
|
|
24
|
+
__exportStar(require("./RejectIdentityDeletionProcess"), exports);
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/useCases/transport/identityDeletionProcesses/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAiD;AACjD,kEAAgD;AAChD,qEAAmD;AACnD,+DAA6C;AAC7C,iEAA+C;AAC/C,kEAAgD;AAChD,oEAAkD;AAClD,kEAAgD"}
|
|
@@ -3,6 +3,7 @@ export * from "./challenges";
|
|
|
3
3
|
export * from "./devices";
|
|
4
4
|
export * from "./files";
|
|
5
5
|
export * from "./identity";
|
|
6
|
+
export * from "./identityDeletionProcesses";
|
|
6
7
|
export * from "./messages";
|
|
7
8
|
export * from "./relationships";
|
|
8
9
|
export * from "./relationshipTemplates";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/useCases/transport/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/useCases/transport/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC"}
|
|
@@ -19,6 +19,7 @@ __exportStar(require("./challenges"), exports);
|
|
|
19
19
|
__exportStar(require("./devices"), exports);
|
|
20
20
|
__exportStar(require("./files"), exports);
|
|
21
21
|
__exportStar(require("./identity"), exports);
|
|
22
|
+
__exportStar(require("./identityDeletionProcesses"), exports);
|
|
22
23
|
__exportStar(require("./messages"), exports);
|
|
23
24
|
__exportStar(require("./relationships"), exports);
|
|
24
25
|
__exportStar(require("./relationshipTemplates"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/useCases/transport/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,+CAA6B;AAC7B,4CAA0B;AAC1B,0CAAwB;AACxB,6CAA2B;AAC3B,6CAA2B;AAC3B,kDAAgC;AAChC,0DAAwC;AACxC,2CAAyB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/useCases/transport/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,+CAA6B;AAC7B,4CAA0B;AAC1B,0CAAwB;AACxB,6CAA2B;AAC3B,8DAA4C;AAC5C,6CAA2B;AAC3B,kDAAgC;AAChC,0DAAwC;AACxC,2CAAyB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nmshd/runtime",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.0",
|
|
4
4
|
"description": "The enmeshed client runtime.",
|
|
5
5
|
"homepage": "https://enmeshed.eu",
|
|
6
6
|
"repository": {
|
|
@@ -13,23 +13,14 @@
|
|
|
13
13
|
"main": "dist/index.js",
|
|
14
14
|
"types": "dist/index.d.ts",
|
|
15
15
|
"files": [
|
|
16
|
-
"dist"
|
|
17
|
-
"lib-web/nmshd.runtime.js",
|
|
18
|
-
"lib-web/nmshd.runtime.js.map",
|
|
19
|
-
"lib-web/nmshd.runtime.min.js",
|
|
20
|
-
"lib-web/nmshd.runtime.min.js.map",
|
|
21
|
-
"ui5.yaml"
|
|
16
|
+
"dist"
|
|
22
17
|
],
|
|
23
18
|
"scripts": {
|
|
24
|
-
"build": "npm run build:node
|
|
25
|
-
"build:ci": "npm run build:node && ../../.ci/writeBuildInformation.sh
|
|
19
|
+
"build": "npm run build:node",
|
|
20
|
+
"build:ci": "npm run build:node && ../../.ci/writeBuildInformation.sh",
|
|
26
21
|
"build:node": "npm run build:schemas && tsc -p tsconfig.json",
|
|
27
|
-
"build:notest": "npm run build:node
|
|
28
|
-
"build:schemas": "node scripts/buildSchemas.
|
|
29
|
-
"bundle": "npm run bundle:lib && npm run bundle:min",
|
|
30
|
-
"bundle:lib": "webpack --stats-all --config webpack.config.js",
|
|
31
|
-
"bundle:min": "webpack --stats-all --config webpack.min.config.js",
|
|
32
|
-
"bundle:notest": "npm run bundle:lib && npm run bundle:min",
|
|
22
|
+
"build:notest": "npm run build:node",
|
|
23
|
+
"build:schemas": "node scripts/buildSchemas.mjs",
|
|
33
24
|
"cdep": "tsc && madge --circular dist",
|
|
34
25
|
"lint:tsc": "tsc --noEmit && tsc -p test/tsconfig.json --noEmit",
|
|
35
26
|
"test:ci:lokijs": "USE_LOKIJS=true jest -i",
|
|
@@ -65,11 +56,11 @@
|
|
|
65
56
|
"@js-soft/logging-abstractions": "^1.0.1",
|
|
66
57
|
"@js-soft/ts-serval": "2.0.10",
|
|
67
58
|
"@js-soft/ts-utils": "^2.3.3",
|
|
68
|
-
"@nmshd/consumption": "3.
|
|
69
|
-
"@nmshd/content": "2.
|
|
59
|
+
"@nmshd/consumption": "3.10.0",
|
|
60
|
+
"@nmshd/content": "2.9.0",
|
|
70
61
|
"@nmshd/crypto": "2.0.6",
|
|
71
|
-
"@nmshd/transport": "2.
|
|
72
|
-
"ajv": "^8.
|
|
62
|
+
"@nmshd/transport": "2.6.0",
|
|
63
|
+
"ajv": "^8.13.0",
|
|
73
64
|
"ajv-errors": "^3.0.0",
|
|
74
65
|
"ajv-formats": "^3.0.1",
|
|
75
66
|
"json-stringify-safe": "^5.0.1",
|
|
@@ -85,10 +76,10 @@
|
|
|
85
76
|
"@js-soft/docdb-access-mongo": "1.1.8",
|
|
86
77
|
"@js-soft/node-logger": "1.1.1",
|
|
87
78
|
"@types/json-stringify-safe": "^5.0.3",
|
|
88
|
-
"@types/lodash": "^4.17.
|
|
79
|
+
"@types/lodash": "^4.17.1",
|
|
89
80
|
"@types/luxon": "^3.4.2",
|
|
90
81
|
"@types/qrcode": "^1.5.5",
|
|
91
|
-
"ts-json-schema-generator": "^2.
|
|
82
|
+
"ts-json-schema-generator": "^2.1.1"
|
|
92
83
|
},
|
|
93
84
|
"publishConfig": {
|
|
94
85
|
"access": "public",
|