@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
package/dist/test.d.ts ADDED
@@ -0,0 +1,184 @@
1
+ export declare const TestUtils: {
2
+ ProtectionPlan: {
3
+ PlanDataAssetInputGenerator: {
4
+ plainText: (props?: {
5
+ id?: string;
6
+ name?: string;
7
+ secret?: {
8
+ text: string;
9
+ };
10
+ }) => import("@safetech/inheriti-core-sdk").DataAsset;
11
+ onlineAccount: (props?: any) => import("@safetech/inheriti-core-sdk").DataAsset;
12
+ recoveryCode: (props?: any) => import("@safetech/inheriti-core-sdk").DataAsset;
13
+ pinCode: (props?: any) => import("@safetech/inheriti-core-sdk").DataAsset;
14
+ apiKey: (props?: any) => import("@safetech/inheriti-core-sdk").DataAsset;
15
+ privateKey: (props?: any) => import("@safetech/inheriti-core-sdk").DataAsset;
16
+ seedPhrase: (props?: {
17
+ id?: string;
18
+ name?: string;
19
+ typeLength?: number;
20
+ secret?: {
21
+ words: string[];
22
+ };
23
+ }) => import("@safetech/inheriti-core-sdk").DataAsset;
24
+ paymentDebitCard: (props?: any) => import("@safetech/inheriti-core-sdk").DataAsset;
25
+ paymentCreditCard: (props?: any) => import("@safetech/inheriti-core-sdk").DataAsset;
26
+ };
27
+ };
28
+ RandomElementPickerMother: {
29
+ new (): {};
30
+ from(a: any): any;
31
+ };
32
+ SharedProtectionPlan: {};
33
+ DataAssetInputGenerator: {
34
+ new (): {};
35
+ plainText({ id: a, name: e, secret: i }?: {
36
+ id?: any;
37
+ name?: any;
38
+ }): {
39
+ id: any;
40
+ type: string;
41
+ meta: {
42
+ name: any;
43
+ };
44
+ secret: any;
45
+ };
46
+ userAndPassword({ id: a, name: e, notes: i, secret: n }?: {
47
+ id?: any;
48
+ name?: any;
49
+ notes?: any;
50
+ }): {
51
+ id: any;
52
+ type: string;
53
+ meta: {
54
+ name: any;
55
+ notes: any;
56
+ };
57
+ secret: any;
58
+ };
59
+ recoveryCode({ id: a, name: e, notes: i, secret: n }?: {
60
+ id?: any;
61
+ name?: any;
62
+ notes?: any;
63
+ }): {
64
+ id: any;
65
+ type: string;
66
+ meta: {
67
+ name: any;
68
+ notes: any;
69
+ };
70
+ secret: any;
71
+ };
72
+ pinCode({ id: a, name: e, notes: i, secret: n }?: {
73
+ id?: any;
74
+ name?: any;
75
+ notes?: any;
76
+ }): {
77
+ id: any;
78
+ type: string;
79
+ meta: {
80
+ name: any;
81
+ notes: any;
82
+ };
83
+ secret: any;
84
+ };
85
+ apiKey({ id: a, name: e, notes: i, secret: n }?: {
86
+ id?: any;
87
+ name?: any;
88
+ notes?: any;
89
+ }): {
90
+ id: any;
91
+ type: string;
92
+ meta: {
93
+ name: any;
94
+ notes: any;
95
+ };
96
+ secret: any;
97
+ };
98
+ privateKey({ id: a, name: e, notes: i, secret: n }?: {
99
+ id?: any;
100
+ name?: any;
101
+ notes?: any;
102
+ }): {
103
+ id: any;
104
+ type: string;
105
+ meta: {
106
+ name: any;
107
+ notes: any;
108
+ };
109
+ secret: any;
110
+ };
111
+ seedPhrase({ id: a, name: e, notes: i, typeLength: n, secret: r }?: {
112
+ id?: any;
113
+ name?: any;
114
+ notes?: any;
115
+ typeLength?: any;
116
+ }): {
117
+ id: any;
118
+ type: string;
119
+ meta: {
120
+ name: any;
121
+ notes: any;
122
+ };
123
+ secret: any;
124
+ };
125
+ paymentDebitCard({ id: a, name: e, notes: i, secret: n }?: {
126
+ id?: any;
127
+ name?: any;
128
+ notes?: any;
129
+ }): {
130
+ id: any;
131
+ type: string;
132
+ meta: {
133
+ name: any;
134
+ notes: any;
135
+ };
136
+ secret: any;
137
+ };
138
+ pdf({ id: a, name: e }?: {
139
+ id?: any;
140
+ name?: any;
141
+ }): {
142
+ id: any;
143
+ type: string;
144
+ meta: {
145
+ name: any;
146
+ mimeType: string;
147
+ isMedia: boolean;
148
+ };
149
+ secret: {
150
+ data: string;
151
+ mimeType: string;
152
+ };
153
+ };
154
+ video({ id: a, name: e }?: {
155
+ id?: any;
156
+ name?: any;
157
+ }): {
158
+ id: any;
159
+ type: string;
160
+ meta: {
161
+ name: any;
162
+ mimeType: string;
163
+ isMedia: boolean;
164
+ };
165
+ secret: {
166
+ data: string;
167
+ mimeType: string;
168
+ };
169
+ };
170
+ paymentCreditCard({ id: a, name: e, notes: i, secret: n }?: {
171
+ id?: any;
172
+ name?: any;
173
+ notes?: any;
174
+ }): {
175
+ id: any;
176
+ type: string;
177
+ meta: {
178
+ name: any;
179
+ notes: any;
180
+ };
181
+ secret: any;
182
+ };
183
+ };
184
+ };
package/index.ts CHANGED
@@ -1,6 +1,8 @@
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
-
1
+ import {SDKContainer} from "@safetech/inheriti-core-sdk/vanilla";
6
2
 
