@safetech/inheriti-client-sdk 1.0.0 → 1.16.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.
Files changed (262) hide show
  1. package/dist/index.d.ts +7 -4
  2. package/dist/index.js +36 -2
  3. package/dist/inheriti-client-sdk.umd.js +156 -0
  4. package/dist/sdk-types.d.ts +59 -0
  5. package/dist/src/auth/error-handling-strategy.d.ts +2 -0
  6. package/dist/src/auth/get-available-envs.d.ts +7 -0
  7. package/dist/src/{modules/_shared/infrastructure/providers → auth}/inheriti-client-provider.d.ts +5 -17
  8. package/dist/src/auth/use-client.d.ts +12 -0
  9. package/dist/test/index.js +1 -14
  10. package/dist/test.d.ts +184 -0
  11. package/index.ts +7 -5
  12. package/package.json +21 -22
  13. package/dist/src/modules/_shared/domain/contexts/data-provider-context.d.ts +0 -2
  14. package/dist/src/modules/_shared/domain/contexts/service-provider-context.d.ts +0 -2
  15. package/dist/src/modules/_shared/domain/contexts/utils-provider-context.d.ts +0 -5
  16. package/dist/src/modules/_shared/domain/errors/getErrorMessage.d.ts +0 -1
  17. package/dist/src/modules/_shared/domain/hooks/resources/use-create.d.ts +0 -18
  18. package/dist/src/modules/_shared/domain/hooks/resources/use-delete.d.ts +0 -19
  19. package/dist/src/modules/_shared/domain/hooks/resources/use-get-list.d.ts +0 -25
  20. package/dist/src/modules/_shared/domain/hooks/resources/use-get-one.d.ts +0 -17
  21. package/dist/src/modules/_shared/domain/hooks/use-data-provider.d.ts +0 -2
  22. package/dist/src/modules/_shared/domain/hooks/use-repository.d.ts +0 -1
  23. package/dist/src/modules/_shared/domain/hooks/use-service-provider.d.ts +0 -2
  24. package/dist/src/modules/_shared/domain/hooks/use-service.d.ts +0 -1
  25. package/dist/src/modules/_shared/domain/hooks/utils-hooks.d.ts +0 -4
  26. package/dist/src/modules/_shared/domain/models/app-utils.d.ts +0 -10
  27. package/dist/src/modules/_shared/domain/models/currency-price.d.ts +0 -39
  28. package/dist/src/modules/_shared/domain/models/currency.d.ts +0 -24
  29. package/dist/src/modules/_shared/domain/models/euro-currency.d.ts +0 -3
  30. package/dist/src/modules/_shared/domain/models/mutation-options.d.ts +0 -8
  31. package/dist/src/modules/_shared/domain/models/mutation.d.ts +0 -5
  32. package/dist/src/modules/_shared/domain/models/pagination-options.d.ts +0 -4
  33. package/dist/src/modules/_shared/domain/models/query-options.d.ts +0 -6
  34. package/dist/src/modules/_shared/domain/models/query.d.ts +0 -5
  35. package/dist/src/modules/_shared/domain/models/resource-count.d.ts +0 -3
  36. package/dist/src/modules/_shared/domain/models/sort-options.d.ts +0 -4
  37. package/dist/src/modules/_shared/domain/models/use-mutation-value.d.ts +0 -13
  38. package/dist/src/modules/_shared/domain/models/use-query-value.d.ts +0 -11
  39. package/dist/src/modules/_shared/domain/services/mutation-creator.d.ts +0 -6
  40. package/dist/src/modules/_shared/domain/services/query-creator.d.ts +0 -6
  41. package/dist/src/modules/_shared/domain/utils/misc/array-utils.d.ts +0 -48
  42. package/dist/src/modules/_shared/domain/utils/misc/datetime-utils.d.ts +0 -40
  43. package/dist/src/modules/_shared/domain/utils/misc/encrypt-utils.d.ts +0 -17
  44. package/dist/src/modules/_shared/domain/utils/misc/number-utils.d.ts +0 -4
  45. package/dist/src/modules/_shared/domain/utils/misc/object-utils.d.ts +0 -76
  46. package/dist/src/modules/_shared/domain/utils/misc/text-utils.d.ts +0 -7
  47. package/dist/src/modules/_shared/domain/utils/misc/uuid-utils.d.ts +0 -6
  48. package/dist/src/modules/_shared/infrastructure/api/api-repository.d.ts +0 -36
  49. package/dist/src/modules/_shared/infrastructure/api/app-payload-encrypter.d.ts +0 -9
  50. package/dist/src/modules/_shared/infrastructure/http/HttpError.d.ts +0 -7
  51. package/dist/src/modules/_shared/infrastructure/http/fetch.d.ts +0 -48
  52. package/dist/src/modules/_shared/infrastructure/local-storage/browser-local-storage.d.ts +0 -9
  53. package/dist/src/modules/_shared/infrastructure/providers/app-data-provider.d.ts +0 -20
  54. package/dist/src/modules/_shared/infrastructure/providers/app-provider.d.ts +0 -15
  55. package/dist/src/modules/_shared/infrastructure/providers/app-service-provider.d.ts +0 -28
  56. package/dist/src/modules/_shared/infrastructure/providers/app-utils-provider.d.ts +0 -175
  57. package/dist/src/modules/_shared/infrastructure/secure-storage/app-secure-storage.d.ts +0 -8
  58. package/dist/src/modules/_shared/infrastructure/services/hexEncoder.d.ts +0 -4
  59. package/dist/src/modules/_shared/infrastructure/services/react-q-query-creator.d.ts +0 -7
  60. package/dist/src/modules/_shared/infrastructure/services/react-query-mutation-creator.d.ts +0 -7
  61. package/dist/src/modules/_shared/infrastructure/services/safeshareLegacy.d.ts +0 -29
  62. package/dist/src/modules/_shared/infrastructure/session-storage/browser-session-storage.d.ts +0 -12
  63. package/dist/src/modules/_shared/infrastructure/utils/context-selector.d.ts +0 -2
  64. package/dist/src/modules/_shared/infrastructure/utils/set-query-params.d.ts +0 -5
  65. package/dist/src/modules/auth/application/use-auth-dispatch.d.ts +0 -1
  66. package/dist/src/modules/auth/application/use-auth-provider.d.ts +0 -4
  67. package/dist/src/modules/auth/application/use-auth-state.d.ts +0 -1
  68. package/dist/src/modules/auth/application/use-client.d.ts +0 -27
  69. package/dist/src/modules/auth/application/use-ensure-connected-client.d.ts +0 -3
  70. package/dist/src/modules/auth/application/use-get-identity.d.ts +0 -36
  71. package/dist/src/modules/auth/application/use-is-logged-in.d.ts +0 -8
  72. package/dist/src/modules/auth/application/use-login-client.d.ts +0 -6
  73. package/dist/src/modules/auth/application/use-logout-client.d.ts +0 -5
  74. package/dist/src/modules/auth/domain/contexts/auth-provider-context.d.ts +0 -2
  75. package/dist/src/modules/auth/domain/models/auth-credentials.d.ts +0 -3
  76. package/dist/src/modules/auth/domain/models/user-identity.d.ts +0 -28
  77. package/dist/src/modules/auth/domain/services/auth-provider.d.ts +0 -16
  78. package/dist/src/modules/auth/index.d.ts +0 -6
  79. package/dist/src/modules/auth/infrastructure/providers/app-auth-provider.d.ts +0 -30
  80. package/dist/src/modules/auth/infrastructure/providers/app-identity-service.d.ts +0 -9
  81. package/dist/src/modules/auth/infrastructure/providers/auth-constants.d.ts +0 -6
  82. package/dist/src/modules/beneficiary/domain/models/beneficiary-device.d.ts +0 -28
  83. package/dist/src/modules/beneficiary/domain/models/beneficiary-relation.d.ts +0 -13
  84. package/dist/src/modules/beneficiary/domain/models/beneficiary-type.d.ts +0 -16
  85. package/dist/src/modules/beneficiary/domain/models/beneficiary.d.ts +0 -54
  86. package/dist/src/modules/beneficiary/index.d.ts +0 -1
  87. package/dist/src/modules/beneficiary/infrastructure/mappers/beneficiary-mapper.d.ts +0 -6
  88. package/dist/src/modules/protection-plan/application/configuration-process/blockchain/use-create-smart-contract.d.ts +0 -9
  89. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/creation/use-create-backup-shares.d.ts +0 -6
  90. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/creation/use-create-cold-shares.d.ts +0 -6
  91. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/creation/use-create-mobile-shares.d.ts +0 -6
  92. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/creation/use-create-validator-shares.d.ts +0 -6
  93. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/distribution/use-distribute-backup-shares.d.ts +0 -9
  94. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/distribution/use-distribute-cold-share.d.ts +0 -8
  95. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/distribution/use-distribute-mobile-shares.d.ts +0 -9
  96. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/distribution/use-distribute-validator-shares.d.ts +0 -9
  97. package/dist/src/modules/protection-plan/application/configuration-process/use-configure-plan.d.ts +0 -12
  98. package/dist/src/modules/protection-plan/application/configuration-process/use-delete-plan-configuration-process.d.ts +0 -8
  99. package/dist/src/modules/protection-plan/application/configuration-process/use-get-plan-configuration-process.d.ts +0 -12
  100. package/dist/src/modules/protection-plan/application/configuration-process/use-save-plan-creation-process.d.ts +0 -9
  101. package/dist/src/modules/protection-plan/application/creation/use-create-protection-plan.d.ts +0 -24
  102. package/dist/src/modules/protection-plan/application/creation/use-get-available-plan-triggers.d.ts +0 -3
  103. package/dist/src/modules/protection-plan/application/creation/use-get-protection-plan-security-level.d.ts +0 -47
  104. package/dist/src/modules/protection-plan/application/creation/use-persist-protection-plan.d.ts +0 -10
  105. package/dist/src/modules/protection-plan/application/listing/use-find-protection-plan-summary-by-criteria.d.ts +0 -13
  106. package/dist/src/modules/protection-plan/application/listing/use-find-protection-plans-by-criteria.d.ts +0 -15
  107. package/dist/src/modules/protection-plan/application/listing/use-get-protection-plan-summary.d.ts +0 -13
  108. package/dist/src/modules/protection-plan/application/listing/use-is-merge-authority-mode.d.ts +0 -3
  109. package/dist/src/modules/protection-plan/application/listing/use-protection-plan-listener.d.ts +0 -25
  110. package/dist/src/modules/protection-plan/application/merging-process/merge-authority/use-authorize-merge-authority.d.ts +0 -13
  111. package/dist/src/modules/protection-plan/application/merging-process/merge-authority/use-get-merge-authority-protection-plan.d.ts +0 -12
  112. package/dist/src/modules/protection-plan/application/merging-process/merge-authority/use-merge-authority-merge-process-events.d.ts +0 -6
  113. package/dist/src/modules/protection-plan/application/merging-process/merge-triggers/use-retry-active-merge-trigger.d.ts +0 -10
  114. package/dist/src/modules/protection-plan/application/merging-process/merge-triggers/use-validate-merge-trigger.d.ts +0 -12
  115. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/collection/use-collect-backup-shares.d.ts +0 -9
  116. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/collection/use-collect-cold-share.d.ts +0 -8
  117. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/collection/use-collect-mobile-shares.d.ts +0 -5
  118. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/collection/use-collect-released-mobile-shares.d.ts +0 -9
  119. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/collection/use-collect-validator-shares.d.ts +0 -9
  120. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/use-check-can-collect-shares.d.ts +0 -2
  121. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/use-save-release-mobile-share-request.d.ts +0 -11
  122. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/use-send-plan-share-merge-status-event.d.ts +0 -15
  123. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/use-send-plan-shares-merged.d.ts +0 -10
  124. package/dist/src/modules/protection-plan/application/merging-process/use-close-protection-plan.d.ts +0 -10
  125. package/dist/src/modules/protection-plan/application/merging-process/use-create-merging-process.d.ts +0 -9
  126. package/dist/src/modules/protection-plan/application/merging-process/use-delete-merging-process-by-criteria.d.ts +0 -11
  127. package/dist/src/modules/protection-plan/application/merging-process/use-delete-merging-process.d.ts +0 -10
  128. package/dist/src/modules/protection-plan/application/merging-process/use-get-merging-process-by-plan.d.ts +0 -23
  129. package/dist/src/modules/protection-plan/application/merging-process/use-merge-plan-beneficiary-selection.d.ts +0 -27
  130. package/dist/src/modules/protection-plan/application/merging-process/use-persist-merge-process.d.ts +0 -12
  131. package/dist/src/modules/protection-plan/application/merging-process/use-reveal-plan-data.d.ts +0 -13
  132. package/dist/src/modules/protection-plan/application/merging-process/use-save-merging-process.d.ts +0 -9
  133. package/dist/src/modules/protection-plan/application/merging-process/use-scan-plans-from-merge-authority-device.d.ts +0 -10
  134. package/dist/src/modules/protection-plan/application/merging-process/use-shareholder-merge-process-events.d.ts +0 -2
  135. package/dist/src/modules/protection-plan/domain/dto/plan-dto.d.ts +0 -68
  136. package/dist/src/modules/protection-plan/domain/dto/protection-plan-input.d.ts +0 -173
  137. package/dist/src/modules/protection-plan/domain/models/app-process.d.ts +0 -29
  138. package/dist/src/modules/protection-plan/domain/models/backup/backup-plan.d.ts +0 -18
  139. package/dist/src/modules/protection-plan/domain/models/backup/backup-shareholder.d.ts +0 -9
  140. package/dist/src/modules/protection-plan/domain/models/client/protection-plan-summary.d.ts +0 -218
  141. package/dist/src/modules/protection-plan/domain/models/data-asset.d.ts +0 -113
  142. package/dist/src/modules/protection-plan/domain/models/device-share-info.d.ts +0 -10
  143. package/dist/src/modules/protection-plan/domain/models/inheritance/heir.d.ts +0 -9
  144. package/dist/src/modules/protection-plan/domain/models/inheritance/inheritance-plan.d.ts +0 -16
  145. package/dist/src/modules/protection-plan/domain/models/merging-process/active-merge-process.d.ts +0 -15
  146. package/dist/src/modules/protection-plan/domain/models/merging-process/merging-process.d.ts +0 -135
  147. package/dist/src/modules/protection-plan/domain/models/plan-creation-proccess/plan-creation-process.d.ts +0 -69
  148. package/dist/src/modules/protection-plan/domain/models/plan-share.d.ts +0 -69
  149. package/dist/src/modules/protection-plan/domain/models/proccess-step.d.ts +0 -21
  150. package/dist/src/modules/protection-plan/domain/models/protection-plan-details.d.ts +0 -70
  151. package/dist/src/modules/protection-plan/domain/models/protection-plan-passphrase.d.ts +0 -18
  152. package/dist/src/modules/protection-plan/domain/models/protection-plan.d.ts +0 -238
  153. package/dist/src/modules/protection-plan/domain/models/shareholder.d.ts +0 -32
  154. package/dist/src/modules/protection-plan/domain/models/storage-option.d.ts +0 -29
  155. package/dist/src/modules/protection-plan/domain/models/trigger-settings-info.d.ts +0 -6
  156. package/dist/src/modules/protection-plan/domain/models/trigger.d.ts +0 -46
  157. package/dist/src/modules/protection-plan/domain/repositories/merge-authority-protection-plan-repository.d.ts +0 -13
  158. package/dist/src/modules/protection-plan/domain/repositories/merging-process-repository.d.ts +0 -62
  159. package/dist/src/modules/protection-plan/domain/repositories/plan-creation-repository.d.ts +0 -7
  160. package/dist/src/modules/protection-plan/domain/repositories/plan-security-repository.d.ts +0 -7
  161. package/dist/src/modules/protection-plan/domain/repositories/plan-triggers-repository.d.ts +0 -4
  162. package/dist/src/modules/protection-plan/domain/repositories/protection-plan-repository.d.ts +0 -24
  163. package/dist/src/modules/protection-plan/domain/services/blockchain-service.d.ts +0 -32
  164. package/dist/src/modules/protection-plan/domain/services/input-validation/PlanTypeInputValidator.d.ts +0 -4
  165. package/dist/src/modules/protection-plan/domain/services/input-validation/plan-beneficiaries-input-validator.d.ts +0 -240
  166. package/dist/src/modules/protection-plan/domain/services/input-validation/plan-data-assets-input-validator.d.ts +0 -1108
  167. package/dist/src/modules/protection-plan/domain/services/input-validation/plan-details-input-validator.d.ts +0 -23
  168. package/dist/src/modules/protection-plan/domain/services/input-validation/plan-shares-configuration-input-validator.d.ts +0 -13
  169. package/dist/src/modules/protection-plan/domain/services/input-validation/plan-storage-configuration-input-validator.d.ts +0 -25
  170. package/dist/src/modules/protection-plan/domain/services/input-validation/plan-triggers-input-validator.d.ts +0 -105
  171. package/dist/src/modules/protection-plan/domain/services/input-validation/utils/index.d.ts +0 -3
  172. package/dist/src/modules/protection-plan/domain/services/merge-authorization-handler.d.ts +0 -14
  173. package/dist/src/modules/protection-plan/domain/services/merge-process-event-listener.d.ts +0 -14
  174. package/dist/src/modules/protection-plan/domain/services/plan-data-assets-manager.d.ts +0 -69
  175. package/dist/src/modules/protection-plan/domain/services/plan-data-revealer.d.ts +0 -5
  176. package/dist/src/modules/protection-plan/domain/services/plan-event-listener.d.ts +0 -10
  177. package/dist/src/modules/protection-plan/domain/services/plan-merge-threshold-range-calculator.d.ts +0 -8
  178. package/dist/src/modules/protection-plan/domain/services/plan-recovery-shares-range-calculator.d.ts +0 -8
  179. package/dist/src/modules/protection-plan/domain/services/plan-shares-generator.d.ts +0 -18
  180. package/dist/src/modules/protection-plan/domain/services/vault-service.d.ts +0 -10
  181. package/dist/src/modules/protection-plan/domain/utils/plan-details-mapper.d.ts +0 -12
  182. package/dist/src/modules/protection-plan/domain/utils/plan-shares-details-mapper.d.ts +0 -10
  183. package/dist/src/modules/protection-plan/domain/utils/plan-triggers-details-mapper.d.ts +0 -5
  184. package/dist/src/modules/protection-plan/domain/utils/protection-plan-internal-mapper.d.ts +0 -5
  185. package/dist/src/modules/protection-plan/index.d.ts +0 -28
  186. package/dist/src/modules/protection-plan/infrastructure/mappers/backup-shareholder-mapper.d.ts +0 -7
  187. package/dist/src/modules/protection-plan/infrastructure/mappers/draft-protection-plan-mapper.d.ts +0 -8
  188. package/dist/src/modules/protection-plan/infrastructure/mappers/heir-mapper.d.ts +0 -7
  189. package/dist/src/modules/protection-plan/infrastructure/mappers/merging-process-mapper.d.ts +0 -5
  190. package/dist/src/modules/protection-plan/infrastructure/mappers/plan-creation-mapper.d.ts +0 -5
  191. package/dist/src/modules/protection-plan/infrastructure/mappers/protection-plan-filters-mapper.d.ts +0 -4
  192. package/dist/src/modules/protection-plan/infrastructure/mappers/protection-plan-mapper.d.ts +0 -10
  193. package/dist/src/modules/protection-plan/infrastructure/repositories/app-merging-process-repository.d.ts +0 -65
  194. package/dist/src/modules/protection-plan/infrastructure/repositories/app-plan-creation-repository.d.ts +0 -12
  195. package/dist/src/modules/protection-plan/infrastructure/repositories/app-plan-security-repository.d.ts +0 -11
  196. package/dist/src/modules/protection-plan/infrastructure/repositories/app-plan-triggers-repository.d.ts +0 -10
  197. package/dist/src/modules/protection-plan/infrastructure/repositories/protection-plan/app-merge-authority-protection-plan-repository.d.ts +0 -17
  198. package/dist/src/modules/protection-plan/infrastructure/repositories/protection-plan/app-protection-plan-repository.d.ts +0 -13
  199. package/dist/src/modules/protection-plan/infrastructure/services/app-blockchain-service.d.ts +0 -42
  200. package/dist/src/modules/protection-plan/infrastructure/services/app-plan-data-revealer.d.ts +0 -14
  201. package/dist/src/modules/protection-plan/infrastructure/services/app-plan-shares-generator.d.ts +0 -5
  202. package/dist/src/modules/protection-plan/infrastructure/services/constants/device-constants.d.ts +0 -1
  203. package/dist/src/modules/protection-plan/infrastructure/services/inheriti-vault-service.d.ts +0 -15
  204. package/dist/src/modules/protection-plan/infrastructure/services/socket-io-merge-authorization-handler.d.ts +0 -17
  205. package/dist/src/modules/protection-plan/infrastructure/services/socket-io-merge-process-event-listener.d.ts +0 -14
  206. package/dist/src/modules/protection-plan/infrastructure/services/socket-io-plan-event-listener.d.ts +0 -14
  207. package/dist/src/modules/protection-plan/ui/plan-creation-process/hooks/use-distribute-cold-shares-process.d.ts +0 -15
  208. package/dist/src/modules/protection-plan/ui/plan-creation-process/hooks/use-get-active-plan-configuration-process.d.ts +0 -11
  209. package/dist/src/modules/protection-plan/ui/plan-creation-process/hooks/use-plan-configuration-process-steps.d.ts +0 -16
  210. package/dist/src/modules/protection-plan/ui/plan-creation-process/hooks/use-plan-configuration-process.d.ts +0 -25
  211. package/dist/src/modules/protection-plan/ui/plan-creation-process/hooks/use-start-protection-plan-configuration-process.d.ts +0 -10
  212. package/dist/src/modules/protection-plan/ui/plan-creation-process/view-models/plan-configuration-process-view.d.ts +0 -55
  213. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/merge-athority/use-merge-authority-sk-mobile-plan-detection.d.ts +0 -13
  214. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/merge-athority/use-merge-authority-sk-pro-plan-detection.d.ts +0 -12
  215. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-abort-merge-process.d.ts +0 -6
  216. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-active-merge-process-listener.d.ts +0 -9
  217. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-collect-plan-cold-share-process.d.ts +0 -13
  218. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-count-down.d.ts +0 -7
  219. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-initialize-merging-process.d.ts +0 -21
  220. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-merge-process-controller.d.ts +0 -13
  221. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-merge-process-release-shares-controller.d.ts +0 -9
  222. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-plan-merge-process.d.ts +0 -55
  223. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-process-plan-merge-steps.d.ts +0 -11
  224. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-reveal-data-controller.d.ts +0 -26
  225. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-start-merge-process.d.ts +0 -20
  226. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-trigger-countdown.d.ts +0 -18
  227. package/dist/src/modules/protection-plan/ui/plan-merge-process/utils/merge-process-utils.d.ts +0 -3
  228. package/dist/src/modules/protection-plan/ui/plan-merge-process/view-models/plan-merge-process-view.d.ts +0 -173
  229. package/dist/src/modules/protection-plan/ui/protection-plan/utils/plan-beneficiary-builder.d.ts +0 -12
  230. package/dist/src/modules/protection-plan/ui/protection-plan/utils/plan-data-asset-builder.d.ts +0 -35
  231. package/dist/src/modules/protection-plan/ui/protection-plan/utils/protection-plan-code.d.ts +0 -7
  232. package/dist/src/modules/protection-plan/ui/protection-plan/utils/protection-plan-id.d.ts +0 -7
  233. package/dist/src/modules/protection-plan/ui/protection-plan/utils/trigger-builder.d.ts +0 -24
  234. package/dist/src/modules/safekey/application/use-connect-safekey-pro-device.d.ts +0 -10
  235. package/dist/src/modules/safekey/application/use-disconnect-safekey-device.d.ts +0 -8
  236. package/dist/src/modules/safekey/application/use-safekey-device.d.ts +0 -16
  237. package/dist/src/modules/safekey/application/use-validate-safekey-device-pin.d.ts +0 -12
  238. package/dist/src/modules/safekey/domain/services/cold-storage-service.d.ts +0 -55
  239. package/dist/src/modules/safekey/index.d.ts +0 -4
  240. package/dist/src/modules/safekey/infrastructure/services/safekey-cold-storage-service.d.ts +0 -45
  241. package/dist/src/modules/safekey/infrastructure/services/safekey-service.d.ts +0 -9
  242. package/dist/tests/modules/_shared/domain/models/FinancialMother.d.ts +0 -11
  243. package/dist/tests/modules/_shared/domain/models/date-mother.d.ts +0 -6
  244. package/dist/tests/modules/_shared/domain/models/email-mother.d.ts +0 -3
  245. package/dist/tests/modules/_shared/domain/models/id-mother.d.ts +0 -3
  246. package/dist/tests/modules/_shared/domain/models/internet-mother.d.ts +0 -11
  247. package/dist/tests/modules/_shared/domain/models/mother-creator.d.ts +0 -3
  248. package/dist/tests/modules/_shared/domain/models/name-mother.d.ts +0 -5
  249. package/dist/tests/modules/_shared/domain/models/number-mother.d.ts +0 -7
  250. package/dist/tests/modules/_shared/domain/models/random-element-picker-mother.d.ts +0 -3
  251. package/dist/tests/modules/_shared/domain/models/uuid-mother.d.ts +0 -3
  252. package/dist/tests/modules/_shared/domain/models/word-mother.d.ts +0 -5
  253. package/dist/tests/modules/index.d.ts +0 -6
  254. package/dist/tests/modules/protection-plan/domain/plan-beneficiary-input-generator.d.ts +0 -18
  255. package/dist/tests/modules/protection-plan/domain/plan-data-asset-input-generator.d.ts +0 -13
  256. package/dist/tests/modules/protection-plan/domain/plan-details-input-generator.d.ts +0 -7
  257. package/dist/tests/modules/protection-plan/domain/plan-shares-configuration-input-generator.d.ts +0 -20
  258. package/dist/tests/modules/protection-plan/domain/plan-storage-configuration-input-generator.d.ts +0 -4
  259. package/dist/tests/modules/protection-plan/domain/plan-trigger-input-generator.d.ts +0 -27
  260. package/dist/tests/modules/protection-plan/domain/protection-plan-input-generator.d.ts +0 -4
  261. package/dist/tests/modules/protection-plan/index.d.ts +0 -8
  262. /package/dist/src/{modules/_shared/infrastructure/utils → auth}/get-api-url.d.ts +0 -0
