@tap-payments/auth-jsconnect 2.7.11-test → 2.8.0

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 (546) hide show
  1. package/build/@types/app.d.ts +42 -4
  2. package/build/@types/app.js +16 -0
  3. package/build/@types/config.d.ts +4 -0
  4. package/build/@types/form.d.ts +11 -1
  5. package/build/@types/redux.d.ts +1 -0
  6. package/build/api/account.d.ts +4 -1
  7. package/build/api/account.js +15 -1
  8. package/build/api/auth.d.ts +35 -20
  9. package/build/api/auth.js +1 -1
  10. package/build/api/axios.js +1 -2
  11. package/build/api/data.d.ts +4 -17
  12. package/build/api/data.js +5 -45
  13. package/build/api/entity.d.ts +3 -2
  14. package/build/api/entity.js +12 -4
  15. package/build/api/firebase.js +68 -8
  16. package/build/api/index.d.ts +14 -25
  17. package/build/api/lead.d.ts +16 -3
  18. package/build/api/lead.js +16 -0
  19. package/build/api/user.d.ts +7 -0
  20. package/build/api/user.js +9 -1
  21. package/build/app/rootReducer.d.ts +1 -0
  22. package/build/app/rootReducer.js +3 -1
  23. package/build/app/settings.js +11 -9
  24. package/build/app/store.d.ts +2 -0
  25. package/build/assets/locales/ar.json +353 -151
  26. package/build/assets/locales/en.json +349 -150
  27. package/build/components/AnimationFlow/AnimationFlow.d.ts +9 -5
  28. package/build/components/AnimationFlow/AnimationFlow.js +5 -5
  29. package/build/components/AnimationFlow/BottomSheet.d.ts +3 -1
  30. package/build/components/AnimationFlow/BottomSheet.js +42 -14
  31. package/build/components/AnimationFlow/Dialog.d.ts +4 -3
  32. package/build/components/AnimationFlow/Dialog.js +5 -3
  33. package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +1 -1
  34. package/build/components/ArabicDatePicker/ArabicDatePicker.js +2 -2
  35. package/build/components/ArabicDatePicker/style.css +32 -3
  36. package/build/components/DatePicker/DatePicker.d.ts +1 -1
  37. package/build/components/DatePicker/DatePicker.js +2 -2
  38. package/build/components/Footer/Footer.js +2 -1
  39. package/build/components/Input/Input.js +1 -1
  40. package/build/components/Providers/ThemeProvider.js +3 -3
  41. package/build/components/Tooltip/Tooltip.js +1 -1
  42. package/build/constants/api.d.ts +6 -7
  43. package/build/constants/api.js +13 -15
  44. package/build/constants/app.d.ts +39 -0
  45. package/build/constants/app.js +345 -35
  46. package/build/constants/assets.d.ts +3 -0
  47. package/build/constants/assets.js +4 -1
  48. package/build/constants/dummy.d.ts +4 -219
  49. package/build/constants/dummy.js +64 -6194
  50. package/build/constants/flows.d.ts +26 -0
  51. package/build/constants/flows.js +27 -0
  52. package/build/constants/index.d.ts +1 -0
  53. package/build/constants/index.js +1 -0
  54. package/build/constants/validation.d.ts +2 -0
  55. package/build/constants/validation.js +2 -0
  56. package/build/features/app/auth/authStore.d.ts +29 -8
  57. package/build/features/app/auth/authStore.js +495 -149
  58. package/build/features/app/bank/bankStore.d.ts +13 -18
  59. package/build/features/app/bank/bankStore.js +186 -153
  60. package/build/features/app/board/boardStore.d.ts +5 -1
  61. package/build/features/app/board/boardStore.js +82 -51
  62. package/build/features/app/brand/brandStore.d.ts +17 -33
  63. package/build/features/app/brand/brandStore.js +254 -257
  64. package/build/features/app/business/businessStore.d.ts +37 -15
  65. package/build/features/app/business/businessStore.js +443 -235
  66. package/build/features/app/connect/connectStore.d.ts +33 -5
  67. package/build/features/app/connect/connectStore.js +355 -120
  68. package/build/features/app/connectExpress/connectExpressStore.d.ts +53 -27
  69. package/build/features/app/connectExpress/connectExpressStore.js +660 -372
  70. package/build/features/app/entity/entityStore.d.ts +20 -36
  71. package/build/features/app/entity/entityStore.js +204 -238
  72. package/build/features/app/individual/individualStore.d.ts +18 -34
  73. package/build/features/app/individual/individualStore.js +269 -292
  74. package/build/features/app/kyc/kycStore.d.ts +67 -0
  75. package/build/features/app/kyc/kycStore.js +432 -0
  76. package/build/features/app/password/passwordStore.d.ts +33 -18
  77. package/build/features/app/password/passwordStore.js +260 -219
  78. package/build/features/app/signIn/signInStore.js +19 -15
  79. package/build/features/app/tax/taxStore.d.ts +13 -7
  80. package/build/features/app/tax/taxStore.js +170 -136
  81. package/build/features/auth/Auth.d.ts +5 -6
  82. package/build/features/auth/Auth.js +40 -15
  83. package/build/features/auth/screens/AccountNotFound/AccountNotFound.js +2 -5
  84. package/build/features/auth/screens/AuthSwitch/AuthSwitch.d.ts +5 -0
  85. package/build/features/auth/screens/AuthSwitch/AuthSwitch.js +58 -0
  86. package/build/features/auth/screens/AuthSwitch/index.d.ts +3 -0
  87. package/build/features/auth/screens/AuthSwitch/index.js +2 -0
  88. package/build/features/auth/screens/AuthenticationList/AuthenticationList.js +2 -8
  89. package/build/features/auth/screens/AuthenticationList/LicenseNumber.js +2 -2
  90. package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +8 -2
  91. package/build/features/auth/screens/CivilID/CivilID.js +4 -35
  92. package/build/features/auth/screens/{NID → DOB}/DOB.js +3 -3
  93. package/build/features/auth/screens/DOB/DOBForm.d.ts +5 -0
  94. package/build/features/auth/screens/DOB/DOBForm.js +59 -0
  95. package/build/features/auth/screens/DOB/index.d.ts +3 -0
  96. package/build/features/auth/screens/DOB/index.js +2 -0
  97. package/build/features/{business/screens/OTP → auth/screens/DOB}/validation.d.ts +4 -4
  98. package/build/features/auth/screens/DOB/validation.js +4 -0
  99. package/build/features/auth/screens/Email/Email.d.ts +5 -0
  100. package/build/features/auth/screens/Email/Email.js +57 -0
  101. package/build/features/auth/screens/Email/EmailField.d.ts +8 -0
  102. package/build/features/auth/screens/Email/EmailField.js +52 -0
  103. package/build/features/auth/screens/Email/index.d.ts +3 -0
  104. package/build/features/auth/screens/Email/index.js +2 -0
  105. package/build/features/auth/screens/Email/validation.d.ts +8 -0
  106. package/build/features/auth/screens/Email/validation.js +4 -0
  107. package/build/features/auth/screens/EmailSent/EmailSent.d.ts +5 -0
  108. package/build/features/auth/screens/EmailSent/EmailSent.js +79 -0
  109. package/build/features/auth/screens/EmailSent/index.d.ts +2 -0
  110. package/build/features/auth/screens/EmailSent/index.js +2 -0
  111. package/build/features/auth/screens/MigratingData/MigratingData.d.ts +5 -0
  112. package/build/features/auth/screens/MigratingData/MigratingData.js +44 -0
  113. package/build/features/auth/screens/MigratingData/index.d.ts +2 -0
  114. package/build/features/auth/screens/MigratingData/index.js +2 -0
  115. package/build/features/auth/screens/Mobile/Mobile.js +6 -38
  116. package/build/features/auth/screens/Mobile/MobileNumber.js +13 -15
  117. package/build/features/auth/screens/Mobile/validation.js +11 -3
  118. package/build/features/auth/screens/NID/IDNumber.js +1 -1
  119. package/build/features/auth/screens/NID/NID.js +7 -43
  120. package/build/features/auth/screens/NID/validation.d.ts +0 -3
  121. package/build/features/auth/screens/NID/validation.js +0 -1
  122. package/build/features/auth/screens/OTP/OTP.js +41 -10
  123. package/build/features/auth/screens/OTP/OTPInput.js +23 -6
  124. package/build/features/auth/screens/OperatorError/OperatorError.d.ts +5 -0
  125. package/build/features/auth/screens/OperatorError/OperatorError.js +9 -0
  126. package/build/features/auth/screens/OperatorError/index.d.ts +3 -0
  127. package/build/features/auth/screens/OperatorError/index.js +2 -0
  128. package/build/features/auth/screens/Password/Password.d.ts +5 -0
  129. package/build/features/auth/screens/Password/Password.js +61 -0
  130. package/build/features/auth/screens/Password/PasswordField.d.ts +5 -0
  131. package/build/features/auth/screens/Password/PasswordField.js +28 -0
  132. package/build/features/auth/screens/Password/index.d.ts +3 -0
  133. package/build/features/auth/screens/Password/index.js +2 -0
  134. package/build/features/auth/screens/Password/validation.d.ts +8 -0
  135. package/build/features/auth/screens/Password/validation.js +4 -0
  136. package/build/features/auth/screens/PreparingData/PreparingData.js +3 -0
  137. package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.d.ts +5 -0
  138. package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.js +21 -0
  139. package/build/features/auth/screens/ResetPasswordMessage/index.d.ts +3 -0
  140. package/build/features/auth/screens/ResetPasswordMessage/index.js +2 -0
  141. package/build/features/auth/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  142. package/build/features/auth/screens/VerifyNafath/VerifyNafath.js +35 -0
  143. package/build/features/auth/screens/VerifyNafath/index.d.ts +3 -0
  144. package/build/features/auth/screens/VerifyNafath/index.js +2 -0
  145. package/build/features/bank/Bank.d.ts +5 -1
  146. package/build/features/bank/Bank.js +22 -9
  147. package/build/features/bank/screens/BankDetails/BankDetails.js +18 -5
  148. package/build/features/bank/screens/OperatorError/OperatorError.d.ts +5 -0
  149. package/build/features/bank/screens/OperatorError/OperatorError.js +9 -0
  150. package/build/features/bank/screens/OperatorError/index.d.ts +3 -0
  151. package/build/features/bank/screens/OperatorError/index.js +2 -0
  152. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  153. package/build/features/bank/screens/Verify/Verify.js +7 -6
  154. package/build/features/board/Board.d.ts +2 -0
  155. package/build/features/board/Board.js +24 -13
  156. package/build/features/board/screens/OperatorError/OperatorError.d.ts +5 -0
  157. package/build/features/board/screens/OperatorError/OperatorError.js +9 -0
  158. package/build/features/board/screens/OperatorError/index.d.ts +3 -0
  159. package/build/features/board/screens/OperatorError/index.js +2 -0
  160. package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  161. package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  162. package/build/features/board/screens/PrepareDataLoading/index.d.ts +2 -0
  163. package/build/features/board/screens/PrepareDataLoading/index.js +2 -0
  164. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -4
  165. package/build/features/board/screens/Verify/Verify.js +3 -2
  166. package/build/features/brand/Brand.d.ts +5 -1
  167. package/build/features/brand/Brand.js +22 -9
  168. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +5 -5
  169. package/build/features/brand/screens/BrandActivities/BrandActivities.js +48 -11
  170. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +6 -6
  171. package/build/features/brand/screens/BrandActivities/CustomerBase.js +1 -1
  172. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +6 -3
  173. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +4 -4
  174. package/build/features/brand/screens/BrandActivities/RefundPolicy.js +1 -1
  175. package/build/features/brand/screens/BrandActivities/TAC.d.ts +1 -1
  176. package/build/features/brand/screens/BrandActivities/TAC.js +1 -1
  177. package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +1 -1
  178. package/build/features/brand/screens/BrandInfo/BrandInfo.js +22 -4
  179. package/build/features/brand/screens/BrandInfo/BrandName.js +2 -2
  180. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +22 -6
  181. package/build/features/brand/screens/OperatorError/OperatorError.d.ts +5 -0
  182. package/build/features/brand/screens/OperatorError/OperatorError.js +9 -0
  183. package/build/features/brand/screens/OperatorError/index.d.ts +3 -0
  184. package/build/features/brand/screens/OperatorError/index.js +2 -0
  185. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  186. package/build/features/brand/screens/Verify/Verify.js +3 -2
  187. package/build/features/business/Business.js +20 -12
  188. package/build/features/business/screens/Activities/Activities.js +26 -9
  189. package/build/features/business/screens/Activities/ActivitiesList.d.ts +4 -4
  190. package/build/features/business/screens/Activities/ActivitiesList.js +1 -1
  191. package/build/features/business/screens/Activities/OperationStartDate.d.ts +5 -3
  192. package/build/features/business/screens/Activities/OperationStartDate.js +2 -2
  193. package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +2 -2
  194. package/build/features/business/screens/BusinessType/BusinessType.js +11 -3
  195. package/build/features/business/screens/BusinessType/LicenseNumber.js +3 -3
  196. package/build/features/business/screens/Customers/CustomerLocations.d.ts +10 -8
  197. package/build/features/business/screens/Customers/CustomerLocations.js +5 -3
  198. package/build/features/business/screens/Customers/Customers.js +50 -10
  199. package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +3 -1
  200. package/build/features/business/screens/Customers/ExpectedCustomers.js +5 -3
  201. package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +3 -1
  202. package/build/features/business/screens/Customers/ExpectedSalesRange.js +11 -5
  203. package/build/features/business/screens/Customers/RefundPolicy.d.ts +12 -5
  204. package/build/features/business/screens/Customers/RefundPolicy.js +13 -13
  205. package/build/features/business/screens/Customers/TransactionPolicy.d.ts +4 -1
  206. package/build/features/business/screens/Customers/TransactionPolicy.js +8 -5
  207. package/build/features/business/screens/Customers/validation.d.ts +6 -6
  208. package/build/features/business/screens/Customers/validation.js +3 -8
  209. package/build/features/business/screens/DOB/DOB.d.ts +6 -0
  210. package/build/features/business/screens/DOB/DOB.js +45 -0
  211. package/build/features/business/screens/DOB/DOBForm.d.ts +5 -0
  212. package/build/features/business/screens/DOB/DOBForm.js +72 -0
  213. package/build/features/business/screens/DOB/index.d.ts +3 -0
  214. package/build/features/business/screens/DOB/index.js +2 -0
  215. package/build/features/{connectExpress/screens/IdentityOTP → business/screens/DOB}/validation.d.ts +4 -4
  216. package/build/features/business/screens/DOB/validation.js +4 -0
  217. package/build/features/business/screens/IDBOD/IDBOD.js +10 -2
  218. package/build/features/business/screens/IDBOD/validation.d.ts +0 -3
  219. package/build/features/business/screens/IDBOD/validation.js +0 -1
  220. package/build/features/business/screens/MobileOwnership/CollectMobileOwnership.d.ts +3 -0
  221. package/build/features/business/screens/MobileOwnership/CollectMobileOwnership.js +103 -0
  222. package/build/features/{connectExpress/screens/IdentityOTP/OTP.d.ts → business/screens/MobileOwnership/MobileNumber.d.ts} +0 -2
  223. package/build/features/business/screens/MobileOwnership/MobileNumber.js +72 -0
  224. package/build/features/business/screens/MobileOwnership/index.d.ts +2 -0
  225. package/build/features/business/screens/MobileOwnership/index.js +2 -0
  226. package/build/features/business/screens/MobileOwnership/validation.d.ts +8 -0
  227. package/build/features/business/screens/MobileOwnership/validation.js +38 -0
  228. package/build/features/business/screens/OperatorError/OperatorError.d.ts +5 -0
  229. package/build/features/business/screens/OperatorError/OperatorError.js +9 -0
  230. package/build/features/business/screens/OperatorError/index.d.ts +3 -0
  231. package/build/features/business/screens/OperatorError/index.js +2 -0
  232. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +14 -3
  233. package/build/features/business/screens/Verify/Verify.js +15 -4
  234. package/build/features/business/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  235. package/build/features/business/screens/VerifyNafath/VerifyNafath.js +35 -0
  236. package/build/features/business/screens/VerifyNafath/index.d.ts +3 -0
  237. package/build/features/business/screens/VerifyNafath/index.js +2 -0
  238. package/build/features/connect/Connect.d.ts +5 -1
  239. package/build/features/connect/Connect.js +16 -9
  240. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +7 -1
  241. package/build/features/connect/screens/CivilID/CivilID.js +6 -1
  242. package/build/features/{auth/screens/NID → connect/screens/DOB}/DOB.d.ts +1 -2
  243. package/build/features/connect/screens/{NID → DOB}/DOB.js +2 -2
  244. package/build/features/connect/screens/DOB/DOBForm.d.ts +5 -0
  245. package/build/features/connect/screens/DOB/DOBForm.js +59 -0
  246. package/build/features/connect/screens/DOB/index.d.ts +3 -0
  247. package/build/features/connect/screens/DOB/index.js +2 -0
  248. package/build/features/connect/screens/DOB/validation.d.ts +8 -0
  249. package/build/features/connect/screens/DOB/validation.js +4 -0
  250. package/build/features/connect/screens/Individual/Email.js +1 -3
  251. package/build/features/connect/screens/Individual/Individual.js +11 -5
  252. package/build/features/connect/screens/Individual/MobileNumber.js +8 -7
  253. package/build/features/connect/screens/Individual/validation.js +11 -3
  254. package/build/features/connect/screens/Merchant/BrandName.js +2 -2
  255. package/build/features/connect/screens/Mobile/Mobile.js +12 -9
  256. package/build/features/connect/screens/Mobile/MobileNumber.js +8 -7
  257. package/build/features/connect/screens/Mobile/validation.js +11 -3
  258. package/build/features/connect/screens/MobileOwnership/CollectMobileOwnership.d.ts +3 -0
  259. package/build/features/connect/screens/MobileOwnership/CollectMobileOwnership.js +104 -0
  260. package/build/features/connect/screens/MobileOwnership/MobileNumber.d.ts +3 -0
  261. package/build/features/connect/screens/MobileOwnership/MobileNumber.js +72 -0
  262. package/build/features/connect/screens/MobileOwnership/index.d.ts +2 -0
  263. package/build/features/connect/screens/MobileOwnership/index.js +2 -0
  264. package/build/features/connect/screens/MobileOwnership/validation.d.ts +8 -0
  265. package/build/features/connect/screens/MobileOwnership/validation.js +38 -0
  266. package/build/features/connect/screens/NID/IDNumber.d.ts +1 -0
  267. package/build/features/connect/screens/NID/IDNumber.js +2 -2
  268. package/build/features/connect/screens/NID/NID.js +5 -11
  269. package/build/features/connect/screens/NID/validation.d.ts +0 -3
  270. package/build/features/connect/screens/NID/validation.js +0 -1
  271. package/build/features/connect/screens/OTP/OTP.js +6 -6
  272. package/build/features/connect/screens/OTP/OTPInput.js +3 -11
  273. package/build/features/connect/screens/OperatorError/OperatorError.js +1 -1
  274. package/build/features/connect/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  275. package/build/features/connect/screens/VerifyNafath/VerifyNafath.js +35 -0
  276. package/build/features/connect/screens/VerifyNafath/index.d.ts +3 -0
  277. package/build/features/connect/screens/VerifyNafath/index.js +2 -0
  278. package/build/features/connectExpress/ConnectExpress.d.ts +5 -2
  279. package/build/features/connectExpress/ConnectExpress.js +62 -39
  280. package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.js +2 -2
  281. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +7 -1
  282. package/build/features/connectExpress/screens/CivilID/CivilID.js +6 -1
  283. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +2 -2
  284. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +8 -1
  285. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +2 -2
  286. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +1 -1
  287. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +30 -7
  288. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +1 -3
  289. package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.js +9 -8
  290. package/build/features/connectExpress/screens/CollectIndividualInfo/validation.js +11 -3
  291. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.js +14 -24
  292. package/build/features/connectExpress/screens/{NID → DOB}/DOB.d.ts +1 -2
  293. package/build/features/connectExpress/screens/{NID → DOB}/DOB.js +3 -3
  294. package/build/features/connectExpress/screens/DOB/DOBForm.d.ts +5 -0
  295. package/build/features/connectExpress/screens/DOB/DOBForm.js +63 -0
  296. package/build/features/connectExpress/screens/DOB/index.d.ts +3 -0
  297. package/build/features/connectExpress/screens/DOB/index.js +2 -0
  298. package/build/features/connectExpress/screens/DOB/validation.d.ts +8 -0
  299. package/build/features/connectExpress/screens/DOB/validation.js +4 -0
  300. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.d.ts +5 -0
  301. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.js +35 -0
  302. package/build/features/connectExpress/screens/IdentityVerifyNafath/index.d.ts +3 -0
  303. package/build/features/connectExpress/screens/IdentityVerifyNafath/index.js +2 -0
  304. package/build/features/connectExpress/screens/Mobile/Mobile.js +10 -3
  305. package/build/features/connectExpress/screens/Mobile/MobileNumber.js +9 -8
  306. package/build/features/connectExpress/screens/Mobile/validation.js +21 -6
  307. package/build/features/connectExpress/screens/MobileOwnership/CollectMobileOwnership.d.ts +3 -0
  308. package/build/features/connectExpress/screens/MobileOwnership/CollectMobileOwnership.js +106 -0
  309. package/build/features/connectExpress/screens/MobileOwnership/MobileNumber.d.ts +3 -0
  310. package/build/features/connectExpress/screens/MobileOwnership/MobileNumber.js +72 -0
  311. package/build/features/connectExpress/screens/MobileOwnership/index.d.ts +2 -0
  312. package/build/features/connectExpress/screens/MobileOwnership/index.js +2 -0
  313. package/build/features/connectExpress/screens/MobileOwnership/validation.d.ts +8 -0
  314. package/build/features/connectExpress/screens/MobileOwnership/validation.js +38 -0
  315. package/build/features/connectExpress/screens/NID/IDNumber.d.ts +1 -0
  316. package/build/features/connectExpress/screens/NID/IDNumber.js +2 -2
  317. package/build/features/connectExpress/screens/NID/NID.js +10 -10
  318. package/build/features/connectExpress/screens/NID/TAC.d.ts +1 -1
  319. package/build/features/connectExpress/screens/NID/TAC.js +2 -2
  320. package/build/features/connectExpress/screens/NID/validation.d.ts +0 -3
  321. package/build/features/connectExpress/screens/NID/validation.js +0 -2
  322. package/build/features/connectExpress/screens/NIDMissed/NID.js +3 -3
  323. package/build/features/connectExpress/screens/NIDMissed/validation.d.ts +0 -3
  324. package/build/features/connectExpress/screens/NIDMissed/validation.js +0 -1
  325. package/build/features/connectExpress/screens/OTP/OTP.js +13 -15
  326. package/build/features/connectExpress/screens/OTP/OTPInput.js +12 -10
  327. package/build/features/connectExpress/screens/OperatorError/OperatorError.d.ts +5 -0
  328. package/build/features/connectExpress/screens/OperatorError/OperatorError.js +9 -0
  329. package/build/features/connectExpress/screens/OperatorError/index.d.ts +3 -0
  330. package/build/features/connectExpress/screens/OperatorError/index.js +2 -0
  331. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.d.ts +5 -0
  332. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.js +34 -0
  333. package/build/features/connectExpress/screens/PrepareDataLoading/index.d.ts +2 -0
  334. package/build/features/connectExpress/screens/PrepareDataLoading/index.js +2 -0
  335. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
  336. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  337. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.js +35 -0
  338. package/build/features/connectExpress/screens/VerifyNafath/index.d.ts +3 -0
  339. package/build/features/connectExpress/screens/VerifyNafath/index.js +2 -0
  340. package/build/features/entity/Entity.d.ts +4 -1
  341. package/build/features/entity/Entity.js +22 -9
  342. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +4 -4
  343. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +8 -4
  344. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +8 -4
  345. package/build/features/entity/screens/EntityCapital/EntityCapital.js +33 -9
  346. package/build/features/entity/screens/EntityName/EntityName.js +31 -14
  347. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +5 -5
  348. package/build/features/entity/screens/EntityName/EntityTypeList.js +2 -3
  349. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +2 -2
  350. package/build/features/entity/screens/EntityName/ExpiryDate.js +13 -8
  351. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +2 -2
  352. package/build/features/entity/screens/EntityName/IssuingDate.js +15 -8
  353. package/build/features/entity/screens/EntityName/LegalName.js +1 -13
  354. package/build/features/entity/screens/EntityName/LicenseNumber.js +6 -8
  355. package/build/features/entity/screens/EntityName/UnifiedNumber.js +4 -6
  356. package/build/features/entity/screens/EntityName/validation.d.ts +3 -3
  357. package/build/features/entity/screens/EntityName/validation.js +1 -10
  358. package/build/features/entity/screens/OperatorError/OperatorError.d.ts +5 -0
  359. package/build/features/entity/screens/OperatorError/OperatorError.js +9 -0
  360. package/build/features/entity/screens/OperatorError/index.d.ts +3 -0
  361. package/build/features/entity/screens/OperatorError/index.js +2 -0
  362. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  363. package/build/features/entity/screens/Verify/Verify.js +3 -2
  364. package/build/features/featuresScreens.d.ts +1 -0
  365. package/build/features/featuresScreens.js +211 -13
  366. package/build/features/individual/Individual.d.ts +4 -1
  367. package/build/features/individual/Individual.js +22 -9
  368. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +2 -2
  369. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +44 -11
  370. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +5 -2
  371. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +8 -3
  372. package/build/features/individual/screens/IndividualList/Email.js +2 -3
  373. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +4 -4
  374. package/build/features/individual/screens/IndividualList/IndividualList.js +18 -5
  375. package/build/features/individual/screens/IndividualList/MobileNumber.js +8 -10
  376. package/build/features/individual/screens/IndividualList/UserList.js +7 -7
  377. package/build/features/individual/screens/IndividualList/validation.js +11 -4
  378. package/build/features/individual/screens/IndividualPersonalInfo/Email.js +2 -4
  379. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +2 -2
  380. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +73 -18
  381. package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +6 -5
  382. package/build/features/individual/screens/IndividualPersonalInfo/validation.js +11 -3
  383. package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.js +9 -11
  384. package/build/features/individual/screens/IndividualPhoneInfo/validation.js +11 -3
  385. package/build/features/individual/screens/OperatorError/OperatorError.d.ts +5 -0
  386. package/build/features/individual/screens/OperatorError/OperatorError.js +9 -0
  387. package/build/features/individual/screens/OperatorError/index.d.ts +3 -0
  388. package/build/features/individual/screens/OperatorError/index.js +2 -0
  389. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  390. package/build/features/individual/screens/Verify/Verify.js +3 -2
  391. package/build/features/kyc/KYC.d.ts +11 -0
  392. package/build/features/kyc/KYC.js +99 -0
  393. package/build/features/kyc/index.d.ts +1 -0
  394. package/build/features/kyc/index.js +1 -0
  395. package/build/features/kyc/screens/AlreadySubmitted/AlreadySubmitted.d.ts +5 -0
  396. package/build/features/kyc/screens/AlreadySubmitted/AlreadySubmitted.js +19 -0
  397. package/build/features/kyc/screens/AlreadySubmitted/index.d.ts +2 -0
  398. package/build/features/kyc/screens/AlreadySubmitted/index.js +2 -0
  399. package/build/features/kyc/screens/Loading/Loading.d.ts +4 -0
  400. package/build/features/kyc/screens/Loading/Loading.js +10 -0
  401. package/build/features/kyc/screens/Loading/index.d.ts +2 -0
  402. package/build/features/kyc/screens/Loading/index.js +2 -0
  403. package/build/features/kyc/screens/OperatorError/OperatorError.d.ts +5 -0
  404. package/build/features/kyc/screens/OperatorError/OperatorError.js +9 -0
  405. package/build/features/kyc/screens/OperatorError/index.d.ts +2 -0
  406. package/build/features/kyc/screens/OperatorError/index.js +2 -0
  407. package/build/features/kyc/screens/Success/Success.d.ts +5 -0
  408. package/build/features/kyc/screens/Success/Success.js +32 -0
  409. package/build/features/kyc/screens/Success/index.d.ts +2 -0
  410. package/build/features/kyc/screens/Success/index.js +2 -0
  411. package/build/features/kyc/screens/Terms/Header.d.ts +6 -0
  412. package/build/features/kyc/screens/Terms/Header.js +36 -0
  413. package/build/features/kyc/screens/Terms/Terms.d.ts +4 -0
  414. package/build/features/kyc/screens/Terms/Terms.js +87 -0
  415. package/build/features/kyc/screens/Terms/index.d.ts +2 -0
  416. package/build/features/kyc/screens/Terms/index.js +2 -0
  417. package/build/features/kyc/screens/TokenError/TokenError.d.ts +5 -0
  418. package/build/features/kyc/screens/TokenError/TokenError.js +9 -0
  419. package/build/features/kyc/screens/TokenError/index.d.ts +2 -0
  420. package/build/features/kyc/screens/TokenError/index.js +2 -0
  421. package/build/features/kyc/screens/Users/Users.d.ts +3 -0
  422. package/build/features/kyc/screens/Users/Users.js +76 -0
  423. package/build/features/kyc/screens/Users/index.d.ts +2 -0
  424. package/build/features/kyc/screens/Users/index.js +2 -0
  425. package/build/features/kyc/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  426. package/build/features/kyc/screens/VerifyNafath/VerifyNafath.js +45 -0
  427. package/build/features/kyc/screens/VerifyNafath/index.d.ts +3 -0
  428. package/build/features/kyc/screens/VerifyNafath/index.js +2 -0
  429. package/build/features/kyc/screens/VerifyPaci/VerifyPACI.d.ts +5 -0
  430. package/build/features/kyc/screens/VerifyPaci/VerifyPACI.js +44 -0
  431. package/build/features/kyc/screens/VerifyPaci/index.d.ts +3 -0
  432. package/build/features/kyc/screens/VerifyPaci/index.js +2 -0
  433. package/build/features/password/Password.d.ts +4 -1
  434. package/build/features/password/Password.js +88 -31
  435. package/build/features/password/screens/CreatePassword/CreatePassword.js +8 -4
  436. package/build/features/password/screens/OTP/OTP.js +3 -3
  437. package/build/features/password/screens/OperatorError/OperatorError.d.ts +5 -0
  438. package/build/features/password/screens/OperatorError/OperatorError.js +9 -0
  439. package/build/features/password/screens/OperatorError/index.d.ts +3 -0
  440. package/build/features/password/screens/OperatorError/index.js +2 -0
  441. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  442. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  443. package/build/features/password/screens/PrepareDataLoading/index.d.ts +2 -0
  444. package/build/features/password/screens/PrepareDataLoading/index.js +2 -0
  445. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  446. package/build/features/password/screens/Verify/Verify.js +7 -6
  447. package/build/features/shared/Address/CountryList.d.ts +5 -5
  448. package/build/features/shared/Address/InputSelect.d.ts +5 -5
  449. package/build/features/shared/Background/Background.js +1 -1
  450. package/build/features/shared/BusinessCountry/BusinessCountry.js +1 -1
  451. package/build/features/shared/Button/Button.js +3 -1
  452. package/build/features/shared/Button/EmailProvidersButtons.js +2 -0
  453. package/build/features/shared/Button/FlowsButtons.js +20 -5
  454. package/build/features/shared/Button/NafathButton.d.ts +8 -0
  455. package/build/features/shared/Button/{AbsherButton.js → NafathButton.js} +12 -3
  456. package/build/features/shared/Button/index.d.ts +2 -2
  457. package/build/features/shared/Button/index.js +2 -2
  458. package/build/features/shared/Calender/Calender.d.ts +2 -1
  459. package/build/features/shared/Calender/Calender.js +3 -3
  460. package/build/features/shared/Containers/FeatureContainer.d.ts +2 -1
  461. package/build/features/shared/Containers/FeatureContainer.js +5 -3
  462. package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
  463. package/build/features/shared/Dialog/DialogContainer.js +5 -4
  464. package/build/features/shared/Input/Input.d.ts +2 -2
  465. package/build/features/shared/NafathVerification/NafathVerification.d.ts +14 -0
  466. package/build/features/shared/NafathVerification/NafathVerification.js +92 -0
  467. package/build/features/shared/NafathVerification/VerifyNafathLoading.d.ts +8 -0
  468. package/build/features/shared/NafathVerification/VerifyNafathLoading.js +53 -0
  469. package/build/features/shared/NafathVerification/VerifyNafathSuccess.d.ts +5 -0
  470. package/build/features/shared/NafathVerification/VerifyNafathSuccess.js +8 -0
  471. package/build/features/shared/NafathVerification/index.d.ts +2 -0
  472. package/build/features/shared/NafathVerification/index.js +2 -0
  473. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +6 -1
  474. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +10 -13
  475. package/build/features/shared/SuccessScreen/SuccessScreen.js +1 -1
  476. package/build/features/shared/UploadFile/FileUpload.d.ts +1 -1
  477. package/build/features/shared/UploadFile/UploadFile.d.ts +1 -1
  478. package/build/features/shared/UploadFile/UploadWrapper.d.ts +1 -1
  479. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +1 -1
  480. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +1 -1
  481. package/build/features/signIn/SignIn.js +18 -7
  482. package/build/features/signIn/screens/Mobile/MobileNumber.js +8 -7
  483. package/build/features/signIn/screens/Mobile/validation.js +11 -3
  484. package/build/features/signIn/screens/OTP/OTP.js +5 -4
  485. package/build/features/signIn/screens/OperatorError/OperatorError.d.ts +5 -0
  486. package/build/features/signIn/screens/OperatorError/OperatorError.js +9 -0
  487. package/build/features/signIn/screens/OperatorError/index.d.ts +3 -0
  488. package/build/features/signIn/screens/OperatorError/index.js +2 -0
  489. package/build/features/tax/Tax.d.ts +4 -1
  490. package/build/features/tax/Tax.js +22 -9
  491. package/build/features/tax/screens/OperatorError/OperatorError.d.ts +5 -0
  492. package/build/features/tax/screens/OperatorError/OperatorError.js +9 -0
  493. package/build/features/tax/screens/OperatorError/index.d.ts +3 -0
  494. package/build/features/tax/screens/OperatorError/index.js +2 -0
  495. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  496. package/build/features/tax/screens/TaxDetails/TaxDetails.js +7 -2
  497. package/build/features/tax/screens/Verify/Verify.js +7 -6
  498. package/build/hooks/index.d.ts +3 -0
  499. package/build/hooks/index.js +3 -0
  500. package/build/hooks/useAppConfig.d.ts +1 -1
  501. package/build/hooks/useAppConfig.js +3 -3
  502. package/build/hooks/useAppDispatch.d.ts +1 -0
  503. package/build/hooks/useAppTheme.js +4 -3
  504. package/build/hooks/useCountDown.d.ts +10 -0
  505. package/build/hooks/useCountDown.js +17 -0
  506. package/build/hooks/useFormDirtyCheck.d.ts +10 -0
  507. package/build/hooks/useFormDirtyCheck.js +66 -0
  508. package/build/hooks/useSanitizedTranslation.d.ts +2 -0
  509. package/build/hooks/useSanitizedTranslation.js +15 -0
  510. package/build/hooks/useVerifyToken.d.ts +4 -2
  511. package/build/hooks/useVerifyToken.js +9 -4
  512. package/build/index.css +360 -120
  513. package/build/index.d.ts +3 -2
  514. package/build/index.js +4 -2
  515. package/build/theme/components.js +7 -0
  516. package/build/theme/palette.js +2 -1
  517. package/build/theme/shadows.js +1 -1
  518. package/build/theme/theme.d.ts +1 -1
  519. package/build/theme/theme.js +2 -2
  520. package/build/utils/array.js +2 -2
  521. package/build/utils/common.d.ts +2 -1
  522. package/build/utils/common.js +20 -5
  523. package/build/utils/error.d.ts +1 -0
  524. package/build/utils/error.js +3 -0
  525. package/build/utils/object.d.ts +1 -0
  526. package/build/utils/object.js +3 -0
  527. package/build/utils/string.d.ts +6 -2
  528. package/build/utils/string.js +28 -3
  529. package/build/utils/validation.d.ts +2 -0
  530. package/build/utils/validation.js +6 -0
  531. package/package.json +2 -2
  532. package/build/features/business/screens/OTP/OTP.d.ts +0 -8
  533. package/build/features/business/screens/OTP/OTP.js +0 -90
  534. package/build/features/business/screens/OTP/OTPInput.d.ts +0 -5
  535. package/build/features/business/screens/OTP/OTPInput.js +0 -49
  536. package/build/features/business/screens/OTP/index.d.ts +0 -3
  537. package/build/features/business/screens/OTP/index.js +0 -2
  538. package/build/features/business/screens/OTP/validation.js +0 -4
  539. package/build/features/connectExpress/screens/IdentityOTP/OTP.js +0 -87
  540. package/build/features/connectExpress/screens/IdentityOTP/OTPInput.d.ts +0 -5
  541. package/build/features/connectExpress/screens/IdentityOTP/OTPInput.js +0 -54
  542. package/build/features/connectExpress/screens/IdentityOTP/index.d.ts +0 -3
  543. package/build/features/connectExpress/screens/IdentityOTP/index.js +0 -2
  544. package/build/features/connectExpress/screens/IdentityOTP/validation.js +0 -4
  545. package/build/features/shared/Button/AbsherButton.d.ts +0 -8
  546. /package/build/features/{connect/screens/NID → auth/screens/DOB}/DOB.d.ts +0 -0
