@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.
Files changed (230) hide show
  1. package/dist/{AcceptTermsOfServiceWorkflow-D2mvc_PB.js → AcceptTermsOfServiceWorkflow-BOf_52TF.js} +4 -4
  2. package/dist/{Accordion-DEivLTcw.js → Accordion-Sjyj7C_t.js} +1 -1
  3. package/dist/{AccountSetupRejected-pcQcFAhQ.js → AccountSetupRejected-DoYH7MuS.js} +1 -1
  4. package/dist/{AdaptiveWorkflow-C0EsaW8F.js → AdaptiveWorkflow-ychw-YVL.js} +16 -16
  5. package/dist/{AdaptiveWorkflowComponent-Nk2CJaU4.js → AdaptiveWorkflowComponent-DFnkomSo.js} +3 -3
  6. package/dist/{AddressFields-3kqeRdC_.js → AddressFields-CFf-ECTn.js} +10 -10
  7. package/dist/{Avatar-DHyXCNwV.js → Avatar-Zp1T9qAL.js} +1 -1
  8. package/dist/{BusinessFinancingDropin-BOECqGNd.js → BusinessFinancingDropin-Dr9GOZI2.js} +31 -31
  9. package/dist/{BusinessFinancingPage-DSy5an97.js → BusinessFinancingPage-DIHz906_.js} +3 -3
  10. package/dist/{BusinessRegistrationNumberField-DHccXqsX.js → BusinessRegistrationNumberField-BGZrKxCP.js} +5 -5
  11. package/dist/{BusinessRegistrationNumberFieldGroup-2e9GKH-i.js → BusinessRegistrationNumberFieldGroup-D4289xzf.js} +5 -5
  12. package/dist/{BusinessTypeSelectionPage-BraXRUrg.js → BusinessTypeSelectionPage-D7mTXytS.js} +85 -67
  13. package/dist/{Button-nDbNtBn3.js → Button-DfRmINzF.js} +1 -1
  14. package/dist/{Checkbox-BiKnP2fS.js → Checkbox-DTQ5Y6L-.js} +2 -2
  15. package/dist/{ComponentGroup-Due-N8Yz.js → ComponentGroup-DysWDI71.js} +3 -3
  16. package/dist/{ConstitutionalDocument-CtRHXMb9.js → ConstitutionalDocument-o1_xv4zy.js} +15 -15
  17. package/dist/{ContactDetails-Syyy5BfB.js → ContactDetails-BUZAvP2T.js} +5 -5
  18. package/dist/{ContextGuidance-D8leB0D6.js → ContextGuidance-fy9mkvE5.js} +3 -3
  19. package/dist/{Currency-CFsMnSP0.js → Currency-CfDw1FVZ.js} +5 -5
  20. package/dist/{CustomerSupport-DqayB3BM.js → CustomerSupport-BRTzBxJt.js} +25 -15
  21. package/dist/{DataConflictsModal-Bz2SYyi5.js → DataConflictsModal-s-Ss3HdC.js} +7 -7
  22. package/dist/{DebugModal-fH0uKl1E.js → DebugModal-CbilZSFv.js} +10 -10
  23. package/dist/{DecisionMakerDetails-7IPREpy1.js → DecisionMakerDetails-CWZUSV8G.js} +12 -12
  24. package/dist/{DecisionMakerDetailsPage-Bs9q7sxc.js → DecisionMakerDetailsPage-Rtsv9ICS.js} +7 -7
  25. package/dist/{DecisionMakers-Dw66GRhZ.js → DecisionMakers-BmUjP2RH.js} +13 -13
  26. package/dist/{Dropzone-CjLSK2UN.js → Dropzone-dnfMEv2T.js} +7 -7
  27. package/dist/{EmbeddedStatus-BIVFBjzu.js → EmbeddedStatus-tbJfdxm8.js} +3 -3
  28. package/dist/{EndStateLayout-D2CSEwEn.js → EndStateLayout-BK1Hh02g.js} +2 -2
  29. package/dist/{EntityAssociation-LF_5ihhI.js → EntityAssociation-CH9G3mlZ.js} +6 -6
  30. package/dist/{ErrorPanel-tLtZnFnX.js → ErrorPanel-B5suXapM.js} +2 -2
  31. package/dist/{GlobalEntryModal-CY-t1fGQ.js → GlobalEntryModal-DwhX1CJz.js} +237 -51
  32. package/dist/{GlobalEntryPage-xX4ruKnx.js → GlobalEntryPage-DPYM9_FS.js} +11 -8
  33. package/dist/{Icon-BcaP-f1D.js → Icon-C3S5_kkS.js} +1 -1
  34. package/dist/{IdentityNumber-4ky6SOcb.js → IdentityNumber-BJymypwh.js} +5 -5
  35. package/dist/{IdentityNumberFieldGroup-BKKmSfLG.js → IdentityNumberFieldGroup-DPfXsI_n.js} +2 -2
  36. package/dist/{IdentityScreeningWorkflow-D0eNj4nD.js → IdentityScreeningWorkflow-ZVSOyRqF.js} +12 -12
  37. package/dist/{IndividualDropin-DrQiG_Vy.js → IndividualDropin-B3UfxIu8.js} +269 -45
  38. package/dist/{IndustryCodeFieldGroup-jm8KFccr.js → IndustryCodeFieldGroup-D5U1t1F-.js} +4 -4
  39. package/dist/{InputDate-C14J5Af2.js → InputDate-CncTgJYS.js} +3 -3
  40. package/dist/{InputText-Dr-Wg0uc.js → InputText-Bniyaz3w.js} +3 -3
  41. package/dist/{Introduction-DXAxkrDG.js → Introduction-BOz_2500.js} +6 -6
  42. package/dist/{InvitedDecisionMakerComponent-CPMIUjiE.js → InvitedDecisionMakerComponent-DgIv6IG9.js} +9 -9
  43. package/dist/{JpAddressFields-olKUlhpt.js → JpAddressFields-nEKx7nU_.js} +8 -8
  44. package/dist/{LegalCompanyNameField-BrdI-awc.js → LegalCompanyNameField-BFm2LIw2.js} +5 -5
  45. package/dist/{LegalName-CWoSqy0V.js → LegalName-DBvf_laS.js} +4 -4
  46. package/dist/{LegalRepresentativeDetailsPage-Ca3FLoSd.js → LegalRepresentativeDetailsPage-BVr_AhP6.js} +3 -3
  47. package/dist/{Link-opuU6bLF.js → Link-c2jAgGgc.js} +1 -1
  48. package/dist/{ListItem-CbjOa0L_.js → ListItem-C35r8558.js} +3 -3
  49. package/dist/{Modal-BDNS-0rS.js → Modal-5uXk2vE6.js} +2 -2
  50. package/dist/{Name-CxlxPgUR.js → Name-CbdY9G9k.js} +4 -4
  51. package/dist/{NewSummary-mLsovGX8.js → NewSummary-lUp_hg6V.js} +6 -6
  52. package/dist/{PatriotActDisclosure-kOnDnF8P.js → PatriotActDisclosure-i6txl8sg.js} +9 -9
  53. package/dist/{PayoutDetailsDropin-CZ77wefd.js → PayoutDetailsDropin-BnDericg.js} +25 -25
  54. package/dist/{PayoutDetailsPage-Cyy-fDbK.js → PayoutDetailsPage-zLj-XA7a.js} +4 -4
  55. package/dist/{RadioGroup-C0mNADXE.js → RadioGroup-BcRkK03K.js} +11 -11
  56. package/dist/{Review-CDtJh9j3.js → Review--lh7xBZJ.js} +6 -6
  57. package/dist/{RootBusinessDetailsPage-CnVWFx0H.js → RootBusinessDetailsPage-CsOt68pH.js} +3 -3
  58. package/dist/{RootBusinessLinesPage-Dtx9X-mD.js → RootBusinessLinesPage-CsPTRJHI.js} +20 -20
  59. package/dist/{RootIndividualDetailsPage-q8PZ0Khk.js → RootIndividualDetailsPage-CROUaWsK.js} +4 -4
  60. package/dist/{Select-UO37dd_q.js → Select-CAYO1vj-.js} +6 -6
  61. package/dist/{SignPCIComponent-D21OqVWo.js → SignPCIComponent-iFFWNqDL.js} +13 -13
  62. package/dist/{SingpassSelection-CRYphIRT.js → SingpassSelection-BKRSs-Xf.js} +4 -4
  63. package/dist/{SoleProprietorshipPage-BKB0sRiP.js → SoleProprietorshipPage-UvZsbICO.js} +3 -3
  64. package/dist/{SourceOfFundsPage-C2ZEp0lT.js → SourceOfFundsPage-B5E9w3tI.js} +25 -28
  65. package/dist/{SourceOfFundsWorkflow-Cy12c7ou.js → SourceOfFundsWorkflow-DgUkjcYh.js} +4 -4
  66. package/dist/{StateField-CWS8eXex.js → StateField-DB4_kWP5.js} +46 -5
  67. package/dist/{Step-CYG94mSp.js → Step-CoGy1zas.js} +4 -4
  68. package/dist/{Task-D6xuGucd.js → Task-DdRNdhJY.js} +7 -7
  69. package/dist/{TaskGroup-C4ND30dB.js → TaskGroup-yVbg_WHM.js} +3 -3
  70. package/dist/{TaskListItem-Dc6n6llv.js → TaskListItem-BritELso.js} +10 -10
  71. package/dist/{TaskStepperContextProvider-CvChF1W5.js → TaskStepperContextProvider-D0tKJplv.js} +1 -1
  72. package/dist/{TaskVerificationStatus-pjPK5vVN.js → TaskVerificationStatus-DPA4ZEPa.js} +1 -1
  73. package/dist/{TaxInformationFieldGroup-BACQgHQ7.js → TaxInformationFieldGroup-CYcqRgQt.js} +9 -9
  74. package/dist/{TaxReportingDropin-DmOclyYQ.js → TaxReportingDropin-Dxt-K1Td.js} +14 -14
  75. package/dist/{TaxReportingWorkflow-CBEB7oAn.js → TaxReportingWorkflow-xeJVSZxl.js} +4 -4
  76. package/dist/{TermsOfServiceManagement-No_9QGjv.js → TermsOfServiceManagement-BiqqRcsM.js} +12 -12
  77. package/dist/{TextArea-BzY5efza.js → TextArea-mN6mmyt0.js} +4 -4
  78. package/dist/{TrustDetailsPage-BHjbebZX.js → TrustDetailsPage-OuITcLjL.js} +23 -25
  79. package/dist/{TrustMemberCompanyPage-BSe-Pn1O.js → TrustMemberCompanyPage-BSr2h39m.js} +4 -4
  80. package/dist/{TrustMemberIndividualPage-DxlZQF6W.js → TrustMemberIndividualPage-D1oTjw8X.js} +3 -3
  81. package/dist/{TrustMemberRoleAndTypePage-AtlXyfKk.js → TrustMemberRoleAndTypePage-qnLRC07p.js} +15 -16
  82. package/dist/{TrustMembersOverview-DpmUv4Vj.js → TrustMembersOverview-BhtPLg82.js} +11 -11
  83. package/dist/{UboTaskItem-ESC2Ze3o.js → UboTaskItem-dmz_L8pF.js} +7 -7
  84. package/dist/{UnincorporatedPartnershipIndividualPage-BVpz27KZ.js → UnincorporatedPartnershipIndividualPage-BGuseNDd.js} +3 -3
  85. package/dist/{UnincorporatedPartnershipMemberCompanyPage-BBxtLGt0.js → UnincorporatedPartnershipMemberCompanyPage-DfWEeKVA.js} +4 -4
  86. package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-BuI7aE3O.js → UnincorporatedPartnershipMemberRoleAndTypePage-CNrub8wj.js} +8 -8
  87. package/dist/{UnincorporatedPartnershipMembersOverview-sE8-A2hQ.js → UnincorporatedPartnershipMembersOverview-BISsH8Wm.js} +6 -6
  88. package/dist/{VerificationErrorAlert-BCEhkhpr.js → VerificationErrorAlert-DAg5VgBd.js} +3 -3
  89. package/dist/{Workflow-CzSGihyD.js → Workflow-CVwXYQQE.js} +6 -6
  90. package/dist/{accountHolderUtils-3WiED1-j.js → accountHolderUtils-Dt7JmWab.js} +1 -1
  91. package/dist/adyen-business-financing.js +4 -4
  92. package/dist/adyen-individual-configuration.js +3 -3
  93. package/dist/adyen-individual-status.js +3 -3
  94. package/dist/adyen-invited-decision-maker.js +3 -3
  95. package/dist/adyen-onboarding.js +43 -34
  96. package/dist/adyen-terms-of-service-management.js +3 -3
  97. package/dist/adyen-terms-of-service-status.js +3 -3
  98. package/dist/adyen-transfer-instrument-configuration.js +3 -3
  99. package/dist/adyen-transfer-instrument-management.js +10 -10
  100. package/dist/adyen-verification-status.js +3 -3
  101. package/dist/{bafinUtils-h8n1IbJ9.js → bafinUtils-B8teCz7U.js} +160 -1053
  102. package/dist/businessRegistrationNumberPatterns-DwjKFSlu.js +981 -0
  103. package/dist/{constants-B9iXz9xK.js → constants-CSVEfRuk.js} +4 -4
  104. package/dist/{country-DkgapJ4w.js → country-zZC2TAQB.js} +1 -1
  105. package/dist/{decisionMaker-M0Tm92JR.js → decisionMakerRoles-APTR-Ah_.js} +41 -2
  106. package/dist/{error-CHFF8jLc.js → error-DhPmKdY4.js} +3 -3
  107. package/dist/{form-rules-CKwx5XtT.js → form-rules-yTwukXew.js} +6 -6
  108. package/dist/{formatValidationError-DZ1CxHdw.js → formatValidationError-ChBRk626.js} +2 -2
  109. package/dist/{getDefaultRegistrationNumberType-6m6DEmW8.js → getDefaultRegistrationNumberType-DPidx6iz.js} +59 -59
  110. package/dist/{getTrustedDecisionMakers-qs2frwk2.js → getTrustedDecisionMakers-DX3nImM5.js} +2 -2
  111. package/dist/{legalArrangementUtils-skU_cq9L.js → legalArrangementUtils-xvCxpgzJ.js} +48 -2
  112. package/dist/mapAddressLocalizationToJpAddressSchema-DEOqm_oJ.js +26 -0
  113. package/dist/{mapExistingFile-CDahgHsP.js → mapExistingFile-CwGW1ru4.js} +1 -1
  114. package/dist/{mapJpAddressSchemaToAddressLocalizations-CX2djRYM.js → mapJpAddressSchemaToAddressLocalizations-BcW9wSjn.js} +3 -4
  115. package/dist/{mapLegalEntityToIndividualSchema-ChE9qTUB.js → mapLegalEntityToIndividualSchema-Ksy4YlcJ.js} +7 -7
  116. package/dist/{mapTransferInstrumentToPayoutAccount-BmSbFaJJ.js → mapTransferInstrumentToPayoutAccount-BoZaPCSn.js} +2 -2
  117. package/dist/{processValidationErrors-CRWq2tu-.js → processValidationErrors-BJNiG_SS.js} +3 -3
  118. package/dist/{resolveEnvironment-D2iMH7UD.js → resolveEnvironment-6rOnOa58.js} +11 -11
  119. package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/BusinessRegistrationNumberFieldGroup.d.ts +2 -3
  120. package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/RegistrationNumberTypeSelectorField.d.ts +2 -2
  121. package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxIdTypeSelectorField.d.ts +2 -2
  122. package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxInformationFieldGroup.d.ts +3 -3
  123. package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +1 -1
  124. package/dist/types/api/legalEntity/legalEntity.types.d.ts +9 -0
  125. package/dist/types/api/legalEntity/useLegalEntity.d.ts +7 -7
  126. package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +1 -1
  127. package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +2 -2
  128. package/dist/types/components/Business/forms/BasicInformation/types.d.ts +2 -2
  129. package/dist/types/components/Business/forms/CompanyStructure/types.d.ts +2 -2
  130. package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +2 -2
  131. package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialReportsToFinancialInformation.d.ts +2 -2
  132. package/dist/types/components/Business/forms/RegistrationDocument/types.d.ts +3 -3
  133. package/dist/types/components/Business/forms/TaxDocument/types.d.ts +3 -3
  134. package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +1 -1
  135. package/dist/types/components/Business/tasks/BusinessDetailsDropin/validate.d.ts +2 -2
  136. package/dist/types/components/Business/utils/applyVerifiedBusinessData.d.ts +2 -2
  137. package/dist/types/components/Business/utils/companyTypeMetadata.d.ts +4 -4
  138. package/dist/types/components/Business/utils/getAvailableCompanyStructures.d.ts +2 -2
  139. package/dist/types/components/Business/utils/utils.d.ts +3 -4
  140. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +96 -102
  141. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +5 -6
  142. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +2 -2
  143. package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +2 -2
  144. package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/PaperworkQuestionnaire.d.ts +5 -0
  145. package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/types.d.ts +1 -1
  146. package/dist/types/components/GlobalEntry/fields/PrimaryPartnerTypeField/types.d.ts +1 -1
  147. package/dist/types/components/GlobalEntry/fields/UnincorporatedOrganizationTypeField/types.d.ts +1 -1
  148. package/dist/types/components/GlobalEntry/globalEntryKeyMapping.d.ts +15 -0
  149. package/dist/types/components/GlobalEntry/rules.d.ts +1 -1
  150. package/dist/types/components/GlobalEntry/tasks/GlobalEntryModal.d.ts +6 -2
  151. package/dist/types/components/GlobalEntry/tasks/GlobalEntryPage.d.ts +5 -1
  152. package/dist/types/components/GlobalEntry/utils.d.ts +27 -3
  153. package/dist/types/components/Individual/forms/IdNowVerificationModal/isIdNowModalOpen.d.ts +1 -1
  154. package/dist/types/components/Individual/forms/Individual.rules.d.ts +0 -1
  155. package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
  156. package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +1 -0
  157. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +2 -2
  158. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/getDefaultRegistrationNumberType.d.ts +2 -2
  159. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/inferCompanyRegistrationNumberType.d.ts +2 -2
  160. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +2 -2
  161. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/registrationNumberTypes.d.ts +3 -3
  162. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +3 -4
  163. package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.d.ts +1 -1
  164. package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/TaxIdNumberTypeSelector.d.ts +2 -2
  165. package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/getDefaultTaxIdNumberType.d.ts +3 -4
  166. package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/inferTaxIdNumberType.d.ts +3 -4
  167. package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +4 -4
  168. package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +5 -4
  169. package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +9 -4
  170. package/dist/types/components/Shared/fields/TaxInformationField/utils.d.ts +1 -1
  171. package/dist/types/components/Shared/fields/VatNumberField/VatNumberTypeSelector/VatNumberTypeSelector.d.ts +2 -2
  172. package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +4 -4
  173. package/dist/types/components/Shared/fields/VatNumberField/vatNumberTypes.d.ts +2 -3
  174. package/dist/types/components/Shared/forms/Address/localized/jp/mapAddressLocalizationToJpAddressSchema.d.ts +2 -2
  175. package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSchemaToAddressLocalizations.d.ts +2 -2
  176. package/dist/types/components/Shared/forms/Address/types.d.ts +3 -7
  177. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  178. package/dist/types/components/Shared/forms/BusinessTypeSelection/useUpdateLegalEntityAndSelectAccountHolder.d.ts +13 -0
  179. package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +3 -3
  180. package/dist/types/components/Shared/forms/DocumentUpload/types.d.ts +2 -2
  181. package/dist/types/components/Shared/tasks/CustomerSupport/mapping/mapCustomerSupportSchemaToCustomerSupportType.d.ts +2 -2
  182. package/dist/types/components/Shared/tasks/CustomerSupport/mapping/mapDtoToCustomerSupportSchema.d.ts +3 -0
  183. package/dist/types/core/models/api/individual.d.ts +5 -6
  184. package/dist/types/core/models/api/legal-arrangement.d.ts +6 -6
  185. package/dist/types/core/models/api/legal-entity.d.ts +2 -2
  186. package/dist/types/core/user-events.d.ts +2 -2
  187. package/dist/types/datasets/generators/getCompanyTypeExamplesForCountry.d.ts +3 -3
  188. package/dist/types/hooks/useDataConflicts.d.ts +2 -2
  189. package/dist/types/router/routeConfig.d.ts +1 -1
  190. package/dist/types/types/businessEntityType.d.ts +7 -0
  191. package/dist/types/utils/addressToString.d.ts +2 -2
  192. package/dist/types/utils/analytics/debouncedInputEvent.d.ts +1 -1
  193. package/dist/types/utils/businessUtils.d.ts +18 -7
  194. package/dist/types/utils/customerSupportUtils.d.ts +2 -2
  195. package/dist/types/utils/legalArrangementUtils.d.ts +1 -0
  196. package/dist/types/utils/mapping/documentGuidanceMap.d.ts +1 -1
  197. package/dist/{types-Bdfu7HN6.js → types-wRlt8bxb.js} +1 -1
  198. package/dist/{useBusinessDetailsData-DZQuIMNw.js → useBusinessDetailsData-D5WMRXf8.js} +88 -111
  199. package/dist/{useCanSeeIntroduction-BGYdkMIE.js → useCanSeeIntroduction-47a29qGT.js} +3 -3
  200. package/dist/{useForm-BJq32Ve1.js → useForm-C8X8Nh_A.js} +3 -3
  201. package/dist/{useHideTaskStepper-CcCmW80A.js → useHideTaskStepper-CbMcV9mk.js} +1 -1
  202. package/dist/{useId-BMocIuPK.js → useId-CcjYxxnm.js} +1 -1
  203. package/dist/{useNavigate-D4ypqPBN.js → useNavigate-ZoEeUtrK.js} +33 -33
  204. package/dist/{useSalesChannels-BCzs8Xya.js → useSalesChannels-K1tuVs25.js} +3 -3
  205. package/dist/{useTaskLandedEvent-Cf1fN_gV.js → useTaskLandedEvent-DcX3urqZ.js} +2 -2
  206. package/dist/{useTrustMembers-DqpnYNNj.js → useTrustMembers-DoRWdimd.js} +2 -2
  207. package/dist/{useUnincorporatedPartnershipMembers-w3dG_nyc.js → useUnincorporatedPartnershipMembers-K5jkCKfJ.js} +1 -1
  208. package/dist/{StructuredList-CqZM_5X9.js → utils-CXLiV88a.js} +94 -5
  209. package/dist/{utils-BMhvbUV1.js → utils-Dm0eoyQ6.js} +8 -17
  210. package/dist/{validate-BqIbVY0E.js → validate-09Jy2SgA.js} +8 -8
  211. package/dist/{validate-DiEa5w30.js → validate-BcUs5K_M.js} +46 -6
  212. package/dist/{validate-RLWN-I5L.js → validate-DnnWVNv6.js} +2 -2
  213. package/dist/{validate-Dfw99Sal.js → validate-tS-cwVuY.js} +3 -3
  214. package/dist/{validateExtractionResult-DueyX5oY.js → validateExtractionResult-dH4TewHf.js} +2 -2
  215. package/dist/{validationError-BhICjGiF.js → validationError-D4d622D3.js} +2 -2
  216. package/package.json +1 -1
  217. package/dist/Individual.rules-PKwY3D-0.js +0 -293
  218. package/dist/decisionMakerRoles-DbKnutwk.js +0 -46
  219. package/dist/isEmpty-DD8Insy0.js +0 -14
  220. package/dist/mapAddressLocalizationToJpAddressSchema-CBeBTFmC.js +0 -66
  221. package/dist/types/core/models/api/address.d.ts +0 -14
  222. package/dist/types/core/models/api/branchAllocation.d.ts +0 -5
  223. package/dist/types/core/models/api/company-types-value.d.ts +0 -15
  224. package/dist/types/core/models/api/customerSupport.d.ts +0 -12
  225. package/dist/types/core/models/api/financialReport.d.ts +0 -15
  226. package/dist/types/core/models/api/organization.d.ts +0 -60
  227. package/dist/useCreateLegalEntity-CYZd_62a.js +0 -24
  228. package/dist/useUpdateLegalEntity-CvACAgDP.js +0 -29
  229. package/dist/utils-Br7Ah3uy.js +0 -46
  230. 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?: Organization, businessFinancingData?: BusinessFinancingCompanySchema | BusinessFinancingParentSchemasCombined) => BusinessFinancingCompanySchema | BusinessFinancingParentSchemasCombined | undefined;
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?: Address) => Array<keyof BusinessFinancingParentSchemasCombined>;
48
- export declare const getBusinessFinancingFields: (country: CountryCode, data?: BusinessFinancingSchema, rootEntityAddress?: Address) => [MultiFormOptions<BusinessFinancingSchema>["requiredFields"], MultiFormOptions<BusinessFinancingSchema>["optionalFields"]];
49
- export declare const getAddressCountryForParentCompany: (parentCompany?: BusinessFinancingParentCompanySchema, leAddress?: Address) => CountryCode | undefined;
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?: 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?: Address) => BusinessFinancingSummaryType;
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;
@@ -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' | null;
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' | null;
3
+ primaryPartnerType?: 'individual' | 'organization';
4
4
  }
