@tap-payments/auth-jsconnect 2.0.44 → 2.0.45

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 (545) hide show
  1. package/README.md +34 -34
  2. package/build/@types/app.d.ts +70 -7
  3. package/build/@types/app.js +13 -0
  4. package/build/@types/form.d.ts +63 -34
  5. package/build/@types/theme.d.ts +1 -1
  6. package/build/api/account.d.ts +6 -1
  7. package/build/api/account.js +9 -1
  8. package/build/api/auth.d.ts +24 -18
  9. package/build/api/auth.js +25 -5
  10. package/build/api/availabilityServices.d.ts +3 -3
  11. package/build/api/axios.js +3 -3
  12. package/build/api/board.d.ts +4 -3
  13. package/build/api/board.js +8 -1
  14. package/build/api/brand.d.ts +1 -0
  15. package/build/api/brand.js +9 -1
  16. package/build/api/data.d.ts +16 -8
  17. package/build/api/data.js +16 -0
  18. package/build/api/entity.d.ts +46 -16
  19. package/build/api/entity.js +26 -16
  20. package/build/api/file.d.ts +13 -0
  21. package/build/api/file.js +24 -0
  22. package/build/api/index.d.ts +30 -8
  23. package/build/api/index.js +5 -3
  24. package/build/api/individual.d.ts +10 -4
  25. package/build/api/lead.d.ts +16 -10
  26. package/build/api/lead.js +17 -1
  27. package/build/api/location.d.ts +5 -0
  28. package/build/api/location.js +19 -0
  29. package/build/api/operator.d.ts +1 -1
  30. package/build/api/operator.js +1 -1
  31. package/build/api/user.d.ts +1 -1
  32. package/build/app/rootReducer.d.ts +2 -1
  33. package/build/app/rootReducer.js +4 -2
  34. package/build/app/settings.d.ts +17 -6
  35. package/build/app/settings.js +23 -19
  36. package/build/app/store.d.ts +8 -6
  37. package/build/assets/locales/ar.json +40 -1
  38. package/build/assets/locales/en.json +42 -1
  39. package/build/components/Button/Button.js +1 -5
  40. package/build/components/FileInput/DragAndDrop.d.ts +3 -2
  41. package/build/components/FileInput/DragAndDrop.js +5 -7
  42. package/build/components/Lottie/Lottie.d.ts +3536 -210
  43. package/build/components/Lottie/Lottie.js +11 -3
  44. package/build/components/Lottie/files/account_creating.json +732 -0
  45. package/build/components/Lottie/files/error.json +692 -0
  46. package/build/components/Lottie/files/start_loading.json +1140 -0
  47. package/build/components/Lottie/files/still_loading.json +1140 -0
  48. package/build/components/ProgressBar/CircularProgressBar.d.ts +3 -1
  49. package/build/components/ProgressBar/CircularProgressBar.js +2 -2
  50. package/build/components/Radio/Radio.js +1 -1
  51. package/build/components/RadioLabel/RadioLabel.d.ts +4 -2
  52. package/build/components/RadioLabel/RadioLabel.js +2 -2
  53. package/build/components/SimpleList/SimpleList.d.ts +2 -1
  54. package/build/components/SimpleList/SimpleList.js +22 -10
  55. package/build/components/Slide/Slide.d.ts +1 -1
  56. package/build/components/Tooltip/Tooltip.d.ts +1 -1
  57. package/build/components/Tooltip/Tooltip.js +12 -3
  58. package/build/constants/api.d.ts +8 -0
  59. package/build/constants/api.js +17 -1
  60. package/build/constants/app.d.ts +24 -2
  61. package/build/constants/app.js +182 -16
  62. package/build/constants/assets.d.ts +3 -0
  63. package/build/constants/assets.js +3 -0
  64. package/build/constants/validation.d.ts +3 -0
  65. package/build/constants/validation.js +3 -0
  66. package/build/features/app/bank/bankStore.d.ts +79 -23
  67. package/build/features/app/bank/bankStore.js +85 -111
  68. package/build/features/app/brand/brandStore.d.ts +191 -0
  69. package/build/features/app/brand/brandStore.js +654 -0
  70. package/build/features/app/business/businessStore.d.ts +185 -24
  71. package/build/features/app/business/businessStore.js +219 -217
  72. package/build/features/app/connect/connectStore.d.ts +124 -19
  73. package/build/features/app/connect/connectStore.js +228 -264
  74. package/build/features/app/connectExpress/connectExpressStore.d.ts +282 -0
  75. package/build/features/app/connectExpress/connectExpressStore.js +1013 -0
  76. package/build/features/app/entity/entityStore.d.ts +101 -24
  77. package/build/features/app/entity/entityStore.js +345 -341
  78. package/build/features/app/individual/individualStore.d.ts +83 -20
  79. package/build/features/app/individual/individualStore.js +166 -135
  80. package/build/features/app/password/passwordStore.d.ts +106 -17
  81. package/build/features/app/password/passwordStore.js +34 -29
  82. package/build/features/app/signIn/signInStore.d.ts +61 -7
  83. package/build/features/app/signIn/signInStore.js +24 -47
  84. package/build/features/app/tax/taxStore.d.ts +69 -9
  85. package/build/features/app/tax/taxStore.js +105 -94
  86. package/build/features/bank/Bank.d.ts +5 -3
  87. package/build/features/bank/Bank.js +39 -36
  88. package/build/features/bank/screens/BankDetails/BankDetails.js +26 -22
  89. package/build/features/bank/screens/BankDetails/BankStatement.d.ts +4 -1
  90. package/build/features/bank/screens/BankDetails/BankStatement.js +11 -44
  91. package/build/features/bank/screens/BankDetails/IBAN.js +5 -2
  92. package/build/features/bank/screens/BankDetails/validation.d.ts +22 -6
  93. package/build/features/bank/screens/BankDetails/validation.js +11 -24
  94. package/build/features/bank/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  95. package/build/features/bank/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  96. package/build/features/bank/screens/PrepareDataLoading/index.d.ts +2 -0
  97. package/build/features/bank/screens/PrepareDataLoading/index.js +2 -0
  98. package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -2
  99. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -97
  100. package/build/features/brand/Brand.d.ts +9 -0
  101. package/build/features/brand/Brand.js +72 -0
  102. package/build/features/brand/index.d.ts +1 -0
  103. package/build/features/brand/index.js +1 -0
  104. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +91 -0
  105. package/build/features/{entity/screens/EntityInfoConfirm → brand/screens/BrandActivities}/ActivitiesList.js +54 -41
  106. package/build/features/brand/screens/BrandActivities/BrandActivities.d.ts +5 -0
  107. package/build/features/brand/screens/BrandActivities/BrandActivities.js +72 -0
  108. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +82 -0
  109. package/build/features/{entity/screens/Customers/CustomerLocations.js → brand/screens/BrandActivities/CustomerBase.js} +9 -37
  110. package/build/features/{entity/screens/Customers → brand/screens/BrandActivities}/ExpectedCustomers.d.ts +0 -0
  111. package/build/features/{entity/screens/Customers → brand/screens/BrandActivities}/ExpectedCustomers.js +7 -8
  112. package/build/features/{entity/screens/Customers → brand/screens/BrandActivities}/ExpectedSalesRange.d.ts +0 -0
  113. package/build/features/{entity/screens/Customers → brand/screens/BrandActivities}/ExpectedSalesRange.js +14 -11
  114. package/build/features/brand/screens/BrandActivities/OperationStartDate.d.ts +20 -0
  115. package/build/features/brand/screens/BrandActivities/OperationStartDate.js +45 -0
  116. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +36 -0
  117. package/build/features/{entity/screens/Customers → brand/screens/BrandActivities}/RefundPolicy.js +1 -3
  118. package/build/features/brand/screens/BrandActivities/TAC.d.ts +6 -0
  119. package/build/features/{auth/screens/NID → brand/screens/BrandActivities}/TAC.js +8 -11
  120. package/build/features/{entity/screens/Customers → brand/screens/BrandActivities}/TransactionPolicy.d.ts +0 -0
  121. package/build/features/{entity/screens/Customers → brand/screens/BrandActivities}/TransactionPolicy.js +1 -3
  122. package/build/features/brand/screens/BrandActivities/index.d.ts +2 -0
  123. package/build/features/brand/screens/BrandActivities/index.js +2 -0
  124. package/build/features/brand/screens/BrandActivities/validation.d.ts +71 -0
  125. package/build/features/{entity/screens/Customers → brand/screens/BrandActivities}/validation.js +9 -1
  126. package/build/features/brand/screens/BrandInfo/BrandInfo.d.ts +5 -0
  127. package/build/features/brand/screens/BrandInfo/BrandInfo.js +72 -0
  128. package/build/features/brand/screens/BrandInfo/BrandName.d.ts +8 -0
  129. package/build/features/brand/screens/BrandInfo/BrandName.js +142 -0
  130. package/build/features/brand/screens/BrandInfo/SalesChannels.d.ts +5 -0
  131. package/build/features/brand/screens/BrandInfo/SalesChannels.js +30 -0
  132. package/build/features/brand/screens/BrandInfo/Segments.d.ts +8 -0
  133. package/build/features/brand/screens/BrandInfo/Segments.js +74 -0
  134. package/build/features/brand/screens/BrandInfo/TeamSize.d.ts +8 -0
  135. package/build/features/brand/screens/BrandInfo/TeamSize.js +74 -0
  136. package/build/features/brand/screens/BrandInfo/index.d.ts +2 -0
  137. package/build/features/brand/screens/BrandInfo/index.js +2 -0
  138. package/build/features/brand/screens/BrandInfo/validation.d.ts +41 -0
  139. package/build/features/brand/screens/BrandInfo/validation.js +106 -0
  140. package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  141. package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  142. package/build/features/brand/screens/PrepareDataLoading/index.d.ts +2 -0
  143. package/build/features/brand/screens/PrepareDataLoading/index.js +2 -0
  144. package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
  145. package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +16 -0
  146. package/build/features/brand/screens/ResetPasswordSuccess/index.d.ts +3 -0
  147. package/build/features/brand/screens/ResetPasswordSuccess/index.js +2 -0
  148. package/build/features/brand/screens/Success/Success.d.ts +5 -0
  149. package/build/features/brand/screens/Success/Success.js +20 -0
  150. package/build/features/brand/screens/Success/index.d.ts +3 -0
  151. package/build/features/brand/screens/Success/index.js +2 -0
  152. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
  153. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +22 -0
  154. package/build/features/brand/screens/SuccessWithFlowButtons/index.d.ts +2 -0
  155. package/build/features/brand/screens/SuccessWithFlowButtons/index.js +2 -0
  156. package/build/features/brand/screens/Verify/OTPInput.d.ts +7 -0
  157. package/build/features/brand/screens/Verify/OTPInput.js +47 -0
  158. package/build/features/{auth/screens/OTP/OTPInput.d.ts → brand/screens/Verify/Verify.d.ts} +0 -0
  159. package/build/features/brand/screens/Verify/Verify.js +91 -0
  160. package/build/features/brand/screens/Verify/index.d.ts +2 -0
  161. package/build/features/brand/screens/Verify/index.js +2 -0
  162. package/build/features/{auth/screens/OTP → brand/screens/Verify}/validation.d.ts +0 -0
  163. package/build/features/{auth/screens/OTP → brand/screens/Verify}/validation.js +0 -0
  164. package/build/features/business/Business.d.ts +4 -3
  165. package/build/features/business/Business.js +9 -14
  166. package/build/features/business/screens/Activities/Activities.js +6 -14
  167. package/build/features/business/screens/Activities/ActivitiesList.d.ts +13 -13
  168. package/build/features/business/screens/Activities/ActivitiesList.js +11 -17
  169. package/build/features/business/screens/Activities/OperationStartDate.d.ts +2 -2
  170. package/build/features/business/screens/Activities/validation.js +4 -1
  171. package/build/features/business/screens/BusinessType/Article.d.ts +6 -0
  172. package/build/features/business/screens/BusinessType/Article.js +87 -0
  173. package/build/features/business/screens/BusinessType/BusinessType.js +13 -12
  174. package/build/features/business/screens/BusinessType/EntityName.js +1 -1
  175. package/build/features/business/screens/BusinessType/LicenseCertificate.js +12 -46
  176. package/build/features/business/screens/BusinessType/LicenseList.js +3 -2
  177. package/build/features/business/screens/BusinessType/LicenseType.d.ts +30 -2
  178. package/build/features/business/screens/BusinessType/LicenseType.js +31 -6
  179. package/build/features/business/screens/BusinessType/validation.d.ts +9 -6
  180. package/build/features/business/screens/BusinessType/validation.js +21 -13
  181. package/build/features/business/screens/Customers/CustomerLocations.d.ts +11 -11
  182. package/build/features/business/screens/Customers/CustomerLocations.js +2 -3
  183. package/build/features/business/screens/Customers/ExpectedCustomers.js +2 -3
  184. package/build/features/business/screens/Customers/ExpectedSalesRange.js +8 -5
  185. package/build/features/business/screens/Customers/RefundPolicy.d.ts +5 -5
  186. package/build/features/business/screens/Customers/RefundPolicy.js +1 -3
  187. package/build/features/business/screens/Customers/TransactionPolicy.js +1 -3
  188. package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -2
  189. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -96
  190. package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  191. package/build/features/business/screens/VerifyPACI/VerifyPACI.js +9 -134
  192. package/build/features/connect/Connect.d.ts +4 -4
  193. package/build/features/connect/Connect.js +14 -31
  194. package/build/features/connect/screens/CivilID/CivilID.js +1 -1
  195. package/build/features/connect/screens/Individual/Email.js +1 -1
  196. package/build/features/connect/screens/Individual/Individual.js +5 -8
  197. package/build/features/connect/screens/Individual/validation.js +2 -8
  198. package/build/features/connect/screens/Merchant/BrandList.js +15 -2
  199. package/build/features/connect/screens/Merchant/BrandName.js +1 -1
  200. package/build/features/connect/screens/Merchant/Merchant.js +32 -36
  201. package/build/features/connect/screens/Merchant/SalesChannels.d.ts +1 -3
  202. package/build/features/connect/screens/Merchant/SalesChannels.js +28 -103
  203. package/build/features/connect/screens/Merchant/Segments.d.ts +8 -0
  204. package/build/features/connect/screens/Merchant/Segments.js +74 -0
  205. package/build/features/connect/screens/Merchant/TAC.js +1 -3
  206. package/build/features/connect/screens/Merchant/TeamSize.d.ts +8 -0
  207. package/build/features/connect/screens/Merchant/TeamSize.js +74 -0
  208. package/build/features/connect/screens/Merchant/validation.d.ts +6 -0
  209. package/build/features/connect/screens/Merchant/validation.js +12 -10
  210. package/build/features/connect/screens/ThankYou/ThankYou.js +9 -2
  211. package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  212. package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +9 -73
  213. package/build/features/connectExpress/ConnectExpress.d.ts +11 -0
  214. package/build/features/connectExpress/ConnectExpress.js +84 -0
  215. package/build/features/connectExpress/index.d.ts +1 -0
  216. package/build/features/connectExpress/index.js +1 -0
  217. package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.d.ts +5 -0
  218. package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.js +15 -0
  219. package/build/features/connectExpress/screens/AccountAlreadyCreated/index.d.ts +3 -0
  220. package/build/features/connectExpress/screens/AccountAlreadyCreated/index.js +2 -0
  221. package/build/features/connectExpress/screens/Brand/Brand.d.ts +5 -0
  222. package/build/features/connectExpress/screens/Brand/Brand.js +71 -0
  223. package/build/features/connectExpress/screens/Brand/index.d.ts +2 -0
  224. package/build/features/connectExpress/screens/Brand/index.js +2 -0
  225. package/build/features/connectExpress/screens/CivilID/CivilID.d.ts +5 -0
  226. package/build/features/connectExpress/screens/CivilID/CivilID.js +84 -0
  227. package/build/features/connectExpress/screens/CivilID/IDNumber.d.ts +7 -0
  228. package/build/features/connectExpress/screens/CivilID/IDNumber.js +55 -0
  229. package/build/features/connectExpress/screens/CivilID/index.d.ts +3 -0
  230. package/build/features/connectExpress/screens/CivilID/index.js +2 -0
  231. package/build/features/connectExpress/screens/CivilID/validation.d.ts +8 -0
  232. package/build/features/connectExpress/screens/CivilID/validation.js +4 -0
  233. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.d.ts +5 -0
  234. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +53 -0
  235. package/build/features/connectExpress/screens/CivilIDMissed/IDNumber.d.ts +7 -0
  236. package/build/features/connectExpress/screens/CivilIDMissed/IDNumber.js +55 -0
  237. package/build/features/connectExpress/screens/CivilIDMissed/index.d.ts +3 -0
  238. package/build/features/connectExpress/screens/CivilIDMissed/index.js +2 -0
  239. package/build/features/connectExpress/screens/CivilIDMissed/validation.d.ts +8 -0
  240. package/build/features/connectExpress/screens/CivilIDMissed/validation.js +4 -0
  241. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.d.ts +8 -0
  242. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +142 -0
  243. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.d.ts +5 -0
  244. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +80 -0
  245. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.d.ts +8 -0
  246. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +144 -0
  247. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.d.ts +7 -0
  248. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +52 -0
  249. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +34 -0
  250. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.js +94 -0
  251. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +6 -0
  252. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +83 -0
  253. package/build/features/connectExpress/screens/CollectBusinessInfo/index.d.ts +3 -0
  254. package/build/features/connectExpress/screens/CollectBusinessInfo/index.js +2 -0
  255. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +27 -0
  256. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +155 -0
  257. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.d.ts +5 -0
  258. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +89 -0
  259. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.d.ts +8 -0
  260. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +113 -0
  261. package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.d.ts +10 -0
  262. package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.js +149 -0
  263. package/build/features/connectExpress/screens/CollectIndividualInfo/Name.d.ts +6 -0
  264. package/build/features/connectExpress/screens/CollectIndividualInfo/Name.js +45 -0
  265. package/build/features/connectExpress/screens/CollectIndividualInfo/index.d.ts +3 -0
  266. package/build/features/connectExpress/screens/CollectIndividualInfo/index.js +2 -0
  267. package/build/features/connectExpress/screens/CollectIndividualInfo/validation.d.ts +14 -0
  268. package/build/features/connectExpress/screens/CollectIndividualInfo/validation.js +31 -0
  269. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.d.ts +5 -0
  270. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.js +14 -0
  271. package/build/features/connectExpress/screens/CreateAccountLoader/index.d.ts +2 -0
  272. package/build/features/connectExpress/screens/CreateAccountLoader/index.js +2 -0
  273. package/build/features/{auth/screens/OTP → connectExpress/screens/IdentityOTP}/OTP.d.ts +0 -0
  274. package/build/features/{auth/screens/OTP → connectExpress/screens/IdentityOTP}/OTP.js +23 -12
  275. package/build/features/connectExpress/screens/IdentityOTP/OTPInput.d.ts +5 -0
  276. package/build/features/{auth/screens/OTP → connectExpress/screens/IdentityOTP}/OTPInput.js +9 -8
  277. package/build/features/{auth/screens/OTP → connectExpress/screens/IdentityOTP}/index.d.ts +0 -0
  278. package/build/features/{auth/screens/OTP → connectExpress/screens/IdentityOTP}/index.js +0 -0
  279. package/build/features/connectExpress/screens/IdentityOTP/validation.d.ts +8 -0
  280. package/build/features/connectExpress/screens/IdentityOTP/validation.js +4 -0
  281. package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.d.ts +5 -0
  282. package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.js +34 -0
  283. package/build/features/connectExpress/screens/IdentityVerifyPACI/index.d.ts +3 -0
  284. package/build/features/connectExpress/screens/IdentityVerifyPACI/index.js +2 -0
  285. package/build/features/connectExpress/screens/Mobile/Mobile.d.ts +5 -0
  286. package/build/features/connectExpress/screens/Mobile/Mobile.js +110 -0
  287. package/build/features/connectExpress/screens/Mobile/MobileNumber.d.ts +12 -0
  288. package/build/features/connectExpress/screens/Mobile/MobileNumber.js +151 -0
  289. package/build/features/connectExpress/screens/Mobile/TAC.d.ts +6 -0
  290. package/build/features/connectExpress/screens/Mobile/TAC.js +83 -0
  291. package/build/features/connectExpress/screens/Mobile/Title.d.ts +8 -0
  292. package/build/features/connectExpress/screens/Mobile/Title.js +29 -0
  293. package/build/features/connectExpress/screens/Mobile/index.d.ts +3 -0
  294. package/build/features/connectExpress/screens/Mobile/index.js +2 -0
  295. package/build/features/connectExpress/screens/Mobile/validation.d.ts +8 -0
  296. package/build/features/connectExpress/screens/Mobile/validation.js +60 -0
  297. package/build/features/{auth → connectExpress}/screens/NID/DOB.d.ts +1 -2
  298. package/build/features/{auth → connectExpress}/screens/NID/DOB.js +9 -9
  299. package/build/features/{auth → connectExpress}/screens/NID/IDNumber.d.ts +4 -1
  300. package/build/features/{auth → connectExpress}/screens/NID/IDNumber.js +14 -17
  301. package/build/features/{auth → connectExpress}/screens/NID/NID.d.ts +0 -0
  302. package/build/features/connectExpress/screens/NID/NID.js +92 -0
  303. package/build/features/connectExpress/screens/NID/TAC.d.ts +6 -0
  304. package/build/features/connectExpress/screens/NID/TAC.js +83 -0
  305. package/build/features/{auth → connectExpress}/screens/NID/index.d.ts +0 -0
  306. package/build/features/{auth → connectExpress}/screens/NID/index.js +0 -0
  307. package/build/features/connectExpress/screens/NID/validation.d.ts +11 -0
  308. package/build/features/connectExpress/screens/NID/validation.js +22 -0
  309. package/build/features/connectExpress/screens/NIDMissed/DOB.d.ts +6 -0
  310. package/build/features/connectExpress/screens/NIDMissed/DOB.js +47 -0
  311. package/build/features/connectExpress/screens/NIDMissed/IDNumber.d.ts +6 -0
  312. package/build/features/connectExpress/screens/NIDMissed/IDNumber.js +56 -0
  313. package/build/features/connectExpress/screens/NIDMissed/NID.d.ts +5 -0
  314. package/build/features/{auth/screens/NID → connectExpress/screens/NIDMissed}/NID.js +14 -23
  315. package/build/features/connectExpress/screens/NIDMissed/index.d.ts +3 -0
  316. package/build/features/connectExpress/screens/NIDMissed/index.js +2 -0
  317. package/build/features/connectExpress/screens/NIDMissed/validation.d.ts +11 -0
  318. package/build/features/connectExpress/screens/NIDMissed/validation.js +9 -0
  319. package/build/features/{auth/screens/NID/TAC.d.ts → connectExpress/screens/OTP/OTP.d.ts} +2 -0
  320. package/build/features/connectExpress/screens/OTP/OTP.js +88 -0
  321. package/build/features/connectExpress/screens/OTP/OTPInput.d.ts +5 -0
  322. package/build/features/connectExpress/screens/OTP/OTPInput.js +55 -0
  323. package/build/features/connectExpress/screens/OTP/index.d.ts +3 -0
  324. package/build/features/connectExpress/screens/OTP/index.js +2 -0
  325. package/build/features/connectExpress/screens/OTP/validation.d.ts +8 -0
  326. package/build/features/connectExpress/screens/OTP/validation.js +4 -0
  327. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
  328. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +32 -0
  329. package/build/features/connectExpress/screens/SuccessWithFlowButtons/index.d.ts +2 -0
  330. package/build/features/connectExpress/screens/SuccessWithFlowButtons/index.js +2 -0
  331. package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
  332. package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.js +34 -0
  333. package/build/features/connectExpress/screens/VerifyPACI/index.d.ts +3 -0
  334. package/build/features/connectExpress/screens/VerifyPACI/index.js +2 -0
  335. package/build/features/entity/Entity.d.ts +5 -3
  336. package/build/features/entity/Entity.js +39 -37
  337. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +90 -0
  338. package/build/features/entity/screens/EntityCapital/ActivityList.js +175 -0
  339. package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +5 -0
  340. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +47 -0
  341. package/build/features/entity/screens/EntityCapital/CapitalShareCount.d.ts +5 -0
  342. package/build/features/entity/screens/EntityCapital/CapitalShareCount.js +42 -0
  343. package/build/features/entity/screens/EntityCapital/CapitalShareValue.d.ts +5 -0
  344. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +47 -0
  345. package/build/features/entity/screens/EntityCapital/EntityCapital.d.ts +5 -0
  346. package/build/features/entity/screens/EntityCapital/EntityCapital.js +75 -0
  347. package/build/features/entity/screens/EntityCapital/index.d.ts +2 -0
  348. package/build/features/entity/screens/EntityCapital/index.js +2 -0
  349. package/build/features/entity/screens/EntityCapital/validation.d.ts +62 -0
  350. package/build/features/entity/screens/EntityCapital/validation.js +21 -0
  351. package/build/features/entity/screens/EntityName/Article.d.ts +6 -0
  352. package/build/features/entity/screens/EntityName/Article.js +87 -0
  353. package/build/features/entity/screens/EntityName/EntityName.d.ts +5 -0
  354. package/build/features/entity/screens/EntityName/EntityName.js +93 -0
  355. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +90 -0
  356. package/build/features/entity/screens/EntityName/EntityTypeList.js +151 -0
  357. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +19 -0
  358. package/build/features/entity/screens/EntityName/ExpiryDate.js +46 -0
  359. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +19 -0
  360. package/build/features/entity/screens/EntityName/IssuingDate.js +46 -0
  361. package/build/features/entity/screens/EntityName/LegalName.d.ts +5 -0
  362. package/build/features/entity/screens/EntityName/LegalName.js +48 -0
  363. package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +6 -0
  364. package/build/features/entity/screens/EntityName/LicenseCertificate.js +42 -0
  365. package/build/features/entity/screens/{EntityInfoConfirm → EntityName}/LicenseNumber.d.ts +0 -0
  366. package/build/features/entity/screens/{EntityInfoConfirm → EntityName}/LicenseNumber.js +12 -18
  367. package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +6 -0
  368. package/build/features/entity/screens/EntityName/UnifiedNumber.js +43 -0
  369. package/build/features/entity/screens/EntityName/index.d.ts +2 -0
  370. package/build/features/entity/screens/EntityName/index.js +2 -0
  371. package/build/features/entity/screens/EntityName/validation.d.ts +60 -0
  372. package/build/features/entity/screens/EntityName/validation.js +116 -0
  373. package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  374. package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  375. package/build/features/entity/screens/PrepareDataLoading/index.d.ts +2 -0
  376. package/build/features/entity/screens/PrepareDataLoading/index.js +2 -0
  377. package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -2
  378. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -94
  379. package/build/features/featuresScreens.d.ts +2 -1
  380. package/build/features/featuresScreens.js +128 -14
  381. package/build/features/individual/Individual.d.ts +5 -3
  382. package/build/features/individual/Individual.js +39 -37
  383. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +20 -18
  384. package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +3 -0
  385. package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.js +30 -0
  386. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +5 -1
  387. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +7 -1
  388. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +3 -3
  389. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +28 -0
  390. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +24 -1
  391. package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +6 -0
  392. package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.js +42 -0
  393. package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +6 -0
  394. package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +2 -0
  395. package/build/features/individual/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  396. package/build/features/individual/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  397. package/build/features/individual/screens/PrepareDataLoading/index.d.ts +2 -0
  398. package/build/features/individual/screens/PrepareDataLoading/index.js +2 -0
  399. package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -2
  400. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -97
  401. package/build/features/password/Password.d.ts +5 -3
  402. package/build/features/password/Password.js +9 -14
  403. package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -2
  404. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -97
  405. package/build/features/shared/AcceptancePayouts/AcceptancePayouts.js +1 -1
  406. package/build/features/shared/Address/Address.d.ts +11 -0
  407. package/build/features/shared/Address/Address.js +63 -0
  408. package/build/features/shared/Address/CountryList.d.ts +72 -0
  409. package/build/features/shared/Address/CountryList.js +89 -0
  410. package/build/features/shared/Address/InputSelect.d.ts +71 -0
  411. package/build/features/shared/Address/InputSelect.js +172 -0
  412. package/build/features/shared/Address/InputText.d.ts +11 -0
  413. package/build/features/shared/Address/InputText.js +12 -0
  414. package/build/features/shared/Address/index.d.ts +2 -0
  415. package/build/features/shared/Address/index.js +2 -0
  416. package/build/features/shared/Background/Background.js +1 -5
  417. package/build/features/shared/Button/Button.js +2 -3
  418. package/build/features/shared/Button/EmailProvidersButtons.d.ts +1 -1
  419. package/build/features/shared/Button/FlowsButtons.d.ts +3 -1
  420. package/build/features/shared/Button/FlowsButtons.js +39 -7
  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 +6 -0
  424. package/build/features/shared/CreateAccountLoading/CreateAccountLoading.js +58 -0
  425. package/build/features/shared/CreateAccountLoading/index.d.ts +2 -0
  426. package/build/features/shared/CreateAccountLoading/index.js +2 -0
  427. package/build/features/shared/DataLoading/DataLoading.d.ts +6 -0
  428. package/build/features/shared/DataLoading/DataLoading.js +58 -0
  429. package/build/features/shared/DataLoading/index.d.ts +2 -0
  430. package/build/features/shared/DataLoading/index.js +2 -0
  431. package/build/features/shared/Footer/Footer.js +1 -1
  432. package/build/features/shared/GenericError/GenericError.d.ts +7 -0
  433. package/build/features/shared/GenericError/GenericError.js +55 -0
  434. package/build/features/shared/GenericError/index.d.ts +2 -0
  435. package/build/features/shared/GenericError/index.js +2 -0
  436. package/build/features/shared/Input/Input.d.ts +9 -7
  437. package/build/features/shared/Input/Input.js +2 -2
  438. package/build/features/shared/PaciVerification/PaciVerification.d.ts +12 -0
  439. package/build/features/shared/PaciVerification/PaciVerification.js +91 -0
  440. package/build/features/{connect/screens/VerifyPACI → shared/PaciVerification}/VerifyPACILoading.d.ts +1 -0
  441. package/build/features/shared/PaciVerification/VerifyPACILoading.js +27 -0
  442. package/build/features/{business/screens/VerifyPACI → shared/PaciVerification}/VerifyPACISuccess.d.ts +0 -0
  443. package/build/features/{business/screens/VerifyPACI → shared/PaciVerification}/VerifyPACISuccess.js +1 -1
  444. package/build/features/shared/PaciVerification/index.d.ts +2 -0
  445. package/build/features/shared/PaciVerification/index.js +2 -0
  446. package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +11 -0
  447. package/build/features/shared/SalesChannels/SaleChannelIconsInput.js +100 -0
  448. package/build/features/shared/SalesChannels/SalesChannel.d.ts +11 -0
  449. package/build/features/shared/SalesChannels/SalesChannel.js +149 -0
  450. package/build/features/shared/SalesChannels/index.d.ts +2 -0
  451. package/build/features/shared/SalesChannels/index.js +2 -0
  452. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +16 -0
  453. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +113 -0
  454. package/build/features/shared/SuccessFlowButtons/index.d.ts +2 -0
  455. package/build/features/shared/SuccessFlowButtons/index.js +2 -0
  456. package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +1 -1
  457. package/build/features/shared/UploadFile/UploadFile.d.ts +5 -4
  458. package/build/features/shared/UploadFile/UploadFile.js +13 -13
  459. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +38 -0
  460. package/build/features/shared/UploadMultipleFile/UploadFile.js +184 -0
  461. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +27 -0
  462. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.js +149 -0
  463. package/build/features/shared/UploadMultipleFile/index.d.ts +2 -0
  464. package/build/features/shared/UploadMultipleFile/index.js +2 -0
  465. package/build/features/signIn/SignIn.d.ts +4 -3
  466. package/build/features/signIn/SignIn.js +9 -15
  467. package/build/features/tax/Tax.d.ts +5 -3
  468. package/build/features/tax/Tax.js +39 -38
  469. package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  470. package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  471. package/build/features/tax/screens/PrepareDataLoading/index.d.ts +2 -0
  472. package/build/features/tax/screens/PrepareDataLoading/index.js +2 -0
  473. package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -2
  474. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -97
  475. package/build/features/tax/screens/TaxDetails/TaxDetails.js +21 -23
  476. package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +6 -0
  477. package/build/features/tax/screens/TaxDetails/TaxDocument.js +42 -0
  478. package/build/features/tax/screens/TaxDetails/VATId.js +7 -2
  479. package/build/features/tax/screens/TaxDetails/validation.d.ts +3 -0
  480. package/build/features/tax/screens/TaxDetails/validation.js +2 -1
  481. package/build/hooks/index.d.ts +3 -0
  482. package/build/hooks/index.js +3 -0
  483. package/build/hooks/useAppConfig.d.ts +3 -1
  484. package/build/hooks/useAppConfig.js +6 -4
  485. package/build/hooks/useAppDispatch.d.ts +2 -1
  486. package/build/hooks/useCountUp.d.ts +9 -0
  487. package/build/hooks/useCountUp.js +17 -0
  488. package/build/hooks/useCountry.d.ts +4 -0
  489. package/build/hooks/useCountry.js +7 -0
  490. package/build/hooks/useSetFromDefaultValues.js +4 -2
  491. package/build/hooks/useVerifyToken.d.ts +15 -0
  492. package/build/hooks/useVerifyToken.js +25 -0
  493. package/build/index.d.ts +12 -11
  494. package/build/index.js +13 -21
  495. package/build/theme/typography.js +1 -1
  496. package/build/utils/array.d.ts +4 -1
  497. package/build/utils/array.js +24 -3
  498. package/build/utils/common.d.ts +1 -1
  499. package/build/utils/common.js +1 -0
  500. package/build/utils/date.d.ts +1 -0
  501. package/build/utils/date.js +5 -0
  502. package/build/utils/html.d.ts +0 -1
  503. package/build/utils/html.js +2 -10
  504. package/build/utils/index.d.ts +1 -0
  505. package/build/utils/index.js +1 -0
  506. package/build/utils/string.d.ts +2 -0
  507. package/build/utils/string.js +23 -2
  508. package/package.json +1 -1
  509. package/build/api/ip.d.ts +0 -4
  510. package/build/api/ip.js +0 -12
  511. package/build/features/app/auth/authStore.d.ts +0 -46
  512. package/build/features/app/auth/authStore.js +0 -261
  513. package/build/features/auth/Auth.d.ts +0 -10
  514. package/build/features/auth/Auth.js +0 -87
  515. package/build/features/auth/index.d.ts +0 -1
  516. package/build/features/auth/index.js +0 -1
  517. package/build/features/auth/screens/NID/validation.d.ts +0 -27
  518. package/build/features/auth/screens/NID/validation.js +0 -19
  519. package/build/features/business/screens/VerifyPACI/VerifyPACILoading.d.ts +0 -6
  520. package/build/features/business/screens/VerifyPACI/VerifyPACILoading.js +0 -23
  521. package/build/features/connect/screens/Merchant/SocialMedia.d.ts +0 -6
  522. package/build/features/connect/screens/Merchant/SocialMedia.js +0 -182
  523. package/build/features/connect/screens/VerifyPACI/VerifyPACILoading.js +0 -23
  524. package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.d.ts +0 -5
  525. package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.js +0 -8
  526. package/build/features/entity/screens/Customers/CustomerLocations.d.ts +0 -118
  527. package/build/features/entity/screens/Customers/Customers.d.ts +0 -5
  528. package/build/features/entity/screens/Customers/Customers.js +0 -90
  529. package/build/features/entity/screens/Customers/RefundPolicy.d.ts +0 -36
  530. package/build/features/entity/screens/Customers/index.d.ts +0 -3
  531. package/build/features/entity/screens/Customers/index.js +0 -2
  532. package/build/features/entity/screens/Customers/validation.d.ts +0 -20
  533. package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.d.ts +0 -55
  534. package/build/features/entity/screens/EntityInfoConfirm/Article.d.ts +0 -3
  535. package/build/features/entity/screens/EntityInfoConfirm/Article.js +0 -73
  536. package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.d.ts +0 -5
  537. package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.js +0 -84
  538. package/build/features/entity/screens/EntityInfoConfirm/LicenseName.d.ts +0 -5
  539. package/build/features/entity/screens/EntityInfoConfirm/LicenseName.js +0 -32
  540. package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.d.ts +0 -6
  541. package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.js +0 -33
  542. package/build/features/entity/screens/EntityInfoConfirm/index.d.ts +0 -2
  543. package/build/features/entity/screens/EntityInfoConfirm/index.js +0 -2
  544. package/build/features/entity/screens/EntityInfoConfirm/validation.d.ts +0 -141
  545. package/build/features/entity/screens/EntityInfoConfirm/validation.js +0 -83
