@adyen/kyc-components 2.2.4 → 2.2.6
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/adyen-kyc-components.es.js +27091 -0
- package/dist/es/package.json +3 -0
- package/dist/mockServiceWorker.js +302 -0
- package/dist/style.css +97918 -0
- package/dist/types/components/AutoResizer.d.ts +6 -0
- package/dist/types/components/BankVerification/BankVerification.d.ts +8 -0
- package/dist/types/components/BankVerification/types.d.ts +50 -0
- package/dist/types/components/BankVerification/verification/widget/component/BankVerificationWidget.d.ts +24 -0
- package/dist/types/components/BankVerification/verification/widget/iframeWidget.d.ts +38 -0
- package/dist/types/components/BankVerification/verification/widget/index.d.ts +1 -0
- package/dist/types/components/BaseElement.d.ts +43 -0
- package/dist/types/components/Company/component/CompanyComponent.d.ts +40 -0
- package/dist/types/components/Company/rules.d.ts +9 -0
- package/dist/types/components/Company/types.d.ts +37 -0
- package/dist/types/components/CompanyDetails/component/CompanyDetailsComponent.d.ts +5 -0
- package/dist/types/components/CompanyDetails/types.d.ts +17 -0
- package/dist/types/components/CompanyDetails/validate.d.ts +3 -0
- package/dist/types/components/CompanyNameAndCountry/component/CompanyNameAndCountryComponent.d.ts +4 -0
- package/dist/types/components/CompanyNameAndCountry/types.d.ts +10 -0
- package/dist/types/components/CompanyNameAndCountry/validate.d.ts +3 -0
- package/dist/types/components/CompanyType/component/CompanyTypeComponent.d.ts +5 -0
- package/dist/types/components/CompanyType/types.d.ts +10 -0
- package/dist/types/components/CompanyType/validate.d.ts +3 -0
- package/dist/types/components/ConstitutionalDocument/ConstitutionalDocumentComponent.d.ts +10 -0
- package/dist/types/components/ConstitutionalDocument/types.d.ts +11 -0
- package/dist/types/components/ContactDetails/component/ContactDetailsComponent.d.ts +4 -0
- package/dist/types/components/ContactDetails/types.d.ts +9 -0
- package/dist/types/components/ContactDetails/validate.d.ts +3 -0
- package/dist/types/components/DecisionMakers/component/DecisionMakersComponent.d.ts +4 -0
- package/dist/types/components/DecisionMakers/types.d.ts +11 -0
- package/dist/types/components/DocumentUpload/DocumentUpload.d.ts +4 -0
- package/dist/types/components/DocumentUpload/types.d.ts +20 -0
- package/dist/types/components/Dropins/CompanyDropin/components/CompanyDropinComponent.d.ts +2 -0
- package/dist/types/components/Dropins/CompanyDropin/index.d.ts +1 -0
- package/dist/types/components/Dropins/DropinComposer/components/DropinComposerComponent.d.ts +2 -0
- package/dist/types/components/Dropins/DropinComposer/index.d.ts +1 -0
- package/dist/types/components/Dropins/DropinLayout/ActionBar/ActionBar.d.ts +4 -0
- package/dist/types/components/Dropins/DropinLayout/ActionBar/index.d.ts +1 -0
- package/dist/types/components/Dropins/DropinLayout/ActionBar/type.d.ts +11 -0
- package/dist/types/components/Dropins/DropinLayout/DropinLayout.d.ts +3 -0
- package/dist/types/components/Dropins/DropinLayout/types.d.ts +6 -0
- package/dist/types/components/Dropins/FormComposer/FormComposer.d.ts +34 -0
- package/dist/types/components/Dropins/FormComposer/components/FormNavigation/FormNavigation.d.ts +4 -0
- package/dist/types/components/Dropins/FormComposer/components/FormNavigation/FormNavigationItem.d.ts +3 -0
- package/dist/types/components/Dropins/FormComposer/components/FormNavigation/index.d.ts +1 -0
- package/dist/types/components/Dropins/FormComposer/components/FormNavigation/types.d.ts +24 -0
- package/dist/types/components/Dropins/FormComposer/types.d.ts +22 -0
- package/dist/types/components/Dropins/FormWrapper/FormWrapper.d.ts +39 -0
- package/dist/types/components/Dropins/IndividualDropin/components/IndividualDropinComponent.d.ts +2 -0
- package/dist/types/components/Dropins/IndividualDropin/index.d.ts +1 -0
- package/dist/types/components/Dropins/PayoutDetailsDropin/components/PayoutDetailsDropinComponent.d.ts +4 -0
- package/dist/types/components/Dropins/PayoutDetailsDropin/index.d.ts +1 -0
- package/dist/types/components/Dropins/PciDropin/components/PciDropinComponent.d.ts +2 -0
- package/dist/types/components/Dropins/PciDropin/index.d.ts +1 -0
- package/dist/types/components/Dropins/PciDropin/types.d.ts +14 -0
- package/dist/types/components/Dropins/PciDropin/validate.d.ts +3 -0
- package/dist/types/components/Dropins/RoleAndTypeDropin/components/RoleAndTypeDropinComponent.d.ts +2 -0
- package/dist/types/components/Dropins/RoleAndTypeDropin/index.d.ts +1 -0
- package/dist/types/components/Dropins/RoleAndTypeDropin/types.d.ts +18 -0
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/components/ServiceAgreementDropinComponent.d.ts +2 -0
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/components/useServiceAgreement.d.ts +22 -0
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/index.d.ts +1 -0
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/types.d.ts +25 -0
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/validate.d.ts +3 -0
- package/dist/types/components/Dropins/SolePropDropin/components/SolePropDropinComponent.d.ts +2 -0
- package/dist/types/components/Dropins/SolePropDropin/index.d.ts +1 -0
- package/dist/types/components/Dropins/TrustDropin/components/TrustDropinComponent.d.ts +2 -0
- package/dist/types/components/Dropins/TrustDropin/index.d.ts +1 -0
- package/dist/types/components/Dropins/types.d.ts +63 -0
- package/dist/types/components/EventEmitter.d.ts +20 -0
- package/dist/types/components/IdDocumentUpload/component/IdDocumentAlreadyUpload.d.ts +3 -0
- package/dist/types/components/IdDocumentUpload/component/IdDocumentInstantVerificationComponent.d.ts +5 -0
- package/dist/types/components/IdDocumentUpload/component/IdDocumentManualUpload.d.ts +6 -0
- package/dist/types/components/IdDocumentUpload/component/IdDocumentUploadComponent.d.ts +4 -0
- package/dist/types/components/IdDocumentUpload/types.d.ts +50 -0
- package/dist/types/components/IdVerification/component/IdVerificationComponent.d.ts +3 -0
- package/dist/types/components/IdVerification/types.d.ts +13 -0
- package/dist/types/components/IdVerificationMethod/IdVerificationMethodComponent.d.ts +5 -0
- package/dist/types/components/IdVerificationMethod/idVerificationMethodMetadata.d.ts +14 -0
- package/dist/types/components/IdVerificationMethod/index.d.ts +1 -0
- package/dist/types/components/IdVerificationMethod/types.d.ts +13 -0
- package/dist/types/components/IdentityAu/additionalIdentityInfoSchema.d.ts +8 -0
- package/dist/types/components/IdentityAu/component/DriversLicense.d.ts +21 -0
- package/dist/types/components/IdentityAu/component/IdentityAuComponent.d.ts +2 -0
- package/dist/types/components/IdentityAu/component/PassportNumber.d.ts +15 -0
- package/dist/types/components/IdentityAu/component/ProofOfIdentityCard.d.ts +15 -0
- package/dist/types/components/IdentityAu/component/TypeOfIdentity.d.ts +12 -0
- package/dist/types/components/IdentityAu/types.d.ts +10 -0
- package/dist/types/components/IdentityAu/validate.d.ts +3 -0
- package/dist/types/components/IdentityNumber/component/IdentityNumberComponent.d.ts +4 -0
- package/dist/types/components/IdentityNumber/formats.d.ts +15 -0
- package/dist/types/components/IdentityNumber/type.d.ts +12 -0
- package/dist/types/components/IdentityNumber/validate.d.ts +40 -0
- package/dist/types/components/IdentityNumber/validate.helper.d.ts +5 -0
- package/dist/types/components/Individual/component/IndividualComponent.d.ts +7 -0
- package/dist/types/components/Individual/rules.d.ts +10 -0
- package/dist/types/components/Individual/types.d.ts +48 -0
- package/dist/types/components/LegalEntityTypeSwitcher/LegalEntityTypeSwitcher.d.ts +2 -0
- package/dist/types/components/LegalEntityTypeSwitcher/type.d.ts +6 -0
- package/dist/types/components/PatriotActDisclosure.d.ts +1 -0
- package/dist/types/components/PayoutAccount/component/PayoutAccountComponent.d.ts +6 -0
- package/dist/types/components/PayoutAccount/types.d.ts +30 -0
- package/dist/types/components/PayoutBankStatement/component/BankDocumentRequirements.d.ts +7 -0
- package/dist/types/components/PayoutBankStatement/component/PayoutBankStatementComponent.d.ts +6 -0
- package/dist/types/components/PayoutBankStatement/types.d.ts +31 -0
- package/dist/types/components/PayoutDetails/component/PayoutDetailsComponent.d.ts +28 -0
- package/dist/types/components/PayoutDetails/rules.d.ts +13 -0
- package/dist/types/components/PayoutDetails/types.d.ts +42 -0
- package/dist/types/components/PayoutVerificationMethod/allowedBankCountriesPerCountry.d.ts +2 -0
- package/dist/types/components/PayoutVerificationMethod/component/PayoutVerificationMethod.d.ts +5 -0
- package/dist/types/components/PayoutVerificationMethod/payoutVerificationMethodMetadata.d.ts +14 -0
- package/dist/types/components/PayoutVerificationMethod/types.d.ts +18 -0
- package/dist/types/components/PersonalDetails/component/PersonalDetailsComponent.d.ts +4 -0
- package/dist/types/components/PersonalDetails/types.d.ts +27 -0
- package/dist/types/components/PersonalDetails/validate.d.ts +3 -0
- package/dist/types/components/ProofOfResidency/ProofOfResidencyComponent.d.ts +4 -0
- package/dist/types/components/ProofOfResidency/types.d.ts +39 -0
- package/dist/types/components/RegistrationAddress/component/RegistrationAddressComponent.d.ts +6 -0
- package/dist/types/components/RegistrationAddress/types.d.ts +26 -0
- package/dist/types/components/RegistrationAddress/validate.d.ts +3 -0
- package/dist/types/components/Review/component/ReviewComponent.d.ts +3 -0
- package/dist/types/components/Review/types.d.ts +6 -0
- package/dist/types/components/SoleProp/component/SolePropComponent.d.ts +6 -0
- package/dist/types/components/SoleProp/labels.d.ts +5 -0
- package/dist/types/components/SoleProp/types.d.ts +31 -0
- package/dist/types/components/TaskList/component/PayoutAccountTaskListItem.d.ts +11 -0
- package/dist/types/components/TaskList/component/TaskItemStatus.d.ts +3 -0
- package/dist/types/components/TaskList/component/TaskListComponent.d.ts +4 -0
- package/dist/types/components/TaskList/component/TaskListGroup.d.ts +5 -0
- package/dist/types/components/TaskList/component/TaskListItem.d.ts +5 -0
- package/dist/types/components/TaskList/types.d.ts +73 -0
- package/dist/types/components/Trust/component/TrustComponent.d.ts +7 -0
- package/dist/types/components/Trust/types.d.ts +27 -0
- package/dist/types/components/TrustMembers/component/TrustMembersComponent.d.ts +4 -0
- package/dist/types/components/TrustMembers/component/UndefinedBeneficiaries.d.ts +8 -0
- package/dist/types/components/TrustMembers/types.d.ts +22 -0
- package/dist/types/components/TrustRegistrationDetails/component/TrustRegistrationDetailsComponent.d.ts +4 -0
- package/dist/types/components/TrustRegistrationDetails/types.d.ts +16 -0
- package/dist/types/components/TrustRegistrationDetails/validate.d.ts +3 -0
- package/dist/types/components/TrustRoleAndEntityType/component/TrustRoleAndEntityTypeComponent.d.ts +3 -0
- package/dist/types/components/TrustRoleAndEntityType/getAvailableRoles.d.ts +2 -0
- package/dist/types/components/TrustRoleAndEntityType/types.d.ts +23 -0
- package/dist/types/components/TrustRoleAndEntityType/validate.d.ts +3 -0
- package/dist/types/components/UIElement.d.ts +19 -0
- package/dist/types/components/identityUS/component/IdentityUSComponent.d.ts +4 -0
- package/dist/types/components/index.d.ts +29 -0
- package/dist/types/components/internal/Accordion/Accordion.d.ts +3 -0
- package/dist/types/components/internal/Accordion/AccordionContext.d.ts +2 -0
- package/dist/types/components/internal/Accordion/index.d.ts +1 -0
- package/dist/types/components/internal/Accordion/types.d.ts +22 -0
- package/dist/types/components/internal/AccordionItem/AccordionItem.d.ts +3 -0
- package/dist/types/components/internal/AccordionItem/index.d.ts +1 -0
- package/dist/types/components/internal/AccordionItem/types.d.ts +13 -0
- package/dist/types/components/internal/AccordionItem/useAccordionContext.d.ts +3 -0
- package/dist/types/components/internal/AccountHolder/AccountHolder.d.ts +3 -0
- package/dist/types/components/internal/AccountHolder/index.d.ts +1 -0
- package/dist/types/components/internal/AccountHolder/types.d.ts +11 -0
- package/dist/types/components/internal/AccountHolder/validate.d.ts +3 -0
- package/dist/types/components/internal/Address/Address.d.ts +12 -0
- package/dist/types/components/internal/Address/components/CountryField.d.ts +2 -0
- package/dist/types/components/internal/Address/components/FieldContainer.d.ts +8 -0
- package/dist/types/components/internal/Address/components/SearchAddress.d.ts +4 -0
- package/dist/types/components/internal/Address/components/StateField.d.ts +2 -0
- package/dist/types/components/internal/Address/constants.d.ts +7 -0
- package/dist/types/components/internal/Address/types.d.ts +96 -0
- package/dist/types/components/internal/Address/utils.d.ts +21 -0
- package/dist/types/components/internal/Address/validate.d.ts +3 -0
- package/dist/types/components/internal/Address/validate.formats.d.ts +4 -0
- package/dist/types/components/internal/Alert/Alert.d.ts +6 -0
- package/dist/types/components/internal/Alert/components/ReviewAlert.d.ts +2 -0
- package/dist/types/components/internal/Alert/components/VerificationErrorAlert.d.ts +3 -0
- package/dist/types/components/internal/Alert/index.d.ts +1 -0
- package/dist/types/components/internal/Alert/types.d.ts +22 -0
- package/dist/types/components/internal/BankAccountFormat/BankAccountFormat.d.ts +2 -0
- package/dist/types/components/internal/BankAccountFormat/types.d.ts +5 -0
- package/dist/types/components/internal/BankAccountNumber/BankAccountNumber.d.ts +3 -0
- package/dist/types/components/internal/BankAccountNumber/index.d.ts +1 -0
- package/dist/types/components/internal/BankAccountNumber/types.d.ts +5 -0
- package/dist/types/components/internal/BankCity/BankCity.d.ts +3 -0
- package/dist/types/components/internal/BankCity/index.d.ts +1 -0
- package/dist/types/components/internal/BankCity/types.d.ts +5 -0
- package/dist/types/components/internal/BankCode/BankCode.d.ts +3 -0
- package/dist/types/components/internal/BankCode/index.d.ts +1 -0
- package/dist/types/components/internal/BankCode/types.d.ts +5 -0
- package/dist/types/components/internal/BankName/BankName.d.ts +3 -0
- package/dist/types/components/internal/BankName/index.d.ts +1 -0
- package/dist/types/components/internal/BankName/types.d.ts +5 -0
- package/dist/types/components/internal/BranchCode/BranchCode.d.ts +3 -0
- package/dist/types/components/internal/BranchCode/index.d.ts +1 -0
- package/dist/types/components/internal/BranchCode/types.d.ts +5 -0
- package/dist/types/components/internal/BusinessRegistrationNumber/BusinessRegistrationNumber.d.ts +3 -0
- package/dist/types/components/internal/BusinessRegistrationNumber/formatters.d.ts +4 -0
- package/dist/types/components/internal/BusinessRegistrationNumber/index.d.ts +1 -0
- package/dist/types/components/internal/BusinessRegistrationNumber/types.d.ts +11 -0
- package/dist/types/components/internal/BusinessRegistrationNumber/validate.d.ts +19 -0
- package/dist/types/components/internal/Button/Button.d.ts +6 -0
- package/dist/types/components/internal/Button/index.d.ts +1 -0
- package/dist/types/components/internal/Button/types.d.ts +25 -0
- package/dist/types/components/internal/Card/Card.d.ts +4 -0
- package/dist/types/components/internal/Card/CardGroup.d.ts +3 -0
- package/dist/types/components/internal/Card/types.d.ts +16 -0
- package/dist/types/components/internal/CollapsibleContainer/CollapsibleContainer.d.ts +3 -0
- package/dist/types/components/internal/CollapsibleContainer/index.d.ts +1 -0
- package/dist/types/components/internal/CollapsibleContainer/types.d.ts +6 -0
- package/dist/types/components/internal/ContextGuidance/ContextGuidance.d.ts +2 -0
- package/dist/types/components/internal/ContextGuidance/index.d.ts +1 -0
- package/dist/types/components/internal/ContextGuidance/types.d.ts +10 -0
- package/dist/types/components/internal/ContextHelper/ContextHelper.d.ts +6 -0
- package/dist/types/components/internal/ContractViewer/ContractViewer.d.ts +3 -0
- package/dist/types/components/internal/ContractViewer/components/Chapter/Chapter.d.ts +2 -0
- package/dist/types/components/internal/ContractViewer/components/ContentElements/ContentElements.d.ts +2 -0
- package/dist/types/components/internal/ContractViewer/components/InternalReference/InternalReference.d.ts +2 -0
- package/dist/types/components/internal/ContractViewer/components/List/List.d.ts +2 -0
- package/dist/types/components/internal/ContractViewer/components/Paragraph/Paragraph.d.ts +3 -0
- package/dist/types/components/internal/ContractViewer/components/Section/Section.d.ts +3 -0
- package/dist/types/components/internal/ContractViewer/components/Table/Table.d.ts +3 -0
- package/dist/types/components/internal/ContractViewer/components/Text/Text.d.ts +3 -0
- package/dist/types/components/internal/ContractViewer/components/Weblink/Weblink.d.ts +3 -0
- package/dist/types/components/internal/ContractViewer/index.d.ts +1 -0
- package/dist/types/components/internal/ContractViewer/types.d.ts +85 -0
- package/dist/types/components/internal/Currency/Currency.d.ts +5 -0
- package/dist/types/components/internal/Currency/index.d.ts +1 -0
- package/dist/types/components/internal/Currency/types.d.ts +10 -0
- package/dist/types/components/internal/DecisionMakerRole/DecisionMakerRoleComponent.d.ts +3 -0
- package/dist/types/components/internal/DecisionMakerRole/index.d.ts +2 -0
- package/dist/types/components/internal/DecisionMakerRole/types.d.ts +10 -0
- package/dist/types/components/internal/DecisionMakerRole/validate.d.ts +3 -0
- package/dist/types/components/internal/Disclaimer/Disclaimer.d.ts +8 -0
- package/dist/types/components/internal/DocumentGuidance/DocumentGuidance.d.ts +4 -0
- package/dist/types/components/internal/DocumentGuidance/type.d.ts +5 -0
- package/dist/types/components/internal/EntityAssociation/EntityAssociation.d.ts +4 -0
- package/dist/types/components/internal/EntityAssociation/types.d.ts +27 -0
- package/dist/types/components/internal/EntityGuidanceStatus/component/EntityGuidanceLegend.d.ts +3 -0
- package/dist/types/components/internal/EntityGuidanceStatus/component/EntityGuidanceStatus.d.ts +4 -0
- package/dist/types/components/internal/EntityGuidanceStatus/component/EntityStatusIcon.d.ts +3 -0
- package/dist/types/components/internal/EntityGuidanceStatus/index.d.ts +3 -0
- package/dist/types/components/internal/EntityGuidanceStatus/types.d.ts +14 -0
- package/dist/types/components/internal/ErrorPanel/ErrorPanel.d.ts +13 -0
- package/dist/types/components/internal/ErrorPanel/components/NavigateToFieldLink.d.ts +5 -0
- package/dist/types/components/internal/ErrorPanel/components/ServerValidationErrors.d.ts +2 -0
- package/dist/types/components/internal/ErrorPanel/components/VerificationErrors.d.ts +2 -0
- package/dist/types/components/internal/ErrorPanel/constants.d.ts +1 -0
- package/dist/types/components/internal/ErrorPanel/types.d.ts +27 -0
- package/dist/types/components/internal/FormFields/Checkbox/Checkbox.d.ts +17 -0
- package/dist/types/components/internal/FormFields/Checkbox/index.d.ts +1 -0
- package/dist/types/components/internal/FormFields/Dropzone/Dropzone.d.ts +3 -0
- package/dist/types/components/internal/FormFields/Dropzone/FilePicker.d.ts +14 -0
- package/dist/types/components/internal/FormFields/Dropzone/components/DropzoneFile.d.ts +3 -0
- package/dist/types/components/internal/FormFields/Dropzone/types.d.ts +26 -0
- package/dist/types/components/internal/FormFields/Dropzone/validate.d.ts +9 -0
- package/dist/types/components/internal/FormFields/Field/Field.d.ts +11 -0
- package/dist/types/components/internal/FormFields/Field/index.d.ts +1 -0
- package/dist/types/components/internal/FormFields/Field/types.d.ts +33 -0
- package/dist/types/components/internal/FormFields/InputBase.d.ts +25 -0
- package/dist/types/components/internal/FormFields/InputDate/InputDate.d.ts +7 -0
- package/dist/types/components/internal/FormFields/InputDate/index.d.ts +1 -0
- package/dist/types/components/internal/FormFields/InputDate/utils.d.ts +22 -0
- package/dist/types/components/internal/FormFields/InputEmail.d.ts +1 -0
- package/dist/types/components/internal/FormFields/InputRadio/InputRadio.d.ts +6 -0
- package/dist/types/components/internal/FormFields/InputTelephone.d.ts +1 -0
- package/dist/types/components/internal/FormFields/InputText.d.ts +8 -0
- package/dist/types/components/internal/FormFields/MultiSelectList/MultiSelectList.d.ts +9 -0
- package/dist/types/components/internal/FormFields/MultiSelectList/index.d.ts +1 -0
- package/dist/types/components/internal/FormFields/RadioGroup/RadioGroup.d.ts +10 -0
- package/dist/types/components/internal/FormFields/RadioGroup/index.d.ts +1 -0
- package/dist/types/components/internal/FormFields/RadioGroup/types.d.ts +18 -0
- package/dist/types/components/internal/FormFields/RadioGroupCard/RadioCard.d.ts +3 -0
- package/dist/types/components/internal/FormFields/RadioGroupCard/RadioCardSelect.d.ts +22 -0
- package/dist/types/components/internal/FormFields/RadioGroupCard/RadioGroupCard.d.ts +3 -0
- package/dist/types/components/internal/FormFields/RadioGroupCard/index.d.ts +3 -0
- package/dist/types/components/internal/FormFields/RadioGroupCard/types.d.ts +40 -0
- package/dist/types/components/internal/FormFields/Select/Select.d.ts +5 -0
- package/dist/types/components/internal/FormFields/Select/components/SelectButton.d.ts +3 -0
- package/dist/types/components/internal/FormFields/Select/components/SelectList.d.ts +3 -0
- package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts +3 -0
- package/dist/types/components/internal/FormFields/Select/index.d.ts +1 -0
- package/dist/types/components/internal/FormFields/Select/types.d.ts +127 -0
- package/dist/types/components/internal/FormFields/TextArea.d.ts +1 -0
- package/dist/types/components/internal/FormFields/utils.d.ts +2 -0
- package/dist/types/components/internal/FormHeader/FormHeader.d.ts +3 -0
- package/dist/types/components/internal/FormHeader/type.d.ts +8 -0
- package/dist/types/components/internal/Heading/Heading.d.ts +10 -0
- package/dist/types/components/internal/Iban/Iban.d.ts +3 -0
- package/dist/types/components/internal/Iban/ibanValidator.d.ts +4 -0
- package/dist/types/components/internal/Iban/index.d.ts +1 -0
- package/dist/types/components/internal/Iban/types.d.ts +7 -0
- package/dist/types/components/internal/Icon/Icon.d.ts +8 -0
- package/dist/types/components/internal/Icon/index.d.ts +1 -0
- package/dist/types/components/internal/LegalCompanyName/LegalCompanyName.d.ts +3 -0
- package/dist/types/components/internal/LegalCompanyName/index.d.ts +1 -0
- package/dist/types/components/internal/LegalCompanyName/types.d.ts +8 -0
- package/dist/types/components/internal/LegalCompanyName/validate.d.ts +3 -0
- package/dist/types/components/internal/Link/Link.d.ts +5 -0
- package/dist/types/components/internal/Link/index.d.ts +1 -0
- package/dist/types/components/internal/Link/types.d.ts +14 -0
- package/dist/types/components/internal/List/List.d.ts +4 -0
- package/dist/types/components/internal/List/ListItem.d.ts +3 -0
- package/dist/types/components/internal/List/types.d.ts +13 -0
- package/dist/types/components/internal/Loader/Loader.d.ts +22 -0
- package/dist/types/components/internal/Loader/index.d.ts +2 -0
- package/dist/types/components/internal/LoaderWrapper/LoaderWrapper.d.ts +13 -0
- package/dist/types/components/internal/LoaderWrapper/constants.d.ts +1 -0
- package/dist/types/components/internal/LoaderWrapper/index.d.ts +1 -0
- package/dist/types/components/internal/Menu/ActionsMenu.d.ts +14 -0
- package/dist/types/components/internal/Name/Name.d.ts +4 -0
- package/dist/types/components/internal/Name/index.d.ts +1 -0
- package/dist/types/components/internal/Name/types.d.ts +6 -0
- package/dist/types/components/internal/Name/validate.d.ts +4 -0
- package/dist/types/components/internal/PhoneInput/PhoneInput.d.ts +10 -0
- package/dist/types/components/internal/PhoneInput/index.d.ts +1 -0
- package/dist/types/components/internal/PhoneInput/types.d.ts +12 -0
- package/dist/types/components/internal/PhoneInput/validate.d.ts +8 -0
- package/dist/types/components/internal/Shimmer/Shimmer.d.ts +2 -0
- package/dist/types/components/internal/Spinner/Spinner.d.ts +17 -0
- package/dist/types/components/internal/Spinner/index.d.ts +1 -0
- package/dist/types/components/internal/Status/Status.d.ts +4 -0
- package/dist/types/components/internal/Status/types.d.ts +6 -0
- package/dist/types/components/internal/Summary/Summary.d.ts +8 -0
- package/dist/types/components/internal/Summary/types.d.ts +16 -0
- package/dist/types/components/internal/SwiftCode/SwiftCode.d.ts +3 -0
- package/dist/types/components/internal/SwiftCode/index.d.ts +1 -0
- package/dist/types/components/internal/SwiftCode/types.d.ts +5 -0
- package/dist/types/components/internal/Tag/Tag.d.ts +9 -0
- package/dist/types/components/internal/Tag/index.d.ts +1 -0
- package/dist/types/components/internal/TaxId/TaxId.d.ts +3 -0
- package/dist/types/components/internal/TaxId/index.d.ts +1 -0
- package/dist/types/components/internal/TaxId/rules.d.ts +2 -0
- package/dist/types/components/internal/TaxId/taxIdValidation.d.ts +1 -0
- package/dist/types/components/internal/TaxId/types.d.ts +16 -0
- package/dist/types/components/internal/TaxId/validate.d.ts +4 -0
- package/dist/types/components/internal/Toast/Toast.d.ts +3 -0
- package/dist/types/components/internal/Toast/index.d.ts +2 -0
- package/dist/types/components/internal/Toast/types.d.ts +16 -0
- package/dist/types/components/internal/VatNumber/VatNumber.d.ts +3 -0
- package/dist/types/components/internal/VatNumber/index.d.ts +1 -0
- package/dist/types/components/internal/VatNumber/types.d.ts +19 -0
- package/dist/types/components/internal/VatNumber/validate.d.ts +4 -0
- package/dist/types/components/internal/VatNumber/vatNumberValidation.d.ts +5 -0
- package/dist/types/core/Context/CoreContext.d.ts +20 -0
- package/dist/types/core/Context/CoreProvider.d.ts +35 -0
- package/dist/types/core/Context/ExperimentContext/ExperimentsContext.d.ts +2 -0
- package/dist/types/core/Context/ExperimentContext/ExperimentsContextProvider.d.ts +8 -0
- package/dist/types/core/Context/ExperimentContext/types.d.ts +12 -0
- package/dist/types/core/Context/ExperimentContext/useExperimentsContext.d.ts +1 -0
- package/dist/types/core/Context/FormRouterContext/FormRouterContext.d.ts +4 -0
- package/dist/types/core/Context/FormRouterContext/FormRouterContextProvider.d.ts +2 -0
- package/dist/types/core/Context/FormRouterContext/types.d.ts +9 -0
- package/dist/types/core/Context/FormRouterContext/useFormRouterContext.d.ts +4 -0
- package/dist/types/core/Context/SettingsContext/SettingsContext.d.ts +2 -0
- package/dist/types/core/Context/SettingsContext/SettingsContextProvider.d.ts +8 -0
- package/dist/types/core/Context/SettingsContext/types.d.ts +12 -0
- package/dist/types/core/Context/SettingsContext/useSettingsContext.d.ts +1 -0
- package/dist/types/core/Context/StateContext/StateContext.d.ts +2 -0
- package/dist/types/core/Context/StateContext/StateContextSetter.d.ts +2 -0
- package/dist/types/core/Context/StateContext/StateContextWatcher.d.ts +2 -0
- package/dist/types/core/Context/StateContext/StateProvider.d.ts +4 -0
- package/dist/types/core/Context/StateContext/StateReducer.d.ts +11 -0
- package/dist/types/core/Context/StateContext/hasDataChanged.d.ts +1 -0
- package/dist/types/core/Context/StateContext/types.d.ts +76 -0
- package/dist/types/core/Context/StateContext/useGlobalData.d.ts +8 -0
- package/dist/types/core/Context/StateContext/useStateContext.d.ts +2 -0
- package/dist/types/core/Context/ToastContext/ToastContext.d.ts +6 -0
- package/dist/types/core/Context/ToastContext/ToastContextProvider.d.ts +4 -0
- package/dist/types/core/Context/ToastContext/useToastContext.d.ts +2 -0
- package/dist/types/core/Context/useCoreContext.d.ts +1 -0
- package/dist/types/core/Environment/normalizeEnvironment.d.ts +1 -0
- package/dist/types/core/SDKValidation/index.d.ts +4 -0
- package/dist/types/core/SDKValidation/schemas.d.ts +2 -0
- package/dist/types/core/SDKValidation/types.d.ts +19 -0
- package/dist/types/core/Services/get-account-format.d.ts +4 -0
- package/dist/types/core/Services/get-allowed-countries.d.ts +3 -0
- package/dist/types/core/Services/get-allowed-locales.d.ts +3 -0
- package/dist/types/core/Services/get-configuration.d.ts +3 -0
- package/dist/types/core/Services/get-dataset.d.ts +3 -0
- package/dist/types/core/Services/get-fonts.d.ts +16 -0
- package/dist/types/core/Services/get-images.d.ts +2 -0
- package/dist/types/core/Services/http.d.ts +4 -0
- package/dist/types/core/Services/types.d.ts +16 -0
- package/dist/types/core/Services/utils.d.ts +5 -0
- package/dist/types/core/Services/validate-phone-number.d.ts +3 -0
- package/dist/types/core/Services/verify-id-number.d.ts +3 -0
- package/dist/types/core/constants.d.ts +11 -0
- package/dist/types/core/core.d.ts +26 -0
- package/dist/types/core/error.d.ts +4 -0
- package/dist/types/core/errorMapping.d.ts +4 -0
- package/dist/types/core/hooks/useAsyncValidator.d.ts +11 -0
- package/dist/types/core/hooks/useClickAwayListener.d.ts +9 -0
- package/dist/types/core/hooks/useDataset.d.ts +5 -0
- package/dist/types/core/hooks/useForm/index.d.ts +3 -0
- package/dist/types/core/hooks/useForm/reducer.d.ts +38 -0
- package/dist/types/core/hooks/useForm/types.d.ts +87 -0
- package/dist/types/core/hooks/useForm/useForm.d.ts +13 -0
- package/dist/types/core/hooks/useForm/utils.d.ts +2 -0
- package/dist/types/core/hooks/useFormComposer.d.ts +22 -0
- package/dist/types/core/hooks/useIdVerificationToken.d.ts +11 -0
- package/dist/types/core/hooks/useKycExternalApi.d.ts +23 -0
- package/dist/types/core/hooks/useScenarioConfiguration.d.ts +25 -0
- package/dist/types/core/hooks/useStaticValidator/index.d.ts +1 -0
- package/dist/types/core/hooks/useStaticValidator/useStaticValidator.d.ts +7 -0
- package/dist/types/core/models/api/address-search.d.ts +28 -0
- package/dist/types/core/models/api/address.d.ts +9 -0
- package/dist/types/core/models/api/attachment.d.ts +5 -0
- package/dist/types/core/models/api/capability.d.ts +30 -0
- package/dist/types/core/models/api/company-types-value.d.ts +10 -0
- package/dist/types/core/models/api/contracts.d.ts +57 -0
- package/dist/types/core/models/api/data-set.d.ts +5 -0
- package/dist/types/core/models/api/decision-maker-type.d.ts +6 -0
- package/dist/types/core/models/api/document.d.ts +29 -0
- package/dist/types/core/models/api/documentDetail.d.ts +9 -0
- package/dist/types/core/models/api/entity-type.d.ts +4 -0
- package/dist/types/core/models/api/get-account-format.d.ts +5 -0
- package/dist/types/core/models/api/get-allowed-countries.d.ts +4 -0
- package/dist/types/core/models/api/get-allowed-locales.d.ts +3 -0
- package/dist/types/core/models/api/get-configuration.d.ts +62 -0
- package/dist/types/core/models/api/individual.d.ts +23 -0
- package/dist/types/core/models/api/instant-id-verification.d.ts +34 -0
- package/dist/types/core/models/api/legal-entity-association.d.ts +14 -0
- package/dist/types/core/models/api/legal-entity-type.d.ts +6 -0
- package/dist/types/core/models/api/legal-entity.d.ts +30 -0
- package/dist/types/core/models/api/organization.d.ts +30 -0
- package/dist/types/core/models/api/phone.d.ts +5 -0
- package/dist/types/core/models/api/problem.d.ts +13 -0
- package/dist/types/core/models/api/remediating-action.d.ts +4 -0
- package/dist/types/core/models/api/review.d.ts +3 -0
- package/dist/types/core/models/api/soleProprietor.d.ts +13 -0
- package/dist/types/core/models/api/transfer-instrument.d.ts +37 -0
- package/dist/types/core/models/api/trust-member-type.d.ts +8 -0
- package/dist/types/core/models/api/trust-types-value.d.ts +17 -0
- package/dist/types/core/models/api/trust.d.ts +20 -0
- package/dist/types/core/models/api/verification-error.d.ts +15 -0
- package/dist/types/core/models/api/verification-status.d.ts +6 -0
- package/dist/types/core/models/api/verify-id-number.d.ts +14 -0
- package/dist/types/core/models/company.d.ts +19 -0
- package/dist/types/core/models/country-code.d.ts +249 -0
- package/dist/types/core/models/country-config.d.ts +9 -0
- package/dist/types/core/models/currency.d.ts +19 -0
- package/dist/types/core/models/decision-maker.d.ts +55 -0
- package/dist/types/core/models/errors/capability-problems.d.ts +7 -0
- package/dist/types/core/models/errors/entity-problems.d.ts +21 -0
- package/dist/types/core/models/errors/error-message.d.ts +7 -0
- package/dist/types/core/models/errors/form-verification-errors.d.ts +3 -0
- package/dist/types/core/models/errors/maintenance-mode-error.d.ts +7 -0
- package/dist/types/core/models/errors/remediation-action-context.d.ts +4 -0
- package/dist/types/core/models/errors/remediation.d.ts +7 -0
- package/dist/types/core/models/errors/validation-error.d.ts +19 -0
- package/dist/types/core/models/field-configurations.d.ts +8 -0
- package/dist/types/core/models/form-labels.d.ts +5 -0
- package/dist/types/core/models/form-rules.d.ts +15 -0
- package/dist/types/core/models/form.d.ts +18 -0
- package/dist/types/core/models/id-verification-status.d.ts +7 -0
- package/dist/types/core/models/identity.d.ts +41 -0
- package/dist/types/core/models/payout-account.d.ts +11 -0
- package/dist/types/core/models/scenario-fields.d.ts +11 -0
- package/dist/types/core/models/sole-prop.d.ts +10 -0
- package/dist/types/core/models/trust.d.ts +25 -0
- package/dist/types/core/process-field-configurations.d.ts +66 -0
- package/dist/types/core/types.d.ts +21 -0
- package/dist/types/core/user-events.d.ts +62 -0
- package/dist/types/core/utils.d.ts +30 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/language/Language.d.ts +47 -0
- package/dist/types/language/config.d.ts +977 -0
- package/dist/types/language/index.d.ts +1 -0
- package/dist/types/language/types.d.ts +9 -0
- package/dist/types/language/utils.d.ts +59 -0
- package/dist/types/types/index.d.ts +9 -0
- package/dist/types/utils/LoadedValue.d.ts +2 -0
- package/dist/types/utils/accountHolderUtils.d.ts +7 -0
- package/dist/types/utils/addLinkedFields.d.ts +2 -0
- package/dist/types/utils/api/documentUtils.d.ts +21 -0
- package/dist/types/utils/api/processCapabilitites.d.ts +57 -0
- package/dist/types/utils/api/processValidationErrors.d.ts +9 -0
- package/dist/types/utils/bankVerification/animation.d.ts +2 -0
- package/dist/types/utils/bankVerification/dom.d.ts +1 -0
- package/dist/types/utils/bytesToSize.d.ts +1 -0
- package/dist/types/utils/company-util.d.ts +9 -0
- package/dist/types/utils/datasetUtil.d.ts +17 -0
- package/dist/types/utils/decision-maker-roles.d.ts +22 -0
- package/dist/types/utils/dropin-utils.d.ts +18 -0
- package/dist/types/utils/entity-association-util.d.ts +24 -0
- package/dist/types/utils/entity-status-util.d.ts +9 -0
- package/dist/types/utils/entriesOf.d.ts +2 -0
- package/dist/types/utils/escapeHtml.d.ts +3 -0
- package/dist/types/utils/eventHandlers/handleKeys.d.ts +5 -0
- package/dist/types/utils/file.d.ts +9 -0
- package/dist/types/utils/formUtils.d.ts +22 -0
- package/dist/types/utils/formatting/stripCountryIdFormat.d.ts +2 -0
- package/dist/types/utils/genUtils.d.ts +55 -0
- package/dist/types/utils/get-name.d.ts +8 -0
- package/dist/types/utils/get-props.d.ts +3 -0
- package/dist/types/utils/get-task-status.d.ts +8 -0
- package/dist/types/utils/getFieldsWithExistingData.d.ts +8 -0
- package/dist/types/utils/getNestedPropertyKeys.d.ts +14 -0
- package/dist/types/utils/hasDuplicates.d.ts +1 -0
- package/dist/types/utils/idGenerator.d.ts +1 -0
- package/dist/types/utils/logger.d.ts +15 -0
- package/dist/types/utils/mapping/componentApiMapping.d.ts +152 -0
- package/dist/types/utils/mapping/documentGuidanceMap.d.ts +5 -0
- package/dist/types/utils/mapping/mapEntityAssociationsToUniqueTrustMembers.d.ts +12 -0
- package/dist/types/utils/mapping/mapping.d.ts +117 -0
- package/dist/types/utils/payout-account-util.d.ts +6 -0
- package/dist/types/utils/payout-account.d.ts +2 -0
- package/dist/types/utils/recordWithDefault.d.ts +3 -0
- package/dist/types/utils/regex/basePatterns.d.ts +3 -0
- package/dist/types/utils/regex/businessRegistrationNumberPatterns.d.ts +2 -0
- package/dist/types/utils/regex/countryIdNumberPatterns.d.ts +13 -0
- package/dist/types/utils/regex/index.d.ts +5 -0
- package/dist/types/utils/regex/types.d.ts +25 -0
- package/dist/types/utils/regex/vatNumberPatterns.d.ts +17 -0
- package/dist/types/utils/remove-object-empty-values.d.ts +1 -0
- package/dist/types/utils/scroll.d.ts +1 -0
- package/dist/types/utils/trackNavigation.d.ts +10 -0
- package/dist/types/utils/trust-util.d.ts +44 -0
- package/dist/types/utils/useForwardRef.d.ts +2 -0
- package/dist/types/utils/useStateFromProp.d.ts +9 -0
- package/dist/types/utils/uuid.d.ts +1 -0
- package/dist/types/utils/validation/ValidationResult.d.ts +13 -0
- package/dist/types/utils/validation/commonValidators.d.ts +3 -0
- package/dist/types/utils/validation/types.d.ts +61 -0
- package/dist/types/utils/validatorUtils.d.ts +27 -0
- package/dist/types/utils/verification/helpers/verify-id-number-helper.d.ts +3 -0
- package/dist/types/utils/verification/verificationUtils.d.ts +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 'Destructures' properties from object - returns a new object only containing those properties that were asked for (including if those properties
|
|
3
|
+
* have values that are falsy: null, undefined, false, '').
|
|
4
|
+
*
|
|
5
|
+
* @param args - property names to select: can be either 'regular' arguments (comma separated list) or an array
|
|
6
|
+
* @returns - an object with a function 'from' that accepts a single argument - the object from which to choose properties.
|
|
7
|
+
* This function returns a new object - a copy of the original but only including the desired properties
|
|
8
|
+
*
|
|
9
|
+
* @example const strippedObj = pick('cardType', 'securityCode').from(cardObject);
|
|
10
|
+
* @example const strippedObj = pick(['cardType', 'securityCode']).from(cardObject);
|
|
11
|
+
*/
|
|
12
|
+
export declare function pick(...args: any[]): {
|
|
13
|
+
from: (obj: any) => any;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
*'Destructures' properties from object, returning a new object containing all the original objects properties except those that were specifically rejected
|
|
17
|
+
*
|
|
18
|
+
* @param args - property names to reject: can be either 'regular' arguments (comma separated list) or an array
|
|
19
|
+
* @returns - an object with a function 'from' that accepts a single argument - the object from which to reject properties.
|
|
20
|
+
* This function returns a new object - a copy of the original but excluding the selected properties
|
|
21
|
+
*
|
|
22
|
+
* @example const strippedObj = drop('permittedLengths', 'pattern', 'startingRules').from(cardObject);
|
|
23
|
+
* @example const strippedObj = drop(['permittedLengths', 'pattern', 'startingRules']).from(cardObject);
|
|
24
|
+
*/
|
|
25
|
+
export declare function drop(...args: any[]): {
|
|
26
|
+
from: (obj: any) => any;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Compares 2 arrays of (primitive) values to see if they are the same
|
|
30
|
+
* re. https://sebhastian.com/javascript-compare-array/
|
|
31
|
+
*/
|
|
32
|
+
export declare function doArraysMatch(arr1: any, arr2: any): any;
|
|
33
|
+
/**
|
|
34
|
+
* Recursively compare 2 objects
|
|
35
|
+
*/
|
|
36
|
+
export declare const objectsDeepEqual: (x: any, y: any) => any;
|
|
37
|
+
export declare function cloneObject<T>(object: T): T;
|
|
38
|
+
export declare function cloneObject<T extends unknown[]>(object: T[]): T[];
|
|
39
|
+
/**
|
|
40
|
+
* @param obj - object to reverse
|
|
41
|
+
* @example
|
|
42
|
+
* ```
|
|
43
|
+
* let obj = {a:1,b:2,c:3};
|
|
44
|
+
* reverseObject(obj); => {1:'a', 2: 'b', 3: 'c'}
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
export declare function reverseObject<K extends string | number, V extends string | number>(obj: Record<K, V>): Record<V, K>;
|
|
48
|
+
type ListifyOptions<ItemType> = {
|
|
49
|
+
type?: Intl.ListFormatOptions['type'];
|
|
50
|
+
style?: Intl.ListFormatOptions['style'];
|
|
51
|
+
stringify?: (item: ItemType) => string;
|
|
52
|
+
};
|
|
53
|
+
export declare function listify<ItemType>(array: ItemType[], { type, style, stringify, }?: ListifyOptions<ItemType>): string;
|
|
54
|
+
export declare const noop: () => void;
|
|
55
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LegalEntity } from '../core/models/api/legal-entity';
|
|
2
|
+
import Language from '../language';
|
|
3
|
+
export declare const getLegalEntityNameBasedOnType: (legalEntityResponse: LegalEntity) => string;
|
|
4
|
+
/** *
|
|
5
|
+
* In payout account the account holder name is always the legal arrangement
|
|
6
|
+
* ie: trust, soleprops etc, if they exist otherwise the legal entity name is the account holder
|
|
7
|
+
*/
|
|
8
|
+
export declare const getPayoutAccountHolderName: (legalEntity: LegalEntity, i18n: Language) => string;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { BaseFormProps, BaseInnerFormProps, BaseOuterFormProps } from '../core/hooks/useForm';
|
|
2
|
+
export declare function getFormProps<OuterFormProps extends BaseOuterFormProps<OuterFormSchema>, NestedFormProps extends BaseFormProps<NestedFormSchema>, OuterFormSchema, NestedFormSchema>(props: OuterFormProps, innerFormId: keyof OuterFormSchema): NestedFormProps | null;
|
|
3
|
+
export declare function getFieldProps<OuterFormProps extends BaseInnerFormProps<OuterFormSchema>, NestedFormProps extends BaseInnerFormProps<NestedFormSchema>, OuterFormSchema extends NestedFormSchema, NestedFormSchema>(props: OuterFormProps, innerFormFields: (keyof NestedFormSchema)[]): NestedFormProps | null;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TaskStatus } from '../components/TaskList/types';
|
|
2
|
+
import { EntityType } from '../core/models/api/entity-type';
|
|
3
|
+
import { LegalEntity } from '../core/models/api/legal-entity';
|
|
4
|
+
import { CapabilityProblems } from '../core/models/errors/capability-problems';
|
|
5
|
+
export declare const getTaskStatus: (type: EntityType, capabilityProblems: CapabilityProblems, legalEntity: LegalEntity, entityIds?: string[], skipPendingCapabilitiesCheck?: boolean) => TaskStatus;
|
|
6
|
+
export declare const hasPendingCapabilities: (legalEntityResponse: LegalEntity) => boolean;
|
|
7
|
+
export declare const hasResolvedCapabilities: (legalEntityResponse: LegalEntity) => boolean;
|
|
8
|
+
export declare function isEmptyEntity(legalEntity: LegalEntity): boolean;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CompanySchema } from '../components/Company/types';
|
|
2
|
+
import { IndividualSchema } from '../components/Individual/types';
|
|
3
|
+
import { SolePropSchema } from '../components/SoleProp/types';
|
|
4
|
+
import { TrustSchema } from '../components/Trust/types';
|
|
5
|
+
import { ExistingLegalEntity } from '../core/models/api/legal-entity';
|
|
6
|
+
import { RecursiveKeyOf } from './getNestedPropertyKeys';
|
|
7
|
+
export type AnyTLDSFieldName = RecursiveKeyOf<IndividualSchema> | RecursiveKeyOf<CompanySchema> | RecursiveKeyOf<SolePropSchema> | RecursiveKeyOf<TrustSchema>;
|
|
8
|
+
export declare const getFieldsWithExistingData: (legalEntity: ExistingLegalEntity) => AnyTLDSFieldName[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type RecursiveKeyOf<TObj extends object> = {
|
|
2
|
+
[TKey in keyof TObj & (string | number)]: RecursiveKeyOfHandleValue<TObj[TKey], `${TKey}`>;
|
|
3
|
+
}[keyof TObj & (string | number)];
|
|
4
|
+
type RecursiveKeyOfInner<TObj extends object> = {
|
|
5
|
+
[TKey in keyof TObj & (string | number)]: RecursiveKeyOfHandleValue<TObj[TKey], `.${TKey}`>;
|
|
6
|
+
}[keyof TObj & (string | number)];
|
|
7
|
+
type RecursiveKeyOfHandleValue<TValue, Text extends string> = TValue extends any[] ? Text : TValue extends object ? `${Text}${RecursiveKeyOfInner<TValue>}` : Text;
|
|
8
|
+
/**
|
|
9
|
+
* @returns A list of only the primitive keys of an object.
|
|
10
|
+
* Includes those nested within other objects, e.g. `'name.firstName'`.
|
|
11
|
+
* @param includeUndefined - whether to include properties which are defined but have a value of `undefined`.
|
|
12
|
+
*/
|
|
13
|
+
export declare function getNestedPropertyKeys<T extends object>(obj: T, includeUndefined?: boolean): Array<RecursiveKeyOf<T>>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const hasDuplicates: (arr: unknown[]) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getUniqueId: (prefix?: string) => string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const suppressLogs: () => void;
|
|
2
|
+
export interface LoggerMethods {
|
|
3
|
+
debug: (...args: any[]) => void;
|
|
4
|
+
info: (...args: any[]) => void;
|
|
5
|
+
log: (...args: any[]) => void;
|
|
6
|
+
warn: (...args: any[]) => void;
|
|
7
|
+
error: (...args: any[]) => void;
|
|
8
|
+
trace: (...args: any[]) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const consoleMethodsPrefixable: Readonly<Array<keyof LoggerMethods>>;
|
|
11
|
+
/**
|
|
12
|
+
* Creates a Logger instance
|
|
13
|
+
* @param {String} namespace - a text that should be prepended before the output
|
|
14
|
+
*/
|
|
15
|
+
export declare const createLogger: (namespace: string) => LoggerMethods;
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { CompanySchema } from '../../components/Company/types';
|
|
2
|
+
import { IndividualSchema } from '../../components/Individual/types';
|
|
3
|
+
import { SolePropSchema } from '../../components/SoleProp/types';
|
|
4
|
+
import { TrustSchema } from '../../components/Trust/types';
|
|
5
|
+
import { RecursiveKeyOf } from '../getNestedPropertyKeys';
|
|
6
|
+
export declare const mandatoryApiFields: {
|
|
7
|
+
INDIVIDUAL: Array<Partial<RecursiveKeyOf<IndividualSchema>>>;
|
|
8
|
+
DECISIONMAKER: Array<Partial<RecursiveKeyOf<IndividualSchema>>>;
|
|
9
|
+
DECISION_MAKER_OWNER: Array<Partial<RecursiveKeyOf<IndividualSchema>>>;
|
|
10
|
+
ORGANIZATION: Array<Partial<RecursiveKeyOf<CompanySchema>>>;
|
|
11
|
+
SOLE_PROPRIETORSHIP: Array<Partial<RecursiveKeyOf<SolePropSchema>>>;
|
|
12
|
+
TRUST: Array<Partial<RecursiveKeyOf<TrustSchema>>>;
|
|
13
|
+
};
|
|
14
|
+
export declare const individualMaskedFields: Array<RecursiveKeyOf<IndividualSchema>>;
|
|
15
|
+
export declare const individualComponentsKeyMapping: {
|
|
16
|
+
'personalDetails.residencyCountry': string;
|
|
17
|
+
'personalDetails.firstName': string;
|
|
18
|
+
'personalDetails.lastName': string;
|
|
19
|
+
'personalDetails.birthDate': string;
|
|
20
|
+
'personalDetails.idNumber': string;
|
|
21
|
+
'personalDetails.phoneNumber': string;
|
|
22
|
+
'personalDetails.email': string;
|
|
23
|
+
'personalDetails.idNumberExempt': string;
|
|
24
|
+
'personalDetails.typeOfIdentity': string;
|
|
25
|
+
'personalDetails.issuerState': string;
|
|
26
|
+
'personalDetails.licenseCardNumber': string;
|
|
27
|
+
'personalDetails.nationality': string;
|
|
28
|
+
'address.city': string;
|
|
29
|
+
'address.country': string;
|
|
30
|
+
'address.postalCode': string;
|
|
31
|
+
'address.stateOrProvince': string;
|
|
32
|
+
'address.street': string;
|
|
33
|
+
'address.houseNumberOrName': string;
|
|
34
|
+
};
|
|
35
|
+
export declare const individualApiKeyMapping: {
|
|
36
|
+
[x: string]: "personalDetails.firstName" | "personalDetails.lastName" | "personalDetails.issuerState" | "personalDetails.phoneNumber" | "personalDetails.email" | "personalDetails.birthDate" | "personalDetails.idNumber" | "personalDetails.licenseCardNumber" | "personalDetails.nationality" | "personalDetails.typeOfIdentity" | "personalDetails.idNumberExempt" | "address.country" | "address.street" | "address.postalCode" | "address.city" | "address.stateOrProvince" | "address.houseNumberOrName";
|
|
37
|
+
};
|
|
38
|
+
export declare const companyComponentsKeyMapping: {
|
|
39
|
+
'companyNameAndCountry.legalCompanyName': string;
|
|
40
|
+
'companyType.entityType': string;
|
|
41
|
+
'companyDetails.tradingName': string;
|
|
42
|
+
'companyDetails.registrationNumber': string;
|
|
43
|
+
'companyDetails.vatNumber': string;
|
|
44
|
+
'companyDetails.vatAbsenceReason': string;
|
|
45
|
+
'companyDetails.dateOfIncorporation': string;
|
|
46
|
+
'companyDetails.stockExchangeMIC': string;
|
|
47
|
+
'companyDetails.stockISIN': string;
|
|
48
|
+
'companyRegistrationDetails.registrationAddress.city': string;
|
|
49
|
+
'companyRegistrationDetails.registrationAddress.country': string;
|
|
50
|
+
'companyRegistrationDetails.registrationAddress.postalCode': string;
|
|
51
|
+
'companyRegistrationDetails.registrationAddress.stateOrProvince': string;
|
|
52
|
+
'companyRegistrationDetails.registrationAddress.street': string;
|
|
53
|
+
'companyRegistrationDetails.registrationAddress.houseNumberOrName': string;
|
|
54
|
+
'companyRegistrationDetails.operationalAddress.city': string;
|
|
55
|
+
'companyRegistrationDetails.operationalAddress.country': string;
|
|
56
|
+
'companyRegistrationDetails.operationalAddress.postalCode': string;
|
|
57
|
+
'companyRegistrationDetails.operationalAddress.stateOrProvince': string;
|
|
58
|
+
'companyRegistrationDetails.operationalAddress.street': string;
|
|
59
|
+
'companyRegistrationDetails.operationalAddress.houseNumberOrName': string;
|
|
60
|
+
'companyNameAndCountry.companyCountry': string;
|
|
61
|
+
'companyDetails.exemptedFromVat': string;
|
|
62
|
+
};
|
|
63
|
+
export declare const companyApiKeyMapping: {
|
|
64
|
+
[x: string]: "companyDetails.dateOfIncorporation" | "companyDetails.tradingName" | "companyDetails.stockExchangeMIC" | "companyDetails.stockISIN" | "companyDetails.vatNumber" | "companyDetails.registrationNumber" | "companyDetails.vatAbsenceReason" | "companyType.entityType" | "companyNameAndCountry.legalCompanyName" | "companyRegistrationDetails.registrationAddress.country" | "companyRegistrationDetails.registrationAddress.street" | "companyRegistrationDetails.registrationAddress.postalCode" | "companyRegistrationDetails.registrationAddress.city" | "companyRegistrationDetails.registrationAddress.stateOrProvince" | "companyRegistrationDetails.registrationAddress.houseNumberOrName" | "companyRegistrationDetails.operationalAddress.country" | "companyRegistrationDetails.operationalAddress.street" | "companyRegistrationDetails.operationalAddress.postalCode" | "companyRegistrationDetails.operationalAddress.city" | "companyRegistrationDetails.operationalAddress.stateOrProvince" | "companyRegistrationDetails.operationalAddress.houseNumberOrName";
|
|
65
|
+
};
|
|
66
|
+
export declare const payoutComponentKeyMapping: {
|
|
67
|
+
'payoutAccountDetails.transferInstrumentId': string;
|
|
68
|
+
'payoutAccountDetails.accountType': string;
|
|
69
|
+
'payoutAccountDetails.bankAccountNumber': string;
|
|
70
|
+
'payoutAccountDetails.swiftCode': string;
|
|
71
|
+
'payoutAccountDetails.bankCity': string;
|
|
72
|
+
'payoutAccountDetails.bankCode': string;
|
|
73
|
+
'payoutAccountDetails.bankName': string;
|
|
74
|
+
'payoutAccountDetails.branchCode': string;
|
|
75
|
+
'payoutAccountDetails.checkCode': string;
|
|
76
|
+
'payoutVerificationMethod.bankCountry': string;
|
|
77
|
+
'payoutAccountDetails.currency': string;
|
|
78
|
+
'payoutAccountDetails.iban': string;
|
|
79
|
+
};
|
|
80
|
+
export declare const payoutApiKeyMapping: {
|
|
81
|
+
[x: string]: "payoutAccountDetails.transferInstrumentId" | "payoutAccountDetails.accountType" | "payoutAccountDetails.bankAccountNumber" | "payoutAccountDetails.swiftCode" | "payoutAccountDetails.bankCity" | "payoutAccountDetails.bankCode" | "payoutAccountDetails.bankName" | "payoutAccountDetails.branchCode" | "payoutAccountDetails.checkCode" | "payoutVerificationMethod.bankCountry" | "payoutAccountDetails.currency" | "payoutAccountDetails.iban";
|
|
82
|
+
};
|
|
83
|
+
export declare const trustComponentsKeyMapping: {
|
|
84
|
+
'trustRegistrationDetails.trustType': string;
|
|
85
|
+
'trustRegistrationDetails.legalName': string;
|
|
86
|
+
'trustRegistrationDetails.country': string;
|
|
87
|
+
'trustRegistrationAddress.registrationAddress.city': string;
|
|
88
|
+
'trustRegistrationAddress.registrationAddress.country': string;
|
|
89
|
+
'trustRegistrationAddress.registrationAddress.postalCode': string;
|
|
90
|
+
'trustRegistrationAddress.registrationAddress.stateOrProvince': string;
|
|
91
|
+
'trustRegistrationAddress.registrationAddress.street': string;
|
|
92
|
+
'trustRegistrationAddress.registrationAddress.houseNumberOrName': string;
|
|
93
|
+
'trustRegistrationAddress.operationalAddress.city': string;
|
|
94
|
+
'trustRegistrationAddress.operationalAddress.country': string;
|
|
95
|
+
'trustRegistrationAddress.operationalAddress.postalCode': string;
|
|
96
|
+
'trustRegistrationAddress.operationalAddress.stateOrProvince': string;
|
|
97
|
+
'trustRegistrationAddress.operationalAddress.street': string;
|
|
98
|
+
'trustRegistrationAddress.operationalAddress.houseNumberOrName': string;
|
|
99
|
+
};
|
|
100
|
+
export declare const trustApiKeyMapping: {
|
|
101
|
+
[x: string]: "trustRegistrationDetails.country" | "trustRegistrationDetails.trustType" | "trustRegistrationDetails.legalName" | "trustRegistrationAddress.registrationAddress.country" | "trustRegistrationAddress.registrationAddress.street" | "trustRegistrationAddress.registrationAddress.postalCode" | "trustRegistrationAddress.registrationAddress.city" | "trustRegistrationAddress.registrationAddress.stateOrProvince" | "trustRegistrationAddress.registrationAddress.houseNumberOrName" | "trustRegistrationAddress.operationalAddress.country" | "trustRegistrationAddress.operationalAddress.street" | "trustRegistrationAddress.operationalAddress.postalCode" | "trustRegistrationAddress.operationalAddress.city" | "trustRegistrationAddress.operationalAddress.stateOrProvince" | "trustRegistrationAddress.operationalAddress.houseNumberOrName";
|
|
102
|
+
};
|
|
103
|
+
export declare const solePropComponentsKeyMapping: {
|
|
104
|
+
'solePropNameAndCountry.legalCompanyName': string;
|
|
105
|
+
'solePropNameAndCountry.companyCountry': string;
|
|
106
|
+
'solePropRegistrationDetails.tradingName': string;
|
|
107
|
+
'solePropRegistrationDetails.vatNumber': string;
|
|
108
|
+
'solePropRegistrationDetails.registrationNumber': string;
|
|
109
|
+
'solePropRegistrationDetails.vatAbsenceReason': string;
|
|
110
|
+
'solePropRegistrationAddress.registrationAddress.city': string;
|
|
111
|
+
'solePropRegistrationAddress.registrationAddress.country': string;
|
|
112
|
+
'solePropRegistrationAddress.registrationAddress.postalCode': string;
|
|
113
|
+
'solePropRegistrationAddress.registrationAddress.stateOrProvince': string;
|
|
114
|
+
'solePropRegistrationAddress.registrationAddress.street': string;
|
|
115
|
+
'solePropRegistrationAddress.registrationAddress.houseNumberOrName': string;
|
|
116
|
+
'solePropRegistrationAddress.operationalAddress.city': string;
|
|
117
|
+
'solePropRegistrationAddress.operationalAddress.country': string;
|
|
118
|
+
'solePropRegistrationAddress.operationalAddress.postalCode': string;
|
|
119
|
+
'solePropRegistrationAddress.operationalAddress.stateOrProvince': string;
|
|
120
|
+
'solePropRegistrationAddress.operationalAddress.street': string;
|
|
121
|
+
'solePropRegistrationAddress.operationalAddress.houseNumberOrName': string;
|
|
122
|
+
'solePropRegistrationDetails.exemptedFromVat': string;
|
|
123
|
+
};
|
|
124
|
+
export declare const solePropApiKeyMapping: {
|
|
125
|
+
[x: string]: "solePropNameAndCountry.companyCountry" | "solePropNameAndCountry.legalCompanyName" | "solePropRegistrationDetails.tradingName" | "solePropRegistrationDetails.vatNumber" | "solePropRegistrationDetails.registrationNumber" | "solePropRegistrationDetails.vatAbsenceReason" | "solePropRegistrationAddress.registrationAddress.country" | "solePropRegistrationAddress.registrationAddress.street" | "solePropRegistrationAddress.registrationAddress.postalCode" | "solePropRegistrationAddress.registrationAddress.city" | "solePropRegistrationAddress.registrationAddress.stateOrProvince" | "solePropRegistrationAddress.registrationAddress.houseNumberOrName" | "solePropRegistrationAddress.operationalAddress.country" | "solePropRegistrationAddress.operationalAddress.street" | "solePropRegistrationAddress.operationalAddress.postalCode" | "solePropRegistrationAddress.operationalAddress.city" | "solePropRegistrationAddress.operationalAddress.stateOrProvince" | "solePropRegistrationAddress.operationalAddress.houseNumberOrName";
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* Base api mappings do not contain document mappings as the api used for document upload is different
|
|
129
|
+
* For remediation mappings adding document mapping additionally along with the apiKeyMapping
|
|
130
|
+
*/
|
|
131
|
+
export declare const remediationCompanyApiKeyMapping: {
|
|
132
|
+
'organization.registeredAddress': string;
|
|
133
|
+
registrationDocument: string;
|
|
134
|
+
vatDocument: string;
|
|
135
|
+
};
|
|
136
|
+
export declare const remediationIndividualApiKeyMapping: {
|
|
137
|
+
'individual.residentialAddress': string;
|
|
138
|
+
'document.attachment.attachment.content': string;
|
|
139
|
+
passport: string;
|
|
140
|
+
proofOfResidency: string;
|
|
141
|
+
proofOfNationalIdNumber: string;
|
|
142
|
+
};
|
|
143
|
+
export declare const remediationPayoutApiKeyMapping: {
|
|
144
|
+
bankStatement: string;
|
|
145
|
+
bankAccount: string;
|
|
146
|
+
};
|
|
147
|
+
export declare const remediationTrustKeyMapping: {
|
|
148
|
+
constitutionalDocument: string;
|
|
149
|
+
};
|
|
150
|
+
export declare const remediationSolePropKeyMapping: {
|
|
151
|
+
constitutionalDocument: string;
|
|
152
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DocumentType } from '../../core/models/api/document';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the appropriate prefix for the document guidance image based on api documentType.
|
|
4
|
+
*/
|
|
5
|
+
export declare const getDocumentGuidancePrefix: (documentType: DocumentType, isIcon?: boolean, isFront?: boolean) => "passport" | "id" | "id-front" | "id-back" | "generic-document";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TaskStatus } from '../../components/TaskList/types';
|
|
2
|
+
import { UniqueTrustMember } from '../../components/TrustMembers/types';
|
|
3
|
+
import { LegalEntityAssociation } from '../../core/models/api/legal-entity-association';
|
|
4
|
+
/**
|
|
5
|
+
* In the API response, there are multiple {@link LegalEntityAssociation}s for the same associated entity;
|
|
6
|
+
* one for each role e.g. 'trustee', 'protector', 'settlor'...
|
|
7
|
+
*
|
|
8
|
+
* Therefore we need to combine these into one {@link UniqueTrustMember} with multiple roles.
|
|
9
|
+
* @param entityAssociations
|
|
10
|
+
* @param getTaskStatusForEntityAssociation
|
|
11
|
+
*/
|
|
12
|
+
export declare const mapEntityAssociationsToUniqueTrustMembers: (entityAssociations: LegalEntityAssociation[], getTaskStatusForEntityAssociation: (entityAssociation: LegalEntityAssociation) => TaskStatus) => UniqueTrustMember[];
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { CompanySchema } from '../../components/Company/types';
|
|
2
|
+
import { IndividualSchema } from '../../components/Individual/types';
|
|
3
|
+
import { PayoutBankStatementSchema } from '../../components/PayoutBankStatement/types';
|
|
4
|
+
import { PayoutDetailsSchema } from '../../components/PayoutDetails/types';
|
|
5
|
+
import { PersonalDetailsSchema } from '../../components/PersonalDetails/types';
|
|
6
|
+
import { SolePropSchema } from '../../components/SoleProp/types';
|
|
7
|
+
import { TrustSchema } from '../../components/Trust/types';
|
|
8
|
+
import { Document } from '../../core/models/api/document';
|
|
9
|
+
import { Individual } from '../../core/models/api/individual';
|
|
10
|
+
import { LegalEntity } from '../../core/models/api/legal-entity';
|
|
11
|
+
import { TransferInstrument } from '../../core/models/api/transfer-instrument';
|
|
12
|
+
/**
|
|
13
|
+
* Easy to use function for mapping Individual component data to a LegalEntity
|
|
14
|
+
* @param data - an Individual person data
|
|
15
|
+
* @returns a LegalEntity ready for use with API
|
|
16
|
+
*/
|
|
17
|
+
export declare const mapIndividualToLegalEntity: (data: IndividualSchema) => LegalEntity;
|
|
18
|
+
export declare const adjustIdentificationData: (data: PersonalDetailsSchema, apiData: Individual['identificationData']) => Individual['identificationData'];
|
|
19
|
+
/**
|
|
20
|
+
* Easy to use function for mapping transferInstrument response to payout account details component data
|
|
21
|
+
* @param transferInstrument - a transferInstrument the same as found in API response
|
|
22
|
+
* @returns a Payout Details person data
|
|
23
|
+
*/
|
|
24
|
+
export declare const mapTransferInstrumentToPayoutAccount: (transferInstrument: TransferInstrument) => PayoutDetailsSchema;
|
|
25
|
+
/**
|
|
26
|
+
* Easy to use function for mapping payout account details component data to transferInstrument
|
|
27
|
+
* @param payoutDetails - Details person data
|
|
28
|
+
* @returns transferInstrument - a transferInstrument the same as found in API response
|
|
29
|
+
*/
|
|
30
|
+
export declare const mapPayoutAccountToTransferInstrument: ({ data, legalEntity }: {
|
|
31
|
+
data: any;
|
|
32
|
+
legalEntity: any;
|
|
33
|
+
}) => TransferInstrument;
|
|
34
|
+
/**
|
|
35
|
+
* Easy to use function for mapping LegalEntity response to Individual component data
|
|
36
|
+
* @param legalEntity - a LegalEntity the same as found in API response
|
|
37
|
+
* @returns an Individual person data
|
|
38
|
+
*/
|
|
39
|
+
export declare const mapLegalEntityToIndividual: (legalEntity: LegalEntity, isChangingType: boolean) => IndividualSchema;
|
|
40
|
+
/**
|
|
41
|
+
* Easy to use function for mapping LegalEntity response to Company component data
|
|
42
|
+
* @param legalEntity - a LegalEntity the same as found in API response
|
|
43
|
+
* @returns an Company data
|
|
44
|
+
*/
|
|
45
|
+
export declare const mapLegalEntityToCompany: (legalEntity: LegalEntity, isChangingType: boolean) => CompanySchema;
|
|
46
|
+
/**
|
|
47
|
+
* Easy to use function for mapping Company component data to a LegalEntity
|
|
48
|
+
* @param data - an Company person data
|
|
49
|
+
* @returns a LegalEntity ready for use with API
|
|
50
|
+
*/
|
|
51
|
+
export declare const mapCompanyToLegalEntity: (data: CompanySchema) => LegalEntity;
|
|
52
|
+
export declare const mapIndividualDocumentToApiDocument: (data: IndividualSchema, entityId: any) => Promise<Document[]>;
|
|
53
|
+
export type IndividualDocumentFields = Pick<IndividualSchema, 'idDocument' | 'proofOfResidence' | 'proofOfNationalId'>;
|
|
54
|
+
export declare const mapApiDocumentToIndividualDocuments: (entityId: string) => IndividualDocumentFields;
|
|
55
|
+
export declare const mapCompanyDocumentToApiDocument: (data: CompanySchema, entityId: any) => Promise<Document[]>;
|
|
56
|
+
export declare const mapApiDocumentToCompanyDocuments: (entityId: string) => CompanySchema;
|
|
57
|
+
export declare const mapApiDocumentToPayoutDocuments: (entityId: string) => PayoutBankStatementSchema;
|
|
58
|
+
export declare const mapPayoutDocumentsToApiDocuments: (data: PayoutDetailsSchema, entityId: string) => Promise<Document>;
|
|
59
|
+
/**
|
|
60
|
+
* @param obj - source object
|
|
61
|
+
* @param mapping - key mappings between target and source object structure
|
|
62
|
+
* @example
|
|
63
|
+
* ```
|
|
64
|
+
* let mapping={ 'a.b': 'x.y.z'}
|
|
65
|
+
* let obj = {x: {y: {z: 'foo'}}}
|
|
66
|
+
* formatObject(obj, mapping) => {a:{b:'foo'}}
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
export declare const formatObject: (obj: any, mapping: {
|
|
70
|
+
[key: string]: string;
|
|
71
|
+
}) => {};
|
|
72
|
+
/**
|
|
73
|
+
* assigns the value provided to the key in targetObject.
|
|
74
|
+
* @param path - keys separated by a delimiter.
|
|
75
|
+
* @param obj - object to which value will be assigned
|
|
76
|
+
* @param val - value to be assigned
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```
|
|
80
|
+
* targetObject = {};
|
|
81
|
+
* assignToProp('x.y.z', targetObject, 'foo');
|
|
82
|
+
* console.log(targetObject); => {x:{y:{z:'foo'}}}
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
export declare function assignToProp(path: any, obj: any, val: any): void;
|
|
86
|
+
/**
|
|
87
|
+
* Easy to use function for mapping LegalEntity response to Trust component data
|
|
88
|
+
* @param legalEntity - a LegalEntity the same as found in API response
|
|
89
|
+
* @returns an Company data
|
|
90
|
+
*/
|
|
91
|
+
export declare const mapLegalEntityToTrust: (legalEntity: LegalEntity) => TrustSchema;
|
|
92
|
+
export declare const mapTrustToLegalEntity: (data: TrustSchema) => LegalEntity;
|
|
93
|
+
export declare const mapTrustDocumentToApiDocument: (data: TrustSchema, entityId: any) => Promise<Document[]>;
|
|
94
|
+
/**
|
|
95
|
+
* Easy to use function for mapping LegalEntity response to SoleProprietor component data
|
|
96
|
+
* @param legalEntity - a LegalEntity the same as found in API response
|
|
97
|
+
* @returns an SoleProp data
|
|
98
|
+
*/
|
|
99
|
+
export declare const mapLegalEntityToSoleProp: (legalEntity: LegalEntity) => SolePropSchema;
|
|
100
|
+
export declare const mapSolePropToLegalEntity: (data: SolePropSchema) => LegalEntity;
|
|
101
|
+
export declare const mapSolePropDocumentToApiDocument: (data: SolePropSchema, entityId: any) => Promise<Document[]>;
|
|
102
|
+
export declare const mapApiDocumentToSolePropDocuments: (entityId: string) => SolePropSchema;
|
|
103
|
+
export declare const getPageName: (document: Document, pageIndex?: number) => string;
|
|
104
|
+
/**
|
|
105
|
+
* returns the indicated property of an object, if it exists.
|
|
106
|
+
*
|
|
107
|
+
* @param object - The object to query
|
|
108
|
+
* @param path - The property name or path to the property
|
|
109
|
+
* @returns The value at `obj[p]`.
|
|
110
|
+
|
|
111
|
+
* @example
|
|
112
|
+
* ```
|
|
113
|
+
* getProp({x: 100}, 'x'); //=> 100
|
|
114
|
+
* getProp({}, 'x'); //=> undefined
|
|
115
|
+
* ```
|
|
116
|
+
*/
|
|
117
|
+
export declare function getProp(object: any, path: string): any;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PayoutAccountSchema } from '../components/PayoutAccount/types';
|
|
2
|
+
import { CountryCode } from '../core/models/country-code';
|
|
3
|
+
import Language from '../language/Language';
|
|
4
|
+
export declare const shouldShowPayoutAccountFormatSelector: (country: CountryCode) => boolean;
|
|
5
|
+
export declare const shouldShowPayoutAlert: (country: CountryCode) => boolean;
|
|
6
|
+
export declare const getSupportedCurrencyGuidance: (i18n: Language, country: CountryCode, requiredFields: Array<keyof PayoutAccountSchema>) => string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { CompanyTypesValue } from '../../core/models/api/company-types-value';
|
|
2
|
+
import type { CountryCode } from '../../core/models/country-code';
|
|
3
|
+
/**
|
|
4
|
+
* @property (regex)- The expression that will trigger the feedback message
|
|
5
|
+
* @property (format) - The translation key associated to the regex, defaults to using the string entered in this field if no translation exists
|
|
6
|
+
* @property (message) - The messagekey that will be triggered to the user
|
|
7
|
+
* @property (replaceChars) - The chars to be removed/replaced if provided
|
|
8
|
+
* @property (values) - A record of values provided for specific variable validation
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* // Example use of values field
|
|
12
|
+
* { regex: /^[a-zA-Z0-9]{1,9}$/, format: 'XtoYcharacters', values: { x: 1, y: 9 } }
|
|
13
|
+
*/
|
|
14
|
+
export interface RegexValidationOptions {
|
|
15
|
+
regex: RegExp;
|
|
16
|
+
format?: string;
|
|
17
|
+
message?: string;
|
|
18
|
+
replaceChars?: string;
|
|
19
|
+
values?: Record<any, any>;
|
|
20
|
+
}
|
|
21
|
+
export type CountryRegexValidation = Partial<Record<CountryCode, RegexValidationOptions | RegexValidationOptions[]>>;
|
|
22
|
+
export type CompanyTypeValidation = Partial<Record<CompanyTypesValue, RegexValidationOptions | RegexValidationOptions[]>> & {
|
|
23
|
+
default: RegexValidationOptions;
|
|
24
|
+
};
|
|
25
|
+
export type CountryAndCompanyRegexValidation = Partial<Record<CountryCode, CompanyTypeValidation>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { CountryRegexValidation } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Countries which follow the [countryCode][something] format
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* France (FR) - FR12999999999
|
|
7
|
+
*/
|
|
8
|
+
export declare const vatSpecsPerCountry: CountryRegexValidation;
|
|
9
|
+
/**
|
|
10
|
+
* Countries which do not follow the VAT rules ie the [countryCode][something] rule,
|
|
11
|
+
* and have their own system, or event a more complex setup
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* Monaco (MC) - FR12345678912
|
|
15
|
+
* Greece (GR or EL) - EL123456789
|
|
16
|
+
*/
|
|
17
|
+
export declare const nonVatSpecsPerCountry: CountryRegexValidation;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function removeObjectPropsWithEmptyValues(obj: object): object;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getScrollParent: (node: any) => any;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FormModel } from '../core/models/form';
|
|
2
|
+
import { BaseTrackingPayload } from '../core/utils';
|
|
3
|
+
import Language from '../language';
|
|
4
|
+
export declare const trackNavigation: ({ fromForm, toForm, component, baseTrackingPayload, i18n, }: {
|
|
5
|
+
fromForm: FormModel;
|
|
6
|
+
toForm: FormModel;
|
|
7
|
+
component: string;
|
|
8
|
+
baseTrackingPayload: BaseTrackingPayload;
|
|
9
|
+
i18n: Language;
|
|
10
|
+
}) => void;
|