@adyen/kyc-components 1.2.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/LICENSE +21 -0
- package/README.md +104 -0
- package/dist/adyen-kyc-components.bundle.js +18089 -0
- package/dist/adyen-kyc-components.cjs.js +18095 -0
- package/dist/adyen-kyc-components.css +59 -0
- package/dist/adyen-kyc-components.debug.js +50954 -0
- package/dist/adyen-kyc-components.esm.js +18045 -0
- package/dist/types/components/Address/Address.d.ts +7 -0
- package/dist/types/components/Address/index.d.ts +1 -0
- package/dist/types/components/BaseElement.d.ts +64 -0
- package/dist/types/components/BaseElement.test.d.ts +1 -0
- package/dist/types/components/Company/Company.d.ts +5 -0
- package/dist/types/components/Company/component/CompanyComponent.d.ts +7 -0
- package/dist/types/components/Company/index.d.ts +1 -0
- package/dist/types/components/Company/labels.d.ts +4 -0
- package/dist/types/components/Company/rules.d.ts +2 -0
- package/dist/types/components/Company/types.d.ts +36 -0
- package/dist/types/components/CompanyDetails/CompanyDetails.d.ts +5 -0
- package/dist/types/components/CompanyDetails/component/CompanyDetailsComponent.d.ts +5 -0
- package/dist/types/components/CompanyDetails/types.d.ts +15 -0
- package/dist/types/components/CompanyDetails/validate.d.ts +3 -0
- package/dist/types/components/CompanyNameAndCountry/CompanyNameAndCountry.d.ts +5 -0
- package/dist/types/components/CompanyNameAndCountry/component/CompanyNameAndCountryComponent.d.ts +4 -0
- package/dist/types/components/CompanyNameAndCountry/types.d.ts +8 -0
- package/dist/types/components/CompanyNameAndCountry/validate.d.ts +3 -0
- package/dist/types/components/CompanyType/CompanyType.d.ts +5 -0
- package/dist/types/components/CompanyType/component/CompanyTypeComponent.d.ts +5 -0
- package/dist/types/components/CompanyType/types.d.ts +8 -0
- package/dist/types/components/CompanyType/validate.d.ts +3 -0
- package/dist/types/components/ConstitutionalDocument/ConstitutionalDocumentComponent.d.ts +14 -0
- package/dist/types/components/ConstitutionalDocument/types.d.ts +11 -0
- package/dist/types/components/ContactDetails/ContactDetails.d.ts +5 -0
- package/dist/types/components/ContactDetails/component/ContactDetailsComponent.d.ts +4 -0
- package/dist/types/components/ContactDetails/types.d.ts +8 -0
- package/dist/types/components/ContactDetails/validate.d.ts +3 -0
- package/dist/types/components/DecisionMakers/DecisionMakers.d.ts +5 -0
- package/dist/types/components/DecisionMakers/component/DecisionMakersComponent.d.ts +5 -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 +21 -0
- package/dist/types/components/Dropins/CompanyDropin/CompanyDropin.d.ts +6 -0
- package/dist/types/components/Dropins/CompanyDropin/components/CompanyDropinComponent.d.ts +2 -0
- package/dist/types/components/Dropins/CompanyDropin/index.d.ts +2 -0
- package/dist/types/components/Dropins/Dropin.d.ts +21 -0
- package/dist/types/components/Dropins/DropinComposer/DropinComposer.d.ts +6 -0
- package/dist/types/components/Dropins/DropinComposer/components/DropinComposerComponent.d.ts +2 -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 +8 -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 +30 -0
- package/dist/types/components/Dropins/FormComposer/components/FormNavigation/FormNavigation.d.ts +4 -0
- package/dist/types/components/Dropins/FormComposer/components/FormNavigation/components/FormNavigationItem/FormNavigationItem.d.ts +4 -0
- package/dist/types/components/Dropins/FormComposer/components/FormNavigation/components/FormNavigationItem/index.d.ts +1 -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 +27 -0
- package/dist/types/components/Dropins/FormComposer/components/StepProgressIndicator/StepProgressIndicator.d.ts +6 -0
- package/dist/types/components/Dropins/FormComposer/types.d.ts +23 -0
- package/dist/types/components/Dropins/IndividualDropin/IndividualDropin.d.ts +6 -0
- package/dist/types/components/Dropins/IndividualDropin/components/IndividualDropinComponent.d.ts +2 -0
- package/dist/types/components/Dropins/IndividualDropin/index.d.ts +2 -0
- package/dist/types/components/Dropins/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +6 -0
- package/dist/types/components/Dropins/PayoutDetailsDropin/components/PayoutDetailsDropinComponent.d.ts +2 -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/RoleAndTypeDropin/RoleAndTypeDropin.d.ts +6 -0
- package/dist/types/components/Dropins/RoleAndTypeDropin/components/RoleAndTypeComponent.d.ts +4 -0
- package/dist/types/components/Dropins/RoleAndTypeDropin/index.d.ts +1 -0
- package/dist/types/components/Dropins/RoleAndTypeDropin/types.d.ts +9 -0
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/components/ServiceAgreementDropinComponent.d.ts +2 -0
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/index.d.ts +1 -0
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/types.d.ts +13 -0
- package/dist/types/components/Dropins/SolePropDropin/SolePropDropin.d.ts +6 -0
- package/dist/types/components/Dropins/SolePropDropin/components/SolePropDropinComponent.d.ts +2 -0
- package/dist/types/components/Dropins/SolePropDropin/index.d.ts +2 -0
- package/dist/types/components/Dropins/TrustDropin/TrustDropin.d.ts +6 -0
- package/dist/types/components/Dropins/TrustDropin/components/TrustDropinComponent.d.ts +2 -0
- package/dist/types/components/Dropins/TrustDropin/index.d.ts +2 -0
- package/dist/types/components/Dropins/types.d.ts +51 -0
- package/dist/types/components/EventEmitter.d.ts +7 -0
- package/dist/types/components/EventEmitter.test.d.ts +1 -0
- package/dist/types/components/IdDocumentUpload/IdDocumentUpload.d.ts +5 -0
- package/dist/types/components/IdDocumentUpload/component/IdDocumentUploadComponent.d.ts +6 -0
- package/dist/types/components/IdDocumentUpload/component/components/UploadSwitcher.d.ts +2 -0
- package/dist/types/components/IdDocumentUpload/component/index.d.ts +1 -0
- package/dist/types/components/IdDocumentUpload/types.d.ts +49 -0
- package/dist/types/components/IdVerification/IdVerification.d.ts +6 -0
- package/dist/types/components/IdVerification/component/IdVerificationComponent.d.ts +4 -0
- package/dist/types/components/IdVerification/component/index.d.ts +1 -0
- package/dist/types/components/IdVerification/types.d.ts +25 -0
- package/dist/types/components/IdentityNumber/IdentityNumber.d.ts +5 -0
- package/dist/types/components/IdentityNumber/component/IdentityNumberComponent.d.ts +5 -0
- package/dist/types/components/IdentityNumber/formats.d.ts +12 -0
- package/dist/types/components/IdentityNumber/type.d.ts +10 -0
- package/dist/types/components/IdentityNumber/validate.d.ts +24 -0
- package/dist/types/components/IdentityNumber/validate.helper.d.ts +5 -0
- package/dist/types/components/Individual/Individual.d.ts +5 -0
- package/dist/types/components/Individual/component/IndividualComponent.d.ts +7 -0
- package/dist/types/components/Individual/index.d.ts +1 -0
- package/dist/types/components/Individual/rules.d.ts +3 -0
- package/dist/types/components/Individual/types.d.ts +47 -0
- package/dist/types/components/IndividualDocumentUpload/component/IndividualDocumentUploadComponent.d.ts +0 -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/PayoutAccount/PayoutAccount.d.ts +5 -0
- package/dist/types/components/PayoutAccount/component/PayoutAccountComponent.d.ts +6 -0
- package/dist/types/components/PayoutAccount/types.d.ts +28 -0
- package/dist/types/components/PayoutBankStatement/PayoutBankStatement.d.ts +5 -0
- package/dist/types/components/PayoutBankStatement/component/PayoutBankStatementComponent.d.ts +6 -0
- package/dist/types/components/PayoutBankStatement/types.d.ts +20 -0
- package/dist/types/components/PayoutDetails/PayoutDetails.d.ts +5 -0
- package/dist/types/components/PayoutDetails/component/PayoutDetailsComponent.d.ts +6 -0
- package/dist/types/components/PayoutDetails/types.d.ts +27 -0
- package/dist/types/components/PersonalDetails/PersonalDetails.d.ts +5 -0
- package/dist/types/components/PersonalDetails/component/PersonalDetailsComponent.d.ts +4 -0
- package/dist/types/components/PersonalDetails/index.d.ts +1 -0
- package/dist/types/components/PersonalDetails/types.d.ts +19 -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 +14 -0
- package/dist/types/components/RegistrationAddress/RegistrationAddress.d.ts +5 -0
- package/dist/types/components/RegistrationAddress/component/RegistrationAddressComponent.d.ts +6 -0
- package/dist/types/components/RegistrationAddress/types.d.ts +24 -0
- package/dist/types/components/RegistrationAddress/validate.d.ts +3 -0
- package/dist/types/components/SoleProp/SoleProp.d.ts +5 -0
- package/dist/types/components/SoleProp/component/SolePropComponent.d.ts +6 -0
- package/dist/types/components/SoleProp/types.d.ts +28 -0
- package/dist/types/components/TaskList/TaskList.d.ts +5 -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 +4 -0
- package/dist/types/components/TaskList/types.d.ts +59 -0
- package/dist/types/components/Trust/Trust.d.ts +5 -0
- package/dist/types/components/Trust/component/TrustComponent.d.ts +6 -0
- package/dist/types/components/Trust/types.d.ts +22 -0
- package/dist/types/components/TrustDocumentUpload/TrustDocumentUpload.d.ts +5 -0
- package/dist/types/components/TrustDocumentUpload/component/TrustDocumentUploadComponent.d.ts +6 -0
- package/dist/types/components/TrustDocumentUpload/types.d.ts +5 -0
- package/dist/types/components/TrustMembers/TrustMembers.d.ts +5 -0
- package/dist/types/components/TrustMembers/component/TrustMembersComponent.d.ts +5 -0
- package/dist/types/components/TrustMembers/types.d.ts +18 -0
- package/dist/types/components/TrustRegistrationDetails/TrustRegistrationDetails.d.ts +5 -0
- package/dist/types/components/TrustRegistrationDetails/component/TrustRegistrationDetailsComponent.d.ts +4 -0
- package/dist/types/components/TrustRegistrationDetails/types.d.ts +15 -0
- package/dist/types/components/TrustRegistrationDetails/validate.d.ts +3 -0
- package/dist/types/components/TrustRoleAndEntityType/TrustRoleAndEntityType.d.ts +5 -0
- package/dist/types/components/TrustRoleAndEntityType/component/TrustRoleAndEntityTypeComponent.d.ts +3 -0
- package/dist/types/components/TrustRoleAndEntityType/types.d.ts +18 -0
- package/dist/types/components/TrustRoleAndEntityType/validate.d.ts +3 -0
- package/dist/types/components/UIElement.d.ts +34 -0
- package/dist/types/components/index.d.ts +27 -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 +17 -0
- package/dist/types/components/internal/AccountHolder/validate.d.ts +3 -0
- package/dist/types/components/internal/Address/Address.d.ts +13 -0
- package/dist/types/components/internal/Address/Address.test.d.ts +1 -0
- package/dist/types/components/internal/Address/components/CountryField.d.ts +3 -0
- package/dist/types/components/internal/Address/components/CountryField.test.d.ts +1 -0
- package/dist/types/components/internal/Address/components/FieldContainer.d.ts +9 -0
- package/dist/types/components/internal/Address/components/FieldContainer.test.d.ts +1 -0
- package/dist/types/components/internal/Address/components/ReadOnlyAddress.d.ts +3 -0
- package/dist/types/components/internal/Address/components/SearchAddress.d.ts +3 -0
- package/dist/types/components/internal/Address/components/StateField.d.ts +2 -0
- package/dist/types/components/internal/Address/components/StateField.test.d.ts +1 -0
- package/dist/types/components/internal/Address/constants.d.ts +6 -0
- package/dist/types/components/internal/Address/index.d.ts +1 -0
- package/dist/types/components/internal/Address/types.d.ts +82 -0
- package/dist/types/components/internal/Address/utils.d.ts +19 -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/Alert.test.d.ts +1 -0
- package/dist/types/components/internal/Alert/components/ReviewAlert.d.ts +2 -0
- package/dist/types/components/internal/Alert/components/VerficationErrorAlert.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/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/index.d.ts +1 -0
- package/dist/types/components/internal/BusinessRegistrationNumber/registrationNoValidator.d.ts +368 -0
- package/dist/types/components/internal/BusinessRegistrationNumber/registrationNoValidator.test.d.ts +1 -0
- package/dist/types/components/internal/BusinessRegistrationNumber/types.d.ts +10 -0
- package/dist/types/components/internal/BusinessRegistrationNumber/validate.d.ts +14 -0
- package/dist/types/components/internal/Button/Button.d.ts +17 -0
- package/dist/types/components/internal/Button/Button.test.d.ts +1 -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 +3 -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/CardLayout/CardLayout.d.ts +3 -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/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 +82 -0
- package/dist/types/components/internal/Currency/Currency.d.ts +5 -0
- package/dist/types/components/internal/Currency/Currency.test.d.ts +1 -0
- package/dist/types/components/internal/Currency/index.d.ts +1 -0
- package/dist/types/components/internal/Currency/types.d.ts +11 -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 +3 -0
- package/dist/types/components/internal/EntityAssociation/EntityAssociations.test.d.ts +1 -0
- package/dist/types/components/internal/EntityAssociation/types.d.ts +19 -0
- package/dist/types/components/internal/ErrorPanel/ErrorPanel.d.ts +13 -0
- package/dist/types/components/internal/ErrorPanel/ErrorPanel.test.d.ts +1 -0
- package/dist/types/components/internal/ErrorPanel/components/NavigateToFieldLink.d.ts +5 -0
- package/dist/types/components/internal/ErrorPanel/components/ServerValidationErrors.d.ts +3 -0
- package/dist/types/components/internal/ErrorPanel/components/VerificationErrors.d.ts +3 -0
- package/dist/types/components/internal/ErrorPanel/constants.d.ts +1 -0
- package/dist/types/components/internal/ErrorPanel/types.d.ts +33 -0
- package/dist/types/components/internal/FormFields/Checkbox/Checkbox.d.ts +21 -0
- package/dist/types/components/internal/FormFields/Checkbox/Checkbox.test.d.ts +1 -0
- package/dist/types/components/internal/FormFields/Checkbox/index.d.ts +1 -0
- package/dist/types/components/internal/FormFields/ConsentCheckbox/ConsentCheckbox.d.ts +6 -0
- package/dist/types/components/internal/FormFields/Dropzone/Dropzone.d.ts +17 -0
- package/dist/types/components/internal/FormFields/Dropzone/Dropzone.test.d.ts +1 -0
- package/dist/types/components/internal/FormFields/Dropzone/components/DropzoneFile.d.ts +3 -0
- package/dist/types/components/internal/FormFields/Dropzone/types.d.ts +27 -0
- package/dist/types/components/internal/FormFields/Dropzone/validate.d.ts +3 -0
- package/dist/types/components/internal/FormFields/Field/Field.d.ts +40 -0
- package/dist/types/components/internal/FormFields/Field/index.d.ts +1 -0
- package/dist/types/components/internal/FormFields/Field/types.d.ts +28 -0
- package/dist/types/components/internal/FormFields/Fieldset/Fieldset.d.ts +10 -0
- package/dist/types/components/internal/FormFields/Fieldset/Fieldset.test.d.ts +1 -0
- package/dist/types/components/internal/FormFields/Fieldset/index.d.ts +1 -0
- package/dist/types/components/internal/FormFields/InputBase.d.ts +25 -0
- package/dist/types/components/internal/FormFields/InputDate/InputDate.d.ts +5 -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/InputDate/utils.test.d.ts +1 -0
- package/dist/types/components/internal/FormFields/InputEmail.d.ts +1 -0
- package/dist/types/components/internal/FormFields/InputFile.d.ts +1 -0
- package/dist/types/components/internal/FormFields/InputRadio/InputRadio.d.ts +3 -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/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 +17 -0
- package/dist/types/components/internal/FormFields/RadioGroupCard/RadioGroupCard.d.ts +10 -0
- package/dist/types/components/internal/FormFields/RadioGroupCard/RadioGroupCard.test.d.ts +1 -0
- package/dist/types/components/internal/FormFields/RadioGroupCard/index.d.ts +1 -0
- package/dist/types/components/internal/FormFields/RadioGroupCard/types.d.ts +18 -0
- package/dist/types/components/internal/FormFields/Select/Select.d.ts +4 -0
- package/dist/types/components/internal/FormFields/Select/Select.test.d.ts +1 -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 +113 -0
- package/dist/types/components/internal/FormFields/TextArea.d.ts +1 -0
- package/dist/types/components/internal/FormFields/index.d.ts +3 -0
- package/dist/types/components/internal/FormFields/utils.d.ts +2 -0
- package/dist/types/components/internal/FormFields/utils.test.d.ts +1 -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 +8 -0
- package/dist/types/components/internal/Iban/Iban.d.ts +3 -0
- package/dist/types/components/internal/Iban/ibanValidator.d.ts +1 -0
- package/dist/types/components/internal/Iban/ibanValidator.test.d.ts +1 -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 +7 -0
- package/dist/types/components/internal/Icon/Icon.test.d.ts +1 -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 +5 -0
- package/dist/types/components/internal/LegalCompanyName/validate.d.ts +3 -0
- package/dist/types/components/internal/Link/Link.d.ts +6 -0
- package/dist/types/components/internal/Link/Link.test.d.ts +1 -0
- package/dist/types/components/internal/Link/index.d.ts +1 -0
- package/dist/types/components/internal/Link/types.d.ts +12 -0
- package/dist/types/components/internal/List/List.d.ts +4 -0
- package/dist/types/components/internal/List/List.test.d.ts +1 -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 +12 -0
- package/dist/types/components/internal/LoaderWrapper/constants.d.ts +6 -0
- package/dist/types/components/internal/LoaderWrapper/index.d.ts +1 -0
- package/dist/types/components/internal/Modal/Modal.d.ts +4 -0
- package/dist/types/components/internal/Modal/Modal.test.d.ts +1 -0
- package/dist/types/components/internal/Modal/type.d.ts +15 -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/PartOfTrust/PartOfTrust.d.ts +3 -0
- package/dist/types/components/internal/PartOfTrust/index.d.ts +1 -0
- package/dist/types/components/internal/PartOfTrust/types.d.ts +20 -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 +4 -0
- package/dist/types/components/internal/Role/Role.d.ts +3 -0
- package/dist/types/components/internal/Role/index.d.ts +1 -0
- package/dist/types/components/internal/Role/types.d.ts +11 -0
- package/dist/types/components/internal/Role/validate.d.ts +3 -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 +17 -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 +54 -0
- package/dist/types/components/internal/TaxId/taxIdValidation.d.ts +4 -0
- package/dist/types/components/internal/TaxId/taxIdValidation.test.d.ts +1 -0
- package/dist/types/components/internal/TaxId/types.d.ts +34 -0
- package/dist/types/components/internal/TaxId/validate.d.ts +4 -0
- package/dist/types/components/internal/Toast/Toast.d.ts +9 -0
- package/dist/types/components/internal/Toast/index.d.ts +1 -0
- package/dist/types/components/internal/Toast/types.d.ts +14 -0
- package/dist/types/components/internal/VatNumber/VatNumber.d.ts +8 -0
- package/dist/types/components/internal/VatNumber/index.d.ts +1 -0
- package/dist/types/components/internal/VatNumber/rules.d.ts +181 -0
- package/dist/types/components/internal/VatNumber/types.d.ts +25 -0
- package/dist/types/components/internal/VatNumber/validate.d.ts +4 -0
- package/dist/types/components/internal/VatNumber/vatNumberValidation.d.ts +4 -0
- package/dist/types/components/internal/VatNumber/vatNumberValidation.test.d.ts +1 -0
- package/dist/types/core/Context/CoreContext.d.ts +19 -0
- package/dist/types/core/Context/CoreProvider.d.ts +46 -0
- package/dist/types/core/Context/FormRouterContext/FormRouterContext.d.ts +1 -0
- package/dist/types/core/Context/FormRouterContext/FormRouterContextProvider.d.ts +3 -0
- package/dist/types/core/Context/FormRouterContext/types.d.ts +7 -0
- package/dist/types/core/Context/FormRouterContext/useFormRouterContext.d.ts +2 -0
- package/dist/types/core/Context/StateContext/StateContext.d.ts +1 -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 +5 -0
- package/dist/types/core/Context/StateContext/StateReducer.d.ts +11 -0
- package/dist/types/core/Context/StateContext/types.d.ts +34 -0
- package/dist/types/core/Context/StateContext/useStateContext.d.ts +2 -0
- package/dist/types/core/Context/ToastContext/ToastContext.d.ts +1 -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 +18 -0
- package/dist/types/core/Environment/Environment.d.ts +2 -0
- package/dist/types/core/Environment/Environment.test.d.ts +1 -0
- package/dist/types/core/Environment/index.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 +14 -0
- package/dist/types/core/Services/fetch.d.ts +2 -0
- package/dist/types/core/Services/get-configuration-data.d.ts +20 -0
- package/dist/types/core/Services/get-dataset.d.ts +2 -0
- package/dist/types/core/Services/get-fonts.d.ts +16 -0
- package/dist/types/core/Services/get-images.d.ts +3 -0
- package/dist/types/core/Services/http.d.ts +16 -0
- package/dist/types/core/Services/verify-id-number.d.ts +2 -0
- package/dist/types/core/config.d.ts +11 -0
- package/dist/types/core/constants.d.ts +10 -0
- package/dist/types/core/core.d.ts +30 -0
- package/dist/types/core/core.test.d.ts +1 -0
- package/dist/types/core/errorMapping.d.ts +127 -0
- package/dist/types/core/models/api/address.d.ts +18 -0
- package/dist/types/core/models/api/attachment.d.ts +5 -0
- package/dist/types/core/models/api/capability.d.ts +9 -0
- package/dist/types/core/models/api/company-types-value.d.ts +10 -0
- package/dist/types/core/models/api/configuration.d.ts +15 -0
- package/dist/types/core/models/api/contracts.d.ts +76 -0
- package/dist/types/core/models/api/data-set.d.ts +5 -0
- package/dist/types/core/models/api/decision-maker-type.d.ts +5 -0
- package/dist/types/core/models/api/document.d.ts +25 -0
- package/dist/types/core/models/api/entity-type.d.ts +5 -0
- package/dist/types/core/models/api/id-verification-data.d.ts +5 -0
- package/dist/types/core/models/api/individual.d.ts +22 -0
- package/dist/types/core/models/api/instant-id-verification.d.ts +27 -0
- package/dist/types/core/models/api/legal-entity-association.d.ts +12 -0
- package/dist/types/core/models/api/legal-entity-type.d.ts +6 -0
- package/dist/types/core/models/api/legal-entity.d.ts +25 -0
- package/dist/types/core/models/api/organization.d.ts +36 -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/soleProprietor.d.ts +13 -0
- package/dist/types/core/models/api/transfer-instrument.d.ts +25 -0
- package/dist/types/core/models/api/trust-member-type.d.ts +7 -0
- package/dist/types/core/models/api/trust-types-value.d.ts +17 -0
- package/dist/types/core/models/api/trust.d.ts +14 -0
- package/dist/types/core/models/api/verification-error.d.ts +12 -0
- package/dist/types/core/models/api/verification-status.d.ts +6 -0
- package/dist/types/core/models/company.d.ts +17 -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 +68 -0
- package/dist/types/core/models/errors/capability-problems.d.ts +7 -0
- package/dist/types/core/models/errors/entity-problems.d.ts +19 -0
- package/dist/types/core/models/errors/error-message.d.ts +5 -0
- package/dist/types/core/models/errors/field-errors.d.ts +4 -0
- package/dist/types/core/models/errors/form-verification-errors.d.ts +6 -0
- package/dist/types/core/models/errors/remediation-action-context.d.ts +4 -0
- package/dist/types/core/models/errors/remediation.d.ts +5 -0
- package/dist/types/core/models/errors/validation-error.d.ts +14 -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 +6 -0
- package/dist/types/core/models/form.d.ts +17 -0
- package/dist/types/core/models/id-verification-status.d.ts +7 -0
- package/dist/types/core/models/identity.d.ts +33 -0
- package/dist/types/core/models/payout-account.d.ts +16 -0
- package/dist/types/core/models/scenario-fields.d.ts +9 -0
- package/dist/types/core/models/sole-prop.d.ts +10 -0
- package/dist/types/core/models/trust.d.ts +7 -0
- package/dist/types/core/process-field-configurations.d.ts +76 -0
- package/dist/types/core/types.d.ts +18 -0
- package/dist/types/core/user-events.d.ts +65 -0
- package/dist/types/core/user-events.test.d.ts +1 -0
- package/dist/types/core/utils.d.ts +36 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/language/Language.d.ts +46 -0
- package/dist/types/language/Language.test.d.ts +1 -0
- package/dist/types/language/config.d.ts +774 -0
- package/dist/types/language/index.d.ts +1 -0
- package/dist/types/language/types.d.ts +6 -0
- package/dist/types/language/utils.d.ts +53 -0
- package/dist/types/language/utils.test.d.ts +1 -0
- package/dist/types/types/index.d.ts +9 -0
- package/dist/types/utils/Validator/Validator.d.ts +35 -0
- package/dist/types/utils/Validator/Validator.test.d.ts +1 -0
- package/dist/types/utils/Validator/types.d.ts +44 -0
- package/dist/types/utils/accountHolderUtils.d.ts +19 -0
- package/dist/types/utils/api/documentUtils.d.ts +20 -0
- package/dist/types/utils/api/processCapabilitites.d.ts +56 -0
- package/dist/types/utils/api/processValidationErrors.d.ts +9 -0
- package/dist/types/utils/bytesToSize.d.ts +1 -0
- package/dist/types/utils/company-util.d.ts +6 -0
- package/dist/types/utils/datasetUtil.d.ts +15 -0
- package/dist/types/utils/debounce.d.ts +1 -0
- package/dist/types/utils/decision-maker-roles.d.ts +49 -0
- package/dist/types/utils/decision-maker-roles.test.d.ts +4 -0
- package/dist/types/utils/entity-association-util.d.ts +91 -0
- package/dist/types/utils/entity-association-util.test.d.ts +4 -0
- package/dist/types/utils/file.d.ts +9 -0
- package/dist/types/utils/formUtils.d.ts +15 -0
- package/dist/types/utils/genUtils.d.ts +61 -0
- package/dist/types/utils/genUtils.test.d.ts +1 -0
- package/dist/types/utils/get-image.d.ts +11 -0
- package/dist/types/utils/get-image.test.d.ts +1 -0
- package/dist/types/utils/get-name.d.ts +1 -0
- package/dist/types/utils/get-props.d.ts +4 -0
- package/dist/types/utils/get-task-status.d.ts +9 -0
- package/dist/types/utils/get-task-status.test.d.ts +1 -0
- package/dist/types/utils/idGenerator.d.ts +1 -0
- package/dist/types/utils/mapping/componentApiMapping.d.ts +123 -0
- package/dist/types/utils/mapping/documentGuidanceMap.d.ts +6 -0
- package/dist/types/utils/mapping/mapping.d.ts +112 -0
- package/dist/types/utils/payout-account.d.ts +2 -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/trust-util.d.ts +75 -0
- package/dist/types/utils/trust-util.test.d.ts +4 -0
- package/dist/types/utils/useForm/index.d.ts +1 -0
- package/dist/types/utils/useForm/reducer.d.ts +16 -0
- package/dist/types/utils/useForm/types.d.ts +91 -0
- package/dist/types/utils/useForm/useForm.d.ts +11 -0
- package/dist/types/utils/useForm/useForm.test.d.ts +1 -0
- package/dist/types/utils/uuid.d.ts +1 -0
- package/dist/types/utils/uuid.test.d.ts +1 -0
- package/dist/types/utils/validatorUtils.d.ts +27 -0
- package/dist/types/utils/verification/helpers/verifyIDNumber.d.ts +17 -0
- package/dist/types/utils/verification/verificationUtils.d.ts +7 -0
- package/package.json +93 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Language';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { CustomTranslations } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Matches a string with one of the locales
|
|
4
|
+
* @param locale -
|
|
5
|
+
* @param supportedLocales -
|
|
6
|
+
|
|
7
|
+
* @example
|
|
8
|
+
* matchLocale('en-GB');
|
|
9
|
+
* // 'en-US'
|
|
10
|
+
*/
|
|
11
|
+
export declare function matchLocale(locale: string, supportedLocales: any): string;
|
|
12
|
+
/**
|
|
13
|
+
* Returns a locale with the proper format
|
|
14
|
+
* @param localeParam -
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* formatLocale('En_us');
|
|
18
|
+
* // 'en-US'
|
|
19
|
+
*/
|
|
20
|
+
export declare function formatLocale(localeParam: string): string;
|
|
21
|
+
/**
|
|
22
|
+
* Checks the locale format.
|
|
23
|
+
* Also checks if it's on the locales array.
|
|
24
|
+
* If it is not, tries to match it with one.
|
|
25
|
+
* @param locale -
|
|
26
|
+
* @param supportedLocales -
|
|
27
|
+
*/
|
|
28
|
+
export declare function parseLocale(locale: string, supportedLocales?: string[]): string;
|
|
29
|
+
/**
|
|
30
|
+
* Formats the locales inside the customTranslations object against the supportedLocales
|
|
31
|
+
* @param customTranslations -
|
|
32
|
+
* @param supportedLocales -
|
|
33
|
+
*/
|
|
34
|
+
export declare function formatCustomTranslations(customTranslations: object, supportedLocales: string[]): CustomTranslations;
|
|
35
|
+
/**
|
|
36
|
+
* Returns an array with all the locales
|
|
37
|
+
* @param locale - The locale the user wants to use
|
|
38
|
+
* @param customTranslations -
|
|
39
|
+
*/
|
|
40
|
+
export declare const getTranslations: ({ locale, loadingContext, clientKey, customTranslations }: {
|
|
41
|
+
locale: any;
|
|
42
|
+
loadingContext: any;
|
|
43
|
+
clientKey: any;
|
|
44
|
+
customTranslations?: {};
|
|
45
|
+
}) => Promise<any>;
|
|
46
|
+
/**
|
|
47
|
+
* Returns an LanguageCode from local
|
|
48
|
+
* @param locale - The locale the user wants to use
|
|
49
|
+
*
|
|
50
|
+
* @example for getLanguageCode('en-US')
|
|
51
|
+
* // returns 'en'
|
|
52
|
+
*/
|
|
53
|
+
export declare const getLanguageCode: (locale: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ADDRESS_SCHEMA } from '../components/internal/Address/constants';
|
|
2
|
+
export declare type AddressField = typeof ADDRESS_SCHEMA[number];
|
|
3
|
+
export declare type AddressSchema = {
|
|
4
|
+
[key in AddressField]?: string;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Visibility options for a fieldset
|
|
8
|
+
*/
|
|
9
|
+
export declare type FieldsetVisibility = 'editable' | 'hidden' | 'readOnly';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ErrorMessageObject, FieldContext, FieldData, ValidatorRules } from './types';
|
|
2
|
+
export interface ValidationRuleResult {
|
|
3
|
+
isValid: boolean;
|
|
4
|
+
errorMessage: string | ErrorMessageObject;
|
|
5
|
+
hasError: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare type ValidationRuleResults = {
|
|
8
|
+
[key: string]: ValidationRuleResult;
|
|
9
|
+
};
|
|
10
|
+
declare class ValidationResult {
|
|
11
|
+
private validationResults;
|
|
12
|
+
constructor(results: ValidationRuleResult[]);
|
|
13
|
+
/** Checks if all validation rules have passed */
|
|
14
|
+
get isValid(): boolean;
|
|
15
|
+
/** Checks if any validation rule returned an error */
|
|
16
|
+
hasError(): boolean;
|
|
17
|
+
/** Returns the first validation result that returned an error */
|
|
18
|
+
getError(): ValidationRuleResult;
|
|
19
|
+
/** Returns all validation results that returned an error */
|
|
20
|
+
getAllErrors(): ValidationRuleResult[];
|
|
21
|
+
}
|
|
22
|
+
declare class Validator<FormSchema> {
|
|
23
|
+
rules: ValidatorRules<FormSchema>;
|
|
24
|
+
constructor(rules: ValidatorRules<FormSchema>);
|
|
25
|
+
setRules(newRules: ValidatorRules<FormSchema>): void;
|
|
26
|
+
/**
|
|
27
|
+
* Get all validation rules for a field
|
|
28
|
+
*/
|
|
29
|
+
private getRulesFor;
|
|
30
|
+
/**
|
|
31
|
+
* Validates a field
|
|
32
|
+
*/
|
|
33
|
+
validate<Field extends keyof FormSchema>({ key, value, mode }: FieldData<FormSchema, Field>, context?: FieldContext): ValidationResult;
|
|
34
|
+
}
|
|
35
|
+
export default Validator;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
declare type ValidatorMode = 'blur' | 'input';
|
|
2
|
+
export declare type ErrorMessageObject = {
|
|
3
|
+
translationKey: string;
|
|
4
|
+
translationObject: any;
|
|
5
|
+
};
|
|
6
|
+
export declare type Ruleset = {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
export declare type CountryRuleset = {
|
|
10
|
+
[country: string]: Ruleset;
|
|
11
|
+
};
|
|
12
|
+
export interface Format<ValueType> {
|
|
13
|
+
formatter?: (value: ValueType, context?: any) => string;
|
|
14
|
+
format?: string;
|
|
15
|
+
maxlength?: number;
|
|
16
|
+
}
|
|
17
|
+
export declare type FormatRules<FormSchema> = Partial<{
|
|
18
|
+
[field in keyof FormSchema]: Format<FormSchema[field]>;
|
|
19
|
+
}>;
|
|
20
|
+
export declare type CountryFormatRules<FormSchema> = {
|
|
21
|
+
[country: string]: FormatRules<FormSchema>;
|
|
22
|
+
};
|
|
23
|
+
export interface ValidatorRule<ValueType> {
|
|
24
|
+
validate: (value: ValueType, context?: any) => boolean;
|
|
25
|
+
errorMessage?: string | ErrorMessageObject;
|
|
26
|
+
modes: ValidatorMode[];
|
|
27
|
+
}
|
|
28
|
+
export declare type ValidatorRules<FormSchema> = Partial<{
|
|
29
|
+
[field in keyof FormSchema]: ValidatorRule<FormSchema[field]> | ValidatorRule<FormSchema[field]>[];
|
|
30
|
+
}>;
|
|
31
|
+
export declare type CountryBasedValidatorRules<FormSchema> = {
|
|
32
|
+
[country: string]: ValidatorRules<FormSchema>;
|
|
33
|
+
};
|
|
34
|
+
export interface FieldData<FormSchema, Field extends keyof FormSchema> {
|
|
35
|
+
key: Field;
|
|
36
|
+
value: FormSchema[Field];
|
|
37
|
+
mode?: ValidatorMode;
|
|
38
|
+
}
|
|
39
|
+
export interface FieldContext {
|
|
40
|
+
state: {
|
|
41
|
+
[key: string]: any;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AccountHolderTypes } from '../components/internal/AccountHolder/types';
|
|
2
|
+
import { LegalEntityType } from '../core/models/api/legal-entity-type';
|
|
3
|
+
export declare const accountHolderTypes: {
|
|
4
|
+
id: AccountHolderTypes;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
type: LegalEntityType;
|
|
8
|
+
}[];
|
|
9
|
+
export declare const accountHolderTypesForOrganization: {
|
|
10
|
+
id: AccountHolderTypes;
|
|
11
|
+
name: string;
|
|
12
|
+
description: string;
|
|
13
|
+
type: LegalEntityType;
|
|
14
|
+
}[];
|
|
15
|
+
/**
|
|
16
|
+
** Accountholder type value is not stored in backend as it does not effect any check evaluations.
|
|
17
|
+
** The value is computed in the front end based on the associations and current flow of the legalEntity
|
|
18
|
+
**/
|
|
19
|
+
export declare const getDefaultAccountHolderType: (legalEntityResponse: any, isTypeChanging?: boolean) => AccountHolderTypes;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import Document, { DocumentType } from '../../core/models/api/document';
|
|
2
|
+
export declare type DocumentApiUtils = {
|
|
3
|
+
fetchDocuments(documentIds: Array<string>, entityId: string): Promise<Array<Document>>;
|
|
4
|
+
fetchDocument(documentId: string, entityId: string): Promise<Document>;
|
|
5
|
+
uploadDocuments(documents: Array<Document>, entityId: string): Promise<Array<Document>>;
|
|
6
|
+
};
|
|
7
|
+
declare const documentApiUtils: (createDocumentHandler: any, getDocumentHandler: any, updateDocumentHandler: any) => DocumentApiUtils;
|
|
8
|
+
export declare const getDocument: (entityId: string, documentType: DocumentType) => Document;
|
|
9
|
+
export declare const getDocuments: (entityId: string) => Array<Document>;
|
|
10
|
+
export declare const getIdDocument: (entityId: string) => Document;
|
|
11
|
+
export declare const createDocumentRequest: ({ entityId, entityType, documentType, page1, page2, description }: {
|
|
12
|
+
entityId: any;
|
|
13
|
+
entityType: any;
|
|
14
|
+
documentType: any;
|
|
15
|
+
page1: any;
|
|
16
|
+
page2?: any;
|
|
17
|
+
description?: any;
|
|
18
|
+
}) => Promise<Document>;
|
|
19
|
+
export declare const getFileExtention: (fileName: string) => string;
|
|
20
|
+
export default documentApiUtils;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { CapabilityProblems } from '../../core/models/errors/capability-problems';
|
|
2
|
+
import LegalEntity from '../../core/models/api/legal-entity';
|
|
3
|
+
import RemediationActionContext from '../../core/models/errors/remediation-action-context';
|
|
4
|
+
import { Remediation } from '../../core/models/errors/remediation';
|
|
5
|
+
/***
|
|
6
|
+
* Processes the capability problems and parses the problems into below form
|
|
7
|
+
* The resulting object segregates the errors based on form and fields they are mapped to
|
|
8
|
+
* and maps them to a task item. Also provides the errorCounts per entity and per form.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```
|
|
12
|
+
* {
|
|
13
|
+
* BankAccount: { // Group errors based on supporting entity type
|
|
14
|
+
* [id]: {
|
|
15
|
+
* errors: {
|
|
16
|
+
* [formId]: {
|
|
17
|
+
* [parentErrorCode]: {
|
|
18
|
+
* [subErrorCode]: [
|
|
19
|
+
* {
|
|
20
|
+
* { code: '1_300', forms: ['personalDetails'], fields: ['firstName', 'lastName'] }
|
|
21
|
+
* }
|
|
22
|
+
* ]
|
|
23
|
+
* }
|
|
24
|
+
* },
|
|
25
|
+
* },
|
|
26
|
+
* remediationActions: {
|
|
27
|
+
* '1_300': { code: '1_300', forms: ['personalDetails'], fields: ['firstName', 'lastName'] }
|
|
28
|
+
* }
|
|
29
|
+
* }
|
|
30
|
+
* },
|
|
31
|
+
* LegalEntity: { // will contain main entity as well as associated entity Problems
|
|
32
|
+
* [id]: {
|
|
33
|
+
* errors: {
|
|
34
|
+
* [formId]: {
|
|
35
|
+
* [parentErrorCode]: {
|
|
36
|
+
* [subErrorCode]: [
|
|
37
|
+
* {
|
|
38
|
+
* { code: '1_300', forms: ['personalDetails'], fields: ['firstName', 'lastName'] }
|
|
39
|
+
* }
|
|
40
|
+
* ]
|
|
41
|
+
* }
|
|
42
|
+
* },
|
|
43
|
+
* },
|
|
44
|
+
* remediationActions: {
|
|
45
|
+
* '1_300': { code: '1_300', forms: ['personalDetails'], fields: ['firstName', 'lastName'] }
|
|
46
|
+
* }
|
|
47
|
+
* }
|
|
48
|
+
* }
|
|
49
|
+
*};
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* */
|
|
53
|
+
declare function getCapabilityProblems(response: LegalEntity): CapabilityProblems;
|
|
54
|
+
declare const getComponentMappingFromLEFieldPath: (context: RemediationActionContext) => any;
|
|
55
|
+
export declare const remediationHasFileUploadField: (remediation: Remediation) => boolean;
|
|
56
|
+
export { getCapabilityProblems, getComponentMappingFromLEFieldPath };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TaskTypes } from '../../components/TaskList/types';
|
|
2
|
+
import { ValidationError } from '../../core/models/errors/validation-error';
|
|
3
|
+
/**
|
|
4
|
+
* Processes server validation errors received from an erroneous HTTP response.
|
|
5
|
+
* @param validationError - the validation error contain all invalid fields.
|
|
6
|
+
* @param dropinTask - the dropin page we are processing validations for.
|
|
7
|
+
*/
|
|
8
|
+
declare const processValidationErrors: (validationError: ValidationError, dropinTask: TaskTypes) => {};
|
|
9
|
+
export default processValidationErrors;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function bytesToSize(bytes: number): string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare type DatasetUtil = {
|
|
2
|
+
getCountryName: (countryCode: any) => string;
|
|
3
|
+
getStateName: (stateCode: any, countryCode: any) => string;
|
|
4
|
+
getPhonePrefix: (countryCode: any) => string;
|
|
5
|
+
setDataset: (datasetKey: any, dataset: any) => void;
|
|
6
|
+
getDataset: (identifier: any) => any;
|
|
7
|
+
getDatasetKey: (identifier: any) => string;
|
|
8
|
+
};
|
|
9
|
+
export declare const datasetIdentifier: {
|
|
10
|
+
country: string;
|
|
11
|
+
state: (countryCode: any) => string;
|
|
12
|
+
phonePrefix: string;
|
|
13
|
+
translations: string;
|
|
14
|
+
};
|
|
15
|
+
export default function datasetUtilities(locale: any): DatasetUtil;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function debounce<T extends Function>(cb: T, wait?: number): T;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { DecisionMakerType } from '../core/models/api/decision-maker-type';
|
|
2
|
+
import Language from '../language/Language';
|
|
3
|
+
import LegalEntity from '../core/models/api/legal-entity';
|
|
4
|
+
import LegalEntityAssociation from '../core/models/api/legal-entity-association';
|
|
5
|
+
import { TaskTypes } from '../components/TaskList/types';
|
|
6
|
+
export declare const getTranslatedDecisionMakerRoles: (i18n: Language, allowedRoles?: DecisionMakerType[]) => ({
|
|
7
|
+
name: string;
|
|
8
|
+
description: string;
|
|
9
|
+
id: DecisionMakerType;
|
|
10
|
+
className: string;
|
|
11
|
+
} | {
|
|
12
|
+
name: string;
|
|
13
|
+
description: string;
|
|
14
|
+
id: DecisionMakerType;
|
|
15
|
+
className: string;
|
|
16
|
+
} | {
|
|
17
|
+
name: string;
|
|
18
|
+
description: string;
|
|
19
|
+
id: DecisionMakerType;
|
|
20
|
+
className: string;
|
|
21
|
+
})[];
|
|
22
|
+
export declare const getDecisionMakerTagColor: (decisionMakerType: DecisionMakerType) => string;
|
|
23
|
+
export declare const getDecisionMakerName: (decisionMakerType: DecisionMakerType) => string;
|
|
24
|
+
export declare const getOwnDecisionMakers: (legalEntity: LegalEntity) => Array<LegalEntityAssociation>;
|
|
25
|
+
export declare const getOwnSignatories: (legalEntity: LegalEntity) => LegalEntityAssociation[];
|
|
26
|
+
export declare const getOwnDecisionMakersLegalEntityIds: (legalEntity: LegalEntity) => string[];
|
|
27
|
+
export declare const getDecisionMakerCount: (legalEntityResponse: LegalEntity) => {};
|
|
28
|
+
export declare const getAllowedDecisionMakerRoles: (legalEntityResponse: LegalEntity, taskType: TaskTypes) => DecisionMakerType[];
|
|
29
|
+
export declare const hasMinRequiredDecisionMakerCount: (legalEntityResponse: LegalEntity) => boolean;
|
|
30
|
+
export declare const decisionMakerRoles: {
|
|
31
|
+
uboThroughControl: {
|
|
32
|
+
id: DecisionMakerType;
|
|
33
|
+
name: string;
|
|
34
|
+
description: string;
|
|
35
|
+
className: string;
|
|
36
|
+
};
|
|
37
|
+
uboThroughOwnership: {
|
|
38
|
+
id: DecisionMakerType;
|
|
39
|
+
name: string;
|
|
40
|
+
description: string;
|
|
41
|
+
className: string;
|
|
42
|
+
};
|
|
43
|
+
signatory: {
|
|
44
|
+
id: DecisionMakerType;
|
|
45
|
+
name: string;
|
|
46
|
+
description: string;
|
|
47
|
+
className: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import LegalEntityAssociation from '../core/models/api/legal-entity-association';
|
|
2
|
+
import Language from '../language';
|
|
3
|
+
import LegalEntity from '../core/models/api/legal-entity';
|
|
4
|
+
import { CapabilityProblems } from '../core/models/errors/capability-problems';
|
|
5
|
+
import { EntityProblems } from '../core/models/errors/entity-problems';
|
|
6
|
+
export declare const entityAssociationRoles: {
|
|
7
|
+
uboThroughControl: {
|
|
8
|
+
id: import("../core/models/api/decision-maker-type").DecisionMakerType;
|
|
9
|
+
name: string;
|
|
10
|
+
description: string;
|
|
11
|
+
className: string;
|
|
12
|
+
};
|
|
13
|
+
uboThroughOwnership: {
|
|
14
|
+
id: import("../core/models/api/decision-maker-type").DecisionMakerType;
|
|
15
|
+
name: string;
|
|
16
|
+
description: string;
|
|
17
|
+
className: string;
|
|
18
|
+
};
|
|
19
|
+
signatory: {
|
|
20
|
+
id: import("../core/models/api/decision-maker-type").DecisionMakerType;
|
|
21
|
+
name: string;
|
|
22
|
+
description: string;
|
|
23
|
+
className: string;
|
|
24
|
+
};
|
|
25
|
+
definedBeneficiary: {
|
|
26
|
+
id: import("../core/models/api/trust-member-type").TrustMemberType;
|
|
27
|
+
name: string;
|
|
28
|
+
description: string;
|
|
29
|
+
className: string;
|
|
30
|
+
};
|
|
31
|
+
protector: {
|
|
32
|
+
id: import("../core/models/api/trust-member-type").TrustMemberType;
|
|
33
|
+
name: string;
|
|
34
|
+
description: string;
|
|
35
|
+
className: string;
|
|
36
|
+
};
|
|
37
|
+
secondaryTrustee: {
|
|
38
|
+
id: import("../core/models/api/trust-member-type").TrustMemberType;
|
|
39
|
+
name: string;
|
|
40
|
+
description: string;
|
|
41
|
+
className: string;
|
|
42
|
+
};
|
|
43
|
+
settlor: {
|
|
44
|
+
id: import("../core/models/api/trust-member-type").TrustMemberType;
|
|
45
|
+
name: string;
|
|
46
|
+
description: string;
|
|
47
|
+
className: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export declare const getEntityAssociationTagColor: (entityAssociationType: LegalEntityAssociation['type']) => any;
|
|
51
|
+
export declare const getEntityAssociationName: (entityAssociationType: LegalEntityAssociation['type']) => any;
|
|
52
|
+
export declare const getTranslatedEntityAssociationRoles: (i18n: Language, allowedRoles?: LegalEntityAssociation['type']) => ({
|
|
53
|
+
name: string;
|
|
54
|
+
description: string;
|
|
55
|
+
id: import("../core/models/api/trust-member-type").TrustMemberType;
|
|
56
|
+
className: string;
|
|
57
|
+
} | {
|
|
58
|
+
name: string;
|
|
59
|
+
description: string;
|
|
60
|
+
id: import("../core/models/api/trust-member-type").TrustMemberType;
|
|
61
|
+
className: string;
|
|
62
|
+
} | {
|
|
63
|
+
name: string;
|
|
64
|
+
description: string;
|
|
65
|
+
id: import("../core/models/api/trust-member-type").TrustMemberType;
|
|
66
|
+
className: string;
|
|
67
|
+
} | {
|
|
68
|
+
name: string;
|
|
69
|
+
description: string;
|
|
70
|
+
id: import("../core/models/api/trust-member-type").TrustMemberType;
|
|
71
|
+
className: string;
|
|
72
|
+
} | {
|
|
73
|
+
name: string;
|
|
74
|
+
description: string;
|
|
75
|
+
id: import("../core/models/api/decision-maker-type").DecisionMakerType;
|
|
76
|
+
className: string;
|
|
77
|
+
} | {
|
|
78
|
+
name: string;
|
|
79
|
+
description: string;
|
|
80
|
+
id: import("../core/models/api/decision-maker-type").DecisionMakerType;
|
|
81
|
+
className: string;
|
|
82
|
+
} | {
|
|
83
|
+
name: string;
|
|
84
|
+
description: string;
|
|
85
|
+
id: import("../core/models/api/decision-maker-type").DecisionMakerType;
|
|
86
|
+
className: string;
|
|
87
|
+
})[];
|
|
88
|
+
export declare const getOwnEntityAssociations: (legalEntity: LegalEntity) => Array<LegalEntityAssociation>;
|
|
89
|
+
export declare const getOwnSoleProprietorshipIdArray: (legalEntity: LegalEntity) => Array<string>;
|
|
90
|
+
export declare const hasSolePropInLegalEntity: (legalEntity: LegalEntity) => boolean;
|
|
91
|
+
export declare const getOwnSolePropProblems: (legalEntity: LegalEntity, capabilityProblems: CapabilityProblems) => EntityProblems;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const downloadFile: (base64: any, filename: any) => Promise<void>;
|
|
2
|
+
export declare const base64ToBlob: (base64: any, mimeType?: string) => Blob;
|
|
3
|
+
/**
|
|
4
|
+
* Utility to save Blob|File reference to disk as a new file
|
|
5
|
+
*
|
|
6
|
+
* @param fileData -
|
|
7
|
+
* @param filename -
|
|
8
|
+
*/
|
|
9
|
+
export declare const saveBlobAsFile: (fileData: any, filename: any) => void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare type FormUtils = {
|
|
2
|
+
getPlaceholder: (field: any, fallbackPlaceholderKey?: any) => string;
|
|
3
|
+
getLabel: (field: any, fallbackLabelKey?: any) => string;
|
|
4
|
+
isRequiredField: (field: any, showIfNotInRequiredFields?: any) => boolean;
|
|
5
|
+
isOptionalField: (field: any) => boolean;
|
|
6
|
+
isVisibleField: (field: any, showIfNotInRequiredFields?: any) => boolean;
|
|
7
|
+
isReadOnly: (field: any) => boolean;
|
|
8
|
+
getVal: (val: getValProps) => string;
|
|
9
|
+
getErrorMessage: (field: any, errors: any, fieldProblems: any) => string | boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare type getValProps = string | {
|
|
12
|
+
translationKey: string;
|
|
13
|
+
translationObject: object;
|
|
14
|
+
};
|
|
15
|
+
export default function formUtilities(props: any, i18n?: any): FormUtils;
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
/**
|
|
38
|
+
* returns the clone of an object.
|
|
39
|
+
* Only supports simple data types and does not look for circular references
|
|
40
|
+
* A complete implementation of deepclone would be an overkill currently.
|
|
41
|
+
* @param object - object to be cloned
|
|
42
|
+
* @returns cloned object.
|
|
43
|
+
*/
|
|
44
|
+
export declare function cloneObject(object: any): any;
|
|
45
|
+
/**
|
|
46
|
+
* @param obj - object to reverse
|
|
47
|
+
* @example
|
|
48
|
+
* ```
|
|
49
|
+
* let obj = {a:1,b:2,c:3};
|
|
50
|
+
* reverseObject(obj); => {1:'a', 2: 'b', 3: 'c'}
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
export declare function reverseObject(obj: any): any;
|
|
54
|
+
declare type ListifyOptions<ItemType> = {
|
|
55
|
+
type?: Intl.ListFormatOptions['type'];
|
|
56
|
+
style?: Intl.ListFormatOptions['style'];
|
|
57
|
+
stringify?: (item: ItemType) => string;
|
|
58
|
+
};
|
|
59
|
+
export declare function listify<ItemType>(array: Array<ItemType>, { type, style, stringify }?: ListifyOptions<ItemType>): string;
|
|
60
|
+
export declare const noop: () => void;
|
|
61
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface ImageOptions {
|
|
2
|
+
extension?: string;
|
|
3
|
+
path?: string;
|
|
4
|
+
loadingContext?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
size?: string;
|
|
7
|
+
svgOptions?: string;
|
|
8
|
+
type?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const getImageUrl: ({ loadingContext, extension, size, ...options }: ImageOptions) => Function;
|
|
11
|
+
export default getImageUrl;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getLegalEntityNameBasedOnType: (legalEntityResponse: any) => any;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { BaseFormProps, BaseInnerFormProps, BaseOuterFormProps } from './useForm/types';
|
|
2
|
+
declare function getFormProps<OuterFormProps extends BaseOuterFormProps<OuterFormSchema>, NestedFormProps extends BaseFormProps<NestedFormSchema>, OuterFormSchema, NestedFormSchema>(props: OuterFormProps, innerFormId: any): NestedFormProps;
|
|
3
|
+
declare function getFieldProps<OuterFormProps extends BaseInnerFormProps<OuterFormSchema>, NestedFormProps extends BaseInnerFormProps<NestedFormSchema>, OuterFormSchema extends NestedFormSchema, NestedFormSchema>(props: OuterFormProps, innerFormFields: any): NestedFormProps;
|
|
4
|
+
export { getFieldProps, getFormProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EntityType } from '../core/models/api/entity-type';
|
|
2
|
+
import { TaskStatus } from '../components/TaskList/types';
|
|
3
|
+
import { CapabilityProblems } from '../core/models/errors/capability-problems';
|
|
4
|
+
import LegalEntity from '../core/models/api/legal-entity';
|
|
5
|
+
declare const getTaskStatus: (type: EntityType, capabilityProblems: CapabilityProblems, legalEntity: LegalEntity, entityIds?: string[]) => TaskStatus;
|
|
6
|
+
export declare const hasPendingCapabilities: (legalEntityResponse: LegalEntity) => boolean;
|
|
7
|
+
export declare const hasResolvedCapabilities: (legalEntityResponse: LegalEntity) => boolean;
|
|
8
|
+
export declare const isEmptyEntity: (legalEntityResponse: LegalEntity) => boolean;
|
|
9
|
+
export default getTaskStatus;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getUniqueId: (prefix?: string) => string;
|