@tap-payments/auth-jsconnect 2.8.91-development → 2.8.95-development

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 (467) hide show
  1. package/build/@types/app.d.ts +19 -17
  2. package/build/@types/config.d.ts +1 -1
  3. package/build/@types/form.d.ts +26 -23
  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 +14 -14
  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/brand.d.ts +1 -1
  11. package/build/api/country.d.ts +1 -1
  12. package/build/api/data.d.ts +8 -8
  13. package/build/api/document.d.ts +2 -2
  14. package/build/api/entity.d.ts +10 -10
  15. package/build/api/file.d.ts +1 -1
  16. package/build/api/firebase.js +1 -1
  17. package/build/api/individual.d.ts +5 -5
  18. package/build/api/init.d.ts +1 -1
  19. package/build/api/lead.d.ts +13 -13
  20. package/build/api/lead.js +1 -1
  21. package/build/api/operator.d.ts +2 -2
  22. package/build/api/operator.js +1 -1
  23. package/build/api/user.d.ts +2 -2
  24. package/build/app/settings.d.ts +3 -21
  25. package/build/app/settings.js +1 -1
  26. package/build/app/store.d.ts +4 -4
  27. package/build/components/AnimationFlow/AnimationFlow.d.ts +1 -1
  28. package/build/components/AnimationFlow/BottomSheet.d.ts +1 -1
  29. package/build/components/AnimationFlow/Dialog.d.ts +1 -1
  30. package/build/components/AnimationFlow/Error.d.ts +2 -1
  31. package/build/components/AnimationFlow/Loader.d.ts +2 -1
  32. package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +1 -1
  33. package/build/components/Button/Button.d.ts +1 -1
  34. package/build/components/CheckBox/CheckBox.d.ts +1 -1
  35. package/build/components/Collapse/Collapse.d.ts +2 -1
  36. package/build/components/DatePicker/DatePicker.d.ts +1 -1
  37. package/build/components/ExpandIcon/ExpandIcon.d.ts +2 -1
  38. package/build/components/FileInput/DragAndDrop.d.ts +2 -1
  39. package/build/components/FileInput/UploadInput.d.ts +2 -1
  40. package/build/components/Footer/Footer.d.ts +1 -1
  41. package/build/components/Form/Form.d.ts +1 -1
  42. package/build/components/Input/Input.d.ts +1 -1
  43. package/build/components/InputAdornment/InputAdornment.d.ts +1 -1
  44. package/build/components/List/List.d.ts +1 -1
  45. package/build/components/ListItem/ListItem.d.ts +1 -1
  46. package/build/components/Loader/Loader.d.ts +1 -1
  47. package/build/components/LogoBadge/LogoBadge.d.ts +1 -1
  48. package/build/components/OTPField/OTPField.d.ts +1 -1
  49. package/build/components/OTPTimer/OTPTimer.d.ts +1 -1
  50. package/build/components/ProgressBar/CircularProgressBar.d.ts +2 -1
  51. package/build/components/ProgressBar/ProgressBar.d.ts +1 -1
  52. package/build/components/Providers/ReduxProvider.d.ts +1 -1
  53. package/build/components/Providers/ThemeProvider.d.ts +1 -1
  54. package/build/components/Radio/Radio.d.ts +1 -1
  55. package/build/components/RadioGroup/RadioGroup.d.ts +1 -1
  56. package/build/components/RadioLabel/RadioLabel.d.ts +1 -1
  57. package/build/components/SimpleList/SimpleList.d.ts +1 -1
  58. package/build/components/Slide/Slide.d.ts +1 -1
  59. package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +1 -1
  60. package/build/components/Text/Text.d.ts +1 -1
  61. package/build/components/ToggleButton/ToggleButton.d.ts +1 -1
  62. package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
  63. package/build/components/Tooltip/Tooltip.d.ts +1 -1
  64. package/build/components/Warning/Warning.d.ts +1 -1
  65. package/build/constants/app.d.ts +6 -1
  66. package/build/constants/app.js +43 -8
  67. package/build/features/app/auth/authStore.d.ts +26 -192
  68. package/build/features/app/auth/authStore.js +87 -29
  69. package/build/features/app/bank/bankStore.d.ts +12 -93
  70. package/build/features/app/bank/bankStore.js +1 -1
  71. package/build/features/app/board/boardStore.d.ts +5 -41
  72. package/build/features/app/board/boardStore.js +1 -1
  73. package/build/features/app/brand/brandStore.d.ts +17 -143
  74. package/build/features/app/brand/brandStore.js +1 -1
  75. package/build/features/app/business/businessStore.d.ts +33 -164
  76. package/build/features/app/business/businessStore.js +55 -8
  77. package/build/features/app/connect/connectStore.d.ts +27 -153
  78. package/build/features/app/connect/connectStore.js +53 -6
  79. package/build/features/app/connectExpress/connectExpressStore.d.ts +48 -263
  80. package/build/features/app/connectExpress/connectExpressStore.js +74 -14
  81. package/build/features/app/entity/entityStore.d.ts +12 -93
  82. package/build/features/app/entity/entityStore.js +1 -1
  83. package/build/features/app/individual/individualStore.d.ts +24 -186
  84. package/build/features/app/individual/individualStore.js +1 -1
  85. package/build/features/app/password/passwordStore.d.ts +15 -123
  86. package/build/features/app/password/passwordStore.js +1 -1
  87. package/build/features/app/signIn/signInStore.d.ts +7 -61
  88. package/build/features/app/signIn/signInStore.js +1 -1
  89. package/build/features/app/tax/taxStore.d.ts +11 -83
  90. package/build/features/app/tax/taxStore.js +1 -1
  91. package/build/features/auth/Auth.d.ts +2 -1
  92. package/build/features/auth/Auth.js +10 -2
  93. package/build/features/auth/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +1 -1
  94. package/build/features/auth/screens/AccountNotFound/AccountNotFound.d.ts +1 -1
  95. package/build/features/auth/screens/AuthMerchant/AuthMerchant.d.ts +1 -1
  96. package/build/features/auth/screens/AuthSwitch/AuthSwitch.d.ts +1 -1
  97. package/build/features/auth/screens/AuthSwitch/AuthSwitch.js +2 -1
  98. package/build/features/auth/screens/AuthenticationList/AuthenticationList.d.ts +1 -1
  99. package/build/features/auth/screens/AuthenticationList/BrandList.d.ts +1 -1
  100. package/build/features/auth/screens/AuthenticationList/EntityLegalName.d.ts +2 -1
  101. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +27 -5
  102. package/build/features/auth/screens/AuthenticationList/EntityList.d.ts +1 -1
  103. package/build/features/auth/screens/AuthenticationList/LicenseNumber.d.ts +1 -1
  104. package/build/features/auth/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
  105. package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +1 -1
  106. package/build/features/auth/screens/CivilID/CivilID.d.ts +1 -1
  107. package/build/features/auth/screens/DOB/DOB.d.ts +6 -0
  108. package/build/features/auth/screens/DOB/DOB.js +47 -0
  109. package/build/features/auth/screens/DOB/DOBForm.d.ts +5 -0
  110. package/build/features/auth/screens/DOB/DOBForm.js +59 -0
  111. package/build/features/auth/screens/DOB/index.d.ts +3 -0
  112. package/build/features/auth/screens/DOB/index.js +2 -0
  113. package/build/features/auth/screens/DOB/validation.d.ts +8 -0
  114. package/build/features/auth/screens/DOB/validation.js +4 -0
  115. package/build/features/auth/screens/Email/Email.d.ts +1 -1
  116. package/build/features/auth/screens/EmailSent/EmailSent.d.ts +1 -1
  117. package/build/features/auth/screens/MigratingData/MigratingData.d.ts +1 -1
  118. package/build/features/auth/screens/Mobile/Mobile.d.ts +1 -1
  119. package/build/features/auth/screens/NID/NID.d.ts +1 -1
  120. package/build/features/auth/screens/OTP/OTP.d.ts +1 -1
  121. package/build/features/auth/screens/OTP/OTPInput.d.ts +1 -1
  122. package/build/features/auth/screens/OperatorError/OperatorError.d.ts +1 -1
  123. package/build/features/auth/screens/Password/Password.d.ts +1 -1
  124. package/build/features/auth/screens/Password/PasswordField.d.ts +1 -1
  125. package/build/features/auth/screens/PreparingData/PreparingData.d.ts +1 -1
  126. package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.d.ts +1 -1
  127. package/build/features/auth/screens/VerifyNafath/VerifyNafath.d.ts +1 -1
  128. package/build/features/auth/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  129. package/build/features/bank/Bank.d.ts +2 -1
  130. package/build/features/bank/screens/BankDetails/BankDetails.d.ts +2 -1
  131. package/build/features/bank/screens/BankDetails/BankName.d.ts +3 -2
  132. package/build/features/bank/screens/BankDetails/BankStatement.d.ts +3 -2
  133. package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +2 -1
  134. package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +3 -2
  135. package/build/features/bank/screens/BankDetails/IBAN.d.ts +2 -1
  136. package/build/features/bank/screens/BankDetails/IBAN.js +1 -1
  137. package/build/features/bank/screens/OperatorError/OperatorError.d.ts +1 -1
  138. package/build/features/bank/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  139. package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  140. package/build/features/bank/screens/Success/Success.d.ts +1 -1
  141. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  142. package/build/features/bank/screens/Verify/OTPInput.d.ts +1 -1
  143. package/build/features/bank/screens/Verify/Verify.d.ts +1 -1
  144. package/build/features/board/Board.d.ts +2 -1
  145. package/build/features/board/screens/OperatorError/OperatorError.d.ts +1 -1
  146. package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  147. package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  148. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  149. package/build/features/board/screens/Verify/OTPInput.d.ts +1 -1
  150. package/build/features/board/screens/Verify/Verify.d.ts +1 -1
  151. package/build/features/brand/Brand.d.ts +2 -1
  152. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +58 -15
  153. package/build/features/brand/screens/BrandActivities/BrandActivities.d.ts +2 -1
  154. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +37 -13
  155. package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +2 -1
  156. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +2 -1
  157. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +31 -10
  158. package/build/features/brand/screens/BrandActivities/TAC.d.ts +8 -3
  159. package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +3 -2
  160. package/build/features/brand/screens/BrandInfo/BrandInfo.d.ts +2 -1
  161. package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +3 -2
  162. package/build/features/brand/screens/BrandInfo/BrandName.d.ts +1 -1
  163. package/build/features/brand/screens/BrandInfo/BrandName.js +3 -3
  164. package/build/features/brand/screens/BrandInfo/SalesChannels.d.ts +2 -1
  165. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.d.ts +2 -1
  166. package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.d.ts +2 -1
  167. package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.d.ts +2 -1
  168. package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.d.ts +2 -1
  169. package/build/features/brand/screens/BrandSegmentInfo/TeamSize.d.ts +2 -1
  170. package/build/features/brand/screens/OperatorError/OperatorError.d.ts +1 -1
  171. package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  172. package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  173. package/build/features/brand/screens/Success/Success.d.ts +1 -1
  174. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  175. package/build/features/brand/screens/Verify/OTPInput.d.ts +1 -1
  176. package/build/features/brand/screens/Verify/Verify.d.ts +1 -1
  177. package/build/features/business/Business.d.ts +2 -1
  178. package/build/features/business/screens/Activities/Activities.d.ts +2 -1
  179. package/build/features/business/screens/Activities/ActivitiesList.d.ts +25 -9
  180. package/build/features/business/screens/Activities/LicenseName.d.ts +1 -1
  181. package/build/features/business/screens/Activities/OperationStartDate.d.ts +13 -5
  182. package/build/features/business/screens/BrandDetails/BrandDetails.d.ts +1 -1
  183. package/build/features/business/screens/BrandDetails/BrandName.d.ts +1 -1
  184. package/build/features/business/screens/BrandDetails/Header.d.ts +1 -1
  185. package/build/features/business/screens/BrandDetails/LicenseInfo.d.ts +1 -1
  186. package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +13 -5
  187. package/build/features/business/screens/BusinessType/Article.d.ts +3 -2
  188. package/build/features/business/screens/BusinessType/BusinessType.d.ts +1 -1
  189. package/build/features/business/screens/BusinessType/BusinessType.js +2 -2
  190. package/build/features/business/screens/BusinessType/EntityLicenseList.d.ts +1 -1
  191. package/build/features/business/screens/BusinessType/EntityName.d.ts +2 -1
  192. package/build/features/business/screens/BusinessType/LicenseCertificate.d.ts +2 -1
  193. package/build/features/business/screens/BusinessType/LicenseList.d.ts +1 -1
  194. package/build/features/business/screens/BusinessType/LicenseNumber.d.ts +1 -1
  195. package/build/features/business/screens/BusinessType/LicenseType.d.ts +28 -6
  196. package/build/features/business/screens/BusinessType/SelectType.d.ts +1 -1
  197. package/build/features/business/screens/BusinessType/Switch.d.ts +1 -1
  198. package/build/features/business/screens/CivilID/CivilID.d.ts +1 -1
  199. package/build/features/business/screens/Customers/CustomerLocations.d.ts +70 -19
  200. package/build/features/business/screens/Customers/Customers.d.ts +1 -1
  201. package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +2 -1
  202. package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +2 -1
  203. package/build/features/business/screens/Customers/RefundPolicy.d.ts +31 -10
  204. package/build/features/business/screens/Customers/TransactionPolicy.d.ts +3 -2
  205. package/build/features/business/screens/DOB/DOB.d.ts +6 -0
  206. package/build/features/business/screens/DOB/DOB.js +45 -0
  207. package/build/features/business/screens/DOB/DOBForm.d.ts +5 -0
  208. package/build/features/business/screens/DOB/DOBForm.js +69 -0
  209. package/build/features/business/screens/DOB/index.d.ts +3 -0
  210. package/build/features/business/screens/DOB/index.js +2 -0
  211. package/build/features/business/screens/DOB/validation.d.ts +8 -0
  212. package/build/features/business/screens/DOB/validation.js +4 -0
  213. package/build/features/business/screens/IDBOD/DOB.d.ts +1 -1
  214. package/build/features/business/screens/IDBOD/ID.d.ts +1 -1
  215. package/build/features/business/screens/IDBOD/IDBOD.d.ts +1 -1
  216. package/build/features/business/screens/OperatorError/OperatorError.d.ts +1 -1
  217. package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  218. package/build/features/business/screens/Success/Success.d.ts +1 -1
  219. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  220. package/build/features/business/screens/Verify/OTPInput.d.ts +1 -1
  221. package/build/features/business/screens/Verify/Verify.d.ts +1 -1
  222. package/build/features/business/screens/VerifyNafath/VerifyNafath.d.ts +1 -1
  223. package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  224. package/build/features/connect/Connect.d.ts +2 -1
  225. package/build/features/connect/Connect.js +1 -1
  226. package/build/features/connect/screens/BrandSegment/BrandSegment.d.ts +1 -1
  227. package/build/features/connect/screens/BrandSegment/TeamSize.d.ts +2 -1
  228. package/build/features/connect/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
  229. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +1 -1
  230. package/build/features/connect/screens/CivilID/CivilID.d.ts +1 -1
  231. package/build/features/connect/screens/DOB/DOB.d.ts +6 -0
  232. package/build/features/connect/screens/DOB/DOB.js +47 -0
  233. package/build/features/connect/screens/DOB/DOBForm.d.ts +5 -0
  234. package/build/features/connect/screens/DOB/DOBForm.js +59 -0
  235. package/build/features/connect/screens/DOB/index.d.ts +3 -0
  236. package/build/features/connect/screens/DOB/index.js +2 -0
  237. package/build/features/connect/screens/DOB/validation.d.ts +8 -0
  238. package/build/features/connect/screens/DOB/validation.js +4 -0
  239. package/build/features/connect/screens/Individual/Email.d.ts +1 -1
  240. package/build/features/connect/screens/Individual/Email.js +1 -1
  241. package/build/features/connect/screens/Individual/Individual.d.ts +1 -1
  242. package/build/features/connect/screens/Individual/Individual.js +10 -3
  243. package/build/features/connect/screens/Individual/Name.d.ts +1 -1
  244. package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
  245. package/build/features/connect/screens/Merchant/BrandName.d.ts +1 -1
  246. package/build/features/connect/screens/Merchant/BrandName.js +3 -3
  247. package/build/features/connect/screens/Merchant/Merchant.d.ts +1 -1
  248. package/build/features/connect/screens/Merchant/SalesChannels.d.ts +2 -1
  249. package/build/features/connect/screens/Merchant/TAC.d.ts +1 -1
  250. package/build/features/connect/screens/Mobile/Mobile.d.ts +1 -1
  251. package/build/features/connect/screens/Mobile/Title.d.ts +1 -1
  252. package/build/features/connect/screens/NID/NID.d.ts +1 -1
  253. package/build/features/connect/screens/OTP/OTP.d.ts +1 -1
  254. package/build/features/connect/screens/OTP/OTPInput.d.ts +1 -1
  255. package/build/features/connect/screens/OperatorError/OperatorError.d.ts +1 -1
  256. package/build/features/connect/screens/ThankYou/ThankYou.d.ts +1 -1
  257. package/build/features/connect/screens/VerifyNafath/VerifyNafath.d.ts +1 -1
  258. package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  259. package/build/features/connectExpress/ConnectExpress.d.ts +2 -1
  260. package/build/features/connectExpress/ConnectExpress.js +1 -1
  261. package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.d.ts +1 -1
  262. package/build/features/connectExpress/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +1 -1
  263. package/build/features/connectExpress/screens/AuthMerchant/AuthMerchant.d.ts +1 -1
  264. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.d.ts +1 -1
  265. package/build/features/connectExpress/screens/AuthenticationList/BrandList.d.ts +1 -1
  266. package/build/features/connectExpress/screens/AuthenticationList/EntityLegalName.d.ts +2 -1
  267. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +27 -5
  268. package/build/features/connectExpress/screens/AuthenticationList/EntityList.d.ts +1 -1
  269. package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.d.ts +1 -1
  270. package/build/features/connectExpress/screens/Brand/Brand.d.ts +1 -1
  271. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
  272. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +1 -1
  273. package/build/features/connectExpress/screens/CivilID/CivilID.d.ts +1 -1
  274. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.d.ts +1 -1
  275. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.d.ts +1 -1
  276. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +3 -3
  277. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.d.ts +1 -1
  278. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.d.ts +1 -1
  279. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.d.ts +1 -1
  280. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +28 -6
  281. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +8 -3
  282. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.d.ts +1 -1
  283. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +21 -4
  284. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.d.ts +1 -1
  285. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +1 -1
  286. package/build/features/connectExpress/screens/CollectIndividualInfo/Name.d.ts +1 -1
  287. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.d.ts +1 -1
  288. package/build/features/connectExpress/screens/DOB/DOB.d.ts +6 -0
  289. package/build/features/connectExpress/screens/DOB/DOB.js +47 -0
  290. package/build/features/connectExpress/screens/DOB/DOBForm.d.ts +5 -0
  291. package/build/features/connectExpress/screens/DOB/DOBForm.js +63 -0
  292. package/build/features/connectExpress/screens/DOB/index.d.ts +3 -0
  293. package/build/features/connectExpress/screens/DOB/index.js +2 -0
  294. package/build/features/connectExpress/screens/DOB/validation.d.ts +8 -0
  295. package/build/features/connectExpress/screens/DOB/validation.js +4 -0
  296. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.d.ts +1 -1
  297. package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.d.ts +1 -1
  298. package/build/features/connectExpress/screens/Mobile/Mobile.d.ts +1 -1
  299. package/build/features/connectExpress/screens/Mobile/TAC.d.ts +1 -1
  300. package/build/features/connectExpress/screens/Mobile/Title.d.ts +1 -1
  301. package/build/features/connectExpress/screens/NID/NID.d.ts +1 -1
  302. package/build/features/connectExpress/screens/NID/TAC.d.ts +8 -3
  303. package/build/features/connectExpress/screens/NIDMissed/DOB.d.ts +2 -1
  304. package/build/features/connectExpress/screens/NIDMissed/NID.d.ts +1 -1
  305. package/build/features/connectExpress/screens/OTP/OTP.d.ts +1 -1
  306. package/build/features/connectExpress/screens/OTP/OTPInput.d.ts +1 -1
  307. package/build/features/connectExpress/screens/OperatorError/OperatorError.d.ts +1 -1
  308. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.d.ts +1 -1
  309. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  310. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.d.ts +1 -1
  311. package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  312. package/build/features/entity/Entity.d.ts +2 -1
  313. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +25 -9
  314. package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +1 -1
  315. package/build/features/entity/screens/EntityCapital/CapitalShareCount.d.ts +1 -1
  316. package/build/features/entity/screens/EntityCapital/CapitalShareValue.d.ts +1 -1
  317. package/build/features/entity/screens/EntityCapital/EntityCapital.d.ts +2 -1
  318. package/build/features/entity/screens/EntityName/Article.d.ts +3 -2
  319. package/build/features/entity/screens/EntityName/EntityName.d.ts +2 -1
  320. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +58 -15
  321. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +13 -5
  322. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +13 -5
  323. package/build/features/entity/screens/EntityName/LegalName.d.ts +1 -1
  324. package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +2 -1
  325. package/build/features/entity/screens/EntityName/LicenseNumber.d.ts +1 -1
  326. package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +1 -1
  327. package/build/features/entity/screens/OperatorError/OperatorError.d.ts +1 -1
  328. package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  329. package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  330. package/build/features/entity/screens/Success/Success.d.ts +1 -1
  331. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  332. package/build/features/entity/screens/Verify/OTPInput.d.ts +1 -1
  333. package/build/features/entity/screens/Verify/Verify.d.ts +1 -1
  334. package/build/features/featuresScreens.js +20 -0
  335. package/build/features/individual/Individual.d.ts +2 -1
  336. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +13 -5
  337. package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +3 -2
  338. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +1 -1
  339. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +27 -5
  340. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
  341. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +2 -1
  342. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +27 -5
  343. package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.d.ts +1 -1
  344. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.d.ts +1 -1
  345. package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +2 -1
  346. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
  347. package/build/features/individual/screens/IndividualList/CollectPhoneEmail.d.ts +1 -1
  348. package/build/features/individual/screens/IndividualList/Email.d.ts +1 -1
  349. package/build/features/individual/screens/IndividualList/Email.js +1 -1
  350. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +25 -9
  351. package/build/features/individual/screens/IndividualList/UserList.d.ts +2 -1
  352. package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +1 -1
  353. package/build/features/individual/screens/IndividualPersonalInfo/Email.d.ts +1 -1
  354. package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +1 -1
  355. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +28 -6
  356. package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +1 -1
  357. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +13 -5
  358. package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +1 -1
  359. package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.d.ts +1 -1
  360. package/build/features/individual/screens/OperatorError/OperatorError.d.ts +1 -1
  361. package/build/features/individual/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  362. package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  363. package/build/features/individual/screens/Success/Success.d.ts +1 -1
  364. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  365. package/build/features/individual/screens/Verify/OTPInput.d.ts +1 -1
  366. package/build/features/individual/screens/Verify/Verify.d.ts +1 -1
  367. package/build/features/password/Password.d.ts +2 -1
  368. package/build/features/password/Password.js +1 -1
  369. package/build/features/password/screens/CreatePassword/ConditionText.d.ts +2 -1
  370. package/build/features/password/screens/CreatePassword/ConfirmPassword.d.ts +1 -1
  371. package/build/features/password/screens/CreatePassword/CreatePassword.d.ts +1 -1
  372. package/build/features/password/screens/CreatePassword/Password.d.ts +1 -1
  373. package/build/features/password/screens/CreatePassword/PasswordBar.d.ts +2 -1
  374. package/build/features/password/screens/OTP/OTP.d.ts +1 -1
  375. package/build/features/password/screens/OTP/OTPInput.d.ts +1 -1
  376. package/build/features/password/screens/OperatorError/OperatorError.d.ts +1 -1
  377. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  378. package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  379. package/build/features/password/screens/Success/Success.d.ts +1 -1
  380. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  381. package/build/features/password/screens/Verify/OTPInput.d.ts +1 -1
  382. package/build/features/password/screens/Verify/Verify.d.ts +1 -1
  383. package/build/features/shared/AcceptancePayouts/AcceptancePayouts.d.ts +2 -1
  384. package/build/features/shared/Address/Address.d.ts +2 -1
  385. package/build/features/shared/Address/CountryList.d.ts +46 -14
  386. package/build/features/shared/Address/InputSelect.d.ts +46 -14
  387. package/build/features/shared/Address/InputSelect.js +1 -1
  388. package/build/features/shared/Address/InputText.d.ts +1 -1
  389. package/build/features/shared/Background/Background.d.ts +1 -1
  390. package/build/features/shared/Background/LogoBackground.d.ts +1 -1
  391. package/build/features/shared/BouncingDotsLoader/BouncingDotsLoader.d.ts +2 -1
  392. package/build/features/shared/BusinessCountry/BusinessCountry.d.ts +2 -1
  393. package/build/features/shared/BusinessCountry/BusinessCountry.js +1 -1
  394. package/build/features/shared/Button/Button.d.ts +2 -1
  395. package/build/features/shared/Button/EmailProvidersButtons.d.ts +3 -2
  396. package/build/features/shared/Button/FlowsButtons.d.ts +3 -2
  397. package/build/features/shared/Button/FlowsButtons.js +1 -1
  398. package/build/features/shared/Button/IndividualActionButtons.d.ts +2 -2
  399. package/build/features/shared/Button/MobileButton.d.ts +2 -1
  400. package/build/features/shared/Button/NafathButton.d.ts +2 -1
  401. package/build/features/shared/Button/SuccessButton.d.ts +2 -1
  402. package/build/features/shared/Calender/Calender.d.ts +2 -1
  403. package/build/features/shared/CheckIcon/CheckIcon.d.ts +3 -2
  404. package/build/features/shared/Chip/Chip.d.ts +2 -1
  405. package/build/features/shared/ClearIcon/ClearIcon.d.ts +2 -1
  406. package/build/features/shared/Containers/FeatureContainer.d.ts +1 -1
  407. package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
  408. package/build/features/shared/CreateAccountLoading/CreateAccountLoading.d.ts +1 -1
  409. package/build/features/shared/DataLoading/DataLoading.d.ts +1 -1
  410. package/build/features/shared/Dialog/CloseDialog.d.ts +2 -1
  411. package/build/features/shared/Dialog/DialogContainer.d.ts +1 -1
  412. package/build/features/shared/Dot/Dot.d.ts +2 -1
  413. package/build/features/shared/EndAdornment/EndAdornment.d.ts +2 -1
  414. package/build/features/shared/EndAdornment/EndAdornmentExpanded.d.ts +2 -1
  415. package/build/features/shared/Footer/Footer.d.ts +2 -1
  416. package/build/features/shared/Footer/PoweredByFooter.d.ts +3 -2
  417. package/build/features/shared/GenericError/GenericError.d.ts +1 -1
  418. package/build/features/shared/Input/Input.d.ts +14 -6
  419. package/build/features/shared/InputSelect/InputSelect.d.ts +2 -1
  420. package/build/features/shared/Mandatory/Mandatory.d.ts +2 -1
  421. package/build/features/shared/NafathVerification/NafathVerification.d.ts +1 -1
  422. package/build/features/shared/OTP/OTP.d.ts +1 -1
  423. package/build/features/shared/PaciVerification/PaciVerification.d.ts +1 -1
  424. package/build/features/shared/PasswordIcon/PasswordIcon.d.ts +2 -1
  425. package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +2 -1
  426. package/build/features/shared/SalesChannels/SalesChannel.d.ts +1 -1
  427. package/build/features/shared/Search/Search.d.ts +2 -1
  428. package/build/features/shared/SearchIcon/SearchIcon.d.ts +2 -1
  429. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +1 -1
  430. package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +1 -1
  431. package/build/features/shared/UploadFile/FileUpload.d.ts +9 -4
  432. package/build/features/shared/UploadFile/FileUpload.js +1 -1
  433. package/build/features/shared/UploadFile/UploadFile.d.ts +8 -3
  434. package/build/features/shared/UploadFile/UploadWrapper.d.ts +8 -3
  435. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +9 -4
  436. package/build/features/shared/UploadMultipleFile/UploadFile.js +1 -1
  437. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +8 -3
  438. package/build/features/signIn/SignIn.d.ts +2 -1
  439. package/build/features/signIn/screens/Email/Email.d.ts +1 -1
  440. package/build/features/signIn/screens/Mobile/Mobile.d.ts +1 -1
  441. package/build/features/signIn/screens/OTP/OTP.d.ts +1 -1
  442. package/build/features/signIn/screens/OTP/OTPInput.d.ts +1 -1
  443. package/build/features/signIn/screens/OperatorError/OperatorError.d.ts +1 -1
  444. package/build/features/signIn/screens/Password/Password.d.ts +1 -1
  445. package/build/features/signIn/screens/Password/PasswordInput.d.ts +1 -1
  446. package/build/features/tax/Tax.d.ts +2 -1
  447. package/build/features/tax/screens/OperatorError/OperatorError.d.ts +1 -1
  448. package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  449. package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  450. package/build/features/tax/screens/Success/Success.d.ts +1 -1
  451. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  452. package/build/features/tax/screens/TaxDetails/ConfirmPolicy.d.ts +3 -2
  453. package/build/features/tax/screens/TaxDetails/TaxDetails.d.ts +2 -1
  454. package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +2 -1
  455. package/build/features/tax/screens/TaxDetails/VATId.d.ts +3 -2
  456. package/build/features/tax/screens/Verify/OTPInput.d.ts +1 -1
  457. package/build/features/tax/screens/Verify/Verify.d.ts +1 -1
  458. package/build/hooks/useDataVerified.d.ts +1 -1
  459. package/build/hooks/useExcludeReadOnlyFelids.d.ts +2 -2
  460. package/build/hooks/useFormDirtyCheck.d.ts +3 -3
  461. package/build/hooks/useFormErrorAndUpdateReadOnly.d.ts +2 -2
  462. package/build/hooks/useFormReadOnly.d.ts +2 -2
  463. package/build/hooks/useSetFromDefaultValues.d.ts +1 -1
  464. package/build/utils/array.js +1 -1
  465. package/build/utils/validation.d.ts +1 -0
  466. package/build/utils/validation.js +3 -0
  467. package/package.json +1 -1
