@adyen/kyc-components 4.22.0-beta.0 → 4.22.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceWorkflow-D2mvc_PB.js → AcceptTermsOfServiceWorkflow-BOf_52TF.js} +4 -4
- package/dist/{Accordion-DEivLTcw.js → Accordion-Sjyj7C_t.js} +1 -1
- package/dist/{AccountSetupRejected-pcQcFAhQ.js → AccountSetupRejected-DoYH7MuS.js} +1 -1
- package/dist/{AdaptiveWorkflow-C0EsaW8F.js → AdaptiveWorkflow-ychw-YVL.js} +16 -16
- package/dist/{AdaptiveWorkflowComponent-Nk2CJaU4.js → AdaptiveWorkflowComponent-DFnkomSo.js} +3 -3
- package/dist/{AddressFields-3kqeRdC_.js → AddressFields-CFf-ECTn.js} +10 -10
- package/dist/{Avatar-DHyXCNwV.js → Avatar-Zp1T9qAL.js} +1 -1
- package/dist/{BusinessFinancingDropin-BOECqGNd.js → BusinessFinancingDropin-Dr9GOZI2.js} +31 -31
- package/dist/{BusinessFinancingPage-DSy5an97.js → BusinessFinancingPage-DIHz906_.js} +3 -3
- package/dist/{BusinessRegistrationNumberField-DHccXqsX.js → BusinessRegistrationNumberField-BGZrKxCP.js} +5 -5
- package/dist/{BusinessRegistrationNumberFieldGroup-2e9GKH-i.js → BusinessRegistrationNumberFieldGroup-D4289xzf.js} +5 -5
- package/dist/{BusinessTypeSelectionPage-BraXRUrg.js → BusinessTypeSelectionPage-D7mTXytS.js} +85 -67
- package/dist/{Button-nDbNtBn3.js → Button-DfRmINzF.js} +1 -1
- package/dist/{Checkbox-BiKnP2fS.js → Checkbox-DTQ5Y6L-.js} +2 -2
- package/dist/{ComponentGroup-Due-N8Yz.js → ComponentGroup-DysWDI71.js} +3 -3
- package/dist/{ConstitutionalDocument-CtRHXMb9.js → ConstitutionalDocument-o1_xv4zy.js} +15 -15
- package/dist/{ContactDetails-Syyy5BfB.js → ContactDetails-BUZAvP2T.js} +5 -5
- package/dist/{ContextGuidance-D8leB0D6.js → ContextGuidance-fy9mkvE5.js} +3 -3
- package/dist/{Currency-CFsMnSP0.js → Currency-CfDw1FVZ.js} +5 -5
- package/dist/{CustomerSupport-DqayB3BM.js → CustomerSupport-BRTzBxJt.js} +25 -15
- package/dist/{DataConflictsModal-Bz2SYyi5.js → DataConflictsModal-s-Ss3HdC.js} +7 -7
- package/dist/{DebugModal-fH0uKl1E.js → DebugModal-CbilZSFv.js} +10 -10
- package/dist/{DecisionMakerDetails-7IPREpy1.js → DecisionMakerDetails-CWZUSV8G.js} +12 -12
- package/dist/{DecisionMakerDetailsPage-Bs9q7sxc.js → DecisionMakerDetailsPage-Rtsv9ICS.js} +7 -7
- package/dist/{DecisionMakers-Dw66GRhZ.js → DecisionMakers-BmUjP2RH.js} +13 -13
- package/dist/{Dropzone-CjLSK2UN.js → Dropzone-dnfMEv2T.js} +7 -7
- package/dist/{EmbeddedStatus-BIVFBjzu.js → EmbeddedStatus-tbJfdxm8.js} +3 -3
- package/dist/{EndStateLayout-D2CSEwEn.js → EndStateLayout-BK1Hh02g.js} +2 -2
- package/dist/{EntityAssociation-LF_5ihhI.js → EntityAssociation-CH9G3mlZ.js} +6 -6
- package/dist/{ErrorPanel-tLtZnFnX.js → ErrorPanel-B5suXapM.js} +2 -2
- package/dist/{GlobalEntryModal-CY-t1fGQ.js → GlobalEntryModal-DwhX1CJz.js} +237 -51
- package/dist/{GlobalEntryPage-xX4ruKnx.js → GlobalEntryPage-DPYM9_FS.js} +11 -8
- package/dist/{Icon-BcaP-f1D.js → Icon-C3S5_kkS.js} +1 -1
- package/dist/{IdentityNumber-4ky6SOcb.js → IdentityNumber-BJymypwh.js} +5 -5
- package/dist/{IdentityNumberFieldGroup-BKKmSfLG.js → IdentityNumberFieldGroup-DPfXsI_n.js} +2 -2
- package/dist/{IdentityScreeningWorkflow-D0eNj4nD.js → IdentityScreeningWorkflow-ZVSOyRqF.js} +12 -12
- package/dist/{IndividualDropin-DrQiG_Vy.js → IndividualDropin-B3UfxIu8.js} +269 -45
- package/dist/{IndustryCodeFieldGroup-jm8KFccr.js → IndustryCodeFieldGroup-D5U1t1F-.js} +4 -4
- package/dist/{InputDate-C14J5Af2.js → InputDate-CncTgJYS.js} +3 -3
- package/dist/{InputText-Dr-Wg0uc.js → InputText-Bniyaz3w.js} +3 -3
- package/dist/{Introduction-DXAxkrDG.js → Introduction-BOz_2500.js} +6 -6
- package/dist/{InvitedDecisionMakerComponent-CPMIUjiE.js → InvitedDecisionMakerComponent-DgIv6IG9.js} +9 -9
- package/dist/{JpAddressFields-olKUlhpt.js → JpAddressFields-nEKx7nU_.js} +8 -8
- package/dist/{LegalCompanyNameField-BrdI-awc.js → LegalCompanyNameField-BFm2LIw2.js} +5 -5
- package/dist/{LegalName-CWoSqy0V.js → LegalName-DBvf_laS.js} +4 -4
- package/dist/{LegalRepresentativeDetailsPage-Ca3FLoSd.js → LegalRepresentativeDetailsPage-BVr_AhP6.js} +3 -3
- package/dist/{Link-opuU6bLF.js → Link-c2jAgGgc.js} +1 -1
- package/dist/{ListItem-CbjOa0L_.js → ListItem-C35r8558.js} +3 -3
- package/dist/{Modal-BDNS-0rS.js → Modal-5uXk2vE6.js} +2 -2
- package/dist/{Name-CxlxPgUR.js → Name-CbdY9G9k.js} +4 -4
- package/dist/{NewSummary-mLsovGX8.js → NewSummary-lUp_hg6V.js} +6 -6
- package/dist/{PatriotActDisclosure-kOnDnF8P.js → PatriotActDisclosure-i6txl8sg.js} +9 -9
- package/dist/{PayoutDetailsDropin-CZ77wefd.js → PayoutDetailsDropin-BnDericg.js} +25 -25
- package/dist/{PayoutDetailsPage-Cyy-fDbK.js → PayoutDetailsPage-zLj-XA7a.js} +4 -4
- package/dist/{RadioGroup-C0mNADXE.js → RadioGroup-BcRkK03K.js} +11 -11
- package/dist/{Review-CDtJh9j3.js → Review--lh7xBZJ.js} +6 -6
- package/dist/{RootBusinessDetailsPage-CnVWFx0H.js → RootBusinessDetailsPage-CsOt68pH.js} +3 -3
- package/dist/{RootBusinessLinesPage-Dtx9X-mD.js → RootBusinessLinesPage-CsPTRJHI.js} +20 -20
- package/dist/{RootIndividualDetailsPage-q8PZ0Khk.js → RootIndividualDetailsPage-CROUaWsK.js} +4 -4
- package/dist/{Select-UO37dd_q.js → Select-CAYO1vj-.js} +6 -6
- package/dist/{SignPCIComponent-D21OqVWo.js → SignPCIComponent-iFFWNqDL.js} +13 -13
- package/dist/{SingpassSelection-CRYphIRT.js → SingpassSelection-BKRSs-Xf.js} +4 -4
- package/dist/{SoleProprietorshipPage-BKB0sRiP.js → SoleProprietorshipPage-UvZsbICO.js} +3 -3
- package/dist/{SourceOfFundsPage-C2ZEp0lT.js → SourceOfFundsPage-B5E9w3tI.js} +25 -28
- package/dist/{SourceOfFundsWorkflow-Cy12c7ou.js → SourceOfFundsWorkflow-DgUkjcYh.js} +4 -4
- package/dist/{StateField-CWS8eXex.js → StateField-DB4_kWP5.js} +46 -5
- package/dist/{Step-CYG94mSp.js → Step-CoGy1zas.js} +4 -4
- package/dist/{Task-D6xuGucd.js → Task-DdRNdhJY.js} +7 -7
- package/dist/{TaskGroup-C4ND30dB.js → TaskGroup-yVbg_WHM.js} +3 -3
- package/dist/{TaskListItem-Dc6n6llv.js → TaskListItem-BritELso.js} +10 -10
- package/dist/{TaskStepperContextProvider-CvChF1W5.js → TaskStepperContextProvider-D0tKJplv.js} +1 -1
- package/dist/{TaskVerificationStatus-pjPK5vVN.js → TaskVerificationStatus-DPA4ZEPa.js} +1 -1
- package/dist/{TaxInformationFieldGroup-BACQgHQ7.js → TaxInformationFieldGroup-CYcqRgQt.js} +9 -9
- package/dist/{TaxReportingDropin-DmOclyYQ.js → TaxReportingDropin-Dxt-K1Td.js} +14 -14
- package/dist/{TaxReportingWorkflow-CBEB7oAn.js → TaxReportingWorkflow-xeJVSZxl.js} +4 -4
- package/dist/{TermsOfServiceManagement-No_9QGjv.js → TermsOfServiceManagement-BiqqRcsM.js} +12 -12
- package/dist/{TextArea-BzY5efza.js → TextArea-mN6mmyt0.js} +4 -4
- package/dist/{TrustDetailsPage-BHjbebZX.js → TrustDetailsPage-OuITcLjL.js} +23 -25
- package/dist/{TrustMemberCompanyPage-BSe-Pn1O.js → TrustMemberCompanyPage-BSr2h39m.js} +4 -4
- package/dist/{TrustMemberIndividualPage-DxlZQF6W.js → TrustMemberIndividualPage-D1oTjw8X.js} +3 -3
- package/dist/{TrustMemberRoleAndTypePage-AtlXyfKk.js → TrustMemberRoleAndTypePage-qnLRC07p.js} +15 -16
- package/dist/{TrustMembersOverview-DpmUv4Vj.js → TrustMembersOverview-BhtPLg82.js} +11 -11
- package/dist/{UboTaskItem-ESC2Ze3o.js → UboTaskItem-dmz_L8pF.js} +7 -7
- package/dist/{UnincorporatedPartnershipIndividualPage-BVpz27KZ.js → UnincorporatedPartnershipIndividualPage-BGuseNDd.js} +3 -3
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-BBxtLGt0.js → UnincorporatedPartnershipMemberCompanyPage-DfWEeKVA.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-BuI7aE3O.js → UnincorporatedPartnershipMemberRoleAndTypePage-CNrub8wj.js} +8 -8
- package/dist/{UnincorporatedPartnershipMembersOverview-sE8-A2hQ.js → UnincorporatedPartnershipMembersOverview-BISsH8Wm.js} +6 -6
- package/dist/{VerificationErrorAlert-BCEhkhpr.js → VerificationErrorAlert-DAg5VgBd.js} +3 -3
- package/dist/{Workflow-CzSGihyD.js → Workflow-CVwXYQQE.js} +6 -6
- package/dist/{accountHolderUtils-3WiED1-j.js → accountHolderUtils-Dt7JmWab.js} +1 -1
- package/dist/adyen-business-financing.js +4 -4
- package/dist/adyen-individual-configuration.js +3 -3
- package/dist/adyen-individual-status.js +3 -3
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +43 -34
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +3 -3
- package/dist/adyen-transfer-instrument-configuration.js +3 -3
- package/dist/adyen-transfer-instrument-management.js +10 -10
- package/dist/adyen-verification-status.js +3 -3
- package/dist/{bafinUtils-h8n1IbJ9.js → bafinUtils-B8teCz7U.js} +160 -1053
- package/dist/businessRegistrationNumberPatterns-DwjKFSlu.js +981 -0
- package/dist/{constants-B9iXz9xK.js → constants-CSVEfRuk.js} +4 -4
- package/dist/{country-DkgapJ4w.js → country-zZC2TAQB.js} +1 -1
- package/dist/{decisionMaker-M0Tm92JR.js → decisionMakerRoles-APTR-Ah_.js} +41 -2
- package/dist/{error-CHFF8jLc.js → error-DhPmKdY4.js} +3 -3
- package/dist/{form-rules-CKwx5XtT.js → form-rules-yTwukXew.js} +6 -6
- package/dist/{formatValidationError-DZ1CxHdw.js → formatValidationError-ChBRk626.js} +2 -2
- package/dist/{getDefaultRegistrationNumberType-6m6DEmW8.js → getDefaultRegistrationNumberType-DPidx6iz.js} +59 -59
- package/dist/{getTrustedDecisionMakers-qs2frwk2.js → getTrustedDecisionMakers-DX3nImM5.js} +2 -2
- package/dist/{legalArrangementUtils-skU_cq9L.js → legalArrangementUtils-xvCxpgzJ.js} +48 -2
- package/dist/mapAddressLocalizationToJpAddressSchema-DEOqm_oJ.js +26 -0
- package/dist/{mapExistingFile-CDahgHsP.js → mapExistingFile-CwGW1ru4.js} +1 -1
- package/dist/{mapJpAddressSchemaToAddressLocalizations-CX2djRYM.js → mapJpAddressSchemaToAddressLocalizations-BcW9wSjn.js} +3 -4
- package/dist/{mapLegalEntityToIndividualSchema-ChE9qTUB.js → mapLegalEntityToIndividualSchema-Ksy4YlcJ.js} +7 -7
- package/dist/{mapTransferInstrumentToPayoutAccount-BmSbFaJJ.js → mapTransferInstrumentToPayoutAccount-BoZaPCSn.js} +2 -2
- package/dist/{processValidationErrors-CRWq2tu-.js → processValidationErrors-BJNiG_SS.js} +3 -3
- package/dist/{resolveEnvironment-D2iMH7UD.js → resolveEnvironment-6rOnOa58.js} +11 -11
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/BusinessRegistrationNumberFieldGroup.d.ts +2 -3
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/RegistrationNumberTypeSelectorField.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxIdTypeSelectorField.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxInformationFieldGroup.d.ts +3 -3
- package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +1 -1
- package/dist/types/api/legalEntity/legalEntity.types.d.ts +9 -0
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +7 -7
- package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +2 -2
- package/dist/types/components/Business/forms/BasicInformation/types.d.ts +2 -2
- package/dist/types/components/Business/forms/CompanyStructure/types.d.ts +2 -2
- package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +2 -2
- package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialReportsToFinancialInformation.d.ts +2 -2
- package/dist/types/components/Business/forms/RegistrationDocument/types.d.ts +3 -3
- package/dist/types/components/Business/forms/TaxDocument/types.d.ts +3 -3
- package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/validate.d.ts +2 -2
- package/dist/types/components/Business/utils/applyVerifiedBusinessData.d.ts +2 -2
- package/dist/types/components/Business/utils/companyTypeMetadata.d.ts +4 -4
- package/dist/types/components/Business/utils/getAvailableCompanyStructures.d.ts +2 -2
- package/dist/types/components/Business/utils/utils.d.ts +3 -4
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +96 -102
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +5 -6
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +2 -2
- package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +2 -2
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/PaperworkQuestionnaire.d.ts +5 -0
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/PrimaryPartnerTypeField/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/UnincorporatedOrganizationTypeField/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/globalEntryKeyMapping.d.ts +15 -0
- package/dist/types/components/GlobalEntry/rules.d.ts +1 -1
- package/dist/types/components/GlobalEntry/tasks/GlobalEntryModal.d.ts +6 -2
- package/dist/types/components/GlobalEntry/tasks/GlobalEntryPage.d.ts +5 -1
- package/dist/types/components/GlobalEntry/utils.d.ts +27 -3
- package/dist/types/components/Individual/forms/IdNowVerificationModal/isIdNowModalOpen.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +0 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +1 -0
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/getDefaultRegistrationNumberType.d.ts +2 -2
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/inferCompanyRegistrationNumberType.d.ts +2 -2
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +2 -2
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/registrationNumberTypes.d.ts +3 -3
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +3 -4
- package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/TaxIdNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/getDefaultTaxIdNumberType.d.ts +3 -4
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/inferTaxIdNumberType.d.ts +3 -4
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +4 -4
- package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +5 -4
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +9 -4
- package/dist/types/components/Shared/fields/TaxInformationField/utils.d.ts +1 -1
- package/dist/types/components/Shared/fields/VatNumberField/VatNumberTypeSelector/VatNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +4 -4
- package/dist/types/components/Shared/fields/VatNumberField/vatNumberTypes.d.ts +2 -3
- package/dist/types/components/Shared/forms/Address/localized/jp/mapAddressLocalizationToJpAddressSchema.d.ts +2 -2
- package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSchemaToAddressLocalizations.d.ts +2 -2
- package/dist/types/components/Shared/forms/Address/types.d.ts +3 -7
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/useUpdateLegalEntityAndSelectAccountHolder.d.ts +13 -0
- package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +3 -3
- package/dist/types/components/Shared/forms/DocumentUpload/types.d.ts +2 -2
- package/dist/types/components/Shared/tasks/CustomerSupport/mapping/mapCustomerSupportSchemaToCustomerSupportType.d.ts +2 -2
- package/dist/types/components/Shared/tasks/CustomerSupport/mapping/mapDtoToCustomerSupportSchema.d.ts +3 -0
- package/dist/types/core/models/api/individual.d.ts +5 -6
- package/dist/types/core/models/api/legal-arrangement.d.ts +6 -6
- package/dist/types/core/models/api/legal-entity.d.ts +2 -2
- package/dist/types/core/user-events.d.ts +2 -2
- package/dist/types/datasets/generators/getCompanyTypeExamplesForCountry.d.ts +3 -3
- package/dist/types/hooks/useDataConflicts.d.ts +2 -2
- package/dist/types/router/routeConfig.d.ts +1 -1
- package/dist/types/types/businessEntityType.d.ts +7 -0
- package/dist/types/utils/addressToString.d.ts +2 -2
- package/dist/types/utils/analytics/debouncedInputEvent.d.ts +1 -1
- package/dist/types/utils/businessUtils.d.ts +18 -7
- package/dist/types/utils/customerSupportUtils.d.ts +2 -2
- package/dist/types/utils/legalArrangementUtils.d.ts +1 -0
- package/dist/types/utils/mapping/documentGuidanceMap.d.ts +1 -1
- package/dist/{types-Bdfu7HN6.js → types-wRlt8bxb.js} +1 -1
- package/dist/{useBusinessDetailsData-DZQuIMNw.js → useBusinessDetailsData-D5WMRXf8.js} +88 -111
- package/dist/{useCanSeeIntroduction-BGYdkMIE.js → useCanSeeIntroduction-47a29qGT.js} +3 -3
- package/dist/{useForm-BJq32Ve1.js → useForm-C8X8Nh_A.js} +3 -3
- package/dist/{useHideTaskStepper-CcCmW80A.js → useHideTaskStepper-CbMcV9mk.js} +1 -1
- package/dist/{useId-BMocIuPK.js → useId-CcjYxxnm.js} +1 -1
- package/dist/{useNavigate-D4ypqPBN.js → useNavigate-ZoEeUtrK.js} +33 -33
- package/dist/{useSalesChannels-BCzs8Xya.js → useSalesChannels-K1tuVs25.js} +3 -3
- package/dist/{useTaskLandedEvent-Cf1fN_gV.js → useTaskLandedEvent-DcX3urqZ.js} +2 -2
- package/dist/{useTrustMembers-DqpnYNNj.js → useTrustMembers-DoRWdimd.js} +2 -2
- package/dist/{useUnincorporatedPartnershipMembers-w3dG_nyc.js → useUnincorporatedPartnershipMembers-K5jkCKfJ.js} +1 -1
- package/dist/{StructuredList-CqZM_5X9.js → utils-CXLiV88a.js} +94 -5
- package/dist/{utils-BMhvbUV1.js → utils-Dm0eoyQ6.js} +8 -17
- package/dist/{validate-BqIbVY0E.js → validate-09Jy2SgA.js} +8 -8
- package/dist/{validate-DiEa5w30.js → validate-BcUs5K_M.js} +46 -6
- package/dist/{validate-RLWN-I5L.js → validate-DnnWVNv6.js} +2 -2
- package/dist/{validate-Dfw99Sal.js → validate-tS-cwVuY.js} +3 -3
- package/dist/{validateExtractionResult-DueyX5oY.js → validateExtractionResult-dH4TewHf.js} +2 -2
- package/dist/{validationError-BhICjGiF.js → validationError-D4d622D3.js} +2 -2
- package/package.json +1 -1
- package/dist/Individual.rules-PKwY3D-0.js +0 -293
- package/dist/decisionMakerRoles-DbKnutwk.js +0 -46
- package/dist/isEmpty-DD8Insy0.js +0 -14
- package/dist/mapAddressLocalizationToJpAddressSchema-CBeBTFmC.js +0 -66
- package/dist/types/core/models/api/address.d.ts +0 -14
- package/dist/types/core/models/api/branchAllocation.d.ts +0 -5
- package/dist/types/core/models/api/company-types-value.d.ts +0 -15
- package/dist/types/core/models/api/customerSupport.d.ts +0 -12
- package/dist/types/core/models/api/financialReport.d.ts +0 -15
- package/dist/types/core/models/api/organization.d.ts +0 -60
- package/dist/useCreateLegalEntity-CYZd_62a.js +0 -24
- package/dist/useUpdateLegalEntity-CvACAgDP.js +0 -29
- package/dist/utils-Br7Ah3uy.js +0 -46
- package/dist/utils-DdHbAadK.js +0 -80
|
@@ -1,7 +1,6 @@
|
|
|
1
|
+
import type { AddressDto, OrganizationDto } from '../../../../api/legalEntity/legalEntity.types';
|
|
1
2
|
import type { ExistingLegalEntity, LegalEntity, PatchLegalEntity } from '../../../../core/models/api/legal-entity';
|
|
2
|
-
import type { Organization } from '../../../../core/models/api/organization';
|
|
3
3
|
import type { MultiFormOptions } from '../../../../hooks/useMultiForm/types';
|
|
4
|
-
import type { Address } from '../../../../core/models/api/address';
|
|
5
4
|
import type { CountryCode } from '../../../../types/datasets/country-code';
|
|
6
5
|
import type { Currency } from '../../../../types/datasets/currency';
|
|
7
6
|
import type { EntityProblems } from '../../../../types/errors/entity-problems';
|
|
@@ -39,11 +38,11 @@ export declare const prepareSoleProprietorBusinessFinancingSubmitData: (data: Bu
|
|
|
39
38
|
solePropPayload: PatchLegalEntity;
|
|
40
39
|
} | null;
|
|
41
40
|
export declare const prepareBusinessFinancingSubmitData: (businessFinancingIndex: BusinessFinancingIndex, data: BusinessFinancingSchema, rootLegalEntity: ExistingLegalEntity | undefined) => LegalEntity | null;
|
|
42
|
-
export declare const appendBusinessFinancingData: (legalOrganization?:
|
|
41
|
+
export declare const appendBusinessFinancingData: (legalOrganization?: OrganizationDto, businessFinancingData?: BusinessFinancingCompanySchema | BusinessFinancingParentSchemasCombined) => BusinessFinancingCompanySchema | BusinessFinancingParentSchemasCombined | undefined;
|
|
43
42
|
export declare const appendSoleProprietorBusinessFinancingData: (legalArrangement: any, businessFinancingData?: BusinessFinancingSoleProprietorSchema) => BusinessFinancingSoleProprietorSchema | undefined;
|
|
44
43
|
export declare const handleBusinessFinancingFormSubmission: (businessFinancingType: BusinessFinancingIndex, details: LegalEntity | PatchLegalEntity | null, createFunction: (details: LegalEntity) => Promise<ExistingLegalEntity>, updateFunction: (details: PatchLegalEntity) => Promise<ExistingLegalEntity>, entityId?: string) => Promise<ExistingLegalEntity>;
|
|
45
44
|
export declare const getCompanySchemaKeys: (country: CountryCode, currentData: Partial<BusinessFinancingCompanySchema>, schemaKeys: (keyof BusinessFinancingCompanySchema)[]) => Array<keyof BusinessFinancingCompanySchema>;
|
|
46
45
|
export declare const getSoleProprietorSchemaKeys: (currentData: Partial<BusinessFinancingSoleProprietorSchema>, schemaKeys: (keyof BusinessFinancingSoleProprietorSchema)[]) => Array<keyof BusinessFinancingSoleProprietorSchema>;
|
|
47
|
-
export declare const getParentCompanySchemaKeys: (currentData: Partial<BusinessFinancingParentSchemasCombined>, schemaKeys: (keyof BusinessFinancingParentSchemasCombined)[], rootEntityAddress?:
|
|
48
|
-
export declare const getBusinessFinancingFields: (country: CountryCode, data?: BusinessFinancingSchema, rootEntityAddress?:
|
|
49
|
-
export declare const getAddressCountryForParentCompany: (parentCompany?: BusinessFinancingParentCompanySchema, leAddress?:
|
|
46
|
+
export declare const getParentCompanySchemaKeys: (currentData: Partial<BusinessFinancingParentSchemasCombined>, schemaKeys: (keyof BusinessFinancingParentSchemasCombined)[], rootEntityAddress?: AddressDto) => Array<keyof BusinessFinancingParentSchemasCombined>;
|
|
47
|
+
export declare const getBusinessFinancingFields: (country: CountryCode, data?: BusinessFinancingSchema, rootEntityAddress?: AddressDto) => [MultiFormOptions<BusinessFinancingSchema>["requiredFields"], MultiFormOptions<BusinessFinancingSchema>["optionalFields"]];
|
|
48
|
+
export declare const getAddressCountryForParentCompany: (parentCompany?: BusinessFinancingParentCompanySchema, leAddress?: AddressDto) => CountryCode | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import type { OrganizationDto } from '../../../../api/legalEntity/legalEntity.types';
|
|
1
2
|
import type { CapabilityName } from '../../../../core/models/api/capability';
|
|
2
3
|
import type { DataSet } from '../../../../core/models/api/data-set';
|
|
3
4
|
import type { Individual } from '../../../../core/models/api/individual';
|
|
4
5
|
import type { LegalEntityType } from '../../../../core/models/api/legal-entity-type';
|
|
5
|
-
import type { Organization } from '../../../../core/models/api/organization';
|
|
6
6
|
import type { BusinessLinesType, SourceOfFundsAmount, SourceOfFundsCategoryType, SourceOfFundsFinancierType } from '../../../../core/models/api/source-of-funds';
|
|
7
7
|
import type { ExistingLegalEntity } from '../../../../core/models/api/legal-entity';
|
|
8
8
|
import type { CountryCode } from '../../../../types/datasets/country-code';
|
|
@@ -89,5 +89,5 @@ export interface SOFOriginatorPayload {
|
|
|
89
89
|
id?: string;
|
|
90
90
|
type?: LegalEntityType;
|
|
91
91
|
individual?: Individual;
|
|
92
|
-
organization?:
|
|
92
|
+
organization?: OrganizationDto;
|
|
93
93
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import type { AddressDto } from '../../../api/legalEntity/legalEntity.types';
|
|
1
2
|
import type { TFunction } from '../../../../types';
|
|
2
|
-
import type { Address } from '../../../core/models/api/address';
|
|
3
3
|
import type { DatasetUtil } from '../../../utils/datasetUtil';
|
|
4
4
|
import type { BusinessFinancingSchema, BusinessFinancingSummaryType } from '../../EFP/tasks/BusinessFinancingDropin/types';
|
|
5
5
|
export declare const getTranslatedGender: (t: TFunction<"businessFinancing">, gender?: string) => string | undefined;
|
|
6
6
|
export declare const getTranslatedLegalInsolvency: (t: TFunction<"businessFinancing">, insolvencyData?: string) => string | undefined;
|
|
7
7
|
export declare const getValidUserLocale: (locale: string) => string;
|
|
8
8
|
export declare const getFormattedAmount: (value?: string, currency?: string) => string | undefined;
|
|
9
|
-
export declare const formatDataForSummary: (language: string, commonT: TFunction<"common">, t: TFunction<"businessFinancing">, datasetUtils: DatasetUtil, data?: BusinessFinancingSchema, rootLeAddress?:
|
|
9
|
+
export declare const formatDataForSummary: (language: string, commonT: TFunction<"common">, t: TFunction<"businessFinancing">, datasetUtils: DatasetUtil, data?: BusinessFinancingSchema, rootLeAddress?: AddressDto) => BusinessFinancingSummaryType;
|
|
10
10
|
export declare const canSubmit: (data: BusinessFinancingSchema) => boolean;
|
package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/PaperworkQuestionnaire.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import { type PaperworkQuestionnaireFieldProps, type PaperworkQuestionnaireFieldSchema } from './types';
|
|
2
2
|
export declare const PAPERWORK_QUESTIONNAIRE_FIELD: Array<keyof PaperworkQuestionnaireFieldSchema>;
|
|
3
|
+
/**
|
|
4
|
+
* The paperwork answer dictates whether the entity is:
|
|
5
|
+
* A) a pure individual or a sole prop, or
|
|
6
|
+
* B) a registered business or an unincorporated partnership.
|
|
7
|
+
*/
|
|
3
8
|
export declare function PaperworkQuestionnaire({ data, valid, handleChangeFor, errors, label, }: PaperworkQuestionnaireFieldProps): import("preact/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseFormFieldProps } from '../../../../hooks/useForm/types';
|
|
2
2
|
export interface PaperworkQuestionnaireFieldSchema {
|
|
3
|
-
filedPaperwork?: 'yes' | 'no'
|
|
3
|
+
filedPaperwork?: 'yes' | 'no';
|
|
4
4
|
}
|
|
5
5
|
export type PaperworkQuestionnaireFieldProps = Pick<BaseFormFieldProps<PaperworkQuestionnaireFieldSchema>, 'data' | 'valid' | 'errors' | 'handleChangeFor' | 'label'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseFormFieldProps } from '../../../../hooks/useForm/types';
|
|
2
2
|
export interface PrimaryPartnerTypeFieldSchema {
|
|
3
|
-
primaryPartnerType?: 'individual' | 'organization'
|
|
3
|
+
primaryPartnerType?: 'individual' | 'organization';
|
|
4
4
|
}
|
|
5
5
|
export type PrimaryPartnerTypeFieldProps = Pick<BaseFormFieldProps<PrimaryPartnerTypeFieldSchema>, 'data' | 'valid' | 'errors' | 'handleChangeFor'>;
|
package/dist/types/components/GlobalEntry/fields/UnincorporatedOrganizationTypeField/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseFormFieldProps } from '../../../../hooks/useForm/types';
|
|
2
2
|
export interface UnincorporatedOrganizationTypeFieldSchema {
|
|
3
|
-
unincorporatedOrganizationType?: 'unincorporatedAssociation' | 'unincorporatedPartnership'
|
|
3
|
+
unincorporatedOrganizationType?: 'unincorporatedAssociation' | 'unincorporatedPartnership';
|
|
4
4
|
}
|
|
5
5
|
export type UnincorporatedOrganizationTypeFieldProps = Pick<BaseFormFieldProps<UnincorporatedOrganizationTypeFieldSchema>, 'data' | 'valid' | 'errors' | 'handleChangeFor'>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { LegalEntity } from '../../core/models/api/legal-entity';
|
|
2
|
+
import type { MappingRecord } from '../../utils/mapping/mappingRecord';
|
|
3
|
+
import type { GlobalEntrySchema } from './tasks/types';
|
|
4
|
+
/**
|
|
5
|
+
* Schema-keyed mapping, for reading a legal entity into the form schema.
|
|
6
|
+
*/
|
|
7
|
+
export declare const globalEntryKeyMappingForOrgs: MappingRecord<GlobalEntrySchema, Pick<LegalEntity, 'organization'>>;
|
|
8
|
+
export declare const globalEntryKeyMappingForIndividuals: MappingRecord<GlobalEntrySchema, Pick<LegalEntity, 'individual'>>;
|
|
9
|
+
export declare const globalEntryKeyMappingForSoleProps: MappingRecord<GlobalEntrySchema, Pick<LegalEntity, 'soleProprietorship'>>;
|
|
10
|
+
/** Api-keyed mapping, for building the legal entity request from the form schema */
|
|
11
|
+
export declare const globalEntryApiKeyMappingForOrgs: MappingRecord<Pick<LegalEntity, 'organization'>, GlobalEntrySchema>;
|
|
12
|
+
/** Api-keyed mapping, for building the sole proprietorship request from the form schema */
|
|
13
|
+
export declare const globalEntryApiKeyMappingForSoleProps: MappingRecord<Pick<LegalEntity, 'soleProprietorship'>, GlobalEntrySchema>;
|
|
14
|
+
/** Api-keyed mapping, for building the legal entity request from the form schema */
|
|
15
|
+
export declare const globalEntryApiKeyMappingForIndividuals: MappingRecord<Pick<LegalEntity, 'individual'>, GlobalEntrySchema>;
|
|
@@ -13,7 +13,7 @@ export declare const globalEntryCustomRules: ({ accountHolder, data, isFeatureEn
|
|
|
13
13
|
countryRequired: () => "REQUIRED";
|
|
14
14
|
requireStateOrProvinceForCompanySearch: () => "REQUIRED" | undefined;
|
|
15
15
|
countryOfGoverningLawRequired: () => "REQUIRED" | undefined;
|
|
16
|
-
filedPaperworkRequired: () => "REQUIRED";
|
|
16
|
+
filedPaperworkRequired: () => "REQUIRED" | undefined;
|
|
17
17
|
unincorporatedOrganizationTypeRequired: () => "REQUIRED" | undefined;
|
|
18
18
|
legalCompanyNameRequired: () => "REQUIRED" | undefined;
|
|
19
19
|
jaHaniLegalCompanyName: () => "REQUIRED" | undefined;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity';
|
|
2
|
-
|
|
2
|
+
import type { AccountHolderOption } from '../../../types/accountHolder';
|
|
3
|
+
interface GlobalEntryModalProps {
|
|
3
4
|
rootLegalEntity: ExistingLegalEntity;
|
|
4
|
-
|
|
5
|
+
onComplete: (accountHolder: AccountHolderOption) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const GlobalEntryModal: ({ rootLegalEntity, onComplete }: GlobalEntryModalProps) => import("preact/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import type { AccountHolderOption } from '../../../types/accountHolder';
|
|
2
|
+
export interface GlobalEntryPageProps {
|
|
3
|
+
onComplete: (accountHolder: AccountHolderOption) => void;
|
|
4
|
+
}
|
|
5
|
+
export declare const GlobalEntryPage: ({ onComplete }: GlobalEntryPageProps) => import("preact/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,30 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CreateLegalEntity } from '../../api/createLegalEntity/useCreateLegalEntity';
|
|
2
|
+
import type { CompanyType } from '../../api/legalEntity/legalEntity.types';
|
|
3
|
+
import type { UpdateLegalEntity } from '../../api/legalEntity/useUpdateLegalEntity';
|
|
2
4
|
import type { ExistingLegalEntity } from '../../core/models/api/legal-entity';
|
|
3
5
|
import { LegalEntityTypes } from '../../core/models/api/legal-entity-type';
|
|
6
|
+
import type { AccountHolderOption } from '../../types/accountHolder';
|
|
4
7
|
import type { GlobalEntrySchema } from './tasks/types';
|
|
5
|
-
export
|
|
6
|
-
export declare const
|
|
8
|
+
export type GlobalEntryOrganizationTypeAndEntityTypes = CompanyType | typeof LegalEntityTypes.UNINCORPORATED_PARTNERSHIP | typeof LegalEntityTypes.TRUST | typeof LegalEntityTypes.INDIVIDUAL;
|
|
9
|
+
export declare const getGlobalEntryCompanyType: (legalEntity: ExistingLegalEntity | undefined, data: GlobalEntrySchema) => GlobalEntryOrganizationTypeAndEntityTypes | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* @param legalEntity the root entity
|
|
12
|
+
* @param associatedSoleProp the proprietorship associated to the root, when there is one. It holds
|
|
13
|
+
* the registration details the root does not, so editing an existing proprietorship prefills.
|
|
14
|
+
*/
|
|
15
|
+
export declare const mapLegalEntityToGlobalEntrySchema: (legalEntity: ExistingLegalEntity, associatedSoleProp?: ExistingLegalEntity) => GlobalEntrySchema;
|
|
16
|
+
export declare const isPaperworkQuestionAsked: (data: GlobalEntrySchema) => boolean;
|
|
17
|
+
export declare const getFiledPaperwork: (data: GlobalEntrySchema) => "yes" | "no" | null;
|
|
18
|
+
export declare const isSoleProprietorship: (data: GlobalEntrySchema) => boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Updates the legal entity and returns the account holder the answers imply.
|
|
21
|
+
*/
|
|
22
|
+
interface SubmitGlobalEntryProps {
|
|
23
|
+
legalEntity: ExistingLegalEntity;
|
|
24
|
+
associatedSoleProp?: ExistingLegalEntity;
|
|
25
|
+
data: GlobalEntrySchema;
|
|
26
|
+
createLegalEntity: CreateLegalEntity;
|
|
27
|
+
updateLegalEntity: UpdateLegalEntity;
|
|
28
|
+
}
|
|
29
|
+
export declare const submitGlobalEntry: ({ legalEntity, associatedSoleProp, data, updateLegalEntity, createLegalEntity, }: SubmitGlobalEntryProps) => Promise<AccountHolderOption | undefined>;
|
|
30
|
+
export {};
|
|
@@ -3,7 +3,7 @@ export declare const idNowModalChildEntityId: import("@preact/signals").Signal<{
|
|
|
3
3
|
documentDetails?: import("../../../../core/models/api/document").DocumentDetail[] | undefined;
|
|
4
4
|
entityAssociations?: import("../../../../core/models/api/legal-entity-association").LegalEntityAssociation[] | undefined;
|
|
5
5
|
individual?: import("../../../../core/models/api/individual").Individual | undefined;
|
|
6
|
-
organization?: import("../../../../
|
|
6
|
+
organization?: import("../../../../api/legalEntity/legalEntity.types").OrganizationDto | undefined;
|
|
7
7
|
soleProprietorship?: import("../../../../core/models/api/sole-proprietor").SoleProprietor | undefined;
|
|
8
8
|
trust?: import("../../../../core/models/api/trust").Trust | undefined;
|
|
9
9
|
unincorporatedPartnership?: import("../../../../core/models/api/unincorporated-partnership").UnincorporatedPartnership | undefined;
|
|
@@ -3,7 +3,6 @@ import type { CountryCode } from '../../../types/datasets/country-code';
|
|
|
3
3
|
import type { FormRulesParams } from '../../../types/form-rules';
|
|
4
4
|
import type { IndividualSchema } from './Individual.types';
|
|
5
5
|
export declare const COUNTRIES_WHICH_USE_MULTIPLE_IDENTITY_TYPES: CountryCode[];
|
|
6
|
-
export declare const SOLE_PROP_COUNTRIES: CountryCode[];
|
|
7
6
|
export declare const DECISION_MAKER_TYPES_WITH_JOBTITLE: DecisionMakerType[];
|
|
8
7
|
export declare const individualRules: ({ matchingScenario, data, country, taskType, isFeatureEnabled, rootLegalEntity, problems, }: FormRulesParams<IndividualSchema>) => {
|
|
9
8
|
countryUsesTaxId: () => "REQUIRED" | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { FormFlowProps } from './FormFlow.types';
|
|
2
|
-
declare const FormFlow: ({ asModal, children, currentStep, disableBackButton, disableNextButton, nextButtonLoading, forms, activeForm, gotoFormByFormIndex, gotoFormByFormId, handleBackClick, handleCancelClick, handleNextClick, loadingStatus, summary, summaryComponent, totalSteps, }: FormFlowProps) => import("preact/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const FormFlow: ({ asModal, children, currentStep, disableBackButton, disableNextButton, nextButtonLoading, forms, activeForm, gotoFormByFormIndex, gotoFormByFormId, handleBackClick, handleCancelClick, handleNextClick, loadingStatus, summary, summaryComponent, totalSteps, isGlobalEntry, }: FormFlowProps) => import("preact/jsx-runtime").JSX.Element;
|
|
3
3
|
export { FormFlow };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CompanyType } from '../../../../../api/legalEntity/legalEntity.types';
|
|
2
2
|
import type { CountryCode } from '../../../../../types/datasets/country-code';
|
|
3
3
|
import type { CompanyRegistrationNumberType } from '../types';
|
|
4
4
|
type CompanyRegistrationNumberTypeSelectorProps = {
|
|
5
5
|
country: CountryCode;
|
|
6
|
-
companyType?:
|
|
6
|
+
companyType?: CompanyType | 'trust' | 'unincorporatedPartnership';
|
|
7
7
|
selected: CompanyRegistrationNumberType | 'exempted' | undefined;
|
|
8
8
|
setSelected: (type: CompanyRegistrationNumberType | 'exempted') => void;
|
|
9
9
|
exemptedOptionLabel?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CompanyType } from '../../../../../api/legalEntity/legalEntity.types';
|
|
2
2
|
import type { LegalEntityTypes } from '../../../../../core/models/api/legal-entity-type';
|
|
3
3
|
import type { CountryCode } from '../../../../../types/datasets/country-code';
|
|
4
4
|
import type { CompanyRegistrationNumberType } from '../types';
|
|
@@ -13,4 +13,4 @@ import type { CompanyRegistrationNumberType } from '../types';
|
|
|
13
13
|
* @param companyType - The company type or entity type (i.e. Trust) of the business
|
|
14
14
|
* @returns The determined business registration number type or undefined if none can be determined
|
|
15
15
|
*/
|
|
16
|
-
export declare function getDefaultRegistrationNumberType(registrationNumber: string | undefined, country: CountryCode, companyType:
|
|
16
|
+
export declare function getDefaultRegistrationNumberType(registrationNumber: string | undefined, country: CountryCode, companyType: CompanyType | typeof LegalEntityTypes.TRUST | typeof LegalEntityTypes.UNINCORPORATED_PARTNERSHIP | undefined): CompanyRegistrationNumberType | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CompanyType } from '../../../../../api/legalEntity/legalEntity.types';
|
|
2
2
|
import type { CountryCode } from '../../../../../types/datasets/country-code';
|
|
3
3
|
import type { CompanyRegistrationNumberType } from '../types';
|
|
4
4
|
/**
|
|
@@ -9,4 +9,4 @@ import type { CompanyRegistrationNumberType } from '../types';
|
|
|
9
9
|
* @param country the country of the LE
|
|
10
10
|
* @param companyType the company type, e.g. `nonProfit`
|
|
11
11
|
*/
|
|
12
|
-
export declare const inferCompanyRegistrationNumberType: (registrationNumber: string, country: CountryCode, companyType:
|
|
12
|
+
export declare const inferCompanyRegistrationNumberType: (registrationNumber: string, country: CountryCode, companyType: CompanyType | "trust" | "unincorporatedPartnership" | undefined) => CompanyRegistrationNumberType | undefined;
|
package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CompanyType } from '../../../../api/legalEntity/legalEntity.types';
|
|
2
2
|
import type { TFunction } from '../../../../../types';
|
|
3
3
|
import type { CountryCode } from '../../../../types/datasets/country-code';
|
|
4
4
|
import type { StateCodeUS } from '../../../../types/datasets/state-code';
|
|
@@ -14,7 +14,7 @@ export declare const exemptFromRegistrationNumberDefaultFieldMetadata: FieldMeta
|
|
|
14
14
|
export declare const exemptFromRegistrationNumberDefaultFieldConfig: PerCountryFieldConfig<BusinessRegistrationNumberFieldSchema, 'exemptedFromRegistrationNumber', NoParams>;
|
|
15
15
|
interface GetHelperTextParams {
|
|
16
16
|
country: CountryCode;
|
|
17
|
-
companyType?:
|
|
17
|
+
companyType?: CompanyType | 'trust' | 'unincorporatedPartnership';
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* Returns the helper text for the business registration number field.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { BusinessEntityType } from '../../../../types/businessEntityType';
|
|
2
2
|
import type { CountryCode } from '../../../../types/datasets/country-code';
|
|
3
3
|
import type { CompanyRegistrationNumberOption, CompanyRegistrationNumberType } from './types';
|
|
4
4
|
export declare const companyRegistrationNumberOptions: {
|
|
@@ -99,11 +99,11 @@ export declare const companyRegistrationNumberOptions: {
|
|
|
99
99
|
* If ignoreApplicableOnlyFor is true, options specific to legal arrangements are excluded
|
|
100
100
|
* for non-legal-arrangement entities.
|
|
101
101
|
*/
|
|
102
|
-
export declare const getCompanyRegistrationNumberOptions: (country: CountryCode, companyType:
|
|
102
|
+
export declare const getCompanyRegistrationNumberOptions: (country: CountryCode, companyType: BusinessEntityType | undefined) => readonly CompanyRegistrationNumberOption[] | undefined;
|
|
103
103
|
/**
|
|
104
104
|
* Returns the valid company types for a given registration number type and country.
|
|
105
105
|
* @param country The country code
|
|
106
106
|
* @param registrationNumberType The registration number type
|
|
107
107
|
* @returns The valid company types for the given registration number type and country
|
|
108
108
|
*/
|
|
109
|
-
export declare function getValidCompanyTypesForRegistrationNumberType(country: CountryCode, registrationNumberType: CompanyRegistrationNumberType | undefined):
|
|
109
|
+
export declare function getValidCompanyTypesForRegistrationNumberType(country: CountryCode, registrationNumberType: CompanyRegistrationNumberType | undefined): Array<BusinessEntityType> | undefined;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import type { CompanyTypesValue } from '../../../../core/models/api/company-types-value';
|
|
2
|
-
import type { LegalEntityTypes } from '../../../../core/models/api/legal-entity-type';
|
|
3
1
|
import type { BaseFormFieldProps } from '../../../../hooks/useForm/types';
|
|
4
2
|
import type { NsTranslationKey } from '../../../../../types';
|
|
3
|
+
import type { BusinessEntityType } from '../../../../types/businessEntityType';
|
|
5
4
|
import type { CountryCode } from '../../../../types/datasets/country-code';
|
|
6
5
|
import type { StateCodeUS } from '../../../../types/datasets/state-code';
|
|
7
6
|
import type { companyRegistrationNumberOptions } from './registrationNumberTypes';
|
|
8
7
|
export interface CompanyRegistrationNumberOption {
|
|
9
8
|
id: string;
|
|
10
9
|
name: NsTranslationKey<'common'>;
|
|
11
|
-
applicableOnlyFor?: ReadonlyArray<
|
|
10
|
+
applicableOnlyFor?: ReadonlyArray<BusinessEntityType>;
|
|
12
11
|
}
|
|
13
12
|
export type CompanyRegistrationNumberType = (typeof companyRegistrationNumberOptions)[keyof typeof companyRegistrationNumberOptions][number]['id'];
|
|
14
13
|
export interface BusinessRegistrationNumberFieldSchema {
|
|
@@ -20,5 +19,5 @@ export interface BusinessRegistrationNumberFieldProps extends Pick<BaseFormField
|
|
|
20
19
|
country: CountryCode;
|
|
21
20
|
state?: StateCodeUS;
|
|
22
21
|
canExempt: boolean;
|
|
23
|
-
companyType?:
|
|
22
|
+
companyType?: BusinessEntityType;
|
|
24
23
|
}
|
package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RegistrationAndOperationalAddressFieldsSchema } from '../../fields/RegistrationAndOperationalAddressFields/types';
|
|
2
2
|
import type { JpAddressSchema } from '../../forms/Address/localized/jp/jpAddressSchema';
|
|
3
3
|
import type { AddressSchema } from '../../forms/Address/types';
|
|
4
|
-
export declare const ALL_ADDRESS_FIELDS: (
|
|
4
|
+
export declare const ALL_ADDRESS_FIELDS: ("city" | "country" | "postalCode" | "searchAddress" | "stateOrProvince" | "street" | "street2" | "jaHaniCity" | "jaHaniStateOrProvince" | "jaHaniStreet" | "jaKanaCity" | "jaKanaStateOrProvince" | "street2FullWidth")[];
|
|
5
5
|
/**
|
|
6
6
|
* Parses the nested trusted fields on a legal entity e.g. ['registrationAddress.address', 'registrationAddress.postalCode'],
|
|
7
7
|
* rebuilding them into the flattened, prefixed fields for the addresses, e.g., `registrationAddress.address` -> `registrationAddressAddress`
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import type { CompanyType } from '../../../../../api/legalEntity/legalEntity.types';
|
|
1
2
|
import type { FieldErrorMessage } from '../../../../ui/atoms/Field/Field.types';
|
|
2
|
-
import type { CompanyTypesValue } from '../../../../../core/models/api/company-types-value';
|
|
3
3
|
import type { LegalEntityTypes } from '../../../../../core/models/api/legal-entity-type';
|
|
4
4
|
import type { CountryCode } from '../../../../../types/datasets/country-code';
|
|
5
5
|
import type { TaxIdNumberType } from '../types';
|
|
6
6
|
interface TaxIdNumberTypeSelectorProps {
|
|
7
7
|
country: CountryCode;
|
|
8
|
-
companyType?:
|
|
8
|
+
companyType?: CompanyType | typeof LegalEntityTypes.UNINCORPORATED_PARTNERSHIP | typeof LegalEntityTypes.TRUST | typeof LegalEntityTypes.INDIVIDUAL;
|
|
9
9
|
isUsSoleProp?: boolean;
|
|
10
10
|
errorMessage?: FieldErrorMessage;
|
|
11
11
|
/** Label for the "exempted from tax" radio option. When provided, an exemption option is appended to the radio group. */
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
* It provides functionality to find existing tax information and determine default tax ID number types
|
|
4
4
|
* based on country and entity type.
|
|
5
5
|
*/
|
|
6
|
-
import type {
|
|
6
|
+
import type { CompanyType } from '../../../../../api/legalEntity/legalEntity.types';
|
|
7
7
|
import type { LegalEntityTypes } from '../../../../../core/models/api/legal-entity-type';
|
|
8
|
-
import type { TaxInformation } from '
|
|
8
|
+
import type { TaxIdNumberType, TaxInformation } from '../../../fields/TaxInformationField/types';
|
|
9
9
|
import type { CountryCode } from '../../../../../types/datasets/country-code';
|
|
10
|
-
import type { TaxIdNumberType } from '../types';
|
|
11
10
|
/**
|
|
12
11
|
* Finds tax information for a specific country from an array of tax information objects.
|
|
13
12
|
*
|
|
@@ -28,4 +27,4 @@ export declare function findExistingTaxInformation(taxInformation: TaxInformatio
|
|
|
28
27
|
* @param entityType - Type of entity (company type or individual)
|
|
29
28
|
* @returns The determined tax ID number type or undefined if none can be determined
|
|
30
29
|
*/
|
|
31
|
-
export declare function getDefaultTaxIdNumberType(taxInformation: TaxInformation[] | undefined, country: CountryCode, entityType:
|
|
30
|
+
export declare function getDefaultTaxIdNumberType(taxInformation: TaxInformation[] | undefined, country: CountryCode, entityType: CompanyType | typeof LegalEntityTypes.UNINCORPORATED_PARTNERSHIP | typeof LegalEntityTypes.TRUST | typeof LegalEntityTypes.INDIVIDUAL | undefined): TaxIdNumberType | undefined;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CompanyType } from '../../../../../api/legalEntity/legalEntity.types';
|
|
2
2
|
import type { LegalEntityTypes } from '../../../../../core/models/api/legal-entity-type';
|
|
3
|
-
import type { TaxInformation } from '../../../../../core/models/api/organization';
|
|
4
3
|
import type { CountryCode } from '../../../../../types/datasets/country-code';
|
|
5
|
-
import type { TaxIdNumberType } from '../types';
|
|
4
|
+
import type { TaxIdNumberType, TaxInformation } from '../types';
|
|
6
5
|
/**
|
|
7
6
|
* For existing data, we need to infer the tax ID number type from the existing data.
|
|
8
7
|
* Otherwise, the incorrect mask will be applied.
|
|
@@ -11,4 +10,4 @@ import type { TaxIdNumberType } from '../types';
|
|
|
11
10
|
* @param country the country of the LE
|
|
12
11
|
* @param companyType the company type, e.g. `nonProfit`
|
|
13
12
|
*/
|
|
14
|
-
export declare const inferTaxIdNumberType: (taxInformation: TaxInformation[] | undefined, country: CountryCode, companyType?:
|
|
13
|
+
export declare const inferTaxIdNumberType: (taxInformation: TaxInformation[] | undefined, country: CountryCode, companyType?: CompanyType | typeof LegalEntityTypes.UNINCORPORATED_PARTNERSHIP | typeof LegalEntityTypes.TRUST | typeof LegalEntityTypes.INDIVIDUAL) => TaxIdNumberType | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CompanyType } from '../../../../api/legalEntity/legalEntity.types';
|
|
2
2
|
import { LegalEntityTypes } from '../../../../core/models/api/legal-entity-type';
|
|
3
|
+
import type { TaxIdNumberType, TaxInformationFieldSchema } from '../../fields/TaxInformationField/types';
|
|
3
4
|
import type { CountryCode } from '../../../../types/datasets/country-code';
|
|
4
5
|
import type { FieldMetadata, NoParams, PerCountryFieldConfig } from '../../../../utils/fieldConfigurations';
|
|
5
|
-
import type { TaxIdNumberType, TaxInformationFieldSchema } from './types';
|
|
6
6
|
export interface FieldConfigParams {
|
|
7
|
-
companyType?:
|
|
7
|
+
companyType?: CompanyType | typeof LegalEntityTypes.UNINCORPORATED_PARTNERSHIP | typeof LegalEntityTypes.TRUST | typeof LegalEntityTypes.INDIVIDUAL;
|
|
8
8
|
taxIdNumberType?: TaxIdNumberType;
|
|
9
9
|
}
|
|
10
10
|
export declare const taxInformationDefaultFieldMetadata: FieldMetadata<TaxInformationFieldSchema, 'taxInformation'>;
|
|
@@ -13,6 +13,6 @@ export declare const taxInformationDefaultFieldConfig: PerCountryFieldConfig<Tax
|
|
|
13
13
|
export declare const exemptedFromTaxDefaultFieldConfig: PerCountryFieldConfig<TaxInformationFieldSchema, 'exemptedFromTax', NoParams>;
|
|
14
14
|
export declare const getTaxInformationPlaceholderText: ({ country, companyType, taxIdNumberType, }: {
|
|
15
15
|
country: CountryCode;
|
|
16
|
-
companyType?:
|
|
16
|
+
companyType?: CompanyType | typeof LegalEntityTypes.UNINCORPORATED_PARTNERSHIP | typeof LegalEntityTypes.TRUST | typeof LegalEntityTypes.INDIVIDUAL;
|
|
17
17
|
taxIdNumberType?: TaxIdNumberType;
|
|
18
18
|
}) => "94577403194" | "931736581" | "99999999999" | "0123321123" | "00123123T" | "32708101201" | "131052-308T" | "30 23 217 600 053" | "26954371827" | "14310260208" | "123456" | "244709851" | "1234567T" | "1497955KA" | "12345678901" | "C155673-79" | "32532963606" | "33309240064" | "1893120105732" | "19991201001" | "1234567A" | "999999999" | "811786523" | "12345678" | "299999998" | "7711167420" | "2020123456" | "15012557" | "7172510005" | "ABC123456AB9" | "99999999L" | "11-0000000" | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CompanyType } from '../../../../api/legalEntity/legalEntity.types';
|
|
2
2
|
import { LegalEntityTypes } from '../../../../core/models/api/legal-entity-type';
|
|
3
|
+
import type { BusinessEntityType } from '../../../../types/businessEntityType';
|
|
3
4
|
import type { CountryCode } from '../../../../types/datasets/country-code';
|
|
4
5
|
import type { TaxIdNumberOption, TaxIdNumberType } from './types';
|
|
5
6
|
export declare const taxIdNumberOptions: {
|
|
@@ -234,9 +235,9 @@ export declare const taxIdNumberOptions: {
|
|
|
234
235
|
readonly name: "ein";
|
|
235
236
|
}];
|
|
236
237
|
};
|
|
237
|
-
export declare const getTaxIdNumberOptions: (country: CountryCode, companyType:
|
|
238
|
-
export declare const getTaxIdNumberSelectorOptions: (country: CountryCode, companyType:
|
|
238
|
+
export declare const getTaxIdNumberOptions: (country: CountryCode, companyType: BusinessEntityType | typeof LegalEntityTypes.INDIVIDUAL | undefined) => readonly TaxIdNumberOption[] | undefined;
|
|
239
|
+
export declare const getTaxIdNumberSelectorOptions: (country: CountryCode, companyType: BusinessEntityType | typeof LegalEntityTypes.INDIVIDUAL | undefined, exemptedOptionLabel?: string) => readonly TaxIdNumberOption[] | (TaxIdNumberOption | {
|
|
239
240
|
id: string;
|
|
240
241
|
name: string;
|
|
241
242
|
})[];
|
|
242
|
-
export declare function getValidCompanyTypesForTaxIdNumberType(country: CountryCode, taxIdNumberType: TaxIdNumberType | undefined):
|
|
243
|
+
export declare function getValidCompanyTypesForTaxIdNumberType(country: CountryCode, taxIdNumberType: TaxIdNumberType | undefined): Array<CompanyType> | undefined;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import type { CompanyTypesValue } from '../../../../core/models/api/company-types-value';
|
|
2
1
|
import type { LegalEntityTypes } from '../../../../core/models/api/legal-entity-type';
|
|
3
|
-
import type { TaxInformation } from '../../../../core/models/api/organization';
|
|
4
2
|
import type { BaseFormFieldProps } from '../../../../hooks/useForm/types';
|
|
5
3
|
import type { NsTranslationKey } from '../../../../../types';
|
|
4
|
+
import type { BusinessEntityType } from '../../../../types/businessEntityType';
|
|
6
5
|
import type { CountryCode } from '../../../../types/datasets/country-code';
|
|
7
6
|
import type { taxIdNumberOptions } from './taxIdNumberTypes';
|
|
7
|
+
export type TaxInformation = {
|
|
8
|
+
country: CountryCode;
|
|
9
|
+
number?: string;
|
|
10
|
+
type?: TaxIdNumberType;
|
|
11
|
+
numberAbsent?: boolean;
|
|
12
|
+
};
|
|
8
13
|
export interface TaxInformationFieldSchema {
|
|
9
14
|
taxInformation?: TaxInformation[];
|
|
10
15
|
exemptedFromTax?: boolean;
|
|
@@ -15,12 +20,12 @@ export interface TaxInformationFieldProps extends Pick<BaseFormFieldProps<TaxInf
|
|
|
15
20
|
country: CountryCode;
|
|
16
21
|
canExempt: boolean;
|
|
17
22
|
placeholder?: string;
|
|
18
|
-
entityType?:
|
|
23
|
+
entityType?: BusinessEntityType | typeof LegalEntityTypes.INDIVIDUAL;
|
|
19
24
|
registrationNumber?: string;
|
|
20
25
|
}
|
|
21
26
|
export interface TaxIdNumberOption {
|
|
22
27
|
id: string;
|
|
23
28
|
name: NsTranslationKey<'common'>;
|
|
24
|
-
applicableOnlyFor?: ReadonlyArray<
|
|
29
|
+
applicableOnlyFor?: ReadonlyArray<BusinessEntityType | typeof LegalEntityTypes.INDIVIDUAL>;
|
|
25
30
|
}
|
|
26
31
|
export type TaxIdNumberType = (typeof taxIdNumberOptions)[keyof typeof taxIdNumberOptions][number]['id'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TaxInformation } from '
|
|
1
|
+
import type { TaxInformation } from '../../fields/TaxInformationField/types';
|
|
2
2
|
import type { CountryCode } from '../../../../types/datasets/country-code';
|
|
3
3
|
/**
|
|
4
4
|
* Immutably upserts a TaxInformation entry for a given country within the tax information array.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CompanyType } from '../../../../../api/legalEntity/legalEntity.types';
|
|
2
2
|
import type { LegalEntityTypes } from '../../../../../core/models/api/legal-entity-type';
|
|
3
3
|
import type { CountryCode } from '../../../../../types/datasets/country-code';
|
|
4
4
|
import type { VatNumberType } from '../types';
|
|
5
5
|
interface VatNumberTypeSelectorProps {
|
|
6
6
|
country: CountryCode;
|
|
7
|
-
companyType?:
|
|
7
|
+
companyType?: CompanyType | typeof LegalEntityTypes.UNINCORPORATED_PARTNERSHIP | typeof LegalEntityTypes.TRUST;
|
|
8
8
|
/** Label for the "exempted from tax" radio option. When provided, an exemption option is appended to the radio group. */
|
|
9
9
|
exemptedOptionLabel?: string;
|
|
10
10
|
selected: VatNumberType | 'exempted' | undefined;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type { CompanyTypesValue } from '../../../../core/models/api/company-types-value';
|
|
2
|
-
import type { LegalEntityTypes } from '../../../../core/models/api/legal-entity-type';
|
|
3
|
-
import type { VatAbsenceReason } from '../../../../core/models/api/organization';
|
|
4
1
|
import type { BaseFormFieldProps } from '../../../../hooks/useForm/types';
|
|
5
2
|
import type { NsTranslationKey } from '../../../../../types';
|
|
3
|
+
import type { BusinessEntityType } from '../../../../types/businessEntityType';
|
|
6
4
|
import type { CountryCode } from '../../../../types/datasets/country-code';
|
|
7
5
|
import type { vatNumberOptions } from './vatNumberTypes';
|
|
6
|
+
export type VatAbsenceReason = // TODO: align with API
|
|
7
|
+
'industryExemption' | 'belowTaxThreshold' | 'countryWithoutVatOrGstSystem' | '';
|
|
8
8
|
export interface VatNumberOption {
|
|
9
9
|
id: string;
|
|
10
10
|
name: NsTranslationKey<'common'>;
|
|
11
|
-
applicableOnlyFor?: ReadonlyArray<
|
|
11
|
+
applicableOnlyFor?: ReadonlyArray<BusinessEntityType>;
|
|
12
12
|
}
|
|
13
13
|
export type VatNumberType = (typeof vatNumberOptions)[keyof typeof vatNumberOptions][number]['id'];
|
|
14
14
|
export interface VatNumberFieldSchema {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { LegalEntityTypes } from '../../../../core/models/api/legal-entity-type';
|
|
1
|
+
import type { BusinessEntityType } from '../../../../types/businessEntityType';
|
|
3
2
|
import type { CountryCode } from '../../../../types/datasets/country-code';
|
|
4
3
|
import type { VatNumberOption } from './types';
|
|
5
4
|
export declare const vatNumberOptions: {
|
|
@@ -146,4 +145,4 @@ export declare const vatNumberOptions: {
|
|
|
146
145
|
readonly name: "vatRegistrationNumber";
|
|
147
146
|
}];
|
|
148
147
|
};
|
|
149
|
-
export declare const getVatNumberOptions: (country: CountryCode, companyType:
|
|
148
|
+
export declare const getVatNumberOptions: (country: CountryCode, companyType: BusinessEntityType | undefined) => readonly VatNumberOption[] | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AddressDto } from '../../../../../../api/legalEntity/legalEntity.types';
|
|
2
2
|
import type { JpAddressSchema } from '../../../../forms/Address/localized/jp/jpAddressSchema';
|
|
3
|
-
export declare const mapAddressLocalizationToJpAddressSchema: (localization:
|
|
3
|
+
export declare const mapAddressLocalizationToJpAddressSchema: (localization: AddressDto["localization"] | undefined) => JpAddressSchema;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AddressDto } from '../../../../../../api/legalEntity/legalEntity.types';
|
|
2
2
|
import type { JpAddressSchema } from '../../../../forms/Address/localized/jp/jpAddressSchema';
|
|
3
|
-
export declare const mapJpAddressSchemaToAddressLocalizations: (data: JpAddressSchema | undefined) => NonNullable<
|
|
3
|
+
export declare const mapJpAddressSchemaToAddressLocalizations: (data: JpAddressSchema | undefined) => NonNullable<AddressDto["localization"]>;
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
import type { CompanyDatasetResponse } from '../../../../api/companyDataSet/companyDataset.types';
|
|
2
|
+
import type { AddressDto } from '../../../../api/legalEntity/legalEntity.types';
|
|
2
3
|
import type { BaseInnerFormProps } from '../../../../hooks/useForm/types';
|
|
3
4
|
import type { NsTranslationKey } from '../../../../../types';
|
|
4
5
|
import type { CountryCode } from '../../../../types/datasets/country-code';
|
|
5
6
|
import type { RecordWithDefault } from '../../../../utils/recordWithDefault';
|
|
6
7
|
import type { ValidationRuleResult, ValidatorMode } from '../../../../utils/validation/types';
|
|
7
8
|
export type AddressType = 'registrationAddress' | 'operationalAddress' | 'residentialAddress';
|
|
8
|
-
export
|
|
9
|
-
street?: string;
|
|
10
|
-
street2?: string;
|
|
11
|
-
postalCode?: string;
|
|
12
|
-
city?: string;
|
|
13
|
-
stateOrProvince?: string;
|
|
9
|
+
export type AddressSchema = Omit<AddressDto, 'country' | 'localization'> & {
|
|
14
10
|
country?: CountryCode;
|
|
15
11
|
searchAddress?: string;
|
|
16
|
-
}
|
|
12
|
+
};
|
|
17
13
|
export interface AddressProps extends BaseInnerFormProps<AddressSchema> {
|
|
18
14
|
countryCode?: CountryCode;
|
|
19
15
|
hideCountry?: boolean;
|
|
@@ -14,7 +14,7 @@ export declare const getKeyForField: (fieldName: string, country?: CountryCode)
|
|
|
14
14
|
* Returns the address schema of the selected country or the default address schema.
|
|
15
15
|
* @param country - The selected country
|
|
16
16
|
*/
|
|
17
|
-
export declare const getAddressSchemaForCountry: (country: CountryCode | undefined) => (
|
|
17
|
+
export declare const getAddressSchemaForCountry: (country: CountryCode | undefined) => ("city" | "country" | "postalCode" | "searchAddress" | "stateOrProvince" | "street" | "street2")[];
|
|
18
18
|
/**
|
|
19
19
|
* Returns the field labels for each field in the selected countries address schema.
|
|
20
20
|
* @param country - The selected country
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { LoadingStatus } from '../../../ui/atoms/LoaderWrapper/constants';
|
|
2
|
+
import type { ExistingLegalEntity } from '../../../../core/models/api/legal-entity';
|
|
3
|
+
import type { LegalEntityType } from '../../../../core/models/api/legal-entity-type';
|
|
4
|
+
import type { AccountHolderOption, LegalArrangementOption } from '../../../../types/accountHolder';
|
|
5
|
+
export interface UseUpdateLegalEntityAndSelectAccountHolder {
|
|
6
|
+
rootLegalEntity: ExistingLegalEntity;
|
|
7
|
+
targetLegalEntityType: LegalEntityType | undefined;
|
|
8
|
+
targetLegalArrangement: LegalArrangementOption | undefined;
|
|
9
|
+
newAccountHolder: AccountHolderOption | undefined;
|
|
10
|
+
setLoadingStatus: (status: LoadingStatus) => void;
|
|
11
|
+
onComplete: (newAccountHolder: AccountHolderOption) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare function useUpdateLegalEntityAndSelectAccountHolder({ rootLegalEntity, targetLegalEntityType, targetLegalArrangement, newAccountHolder, setLoadingStatus, onComplete, }: UseUpdateLegalEntityAndSelectAccountHolder): () => Promise<void>;
|