@adyen/kyc-components 3.0.0-beta.8 → 3.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/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 +17921 -11986
- 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/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 +15 -3
- package/dist/types/core/Context/SettingsContext/types.d.ts +20 -12
- 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
|
@@ -2,4 +2,4 @@ import { DocumentType } from '../../core/models/api/document';
|
|
|
2
2
|
/**
|
|
3
3
|
* Returns the appropriate prefix for the document guidance image based on api documentType.
|
|
4
4
|
*/
|
|
5
|
-
export declare const getDocumentGuidancePrefix: (documentType: DocumentType, isIcon?: boolean, isFront?: boolean) => "
|
|
5
|
+
export declare const getDocumentGuidancePrefix: (documentType: DocumentType, isIcon?: boolean, isFront?: boolean) => "id" | "passport" | "id-front" | "id-back" | "generic-document";
|
|
@@ -5,10 +5,12 @@ import { PayoutDetailsSchema } from '../../components/PayoutDetails/types';
|
|
|
5
5
|
import { PersonalDetailsSchema } from '../../components/PersonalDetails/types';
|
|
6
6
|
import { SolePropSchema } from '../../components/SoleProp/types';
|
|
7
7
|
import { TrustSchema } from '../../components/Trust/types';
|
|
8
|
+
import { Attachment, PageType } from '../../core/models/api/attachment';
|
|
8
9
|
import { Document } from '../../core/models/api/document';
|
|
9
10
|
import { Individual } from '../../core/models/api/individual';
|
|
10
11
|
import { ExistingLegalEntity, LegalEntity } from '../../core/models/api/legal-entity';
|
|
11
12
|
import { ExistingTransferInstrument, TransferInstrument } from '../../core/models/api/transfer-instrument';
|
|
13
|
+
import { FileSchema } from '../../core/models/file';
|
|
12
14
|
export declare const adjustIdentificationData: (data: PersonalDetailsSchema, apiData: Individual['identificationData']) => Individual['identificationData'];
|
|
13
15
|
/**
|
|
14
16
|
* Easy to use function for mapping transferInstrument response to payout account details component data
|
|
@@ -25,17 +27,19 @@ export declare const mapPayoutDetailsToTransferInstrument: ({ data, legalEntity,
|
|
|
25
27
|
data: PayoutDetailsSchema;
|
|
26
28
|
legalEntity: ExistingLegalEntity;
|
|
27
29
|
}) => TransferInstrument;
|
|
28
|
-
export declare const mapLegalEntityToIndividual: (legalEntity:
|
|
30
|
+
export declare const mapLegalEntityToIndividual: (legalEntity: ExistingLegalEntity, isChangingType: boolean) => IndividualSchema;
|
|
29
31
|
export declare const mapIndividualToLegalEntity: (data: IndividualSchema) => LegalEntity;
|
|
30
|
-
export declare const mapLegalEntityToCompany: (legalEntity:
|
|
32
|
+
export declare const mapLegalEntityToCompany: (legalEntity: ExistingLegalEntity, isChangingType: boolean) => CompanySchema;
|
|
31
33
|
export declare const mapCompanyToLegalEntity: (data: CompanySchema) => LegalEntity;
|
|
32
34
|
export declare const mapLegalEntityToTrust: (legalEntity: LegalEntity) => TrustSchema;
|
|
33
35
|
export declare const mapTrustToLegalEntity: (data: TrustSchema) => LegalEntity;
|
|
34
36
|
export declare const mapLegalEntityToSoleProp: (legalEntity: LegalEntity) => SolePropSchema;
|
|
35
37
|
export declare const mapSolePropToLegalEntity: (data: SolePropSchema) => LegalEntity;
|
|
36
38
|
export type IndividualDocumentFields = Pick<IndividualSchema, 'idDocument' | 'proofOfResidence' | 'proofOfNationalId'>;
|
|
37
|
-
export declare const
|
|
39
|
+
export declare const getPage: ({ attachments }: Document, pageType?: PageType) => Attachment;
|
|
40
|
+
export declare const getPageName: (document: Document, pageType?: PageType) => string;
|
|
38
41
|
export declare const mapIndividualDocumentToApiDocument: (data: IndividualSchema, entityId: string) => Promise<Document[]>;
|
|
42
|
+
export declare const mapExistingFile: (name: string) => FileSchema;
|
|
39
43
|
export declare const mapApiDocumentToIndividualDocuments: (entityId: string) => IndividualDocumentFields;
|
|
40
44
|
export declare const mapCompanyDocumentToApiDocument: (data: CompanySchema, entityId: string) => Promise<Document[]>;
|
|
41
45
|
export declare const mapApiDocumentToCompanyDocuments: (entityId: string) => CompanySchema;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { TrustMember } from '../../../components/TrustMembers/types';
|
|
2
2
|
import { ExistingLegalEntity } from '../../../core/models/api/legal-entity';
|
|
3
3
|
export declare const getTrustMembers: (trustLE: ExistingLegalEntity, rootLegalEntity: ExistingLegalEntity, exemptSettlorLE?: ExistingLegalEntity) => TrustMember[];
|
|
4
|
+
export declare const getRootTrusteeTrustMembers: (trustLE: ExistingLegalEntity, rootLegalEntity: ExistingLegalEntity, exemptSettlorLE?: ExistingLegalEntity) => TrustMember[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Mask } from './maskTypes';
|
|
2
|
+
/**
|
|
3
|
+
* Takes a formatted value and converts it back into a pure value by stripping the non-input /
|
|
4
|
+
* non-included characters in a given {@link Mask}.
|
|
5
|
+
*
|
|
6
|
+
* This is the inverse of {@link matchAgainstMask}.
|
|
7
|
+
*
|
|
8
|
+
* @see matchAgainstMask
|
|
9
|
+
*/
|
|
10
|
+
export declare const displayValueToPureValue: (displayValue: string, mask: Mask) => string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InputToken, Mask, MaskToken, NonInputToken } from './maskTypes';
|
|
2
|
+
export declare const nonInputs: (str: string, options?: Partial<NonInputToken>) => NonInputToken[];
|
|
3
|
+
export declare const alphaInputs: (length: number, optional?: boolean) => InputToken[];
|
|
4
|
+
export declare const numericInputs: (length: number, optional?: boolean) => InputToken[];
|
|
5
|
+
export declare const alphanumericInputs: (length: number, optional?: boolean) => InputToken[];
|
|
6
|
+
export declare const makeMask: (...tokens: MaskToken[]) => Mask;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface NonInputToken {
|
|
2
|
+
type: 'nonInput';
|
|
3
|
+
char: string;
|
|
4
|
+
includeInValue: boolean;
|
|
5
|
+
displayEagerly: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface InputToken {
|
|
8
|
+
type: 'input';
|
|
9
|
+
allow: RegExp | undefined;
|
|
10
|
+
optional?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export type MaskToken = NonInputToken | InputToken;
|
|
13
|
+
export interface Mask {
|
|
14
|
+
tokens: MaskToken[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
export declare const businessRegistrationNumberMasks: {
|
|
2
|
+
AT: {
|
|
3
|
+
firmenbuchnummer: {
|
|
4
|
+
mask: import("../maskTypes").Mask;
|
|
5
|
+
};
|
|
6
|
+
ZVR: {
|
|
7
|
+
mask: import("../maskTypes").Mask;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
AU: {
|
|
11
|
+
default: {
|
|
12
|
+
mask: import("../maskTypes").Mask;
|
|
13
|
+
guidanceText: {
|
|
14
|
+
key: "enterNDigitsForExample";
|
|
15
|
+
values: {
|
|
16
|
+
numDigits: string;
|
|
17
|
+
example: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
BE: {
|
|
23
|
+
default: {
|
|
24
|
+
mask: import("../maskTypes").Mask;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
BR: {
|
|
28
|
+
default: {
|
|
29
|
+
mask: import("../maskTypes").Mask;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
BG: {
|
|
33
|
+
default: {
|
|
34
|
+
mask: import("../maskTypes").Mask;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
CA: {
|
|
38
|
+
default: {
|
|
39
|
+
mask: import("../maskTypes").Mask;
|
|
40
|
+
transformOnType: import("../transformers/types").InputTransformer;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
HR: {
|
|
44
|
+
default: {
|
|
45
|
+
mask: import("../maskTypes").Mask;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
CY: {
|
|
49
|
+
default: {
|
|
50
|
+
mask: import("../maskTypes").Mask;
|
|
51
|
+
transformOnType: import("../transformers/types").InputTransformer;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
CZ: {
|
|
55
|
+
default: {
|
|
56
|
+
mask: import("../maskTypes").Mask;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
DK: {
|
|
60
|
+
default: {
|
|
61
|
+
mask: import("../maskTypes").Mask;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
EE: {
|
|
65
|
+
default: {
|
|
66
|
+
mask: import("../maskTypes").Mask;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
FI: {
|
|
70
|
+
default: {
|
|
71
|
+
mask: import("../maskTypes").Mask;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
FR: {
|
|
75
|
+
SIRET: {
|
|
76
|
+
mask: import("../maskTypes").Mask;
|
|
77
|
+
};
|
|
78
|
+
RNA: {
|
|
79
|
+
mask: import("../maskTypes").Mask;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
DE: {
|
|
83
|
+
default: {
|
|
84
|
+
mask: import("../maskTypes").Mask;
|
|
85
|
+
transformOnType: import("../transformers/types").InputTransformer;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
GI: {
|
|
89
|
+
default: {
|
|
90
|
+
mask: import("../maskTypes").Mask;
|
|
91
|
+
transformOnType: import("../transformers/types").InputTransformer;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
GR: {
|
|
95
|
+
default: {
|
|
96
|
+
mask: import("../maskTypes").Mask;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
GG: {
|
|
100
|
+
default: {
|
|
101
|
+
mask: import("../maskTypes").Mask;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
HK: {
|
|
105
|
+
default: {
|
|
106
|
+
mask: import("../maskTypes").Mask;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
HU: {
|
|
110
|
+
default: {
|
|
111
|
+
mask: import("../maskTypes").Mask;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
IE: {
|
|
115
|
+
default: {
|
|
116
|
+
mask: import("../maskTypes").Mask;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
IM: {
|
|
120
|
+
default: {
|
|
121
|
+
mask: import("../maskTypes").Mask;
|
|
122
|
+
transformOnType: import("../transformers/types").InputTransformer;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
IT: {
|
|
126
|
+
codiceFiscale: {
|
|
127
|
+
mask: import("../maskTypes").Mask;
|
|
128
|
+
};
|
|
129
|
+
CCIAA: {
|
|
130
|
+
mask: import("../maskTypes").Mask;
|
|
131
|
+
transformOnType: import("../transformers/types").InputTransformer;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
JE: {
|
|
135
|
+
default: {
|
|
136
|
+
mask: import("../maskTypes").Mask;
|
|
137
|
+
transformOnType: import("../transformers/types").InputTransformer;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
LV: {
|
|
141
|
+
default: {
|
|
142
|
+
mask: import("../maskTypes").Mask;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
LI: {
|
|
146
|
+
default: {
|
|
147
|
+
mask: import("../maskTypes").Mask;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
LT: {
|
|
151
|
+
default: {
|
|
152
|
+
mask: import("../maskTypes").Mask;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
LU: {
|
|
156
|
+
default: {
|
|
157
|
+
mask: import("../maskTypes").Mask;
|
|
158
|
+
transformOnType: import("../transformers/types").InputTransformer;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
MT: {
|
|
162
|
+
default: {
|
|
163
|
+
mask: import("../maskTypes").Mask;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
MC: {
|
|
167
|
+
default: {
|
|
168
|
+
mask: import("../maskTypes").Mask;
|
|
169
|
+
transformOnType: import("../transformers/types").InputTransformer;
|
|
170
|
+
};
|
|
171
|
+
soleProprietorship: {
|
|
172
|
+
mask: import("../maskTypes").Mask;
|
|
173
|
+
transformOnType: import("../transformers/types").InputTransformer;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
NL: {
|
|
177
|
+
default: {
|
|
178
|
+
mask: import("../maskTypes").Mask;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
NZ: {
|
|
182
|
+
NZBN: {
|
|
183
|
+
mask: import("../maskTypes").Mask;
|
|
184
|
+
};
|
|
185
|
+
companyNumberNZ: {
|
|
186
|
+
mask: import("../maskTypes").Mask;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
NO: {
|
|
190
|
+
default: {
|
|
191
|
+
mask: import("../maskTypes").Mask;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
PL: {
|
|
195
|
+
krsNumber: {
|
|
196
|
+
mask: import("../maskTypes").Mask;
|
|
197
|
+
};
|
|
198
|
+
regon: {
|
|
199
|
+
mask: import("../maskTypes").Mask;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
PT: {
|
|
203
|
+
default: {
|
|
204
|
+
mask: import("../maskTypes").Mask;
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
RO: {
|
|
208
|
+
default: {
|
|
209
|
+
mask: import("../maskTypes").Mask;
|
|
210
|
+
transformOnType: import("../transformers/types").InputTransformer;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
SG: {
|
|
214
|
+
default: {
|
|
215
|
+
mask: import("../maskTypes").Mask;
|
|
216
|
+
transformOnType: import("../transformers/types").InputTransformer;
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
SK: {
|
|
220
|
+
default: {
|
|
221
|
+
mask: import("../maskTypes").Mask;
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
SI: {
|
|
225
|
+
default: {
|
|
226
|
+
mask: import("../maskTypes").Mask;
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
ES: {
|
|
230
|
+
default: {
|
|
231
|
+
mask: import("../maskTypes").Mask;
|
|
232
|
+
transformOnType: import("../transformers/types").InputTransformer;
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
SE: {
|
|
236
|
+
default: {
|
|
237
|
+
mask: import("../maskTypes").Mask;
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
CH: {
|
|
241
|
+
default: {
|
|
242
|
+
mask: import("../maskTypes").Mask;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
GB: {
|
|
246
|
+
default: {
|
|
247
|
+
mask: import("../maskTypes").Mask;
|
|
248
|
+
transformOnType: import("../transformers/types").InputTransformer;
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
US: {
|
|
252
|
+
default: {
|
|
253
|
+
mask: import("../maskTypes").Mask;
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Mask, MaskToken } from './maskTypes';
|
|
2
|
+
interface CorrectResult {
|
|
3
|
+
outcome: 'partialCorrect' | 'correct';
|
|
4
|
+
displayValue: string;
|
|
5
|
+
potentialForMoreOptionalInput?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface MismatchResult {
|
|
8
|
+
outcome: 'mismatch';
|
|
9
|
+
badChar: string;
|
|
10
|
+
mismatchAtChar: number;
|
|
11
|
+
mismatchedToken: MaskToken | 'inputTooLong';
|
|
12
|
+
partialDisplayValue: string;
|
|
13
|
+
}
|
|
14
|
+
export type MaskResult = CorrectResult | MismatchResult;
|
|
15
|
+
/**
|
|
16
|
+
* Takes some pure value e.g. `NL123456` and a {@link Mask}, and returns a `partialCorrect`,
|
|
17
|
+
* `correct` or `mismatch` {@link MaskResult} accordingly.
|
|
18
|
+
*
|
|
19
|
+
* This is the inverse of {@link displayValueToPureValue}.
|
|
20
|
+
*
|
|
21
|
+
* @returns the result of matching the given value against the mask
|
|
22
|
+
* @param pureValue the pure, unformatted input value
|
|
23
|
+
* @param mask the mask to match against
|
|
24
|
+
*
|
|
25
|
+
* @see displayValueToPureValue
|
|
26
|
+
*/
|
|
27
|
+
export declare const matchAgainstMask: (pureValue: string, mask: Mask) => MaskResult;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type InputTransformer = (str: string) => string;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
+
import { BankAccountFormatType } from '../components/internal/BankAccountFormat/types';
|
|
2
|
+
import { BankAccountNumberSchema } from '../components/internal/BankAccountNumber/types';
|
|
1
3
|
import { PayoutAccountSchema } from '../components/PayoutAccount/types';
|
|
2
4
|
import { CountryCode } from '../core/models/country-code';
|
|
5
|
+
import { Currency } from '../core/models/currency';
|
|
3
6
|
import Language from '../language/Language';
|
|
7
|
+
import { FormatRules, Formatter, ValidatorRules } from './validation/types';
|
|
4
8
|
export declare const shouldShowPayoutAccountFormatSelector: (country: CountryCode) => boolean;
|
|
5
9
|
export declare const shouldShowPayoutAlert: (country: CountryCode) => boolean;
|
|
6
10
|
export declare const getSupportedCurrencyGuidance: (i18n: Language, country: CountryCode, requiredFields: Array<keyof PayoutAccountSchema>) => string;
|
|
11
|
+
export declare const getSupportedCurrenciesPerFormat: (country: CountryCode, format: BankAccountFormatType) => Currency[] | undefined;
|
|
12
|
+
export declare const getBankAccountNumberFormatters: (country: CountryCode, prependFormatters: Formatter<BankAccountNumberSchema[keyof BankAccountNumberSchema]>[]) => FormatRules<BankAccountNumberSchema>;
|
|
13
|
+
export type CountryBasedFormattingRules<BankAccountNumberSchema> = {
|
|
14
|
+
[country: string]: ValidatorRules<BankAccountNumberSchema>;
|
|
15
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CountryCode } from '../core/models/country-code';
|
|
2
|
+
export type PerCountry<T> = Partial<Record<CountryCode, T>>;
|
|
3
|
+
export type PerCountryAndOtherDiscriminant<T, Discriminant extends string, IncludeDefault extends boolean = true> = Partial<Record<CountryCode, (IncludeDefault extends true ? {
|
|
4
|
+
default: T;
|
|
5
|
+
} : object) & Partial<Record<Discriminant, T>>>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { RegexValidationOptions } from './types';
|
|
2
1
|
export declare const emailPattern: RegExp;
|
|
3
|
-
export declare const lengthValidationPatterns: Record<string,
|
|
2
|
+
export declare const lengthValidationPatterns: Record<string, RegExp>;
|
|
4
3
|
export declare const bankStatementDescriptionPattern: RegExp;
|
|
@@ -1,2 +1,160 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const businessRegistrationNumberPatterns: {
|
|
2
|
+
AU: {
|
|
3
|
+
default: RegExp;
|
|
4
|
+
};
|
|
5
|
+
AT: {
|
|
6
|
+
firmenbuchnummer: RegExp;
|
|
7
|
+
ZVR: RegExp;
|
|
8
|
+
};
|
|
9
|
+
BE: {
|
|
10
|
+
default: RegExp;
|
|
11
|
+
};
|
|
12
|
+
BR: {
|
|
13
|
+
default: RegExp;
|
|
14
|
+
};
|
|
15
|
+
BG: {
|
|
16
|
+
default: RegExp;
|
|
17
|
+
};
|
|
18
|
+
CA: {
|
|
19
|
+
default: RegExp;
|
|
20
|
+
};
|
|
21
|
+
HR: {
|
|
22
|
+
default: RegExp;
|
|
23
|
+
soleProprietorship: RegExp;
|
|
24
|
+
};
|
|
25
|
+
CY: {
|
|
26
|
+
default: RegExp;
|
|
27
|
+
};
|
|
28
|
+
CZ: {
|
|
29
|
+
default: RegExp;
|
|
30
|
+
};
|
|
31
|
+
DK: {
|
|
32
|
+
default: RegExp;
|
|
33
|
+
};
|
|
34
|
+
EE: {
|
|
35
|
+
default: RegExp;
|
|
36
|
+
};
|
|
37
|
+
FI: {
|
|
38
|
+
default: RegExp;
|
|
39
|
+
};
|
|
40
|
+
FR: {
|
|
41
|
+
SIRET: RegExp;
|
|
42
|
+
RNA: RegExp;
|
|
43
|
+
};
|
|
44
|
+
GI: {
|
|
45
|
+
default: RegExp;
|
|
46
|
+
};
|
|
47
|
+
DE: {
|
|
48
|
+
default: RegExp;
|
|
49
|
+
};
|
|
50
|
+
GR: {
|
|
51
|
+
default: RegExp;
|
|
52
|
+
};
|
|
53
|
+
GG: {
|
|
54
|
+
default: RegExp;
|
|
55
|
+
};
|
|
56
|
+
HK: {
|
|
57
|
+
default: RegExp;
|
|
58
|
+
};
|
|
59
|
+
HU: {
|
|
60
|
+
default: RegExp;
|
|
61
|
+
};
|
|
62
|
+
IS: {
|
|
63
|
+
default: RegExp;
|
|
64
|
+
};
|
|
65
|
+
IN: {
|
|
66
|
+
default: RegExp;
|
|
67
|
+
};
|
|
68
|
+
ID: {
|
|
69
|
+
default: RegExp;
|
|
70
|
+
};
|
|
71
|
+
IE: {
|
|
72
|
+
default: RegExp;
|
|
73
|
+
};
|
|
74
|
+
IM: {
|
|
75
|
+
default: RegExp;
|
|
76
|
+
};
|
|
77
|
+
IT: {
|
|
78
|
+
codiceFiscale: RegExp;
|
|
79
|
+
CCIAA: RegExp;
|
|
80
|
+
};
|
|
81
|
+
JP: {
|
|
82
|
+
default: RegExp;
|
|
83
|
+
};
|
|
84
|
+
JE: {
|
|
85
|
+
default: RegExp;
|
|
86
|
+
};
|
|
87
|
+
KR: {
|
|
88
|
+
default: RegExp;
|
|
89
|
+
};
|
|
90
|
+
LV: {
|
|
91
|
+
default: RegExp;
|
|
92
|
+
};
|
|
93
|
+
LI: {
|
|
94
|
+
default: RegExp;
|
|
95
|
+
};
|
|
96
|
+
LT: {
|
|
97
|
+
default: RegExp;
|
|
98
|
+
};
|
|
99
|
+
LU: {
|
|
100
|
+
default: RegExp;
|
|
101
|
+
};
|
|
102
|
+
MY: {
|
|
103
|
+
default: RegExp;
|
|
104
|
+
};
|
|
105
|
+
MT: {
|
|
106
|
+
default: RegExp;
|
|
107
|
+
};
|
|
108
|
+
MC: {
|
|
109
|
+
default: RegExp;
|
|
110
|
+
soleProprietorship: RegExp;
|
|
111
|
+
};
|
|
112
|
+
NL: {
|
|
113
|
+
default: RegExp;
|
|
114
|
+
};
|
|
115
|
+
NZ: {
|
|
116
|
+
NZBN: RegExp;
|
|
117
|
+
companyNumberNZ: RegExp;
|
|
118
|
+
};
|
|
119
|
+
NO: {
|
|
120
|
+
default: RegExp;
|
|
121
|
+
};
|
|
122
|
+
PL: {
|
|
123
|
+
krsNumber: RegExp;
|
|
124
|
+
regon: RegExp;
|
|
125
|
+
};
|
|
126
|
+
PT: {
|
|
127
|
+
default: RegExp;
|
|
128
|
+
};
|
|
129
|
+
PR: {
|
|
130
|
+
default: RegExp;
|
|
131
|
+
};
|
|
132
|
+
RO: {
|
|
133
|
+
default: RegExp;
|
|
134
|
+
};
|
|
135
|
+
SG: {
|
|
136
|
+
default: RegExp;
|
|
137
|
+
};
|
|
138
|
+
SK: {
|
|
139
|
+
default: RegExp;
|
|
140
|
+
};
|
|
141
|
+
SI: {
|
|
142
|
+
default: RegExp;
|
|
143
|
+
};
|
|
144
|
+
ES: {
|
|
145
|
+
default: RegExp;
|
|
146
|
+
};
|
|
147
|
+
SE: {
|
|
148
|
+
default: RegExp;
|
|
149
|
+
};
|
|
150
|
+
CH: {
|
|
151
|
+
default: RegExp;
|
|
152
|
+
};
|
|
153
|
+
GB: {
|
|
154
|
+
default: RegExp;
|
|
155
|
+
nonProfit: RegExp;
|
|
156
|
+
};
|
|
157
|
+
US: {
|
|
158
|
+
default: RegExp;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { IndividualIdNumberType } from '../../components/internal/IdFieldTypeSelector/countryIdNumberTypes';
|
|
2
|
+
import { PerCountryAndOtherDiscriminant } from '../perCountry';
|
|
1
3
|
export declare const CountryIdNumberPatterns: {
|
|
2
4
|
BR: RegExp;
|
|
3
5
|
CA: RegExp;
|
|
@@ -11,3 +13,4 @@ export declare const CountryIdNumberPatterns: {
|
|
|
11
13
|
US: RegExp;
|
|
12
14
|
US9: RegExp;
|
|
13
15
|
};
|
|
16
|
+
export declare const customPatternsPerIdNumberType: PerCountryAndOtherDiscriminant<RegExp, IndividualIdNumberType, false>;
|
|
@@ -5,6 +5,4 @@ export * from './driversLicenseCardNumberPatterns';
|
|
|
5
5
|
export * from './driversLicenseNumberPatterns';
|
|
6
6
|
export * from './passportNumberPatterns';
|
|
7
7
|
export * from './proofOfIdentityCardPatterns';
|
|
8
|
-
export * from './trustRegistrationNumberPatterns';
|
|
9
|
-
export * from './types';
|
|
10
8
|
export * from './vatNumberPatterns';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ValidatorRule } from '../validation/types';
|
|
2
|
+
export declare const validateNotEmptyOnBlur: ValidatorRule<string | undefined, object>;
|
|
3
|
+
export declare const validatePatternOnBlur: <ValueType extends string, FormSchema>(pattern: RegExp) => ValidatorRule<ValueType, FormSchema>;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { TaxIdNumberType } from '../../components/internal/IdFieldTypeSelector/countryIdNumberTypes';
|
|
2
|
+
import { PerCountry, PerCountryAndOtherDiscriminant } from '../perCountry';
|
|
2
3
|
/**
|
|
3
4
|
* Countries which follow the [countryCode][something] format
|
|
4
5
|
*
|
|
5
6
|
* @example
|
|
6
7
|
* France (FR) - FR12999999999
|
|
7
8
|
*/
|
|
8
|
-
export declare const vatSpecsPerCountry:
|
|
9
|
+
export declare const vatSpecsPerCountry: PerCountry<RegExp>;
|
|
9
10
|
/**
|
|
10
11
|
* Countries which do not follow the VAT rules ie the [countryCode][something] rule,
|
|
11
12
|
* and have their own system, or event a more complex setup
|
|
@@ -14,4 +15,5 @@ export declare const vatSpecsPerCountry: CountryRegexValidation;
|
|
|
14
15
|
* Monaco (MC) - FR12345678912
|
|
15
16
|
* Greece (GR or EL) - EL123456789
|
|
16
17
|
*/
|
|
17
|
-
export declare const nonVatSpecsPerCountry:
|
|
18
|
+
export declare const nonVatSpecsPerCountry: PerCountry<RegExp | RegExp[]>;
|
|
19
|
+
export declare const customSpecsPerVatNumberType: PerCountryAndOtherDiscriminant<RegExp, TaxIdNumberType, false>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function removeObjectPropsWithEmptyValues(obj:
|
|
1
|
+
export default function removeObjectPropsWithEmptyValues<T extends object>(obj: T): T;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LegalEntityAssociationType } from '../core/models/api/legal-entity-association';
|
|
2
|
+
import { TrustMemberGuidanceLabel } from '../core/models/trust';
|
|
3
|
+
import { TranslationKey } from '../language/types';
|
|
4
|
+
type Role = `${LegalEntityAssociationType | TrustMemberGuidanceLabel}`;
|
|
5
|
+
type RoleMetadata<R extends Role> = Record<R, {
|
|
6
|
+
name: TranslationKey;
|
|
7
|
+
className: string;
|
|
8
|
+
description?: TranslationKey;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const roleMetadata: Partial<RoleMetadata<Role>>;
|
|
11
|
+
export declare const getRoleTagColor: (role: Role) => string;
|
|
12
|
+
export declare const getRoleName: (role: Role) => TranslationKey;
|
|
13
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getScrollParent: (node:
|
|
1
|
+
export declare const getScrollParent: (node: Node | null) => HTMLElement | null;
|