@adyen/kyc-components 3.79.0 → 3.80.0-beta.0

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 (308) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-B8gq2Lvn.js → AcceptTermsOfServiceComponent-DBSkKRHS.js} +7 -7
  2. package/dist/{AccountSetupRejected-Dn6x3lE8.js → AccountSetupRejected-gAGWuJ9N.js} +6 -6
  3. package/dist/{Avatar-Bm0Eluxy.js → Avatar-5RObc8Yd.js} +2 -2
  4. package/dist/{BusinessDetailsDropin-6TJzQW0O.js → BusinessDetailsDropin-O92NE-y1.js} +115 -139
  5. package/dist/{BusinessFinancingComponent-BxskEwQc.js → BusinessFinancingComponent-DDKomenp.js} +3 -3
  6. package/dist/{BusinessFinancingDropin-BaeVc8F6.js → BusinessFinancingDropin-Bhg9neRS.js} +97 -71
  7. package/dist/{BusinessFinancingPage-CccBeSjZ.js → BusinessFinancingPage-DyItV5SR.js} +3 -3
  8. package/dist/{BusinessTypeSelectionPage-DrKCAdaG.js → BusinessTypeSelectionPage-DmjbM57I.js} +47 -76
  9. package/dist/{ContractViewer-BaJ-kFmY.js → ContractViewer-DBW5C6kA.js} +2 -2
  10. package/dist/{CreateIndividualComponent-Bmv5Nc35.js → CreateIndividualComponent-c8yAn2_J.js} +4 -4
  11. package/dist/{CreateTransferInstrumentComponent-DF7SwTtr.js → CreateTransferInstrumentComponent-BF-KFdjU.js} +5 -5
  12. package/dist/{CustomerSupport-CzH1nyXW.js → CustomerSupport-rSYElbVr.js} +10 -10
  13. package/dist/{DebugModal-DMkdmfMV.js → DebugModal-BTr0idCC.js} +12 -226
  14. package/dist/{DecisionMakerDetailsPage-DHLdTCf3.js → DecisionMakerDetailsPage-DQcWSwTb.js} +4 -4
  15. package/dist/DecisionMakers-C2awPhE6.js +478 -0
  16. package/dist/{EmbeddedStatus-DaBZ91oA.js → EmbeddedStatus-COKtxNW-.js} +13 -13
  17. package/dist/{FormEndState-BBMSuQj7.js → FormEndState-BmDRa3zJ.js} +4 -3
  18. package/dist/{FormFlow-C1DKb0gA.js → FormFlow-CNxGh4Yu.js} +3 -3
  19. package/dist/{IndividualOnfidoDropin-CCbwDQ42.js → IndividualOnfidoDropin-DUzjucM9.js} +204 -184
  20. package/dist/{Introduction-DL4JlCU3.js → Introduction-BEM_wmkj.js} +24 -26
  21. package/dist/{ProviderButton-CdJCw-d-.js → LandingLayout-DyY0Exht.js} +91 -83
  22. package/dist/{LegalRepresentativeDetailsPage-CXw76qYP.js → LegalRepresentativeDetailsPage-1tw_BPLr.js} +4 -4
  23. package/dist/{ManageIndividualComponent-DFrxvq1V.js → ManageIndividualComponent-B0y8wd24.js} +6 -6
  24. package/dist/{ManageTermsOfServiceComponent-Dd674r5F.js → ManageTermsOfServiceComponent-DJVDf-iH.js} +4 -4
  25. package/dist/{ManageTransferInstrumentComponent-Dcc94EKJ.js → ManageTransferInstrumentComponent-DF4Q8oEB.js} +6 -6
  26. package/dist/{OnboardingDropinComponent-CO8-GF4E.js → OnboardingDropinComponent-B0Sj7qf1.js} +366 -208
  27. package/dist/{Review-C9xcGO-O.js → Review-C4HOjR6y.js} +11 -11
  28. package/dist/RootBusinessDetailsPage-DeqKfOFX.js +1848 -0
  29. package/dist/{RootIndividualDetailsPage-DhUMpzGa.js → RootIndividualDetailsPage-CKOquQ0-.js} +4 -4
  30. package/dist/{SignPCIComponent-uHRS64Oo.js → SignPCIComponent-Cx8oL8wu.js} +6 -6
  31. package/dist/{SingpassSelection-bOy5WFTO.js → SingpassSelection-BJNZw1u-.js} +11 -11
  32. package/dist/{SoleProprietorshipPage-BE8Mjhjp.js → SoleProprietorshipPage-Dtw3XHVJ.js} +4 -4
  33. package/dist/{SourceOfFundsPage-C-BTd1Ar.js → SourceOfFundsPage-gPmK4QX6.js} +28 -20
  34. package/dist/{StoreProvider-Bw9Xi_Q5.js → StoreProvider-DhQ4sdLg.js} +5799 -5422
  35. package/dist/{TaskItemStatus-DqghzBaZ.js → TaskItemStatus-Cxcag2AH.js} +23 -23
  36. package/dist/TaskStatusIndicator-B5fp8LzR.js +69 -0
  37. package/dist/{TaxReportingDropin-CmJT82Aj.js → TaxReportingDropin-CbDYoO31.js} +8 -7
  38. package/dist/{TileGroup-DP6CW2Ya.js → TileGroup-BkLtnLiA.js} +2 -2
  39. package/dist/{TrustDetailsPage-F-XzAJKt.js → TrustDetailsPage-DktRQRum.js} +38 -14
  40. package/dist/{TrustMemberCompanyPage-C0U5PbAW.js → TrustMemberCompanyPage-CLTOpWzU.js} +5 -5
  41. package/dist/{TrustMemberIndividualPage-C_rRPUgX.js → TrustMemberIndividualPage-wPh86-GQ.js} +4 -4
  42. package/dist/{UnincorporatedPartnershipIndividualPage-B0B2hFV8.js → UnincorporatedPartnershipIndividualPage-B-2i68Nd.js} +4 -4
  43. package/dist/{UnincorporatedPartnershipMemberCompanyPage-CdWmnqg-.js → UnincorporatedPartnershipMemberCompanyPage-DWLczj6F.js} +4 -4
  44. package/dist/{VerificationErrorAlert-BmrZdkgs.js → VerificationErrorAlert-AbvM4lbK.js} +2 -2
  45. package/dist/{ViewVerificationStatusComponent-DqTteba3.js → ViewVerificationStatusComponent-vVZeXYDs.js} +14 -12
  46. package/dist/adyen-business-financing.js +8 -12
  47. package/dist/adyen-individual.js +6 -4
  48. package/dist/adyen-kyc-components.js +143 -124
  49. package/dist/adyen-manage-individual.js +2 -2
  50. package/dist/adyen-manage-terms-of-service.js +3 -3
  51. package/dist/adyen-manage-transfer-instruments.js +3 -3
  52. package/dist/adyen-onboarding.js +14 -6
  53. package/dist/adyen-terms-of-service.js +18 -6
  54. package/dist/adyen-transfer-instrument.js +10 -6
  55. package/dist/adyen-verification-status.js +2 -2
  56. package/dist/bag-DpxmyXfR.js +14 -0
  57. package/dist/business-lines-DboUCbXw.js +135 -0
  58. package/dist/decision-makers-group-CgddXgrx.js +1944 -0
  59. package/dist/en-US-CQ3angjM.js +22 -0
  60. package/dist/{getFieldsWithExistingData-xJPsn2JE.js → getFieldsWithExistingData-BS9W6RQp.js} +2 -2
  61. package/dist/{hasDataChanged-BQeJUDMz.js → hasDataChanged-DK74H0sZ.js} +2 -2
  62. package/dist/{localizeDateString-B3Zc2Aep.js → localizeDateString-C34eXZqY.js} +2 -2
  63. package/dist/mail-Z_IE_hkw.js +14 -0
  64. package/dist/{mapFinancialReportsToFinancialInformation-Dn-CfyG6.js → mapFinancialReportsToFinancialInformation-DoJu-RRw.js} +2 -2
  65. package/dist/pay-by-link-plane-Pv7Babgn.js +22 -0
  66. package/dist/{resolveEnvironment-BFUUd4tv.js → resolveEnvironment-rJv_NJF_.js} +3 -3
  67. package/dist/{rules-C7Cw2XXc.js → rules-OP83mdq4.js} +13 -13
  68. package/dist/solution-payments-DTAuLSWF.js +14 -0
  69. package/dist/style.css +218 -181
  70. package/dist/styles-CLV89_hH.js +218 -181
  71. package/dist/terminal-1-ewywjFJI.js +18 -0
  72. package/dist/types/api/idNowProvider/idNowProvider.types.d.ts +1 -2
  73. package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +4 -8
  74. package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentRequirements.d.ts +2 -3
  75. package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +25 -24
  76. package/dist/types/components/BankAccount/forms/BankVerification/verification/widget/types.d.ts +10 -10
  77. package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -2
  78. package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +0 -306
  79. package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +1 -1
  80. package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformationMultiform.d.ts +9 -0
  81. package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +10 -0
  82. package/dist/types/components/Business/forms/BasicInformation/types.d.ts +2 -2
  83. package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +14 -2
  84. package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +5 -3
  85. package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +3 -2
  86. package/dist/types/components/Business/forms/BusinessSelection/BusinessSelectionMultiform.d.ts +14 -0
  87. package/dist/types/components/Business/forms/BusinessSelection/types.d.ts +3 -0
  88. package/dist/types/components/Business/forms/CompanyStructure/CompanyStructureMultiform.d.ts +4 -0
  89. package/dist/types/components/Business/forms/forms.types.d.ts +14 -0
  90. package/dist/types/components/Business/forms/rules.d.ts +26 -8
  91. package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +2 -1
  92. package/dist/types/components/Business/mapping/businessDetails/mapOrganizationTypeToCompanyType.d.ts +1 -1
  93. package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +5 -3
  94. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +4 -3
  95. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiform.d.ts +18 -0
  96. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiformDropin.d.ts +5 -0
  97. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/types.d.ts +2 -0
  98. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/utils.d.ts +21 -0
  99. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/validate.d.ts +22 -0
  100. package/dist/types/components/Business/utils/companyTypeMetadata.d.ts +1 -1
  101. package/dist/types/components/Business/utils/companyUtil.d.ts +3 -3
  102. package/dist/types/components/BusinessLines/pages/RootBusinessLinesPage.d.ts +5 -0
  103. package/dist/types/components/BusinessLines/tasks/BusinessLinesDropin.d.ts +5 -0
  104. package/dist/types/components/BusinessLines/tasks/BusinessLinesGettingStarted/BusinessLinesGettingStarted.d.ts +6 -0
  105. package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +2 -2
  106. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +1 -306
  107. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +22 -19
  108. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +1 -2
  109. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +2 -2
  110. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts +3 -3
  111. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/useNavigation.d.ts +5 -5
  112. package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/ViewVerificationStatusComponent.d.ts +1 -1
  113. package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/content.d.ts +1 -1
  114. package/dist/types/components/Individual/fields/DecisionMakerRole/NomineeDecisionMakerRole.d.ts +6 -0
  115. package/dist/types/components/Individual/fields/DecisionMakerRole/types.d.ts +2 -2
  116. package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +2 -2
  117. package/dist/types/components/Individual/forms/Individual/PersonalDetails/validate.d.ts +2 -2
  118. package/dist/types/components/Individual/forms/Individual/ProofOfRelationship/types.d.ts +8 -8
  119. package/dist/types/components/Individual/forms/Individual/ProofOfResidency/types.d.ts +18 -18
  120. package/dist/types/components/Individual/forms/Individual/rules.d.ts +1 -1
  121. package/dist/types/components/Individual/forms/Individual/types.d.ts +2 -2
  122. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +3 -2
  123. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/validate.d.ts +2 -2
  124. package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.types.d.ts +2 -2
  125. package/dist/types/components/Individual/forms/IndividualOnfido/GuidanceQuestion/GuidanceQuestion.d.ts +4 -4
  126. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +3 -1
  127. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +2 -2
  128. package/dist/types/components/Individual/helpers/isOnfidoAutofillFlowEnabled.d.ts +2 -2
  129. package/dist/types/components/Individual/helpers/roleUtils.d.ts +1 -1
  130. package/dist/types/components/Individual/helpers/shouldShowMotionCapture.d.ts +3 -3
  131. package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +1 -1
  132. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.d.ts +2 -0
  133. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.types.d.ts +7 -0
  134. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakersGettingStarted/DecisionMakersGettingStarted.d.ts +5 -0
  135. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakersGettingStarted/DecisionMakersModalContent.d.ts +1 -0
  136. package/dist/types/components/Shared/EntityGuidanceStatus/types.d.ts +4 -4
  137. package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +1 -1
  138. package/dist/types/components/Shared/Introduction/Introduction.d.ts +2 -2
  139. package/dist/types/components/Shared/Introduction/IntroductionScreen.d.ts +2 -2
  140. package/dist/types/components/Shared/Introduction/constants.d.ts +3 -3
  141. package/dist/types/components/Shared/Introduction/copy.d.ts +6 -5
  142. package/dist/types/components/Shared/Introduction/types.d.ts +11 -11
  143. package/dist/types/components/Shared/SingpassBanner/SingpassBanner.d.ts +1 -1
  144. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
  145. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +1 -1
  146. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +5 -7
  147. package/dist/types/components/Shared/fields/CountryField/types.d.ts +1 -1
  148. package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +1 -1
  149. package/dist/types/components/Shared/fields/Currency/types.d.ts +1 -1
  150. package/dist/types/components/Shared/fields/DBANameField/types.d.ts +1 -3
  151. package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +1 -1
  152. package/dist/types/components/Shared/fields/EInvoicingCodeField/types.d.ts +1 -1
  153. package/dist/types/components/Shared/fields/FinancialReportingDate/types.d.ts +1 -1
  154. package/dist/types/components/Shared/fields/IdFieldTypeSelector/TaxIdNumberTypeSelector.d.ts +2 -2
  155. package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +2 -2
  156. package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +27 -27
  157. package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultRegistrationNumberType.d.ts +16 -0
  158. package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultTaxIdNumberType.d.ts +2 -2
  159. package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultVatNumberType.d.ts +13 -0
  160. package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferTaxIdNumberType.d.ts +2 -2
  161. package/dist/types/components/Shared/fields/LegalCompanyNameField/types.d.ts +1 -1
  162. package/dist/types/components/Shared/fields/NumberOfEmployees/types.d.ts +1 -1
  163. package/dist/types/components/Shared/fields/PhoneField/types.d.ts +1 -1
  164. package/dist/types/components/Shared/fields/StateField/types.d.ts +1 -1
  165. package/dist/types/components/Shared/fields/StockExchangeMICField/types.d.ts +1 -1
  166. package/dist/types/components/Shared/fields/StockISINField/types.d.ts +1 -1
  167. package/dist/types/components/Shared/fields/StockTickerSymbol/types.d.ts +1 -1
  168. package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
  169. package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +3 -3
  170. package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +3 -7
  171. package/dist/types/components/Shared/fields/VatNumberField/VatNumberField.d.ts +1 -1
  172. package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +2 -4
  173. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  174. package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +2 -2
  175. package/dist/types/components/Shared/forms/ConstitutionalDocument/types.d.ts +11 -10
  176. package/dist/types/components/Shared/forms/FinancialInformation/types.d.ts +3 -0
  177. package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +7 -5
  178. package/dist/types/components/Shared/tasks/TaskList/types.d.ts +2 -4
  179. package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +1 -2
  180. package/dist/types/components/Trust/forms/Trust/rules.d.ts +1 -0
  181. package/dist/types/components/Trust/forms/Trust/types.d.ts +1 -1
  182. package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +2 -2
  183. package/dist/types/components/Trust/forms/TrustRoleAndEntityType/types.d.ts +1 -2
  184. package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +3 -3
  185. package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +1 -1
  186. package/dist/types/components/Trust/tasks/TrustMembers/CompanyTrustMemberTaskItem.d.ts +1 -1
  187. package/dist/types/components/Trust/tasks/TrustMembers/ExemptSettlorTaskItem.d.ts +1 -1
  188. package/dist/types/components/Trust/tasks/TrustMembers/RegularTrustMemberTaskItem.d.ts +1 -1
  189. package/dist/types/components/Trust/tasks/TrustMembers/RootTrusteeTaskItem.d.ts +1 -1
  190. package/dist/types/components/Trust/tasks/TrustMembers/types.d.ts +6 -6
  191. package/dist/types/components/Trust/utils/trustMemberGuidance.d.ts +7 -6
  192. package/dist/types/components/Trust/utils/trustMemberRequirements.d.ts +1 -1
  193. package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +6 -6
  194. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/types.d.ts +5 -5
  195. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRadioGroup.d.ts +2 -2
  196. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/types.d.ts +2 -2
  197. package/dist/types/components/ui/atoms/ListItem/ListItem.d.ts +16 -0
  198. package/dist/types/components/ui/atoms/Svg/svgs.d.ts +14 -0
  199. package/dist/types/components/ui/atoms/TaskStatusIndicator/TaskStatusIndicator.d.ts +1 -1
  200. package/dist/types/components/ui/layout/LandingLayout/LandingLayout.d.ts +3 -2
  201. package/dist/types/components/ui/molecules/EmbeddedStatus/EmbeddedStatus.d.ts +1 -1
  202. package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +2 -2
  203. package/dist/types/constants/keys.d.ts +2 -0
  204. package/dist/types/context/ExperimentContext/types.d.ts +49 -37
  205. package/dist/types/context/SettingsContext/types.d.ts +24 -24
  206. package/dist/types/core/models/api/company-types-value.d.ts +12 -11
  207. package/dist/types/core/models/api/decision-maker-type.d.ts +7 -6
  208. package/dist/types/core/models/api/entity-type.d.ts +5 -4
  209. package/dist/types/core/models/api/get-scenarios.d.ts +18 -18
  210. package/dist/types/core/models/api/individual.d.ts +1 -0
  211. package/dist/types/core/models/api/legal-arrangement.d.ts +2 -2
  212. package/dist/types/core/models/api/legal-entity-association.d.ts +2 -2
  213. package/dist/types/core/models/api/legal-entity-type.d.ts +8 -7
  214. package/dist/types/core/models/api/trust-member-type.d.ts +8 -8
  215. package/dist/types/core/models/api/trusted-fields-provider.d.ts +5 -4
  216. package/dist/types/core/models/api/unincorporated-partnership.d.ts +6 -6
  217. package/dist/types/core/models/api/verification-error.d.ts +8 -7
  218. package/dist/types/core/models/api/verification-status.d.ts +7 -6
  219. package/dist/types/core/models/api/view-verification-status.d.ts +8 -7
  220. package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +1 -1
  221. package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +6 -1
  222. package/dist/types/embeds/individual/adyen-individual.types.d.ts +6 -1
  223. package/dist/types/embeds/onboarding/AdyenOnboarding.d.ts +1 -0
  224. package/dist/types/embeds/onboarding/adyen-onboarding.types.d.ts +4 -1
  225. package/dist/types/embeds/terms-of-service/adyen-terms-of-service.types.d.ts +7 -1
  226. package/dist/types/embeds/transfer-instrument/AdyenTransferInstrument.d.ts +2 -1
  227. package/dist/types/embeds/transfer-instrument/adyen-transfer-instrument.types.d.ts +7 -2
  228. package/dist/types/hooks/introduction/useIntroductionScreens.d.ts +4 -4
  229. package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +7 -6
  230. package/dist/types/hooks/useBusinessSetup.d.ts +11 -10
  231. package/dist/types/hooks/useDataMissingRemediations.d.ts +2 -2
  232. package/dist/types/hooks/useFormComposer.d.ts +1 -1
  233. package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +6 -3
  234. package/dist/types/hooks/useLegalEntityType.d.ts +1 -1
  235. package/dist/types/hooks/useMultiForm/types.d.ts +38 -36
  236. package/dist/types/hooks/useMultiForm/useMultiForm.d.ts +1 -1
  237. package/dist/types/hooks/useScenarioConfiguration.d.ts +2 -2
  238. package/dist/types/language/Language.d.ts +1 -0
  239. package/dist/types/language/utils.d.ts +11 -1
  240. package/dist/types/stores/globalStore/calculateTaskStatus.d.ts +2 -2
  241. package/dist/types/stores/globalStore/determineTaskIdentifiers.d.ts +2 -2
  242. package/dist/types/stores/globalStore/get-task-status.d.ts +2 -2
  243. package/dist/types/stores/globalStore/globalStore.d.ts +7 -7
  244. package/dist/types/stores/globalStore/taskStatus.d.ts +17 -16
  245. package/dist/types/stores/globalStore/taskTypes.d.ts +37 -35
  246. package/dist/types/types/datasets/country-code.d.ts +249 -249
  247. package/dist/types/types/datasets/currency.d.ts +25 -25
  248. package/dist/types/types/datasets/province-code.d.ts +46 -46
  249. package/dist/types/types/datasets/state-code.d.ts +84 -84
  250. package/dist/types/types/errors/entity-problems.d.ts +3 -4
  251. package/dist/types/types/form-rules.d.ts +2 -2
  252. package/dist/types/utils/api/processValidationErrors.d.ts +2 -2
  253. package/dist/types/utils/birthDateUtils.d.ts +3 -3
  254. package/dist/types/utils/decisionMaker.d.ts +4 -3
  255. package/dist/types/utils/decisionMakerRoles.d.ts +4 -3
  256. package/dist/types/utils/entityAssociationUtil.d.ts +4 -5
  257. package/dist/types/utils/entityStatusUtil.d.ts +3 -3
  258. package/dist/types/utils/formUtils.d.ts +2 -2
  259. package/dist/types/utils/getDisplayErrorMessage.d.ts +2 -2
  260. package/dist/types/utils/getName.d.ts +2 -2
  261. package/dist/types/utils/makeSelectItemForRole.d.ts +2 -2
  262. package/dist/types/utils/regex/patternValidators.d.ts +1 -0
  263. package/dist/types/utils/roleMetadata.d.ts +3 -3
  264. package/dist/types/utils/translation.d.ts +40 -0
  265. package/dist/{useMultiForm-CR4hzuCc.js → useMultiForm-ChxUZ4e7.js} +10 -5
  266. package/dist/{useOnboardingStatus-Dqs20dD8.js → useOnboardingStatus-1BQlEPEi.js} +2 -2
  267. package/dist/{useTermsOfServiceStatus-BTFnYGYb.js → useTermsOfServiceStatus-BaVCmUdo.js} +2 -2
  268. package/dist/{useUpdateLegalEntity-DZmx_k0Y.js → useUpdateLegalEntity-LE_Kt3am.js} +2 -2
  269. package/dist/{utils-Dbw9j-fF.js → utils-DmcbDJEd.js} +17 -17
  270. package/dist/{validate-PXGKct7b.js → validate-B2VmmEPC.js} +2 -2
  271. package/dist/{validate-sqPOCY2c.js → validate-D66zPhDG.js} +2 -2
  272. package/dist/view-verification-status-VFcBydkR.js +21 -0
  273. package/package.json +5 -30
  274. package/dist/DecisionMakers-DD4_MCdo.js +0 -217
  275. package/dist/LandingLayout-CYvWj-yQ.js +0 -139
  276. package/dist/ManagePCIComponent-DOrKClpc.js +0 -33
  277. package/dist/RootBusinessDetailsPage-CO4mL-OT.js +0 -42
  278. package/dist/_plugin-vue_export-helper-CgYpM5kA.js +0 -19
  279. package/dist/adyen-manage-pci.js +0 -48
  280. package/dist/adyen-sign-pci.js +0 -62
  281. package/dist/adyen-terms-of-service.vue_vue_type_script_lang-BD4hndWg.js +0 -42
  282. package/dist/adyen-transfer-instrument.vue_vue_type_script_lang-BE-ro1iH.js +0 -53
  283. package/dist/css-BhF49TbR.js +0 -24
  284. package/dist/json-CYfI6iyy.js +0 -31
  285. package/dist/plaintext-DqowNgbq.js +0 -17
  286. package/dist/preact/adyen-individual.js +0 -15
  287. package/dist/preact/adyen-manage-individual.js +0 -15
  288. package/dist/preact/adyen-terms-of-service.js +0 -16
  289. package/dist/preact/adyen-transfer-instrument.js +0 -16
  290. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationDisclaimer/IdVerificationDisclaimer.d.ts +0 -1
  291. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationHeader/IdVerificationHeader.d.ts +0 -1
  292. package/dist/types/embeds/individual/AdyenIndividualPreact.d.ts +0 -3
  293. package/dist/types/embeds/manage-individual/AdyenManageIndividualPreact.d.ts +0 -3
  294. package/dist/types/embeds/manage-pci/AdyenManagePci.d.ts +0 -12
  295. package/dist/types/embeds/manage-pci/adyen-manage-pci.d.ts +0 -1
  296. package/dist/types/embeds/manage-pci/adyen-manage-pci.types.d.ts +0 -39
  297. package/dist/types/embeds/sign-pci/AdyenSignPci.d.ts +0 -15
  298. package/dist/types/embeds/sign-pci/adyen-sign-pci.d.ts +0 -1
  299. package/dist/types/embeds/sign-pci/adyen-sign-pci.types.d.ts +0 -43
  300. package/dist/types/embeds/terms-of-service/AdyenTermsOfServicePreact.d.ts +0 -3
  301. package/dist/types/embeds/transfer-instrument/AdyenTransferInstrumentPreact.d.ts +0 -3
  302. package/dist/useSalesChannelsSettings-CLSu5OoN.js +0 -51
  303. package/dist/view-verification-status-DTkA8PtO.js +0 -20
  304. package/dist/vue/adyen-individual.js +0 -53
  305. package/dist/vue/adyen-manage-individual.js +0 -56
  306. package/dist/vue/adyen-terms-of-service.js +0 -28
  307. package/dist/vue/adyen-transfer-instrument.js +0 -30
  308. package/dist/yaml-tUhjVy56.js +0 -22
