@adyen/kyc-components 3.70.4 → 3.71.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.
Files changed (139) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-BI-piG2u.js → AcceptTermsOfServiceComponent-p5vyGenb.js} +4 -4
  2. package/dist/{AccountSetupRejected-Dn8WSlT3.js → AccountSetupRejected-CPzKdZUK.js} +3 -3
  3. package/dist/{BusinessDetailsDropin-CoRAL_0f.js → BusinessDetailsDropin-Dg7J3G2V.js} +5 -5
  4. package/dist/{BusinessTypeSelection-C5IzfnzR.js → BusinessTypeSelection-mgdNfOU5.js} +4 -4
  5. package/dist/{CXEL7IU7-Cc1zZH1V.js → CXEL7IU7-B-PizVWN.js} +2 -2
  6. package/dist/{CreateIndividualComponent-wlhR96DR.js → CreateIndividualComponent-Dx5hGmEy.js} +1327 -1133
  7. package/dist/{CustomerSupport-Dm02rX5E.js → CustomerSupport-98CYpA41.js} +3 -3
  8. package/dist/{DebugModal-BJGcqLa7.js → DebugModal-BoVIAdNv.js} +8 -8
  9. package/dist/{DecisionMakers-C9VRyN-z.js → DecisionMakers-DFgUeutx.js} +4 -4
  10. package/dist/{EmbedShell-hJSmRFU-.js → EmbedShell-DSXInTYF.js} +3 -3
  11. package/dist/{EventEmitter-Cq-82eYj.js → EventEmitter-DtooDxHU.js} +369 -347
  12. package/dist/{HASRA6WW-D4n872gE.js → HASRA6WW-DxkvByPD.js} +1 -1
  13. package/dist/{I3HPI4QX-CYgU-Kw-.js → I3HPI4QX-C-5-x7l7.js} +2 -2
  14. package/dist/{Introduction-CC0_eYC9.js → Introduction-DuSMy0Ne.js} +4 -4
  15. package/dist/{Review-wnQ1x7NE.js → Review-XSWK61VC.js} +3 -3
  16. package/dist/{SingpassSelection-BXSPue0v.js → SingpassSelection-DqAFFAwC.js} +2 -2
  17. package/dist/{SourceOfFunds.module-Cs51Y5p9.js → SourceOfFunds.module-C3sMBsv_.js} +2 -6
  18. package/dist/{SourceOfFundsDropin-SJgyVC2h.js → SourceOfFundsDropin-UKDYo_95.js} +12 -18
  19. package/dist/{TaskItemStatus-CuAn_5X4.js → TaskItemStatus-CPeyXQ5r.js} +2 -2
  20. package/dist/{TaxReportingDropin-B-PMN93r.js → TaxReportingDropin-BScwyVgO.js} +9 -9
  21. package/dist/{TrustDropin-DWudYQtC.js → TrustOuter-D-4RqJtF.js} +177 -155
  22. package/dist/adyen-kyc-components.js +1 -1
  23. package/dist/adyenConfig.js +2 -2
  24. package/dist/{bg-BG-Ce7O3eFv.js → bg-BG-CzEF3tzV.js} +25 -2
  25. package/dist/{core-CEOtQFGb.js → core-DQ8jXm-N.js} +7400 -7361
  26. package/dist/{cs-CZ-CrC0OM0G.js → cs-CZ-TMjslGp_.js} +25 -2
  27. package/dist/{css-CiEdFdmv.js → css-C15RsIEG.js} +1 -1
  28. package/dist/{da-DK-qSfql5UY.js → da-DK-DWzvDWZJ.js} +25 -2
  29. package/dist/{de-DE-3LOqfpiA.js → de-DE-BtIL-7gp.js} +25 -2
  30. package/dist/digital-wallet-with-local-currencies-POeLD54e.js +46 -0
  31. package/dist/{el-GR-CTuJ6hn-.js → el-GR-DHSSlqbw.js} +25 -2
  32. package/dist/{es-ES-DgVFlRYZ.js → es-ES-OwkE9-Cu.js} +25 -2
  33. package/dist/{et-EE-Bgft_08b.js → et-EE-DvixWnLd.js} +25 -2
  34. package/dist/{fi-FI-CQW_GIPa.js → fi-FI-DZiXWe_g.js} +25 -2
  35. package/dist/{fr-FR-dNqcyG5e.js → fr-FR-BBwiWhiT.js} +25 -2
  36. package/dist/funds-in-D8bj0aoE.js +21 -0
  37. package/dist/house-B6sNRj-B.js +21 -0
  38. package/dist/{hr-HR-C8WCFUb9.js → hr-HR-DJYofWKU.js} +25 -2
  39. package/dist/{hu-HU-OdcVNvSN.js → hu-HU-k9c6wZld.js} +25 -2
  40. package/dist/individual.js +4 -4
  41. package/dist/{it-IT-CPBQVRCK.js → it-IT-oOwbWW3K.js} +25 -2
  42. package/dist/{ja-JP-Bh4irw6C.js → ja-JP-CT3g8Hhn.js} +25 -2
  43. package/dist/{json-DpUNFPoc.js → json-GYEwMhCl.js} +1 -1
  44. package/dist/{lt-LT-vglMkJcJ.js → lt-LT-CVHIsEF8.js} +25 -2
  45. package/dist/{lv-LV-BbjKCqpN.js → lv-LV-BFx0cvZ2.js} +25 -2
  46. package/dist/{nl-NL-D_O0KNNq.js → nl-NL-rmSZu4Rf.js} +25 -2
  47. package/dist/{no-NO-qkYiqc6y.js → no-NO-BOnQvimN.js} +25 -2
  48. package/dist/passport-front-green-BL4HmtsB.js +232 -0
  49. package/dist/{pl-PL-Dt_cU3CC.js → pl-PL-5j22An4E.js} +25 -2
  50. package/dist/plaid-logo-CtActXTN.js +14 -0
  51. package/dist/{plaintext-BgkI_7Jp.js → plaintext-6k9Dv3sw.js} +1 -1
  52. package/dist/{pt-PT-ikqIUFTg.js → pt-PT-DP8U1qyu.js} +25 -2
  53. package/dist/reporting-DlRoibD7.js +17 -0
  54. package/dist/{ro-RO-gzqKZPHh.js → ro-RO-BTdtoC6P.js} +25 -2
  55. package/dist/{sk-SK-BY3g56qX.js → sk-SK-DYTx4mOB.js} +25 -2
  56. package/dist/{sl-SI-HorvDYvW.js → sl-SI-D8CiUN69.js} +25 -2
  57. package/dist/style.css +91 -70
  58. package/dist/styles-CLV89_hH.js +91 -70
  59. package/dist/{sv-SE-X6UKX96z.js → sv-SE-Daslxeqr.js} +25 -2
  60. package/dist/tax-reporting-graph-DjzwRgE6.js +504 -0
  61. package/dist/terms-of-service.js +4 -4
  62. package/dist/types/api/taskStatus/useTaskStatus.d.ts +1 -1
  63. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/allowedBankCountriesPerCountry.d.ts +0 -1
  64. package/dist/types/components/EFP/mapping/{highExposureKeyMappings.d.ts → businessFinancingKeyMappings.d.ts} +2 -2
  65. package/dist/types/components/EFP/mapping/mapBusinessFinancingToLegalEntity.d.ts +3 -0
  66. package/dist/types/components/EFP/mapping/mapLegalEntityToBusinessFinancing.d.ts +3 -0
  67. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/AdditionalFieldsForBusinessFinancingCompany.d.ts +2 -0
  68. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/AdditionalFieldsForBusinessFinancingParentCompany.d.ts +2 -0
  69. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/AdditionalFieldsForBusinessFinancingUltimateParentCompany.d.ts +2 -0
  70. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingBasicCompanyInformation.d.ts +3 -0
  71. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingBusinessInformation.d.ts +3 -0
  72. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingDropin.d.ts +2 -0
  73. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +3 -0
  74. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingLegalInformation.d.ts +2 -0
  75. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingOwnershipStructure.d.ts +3 -0
  76. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingRegisteredAddress.d.ts +3 -0
  77. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/mandatoryFields.d.ts +3 -0
  78. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +211 -0
  79. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +14 -0
  80. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +6 -0
  81. package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/BusinessFinancingComponent.d.ts +2 -0
  82. package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +9 -0
  83. package/dist/types/components/Individual/forms/IndividualOnfido/DataConflictsModal/DataConflictsModal.d.ts +3 -2
  84. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +3 -1
  85. package/dist/types/components/Individual/helpers/roleUtils.d.ts +3 -0
  86. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  87. package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +1 -1
  88. package/dist/types/components/Trust/forms/Trust/types.d.ts +5 -6
  89. package/dist/types/components/Trust/mapping/mapLegalEntityToTrust.d.ts +2 -2
  90. package/dist/types/components/Trust/tasks/TrustDropin/TrustDropin.d.ts +1 -1
  91. package/dist/types/components/Trust/tasks/TrustDropin/TrustOuter.d.ts +10 -0
  92. package/dist/types/components/UnincorporatedPartnership/mapping/mapLegalEntityToUnincorporatedPartnership.d.ts +2 -2
  93. package/dist/types/components/index.d.ts +2 -2
  94. package/dist/types/components/ui/atoms/Avatar/Avatar.d.ts +18 -0
  95. package/dist/types/constants/config.d.ts +1 -0
  96. package/dist/types/constants/countries.d.ts +2 -0
  97. package/dist/types/{core/constants.d.ts → constants/keys.d.ts} +0 -1
  98. package/dist/types/context/StateContext/types.d.ts +2 -2
  99. package/dist/types/core/models/errors/maintenance-mode-error.d.ts +1 -1
  100. package/dist/types/core/models/errors/validation-error.d.ts +3 -3
  101. package/dist/types/core/models/form-rules.d.ts +0 -2
  102. package/dist/types/hooks/useDataConflicts.d.ts +36 -0
  103. package/dist/types/utils/addressToString.d.ts +8 -0
  104. package/dist/types/utils/areArraysDifferent.d.ts +1 -0
  105. package/dist/types/utils/country.d.ts +2 -0
  106. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  107. package/dist/types/utils/eventHandlers/handleKeys.d.ts +1 -1
  108. package/dist/types/utils/getFieldsWithExistingData.d.ts +2 -2
  109. package/dist/types/utils/regex/patternValidators.d.ts +1 -0
  110. package/dist/types/utils/validatorUtils.d.ts +1 -0
  111. package/dist/{utils-BVzbR6pu.js → utils-DwfxOV26.js} +1 -1
  112. package/dist/{utils-BgAflqaa.js → utils-J0EdzZZY.js} +4 -4
  113. package/dist/{yaml-CR7EMTmU.js → yaml-CtdhLHq4.js} +1 -1
  114. package/package.json +5 -1
  115. package/dist/digital-wallet-with-local-currencies-DCDwmqv4.js +0 -60
  116. package/dist/funds-in-Cy21kfYZ.js +0 -27
  117. package/dist/house-C6Cpkswg.js +0 -21
  118. package/dist/passport-front-green-PzVJOT2q.js +0 -312
  119. package/dist/plaid-logo-DaBT1N_U.js +0 -17
  120. package/dist/reporting-DDsW6cxJ.js +0 -17
  121. package/dist/tax-reporting-graph-C-Vypvps.js +0 -586
  122. package/dist/types/components/EFP/mapping/mapHighExposureToLegalEntity.d.ts +0 -3
  123. package/dist/types/components/EFP/mapping/mapLegalEntityToHighExposure.d.ts +0 -3
  124. package/dist/types/components/EFP/tasks/HighExposureDropin/AdditionalFieldsForHighExposureCompany.d.ts +0 -2
  125. package/dist/types/components/EFP/tasks/HighExposureDropin/AdditionalFieldsForHighExposureParentCompany.d.ts +0 -2
  126. package/dist/types/components/EFP/tasks/HighExposureDropin/AdditionalFieldsForHighExposureUltimateParentCompany.d.ts +0 -2
  127. package/dist/types/components/EFP/tasks/HighExposureDropin/HighExposureBasicCompanyInformation.d.ts +0 -3
  128. package/dist/types/components/EFP/tasks/HighExposureDropin/HighExposureBusinessInformation.d.ts +0 -3
  129. package/dist/types/components/EFP/tasks/HighExposureDropin/HighExposureDropin.d.ts +0 -2
  130. package/dist/types/components/EFP/tasks/HighExposureDropin/HighExposureFinancialInformation.d.ts +0 -3
  131. package/dist/types/components/EFP/tasks/HighExposureDropin/HighExposureLegalInformation.d.ts +0 -2
  132. package/dist/types/components/EFP/tasks/HighExposureDropin/HighExposureOwnershipStructure.d.ts +0 -3
  133. package/dist/types/components/EFP/tasks/HighExposureDropin/HighExposureRegisteredAddress.d.ts +0 -3
  134. package/dist/types/components/EFP/tasks/HighExposureDropin/mandatoryFields.d.ts +0 -3
  135. package/dist/types/components/EFP/tasks/HighExposureDropin/types.d.ts +0 -211
  136. package/dist/types/components/EFP/tasks/HighExposureDropin/utils.d.ts +0 -15
  137. package/dist/types/components/EFP/tasks/HighExposureDropin/validate.d.ts +0 -6
  138. package/dist/types/components/EmbeddedDropins/UpdateLegalEntityForHighExposure/UpdateLegalEntityForHighExposure.d.ts +0 -2
  139. package/dist/types/components/EmbeddedDropins/UpdateLegalEntityForHighExposure/utils.d.ts +0 -9
