@adyen/kyc-components 2.8.0 → 2.9.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 (330) hide show
  1. package/dist/es/AD-43128b9f.mjs +29 -0
  2. package/dist/es/AE-81598d61.mjs +40 -0
  3. package/dist/es/AG-ed98ae0e.mjs +55 -0
  4. package/dist/es/AI-3e78c886.mjs +50 -0
  5. package/dist/es/AL-3ad2778a.mjs +50 -0
  6. package/dist/es/AM-6a5175fb.mjs +55 -0
  7. package/dist/es/AN-311f7139.mjs +55 -0
  8. package/dist/es/AO-99b5ef59.mjs +55 -0
  9. package/dist/es/AQ-effe27c7.mjs +55 -0
  10. package/dist/es/AR-4013d95c.mjs +50 -0
  11. package/dist/es/AS-f15d56b2.mjs +55 -0
  12. package/dist/es/AT-d4d62b74.mjs +29 -0
  13. package/dist/es/AU-b9cba969.mjs +35 -0
  14. package/dist/es/AW-581f73fb.mjs +55 -0
  15. package/dist/es/AX-07af957a.mjs +29 -0
  16. package/dist/es/AZ-be214142.mjs +50 -0
  17. package/dist/es/BA-af4be83f.mjs +50 -0
  18. package/dist/es/BB-df28f015.mjs +55 -0
  19. package/dist/es/BD-7aef0af6.mjs +55 -0
  20. package/dist/es/BE-fc7cf8d5.mjs +29 -0
  21. package/dist/es/BF-090b06e2.mjs +55 -0
  22. package/dist/es/BG-1f54cf4f.mjs +50 -0
  23. package/dist/es/BH-1e9cc2b9.mjs +50 -0
  24. package/dist/es/BJ-d5dd5c6f.mjs +55 -0
  25. package/dist/es/BM-a808b13f.mjs +50 -0
  26. package/dist/es/BN-b13f6f6a.mjs +55 -0
  27. package/dist/es/BR-55d93100.mjs +71 -0
  28. package/dist/es/BS-db6a5bce.mjs +50 -0
  29. package/dist/es/BT-dfed2604.mjs +55 -0
  30. package/dist/es/BV-e123b0a8.mjs +50 -0
  31. package/dist/es/BW-08473bd7.mjs +55 -0
  32. package/dist/es/BY-2762d989.mjs +50 -0
  33. package/dist/es/BZ-7f28b1ff.mjs +55 -0
  34. package/dist/es/CA-aa1f78ab.mjs +41 -0
  35. package/dist/es/CC-2cc6ac39.mjs +55 -0
  36. package/dist/es/CF-78ae0244.mjs +55 -0
  37. package/dist/es/CH-47f538c0.mjs +29 -0
  38. package/dist/es/CI-10feb889.mjs +55 -0
  39. package/dist/es/CK-e308c734.mjs +55 -0
  40. package/dist/es/CL-4a6c3e0b.mjs +55 -0
  41. package/dist/es/CM-fddc630d.mjs +55 -0
  42. package/dist/es/CN-46bb9203.mjs +50 -0
  43. package/dist/es/CO-1b150cda.mjs +55 -0
  44. package/dist/es/CR-2bf50f66.mjs +50 -0
  45. package/dist/es/CU-904aea8f.mjs +55 -0
  46. package/dist/es/CX-750ccd92.mjs +55 -0
  47. package/dist/es/CY-1508b23e.mjs +29 -0
  48. package/dist/es/CZ-b6eaa1d5.mjs +29 -0
  49. package/dist/es/DE-e02051d4.mjs +29 -0
  50. package/dist/es/DJ-0032728a.mjs +55 -0
  51. package/dist/es/DK-6116657e.mjs +59 -0
  52. package/dist/es/DM-a2c158c9.mjs +55 -0
  53. package/dist/es/DO-cedffa27.mjs +50 -0
  54. package/dist/es/DZ-d44be6f8.mjs +55 -0
  55. package/dist/es/EC-c2e5813b.mjs +56 -0
  56. package/dist/es/EE-1a10f52d.mjs +29 -0
  57. package/dist/es/EG-8f29aebd.mjs +55 -0
  58. package/dist/es/EH-2dafda3e.mjs +55 -0
  59. package/dist/es/ES-42b3562e.mjs +29 -0
  60. package/dist/es/ET-ffa87ef0.mjs +55 -0
  61. package/dist/es/FI-8e3bb2bb.mjs +29 -0
  62. package/dist/es/FJ-088ea689.mjs +50 -0
  63. package/dist/es/FK-16d84ff5.mjs +55 -0
  64. package/dist/es/FM-32616e6f.mjs +55 -0
  65. package/dist/es/FO-62c08e45.mjs +50 -0
  66. package/dist/es/FR-3db03e20.mjs +29 -0
  67. package/dist/es/GA-4de2f994.mjs +55 -0
  68. package/dist/es/GB-28ea0b5a.mjs +59 -0
  69. package/dist/es/GD-0ad67069.mjs +55 -0
  70. package/dist/es/GE-0f594b35.mjs +50 -0
  71. package/dist/es/GF-a062cea7.mjs +29 -0
  72. package/dist/es/GG-e00581ea.mjs +59 -0
  73. package/dist/es/GH-80209e7e.mjs +55 -0
  74. package/dist/es/GI-b0f7c8b3.mjs +101 -0
  75. package/dist/es/GL-8f5e8ba9.mjs +50 -0
  76. package/dist/es/GM-ff3ca013.mjs +55 -0
  77. package/dist/es/GN-fc7c0f8c.mjs +55 -0
  78. package/dist/es/GP-68f23382.mjs +29 -0
  79. package/dist/es/GQ-f9867fbd.mjs +55 -0
  80. package/dist/es/GR-64a2d25c.mjs +29 -0
  81. package/dist/es/GS-49ce0f4c.mjs +55 -0
  82. package/dist/es/GT-fa779b14.mjs +50 -0
  83. package/dist/es/GU-f0dceb37.mjs +55 -0
  84. package/dist/es/GW-471336ea.mjs +55 -0
  85. package/dist/es/GY-2889ae39.mjs +55 -0
  86. package/dist/es/HK-0561cac3.mjs +62 -0
  87. package/dist/es/HM-924a724f.mjs +55 -0
  88. package/dist/es/HN-6dae206e.mjs +55 -0
  89. package/dist/es/HR-85763090.mjs +29 -0
  90. package/dist/es/HT-a659da85.mjs +55 -0
  91. package/dist/es/HU-f9ea5037.mjs +29 -0
  92. package/dist/es/ID-cb5cfce1.mjs +50 -0
  93. package/dist/es/IE-b341cbd2.mjs +29 -0
  94. package/dist/es/IL-657901df.mjs +29 -0
  95. package/dist/es/IM-5bd6279a.mjs +59 -0
  96. package/dist/es/IN-3c11df0e.mjs +56 -0
  97. package/dist/es/IO-24f6d2e7.mjs +55 -0
  98. package/dist/es/IQ-241c0148.mjs +55 -0
  99. package/dist/es/IS-4a7e436f.mjs +50 -0
  100. package/dist/es/IT-f9755e76.mjs +29 -0
  101. package/dist/es/JE-46968fa2.mjs +59 -0
  102. package/dist/es/JM-a6657a34.mjs +50 -0
  103. package/dist/es/JO-bd1eabea.mjs +50 -0
  104. package/dist/es/JP-9b5a30fa.mjs +88 -0
  105. package/dist/es/KE-2a866579.mjs +55 -0
  106. package/dist/es/KG-7713761d.mjs +55 -0
  107. package/dist/es/KH-a5f0f831.mjs +55 -0
  108. package/dist/es/KI-8376e298.mjs +55 -0
  109. package/dist/es/KM-48c8c9c0.mjs +55 -0
  110. package/dist/es/KN-b34777c7.mjs +55 -0
  111. package/dist/es/KR-8bcf8499.mjs +50 -0
  112. package/dist/es/KW-4dd6ab01.mjs +50 -0
  113. package/dist/es/KY-4f921c93.mjs +50 -0
  114. package/dist/es/KZ-68b655f3.mjs +50 -0
  115. package/dist/es/LA-582a34e2.mjs +55 -0
  116. package/dist/es/LB-7e5023a3.mjs +50 -0
  117. package/dist/es/LC-4e610f91.mjs +55 -0
  118. package/dist/es/LI-3979434e.mjs +29 -0
  119. package/dist/es/LK-23f5002d.mjs +55 -0
  120. package/dist/es/LT-2076ca77.mjs +29 -0
  121. package/dist/es/LU-b0538582.mjs +29 -0
  122. package/dist/es/LV-440617df.mjs +29 -0
  123. package/dist/es/MA-f2af9aa6.mjs +55 -0
  124. package/dist/es/MC-f619d821.mjs +29 -0
  125. package/dist/es/MD-ffe4e2f4.mjs +50 -0
  126. package/dist/es/ME-46686aa8.mjs +50 -0
  127. package/dist/es/MH-c535387d.mjs +55 -0
  128. package/dist/es/MK-11442cf1.mjs +50 -0
  129. package/dist/es/ML-b2c3720e.mjs +55 -0
  130. package/dist/es/MM-0ae1a124.mjs +55 -0
  131. package/dist/es/MN-baba0d9d.mjs +55 -0
  132. package/dist/es/MO-2c51f9f7.mjs +55 -0
  133. package/dist/es/MP-55044c4b.mjs +55 -0
  134. package/dist/es/MQ-aaefd2b2.mjs +29 -0
  135. package/dist/es/MR-f122a6f0.mjs +50 -0
  136. package/dist/es/MS-7623ec5f.mjs +55 -0
  137. package/dist/es/MT-315c76bb.mjs +29 -0
  138. package/dist/es/MU-126673fe.mjs +50 -0
  139. package/dist/es/MV-d8748aca.mjs +55 -0
  140. package/dist/es/MW-26492427.mjs +55 -0
  141. package/dist/es/MX-ca79b44b.mjs +60 -0
  142. package/dist/es/MY-443e729e.mjs +55 -0
  143. package/dist/es/MZ-192a5094.mjs +55 -0
  144. package/dist/es/NC-3849aac0.mjs +50 -0
  145. package/dist/es/NE-bf76bc84.mjs +55 -0
  146. package/dist/es/NF-46f5dffa.mjs +55 -0
  147. package/dist/es/NG-458396e5.mjs +55 -0
  148. package/dist/es/NI-efe8c864.mjs +55 -0
  149. package/dist/es/NL-3e38d0eb.mjs +29 -0
  150. package/dist/es/NO-088fac56.mjs +59 -0
  151. package/dist/es/NP-26b20587.mjs +55 -0
  152. package/dist/es/NR-ba1f7da1.mjs +55 -0
  153. package/dist/es/NU-6dc3ed45.mjs +55 -0
  154. package/dist/es/NZ-12ed2cb9.mjs +47 -0
  155. package/dist/es/OM-4976855b.mjs +55 -0
  156. package/dist/es/PA-3b45122a.mjs +55 -0
  157. package/dist/es/PE-ad6e8281.mjs +50 -0
  158. package/dist/es/PF-2b1b6f30.mjs +50 -0
  159. package/dist/es/PG-b94ea47f.mjs +55 -0
  160. package/dist/es/PH-1b96a1eb.mjs +50 -0
  161. package/dist/es/PK-35cadd30.mjs +50 -0
  162. package/dist/es/PL-6a490cd1.mjs +53 -0
  163. package/dist/es/PM-d508f3c5.mjs +29 -0
  164. package/dist/es/PN-1f6ccf43.mjs +55 -0
  165. package/dist/es/PR-730f2830.mjs +55 -0
  166. package/dist/es/PS-f3ef78cd.mjs +50 -0
  167. package/dist/es/PT-66954cea.mjs +29 -0
  168. package/dist/es/PW-0d1c7797.mjs +55 -0
  169. package/dist/es/PY-c8e58794.mjs +55 -0
  170. package/dist/es/QA-35be8b1e.mjs +50 -0
  171. package/dist/es/RE-9f92ed9b.mjs +29 -0
  172. package/dist/es/RO-5c62edb1.mjs +29 -0
  173. package/dist/es/RS-bc256d90.mjs +50 -0
  174. package/dist/es/RU-bbee5e73.mjs +55 -0
  175. package/dist/es/RW-95b5d859.mjs +55 -0
  176. package/dist/es/SA-69b2f72a.mjs +50 -0
  177. package/dist/es/SB-567c239a.mjs +55 -0
  178. package/dist/es/SC-9e5a0d31.mjs +55 -0
  179. package/dist/es/SE-4ed53265.mjs +59 -0
  180. package/dist/es/SG-970463e3.mjs +35 -0
  181. package/dist/es/SH-d8ab21b7.mjs +55 -0
  182. package/dist/es/SI-3b6d3545.mjs +29 -0
  183. package/dist/es/SJ-e3430cfd.mjs +50 -0
  184. package/dist/es/SK-2385e057.mjs +29 -0
  185. package/dist/es/SL-92bf45d9.mjs +55 -0
  186. package/dist/es/SM-bafbc267.mjs +29 -0
  187. package/dist/es/SN-5733e740.mjs +55 -0
  188. package/dist/es/SO-d5b69054.mjs +55 -0
  189. package/dist/es/SR-0a8c71c0.mjs +55 -0
  190. package/dist/es/ST-d40d86c1.mjs +55 -0
  191. package/dist/es/TC-ccbc7116.mjs +55 -0
  192. package/dist/es/TD-679d137c.mjs +55 -0
  193. package/dist/es/TF-6bfcf75d.mjs +50 -0
  194. package/dist/es/TG-a20ef9ed.mjs +55 -0
  195. package/dist/es/TH-e39a447c.mjs +56 -0
  196. package/dist/es/TK-89a81d38.mjs +55 -0
  197. package/dist/es/TL-8d6ca9b7.mjs +50 -0
  198. package/dist/es/TN-6e746476.mjs +50 -0
  199. package/dist/es/TO-a8c55d73.mjs +55 -0
  200. package/dist/es/TR-b1175ddc.mjs +50 -0
  201. package/dist/es/TT-5c4a3940.mjs +56 -0
  202. package/dist/es/TV-e1a267b9.mjs +55 -0
  203. package/dist/es/TW-9e0e34fa.mjs +62 -0
  204. package/dist/es/TZ-c8a8159b.mjs +55 -0
  205. package/dist/es/UA-7014199a.mjs +50 -0
  206. package/dist/es/UG-1fe39fa7.mjs +55 -0
  207. package/dist/es/UM-3fcbf872.mjs +55 -0
  208. package/dist/es/US-6fbdfc0c.mjs +60 -0
  209. package/dist/es/UY-e6d05d75.mjs +50 -0
  210. package/dist/es/UZ-433656c8.mjs +55 -0
  211. package/dist/es/VA-e8e13d32.mjs +29 -0
  212. package/dist/es/VC-331669c0.mjs +55 -0
  213. package/dist/es/VE-5e7b0d3b.mjs +55 -0
  214. package/dist/es/VG-43e85e33.mjs +50 -0
  215. package/dist/es/VI-3d9d6d8b.mjs +55 -0
  216. package/dist/es/VN-9442a8c1.mjs +50 -0
  217. package/dist/es/VU-96fae02f.mjs +55 -0
  218. package/dist/es/WF-90a27056.mjs +50 -0
  219. package/dist/es/WS-ddcb2b71.mjs +55 -0
  220. package/dist/es/YE-02c4c81e.mjs +55 -0
  221. package/dist/es/YT-33751cc9.mjs +29 -0
  222. package/dist/es/ZA-0084b083.mjs +56 -0
  223. package/dist/es/ZM-c6a4d6cc.mjs +55 -0
  224. package/dist/es/adyen-kyc-components.es.js +2308 -1877
  225. package/dist/types/components/Company/component/CompanyComponent.d.ts +25 -26
  226. package/dist/types/components/Company/rules.d.ts +1 -0
  227. package/dist/types/components/Company/types.d.ts +0 -1
  228. package/dist/types/components/CompanyNameAndCountry/component/CompanyNameAndCountryComponent.d.ts +3 -2
  229. package/dist/types/components/CompanyNameAndCountry/types.d.ts +4 -4
  230. package/dist/types/components/DecisionMakers/types.d.ts +0 -1
  231. package/dist/types/components/Dropins/PciDropin/components/PciDropinComponent.d.ts +1 -1
  232. package/dist/types/components/Dropins/PciDropin/types.d.ts +2 -2
  233. package/dist/types/components/Dropins/ServiceAgreementDropinComponent/components/ServiceAgreementDropinComponent.d.ts +1 -1
  234. package/dist/types/components/Dropins/ServiceAgreementDropinComponent/types.d.ts +1 -1
  235. package/dist/types/components/Dropins/types.d.ts +2 -3
  236. package/dist/types/components/EmbeddedDropins/PayoutEmbeddedDropin/PayoutEmbeddedDropin.d.ts +2 -1
  237. package/dist/types/components/Individual/rules.d.ts +3 -0
  238. package/dist/types/components/Individual/types.d.ts +2 -2
  239. package/dist/types/components/PayoutDetails/types.d.ts +2 -2
  240. package/dist/types/components/{IdentityAu → PersonalDetails/component/IdentityComponent/IdentityAu}/component/DriversLicense.d.ts +8 -7
  241. package/dist/types/components/{IdentityAu → PersonalDetails/component/IdentityComponent/IdentityAu}/component/PassportNumber.d.ts +4 -4
  242. package/dist/types/components/{IdentityAu → PersonalDetails/component/IdentityComponent/IdentityAu}/component/ProofOfIdentityCard.d.ts +4 -4
  243. package/dist/types/components/{IdentityAu → PersonalDetails/component/IdentityComponent/IdentityAu}/component/TypeOfIdentity.d.ts +1 -1
  244. package/dist/types/components/{IdentityAu → PersonalDetails/component/IdentityComponent/IdentityAu}/types.d.ts +2 -2
  245. package/dist/types/components/{IdentityAu → PersonalDetails/component/IdentityComponent/IdentityAu}/validate.d.ts +1 -1
  246. package/dist/types/components/{IdentityHK → PersonalDetails/component/IdentityComponent/IdentityHK}/component/DriversLicense.d.ts +1 -1
  247. package/dist/types/components/{IdentityHK → PersonalDetails/component/IdentityComponent/IdentityHK}/component/TypeOfIdentity.d.ts +1 -1
  248. package/dist/types/components/{IdentityHK → PersonalDetails/component/IdentityComponent/IdentityHK}/types.d.ts +2 -2
  249. package/dist/types/components/{IdentityHK → PersonalDetails/component/IdentityComponent/IdentityHK}/validate.d.ts +1 -3
  250. package/dist/types/components/PersonalDetails/component/IdentityComponent/IdentityNZ/additionalIdentityInfoSchema.d.ts +7 -0
  251. package/dist/types/components/PersonalDetails/component/IdentityComponent/IdentityNZ/component/DriversLicense.d.ts +19 -0
  252. package/dist/types/components/PersonalDetails/component/IdentityComponent/IdentityNZ/component/IdentityNZComponent.d.ts +2 -0
  253. package/dist/types/components/PersonalDetails/component/IdentityComponent/IdentityNZ/component/PassportNumber.d.ts +15 -0
  254. package/dist/types/components/PersonalDetails/component/IdentityComponent/IdentityNZ/component/TypeOfIdentity.d.ts +12 -0
  255. package/dist/types/components/PersonalDetails/component/IdentityComponent/IdentityNZ/types.d.ts +10 -0
  256. package/dist/types/components/PersonalDetails/component/IdentityComponent/IdentityNZ/validate.d.ts +3 -0
  257. package/dist/types/components/{identityUS → PersonalDetails/component/IdentityComponent/identityUS}/component/IdentityUSComponent.d.ts +1 -1
  258. package/dist/types/components/PersonalDetails/component/IdentityComponent/index.d.ts +2 -0
  259. package/dist/types/components/PersonalDetails/component/PersonalDetailsComponent.d.ts +1 -2
  260. package/dist/types/components/PersonalDetails/types.d.ts +7 -1
  261. package/dist/types/components/SoleProp/component/SolePropComponent.d.ts +23 -3
  262. package/dist/types/components/SoleProp/types.d.ts +0 -1
  263. package/dist/types/components/TaskList/component/TaskListItem.d.ts +1 -1
  264. package/dist/types/components/TaskList/types.d.ts +3 -0
  265. package/dist/types/components/internal/Address/types.d.ts +1 -41
  266. package/dist/types/components/internal/Address/utils.d.ts +1 -1
  267. package/dist/types/components/internal/CountryField/CountryField.d.ts +3 -0
  268. package/dist/types/components/internal/CountryField/index.d.ts +1 -0
  269. package/dist/types/components/internal/CountryField/types.d.ts +12 -0
  270. package/dist/types/components/internal/EntityAssociation/EntityAssociation.d.ts +1 -1
  271. package/dist/types/components/internal/EntityAssociation/types.d.ts +3 -0
  272. package/dist/types/components/internal/FormFields/Select/types.d.ts +17 -12
  273. package/dist/types/components/internal/LegalCompanyNameField/LegalCompanyNameField.d.ts +4 -0
  274. package/dist/types/components/internal/LegalCompanyNameField/index.d.ts +1 -0
  275. package/dist/types/components/internal/LegalCompanyNameField/types.d.ts +8 -0
  276. package/dist/types/components/internal/Remove/Remove.d.ts +1 -1
  277. package/dist/types/components/internal/Remove/types.d.ts +2 -0
  278. package/dist/types/components/internal/StateField/StateField.d.ts +3 -0
  279. package/dist/types/components/internal/StateField/index.d.ts +1 -0
  280. package/dist/types/components/internal/StateField/types.d.ts +8 -0
  281. package/dist/types/components/internal/TaxId/taxIdValidation.d.ts +1 -1
  282. package/dist/types/core/Context/ConfigurationApiContext/ConfigurationApiProvider.d.ts +1 -1
  283. package/dist/types/core/Context/StateContext/types.d.ts +24 -11
  284. package/dist/types/core/Services/agnostic/get-fonts.d.ts +5 -12
  285. package/dist/types/core/Services/agnostic/get-payout-account-formats.d.ts +3 -0
  286. package/dist/types/core/Services/componentApi/index.d.ts +0 -2
  287. package/dist/types/core/Services/kycExternalApi/index.d.ts +0 -1
  288. package/dist/types/core/hooks/useBankConfigurationHandlers.d.ts +24 -0
  289. package/dist/types/core/hooks/useForm/reducer.d.ts +1 -1
  290. package/dist/types/core/hooks/useForm/types.d.ts +16 -5
  291. package/dist/types/core/models/api/get-configuration.d.ts +2 -25
  292. package/dist/types/core/models/api/get-scenarios.d.ts +19 -3
  293. package/dist/types/core/models/api/individual.d.ts +1 -0
  294. package/dist/types/core/models/api/organization.d.ts +1 -1
  295. package/dist/types/core/models/api/trust-types-value.d.ts +4 -0
  296. package/dist/types/core/models/form.d.ts +1 -1
  297. package/dist/types/core/models/identity.d.ts +1 -1
  298. package/dist/types/datasets/accountFormats/getAccountFormatForCountry.d.ts +3 -0
  299. package/dist/types/language/config.d.ts +14 -0
  300. package/dist/types/utils/decision-maker-roles.d.ts +1 -1
  301. package/dist/types/utils/entity-status-util.d.ts +2 -2
  302. package/dist/types/utils/entriesOf.d.ts +1 -0
  303. package/dist/types/utils/mapping/componentApiMapping.d.ts +10 -5
  304. package/dist/types/utils/mapping/mapping.d.ts +12 -82
  305. package/dist/types/utils/mapping/utils.d.ts +41 -0
  306. package/dist/types/utils/regex/driversLicenseCardNumberPatterns.d.ts +3 -0
  307. package/dist/types/utils/regex/driversLicenseNumberPatterns.d.ts +5 -0
  308. package/dist/types/utils/regex/index.d.ts +4 -0
  309. package/dist/types/utils/regex/passportNumberPatterns.d.ts +4 -0
  310. package/dist/types/utils/regex/proofOfIdentityCardPatterns.d.ts +4 -0
  311. package/dist/types/utils/trust-util.d.ts +1 -1
  312. package/dist/types/utils/validation/commonValidators.d.ts +2 -2
  313. package/package.json +2 -1
  314. package/dist/types/components/internal/Address/components/CountryField.d.ts +0 -2
  315. package/dist/types/components/internal/Address/components/StateField.d.ts +0 -2
  316. package/dist/types/components/internal/LegalCompanyName/LegalCompanyName.d.ts +0 -3
  317. package/dist/types/components/internal/LegalCompanyName/index.d.ts +0 -1
  318. package/dist/types/components/internal/LegalCompanyName/types.d.ts +0 -8
  319. package/dist/types/components/internal/LegalCompanyName/validate.d.ts +0 -3
  320. package/dist/types/core/Services/componentApi/get-payout-fields.d.ts +0 -4
  321. package/dist/types/core/Services/componentApi/get-payout-formats.d.ts +0 -4
  322. package/dist/types/core/Services/kycExternalApi/get-account-format.d.ts +0 -4
  323. package/dist/types/core/models/api/get-payout-fields.d.ts +0 -2
  324. package/dist/types/utils/regex/hkIdentityTypePatterns.d.ts +0 -3
  325. /package/dist/types/components/{IdentityAu → PersonalDetails/component/IdentityComponent/IdentityAu}/additionalIdentityInfoSchema.d.ts +0 -0
  326. /package/dist/types/components/{IdentityAu → PersonalDetails/component/IdentityComponent/IdentityAu}/component/IdentityAuComponent.d.ts +0 -0
  327. /package/dist/types/components/{IdentityHK → PersonalDetails/component/IdentityComponent/IdentityHK}/additionalIdentityInfoSchema.d.ts +0 -0
  328. /package/dist/types/components/{IdentityHK → PersonalDetails/component/IdentityComponent/IdentityHK}/component/IdentityHKComponent.d.ts +0 -0
  329. /package/dist/types/components/{IdentityHK → PersonalDetails/component/IdentityComponent/IdentityHK}/component/PassportNumber.d.ts +0 -0
  330. /package/dist/types/components/{IdentityHK → PersonalDetails/component/IdentityComponent/IdentityHK}/component/ProofOfIdentityCard.d.ts +0 -0
