@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,25 +0,0 @@
1
- import QueryOptions from '../../../_shared/domain/models/query-options';
2
- export declare function useProtectionPlanListener(id: string, options?: QueryOptions): {
3
- total?: number | undefined;
4
- error?: any;
5
- loading: boolean;
6
- loaded: boolean;
7
- isFetching: boolean;
8
- isRefetching: boolean;
9
- isIdle?: boolean;
10
- data: {} | undefined;
11
- };
12
- export declare function useProtectionPlanEventSubscriber(id: any, onEvent: any, options?: {
13
- enabled: boolean;
14
- }): void;
15
- export declare function useExternalProtectionPlanListener(id: string, handlers: {
16
- onMergeProcessAborted: any;
17
- }, options?: QueryOptions): {
18
- error?: any;
19
- isIdle: boolean;
20
- loading: boolean;
21
- loaded: boolean;
22
- isFetching: boolean;
23
- isRefetching: boolean;
24
- data?: import("../../domain/models/protection-plan").default<any> | undefined;
25
- };
@@ -1,13 +0,0 @@
1
- export default function useAuthorizeMergeAuthority(): {
2
- save: (newInstanceData?: {
3
- id: string;
4
- source: string;
5
- password: string;
6
- legacyPlanIds?: string[];
7
- } | undefined) => Promise<any>;
8
- reset: () => any;
9
- loading: boolean;
10
- loaded: boolean;
11
- data: any;
12
- error: any;
13
- };
@@ -1,12 +0,0 @@
1
- import QueryOptions from '../../../../_shared/domain/models/query-options';
2
- import ProtectionPlan from '../../../../protection-plan/domain/models/protection-plan';
3
- export default function useGetMergeAuthorityProtectionPlan(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?: ProtectionPlan<any> | undefined;
12
- };
@@ -1,6 +0,0 @@
1
- import { MergeProcessSubscriptionParams } from '../../../../protection-plan/domain/services/merge-process-event-listener';
2
- import MergingProcess from '../../../../protection-plan/domain/models/merging-process/merging-process';
3
- export declare function useMergeAuthorityMergeProcessEvents(): MergeProcessSubscriptionParams['handlers'];
4
- export default function useRefetchMergeProcessInfo(): {
5
- refetch(process: MergingProcess): Promise<void>;
6
- };
@@ -1,10 +0,0 @@
1
- export default function useRetryActiveMergeTrigger(): {
2
- save: (newInstanceData?: {
3
- processId: string;
4
- } | undefined) => Promise<any>;
5
- reset: () => any;
6
- loading: boolean;
7
- loaded: boolean;
8
- data: any;
9
- error: any;
10
- };
@@ -1,12 +0,0 @@
1
- export default function useValidateMergeTrigger(): {
2
- validate: (newInstanceData?: {
3
- id: string;
4
- verificationId?: string;
5
- triggerId: string;
6
- code?: string;
7
- } | undefined) => Promise<any>;
8
- data: any;
9
- error: any;
10
- reset: () => any;
11
- loading: boolean;
12
- };
@@ -1,9 +0,0 @@
1
- import MergingProcess from '../../../../../protection-plan/domain/models/merging-process/merging-process';
2
- export default function useCollectBackupShares(): {
3
- collect: (process: MergingProcess) => Promise<any>;
4
- reset: () => any;
5
- loading: boolean;
6
- loaded: boolean;
7
- data: any;
8
- error: any;
9
- };
@@ -1,8 +0,0 @@
1
- import MergingProcess from '../../../../../protection-plan/domain/models/merging-process/merging-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 useCollectColdShare(): {
5
- collect: (process: MergingProcess, share: PlanShare) => Promise<void>;
6
- error: boolean;
7
- ioResponse: IOResponse | null;
8
- };
@@ -1,5 +0,0 @@
1
- import MergingProcess from '../../../../../protection-plan/domain/models/merging-process/merging-process';
2
- import PlanShare from '../../../../../protection-plan/domain/models/plan-share';
3
- export default function useCollectMobileShares(): {
4
- collect: (process: MergingProcess, share: PlanShare, shareData: any) => Promise<void>;
5
- };
@@ -1,9 +0,0 @@
1
- import MergingProcess from '../../../../../protection-plan/domain/models/merging-process/merging-process';
2
- export default function useCollectReleasedMobileShares(): {
3
- collect: (process: MergingProcess) => Promise<any>;
4
- reset: () => any;
5
- loading: boolean;
6
- loaded: boolean;
7
- data: any;
8
- error: any;
9
- };
@@ -1,9 +0,0 @@
1
- import MergingProcess from '../../../../../protection-plan/domain/models/merging-process/merging-process';
2
- export default function useCollectValidatorShares(): {
3
- collect: (process: MergingProcess) => Promise<any>;
4
- reset: () => any;
5
- loading: boolean;
6
- loaded: boolean;
7
- data: any;
8
- error: any;
9
- };
@@ -1,2 +0,0 @@
1
- import QueryOptions from '../../../../_shared/domain/models/query-options';
2
- export default function useCheckCanCollectShares(processId: string, options?: QueryOptions): any;
@@ -1,11 +0,0 @@
1
- export default function useSaveReleaseMobileShareRequest(): {
2
- save: (newInstanceData?: {
3
- processId: string;
4
- shareholdersIds: string[];
5
- } | undefined) => Promise<any>;
6
- reset: () => any;
7
- loading: boolean;
8
- loaded: boolean;
9
- data: any;
10
- error: any;
11
- };
@@ -1,15 +0,0 @@
1
- import { ShareStatus, ShareType } from '../../../../protection-plan/domain/models/plan-share';
2
- export default function useSendPlanShareMergeStatusEvent(): {
3
- save: (newInstanceData?: {
4
- planId: string;
5
- type: ShareType;
6
- name: ShareStatus;
7
- processId: string;
8
- shareId?: string;
9
- } | undefined) => Promise<any>;
10
- reset: () => any;
11
- loading: boolean;
12
- loaded: boolean;
13
- data: any;
14
- error: any;
15
- };
@@ -1,10 +0,0 @@
1
- export default function useSendPlanSharesMerged(): {
2
- save: (newInstanceData?: {
3
- processId: string;
4
- } | undefined) => Promise<any>;
5
- reset: () => any;
6
- loading: boolean;
7
- loaded: boolean;
8
- data: any;
9
- error: any;
10
- };
@@ -1,10 +0,0 @@
1
- export default function useCloseProtectionPlan(): {
2
- save: (newInstanceData?: {
3
- processId: string;
4
- } | undefined) => Promise<any>;
5
- reset: () => any;
6
- loading: boolean;
7
- loaded: boolean;
8
- data: any;
9
- error: any;
10
- };
@@ -1,9 +0,0 @@
1
- import MergingProcess from '../../../protection-plan/domain/models/merging-process/merging-process';
2
- export default function useCreateMergingProcess(invalidate?: boolean): {
3
- save: (newInstanceData?: MergingProcess | undefined) => Promise<any>;
4
- reset: () => any;
5
- loading: boolean;
6
- loaded: boolean;
7
- data: any;
8
- error: any;
9
- };
@@ -1,11 +0,0 @@
1
- import { MergeProcessFilterCriteria } from '../../../protection-plan/domain/repositories/merging-process-repository';
2
- export default function useDeleteMergingProcessByCriteria({ onSuccess }: {
3
- onSuccess?: any;
4
- }): {
5
- remove: (criteria: MergeProcessFilterCriteria) => Promise<any>;
6
- reset: () => any;
7
- loading: boolean;
8
- loaded: boolean;
9
- data: any;
10
- error: any;
11
- };
@@ -1,10 +0,0 @@
1
- export default function useDeleteMergingProcess({ onSuccess }: {
2
- onSuccess: any;
3
- }): {
4
- delete: (id: string, additionalParams?: any) => Promise<void>;
5
- reset: () => any;
6
- loading: boolean;
7
- loaded: boolean;
8
- data: null;
9
- error: any;
10
- };
@@ -1,23 +0,0 @@
1
- import QueryOptions from '../../../_shared/domain/models/query-options';
2
- import MergingProcess from '../../../protection-plan/domain/models/merging-process/merging-process';
3
- import { ActiveMergeProcess } from '../../../protection-plan/domain/models/merging-process/active-merge-process';
4
- export default function useGetMergingProcessByPlan(id: string, options?: QueryOptions): {
5
- error?: any;
6
- isIdle: boolean;
7
- loading: boolean;
8
- loaded: boolean;
9
- refetch: any;
10
- isFetching: boolean;
11
- isRefetching: boolean;
12
- data?: MergingProcess | undefined;
13
- };
14
- export declare function useGetActiveMergingProcessByPlan(id: string, options?: QueryOptions): {
15
- error?: any;
16
- isIdle: boolean;
17
- loading: boolean;
18
- loaded: boolean;
19
- refetch: any;
20
- isFetching: boolean;
21
- isRefetching: boolean;
22
- data?: ActiveMergeProcess | undefined;
23
- };
@@ -1,27 +0,0 @@
1
- import { ProtectionPlanSummary } from "../../../protection-plan";
2
- type BeneficiaryIdentity = OnlyOne<{
3
- id: string;
4
- email: string;
5
- code: string;
6
- }>;
7
- export default function useMergePlanBeneficiarySelection({ plan, mergeAuthorityDeviceId }: {
8
- plan?: ProtectionPlanSummary;
9
- mergeAuthorityDeviceId: string;
10
- }): {
11
- selection: {
12
- count: number;
13
- max: number;
14
- };
15
- isBeneficiarySelected: (beneficiary: BeneficiaryIdentity) => boolean;
16
- canUseRecoveryShares: boolean;
17
- useRecoveryShares: boolean;
18
- toggleUseRecoveryShares: (value: boolean) => void;
19
- selectedBeneficiaries: OnlyOne<{
20
- id: string;
21
- email: string;
22
- code: string;
23
- }>[];
24
- selectedMergeAuthority: any;
25
- toggleSelectBeneficiary: (beneficiary: BeneficiaryIdentity) => void;
26
- };
27
- export {};
@@ -1,12 +0,0 @@
1
- export default function usePersistMergeProcess(): {
2
- save: (newInstanceData?: {
3
- id: string;
4
- planId: string;
5
- selectedBeneficiariesIds: string[];
6
- } | undefined) => Promise<any>;
7
- reset: () => any;
8
- loading: boolean;
9
- loaded: boolean;
10
- data: any;
11
- error: any;
12
- };
@@ -1,13 +0,0 @@
1
- import MergingProcess, { RevealOptions } from '../../../protection-plan/domain/models/merging-process/merging-process';
2
- import { DataAsset } from '../../../protection-plan/domain/models/data-asset';
3
- import QueryOptions from '../../../_shared/domain/models/query-options';
4
- export default function useRevealPlanData(process: MergingProcess, revealOptions: RevealOptions, options?: QueryOptions): {
5
- error?: any;
6
- isIdle: boolean;
7
- loading: boolean;
8
- loaded: boolean;
9
- refetch: any;
10
- isFetching: boolean;
11
- isRefetching: boolean;
12
- data?: DataAsset[] | null;
13
- };
@@ -1,9 +0,0 @@
1
- import MergingProcess from '../../../protection-plan/domain/models/merging-process/merging-process';
2
- export default function useSaveMergingProcess(invalidate?: boolean): {
3
- save: (newInstanceData?: MergingProcess | undefined) => Promise<any>;
4
- reset: () => any;
5
- loading: boolean;
6
- loaded: boolean;
7
- data: any;
8
- error: any;
9
- };
@@ -1,10 +0,0 @@
1
- import { IOResponse } from '../../../safekey/domain/services/cold-storage-service';
2
- import { ProtectionPlanSummary } from '../../../protection-plan/domain/models/client/protection-plan-summary';
3
- export default function useScanPlansFromMergeAuthorityDevice(): {
4
- find(devicePin: string): Promise<void>;
5
- deviceId: any;
6
- data: ProtectionPlanSummary[];
7
- ioResponse: IOResponse | undefined;
8
- error: string | undefined;
9
- loading: boolean;
10
- };
@@ -1,2 +0,0 @@
1
- import { MergeProcessSubscriptionParams } from '../../../protection-plan/domain/services/merge-process-event-listener';
2
- export declare function useShareholderMergeProcessEvents(): MergeProcessSubscriptionParams['handlers'];
@@ -1,68 +0,0 @@
1
- import { PlanStorageOption } from '../../../protection-plan/domain/models/storage-option';
2
- import { DataAsset } from '../../../protection-plan/domain/models/data-asset';
3
- import { PlanBeneficiaryInput } from '../../../protection-plan';
4
- import UserIdentity from '../../../auth/domain/models/user-identity';
5
- interface PlanFormDetails {
6
- title: string;
7
- description: string;
8
- privateNotes: string;
9
- }
10
- interface TriggerCountdown {
11
- days: string;
12
- hours: string;
13
- minutes: string;
14
- }
15
- interface TriggerSettings {
16
- useAccountEmail?: boolean;
17
- externalEmail?: string;
18
- phone?: string;
19
- }
20
- type TriggerConfig = {
21
- enabled: true;
22
- settings: TriggerSettings;
23
- countdown: TriggerCountdown;
24
- } | {
25
- enabled: false;
26
- settings?: undefined;
27
- countdown?: undefined;
28
- };
29
- type TriggersFormValues = Record<string, TriggerConfig>;
30
- interface StorageOwner {
31
- option: PlanStorageOption;
32
- }
33
- interface StorageAdditional {
34
- option: PlanStorageOption;
35
- email?: string;
36
- }
37
- interface StorageFormValues {
38
- owner: StorageOwner;
39
- additional: StorageAdditional[];
40
- option?: string;
41
- mobileShareVerification?: 'INHERITI' | 'MOBILE_E2EE';
42
- }
43
- interface ShareholdersForm {
44
- owner: {
45
- mergeAuthority: boolean;
46
- };
47
- additional: string[];
48
- additionalMergeAuthority: string[];
49
- mergeThreshold: number;
50
- backupSharesAmount: number;
51
- }
52
- export interface BasePlanDto {
53
- id?: string;
54
- code?: string;
55
- isFree?: boolean;
56
- details: PlanFormDetails;
57
- assetsMode: string;
58
- assets: DataAsset[];
59
- shareholders: ShareholdersForm;
60
- owner: UserIdentity;
61
- storage: StorageFormValues;
62
- triggers: TriggersFormValues;
63
- beneficiariesData?: PlanBeneficiaryInput[];
64
- }
65
- export interface ProtectionPlanDto extends BasePlanDto {
66
- type: 'BACKUP' | 'INHERITANCE';
67
- }
68
- export {};
@@ -1,173 +0,0 @@
1
- import { DataAsset } from '../../../protection-plan/domain/models/data-asset';
2
- /**
3
- * Props used to create a new protection plan.
4
- */
5
- export interface ProtectionPlanInput {
6
- /**
7
- * Optional ID for the plan. Usually used for updates or internal references.
8
- */
9
- id?: string;
10
- /**
11
- * Plan type
12
- */
13
- type: 'BACKUP' | 'INHERITANCE';
14
- /**
15
- * Optional code to identify the plan in a human-readable way.
16
- */
17
- code?: string;
18
- /**
19
- * Details such as the plan title and description.
20
- */
21
- details: PlanDetailsInput;
22
- /**
23
- * List of beneficiaries with their storage and identity information.
24
- */
25
- beneficiaries: PlanBeneficiaryInput[];
26
- /**
27
- * Configuration for how shares are distributed and recovered.
28
- */
29
- sharesConfiguration: PlanSharesConfigurationInput;
30
- /**
31
- * Configuration for storage options including blockchain and verification methods.
32
- */
33
- storageConfiguration: PlanStorageConfigurationInput;
34
- /**
35
- * List of triggers that initiate the plan.
36
- */
37
- triggers: PlanTriggerInput[];
38
- /**
39
- * Data assets associated with the plan.
40
- */
41
- assets: (DataAsset | Omit<DataAsset, "id"> & {
42
- id?: string;
43
- })[];
44
- }
45
- /**
46
- * Metadata describing the protection plan.
47
- */
48
- export interface PlanDetailsInput {
49
- /**
50
- * Title of the plan.
51
- */
52
- title: string;
53
- /**
54
- * Optional public description of the plan.
55
- */
56
- description?: string;
57
- /**
58
- * Optional private notes, only visible to the plan owner.
59
- */
60
- privateNotes?: string;
61
- }
62
- /**
63
- * Blockchain options for storing plan data.
64
- */
65
- export type BlockChainStorageOption = 'VECHAIN' | 'ETHEREUM' | 'OPTIMISM' | 'INHERITI_CHAIN';
66
- /**
67
- * Storage methods for beneficiary shares.
68
- */
69
- export type BeneficiaryShareStorage = 'SAFEKEY_PRO' | 'SAFEKEY_MOBILE';
70
- /**
71
- * Verification options for mobile shares.
72
- */
73
- export type MobileShareVerificationOption = 'INHERITI' | 'MOBILE_E2EE';
74
- /**
75
- * Base details shared by all beneficiaries.
76
- */
77
- export interface BaseBeneficiaryDetails {
78
- id?: string;
79
- firstName: string;
80
- lastName: string;
81
- code?: string;
82
- }
83
- /**
84
- * SAFEKEY_PRO beneficiary with optional email.
85
- */
86
- export interface SafeKeyProBeneficiary extends BaseBeneficiaryDetails {
87
- email?: string;
88
- }
89
- /**
90
- * SAFEKEY_MOBILE beneficiary with required email.
91
- */
92
- export interface SafeKeyMobileBeneficiary extends BaseBeneficiaryDetails {
93
- email: string;
94
- }
95
- /**
96
- * Base input for all plan beneficiaries.
97
- */
98
- interface BasePlanBeneficiaryInput {
99
- /**
100
- * Whether this beneficiary is a merge authority.
101
- */
102
- isMergeAuthority: boolean;
103
- }
104
- /**
105
- * Beneficiary input for the plan, which includes either SAFEKEY_PRO or SAFEKEY_MOBILE options.
106
- */
107
- export type PlanBeneficiaryInput = (BasePlanBeneficiaryInput & {
108
- storage: 'SAFEKEY_PRO';
109
- details: SafeKeyProBeneficiary;
110
- }) | (BasePlanBeneficiaryInput & {
111
- storage: 'SAFEKEY_MOBILE';
112
- details: SafeKeyMobileBeneficiary;
113
- });
114
- /**
115
- * Countdown timer configuration for a trigger.
116
- */
117
- interface TriggerCountdown {
118
- days: number;
119
- hours: number;
120
- minutes: number;
121
- }
122
- /**
123
- * Email-based trigger settings.
124
- */
125
- type EmailTrigger = {
126
- id: 'LOGIN' | 'CLICK_LINK';
127
- countdown: TriggerCountdown;
128
- settings: {
129
- email: string;
130
- };
131
- };
132
- /**
133
- * Phone-based trigger settings.
134
- */
135
- type PhoneTrigger = {
136
- id: 'SMS' | 'PHONE_CALL';
137
- countdown: TriggerCountdown;
138
- settings: {
139
- phone: string;
140
- };
141
- };
142
- export type MainStorage = BlockChainStorageOption | 'HSM' | "VAULT";
143
- /**
144
- * Union of all supported trigger types.
145
- */
146
- export type PlanTriggerInput = EmailTrigger | PhoneTrigger;
147
- /**
148
- * Configuration for where and how plan data is stored.
149
- */
150
- export interface PlanStorageConfigurationInput {
151
- /**
152
- * Option for the protection plan to store validator & recovery shares
153
- */
154
- option: MainStorage;
155
- /**
156
- * Method to verify shares stored in Safekey Mobile App
157
- */
158
- mobileShareVerification?: MobileShareVerificationOption;
159
- }
160
- /**
161
- * Configuration for how many shares are created and how many are needed to merge.
162
- */
163
- export interface PlanSharesConfigurationInput {
164
- /**
165
- * Recovery shares to overpass missing shares
166
- */
167
- recoverySharesAmount: number;
168
- /**
169
- * Min amount of shares needed to open the plan
170
- */
171
- mergeThreshold: number;
172
- }
173
- export {};
@@ -1,29 +0,0 @@
1
- import ProcessStep, { ProcessStepPrimitiveProps } from '../../../protection-plan/domain/models/proccess-step';
2
- export interface AppProcessProps<ChildStepProps> {
3
- id: string;
4
- steps: ProcessStep<ChildStepProps>[];
5
- activeStep: number;
6
- }
7
- export interface AppProcessPrimitiveProps<StepProps> extends Omit<AppProcessProps<StepProps>, 'steps'> {
8
- steps: ProcessStepPrimitiveProps[];
9
- }
10
- export default class AppProcess<ChildProcessProps, ChildStepProps> {
11
- protected props: AppProcessProps<ChildStepProps> & ChildProcessProps;
12
- constructor(props: AppProcessProps<ChildStepProps> & ChildProcessProps);
13
- get id(): string;
14
- get completedStepCount(): number;
15
- get pendingStepCount(): number;
16
- get inProgressStep(): ProcessStep<ChildStepProps> | undefined;
17
- get stepCount(): number;
18
- get steps(): ProcessStep<ChildStepProps>[];
19
- get isCompleted(): boolean;
20
- get currentStep(): ProcessStep<ChildStepProps>;
21
- static fromPrimitives<ChildStepProps>(props: AppProcessPrimitiveProps<ChildStepProps>): AppProcess<{
22
- steps: ProcessStep<unknown>[];
23
- id: string;
24
- activeStep: number;
25
- }, unknown>;
26
- findStep(id: string): ProcessStep<ChildStepProps> | undefined;
27
- addStep(step: ProcessStep<ChildStepProps>): void;
28
- toPrimitives(): AppProcessPrimitiveProps<ChildStepProps>;
29
- }
@@ -1,18 +0,0 @@
1
- import BackupShareholder, { BackupShareholderPrimitiveProps } from '../../../../protection-plan/domain/models/backup/backup-shareholder';
2
- import ProtectionPlanDetails from '../../../../protection-plan/domain/models/protection-plan-details';
3
- import ProtectionPlan, { ProtectionPlanPrimitiveProps, ProtectionPlanProps } from '../../../../protection-plan/domain/models/protection-plan';
4
- import Shareholder from '../../../../protection-plan/domain/models/shareholder';
5
- export interface BackupPlanProps extends Omit<ProtectionPlanProps, 'type'> {
6
- shareholders: BackupShareholder[];
7
- }
8
- export interface BackupPlanPrimitiveProps extends ProtectionPlanPrimitiveProps {
9
- shareholders: BackupShareholderPrimitiveProps[];
10
- }
11
- export default class BackupPlan extends ProtectionPlan<BackupPlanProps> {
12
- constructor(props: BackupPlanProps);
13
- get details(): ProtectionPlanDetails;
14
- get shareholders(): BackupShareholder[];
15
- get shareholdersWithOwner(): Shareholder[];
16
- static fromPrimitives(props: BackupPlanPrimitiveProps): BackupPlan;
17
- toPrimitives(): BackupPlanPrimitiveProps;
18
- }
@@ -1,9 +0,0 @@
1
- import Shareholder, { ShareholderPrimitiveProps, ShareholderProps } from '../../../../protection-plan/domain/models/shareholder';
2
- export interface BackupShareholderProps extends ShareholderProps {
3
- }
4
- export interface BackupShareholderPrimitiveProps extends ShareholderPrimitiveProps {
5
- }
6
- export default class BackupShareholder extends Shareholder {
7
- constructor(props: BackupShareholderProps);
8
- toPrimitives(): BackupShareholderPrimitiveProps;
9
- }