@tap-payments/auth-jsconnect 2.0.51 → 2.0.52

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 (292) hide show
  1. package/build/@types/app.d.ts +90 -7
  2. package/build/@types/app.js +7 -0
  3. package/build/@types/form.d.ts +21 -20
  4. package/build/@types/theme.d.ts +1 -1
  5. package/build/api/account.d.ts +2 -2
  6. package/build/api/auth.d.ts +11 -11
  7. package/build/api/availabilityServices.d.ts +3 -3
  8. package/build/api/axios.js +1 -1
  9. package/build/api/board.d.ts +3 -3
  10. package/build/api/country.d.ts +1 -1
  11. package/build/api/data.d.ts +10 -10
  12. package/build/api/document.d.ts +2 -2
  13. package/build/api/entity.d.ts +12 -12
  14. package/build/api/file.d.ts +1 -1
  15. package/build/api/individual.d.ts +5 -5
  16. package/build/api/lead.d.ts +10 -10
  17. package/build/api/operator.d.ts +1 -1
  18. package/build/api/operator.js +1 -1
  19. package/build/api/user.d.ts +2 -2
  20. package/build/app/settings.d.ts +4 -11
  21. package/build/app/settings.js +13 -5
  22. package/build/app/store.d.ts +4 -4
  23. package/build/assets/locales/ar.json +3 -1
  24. package/build/assets/locales/en.json +3 -1
  25. package/build/components/DatePicker/DatePicker.js +1 -0
  26. package/build/components/RadioGroup/RadioGroup.d.ts +5 -2
  27. package/build/components/RadioGroup/RadioGroup.js +5 -9
  28. package/build/components/RadioGroup/index.d.ts +1 -1
  29. package/build/components/Slide/Slide.d.ts +1 -1
  30. package/build/constants/app.d.ts +3 -2
  31. package/build/constants/app.js +1 -0
  32. package/build/constants/validation.d.ts +1 -0
  33. package/build/constants/validation.js +1 -0
  34. package/build/features/app/bank/bankStore.d.ts +9 -73
  35. package/build/features/app/bank/bankStore.js +68 -91
  36. package/build/features/app/brand/brandStore.d.ts +16 -103
  37. package/build/features/app/brand/brandStore.js +62 -49
  38. package/build/features/app/business/businessStore.d.ts +18 -162
  39. package/build/features/app/business/businessStore.js +4 -3
  40. package/build/features/app/connect/connectStore.d.ts +13 -121
  41. package/build/features/app/connect/connectStore.js +5 -4
  42. package/build/features/app/connectExpress/connectExpressStore.d.ts +22 -211
  43. package/build/features/app/connectExpress/connectExpressStore.js +9 -10
  44. package/build/features/app/entity/entityStore.d.ts +9 -74
  45. package/build/features/app/entity/entityStore.js +129 -152
  46. package/build/features/app/individual/individualStore.d.ts +21 -167
  47. package/build/features/app/individual/individualStore.js +176 -202
  48. package/build/features/app/password/passwordStore.d.ts +12 -102
  49. package/build/features/app/password/passwordStore.js +1 -1
  50. package/build/features/app/signIn/signInStore.d.ts +7 -61
  51. package/build/features/app/signIn/signInStore.js +1 -1
  52. package/build/features/app/tax/taxStore.d.ts +8 -62
  53. package/build/features/app/tax/taxStore.js +48 -62
  54. package/build/features/bank/screens/BankDetails/BankDetails.js +20 -5
  55. package/build/features/bank/screens/BankDetails/BankName.d.ts +4 -1
  56. package/build/features/bank/screens/BankDetails/BankName.js +8 -7
  57. package/build/features/bank/screens/BankDetails/BankStatement.d.ts +5 -2
  58. package/build/features/bank/screens/BankDetails/BankStatement.js +3 -8
  59. package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +2 -1
  60. package/build/features/bank/screens/BankDetails/Beneficiary.js +8 -7
  61. package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +4 -1
  62. package/build/features/bank/screens/BankDetails/ConfirmPolicy.js +12 -13
  63. package/build/features/bank/screens/BankDetails/IBAN.d.ts +2 -1
  64. package/build/features/bank/screens/BankDetails/IBAN.js +3 -3
  65. package/build/features/bank/screens/BankDetails/validation.d.ts +14 -14
  66. package/build/features/bank/screens/BankDetails/validation.js +16 -21
  67. package/build/features/bank/screens/Verify/OTPInput.js +5 -3
  68. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +15 -18
  69. package/build/features/brand/screens/BrandActivities/ActivitiesList.js +14 -9
  70. package/build/features/brand/screens/BrandActivities/BrandActivities.js +14 -5
  71. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +12 -16
  72. package/build/features/brand/screens/BrandActivities/CustomerBase.js +16 -13
  73. package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +2 -1
  74. package/build/features/brand/screens/BrandActivities/ExpectedCustomers.js +22 -9
  75. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +2 -1
  76. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +20 -7
  77. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +13 -6
  78. package/build/features/brand/screens/BrandActivities/RefundPolicy.js +23 -12
  79. package/build/features/brand/screens/BrandActivities/TAC.d.ts +14 -1
  80. package/build/features/brand/screens/BrandActivities/TAC.js +21 -12
  81. package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +4 -1
  82. package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +18 -4
  83. package/build/features/brand/screens/BrandActivities/validation.d.ts +7 -7
  84. package/build/features/brand/screens/BrandActivities/validation.js +10 -19
  85. package/build/features/brand/screens/BrandInfo/BrandInfo.js +20 -12
  86. package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +9 -0
  87. package/build/features/brand/screens/BrandInfo/BrandLogo.js +52 -0
  88. package/build/features/brand/screens/BrandInfo/BrandName.d.ts +2 -1
  89. package/build/features/brand/screens/BrandInfo/BrandName.js +3 -3
  90. package/build/features/brand/screens/BrandInfo/SalesChannels.d.ts +2 -1
  91. package/build/features/brand/screens/BrandInfo/SalesChannels.js +2 -1
  92. package/build/features/brand/screens/BrandInfo/Segments.d.ts +2 -1
  93. package/build/features/brand/screens/BrandInfo/Segments.js +12 -2
  94. package/build/features/brand/screens/BrandInfo/TeamSize.d.ts +2 -1
  95. package/build/features/brand/screens/BrandInfo/TeamSize.js +12 -2
  96. package/build/features/brand/screens/BrandInfo/validation.d.ts +6 -6
  97. package/build/features/brand/screens/BrandInfo/validation.js +36 -42
  98. package/build/features/brand/screens/Verify/OTPInput.js +5 -3
  99. package/build/features/business/screens/Activities/ActivitiesList.d.ts +12 -17
  100. package/build/features/business/screens/Activities/ActivitiesList.js +5 -5
  101. package/build/features/business/screens/Activities/OperationStartDate.d.ts +2 -2
  102. package/build/features/business/screens/Activities/OperationStartDate.js +2 -2
  103. package/build/features/business/screens/BusinessType/Article.d.ts +1 -1
  104. package/build/features/business/screens/BusinessType/LicenseList.js +1 -1
  105. package/build/features/business/screens/BusinessType/LicenseType.d.ts +5 -5
  106. package/build/features/business/screens/Customers/CustomerLocations.d.ts +10 -15
  107. package/build/features/business/screens/Customers/CustomerLocations.js +5 -5
  108. package/build/features/business/screens/Customers/ExpectedCustomers.js +12 -2
  109. package/build/features/business/screens/Customers/ExpectedSalesRange.js +12 -2
  110. package/build/features/business/screens/Customers/RefundPolicy.d.ts +5 -5
  111. package/build/features/business/screens/IDBOD/DOB.js +1 -1
  112. package/build/features/business/screens/Verify/OTPInput.js +5 -3
  113. package/build/features/connect/screens/Individual/Email.js +1 -1
  114. package/build/features/connect/screens/Merchant/BrandList.js +1 -1
  115. package/build/features/connect/screens/Merchant/BrandName.js +1 -1
  116. package/build/features/connect/screens/Merchant/Segments.js +6 -1
  117. package/build/features/connect/screens/Merchant/TeamSize.js +6 -1
  118. package/build/features/connect/screens/Merchant/validation.js +5 -5
  119. package/build/features/connectExpress/screens/Brand/Brand.js +1 -1
  120. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.d.ts +2 -1
  121. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +3 -3
  122. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +5 -3
  123. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.d.ts +2 -1
  124. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +7 -5
  125. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.d.ts +1 -1
  126. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +1 -1
  127. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +7 -6
  128. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.js +4 -2
  129. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +14 -1
  130. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +9 -10
  131. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +9 -5
  132. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.d.ts +2 -1
  133. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +3 -3
  134. package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.d.ts +1 -0
  135. package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.js +6 -2
  136. package/build/features/connectExpress/screens/CollectIndividualInfo/Name.d.ts +2 -1
  137. package/build/features/connectExpress/screens/CollectIndividualInfo/Name.js +2 -2
  138. package/build/features/connectExpress/screens/Mobile/Mobile.js +4 -2
  139. package/build/features/connectExpress/screens/Mobile/MobileNumber.d.ts +1 -0
  140. package/build/features/connectExpress/screens/Mobile/MobileNumber.js +6 -2
  141. package/build/features/connectExpress/screens/Mobile/TAC.d.ts +2 -1
  142. package/build/features/connectExpress/screens/Mobile/TAC.js +3 -1
  143. package/build/features/connectExpress/screens/NID/DOB.d.ts +2 -1
  144. package/build/features/connectExpress/screens/NID/DOB.js +2 -2
  145. package/build/features/connectExpress/screens/NID/IDNumber.d.ts +1 -0
  146. package/build/features/connectExpress/screens/NID/IDNumber.js +2 -2
  147. package/build/features/connectExpress/screens/NID/NID.js +4 -2
  148. package/build/features/connectExpress/screens/NID/TAC.d.ts +14 -1
  149. package/build/features/connectExpress/screens/NID/TAC.js +9 -10
  150. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +14 -18
  151. package/build/features/entity/screens/EntityCapital/ActivityList.js +20 -27
  152. package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +2 -1
  153. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +7 -3
  154. package/build/features/entity/screens/EntityCapital/CapitalShareCount.d.ts +2 -1
  155. package/build/features/entity/screens/EntityCapital/CapitalShareCount.js +7 -3
  156. package/build/features/entity/screens/EntityCapital/CapitalShareValue.d.ts +2 -1
  157. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +7 -3
  158. package/build/features/entity/screens/EntityCapital/EntityCapital.js +19 -17
  159. package/build/features/entity/screens/EntityCapital/validation.d.ts +10 -10
  160. package/build/features/entity/screens/EntityCapital/validation.js +4 -10
  161. package/build/features/entity/screens/EntityName/Article.d.ts +5 -2
  162. package/build/features/entity/screens/EntityName/Article.js +9 -6
  163. package/build/features/entity/screens/EntityName/EntityName.js +20 -5
  164. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +14 -18
  165. package/build/features/entity/screens/EntityName/EntityTypeList.js +24 -27
  166. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +4 -3
  167. package/build/features/entity/screens/EntityName/ExpiryDate.js +2 -2
  168. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +4 -3
  169. package/build/features/entity/screens/EntityName/IssuingDate.js +2 -2
  170. package/build/features/entity/screens/EntityName/LegalName.d.ts +2 -1
  171. package/build/features/entity/screens/EntityName/LegalName.js +8 -4
  172. package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +4 -1
  173. package/build/features/entity/screens/EntityName/LicenseCertificate.js +8 -9
  174. package/build/features/entity/screens/EntityName/LicenseNumber.d.ts +2 -1
  175. package/build/features/entity/screens/EntityName/LicenseNumber.js +8 -5
  176. package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +2 -1
  177. package/build/features/entity/screens/EntityName/UnifiedNumber.js +8 -5
  178. package/build/features/entity/screens/EntityName/validation.d.ts +35 -35
  179. package/build/features/entity/screens/EntityName/validation.js +68 -93
  180. package/build/features/entity/screens/Verify/OTPInput.js +5 -3
  181. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +2 -2
  182. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +25 -6
  183. package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +7 -1
  184. package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.js +21 -9
  185. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +2 -1
  186. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +8 -6
  187. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +2 -1
  188. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +25 -25
  189. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +2 -1
  190. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +25 -25
  191. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +6 -5
  192. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +8 -6
  193. package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.d.ts +2 -1
  194. package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.js +8 -2
  195. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.d.ts +2 -1
  196. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +8 -3
  197. package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +4 -1
  198. package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.js +8 -9
  199. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +2 -1
  200. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +25 -25
  201. package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +2 -2
  202. package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +6 -11
  203. package/build/features/individual/screens/IndividualList/Email.js +1 -1
  204. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +4 -4
  205. package/build/features/individual/screens/IndividualList/MobileNumber.js +0 -1
  206. package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.d.ts +1 -0
  207. package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.js +12 -2
  208. package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.d.ts +1 -0
  209. package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.js +12 -2
  210. package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +2 -1
  211. package/build/features/individual/screens/IndividualPersonalInfo/DOB.js +3 -3
  212. package/build/features/individual/screens/IndividualPersonalInfo/Email.d.ts +2 -1
  213. package/build/features/individual/screens/IndividualPersonalInfo/Email.js +2 -4
  214. package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +2 -1
  215. package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.js +4 -5
  216. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +7 -6
  217. package/build/features/individual/screens/IndividualPersonalInfo/Gender.js +4 -2
  218. package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +2 -1
  219. package/build/features/individual/screens/IndividualPersonalInfo/ID.js +2 -7
  220. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +2 -2
  221. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +20 -4
  222. package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.d.ts +1 -0
  223. package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.js +13 -7
  224. package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.d.ts +1 -0
  225. package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +11 -10
  226. package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +2 -1
  227. package/build/features/individual/screens/IndividualPersonalInfo/Name.js +2 -2
  228. package/build/features/individual/screens/IndividualPersonalInfo/Nationality.d.ts +1 -0
  229. package/build/features/individual/screens/IndividualPersonalInfo/Nationality.js +13 -7
  230. package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.d.ts +1 -0
  231. package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.js +6 -3
  232. package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.js +4 -2
  233. package/build/features/individual/screens/Verify/OTPInput.js +5 -3
  234. package/build/features/password/screens/Verify/OTPInput.js +5 -3
  235. package/build/features/shared/Address/CountryList.d.ts +9 -9
  236. package/build/features/shared/Address/CountryList.js +1 -1
  237. package/build/features/shared/Address/InputSelect.d.ts +9 -9
  238. package/build/features/shared/Address/InputSelect.js +2 -2
  239. package/build/features/shared/Button/EmailProvidersButtons.d.ts +1 -1
  240. package/build/features/shared/Button/FlowsButtons.d.ts +1 -1
  241. package/build/features/shared/Button/FlowsButtons.js +15 -20
  242. package/build/features/shared/Button/IndividualActionButtons.d.ts +1 -1
  243. package/build/features/shared/Containers/FeatureContainer.d.ts +1 -1
  244. package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
  245. package/build/features/shared/GenericError/GenericError.js +1 -1
  246. package/build/features/shared/Input/Input.d.ts +3 -3
  247. package/build/features/shared/Input/Input.js +2 -3
  248. package/build/features/shared/OTP/OTP.d.ts +2 -1
  249. package/build/features/shared/OTP/OTP.js +2 -2
  250. package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +2 -1
  251. package/build/features/shared/SalesChannels/SaleChannelIconsInput.js +5 -4
  252. package/build/features/shared/SalesChannels/SalesChannel.d.ts +2 -1
  253. package/build/features/shared/SalesChannels/SalesChannel.js +5 -4
  254. package/build/features/shared/UploadFile/FileUpload.d.ts +6 -4
  255. package/build/features/shared/UploadFile/FileUpload.js +19 -15
  256. package/build/features/shared/UploadFile/UploadFile.d.ts +2 -2
  257. package/build/features/shared/UploadFile/UploadFile.js +7 -7
  258. package/build/features/shared/UploadFile/UploadWrapper.d.ts +5 -3
  259. package/build/features/shared/UploadFile/UploadWrapper.js +3 -2
  260. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +5 -4
  261. package/build/features/shared/UploadMultipleFile/UploadFile.js +14 -10
  262. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +4 -3
  263. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.js +3 -3
  264. package/build/features/tax/screens/TaxDetails/ConfirmPolicy.d.ts +4 -1
  265. package/build/features/tax/screens/TaxDetails/ConfirmPolicy.js +12 -12
  266. package/build/features/tax/screens/TaxDetails/TaxDetails.js +9 -4
  267. package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +4 -1
  268. package/build/features/tax/screens/TaxDetails/TaxDocument.js +3 -8
  269. package/build/features/tax/screens/TaxDetails/VATId.d.ts +4 -1
  270. package/build/features/tax/screens/TaxDetails/VATId.js +5 -7
  271. package/build/features/tax/screens/TaxDetails/validation.d.ts +4 -4
  272. package/build/features/tax/screens/TaxDetails/validation.js +2 -5
  273. package/build/features/tax/screens/Verify/OTPInput.js +5 -3
  274. package/build/hooks/index.d.ts +3 -0
  275. package/build/hooks/index.js +3 -0
  276. package/build/hooks/useAppConfig.d.ts +1 -1
  277. package/build/hooks/useAppConfig.js +4 -2
  278. package/build/hooks/useDataNoneEditable.d.ts +2 -0
  279. package/build/hooks/useDataNoneEditable.js +19 -0
  280. package/build/hooks/useFormErrorAndUpdateReadOnly.d.ts +6 -0
  281. package/build/hooks/useFormErrorAndUpdateReadOnly.js +48 -0
  282. package/build/hooks/useFormReadOnly.d.ts +6 -0
  283. package/build/hooks/useFormReadOnly.js +40 -0
  284. package/build/utils/error.d.ts +1 -0
  285. package/build/utils/error.js +3 -0
  286. package/build/utils/object.d.ts +4 -0
  287. package/build/utils/object.js +17 -0
  288. package/build/utils/string.d.ts +1 -1
  289. package/build/utils/string.js +13 -7
  290. package/package.json +2 -2
  291. package/build/features/brand/screens/BrandActivities/OperationStartDate.d.ts +0 -20
  292. package/build/features/brand/screens/BrandActivities/OperationStartDate.js +0 -45
