@tap-payments/auth-jsconnect 2.12.0-beta → 2.12.0-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 (341) hide show
  1. package/build/@types/app.d.ts +3 -1
  2. package/build/@types/app.js +1 -0
  3. package/build/@types/form.d.ts +4 -2
  4. package/build/@types/index.d.ts +1 -0
  5. package/build/@types/index.js +1 -0
  6. package/build/@types/terminal.d.ts +104 -0
  7. package/build/@types/terminal.js +1 -0
  8. package/build/api/account.d.ts +2 -2
  9. package/build/api/account.js +7 -4
  10. package/build/api/auth.d.ts +18 -3
  11. package/build/api/auth.js +7 -3
  12. package/build/api/axios.d.ts +1 -1
  13. package/build/api/axios.js +9 -1
  14. package/build/api/entity.d.ts +3 -0
  15. package/build/api/headers.d.ts +6 -0
  16. package/build/api/headers.js +18 -0
  17. package/build/api/index.d.ts +15 -8
  18. package/build/api/index.js +5 -2
  19. package/build/api/lead.d.ts +3 -2
  20. package/build/api/operator.d.ts +1 -1
  21. package/build/api/operator.js +5 -2
  22. package/build/api/terminal.d.ts +25 -0
  23. package/build/api/terminal.js +55 -0
  24. package/build/app/rootReducer.d.ts +2 -0
  25. package/build/app/rootReducer.js +5 -1
  26. package/build/app/session.d.ts +17 -0
  27. package/build/app/session.js +28 -0
  28. package/build/app/settings.js +1 -1
  29. package/build/app/store.d.ts +4 -0
  30. package/build/assets/currencies/AEDSymbol.js +1 -1
  31. package/build/assets/currencies/SARSymbol.js +1 -1
  32. package/build/assets/locales/ar.json +51 -15
  33. package/build/assets/locales/en.json +56 -46
  34. package/build/components/DeviceCard/DeviceCard.d.ts +19 -0
  35. package/build/components/DeviceCard/DeviceCard.js +102 -0
  36. package/build/components/DeviceCard/index.d.ts +3 -0
  37. package/build/components/DeviceCard/index.js +2 -0
  38. package/build/components/OTPTimer/OTPTimer.d.ts +2 -1
  39. package/build/components/OTPTimer/OTPTimer.js +4 -4
  40. package/build/components/Tooltip/Tooltip.js +1 -1
  41. package/build/components/TruncatedTooltipText/TruncatedTooltipText.d.ts +7 -0
  42. package/build/components/TruncatedTooltipText/TruncatedTooltipText.js +33 -0
  43. package/build/components/TruncatedTooltipText/index.d.ts +2 -0
  44. package/build/components/TruncatedTooltipText/index.js +2 -0
  45. package/build/constants/api.d.ts +1 -1
  46. package/build/constants/api.js +2 -2
  47. package/build/constants/app.d.ts +27 -3
  48. package/build/constants/app.js +350 -40
  49. package/build/constants/dummy.d.ts +2 -29
  50. package/build/constants/dummy.js +4 -4
  51. package/build/constants/flows.d.ts +27 -22
  52. package/build/constants/flows.js +27 -23
  53. package/build/constants/validation.d.ts +2 -0
  54. package/build/constants/validation.js +2 -0
  55. package/build/features/app/auth/authStore.d.ts +4 -0
  56. package/build/features/app/auth/authStore.js +168 -54
  57. package/build/features/app/bank/bankStore.d.ts +7 -0
  58. package/build/features/app/bank/bankStore.js +110 -20
  59. package/build/features/app/board/boardStore.d.ts +5 -0
  60. package/build/features/app/board/boardStore.js +94 -7
  61. package/build/features/app/brand/brandStore.d.ts +7 -0
  62. package/build/features/app/brand/brandStore.js +107 -19
  63. package/build/features/app/business/businessStore.d.ts +10 -0
  64. package/build/features/app/business/businessStore.js +130 -37
  65. package/build/features/app/connect/connectStore.d.ts +12 -5
  66. package/build/features/app/connect/connectStore.js +146 -31
  67. package/build/features/app/connectExpress/connectExpressStore.d.ts +10 -5
  68. package/build/features/app/connectExpress/connectExpressStore.js +159 -21
  69. package/build/features/app/entity/entityStore.d.ts +7 -0
  70. package/build/features/app/entity/entityStore.js +108 -18
  71. package/build/features/app/individual/individualStore.d.ts +9 -0
  72. package/build/features/app/individual/individualStore.js +126 -34
  73. package/build/features/app/kyc/kycStore.d.ts +5 -5
  74. package/build/features/app/kyc/kycStore.js +4 -1
  75. package/build/features/app/password/passwordStore.d.ts +9 -0
  76. package/build/features/app/password/passwordStore.js +130 -46
  77. package/build/features/app/signIn/signInStore.js +12 -16
  78. package/build/features/app/tax/taxStore.d.ts +7 -0
  79. package/build/features/app/tax/taxStore.js +104 -17
  80. package/build/features/app/terminal/terminalStore.d.ts +119 -0
  81. package/build/features/app/terminal/terminalStore.js +781 -0
  82. package/build/features/auth/Auth.js +3 -2
  83. package/build/features/auth/screens/AuthenticationList/AuthenticationList.js +10 -7
  84. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +6 -3
  85. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.js +6 -4
  86. package/build/features/auth/screens/AuthenticationList/EntityList.js +11 -3
  87. package/build/features/auth/screens/OTPSessionExpired/OTPInput.d.ts +3 -0
  88. package/build/features/auth/screens/OTPSessionExpired/OTPInput.js +58 -0
  89. package/build/features/auth/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
  90. package/build/features/auth/screens/OTPSessionExpired/OTPSessionExpired.js +85 -0
  91. package/build/features/auth/screens/OTPSessionExpired/index.d.ts +2 -0
  92. package/build/features/auth/screens/OTPSessionExpired/index.js +2 -0
  93. package/build/features/auth/screens/OTPSessionExpired/validation.d.ts +8 -0
  94. package/build/features/auth/screens/OTPSessionExpired/validation.js +4 -0
  95. package/build/features/bank/Bank.js +3 -2
  96. package/build/features/bank/screens/OTPSessionExpired/OTPInput.d.ts +7 -0
  97. package/build/features/bank/screens/OTPSessionExpired/OTPInput.js +51 -0
  98. package/build/features/bank/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
  99. package/build/features/bank/screens/OTPSessionExpired/OTPSessionExpired.js +75 -0
  100. package/build/features/bank/screens/OTPSessionExpired/index.d.ts +2 -0
  101. package/build/features/bank/screens/OTPSessionExpired/index.js +2 -0
  102. package/build/features/bank/screens/OTPSessionExpired/validation.d.ts +8 -0
  103. package/build/features/bank/screens/OTPSessionExpired/validation.js +4 -0
  104. package/build/features/board/Board.js +5 -4
  105. package/build/features/board/screens/OTPSessionExpired/OTPInput.d.ts +7 -0
  106. package/build/features/board/screens/OTPSessionExpired/OTPInput.js +51 -0
  107. package/build/features/board/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
  108. package/build/features/board/screens/OTPSessionExpired/OTPSessionExpired.js +75 -0
  109. package/build/features/board/screens/OTPSessionExpired/index.d.ts +2 -0
  110. package/build/features/board/screens/OTPSessionExpired/index.js +2 -0
  111. package/build/features/board/screens/OTPSessionExpired/validation.d.ts +8 -0
  112. package/build/features/board/screens/OTPSessionExpired/validation.js +4 -0
  113. package/build/features/brand/Brand.js +3 -2
  114. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +2 -2
  115. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +1 -1
  116. package/build/features/brand/screens/OTPSessionExpired/OTPInput.d.ts +7 -0
  117. package/build/features/brand/screens/OTPSessionExpired/OTPInput.js +51 -0
  118. package/build/features/brand/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
  119. package/build/features/brand/screens/OTPSessionExpired/OTPSessionExpired.js +75 -0
  120. package/build/features/brand/screens/OTPSessionExpired/index.d.ts +2 -0
  121. package/build/features/brand/screens/OTPSessionExpired/index.js +2 -0
  122. package/build/features/brand/screens/OTPSessionExpired/validation.d.ts +8 -0
  123. package/build/features/brand/screens/OTPSessionExpired/validation.js +4 -0
  124. package/build/features/business/Business.js +3 -2
  125. package/build/features/business/screens/BusinessType/BusinessType.js +15 -5
  126. package/build/features/business/screens/BusinessType/EntityLicenseList.js +11 -5
  127. package/build/features/business/screens/BusinessType/LicenseList.js +20 -12
  128. package/build/features/business/screens/BusinessType/LicenseType.d.ts +2 -2
  129. package/build/features/business/screens/BusinessType/UnifiedNumber.d.ts +35 -0
  130. package/build/features/business/screens/BusinessType/UnifiedNumber.js +84 -0
  131. package/build/features/business/screens/BusinessType/validation.d.ts +6 -3
  132. package/build/features/business/screens/BusinessType/validation.js +31 -10
  133. package/build/features/business/screens/Customers/CustomerLocations.d.ts +2 -2
  134. package/build/features/business/screens/Customers/RefundPolicy.d.ts +1 -1
  135. package/build/features/business/screens/OTPSessionExpired/OTPInput.d.ts +7 -0
  136. package/build/features/business/screens/OTPSessionExpired/OTPInput.js +51 -0
  137. package/build/features/business/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
  138. package/build/features/business/screens/OTPSessionExpired/OTPSessionExpired.js +75 -0
  139. package/build/features/business/screens/OTPSessionExpired/index.d.ts +2 -0
  140. package/build/features/business/screens/OTPSessionExpired/index.js +2 -0
  141. package/build/features/business/screens/OTPSessionExpired/validation.d.ts +8 -0
  142. package/build/features/business/screens/OTPSessionExpired/validation.js +4 -0
  143. package/build/features/connect/Connect.js +3 -2
  144. package/build/features/connect/screens/OTPSessionExpired/OTPInput.d.ts +5 -0
  145. package/build/features/connect/screens/OTPSessionExpired/OTPInput.js +58 -0
  146. package/build/features/connect/screens/OTPSessionExpired/OTPSessionExpired.d.ts +3 -0
  147. package/build/features/connect/screens/OTPSessionExpired/OTPSessionExpired.js +86 -0
  148. package/build/features/connect/screens/OTPSessionExpired/index.d.ts +2 -0
  149. package/build/features/connect/screens/OTPSessionExpired/index.js +2 -0
  150. package/build/features/connect/screens/OTPSessionExpired/validation.d.ts +8 -0
  151. package/build/features/connect/screens/OTPSessionExpired/validation.js +4 -0
  152. package/build/features/connectExpress/ConnectExpress.js +3 -2
  153. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +10 -10
  154. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +6 -3
  155. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.js +6 -4
  156. package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +11 -3
  157. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +1 -0
  158. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +27 -16
  159. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +2 -2
  160. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +2 -2
  161. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +1 -1
  162. package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.d.ts +36 -0
  163. package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.js +81 -0
  164. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +6 -3
  165. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +57 -21
  166. package/build/features/connectExpress/screens/Mobile/Mobile.js +7 -6
  167. package/build/features/connectExpress/screens/OTPSessionExpired/OTPInput.d.ts +3 -0
  168. package/build/features/connectExpress/screens/OTPSessionExpired/OTPInput.js +58 -0
  169. package/build/features/connectExpress/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
  170. package/build/features/connectExpress/screens/OTPSessionExpired/OTPSessionExpired.js +85 -0
  171. package/build/features/connectExpress/screens/OTPSessionExpired/index.d.ts +2 -0
  172. package/build/features/connectExpress/screens/OTPSessionExpired/index.js +2 -0
  173. package/build/features/connectExpress/screens/OTPSessionExpired/validation.d.ts +8 -0
  174. package/build/features/connectExpress/screens/OTPSessionExpired/validation.js +4 -0
  175. package/build/features/entity/Entity.js +3 -2
  176. package/build/features/entity/screens/EntityName/EntityName.js +16 -15
  177. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +2 -2
  178. package/build/features/entity/screens/EntityName/UnifiedNumber.js +2 -2
  179. package/build/features/entity/screens/EntityName/validation.d.ts +50 -48
  180. package/build/features/entity/screens/EntityName/validation.js +100 -85
  181. package/build/features/entity/screens/OTPSessionExpired/OTPInput.d.ts +7 -0
  182. package/build/features/entity/screens/OTPSessionExpired/OTPInput.js +51 -0
  183. package/build/features/entity/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
  184. package/build/features/entity/screens/OTPSessionExpired/OTPSessionExpired.js +75 -0
  185. package/build/features/entity/screens/OTPSessionExpired/index.d.ts +2 -0
  186. package/build/features/entity/screens/OTPSessionExpired/index.js +2 -0
  187. package/build/features/entity/screens/OTPSessionExpired/validation.d.ts +8 -0
  188. package/build/features/entity/screens/OTPSessionExpired/validation.js +4 -0
  189. package/build/features/featuresScreens.d.ts +1 -0
  190. package/build/features/featuresScreens.js +187 -0
  191. package/build/features/individual/Individual.js +3 -2
  192. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +2 -2
  193. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +2 -2
  194. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +2 -2
  195. package/build/features/individual/screens/OTPSessionExpired/OTPInput.d.ts +7 -0
  196. package/build/features/individual/screens/OTPSessionExpired/OTPInput.js +51 -0
  197. package/build/features/individual/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
  198. package/build/features/individual/screens/OTPSessionExpired/OTPSessionExpired.js +75 -0
  199. package/build/features/individual/screens/OTPSessionExpired/index.d.ts +2 -0
  200. package/build/features/individual/screens/OTPSessionExpired/index.js +2 -0
  201. package/build/features/individual/screens/OTPSessionExpired/validation.d.ts +8 -0
  202. package/build/features/individual/screens/OTPSessionExpired/validation.js +4 -0
  203. package/build/features/password/Password.js +3 -2
  204. package/build/features/password/screens/OTPSessionExpired/OTPInput.d.ts +7 -0
  205. package/build/features/password/screens/OTPSessionExpired/OTPInput.js +51 -0
  206. package/build/features/password/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
  207. package/build/features/password/screens/OTPSessionExpired/OTPSessionExpired.js +75 -0
  208. package/build/features/password/screens/OTPSessionExpired/index.d.ts +2 -0
  209. package/build/features/password/screens/OTPSessionExpired/index.js +2 -0
  210. package/build/features/password/screens/OTPSessionExpired/validation.d.ts +8 -0
  211. package/build/features/password/screens/OTPSessionExpired/validation.js +4 -0
  212. package/build/features/shared/Address/CountryList.d.ts +1 -1
  213. package/build/features/shared/Address/InputSelect.d.ts +1 -1
  214. package/build/features/shared/Button/Button.js +1 -1
  215. package/build/features/shared/Button/FlowsButtons.d.ts +1 -0
  216. package/build/features/shared/Button/FlowsButtons.js +2 -2
  217. package/build/features/shared/OTPVerifySecurityError/OTPVerifySecurityError.d.ts +3 -0
  218. package/build/features/shared/OTPVerifySecurityError/OTPVerifySecurityError.js +9 -0
  219. package/build/features/shared/OTPVerifySecurityError/index.d.ts +2 -0
  220. package/build/features/shared/OTPVerifySecurityError/index.js +2 -0
  221. package/build/features/shared/PushNotification/PushNotification.d.ts +11 -0
  222. package/build/features/shared/PushNotification/PushNotification.js +34 -0
  223. package/build/features/shared/PushNotification/index.d.ts +2 -0
  224. package/build/features/shared/PushNotification/index.js +2 -0
  225. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +2 -1
  226. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +6 -5
  227. package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +3 -1
  228. package/build/features/shared/SuccessScreen/SuccessScreen.js +2 -2
  229. package/build/features/tax/Tax.js +3 -2
  230. package/build/features/tax/screens/OTPSessionExpired/OTPInput.d.ts +7 -0
  231. package/build/features/tax/screens/OTPSessionExpired/OTPInput.js +51 -0
  232. package/build/features/tax/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
  233. package/build/features/tax/screens/OTPSessionExpired/OTPSessionExpired.js +75 -0
  234. package/build/features/tax/screens/OTPSessionExpired/index.d.ts +2 -0
  235. package/build/features/tax/screens/OTPSessionExpired/index.js +2 -0
  236. package/build/features/tax/screens/OTPSessionExpired/validation.d.ts +8 -0
  237. package/build/features/tax/screens/OTPSessionExpired/validation.js +4 -0
  238. package/build/features/terminal/Terminal.d.ts +14 -0
  239. package/build/features/terminal/Terminal.js +96 -0
  240. package/build/features/terminal/index.d.ts +1 -0
  241. package/build/features/terminal/index.js +1 -0
  242. package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.d.ts +3 -0
  243. package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.js +68 -0
  244. package/build/features/terminal/screens/LinkNewTerminal/index.d.ts +2 -0
  245. package/build/features/terminal/screens/LinkNewTerminal/index.js +2 -0
  246. package/build/features/terminal/screens/LinkNewTerminal/styles.d.ts +10 -0
  247. package/build/features/terminal/screens/LinkNewTerminal/styles.js +28 -0
  248. package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.d.ts +3 -0
  249. package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.js +50 -0
  250. package/build/features/terminal/screens/LinkedSuccess/index.d.ts +2 -0
  251. package/build/features/terminal/screens/LinkedSuccess/index.js +2 -0
  252. package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.d.ts +3 -0
  253. package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.js +55 -0
  254. package/build/features/terminal/screens/LinkedTerminalInfo/index.d.ts +2 -0
  255. package/build/features/terminal/screens/LinkedTerminalInfo/index.js +2 -0
  256. package/build/features/terminal/screens/Loading/Loading.d.ts +4 -0
  257. package/build/features/terminal/screens/Loading/Loading.js +10 -0
  258. package/build/features/terminal/screens/Loading/index.d.ts +2 -0
  259. package/build/features/terminal/screens/Loading/index.js +2 -0
  260. package/build/features/terminal/screens/NoTerminalDeviceLinked/NoTerminalDeviceLinked.d.ts +3 -0
  261. package/build/features/terminal/screens/NoTerminalDeviceLinked/NoTerminalDeviceLinked.js +103 -0
  262. package/build/features/terminal/screens/NoTerminalDeviceLinked/index.d.ts +2 -0
  263. package/build/features/terminal/screens/NoTerminalDeviceLinked/index.js +2 -0
  264. package/build/features/terminal/screens/NoTerminalDeviceLinked/styles.d.ts +36 -0
  265. package/build/features/terminal/screens/NoTerminalDeviceLinked/styles.js +34 -0
  266. package/build/features/terminal/screens/OTPSessionExpired/OTPInput.d.ts +7 -0
  267. package/build/features/terminal/screens/OTPSessionExpired/OTPInput.js +51 -0
  268. package/build/features/terminal/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
  269. package/build/features/terminal/screens/OTPSessionExpired/OTPSessionExpired.js +89 -0
  270. package/build/features/terminal/screens/OTPSessionExpired/index.d.ts +2 -0
  271. package/build/features/terminal/screens/OTPSessionExpired/index.js +2 -0
  272. package/build/features/terminal/screens/OTPSessionExpired/validation.d.ts +8 -0
  273. package/build/features/terminal/screens/OTPSessionExpired/validation.js +4 -0
  274. package/build/features/terminal/screens/OperatorError/OperatorError.d.ts +5 -0
  275. package/build/features/terminal/screens/OperatorError/OperatorError.js +9 -0
  276. package/build/features/terminal/screens/OperatorError/index.d.ts +2 -0
  277. package/build/features/terminal/screens/OperatorError/index.js +2 -0
  278. package/build/features/terminal/screens/POSDeviceListPage/POSDeviceListPage.d.ts +3 -0
  279. package/build/features/terminal/screens/POSDeviceListPage/POSDeviceListPage.js +50 -0
  280. package/build/features/terminal/screens/POSDeviceListPage/index.d.ts +2 -0
  281. package/build/features/terminal/screens/POSDeviceListPage/index.js +2 -0
  282. package/build/features/terminal/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +3 -0
  283. package/build/features/terminal/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +21 -0
  284. package/build/features/terminal/screens/ResetPasswordSuccess/index.d.ts +2 -0
  285. package/build/features/terminal/screens/ResetPasswordSuccess/index.js +2 -0
  286. package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
  287. package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +32 -0
  288. package/build/features/terminal/screens/SuccessWithFlowButtons/index.d.ts +2 -0
  289. package/build/features/terminal/screens/SuccessWithFlowButtons/index.js +2 -0
  290. package/build/features/terminal/screens/TerminalDeviceList/DeviceList.d.ts +9 -0
  291. package/build/features/terminal/screens/TerminalDeviceList/DeviceList.js +20 -0
  292. package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.d.ts +3 -0
  293. package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.js +153 -0
  294. package/build/features/terminal/screens/TerminalDeviceList/index.d.ts +2 -0
  295. package/build/features/terminal/screens/TerminalDeviceList/index.js +2 -0
  296. package/build/features/terminal/screens/TerminalDeviceList/styles.d.ts +9 -0
  297. package/build/features/terminal/screens/TerminalDeviceList/styles.js +13 -0
  298. package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.d.ts +3 -0
  299. package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.js +51 -0
  300. package/build/features/terminal/screens/UnlinkedSuccess/index.d.ts +2 -0
  301. package/build/features/terminal/screens/UnlinkedSuccess/index.js +2 -0
  302. package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.d.ts +3 -0
  303. package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.js +99 -0
  304. package/build/features/terminal/screens/UnlinkedTerminalInfo/index.d.ts +2 -0
  305. package/build/features/terminal/screens/UnlinkedTerminalInfo/index.js +2 -0
  306. package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.d.ts +26 -0
  307. package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.js +30 -0
  308. package/build/features/terminal/screens/Verify/OTPInput.d.ts +7 -0
  309. package/build/features/terminal/screens/Verify/OTPInput.js +51 -0
  310. package/build/features/terminal/screens/Verify/Verify.d.ts +5 -0
  311. package/build/features/terminal/screens/Verify/Verify.js +89 -0
  312. package/build/features/terminal/screens/Verify/index.d.ts +2 -0
  313. package/build/features/terminal/screens/Verify/index.js +2 -0
  314. package/build/features/terminal/screens/Verify/validation.d.ts +8 -0
  315. package/build/features/terminal/screens/Verify/validation.js +4 -0
  316. package/build/features/terminal/screens/shared/Header.d.ts +10 -0
  317. package/build/features/terminal/screens/shared/Header.js +30 -0
  318. package/build/features/terminal/screens/shared/POSDeviceList.d.ts +11 -0
  319. package/build/features/terminal/screens/shared/POSDeviceList.js +30 -0
  320. package/build/features/terminal/screens/shared/index.d.ts +5 -0
  321. package/build/features/terminal/screens/shared/index.js +5 -0
  322. package/build/features/terminal/screens/shared/styles.d.ts +196 -0
  323. package/build/features/terminal/screens/shared/styles.js +155 -0
  324. package/build/features/terminal/screens/shared/utils.d.ts +7 -0
  325. package/build/features/terminal/screens/shared/utils.js +24 -0
  326. package/build/hooks/index.d.ts +1 -0
  327. package/build/hooks/index.js +1 -0
  328. package/build/hooks/useAppDispatch.d.ts +2 -0
  329. package/build/hooks/useSessionExpiryHandler.d.ts +8 -0
  330. package/build/hooks/useSessionExpiryHandler.js +71 -0
  331. package/build/index.d.ts +3 -2
  332. package/build/index.js +4 -2
  333. package/build/theme/palette.js +12 -0
  334. package/build/theme/typography.js +4 -0
  335. package/build/utils/common.js +13 -6
  336. package/build/utils/error.d.ts +4 -0
  337. package/build/utils/error.js +12 -0
  338. package/build/utils/string.d.ts +3 -1
  339. package/build/utils/string.js +12 -2
  340. package/build/utils/validation.js +1 -1
  341. package/package.json +3 -3
