@tap-payments/auth-jsconnect 2.8.66-development → 2.8.70-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 (514) 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 +24 -24
  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 +26 -13
  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 +11 -10
  15. package/build/api/file.d.ts +1 -1
  16. package/build/api/firebase.js +1 -1
  17. package/build/api/index.d.ts +2 -2
  18. package/build/api/individual.d.ts +5 -5
  19. package/build/api/init.d.ts +1 -1
  20. package/build/api/lead.d.ts +18 -12
  21. package/build/api/lead.js +1 -1
  22. package/build/api/operator.d.ts +2 -2
  23. package/build/api/operator.js +1 -1
  24. package/build/api/user.d.ts +2 -2
  25. package/build/app/settings.d.ts +21 -3
  26. package/build/app/settings.js +1 -1
  27. package/build/app/store.d.ts +4 -4
  28. package/build/assets/locales/ar.json +10 -1
  29. package/build/assets/locales/en.json +10 -1
  30. package/build/components/AnimationFlow/AnimationFlow.d.ts +1 -1
  31. package/build/components/AnimationFlow/BottomSheet.d.ts +1 -1
  32. package/build/components/AnimationFlow/Dialog.d.ts +1 -1
  33. package/build/components/AnimationFlow/Error.d.ts +1 -2
  34. package/build/components/AnimationFlow/Loader.d.ts +1 -2
  35. package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +1 -1
  36. package/build/components/Button/Button.d.ts +1 -1
  37. package/build/components/CheckBox/CheckBox.d.ts +1 -1
  38. package/build/components/Collapse/Collapse.d.ts +1 -2
  39. package/build/components/DatePicker/DatePicker.d.ts +1 -1
  40. package/build/components/ExpandIcon/ExpandIcon.d.ts +1 -2
  41. package/build/components/FileInput/DragAndDrop.d.ts +1 -2
  42. package/build/components/FileInput/UploadInput.d.ts +1 -2
  43. package/build/components/Footer/Footer.d.ts +1 -1
  44. package/build/components/Form/Form.d.ts +1 -1
  45. package/build/components/Input/Input.d.ts +1 -1
  46. package/build/components/InputAdornment/InputAdornment.d.ts +1 -1
  47. package/build/components/List/List.d.ts +1 -1
  48. package/build/components/ListItem/ListItem.d.ts +1 -1
  49. package/build/components/Loader/Loader.d.ts +1 -1
  50. package/build/components/LogoBadge/LogoBadge.d.ts +1 -1
  51. package/build/components/OTPField/OTPField.d.ts +1 -1
  52. package/build/components/OTPTimer/OTPTimer.d.ts +1 -1
  53. package/build/components/ProgressBar/CircularProgressBar.d.ts +1 -2
  54. package/build/components/ProgressBar/ProgressBar.d.ts +1 -1
  55. package/build/components/Providers/ReduxProvider.d.ts +1 -1
  56. package/build/components/Providers/ThemeProvider.d.ts +1 -1
  57. package/build/components/Radio/Radio.d.ts +1 -1
  58. package/build/components/RadioGroup/RadioGroup.d.ts +1 -1
  59. package/build/components/RadioLabel/RadioLabel.d.ts +1 -1
  60. package/build/components/SimpleList/SimpleList.d.ts +1 -1
  61. package/build/components/Slide/Slide.d.ts +1 -1
  62. package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +1 -1
  63. package/build/components/Text/Text.d.ts +1 -1
  64. package/build/components/ToggleButton/ToggleButton.d.ts +1 -1
  65. package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
  66. package/build/components/Tooltip/Tooltip.d.ts +1 -1
  67. package/build/components/Warning/Warning.d.ts +1 -1
  68. package/build/constants/app.d.ts +2 -1
  69. package/build/constants/app.js +35 -12
  70. package/build/constants/assets.d.ts +2 -0
  71. package/build/constants/assets.js +2 -0
  72. package/build/features/app/auth/authStore.d.ts +195 -25
  73. package/build/features/app/auth/authStore.js +70 -127
  74. package/build/features/app/bank/bankStore.d.ts +93 -12
  75. package/build/features/app/bank/bankStore.js +1 -1
  76. package/build/features/app/board/boardStore.d.ts +41 -5
  77. package/build/features/app/board/boardStore.js +1 -1
  78. package/build/features/app/brand/brandStore.d.ts +143 -17
  79. package/build/features/app/brand/brandStore.js +1 -1
  80. package/build/features/app/business/businessStore.d.ts +168 -19
  81. package/build/features/app/business/businessStore.js +59 -45
  82. package/build/features/app/connect/connectStore.d.ts +160 -18
  83. package/build/features/app/connect/connectStore.js +152 -83
  84. package/build/features/app/connectExpress/connectExpressStore.d.ts +269 -40
  85. package/build/features/app/connectExpress/connectExpressStore.js +166 -259
  86. package/build/features/app/entity/entityStore.d.ts +93 -12
  87. package/build/features/app/entity/entityStore.js +1 -1
  88. package/build/features/app/individual/individualStore.d.ts +186 -24
  89. package/build/features/app/individual/individualStore.js +5 -2
  90. package/build/features/app/password/passwordStore.d.ts +123 -15
  91. package/build/features/app/password/passwordStore.js +1 -1
  92. package/build/features/app/signIn/signInStore.d.ts +61 -7
  93. package/build/features/app/signIn/signInStore.js +1 -1
  94. package/build/features/app/tax/taxStore.d.ts +83 -11
  95. package/build/features/app/tax/taxStore.js +1 -1
  96. package/build/features/auth/Auth.d.ts +1 -4
  97. package/build/features/auth/Auth.js +8 -8
  98. package/build/features/auth/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +1 -1
  99. package/build/features/auth/screens/AccountNotFound/AccountNotFound.d.ts +1 -1
  100. package/build/features/auth/screens/AuthMerchant/AuthMerchant.d.ts +1 -1
  101. package/build/features/auth/screens/AuthSwitch/AuthSwitch.d.ts +1 -1
  102. package/build/features/auth/screens/AuthSwitch/AuthSwitch.js +2 -2
  103. package/build/features/auth/screens/AuthenticationList/AuthenticationList.d.ts +1 -1
  104. package/build/features/auth/screens/AuthenticationList/BrandList.d.ts +1 -1
  105. package/build/features/auth/screens/AuthenticationList/EntityLegalName.d.ts +1 -2
  106. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +5 -27
  107. package/build/features/auth/screens/AuthenticationList/EntityList.d.ts +1 -1
  108. package/build/features/auth/screens/AuthenticationList/LicenseNumber.d.ts +1 -1
  109. package/build/features/auth/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
  110. package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +1 -1
  111. package/build/features/auth/screens/CivilID/CivilID.d.ts +1 -1
  112. package/build/features/auth/screens/Email/Email.d.ts +1 -1
  113. package/build/features/auth/screens/EmailSent/EmailSent.d.ts +1 -1
  114. package/build/features/auth/screens/MigratingData/MigratingData.d.ts +1 -1
  115. package/build/features/auth/screens/Mobile/Mobile.d.ts +1 -1
  116. package/build/features/auth/screens/NID/IDNumber.js +1 -1
  117. package/build/features/auth/screens/NID/NID.d.ts +1 -1
  118. package/build/features/auth/screens/NID/NID.js +4 -10
  119. package/build/features/auth/screens/NID/validation.d.ts +0 -3
  120. package/build/features/auth/screens/NID/validation.js +0 -1
  121. package/build/features/auth/screens/OTP/OTP.d.ts +1 -1
  122. package/build/features/auth/screens/OTP/OTP.js +1 -5
  123. package/build/features/auth/screens/OTP/OTPInput.d.ts +1 -1
  124. package/build/features/auth/screens/OTP/OTPInput.js +2 -13
  125. package/build/features/auth/screens/OperatorError/OperatorError.d.ts +1 -1
  126. package/build/features/auth/screens/Password/Password.d.ts +1 -1
  127. package/build/features/auth/screens/Password/PasswordField.d.ts +1 -1
  128. package/build/features/auth/screens/PreparingData/PreparingData.d.ts +1 -1
  129. package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.d.ts +1 -1
  130. package/build/features/auth/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  131. package/build/features/auth/screens/VerifyNafath/VerifyNafath.js +34 -0
  132. package/build/features/auth/screens/VerifyNafath/index.d.ts +3 -0
  133. package/build/features/auth/screens/VerifyNafath/index.js +2 -0
  134. package/build/features/auth/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  135. package/build/features/bank/Bank.d.ts +1 -2
  136. package/build/features/bank/Bank.js +5 -3
  137. package/build/features/bank/screens/BankDetails/BankDetails.d.ts +1 -2
  138. package/build/features/bank/screens/BankDetails/BankName.d.ts +2 -3
  139. package/build/features/bank/screens/BankDetails/BankStatement.d.ts +2 -3
  140. package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +1 -2
  141. package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +2 -3
  142. package/build/features/bank/screens/BankDetails/IBAN.d.ts +1 -2
  143. package/build/features/bank/screens/BankDetails/IBAN.js +1 -1
  144. package/build/features/bank/screens/OperatorError/OperatorError.d.ts +1 -1
  145. package/build/features/bank/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  146. package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  147. package/build/features/bank/screens/Success/Success.d.ts +1 -1
  148. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  149. package/build/features/bank/screens/Verify/OTPInput.d.ts +1 -1
  150. package/build/features/bank/screens/Verify/Verify.d.ts +1 -1
  151. package/build/features/board/Board.d.ts +1 -2
  152. package/build/features/board/Board.js +5 -3
  153. package/build/features/board/screens/OperatorError/OperatorError.d.ts +1 -1
  154. package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  155. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  156. package/build/features/board/screens/Verify/OTPInput.d.ts +1 -1
  157. package/build/features/board/screens/Verify/Verify.d.ts +1 -1
  158. package/build/features/brand/Brand.d.ts +1 -2
  159. package/build/features/brand/Brand.js +5 -3
  160. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +15 -58
  161. package/build/features/brand/screens/BrandActivities/BrandActivities.d.ts +1 -2
  162. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +13 -37
  163. package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +1 -2
  164. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +1 -2
  165. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +10 -31
  166. package/build/features/brand/screens/BrandActivities/TAC.d.ts +3 -8
  167. package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +2 -3
  168. package/build/features/brand/screens/BrandInfo/BrandInfo.d.ts +1 -2
  169. package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +2 -3
  170. package/build/features/brand/screens/BrandInfo/BrandName.d.ts +1 -1
  171. package/build/features/brand/screens/BrandInfo/BrandName.js +1 -1
  172. package/build/features/brand/screens/BrandInfo/SalesChannels.d.ts +1 -2
  173. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.d.ts +1 -2
  174. package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.d.ts +1 -2
  175. package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.d.ts +1 -2
  176. package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.d.ts +1 -2
  177. package/build/features/brand/screens/BrandSegmentInfo/TeamSize.d.ts +1 -2
  178. package/build/features/brand/screens/OperatorError/OperatorError.d.ts +1 -1
  179. package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  180. package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  181. package/build/features/brand/screens/Success/Success.d.ts +1 -1
  182. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  183. package/build/features/brand/screens/Verify/OTPInput.d.ts +1 -1
  184. package/build/features/brand/screens/Verify/Verify.d.ts +1 -1
  185. package/build/features/business/Business.d.ts +1 -2
  186. package/build/features/business/Business.js +5 -3
  187. package/build/features/business/screens/Activities/Activities.d.ts +1 -2
  188. package/build/features/business/screens/Activities/ActivitiesList.d.ts +9 -25
  189. package/build/features/business/screens/Activities/LicenseName.d.ts +1 -1
  190. package/build/features/business/screens/Activities/OperationStartDate.d.ts +5 -13
  191. package/build/features/business/screens/BrandDetails/BrandDetails.d.ts +1 -1
  192. package/build/features/business/screens/BrandDetails/BrandName.d.ts +1 -1
  193. package/build/features/business/screens/BrandDetails/Header.d.ts +1 -1
  194. package/build/features/business/screens/BrandDetails/LicenseInfo.d.ts +1 -1
  195. package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +5 -13
  196. package/build/features/business/screens/BusinessType/Article.d.ts +2 -3
  197. package/build/features/business/screens/BusinessType/BusinessType.d.ts +1 -1
  198. package/build/features/business/screens/BusinessType/EntityLicenseList.d.ts +1 -1
  199. package/build/features/business/screens/BusinessType/EntityName.d.ts +1 -2
  200. package/build/features/business/screens/BusinessType/LicenseCertificate.d.ts +1 -2
  201. package/build/features/business/screens/BusinessType/LicenseList.d.ts +1 -1
  202. package/build/features/business/screens/BusinessType/LicenseNumber.d.ts +1 -1
  203. package/build/features/business/screens/BusinessType/LicenseType.d.ts +6 -28
  204. package/build/features/business/screens/BusinessType/SelectType.d.ts +1 -1
  205. package/build/features/business/screens/BusinessType/Switch.d.ts +1 -1
  206. package/build/features/business/screens/CivilID/CivilID.d.ts +1 -1
  207. package/build/features/business/screens/Customers/CustomerLocations.d.ts +19 -70
  208. package/build/features/business/screens/Customers/Customers.d.ts +1 -1
  209. package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +1 -2
  210. package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +1 -2
  211. package/build/features/business/screens/Customers/RefundPolicy.d.ts +10 -31
  212. package/build/features/business/screens/Customers/TransactionPolicy.d.ts +2 -3
  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 +5 -0
  223. package/build/features/business/screens/VerifyNafath/VerifyNafath.js +34 -0
  224. package/build/features/business/screens/VerifyNafath/index.d.ts +3 -0
  225. package/build/features/business/screens/VerifyNafath/index.js +2 -0
  226. package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  227. package/build/features/connect/Connect.d.ts +1 -2
  228. package/build/features/connect/Connect.js +6 -5
  229. package/build/features/connect/screens/BrandSegment/BrandSegment.d.ts +1 -1
  230. package/build/features/connect/screens/BrandSegment/TeamSize.d.ts +1 -2
  231. package/build/features/connect/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
  232. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +1 -1
  233. package/build/features/connect/screens/CivilID/CivilID.d.ts +1 -1
  234. package/build/features/connect/screens/Individual/Email.d.ts +1 -1
  235. package/build/features/connect/screens/Individual/Email.js +1 -1
  236. package/build/features/connect/screens/Individual/Individual.d.ts +1 -1
  237. package/build/features/connect/screens/Individual/Name.d.ts +1 -1
  238. package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
  239. package/build/features/connect/screens/Merchant/BrandName.d.ts +1 -1
  240. package/build/features/connect/screens/Merchant/BrandName.js +1 -1
  241. package/build/features/connect/screens/Merchant/Merchant.d.ts +1 -1
  242. package/build/features/connect/screens/Merchant/SalesChannels.d.ts +1 -2
  243. package/build/features/connect/screens/Merchant/TAC.d.ts +1 -1
  244. package/build/features/connect/screens/Mobile/Mobile.d.ts +1 -1
  245. package/build/features/connect/screens/Mobile/Mobile.js +2 -2
  246. package/build/features/connect/screens/Mobile/Title.d.ts +1 -1
  247. package/build/features/connect/screens/NID/IDNumber.d.ts +1 -0
  248. package/build/features/connect/screens/NID/IDNumber.js +2 -2
  249. package/build/features/connect/screens/NID/NID.d.ts +1 -1
  250. package/build/features/connect/screens/NID/NID.js +5 -11
  251. package/build/features/connect/screens/NID/validation.d.ts +0 -3
  252. package/build/features/connect/screens/NID/validation.js +0 -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/OTP/OTPInput.js +3 -11
  256. package/build/features/connect/screens/OperatorError/OperatorError.d.ts +1 -1
  257. package/build/features/connect/screens/ThankYou/ThankYou.d.ts +1 -1
  258. package/build/features/connect/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  259. package/build/features/connect/screens/VerifyNafath/VerifyNafath.js +34 -0
  260. package/build/features/connect/screens/VerifyNafath/index.d.ts +3 -0
  261. package/build/features/connect/screens/VerifyNafath/index.js +2 -0
  262. package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  263. package/build/features/connectExpress/ConnectExpress.d.ts +1 -2
  264. package/build/features/connectExpress/ConnectExpress.js +6 -5
  265. package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.d.ts +1 -1
  266. package/build/features/connectExpress/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +1 -1
  267. package/build/features/connectExpress/screens/AuthMerchant/AuthMerchant.d.ts +1 -1
  268. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.d.ts +1 -1
  269. package/build/features/connectExpress/screens/AuthenticationList/BrandList.d.ts +1 -1
  270. package/build/features/connectExpress/screens/AuthenticationList/EntityLegalName.d.ts +1 -2
  271. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +5 -27
  272. package/build/features/connectExpress/screens/AuthenticationList/EntityList.d.ts +1 -1
  273. package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.d.ts +1 -1
  274. package/build/features/connectExpress/screens/Brand/Brand.d.ts +1 -1
  275. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
  276. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +1 -1
  277. package/build/features/connectExpress/screens/CivilID/CivilID.d.ts +1 -1
  278. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.d.ts +1 -1
  279. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.d.ts +1 -1
  280. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +1 -1
  281. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.d.ts +1 -1
  282. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.d.ts +1 -1
  283. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.d.ts +1 -1
  284. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +6 -28
  285. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +3 -8
  286. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.d.ts +1 -1
  287. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.d.ts +1 -1
  288. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +1 -1
  289. package/build/features/connectExpress/screens/CollectIndividualInfo/Name.d.ts +1 -1
  290. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.d.ts +1 -1
  291. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.d.ts +5 -0
  292. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.js +34 -0
  293. package/build/features/connectExpress/screens/IdentityVerifyNafath/index.d.ts +3 -0
  294. package/build/features/connectExpress/screens/IdentityVerifyNafath/index.js +2 -0
  295. package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.d.ts +1 -1
  296. package/build/features/connectExpress/screens/Mobile/Mobile.d.ts +1 -1
  297. package/build/features/connectExpress/screens/Mobile/Mobile.js +2 -2
  298. package/build/features/connectExpress/screens/Mobile/TAC.d.ts +1 -1
  299. package/build/features/connectExpress/screens/Mobile/Title.d.ts +1 -1
  300. package/build/features/connectExpress/screens/NID/IDNumber.d.ts +1 -0
  301. package/build/features/connectExpress/screens/NID/IDNumber.js +2 -2
  302. package/build/features/connectExpress/screens/NID/NID.d.ts +1 -1
  303. package/build/features/connectExpress/screens/NID/NID.js +4 -9
  304. package/build/features/connectExpress/screens/NID/TAC.d.ts +3 -8
  305. package/build/features/connectExpress/screens/NID/validation.d.ts +0 -3
  306. package/build/features/connectExpress/screens/NID/validation.js +0 -2
  307. package/build/features/connectExpress/screens/NIDMissed/DOB.d.ts +1 -2
  308. package/build/features/connectExpress/screens/NIDMissed/NID.d.ts +1 -1
  309. package/build/features/connectExpress/screens/NIDMissed/NID.js +2 -2
  310. package/build/features/connectExpress/screens/OTP/OTP.d.ts +1 -1
  311. package/build/features/connectExpress/screens/OTP/OTP.js +5 -13
  312. package/build/features/connectExpress/screens/OTP/OTPInput.d.ts +1 -1
  313. package/build/features/connectExpress/screens/OTP/OTPInput.js +3 -11
  314. package/build/features/connectExpress/screens/OperatorError/OperatorError.d.ts +1 -1
  315. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.d.ts +1 -1
  316. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  317. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  318. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.js +34 -0
  319. package/build/features/connectExpress/screens/VerifyNafath/index.d.ts +3 -0
  320. package/build/features/connectExpress/screens/VerifyNafath/index.js +2 -0
  321. package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  322. package/build/features/entity/Entity.d.ts +1 -2
  323. package/build/features/entity/Entity.js +5 -3
  324. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +9 -25
  325. package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +1 -1
  326. package/build/features/entity/screens/EntityCapital/CapitalShareCount.d.ts +1 -1
  327. package/build/features/entity/screens/EntityCapital/CapitalShareValue.d.ts +1 -1
  328. package/build/features/entity/screens/EntityCapital/EntityCapital.d.ts +1 -2
  329. package/build/features/entity/screens/EntityName/Article.d.ts +2 -3
  330. package/build/features/entity/screens/EntityName/EntityName.d.ts +1 -2
  331. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +15 -58
  332. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +5 -13
  333. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +5 -13
  334. package/build/features/entity/screens/EntityName/LegalName.d.ts +1 -1
  335. package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +1 -2
  336. package/build/features/entity/screens/EntityName/LicenseNumber.d.ts +1 -1
  337. package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +1 -1
  338. package/build/features/entity/screens/OperatorError/OperatorError.d.ts +1 -1
  339. package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  340. package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  341. package/build/features/entity/screens/Success/Success.d.ts +1 -1
  342. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  343. package/build/features/entity/screens/Verify/OTPInput.d.ts +1 -1
  344. package/build/features/entity/screens/Verify/Verify.d.ts +1 -1
  345. package/build/features/featuresScreens.js +21 -6
  346. package/build/features/individual/Individual.d.ts +1 -2
  347. package/build/features/individual/Individual.js +5 -3
  348. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +5 -13
  349. package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +2 -3
  350. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +1 -1
  351. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +5 -27
  352. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
  353. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -2
  354. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +5 -27
  355. package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.d.ts +1 -1
  356. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.d.ts +1 -1
  357. package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +1 -2
  358. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
  359. package/build/features/individual/screens/IndividualList/CollectPhoneEmail.d.ts +1 -1
  360. package/build/features/individual/screens/IndividualList/Email.d.ts +1 -1
  361. package/build/features/individual/screens/IndividualList/Email.js +1 -1
  362. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +9 -25
  363. package/build/features/individual/screens/IndividualList/UserList.d.ts +1 -2
  364. package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +1 -1
  365. package/build/features/individual/screens/IndividualPersonalInfo/Email.d.ts +1 -1
  366. package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +1 -1
  367. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +6 -28
  368. package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +1 -1
  369. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +5 -13
  370. package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +1 -1
  371. package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.d.ts +1 -1
  372. package/build/features/individual/screens/OperatorError/OperatorError.d.ts +1 -1
  373. package/build/features/individual/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  374. package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  375. package/build/features/individual/screens/Success/Success.d.ts +1 -1
  376. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  377. package/build/features/individual/screens/Verify/OTPInput.d.ts +1 -1
  378. package/build/features/individual/screens/Verify/Verify.d.ts +1 -1
  379. package/build/features/password/Password.d.ts +1 -2
  380. package/build/features/password/Password.js +6 -4
  381. package/build/features/password/screens/CreatePassword/ConditionText.d.ts +1 -2
  382. package/build/features/password/screens/CreatePassword/ConfirmPassword.d.ts +1 -1
  383. package/build/features/password/screens/CreatePassword/CreatePassword.d.ts +1 -1
  384. package/build/features/password/screens/CreatePassword/Password.d.ts +1 -1
  385. package/build/features/password/screens/CreatePassword/PasswordBar.d.ts +1 -2
  386. package/build/features/password/screens/OTP/OTP.d.ts +1 -1
  387. package/build/features/password/screens/OTP/OTPInput.d.ts +1 -1
  388. package/build/features/password/screens/OperatorError/OperatorError.d.ts +1 -1
  389. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  390. package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  391. package/build/features/password/screens/Success/Success.d.ts +1 -1
  392. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  393. package/build/features/password/screens/Verify/OTPInput.d.ts +1 -1
  394. package/build/features/password/screens/Verify/Verify.d.ts +1 -1
  395. package/build/features/shared/AcceptancePayouts/AcceptancePayouts.d.ts +1 -2
  396. package/build/features/shared/Address/Address.d.ts +1 -2
  397. package/build/features/shared/Address/CountryList.d.ts +14 -46
  398. package/build/features/shared/Address/InputSelect.d.ts +14 -46
  399. package/build/features/shared/Address/InputSelect.js +1 -1
  400. package/build/features/shared/Address/InputText.d.ts +1 -1
  401. package/build/features/shared/Background/Background.d.ts +1 -1
  402. package/build/features/shared/Background/LogoBackground.d.ts +1 -1
  403. package/build/features/shared/BouncingDotsLoader/BouncingDotsLoader.d.ts +1 -2
  404. package/build/features/shared/BusinessCountry/BusinessCountry.d.ts +1 -2
  405. package/build/features/shared/BusinessCountry/BusinessCountry.js +1 -1
  406. package/build/features/shared/Button/Button.d.ts +1 -2
  407. package/build/features/shared/Button/EmailProvidersButtons.d.ts +2 -3
  408. package/build/features/shared/Button/FlowsButtons.d.ts +2 -3
  409. package/build/features/shared/Button/FlowsButtons.js +1 -1
  410. package/build/features/shared/Button/IndividualActionButtons.d.ts +2 -2
  411. package/build/features/shared/Button/MobileButton.d.ts +1 -2
  412. package/build/features/shared/Button/NafathButton.d.ts +7 -0
  413. package/build/features/shared/Button/{AbsherButton.js → NafathButton.js} +13 -3
  414. package/build/features/shared/Button/SuccessButton.d.ts +1 -2
  415. package/build/features/shared/Button/index.d.ts +2 -2
  416. package/build/features/shared/Button/index.js +2 -2
  417. package/build/features/shared/Calender/Calender.d.ts +1 -2
  418. package/build/features/shared/CheckIcon/CheckIcon.d.ts +2 -3
  419. package/build/features/shared/Chip/Chip.d.ts +1 -2
  420. package/build/features/shared/ClearIcon/ClearIcon.d.ts +1 -2
  421. package/build/features/shared/Containers/FeatureContainer.d.ts +1 -1
  422. package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
  423. package/build/features/shared/CreateAccountLoading/CreateAccountLoading.d.ts +1 -1
  424. package/build/features/shared/DataLoading/DataLoading.d.ts +1 -1
  425. package/build/features/shared/Dialog/CloseDialog.d.ts +1 -2
  426. package/build/features/shared/Dialog/DialogContainer.d.ts +1 -1
  427. package/build/features/shared/Dot/Dot.d.ts +1 -2
  428. package/build/features/shared/EndAdornment/EndAdornment.d.ts +1 -2
  429. package/build/features/shared/EndAdornment/EndAdornmentExpanded.d.ts +1 -2
  430. package/build/features/shared/Footer/Footer.d.ts +1 -2
  431. package/build/features/shared/Footer/PoweredByFooter.d.ts +2 -3
  432. package/build/features/shared/GenericError/GenericError.d.ts +1 -1
  433. package/build/features/shared/Input/Input.d.ts +6 -14
  434. package/build/features/shared/InputSelect/InputSelect.d.ts +1 -2
  435. package/build/features/shared/Mandatory/Mandatory.d.ts +1 -2
  436. package/build/features/shared/NafathVerification/NafathVerification.d.ts +13 -0
  437. package/build/features/shared/NafathVerification/NafathVerification.js +92 -0
  438. package/build/features/shared/NafathVerification/VerifyNafathLoading.d.ts +8 -0
  439. package/build/features/shared/NafathVerification/VerifyNafathLoading.js +53 -0
  440. package/build/features/shared/NafathVerification/VerifyNafathSuccess.d.ts +5 -0
  441. package/build/features/shared/NafathVerification/VerifyNafathSuccess.js +8 -0
  442. package/build/features/shared/NafathVerification/index.d.ts +2 -0
  443. package/build/features/shared/NafathVerification/index.js +2 -0
  444. package/build/features/shared/OTP/OTP.d.ts +1 -1
  445. package/build/features/shared/PaciVerification/PaciVerification.d.ts +1 -1
  446. package/build/features/shared/PasswordIcon/PasswordIcon.d.ts +1 -2
  447. package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +1 -2
  448. package/build/features/shared/SalesChannels/SalesChannel.d.ts +1 -1
  449. package/build/features/shared/Search/Search.d.ts +1 -2
  450. package/build/features/shared/SearchIcon/SearchIcon.d.ts +1 -2
  451. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +1 -1
  452. package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +1 -1
  453. package/build/features/shared/UploadFile/FileUpload.d.ts +4 -9
  454. package/build/features/shared/UploadFile/FileUpload.js +1 -1
  455. package/build/features/shared/UploadFile/UploadFile.d.ts +3 -8
  456. package/build/features/shared/UploadFile/UploadWrapper.d.ts +3 -8
  457. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +4 -9
  458. package/build/features/shared/UploadMultipleFile/UploadFile.js +1 -1
  459. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +3 -8
  460. package/build/features/signIn/SignIn.d.ts +1 -2
  461. package/build/features/signIn/SignIn.js +5 -3
  462. package/build/features/signIn/screens/Email/Email.d.ts +1 -1
  463. package/build/features/signIn/screens/Mobile/Mobile.d.ts +1 -1
  464. package/build/features/signIn/screens/OTP/OTP.d.ts +1 -1
  465. package/build/features/signIn/screens/OTP/OTPInput.d.ts +1 -1
  466. package/build/features/signIn/screens/OperatorError/OperatorError.d.ts +1 -1
  467. package/build/features/signIn/screens/Password/Password.d.ts +1 -1
  468. package/build/features/signIn/screens/Password/PasswordInput.d.ts +1 -1
  469. package/build/features/tax/Tax.d.ts +1 -2
  470. package/build/features/tax/Tax.js +5 -3
  471. package/build/features/tax/screens/OperatorError/OperatorError.d.ts +1 -1
  472. package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  473. package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  474. package/build/features/tax/screens/Success/Success.d.ts +1 -1
  475. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  476. package/build/features/tax/screens/TaxDetails/ConfirmPolicy.d.ts +2 -3
  477. package/build/features/tax/screens/TaxDetails/TaxDetails.d.ts +1 -2
  478. package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +1 -2
  479. package/build/features/tax/screens/TaxDetails/VATId.d.ts +2 -3
  480. package/build/features/tax/screens/Verify/OTPInput.d.ts +1 -1
  481. package/build/features/tax/screens/Verify/Verify.d.ts +1 -1
  482. package/build/hooks/useAppConfig.js +1 -1
  483. package/build/hooks/useDataVerified.d.ts +1 -1
  484. package/build/hooks/useExcludeReadOnlyFelids.d.ts +2 -2
  485. package/build/hooks/useFormDirtyCheck.d.ts +3 -3
  486. package/build/hooks/useFormErrorAndUpdateReadOnly.d.ts +2 -2
  487. package/build/hooks/useFormReadOnly.d.ts +2 -2
  488. package/build/hooks/useSetFromDefaultValues.d.ts +1 -1
  489. package/build/theme/palette.js +2 -1
  490. package/build/utils/array.js +1 -1
  491. package/package.json +1 -1
  492. package/build/features/auth/screens/NID/DOB.d.ts +0 -7
  493. package/build/features/auth/screens/NID/DOB.js +0 -47
  494. package/build/features/business/screens/OTP/OTP.d.ts +0 -8
  495. package/build/features/business/screens/OTP/OTP.js +0 -90
  496. package/build/features/business/screens/OTP/OTPInput.d.ts +0 -5
  497. package/build/features/business/screens/OTP/OTPInput.js +0 -49
  498. package/build/features/business/screens/OTP/index.d.ts +0 -3
  499. package/build/features/business/screens/OTP/index.js +0 -2
  500. package/build/features/business/screens/OTP/validation.d.ts +0 -8
  501. package/build/features/business/screens/OTP/validation.js +0 -4
  502. package/build/features/connect/screens/NID/DOB.d.ts +0 -6
  503. package/build/features/connect/screens/NID/DOB.js +0 -47
  504. package/build/features/connectExpress/screens/IdentityOTP/OTP.d.ts +0 -5
  505. package/build/features/connectExpress/screens/IdentityOTP/OTP.js +0 -88
  506. package/build/features/connectExpress/screens/IdentityOTP/OTPInput.d.ts +0 -5
  507. package/build/features/connectExpress/screens/IdentityOTP/OTPInput.js +0 -56
  508. package/build/features/connectExpress/screens/IdentityOTP/index.d.ts +0 -3
  509. package/build/features/connectExpress/screens/IdentityOTP/index.js +0 -2
  510. package/build/features/connectExpress/screens/IdentityOTP/validation.d.ts +0 -8
  511. package/build/features/connectExpress/screens/IdentityOTP/validation.js +0 -4
  512. package/build/features/connectExpress/screens/NID/DOB.d.ts +0 -7
  513. package/build/features/connectExpress/screens/NID/DOB.js +0 -47
  514. package/build/features/shared/Button/AbsherButton.d.ts +0 -8
