@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
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { TooltipProps } from '@mui/material/Tooltip';
3
3
  export type { TooltipProps };
4
4
  declare const _default: React.MemoExoticComponent<{
5
- ({ children, title, ...rest }: TooltipProps): import("react/jsx-runtime").JSX.Element;
5
+ ({ children, title, ...rest }: TooltipProps): JSX.Element;
6
6
  defaultProps: {
7
7
  placement: string;
8
8
  };
@@ -5,7 +5,7 @@ export interface WarningProps extends BoxProps {
5
5
  warningType?: 'alert' | 'error' | 'hint';
6
6
  }
7
7
  declare const _default: React.MemoExoticComponent<{
8
- ({ children, warningType, ...rest }: WarningProps): import("react/jsx-runtime").JSX.Element;
8
+ ({ children, warningType, ...rest }: WarningProps): JSX.Element;
9
9
  defaultProps: {
10
10
  warningType: string;
11
11
  };
@@ -11,6 +11,7 @@ export declare const LOCAL_STORAGE_KEYS: {
11
11
  export declare const SCOPE_AUTH = "auth";
12
12
  export declare const DEFAULT_COUNTRY_ISO2 = "KW";
13
13
  export declare const NAFATH_VERIFICATION_FAILED = "nafath_verification_failed";
14
+ export declare const COLLECT_DOB_INFO_NAFATH = "collect_date_of_birth";
14
15
  export declare const EXTERNAL_LINKS: {
15
16
  TOS_EN: string;
16
17
  TOS_AR: string;
@@ -90,6 +91,7 @@ export declare const CONNECT_STEP_NAMES: {
90
91
  VERIFY_AUTH_MOBILE: string;
91
92
  CREATE_AUTH_NID: string;
92
93
  VERIFY_AUTH_NID: string;
94
+ UPDATE_LEAD_DOB: string;
93
95
  UPDATE_LEAD_INDIVIDUAL: string;
94
96
  UPDATE_LEAD_BRAND: string;
95
97
  UPDATE_BRAND_INFO: string;
@@ -106,6 +108,7 @@ export declare const AUTH_STEP_NAMES: {
106
108
  VERIFY_AUTH_EMAIL: string;
107
109
  CREATE_AUTH_NID: string;
108
110
  VERIFY_AUTH_NID: string;
111
+ UPDATE_DOB_INFO: string;
109
112
  };
110
113
  export declare const CONNECT_EXPRESS_STEP_NAMES: {
111
114
  CREATE_AUTH_MOBILE: string;
@@ -116,6 +119,7 @@ export declare const CONNECT_EXPRESS_STEP_NAMES: {
116
119
  VERIFY_AUTH_NID: string;
117
120
  IDENTITY_AUTH: string;
118
121
  VERIFY_IDENTITY_AUTH: string;
122
+ UPDATE_LEAD_DOB: string;
119
123
  UPDATE_LEAD_INDIVIDUAL: string;
120
124
  UPDATE_LEAD_BRAND_BUSINESS: string;
121
125
  UPDATE_BRAND_INFO: string;
@@ -137,6 +141,7 @@ export declare const BUSINESS_STEP_NAMES: {
137
141
  IDENTITY_AUTH: string;
138
142
  CREATE_AUTH_CIVIL_ID: string;
139
143
  IDENTITY_VERIFY_AUTH: string;
144
+ BUSINESS_DOB_INFO: string;
140
145
  BUSINESS_CR_INFO: string;
141
146
  BUSINESS_INFO_CONFIRM: string;
142
147
  BUSINESS_CR_ACTIVITIES: string;
@@ -250,7 +255,7 @@ export declare enum DeleteFileStatus {
250
255
  ERROR = "error",
251
256
  SUCCESS = "success"
252
257
  }
253
- export type FileInfo = {
258
+ export declare type FileInfo = {
254
259
  fileId: string;
255
260
  docId: string;
256
261
  name: string;
@@ -11,6 +11,7 @@ export var LOCAL_STORAGE_KEYS = {
11
11
  export var SCOPE_AUTH = 'auth';
12
12
  export var DEFAULT_COUNTRY_ISO2 = 'KW';
13
13
  export var NAFATH_VERIFICATION_FAILED = 'nafath_verification_failed';
14
+ export var COLLECT_DOB_INFO_NAFATH = 'collect_date_of_birth';
14
15
  export var EXTERNAL_LINKS = {
15
16
  TOS_EN: '/en/terms-conditions',
16
17
  TOS_AR: '/ar/terms-conditions',
@@ -60,7 +61,7 @@ export var CONNECT_SCREENS_NAVIGATION = [
60
61
  },
61
62
  {
62
63
  name: 'CONNECT_VERIFY_NAFATH_STEP',
63
- next: 'CONNECT_INDIVIDUAL_STEP',
64
+ next: ['CONNECT_INDIVIDUAL_STEP', 'CONNECT_DOB_STEP'],
64
65
  prev: 'CONNECT_NID_STEP',
65
66
  order: 2
66
67
  },
@@ -70,10 +71,16 @@ export var CONNECT_SCREENS_NAVIGATION = [
70
71
  prev: ['CONNECT_MOBILE_STEP', 'CONNECT_NID_STEP'],
71
72
  order: 2
72
73
  },
74
+ {
75
+ name: 'CONNECT_DOB_STEP',
76
+ next: 'CONNECT_INDIVIDUAL_STEP',
77
+ prev: 'CONNECT_NID_STEP',
78
+ order: 2
79
+ },
73
80
  {
74
81
  name: 'CONNECT_INDIVIDUAL_STEP',
75
82
  next: 'CONNECT_MERCHANT_INFO_STEP',
76
- prev: ['CONNECT_MOBILE_STEP', 'CONNECT_NID_STEP', 'CONNECT_CIVIL_ID_STEP'],
83
+ prev: ['CONNECT_MOBILE_STEP', 'CONNECT_NID_STEP', 'CONNECT_CIVIL_ID_STEP', 'CONNECT_DOB_STEP'],
77
84
  order: 3
78
85
  },
79
86
  {
@@ -130,6 +137,7 @@ export var CONNECT_EXPRESS_SCREENS_NAVIGATION = [
130
137
  name: 'CONNECT_EXPRESS_VERIFY_NAFATH_STEP',
131
138
  next: [
132
139
  'CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP',
140
+ 'CONNECT_EXPRESS_COLLECT_DOB_INFO_STEP',
133
141
  'CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP',
134
142
  'CONNECT_EXPRESS_AUTHENTICATION_LIST_STEP'
135
143
  ],
@@ -190,7 +198,11 @@ export var CONNECT_EXPRESS_SCREENS_NAVIGATION = [
190
198
  },
191
199
  {
192
200
  name: 'CONNECT_EXPRESS_IDENTITY_VERIFY_NAFATH_STEP',
193
- next: ['CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP', 'CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP'],
201
+ next: [
202
+ 'CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP',
203
+ 'CONNECT_EXPRESS_COLLECT_DOB_INFO_STEP',
204
+ 'CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP'
205
+ ],
194
206
  prev: 'CONNECT_EXPRESS_NID_MISSED_STEP',
195
207
  order: 4
196
208
  },
@@ -200,6 +212,12 @@ export var CONNECT_EXPRESS_SCREENS_NAVIGATION = [
200
212
  prev: 'CONNECT_EXPRESS_CIVIL_ID_MISSED_STEP',
201
213
  order: 4
202
214
  },
215
+ {
216
+ name: 'CONNECT_EXPRESS_COLLECT_DOB_INFO_STEP',
217
+ next: ['CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP', 'CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP'],
218
+ prev: ['CONNECT_EXPRESS_NID_STEP', 'CONNECT_EXPRESS_NID_MISSED_STEP'],
219
+ order: 5
220
+ },
203
221
  {
204
222
  name: 'CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP',
205
223
  next: ['CONNECT_EXPRESS_COLLECT_BUSINESS_INFO_STEP', 'CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP'],
@@ -208,7 +226,8 @@ export var CONNECT_EXPRESS_SCREENS_NAVIGATION = [
208
226
  'CONNECT_EXPRESS_NID_STEP',
209
227
  'CONNECT_EXPRESS_CIVIL_ID_STEP',
210
228
  'CONNECT_EXPRESS_CIVIL_ID_MISSED_STEP',
211
- 'CONNECT_EXPRESS_NID_MISSED_STEP'
229
+ 'CONNECT_EXPRESS_NID_MISSED_STEP',
230
+ 'CONNECT_EXPRESS_COLLECT_DOB_INFO_STEP'
212
231
  ],
213
232
  order: 5
214
233
  },
@@ -294,7 +313,7 @@ export var AUTH_SCREENS_NAVIGATION = [
294
313
  },
295
314
  {
296
315
  name: 'AUTH_NAFATH_VERIFY_STEP',
297
- next: 'AUTH_PREPARING_DATA_STEP',
316
+ next: ['AUTH_PREPARING_DATA_STEP', 'AUTH_DOB_STEP'],
298
317
  prev: 'AUTH_NID_STEP',
299
318
  order: 2
300
319
  },
@@ -316,6 +335,12 @@ export var AUTH_SCREENS_NAVIGATION = [
316
335
  prev: 'AUTH_CIVIL_ID_STEP',
317
336
  order: 2
318
337
  },
338
+ {
339
+ name: 'AUTH_DOB_STEP',
340
+ next: 'AUTH_PREPARING_DATA_STEP',
341
+ prev: 'AUTH_NID_STEP',
342
+ order: 2
343
+ },
319
344
  {
320
345
  name: 'AUTH_PREPARING_DATA_STEP',
321
346
  next: ['AUTH_AUTHENTICATION_LIST_STEP', 'AUTH_ACCOUNT_NOT_FOUND_STEP'],
@@ -401,14 +426,20 @@ export var BUSINESS_SCREENS_NAVIGATION = [
401
426
  },
402
427
  {
403
428
  name: 'BUSINESS_VERIFY_NAFATH_STEP',
404
- next: 'BUSINESS_BUSINESS_TYPE_STEP',
429
+ next: ['BUSINESS_BUSINESS_TYPE_STEP', 'BUSINESS_DOB_STEP'],
405
430
  prev: 'BUSINESS_IDBOD_STEP',
406
431
  order: 3
407
432
  },
433
+ {
434
+ name: 'BUSINESS_DOB_STEP',
435
+ next: 'BUSINESS_BUSINESS_TYPE_STEP',
436
+ prev: 'BUSINESS_IDBOD_STEP',
437
+ order: 2
438
+ },
408
439
  {
409
440
  name: 'BUSINESS_BUSINESS_TYPE_STEP',
410
441
  next: ['BUSINESS_ACTIVITIES_STEP', 'BUSINESS_VERIFY_BRAND_INFO'],
411
- prev: 'BUSINESS_IDBOD_STEP',
442
+ prev: ['BUSINESS_IDBOD_STEP', 'BUSINESS_DOB_STEP'],
412
443
  order: 2
413
444
  },
414
445
  {
@@ -881,6 +912,7 @@ export var CONNECT_STEP_NAMES = {
881
912
  VERIFY_AUTH_MOBILE: 'connect_verify_auth_mobile',
882
913
  CREATE_AUTH_NID: 'connect_create_auth_nid',
883
914
  VERIFY_AUTH_NID: 'connect_verify_auth_nid',
915
+ UPDATE_LEAD_DOB: 'connect_update_lead_dob',
884
916
  UPDATE_LEAD_INDIVIDUAL: 'connect_update_lead_individual',
885
917
  UPDATE_LEAD_BRAND: 'connect_update_lead_brand',
886
918
  UPDATE_BRAND_INFO: 'connect_update_brand_info',
@@ -896,7 +928,8 @@ export var AUTH_STEP_NAMES = {
896
928
  VERIFY_AUTH_MOBILE: 'auth_verify_auth_mobile',
897
929
  VERIFY_AUTH_EMAIL: 'auth_verify_auth_email',
898
930
  CREATE_AUTH_NID: 'auth_create_auth_nid',
899
- VERIFY_AUTH_NID: 'auth_verify_auth_nid'
931
+ VERIFY_AUTH_NID: 'auth_verify_auth_nid',
932
+ UPDATE_DOB_INFO: 'auth_update_dob_info'
900
933
  };
901
934
  export var CONNECT_EXPRESS_STEP_NAMES = {
902
935
  CREATE_AUTH_MOBILE: 'connect_express_create_auth_mobile',
@@ -907,6 +940,7 @@ export var CONNECT_EXPRESS_STEP_NAMES = {
907
940
  VERIFY_AUTH_NID: 'connect_express_verify_auth_nid',
908
941
  IDENTITY_AUTH: 'connect_express_identity_auth',
909
942
  VERIFY_IDENTITY_AUTH: 'connect_express_verify_identity_auth',
943
+ UPDATE_LEAD_DOB: 'connect_express_update_lead_dob',
910
944
  UPDATE_LEAD_INDIVIDUAL: 'connect_express_update_lead_individual',
911
945
  UPDATE_LEAD_BRAND_BUSINESS: 'connect_express_update_lead_brand_business',
912
946
  UPDATE_BRAND_INFO: 'connect_express_update_brand_info',
@@ -928,6 +962,7 @@ export var BUSINESS_STEP_NAMES = {
928
962
  IDENTITY_AUTH: 'business_identity_auth',
929
963
  CREATE_AUTH_CIVIL_ID: 'business_create_auth_civil_id',
930
964
  IDENTITY_VERIFY_AUTH: 'business_identity_auth_verify',
965
+ BUSINESS_DOB_INFO: 'business_dob_info',
931
966
  BUSINESS_CR_INFO: 'business_cr_info',
932
967
  BUSINESS_INFO_CONFIRM: 'business_info_confirm',
933
968
  BUSINESS_CR_ACTIVITIES: 'business_cr_activities',
@@ -1,235 +1,68 @@
1
1
  import { RootState } from '../../../app/store';
2
- import { ActionState, AuthEmailFormValues, AuthForType, AuthMerchantFormValues, AuthenticationListFormValues, CivilFormValues, CountryCode, FlowsTypes, MobileFormValues, NIDFormValues, OTPFormValues, PasswordFormValues, SharedState } from '../../../@types';
3
- export declare const updateBusinessCountry: import("@reduxjs/toolkit").AsyncThunk<any, string, {
4
- state?: unknown;
5
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
6
- extra?: unknown;
7
- rejectValue?: unknown;
8
- serializedErrorType?: unknown;
9
- pendingMeta?: unknown;
10
- fulfilledMeta?: unknown;
11
- rejectedMeta?: unknown;
12
- }>;
2
+ import { ActionState, AuthEmailFormValues, AuthForType, AuthMerchantFormValues, AuthenticationListFormValues, CivilFormValues, CountryCode, DOBFormValues, FlowsTypes, MobileFormValues, NIDFormValues, OTPFormValues, PasswordFormValues, SharedState } from '../../../@types';
3
+ export declare const updateBusinessCountry: import("@reduxjs/toolkit").AsyncThunk<any, string, {}>;
13
4
  export declare const retrieveLeadIdentityByIdAsync: import("@reduxjs/toolkit").AsyncThunk<{
14
5
  data: any;
15
6
  countryCode: CountryCode;
16
- }, string, {
17
- state?: unknown;
18
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
19
- extra?: unknown;
20
- rejectValue?: unknown;
21
- serializedErrorType?: unknown;
22
- pendingMeta?: unknown;
23
- fulfilledMeta?: unknown;
24
- rejectedMeta?: unknown;
25
- }>;
7
+ }, string, {}>;
26
8
  export declare const createMobileAuth: import("@reduxjs/toolkit").AsyncThunk<{
27
9
  response: any;
28
10
  formData: MobileFormValues;
29
- }, MobileFormValues, {
30
- state?: unknown;
31
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
32
- extra?: unknown;
33
- rejectValue?: unknown;
34
- serializedErrorType?: unknown;
35
- pendingMeta?: unknown;
36
- fulfilledMeta?: unknown;
37
- rejectedMeta?: unknown;
38
- }>;
11
+ }, MobileFormValues, {}>;
39
12
  export declare const resendMobileAuthOTP: import("@reduxjs/toolkit").AsyncThunk<{
40
13
  response: any;
41
14
  formData: MobileFormValues;
42
- }, MobileFormValues, {
43
- state?: unknown;
44
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
45
- extra?: unknown;
46
- rejectValue?: unknown;
47
- serializedErrorType?: unknown;
48
- pendingMeta?: unknown;
49
- fulfilledMeta?: unknown;
50
- rejectedMeta?: unknown;
51
- }>;
52
- export declare const verifyMobileOtp: import("@reduxjs/toolkit").AsyncThunk<any, OTPFormValues, {
53
- state?: unknown;
54
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
55
- extra?: unknown;
56
- rejectValue?: unknown;
57
- serializedErrorType?: unknown;
58
- pendingMeta?: unknown;
59
- fulfilledMeta?: unknown;
60
- rejectedMeta?: unknown;
61
- }>;
15
+ }, MobileFormValues, {}>;
16
+ export declare const verifyMobileOtp: import("@reduxjs/toolkit").AsyncThunk<any, OTPFormValues, {}>;
62
17
  export declare const createEmailAuth: import("@reduxjs/toolkit").AsyncThunk<{
63
18
  response: any;
64
19
  formData: AuthEmailFormValues;
65
- }, AuthEmailFormValues, {
66
- state?: unknown;
67
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
68
- extra?: unknown;
69
- rejectValue?: unknown;
70
- serializedErrorType?: unknown;
71
- pendingMeta?: unknown;
72
- fulfilledMeta?: unknown;
73
- rejectedMeta?: unknown;
74
- }>;
75
- export declare const verifyEmailPassword: import("@reduxjs/toolkit").AsyncThunk<any, PasswordFormValues, {
76
- state?: unknown;
77
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
78
- extra?: unknown;
79
- rejectValue?: unknown;
80
- serializedErrorType?: unknown;
81
- pendingMeta?: unknown;
82
- fulfilledMeta?: unknown;
83
- rejectedMeta?: unknown;
84
- }>;
20
+ }, AuthEmailFormValues, {}>;
21
+ export declare const verifyEmailPassword: import("@reduxjs/toolkit").AsyncThunk<any, PasswordFormValues, {}>;
85
22
  export declare const resendEmailAuthOTP: import("@reduxjs/toolkit").AsyncThunk<{
86
23
  response: any;
87
24
  formData: AuthEmailFormValues;
88
- }, AuthEmailFormValues, {
89
- state?: unknown;
90
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
91
- extra?: unknown;
92
- rejectValue?: unknown;
93
- serializedErrorType?: unknown;
94
- pendingMeta?: unknown;
95
- fulfilledMeta?: unknown;
96
- rejectedMeta?: unknown;
97
- }>;
98
- export declare const verifyEmailOtp: import("@reduxjs/toolkit").AsyncThunk<any, OTPFormValues, {
99
- state?: unknown;
100
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
101
- extra?: unknown;
102
- rejectValue?: unknown;
103
- serializedErrorType?: unknown;
104
- pendingMeta?: unknown;
105
- fulfilledMeta?: unknown;
106
- rejectedMeta?: unknown;
107
- }>;
25
+ }, AuthEmailFormValues, {}>;
26
+ export declare const verifyEmailOtp: import("@reduxjs/toolkit").AsyncThunk<any, OTPFormValues, {}>;
108
27
  export declare const createNafathAuth: import("@reduxjs/toolkit").AsyncThunk<{
109
28
  response: any;
110
29
  formData: NIDFormValues;
111
- }, NIDFormValues, {
112
- state?: unknown;
113
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
114
- extra?: unknown;
115
- rejectValue?: unknown;
116
- serializedErrorType?: unknown;
117
- pendingMeta?: unknown;
118
- fulfilledMeta?: unknown;
119
- rejectedMeta?: unknown;
120
- }>;
30
+ }, NIDFormValues, {}>;
121
31
  interface verifyNafathParams {
122
32
  onSuccess?: () => void;
123
33
  onFailure?: () => void;
124
34
  }
125
- export declare const verifyNafath: import("@reduxjs/toolkit").AsyncThunk<any, verifyNafathParams, {
126
- state?: unknown;
127
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
128
- extra?: unknown;
129
- rejectValue?: unknown;
130
- serializedErrorType?: unknown;
131
- pendingMeta?: unknown;
132
- fulfilledMeta?: unknown;
133
- rejectedMeta?: unknown;
134
- }>;
35
+ export declare const verifyNafath: import("@reduxjs/toolkit").AsyncThunk<any, verifyNafathParams, {}>;
36
+ export declare const updateLeadDOB: import("@reduxjs/toolkit").AsyncThunk<{
37
+ data: any;
38
+ formData: DOBFormValues;
39
+ }, DOBFormValues, {}>;
135
40
  export declare const createCivilIdAuth: import("@reduxjs/toolkit").AsyncThunk<{
136
41
  response: any;
137
42
  formData: CivilFormValues;
138
- }, CivilFormValues, {
139
- state?: unknown;
140
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
141
- extra?: unknown;
142
- rejectValue?: unknown;
143
- serializedErrorType?: unknown;
144
- pendingMeta?: unknown;
145
- fulfilledMeta?: unknown;
146
- rejectedMeta?: unknown;
147
- }>;
43
+ }, CivilFormValues, {}>;
148
44
  interface verifyPACIParams {
149
45
  onSuccess: () => void;
150
46
  }
151
- export declare const verifyPACI: import("@reduxjs/toolkit").AsyncThunk<any, verifyPACIParams, {
152
- state?: unknown;
153
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
154
- extra?: unknown;
155
- rejectValue?: unknown;
156
- serializedErrorType?: unknown;
157
- pendingMeta?: unknown;
158
- fulfilledMeta?: unknown;
159
- rejectedMeta?: unknown;
160
- }>;
161
- export declare const checkMigrationStatus: import("@reduxjs/toolkit").AsyncThunk<undefined, void, {
162
- state?: unknown;
163
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
164
- extra?: unknown;
165
- rejectValue?: unknown;
166
- serializedErrorType?: unknown;
167
- pendingMeta?: unknown;
168
- fulfilledMeta?: unknown;
169
- rejectedMeta?: unknown;
170
- }>;
47
+ export declare const verifyPACI: import("@reduxjs/toolkit").AsyncThunk<any, verifyPACIParams, {}>;
48
+ export declare const checkMigrationStatus: import("@reduxjs/toolkit").AsyncThunk<undefined, void, {}>;
171
49
  export declare const checkAccountAvailability: import("@reduxjs/toolkit").AsyncThunk<{
172
50
  brandList: any;
173
51
  entityList: any;
174
- }, void, {
175
- state?: unknown;
176
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
177
- extra?: unknown;
178
- rejectValue?: unknown;
179
- serializedErrorType?: unknown;
180
- pendingMeta?: unknown;
181
- fulfilledMeta?: unknown;
182
- rejectedMeta?: unknown;
183
- }>;
52
+ }, void, {}>;
184
53
  export declare const getMerchantList: import("@reduxjs/toolkit").AsyncThunk<{
185
54
  list: any;
186
55
  brandInfo: import("../../../@types").BrandInfo | undefined;
187
56
  entityInfo: import("../../../@types").EntityLicenseAuth | undefined;
188
- }, AuthenticationListFormValues, {
189
- state?: unknown;
190
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
191
- extra?: unknown;
192
- rejectValue?: unknown;
193
- serializedErrorType?: unknown;
194
- pendingMeta?: unknown;
195
- fulfilledMeta?: unknown;
196
- rejectedMeta?: unknown;
197
- }>;
57
+ }, AuthenticationListFormValues, {}>;
198
58
  export declare const createEntity: import("@reduxjs/toolkit").AsyncThunk<{
199
59
  data: any;
200
60
  formData: AuthenticationListFormValues;
201
- }, AuthenticationListFormValues, {
202
- state?: unknown;
203
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
204
- extra?: unknown;
205
- rejectValue?: unknown;
206
- serializedErrorType?: unknown;
207
- pendingMeta?: unknown;
208
- fulfilledMeta?: unknown;
209
- rejectedMeta?: unknown;
210
- }>;
61
+ }, AuthenticationListFormValues, {}>;
211
62
  export declare const confirmInfo: import("@reduxjs/toolkit").AsyncThunk<void, AuthenticationListFormValues & AuthMerchantFormValues & {
212
63
  authId?: string | undefined;
213
- }, {
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
- }>;
223
- export declare const onSignUp: import("@reduxjs/toolkit").AsyncThunk<void, void, {
224
- state?: unknown;
225
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
226
- extra?: unknown;
227
- rejectValue?: unknown;
228
- serializedErrorType?: unknown;
229
- pendingMeta?: unknown;
230
- fulfilledMeta?: unknown;
231
- rejectedMeta?: unknown;
232
- }>;
64
+ }, {}>;
65
+ export declare const onSignUp: import("@reduxjs/toolkit").AsyncThunk<void, void, {}>;
233
66
  interface ResponseData {
234
67
  responseData?: Record<string, any>;
235
68
  }
@@ -238,6 +71,7 @@ export interface authData {
238
71
  nidData: NIDFormValues;
239
72
  civilIdData: CivilFormValues;
240
73
  emailData: AuthEmailFormValues;
74
+ dobData: DOBFormValues;
241
75
  otpData: OTPFormValues & {
242
76
  authFor?: AuthForType;
243
77
  };
@@ -263,7 +97,7 @@ export declare const authSlice: import("@reduxjs/toolkit").Slice<AuthState, {
263
97
  resetPasswordValue: (state: AuthState) => void;
264
98
  resetAuthenticationScreen: (state: AuthState) => void;
265
99
  }, "auth/store">;
266
- export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"auth/store/clearError">, resetStore: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"auth/store/resetStore">, setMobileCountryCode: import("@reduxjs/toolkit").ActionCreatorWithPayload<CountryCode, "auth/store/setMobileCountryCode">, setLeadId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "auth/store/setLeadId">, resetOTPValue: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"auth/store/resetOTPValue">, storeIsStartFromBusinessCountry: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "auth/store/storeIsStartFromBusinessCountry">, resetAuthenticationScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"auth/store/resetAuthenticationScreen">, storeIsBusinessCountryPassed: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "auth/store/storeIsBusinessCountryPassed">, resetPasswordValue: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"auth/store/resetPasswordValue">;
100
+ export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetStore: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setMobileCountryCode: import("@reduxjs/toolkit").ActionCreatorWithPayload<CountryCode, string>, setLeadId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, resetOTPValue: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, storeIsStartFromBusinessCountry: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>, resetAuthenticationScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, storeIsBusinessCountryPassed: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>, resetPasswordValue: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
267
101
  declare const _default: import("redux").Reducer<AuthState, import("redux").AnyAction>;
268
102
  export default _default;
269
103
  export declare const authSelector: (state: RootState) => AuthState;
@@ -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]) {
@@ -57,7 +57,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
57
57
  var _a;
58
58
  import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
59
59
  import { AuthForType, AuthTypeNumber, FlowsTypes, MigrationStatus } from '../../../@types';
60
- import { ADD_NEW_ENTITY, AUTH_STEP_NAMES, IDENTIFICATION_TYPE, NAFATH_VERIFICATION_FAILED, SCOPE_AUTH, defaultCountry } from '../../../constants';
60
+ import { ADD_NEW_ENTITY, AUTH_STEP_NAMES, COLLECT_DOB_INFO_NAFATH, IDENTIFICATION_TYPE, NAFATH_VERIFICATION_FAILED, SCOPE_AUTH, defaultCountry } from '../../../constants';
61
61
  import API from '../../../api';
62
62
  import { handleCurrentActiveScreen, handleNextScreenStep, handleOpen, handlePrevScreenStep, handleSetCountryByIso2 } from '../../../app/settings';
63
63
  import { findCountryByIddPrefix, openConnect, sendCustomEventToGTM, sleep } from '../../../utils';
@@ -397,7 +397,7 @@ export var createNafathAuth = createAsyncThunk('auth/createNafathAuth', function
397
397
  });
398
398
  }); });
399
399
  export var verifyNafath = createAsyncThunk('auth/verifyNafath', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
400
- var _a, settings, auth, authResponse, expiry, scope, interval, maxCalls, count, data, isSuccess, isFailed;
400
+ var _a, settings, auth, authResponse, expiry, scope, interval, maxCalls, _loop_1, count, state_1;
401
401
  var _b, _c, _d, _e, _f;
402
402
  return __generator(this, function (_g) {
403
403
  switch (_g.label) {
@@ -408,39 +408,79 @@ export var verifyNafath = createAsyncThunk('auth/verifyNafath', function (params
408
408
  scope = settings.data.appConfig.scope;
409
409
  interval = 3;
410
410
  maxCalls = Math.floor(expiry / interval);
411
+ _loop_1 = function (count) {
412
+ var data, isSuccess, isFailed, screen_1;
413
+ return __generator(this, function (_h) {
414
+ switch (_h.label) {
415
+ case 0:
416
+ if (thunkApi.signal.aborted) {
417
+ return [2, "break"];
418
+ }
419
+ return [4, API.authService.getVerifyAuth(authResponse === null || authResponse === void 0 ? void 0 : authResponse.auth_token)];
420
+ case 1:
421
+ data = _h.sent();
422
+ isSuccess = ((_b = data.status) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === 'success';
423
+ isFailed = ((_c = data === null || data === void 0 ? void 0 : data.status) === null || _c === void 0 ? void 0 : _c.toLowerCase()) === 'failed';
424
+ if (isFailed) {
425
+ (_d = params.onFailure) === null || _d === void 0 ? void 0 : _d.call(params);
426
+ return [2, { value: data }];
427
+ }
428
+ if (isSuccess) {
429
+ if (scope === 'merchant') {
430
+ openConnect(settings.data.appConfig.publicKey, settings.data.businessCountry.iso2);
431
+ return [2, { value: data }];
432
+ }
433
+ (_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, params);
434
+ screen_1 = data.step_name === COLLECT_DOB_INFO_NAFATH ? 'AUTH_DOB_STEP' : 'AUTH_PREPARING_DATA_STEP';
435
+ sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep(screen_1)); });
436
+ return [2, { value: data }];
437
+ }
438
+ return [4, sleep(interval * 1000)];
439
+ case 2:
440
+ _h.sent();
441
+ return [2];
442
+ }
443
+ });
444
+ };
411
445
  count = 1;
412
446
  _g.label = 1;
413
447
  case 1:
414
- if (!(count <= maxCalls)) return [3, 5];
415
- if (thunkApi.signal.aborted) {
416
- return [3, 5];
417
- }
418
- return [4, API.authService.getVerifyAuth(authResponse === null || authResponse === void 0 ? void 0 : authResponse.auth_token)];
448
+ if (!(count <= maxCalls)) return [3, 4];
449
+ return [5, _loop_1(count)];
419
450
  case 2:
420
- data = _g.sent();
421
- isSuccess = ((_b = data.status) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === 'success';
422
- isFailed = ((_c = data === null || data === void 0 ? void 0 : data.status) === null || _c === void 0 ? void 0 : _c.toLowerCase()) === 'failed';
423
- if (isFailed) {
424
- (_d = params.onFailure) === null || _d === void 0 ? void 0 : _d.call(params);
425
- return [2, data];
426
- }
427
- if (isSuccess) {
428
- if (scope === 'merchant') {
429
- openConnect(settings.data.appConfig.publicKey, settings.data.businessCountry.iso2);
430
- return [2, data];
431
- }
432
- (_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, params);
433
- sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('AUTH_PREPARING_DATA_STEP')); });
434
- return [2, data];
435
- }
436
- return [4, sleep(interval * 1000)];
451
+ state_1 = _g.sent();
452
+ if (typeof state_1 === "object")
453
+ return [2, state_1.value];
454
+ if (state_1 === "break")
455
+ return [3, 4];
456
+ _g.label = 3;
437
457
  case 3:
438
- _g.sent();
439
- _g.label = 4;
440
- case 4:
441
458
  count++;
442
459
  return [3, 1];
443
- case 5: throw new Error(NAFATH_VERIFICATION_FAILED);
460
+ case 4: throw new Error(NAFATH_VERIFICATION_FAILED);
461
+ }
462
+ });
463
+ }); });
464
+ export var updateLeadDOB = createAsyncThunk('auth/updateLeadDOB', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
465
+ var _a, settings, auth, leadId, requestBody, data;
466
+ var _b, _c, _d, _e;
467
+ return __generator(this, function (_f) {
468
+ switch (_f.label) {
469
+ case 0:
470
+ _a = thunkApi.getState(), settings = _a.settings, auth = _a.auth;
471
+ leadId = ((_c = (_b = auth.data.responseData) === null || _b === void 0 ? void 0 : _b.authResponse) === null || _c === void 0 ? void 0 : _c.lead_id) || '';
472
+ requestBody = {
473
+ id: leadId,
474
+ date_of_birth: params.dob,
475
+ step_name: AUTH_STEP_NAMES.UPDATE_DOB_INFO,
476
+ encryption_contract: ['date_of_birth']
477
+ };
478
+ return [4, API.leadService.updateLead(requestBody)];
479
+ case 1:
480
+ data = _f.sent();
481
+ thunkApi.dispatch(handleNextScreenStep());
482
+ (_e = (_d = settings.data.appConfig).onStepCompleted) === null || _e === void 0 ? void 0 : _e.call(_d, settings.data.activeScreen.name, requestBody);
483
+ return [2, { data: data, formData: params }];
444
484
  }
445
485
  });
446
486
  }); });