@@ -67,11 +67,11 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
67
67
  };
68
68
  var _a;
69
69
  import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
70
- import API from '../../../api';
70
+ import API, { setAuthSessionToGlobalHeaders } from '../../../api';
71
71
  import { FlowsTypes, IndividualGender, DocumentPurpose } from '../../../@types';
72
- import { handleNextScreenStep, handlePrevScreenStep, handlePublicKey, handleSetCountryByIso2, onCloseComplete } from '../../../app/settings';
72
+ import { handleCurrentActiveScreen, handleNextScreenStep, handlePrevScreenStep, handlePublicKey, handleSetCountryByIso2, onCloseComplete } from '../../../app/settings';
73
73
  import { defaultCountry, IDENTIFICATION_TYPE, INDIVIDUAl_STEP_NAMES, MONTHLY_INCOME_LIST } from '../../../constants';
74
- import { convertNumbers2English, dateFormat, findCountryByIddPrefix, findCountryByIso2, hasNoneEditableValue, getUserNameObject, getUserName, sleep, isValidEmail, getRecentDocumentBasedOnPurpose, formatNumberAsCurrency, removeAllCharsFromNumber, mapUserList, sortUserList, getIndividualType, isOtherThanKWOrSA, isKWOrSA, sendCustomEventToGTM } from '../../../utils';
74
+ import { convertNumbers2English, dateFormat, findCountryByIddPrefix, findCountryByIso2, hasNoneEditableValue, getUserNameObject, getUserName, sleep, isValidEmail, getRecentDocumentBasedOnPurpose, formatNumberAsCurrency, removeAllCharsFromNumber, mapUserList, sortUserList, getIndividualType, isOtherThanKWOrSA, isKWOrSA, sendCustomEventToGTM, isAuthenticationVerificationFailed } from '../../../utils';
75
75
  export var verifyToken = createAsyncThunk('individual/verifyToken', function (_a, thunkApi) {
76
76
  var token = _a.token, isInternally = _a.isInternally, isUpdatePhoneInfo = _a.isUpdatePhoneInfo;
77
77
  return __awaiter(void 0, void 0, void 0, function () {
@@ -93,6 +93,7 @@ export var verifyToken = createAsyncThunk('individual/verifyToken', function (_a
93
93
  countries = settings.data.countries;
94
94
  if (((_e = data.errors) === null || _e === void 0 ? void 0 : _e.length) || (data === null || data === void 0 ? void 0 : data.mw_error))
95
95
  throw new Error(data.errors[0].description || (data === null || data === void 0 ? void 0 : data.mw_error));
96
+ setAuthSessionToGlobalHeaders(data === null || data === void 0 ? void 0 : data.auth_session);
96
97
  if (isInternally)
97
98
  data.step_name = INDIVIDUAl_STEP_NAMES.INDIVIDUAl_INFO;
98
99
  _b = data || {}, country_code = _b.country_code, config = _b.config, boardId = _b.id;
@@ -445,9 +446,9 @@ export var retrieveBoardDetails = createAsyncThunk('retrieveIndividualBoardDetai
445
446
  });
446
447
  export var verifyLeadOTP = createAsyncThunk('verifyIndividualLeadOTP', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
447
448
  var _a, individual, settings, responseBody, countries, payload, data, userList, recipientData, publicKey, countryCode, _b, business_id, recipient, board_id, board_info_id, notification, _c, id, type, individualData, birthCountry;
448
- var _d, _e, _f, _g, _h, _j, _k, _l;
449
- return __generator(this, function (_m) {
450
- switch (_m.label) {
449
+ var _d, _e, _f, _g, _h, _j, _k;
450
+ return __generator(this, function (_l) {
451
+ switch (_l.label) {
451
452
  case 0:
452
453
  _a = thunkApi.getState(), individual = _a.individual, settings = _a.settings;
453
454
  responseBody = individual.data.verify.responseBody;
@@ -459,40 +460,43 @@ export var verifyLeadOTP = createAsyncThunk('verifyIndividualLeadOTP', function
459
460
  step_name: INDIVIDUAl_STEP_NAMES.PHONE_AUTH,
460
461
  encryption_contract: ['data']
461
462
  };
462
- return [4, API.leadService.verifyLeadOTP(payload)];
463
+ return [4, API.leadService.verifyTokenOTP(payload).catch(function (err) {
464
+ if (isAuthenticationVerificationFailed(err === null || err === void 0 ? void 0 : err.message))
465
+ thunkApi.dispatch(handleNextScreenStep('INDIVIDUAL_OTP_VERIFY_SECURITY_ERROR_STEP'));
466
+ throw new Error(err === null || err === void 0 ? void 0 : err.message);
467
+ })];
463
468
  case 1:
464
- data = (_m.sent()).data;
469
+ data = _l.sent();
470
+ setAuthSessionToGlobalHeaders(data === null || data === void 0 ? void 0 : data.auth_session);
465
471
  recipientData = undefined;
466
- if ((_e = data.errors) === null || _e === void 0 ? void 0 : _e.length)
467
- throw new Error(data.errors[0].description);
468
- publicKey = (_f = data === null || data === void 0 ? void 0 : data.config) === null || _f === void 0 ? void 0 : _f.public_key;
472
+ publicKey = (_e = data === null || data === void 0 ? void 0 : data.config) === null || _e === void 0 ? void 0 : _e.public_key;
469
473
  countryCode = data === null || data === void 0 ? void 0 : data.country_code;
470
474
  if (publicKey)
471
475
  thunkApi.dispatch(handlePublicKey(publicKey));
472
- if (!((_g = settings.data.businessCountry) === null || _g === void 0 ? void 0 : _g.iso2) && countryCode)
476
+ if (!((_f = settings.data.businessCountry) === null || _f === void 0 ? void 0 : _f.iso2) && countryCode)
473
477
  thunkApi.dispatch(handleSetCountryByIso2(countryCode));
474
478
  _b = data || {}, business_id = _b.business_id, recipient = _b.recipient, board_id = _b.id, board_info_id = _b.board_info_id;
475
479
  recipientData = recipient;
476
- if (!!((_h = data === null || data === void 0 ? void 0 : data.recipient) === null || _h === void 0 ? void 0 : _h.id)) return [3, 3];
480
+ if (!!((_g = data === null || data === void 0 ? void 0 : data.recipient) === null || _g === void 0 ? void 0 : _g.id)) return [3, 3];
477
481
  if (!(board_id && board_info_id)) return [3, 3];
478
482
  return [4, API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id })];
479
483
  case 2:
480
- notification = (_m.sent()).notification;
484
+ notification = (_l.sent()).notification;
481
485
  recipientData = notification === null || notification === void 0 ? void 0 : notification.recipient;
482
486
  if (!(recipientData === null || recipientData === void 0 ? void 0 : recipientData.id))
483
487
  throw new Error('individual_id_missing');
484
- _m.label = 3;
488
+ _l.label = 3;
485
489
  case 3:
486
490
  _c = recipientData || {}, id = _c.id, type = _c.type;
487
491
  return [4, thunkApi.dispatch(retrieveIndividualInfo({ id: id, type: type, countryCode: countryCode })).unwrap()];
488
492
  case 4:
489
- individualData = (_m.sent()).data;
493
+ individualData = (_l.sent()).data;
490
494
  if (!(!(individualData === null || individualData === void 0 ? void 0 : individualData.is_authorized) && !isKWOrSA(countryCode))) return [3, 7];
491
495
  if (!business_id) return [3, 6];
492
496
  return [4, thunkApi.dispatch(getIndividualList(business_id)).unwrap()];
493
497
  case 5:
494
- userList = _m.sent();
495
- _m.label = 6;
498
+ userList = _l.sent();
499
+ _l.label = 6;
496
500
  case 6:
497
501
  userList = userList === null || userList === void 0 ? void 0 : userList.filter(function (user) { return user.id === id; });
498
502
  thunkApi.dispatch(handleNextScreenStep('INDIVIDUAL_LIST_STEP'));
@@ -502,23 +506,23 @@ export var verifyLeadOTP = createAsyncThunk('verifyIndividualLeadOTP', function
502
506
  if (!business_id) return [3, 9];
503
507
  return [4, thunkApi.dispatch(getIndividualList(business_id)).unwrap()];
504
508
  case 8:
505
- userList = _m.sent();
506
- _m.label = 9;
509
+ userList = _l.sent();
510
+ _l.label = 9;
507
511
  case 9:
508
512
  thunkApi.dispatch(handleNextScreenStep('INDIVIDUAL_LIST_STEP'));
509
513
  return [3, 13];
510
514
  case 10:
511
- birthCountry = ((_j = individualData === null || individualData === void 0 ? void 0 : individualData.birth) === null || _j === void 0 ? void 0 : _j.country) || countryCode;
515
+ birthCountry = ((_h = individualData === null || individualData === void 0 ? void 0 : individualData.birth) === null || _h === void 0 ? void 0 : _h.country) || countryCode;
512
516
  if (!birthCountry) return [3, 12];
513
517
  return [4, thunkApi.dispatch(getCityList(birthCountry))];
514
518
  case 11:
515
- _m.sent();
516
- _m.label = 12;
519
+ _l.sent();
520
+ _l.label = 12;
517
521
  case 12:
518
522
  sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('INDIVIDUAL_PERSONAL_INDIVIDUAL_INFO_STEP')); });
519
- _m.label = 13;
523
+ _l.label = 13;
520
524
  case 13:
521
- (_l = (_k = settings.data.appConfig).onStepCompleted) === null || _l === void 0 ? void 0 : _l.call(_k, settings.data.activeScreen.name, { otp: params.otp });
525
+ (_k = (_j = settings.data.appConfig).onStepCompleted) === null || _k === void 0 ? void 0 : _k.call(_j, settings.data.activeScreen.name, { otp: params.otp });
522
526
  return [2, {
523
527
  data: data,
524
528
  countries: countries,
@@ -529,6 +533,58 @@ export var verifyLeadOTP = createAsyncThunk('verifyIndividualLeadOTP', function
529
533
  }
530
534
  });
531
535
  }); });
536
+ export var verifyTokenSessionExpired = createAsyncThunk('individual/verifyTokenSessionExpired', function (redirect, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
537
+ var individual, payload, data;
538
+ return __generator(this, function (_a) {
539
+ switch (_a.label) {
540
+ case 0:
541
+ individual = thunkApi.getState().individual;
542
+ payload = {
543
+ service_name: 'tap_email',
544
+ verify_token: individual.data.verify.token
545
+ };
546
+ return [4, API.leadService.verifyToken(payload)];
547
+ case 1:
548
+ data = _a.sent();
549
+ setAuthSessionToGlobalHeaders(data === null || data === void 0 ? void 0 : data.auth_session);
550
+ if (redirect)
551
+ thunkApi.dispatch(handleCurrentActiveScreen('INDIVIDUAL_SESSION_EXPIRED_OTP_STEP'));
552
+ return [2, { data: data }];
553
+ }
554
+ });
555
+ }); });
556
+ export var verifyLeadOTPSessionExpired = createAsyncThunk('individual/verifyLeadOTPSessionExpired', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
557
+ var _a, individual, settings, session, responseBody, payload, data;
558
+ var _b, _c, _d;
559
+ return __generator(this, function (_e) {
560
+ switch (_e.label) {
561
+ case 0:
562
+ _a = thunkApi.getState(), individual = _a.individual, settings = _a.settings, session = _a.session;
563
+ responseBody = individual.data.verify.responseBody;
564
+ payload = {
565
+ data: params.otp,
566
+ service_name: (_b = responseBody === null || responseBody === void 0 ? void 0 : responseBody.verification_by) === null || _b === void 0 ? void 0 : _b.service_name,
567
+ verify_token: responseBody === null || responseBody === void 0 ? void 0 : responseBody.verify_token,
568
+ step_name: INDIVIDUAl_STEP_NAMES.PHONE_AUTH,
569
+ encryption_contract: ['data']
570
+ };
571
+ return [4, API.leadService.verifyTokenOTP(payload).catch(function (err) {
572
+ if (isAuthenticationVerificationFailed(err === null || err === void 0 ? void 0 : err.message))
573
+ thunkApi.dispatch(handleCurrentActiveScreen('INDIVIDUAL_OTP_VERIFY_SECURITY_ERROR_STEP'));
574
+ throw new Error(err === null || err === void 0 ? void 0 : err.message);
575
+ })];
576
+ case 1:
577
+ data = _e.sent();
578
+ setAuthSessionToGlobalHeaders(data === null || data === void 0 ? void 0 : data.auth_session);
579
+ (_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, { otp: params.otp });
580
+ thunkApi.dispatch(handleCurrentActiveScreen(session.data.nextScreen));
581
+ return [2, {
582
+ data: data,
583
+ formData: __assign({}, params)
584
+ }];
585
+ }
586
+ });
587
+ }); });
532
588
  export var updatePhoneInfo = createAsyncThunk('individual/updatePhoneInfo', function (_a, thunkApi) {
533
589
  var formData = _a.formData, originalFormData = _a.originalFormData;
534
590
  return __awaiter(void 0, void 0, void 0, function () {
@@ -621,7 +677,8 @@ export var updateIndividualPersonalInfo = createAsyncThunk('individual/updateInd
621
677
  expiry: isExpiryNonEditable || !expiryDate ? undefined : new Date(expiryDate).getTime(),
622
678
  type: isIdTypeNonEditable || !identification_id_type ? undefined : identification_id_type
623
679
  }
624
- })), (!isDOBNonEditable && {
680
+ })), (!isDOBNonEditable &&
681
+ dob && {
625
682
  date_of_birth: dob
626
683
  })), (hasBirth &&
627
684
  !(isBirthCityNonEditable && isBirthCountryNonEditable) && {
@@ -911,8 +968,8 @@ var initialState = {
911
968
  gender: IndividualGender.MALE,
912
969
  nid: '',
913
970
  issuedCountry: undefined,
914
- expiryDate: '',
915
- dob: '',
971
+ expiryDate: undefined,
972
+ dob: undefined,
916
973
  placeOfBirthCountry: undefined,
917
974
  placeOfBirthCity: undefined,
918
975
  nationality: undefined
@@ -1009,9 +1066,43 @@ export var individualSlice = createSlice({
1009
1066
  state.data.otpData.responseBody = data;
1010
1067
  state.data.verify.responseBody = __assign(__assign(__assign({}, data), state.data.verify.responseBody), { countries: countries, countryCode: countryCode, userList: userList });
1011
1068
  })
1012
- .addCase(verifyLeadOTP.rejected, function (state, action) {
1069
+ .addCase(verifyLeadOTP.rejected, function (state, _a) {
1070
+ var message = _a.error.message;
1071
+ state.loading = false;
1072
+ if (!isAuthenticationVerificationFailed(message))
1073
+ state.error = message;
1074
+ })
1075
+ .addCase(verifyTokenSessionExpired.pending, function (state) {
1076
+ state.error = null;
1077
+ state.loading = true;
1078
+ })
1079
+ .addCase(verifyTokenSessionExpired.fulfilled, function (state, action) {
1080
+ state.error = null;
1013
1081
  state.loading = false;
1082
+ var data = action.payload.data;
1083
+ state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), data);
1084
+ })
1085
+ .addCase(verifyTokenSessionExpired.rejected, function (state, action) {
1014
1086
  state.error = action.error.message;
1087
+ state.loading = false;
1088
+ })
1089
+ .addCase(verifyLeadOTPSessionExpired.pending, function (state) {
1090
+ state.loading = true;
1091
+ state.error = null;
1092
+ })
1093
+ .addCase(verifyLeadOTPSessionExpired.fulfilled, function (state, action) {
1094
+ state.loading = false;
1095
+ state.error = null;
1096
+ var _a = action.payload, data = _a.data, formData = _a.formData;
1097
+ state.data.otpData = formData;
1098
+ state.data.otpData.responseBody = data;
1099
+ state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), data);
1100
+ })
1101
+ .addCase(verifyLeadOTPSessionExpired.rejected, function (state, _a) {
1102
+ var message = _a.error.message;
1103
+ state.loading = false;
1104
+ if (!isAuthenticationVerificationFailed(message))
1105
+ state.error = message;
1015
1106
  })
1016
1107
  .addCase(addDetailsAsync.pending, function (state) {
1017
1108
  state.addOrRequestDetailLoading = true;
@@ -1045,8 +1136,9 @@ export var individualSlice = createSlice({
1045
1136
  if (identification === null || identification === void 0 ? void 0 : identification.issued_country_code) {
1046
1137
  state.data.individualPersonalData.issuedCountry = findCountryByIso2(countries, identification === null || identification === void 0 ? void 0 : identification.issued_country_code);
1047
1138
  }
1048
- var expiryDate = new Date((identification === null || identification === void 0 ? void 0 : identification.expiry) || new Date().getTime());
1049
- state.data.individualPersonalData.expiryDate = convertNumbers2English(dateFormat(expiryDate));
1139
+ state.data.individualPersonalData.expiryDate = (identification === null || identification === void 0 ? void 0 : identification.expiry)
1140
+ ? convertNumbers2English(dateFormat(new Date(identification.expiry)))
1141
+ : undefined;
1050
1142
  if (birth === null || birth === void 0 ? void 0 : birth.date)
1051
1143
  state.data.individualPersonalData.dob = convertNumbers2English(dateFormat(new Date(birth === null || birth === void 0 ? void 0 : birth.date)));
1052
1144
  if (birth === null || birth === void 0 ? void 0 : birth.country) {
@@ -1140,8 +1232,9 @@ export var individualSlice = createSlice({
1140
1232
  if (identification === null || identification === void 0 ? void 0 : identification.issued_country_code) {
1141
1233
  state.data.individualPersonalData.issuedCountry = findCountryByIso2(countries, identification === null || identification === void 0 ? void 0 : identification.issued_country_code);
1142
1234
  }
1143
- var expiryDate = (identification === null || identification === void 0 ? void 0 : identification.expiry) || new Date().getTime();
1144
- state.data.individualPersonalData.expiryDate = convertNumbers2English(dateFormat(expiryDate));
1235
+ state.data.individualPersonalData.expiryDate = (identification === null || identification === void 0 ? void 0 : identification.expiry)
1236
+ ? convertNumbers2English(dateFormat(new Date(identification.expiry)))
1237
+ : undefined;
1145
1238
  if (birth === null || birth === void 0 ? void 0 : birth.date)
1146
1239
  state.data.individualPersonalData.dob = convertNumbers2English(dateFormat(birth === null || birth === void 0 ? void 0 : birth.date));
1147
1240
  if (birth === null || birth === void 0 ? void 0 : birth.country) {
@@ -1181,7 +1274,6 @@ export var individualSlice = createSlice({
1181
1274
  state.data.individualData.isAuthorized = is_authorized;
1182
1275
  })
1183
1276
  .addCase(retrieveIndividualInfo.rejected, function (state, action) {
1184
- state.addOrRequestDetailLoading = false;
1185
1277
  state.error = action.error.message;
1186
1278
  })
1187
1279
  .addCase(getIndividualList.pending, function (state) {
@@ -7,15 +7,15 @@ export declare const verifyTokenApi: import("@reduxjs/toolkit").AsyncThunk<{
7
7
  data: any;
8
8
  userList: any;
9
9
  token: string;
10
- nextScreen: import("../../../constants").KYC_FLOWS;
10
+ nextScreen: string;
11
11
  }, VerifyLeadTokenProps, {}>;
12
12
  export declare const createPaciAuth: import("@reduxjs/toolkit").AsyncThunk<{
13
13
  data: any;
14
- nextScreen: import("../../../constants").KYC_FLOWS;
14
+ nextScreen: string;
15
15
  }, User, {}>;
16
16
  export declare const createNafathAuth: import("@reduxjs/toolkit").AsyncThunk<{
17
17
  data: any;
18
- nextScreen: import("../../../constants").KYC_FLOWS;
18
+ nextScreen: string;
19
19
  }, User, {}>;
20
20
  interface verifyNafathParams {
21
21
  onSuccess: () => void;
@@ -27,7 +27,7 @@ export declare const verifyNafath: import("@reduxjs/toolkit").AsyncThunk<{
27
27
  nextScreen?: undefined;
28
28
  } | {
29
29
  data: any;
30
- nextScreen: import("../../../constants").KYC_FLOWS;
30
+ nextScreen: string;
31
31
  createAuthData: any;
32
32
  }, verifyNafathParams, {}>;
33
33
  interface verifyPACIParams {
@@ -35,7 +35,7 @@ interface verifyPACIParams {
35
35
  }
36
36
  export declare const verifyPaci: import("@reduxjs/toolkit").AsyncThunk<{
37
37
  data: any;
38
- nextScreen: import("../../../constants").KYC_FLOWS;
38
+ nextScreen: string;
39
39
  createAuthData: any;
40
40
  }, verifyPACIParams, {}>;
41
41
  export declare const updateKYCSuccess: import("@reduxjs/toolkit").AsyncThunk<{
@@ -50,7 +50,7 @@ import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
50
50
  import { handlePublicKey, handleSetCountryByIso2 } from '../../../app/settings';
51
51
  import { FlowsTypes } from '../../../@types';
52
52
  import { CONNECT_FLOWS, KYC_STEP_NAMES, NAFATH_PACI_TIMEOUT_DURATION, NAFATH_VERIFICATION_FAILED } from '../../../constants';
53
- import API from '../../../api';
53
+ import API, { setAuthSessionToGlobalHeaders } from '../../../api';
54
54
  import { isNetworkError, isTimeoutError, sendCustomEventToGTM, sleep } from '../../../utils';
55
55
  export var verifyTokenApi = createAsyncThunk('kyc/verifyTokenApi', function (_a, thunkApi) {
56
56
  var token = _a.token;
@@ -70,6 +70,7 @@ export var verifyTokenApi = createAsyncThunk('kyc/verifyTokenApi', function (_a,
70
70
  return [4, API.leadService.verifyToken(payload)];
71
71
  case 1:
72
72
  data = _d.sent();
73
+ setAuthSessionToGlobalHeaders(data === null || data === void 0 ? void 0 : data.auth_session);
73
74
  _b = data || {}, config = _b.config, country_code = _b.country_code, segment_id = _b.segment_id, boardId = _b.id, boardInfoId = _b.board_info_id;
74
75
  publicKey = config === null || config === void 0 ? void 0 : config.public_key;
75
76
  return [4, API.boardService.retrieveBoardInfo({ id: boardId, infoId: boardInfoId })];
@@ -200,6 +201,7 @@ export var verifyNafath = createAsyncThunk('kyc/verifyNafath', function (params,
200
201
  return [2, { data: data, createAuthData: createAuthData }];
201
202
  }
202
203
  if (!isSuccess) return [3, 7];
204
+ setAuthSessionToGlobalHeaders(data === null || data === void 0 ? void 0 : data.auth_session);
203
205
  (_d = params.onSuccess) === null || _d === void 0 ? void 0 : _d.call(params);
204
206
  return [4, thunkApi.dispatch(updateKYCSuccess())];
205
207
  case 6:
@@ -252,6 +254,7 @@ export var verifyPaci = createAsyncThunk('kyc/verifyPaci', function (params, thu
252
254
  case 5:
253
255
  isSuccess = ((_a = data === null || data === void 0 ? void 0 : data.status) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'success';
254
256
  if (!isSuccess) return [3, 7];
257
+ setAuthSessionToGlobalHeaders(data === null || data === void 0 ? void 0 : data.auth_session);
255
258
  (_b = params.onSuccess) === null || _b === void 0 ? void 0 : _b.call(params);
256
259
  return [4, thunkApi.dispatch(updateKYCSuccess())];
257
260
  case 6:
@@ -25,6 +25,15 @@ export declare const verifyPasswordLeadOTP: import("@reduxjs/toolkit").AsyncThun
25
25
  };
26
26
  flows: any;
27
27
  }, OTPFormValues, {}>;
28
+ export declare const verifyLeadTokenSessionExpired: import("@reduxjs/toolkit").AsyncThunk<{
29
+ data: any;
30
+ }, boolean, {}>;
31
+ export declare const verifyLeadOTPSessionExpired: import("@reduxjs/toolkit").AsyncThunk<{
32
+ data: any;
33
+ formData: {
34
+ otp: string;
35
+ };
36
+ }, OTPFormValues, {}>;
28
37
  export declare const createPassword: import("@reduxjs/toolkit").AsyncThunk<{
29
38
  data: any;
30
39
  formData: PasswordCreateFormValues;