@@ -4,44 +4,112 @@ export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
4
4
  data: any;
5
5
  boardResponse: any;
6
6
  token: string;
7
- }, string, {}>;
7
+ }, string, {
8
+ state?: unknown;
9
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
10
+ extra?: unknown;
11
+ rejectValue?: unknown;
12
+ serializedErrorType?: unknown;
13
+ pendingMeta?: unknown;
14
+ fulfilledMeta?: unknown;
15
+ rejectedMeta?: unknown;
16
+ }>;
8
17
  export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
9
18
  data: any;
10
- }, void, {}>;
19
+ }, void, {
20
+ state?: unknown;
21
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
22
+ extra?: unknown;
23
+ rejectValue?: unknown;
24
+ serializedErrorType?: unknown;
25
+ pendingMeta?: unknown;
26
+ fulfilledMeta?: unknown;
27
+ rejectedMeta?: unknown;
28
+ }>;
11
29
  export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<{
12
30
  data: any;
13
- }, string, {}>;
31
+ }, string, {
32
+ state?: unknown;
33
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
34
+ extra?: unknown;
35
+ rejectValue?: unknown;
36
+ serializedErrorType?: unknown;
37
+ pendingMeta?: unknown;
38
+ fulfilledMeta?: unknown;
39
+ rejectedMeta?: unknown;
40
+ }>;
14
41
  export declare const verifyPasswordLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
