@adyen/kyc-components 3.0.0-beta.9 → 3.0.1
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/es/{HK-0561cac3.mjs → HK-675b8651.mjs} +0 -6
- package/dist/es/NZ-d7a003bc.mjs +24 -0
- package/dist/es/adyen-kyc-components.es.js +15141 -9196
- package/dist/style.css +11406 -1958
- package/dist/types/components/BusinessTypeSelection/BusinessTypeSelection.d.ts +16 -0
- package/dist/types/components/BusinessTypeSelection/types.d.ts +38 -0
- package/dist/types/components/BusinessTypeSelection/utils.d.ts +25 -0
- package/dist/types/components/Company/rules.d.ts +21 -1
- package/dist/types/components/Company/types.d.ts +1 -0
- package/dist/types/components/CompanyBasics/component/CompanyBasicsComponent.d.ts +8 -0
- package/dist/types/components/CompanyBasics/index.d.ts +1 -0
- package/dist/types/components/CompanyBasics/types.d.ts +20 -0
- package/dist/types/components/CompanyBasics/validate.d.ts +4 -0
- package/dist/types/components/CompanyLookup/CompanyLookupResultsHeader.d.ts +2 -0
- package/dist/types/components/CompanyLookup/CompanyLookupResultsList.d.ts +2 -0
- package/dist/types/components/CompanyLookup/LookupResult.d.ts +3 -0
- package/dist/types/components/CompanyLookup/component/CompanyLookupComponent.d.ts +5 -0
- package/dist/types/components/CompanyLookup/index.d.ts +1 -0
- package/dist/types/components/CompanyLookup/types.d.ts +67 -0
- package/dist/types/components/CompanyNameAndCountry/types.d.ts +1 -0
- package/dist/types/components/CompanyOtherDetails/component/CompanyOtherDetailsComponent.d.ts +8 -0
- package/dist/types/components/CompanyOtherDetails/index.d.ts +1 -0
- package/dist/types/components/CompanyOtherDetails/types.d.ts +17 -0
- package/dist/types/components/CompanyOtherDetails/validate.d.ts +8 -0
- package/dist/types/components/CompanyRegistrationDetails/component/labels.d.ts +6 -0
- package/dist/types/components/CompanySearch/component/CompanySearchComponent.d.ts +2 -0
- package/dist/types/components/CompanySearch/forms.d.ts +38 -0
- package/dist/types/components/CompanySearch/index.d.ts +1 -0
- package/dist/types/components/CompanySearch/types.d.ts +29 -0
- package/dist/types/components/CompanyStructure/component/CompanyStructureComponent.d.ts +8 -0
- package/dist/types/components/CompanyStructure/index.d.ts +1 -0
- package/dist/types/components/CompanyStructure/types.d.ts +6 -0
- package/dist/types/components/CompanyStructure/validate.d.ts +3 -0
- package/dist/types/components/ConstitutionalDocument/ConstitutionalDocumentComponent.d.ts +4 -10
- package/dist/types/components/ConstitutionalDocument/types.d.ts +4 -0
- package/dist/types/components/ContactDetails/component/ContactDetailsComponent.d.ts +7 -1
- package/dist/types/components/DocumentUpload/types.d.ts +2 -1
- package/dist/types/components/Dropins/CompanyDropin/types.d.ts +3 -3
- package/dist/types/components/Dropins/CompanySearchDropin/components/CompanySearchDropinComponent.d.ts +2 -0
- package/dist/types/components/Dropins/CompanySearchDropin/index.d.ts +1 -0
- package/dist/types/components/Dropins/CompanySearchDropin/types.d.ts +10 -0
- package/dist/types/components/Dropins/CompanySearchDropin/utils.d.ts +8 -0
- package/dist/types/components/Dropins/FormWrapper/FormWrapper.d.ts +1 -1
- package/dist/types/components/Dropins/IndividualDropin/components/IndividualDropinComponent.d.ts +1 -1
- package/dist/types/components/Dropins/PayoutDetailsDropin/components/PayoutDetailsDropinComponent.d.ts +2 -2
- package/dist/types/components/Dropins/PciDropin/types.d.ts +1 -1
- package/dist/types/components/Dropins/RoleAndTypeDropin/components/RoleAndTypeDropinComponent.d.ts +1 -1
- package/dist/types/components/Dropins/RoleAndTypeDropin/types.d.ts +3 -0
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/components/useServiceAgreement.d.ts +2 -2
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/types.d.ts +1 -1
- package/dist/types/components/Dropins/types.d.ts +8 -1
- package/dist/types/components/EmbeddedDropins/CreateIndividualComponent/CreateIndividualComponent.d.ts +16 -0
- package/dist/types/components/EmbeddedDropins/CreateTransferInstrumentComponent/CreateTransferInstrumentComponent.d.ts +12 -0
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentComponent.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverview/ManageTransferInstrumentOverview.d.ts +12 -0
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItem/ManageTransferInstrumentOverviewItem.d.ts +12 -0
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItemSummary/ManageTransferInstrumentOverviewItemSummary.d.ts +8 -0
- package/dist/types/components/IdDocumentUpload/types.d.ts +4 -3
- package/dist/types/components/IdentityNumber/component/IdentityNumberComponent.d.ts +3 -1
- package/dist/types/components/IdentityNumber/formats.d.ts +3 -0
- package/dist/types/components/IdentityNumber/type.d.ts +2 -0
- package/dist/types/components/IdentityNumber/validate.d.ts +2 -1
- package/dist/types/components/IdentityNumber/validate.helper.d.ts +3 -5
- package/dist/types/components/Individual/types.d.ts +4 -3
- package/dist/types/components/Introduction/Introduction.d.ts +10 -0
- package/dist/types/components/Introduction/IntroductionScreen.d.ts +8 -0
- package/dist/types/components/Introduction/constants.d.ts +3 -0
- package/dist/types/components/Introduction/copy.d.ts +14 -0
- package/dist/types/components/Introduction/types.d.ts +12 -0
- package/dist/types/components/LegalEntityTypeSwitcher/type.d.ts +5 -2
- package/dist/types/components/PayoutAccount/helpers/mapPayoutAccountSchemaToApiBankAccount.d.ts +2 -0
- package/dist/types/components/PayoutAccount/types.d.ts +3 -2
- package/dist/types/components/PayoutBankStatement/component/BankDocumentRequirements.d.ts +3 -1
- package/dist/types/components/PayoutBankStatement/types.d.ts +4 -2
- package/dist/types/components/PayoutDetails/component/PayoutDetailsComponent.d.ts +2 -2
- package/dist/types/components/PayoutDetails/types.d.ts +5 -3
- package/dist/types/components/PayoutVerificationMethod/component/AccountHolderDescriptionFragment.d.ts +7 -0
- package/dist/types/components/PayoutVerificationMethod/types.d.ts +2 -2
- package/dist/types/components/PersonalDetails/component/IdentityComponent/identityUS/component/IdentityUSComponent.d.ts +1 -1
- package/dist/types/components/PersonalDetails/component/labels.d.ts +4 -0
- package/dist/types/components/PersonalDetails/types.d.ts +4 -0
- package/dist/types/components/RegistrationAddress/types.d.ts +1 -0
- package/dist/types/components/SoleProp/types.d.ts +2 -2
- package/dist/types/components/TaskList/component/PayoutAccountTaskListItem.d.ts +2 -2
- package/dist/types/components/TaskList/component/TaskItemStatus.d.ts +1 -1
- package/dist/types/components/TaskList/component/TaskListItem.d.ts +1 -1
- package/dist/types/components/TaskList/types.d.ts +10 -1
- package/dist/types/components/Trust/types.d.ts +2 -2
- package/dist/types/components/TrustMembers/component/RootTrusteeTaskItem.d.ts +2 -1
- package/dist/types/components/TrustMembers/types.d.ts +7 -3
- package/dist/types/components/TrustRoleAndEntityType/convertExistingTrustMember.d.ts +2 -1
- package/dist/types/components/TrustRoleAndEntityType/getAvailableRoles.d.ts +2 -0
- package/dist/types/components/TrustRoleAndEntityType/types.d.ts +10 -0
- package/dist/types/components/index.d.ts +6 -2
- package/dist/types/components/internal/Accordion/types.d.ts +1 -1
- package/dist/types/components/internal/AccordionItem/AccordionItem.d.ts +1 -1
- package/dist/types/components/internal/AccordionItem/types.d.ts +3 -2
- package/dist/types/components/internal/AccountHolder/types.d.ts +2 -1
- package/dist/types/components/internal/Address/components/SearchAddress.d.ts +1 -1
- package/dist/types/components/internal/Address/types.d.ts +5 -3
- package/dist/types/components/internal/Address/utils.d.ts +1 -1
- package/dist/types/components/internal/Alert/Alert.d.ts +1 -3
- package/dist/types/components/internal/Alert/components/VerificationErrorAlert.d.ts +1 -1
- package/dist/types/components/internal/Alert/index.d.ts +1 -1
- package/dist/types/components/internal/Alert/types.d.ts +2 -0
- package/dist/types/components/internal/BankAccountNumber/types.d.ts +4 -1
- package/dist/types/components/internal/BusinessRegistrationNumber/fieldConfig.d.ts +12 -0
- package/dist/types/components/internal/BusinessRegistrationNumber/types.d.ts +5 -3
- package/dist/types/components/internal/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +3 -0
- package/dist/types/components/internal/BusinessRegistrationNumberField/index.d.ts +1 -0
- package/dist/types/components/internal/BusinessRegistrationNumberField/types.d.ts +8 -0
- package/dist/types/components/internal/Button/types.d.ts +2 -2
- package/dist/types/components/internal/Card/Card.d.ts +1 -1
- package/dist/types/components/internal/Card/types.d.ts +2 -0
- package/dist/types/components/internal/ContractViewer/ContractViewer.d.ts +1 -0
- package/dist/types/components/internal/ContractViewer/types.d.ts +4 -83
- package/dist/types/components/internal/CountryField/CountryField.d.ts +2 -2
- package/dist/types/components/internal/CountryField/types.d.ts +1 -1
- package/dist/types/components/internal/CountryField/validate.d.ts +3 -0
- package/dist/types/components/internal/DateOfIncorporationField/DateOfIncorporationField.d.ts +3 -0
- package/dist/types/components/internal/DateOfIncorporationField/index.d.ts +1 -0
- package/dist/types/components/internal/DateOfIncorporationField/types.d.ts +5 -0
- package/dist/types/components/internal/DateOfIncorporationField/validate.d.ts +3 -0
- package/dist/types/components/internal/ErrorPanel/components/NavigateToFieldLink.d.ts +5 -4
- package/dist/types/components/internal/FormFields/Dropzone/FilePicker.d.ts +3 -2
- package/dist/types/components/internal/FormFields/Dropzone/types.d.ts +3 -7
- package/dist/types/components/internal/FormFields/Dropzone/validate.d.ts +2 -1
- package/dist/types/components/internal/FormFields/Field/Field.d.ts +2 -3
- package/dist/types/components/internal/FormFields/Field/types.d.ts +5 -2
- package/dist/types/components/internal/FormFields/InputBase.d.ts +2 -2
- package/dist/types/components/internal/FormFields/InputDate/utils.d.ts +1 -1
- package/dist/types/components/internal/FormFields/InputEmail.d.ts +2 -1
- package/dist/types/components/internal/FormFields/InputTelephone.d.ts +2 -1
- package/dist/types/components/internal/FormFields/InputText.d.ts +1 -1
- package/dist/types/components/internal/FormFields/MaskedInputText/MaskedInputText.d.ts +22 -0
- package/dist/types/components/internal/FormFields/RadioGroup/RadioGroup.d.ts +1 -8
- package/dist/types/components/internal/FormFields/RadioGroup/types.d.ts +3 -2
- package/dist/types/components/internal/FormFields/RadioGroupCard/RadioCard.d.ts +1 -1
- package/dist/types/components/internal/FormFields/RadioGroupCard/RadioCardSelect.d.ts +1 -1
- package/dist/types/components/internal/FormFields/RadioGroupCard/types.d.ts +5 -4
- package/dist/types/components/internal/FormFields/utils.d.ts +6 -1
- package/dist/types/components/internal/Iban/ibanValidator.d.ts +4 -2
- package/dist/types/components/internal/Iban/types.d.ts +2 -1
- package/dist/types/components/internal/IdFieldTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +11 -0
- package/dist/types/components/internal/IdFieldTypeSelector/IndividualIdNumberTypeSelector.d.ts +9 -0
- package/dist/types/components/internal/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +9 -0
- package/dist/types/components/internal/IdFieldTypeSelector/countryIdNumberTypes.d.ts +90 -0
- package/dist/types/components/internal/IdFieldTypeSelector/inferCompanyRegistrationNumberType.d.ts +12 -0
- package/dist/types/components/internal/LegalCompanyNameField/LegalCompanyNameField.d.ts +2 -3
- package/dist/types/components/internal/LegalCompanyNameField/types.d.ts +1 -1
- package/dist/types/components/internal/LegalCompanyNameField/validate.d.ts +3 -0
- package/dist/types/components/internal/Name/Name.d.ts +13 -1
- package/dist/types/components/internal/Remove/Remove.d.ts +1 -1
- package/dist/types/components/internal/Remove/types.d.ts +6 -4
- package/dist/types/components/internal/StateField/StateField.d.ts +2 -2
- package/dist/types/components/internal/StateField/types.d.ts +3 -1
- package/dist/types/components/internal/StateField/validate.d.ts +3 -0
- package/dist/types/components/internal/Status/Status.d.ts +1 -1
- package/dist/types/components/internal/Status/types.d.ts +2 -0
- package/dist/types/components/internal/StockExchangeMICField/StockExchangeMICField.d.ts +3 -0
- package/dist/types/components/internal/StockExchangeMICField/index.d.ts +1 -0
- package/dist/types/components/internal/StockExchangeMICField/types.d.ts +5 -0
- package/dist/types/components/internal/StockExchangeMICField/validate.d.ts +3 -0
- package/dist/types/components/internal/StockISINField/StockISINField.d.ts +3 -0
- package/dist/types/components/internal/StockISINField/index.d.ts +1 -0
- package/dist/types/components/internal/StockISINField/types.d.ts +5 -0
- package/dist/types/components/internal/StockISINField/validate.d.ts +3 -0
- package/dist/types/components/internal/Summary/Summary.d.ts +1 -1
- package/dist/types/components/internal/Summary/index.d.ts +1 -0
- package/dist/types/components/internal/Summary/types.d.ts +3 -1
- package/dist/types/components/internal/TaxId/rules.d.ts +2 -1
- package/dist/types/components/internal/TaxInformationField/TaxInformationField.d.ts +4 -0
- package/dist/types/components/internal/TaxInformationField/index.d.ts +1 -0
- package/dist/types/components/internal/TaxInformationField/types.d.ts +13 -0
- package/dist/types/components/internal/TaxInformationField/validate.d.ts +4 -0
- package/dist/types/components/internal/TradingNameField/TradingNameField.d.ts +3 -0
- package/dist/types/components/internal/TradingNameField/index.d.ts +1 -0
- package/dist/types/components/internal/TradingNameField/types.d.ts +8 -0
- package/dist/types/components/internal/TradingNameField/validate.d.ts +3 -0
- package/dist/types/components/internal/VatNumber/types.d.ts +3 -6
- package/dist/types/components/internal/VatNumber/validate.d.ts +2 -1
- package/dist/types/components/internal/VatNumber/vatNumberValidation.d.ts +4 -0
- package/dist/types/components/internal/VatNumberField/VatNumberField.d.ts +3 -0
- package/dist/types/components/internal/VatNumberField/index.d.ts +1 -0
- package/dist/types/components/internal/VatNumberField/types.d.ts +11 -0
- package/dist/types/components/internal/VatNumberField/validate.d.ts +4 -0
- package/dist/types/core/Context/AuthContext/AuthContext.d.ts +0 -1
- package/dist/types/core/Context/AuthContext/AuthProvider.d.ts +5 -2
- package/dist/types/core/Context/ConfigurationApiContext/ConfigurationApiContext.d.ts +3 -7
- package/dist/types/core/Context/ConfigurationApiContext/getEmbeddedApi.d.ts +1 -2
- package/dist/types/core/Context/CoreProvider.d.ts +2 -1
- package/dist/types/core/Context/ExperimentContext/types.d.ts +6 -2
- package/dist/types/core/Context/SettingsContext/types.d.ts +6 -2
- package/dist/types/core/Context/StateContext/StateProvider.d.ts +8 -4
- package/dist/types/core/Context/StateContext/types.d.ts +9 -7
- package/dist/types/core/Context/StateContext/useGlobalData.d.ts +7 -5
- package/dist/types/core/SDKValidation/index.d.ts +1 -1
- package/dist/types/core/Services/componentApi/create-legal-entity.d.ts +3 -0
- package/dist/types/core/Services/componentApi/delete-transferInstrument.d.ts +3 -0
- package/dist/types/core/Services/componentApi/get-address.d.ts +3 -0
- package/dist/types/core/Services/componentApi/get-bankVerification-vendor.d.ts +1 -1
- package/dist/types/core/Services/componentApi/get-idverification-token.d.ts +3 -0
- package/dist/types/core/Services/componentApi/get-supported-countries.d.ts +3 -0
- package/dist/types/core/Services/componentApi/idVerification-startcheck.d.ts +3 -0
- package/dist/types/core/Services/componentApi/index.d.ts +4 -1
- package/dist/types/core/Services/componentApi/search-address.d.ts +3 -0
- package/dist/types/core/Services/componentApi/update-legal-entity.d.ts +3 -0
- package/dist/types/core/Services/componentApi/validate-phone-number.d.ts +3 -0
- package/dist/types/core/Services/componentApi/verify-id-number.d.ts +3 -0
- package/dist/types/core/Services/http.d.ts +1 -0
- package/dist/types/core/Services/kycExternalApi/account-identification.d.ts +4 -0
- package/dist/types/core/Services/kycExternalApi/index.d.ts +1 -5
- package/dist/types/core/Services/session.d.ts +5 -0
- package/dist/types/core/Services/types.d.ts +1 -2
- package/dist/types/core/Services/utils.d.ts +3 -0
- package/dist/types/core/constants.d.ts +1 -0
- package/dist/types/core/core.d.ts +2 -1
- package/dist/types/core/errorMapping.d.ts +3 -1
- package/dist/types/core/hooks/introduction/useCanSeeIntroduction.d.ts +5 -0
- package/dist/types/core/hooks/introduction/useHasSeenIntroduction.d.ts +7 -0
- package/dist/types/core/hooks/introduction/useIntroductionScreens.d.ts +8 -0
- package/dist/types/core/hooks/introduction/useShouldShowIntroduction.d.ts +5 -0
- package/dist/types/core/hooks/types.d.ts +1 -0
- package/dist/types/core/hooks/useAccountHolder.d.ts +2 -0
- package/dist/types/core/hooks/useAllowedCountries.d.ts +2 -0
- package/dist/types/core/hooks/useAsyncAccountDetailsValidationRules.d.ts +3 -0
- package/dist/types/core/hooks/useBankConfigurationHandlers.d.ts +1 -1
- package/dist/types/core/hooks/useBusinessSetup.d.ts +22 -0
- package/dist/types/core/hooks/useBusinessTypeSelection.d.ts +2 -0
- package/dist/types/core/hooks/useCompanySearch/index.d.ts +1 -0
- package/dist/types/core/hooks/useCompanySearch/types.d.ts +42 -0
- package/dist/types/core/hooks/useCompanySearch/useCompanySearch.d.ts +5 -0
- package/dist/types/core/hooks/useCompanySearchTaskSubmit.d.ts +33 -0
- package/dist/types/core/hooks/useComponentApi.d.ts +7 -0
- package/dist/types/core/hooks/useDataMissingRemediations.d.ts +18 -0
- package/dist/types/core/hooks/useEnableNewEntryFlow.d.ts +1 -0
- package/dist/types/core/hooks/useExemptSettlor.d.ts +1 -1
- package/dist/types/core/hooks/useForm/types.d.ts +34 -10
- package/dist/types/core/hooks/useForm/useForm.d.ts +2 -1
- package/dist/types/core/hooks/useForm/utils.d.ts +12 -1
- package/dist/types/core/hooks/useFormComposer.d.ts +4 -5
- package/dist/types/core/hooks/useInterval.d.ts +4 -0
- package/dist/types/core/hooks/useIsElementVisible.d.ts +1 -0
- package/dist/types/core/hooks/useLegalEntityType.d.ts +6 -0
- package/dist/types/core/hooks/useLocalStorage.d.ts +5 -2
- package/dist/types/core/hooks/useScenarioConfiguration.d.ts +3 -1
- package/dist/types/core/models/api/accountIdentification.d.ts +1 -1
- package/dist/types/core/models/api/attachment.d.ts +3 -2
- package/dist/types/core/models/api/capability.d.ts +1 -1
- package/dist/types/core/models/api/company-search.d.ts +17 -35
- package/dist/types/core/models/api/individual.d.ts +1 -0
- package/dist/types/core/models/api/legal-entity.d.ts +3 -2
- package/dist/types/core/models/api/organization.d.ts +8 -8
- package/dist/types/core/models/api/transfer-instrument-reference.d.ts +2 -2
- package/dist/types/core/models/api/transfer-instrument.d.ts +5 -0
- package/dist/types/core/models/api/trusted-transferInstrument.d.ts +1 -0
- package/dist/types/core/models/api/verification-error.d.ts +2 -2
- package/dist/types/core/models/company.d.ts +7 -0
- package/dist/types/core/models/country-code.d.ts +1 -1
- package/dist/types/core/models/country-config.d.ts +9 -5
- package/dist/types/core/models/currency.d.ts +6 -3
- package/dist/types/core/models/decision-maker.d.ts +1 -1
- package/dist/types/core/models/errors/entity-problems.d.ts +4 -4
- package/dist/types/core/models/errors/validation-error.d.ts +4 -0
- package/dist/types/core/models/field-configurations.d.ts +5 -3
- package/dist/types/core/models/file.d.ts +8 -0
- package/dist/types/core/models/form-rules.d.ts +1 -0
- package/dist/types/core/models/form.d.ts +1 -0
- package/dist/types/core/models/identity.d.ts +3 -1
- package/dist/types/core/models/payout-account.d.ts +1 -1
- package/dist/types/core/models/province-code.d.ts +47 -0
- package/dist/types/core/models/state-code.d.ts +32 -1
- package/dist/types/core/process-field-configurations.d.ts +4 -2
- package/dist/types/core/types.d.ts +2 -1
- package/dist/types/core/user-events.d.ts +7 -6
- package/dist/types/language/Language.d.ts +3 -5
- package/dist/types/language/config.d.ts +221 -73
- package/dist/types/language/types.d.ts +5 -0
- package/dist/types/utils/accountHolderUtils.d.ts +4 -2
- package/dist/types/utils/api/documentUtils.d.ts +6 -4
- package/dist/types/utils/api/processCapabilitites.d.ts +3 -1
- package/dist/types/utils/company-util.d.ts +2 -1
- package/dist/types/utils/decision-maker-roles.d.ts +10 -19
- package/dist/types/utils/dropin-utils.d.ts +6 -6
- package/dist/types/utils/entity-association-util.d.ts +23 -17
- package/dist/types/utils/entity-status-util.d.ts +1 -3
- package/dist/types/utils/entriesOf.d.ts +1 -0
- package/dist/types/utils/file.d.ts +3 -3
- package/dist/types/utils/formUtils.d.ts +16 -8
- package/dist/types/utils/genUtils.d.ts +13 -10
- package/dist/types/utils/get-name.d.ts +2 -2
- package/dist/types/utils/get-task-status.d.ts +3 -3
- package/dist/types/utils/getFieldsWithExistingData.d.ts +2 -1
- package/dist/types/utils/makeArrayOfRepeatedObjects.d.ts +1 -0
- package/dist/types/utils/makeSelectItemForRole.d.ts +4 -0
- package/dist/types/utils/mapping/companySearch/index.d.ts +3 -0
- package/dist/types/utils/mapping/companySearch/mapCompanyDataResponseToFormSchema.d.ts +3 -0
- package/dist/types/utils/mapping/companySearch/mapCompanySearchSchemaToLegalEntity.d.ts +5 -0
- package/dist/types/utils/mapping/companySearch/mapLegalEntityToCompanySearchSchema.d.ts +4 -0
- package/dist/types/utils/mapping/componentApiMapping.d.ts +576 -14
- package/dist/types/utils/mapping/documentGuidanceMap.d.ts +1 -1
- package/dist/types/utils/mapping/mapping.d.ts +7 -3
- package/dist/types/utils/mapping/trustMembers/getTrustMembers.d.ts +1 -0
- package/dist/types/utils/masking/displayValueToPureValue.d.ts +10 -0
- package/dist/types/utils/masking/maskHelpers.d.ts +6 -0
- package/dist/types/utils/masking/maskTypes.d.ts +15 -0
- package/dist/types/utils/masking/masks/businessRegistrationNumberMasks.d.ts +256 -0
- package/dist/types/utils/masking/masks/vatNumberMasks.d.ts +4 -0
- package/dist/types/utils/masking/matchAgainstMask.d.ts +28 -0
- package/dist/types/utils/masking/transformers/types.d.ts +1 -0
- package/dist/types/utils/masking/transformers/uppercase.d.ts +2 -0
- package/dist/types/utils/payout-account-util.d.ts +9 -0
- package/dist/types/utils/perCountry.d.ts +5 -0
- package/dist/types/utils/regex/basePatterns.d.ts +1 -2
- package/dist/types/utils/regex/businessRegistrationNumberPatterns.d.ts +160 -2
- package/dist/types/utils/regex/countryIdNumberPatterns.d.ts +3 -0
- package/dist/types/utils/regex/index.d.ts +0 -2
- package/dist/types/utils/regex/patternValidators.d.ts +3 -0
- package/dist/types/utils/regex/vatNumberPatterns.d.ts +5 -3
- package/dist/types/utils/remove-object-empty-values.d.ts +1 -1
- package/dist/types/utils/roleMetadata.d.ts +13 -0
- package/dist/types/utils/sanitizeHtml.d.ts +3 -0
- package/dist/types/utils/scroll.d.ts +1 -1
- package/dist/types/utils/trust-util.d.ts +4 -25
- package/dist/types/utils/trustMembers/handlers/addOrUpdateAssociatedTrustMember.d.ts +6 -1
- package/dist/types/utils/trustMembers/handlers/createExemptSettlor.d.ts +4 -0
- package/dist/types/utils/trustMembers/handlers/updateExemptSettlorName.d.ts +4 -0
- package/dist/types/utils/useForwardRef.d.ts +2 -1
- package/dist/types/utils/validation/types.d.ts +10 -13
- package/dist/types/utils/validatorUtils.d.ts +6 -0
- package/package.json +8 -5
- package/dist/es/NZ-12ed2cb9.mjs +0 -47
- package/dist/types/components/EmbeddedDropins/TransferInstrumentComponent/TransferInstrumentComponent.d.ts +0 -10
- package/dist/types/components/PersonalDetails/component/IdentityComponent/IdentityAu/component/ProofOfIdentityCard.d.ts +0 -15
- package/dist/types/components/TaskIntros/TaskIntro.d.ts +0 -8
- package/dist/types/components/TaskIntros/TaskIntros.d.ts +0 -10
- package/dist/types/components/TaskIntros/copy.d.ts +0 -14
- package/dist/types/components/TaskIntros/types.d.ts +0 -8
- package/dist/types/components/internal/BusinessRegistrationNumber/formatters.d.ts +0 -4
- package/dist/types/components/internal/BusinessRegistrationNumber/validate.d.ts +0 -20
- package/dist/types/components/internal/ContractViewer/components/Chapter/Chapter.d.ts +0 -2
- package/dist/types/components/internal/ContractViewer/components/ContentElements/ContentElements.d.ts +0 -2
- package/dist/types/components/internal/ContractViewer/components/InternalReference/InternalReference.d.ts +0 -2
- package/dist/types/components/internal/ContractViewer/components/List/List.d.ts +0 -2
- package/dist/types/components/internal/ContractViewer/components/Paragraph/Paragraph.d.ts +0 -3
- package/dist/types/components/internal/ContractViewer/components/Section/Section.d.ts +0 -3
- package/dist/types/components/internal/ContractViewer/components/Table/Table.d.ts +0 -3
- package/dist/types/components/internal/ContractViewer/components/Text/Text.d.ts +0 -3
- package/dist/types/components/internal/ContractViewer/components/Weblink/Weblink.d.ts +0 -3
- package/dist/types/core/Services/auth/refresh-sdkToken.d.ts +0 -6
- package/dist/types/core/Services/kycExternalApi/company-deep-search.d.ts +0 -5
- package/dist/types/core/Services/kycExternalApi/company-index-search.d.ts +0 -5
- package/dist/types/core/Services/kycExternalApi/get-company-data.d.ts +0 -5
- package/dist/types/core/Services/kycExternalApi/refresh-company-data.d.ts +0 -5
- package/dist/types/core/Services/kycExternalApi/verify-tin.d.ts +0 -5
- package/dist/types/core/hooks/taskIntros.d.ts +0 -10
- package/dist/types/core/hooks/useSdkToken.d.ts +0 -5
- package/dist/types/openbankingsdk/OpenBankingSDK.d.ts +0 -14
- package/dist/types/openbankingsdk/types.d.ts +0 -22
- package/dist/types/utils/escapeHtml.d.ts +0 -3
- package/dist/types/utils/regex/trustRegistrationNumberPatterns.d.ts +0 -2
- package/dist/types/utils/regex/types.d.ts +0 -30
- /package/dist/types/core/Services/componentApi/{get-transfer-intsrument.d.ts → get-transfer-instrument.d.ts} +0 -0
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { CountryCode } from '../country-code';
|
|
2
|
-
import { Address } from './address';
|
|
3
|
-
import { CompanyTypesValue } from './company-types-value';
|
|
4
|
-
import { Phone } from './phone';
|
|
1
|
+
import type { CountryCode } from '../country-code';
|
|
2
|
+
import type { Address } from './address';
|
|
3
|
+
import type { CompanyTypesValue } from './company-types-value';
|
|
4
|
+
import type { Phone } from './phone';
|
|
5
5
|
export interface Organization {
|
|
6
|
+
legalName: string;
|
|
7
|
+
registeredAddress: Address;
|
|
6
8
|
description?: string;
|
|
7
9
|
doingBusinessAs?: string;
|
|
8
10
|
email?: string;
|
|
9
|
-
legalName: string;
|
|
10
11
|
phone?: Phone;
|
|
11
12
|
principalPlaceOfBusiness?: Address;
|
|
12
|
-
registeredAddress: Address;
|
|
13
13
|
registrationNumber?: string;
|
|
14
14
|
stockData?: {
|
|
15
15
|
marketIdentifier: string;
|
|
16
16
|
stockNumber: string;
|
|
17
|
-
tickerSymbol
|
|
17
|
+
tickerSymbol?: string;
|
|
18
18
|
};
|
|
19
19
|
taxInformation?: TaxInformation[];
|
|
20
20
|
vatNumber?: string;
|
|
21
21
|
vatAbsenceReason?: VatAbsenceReason;
|
|
22
|
-
type?: CompanyTypesValue;
|
|
22
|
+
type?: CompanyTypesValue | '';
|
|
23
23
|
}
|
|
24
24
|
export declare const vatAbsenceReasons: readonly ["industryExemption", "belowTaxThreshold"];
|
|
25
25
|
export type VatAbsenceReason = (typeof vatAbsenceReasons)[number];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TaskStatus } from '../../../components/TaskList/types';
|
|
2
2
|
export interface TransferInstrumentReference {
|
|
3
3
|
transferInstrument: {
|
|
4
4
|
accountIdentifier: string;
|
|
5
5
|
id: string;
|
|
6
6
|
trustedSource: boolean;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
status: keyof typeof TaskStatus;
|
|
9
9
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { CountryCode } from '../country-code';
|
|
2
2
|
import { AccountIdentification } from './accountIdentification';
|
|
3
|
+
import { Capability, CapabilityName } from './capability';
|
|
3
4
|
import { DocumentDetail } from './documentDetail';
|
|
5
|
+
import { Problem } from './problem';
|
|
4
6
|
export interface BankAccount {
|
|
5
7
|
accountIdentification: AccountIdentification;
|
|
6
8
|
countryCode: CountryCode;
|
|
@@ -18,9 +20,12 @@ export interface TransferInstrument {
|
|
|
18
20
|
bankAccount: BankAccount;
|
|
19
21
|
type: TransferInstrumentType;
|
|
20
22
|
documentDetails?: DocumentDetail[];
|
|
23
|
+
capabilities?: Partial<Record<CapabilityName, Capability>>;
|
|
24
|
+
problems?: Problem[];
|
|
21
25
|
}
|
|
22
26
|
export interface ExistingTransferInstrument extends TransferInstrument {
|
|
23
27
|
id: string;
|
|
28
|
+
type: TransferInstrumentType;
|
|
24
29
|
}
|
|
25
30
|
export declare enum TransferInstrumentType {
|
|
26
31
|
BANK_ACCOUNT = "bankAccount",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AccountVerificationResponse } from '../../../components/BankVerification/types';
|
|
2
2
|
export type CreateTrustedTransferInstrumentResponse = {
|
|
3
|
+
verificationReference: string;
|
|
3
4
|
accounts: AccountVerificationResponse[];
|
|
4
5
|
};
|
|
5
6
|
export type BankVerificationErrorResponse = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ErrorCode } from '../errors/error-message';
|
|
2
|
-
import {
|
|
2
|
+
import { CapabilityName } from './capability';
|
|
3
3
|
import { RemediatingAction } from './remediating-action';
|
|
4
4
|
export declare enum VerificationErrorType {
|
|
5
5
|
DATA_MISSING = "dataMissing",
|
|
@@ -9,7 +9,7 @@ export declare enum VerificationErrorType {
|
|
|
9
9
|
REJECTED = "rejected"
|
|
10
10
|
}
|
|
11
11
|
export interface VerificationError {
|
|
12
|
-
capabilities?:
|
|
12
|
+
capabilities?: CapabilityName[];
|
|
13
13
|
code: ErrorCode;
|
|
14
14
|
message: string;
|
|
15
15
|
type: VerificationErrorType;
|
|
@@ -10,10 +10,17 @@ interface CompanyTypeModel {
|
|
|
10
10
|
export declare const companyBase: {
|
|
11
11
|
[key: string]: ScenarioFieldSettings;
|
|
12
12
|
};
|
|
13
|
+
export declare const companySearchBase: {
|
|
14
|
+
[key: string]: ScenarioFieldSettings;
|
|
15
|
+
};
|
|
13
16
|
export declare const taxIdBase: {
|
|
14
17
|
[key: string]: ScenarioFieldSettings;
|
|
15
18
|
};
|
|
19
|
+
export declare const taxInformationBase: {
|
|
20
|
+
[key: string]: ScenarioFieldSettings;
|
|
21
|
+
};
|
|
16
22
|
export declare const companyTypes: readonly CompanyTypeModel[];
|
|
17
23
|
export declare const fieldsPerScenario: ScenarioFields<typeof companyBase>;
|
|
24
|
+
export declare const companySearchFieldsPerScenario: ScenarioFields<typeof companySearchBase>;
|
|
18
25
|
export declare const countryConfig: CountryConfig;
|
|
19
26
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type CountryCode = `${CountryCodes}`;
|
|
1
2
|
export declare const enum CountryCodes {
|
|
2
3
|
Afghanistan = "AF",
|
|
3
4
|
AlandIslands = "AX",
|
|
@@ -246,4 +247,3 @@ export declare const enum CountryCodes {
|
|
|
246
247
|
Zambia = "ZM",
|
|
247
248
|
Zimbabwe = "ZW"
|
|
248
249
|
}
|
|
249
|
-
export type CountryCode = `${CountryCodes}`;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import { TranslationKey } from '../../language/types';
|
|
1
|
+
import { Translatable, TranslationKey } from '../../language/types';
|
|
2
|
+
import { ValidatorRule } from '../../utils/validation/types';
|
|
3
|
+
import { MaskSettings } from '../hooks/useForm';
|
|
2
4
|
import { CountryCode } from './country-code';
|
|
3
|
-
export type CountryConfig = Partial<Record<CountryCode, {
|
|
4
|
-
[field: string]:
|
|
5
|
+
export type CountryConfig<Options = unknown> = Partial<Record<CountryCode, {
|
|
6
|
+
[field: string]: FieldMetadata<Record<string, string>, string> | ((options: Options) => FieldMetadata<Record<string, string>, string>);
|
|
5
7
|
}>>;
|
|
6
|
-
export interface
|
|
8
|
+
export interface FieldMetadata<FormSchema, FieldName extends keyof FormSchema> {
|
|
7
9
|
label?: TranslationKey;
|
|
8
10
|
placeholder?: TranslationKey;
|
|
9
|
-
helperText?:
|
|
11
|
+
helperText?: Translatable;
|
|
12
|
+
mask?: MaskSettings;
|
|
13
|
+
validators?: ValidatorRule<FormSchema[FieldName], FormSchema> | ValidatorRule<FormSchema[FieldName], FormSchema>[];
|
|
10
14
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare enum Currency {
|
|
2
|
+
AED = "AED",
|
|
2
3
|
AUD = "AUD",
|
|
3
4
|
BGN = "BGN",
|
|
4
5
|
BRL = "BRL",
|
|
@@ -9,13 +10,15 @@ export declare enum Currency {
|
|
|
9
10
|
EUR = "EUR",
|
|
10
11
|
GBP = "GBP",
|
|
11
12
|
HKD = "HKD",
|
|
12
|
-
HUF = "HUF",
|
|
13
13
|
HRK = "HRK",
|
|
14
|
-
|
|
14
|
+
HUF = "HUF",
|
|
15
|
+
MXN = "MXN",
|
|
16
|
+
MYR = "MYR",
|
|
15
17
|
NOK = "NOK",
|
|
16
18
|
NZD = "NZD",
|
|
19
|
+
PLN = "PLN",
|
|
17
20
|
RON = "RON",
|
|
18
|
-
SGD = "SGD",
|
|
19
21
|
SEK = "SEK",
|
|
22
|
+
SGD = "SGD",
|
|
20
23
|
USD = "USD"
|
|
21
24
|
}
|
|
@@ -46,7 +46,7 @@ export interface DecisionMakerRequirement {
|
|
|
46
46
|
min: number;
|
|
47
47
|
max: number;
|
|
48
48
|
}
|
|
49
|
-
export declare const getDecisionMakerRequirements: (country: string) => readonly DecisionMakerRequirement[];
|
|
49
|
+
export declare const getDecisionMakerRequirements: (country: string | undefined) => readonly DecisionMakerRequirement[];
|
|
50
50
|
export declare function getAvailableDecisionMakerRoleTypes(country: string): {
|
|
51
51
|
roleType: DecisionMakerType;
|
|
52
52
|
min: number;
|
|
@@ -5,12 +5,12 @@ import { VerificationError } from '../api/verification-error';
|
|
|
5
5
|
import { FormVerificationErrors } from './form-verification-errors';
|
|
6
6
|
import { Remediation, RemediationCode } from './remediation';
|
|
7
7
|
export type EntityProblems = {
|
|
8
|
-
verificationErrors
|
|
8
|
+
verificationErrors?: {
|
|
9
9
|
[formId: string]: FormVerificationErrors;
|
|
10
10
|
};
|
|
11
|
-
remediationActions
|
|
12
|
-
status
|
|
13
|
-
missingData
|
|
11
|
+
remediationActions?: Partial<Record<RemediationCode, Remediation>>;
|
|
12
|
+
status?: TaskStatus;
|
|
13
|
+
missingData?: VerificationError[];
|
|
14
14
|
validationErrors?: {
|
|
15
15
|
[formId: string]: {
|
|
16
16
|
[fieldName: string]: boolean;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PerCountry } from '../../utils/perCountry';
|
|
2
|
+
import { FieldMetadata } from './country-config';
|
|
2
3
|
import { ScenarioFieldSettings } from './scenario-fields';
|
|
3
|
-
|
|
4
|
-
}
|
|
4
|
+
type FieldConfiguration<FieldType> = ScenarioFieldSettings<FieldType>;
|
|
5
5
|
export type FieldConfigurations<FormSchema> = {
|
|
6
6
|
[key in keyof FormSchema]: FieldConfiguration<FormSchema[key]>;
|
|
7
7
|
};
|
|
8
|
+
export type PerCountryFieldConfig<FormSchema, FieldName extends keyof FormSchema, Params extends object> = PerCountry<FieldMetadata<FormSchema, FieldName> | ((params: Params) => FieldMetadata<FormSchema, FieldName>)>;
|
|
9
|
+
export declare const resolveFieldMetadata: <FormSchema, FieldName extends keyof FormSchema, Params extends object>(countryEntry: FieldMetadata<FormSchema, FieldName> | ((params: Params) => FieldMetadata<FormSchema, FieldName>), params: Params, defaultMetadata: FieldMetadata<FormSchema, FieldName>) => FieldMetadata<FormSchema, FieldName>;
|
|
8
10
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface ExistingFile {
|
|
2
|
+
name: string;
|
|
3
|
+
existing: true;
|
|
4
|
+
}
|
|
5
|
+
export type FileSchema = ExistingFile | File;
|
|
6
|
+
export declare const isExistingFile: (file: FileSchema) => file is ExistingFile;
|
|
7
|
+
export declare const isNewlyUploadedFile: (file: FileSchema) => file is File;
|
|
8
|
+
export {};
|
|
@@ -9,6 +9,7 @@ export interface FormRulesParams<TLDS extends TopLevelDataSchema> {
|
|
|
9
9
|
taskType: TaskTypes;
|
|
10
10
|
isSettingEnabled?: (setting: SettingName) => boolean;
|
|
11
11
|
requiredFields?: Partial<PayoutRequiredFields>;
|
|
12
|
+
isEmbeddedDropin?: boolean;
|
|
12
13
|
}
|
|
13
14
|
export type FormRules<TLDS extends TopLevelDataSchema> = (params: FormRulesParams<TLDS>) => {
|
|
14
15
|
[ruleName: string]: () => string | boolean | undefined;
|
|
@@ -15,7 +15,9 @@ export declare const nationality: {
|
|
|
15
15
|
[key: string]: ScenarioFieldSettings;
|
|
16
16
|
};
|
|
17
17
|
export declare const fieldsPerScenario: {
|
|
18
|
-
L0:
|
|
18
|
+
L0: {
|
|
19
|
+
[key: string]: ScenarioFieldSettings<unknown>;
|
|
20
|
+
};
|
|
19
21
|
L1: {
|
|
20
22
|
[key: string]: ScenarioFieldSettings<unknown>;
|
|
21
23
|
};
|
|
@@ -7,5 +7,5 @@ import { CountryConfig } from './country-config';
|
|
|
7
7
|
export declare const payoutFieldsMapping: Record<string, keyof PayoutAccountSchema>;
|
|
8
8
|
export declare const maskedPayoutFields: Array<keyof PayoutAccountSchema>;
|
|
9
9
|
export declare const countryConfig: CountryConfig;
|
|
10
|
-
export declare const getValidatorRules: (validationRule: ValidationRule) => ValidatorRule<string, PayoutAccountSchema> | undefined;
|
|
10
|
+
export declare const getValidatorRules: (validationRule: ValidationRule, country: CountryCode) => ValidatorRule<string, PayoutAccountSchema> | undefined;
|
|
11
11
|
export declare const defaultPayoutAccountFormat: Partial<Record<CountryCode, BankAccountFormatType>>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export type ProvinceCode = ProvinceCodeAU | ProvinceCodeCA | ProvinceCodeNZ;
|
|
2
|
+
export type ProvinceCodeAU = `${ProvinceCodesAU}`;
|
|
3
|
+
export declare const enum ProvinceCodesAU {
|
|
4
|
+
AustralianCapitalTerritory = "ACT",
|
|
5
|
+
NewSouthWales = "NSW",
|
|
6
|
+
NorthernTerritory = "NT",
|
|
7
|
+
Queensland = "QLD",
|
|
8
|
+
SouthAustralia = "SA",
|
|
9
|
+
Tasmania = "TAS",
|
|
10
|
+
Victoria = "VIC",
|
|
11
|
+
WesternAustralia = "WA"
|
|
12
|
+
}
|
|
13
|
+
export type ProvinceCodeCA = `${ProvinceCodesCA}`;
|
|
14
|
+
export declare const enum ProvinceCodesCA {
|
|
15
|
+
Alberta = "AB",
|
|
16
|
+
BritishColumbia = "BC",
|
|
17
|
+
Manitoba = "MB",
|
|
18
|
+
NewBrunswick = "NB",
|
|
19
|
+
NewfoundlandAndLabrador = "NL",
|
|
20
|
+
NorthwestTerritories = "NT",
|
|
21
|
+
NovaScotia = "NS",
|
|
22
|
+
Nunavut = "NU",
|
|
23
|
+
Ontario = "ON",
|
|
24
|
+
PrinceEdwardIsland = "PE",
|
|
25
|
+
Quebec = "QC",
|
|
26
|
+
Saskatchewan = "SK",
|
|
27
|
+
Yukon = "YT"
|
|
28
|
+
}
|
|
29
|
+
export type ProvinceCodeNZ = `${ProvinceCodesNZ}`;
|
|
30
|
+
export declare const enum ProvinceCodesNZ {
|
|
31
|
+
Auckland = "AUK",
|
|
32
|
+
BayOfPlenty = "BOP",
|
|
33
|
+
Canterbury = "CAN",
|
|
34
|
+
Gisborne = "GIS",
|
|
35
|
+
HawkesBay = "HKB",
|
|
36
|
+
Marlborough = "MBH",
|
|
37
|
+
ManawatuWanganui = "MWT",
|
|
38
|
+
Nelson = "NSN",
|
|
39
|
+
Otago = "OTA",
|
|
40
|
+
SouthLand = "STL",
|
|
41
|
+
Tasman = "TAS",
|
|
42
|
+
Taranaki = "TKI",
|
|
43
|
+
Waikato = "WKO",
|
|
44
|
+
Wellington = "WGN",
|
|
45
|
+
WestCoast = "WTC",
|
|
46
|
+
ChathamIslandsTerritory = "CIT"
|
|
47
|
+
}
|
|
@@ -1,3 +1,35 @@
|
|
|
1
|
+
export type StateCode = StateCodeUS | StateCodeBR;
|
|
2
|
+
export type StateCodeBR = `${StateCodesBR}`;
|
|
3
|
+
export declare const enum StateCodesBR {
|
|
4
|
+
Acre = "AC",
|
|
5
|
+
Alagoas = "AL",
|
|
6
|
+
Amazonas = "AM",
|
|
7
|
+
Amapá = "AP",
|
|
8
|
+
Bahia = "BA",
|
|
9
|
+
Ceará = " CE",
|
|
10
|
+
DistritoFederal = "DF",
|
|
11
|
+
EspíritoSanto = "ES",
|
|
12
|
+
Goiás = "GO",
|
|
13
|
+
Maranhão = "MA",
|
|
14
|
+
MinasGerais = "MG",
|
|
15
|
+
MatoGrossodoSul = "MS",
|
|
16
|
+
MatoGrosso = "MT",
|
|
17
|
+
Pará = "PA",
|
|
18
|
+
Paraíba = "PB",
|
|
19
|
+
Pernambuco = "PE",
|
|
20
|
+
Piauí = "PI",
|
|
21
|
+
Paraná = "PR",
|
|
22
|
+
RiodeJaneiro = "RJ",
|
|
23
|
+
RioGrandedoNorte = "RN",
|
|
24
|
+
Rondônia = "RO",
|
|
25
|
+
Roraima = "RR",
|
|
26
|
+
RioGrandedoSul = "RS",
|
|
27
|
+
SantaCatarina = "SC",
|
|
28
|
+
Sergipe = "SE",
|
|
29
|
+
SãoPaulo = "SP",
|
|
30
|
+
Tocantins = "TO"
|
|
31
|
+
}
|
|
32
|
+
export type StateCodeUS = `${StateCodesUS}`;
|
|
1
33
|
export declare const enum StateCodesUS {
|
|
2
34
|
Alabama = "AL",
|
|
3
35
|
Alaska = "AK",
|
|
@@ -51,4 +83,3 @@ export declare const enum StateCodesUS {
|
|
|
51
83
|
Wisconsin = "WI",
|
|
52
84
|
Wyoming = "WY"
|
|
53
85
|
}
|
|
54
|
-
export type StateCodeUS = `${StateCodesUS}`;
|
|
@@ -4,11 +4,13 @@ import { AnyTLDSFieldName } from '../utils/getFieldsWithExistingData';
|
|
|
4
4
|
import { ValidatorRules } from '../utils/validation/types';
|
|
5
5
|
import { BaseOuterFormProps } from './hooks/useForm';
|
|
6
6
|
import { VerificationError } from './models/api/verification-error';
|
|
7
|
+
import { CountryCode } from './models/country-code';
|
|
7
8
|
import { Remediation } from './models/errors/remediation';
|
|
8
9
|
import { FieldConfigurations } from './models/field-configurations';
|
|
9
10
|
import { FormList } from './models/form';
|
|
10
11
|
export declare function parseIndividualScenarios<FormSchema>(scenario: any, country: any): FieldConfigurations<FormSchema>;
|
|
11
12
|
export declare function parseCompanyScenarios<FormSchema>(scenario: any, country: any): FieldConfigurations<FormSchema>;
|
|
13
|
+
export declare function parseCompanySearchScenarios<FormSchema>(scenario: any, country: CountryCode): FieldConfigurations<FormSchema>;
|
|
12
14
|
export declare function parseTrustScenarios<FormSchema>(scenario: any, country: any): FieldConfigurations<FormSchema>;
|
|
13
15
|
export declare function parseSolePropScenarios(scenario: any, country: any): FieldConfigurations<SolePropSchema>;
|
|
14
16
|
export declare function parsePayoutScenarios({ requiredFields, country, bankVerificationAvailable, }: {
|
|
@@ -16,7 +18,7 @@ export declare function parsePayoutScenarios({ requiredFields, country, bankVeri
|
|
|
16
18
|
country: any;
|
|
17
19
|
bankVerificationAvailable: any;
|
|
18
20
|
}): Partial<FieldConfigurations<PayoutAccountSchema>>;
|
|
19
|
-
type PropsFromConfiguration<FormSchema> = Required<Pick<BaseOuterFormProps<FormSchema>, 'verifyFields' | 'requiredFields' | 'placeholders' | 'helperText' | 'optionalFields' | 'labels' | 'maskedFields'>> & {
|
|
21
|
+
type PropsFromConfiguration<FormSchema> = Required<Pick<BaseOuterFormProps<FormSchema>, 'verifyFields' | 'requiredFields' | 'placeholders' | 'helperText' | 'masks' | 'optionalFields' | 'labels' | 'maskedFields'>> & {
|
|
20
22
|
validators: ValidatorRules<FormSchema>;
|
|
21
23
|
allFields: {
|
|
22
24
|
[Field in keyof FormSchema]: FormSchema[Field];
|
|
@@ -62,5 +64,5 @@ type PropsFromConfiguration<FormSchema> = Required<Pick<BaseOuterFormProps<FormS
|
|
|
62
64
|
* }
|
|
63
65
|
* ```
|
|
64
66
|
*/
|
|
65
|
-
export declare function getPropsFromConfigurations<FormSchema extends object>(scenarioConfiguration: FieldConfigurations<FormSchema
|
|
67
|
+
export declare function getPropsFromConfigurations<FormSchema extends object>(scenarioConfiguration: FieldConfigurations<FormSchema> | undefined, forms: FormList, remediationActions: Remediation[], dataMissingErrors: VerificationError[], fieldsWithExistingData: AnyTLDSFieldName[], customRules?: {}, customLabels?: {}): PropsFromConfiguration<FormSchema>;
|
|
66
68
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CustomTranslations } from '../language/types';
|
|
2
|
+
import { TokenResponse } from './Context/AuthContext/AuthProvider';
|
|
2
3
|
import { CountryCode } from './models/country-code';
|
|
3
4
|
export interface CoreOptions {
|
|
4
5
|
/**
|
|
@@ -22,5 +23,5 @@ export interface CoreOptions {
|
|
|
22
23
|
* JWT token used for embedded Dropin authentication
|
|
23
24
|
*/
|
|
24
25
|
sdkToken?: string;
|
|
25
|
-
|
|
26
|
+
getSdkToken?(): Promise<TokenResponse>;
|
|
26
27
|
}
|
|
@@ -10,15 +10,16 @@ export interface UserEvent {
|
|
|
10
10
|
[key: string]: string | number | boolean | any[] | null;
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
type UserEventWithKey = UserEvent & {
|
|
14
|
+
key: string;
|
|
15
|
+
};
|
|
16
|
+
type EventType = 'track_pageview' | 'add_event' | 'start_event' | 'end_event';
|
|
17
|
+
type EventQueueItem = [EventType, string | UserEventWithKey];
|
|
18
|
+
export type UserEventCallback = (eventQueueItem: EventQueueItem) => void;
|
|
18
19
|
declare class UserEvents {
|
|
19
20
|
private readonly queue;
|
|
20
21
|
private readonly subscriptions;
|
|
21
|
-
protected add(...args:
|
|
22
|
+
protected add(...args: EventQueueItem[]): void;
|
|
22
23
|
protected notifySubscribers(): void;
|
|
23
24
|
/**
|
|
24
25
|
* Adds an analytics event. Optionally can include a payload.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomTranslations,
|
|
1
|
+
import { CustomTranslations, Translatable, Translations } from './types';
|
|
2
2
|
import { GetTranslationOptions } from './utils';
|
|
3
3
|
declare class Language {
|
|
4
4
|
private readonly supportedLocales;
|
|
@@ -14,11 +14,9 @@ declare class Language {
|
|
|
14
14
|
});
|
|
15
15
|
/**
|
|
16
16
|
* Returns a translated string from a key in the current {@link Language.locale}
|
|
17
|
-
* @
|
|
18
|
-
* @param options - Translation options
|
|
19
|
-
* @returns Translated string
|
|
17
|
+
* @returns Translated string in the user's locale
|
|
20
18
|
*/
|
|
21
|
-
get(
|
|
19
|
+
get(translatable: Translatable, translationOptions?: GetTranslationOptions): string;
|
|
22
20
|
/**
|
|
23
21
|
* Returns a localized string for a date
|
|
24
22
|
* @param date - Date to be localized
|