@@ -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 (_) try {
27
+ while (g && (g = 0, op[0] && (_ = 0)), _) 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, defaultCountry } from '../../../constants';
60
+ import { ADD_NEW_ENTITY, AUTH_STEP_NAMES, IDENTIFICATION_TYPE, 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';
@@ -365,123 +365,76 @@ export var verifyEmailOtp = createAsyncThunk('auth/verifyEmailOtp', function (pa
365
365
  }
366
366
  });
367
367
  }); });
368
- export var createNIDAuth = createAsyncThunk('auth/createNIDAuth', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
369
- var _a, settings, auth, dob, nid, nidType, countryCode, requestBody, data;
370
- var _b, _c;
371
- return __generator(this, function (_d) {
372
- switch (_d.label) {
368
+ export var createNafathAuth = createAsyncThunk('auth/createNafathAuth', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
369
+ var settings, requestBody, data;
370
+ var _a, _b;
371
+ return __generator(this, function (_c) {
372
+ switch (_c.label) {
373
373
  case 0:
374
- _a = thunkApi.getState(), settings = _a.settings, auth = _a.auth;
375
- dob = params.dob, nid = params.nid;
376
- nidType = nid.startsWith('1') ? IDENTIFICATION_TYPE.NID : IDENTIFICATION_TYPE.IQAMA;
377
- countryCode = settings.data.businessCountry.iso2;
374
+ settings = thunkApi.getState().settings;
378
375
  requestBody = {
379
- country: countryCode,
376
+ country: settings.data.businessCountry.iso2,
380
377
  scope: settings.data.appConfig.scope,
381
378
  lang: settings.data.language,
382
- lead_id: auth.data.leadId,
383
379
  user_credentail: {
384
- identification_id: nid,
385
- identification_id_type: nidType,
386
- date_of_birth: dob,
387
- country_code: countryCode
380
+ identification_id: params.nid,
381
+ identification_id_type: IDENTIFICATION_TYPE.NAFATH,
382
+ country_code: settings.data.businessCountry.iso2
388
383
  },
389
384
  sign_in: false,
390
385
  is_lead: true,
391
386
  step_name: AUTH_STEP_NAMES.CREATE_AUTH_NID,
392
- encryption_contract: [
393
- 'user_credentail.country_code',
394
- 'user_credentail.identification_id',
395
- 'user_credentail.identification_id_type',
396
- 'user_credentail.date_of_birth'
397
- ]
387
+ encryption_contract: ['user_credentail.country_code', 'user_credentail.identification_id', 'user_credentail.identification_id_type']
398
388
  };
399
- return [4, API.authService.createAuth(requestBody)];
389
+ return [4, API.authService.createAuthKitNID(requestBody)];
400
390
  case 1:
401
- data = _d.sent();
391
+ data = _c.sent();
402
392
  thunkApi.dispatch(handleNextScreenStep());
403
- (_c = (_b = settings.data.appConfig).onStepCompleted) === null || _c === void 0 ? void 0 : _c.call(_b, settings.data.activeScreen.name, requestBody.user_credentail);
404
- return [2, { response: data, formData: params }];
405
- }
406
- });
407
- }); });
408
- export var resendNIDAuthOTP = createAsyncThunk('auth/resendNIDAuthOTP', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
409
- var _a, settings, auth, dob, nid, nidType, countryCode, requestBody, data;
410
- return __generator(this, function (_b) {
411
- switch (_b.label) {
412
- case 0:
413
- _a = thunkApi.getState(), settings = _a.settings, auth = _a.auth;
414
- dob = params.dob, nid = params.nid;
415
- nidType = nid.startsWith('1') ? IDENTIFICATION_TYPE.NID : IDENTIFICATION_TYPE.IQAMA;
416
- countryCode = settings.data.businessCountry.iso2;
417
- requestBody = {
418
- country: countryCode,
419
- scope: settings.data.appConfig.scope,
420
- lang: settings.data.language,
421
- lead_id: auth.data.leadId,
422
- user_credentail: {
423
- identification_id: nid,
424
- identification_id_type: nidType,
425
- date_of_birth: dob,
426
- country_code: countryCode
427
- },
428
- sign_in: false,
429
- is_lead: true,
430
- step_name: AUTH_STEP_NAMES.CREATE_AUTH_NID,
431
- encryption_contract: [
432
- 'user_credentail.country_code',
433
- 'user_credentail.identification_id',
434
- 'user_credentail.identification_id_type',
435
- 'user_credentail.date_of_birth'
436
- ]
437
- };
438
- return [4, API.authService.createAuth(requestBody)];
439
- case 1:
440
- data = _b.sent();
393
+ (_b = (_a = settings.data.appConfig).onStepCompleted) === null || _b === void 0 ? void 0 : _b.call(_a, settings.data.activeScreen.name, requestBody);
441
394
  return [2, { response: data, formData: params }];
442
395
  }
443
396
  });
444
397
  }); });