15
42
  data: any;
16
43
  formData: {
17
44
  otp: string;
18
45
  };
19
- }, OTPFormValues, {}>;
46
+ }, OTPFormValues, {
47
+ state?: unknown;
48
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
49
+ extra?: unknown;
50
+ rejectValue?: unknown;
51
+ serializedErrorType?: unknown;
52
+ pendingMeta?: unknown;
53
+ fulfilledMeta?: unknown;
54
+ rejectedMeta?: unknown;
55
+ }>;
20
56
  export declare const createPassword: import("@reduxjs/toolkit").AsyncThunk<{
21
57
  data: any;
22
58
  formData: PasswordCreateFormValues;
23
- }, PasswordCreateFormValues, {}>;
59
+ }, PasswordCreateFormValues, {
60
+ state?: unknown;
61
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
62
+ extra?: unknown;
63
+ rejectValue?: unknown;
64
+ serializedErrorType?: unknown;
65
+ pendingMeta?: unknown;
66
+ fulfilledMeta?: unknown;
67
+ rejectedMeta?: unknown;
68
+ }>;
24
69
  export declare const updateBoardSuccess: import("@reduxjs/toolkit").AsyncThunk<{
25
70
  response: any;
26
71
  formData: void;
27
- } | undefined, void, {}>;
72
+ } | undefined, void, {
73
+ state?: unknown;
74
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
75
+ extra?: unknown;
76
+ rejectValue?: unknown;
77
+ serializedErrorType?: unknown;
78
+ pendingMeta?: unknown;
79
+ fulfilledMeta?: unknown;
80
+ rejectedMeta?: unknown;
81
+ }>;
28
82
  export declare const verifyOperationToken: import("@reduxjs/toolkit").AsyncThunk<{
29
83
  data: any;
30
84
  token: string;
31
85
  boardId: string;
32
- flows: {
33
- name: string;
34
- status: string;
35
- url: string;
36
- }[];
86
+ flows: any;
37
87
  }, {
38
88
  token: string;
39
89
  boardId: string;
40
90
  boardInfoId: string;
41
- }, {}>;
91
+ }, {
92
+ state?: unknown;
93
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
94
+ extra?: unknown;
95
+ rejectValue?: unknown;
96
+ serializedErrorType?: unknown;
97
+ pendingMeta?: unknown;
98
+ fulfilledMeta?: unknown;
99
+ rejectedMeta?: unknown;
100
+ }>;
42
101
  export declare const resendOperationOTP: import("@reduxjs/toolkit").AsyncThunk<{
43
102
  data: any;
44
- }, void, {}>;
103
+ }, void, {
104
+ state?: unknown;
105
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
106
+ extra?: unknown;
107
+ rejectValue?: unknown;
108
+ serializedErrorType?: unknown;
109
+ pendingMeta?: unknown;
110
+ fulfilledMeta?: unknown;
111
+ rejectedMeta?: unknown;
112
+ }>;
45
113
  export declare const resetPassword: import("@reduxjs/toolkit").AsyncThunk<{
46
114
  data: any;
47
115
  formData: {
@@ -52,11 +120,32 @@ export declare const resetPassword: import("@reduxjs/toolkit").AsyncThunk<{
52
120
  } | undefined;
53
121
  otp: string;
54
122
  };
55
- }, OTPFormValues, {}>;
123
+ }, OTPFormValues, {
124
+ state?: unknown;
125
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
126
+ extra?: unknown;
127
+ rejectValue?: unknown;
128
+ serializedErrorType?: unknown;
129
+ pendingMeta?: unknown;
130
+ fulfilledMeta?: unknown;
131
+ rejectedMeta?: unknown;
132
+ }>;
56
133
  export declare const retrieveBoardResetPasswordSuccess: import("@reduxjs/toolkit").AsyncThunk<{
57
134
  id: any;
58
- }, void, {}>;
59
- declare type VerifyData = {
135
+ response: {
136
+ flows: any;
137
+ };
138
+ }, void, {
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
+ }>;
148
+ type VerifyData = {
60
149
  token: string;
61
150
  operationType?: string;
62
151
  };
