@adyen/kyc-components 4.20.3 → 4.21.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AcceptTermsOfServiceWorkflow-DvXLuBUP.js +28 -0
- package/dist/{Accordion-BWdAGMRb.js → Accordion-DC7Iuj-J.js} +3 -2
- package/dist/{AccountSetupRejected-BAnMTKtK.js → AccountSetupRejected-Bme0n9Ry.js} +2 -2
- package/dist/AdaptiveWorkflow-DeyDJH93.js +210 -0
- package/dist/{AdaptiveWorkflowComponent-wOE8D9cu.js → AdaptiveWorkflowComponent-CjTr9flK.js} +35 -34
- package/dist/{AddressField-BgdOTaxA.js → AddressField-Dwiy0Lp9.js} +13 -79
- package/dist/{Avatar-CeZIQS8n.js → Avatar-BKTdqNpO.js} +2 -2
- package/dist/{BusinessFinancingDropin-By68ymM3.js → BusinessFinancingDropin-BJyuZ8dK.js} +155 -36
- package/dist/{BusinessFinancingPage-XGqZnfJA.js → BusinessFinancingPage-C3DpzYDs.js} +34 -34
- package/dist/{BusinessRegistrationNumberField-BEMTWqsw.js → BusinessRegistrationNumberField-Bvq9kBeC.js} +28 -133
- package/dist/BusinessRegistrationNumberFieldGroup-DekPmMPr.js +172 -0
- package/dist/{BusinessTypeSelectionPage-D6MZOp0S.js → BusinessTypeSelectionPage-2DBhHIV3.js} +19 -16
- package/dist/{Button-Cm7cT6BX.js → Button-DSD_afG_.js} +4 -85
- package/dist/{Checkbox-faFUul66.js → Checkbox-CoYc9mYJ.js} +2 -2
- package/dist/{CompanyRegistrationNumberTypeSelector-BZou9I4l.js → CompanyRegistrationNumberTypeSelector-Cw_MwFNk.js} +6 -8
- package/dist/ComponentGroup-bPTim8ap.js +32 -0
- package/dist/{ContactDetails-DEytFGKP.js → ContactDetails-1U7gtwcT.js} +8 -9
- package/dist/{ContextGuidance-BwO0HQqx.js → ContextGuidance-Crh1eg4L.js} +3 -3
- package/dist/{Currency-BAx_Uo5W.js → Currency-C4CO9Z4U.js} +9 -8
- package/dist/{CustomerSupport-D0ufIpy-.js → CustomerSupport-toFotwt6.js} +16 -15
- package/dist/{DataConflictsModal-BEYWyGQl.js → DataConflictsModal-CL635lXr.js} +10 -9
- package/dist/{DebugModal-wlvutaIe.js → DebugModal-DjM4D9y0.js} +13 -13
- package/dist/{DecisionMakerDetails-C-Zl97-L.js → DecisionMakerDetails-Cgw6FTX3.js} +59 -22
- package/dist/{DecisionMakerDetailsPage-CJy_C9vF.js → DecisionMakerDetailsPage-Dotl9hm4.js} +35 -17
- package/dist/{DecisionMakers-CJhpy3hL.js → DecisionMakers-Bb1k-3jK.js} +22 -20
- package/dist/{Dropzone-tCvWDUb_.js → Dropzone-De-_68uO.js} +9 -7
- package/dist/{EmbeddedStatus-uz3Ivsyw.js → EmbeddedStatus-CkSg9-9r.js} +5 -4
- package/dist/{EndStateLayout-BUK64Vqu.js → EndStateLayout-CarfWtTC.js} +4 -3
- package/dist/{EntityAssociation-B5xzdKZ7.js → EntityAssociation-fyXv0iPm.js} +7 -7
- package/dist/{ErrorPanel-DrMirhyf.js → ErrorPanel-Deuo7Len.js} +6 -6
- package/dist/GlobalEntryModal-5lEeqSu-.js +589 -0
- package/dist/{GlobalEntryPage-kke7lpsi.js → GlobalEntryPage-BMk0JcPT.js} +35 -34
- package/dist/Icon-CurE93CX.js +175 -0
- package/dist/{validateExtractionResult-BAj3G_p_.js → IdentityNumber-d4r6gTEr.js} +7 -344
- package/dist/IdentityNumberFieldGroup-BjFhY6v3.js +57 -0
- package/dist/IdentityScreeningWorkflow-CPpI04Cl.js +307 -0
- package/dist/{Image-8SOcICah.js → Image-D82terx4.js} +2 -2
- package/dist/{Individual.rules-C-6V0eRk.js → Individual.rules-YSORZ1Ud.js} +9 -10
- package/dist/{IndividualDropin-CC3-AIiO.js → IndividualDropin-DHUs3srO.js} +86 -82
- package/dist/IndustryCodeFieldGroup-DZUq90Hc.js +188 -0
- package/dist/{InputDate-DDVX2D-5.js → InputDate-BSoTKQgE.js} +2 -2
- package/dist/{InputText-Cf9ccCaj.js → InputText-CQUZ2_58.js} +41 -6
- package/dist/{Introduction-CTYHDxDW.js → Introduction-QQJUBGqW.js} +9 -8
- package/dist/{InvitedDecisionMakerComponent-BdySOH9B.js → InvitedDecisionMakerComponent-C9Sr5OVw.js} +48 -46
- package/dist/{JpAddressFields-CrBmLCtM.js → JpAddressFields-C2M1PEEu.js} +51 -11
- package/dist/{LegalCompanyNameField-DBp71z3A.js → LegalCompanyNameField-Ccmj94Cp.js} +5 -5
- package/dist/LegalName-DAhyDtZO.js +33 -0
- package/dist/{LegalRepresentativeDetailsPage-VN50UtKG.js → LegalRepresentativeDetailsPage-BWDUzLAO.js} +11 -11
- package/dist/{Link-B7RA2gSt.js → Link-B-gN0d8l.js} +2 -2
- package/dist/{ListItem-Cy46BXUv.js → ListItem-BGdnopqb.js} +3 -3
- package/dist/Loader-BEpMlKm2.js +92 -0
- package/dist/{Modal-nylR9F4X.js → Modal-SdFoz5L1.js} +3 -3
- package/dist/{Name-hxEchkBU.js → Name-NSt7wAJx.js} +5 -5
- package/dist/{NewSummary-BoZKS3an.js → NewSummary-Bs2oSxfd.js} +10 -9
- package/dist/{PatriotActDisclosure-DoR57O_a.js → PatriotActDisclosure-f5X4wFJ7.js} +110 -222
- package/dist/{PayoutDetailsDropin-Dptk-AWq.js → PayoutDetailsDropin-L7lwM7Lx.js} +260 -172
- package/dist/{PayoutDetailsPage-G9U8ZN76.js → PayoutDetailsPage-0-Kh-Us8.js} +9 -9
- package/dist/{CountryField-CqJ_jC11.js → RadioGroup-DvcMPdV_.js} +168 -13
- package/dist/{Review-BFrPwvnk.js → Review-CWhmiMyu.js} +8 -8
- package/dist/RootBusinessDetailsPage-cC5TaC3R.js +68 -0
- package/dist/{RootBusinessLinesPage-CP7J0yeT.js → RootBusinessLinesPage-CaUWOtl2.js} +34 -30
- package/dist/{RootIndividualDetailsPage-BnDa9cNx.js → RootIndividualDetailsPage-Dko5-jkQ.js} +12 -12
- package/dist/{Select-Bl58NHvM.js → Select-DuIuKg3u.js} +11 -8
- package/dist/{useSettingsContext-Bpf4UqRT.js → SettingsContext-Dl-9WWCI.js} +2 -8
- package/dist/{SignPCIComponent-BA7DZ4NN.js → SignPCIComponent-tcbQ9ywv.js} +44 -43
- package/dist/{SingpassSelection-Dvu6g9iG.js → SingpassSelection-DiXuMp_4.js} +7 -6
- package/dist/SoleProprietorshipPage-D7C77YuZ.js +70 -0
- package/dist/{SourceOfFundsPage-C-s6bb2S.js → SourceOfFundsPage-m80VKcKb.js} +40 -38
- package/dist/SourceOfFundsWorkflow-BiwO_slV.js +28 -0
- package/dist/{utils-B2150fIA.js → StateField-BLKrxMHo.js} +82 -8
- package/dist/Step-BmMwlRAP.js +195 -0
- package/dist/{StructuredList-C2fNU0uz.js → StructuredList-ByaWQPt4.js} +6 -5
- package/dist/Task-D56Ov4hE.js +129 -0
- package/dist/TaskGroup-Cb0LMscl.js +46 -0
- package/dist/{TaskListItem-BWaVqmtJ.js → TaskListItem-ChTNrH8o.js} +12 -58
- package/dist/TaskStepperContextProvider-DuM9tlet.js +81 -0
- package/dist/{TaskVerificationStatus-DMj8rsZ_.js → TaskVerificationStatus-DCfFNRJc.js} +4 -3
- package/dist/TaxInformationFieldGroup-DTRRPgsO.js +288 -0
- package/dist/{TaxReportingDropin-ZK7ZJdPp.js → TaxReportingDropin-BDMleLS7.js} +23 -21
- package/dist/TaxReportingWorkflow-DDUwvJUg.js +28 -0
- package/dist/{TermsOfServiceManagement-B_kPOWFg.js → TermsOfServiceManagement-D25wc-rD.js} +49 -47
- package/dist/{TextArea-CoS-i-FF.js → TextArea-DONjpYoD.js} +7 -13
- package/dist/{TrustDetailsPage-DgklXUzD.js → TrustDetailsPage-eCuV5_H9.js} +433 -442
- package/dist/TrustMemberCompanyPage-B5ZvuGJU.js +109 -0
- package/dist/{TrustMemberIndividualPage-CUqnRk8R.js → TrustMemberIndividualPage-D68huyWG.js} +12 -12
- package/dist/{TrustMemberRoleAndTypePage-B0k2Q7Vd.js → TrustMemberRoleAndTypePage-Dzi7gUQJ.js} +48 -47
- package/dist/{TrustMembersOverview-B3K-gYQC.js → TrustMembersOverview-DPOZrxaa.js} +42 -40
- package/dist/Typography-CAc_f5Iq.js +80 -0
- package/dist/UboTaskItem-BTg9SYx6.js +115 -0
- package/dist/{UnincorporatedPartnershipIndividualPage-BLeo-3Dg.js → UnincorporatedPartnershipIndividualPage-CiloYr6z.js} +11 -11
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-D_vDaZDa.js → UnincorporatedPartnershipMemberCompanyPage-DFToIXPu.js} +36 -36
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-ZGrk1pwS.js → UnincorporatedPartnershipMemberRoleAndTypePage-B1zDZaTe.js} +12 -12
- package/dist/{UnincorporatedPartnershipMembersOverview-D3P6RnSe.js → UnincorporatedPartnershipMembersOverview-BkoW2TeI.js} +10 -9
- package/dist/{VerificationErrorAlert-CZgXhF8q.js → VerificationErrorAlert-OvA_tFEA.js} +5 -5
- package/dist/Workflow-BR6It8DD.js +228 -0
- package/dist/{accountHolderUtils-CwDO1erJ.js → accountHolderUtils-BWP2t1n2.js} +3 -3
- package/dist/adyen-business-financing.js +35 -35
- package/dist/adyen-individual-configuration.js +37 -37
- package/dist/adyen-individual-status.js +34 -34
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +67 -63
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +6 -6
- package/dist/adyen-transfer-instrument-configuration.js +33 -33
- package/dist/adyen-transfer-instrument-management.js +44 -41
- package/dist/adyen-verification-status.js +8 -6
- package/dist/{utils-CIAOij_i.js → bafinUtils-BPvihvBP.js} +684 -167
- package/dist/{bg-BG-qQc6pN4K.js → bg-BG-BeFIiwVZ.js} +3 -1
- package/dist/bg-BG-CXqERnFH.js +7 -0
- package/dist/bg-BG-D4mSRREu.js +7 -0
- package/dist/{bg-BG-Smu9r9Kp.js → bg-BG-DpSUitm0.js} +12 -2
- package/dist/{constants-4cwXR749.js → constants-2R-DUr5z.js} +5 -5
- package/dist/{countries-CPj8hkLs.js → countries-BE4iGVAo.js} +1 -1
- package/dist/{country-IYuKDSdC.js → country-DkgapJ4w.js} +2 -2
- package/dist/cs-CZ-C_VaBRMS.js +23 -0
- package/dist/cs-CZ-DAXMHrMi.js +7 -0
- package/dist/{cs-CZ-Jsmhr_B3.js → cs-CZ-DHfA1xjQ.js} +3 -1
- package/dist/cs-CZ-DySBJFlc.js +7 -0
- package/dist/{da-DK-CXZXQspY.js → da-DK--DlccBc0.js} +3 -1
- package/dist/da-DK-BVaEiAWd.js +7 -0
- package/dist/da-DK-BfaKncp5.js +23 -0
- package/dist/da-DK-BuvKW6Sq.js +7 -0
- package/dist/de-DE-BQaqplTp.js +7 -0
- package/dist/{de-DE-BRJ0jBty.js → de-DE-B_iHAkLT.js} +3 -1
- package/dist/de-DE-BqujMxXu.js +7 -0
- package/dist/de-DE-GUfA18ps.js +23 -0
- package/dist/{decisionMaker-Dt53wKqO.js → decisionMaker-M0Tm92JR.js} +1 -1
- package/dist/{decisionMakerRoles-CTy0faoW.js → decisionMakerRoles-DbKnutwk.js} +3 -3
- package/dist/el-GR-B1NjHThy.js +7 -0
- package/dist/el-GR-C6jyW53I.js +7 -0
- package/dist/{el-GR-DEBvBgI-.js → el-GR-CJqHd-CD.js} +12 -2
- package/dist/{el-GR-BMGYrO4V.js → el-GR-D09thseu.js} +3 -1
- package/dist/en-US-C3i5Oge2.js +7 -0
- package/dist/en-US-CJPD8qHc.js +7 -0
- package/dist/{en-US-BFM81i9K.js → en-US-CO9xzDL5.js} +1 -4
- package/dist/en-US-D4NrsDmW.js +7 -0
- package/dist/{en-US.instructions-pRLq5gXB.js → en-US.instructions-CqF1qVJV.js} +2 -1
- package/dist/{entityAssociationUtil-DLXInibJ.js → entityAssociationUtil-CLBR9osP.js} +1 -1
- package/dist/{error-CSOAG0Cl.js → error-BAlndbwJ.js} +3 -3
- package/dist/es-ES-BM5RTwb7.js +7 -0
- package/dist/{es-ES-pt4yy_U2.js → es-ES-Bpxn6XGC.js} +3 -1
- package/dist/es-ES-C64v4NJD.js +7 -0
- package/dist/es-ES-IobfbI71.js +23 -0
- package/dist/es-LA--YYwwbVo.js +23 -0
- package/dist/es-LA-B7pY2dp1.js +7 -0
- package/dist/es-LA-CcMAcJ7u.js +7 -0
- package/dist/{es-LA-CGrMi4rR.js → es-LA-CjxlB1WZ.js} +3 -1
- package/dist/et-EE-DqYCOl2Y.js +23 -0
- package/dist/{et-EE-dDMeDiTJ.js → et-EE-Dtc7YYb4.js} +3 -1
- package/dist/{et-EE-BGpsJPjk.js → et-EE-FtKFvr3u.js} +2 -2
- package/dist/{et-EE-OAYKzRjG.js → et-EE-wDQx9HoZ.js} +2 -2
- package/dist/{fi-FI-iRb7nS7X.js → fi-FI-DBhYlO4B.js} +3 -1
- package/dist/{fi-FI-BTG87BwH.js → fi-FI-DSCFTLoG.js} +12 -2
- package/dist/fi-FI-KMP96Qxc.js +7 -0
- package/dist/fi-FI-SFw2grVp.js +7 -0
- package/dist/{MaskedInput-BQ_cTsL0.js → form-rules-BNF4Yysw.js} +378 -14
- package/dist/formHook-Dgi2CgbT.js +24 -0
- package/dist/{formatValidationError-B9NRahV5.js → formatValidationError-Cbkto-0l.js} +2 -2
- package/dist/fr-FR-C8IPWMDL.js +7 -0
- package/dist/fr-FR-Dsh0Vb20.js +7 -0
- package/dist/{fr-FR-DUrcyeOg.js → fr-FR-N8UDU_0Y.js} +3 -1
- package/dist/fr-FR-ZWnkRO7z.js +23 -0
- package/dist/{AnalyticsContext-BnRQ9H1u.js → genUtils-Ce61IJs8.js} +2 -17
- package/dist/{getLegalEntityCountry-BHh7Ux8v.js → getLegalEntityCountry-CNE5uei8.js} +1 -1
- package/dist/{getName-C5jqdkJg.js → getName-s7qmFean.js} +2 -2
- package/dist/{getProblemsForEntity-DStlTvE-.js → getProblemsForEntity-CTxd78-9.js} +4 -4
- package/dist/{getTrustedDecisionMakers-CAbhvydj.js → getTrustedDecisionMakers-DWVtW7JE.js} +2 -2
- package/dist/hr-HR-2a3ywU0e.js +23 -0
- package/dist/hr-HR-COvc9TZy.js +7 -0
- package/dist/hr-HR-Cqgf9B0v.js +7 -0
- package/dist/{hr-HR-LnDb18bf.js → hr-HR-GLRwxTIZ.js} +3 -1
- package/dist/{http-D6AdUBhO.js → http-DsJtugN1.js} +2 -2
- package/dist/hu-HU-BOXBLK1a.js +23 -0
- package/dist/{hu-HU-VLUIAFMp.js → hu-HU-DIjDe5aa.js} +2 -2
- package/dist/{hu-HU-D9Avt-9f.js → hu-HU-DyM1X3r6.js} +2 -2
- package/dist/{hu-HU-Cc7wqn6A.js → hu-HU-s1MKqwI4.js} +3 -1
- package/dist/{isEmpty-MyMko24J.js → isEmpty-DD8Insy0.js} +2 -2
- package/dist/{it-IT-BPA_Upt_.js → it-IT-2reNk09A.js} +3 -1
- package/dist/it-IT-BKTDLRBT.js +7 -0
- package/dist/it-IT-Dj2NtH7G.js +23 -0
- package/dist/it-IT-xXO07yyz.js +7 -0
- package/dist/{ja-JP-CYb1SAoz.js → ja-JP-Bf97gKqg.js} +3 -1
- package/dist/ja-JP-BhHK_ru2.js +7 -0
- package/dist/ja-JP-DbLRpEVj.js +7 -0
- package/dist/{ja-JP-Yi2wExJE.js → ja-JP-lXTbRXBb.js} +12 -2
- package/dist/{localizeDateString-D-MlYN4V.js → localizeDateString-Dxlqr4rL.js} +2 -2
- package/dist/logger-Z8AeTE4x.js +29 -0
- package/dist/{lt-LT-B9Nm7OZQ.js → lt-LT-BUgsY7cD.js} +3 -1
- package/dist/lt-LT-Be3q6tyu.js +7 -0
- package/dist/lt-LT-Btr5el2q.js +7 -0
- package/dist/lt-LT-COUN4qC5.js +23 -0
- package/dist/lv-LV-8wOWTo3r.js +7 -0
- package/dist/{lv-LV-DkjsE74u.js → lv-LV-BpniO6xp.js} +3 -1
- package/dist/lv-LV-DCeyOqHY.js +7 -0
- package/dist/lv-LV-DKbvF9t_.js +23 -0
- package/dist/{mapExistingFile-LvvzPjnk.js → mapExistingFile-R6-FnjjY.js} +2 -2
- package/dist/{mapJpAddressSchemaToAddressLocalizations-De5AnfAt.js → mapJpAddressSchemaToAddressLocalizations-BEgqt-ZQ.js} +3 -3
- package/dist/{mapLegalEntityToIndividualSchema-ByNJpSx9.js → mapLegalEntityToIndividualSchema-DGiQtWMQ.js} +10 -9
- package/dist/{mapTransferInstrumentToPayoutAccount-cKBtK0Qx.js → mapTransferInstrumentToPayoutAccount-D-RdVquH.js} +3 -3
- package/dist/nl-NL-CdHkQcOS.js +7 -0
- package/dist/nl-NL-CtK4OR3t.js +23 -0
- package/dist/nl-NL-Dyb3tkBi.js +7 -0
- package/dist/{nl-NL-BtdPxlFm.js → nl-NL-_B3Ey_x1.js} +3 -1
- package/dist/no-NO-B-xCUkf4.js +7 -0
- package/dist/no-NO-CxZumo2p.js +23 -0
- package/dist/{no-NO-BIhMgC99.js → no-NO-CytzrDfA.js} +3 -1
- package/dist/no-NO-DXDddmYv.js +7 -0
- package/dist/pl-PL-CBwRmIu5.js +7 -0
- package/dist/pl-PL-Cc09pXO8.js +7 -0
- package/dist/pl-PL-Csv1Lg5y.js +23 -0
- package/dist/{pl-PL-BT6NmGgO.js → pl-PL-DLBeIbY5.js} +3 -1
- package/dist/{processCapabilities-BSpmJOEd.js → processCapabilities-uXoRmB5x.js} +2 -2
- package/dist/{processValidationErrors-DP_eetOL.js → processValidationErrors-B2Yvt5KJ.js} +3 -3
- package/dist/{pt-BR-B0SUw4uu.js → pt-BR-Cf5Jif3w.js} +3 -1
- package/dist/pt-BR-DA4PVtVa2.js +7 -0
- package/dist/pt-BR-IBsCApUj.js +23 -0
- package/dist/pt-BR-hMhyqixD.js +7 -0
- package/dist/pt-PT-CYKk0WDI.js +23 -0
- package/dist/{pt-PT-KikTTc5A.js → pt-PT-Cg7oMqTO.js} +3 -1
- package/dist/pt-PT-D2qX_lOd.js +7 -0
- package/dist/pt-PT-QU0CQs-d.js +7 -0
- package/dist/{resolveEnvironment-CcqxJHLP.js → resolveEnvironment-C5lXxn2H.js} +68 -46
- package/dist/ro-RO-23qEGblz.js +23 -0
- package/dist/ro-RO-CQjOM8e-.js +7 -0
- package/dist/ro-RO-DNye-gMC.js +7 -0
- package/dist/{ro-RO-DajmyI4j.js → ro-RO-UHWXt9rv.js} +3 -1
- package/dist/sk-SK-2jlbtz2r.js +7 -0
- package/dist/{sk-SK-DJWcs0qJ.js → sk-SK-BQHhBpDH.js} +3 -1
- package/dist/sk-SK-CwbBfCsU.js +7 -0
- package/dist/sk-SK-D8j8B4ng.js +23 -0
- package/dist/sl-SI-333ryFnM.js +23 -0
- package/dist/sl-SI-9XdXVgB8.js +7 -0
- package/dist/{sl-SI-C_QeUL6t.js → sl-SI-CTrggdef.js} +3 -1
- package/dist/sl-SI-Cyx0QtxG.js +7 -0
- package/dist/style.css +693 -672
- package/dist/styles-DYaAeu4q.js +693 -672
- package/dist/{sv-SE-D3MOTV-T.js → sv-SE-Bk55FXGN.js} +3 -1
- package/dist/sv-SE-CqhSdYBe.js +7 -0
- package/dist/sv-SE-CwsP7bTA.js +23 -0
- package/dist/sv-SE-kbf3zbjX.js +7 -0
- package/dist/{translation-DH4IlMCP.js → translation-BOm4lmPx.js} +3 -271
- package/dist/types/adaptiveWorkflow/AdaptiveWorkflow.d.ts +5 -2
- package/dist/types/adaptiveWorkflow/component-registry.d.ts +32 -39
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/BusinessRegistrationNumberFieldGroup.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/ExemptedFromRegistrationNumberField.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/RegistrationNumberInputField.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/RegistrationNumberTypeSelectorField.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/IdentityNumber/IdentityNumberFieldGroup.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Fields/IndustryCode/IndustryCodeFieldGroup.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Fields/LegalName.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/ExemptedFromTaxField.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxIdNumberInputField.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxIdTypeSelectorField.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxInformationFieldGroup.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Layout/DynamicForm/{useCustomerDataV2.d.ts → useCustomerData.d.ts} +4 -9
- package/dist/types/adaptiveWorkflow/components/Layout/Steps/IdentityScreeningWorkflow/IdentityScreening.d.ts +19 -0
- package/dist/types/adaptiveWorkflow/components/Layout/Steps/{IdentityScreeningWorkflow.d.ts → IdentityScreeningWorkflow/IdentityScreeningWorkflow.d.ts} +1 -1
- package/dist/types/adaptiveWorkflow/components/Layout/Steps/Step/contextMap.d.ts +8 -1
- package/dist/types/adaptiveWorkflow/components/Layout/Task/contextMap.d.ts +9 -1
- package/dist/types/adaptiveWorkflow/components/Layout/TaskGroup/contextMap.d.ts +8 -1
- package/dist/types/adaptiveWorkflow/components/Layout/Workflow/Workflow.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/{WorkflowEndState → Layout/Workflow/WorkflowEndState}/WorkflowEndState.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/{WorkflowHeading → Layout/Workflow/WorkflowHeading}/WorkflowHeading.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/NodeRenderer.d.ts +4 -5
- package/dist/types/adaptiveWorkflow/components/types.d.ts +4 -108
- package/dist/types/{context → adaptiveWorkflow/context}/WorkflowContext/WorkflowContext.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/formHook.d.ts +2 -2
- package/dist/types/api/adaptive/adaptiveWorkflow.types.d.ts +2 -3
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutSummary.d.ts +14 -0
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +2 -1
- package/dist/types/components/Business/forms/rules.constants.d.ts +0 -17
- package/dist/types/components/Business/utils/utils.d.ts +0 -1
- package/dist/types/components/GlobalEntry/constants.d.ts +0 -22
- package/dist/types/components/GlobalEntry/fields/EntitySetupField/EntitySetupField.d.ts +2 -1
- package/dist/types/components/GlobalEntry/fields/EntitySetupField/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/PaperworkQuestionnaire.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/UnincorporatedOrganizationTypeField/UnincorporatedOrganizationTypeField.d.ts +2 -1
- package/dist/types/components/GlobalEntry/fields/UnincorporatedOrganizationTypeField/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/forms/EntityInformation/EntityInformation.d.ts +4 -1
- package/dist/types/components/GlobalEntry/forms/EntityInformation/types.d.ts +2 -1
- package/dist/types/components/GlobalEntry/forms/RegistrationInformation/RegistrationInformation.d.ts +8 -2
- package/dist/types/components/GlobalEntry/forms/RegistrationInformation/types.d.ts +5 -1
- package/dist/types/components/GlobalEntry/rules.d.ts +23 -0
- package/dist/types/components/GlobalEntry/tasks/GlobalEntry.d.ts +6 -1
- package/dist/types/components/GlobalEntry/utils.d.ts +3 -0
- package/dist/types/components/GlobalEntry/validate.d.ts +9 -1
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +4 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +7 -2
- package/dist/types/components/Shared/SummarySection/SummarySection.d.ts +1 -0
- package/dist/types/components/Shared/VerifiedWith/VerifiedWith.d.ts +7 -0
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +0 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/CountryOfGoverningLawField.d.ts +1 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/constants.d.ts +2 -0
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/StateField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/types.d.ts +3 -2
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +4 -0
- package/dist/types/components/Shared/forms/Address/AddressFields.d.ts +1 -2
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/Trust.d.ts +13 -0
- package/dist/types/components/Trust/forms/Trust/form-ids.d.ts +2 -0
- package/dist/types/components/Trust/{tasks/TrustDropin/Trust.d.ts → forms/Trust/forms.d.ts} +3 -4
- package/dist/types/components/Trust/forms/Trust/types.d.ts +1 -20
- package/dist/types/components/Trust/forms/TrustRegistrationDetails/TrustRegistrationDetails.d.ts +2 -3
- package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +2 -2
- package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +3 -3
- package/dist/types/components/Trust/tasks/TrustDropin/TrustDropin.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustDropin/types.d.ts +15 -0
- package/dist/types/router/routeConfig.d.ts +1 -1
- package/dist/types/utils/businessUtils.d.ts +19 -0
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/{types-BLWT7WnU.js → types-Ai_80DXu.js} +1 -1
- package/dist/{types-B4LsyK73.js → types-BeveNAZK.js} +1 -1
- package/dist/{types-Bm4RGrSI.js → types-CdxNdaM6.js} +1 -1
- package/dist/useAdaptiveWorkflow-DsQESk9f.js +28 -0
- package/dist/{useAssociatedLegalEntity-CzQlHWXy.js → useAssociatedLegalEntity-BdcoiUby.js} +3 -3
- package/dist/{useBusinessDetailsData-BWapORXF.js → useBusinessDetailsData-BKT3IfpU.js} +88 -183
- package/dist/{useBusinessLines-D-rc-Z6G.js → useBusinessLines-BhSN6qCH.js} +2 -2
- package/dist/{useCanSeeIntroduction-Dk5qC6nk.js → useCanSeeIntroduction-DWsC-Urc.js} +4 -5
- package/dist/{useCreateLegalEntity-Ctdmk3Ky.js → useCreateLegalEntity-CYZd_62a.js} +2 -2
- package/dist/{useDataMissingRemediations-DNZ_UDbI.js → useDataMissingRemediations-Cd-jucOu.js} +3 -3
- package/dist/{useForm-CHswd6lC.js → useForm-DV-XkAG5.js} +5 -5
- package/dist/useHideTaskStepper-MdPt1zI8.js +25 -0
- package/dist/{useId-f0koANuV.js → useId-BsNe9jOR.js} +4 -4
- package/dist/useIndustryCodes-uAj90IyS.js +32 -0
- package/dist/{useLegalEntity-DR51Q4mE.js → useLegalEntity-QQXN6YOm.js} +2 -2
- package/dist/{useNavigate-6p1Qv-lq.js → useNavigate-Dgq-_gvF.js} +33 -33
- package/dist/{useOnboardingStatus-op5TyMUR.js → useOnboardingStatus-CsGUjkm-.js} +2 -2
- package/dist/{usePciQuestionnaireList-BZsgbrTy.js → usePciQuestionnaireList-CFNJD8pS.js} +2 -2
- package/dist/{useSalesChannels-Mi6DmHab.js → useSalesChannels-BBdfIEYx.js} +5 -5
- package/dist/{useScenarios-Bne3C0PV.js → useScenarios-CGcmXgJv.js} +3 -3
- package/dist/{useTaskLandedEvent-C7fcguXK.js → useTaskLandedEvent-Ceflt6Ba.js} +2 -2
- package/dist/{useTaskStatus-Be6XyW54.js → useTaskStatus-CgrhdaE_.js} +2 -2
- package/dist/useTaskStepperContext-BIEhTt1x.js +15 -0
- package/dist/{useTermsOfServiceStatus-D0NHUKl_.js → useTermsOfServiceStatus-DbJDklA2.js} +2 -2
- package/dist/{useTrustMembers-CVDndW8J.js → useTrustMembers-BRyiDXJr.js} +6 -6
- package/dist/{useUnincorporatedPartnershipMembers-C5CNWe_U.js → useUnincorporatedPartnershipMembers-00l8eNLk.js} +5 -5
- package/dist/{useUpdateBusinessLines-D6D9DAn1.js → useUpdateBusinessLines-DCKYTzxd.js} +4 -29
- package/dist/{useUpdateLegalEntity-BEZu238V.js → useUpdateLegalEntity-C0U3rIhc.js} +3 -3
- package/dist/{utils-mIdxBeix.js → utils-7UVBZ1Oy.js} +8 -8
- package/dist/{utils-DwujAUJC.js → utils-Br7Ah3uy.js} +1 -1
- package/dist/utils-CFaGY5aD.js +52 -0
- package/dist/{validate-BNu91k9j.js → validate-COZwjFYQ.js} +10 -6
- package/dist/validate-D4VQ3msP.js +125 -0
- package/dist/{validate-C-08Q88R.js → validate-NJXha9gC.js} +1 -1
- package/dist/{validate-BUiBDGcK.js → validate-lQWcaLZr.js} +4 -4
- package/dist/validateExtractionResult-BnSV5Z6F.js +343 -0
- package/dist/{validationError-CipBbukM.js → validationError-DprLeGG3.js} +2 -2
- package/package.json +2 -2
- package/dist/AdaptiveWorkflow-DcNkLVei.js +0 -5112
- package/dist/Address-CX1D0_2b.js +0 -133
- package/dist/GlobalEntryModal-BdnqANLh.js +0 -353
- package/dist/JpAddress-DxPC1_Og.js +0 -284
- package/dist/JpAddress.module-BBUPrd-N.js +0 -48
- package/dist/RadioGroup-DcR1jQy7.js +0 -84
- package/dist/RootBusinessDetailsPage-C0F7j2XS.js +0 -68
- package/dist/SoleProprietorshipPage-SrAcCnvl.js +0 -70
- package/dist/TrustMemberCompanyPage-D6iTASaK.js +0 -109
- package/dist/bafinUtils-BnYNUBzu.js +0 -276
- package/dist/bg-BG-BkIvSbsH.js +0 -7
- package/dist/bg-BG-Bmveyt6S.js +0 -7
- package/dist/cs-CZ-BQ5B0-Kt.js +0 -13
- package/dist/cs-CZ-CPvgcrDs.js +0 -7
- package/dist/cs-CZ-D5CQd_YI.js +0 -7
- package/dist/da-DK-Bl0-8FN4.js +0 -7
- package/dist/da-DK-CXAIXO3c.js +0 -13
- package/dist/da-DK-D5969QKP.js +0 -7
- package/dist/de-DE-DFQGGPCj.js +0 -13
- package/dist/de-DE-Hah2EvAY.js +0 -7
- package/dist/de-DE-uDUBu-3n.js +0 -7
- package/dist/debugStore-DpSgCNGn.js +0 -40
- package/dist/el-GR-C9KGlGa7.js +0 -7
- package/dist/el-GR-DWh7gn7M.js +0 -7
- package/dist/en-US-DqhKW1eC.js +0 -7
- package/dist/en-US-MqobYcqc.js +0 -7
- package/dist/en-US-X8pjkwa3.js +0 -7
- package/dist/es-ES-C7XCTACS.js +0 -7
- package/dist/es-ES-DSwi-qfd.js +0 -7
- package/dist/es-ES-_qbfha1o.js +0 -13
- package/dist/es-LA-0IrX8yr2.js +0 -7
- package/dist/es-LA-1H8dAUVR.js +0 -7
- package/dist/es-LA-DF0v3VMe.js +0 -13
- package/dist/et-EE-evCiUrFW.js +0 -13
- package/dist/fi-FI-BdrXeX9d.js +0 -7
- package/dist/fi-FI-Cdof5NRG.js +0 -7
- package/dist/fieldConfigurations-CZCFghnK.js +0 -11
- package/dist/form-rules-DV3hxYqZ.js +0 -359
- package/dist/fr-FR-DIiBHkhs.js +0 -13
- package/dist/fr-FR-NOULV1vy.js +0 -7
- package/dist/fr-FR-hleHEr-Y.js +0 -7
- package/dist/hr-HR--ti3n_XO.js +0 -7
- package/dist/hr-HR-2h3d5-q3.js +0 -7
- package/dist/hr-HR-DofgeWWO.js +0 -13
- package/dist/hu-HU-FdLZGnBz.js +0 -13
- package/dist/it-IT-CWIAGNlE.js +0 -7
- package/dist/it-IT-CXgZZgyU.js +0 -13
- package/dist/it-IT-Dq5z7p1-.js +0 -7
- package/dist/ja-JP-C1c2UPpy.js +0 -7
- package/dist/ja-JP-Dyhw0Ycj.js +0 -7
- package/dist/japanSupportUtils-H5Zfox2v.js +0 -11
- package/dist/lt-LT-BMI4JzrS.js +0 -7
- package/dist/lt-LT-BZ6seLuB.js +0 -13
- package/dist/lt-LT-C62dFtWW.js +0 -7
- package/dist/lv-LV-CMYrAWqu.js +0 -13
- package/dist/lv-LV-LkNZQ__4.js +0 -7
- package/dist/lv-LV-W0I-UUyj.js +0 -7
- package/dist/nl-NL-C9HoBicG.js +0 -7
- package/dist/nl-NL-CC2r7Ldv.js +0 -7
- package/dist/nl-NL-CiH1raQa.js +0 -13
- package/dist/no-NO-Bo9rlROU.js +0 -7
- package/dist/no-NO-Ce2vzrp7.js +0 -13
- package/dist/no-NO-V7_rz3uN.js +0 -7
- package/dist/patternValidators-CCaCwU3M.js +0 -73
- package/dist/pl-PL-2QyKX67Y.js +0 -7
- package/dist/pl-PL-STp7eeFE.js +0 -7
- package/dist/pl-PL-aErZF5Xz.js +0 -13
- package/dist/pt-BR-CFGpH3BW.js +0 -7
- package/dist/pt-BR-D08Fo1qY.js +0 -7
- package/dist/pt-BR-hRRebYjo.js +0 -13
- package/dist/pt-PT-BAQWYDe6.js +0 -7
- package/dist/pt-PT-BHR4CEnv.js +0 -7
- package/dist/pt-PT-UAIvemf-.js +0 -13
- package/dist/ro-RO-BJeKitCz.js +0 -13
- package/dist/ro-RO-ni-ZNqXU.js +0 -7
- package/dist/ro-RO-wG0rfL5w.js +0 -7
- package/dist/sk-SK-DJinBnS1.js +0 -7
- package/dist/sk-SK-DQAGAOJW.js +0 -7
- package/dist/sk-SK-ztSYyXUE.js +0 -13
- package/dist/sl-SI-B-MLX0nT.js +0 -7
- package/dist/sl-SI-BY4TzP-F.js +0 -13
- package/dist/sl-SI-DUaLO_J7.js +0 -7
- package/dist/sv-SE-5uxyEq2a.js +0 -7
- package/dist/sv-SE-CNQCI2nX.js +0 -7
- package/dist/sv-SE-CrUbxniG.js +0 -13
- package/dist/toFullWidth-Dgy4X4i8.js +0 -52
- package/dist/types/adaptiveWorkflow/component-registry-v2.d.ts +0 -46
- package/dist/types/adaptiveWorkflow/components/DynamicForm/DynamicForm.d.ts +0 -8
- package/dist/types/adaptiveWorkflow/components/DynamicForm/contextMap.d.ts +0 -2
- package/dist/types/adaptiveWorkflow/components/DynamicForm/useCustomerData.d.ts +0 -25
- package/dist/types/adaptiveWorkflow/components/Fields/AcceptTermsOfServiceWorkflow/AcceptTermsOfServiceWorkflow.d.ts +0 -5
- package/dist/types/adaptiveWorkflow/components/Fields/IdentityScreening/IdentityScreeningWorkflow.d.ts +0 -18
- package/dist/types/adaptiveWorkflow/components/Fields/SourceOfFundsWorkflow/SourceOfFundsWorkflow.d.ts +0 -6
- package/dist/types/adaptiveWorkflow/components/Fields/TaxReportingWorkflow/TaxReportingWorkflow.d.ts +0 -6
- package/dist/types/adaptiveWorkflow/components/SpecializedComponent/SpecializedComponent.d.ts +0 -34
- package/dist/types/adaptiveWorkflow/components/SubTask/SubTask.d.ts +0 -7
- package/dist/types/adaptiveWorkflow/components/SubTask/contextMap.d.ts +0 -2
- package/dist/types/adaptiveWorkflow/components/Task/Task.d.ts +0 -6
- package/dist/types/adaptiveWorkflow/components/Task/contextMap.d.ts +0 -2
- package/dist/types/adaptiveWorkflow/components/TaskGroup/TaskGroup.d.ts +0 -6
- package/dist/types/adaptiveWorkflow/components/TaskGroup/contextMap.d.ts +0 -2
- package/dist/types/adaptiveWorkflow/components/TaskGroupParser/TaskGroupParser.d.ts +0 -7
- package/dist/types/adaptiveWorkflow/components/TaskItems/UboTaskItem/UboTaskItem.d.ts +0 -16
- package/dist/types/adaptiveWorkflow/components/TaskParser/TaskParser.d.ts +0 -7
- package/dist/types/components/Shared/forms/Address/localized/jp/JpAddress.d.ts +0 -7
- package/dist/uppercase-DvjwUM0n.js +0 -7
- /package/dist/types/{context → adaptiveWorkflow/context}/WorkflowContext/WorkflowContextProvider.d.ts +0 -0
- /package/dist/types/{context → adaptiveWorkflow/context}/WorkflowContext/useWorkflowContext.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { WorkflowStatus } from '
|
|
1
|
+
import type { WorkflowStatus } from '../../../../../api/adaptive/adaptiveWorkflow.types';
|
|
2
2
|
export declare const STATUSES_WITH_WORKFLOW_END_STATE: Set<WorkflowStatus>;
|
|
3
3
|
interface WorkflowEndStateProps {
|
|
4
4
|
status: WorkflowStatus;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type ResolvedNode = Omit<
|
|
1
|
+
import type { ComponentConfig } from '../types';
|
|
2
|
+
export type ResolvedNode = Omit<ComponentConfig, 'properties'> & {
|
|
3
3
|
properties?: Record<string, unknown>;
|
|
4
4
|
};
|
|
5
5
|
export interface NodeRendererProps {
|
|
6
6
|
node: ResolvedNode;
|
|
7
7
|
form?: any;
|
|
8
8
|
}
|
|
9
|
-
interface RawNodeProps {
|
|
10
|
-
node:
|
|
9
|
+
export interface RawNodeProps {
|
|
10
|
+
node: ComponentConfig;
|
|
11
11
|
form?: any;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
@@ -17,4 +17,3 @@ interface RawNodeProps {
|
|
|
17
17
|
* Will need to refine the renderer behavior if a node is not mapped, currently we will just render name of node or null if not found.
|
|
18
18
|
*/
|
|
19
19
|
export declare const NodeRenderer: ({ node, form }: RawNodeProps) => import("preact/jsx-runtime").JSX.Element | null;
|
|
20
|
-
export {};
|
|
@@ -1,51 +1,5 @@
|
|
|
1
1
|
import type { WorkflowStatus } from '../../api/adaptive/adaptiveWorkflow.types';
|
|
2
|
-
import type {
|
|
3
|
-
import type { NsTranslationKey } from '../../../types';
|
|
4
|
-
import type { ComponentName, SpecializedTaskComponentName } from '../component-registry';
|
|
5
|
-
import type { ComponentName as ComponentNameV2 } from '../component-registry-v2';
|
|
6
|
-
/**
|
|
7
|
-
* Config for a task group received from the adaptive workflow engine.
|
|
8
|
-
* @param id used to map a particular task group to FE-specific contextual details (ex. copy) from a task group context map
|
|
9
|
-
* @param tasks tasks which are associated with this task group
|
|
10
|
-
*/
|
|
11
|
-
export interface TaskGroupConfig {
|
|
12
|
-
id: string;
|
|
13
|
-
tasks: TaskConfig[];
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Config for an individual task within a task group.
|
|
17
|
-
* @param id used to map a task to contextual details from a task context map
|
|
18
|
-
* @param steps if present, indicates a dynamically parsed and rendered form {@link DynamicForm} is shown inside a modal.
|
|
19
|
-
* @param taskItem if present, indicates task item is rendered using the provided component spec rather than with the default task item component.
|
|
20
|
-
* @param component if present, this indicates a single specialized component is rendered instead of a dynamic form.
|
|
21
|
-
* @param subTasks if present, indicates there are nested task items.
|
|
22
|
-
*/
|
|
23
|
-
export interface TaskConfig {
|
|
24
|
-
id: string;
|
|
25
|
-
steps?: StepConfig[];
|
|
26
|
-
taskItem?: TaskItemConfig;
|
|
27
|
-
component?: ComponentConfig;
|
|
28
|
-
subTasks?: TaskConfig[];
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Config for a single step (i.e. one page) within a dynamically rendered form
|
|
32
|
-
*/
|
|
33
|
-
export interface StepConfig {
|
|
34
|
-
/** Unique step identifier, used as the React key and displayed as the step heading. */
|
|
35
|
-
id: string;
|
|
36
|
-
/** Ordered list of component groups rendered within this step. */
|
|
37
|
-
componentGroups: ComponentGroupConfig[];
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Config for grouping of components within a dynamic form step
|
|
41
|
-
* Used to associate groups of components with copy or within a specific component (ex. grouping several fields within an accordion or other wrapping UI element)
|
|
42
|
-
* @param id used for mapping to context
|
|
43
|
-
* @param components nested child components part of the component group
|
|
44
|
-
*/
|
|
45
|
-
export interface ComponentGroupConfig {
|
|
46
|
-
id: string;
|
|
47
|
-
components: ComponentConfig[];
|
|
48
|
-
}
|
|
2
|
+
import type { ComponentName } from '../component-registry';
|
|
49
3
|
/**
|
|
50
4
|
* AWE returns props per component
|
|
51
5
|
* @param type indicates whether a prop contains a value to be used by component directly (type === 'value'), or if the prop maps to a value returned as part of AWE globals object (type === 'global')
|
|
@@ -58,70 +12,12 @@ export type PropValue = {
|
|
|
58
12
|
type: 'value';
|
|
59
13
|
value: unknown;
|
|
60
14
|
};
|
|
61
|
-
/**
|
|
62
|
-
* Config for an individual UI component.
|
|
63
|
-
* @param id used for context mapping
|
|
64
|
-
* @param component name of component to map to in component registry
|
|
65
|
-
* @param componentType determines how the component is rendered:
|
|
66
|
-
* - `field` — a simple form field wrapped in a single `form.Field` and mapped to a single data point.
|
|
67
|
-
* - `compound` — a compound component that links several related fields (ex. data points nested in one object) associated with one base requirement path.
|
|
68
|
-
* - `specialized` — a self-contained component handling its own rendering, form steps, and submission.
|
|
69
|
-
* @param path path to a data point as returned from requirements engine, which will be used for data submission
|
|
70
|
-
* @param value value of a field
|
|
71
|
-
* @param properties props passed into rendered components
|
|
72
|
-
*/
|
|
73
|
-
export interface ComponentConfig {
|
|
74
|
-
id: string;
|
|
75
|
-
component: ComponentName;
|
|
76
|
-
componentType: 'FIELD' | 'COMPOUND' | 'SPECIALIZED';
|
|
77
|
-
path: string;
|
|
78
|
-
status: WorkflowStatus;
|
|
79
|
-
value?: unknown;
|
|
80
|
-
properties?: Record<string, PropValue> & Partial<ReservedProps>;
|
|
81
|
-
remediations?: {
|
|
82
|
-
remediationsContext: {
|
|
83
|
-
reasonCode: string;
|
|
84
|
-
userMessage: string;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
export interface TaskItemConfig extends Omit<ComponentConfig, 'path'> {
|
|
89
|
-
component: SpecializedTaskComponentName;
|
|
90
|
-
}
|
|
91
15
|
export type ReservedProps = {
|
|
92
16
|
resourceId: {
|
|
93
17
|
type: 'value' | 'global';
|
|
94
18
|
value: string;
|
|
95
19
|
};
|
|
96
20
|
};
|
|
97
|
-
/**
|
|
98
|
-
* UI context for a task group, mapped from the TaskGroup context map.
|
|
99
|
-
*/
|
|
100
|
-
export interface TaskGroupContext {
|
|
101
|
-
heading: NsTranslationKey<'adaptive'>;
|
|
102
|
-
description: NsTranslationKey<'adaptive'>;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* UI context for a subtask, mapped from the SubTask context map.
|
|
106
|
-
*/
|
|
107
|
-
export interface SubTaskContext {
|
|
108
|
-
heading: NsTranslationKey<'adaptive'>;
|
|
109
|
-
description: NsTranslationKey<'adaptive'>;
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* UI context for a task, mapped from the Task context map.
|
|
113
|
-
*/
|
|
114
|
-
export interface TaskContext {
|
|
115
|
-
title: NsTranslationKey<'adaptive'>;
|
|
116
|
-
icon: IconName;
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* UI context for a step, mapped from the Step context map.
|
|
120
|
-
*/
|
|
121
|
-
export interface StepContext {
|
|
122
|
-
heading: NsTranslationKey<'adaptive'>;
|
|
123
|
-
description: NsTranslationKey<'adaptive'>;
|
|
124
|
-
}
|
|
125
21
|
/**
|
|
126
22
|
* Shape of a node returned as part of AWE's UI manifest
|
|
127
23
|
* @param id unique id identifying the node
|
|
@@ -138,13 +34,13 @@ export interface StepContext {
|
|
|
138
34
|
* @param children array of child nodes of this component
|
|
139
35
|
* @remediations remediation context related to component
|
|
140
36
|
*/
|
|
141
|
-
export interface
|
|
37
|
+
export interface ComponentConfig {
|
|
142
38
|
id: string;
|
|
143
|
-
name:
|
|
39
|
+
name: ComponentName;
|
|
144
40
|
path?: string;
|
|
145
41
|
status?: WorkflowStatus;
|
|
146
42
|
properties?: Record<string, PropValue> & Partial<ReservedProps>;
|
|
147
|
-
children?:
|
|
43
|
+
children?: ComponentConfig[];
|
|
148
44
|
remediations?: {
|
|
149
45
|
remediationsContext: {
|
|
150
46
|
reasonCode: string;
|
package/dist/types/{context → adaptiveWorkflow/context}/WorkflowContext/WorkflowContext.d.ts
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReadonlySignal } from '@preact/signals';
|
|
2
|
-
import type { WorkflowEntity, WorkflowGlobals, WorkflowStatus } from '
|
|
3
|
-
import type { TaskStatus } from '
|
|
2
|
+
import type { WorkflowEntity, WorkflowGlobals, WorkflowStatus } from '../../../api/adaptive/adaptiveWorkflow.types';
|
|
3
|
+
import type { TaskStatus } from '../../../stores/globalStore/taskStatus';
|
|
4
4
|
export type TaskStatusMap = Record<string, TaskStatus>;
|
|
5
5
|
export interface WorkflowContextValue {
|
|
6
6
|
globals: ReadonlySignal<WorkflowGlobals>;
|
|
@@ -7,6 +7,6 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @see https://tanstack.com/form/latest/docs/framework/react/guides/form-composition
|
|
9
9
|
*/
|
|
10
|
-
export declare const useAppForm: <TFormData, TOnMount extends import("@tanstack/
|
|
11
|
-
form: import("@tanstack/
|
|
10
|
+
export declare const useAppForm: <TFormData, TOnMount extends import("@tanstack/preact-form").FormValidateOrFn<TFormData> | undefined, TOnChange extends import("@tanstack/preact-form").FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends import("@tanstack/preact-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends import("@tanstack/preact-form").FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends import("@tanstack/preact-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends import("@tanstack/preact-form").FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends import("@tanstack/preact-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic extends import("@tanstack/preact-form").FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync extends import("@tanstack/preact-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends import("@tanstack/preact-form").FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta>(props: import("@tanstack/preact-form").FormOptions<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta>) => import("@tanstack/preact-form").AppFieldExtendedPreactFormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {}, {}>, withForm: <TFormData, TOnMount extends import("@tanstack/preact-form").FormValidateOrFn<TFormData> | undefined, TOnChange extends import("@tanstack/preact-form").FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends import("@tanstack/preact-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends import("@tanstack/preact-form").FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends import("@tanstack/preact-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends import("@tanstack/preact-form").FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends import("@tanstack/preact-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic extends import("@tanstack/preact-form").FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync extends import("@tanstack/preact-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends import("@tanstack/preact-form").FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta, TRenderProps extends object = {}>({ render, props, }: import("@tanstack/preact-form").WithFormProps<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {}, {}, TRenderProps>) => import("preact").FunctionComponent<import("@tanstack/preact-form").PropsWithChildren<NoInfer<[unknown] extends [TRenderProps] ? any : TRenderProps> & {
|
|
11
|
+
form: import("@tanstack/preact-form").AppFieldExtendedPreactFormApi<[unknown] extends [TFormData] ? any : TFormData, [import("@tanstack/preact-form").FormValidateOrFn<TFormData> | undefined] extends [TOnMount] ? [TOnMount] extends [TOnMount & (import("@tanstack/preact-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount : TOnMount, [import("@tanstack/preact-form").FormValidateOrFn<TFormData> | undefined] extends [TOnChange] ? [TOnChange] extends [TOnChange & (import("@tanstack/preact-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange : TOnChange, [import("@tanstack/preact-form").FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync] ? [TOnChangeAsync] extends [TOnChangeAsync & (import("@tanstack/preact-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync : TOnChangeAsync, [import("@tanstack/preact-form").FormValidateOrFn<TFormData> | undefined] extends [TOnBlur] ? [TOnBlur] extends [TOnBlur & (import("@tanstack/preact-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur : TOnBlur, [import("@tanstack/preact-form").FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync] ? [TOnBlurAsync] extends [TOnBlurAsync & (import("@tanstack/preact-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync : TOnBlurAsync, [import("@tanstack/preact-form").FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit] ? [TOnSubmit] extends [TOnSubmit & (import("@tanstack/preact-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit : TOnSubmit, [import("@tanstack/preact-form").FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync] ? [TOnSubmitAsync] extends [TOnSubmitAsync & (import("@tanstack/preact-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync : TOnSubmitAsync, [import("@tanstack/preact-form").FormValidateOrFn<TFormData> | undefined] extends [TOnDynamic] ? [TOnDynamic] extends [TOnDynamic & (import("@tanstack/preact-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamic : TOnDynamic, [import("@tanstack/preact-form").FormValidateOrFn<TFormData> | undefined] extends [TOnDynamicAsync] ? [TOnDynamicAsync] extends [TOnDynamicAsync & (import("@tanstack/preact-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamicAsync : TOnDynamicAsync, [import("@tanstack/preact-form").FormValidateOrFn<TFormData> | undefined] extends [TOnServer] ? [TOnServer] extends [TOnServer & (import("@tanstack/preact-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer : TOnServer, [unknown] extends [TSubmitMeta] ? any : TSubmitMeta, {}, {}>;
|
|
12
12
|
}>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentConfig } from '../../adaptiveWorkflow/components/types';
|
|
2
2
|
export declare const adaptiveWorkflowResponse: AweWorkflowResponse;
|
|
3
3
|
export interface WorkflowEntity {
|
|
4
4
|
id: string;
|
|
@@ -37,6 +37,5 @@ export interface AweWorkflowResponse {
|
|
|
37
37
|
entity: WorkflowEntity;
|
|
38
38
|
globals: WorkflowGlobals;
|
|
39
39
|
globalStatus: WorkflowStatus;
|
|
40
|
-
|
|
41
|
-
nodes: ComponentConfigV2;
|
|
40
|
+
nodes: ComponentConfig;
|
|
42
41
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { BankVerificationVendor } from '../../../../api/transferInstruments/transferInstruments.types';
|
|
2
|
+
import type { EntityProblems } from '../../../../types/errors/entity-problems';
|
|
3
|
+
import type { FormModelWithValidity } from '../../../../types/form';
|
|
4
|
+
import type { PayoutDetailsSchema } from '../../forms/PayoutDetails/types';
|
|
5
|
+
interface PayoutSummaryProps {
|
|
6
|
+
data: PayoutDetailsSchema;
|
|
7
|
+
forms: FormModelWithValidity[];
|
|
8
|
+
omittedForms: string[];
|
|
9
|
+
problems?: EntityProblems;
|
|
10
|
+
provider?: BankVerificationVendor;
|
|
11
|
+
shouldUseBankAccountType: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const PayoutSummary: ({ data, forms, omittedForms, problems, provider, shouldUseBankAccountType, }: PayoutSummaryProps) => import("preact/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -2,6 +2,7 @@ import type { CAASResponseError } from '../../../../api/check/useCheck';
|
|
|
2
2
|
import type { ExistingTransferInstrument } from '../../../../core/models/api/transfer-instrument';
|
|
3
3
|
import type { NsTranslationKey } from '../../../../../types';
|
|
4
4
|
import type { SummaryOf } from '../../../Shared/Summary/types';
|
|
5
|
+
import type { CountryCode } from '../../../../types/datasets/country-code';
|
|
5
6
|
import type { AccountVerificationSchema } from '../../forms/BankVerification/types';
|
|
6
7
|
import type { VerificationMethod } from '../../forms/PayoutVerificationMethod/types';
|
|
7
8
|
interface InvalidFieldMessage {
|
|
@@ -14,5 +15,5 @@ export declare const getPayoutVerificationMethod: (transferInstrument: ExistingT
|
|
|
14
15
|
* Ensures that all the "verified" fields have the corresponding regular field's label in the summary.
|
|
15
16
|
* Same as if they were manually entered.
|
|
16
17
|
*/
|
|
17
|
-
export declare const formatAccountVerificationSummary: (data: AccountVerificationSchema | undefined) => SummaryOf<AccountVerificationSchema>;
|
|
18
|
+
export declare const formatAccountVerificationSummary: (data: AccountVerificationSchema | undefined, getCountryName: (countryCode: CountryCode) => string | null) => SummaryOf<AccountVerificationSchema>;
|
|
18
19
|
export {};
|
|
@@ -18,22 +18,6 @@ export declare const REGISTRATION_NUMBER_EXEMPTION_RULES: {
|
|
|
18
18
|
readonly HK: readonly [];
|
|
19
19
|
readonly NZ: readonly [];
|
|
20
20
|
};
|
|
21
|
-
/**
|
|
22
|
-
* @description Countries in this list use the provider-backed company search flow.
|
|
23
|
-
* For these countries, business details can be prefilled from provider results,
|
|
24
|
-
* and search/verification may require tax identifiers (for example TIN or VAT)
|
|
25
|
-
* in addition to company name/registration details.
|
|
26
|
-
*
|
|
27
|
-
* If a country is in this list, it means it will attempt to make an api call for company search.
|
|
28
|
-
* If the api doesnt have a provider for that country, it will return no results like below
|
|
29
|
-
* ```
|
|
30
|
-
* {
|
|
31
|
-
* "results": [],
|
|
32
|
-
* "provider": "NO_PROVIDER"
|
|
33
|
-
* }
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
export declare const COUNTRIES_USING_COMPANY_SEARCH: readonly CountryCode[];
|
|
37
21
|
export declare const COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION: readonly CountryCode[];
|
|
38
22
|
export declare const COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER: readonly CountryCode[];
|
|
39
23
|
/**
|
|
@@ -44,7 +28,6 @@ export declare const COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT: readonly CountryC
|
|
|
44
28
|
export declare const COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES: readonly CountryCode[];
|
|
45
29
|
export declare const COUNTRIES_THAT_REQUIRE_DATE_OF_INCORPORATION: readonly CountryCode[];
|
|
46
30
|
export declare const COUNTRIES_THAT_USES_UEN_OR_GST: readonly CountryCode[];
|
|
47
|
-
export declare const COUNTRY_OF_GOVERNING_LAW_POSSIBLE: readonly CountryCode[];
|
|
48
31
|
export declare const COUNTRIES_REQUIRING_FINANCIAL_INFORMATION: readonly CountryCode[];
|
|
49
32
|
export declare const COUNTRIES_REQUIRING_E_INVOICING_CODE: readonly CountryCode[];
|
|
50
33
|
export declare const COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4: readonly CountryCode[];
|
|
@@ -20,5 +20,4 @@ type RegistrationExemptionCountry = keyof typeof REGISTRATION_NUMBER_EXEMPTION_R
|
|
|
20
20
|
*/
|
|
21
21
|
export declare const isRegistrationExemptionAllowed: (country: CountryCode) => country is RegistrationExemptionCountry;
|
|
22
22
|
export declare const isRegistrationNumberAbsentStateV4Scenario: (country: CountryCode, entityType?: CompanyTypesValue) => boolean;
|
|
23
|
-
export declare const isUsingCompanySearch: (country: CountryCode, taskType: BusinessDetailsTasks) => boolean;
|
|
24
23
|
export {};
|
|
@@ -1,24 +1,2 @@
|
|
|
1
1
|
import type { FormList } from '../../types/form';
|
|
2
|
-
import type { FormRulesParams } from '../../types/form-rules';
|
|
3
|
-
import type { GlobalEntrySchema } from './tasks/types';
|
|
4
|
-
export declare const globalEntryCustomRules: ({ data }: Partial<FormRulesParams<GlobalEntrySchema>>) => {
|
|
5
|
-
entitySetupRequired: () => "REQUIRED";
|
|
6
|
-
countryRequired: () => "REQUIRED";
|
|
7
|
-
filedPaperworkRequired: () => "REQUIRED";
|
|
8
|
-
unincorporatedOrganizationTypeRequired: () => "REQUIRED" | undefined;
|
|
9
|
-
};
|
|
10
|
-
export declare const globalEntryFieldConfigurations: {
|
|
11
|
-
entitySetup: {
|
|
12
|
-
rule: string;
|
|
13
|
-
};
|
|
14
|
-
country: {
|
|
15
|
-
rule: string;
|
|
16
|
-
};
|
|
17
|
-
filedPaperwork: {
|
|
18
|
-
rule: string;
|
|
19
|
-
};
|
|
20
|
-
unincorporatedOrganizationType: {
|
|
21
|
-
rule: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
2
|
export declare const globalEntryForms: FormList;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import type { EntitySetupFieldProps } from './types';
|
|
1
|
+
import type { EntitySetupFieldProps, EntitySetupFieldSchema } from './types';
|
|
2
|
+
export declare const ENTITY_SETUP_FIELD: Array<keyof EntitySetupFieldSchema>;
|
|
2
3
|
export declare const EntitySetupField: ({ data, valid, errors, handleChangeFor, }: EntitySetupFieldProps) => import("preact/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseFormFieldProps } from '../../../../hooks/useForm/types';
|
|
2
2
|
export interface EntitySetupFieldSchema {
|
|
3
|
-
entitySetup
|
|
3
|
+
entitySetup?: 'individual' | 'organization';
|
|
4
4
|
}
|
|
5
5
|
export type EntitySetupFieldProps = Pick<BaseFormFieldProps<EntitySetupFieldSchema>, 'data' | 'valid' | 'errors' | 'handleChangeFor'>;
|
package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/PaperworkQuestionnaire.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type PaperworkQuestionnaireFieldProps, type PaperworkQuestionnaireFieldSchema } from './types';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const PAPERWORK_QUESTIONNAIRE_FIELD: Array<keyof PaperworkQuestionnaireFieldSchema>;
|
|
3
3
|
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
|
|
3
|
+
filedPaperwork?: 'yes' | 'no' | null;
|
|
4
4
|
}
|
|
5
5
|
export type PaperworkQuestionnaireFieldProps = Pick<BaseFormFieldProps<PaperworkQuestionnaireFieldSchema>, 'data' | 'valid' | 'errors' | 'handleChangeFor' | 'label'>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import type { UnincorporatedOrganizationTypeFieldProps } from './types';
|
|
1
|
+
import type { UnincorporatedOrganizationTypeFieldProps, UnincorporatedOrganizationTypeFieldSchema } from './types';
|
|
2
|
+
export declare const UNINCORPORATED_ORGANIZATION_TYPE_FIELD: Array<keyof UnincorporatedOrganizationTypeFieldSchema>;
|
|
2
3
|
export declare const UnincorporatedOrganizationTypeField: ({ data, valid, errors, handleChangeFor, }: UnincorporatedOrganizationTypeFieldProps) => import("preact/jsx-runtime").JSX.Element;
|
package/dist/types/components/GlobalEntry/fields/UnincorporatedOrganizationTypeField/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseFormFieldProps } from '../../../../hooks/useForm/types';
|
|
2
2
|
export interface UnincorporatedOrganizationTypeFieldSchema {
|
|
3
|
-
unincorporatedOrganizationType
|
|
3
|
+
unincorporatedOrganizationType?: 'unincorporatedAssociation' | 'unincorporatedPartnership' | null;
|
|
4
4
|
}
|
|
5
5
|
export type UnincorporatedOrganizationTypeFieldProps = Pick<BaseFormFieldProps<UnincorporatedOrganizationTypeFieldSchema>, 'data' | 'valid' | 'errors' | 'handleChangeFor'>;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type { BaseInnerFormProps } from '../../../../hooks/useForm/types';
|
|
2
|
+
import type { CountryCode } from '../../../../types/datasets/country-code';
|
|
2
3
|
import type { EntityInformationFormSchema } from './types';
|
|
3
4
|
interface EntityInformationProps extends BaseInnerFormProps<EntityInformationFormSchema> {
|
|
4
5
|
id: string;
|
|
6
|
+
country: CountryCode;
|
|
5
7
|
}
|
|
6
|
-
export declare const
|
|
8
|
+
export declare const ENTITY_INFORMATION_FIELDS: Array<keyof EntityInformationFormSchema>;
|
|
9
|
+
export declare const EntityInformation: ({ id, country }: EntityInformationProps) => import("preact/jsx-runtime").JSX.Element;
|
|
7
10
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { CountryFieldSchema } from '../../../Shared/fields/CountryField/types';
|
|
2
|
+
import type { StateFieldSchema } from '../../../Shared/fields/StateField/types';
|
|
2
3
|
import type { EntitySetupFieldSchema } from '../../fields/EntitySetupField/types';
|
|
3
|
-
export type EntityInformationFormSchema = CountryFieldSchema & EntitySetupFieldSchema;
|
|
4
|
+
export type EntityInformationFormSchema = CountryFieldSchema & StateFieldSchema & EntitySetupFieldSchema;
|
package/dist/types/components/GlobalEntry/forms/RegistrationInformation/RegistrationInformation.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import type { ExistingLegalEntity } from '../../../../core/models/api/legal-entity';
|
|
1
2
|
import type { BaseInnerFormProps } from '../../../../hooks/useForm/types';
|
|
3
|
+
import type { CountryCode } from '../../../../types/datasets/country-code';
|
|
2
4
|
import type { RegistrationInformationFormSchema } from './types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
+
interface RegistrationInformationProps extends BaseInnerFormProps<RegistrationInformationFormSchema> {
|
|
6
|
+
legalEntity: ExistingLegalEntity;
|
|
7
|
+
country: CountryCode;
|
|
8
|
+
}
|
|
9
|
+
export declare const REGISTRATION_INFORMATION_FIELDS: Array<keyof RegistrationInformationFormSchema>;
|
|
10
|
+
export declare const RegistrationInformation: ({ id, shouldValidate, legalEntity, country, }: RegistrationInformationProps) => import("preact/jsx-runtime").JSX.Element;
|
|
5
11
|
export {};
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import type { CountryOfGoverningLawFieldSchema } from '../../../Shared/fields/CountryOfGoverningLawField/types';
|
|
2
|
+
import type { LegalCompanyNameFieldSchema } from '../../../Shared/fields/LegalCompanyNameField/types';
|
|
3
|
+
import type { LocalizedLegalCompanyNameFieldSchema } from '../../../Shared/fields/LocalizedLegalCompanyNameField/types';
|
|
4
|
+
import type { TaxInformationFieldSchema } from '../../../Shared/fields/TaxInformationField/types';
|
|
1
5
|
import type { PaperworkQuestionnaireFieldSchema } from '../../fields/PaperworkQuestionnaire/types';
|
|
2
6
|
import type { UnincorporatedOrganizationTypeFieldSchema } from '../../fields/UnincorporatedOrganizationTypeField/types';
|
|
3
|
-
export type RegistrationInformationFormSchema = PaperworkQuestionnaireFieldSchema & UnincorporatedOrganizationTypeFieldSchema;
|
|
7
|
+
export type RegistrationInformationFormSchema = PaperworkQuestionnaireFieldSchema & UnincorporatedOrganizationTypeFieldSchema & LegalCompanyNameFieldSchema & LocalizedLegalCompanyNameFieldSchema & CountryOfGoverningLawFieldSchema & TaxInformationFieldSchema;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { TaskTypes } from '../../stores/globalStore/taskTypes';
|
|
2
|
+
import type { FormConfiguration } from '../../types/form-configuration';
|
|
3
|
+
import type { FormRulesParams } from '../../types/form-rules';
|
|
4
|
+
import type { GlobalEntrySchema } from './tasks/types';
|
|
5
|
+
type GlobalEntryRulesConfigurations = ReturnType<typeof globalEntryCustomRules>;
|
|
6
|
+
export declare const globalEntryFieldRuleConfigurations: FormConfiguration<GlobalEntrySchema, keyof GlobalEntryRulesConfigurations>;
|
|
7
|
+
interface GlobalEntryCustomRulesProps extends Omit<FormRulesParams<GlobalEntrySchema>, 'taskType'> {
|
|
8
|
+
taskType: typeof TaskTypes.GLOBAL_ENTRY;
|
|
9
|
+
}
|
|
10
|
+
export declare const globalEntryCustomRules: ({ accountHolder, data, isFeatureEnabled, country, taskType, }: GlobalEntryCustomRulesProps) => {
|
|
11
|
+
entitySetupRequired: () => "REQUIRED";
|
|
12
|
+
countryRequired: () => "REQUIRED";
|
|
13
|
+
requireStateOrProvinceForCompanySearch: () => "REQUIRED" | undefined;
|
|
14
|
+
countryOfGoverningLawRequired: () => "REQUIRED" | undefined;
|
|
15
|
+
filedPaperworkRequired: () => "REQUIRED";
|
|
16
|
+
unincorporatedOrganizationTypeRequired: () => "REQUIRED" | undefined;
|
|
17
|
+
legalCompanyNameRequired: () => "REQUIRED" | undefined;
|
|
18
|
+
jaHaniLegalCompanyName: () => "REQUIRED" | undefined;
|
|
19
|
+
jaKanaLegalCompanyName: () => "REQUIRED" | undefined;
|
|
20
|
+
taxInformationRequired: () => "REQUIRED" | undefined;
|
|
21
|
+
countryHasTaxExemptions: () => "REQUIRED" | "OPTIONAL" | undefined;
|
|
22
|
+
};
|
|
23
|
+
export {};
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity';
|
|
2
|
+
import type { CountryCode } from '../../../types/datasets/country-code';
|
|
1
3
|
import type { FormModelWithValidity } from '../../../types/form';
|
|
2
4
|
interface GlobalEntryProps {
|
|
3
5
|
activeForm: FormModelWithValidity;
|
|
6
|
+
legalEntity: ExistingLegalEntity;
|
|
7
|
+
shouldValidate?: boolean;
|
|
8
|
+
country: CountryCode;
|
|
4
9
|
}
|
|
5
|
-
export declare const GlobalEntry: ({ activeForm }: GlobalEntryProps) => import("preact/jsx-runtime").JSX.Element | null;
|
|
10
|
+
export declare const GlobalEntry: ({ activeForm, legalEntity, shouldValidate, country, }: GlobalEntryProps) => import("preact/jsx-runtime").JSX.Element | null;
|
|
6
11
|
export {};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import type { CompanyTypesValue } from '../../core/models/api/company-types-value';
|
|
1
2
|
import type { ExistingLegalEntity } from '../../core/models/api/legal-entity';
|
|
3
|
+
import { LegalEntityTypes } from '../../core/models/api/legal-entity-type';
|
|
2
4
|
import type { GlobalEntrySchema } from './tasks/types';
|
|
5
|
+
export declare const getGlobalEntryCompanyType: (legalEntity: ExistingLegalEntity | undefined, data: GlobalEntrySchema) => CompanyTypesValue | typeof LegalEntityTypes.TRUST | typeof LegalEntityTypes.INDIVIDUAL | undefined;
|
|
3
6
|
export declare const mapLegalEntityToGlobalEntrySchema: (legalEntity: ExistingLegalEntity) => GlobalEntrySchema;
|
|
@@ -1,9 +1,17 @@
|
|
|
1
|
+
import type { FeatureName } from '../../context/ToggleContext/types';
|
|
2
|
+
import type { ExistingLegalEntity } from '../../core/models/api/legal-entity';
|
|
1
3
|
import type { ValidatorRules } from '../../utils/validation/types';
|
|
2
4
|
import type { EntityInformationFormSchema } from './forms/EntityInformation/types';
|
|
3
5
|
import type { RegistrationInformationFormSchema } from './forms/RegistrationInformation/types';
|
|
6
|
+
import type { GlobalEntrySchema } from './tasks/types';
|
|
4
7
|
interface GlobalEntryFormValidationRules {
|
|
5
8
|
entityInformation: ValidatorRules<EntityInformationFormSchema>;
|
|
6
9
|
registrationInformation: ValidatorRules<RegistrationInformationFormSchema>;
|
|
7
10
|
}
|
|
8
|
-
|
|
11
|
+
interface GlobalEntryValidationRulesParams {
|
|
12
|
+
data?: GlobalEntrySchema;
|
|
13
|
+
legalEntity: ExistingLegalEntity;
|
|
14
|
+
isFeatureEnabled?: (feature: FeatureName) => boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const globalEntryValidationRules: ({ data, legalEntity, isFeatureEnabled, }: GlobalEntryValidationRulesParams) => GlobalEntryFormValidationRules;
|
|
9
17
|
export {};
|
|
@@ -6,7 +6,7 @@ import type { JpAddressSchema } from '../../../Shared/forms/Address/localized/jp
|
|
|
6
6
|
import type { AddressSchema } from '../../../Shared/forms/Address/types';
|
|
7
7
|
import type { TaskType } from '../../../../stores/globalStore/taskTypes';
|
|
8
8
|
import type { CountryCode } from '../../../../types/datasets/country-code';
|
|
9
|
-
import type { ValidationRuleResults } from '../../../../utils/validation/types';
|
|
9
|
+
import type { ValidationRuleResults, ValidatorMode } from '../../../../utils/validation/types';
|
|
10
10
|
import type { IdentityNumberSchema } from '../../fields/IdentityNumber/type';
|
|
11
11
|
import type { AdditionalIdentityInfoSchema } from './Identity/Identity.types';
|
|
12
12
|
export interface AdditionalPersonalDetailsSchema extends AddressSchema, JpAddressSchema, IdentityNumberSchema, TaxInformationFieldSchema, AdditionalIdentityInfoSchema {
|
|
@@ -19,6 +19,9 @@ export interface AdditionalPersonalDetailsProps extends BaseInnerFormProps<Addit
|
|
|
19
19
|
taskType: TaskType;
|
|
20
20
|
onResidencyCountryChange?(country: string): void;
|
|
21
21
|
}
|
|
22
|
+
export type AdditionalPersonalDetailsPropsForAddress = BaseInnerFormProps<AdditionalPersonalDetailsSchema> & {
|
|
23
|
+
handleFieldChange: (fieldName: keyof AdditionalPersonalDetailsSchema, mode?: ValidatorMode) => (e: never) => void;
|
|
24
|
+
};
|
|
22
25
|
export interface IdentityProps {
|
|
23
26
|
country: CountryCode;
|
|
24
27
|
additionalPersonalDetails: AdditionalPersonalDetailsProps;
|
package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import type { ExistingLegalEntity } from '../../../../../core/models/api/legal-entity';
|
|
1
2
|
import type { TFunction } from '../../../../../../types';
|
|
3
|
+
import type { Scenario } from '../../../../../core/models/api/get-scenarios';
|
|
4
|
+
import type { LegalEntityAssociation } from '../../../../../core/models/api/legal-entity-association';
|
|
2
5
|
import type { TaskType } from '../../../../../stores/globalStore/taskTypes';
|
|
6
|
+
import type { EntityProblems } from '../../../../../types/errors/entity-problems';
|
|
3
7
|
import type { IndividualSchema } from '../../../forms/Individual.types';
|
|
4
8
|
/**
|
|
5
9
|
* Formats the entire form data for the summary view.
|
|
@@ -21,8 +25,8 @@ export declare const formatDataForSummary: (dataToFormat: IndividualSchema, loca
|
|
|
21
25
|
* @returns The final summary data object.
|
|
22
26
|
*/
|
|
23
27
|
export declare const getSummaryData: (data: IndividualSchema, locale: string, commonT: TFunction<"common">, taskType: TaskType) => {
|
|
24
|
-
basicDetails: Omit<any, "firstName" | "lastName" | "role" | "nomineeShareholder"
|
|
25
|
-
additionalPersonalDetails: Omit<any, "idNumberExempt"
|
|
28
|
+
basicDetails: Omit<any, "firstName" | "lastName" | "role" | "nomineeShareholder"> | undefined;
|
|
29
|
+
additionalPersonalDetails: Omit<any, "idNumberExempt"> | undefined;
|
|
26
30
|
idDocument: any;
|
|
27
31
|
};
|
|
28
32
|
/**
|
|
@@ -43,3 +47,4 @@ export declare const getStructuredListItems: (data: Record<string, unknown> | un
|
|
|
43
47
|
details: string;
|
|
44
48
|
type: "list" | "text";
|
|
45
49
|
}[];
|
|
50
|
+
export declare const isMissingIdentityDocument: (problems: EntityProblems, legalEntity: ExistingLegalEntity, scenarios: Scenario[] | undefined, roles: Array<LegalEntityAssociation["type"]>) => boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ComponentProps, FunctionComponent } from 'preact/compat';
|
|
2
|
+
interface VerifiedWithProps {
|
|
3
|
+
name: string;
|
|
4
|
+
logo?: FunctionComponent<ComponentProps<'svg'>>;
|
|
5
|
+
}
|
|
6
|
+
export declare const VerifiedWith: ({ name, logo }: VerifiedWithProps) => import("preact/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { BusinessRegistrationNumberFieldProps, BusinessRegistrationNumberFieldSchema } from './types';
|
|
2
2
|
export declare const BUSINESS_REGISTRATION_NUMBER_FIELD: Array<keyof BusinessRegistrationNumberFieldSchema>;
|
|
3
|
-
export declare function BusinessRegistrationNumberField({ data, valid, errors,
|
|
3
|
+
export declare function BusinessRegistrationNumberField({ data, valid, errors, readonly, shouldValidate, optional, handleChangeFor, country, state, canExempt, companyType, }: BusinessRegistrationNumberFieldProps): import("preact/jsx-runtime").JSX.Element;
|
package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts
CHANGED
|
@@ -19,5 +19,5 @@ interface GetHelperTextParams {
|
|
|
19
19
|
/**
|
|
20
20
|
* Returns the helper text for the business registration number field.
|
|
21
21
|
*/
|
|
22
|
-
export declare const getRegistrationNumberHelperText:
|
|
22
|
+
export declare const getRegistrationNumberHelperText: (t: TFunction<"common">, { country, companyType }: GetHelperTextParams) => string | undefined;
|
|
23
23
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { CountryOfGoverningLawFieldProps, CountryOfGoverningLawFieldSchema } from './types';
|
|
2
2
|
export declare const COUNTRY_OF_GOVERNING_LAW_FIELD: Array<keyof CountryOfGoverningLawFieldSchema>;
|
|
3
|
-
export declare function CountryOfGoverningLawField({ data, valid, errors,
|
|
3
|
+
export declare function CountryOfGoverningLawField({ data, valid, errors, handleChangeFor, allowedCountries, country, }: CountryOfGoverningLawFieldProps): import("preact/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ import type { CountryCode } from '../../../../types/datasets/country-code';
|
|
|
3
3
|
export interface CountryOfGoverningLawFieldSchema {
|
|
4
4
|
countryOfGoverningLaw?: CountryCode;
|
|
5
5
|
}
|
|
6
|
-
export interface CountryOfGoverningLawFieldProps extends Pick<BaseFormFieldProps<CountryOfGoverningLawFieldSchema>, 'data' | 'valid' | 'errors' | '
|
|
6
|
+
export interface CountryOfGoverningLawFieldProps extends Pick<BaseFormFieldProps<CountryOfGoverningLawFieldSchema>, 'data' | 'valid' | 'errors' | 'handleChangeFor'> {
|
|
7
7
|
allowedCountries?: readonly CountryCode[];
|
|
8
8
|
country?: CountryCode;
|
|
9
9
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { StateFieldProps, StateFieldSchema } from './types';
|
|
2
2
|
export declare const STATE_FIELD: Array<keyof StateFieldSchema>;
|
|
3
|
-
export declare function StateField({ data, valid, errors,
|
|
3
|
+
export declare function StateField({ data, valid, errors, readonly, handleChangeFor, selectedCountry, handleBlur, isBusinessSearch, }: StateFieldProps): import("preact/jsx-runtime").JSX.Element | null;
|