@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,4 +0,0 @@
1
- /**
2
- * Get the authProvider stored in the context
3
- */
4
- export default function useAuthProvider(selector?: any): any;
@@ -1 +0,0 @@
1
- export default function useAuthState(selector: any): any;
@@ -1,27 +0,0 @@
1
- import { AuthClientProps } from '../../_shared/infrastructure/providers/inheriti-client-provider';
2
- import { LoginReturn } from './use-login-client';
3
- import { LogoutReturn } from './use-logout-client';
4
- /**
5
- * Custom hook to access the current authenticated client and connection utilities.
6
- *
7
- * This hook provides:
8
- * - The current client object (with `id` and `env`) if connected, or `undefined` otherwise.
9
- * - A `connect` function to initiate the client connection.
10
- * - A `disconnect` function to terminate the client session.
11
- * - A `loading` boolean indicating if a connection or disconnection is in progress.
12
- * - An `isConnected` boolean indicating whether a client is currently connected.
13
- *
14
- * @returns An object containing:
15
- * - `client`: `{ id, env }` if connected, or `undefined`.
16
- * - `connect`: Function to initiate client connection.
17
- * - `disconnect`: Function to disconnect the client.
18
- * - `loading`: Boolean indicating connection or disconnection state.
19
- * - `isConnected`: Boolean that is `true` if a client is connected, otherwise `false`.
20
- */
21
- export default function useClient(): ClientReturn;
22
- type ClientReturn = LogoutReturn & LoginReturn & {
23
- isConnected: boolean;
24
- } & {
25
- client: AuthClientProps | undefined;
26
- };
27
- export {};
@@ -1,3 +0,0 @@
1
- export default function useEnsureConnectedClient(): {
2
- check(): Promise<boolean>;
3
- };
@@ -1,36 +0,0 @@
1
- import UserIdentity from '../domain/models/user-identity';
2
- /**
3
- * Hook to fetch the identity of the current user from the authentication provider.
4
- *
5
- * It handles loading and error states, providing the identity once it is fetched.
6
- * The hook returns an object with:
7
- * - `loading`: Boolean indicating if the identity is being fetched.
8
- * - `loaded`: Boolean indicating if the fetching is complete (success or failure).
9
- * - `identity`: The identity of the user if fetched successfully.
10
- * - `error`: Any error that occurred during the fetching process.
11
- *
12
- * @returns The current state, including loading, loaded, identity, and error states.
13
- */
14
- export default function useGetIdentity(): GetIdentityState;
15
- /**
16
- * State object returned by `useGetIdentity` hook.
17
- * Contains information about the loading, identity, and error states.
18
- */
19
- export interface GetIdentityState {
20
- /**
21
- * Whether the identity is still being fetched.
22
- */
23
- loading: boolean;
24
- /**
25
- * Whether the identity has finished loading (success or failure).
26
- */
27
- loaded: boolean;
28
- /**
29
- * The user identity, if fetched successfully.
30
- */
31
- identity?: UserIdentity;
32
- /**
33
- * The error, if an error occurred while fetching the identity.
34
- */
35
- error?: any;
36
- }
@@ -1,8 +0,0 @@
1
- export default function useIsLoggedIn(): {
2
- loading: boolean;
3
- isLoggedIn: boolean;
4
- check: () => Promise<boolean>;
5
- };
6
- export declare function useIsAuthenticated(): {
7
- isAuthenticated: boolean;
8
- };
@@ -1,6 +0,0 @@
1
- import { AuthClientProps } from '../../_shared/infrastructure/providers/inheriti-client-provider';
2
- export type LoginReturn = {
3
- loading: boolean;
4
- connect: (params: AuthClientProps) => Promise<any>;
5
- };
6
- export default function useLoginClient(): LoginReturn;
@@ -1,5 +0,0 @@
1
- export type LogoutReturn = {
2
- disconnect: () => Promise<any>;
3
- loading: boolean;
4
- };
5
- export default function useLogoutClient(): LogoutReturn;
@@ -1,2 +0,0 @@
1
- declare const AuthProviderContext: import("use-context-selector").Context<any>;
2
- export default AuthProviderContext;
@@ -1,3 +0,0 @@
1
- export default interface AuthCredentials {
2
- clientKey: string;
3
- }
@@ -1,28 +0,0 @@
1
- export interface UserIdentityProfile {
2
- id: string;
3
- email: string;
4
- firstName: string;
5
- lastName: string;
6
- profilePictureUrl?: string;
7
- code: string;
8
- createdAt: Date;
9
- }
10
- export interface UserIdentityProps {
11
- profile?: UserIdentityProfile;
12
- }
13
- export interface UserIdentityPrimitiveProps extends UserIdentityProps {
14
- }
15
- export default class UserIdentity {
16
- private props;
17
- constructor(props: UserIdentityProps);
18
- get id(): string | undefined;
19
- get code(): string | undefined;
20
- get createdAt(): Date | undefined;
21
- get firstName(): string | undefined;
22
- get lastName(): string | undefined;
23
- get profilePictureUrl(): string | undefined;
24
- get fullName(): string;
25
- get email(): string | undefined;
26
- static fromPrimitives(props: UserIdentityPrimitiveProps): UserIdentity;
27
- toPrimitives(): UserIdentityPrimitiveProps;
28
- }
@@ -1,16 +0,0 @@
1
- import UserIdentity from '../models/user-identity';
2
- import AuthCredentials from '../models/auth-credentials';
3
- import { AuthClientProps } from "../../../_shared/infrastructure/providers/inheriti-client-provider";
4
- export default interface AuthProvider {
5
- state: any;
6
- dispatch: any;
7
- login(client: AuthClientProps): Promise<any>;
8
- logout(params: any): Promise<void | false | string>;
9
- checkAuth(params: any): Promise<{
10
- token: string;
11
- refreshToken: string;
12
- }>;
13
- checkIdentity(credentials: AuthCredentials): Promise<any>;
14
- getIdentity?(): Promise<UserIdentity | null>;
15
- updateIdentity(params: any): Promise<void>;
16
- }
@@ -1,6 +0,0 @@
1
- /**
2
- * @module Authentication
3
- */
4
- export { default as useClient } from './application/use-client';
5
- export { default as InheritiClientProvider, type InheritiClientProviderProps, type ValidEnv } from '../_shared/infrastructure/providers/inheriti-client-provider';
6
- export { default as useGetIdentity, type GetIdentityState } from './application/use-get-identity';
@@ -1,30 +0,0 @@
1
- import AuthCredentials from '../../../auth/domain/models/auth-credentials';
2
- import UserIdentity from '../../../auth/domain/models/user-identity';
3
- import AuthProvider from '../../../auth/domain/services/auth-provider';
4
- import { ValidEnv } from "../../../_shared/infrastructure/providers/inheriti-client-provider";
5
- export default class AppAuthProvider implements AuthProvider {
6
- private authProps;
7
- state: any;
8
- dispatch: any;
9
- private identityService;
10
- private sessionStorage;
11
- private localStorage;
12
- constructor(authProps: {
13
- client: {
14
- key: string;
15
- options: {
16
- env: ValidEnv;
17
- };
18
- };
19
- });
20
- login(client: any): Promise<any>;
21
- checkAuth(params: any): Promise<{
22
- token: string;
23
- refreshToken: string;
24
- }>;
25
- getIdentity(): Promise<UserIdentity | null>;
26
- updateIdentity(values: any): Promise<void>;
27
- checkIdentity(credentials: AuthCredentials): Promise<any>;
28
- logout(params: any): Promise<void | false | string>;
29
- private saveUserSession;
30
- }
@@ -1,9 +0,0 @@
1
- import UserIdentity from '../../../auth/domain/models/user-identity';
2
- import AuthCredentials from '../../../auth/domain/models/auth-credentials';
3
- export default class AppIdentityService {
4
- private localStorage;
5
- constructor();
6
- checkIdentity(credentials: AuthCredentials): Promise<any>;
7
- updateIdentity(values: any): Promise<void>;
8
- getIdentity(): Promise<UserIdentity | null>;
9
- }
@@ -1,6 +0,0 @@
1
- export declare const userDataKeyName = "inheriti_client_data";
2
- export declare const apiTokenName = "inheriti_client_token";
3
- export declare const apiRefreshTokenName = "inheriti_client_refresh_token";
4
- export declare const mergeAuthorityToken = "inheriti_client_merge_authority_token";
5
- export declare const mergingProcessKey = "inheriti_client_merging_process";
6
- export declare const userSkProReadPlansIdsName = "inheriti_client_sk_pro_read_plans_ids";
@@ -1,28 +0,0 @@
1
- export interface BeneficiaryDeviceProps {
2
- id: string;
3
- code: string;
4
- beneficiaryId: string;
5
- type: string;
6
- plans: {
7
- id: string;
8
- name: string;
9
- }[];
10
- }
11
- export interface BeneficiaryDevicePrimitiveProps extends Omit<BeneficiaryDeviceProps, 'id' | 'beneficiaryId'> {
12
- id: string;
13
- beneficiaryId: string;
14
- }
15
- export default class BeneficiaryDevice {
16
- private props;
17
- constructor(props: BeneficiaryDeviceProps);
18
- get id(): string;
19
- get code(): string;
20
- get type(): "SAFEKEY_PRO" | "SAFEKEY_MOBILE";
21
- get plans(): {
22
- id: string;
23
- name: string;
24
- }[];
25
- get name(): "SafeKey Pro" | "SafeKey Mobile";
26
- static fromPrimitives(props: BeneficiaryDevicePrimitiveProps): BeneficiaryDevice;
27
- toPrimitives(): BeneficiaryDevicePrimitiveProps;
28
- }
@@ -1,13 +0,0 @@
1
- export interface BeneficiaryRelationProps {
2
- id: string;
3
- }
4
- export interface BeneficiaryRelationPrimitiveProps extends BeneficiaryRelationProps {
5
- }
6
- export default class BeneficiaryRelation {
7
- private props;
8
- constructor(props: BeneficiaryRelationProps);
9
- get id(): string;
10
- get name(): "" | "Wife" | "Husband" | "Spouse" | "Child" | "Grandchild" | "Parent" | "Grandparent" | "Family member" | "Friend" | "Business Partner" | "Colleague" | "Lawyer" | "Notary" | "Trustee" | "Executor" | "Other";
11
- static fromPrimitives(props: BeneficiaryRelationPrimitiveProps): BeneficiaryRelation;
12
- toPrimitives(): BeneficiaryRelationPrimitiveProps;
13
- }
@@ -1,16 +0,0 @@
1
- export type BeneficiaryTypeKey = 'HEIR' | 'SHAREHOLDER';
2
- export interface BeneficiaryTypeProps {
3
- id: BeneficiaryTypeKey;
4
- }
5
- export interface BeneficiaryTypePrimitiveProps extends BeneficiaryTypeProps {
6
- }
7
- export default class BeneficiaryType {
8
- private props;
9
- constructor(props: BeneficiaryTypeProps);
10
- get id(): BeneficiaryTypeKey;
11
- get name(): "Unknown Name" | "Heir" | "Shareholder";
12
- get isHeir(): boolean;
13
- get isShareholder(): boolean;
14
- static fromPrimitives(props: BeneficiaryTypePrimitiveProps): BeneficiaryType;
15
- toPrimitives(): BeneficiaryTypePrimitiveProps;
16
- }
@@ -1,54 +0,0 @@
1
- import BeneficiaryType, { BeneficiaryTypePrimitiveProps } from '../../../beneficiary/domain/models/beneficiary-type';
2
- import BeneficiaryRelation, { BeneficiaryRelationPrimitiveProps } from '../../../beneficiary/domain/models/beneficiary-relation';
3
- import BeneficiaryDevice, { BeneficiaryDevicePrimitiveProps } from '../../../beneficiary/domain/models/beneficiary-device';
4
- export interface BeneficiaryProps {
5
- id: string;
6
- firstName: string;
7
- lastName?: string;
8
- email?: string;
9
- code?: string;
10
- relation?: BeneficiaryRelation;
11
- profilePictureUrl?: string;
12
- types: BeneficiaryType[];
13
- summary?: {
14
- backup: number;
15
- inheritance: number;
16
- planShares: number;
17
- storageDevices: number;
18
- mergeAuthority: number;
19
- };
20
- devices: BeneficiaryDevice[];
21
- }
22
- export interface BeneficiaryPrimitiveProps extends Omit<BeneficiaryProps, 'types' | 'relation' | 'devices'> {
23
- types: BeneficiaryTypePrimitiveProps[];
24
- relation?: BeneficiaryRelationPrimitiveProps;
25
- devices: BeneficiaryDevicePrimitiveProps[];
26
- }
27
- export default class Beneficiary {
28
- private props;
29
- constructor(props: BeneficiaryProps);
30
- get id(): string;
31
- get code(): string | undefined;
32
- get devices(): BeneficiaryDevice[];
33
- get fullName(): string | undefined;
34
- get firstName(): string;
35
- get lastName(): string | undefined;
36
- get description(): "" | "Wife" | "Husband" | "Spouse" | "Child" | "Grandchild" | "Parent" | "Grandparent" | "Family member" | "Friend" | "Business Partner" | "Colleague" | "Lawyer" | "Notary" | "Trustee" | "Executor" | "Other" | undefined;
37
- get hasConnection(): boolean;
38
- get profilePictureUrl(): string | undefined;
39
- get email(): string | undefined;
40
- get types(): BeneficiaryType[];
41
- get typeNames(): string;
42
- get protectionPlansCount(): number;
43
- get involvement(): {
44
- backup: number;
45
- inheritance: number;
46
- planShares: number;
47
- storageDevices: number;
48
- mergeAuthority: number;
49
- } | undefined;
50
- static fromPrimitives(props: BeneficiaryPrimitiveProps): Beneficiary;
51
- update(props: Partial<BeneficiaryProps>): void;
52
- includesType(type: string): boolean;
53
- toPrimitives(): BeneficiaryPrimitiveProps;
54
- }
@@ -1 +0,0 @@
1
- export { default as Beneficiary } from './domain/models/beneficiary';
@@ -1,6 +0,0 @@
1
- import Beneficiary from '../../../beneficiary/domain/models/beneficiary';
2
- export default class BeneficiaryMapper {
3
- static toDomain(item: any): Beneficiary;
4
- static toDomainFromArray(items: any[]): Beneficiary[];
5
- static toPersistence(item: Beneficiary): Partial<any>;
6
- }
@@ -1,9 +0,0 @@
1
- import PlanCreationProcess from '../../../../protection-plan/domain/models/plan-creation-proccess/plan-creation-process';
2
- export default function useCreateSmartContract(): {
3
- create: (process: PlanCreationProcess) => Promise<any>;
4
- reset: () => any;
5
- loading: boolean;
6
- loaded: boolean;
7
- data: any;
8
- error: any;
9
- };
@@ -1,6 +0,0 @@
1
- import PlanCreationProcess from '../../../../../protection-plan/domain/models/plan-creation-proccess/plan-creation-process';
2
- export default function useCreateBackupShares(): {
3
- create: (process: PlanCreationProcess, shares: {
4
- [shareId: string]: string[];
5
- }) => Promise<void>;
6
- };
@@ -1,6 +0,0 @@
1
- import PlanCreationProcess from '../../../../../protection-plan/domain/models/plan-creation-proccess/plan-creation-process';
2
- export default function useCreateColdShares(): {
3
- create: (process: PlanCreationProcess, shares: {
4
- [shareId: string]: string[];
5
- }) => Promise<void>;
6
- };
@@ -1,6 +0,0 @@
1
- import PlanCreationProcess from '../../../../../protection-plan/domain/models/plan-creation-proccess/plan-creation-process';
2
- export default function useCreateMobileShares(): {
3
- create: (process: PlanCreationProcess, shares: {
4
- [shareId: string]: string[];
5
- }) => Promise<void>;
6
- };
@@ -1,6 +0,0 @@
1
- import PlanCreationProcess from '../../../../../protection-plan/domain/models/plan-creation-proccess/plan-creation-process';
2
- export default function useCreateValidatorShares(): {
3
- create: (process: PlanCreationProcess, shares: {
4
- [shareId: string]: string[];
5
- }) => Promise<void>;
6
- };
@@ -1,9 +0,0 @@
1
- import PlanCreationProcess from '../../../../../protection-plan/domain/models/plan-creation-proccess/plan-creation-process';
2
- export default function useDistributeBackupShares(): {
3
- distribute: (process: PlanCreationProcess) => Promise<any>;
4
- reset: () => any;
5
- loading: boolean;
6
- loaded: boolean;
7
- data: any;
8
- error: any;
9
- };
@@ -1,8 +0,0 @@
1
- import PlanCreationProcess from '../../../../../protection-plan/domain/models/plan-creation-proccess/plan-creation-process';
2
- import PlanShare from '../../../../../protection-plan/domain/models/plan-share';
3
- import { IOResponse } from '../../../../../safekey/domain/services/cold-storage-service';
4
- export default function useDistributeColdShare(): {
5
- distribute: (process: PlanCreationProcess, share: PlanShare) => Promise<void>;
6
- ioResponse: IOResponse | undefined;
7
- error: string | undefined;
8
- };
@@ -1,9 +0,0 @@
1
- import PlanCreationProcess from '../../../../../protection-plan/domain/models/plan-creation-proccess/plan-creation-process';
2
- export default function useDistributeMobileShares(): {
3
- distribute: (process: PlanCreationProcess) => Promise<any>;
4
- reset: () => any;
5
- loading: boolean;
6
- loaded: boolean;
7
- data: any;
8
- error: any;
9
- };
@@ -1,9 +0,0 @@
1
- import PlanCreationProcess from '../../../../../protection-plan/domain/models/plan-creation-proccess/plan-creation-process';
2
- export default function useDistributeValidatorShares(): {
3
- distribute: (process: PlanCreationProcess) => Promise<any>;
4
- reset: () => any;
5
- loading: boolean;
6
- loaded: boolean;
7
- data: any;
8
- error: any;
9
- };
@@ -1,12 +0,0 @@
1
- import ProtectionPlan from '../../../protection-plan/domain/models/protection-plan';
2
- export default function useConfigurePlan(): {
3
- save: (newInstanceData?: {
4
- operation: string;
5
- plan: ProtectionPlan<any>;
6
- } | undefined) => Promise<any>;
7
- reset: () => any;
8
- loading: boolean;
9
- loaded: boolean;
10
- data: any;
11
- error: any;
12
- };
@@ -1,8 +0,0 @@
1
- export default function useDeletePlanConfigurationProcess(): {
2
- delete: (id: string, additionalParams?: any) => Promise<void>;
3
- reset: () => any;
4
- loading: boolean;
5
- loaded: boolean;
6
- data: null;
7
- error: any;
8
- };
@@ -1,12 +0,0 @@
1
- import QueryOptions from '../../../_shared/domain/models/query-options';
2
- import PlanCreationProcess from '../../../protection-plan/domain/models/plan-creation-proccess/plan-creation-process';
3
- export default function useGetPlanConfigurationProcess(id: string, options?: QueryOptions): {
4
- error?: any;
5
- isIdle: boolean;
6
- loading: boolean;
7
- loaded: boolean;
8
- refetch: any;
9
- isFetching: boolean;
10
- isRefetching: boolean;
11
- data?: PlanCreationProcess | undefined;
12
- };
@@ -1,9 +0,0 @@
1
- import PlanCreationProcess from '../../../protection-plan/domain/models/plan-creation-proccess/plan-creation-process';
2
- export default function useSavePlanCreationProcess(invalidate?: boolean): {
3
- save: (newInstanceData?: PlanCreationProcess | undefined) => Promise<any>;
4
- reset: () => any;
5
- loading: boolean;
6
- loaded: boolean;
7
- data: any;
8
- error: any;
9
- };
@@ -1,24 +0,0 @@
1
- import { ProtectionPlanInput } from '../../../protection-plan/domain/dto/protection-plan-input';
2
- import { ProtectionPlanSummary } from '../../../protection-plan/domain/models/client/protection-plan-summary';
3
- /**
4
- * Custom hook for creating a protection plan using the `useCreateProtectionPlan` hook.
5
- *
6
- * It provides a `create` function that accepts the plan properties (`ProtectionPlanInput`),
7
- * maps them to internal plan data, and then saves the plan. Once saved, it returns
8
- * a summary of the protection plan.
9
- *
10
- * @returns An object with the `create` function for creating a new protection plan
11
- */
12
- export default function useCreateProtectionPlan(): {
13
- /**
14
- * Create a new protection plan based on the provided properties.
15
- *
16
- * @param props - The properties used to create the new protection plan.
17
- * @returns A summary of the created protection plan.
18
- * @see ProtectionPlanInput for the structure of the properties.
19
- */
20
- create(props: ProtectionPlanInput): Promise<ProtectionPlanSummary>;
21
- loading: boolean;
22
- data: ProtectionPlanSummary | undefined;
23
- error: null;
24
- };
@@ -1,3 +0,0 @@
1
- import QueryOptions from '../../../_shared/domain/models/query-options';
2
- import TriggerSettingsInfo from '../../../protection-plan/domain/models/trigger-settings-info';
3
- export default function useGetAvailablePlanTriggers(options?: QueryOptions): import("../../../_shared/domain/hooks/resources/use-get-list").UseGetListValue<TriggerSettingsInfo>;
@@ -1,47 +0,0 @@
1
- import QueryOptions from '../../../_shared/domain/models/query-options';
2
- export interface ProtectionPlanSecurityLevelRequestInput {
3
- planType: string;
4
- beneficiariesAmount: number;
5
- coldSharesAmount: number;
6
- mobileSharesAmount: number;
7
- activationMethodsAmount: number;
8
- mergeThreshold?: number;
9
- }
10
- export interface ProtectionPlanSecurityLevelRequest {
11
- planType: string;
12
- isFree: boolean;
13
- variables?: {
14
- security: {
15
- beneficiariesAmount: number;
16
- recoverySharesRatio: number;
17
- coldSharesAmount: number;
18
- mobileSharesAmount: number;
19
- mobileSharesVsColdSharesRatio: number;
20
- mergeThresholdRatio: number;
21
- activationMethodsAmount: number;
22
- };
23
- };
24
- }
25
- export default function useGetProtectionPlanSecurityLevel(data: ProtectionPlanSecurityLevelRequestInput, options?: QueryOptions): {
26
- error?: any;
27
- isIdle: boolean;
28
- loading: boolean;
29
- loaded: boolean;
30
- refetch: any;
31
- isFetching: boolean;
32
- isRefetching: boolean;
33
- data?: {
34
- index: number;
35
- rating: string;
36
- evaluation: {
37
- beneficiariesAmount: number;
38
- recoverySharesRatio: number;
39
- mergeThresholdRatio: number;
40
- coldSharesAmount: number;
41
- mobileSharesAmount: number;
42
- mobileSharesVsColdSharesRatio: number;
43
- activationMethodsAmount: number;
44
- amountOfLayers: number;
45
- };
46
- };
47
- };
@@ -1,10 +0,0 @@
1
- import ProtectionPlan from '../../../protection-plan/domain/models/protection-plan';
2
- import { ProtectionPlanDto } from '../../../protection-plan/domain/dto/plan-dto';
3
- export default function usePersistProtectionPlan(): {
4
- save: (newInstanceData?: Omit<ProtectionPlanDto, "owner"> | undefined) => Promise<ProtectionPlan<any>>;
5
- reset: () => any;
6
- loading: boolean;
7
- loaded: boolean;
8
- data: any;
9
- error: any;
10
- };
@@ -1,13 +0,0 @@
1
- import QueryOptions from '../../../_shared/domain/models/query-options';
2
- import { ProtectionPlanFilters } from '../../../protection-plan/domain/repositories/protection-plan-repository';
3
- export default function useFindProtectionPlanSummaryByCriteria(filter?: ProtectionPlanFilters, options?: QueryOptions): {
4
- total?: number | undefined;
5
- error?: any;
6
- loading: boolean;
7
- loaded: boolean;
8
- refetch: any;
9
- isFetching: boolean;
10
- isRefetching: boolean;
11
- isIdle?: boolean;
12
- data: unknown;
13
- };
@@ -1,15 +0,0 @@
1
- import PaginationOptions from '../../../_shared/domain/models/pagination-options';
2
- import SortOptions from '../../../_shared/domain/models/sort-options';
3
- import QueryOptions from '../../../_shared/domain/models/query-options';
4
- import { ProtectionPlanFilters } from '../../../protection-plan/domain/repositories/protection-plan-repository';
5
- export default function useFindProtectionPlansByCriteria(filter?: ProtectionPlanFilters, pagination?: PaginationOptions, sort?: SortOptions, options?: QueryOptions): {
6
- total?: number | undefined;
7
- error?: any;
8
- loading: boolean;
9
- loaded: boolean;
10
- refetch: any;
11
- isFetching: boolean;
12
- isRefetching: boolean;
13
- isIdle?: boolean;
14
- data: {} | undefined;
15
- };
@@ -1,13 +0,0 @@
1
- import QueryOptions from '../../../_shared/domain/models/query-options';
2
- import { ProtectionPlanFilters } from "../../../protection-plan/domain/repositories/protection-plan-repository";
3
- export default function useGetProtectionPlanSummary(filter: ProtectionPlanFilters, options?: QueryOptions): {
4
- total?: number | undefined;
5
- error?: any;
6
- loading: boolean;
7
- loaded: boolean;
8
- refetch: any;
9
- isFetching: boolean;
10
- isRefetching: boolean;
11
- isIdle?: boolean;
12
- data: {} | undefined;
13
- };
@@ -1,3 +0,0 @@
1
- export declare function useIsMergeAuthorityMode(): {
2
- check: () => boolean;
3
- };