@safetech/inheriti-client-sdk 1.0.0 → 1.11.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 (256) hide show
  1. package/index.ts +7 -5
  2. package/package.json +20 -22
  3. package/dist/index.d.ts +0 -4
  4. package/dist/index.js +0 -2
  5. package/dist/src/modules/_shared/domain/contexts/data-provider-context.d.ts +0 -2
  6. package/dist/src/modules/_shared/domain/contexts/service-provider-context.d.ts +0 -2
  7. package/dist/src/modules/_shared/domain/contexts/utils-provider-context.d.ts +0 -5
  8. package/dist/src/modules/_shared/domain/errors/getErrorMessage.d.ts +0 -1
  9. package/dist/src/modules/_shared/domain/hooks/resources/use-create.d.ts +0 -18
  10. package/dist/src/modules/_shared/domain/hooks/resources/use-delete.d.ts +0 -19
  11. package/dist/src/modules/_shared/domain/hooks/resources/use-get-list.d.ts +0 -25
  12. package/dist/src/modules/_shared/domain/hooks/resources/use-get-one.d.ts +0 -17
  13. package/dist/src/modules/_shared/domain/hooks/use-data-provider.d.ts +0 -2
  14. package/dist/src/modules/_shared/domain/hooks/use-repository.d.ts +0 -1
  15. package/dist/src/modules/_shared/domain/hooks/use-service-provider.d.ts +0 -2
  16. package/dist/src/modules/_shared/domain/hooks/use-service.d.ts +0 -1
  17. package/dist/src/modules/_shared/domain/hooks/utils-hooks.d.ts +0 -4
  18. package/dist/src/modules/_shared/domain/models/app-utils.d.ts +0 -10
  19. package/dist/src/modules/_shared/domain/models/currency-price.d.ts +0 -39
  20. package/dist/src/modules/_shared/domain/models/currency.d.ts +0 -24
  21. package/dist/src/modules/_shared/domain/models/euro-currency.d.ts +0 -3
  22. package/dist/src/modules/_shared/domain/models/mutation-options.d.ts +0 -8
  23. package/dist/src/modules/_shared/domain/models/mutation.d.ts +0 -5
  24. package/dist/src/modules/_shared/domain/models/pagination-options.d.ts +0 -4
  25. package/dist/src/modules/_shared/domain/models/query-options.d.ts +0 -6
  26. package/dist/src/modules/_shared/domain/models/query.d.ts +0 -5
  27. package/dist/src/modules/_shared/domain/models/resource-count.d.ts +0 -3
  28. package/dist/src/modules/_shared/domain/models/sort-options.d.ts +0 -4
  29. package/dist/src/modules/_shared/domain/models/use-mutation-value.d.ts +0 -13
  30. package/dist/src/modules/_shared/domain/models/use-query-value.d.ts +0 -11
  31. package/dist/src/modules/_shared/domain/services/mutation-creator.d.ts +0 -6
  32. package/dist/src/modules/_shared/domain/services/query-creator.d.ts +0 -6
  33. package/dist/src/modules/_shared/domain/utils/misc/array-utils.d.ts +0 -48
  34. package/dist/src/modules/_shared/domain/utils/misc/datetime-utils.d.ts +0 -40
  35. package/dist/src/modules/_shared/domain/utils/misc/encrypt-utils.d.ts +0 -17
  36. package/dist/src/modules/_shared/domain/utils/misc/number-utils.d.ts +0 -4
  37. package/dist/src/modules/_shared/domain/utils/misc/object-utils.d.ts +0 -76
  38. package/dist/src/modules/_shared/domain/utils/misc/text-utils.d.ts +0 -7
  39. package/dist/src/modules/_shared/domain/utils/misc/uuid-utils.d.ts +0 -6
  40. package/dist/src/modules/_shared/infrastructure/api/api-repository.d.ts +0 -36
  41. package/dist/src/modules/_shared/infrastructure/api/app-payload-encrypter.d.ts +0 -9
  42. package/dist/src/modules/_shared/infrastructure/http/HttpError.d.ts +0 -7
  43. package/dist/src/modules/_shared/infrastructure/http/fetch.d.ts +0 -48
  44. package/dist/src/modules/_shared/infrastructure/local-storage/browser-local-storage.d.ts +0 -9
  45. package/dist/src/modules/_shared/infrastructure/providers/app-data-provider.d.ts +0 -20
  46. package/dist/src/modules/_shared/infrastructure/providers/app-provider.d.ts +0 -15
  47. package/dist/src/modules/_shared/infrastructure/providers/app-service-provider.d.ts +0 -28
  48. package/dist/src/modules/_shared/infrastructure/providers/app-utils-provider.d.ts +0 -175
  49. package/dist/src/modules/_shared/infrastructure/providers/inheriti-client-provider.d.ts +0 -46
  50. package/dist/src/modules/_shared/infrastructure/secure-storage/app-secure-storage.d.ts +0 -8
  51. package/dist/src/modules/_shared/infrastructure/services/hexEncoder.d.ts +0 -4
  52. package/dist/src/modules/_shared/infrastructure/services/react-q-query-creator.d.ts +0 -7
  53. package/dist/src/modules/_shared/infrastructure/services/react-query-mutation-creator.d.ts +0 -7
  54. package/dist/src/modules/_shared/infrastructure/services/safeshareLegacy.d.ts +0 -29
  55. package/dist/src/modules/_shared/infrastructure/session-storage/browser-session-storage.d.ts +0 -12
  56. package/dist/src/modules/_shared/infrastructure/utils/context-selector.d.ts +0 -2
  57. package/dist/src/modules/_shared/infrastructure/utils/get-api-url.d.ts +0 -1
  58. package/dist/src/modules/_shared/infrastructure/utils/set-query-params.d.ts +0 -5
  59. package/dist/src/modules/auth/application/use-auth-dispatch.d.ts +0 -1
  60. package/dist/src/modules/auth/application/use-auth-provider.d.ts +0 -4
  61. package/dist/src/modules/auth/application/use-auth-state.d.ts +0 -1
  62. package/dist/src/modules/auth/application/use-client.d.ts +0 -27
  63. package/dist/src/modules/auth/application/use-ensure-connected-client.d.ts +0 -3
  64. package/dist/src/modules/auth/application/use-get-identity.d.ts +0 -36
  65. package/dist/src/modules/auth/application/use-is-logged-in.d.ts +0 -8
  66. package/dist/src/modules/auth/application/use-login-client.d.ts +0 -6
  67. package/dist/src/modules/auth/application/use-logout-client.d.ts +0 -5
  68. package/dist/src/modules/auth/domain/contexts/auth-provider-context.d.ts +0 -2
  69. package/dist/src/modules/auth/domain/models/auth-credentials.d.ts +0 -3
  70. package/dist/src/modules/auth/domain/models/user-identity.d.ts +0 -28
  71. package/dist/src/modules/auth/domain/services/auth-provider.d.ts +0 -16
  72. package/dist/src/modules/auth/index.d.ts +0 -6
  73. package/dist/src/modules/auth/infrastructure/providers/app-auth-provider.d.ts +0 -30
  74. package/dist/src/modules/auth/infrastructure/providers/app-identity-service.d.ts +0 -9
  75. package/dist/src/modules/auth/infrastructure/providers/auth-constants.d.ts +0 -6
  76. package/dist/src/modules/beneficiary/domain/models/beneficiary-device.d.ts +0 -28
  77. package/dist/src/modules/beneficiary/domain/models/beneficiary-relation.d.ts +0 -13
  78. package/dist/src/modules/beneficiary/domain/models/beneficiary-type.d.ts +0 -16
  79. package/dist/src/modules/beneficiary/domain/models/beneficiary.d.ts +0 -54
  80. package/dist/src/modules/beneficiary/index.d.ts +0 -1
  81. package/dist/src/modules/beneficiary/infrastructure/mappers/beneficiary-mapper.d.ts +0 -6
  82. package/dist/src/modules/protection-plan/application/configuration-process/blockchain/use-create-smart-contract.d.ts +0 -9
  83. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/creation/use-create-backup-shares.d.ts +0 -6
  84. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/creation/use-create-cold-shares.d.ts +0 -6
  85. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/creation/use-create-mobile-shares.d.ts +0 -6
  86. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/creation/use-create-validator-shares.d.ts +0 -6
  87. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/distribution/use-distribute-backup-shares.d.ts +0 -9
  88. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/distribution/use-distribute-cold-share.d.ts +0 -8
  89. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/distribution/use-distribute-mobile-shares.d.ts +0 -9
  90. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/distribution/use-distribute-validator-shares.d.ts +0 -9
  91. package/dist/src/modules/protection-plan/application/configuration-process/use-configure-plan.d.ts +0 -12
  92. package/dist/src/modules/protection-plan/application/configuration-process/use-delete-plan-configuration-process.d.ts +0 -8
  93. package/dist/src/modules/protection-plan/application/configuration-process/use-get-plan-configuration-process.d.ts +0 -12
  94. package/dist/src/modules/protection-plan/application/configuration-process/use-save-plan-creation-process.d.ts +0 -9
  95. package/dist/src/modules/protection-plan/application/creation/use-create-protection-plan.d.ts +0 -24
  96. package/dist/src/modules/protection-plan/application/creation/use-get-available-plan-triggers.d.ts +0 -3
  97. package/dist/src/modules/protection-plan/application/creation/use-get-protection-plan-security-level.d.ts +0 -47
  98. package/dist/src/modules/protection-plan/application/creation/use-persist-protection-plan.d.ts +0 -10
  99. package/dist/src/modules/protection-plan/application/listing/use-find-protection-plan-summary-by-criteria.d.ts +0 -13
  100. package/dist/src/modules/protection-plan/application/listing/use-find-protection-plans-by-criteria.d.ts +0 -15
  101. package/dist/src/modules/protection-plan/application/listing/use-get-protection-plan-summary.d.ts +0 -13
  102. package/dist/src/modules/protection-plan/application/listing/use-is-merge-authority-mode.d.ts +0 -3
  103. package/dist/src/modules/protection-plan/application/listing/use-protection-plan-listener.d.ts +0 -25
  104. package/dist/src/modules/protection-plan/application/merging-process/merge-authority/use-authorize-merge-authority.d.ts +0 -13
  105. package/dist/src/modules/protection-plan/application/merging-process/merge-authority/use-get-merge-authority-protection-plan.d.ts +0 -12
  106. package/dist/src/modules/protection-plan/application/merging-process/merge-authority/use-merge-authority-merge-process-events.d.ts +0 -6
  107. package/dist/src/modules/protection-plan/application/merging-process/merge-triggers/use-retry-active-merge-trigger.d.ts +0 -10
  108. package/dist/src/modules/protection-plan/application/merging-process/merge-triggers/use-validate-merge-trigger.d.ts +0 -12
  109. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/collection/use-collect-backup-shares.d.ts +0 -9
  110. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/collection/use-collect-cold-share.d.ts +0 -8
  111. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/collection/use-collect-mobile-shares.d.ts +0 -5
  112. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/collection/use-collect-released-mobile-shares.d.ts +0 -9
  113. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/collection/use-collect-validator-shares.d.ts +0 -9
  114. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/use-check-can-collect-shares.d.ts +0 -2
  115. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/use-save-release-mobile-share-request.d.ts +0 -11
  116. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/use-send-plan-share-merge-status-event.d.ts +0 -15
  117. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/use-send-plan-shares-merged.d.ts +0 -10
  118. package/dist/src/modules/protection-plan/application/merging-process/use-close-protection-plan.d.ts +0 -10
  119. package/dist/src/modules/protection-plan/application/merging-process/use-create-merging-process.d.ts +0 -9
  120. package/dist/src/modules/protection-plan/application/merging-process/use-delete-merging-process-by-criteria.d.ts +0 -11
  121. package/dist/src/modules/protection-plan/application/merging-process/use-delete-merging-process.d.ts +0 -10
  122. package/dist/src/modules/protection-plan/application/merging-process/use-get-merging-process-by-plan.d.ts +0 -23
  123. package/dist/src/modules/protection-plan/application/merging-process/use-merge-plan-beneficiary-selection.d.ts +0 -27
  124. package/dist/src/modules/protection-plan/application/merging-process/use-persist-merge-process.d.ts +0 -12
  125. package/dist/src/modules/protection-plan/application/merging-process/use-reveal-plan-data.d.ts +0 -13
  126. package/dist/src/modules/protection-plan/application/merging-process/use-save-merging-process.d.ts +0 -9
  127. package/dist/src/modules/protection-plan/application/merging-process/use-scan-plans-from-merge-authority-device.d.ts +0 -10
  128. package/dist/src/modules/protection-plan/application/merging-process/use-shareholder-merge-process-events.d.ts +0 -2
  129. package/dist/src/modules/protection-plan/domain/dto/plan-dto.d.ts +0 -68
  130. package/dist/src/modules/protection-plan/domain/dto/protection-plan-input.d.ts +0 -173
  131. package/dist/src/modules/protection-plan/domain/models/app-process.d.ts +0 -29
  132. package/dist/src/modules/protection-plan/domain/models/backup/backup-plan.d.ts +0 -18
  133. package/dist/src/modules/protection-plan/domain/models/backup/backup-shareholder.d.ts +0 -9
  134. package/dist/src/modules/protection-plan/domain/models/client/protection-plan-summary.d.ts +0 -218
  135. package/dist/src/modules/protection-plan/domain/models/data-asset.d.ts +0 -113
  136. package/dist/src/modules/protection-plan/domain/models/device-share-info.d.ts +0 -10
  137. package/dist/src/modules/protection-plan/domain/models/inheritance/heir.d.ts +0 -9
  138. package/dist/src/modules/protection-plan/domain/models/inheritance/inheritance-plan.d.ts +0 -16
  139. package/dist/src/modules/protection-plan/domain/models/merging-process/active-merge-process.d.ts +0 -15
  140. package/dist/src/modules/protection-plan/domain/models/merging-process/merging-process.d.ts +0 -135
  141. package/dist/src/modules/protection-plan/domain/models/plan-creation-proccess/plan-creation-process.d.ts +0 -69
  142. package/dist/src/modules/protection-plan/domain/models/plan-share.d.ts +0 -69
  143. package/dist/src/modules/protection-plan/domain/models/proccess-step.d.ts +0 -21
  144. package/dist/src/modules/protection-plan/domain/models/protection-plan-details.d.ts +0 -70
  145. package/dist/src/modules/protection-plan/domain/models/protection-plan-passphrase.d.ts +0 -18
  146. package/dist/src/modules/protection-plan/domain/models/protection-plan.d.ts +0 -238
  147. package/dist/src/modules/protection-plan/domain/models/shareholder.d.ts +0 -32
  148. package/dist/src/modules/protection-plan/domain/models/storage-option.d.ts +0 -29
  149. package/dist/src/modules/protection-plan/domain/models/trigger-settings-info.d.ts +0 -6
  150. package/dist/src/modules/protection-plan/domain/models/trigger.d.ts +0 -46
  151. package/dist/src/modules/protection-plan/domain/repositories/merge-authority-protection-plan-repository.d.ts +0 -13
  152. package/dist/src/modules/protection-plan/domain/repositories/merging-process-repository.d.ts +0 -62
  153. package/dist/src/modules/protection-plan/domain/repositories/plan-creation-repository.d.ts +0 -7
  154. package/dist/src/modules/protection-plan/domain/repositories/plan-security-repository.d.ts +0 -7
  155. package/dist/src/modules/protection-plan/domain/repositories/plan-triggers-repository.d.ts +0 -4
  156. package/dist/src/modules/protection-plan/domain/repositories/protection-plan-repository.d.ts +0 -24
  157. package/dist/src/modules/protection-plan/domain/services/blockchain-service.d.ts +0 -32
  158. package/dist/src/modules/protection-plan/domain/services/input-validation/PlanTypeInputValidator.d.ts +0 -4
  159. package/dist/src/modules/protection-plan/domain/services/input-validation/plan-beneficiaries-input-validator.d.ts +0 -240
  160. package/dist/src/modules/protection-plan/domain/services/input-validation/plan-data-assets-input-validator.d.ts +0 -1108
  161. package/dist/src/modules/protection-plan/domain/services/input-validation/plan-details-input-validator.d.ts +0 -23
  162. package/dist/src/modules/protection-plan/domain/services/input-validation/plan-shares-configuration-input-validator.d.ts +0 -13
  163. package/dist/src/modules/protection-plan/domain/services/input-validation/plan-storage-configuration-input-validator.d.ts +0 -25
  164. package/dist/src/modules/protection-plan/domain/services/input-validation/plan-triggers-input-validator.d.ts +0 -105
  165. package/dist/src/modules/protection-plan/domain/services/input-validation/utils/index.d.ts +0 -3
  166. package/dist/src/modules/protection-plan/domain/services/merge-authorization-handler.d.ts +0 -14
  167. package/dist/src/modules/protection-plan/domain/services/merge-process-event-listener.d.ts +0 -14
  168. package/dist/src/modules/protection-plan/domain/services/plan-data-assets-manager.d.ts +0 -69
  169. package/dist/src/modules/protection-plan/domain/services/plan-data-revealer.d.ts +0 -5
  170. package/dist/src/modules/protection-plan/domain/services/plan-event-listener.d.ts +0 -10
  171. package/dist/src/modules/protection-plan/domain/services/plan-merge-threshold-range-calculator.d.ts +0 -8
  172. package/dist/src/modules/protection-plan/domain/services/plan-recovery-shares-range-calculator.d.ts +0 -8
  173. package/dist/src/modules/protection-plan/domain/services/plan-shares-generator.d.ts +0 -18
  174. package/dist/src/modules/protection-plan/domain/services/vault-service.d.ts +0 -10
  175. package/dist/src/modules/protection-plan/domain/utils/plan-details-mapper.d.ts +0 -12
  176. package/dist/src/modules/protection-plan/domain/utils/plan-shares-details-mapper.d.ts +0 -10
  177. package/dist/src/modules/protection-plan/domain/utils/plan-triggers-details-mapper.d.ts +0 -5
  178. package/dist/src/modules/protection-plan/domain/utils/protection-plan-internal-mapper.d.ts +0 -5
  179. package/dist/src/modules/protection-plan/index.d.ts +0 -28
  180. package/dist/src/modules/protection-plan/infrastructure/mappers/backup-shareholder-mapper.d.ts +0 -7
  181. package/dist/src/modules/protection-plan/infrastructure/mappers/draft-protection-plan-mapper.d.ts +0 -8
  182. package/dist/src/modules/protection-plan/infrastructure/mappers/heir-mapper.d.ts +0 -7
  183. package/dist/src/modules/protection-plan/infrastructure/mappers/merging-process-mapper.d.ts +0 -5
  184. package/dist/src/modules/protection-plan/infrastructure/mappers/plan-creation-mapper.d.ts +0 -5
  185. package/dist/src/modules/protection-plan/infrastructure/mappers/protection-plan-filters-mapper.d.ts +0 -4
  186. package/dist/src/modules/protection-plan/infrastructure/mappers/protection-plan-mapper.d.ts +0 -10
  187. package/dist/src/modules/protection-plan/infrastructure/repositories/app-merging-process-repository.d.ts +0 -65
  188. package/dist/src/modules/protection-plan/infrastructure/repositories/app-plan-creation-repository.d.ts +0 -12
  189. package/dist/src/modules/protection-plan/infrastructure/repositories/app-plan-security-repository.d.ts +0 -11
  190. package/dist/src/modules/protection-plan/infrastructure/repositories/app-plan-triggers-repository.d.ts +0 -10
  191. package/dist/src/modules/protection-plan/infrastructure/repositories/protection-plan/app-merge-authority-protection-plan-repository.d.ts +0 -17
  192. package/dist/src/modules/protection-plan/infrastructure/repositories/protection-plan/app-protection-plan-repository.d.ts +0 -13
  193. package/dist/src/modules/protection-plan/infrastructure/services/app-blockchain-service.d.ts +0 -42
  194. package/dist/src/modules/protection-plan/infrastructure/services/app-plan-data-revealer.d.ts +0 -14
  195. package/dist/src/modules/protection-plan/infrastructure/services/app-plan-shares-generator.d.ts +0 -5
  196. package/dist/src/modules/protection-plan/infrastructure/services/constants/device-constants.d.ts +0 -1
  197. package/dist/src/modules/protection-plan/infrastructure/services/inheriti-vault-service.d.ts +0 -15
  198. package/dist/src/modules/protection-plan/infrastructure/services/socket-io-merge-authorization-handler.d.ts +0 -17
  199. package/dist/src/modules/protection-plan/infrastructure/services/socket-io-merge-process-event-listener.d.ts +0 -14
  200. package/dist/src/modules/protection-plan/infrastructure/services/socket-io-plan-event-listener.d.ts +0 -14
  201. package/dist/src/modules/protection-plan/ui/plan-creation-process/hooks/use-distribute-cold-shares-process.d.ts +0 -15
  202. package/dist/src/modules/protection-plan/ui/plan-creation-process/hooks/use-get-active-plan-configuration-process.d.ts +0 -11
  203. package/dist/src/modules/protection-plan/ui/plan-creation-process/hooks/use-plan-configuration-process-steps.d.ts +0 -16
  204. package/dist/src/modules/protection-plan/ui/plan-creation-process/hooks/use-plan-configuration-process.d.ts +0 -25
  205. package/dist/src/modules/protection-plan/ui/plan-creation-process/hooks/use-start-protection-plan-configuration-process.d.ts +0 -10
  206. package/dist/src/modules/protection-plan/ui/plan-creation-process/view-models/plan-configuration-process-view.d.ts +0 -55
  207. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/merge-athority/use-merge-authority-sk-mobile-plan-detection.d.ts +0 -13
  208. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/merge-athority/use-merge-authority-sk-pro-plan-detection.d.ts +0 -12
  209. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-abort-merge-process.d.ts +0 -6
  210. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-active-merge-process-listener.d.ts +0 -9
  211. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-collect-plan-cold-share-process.d.ts +0 -13
  212. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-count-down.d.ts +0 -7
  213. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-initialize-merging-process.d.ts +0 -21
  214. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-merge-process-controller.d.ts +0 -13
  215. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-merge-process-release-shares-controller.d.ts +0 -9
  216. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-plan-merge-process.d.ts +0 -55
  217. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-process-plan-merge-steps.d.ts +0 -11
  218. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-reveal-data-controller.d.ts +0 -26
  219. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-start-merge-process.d.ts +0 -20
  220. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-trigger-countdown.d.ts +0 -18
  221. package/dist/src/modules/protection-plan/ui/plan-merge-process/utils/merge-process-utils.d.ts +0 -3
  222. package/dist/src/modules/protection-plan/ui/plan-merge-process/view-models/plan-merge-process-view.d.ts +0 -173
  223. package/dist/src/modules/protection-plan/ui/protection-plan/utils/plan-beneficiary-builder.d.ts +0 -12
  224. package/dist/src/modules/protection-plan/ui/protection-plan/utils/plan-data-asset-builder.d.ts +0 -35
  225. package/dist/src/modules/protection-plan/ui/protection-plan/utils/protection-plan-code.d.ts +0 -7
  226. package/dist/src/modules/protection-plan/ui/protection-plan/utils/protection-plan-id.d.ts +0 -7
  227. package/dist/src/modules/protection-plan/ui/protection-plan/utils/trigger-builder.d.ts +0 -24
  228. package/dist/src/modules/safekey/application/use-connect-safekey-pro-device.d.ts +0 -10
  229. package/dist/src/modules/safekey/application/use-disconnect-safekey-device.d.ts +0 -8
  230. package/dist/src/modules/safekey/application/use-safekey-device.d.ts +0 -16
  231. package/dist/src/modules/safekey/application/use-validate-safekey-device-pin.d.ts +0 -12
  232. package/dist/src/modules/safekey/domain/services/cold-storage-service.d.ts +0 -55
  233. package/dist/src/modules/safekey/index.d.ts +0 -4
  234. package/dist/src/modules/safekey/infrastructure/services/safekey-cold-storage-service.d.ts +0 -45
  235. package/dist/src/modules/safekey/infrastructure/services/safekey-service.d.ts +0 -9
  236. package/dist/test/index.js +0 -14
  237. package/dist/tests/modules/_shared/domain/models/FinancialMother.d.ts +0 -11
  238. package/dist/tests/modules/_shared/domain/models/date-mother.d.ts +0 -6
  239. package/dist/tests/modules/_shared/domain/models/email-mother.d.ts +0 -3
  240. package/dist/tests/modules/_shared/domain/models/id-mother.d.ts +0 -3
  241. package/dist/tests/modules/_shared/domain/models/internet-mother.d.ts +0 -11
  242. package/dist/tests/modules/_shared/domain/models/mother-creator.d.ts +0 -3
  243. package/dist/tests/modules/_shared/domain/models/name-mother.d.ts +0 -5
  244. package/dist/tests/modules/_shared/domain/models/number-mother.d.ts +0 -7
  245. package/dist/tests/modules/_shared/domain/models/random-element-picker-mother.d.ts +0 -3
  246. package/dist/tests/modules/_shared/domain/models/uuid-mother.d.ts +0 -3
  247. package/dist/tests/modules/_shared/domain/models/word-mother.d.ts +0 -5
  248. package/dist/tests/modules/index.d.ts +0 -6
  249. package/dist/tests/modules/protection-plan/domain/plan-beneficiary-input-generator.d.ts +0 -18
  250. package/dist/tests/modules/protection-plan/domain/plan-data-asset-input-generator.d.ts +0 -13
  251. package/dist/tests/modules/protection-plan/domain/plan-details-input-generator.d.ts +0 -7
  252. package/dist/tests/modules/protection-plan/domain/plan-shares-configuration-input-generator.d.ts +0 -20
  253. package/dist/tests/modules/protection-plan/domain/plan-storage-configuration-input-generator.d.ts +0 -4
  254. package/dist/tests/modules/protection-plan/domain/plan-trigger-input-generator.d.ts +0 -27
  255. package/dist/tests/modules/protection-plan/domain/protection-plan-input-generator.d.ts +0 -4
  256. package/dist/tests/modules/protection-plan/index.d.ts +0 -8
