@safetech/inheriti-client-sdk 1.0.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 (257) hide show
  1. package/README.md +22 -0
  2. package/dist/index.d.ts +4 -0
  3. package/dist/index.js +2 -0
  4. package/dist/src/modules/_shared/domain/contexts/data-provider-context.d.ts +2 -0
  5. package/dist/src/modules/_shared/domain/contexts/service-provider-context.d.ts +2 -0
  6. package/dist/src/modules/_shared/domain/contexts/utils-provider-context.d.ts +5 -0
  7. package/dist/src/modules/_shared/domain/errors/getErrorMessage.d.ts +1 -0
  8. package/dist/src/modules/_shared/domain/hooks/resources/use-create.d.ts +18 -0
  9. package/dist/src/modules/_shared/domain/hooks/resources/use-delete.d.ts +19 -0
  10. package/dist/src/modules/_shared/domain/hooks/resources/use-get-list.d.ts +25 -0
  11. package/dist/src/modules/_shared/domain/hooks/resources/use-get-one.d.ts +17 -0
  12. package/dist/src/modules/_shared/domain/hooks/use-data-provider.d.ts +2 -0
  13. package/dist/src/modules/_shared/domain/hooks/use-repository.d.ts +1 -0
  14. package/dist/src/modules/_shared/domain/hooks/use-service-provider.d.ts +2 -0
  15. package/dist/src/modules/_shared/domain/hooks/use-service.d.ts +1 -0
  16. package/dist/src/modules/_shared/domain/hooks/utils-hooks.d.ts +4 -0
  17. package/dist/src/modules/_shared/domain/models/app-utils.d.ts +10 -0
  18. package/dist/src/modules/_shared/domain/models/currency-price.d.ts +39 -0
  19. package/dist/src/modules/_shared/domain/models/currency.d.ts +24 -0
  20. package/dist/src/modules/_shared/domain/models/euro-currency.d.ts +3 -0
  21. package/dist/src/modules/_shared/domain/models/mutation-options.d.ts +8 -0
  22. package/dist/src/modules/_shared/domain/models/mutation.d.ts +5 -0
  23. package/dist/src/modules/_shared/domain/models/pagination-options.d.ts +4 -0
  24. package/dist/src/modules/_shared/domain/models/query-options.d.ts +6 -0
  25. package/dist/src/modules/_shared/domain/models/query.d.ts +5 -0
  26. package/dist/src/modules/_shared/domain/models/resource-count.d.ts +3 -0
  27. package/dist/src/modules/_shared/domain/models/sort-options.d.ts +4 -0
  28. package/dist/src/modules/_shared/domain/models/use-mutation-value.d.ts +13 -0
  29. package/dist/src/modules/_shared/domain/models/use-query-value.d.ts +11 -0
  30. package/dist/src/modules/_shared/domain/services/mutation-creator.d.ts +6 -0
  31. package/dist/src/modules/_shared/domain/services/query-creator.d.ts +6 -0
  32. package/dist/src/modules/_shared/domain/utils/misc/array-utils.d.ts +48 -0
  33. package/dist/src/modules/_shared/domain/utils/misc/datetime-utils.d.ts +40 -0
  34. package/dist/src/modules/_shared/domain/utils/misc/encrypt-utils.d.ts +17 -0
  35. package/dist/src/modules/_shared/domain/utils/misc/number-utils.d.ts +4 -0
  36. package/dist/src/modules/_shared/domain/utils/misc/object-utils.d.ts +76 -0
  37. package/dist/src/modules/_shared/domain/utils/misc/text-utils.d.ts +7 -0
  38. package/dist/src/modules/_shared/domain/utils/misc/uuid-utils.d.ts +6 -0
  39. package/dist/src/modules/_shared/infrastructure/api/api-repository.d.ts +36 -0
  40. package/dist/src/modules/_shared/infrastructure/api/app-payload-encrypter.d.ts +9 -0
  41. package/dist/src/modules/_shared/infrastructure/http/HttpError.d.ts +7 -0
  42. package/dist/src/modules/_shared/infrastructure/http/fetch.d.ts +48 -0
  43. package/dist/src/modules/_shared/infrastructure/local-storage/browser-local-storage.d.ts +9 -0
  44. package/dist/src/modules/_shared/infrastructure/providers/app-data-provider.d.ts +20 -0
  45. package/dist/src/modules/_shared/infrastructure/providers/app-provider.d.ts +15 -0
  46. package/dist/src/modules/_shared/infrastructure/providers/app-service-provider.d.ts +28 -0
  47. package/dist/src/modules/_shared/infrastructure/providers/app-utils-provider.d.ts +175 -0
  48. package/dist/src/modules/_shared/infrastructure/providers/inheriti-client-provider.d.ts +46 -0
  49. package/dist/src/modules/_shared/infrastructure/secure-storage/app-secure-storage.d.ts +8 -0
  50. package/dist/src/modules/_shared/infrastructure/services/hexEncoder.d.ts +4 -0
  51. package/dist/src/modules/_shared/infrastructure/services/react-q-query-creator.d.ts +7 -0
  52. package/dist/src/modules/_shared/infrastructure/services/react-query-mutation-creator.d.ts +7 -0
  53. package/dist/src/modules/_shared/infrastructure/services/safeshareLegacy.d.ts +29 -0
  54. package/dist/src/modules/_shared/infrastructure/session-storage/browser-session-storage.d.ts +12 -0
  55. package/dist/src/modules/_shared/infrastructure/utils/context-selector.d.ts +2 -0
  56. package/dist/src/modules/_shared/infrastructure/utils/get-api-url.d.ts +1 -0
  57. package/dist/src/modules/_shared/infrastructure/utils/set-query-params.d.ts +5 -0
  58. package/dist/src/modules/auth/application/use-auth-dispatch.d.ts +1 -0
  59. package/dist/src/modules/auth/application/use-auth-provider.d.ts +4 -0
  60. package/dist/src/modules/auth/application/use-auth-state.d.ts +1 -0
  61. package/dist/src/modules/auth/application/use-client.d.ts +27 -0
  62. package/dist/src/modules/auth/application/use-ensure-connected-client.d.ts +3 -0
  63. package/dist/src/modules/auth/application/use-get-identity.d.ts +36 -0
  64. package/dist/src/modules/auth/application/use-is-logged-in.d.ts +8 -0
  65. package/dist/src/modules/auth/application/use-login-client.d.ts +6 -0
  66. package/dist/src/modules/auth/application/use-logout-client.d.ts +5 -0
  67. package/dist/src/modules/auth/domain/contexts/auth-provider-context.d.ts +2 -0
  68. package/dist/src/modules/auth/domain/models/auth-credentials.d.ts +3 -0
  69. package/dist/src/modules/auth/domain/models/user-identity.d.ts +28 -0
  70. package/dist/src/modules/auth/domain/services/auth-provider.d.ts +16 -0
  71. package/dist/src/modules/auth/index.d.ts +6 -0
  72. package/dist/src/modules/auth/infrastructure/providers/app-auth-provider.d.ts +30 -0
  73. package/dist/src/modules/auth/infrastructure/providers/app-identity-service.d.ts +9 -0
  74. package/dist/src/modules/auth/infrastructure/providers/auth-constants.d.ts +6 -0
  75. package/dist/src/modules/beneficiary/domain/models/beneficiary-device.d.ts +28 -0
  76. package/dist/src/modules/beneficiary/domain/models/beneficiary-relation.d.ts +13 -0
  77. package/dist/src/modules/beneficiary/domain/models/beneficiary-type.d.ts +16 -0
  78. package/dist/src/modules/beneficiary/domain/models/beneficiary.d.ts +54 -0
  79. package/dist/src/modules/beneficiary/index.d.ts +1 -0
  80. package/dist/src/modules/beneficiary/infrastructure/mappers/beneficiary-mapper.d.ts +6 -0
  81. package/dist/src/modules/protection-plan/application/configuration-process/blockchain/use-create-smart-contract.d.ts +9 -0
  82. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/creation/use-create-backup-shares.d.ts +6 -0
  83. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/creation/use-create-cold-shares.d.ts +6 -0
  84. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/creation/use-create-mobile-shares.d.ts +6 -0
  85. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/creation/use-create-validator-shares.d.ts +6 -0
  86. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/distribution/use-distribute-backup-shares.d.ts +9 -0
  87. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/distribution/use-distribute-cold-share.d.ts +8 -0
  88. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/distribution/use-distribute-mobile-shares.d.ts +9 -0
  89. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/distribution/use-distribute-validator-shares.d.ts +9 -0
  90. package/dist/src/modules/protection-plan/application/configuration-process/use-configure-plan.d.ts +12 -0
  91. package/dist/src/modules/protection-plan/application/configuration-process/use-delete-plan-configuration-process.d.ts +8 -0
  92. package/dist/src/modules/protection-plan/application/configuration-process/use-get-plan-configuration-process.d.ts +12 -0
  93. package/dist/src/modules/protection-plan/application/configuration-process/use-save-plan-creation-process.d.ts +9 -0
  94. package/dist/src/modules/protection-plan/application/creation/use-create-protection-plan.d.ts +24 -0
  95. package/dist/src/modules/protection-plan/application/creation/use-get-available-plan-triggers.d.ts +3 -0
  96. package/dist/src/modules/protection-plan/application/creation/use-get-protection-plan-security-level.d.ts +47 -0
  97. package/dist/src/modules/protection-plan/application/creation/use-persist-protection-plan.d.ts +10 -0
  98. package/dist/src/modules/protection-plan/application/listing/use-find-protection-plan-summary-by-criteria.d.ts +13 -0
  99. package/dist/src/modules/protection-plan/application/listing/use-find-protection-plans-by-criteria.d.ts +15 -0
  100. package/dist/src/modules/protection-plan/application/listing/use-get-protection-plan-summary.d.ts +13 -0
  101. package/dist/src/modules/protection-plan/application/listing/use-is-merge-authority-mode.d.ts +3 -0
  102. package/dist/src/modules/protection-plan/application/listing/use-protection-plan-listener.d.ts +25 -0
  103. package/dist/src/modules/protection-plan/application/merging-process/merge-authority/use-authorize-merge-authority.d.ts +13 -0
  104. package/dist/src/modules/protection-plan/application/merging-process/merge-authority/use-get-merge-authority-protection-plan.d.ts +12 -0
  105. package/dist/src/modules/protection-plan/application/merging-process/merge-authority/use-merge-authority-merge-process-events.d.ts +6 -0
  106. package/dist/src/modules/protection-plan/application/merging-process/merge-triggers/use-retry-active-merge-trigger.d.ts +10 -0
  107. package/dist/src/modules/protection-plan/application/merging-process/merge-triggers/use-validate-merge-trigger.d.ts +12 -0
  108. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/collection/use-collect-backup-shares.d.ts +9 -0
  109. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/collection/use-collect-cold-share.d.ts +8 -0
  110. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/collection/use-collect-mobile-shares.d.ts +5 -0
  111. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/collection/use-collect-released-mobile-shares.d.ts +9 -0
  112. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/collection/use-collect-validator-shares.d.ts +9 -0
  113. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/use-check-can-collect-shares.d.ts +2 -0
  114. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/use-save-release-mobile-share-request.d.ts +11 -0
  115. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/use-send-plan-share-merge-status-event.d.ts +15 -0
  116. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/use-send-plan-shares-merged.d.ts +10 -0
  117. package/dist/src/modules/protection-plan/application/merging-process/use-close-protection-plan.d.ts +10 -0
  118. package/dist/src/modules/protection-plan/application/merging-process/use-create-merging-process.d.ts +9 -0
  119. package/dist/src/modules/protection-plan/application/merging-process/use-delete-merging-process-by-criteria.d.ts +11 -0
  120. package/dist/src/modules/protection-plan/application/merging-process/use-delete-merging-process.d.ts +10 -0
  121. package/dist/src/modules/protection-plan/application/merging-process/use-get-merging-process-by-plan.d.ts +23 -0
  122. package/dist/src/modules/protection-plan/application/merging-process/use-merge-plan-beneficiary-selection.d.ts +27 -0
  123. package/dist/src/modules/protection-plan/application/merging-process/use-persist-merge-process.d.ts +12 -0
  124. package/dist/src/modules/protection-plan/application/merging-process/use-reveal-plan-data.d.ts +13 -0
  125. package/dist/src/modules/protection-plan/application/merging-process/use-save-merging-process.d.ts +9 -0
  126. package/dist/src/modules/protection-plan/application/merging-process/use-scan-plans-from-merge-authority-device.d.ts +10 -0
  127. package/dist/src/modules/protection-plan/application/merging-process/use-shareholder-merge-process-events.d.ts +2 -0
  128. package/dist/src/modules/protection-plan/domain/dto/plan-dto.d.ts +68 -0
  129. package/dist/src/modules/protection-plan/domain/dto/protection-plan-input.d.ts +173 -0
  130. package/dist/src/modules/protection-plan/domain/models/app-process.d.ts +29 -0
  131. package/dist/src/modules/protection-plan/domain/models/backup/backup-plan.d.ts +18 -0
  132. package/dist/src/modules/protection-plan/domain/models/backup/backup-shareholder.d.ts +9 -0
  133. package/dist/src/modules/protection-plan/domain/models/client/protection-plan-summary.d.ts +218 -0
  134. package/dist/src/modules/protection-plan/domain/models/data-asset.d.ts +113 -0
  135. package/dist/src/modules/protection-plan/domain/models/device-share-info.d.ts +10 -0
  136. package/dist/src/modules/protection-plan/domain/models/inheritance/heir.d.ts +9 -0
  137. package/dist/src/modules/protection-plan/domain/models/inheritance/inheritance-plan.d.ts +16 -0
  138. package/dist/src/modules/protection-plan/domain/models/merging-process/active-merge-process.d.ts +15 -0
  139. package/dist/src/modules/protection-plan/domain/models/merging-process/merging-process.d.ts +135 -0
  140. package/dist/src/modules/protection-plan/domain/models/plan-creation-proccess/plan-creation-process.d.ts +69 -0
  141. package/dist/src/modules/protection-plan/domain/models/plan-share.d.ts +69 -0
  142. package/dist/src/modules/protection-plan/domain/models/proccess-step.d.ts +21 -0
  143. package/dist/src/modules/protection-plan/domain/models/protection-plan-details.d.ts +70 -0
  144. package/dist/src/modules/protection-plan/domain/models/protection-plan-passphrase.d.ts +18 -0
  145. package/dist/src/modules/protection-plan/domain/models/protection-plan.d.ts +238 -0
  146. package/dist/src/modules/protection-plan/domain/models/shareholder.d.ts +32 -0
  147. package/dist/src/modules/protection-plan/domain/models/storage-option.d.ts +29 -0
  148. package/dist/src/modules/protection-plan/domain/models/trigger-settings-info.d.ts +6 -0
  149. package/dist/src/modules/protection-plan/domain/models/trigger.d.ts +46 -0
  150. package/dist/src/modules/protection-plan/domain/repositories/merge-authority-protection-plan-repository.d.ts +13 -0
  151. package/dist/src/modules/protection-plan/domain/repositories/merging-process-repository.d.ts +62 -0
  152. package/dist/src/modules/protection-plan/domain/repositories/plan-creation-repository.d.ts +7 -0
  153. package/dist/src/modules/protection-plan/domain/repositories/plan-security-repository.d.ts +7 -0
  154. package/dist/src/modules/protection-plan/domain/repositories/plan-triggers-repository.d.ts +4 -0
  155. package/dist/src/modules/protection-plan/domain/repositories/protection-plan-repository.d.ts +24 -0
  156. package/dist/src/modules/protection-plan/domain/services/blockchain-service.d.ts +32 -0
  157. package/dist/src/modules/protection-plan/domain/services/input-validation/PlanTypeInputValidator.d.ts +4 -0
  158. package/dist/src/modules/protection-plan/domain/services/input-validation/plan-beneficiaries-input-validator.d.ts +240 -0
  159. package/dist/src/modules/protection-plan/domain/services/input-validation/plan-data-assets-input-validator.d.ts +1108 -0
  160. package/dist/src/modules/protection-plan/domain/services/input-validation/plan-details-input-validator.d.ts +23 -0
  161. package/dist/src/modules/protection-plan/domain/services/input-validation/plan-shares-configuration-input-validator.d.ts +13 -0
  162. package/dist/src/modules/protection-plan/domain/services/input-validation/plan-storage-configuration-input-validator.d.ts +25 -0
  163. package/dist/src/modules/protection-plan/domain/services/input-validation/plan-triggers-input-validator.d.ts +105 -0
  164. package/dist/src/modules/protection-plan/domain/services/input-validation/utils/index.d.ts +3 -0
  165. package/dist/src/modules/protection-plan/domain/services/merge-authorization-handler.d.ts +14 -0
  166. package/dist/src/modules/protection-plan/domain/services/merge-process-event-listener.d.ts +14 -0
  167. package/dist/src/modules/protection-plan/domain/services/plan-data-assets-manager.d.ts +69 -0
  168. package/dist/src/modules/protection-plan/domain/services/plan-data-revealer.d.ts +5 -0
  169. package/dist/src/modules/protection-plan/domain/services/plan-event-listener.d.ts +10 -0
  170. package/dist/src/modules/protection-plan/domain/services/plan-merge-threshold-range-calculator.d.ts +8 -0
  171. package/dist/src/modules/protection-plan/domain/services/plan-recovery-shares-range-calculator.d.ts +8 -0
  172. package/dist/src/modules/protection-plan/domain/services/plan-shares-generator.d.ts +18 -0
  173. package/dist/src/modules/protection-plan/domain/services/vault-service.d.ts +10 -0
  174. package/dist/src/modules/protection-plan/domain/utils/plan-details-mapper.d.ts +12 -0
  175. package/dist/src/modules/protection-plan/domain/utils/plan-shares-details-mapper.d.ts +10 -0
  176. package/dist/src/modules/protection-plan/domain/utils/plan-triggers-details-mapper.d.ts +5 -0
  177. package/dist/src/modules/protection-plan/domain/utils/protection-plan-internal-mapper.d.ts +5 -0
  178. package/dist/src/modules/protection-plan/index.d.ts +28 -0
  179. package/dist/src/modules/protection-plan/infrastructure/mappers/backup-shareholder-mapper.d.ts +7 -0
  180. package/dist/src/modules/protection-plan/infrastructure/mappers/draft-protection-plan-mapper.d.ts +8 -0
  181. package/dist/src/modules/protection-plan/infrastructure/mappers/heir-mapper.d.ts +7 -0
  182. package/dist/src/modules/protection-plan/infrastructure/mappers/merging-process-mapper.d.ts +5 -0
  183. package/dist/src/modules/protection-plan/infrastructure/mappers/plan-creation-mapper.d.ts +5 -0
  184. package/dist/src/modules/protection-plan/infrastructure/mappers/protection-plan-filters-mapper.d.ts +4 -0
  185. package/dist/src/modules/protection-plan/infrastructure/mappers/protection-plan-mapper.d.ts +10 -0
  186. package/dist/src/modules/protection-plan/infrastructure/repositories/app-merging-process-repository.d.ts +65 -0
  187. package/dist/src/modules/protection-plan/infrastructure/repositories/app-plan-creation-repository.d.ts +12 -0
  188. package/dist/src/modules/protection-plan/infrastructure/repositories/app-plan-security-repository.d.ts +11 -0
  189. package/dist/src/modules/protection-plan/infrastructure/repositories/app-plan-triggers-repository.d.ts +10 -0
  190. package/dist/src/modules/protection-plan/infrastructure/repositories/protection-plan/app-merge-authority-protection-plan-repository.d.ts +17 -0
  191. package/dist/src/modules/protection-plan/infrastructure/repositories/protection-plan/app-protection-plan-repository.d.ts +13 -0
  192. package/dist/src/modules/protection-plan/infrastructure/services/app-blockchain-service.d.ts +42 -0
  193. package/dist/src/modules/protection-plan/infrastructure/services/app-plan-data-revealer.d.ts +14 -0
  194. package/dist/src/modules/protection-plan/infrastructure/services/app-plan-shares-generator.d.ts +5 -0
  195. package/dist/src/modules/protection-plan/infrastructure/services/constants/device-constants.d.ts +1 -0
  196. package/dist/src/modules/protection-plan/infrastructure/services/inheriti-vault-service.d.ts +15 -0
  197. package/dist/src/modules/protection-plan/infrastructure/services/socket-io-merge-authorization-handler.d.ts +17 -0
  198. package/dist/src/modules/protection-plan/infrastructure/services/socket-io-merge-process-event-listener.d.ts +14 -0
  199. package/dist/src/modules/protection-plan/infrastructure/services/socket-io-plan-event-listener.d.ts +14 -0
  200. package/dist/src/modules/protection-plan/ui/plan-creation-process/hooks/use-distribute-cold-shares-process.d.ts +15 -0
  201. package/dist/src/modules/protection-plan/ui/plan-creation-process/hooks/use-get-active-plan-configuration-process.d.ts +11 -0
  202. package/dist/src/modules/protection-plan/ui/plan-creation-process/hooks/use-plan-configuration-process-steps.d.ts +16 -0
  203. package/dist/src/modules/protection-plan/ui/plan-creation-process/hooks/use-plan-configuration-process.d.ts +25 -0
  204. package/dist/src/modules/protection-plan/ui/plan-creation-process/hooks/use-start-protection-plan-configuration-process.d.ts +10 -0
  205. package/dist/src/modules/protection-plan/ui/plan-creation-process/view-models/plan-configuration-process-view.d.ts +55 -0
  206. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/merge-athority/use-merge-authority-sk-mobile-plan-detection.d.ts +13 -0
  207. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/merge-athority/use-merge-authority-sk-pro-plan-detection.d.ts +12 -0
  208. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-abort-merge-process.d.ts +6 -0
  209. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-active-merge-process-listener.d.ts +9 -0
  210. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-collect-plan-cold-share-process.d.ts +13 -0
  211. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-count-down.d.ts +7 -0
  212. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-initialize-merging-process.d.ts +21 -0
  213. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-merge-process-controller.d.ts +13 -0
  214. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-merge-process-release-shares-controller.d.ts +9 -0
  215. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-plan-merge-process.d.ts +55 -0
  216. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-process-plan-merge-steps.d.ts +11 -0
  217. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-reveal-data-controller.d.ts +26 -0
  218. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-start-merge-process.d.ts +20 -0
  219. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-trigger-countdown.d.ts +18 -0
  220. package/dist/src/modules/protection-plan/ui/plan-merge-process/utils/merge-process-utils.d.ts +3 -0
  221. package/dist/src/modules/protection-plan/ui/plan-merge-process/view-models/plan-merge-process-view.d.ts +173 -0
  222. package/dist/src/modules/protection-plan/ui/protection-plan/utils/plan-beneficiary-builder.d.ts +12 -0
  223. package/dist/src/modules/protection-plan/ui/protection-plan/utils/plan-data-asset-builder.d.ts +35 -0
  224. package/dist/src/modules/protection-plan/ui/protection-plan/utils/protection-plan-code.d.ts +7 -0
  225. package/dist/src/modules/protection-plan/ui/protection-plan/utils/protection-plan-id.d.ts +7 -0
  226. package/dist/src/modules/protection-plan/ui/protection-plan/utils/trigger-builder.d.ts +24 -0
  227. package/dist/src/modules/safekey/application/use-connect-safekey-pro-device.d.ts +10 -0
  228. package/dist/src/modules/safekey/application/use-disconnect-safekey-device.d.ts +8 -0
  229. package/dist/src/modules/safekey/application/use-safekey-device.d.ts +16 -0
  230. package/dist/src/modules/safekey/application/use-validate-safekey-device-pin.d.ts +12 -0
  231. package/dist/src/modules/safekey/domain/services/cold-storage-service.d.ts +55 -0
  232. package/dist/src/modules/safekey/index.d.ts +4 -0
  233. package/dist/src/modules/safekey/infrastructure/services/safekey-cold-storage-service.d.ts +45 -0
  234. package/dist/src/modules/safekey/infrastructure/services/safekey-service.d.ts +9 -0
  235. package/dist/test/index.js +14 -0
  236. package/dist/tests/modules/_shared/domain/models/FinancialMother.d.ts +11 -0
  237. package/dist/tests/modules/_shared/domain/models/date-mother.d.ts +6 -0
  238. package/dist/tests/modules/_shared/domain/models/email-mother.d.ts +3 -0
  239. package/dist/tests/modules/_shared/domain/models/id-mother.d.ts +3 -0
  240. package/dist/tests/modules/_shared/domain/models/internet-mother.d.ts +11 -0
  241. package/dist/tests/modules/_shared/domain/models/mother-creator.d.ts +3 -0
  242. package/dist/tests/modules/_shared/domain/models/name-mother.d.ts +5 -0
  243. package/dist/tests/modules/_shared/domain/models/number-mother.d.ts +7 -0
  244. package/dist/tests/modules/_shared/domain/models/random-element-picker-mother.d.ts +3 -0
  245. package/dist/tests/modules/_shared/domain/models/uuid-mother.d.ts +3 -0
  246. package/dist/tests/modules/_shared/domain/models/word-mother.d.ts +5 -0
  247. package/dist/tests/modules/index.d.ts +6 -0
  248. package/dist/tests/modules/protection-plan/domain/plan-beneficiary-input-generator.d.ts +18 -0
  249. package/dist/tests/modules/protection-plan/domain/plan-data-asset-input-generator.d.ts +13 -0
  250. package/dist/tests/modules/protection-plan/domain/plan-details-input-generator.d.ts +7 -0
  251. package/dist/tests/modules/protection-plan/domain/plan-shares-configuration-input-generator.d.ts +20 -0
  252. package/dist/tests/modules/protection-plan/domain/plan-storage-configuration-input-generator.d.ts +4 -0
  253. package/dist/tests/modules/protection-plan/domain/plan-trigger-input-generator.d.ts +27 -0
  254. package/dist/tests/modules/protection-plan/domain/protection-plan-input-generator.d.ts +4 -0
  255. package/dist/tests/modules/protection-plan/index.d.ts +8 -0
  256. package/index.ts +6 -0
  257. package/package.json +78 -0