@@ -1,16 +1,7 @@
1
1
  import { RootState } from '../../../app/store';
2
- import { MobileFormValues, NIDFormValues, CivilFormValues, OTPFormValues, IndividualFormValues, SharedState, FlowsTypes, ActionState, CountryCode, AuthForType, BusinessDataFormValues, AsyncThunkParams, AuthenticationListFormValues, AuthMerchantFormValues } from '../../../@types';
2
+ import { MobileFormValues, NIDFormValues, CivilFormValues, OTPFormValues, IndividualFormValues, SharedState, FlowsTypes, ActionState, CountryCode, AuthForType, BusinessDataFormValues, AsyncThunkParams, AuthenticationListFormValues, AuthMerchantFormValues, DOBFormValues } from '../../../@types';
3
3
  import { CancelToken } from 'axios';
4
- export declare const updateBusinessCountryAsync: import("@reduxjs/toolkit").AsyncThunk<any, string, {
5
- state?: unknown;
6
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
7
- extra?: unknown;
8
- rejectValue?: unknown;
9
- serializedErrorType?: unknown;
10
- pendingMeta?: unknown;
11
- fulfilledMeta?: unknown;
12
- rejectedMeta?: unknown;
13
- }>;
4
+ export declare const updateBusinessCountryAsync: import("@reduxjs/toolkit").AsyncThunk<any, string, {}>;
14
5
  export declare const retrieveLeadIdentityByIdAsync: import("@reduxjs/toolkit").AsyncThunk<{
15
6
  data: any;
16
7
  countryCode: CountryCode;
@@ -21,94 +12,31 @@ export declare const retrieveLeadIdentityByIdAsync: import("@reduxjs/toolkit").A
21
12
  countryCode: CountryCode;
22
13
  boardInfo: any;
23
14
  boardData: any;
24
- }, string, {
25
- state?: unknown;
26
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
27
- extra?: unknown;
28
- rejectValue?: unknown;
29
- serializedErrorType?: unknown;
30
- pendingMeta?: unknown;
31
- fulfilledMeta?: unknown;
32
- rejectedMeta?: unknown;
33
- }>;
15
+ }, string, {}>;
34
16
  export declare const getLeadByIdAsync: import("@reduxjs/toolkit").AsyncThunk<{
35
17
  data: any;
36
18
  countryCode: CountryCode;
37
- }, string, {
38
- state?: unknown;
39
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
40
- extra?: unknown;
41
- rejectValue?: unknown;
42
- serializedErrorType?: unknown;
43
- pendingMeta?: unknown;
44
- fulfilledMeta?: unknown;
45
- rejectedMeta?: unknown;
46
- }>;
47
- export declare const retrieveEntityListAsync: import("@reduxjs/toolkit").AsyncThunk<any, string, {
48
- state?: unknown;
49
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
50
- extra?: unknown;
51
- rejectValue?: unknown;
52
- serializedErrorType?: unknown;
53
- pendingMeta?: unknown;
54
- fulfilledMeta?: unknown;
55
- rejectedMeta?: unknown;
56
- }>;
19
+ }, string, {}>;
20
+ export declare const retrieveEntityListAsync: import("@reduxjs/toolkit").AsyncThunk<any, string, {}>;
57
21
  export declare const retrieveAuthenticationListAsync: import("@reduxjs/toolkit").AsyncThunk<{
58
22
  brandList: any;
59
23
  entityList: any;
60
24
  }, {
61
25
  individualId: string;
62
- }, {
63
- state?: unknown;
64
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
65
- extra?: unknown;
66
- rejectValue?: unknown;
67
- serializedErrorType?: unknown;
68
- pendingMeta?: unknown;
69
- fulfilledMeta?: unknown;
70
- rejectedMeta?: unknown;
71
- }>;
26
+ }, {}>;
72
27
  export declare const getMerchantListAsync: import("@reduxjs/toolkit").AsyncThunk<{
73
28
  list: any;
74
29
  brandInfo: import("../../../@types").BrandInfo | undefined;
75
30
  entityInfo: import("../../../@types").EntityLicenseAuth | undefined;
76
- }, AuthenticationListFormValues, {
77
- state?: unknown;
78
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
79
- extra?: unknown;
80
- rejectValue?: unknown;
81
- serializedErrorType?: unknown;
82
- pendingMeta?: unknown;
83
- fulfilledMeta?: unknown;
84
- rejectedMeta?: unknown;
85
- }>;
31
+ }, AuthenticationListFormValues, {}>;
86
32
  export declare const createMobileAuthAsync: import("@reduxjs/toolkit").AsyncThunk<{
87
33
  response: any;
88
34
  formData: MobileFormValues;
89
- }, MobileFormValues, {
90
- state?: unknown;
91
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
92
- extra?: unknown;
93
- rejectValue?: unknown;
94
- serializedErrorType?: unknown;
95
- pendingMeta?: unknown;
96
- fulfilledMeta?: unknown;
97
- rejectedMeta?: unknown;
98
- }>;
35
+ }, MobileFormValues, {}>;
99
36
  export declare const resendMobileAuthOTP: import("@reduxjs/toolkit").AsyncThunk<{
100
37
  response: any;
101
38
  formData: MobileFormValues;
102
- }, MobileFormValues, {
103
- state?: unknown;
104
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
105
- extra?: unknown;
106
- rejectValue?: unknown;
107
- serializedErrorType?: unknown;
108
- pendingMeta?: unknown;
109
- fulfilledMeta?: unknown;
110
- rejectedMeta?: unknown;
111
- }>;
39
+ }, MobileFormValues, {}>;
112
40
  export declare const createNafathAuth: import("@reduxjs/toolkit").AsyncThunk<{
113
41
  response: any;
114
42
  formData: {
@@ -117,72 +45,24 @@ export declare const createNafathAuth: import("@reduxjs/toolkit").AsyncThunk<{
117
45
  dob?: any;
118
46
  termAndConditionChecked?: boolean | undefined;
119
47
  };
120
- }, NIDFormValues, {
121
- state?: unknown;
122
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
123
- extra?: unknown;
124
- rejectValue?: unknown;
125
- serializedErrorType?: unknown;
126
- pendingMeta?: unknown;
127
- fulfilledMeta?: unknown;
128
- rejectedMeta?: unknown;
129
- }>;
130
- export declare const verifyNafathAsync: import("@reduxjs/toolkit").AsyncThunk<any, verifyPACIAsyncParams, {
131
- state?: unknown;
132
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
133
- extra?: unknown;
134
- rejectValue?: unknown;
135
- serializedErrorType?: unknown;
136
- pendingMeta?: unknown;
137
- fulfilledMeta?: unknown;
138
- rejectedMeta?: unknown;
139
- }>;
48
+ }, NIDFormValues, {}>;
49
+ export declare const verifyNafathAsync: import("@reduxjs/toolkit").AsyncThunk<{
50
+ data: any;
51
+ isNextScreenIsDob?: undefined;
52
+ } | {
53
+ data: any;
54
+ isNextScreenIsDob: boolean;
55
+ }, verifyPACIAsyncParams, {}>;
140
56
  export declare const createCivilIdAuthAsync: import("@reduxjs/toolkit").AsyncThunk<{
141
57
  response: any;
142
58
  formData: CivilFormValues;
143
- }, CivilFormValues, {
144
- state?: unknown;
145
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
146
- extra?: unknown;
147
- rejectValue?: unknown;
148
- serializedErrorType?: unknown;
149
- pendingMeta?: unknown;
150
- fulfilledMeta?: unknown;
151
- rejectedMeta?: unknown;
152
- }>;
153
- export declare const verifyMobileOtpAsync: import("@reduxjs/toolkit").AsyncThunk<any, OTPFormValues, {
154
- state?: unknown;
155
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
156
- extra?: unknown;
157
- rejectValue?: unknown;
158
- serializedErrorType?: unknown;
159
- pendingMeta?: unknown;
160
- fulfilledMeta?: unknown;
161
- rejectedMeta?: unknown;
162
- }>;
163
- export declare const verifyPACIAsync: import("@reduxjs/toolkit").AsyncThunk<any, verifyPACIAsyncParams, {
164
- state?: unknown;
165
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
166
- extra?: unknown;
167
- rejectValue?: unknown;
168
- serializedErrorType?: unknown;
169
- pendingMeta?: unknown;
170
- fulfilledMeta?: unknown;
171
- rejectedMeta?: unknown;
172
- }>;
59
+ }, CivilFormValues, {}>;
60
+ export declare const verifyMobileOtpAsync: import("@reduxjs/toolkit").AsyncThunk<any, OTPFormValues, {}>;
61
+ export declare const verifyPACIAsync: import("@reduxjs/toolkit").AsyncThunk<any, verifyPACIAsyncParams, {}>;
173
62
  export declare const createCivilIDAuthIdentityAsync: import("@reduxjs/toolkit").AsyncThunk<{
174
63
  response: any;
175
64
  formData: CivilFormValues;
176
- }, CivilFormValues, {
177
- state?: unknown;
178
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
179
- extra?: unknown;
180
- rejectValue?: unknown;
181
- serializedErrorType?: unknown;
182
- pendingMeta?: unknown;
183
- fulfilledMeta?: unknown;
184
- rejectedMeta?: unknown;
185
- }>;
65
+ }, CivilFormValues, {}>;
186
66
  export declare const createNIDNafathAuthIdentityAsync: import("@reduxjs/toolkit").AsyncThunk<{
187
67
  response: {
188
68
  random: any;
@@ -190,36 +70,15 @@ export declare const createNIDNafathAuthIdentityAsync: import("@reduxjs/toolkit"
190
70
  verify_token: any;
191
71
  };
192
72
  formData: NIDFormValues;
193
- }, NIDFormValues, {
194
- state?: unknown;
195
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
196
- extra?: unknown;
197
- rejectValue?: unknown;
198
- serializedErrorType?: unknown;
199
- pendingMeta?: unknown;
200
- fulfilledMeta?: unknown;
201
- rejectedMeta?: unknown;
202
- }>;
203
- export declare const verifyNafathIdentityAsync: import("@reduxjs/toolkit").AsyncThunk<any, verifyPACIAsyncParams, {
204
- state?: unknown;
205
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
206
- extra?: unknown;
207
- rejectValue?: unknown;
208
- serializedErrorType?: unknown;
209
- pendingMeta?: unknown;
210
- fulfilledMeta?: unknown;
211
- rejectedMeta?: unknown;
212
- }>;
213
- export declare const verifyPaciLeadIdentityAsync: import("@reduxjs/toolkit").AsyncThunk<any, verifyPACIAsyncParams, {
214
- state?: unknown;
215
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
216
- extra?: unknown;
217
- rejectValue?: unknown;
218
- serializedErrorType?: unknown;
219
- pendingMeta?: unknown;
220
- fulfilledMeta?: unknown;
221
- rejectedMeta?: unknown;
222
- }>;
73
+ }, NIDFormValues, {}>;
74
+ export declare const verifyNafathIdentityAsync: import("@reduxjs/toolkit").AsyncThunk<{
75
+ data: any;
76
+ isNextScreenIsDob?: undefined;
77
+ } | {
78
+ data: any;
79
+ isNextScreenIsDob: boolean;
80
+ }, verifyPACIAsyncParams, {}>;
81
+ export declare const verifyPaciLeadIdentityAsync: import("@reduxjs/toolkit").AsyncThunk<any, verifyPACIAsyncParams, {}>;
223
82
  export declare const checkEmailAvailabilityAsync: import("@reduxjs/toolkit").AsyncThunk<{
224
83
  response: any;
225
84
  formData: string;
@@ -227,16 +86,7 @@ export declare const checkEmailAvailabilityAsync: import("@reduxjs/toolkit").Asy
227
86
  email: string;
228
87
  cancelToken: CancelToken;
229
88
  onSuccess?: (() => void) | undefined;
230
- }, {
231
- state?: unknown;
232
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
233
- extra?: unknown;
234
- rejectValue?: unknown;
235
- serializedErrorType?: unknown;
236
- pendingMeta?: unknown;
237
- fulfilledMeta?: unknown;
238
- rejectedMeta?: unknown;
239
- }>;
89
+ }, {}>;
240
90
  export declare const checkBrandNameAvailabilityAsync: import("@reduxjs/toolkit").AsyncThunk<{
241
91
  response: any;
242
92
  formData: {
@@ -246,110 +96,42 @@ export declare const checkBrandNameAvailabilityAsync: import("@reduxjs/toolkit")
246
96
  name: string;
247
97
  cancelToken: CancelToken;
248
98
  onSuccess?: (() => void) | undefined;
249
- }, {
250
- state?: unknown;
251
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
252
- extra?: unknown;
253
- rejectValue?: unknown;
254
- serializedErrorType?: unknown;
255
- pendingMeta?: unknown;
256
- fulfilledMeta?: unknown;
257
- rejectedMeta?: unknown;
258
- }>;
99
+ }, {}>;
259
100
  export declare const createAccountAsync: import("@reduxjs/toolkit").AsyncThunk<{
260
101
  accountData: any;
261
102
  } | undefined, {
262
103
  isRetry: boolean;
263
- }, {
264
- state?: unknown;
265
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
266
- extra?: unknown;
267
- rejectValue?: unknown;
268
- serializedErrorType?: unknown;
269
- pendingMeta?: unknown;
270
- fulfilledMeta?: unknown;
271
- rejectedMeta?: unknown;
272
- }>;
104
+ }, {}>;
273
105
  export declare const retrieveDetailsAfterCreateAccountAsync: import("@reduxjs/toolkit").AsyncThunk<{
274
106
  boardInfo: any;
275
107
  boardData: any;
276
- }, void, {
277
- state?: unknown;
278
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
279
- extra?: unknown;
280
- rejectValue?: unknown;
281
- serializedErrorType?: unknown;
282
- pendingMeta?: unknown;
283
- fulfilledMeta?: unknown;
284
- rejectedMeta?: unknown;
285
- }>;
108
+ }, void, {}>;
286
109
  export declare const createEntity: import("@reduxjs/toolkit").AsyncThunk<{
287
110
  data: any;
288
111
  formData: AuthenticationListFormValues;
289
- }, AuthenticationListFormValues, {
290
- state?: unknown;
291
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
292
- extra?: unknown;
293
- rejectValue?: unknown;
294
- serializedErrorType?: unknown;
295
- pendingMeta?: unknown;
296
- fulfilledMeta?: unknown;
297
- rejectedMeta?: unknown;
298
- }>;
112
+ }, AuthenticationListFormValues, {}>;
299
113
  interface verifyPACIAsyncParams {
300
114
  onSuccess: () => void;
301
115
  onFailure?: () => void;
302
116
  }