@@ -0,0 +1,211 @@
1
+ import type { ExistingLegalEntity, LegalEntity } from '../../../../core/models/api/legal-entity';
2
+ import type { CountryCode } from '../../../../core/models/country-code';
3
+ import type { Currency } from '../../../../core/models/currency';
4
+ import type { FormList, FormModel } from '../../../../core/models/form';
5
+ import type { BaseInnerFormProps, BaseOuterFormProps } from '../../../../hooks/useForm/types';
6
+ import type { Translatable, TranslationKey } from '../../../../../types';
7
+ import type { AddressSchema } from '../../../Shared/forms/Address/types';
8
+ import type { FormUtils } from '../../../../utils/formUtils';
9
+ import type { ValidationRuleResult, ValidatorMode } from '../../../../utils/validation/types';
10
+ export interface BusinessFinancingCompanySchema {
11
+ numberOfEmployees?: number;
12
+ legalForm?: string;
13
+ legalFormLabel?: string;
14
+ naceCode?: string;
15
+ naceCodeLabel?: string;
16
+ doesYourCompanyHaveLEI?: string;
17
+ legalEntityIdentifier?: string;
18
+ isCompanyOwnedByAnotherCompany?: string;
19
+ isParentOwnedByAnotherCompany?: string;
20
+ netAssets?: number;
21
+ currency?: Currency;
22
+ annualTurnover?: number;
23
+ financialReportingDate?: string;
24
+ legalInformationInsolvency?: string;
25
+ legalProceedingsDate?: string;
26
+ isThisAddressTheMainHeadquarters?: string;
27
+ }
28
+ export type BusinessFinancingParentCompanySchema = {
29
+ legalName?: string;
30
+ numberOfEmployees?: number;
31
+ legalForm?: string;
32
+ legalFormLabel?: string;
33
+ naceCode?: string;
34
+ naceCodeLabel?: string;
35
+ doesYourCompanyHaveLEI?: string;
36
+ legalEntityIdentifier?: string;
37
+ doesNotKnowNumberOfEmployees?: boolean;
38
+ isThisAddressTheMainHeadquarters?: string;
39
+ netAssets?: number;
40
+ currency?: Currency;
41
+ annualTurnover?: number;
42
+ financialReportingDate?: string;
43
+ legalInformationInsolvency?: string;
44
+ legalProceedingsDate?: string;
45
+ registrationAddress?: AddressSchema;
46
+ };
47
+ export type BusinessFinancingUltimateParentCompanySchema = {
48
+ legalName?: string;
49
+ numberOfEmployees?: number;
50
+ legalForm?: string;
51
+ legalFormLabel?: string;
52
+ naceCode?: string;
53
+ naceCodeLabel?: string;
54
+ doesYourCompanyHaveLEI?: string;
55
+ legalEntityIdentifier?: string;
56
+ doesNotKnowNumberOfEmployees?: boolean;
57
+ isThisAddressTheMainHeadquarters?: string;
58
+ netAssets?: number;
59
+ currency?: Currency;
60
+ annualTurnover?: number;
61
+ financialReportingDate?: string;
62
+ legalInformationInsolvency?: string;
63
+ legalProceedingsDate?: string;
64
+ registrationAddress?: AddressSchema;
65
+ };
66
+ export interface BusinessFinancingSchema {
67
+ company?: BusinessFinancingCompanySchema;
68
+ parentCompany?: BusinessFinancingParentCompanySchema;
69
+ ultimateParentCompany?: BusinessFinancingUltimateParentCompanySchema;
70
+ }
71
+ export interface BusinessFinancingDropinProps extends BaseOuterFormProps<BusinessFinancingSchema> {
72
+ activeForm?: FormModel;
73
+ forms?: FormModel[];
74
+ country: CountryCode;
75
+ rootLegalEntity: ExistingLegalEntity;
76
+ externalOnSubmit?: (data: BusinessFinancingSchema) => void;
77
+ externalOnSubmitLabel?: string;
78
+ isStandaloneComponent?: boolean;
79
+ handleHomeClick?(): void;
80
+ }
81
+ export interface BusinessFinancingProps {
82
+ legalEntityId: ExistingLegalEntity['id'];
83
+ onSubmitSuccess?: (data: BusinessFinancingSchema) => void;
84
+ }
85
+ export interface BusinessFinancingCompanyDetailsProps extends BaseInnerFormProps<BusinessFinancingCompanySchema> {
86
+ country: CountryCode;
87
+ legalEntity?: ExistingLegalEntity;
88
+ }
89
+ export interface BusinessFinancingParentCompanyDetailsProps extends BaseInnerFormProps<BusinessFinancingParentCompanySchema> {
90
+ country: CountryCode;
91
+ legalEntity?: ExistingLegalEntity;
92
+ }
93
+ export interface BusinessFinancingUltimateParentCompanyDetailsProps extends BaseInnerFormProps<BusinessFinancingUltimateParentCompanySchema> {
94
+ country: CountryCode;
95
+ legalEntity?: ExistingLegalEntity;
96
+ }
97
+ export type BusinessFinancingSchemaCombined = BusinessFinancingCompanySchema & BusinessFinancingParentCompanySchema & BusinessFinancingUltimateParentCompanySchema;
98
+ export declare enum BusinessFinancingPagesEnums {
99
+ COMPANY_PAGE = "company",
100
+ PARENT_COMPANY_PAGE = "parentCompany",
101
+ ULTIMATE_PARENT_COMPANY_PAGE = "ultimateParentCompany"
102
+ }
103
+ export type BusinessFinancingBusinessInformationProps = {
104
+ country: CountryCode;
105
+ data: Partial<BusinessFinancingSchemaCombined>;
106
+ valid: Partial<Record<keyof BusinessFinancingSchemaCombined, boolean>>;
107
+ errors: Partial<Record<keyof BusinessFinancingSchemaCombined, ValidationRuleResult | null>>;
108
+ fieldProblems: Partial<Record<keyof BusinessFinancingSchemaCombined, boolean>>;
109
+ handleChangeFor: (key: keyof BusinessFinancingSchemaCombined, mode?: ValidatorMode) => (e: any) => void;
110
+ formUtils: FormUtils<BusinessFinancingSchemaCombined>;
111
+ targetPage: BusinessFinancingPagesEnums;
112
+ sectionHeading?: Translatable;
113
+ };
114
+ export type BusinessFinancingCustomLabels = {
115
+ [K in keyof BusinessFinancingSchema]?: Partial<Record<keyof NonNullable<BusinessFinancingSchema[K]>, Translatable>>;
116
+ };
117
+ export interface BusinessFinancingOwnershipStructureProps extends BaseInnerFormProps<BusinessFinancingCompanySchema> {
118
+ data: BusinessFinancingCompanySchema;
119
+ valid: Record<keyof BusinessFinancingCompanySchema, boolean>;
120
+ formUtils: FormUtils<BusinessFinancingCompanySchema>;
121
+ errors: Record<keyof BusinessFinancingCompanySchema, ValidationRuleResult | null>;
122
+ fieldProblems: Record<keyof BusinessFinancingCompanySchema, boolean>;
123
+ handleChangeFor: (key: keyof BusinessFinancingCompanySchema, mode?: ValidatorMode) => (e: any) => void;
124
+ legalEntity?: LegalEntity;
125
+ }
126
+ export type BusinessFinancingFinancialInformationProps = {
127
+ country: CountryCode;
128
+ data: Partial<BusinessFinancingSchemaCombined>;
129
+ valid: Partial<Record<keyof BusinessFinancingSchemaCombined, boolean>>;
130
+ errors: Partial<Record<keyof BusinessFinancingSchemaCombined, ValidationRuleResult | null>>;
131
+ fieldProblems: Partial<Record<keyof BusinessFinancingSchemaCombined, boolean>>;
132
+ handleChangeFor: (key: keyof BusinessFinancingSchemaCombined, mode?: ValidatorMode) => (e: any) => void;
133
+ formUtils: FormUtils<BusinessFinancingSchemaCombined>;
134
+ targetPage: BusinessFinancingPagesEnums;
135
+ sectionHeading?: Translatable;
136
+ setValidCurrency: (key: 'currency', value: boolean) => void;
137
+ };
138
+ export type BusinessFinancingLegalInformationProps = {
139
+ data: Partial<BusinessFinancingSchemaCombined>;
140
+ valid: Partial<Record<keyof BusinessFinancingSchemaCombined, boolean>>;
141
+ errors: Partial<Record<keyof BusinessFinancingSchemaCombined, ValidationRuleResult | null>>;
142
+ fieldProblems: Partial<Record<keyof BusinessFinancingSchemaCombined, boolean>>;
143
+ handleChangeFor: (key: keyof BusinessFinancingSchemaCombined, mode?: ValidatorMode) => (e: any) => void;
144
+ formUtils: FormUtils<BusinessFinancingSchemaCombined>;
145
+ targetPage: BusinessFinancingPagesEnums;
146
+ sectionHeading?: Translatable;
147
+ };
148
+ export type BusinessFinancingParentSchemasCombined = BusinessFinancingParentCompanySchema & BusinessFinancingUltimateParentCompanySchema;
149
+ export type BusinessFinancingBasicCompanyInformationProps = {
150
+ data: Partial<BusinessFinancingParentSchemasCombined>;
151
+ valid: Partial<Record<keyof BusinessFinancingParentSchemasCombined, boolean>>;
152
+ errors: Partial<Record<keyof BusinessFinancingParentSchemasCombined, ValidationRuleResult | null>>;
153
+ fieldProblems: Partial<Record<keyof BusinessFinancingParentSchemasCombined, boolean>>;
154
+ handleChangeFor: (key: keyof BusinessFinancingParentSchemasCombined, mode?: ValidatorMode) => (e: any) => void;
155
+ formUtils: FormUtils<BusinessFinancingParentSchemasCombined>;
156
+ sectionHeading?: Translatable;
157
+ };
158
+ declare enum BusinessFinancingRadioIds {
159
+ YES = "Yes",
160
+ NO = "No"
161
+ }
162
+ export declare const businessFinancingRadioItems: Array<{
163
+ id: BusinessFinancingRadioIds;
164
+ name: TranslationKey;
165
+ }>;
166
+ export declare const businessFinancingParentRadioItems: Array<{
167
+ id: BusinessFinancingRadioIds;
168
+ name: TranslationKey;
169
+ }>;
170
+ export type BusinessFinancingRegisteredAddressProps = {
171
+ defaultData: Partial<BusinessFinancingParentSchemasCombined>;
172
+ valid: Partial<Record<keyof BusinessFinancingSchemaCombined, boolean>>;
173
+ formUtils: FormUtils<BusinessFinancingSchemaCombined>;
174
+ errors: Partial<Record<keyof BusinessFinancingSchemaCombined, ValidationRuleResult | null>>;
175
+ fieldProblems: Partial<Record<keyof BusinessFinancingSchemaCombined, boolean>>;
176
+ handleChangeFor: (key: keyof BusinessFinancingSchemaCombined, mode?: ValidatorMode) => (e: any) => void;
177
+ legalEntity?: LegalEntity;
178
+ targetPage: BusinessFinancingPagesEnums;
179
+ sectionHeading?: Translatable;
180
+ formId?: string;
181
+ setValid?: (key: keyof BusinessFinancingParentSchemasCombined, value: boolean) => void;
182
+ shouldValidate?: boolean;
183
+ };
184
+ export declare const companySchemaKeys: (keyof BusinessFinancingCompanySchema)[];
185
+ export declare const parentCompaniesSchemaKeys: (keyof BusinessFinancingParentCompanySchema & BusinessFinancingUltimateParentCompanySchema)[];
186
+ export declare const businessFinancingForms: FormList;
187
+ export declare enum BusinessFinancingIndex {
188
+ COMPANY = "company",
189
+ PARENT_COMPANY = "parentCompany",
190
+ ULTIMATE_PARENT_COMPANY = "ultimateParentCompany"
191
+ }
192
+ interface BusinessFinancingSummary {
193
+ legalName?: string;
194
+ legalForm?: string;
195
+ legalFormLabel?: string;
196
+ naceCode?: string;
197
+ naceCodeLabel?: string;
198
+ legalInformationInsolvency?: string;
199
+ annualTurnover?: string;
200
+ netAssets?: string;
201
+ currency?: string;
202
+ legalProceedingsDate?: string;
203
+ financialReportingDate?: string;
204
+ country?: string | null;
205
+ }
206
+ export type BusinessFinancingSummaryType = {
207
+ company?: BusinessFinancingSummary;
208
+ parentCompany?: BusinessFinancingSummary;
209
+ ultimateParentCompany?: BusinessFinancingSummary;
210
+ };
211
+ export {};
@@ -0,0 +1,14 @@
1
+ import type { ExistingLegalEntity, LegalEntity, NewPatchLegalEntity } from '../../../../core/models/api/legal-entity';
2
+ import type { Organization } from '../../../../core/models/api/organization';
3
+ import type { CountryCode } from '../../../../core/models/country-code';
4
+ import type { BusinessFinancingCompanySchema, BusinessFinancingParentSchemasCombined, BusinessFinancingSchema } from './types';
5
+ import { BusinessFinancingIndex } from './types';
6
+ export declare const getLegalEntityId: (businessFinancingIndex: BusinessFinancingIndex, rootLegalEntity: ExistingLegalEntity | undefined) => undefined | string;
7
+ export declare const USER_LOCALE: string;
8
+ export declare const entityHasParentCompany: (data: BusinessFinancingSchema) => boolean;
9
+ export declare const entityHasUltimateParentCompany: (data: BusinessFinancingSchema) => boolean;
10
+ export declare const prepareBusinessFinancingSubmitData: (businessFinancingIndex: BusinessFinancingIndex, data: BusinessFinancingSchema, rootLegalEntity: ExistingLegalEntity | undefined) => LegalEntity;
11
+ export declare const appendBusinessFinancingData: (legalOrganization?: Organization, businessFinancingData?: BusinessFinancingCompanySchema | BusinessFinancingParentSchemasCombined) => BusinessFinancingCompanySchema | BusinessFinancingParentSchemasCombined | undefined;
12
+ export declare const handleBusinessFinancingFormSubmission: (businessFinancingType: BusinessFinancingIndex, details: LegalEntity | NewPatchLegalEntity | null, createFunction: (details: LegalEntity) => Promise<ExistingLegalEntity>, updateFunction: (details: NewPatchLegalEntity) => Promise<ExistingLegalEntity>, entityId?: string) => Promise<ExistingLegalEntity | void>;
13
+ export declare const getCompanySchemaKeys: (country: CountryCode, currentData: Partial<BusinessFinancingCompanySchema>, schemaKeys: (keyof BusinessFinancingCompanySchema)[]) => Array<keyof BusinessFinancingCompanySchema>;
14
+ export declare const getParentCompanySchemaKeys: (currentData: Partial<BusinessFinancingParentSchemasCombined>, schemaKeys: (keyof BusinessFinancingParentSchemasCombined)[]) => Array<keyof BusinessFinancingParentSchemasCombined>;
@@ -0,0 +1,6 @@
1
+ import type { ValidatorRules } from '../../../../utils/validation/types';
2
+ import type { BusinessFinancingCompanySchema, BusinessFinancingParentCompanySchema, BusinessFinancingUltimateParentCompanySchema } from './types';
3
+ export declare const validateLegalEntityIdentifier: (legalEntityIdentifier: string | null | undefined) => boolean;
4
+ export declare const validateDateNotInTheFuture: (selectedDate: string | null | undefined) => boolean;
5
+ export declare const businessFinancingCompanyDetailsValidations: ValidatorRules<BusinessFinancingCompanySchema>;
6
+ export declare const businessFinancingParentCompanyDetailsValidations: ValidatorRules<BusinessFinancingParentCompanySchema | BusinessFinancingUltimateParentCompanySchema>;
@@ -0,0 +1,2 @@
1
+ import type { BusinessFinancingProps } from '../../EFP/tasks/BusinessFinancingDropin/types';
2
+ export declare function BusinessFinancingComponent({ legalEntityId, onSubmitSuccess, }: BusinessFinancingProps): import("preact/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import type { Language } from '../../../language/Language';
2
+ import type { DatasetUtil } from '../../../utils/datasetUtil';
3
+ import type { BusinessFinancingCustomLabels, BusinessFinancingSchema, BusinessFinancingSummaryType } from '../../EFP/tasks/BusinessFinancingDropin/types';
4
+ export declare const customLabels: BusinessFinancingCustomLabels;
5
+ export declare const getTranslatedLegalInsolvency: (i18n: Language, insolvencyData?: string) => string;
6
+ export declare const getValidUserLocale: (locale: string) => string;
7
+ export declare const getFormattedAmount: (value?: string, currency?: string) => string;
8
+ export declare const formatDataForSummary: (data: BusinessFinancingSchema, i18n: Language, datasetUtils: DatasetUtil) => BusinessFinancingSummaryType;
9
+ export declare const canSubmit: (data: BusinessFinancingSchema) => boolean;
@@ -1,7 +1,8 @@
1
1
  import type { Translatable, TranslationKey } from '../../../../../../types';
2
- export interface DataConflictsModalProps<Data extends Record<Property, unknown>, Property extends TranslationKey> {
2
+ export interface DataConflictsModalProps<Data extends Partial<Record<Property, unknown>>, Property extends TranslationKey> {
3
3
  providedData: Data;
4
4
  detectedData: Data;
5
+ conflictingProperties: Property[];
5
6
  formatters: Partial<Record<Property, (val: any) => string>>;
6
7
  title: Translatable;
7
8
  explanation: Translatable;
@@ -20,4 +21,4 @@ export interface DataConflictsModalProps<Data extends Record<Property, unknown>,
20
21
  * @template Data The shape of the data objects being compared.
21
22
  * @template Property A union of keys from the `Data` object, constrained to `TranslationKey`.
22
23
  */
23
- export declare const DataConflictsModal: <Data extends Partial<Record<Property, unknown>>, Property extends TranslationKey>({ providedData, detectedData, formatters, title, explanation, onContinue, onCancel, }: DataConflictsModalProps<Data, Property>) => import("preact/jsx-runtime").JSX.Element;
24
+ export declare const DataConflictsModal: <Data extends Partial<Record<Property, unknown>>, Property extends TranslationKey>({ providedData, detectedData, conflictingProperties, formatters, title, explanation, onContinue, onCancel, }: DataConflictsModalProps<Data, Property>) => import("preact/jsx-runtime").JSX.Element;
@@ -36,11 +36,13 @@ export interface IndividualOnfidoProps extends BaseOuterFormProps<IndividualOnfi
36
36
  taskType?: TaskTypes;
37
37
  allowedRoles?: DecisionMakerType[];
38
38
  parentLegalEntity?: ExistingLegalEntity;
39
- onNext?(e: any, callbacks: any, isValid: any): void;
39
+ onNext?(): void;
40
40
  onBack?(): void;
41
41
  asModal?: boolean;
42
42
  accountHolder: AccountHolderOption | undefined;
43
43
  trustedRoles?: Array<LegalEntityAssociation['type']>;
44
+ setNextHandler?: (fn: (() => void) | undefined) => void;
45
+ handleHomeClick?(): void;
44
46
  }
45
47
  export interface IndividualOnfidoDropinProps extends Omit<IndividualOnfidoProps, 'legalEntityId' | 'accountHolder' | 'forms' | 'activeForm' | 'defaultCountry'>, DropinProps {
46
48
  taskName: 'individualDetails' | 'decisionMakerDetails' | 'legalRepresentativeDetails' | 'trustMemberDetails' | 'individualTrusteeDetails' | 'partnershipMemberDetails' | 'companyOwnerDetails';
@@ -0,0 +1,3 @@
1
+ import { DecisionMakerType } from '../../../core/models/api/decision-maker-type';
2
+ import type { IndividualOnfidoSchema } from '../forms/IndividualOnfido/IndividualOnfido.types';
3
+ export declare const calculateRoles: (data?: IndividualOnfidoSchema) => DecisionMakerType[];