@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,32 @@
|
|
|
1
|
+
import StorageOption, { StorageOptionPrimitiveProps } from '../../../protection-plan/domain/models/storage-option';
|
|
2
|
+
import Beneficiary, { BeneficiaryPrimitiveProps } from '../../../beneficiary/domain/models/beneficiary';
|
|
3
|
+
import { BackupShareholderPrimitiveProps } from '../../../protection-plan/domain/models/backup/backup-shareholder';
|
|
4
|
+
export interface ShareholderProps {
|
|
5
|
+
id: string;
|
|
6
|
+
beneficiary: Beneficiary;
|
|
7
|
+
storage: StorageOption;
|
|
8
|
+
isMergeAuthority: boolean;
|
|
9
|
+
isOwner?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface ShareholderPrimitiveProps extends Omit<ShareholderProps, 'storage' | 'beneficiary'> {
|
|
12
|
+
storage: StorageOptionPrimitiveProps;
|
|
13
|
+
beneficiary: BeneficiaryPrimitiveProps;
|
|
14
|
+
}
|
|
15
|
+
export default class Shareholder {
|
|
16
|
+
private props;
|
|
17
|
+
constructor(props: ShareholderProps);
|
|
18
|
+
get beneficiary(): Beneficiary;
|
|
19
|
+
get id(): string;
|
|
20
|
+
get fullName(): string | undefined;
|
|
21
|
+
get lastName(): string | undefined;
|
|
22
|
+
get description(): "" | "Wife" | "Husband" | "Spouse" | "Child" | "Grandchild" | "Parent" | "Grandparent" | "Family member" | "Friend" | "Business Partner" | "Colleague" | "Lawyer" | "Notary" | "Trustee" | "Executor" | "Other" | undefined;
|
|
23
|
+
get isMergeAuthority(): boolean;
|
|
24
|
+
get isOwner(): boolean | undefined;
|
|
25
|
+
get profilePictureUrl(): string | undefined;
|
|
26
|
+
get email(): string | undefined;
|
|
27
|
+
get storage(): StorageOption;
|
|
28
|
+
/** @ignore */
|
|
29
|
+
static fromPrimitives(props: BackupShareholderPrimitiveProps): Shareholder;
|
|
30
|
+
/** @ignore */
|
|
31
|
+
toPrimitives(): ShareholderPrimitiveProps;
|
|
32
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export type BlockChainStorageOption = 'VECHAIN' | 'ETHEREUM' | 'OPTIMISM' | 'INHERITI_CHAIN';
|
|
2
|
+
export type PlanStorageOption = 'SAFEKEY_PRO' | 'SAFEKEY_MOBILE' | 'VAULT' | 'HSM' | BlockChainStorageOption;
|
|
3
|
+
export interface StorageOptionProps {
|
|
4
|
+
id: PlanStorageOption;
|
|
5
|
+
deviceId?: string;
|
|
6
|
+
devicePassword?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface StorageOptionPrimitiveProps extends StorageOptionProps {
|
|
9
|
+
}
|
|
10
|
+
export default class StorageOption {
|
|
11
|
+
private props;
|
|
12
|
+
constructor(props: StorageOptionProps);
|
|
13
|
+
static get validBlockChainOptions(): BlockChainStorageOption[];
|
|
14
|
+
get id(): PlanStorageOption;
|
|
15
|
+
get isSafekey(): boolean;
|
|
16
|
+
get isSafekeyMobile(): boolean;
|
|
17
|
+
get isBlockchain(): boolean;
|
|
18
|
+
get deviceId(): string | undefined;
|
|
19
|
+
get devicePassword(): string | undefined;
|
|
20
|
+
get name(): "HSM" | "SafeKey Pro" | "SafeKey Mobile" | "vechain" | "Ethereum" | "Optimism" | "Inheriti® Chain" | "Vault" | "Unknown Name";
|
|
21
|
+
get isBlockChain(): boolean;
|
|
22
|
+
get isVault(): boolean;
|
|
23
|
+
get isMobile(): boolean;
|
|
24
|
+
get isCold(): boolean;
|
|
25
|
+
static fromPrimitives(props: StorageOptionPrimitiveProps): StorageOption;
|
|
26
|
+
setDeviceId(id: string): void;
|
|
27
|
+
setDevicePassword(password: string): void;
|
|
28
|
+
toPrimitives(): StorageOptionPrimitiveProps;
|
|
29
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export type TriggerType = 'LOGIN' | 'CLICK_LINK' | 'SAFEKEY_2FA' | 'SMS' | 'PHONE_CALL';
|
|
2
|
+
export type TriggerStatus = 'PENDING' | 'LOCKED' | 'UNLOCKED';
|
|
3
|
+
export type MergeTriggerStatus = 'PENDING' | 'EXPIRED' | 'LOCKED' | 'DENIED' | 'ACTIVATED';
|
|
4
|
+
export interface TriggerProps {
|
|
5
|
+
id: TriggerType;
|
|
6
|
+
countdown?: {
|
|
7
|
+
days: number;
|
|
8
|
+
hours: number;
|
|
9
|
+
minutes: number;
|
|
10
|
+
seconds: number;
|
|
11
|
+
};
|
|
12
|
+
settings?: {
|
|
13
|
+
email?: string;
|
|
14
|
+
phone?: string;
|
|
15
|
+
};
|
|
16
|
+
status: TriggerStatus;
|
|
17
|
+
mergeStatus: MergeTriggerStatus;
|
|
18
|
+
}
|
|
19
|
+
export interface TriggerPrimitiveProps extends Omit<TriggerProps, 'storage'> {
|
|
20
|
+
}
|
|
21
|
+
export default class Trigger {
|
|
22
|
+
private props;
|
|
23
|
+
constructor(props: TriggerProps);
|
|
24
|
+
static get emailTriggers(): string[];
|
|
25
|
+
static get phoneTriggers(): string[];
|
|
26
|
+
get id(): TriggerType;
|
|
27
|
+
get status(): TriggerStatus;
|
|
28
|
+
get viewStatus(): any;
|
|
29
|
+
get mergeStatus(): MergeTriggerStatus;
|
|
30
|
+
get countdown(): {
|
|
31
|
+
days: number;
|
|
32
|
+
hours: number;
|
|
33
|
+
minutes: number;
|
|
34
|
+
seconds: number;
|
|
35
|
+
} | undefined;
|
|
36
|
+
get isEmailTarget(): boolean;
|
|
37
|
+
get isPhoneTarget(): boolean;
|
|
38
|
+
get isPending(): boolean;
|
|
39
|
+
get isExpired(): boolean;
|
|
40
|
+
get isDenied(): boolean;
|
|
41
|
+
get target(): string | undefined;
|
|
42
|
+
/** @ignore */
|
|
43
|
+
static fromPrimitives(props: TriggerPrimitiveProps): Trigger;
|
|
44
|
+
/** @ignore */
|
|
45
|
+
toPrimitives(): TriggerPrimitiveProps;
|
|
46
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import ProtectionPlan from '../../../protection-plan/domain/models/protection-plan';
|
|
2
|
+
import ProtectionPlanPassphrase from '../../../protection-plan/domain/models/protection-plan-passphrase';
|
|
3
|
+
export default interface MergeAuthorityProtectionPlanRepository {
|
|
4
|
+
findAll(): Promise<ProtectionPlan<any>[]>;
|
|
5
|
+
find(id: string): Promise<ProtectionPlan<any> | undefined>;
|
|
6
|
+
getPassphrase(data: {
|
|
7
|
+
processId: string;
|
|
8
|
+
planId: string;
|
|
9
|
+
}): Promise<{
|
|
10
|
+
passphrase: ProtectionPlanPassphrase | null;
|
|
11
|
+
assetsMetadata: any;
|
|
12
|
+
}>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import MergingProcess from '../../../protection-plan/domain/models/merging-process/merging-process';
|
|
2
|
+
import { ActiveMergeProcess } from '../../../protection-plan/domain/models/merging-process/active-merge-process';
|
|
3
|
+
export type MergeProcessFilterCriteria = {
|
|
4
|
+
expired?: boolean;
|
|
5
|
+
old?: boolean;
|
|
6
|
+
planId?: string;
|
|
7
|
+
};
|
|
8
|
+
export default interface MergingProcessRepository {
|
|
9
|
+
find(id: string): Promise<MergingProcess | undefined>;
|
|
10
|
+
findByPlanId(id: string): Promise<MergingProcess | undefined>;
|
|
11
|
+
update(plan: MergingProcess): Promise<any>;
|
|
12
|
+
remove(id: string): Promise<any>;
|
|
13
|
+
removeByCriteria(criteria: MergeProcessFilterCriteria): Promise<string[]>;
|
|
14
|
+
clean(): Promise<any>;
|
|
15
|
+
validateTrigger(data: {
|
|
16
|
+
id: string;
|
|
17
|
+
verificationId?: string;
|
|
18
|
+
triggerId: string;
|
|
19
|
+
code?: string;
|
|
20
|
+
}): Promise<boolean>;
|
|
21
|
+
requestMobileShareRelease(data: {
|
|
22
|
+
processId: string;
|
|
23
|
+
shareholdersIds: string[];
|
|
24
|
+
}): Promise<any>;
|
|
25
|
+
startMergeProcess(data: {
|
|
26
|
+
id: string;
|
|
27
|
+
planId: string;
|
|
28
|
+
selectedBeneficiariesIds: string[];
|
|
29
|
+
}): Promise<any>;
|
|
30
|
+
checkCanCollectShares(id: string): Promise<boolean>;
|
|
31
|
+
getActiveProcess(planId: string): Promise<ActiveMergeProcess | undefined>;
|
|
32
|
+
sendMergeRequest(planId: string): Promise<any>;
|
|
33
|
+
closePlan(mergeProcessId: string): Promise<any>;
|
|
34
|
+
sendPlanDataReleased(processId: string, revealOptions: {
|
|
35
|
+
timeoutMinutes: number;
|
|
36
|
+
}): Promise<any>;
|
|
37
|
+
sendPlanSharesMerged(processId: string): Promise<any>;
|
|
38
|
+
sendPlanShareStatusEvent(event: {
|
|
39
|
+
name: string;
|
|
40
|
+
planId: string;
|
|
41
|
+
type: string;
|
|
42
|
+
shareId?: string;
|
|
43
|
+
processId: string;
|
|
44
|
+
}): Promise<any>;
|
|
45
|
+
createProcess(process: MergingProcess): Promise<any>;
|
|
46
|
+
authorizeMergeAuthority(credentials: {
|
|
47
|
+
id: string;
|
|
48
|
+
source: string;
|
|
49
|
+
password: string;
|
|
50
|
+
legacyPlanIds?: string[];
|
|
51
|
+
}): Promise<void>;
|
|
52
|
+
findPlanLegacyId(id: string): Promise<string | undefined>;
|
|
53
|
+
migrateLegacyPlanShare(data: {
|
|
54
|
+
planId: string;
|
|
55
|
+
shareId: string;
|
|
56
|
+
deviceCredentials: {
|
|
57
|
+
id: string;
|
|
58
|
+
password: string;
|
|
59
|
+
};
|
|
60
|
+
}): Promise<void>;
|
|
61
|
+
retryActiveTrigger(processId: string): Promise<void>;
|
|
62
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import PlanCreationProcess from '../../../protection-plan/domain/models/plan-creation-proccess/plan-creation-process';
|
|
2
|
+
export default interface PlanCreationRepository {
|
|
3
|
+
find(id: string): Promise<PlanCreationProcess | undefined>;
|
|
4
|
+
save(plan: PlanCreationProcess): Promise<any>;
|
|
5
|
+
remove(id: string): Promise<any>;
|
|
6
|
+
checkCanProtect(planId: string): Promise<boolean>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ProtectionPlanSecurityLevelRequest } from '../../../protection-plan/application/creation/use-get-protection-plan-security-level';
|
|
2
|
+
export default interface PlanSecurityRepository {
|
|
3
|
+
calculate(data: ProtectionPlanSecurityLevelRequest): Promise<{
|
|
4
|
+
index: number;
|
|
5
|
+
evaluation: any;
|
|
6
|
+
}>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import ProtectionPlan from '../../../protection-plan/domain/models/protection-plan';
|
|
2
|
+
import PaginationOptions from '../../../_shared/domain/models/pagination-options';
|
|
3
|
+
import { ResourceCount } from '../../../_shared/domain/models/resource-count';
|
|
4
|
+
import SortOptions from '../../../_shared/domain/models/sort-options';
|
|
5
|
+
export type ProtectionPlanFilters = {
|
|
6
|
+
id: string;
|
|
7
|
+
} | {
|
|
8
|
+
beneficiary: {
|
|
9
|
+
code: string;
|
|
10
|
+
email?: string;
|
|
11
|
+
};
|
|
12
|
+
} | {
|
|
13
|
+
beneficiary: {
|
|
14
|
+
code?: string;
|
|
15
|
+
email: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default interface ProtectionPlanRepository {
|
|
19
|
+
findByCriteria(filter?: ProtectionPlanFilters, pagination?: PaginationOptions, sort?: SortOptions): Promise<ProtectionPlan<any>[]>;
|
|
20
|
+
find(id: string): Promise<ProtectionPlan<any> | undefined>;
|
|
21
|
+
count(filter?: ProtectionPlanFilters): Promise<ResourceCount>;
|
|
22
|
+
save(plan: ProtectionPlan<any>): Promise<any>;
|
|
23
|
+
configure(operation: string, plan: ProtectionPlan<any>): Promise<any>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { BlockChainStorageOption } from '../../../protection-plan/domain/models/storage-option';
|
|
2
|
+
export default interface BlockchainService {
|
|
3
|
+
createSmartContract(planId: string): Promise<{
|
|
4
|
+
address: string;
|
|
5
|
+
}>;
|
|
6
|
+
addValidatorShare(data: {
|
|
7
|
+
planId: string;
|
|
8
|
+
shareData: any[];
|
|
9
|
+
}, contractAddress?: string): Promise<{
|
|
10
|
+
passphrase: string;
|
|
11
|
+
privateKey: string;
|
|
12
|
+
}>;
|
|
13
|
+
addBackupShares(data: {
|
|
14
|
+
planId: string;
|
|
15
|
+
sharesData: string[][];
|
|
16
|
+
}, contractAddress?: string): Promise<{
|
|
17
|
+
passphrase: string;
|
|
18
|
+
privateKey: string;
|
|
19
|
+
}>;
|
|
20
|
+
getValidatorShare(data: {
|
|
21
|
+
processId: string;
|
|
22
|
+
chain: BlockChainStorageOption;
|
|
23
|
+
}): Promise<any>;
|
|
24
|
+
getBackupShares(data: {
|
|
25
|
+
processId: string;
|
|
26
|
+
chain: BlockChainStorageOption;
|
|
27
|
+
}): Promise<any>;
|
|
28
|
+
getActiveChains(): Promise<{
|
|
29
|
+
id: BlockChainStorageOption;
|
|
30
|
+
name: string;
|
|
31
|
+
}[]>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PlanBeneficiaryInput } from '../../../../protection-plan';
|
|
3
|
+
export declare const PlanBeneficiaryInputSchema: z.ZodDiscriminatedUnion<"storage", [z.ZodObject<{
|
|
4
|
+
isMergeAuthority: z.ZodBoolean;
|
|
5
|
+
isOwner: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
} & {
|
|
7
|
+
storage: z.ZodLiteral<"SAFEKEY_PRO">;
|
|
8
|
+
details: z.ZodObject<{
|
|
9
|
+
id: z.ZodOptional<z.ZodString>;
|
|
10
|
+
code: z.ZodOptional<z.ZodString>;
|
|
11
|
+
firstName: z.ZodString;
|
|
12
|
+
lastName: z.ZodString;
|
|
13
|
+
} & {
|
|
14
|
+
email: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
firstName: string;
|
|
17
|
+
lastName: string;
|
|
18
|
+
id?: string | undefined;
|
|
19
|
+
code?: string | undefined;
|
|
20
|
+
email?: string | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
firstName: string;
|
|
23
|
+
lastName: string;
|
|
24
|
+
id?: string | undefined;
|
|
25
|
+
code?: string | undefined;
|
|
26
|
+
email?: string | undefined;
|
|
27
|
+
}>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
storage: "SAFEKEY_PRO";
|
|
30
|
+
isMergeAuthority: boolean;
|
|
31
|
+
details: {
|
|
32
|
+
firstName: string;
|
|
33
|
+
lastName: string;
|
|
34
|
+
id?: string | undefined;
|
|
35
|
+
code?: string | undefined;
|
|
36
|
+
email?: string | undefined;
|
|
37
|
+
};
|
|
38
|
+
isOwner?: boolean | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
storage: "SAFEKEY_PRO";
|
|
41
|
+
isMergeAuthority: boolean;
|
|
42
|
+
details: {
|
|
43
|
+
firstName: string;
|
|
44
|
+
lastName: string;
|
|
45
|
+
id?: string | undefined;
|
|
46
|
+
code?: string | undefined;
|
|
47
|
+
email?: string | undefined;
|
|
48
|
+
};
|
|
49
|
+
isOwner?: boolean | undefined;
|
|
50
|
+
}>, z.ZodObject<{
|
|
51
|
+
isMergeAuthority: z.ZodBoolean;
|
|
52
|
+
isOwner: z.ZodOptional<z.ZodBoolean>;
|
|
53
|
+
} & {
|
|
54
|
+
storage: z.ZodLiteral<"SAFEKEY_MOBILE">;
|
|
55
|
+
details: z.ZodObject<{
|
|
56
|
+
id: z.ZodOptional<z.ZodString>;
|
|
57
|
+
code: z.ZodOptional<z.ZodString>;
|
|
58
|
+
firstName: z.ZodString;
|
|
59
|
+
lastName: z.ZodString;
|
|
60
|
+
} & {
|
|
61
|
+
email: z.ZodString;
|
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
|
63
|
+
firstName: string;
|
|
64
|
+
lastName: string;
|
|
65
|
+
email: string;
|
|
66
|
+
id?: string | undefined;
|
|
67
|
+
code?: string | undefined;
|
|
68
|
+
}, {
|
|
69
|
+
firstName: string;
|
|
70
|
+
lastName: string;
|
|
71
|
+
email: string;
|
|
72
|
+
id?: string | undefined;
|
|
73
|
+
code?: string | undefined;
|
|
74
|
+
}>;
|
|
75
|
+
}, "strip", z.ZodTypeAny, {
|
|
76
|
+
storage: "SAFEKEY_MOBILE";
|
|
77
|
+
isMergeAuthority: boolean;
|
|
78
|
+
details: {
|
|
79
|
+
firstName: string;
|
|
80
|
+
lastName: string;
|
|
81
|
+
email: string;
|
|
82
|
+
id?: string | undefined;
|
|
83
|
+
code?: string | undefined;
|
|
84
|
+
};
|
|
85
|
+
isOwner?: boolean | undefined;
|
|
86
|
+
}, {
|
|
87
|
+
storage: "SAFEKEY_MOBILE";
|
|
88
|
+
isMergeAuthority: boolean;
|
|
89
|
+
details: {
|
|
90
|
+
firstName: string;
|
|
91
|
+
lastName: string;
|
|
92
|
+
email: string;
|
|
93
|
+
id?: string | undefined;
|
|
94
|
+
code?: string | undefined;
|
|
95
|
+
};
|
|
96
|
+
isOwner?: boolean | undefined;
|
|
97
|
+
}>]>;
|
|
98
|
+
export declare const PlanBeneficiaryArraySchema: z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"storage", [z.ZodObject<{
|
|
99
|
+
isMergeAuthority: z.ZodBoolean;
|
|
100
|
+
isOwner: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
+
} & {
|
|
102
|
+
storage: z.ZodLiteral<"SAFEKEY_PRO">;
|
|
103
|
+
details: z.ZodObject<{
|
|
104
|
+
id: z.ZodOptional<z.ZodString>;
|
|
105
|
+
code: z.ZodOptional<z.ZodString>;
|
|
106
|
+
firstName: z.ZodString;
|
|
107
|
+
lastName: z.ZodString;
|
|
108
|
+
} & {
|
|
109
|
+
email: z.ZodOptional<z.ZodString>;
|
|
110
|
+
}, "strip", z.ZodTypeAny, {
|
|
111
|
+
firstName: string;
|
|
112
|
+
lastName: string;
|
|
113
|
+
id?: string | undefined;
|
|
114
|
+
code?: string | undefined;
|
|
115
|
+
email?: string | undefined;
|
|
116
|
+
}, {
|
|
117
|
+
firstName: string;
|
|
118
|
+
lastName: string;
|
|
119
|
+
id?: string | undefined;
|
|
120
|
+
code?: string | undefined;
|
|
121
|
+
email?: string | undefined;
|
|
122
|
+
}>;
|
|
123
|
+
}, "strip", z.ZodTypeAny, {
|
|
124
|
+
storage: "SAFEKEY_PRO";
|
|
125
|
+
isMergeAuthority: boolean;
|
|
126
|
+
details: {
|
|
127
|
+
firstName: string;
|
|
128
|
+
lastName: string;
|
|
129
|
+
id?: string | undefined;
|
|
130
|
+
code?: string | undefined;
|
|
131
|
+
email?: string | undefined;
|
|
132
|
+
};
|
|
133
|
+
isOwner?: boolean | undefined;
|
|
134
|
+
}, {
|
|
135
|
+
storage: "SAFEKEY_PRO";
|
|
136
|
+
isMergeAuthority: boolean;
|
|
137
|
+
details: {
|
|
138
|
+
firstName: string;
|
|
139
|
+
lastName: string;
|
|
140
|
+
id?: string | undefined;
|
|
141
|
+
code?: string | undefined;
|
|
142
|
+
email?: string | undefined;
|
|
143
|
+
};
|
|
144
|
+
isOwner?: boolean | undefined;
|
|
145
|
+
}>, z.ZodObject<{
|
|
146
|
+
isMergeAuthority: z.ZodBoolean;
|
|
147
|
+
isOwner: z.ZodOptional<z.ZodBoolean>;
|
|
148
|
+
} & {
|
|
149
|
+
storage: z.ZodLiteral<"SAFEKEY_MOBILE">;
|
|
150
|
+
details: z.ZodObject<{
|
|
151
|
+
id: z.ZodOptional<z.ZodString>;
|
|
152
|
+
code: z.ZodOptional<z.ZodString>;
|
|
153
|
+
firstName: z.ZodString;
|
|
154
|
+
lastName: z.ZodString;
|
|
155
|
+
} & {
|
|
156
|
+
email: z.ZodString;
|
|
157
|
+
}, "strip", z.ZodTypeAny, {
|
|
158
|
+
firstName: string;
|
|
159
|
+
lastName: string;
|
|
160
|
+
email: string;
|
|
161
|
+
id?: string | undefined;
|
|
162
|
+
code?: string | undefined;
|
|
163
|
+
}, {
|
|
164
|
+
firstName: string;
|
|
165
|
+
lastName: string;
|
|
166
|
+
email: string;
|
|
167
|
+
id?: string | undefined;
|
|
168
|
+
code?: string | undefined;
|
|
169
|
+
}>;
|
|
170
|
+
}, "strip", z.ZodTypeAny, {
|
|
171
|
+
storage: "SAFEKEY_MOBILE";
|
|
172
|
+
isMergeAuthority: boolean;
|
|
173
|
+
details: {
|
|
174
|
+
firstName: string;
|
|
175
|
+
lastName: string;
|
|
176
|
+
email: string;
|
|
177
|
+
id?: string | undefined;
|
|
178
|
+
code?: string | undefined;
|
|
179
|
+
};
|
|
180
|
+
isOwner?: boolean | undefined;
|
|
181
|
+
}, {
|
|
182
|
+
storage: "SAFEKEY_MOBILE";
|
|
183
|
+
isMergeAuthority: boolean;
|
|
184
|
+
details: {
|
|
185
|
+
firstName: string;
|
|
186
|
+
lastName: string;
|
|
187
|
+
email: string;
|
|
188
|
+
id?: string | undefined;
|
|
189
|
+
code?: string | undefined;
|
|
190
|
+
};
|
|
191
|
+
isOwner?: boolean | undefined;
|
|
192
|
+
}>]>, "many">, ({
|
|
193
|
+
storage: "SAFEKEY_PRO";
|
|
194
|
+
isMergeAuthority: boolean;
|
|
195
|
+
details: {
|
|
196
|
+
firstName: string;
|
|
197
|
+
lastName: string;
|
|
198
|
+
id?: string | undefined;
|
|
199
|
+
code?: string | undefined;
|
|
200
|
+
email?: string | undefined;
|
|
201
|
+
};
|
|
202
|
+
isOwner?: boolean | undefined;
|
|
203
|
+
} | {
|
|
204
|
+
storage: "SAFEKEY_MOBILE";
|
|
205
|
+
isMergeAuthority: boolean;
|
|
206
|
+
details: {
|
|
207
|
+
firstName: string;
|
|
208
|
+
lastName: string;
|
|
209
|
+
email: string;
|
|
210
|
+
id?: string | undefined;
|
|
211
|
+
code?: string | undefined;
|
|
212
|
+
};
|
|
213
|
+
isOwner?: boolean | undefined;
|
|
214
|
+
})[], ({
|
|
215
|
+
storage: "SAFEKEY_PRO";
|
|
216
|
+
isMergeAuthority: boolean;
|
|
217
|
+
details: {
|
|
218
|
+
firstName: string;
|
|
219
|
+
lastName: string;
|
|
220
|
+
id?: string | undefined;
|
|
221
|
+
code?: string | undefined;
|
|
222
|
+
email?: string | undefined;
|
|
223
|
+
};
|
|
224
|
+
isOwner?: boolean | undefined;
|
|
225
|
+
} | {
|
|
226
|
+
storage: "SAFEKEY_MOBILE";
|
|
227
|
+
isMergeAuthority: boolean;
|
|
228
|
+
details: {
|
|
229
|
+
firstName: string;
|
|
230
|
+
lastName: string;
|
|
231
|
+
email: string;
|
|
232
|
+
id?: string | undefined;
|
|
233
|
+
code?: string | undefined;
|
|
234
|
+
};
|
|
235
|
+
isOwner?: boolean | undefined;
|
|
236
|
+
})[]>;
|
|
237
|
+
export declare class PlanBeneficiaryInputValidator {
|
|
238
|
+
static validateOne(input: unknown): PlanBeneficiaryInput;
|
|
239
|
+
static validate(input: unknown): PlanBeneficiaryInput[];
|
|
240
|
+
}
|