@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,173 +0,0 @@
1
- import { DataAsset } from '../../../../protection-plan/domain/models/data-asset';
2
- import { MergeTriggerStatus, TriggerStatus } from '../../../../protection-plan/domain/models/trigger';
3
- type MainTriggerStatus = TriggerStatus & MergeTriggerStatus;
4
- type ShareType = 'VALIDATOR' | 'COLD' | 'MOBILE' | 'BACKUP';
5
- interface PlanMergeProcessViewProps {
6
- shares: {
7
- id: string;
8
- status: 'WAITING' | 'COLLECTING' | 'COLLECTED' | 'RELEASED';
9
- type: 'VALIDATOR' | 'COLD' | 'MOBILE' | 'BACKUP';
10
- shareholder: {
11
- isMergeAuthority: boolean;
12
- details: {
13
- firstName: string | undefined;
14
- lastName: string | undefined;
15
- types: any[];
16
- id: string;
17
- email: string | undefined;
18
- };
19
- type: ShareType;
20
- } | undefined;
21
- }[];
22
- revealedData: {
23
- secret: DataAsset[];
24
- timeoutMinutesForClose: number | undefined;
25
- remainingTime: number;
26
- } | undefined;
27
- triggers: {
28
- countdown: {
29
- days: number;
30
- hours: number;
31
- minutes: number;
32
- seconds: number;
33
- } | undefined;
34
- startedAt: Date | undefined;
35
- id: 'LOGIN' | 'CLICK_LINK' | 'SAFEKEY_2FA' | 'SMS' | 'PHONE_CALL';
36
- requiresCodeVerification: boolean;
37
- status: MainTriggerStatus;
38
- expiresAt: Date | undefined;
39
- target: string;
40
- }[];
41
- steps: {
42
- id: string;
43
- status: 'IN_PROCESS' | 'COMPLETE' | 'INCOMPLETE' | 'ERROR';
44
- errorMessage?: string;
45
- }[];
46
- status: 'NOT_STARTED' | 'ACTIVATE_TRIGGERS' | 'COLLECT_COLD_SHARES' | 'COLLECT_VALIDATOR_SHARE' | 'COLLECT_MOBILE_PLAN_SHARES' | 'COLLECT_MA_PLAN_SHARES' | 'REVEALING_DATA' | 'REVEALED' | 'FINISHED';
47
- }
48
- export declare class PlanMergeProcessView {
49
- private props;
50
- constructor(props: PlanMergeProcessViewProps);
51
- get steps(): {
52
- id: string;
53
- status: "IN_PROCESS" | "COMPLETE" | "INCOMPLETE" | "ERROR";
54
- errorMessage?: string;
55
- }[];
56
- get isFinished(): boolean;
57
- get activeStepId(): string | undefined;
58
- get status(): "COLLECT_MA_PLAN_SHARES" | "ACTIVATE_TRIGGERS" | "COLLECT_VALIDATOR_SHARE" | "NOT_STARTED" | "COLLECT_COLD_SHARES" | "COLLECT_MOBILE_PLAN_SHARES" | "REVEALING_DATA" | "REVEALED" | "FINISHED";
59
- get mergeAuthorityShareStorageType(): "COLD" | "MOBILE";
60
- get completeProgress(): number;
61
- get completedSteps(): {
62
- id: string;
63
- status: "IN_PROCESS" | "COMPLETE" | "INCOMPLETE" | "ERROR";
64
- errorMessage?: string;
65
- }[];
66
- get isDenied(): boolean;
67
- get isExpired(): boolean;
68
- get triggers(): {
69
- countdown: {
70
- days: number;
71
- hours: number;
72
- minutes: number;
73
- seconds: number;
74
- } | undefined;
75
- startedAt: Date | undefined;
76
- id: "LOGIN" | "CLICK_LINK" | "SAFEKEY_2FA" | "SMS" | "PHONE_CALL";
77
- requiresCodeVerification: boolean;
78
- status: MainTriggerStatus;
79
- expiresAt: Date | undefined;
80
- target: string;
81
- }[];
82
- get pendingTrigger(): {
83
- countdown: {
84
- days: number;
85
- hours: number;
86
- minutes: number;
87
- seconds: number;
88
- } | undefined;
89
- startedAt: Date | undefined;
90
- id: "LOGIN" | "CLICK_LINK" | "SAFEKEY_2FA" | "SMS" | "PHONE_CALL";
91
- requiresCodeVerification: boolean;
92
- status: MainTriggerStatus;
93
- expiresAt: Date | undefined;
94
- target: string;
95
- } | undefined;
96
- get isStarted(): boolean;
97
- get hasPendingTrigger(): boolean;
98
- get revealedSecretData(): DataAsset[] | undefined;
99
- get remainingTimeForClose(): number | undefined;
100
- get timeoutMinutesForClose(): number | undefined;
101
- get pendingShare(): {
102
- id: string;
103
- status: "WAITING" | "COLLECTING" | "COLLECTED" | "RELEASED";
104
- type: "VALIDATOR" | "COLD" | "MOBILE" | "BACKUP";
105
- shareholder: {
106
- isMergeAuthority: boolean;
107
- details: {
108
- firstName: string | undefined;
109
- lastName: string | undefined;
110
- types: any[];
111
- id: string;
112
- email: string | undefined;
113
- };
114
- type: ShareType;
115
- } | undefined;
116
- } | undefined;
117
- get pendingBeneficiary(): {
118
- firstName: string | undefined;
119
- lastName: string | undefined;
120
- types: any[];
121
- id: string;
122
- email: string | undefined;
123
- } | undefined;
124
- get mobileShares(): {
125
- id: string;
126
- status: "WAITING" | "COLLECTING" | "COLLECTED" | "RELEASED";
127
- type: "VALIDATOR" | "COLD" | "MOBILE" | "BACKUP";
128
- shareholder: {
129
- isMergeAuthority: boolean;
130
- details: {
131
- firstName: string | undefined;
132
- lastName: string | undefined;
133
- types: any[];
134
- id: string;
135
- email: string | undefined;
136
- };
137
- type: ShareType;
138
- } | undefined;
139
- }[];
140
- get coldShares(): {
141
- id: string;
142
- status: "WAITING" | "COLLECTING" | "COLLECTED" | "RELEASED";
143
- type: "VALIDATOR" | "COLD" | "MOBILE" | "BACKUP";
144
- shareholder: {
145
- isMergeAuthority: boolean;
146
- details: {
147
- firstName: string | undefined;
148
- lastName: string | undefined;
149
- types: any[];
150
- id: string;
151
- email: string | undefined;
152
- };
153
- type: ShareType;
154
- } | undefined;
155
- }[];
156
- get beneficiariesShares(): {
157
- id: string;
158
- status: "WAITING" | "COLLECTING" | "COLLECTED" | "RELEASED";
159
- type: "VALIDATOR" | "COLD" | "MOBILE" | "BACKUP";
160
- shareholder: {
161
- isMergeAuthority: boolean;
162
- details: {
163
- firstName: string | undefined;
164
- lastName: string | undefined;
165
- types: any[];
166
- id: string;
167
- email: string | undefined;
168
- };
169
- type: ShareType;
170
- } | undefined;
171
- }[];
172
- }
173
- export {};
@@ -1,12 +0,0 @@
1
- import { PlanBeneficiaryInput } from "../../../../protection-plan";
2
- import { SafeKeyMobileBeneficiary, SafeKeyProBeneficiary } from "../../../../protection-plan/domain/dto/protection-plan-input";
3
- export default class PlanBeneficiaryBuilder {
4
- static skMobileBeneficiary(props: {
5
- details: SafeKeyMobileBeneficiary;
6
- isMergeAuthority: boolean;
7
- }): PlanBeneficiaryInput;
8
- static skProBeneficiary(props: {
9
- details: SafeKeyProBeneficiary;
10
- isMergeAuthority: boolean;
11
- }): PlanBeneficiaryInput;
12
- }
@@ -1,35 +0,0 @@
1
- import { ApiKeyAsset, DataAsset, OnlineAccountAsset, PaymentCreditCardAsset, PaymentDebitCardAsset, PINCodeAsset, PlainTextAsset, PrivateKeyAsset, RecoveryCodeAsset, SeedPhraseAsset } from '../../../../protection-plan/domain/models/data-asset';
2
- export interface DataAssetShareProps {
3
- id?: string;
4
- name: string;
5
- notes?: string;
6
- }
7
- export default class PlanDataAssetBuilder {
8
- static plainText(props: {
9
- secret: PlainTextAsset;
10
- } & Omit<DataAssetShareProps, 'notes'>): DataAsset;
11
- static onlineAccount(props: {
12
- secret: OnlineAccountAsset;
13
- } & DataAssetShareProps): DataAsset;
14
- static recoveryCode(props: {
15
- secret: RecoveryCodeAsset;
16
- } & DataAssetShareProps): DataAsset;
17
- static pinCode(props: {
18
- secret: PINCodeAsset;
19
- } & DataAssetShareProps): DataAsset;
20
- static apiKey(props: {
21
- secret: ApiKeyAsset;
22
- } & DataAssetShareProps): DataAsset;
23
- static privateKey(props: {
24
- secret: PrivateKeyAsset;
25
- } & DataAssetShareProps): DataAsset;
26
- static seedPhrase(props: {
27
- secret: SeedPhraseAsset;
28
- } & DataAssetShareProps): DataAsset;
29
- static paymentDebitCard(props: {
30
- secret: PaymentDebitCardAsset;
31
- } & DataAssetShareProps): DataAsset;
32
- static paymentCreditCard(props: {
33
- secret: PaymentCreditCardAsset;
34
- } & DataAssetShareProps): DataAsset;
35
- }
@@ -1,7 +0,0 @@
1
- export default class ProtectionPlanCode {
2
- private readonly value;
3
- private constructor();
4
- static create(code?: string): ProtectionPlanCode;
5
- toString(): string;
6
- equals(other: ProtectionPlanCode): boolean;
7
- }
@@ -1,7 +0,0 @@
1
- export default class ProtectionPlanId {
2
- private readonly value;
3
- private constructor();
4
- static create(id?: string): ProtectionPlanId;
5
- toString(): string;
6
- equals(other: ProtectionPlanId): boolean;
7
- }
@@ -1,24 +0,0 @@
1
- import { PlanTriggerInput } from '../../../../protection-plan/domain/dto/protection-plan-input';
2
- interface SharedProps extends Omit<PlanTriggerInput, 'id'> {
3
- }
4
- export default class TriggerBuilder {
5
- static clickLink(props: Omit<SharedProps, "settings"> & {
6
- email: string;
7
- }): PlanTriggerInput;
8
- static login(props: Omit<SharedProps, "settings"> & {
9
- email: string;
10
- }): PlanTriggerInput;
11
- static sms(props: Omit<SharedProps, "settings"> & {
12
- phone: string;
13
- }): PlanTriggerInput;
14
- static phoneCall(props: Omit<SharedProps, "settings"> & {
15
- phone: string;
16
- }): PlanTriggerInput;
17
- }
18
- export declare class TriggerCountDownBuilder {
19
- static days(n: number): PlanTriggerInput["countdown"];
20
- static hours(n: number): PlanTriggerInput["countdown"];
21
- static minutes(n: number): PlanTriggerInput["countdown"];
22
- static create(input: Partial<PlanTriggerInput["countdown"]>): PlanTriggerInput["countdown"];
23
- }
24
- export {};
@@ -1,10 +0,0 @@
1
- export default function useConnectSafekeyProDevice(): {
2
- connect: (data: {
3
- pin: string;
4
- }) => Promise<any>;
5
- reset: () => any;
6
- loading: boolean;
7
- loaded: boolean;
8
- data: any;
9
- error: any;
10
- };
@@ -1,8 +0,0 @@
1
- export default function useDisconnectSafekeyDevice(): {
2
- disconnect: () => Promise<any>;
3
- reset: () => any;
4
- loading: boolean;
5
- loaded: boolean;
6
- data: any;
7
- error: any;
8
- };
@@ -1,16 +0,0 @@
1
- type CONNECT_DEVICE_STATE = 'CONNECT_DEVICE' | 'TOUCH_DEVICE_BUTTON' | 'ERROR' | 'SUCCESS';
2
- interface SkDeviceInfo {
3
- freeSlots?: number;
4
- totalSlots: number;
5
- usagePercentage: number;
6
- }
7
- export default function useSafekeyDevice(): {
8
- connect: (pin: string) => Promise<void>;
9
- disconnect: () => Promise<void>;
10
- disconnecting: boolean;
11
- state: CONNECT_DEVICE_STATE;
12
- error: string | undefined;
13
- pinValidationTimeout: number | undefined;
14
- device: SkDeviceInfo | undefined;
15
- };
16
- export {};
@@ -1,12 +0,0 @@
1
- import { IOResponse } from '../../safekey/domain/services/cold-storage-service';
2
- export default function useValidateSafekeyDevicePin(): {
3
- touch: (data: {
4
- pin: string;
5
- }) => Promise<any>;
6
- reset: () => any;
7
- loading: boolean;
8
- loaded: boolean;
9
- data: any;
10
- ioResponse: IOResponse | undefined;
11
- error: any;
12
- };
@@ -1,55 +0,0 @@
1
- import { DeviceShareInfo } from '../../../protection-plan/domain/models/device-share-info';
2
- export interface PlanColdShareData {
3
- devicePin?: string;
4
- planId: string;
5
- shareId: string;
6
- shareData: DeviceShareInfo;
7
- }
8
- export type ColdScanFilters = {
9
- planId?: string;
10
- shareId?: string;
11
- isMergeAuthority?: boolean;
12
- };
13
- export type DeviceInfo = {
14
- appId: string;
15
- appPassword: string;
16
- name?: string;
17
- serialId?: string;
18
- version?: string;
19
- pin?: string;
20
- freeSlots?: number;
21
- totalSlots: number;
22
- };
23
- export type IOResponse = {
24
- operationType: string;
25
- io?: {
26
- progress: number;
27
- total: number;
28
- };
29
- loginAttempts?: {
30
- total: number;
31
- countdown: number;
32
- progress: number;
33
- };
34
- };
35
- export type OperationProgressCallback = (params: IOResponse) => any;
36
- export interface ColdStorageService {
37
- getDeviceInfo(context?: {
38
- id: string;
39
- }): Promise<Omit<DeviceInfo, 'appPassword'> | undefined>;
40
- insert(id: string): Promise<void>;
41
- connect(context: {
42
- id?: string;
43
- pin: string;
44
- }): Promise<void>;
45
- touch(context: {
46
- id?: string;
47
- pin: string;
48
- }, onIOCallback?: OperationProgressCallback): Promise<void>;
49
- disconnect(): Promise<void>;
50
- getDeviceId(): Promise<string | undefined>;
51
- getDevicePassword(): Promise<string | undefined>;
52
- distributeShare(data: PlanColdShareData, onIOCallback?: OperationProgressCallback): Promise<void>;
53
- collectShare(validatorPin: string, filters: ColdScanFilters, onIOCallback?: OperationProgressCallback): Promise<any>;
54
- collectAllSharesPlansIds(validatorPin: string, onIOCallback?: OperationProgressCallback): Promise<string[]>;
55
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * @module Safekey
3
- */
4
- export { default as useSafekeyDevice } from './application/use-safekey-device';
@@ -1,45 +0,0 @@
1
- import { ColdScanFilters, ColdStorageService, DeviceInfo, OperationProgressCallback, PlanColdShareData } from '../../../safekey/domain/services/cold-storage-service';
2
- import { DeviceShareInfo } from '../../../protection-plan/domain/models/device-share-info';
3
- import BrowserSessionStorage from '../../../_shared/infrastructure/session-storage/browser-session-storage';
4
- import APIRepository from '../../../_shared/infrastructure/api/api-repository';
5
- export default class SafekeyColdStorageService extends APIRepository implements ColdStorageService {
6
- private sessionStorage;
7
- private operationHandler;
8
- private migrateRepo;
9
- private lStorage;
10
- constructor(props: any);
11
- isAuthenticated(): Promise<boolean>;
12
- isMaAuthenticated(): Promise<boolean>;
13
- getStorage(): Promise<BrowserSessionStorage>;
14
- connect(context: {
15
- pin: string;
16
- }): Promise<void>;
17
- touch(context: {
18
- id?: string;
19
- pin: string;
20
- }, onIOCallback?: OperationProgressCallback): Promise<undefined>;
21
- getDeviceInfo(context?: {
22
- id: string;
23
- }): Promise<Omit<DeviceInfo, 'appPassword'> | undefined>;
24
- getDeviceId(): Promise<string | undefined>;
25
- getDevicePassword(): Promise<string | undefined>;
26
- disconnect(): Promise<void>;
27
- collectShare(validatorPin: string, filters: ColdScanFilters, onIOCallback?: OperationProgressCallback): Promise<DeviceShareInfo | undefined>;
28
- collectAllSharesPlansIds(validatorPin: string, onIOCallback?: OperationProgressCallback): Promise<string[]>;
29
- distributeShare(params: PlanColdShareData, onIOCallback?: OperationProgressCallback): Promise<void>;
30
- insert(id: string): Promise<void>;
31
- private getSecureStorageKey;
32
- private getAuthToken;
33
- private saveDeviceInfo;
34
- private readDeviceAppCredentials;
35
- private readDeviceInfoInDevice;
36
- private writeDeviceInfoInDevice;
37
- private fetchPlanIdsFromSafeKey;
38
- private connectedDeviceInfo;
39
- private ensureConnectedDevice;
40
- private isConnected;
41
- private handleError;
42
- private fetchDataFromSafeKey;
43
- private findLegacyPlanId;
44
- private migrateLegacyPlanShare;
45
- }
@@ -1,9 +0,0 @@
1
- import * as safekey from 'safekey';
2
- export declare const safekeyService: {
3
- write: typeof safekey.write;
4
- read: typeof safekey.read;
5
- freeSlots: typeof safekey.freeSlots;
6
- remove: typeof safekey.remove;
7
- logOut: typeof safekey.logOut;
8
- listKeys: typeof safekey.listKeys;
9
- };
@@ -1,11 +0,0 @@
1
- export declare class FinancialMother {
2
- static creditCardNumber(): string;
3
- static accountNumber(length?: number): string;
4
- static creditCardCVV(): string;
5
- static creditCardIssuer(): string;
6
- static pin(length?: number): string;
7
- static code(length?: number): string;
8
- static bankName(): string;
9
- static expiryDate(years?: number): Date;
10
- static clientId(): string;
11
- }
@@ -1,6 +0,0 @@
1
- export default class DateMother {
2
- static random(): Date;
3
- static between(from: string | number | Date, to: string | Date): Date;
4
- static past(years: number): Date;
5
- static future(years: number): Date;
6
- }
@@ -1,3 +0,0 @@
1
- export default class EmailMother {
2
- static random(): string;
3
- }
@@ -1,3 +0,0 @@
1
- export default class IdMother {
2
- static random(): string;
3
- }
@@ -1,11 +0,0 @@
1
- export default class InternetMother {
2
- static email(): string;
3
- static password(): string;
4
- static phone(): string;
5
- static username(): string;
6
- static url(): string;
7
- static app(): string;
8
- static apiKey(): string;
9
- static publicKey(): string;
10
- static privateKey(): string;
11
- }
@@ -1,3 +0,0 @@
1
- export default class MotherCreator {
2
- static faker: import("@faker-js/faker").Faker;
3
- }
@@ -1,5 +0,0 @@
1
- export default class NameMother {
2
- static random(): string;
3
- static firstName(): string;
4
- static lastName(): string;
5
- }
@@ -1,7 +0,0 @@
1
- export default class NumberMother {
2
- static float(): number;
3
- static integer(options?: {
4
- min: number;
5
- max: number;
6
- }): NumberMother;
7
- }
@@ -1,3 +0,0 @@
1
- export declare class RandomElementPickerMother {
2
- static from<T>(elements: T[]): T;
3
- }
@@ -1,3 +0,0 @@
1
- export default class UuidMother {
2
- static random(): string;
3
- }
@@ -1,5 +0,0 @@
1
- export default class WordMother {
2
- static random(): string;
3
- static randomWords(n?: number): string;
4
- static sample(length?: number): string;
5
- }
@@ -1,6 +0,0 @@
1
- import * as ProtectionPlanTestUtils from './protection-plan';
2
- import { RandomElementPickerMother } from '../modules/_shared/domain/models/random-element-picker-mother';
3
- export declare const TestUtils: {
4
- ProtectionPlan: typeof ProtectionPlanTestUtils;
5
- RandomElementPickerMother: typeof RandomElementPickerMother;
6
- };
@@ -1,18 +0,0 @@
1
- import { PlanBeneficiaryInput } from '../../../../src/modules/protection-plan/domain/dto/protection-plan-input';
2
- export declare class PlanBeneficiaryInputGenerator {
3
- static random({ details, storage, isMergeAuthority }?: Partial<PlanBeneficiaryInput>): PlanBeneficiaryInput;
4
- static randomList(count?: number): PlanBeneficiaryInput[];
5
- static skProBeneficiary({ details, isMergeAuthority }?: Partial<Omit<PlanBeneficiaryInput, 'storage'>>): PlanBeneficiaryInput;
6
- static skMobileBeneficiary({ details, isMergeAuthority }?: Partial<Omit<PlanBeneficiaryInput, 'storage'>>): PlanBeneficiaryInput;
7
- }
8
- export declare class PlanBeneficiaryCodeGenerator {
9
- static random(n: number): PlanBeneficiaryInput['details']['code'];
10
- }
11
- export declare class PlanBeneficiaryDetailsInputGenerator {
12
- static random({ id, code, firstName, lastName, email }?: Partial<PlanBeneficiaryInput['details']>): PlanBeneficiaryInput['details'];
13
- }
14
- export declare class PlanBeneficiaryShareStorageInputGenerator {
15
- static random({ option }?: Partial<{
16
- option: PlanBeneficiaryInput['storage'];
17
- }>): PlanBeneficiaryInput['storage'];
18
- }
@@ -1,13 +0,0 @@
1
- import { DataAsset } from '../../../../src/modules/protection-plan/domain/models/data-asset';
2
- import PlanDataAssetBuilder from '../../../../src/modules/protection-plan/ui/protection-plan/utils/plan-data-asset-builder';
3
- export declare class PlanDataAssetInputGenerator {
4
- static plainText({ id, name, secret }?: Partial<Parameters<typeof PlanDataAssetBuilder.plainText>[0]>): DataAsset;
5
- static onlineAccount({ id, name, notes, secret }?: Partial<Parameters<typeof PlanDataAssetBuilder.onlineAccount>[0]>): DataAsset;
6
- static recoveryCode({ id, name, notes, secret }?: Partial<Parameters<typeof PlanDataAssetBuilder.recoveryCode>[0]>): DataAsset;
7
- static pinCode({ id, name, notes, secret }?: Partial<Parameters<typeof PlanDataAssetBuilder.pinCode>[0]>): DataAsset;
8
- static apiKey({ id, name, notes, secret }?: Partial<Parameters<typeof PlanDataAssetBuilder.apiKey>[0]>): DataAsset;
9
- static privateKey({ id, name, notes, secret }?: Partial<Parameters<typeof PlanDataAssetBuilder.privateKey>[0]>): DataAsset;
10
- static seedPhrase({ id, name, notes, secret }?: Partial<Parameters<typeof PlanDataAssetBuilder.seedPhrase>[0]>): DataAsset;
11
- static paymentDebitCard({ id, name, notes, secret }?: Partial<Parameters<typeof PlanDataAssetBuilder.paymentDebitCard>[0]>): DataAsset;
12
- static paymentCreditCard({ id, name, notes, secret }?: Partial<Parameters<typeof PlanDataAssetBuilder.paymentCreditCard>[0]>): DataAsset;
13
- }
@@ -1,7 +0,0 @@
1
- import { PlanDetailsInput } from '../../../../src/modules/protection-plan/domain/dto/protection-plan-input';
2
- export declare class PlanDetailsInputGenerator {
3
- static random({ title, privateNotes, description }?: Partial<PlanDetailsInput>): PlanDetailsInput;
4
- }
5
- export declare class PlanNameInputGenerator {
6
- static random(): string;
7
- }
@@ -1,20 +0,0 @@
1
- import { PlanSharesConfigurationInput } from '../../../../src/modules/protection-plan';
2
- export declare class PlanSharesConfigurationInputGenerator {
3
- static random({ recoverySharesAmount, mergeThreshold }?: Partial<PlanSharesConfigurationInput>): PlanSharesConfigurationInput;
4
- }
5
- export declare class PlanMergeThresholdInputGenerator {
6
- static random({ beneficiariesAmount }: {
7
- beneficiariesAmount?: number;
8
- }): PlanSharesConfigurationInput['mergeThreshold'];
9
- }
10
- export declare class PlanRecoverySharesAmountInputGenerator {
11
- static random({ mergeThreshold }: {
12
- mergeThreshold?: number;
13
- }): PlanSharesConfigurationInput['recoverySharesAmount'];
14
- static max({ mergeThreshold }: {
15
- mergeThreshold?: number;
16
- }): PlanSharesConfigurationInput['recoverySharesAmount'];
17
- static medium({ mergeThreshold }: {
18
- mergeThreshold?: number;
19
- }): PlanSharesConfigurationInput['recoverySharesAmount'];
20
- }
@@ -1,4 +0,0 @@
1
- import { PlanStorageConfigurationInput } from '../../../../src/modules/protection-plan/domain/dto/protection-plan-input';
2
- export declare class PlanStorageConfigurationInputGenerator {
3
- static random({ mobileShareVerification, option }?: Partial<PlanStorageConfigurationInput>): PlanStorageConfigurationInput;
4
- }
@@ -1,27 +0,0 @@
1
- import { PlanTriggerInput } from '../../../../src/modules/protection-plan/domain/dto/protection-plan-input';
2
- import { TriggerType } from '../../../../src/modules/protection-plan/domain/models/trigger';
3
- export declare class PlanTriggerInputGenerator {
4
- static random({ id, countdown, settings }?: Partial<PlanTriggerInput>): PlanTriggerInput;
5
- static randomList(count?: number): PlanTriggerInput[];
6
- static maxSecurity(itemProps?: (triggerId: TriggerType) => Partial<Omit<PlanTriggerInput, 'id'>>): PlanTriggerInput[];
7
- static randomEmailTriggers({ email }?: {
8
- email?: string;
9
- }): PlanTriggerInput[];
10
- static randomPhoneTriggers({ phone }?: {
11
- phone?: string;
12
- }): PlanTriggerInput[];
13
- static emailTrigger({ id, email }?: {
14
- id?: 'CLICK_LINK' | 'LOGIN';
15
- email: string | undefined;
16
- }): PlanTriggerInput;
17
- static phoneTrigger({ id, phone }?: {
18
- id?: 'PHONE_CALL' | 'SMS';
19
- phone: string | undefined;
20
- }): PlanTriggerInput;
21
- }
22
- export declare class PlanTriggerCountdownInputGenerator {
23
- static random({ days, hours, minutes }?: Partial<PlanTriggerInput['countdown']>): PlanTriggerInput['countdown'];
24
- }
25
- export declare class PlanTriggerSettingsInputGenerator {
26
- static random({ email }?: Partial<PlanTriggerInput['settings']>): PlanTriggerInput['settings'];
27
- }
@@ -1,4 +0,0 @@
1
- import { ProtectionPlanInput } from '../../../../src/modules/protection-plan/domain/dto/protection-plan-input';
2
- export declare class ProtectionPlanInputGenerator {
3
- static random({ id, type, code, details, beneficiaries, storageConfiguration, sharesConfiguration, triggers, assets }?: Partial<ProtectionPlanInput>): ProtectionPlanInput;
4
- }
@@ -1,8 +0,0 @@
1
- export { PlanStorageConfigurationInputGenerator } from '../../modules/protection-plan/domain/plan-storage-configuration-input-generator';
2
- export { PlanSharesConfigurationInputGenerator } from '../../modules/protection-plan/domain/plan-shares-configuration-input-generator';
3
- export { PlanRecoverySharesAmountInputGenerator } from '../../modules/protection-plan/domain/plan-shares-configuration-input-generator';
4
- export { PlanMergeThresholdInputGenerator } from '../../modules/protection-plan/domain/plan-shares-configuration-input-generator';
5
- export { PlanTriggerInputGenerator } from '../../modules/protection-plan/domain/plan-trigger-input-generator';
6
- export { ProtectionPlanInputGenerator } from '../../modules/protection-plan/domain/protection-plan-input-generator';
7
- export { PlanDataAssetInputGenerator } from '../../modules/protection-plan/domain/plan-data-asset-input-generator';
8
- export { PlanBeneficiaryShareStorageInputGenerator, PlanBeneficiaryInputGenerator, PlanBeneficiaryDetailsInputGenerator } from '../../modules/protection-plan/domain/plan-beneficiary-input-generator';