@@ -1,6 +1,6 @@
1
1
  import axiosInstance, { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, getAxiosHeaders } from './axios';
2
2
  import { ValidateOperatorBody, ConfirmBody } from './operator';
3
- import { CreateAuthBody, VerifyAuthBody, CreatePasswordBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, VerifyAuthExpressOTPBody, ConfigBody } from './auth';
3
+ import { CreateAuthBody, VerifyAuthBody, CreatePasswordBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, VerifyAuthExpressOTPBody, ConfigBody, CreateNafathAuthBody, CreateKYCAuthBody } from './auth';
4
4
  import { UpdateLeadBody, LeadVerifyBody, CreateLeadBody, LeadOTPVerifyBody, LeadIdentityUpdateBody, ExpressLeadVerifyBody } from './lead';
5
5
  import { CheckEmailBody, CheckBrandBody } from './availabilityServices';
6
6
  import { EntityInfoBody, EntityBankUpdateBody, BankDocumentInfo, UpdateEntityBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, UpdateEntityAOAFileBody, RemoveEntityActivity, MerchantListBody, CreateEntityBody } from './entity';
@@ -8,7 +8,7 @@ import { CreateAccountBody, ExpressCreateAccountBody } from './account';
8
8
  import { DataElementBody } from './data';
9
9
  import { BrandListBody, UpdateBrandBody, UpdateIndividualBody, GetIndividualListBody, UpdateIndividualWithTypeBody, UpdateMultipleIndividualBody } from './individual';