@@ -9,17 +9,6 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
12
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
24
13
  import * as React from 'react';
25
14
  import { useTranslation } from 'react-i18next';
@@ -29,27 +18,27 @@ import { alpha, styled, useTheme } from '@mui/material/styles';
29
18
  import InfoIcon from '@mui/icons-material/Info';
30
19
  import CheckIcon from '@mui/icons-material/Check';
31
20
  import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined';
32
- import { useAppSelector } from '../../../../hooks';
21
+ import { useAppDispatch, useAppSelector } from '../../../../hooks';
33
22
  import Text from '../../../../components/Text';
34
23
  import Collapse from '../../../../components/Collapse';
35
24
  import SimpleList from '../../../../components/SimpleList';
36
25
  import ExpandIcon from '../../../../components/ExpandIcon';
37
- import Input from '../../../../components/Input';
26
+ import Input from '../../../shared/Input';
38
27
  import { ScreenContainer } from '../../../shared/Containers';
39
- import { entitySelector } from '../../../app/entity/entityStore';
28
+ import { clearError, entitySelector } from '../../../app/entity/entityStore';
40
29
  import Search from '../../../shared/Search';
41
30
  import SharedInput from '../../../shared/Input';
42
- import { removeAllOtherThanAlphabet } from '../../../../utils';
31
+ import { hasVerifiedValue, removeAllOtherThanAlphabet } from '../../../../utils';
43
32
  export var InputLabelStyled = styled(Text)(function (_a) {
44
33
  var theme = _a.theme;
45
34
  return (__assign({ color: alpha(theme.palette.text.primary, 0.6) }, theme.typography.caption));
46
35
  });