445
- export var verifyNIDOtp = createAsyncThunk('auth/verifyNIDOtp', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
446
- var _a, settings, auth, _b, responseData, leadId, _c, auth_token, device_token, service_name, auth_type, sign_in, scope, payload, data;
447
- var _d, _e, _f, _g;
448
- return __generator(this, function (_h) {
449
- switch (_h.label) {
398
+ export var verifyNafath = createAsyncThunk('auth/verifyNafath', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
399
+ var _a, settings, auth, authResponse, expiry, scope, interval, maxCalls, count, data, isSuccess;
400
+ var _b, _c, _d;
401
+ return __generator(this, function (_e) {
402
+ switch (_e.label) {
450
403
  case 0:
451
404
  _a = thunkApi.getState(), settings = _a.settings, auth = _a.auth;
452
- _b = auth.data || {}, responseData = _b.responseData, leadId = _b.leadId;
453
- _c = (_d = responseData === null || responseData === void 0 ? void 0 : responseData.authResponse) !== null && _d !== void 0 ? _d : {}, auth_token = _c.auth_token, device_token = _c.device_token, service_name = _c.service_name, auth_type = _c.auth_type, sign_in = _c.sign_in;
454
- if (!auth_token)
455
- throw new Error('Auth token is missing');
405
+ authResponse = (auth.data.responseData || {}).authResponse;
406
+ expiry = (authResponse === null || authResponse === void 0 ? void 0 : authResponse.expiry) || 120;
456
407
  scope = settings.data.appConfig.scope;
457
- payload = {
458
- auth_token: auth_token,
459
- lead_id: leadId,
460
- data: params.otp,
461
- auth_type: auth_type,
462
- device_token: device_token,
463
- service_name: service_name || 'ABSHER',
464
- sign_in: sign_in,
465
- step_name: AUTH_STEP_NAMES.VERIFY_AUTH_NID,
466
- encryption_contract: ['data']
467
- };
468
- return [4, API.authService.verifyAuth(payload)];
408
+ interval = 3;
409
+ maxCalls = Math.floor(expiry / interval);
410
+ count = 1;
411
+ _e.label = 1;
469
412
  case 1:
470
- data = (_h.sent()).data;
471
- if ((_e = data.errors) === null || _e === void 0 ? void 0 : _e.length)
472
- throw new Error(data.errors[0].description);
473
- sendCustomEventToGTM({
474
- event: 'Send Event',
475
- event_category: 'User Registration Flow',
476
- event_action: 'First OTP Success'
477
- });
478
- if (scope === 'merchant') {
479
- openConnect(settings.data.appConfig.publicKey, settings.data.businessCountry.iso2);
413
+ if (!(count <= maxCalls)) return [3, 5];
414
+ if (thunkApi.signal.aborted) {
415
+ return [3, 5];
416
+ }
417
+ return [4, API.authService.getVerifyAuth(authResponse === null || authResponse === void 0 ? void 0 : authResponse.auth_token)];
418
+ case 2:
419
+ data = _e.sent();
420
+ isSuccess = ((_b = data.status) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === 'completed';
421
+ if (isSuccess) {
422
+ if (scope === 'merchant') {
423
+ openConnect(settings.data.appConfig.publicKey, settings.data.businessCountry.iso2);
424
+ return [2, data];
425
+ }
426
+ (_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, params);
427
+ sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('AUTH_PREPARING_DATA_STEP')); });
480
428
  return [2, data];
481
429
  }
482
- (_g = (_f = settings.data.appConfig).onStepCompleted) === null || _g === void 0 ? void 0 : _g.call(_f, settings.data.activeScreen.name, params);
483
- sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('AUTH_PREPARING_DATA_STEP')); });
484
- return [2, data];
430
+ return [4, sleep(interval * 1000)];
431
+ case 3:
432
+ _e.sent();
433
+ _e.label = 4;
434
+ case 4:
435
+ count++;
436
+ return [3, 1];
437
+ case 5: throw new Error('nafath_verification_failed');
485
438
  }
486
439
  });
487
440
  }); });