10
10
  import { UpdateBoardBody, RequestEmailBody } from './board';
11
- import { GetUserListBody } from './user';
11
+ import { GetUserListBody, GetUserListSegmentBody } from './user';
12
12
  import { RemoveBrandActivity } from './brand';
13
13
  import { UploadFileBody } from './file';
14
14
  import { DocumentUpdateBody, DocumentInfo, DocumentBody } from './document';
@@ -30,7 +30,7 @@ declare const API: {
30
30
  getCurrency: (countryCode: string) => Promise<any>;
31
31
  };
32
32
  authService: {
33
- createAuth: (data: CreateAuthBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
33
+ createAuth: (data: CreateAuthBody | CreateKYCAuthBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
34
34
  verifyAuth: (data: VerifyAuthBody | VerifyOperationAuthBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
35
35
  createPassword: (data: CreatePasswordBody) => Promise<any>;
36
36
  verifyExpressAuth: (data: VerifyAuthExpressOTPBody) => Promise<any>;
@@ -50,7 +50,9 @@ declare const API: {
50
50
  retrieveLead: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
51
51
  getLeadById: (leadId: string) => Promise<any>;
52
52
  verifyLeadToken: (data: LeadVerifyBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
53
+ verifyToken: (data: LeadVerifyBody) => Promise<any>;
53
54
  verifyLeadOTP: (data: LeadOTPVerifyBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
55
+ verifyTokenOTP: (data: LeadOTPVerifyBody) => Promise<any>;
54
56
  retrieveEntityList: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
55
57
  retrieveLeadIdentity: (leadId: string) => Promise<any>;
56
58
  updateLeadExpress: ({ id, ...data }: UpdateLeadBody) => Promise<any>;
@@ -59,8 +61,8 @@ declare const API: {
59
61
  };
60
62
  entityService: {
61
63
  createEntityInfo: ({ id, ...data }: EntityInfoBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
62
- updateEntityInfo: ({ id, ...data }: EntityInfoBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
63
- createBankAccount: (data: EntityBankUpdateBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
64
+ updateEntityInfo: ({ id, ...data }: EntityInfoBody) => Promise<any>;
65
+ createBankAccount: (data: EntityBankUpdateBody) => Promise<any>;
64
66
  retrieveBankAccount: (id: string) => Promise<any>;
65
67
  retrieveEntityInfo: (entity_id: string, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
66
68
  updateIndividualInfo: ({ id, ...data }: EntityInfoBody) => Promise<any>;
@@ -89,19 +91,16 @@ declare const API: {
89
91
  createAccount: (data: CreateAccountBody) => Promise<any>;
90
92
  expressCreateAccount: (data: ExpressCreateAccountBody) => Promise<any>;
91
93
  checkAccountAvailability: (individualId: string) => Promise<any>;
94
+ checkAccountAvailabilityStatus: (individualId: string) => Promise<any>;
95
+ checkMigrationStatus: (jobId: string) => Promise<any>;
92
96
  };
93
97
  dataService: {
94
98
  getChannelsOfServices: (data: {
95
99
  page: number;
96
100
  }) => Promise<any>;
97
- getCustomerBases: (data: {
98
- page: number;
99
- }) => Promise<any>;
100
- getExpectedSales: (data: {
101
- page: number;
102
- }) => Promise<any>;
103
- getExpectedCustomerSales: (data: {
101
+ getBrandOperations: (data: {
104
102
  page: number;
103
+ country_code: string[];
105
104
  }) => Promise<any>;
106
105
  getSourceOfIncome: (data: {
107
106
  page: number;
@@ -115,24 +114,13 @@ declare const API: {
115
114
  }) => Promise<any>;
116
115
  getSegments: (data: {
117
116
  page: number;
117
+ limit: number;
118
118
  }) => Promise<any>;
119
119
  getTeamSize: (data: {
120
120
  page: number;
121
121
  }) => Promise<any>;
122
122
  getActivities: (config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
123
123
  getActivitiesIsIc: () => Promise<any>;
124
- getSegmentLocation: (data: {
125
- page: number;
126
- limit: number;
127
- }) => Promise<any>;
128
- getSegmentProfit: (data: {
129
- page: number;
130
- limit: number;
131
- }) => Promise<any>;
132
- getSegmentTech: (data: {
133
- page: number;
134
- limit: number;
135
- }) => Promise<any>;
136
124
  };
137
125
  individualService: {
138
126
  retrieveIndividualInfo: (id: string) => Promise<any>;
@@ -153,6 +141,7 @@ declare const API: {
153
141
  userService: {
154
142
  retrieveUserInfo: (userId: string) => Promise<any>;
155
143
  getUserList: (data: GetUserListBody) => Promise<any>;
144
+ getUserListUsingSegmentId: (data: GetUserListSegmentBody) => Promise<any>;
156
145
  };
157
146
  brandService: {
158
147
  retrieveBrand: (id: string) => Promise<any>;
@@ -176,6 +165,6 @@ declare const API: {
176
165
  getInitialData: (body: InitBody) => Promise<any>;
177
166
  };
178
167
  };
179
- export type { ValidateOperatorBody, CreateAuthBody, ExpressCreateAccountBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody, DataElementBody, UploadFileBody, UpdateEntityBody, DocumentUpdateBody, DocumentInfo, VerifyAuthExpressOTPBody, UpdateIndividualBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, BankDocumentInfo, GetUserListBody, GetIndividualListBody, RequestEmailBody, DocumentBody, UpdateEntityAOAFileBody, InitBody, RemoveBrandActivity, RemoveEntityActivity, UpdateIndividualWithTypeBody, UpdateMultipleIndividualBody, ExpressLeadVerifyBody, ConfirmBody, ConfigBody, MerchantListBody, CreateEntityBody };
168
+ export type { ValidateOperatorBody, CreateAuthBody, ExpressCreateAccountBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody, DataElementBody, UploadFileBody, UpdateEntityBody, DocumentUpdateBody, DocumentInfo, VerifyAuthExpressOTPBody, UpdateIndividualBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, BankDocumentInfo, GetUserListBody, GetIndividualListBody, RequestEmailBody, DocumentBody, UpdateEntityAOAFileBody, InitBody, RemoveBrandActivity, RemoveEntityActivity, UpdateIndividualWithTypeBody, UpdateMultipleIndividualBody, ExpressLeadVerifyBody, ConfirmBody, ConfigBody, MerchantListBody, CreateEntityBody, CreateNafathAuthBody, GetUserListSegmentBody, CreateKYCAuthBody };
180
169
  export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance, getAxiosHeaders };
181
170
  export default API;
@@ -22,6 +22,13 @@ declare type BrandTitle = {
22
22
  ar?: string;
23
23
  zh?: string;
24
24
  };
25
+ declare type MetaData = {
26
+ utm_source?: string;
27
+ utm_medium?: string;
28
+ utm_campaign?: string;
29
+ utm_term?: string;
30
+ utm_content?: string;
31
+ };
25
32
  declare type BrandContent = {
26
33
  tag_line?: BrandTitle;
27
34
  about?: BrandTitle;
@@ -49,9 +56,7 @@ export declare type UpdateLeadBody = {
49
56
  business_type?: string;
50
57
  country_code?: string;
51
58
  brand?: BrandInfo;
52
- metadata?: {
53
- check: string;
54
- };
59
+ metadata?: MetaData;
55
60
  note?: string;
56
61
  source?: {
57
62
  business_id?: string;
@@ -66,6 +71,12 @@ export declare type UpdateLeadBody = {
66
71
  type: string;
67
72
  team: string;
68
73
  };
74
+ identification?: {
75
+ id?: string;
76
+ issued_country_code?: string;
77
+ type?: string;
78
+ };
79
+ date_of_birth?: string;
69
80
  };
70
81
  export declare type LeadVerifyBody = {
71
82
  verify_token: string;
@@ -110,7 +121,9 @@ declare const leadService: {
110
121
  retrieveLead: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
111
122
  getLeadById: (leadId: string) => Promise<any>;
112
123
  verifyLeadToken: (data: LeadVerifyBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
124
+ verifyToken: (data: LeadVerifyBody) => Promise<any>;
113
125
  verifyLeadOTP: (data: LeadOTPVerifyBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
126
+ verifyTokenOTP: (data: LeadOTPVerifyBody) => Promise<any>;
114
127
  retrieveEntityList: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
115
128
  retrieveLeadIdentity: (leadId: string) => Promise<any>;
116
129
  updateLeadExpress: ({ id, ...data }: UpdateLeadBody) => Promise<any>;
package/build/api/lead.js CHANGED
@@ -78,6 +78,13 @@ var getLeadById = function (leadId) {
78
78
  var verifyLeadToken = function (data, config) {
79
79
  return instance.put("".concat(ENDPOINT_PATHS.TOKEN_VERIFY), data, config);
80
80
  };
81
+ var verifyToken = function (data) {
82
+ return httpClient({
83
+ method: 'put',
84
+ url: "".concat(ENDPOINT_PATHS.TOKEN_VERIFY),
85
+ data: data
86
+ });
87
+ };
81
88
  var verifyExpressLeadToken = function (data) {
82
89
  return httpClient({
83
90
  method: 'put',
@@ -88,6 +95,13 @@ var verifyExpressLeadToken = function (data) {
88
95
  var verifyLeadOTP = function (data, config) {
89
96
  return instance.put("".concat(ENDPOINT_PATHS.TOKEN_VERIFY), data, config);
90
97
  };
98
+ var verifyTokenOTP = function (data) {
99
+ return httpClient({
100
+ method: 'put',
101
+ url: "".concat(ENDPOINT_PATHS.TOKEN_VERIFY),
102
+ data: data
103
+ });
104
+ };
91
105
  var retrieveEntityList = function (leadId) {
92
106
  return instance.get("".concat(ENDPOINT_PATHS.RETRIEVE_ENTITY_LIST, "/").concat(leadId));
93
107
  };
@@ -112,7 +126,9 @@ var leadService = {
112
126
  retrieveLead: retrieveLead,
113
127
  getLeadById: getLeadById,
114
128
  verifyLeadToken: verifyLeadToken,
129
+ verifyToken: verifyToken,
115
130
  verifyLeadOTP: verifyLeadOTP,
131
+ verifyTokenOTP: verifyTokenOTP,
116
132
  retrieveEntityList: retrieveEntityList,
117
133
  retrieveLeadIdentity: retrieveLeadIdentity,
118
134
  updateLeadExpress: updateLeadExpress,
@@ -7,8 +7,15 @@ export declare type GetUserListBody = {
7
7
  limit: number;
8
8
  business_id: string;
9
9
  };
10
+ export declare type GetUserListSegmentBody = {
11
+ page: number;
12
+ limit: number;
13
+ is_authorized: boolean;
14
+ segment_ids: string[];
15
+ };
10
16
  declare const userService: {
11
17
  retrieveUserInfo: (userId: string) => Promise<any>;
12
18
  getUserList: (data: GetUserListBody) => Promise<any>;
19
+ getUserListUsingSegmentId: (data: GetUserListSegmentBody) => Promise<any>;
13
20
  };
14
21
  export { userService };
package/build/api/user.js CHANGED
@@ -13,8 +13,16 @@ var getUserList = function (data) {
13
13
  data: data
14
14
  });
15
15
  };
16
+ var getUserListUsingSegmentId = function (data) {
17
+ return httpClient({
18
+ method: 'post',
19
+ url: "".concat(ENDPOINT_PATHS.RETRIEVE_USER_INFO, "/list"),
20
+ data: data
21
+ });
22
+ };
16
23
  var userService = {
17
24
  retrieveUserInfo: retrieveUserInfo,
18
- getUserList: getUserList
25
+ getUserList: getUserList,
26
+ getUserListUsingSegmentId: getUserListUsingSegmentId
19
27
  };
20
28
  export { userService };
@@ -12,5 +12,6 @@ declare const rootReducer: {
12
12
  connectExpress: import("redux").Reducer<import("../features/app/connectExpress/connectExpressStore").ConnectExpressState, import("redux").AnyAction>;
13
13
  auth: import("redux").Reducer<import("../features/app/auth/authStore").AuthState, import("redux").AnyAction>;
14
14
  board: import("redux").Reducer<import("../features/app/board/boardStore").BoardState, import("redux").AnyAction>;
15
+ kyc: import("redux").Reducer<import("../features/app/kyc/kycStore").KYCDataState, import("redux").AnyAction>;
15
16
  };
16
17
  export default rootReducer;
@@ -11,6 +11,7 @@ import brand from '../features/app/brand/brandStore';
11
11
  import connectExpress from '../features/app/connectExpress/connectExpressStore';
12
12
  import board from '../features/app/board/boardStore';
13
13
  import auth from '../features/app/auth/authStore';
14
+ import kyc from '../features/app/kyc/kycStore';
14
15
  var rootReducer = {
15
16
  settings: settings,
16
17
  connect: connect,
@@ -24,6 +25,7 @@ var rootReducer = {
24
25
  brand: brand,
25
26
  connectExpress: connectExpress,
26
27
  auth: auth,
27
- board: board
28
+ board: board,
29
+ kyc: kyc
28
30
  };
29
31
  export default rootReducer;
@@ -57,7 +57,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
57
57
  var _a;
58
58
  import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
59
59
  import { getStoredData, storeData, isArray, findItem, getBrowserInfo, getFingerPrint, sortCountries, findCountryByIso2, getRequestHeaders, encryptString, dangerousMessage, getParameterByName, setBaseUrl, getUserLanguage } from '../utils';
60
- import { BUSINESS_COUNTRIES, DefaultDeviceInfo, LOCAL_STORAGE_KEYS } from '../constants';
60
+ import { BUSINESS_COUNTRIES, DEFAULT_COUNTRY_ISO2, DefaultDeviceInfo, LOCAL_STORAGE_KEYS } from '../constants';
61
61
  import i18n from '../i18n';
62
62
  import { updateLocale } from '../utils/locale';
63
63
  import API, { getAxiosHeaders, setAxiosGlobalHeaders } from '../api';
@@ -106,22 +106,19 @@ export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', funct
106
106
  _j = interfaceData || {}, locale_1 = _j.locale, edges = _j.edges;
107
107
  if (locale_1)
108
108
  lang = locale_1 === 'dynamic' ? getUserLanguage() : locale_1;
109
- configInfo = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, configInfo), ((lead === null || lead === void 0 ? void 0 : lead.id) && { leadId: lead.id })), (scope && { scope: scope.toLowerCase() })), ((operator_1 === null || operator_1 === void 0 ? void 0 : operator_1.public_key) && { publicKey: operator_1.public_key })), ((post === null || post === void 0 ? void 0 : post.url) && { postURL: post.url })), ((redirect === null || redirect === void 0 ? void 0 : redirect.url) && { redirectUrl: redirect.url })), (data && { data: data })), (edges && { dialogEdgeFormat: edges })), (platforms && { platforms: platforms })), (payment_provider && { payment_provider: payment_provider }));
109
+ configInfo = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, configInfo), ((lead === null || lead === void 0 ? void 0 : lead.id) && { leadId: lead.id })), (scope && { scope: scope.toLowerCase() })), ((operator_1 === null || operator_1 === void 0 ? void 0 : operator_1.public_key) && { publicKey: operator_1.public_key })), ((post === null || post === void 0 ? void 0 : post.url) && { postURL: post.url })), ((redirect === null || redirect === void 0 ? void 0 : redirect.url) && { redirectUrl: redirect.url })), (data && { data: data })), (edges && { dialogEdgeFormat: edges })), (platforms && { platforms: platforms })), (payment_provider && { payment_provider: payment_provider })), (typeof (board === null || board === void 0 ? void 0 : board.display) === 'boolean' && { showBoard: board.display }));
110
110
  matureData = 'express';
111
111
  thunkApi.dispatch(handleSetAppConfig(configInfo));
112
112
  thunkApi.dispatch(handleLanguage(lang));
113
113
  if (configInfo.publicKey) {
114
114
  if (configToken) {
115
- setBaseUrl(configInfo.publicKey);
115
+ setBaseUrl(configInfo.publicKey, appConfig.businessCountryCode);
116
116
  }
117
117
  thunkApi.dispatch(handlePublicKey(configInfo.publicKey));
118
118
  }
119
119
  if (typeof (board === null || board === void 0 ? void 0 : board.editable) === 'boolean')
120
120
  thunkApi.dispatch(handelBoardMaturity(board.editable));
121
121
  onVerifyConfigTokenSuccess === null || onVerifyConfigTokenSuccess === void 0 ? void 0 : onVerifyConfigTokenSuccess(config);
122
- if (matureData === 'express' && maturity !== matureData && typeof configInfo.onMaturityChanged === 'function') {
123
- configInfo.onMaturityChanged(matureData);
124
- }
125
122
  }
126
123
  deviceInfo = {
127
124
  app: {
@@ -161,8 +158,7 @@ export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', funct
161
158
  ipCountry = undefined;
162
159
  if (countryCode)
163
160
  businessCountry = findCountryByIso2(countries, countryCode);
164
- if (country_code)
165
- ipCountry = findCountryByIso2(countries, country_code);
161
+ ipCountry = findCountryByIso2(countries, country_code !== null && country_code !== void 0 ? country_code : DEFAULT_COUNTRY_ISO2);
166
162
  if (appConfig.onSettingFetched)
167
163
  appConfig.onSettingFetched({
168
164
  config: config,
@@ -173,7 +169,12 @@ export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', funct
173
169
  operator: operator,
174
170
  locale: locale
175
171
  });
176
- return [2, __assign({ countries: countries, businessCountry: businessCountry, locale: locale, deviceInfo: deviceInfo, ipCountry: ipCountry, isValidOperator: isValidOperator, isMaturityExpress: matureData === 'express' }, (merchant && { merchant: merchant }))];
172
+ if (!(matureData === 'express' && maturity !== matureData && typeof configInfo.onMaturityChanged === 'function')) return [3, 7];
173
+ return [4, configInfo.onMaturityChanged(matureData)];
174
+ case 6:
175
+ _k.sent();
176
+ _k.label = 7;
177
+ case 7: return [2, __assign({ countries: countries, businessCountry: businessCountry, locale: locale, deviceInfo: deviceInfo, ipCountry: ipCountry, isValidOperator: isValidOperator, isMaturityExpress: matureData === 'express' }, (merchant && { merchant: merchant }))];
177
178
  }
178
179
  });
179
180
  }); });
@@ -357,6 +358,7 @@ export var settingsSlice = createSlice({
357
358
  if (state.data.locale && country.iso2)
358
359
  updateLocale(state.data.locale, country.iso2);
359
360
  state.data.businessCountry = country;
361
+ setBaseUrl(state.data.appConfig.publicKey, country.iso2);
360
362
  }
361
363
  }
362
364
  },
@@ -13,6 +13,7 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
13
13
  connectExpress: import("../features/app/connectExpress/connectExpressStore").ConnectExpressState;
14
14
  auth: import("../features/app/auth/authStore").AuthState;
15
15
  board: import("../features/app/board/boardStore").BoardState;
16
+ kyc: import("../features/app/kyc/kycStore").KYCDataState;
16
17
  }, import("redux").AnyAction, import("@reduxjs/toolkit").MiddlewareArray<[import("@reduxjs/toolkit").ThunkMiddleware<{
17
18
  settings: import("./settings").SettingsState;
18
19
  connect: import("../features/app/connect/connectStore").ConnectState;
@@ -27,6 +28,7 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
27
28
  connectExpress: import("../features/app/connectExpress/connectExpressStore").ConnectExpressState;
28
29
  auth: import("../features/app/auth/authStore").AuthState;
29
30
  board: import("../features/app/board/boardStore").BoardState;
31
+ kyc: import("../features/app/kyc/kycStore").KYCDataState;
30
32
  }, import("redux").AnyAction, undefined>]>>;
31
33
  export declare type AppDispatch = typeof store.dispatch;
32
34
  export declare type RootState = ReturnType<typeof store.getState>;