@adyen/kyc-components 1.2.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 (512) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +104 -0
  3. package/dist/adyen-kyc-components.bundle.js +18089 -0
  4. package/dist/adyen-kyc-components.cjs.js +18095 -0
  5. package/dist/adyen-kyc-components.css +59 -0
  6. package/dist/adyen-kyc-components.debug.js +50954 -0
  7. package/dist/adyen-kyc-components.esm.js +18045 -0
  8. package/dist/types/components/Address/Address.d.ts +7 -0
  9. package/dist/types/components/Address/index.d.ts +1 -0
  10. package/dist/types/components/BaseElement.d.ts +64 -0
  11. package/dist/types/components/BaseElement.test.d.ts +1 -0
  12. package/dist/types/components/Company/Company.d.ts +5 -0
  13. package/dist/types/components/Company/component/CompanyComponent.d.ts +7 -0
  14. package/dist/types/components/Company/index.d.ts +1 -0
  15. package/dist/types/components/Company/labels.d.ts +4 -0
  16. package/dist/types/components/Company/rules.d.ts +2 -0
  17. package/dist/types/components/Company/types.d.ts +36 -0
  18. package/dist/types/components/CompanyDetails/CompanyDetails.d.ts +5 -0
  19. package/dist/types/components/CompanyDetails/component/CompanyDetailsComponent.d.ts +5 -0
  20. package/dist/types/components/CompanyDetails/types.d.ts +15 -0
  21. package/dist/types/components/CompanyDetails/validate.d.ts +3 -0
  22. package/dist/types/components/CompanyNameAndCountry/CompanyNameAndCountry.d.ts +5 -0
  23. package/dist/types/components/CompanyNameAndCountry/component/CompanyNameAndCountryComponent.d.ts +4 -0
  24. package/dist/types/components/CompanyNameAndCountry/types.d.ts +8 -0
  25. package/dist/types/components/CompanyNameAndCountry/validate.d.ts +3 -0
  26. package/dist/types/components/CompanyType/CompanyType.d.ts +5 -0
  27. package/dist/types/components/CompanyType/component/CompanyTypeComponent.d.ts +5 -0
  28. package/dist/types/components/CompanyType/types.d.ts +8 -0
  29. package/dist/types/components/CompanyType/validate.d.ts +3 -0
  30. package/dist/types/components/ConstitutionalDocument/ConstitutionalDocumentComponent.d.ts +14 -0
  31. package/dist/types/components/ConstitutionalDocument/types.d.ts +11 -0
  32. package/dist/types/components/ContactDetails/ContactDetails.d.ts +5 -0
  33. package/dist/types/components/ContactDetails/component/ContactDetailsComponent.d.ts +4 -0
  34. package/dist/types/components/ContactDetails/types.d.ts +8 -0
  35. package/dist/types/components/ContactDetails/validate.d.ts +3 -0
  36. package/dist/types/components/DecisionMakers/DecisionMakers.d.ts +5 -0
  37. package/dist/types/components/DecisionMakers/component/DecisionMakersComponent.d.ts +5 -0
  38. package/dist/types/components/DecisionMakers/types.d.ts +11 -0
  39. package/dist/types/components/DocumentUpload/DocumentUpload.d.ts +4 -0
  40. package/dist/types/components/DocumentUpload/types.d.ts +21 -0
  41. package/dist/types/components/Dropins/CompanyDropin/CompanyDropin.d.ts +6 -0
  42. package/dist/types/components/Dropins/CompanyDropin/components/CompanyDropinComponent.d.ts +2 -0
  43. package/dist/types/components/Dropins/CompanyDropin/index.d.ts +2 -0
  44. package/dist/types/components/Dropins/Dropin.d.ts +21 -0
  45. package/dist/types/components/Dropins/DropinComposer/DropinComposer.d.ts +6 -0
  46. package/dist/types/components/Dropins/DropinComposer/components/DropinComposerComponent.d.ts +2 -0
  47. package/dist/types/components/Dropins/DropinLayout/ActionBar/ActionBar.d.ts +4 -0
  48. package/dist/types/components/Dropins/DropinLayout/ActionBar/index.d.ts +1 -0
  49. package/dist/types/components/Dropins/DropinLayout/ActionBar/type.d.ts +8 -0
  50. package/dist/types/components/Dropins/DropinLayout/DropinLayout.d.ts +3 -0
  51. package/dist/types/components/Dropins/DropinLayout/types.d.ts +6 -0
  52. package/dist/types/components/Dropins/FormComposer/FormComposer.d.ts +30 -0
  53. package/dist/types/components/Dropins/FormComposer/components/FormNavigation/FormNavigation.d.ts +4 -0
  54. package/dist/types/components/Dropins/FormComposer/components/FormNavigation/components/FormNavigationItem/FormNavigationItem.d.ts +4 -0
  55. package/dist/types/components/Dropins/FormComposer/components/FormNavigation/components/FormNavigationItem/index.d.ts +1 -0
  56. package/dist/types/components/Dropins/FormComposer/components/FormNavigation/index.d.ts +1 -0
  57. package/dist/types/components/Dropins/FormComposer/components/FormNavigation/types.d.ts +27 -0
  58. package/dist/types/components/Dropins/FormComposer/components/StepProgressIndicator/StepProgressIndicator.d.ts +6 -0
  59. package/dist/types/components/Dropins/FormComposer/types.d.ts +23 -0
  60. package/dist/types/components/Dropins/IndividualDropin/IndividualDropin.d.ts +6 -0
  61. package/dist/types/components/Dropins/IndividualDropin/components/IndividualDropinComponent.d.ts +2 -0
  62. package/dist/types/components/Dropins/IndividualDropin/index.d.ts +2 -0
  63. package/dist/types/components/Dropins/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +6 -0
  64. package/dist/types/components/Dropins/PayoutDetailsDropin/components/PayoutDetailsDropinComponent.d.ts +2 -0
  65. package/dist/types/components/Dropins/PayoutDetailsDropin/index.d.ts +1 -0
  66. package/dist/types/components/Dropins/PciDropin/components/PciDropinComponent.d.ts +2 -0
  67. package/dist/types/components/Dropins/PciDropin/index.d.ts +1 -0
  68. package/dist/types/components/Dropins/PciDropin/types.d.ts +14 -0
  69. package/dist/types/components/Dropins/RoleAndTypeDropin/RoleAndTypeDropin.d.ts +6 -0
  70. package/dist/types/components/Dropins/RoleAndTypeDropin/components/RoleAndTypeComponent.d.ts +4 -0
  71. package/dist/types/components/Dropins/RoleAndTypeDropin/index.d.ts +1 -0
  72. package/dist/types/components/Dropins/RoleAndTypeDropin/types.d.ts +9 -0
  73. package/dist/types/components/Dropins/ServiceAgreementDropinComponent/components/ServiceAgreementDropinComponent.d.ts +2 -0
  74. package/dist/types/components/Dropins/ServiceAgreementDropinComponent/index.d.ts +1 -0
  75. package/dist/types/components/Dropins/ServiceAgreementDropinComponent/types.d.ts +13 -0
  76. package/dist/types/components/Dropins/SolePropDropin/SolePropDropin.d.ts +6 -0
  77. package/dist/types/components/Dropins/SolePropDropin/components/SolePropDropinComponent.d.ts +2 -0
  78. package/dist/types/components/Dropins/SolePropDropin/index.d.ts +2 -0
  79. package/dist/types/components/Dropins/TrustDropin/TrustDropin.d.ts +6 -0
  80. package/dist/types/components/Dropins/TrustDropin/components/TrustDropinComponent.d.ts +2 -0
  81. package/dist/types/components/Dropins/TrustDropin/index.d.ts +2 -0
  82. package/dist/types/components/Dropins/types.d.ts +51 -0
  83. package/dist/types/components/EventEmitter.d.ts +7 -0
  84. package/dist/types/components/EventEmitter.test.d.ts +1 -0
  85. package/dist/types/components/IdDocumentUpload/IdDocumentUpload.d.ts +5 -0
  86. package/dist/types/components/IdDocumentUpload/component/IdDocumentUploadComponent.d.ts +6 -0
  87. package/dist/types/components/IdDocumentUpload/component/components/UploadSwitcher.d.ts +2 -0
  88. package/dist/types/components/IdDocumentUpload/component/index.d.ts +1 -0
  89. package/dist/types/components/IdDocumentUpload/types.d.ts +49 -0
  90. package/dist/types/components/IdVerification/IdVerification.d.ts +6 -0
  91. package/dist/types/components/IdVerification/component/IdVerificationComponent.d.ts +4 -0
  92. package/dist/types/components/IdVerification/component/index.d.ts +1 -0
  93. package/dist/types/components/IdVerification/types.d.ts +25 -0
  94. package/dist/types/components/IdentityNumber/IdentityNumber.d.ts +5 -0
  95. package/dist/types/components/IdentityNumber/component/IdentityNumberComponent.d.ts +5 -0
  96. package/dist/types/components/IdentityNumber/formats.d.ts +12 -0
  97. package/dist/types/components/IdentityNumber/type.d.ts +10 -0
  98. package/dist/types/components/IdentityNumber/validate.d.ts +24 -0
  99. package/dist/types/components/IdentityNumber/validate.helper.d.ts +5 -0
  100. package/dist/types/components/Individual/Individual.d.ts +5 -0
  101. package/dist/types/components/Individual/component/IndividualComponent.d.ts +7 -0
  102. package/dist/types/components/Individual/index.d.ts +1 -0
  103. package/dist/types/components/Individual/rules.d.ts +3 -0
  104. package/dist/types/components/Individual/types.d.ts +47 -0
  105. package/dist/types/components/IndividualDocumentUpload/component/IndividualDocumentUploadComponent.d.ts +0 -0
  106. package/dist/types/components/LegalEntityTypeSwitcher/LegalEntityTypeSwitcher.d.ts +2 -0
  107. package/dist/types/components/LegalEntityTypeSwitcher/type.d.ts +6 -0
  108. package/dist/types/components/PayoutAccount/PayoutAccount.d.ts +5 -0
  109. package/dist/types/components/PayoutAccount/component/PayoutAccountComponent.d.ts +6 -0
  110. package/dist/types/components/PayoutAccount/types.d.ts +28 -0
  111. package/dist/types/components/PayoutBankStatement/PayoutBankStatement.d.ts +5 -0
  112. package/dist/types/components/PayoutBankStatement/component/PayoutBankStatementComponent.d.ts +6 -0
  113. package/dist/types/components/PayoutBankStatement/types.d.ts +20 -0
  114. package/dist/types/components/PayoutDetails/PayoutDetails.d.ts +5 -0
  115. package/dist/types/components/PayoutDetails/component/PayoutDetailsComponent.d.ts +6 -0
  116. package/dist/types/components/PayoutDetails/types.d.ts +27 -0
  117. package/dist/types/components/PersonalDetails/PersonalDetails.d.ts +5 -0
  118. package/dist/types/components/PersonalDetails/component/PersonalDetailsComponent.d.ts +4 -0
  119. package/dist/types/components/PersonalDetails/index.d.ts +1 -0
  120. package/dist/types/components/PersonalDetails/types.d.ts +19 -0
  121. package/dist/types/components/PersonalDetails/validate.d.ts +3 -0
  122. package/dist/types/components/ProofOfResidency/ProofOfResidencyComponent.d.ts +4 -0
  123. package/dist/types/components/ProofOfResidency/types.d.ts +14 -0
  124. package/dist/types/components/RegistrationAddress/RegistrationAddress.d.ts +5 -0
  125. package/dist/types/components/RegistrationAddress/component/RegistrationAddressComponent.d.ts +6 -0
  126. package/dist/types/components/RegistrationAddress/types.d.ts +24 -0
  127. package/dist/types/components/RegistrationAddress/validate.d.ts +3 -0
  128. package/dist/types/components/SoleProp/SoleProp.d.ts +5 -0
  129. package/dist/types/components/SoleProp/component/SolePropComponent.d.ts +6 -0
  130. package/dist/types/components/SoleProp/types.d.ts +28 -0
  131. package/dist/types/components/TaskList/TaskList.d.ts +5 -0
  132. package/dist/types/components/TaskList/component/TaskItemStatus.d.ts +3 -0
  133. package/dist/types/components/TaskList/component/TaskListComponent.d.ts +4 -0
  134. package/dist/types/components/TaskList/component/TaskListGroup.d.ts +5 -0
  135. package/dist/types/components/TaskList/component/TaskListItem.d.ts +4 -0
  136. package/dist/types/components/TaskList/types.d.ts +59 -0
  137. package/dist/types/components/Trust/Trust.d.ts +5 -0
  138. package/dist/types/components/Trust/component/TrustComponent.d.ts +6 -0
  139. package/dist/types/components/Trust/types.d.ts +22 -0
  140. package/dist/types/components/TrustDocumentUpload/TrustDocumentUpload.d.ts +5 -0
  141. package/dist/types/components/TrustDocumentUpload/component/TrustDocumentUploadComponent.d.ts +6 -0
  142. package/dist/types/components/TrustDocumentUpload/types.d.ts +5 -0
  143. package/dist/types/components/TrustMembers/TrustMembers.d.ts +5 -0
  144. package/dist/types/components/TrustMembers/component/TrustMembersComponent.d.ts +5 -0
  145. package/dist/types/components/TrustMembers/types.d.ts +18 -0
  146. package/dist/types/components/TrustRegistrationDetails/TrustRegistrationDetails.d.ts +5 -0
  147. package/dist/types/components/TrustRegistrationDetails/component/TrustRegistrationDetailsComponent.d.ts +4 -0
  148. package/dist/types/components/TrustRegistrationDetails/types.d.ts +15 -0
  149. package/dist/types/components/TrustRegistrationDetails/validate.d.ts +3 -0
  150. package/dist/types/components/TrustRoleAndEntityType/TrustRoleAndEntityType.d.ts +5 -0
  151. package/dist/types/components/TrustRoleAndEntityType/component/TrustRoleAndEntityTypeComponent.d.ts +3 -0
  152. package/dist/types/components/TrustRoleAndEntityType/types.d.ts +18 -0
  153. package/dist/types/components/TrustRoleAndEntityType/validate.d.ts +3 -0
  154. package/dist/types/components/UIElement.d.ts +34 -0
  155. package/dist/types/components/index.d.ts +27 -0
  156. package/dist/types/components/internal/Accordion/Accordion.d.ts +3 -0
  157. package/dist/types/components/internal/Accordion/AccordionContext.d.ts +2 -0
  158. package/dist/types/components/internal/Accordion/index.d.ts +1 -0
  159. package/dist/types/components/internal/Accordion/types.d.ts +22 -0
  160. package/dist/types/components/internal/AccordionItem/AccordionItem.d.ts +3 -0
  161. package/dist/types/components/internal/AccordionItem/index.d.ts +1 -0
  162. package/dist/types/components/internal/AccordionItem/types.d.ts +13 -0
  163. package/dist/types/components/internal/AccordionItem/useAccordionContext.d.ts +3 -0
  164. package/dist/types/components/internal/AccountHolder/AccountHolder.d.ts +3 -0
  165. package/dist/types/components/internal/AccountHolder/index.d.ts +1 -0
  166. package/dist/types/components/internal/AccountHolder/types.d.ts +17 -0
  167. package/dist/types/components/internal/AccountHolder/validate.d.ts +3 -0
  168. package/dist/types/components/internal/Address/Address.d.ts +13 -0
  169. package/dist/types/components/internal/Address/Address.test.d.ts +1 -0
  170. package/dist/types/components/internal/Address/components/CountryField.d.ts +3 -0
  171. package/dist/types/components/internal/Address/components/CountryField.test.d.ts +1 -0
  172. package/dist/types/components/internal/Address/components/FieldContainer.d.ts +9 -0
  173. package/dist/types/components/internal/Address/components/FieldContainer.test.d.ts +1 -0
  174. package/dist/types/components/internal/Address/components/ReadOnlyAddress.d.ts +3 -0
  175. package/dist/types/components/internal/Address/components/SearchAddress.d.ts +3 -0
  176. package/dist/types/components/internal/Address/components/StateField.d.ts +2 -0
  177. package/dist/types/components/internal/Address/components/StateField.test.d.ts +1 -0
  178. package/dist/types/components/internal/Address/constants.d.ts +6 -0
  179. package/dist/types/components/internal/Address/index.d.ts +1 -0
  180. package/dist/types/components/internal/Address/types.d.ts +82 -0
  181. package/dist/types/components/internal/Address/utils.d.ts +19 -0
  182. package/dist/types/components/internal/Address/validate.d.ts +3 -0
  183. package/dist/types/components/internal/Address/validate.formats.d.ts +4 -0
  184. package/dist/types/components/internal/Alert/Alert.d.ts +6 -0
  185. package/dist/types/components/internal/Alert/Alert.test.d.ts +1 -0
  186. package/dist/types/components/internal/Alert/components/ReviewAlert.d.ts +2 -0
  187. package/dist/types/components/internal/Alert/components/VerficationErrorAlert.d.ts +3 -0
  188. package/dist/types/components/internal/Alert/index.d.ts +1 -0
  189. package/dist/types/components/internal/Alert/types.d.ts +22 -0
  190. package/dist/types/components/internal/BankAccountNumber/BankAccountNumber.d.ts +3 -0
  191. package/dist/types/components/internal/BankAccountNumber/index.d.ts +1 -0
  192. package/dist/types/components/internal/BankAccountNumber/types.d.ts +5 -0
  193. package/dist/types/components/internal/BankCity/BankCity.d.ts +3 -0
  194. package/dist/types/components/internal/BankCity/index.d.ts +1 -0
  195. package/dist/types/components/internal/BankCity/types.d.ts +5 -0
  196. package/dist/types/components/internal/BankCode/BankCode.d.ts +3 -0
  197. package/dist/types/components/internal/BankCode/index.d.ts +1 -0
  198. package/dist/types/components/internal/BankCode/types.d.ts +5 -0
  199. package/dist/types/components/internal/BankName/BankName.d.ts +3 -0
  200. package/dist/types/components/internal/BankName/index.d.ts +1 -0
  201. package/dist/types/components/internal/BankName/types.d.ts +5 -0
  202. package/dist/types/components/internal/BranchCode/BranchCode.d.ts +3 -0
  203. package/dist/types/components/internal/BranchCode/index.d.ts +1 -0
  204. package/dist/types/components/internal/BranchCode/types.d.ts +5 -0
  205. package/dist/types/components/internal/BusinessRegistrationNumber/BusinessRegistrationNumber.d.ts +3 -0
  206. package/dist/types/components/internal/BusinessRegistrationNumber/index.d.ts +1 -0
  207. package/dist/types/components/internal/BusinessRegistrationNumber/registrationNoValidator.d.ts +368 -0
  208. package/dist/types/components/internal/BusinessRegistrationNumber/registrationNoValidator.test.d.ts +1 -0
  209. package/dist/types/components/internal/BusinessRegistrationNumber/types.d.ts +10 -0
  210. package/dist/types/components/internal/BusinessRegistrationNumber/validate.d.ts +14 -0
  211. package/dist/types/components/internal/Button/Button.d.ts +17 -0
  212. package/dist/types/components/internal/Button/Button.test.d.ts +1 -0
  213. package/dist/types/components/internal/Button/index.d.ts +1 -0
  214. package/dist/types/components/internal/Button/types.d.ts +25 -0
  215. package/dist/types/components/internal/Card/Card.d.ts +3 -0
  216. package/dist/types/components/internal/Card/CardGroup.d.ts +3 -0
  217. package/dist/types/components/internal/Card/types.d.ts +16 -0
  218. package/dist/types/components/internal/CardLayout/CardLayout.d.ts +3 -0
  219. package/dist/types/components/internal/CollapsibleContainer/CollapsibleContainer.d.ts +3 -0
  220. package/dist/types/components/internal/CollapsibleContainer/index.d.ts +1 -0
  221. package/dist/types/components/internal/CollapsibleContainer/types.d.ts +6 -0
  222. package/dist/types/components/internal/ContextGuidance/ContextGuidance.d.ts +2 -0
  223. package/dist/types/components/internal/ContextGuidance/index.d.ts +1 -0
  224. package/dist/types/components/internal/ContextGuidance/types.d.ts +10 -0
  225. package/dist/types/components/internal/ContractViewer/ContractViewer.d.ts +3 -0
  226. package/dist/types/components/internal/ContractViewer/components/Chapter/Chapter.d.ts +2 -0
  227. package/dist/types/components/internal/ContractViewer/components/ContentElements/ContentElements.d.ts +2 -0
  228. package/dist/types/components/internal/ContractViewer/components/InternalReference/InternalReference.d.ts +2 -0
  229. package/dist/types/components/internal/ContractViewer/components/List/List.d.ts +2 -0
  230. package/dist/types/components/internal/ContractViewer/components/Paragraph/Paragraph.d.ts +3 -0
  231. package/dist/types/components/internal/ContractViewer/components/Section/Section.d.ts +3 -0
  232. package/dist/types/components/internal/ContractViewer/components/Table/Table.d.ts +3 -0
  233. package/dist/types/components/internal/ContractViewer/components/Text/Text.d.ts +3 -0
  234. package/dist/types/components/internal/ContractViewer/components/Weblink/Weblink.d.ts +3 -0
  235. package/dist/types/components/internal/ContractViewer/index.d.ts +1 -0
  236. package/dist/types/components/internal/ContractViewer/types.d.ts +82 -0
  237. package/dist/types/components/internal/Currency/Currency.d.ts +5 -0
  238. package/dist/types/components/internal/Currency/Currency.test.d.ts +1 -0
  239. package/dist/types/components/internal/Currency/index.d.ts +1 -0
  240. package/dist/types/components/internal/Currency/types.d.ts +11 -0
  241. package/dist/types/components/internal/DocumentGuidance/DocumentGuidance.d.ts +4 -0
  242. package/dist/types/components/internal/DocumentGuidance/type.d.ts +5 -0
  243. package/dist/types/components/internal/EntityAssociation/EntityAssociation.d.ts +3 -0
  244. package/dist/types/components/internal/EntityAssociation/EntityAssociations.test.d.ts +1 -0
  245. package/dist/types/components/internal/EntityAssociation/types.d.ts +19 -0
  246. package/dist/types/components/internal/ErrorPanel/ErrorPanel.d.ts +13 -0
  247. package/dist/types/components/internal/ErrorPanel/ErrorPanel.test.d.ts +1 -0
  248. package/dist/types/components/internal/ErrorPanel/components/NavigateToFieldLink.d.ts +5 -0
  249. package/dist/types/components/internal/ErrorPanel/components/ServerValidationErrors.d.ts +3 -0
  250. package/dist/types/components/internal/ErrorPanel/components/VerificationErrors.d.ts +3 -0
  251. package/dist/types/components/internal/ErrorPanel/constants.d.ts +1 -0
  252. package/dist/types/components/internal/ErrorPanel/types.d.ts +33 -0
  253. package/dist/types/components/internal/FormFields/Checkbox/Checkbox.d.ts +21 -0
  254. package/dist/types/components/internal/FormFields/Checkbox/Checkbox.test.d.ts +1 -0
  255. package/dist/types/components/internal/FormFields/Checkbox/index.d.ts +1 -0
  256. package/dist/types/components/internal/FormFields/ConsentCheckbox/ConsentCheckbox.d.ts +6 -0
  257. package/dist/types/components/internal/FormFields/Dropzone/Dropzone.d.ts +17 -0
  258. package/dist/types/components/internal/FormFields/Dropzone/Dropzone.test.d.ts +1 -0
  259. package/dist/types/components/internal/FormFields/Dropzone/components/DropzoneFile.d.ts +3 -0
  260. package/dist/types/components/internal/FormFields/Dropzone/types.d.ts +27 -0
  261. package/dist/types/components/internal/FormFields/Dropzone/validate.d.ts +3 -0
  262. package/dist/types/components/internal/FormFields/Field/Field.d.ts +40 -0
  263. package/dist/types/components/internal/FormFields/Field/index.d.ts +1 -0
  264. package/dist/types/components/internal/FormFields/Field/types.d.ts +28 -0
  265. package/dist/types/components/internal/FormFields/Fieldset/Fieldset.d.ts +10 -0
  266. package/dist/types/components/internal/FormFields/Fieldset/Fieldset.test.d.ts +1 -0
  267. package/dist/types/components/internal/FormFields/Fieldset/index.d.ts +1 -0
  268. package/dist/types/components/internal/FormFields/InputBase.d.ts +25 -0
  269. package/dist/types/components/internal/FormFields/InputDate/InputDate.d.ts +5 -0
  270. package/dist/types/components/internal/FormFields/InputDate/index.d.ts +1 -0
  271. package/dist/types/components/internal/FormFields/InputDate/utils.d.ts +22 -0
  272. package/dist/types/components/internal/FormFields/InputDate/utils.test.d.ts +1 -0
  273. package/dist/types/components/internal/FormFields/InputEmail.d.ts +1 -0
  274. package/dist/types/components/internal/FormFields/InputFile.d.ts +1 -0
  275. package/dist/types/components/internal/FormFields/InputRadio/InputRadio.d.ts +3 -0
  276. package/dist/types/components/internal/FormFields/InputTelephone.d.ts +1 -0
  277. package/dist/types/components/internal/FormFields/InputText.d.ts +8 -0
  278. package/dist/types/components/internal/FormFields/RadioGroup/RadioGroup.d.ts +10 -0
  279. package/dist/types/components/internal/FormFields/RadioGroup/index.d.ts +1 -0
  280. package/dist/types/components/internal/FormFields/RadioGroup/types.d.ts +17 -0
  281. package/dist/types/components/internal/FormFields/RadioGroupCard/RadioGroupCard.d.ts +10 -0
  282. package/dist/types/components/internal/FormFields/RadioGroupCard/RadioGroupCard.test.d.ts +1 -0
  283. package/dist/types/components/internal/FormFields/RadioGroupCard/index.d.ts +1 -0
  284. package/dist/types/components/internal/FormFields/RadioGroupCard/types.d.ts +18 -0
  285. package/dist/types/components/internal/FormFields/Select/Select.d.ts +4 -0
  286. package/dist/types/components/internal/FormFields/Select/Select.test.d.ts +1 -0
  287. package/dist/types/components/internal/FormFields/Select/components/SelectButton.d.ts +3 -0
  288. package/dist/types/components/internal/FormFields/Select/components/SelectList.d.ts +3 -0
  289. package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts +3 -0
  290. package/dist/types/components/internal/FormFields/Select/index.d.ts +1 -0
  291. package/dist/types/components/internal/FormFields/Select/types.d.ts +113 -0
  292. package/dist/types/components/internal/FormFields/TextArea.d.ts +1 -0
  293. package/dist/types/components/internal/FormFields/index.d.ts +3 -0
  294. package/dist/types/components/internal/FormFields/utils.d.ts +2 -0
  295. package/dist/types/components/internal/FormFields/utils.test.d.ts +1 -0
  296. package/dist/types/components/internal/FormHeader/FormHeader.d.ts +3 -0
  297. package/dist/types/components/internal/FormHeader/type.d.ts +8 -0
  298. package/dist/types/components/internal/Heading/Heading.d.ts +8 -0
  299. package/dist/types/components/internal/Iban/Iban.d.ts +3 -0
  300. package/dist/types/components/internal/Iban/ibanValidator.d.ts +1 -0
  301. package/dist/types/components/internal/Iban/ibanValidator.test.d.ts +1 -0
  302. package/dist/types/components/internal/Iban/index.d.ts +1 -0
  303. package/dist/types/components/internal/Iban/types.d.ts +7 -0
  304. package/dist/types/components/internal/Icon/Icon.d.ts +7 -0
  305. package/dist/types/components/internal/Icon/Icon.test.d.ts +1 -0
  306. package/dist/types/components/internal/Icon/index.d.ts +1 -0
  307. package/dist/types/components/internal/LegalCompanyName/LegalCompanyName.d.ts +3 -0
  308. package/dist/types/components/internal/LegalCompanyName/index.d.ts +1 -0
  309. package/dist/types/components/internal/LegalCompanyName/types.d.ts +5 -0
  310. package/dist/types/components/internal/LegalCompanyName/validate.d.ts +3 -0
  311. package/dist/types/components/internal/Link/Link.d.ts +6 -0
  312. package/dist/types/components/internal/Link/Link.test.d.ts +1 -0
  313. package/dist/types/components/internal/Link/index.d.ts +1 -0
  314. package/dist/types/components/internal/Link/types.d.ts +12 -0
  315. package/dist/types/components/internal/List/List.d.ts +4 -0
  316. package/dist/types/components/internal/List/List.test.d.ts +1 -0
  317. package/dist/types/components/internal/List/ListItem.d.ts +3 -0
  318. package/dist/types/components/internal/List/types.d.ts +13 -0
  319. package/dist/types/components/internal/Loader/Loader.d.ts +22 -0
  320. package/dist/types/components/internal/Loader/index.d.ts +2 -0
  321. package/dist/types/components/internal/LoaderWrapper/LoaderWrapper.d.ts +12 -0
  322. package/dist/types/components/internal/LoaderWrapper/constants.d.ts +6 -0
  323. package/dist/types/components/internal/LoaderWrapper/index.d.ts +1 -0
  324. package/dist/types/components/internal/Modal/Modal.d.ts +4 -0
  325. package/dist/types/components/internal/Modal/Modal.test.d.ts +1 -0
  326. package/dist/types/components/internal/Modal/type.d.ts +15 -0
  327. package/dist/types/components/internal/Name/Name.d.ts +4 -0
  328. package/dist/types/components/internal/Name/index.d.ts +1 -0
  329. package/dist/types/components/internal/Name/types.d.ts +6 -0
  330. package/dist/types/components/internal/Name/validate.d.ts +4 -0
  331. package/dist/types/components/internal/PartOfTrust/PartOfTrust.d.ts +3 -0
  332. package/dist/types/components/internal/PartOfTrust/index.d.ts +1 -0
  333. package/dist/types/components/internal/PartOfTrust/types.d.ts +20 -0
  334. package/dist/types/components/internal/PhoneInput/PhoneInput.d.ts +10 -0
  335. package/dist/types/components/internal/PhoneInput/index.d.ts +1 -0
  336. package/dist/types/components/internal/PhoneInput/types.d.ts +12 -0
  337. package/dist/types/components/internal/PhoneInput/validate.d.ts +4 -0
  338. package/dist/types/components/internal/Role/Role.d.ts +3 -0
  339. package/dist/types/components/internal/Role/index.d.ts +1 -0
  340. package/dist/types/components/internal/Role/types.d.ts +11 -0
  341. package/dist/types/components/internal/Role/validate.d.ts +3 -0
  342. package/dist/types/components/internal/Shimmer/Shimmer.d.ts +2 -0
  343. package/dist/types/components/internal/Spinner/Spinner.d.ts +17 -0
  344. package/dist/types/components/internal/Spinner/index.d.ts +1 -0
  345. package/dist/types/components/internal/Status/Status.d.ts +4 -0
  346. package/dist/types/components/internal/Status/types.d.ts +6 -0
  347. package/dist/types/components/internal/Summary/Summary.d.ts +8 -0
  348. package/dist/types/components/internal/Summary/types.d.ts +17 -0
  349. package/dist/types/components/internal/SwiftCode/SwiftCode.d.ts +3 -0
  350. package/dist/types/components/internal/SwiftCode/index.d.ts +1 -0
  351. package/dist/types/components/internal/SwiftCode/types.d.ts +5 -0
  352. package/dist/types/components/internal/Tag/Tag.d.ts +9 -0
  353. package/dist/types/components/internal/Tag/index.d.ts +1 -0
  354. package/dist/types/components/internal/TaxId/TaxId.d.ts +3 -0
  355. package/dist/types/components/internal/TaxId/index.d.ts +1 -0
  356. package/dist/types/components/internal/TaxId/rules.d.ts +54 -0
  357. package/dist/types/components/internal/TaxId/taxIdValidation.d.ts +4 -0
  358. package/dist/types/components/internal/TaxId/taxIdValidation.test.d.ts +1 -0
  359. package/dist/types/components/internal/TaxId/types.d.ts +34 -0
  360. package/dist/types/components/internal/TaxId/validate.d.ts +4 -0
  361. package/dist/types/components/internal/Toast/Toast.d.ts +9 -0
  362. package/dist/types/components/internal/Toast/index.d.ts +1 -0
  363. package/dist/types/components/internal/Toast/types.d.ts +14 -0
  364. package/dist/types/components/internal/VatNumber/VatNumber.d.ts +8 -0
  365. package/dist/types/components/internal/VatNumber/index.d.ts +1 -0
  366. package/dist/types/components/internal/VatNumber/rules.d.ts +181 -0
  367. package/dist/types/components/internal/VatNumber/types.d.ts +25 -0
  368. package/dist/types/components/internal/VatNumber/validate.d.ts +4 -0
  369. package/dist/types/components/internal/VatNumber/vatNumberValidation.d.ts +4 -0
  370. package/dist/types/components/internal/VatNumber/vatNumberValidation.test.d.ts +1 -0
  371. package/dist/types/core/Context/CoreContext.d.ts +19 -0
  372. package/dist/types/core/Context/CoreProvider.d.ts +46 -0
  373. package/dist/types/core/Context/FormRouterContext/FormRouterContext.d.ts +1 -0
  374. package/dist/types/core/Context/FormRouterContext/FormRouterContextProvider.d.ts +3 -0
  375. package/dist/types/core/Context/FormRouterContext/types.d.ts +7 -0
  376. package/dist/types/core/Context/FormRouterContext/useFormRouterContext.d.ts +2 -0
  377. package/dist/types/core/Context/StateContext/StateContext.d.ts +1 -0
  378. package/dist/types/core/Context/StateContext/StateContextSetter.d.ts +2 -0
  379. package/dist/types/core/Context/StateContext/StateContextWatcher.d.ts +2 -0
  380. package/dist/types/core/Context/StateContext/StateProvider.d.ts +5 -0
  381. package/dist/types/core/Context/StateContext/StateReducer.d.ts +11 -0
  382. package/dist/types/core/Context/StateContext/types.d.ts +34 -0
  383. package/dist/types/core/Context/StateContext/useStateContext.d.ts +2 -0
  384. package/dist/types/core/Context/ToastContext/ToastContext.d.ts +1 -0
  385. package/dist/types/core/Context/ToastContext/ToastContextProvider.d.ts +4 -0
  386. package/dist/types/core/Context/ToastContext/useToastContext.d.ts +2 -0
  387. package/dist/types/core/Context/useCoreContext.d.ts +18 -0
  388. package/dist/types/core/Environment/Environment.d.ts +2 -0
  389. package/dist/types/core/Environment/Environment.test.d.ts +1 -0
  390. package/dist/types/core/Environment/index.d.ts +1 -0
  391. package/dist/types/core/SDKValidation/index.d.ts +4 -0
  392. package/dist/types/core/SDKValidation/schemas.d.ts +2 -0
  393. package/dist/types/core/SDKValidation/types.d.ts +14 -0
  394. package/dist/types/core/Services/fetch.d.ts +2 -0
  395. package/dist/types/core/Services/get-configuration-data.d.ts +20 -0
  396. package/dist/types/core/Services/get-dataset.d.ts +2 -0
  397. package/dist/types/core/Services/get-fonts.d.ts +16 -0
  398. package/dist/types/core/Services/get-images.d.ts +3 -0
  399. package/dist/types/core/Services/http.d.ts +16 -0
  400. package/dist/types/core/Services/verify-id-number.d.ts +2 -0
  401. package/dist/types/core/config.d.ts +11 -0
  402. package/dist/types/core/constants.d.ts +10 -0
  403. package/dist/types/core/core.d.ts +30 -0
  404. package/dist/types/core/core.test.d.ts +1 -0
  405. package/dist/types/core/errorMapping.d.ts +127 -0
  406. package/dist/types/core/models/api/address.d.ts +18 -0
  407. package/dist/types/core/models/api/attachment.d.ts +5 -0
  408. package/dist/types/core/models/api/capability.d.ts +9 -0
  409. package/dist/types/core/models/api/company-types-value.d.ts +10 -0
  410. package/dist/types/core/models/api/configuration.d.ts +15 -0
  411. package/dist/types/core/models/api/contracts.d.ts +76 -0
  412. package/dist/types/core/models/api/data-set.d.ts +5 -0
  413. package/dist/types/core/models/api/decision-maker-type.d.ts +5 -0
  414. package/dist/types/core/models/api/document.d.ts +25 -0
  415. package/dist/types/core/models/api/entity-type.d.ts +5 -0
  416. package/dist/types/core/models/api/id-verification-data.d.ts +5 -0
  417. package/dist/types/core/models/api/individual.d.ts +22 -0
  418. package/dist/types/core/models/api/instant-id-verification.d.ts +27 -0
  419. package/dist/types/core/models/api/legal-entity-association.d.ts +12 -0
  420. package/dist/types/core/models/api/legal-entity-type.d.ts +6 -0
  421. package/dist/types/core/models/api/legal-entity.d.ts +25 -0
  422. package/dist/types/core/models/api/organization.d.ts +36 -0
  423. package/dist/types/core/models/api/phone.d.ts +5 -0
  424. package/dist/types/core/models/api/problem.d.ts +13 -0
  425. package/dist/types/core/models/api/soleProprietor.d.ts +13 -0
  426. package/dist/types/core/models/api/transfer-instrument.d.ts +25 -0
  427. package/dist/types/core/models/api/trust-member-type.d.ts +7 -0
  428. package/dist/types/core/models/api/trust-types-value.d.ts +17 -0
  429. package/dist/types/core/models/api/trust.d.ts +14 -0
  430. package/dist/types/core/models/api/verification-error.d.ts +12 -0
  431. package/dist/types/core/models/api/verification-status.d.ts +6 -0
  432. package/dist/types/core/models/company.d.ts +17 -0
  433. package/dist/types/core/models/country-config.d.ts +9 -0
  434. package/dist/types/core/models/currency.d.ts +19 -0
  435. package/dist/types/core/models/decision-maker.d.ts +68 -0
  436. package/dist/types/core/models/errors/capability-problems.d.ts +7 -0
  437. package/dist/types/core/models/errors/entity-problems.d.ts +19 -0
  438. package/dist/types/core/models/errors/error-message.d.ts +5 -0
  439. package/dist/types/core/models/errors/field-errors.d.ts +4 -0
  440. package/dist/types/core/models/errors/form-verification-errors.d.ts +6 -0
  441. package/dist/types/core/models/errors/remediation-action-context.d.ts +4 -0
  442. package/dist/types/core/models/errors/remediation.d.ts +5 -0
  443. package/dist/types/core/models/errors/validation-error.d.ts +14 -0
  444. package/dist/types/core/models/field-configurations.d.ts +8 -0
  445. package/dist/types/core/models/form-labels.d.ts +5 -0
  446. package/dist/types/core/models/form-rules.d.ts +6 -0
  447. package/dist/types/core/models/form.d.ts +17 -0
  448. package/dist/types/core/models/id-verification-status.d.ts +7 -0
  449. package/dist/types/core/models/identity.d.ts +33 -0
  450. package/dist/types/core/models/payout-account.d.ts +16 -0
  451. package/dist/types/core/models/scenario-fields.d.ts +9 -0
  452. package/dist/types/core/models/sole-prop.d.ts +10 -0
  453. package/dist/types/core/models/trust.d.ts +7 -0
  454. package/dist/types/core/process-field-configurations.d.ts +76 -0
  455. package/dist/types/core/types.d.ts +18 -0
  456. package/dist/types/core/user-events.d.ts +65 -0
  457. package/dist/types/core/user-events.test.d.ts +1 -0
  458. package/dist/types/core/utils.d.ts +36 -0
  459. package/dist/types/index.d.ts +2 -0
  460. package/dist/types/language/Language.d.ts +46 -0
  461. package/dist/types/language/Language.test.d.ts +1 -0
  462. package/dist/types/language/config.d.ts +774 -0
  463. package/dist/types/language/index.d.ts +1 -0
  464. package/dist/types/language/types.d.ts +6 -0
  465. package/dist/types/language/utils.d.ts +53 -0
  466. package/dist/types/language/utils.test.d.ts +1 -0
  467. package/dist/types/types/index.d.ts +9 -0
  468. package/dist/types/utils/Validator/Validator.d.ts +35 -0
  469. package/dist/types/utils/Validator/Validator.test.d.ts +1 -0
  470. package/dist/types/utils/Validator/types.d.ts +44 -0
  471. package/dist/types/utils/accountHolderUtils.d.ts +19 -0
  472. package/dist/types/utils/api/documentUtils.d.ts +20 -0
  473. package/dist/types/utils/api/processCapabilitites.d.ts +56 -0
  474. package/dist/types/utils/api/processValidationErrors.d.ts +9 -0
  475. package/dist/types/utils/bytesToSize.d.ts +1 -0
  476. package/dist/types/utils/company-util.d.ts +6 -0
  477. package/dist/types/utils/datasetUtil.d.ts +15 -0
  478. package/dist/types/utils/debounce.d.ts +1 -0
  479. package/dist/types/utils/decision-maker-roles.d.ts +49 -0
  480. package/dist/types/utils/decision-maker-roles.test.d.ts +4 -0
  481. package/dist/types/utils/entity-association-util.d.ts +91 -0
  482. package/dist/types/utils/entity-association-util.test.d.ts +4 -0
  483. package/dist/types/utils/file.d.ts +9 -0
  484. package/dist/types/utils/formUtils.d.ts +15 -0
  485. package/dist/types/utils/genUtils.d.ts +61 -0
  486. package/dist/types/utils/genUtils.test.d.ts +1 -0
  487. package/dist/types/utils/get-image.d.ts +11 -0
  488. package/dist/types/utils/get-image.test.d.ts +1 -0
  489. package/dist/types/utils/get-name.d.ts +1 -0
  490. package/dist/types/utils/get-props.d.ts +4 -0
  491. package/dist/types/utils/get-task-status.d.ts +9 -0
  492. package/dist/types/utils/get-task-status.test.d.ts +1 -0
  493. package/dist/types/utils/idGenerator.d.ts +1 -0
  494. package/dist/types/utils/mapping/componentApiMapping.d.ts +123 -0
  495. package/dist/types/utils/mapping/documentGuidanceMap.d.ts +6 -0
  496. package/dist/types/utils/mapping/mapping.d.ts +112 -0
  497. package/dist/types/utils/payout-account.d.ts +2 -0
  498. package/dist/types/utils/remove-object-empty-values.d.ts +1 -0
  499. package/dist/types/utils/scroll.d.ts +1 -0
  500. package/dist/types/utils/trust-util.d.ts +75 -0
  501. package/dist/types/utils/trust-util.test.d.ts +4 -0
  502. package/dist/types/utils/useForm/index.d.ts +1 -0
  503. package/dist/types/utils/useForm/reducer.d.ts +16 -0
  504. package/dist/types/utils/useForm/types.d.ts +91 -0
  505. package/dist/types/utils/useForm/useForm.d.ts +11 -0
  506. package/dist/types/utils/useForm/useForm.test.d.ts +1 -0
  507. package/dist/types/utils/uuid.d.ts +1 -0
  508. package/dist/types/utils/uuid.test.d.ts +1 -0
  509. package/dist/types/utils/validatorUtils.d.ts +27 -0
  510. package/dist/types/utils/verification/helpers/verifyIDNumber.d.ts +17 -0
  511. package/dist/types/utils/verification/verificationUtils.d.ts +7 -0
  512. package/package.json +93 -0