3
+ export * from "@safetech/inheriti-core-sdk"
4
+ export { default as InheritiClientProvider } from "./src/auth/inheriti-client-provider"
5
+ export type { InheritiClientProviderProps } from "./src/auth/inheriti-client-provider"
6
+ export { default as useClient } from "./src/auth/use-client"
7
+ export { getAvailableEnvs } from "./src/auth/get-available-envs"
8
+ export {SDKContainer}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@safetech/inheriti-client-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.16.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -25,48 +25,47 @@
25
25
  "private": false,
26
26
  "license": "MIT",
27
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"
28
+ "@safetech/safekey-sdk": "^1.0.0",
29
+ "@safetech/inheriti-core-sdk": "*"
47
30
  },
48
31
  "devDependencies": {
32
+ "@rollup/plugin-alias": "^5.1.1",
33
+ "@testing-library/dom": "^10.4.0",
34
+ "@testing-library/jest-dom": "^6.6.3",
35
+ "@testing-library/react": "^16.3.0",
49
36
  "@types/lodash": "^4.17.16",
50
37
  "@types/node": "^22.14.0",
51
38
  "@types/react": "~18.3.12",
39
+ "@vitest/ui": "^3.2.4",
52
40
  "esbuild": "^0.25.2",
53
41
  "esbuild-plugin-alias": "^0.2.1",
42
+ "esbuild-plugin-d.ts": "^1.3.1",
43
+ "jsdom": "^26.1.0",
54
44
  "npm-dts": "^1.3.13",
45
+ "rollup": "^4.42.0",
46
+ "rollup-plugin-dts": "^6.2.1",
55
47
  "ts-node": "^10.9.2",
56
48
  "tsc-alias": "^1.8.16",
57
49
  "tsconfig-paths": "^4.2.0",
58
50
  "ttypescript": "^1.5.15",
59
51
  "typedoc": "^0.28.3",
60
- "typescript": "^5.8.3"
52
+ "typescript": "^5.8.3",
53
+ "vitest": "^3.2.4",
54
+ "vite": "^5.2.8"
55
+ },
56
+ "peerDependencies": {
57
+ "react": "^19.0.0",
58
+ "react-dom": "^19.1.0"
61
59
  },