@@ -78,7 +167,7 @@ export declare const passwordSlice: import("@reduxjs/toolkit").Slice<PasswordSta
78
167
  type: string;
79
168
  }) => void;
80
169
  }, "password/store">;
81
- export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, storePasswordScreen: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
170
+ export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"password/store/clearError">, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"password/store/stopLoader">, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"password/store/resetOTPScreen">, storePasswordScreen: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "password/store/storePasswordScreen">;
82
171
  declare const _default: import("redux").Reducer<PasswordState, import("redux").AnyAction>;
83
172
  export default _default;
84
173
  export declare const passwordSelector: (state: RootState) => PasswordState;
@@ -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]) {
@@ -50,9 +50,9 @@ import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
50
50
  import API from '../../../api';
51
51
  import { FlowsTypes } from '../../../@types';
52
52
  import { handleCurrentActiveScreen, handleNextScreenStep, handleSetCountryByIso2 } from '../../../app/settings';
53
- import { BUSINESS_FLOW_SUCCESS, PASSWORD_OPERATION_TYPE, PASSWORD_STEP_NAMES } from '../../../constants';
53
+ import { PASSWORD_OPERATION_TYPE, PASSWORD_STEP_NAMES } from '../../../constants';
54
54
  export var verifyLeadToken = createAsyncThunk('passwordVerifyLeadToken', function (token, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
55
- var payload, data, boardInfoData, boardData, board_id, board_info_id, countryIso2, info, hasPasswordCompleted;
55
+ var payload, data, boardInfoData, boardData, board_id, countryIso2, info, hasPasswordCompleted;
56
56
  var _a, _b, _c, _d;
57
57
  return __generator(this, function (_e) {
58
58
  switch (_e.label) {
@@ -65,21 +65,17 @@ export var verifyLeadToken = createAsyncThunk('passwordVerifyLeadToken', functio
65
65
  case 1:
66
66
  data = (_e.sent()).data;
67
67
  boardData = undefined;
68
- if (!(!(data === null || data === void 0 ? void 0 : data.errors) && !(data === null || data === void 0 ? void 0 : data.mw_error))) return [3, 6];
68
+ if (!(!(data === null || data === void 0 ? void 0 : data.errors) && !(data === null || data === void 0 ? void 0 : data.mw_error))) return [3, 5];
69
69
  board_id = data === null || data === void 0 ? void 0 : data.id;
70
- board_info_id = data === null || data === void 0 ? void 0 : data.board_info_id;
71
- if (!(board_id && board_info_id)) return [3, 3];
72
- return [4, API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id })];
70
+ if (!board_id) return [3, 4];
71
+ return [4, API.boardService.retrieveBoardInfoStatus(board_id)];
73
72
  case 2:
74
73
  boardInfoData = _e.sent();
75
- _e.label = 3;
76
- case 3:
77
- if (!board_id) return [3, 5];
78
74
  return [4, API.boardService.retrieveBoardDetails(board_id)];
79
- case 4:
75
+ case 3:
80
76
  boardData = _e.sent();
81
- _e.label = 5;
82
- case 5:
77
+ _e.label = 4;
78
+ case 4:
83
79
  countryIso2 = (_a = boardData === null || boardData === void 0 ? void 0 : boardData.entity) === null || _a === void 0 ? void 0 : _a.country;
84
80
  if (countryIso2)
85
81
  thunkApi.dispatch(handleSetCountryByIso2(countryIso2));
@@ -94,10 +90,10 @@ export var verifyLeadToken = createAsyncThunk('passwordVerifyLeadToken', functio
94
90
  else if (data.step_name === PASSWORD_STEP_NAMES.PASSWORD_INFO) {
95
91
  thunkApi.dispatch(handleNextScreenStep('PASSWORD_CREATE_PASSWORD_STEP'));
96
92
  }
97
- _e.label = 6;
98
- case 6: return [2, {
93
+ _e.label = 5;
94
+ case 5: return [2, {
99
95
  data: data,
100
- boardResponse: __assign(__assign({}, boardData === null || boardData === void 0 ? void 0 : boardData.business), { flows: BUSINESS_FLOW_SUCCESS.concat((boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info) || []), user: boardData === null || boardData === void 0 ? void 0 : boardData.user, brand: boardData === null || boardData === void 0 ? void 0 : boardData.brand, bank_account: boardData === null || boardData === void 0 ? void 0 : boardData.bank_account, entity: boardData === null || boardData === void 0 ? void 0 : boardData.entity, merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant, name: (_c = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _c === void 0 ? void 0 : _c.names, contact: (_d = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _d === void 0 ? void 0 : _d.contact }),
96
+ boardResponse: __assign(__assign({}, boardData === null || boardData === void 0 ? void 0 : boardData.business), { flows: (boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info) || [], user: boardData === null || boardData === void 0 ? void 0 : boardData.user, brand: boardData === null || boardData === void 0 ? void 0 : boardData.brand, bank_account: boardData === null || boardData === void 0 ? void 0 : boardData.bank_account, entity: boardData === null || boardData === void 0 ? void 0 : boardData.entity, merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant, name: (_c = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _c === void 0 ? void 0 : _c.names, contact: (_d = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _d === void 0 ? void 0 : _d.contact, business: boardData === null || boardData === void 0 ? void 0 : boardData.business }),
101
97
  token: token
102
98
  }];
103
99
  }
@@ -190,7 +186,7 @@ export var createPassword = createAsyncThunk('createPassword', function (params,
190
186
  });
191
187
  }); });
192
188
  export var updateBoardSuccess = createAsyncThunk('passwordUpdateBoardSuccess', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
193
- var _a, settings, password, _b, id, infoId, payload, data;
189
+ var _a, settings, password, _b, id, infoId, payload, data, boardInfoData;
194
190
  var _c, _d, _e, _f;
195
191
  return __generator(this, function (_g) {
196
192
  switch (_g.label) {
@@ -207,22 +203,25 @@ export var updateBoardSuccess = createAsyncThunk('passwordUpdateBoardSuccess', f
207
203
  return [4, API.boardService.updateBoardInfo(__assign({ id: id, infoId: infoId }, payload))];
208
204
  case 1:
209
205
  data = _g.sent();
210
- return [4, thunkApi.dispatch(retrieveBoardDetails(id))];
206
+ return [4, API.boardService.retrieveBoardInfoStatus(id)];
211
207
  case 2:
208
+ boardInfoData = _g.sent();
209
+ return [4, thunkApi.dispatch(retrieveBoardDetails(id))];
210
+ case 3:
212
211
  _g.sent();
213
- (_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, params);
212
+ (_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, {});
214
213
  (_f = (_e = settings.data.appConfig).onFlowCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, { data: data });
215
214
  thunkApi.dispatch(handleNextScreenStep());
216
- return [2, { response: __assign(__assign({}, data), { flows: BUSINESS_FLOW_SUCCESS.concat((data === null || data === void 0 ? void 0 : data.info) || []) }), formData: params }];
215
+ return [2, { response: __assign(__assign({}, data), { flows: (boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info) || [] }), formData: params }];
217
216
  }
218
217
  });
219
218
  }); });
220
219
  export var verifyOperationToken = createAsyncThunk('verifyOperationToken', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
221
- var token, boardId, boardInfoId, boardInfoData, payload, data;
220
+ var token, boardId, boardInfoData, payload, data;
222
221
  return __generator(this, function (_a) {
223
222
  switch (_a.label) {
224
223
  case 0:
225
- token = params.token, boardId = params.boardId, boardInfoId = params.boardInfoId;
224
+ token = params.token, boardId = params.boardId;
226
225
  boardInfoData = undefined;
227
226
  payload = {
228
227
  auth_type: 7,
@@ -231,14 +230,14 @@ export var verifyOperationToken = createAsyncThunk('verifyOperationToken', funct
231
230
  return [4, API.authService.verifyAuth(payload)];
232
231
  case 1:
233
232
  data = (_a.sent()).data;
234
- if (!(!!boardId && !!boardInfoId)) return [3, 3];
235
- return [4, API.boardService.retrieveBoardInfo({ id: boardId, infoId: boardInfoId })];
233
+ if (!boardId) return [3, 3];
234
+ return [4, API.boardService.retrieveBoardInfoStatus(boardId)];
236
235
  case 2:
237
236
  boardInfoData = _a.sent();
238
237
  _a.label = 3;
239
238
  case 3:
240
239
  thunkApi.dispatch(handleNextScreenStep('PASSWORD_CREATE_PASSWORD_STEP'));
241
- return [2, { data: data, token: token, boardId: boardId, flows: BUSINESS_FLOW_SUCCESS.concat((boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info) || []) }];
240
+ return [2, { data: data, token: token, boardId: boardId, flows: (boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info) || [] }];
242
241
  }
243
242
  });
244
243
  }); });
@@ -290,20 +289,23 @@ export var resetPassword = createAsyncThunk('resetPassword', function (params, t
290
289
  });
291
290
  }); });