@@ -0,0 +1 @@
1
+ export { default } from './Language';
@@ -0,0 +1,6 @@
1
+ export declare type Locales = string[];
2
+ export declare type CustomTranslations = {
3
+ [key: string]: {
4
+ [message: string]: string;
5
+ };
6
+ };
@@ -0,0 +1,53 @@
1
+ import { CustomTranslations } from './types';
2
+ /**
3
+ * Matches a string with one of the locales
4
+ * @param locale -
5
+ * @param supportedLocales -
6
+
7
+ * @example
8
+ * matchLocale('en-GB');
9
+ * // 'en-US'
10
+ */
11
+ export declare function matchLocale(locale: string, supportedLocales: any): string;
12
+ /**
13
+ * Returns a locale with the proper format
14
+ * @param localeParam -
15
+ *
16
+ * @example
17
+ * formatLocale('En_us');
18
+ * // 'en-US'
19
+ */
20
+ export declare function formatLocale(localeParam: string): string;
21
+ /**
22
+ * Checks the locale format.
23
+ * Also checks if it's on the locales array.
24
+ * If it is not, tries to match it with one.
25
+ * @param locale -
26
+ * @param supportedLocales -
27
+ */
28
+ export declare function parseLocale(locale: string, supportedLocales?: string[]): string;
29
+ /**
30
+ * Formats the locales inside the customTranslations object against the supportedLocales
31
+ * @param customTranslations -
32
+ * @param supportedLocales -
33
+ */
34
+ export declare function formatCustomTranslations(customTranslations: object, supportedLocales: string[]): CustomTranslations;
35
+ /**
36
+ * Returns an array with all the locales
37
+ * @param locale - The locale the user wants to use
38
+ * @param customTranslations -
39
+ */
40
+ export declare const getTranslations: ({ locale, loadingContext, clientKey, customTranslations }: {
41
+ locale: any;
42
+ loadingContext: any;
43
+ clientKey: any;
44
+ customTranslations?: {};
45
+ }) => Promise<any>;
46
+ /**
47
+ * Returns an LanguageCode from local
48
+ * @param locale - The locale the user wants to use
49
+ *
50
+ * @example for getLanguageCode('en-US')
51
+ * // returns 'en'
52
+ */
53
+ export declare const getLanguageCode: (locale: string) => string;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ import { ADDRESS_SCHEMA } from '../components/internal/Address/constants';
2
+ export declare type AddressField = typeof ADDRESS_SCHEMA[number];
3
+ export declare type AddressSchema = {
4
+ [key in AddressField]?: string;
5
+ };
6
+ /**
7
+ * Visibility options for a fieldset
8
+ */
9
+ export declare type FieldsetVisibility = 'editable' | 'hidden' | 'readOnly';
@@ -0,0 +1,35 @@
1
+ import { ErrorMessageObject, FieldContext, FieldData, ValidatorRules } from './types';
2
+ export interface ValidationRuleResult {
3
+ isValid: boolean;
4
+ errorMessage: string | ErrorMessageObject;
5
+ hasError: boolean;
6
+ }
7
+ export declare type ValidationRuleResults = {
8
+ [key: string]: ValidationRuleResult;
9
+ };
10
+ declare class ValidationResult {
11
+ private validationResults;
12
+ constructor(results: ValidationRuleResult[]);
13
+ /** Checks if all validation rules have passed */
14
+ get isValid(): boolean;
15
+ /** Checks if any validation rule returned an error */
16
+ hasError(): boolean;
17
+ /** Returns the first validation result that returned an error */
18
+ getError(): ValidationRuleResult;
19
+ /** Returns all validation results that returned an error */
20
+ getAllErrors(): ValidationRuleResult[];
21
+ }
22
+ declare class Validator<FormSchema> {
23
+ rules: ValidatorRules<FormSchema>;
24
+ constructor(rules: ValidatorRules<FormSchema>);
25
+ setRules(newRules: ValidatorRules<FormSchema>): void;
26
+ /**
27
+ * Get all validation rules for a field
28
+ */
29
+ private getRulesFor;
30
+ /**
31
+ * Validates a field
32
+ */
33
+ validate<Field extends keyof FormSchema>({ key, value, mode }: FieldData<FormSchema, Field>, context?: FieldContext): ValidationResult;
34
+ }
35
+ export default Validator;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,44 @@
1
+ declare type ValidatorMode = 'blur' | 'input';
2
+ export declare type ErrorMessageObject = {
3
+ translationKey: string;
4
+ translationObject: any;
5
+ };
6
+ export declare type Ruleset = {
7
+ [key: string]: any;
8
+ };
9
+ export declare type CountryRuleset = {
10
+ [country: string]: Ruleset;
11
+ };
12
+ export interface Format<ValueType> {
13
+ formatter?: (value: ValueType, context?: any) => string;
14
+ format?: string;
15
+ maxlength?: number;
16
+ }
17
+ export declare type FormatRules<FormSchema> = Partial<{
18
+ [field in keyof FormSchema]: Format<FormSchema[field]>;
19
+ }>;
20
+ export declare type CountryFormatRules<FormSchema> = {
21
+ [country: string]: FormatRules<FormSchema>;
22
+ };
23
+ export interface ValidatorRule<ValueType> {
24
+ validate: (value: ValueType, context?: any) => boolean;
25
+ errorMessage?: string | ErrorMessageObject;
26
+ modes: ValidatorMode[];
27
+ }
28
+ export declare type ValidatorRules<FormSchema> = Partial<{
29
+ [field in keyof FormSchema]: ValidatorRule<FormSchema[field]> | ValidatorRule<FormSchema[field]>[];
30
+ }>;
31
+ export declare type CountryBasedValidatorRules<FormSchema> = {
32
+ [country: string]: ValidatorRules<FormSchema>;
33
+ };
34
+ export interface FieldData<FormSchema, Field extends keyof FormSchema> {
35
+ key: Field;
36
+ value: FormSchema[Field];
37
+ mode?: ValidatorMode;
38
+ }
39
+ export interface FieldContext {
40
+ state: {
41
+ [key: string]: any;
42
+ };
43
+ }
44
+ export {};
@@ -0,0 +1,19 @@
1
+ import { AccountHolderTypes } from '../components/internal/AccountHolder/types';
2
+ import { LegalEntityType } from '../core/models/api/legal-entity-type';
3
+ export declare const accountHolderTypes: {
4
+ id: AccountHolderTypes;
5
+ name: string;
6
+ description: string;
7
+ type: LegalEntityType;
8
+ }[];
9
+ export declare const accountHolderTypesForOrganization: {
10
+ id: AccountHolderTypes;
11
+ name: string;
12
+ description: string;
13
+ type: LegalEntityType;
14
+ }[];
15
+ /**
16
+ ** Accountholder type value is not stored in backend as it does not effect any check evaluations.
17
+ ** The value is computed in the front end based on the associations and current flow of the legalEntity
18
+ **/
19
+ export declare const getDefaultAccountHolderType: (legalEntityResponse: any, isTypeChanging?: boolean) => AccountHolderTypes;
@@ -0,0 +1,20 @@
1
+ import Document, { DocumentType } from '../../core/models/api/document';
2
+ export declare type DocumentApiUtils = {
3
+ fetchDocuments(documentIds: Array<string>, entityId: string): Promise<Array<Document>>;
4
+ fetchDocument(documentId: string, entityId: string): Promise<Document>;
5
+ uploadDocuments(documents: Array<Document>, entityId: string): Promise<Array<Document>>;
6
+ };
7
+ declare const documentApiUtils: (createDocumentHandler: any, getDocumentHandler: any, updateDocumentHandler: any) => DocumentApiUtils;
8
+ export declare const getDocument: (entityId: string, documentType: DocumentType) => Document;
9
+ export declare const getDocuments: (entityId: string) => Array<Document>;
10
+ export declare const getIdDocument: (entityId: string) => Document;
11
+ export declare const createDocumentRequest: ({ entityId, entityType, documentType, page1, page2, description }: {
12
+ entityId: any;
13
+ entityType: any;
14
+ documentType: any;
15
+ page1: any;
16
+ page2?: any;
17
+ description?: any;
18
+ }) => Promise<Document>;
19
+ export declare const getFileExtention: (fileName: string) => string;
20
+ export default documentApiUtils;
@@ -0,0 +1,56 @@
1
+ import { CapabilityProblems } from '../../core/models/errors/capability-problems';
2
+ import LegalEntity from '../../core/models/api/legal-entity';
3
+ import RemediationActionContext from '../../core/models/errors/remediation-action-context';
4
+ import { Remediation } from '../../core/models/errors/remediation';
5
+ /***
6
+ * Processes the capability problems and parses the problems into below form
7
+ * The resulting object segregates the errors based on form and fields they are mapped to
8
+ * and maps them to a task item. Also provides the errorCounts per entity and per form.
9
+ *
10
+ * @example
11
+ * ```
12
+ * {
13
+ * BankAccount: { // Group errors based on supporting entity type
14
+ * [id]: {
15
+ * errors: {
16
+ * [formId]: {
17
+ * [parentErrorCode]: {
18
+ * [subErrorCode]: [
19
+ * {
20
+ * { code: '1_300', forms: ['personalDetails'], fields: ['firstName', 'lastName'] }
21
+ * }
22
+ * ]
23
+ * }
24
+ * },
25
+ * },
26
+ * remediationActions: {
27
+ * '1_300': { code: '1_300', forms: ['personalDetails'], fields: ['firstName', 'lastName'] }
28
+ * }
29
+ * }
30
+ * },
31
+ * LegalEntity: { // will contain main entity as well as associated entity Problems
32
+ * [id]: {
33
+ * errors: {
34
+ * [formId]: {
35
+ * [parentErrorCode]: {
36
+ * [subErrorCode]: [
37
+ * {
38
+ * { code: '1_300', forms: ['personalDetails'], fields: ['firstName', 'lastName'] }
39
+ * }
40
+ * ]
41
+ * }
42
+ * },
43
+ * },
44
+ * remediationActions: {
45
+ * '1_300': { code: '1_300', forms: ['personalDetails'], fields: ['firstName', 'lastName'] }
46
+ * }
47
+ * }
48
+ * }
49
+ *};
50
+ * ```
51
+ *
52
+ * */
53
+ declare function getCapabilityProblems(response: LegalEntity): CapabilityProblems;
54
+ declare const getComponentMappingFromLEFieldPath: (context: RemediationActionContext) => any;
55
+ export declare const remediationHasFileUploadField: (remediation: Remediation) => boolean;
56
+ export { getCapabilityProblems, getComponentMappingFromLEFieldPath };
@@ -0,0 +1,9 @@
1
+ import { TaskTypes } from '../../components/TaskList/types';
2
+ import { ValidationError } from '../../core/models/errors/validation-error';
3
+ /**
4
+ * Processes server validation errors received from an erroneous HTTP response.
5
+ * @param validationError - the validation error contain all invalid fields.
6
+ * @param dropinTask - the dropin page we are processing validations for.
7
+ */
8
+ declare const processValidationErrors: (validationError: ValidationError, dropinTask: TaskTypes) => {};
9
+ export default processValidationErrors;
@@ -0,0 +1 @@
1
+ export default function bytesToSize(bytes: number): string;
@@ -0,0 +1,6 @@
1
+ export declare const updateTaxInformation: ({ taxId, country, exemptedFromTax, entity }: {
2
+ taxId: string;
3
+ country: string;
4
+ exemptedFromTax?: boolean;
5
+ entity: any;
6
+ }) => any;
@@ -0,0 +1,15 @@
1
+ export declare type DatasetUtil = {
2
+ getCountryName: (countryCode: any) => string;
3
+ getStateName: (stateCode: any, countryCode: any) => string;
4
+ getPhonePrefix: (countryCode: any) => string;
5
+ setDataset: (datasetKey: any, dataset: any) => void;
6
+ getDataset: (identifier: any) => any;
7
+ getDatasetKey: (identifier: any) => string;
8
+ };
9
+ export declare const datasetIdentifier: {
10
+ country: string;
11
+ state: (countryCode: any) => string;
12
+ phonePrefix: string;
13
+ translations: string;
14
+ };
15
+ export default function datasetUtilities(locale: any): DatasetUtil;
@@ -0,0 +1 @@
1
+ export default function debounce<T extends Function>(cb: T, wait?: number): T;
@@ -0,0 +1,49 @@
1
+ import { DecisionMakerType } from '../core/models/api/decision-maker-type';
2
+ import Language from '../language/Language';
3
+ import LegalEntity from '../core/models/api/legal-entity';
4
+ import LegalEntityAssociation from '../core/models/api/legal-entity-association';
5
+ import { TaskTypes } from '../components/TaskList/types';
6
+ export declare const getTranslatedDecisionMakerRoles: (i18n: Language, allowedRoles?: DecisionMakerType[]) => ({
7
+ name: string;
8
+ description: string;
9
+ id: DecisionMakerType;
10
+ className: string;
11
+ } | {
12
+ name: string;
13
+ description: string;
14
+ id: DecisionMakerType;
15
+ className: string;
16
+ } | {
17
+ name: string;
18
+ description: string;
19
+ id: DecisionMakerType;
20
+ className: string;
21
+ })[];
22
+ export declare const getDecisionMakerTagColor: (decisionMakerType: DecisionMakerType) => string;
23
+ export declare const getDecisionMakerName: (decisionMakerType: DecisionMakerType) => string;
24
+ export declare const getOwnDecisionMakers: (legalEntity: LegalEntity) => Array<LegalEntityAssociation>;
25
+ export declare const getOwnSignatories: (legalEntity: LegalEntity) => LegalEntityAssociation[];
26
+ export declare const getOwnDecisionMakersLegalEntityIds: (legalEntity: LegalEntity) => string[];
27
+ export declare const getDecisionMakerCount: (legalEntityResponse: LegalEntity) => {};
28
+ export declare const getAllowedDecisionMakerRoles: (legalEntityResponse: LegalEntity, taskType: TaskTypes) => DecisionMakerType[];
29
+ export declare const hasMinRequiredDecisionMakerCount: (legalEntityResponse: LegalEntity) => boolean;
30
+ export declare const decisionMakerRoles: {
31
+ uboThroughControl: {
32
+ id: DecisionMakerType;
33
+ name: string;
34
+ description: string;
35
+ className: string;
36
+ };
37
+ uboThroughOwnership: {
38
+ id: DecisionMakerType;
39
+ name: string;
40
+ description: string;
41
+ className: string;
42
+ };
43
+ signatory: {
44
+ id: DecisionMakerType;
45
+ name: string;
46
+ description: string;
47
+ className: string;
48
+ };
49
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @jest-environment jsdom
3
+ */
4
+ export {};
@@ -0,0 +1,91 @@
1
+ import LegalEntityAssociation from '../core/models/api/legal-entity-association';
2
+ import Language from '../language';
3
+ import LegalEntity from '../core/models/api/legal-entity';
4
+ import { CapabilityProblems } from '../core/models/errors/capability-problems';
5
+ import { EntityProblems } from '../core/models/errors/entity-problems';
6
+ export declare const entityAssociationRoles: {
7
+ uboThroughControl: {
8
+ id: import("../core/models/api/decision-maker-type").DecisionMakerType;
9
+ name: string;
10
+ description: string;
11
+ className: string;
12
+ };
13
+ uboThroughOwnership: {
14
+ id: import("../core/models/api/decision-maker-type").DecisionMakerType;
15
+ name: string;
16
+ description: string;
17
+ className: string;
18
+ };
19
+ signatory: {
20
+ id: import("../core/models/api/decision-maker-type").DecisionMakerType;
21
+ name: string;
22
+ description: string;
23
+ className: string;
24
+ };
25
+ definedBeneficiary: {
26
+ id: import("../core/models/api/trust-member-type").TrustMemberType;
27
+ name: string;
28
+ description: string;
29
+ className: string;
30
+ };
31
+ protector: {
32
+ id: import("../core/models/api/trust-member-type").TrustMemberType;
33
+ name: string;
34
+ description: string;
35
+ className: string;
36
+ };
37
+ secondaryTrustee: {
38
+ id: import("../core/models/api/trust-member-type").TrustMemberType;
39
+ name: string;
40
+ description: string;
41
+ className: string;
42
+ };
43
+ settlor: {
44
+ id: import("../core/models/api/trust-member-type").TrustMemberType;
45
+ name: string;
46
+ description: string;
47
+ className: string;
48
+ };
49
+ };
50
+ export declare const getEntityAssociationTagColor: (entityAssociationType: LegalEntityAssociation['type']) => any;
51
+ export declare const getEntityAssociationName: (entityAssociationType: LegalEntityAssociation['type']) => any;
52
+ export declare const getTranslatedEntityAssociationRoles: (i18n: Language, allowedRoles?: LegalEntityAssociation['type']) => ({
53
+ name: string;
54
+ description: string;
55
+ id: import("../core/models/api/trust-member-type").TrustMemberType;
56
+ className: string;
57
+ } | {
58
+ name: string;
59
+ description: string;
60
+ id: import("../core/models/api/trust-member-type").TrustMemberType;
61
+ className: string;
62
+ } | {
63
+ name: string;
64
+ description: string;
65
+ id: import("../core/models/api/trust-member-type").TrustMemberType;
66
+ className: string;
67
+ } | {
68
+ name: string;
69
+ description: string;
70
+ id: import("../core/models/api/trust-member-type").TrustMemberType;
71
+ className: string;
72
+ } | {
73
+ name: string;
74
+ description: string;
75
+ id: import("../core/models/api/decision-maker-type").DecisionMakerType;
76
+ className: string;
77
+ } | {
78
+ name: string;
79
+ description: string;
80
+ id: import("../core/models/api/decision-maker-type").DecisionMakerType;
81
+ className: string;
82
+ } | {
83
+ name: string;
84
+ description: string;
85
+ id: import("../core/models/api/decision-maker-type").DecisionMakerType;
86
+ className: string;
87
+ })[];
88
+ export declare const getOwnEntityAssociations: (legalEntity: LegalEntity) => Array<LegalEntityAssociation>;
89
+ export declare const getOwnSoleProprietorshipIdArray: (legalEntity: LegalEntity) => Array<string>;
90
+ export declare const hasSolePropInLegalEntity: (legalEntity: LegalEntity) => boolean;
91
+ export declare const getOwnSolePropProblems: (legalEntity: LegalEntity, capabilityProblems: CapabilityProblems) => EntityProblems;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @jest-environment jsdom
3
+ */
4
+ export {};
@@ -0,0 +1,9 @@
1
+ export declare const downloadFile: (base64: any, filename: any) => Promise<void>;
2
+ export declare const base64ToBlob: (base64: any, mimeType?: string) => Blob;
3
+ /**
4
+ * Utility to save Blob|File reference to disk as a new file
5
+ *
6
+ * @param fileData -
7
+ * @param filename -
8
+ */
9
+ export declare const saveBlobAsFile: (fileData: any, filename: any) => void;
@@ -0,0 +1,15 @@
1
+ export declare type FormUtils = {
2
+ getPlaceholder: (field: any, fallbackPlaceholderKey?: any) => string;
3
+ getLabel: (field: any, fallbackLabelKey?: any) => string;
4
+ isRequiredField: (field: any, showIfNotInRequiredFields?: any) => boolean;
5
+ isOptionalField: (field: any) => boolean;
6
+ isVisibleField: (field: any, showIfNotInRequiredFields?: any) => boolean;
7
+ isReadOnly: (field: any) => boolean;
8
+ getVal: (val: getValProps) => string;
9
+ getErrorMessage: (field: any, errors: any, fieldProblems: any) => string | boolean;
10
+ };
11
+ export declare type getValProps = string | {
12
+ translationKey: string;
13
+ translationObject: object;
14
+ };
15
+ export default function formUtilities(props: any, i18n?: any): FormUtils;
@@ -0,0 +1,61 @@
1
+ /**
2
+ * 'Destructures' properties from object - returns a new object only containing those properties that were asked for (including if those properties
3
+ * have values that are falsy: null, undefined, false, '').
4
+ *
5
+ * @param args - property names to select: can be either 'regular' arguments (comma separated list) or an array
6
+ * @returns - an object with a function 'from' that accepts a single argument - the object from which to choose properties.
7
+ * This function returns a new object - a copy of the original but only including the desired properties
8
+ *
9
+ * @example const strippedObj = pick('cardType', 'securityCode').from(cardObject);
10
+ * @example const strippedObj = pick(['cardType', 'securityCode']).from(cardObject);
11
+ */
12
+ export declare function pick(...args: any[]): {
13
+ from: (obj: any) => any;
14
+ };
15
+ /**
16
+ *'Destructures' properties from object, returning a new object containing all the original objects properties except those that were specifically rejected
17
+ *
18
+ * @param args - property names to reject: can be either 'regular' arguments (comma separated list) or an array
19
+ * @returns - an object with a function 'from' that accepts a single argument - the object from which to reject properties.
20
+ * This function returns a new object - a copy of the original but excluding the selected properties
21
+ *
22
+ * @example const strippedObj = drop('permittedLengths', 'pattern', 'startingRules').from(cardObject);
23
+ * @example const strippedObj = drop(['permittedLengths', 'pattern', 'startingRules']).from(cardObject);
24
+ */
25
+ export declare function drop(...args: any[]): {
26
+ from: (obj: any) => any;
27
+ };
28
+ /**
29
+ * Compares 2 arrays of (primitive) values to see if they are the same
30
+ * re. https://sebhastian.com/javascript-compare-array/
31
+ */
32
+ export declare function doArraysMatch(arr1: any, arr2: any): any;
33
+ /**
34
+ * Recursively compare 2 objects
35
+ */
36
+ export declare const objectsDeepEqual: (x: any, y: any) => any;
37
+ /**
38
+ * returns the clone of an object.
39
+ * Only supports simple data types and does not look for circular references
40
+ * A complete implementation of deepclone would be an overkill currently.
41
+ * @param object - object to be cloned
42
+ * @returns cloned object.
43
+ */
44
+ export declare function cloneObject(object: any): any;
45
+ /**
46
+ * @param obj - object to reverse
47
+ * @example
48
+ * ```
49
+ * let obj = {a:1,b:2,c:3};
50
+ * reverseObject(obj); => {1:'a', 2: 'b', 3: 'c'}
51
+ * ```
52
+ */
53
+ export declare function reverseObject(obj: any): any;
54
+ declare type ListifyOptions<ItemType> = {
55
+ type?: Intl.ListFormatOptions['type'];
56
+ style?: Intl.ListFormatOptions['style'];
57
+ stringify?: (item: ItemType) => string;
58
+ };
59
+ export declare function listify<ItemType>(array: Array<ItemType>, { type, style, stringify }?: ListifyOptions<ItemType>): string;
60
+ export declare const noop: () => void;
61
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ export interface ImageOptions {
2
+ extension?: string;
3
+ path?: string;
4
+ loadingContext?: string;
5
+ name?: string;
6
+ size?: string;
7
+ svgOptions?: string;
8
+ type?: string;
9
+ }
10
+ export declare const getImageUrl: ({ loadingContext, extension, size, ...options }: ImageOptions) => Function;
11
+ export default getImageUrl;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export declare const getLegalEntityNameBasedOnType: (legalEntityResponse: any) => any;
@@ -0,0 +1,4 @@
1
+ import { BaseFormProps, BaseInnerFormProps, BaseOuterFormProps } from './useForm/types';
2
+ declare function getFormProps<OuterFormProps extends BaseOuterFormProps<OuterFormSchema>, NestedFormProps extends BaseFormProps<NestedFormSchema>, OuterFormSchema, NestedFormSchema>(props: OuterFormProps, innerFormId: any): NestedFormProps;
3
+ declare function getFieldProps<OuterFormProps extends BaseInnerFormProps<OuterFormSchema>, NestedFormProps extends BaseInnerFormProps<NestedFormSchema>, OuterFormSchema extends NestedFormSchema, NestedFormSchema>(props: OuterFormProps, innerFormFields: any): NestedFormProps;
4
+ export { getFieldProps, getFormProps };
@@ -0,0 +1,9 @@
1
+ import { EntityType } from '../core/models/api/entity-type';
2
+ import { TaskStatus } from '../components/TaskList/types';
3
+ import { CapabilityProblems } from '../core/models/errors/capability-problems';
4
+ import LegalEntity from '../core/models/api/legal-entity';
5
+ declare const getTaskStatus: (type: EntityType, capabilityProblems: CapabilityProblems, legalEntity: LegalEntity, entityIds?: string[]) => TaskStatus;
6
+ export declare const hasPendingCapabilities: (legalEntityResponse: LegalEntity) => boolean;
7
+ export declare const hasResolvedCapabilities: (legalEntityResponse: LegalEntity) => boolean;
8
+ export declare const isEmptyEntity: (legalEntityResponse: LegalEntity) => boolean;
9
+ export default getTaskStatus;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export declare const getUniqueId: (prefix?: string) => string;