62
60
  "optionalDependencies": {
63
61
  "@faker-js/faker": "^9.7.0"
64
62
  },
65
63
  "scripts": {
66
64
  "build": "node esbuild.config.js",
65
+ "prepublishOnly": "node esbuild.config.js",
67
66
  "publish-version": "node scripts/publish-sdk-version.js",
68
67
  "add-patch": "node scripts/bump-version.js patch",
69
- "generate-docs": "npx typedoc",
68
+ "generate-docs": "npx typedoc --json docs/docs.json",
70
69
  "publish-npm": "node scripts/publish-npm.js"
71
70
  },
72
71
  "files": [
@@ -1,2 +0,0 @@
1
- declare const DataProviderContext: import("use-context-selector").Context<any>;
2
- export default DataProviderContext;
@@ -1,2 +0,0 @@
1
- declare const ServiceProviderContext: import("use-context-selector").Context<any>;
2
- export default ServiceProviderContext;
@@ -1,5 +0,0 @@
1
- import { AppUtils } from '../models/app-utils';
2
- declare const UtilsProviderContext: import("use-context-selector").Context<{
3
- utils: AppUtils;
4
- }>;
5
- export default UtilsProviderContext;
@@ -1 +0,0 @@
1
- export default function getErrorMessage(error: any): string | undefined;
@@ -1,18 +0,0 @@
1
- import { QueryClient } from 'react-query';
2
- export default function useCreate<Repository, NewInstanceData extends object | undefined, T = any>(props: {
3
- resource: string;
4
- repository: string;
5
- fn: (repo: Repository, newItem: NewInstanceData) => Promise<any>;
6
- onSuccess?: (response: any, queryClient: QueryClient, params: any) => void;
7
- onFailure?: (error: any) => void;
8
- options?: {
9
- invalidateList?: boolean;
10
- };
11
- }): {
12
- save: (newInstanceData?: NewInstanceData) => Promise<T>;
13
- reset: () => any;
14
- loading: boolean;
15
- loaded: boolean;
16
- data: any;
17
- error: any;
18
- };
@@ -1,19 +0,0 @@
1
- import { QueryClient } from 'react-query';
2
- export default function useDelete<Model, Repository>(props: {
3
- resource: string;
4
- repository: string;
5
- fn: (repo: Repository, id: string) => Promise<void>;
6
- onSuccess?: (response: any, queryClient: QueryClient, params: any) => void;
7
- onFailure?: (error: any) => void;
8
- options?: {
9
- invalidateList?: boolean;
10
- invalidateGet?: boolean;
11
- };
12
- }): {
13
- delete: (id: string, additionalParams?: any) => Promise<void>;
14
- reset: () => any;
15
- loading: boolean;
16
- loaded: boolean;
17
- data: null;
18
- error: any;
19
- };
@@ -1,25 +0,0 @@
1
- import PaginationOptions from '../../models/pagination-options';
2
- import QueryOptions from '../../models/query-options';
3
- import { ResourceCount } from '../../models/resource-count';
4
- import SortOptions from '../../models/sort-options';
5
- import UseQueryValue from '../../models/use-query-value';
6
- type ResponseQueryValue<Model> = Omit<UseQueryValue, 'data' | 'isIdle'> & {
7
- data?: {
8
- [id: string]: Model;
9
- };
10
- isIdle?: boolean;
11
- ids?: string[];
12
- };
13
- export interface UseGetListValue<T> extends ResponseQueryValue<T> {
14
- }
15
- export default function useGetList<Model, Repository>(props: {
16
- resource: string;
17
- repository: string;
18
- filters?: any;
19
- pagination?: PaginationOptions;
20
- sort?: SortOptions;
21
- fn: (repo: Repository, filters?: any, pagination?: PaginationOptions, sort?: SortOptions) => Promise<Model[]>;
22
- countFn?: (repo: Repository, filters?: any) => Promise<ResourceCount>;
23
- options?: QueryOptions;
24
- }): UseGetListValue<Model>;
25
- export {};
@@ -1,17 +0,0 @@
1
- import QueryOptions from '../../models/query-options';
2
- export default function useGetOne<Model, Repository>(props: {
3
- resource: string;
4
- repository: string;
5
- id: string;
6
- fn: (repo: Repository, id: string) => Promise<Model | undefined>;
7
- options?: QueryOptions;
8
- }): {
9
- error?: any;
10
- isIdle: boolean;
11
- loading: boolean;
12
- loaded: boolean;
13
- refetch: any;
14
- isFetching: boolean;
15
- isRefetching: boolean;
16
- data?: Model | undefined;
17
- };
@@ -1,2 +0,0 @@
1
- declare const useDataProvider: (selector?: (v: any) => any) => any;
2
- export default useDataProvider;
@@ -1 +0,0 @@
1
- export default function useRepository<T>(repoName: string): T;
@@ -1,2 +0,0 @@
1
- declare const useServiceProvider: (selector?: (v: any) => any) => any;
2
- export default useServiceProvider;
@@ -1 +0,0 @@
1
- export default function useService<T>(serviceName: string): T;
@@ -1,4 +0,0 @@
1
- export declare function useSafeSetState<T>(initialState?: T): [T, React.Dispatch<React.SetStateAction<T>>];
2
- export declare function usePrevious(value: any): undefined;
3
- export declare function useDeepCompareEffect(callback: any, inputs: any): void;
4
- export declare function useTimeout(ms?: number): boolean;
@@ -1,10 +0,0 @@
1
- import DateTimeUtils from '../../../_shared/domain/utils/misc/datetime-utils';
2
- import ObjectUtils from '../../../_shared/domain/utils/misc/object-utils';
3
- import UuidUtils from '../utils/misc/uuid-utils';
4
- import TextUtils from '../utils/misc/text-utils';
5
- export interface AppUtils {
6
- uuid: typeof UuidUtils;
7
- object: typeof ObjectUtils;
8
- date: typeof DateTimeUtils;
9
- text: typeof TextUtils;
10
- }
@@ -1,39 +0,0 @@
1
- import Currency, { CurrencyPrimitiveProps } from './currency';
2
- interface CurrencyPriceProps {
3
- value: number;
4
- formattedValue?: string;
5
- currency: Currency;
6
- }
7
- export interface CurrencyPricePrimitiveProps {
8
- value: number;
9
- formattedValue?: string;
10
- currency: CurrencyPrimitiveProps;
11
- }
12
- export interface CurrencyPriceSimplifiedPrimitiveProps {
13
- value: number;
14
- currency: string;
15
- }
16
- export default class CurrencyPrice {
17
- private props;
18
- constructor(props: CurrencyPriceProps);
19
- get value(): number;
20
- get formattedValue(): string;
21
- get isCrypto(): boolean;
22
- get currency(): Currency;
23
- get isZero(): boolean;
24
- static sum(priceA: CurrencyPrice, priceB: CurrencyPrice): CurrencyPrice;
25
- static subtract(priceA: CurrencyPrice, priceB: CurrencyPrice): CurrencyPrice;
26
- static times(currencyPrice: CurrencyPrice, times: number, totalCurrency?: Currency): CurrencyPrice;
27
- static div(currencyPrice: CurrencyPrice, times: number, totalCurrency?: Currency): CurrencyPrice;
28
- static getAcc(prices: CurrencyPrice[]): CurrencyPrice;
29
- static fromPrimitives(props: CurrencyPricePrimitiveProps): CurrencyPrice;
30
- static fromSimplifiedPrimitives(props: CurrencyPriceSimplifiedPrimitiveProps): CurrencyPrice;
31
- static isEqual(priceA: CurrencyPrice, priceB: CurrencyPrice): boolean;
32
- static equalPrices(pricesA: CurrencyPrice[], pricesB: CurrencyPrice[]): boolean;
33
- static fromZero(currency: Currency): CurrencyPrice;
34
- static percentage(price: CurrencyPrice, percentage: number): CurrencyPrice;
35
- static fromPrimitiveArray(items: CurrencyPricePrimitiveProps[]): CurrencyPrice[];
36
- getFormattedValue(format?: string): string;
37
- toPrimitives(): CurrencyPricePrimitiveProps;
38
- }
39
- export {};
@@ -1,24 +0,0 @@
1
- export declare const euroAbbr = "eur";
2
- export declare const euroFormat: (value: number, pattern?: string) => string;
3
- interface CurrencyProps {
4
- name: string;
5
- abbr: string;
6
- format?: (value: number) => string;
7
- }
8
- export interface CurrencyPrimitiveProps {
9
- name: string;
10
- abbr: string;
11
- format?: (value: number, pattern?: string) => string;
12
- }
13
- export default class Currency {
14
- private props;
15
- constructor(props: CurrencyProps);
16
- get name(): string;
17
- get abbr(): string;
18
- static fromPrimitives(props: CurrencyPrimitiveProps): Currency;
19
- static fromAbbr(abbr: string): any;
20
- isEqual(otherCurrency: Currency): boolean;
21
- format(value: number, format?: string): string;
22
- toPrimitives(): CurrencyPrimitiveProps;
23
- }
24
- export {};
@@ -1,3 +0,0 @@
1
- import Currency from './currency';
2
- declare const EuroCurrency: Currency;
3
- export default EuroCurrency;
@@ -1,8 +0,0 @@
1
- import { QueryClient } from "react-query";
2
- export default interface MutationOptions {
3
- action?: string;
4
- undoable?: boolean;
5
- onSuccess?: (response: any, queryClient: QueryClient, params: any) => any | Object;
6
- onFailure?: (error?: any) => any | Object;
7
- withDeclarativeSideEffectsSupport?: boolean;
8
- }
@@ -1,5 +0,0 @@
1
- export default interface Mutation {
2
- id: string;
3
- type: string;
4
- payload: object;
5
- }
@@ -1,4 +0,0 @@
1
- export default interface PaginationOptions {
2
- page?: number;
3
- perPage?: number;
4
- }
@@ -1,6 +0,0 @@
1
- export default interface QueryOptions {
2
- keepPreviousData?: boolean;
3
- enabled?: boolean;
4
- cacheTime?: number;
5
- staleTime?: number;
6
- }
@@ -1,5 +0,0 @@
1
- export default interface Query {
2
- id: string;
3
- type: string;
4
- payload: object;
5
- }
@@ -1,3 +0,0 @@
1
- export type ResourceCount = {
2
- count: number;
3
- };
@@ -1,4 +0,0 @@
1
- export default interface SortOptions {
2
- field?: string;
3
- order?: string;
4
- }
@@ -1,13 +0,0 @@
1
- import Mutation from './mutation';
2
- import MutationOptions from './mutation-options';
3
- export type UseMutationValue<T = any> = [
4
- (query?: Partial<Mutation>, options?: Partial<MutationOptions>) => any,
5
- {
6
- data?: T;
7
- total?: number;
8
- error?: any;
9
- loading: boolean;
10
- loaded: boolean;
11
- reset: () => any;
12
- }
13
- ];
@@ -1,11 +0,0 @@
1
- export default interface UseQueryValue<T = any> {
2
- data?: T;
3
- total?: number;
4
- error?: any;
5
- isIdle: boolean;
6
- loading: boolean;
7
- loaded: boolean;
8
- refetch: any;
9
- isFetching: boolean;
10
- isRefetching: boolean;
11
- }
@@ -1,6 +0,0 @@
1
- import Mutation from "../models/mutation";
2
- import MutationOptions from "../models/mutation-options";
3
- import { UseMutationValue } from "../models/use-mutation-value";
4
- export default interface MutationCreator {
5
- execute(query: Mutation, queryFn: any, options?: MutationOptions): UseMutationValue;
6
- }
@@ -1,6 +0,0 @@
1
- import Query from "../models/query";
2
- import QueryOptions from "../models/query-options";
3
- import UseQueryValue from "../models/use-query-value";
4
- export default interface QueryCreator {
5
- execute(query: Query, queryFn: any, options: QueryOptions): UseQueryValue;
6
- }
@@ -1,48 +0,0 @@
1
- declare const ArrayUtils: {
2
- groupBy: {
3
- <T>(collection: import("lodash").List<T> | null | undefined, iteratee?: import("lodash").ValueIteratee<T>): import("lodash").Dictionary<T[]>;
4
- <T extends object>(collection: T | null | undefined, iteratee?: import("lodash").ValueIteratee<T[keyof T]>): import("lodash").Dictionary<Array<T[keyof T]>>;
5
- };
6
- orderBy: {
7
- <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[];
8
- <T>(collection: import("lodash").List<T> | null | undefined, iteratees?: import("lodash").Many<import("lodash").ListIteratee<T>>, orders?: import("lodash").Many<boolean | "asc" | "desc">): T[];
9
- <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]>;
10
- <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]>;
11
- };
12
- isArray: {
13
- (value?: any): value is any[];
14
- <T>(value?: any): value is any[];
15
- };
16
- isEqual: (value: any, other: any) => boolean;
17
- filter: {
18
- (collection: string | null | undefined, predicate?: import("lodash").StringIterator<boolean>): string[];
19
- <T, S extends T>(collection: import("lodash").List<T> | null | undefined, predicate: import("lodash").ListIteratorTypeGuard<T, S>): S[];
20
- <T>(collection: import("lodash").List<T> | null | undefined, predicate?: import("lodash").ListIterateeCustom<T, boolean>): T[];
21
- <T extends object, S extends T[keyof T]>(collection: T | null | undefined, predicate: import("lodash").ObjectIteratorTypeGuard<T, S>): S[];
22
- <T extends object>(collection: T | null | undefined, predicate?: import("lodash").ObjectIterateeCustom<T, boolean>): Array<T[keyof T]>;
23
- };
24
- find: {
25
- <T, S extends T>(collection: import("lodash").List<T> | null | undefined, predicate: import("lodash").ListIteratorTypeGuard<T, S>, fromIndex?: number): S | undefined;
26
- <T>(collection: import("lodash").List<T> | null | undefined, predicate?: import("lodash").ListIterateeCustom<T, boolean>, fromIndex?: number): T | undefined;
27
- <T extends object, S extends T[keyof T]>(collection: T | null | undefined, predicate: import("lodash").ObjectIteratorTypeGuard<T, S>, fromIndex?: number): S | undefined;
28
- <T extends object>(collection: T | null | undefined, predicate?: import("lodash").ObjectIterateeCustom<T, boolean>, fromIndex?: number): T[keyof T] | undefined;
29
- };
30
- differenceWith: {
31
- <T1, T2>(array: import("lodash").List<T1> | null | undefined, values: import("lodash").List<T2>, comparator: import("lodash").Comparator2<T1, T2>): T1[];
32
- <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[];
33
- <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[];
34
- <T>(array: import("lodash").List<T> | null | undefined, ...values: Array<import("lodash").List<T>>): T[];
35
- };
36
- combine(arr1: any[], arr2: any[]): any[];
37
- xor: <T>(...arrays: Array<import("lodash").List<T> | null | undefined>) => T[];
38
- replaceByKey: (arr: any[], newValue: any, keyName: string) => any[];
39
- replaceWhere<T = any>(arr: T[], condition: (params: T) => boolean, newValue: any): T[];
40
- toggleAdd<T = any>(array: T[], element: T, predicate: any): T[];
41
- keyBy<T = any>(array: T[], predicate: any): import("lodash").Dictionary<T>;
42
- uniq<T = any>(array: T[]): T[];
43
- uniqBy<T = any>(array: T[], criteria: any): T[];
44
- findIndex<T = any>(array: T[], predicate: any): number;
45
- concat<T = any>(array: T[], ...rest: T[]): T[];
46
- filterLike(arr1: any[], fieldName: string, like: string): any[];
47
- };
48
- export default ArrayUtils;