292
291
  export var retrieveBoardResetPasswordSuccess = createAsyncThunk('retrieveBoardResetPasswordSuccess', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
293
- var _a, password, settings, id;
292
+ var _a, password, settings, id, boardInfoData;
294
293
  var _b, _c, _d, _e;
295
294
  return __generator(this, function (_f) {
296
295
  switch (_f.label) {
297
296
  case 0:
298
297
  _a = thunkApi.getState(), password = _a.password, settings = _a.settings;
299
298
  id = (password.data.verify.responseBody || { board_id: '' }).board_id;
300
- return [4, thunkApi.dispatch(retrieveBoardDetails(id))];
299
+ return [4, API.boardService.retrieveBoardInfoStatus(id)];
301
300
  case 1:
301
+ boardInfoData = _f.sent();
302
+ return [4, thunkApi.dispatch(retrieveBoardDetails(id))];
303
+ case 2:
302
304
  _f.sent();
303
305
  thunkApi.dispatch(handleNextScreenStep());
304
306
  (_c = (_b = settings.data.appConfig).onStepCompleted) === null || _c === void 0 ? void 0 : _c.call(_b, settings.data.activeScreen.name, { id: id });
305
307
  (_e = (_d = settings.data.appConfig).onFlowCompleted) === null || _e === void 0 ? void 0 : _e.call(_d, id);
306
- return [2, { id: id }];
308
+ return [2, { id: id, response: { flows: (boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info) || [] } }];
307
309
  }
308
310
  });
309
311
  }); });