@@ -1,40 +1,39 @@
1
1
  import '../Company.scss';
2
2
  import { CompanyDetailsSchema } from '../../CompanyDetails/types';
3
- import { CompanyNameAndCountrySchema } from '../../CompanyNameAndCountry/types';
4
3
  import { CompanyTypeSchema } from '../../CompanyType/types';
5
4
  import { CompanyProps } from '../types';
6
5
  export declare const companyForms: {
7
- companyNameAndCountry: {
8
- formId: string;
9
- formName: "nameAndCountry";
10
- fields: (keyof CompanyNameAndCountrySchema)[];
6
+ readonly companyNameAndCountry: {
7
+ readonly formId: "companyNameAndCountry";
8
+ readonly formName: "nameAndCountry";
9
+ readonly fields: ("country" | "legalCompanyName")[];
11
10
  };
12
- companyType: {
13
- formId: string;
14
- formName: "companyStructure";
15
- fields: (keyof CompanyTypeSchema)[];
11
+ readonly companyType: {
12
+ readonly formId: "companyType";
13
+ readonly formName: "companyStructure";
14
+ readonly fields: (keyof CompanyTypeSchema)[];
16
15
  };
17
- companyDetails: {
18
- formId: string;
19
- formName: "registrationDetails";
20
- fields: (keyof CompanyDetailsSchema)[];
16
+ readonly companyDetails: {
17
+ readonly formId: "companyDetails";
18
+ readonly formName: "registrationDetails";
19
+ readonly fields: (keyof CompanyDetailsSchema)[];
21
20
  };
22
- companyRegistrationAddress: {
23
- formId: string;
24
- formName: "address";
25
- fields: string[];
21
+ readonly companyRegistrationAddress: {
22
+ readonly formId: "companyRegistrationAddress";
23
+ readonly formName: "address";
24
+ readonly fields: readonly ["registrationAddress", "operationalAddress", "operationalAddressIsSame"];
26
25
  };
27
- companyRegistrationDocument: {
28
- formId: string;
29
- formName: "registrationDocument";
30
- fields: string[];
26
+ readonly companyRegistrationDocument: {
27
+ readonly formId: "companyRegistrationDocument";
28
+ readonly formName: "registrationDocument";
29
+ readonly fields: readonly ["registrationDocument"];
31
30
  };
32
- companyTaxDocument: {
33
- formId: string;
34
- formName: "taxDocument";
35
- fields: string[];
31
+ readonly companyTaxDocument: {
32
+ readonly formId: "companyTaxDocument";
33
+ readonly formName: "taxDocument";
34
+ readonly fields: readonly ["taxDocument"];
36
35
  };
37
36
  };
38
- export declare const companyDocumentForms: string[];
37
+ export declare const companyDocumentForms: ("companyRegistrationDocument" | "companyTaxDocument")[];
39
38
  declare function CompanyComponent(props: CompanyProps): import("preact").JSX.Element;
40
39
  export default CompanyComponent;
@@ -6,4 +6,5 @@ import { CompanySchema } from './types';
6
6
  * when uploading tax document in mapping.ts
7
7
  * */
8
8
  export declare const COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT: readonly CountryCode[];
9
+ export declare const COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP: readonly CountryCode[];
9
10
  export declare const rules: FormRules<CompanySchema>;
@@ -30,7 +30,6 @@ export interface CompanyProps extends BaseOuterFormProps<CompanySchema> {
30
30
  handleFindAddress?: DropinAPIHandlers['handleFindAddress'];
31
31
  }
32
32
  export interface CompanyDropinProps extends CompanyProps, DropinAPIHandlers, DropinProps {
33
- legalEntity?: LegalEntity;
34
33
  parentLegalEntity?: LegalEntity;
35
34
  associationDetail?: TrustMember;
36
35
  isTargetLegalEntityType?: boolean;
@@ -1,4 +1,5 @@
1
1
  import { CompanyNameAndCountryProps, CompanyNameAndCountrySchema } from '../types';
2
2
  export declare const companyNameAndCountryFields: Array<keyof CompanyNameAndCountrySchema>;
3
- declare function CompanyNameAndCountryComponent(props: CompanyNameAndCountryProps): import("preact").JSX.Element;
4
- export default CompanyNameAndCountryComponent;
3
+ declare function CompanyNameAndCountry(props: CompanyNameAndCountryProps): import("preact/compat").JSX.Element;
4
+ export declare const CompanyNameAndCountryComponent: typeof CompanyNameAndCountry;
5
+ export {};
@@ -1,10 +1,10 @@
1
1
  import type { BaseInnerFormProps } from '../../core/hooks/useForm';
2
2
  import type { CountryCode } from '../../core/models/country-code';
3
- import { LegalCompanyNameSchema } from '../internal/LegalCompanyName/types';
4
- export interface CompanyNameAndCountrySchema extends LegalCompanyNameSchema {
5
- companyCountry: CountryCode;
6
- }
3
+ import type { CountryFieldSchema } from '../internal/CountryField/types';
4
+ import type { LegalCompanyNameFieldSchema } from '../internal/LegalCompanyNameField/types';
5
+ export type CompanyNameAndCountrySchema = LegalCompanyNameFieldSchema & CountryFieldSchema;
7
6
  export interface CompanyNameAndCountryProps extends BaseInnerFormProps<CompanyNameAndCountrySchema> {
8
7
  onCountryChange?(country: CountryCode): void;
9
8
  disableCountry?: boolean;
9
+ id: 'companyNameAndCountry' | 'solePropNameAndCountry';
10
10
  }
@@ -2,7 +2,6 @@ import { ExistingLegalEntity } from '../../core/models/api/legal-entity';
2
2
  import { CapabilityProblems } from '../../core/models/errors/capability-problems';
3
3
  import { DropinAPIHandlers, DropinProps } from '../Dropins/types';
4
4
  export interface DecisionMakersProps extends DropinAPIHandlers, DropinProps {
5
- legalEntityResponse?: ExistingLegalEntity;
6
5
  parentLegalEntity?: ExistingLegalEntity;
7
6
  onNavigateToIndividual(legalEntityId?: string): void;
8
7
  navigateBackToTaskList(): void;
@@ -1,2 +1,2 @@
1
1
  import { PciDropinProps } from '../types';
2
- export declare function PciDropinComponent({ legalEntity, pciTemplateResponse, handleHomeClick, handleLanguageChange, handleSign, taskType, trackingConfig, }: PciDropinProps): import("preact").JSX.Element;
2
+ export declare function PciDropinComponent({ legalEntityResponse, pciTemplateResponse, handleHomeClick, handleLanguageChange, handleSign, taskType, trackingConfig, }: PciDropinProps): import("preact").JSX.Element;
@@ -1,12 +1,12 @@
1
1
  import { PciTemplateResponse, SignedBy } from '../../../core/models/api/contracts';
2
- import { LegalEntity } from '../../../core/models/api/legal-entity';
2
+ import { ExistingLegalEntity } from '../../../core/models/api/legal-entity';
3
3
  import { DropinProps } from '../types';
4
4
  export interface PciSchema {
5
5
  signer?: string;
6
6
  acceptPci?: boolean;
7
7
  }
8
8
  export interface PciDropinProps extends DropinProps {
9
- legalEntity: LegalEntity;
9
+ legalEntityResponse: ExistingLegalEntity;
10
10
  pciTemplateResponse: PciTemplateResponse;
11
11
  handleHomeClick(): void;
12
12
  handleLanguageChange(): void;
@@ -1,2 +1,2 @@
1
1
  import { ServiceAgreementDropinProps } from '../types';
2
- export declare function ServiceAgreementDropinComponent({ legalEntity, handleGetServiceAgreement, handleHomeClick, handleSign, taskType, serviceAgreementTypes, serviceAgreementAcceptanceInfos, trackingConfig, }: ServiceAgreementDropinProps): import("preact").JSX.Element;
2
+ export declare function ServiceAgreementDropinComponent({ legalEntityResponse, handleGetServiceAgreement, handleHomeClick, handleSign, taskType, serviceAgreementTypes, serviceAgreementAcceptanceInfos, trackingConfig, }: ServiceAgreementDropinProps): import("preact").JSX.Element;
@@ -15,8 +15,8 @@ export interface ServiceAgreementSchema {
15
15
  acceptServiceAgreement?: boolean;
16
16
  }
17
17
  export interface ServiceAgreementDropinProps extends DropinProps {
18
+ legalEntityResponse: ExistingLegalEntity;
18
19
  taskType: TaskTypes.SERVICE_AGREEMENT;
19
- legalEntity: ExistingLegalEntity;
20
20
  serviceAgreementTypes: ServiceAgreementType[];
21
21
  serviceAgreementAcceptanceInfos: ServiceAgreementAcceptanceInfo[];
22
22
  handleHomeClick(): void;
@@ -14,7 +14,7 @@ import { TaskTypes } from '../TaskList/types';
14
14
  import type { BasicComponentProps } from '../UIElement';
15
15
  export interface DropinComposerProps extends DropinAPIHandlers, BasicComponentProps {
16
16
  capabilities?: string[];
17
- legalEntityResponse?: ExistingLegalEntity;
17
+ legalEntityResponse: ExistingLegalEntity;
18
18
  onChange?: (state: State<TopLevelDataSchema>) => void;
19
19
  onSubmit?: (data: unknown) => void;
20
20
  onLoad?: () => void;
@@ -48,14 +48,13 @@ export interface DropinAPIHandlers {
48
48
  handleGetIdVerificationStartCheck?(legalEntityId: string, data: InstantIdVerificationStartCheckRequest): Promise<InstantIdVerificationStartCheckResponse>;
49
49
  }
50
50
  export interface DropinProps {
51
+ legalEntityResponse?: ExistingLegalEntity;
51
52
  baseTrackingPayload?: BaseTrackingPayload;
52
53
  eventEmitter: EventEmitter;
53
54
  homeButtonLabel?: string;
54
55
  handleHomeClick?(): void;
55
56
  handleBackClick?(): void;
56
57
  hideDropinLayout?: boolean;
57
- legalEntityId?: string;
58
- legalEntityResponse?: ExistingLegalEntity;
59
58
  trackingConfig?: {
60
59
  topLevelLegalEntity: ExistingLegalEntity;
61
60
  };
@@ -1,6 +1,7 @@
1
+ import { ExistingLegalEntity } from '../../../core/models/api/legal-entity';
1
2
  import EventEmitter from '../../EventEmitter';
2
3
  export interface PayoutEmbeddedDropinProps {
3
- legalEntityId: string;
4
+ legalEntityId: ExistingLegalEntity['id'];
4
5
  transferInstrumentId?: string;
5
6
  onChange?(): void;
6
7
  onSubmit?(): void;
@@ -7,4 +7,7 @@ export declare const ID_NUMBER_VERIFICATION_COUNTRIES: CountryCode[];
7
7
  export declare const COUNTRIES_WHICH_USE_MULTIPLE_IDENTITY_TYPES: CountryCode[];
8
8
  export declare const ID_NUMBER_REQUIRED_FOR_DIRECTOR_COUNTRIES: CountryCode[];
9
9
  export declare const NATIONALITY_REQUIRED_FOR_COUNTRIES: CountryCode[];
10
+ export declare const CONTACTS_REQUIRED_FOR_COUNTRIES: CountryCode[];
11
+ export declare const JOB_TITLE_REQUIRED_FOR_COUNTRIES: CountryCode[];
12
+ export declare const ISSUER_REQUIRED_FOR_COUNTRIES: CountryCode[];
10
13
  export declare const rules: FormRules<IndividualSchema>;
@@ -32,7 +32,7 @@ export interface IndividualProps extends BaseOuterFormProps<IndividualSchema> {
32
32
  activeForm?: FormModel;
33
33
  forms?: FormModel[];
34
34
  problems?: any;
35
- legalEntityId?: string;
35
+ legalEntityId: string;
36
36
  taskType?: TaskTypes;
37
37
  allowedRoles?: DecisionMakerType[];
38
38
  onTypeSwitch?(legalEntityType: LegalEntityType): void;
@@ -40,7 +40,7 @@ export interface IndividualProps extends BaseOuterFormProps<IndividualSchema> {
40
40
  onNext?(e: any, callbacks: any, isValid: any): void;
41
41
  onBack?(): void;
42
42
  }
43
- export interface IndividualDropinProps extends IndividualProps, DropinAPIHandlers, DropinProps {
43
+ export interface IndividualDropinProps extends Omit<IndividualProps, 'legalEntityId'>, DropinAPIHandlers, DropinProps {
44
44
  parentLegalEntity?: LegalEntity;
45
45
  trustMember?: TrustMember;
46
46
  isTargetLegalEntityType?: boolean;
@@ -25,7 +25,7 @@ export interface PayoutDetailsProps extends BaseOuterFormProps<PayoutDetailsSche
25
25
  forms?: FormModel[];
26
26
  problems?: any;
27
27
  onSubmit?: (data: PayoutDetailsSchema) => void;
28
- legalEntityResponse?: ExistingLegalEntity;
28
+ legalEntityResponse: ExistingLegalEntity;
29
29
  taskType?: TaskTypes;
30
30
  handleGetBankVerificationVendors?(data: string): Promise<BankVerificationVendorsResponse>;
31
31
  onBack?: () => void;
@@ -37,7 +37,7 @@ export interface PayoutDetailsProps extends BaseOuterFormProps<PayoutDetailsSche
37
37
  createTrustedTransferInstrument?: (code: string, state: string) => Promise<CreateTrustedTransferInstrumentResponse>;
38
38
  handleBankVerificationError?: (errorCode: string, errorMessage: string, state: string, metadata?: Map<string, string>) => Promise<BankVerificationErrorResponse>;
39
39
  }
40
- export interface PayoutDetailsDropinProps extends PayoutDetailsProps, DropinProps, DropinAPIHandlers {
40
+ export interface PayoutDetailsDropinProps extends PayoutDetailsProps, Omit<DropinProps, 'legalEntityResponse'>, DropinAPIHandlers {
41
41
  accountHolder?: string;
42
42
  transferInstrument?: TransferInstrument;
43
43
  setTransferInstrument?: StateUpdater<TransferInstrument>;
@@ -1,5 +1,6 @@
1
- import { FormUtils } from '../../../utils/formUtils';
2
- import { IdentityNumberSchema } from '../../IdentityNumber/type';
1
+ import { FormUtils } from '../../../../../../utils/formUtils';
2
+ import { IdentityNumberSchema } from '../../../../../IdentityNumber/type';
3
+ import { MultiSelectOnChangeProps, SingleSelectOnChangeProps } from '../../../../../internal/FormFields/Select/types';
3
4
  import { AdditionalIdentityInfoSchema } from '../additionalIdentityInfoSchema';
4
5
  interface AuDriversLicenseSchema {
5
6
  idNumber?: IdentityNumberSchema['idNumber'];
@@ -8,11 +9,11 @@ interface AuDriversLicenseSchema {
8
9
  }
9
10
  interface DriversLicenseProps {
10
11
  driversLicense: AuDriversLicenseSchema;
11
- onIssuerStateChange: (event: any) => void;
12
- onLicenseNumberInput: (event: any) => void;
13
- onLicenseNumberBlur: (event: any) => void;
14
- onCardNumberInput: (event: any) => void;
15
- onCardNumberBlur: (event: any) => void;
12
+ onIssuerStateChange: (event: SingleSelectOnChangeProps | MultiSelectOnChangeProps) => void;
13
+ onLicenseNumberInput: (event: Event) => void;
14
+ onLicenseNumberBlur: (event: Event) => void;
15
+ onCardNumberInput: (event: Event) => void;
16
+ onCardNumberBlur: (event: Event) => void;
16
17
  formUtils: FormUtils<AuDriversLicenseSchema>;
17
18
  isValid: Record<keyof AuDriversLicenseSchema, boolean>;
18
19
  errorMessages: Record<keyof AuDriversLicenseSchema, string | boolean>;
@@ -1,12 +1,12 @@
1
- import { FormUtils } from '../../../utils/formUtils';
2
- import { IdentityNumberSchema } from '../../IdentityNumber/type';
1
+ import { FormUtils } from '../../../../../../utils/formUtils';
2
+ import { IdentityNumberSchema } from '../../../../../IdentityNumber/type';
3
3
  interface AuPassportSchema {
4
4
  idNumber?: IdentityNumberSchema['idNumber'];
5
5
  }
6
6
  export interface PassportNumberProps {
7
7
  passportNumber: string;
8
- onInput: (event: any) => void;
9
- onBlur: (event: any) => void;
8
+ onInput: (event: Event) => void;
9
+ onBlur: (event: Event) => void;
10
10
  formUtils: FormUtils<AuPassportSchema>;
11
11
  errorMessage: string | boolean;
12
12
  isValid: boolean;
@@ -1,12 +1,12 @@
1
- import { FormUtils } from '../../../utils/formUtils';
2
- import { IdentityNumberSchema } from '../../IdentityNumber/type';
1
+ import { FormUtils } from '../../../../../../utils/formUtils';
2
+ import { IdentityNumberSchema } from '../../../../../IdentityNumber/type';
3
3
  interface AuProofOfIdentityCardSchema {
4
4
  idNumber: IdentityNumberSchema['idNumber'];
5
5
  }
6
6
  interface ProofOfIdentityCardProps {
7
7
  cardNumber: string;
8
- onInput: (event: any) => void;
9
- onBlur: (event: any) => void;
8
+ onInput: (event: Event) => void;
9
+ onBlur: (event: Event) => void;
10
10
  formUtils: FormUtils<AuProofOfIdentityCardSchema>;
11
11
  errorMessage: string | boolean;
12
12
  isValid: boolean;
@@ -1,4 +1,4 @@
1
- import { FormUtils } from '../../../utils/formUtils';
1
+ import { FormUtils } from '../../../../../../utils/formUtils';
2
2
  import { AdditionalIdentityInfoSchema } from '../additionalIdentityInfoSchema';
3
3
  import { AuIdentityType } from '../types';
4
4
  export interface TypeOfIdentityProps {
@@ -1,5 +1,5 @@
1
- import type { BaseInnerFormProps } from '../../core/hooks/useForm';
2
- import { IdentityNumberSchema } from '../IdentityNumber/type';
1
+ import type { BaseInnerFormProps } from '../../../../../core/hooks/useForm';
2
+ import { IdentityNumberSchema } from '../../../../IdentityNumber/type';
3
3
  import { AdditionalIdentityInfoSchema, IdentityType } from './additionalIdentityInfoSchema';
4
4
  export type AuIdentityType = Exclude<IdentityType, 'nationalIdNumber'>;
5
5
  export interface AuIdentitySchema extends AdditionalIdentityInfoSchema {
@@ -1,3 +1,3 @@
1
- import { ValidatorRules } from '../../utils/validation/types';
1
+ import { ValidatorRules } from '../../../../../utils/validation/types';
2
2
  import { AuIdentitySchema } from './types';
3
3
  export declare const auIdentityValidationRules: ValidatorRules<AuIdentitySchema>;
@@ -1,4 +1,4 @@
1
- import { IdentityNumberSchema } from '../../IdentityNumber/type';
1
+ import { IdentityNumberSchema } from '../../../../../IdentityNumber/type';
2
2
  interface DriversLicenseSchema {
3
3
  idNumber?: IdentityNumberSchema['idNumber'];
4
4
  }
@@ -1,4 +1,4 @@
1
- import { FormUtils } from '../../../utils/formUtils';
1
+ import { FormUtils } from '../../../../../../utils/formUtils';
2
2
  import { AdditionalIdentityInfoSchema } from '../additionalIdentityInfoSchema';
3
3
  import { HKIdentityType } from '../types';
4
4
  export interface TypeOfIdentityProps {
@@ -1,5 +1,5 @@
1
- import type { BaseInnerFormProps } from '../../core/hooks/useForm';
2
- import { IdentityNumberSchema } from '../IdentityNumber/type';
1
+ import type { BaseInnerFormProps } from '../../../../../core/hooks/useForm';
2
+ import { IdentityNumberSchema } from '../../../../IdentityNumber/type';
3
3
  import { AdditionalIdentityInfoSchema, IdentityType } from './additionalIdentityInfoSchema';
4
4
  export type HKIdentityType = Exclude<IdentityType, 'nationalIdNumber'>;
5
5
  export interface HKIdentitySchema extends AdditionalIdentityInfoSchema {
@@ -1,7 +1,5 @@
1
- import type { ValidatorRule } from '../../utils/validation/types';
2
- import { ValidatorRules } from '../../utils/validation/types';
1
+ import { ValidatorRules } from '../../../../../utils/validation/types';
3
2
  import { HKIdentitySchema } from './types';
4
3
  export declare const isValidatePassportNumber: (value: string) => boolean;
5
4
  export declare const isValidateDriversLicenseNumber: (value: string) => boolean;
6
- export declare const isTruthyValidator: ValidatorRule<unknown, HKIdentitySchema>;
7
5
  export declare const identityValidationRules: ValidatorRules<HKIdentitySchema>;
@@ -0,0 +1,7 @@
1
+ export interface AdditionalIdentityInfoSchema {
2
+ typeOfIdentity?: IdentityType;
3
+ licenseCardNumber?: string;
4
+ }
5
+ export declare const additionalIdentityInfoFields: ReadonlyArray<keyof AdditionalIdentityInfoSchema>;
6
+ export declare const identityTypes: readonly ["nationalIdNumber", "passport", "driversLicense", "proofOfIdentityCard"];
7
+ export type IdentityType = (typeof identityTypes)[number];
@@ -0,0 +1,19 @@
1
+ import { FormUtils } from '../../../../../../utils/formUtils';
2
+ import { IdentityNumberSchema } from '../../../../../IdentityNumber/type';
3
+ import { AdditionalIdentityInfoSchema } from '../additionalIdentityInfoSchema';
4
+ interface NZDriversLicenseSchema {
5
+ idNumber?: IdentityNumberSchema['idNumber'];
6
+ licenseCardNumber?: AdditionalIdentityInfoSchema['licenseCardNumber'];
7
+ }
8
+ interface DriversLicenseProps {
9
+ driversLicense: NZDriversLicenseSchema;
10
+ onLicenseNumberInput: (event: Event) => void;
11
+ onLicenseNumberBlur: (event: Event) => void;
12
+ onCardNumberInput: (event: Event) => void;
13
+ onCardNumberBlur: (event: Event) => void;
14
+ formUtils: FormUtils<NZDriversLicenseSchema>;
15
+ isValid: Record<keyof NZDriversLicenseSchema, boolean>;
16
+ errorMessages: Record<keyof NZDriversLicenseSchema, string | boolean>;
17
+ }
18
+ export declare const DriversLicense: ({ driversLicense, onLicenseNumberInput, onLicenseNumberBlur, onCardNumberInput, onCardNumberBlur, formUtils: { getLabel }, isValid, errorMessages, }: DriversLicenseProps) => import("preact").JSX.Element;
19
+ export {};
@@ -0,0 +1,2 @@
1
+ import { IdentityNZProps } from '../types';
2
+ export declare function IdentityNZComponent(props: IdentityNZProps): import("preact").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { FormUtils } from '../../../../../../utils/formUtils';
2
+ import { IdentityNumberSchema } from '../../../../../IdentityNumber/type';
3
+ interface AuPassportSchema {
4
+ idNumber?: IdentityNumberSchema['idNumber'];
5
+ }
6
+ export interface PassportNumberProps {
7
+ passportNumber: string;
8
+ onInput: (event: Event) => void;
9
+ onBlur: (event: Event) => void;
10
+ formUtils: FormUtils<AuPassportSchema>;
11
+ errorMessage: string | boolean;
12
+ isValid: boolean;
13
+ }
14
+ export declare const PassportNumber: ({ passportNumber, onInput, onBlur, formUtils: { getLabel }, errorMessage, isValid, }: PassportNumberProps) => import("preact").JSX.Element;
15
+ export {};
@@ -0,0 +1,12 @@
1
+ import { FormUtils } from '../../../../../../utils/formUtils';
2
+ import { AdditionalIdentityInfoSchema } from '../additionalIdentityInfoSchema';
3
+ import { NZIdentityType } from '../types';
4
+ export interface TypeOfIdentityProps {
5
+ availableIdentityTypes: readonly NZIdentityType[];
6
+ selectedIdentityType: NZIdentityType;
7
+ setSelectedIdentityType: (type: NZIdentityType) => void;
8
+ formUtils: FormUtils<AdditionalIdentityInfoSchema>;
9
+ errorMessage: string | boolean;
10
+ isValid: boolean;
11
+ }
12
+ export declare const TypeOfIdentity: ({ availableIdentityTypes, selectedIdentityType, setSelectedIdentityType, formUtils: { getLabel }, errorMessage, isValid, }: TypeOfIdentityProps) => import("preact").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import type { BaseInnerFormProps } from '../../../../../core/hooks/useForm';
2
+ import { IdentityNumberSchema } from '../../../../IdentityNumber/type';
3
+ import { AdditionalIdentityInfoSchema, IdentityType } from './additionalIdentityInfoSchema';
4
+ export type NZIdentityType = Exclude<IdentityType, 'nationalIdNumber'>;
5
+ export interface NZIdentitySchema extends AdditionalIdentityInfoSchema {
6
+ idNumber?: IdentityNumberSchema['idNumber'];
7
+ typeOfIdentity?: IdentityType;
8
+ }
9
+ export type IdentityNZProps = BaseInnerFormProps<NZIdentitySchema>;
10
+ export declare const nzIdentityFields: ReadonlyArray<keyof NZIdentitySchema>;
@@ -0,0 +1,3 @@
1
+ import { ValidatorRules } from '../../../../../utils/validation/types';
2
+ import { NZIdentitySchema } from './types';
3
+ export declare const nzIdentityValidationRules: ValidatorRules<NZIdentitySchema>;
@@ -1,4 +1,4 @@
1
- import { IdentityNumberProps } from '../../IdentityNumber/type';
1
+ import { IdentityNumberProps } from '../../../../../IdentityNumber/type';
2
2
  export declare const IdentityUSComponent: import("preact").FunctionalComponent<Omit<IdentityNumberProps, "ref"> & {
3
3
  ref?: import("preact").Ref<unknown>;
4
4
  }>;
@@ -0,0 +1,2 @@
1
+ import { IdentityComponentSchema } from '../../types';
2
+ export declare function IdentityComponent(props: IdentityComponentSchema): import("preact").JSX.Element;
@@ -1,4 +1,3 @@
1
1
  import { PersonalDetailsProps, PersonalDetailsSchema } from '../types';
2
2
  export declare const personalDetailsFields: Array<keyof PersonalDetailsSchema>;
3
- declare function PersonalDetailsComponent(props: PersonalDetailsProps): import("preact").JSX.Element;
4
- export default PersonalDetailsComponent;
3
+ export declare function PersonalDetailsComponent(props: PersonalDetailsProps): import("preact").JSX.Element;
@@ -1,13 +1,14 @@
1
1
  import type { BaseInnerFormProps, FormState } from '../../core/hooks/useForm';
2
2
  import { DecisionMakerType } from '../../core/models/api/decision-maker-type';
3
3
  import { CountryCode } from '../../core/models/country-code';
4
+ import { ValidationRuleResults } from '../../utils/validation/types';
4
5
  import { ContactDetailsSchema } from '../ContactDetails/types';
5
- import { AdditionalIdentityInfoSchema } from '../IdentityAu/additionalIdentityInfoSchema';
6
6
  import { IdentityNumberSchema } from '../IdentityNumber/type';
7
7
  import { AccountHolderSchema } from '../internal/AccountHolder/types';
8
8
  import type { DecisionMakerRoleSchema } from '../internal/DecisionMakerRole';
9
9
  import { NameSchema } from '../internal/Name/types';
10
10
  import type { TaskTypes } from '../TaskList/types';
11
+ import { AdditionalIdentityInfoSchema } from './component/IdentityComponent/IdentityAu/additionalIdentityInfoSchema';
11
12
  export interface PersonalDetailsSchema extends NameSchema, IdentityNumberSchema, AdditionalIdentityInfoSchema, DecisionMakerRoleSchema, ContactDetailsSchema, AccountHolderSchema {
12
13
  birthDate?: string;
13
14
  residencyCountry?: CountryCode;
@@ -24,4 +25,9 @@ export interface IdSchema {
24
25
  firstName: string;
25
26
  lastName: string;
26
27
  }
28
+ export interface IdentityComponentSchema {
29
+ country: CountryCode;
30
+ personalDetails: PersonalDetailsProps;
31
+ errors: ValidationRuleResults<IdentityNumberSchema>;
32
+ }
27
33
  export type IdFormState = FormState<IdSchema>;
@@ -1,6 +1,26 @@
1
- import { FormList } from '../../../core/models/form';
2
1
  import { SolePropProps } from '../types';
3
- export declare const solePropForms: FormList;
4
- export declare const solePropDocumentFormId: string;
2
+ export declare const solePropForms: {
3
+ readonly solePropNameAndCountry: {
4
+ readonly formId: "solePropNameAndCountry";
5
+ readonly formName: "nameAndCountry";
6
+ readonly fields: ("country" | "legalCompanyName")[];
7
+ };
8
+ readonly solePropRegistrationDetails: {
9
+ readonly formId: "solePropRegistrationDetails";
10
+ readonly formName: "registrationDetails";
11
+ readonly fields: (keyof import("../../CompanyDetails/types").CompanyDetailsSchema)[];
12
+ };
13
+ readonly solePropRegistrationAddress: {
14
+ readonly formId: "solePropRegistrationAddress";
15
+ readonly formName: "registrationAddress";
16
+ readonly fields: string[];
17
+ };
18
+ readonly solePropConstitutionalDocument: {
19
+ readonly formId: "solePropConstitutionalDocument";
20
+ readonly formName: "constitutionalDocument";
21
+ readonly fields: readonly ["constitutionalDocument"];
22
+ };
23
+ };
24
+ export declare const solePropDocumentFormId: "solePropConstitutionalDocument";
5
25
  declare function SolePropComponent(props: SolePropProps): import("preact").JSX.Element;
6
26
  export default SolePropComponent;
@@ -27,5 +27,4 @@ export interface SolePropProps extends BaseOuterFormProps<SolePropSchema> {
27
27
  handleFindAddress?: DropinAPIHandlers['handleFindAddress'];
28
28
  }
29
29
  export interface SolePropDropinProps extends SolePropProps, DropinAPIHandlers, DropinProps {
30
- legalEntity?: LegalEntity;
31
30
  }
@@ -1,4 +1,4 @@
1
1
  import '../TaskListItem.scss';
2
2
  import { TaskListItemProps } from '../types';
3
- declare const TaskListItem: ({ title, tagline, icon, status, onNavigateToTask, disabled, problems, downloadHandler, info, loading, showErrorAlerts, removeEntity, }: TaskListItemProps) => import("preact").JSX.Element;
3
+ declare const TaskListItem: ({ title, tagline, icon, status, onNavigateToTask, disabled, problems, downloadHandler, info, loading, showErrorAlerts, removeEntity, isRemoveDisabled, handleIsRemoveDisabled, }: TaskListItemProps) => import("preact").JSX.Element;
4
4
  export default TaskListItem;
@@ -1,3 +1,4 @@
1
+ import { StateUpdater } from 'preact/hooks';
1
2
  import type { PciStatus } from '../../core/models/api/contracts';
2
3
  import type { ExistingLegalEntity } from '../../core/models/api/legal-entity';
3
4
  import type { CapabilityProblems } from '../../core/models/errors/capability-problems';
@@ -73,4 +74,6 @@ export interface TaskListItemProps extends TaskStatusProps {
73
74
  loading?: boolean;
74
75
  showErrorAlerts?: 'onErrorStatus' | 'always';
75
76
  removeEntity?: () => void;
77
+ isRemoveDisabled?: boolean;
78
+ handleIsRemoveDisabled?: StateUpdater<boolean>;
76
79
  }
@@ -32,14 +32,7 @@ export interface FieldContainerProps {
32
32
  valid?: Record<keyof AddressSchema, boolean>;
33
33
  errors?: Record<keyof AddressSchema, ValidationRuleResult | null>;
34
34
  fieldProblems?: Record<keyof AddressSchema, boolean>;
35
- onInput: (e: Event) => void;
36
- onBlur: (e: Event) => void;
37
- onDropdownChange: (e: {
38
- target: {
39
- value: string;
40
- name: string;
41
- };
42
- }) => void;
35
+ handleChangeFor: (key: keyof AddressSchema, mode?: ValidatorMode) => (e: any) => void;
43
36
  readOnly?: boolean;
44
37
  maxlength?: number;
45
38
  hideField?: boolean;
@@ -49,39 +42,6 @@ export interface ReadOnlyAddressProps {
49
42
  data: AddressSchema;
50
43
  label: TranslationKey;
51
44
  }
52
- export interface CountryFieldProps {
53
- allowedCountries?: readonly CountryCode[];
54
- classNameModifiers?: string[];
55
- errorMessage?: boolean | string;
56
- onDropdownChange: (e: {
57
- target: {
58
- value: string;
59
- name: string;
60
- };
61
- }) => void;
62
- readOnly?: boolean;
63
- label?: string;
64
- value?: CountryCode;
65
- className?: string;
66
- helperText?: string;
67
- }
68
- export interface CountryFieldItem {
69
- id: CountryCode;
70
- name: string;
71
- }
72
- export interface StateFieldProps {
73
- classNameModifiers?: string[];
74
- selectedCountry?: CountryCode;
75
- errorMessage?: boolean | string;
76
- onDropdownChange: (e: {
77
- target: {
78
- value: string;
79
- name: string;
80
- };
81
- }) => void;
82
- readOnly?: boolean;
83
- value: string;
84
- }
85
45
  export type AddressSchemas = RecordWithDefault<CountryCode, AddressField[]>;
86
46
  export type AddressLabels = {
87
47
  [label: string]: RecordWithDefault<CountryCode, TranslationKey>;