5
5
  export type PrimaryPartnerTypeFieldProps = Pick<BaseFormFieldProps<PrimaryPartnerTypeFieldSchema>, 'data' | 'valid' | 'errors' | 'handleChangeFor'>;
@@ -1,5 +1,5 @@
1
1
  import type { BaseFormFieldProps } from '../../../../hooks/useForm/types';
2
2
  export interface UnincorporatedOrganizationTypeFieldSchema {
3
- unincorporatedOrganizationType?: 'unincorporatedAssociation' | 'unincorporatedPartnership' | null;
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
- export declare const GlobalEntryModal: ({ rootLegalEntity }: {
2
+ import type { AccountHolderOption } from '../../../types/accountHolder';
3
+ interface GlobalEntryModalProps {
3
4
  rootLegalEntity: ExistingLegalEntity;
4
- }) => import("preact/jsx-runtime").JSX.Element;
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
- export declare const GlobalEntryPage: () => import("preact/jsx-runtime").JSX.Element;
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 { CompanyTypesValue } from '../../core/models/api/company-types-value';
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 declare const getGlobalEntryCompanyType: (legalEntity: ExistingLegalEntity | undefined, data: GlobalEntrySchema) => CompanyTypesValue | typeof LegalEntityTypes.TRUST | typeof LegalEntityTypes.INDIVIDUAL | undefined;
6
- export declare const mapLegalEntityToGlobalEntrySchema: (legalEntity: ExistingLegalEntity) => GlobalEntrySchema;
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("../../../../core/models/api/organization").Organization | undefined;
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 };
@@ -22,5 +22,6 @@ export interface FormFlowProps {
22
22
  summary?: SummaryWithoutForms;
23
23
  summaryComponent?: ComponentChildren;
24
24
  totalSteps?: number;
25
+ isGlobalEntry?: boolean;
25
26
  }
26
27
  export {};
@@ -1,9 +1,9 @@
1
- import type { CompanyTypesValue } from '../../../../../core/models/api/company-types-value';
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?: CompanyTypesValue | 'trust';
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 { CompanyTypesValue } from '../../../../../core/models/api/company-types-value';
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: CompanyTypesValue | typeof LegalEntityTypes.TRUST | undefined): CompanyRegistrationNumberType | undefined;
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 { CompanyTypesValue } from '../../../../../core/models/api/company-types-value';
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: CompanyTypesValue | "trust" | undefined) => CompanyRegistrationNumberType | undefined;
12
+ export declare const inferCompanyRegistrationNumberType: (registrationNumber: string, country: CountryCode, companyType: CompanyType | "trust" | "unincorporatedPartnership" | undefined) => CompanyRegistrationNumberType | undefined;
@@ -1,4 +1,4 @@
1
- import { type CompanyTypesValue } from '../../../../core/models/api/company-types-value';
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?: CompanyTypesValue | 'trust';
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 { type CompanyTypesValue } from '../../../../core/models/api/company-types-value';
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: CompanyTypesValue | "trust" | undefined) => readonly CompanyRegistrationNumberOption[] | undefined;
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): CompanyTypesValue[] | 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<CompanyTypesValue | 'trust'>;
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?: CompanyTypesValue | typeof LegalEntityTypes.TRUST;
22
+ companyType?: BusinessEntityType;
24
23
  }