@@ -2,21 +2,21 @@
2
2
  * @description These are the available scenarios matching the API
3
3
  * kycexternalapi/src/main/java/com/adyen/services/kycexternalapi/entity/Scenario.java
4
4
  */
5
- export declare const enum Scenarios {
6
- L = "L",
7
- L0 = "L0",
8
- L1 = "L1",
9
- L1_ID = "L1_ID",
10
- L1_IDO = "L1_IDO",
11
- L1_NAT = "L1_NAT",
12
- L1_IDDOC = "L1_IDDOC",
13
- L2 = "L2",
14
- L_REGDOC = "L_REGDOC",
15
- L_TAXDOC = "L_TAXDOC",
16
- L_PROOFOFADDRESS = "L_PROOFOFADDRESS",
17
- L_PH = "L_PH",
18
- L_MOTION = "L_MOTION",
19
- L_TAXINFO = "L_TAXINFO",
20
- L_BAFIN = "L_BAFIN"
21
- }
22
- export type Scenario = `${Scenarios}`;
5
+ export declare const Scenarios: {
6
+ readonly L: "L";
7
+ readonly L0: "L0";
8
+ readonly L1: "L1";
9
+ readonly L1_ID: "L1_ID";
10
+ readonly L1_IDO: "L1_IDO";
11
+ readonly L1_NAT: "L1_NAT";
12
+ readonly L1_IDDOC: "L1_IDDOC";
13
+ readonly L2: "L2";
14
+ readonly L_REGDOC: "L_REGDOC";
15
+ readonly L_TAXDOC: "L_TAXDOC";
16
+ readonly L_PROOFOFADDRESS: "L_PROOFOFADDRESS";
17
+ readonly L_PH: "L_PH";
18
+ readonly L_MOTION: "L_MOTION";
19
+ readonly L_TAXINFO: "L_TAXINFO";
20
+ readonly L_BAFIN: "L_BAFIN";
21
+ };
22
+ export type Scenario = (typeof Scenarios)[keyof typeof Scenarios];
@@ -13,6 +13,7 @@ interface NameLocalization {
13
13
  export interface Individual {
14
14
  birthData?: {
15
15
  dateOfBirth: string;
16
+ placeOfBirth?: string;
16
17
  };
17
18
  email?: string;
18
19
  identificationData?: {
@@ -1,4 +1,4 @@
1
- import type { CountryCodes } from '../../../types/datasets/country-code';
1
+ import type { CountryCode } from '../../../types/datasets/country-code';
2
2
  import type { Address } from './address';
3
3
  import type { FinancialReport } from './financialReport';
4
4
  import type { TaxInformation, VatAbsenceReason } from './organization';
@@ -11,7 +11,7 @@ interface Localization {
11
11
  export interface LegalArrangement {
12
12
  name: string;
13
13
  localization?: Localization[];
14
- countryOfGoverningLaw: CountryCodes;
14
+ countryOfGoverningLaw: CountryCode;
15
15
  registeredAddress: Address;
16
16
  description?: string;
17
17
  doingBusinessAs?: string;
@@ -2,10 +2,10 @@ import type { GuidanceQuestionValue } from '../../../components/Individual/forms
2
2
  import type { SettlorExemptionReason } from '../../../components/Trust/forms/TrustRoleAndEntityType/types';
3
3
  import type { MixpanelProperty } from '../../user-events';
4
4
  import type { DecisionMakerType } from './decision-maker-type';
5
- import type { LegalEntityType } from './legal-entity-type';
5
+ import type { LegalEntityType, LegalEntityTypes } from './legal-entity-type';
6
6
  import type { TrustMemberType } from './trust-member-type';
7
7
  import type { UnincorporatedPartnershipMemberType } from './unincorporated-partnership';
8
- export type LegalEntityAssociationType = DecisionMakerType | TrustMemberType | LegalEntityType.TRUST | LegalEntityType.SOLE_PROPRIETORSHIP | LegalEntityType.UNINCORPORATED_PARTNERSHIP | UnincorporatedPartnershipMemberType | 'legalRepresentative' | 'immediateParentCompany' | 'ultimateParentCompany';
8
+ export type LegalEntityAssociationType = DecisionMakerType | TrustMemberType | typeof LegalEntityTypes.TRUST | typeof LegalEntityTypes.SOLE_PROPRIETORSHIP | typeof LegalEntityTypes.UNINCORPORATED_PARTNERSHIP | UnincorporatedPartnershipMemberType | 'legalRepresentative' | 'immediateParentCompany' | 'ultimateParentCompany';
9
9
  export type LegalRepresentativeRelationshipType = 'parent' | 'guardian';
10
10
  export interface LegalEntityAssociation {
11
11
  [key: string]: MixpanelProperty;
@@ -1,7 +1,8 @@
1
- export declare enum LegalEntityType {
2
- INDIVIDUAL = "individual",
3
- ORGANIZATION = "organization",
4
- TRUST = "trust",
5
- SOLE_PROPRIETORSHIP = "soleProprietorship",
6
- UNINCORPORATED_PARTNERSHIP = "unincorporatedPartnership"
7
- }
1
+ export type LegalEntityType = (typeof LegalEntityTypes)[keyof typeof LegalEntityTypes];
2
+ export declare const LegalEntityTypes: {
3
+ readonly INDIVIDUAL: "individual";
4
+ readonly ORGANIZATION: "organization";
5
+ readonly TRUST: "trust";
6
+ readonly SOLE_PROPRIETORSHIP: "soleProprietorship";
7
+ readonly UNINCORPORATED_PARTNERSHIP: "unincorporatedPartnership";
8
+ };
@@ -1,8 +1,8 @@
1
- export declare enum TrustMemberTypes {
2
- DEFINED_BENEFICIARY = "definedBeneficiary",
3
- UNDEFINED_BENEFICIARY = "undefinedBeneficiary",
4
- PROTECTOR = "protector",
5
- TRUSTEE = "secondaryTrustee",
6
- SETTLOR = "settlor"
7
- }
8
- export type TrustMemberType = `${TrustMemberTypes}`;
1
+ export declare const TrustMemberTypes: {
2
+ readonly DEFINED_BENEFICIARY: "definedBeneficiary";
3
+ readonly UNDEFINED_BENEFICIARY: "undefinedBeneficiary";
4
+ readonly PROTECTOR: "protector";
5
+ readonly TRUSTEE: "secondaryTrustee";
6
+ readonly SETTLOR: "settlor";
7
+ };
8
+ export type TrustMemberType = (typeof TrustMemberTypes)[keyof typeof TrustMemberTypes];
@@ -1,4 +1,5 @@
1
- export declare enum TrustedFieldsProvider {
2
- SINGPASS = "singpass",
3
- KOMPANY = "kompany"
4
- }
1
+ export type TrustedFieldsProvider = (typeof TrustedFieldsProviders)[keyof typeof TrustedFieldsProviders];
2
+ export declare const TrustedFieldsProviders: {
3
+ readonly SINGPASS: "singpass";
4
+ readonly KOMPANY: "kompany";
5
+ };
@@ -2,9 +2,9 @@ import type { LegalArrangement } from './legal-arrangement';
2
2
  export type UnincorporatedPartnership = LegalArrangement & {
3
3
  type?: 'generalPartnership';
4
4
  };
5
- export declare enum UnincorporatedPartnershipMemberTypes {
6
- SECONDARY_PARTNER = "secondaryPartner",
7
- OWNER = "uboThroughOwnership",
8
- CONTROLLING_PERSON = "uboThroughControl"
9
- }
10
- export type UnincorporatedPartnershipMemberType = `${UnincorporatedPartnershipMemberTypes}`;
5
+ export declare const UnincorporatedPartnershipMemberTypes: {
6
+ readonly SECONDARY_PARTNER: "secondaryPartner";
7
+ readonly OWNER: "uboThroughOwnership";
8
+ readonly CONTROLLING_PERSON: "uboThroughControl";
9
+ };
10
+ export type UnincorporatedPartnershipMemberType = (typeof UnincorporatedPartnershipMemberTypes)[keyof typeof UnincorporatedPartnershipMemberTypes];
@@ -1,13 +1,14 @@
1
1
  import type { ErrorCode } from '../../../types/errors/error-message';
2
2
  import type { CapabilityName } from './capability';
3
3
  import type { RemediatingAction } from './remediating-action';
4
- export declare enum VerificationErrorType {
5
- DATA_MISSING = "dataMissing",
6
- INVALID_INPUT = "invalidInput",
7
- PENDING_STATUS = "pendingStatus",
8
- DATA_REVIEW = "dataReview",
9
- REJECTED = "rejected"
10
- }
4
+ export type VerificationErrorType = (typeof VerificationErrorTypes)[keyof typeof VerificationErrorTypes];
5
+ export declare const VerificationErrorTypes: {
6
+ readonly DATA_MISSING: "dataMissing";
7
+ readonly INVALID_INPUT: "invalidInput";
8
+ readonly PENDING_STATUS: "pendingStatus";
9
+ readonly DATA_REVIEW: "dataReview";
10
+ readonly REJECTED: "rejected";
11
+ };
11
12
  export interface VerificationError {
12
13
  capabilities?: CapabilityName[];
13
14
  code: ErrorCode;
@@ -1,6 +1,7 @@
1
- export declare enum VerificationStatus {
2
- VALID = "valid",
3
- PENDING = "pending",
4
- INVALID = "invalid",
5
- REJECTED = "rejected"
6
- }
1
+ export type VerificationStatus = (typeof VerificationStatuses)[keyof typeof VerificationStatuses];
2
+ export declare const VerificationStatuses: {
3
+ readonly VALID: "valid";
4
+ readonly PENDING: "pending";
5
+ readonly INVALID: "invalid";
6
+ readonly REJECTED: "rejected";
7
+ };
@@ -1,10 +1,11 @@
1
- export declare enum OnboardingStatus {
2
- AWAITING_DATA = "AWAITING_DATA",
3
- IN_REVIEW = "IN_REVIEW",
4
- UNSUCCESSFUL = "UNSUCCESSFUL",
5
- REJECTED = "REJECTED",// final state - no status changes further
6
- VERIFIED = "VERIFIED"
7
- }
1
+ export type OnboardingStatus = (typeof OnboardingStatuses)[keyof typeof OnboardingStatuses];
2
+ export declare const OnboardingStatuses: {
3
+ readonly AWAITING_DATA: "AWAITING_DATA";
4
+ readonly IN_REVIEW: "IN_REVIEW";
5
+ readonly UNSUCCESSFUL: "UNSUCCESSFUL";
6
+ readonly REJECTED: "REJECTED";
7
+ readonly VERIFIED: "VERIFIED";
8
+ };
8
9
  /** @deprecated - rely on contract */
9
10
  export interface OnboardingLinkConfig {
10
11
  locale: string;
@@ -6,7 +6,7 @@ import type { AdyenBusinessFinancingProps } from './adyen-business-financing.typ
6
6
  type AdyenBusinessFinancingElement = HTMLElement & AdyenBusinessFinancingProps;
7
7
  type AdyenBusinessFinancingElementProps = ElementProps<AdyenBusinessFinancingProps>;
8
8
  export declare class AdyenBusinessFinancing extends EmbedBaseElement<AdyenBusinessFinancingElementProps> {
9
- onSubmitSuccess?(data: BusinessFinancingSchema): void;
9
+ onComplete?(data: BusinessFinancingSchema): void;
10
10
  constructor(props: AdyenBusinessFinancingElementProps);
11
11
  render(): AdyenBusinessFinancingElement;
12
12
  }
@@ -6,7 +6,12 @@ import type { BaseEmbedProps } from '../baseEmbedProps';
6
6
  * @see https://docs.adyen.com/platforms/onboard-users/components/transfer-instrument/#initialize-components
7
7
  */
8
8
  export interface AdyenBusinessFinancingProps extends BaseEmbedProps {
9
- onSubmitSuccess?(data: BusinessFinancingSchema): void;
9
+ /** Invoked when form has been completed by user */
10
+ onComplete?(data: BusinessFinancingSchema): void;
11
+ /** Defaults to inline. If modal is selected Component shows as modal */
12
+ view?: 'modal' | 'inline';
13
+ /** Invoked only when view='modal', triggers when user clicks the close modal button */
14
+ onClose?(): void;
10
15
  }
11
16
  declare module 'preact/jsx-runtime' {
12
17
  namespace JSX {
@@ -1,9 +1,14 @@
1
1
  import type { DOMAttributes } from 'react';
2
2
  import type { DefineComponent } from 'vue';
3
+ import type { IndividualSchema } from '../../components/Individual/forms/Individual/types';
3
4
  import type { BaseEmbedProps } from '../baseEmbedProps';
4
5
  export interface AdyenIndividualProps extends BaseEmbedProps {
5
- /** View, can be `inline` or `modal`. Defaults to `inline` */
6
+ /** Invoked when form has been completed by user */
7
+ onComplete?(data: IndividualSchema): void;
8
+ /** Defaults to inline. If modal is selected Component shows as modal */
6
9
  view?: 'modal' | 'inline';
10
+ /** Invoked only when view='modal', triggers when user clicks the close modal button */
11
+ onClose?(): void;
7
12
  }
8
13
  declare module 'preact/jsx-runtime' {
9
14
  namespace JSX {
@@ -5,6 +5,7 @@ import type { AdyenOnboardingProps } from './adyen-onboarding.types';
5
5
  type AdyenOnboardingElement = HTMLElement & AdyenOnboardingProps;
6
6
  type AdyenOnboardingElementProps = ElementProps<AdyenOnboardingProps>;
7
7
  export declare class AdyenOnboarding extends EmbedBaseElement<AdyenOnboardingElementProps> {
8
+ openbankingpartnerconfigid?: string;
8
9
  constructor(props: AdyenOnboardingElementProps);
9
10
  render(): AdyenOnboardingElement;
10
11
  }
@@ -1,7 +1,10 @@
1
1
  import type { DOMAttributes } from 'react';
2
2
  import type { DefineComponent } from 'vue';
3
3
  import type { BaseEmbedProps } from '../baseEmbedProps';
4
- export type AdyenOnboardingProps = BaseEmbedProps;
4
+ export interface AdyenOnboardingProps extends BaseEmbedProps {
5
+ /** ConfigId setup to use open banking integration with Plaid **/
6
+ openbankingpartnerconfigid?: string;
7
+ }
5
8
  declare module 'preact/jsx-runtime' {
6
9
  namespace JSX {
7
10
  interface IntrinsicElements {
@@ -1,9 +1,15 @@
1
1
  import type { DOMAttributes } from 'react';
2
2
  import type { DefineComponent } from 'vue';
3
+ import type { OnAcceptPayload } from '../../components/EmbeddedDropins/AcceptTermsOfServiceComponent/AcceptTermsOfServiceComponent';
3
4
  import type { BaseEmbedProps } from '../baseEmbedProps';
4
5
  export interface AdyenTermsOfServiceProps extends BaseEmbedProps {
5
- /** View, can be inline or modal. Defaults to inline */
6
+ /** Invoked every time a contract is accepted. Typically there are more then one documents to accept. */
7
+ onAccept?(data: OnAcceptPayload): void;
8
+ /** Invoked when form has been completed by user */
9
+ /** Defaults to inline. If modal is selected Component shows as modal */
6
10
  view?: 'modal' | 'inline';
11
+ /** Invoked only when view='modal', triggers when user clicks the close modal button */
12
+ onClose?(): void;
7
13
  }
8
14
  declare module 'preact/jsx-runtime' {
9
15
  namespace JSX {
@@ -8,7 +8,8 @@ type AdyenTransferInstrumentElementProps = ElementProps<AdyenTransferInstrumentP
8
8
  export declare class AdyenTransferInstrument extends EmbedBaseElement<AdyenTransferInstrumentElementProps> {
9
9
  view: 'modal' | 'inline';
10
10
  transferInstrumentId?: string;
11
- onSubmitSuccess?(d: PayoutDetailsSchema): void;
11
+ onComplete?(d: PayoutDetailsSchema): void;
12
+ openbankingpartnerconfigid?: string;
12
13
  constructor(props: AdyenTransferInstrumentElementProps);
13
14
  render(): AdyenTransferInstrumentElement;
14
15
  }
@@ -7,9 +7,14 @@ import type { BaseEmbedProps } from '../baseEmbedProps';
7
7
  */
8
8
  export interface AdyenTransferInstrumentProps extends BaseEmbedProps {
9
9
  transferinstrumentid?: string;
10
- /** View, can be inline or modal. Defaults to inline */
10
+ /** ConfigId setup to use open banking integration with Plaid **/
11
+ openbankingpartnerconfigid?: string;
12
+ /** Invoked when form has been completed by user */
13
+ onComplete?(data: PayoutDetailsSchema): void;
14
+ /** Defaults to inline. If modal is selected Component shows as modal */
11
15
  view?: 'modal' | 'inline';
12
- onSubmitSuccess?(d: PayoutDetailsSchema): void;
16
+ /** Invoked only when view='modal', triggers when user clicks the close modal button */
17
+ onClose?(): void;
13
18
  }
14
19
  declare module 'preact/jsx-runtime' {
15
20
  namespace JSX {
@@ -1,8 +1,8 @@
1
1
  import type { ExistingLegalEntity } from '../../core/models/api/legal-entity';
2
- import { IntroductionScreens } from '../../components/Shared/Introduction/types';
3
- import { TaskTypes } from '../../stores/globalStore/taskTypes';
2
+ import { type IntroductionScreen } from '../../components/Shared/Introduction/types';
3
+ import { type TaskType } from '../../stores/globalStore/taskTypes';
4
4
  export interface UseIntroductionScreensProps {
5
5
  legalEntity: ExistingLegalEntity;
6
- tasks: TaskTypes[];
6
+ tasks: TaskType[];
7
7
  }
8
- export declare const useIntroductionScreens: ({ legalEntity, tasks }: UseIntroductionScreensProps) => IntroductionScreens[] | undefined;
8
+ export declare const useIntroductionScreens: ({ legalEntity, tasks }: UseIntroductionScreensProps) => IntroductionScreen[] | undefined;
@@ -2,12 +2,13 @@ import type { Translatable } from '../../../types';
2
2
  import type { ExistingLegalEntity } from '../../core/models/api/legal-entity';
3
3
  import type { UniqueEntityAssociation } from '../../components/Shared/EntityAssociation/types';
4
4
  import type { AccountHolderOption } from '../../types/accountHolder';
5
- declare enum SingpassMyInfoLoginActionType {
6
- LOADING = "LOADING",
7
- SUCCESS = "SUCCESS",
8
- FAILURE = "FAILURE",
9
- RESET = "RESET"
10
- }
5
+ export type SingpassMyInfoLoginActionType = (typeof SingpassMyInfoLoginActionTypes)[keyof typeof SingpassMyInfoLoginActionTypes];
6
+ declare const SingpassMyInfoLoginActionTypes: {
7
+ readonly LOADING: "LOADING";
8
+ readonly SUCCESS: "SUCCESS";
9
+ readonly FAILURE: "FAILURE";
10
+ readonly RESET: "RESET";
11
+ };
11
12
  interface SingpassMyInfoLoginAction {
12
13
  type: SingpassMyInfoLoginActionType;
13
14
  isLoading: boolean;
@@ -1,13 +1,14 @@
1
1
  import type { ExistingLegalEntity } from '../core/models/api/legal-entity';
2
2
  import type { AccountHolderOption } from '../types/accountHolder';
3
- export declare enum BusinessType {
4
- INDIVIDUAL = "individual",
5
- COMPANY = "company",
6
- INCORPORATED_PARTNERSHIP = "partnershipIncorporated",
7
- UNINCORPORATED_PARTNERSHIP = "partnershipUnincorporated",
8
- INDIVIDUAL_TRUSTEE = "individualTrustee",
9
- COMPANY_TRUSTEE = "companyTrustee",
10
- SOLE_PROPRIETORSHIP = "soleProprietorship",
11
- INCORPORATE_ASSOCIATION = "associationIncorporated"
12
- }
3
+ export type BusinessType = (typeof BusinessTypes)[keyof typeof BusinessTypes];
4
+ export declare const BusinessTypes: {
5
+ readonly INDIVIDUAL: "individual";
6
+ readonly COMPANY: "company";
7
+ readonly INCORPORATED_PARTNERSHIP: "partnershipIncorporated";
8
+ readonly UNINCORPORATED_PARTNERSHIP: "partnershipUnincorporated";
9
+ readonly INDIVIDUAL_TRUSTEE: "individualTrustee";
10
+ readonly COMPANY_TRUSTEE: "companyTrustee";
11
+ readonly SOLE_PROPRIETORSHIP: "soleProprietorship";
12
+ readonly INCORPORATE_ASSOCIATION: "associationIncorporated";
13
+ };
13
14
  export declare const useBusinessSetup: (legalEntityResponse: ExistingLegalEntity) => BusinessType | AccountHolderOption | undefined;
@@ -1,11 +1,11 @@
1
- import { TaskTypes } from '../stores/globalStore/taskTypes';
1
+ import { type TaskType } from '../stores/globalStore/taskTypes';
2
2
  import type { CapabilityProblems } from '../types/errors/capability-problems';
3
3
  interface UseDataMissingRemediationsProps {
4
4
  legalEntityId: string;
5
5
  problems: CapabilityProblems;
6
6
  }
7
7
  interface DataMissingRemediations {
8
- remediationMessages: Partial<Record<TaskTypes, string | undefined>>;
8
+ remediationMessages: Partial<Record<TaskType, string | undefined>>;
9
9
  }
10
10
  /**
11
11
  * @description A hook that parses a legal entities capability problems and maps its verification error codes to task specific remediation messages
@@ -5,7 +5,7 @@ import type { EntityProblems } from '../types/errors/entity-problems';
5
5
  import type { FormModelWithValidity } from '../types/form';
6
6
  import type { Form } from './useMultiForm/types';
7
7
  export interface FormComposer {
8
- handleNextClick(): void;
8
+ handleNextClick(updatedForms?: FormModelWithValidity[]): void;
9
9
  handleBackClick?(): void;
10
10
  gotoFormByFormIndex(index: number): void;
11
11
  activeForm: FormModelWithValidity;
@@ -1,9 +1,12 @@
1
1
  import type { JSX } from 'preact';
2
- import type { Form } from '../useForm/types';
2
+ import type { NestedErrorState, NestedValidState } from '../useMultiForm/types';
3
3
  import type { CountryCode } from '../../types/datasets/country-code';
4
4
  import type { FormUtils } from '../../utils/formUtils';
5
- interface UseLegalCompanyNameFieldProps<FormSchema> extends Omit<Form<FormSchema>, 'setFieldProblems' | 'setData' | 'setErrors' | 'setValid' | 'triggerValidation' | 'mergeForm' | 'resetToDefaultData' | 'schema'> {
5
+ interface UseLegalCompanyNameFieldProps<FormSchema> {
6
6
  data: FormSchema;
7
+ valid: NestedValidState<FormSchema>;
8
+ errors: NestedErrorState<FormSchema>;
9
+ fieldProblems: NestedValidState<FormSchema>;
7
10
  country: CountryCode;
8
11
  formUtils: FormUtils<FormSchema>;
9
12
  fieldOptions: {
@@ -19,7 +22,7 @@ export declare function useLegalCompanyNameField<FormSchema>({ data, valid, erro
19
22
  readonly: boolean;
20
23
  onInput: (e: any) => void;
21
24
  onBlur: (e: FocusEvent) => void;
22
- isValid: Record<keyof FormSchema, boolean>[keyof FormSchema];
25
+ isValid: NestedValidState<FormSchema>[keyof FormSchema];
23
26
  errorMessage: Record<keyof FormSchema, boolean | import("../../../types").Translatable>[keyof FormSchema];
24
27
  label: Partial<Record<keyof FormSchema, string>>[keyof FormSchema];
25
28
  helper: Partial<Record<keyof FormSchema, string>>[keyof FormSchema];
@@ -1,5 +1,5 @@
1
1
  import type { ExistingLegalEntity } from '../core/models/api/legal-entity';
2
- import { LegalEntityType } from '../core/models/api/legal-entity-type';
2
+ import { type LegalEntityType } from '../core/models/api/legal-entity-type';
3
3
  export interface UseLegalEntityTypeProps {
4
4
  legalEntity: ExistingLegalEntity;
5
5
  }
@@ -20,51 +20,50 @@ export interface FormState<InnerFormSchema> {
20
20
  dataStoreId?: string;
21
21
  local?: FormState<InnerFormSchema> | Partial<FormState<InnerFormSchema>>;
22
22
  }
23
+ export type FormName<T> = keyof {
24
+ [InnerFormName in keyof T]: T[InnerFormName];
25
+ };
26
+ export type NestedSchema<T> = T[keyof T];
23
27
  export interface Form<T> extends MultiFormState<T> {
24
- setData: (key: keyof NestedSchema<T>, value: FieldValue<NestedSchema<T>>, formName: FormName<T>) => void;
28
+ setData<InnerFormName extends keyof T>(key: keyof Required<T>[InnerFormName], value: FieldValue<NestedSchema<T>>, formName: InnerFormName): void;
25
29
  setFormData: <FN extends FormName<T>>(formName: FN, formData: T[FN]) => void;
26
- setValid: (key: keyof NestedSchema<T>, value: boolean, formName: FormName<T>) => void;
27
- setErrors: (key: keyof NestedSchema<T>, value: ValidationRuleResult | null, formName: FormName<T>) => void;
30
+ setValid<InnerFormName extends keyof T>(key: keyof Required<T>[InnerFormName], value: boolean, formName: InnerFormName): void;
31
+ setErrors<InnerFormName extends keyof T>(key: keyof Required<T>[InnerFormName], value: ValidationRuleResult | null, formName: InnerFormName): void;
28
32
  handleChangeFor<InnerFormName extends keyof T>(key: keyof Required<T>[InnerFormName], formName: InnerFormName, mode?: ValidatorMode): (e: any) => void;
29
- triggerValidation: (formName: FormName<T>, selectedSchema?: (keyof NestedSchema<T>)[]) => Promise<boolean>;
33
+ triggerValidation<InnerFormName extends keyof T>(formName: InnerFormName, selectedSchema?: Array<keyof Required<T>[InnerFormName]>): Promise<boolean>;
30
34
  resetToDefaultData: () => void;
31
35
  defaultData?: T;
32
36
  }
33
- export type FormName<T> = keyof {
34
- [InnerFormName in keyof T]: T[InnerFormName];
37
+ export type NestedErrorState<InnerFormSchema> = {
38
+ [FieldName in keyof InnerFormSchema]: ValidationRuleResult | null;
39
+ };
40
+ export type NestedValidState<InnerFormSchema> = {
41
+ [FieldName in keyof InnerFormSchema]: boolean;
42
+ };
43
+ export type MultiFormErrorState<TopLevelSchema> = {
44
+ [InnerFormName in keyof TopLevelSchema]: NestedErrorState<TopLevelSchema[InnerFormName]>;
45
+ };
46
+ export type MultiFormValidState<TopLevelSchema> = {
47
+ [InnerFormName in keyof TopLevelSchema]: NestedValidState<TopLevelSchema[InnerFormName]>;
35
48
  };
36
- export type NestedSchema<T> = T[keyof T];
37
49
  export type MultiFormState<T> = {
38
- requiredFields?: {
39
- [InnerFormName in keyof T]: Array<keyof T[InnerFormName]>;
40
- };
41
50
  data: T;
42
- errors: {
43
- [InnerFormName in keyof T]: {
44
- [FieldName in keyof T[InnerFormName]]: ValidationRuleResult | null;
45
- };
46
- };
47
- asyncErrors: {
48
- [InnerFormName in keyof T]: {
49
- [FieldName in keyof T[InnerFormName]]: ValidationRuleResult | null;
50
- };
51
- };
52
- valid: {
53
- [InnerFormName in keyof T]: {
54
- [FieldName in keyof T[InnerFormName]]: boolean;
55
- };
56
- };
57
- fieldProblems: {
58
- [InnerFormName in keyof T]: {
59
- [FieldName in keyof T[InnerFormName]]: boolean;
60
- };
51
+ errors: MultiFormErrorState<T>;
52
+ asyncErrors: MultiFormErrorState<T>;
53
+ valid: MultiFormValidState<T>;
54
+ fieldProblems: MultiFormValidState<T>;
55
+ allFields?: {
56
+ [InnerFormName in keyof T]: Array<keyof T[InnerFormName]>;
61
57
  };
62
- obscuredFields?: {
58
+ requiredFields?: {
63
59
  [InnerFormName in keyof T]: Array<keyof T[InnerFormName]>;
64
60
  };
65
61
  optionalFields?: {
66
62
  [InnerFormName in keyof T]: Array<keyof T[InnerFormName]>;
67
63
  };
64
+ obscuredFields?: {
65
+ [InnerFormName in keyof T]: Array<keyof T[InnerFormName]>;
66
+ };
68
67
  trustedFields?: {
69
68
  [InnerFormName in keyof T]: Array<keyof T[InnerFormName]>;
70
69
  };
@@ -77,11 +76,6 @@ export type MultiFormState<T> = {
77
76
  defaultData?: T;
78
77
  };
79
78
  export interface MultiFormOptions<T> {
80
- requiredFields?: {
81
- [InnerFormName in keyof T]: (keyof Required<T[InnerFormName]>)[];
82
- } | ((data: T | undefined) => {
83
- [InnerFormName in keyof T]: (keyof T[InnerFormName])[];
84
- });
85
79
  defaultData?: T;
86
80
  rules?: {
87
81
  [InnerFormName in keyof T]: ValidatorRules<T[InnerFormName]>;
@@ -101,12 +95,20 @@ export interface MultiFormOptions<T> {
101
95
  [FieldName in keyof T[InnerFormName]]: boolean;
102
96
  };
103
97
  };
104
- obscuredFields?: {
98
+ allFields?: {
105
99
  [InnerFormName in keyof T]: Array<keyof T[InnerFormName]>;
106
100
  };
101
+ requiredFields?: {
102
+ [InnerFormName in keyof T]: (keyof Required<T[InnerFormName]>)[];
103
+ } | ((data: T | undefined) => {
104
+ [InnerFormName in keyof T]: (keyof T[InnerFormName])[];
105
+ });
107
106
  optionalFields?: {
108
107
  [InnerFormName in keyof T]: Array<keyof T[InnerFormName]>;
109
108
  };
109
+ obscuredFields?: {
110
+ [InnerFormName in keyof T]: Array<keyof T[InnerFormName]>;
111
+ };
110
112
  trustedFields?: {
111
113
  [InnerFormName in keyof T]: Array<keyof T[InnerFormName]>;
112
114
  };
@@ -1,2 +1,2 @@
1
1
  import type { Form, MultiFormOptions } from './types';
2
- export declare function useMultiForm<FormSchema>({ requiredFields, defaultData, rules, asyncRules, fieldProblems, obscuredFields, optionalFields, trustedFields, formatters, }: MultiFormOptions<FormSchema>): Form<FormSchema>;
2
+ export declare function useMultiForm<FormSchema>({ defaultData, rules, asyncRules, fieldProblems, allFields, requiredFields, obscuredFields, optionalFields, trustedFields, formatters, }: MultiFormOptions<FormSchema>): Form<FormSchema>;
@@ -5,13 +5,13 @@ import type { LoadingStatus } from '../components/ui/atoms/LoaderWrapper/constan
5
5
  import type { TopLevelDataSchema } from '../context/StateContext/types';
6
6
  import type { AccountFormatRequirements, PayoutAccountFormats } from '../datasets/generators/getAccountFormatForCountry';
7
7
  import type { LegalEntityType } from '../core/models/api/legal-entity-type';
8
- import type { TaskTypes } from '../stores/globalStore/taskTypes';
8
+ import type { TaskType } from '../stores/globalStore/taskTypes';
9
9
  import type { CountryCode } from '../types/datasets/country-code';
10
10
  import type { FormConfiguration } from '../types/form-configuration';
11
11
  import type { BankAccountFormatType } from '../components/BankAccount/fields/BankAccountFormat/types';
12
12
  export type ParseConfiguration<TLDS extends TopLevelDataSchema> = (configuration: {
13
13
  scenarios: Scenario[];
14
- taskList?: TaskTypes[];
14
+ taskList?: TaskType[];
15
15
  provider?: BankVerificationVendor;
16
16
  bankVerificationProviders?: Partial<Record<CountryCode, string>>;
17
17
  requiredFields: AccountFormatRequirements | undefined;
@@ -12,6 +12,7 @@ export declare class Language {
12
12
  /**
13
13
  * Returns a translated string from a key in the current {@link Language.locale}
14
14
  * @returns Translated string in the user's locale
15
+ * @deprecated we now have i18next for i18n, check out {@link /src/language/README.md} for more details and examples
15
16
  */
16
17
  get(translatable: Translatable, translationOptions?: GetTranslationOptions): string;
17
18
  }
@@ -1,5 +1,6 @@
1
+ import type { TFunction } from 'i18next';
1
2
  import type { CountryCode } from '../types/datasets/country-code';
2
- import type { TranslationItem, TranslationKey, Translations } from './types';
3
+ import type { Translatable, TranslationItem, TranslationKey, Translations } from './types';
3
4
  /**
4
5
  * Matches a string with one of the locales
5
6
 
@@ -39,3 +40,12 @@ export declare const getTranslationByKey: (translations: Translations, key: Tran
39
40
  * // returns 'en'
40
41
  */
41
42
  export declare const getLanguageCode: (locale: string) => string;
43
+ /**
44
+ * A helper function to translate a `Translatable` type, which can be either a simple string key
45
+ * or an object with a key and values for interpolation. It uses the provided `i18next` `t` function.
46
+ *
47
+ * @param t - The `i18next` translation function.
48
+ * @param translatable - The string or object to translate.
49
+ * @returns The translated string.
50
+ */
51
+ export declare const translateStringOrObject: (t: TFunction, translatable: Translatable) => string;