@@ -777,6 +817,9 @@ var initialState = {
777
817
  emailData: {
778
818
  email: ''
779
819
  },
820
+ dobData: {
821
+ dob: ''
822
+ },
780
823
  otpData: {
781
824
  otp: '',
782
825
  authFor: AuthForType.MOBILE
@@ -989,6 +1032,21 @@ export var authSlice = createSlice({
989
1032
  if (error !== 'Aborted') {
990
1033
  state.error = error;
991
1034
  }
1035
+ })
1036
+ .addCase(updateLeadDOB.pending, function (state, action) {
1037
+ state.loading = true;
1038
+ state.error = null;
1039
+ })
1040
+ .addCase(updateLeadDOB.fulfilled, function (state, action) {
1041
+ var _a;
1042
+ state.loading = false;
1043
+ var _b = action.payload, data = _b.data, formData = _b.formData;
1044
+ state.data.dobData = formData;
1045
+ state.data.responseData = __assign(__assign({}, state.data.responseData), { leadResponse: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.leadResponse), data) });
1046
+ })
1047
+ .addCase(updateLeadDOB.rejected, function (state, action) {
1048
+ state.loading = false;
1049
+ state.error = action.error.message;
992
1050
  })
993
1051
  .addCase(createCivilIdAuth.pending, function (state) {
994
1052
  state.loading = true;