@safetech/inheriti-client-sdk 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +2 -0
- package/dist/src/modules/_shared/domain/contexts/data-provider-context.d.ts +2 -0
- package/dist/src/modules/_shared/domain/contexts/service-provider-context.d.ts +2 -0
- package/dist/src/modules/_shared/domain/contexts/utils-provider-context.d.ts +5 -0
- package/dist/src/modules/_shared/domain/errors/getErrorMessage.d.ts +1 -0
- package/dist/src/modules/_shared/domain/hooks/resources/use-create.d.ts +18 -0
- package/dist/src/modules/_shared/domain/hooks/resources/use-delete.d.ts +19 -0
- package/dist/src/modules/_shared/domain/hooks/resources/use-get-list.d.ts +25 -0
- package/dist/src/modules/_shared/domain/hooks/resources/use-get-one.d.ts +17 -0
- package/dist/src/modules/_shared/domain/hooks/use-data-provider.d.ts +2 -0
- package/dist/src/modules/_shared/domain/hooks/use-repository.d.ts +1 -0
- package/dist/src/modules/_shared/domain/hooks/use-service-provider.d.ts +2 -0
- package/dist/src/modules/_shared/domain/hooks/use-service.d.ts +1 -0
- package/dist/src/modules/_shared/domain/hooks/utils-hooks.d.ts +4 -0
- package/dist/src/modules/_shared/domain/models/app-utils.d.ts +10 -0
- package/dist/src/modules/_shared/domain/models/currency-price.d.ts +39 -0
- package/dist/src/modules/_shared/domain/models/currency.d.ts +24 -0
- package/dist/src/modules/_shared/domain/models/euro-currency.d.ts +3 -0
- package/dist/src/modules/_shared/domain/models/mutation-options.d.ts +8 -0
- package/dist/src/modules/_shared/domain/models/mutation.d.ts +5 -0
- package/dist/src/modules/_shared/domain/models/pagination-options.d.ts +4 -0
- package/dist/src/modules/_shared/domain/models/query-options.d.ts +6 -0
- package/dist/src/modules/_shared/domain/models/query.d.ts +5 -0
- package/dist/src/modules/_shared/domain/models/resource-count.d.ts +3 -0
- package/dist/src/modules/_shared/domain/models/sort-options.d.ts +4 -0
- package/dist/src/modules/_shared/domain/models/use-mutation-value.d.ts +13 -0
- package/dist/src/modules/_shared/domain/models/use-query-value.d.ts +11 -0
- package/dist/src/modules/_shared/domain/services/mutation-creator.d.ts +6 -0
- package/dist/src/modules/_shared/domain/services/query-creator.d.ts +6 -0
- package/dist/src/modules/_shared/domain/utils/misc/array-utils.d.ts +48 -0
- package/dist/src/modules/_shared/domain/utils/misc/datetime-utils.d.ts +40 -0
- package/dist/src/modules/_shared/domain/utils/misc/encrypt-utils.d.ts +17 -0
- package/dist/src/modules/_shared/domain/utils/misc/number-utils.d.ts +4 -0
- package/dist/src/modules/_shared/domain/utils/misc/object-utils.d.ts +76 -0
- package/dist/src/modules/_shared/domain/utils/misc/text-utils.d.ts +7 -0
- package/dist/src/modules/_shared/domain/utils/misc/uuid-utils.d.ts +6 -0
- package/dist/src/modules/_shared/infrastructure/api/api-repository.d.ts +36 -0
- package/dist/src/modules/_shared/infrastructure/api/app-payload-encrypter.d.ts +9 -0
- package/dist/src/modules/_shared/infrastructure/http/HttpError.d.ts +7 -0
- package/dist/src/modules/_shared/infrastructure/http/fetch.d.ts +48 -0
- package/dist/src/modules/_shared/infrastructure/local-storage/browser-local-storage.d.ts +9 -0
- package/dist/src/modules/_shared/infrastructure/providers/app-data-provider.d.ts +20 -0
- package/dist/src/modules/_shared/infrastructure/providers/app-provider.d.ts +15 -0
- package/dist/src/modules/_shared/infrastructure/providers/app-service-provider.d.ts +28 -0
- package/dist/src/modules/_shared/infrastructure/providers/app-utils-provider.d.ts +175 -0
- package/dist/src/modules/_shared/infrastructure/providers/inheriti-client-provider.d.ts +46 -0
- package/dist/src/modules/_shared/infrastructure/secure-storage/app-secure-storage.d.ts +8 -0
- package/dist/src/modules/_shared/infrastructure/services/hexEncoder.d.ts +4 -0
- package/dist/src/modules/_shared/infrastructure/services/react-q-query-creator.d.ts +7 -0
- package/dist/src/modules/_shared/infrastructure/services/react-query-mutation-creator.d.ts +7 -0
- package/dist/src/modules/_shared/infrastructure/services/safeshareLegacy.d.ts +29 -0
- package/dist/src/modules/_shared/infrastructure/session-storage/browser-session-storage.d.ts +12 -0
- package/dist/src/modules/_shared/infrastructure/utils/context-selector.d.ts +2 -0
- package/dist/src/modules/_shared/infrastructure/utils/get-api-url.d.ts +1 -0
- package/dist/src/modules/_shared/infrastructure/utils/set-query-params.d.ts +5 -0
- package/dist/src/modules/auth/application/use-auth-dispatch.d.ts +1 -0
- package/dist/src/modules/auth/application/use-auth-provider.d.ts +4 -0
- package/dist/src/modules/auth/application/use-auth-state.d.ts +1 -0
- package/dist/src/modules/auth/application/use-client.d.ts +27 -0
- package/dist/src/modules/auth/application/use-ensure-connected-client.d.ts +3 -0
- package/dist/src/modules/auth/application/use-get-identity.d.ts +36 -0
- package/dist/src/modules/auth/application/use-is-logged-in.d.ts +8 -0
- package/dist/src/modules/auth/application/use-login-client.d.ts +6 -0
- package/dist/src/modules/auth/application/use-logout-client.d.ts +5 -0
- package/dist/src/modules/auth/domain/contexts/auth-provider-context.d.ts +2 -0
- package/dist/src/modules/auth/domain/models/auth-credentials.d.ts +3 -0
- package/dist/src/modules/auth/domain/models/user-identity.d.ts +28 -0
- package/dist/src/modules/auth/domain/services/auth-provider.d.ts +16 -0
- package/dist/src/modules/auth/index.d.ts +6 -0
- package/dist/src/modules/auth/infrastructure/providers/app-auth-provider.d.ts +30 -0
- package/dist/src/modules/auth/infrastructure/providers/app-identity-service.d.ts +9 -0
- package/dist/src/modules/auth/infrastructure/providers/auth-constants.d.ts +6 -0
- package/dist/src/modules/beneficiary/domain/models/beneficiary-device.d.ts +28 -0
- package/dist/src/modules/beneficiary/domain/models/beneficiary-relation.d.ts +13 -0
- package/dist/src/modules/beneficiary/domain/models/beneficiary-type.d.ts +16 -0
- package/dist/src/modules/beneficiary/domain/models/beneficiary.d.ts +54 -0
- package/dist/src/modules/beneficiary/index.d.ts +1 -0
- package/dist/src/modules/beneficiary/infrastructure/mappers/beneficiary-mapper.d.ts +6 -0
- package/dist/src/modules/protection-plan/application/configuration-process/blockchain/use-create-smart-contract.d.ts +9 -0
- package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/creation/use-create-backup-shares.d.ts +6 -0
- package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/creation/use-create-cold-shares.d.ts +6 -0
- package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/creation/use-create-mobile-shares.d.ts +6 -0
- package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/creation/use-create-validator-shares.d.ts +6 -0
- package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/distribution/use-distribute-backup-shares.d.ts +9 -0
- package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/distribution/use-distribute-cold-share.d.ts +8 -0
- package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/distribution/use-distribute-mobile-shares.d.ts +9 -0
- package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/distribution/use-distribute-validator-shares.d.ts +9 -0
- package/dist/src/modules/protection-plan/application/configuration-process/use-configure-plan.d.ts +12 -0
- package/dist/src/modules/protection-plan/application/configuration-process/use-delete-plan-configuration-process.d.ts +8 -0
- package/dist/src/modules/protection-plan/application/configuration-process/use-get-plan-configuration-process.d.ts +12 -0
- package/dist/src/modules/protection-plan/application/configuration-process/use-save-plan-creation-process.d.ts +9 -0
- package/dist/src/modules/protection-plan/application/creation/use-create-protection-plan.d.ts +24 -0
- package/dist/src/modules/protection-plan/application/creation/use-get-available-plan-triggers.d.ts +3 -0
- package/dist/src/modules/protection-plan/application/creation/use-get-protection-plan-security-level.d.ts +47 -0
- package/dist/src/modules/protection-plan/application/creation/use-persist-protection-plan.d.ts +10 -0
- package/dist/src/modules/protection-plan/application/listing/use-find-protection-plan-summary-by-criteria.d.ts +13 -0
- package/dist/src/modules/protection-plan/application/listing/use-find-protection-plans-by-criteria.d.ts +15 -0
- package/dist/src/modules/protection-plan/application/listing/use-get-protection-plan-summary.d.ts +13 -0
- package/dist/src/modules/protection-plan/application/listing/use-is-merge-authority-mode.d.ts +3 -0
- package/dist/src/modules/protection-plan/application/listing/use-protection-plan-listener.d.ts +25 -0
- package/dist/src/modules/protection-plan/application/merging-process/merge-authority/use-authorize-merge-authority.d.ts +13 -0
- package/dist/src/modules/protection-plan/application/merging-process/merge-authority/use-get-merge-authority-protection-plan.d.ts +12 -0
- package/dist/src/modules/protection-plan/application/merging-process/merge-authority/use-merge-authority-merge-process-events.d.ts +6 -0
- package/dist/src/modules/protection-plan/application/merging-process/merge-triggers/use-retry-active-merge-trigger.d.ts +10 -0
- package/dist/src/modules/protection-plan/application/merging-process/merge-triggers/use-validate-merge-trigger.d.ts +12 -0
- package/dist/src/modules/protection-plan/application/merging-process/plan-shares/collection/use-collect-backup-shares.d.ts +9 -0
- package/dist/src/modules/protection-plan/application/merging-process/plan-shares/collection/use-collect-cold-share.d.ts +8 -0
- package/dist/src/modules/protection-plan/application/merging-process/plan-shares/collection/use-collect-mobile-shares.d.ts +5 -0
- package/dist/src/modules/protection-plan/application/merging-process/plan-shares/collection/use-collect-released-mobile-shares.d.ts +9 -0
- package/dist/src/modules/protection-plan/application/merging-process/plan-shares/collection/use-collect-validator-shares.d.ts +9 -0
- package/dist/src/modules/protection-plan/application/merging-process/plan-shares/use-check-can-collect-shares.d.ts +2 -0
- package/dist/src/modules/protection-plan/application/merging-process/plan-shares/use-save-release-mobile-share-request.d.ts +11 -0
- package/dist/src/modules/protection-plan/application/merging-process/plan-shares/use-send-plan-share-merge-status-event.d.ts +15 -0
- package/dist/src/modules/protection-plan/application/merging-process/plan-shares/use-send-plan-shares-merged.d.ts +10 -0
- package/dist/src/modules/protection-plan/application/merging-process/use-close-protection-plan.d.ts +10 -0
- package/dist/src/modules/protection-plan/application/merging-process/use-create-merging-process.d.ts +9 -0
- package/dist/src/modules/protection-plan/application/merging-process/use-delete-merging-process-by-criteria.d.ts +11 -0
- package/dist/src/modules/protection-plan/application/merging-process/use-delete-merging-process.d.ts +10 -0
- package/dist/src/modules/protection-plan/application/merging-process/use-get-merging-process-by-plan.d.ts +23 -0
- package/dist/src/modules/protection-plan/application/merging-process/use-merge-plan-beneficiary-selection.d.ts +27 -0
- package/dist/src/modules/protection-plan/application/merging-process/use-persist-merge-process.d.ts +12 -0
- package/dist/src/modules/protection-plan/application/merging-process/use-reveal-plan-data.d.ts +13 -0
- package/dist/src/modules/protection-plan/application/merging-process/use-save-merging-process.d.ts +9 -0
- package/dist/src/modules/protection-plan/application/merging-process/use-scan-plans-from-merge-authority-device.d.ts +10 -0
- package/dist/src/modules/protection-plan/application/merging-process/use-shareholder-merge-process-events.d.ts +2 -0
- package/dist/src/modules/protection-plan/domain/dto/plan-dto.d.ts +68 -0
- package/dist/src/modules/protection-plan/domain/dto/protection-plan-input.d.ts +173 -0
- package/dist/src/modules/protection-plan/domain/models/app-process.d.ts +29 -0
- package/dist/src/modules/protection-plan/domain/models/backup/backup-plan.d.ts +18 -0
- package/dist/src/modules/protection-plan/domain/models/backup/backup-shareholder.d.ts +9 -0
- package/dist/src/modules/protection-plan/domain/models/client/protection-plan-summary.d.ts +218 -0
- package/dist/src/modules/protection-plan/domain/models/data-asset.d.ts +113 -0
- package/dist/src/modules/protection-plan/domain/models/device-share-info.d.ts +10 -0
- package/dist/src/modules/protection-plan/domain/models/inheritance/heir.d.ts +9 -0
- package/dist/src/modules/protection-plan/domain/models/inheritance/inheritance-plan.d.ts +16 -0
- package/dist/src/modules/protection-plan/domain/models/merging-process/active-merge-process.d.ts +15 -0
- package/dist/src/modules/protection-plan/domain/models/merging-process/merging-process.d.ts +135 -0
- package/dist/src/modules/protection-plan/domain/models/plan-creation-proccess/plan-creation-process.d.ts +69 -0
- package/dist/src/modules/protection-plan/domain/models/plan-share.d.ts +69 -0
- package/dist/src/modules/protection-plan/domain/models/proccess-step.d.ts +21 -0
- package/dist/src/modules/protection-plan/domain/models/protection-plan-details.d.ts +70 -0
- package/dist/src/modules/protection-plan/domain/models/protection-plan-passphrase.d.ts +18 -0
- package/dist/src/modules/protection-plan/domain/models/protection-plan.d.ts +238 -0
- package/dist/src/modules/protection-plan/domain/models/shareholder.d.ts +32 -0
- package/dist/src/modules/protection-plan/domain/models/storage-option.d.ts +29 -0
- package/dist/src/modules/protection-plan/domain/models/trigger-settings-info.d.ts +6 -0
- package/dist/src/modules/protection-plan/domain/models/trigger.d.ts +46 -0
- package/dist/src/modules/protection-plan/domain/repositories/merge-authority-protection-plan-repository.d.ts +13 -0
- package/dist/src/modules/protection-plan/domain/repositories/merging-process-repository.d.ts +62 -0
- package/dist/src/modules/protection-plan/domain/repositories/plan-creation-repository.d.ts +7 -0
- package/dist/src/modules/protection-plan/domain/repositories/plan-security-repository.d.ts +7 -0
- package/dist/src/modules/protection-plan/domain/repositories/plan-triggers-repository.d.ts +4 -0
- package/dist/src/modules/protection-plan/domain/repositories/protection-plan-repository.d.ts +24 -0
- package/dist/src/modules/protection-plan/domain/services/blockchain-service.d.ts +32 -0
- package/dist/src/modules/protection-plan/domain/services/input-validation/PlanTypeInputValidator.d.ts +4 -0
- package/dist/src/modules/protection-plan/domain/services/input-validation/plan-beneficiaries-input-validator.d.ts +240 -0
- package/dist/src/modules/protection-plan/domain/services/input-validation/plan-data-assets-input-validator.d.ts +1108 -0
- package/dist/src/modules/protection-plan/domain/services/input-validation/plan-details-input-validator.d.ts +23 -0
- package/dist/src/modules/protection-plan/domain/services/input-validation/plan-shares-configuration-input-validator.d.ts +13 -0
- package/dist/src/modules/protection-plan/domain/services/input-validation/plan-storage-configuration-input-validator.d.ts +25 -0
- package/dist/src/modules/protection-plan/domain/services/input-validation/plan-triggers-input-validator.d.ts +105 -0
- package/dist/src/modules/protection-plan/domain/services/input-validation/utils/index.d.ts +3 -0
- package/dist/src/modules/protection-plan/domain/services/merge-authorization-handler.d.ts +14 -0
- package/dist/src/modules/protection-plan/domain/services/merge-process-event-listener.d.ts +14 -0
- package/dist/src/modules/protection-plan/domain/services/plan-data-assets-manager.d.ts +69 -0
- package/dist/src/modules/protection-plan/domain/services/plan-data-revealer.d.ts +5 -0
- package/dist/src/modules/protection-plan/domain/services/plan-event-listener.d.ts +10 -0
- package/dist/src/modules/protection-plan/domain/services/plan-merge-threshold-range-calculator.d.ts +8 -0
- package/dist/src/modules/protection-plan/domain/services/plan-recovery-shares-range-calculator.d.ts +8 -0
- package/dist/src/modules/protection-plan/domain/services/plan-shares-generator.d.ts +18 -0
- package/dist/src/modules/protection-plan/domain/services/vault-service.d.ts +10 -0
- package/dist/src/modules/protection-plan/domain/utils/plan-details-mapper.d.ts +12 -0
- package/dist/src/modules/protection-plan/domain/utils/plan-shares-details-mapper.d.ts +10 -0
- package/dist/src/modules/protection-plan/domain/utils/plan-triggers-details-mapper.d.ts +5 -0
- package/dist/src/modules/protection-plan/domain/utils/protection-plan-internal-mapper.d.ts +5 -0
- package/dist/src/modules/protection-plan/index.d.ts +28 -0
- package/dist/src/modules/protection-plan/infrastructure/mappers/backup-shareholder-mapper.d.ts +7 -0
- package/dist/src/modules/protection-plan/infrastructure/mappers/draft-protection-plan-mapper.d.ts +8 -0
- package/dist/src/modules/protection-plan/infrastructure/mappers/heir-mapper.d.ts +7 -0
- package/dist/src/modules/protection-plan/infrastructure/mappers/merging-process-mapper.d.ts +5 -0
- package/dist/src/modules/protection-plan/infrastructure/mappers/plan-creation-mapper.d.ts +5 -0
- package/dist/src/modules/protection-plan/infrastructure/mappers/protection-plan-filters-mapper.d.ts +4 -0
- package/dist/src/modules/protection-plan/infrastructure/mappers/protection-plan-mapper.d.ts +10 -0
- package/dist/src/modules/protection-plan/infrastructure/repositories/app-merging-process-repository.d.ts +65 -0
- package/dist/src/modules/protection-plan/infrastructure/repositories/app-plan-creation-repository.d.ts +12 -0
- package/dist/src/modules/protection-plan/infrastructure/repositories/app-plan-security-repository.d.ts +11 -0
- package/dist/src/modules/protection-plan/infrastructure/repositories/app-plan-triggers-repository.d.ts +10 -0
- package/dist/src/modules/protection-plan/infrastructure/repositories/protection-plan/app-merge-authority-protection-plan-repository.d.ts +17 -0
- package/dist/src/modules/protection-plan/infrastructure/repositories/protection-plan/app-protection-plan-repository.d.ts +13 -0
- package/dist/src/modules/protection-plan/infrastructure/services/app-blockchain-service.d.ts +42 -0
- package/dist/src/modules/protection-plan/infrastructure/services/app-plan-data-revealer.d.ts +14 -0
- package/dist/src/modules/protection-plan/infrastructure/services/app-plan-shares-generator.d.ts +5 -0
- package/dist/src/modules/protection-plan/infrastructure/services/constants/device-constants.d.ts +1 -0
- package/dist/src/modules/protection-plan/infrastructure/services/inheriti-vault-service.d.ts +15 -0
- package/dist/src/modules/protection-plan/infrastructure/services/socket-io-merge-authorization-handler.d.ts +17 -0
- package/dist/src/modules/protection-plan/infrastructure/services/socket-io-merge-process-event-listener.d.ts +14 -0
- package/dist/src/modules/protection-plan/infrastructure/services/socket-io-plan-event-listener.d.ts +14 -0
- package/dist/src/modules/protection-plan/ui/plan-creation-process/hooks/use-distribute-cold-shares-process.d.ts +15 -0
- package/dist/src/modules/protection-plan/ui/plan-creation-process/hooks/use-get-active-plan-configuration-process.d.ts +11 -0
- package/dist/src/modules/protection-plan/ui/plan-creation-process/hooks/use-plan-configuration-process-steps.d.ts +16 -0
- package/dist/src/modules/protection-plan/ui/plan-creation-process/hooks/use-plan-configuration-process.d.ts +25 -0
- package/dist/src/modules/protection-plan/ui/plan-creation-process/hooks/use-start-protection-plan-configuration-process.d.ts +10 -0
- package/dist/src/modules/protection-plan/ui/plan-creation-process/view-models/plan-configuration-process-view.d.ts +55 -0
- package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/merge-athority/use-merge-authority-sk-mobile-plan-detection.d.ts +13 -0
- package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/merge-athority/use-merge-authority-sk-pro-plan-detection.d.ts +12 -0
- package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-abort-merge-process.d.ts +6 -0
- package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-active-merge-process-listener.d.ts +9 -0
- package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-collect-plan-cold-share-process.d.ts +13 -0
- package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-count-down.d.ts +7 -0
- package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-initialize-merging-process.d.ts +21 -0
- package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-merge-process-controller.d.ts +13 -0
- package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-merge-process-release-shares-controller.d.ts +9 -0
- package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-plan-merge-process.d.ts +55 -0
- package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-process-plan-merge-steps.d.ts +11 -0
- package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-reveal-data-controller.d.ts +26 -0
- package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-start-merge-process.d.ts +20 -0
- package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-trigger-countdown.d.ts +18 -0
- package/dist/src/modules/protection-plan/ui/plan-merge-process/utils/merge-process-utils.d.ts +3 -0
- package/dist/src/modules/protection-plan/ui/plan-merge-process/view-models/plan-merge-process-view.d.ts +173 -0
- package/dist/src/modules/protection-plan/ui/protection-plan/utils/plan-beneficiary-builder.d.ts +12 -0
- package/dist/src/modules/protection-plan/ui/protection-plan/utils/plan-data-asset-builder.d.ts +35 -0
- package/dist/src/modules/protection-plan/ui/protection-plan/utils/protection-plan-code.d.ts +7 -0
- package/dist/src/modules/protection-plan/ui/protection-plan/utils/protection-plan-id.d.ts +7 -0
- package/dist/src/modules/protection-plan/ui/protection-plan/utils/trigger-builder.d.ts +24 -0
- package/dist/src/modules/safekey/application/use-connect-safekey-pro-device.d.ts +10 -0
- package/dist/src/modules/safekey/application/use-disconnect-safekey-device.d.ts +8 -0
- package/dist/src/modules/safekey/application/use-safekey-device.d.ts +16 -0
- package/dist/src/modules/safekey/application/use-validate-safekey-device-pin.d.ts +12 -0
- package/dist/src/modules/safekey/domain/services/cold-storage-service.d.ts +55 -0
- package/dist/src/modules/safekey/index.d.ts +4 -0
- package/dist/src/modules/safekey/infrastructure/services/safekey-cold-storage-service.d.ts +45 -0
- package/dist/src/modules/safekey/infrastructure/services/safekey-service.d.ts +9 -0
- package/dist/test/index.js +14 -0
- package/dist/tests/modules/_shared/domain/models/FinancialMother.d.ts +11 -0
- package/dist/tests/modules/_shared/domain/models/date-mother.d.ts +6 -0
- package/dist/tests/modules/_shared/domain/models/email-mother.d.ts +3 -0
- package/dist/tests/modules/_shared/domain/models/id-mother.d.ts +3 -0
- package/dist/tests/modules/_shared/domain/models/internet-mother.d.ts +11 -0
- package/dist/tests/modules/_shared/domain/models/mother-creator.d.ts +3 -0
- package/dist/tests/modules/_shared/domain/models/name-mother.d.ts +5 -0
- package/dist/tests/modules/_shared/domain/models/number-mother.d.ts +7 -0
- package/dist/tests/modules/_shared/domain/models/random-element-picker-mother.d.ts +3 -0
- package/dist/tests/modules/_shared/domain/models/uuid-mother.d.ts +3 -0
- package/dist/tests/modules/_shared/domain/models/word-mother.d.ts +5 -0
- package/dist/tests/modules/index.d.ts +6 -0
- package/dist/tests/modules/protection-plan/domain/plan-beneficiary-input-generator.d.ts +18 -0
- package/dist/tests/modules/protection-plan/domain/plan-data-asset-input-generator.d.ts +13 -0
- package/dist/tests/modules/protection-plan/domain/plan-details-input-generator.d.ts +7 -0
- package/dist/tests/modules/protection-plan/domain/plan-shares-configuration-input-generator.d.ts +20 -0
- package/dist/tests/modules/protection-plan/domain/plan-storage-configuration-input-generator.d.ts +4 -0
- package/dist/tests/modules/protection-plan/domain/plan-trigger-input-generator.d.ts +27 -0
- package/dist/tests/modules/protection-plan/domain/protection-plan-input-generator.d.ts +4 -0
- package/dist/tests/modules/protection-plan/index.d.ts +8 -0
- package/index.ts +6 -0
- package/package.json +78 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class FinancialMother {
|
|
2
|
+
static creditCardNumber(): string;
|
|
3
|
+
static accountNumber(length?: number): string;
|
|
4
|
+
static creditCardCVV(): string;
|
|
5
|
+
static creditCardIssuer(): string;
|
|
6
|
+
static pin(length?: number): string;
|
|
7
|
+
static code(length?: number): string;
|
|
8
|
+
static bankName(): string;
|
|
9
|
+
static expiryDate(years?: number): Date;
|
|
10
|
+
static clientId(): string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default class InternetMother {
|
|
2
|
+
static email(): string;
|
|
3
|
+
static password(): string;
|
|
4
|
+
static phone(): string;
|
|
5
|
+
static username(): string;
|
|
6
|
+
static url(): string;
|
|
7
|
+
static app(): string;
|
|
8
|
+
static apiKey(): string;
|
|
9
|
+
static publicKey(): string;
|
|
10
|
+
static privateKey(): string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as ProtectionPlanTestUtils from './protection-plan';
|
|
2
|
+
import { RandomElementPickerMother } from '../modules/_shared/domain/models/random-element-picker-mother';
|
|
3
|
+
export declare const TestUtils: {
|
|
4
|
+
ProtectionPlan: typeof ProtectionPlanTestUtils;
|
|
5
|
+
RandomElementPickerMother: typeof RandomElementPickerMother;
|
|
6
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PlanBeneficiaryInput } from '../../../../src/modules/protection-plan/domain/dto/protection-plan-input';
|
|
2
|
+
export declare class PlanBeneficiaryInputGenerator {
|
|
3
|
+
static random({ details, storage, isMergeAuthority }?: Partial<PlanBeneficiaryInput>): PlanBeneficiaryInput;
|
|
4
|
+
static randomList(count?: number): PlanBeneficiaryInput[];
|
|
5
|
+
static skProBeneficiary({ details, isMergeAuthority }?: Partial<Omit<PlanBeneficiaryInput, 'storage'>>): PlanBeneficiaryInput;
|
|
6
|
+
static skMobileBeneficiary({ details, isMergeAuthority }?: Partial<Omit<PlanBeneficiaryInput, 'storage'>>): PlanBeneficiaryInput;
|
|
7
|
+
}
|
|
8
|
+
export declare class PlanBeneficiaryCodeGenerator {
|
|
9
|
+
static random(n: number): PlanBeneficiaryInput['details']['code'];
|
|
10
|
+
}
|
|
11
|
+
export declare class PlanBeneficiaryDetailsInputGenerator {
|
|
12
|
+
static random({ id, code, firstName, lastName, email }?: Partial<PlanBeneficiaryInput['details']>): PlanBeneficiaryInput['details'];
|
|
13
|
+
}
|
|
14
|
+
export declare class PlanBeneficiaryShareStorageInputGenerator {
|
|
15
|
+
static random({ option }?: Partial<{
|
|
16
|
+
option: PlanBeneficiaryInput['storage'];
|
|
17
|
+
}>): PlanBeneficiaryInput['storage'];
|
|
18
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DataAsset } from '../../../../src/modules/protection-plan/domain/models/data-asset';
|
|
2
|
+
import PlanDataAssetBuilder from '../../../../src/modules/protection-plan/ui/protection-plan/utils/plan-data-asset-builder';
|
|
3
|
+
export declare class PlanDataAssetInputGenerator {
|
|
4
|
+
static plainText({ id, name, secret }?: Partial<Parameters<typeof PlanDataAssetBuilder.plainText>[0]>): DataAsset;
|
|
5
|
+
static onlineAccount({ id, name, notes, secret }?: Partial<Parameters<typeof PlanDataAssetBuilder.onlineAccount>[0]>): DataAsset;
|
|
6
|
+
static recoveryCode({ id, name, notes, secret }?: Partial<Parameters<typeof PlanDataAssetBuilder.recoveryCode>[0]>): DataAsset;
|
|
7
|
+
static pinCode({ id, name, notes, secret }?: Partial<Parameters<typeof PlanDataAssetBuilder.pinCode>[0]>): DataAsset;
|
|
8
|
+
static apiKey({ id, name, notes, secret }?: Partial<Parameters<typeof PlanDataAssetBuilder.apiKey>[0]>): DataAsset;
|
|
9
|
+
static privateKey({ id, name, notes, secret }?: Partial<Parameters<typeof PlanDataAssetBuilder.privateKey>[0]>): DataAsset;
|
|
10
|
+
static seedPhrase({ id, name, notes, secret }?: Partial<Parameters<typeof PlanDataAssetBuilder.seedPhrase>[0]>): DataAsset;
|
|
11
|
+
static paymentDebitCard({ id, name, notes, secret }?: Partial<Parameters<typeof PlanDataAssetBuilder.paymentDebitCard>[0]>): DataAsset;
|
|
12
|
+
static paymentCreditCard({ id, name, notes, secret }?: Partial<Parameters<typeof PlanDataAssetBuilder.paymentCreditCard>[0]>): DataAsset;
|
|
13
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PlanDetailsInput } from '../../../../src/modules/protection-plan/domain/dto/protection-plan-input';
|
|
2
|
+
export declare class PlanDetailsInputGenerator {
|
|
3
|
+
static random({ title, privateNotes, description }?: Partial<PlanDetailsInput>): PlanDetailsInput;
|
|
4
|
+
}
|
|
5
|
+
export declare class PlanNameInputGenerator {
|
|
6
|
+
static random(): string;
|
|
7
|
+
}
|
package/dist/tests/modules/protection-plan/domain/plan-shares-configuration-input-generator.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PlanSharesConfigurationInput } from '../../../../src/modules/protection-plan';
|
|
2
|
+
export declare class PlanSharesConfigurationInputGenerator {
|
|
3
|
+
static random({ recoverySharesAmount, mergeThreshold }?: Partial<PlanSharesConfigurationInput>): PlanSharesConfigurationInput;
|
|
4
|
+
}
|
|
5
|
+
export declare class PlanMergeThresholdInputGenerator {
|
|
6
|
+
static random({ beneficiariesAmount }: {
|
|
7
|
+
beneficiariesAmount?: number;
|
|
8
|
+
}): PlanSharesConfigurationInput['mergeThreshold'];
|
|
9
|
+
}
|
|
10
|
+
export declare class PlanRecoverySharesAmountInputGenerator {
|
|
11
|
+
static random({ mergeThreshold }: {
|
|
12
|
+
mergeThreshold?: number;
|
|
13
|
+
}): PlanSharesConfigurationInput['recoverySharesAmount'];
|
|
14
|
+
static max({ mergeThreshold }: {
|
|
15
|
+
mergeThreshold?: number;
|
|
16
|
+
}): PlanSharesConfigurationInput['recoverySharesAmount'];
|
|
17
|
+
static medium({ mergeThreshold }: {
|
|
18
|
+
mergeThreshold?: number;
|
|
19
|
+
}): PlanSharesConfigurationInput['recoverySharesAmount'];
|
|
20
|
+
}
|
package/dist/tests/modules/protection-plan/domain/plan-storage-configuration-input-generator.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { PlanStorageConfigurationInput } from '../../../../src/modules/protection-plan/domain/dto/protection-plan-input';
|
|
2
|
+
export declare class PlanStorageConfigurationInputGenerator {
|
|
3
|
+
static random({ mobileShareVerification, option }?: Partial<PlanStorageConfigurationInput>): PlanStorageConfigurationInput;
|
|
4
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { PlanTriggerInput } from '../../../../src/modules/protection-plan/domain/dto/protection-plan-input';
|
|
2
|
+
import { TriggerType } from '../../../../src/modules/protection-plan/domain/models/trigger';
|
|
3
|
+
export declare class PlanTriggerInputGenerator {
|
|
4
|
+
static random({ id, countdown, settings }?: Partial<PlanTriggerInput>): PlanTriggerInput;
|
|
5
|
+
static randomList(count?: number): PlanTriggerInput[];
|
|
6
|
+
static maxSecurity(itemProps?: (triggerId: TriggerType) => Partial<Omit<PlanTriggerInput, 'id'>>): PlanTriggerInput[];
|
|
7
|
+
static randomEmailTriggers({ email }?: {
|
|
8
|
+
email?: string;
|
|
9
|
+
}): PlanTriggerInput[];
|
|
10
|
+
static randomPhoneTriggers({ phone }?: {
|
|
11
|
+
phone?: string;
|
|
12
|
+
}): PlanTriggerInput[];
|
|
13
|
+
static emailTrigger({ id, email }?: {
|
|
14
|
+
id?: 'CLICK_LINK' | 'LOGIN';
|
|
15
|
+
email: string | undefined;
|
|
16
|
+
}): PlanTriggerInput;
|
|
17
|
+
static phoneTrigger({ id, phone }?: {
|
|
18
|
+
id?: 'PHONE_CALL' | 'SMS';
|
|
19
|
+
phone: string | undefined;
|
|
20
|
+
}): PlanTriggerInput;
|
|
21
|
+
}
|
|
22
|
+
export declare class PlanTriggerCountdownInputGenerator {
|
|
23
|
+
static random({ days, hours, minutes }?: Partial<PlanTriggerInput['countdown']>): PlanTriggerInput['countdown'];
|
|
24
|
+
}
|
|
25
|
+
export declare class PlanTriggerSettingsInputGenerator {
|
|
26
|
+
static random({ email }?: Partial<PlanTriggerInput['settings']>): PlanTriggerInput['settings'];
|
|
27
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ProtectionPlanInput } from '../../../../src/modules/protection-plan/domain/dto/protection-plan-input';
|
|
2
|
+
export declare class ProtectionPlanInputGenerator {
|
|
3
|
+
static random({ id, type, code, details, beneficiaries, storageConfiguration, sharesConfiguration, triggers, assets }?: Partial<ProtectionPlanInput>): ProtectionPlanInput;
|
|
4
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { PlanStorageConfigurationInputGenerator } from '../../modules/protection-plan/domain/plan-storage-configuration-input-generator';
|
|
2
|
+
export { PlanSharesConfigurationInputGenerator } from '../../modules/protection-plan/domain/plan-shares-configuration-input-generator';
|
|
3
|
+
export { PlanRecoverySharesAmountInputGenerator } from '../../modules/protection-plan/domain/plan-shares-configuration-input-generator';
|
|
4
|
+
export { PlanMergeThresholdInputGenerator } from '../../modules/protection-plan/domain/plan-shares-configuration-input-generator';
|
|
5
|
+
export { PlanTriggerInputGenerator } from '../../modules/protection-plan/domain/plan-trigger-input-generator';
|
|
6
|
+
export { ProtectionPlanInputGenerator } from '../../modules/protection-plan/domain/protection-plan-input-generator';
|
|
7
|
+
export { PlanDataAssetInputGenerator } from '../../modules/protection-plan/domain/plan-data-asset-input-generator';
|
|
8
|
+
export { PlanBeneficiaryShareStorageInputGenerator, PlanBeneficiaryInputGenerator, PlanBeneficiaryDetailsInputGenerator } from '../../modules/protection-plan/domain/plan-beneficiary-input-generator';
|
package/index.ts
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@safetech/inheriti-client-sdk",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"require": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./test": {
|
|
14
|
+
"import": "./dist/test/index.js",
|
|
15
|
+
"require": "./dist/test/index.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"typesVersions": {
|
|
19
|
+
"*": {
|
|
20
|
+
"test": [
|
|
21
|
+
"dist/test/index.d.ts"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"private": false,
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"crypto-js": "^4.2.0",
|
|
29
|
+
"date-fns": "^2.29.3",
|
|
30
|
+
"esbuild-plugin-alias-path": "^2.0.2",
|
|
31
|
+
"esbuild-plugin-d.ts": "^1.3.1",
|
|
32
|
+
"jwt-decode": "^3.1.2",
|
|
33
|
+
"lodash": "^4.17.20",
|
|
34
|
+
"moment": "^2.29.1",
|
|
35
|
+
"moment-timezone": "^0.5.34",
|
|
36
|
+
"numeral": "^2.0.6",
|
|
37
|
+
"openpgp": "^5.11.0",
|
|
38
|
+
"react": "18.3.1",
|
|
39
|
+
"react-query": "^3.34.15",
|
|
40
|
+
"safekey": "git+https://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@github.com/safetechio/SafeKey_Libs_JS.git#2c8d9100f3612ae0e229cfde6a00ffdc29df563f",
|
|
41
|
+
"secure-web-storage": "^1.0.2",
|
|
42
|
+
"socket.io-client": "^4.7.3",
|
|
43
|
+
"sonner": "^2.0.3",
|
|
44
|
+
"use-context-selector": "^1.3.7",
|
|
45
|
+
"uuid": "^11.1.0",
|
|
46
|
+
"zod": "^3.24.3"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@types/lodash": "^4.17.16",
|
|
50
|
+
"@types/node": "^22.14.0",
|
|
51
|
+
"@types/react": "~18.3.12",
|
|
52
|
+
"esbuild": "^0.25.2",
|
|
53
|
+
"esbuild-plugin-alias": "^0.2.1",
|
|
54
|
+
"npm-dts": "^1.3.13",
|
|
55
|
+
"ts-node": "^10.9.2",
|
|
56
|
+
"tsc-alias": "^1.8.16",
|
|
57
|
+
"tsconfig-paths": "^4.2.0",
|
|
58
|
+
"ttypescript": "^1.5.15",
|
|
59
|
+
"typedoc": "^0.28.3",
|
|
60
|
+
"typescript": "^5.8.3"
|
|
61
|
+
},
|
|
62
|
+
"optionalDependencies": {
|
|
63
|
+
"@faker-js/faker": "^9.7.0"
|
|
64
|
+
},
|
|
65
|
+
"scripts": {
|
|
66
|
+
"build": "node esbuild.config.js",
|
|
67
|
+
"publish-version": "node scripts/publish-sdk-version.js",
|
|
68
|
+
"add-patch": "node scripts/bump-version.js patch",
|
|
69
|
+
"generate-docs": "npx typedoc",
|
|
70
|
+
"publish-npm": "node scripts/publish-npm.js"
|
|
71
|
+
},
|
|
72
|
+
"files": [
|
|
73
|
+
"dist",
|
|
74
|
+
"README.md",
|
|
75
|
+
"LICENSE",
|
|
76
|
+
"index.ts"
|
|
77
|
+
]
|
|
78
|
+
}
|