@adyen/kyc-components 2.2.2 → 2.2.3
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/package.json +1 -1
- package/dist/es/adyen-kyc-components.es.js +0 -27146
- package/dist/es/package.json +0 -3
- package/dist/mockServiceWorker.js +0 -302
- package/dist/style.css +0 -97918
- package/dist/types/components/AutoResizer.d.ts +0 -6
- package/dist/types/components/BankVerification/BankVerification.d.ts +0 -8
- package/dist/types/components/BankVerification/types.d.ts +0 -50
- package/dist/types/components/BankVerification/verification/widget/component/BankVerificationWidget.d.ts +0 -24
- package/dist/types/components/BankVerification/verification/widget/iframeWidget.d.ts +0 -38
- package/dist/types/components/BankVerification/verification/widget/index.d.ts +0 -1
- package/dist/types/components/BaseElement.d.ts +0 -43
- package/dist/types/components/Company/component/CompanyComponent.d.ts +0 -40
- package/dist/types/components/Company/rules.d.ts +0 -9
- package/dist/types/components/Company/types.d.ts +0 -37
- package/dist/types/components/CompanyDetails/component/CompanyDetailsComponent.d.ts +0 -5
- package/dist/types/components/CompanyDetails/types.d.ts +0 -17
- package/dist/types/components/CompanyDetails/validate.d.ts +0 -3
- package/dist/types/components/CompanyNameAndCountry/component/CompanyNameAndCountryComponent.d.ts +0 -4
- package/dist/types/components/CompanyNameAndCountry/types.d.ts +0 -10
- package/dist/types/components/CompanyNameAndCountry/validate.d.ts +0 -3
- package/dist/types/components/CompanyType/component/CompanyTypeComponent.d.ts +0 -5
- package/dist/types/components/CompanyType/types.d.ts +0 -10
- package/dist/types/components/CompanyType/validate.d.ts +0 -3
- package/dist/types/components/ConstitutionalDocument/ConstitutionalDocumentComponent.d.ts +0 -10
- package/dist/types/components/ConstitutionalDocument/types.d.ts +0 -11
- package/dist/types/components/ContactDetails/component/ContactDetailsComponent.d.ts +0 -4
- package/dist/types/components/ContactDetails/types.d.ts +0 -9
- package/dist/types/components/ContactDetails/validate.d.ts +0 -3
- package/dist/types/components/DecisionMakers/component/DecisionMakersComponent.d.ts +0 -4
- package/dist/types/components/DecisionMakers/types.d.ts +0 -11
- package/dist/types/components/DocumentUpload/DocumentUpload.d.ts +0 -4
- package/dist/types/components/DocumentUpload/types.d.ts +0 -20
- package/dist/types/components/Dropins/CompanyDropin/components/CompanyDropinComponent.d.ts +0 -2
- package/dist/types/components/Dropins/CompanyDropin/index.d.ts +0 -1
- package/dist/types/components/Dropins/DropinComposer/components/DropinComposerComponent.d.ts +0 -2
- package/dist/types/components/Dropins/DropinComposer/index.d.ts +0 -1
- package/dist/types/components/Dropins/DropinLayout/ActionBar/ActionBar.d.ts +0 -4
- package/dist/types/components/Dropins/DropinLayout/ActionBar/index.d.ts +0 -1
- package/dist/types/components/Dropins/DropinLayout/ActionBar/type.d.ts +0 -11
- package/dist/types/components/Dropins/DropinLayout/DropinLayout.d.ts +0 -3
- package/dist/types/components/Dropins/DropinLayout/types.d.ts +0 -6
- package/dist/types/components/Dropins/FormComposer/FormComposer.d.ts +0 -34
- package/dist/types/components/Dropins/FormComposer/components/FormNavigation/FormNavigation.d.ts +0 -4
- package/dist/types/components/Dropins/FormComposer/components/FormNavigation/FormNavigationItem.d.ts +0 -3
- package/dist/types/components/Dropins/FormComposer/components/FormNavigation/index.d.ts +0 -1
- package/dist/types/components/Dropins/FormComposer/components/FormNavigation/types.d.ts +0 -24
- package/dist/types/components/Dropins/FormComposer/types.d.ts +0 -22
- package/dist/types/components/Dropins/FormWrapper/FormWrapper.d.ts +0 -39
- package/dist/types/components/Dropins/IndividualDropin/components/IndividualDropinComponent.d.ts +0 -2
- package/dist/types/components/Dropins/IndividualDropin/index.d.ts +0 -1
- package/dist/types/components/Dropins/PayoutDetailsDropin/components/PayoutDetailsDropinComponent.d.ts +0 -4
- package/dist/types/components/Dropins/PayoutDetailsDropin/index.d.ts +0 -1
- package/dist/types/components/Dropins/PciDropin/components/PciDropinComponent.d.ts +0 -2
- package/dist/types/components/Dropins/PciDropin/index.d.ts +0 -1
- package/dist/types/components/Dropins/PciDropin/types.d.ts +0 -14
- package/dist/types/components/Dropins/PciDropin/validate.d.ts +0 -3
- package/dist/types/components/Dropins/RoleAndTypeDropin/components/RoleAndTypeDropinComponent.d.ts +0 -2
- package/dist/types/components/Dropins/RoleAndTypeDropin/index.d.ts +0 -1
- package/dist/types/components/Dropins/RoleAndTypeDropin/types.d.ts +0 -18
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/components/ServiceAgreementDropinComponent.d.ts +0 -2
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/components/useServiceAgreement.d.ts +0 -22
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/index.d.ts +0 -1
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/types.d.ts +0 -25
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/validate.d.ts +0 -3
- package/dist/types/components/Dropins/SolePropDropin/components/SolePropDropinComponent.d.ts +0 -2
- package/dist/types/components/Dropins/SolePropDropin/index.d.ts +0 -1
- package/dist/types/components/Dropins/TrustDropin/components/TrustDropinComponent.d.ts +0 -2
- package/dist/types/components/Dropins/TrustDropin/index.d.ts +0 -1
- package/dist/types/components/Dropins/types.d.ts +0 -63
- package/dist/types/components/EventEmitter.d.ts +0 -20
- package/dist/types/components/IdDocumentUpload/component/IdDocumentAlreadyUpload.d.ts +0 -3
- package/dist/types/components/IdDocumentUpload/component/IdDocumentInstantVerificationComponent.d.ts +0 -5
- package/dist/types/components/IdDocumentUpload/component/IdDocumentManualUpload.d.ts +0 -6
- package/dist/types/components/IdDocumentUpload/component/IdDocumentUploadComponent.d.ts +0 -4
- package/dist/types/components/IdDocumentUpload/types.d.ts +0 -50
- package/dist/types/components/IdVerification/component/IdVerificationComponent.d.ts +0 -3
- package/dist/types/components/IdVerification/types.d.ts +0 -13
- package/dist/types/components/IdVerificationMethod/IdVerificationMethodComponent.d.ts +0 -5
- package/dist/types/components/IdVerificationMethod/idVerificationMethodMetadata.d.ts +0 -14
- package/dist/types/components/IdVerificationMethod/index.d.ts +0 -1
- package/dist/types/components/IdVerificationMethod/types.d.ts +0 -13
- package/dist/types/components/IdentityAu/additionalIdentityInfoSchema.d.ts +0 -8
- package/dist/types/components/IdentityAu/component/DriversLicense.d.ts +0 -21
- package/dist/types/components/IdentityAu/component/IdentityAuComponent.d.ts +0 -2
- package/dist/types/components/IdentityAu/component/PassportNumber.d.ts +0 -15
- package/dist/types/components/IdentityAu/component/ProofOfIdentityCard.d.ts +0 -15
- package/dist/types/components/IdentityAu/component/TypeOfIdentity.d.ts +0 -12
- package/dist/types/components/IdentityAu/types.d.ts +0 -10
- package/dist/types/components/IdentityAu/validate.d.ts +0 -3
- package/dist/types/components/IdentityNumber/component/IdentityNumberComponent.d.ts +0 -4
- package/dist/types/components/IdentityNumber/formats.d.ts +0 -15
- package/dist/types/components/IdentityNumber/type.d.ts +0 -12
- package/dist/types/components/IdentityNumber/validate.d.ts +0 -40
- package/dist/types/components/IdentityNumber/validate.helper.d.ts +0 -5
- package/dist/types/components/Individual/component/IndividualComponent.d.ts +0 -7
- package/dist/types/components/Individual/rules.d.ts +0 -10
- package/dist/types/components/Individual/types.d.ts +0 -48
- package/dist/types/components/LegalEntityTypeSwitcher/LegalEntityTypeSwitcher.d.ts +0 -2
- package/dist/types/components/LegalEntityTypeSwitcher/type.d.ts +0 -6
- package/dist/types/components/PatriotActDisclosure.d.ts +0 -1
- package/dist/types/components/PayoutAccount/component/PayoutAccountComponent.d.ts +0 -6
- package/dist/types/components/PayoutAccount/types.d.ts +0 -30
- package/dist/types/components/PayoutBankStatement/component/BankDocumentRequirements.d.ts +0 -7
- package/dist/types/components/PayoutBankStatement/component/PayoutBankStatementComponent.d.ts +0 -6
- package/dist/types/components/PayoutBankStatement/types.d.ts +0 -31
- package/dist/types/components/PayoutDetails/component/PayoutDetailsComponent.d.ts +0 -28
- package/dist/types/components/PayoutDetails/rules.d.ts +0 -13
- package/dist/types/components/PayoutDetails/types.d.ts +0 -42
- package/dist/types/components/PayoutVerificationMethod/allowedBankCountriesPerCountry.d.ts +0 -2
- package/dist/types/components/PayoutVerificationMethod/component/PayoutVerificationMethod.d.ts +0 -5
- package/dist/types/components/PayoutVerificationMethod/payoutVerificationMethodMetadata.d.ts +0 -14
- package/dist/types/components/PayoutVerificationMethod/types.d.ts +0 -18
- package/dist/types/components/PersonalDetails/component/PersonalDetailsComponent.d.ts +0 -4
- package/dist/types/components/PersonalDetails/types.d.ts +0 -27
- package/dist/types/components/PersonalDetails/validate.d.ts +0 -3
- package/dist/types/components/ProofOfResidency/ProofOfResidencyComponent.d.ts +0 -4
- package/dist/types/components/ProofOfResidency/types.d.ts +0 -39
- package/dist/types/components/RegistrationAddress/component/RegistrationAddressComponent.d.ts +0 -6
- package/dist/types/components/RegistrationAddress/types.d.ts +0 -26
- package/dist/types/components/RegistrationAddress/validate.d.ts +0 -3
- package/dist/types/components/Review/component/ReviewComponent.d.ts +0 -3
- package/dist/types/components/Review/types.d.ts +0 -6
- package/dist/types/components/SoleProp/component/SolePropComponent.d.ts +0 -6
- package/dist/types/components/SoleProp/labels.d.ts +0 -5
- package/dist/types/components/SoleProp/types.d.ts +0 -31
- package/dist/types/components/TaskList/component/PayoutAccountTaskListItem.d.ts +0 -11
- package/dist/types/components/TaskList/component/TaskItemStatus.d.ts +0 -3
- package/dist/types/components/TaskList/component/TaskListComponent.d.ts +0 -4
- package/dist/types/components/TaskList/component/TaskListGroup.d.ts +0 -5
- package/dist/types/components/TaskList/component/TaskListItem.d.ts +0 -5
- package/dist/types/components/TaskList/types.d.ts +0 -73
- package/dist/types/components/Trust/component/TrustComponent.d.ts +0 -7
- package/dist/types/components/Trust/types.d.ts +0 -27
- package/dist/types/components/TrustMembers/component/TrustMembersComponent.d.ts +0 -4
- package/dist/types/components/TrustMembers/component/UndefinedBeneficiaries.d.ts +0 -8
- package/dist/types/components/TrustMembers/types.d.ts +0 -22
- package/dist/types/components/TrustRegistrationDetails/component/TrustRegistrationDetailsComponent.d.ts +0 -4
- package/dist/types/components/TrustRegistrationDetails/types.d.ts +0 -16
- package/dist/types/components/TrustRegistrationDetails/validate.d.ts +0 -3
- package/dist/types/components/TrustRoleAndEntityType/component/TrustRoleAndEntityTypeComponent.d.ts +0 -3
- package/dist/types/components/TrustRoleAndEntityType/getAvailableRoles.d.ts +0 -2
- package/dist/types/components/TrustRoleAndEntityType/types.d.ts +0 -23
- package/dist/types/components/TrustRoleAndEntityType/validate.d.ts +0 -3
- package/dist/types/components/UIElement.d.ts +0 -19
- package/dist/types/components/identityUS/component/IdentityUSComponent.d.ts +0 -4
- package/dist/types/components/index.d.ts +0 -29
- package/dist/types/components/internal/Accordion/Accordion.d.ts +0 -3
- package/dist/types/components/internal/Accordion/AccordionContext.d.ts +0 -2
- package/dist/types/components/internal/Accordion/index.d.ts +0 -1
- package/dist/types/components/internal/Accordion/types.d.ts +0 -22
- package/dist/types/components/internal/AccordionItem/AccordionItem.d.ts +0 -3
- package/dist/types/components/internal/AccordionItem/index.d.ts +0 -1
- package/dist/types/components/internal/AccordionItem/types.d.ts +0 -13
- package/dist/types/components/internal/AccordionItem/useAccordionContext.d.ts +0 -3
- package/dist/types/components/internal/AccountHolder/AccountHolder.d.ts +0 -3
- package/dist/types/components/internal/AccountHolder/index.d.ts +0 -1
- package/dist/types/components/internal/AccountHolder/types.d.ts +0 -11
- package/dist/types/components/internal/AccountHolder/validate.d.ts +0 -3
- package/dist/types/components/internal/Address/Address.d.ts +0 -12
- package/dist/types/components/internal/Address/components/CountryField.d.ts +0 -2
- package/dist/types/components/internal/Address/components/FieldContainer.d.ts +0 -8
- package/dist/types/components/internal/Address/components/SearchAddress.d.ts +0 -4
- package/dist/types/components/internal/Address/components/StateField.d.ts +0 -2
- package/dist/types/components/internal/Address/constants.d.ts +0 -7
- package/dist/types/components/internal/Address/types.d.ts +0 -96
- package/dist/types/components/internal/Address/utils.d.ts +0 -21
- package/dist/types/components/internal/Address/validate.d.ts +0 -3
- package/dist/types/components/internal/Address/validate.formats.d.ts +0 -4
- package/dist/types/components/internal/Alert/Alert.d.ts +0 -6
- package/dist/types/components/internal/Alert/components/ReviewAlert.d.ts +0 -2
- package/dist/types/components/internal/Alert/components/VerificationErrorAlert.d.ts +0 -3
- package/dist/types/components/internal/Alert/index.d.ts +0 -1
- package/dist/types/components/internal/Alert/types.d.ts +0 -22
- package/dist/types/components/internal/BankAccountFormat/BankAccountFormat.d.ts +0 -2
- package/dist/types/components/internal/BankAccountFormat/types.d.ts +0 -5
- package/dist/types/components/internal/BankAccountNumber/BankAccountNumber.d.ts +0 -3
- package/dist/types/components/internal/BankAccountNumber/index.d.ts +0 -1
- package/dist/types/components/internal/BankAccountNumber/types.d.ts +0 -5
- package/dist/types/components/internal/BankCity/BankCity.d.ts +0 -3
- package/dist/types/components/internal/BankCity/index.d.ts +0 -1
- package/dist/types/components/internal/BankCity/types.d.ts +0 -5
- package/dist/types/components/internal/BankCode/BankCode.d.ts +0 -3
- package/dist/types/components/internal/BankCode/index.d.ts +0 -1
- package/dist/types/components/internal/BankCode/types.d.ts +0 -5
- package/dist/types/components/internal/BankName/BankName.d.ts +0 -3
- package/dist/types/components/internal/BankName/index.d.ts +0 -1
- package/dist/types/components/internal/BankName/types.d.ts +0 -5
- package/dist/types/components/internal/BranchCode/BranchCode.d.ts +0 -3
- package/dist/types/components/internal/BranchCode/index.d.ts +0 -1
- package/dist/types/components/internal/BranchCode/types.d.ts +0 -5
- package/dist/types/components/internal/BusinessRegistrationNumber/BusinessRegistrationNumber.d.ts +0 -3
- package/dist/types/components/internal/BusinessRegistrationNumber/formatters.d.ts +0 -4
- package/dist/types/components/internal/BusinessRegistrationNumber/index.d.ts +0 -1
- package/dist/types/components/internal/BusinessRegistrationNumber/types.d.ts +0 -11
- package/dist/types/components/internal/BusinessRegistrationNumber/validate.d.ts +0 -19
- package/dist/types/components/internal/Button/Button.d.ts +0 -6
- package/dist/types/components/internal/Button/index.d.ts +0 -1
- package/dist/types/components/internal/Button/types.d.ts +0 -25
- package/dist/types/components/internal/Card/Card.d.ts +0 -4
- package/dist/types/components/internal/Card/CardGroup.d.ts +0 -3
- package/dist/types/components/internal/Card/types.d.ts +0 -16
- package/dist/types/components/internal/CollapsibleContainer/CollapsibleContainer.d.ts +0 -3
- package/dist/types/components/internal/CollapsibleContainer/index.d.ts +0 -1
- package/dist/types/components/internal/CollapsibleContainer/types.d.ts +0 -6
- package/dist/types/components/internal/ContextGuidance/ContextGuidance.d.ts +0 -2
- package/dist/types/components/internal/ContextGuidance/index.d.ts +0 -1
- package/dist/types/components/internal/ContextGuidance/types.d.ts +0 -10
- package/dist/types/components/internal/ContextHelper/ContextHelper.d.ts +0 -6
- package/dist/types/components/internal/ContractViewer/ContractViewer.d.ts +0 -3
- package/dist/types/components/internal/ContractViewer/components/Chapter/Chapter.d.ts +0 -2
- package/dist/types/components/internal/ContractViewer/components/ContentElements/ContentElements.d.ts +0 -2
- package/dist/types/components/internal/ContractViewer/components/InternalReference/InternalReference.d.ts +0 -2
- package/dist/types/components/internal/ContractViewer/components/List/List.d.ts +0 -2
- package/dist/types/components/internal/ContractViewer/components/Paragraph/Paragraph.d.ts +0 -3
- package/dist/types/components/internal/ContractViewer/components/Section/Section.d.ts +0 -3
- package/dist/types/components/internal/ContractViewer/components/Table/Table.d.ts +0 -3
- package/dist/types/components/internal/ContractViewer/components/Text/Text.d.ts +0 -3
- package/dist/types/components/internal/ContractViewer/components/Weblink/Weblink.d.ts +0 -3
- package/dist/types/components/internal/ContractViewer/index.d.ts +0 -1
- package/dist/types/components/internal/ContractViewer/types.d.ts +0 -85
- package/dist/types/components/internal/Currency/Currency.d.ts +0 -5
- package/dist/types/components/internal/Currency/index.d.ts +0 -1
- package/dist/types/components/internal/Currency/types.d.ts +0 -10
- package/dist/types/components/internal/DecisionMakerRole/DecisionMakerRoleComponent.d.ts +0 -3
- package/dist/types/components/internal/DecisionMakerRole/index.d.ts +0 -2
- package/dist/types/components/internal/DecisionMakerRole/types.d.ts +0 -10
- package/dist/types/components/internal/DecisionMakerRole/validate.d.ts +0 -3
- package/dist/types/components/internal/Disclaimer/Disclaimer.d.ts +0 -8
- package/dist/types/components/internal/DocumentGuidance/DocumentGuidance.d.ts +0 -4
- package/dist/types/components/internal/DocumentGuidance/type.d.ts +0 -5
- package/dist/types/components/internal/EntityAssociation/EntityAssociation.d.ts +0 -4
- package/dist/types/components/internal/EntityAssociation/types.d.ts +0 -27
- package/dist/types/components/internal/EntityGuidanceStatus/component/EntityGuidanceLegend.d.ts +0 -3
- package/dist/types/components/internal/EntityGuidanceStatus/component/EntityGuidanceStatus.d.ts +0 -4
- package/dist/types/components/internal/EntityGuidanceStatus/component/EntityStatusIcon.d.ts +0 -3
- package/dist/types/components/internal/EntityGuidanceStatus/index.d.ts +0 -3
- package/dist/types/components/internal/EntityGuidanceStatus/types.d.ts +0 -14
- package/dist/types/components/internal/ErrorPanel/ErrorPanel.d.ts +0 -13
- package/dist/types/components/internal/ErrorPanel/components/NavigateToFieldLink.d.ts +0 -5
- package/dist/types/components/internal/ErrorPanel/components/ServerValidationErrors.d.ts +0 -2
- package/dist/types/components/internal/ErrorPanel/components/VerificationErrors.d.ts +0 -2
- package/dist/types/components/internal/ErrorPanel/constants.d.ts +0 -1
- package/dist/types/components/internal/ErrorPanel/types.d.ts +0 -27
- package/dist/types/components/internal/FormFields/Checkbox/Checkbox.d.ts +0 -17
- package/dist/types/components/internal/FormFields/Checkbox/index.d.ts +0 -1
- package/dist/types/components/internal/FormFields/Dropzone/Dropzone.d.ts +0 -3
- package/dist/types/components/internal/FormFields/Dropzone/FilePicker.d.ts +0 -14
- package/dist/types/components/internal/FormFields/Dropzone/components/DropzoneFile.d.ts +0 -3
- package/dist/types/components/internal/FormFields/Dropzone/types.d.ts +0 -26
- package/dist/types/components/internal/FormFields/Dropzone/validate.d.ts +0 -9
- package/dist/types/components/internal/FormFields/Field/Field.d.ts +0 -11
- package/dist/types/components/internal/FormFields/Field/index.d.ts +0 -1
- package/dist/types/components/internal/FormFields/Field/types.d.ts +0 -33
- package/dist/types/components/internal/FormFields/InputBase.d.ts +0 -25
- package/dist/types/components/internal/FormFields/InputDate/InputDate.d.ts +0 -7
- package/dist/types/components/internal/FormFields/InputDate/index.d.ts +0 -1
- package/dist/types/components/internal/FormFields/InputDate/utils.d.ts +0 -22
- package/dist/types/components/internal/FormFields/InputEmail.d.ts +0 -1
- package/dist/types/components/internal/FormFields/InputRadio/InputRadio.d.ts +0 -6
- package/dist/types/components/internal/FormFields/InputTelephone.d.ts +0 -1
- package/dist/types/components/internal/FormFields/InputText.d.ts +0 -8
- package/dist/types/components/internal/FormFields/MultiSelectList/MultiSelectList.d.ts +0 -9
- package/dist/types/components/internal/FormFields/MultiSelectList/index.d.ts +0 -1
- package/dist/types/components/internal/FormFields/RadioGroup/RadioGroup.d.ts +0 -10
- package/dist/types/components/internal/FormFields/RadioGroup/index.d.ts +0 -1
- package/dist/types/components/internal/FormFields/RadioGroup/types.d.ts +0 -18
- package/dist/types/components/internal/FormFields/RadioGroupCard/RadioCard.d.ts +0 -3
- package/dist/types/components/internal/FormFields/RadioGroupCard/RadioCardSelect.d.ts +0 -22
- package/dist/types/components/internal/FormFields/RadioGroupCard/RadioGroupCard.d.ts +0 -3
- package/dist/types/components/internal/FormFields/RadioGroupCard/index.d.ts +0 -3
- package/dist/types/components/internal/FormFields/RadioGroupCard/types.d.ts +0 -40
- package/dist/types/components/internal/FormFields/Select/Select.d.ts +0 -5
- package/dist/types/components/internal/FormFields/Select/components/SelectButton.d.ts +0 -3
- package/dist/types/components/internal/FormFields/Select/components/SelectList.d.ts +0 -3
- package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts +0 -3
- package/dist/types/components/internal/FormFields/Select/index.d.ts +0 -1
- package/dist/types/components/internal/FormFields/Select/types.d.ts +0 -127
- package/dist/types/components/internal/FormFields/TextArea.d.ts +0 -1
- package/dist/types/components/internal/FormFields/utils.d.ts +0 -2
- package/dist/types/components/internal/FormHeader/FormHeader.d.ts +0 -3
- package/dist/types/components/internal/FormHeader/type.d.ts +0 -8
- package/dist/types/components/internal/Heading/Heading.d.ts +0 -10
- package/dist/types/components/internal/Iban/Iban.d.ts +0 -3
- package/dist/types/components/internal/Iban/ibanValidator.d.ts +0 -4
- package/dist/types/components/internal/Iban/index.d.ts +0 -1
- package/dist/types/components/internal/Iban/types.d.ts +0 -7
- package/dist/types/components/internal/Icon/Icon.d.ts +0 -8
- package/dist/types/components/internal/Icon/index.d.ts +0 -1
- package/dist/types/components/internal/LegalCompanyName/LegalCompanyName.d.ts +0 -3
- package/dist/types/components/internal/LegalCompanyName/index.d.ts +0 -1
- package/dist/types/components/internal/LegalCompanyName/types.d.ts +0 -8
- package/dist/types/components/internal/LegalCompanyName/validate.d.ts +0 -3
- package/dist/types/components/internal/Link/Link.d.ts +0 -5
- package/dist/types/components/internal/Link/index.d.ts +0 -1
- package/dist/types/components/internal/Link/types.d.ts +0 -14
- package/dist/types/components/internal/List/List.d.ts +0 -4
- package/dist/types/components/internal/List/ListItem.d.ts +0 -3
- package/dist/types/components/internal/List/types.d.ts +0 -13
- package/dist/types/components/internal/Loader/Loader.d.ts +0 -22
- package/dist/types/components/internal/Loader/index.d.ts +0 -2
- package/dist/types/components/internal/LoaderWrapper/LoaderWrapper.d.ts +0 -13
- package/dist/types/components/internal/LoaderWrapper/constants.d.ts +0 -1
- package/dist/types/components/internal/LoaderWrapper/index.d.ts +0 -1
- package/dist/types/components/internal/Menu/ActionsMenu.d.ts +0 -14
- package/dist/types/components/internal/Name/Name.d.ts +0 -4
- package/dist/types/components/internal/Name/index.d.ts +0 -1
- package/dist/types/components/internal/Name/types.d.ts +0 -6
- package/dist/types/components/internal/Name/validate.d.ts +0 -4
- package/dist/types/components/internal/PhoneInput/PhoneInput.d.ts +0 -10
- package/dist/types/components/internal/PhoneInput/index.d.ts +0 -1
- package/dist/types/components/internal/PhoneInput/types.d.ts +0 -12
- package/dist/types/components/internal/PhoneInput/validate.d.ts +0 -8
- package/dist/types/components/internal/Shimmer/Shimmer.d.ts +0 -2
- package/dist/types/components/internal/Spinner/Spinner.d.ts +0 -17
- package/dist/types/components/internal/Spinner/index.d.ts +0 -1
- package/dist/types/components/internal/Status/Status.d.ts +0 -4
- package/dist/types/components/internal/Status/types.d.ts +0 -6
- package/dist/types/components/internal/Summary/Summary.d.ts +0 -8
- package/dist/types/components/internal/Summary/types.d.ts +0 -16
- package/dist/types/components/internal/SwiftCode/SwiftCode.d.ts +0 -3
- package/dist/types/components/internal/SwiftCode/index.d.ts +0 -1
- package/dist/types/components/internal/SwiftCode/types.d.ts +0 -5
- package/dist/types/components/internal/Tag/Tag.d.ts +0 -9
- package/dist/types/components/internal/Tag/index.d.ts +0 -1
- package/dist/types/components/internal/TaxId/TaxId.d.ts +0 -3
- package/dist/types/components/internal/TaxId/index.d.ts +0 -1
- package/dist/types/components/internal/TaxId/rules.d.ts +0 -2
- package/dist/types/components/internal/TaxId/taxIdValidation.d.ts +0 -1
- package/dist/types/components/internal/TaxId/types.d.ts +0 -16
- package/dist/types/components/internal/TaxId/validate.d.ts +0 -4
- package/dist/types/components/internal/Toast/Toast.d.ts +0 -3
- package/dist/types/components/internal/Toast/index.d.ts +0 -2
- package/dist/types/components/internal/Toast/types.d.ts +0 -16
- package/dist/types/components/internal/VatNumber/VatNumber.d.ts +0 -3
- package/dist/types/components/internal/VatNumber/index.d.ts +0 -1
- package/dist/types/components/internal/VatNumber/types.d.ts +0 -19
- package/dist/types/components/internal/VatNumber/validate.d.ts +0 -4
- package/dist/types/components/internal/VatNumber/vatNumberValidation.d.ts +0 -5
- package/dist/types/core/Context/CoreContext.d.ts +0 -20
- package/dist/types/core/Context/CoreProvider.d.ts +0 -35
- package/dist/types/core/Context/ExperimentContext/ExperimentsContext.d.ts +0 -2
- package/dist/types/core/Context/ExperimentContext/ExperimentsContextProvider.d.ts +0 -8
- package/dist/types/core/Context/ExperimentContext/types.d.ts +0 -12
- package/dist/types/core/Context/ExperimentContext/useExperimentsContext.d.ts +0 -1
- package/dist/types/core/Context/FormRouterContext/FormRouterContext.d.ts +0 -4
- package/dist/types/core/Context/FormRouterContext/FormRouterContextProvider.d.ts +0 -2
- package/dist/types/core/Context/FormRouterContext/types.d.ts +0 -9
- package/dist/types/core/Context/FormRouterContext/useFormRouterContext.d.ts +0 -4
- package/dist/types/core/Context/SettingsContext/SettingsContext.d.ts +0 -2
- package/dist/types/core/Context/SettingsContext/SettingsContextProvider.d.ts +0 -8
- package/dist/types/core/Context/SettingsContext/types.d.ts +0 -12
- package/dist/types/core/Context/SettingsContext/useSettingsContext.d.ts +0 -1
- package/dist/types/core/Context/StateContext/StateContext.d.ts +0 -2
- package/dist/types/core/Context/StateContext/StateContextSetter.d.ts +0 -2
- package/dist/types/core/Context/StateContext/StateContextWatcher.d.ts +0 -2
- package/dist/types/core/Context/StateContext/StateProvider.d.ts +0 -4
- package/dist/types/core/Context/StateContext/StateReducer.d.ts +0 -11
- package/dist/types/core/Context/StateContext/hasDataChanged.d.ts +0 -1
- package/dist/types/core/Context/StateContext/types.d.ts +0 -76
- package/dist/types/core/Context/StateContext/useGlobalData.d.ts +0 -8
- package/dist/types/core/Context/StateContext/useStateContext.d.ts +0 -2
- package/dist/types/core/Context/ToastContext/ToastContext.d.ts +0 -6
- package/dist/types/core/Context/ToastContext/ToastContextProvider.d.ts +0 -4
- package/dist/types/core/Context/ToastContext/useToastContext.d.ts +0 -2
- package/dist/types/core/Context/useCoreContext.d.ts +0 -1
- package/dist/types/core/Environment/normalizeEnvironment.d.ts +0 -1
- package/dist/types/core/SDKValidation/index.d.ts +0 -4
- package/dist/types/core/SDKValidation/schemas.d.ts +0 -2
- package/dist/types/core/SDKValidation/types.d.ts +0 -19
- package/dist/types/core/Services/get-account-format.d.ts +0 -4
- package/dist/types/core/Services/get-allowed-countries.d.ts +0 -3
- package/dist/types/core/Services/get-allowed-locales.d.ts +0 -3
- package/dist/types/core/Services/get-configuration.d.ts +0 -3
- package/dist/types/core/Services/get-dataset.d.ts +0 -3
- package/dist/types/core/Services/get-fonts.d.ts +0 -16
- package/dist/types/core/Services/get-images.d.ts +0 -2
- package/dist/types/core/Services/http.d.ts +0 -4
- package/dist/types/core/Services/types.d.ts +0 -16
- package/dist/types/core/Services/utils.d.ts +0 -5
- package/dist/types/core/Services/validate-phone-number.d.ts +0 -3
- package/dist/types/core/Services/verify-id-number.d.ts +0 -3
- package/dist/types/core/constants.d.ts +0 -11
- package/dist/types/core/core.d.ts +0 -26
- package/dist/types/core/error.d.ts +0 -4
- package/dist/types/core/hooks/useAsyncValidator.d.ts +0 -11
- package/dist/types/core/hooks/useClickAwayListener.d.ts +0 -9
- package/dist/types/core/hooks/useDataset.d.ts +0 -5
- package/dist/types/core/hooks/useForm/index.d.ts +0 -3
- package/dist/types/core/hooks/useForm/reducer.d.ts +0 -38
- package/dist/types/core/hooks/useForm/types.d.ts +0 -87
- package/dist/types/core/hooks/useForm/useForm.d.ts +0 -13
- package/dist/types/core/hooks/useForm/utils.d.ts +0 -2
- package/dist/types/core/hooks/useFormComposer.d.ts +0 -22
- package/dist/types/core/hooks/useIdVerificationToken.d.ts +0 -11
- package/dist/types/core/hooks/useKycExternalApi.d.ts +0 -23
- package/dist/types/core/hooks/useScenarioConfiguration.d.ts +0 -25
- package/dist/types/core/hooks/useStaticValidator/index.d.ts +0 -1
- package/dist/types/core/hooks/useStaticValidator/useStaticValidator.d.ts +0 -7
- package/dist/types/core/models/api/address-search.d.ts +0 -28
- package/dist/types/core/models/api/address.d.ts +0 -9
- package/dist/types/core/models/api/attachment.d.ts +0 -5
- package/dist/types/core/models/api/capability.d.ts +0 -30
- package/dist/types/core/models/api/company-types-value.d.ts +0 -10
- package/dist/types/core/models/api/contracts.d.ts +0 -57
- package/dist/types/core/models/api/data-set.d.ts +0 -5
- package/dist/types/core/models/api/decision-maker-type.d.ts +0 -6
- package/dist/types/core/models/api/document.d.ts +0 -29
- package/dist/types/core/models/api/documentDetail.d.ts +0 -9
- package/dist/types/core/models/api/entity-type.d.ts +0 -4
- package/dist/types/core/models/api/get-account-format.d.ts +0 -5
- package/dist/types/core/models/api/get-allowed-countries.d.ts +0 -4
- package/dist/types/core/models/api/get-allowed-locales.d.ts +0 -3
- package/dist/types/core/models/api/get-configuration.d.ts +0 -62
- package/dist/types/core/models/api/individual.d.ts +0 -23
- package/dist/types/core/models/api/instant-id-verification.d.ts +0 -34
- package/dist/types/core/models/api/legal-entity-association.d.ts +0 -14
- package/dist/types/core/models/api/legal-entity-type.d.ts +0 -6
- package/dist/types/core/models/api/legal-entity.d.ts +0 -30
- package/dist/types/core/models/api/organization.d.ts +0 -30
- package/dist/types/core/models/api/phone.d.ts +0 -5
- package/dist/types/core/models/api/problem.d.ts +0 -13
- package/dist/types/core/models/api/remediating-action.d.ts +0 -4
- package/dist/types/core/models/api/review.d.ts +0 -3
- package/dist/types/core/models/api/soleProprietor.d.ts +0 -13
- package/dist/types/core/models/api/transfer-instrument.d.ts +0 -37
- package/dist/types/core/models/api/trust-member-type.d.ts +0 -8
- package/dist/types/core/models/api/trust-types-value.d.ts +0 -17
- package/dist/types/core/models/api/trust.d.ts +0 -20
- package/dist/types/core/models/api/verification-error.d.ts +0 -15
- package/dist/types/core/models/api/verification-status.d.ts +0 -6
- package/dist/types/core/models/api/verify-id-number.d.ts +0 -14
- package/dist/types/core/models/company.d.ts +0 -19
- package/dist/types/core/models/country-code.d.ts +0 -249
- package/dist/types/core/models/country-config.d.ts +0 -9
- package/dist/types/core/models/currency.d.ts +0 -19
- package/dist/types/core/models/decision-maker.d.ts +0 -55
- package/dist/types/core/models/errors/capability-problems.d.ts +0 -7
- package/dist/types/core/models/errors/entity-problems.d.ts +0 -21
- package/dist/types/core/models/errors/error-message.d.ts +0 -7
- package/dist/types/core/models/errors/form-verification-errors.d.ts +0 -3
- package/dist/types/core/models/errors/maintenance-mode-error.d.ts +0 -7
- package/dist/types/core/models/errors/remediation-action-context.d.ts +0 -4
- package/dist/types/core/models/errors/remediation.d.ts +0 -8
- package/dist/types/core/models/errors/validation-error.d.ts +0 -19
- package/dist/types/core/models/field-configurations.d.ts +0 -8
- package/dist/types/core/models/form-labels.d.ts +0 -5
- package/dist/types/core/models/form-rules.d.ts +0 -15
- package/dist/types/core/models/form.d.ts +0 -18
- package/dist/types/core/models/id-verification-status.d.ts +0 -7
- package/dist/types/core/models/identity.d.ts +0 -41
- package/dist/types/core/models/payout-account.d.ts +0 -11
- package/dist/types/core/models/scenario-fields.d.ts +0 -11
- package/dist/types/core/models/sole-prop.d.ts +0 -10
- package/dist/types/core/models/trust.d.ts +0 -25
- package/dist/types/core/process-field-configurations.d.ts +0 -67
- package/dist/types/core/remediationActionMapping.d.ts +0 -3
- package/dist/types/core/types.d.ts +0 -21
- package/dist/types/core/user-events.d.ts +0 -62
- package/dist/types/core/utils.d.ts +0 -30
- package/dist/types/index.d.ts +0 -2
- package/dist/types/language/Language.d.ts +0 -47
- package/dist/types/language/config.d.ts +0 -982
- package/dist/types/language/index.d.ts +0 -1
- package/dist/types/language/types.d.ts +0 -9
- package/dist/types/language/utils.d.ts +0 -59
- package/dist/types/types/index.d.ts +0 -9
- package/dist/types/utils/LoadedValue.d.ts +0 -2
- package/dist/types/utils/accountHolderUtils.d.ts +0 -7
- package/dist/types/utils/addLinkedFields.d.ts +0 -2
- package/dist/types/utils/api/documentUtils.d.ts +0 -21
- package/dist/types/utils/api/processCapabilitites.d.ts +0 -54
- package/dist/types/utils/api/processValidationErrors.d.ts +0 -9
- package/dist/types/utils/bankVerification/animation.d.ts +0 -2
- package/dist/types/utils/bankVerification/dom.d.ts +0 -1
- package/dist/types/utils/bytesToSize.d.ts +0 -1
- package/dist/types/utils/company-util.d.ts +0 -9
- package/dist/types/utils/datasetUtil.d.ts +0 -17
- package/dist/types/utils/decision-maker-roles.d.ts +0 -22
- package/dist/types/utils/dropin-utils.d.ts +0 -18
- package/dist/types/utils/entity-association-util.d.ts +0 -24
- package/dist/types/utils/entity-status-util.d.ts +0 -9
- package/dist/types/utils/entriesOf.d.ts +0 -2
- package/dist/types/utils/escapeHtml.d.ts +0 -3
- package/dist/types/utils/eventHandlers/handleKeys.d.ts +0 -5
- package/dist/types/utils/file.d.ts +0 -9
- package/dist/types/utils/formUtils.d.ts +0 -22
- package/dist/types/utils/formatting/stripCountryIdFormat.d.ts +0 -2
- package/dist/types/utils/genUtils.d.ts +0 -55
- package/dist/types/utils/get-name.d.ts +0 -8
- package/dist/types/utils/get-props.d.ts +0 -3
- package/dist/types/utils/get-task-status.d.ts +0 -8
- package/dist/types/utils/getFieldsWithExistingData.d.ts +0 -8
- package/dist/types/utils/getNestedPropertyKeys.d.ts +0 -14
- package/dist/types/utils/hasDuplicates.d.ts +0 -1
- package/dist/types/utils/idGenerator.d.ts +0 -1
- package/dist/types/utils/logger.d.ts +0 -15
- package/dist/types/utils/mapping/componentApiMapping.d.ts +0 -152
- package/dist/types/utils/mapping/documentGuidanceMap.d.ts +0 -5
- package/dist/types/utils/mapping/mapEntityAssociationsToUniqueTrustMembers.d.ts +0 -12
- package/dist/types/utils/mapping/mapping.d.ts +0 -117
- package/dist/types/utils/payout-account-util.d.ts +0 -6
- package/dist/types/utils/payout-account.d.ts +0 -2
- package/dist/types/utils/recordWithDefault.d.ts +0 -3
- package/dist/types/utils/regex/basePatterns.d.ts +0 -3
- package/dist/types/utils/regex/businessRegistrationNumberPatterns.d.ts +0 -2
- package/dist/types/utils/regex/countryIdNumberPatterns.d.ts +0 -13
- package/dist/types/utils/regex/index.d.ts +0 -5
- package/dist/types/utils/regex/types.d.ts +0 -25
- package/dist/types/utils/regex/vatNumberPatterns.d.ts +0 -17
- package/dist/types/utils/remove-object-empty-values.d.ts +0 -1
- package/dist/types/utils/scroll.d.ts +0 -1
- package/dist/types/utils/trackNavigation.d.ts +0 -10
- package/dist/types/utils/trust-util.d.ts +0 -44
- package/dist/types/utils/useForwardRef.d.ts +0 -2
- package/dist/types/utils/useStateFromProp.d.ts +0 -9
- package/dist/types/utils/uuid.d.ts +0 -1
- package/dist/types/utils/validation/ValidationResult.d.ts +0 -13
- package/dist/types/utils/validation/commonValidators.d.ts +0 -3
- package/dist/types/utils/validation/types.d.ts +0 -61
- package/dist/types/utils/validatorUtils.d.ts +0 -27
- package/dist/types/utils/verification/helpers/verify-id-number-helper.d.ts +0 -3
- package/dist/types/utils/verification/verificationUtils.d.ts +0 -7
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { TranslationKey } from '../../language/types';
|
|
2
|
-
import { DecisionMakerType } from './api/decision-maker-type';
|
|
3
|
-
/**
|
|
4
|
-
*
|
|
5
|
-
* When providing DECISION_MAKER_REQUIREMENTS per country - keep in mind that you need to specify rules for each role individually even if you have a mixed rule between them.
|
|
6
|
-
* If you don't provide rules for a given individual role, it means that country does not support that type of decision maker and will not be returned by `getAvailableDecisionMakerRoleTypes(country)`.
|
|
7
|
-
*
|
|
8
|
-
* This give us more flexibility to have:
|
|
9
|
-
* 1- rules for each role
|
|
10
|
-
* 2- different rules for mixed roles if there's any
|
|
11
|
-
*
|
|
12
|
-
* Examples
|
|
13
|
-
* A- provide at most 4 (controlling person - or - owners) but at least it should have 1 owner ...
|
|
14
|
-
* B- provide at least 1 (controlling person - or - an owner) but max 4 owners and no max for controlling ...
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* let's say we want to write the config for the above [example B] it should look like this:
|
|
18
|
-
* ```
|
|
19
|
-
* [
|
|
20
|
-
* {
|
|
21
|
-
* // === the mixed rule ===
|
|
22
|
-
* roleTypes: [DecisionMakerType.CONTROLLING_PERSON, DecisionMakerType.OWNER],
|
|
23
|
-
* min: 1,
|
|
24
|
-
* max: Infinity
|
|
25
|
-
* },
|
|
26
|
-
* {
|
|
27
|
-
* // === specify each individually ===
|
|
28
|
-
* roleTypes: [DecisionMakerType.OWNER],
|
|
29
|
-
* min: 0,
|
|
30
|
-
* max: 4
|
|
31
|
-
* },
|
|
32
|
-
* {
|
|
33
|
-
* // === specify each individually ===
|
|
34
|
-
* roleTypes: [DecisionMakerType.CONTROLLING_PERSON],
|
|
35
|
-
* min: 0,
|
|
36
|
-
* max: Infinity
|
|
37
|
-
* }
|
|
38
|
-
* ]
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* each of the rules have different max to apply.
|
|
42
|
-
*
|
|
43
|
-
* */
|
|
44
|
-
export interface DecisionMakerRequirement {
|
|
45
|
-
roleTypes: readonly DecisionMakerType[];
|
|
46
|
-
min: number;
|
|
47
|
-
max: number;
|
|
48
|
-
}
|
|
49
|
-
export declare const getDecisionMakerRequirements: (country: string) => readonly DecisionMakerRequirement[];
|
|
50
|
-
export declare function getAvailableDecisionMakerRoleTypes(country: string): {
|
|
51
|
-
roleType: DecisionMakerType;
|
|
52
|
-
min: number;
|
|
53
|
-
max: number;
|
|
54
|
-
}[];
|
|
55
|
-
export declare const getDecisionMakerDescriptionMap: (country: string) => Record<DecisionMakerType, TranslationKey>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { TaskStatus } from '../../../components/TaskList/types';
|
|
2
|
-
import { EntityType } from '../api/entity-type';
|
|
3
|
-
import { LegalEntityType } from '../api/legal-entity-type';
|
|
4
|
-
import { VerificationError } from '../api/verification-error';
|
|
5
|
-
import { FormVerificationErrors } from './form-verification-errors';
|
|
6
|
-
import { Remediation, RemediationCode } from './remediation';
|
|
7
|
-
export type EntityProblems = {
|
|
8
|
-
verificationErrors: {
|
|
9
|
-
[formId: string]: FormVerificationErrors;
|
|
10
|
-
};
|
|
11
|
-
remediationActions: Partial<Record<RemediationCode, Remediation>>;
|
|
12
|
-
status: TaskStatus;
|
|
13
|
-
missingData: VerificationError[];
|
|
14
|
-
validationErrors?: {
|
|
15
|
-
[formId: string]: {
|
|
16
|
-
[fieldName: string]: boolean;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
entityType?: LegalEntityType | EntityType.BANK_ACCOUNT;
|
|
20
|
-
isReviewRequired?: boolean;
|
|
21
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { TranslationKey } from '../../../language/types';
|
|
2
|
-
export type ErrorCode = Extract<TranslationKey, `errorMessage_${string}`> extends `errorMessage_${infer R}` ? R : never;
|
|
3
|
-
export interface ErrorMessage {
|
|
4
|
-
code: ErrorCode;
|
|
5
|
-
errorMessage: string;
|
|
6
|
-
remediationMessages?: string[];
|
|
7
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TranslationKey } from '../../../language/types';
|
|
2
|
-
export type RemediationCode = Extract<TranslationKey, `remediationMessage_${string}`> extends `remediationMessage_${infer R}` ? R : never;
|
|
3
|
-
export interface Remediation {
|
|
4
|
-
code: RemediationCode;
|
|
5
|
-
forms: string[];
|
|
6
|
-
fields?: string[];
|
|
7
|
-
message?: string;
|
|
8
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
}
|
|
15
|
-
export declare const isValidationError: (error: Error | undefined) => boolean;
|
|
16
|
-
export interface ValidationResponse {
|
|
17
|
-
invalidFields: InvalidField[];
|
|
18
|
-
valid: boolean;
|
|
19
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { CountryFieldConfig } from './country-config';
|
|
2
|
-
import { ScenarioFieldSettings } from './scenario-fields';
|
|
3
|
-
interface FieldConfiguration<FieldType> extends ScenarioFieldSettings<FieldType>, CountryFieldConfig {
|
|
4
|
-
}
|
|
5
|
-
export type FieldConfigurations<FormSchema> = {
|
|
6
|
-
[key in keyof FormSchema]: FieldConfiguration<FormSchema[key]>;
|
|
7
|
-
};
|
|
8
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { TaskTypes } from '../../components/TaskList/types';
|
|
2
|
-
import { SettingName } from '../Context/SettingsContext/types';
|
|
3
|
-
import { TopLevelDataSchema } from '../Context/StateContext/types';
|
|
4
|
-
import { PayoutRequiredFields } from './api/get-configuration';
|
|
5
|
-
import { CountryCode } from './country-code';
|
|
6
|
-
export interface FormRulesParams<TLDS extends TopLevelDataSchema> {
|
|
7
|
-
data: TLDS;
|
|
8
|
-
country: CountryCode;
|
|
9
|
-
taskType: TaskTypes;
|
|
10
|
-
isSettingEnabled?: (setting: SettingName) => boolean;
|
|
11
|
-
requiredFields?: Partial<PayoutRequiredFields>;
|
|
12
|
-
}
|
|
13
|
-
export type FormRules<TLDS extends TopLevelDataSchema> = (params: FormRulesParams<TLDS>) => {
|
|
14
|
-
[ruleName: string]: () => string | boolean | undefined;
|
|
15
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { TranslationKey } from '../../language/types';
|
|
2
|
-
export interface FormModel {
|
|
3
|
-
formId: string;
|
|
4
|
-
formName: TranslationKey;
|
|
5
|
-
fields?: any[];
|
|
6
|
-
hideNavigation?: boolean;
|
|
7
|
-
hideActionBar?: boolean;
|
|
8
|
-
verifyForm?(formId?: string): Promise<boolean>;
|
|
9
|
-
triggerValidation?(): void;
|
|
10
|
-
customNavigationHandler?(): void;
|
|
11
|
-
}
|
|
12
|
-
export interface FormModelWithValidity extends FormModel {
|
|
13
|
-
isValid: boolean;
|
|
14
|
-
hasServerValidationErrors?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export interface FormList {
|
|
17
|
-
[field: string]: FormModel;
|
|
18
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { AdditionalIdentityInfoSchema } from '../../components/IdentityAu/additionalIdentityInfoSchema';
|
|
2
|
-
import { CountryConfig } from './country-config';
|
|
3
|
-
import { ScenarioFieldSettings } from './scenario-fields';
|
|
4
|
-
export declare const identityBase: {
|
|
5
|
-
[key: string]: ScenarioFieldSettings;
|
|
6
|
-
};
|
|
7
|
-
export declare const identityNumber: {
|
|
8
|
-
[key: string]: ScenarioFieldSettings;
|
|
9
|
-
};
|
|
10
|
-
export declare const additionalIdentityInfo: Record<keyof AdditionalIdentityInfoSchema, ScenarioFieldSettings>;
|
|
11
|
-
export declare const idDocument: {
|
|
12
|
-
[key: string]: ScenarioFieldSettings;
|
|
13
|
-
};
|
|
14
|
-
export declare const nationality: {
|
|
15
|
-
[key: string]: ScenarioFieldSettings;
|
|
16
|
-
};
|
|
17
|
-
export declare const fieldsPerScenario: {
|
|
18
|
-
L0: any;
|
|
19
|
-
L1: {
|
|
20
|
-
[key: string]: ScenarioFieldSettings<unknown>;
|
|
21
|
-
};
|
|
22
|
-
L1_ID: {
|
|
23
|
-
issuerState: ScenarioFieldSettings<unknown>;
|
|
24
|
-
licenseCardNumber: ScenarioFieldSettings<unknown>;
|
|
25
|
-
typeOfIdentity: ScenarioFieldSettings<unknown>;
|
|
26
|
-
};
|
|
27
|
-
L1_IDO: {
|
|
28
|
-
issuerState: ScenarioFieldSettings<unknown>;
|
|
29
|
-
licenseCardNumber: ScenarioFieldSettings<unknown>;
|
|
30
|
-
typeOfIdentity: ScenarioFieldSettings<unknown>;
|
|
31
|
-
};
|
|
32
|
-
L1_NAT: {
|
|
33
|
-
issuerState: ScenarioFieldSettings<unknown>;
|
|
34
|
-
licenseCardNumber: ScenarioFieldSettings<unknown>;
|
|
35
|
-
typeOfIdentity: ScenarioFieldSettings<unknown>;
|
|
36
|
-
};
|
|
37
|
-
L1_IDDOC: {
|
|
38
|
-
[key: string]: ScenarioFieldSettings<unknown>;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
export declare const countryConfig: CountryConfig;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BankAccountFormatType } from '../../components/internal/BankAccountFormat/types';
|
|
2
|
-
import { PayoutAccountSchema } from '../../components/PayoutAccount/types';
|
|
3
|
-
import { ValidatorRule } from '../../utils/validation/types';
|
|
4
|
-
import { ValidationRule } from './api/get-configuration';
|
|
5
|
-
import { CountryCode } from './country-code';
|
|
6
|
-
import { CountryConfig } from './country-config';
|
|
7
|
-
export declare const payoutFieldsMapping: Record<string, keyof PayoutAccountSchema>;
|
|
8
|
-
export declare const maskedPayoutFields: Array<keyof PayoutAccountSchema>;
|
|
9
|
-
export declare const countryConfig: CountryConfig;
|
|
10
|
-
export declare const getValidatorRules: (validationRule: ValidationRule) => ValidatorRule<string, PayoutAccountSchema> | undefined;
|
|
11
|
-
export declare const defaultPayoutAccountFormat: Partial<Record<CountryCode, BankAccountFormatType>>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ValidatorRule } from '../../utils/validation/types';
|
|
2
|
-
export type ScenarioFields<Schema> = Record<string, {
|
|
3
|
-
[key in keyof Schema]: ScenarioFieldSettings<Schema[key]>;
|
|
4
|
-
}>;
|
|
5
|
-
export interface ScenarioFieldSettings<FieldType = unknown> {
|
|
6
|
-
masked?: boolean;
|
|
7
|
-
rule?: string;
|
|
8
|
-
rules?: string[];
|
|
9
|
-
verify?: string | boolean;
|
|
10
|
-
validators?: Array<ValidatorRule<FieldType, any>>;
|
|
11
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CountryConfig } from './country-config';
|
|
2
|
-
import { ScenarioFields, ScenarioFieldSettings } from './scenario-fields';
|
|
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;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { TranslationKey } from '../../language/types';
|
|
2
|
-
import { TrustMemberType } from './api/trust-member-type';
|
|
3
|
-
import { CountryCode } from './country-code';
|
|
4
|
-
import { CountryConfig } from './country-config';
|
|
5
|
-
import { ScenarioFields, ScenarioFieldSettings } from './scenario-fields';
|
|
6
|
-
export declare enum TrustMemberGuidanceLabel {
|
|
7
|
-
BENEFICIARY = "beneficiary",
|
|
8
|
-
PROTECTOR = "protector",
|
|
9
|
-
TRUSTEE = "trustee",
|
|
10
|
-
SETTLOR = "settlor"
|
|
11
|
-
}
|
|
12
|
-
export interface TrustMemberRequirement {
|
|
13
|
-
roleTypes: readonly TrustMemberType[];
|
|
14
|
-
min: number;
|
|
15
|
-
max: number;
|
|
16
|
-
label: TrustMemberGuidanceLabel;
|
|
17
|
-
}
|
|
18
|
-
export declare const TRUST_COUNTRIES: CountryCode[];
|
|
19
|
-
export declare const trustBase: {
|
|
20
|
-
[key: string]: ScenarioFieldSettings;
|
|
21
|
-
};
|
|
22
|
-
export declare const fieldsPerScenario: ScenarioFields<typeof trustBase>;
|
|
23
|
-
export declare const countryConfig: CountryConfig;
|
|
24
|
-
export declare const DEFAULT_TRUST_MEMBER_REQUIREMENTS: readonly TrustMemberRequirement[];
|
|
25
|
-
export declare const TRUST_DEFAULT_DESCRIPTIONS_MAP: Record<TrustMemberGuidanceLabel, TranslationKey>;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { PayoutAccountSchema } from '../components/PayoutAccount/types';
|
|
2
|
-
import { SolePropSchema } from '../components/SoleProp/types';
|
|
3
|
-
import { AnyTLDSFieldName } from '../utils/getFieldsWithExistingData';
|
|
4
|
-
import { ValidatorRules } from '../utils/validation/types';
|
|
5
|
-
import { BaseOuterFormProps } from './hooks/useForm';
|
|
6
|
-
import { VerificationError } from './models/api/verification-error';
|
|
7
|
-
import { Remediation } from './models/errors/remediation';
|
|
8
|
-
import { FieldConfigurations } from './models/field-configurations';
|
|
9
|
-
import { FormList } from './models/form';
|
|
10
|
-
export declare function parseIndividualScenarios<FormSchema>(scenario: any, country: any): FieldConfigurations<FormSchema>;
|
|
11
|
-
export declare function parseCompanyScenarios<FormSchema>(scenario: any, country: any): FieldConfigurations<FormSchema>;
|
|
12
|
-
export declare function parseTrustScenarios<FormSchema>(scenario: any, country: any): FieldConfigurations<FormSchema>;
|
|
13
|
-
export declare function parseSolePropScenarios(scenario: any, country: any): FieldConfigurations<SolePropSchema>;
|
|
14
|
-
export declare function parsePayoutScenarios({ requiredFields, country, bankVerificationAvailable, }: {
|
|
15
|
-
requiredFields: any;
|
|
16
|
-
country: any;
|
|
17
|
-
bankVerificationAvailable: any;
|
|
18
|
-
}): Partial<FieldConfigurations<PayoutAccountSchema>>;
|
|
19
|
-
type PropsFromConfiguration<FormSchema> = Required<Pick<BaseOuterFormProps<FormSchema>, 'verifyFields' | 'requiredFields' | 'placeholders' | 'optionalFields' | 'labels' | 'maskedFields'>> & {
|
|
20
|
-
validators: ValidatorRules<FormSchema>;
|
|
21
|
-
allFields: {
|
|
22
|
-
[Field in keyof FormSchema]: FormSchema[Field];
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* function: getPropsFromScenarios
|
|
27
|
-
*
|
|
28
|
-
* Configurations are stored as a flat list of fields and their properties.(see identity.ts), they
|
|
29
|
-
* should be agnostic of how forms are structured and implemented. While parsing the configurations
|
|
30
|
-
* the form structure information will be used to generate props specific to the passed form.
|
|
31
|
-
* This also means the field names in configurations and forms should match.
|
|
32
|
-
*
|
|
33
|
-
* @returns value Eg:
|
|
34
|
-
* ```
|
|
35
|
-
* {
|
|
36
|
-
* requiredFields: {
|
|
37
|
-
* personalDetails: ['firstName', 'lastName', 'idNumber', 'residencyCountry' ],
|
|
38
|
-
* contactDetails: ['phoneNumber', 'email']
|
|
39
|
-
* },
|
|
40
|
-
* optionalFields: {
|
|
41
|
-
* contactDetails: ['email']
|
|
42
|
-
* },
|
|
43
|
-
* labels: {
|
|
44
|
-
* personalDetails: {
|
|
45
|
-
* firstName: 'givenName',
|
|
46
|
-
* lastName: 'surName'
|
|
47
|
-
* }
|
|
48
|
-
* },
|
|
49
|
-
* placeholders: {
|
|
50
|
-
* personalDetails: {
|
|
51
|
-
* firstName: 'givenName',
|
|
52
|
-
* }
|
|
53
|
-
* },
|
|
54
|
-
* validators: {
|
|
55
|
-
* phoneNumber: {
|
|
56
|
-
* validate: (value, context?) => boolean;
|
|
57
|
-
* errorMessage?: string | ErrorMessageObject;
|
|
58
|
-
* modes: 'blur' | 'input';
|
|
59
|
-
* }
|
|
60
|
-
* }
|
|
61
|
-
*
|
|
62
|
-
* }
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
export declare function getPropsFromConfigurations<FormSchema extends object>(scenarioConfiguration: FieldConfigurations<FormSchema>, forms: FormList, remediationActions: Remediation[], dataMissingErrors: VerificationError[], fieldsWithExistingData: AnyTLDSFieldName[], customRules?: {}, customLabels?: {}): PropsFromConfiguration<FormSchema>;
|
|
66
|
-
export declare const remediationHasFileUploadField: (remediation: Remediation) => boolean;
|
|
67
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { CustomTranslations } from '../language/types';
|
|
2
|
-
import { CountryCode } from './models/country-code';
|
|
3
|
-
export interface CoreOptions {
|
|
4
|
-
/**
|
|
5
|
-
* The URL of the KYC external API. This will be used to fetch static resources and configurations.
|
|
6
|
-
*/
|
|
7
|
-
environment: string;
|
|
8
|
-
/**
|
|
9
|
-
* A public key linked to your web service user, used to fetch reference data.
|
|
10
|
-
*/
|
|
11
|
-
clientKey: string;
|
|
12
|
-
/**
|
|
13
|
-
* @defaultValue 'en-US'
|
|
14
|
-
*/
|
|
15
|
-
locale: string;
|
|
16
|
-
/**
|
|
17
|
-
* Custom translations and localizations
|
|
18
|
-
*/
|
|
19
|
-
translations?: CustomTranslations;
|
|
20
|
-
country: CountryCode;
|
|
21
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
export 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 | any[] | null;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
interface EventQueueItem {
|
|
14
|
-
eventName: string;
|
|
15
|
-
eventPayload?: UserEvent;
|
|
16
|
-
}
|
|
17
|
-
export type UserEventCallback = (eventQueueItems: EventQueueItem[]) => void;
|
|
18
|
-
declare class UserEvents {
|
|
19
|
-
private readonly queue;
|
|
20
|
-
private readonly subscriptions;
|
|
21
|
-
protected add(...args: any[]): void;
|
|
22
|
-
protected notifySubscribers(): void;
|
|
23
|
-
/**
|
|
24
|
-
* Adds an analytics event. Optionally can include a payload.
|
|
25
|
-
*/
|
|
26
|
-
addEvent(key: string, event?: UserEvent): void;
|
|
27
|
-
/**
|
|
28
|
-
* Logs a page view event
|
|
29
|
-
* @param pageName - The name of the page/screen to log as viewed
|
|
30
|
-
*/
|
|
31
|
-
addPageView(pageName: string): void;
|
|
32
|
-
/**
|
|
33
|
-
* Starts a new event which is expected to be ended with `endEvent` eventually
|
|
34
|
-
*/
|
|
35
|
-
startEvent(key: string): void;
|
|
36
|
-
/**
|
|
37
|
-
* Ends an event previously started with `startEvent`. Optionally can include a payload.
|
|
38
|
-
*/
|
|
39
|
-
endEvent(key: string, event?: UserEvent): void;
|
|
40
|
-
/**
|
|
41
|
-
* Subscribes a callback to analytics events. It gets called every time
|
|
42
|
-
* one of the above public methods get called, and the event data is passed back as an array.
|
|
43
|
-
* The callback must have a single argument which is an array of [eventName, eventPayload?].
|
|
44
|
-
* @example
|
|
45
|
-
* ```js
|
|
46
|
-
* const callback = ([eventName, eventPayload]) => console.log(eventName, eventPayload);
|
|
47
|
-
* this.subscribe(callback);
|
|
48
|
-
*
|
|
49
|
-
* const exampleEventPayload = { count: 1, segmentation: { foo: 'bar' } };
|
|
50
|
-
* this.addEvent('exampleEventDidOccur', exampleEventPayload);
|
|
51
|
-
*
|
|
52
|
-
* // `callback` will get called with `['exampleEventDidOccur', exampleEventPayload]`
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
subscribe(callback: UserEventCallback): void;
|
|
56
|
-
/**
|
|
57
|
-
* Removes a subscribed callback
|
|
58
|
-
*/
|
|
59
|
-
unsubscribe(callback: UserEventCallback): void;
|
|
60
|
-
}
|
|
61
|
-
export declare const userEvents: UserEvents;
|
|
62
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
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
|
-
type BaseTrackingPayloadParams = {
|
|
5
|
-
trackingConfig?: {
|
|
6
|
-
topLevelLegalEntity: LegalEntity;
|
|
7
|
-
};
|
|
8
|
-
parentLegalEntity?: LegalEntity;
|
|
9
|
-
legalEntity?: LegalEntity;
|
|
10
|
-
task: TaskTypes;
|
|
11
|
-
};
|
|
12
|
-
export type BaseTrackingPayload = {
|
|
13
|
-
task: TaskTypes;
|
|
14
|
-
flow: LegalEntityType;
|
|
15
|
-
topLevelLegalEntityId: string;
|
|
16
|
-
topLevelLegalEntityType: LegalEntityType;
|
|
17
|
-
parentLegalEntityId?: string;
|
|
18
|
-
parentLegalEntityType?: LegalEntityType;
|
|
19
|
-
legalEntityId?: string;
|
|
20
|
-
legalEntityType?: LegalEntityType;
|
|
21
|
-
};
|
|
22
|
-
export declare function getBaseTrackingPayload({ trackingConfig, parentLegalEntity, legalEntity, task, }: BaseTrackingPayloadParams): BaseTrackingPayload;
|
|
23
|
-
/**
|
|
24
|
-
* Filter data and remove unneeded fields
|
|
25
|
-
* @param dataSubmitted - actual form data submitted from the frontend
|
|
26
|
-
* @param savedLegalEntityData - the data saved in the BE
|
|
27
|
-
* @returns filtered data
|
|
28
|
-
*/
|
|
29
|
-
export declare const removeOldDataBySchema: (dataSubmitted: any, savedLegalEntityData: any) => any;
|
|
30
|
-
export {};
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { CustomTranslations, TranslationKey, Translations } from './types';
|
|
2
|
-
import { GetTranslationOptions } from './utils';
|
|
3
|
-
declare class Language {
|
|
4
|
-
private supportedLocales;
|
|
5
|
-
customTranslations: CustomTranslations;
|
|
6
|
-
languageCode: string;
|
|
7
|
-
locale: string;
|
|
8
|
-
translations: Translations;
|
|
9
|
-
/**
|
|
10
|
-
* Returns a translated string from a key in the current {@link Language.locale}
|
|
11
|
-
* @param key - Translation key
|
|
12
|
-
* @param options - Translation options
|
|
13
|
-
* @returns Translated string
|
|
14
|
-
*/
|
|
15
|
-
get(key: TranslationKey, options?: GetTranslationOptions): string;
|
|
16
|
-
/**
|
|
17
|
-
* Returns a localized string for a date
|
|
18
|
-
* @param date - Date to be localized
|
|
19
|
-
* @param options - Options for {@link Intl.DateTimeFormatOptions}
|
|
20
|
-
*/
|
|
21
|
-
date(date: string, options?: Intl.DateTimeFormatOptions): string;
|
|
22
|
-
/**
|
|
23
|
-
* initialize the i18n language -- setting local, supported locales and translations
|
|
24
|
-
* @param customTranslations - translation passed to the SDK to override some keys
|
|
25
|
-
* @param locale - passed to the SDK locale or fallback
|
|
26
|
-
* @param allowedLocales - allowed locales listed from the KYC external API that we can switch to
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
|
-
initialize({ customTranslations, locale, allowedLocales, loadingContext, clientKey, }: {
|
|
30
|
-
customTranslations?: {};
|
|
31
|
-
locale?: string;
|
|
32
|
-
allowedLocales?: string[];
|
|
33
|
-
loadingContext: any;
|
|
34
|
-
clientKey: any;
|
|
35
|
-
}): Promise<void>;
|
|
36
|
-
/**
|
|
37
|
-
* Returns the translations according to the selected locale
|
|
38
|
-
* @param locale - Currently selected locale
|
|
39
|
-
* @returns Translations
|
|
40
|
-
*/
|
|
41
|
-
loadTranslations({ locale, loadingContext, clientKey }: {
|
|
42
|
-
locale?: string;
|
|
43
|
-
loadingContext: any;
|
|
44
|
-
clientKey: any;
|
|
45
|
-
}): Promise<any>;
|
|
46
|
-
}
|
|
47
|
-
export default Language;
|