@nmshd/runtime 7.0.0-alpha.62 → 7.0.0-alpha.64

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.
Files changed (55) hide show
  1. package/dist/buildInformation.js +4 -4
  2. package/dist/extensibility/facades/transport/DevicesFacade.d.ts +3 -18
  3. package/dist/extensibility/facades/transport/DevicesFacade.d.ts.map +1 -1
  4. package/dist/extensibility/facades/transport/DevicesFacade.js +1 -28
  5. package/dist/extensibility/facades/transport/DevicesFacade.js.map +1 -1
  6. package/dist/extensibility/facades/transport/IdentityDeletionProcessesFacade.d.ts +2 -6
  7. package/dist/extensibility/facades/transport/IdentityDeletionProcessesFacade.d.ts.map +1 -1
  8. package/dist/extensibility/facades/transport/IdentityDeletionProcessesFacade.js +2 -14
  9. package/dist/extensibility/facades/transport/IdentityDeletionProcessesFacade.js.map +1 -1
  10. package/dist/useCases/common/RuntimeErrors.d.ts +0 -1
  11. package/dist/useCases/common/RuntimeErrors.d.ts.map +1 -1
  12. package/dist/useCases/common/RuntimeErrors.js +0 -3
  13. package/dist/useCases/common/RuntimeErrors.js.map +1 -1
  14. package/dist/useCases/common/Schemas.d.ts +0 -3
  15. package/dist/useCases/common/Schemas.d.ts.map +1 -1
  16. package/dist/useCases/common/Schemas.js +3 -100
  17. package/dist/useCases/common/Schemas.js.map +1 -1
  18. package/dist/useCases/transport/devices/index.d.ts +0 -3
  19. package/dist/useCases/transport/devices/index.d.ts.map +1 -1
  20. package/dist/useCases/transport/devices/index.js +0 -3
  21. package/dist/useCases/transport/devices/index.js.map +1 -1
  22. package/dist/useCases/transport/identityDeletionProcesses/GetActiveIdentityDeletionProcess.d.ts.map +1 -1
  23. package/dist/useCases/transport/identityDeletionProcesses/GetActiveIdentityDeletionProcess.js +1 -1
  24. package/dist/useCases/transport/identityDeletionProcesses/GetActiveIdentityDeletionProcess.js.map +1 -1
  25. package/dist/useCases/transport/identityDeletionProcesses/IdentityDeletionProcessMapper.d.ts.map +1 -1
  26. package/dist/useCases/transport/identityDeletionProcesses/IdentityDeletionProcessMapper.js +0 -3
  27. package/dist/useCases/transport/identityDeletionProcesses/IdentityDeletionProcessMapper.js.map +1 -1
  28. package/dist/useCases/transport/identityDeletionProcesses/InitiateIdentityDeletionProcess.d.ts.map +1 -1
  29. package/dist/useCases/transport/identityDeletionProcesses/InitiateIdentityDeletionProcess.js +1 -1
  30. package/dist/useCases/transport/identityDeletionProcesses/InitiateIdentityDeletionProcess.js.map +1 -1
  31. package/dist/useCases/transport/identityDeletionProcesses/index.d.ts +0 -2
  32. package/dist/useCases/transport/identityDeletionProcesses/index.d.ts.map +1 -1
  33. package/dist/useCases/transport/identityDeletionProcesses/index.js +0 -2
  34. package/dist/useCases/transport/identityDeletionProcesses/index.js.map +1 -1
  35. package/package.json +6 -6
  36. package/dist/useCases/transport/devices/CreateDevice.d.ts +0 -20
  37. package/dist/useCases/transport/devices/CreateDevice.d.ts.map +0 -1
  38. package/dist/useCases/transport/devices/CreateDevice.js +0 -51
  39. package/dist/useCases/transport/devices/CreateDevice.js.map +0 -1
  40. package/dist/useCases/transport/devices/CreateDeviceOnboardingToken.d.ts +0 -34
  41. package/dist/useCases/transport/devices/CreateDeviceOnboardingToken.d.ts.map +0 -1
  42. package/dist/useCases/transport/devices/CreateDeviceOnboardingToken.js +0 -59
  43. package/dist/useCases/transport/devices/CreateDeviceOnboardingToken.js.map +0 -1
  44. package/dist/useCases/transport/devices/GetDeviceOnboardingInfo.d.ts +0 -18
  45. package/dist/useCases/transport/devices/GetDeviceOnboardingInfo.d.ts.map +0 -1
  46. package/dist/useCases/transport/devices/GetDeviceOnboardingInfo.js +0 -48
  47. package/dist/useCases/transport/devices/GetDeviceOnboardingInfo.js.map +0 -1
  48. package/dist/useCases/transport/identityDeletionProcesses/ApproveIdentityDeletionProcess.d.ts +0 -11
  49. package/dist/useCases/transport/identityDeletionProcesses/ApproveIdentityDeletionProcess.d.ts.map +0 -1
  50. package/dist/useCases/transport/identityDeletionProcesses/ApproveIdentityDeletionProcess.js +0 -43
  51. package/dist/useCases/transport/identityDeletionProcesses/ApproveIdentityDeletionProcess.js.map +0 -1
  52. package/dist/useCases/transport/identityDeletionProcesses/RejectIdentityDeletionProcess.d.ts +0 -11
  53. package/dist/useCases/transport/identityDeletionProcesses/RejectIdentityDeletionProcess.d.ts.map +0 -1
  54. package/dist/useCases/transport/identityDeletionProcesses/RejectIdentityDeletionProcess.js +0 -43
  55. package/dist/useCases/transport/identityDeletionProcesses/RejectIdentityDeletionProcess.js.map +0 -1
@@ -1,10 +1,7 @@
1
- export * from "./CreateDevice";
2
- export * from "./CreateDeviceOnboardingToken";
3
1
  export * from "./DeleteDevice";
4
2
  export * from "./DeviceMapper";
5
3
  export * from "./FillDeviceOnboardingTokenWithNewDevice";
6
4
  export * from "./GetDevice";
7
- export * from "./GetDeviceOnboardingInfo";
8
5
  export * from "./GetDevices";
9
6
  export * from "./SetCommunicationLanguage";
10
7
  export * from "./UpdateCurrentDevice";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/useCases/transport/devices/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0CAA0C,CAAC;AACzD,cAAc,aAAa,CAAC;AAC5B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,cAAc,CAAC;AAC7B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/useCases/transport/devices/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0CAA0C,CAAC;AACzD,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC"}
@@ -14,13 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./CreateDevice"), exports);
18
- __exportStar(require("./CreateDeviceOnboardingToken"), exports);
19
17
  __exportStar(require("./DeleteDevice"), exports);
20
18
  __exportStar(require("./DeviceMapper"), exports);
21
19
  __exportStar(require("./FillDeviceOnboardingTokenWithNewDevice"), exports);