@@ -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: (keyof AddressSchema | "jaHaniCity" | "jaHaniStateOrProvince" | "jaHaniStreet" | "jaKanaCity" | "jaKanaStateOrProvince" | "street2FullWidth")[];
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?: CompanyTypesValue | typeof LegalEntityTypes.TRUST | typeof LegalEntityTypes.INDIVIDUAL;
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 { CompanyTypesValue } from '../../../../../core/models/api/company-types-value';
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 '../../../../../core/models/api/organization';
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: CompanyTypesValue | typeof LegalEntityTypes.TRUST | typeof LegalEntityTypes.INDIVIDUAL | undefined): TaxIdNumberType | undefined;
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 { CompanyTypesValue } from '../../../../../core/models/api/company-types-value';
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?: CompanyTypesValue | typeof LegalEntityTypes.TRUST | typeof LegalEntityTypes.INDIVIDUAL) => TaxIdNumberType | undefined;
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 { type CompanyTypesValue } from '../../../../core/models/api/company-types-value';
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?: CompanyTypesValue | typeof LegalEntityTypes.TRUST | typeof LegalEntityTypes.INDIVIDUAL;
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?: CompanyTypesValue | typeof LegalEntityTypes.TRUST | typeof LegalEntityTypes.INDIVIDUAL;
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 { CompanyTypesValue } from '../../../../core/models/api/company-types-value';
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: CompanyTypesValue | typeof LegalEntityTypes.TRUST | typeof LegalEntityTypes.INDIVIDUAL | undefined) => readonly TaxIdNumberOption[] | undefined;
238
- export declare const getTaxIdNumberSelectorOptions: (country: CountryCode, companyType: CompanyTypesValue | typeof LegalEntityTypes.TRUST | typeof LegalEntityTypes.INDIVIDUAL | undefined, exemptedOptionLabel?: string) => readonly TaxIdNumberOption[] | (TaxIdNumberOption | {
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): CompanyTypesValue[] | 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?: CompanyTypesValue | typeof LegalEntityTypes.TRUST | typeof LegalEntityTypes.INDIVIDUAL;
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<CompanyTypesValue | typeof LegalEntityTypes.TRUST | typeof LegalEntityTypes.INDIVIDUAL>;
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 '../../../../core/models/api/organization';
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 { CompanyTypesValue } from '../../../../../core/models/api/company-types-value';
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?: CompanyTypesValue | typeof LegalEntityTypes.TRUST;
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<CompanyTypesValue | typeof LegalEntityTypes.TRUST>;
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 { type CompanyTypesValue } from '../../../../core/models/api/company-types-value';
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: CompanyTypesValue | typeof LegalEntityTypes.TRUST | undefined) => readonly VatNumberOption[] | undefined;
148
+ export declare const getVatNumberOptions: (country: CountryCode, companyType: BusinessEntityType | undefined) => readonly VatNumberOption[] | undefined;
@@ -1,3 +1,3 @@
1
- import type { Address } from '../../../../../../core/models/api/address';
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: Address["localization"] | undefined) => JpAddressSchema;
3
+ export declare const mapAddressLocalizationToJpAddressSchema: (localization: AddressDto["localization"] | undefined) => JpAddressSchema;
@@ -1,3 +1,3 @@
1
- import type { Address } from '../../../../../../core/models/api/address';
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<Address["localization"]>;
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 interface AddressSchema {
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) => (keyof AddressSchema)[];
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>;