@@ -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
- }
@@ -1,240 +0,0 @@
1
- import { z } from 'zod';
2
- import { PlanBeneficiaryInput } from '../../../../protection-plan';
3
- export declare const PlanBeneficiaryInputSchema: z.ZodDiscriminatedUnion<"storage", [z.ZodObject<{
4
- isMergeAuthority: z.ZodBoolean;
5
- isOwner: z.ZodOptional<z.ZodBoolean>;
6
- } & {
7
- storage: z.ZodLiteral<"SAFEKEY_PRO">;
8
- details: z.ZodObject<{
9
- id: z.ZodOptional<z.ZodString>;
10
- code: z.ZodOptional<z.ZodString>;
11
- firstName: z.ZodString;
12
- lastName: z.ZodString;
13
- } & {
14
- email: z.ZodOptional<z.ZodString>;
15
- }, "strip", z.ZodTypeAny, {
16
- firstName: string;
17
- lastName: string;
18
- id?: string | undefined;
19
- code?: string | undefined;
20
- email?: string | undefined;
21
- }, {
22
- firstName: string;
23
- lastName: string;
24
- id?: string | undefined;
25
- code?: string | undefined;
26
- email?: string | undefined;
27
- }>;
28
- }, "strip", z.ZodTypeAny, {
29
- storage: "SAFEKEY_PRO";
30
- isMergeAuthority: boolean;
31
- details: {
32
- firstName: string;
33
- lastName: string;
34
- id?: string | undefined;
35
- code?: string | undefined;
36
- email?: string | undefined;
37
- };
38
- isOwner?: boolean | undefined;
39
- }, {
40
- storage: "SAFEKEY_PRO";
41
- isMergeAuthority: boolean;
42
- details: {
43
- firstName: string;
44
- lastName: string;
45
- id?: string | undefined;
46
- code?: string | undefined;
47
- email?: string | undefined;
48
- };
49
- isOwner?: boolean | undefined;
50
- }>, z.ZodObject<{
51
- isMergeAuthority: z.ZodBoolean;
52
- isOwner: z.ZodOptional<z.ZodBoolean>;
53
- } & {
54
- storage: z.ZodLiteral<"SAFEKEY_MOBILE">;
55
- details: z.ZodObject<{
56
- id: z.ZodOptional<z.ZodString>;
57
- code: z.ZodOptional<z.ZodString>;
58
- firstName: z.ZodString;
59
- lastName: z.ZodString;
60
- } & {
61
- email: z.ZodString;
62
- }, "strip", z.ZodTypeAny, {
63
- firstName: string;
64
- lastName: string;
65
- email: string;
66
- id?: string | undefined;
67
- code?: string | undefined;
68
- }, {
69
- firstName: string;
70
- lastName: string;
71
- email: string;
72
- id?: string | undefined;
73
- code?: string | undefined;
74
- }>;
75
- }, "strip", z.ZodTypeAny, {
76
- storage: "SAFEKEY_MOBILE";
77
- isMergeAuthority: boolean;
78
- details: {
79
- firstName: string;
80
- lastName: string;
81
- email: string;
82
- id?: string | undefined;
83
- code?: string | undefined;
84
- };
85
- isOwner?: boolean | undefined;
86
- }, {
87
- storage: "SAFEKEY_MOBILE";
88
- isMergeAuthority: boolean;
89
- details: {
90
- firstName: string;
91
- lastName: string;
92
- email: string;
93
- id?: string | undefined;
94
- code?: string | undefined;
95
- };
96
- isOwner?: boolean | undefined;
97
- }>]>;
98
- export declare const PlanBeneficiaryArraySchema: z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"storage", [z.ZodObject<{
99
- isMergeAuthority: z.ZodBoolean;
100
- isOwner: z.ZodOptional<z.ZodBoolean>;
101
- } & {
102
- storage: z.ZodLiteral<"SAFEKEY_PRO">;
103
- details: z.ZodObject<{
104
- id: z.ZodOptional<z.ZodString>;
105
- code: z.ZodOptional<z.ZodString>;
106
- firstName: z.ZodString;
107
- lastName: z.ZodString;
108
- } & {
109
- email: z.ZodOptional<z.ZodString>;
110
- }, "strip", z.ZodTypeAny, {
111
- firstName: string;
112
- lastName: string;
113
- id?: string | undefined;
114
- code?: string | undefined;
115
- email?: string | undefined;
116
- }, {
117
- firstName: string;
118
- lastName: string;
119
- id?: string | undefined;
120
- code?: string | undefined;
121
- email?: string | undefined;
122
- }>;
123
- }, "strip", z.ZodTypeAny, {
124
- storage: "SAFEKEY_PRO";
125
- isMergeAuthority: boolean;
126
- details: {
127
- firstName: string;
128
- lastName: string;
129
- id?: string | undefined;
130
- code?: string | undefined;
131
- email?: string | undefined;
132
- };
133
- isOwner?: boolean | undefined;
134
- }, {
135
- storage: "SAFEKEY_PRO";
136
- isMergeAuthority: boolean;
137
- details: {
138
- firstName: string;
139
- lastName: string;
140
- id?: string | undefined;
141
- code?: string | undefined;
142
- email?: string | undefined;
143
- };
144
- isOwner?: boolean | undefined;
145
- }>, z.ZodObject<{
146
- isMergeAuthority: z.ZodBoolean;
147
- isOwner: z.ZodOptional<z.ZodBoolean>;
148
- } & {
149
- storage: z.ZodLiteral<"SAFEKEY_MOBILE">;
150
- details: z.ZodObject<{
151
- id: z.ZodOptional<z.ZodString>;
152
- code: z.ZodOptional<z.ZodString>;
153
- firstName: z.ZodString;
154
- lastName: z.ZodString;
155
- } & {
156
- email: z.ZodString;
157
- }, "strip", z.ZodTypeAny, {
158
- firstName: string;
159
- lastName: string;
160
- email: string;
161
- id?: string | undefined;
162
- code?: string | undefined;
163
- }, {
164
- firstName: string;
165
- lastName: string;
166
- email: string;
167
- id?: string | undefined;
168
- code?: string | undefined;
169
- }>;
170
- }, "strip", z.ZodTypeAny, {
171
- storage: "SAFEKEY_MOBILE";
172
- isMergeAuthority: boolean;
173
- details: {
174
- firstName: string;
175
- lastName: string;
176
- email: string;
177
- id?: string | undefined;
178
- code?: string | undefined;
179
- };
180
- isOwner?: boolean | undefined;
181
- }, {
182
- storage: "SAFEKEY_MOBILE";
183
- isMergeAuthority: boolean;
184
- details: {
185
- firstName: string;
186
- lastName: string;
187
- email: string;
188
- id?: string | undefined;
189
- code?: string | undefined;
190
- };
191
- isOwner?: boolean | undefined;
192
- }>]>, "many">, ({
193
- storage: "SAFEKEY_PRO";
194
- isMergeAuthority: boolean;
195
- details: {
196
- firstName: string;
197
- lastName: string;
198
- id?: string | undefined;
199
- code?: string | undefined;
200
- email?: string | undefined;
201
- };
202
- isOwner?: boolean | undefined;
203
- } | {
204
- storage: "SAFEKEY_MOBILE";
205
- isMergeAuthority: boolean;
206
- details: {
207
- firstName: string;
208
- lastName: string;
209
- email: string;
210
- id?: string | undefined;
211
- code?: string | undefined;
212
- };
213
- isOwner?: boolean | undefined;
214
- })[], ({
215
- storage: "SAFEKEY_PRO";
216
- isMergeAuthority: boolean;
217
- details: {
218
- firstName: string;
219
- lastName: string;
220
- id?: string | undefined;
221
- code?: string | undefined;
222
- email?: string | undefined;
223
- };
224
- isOwner?: boolean | undefined;
225
- } | {
226
- storage: "SAFEKEY_MOBILE";
227
- isMergeAuthority: boolean;
228
- details: {
229
- firstName: string;
230
- lastName: string;
231
- email: string;
232
- id?: string | undefined;
233
- code?: string | undefined;
234
- };
235
- isOwner?: boolean | undefined;
236
- })[]>;
237
- export declare class PlanBeneficiaryInputValidator {
238
- static validateOne(input: unknown): PlanBeneficiaryInput;
239
- static validate(input: unknown): PlanBeneficiaryInput[];
240
- }