@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,40 +0,0 @@
1
- declare const DateTimeUtils: {
2
- differenceInDays: (a: Date, b: Date) => number;
3
- differenceInMinutes: (a: Date, b: Date) => number;
4
- differenceInSeconds: (a: Date, b: Date) => number;
5
- addMonths: (a: Date, months: number) => Date;
6
- subtractMonths: (a: Date, months: number) => Date;
7
- addYears: (a: Date, years: number) => Date;
8
- subtractYears: (a: Date, years: number) => Date;
9
- addDays: (a: Date, days: number) => Date;
10
- addMinutes: (a: Date, minutes: number) => Date;
11
- addHours: (a: Date, hours: number) => Date;
12
- ago(date: Date): string;
13
- subtractDays: (a: Date, days: number) => Date;
14
- subtractMinutes: (a: Date, minutes: number) => Date;
15
- subtractWeeks: (a: Date, weeks: number) => Date;
16
- utc(a: Date): Date;
17
- utcOffset(timezone?: string): number;
18
- toTimezone(date: Date, timezone: string): Date;
19
- hoursOffSet(timezone: string): number;
20
- guessTimezone(): string;
21
- format: (date: Date, format: string, utc?: boolean) => string;
22
- isPast: (date: Date) => boolean;
23
- age: (date: Date) => number;
24
- fromTime(time: string, format?: string | undefined): Date;
25
- fromString(date: string, format?: string | undefined, utc?: boolean): Date;
26
- isAfter(a: Date, b: Date): boolean;
27
- getDateOnly(a: Date): Date;
28
- timezoneList(): string[];
29
- startOfMonth: (date: Date) => Date;
30
- endOfMonth: (date: Date) => Date;
31
- startOfDay: (date: Date) => Date;
32
- endOfDay: (date: Date) => Date;
33
- startOfWeek: (date: Date) => Date;
34
- endOfWeek: (date: Date) => Date;
35
- timezones(): string[];
36
- daysRange(count: number, interval?: number): Date[];
37
- isDate(value: any): value is Date;
38
- isEqual(date1: Date, date2: Date): boolean;
39
- };
40
- export default DateTimeUtils;
@@ -1,17 +0,0 @@
1
- import * as openpgp from 'openpgp/lightweight';
2
- declare const EncryptUtils: {
3
- createPassphrase(length?: number): string;
4
- generateKey(passphrase: string): Promise<{
5
- publicKeyArmored: string;
6
- privateKeyArmored: string;
7
- }>;
8
- asymmetricEncrypt(data: string, publicKeyArmored: string, privateKeyArmored: string, passphrase: string): Promise<string>;
9
- symmetricEncrypt(data: string, passphrase: string): Promise<string>;
10
- decryptPrivateKey({ privateKeyArmored, passphrase }: {
11
- privateKeyArmored: any;
12
- passphrase: any;
13
- }): Promise<openpgp.PrivateKey>;
14
- keyToBase64(key: string, passphrase: string): Promise<string>;
15
- keyFromBase64(base64D: string, passphrase: string): Promise<openpgp.PrivateKey>;
16
- };
17
- export default EncryptUtils;
@@ -1,4 +0,0 @@
1
- declare const NumberUtils: {
2
- format: (value: number, formatString: string) => string;
3
- };
4
- export default NumberUtils;
@@ -1,76 +0,0 @@
1
- type JSONObject = {
2
- [key: string]: any;
3
- };
4
- declare const ObjectUtils: {
5
- get: {
6
- <TObject extends object, TKey extends keyof TObject>(object: TObject, path: TKey | [TKey]): TObject[TKey];
7
- <TObject extends object, TKey extends keyof TObject>(object: TObject | null | undefined, path: TKey | [TKey]): TObject[TKey] | undefined;
8
- <TObject extends object, TKey extends keyof TObject, TDefault>(object: TObject | null | undefined, path: TKey | [TKey], defaultValue: TDefault): Exclude<TObject[TKey], undefined> | TDefault;
9
- <TObject extends object, TKey1 extends keyof TObject, TKey2 extends keyof TObject[TKey1]>(object: TObject, path: [TKey1, TKey2]): TObject[TKey1][TKey2];
10
- <TObject extends object, TKey1 extends keyof TObject, TKey2 extends keyof NonNullable<TObject[TKey1]>>(object: TObject | null | undefined, path: [TKey1, TKey2]): NonNullable<TObject[TKey1]>[TKey2] | undefined;
11
- <TObject extends object, TKey1 extends keyof TObject, TKey2 extends keyof NonNullable<TObject[TKey1]>, TDefault>(object: TObject | null | undefined, path: [TKey1, TKey2], defaultValue: TDefault): Exclude<NonNullable<TObject[TKey1]>[TKey2], undefined> | TDefault;
12
- <TObject extends object, TKey1 extends keyof TObject, TKey2 extends keyof TObject[TKey1], TKey3 extends keyof TObject[TKey1][TKey2]>(object: TObject, path: [TKey1, TKey2, TKey3]): TObject[TKey1][TKey2][TKey3];
13
- <TObject extends object, TKey1 extends keyof TObject, TKey2 extends keyof NonNullable<TObject[TKey1]>, TKey3 extends keyof NonNullable<NonNullable<TObject[TKey1]>[TKey2]>>(object: TObject | null | undefined, path: [TKey1, TKey2, TKey3]): NonNullable<NonNullable<TObject[TKey1]>[TKey2]>[TKey3] | undefined;
14
- <TObject extends object, TKey1 extends keyof TObject, TKey2 extends keyof NonNullable<TObject[TKey1]>, TKey3 extends keyof NonNullable<NonNullable<TObject[TKey1]>[TKey2]>, TDefault>(object: TObject | null | undefined, path: [TKey1, TKey2, TKey3], defaultValue: TDefault): Exclude<NonNullable<NonNullable<TObject[TKey1]>[TKey2]>[TKey3], undefined> | TDefault;
15
- <TObject extends object, TKey1 extends keyof TObject, TKey2 extends keyof TObject[TKey1], TKey3 extends keyof TObject[TKey1][TKey2], TKey4 extends keyof TObject[TKey1][TKey2][TKey3]>(object: TObject, path: [TKey1, TKey2, TKey3, TKey4]): TObject[TKey1][TKey2][TKey3][TKey4];
16
- <TObject extends object, TKey1 extends keyof TObject, TKey2 extends keyof NonNullable<TObject[TKey1]>, TKey3 extends keyof NonNullable<NonNullable<TObject[TKey1]>[TKey2]>, TKey4 extends keyof NonNullable<NonNullable<NonNullable<TObject[TKey1]>[TKey2]>[TKey3]>>(object: TObject | null | undefined, path: [TKey1, TKey2, TKey3, TKey4]): NonNullable<NonNullable<NonNullable<TObject[TKey1]>[TKey2]>[TKey3]>[TKey4] | undefined;
17
- <TObject extends object, TKey1 extends keyof TObject, TKey2 extends keyof NonNullable<TObject[TKey1]>, TKey3 extends keyof NonNullable<NonNullable<TObject[TKey1]>[TKey2]>, TKey4 extends keyof NonNullable<NonNullable<NonNullable<TObject[TKey1]>[TKey2]>[TKey3]>, TDefault>(object: TObject | null | undefined, path: [TKey1, TKey2, TKey3, TKey4], defaultValue: TDefault): Exclude<NonNullable<NonNullable<NonNullable<TObject[TKey1]>[TKey2]>[TKey3]>[TKey4], undefined> | TDefault;
18
- <T>(object: import("lodash").NumericDictionary<T>, path: number): T;
19
- <T>(object: import("lodash").NumericDictionary<T> | null | undefined, path: number): T | undefined;
20
- <T, TDefault>(object: import("lodash").NumericDictionary<T> | null | undefined, path: number, defaultValue: TDefault): T | TDefault;
21
- <TDefault>(object: null | undefined, path: import("lodash").PropertyPath, defaultValue: TDefault): TDefault;
22
- (object: null | undefined, path: import("lodash").PropertyPath): undefined;
23
- <TObject, TPath extends string>(data: TObject, path: TPath): string extends TPath ? any : import("lodash").GetFieldType<TObject, TPath>;
24
- <TObject, TPath extends string, TDefault = import("lodash").GetFieldType<TObject, TPath, "Path">>(data: TObject, path: TPath, defaultValue: TDefault): Exclude<import("lodash").GetFieldType<TObject, TPath>, null | undefined> | TDefault;
25
- (object: any, path: import("lodash").PropertyPath, defaultValue?: any): any;
26
- };
27
- isNull: (value: any) => value is null;
28
- omit: {
29
- <T extends object, K extends import("lodash").PropertyName[]>(object: T | null | undefined, ...paths: K): Pick<T, Exclude<keyof T, K[number]>>;
30
- <T extends object, K extends keyof T>(object: T | null | undefined, ...paths: Array<import("lodash").Many<K>>): import("lodash").Omit<T, K>;
31
- <T extends object>(object: T | null | undefined, ...paths: Array<import("lodash").Many<import("lodash").PropertyName>>): import("lodash").PartialObject<T>;
32
- };
33
- mapValues: {
34
- <TResult>(obj: string | null | undefined, callback: import("lodash").StringIterator<TResult>): import("lodash").NumericDictionary<TResult>;
35
- <T, TResult>(array: T[], callback: import("lodash").ArrayIterator<T, TResult>): import("lodash").NumericDictionary<TResult>;
36
- <T extends object, TResult>(obj: T | null | undefined, callback: import("lodash").ObjectIterator<T, TResult>): { [P in keyof T]: TResult; };
37
- <T>(obj: import("lodash").Dictionary<T> | import("lodash").NumericDictionary<T> | null | undefined, iteratee: object): import("lodash").Dictionary<boolean>;
38
- <T extends object>(obj: T | null | undefined, iteratee: object): { [P in keyof T]: boolean; };
39
- <T, TKey extends keyof T>(obj: import("lodash").Dictionary<T> | import("lodash").NumericDictionary<T> | null | undefined, iteratee: TKey): import("lodash").Dictionary<T[TKey]>;
40
- <T>(obj: import("lodash").Dictionary<T> | import("lodash").NumericDictionary<T> | null | undefined, iteratee: string): import("lodash").Dictionary<any>;
41
- <T extends object>(obj: T | null | undefined, iteratee: string): { [P in keyof T]: any; };
42
- (obj: string | null | undefined): import("lodash").NumericDictionary<string>;
43
- <T>(obj: import("lodash").Dictionary<T> | import("lodash").NumericDictionary<T> | null | undefined): import("lodash").Dictionary<T>;
44
- <T extends object>(obj: T): T;
45
- <T extends object>(obj: T | null | undefined): import("lodash").PartialObject<T>;
46
- };
47
- omitUnknown: (object: any) => Partial<any>;
48
- omitBy: {
49
- <T>(object: import("lodash").Dictionary<T> | null | undefined, predicate?: import("lodash").ValueKeyIteratee<T>): import("lodash").Dictionary<T>;
50
- <T>(object: import("lodash").NumericDictionary<T> | null | undefined, predicate?: import("lodash").ValueKeyIteratee<T>): import("lodash").NumericDictionary<T>;
51
- <T extends object>(object: T | null | undefined, predicate: import("lodash").ValueKeyIteratee<T[keyof T]>): import("lodash").PartialObject<T>;
52
- };
53
- pick: {
54
- <T extends object, U extends keyof T>(object: T, ...props: Array<import("lodash").Many<U>>): Pick<T, U>;
55
- <T>(object: T | null | undefined, ...props: Array<import("lodash").Many<import("lodash").PropertyPath>>): import("lodash").PartialObject<T>;
56
- };
57
- find: {
58
- <T, S extends T>(collection: import("lodash").List<T> | null | undefined, predicate: import("lodash").ListIteratorTypeGuard<T, S>, fromIndex?: number): S | undefined;
59
- <T>(collection: import("lodash").List<T> | null | undefined, predicate?: import("lodash").ListIterateeCustom<T, boolean>, fromIndex?: number): T | undefined;
60
- <T extends object, S extends T[keyof T]>(collection: T | null | undefined, predicate: import("lodash").ObjectIteratorTypeGuard<T, S>, fromIndex?: number): S | undefined;
61
- <T extends object>(collection: T | null | undefined, predicate?: import("lodash").ObjectIterateeCustom<T, boolean>, fromIndex?: number): T[keyof T] | undefined;
62
- };
63
- isEmpty: (value: any) => value is null;
64
- merge: {
65
- <TObject, TSource>(object: TObject, source: TSource): TObject & TSource;
66
- <TObject, TSource1, TSource2>(object: TObject, source1: TSource1, source2: TSource2): TObject & TSource1 & TSource2;
67
- <TObject, TSource1, TSource2, TSource3>(object: TObject, source1: TSource1, source2: TSource2, source3: TSource3): TObject & TSource1 & TSource2 & TSource3;
68
- <TObject, TSource1, TSource2, TSource3, TSource4>(object: TObject, source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4): TObject & TSource1 & TSource2 & TSource3 & TSource4;
69
- (object: any, ...otherArgs: any[]): any;
70
- };
71
- convertStringToObject: typeof convertStringToObject;
72
- compress(json: JSONObject, keys: string[]): any[];
73
- decompress(compressedArray: any[], keys: string[]): JSONObject;
74
- };
75
- declare function convertStringToObject(inputString: any): {};
76
- export default ObjectUtils;
@@ -1,7 +0,0 @@
1
- declare const TextUtils: {
2
- truncate(text: string, max: number): string;
3
- insertAt(str: string | undefined, sub: any, pos: any): string;
4
- capitalize(str: string): string;
5
- generateFakeBlockchainAddress(): string;
6
- };
7
- export default TextUtils;
@@ -1,6 +0,0 @@
1
- declare const UuidUtils: {
2
- generate(): string;
3
- code(length?: number, includeLetters?: boolean): string;
4
- validate(id: string): boolean;
5
- };
6
- export default UuidUtils;
@@ -1,36 +0,0 @@
1
- import PaginationOptions from '../../../_shared/domain/models/pagination-options';
2
- import SortOptions from '../../../_shared/domain/models/sort-options';
3
- export interface APIRepositoryProps {
4
- tokenId: string;
5
- refreshTokenId: string;
6
- client: any;
7
- }
8
- interface RequestOptions {
9
- autoRefreshToken?: boolean;
10
- token?: string;
11
- refreshToken?: string;
12
- }
13
- export default abstract class APIRepository {
14
- protected readonly props: APIRepositoryProps;
15
- private storage;
16
- constructor(props: APIRepositoryProps);
17
- protected get tokenId(): string;
18
- protected get refreshTokenId(): string;
19
- protected get userToken(): any;
20
- protected get refreshToken(): any;
21
- findByCriteriaRequest<T>(resource: string, filter?: any, pagination?: PaginationOptions, sort?: SortOptions, withAuth?: boolean, options?: RequestOptions): Promise<T[]>;
22
- countRequest<T>(resource: string, where?: any, withAuth?: boolean, options?: RequestOptions): Promise<any>;
23
- findOneById<T>(resource: string, id: string, withAuth?: boolean, options?: RequestOptions): Promise<T | undefined>;
24
- create<T>(resource: string, data: any, withAuth?: boolean, options?: {
25
- autoRefreshToken?: boolean;
26
- token?: string;
27
- refreshToken?: string;
28
- }): Promise<any>;
29
- updateById<T>(resource: string, id: string, changes: any, withAuth?: boolean, options?: RequestOptions): Promise<any>;
30
- deleteById<T>(resource: string, id: string, withAuth?: boolean, options?: RequestOptions): Promise<void>;
31
- get<T>(path: string, withAuth?: boolean, options?: RequestOptions): Promise<T>;
32
- post<T>(path: string, data: any, withAuth?: boolean, options?: RequestOptions): Promise<any>;
33
- patch<T>(resource: string, changes: any, withAuth?: boolean, options?: RequestOptions): Promise<any>;
34
- private getClientApiUrl;
35
- }
36
- export {};
@@ -1,9 +0,0 @@
1
- export default class AppPayloadEncrypter {
2
- private readonly secretKey;
3
- private readonly header;
4
- constructor({ secretKey }: {
5
- secretKey: string;
6
- });
7
- encrypt(data: any): any;
8
- decrypt(data: string): any;
9
- }
@@ -1,7 +0,0 @@
1
- declare class HttpError extends Error {
2
- readonly message: string;
3
- readonly status: string;
4
- readonly body: null;
5
- constructor(message: string, status: string, body?: null);
6
- }
7
- export default HttpError;
@@ -1,48 +0,0 @@
1
- export interface TokenPayload {
2
- exp: number;
3
- [key: string]: any;
4
- }
5
- export interface AuthTokens {
6
- token: string;
7
- refreshToken: string;
8
- }
9
- export interface ApiResponse<T = any> {
10
- status: number;
11
- headers: Headers;
12
- body: T;
13
- rawBody: any;
14
- json: any;
15
- }
16
- export interface ApiClient {
17
- options?: {
18
- env?: string;
19
- [key: string]: any;
20
- };
21
- }
22
- export interface Options extends RequestInit {
23
- token?: string;
24
- refreshToken?: string;
25
- autoRefreshToken?: boolean;
26
- client?: ApiClient;
27
- skipErrorToast?: boolean;
28
- }
29
- /**
30
- * Creates headers from options
31
- */
32
- export declare const createHeadersFromOptions: (options: Options) => Headers;
33
- /**
34
- * Main fetch function with error handling and response interception
35
- */
36
- export declare const fetchJson: <T = any>(url: string, options?: Options) => Promise<ApiResponse<T>>;
37
- /**
38
- * Fetch data without JSON parsing (for blob, text, etc.)
39
- */
40
- export declare const fetchData: (url: string, options?: Options) => Promise<Response>;
41
- /**
42
- * Flatten a nested object
43
- */
44
- export declare const flattenObject: (value: any, path?: any[]) => any;
45
- /**
46
- * Convert a JSON object to a query string
47
- */
48
- export declare function jsonToQueryString(json: Record<string, any>): string;
@@ -1,9 +0,0 @@
1
- export default class BrowserLocalStorage {
2
- removeItem(path: string): void;
3
- getItem<T = any>(path: string): T | null;
4
- setItem(path: string, data: any): void;
5
- clean(root: string): void;
6
- searchItem<T = any>(root: string, callback: (item: T) => boolean): T | undefined;
7
- searchItems<T = any>(root: string, callback: (item: T) => boolean): T[];
8
- multiRemove(root: string, keys: string[]): void;
9
- }
@@ -1,20 +0,0 @@
1
- import AppPlanTriggersRepository from '../../../protection-plan/infrastructure/repositories/app-plan-triggers-repository';
2
- import AppPlanSecurityRepository from '../../../protection-plan/infrastructure/repositories/app-plan-security-repository';
3
- import AppMergingProcessRepository from '../../../protection-plan/infrastructure/repositories/app-merging-process-repository';
4
- import AppPlanCreationRepository from '../../../protection-plan/infrastructure/repositories/app-plan-creation-repository';
5
- import AppMergeAuthorityProtectionPlanRepository from '../../../protection-plan/infrastructure/repositories/protection-plan/app-merge-authority-protection-plan-repository';
6
- import AppProtectionPlanRepository from '../../../protection-plan/infrastructure/repositories/protection-plan/app-protection-plan-repository';
7
- import { AuthClientProps } from '../../infrastructure/providers/inheriti-client-provider';
8
- export interface AppDataProviderProps {
9
- userTokenId: string;
10
- userRefreshTokenId: string;
11
- client: AuthClientProps;
12
- }
13
- export default function AppDataProvider({ client, userRefreshTokenId, userTokenId }: AppDataProviderProps): {
14
- ProtectionPlanRepository: AppProtectionPlanRepository;
15
- MergeAuthorityProtectionPlanRepository: AppMergeAuthorityProtectionPlanRepository;
16
- PlanCreationRepository: AppPlanCreationRepository;
17
- MergingProcessRepository: AppMergingProcessRepository;
18
- PlanSecurityRepository: AppPlanSecurityRepository;
19
- PlanTriggersRepository: AppPlanTriggersRepository;
20
- };
@@ -1,15 +0,0 @@
1
- import { AppUtils } from '../../../_shared/domain/models/app-utils';
2
- import React from 'react';
3
- import { AuthClientProps } from "../../infrastructure/providers/inheriti-client-provider";
4
- import { AppDataProviderProps } from "../../infrastructure/providers/app-data-provider";
5
- import { AppServiceProviderProps } from "../../infrastructure/providers/app-service-provider";
6
- interface AppProviderProps {
7
- children: React.ReactNode;
8
- dataProvider: (props: AppDataProviderProps) => object;
9
- serviceProvider: (props: AppServiceProviderProps) => object;
10
- utilsProvider: AppUtils;
11
- authProvider: any;
12
- client: AuthClientProps;
13
- }
14
- export default function AppProvider({ children, utilsProvider, dataProvider, authProvider, serviceProvider, client, }: AppProviderProps): React.JSX.Element;
15
- export {};
@@ -1,28 +0,0 @@
1
- import ReactQQueryCreator from '../services/react-q-query-creator';
2
- import ReactQueryMutationCreator from '../services/react-query-mutation-creator';
3
- import SocketIoMergeProcessEventListener from '../../../protection-plan/infrastructure/services/socket-io-merge-process-event-listener';
4
- import InheritiVaultService from '../../../protection-plan/infrastructure/services/inheriti-vault-service';
5
- import SafekeyColdStorageService from '../../../safekey/infrastructure/services/safekey-cold-storage-service';
6
- import AppPlanSharesGenerator from '../../../protection-plan/infrastructure/services/app-plan-shares-generator';
7
- import AppPlanDataRevealer from '../../../protection-plan/infrastructure/services/app-plan-data-revealer';
8
- import SocketIoPlanEventListener from "../../../protection-plan/infrastructure/services/socket-io-plan-event-listener";
9
- import SocketIoMergeAuthorizationHandler from "../../../protection-plan/infrastructure/services/socket-io-merge-authorization-handler";
10
- import { AuthClientProps } from "../../infrastructure/providers/inheriti-client-provider";
11
- import AppBlockchainService from "../../../protection-plan/infrastructure/services/app-blockchain-service";
12
- export interface AppServiceProviderProps {
13
- userTokenId: string;
14
- userRefreshTokenId: string;
15
- client: AuthClientProps;
16
- }
17
- export default function AppServiceProvider({ client }: AppServiceProviderProps): {
18
- QueryCreator: ReactQQueryCreator;
19
- MutationCreator: ReactQueryMutationCreator;
20
- ColdStorageService: SafekeyColdStorageService;
21
- PlanSharesGenerator: AppPlanSharesGenerator;
22
- PlanDataRevealer: AppPlanDataRevealer;
23
- VaultService: InheritiVaultService;
24
- MergeProcessEventListener: SocketIoMergeProcessEventListener;
25
- PlanEventListener: SocketIoPlanEventListener;
26
- MergeAuthorizationHandler: SocketIoMergeAuthorizationHandler;
27
- BlockchainService: AppBlockchainService;
28
- };
@@ -1,175 +0,0 @@
1
- declare const AppUtilsProvider: {
2
- object: {
3
- get: {
4
- <TObject extends object, TKey extends keyof TObject>(object: TObject, path: TKey | [TKey]): TObject[TKey];
5
- <TObject extends object, TKey extends keyof TObject>(object: TObject | null | undefined, path: TKey | [TKey]): TObject[TKey] | undefined;
6
- <TObject extends object, TKey extends keyof TObject, TDefault>(object: TObject | null | undefined, path: TKey | [TKey], defaultValue: TDefault): Exclude<TObject[TKey], undefined> | TDefault;
7
- <TObject extends object, TKey1 extends keyof TObject, TKey2 extends keyof TObject[TKey1]>(object: TObject, path: [TKey1, TKey2]): TObject[TKey1][TKey2];
8
- <TObject extends object, TKey1 extends keyof TObject, TKey2 extends keyof NonNullable<TObject[TKey1]>>(object: TObject | null | undefined, path: [TKey1, TKey2]): NonNullable<TObject[TKey1]>[TKey2] | undefined;
9
- <TObject extends object, TKey1 extends keyof TObject, TKey2 extends keyof NonNullable<TObject[TKey1]>, TDefault>(object: TObject | null | undefined, path: [TKey1, TKey2], defaultValue: TDefault): Exclude<NonNullable<TObject[TKey1]>[TKey2], undefined> | TDefault;
10
- <TObject extends object, TKey1 extends keyof TObject, TKey2 extends keyof TObject[TKey1], TKey3 extends keyof TObject[TKey1][TKey2]>(object: TObject, path: [TKey1, TKey2, TKey3]): TObject[TKey1][TKey2][TKey3];
11
- <TObject extends object, TKey1 extends keyof TObject, TKey2 extends keyof NonNullable<TObject[TKey1]>, TKey3 extends keyof NonNullable<NonNullable<TObject[TKey1]>[TKey2]>>(object: TObject | null | undefined, path: [TKey1, TKey2, TKey3]): NonNullable<NonNullable<TObject[TKey1]>[TKey2]>[TKey3] | undefined;
12
- <TObject extends object, TKey1 extends keyof TObject, TKey2 extends keyof NonNullable<TObject[TKey1]>, TKey3 extends keyof NonNullable<NonNullable<TObject[TKey1]>[TKey2]>, TDefault>(object: TObject | null | undefined, path: [TKey1, TKey2, TKey3], defaultValue: TDefault): Exclude<NonNullable<NonNullable<TObject[TKey1]>[TKey2]>[TKey3], undefined> | TDefault;
13
- <TObject extends object, TKey1 extends keyof TObject, TKey2 extends keyof TObject[TKey1], TKey3 extends keyof TObject[TKey1][TKey2], TKey4 extends keyof TObject[TKey1][TKey2][TKey3]>(object: TObject, path: [TKey1, TKey2, TKey3, TKey4]): TObject[TKey1][TKey2][TKey3][TKey4];
14
- <TObject extends object, TKey1 extends keyof TObject, TKey2 extends keyof NonNullable<TObject[TKey1]>, TKey3 extends keyof NonNullable<NonNullable<TObject[TKey1]>[TKey2]>, TKey4 extends keyof NonNullable<NonNullable<NonNullable<TObject[TKey1]>[TKey2]>[TKey3]>>(object: TObject | null | undefined, path: [TKey1, TKey2, TKey3, TKey4]): NonNullable<NonNullable<NonNullable<TObject[TKey1]>[TKey2]>[TKey3]>[TKey4] | undefined;
15
- <TObject extends object, TKey1 extends keyof TObject, TKey2 extends keyof NonNullable<TObject[TKey1]>, TKey3 extends keyof NonNullable<NonNullable<TObject[TKey1]>[TKey2]>, TKey4 extends keyof NonNullable<NonNullable<NonNullable<TObject[TKey1]>[TKey2]>[TKey3]>, TDefault>(object: TObject | null | undefined, path: [TKey1, TKey2, TKey3, TKey4], defaultValue: TDefault): Exclude<NonNullable<NonNullable<NonNullable<TObject[TKey1]>[TKey2]>[TKey3]>[TKey4], undefined> | TDefault;
16
- <T>(object: import("lodash").NumericDictionary<T>, path: number): T;
17
- <T>(object: import("lodash").NumericDictionary<T> | null | undefined, path: number): T | undefined;
18
- <T, TDefault>(object: import("lodash").NumericDictionary<T> | null | undefined, path: number, defaultValue: TDefault): T | TDefault;
19
- <TDefault>(object: null | undefined, path: import("lodash").PropertyPath, defaultValue: TDefault): TDefault;
20
- (object: null | undefined, path: import("lodash").PropertyPath): undefined;
21
- <TObject, TPath extends string>(data: TObject, path: TPath): string extends TPath ? any : import("lodash").GetFieldType<TObject, TPath>;
22
- <TObject, TPath extends string, TDefault = import("lodash").GetFieldType<TObject, TPath, "Path">>(data: TObject, path: TPath, defaultValue: TDefault): Exclude<import("lodash").GetFieldType<TObject, TPath>, null | undefined> | TDefault;
23
- (object: any, path: import("lodash").PropertyPath, defaultValue?: any): any;
24
- };
25
- isNull: (value: any) => value is null;
26
- omit: {
27
- <T extends object, K extends import("lodash").PropertyName[]>(object: T | null | undefined, ...paths: K): Pick<T, Exclude<keyof T, K[number]>>;
28
- <T extends object, K extends keyof T>(object: T | null | undefined, ...paths: Array<import("lodash").Many<K>>): import("lodash").Omit<T, K>;
29
- <T extends object>(object: T | null | undefined, ...paths: Array<import("lodash").Many<import("lodash").PropertyName>>): import("lodash").PartialObject<T>;
30
- };
31
- mapValues: {
32
- <TResult>(obj: string | null | undefined, callback: import("lodash").StringIterator<TResult>): import("lodash").NumericDictionary<TResult>;
33
- <T, TResult>(array: T[], callback: import("lodash").ArrayIterator<T, TResult>): import("lodash").NumericDictionary<TResult>;
34
- <T extends object, TResult>(obj: T | null | undefined, callback: import("lodash").ObjectIterator<T, TResult>): { [P in keyof T]: TResult; };
35
- <T>(obj: import("lodash").Dictionary<T> | import("lodash").NumericDictionary<T> | null | undefined, iteratee: object): import("lodash").Dictionary<boolean>;
36
- <T extends object>(obj: T | null | undefined, iteratee: object): { [P in keyof T]: boolean; };
37
- <T, TKey extends keyof T>(obj: import("lodash").Dictionary<T> | import("lodash").NumericDictionary<T> | null | undefined, iteratee: TKey): import("lodash").Dictionary<T[TKey]>;
38
- <T>(obj: import("lodash").Dictionary<T> | import("lodash").NumericDictionary<T> | null | undefined, iteratee: string): import("lodash").Dictionary<any>;
39
- <T extends object>(obj: T | null | undefined, iteratee: string): { [P in keyof T]: any; };
40
- (obj: string | null | undefined): import("lodash").NumericDictionary<string>;
41
- <T>(obj: import("lodash").Dictionary<T> | import("lodash").NumericDictionary<T> | null | undefined): import("lodash").Dictionary<T>;
42
- <T extends object>(obj: T): T;
43
- <T extends object>(obj: T | null | undefined): import("lodash").PartialObject<T>;
44
- };
45
- omitUnknown: (object: any) => Partial<any>;
46
- omitBy: {
47
- <T>(object: import("lodash").Dictionary<T> | null | undefined, predicate?: import("lodash").ValueKeyIteratee<T>): import("lodash").Dictionary<T>;
48
- <T>(object: import("lodash").NumericDictionary<T> | null | undefined, predicate?: import("lodash").ValueKeyIteratee<T>): import("lodash").NumericDictionary<T>;
49
- <T extends object>(object: T | null | undefined, predicate: import("lodash").ValueKeyIteratee<T[keyof T]>): import("lodash").PartialObject<T>;
50
- };
51
- pick: {
52
- <T extends object, U extends keyof T>(object: T, ...props: Array<import("lodash").Many<U>>): Pick<T, U>;
53
- <T>(object: T | null | undefined, ...props: Array<import("lodash").Many<import("lodash").PropertyPath>>): import("lodash").PartialObject<T>;
54
- };
55
- find: {
56
- <T, S extends T>(collection: import("lodash").List<T> | null | undefined, predicate: import("lodash").ListIteratorTypeGuard<T, S>, fromIndex?: number): S | undefined;
57
- <T>(collection: import("lodash").List<T> | null | undefined, predicate?: import("lodash").ListIterateeCustom<T, boolean>, fromIndex?: number): T | undefined;
58
- <T extends object, S extends T[keyof T]>(collection: T | null | undefined, predicate: import("lodash").ObjectIteratorTypeGuard<T, S>, fromIndex?: number): S | undefined;
59
- <T extends object>(collection: T | null | undefined, predicate?: import("lodash").ObjectIterateeCustom<T, boolean>, fromIndex?: number): T[keyof T] | undefined;
60
- };
61
- isEmpty: (value: any) => value is null;
62
- merge: {
63
- <TObject, TSource>(object: TObject, source: TSource): TObject & TSource;
64
- <TObject, TSource1, TSource2>(object: TObject, source1: TSource1, source2: TSource2): TObject & TSource1 & TSource2;
65
- <TObject, TSource1, TSource2, TSource3>(object: TObject, source1: TSource1, source2: TSource2, source3: TSource3): TObject & TSource1 & TSource2 & TSource3;
66
- <TObject, TSource1, TSource2, TSource3, TSource4>(object: TObject, source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4): TObject & TSource1 & TSource2 & TSource3 & TSource4;
67
- (object: any, ...otherArgs: any[]): any;
68
- };
69
- convertStringToObject: (inputString: any) => {};
70
- compress(json: {
71
- [key: string]: any;
72
- }, keys: string[]): any[];
73
- decompress(compressedArray: any[], keys: string[]): {
74
- [key: string]: any;
75
- };
76
- };
77
- date: {
78
- differenceInDays: (a: Date, b: Date) => number;
79
- differenceInMinutes: (a: Date, b: Date) => number;
80
- differenceInSeconds: (a: Date, b: Date) => number;
81
- addMonths: (a: Date, months: number) => Date;
82
- subtractMonths: (a: Date, months: number) => Date;
83
- addYears: (a: Date, years: number) => Date;
84
- subtractYears: (a: Date, years: number) => Date;
85
- addDays: (a: Date, days: number) => Date;
86
- addMinutes: (a: Date, minutes: number) => Date;
87
- addHours: (a: Date, hours: number) => Date;
88
- ago(date: Date): string;
89
- subtractDays: (a: Date, days: number) => Date;
90
- subtractMinutes: (a: Date, minutes: number) => Date;
91
- subtractWeeks: (a: Date, weeks: number) => Date;
92
- utc(a: Date): Date;
93
- utcOffset(timezone?: string): number;
94
- toTimezone(date: Date, timezone: string): Date;
95
- hoursOffSet(timezone: string): number;
96
- guessTimezone(): string;
97
- format: (date: Date, format: string, utc?: boolean) => string;
98
- isPast: (date: Date) => boolean;
99
- age: (date: Date) => number;
100
- fromTime(time: string, format?: string | undefined): Date;
101
- fromString(date: string, format?: string | undefined, utc?: boolean): Date;
102
- isAfter(a: Date, b: Date): boolean;
103
- getDateOnly(a: Date): Date;
104
- timezoneList(): string[];
105
- startOfMonth: (date: Date) => Date;
106
- endOfMonth: (date: Date) => Date;
107
- startOfDay: (date: Date) => Date;
108
- endOfDay: (date: Date) => Date;
109
- startOfWeek: (date: Date) => Date;
110
- endOfWeek: (date: Date) => Date;
111
- timezones(): string[];
112
- daysRange(count: number, interval?: number): Date[];
113
- isDate(value: any): value is Date;
114
- isEqual(date1: Date, date2: Date): boolean;
115
- };
116
- array: {
117
- groupBy: {
118
- <T>(collection: import("lodash").List<T> | null | undefined, iteratee?: import("lodash").ValueIteratee<T>): import("lodash").Dictionary<T[]>;
119
- <T extends object>(collection: T | null | undefined, iteratee?: import("lodash").ValueIteratee<T[keyof T]>): import("lodash").Dictionary<Array<T[keyof T]>>;
120
- };
121
- orderBy: {
122
- <T>(collection: import("lodash").List<T> | null | undefined, iteratees?: import("lodash").Many<import("lodash").ListIterator<T, import("lodash").NotVoid>>, orders?: import("lodash").Many<boolean | "asc" | "desc">): T[];
123
- <T>(collection: import("lodash").List<T> | null | undefined, iteratees?: import("lodash").Many<import("lodash").ListIteratee<T>>, orders?: import("lodash").Many<boolean | "asc" | "desc">): T[];
124
- <T extends object>(collection: T | null | undefined, iteratees?: import("lodash").Many<import("lodash").ObjectIterator<T, import("lodash").NotVoid>>, orders?: import("lodash").Many<boolean | "asc" | "desc">): Array<T[keyof T]>;
125
- <T extends object>(collection: T | null | undefined, iteratees?: import("lodash").Many<import("lodash").ObjectIteratee<T>>, orders?: import("lodash").Many<boolean | "asc" | "desc">): Array<T[keyof T]>;
126
- };
127
- isArray: {
128
- (value?: any): value is any[];
129
- <T>(value?: any): value is any[];
130
- };
131
- isEqual: (value: any, other: any) => boolean;
132
- filter: {
133
- (collection: string | null | undefined, predicate?: import("lodash").StringIterator<boolean>): string[];
134
- <T, S extends T>(collection: import("lodash").List<T> | null | undefined, predicate: import("lodash").ListIteratorTypeGuard<T, S>): S[];
135
- <T>(collection: import("lodash").List<T> | null | undefined, predicate?: import("lodash").ListIterateeCustom<T, boolean>): T[];
136
- <T extends object, S extends T[keyof T]>(collection: T | null | undefined, predicate: import("lodash").ObjectIteratorTypeGuard<T, S>): S[];
137
- <T extends object>(collection: T | null | undefined, predicate?: import("lodash").ObjectIterateeCustom<T, boolean>): Array<T[keyof T]>;
138
- };
139
- find: {
140
- <T, S extends T>(collection: import("lodash").List<T> | null | undefined, predicate: import("lodash").ListIteratorTypeGuard<T, S>, fromIndex?: number): S | undefined;
141
- <T>(collection: import("lodash").List<T> | null | undefined, predicate?: import("lodash").ListIterateeCustom<T, boolean>, fromIndex?: number): T | undefined;
142
- <T extends object, S extends T[keyof T]>(collection: T | null | undefined, predicate: import("lodash").ObjectIteratorTypeGuard<T, S>, fromIndex?: number): S | undefined;
143
- <T extends object>(collection: T | null | undefined, predicate?: import("lodash").ObjectIterateeCustom<T, boolean>, fromIndex?: number): T[keyof T] | undefined;
144
- };
145
- differenceWith: {
146
- <T1, T2>(array: import("lodash").List<T1> | null | undefined, values: import("lodash").List<T2>, comparator: import("lodash").Comparator2<T1, T2>): T1[];
147
- <T1, T2, T3>(array: import("lodash").List<T1> | null | undefined, values1: import("lodash").List<T2>, values2: import("lodash").List<T3>, comparator: import("lodash").Comparator2<T1, T2 | T3>): T1[];
148
- <T1, T2, T3, T4>(array: import("lodash").List<T1> | null | undefined, values1: import("lodash").List<T2>, values2: import("lodash").List<T3>, ...values: Array<import("lodash").List<T4> | import("lodash").Comparator2<T1, T2 | T3 | T4>>): T1[];
149
- <T>(array: import("lodash").List<T> | null | undefined, ...values: Array<import("lodash").List<T>>): T[];
150
- };
151
- combine(arr1: any[], arr2: any[]): any[];
152
- xor: <T>(...arrays: Array<import("lodash").List<T> | null | undefined>) => T[];
153
- replaceByKey: (arr: any[], newValue: any, keyName: string) => any[];
154
- replaceWhere<T = any>(arr: T[], condition: (params: T) => boolean, newValue: any): T[];
155
- toggleAdd<T = any>(array: T[], element: T, predicate: any): T[];
156
- keyBy<T = any>(array: T[], predicate: any): import("lodash").Dictionary<T>;
157
- uniq<T = any>(array: T[]): T[];
158
- uniqBy<T = any>(array: T[], criteria: any): T[];
159
- findIndex<T = any>(array: T[], predicate: any): number;
160
- concat<T = any>(array: T[], ...rest: T[]): T[];
161
- filterLike(arr1: any[], fieldName: string, like: string): any[];
162
- };
163
- text: {
164
- truncate(text: string, max: number): string;
165
- insertAt(str: string | undefined, sub: any, pos: any): string;
166
- capitalize(str: string): string;
167
- generateFakeBlockchainAddress(): string;
168
- };
169
- uuid: {
170
- generate(): string;
171
- code(length?: number, includeLetters?: boolean): string;
172
- validate(id: string): boolean;
173
- };
174
- };
175
- export default AppUtilsProvider;
@@ -1,8 +0,0 @@
1
- export default class AppSecureStorage {
2
- private readonly storage;
3
- private readonly secretKey;
4
- constructor({ storage, secretKey }: {
5
- secretKey: string;
6
- storage: any;
7
- });
8
- }
@@ -1,4 +0,0 @@
1
- export namespace HexEncoder {
2
- function str2hex(str: any, bytesPerChar: any): string;
3
- function hex2str(str: any, bytesPerChar: any): string;
4
- }
@@ -1,7 +0,0 @@
1
- import Query from '../../domain/models/query';
2
- import QueryOptions from '../../domain/models/query-options';
3
- import UseQueryValue from '../../domain/models/use-query-value';
4
- import QueryCreator from '../../domain/services/query-creator';
5
- export default class ReactQQueryCreator implements QueryCreator {
6
- execute(query: Query, queryFn: any, options?: QueryOptions): UseQueryValue;
7
- }
@@ -1,7 +0,0 @@
1
- import Mutation from '../../../_shared/domain/models/mutation';
2
- import MutationOptions from '../../../_shared/domain/models/mutation-options';
3
- import { UseMutationValue } from '../../../_shared/domain/models/use-mutation-value';
4
- import MutationCreator from '../../../_shared/domain/services/mutation-creator';
5
- export default class ReactQueryMutationCreator implements MutationCreator {
6
- execute(query: Mutation, queryFn: any, options?: MutationOptions): UseMutationValue;
7
- }
@@ -1,29 +0,0 @@
1
- export declare function SafeshareLegacy(): {
2
- init: (bits: any, rngType: any) => void;
3
- seedRNG: (data: any, estimatedEntropy: any, source: any) => void;
4
- combine: (shares: any, at: any) => string;
5
- getConfig: () => {};
6
- extractShareComponents: (share: any) => {};
7
- setRNG: (rng: any) => boolean;
8
- str2hex: (str: any, bytesPerChar: any) => string;
9
- hex2str: (str: any, bytesPerChar: any) => string;
10
- random: (bits: any) => string;
11
- share: (secret: any, numShares: any, threshold: any, padLength: any) => any[];
12
- newShare: (id: any, shares: any) => any;
13
- _reset: () => void;
14
- _padLeft: (str: any, multipleOfBits: any) => any;
15
- _hex2bin: (str: any) => string;
16
- _bin2hex: (str: any) => string;
17
- _hasCryptoGetRandomValues: () => boolean;
18
- _hasCryptoRandomBytes: () => boolean;
19
- _hasSJCL: () => boolean;
20
- _getRNG: (type: any) => ((bits: any) => null) | undefined;
21
- _isSetRNG: () => boolean;
22
- _splitNumStringToIntArray: (str: any, padLength: any) => never[];
23
- _horner: (x: any, coeffs: any) => number;
24
- _lagrange: (at: any, x: any, y: any) => number;
25
- _getShares: (secret: any, numShares: any, threshold: any) => never[];
26
- _constructPublicShareString: (bits: any, id: any, data: any) => any;
27
- };
28
- export declare function splitSecret(secret: any, numShares: any, threshold: any): any[];
29
- export declare function combineShares(shares: any): string;
@@ -1,12 +0,0 @@
1
- export default class BrowserSessionStorage {
2
- private storage;
3
- constructor(options?: {
4
- secure?: boolean;
5
- secretKey?: string;
6
- });
7
- removeItem(path: string): Promise<void>;
8
- getItem(path: string): Promise<any>;
9
- setItem(path: string, data: any): Promise<void>;
10
- clean(root?: string): Promise<void>;
11
- searchItem<T = any>(root: string, callback: (item: T) => boolean): Promise<T | undefined>;
12
- }
@@ -1,2 +0,0 @@
1
- export default function createContext<T = any>(initialData: any): import("use-context-selector").Context<T>;
2
- export declare function useContextSelector<T = any, K = any>(context: any, selector: (s: T) => K): K;
@@ -1,5 +0,0 @@
1
- import PaginationOptions from '../../../_shared/domain/models/pagination-options';
2
- import SortOptions from '../../../_shared/domain/models/sort-options';
3
- export declare function setWhere(url: URL, filter: any, initKey?: string): void;
4
- export declare function setLimitAndOffset(url: URL, pagination?: PaginationOptions): void;
5
- export declare function setOrder(url: URL, ordering?: SortOptions): void;
@@ -1 +0,0 @@
1
- export default function useAuthDispatch(): any;