117
+ export declare const updateLeadDOBAsync: import("@reduxjs/toolkit").AsyncThunk<{
118
+ response: any;
119
+ formData: DOBFormValues;
120
+ }, DOBFormValues, {}>;
303
121
  export declare const updateLeadIndividualAsync: import("@reduxjs/toolkit").AsyncThunk<{
304
122
  response: any;
305
123
  formData: IndividualFormValues;
306
- }, AsyncThunkParams<IndividualFormValues>, {
307
- state?: unknown;
308
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
309
- extra?: unknown;
310
- rejectValue?: unknown;
311
- serializedErrorType?: unknown;
312
- pendingMeta?: unknown;
313
- fulfilledMeta?: unknown;
314
- rejectedMeta?: unknown;
315
- }>;
124
+ }, AsyncThunkParams<IndividualFormValues>, {}>;
316
125
  export declare const updateLeadBusinessDataAsync: import("@reduxjs/toolkit").AsyncThunk<{
317
126
  response: any;
318
127
  formData: BusinessDataFormValues;
319
- }, AsyncThunkParams<BusinessDataFormValues>, {
320
- state?: unknown;
321
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
322
- extra?: unknown;
323
- rejectValue?: unknown;
324
- serializedErrorType?: unknown;
325
- pendingMeta?: unknown;
326
- fulfilledMeta?: unknown;
327
- rejectedMeta?: unknown;
328
- }>;
128
+ }, AsyncThunkParams<BusinessDataFormValues>, {}>;
329
129
  export declare const confirmInfo: import("@reduxjs/toolkit").AsyncThunk<{
330
130
  boardInfo: any;
331
131
  boardData: any;
332
132
  confirmData: any;
333
- } | undefined, AuthenticationListFormValues & AuthMerchantFormValues, {
334
- state?: unknown;
335
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
336
- extra?: unknown;
337
- rejectValue?: unknown;
338
- serializedErrorType?: unknown;
339
- pendingMeta?: unknown;
340
- fulfilledMeta?: unknown;
341
- rejectedMeta?: unknown;
342
- }>;
343
- export declare const onCloseCompleteAsync: import("@reduxjs/toolkit").AsyncThunk<void, void, {
344
- state?: unknown;
345
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
346
- extra?: unknown;
347
- rejectValue?: unknown;
348
- serializedErrorType?: unknown;
349
- pendingMeta?: unknown;
350
- fulfilledMeta?: unknown;
351
- rejectedMeta?: unknown;
352
- }>;
133
+ } | undefined, AuthenticationListFormValues & AuthMerchantFormValues, {}>;
134
+ export declare const onCloseCompleteAsync: import("@reduxjs/toolkit").AsyncThunk<void, void, {}>;
353
135
  interface ResponseData {
354
136
  responseData?: Record<string, any>;
355
137
  }
