@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.
- package/dist/index.d.ts +7 -4
- package/dist/index.js +36 -2
- package/dist/inheriti-client-sdk.umd.js +156 -0
- package/dist/sdk-types.d.ts +59 -0
- package/dist/src/auth/error-handling-strategy.d.ts +2 -0
- package/dist/src/auth/get-available-envs.d.ts +7 -0
- package/dist/src/{modules/_shared/infrastructure/providers → auth}/inheriti-client-provider.d.ts +5 -17
- package/dist/src/auth/use-client.d.ts +12 -0
- package/dist/test/index.js +1 -14
- package/dist/test.d.ts +184 -0
- package/index.ts +7 -5
- package/package.json +21 -22
- package/dist/src/modules/_shared/domain/contexts/data-provider-context.d.ts +0 -2
- package/dist/src/modules/_shared/domain/contexts/service-provider-context.d.ts +0 -2
- package/dist/src/modules/_shared/domain/contexts/utils-provider-context.d.ts +0 -5
- package/dist/src/modules/_shared/domain/errors/getErrorMessage.d.ts +0 -1
- package/dist/src/modules/_shared/domain/hooks/resources/use-create.d.ts +0 -18
- package/dist/src/modules/_shared/domain/hooks/resources/use-delete.d.ts +0 -19
- package/dist/src/modules/_shared/domain/hooks/resources/use-get-list.d.ts +0 -25
- package/dist/src/modules/_shared/domain/hooks/resources/use-get-one.d.ts +0 -17
- package/dist/src/modules/_shared/domain/hooks/use-data-provider.d.ts +0 -2
- package/dist/src/modules/_shared/domain/hooks/use-repository.d.ts +0 -1
- package/dist/src/modules/_shared/domain/hooks/use-service-provider.d.ts +0 -2
- package/dist/src/modules/_shared/domain/hooks/use-service.d.ts +0 -1
- package/dist/src/modules/_shared/domain/hooks/utils-hooks.d.ts +0 -4
- package/dist/src/modules/_shared/domain/models/app-utils.d.ts +0 -10
- package/dist/src/modules/_shared/domain/models/currency-price.d.ts +0 -39
- package/dist/src/modules/_shared/domain/models/currency.d.ts +0 -24
- package/dist/src/modules/_shared/domain/models/euro-currency.d.ts +0 -3
- package/dist/src/modules/_shared/domain/models/mutation-options.d.ts +0 -8
- package/dist/src/modules/_shared/domain/models/mutation.d.ts +0 -5
- package/dist/src/modules/_shared/domain/models/pagination-options.d.ts +0 -4
- package/dist/src/modules/_shared/domain/models/query-options.d.ts +0 -6
- package/dist/src/modules/_shared/domain/models/query.d.ts +0 -5
- package/dist/src/modules/_shared/domain/models/resource-count.d.ts +0 -3
- package/dist/src/modules/_shared/domain/models/sort-options.d.ts +0 -4
- package/dist/src/modules/_shared/domain/models/use-mutation-value.d.ts +0 -13
- package/dist/src/modules/_shared/domain/models/use-query-value.d.ts +0 -11
- package/dist/src/modules/_shared/domain/services/mutation-creator.d.ts +0 -6
- package/dist/src/modules/_shared/domain/services/query-creator.d.ts +0 -6
- package/dist/src/modules/_shared/domain/utils/misc/array-utils.d.ts +0 -48
- package/dist/src/modules/_shared/domain/utils/misc/datetime-utils.d.ts +0 -40
- package/dist/src/modules/_shared/domain/utils/misc/encrypt-utils.d.ts +0 -17
- package/dist/src/modules/_shared/domain/utils/misc/number-utils.d.ts +0 -4
- package/dist/src/modules/_shared/domain/utils/misc/object-utils.d.ts +0 -76
- package/dist/src/modules/_shared/domain/utils/misc/text-utils.d.ts +0 -7
- package/dist/src/modules/_shared/domain/utils/misc/uuid-utils.d.ts +0 -6
- package/dist/src/modules/_shared/infrastructure/api/api-repository.d.ts +0 -36
- package/dist/src/modules/_shared/infrastructure/api/app-payload-encrypter.d.ts +0 -9
- package/dist/src/modules/_shared/infrastructure/http/HttpError.d.ts +0 -7
- package/dist/src/modules/_shared/infrastructure/http/fetch.d.ts +0 -48
- package/dist/src/modules/_shared/infrastructure/local-storage/browser-local-storage.d.ts +0 -9
- package/dist/src/modules/_shared/infrastructure/providers/app-data-provider.d.ts +0 -20
- package/dist/src/modules/_shared/infrastructure/providers/app-provider.d.ts +0 -15
- package/dist/src/modules/_shared/infrastructure/providers/app-service-provider.d.ts +0 -28
- package/dist/src/modules/_shared/infrastructure/providers/app-utils-provider.d.ts +0 -175
- package/dist/src/modules/_shared/infrastructure/secure-storage/app-secure-storage.d.ts +0 -8
- package/dist/src/modules/_shared/infrastructure/services/hexEncoder.d.ts +0 -4
- package/dist/src/modules/_shared/infrastructure/services/react-q-query-creator.d.ts +0 -7
- package/dist/src/modules/_shared/infrastructure/services/react-query-mutation-creator.d.ts +0 -7
- package/dist/src/modules/_shared/infrastructure/services/safeshareLegacy.d.ts +0 -29
- package/dist/src/modules/_shared/infrastructure/session-storage/browser-session-storage.d.ts +0 -12
- package/dist/src/modules/_shared/infrastructure/utils/context-selector.d.ts +0 -2
- package/dist/src/modules/_shared/infrastructure/utils/set-query-params.d.ts +0 -5
- package/dist/src/modules/auth/application/use-auth-dispatch.d.ts +0 -1
- package/dist/src/modules/auth/application/use-auth-provider.d.ts +0 -4
- package/dist/src/modules/auth/application/use-auth-state.d.ts +0 -1
- package/dist/src/modules/auth/application/use-client.d.ts +0 -27
- package/dist/src/modules/auth/application/use-ensure-connected-client.d.ts +0 -3
- package/dist/src/modules/auth/application/use-get-identity.d.ts +0 -36
- package/dist/src/modules/auth/application/use-is-logged-in.d.ts +0 -8
- package/dist/src/modules/auth/application/use-login-client.d.ts +0 -6
- package/dist/src/modules/auth/application/use-logout-client.d.ts +0 -5
- package/dist/src/modules/auth/domain/contexts/auth-provider-context.d.ts +0 -2
- package/dist/src/modules/auth/domain/models/auth-credentials.d.ts +0 -3
- package/dist/src/modules/auth/domain/models/user-identity.d.ts +0 -28
- package/dist/src/modules/auth/domain/services/auth-provider.d.ts +0 -16
- package/dist/src/modules/auth/index.d.ts +0 -6
- package/dist/src/modules/auth/infrastructure/providers/app-auth-provider.d.ts +0 -30
- package/dist/src/modules/auth/infrastructure/providers/app-identity-service.d.ts +0 -9
- package/dist/src/modules/auth/infrastructure/providers/auth-constants.d.ts +0 -6
- package/dist/src/modules/beneficiary/domain/models/beneficiary-device.d.ts +0 -28
- package/dist/src/modules/beneficiary/domain/models/beneficiary-relation.d.ts +0 -13
- package/dist/src/modules/beneficiary/domain/models/beneficiary-type.d.ts +0 -16
- package/dist/src/modules/beneficiary/domain/models/beneficiary.d.ts +0 -54
- package/dist/src/modules/beneficiary/index.d.ts +0 -1
- package/dist/src/modules/beneficiary/infrastructure/mappers/beneficiary-mapper.d.ts +0 -6
- package/dist/src/modules/protection-plan/application/configuration-process/blockchain/use-create-smart-contract.d.ts +0 -9
- package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/creation/use-create-backup-shares.d.ts +0 -6
- package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/creation/use-create-cold-shares.d.ts +0 -6
- package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/creation/use-create-mobile-shares.d.ts +0 -6
- package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/creation/use-create-validator-shares.d.ts +0 -6
- package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/distribution/use-distribute-backup-shares.d.ts +0 -9
- package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/distribution/use-distribute-cold-share.d.ts +0 -8
- package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/distribution/use-distribute-mobile-shares.d.ts +0 -9
- package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/distribution/use-distribute-validator-shares.d.ts +0 -9
- package/dist/src/modules/protection-plan/application/configuration-process/use-configure-plan.d.ts +0 -12
- package/dist/src/modules/protection-plan/application/configuration-process/use-delete-plan-configuration-process.d.ts +0 -8
- package/dist/src/modules/protection-plan/application/configuration-process/use-get-plan-configuration-process.d.ts +0 -12
- package/dist/src/modules/protection-plan/application/configuration-process/use-save-plan-creation-process.d.ts +0 -9
- package/dist/src/modules/protection-plan/application/creation/use-create-protection-plan.d.ts +0 -24
- package/dist/src/modules/protection-plan/application/creation/use-get-available-plan-triggers.d.ts +0 -3
- package/dist/src/modules/protection-plan/application/creation/use-get-protection-plan-security-level.d.ts +0 -47
- package/dist/src/modules/protection-plan/application/creation/use-persist-protection-plan.d.ts +0 -10
- package/dist/src/modules/protection-plan/application/listing/use-find-protection-plan-summary-by-criteria.d.ts +0 -13
- package/dist/src/modules/protection-plan/application/listing/use-find-protection-plans-by-criteria.d.ts +0 -15
- package/dist/src/modules/protection-plan/application/listing/use-get-protection-plan-summary.d.ts +0 -13
- package/dist/src/modules/protection-plan/application/listing/use-is-merge-authority-mode.d.ts +0 -3
- package/dist/src/modules/protection-plan/application/listing/use-protection-plan-listener.d.ts +0 -25
- package/dist/src/modules/protection-plan/application/merging-process/merge-authority/use-authorize-merge-authority.d.ts +0 -13
- package/dist/src/modules/protection-plan/application/merging-process/merge-authority/use-get-merge-authority-protection-plan.d.ts +0 -12
- package/dist/src/modules/protection-plan/application/merging-process/merge-authority/use-merge-authority-merge-process-events.d.ts +0 -6
- package/dist/src/modules/protection-plan/application/merging-process/merge-triggers/use-retry-active-merge-trigger.d.ts +0 -10
- package/dist/src/modules/protection-plan/application/merging-process/merge-triggers/use-validate-merge-trigger.d.ts +0 -12
- package/dist/src/modules/protection-plan/application/merging-process/plan-shares/collection/use-collect-backup-shares.d.ts +0 -9
- package/dist/src/modules/protection-plan/application/merging-process/plan-shares/collection/use-collect-cold-share.d.ts +0 -8
- package/dist/src/modules/protection-plan/application/merging-process/plan-shares/collection/use-collect-mobile-shares.d.ts +0 -5
- package/dist/src/modules/protection-plan/application/merging-process/plan-shares/collection/use-collect-released-mobile-shares.d.ts +0 -9
- package/dist/src/modules/protection-plan/application/merging-process/plan-shares/collection/use-collect-validator-shares.d.ts +0 -9
- package/dist/src/modules/protection-plan/application/merging-process/plan-shares/use-check-can-collect-shares.d.ts +0 -2
- package/dist/src/modules/protection-plan/application/merging-process/plan-shares/use-save-release-mobile-share-request.d.ts +0 -11
- package/dist/src/modules/protection-plan/application/merging-process/plan-shares/use-send-plan-share-merge-status-event.d.ts +0 -15
- package/dist/src/modules/protection-plan/application/merging-process/plan-shares/use-send-plan-shares-merged.d.ts +0 -10
- package/dist/src/modules/protection-plan/application/merging-process/use-close-protection-plan.d.ts +0 -10
- package/dist/src/modules/protection-plan/application/merging-process/use-create-merging-process.d.ts +0 -9
- package/dist/src/modules/protection-plan/application/merging-process/use-delete-merging-process-by-criteria.d.ts +0 -11
- package/dist/src/modules/protection-plan/application/merging-process/use-delete-merging-process.d.ts +0 -10
- package/dist/src/modules/protection-plan/application/merging-process/use-get-merging-process-by-plan.d.ts +0 -23
- package/dist/src/modules/protection-plan/application/merging-process/use-merge-plan-beneficiary-selection.d.ts +0 -27
- package/dist/src/modules/protection-plan/application/merging-process/use-persist-merge-process.d.ts +0 -12
- package/dist/src/modules/protection-plan/application/merging-process/use-reveal-plan-data.d.ts +0 -13
- package/dist/src/modules/protection-plan/application/merging-process/use-save-merging-process.d.ts +0 -9
- package/dist/src/modules/protection-plan/application/merging-process/use-scan-plans-from-merge-authority-device.d.ts +0 -10
- package/dist/src/modules/protection-plan/application/merging-process/use-shareholder-merge-process-events.d.ts +0 -2
- package/dist/src/modules/protection-plan/domain/dto/plan-dto.d.ts +0 -68
- package/dist/src/modules/protection-plan/domain/dto/protection-plan-input.d.ts +0 -173
- package/dist/src/modules/protection-plan/domain/models/app-process.d.ts +0 -29
- package/dist/src/modules/protection-plan/domain/models/backup/backup-plan.d.ts +0 -18
- package/dist/src/modules/protection-plan/domain/models/backup/backup-shareholder.d.ts +0 -9
- package/dist/src/modules/protection-plan/domain/models/client/protection-plan-summary.d.ts +0 -218
- package/dist/src/modules/protection-plan/domain/models/data-asset.d.ts +0 -113
- package/dist/src/modules/protection-plan/domain/models/device-share-info.d.ts +0 -10
- package/dist/src/modules/protection-plan/domain/models/inheritance/heir.d.ts +0 -9
- package/dist/src/modules/protection-plan/domain/models/inheritance/inheritance-plan.d.ts +0 -16
- package/dist/src/modules/protection-plan/domain/models/merging-process/active-merge-process.d.ts +0 -15
- package/dist/src/modules/protection-plan/domain/models/merging-process/merging-process.d.ts +0 -135
- package/dist/src/modules/protection-plan/domain/models/plan-creation-proccess/plan-creation-process.d.ts +0 -69
- package/dist/src/modules/protection-plan/domain/models/plan-share.d.ts +0 -69
- package/dist/src/modules/protection-plan/domain/models/proccess-step.d.ts +0 -21
- package/dist/src/modules/protection-plan/domain/models/protection-plan-details.d.ts +0 -70
- package/dist/src/modules/protection-plan/domain/models/protection-plan-passphrase.d.ts +0 -18
- package/dist/src/modules/protection-plan/domain/models/protection-plan.d.ts +0 -238
- package/dist/src/modules/protection-plan/domain/models/shareholder.d.ts +0 -32
- package/dist/src/modules/protection-plan/domain/models/storage-option.d.ts +0 -29
- package/dist/src/modules/protection-plan/domain/models/trigger-settings-info.d.ts +0 -6
- package/dist/src/modules/protection-plan/domain/models/trigger.d.ts +0 -46
- package/dist/src/modules/protection-plan/domain/repositories/merge-authority-protection-plan-repository.d.ts +0 -13
- package/dist/src/modules/protection-plan/domain/repositories/merging-process-repository.d.ts +0 -62
- package/dist/src/modules/protection-plan/domain/repositories/plan-creation-repository.d.ts +0 -7
- package/dist/src/modules/protection-plan/domain/repositories/plan-security-repository.d.ts +0 -7
- package/dist/src/modules/protection-plan/domain/repositories/plan-triggers-repository.d.ts +0 -4
- package/dist/src/modules/protection-plan/domain/repositories/protection-plan-repository.d.ts +0 -24
- package/dist/src/modules/protection-plan/domain/services/blockchain-service.d.ts +0 -32
- package/dist/src/modules/protection-plan/domain/services/input-validation/PlanTypeInputValidator.d.ts +0 -4
- package/dist/src/modules/protection-plan/domain/services/input-validation/plan-beneficiaries-input-validator.d.ts +0 -240
- package/dist/src/modules/protection-plan/domain/services/input-validation/plan-data-assets-input-validator.d.ts +0 -1108
- package/dist/src/modules/protection-plan/domain/services/input-validation/plan-details-input-validator.d.ts +0 -23
- package/dist/src/modules/protection-plan/domain/services/input-validation/plan-shares-configuration-input-validator.d.ts +0 -13
- package/dist/src/modules/protection-plan/domain/services/input-validation/plan-storage-configuration-input-validator.d.ts +0 -25
- package/dist/src/modules/protection-plan/domain/services/input-validation/plan-triggers-input-validator.d.ts +0 -105
- package/dist/src/modules/protection-plan/domain/services/input-validation/utils/index.d.ts +0 -3
- package/dist/src/modules/protection-plan/domain/services/merge-authorization-handler.d.ts +0 -14
- package/dist/src/modules/protection-plan/domain/services/merge-process-event-listener.d.ts +0 -14
- package/dist/src/modules/protection-plan/domain/services/plan-data-assets-manager.d.ts +0 -69
- package/dist/src/modules/protection-plan/domain/services/plan-data-revealer.d.ts +0 -5
- package/dist/src/modules/protection-plan/domain/services/plan-event-listener.d.ts +0 -10
- package/dist/src/modules/protection-plan/domain/services/plan-merge-threshold-range-calculator.d.ts +0 -8
- package/dist/src/modules/protection-plan/domain/services/plan-recovery-shares-range-calculator.d.ts +0 -8
- package/dist/src/modules/protection-plan/domain/services/plan-shares-generator.d.ts +0 -18
- package/dist/src/modules/protection-plan/domain/services/vault-service.d.ts +0 -10
- package/dist/src/modules/protection-plan/domain/utils/plan-details-mapper.d.ts +0 -12
- package/dist/src/modules/protection-plan/domain/utils/plan-shares-details-mapper.d.ts +0 -10
- package/dist/src/modules/protection-plan/domain/utils/plan-triggers-details-mapper.d.ts +0 -5
- package/dist/src/modules/protection-plan/domain/utils/protection-plan-internal-mapper.d.ts +0 -5
- package/dist/src/modules/protection-plan/index.d.ts +0 -28
- package/dist/src/modules/protection-plan/infrastructure/mappers/backup-shareholder-mapper.d.ts +0 -7
- package/dist/src/modules/protection-plan/infrastructure/mappers/draft-protection-plan-mapper.d.ts +0 -8
- package/dist/src/modules/protection-plan/infrastructure/mappers/heir-mapper.d.ts +0 -7
- package/dist/src/modules/protection-plan/infrastructure/mappers/merging-process-mapper.d.ts +0 -5
- package/dist/src/modules/protection-plan/infrastructure/mappers/plan-creation-mapper.d.ts +0 -5
- package/dist/src/modules/protection-plan/infrastructure/mappers/protection-plan-filters-mapper.d.ts +0 -4
- package/dist/src/modules/protection-plan/infrastructure/mappers/protection-plan-mapper.d.ts +0 -10
- package/dist/src/modules/protection-plan/infrastructure/repositories/app-merging-process-repository.d.ts +0 -65
- package/dist/src/modules/protection-plan/infrastructure/repositories/app-plan-creation-repository.d.ts +0 -12
- package/dist/src/modules/protection-plan/infrastructure/repositories/app-plan-security-repository.d.ts +0 -11
- package/dist/src/modules/protection-plan/infrastructure/repositories/app-plan-triggers-repository.d.ts +0 -10
- package/dist/src/modules/protection-plan/infrastructure/repositories/protection-plan/app-merge-authority-protection-plan-repository.d.ts +0 -17
- package/dist/src/modules/protection-plan/infrastructure/repositories/protection-plan/app-protection-plan-repository.d.ts +0 -13
- package/dist/src/modules/protection-plan/infrastructure/services/app-blockchain-service.d.ts +0 -42
- package/dist/src/modules/protection-plan/infrastructure/services/app-plan-data-revealer.d.ts +0 -14
- package/dist/src/modules/protection-plan/infrastructure/services/app-plan-shares-generator.d.ts +0 -5
- package/dist/src/modules/protection-plan/infrastructure/services/constants/device-constants.d.ts +0 -1
- package/dist/src/modules/protection-plan/infrastructure/services/inheriti-vault-service.d.ts +0 -15
- package/dist/src/modules/protection-plan/infrastructure/services/socket-io-merge-authorization-handler.d.ts +0 -17
- package/dist/src/modules/protection-plan/infrastructure/services/socket-io-merge-process-event-listener.d.ts +0 -14
- package/dist/src/modules/protection-plan/infrastructure/services/socket-io-plan-event-listener.d.ts +0 -14
- package/dist/src/modules/protection-plan/ui/plan-creation-process/hooks/use-distribute-cold-shares-process.d.ts +0 -15
- package/dist/src/modules/protection-plan/ui/plan-creation-process/hooks/use-get-active-plan-configuration-process.d.ts +0 -11
- package/dist/src/modules/protection-plan/ui/plan-creation-process/hooks/use-plan-configuration-process-steps.d.ts +0 -16
- package/dist/src/modules/protection-plan/ui/plan-creation-process/hooks/use-plan-configuration-process.d.ts +0 -25
- package/dist/src/modules/protection-plan/ui/plan-creation-process/hooks/use-start-protection-plan-configuration-process.d.ts +0 -10
- package/dist/src/modules/protection-plan/ui/plan-creation-process/view-models/plan-configuration-process-view.d.ts +0 -55
- package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/merge-athority/use-merge-authority-sk-mobile-plan-detection.d.ts +0 -13
- package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/merge-athority/use-merge-authority-sk-pro-plan-detection.d.ts +0 -12
- package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-abort-merge-process.d.ts +0 -6
- package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-active-merge-process-listener.d.ts +0 -9
- package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-collect-plan-cold-share-process.d.ts +0 -13
- package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-count-down.d.ts +0 -7
- package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-initialize-merging-process.d.ts +0 -21
- package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-merge-process-controller.d.ts +0 -13
- package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-merge-process-release-shares-controller.d.ts +0 -9
- package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-plan-merge-process.d.ts +0 -55
- package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-process-plan-merge-steps.d.ts +0 -11
- package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-reveal-data-controller.d.ts +0 -26
- package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-start-merge-process.d.ts +0 -20
- package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-trigger-countdown.d.ts +0 -18
- package/dist/src/modules/protection-plan/ui/plan-merge-process/utils/merge-process-utils.d.ts +0 -3
- package/dist/src/modules/protection-plan/ui/plan-merge-process/view-models/plan-merge-process-view.d.ts +0 -173
- package/dist/src/modules/protection-plan/ui/protection-plan/utils/plan-beneficiary-builder.d.ts +0 -12
- package/dist/src/modules/protection-plan/ui/protection-plan/utils/plan-data-asset-builder.d.ts +0 -35
- package/dist/src/modules/protection-plan/ui/protection-plan/utils/protection-plan-code.d.ts +0 -7
- package/dist/src/modules/protection-plan/ui/protection-plan/utils/protection-plan-id.d.ts +0 -7
- package/dist/src/modules/protection-plan/ui/protection-plan/utils/trigger-builder.d.ts +0 -24
- package/dist/src/modules/safekey/application/use-connect-safekey-pro-device.d.ts +0 -10
- package/dist/src/modules/safekey/application/use-disconnect-safekey-device.d.ts +0 -8
- package/dist/src/modules/safekey/application/use-safekey-device.d.ts +0 -16
- package/dist/src/modules/safekey/application/use-validate-safekey-device-pin.d.ts +0 -12
- package/dist/src/modules/safekey/domain/services/cold-storage-service.d.ts +0 -55
- package/dist/src/modules/safekey/index.d.ts +0 -4
- package/dist/src/modules/safekey/infrastructure/services/safekey-cold-storage-service.d.ts +0 -45
- package/dist/src/modules/safekey/infrastructure/services/safekey-service.d.ts +0 -9
- package/dist/tests/modules/_shared/domain/models/FinancialMother.d.ts +0 -11
- package/dist/tests/modules/_shared/domain/models/date-mother.d.ts +0 -6
- package/dist/tests/modules/_shared/domain/models/email-mother.d.ts +0 -3
- package/dist/tests/modules/_shared/domain/models/id-mother.d.ts +0 -3
- package/dist/tests/modules/_shared/domain/models/internet-mother.d.ts +0 -11
- package/dist/tests/modules/_shared/domain/models/mother-creator.d.ts +0 -3
- package/dist/tests/modules/_shared/domain/models/name-mother.d.ts +0 -5
- package/dist/tests/modules/_shared/domain/models/number-mother.d.ts +0 -7
- package/dist/tests/modules/_shared/domain/models/random-element-picker-mother.d.ts +0 -3
- package/dist/tests/modules/_shared/domain/models/uuid-mother.d.ts +0 -3
- package/dist/tests/modules/_shared/domain/models/word-mother.d.ts +0 -5
- package/dist/tests/modules/index.d.ts +0 -6
- package/dist/tests/modules/protection-plan/domain/plan-beneficiary-input-generator.d.ts +0 -18
- package/dist/tests/modules/protection-plan/domain/plan-data-asset-input-generator.d.ts +0 -13
- package/dist/tests/modules/protection-plan/domain/plan-details-input-generator.d.ts +0 -7
- package/dist/tests/modules/protection-plan/domain/plan-shares-configuration-input-generator.d.ts +0 -20
- package/dist/tests/modules/protection-plan/domain/plan-storage-configuration-input-generator.d.ts +0 -4
- package/dist/tests/modules/protection-plan/domain/plan-trigger-input-generator.d.ts +0 -27
- package/dist/tests/modules/protection-plan/domain/protection-plan-input-generator.d.ts +0 -4
- package/dist/tests/modules/protection-plan/index.d.ts +0 -8
- /package/dist/src/{modules/_shared/infrastructure/utils → auth}/get-api-url.d.ts +0 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export { SDKContainer } from '@safetech/inheriti-core-sdk/vanilla';
|
|
2
|
+
import { ValidEnv, AuthClientProps } from '@safetech/inheriti-core-sdk';
|
|
3
|
+
export * from '@safetech/inheriti-core-sdk';
|
|
4
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
+
import { ReactNode } from 'react';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Props for the `InheritiClientProvider` component.
|
|
9
|
+
*/
|
|
10
|
+
interface InheritiClientProviderProps {
|
|
11
|
+
/**
|
|
12
|
+
* React children nodes to be wrapped by the provider.
|
|
13
|
+
*/
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* The client ID used to authenticate or identify the consumer of the SDK.
|
|
17
|
+
*/
|
|
18
|
+
clientId?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Additional configuration options.
|
|
21
|
+
*/
|
|
22
|
+
options?: {
|
|
23
|
+
/**
|
|
24
|
+
* The environment in which the SDK should operate.
|
|
25
|
+
*/
|
|
26
|
+
env: ValidEnv;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Provides the Inheriti SDK context to all children components.
|
|
31
|
+
*
|
|
32
|
+
* This should be placed near the root of your application to ensure
|
|
33
|
+
* the SDK client is properly initialized and available throughout your app.
|
|
34
|
+
*
|
|
35
|
+
* @param props - The provider props including children, clientId, and options.
|
|
36
|
+
*/
|
|
37
|
+
declare function InheritiClientProvider({ children, clientId, options }: InheritiClientProviderProps): react_jsx_runtime.JSX.Element;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Wraps core's useClient to update the httpClient's apiUrl
|
|
41
|
+
* whenever connect is called with a different env.
|
|
42
|
+
*/
|
|
43
|
+
declare function useClient(): {
|
|
44
|
+
connect: (params: AuthClientProps) => Promise<void>;
|
|
45
|
+
client: AuthClientProps | undefined;
|
|
46
|
+
isConnected: boolean;
|
|
47
|
+
disconnect: () => Promise<void>;
|
|
48
|
+
loading: boolean;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
declare function getAvailableEnvs(): {
|
|
52
|
+
availableEnvironments: ValidEnv[];
|
|
53
|
+
defaultEnv: "local" | "development" | "staging";
|
|
54
|
+
registerUrl: string;
|
|
55
|
+
demoKeyApiUrl: string;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export { InheritiClientProvider, getAvailableEnvs, useClient };
|
|
59
|
+
export type { InheritiClientProviderProps };
|
package/dist/src/{modules/_shared/infrastructure/providers → auth}/inheriti-client-provider.d.ts
RENAMED
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* - `local`: Local development environment
|
|
5
|
-
* - `development`: Internal dev environment
|
|
6
|
-
* - `staging`: Staging/pre-production
|
|
7
|
-
* - `production`: Live production environment
|
|
8
|
-
*/
|
|
9
|
-
export type ValidEnv = "local" | "development" | "staging" | "production";
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { type ValidEnv } from "@safetech/inheriti-core-sdk";
|
|
3
|
+
export declare const HttpClientContext: import("react").Context<any>;
|
|
10
4
|
/**
|
|
11
5
|
* Props for the `InheritiClientProvider` component.
|
|
12
6
|
*/
|
|
@@ -14,7 +8,7 @@ export interface InheritiClientProviderProps {
|
|
|
14
8
|
/**
|
|
15
9
|
* React children nodes to be wrapped by the provider.
|
|
16
10
|
*/
|
|
17
|
-
children:
|
|
11
|
+
children: ReactNode;
|
|
18
12
|
/**
|
|
19
13
|
* The client ID used to authenticate or identify the consumer of the SDK.
|
|
20
14
|
*/
|
|
@@ -29,12 +23,6 @@ export interface InheritiClientProviderProps {
|
|
|
29
23
|
env: ValidEnv;
|
|
30
24
|
};
|
|
31
25
|
}
|
|
32
|
-
export interface AuthClientProps {
|
|
33
|
-
key: string;
|
|
34
|
-
options?: {
|
|
35
|
-
env: ValidEnv;
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
26
|
/**
|
|
39
27
|
* Provides the Inheriti SDK context to all children components.
|
|
40
28
|
*
|
|
@@ -43,4 +31,4 @@ export interface AuthClientProps {
|
|
|
43
31
|
*
|
|
44
32
|
* @param props - The provider props including children, clientId, and options.
|
|
45
33
|
*/
|
|
46
|
-
export default function InheritiClientProvider({ children, clientId, options
|
|
34
|
+
export default function InheritiClientProvider({ children, clientId, options }: InheritiClientProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type AuthClientProps } from "@safetech/inheriti-core-sdk";
|
|
2
|
+
/**
|
|
3
|
+
* Wraps core's useClient to update the httpClient's apiUrl
|
|
4
|
+
* whenever connect is called with a different env.
|
|
5
|
+
*/
|
|
6
|
+
export default function useClient(): {
|
|
7
|
+
connect: (params: AuthClientProps) => Promise<void>;
|
|
8
|
+
client: AuthClientProps | undefined;
|
|
9
|
+
isConnected: boolean;
|
|
10
|
+
disconnect: () => Promise<void>;
|
|
11
|
+
loading: boolean;
|
|
12
|
+
};
|