@@ -514,9 +516,12 @@ export var passwordSlice = createSlice({
514
516
  state.error = action.error.message;
515
517
  state.loading = false;
516
518
  })
517
- .addCase(retrieveBoardResetPasswordSuccess.fulfilled, function (state) {
519
+ .addCase(retrieveBoardResetPasswordSuccess.fulfilled, function (state, action) {
518
520
  state.loading = false;
519
521
  state.error = null;
522
+ var response = (action.payload || {}).response;
523
+ var flows = response.flows;
524
+ state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { flows: flows });
520
525
  })
521
526
  .addCase(retrieveBoardResetPasswordSuccess.pending, function (state) {
522
527
  state.loading = true;
@@ -3,18 +3,72 @@ import { MobileFormValues, SharedState, EmailFormValues, ResponseData, OTPFormVa
3
3
  export declare const createMobileAuth: import("@reduxjs/toolkit").AsyncThunk<{
4
4
  data: any;
5
5
  formData: MobileFormValues;
6
- }, MobileFormValues, {}>;
7
- export declare const resendOTPMobile: import("@reduxjs/toolkit").AsyncThunk<any, void, {}>;
6
+ }, MobileFormValues, {
7
+ state?: unknown;
8
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
9
+ extra?: unknown;
10
+ rejectValue?: unknown;
11
+ serializedErrorType?: unknown;
12
+ pendingMeta?: unknown;
13
+ fulfilledMeta?: unknown;
14
+ rejectedMeta?: unknown;
15
+ }>;
16
+ export declare const resendOTPMobile: import("@reduxjs/toolkit").AsyncThunk<any, void, {
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
+ }>;
8
26
  export declare const createEmailAuth: import("@reduxjs/toolkit").AsyncThunk<{
9
27
  data: any;
10
28
  formData: EmailFormValues;
11
- }, EmailFormValues, {}>;
12
- export declare const resendOTPEmail: import("@reduxjs/toolkit").AsyncThunk<any, void, {}>;
29
+ }, EmailFormValues, {
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
+ }>;
39
+ export declare const resendOTPEmail: import("@reduxjs/toolkit").AsyncThunk<any, void, {
40
+ state?: unknown;
41
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
42
+ extra?: unknown;
43
+ rejectValue?: unknown;
44
+ serializedErrorType?: unknown;
45
+ pendingMeta?: unknown;
46
+ fulfilledMeta?: unknown;
47
+ rejectedMeta?: unknown;
48
+ }>;
13
49
  export declare const verifyAuthOTP: import("@reduxjs/toolkit").AsyncThunk<{
14
50
  data: any;
15
51
  formData: OTPFormValues;
16
- }, OTPFormValues, {}>;
17
- export declare const verifyAuthPassword: import("@reduxjs/toolkit").AsyncThunk<any, PasswordFormValues, {}>;
52
+ }, 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
+ }>;
62
+ export declare const verifyAuthPassword: import("@reduxjs/toolkit").AsyncThunk<any, PasswordFormValues, {
63
+ state?: unknown;
64
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
65
+ extra?: unknown;
66
+ rejectValue?: unknown;
67
+ serializedErrorType?: unknown;
68
+ pendingMeta?: unknown;
69
+ fulfilledMeta?: unknown;
70
+ rejectedMeta?: unknown;
71
+ }>;
18
72
  export interface SignInData {
19
73
  auth: Partial<MobileFormValues & EmailFormValues> & ResponseData;
20
74
  otpData: OTPFormValues & ResponseData;
@@ -27,7 +81,7 @@ export declare const signInSlice: import("@reduxjs/toolkit").Slice<SignInState,
27
81
  stopLoader: (state: SignInState) => void;
28
82
  resetOTPScreen: (state: SignInState) => void;
29
83
  }, "signIsn/store">;