@@ -650,24 +603,22 @@ export var checkAccountAvailability = createAsyncThunk('auth/checkAccountAvailab
650
603
  export var getMerchantList = createAsyncThunk('auth/getMerchantList', function (_a, thunkApi) {
651
604
  var brandInfo = _a.brandInfo, entityInfo = _a.entityInfo;
652
605
  return __awaiter(void 0, void 0, void 0, function () {
653
- var _b, settings, auth, platforms, payment_provider, payload, merchants, list;
654
- var _c, _d, _e, _f, _g, _h;
655
- return __generator(this, function (_j) {
656
- switch (_j.label) {
606
+ var _b, settings, auth, platforms, payment_provider, isScopeAuthentication, leadId, payload, merchants, list;
607
+ var _c, _d, _e, _f, _g, _h, _j, _k;
608
+ return __generator(this, function (_l) {
609
+ switch (_l.label) {
657
610
  case 0:
658
611
  _b = thunkApi.getState(), settings = _b.settings, auth = _b.auth;
659
612
  platforms = (_e = (_d = (_c = auth.data.responseData) === null || _c === void 0 ? void 0 : _c.leadResponse) === null || _d === void 0 ? void 0 : _d.platforms) !== null && _e !== void 0 ? _e : settings.data.appConfig.platforms;
660
613
  payment_provider = (_h = (_g = (_f = auth.data.responseData) === null || _f === void 0 ? void 0 : _f.leadResponse) === null || _g === void 0 ? void 0 : _g.payment_provider) !== null && _h !== void 0 ? _h : settings.data.appConfig.paymentProvider;
661
- payload = {
662
- business_entity_id: (entityInfo === null || entityInfo === void 0 ? void 0 : entityInfo.id) || '',
663
- brand_id: (brandInfo === null || brandInfo === void 0 ? void 0 : brandInfo.id) || '',
664
- create_if_not_present: true,
665
- platforms: platforms,
666
- payment_provider: payment_provider
667
- };
614
+ isScopeAuthentication = settings.data.appConfig.scope === SCOPE_AUTH;
615
+ leadId = (_k = (_j = auth.data.responseData) === null || _j === void 0 ? void 0 : _j.authResponse) === null || _k === void 0 ? void 0 : _k.lead_id;
616
+ payload = __assign({ business_entity_id: (entityInfo === null || entityInfo === void 0 ? void 0 : entityInfo.id) || '', brand_id: (brandInfo === null || brandInfo === void 0 ? void 0 : brandInfo.id) || '', create_if_not_present: true, platforms: platforms, payment_provider: payment_provider }, (isScopeAuthentication && {
617
+ lead_id: leadId
618
+ }));
668
619
  return [4, API.entityService.getMerchantListUsingEntityId(payload)];
669
620
  case 1:
670
- merchants = (_j.sent()).merchants;
621
+ merchants = (_l.sent()).merchants;
671
622
  list = merchants || [];
672
623
  if ((list === null || list === void 0 ? void 0 : list.length) > 1) {
673
624
  thunkApi.dispatch(handleNextScreenStep('AUTH_MERCHANT_LIST_STEP'));
@@ -996,44 +947,36 @@ export var authSlice = createSlice({
996
947
  state.loading = false;
997
948
  state.error = action.error.message;
998
949
  })
999
- .addCase(createNIDAuth.pending, function (state) {
950
+ .addCase(createNafathAuth.pending, function (state) {
1000
951
  state.loading = true;
1001
952
  state.error = null;
1002
953
  })
1003
- .addCase(createNIDAuth.fulfilled, function (state, action) {
954
+ .addCase(createNafathAuth.fulfilled, function (state, action) {
1004
955
  state.loading = false;
1005
956
  state.data.nidData = action.payload.formData;
1006
957
  state.data.otpData.authFor = AuthForType.NATIONAL_ID;
1007
958
  state.data.responseData = __assign(__assign({}, state.data.responseData), { authResponse: action.payload.response });
1008
959
  })
1009
- .addCase(createNIDAuth.rejected, function (state, action) {
960
+ .addCase(createNafathAuth.rejected, function (state, action) {
1010
961
  state.loading = false;
1011
962
  state.error = action.error.message;
1012
963
  })
1013
- .addCase(resendNIDAuthOTP.pending, function (state) {
1014
- state.error = null;
1015
- })
1016
- .addCase(resendNIDAuthOTP.fulfilled, function (state, action) {
1017
- state.data.nidData = action.payload.formData;
1018
- state.data.otpData.authFor = AuthForType.NATIONAL_ID;
1019
- state.data.responseData = __assign(__assign({}, state.data.responseData), { authResponse: action.payload.response });
1020
- })
1021
- .addCase(resendNIDAuthOTP.rejected, function (state, action) {
1022
- state.error = action.error.message;
1023
- })
1024
- .addCase(verifyNIDOtp.pending, function (state) {
964
+ .addCase(verifyNafath.pending, function (state) {
1025
965
  state.loading = true;
1026
966
  state.error = null;
1027
967
  })
1028
- .addCase(verifyNIDOtp.fulfilled, function (state, action) {
968
+ .addCase(verifyNafath.fulfilled, function (state, action) {
1029
969
  var _a;
1030
970
  state.loading = false;
1031
971
  var data = action.payload;
1032
972
  state.data.responseData = __assign(__assign({}, state.data.responseData), { authResponse: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authResponse), data) });
1033
973
  })
1034
- .addCase(verifyNIDOtp.rejected, function (state, action) {
974
+ .addCase(verifyNafath.rejected, function (state, action) {
1035
975
  state.loading = false;
1036
- state.error = action.error.message;
976
+ var error = action.error.message;
977
+ if (error !== 'Aborted') {
978
+ state.error = error;
979
+ }
1037
980
  })
1038
981
  .addCase(createCivilIdAuth.pending, function (state) {
1039
982
  state.loading = true;
@@ -9,44 +9,125 @@ export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
9
9
  data: any;
10
10
  bankData: any;
11
11
  token: string;
12
- }, VerifyLeadTokenProps, {}>;
12
+ }, VerifyLeadTokenProps, {
13
+ state?: unknown;
14
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
15
+ extra?: unknown;
16
+ rejectValue?: unknown;
17
+ serializedErrorType?: unknown;
18
+ pendingMeta?: unknown;
19
+ fulfilledMeta?: unknown;
20
+ rejectedMeta?: unknown;
21
+ }>;
13
22
  export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
14
23
  data: any;
15
- }, void, {}>;
24
+ }, void, {
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
+ }>;
16
34
  export declare const verifyBankLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
17
35
  data: any;
18
36
  bankData: any;
19
37
  formData: OTPFormValues;
20
- }, OTPFormValues, {}>;
38
+ }, OTPFormValues, {
39
+ state?: unknown;
40
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
41
+ extra?: unknown;
42
+ rejectValue?: unknown;
43
+ serializedErrorType?: unknown;
44
+ pendingMeta?: unknown;
45
+ fulfilledMeta?: unknown;
46
+ rejectedMeta?: unknown;
47
+ }>;
21
48
  export declare const retrieveBoardStatus: import("@reduxjs/toolkit").AsyncThunk<{
22
49
  flows: any;
23
- }, void, {}>;
24
- declare type RetrieveBoardProps = {
50
+ }, void, {
51
+ state?: unknown;
52
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
53
+ extra?: unknown;
54
+ rejectValue?: unknown;
55
+ serializedErrorType?: unknown;
56
+ pendingMeta?: unknown;
57
+ fulfilledMeta?: unknown;
58
+ rejectedMeta?: unknown;
59
+ }>;
60
+ type RetrieveBoardProps = {
25
61
  boardId: string;
26
62
  individualId: string;
27
63
  individualType: string;
28
64
  };
29
- export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<any, RetrieveBoardProps, {}>;
65
+ export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<any, RetrieveBoardProps, {
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
+ }>;
30
75
  export declare const createBankAccount: import("@reduxjs/toolkit").AsyncThunk<{
31
76
  data: any;
32
77
  formData: BankFormValues;
33
- }, AsyncThunkParams<BankFormValues>, {}>;
78
+ }, AsyncThunkParams<BankFormValues>, {
79
+ state?: unknown;
80
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
81
+ extra?: unknown;
82
+ rejectValue?: unknown;
83
+ serializedErrorType?: unknown;
84
+ pendingMeta?: unknown;
85
+ fulfilledMeta?: unknown;
86
+ rejectedMeta?: unknown;
87
+ }>;
34
88
  export declare const checkIbanBank: import("@reduxjs/toolkit").AsyncThunk<{
35
89
  data: any;
36
90
  }, {
37
91
  iban: string;
38
92
  cancelToken: CancelToken;
39
93
  onSuccess?: (() => void) | undefined;
40
- }, {}>;
94
+ }, {
95
+ state?: unknown;
96
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
97
+ extra?: unknown;
98
+ rejectValue?: unknown;
99
+ serializedErrorType?: unknown;
100
+ pendingMeta?: unknown;
101
+ fulfilledMeta?: unknown;
102
+ rejectedMeta?: unknown;
103
+ }>;
41
104
  export declare const updateBoardSuccess: import("@reduxjs/toolkit").AsyncThunk<{
42
105
  data: any;
43
106
  flows?: undefined;
44
107
  } | {
45
108
  data: any;
46
109
  flows: any;
47
- } | undefined, void, {}>;
48
- export declare const onCloseCompleteBank: import("@reduxjs/toolkit").AsyncThunk<void, void, {}>;
49
- declare type VerifyData = {
110
+ } | undefined, void, {
111
+ state?: unknown;
112
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
113
+ extra?: unknown;
114
+ rejectValue?: unknown;
115
+ serializedErrorType?: unknown;
116
+ pendingMeta?: unknown;
117
+ fulfilledMeta?: unknown;
118
+ rejectedMeta?: unknown;
119
+ }>;
120
+ export declare const onCloseCompleteBank: import("@reduxjs/toolkit").AsyncThunk<void, void, {
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
+ type VerifyData = {
50
131
  token: string;
51
132
  };
52
133
  export interface BankData {
@@ -64,7 +145,7 @@ export declare const bankSlice: import("@reduxjs/toolkit").Slice<BankState, {
64
145
  resetOTPScreen: (state: BankState) => void;
65
146
  bankStatementUploadingStatus: (state: BankState, action: ActionState<boolean>) => void;
66
147
  }, "bank/store">;
67
- export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, bankStatementUploadingStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>;
148
+ export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"bank/store/clearError">, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"bank/store/stopLoader">, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"bank/store/resetOTPScreen">, bankStatementUploadingStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "bank/store/bankStatementUploadingStatus">;
68
149
  declare const _default: import("redux").Reducer<BankState, import("redux").AnyAction>;
69
150
  export default _default;
70
151
  export declare const bankSelector: (state: RootState) => BankState;
@@ -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 (_) try {
27
+ while (g && (g = 0, op[0] && (_ = 0)), _) 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]) {
@@ -1,19 +1,55 @@
1
1
  import { RootState } from '../../../app/store';
2
2
  import { FlowsTypes, OTPFormValues, ResponseData, SharedState } from '../../../@types';
3
- export declare const createVerifyTokenBy: import("@reduxjs/toolkit").AsyncThunk<any, string, {}>;
3
+ export declare const createVerifyTokenBy: 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
+ }>;
4
13
  export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
5
14
  data: any;
6
- }, void, {}>;
15
+ }, void, {
16
+ state?: unknown;
17
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
18
+ extra?: unknown;
19
+ rejectValue?: unknown;
20
+ serializedErrorType?: unknown;
21
+ pendingMeta?: unknown;
22
+ fulfilledMeta?: unknown;
23
+ rejectedMeta?: unknown;
24
+ }>;
7
25
  export declare const verifyBoardLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
8
26
  data: any;
9
27
  formData: OTPFormValues;
10
- }, OTPFormValues, {}>;
28
+ }, OTPFormValues, {
29
+ state?: unknown;
30
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
31
+ extra?: unknown;
32
+ rejectValue?: unknown;
33
+ serializedErrorType?: unknown;
34
+ pendingMeta?: unknown;
35
+ fulfilledMeta?: unknown;
36
+ rejectedMeta?: unknown;
37
+ }>;
11
38
  export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<{
12
39
  data: any;
13
40
  }, {
14
41
  boardId: string;
15
42
  boardInfoId: string;
16
- }, {}>;
43
+ }, {
44
+ state?: unknown;
45
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
46
+ extra?: unknown;
47
+ rejectValue?: unknown;
48
+ serializedErrorType?: unknown;
49
+ pendingMeta?: unknown;
50
+ fulfilledMeta?: unknown;
51
+ rejectedMeta?: unknown;
52
+ }>;
17
53
  export interface BoardData {
18
54
  verify: ResponseData;
19
55
  otpData: OTPFormValues & ResponseData;
@@ -27,7 +63,7 @@ export declare const boardSlice: import("@reduxjs/toolkit").Slice<BoardState, {
27
63
  stopLoader: (state: BoardState) => void;
28
64
  resetOTPScreen: (state: BoardState) => void;
29
65
  }, "bank/store">;
30
- export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
66
+ export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"bank/store/clearError">, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"bank/store/stopLoader">, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"bank/store/resetOTPScreen">;
31
67
  declare const _default: import("redux").Reducer<BoardState, import("redux").AnyAction>;
32
68
  export default _default;
33
69
  export declare const boardSelector: (state: RootState) => BoardState;
@@ -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 (_) try {
27
+ while (g && (g = 0, op[0] && (_ = 0)), _) 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]) {