@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
@@ -4,9 +4,10 @@ export interface OTPTimerProps extends BoxProps {
4
4
  timeInSeconds?: number;
5
5
  timeEndLabel: string;
6
6
  onResetClick?: () => void;
7
+ failed?: boolean;
7
8
  }
8
9
  declare const _default: React.MemoExoticComponent<{
9
- ({ timeInSeconds, timeEndLabel, onResetClick, ...rest }: OTPTimerProps): JSX.Element;
10
+ ({ timeInSeconds, timeEndLabel, onResetClick, failed, ...rest }: OTPTimerProps): JSX.Element;
10
11
  defaultProps: {
11
12
  time: number;
12
13
  };
@@ -44,7 +44,7 @@ var OTPTimerTextStyled = styled(Text)(function (_a) {
44
44
  });
45
45
  });
46
46
  var OTPTimerComponent = function (_a) {
47
- var timeInSeconds = _a.timeInSeconds, timeEndLabel = _a.timeEndLabel, onResetClick = _a.onResetClick, rest = __rest(_a, ["timeInSeconds", "timeEndLabel", "onResetClick"]);
47
+ var timeInSeconds = _a.timeInSeconds, timeEndLabel = _a.timeEndLabel, onResetClick = _a.onResetClick, failed = _a.failed, rest = __rest(_a, ["timeInSeconds", "timeEndLabel", "onResetClick", "failed"]);
48
48
  var _b = React.useState(timeInSeconds || 60), timeValue = _b[0], seTimeValue = _b[1];
49
49
  React.useEffect(function () {
50
50
  if (timeValue <= 0)
@@ -55,14 +55,14 @@ var OTPTimerComponent = function (_a) {
55
55
  return function () { return clearInterval(interval); };
56
56
  }, [timeValue]);
57
57
  var resetTimer = function () {
58
- if (onResetClick && timeValue == 0) {
58
+ if (onResetClick && (timeValue == 0 || failed)) {
59
59
  onResetClick();
60
60
  seTimeValue(timeInSeconds || 60);
61
61
  }
62
62
  };
63
63
  return (_jsx(OTPTimerStyled, __assign({ onClick: resetTimer }, rest, { children: _jsx(OTPTimerTextStyled, __assign({ variant: 'h4', color: 'primary', sx: {
64
- cursor: timeValue <= 0 && onResetClick ? 'pointer' : 'default'
65
- } }, { children: timeValue > 0 ? (timeValue > 9 ? "00:".concat(timeValue) : "00:0".concat(timeValue)) : timeEndLabel })) })));
64
+ cursor: (timeValue <= 0 || failed) && onResetClick ? 'pointer' : 'default'
65
+ } }, { children: timeValue > 0 && !failed ? (timeValue > 9 ? "00:".concat(timeValue) : "00:0".concat(timeValue)) : timeEndLabel })) })));
66
66
  };
