@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,14 @@
|
|
|
1
|
+
import Address from './address';
|
|
2
|
+
import { TrustTypes } from './trust-types-value';
|
|
3
|
+
import { VatAbsenceReason } from './organization';
|
|
4
|
+
export default interface Trust {
|
|
5
|
+
name: string;
|
|
6
|
+
doingBusinessAs: string;
|
|
7
|
+
type: TrustTypes;
|
|
8
|
+
countryOfGoverningLaw: string;
|
|
9
|
+
vatNumber: string;
|
|
10
|
+
vatAbsenceReason: VatAbsenceReason;
|
|
11
|
+
registrationNumber: string;
|
|
12
|
+
registeredAddress: Address;
|
|
13
|
+
principalPlaceOfBusiness: Address;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default interface VerificationError {
|
|
2
|
+
code: string;
|
|
3
|
+
message: string;
|
|
4
|
+
type: VeriificationErrorType;
|
|
5
|
+
subErrors?: VerificationError[];
|
|
6
|
+
remediatingActions?: VerificationError[];
|
|
7
|
+
}
|
|
8
|
+
export declare enum VeriificationErrorType {
|
|
9
|
+
DATA_MISSING = "dataMissing",
|
|
10
|
+
INVALID_INPUT = "invalidInput",
|
|
11
|
+
PENDING_STATUS = "pendingStatus"
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ScenarioFields, ScenarioFieldSettings } from './scenario-fields';
|
|
2
|
+
import { CountryConfig } from './country-config';
|
|
3
|
+
interface CompanyTypeModel {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const companyBase: {
|
|
9
|
+
[key: string]: ScenarioFieldSettings;
|
|
10
|
+
};
|
|
11
|
+
export declare const taxIdBase: {
|
|
12
|
+
[key: string]: ScenarioFieldSettings;
|
|
13
|
+
};
|
|
14
|
+
export declare const companyTypes: CompanyTypeModel[];
|
|
15
|
+
export declare const fieldsPerScenario: ScenarioFields<typeof companyBase>;
|
|
16
|
+
export declare const countryConfig: CountryConfig;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare enum Currency {
|
|
2
|
+
AUD = "AUD",
|
|
3
|
+
BGN = "BGN",
|
|
4
|
+
BRL = "BRL",
|
|
5
|
+
CAD = "CAD",
|
|
6
|
+
CHF = "CHF",
|
|
7
|
+
CZK = "CZK",
|
|
8
|
+
DKK = "DKK",
|
|
9
|
+
EUR = "EUR",
|
|
10
|
+
GBP = "GBP",
|
|
11
|
+
HUF = "HUF",
|
|
12
|
+
HRK = "HRK",
|
|
13
|
+
PLN = "PLN",
|
|
14
|
+
NOK = "NOK",
|
|
15
|
+
RON = "RON",
|
|
16
|
+
SGD = "SGD",
|
|
17
|
+
SEK = "SEK",
|
|
18
|
+
USD = "USD"
|
|
19
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { DecisionMakerType } from './api/decision-maker-type';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* When providing DECISION_MAKER_COUNT_RANGE configuration per country - keep in mind that you need to specify rules for each role individually even if you have a mixed rule between them.
|
|
5
|
+
*
|
|
6
|
+
* This give us more flexibility to have:
|
|
7
|
+
* 1- rules for each role
|
|
8
|
+
* 2- different rules for mixed roles if there's any
|
|
9
|
+
*
|
|
10
|
+
* Examples
|
|
11
|
+
* A- provide at most 4 (controlling person - or - owners) but at least it should have 1 owner ...
|
|
12
|
+
* B- provide at least 1 (controlling person - or - an owner) but max 4 owners and no max for controlling ...
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* let's say we want to write the config for the above [example B] it should look like this:
|
|
16
|
+
* ```
|
|
17
|
+
* [
|
|
18
|
+
* {
|
|
19
|
+
* // === the mixed rule ===
|
|
20
|
+
* roleTypes: [DecisionMakerType.CONTROLLING_PERSON, DecisionMakerType.OWNER],
|
|
21
|
+
* min: 1,
|
|
22
|
+
* max: Infinity
|
|
23
|
+
* },
|
|
24
|
+
* {
|
|
25
|
+
* // === specify each individually ===
|
|
26
|
+
* roleTypes: [DecisionMakerType.OWNER],
|
|
27
|
+
* min: 0,
|
|
28
|
+
* max: 4
|
|
29
|
+
* },
|
|
30
|
+
* {
|
|
31
|
+
* // === specify each individually ===
|
|
32
|
+
* roleTypes: [DecisionMakerType.CONTROLLING_PERSON],
|
|
33
|
+
* min: 0,
|
|
34
|
+
* max: Infinity
|
|
35
|
+
* }
|
|
36
|
+
* ]
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* each of the rules have different max to apply.
|
|
40
|
+
*
|
|
41
|
+
* */
|
|
42
|
+
export declare const DEFAULT_DECISION_MAKER_COUNT_RANGE: ({
|
|
43
|
+
roleTypes: DecisionMakerType[];
|
|
44
|
+
min: number;
|
|
45
|
+
max?: undefined;
|
|
46
|
+
} | {
|
|
47
|
+
roleTypes: DecisionMakerType[];
|
|
48
|
+
min: number;
|
|
49
|
+
max: number;
|
|
50
|
+
})[];
|
|
51
|
+
export declare const US_BR_DECISION_MAKER_COUNT_RANGE: {
|
|
52
|
+
roleTypes: DecisionMakerType[];
|
|
53
|
+
min: number;
|
|
54
|
+
max: number;
|
|
55
|
+
}[];
|
|
56
|
+
export declare const getDecisionMakerCountRangeConfig: (country: string) => ({
|
|
57
|
+
roleTypes: DecisionMakerType[];
|
|
58
|
+
min: number;
|
|
59
|
+
max?: undefined;
|
|
60
|
+
} | {
|
|
61
|
+
roleTypes: DecisionMakerType[];
|
|
62
|
+
min: number;
|
|
63
|
+
max: number;
|
|
64
|
+
})[];
|
|
65
|
+
export declare const getDecisionMakerDescriptions: (country: string) => {
|
|
66
|
+
roleType: DecisionMakerType[];
|
|
67
|
+
description: string;
|
|
68
|
+
}[];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FormVerificationErrors } from './form-verification-errors';
|
|
2
|
+
import { Remediation } from './remediation';
|
|
3
|
+
import { TaskStatus } from '../../../components/TaskList/types';
|
|
4
|
+
import VerificationError from '../api/verification-error';
|
|
5
|
+
export declare type EntityProblems = {
|
|
6
|
+
verificationErrors: {
|
|
7
|
+
[formId: string]: FormVerificationErrors;
|
|
8
|
+
};
|
|
9
|
+
remediationActions: {
|
|
10
|
+
[remediationCode: string]: Remediation;
|
|
11
|
+
};
|
|
12
|
+
status: TaskStatus;
|
|
13
|
+
missingData: VerificationError[];
|
|
14
|
+
validationErrors?: {
|
|
15
|
+
[formId: string]: {
|
|
16
|
+
[fieldName: string]: any;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface InvalidField {
|
|
2
|
+
name: string;
|
|
3
|
+
value: any;
|
|
4
|
+
message: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ValidationError {
|
|
7
|
+
type: string;
|
|
8
|
+
title: string;
|
|
9
|
+
status: number;
|
|
10
|
+
detail: string;
|
|
11
|
+
requestId: string;
|
|
12
|
+
invalidFields: InvalidField[];
|
|
13
|
+
errorCode: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ScenarioFieldSettings } from './scenario-fields';
|
|
2
|
+
import { CountryFieldConfig } from './country-config';
|
|
3
|
+
interface FieldConfiguration<FieldType> extends ScenarioFieldSettings<FieldType>, CountryFieldConfig {
|
|
4
|
+
}
|
|
5
|
+
declare type FieldConfigurations<FormSchema> = {
|
|
6
|
+
[key in keyof FormSchema]: FieldConfiguration<FormSchema[key]>;
|
|
7
|
+
};
|
|
8
|
+
export default FieldConfigurations;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface Form {
|
|
2
|
+
formId: string;
|
|
3
|
+
formName: string;
|
|
4
|
+
fields?: Array<any>;
|
|
5
|
+
isValid?: boolean;
|
|
6
|
+
hideNavigation?: boolean;
|
|
7
|
+
hideActionBar?: boolean;
|
|
8
|
+
hasServerValidationErrors?: boolean;
|
|
9
|
+
verifyForm?(formId?: string): Promise<any>;
|
|
10
|
+
triggerValidation?(): void;
|
|
11
|
+
triggerCurrentFormValidation?(): void;
|
|
12
|
+
isCurrentFormValid?(): boolean;
|
|
13
|
+
customNavigationHandler?(): void;
|
|
14
|
+
}
|
|
15
|
+
export interface FormList {
|
|
16
|
+
[field: string]: Form;
|
|
17
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ScenarioFieldSettings } from './scenario-fields';
|
|
2
|
+
import { CountryConfig } from './country-config';
|
|
3
|
+
export declare const identityBase: {
|
|
4
|
+
[key: string]: ScenarioFieldSettings;
|
|
5
|
+
};
|
|
6
|
+
export declare const identityNumber: {
|
|
7
|
+
[key: string]: ScenarioFieldSettings;
|
|
8
|
+
};
|
|
9
|
+
export declare const idDocument: {
|
|
10
|
+
[key: string]: ScenarioFieldSettings;
|
|
11
|
+
};
|
|
12
|
+
export declare const nationality: {
|
|
13
|
+
[key: string]: ScenarioFieldSettings;
|
|
14
|
+
};
|
|
15
|
+
export declare const fieldsPerScenario: {
|
|
16
|
+
L0: any;
|
|
17
|
+
L1: {
|
|
18
|
+
[key: string]: ScenarioFieldSettings<unknown>;
|
|
19
|
+
};
|
|
20
|
+
L1_ID: {
|
|
21
|
+
[x: string]: ScenarioFieldSettings<unknown>;
|
|
22
|
+
};
|
|
23
|
+
L1_IDO: {
|
|
24
|
+
[x: string]: ScenarioFieldSettings<unknown>;
|
|
25
|
+
};
|
|
26
|
+
L1_NAT: {
|
|
27
|
+
[x: string]: ScenarioFieldSettings<unknown>;
|
|
28
|
+
};
|
|
29
|
+
L1_IDDOC: {
|
|
30
|
+
[key: string]: ScenarioFieldSettings<unknown>;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export declare const countryConfig: CountryConfig;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CountryConfig } from './country-config';
|
|
2
|
+
import { ValidatorRule } from '../../utils/Validator/types';
|
|
3
|
+
export declare const payoutFieldsMapping: {
|
|
4
|
+
BANK_CODE: string;
|
|
5
|
+
BRANCH_CODE: string;
|
|
6
|
+
COUNTRY: string;
|
|
7
|
+
NUMBER: string;
|
|
8
|
+
BANK_CITY: string;
|
|
9
|
+
SWIFT_CODE: string;
|
|
10
|
+
IBAN: string;
|
|
11
|
+
OWNER_NAME: string;
|
|
12
|
+
BANK_NAME: string;
|
|
13
|
+
OWNER_CITY: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const countryConfig: CountryConfig;
|
|
16
|
+
export declare const getValidatorRules: (validationName: string) => ValidatorRule<string>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ValidatorRule } from '../../utils/Validator/types';
|
|
2
|
+
export declare type ScenarioFields<Schema> = Record<string, {
|
|
3
|
+
[key in keyof Schema]: ScenarioFieldSettings<Schema[key]>;
|
|
4
|
+
}>;
|
|
5
|
+
export interface ScenarioFieldSettings<FieldType = unknown> {
|
|
6
|
+
rule?: string;
|
|
7
|
+
verify?: boolean;
|
|
8
|
+
validators?: ValidatorRule<FieldType>[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ScenarioFields, ScenarioFieldSettings } from './scenario-fields';
|
|
2
|
+
import { CountryConfig } from './country-config';
|
|
3
|
+
export declare const solePropBase: {
|
|
4
|
+
[key: string]: ScenarioFieldSettings;
|
|
5
|
+
};
|
|
6
|
+
export declare const taxIdBase: {
|
|
7
|
+
[key: string]: ScenarioFieldSettings;
|
|
8
|
+
};
|
|
9
|
+
export declare const fieldsPerScenario: ScenarioFields<typeof solePropBase>;
|
|
10
|
+
export declare const countryConfig: CountryConfig;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ScenarioFields, ScenarioFieldSettings } from './scenario-fields';
|
|
2
|
+
import { CountryConfig } from './country-config';
|
|
3
|
+
export declare const trustBase: {
|
|
4
|
+
[key: string]: ScenarioFieldSettings;
|
|
5
|
+
};
|
|
6
|
+
export declare const fieldsPerScenario: ScenarioFields<typeof trustBase>;
|
|
7
|
+
export declare const countryConfig: CountryConfig;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { Remediation } from './models/errors/remediation';
|
|
2
|
+
import FieldConfigurations from './models/field-configurations';
|
|
3
|
+
import { FormList } from './models/form';
|
|
4
|
+
import { SolePropSchema } from '../components/SoleProp/types';
|
|
5
|
+
export declare function parseIndividualScenarios<FormSchema>(scenario: any, country: any): FieldConfigurations<FormSchema>;
|
|
6
|
+
export declare function parseCompanyScenarios<FormSchema>(scenario: any, country: any): FieldConfigurations<FormSchema>;
|
|
7
|
+
export declare function parseTrustScenarios<FormSchema>(scenario: any, country: any): FieldConfigurations<FormSchema>;
|
|
8
|
+
export declare function parseSolePropScenarios(scenario: any, country: any): FieldConfigurations<SolePropSchema>;
|
|
9
|
+
export declare function parsePayoutScenarios({ requiredFields, country, bankStatementRequirement }: {
|
|
10
|
+
requiredFields: any;
|
|
11
|
+
country: any;
|
|
12
|
+
bankStatementRequirement: any;
|
|
13
|
+
}): {};
|
|
14
|
+
/**
|
|
15
|
+
* function: getPropsFromScenarios
|
|
16
|
+
*
|
|
17
|
+
* Configurations are stored as a flat list of fields and their properties.(see identity.ts), they
|
|
18
|
+
* should be agnostic of how forms are structured and implemented. While parsing the configurations
|
|
19
|
+
* the form structure information will be used to generate props specific to the passed form.
|
|
20
|
+
* This also means the field names in configurations and forms should match.
|
|
21
|
+
*
|
|
22
|
+
* @returns value Eg:
|
|
23
|
+
* ```
|
|
24
|
+
* {
|
|
25
|
+
* requiredFields: {
|
|
26
|
+
* personalDetails: ['firstName', 'lastName', 'idNumber', 'residencyCountry' ],
|
|
27
|
+
* contactDetails: ['phoneNumber', 'email']
|
|
28
|
+
* },
|
|
29
|
+
* optionalFields: {
|
|
30
|
+
* contactDetails: ['email']
|
|
31
|
+
* },
|
|
32
|
+
* labels: {
|
|
33
|
+
* personalDetails: {
|
|
34
|
+
* firstName: 'givenName',
|
|
35
|
+
* lastName: 'surName'
|
|
36
|
+
* }
|
|
37
|
+
* },
|
|
38
|
+
* placeholders: {
|
|
39
|
+
* personalDetails: {
|
|
40
|
+
* firstName: 'givenName',
|
|
41
|
+
* }
|
|
42
|
+
* },
|
|
43
|
+
* validators: {
|
|
44
|
+
* phoneNumber: {
|
|
45
|
+
* validate: (value, context?) => boolean;
|
|
46
|
+
* errorMessage?: string | ErrorMessageObject;
|
|
47
|
+
* modes: 'blur' | 'input';
|
|
48
|
+
* }
|
|
49
|
+
* }
|
|
50
|
+
*
|
|
51
|
+
* }
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
export declare function getPropsFromConfigurations<FormSchema>(scenarioConfiguration: FieldConfigurations<FormSchema>, customRules: {}, customLabels: {}, forms: FormList, remediationActions?: Remediation[]): {
|
|
55
|
+
verifyFields: {
|
|
56
|
+
[field in keyof FormSchema]: any;
|
|
57
|
+
};
|
|
58
|
+
requiredFields: {
|
|
59
|
+
[field in keyof FormSchema]: any;
|
|
60
|
+
};
|
|
61
|
+
validators: {
|
|
62
|
+
[field in keyof FormSchema]: any;
|
|
63
|
+
};
|
|
64
|
+
placeholders: {
|
|
65
|
+
[field in keyof FormSchema]: any;
|
|
66
|
+
};
|
|
67
|
+
optionalFields: {
|
|
68
|
+
[field in keyof FormSchema]: any;
|
|
69
|
+
};
|
|
70
|
+
allFields: {
|
|
71
|
+
[field in keyof FormSchema]: any;
|
|
72
|
+
};
|
|
73
|
+
labels: {
|
|
74
|
+
[field in keyof FormSchema]: any;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CustomTranslations, Locales } from '../language/types';
|
|
2
|
+
export interface CoreOptions {
|
|
3
|
+
environment?: 'test' | 'live' | string;
|
|
4
|
+
/**
|
|
5
|
+
* A public key linked to your web service user, used to fetch reference data.
|
|
6
|
+
*/
|
|
7
|
+
clientKey?: string;
|
|
8
|
+
/**
|
|
9
|
+
* @defaultValue 'en-US'
|
|
10
|
+
*/
|
|
11
|
+
locale?: Locales | string;
|
|
12
|
+
/**
|
|
13
|
+
* Custom translations and localizations
|
|
14
|
+
*/
|
|
15
|
+
translations?: CustomTranslations;
|
|
16
|
+
countryCode?: string;
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
interface UserEvent {
|
|
2
|
+
/** How many times has the event occurred */
|
|
3
|
+
count?: number;
|
|
4
|
+
/** Duration of the event */
|
|
5
|
+
dur?: number;
|
|
6
|
+
/** Sum to report with the event */
|
|
7
|
+
sum?: number;
|
|
8
|
+
/** Object with segments should be a flat object (arbitrary key/value pairs for event data) */
|
|
9
|
+
segmentation?: {
|
|
10
|
+
[key: string]: string | number | boolean | Array<any> | null;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
interface EventQueueItem {
|
|
14
|
+
eventName: string;
|
|
15
|
+
eventPayload?: UserEvent;
|
|
16
|
+
}
|
|
17
|
+
interface UserEventCallback {
|
|
18
|
+
(callbackFn: Array<EventQueueItem>): void;
|
|
19
|
+
}
|
|
20
|
+
declare class UserEvents {
|
|
21
|
+
private readonly queue;
|
|
22
|
+
private readonly subscriptions;
|
|
23
|
+
constructor();
|
|
24
|
+
protected add(...args: any[]): void;
|
|
25
|
+
protected notifySubscribers(): void;
|
|
26
|
+
/**
|
|
27
|
+
* Adds an analytics event. Optionally can include a payload.
|
|
28
|
+
*/
|
|
29
|
+
addEvent(key: string, event?: UserEvent): void;
|
|
30
|
+
/**
|
|
31
|
+
* Logs a page view event
|
|
32
|
+
* @param pageName - The name of the page/screen to log as viewed
|
|
33
|
+
*/
|
|
34
|
+
addPageView(pageName: string): void;
|
|
35
|
+
/**
|
|
36
|
+
* Starts a new event which is expected to be ended with `endEvent` eventually
|
|
37
|
+
*/
|
|
38
|
+
startEvent(key: string): void;
|
|
39
|
+
/**
|
|
40
|
+
* Ends an event previously started with `startEvent`. Optionally can include a payload.
|
|
41
|
+
*/
|
|
42
|
+
endEvent(key: string, event?: UserEvent): void;
|
|
43
|
+
/**
|
|
44
|
+
* Subscribes a callback to analytics events. It gets called every time
|
|
45
|
+
* one of the above public methods get called, and the event data is passed back as an array.
|
|
46
|
+
* The callback must have a single argument which is an array of [eventName, eventPayload?].
|
|
47
|
+
* @example
|
|
48
|
+
* ```js
|
|
49
|
+
* const callback = ([eventName, eventPayload]) => console.log(eventName, eventPayload);
|
|
50
|
+
* this.subscribe(callback);
|
|
51
|
+
*
|
|
52
|
+
* const exampleEventPayload = { count: 1, segmentation: { foo: 'bar' } };
|
|
53
|
+
* this.addEvent('exampleEventDidOccur', exampleEventPayload);
|
|
54
|
+
*
|
|
55
|
+
* // `callback` will get called with `['exampleEventDidOccur', exampleEventPayload]`
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
subscribe(callback: UserEventCallback): void;
|
|
59
|
+
/**
|
|
60
|
+
* Removes a subscribed callback
|
|
61
|
+
*/
|
|
62
|
+
unsubscribe(callback: UserEventCallback): void;
|
|
63
|
+
}
|
|
64
|
+
declare const _default: UserEvents;
|
|
65
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { TaskTypes } from '../components/TaskList/types';
|
|
2
|
+
import LegalEntity from './models/api/legal-entity';
|
|
3
|
+
import { LegalEntityType } from './models/api/legal-entity-type';
|
|
4
|
+
/**
|
|
5
|
+
* Filter properties in a global configuration object from an allow list (GENERIC_OPTIONS)
|
|
6
|
+
* @param globalOptions -
|
|
7
|
+
* @returns any
|
|
8
|
+
*/
|
|
9
|
+
export declare function processGlobalOptions(globalOptions: any): {};
|
|
10
|
+
declare type BaseTrackingPayloadParams = {
|
|
11
|
+
trackingConig?: {
|
|
12
|
+
topLevelLegalEntity: LegalEntity;
|
|
13
|
+
};
|
|
14
|
+
parentLegalEntity?: LegalEntity;
|
|
15
|
+
legalEntity?: LegalEntity;
|
|
16
|
+
task: TaskTypes;
|
|
17
|
+
};
|
|
18
|
+
export declare type BaseTrackingPayload = {
|
|
19
|
+
task: TaskTypes;
|
|
20
|
+
flow: LegalEntityType;
|
|
21
|
+
topLevelLegalEntityId: string;
|
|
22
|
+
topLevelLegalEntityType: LegalEntityType;
|
|
23
|
+
parentLegalEntityId?: string;
|
|
24
|
+
parentLegalEntityType?: LegalEntityType;
|
|
25
|
+
legalEntityId?: string;
|
|
26
|
+
legalEntityType?: LegalEntityType;
|
|
27
|
+
};
|
|
28
|
+
export declare function getBaseTrackingPayload({ trackingConig, parentLegalEntity, legalEntity, task }: BaseTrackingPayloadParams): BaseTrackingPayload;
|
|
29
|
+
/**
|
|
30
|
+
* Filter data and remove unneeded fields
|
|
31
|
+
* @param dataSubmitted - actual form data submitted from the frontend
|
|
32
|
+
* @param savedLegalEntityData - the data saved in the BE
|
|
33
|
+
* @returns filtered data
|
|
34
|
+
*/
|
|
35
|
+
export declare const removeOldDataBySchema: (dataSubmitted: any, savedLegalEntityData: any) => any;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { CustomTranslations } from './types';
|
|
2
|
+
declare class Language {
|
|
3
|
+
private supportedLocales;
|
|
4
|
+
customTranslations: CustomTranslations;
|
|
5
|
+
languageCode: string;
|
|
6
|
+
locale: string;
|
|
7
|
+
translations: object;
|
|
8
|
+
/**
|
|
9
|
+
* Returns a translated string from a key in the current {@link Language.locale}
|
|
10
|
+
* @param key - Translation key
|
|
11
|
+
* @param options - Translation options
|
|
12
|
+
* @returns Translated string
|
|
13
|
+
*/
|
|
14
|
+
get(key: string, options?: any): string;
|
|
15
|
+
/**
|
|
16
|
+
* Returns a localized string for a date
|
|
17
|
+
* @param date - Date to be localized
|
|
18
|
+
* @param options - Options for {@link Intl.DateTimeFormatOptions}
|
|
19
|
+
*/
|
|
20
|
+
date(date: string, options?: Intl.DateTimeFormatOptions): string;
|
|
21
|
+
/**
|
|
22
|
+
* initialize the i18n language -- setting local, supported locales and translations
|
|
23
|
+
* @param customTranslations - translation passed to the SDK to override some keys
|
|
24
|
+
* @param locale - passed to the SDK locale or fallback
|
|
25
|
+
* @param allowedLocales - allowed locales listed from the KYC external API that we can switch to
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
initialize({ customTranslations, locale, allowedLocales, loadingContext, clientKey }: {
|
|
29
|
+
customTranslations?: {};
|
|
30
|
+
locale?: string;
|
|
31
|
+
allowedLocales?: any[];
|
|
32
|
+
loadingContext: any;
|
|
33
|
+
clientKey: any;
|
|
34
|
+
}): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* Returns the translations according to the selected locale
|
|
37
|
+
* @param locale - Currently selected locale
|
|
38
|
+
* @returns Translations
|
|
39
|
+
*/
|
|
40
|
+
loadTranslations({ locale, loadingContext, clientKey }: {
|
|
41
|
+
locale?: string;
|
|
42
|
+
loadingContext: any;
|
|
43
|
+
clientKey: any;
|
|
44
|
+
}): Promise<any>;
|
|
45
|
+
}
|
|
46
|
+
export default Language;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|