30
- export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
84
+ export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"signIsn/store/clearError">, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"signIsn/store/stopLoader">, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"signIsn/store/resetOTPScreen">;
31
85
  declare const _default: import("redux").Reducer<SignInState, import("redux").AnyAction>;
32
86
  export default _default;
33
87
  export declare const signInSelector: (state: RootState) => SignInState;
@@ -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]) {
@@ -50,7 +50,6 @@ import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
50
50
  import API from '../../../api';
51
51
  import { defaultCountry, SignIn_STEP_NAMES } from '../../../constants';
52
52
  import { handleNextScreenStep, handleOpen } from '../../../app/settings';
53
- import { getAxiosHeaders } from '../../../api';
54
53
  var redirection = function (type) {
55
54
  if (type === 1)
56
55
  return handleNextScreenStep('SIGIN_PASSWORD_STEP');
@@ -64,6 +63,8 @@ export var createMobileAuth = createAsyncThunk('signIn/createMobileAuth', functi
64
63
  case 0:
65
64
  settings = thunkApi.getState().settings;
66
65
  requestBody = {
66
+ country: settings.data.businessCountry.iso2,
67
+ scope: settings.data.appConfig.scope,
67
68
  lang: settings.data.language,
68
69
  user_credentail: {
69
70
  phone: params.mobile || '',
@@ -75,11 +76,9 @@ export var createMobileAuth = createAsyncThunk('signIn/createMobileAuth', functi
75
76
  };
76
77
  return [4, API.authService.createAuth(requestBody)];
77
78
  case 1:
78
- data = (_e.sent()).data;
79
- if (!data.errors) {
80
- thunkApi.dispatch(redirection(data === null || data === void 0 ? void 0 : data.auth_type));
81
- (_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, requestBody.user_credentail);
82
- }
79
+ data = _e.sent();
80
+ thunkApi.dispatch(redirection(data === null || data === void 0 ? void 0 : data.auth_type));
81
+ (_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, requestBody.user_credentail);
83
82
  return [2, { data: data, formData: params }];
84
83
  }
85
84
  });
@@ -93,6 +92,8 @@ export var resendOTPMobile = createAsyncThunk('signIn/resendOTPMobile', function
93
92
  _a = thunkApi.getState(), settings = _a.settings, signIn = _a.signIn;
94
93
  authData = signIn.data.auth;
95
94
  requestBody = {
95
+ country: settings.data.businessCountry.iso2,
96
+ scope: settings.data.appConfig.scope,
96
97
  lang: settings.data.language,
97
98
  user_credentail: {
98
99
  phone: authData.mobile || '',
@@ -104,7 +105,7 @@ export var resendOTPMobile = createAsyncThunk('signIn/resendOTPMobile', function
104
105
  };
105
106
  return [4, API.authService.createAuth(requestBody)];
106
107
  case 1:
107
- data = (_d.sent()).data;
108
+ data = _d.sent();
108
109
  return [2, data];
109
110
  }
110
111
  });
@@ -117,6 +118,8 @@ export var createEmailAuth = createAsyncThunk('signIn/createEmailAuth', function
117
118
  case 0:
118
119
  settings = thunkApi.getState().settings;
119
120
  requestBody = {
121
+ country: settings.data.businessCountry.iso2,
122
+ scope: settings.data.appConfig.scope,
120
123
  lang: settings.data.language,
121
124
  user_credentail: {
122
125
  email: params.email || ''
@@ -127,11 +130,9 @@ export var createEmailAuth = createAsyncThunk('signIn/createEmailAuth', function
127
130
  };
128
131
  return [4, API.authService.createAuth(requestBody)];
129
132
  case 1:
130
- data = (_c.sent()).data;
131
- if (!data.errors) {
132
- thunkApi.dispatch(redirection(data === null || data === void 0 ? void 0 : data.auth_type));
133
- (_b = (_a = settings.data.appConfig).onStepCompleted) === null || _b === void 0 ? void 0 : _b.call(_a, settings.data.activeScreen.name, requestBody.user_credentail);
134
- }
133
+ data = _c.sent();
134
+ thunkApi.dispatch(redirection(data === null || data === void 0 ? void 0 : data.auth_type));
135
+ (_b = (_a = settings.data.appConfig).onStepCompleted) === null || _b === void 0 ? void 0 : _b.call(_a, settings.data.activeScreen.name, requestBody.user_credentail);
135
136
  return [2, { data: data, formData: params }];
136
137
  }
137
138
  });
@@ -144,6 +145,8 @@ export var resendOTPEmail = createAsyncThunk('signIn/resendOTPEmail', function (
144
145
  _a = thunkApi.getState(), settings = _a.settings, signIn = _a.signIn;
145
146
  authData = signIn.data.auth;
146
147
  requestBody = {
148
+ country: settings.data.businessCountry.iso2,
149
+ scope: settings.data.appConfig.scope,
147
150
  lang: settings.data.language,
148
151
  user_credentail: {
149
152
  email: authData.email || ''
@@ -154,7 +157,7 @@ export var resendOTPEmail = createAsyncThunk('signIn/resendOTPEmail', function (
154
157
  };
155
158
  return [4, API.authService.createAuth(requestBody)];
156
159
  case 1:
157
- data = (_b.sent()).data;
160
+ data = _b.sent();
158
161
  return [2, data];
159
162
  }
160
163
  });
@@ -177,7 +180,6 @@ export var verifyAuthOTP = createAsyncThunk('signIn/verifyAuthOTP', function (pa
177
180
  new_user: responseBody === null || responseBody === void 0 ? void 0 : responseBody.new_user,
178
181
  sign_in: responseBody === null || responseBody === void 0 ? void 0 : responseBody.sign_in,
179
182
  remember_me: responseBody === null || responseBody === void 0 ? void 0 : responseBody.remember_me,
180
- scopes: responseBody === null || responseBody === void 0 ? void 0 : responseBody.scopes,
181
183
  step_name: mobile ? SignIn_STEP_NAMES.VERIFY_AUTH_MOBILE_OTP : SignIn_STEP_NAMES.VERIFY_AUTH_EMAIL_OTP,
182
184
  encryption_contract: ['data']
183
185
  };
@@ -187,7 +189,7 @@ export var verifyAuthOTP = createAsyncThunk('signIn/verifyAuthOTP', function (pa
187
189
  if (!data.errors) {
188
190
  (_c = (_b = settings.data.appConfig).onStepCompleted) === null || _c === void 0 ? void 0 : _c.call(_b, settings.data.activeScreen.name, { otp: params.otp });
189
191
  thunkApi.dispatch(handleOpen(false));
190
- (_e = (_d = settings.data.appConfig).onFlowCompleted) === null || _e === void 0 ? void 0 : _e.call(_d, data, getAxiosHeaders());
192
+ (_e = (_d = settings.data.appConfig).onFlowCompleted) === null || _e === void 0 ? void 0 : _e.call(_d, data);
191
193
  }
192
194
  return [2, { data: data, formData: params }];
193
195
  }
@@ -210,7 +212,6 @@ export var verifyAuthPassword = createAsyncThunk('signIn/verifyAuthPassword', fu
210
212
  new_user: responseBody === null || responseBody === void 0 ? void 0 : responseBody.new_user,
211
213
  sign_in: responseBody === null || responseBody === void 0 ? void 0 : responseBody.sign_in,
212
214
  remember_me: responseBody === null || responseBody === void 0 ? void 0 : responseBody.remember_me,
213
- scopes: responseBody === null || responseBody === void 0 ? void 0 : responseBody.scopes,
214
215
  step_name: mobile ? SignIn_STEP_NAMES.VERIFY_AUTH_MOBILE : SignIn_STEP_NAMES.VERIFY_AUTH_EMAIL,
215
216
  encryption_contract: ['data']
216
217
  };
@@ -224,7 +225,7 @@ export var verifyAuthPassword = createAsyncThunk('signIn/verifyAuthPassword', fu
224
225
  }
225
226
  else {
226
227
  thunkApi.dispatch(handleOpen(false));
227
- (_f = (_e = settings.data.appConfig).onFlowCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, data, getAxiosHeaders());
228
+ (_f = (_e = settings.data.appConfig).onFlowCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, data);
228
229
  }
229
230
  }
230
231
  return [2, data];
@@ -237,8 +238,8 @@ var initialState = {
237
238
  data: {
238
239
  auth: {
239
240
  countryCode: defaultCountry,
240
- mobile: null,
241
- email: null
241
+ mobile: '',
242
+ email: ''
242
243
  },
243
244
  otpData: {
244
245
  otp: ''
@@ -269,15 +270,9 @@ export var signInSlice = createSlice({
269
270
  state.error = null;
270
271
  })
271
272
  .addCase(createMobileAuth.fulfilled, function (state, action) {
272
- var _a;
273
273
  state.loading = false;
274
274
  state.error = null;
275
- var _b = action.payload, data = _b.data, formData = _b.formData;
276
- var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
277
- if (description) {
278
- state.error = description;
279
- return;
280
- }
275
+ var _a = action.payload, data = _a.data, formData = _a.formData;
281
276
  state.data.auth = __assign(__assign({}, formData), { email: null, responseBody: data });
282
277
  })
283
278
  .addCase(createMobileAuth.rejected, function (state, action) {
@@ -289,15 +284,9 @@ export var signInSlice = createSlice({
289
284
  state.error = null;
290
285
  })
291
286
  .addCase(resendOTPMobile.fulfilled, function (state, action) {
292
- var _a;
293
287
  state.loading = false;
294
288
  state.error = null;
295
289
  var data = action.payload;
296
- var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
297
- if (description) {
298
- state.error = description;
299
- return;
300
- }
301
290
  state.data.auth.responseBody = data;
302
291
  })
303
292
  .addCase(resendOTPMobile.rejected, function (state, action) {
@@ -309,16 +298,10 @@ export var signInSlice = createSlice({
309
298
  state.error = null;
310
299
  })
311
300
  .addCase(createEmailAuth.fulfilled, function (state, action) {
312
- var _a;
313
301
  state.loading = false;
314
302
  state.error = null;
315
- var _b = action.payload, data = _b.data, formData = _b.formData;
316
- var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
317
- if (description) {
318
- state.error = description;
319
- return;
320
- }
321
- state.data.auth = __assign(__assign(__assign({}, state.data.auth), formData), { mobile: null, responseBody: data });
303
+ var _a = action.payload, data = _a.data, formData = _a.formData;
304
+ state.data.auth = __assign(__assign(__assign({}, state.data.auth), formData), { mobile: '', responseBody: data });
322
305
  })
323
306
  .addCase(createEmailAuth.rejected, function (state, action) {
324
307
  state.loading = false;
@@ -329,15 +312,9 @@ export var signInSlice = createSlice({
329
312
  state.error = null;
330
313
  })
331
314
  .addCase(resendOTPEmail.fulfilled, function (state, action) {
332
- var _a;
333
315
  state.loading = false;
334
316
  state.error = null;
335
317
  var data = action.payload;
336
- var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
337
- if (description) {
338
- state.error = description;
339
- return;
340
- }
341
318
  state.data.auth.responseBody = data;
342
319
  })
343
320
  .addCase(resendOTPEmail.rejected, function (state, action) {