47
- export var InputStyled = styled(Input)(function (_a) {
48
- var theme = _a.theme, disabled = _a.disabled;
36
+ var InputStyled = styled(Input)(function (_a) {
37
+ var theme = _a.theme, readOnly = _a.readOnly;
49
38
  return ({
50
39
  paddingInlineEnd: theme.spacing(2.5),
51
40
  '& .MuiInputBase-input': {
52
- cursor: disabled ? 'auto' : 'pointer'
41
+ cursor: readOnly ? 'default' : 'pointer'
53
42
  }
54
43
  });
55
44
  });
@@ -92,21 +81,23 @@ export var NameContainer = styled(Text, { shouldForwardProp: function (prop) { r
92
81
  var theme = _a.theme, isSelected = _a.isSelected;
93
82
  return (__assign(__assign({ color: theme.palette.text.primary }, theme.typography.body2), { fontWeight: isSelected ? theme.typography.fontWeightMedium : theme.typography.fontWeightLight, paddingInlineStart: theme.spacing(1.25), textAlign: 'start' }));
94
83
  });
95
- var EntityTypeList = function (_a) {
96
- var rest = __rest(_a, []);
84
+ var EntityTypeList = function (props) {
97
85
  var theme = useTheme();
98
- var _b = React.useState([]), entityTypesMenuList = _b[0], setEntityTypesMenuList = _b[1];
99
- var _c = React.useState(null), anchorEl = _c[0], setAnchorEl = _c[1];
86
+ var _a = React.useState([]), entityTypesMenuList = _a[0], setEntityTypesMenuList = _a[1];
87
+ var _b = React.useState(null), anchorEl = _b[0], setAnchorEl = _b[1];
100
88
  var t = useTranslation().t;
101
89
  var control = useFormContext().control;
102
- var data = useAppSelector(entitySelector).data;
90
+ var _c = useAppSelector(entitySelector), data = _c.data, error = _c.error;
103
91
  var entityTypesControl = useController({ name: 'entityType', control: control });
104
92
  var controlValue = entityTypesControl.field.value || '';
93
+ var dispatch = useAppDispatch();
105
94
  var _d = data.verify.responseBody || {}, entityTypes = _d.entityTypes, entity = _d.entity;
106
95
  var type = entity === null || entity === void 0 ? void 0 : entity.type;
107
96
  var disabled = false;
108
- var hide = !type && disabled;
109
97
  var isListAvailable = (entityTypes === null || entityTypes === void 0 ? void 0 : entityTypes.length) > 0;
98
+ var hide = React.useMemo(function () {
99
+ return (!type && disabled) || hasVerifiedValue(entity === null || entity === void 0 ? void 0 : entity.data_verification, 'type');
100
+ }, [type, disabled, entity === null || entity === void 0 ? void 0 : entity.data_verification]);
110
101
  React.useEffect(function () {
111
102
  if ((entityTypes === null || entityTypes === void 0 ? void 0 : entityTypes.length) > 0) {
112
103
  setEntityTypesMenuList(entityTypes);
@@ -114,20 +105,26 @@ var EntityTypeList = function (_a) {
114
105
  }, [entityTypes]);
115
106
  var onOpenList = function (event) {
116
107
  var _a;
108
+ if (props.readOnly)
109
+ return;
117
110
  setAnchorEl(event.currentTarget);
118
- (_a = rest.onListOpen) === null || _a === void 0 ? void 0 : _a.call(rest);
111
+ (_a = props.onListOpen) === null || _a === void 0 ? void 0 : _a.call(props);
119
112
  };
120
113
  var onCloseList = function () {
121
114
  var _a;
122
115
  setAnchorEl(null);
123
- (_a = rest.onListClose) === null || _a === void 0 ? void 0 : _a.call(rest);
116
+ (_a = props.onListClose) === null || _a === void 0 ? void 0 : _a.call(props);
124
117
  };
125
118
  var onSelectItem = function (item) {
119
+ if (error)
120
+ dispatch(clearError());
126
121
  entityTypesControl.field.onChange(item);
127
122
  onCloseList();
128
123
  };
129
124
  var handleChange = function (_a) {
130
125
  var target = _a.target;
126
+ if (error)
127
+ dispatch(clearError());
131
128
  var value = removeAllOtherThanAlphabet(target.value);
132
129
  entityTypesControl.field.onChange(value);
133
130
  };
@@ -142,7 +139,7 @@ var EntityTypeList = function (_a) {
142
139
  var filteredList = entityTypes === null || entityTypes === void 0 ? void 0 : entityTypes.filter(function (i) { return i === null || i === void 0 ? void 0 : i.toLowerCase().includes(val); });
143
140
  setEntityTypesMenuList(filteredList);
144
141
  };
145
- return (_jsx(Collapse, __assign({ in: !hide }, { children: _jsxs(ScreenContainer, __assign({ sx: { paddingTop: theme.spacing(2.5) } }, { children: [_jsx(Collapse, __assign({ in: !isListAvailable }, { children: _jsx(SharedInput, { disabled: disabled, onChange: handleChange, value: t(getSelectedValue()), label: t('entity_type'), placeholder: t('entity_type_placeholder'), sx: { '& .MuiInputBase-input': { cursor: 'auto' } } }) })), _jsxs(Collapse, __assign({ in: isListAvailable }, { children: [_jsx(LabelContainerStyled, { children: _jsx(InputLabelStyled, { children: t('entity_type') }) }), _jsxs(Box, { children: [_jsx(InputStyled, { readOnly: true, disabled: disabled, value: t(getSelectedValue()), placeholder: t('choose_entity_type'), onClick: disabled ? undefined : !!anchorEl ? function () { return onCloseList(); } : onOpenList, endAdornment: disabled ? _jsx(_Fragment, {}) : _jsx(ExpandIcon, { anchorEl: !!anchorEl }) }), _jsxs(Collapse, __assign({ in: !!anchorEl, timeout: 300 }, { children: [_jsx(Search, { onSearchValue: handleSearch }), _jsx(SimpleListStyled, { searchKeyPath: 'name', list: entityTypesMenuList, onSelectItem: onSelectItem, renderItem: function (i) {
142
+ return (_jsx(Collapse, __assign({ in: !hide }, { children: _jsxs(ScreenContainer, __assign({ sx: { paddingTop: theme.spacing(2.5) } }, { children: [_jsx(Collapse, __assign({ in: !isListAvailable }, { children: _jsx(SharedInput, { disabled: disabled, readOnly: props.readOnly, onChange: handleChange, value: t(getSelectedValue()), label: t('entity_type'), placeholder: t('entity_type_placeholder'), sx: { '& .MuiInputBase-input': { cursor: 'auto' } } }) })), _jsxs(Collapse, __assign({ in: isListAvailable }, { children: [_jsx(LabelContainerStyled, { children: _jsx(InputLabelStyled, { children: t('entity_type') }) }), _jsxs(Box, { children: [_jsx(InputStyled, { readOnly: props.readOnly, disabled: disabled, value: t(getSelectedValue()), placeholder: t('choose_entity_type'), onClick: disabled ? undefined : !!anchorEl ? function () { return onCloseList(); } : onOpenList, endAdornment: disabled ? _jsx(_Fragment, {}) : _jsx(ExpandIcon, { anchorEl: !!anchorEl }) }), _jsxs(Collapse, __assign({ in: !!anchorEl, timeout: 300 }, { children: [_jsx(Search, { onSearchValue: handleSearch }), _jsx(SimpleListStyled, { searchKeyPath: 'name', list: entityTypesMenuList, onSelectItem: onSelectItem, renderItem: function (i) {
146
143
  return (_jsxs(_Fragment, { children: [_jsx(Box, __assign({ display: 'flex' }, { children: _jsx(NameContainer, __assign({ isSelected: getSelectedTypeFlag(i) }, { children: i })) })), getSelectedTypeFlag(i) && _jsx(CheckIconStyled, {})] }));
147
144
  } })] }))] })] }))] })) })));
148
145
  };
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  export declare const InputLabelStyled: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
3
- align?: "right" | "left" | "center" | "inherit" | "justify" | undefined;
3
+ align?: "right" | "left" | "inherit" | "center" | "justify" | undefined;
4
4
  children?: React.ReactNode;
5
5
  classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
6
6
  gutterBottom?: boolean | undefined;
@@ -11,9 +11,10 @@ export declare const InputLabelStyled: import("@emotion/styled").StyledComponent
11
11
  variantMapping?: Partial<Record<"button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "overline" | "subtitle1" | "subtitle2" | "body1" | "body2", string>> | undefined;
12
12
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & {
13
13
  ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
14
- }, ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "sx" | keyof import("@mui/material/OverridableComponent").CommonProps | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
14
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
15
15
  export interface ExpiryDateProps {
16
16
  onDateClicked?: (flag: boolean) => void;
17
+ readOnly?: boolean;
17
18
  }
18
- declare const ExpiryDate: ({ onDateClicked }: ExpiryDateProps) => JSX.Element;
19
+ declare const ExpiryDate: ({ onDateClicked, readOnly }: ExpiryDateProps) => JSX.Element;
19
20
  export default ExpiryDate;
@@ -25,7 +25,7 @@ export var InputLabelStyled = styled(Text)(function (_a) {
25
25
  });
26
26
  var ExpiryDate = function (_a) {
27
27
  var _b, _c;
28
- var onDateClicked = _a.onDateClicked;
28
+ var onDateClicked = _a.onDateClicked, readOnly = _a.readOnly;
29
29
  var t = useTranslation().t;
30
30
  var dispatch = useAppDispatch();
31
31
  var control = useFormContext().control;
@@ -41,6 +41,6 @@ var ExpiryDate = function (_a) {
41
41
  dispatch(clearError());
42
42
  oDateControl.field.onChange(data);
43
43
  };
44
- return (_jsx(Collapse, __assign({ in: !hide }, { children: _jsxs(ScreenContainer, __assign({ sx: { mt: 2.5 } }, { children: [_jsx(InputLabelStyled, { children: t('business_expiry_date') }), _jsx(DatePicker, { readOnly: true, disabled: disabled, maxDate: getFutureDate(), defaultValue: dateValue ? new Date(dateValue) : new Date(), dir: 'ltr', locale: 'en', onClick: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(true); }, onDatePicked: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(false); }, onDateChange: handleExpiryDateChange })] })) })));
44
+ return (_jsx(Collapse, __assign({ in: !hide }, { children: _jsxs(ScreenContainer, __assign({ sx: { mt: 2.5 } }, { children: [_jsx(InputLabelStyled, { children: t('business_expiry_date') }), _jsx(DatePicker, { readOnly: true, disabled: disabled || readOnly, maxDate: getFutureDate(), defaultValue: dateValue ? new Date(dateValue) : new Date(), dir: 'ltr', locale: 'en', onClick: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(true); }, onDatePicked: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(false); }, onDateChange: handleExpiryDateChange })] })) })));
45
45
  };
46
46
  export default ExpiryDate;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  export declare const InputLabelStyled: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
3
- align?: "right" | "left" | "center" | "inherit" | "justify" | undefined;
3
+ align?: "right" | "left" | "inherit" | "center" | "justify" | undefined;
4
4
  children?: React.ReactNode;
5
5
  classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
6
6
  gutterBottom?: boolean | undefined;
@@ -11,9 +11,10 @@ export declare const InputLabelStyled: import("@emotion/styled").StyledComponent
11
11
  variantMapping?: Partial<Record<"button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "overline" | "subtitle1" | "subtitle2" | "body1" | "body2", string>> | undefined;
12
12
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & {
13
13
  ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
14
- }, ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "sx" | keyof import("@mui/material/OverridableComponent").CommonProps | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
14
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
15
15
  export interface IssuingDateProps {
16
16
  onDateClicked?: (flag: boolean) => void;
17
+ readOnly?: boolean;
17
18
  }
18
- declare const IssuingDate: ({ onDateClicked }: IssuingDateProps) => JSX.Element;
19
+ declare const IssuingDate: ({ onDateClicked, readOnly }: IssuingDateProps) => JSX.Element;
19
20
  export default IssuingDate;
@@ -24,7 +24,7 @@ export var InputLabelStyled = styled(Text)(function (_a) {
24
24
  });
25
25
  var IssuingDate = function (_a) {
26
26
  var _b, _c;
27
- var onDateClicked = _a.onDateClicked;
27
+ var onDateClicked = _a.onDateClicked, readOnly = _a.readOnly;
28
28
  var t = useTranslation().t;
29
29
  var dispatch = useAppDispatch();
30
30
  var control = useFormContext().control;
@@ -40,6 +40,6 @@ var IssuingDate = function (_a) {
40
40
  dispatch(clearError());
41
41
  oDateControl.field.onChange(data);
42
42
  };
43
- return (_jsx(Collapse, __assign({ in: !hide }, { children: _jsxs(ScreenContainer, __assign({ sx: { mt: 2.5 } }, { children: [_jsx(InputLabelStyled, { children: t('issue_date') }), _jsx(DatePicker, { readOnly: true, disabled: disabled, defaultValue: dateValue ? new Date(dateValue) : new Date(), dir: 'ltr', locale: 'en', onClick: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(true); }, onDatePicked: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(false); }, onDateChange: handleIssuingDateChange })] })) })));
43
+ return (_jsx(Collapse, __assign({ in: !hide }, { children: _jsxs(ScreenContainer, __assign({ sx: { mt: 2.5 } }, { children: [_jsx(InputLabelStyled, { children: t('issue_date') }), _jsx(DatePicker, { readOnly: true, disabled: disabled || readOnly, defaultValue: dateValue ? new Date(dateValue) : new Date(), dir: 'ltr', locale: 'en', onClick: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(true); }, onDatePicked: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(false); }, onDateChange: handleIssuingDateChange })] })) })));
44
44
  };
45
45
  export default IssuingDate;
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  interface LegalNameProps {
3
+ readOnly?: boolean;
3
4
  }
4
- declare const _default: React.MemoExoticComponent<({}: LegalNameProps) => JSX.Element>;
5
+ declare const _default: React.MemoExoticComponent<({ readOnly }: LegalNameProps) => JSX.Element>;
5
6
  export default _default;
@@ -14,16 +14,18 @@ import * as React from 'react';
14
14
  import { useTranslation } from 'react-i18next';
15
15
  import { useController, useFormContext } from 'react-hook-form';
16
16
  import { Collapse } from '@mui/material';
17
- import { useAppSelector, useLanguage } from '../../../../hooks';
17
+ import { useAppDispatch, useAppSelector, useLanguage } from '../../../../hooks';
18
18
  import { removeAllOtherThanCharsNumbersAndSpace } from '../../../../utils';
19
19
  import { ScreenContainer } from '../../../shared/Containers';
20
- import { entitySelector } from '../../../app/entity/entityStore';
20
+ import { clearError, entitySelector } from '../../../app/entity/entityStore';
21
21
  import Input from '../../../shared/Input';
22
22
  var LegalName = function (_a) {
23
+ var readOnly = _a.readOnly;
23
24
  var t = useTranslation().t;
24
25
  var isAr = useLanguage();
25
26
  var _b = useFormContext(), control = _b.control, setValue = _b.setValue;
26
- var data = useAppSelector(entitySelector).data;
27
+ var dispatch = useAppDispatch();
28
+ var _c = useAppSelector(entitySelector), data = _c.data, error = _c.error;
27
29
  var responseBody = data.verify.responseBody;
28
30
  var entity = (responseBody || {}).entity;
29
31
  var legalName = entity === null || entity === void 0 ? void 0 : entity.legal_name;
@@ -38,9 +40,11 @@ var LegalName = function (_a) {
38
40
  }, [name]);
39
41
  var handleChange = function (_a) {
40
42
  var target = _a.target;
43
+ if (error)
44
+ dispatch(clearError());
41
45
  var value = removeAllOtherThanCharsNumbersAndSpace(target.value);
42
46
  legalNameControl.field.onChange(value);
43
47
  };
44
- return (_jsx(Collapse, __assign({ in: !hide }, { children: _jsx(ScreenContainer, { children: _jsx(Input, { disabled: disabled, onChange: handleChange, value: legalNameValue, label: t('license_name_label'), placeholder: t('license_name_placeholder'), sx: { '& .MuiInputBase-input': { cursor: 'auto' } } }) }) })));
48
+ return (_jsx(Collapse, __assign({ in: !hide }, { children: _jsx(ScreenContainer, { children: _jsx(Input, { readOnly: readOnly, disabled: disabled, onChange: handleChange, value: legalNameValue, label: t('license_name_label'), placeholder: t('license_name_placeholder'), sx: { '& .MuiInputBase-input': { cursor: 'auto' } } }) }) })));
45
49
  };
46
50
  export default React.memo(LegalName);
@@ -1,6 +1,9 @@
1
1
  /// <reference types="react" />
2
+ import { FileDetails } from '../../../../@types';
2
3
  interface LicenseCertificateProps {
3
4
  show: boolean;
5
+ readOnly?: boolean;
6
+ defaultFiles?: Array<FileDetails>;
4
7
  }
5
- declare const LicenseCertificate: ({ show }: LicenseCertificateProps) => JSX.Element;
8
+ declare const LicenseCertificate: ({ show, readOnly, defaultFiles }: LicenseCertificateProps) => JSX.Element;
6
9
  export default LicenseCertificate;
@@ -10,7 +10,6 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import React from 'react';
14
13
  import { useTranslation } from 'react-i18next';
15
14
  import { useController, useFormContext } from 'react-hook-form';
16
15
  import { styled } from '@mui/material/styles';
@@ -18,9 +17,8 @@ import Collapse from '../../../../components/Collapse';
18
17
  import { DocumentPurpose } from '../../../../@types';
19
18
  import { FileType } from '../../../../constants';
20
19
  import { useAppDispatch, useAppSelector } from '../../../../hooks';
21
- import { getFileDetailsFromDocument } from '../../../../utils';
22
20
  import { ScreenContainer } from '../../../shared/Containers';
23
- import { entitySelector, uploadingStatus } from '../../../app/entity/entityStore';
21
+ import { clearError, entitySelector, uploadingStatus } from '../../../app/entity/entityStore';
24
22
  import UploadMultipleFile from '../../../shared/UploadMultipleFile';
25
23
  var FeatureStyled = styled(ScreenContainer)(function (_a) {
26
24
  var theme = _a.theme;
@@ -29,21 +27,22 @@ var FeatureStyled = styled(ScreenContainer)(function (_a) {
29
27
  });
30
28
  });
31
29
  var LicenseCertificate = function (_a) {
32
- var _b;
33
- var show = _a.show;
30
+ var show = _a.show, readOnly = _a.readOnly, defaultFiles = _a.defaultFiles;
34
31
  var t = useTranslation().t;
35
32
  var control = useFormContext().control;
36
33
  var dispatch = useAppDispatch();
37
34
  var certificateIdControl = useController({ name: 'certificateId', control: control });
38
- var _c = useAppSelector(entitySelector), loading = _c.loading, data = _c.data;
39
- var documents = (((_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.entity) || {}).documents;
35
+ var _b = useAppSelector(entitySelector), loading = _b.loading, error = _b.error;
40
36
  var handleLicenseCertificateChange = function (ids) {
37
+ if (error)
38
+ dispatch(clearError());
41
39
  certificateIdControl.field.onChange(ids);
42
40
  };
43
41
  var handleReset = function (ids) {
42
+ if (error)
43
+ dispatch(clearError());
44
44
  certificateIdControl.field.onChange(ids);
45
45
  };
46
- var defaultFiles = React.useMemo(function () { return getFileDetailsFromDocument(documents, DocumentPurpose.CR); }, [documents]);
47
- return (_jsx(Collapse, __assign({ in: show }, { children: _jsx(FeatureStyled, { children: _jsx(UploadMultipleFile, { id: 'certificateId', control: control, label: t('title_license_certificate'), title: t('drag_and_drop'), subTitle: t('subtitle_drop'), dragDescription: t('desc_drag_and_drop_certificate'), uploadingTitle: t('file_uploading_title'), successTitle: t('success_upload_bank_statement'), onFileUploaded: handleLicenseCertificateChange, isSubmitting: loading, onDeleteFile: handleReset, maxLimit: 4, defaultFiles: defaultFiles, purpose: DocumentPurpose.CR, fileUploadingStatus: function (uploading) { return dispatch(uploadingStatus(uploading)); }, fileType: FileType.IMAGES }) }) })));
46
+ return (_jsx(Collapse, __assign({ in: show }, { children: _jsx(FeatureStyled, { children: _jsx(UploadMultipleFile, { readOnly: readOnly, id: 'certificateId', control: control, label: t('title_license_certificate'), title: t('drag_and_drop'), subTitle: t('subtitle_drop'), dragDescription: t('desc_drag_and_drop_certificate'), uploadingTitle: t('file_uploading_title'), successTitle: t('success_upload_bank_statement'), onFileUploaded: handleLicenseCertificateChange, isSubmitting: loading, onDeleteFile: handleReset, maxLimit: 4, defaultFiles: defaultFiles, purpose: DocumentPurpose.CR, fileUploadingStatus: function (uploading) { return dispatch(uploadingStatus(uploading)); }, fileType: FileType.IMAGES }) }) })));
48
47
  };
49
48
  export default LicenseCertificate;
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  interface LicenseNumberProps {
3
3
  show: boolean;
4
+ readOnly?: boolean;
4
5
  }
5
- declare const _default: React.MemoExoticComponent<({ show }: LicenseNumberProps) => JSX.Element>;
6
+ declare const _default: React.MemoExoticComponent<({ show, readOnly }: LicenseNumberProps) => JSX.Element>;
6
7
  export default _default;
@@ -13,20 +13,21 @@ import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import * as React from 'react';
14
14
  import { useTranslation } from 'react-i18next';
15
15
  import { useController, useFormContext } from 'react-hook-form';
16
- import { useAppSelector } from '../../../../hooks';
16
+ import { useAppDispatch, useAppSelector } from '../../../../hooks';
17
17
  import { BusinessType } from '../../../../@types';
18
18
  import { isSA, removeAllOtherThanCharsAndNumber } from '../../../../utils';
19
19
  import { settingsSelector } from '../../../../app/settings';
20
20
  import { CR_NUMBER_LENGTH, FL_NUMBER_ENTITY_LENGTH, KW_MAX_LICENSE_LENGTH, KW_MIN_LICENSE_LENGTH } from '../../../../constants';
21
21
  import { ScreenContainer } from '../../../shared/Containers';
22
22
  import Input from '../../../shared/Input';
23
- import { entitySelector } from '../../../app/entity/entityStore';
23
+ import { clearError, entitySelector } from '../../../app/entity/entityStore';
24
24
  import Collapse from '../../../../components/Collapse';
25
25
  var LicenseNumber = function (_a) {
26
26
  var _b, _c;
27
- var show = _a.show;
27
+ var show = _a.show, readOnly = _a.readOnly;
28
28
  var t = useTranslation().t;
29
- var data = useAppSelector(entitySelector).data;
29
+ var _d = useAppSelector(entitySelector), data = _d.data, bckError = _d.error;
30
+ var dispatch = useAppDispatch();
30
31
  var settingsData = useAppSelector(settingsSelector).data;
31
32
  var control = useFormContext().control;
32
33
  var entity = (data.verify.responseBody || {}).entity;
@@ -37,6 +38,8 @@ var LicenseNumber = function (_a) {
37
38
  var isSACountry = React.useMemo(function () { return isSA(settingsData.businessCountry.iso2); }, [settingsData.businessCountry.iso2]);
38
39
  var handleChange = function (_a) {
39
40
  var target = _a.target;
41
+ if (bckError)
42
+ dispatch(clearError());
40
43
  var value = removeAllOtherThanCharsAndNumber(target.value);
41
44
  licenseNumberControl.field.onChange(value);
42
45
  };
@@ -46,6 +49,6 @@ var LicenseNumber = function (_a) {
46
49
  var isCR = type === BusinessType.CR;
47
50
  var length = !isSACountry ? KW_MAX_LICENSE_LENGTH : isCR ? CR_NUMBER_LENGTH : FL_NUMBER_ENTITY_LENGTH;
48
51
  var minLength = !isSACountry ? KW_MIN_LICENSE_LENGTH : length;
49
- return (_jsx(Collapse, __assign({ in: show && !hide }, { children: _jsx(ScreenContainer, __assign({ sx: { mt: 2.5 } }, { children: _jsx(Input, { label: t('license_number_label'), onChange: handleChange, disabled: disabled, inputProps: { maxLength: length }, value: licenseNumberValue, sx: { '& .MuiInputBase-input': { cursor: 'auto' } }, placeholder: isCR ? t('cr_number_hint') : t('fl_number_hint'), warningType: 'alert', warningMessage: error && t(error, { length: minLength }) }) })) })));
52
+ return (_jsx(Collapse, __assign({ in: show && !hide }, { children: _jsx(ScreenContainer, __assign({ sx: { mt: 2.5 } }, { children: _jsx(Input, { readOnly: readOnly, label: t('license_number_label'), onChange: handleChange, disabled: disabled, inputProps: { maxLength: length }, value: licenseNumberValue, sx: { '& .MuiInputBase-input': { cursor: 'auto' } }, placeholder: isCR ? t('cr_number_hint') : t('fl_number_hint'), warningType: 'alert', warningMessage: error && t(error, { length: minLength }) }) })) })));
50
53
  };
51
54
  export default React.memo(LicenseNumber);
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  interface UnifiedNumberProps {
3
3
  show: boolean;
4
+ readOnly?: boolean;
4
5
  }
5
- declare const _default: React.MemoExoticComponent<({ show }: UnifiedNumberProps) => JSX.Element>;
6
+ declare const _default: React.MemoExoticComponent<({ show, readOnly }: UnifiedNumberProps) => JSX.Element>;
6
7
  export default _default;
@@ -13,30 +13,33 @@ import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import * as React from 'react';
14
14
  import { useTranslation } from 'react-i18next';
15
15
  import { useController, useFormContext } from 'react-hook-form';
16
- import { useAppSelector } from '../../../../hooks';
16
+ import { useAppDispatch, useAppSelector } from '../../../../hooks';
17
17
  import { removeAllOtherThanCharsAndNumber } from '../../../../utils';
18
18
  import Collapse from '../../../../components/Collapse';
19
19
  import { ScreenContainer } from '../../../shared/Containers';
20
20
  import Input from '../../../shared/Input';
21
- import { entitySelector } from '../../../app/entity/entityStore';
21
+ import { clearError, entitySelector } from '../../../app/entity/entityStore';
22
22
  var UnifiedNumber = function (_a) {
23
23
  var _b, _c, _d;
24
- var show = _a.show;
24
+ var show = _a.show, readOnly = _a.readOnly;
25
25
  var t = useTranslation().t;
26
- var data = useAppSelector(entitySelector).data;
26
+ var _e = useAppSelector(entitySelector), data = _e.data, bckError = _e.error;
27
27
  var control = useFormContext().control;
28
+ var dispatch = useAppDispatch();
28
29
  var entity = (data.verify.responseBody || {}).entity;
29
30
  var number = (_c = (_b = entity === null || entity === void 0 ? void 0 : entity.license) === null || _b === void 0 ? void 0 : _b.additional_info) === null || _c === void 0 ? void 0 : _c.unified_number;
30
31
  var disabled = false;
31
32
  var hide = !number && disabled;
32
33
  var handleChange = function (_a) {
33
34
  var target = _a.target;
35
+ if (bckError)
36
+ dispatch(clearError());
34
37
  var value = removeAllOtherThanCharsAndNumber(target.value);
35
38
  unifiedNumberControl.field.onChange(value);
36
39
  };
37
40
  var unifiedNumberControl = useController({ control: control, name: 'unifiedNumber' });
38
41
  var unifiedNumberValue = unifiedNumberControl.field.value;
39
42
  var error = (_d = unifiedNumberControl.fieldState.error) === null || _d === void 0 ? void 0 : _d.message;
40
- return (_jsx(Collapse, __assign({ in: show && !hide }, { children: _jsx(ScreenContainer, __assign({ sx: { mt: 2.5 } }, { children: _jsx(Input, { label: t('unified_number_label'), onChange: handleChange, disabled: disabled, value: unifiedNumberValue, sx: { '& .MuiInputBase-input': { cursor: 'auto' } }, placeholder: t('unified_number_hint'), warningType: 'alert', warningMessage: error && t(error) }) })) })));
43
+ return (_jsx(Collapse, __assign({ in: show && !hide }, { children: _jsx(ScreenContainer, __assign({ sx: { mt: 2.5 } }, { children: _jsx(Input, { readOnly: readOnly, label: t('unified_number_label'), onChange: handleChange, disabled: disabled, value: unifiedNumberValue, sx: { '& .MuiInputBase-input': { cursor: 'auto' } }, placeholder: t('unified_number_hint'), warningType: 'alert', warningMessage: error && t(error) }) })) })));
41
44
  };
42
45
  export default React.memo(UnifiedNumber);
@@ -1,60 +1,60 @@
1
1
  import * as yup from 'yup';
2
- export declare const EntityNameValidationSchema: (entity: any) => yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
3
- legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
2
+ export declare const EntityNameValidationSchema: () => yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
3
+ legalName: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
4
4
  licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
5
- entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
6
- licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
7
- unifiedNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
8
- issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
9
- expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
5
+ entityType: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
6
+ licenseNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
7
+ unifiedNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
8
+ issuingDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
9
+ expiryDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
10
10
  certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
11
11
  articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
12
12
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
13
- legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
13
+ legalName: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
14
14
  licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
15
- entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
16
- licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
17
- unifiedNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
18
- issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
19
- expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
15
+ entityType: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
16
+ licenseNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
17
+ unifiedNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
18
+ issuingDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
19
+ expiryDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
20
20
  certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
21
21
  articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
22
22
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
23
- legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
23
+ legalName: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
24
24
  licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
25
- entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
26
- licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
27
- unifiedNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
28
- issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
29
- expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
25
+ entityType: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
26
+ licenseNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
27
+ unifiedNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
28
+ issuingDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
29
+ expiryDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
30
30
  certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
31
31
  articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
32
32
  }>>>;
33
- export declare const EntityNameKWValidationSchema: (entity: any) => yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
34
- legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
33
+ export declare const EntityNameKWValidationSchema: () => yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
34
+ legalName: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
35
35
  licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
36
- entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
37
- licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
38
- issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
39
- expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
36
+ entityType: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
37
+ licenseNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
38
+ issuingDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
39
+ expiryDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
40
40
  certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
41
41
  articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
42
42
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
43
- legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
43
+ legalName: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
44
44
  licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
45
- entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
46
- licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
47
- issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
48
- expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
45
+ entityType: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
46
+ licenseNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
47
+ issuingDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
48
+ expiryDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
49
49
  certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
50
50
  articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
51
51
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
52
- legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
52
+ legalName: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
53
53
  licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
54
- entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
55
- licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
56
- issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
57
- expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
54
+ entityType: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
55
+ licenseNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
56
+ issuingDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
57
+ expiryDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
58
58
  certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
59
59
  articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
60
60
  }>>>;