@@ -361,9 +143,12 @@ export interface ConnectExpressData {
361
143
  otpData: OTPFormValues & {
362
144
  authFor: AuthForType;
363
145
  };
146
+ dobData: DOBFormValues & ResponseData;
364
147
  flowName: FlowsTypes;
365
148
  leadId?: string;
366
- individualData: IndividualFormValues;
149
+ individualData: IndividualFormValues & {
150
+ isPrevDob?: boolean;
151
+ };
367
152
  businessData: BusinessDataFormValues;
368
153
  authenticationData: AuthenticationListFormValues;
369
154
  authMerchantData: AuthMerchantFormValues;
@@ -388,7 +173,7 @@ export declare const connectSlice: import("@reduxjs/toolkit").Slice<ConnectExpre
388
173
  resetStore: (state: ConnectExpressState) => void;
389
174
  resetIndividualScreen: (state: ConnectExpressState) => void;
390
175
  }, "connectExpress/store">;
391
- export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connectExpress/store/clearError">, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connectExpress/store/stopLoader">, setIsLeadIdPassed: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "connectExpress/store/setIsLeadIdPassed">, resetMobileScreen: import("@reduxjs/toolkit").ActionCreatorWithPayload<CountryCode, "connectExpress/store/resetMobileScreen">, resetOTPValue: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connectExpress/store/resetOTPValue">, resetNIDScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connectExpress/store/resetNIDScreen">, resetCivilScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connectExpress/store/resetCivilScreen">, resetStore: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connectExpress/store/resetStore">, setError: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "connectExpress/store/setError">, setLeadId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "connectExpress/store/setLeadId">, resetIndividualScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connectExpress/store/resetIndividualScreen">, setDefaultCountryCode: import("@reduxjs/toolkit").ActionCreatorWithPayload<CountryCode, "connectExpress/store/setDefaultCountryCode">, storeIsStartFromBusinessCountry: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "connectExpress/store/storeIsStartFromBusinessCountry">, resetAuthenticationScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connectExpress/store/resetAuthenticationScreen">;
176
+ export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setIsLeadIdPassed: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>, resetMobileScreen: import("@reduxjs/toolkit").ActionCreatorWithPayload<CountryCode, string>, resetOTPValue: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetNIDScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetCivilScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetStore: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setError: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, setLeadId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, resetIndividualScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setDefaultCountryCode: import("@reduxjs/toolkit").ActionCreatorWithPayload<CountryCode, string>, storeIsStartFromBusinessCountry: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>, resetAuthenticationScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
392
177
  declare const _default: import("redux").Reducer<ConnectExpressState, import("redux").AnyAction>;