@@ -0,0 +1,11 @@
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
+ }
@@ -0,0 +1,6 @@
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
+ }
@@ -0,0 +1,3 @@
1
+ export default class EmailMother {
2
+ static random(): string;
3
+ }
@@ -0,0 +1,3 @@
1
+ export default class IdMother {
2
+ static random(): string;
3
+ }
@@ -0,0 +1,11 @@
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
+ }
@@ -0,0 +1,3 @@
1
+ export default class MotherCreator {
2
+ static faker: import("@faker-js/faker").Faker;
3
+ }
@@ -0,0 +1,5 @@
1
+ export default class NameMother {
2
+ static random(): string;
3
+ static firstName(): string;
4
+ static lastName(): string;
5
+ }
@@ -0,0 +1,7 @@
1
+ export default class NumberMother {
2
+ static float(): number;
3
+ static integer(options?: {
4
+ min: number;
5
+ max: number;
6
+ }): NumberMother;
7
+ }
@@ -0,0 +1,3 @@
1
+ export declare class RandomElementPickerMother {
2
+ static from<T>(elements: T[]): T;
3
+ }
@@ -0,0 +1,3 @@
1
+ export default class UuidMother {
2
+ static random(): string;
3
+ }
@@ -0,0 +1,5 @@
1
+ export default class WordMother {
2
+ static random(): string;
3
+ static randomWords(n?: number): string;
4
+ static sample(length?: number): string;
5
+ }
@@ -0,0 +1,6 @@
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
+ };
@@ -0,0 +1,18 @@
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
+ }
@@ -0,0 +1,13 @@
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
+ }
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1,20 @@
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
+ }
@@ -0,0 +1,4 @@
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
+ }
@@ -0,0 +1,27 @@
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
+ }
@@ -0,0 +1,4 @@
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
+ }
@@ -0,0 +1,8 @@
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';
package/index.ts ADDED
@@ -0,0 +1,6 @@
1
+ export * from './src/modules/auth';
2
+ export * from './src/modules/beneficiary';
3
+ export * from './src/modules/protection-plan';
4
+ export * from './src/modules/safekey';
5
+
6
+
package/package.json ADDED
@@ -0,0 +1,78 @@
1
+ {
2
+ "name": "@safetech/inheriti-client-sdk",
3
+ "version": "1.0.0",
4
+ "type": "module",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.js",
11
+ "require": "./dist/index.js"
12
+ },
13
+ "./test": {
14
+ "import": "./dist/test/index.js",
15
+ "require": "./dist/test/index.js"
16
+ }
17
+ },
18
+ "typesVersions": {
19
+ "*": {
20
+ "test": [
21
+ "dist/test/index.d.ts"
22
+ ]
23
+ }
24
+ },
25
+ "private": false,
26
+ "license": "MIT",
27
+ "dependencies": {
28
+ "crypto-js": "^4.2.0",
29
+ "date-fns": "^2.29.3",
30
+ "esbuild-plugin-alias-path": "^2.0.2",
31
+ "esbuild-plugin-d.ts": "^1.3.1",
32
+ "jwt-decode": "^3.1.2",
33
+ "lodash": "^4.17.20",
34
+ "moment": "^2.29.1",
35
+ "moment-timezone": "^0.5.34",
36
+ "numeral": "^2.0.6",
37
+ "openpgp": "^5.11.0",
38
+ "react": "18.3.1",
39
+ "react-query": "^3.34.15",
40
+ "safekey": "git+https://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@github.com/safetechio/SafeKey_Libs_JS.git#2c8d9100f3612ae0e229cfde6a00ffdc29df563f",
41
+ "secure-web-storage": "^1.0.2",
42
+ "socket.io-client": "^4.7.3",
43
+ "sonner": "^2.0.3",
44
+ "use-context-selector": "^1.3.7",
45
+ "uuid": "^11.1.0",
46
+ "zod": "^3.24.3"
47
+ },
48
+ "devDependencies": {
49
+ "@types/lodash": "^4.17.16",
50
+ "@types/node": "^22.14.0",
51
+ "@types/react": "~18.3.12",
52
+ "esbuild": "^0.25.2",
53
+ "esbuild-plugin-alias": "^0.2.1",
54
+ "npm-dts": "^1.3.13",
55
+ "ts-node": "^10.9.2",
56
+ "tsc-alias": "^1.8.16",
57
+ "tsconfig-paths": "^4.2.0",
58
+ "ttypescript": "^1.5.15",
59
+ "typedoc": "^0.28.3",
60
+ "typescript": "^5.8.3"
61
+ },
62
+ "optionalDependencies": {
63
+ "@faker-js/faker": "^9.7.0"
64
+ },
65
+ "scripts": {
66
+ "build": "node esbuild.config.js",
67
+ "publish-version": "node scripts/publish-sdk-version.js",
68
+ "add-patch": "node scripts/bump-version.js patch",
69
+ "generate-docs": "npx typedoc",
70
+ "publish-npm": "node scripts/publish-npm.js"
71
+ },
72
+ "files": [
73
+ "dist",
74
+ "README.md",
75
+ "LICENSE",
76
+ "index.ts"
77
+ ]
78
+ }