67
67
  OTPTimerComponent.defaultProps = {
68
68
  time: 59
@@ -33,7 +33,7 @@ var StyledTooltip = styled(function (_a) {
33
33
  var _b;
34
34
  var theme = _a.theme;
35
35
  return (_b = {},
36
- _b["& .".concat(tooltipClasses.tooltip)] = __assign(__assign({ color: alpha(theme.palette.text.primary, 0.5), width: 'fit-content', maxHeight: 'fit-content' }, theme.typography.body2), { fontWeight: theme.typography.fontWeightLight, backgroundColor: theme.palette.secondary.light, border: "1px solid ".concat(alpha(theme.palette.divider, 0.8)), zIndex: 2147483647 }),
36
+ _b["& .".concat(tooltipClasses.tooltip)] = __assign(__assign({ color: alpha(theme.palette.text.primary, 0.5), width: 'fit-content', maxHeight: 'fit-content' }, theme.typography.body2), { fontWeight: theme.typography.fontWeightLight, backgroundColor: theme.palette.secondary.light, border: "1px solid ".concat(alpha(theme.palette.divider, 0.8)) }),
37
37
  _b);
38
38
  });
39
39
  var TextStyled = styled(Text, { shouldForwardProp: function (prop) { return prop !== 'isAr'; } })(function (_a) {
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface TruncatedTooltipTextProps {
3
+ text: string;
4
+ style?: React.CSSProperties;
5
+ }
6
+ declare const TruncatedTooltipText: ({ text, style }: TruncatedTooltipTextProps) => JSX.Element;
7
+ export default TruncatedTooltipText;
@@ -0,0 +1,33 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { useRef, useState, useEffect } from 'react';
14
+ import Tooltip from '../Tooltip';
15
+ var TruncatedTooltipText = function (_a) {
16
+ var text = _a.text, style = _a.style;
17
+ var textRef = useRef(null);
18
+ var _b = useState(false), isTruncated = _b[0], setIsTruncated = _b[1];
19
+ var _c = useState(false), hasSpace = _c[0], setHasSpace = _c[1];
20
+ useEffect(function () {
21
+ if (text.includes(' ')) {
22
+ setHasSpace(true);
23
+ return;
24
+ }
25
+ var el = textRef === null || textRef === void 0 ? void 0 : textRef.current;
26
+ if (el) {
27
+ setIsTruncated(el.scrollWidth > el.clientWidth);
28
+ }
29
+ }, [text]);
30
+ var content = (_jsx("span", __assign({ ref: textRef, style: __assign({ whiteSpace: hasSpace ? 'break-spaces' : 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', display: 'block' }, style) }, { children: text })));
31
+ return isTruncated ? (_jsx(Tooltip, __assign({ title: text, placement: 'top' }, { children: content }))) : (content);
32
+ };
33
+ export default TruncatedTooltipText;
@@ -0,0 +1,2 @@
1
+ import TruncatedTooltipText from './TruncatedTooltipText';
2
+ export default TruncatedTooltipText;
@@ -0,0 +1,2 @@
1
+ import TruncatedTooltipText from './TruncatedTooltipText';
2
+ export default TruncatedTooltipText;
@@ -12,8 +12,8 @@ export declare const ENDPOINT_PATHS: {
12
12
  SANDBOX_BASE_URL: string;
13
13
  PRODUCTION_BASE_URL: string;
14
14
  PRODUCTION_BASE_URL_SA: string;
15
+ PRODUCTION_BASE_URL_SA_DR: string;
15
16
  DEV_BASE_URL: string;
16
- BETA_BASE_URL: string;
17
17
  BUSINESS_COUNTRIES: string;
18
18
  COUNTRIES: string;
19
19
  IP: string;
@@ -1,8 +1,8 @@
1
1
  var SANDBOX_BASE_URL = 'https://connect-mw.sandbox.tap.company/middleware';
2
2
  var PRODUCTION_BASE_URL = 'https://connect-mw.tap.company/middleware';
3
3
  var PRODUCTION_BASE_URL_SA = 'https://connect-mw.tap.com.sa/middleware';
4
+ var PRODUCTION_BASE_URL_SA_DR = 'https://connect-mw.tap.com.sa/middleware';
4
5
  var DEV_BASE_URL = 'https://connect-mw.dev.tap.company/middleware';
5
- var BETA_BASE_URL = 'https://connect-mw.beta.tap.company/middleware';
6
6
  var API_BUSINESS_COUNTRIES = 'https://godata.sandbox.tap.company/api/v1/business/country/list';
7
7
  var API_COUNTRIES = 'https://utilities.tap.company/api/v1/country/list';
8
8
  var CURRENCY_PATH = 'https://utilities.tap.company/api/v1/currency/iso';
@@ -71,8 +71,8 @@ export var ENDPOINT_PATHS = {
71
71
  SANDBOX_BASE_URL: SANDBOX_BASE_URL,
72
72
  PRODUCTION_BASE_URL: PRODUCTION_BASE_URL,
73
73
  PRODUCTION_BASE_URL_SA: PRODUCTION_BASE_URL_SA,
74
+ PRODUCTION_BASE_URL_SA_DR: PRODUCTION_BASE_URL_SA_DR,
74
75
  DEV_BASE_URL: DEV_BASE_URL,
75
- BETA_BASE_URL: BETA_BASE_URL,
76
76
  BUSINESS_COUNTRIES: API_BUSINESS_COUNTRIES,
77
77
  COUNTRIES: API_COUNTRIES,
78
78
  IP: IP_PATH,
@@ -1,7 +1,5 @@
1
- import { ScreenStepNavigation, BusinessType } from '../@types';
1
+ import { ScreenStepNavigation, BusinessType, POSInfo, TerminalInfo } from '../@types';
2
2
  export declare const CONNECT_DEV_URL = "https://connect.dev.tap.company";
3
- export declare const CONNECT_SANDBOX_URL = "https://connect.sandbox.tap.company";
4
- export declare const CONNECT_BETA_URL = "https://connect.beta.tap.company";
5
3
  export declare const CONNECT_PROD_URL = "https://connect.tap.company";
6
4
  export declare const CLIENT_ORIGIN: string;
7
5
  export declare const TAP_WEBSITE = "https://www.tap.company/";
@@ -15,6 +13,7 @@ export declare const SCOPE_MERCHANT = "merchant";
15
13
  export declare const DEFAULT_COUNTRY_ISO2 = "KW";
16
14
  export declare const NAFATH_VERIFICATION_FAILED = "nafath_verification_failed";
17
15
  export declare const COLLECT_DOB_INFO_NAFATH = "collect_date_of_birth";
16
+ export declare const TERMINAL_PUSH_NOTIFICATION_FAILED = "terminal_push_notification_link_new_terminal_failed";
18
17
  export declare const LANGUAGE_ABBREVIATIONS: {
19
18
  ENGLISH: string;
20
19
  ARABIC: string;
@@ -44,6 +43,7 @@ export declare const TAX_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
44
43
  export declare const SigIn_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
45
44
  export declare const ENTITY_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
46
45
  export declare const BRAND_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
46
+ export declare const TERMINAL_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
47
47
  export declare const DefaultDeviceInfo: {
48
48
  source: string;
49
49
  device: {
@@ -111,6 +111,8 @@ export declare const CONNECT_STEP_NAMES: {
111
111
  CONNECT_MOBILE_OWNERSHIP: string;
112
112
  CONNECT_MOBILE_OWNERSHIP_SKIPPED: string;
113
113
  CONNECT_SUCCESS: string;
114
+ CREATE_AUTH_SESSION_EXPIRED: string;
115
+ VERIFY_AUTH_SESSION_EXPIRED: string;
114
116
  };
115
117
  export declare const AUTH_STEP_NAMES: {
116
118
  CREATE_AUTH_MOBILE: string;
@@ -122,6 +124,8 @@ export declare const AUTH_STEP_NAMES: {
122
124
  VERIFY_AUTH_NID: string;
123
125
  UPDATE_DOB_INFO: string;
124
126
  CREATE_AUTH_PASSCODE: string;
127
+ CREATE_AUTH_SESSION_EXPIRED: string;
128
+ VERIFY_AUTH_SESSION_EXPIRED: string;
125
129
  };
126
130
  export declare const CONNECT_EXPRESS_STEP_NAMES: {
127
131
  CREATE_AUTH_MOBILE: string;
@@ -142,6 +146,8 @@ export declare const CONNECT_EXPRESS_STEP_NAMES: {
142
146
  COLLECT_MOBILE_OWNERSHIP: string;
143
147
  COLLECT_MOBILE_OWNERSHIP_SKIPPED: string;
144
148
  VERIFY_AUTH_MOBILE_OTP: string;
149
+ CREATE_AUTH_SESSION_EXPIRED: string;
150
+ VERIFY_AUTH_SESSION_EXPIRED: string;
145
151
  };
146
152
  export declare const SignIn_STEP_NAMES: {
147
153
  CREATE_AUTH_MOBILE: string;
@@ -215,6 +221,13 @@ export declare const KYC_STEP_NAMES: {
215
221
  KYC_VERIFY_NAFATH: string;
216
222
  KYC_COMPLETED: string;
217
223
  };
224
+ export declare const TERMINAL_STEP_NAMES: {
225
+ PHONE_AUTH: string;
226
+ INFO: string;
227
+ SUCCESS: string;
228
+ CREATE_AUTH: string;
229
+ CREATE_TERMINAL_AUTH: string;
230
+ };
218
231
  export declare const RSA_FRONTEND_MW_PUBLIC_KEY = "-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCgC9kH1SQvjbXAUXd0PbrDUG8P\nLhRig9pJNBmdQBZjihuaxfkzYu6ToMbIMAfmYgVgQw338/y7aQ8X3m03CXNIlkxo\nOwxKCA8ymKsZQptXJn9IxlPO7yjoFgTFBrpmTgvcC4XO1uoUYTAPq3szK8kj4zgT\nucWG1hSKsOdRU7sl/wIDAQAB\n-----END PUBLIC KEY-----";
219
232
  export declare const ENCRYPTION_FLAG = "encryption_contract";
220
233
  export declare const BACKEND_ENCRYPTION_FLAG = "backend_encryption_contract";
@@ -227,6 +240,9 @@ export declare const OTHER_FL_LICENSE: {
227
240
  };
228
241
  license: {
229
242
  number: string;
243
+ additional_info: {
244
+ unified_number: string;
245
+ };
230
246
  };
231
247
  type: BusinessType;
232
248
  };
@@ -238,6 +254,9 @@ export declare const OTHER_ENTITY_LICENSE: {
238
254
  };
239
255
  license: {
240
256
  number: string;
257
+ additional_info: {
258
+ unified_number: string;
259
+ };
241
260
  };
242
261
  type: BusinessType;
243
262
  };
@@ -248,6 +267,9 @@ export declare const OTHER_CR_LICENSE: {
248
267
  };
249
268
  license: {
250
269
  number: string;
270
+ additional_info: {
271
+ unified_number: string;
272
+ };
251
273
  };
252
274
  type: BusinessType;
253
275
  };
@@ -309,4 +331,6 @@ interface CountryToCurrencyMapping {
309
331
  [countryCode: string]: string;
310
332
  }
311
333
  export declare const COUNTRY_TO_CURRENCY: CountryToCurrencyMapping;
334
+ export declare const SELECTED_TERMINAL_DEFAULT_INFO: TerminalInfo;
335
+ export declare const SELECTED_POS_DEFAULT_INFO: POSInfo;
312
336
  export {};