393
178
  export default _default;
394
179
  export declare const connectExpressSelector: (state: RootState) => ConnectExpressState;
@@ -24,7 +24,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
24
24
  function verb(n) { return function (v) { return step([n, v]); }; }
25
25
  function step(op) {
26
26
  if (f) throw new TypeError("Generator is already executing.");
27
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
27
+ while (_) try {
28
28
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29
29
  if (y = 0, t) op = [op[0] & 2, t.value];
30
30
  switch (op[0]) {
@@ -59,7 +59,7 @@ import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
59
59
  import { handleNextScreenStep, handleCurrentActiveScreen, handleOpen, handleSetCountryByIso2, onCloseComplete, storeAuthId } from '../../../app/settings';
60
60
  import { FlowsTypes, AuthForType, BusinessType, LicenseType } from '../../../@types';
61
61
  import API from '../../../api';
62
- import { ADD_NEW_ENTITY, CONNECT_EXPRESS_STEP_NAMES, IDENTIFICATION_TYPE, NAFATH_VERIFICATION_FAILED, OTHER_CR_LICENSE, OTHER_FL_LICENSE, SCOPE_AUTH } from '../../../constants';
62
+ import { ADD_NEW_ENTITY, COLLECT_DOB_INFO_NAFATH, CONNECT_EXPRESS_STEP_NAMES, IDENTIFICATION_TYPE, NAFATH_VERIFICATION_FAILED, OTHER_CR_LICENSE, OTHER_FL_LICENSE, SCOPE_AUTH } from '../../../constants';
63
63
  import { defaultCountry } from '../../../constants';
64
64
  import { getIndividualName, capitalizeTheFirstLetterOfEachWord, sleep, findCountryByIddPrefix, concatenateObjectValues, isSA, isKW, isOtherThanKWOrSA, sendCustomEventToGTM, sendCustomDimension, getMetaData } from '../../../utils';
65
65
  export var updateBusinessCountryAsync = createAsyncThunk('connectExpress/updateBusinessCountryAsync', function (countryCode, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
@@ -341,7 +341,7 @@ export var createNafathAuth = createAsyncThunk('connectExpress/createNafathAuth'
341
341
  });
342
342
  }); });