22
20
  __exportStar(require("./GetDevice"), exports);
23
- __exportStar(require("./GetDeviceOnboardingInfo"), exports);
24
21
  __exportStar(require("./GetDevices"), exports);
25
22
  __exportStar(require("./SetCommunicationLanguage"), exports);
26
23
  __exportStar(require("./UpdateCurrentDevice"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/useCases/transport/devices/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,gEAA8C;AAC9C,iDAA+B;AAC/B,iDAA+B;AAC/B,2EAAyD;AACzD,8CAA4B;AAC5B,4DAA0C;AAC1C,+CAA6B;AAC7B,6DAA2C;AAC3C,wDAAsC;AACtC,iDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/useCases/transport/devices/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,iDAA+B;AAC/B,2EAAyD;AACzD,8CAA4B;AAC5B,+CAA6B;AAC7B,6DAA2C;AAC3C,wDAAsC;AACtC,iDAA+B"}
@@ -1 +1 @@
1
- {"version":3,"file":"GetActiveIdentityDeletionProcess.d.ts","sourceRoot":"","sources":["../../../../src/useCases/transport/identityDeletionProcesses/GetActiveIdentityDeletionProcess.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,iCAAiC,EAAiC,MAAM,kBAAkB,CAAC;AAEpG,OAAO,EAAiB,OAAO,EAAE,MAAM,cAAc,CAAC;AAGtD,qBAAa,uCAAwC,SAAQ,OAAO,CAAC,IAAI,EAAE,0BAA0B,CAAC;IACvE,OAAO,CAAC,QAAQ,CAAC,iCAAiC;gBAAjC,iCAAiC,EAAE,iCAAiC;cAIhG,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC;CASjF"}
1
+ {"version":3,"file":"GetActiveIdentityDeletionProcess.d.ts","sourceRoot":"","sources":["../../../../src/useCases/transport/identityDeletionProcesses/GetActiveIdentityDeletionProcess.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,iCAAiC,EAAiC,MAAM,kBAAkB,CAAC;AAEpG,OAAO,EAAiB,OAAO,EAAE,MAAM,cAAc,CAAC;AAGtD,qBAAa,uCAAwC,SAAQ,OAAO,CAAC,IAAI,EAAE,0BAA0B,CAAC;IACvE,OAAO,CAAC,QAAQ,CAAC,iCAAiC;gBAAjC,iCAAiC,EAAE,iCAAiC;cAIhG,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC;CAMjF"}
@@ -24,7 +24,7 @@ let GetActiveIdentityDeletionProcessUseCase = class GetActiveIdentityDeletionPro
24
24
  this.identityDeletionProcessController = identityDeletionProcessController;
25
25
  }
26
26
  async executeInternal() {
27
- const identityDeletionProcess = await this.identityDeletionProcessController.getIdentityDeletionProcessByStatus(transport_1.IdentityDeletionProcessStatus.Approved, transport_1.IdentityDeletionProcessStatus.WaitingForApproval);
27
+ const identityDeletionProcess = await this.identityDeletionProcessController.getIdentityDeletionProcessByStatus(transport_1.IdentityDeletionProcessStatus.Approved);
28
28
  if (!identityDeletionProcess)
29
29
  return ts_utils_1.Result.fail(common_1.RuntimeErrors.identityDeletionProcess.noActiveIdentityDeletionProcess());
30
30
  return ts_utils_1.Result.ok(IdentityDeletionProcessMapper_1.IdentityDeletionProcessMapper.toIdentityDeletionProcessDTO(identityDeletionProcess));
@@ -1 +1 @@
1
- {"version":3,"file":"GetActiveIdentityDeletionProcess.js","sourceRoot":"","sources":["../../../../src/useCases/transport/identityDeletionProcesses/GetActiveIdentityDeletionProcess.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAA2C;AAE3C,gDAAoG;AACpG,0DAA+C;AAC/C,yCAAsD;AACtD,mFAAgF;AAEhF,IAAa,uCAAuC,GAApD,MAAa,uCAAwC,SAAQ,gBAAyC;IAClG,YAA4C,iCAAoE;QAC5G,KAAK,EAAE,CAAC;QADgC,sCAAiC,GAAjC,iCAAiC,CAAmC;IAEhH,CAAC;IAES,KAAK,CAAC,eAAe;QAC3B,MAAM,uBAAuB,GAAG,MAAM,IAAI,CAAC,iCAAiC,CAAC,kCAAkC,CAC3G,yCAA6B,CAAC,QAAQ,EACtC,yCAA6B,CAAC,kBAAkB,CACnD,CAAC;QACF,IAAI,CAAC,uBAAuB;YAAE,OAAO,iBAAM,CAAC,IAAI,CAAC,sBAAa,CAAC,uBAAuB,CAAC,+BAA+B,EAAE,CAAC,CAAC;QAE1H,OAAO,iBAAM,CAAC,EAAE,CAAC,6DAA6B,CAAC,4BAA4B,CAAC,uBAAuB,CAAC,CAAC,CAAC;IAC1G,CAAC;CACJ,CAAA;AAdY,0FAAuC;kDAAvC,uCAAuC;IAC5B,WAAA,uBAAM,CAAA;qCAAqD,6CAAiC;GADvG,uCAAuC,CAcnD"}
1
+ {"version":3,"file":"GetActiveIdentityDeletionProcess.js","sourceRoot":"","sources":["../../../../src/useCases/transport/identityDeletionProcesses/GetActiveIdentityDeletionProcess.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAA2C;AAE3C,gDAAoG;AACpG,0DAA+C;AAC/C,yCAAsD;AACtD,mFAAgF;AAEhF,IAAa,uCAAuC,GAApD,MAAa,uCAAwC,SAAQ,gBAAyC;IAClG,YAA4C,iCAAoE;QAC5G,KAAK,EAAE,CAAC;QADgC,sCAAiC,GAAjC,iCAAiC,CAAmC;IAEhH,CAAC;IAES,KAAK,CAAC,eAAe;QAC3B,MAAM,uBAAuB,GAAG,MAAM,IAAI,CAAC,iCAAiC,CAAC,kCAAkC,CAAC,yCAA6B,CAAC,QAAQ,CAAC,CAAC;QACxJ,IAAI,CAAC,uBAAuB;YAAE,OAAO,iBAAM,CAAC,IAAI,CAAC,sBAAa,CAAC,uBAAuB,CAAC,+BAA+B,EAAE,CAAC,CAAC;QAE1H,OAAO,iBAAM,CAAC,EAAE,CAAC,6DAA6B,CAAC,4BAA4B,CAAC,uBAAuB,CAAC,CAAC,CAAC;IAC1G,CAAC;CACJ,CAAA;AAXY,0FAAuC;kDAAvC,uCAAuC;IAC5B,WAAA,uBAAM,CAAA;qCAAqD,6CAAiC;GADvG,uCAAuC,CAWnD"}
@@ -1 +1 @@
1
- {"version":3,"file":"IdentityDeletionProcessMapper.d.ts","sourceRoot":"","sources":["../../../../src/useCases/transport/identityDeletionProcesses/IdentityDeletionProcessMapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,qBAAa,6BAA6B;WACxB,4BAA4B,CAAC,uBAAuB,EAAE,uBAAuB,GAAG,0BAA0B;WAiB1G,gCAAgC,CAAC,yBAAyB,EAAE,uBAAuB,EAAE,GAAG,0BAA0B,EAAE;CAGrI"}
1
+ {"version":3,"file":"IdentityDeletionProcessMapper.d.ts","sourceRoot":"","sources":["../../../../src/useCases/transport/identityDeletionProcesses/IdentityDeletionProcessMapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,qBAAa,6BAA6B;WACxB,4BAA4B,CAAC,uBAAuB,EAAE,uBAAuB,GAAG,0BAA0B;WAc1G,gCAAgC,CAAC,yBAAyB,EAAE,uBAAuB,EAAE,GAAG,0BAA0B,EAAE;CAGrI"}
@@ -7,9 +7,6 @@ class IdentityDeletionProcessMapper {
7
7
  id: identityDeletionProcess.id.toString(),
8
8
  createdAt: identityDeletionProcess.createdAt?.toString(),
9
9
  createdByDevice: identityDeletionProcess.createdByDevice?.toString(),
10
- approvalPeriodEndsAt: identityDeletionProcess.approvalPeriodEndsAt?.toString(),
11
- rejectedAt: identityDeletionProcess.rejectedAt?.toString(),
12
- rejectedByDevice: identityDeletionProcess.rejectedByDevice?.toString(),
13
10
  approvedAt: identityDeletionProcess.approvedAt?.toString(),
14
11
  approvedByDevice: identityDeletionProcess.approvedByDevice?.toString(),
15
12
  gracePeriodEndsAt: identityDeletionProcess.gracePeriodEndsAt?.toString(),
@@ -1 +1 @@
1
- {"version":3,"file":"IdentityDeletionProcessMapper.js","sourceRoot":"","sources":["../../../../src/useCases/transport/identityDeletionProcesses/IdentityDeletionProcessMapper.ts"],"names":[],"mappings":";;;AAGA,MAAa,6BAA6B;IAC/B,MAAM,CAAC,4BAA4B,CAAC,uBAAgD;QACvF,OAAO;YACH,EAAE,EAAE,uBAAuB,CAAC,EAAE,CAAC,QAAQ,EAAE;YACzC,SAAS,EAAE,uBAAuB,CAAC,SAAS,EAAE,QAAQ,EAAE;YACxD,eAAe,EAAE,uBAAuB,CAAC,eAAe,EAAE,QAAQ,EAAE;YACpE,oBAAoB,EAAE,uBAAuB,CAAC,oBAAoB,EAAE,QAAQ,EAAE;YAC9E,UAAU,EAAE,uBAAuB,CAAC,UAAU,EAAE,QAAQ,EAAE;YAC1D,gBAAgB,EAAE,uBAAuB,CAAC,gBAAgB,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,uBAAuB,CAAC,UAAU,EAAE,QAAQ,EAAE;YAC1D,gBAAgB,EAAE,uBAAuB,CAAC,gBAAgB,EAAE,QAAQ,EAAE;YACtE,iBAAiB,EAAE,uBAAuB,CAAC,iBAAiB,EAAE,QAAQ,EAAE;YACxE,MAAM,EAAE,uBAAuB,CAAC,MAAM;YACtC,WAAW,EAAE,uBAAuB,CAAC,WAAW,EAAE,QAAQ,EAAE;YAC5D,iBAAiB,EAAE,uBAAuB,CAAC,iBAAiB,EAAE,QAAQ,EAAE;SAC3E,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;AArBD,sEAqBC"}
1
+ {"version":3,"file":"IdentityDeletionProcessMapper.js","sourceRoot":"","sources":["../../../../src/useCases/transport/identityDeletionProcesses/IdentityDeletionProcessMapper.ts"],"names":[],"mappings":";;;AAGA,MAAa,6BAA6B;IAC/B,MAAM,CAAC,4BAA4B,CAAC,uBAAgD;QACvF,OAAO;YACH,EAAE,EAAE,uBAAuB,CAAC,EAAE,CAAC,QAAQ,EAAE;YACzC,SAAS,EAAE,uBAAuB,CAAC,SAAS,EAAE,QAAQ,EAAE;YACxD,eAAe,EAAE,uBAAuB,CAAC,eAAe,EAAE,QAAQ,EAAE;YACpE,UAAU,EAAE,uBAAuB,CAAC,UAAU,EAAE,QAAQ,EAAE;YAC1D,gBAAgB,EAAE,uBAAuB,CAAC,gBAAgB,EAAE,QAAQ,EAAE;YACtE,iBAAiB,EAAE,uBAAuB,CAAC,iBAAiB,EAAE,QAAQ,EAAE;YACxE,MAAM,EAAE,uBAAuB,CAAC,MAAM;YACtC,WAAW,EAAE,uBAAuB,CAAC,WAAW,EAAE,QAAQ,EAAE;YAC5D,iBAAiB,EAAE,uBAAuB,CAAC,iBAAiB,EAAE,QAAQ,EAAE;SAC3E,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;AAlBD,sEAkBC"}
@@ -1 +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,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,iCAAiC,EAAiC,MAAM,kBAAkB,CAAC;AAEvH,OAAO,EAAiB,gBAAgB,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGzF,MAAM,WAAW,sCAAsC;IACnD,yBAAyB,CAAC,EAAE,MAAM,CAAC;CACtC;AAED,cAAM,SAAU,SAAQ,eAAe,CAAC,sCAAsC,CAAC;gBAChD,gBAAgB,EAAE,gBAAgB;CAGhE;AAED,qBAAa,sCAAuC,SAAQ,OAAO,CAAC,sCAAsC,EAAE,0BAA0B,CAAC;IAEvH,OAAO,CAAC,QAAQ,CAAC,iCAAiC;IAClD,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBADjB,iCAAiC,EAAE,iCAAiC,EACpE,iBAAiB,EAAE,iBAAiB,EACrD,SAAS,EAAE,SAAS;cAKhB,eAAe,CAAC,OAAO,EAAE,sCAAsC,GAAG,OAAO,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC;CAWhI"}
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,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,iCAAiC,EAAiC,MAAM,kBAAkB,CAAC;AAEvH,OAAO,EAAiB,gBAAgB,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGzF,MAAM,WAAW,sCAAsC;IACnD,yBAAyB,CAAC,EAAE,MAAM,CAAC;CACtC;AAED,cAAM,SAAU,SAAQ,eAAe,CAAC,sCAAsC,CAAC;gBAChD,gBAAgB,EAAE,gBAAgB;CAGhE;AAED,qBAAa,sCAAuC,SAAQ,OAAO,CAAC,sCAAsC,EAAE,0BAA0B,CAAC;IAEvH,OAAO,CAAC,QAAQ,CAAC,iCAAiC;IAClD,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBADjB,iCAAiC,EAAE,iCAAiC,EACpE,iBAAiB,EAAE,iBAAiB,EACrD,SAAS,EAAE,SAAS;cAKhB,eAAe,CAAC,OAAO,EAAE,sCAAsC,GAAG,OAAO,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC;CAQhI"}
@@ -34,7 +34,7 @@ let InitiateIdentityDeletionProcessUseCase = class InitiateIdentityDeletionProce
34
34
  this.accountController = accountController;
35
35
  }
36
36
  async executeInternal(request) {
37
- const identityDeletionProcess = await this.identityDeletionProcessController.getIdentityDeletionProcessByStatus(transport_1.IdentityDeletionProcessStatus.Approved, transport_1.IdentityDeletionProcessStatus.WaitingForApproval);
37
+ const identityDeletionProcess = await this.identityDeletionProcessController.getIdentityDeletionProcessByStatus(transport_1.IdentityDeletionProcessStatus.Approved);
38
38
  if (identityDeletionProcess)
39
39
  return ts_utils_1.Result.fail(common_1.RuntimeErrors.identityDeletionProcess.activeIdentityDeletionProcessAlreadyExists());
40
40
  const initiatedIdentityDeletionProcess = await this.identityDeletionProcessController.initiateIdentityDeletionProcess(request.lengthOfGracePeriodInDays);
@@ -1 +1 @@
1
- {"version":3,"file":"InitiateIdentityDeletionProcess.js","sourceRoot":"","sources":["../../../../src/useCases/transport/identityDeletionProcesses/InitiateIdentityDeletionProcess.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAA2C;AAE3C,gDAAuH;AACvH,0DAA+C;AAC/C,yCAAyF;AACzF,mFAAgF;AAMhF,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,wBAAuD;IAC3E,YAA2B,gBAAkC;QACzD,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,wCAAwC,CAAC,CAAC,CAAC;IAChF,CAAC;CACJ,CAAA;AAJK,SAAS;IACS,WAAA,uBAAM,CAAA;qCAAmB,yBAAgB;GAD3D,SAAS,CAId;AAED,IAAa,sCAAsC,GAAnD,MAAa,sCAAuC,SAAQ,gBAA2E;IACnI,YAC6B,iCAAoE,EACpE,iBAAoC,EACrD,SAAoB;QAE5B,KAAK,CAAC,SAAS,CAAC,CAAC;QAJQ,sCAAiC,GAAjC,iCAAiC,CAAmC;QACpE,sBAAiB,GAAjB,iBAAiB,CAAmB;IAIjE,CAAC;IAES,KAAK,CAAC,eAAe,CAAC,OAA+C;QAC3E,MAAM,uBAAuB,GAAG,MAAM,IAAI,CAAC,iCAAiC,CAAC,kCAAkC,CAC3G,yCAA6B,CAAC,QAAQ,EACtC,yCAA6B,CAAC,kBAAkB,CACnD,CAAC;QACF,IAAI,uBAAuB;YAAE,OAAO,iBAAM,CAAC,IAAI,CAAC,sBAAa,CAAC,uBAAuB,CAAC,0CAA0C,EAAE,CAAC,CAAC;QAEpI,MAAM,gCAAgC,GAAG,MAAM,IAAI,CAAC,iCAAiC,CAAC,+BAA+B,CAAC,OAAO,CAAC,yBAAyB,CAAC,CAAC;QACzJ,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;AApBY,wFAAsC;iDAAtC,sCAAsC;IAE1C,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCAFqD,6CAAiC;QACjD,6BAAiB;QAC1C,SAAS;GAJvB,sCAAsC,CAoBlD"}
1
+ {"version":3,"file":"InitiateIdentityDeletionProcess.js","sourceRoot":"","sources":["../../../../src/useCases/transport/identityDeletionProcesses/InitiateIdentityDeletionProcess.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAA2C;AAE3C,gDAAuH;AACvH,0DAA+C;AAC/C,yCAAyF;AACzF,mFAAgF;AAMhF,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,wBAAuD;IAC3E,YAA2B,gBAAkC;QACzD,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,wCAAwC,CAAC,CAAC,CAAC;IAChF,CAAC;CACJ,CAAA;AAJK,SAAS;IACS,WAAA,uBAAM,CAAA;qCAAmB,yBAAgB;GAD3D,SAAS,CAId;AAED,IAAa,sCAAsC,GAAnD,MAAa,sCAAuC,SAAQ,gBAA2E;IACnI,YAC6B,iCAAoE,EACpE,iBAAoC,EACrD,SAAoB;QAE5B,KAAK,CAAC,SAAS,CAAC,CAAC;QAJQ,sCAAiC,GAAjC,iCAAiC,CAAmC;QACpE,sBAAiB,GAAjB,iBAAiB,CAAmB;IAIjE,CAAC;IAES,KAAK,CAAC,eAAe,CAAC,OAA+C;QAC3E,MAAM,uBAAuB,GAAG,MAAM,IAAI,CAAC,iCAAiC,CAAC,kCAAkC,CAAC,yCAA6B,CAAC,QAAQ,CAAC,CAAC;QACxJ,IAAI,uBAAuB;YAAE,OAAO,iBAAM,CAAC,IAAI,CAAC,sBAAa,CAAC,uBAAuB,CAAC,0CAA0C,EAAE,CAAC,CAAC;QAEpI,MAAM,gCAAgC,GAAG,MAAM,IAAI,CAAC,iCAAiC,CAAC,+BAA+B,CAAC,OAAO,CAAC,yBAAyB,CAAC,CAAC;QACzJ,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;AAjBY,wFAAsC;iDAAtC,sCAAsC;IAE1C,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCAFqD,6CAAiC;QACjD,6BAAiB;QAC1C,SAAS;GAJvB,sCAAsC,CAiBlD"}
@@ -1,9 +1,7 @@
1
- export * from "./ApproveIdentityDeletionProcess";
2
1
  export * from "./CancelIdentityDeletionProcess";
3
2
  export * from "./GetActiveIdentityDeletionProcess";
4
3
  export * from "./GetIdentityDeletionProcess";
5
4
  export * from "./GetIdentityDeletionProcesses";
6
5
  export * from "./IdentityDeletionProcessMapper";
7
6
  export * from "./InitiateIdentityDeletionProcess";
8
- export * from "./RejectIdentityDeletionProcess";
9
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/useCases/transport/identityDeletionProcesses/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,oCAAoC,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC"}
@@ -14,12 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./ApproveIdentityDeletionProcess"), exports);
18
17
  __exportStar(require("./CancelIdentityDeletionProcess"), exports);
19
18
  __exportStar(require("./GetActiveIdentityDeletionProcess"), exports);
20
19
  __exportStar(require("./GetIdentityDeletionProcess"), exports);
21
20
  __exportStar(require("./GetIdentityDeletionProcesses"), exports);
22
21
  __exportStar(require("./IdentityDeletionProcessMapper"), exports);
23
22
  __exportStar(require("./InitiateIdentityDeletionProcess"), exports);
24
- __exportStar(require("./RejectIdentityDeletionProcess"), exports);
25
23
  //# sourceMappingURL=index.js.map
@@ -1 +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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/useCases/transport/identityDeletionProcesses/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD;AAChD,qEAAmD;AACnD,+DAA6C;AAC7C,iEAA+C;AAC/C,kEAAgD;AAChD,oEAAkD"}
package/package.json CHANGED
@@ -64,13 +64,13 @@
64
64
  "@js-soft/logging-abstractions": "^1.0.1",
65
65
  "@js-soft/ts-serval": "2.0.13",
66
66
  "@js-soft/ts-utils": "^2.3.4",
67
- "@nmshd/consumption": "7.0.0-alpha.62",
68
- "@nmshd/content": "7.0.0-alpha.62",
69
- "@nmshd/core-types": "7.0.0-alpha.62",
67
+ "@nmshd/consumption": "7.0.0-alpha.64",
68
+ "@nmshd/content": "7.0.0-alpha.64",
69
+ "@nmshd/core-types": "7.0.0-alpha.64",
70
70
  "@nmshd/crypto": "2.1.2",
71
71
  "@nmshd/iql": "^1.0.3",
72
- "@nmshd/runtime-types": "7.0.0-alpha.62",
73
- "@nmshd/transport": "7.0.0-alpha.62",
72
+ "@nmshd/runtime-types": "7.0.0-alpha.64",
73
+ "@nmshd/transport": "7.0.0-alpha.64",
74
74
  "@nmshd/typescript-ioc": "3.2.4",
75
75
  "ajv": "^8.17.1",
76
76
  "ajv-errors": "^3.0.0",
@@ -95,5 +95,5 @@
95
95
  "access": "public",
96
96
  "provenance": true
97
97
  },
98
- "version": "7.0.0-alpha.62"
98
+ "version": "7.0.0-alpha.64"
99
99
  }
@@ -1,20 +0,0 @@
1
- import { Result } from "@js-soft/ts-utils";
2
- import { DeviceDTO } from "@nmshd/runtime-types";
3
- import { AccountController, DevicesController } from "@nmshd/transport";
4
- import { SchemaRepository, SchemaValidator, UseCase } from "../../common";
5
- export interface CreateDeviceRequest {
6
- name?: string;
7
- description?: string;
8
- isAdmin?: boolean;
9
- }
10
- declare class Validator extends SchemaValidator<CreateDeviceRequest> {
11
- constructor(schemaRepository: SchemaRepository);
12
- }
13
- export declare class CreateDeviceUseCase extends UseCase<CreateDeviceRequest, DeviceDTO> {
14
- private readonly devicesController;
15
- private readonly accountController;
16
- constructor(devicesController: DevicesController, accountController: AccountController, validator: Validator);
17
- protected executeInternal(request: CreateDeviceRequest): Promise<Result<DeviceDTO>>;
18
- }
19
- export {};
20
- //# sourceMappingURL=CreateDevice.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateDevice.d.ts","sourceRoot":"","sources":["../../../../src/useCases/transport/devices/CreateDevice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAG1E,MAAM,WAAW,mBAAmB;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,cAAM,SAAU,SAAQ,eAAe,CAAC,mBAAmB,CAAC;gBAC7B,gBAAgB,EAAE,gBAAgB;CAGhE;AAED,qBAAa,mBAAoB,SAAQ,OAAO,CAAC,mBAAmB,EAAE,SAAS,CAAC;IAEhE,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBADjB,iBAAiB,EAAE,iBAAiB,EACpC,iBAAiB,EAAE,iBAAiB,EACrD,SAAS,EAAE,SAAS;cAKhB,eAAe,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;CAM5F"}
@@ -1,51 +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.CreateDeviceUseCase = 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("@nmshd/typescript-ioc");
19
- const common_1 = require("../../common");
20
- const DeviceMapper_1 = require("./DeviceMapper");
21
- let Validator = class Validator extends common_1.SchemaValidator {
22
- constructor(schemaRepository) {
23
- super(schemaRepository.getSchema("CreateDeviceRequest"));
24
- }
25
- };
26
- Validator = __decorate([
27
- __param(0, typescript_ioc_1.Inject),
28
- __metadata("design:paramtypes", [common_1.SchemaRepository])
29
- ], Validator);
30
- let CreateDeviceUseCase = class CreateDeviceUseCase extends common_1.UseCase {
31
- constructor(devicesController, accountController, validator) {
32
- super(validator);
33
- this.devicesController = devicesController;
34
- this.accountController = accountController;
35
- }
36
- async executeInternal(request) {
37
- const device = await this.devicesController.sendDevice(request);
38
- await this.accountController.syncDatawallet();
39
- return ts_utils_1.Result.ok(DeviceMapper_1.DeviceMapper.toDeviceDTO(device, false));
40
- }
41
- };
42
- exports.CreateDeviceUseCase = CreateDeviceUseCase;
43
- exports.CreateDeviceUseCase = CreateDeviceUseCase = __decorate([
44
- __param(0, typescript_ioc_1.Inject),
45
- __param(1, typescript_ioc_1.Inject),
46
- __param(2, typescript_ioc_1.Inject),
47
- __metadata("design:paramtypes", [transport_1.DevicesController,
48
- transport_1.AccountController,
49
- Validator])
50
- ], CreateDeviceUseCase);
51
- //# sourceMappingURL=CreateDevice.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateDevice.js","sourceRoot":"","sources":["../../../../src/useCases/transport/devices/CreateDevice.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAA2C;AAE3C,gDAAwE;AACxE,0DAA+C;AAC/C,yCAA0E;AAC1E,iDAA8C;AAQ9C,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,wBAAoC;IACxD,YAA2B,gBAAkC;QACzD,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,qBAAqB,CAAC,CAAC,CAAC;IAC7D,CAAC;CACJ,CAAA;AAJK,SAAS;IACS,WAAA,uBAAM,CAAA;qCAAmB,yBAAgB;GAD3D,SAAS,CAId;AAED,IAAa,mBAAmB,GAAhC,MAAa,mBAAoB,SAAQ,gBAAuC;IAC5E,YAC6B,iBAAoC,EACpC,iBAAoC,EACrD,SAAoB;QAE5B,KAAK,CAAC,SAAS,CAAC,CAAC;QAJQ,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAIjE,CAAC;IAES,KAAK,CAAC,eAAe,CAAC,OAA4B;QACxD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QAChE,MAAM,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,CAAC;QAE9C,OAAO,iBAAM,CAAC,EAAE,CAAC,2BAAY,CAAC,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;IAC9D,CAAC;CACJ,CAAA;AAfY,kDAAmB;8BAAnB,mBAAmB;IAEvB,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCAFqC,6BAAiB;QACjB,6BAAiB;QAC1C,SAAS;GAJvB,mBAAmB,CAe/B"}
@@ -1,34 +0,0 @@
1
- import { Result } from "@js-soft/ts-utils";
2
- import { PasswordLocationIndicator } from "@nmshd/core-types";
3
- import { TokenDTO } from "@nmshd/runtime-types";
4
- import { DevicesController, TokenController } from "@nmshd/transport";
5
- import { DeviceIdString, ISO8601DateTimeString, SchemaRepository, TokenAndTemplateCreationValidator, UseCase } from "../../common";
6
- export interface SchemaValidatableCreateDeviceOnboardingTokenRequest {
7
- id: DeviceIdString;
8
- expiresAt?: ISO8601DateTimeString;
9
- profileName?: string;
10
- passwordProtection?: {
11
- /**
12
- * @minLength 1
13
- */
14
- password: string;
15
- passwordIsPin?: true;
16
- passwordLocationIndicator?: unknown;
17
- };
18
- }
19
- export type CreateDeviceOnboardingTokenRequest = SchemaValidatableCreateDeviceOnboardingTokenRequest & {
20
- passwordProtection?: {
21
- passwordLocationIndicator?: PasswordLocationIndicator;
22
- };
23
- };
24
- declare class Validator extends TokenAndTemplateCreationValidator<CreateDeviceOnboardingTokenRequest> {
25
- constructor(schemaRepository: SchemaRepository);
26
- }
27
- export declare class CreateDeviceOnboardingTokenUseCase extends UseCase<CreateDeviceOnboardingTokenRequest, TokenDTO> {
28
- private readonly devicesController;
29
- private readonly tokenController;
30
- constructor(devicesController: DevicesController, tokenController: TokenController, validator: Validator);
31
- protected executeInternal(request: CreateDeviceOnboardingTokenRequest): Promise<Result<TokenDTO>>;
32
- }
33
- export {};
34
- //# sourceMappingURL=CreateDeviceOnboardingToken.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateDeviceOnboardingToken.d.ts","sourceRoot":"","sources":["../../../../src/useCases/transport/devices/CreateDeviceOnboardingToken.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAoB,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAChF,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAkC,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEtG,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAA4B,gBAAgB,EAAE,iCAAiC,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAG7J,MAAM,WAAW,mDAAmD;IAChE,EAAE,EAAE,cAAc,CAAC;IACnB,SAAS,CAAC,EAAE,qBAAqB,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE;QACjB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QACjB,aAAa,CAAC,EAAE,IAAI,CAAC;QACrB,yBAAyB,CAAC,EAAE,OAAO,CAAC;KACvC,CAAC;CACL;AAED,MAAM,MAAM,kCAAkC,GAAG,mDAAmD,GAAG;IACnG,kBAAkB,CAAC,EAAE;QAAE,yBAAyB,CAAC,EAAE,yBAAyB,CAAA;KAAE,CAAC;CAClF,CAAC;AAEF,cAAM,SAAU,SAAQ,iCAAiC,CAAC,kCAAkC,CAAC;gBAC9D,gBAAgB,EAAE,gBAAgB;CAGhE;AAED,qBAAa,kCAAmC,SAAQ,OAAO,CAAC,kCAAkC,EAAE,QAAQ,CAAC;IAE7F,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,eAAe;gBADf,iBAAiB,EAAE,iBAAiB,EACpC,eAAe,EAAE,eAAe,EACjD,SAAS,EAAE,SAAS;cAKhB,eAAe,CAAC,OAAO,EAAE,kCAAkC,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;CAe1G"}
@@ -1,59 +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.CreateDeviceOnboardingTokenUseCase = void 0;
16
- const ts_utils_1 = require("@js-soft/ts-utils");
17
- const core_types_1 = require("@nmshd/core-types");
18
- const transport_1 = require("@nmshd/transport");
19
- const typescript_ioc_1 = require("@nmshd/typescript-ioc");
20
- const common_1 = require("../../common");
21
- const TokenMapper_1 = require("../tokens/TokenMapper");
22
- let Validator = class Validator extends common_1.TokenAndTemplateCreationValidator {
23
- constructor(schemaRepository) {
24
- super(schemaRepository.getSchema("CreateDeviceOnboardingTokenRequest"));
25
- }
26
- };
27
- Validator = __decorate([
28
- __param(0, typescript_ioc_1.Inject),
29
- __metadata("design:paramtypes", [common_1.SchemaRepository])
30
- ], Validator);
31
- let CreateDeviceOnboardingTokenUseCase = class CreateDeviceOnboardingTokenUseCase extends common_1.UseCase {
32
- constructor(devicesController, tokenController, validator) {
33
- super(validator);
34
- this.devicesController = devicesController;
35
- this.tokenController = tokenController;
36
- }
37
- async executeInternal(request) {
38
- const sharedSecret = await this.devicesController.getSharedSecret(core_types_1.CoreId.from(request.id), request.profileName);
39
- const tokenContent = transport_1.TokenContentDeviceSharedSecret.from({ sharedSecret });
40
- const expiresAt = request.expiresAt ? core_types_1.CoreDate.from(request.expiresAt) : core_types_1.CoreDate.utc().add({ minutes: 5 });
41
- const token = await this.tokenController.sendToken({
42
- content: tokenContent,
43
- expiresAt: expiresAt,
44
- ephemeral: true,
45
- passwordProtection: common_1.PasswordProtectionMapper.toPasswordProtectionCreationParameters(request.passwordProtection)
46
- });
47
- return ts_utils_1.Result.ok(TokenMapper_1.TokenMapper.toTokenDTO(token, true));
48
- }
49
- };
50
- exports.CreateDeviceOnboardingTokenUseCase = CreateDeviceOnboardingTokenUseCase;
51
- exports.CreateDeviceOnboardingTokenUseCase = CreateDeviceOnboardingTokenUseCase = __decorate([
52
- __param(0, typescript_ioc_1.Inject),
53
- __param(1, typescript_ioc_1.Inject),
54
- __param(2, typescript_ioc_1.Inject),
55
- __metadata("design:paramtypes", [transport_1.DevicesController,
56
- transport_1.TokenController,
57
- Validator])
58
- ], CreateDeviceOnboardingTokenUseCase);
59
- //# sourceMappingURL=CreateDeviceOnboardingToken.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateDeviceOnboardingToken.js","sourceRoot":"","sources":["../../../../src/useCases/transport/devices/CreateDeviceOnboardingToken.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAA2C;AAC3C,kDAAgF;AAEhF,gDAAsG;AACtG,0DAA+C;AAC/C,yCAA6J;AAC7J,uDAAoD;AAoBpD,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,0CAAqE;IACzF,YAA2B,gBAAkC;QACzD,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,oCAAoC,CAAC,CAAC,CAAC;IAC5E,CAAC;CACJ,CAAA;AAJK,SAAS;IACS,WAAA,uBAAM,CAAA;qCAAmB,yBAAgB;GAD3D,SAAS,CAId;AAED,IAAa,kCAAkC,GAA/C,MAAa,kCAAmC,SAAQ,gBAAqD;IACzG,YAC6B,iBAAoC,EACpC,eAAgC,EACjD,SAAoB;QAE5B,KAAK,CAAC,SAAS,CAAC,CAAC;QAJQ,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,oBAAe,GAAf,eAAe,CAAiB;IAI7D,CAAC;IAES,KAAK,CAAC,eAAe,CAAC,OAA2C;QACvE,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,mBAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;QAChH,MAAM,YAAY,GAAG,0CAA8B,CAAC,IAAI,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC;QAE3E,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,qBAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,qBAAQ,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;QAE5G,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC;YAC/C,OAAO,EAAE,YAAY;YACrB,SAAS,EAAE,SAAS;YACpB,SAAS,EAAE,IAAI;YACf,kBAAkB,EAAE,iCAAwB,CAAC,sCAAsC,CAAC,OAAO,CAAC,kBAAkB,CAAC;SAClH,CAAC,CAAC;QAEH,OAAO,iBAAM,CAAC,EAAE,CAAC,yBAAW,CAAC,UAAU,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;IAC1D,CAAC;CACJ,CAAA;AAxBY,gFAAkC;6CAAlC,kCAAkC;IAEtC,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCAFqC,6BAAiB;QACnB,2BAAe;QACtC,SAAS;GAJvB,kCAAkC,CAwB9C"}
@@ -1,18 +0,0 @@
1
- import { Result } from "@js-soft/ts-utils";
2
- import { DeviceOnboardingInfoDTO } from "@nmshd/runtime-types";
3
- import { DevicesController } from "@nmshd/transport";
4
- import { GenericIdString, SchemaRepository, SchemaValidator, UseCase } from "../../common";
5
- export interface GetDeviceOnboardingInfoRequest {
6
- id: GenericIdString;
7
- profileName?: string;
8
- }
9
- declare class Validator extends SchemaValidator<GetDeviceOnboardingInfoRequest> {
10
- constructor(schemaRepository: SchemaRepository);
11
- }
12
- export declare class GetDeviceOnboardingInfoUseCase extends UseCase<GetDeviceOnboardingInfoRequest, DeviceOnboardingInfoDTO> {
13
- private readonly devicesController;
14
- constructor(devicesController: DevicesController, validator: Validator);
15
- protected executeInternal(request: GetDeviceOnboardingInfoRequest): Promise<Result<DeviceOnboardingInfoDTO>>;
16
- }
17
- export {};
18
- //# sourceMappingURL=GetDeviceOnboardingInfo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GetDeviceOnboardingInfo.d.ts","sourceRoot":"","sources":["../../../../src/useCases/transport/devices/GetDeviceOnboardingInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAG3F,MAAM,WAAW,8BAA8B;IAC3C,EAAE,EAAE,eAAe,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,cAAM,SAAU,SAAQ,eAAe,CAAC,8BAA8B,CAAC;gBACxC,gBAAgB,EAAE,gBAAgB;CAGhE;AAED,qBAAa,8BAA+B,SAAQ,OAAO,CAAC,8BAA8B,EAAE,uBAAuB,CAAC;IAEpG,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAAjB,iBAAiB,EAAE,iBAAiB,EACrD,SAAS,EAAE,SAAS;cAKhB,eAAe,CAAC,OAAO,EAAE,8BAA8B,GAAG,OAAO,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC;CAKrH"}
@@ -1,48 +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.GetDeviceOnboardingInfoUseCase = void 0;
16
- const ts_utils_1 = require("@js-soft/ts-utils");
17
- const core_types_1 = require("@nmshd/core-types");
18
- const transport_1 = require("@nmshd/transport");
19
- const typescript_ioc_1 = require("@nmshd/typescript-ioc");
20
- const common_1 = require("../../common");
21
- const DeviceMapper_1 = require("./DeviceMapper");
22
- let Validator = class Validator extends common_1.SchemaValidator {
23
- constructor(schemaRepository) {
24
- super(schemaRepository.getSchema("GetDeviceOnboardingInfoRequest"));
25
- }
26
- };
27
- Validator = __decorate([
28
- __param(0, typescript_ioc_1.Inject),
29
- __metadata("design:paramtypes", [common_1.SchemaRepository])
30
- ], Validator);
31
- let GetDeviceOnboardingInfoUseCase = class GetDeviceOnboardingInfoUseCase extends common_1.UseCase {
32
- constructor(devicesController, validator) {
33
- super(validator);
34
- this.devicesController = devicesController;
35
- }
36
- async executeInternal(request) {
37
- const onboardingInfo = await this.devicesController.getSharedSecret(core_types_1.CoreId.from(request.id), request.profileName);
38
- return ts_utils_1.Result.ok(DeviceMapper_1.DeviceMapper.toDeviceOnboardingInfoDTO(onboardingInfo));
39
- }
40
- };
41
- exports.GetDeviceOnboardingInfoUseCase = GetDeviceOnboardingInfoUseCase;
42
- exports.GetDeviceOnboardingInfoUseCase = GetDeviceOnboardingInfoUseCase = __decorate([
43
- __param(0, typescript_ioc_1.Inject),
44
- __param(1, typescript_ioc_1.Inject),
45
- __metadata("design:paramtypes", [transport_1.DevicesController,
46
- Validator])
47
- ], GetDeviceOnboardingInfoUseCase);
48
- //# sourceMappingURL=GetDeviceOnboardingInfo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GetDeviceOnboardingInfo.js","sourceRoot":"","sources":["../../../../src/useCases/transport/devices/GetDeviceOnboardingInfo.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAA2C;AAC3C,kDAA2C;AAE3C,gDAAqD;AACrD,0DAA+C;AAC/C,yCAA2F;AAC3F,iDAA8C;AAO9C,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,wBAA+C;IACnE,YAA2B,gBAAkC;QACzD,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,gCAAgC,CAAC,CAAC,CAAC;IACxE,CAAC;CACJ,CAAA;AAJK,SAAS;IACS,WAAA,uBAAM,CAAA;qCAAmB,yBAAgB;GAD3D,SAAS,CAId;AAED,IAAa,8BAA8B,GAA3C,MAAa,8BAA+B,SAAQ,gBAAgE;IAChH,YAC6B,iBAAoC,EACrD,SAAoB;QAE5B,KAAK,CAAC,SAAS,CAAC,CAAC;QAHQ,sBAAiB,GAAjB,iBAAiB,CAAmB;IAIjE,CAAC;IAES,KAAK,CAAC,eAAe,CAAC,OAAuC;QACnE,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,mBAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;QAElH,OAAO,iBAAM,CAAC,EAAE,CAAC,2BAAY,CAAC,yBAAyB,CAAC,cAAc,CAAC,CAAC,CAAC;IAC7E,CAAC;CACJ,CAAA;AAbY,wEAA8B;yCAA9B,8BAA8B;IAElC,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCADqC,6BAAiB;QAC1C,SAAS;GAHvB,8BAA8B,CAa1C"}
@@ -1,11 +0,0 @@
1
- import { Result } from "@js-soft/ts-utils";
2
- import { IdentityDeletionProcessDTO } from "@nmshd/runtime-types";
3
- import { AccountController, IdentityDeletionProcessController } from "@nmshd/transport";
4
- import { UseCase } from "../../common";
5
- export declare class ApproveIdentityDeletionProcessUseCase 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=ApproveIdentityDeletionProcess.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ApproveIdentityDeletionProcess.d.ts","sourceRoot":"","sources":["../../../../src/useCases/transport/identityDeletionProcesses/ApproveIdentityDeletionProcess.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,iCAAiC,EAAiC,MAAM,kBAAkB,CAAC;AAEvH,OAAO,EAAiB,OAAO,EAAE,MAAM,cAAc,CAAC;AAGtD,qBAAa,qCAAsC,SAAQ,OAAO,CAAC,IAAI,EAAE,0BAA0B,CAAC;IAEpF,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;CAQjF"}
@@ -1,43 +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.ApproveIdentityDeletionProcessUseCase = 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("@nmshd/typescript-ioc");
19
- const common_1 = require("../../common");
20
- const IdentityDeletionProcessMapper_1 = require("./IdentityDeletionProcessMapper");
21
- let ApproveIdentityDeletionProcessUseCase = class ApproveIdentityDeletionProcessUseCase 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 (!identityDeletionProcess)
30
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.identityDeletionProcess.noWaitingForApprovalIdentityDeletionProcess());
31
- const approvedIdentityDeletionProcess = await this.identityDeletionProcessController.approveIdentityDeletionProcess(identityDeletionProcess.id.toString());
32
- await this.accountController.syncDatawallet();
33
- return ts_utils_1.Result.ok(IdentityDeletionProcessMapper_1.IdentityDeletionProcessMapper.toIdentityDeletionProcessDTO(approvedIdentityDeletionProcess));
34
- }
35
- };
36
- exports.ApproveIdentityDeletionProcessUseCase = ApproveIdentityDeletionProcessUseCase;
37
- exports.ApproveIdentityDeletionProcessUseCase = ApproveIdentityDeletionProcessUseCase = __decorate([
38
- __param(0, typescript_ioc_1.Inject),
39
- __param(1, typescript_ioc_1.Inject),
40
- __metadata("design:paramtypes", [transport_1.IdentityDeletionProcessController,
41
- transport_1.AccountController])
42
- ], ApproveIdentityDeletionProcessUseCase);
43
- //# sourceMappingURL=ApproveIdentityDeletionProcess.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ApproveIdentityDeletionProcess.js","sourceRoot":"","sources":["../../../../src/useCases/transport/identityDeletionProcesses/ApproveIdentityDeletionProcess.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAA2C;AAE3C,gDAAuH;AACvH,0DAA+C;AAC/C,yCAAsD;AACtD,mFAAgF;AAEhF,IAAa,qCAAqC,GAAlD,MAAa,qCAAsC,SAAQ,gBAAyC;IAChG,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;QAClK,IAAI,CAAC,uBAAuB;YAAE,OAAO,iBAAM,CAAC,IAAI,CAAC,sBAAa,CAAC,uBAAuB,CAAC,2CAA2C,EAAE,CAAC,CAAC;QAEtI,MAAM,+BAA+B,GAAG,MAAM,IAAI,CAAC,iCAAiC,CAAC,8BAA8B,CAAC,uBAAuB,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC3J,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;AAhBY,sFAAqC;gDAArC,qCAAqC;IAEzC,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCADqD,6CAAiC;QACjD,6BAAiB;GAHxD,qCAAqC,CAgBjD"}
@@ -1,11 +0,0 @@
1
- import { Result } from "@js-soft/ts-utils";
2
- import { IdentityDeletionProcessDTO } from "@nmshd/runtime-types";
3
- import { AccountController, IdentityDeletionProcessController } from "@nmshd/transport";
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
@@ -1 +0,0 @@
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,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,iCAAiC,EAAiC,MAAM,kBAAkB,CAAC;AAEvH,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;CAQjF"}
@@ -1,43 +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.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("@nmshd/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 (!identityDeletionProcess)
30
- return ts_utils_1.Result.fail(common_1.RuntimeErrors.identityDeletionProcess.noWaitingForApprovalIdentityDeletionProcess());
31
- const rejectedIdentityDeletionProcess = await this.identityDeletionProcessController.rejectIdentityDeletionProcess(identityDeletionProcess.id.toString());
32
- await this.accountController.syncDatawallet();
33
- return ts_utils_1.Result.ok(IdentityDeletionProcessMapper_1.IdentityDeletionProcessMapper.toIdentityDeletionProcessDTO(rejectedIdentityDeletionProcess));
34
- }
35
- };
36
- exports.RejectIdentityDeletionProcessUseCase = RejectIdentityDeletionProcessUseCase;
37
- exports.RejectIdentityDeletionProcessUseCase = RejectIdentityDeletionProcessUseCase = __decorate([
38
- __param(0, typescript_ioc_1.Inject),
39
- __param(1, typescript_ioc_1.Inject),
40
- __metadata("design:paramtypes", [transport_1.IdentityDeletionProcessController,
41
- transport_1.AccountController])
42
- ], RejectIdentityDeletionProcessUseCase);
43
- //# sourceMappingURL=RejectIdentityDeletionProcess.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RejectIdentityDeletionProcess.js","sourceRoot":"","sources":["../../../../src/useCases/transport/identityDeletionProcesses/RejectIdentityDeletionProcess.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAA2C;AAE3C,gDAAuH;AACvH,0DAA+C;AAC/C,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;QAClK,IAAI,CAAC,uBAAuB;YAAE,OAAO,iBAAM,CAAC,IAAI,CAAC,sBAAa,CAAC,uBAAuB,CAAC,2CAA2C,EAAE,CAAC,CAAC;QAEtI,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;AAhBY,oFAAoC;+CAApC,oCAAoC;IAExC,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCADqD,6CAAiC;QACjD,6BAAiB;GAHxD,oCAAoC,CAgBhD"}