@@ -1,70 +0,0 @@
1
- import StorageOption from '../../../protection-plan/domain/models/storage-option';
2
- import { ProtectionPlanStatus } from '../../../protection-plan/domain/models/protection-plan';
3
- interface ProtectionPlanDetailsProps {
4
- code: string;
5
- owner: {
6
- id: string;
7
- firstName: string;
8
- lastName: string;
9
- profilePicture?: string;
10
- };
11
- name: string;
12
- description?: string;
13
- privateNotes?: string;
14
- data: string;
15
- createdAt: Date;
16
- contractAddress?: string;
17
- network?: string;
18
- status: ProtectionPlanStatus;
19
- triggers: string[];
20
- mergeThreshold: number;
21
- mergeCount: number;
22
- lastReleasedAt?: Date;
23
- shareholders: {
24
- id: string;
25
- storageOption: StorageOption;
26
- }[];
27
- shares: {
28
- addressCount: number;
29
- type: string;
30
- shareholderId: string;
31
- storageOption: StorageOption;
32
- }[];
33
- chain: {
34
- id: string;
35
- name: string;
36
- };
37
- type: 'BACKUP' | 'INHERITANCE';
38
- isFree?: boolean;
39
- }
40
- export default class ProtectionPlanDetails {
41
- private props;
42
- constructor(props: ProtectionPlanDetailsProps);
43
- get code(): string;
44
- get isFree(): boolean | undefined;
45
- get isBackupPlan(): boolean;
46
- get storageLayers(): string[];
47
- get network(): string | undefined;
48
- get triggers(): string[];
49
- get owner(): {
50
- id: string;
51
- firstName: string;
52
- lastName: string;
53
- profilePicture?: string;
54
- };
55
- get name(): string;
56
- get description(): string | undefined;
57
- get lastReleasedAt(): Date | undefined;
58
- get mergeThreshold(): number;
59
- get mergeCount(): number;
60
- get privateNotes(): string | undefined;
61
- get mobileSharesCount(): number;
62
- get coldSharesCount(): number;
63
- get backupSharesCount(): number;
64
- get sharesCount(): number;
65
- get data(): string;
66
- get createdAt(): Date;
67
- get contractAddress(): string | undefined;
68
- get status(): ProtectionPlanStatus;
69
- }
70
- export {};
@@ -1,18 +0,0 @@
1
- export interface ProtectionPlanPassphraseProps {
2
- validator?: string;
3
- backup?: string;
4
- mobile?: string;
5
- }
6
- export interface ProtectionPlanPassphrasePrimitiveProps extends ProtectionPlanPassphraseProps {
7
- }
8
- export default class ProtectionPlanPassphrase {
9
- private props;
10
- constructor(props: ProtectionPlanPassphraseProps);
11
- get validator(): string | undefined;
12
- get backup(): string | undefined;
13
- get mobile(): string | undefined;
14
- static fromPrimitives(primitives: ProtectionPlanPassphrasePrimitiveProps): ProtectionPlanPassphrase;
15
- static merge(entity: ProtectionPlanPassphrase, props: Partial<ProtectionPlanPassphraseProps>): ProtectionPlanPassphrase;
16
- static fromEmpty(): ProtectionPlanPassphrase;
17
- toPrimitives(): ProtectionPlanPassphrasePrimitiveProps;
18
- }
@@ -1,238 +0,0 @@
1
- import PlanShare, { PlanSharePrimitiveProps, ShareCreationStatus, ShareType } from '../../../protection-plan/domain/models/plan-share';
2
- import Trigger, { MergeTriggerStatus, TriggerPrimitiveProps, TriggerStatus, TriggerType } from '../../../protection-plan/domain/models/trigger';
3
- import ProtectionPlanPassphrase, { ProtectionPlanPassphrasePrimitiveProps, ProtectionPlanPassphraseProps } from '../../../protection-plan/domain/models/protection-plan-passphrase';
4
- export type ProtectionPlanStatus = 'PROTECTED' | 'DRAFT' | 'FAILED' | 'PENDING_SHARES' | 'MERGING_INITIALIZED' | 'MERGING_IN_PROGRESS' | 'SHARES_MERGED' | 'DATA_RELEASED';
5
- export interface PlanPrivateKeys {
6
- validator?: string;
7
- backup?: string;
8
- }
9
- export interface PlanActiveMergeProcess {
10
- id: string;
11
- initializedAt?: Date;
12
- expiresAt?: Date;
13
- }
14
- export interface ProtectionPlanProps {
15
- id: string;
16
- code: string;
17
- contractAddress?: string;
18
- network?: string;
19
- passphrase?: ProtectionPlanPassphrase;
20
- privateKeys?: PlanPrivateKeys;
21
- owner: {
22
- id: string;
23
- firstName: string;
24
- lastName: string;
25
- profilePicture?: string;
26
- };
27
- details: {
28
- name: string;
29
- description?: string;
30
- privateNotes?: string;
31
- };
32
- mergeThreshold: number;
33
- encryptedData?: string;
34
- status: ProtectionPlanStatus;
35
- triggers: Trigger[];
36
- shares: PlanShare[];
37
- isDraft: boolean;
38
- createdAt: Date;
39
- type: 'BACKUP' | 'INHERITANCE';
40
- paidAt?: Date;
41
- activeMergeProcess?: PlanActiveMergeProcess;
42
- assetsMetadata: any;
43
- assetsConfig?: string;
44
- lastReleasedAt?: Date;
45
- mergeCount: number;
46
- lastReleaseRequest?: Date;
47
- isFree?: boolean;
48
- configuredAt?: Date;
49
- }
50
- export interface ProtectionPlanPrimitiveProps extends Omit<ProtectionPlanProps, 'passphrase' | 'shares' | 'triggers'> {
51
- shares: PlanSharePrimitiveProps[];
52
- triggers: TriggerPrimitiveProps[];
53
- passphrase?: ProtectionPlanPassphrasePrimitiveProps;
54
- }
55
- export declare const MAX_ADDITIONAL_PLAN_BENEFICIARIES = 9;
56
- export default class ProtectionPlan<T> {
57
- protected props: ProtectionPlanProps & T;
58
- constructor(props: ProtectionPlanProps & T);
59
- get isConfigured(): boolean;
60
- get isBlockchain(): boolean;
61
- get assetsConfig(): string | undefined;
62
- get defaultMergeBeneficiariesIds(): string[];
63
- get defaultMergeAuthorityId(): string;
64
- get canProceedMergingProcess(): boolean;
65
- get id(): string;
66
- get isFree(): boolean | undefined;
67
- get isTestNet(): boolean;
68
- get encryptedData(): string | undefined;
69
- get isReleased(): boolean;
70
- get remainingSecondsForClose(): number | undefined;
71
- get timeoutMinutesForClose(): number;
72
- get mergeExpiresAt(): Date | undefined;
73
- get name(): string;
74
- get network(): string | undefined;
75
- get code(): string;
76
- get status(): ProtectionPlanStatus;
77
- get isInMergeProcess(): boolean;
78
- get isDraft(): boolean;
79
- get isIncomplete(): boolean;
80
- get isMergeInitialized(): boolean;
81
- get isPendingShares(): boolean;
82
- get description(): string | undefined;
83
- get privateNotes(): string | undefined;
84
- get createdAt(): Date;
85
- get isPaid(): boolean;
86
- get triggers(): Trigger[];
87
- get pendingTrigger(): Trigger | undefined;
88
- get unresolvedTrigger(): Trigger | undefined;
89
- get deniedTrigger(): Trigger | undefined;
90
- get expiredTrigger(): Trigger | undefined;
91
- get loginTrigger(): Trigger | undefined;
92
- get clickLinkTrigger(): Trigger | undefined;
93
- get safeKeyTrigger(): Trigger | undefined;
94
- get smsTrigger(): Trigger | undefined;
95
- get phoneCallTrigger(): Trigger | undefined;
96
- get backupSharesAmount(): number;
97
- get mobileSharesAmount(): number;
98
- get coldSharesAmount(): number;
99
- get mobileShares(): PlanShare[];
100
- get coldShares(): PlanShare[];
101
- get vaultShares(): PlanShare[];
102
- get planMainStorage(): import("../../../protection-plan/domain/models/storage-option").PlanStorageOption;
103
- get planMainChain(): import("../../../protection-plan/domain/models/storage-option").PlanStorageOption;
104
- get planMainChainName(): "HSM" | "SafeKey Pro" | "SafeKey Mobile" | "vechain" | "Ethereum" | "Optimism" | "Inheriti® Chain" | "Vault" | "Unknown Name";
105
- get validatorShares(): PlanShare[];
106
- get backupShares(): PlanShare[];
107
- get validatorSharesCreated(): boolean;
108
- get validatorSharesCreating(): boolean;
109
- get validatorSharesUncreated(): boolean;
110
- get coldSharesCreated(): boolean;
111
- get coldSharesCreating(): boolean;
112
- get coldSharesUncreated(): boolean;
113
- get mobileSharesCreated(): boolean;
114
- get mobileSharesCreating(): boolean;
115
- get mobileSharesUncreated(): boolean;
116
- get backupSharesCreated(): boolean;
117
- get backupSharesCreating(): boolean;
118
- get backupSharesUncreated(): boolean;
119
- get coldSharesDistributed(): boolean;
120
- get shareHoldersAmount(): number;
121
- get beneficiaryShares(): PlanShare[];
122
- get shares(): PlanShare[];
123
- get ownerFullName(): string;
124
- get ownerId(): string;
125
- get owner(): {
126
- fullName: string;
127
- id: string;
128
- firstName: string;
129
- lastName: string;
130
- profilePicture?: string;
131
- };
132
- get ownerShareholder(): import("./shareholder").default | undefined;
133
- get ownerProfilePicture(): string | undefined;
134
- get mergeThreshold(): number;
135
- get isBackupPlan(): boolean;
136
- get type(): "BACKUP" | "INHERITANCE";
137
- get isInheritancePlan(): boolean;
138
- get blockchainShares(): PlanShare[];
139
- get contractAddress(): string | undefined;
140
- get totalShares(): number;
141
- get hasDataReleased(): boolean;
142
- get privateKeys(): PlanPrivateKeys | undefined;
143
- get isProtected(): boolean;
144
- get collectingShareType(): ShareType | undefined;
145
- get activeMergeProcessId(): string | undefined;
146
- get mergeCount(): number;
147
- get lastReleasedAt(): Date | undefined;
148
- get storageLayers(): {
149
- id: import("../../../protection-plan/domain/models/storage-option").PlanStorageOption;
150
- name: string;
151
- }[];
152
- get isValidatorCollected(): boolean;
153
- get requiresMobileEndToEndEncryption(): boolean;
154
- get lastReleaseRequest(): Date | undefined;
155
- private get lastCollectedShareType();
156
- private get mergeProcessShares();
157
- private get additionalShareholdersCount();
158
- static fromPrimitives(props: ProtectionPlanPrimitiveProps): ProtectionPlan<{
159
- passphrase: ProtectionPlanPassphrase | undefined;
160
- shares: PlanShare[];
161
- triggers: Trigger[];
162
- id: string;
163
- code: string;
164
- type: "BACKUP" | "INHERITANCE";
165
- status: ProtectionPlanStatus;
166
- contractAddress?: string | undefined;
167
- network?: string | undefined;
168
- privateKeys?: PlanPrivateKeys | undefined;
169
- owner: {
170
- id: string;
171
- firstName: string;
172
- lastName: string;
173
- profilePicture?: string;
174
- };
175
- details: {
176
- name: string;
177
- description?: string;
178
- privateNotes?: string;
179
- };
180
- mergeThreshold: number;
181
- encryptedData?: string | undefined;
182
- isDraft: boolean;
183
- createdAt: Date;
184
- paidAt?: Date | undefined;
185
- activeMergeProcess?: PlanActiveMergeProcess | undefined;
186
- assetsMetadata: any;
187
- assetsConfig?: string | undefined;
188
- lastReleasedAt?: Date | undefined;
189
- mergeCount: number;
190
- lastReleaseRequest?: Date | undefined;
191
- isFree?: boolean | undefined;
192
- configuredAt?: Date | undefined;
193
- }>;
194
- findShareholderByDeviceId(deviceId: string): import("./shareholder").default | undefined;
195
- findShareholderByCriteria(beneficiary: OnlyOne<{
196
- id: string;
197
- email: string;
198
- code: string;
199
- deviceId: string;
200
- }>): import("./shareholder").default | undefined;
201
- markAsPendingShares(): void;
202
- markAsProtected(): void;
203
- findMobileSharesForBeneficiary(deviceId: string): PlanShare[];
204
- findVaultSharesForBeneficiary(deviceId: string): PlanShare[];
205
- findOwnerBeneficiariesVaultShares(loggedUserDeviceId: string): PlanShare[];
206
- getTriggerMergeStatus(triggerId: string): MergeTriggerStatus;
207
- getTriggerStatus(triggerId: string): TriggerStatus;
208
- isMergeAuthority(id: string): boolean;
209
- isUserMergeAuthority(email: string): boolean | undefined;
210
- includesBeneficiary(id: string): boolean;
211
- findBeneficiaryShare(id: string): PlanShare | undefined;
212
- findShareByBeneficiaryEmail(email: string): PlanShare | undefined;
213
- findShareByDeviceId(deviceId: string): PlanShare | undefined;
214
- updateShares(shares: PlanShare[]): void;
215
- updateColdShare(share: PlanShare): void;
216
- updateMobileShare(share: PlanShare): void;
217
- setContractAddress(address: string): void;
218
- setPassphrase(passphrase: ProtectionPlanPassphrase): void;
219
- toPrimitives(): ProtectionPlanPrimitiveProps;
220
- findShare(shareId: string): PlanShare | undefined;
221
- isTriggerActivated(triggerId: TriggerType): boolean;
222
- updatePlanPassphrase(passphrase: ProtectionPlanPassphraseProps): void;
223
- updatePrivateKeys(keys: PlanPrivateKeys): void;
224
- setHexData(data: any): void;
225
- isShareCollected(share: PlanShare): boolean;
226
- updateSharesCreationStatus(type: string, status: ShareCreationStatus, shareId?: string): void;
227
- updateShareDeviceInfo(shareId: string, data: {
228
- deviceId: string;
229
- devicePassword?: string;
230
- }): void;
231
- updateSharesAddresses(type: ShareType, shares: {
232
- [p: string]: string[];
233
- }): void;
234
- findBeneficiariesShares(shareholdersIds: string[]): PlanShare[];
235
- hasTriggersConfigured(triggersIds: string[]): boolean;
236
- hasTriggerConfigured(triggersId: string): boolean;
237
- private sortSharesByMergeProcess;
238
- }
@@ -1,32 +0,0 @@
1
- import StorageOption, { StorageOptionPrimitiveProps } from '../../../protection-plan/domain/models/storage-option';
2
- import Beneficiary, { BeneficiaryPrimitiveProps } from '../../../beneficiary/domain/models/beneficiary';
3
- import { BackupShareholderPrimitiveProps } from '../../../protection-plan/domain/models/backup/backup-shareholder';
4
- export interface ShareholderProps {
5
- id: string;
6
- beneficiary: Beneficiary;
7
- storage: StorageOption;
8
- isMergeAuthority: boolean;
9
- isOwner?: boolean;
10
- }
11
- export interface ShareholderPrimitiveProps extends Omit<ShareholderProps, 'storage' | 'beneficiary'> {
12
- storage: StorageOptionPrimitiveProps;
13
- beneficiary: BeneficiaryPrimitiveProps;
14
- }
15
- export default class Shareholder {
16
- private props;
17
- constructor(props: ShareholderProps);
18
- get beneficiary(): Beneficiary;
19
- get id(): string;
20
- get fullName(): string | undefined;
21
- get lastName(): string | undefined;
22
- get description(): "" | "Wife" | "Husband" | "Spouse" | "Child" | "Grandchild" | "Parent" | "Grandparent" | "Family member" | "Friend" | "Business Partner" | "Colleague" | "Lawyer" | "Notary" | "Trustee" | "Executor" | "Other" | undefined;
23
- get isMergeAuthority(): boolean;
24
- get isOwner(): boolean | undefined;
25
- get profilePictureUrl(): string | undefined;
26
- get email(): string | undefined;
27
- get storage(): StorageOption;
28
- /** @ignore */
29
- static fromPrimitives(props: BackupShareholderPrimitiveProps): Shareholder;
30
- /** @ignore */
31
- toPrimitives(): ShareholderPrimitiveProps;
32
- }
@@ -1,29 +0,0 @@
1
- export type BlockChainStorageOption = 'VECHAIN' | 'ETHEREUM' | 'OPTIMISM' | 'INHERITI_CHAIN';
2
- export type PlanStorageOption = 'SAFEKEY_PRO' | 'SAFEKEY_MOBILE' | 'VAULT' | 'HSM' | BlockChainStorageOption;
3
- export interface StorageOptionProps {
4
- id: PlanStorageOption;
5
- deviceId?: string;
6
- devicePassword?: string;
7
- }
8
- export interface StorageOptionPrimitiveProps extends StorageOptionProps {
9
- }
10
- export default class StorageOption {
11
- private props;
12
- constructor(props: StorageOptionProps);
13
- static get validBlockChainOptions(): BlockChainStorageOption[];
14
- get id(): PlanStorageOption;
15
- get isSafekey(): boolean;
16
- get isSafekeyMobile(): boolean;
17
- get isBlockchain(): boolean;
18
- get deviceId(): string | undefined;
19
- get devicePassword(): string | undefined;
20
- get name(): "HSM" | "SafeKey Pro" | "SafeKey Mobile" | "vechain" | "Ethereum" | "Optimism" | "Inheriti® Chain" | "Vault" | "Unknown Name";
21
- get isBlockChain(): boolean;
22
- get isVault(): boolean;
23
- get isMobile(): boolean;
24
- get isCold(): boolean;
25
- static fromPrimitives(props: StorageOptionPrimitiveProps): StorageOption;
26
- setDeviceId(id: string): void;
27
- setDevicePassword(password: string): void;
28
- toPrimitives(): StorageOptionPrimitiveProps;
29
- }
@@ -1,6 +0,0 @@
1
- export default interface TriggerSettingsInfo {
2
- id: string;
3
- name: string;
4
- description: string;
5
- alternativeDescription: string;
6
- }
@@ -1,46 +0,0 @@
1
- export type TriggerType = 'LOGIN' | 'CLICK_LINK' | 'SAFEKEY_2FA' | 'SMS' | 'PHONE_CALL';
2
- export type TriggerStatus = 'PENDING' | 'LOCKED' | 'UNLOCKED';
3
- export type MergeTriggerStatus = 'PENDING' | 'EXPIRED' | 'LOCKED' | 'DENIED' | 'ACTIVATED';
4
- export interface TriggerProps {
5
- id: TriggerType;
6
- countdown?: {
7
- days: number;
8
- hours: number;
9
- minutes: number;
10
- seconds: number;
11
- };
12
- settings?: {
13
- email?: string;
14
- phone?: string;
15
- };
16
- status: TriggerStatus;
17
- mergeStatus: MergeTriggerStatus;
18
- }
19
- export interface TriggerPrimitiveProps extends Omit<TriggerProps, 'storage'> {
20
- }
21
- export default class Trigger {
22
- private props;
23
- constructor(props: TriggerProps);
24
- static get emailTriggers(): string[];
25
- static get phoneTriggers(): string[];
26
- get id(): TriggerType;
27
- get status(): TriggerStatus;
28
- get viewStatus(): any;
29
- get mergeStatus(): MergeTriggerStatus;
30
- get countdown(): {
31
- days: number;
32
- hours: number;
33
- minutes: number;
34
- seconds: number;
35
- } | undefined;
36
- get isEmailTarget(): boolean;
37
- get isPhoneTarget(): boolean;
38
- get isPending(): boolean;
39
- get isExpired(): boolean;
40
- get isDenied(): boolean;
41
- get target(): string | undefined;
42
- /** @ignore */
43
- static fromPrimitives(props: TriggerPrimitiveProps): Trigger;
44
- /** @ignore */
45
- toPrimitives(): TriggerPrimitiveProps;
46
- }
@@ -1,13 +0,0 @@
1
- import ProtectionPlan from '../../../protection-plan/domain/models/protection-plan';
2
- import ProtectionPlanPassphrase from '../../../protection-plan/domain/models/protection-plan-passphrase';
3
- export default interface MergeAuthorityProtectionPlanRepository {
4
- findAll(): Promise<ProtectionPlan<any>[]>;
5
- find(id: string): Promise<ProtectionPlan<any> | undefined>;
6
- getPassphrase(data: {
7
- processId: string;
8
- planId: string;
9
- }): Promise<{
10
- passphrase: ProtectionPlanPassphrase | null;
11
- assetsMetadata: any;
12
- }>;
13
- }
@@ -1,62 +0,0 @@
1
- import MergingProcess from '../../../protection-plan/domain/models/merging-process/merging-process';
2
- import { ActiveMergeProcess } from '../../../protection-plan/domain/models/merging-process/active-merge-process';
3
- export type MergeProcessFilterCriteria = {
4
- expired?: boolean;
5
- old?: boolean;
6
- planId?: string;
7
- };
8
- export default interface MergingProcessRepository {
9
- find(id: string): Promise<MergingProcess | undefined>;
10
- findByPlanId(id: string): Promise<MergingProcess | undefined>;
11
- update(plan: MergingProcess): Promise<any>;
12
- remove(id: string): Promise<any>;
13
- removeByCriteria(criteria: MergeProcessFilterCriteria): Promise<string[]>;
14
- clean(): Promise<any>;
15
- validateTrigger(data: {
16
- id: string;
17
- verificationId?: string;
18
- triggerId: string;
19
- code?: string;
20
- }): Promise<boolean>;
21
- requestMobileShareRelease(data: {
22
- processId: string;
23
- shareholdersIds: string[];
24
- }): Promise<any>;
25
- startMergeProcess(data: {
26
- id: string;
27
- planId: string;
28
- selectedBeneficiariesIds: string[];
29
- }): Promise<any>;
30
- checkCanCollectShares(id: string): Promise<boolean>;
31
- getActiveProcess(planId: string): Promise<ActiveMergeProcess | undefined>;
32
- sendMergeRequest(planId: string): Promise<any>;
33
- closePlan(mergeProcessId: string): Promise<any>;
34
- sendPlanDataReleased(processId: string, revealOptions: {
35
- timeoutMinutes: number;
36
- }): Promise<any>;
37
- sendPlanSharesMerged(processId: string): Promise<any>;
38
- sendPlanShareStatusEvent(event: {
39
- name: string;
40
- planId: string;
41
- type: string;
42
- shareId?: string;
43
- processId: string;
44
- }): Promise<any>;
45
- createProcess(process: MergingProcess): Promise<any>;
46
- authorizeMergeAuthority(credentials: {
47
- id: string;
48
- source: string;
49
- password: string;
50
- legacyPlanIds?: string[];
51
- }): Promise<void>;
52
- findPlanLegacyId(id: string): Promise<string | undefined>;
53
- migrateLegacyPlanShare(data: {
54
- planId: string;
55
- shareId: string;
56
- deviceCredentials: {
57
- id: string;
58
- password: string;
59
- };
60
- }): Promise<void>;
61
- retryActiveTrigger(processId: string): Promise<void>;
62
- }
@@ -1,7 +0,0 @@
1
- import PlanCreationProcess from '../../../protection-plan/domain/models/plan-creation-proccess/plan-creation-process';
2
- export default interface PlanCreationRepository {
3
- find(id: string): Promise<PlanCreationProcess | undefined>;
4
- save(plan: PlanCreationProcess): Promise<any>;
5
- remove(id: string): Promise<any>;
6
- checkCanProtect(planId: string): Promise<boolean>;
7
- }
@@ -1,7 +0,0 @@
1
- import { ProtectionPlanSecurityLevelRequest } from '../../../protection-plan/application/creation/use-get-protection-plan-security-level';
2
- export default interface PlanSecurityRepository {
3
- calculate(data: ProtectionPlanSecurityLevelRequest): Promise<{
4
- index: number;
5
- evaluation: any;
6
- }>;
7
- }
@@ -1,4 +0,0 @@
1
- import TriggerSettingsInfo from '../../../protection-plan/domain/models/trigger-settings-info';
2
- export default interface PlanTriggersRepository {
3
- findAvailable(): Promise<TriggerSettingsInfo[]>;
4
- }
@@ -1,24 +0,0 @@
1
- import ProtectionPlan from '../../../protection-plan/domain/models/protection-plan';
2
- import PaginationOptions from '../../../_shared/domain/models/pagination-options';
3
- import { ResourceCount } from '../../../_shared/domain/models/resource-count';
4
- import SortOptions from '../../../_shared/domain/models/sort-options';
5
- export type ProtectionPlanFilters = {
6
- id: string;
7
- } | {
8
- beneficiary: {
9
- code: string;
10
- email?: string;
11
- };
12
- } | {
13
- beneficiary: {
14
- code?: string;
15
- email: string;
16
- };
17
- };
18
- export default interface ProtectionPlanRepository {
19
- findByCriteria(filter?: ProtectionPlanFilters, pagination?: PaginationOptions, sort?: SortOptions): Promise<ProtectionPlan<any>[]>;
20
- find(id: string): Promise<ProtectionPlan<any> | undefined>;
21
- count(filter?: ProtectionPlanFilters): Promise<ResourceCount>;
22
- save(plan: ProtectionPlan<any>): Promise<any>;
23
- configure(operation: string, plan: ProtectionPlan<any>): Promise<any>;
24
- }
@@ -1,32 +0,0 @@
1
- import { BlockChainStorageOption } from '../../../protection-plan/domain/models/storage-option';
2
- export default interface BlockchainService {
3
- createSmartContract(planId: string): Promise<{
4
- address: string;
5
- }>;
6
- addValidatorShare(data: {
7
- planId: string;
8
- shareData: any[];
9
- }, contractAddress?: string): Promise<{
10
- passphrase: string;
11
- privateKey: string;
12
- }>;
13
- addBackupShares(data: {
14
- planId: string;
15
- sharesData: string[][];
16
- }, contractAddress?: string): Promise<{
17
- passphrase: string;
18
- privateKey: string;
19
- }>;
20
- getValidatorShare(data: {
21
- processId: string;
22
- chain: BlockChainStorageOption;
23
- }): Promise<any>;
24
- getBackupShares(data: {
25
- processId: string;
26
- chain: BlockChainStorageOption;
27
- }): Promise<any>;
28
- getActiveChains(): Promise<{
29
- id: BlockChainStorageOption;
30
- name: string;
31
- }[]>;
32
- }
@@ -1,4 +0,0 @@
1
- import { ProtectionPlanInput } from '../../../../protection-plan';
2
- export declare class PlanTypeInputValidator {
3
- static validate(input: unknown): ProtectionPlanInput['type'];
4
- }