343
343
  export var verifyNafathAsync = createAsyncThunk('connectExpress/verifyNafathAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
344
- var _a, settings, connectExpress, authData, _b, scope, redirectUrl, authConfigData, isScopeAuthentication, bi, isDataHasIndividualOnly, authDataHasValue, expiry, interval, maxCalls, count, data, isSuccess, isFailed, authId, leadId, urlQueryStart, _c, brandList, entityList, stepName, needToCollectMoreInfo, creatingAccount;
344
+ var _a, settings, connectExpress, authData, _b, scope, redirectUrl, authConfigData, isScopeAuthentication, bi, isDataHasIndividualOnly, authDataHasValue, expiry, interval, maxCalls, count, data, isSuccess, isFailed, authId, leadId, urlQueryStart, _c, brandList, entityList, stepName, needToCollectMoreInfo, creatingAccount, askDobInfo;
345
345
  var _d, _e, _f, _g, _h, _j, _k, _l;
346
346
  return __generator(this, function (_m) {
347
347
  switch (_m.label) {
@@ -370,7 +370,7 @@ export var verifyNafathAsync = createAsyncThunk('connectExpress/verifyNafathAsyn
370
370
  isFailed = ((_g = (_f = data.auth) === null || _f === void 0 ? void 0 : _f.status) === null || _g === void 0 ? void 0 : _g.toLowerCase()) === 'failed';
371
371
  if (isFailed) {
372
372
  (_h = params.onFailure) === null || _h === void 0 ? void 0 : _h.call(params);
373
- return [2, data];
373
+ return [2, { data: data }];
374
374
  }
375
375
  if (!isSuccess) return [3, 6];
376
376
  authId = (_j = data.auth) === null || _j === void 0 ? void 0 : _j.id;
@@ -380,12 +380,12 @@ export var verifyNafathAsync = createAsyncThunk('connectExpress/verifyNafathAsyn
380
380
  if (settings.data.appConfig.mode === 'popup') {
381
381
  settings.data.appConfig.onFlowCompleted({ auth_id: authId, bi: bi });
382
382
  thunkApi.dispatch(handleOpen(false));
383
- return [2, data];
383
+ return [2, { data: data }];
384
384
  }
385
385
  if (redirectUrl) {
386
386
  urlQueryStart = redirectUrl.includes('?') ? '&' : '?';
387
387
  window.open("".concat(redirectUrl).concat(urlQueryStart, "authentication_id=").concat(authId, "&bi=").concat(bi), '_self');
388
- return [2, data];
388
+ return [2, { data: data }];
389
389
  }
390
390
  }
391
391
  if (!(isScopeAuthentication && !data.new_user && authDataHasValue)) return [3, 4];
@@ -394,7 +394,7 @@ export var verifyNafathAsync = createAsyncThunk('connectExpress/verifyNafathAsyn
394
394
  _c = _m.sent(), brandList = _c.brandList, entityList = _c.entityList;
395
395
  if (brandList.length && entityList.length) {
396
396
  sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_AUTHENTICATION_LIST_STEP')); });
397
- return [2, data];
397
+ return [2, { data: data }];
398
398
  }
399
399
  _m.label = 4;
400
400
  case 4: return [4, thunkApi.dispatch(getLeadByIdAsync(leadId)).unwrap()];
@@ -403,14 +403,18 @@ export var verifyNafathAsync = createAsyncThunk('connectExpress/verifyNafathAsyn
403
403
  stepName = data.step_name;
404
404
  needToCollectMoreInfo = stepName === 'collect_info';
405
405
  creatingAccount = stepName === 'create_account';
406
+ askDobInfo = stepName === COLLECT_DOB_INFO_NAFATH;
406
407
  (_l = params.onSuccess) === null || _l === void 0 ? void 0 : _l.call(params);
408
+ if (askDobInfo) {
409
+ sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_DOB_INFO_STEP')); });
410
+ }
407
411
  if (creatingAccount) {
408
412
  sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP')); });
409
413
  }
410
414
  if (needToCollectMoreInfo) {
411
415
  sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP')); });
412
416
  }
413
- return [2, data];
417
+ return [2, { data: data, isNextScreenIsDob: askDobInfo }];
414
418
  case 6: return [4, sleep(interval * 1000)];
415
419
  case 7:
416
420
  _m.sent();
@@ -676,7 +680,7 @@ export var createNIDNafathAuthIdentityAsync = createAsyncThunk('connectExpress/c
676
680
  });
677
681
  }); });
678
682
  export var verifyNafathIdentityAsync = createAsyncThunk('connectExpress/verifyNafathIdentityAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
679
- var connectExpress, authData, expiry, interval, maxCalls, count, data, isSuccess, isFailed, needToCollectMoreInfo, creatingAccount;
683
+ var connectExpress, authData, expiry, interval, maxCalls, count, data, isSuccess, isFailed, needToCollectMoreInfo, creatingAccount, askDobInfo;
680
684
  var _a, _b, _c, _d, _e, _f, _g;
681
685
  return __generator(this, function (_h) {
682
686
  switch (_h.label) {
@@ -700,7 +704,7 @@ export var verifyNafathIdentityAsync = createAsyncThunk('connectExpress/verifyNa
700
704
  isFailed = ((_d = (_c = data.auth) === null || _c === void 0 ? void 0 : _c.status) === null || _d === void 0 ? void 0 : _d.toLowerCase()) === 'failed';
701
705
  if (isFailed) {
702
706
  (_e = params.onFailure) === null || _e === void 0 ? void 0 : _e.call(params);
703
- return [2, data];
707
+ return [2, { data: data }];
704
708
  }
705
709
  if (!isSuccess) return [3, 4];
706
710
  return [4, thunkApi.dispatch(getLeadByIdAsync((_f = data.auth) === null || _f === void 0 ? void 0 : _f.lead_id)).unwrap()];
@@ -708,14 +712,18 @@ export var verifyNafathIdentityAsync = createAsyncThunk('connectExpress/verifyNa
708
712
  _h.sent();
709
713
  needToCollectMoreInfo = data.step_name === 'collect_info';
710
714
  creatingAccount = data.step_name === 'create_account';
715
+ askDobInfo = data.step_name === COLLECT_DOB_INFO_NAFATH;
711
716
  (_g = params.onSuccess) === null || _g === void 0 ? void 0 : _g.call(params);
717
+ if (askDobInfo) {
718
+ sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_DOB_INFO_STEP')); });
719
+ }
712
720
  if (creatingAccount) {
713
721
  sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP')); });
714
722
  }
715
723
  if (needToCollectMoreInfo) {
716
724
  sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP')); });
717
725
  }
718
- return [2, data];
726
+ return [2, { data: data, isNextScreenIsDob: askDobInfo }];
719
727
  case 4: return [4, sleep(interval * 1000)];
720
728
  case 5:
721
729
  _h.sent();
@@ -962,6 +970,37 @@ export var createEntity = createAsyncThunk('connectExpress/createEntity', functi
962
970
  }
963
971
  });
964
972
  }); });
973
+ export var updateLeadDOBAsync = createAsyncThunk('connectExpress/updateLeadDOBAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
974
+ var _a, settings, connectExpress, id, dob, payload, data, needToCollectMoreInfo, creatingAccount;
975
+ var _b, _c, _d;
976
+ return __generator(this, function (_e) {
977
+ switch (_e.label) {
978
+ case 0:
979
+ _a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
980
+ id = (((_b = connectExpress.data.responseData) === null || _b === void 0 ? void 0 : _b.leadData) || {}).id;
981
+ dob = params.dob;
982
+ payload = {
983
+ id: id || '',
984
+ date_of_birth: dob,
985
+ step_name: CONNECT_EXPRESS_STEP_NAMES.UPDATE_LEAD_DOB,
986
+ encryption_contract: ['date_of_birth']
987
+ };
988
+ return [4, API.leadService.updateLeadExpress(payload)];
989
+ case 1:
990
+ data = _e.sent();
991
+ (_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, params);
992
+ needToCollectMoreInfo = data.step_name === 'collect_info';
993
+ creatingAccount = data.step_name === 'create_account';
994
+ if (creatingAccount) {
995
+ sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP')); });
996
+ }
997
+ if (needToCollectMoreInfo) {
998
+ sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP')); });
999
+ }
1000
+ return [2, { response: data, formData: params }];
1001
+ }
1002
+ });
1003
+ }); });
965
1004
  export var updateLeadIndividualAsync = createAsyncThunk('connectExpress/updateLeadIndividualAsync', function (_a, thunkApi) {
966
1005
  var formData = _a.formData, originalFormData = _a.originalFormData;
967
1006
  return __awaiter(void 0, void 0, void 0, function () {
@@ -1158,6 +1197,9 @@ var initialState = {
1158
1197
  otp: '',
1159
1198
  authFor: AuthForType.MOBILE
1160
1199
  },
1200
+ dobData: {
1201
+ dob: ''
1202
+ },
1161
1203
  individualData: {
1162
1204
  name: '',
1163
1205
  email: '',
@@ -1392,7 +1434,9 @@ export var connectSlice = createSlice({
1392
1434
  .addCase(verifyNafathAsync.fulfilled, function (state, action) {
1393
1435
  var _a;
1394
1436
  state.loading = false;
1395
- state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authData), action.payload) });
1437
+ var _b = action.payload, data = _b.data, isNextScreenIsDob = _b.isNextScreenIsDob;
1438
+ state.data.individualData.isPrevDob = isNextScreenIsDob || false;
1439
+ state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authData), data) });
1396
1440
  })
