@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,293 +0,0 @@
1
- try {
2
- let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "35b64aa5-3dd5-4c86-af9f-69a4392c8218", e._sentryDebugIdIdentifier = "sentry-dbid-35b64aa5-3dd5-4c86-af9f-69a4392c8218");
4
- } catch (e) {}
5
- import { t as getLegalEntityCountry } from "./getLegalEntityCountry-CNE5uei8.js";
6
- import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
7
- import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
8
- import { t as allowedCountriesForNominee } from "./entityAssociationUtil-CLBR9osP.js";
9
- import { t as DecisionMakerTypes } from "./decision-maker-type-NR4GFAeT.js";
10
- import { t as Scenarios } from "./get-scenarios-Bb-paHmJ.js";
11
- import { t as getAvailableDecisionMakerRoleTypes } from "./decisionMaker-M0Tm92JR.js";
12
- import { i as isLowRiskCountry } from "./country-DkgapJ4w.js";
13
- import { t as createFormRules } from "./form-rules-CKwx5XtT.js";
14
- import { V as isJapanLocalizationEnabled, n as isBafinSignatoryFlow } from "./bafinUtils-h8n1IbJ9.js";
15
- import { d as COUNTRIES_WITH_STATES_DATASET, i as getAddressSchemaForCountry } from "./StateField-CWS8eXex.js";
16
- import { t as getLocalizedIdDocumentTypeOptions } from "./utils-Br7Ah3uy.js";
17
- //#region src/components/Individual/forms/Individual.rules.ts
18
- var REQUIRED = "REQUIRED";
19
- var OPTIONAL = "OPTIONAL";
20
- var ID_NUMBER_EXEMPT_COUNTRIES = [
21
- CountryCodes.Canada,
22
- CountryCodes.PuertoRico,
23
- CountryCodes.UnitedStates
24
- ];
25
- var COUNTRIES_WHICH_USE_MULTIPLE_IDENTITY_TYPES = [
26
- CountryCodes.HongKong,
27
- CountryCodes.Australia,
28
- CountryCodes.NewZealand
29
- ];
30
- var ID_NUMBER_REQUIRED_FOR_DIRECTOR_COUNTRIES = [CountryCodes.Singapore, CountryCodes.UnitedStates];
31
- var NATIONALITY_REQUIRED_FOR_COUNTRIES = [CountryCodes.Singapore, CountryCodes.HongKong];
32
- var JOB_TITLE_REQUIRED_FOR_COUNTRIES = [CountryCodes.NewZealand];
33
- var ISSUER_REQUIRED_FOR_COUNTRIES = [CountryCodes.Australia];
34
- var EXPIRY_DATE_REQUIRED_FOR_COUNTRIES = [CountryCodes.NewZealand];
35
- var LICENSE_CARD_NUMBER_REQUIRED_FOR_COUNTRIES = [CountryCodes.NewZealand, CountryCodes.Australia];
36
- var TAX_ID_REQUIRED_COUNTRIES = [
37
- CountryCodes.Austria,
38
- CountryCodes.Belgium,
39
- CountryCodes.Croatia,
40
- CountryCodes.Cyprus,
41
- CountryCodes.Estonia,
42
- CountryCodes.Finland,
43
- CountryCodes.France,
44
- CountryCodes.Germany,
45
- CountryCodes.Greece,
46
- CountryCodes.Ireland,
47
- CountryCodes.Latvia,
48
- CountryCodes.Lithuania,
49
- CountryCodes.Luxembourg,
50
- CountryCodes.Malta,
51
- CountryCodes.Netherlands,
52
- CountryCodes.Portugal,
53
- CountryCodes.Slovakia,
54
- CountryCodes.Slovenia,
55
- CountryCodes.UnitedKingdom
56
- ];
57
- var SOLE_PROP_COUNTRIES = [
58
- CountryCodes.Austria,
59
- CountryCodes.Australia,
60
- CountryCodes.Belgium,
61
- CountryCodes.Bulgaria,
62
- CountryCodes.Canada,
63
- CountryCodes.Croatia,
64
- CountryCodes.Cyprus,
65
- CountryCodes.CzechRepublic,
66
- CountryCodes.Denmark,
67
- CountryCodes.Estonia,
68
- CountryCodes.Finland,
69
- CountryCodes.France,
70
- CountryCodes.Germany,
71
- CountryCodes.Gibraltar,
72
- CountryCodes.Greece,
73
- CountryCodes.Guernsey,
74
- CountryCodes.HongKong,
75
- CountryCodes.Hungary,
76
- CountryCodes.Ireland,
77
- CountryCodes.IsleOfMan,
78
- CountryCodes.Italy,
79
- CountryCodes.Japan,
80
- CountryCodes.Jersey,
81
- CountryCodes.Latvia,
82
- CountryCodes.Liechtenstein,
83
- CountryCodes.Lithuania,
84
- CountryCodes.Luxembourg,
85
- CountryCodes.Malta,
86
- CountryCodes.Monaco,
87
- CountryCodes.Netherlands,
88
- CountryCodes.NewZealand,
89
- CountryCodes.Norway,
90
- CountryCodes.Poland,
91
- CountryCodes.Portugal,
92
- CountryCodes.PuertoRico,
93
- CountryCodes.Romania,
94
- CountryCodes.Singapore,
95
- CountryCodes.Slovakia,
96
- CountryCodes.Slovenia,
97
- CountryCodes.Spain,
98
- CountryCodes.Sweden,
99
- CountryCodes.Switzerland,
100
- CountryCodes.UnitedKingdom,
101
- CountryCodes.UnitedStates
102
- ];
103
- var DECISION_MAKER_TYPES_WITH_JOBTITLE = [DecisionMakerTypes.SIGNATORY, DecisionMakerTypes.CONTROLLING_PERSON];
104
- var ID_MISSING_DATA_ERROR_CODE = "2_8071";
105
- var REMEDIATION_CODES_UPLOAD_ID = [
106
- "1_301",
107
- "1_302",
108
- "1_303"
109
- ];
110
- var individualRules = ({ matchingScenario, data, country, taskType, isFeatureEnabled = () => false, rootLegalEntity, problems }) => createFormRules({
111
- countryUsesTaxId: () => {
112
- if (matchingScenario?.includes(Scenarios.L_TAXINFO) && TAX_ID_REQUIRED_COUNTRIES.includes(country)) return "REQUIRED";
113
- },
114
- isDirectorIdNumberRequiredForCountry: () => {
115
- if (!data.basicDetails?.role) return REQUIRED;
116
- if (data.basicDetails?.role?.some((role) => role !== DecisionMakerTypes.DIRECTOR)) return REQUIRED;
117
- if (ID_NUMBER_REQUIRED_FOR_DIRECTOR_COUNTRIES.includes(country) && data.basicDetails?.role?.some((role) => role === DecisionMakerTypes.DIRECTOR)) return REQUIRED;
118
- },
119
- idNumberRules: () => {
120
- if (data.additionalPersonalDetails?.idNumberExempt) return OPTIONAL;
121
- if (!data.basicDetails?.role) return REQUIRED;
122
- if (country === CountryCodes.UnitedStates && data.basicDetails?.role?.every((role) => role === DecisionMakerTypes.SIGNATORY)) return;
123
- if (data.basicDetails?.role?.some((role) => role !== DecisionMakerTypes.DIRECTOR)) return REQUIRED;
124
- if (ID_NUMBER_REQUIRED_FOR_DIRECTOR_COUNTRIES.includes(country) && data.basicDetails?.role?.some((role) => role === DecisionMakerTypes.DIRECTOR)) return REQUIRED;
125
- },
126
- requiredIfDecisionMakerTask: () => {
127
- if (taskType === TaskTypes.DECISION_MAKER || taskType === TaskTypes.TRUST_MEMBER_COMPANY_OWNER || taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER) return REQUIRED;
128
- },
129
- idNumberExemptIfApplicableCountry: () => {
130
- if (matchingScenario?.includes(Scenarios.L_TAXINFO)) return;
131
- if (country === CountryCodes.UnitedStates && data.basicDetails?.role?.every((role) => role === DecisionMakerTypes.SIGNATORY)) return;
132
- if (ID_NUMBER_EXEMPT_COUNTRIES.includes(country)) return REQUIRED;
133
- },
134
- hasChosenIdType: () => {
135
- return data?.manualIdUpload?.idDocumentType ? REQUIRED : void 0;
136
- },
137
- backPageIfRequiredForIdType: () => {
138
- return getLocalizedIdDocumentTypeOptions(country).find(({ id }) => id === data.manualIdUpload?.idDocumentType)?.hasBackPage ? REQUIRED : void 0;
139
- },
140
- isProofOfResidencyRequired: () => {
141
- if (isBafinSignatoryFlow({
142
- taskType,
143
- data,
144
- scenarios: matchingScenario
145
- })) return;
146
- if (data.proofOfResidency?.proofOfResidency?.length) return REQUIRED;
147
- if (!(data?.idVerificationMethod?.idVerificationMethod === "instantVerification")) return;
148
- const documentCountry = data?.idVerificationMethod?.idDocument?.documentCountry;
149
- const residenceCountry = data?.additionalPersonalDetails?.country ?? country;
150
- if (!documentCountry || !residenceCountry) return;
151
- const countriesMismatch = documentCountry !== residenceCountry;
152
- const isEeaLowRiskException = isLowRiskCountry(documentCountry) && isLowRiskCountry(residenceCountry);
153
- if (countriesMismatch && !isEeaLowRiskException) return REQUIRED;
154
- },
155
- isProofOfNationalIdRequired: () => {
156
- if (isBafinSignatoryFlow({
157
- taskType,
158
- data,
159
- scenarios: matchingScenario
160
- })) return;
161
- if (data.proofOfNationalId?.proofOfNationalId?.length) return REQUIRED;
162
- },
163
- isIdVerificationMethodRequired: () => {
164
- if (isBafinSignatoryFlow({
165
- taskType,
166
- data,
167
- scenarios: matchingScenario
168
- })) return;
169
- return REQUIRED;
170
- },
171
- isVerifyByInviteSelected: () => {
172
- return taskType === TaskTypes.DECISION_MAKER && isFeatureEnabled("EnableVerifyByInvite") && data?.idVerificationMethod?.idVerificationMethod === "verifyByInvite" ? REQUIRED : void 0;
173
- },
174
- contactsIfRequiredForRole: () => {
175
- if (taskType === TaskTypes.DECISION_MAKER) {
176
- if (data.basicDetails?.role?.includes(DecisionMakerTypes.SIGNATORY)) return REQUIRED;
177
- return;
178
- }
179
- return REQUIRED;
180
- },
181
- requiredIfPhoneScenarioDisabled: () => !isFeatureEnabled("EnablePhoneFieldScenario") ? REQUIRED : void 0,
182
- jobTitleIfRequiredForRole: () => {
183
- if (taskType !== TaskTypes.DECISION_MAKER) return;
184
- if (data.basicDetails?.role?.some((role) => DECISION_MAKER_TYPES_WITH_JOBTITLE.includes(role)) || JOB_TITLE_REQUIRED_FOR_COUNTRIES.includes(country)) return REQUIRED;
185
- },
186
- isPlaceOfBirthRequired: () => {
187
- if (isBafinSignatoryFlow({
188
- taskType,
189
- data,
190
- scenarios: matchingScenario
191
- })) return REQUIRED;
192
- },
193
- nationalityIfRequiredForRole: () => {
194
- if (isBafinSignatoryFlow({
195
- taskType,
196
- data,
197
- scenarios: matchingScenario
198
- })) return REQUIRED;
199
- const enableNationalitySGHK = isFeatureEnabled("EnableNationalitySGHK");
200
- const rootLegalEntityCountry = rootLegalEntity?.organization?.registeredAddress.country;
201
- if (enableNationalitySGHK && rootLegalEntityCountry && NATIONALITY_REQUIRED_FOR_COUNTRIES.includes(rootLegalEntityCountry)) return REQUIRED;
202
- if (NATIONALITY_REQUIRED_FOR_COUNTRIES.includes(country) || data?.additionalPersonalDetails?.nationality) return REQUIRED;
203
- },
204
- requiredIfCountryUsesMultipleTypesOfIdentity: () => {
205
- if (COUNTRIES_WHICH_USE_MULTIPLE_IDENTITY_TYPES.includes(country)) return REQUIRED;
206
- },
207
- licenseCardNumberRules: () => {
208
- if (data.additionalPersonalDetails?.typeOfIdentity === "driversLicense" && LICENSE_CARD_NUMBER_REQUIRED_FOR_COUNTRIES.includes(country)) return REQUIRED;
209
- },
210
- issuerStateRequired: () => {
211
- if (data.additionalPersonalDetails?.typeOfIdentity === "driversLicense" && ISSUER_REQUIRED_FOR_COUNTRIES.includes(country)) return REQUIRED;
212
- },
213
- expiryDateRequired: () => {
214
- if (data.additionalPersonalDetails?.typeOfIdentity === "passport" && EXPIRY_DATE_REQUIRED_FOR_COUNTRIES.includes(country)) return REQUIRED;
215
- },
216
- legalRepresentativeRelationshipRequired: () => taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS ? REQUIRED : void 0,
217
- isProofOfRelationshipRequired: () => void 0,
218
- addressIfRequiredForCountry: () => {
219
- return getAddressSchemaForCountry(data?.additionalPersonalDetails?.country).includes("street") ? "REQUIRED" : void 0;
220
- },
221
- otherAddressInfoIfRequiredForCountry: () => {
222
- if (isJapanLocalizationEnabled(isFeatureEnabled, country)) return "REQUIRED";
223
- return getAddressSchemaForCountry(data?.additionalPersonalDetails?.country).includes("street2") ? "OPTIONAL" : void 0;
224
- },
225
- postalCodeIfRequiredForCountry: () => {
226
- return getAddressSchemaForCountry(data?.additionalPersonalDetails?.country).includes("postalCode") ? "REQUIRED" : void 0;
227
- },
228
- cityIfRequiredForCountry: () => {
229
- return getAddressSchemaForCountry(data?.additionalPersonalDetails?.country).includes("city") ? "REQUIRED" : void 0;
230
- },
231
- stateOrProvinceIfRequiredForCountry: () => {
232
- return getAddressSchemaForCountry(data?.additionalPersonalDetails?.country).includes("stateOrProvince") && COUNTRIES_WITH_STATES_DATASET.includes(data?.additionalPersonalDetails?.country ?? country) ? "REQUIRED" : void 0;
233
- },
234
- nomineeDirectorRequiredForCountry: () => {
235
- if (allowedCountriesForNominee.includes(data?.additionalPersonalDetails?.country ?? country) && data?.basicDetails?.role?.includes(DecisionMakerTypes.DIRECTOR)) return "REQUIRED";
236
- },
237
- nomineeShareHolderRequiredForCountry: () => {
238
- if (allowedCountriesForNominee.includes(data?.additionalPersonalDetails?.country ?? country) && data?.basicDetails?.role?.includes(DecisionMakerTypes.OWNER)) return "REQUIRED";
239
- },
240
- isUsingInstantVerificationOrHasExistingDocument: () => {
241
- if (isBafinSignatoryFlow({
242
- taskType,
243
- data,
244
- scenarios: matchingScenario
245
- })) return;
246
- const isUsingInstantVerification = data?.idVerificationMethod?.idVerificationMethod === "instantVerification";
247
- const existingDocument = data?.idVerificationMethod?.idDocument;
248
- return isUsingInstantVerification || existingDocument ? REQUIRED : void 0;
249
- },
250
- isManualIdFlow: () => {
251
- if (isBafinSignatoryFlow({
252
- taskType,
253
- data,
254
- scenarios: matchingScenario
255
- })) return;
256
- return data?.idVerificationMethod?.idVerificationMethod === "manualVerification" ? "REQUIRED" : void 0;
257
- },
258
- isManualIdFlowAndNotProvidingIdNumber: () => {
259
- if (isBafinSignatoryFlow({
260
- taskType,
261
- data,
262
- scenarios: matchingScenario
263
- })) return;
264
- const hasMissingId = problems?.missingData?.some((error) => error.code === ID_MISSING_DATA_ERROR_CODE);
265
- const isManualFlow = data?.idVerificationMethod?.idVerificationMethod === "manualVerification";
266
- const idNumberExempt = data?.additionalPersonalDetails?.idNumberExempt;
267
- const hasIdRemediationAction = Object.keys(problems?.remediationActions ?? {}).some((code) => REMEDIATION_CODES_UPLOAD_ID.includes(code));
268
- return isManualFlow && (idNumberExempt || hasMissingId || hasIdRemediationAction) ? "REQUIRED" : void 0;
269
- },
270
- isManualIdFlowAndHasMissingData: () => {
271
- if (isBafinSignatoryFlow({
272
- taskType,
273
- data,
274
- scenarios: matchingScenario
275
- })) return;
276
- const isManualFlow = data?.idVerificationMethod?.idVerificationMethod === "manualVerification";
277
- if (matchingScenario?.includes(Scenarios.L1_IDDOC)) return isManualFlow ? "REQUIRED" : void 0;
278
- const hasMissingId = problems?.missingData?.some((error) => error.code === ID_MISSING_DATA_ERROR_CODE);
279
- const hasIdRemediationAction = Object.keys(problems?.remediationActions ?? {}).some((code) => REMEDIATION_CODES_UPLOAD_ID.includes(code));
280
- return isManualFlow && (hasMissingId || hasIdRemediationAction) ? "REQUIRED" : void 0;
281
- },
282
- idVerificationRequired: () => {
283
- return REQUIRED;
284
- },
285
- isDirectorRequiredForCountry: () => {
286
- if (getAvailableDecisionMakerRoleTypes(rootLegalEntity ? getLegalEntityCountry(rootLegalEntity) : country, matchingScenario).some((maker) => maker.roleType === DecisionMakerTypes.DIRECTOR)) return "REQUIRED";
287
- },
288
- japanSpecificField: () => {
289
- if (isJapanLocalizationEnabled(isFeatureEnabled, taskType === TaskTypes.DECISION_MAKER && rootLegalEntity?.organization?.registeredAddress.country || country)) return "REQUIRED";
290
- }
291
- });
292
- //#endregion
293
- export { individualRules as i, DECISION_MAKER_TYPES_WITH_JOBTITLE as n, SOLE_PROP_COUNTRIES as r, COUNTRIES_WHICH_USE_MULTIPLE_IDENTITY_TYPES as t };
@@ -1,46 +0,0 @@
1
- try {
2
- let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "0e38ebfc-e040-479a-9f3a-9f5f95b09328", e._sentryDebugIdIdentifier = "sentry-dbid-0e38ebfc-e040-479a-9f3a-9f5f95b09328");
4
- } catch (e) {}
5
- import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
6
- import { i as getDirectEntityAssociations } from "./entityAssociationUtil-CLBR9osP.js";
7
- import { t as DecisionMakerTypes } from "./decision-maker-type-NR4GFAeT.js";
8
- import { r as getDecisionMakerRequirements } from "./decisionMaker-M0Tm92JR.js";
9
- //#region src/utils/decisionMakerRoles.ts
10
- var getOwnDecisionMakers = (rootLegalEntity) => {
11
- if (!rootLegalEntity?.entityAssociations) return [];
12
- return rootLegalEntity.entityAssociations.filter((entityAssociation) => Object.values(DecisionMakerTypes).includes(entityAssociation.type) && entityAssociation.associatorId === rootLegalEntity.id);
13
- };
14
- var getDecisionMakers = (rootLegalEntity, companyLegalEntityId) => getDirectEntityAssociations(rootLegalEntity, companyLegalEntityId).filter((association) => Object.values(DecisionMakerTypes).includes(association.type));
15
- var getOwnSignatories = (rootLegalEntity) => getOwnDecisionMakers(rootLegalEntity).filter((decisionMaker) => decisionMaker.type === DecisionMakerTypes.SIGNATORY);
16
- var getOwnDecisionMakersLegalEntityIds = (rootLegalEntity) => getOwnDecisionMakers(rootLegalEntity).map((ea) => ea.legalEntityId).filter((id) => id !== void 0);
17
- var getDecisionMakerCount = (rootLegalEntity) => {
18
- return getOwnDecisionMakers(rootLegalEntity).reduce((decisionMakerCount, decisionMaker) => {
19
- decisionMakerCount[decisionMaker.type] = (decisionMakerCount[decisionMaker.type] ?? 0) + 1;
20
- return decisionMakerCount;
21
- }, {});
22
- };
23
- var getAllowedDecisionMakerRoles = (rootLegalEntity, taskType, scenarios) => {
24
- if (taskType === TaskTypes.TRUST_MEMBER_COMPANY_OWNER || taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER) return [DecisionMakerTypes.OWNER];
25
- const existingDecisionMakerCount = getDecisionMakerCount(rootLegalEntity);
26
- const registeredCountry = rootLegalEntity?.organization?.registeredAddress?.country;
27
- const allowedRoles = getDecisionMakerRequirements(registeredCountry, scenarios).reduce((acc, requirements) => {
28
- const { roleTypes, max } = requirements;
29
- if (roleTypes.length === 1) {
30
- const role = roleTypes[0];
31
- if ((existingDecisionMakerCount?.[role] ?? 0) < max) acc.push(role);
32
- }
33
- return acc;
34
- }, []);
35
- return [...new Set(allowedRoles)];
36
- };
37
- var hasMinRequiredDecisionMakerCount = (rootLegalEntity) => {
38
- const existingDecisionMakerCount = getDecisionMakerCount(rootLegalEntity);
39
- const registeredCountry = rootLegalEntity?.organization?.registeredAddress?.country;
40
- return getDecisionMakerRequirements(registeredCountry).every((requirements) => {
41
- const { roleTypes, min } = requirements;
42
- return roleTypes.some((role) => min ? existingDecisionMakerCount?.[role] ?? min <= 0 : true);
43
- });
44
- };
45
- //#endregion
46
- export { getOwnSignatories as a, getOwnDecisionMakersLegalEntityIds as i, getDecisionMakers as n, hasMinRequiredDecisionMakerCount as o, getOwnDecisionMakers as r, getAllowedDecisionMakerRoles as t };
@@ -1,14 +0,0 @@
1
- try {
2
- let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "be4ec6c4-c26e-490d-a7f5-cc6cf87bf0af", e._sentryDebugIdIdentifier = "sentry-dbid-be4ec6c4-c26e-490d-a7f5-cc6cf87bf0af");
4
- } catch (e) {}
5
- import { s as keysOf } from "./genUtils-Ce61IJs8.js";
6
- //#region src/utils/isEmpty.ts
7
- var isEmpty = (obj, ignoreEmptyProperties = true) => {
8
- if (obj === null || obj === void 0) return true;
9
- if (Array.isArray(obj)) return obj.length === 0;
10
- if (typeof obj !== "object") return false;
11
- return keysOf(obj).every((key) => !Object.hasOwn(obj, key) || ignoreEmptyProperties && isEmpty(obj[key], true));
12
- };
13
- //#endregion
14
- export { isEmpty as t };
@@ -1,66 +0,0 @@
1
- try {
2
- let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "51198327-b8a2-43af-8ec4-cd269289d49a", e._sentryDebugIdIdentifier = "sentry-dbid-51198327-b8a2-43af-8ec4-cd269289d49a");
4
- } catch (e) {}
5
- function mapApiScriptLocalizationToSchemaFields(localization) {
6
- const schema = {};
7
- const scriptNameInSchema = localization.script.replace("-", "");
8
- for (const [field, value] of Object.entries(localization.fields)) schema[scriptNameInSchema + field[0].toUpperCase() + field.slice(1)] = value;
9
- return schema;
10
- }
11
- /**
12
- * Given a schema and a script, takes the fields prefixed with that script and produces a {@link ScriptLocalization}.
13
- *
14
- * E.g.
15
- * ```ts
16
- * const schema = {
17
- * firstName: 'Alex',
18
- * lastName: 'Tompkins',
19
- * jaKanaFirstName: 'アレキサンダー',
20
- * jaKanaLastName: 'パトリック',
21
- * jaHaniFirstName: 'pretend this is hiragana',
22
- * jaHaniLastName: 'this too',
23
- * };
24
- *
25
- * const localization = mapSchemaFieldsToApiScriptLocalization(schema, 'jaKana');
26
- * console.log(localization);
27
- * // {
28
- * // script: 'ja-Kana',
29
- * // fields: { firstName: 'アレキサンダー', lastName: 'パトリック' },
30
- * // };
31
- * ```
32
- */
33
- function mapSchemaFieldsToApiScriptLocalization(data, script) {
34
- const fields = {};
35
- for (const [schemaField, value] of Object.entries(data)) if (schemaField.startsWith(script)) {
36
- let fieldName = schemaField.replace(script, "");
37
- fieldName = fieldName[0].toLowerCase() + fieldName.slice(1);
38
- fields[fieldName] = value;
39
- }
40
- return {
41
- script: `${script.slice(0, 2)}-${script.slice(2)}`,
42
- fields
43
- };
44
- }
45
- //#endregion
46
- //#region src/components/Shared/forms/Address/localized/jp/mapAddressLocalizationToJpAddressSchema.ts
47
- var mapAddressLocalizationToJpAddressSchema = (localization) => {
48
- if (!localization) return {};
49
- let jpAddress = {};
50
- for (const { script, fields } of localization) {
51
- const schemaFieldsFromLocalization = mapApiScriptLocalizationToSchemaFields({
52
- script,
53
- fields: {
54
- city: fields.city,
55
- address: fields.street
56
- }
57
- });
58
- jpAddress = {
59
- ...jpAddress,
60
- ...schemaFieldsFromLocalization
61
- };
62
- }
63
- return jpAddress;
64
- };
65
- //#endregion
66
- export { mapApiScriptLocalizationToSchemaFields as n, mapSchemaFieldsToApiScriptLocalization as r, mapAddressLocalizationToJpAddressSchema as t };
@@ -1,14 +0,0 @@
1
- import type { ScriptLocalization } from '../api/scriptLocalization';
2
- import type { CountryCode } from '../../../types/datasets/country-code';
3
- export interface Address {
4
- city?: string;
5
- country?: CountryCode;
6
- postalCode?: string;
7
- stateOrProvince?: string;
8
- street?: string;
9
- street2?: string;
10
- localization?: Array<ScriptLocalization<{
11
- city?: string;
12
- street?: string;
13
- }, 'ja-Hani' | 'ja-Kana'>>;
14
- }
@@ -1,5 +0,0 @@
1
- export interface BranchAllocation {
2
- adyenBranch: string;
3
- description?: string;
4
- reason?: string;
5
- }
@@ -1,15 +0,0 @@
1
- /**
2
- * These are the Company type values present in LEM (note these differ from the values present in KYC)
3
- */
4
- export declare const CompanyTypesValues: {
5
- readonly PRIVATE_COMPANY: "privateCompany";
6
- readonly PUBLIC_COMPANY: "listedPublicCompany";
7
- readonly UNLISTED_PUBLIC_COMPANY: "unlistedPublicCompany";
8
- readonly UNINCORPORATED_PARTNERSHIP: "unincorporatedPartnership";
9
- readonly INCORPORATED_PARTNERSHIP: "partnershipIncorporated";
10
- readonly INCORPORATED_ASSOCIATION: "associationIncorporated";
11
- readonly GOVERNMENTAL_ORGANIZATION: "governmentalOrganization";
12
- readonly NON_PROFIT_OR_CHARITABLE: "nonProfit";
13
- readonly SOLE_PROPRIETORSHIP: "soleProprietorship";
14
- };
15
- export type CompanyTypesValue = (typeof CompanyTypesValues)[keyof typeof CompanyTypesValues];
@@ -1,12 +0,0 @@
1
- import type { Phone } from './phone';
2
- /**
3
- * Represents customer support contact details.
4
- *
5
- * This interface defines the ways customers can reach out for questions or concerns.
6
- * These details may also appear on shopper bank statements.
7
- *
8
- */
9
- export interface CustomerSupport {
10
- phone: Phone;
11
- email: string;
12
- }
@@ -1,15 +0,0 @@
1
- import type { Currency } from '../../../types/datasets/currency';
2
- /**
3
- * @deprecated This hand-crafted interface duplicates `FinancialReportDto` from
4
- * `src/api/legalEntity/legalEntity.contract.d.ts` and should be replaced by it.
5
- * One override will be needed in a `*.types.ts` file when migrating:
6
- * - `currencyOfFinancialData` — needs narrowing from `string` to the stricter `Currency` type
7
- */
8
- export interface FinancialReport {
9
- currencyOfFinancialData?: Currency;
10
- dateOfFinancialData?: string;
11
- employeeCount?: string;
12
- balanceSheetTotal?: string;
13
- netAssets?: string;
14
- annualTurnover?: string;
15
- }
@@ -1,60 +0,0 @@
1
- import type { SetRequired } from 'type-fest';
2
- import type { ScriptLocalization } from '../api/scriptLocalization';
3
- import type { TaxReportingClassification } from '../api/tax-reporting-classification';
4
- import type { TaxIdNumberType } from '../../../components/Shared/fields/TaxInformationField/types';
5
- import type { CountryCode } from '../../../types/datasets/country-code';
6
- import type { Address } from './address';
7
- import type { BranchAllocation } from './branchAllocation';
8
- import type { CompanyTypesValue } from './company-types-value';
9
- import type { CustomerSupport } from './customerSupport';
10
- import type { FinancialReport } from './financialReport';
11
- import type { Phone } from './phone';
12
- /**
13
- * This is the organization data model present in LEM
14
- */
15
- export interface Organization {
16
- legalName: string;
17
- localization?: Array<ScriptLocalization<{
18
- legalName: string;
19
- }, 'ja-Hani' | 'ja-Kana'>>;
20
- registeredAddress: SetRequired<Address, 'country'>;
21
- countryOfGoverningLaw?: CountryCode;
22
- description?: string;
23
- doingBusinessAs?: string;
24
- doingBusinessAsAbsent?: boolean;
25
- email?: string;
26
- headOfficeIndicator?: boolean;
27
- legalFormDescription?: string;
28
- phone?: Phone;
29
- principalPlaceOfBusiness?: Address;
30
- registrationNumber?: string;
31
- registrationNumberAbsent?: boolean;
32
- residentialAddressIndicator?: boolean;
33
- stockData?: {
34
- marketIdentifier: string;
35
- stockNumber: string;
36
- tickerSymbol?: string;
37
- };
38
- taxInformation?: TaxInformation[];
39
- vatNumber?: string;
40
- vatAbsenceReason?: VatAbsenceReason;
41
- type?: CompanyTypesValue | '';
42
- financialReports?: FinancialReport[];
43
- statusOfLegalProceeding?: string;
44
- dateOfInitiationOfLegalProceeding?: string;
45
- dateOfIncorporation?: string;
46
- economicSector?: string;
47
- legalForm?: string;
48
- globalLegalEntityIdentifier?: string;
49
- eInvoicingCode?: string;
50
- support?: CustomerSupport;
51
- taxReportingClassification?: TaxReportingClassification;
52
- branchAllocation?: BranchAllocation;
53
- }
54
- export type VatAbsenceReason = 'industryExemption' | 'belowTaxThreshold' | 'countryWithoutVatOrGstSystem' | '';
55
- export type TaxInformation = {
56
- country: CountryCode;
57
- number?: string;
58
- type?: TaxIdNumberType;
59
- numberAbsent?: boolean;
60
- };
@@ -1,24 +0,0 @@
1
- try {
2
- let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "7bbcbbcd-5935-4626-97b4-2b208e820706", e._sentryDebugIdIdentifier = "sentry-dbid-7bbcbbcd-5935-4626-97b4-2b208e820706");
4
- } catch (e) {}
5
- import { r as httpPost, s as useApiContext } from "./http-DsJtugN1.js";
6
- import { useMutation } from "@tanstack/preact-query";
7
- //#region src/api/createLegalEntity/useCreateLegalEntity.ts
8
- var createLegalEntity = async (legalEntityId, baseUrl, data) => {
9
- return httpPost({
10
- baseUrl,
11
- path: `legalEntities/${legalEntityId}/create`
12
- }, data);
13
- };
14
- var useCreateLegalEntity = (options) => {
15
- const { rootLegalEntityId, baseUrl } = useApiContext();
16
- return useMutation({
17
- mutationFn: (payload) => {
18
- return createLegalEntity(rootLegalEntityId.value, baseUrl.value, payload);
19
- },
20
- ...options
21
- });
22
- };
23
- //#endregion
24
- export { useCreateLegalEntity as t };
@@ -1,29 +0,0 @@
1
- try {
2
- let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "3b0e8947-1d97-4e8b-9b54-a6335d19d089", e._sentryDebugIdIdentifier = "sentry-dbid-3b0e8947-1d97-4e8b-9b54-a6335d19d089");
4
- } catch (e) {}
5
- import { r as httpPost, s as useApiContext } from "./http-DsJtugN1.js";
6
- import { n as useInvalidateRootLegalEntity } from "./useId-BMocIuPK.js";
7
- import { useMutation, useQueryClient } from "@tanstack/preact-query";
8
- //#region src/api/legalEntity/useUpdateLegalEntity.ts
9
- var updateLegalEntity = async (rootLegalEntityId, baseUrl, data) => {
10
- return httpPost({
11
- baseUrl,
12
- path: `legalEntities/${rootLegalEntityId}`
13
- }, data);
14
- };
15
- var useUpdateLegalEntity = (options) => {
16
- const { rootLegalEntityId, baseUrl } = useApiContext();
17
- const invalidateRootLegalEntity = useInvalidateRootLegalEntity();
18
- const queryClient = useQueryClient();
19
- return useMutation({
20
- mutationFn: (payload) => updateLegalEntity(rootLegalEntityId.value, baseUrl.value, payload),
21
- onSuccess: async (response, payload) => {
22
- if (response.id === rootLegalEntityId.value) await invalidateRootLegalEntity();
23
- else queryClient.setQueryData(["legalEntity", payload.id], response);
24
- },
25
- ...options
26
- });
27
- };
28
- //#endregion
29
- export { useUpdateLegalEntity as t };
@@ -1,46 +0,0 @@
1
- try {
2
- let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "ce7bb63d-f3e8-4fae-ad79-27a267ba2ffa", e._sentryDebugIdIdentifier = "sentry-dbid-ce7bb63d-f3e8-4fae-ad79-27a267ba2ffa");
4
- } catch (e) {}
5
- import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
6
- //#region src/components/Individual/forms/IdDocumentUpload/utils.ts
7
- function getLocalizedIdDocumentTypeOptions(country) {
8
- switch (country) {
9
- case CountryCodes.Japan: return [
10
- {
11
- id: "driversLicense",
12
- name: "driversLicense",
13
- hasBackPage: true
14
- },
15
- {
16
- id: "passport",
17
- name: "passport",
18
- hasBackPage: false
19
- },
20
- {
21
- id: "identityCard",
22
- name: "identityCard__JP",
23
- hasBackPage: true
24
- }
25
- ];
26
- default: return [
27
- {
28
- id: "driversLicense",
29
- name: "driversLicense",
30
- hasBackPage: true
31
- },
32
- {
33
- id: "passport",
34
- name: "passport",
35
- hasBackPage: false
36
- },
37
- {
38
- id: "identityCard",
39
- name: "identityCard",
40
- hasBackPage: true
41
- }
42
- ];
43
- }
44
- }
45
- //#endregion
46
- export { getLocalizedIdDocumentTypeOptions as t };