1397
1441
  .addCase(verifyNafathAsync.rejected, function (state, action) {
1398
1442
  state.loading = false;
@@ -1422,10 +1466,12 @@ export var connectSlice = createSlice({
1422
1466
  state.error = null;
1423
1467
  })
1424
1468
  .addCase(verifyNafathIdentityAsync.fulfilled, function (state, action) {
1425
- var _a, _b, _c;
1469
+ var _a, _b;
1426
1470
  state.loading = false;
1471
+ var _c = action.payload, data = _c.data, isNextScreenIsDob = _c.isNextScreenIsDob;
1427
1472
  var auth = (((_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authData) || {}).auth;
1428
- state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: __assign(__assign(__assign({}, (_b = state.data.responseData) === null || _b === void 0 ? void 0 : _b.authData), action.payload), { auth: __assign(__assign({}, (_c = action.payload) === null || _c === void 0 ? void 0 : _c.auth), { id: auth === null || auth === void 0 ? void 0 : auth.id }) }) });
1473
+ state.data.individualData.isPrevDob = isNextScreenIsDob || false;
1474
+ state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: __assign(__assign(__assign({}, (_b = state.data.responseData) === null || _b === void 0 ? void 0 : _b.authData), data), { auth: __assign(__assign({}, data === null || data === void 0 ? void 0 : data.auth), { id: auth === null || auth === void 0 ? void 0 : auth.id }) }) });
1429
1475
  })
1430
1476
  .addCase(verifyNafathIdentityAsync.rejected, function (state, action) {
1431
1477
  state.loading = false;
@@ -1543,6 +1589,20 @@ export var connectSlice = createSlice({
1543
1589
  if (action.error.message === 'Aborted')
1544
1590
  return;
1545
1591
  state.error = action.error.message;
1592
+ })
1593
+ .addCase(updateLeadDOBAsync.fulfilled, function (state, action) {
1594
+ state.loading = false;
1595
+ state.error = null;
1596
+ state.data.dobData = action.payload.formData;
1597
+ state.data.responseData = __assign(__assign({}, state.data.responseData), { dobData: action.payload.response });
1598
+ })
1599
+ .addCase(updateLeadDOBAsync.pending, function (state) {
1600
+ state.loading = true;
1601
+ state.error = null;
1602
+ })
1603
+ .addCase(updateLeadDOBAsync.rejected, function (state, action) {
1604
+ state.loading = false;
1605
+ state.error = action.error.message;
1546
1606
  })
1547
1607
  .addCase(updateLeadIndividualAsync.fulfilled, function (state, action) {
1548
1608
  var _a, _b;