@tap-payments/auth-jsconnect 2.6.101-test → 2.7.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 (555) hide show
  1. package/build/@types/app.d.ts +47 -14
  2. package/build/@types/app.js +16 -0
  3. package/build/@types/config.d.ts +49 -0
  4. package/build/@types/config.js +1 -0
  5. package/build/@types/form.d.ts +11 -1
  6. package/build/@types/index.d.ts +1 -0
  7. package/build/@types/index.js +1 -0
  8. package/build/@types/redux.d.ts +1 -0
  9. package/build/@types/theme.d.ts +4 -0
  10. package/build/@types/theme.js +5 -0
  11. package/build/api/account.d.ts +4 -0
  12. package/build/api/account.js +9 -2
  13. package/build/api/auth.d.ts +35 -20
  14. package/build/api/auth.js +1 -1
  15. package/build/api/data.d.ts +4 -17
  16. package/build/api/data.js +5 -45
  17. package/build/api/entity.d.ts +5 -2
  18. package/build/api/entity.js +12 -4
  19. package/build/api/firebase.js +68 -8
  20. package/build/api/index.d.ts +13 -25
  21. package/build/api/lead.d.ts +16 -3
  22. package/build/api/lead.js +16 -0
  23. package/build/api/user.d.ts +7 -0
  24. package/build/api/user.js +9 -1
  25. package/build/app/rootReducer.d.ts +1 -0
  26. package/build/app/rootReducer.js +3 -1
  27. package/build/app/settings.d.ts +3 -2
  28. package/build/app/settings.js +64 -31
  29. package/build/app/store.d.ts +2 -0
  30. package/build/assets/locales/ar.json +353 -151
  31. package/build/assets/locales/en.json +349 -150
  32. package/build/components/AnimationFlow/AnimationFlow.d.ts +11 -6
  33. package/build/components/AnimationFlow/AnimationFlow.js +5 -5
  34. package/build/components/AnimationFlow/BottomSheet.d.ts +5 -2
  35. package/build/components/AnimationFlow/BottomSheet.js +43 -14
  36. package/build/components/AnimationFlow/Dialog.d.ts +6 -4
  37. package/build/components/AnimationFlow/Dialog.js +9 -7
  38. package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +1 -1
  39. package/build/components/ArabicDatePicker/ArabicDatePicker.js +2 -2
  40. package/build/components/ArabicDatePicker/style.css +32 -3
  41. package/build/components/DatePicker/DatePicker.d.ts +1 -1
  42. package/build/components/DatePicker/DatePicker.js +2 -2
  43. package/build/components/Footer/Footer.js +2 -1
  44. package/build/components/Input/Input.js +1 -1
  45. package/build/components/Providers/ThemeProvider.js +3 -3
  46. package/build/components/Tooltip/Tooltip.js +1 -1
  47. package/build/constants/api.d.ts +5 -7
  48. package/build/constants/api.js +11 -15
  49. package/build/constants/app.d.ts +39 -0
  50. package/build/constants/app.js +345 -35
  51. package/build/constants/assets.d.ts +3 -0
  52. package/build/constants/assets.js +4 -1
  53. package/build/constants/dummy.d.ts +4 -219
  54. package/build/constants/dummy.js +64 -6194
  55. package/build/constants/flows.d.ts +26 -0
  56. package/build/constants/flows.js +27 -0
  57. package/build/constants/index.d.ts +1 -0
  58. package/build/constants/index.js +1 -0
  59. package/build/constants/validation.d.ts +2 -0
  60. package/build/constants/validation.js +2 -0
  61. package/build/features/app/auth/authStore.d.ts +29 -8
  62. package/build/features/app/auth/authStore.js +454 -136
  63. package/build/features/app/bank/bankStore.d.ts +13 -18
  64. package/build/features/app/bank/bankStore.js +186 -153
  65. package/build/features/app/board/boardStore.d.ts +5 -1
  66. package/build/features/app/board/boardStore.js +82 -51
  67. package/build/features/app/brand/brandStore.d.ts +17 -33
  68. package/build/features/app/brand/brandStore.js +255 -258
  69. package/build/features/app/business/businessStore.d.ts +37 -15
  70. package/build/features/app/business/businessStore.js +407 -223
  71. package/build/features/app/connect/connectStore.d.ts +33 -5
  72. package/build/features/app/connect/connectStore.js +318 -95
  73. package/build/features/app/connectExpress/connectExpressStore.d.ts +53 -23
  74. package/build/features/app/connectExpress/connectExpressStore.js +605 -346
  75. package/build/features/app/entity/entityStore.d.ts +20 -36
  76. package/build/features/app/entity/entityStore.js +204 -238
  77. package/build/features/app/individual/individualStore.d.ts +18 -34
  78. package/build/features/app/individual/individualStore.js +269 -292
  79. package/build/features/app/kyc/kycStore.d.ts +67 -0
  80. package/build/features/app/kyc/kycStore.js +408 -0
  81. package/build/features/app/password/passwordStore.d.ts +33 -18
  82. package/build/features/app/password/passwordStore.js +260 -219
  83. package/build/features/app/signIn/signInStore.js +19 -15
  84. package/build/features/app/tax/taxStore.d.ts +13 -7
  85. package/build/features/app/tax/taxStore.js +170 -136
  86. package/build/features/auth/Auth.d.ts +5 -6
  87. package/build/features/auth/Auth.js +44 -20
  88. package/build/features/auth/screens/AccountNotFound/AccountNotFound.js +2 -5
  89. package/build/features/auth/screens/AuthSwitch/AuthSwitch.d.ts +5 -0
  90. package/build/features/auth/screens/AuthSwitch/AuthSwitch.js +58 -0
  91. package/build/features/auth/screens/AuthSwitch/index.d.ts +3 -0
  92. package/build/features/auth/screens/AuthSwitch/index.js +2 -0
  93. package/build/features/auth/screens/AuthenticationList/AuthenticationList.js +2 -8
  94. package/build/features/auth/screens/AuthenticationList/LicenseNumber.js +2 -2
  95. package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +8 -2
  96. package/build/features/auth/screens/CivilID/CivilID.js +4 -35
  97. package/build/features/auth/screens/{NID → DOB}/DOB.js +3 -3
  98. package/build/features/auth/screens/DOB/DOBForm.d.ts +5 -0
  99. package/build/features/auth/screens/DOB/DOBForm.js +59 -0
  100. package/build/features/auth/screens/DOB/index.d.ts +3 -0
  101. package/build/features/auth/screens/DOB/index.js +2 -0
  102. package/build/features/{business/screens/OTP → auth/screens/DOB}/validation.d.ts +4 -4
  103. package/build/features/auth/screens/DOB/validation.js +4 -0
  104. package/build/features/auth/screens/Email/Email.d.ts +5 -0
  105. package/build/features/auth/screens/Email/Email.js +57 -0
  106. package/build/features/auth/screens/Email/EmailField.d.ts +8 -0
  107. package/build/features/auth/screens/Email/EmailField.js +52 -0
  108. package/build/features/auth/screens/Email/index.d.ts +3 -0
  109. package/build/features/auth/screens/Email/index.js +2 -0
  110. package/build/features/auth/screens/Email/validation.d.ts +8 -0
  111. package/build/features/auth/screens/Email/validation.js +4 -0
  112. package/build/features/auth/screens/EmailSent/EmailSent.d.ts +5 -0
  113. package/build/features/auth/screens/EmailSent/EmailSent.js +79 -0
  114. package/build/features/auth/screens/EmailSent/index.d.ts +2 -0
  115. package/build/features/auth/screens/EmailSent/index.js +2 -0
  116. package/build/features/auth/screens/MigratingData/MigratingData.d.ts +5 -0
  117. package/build/features/auth/screens/MigratingData/MigratingData.js +44 -0
  118. package/build/features/auth/screens/MigratingData/index.d.ts +2 -0
  119. package/build/features/auth/screens/MigratingData/index.js +2 -0
  120. package/build/features/auth/screens/Mobile/Mobile.js +6 -38
  121. package/build/features/auth/screens/Mobile/MobileNumber.js +13 -15
  122. package/build/features/auth/screens/Mobile/validation.js +11 -3
  123. package/build/features/auth/screens/NID/IDNumber.js +1 -1
  124. package/build/features/auth/screens/NID/NID.js +7 -43
  125. package/build/features/auth/screens/NID/validation.d.ts +0 -3
  126. package/build/features/auth/screens/NID/validation.js +0 -1
  127. package/build/features/auth/screens/OTP/OTP.js +41 -10
  128. package/build/features/auth/screens/OTP/OTPInput.js +23 -6
  129. package/build/features/auth/screens/OperatorError/OperatorError.d.ts +5 -0
  130. package/build/features/auth/screens/OperatorError/OperatorError.js +9 -0
  131. package/build/features/auth/screens/OperatorError/index.d.ts +3 -0
  132. package/build/features/auth/screens/OperatorError/index.js +2 -0
  133. package/build/features/auth/screens/Password/Password.d.ts +5 -0
  134. package/build/features/auth/screens/Password/Password.js +61 -0
  135. package/build/features/auth/screens/Password/PasswordField.d.ts +5 -0
  136. package/build/features/auth/screens/Password/PasswordField.js +28 -0
  137. package/build/features/auth/screens/Password/index.d.ts +3 -0
  138. package/build/features/auth/screens/Password/index.js +2 -0
  139. package/build/features/auth/screens/Password/validation.d.ts +8 -0
  140. package/build/features/auth/screens/Password/validation.js +4 -0
  141. package/build/features/auth/screens/PreparingData/PreparingData.js +3 -0
  142. package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.d.ts +5 -0
  143. package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.js +21 -0
  144. package/build/features/auth/screens/ResetPasswordMessage/index.d.ts +3 -0
  145. package/build/features/auth/screens/ResetPasswordMessage/index.js +2 -0
  146. package/build/features/auth/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  147. package/build/features/auth/screens/VerifyNafath/VerifyNafath.js +35 -0
  148. package/build/features/auth/screens/VerifyNafath/index.d.ts +3 -0
  149. package/build/features/auth/screens/VerifyNafath/index.js +2 -0
  150. package/build/features/bank/Bank.d.ts +5 -1
  151. package/build/features/bank/Bank.js +22 -9
  152. package/build/features/bank/screens/BankDetails/BankDetails.js +20 -6
  153. package/build/features/bank/screens/OperatorError/OperatorError.d.ts +5 -0
  154. package/build/features/bank/screens/OperatorError/OperatorError.js +9 -0
  155. package/build/features/bank/screens/OperatorError/index.d.ts +3 -0
  156. package/build/features/bank/screens/OperatorError/index.js +2 -0
  157. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  158. package/build/features/bank/screens/Verify/Verify.js +7 -6
  159. package/build/features/board/Board.d.ts +2 -0
  160. package/build/features/board/Board.js +24 -13
  161. package/build/features/board/screens/OperatorError/OperatorError.d.ts +5 -0
  162. package/build/features/board/screens/OperatorError/OperatorError.js +9 -0
  163. package/build/features/board/screens/OperatorError/index.d.ts +3 -0
  164. package/build/features/board/screens/OperatorError/index.js +2 -0
  165. package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  166. package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  167. package/build/features/board/screens/PrepareDataLoading/index.d.ts +2 -0
  168. package/build/features/board/screens/PrepareDataLoading/index.js +2 -0
  169. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -4
  170. package/build/features/board/screens/Verify/Verify.js +3 -2
  171. package/build/features/brand/Brand.d.ts +5 -1
  172. package/build/features/brand/Brand.js +22 -9
  173. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +5 -5
  174. package/build/features/brand/screens/BrandActivities/BrandActivities.js +48 -11
  175. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +6 -6
  176. package/build/features/brand/screens/BrandActivities/CustomerBase.js +1 -1
  177. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +6 -3
  178. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +4 -4
  179. package/build/features/brand/screens/BrandActivities/RefundPolicy.js +1 -1
  180. package/build/features/brand/screens/BrandActivities/TAC.d.ts +1 -1
  181. package/build/features/brand/screens/BrandActivities/TAC.js +1 -1
  182. package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +1 -1
  183. package/build/features/brand/screens/BrandInfo/BrandInfo.js +26 -6
  184. package/build/features/brand/screens/BrandInfo/BrandName.js +5 -2
  185. package/build/features/brand/screens/BrandInfo/validation.js +2 -2
  186. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +22 -6
  187. package/build/features/brand/screens/OperatorError/OperatorError.d.ts +5 -0
  188. package/build/features/brand/screens/OperatorError/OperatorError.js +9 -0
  189. package/build/features/brand/screens/OperatorError/index.d.ts +3 -0
  190. package/build/features/brand/screens/OperatorError/index.js +2 -0
  191. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  192. package/build/features/brand/screens/Verify/Verify.js +3 -2
  193. package/build/features/business/Business.js +20 -12
  194. package/build/features/business/screens/Activities/Activities.js +26 -9
  195. package/build/features/business/screens/Activities/ActivitiesList.d.ts +4 -4
  196. package/build/features/business/screens/Activities/ActivitiesList.js +1 -1
  197. package/build/features/business/screens/Activities/OperationStartDate.d.ts +5 -3
  198. package/build/features/business/screens/Activities/OperationStartDate.js +2 -2
  199. package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +2 -2
  200. package/build/features/business/screens/BusinessType/BusinessType.js +11 -3
  201. package/build/features/business/screens/BusinessType/LicenseNumber.js +3 -3
  202. package/build/features/business/screens/Customers/CustomerLocations.d.ts +10 -8
  203. package/build/features/business/screens/Customers/CustomerLocations.js +5 -3
  204. package/build/features/business/screens/Customers/Customers.js +50 -10
  205. package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +3 -1
  206. package/build/features/business/screens/Customers/ExpectedCustomers.js +5 -3
  207. package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +3 -1
  208. package/build/features/business/screens/Customers/ExpectedSalesRange.js +11 -5
  209. package/build/features/business/screens/Customers/RefundPolicy.d.ts +12 -5
  210. package/build/features/business/screens/Customers/RefundPolicy.js +13 -13
  211. package/build/features/business/screens/Customers/TransactionPolicy.d.ts +4 -1
  212. package/build/features/business/screens/Customers/TransactionPolicy.js +8 -5
  213. package/build/features/business/screens/Customers/validation.d.ts +6 -6
  214. package/build/features/business/screens/Customers/validation.js +3 -8
  215. package/build/features/business/screens/DOB/DOB.d.ts +6 -0
  216. package/build/features/business/screens/DOB/DOB.js +45 -0
  217. package/build/features/business/screens/DOB/DOBForm.d.ts +5 -0
  218. package/build/features/business/screens/DOB/DOBForm.js +72 -0
  219. package/build/features/business/screens/DOB/index.d.ts +3 -0
  220. package/build/features/business/screens/DOB/index.js +2 -0
  221. package/build/features/{connectExpress/screens/IdentityOTP → business/screens/DOB}/validation.d.ts +4 -4
  222. package/build/features/business/screens/DOB/validation.js +4 -0
  223. package/build/features/business/screens/IDBOD/IDBOD.js +10 -2
  224. package/build/features/business/screens/IDBOD/validation.d.ts +0 -3
  225. package/build/features/business/screens/IDBOD/validation.js +0 -1
  226. package/build/features/business/screens/MobileOwnership/CollectMobileOwnership.d.ts +3 -0
  227. package/build/features/business/screens/MobileOwnership/CollectMobileOwnership.js +105 -0
  228. package/build/features/{connectExpress/screens/IdentityOTP/OTP.d.ts → business/screens/MobileOwnership/MobileNumber.d.ts} +0 -2
  229. package/build/features/business/screens/MobileOwnership/MobileNumber.js +72 -0
  230. package/build/features/business/screens/MobileOwnership/index.d.ts +2 -0
  231. package/build/features/business/screens/MobileOwnership/index.js +2 -0
  232. package/build/features/business/screens/MobileOwnership/validation.d.ts +8 -0
  233. package/build/features/business/screens/MobileOwnership/validation.js +38 -0
  234. package/build/features/business/screens/OperatorError/OperatorError.d.ts +5 -0
  235. package/build/features/business/screens/OperatorError/OperatorError.js +9 -0
  236. package/build/features/business/screens/OperatorError/index.d.ts +3 -0
  237. package/build/features/business/screens/OperatorError/index.js +2 -0
  238. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +14 -3
  239. package/build/features/business/screens/Verify/Verify.js +15 -4
  240. package/build/features/business/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  241. package/build/features/business/screens/VerifyNafath/VerifyNafath.js +35 -0
  242. package/build/features/business/screens/VerifyNafath/index.d.ts +3 -0
  243. package/build/features/business/screens/VerifyNafath/index.js +2 -0
  244. package/build/features/connect/Connect.d.ts +5 -1
  245. package/build/features/connect/Connect.js +21 -14
  246. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +7 -1
  247. package/build/features/connect/screens/CivilID/CivilID.js +6 -1
  248. package/build/features/{auth/screens/NID → connect/screens/DOB}/DOB.d.ts +1 -2
  249. package/build/features/connect/screens/{NID → DOB}/DOB.js +2 -2
  250. package/build/features/connect/screens/DOB/DOBForm.d.ts +5 -0
  251. package/build/features/connect/screens/DOB/DOBForm.js +59 -0
  252. package/build/features/connect/screens/DOB/index.d.ts +3 -0
  253. package/build/features/connect/screens/DOB/index.js +2 -0
  254. package/build/features/connect/screens/DOB/validation.d.ts +8 -0
  255. package/build/features/connect/screens/DOB/validation.js +4 -0
  256. package/build/features/connect/screens/Individual/Email.js +1 -3
  257. package/build/features/connect/screens/Individual/Individual.js +11 -5
  258. package/build/features/connect/screens/Individual/MobileNumber.js +8 -7
  259. package/build/features/connect/screens/Individual/validation.js +11 -3
  260. package/build/features/connect/screens/Merchant/BrandName.js +5 -2
  261. package/build/features/connect/screens/Merchant/validation.js +2 -2
  262. package/build/features/connect/screens/Mobile/Mobile.js +12 -9
  263. package/build/features/connect/screens/Mobile/MobileNumber.js +8 -7
  264. package/build/features/connect/screens/Mobile/validation.js +11 -3
  265. package/build/features/connect/screens/MobileOwnership/CollectMobileOwnership.d.ts +3 -0
  266. package/build/features/connect/screens/MobileOwnership/CollectMobileOwnership.js +106 -0
  267. package/build/features/connect/screens/MobileOwnership/MobileNumber.d.ts +3 -0
  268. package/build/features/connect/screens/MobileOwnership/MobileNumber.js +72 -0
  269. package/build/features/connect/screens/MobileOwnership/index.d.ts +2 -0
  270. package/build/features/connect/screens/MobileOwnership/index.js +2 -0
  271. package/build/features/connect/screens/MobileOwnership/validation.d.ts +8 -0
  272. package/build/features/connect/screens/MobileOwnership/validation.js +38 -0
  273. package/build/features/connect/screens/NID/IDNumber.d.ts +1 -0
  274. package/build/features/connect/screens/NID/IDNumber.js +2 -2
  275. package/build/features/connect/screens/NID/NID.js +5 -11
  276. package/build/features/connect/screens/NID/validation.d.ts +0 -3
  277. package/build/features/connect/screens/NID/validation.js +0 -1
  278. package/build/features/connect/screens/OTP/OTP.js +6 -6
  279. package/build/features/connect/screens/OTP/OTPInput.js +3 -11
  280. package/build/features/connect/screens/OperatorError/OperatorError.js +1 -1
  281. package/build/features/connect/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  282. package/build/features/connect/screens/VerifyNafath/VerifyNafath.js +35 -0
  283. package/build/features/connect/screens/VerifyNafath/index.d.ts +3 -0
  284. package/build/features/connect/screens/VerifyNafath/index.js +2 -0
  285. package/build/features/connectExpress/ConnectExpress.d.ts +5 -2
  286. package/build/features/connectExpress/ConnectExpress.js +64 -41
  287. package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.js +14 -2
  288. package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.js +2 -2
  289. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +7 -1
  290. package/build/features/connectExpress/screens/CivilID/CivilID.js +6 -1
  291. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +5 -2
  292. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +8 -1
  293. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +2 -2
  294. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +1 -1
  295. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +2 -2
  296. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +30 -7
  297. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +1 -3
  298. package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.js +9 -8
  299. package/build/features/connectExpress/screens/CollectIndividualInfo/validation.js +11 -3
  300. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.js +14 -24
  301. package/build/features/connectExpress/screens/{NID → DOB}/DOB.d.ts +1 -2
  302. package/build/features/connectExpress/screens/{NID → DOB}/DOB.js +3 -3
  303. package/build/features/connectExpress/screens/DOB/DOBForm.d.ts +5 -0
  304. package/build/features/connectExpress/screens/DOB/DOBForm.js +63 -0
  305. package/build/features/connectExpress/screens/DOB/index.d.ts +3 -0
  306. package/build/features/connectExpress/screens/DOB/index.js +2 -0
  307. package/build/features/connectExpress/screens/DOB/validation.d.ts +8 -0
  308. package/build/features/connectExpress/screens/DOB/validation.js +4 -0
  309. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.d.ts +5 -0
  310. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.js +35 -0
  311. package/build/features/connectExpress/screens/IdentityVerifyNafath/index.d.ts +3 -0
  312. package/build/features/connectExpress/screens/IdentityVerifyNafath/index.js +2 -0
  313. package/build/features/connectExpress/screens/Mobile/Mobile.js +10 -3
  314. package/build/features/connectExpress/screens/Mobile/MobileNumber.js +9 -8
  315. package/build/features/connectExpress/screens/Mobile/validation.js +21 -6
  316. package/build/features/connectExpress/screens/MobileOwnership/CollectMobileOwnership.d.ts +3 -0
  317. package/build/features/connectExpress/screens/MobileOwnership/CollectMobileOwnership.js +108 -0
  318. package/build/features/connectExpress/screens/MobileOwnership/MobileNumber.d.ts +3 -0
  319. package/build/features/connectExpress/screens/MobileOwnership/MobileNumber.js +72 -0
  320. package/build/features/connectExpress/screens/MobileOwnership/index.d.ts +2 -0
  321. package/build/features/connectExpress/screens/MobileOwnership/index.js +2 -0
  322. package/build/features/connectExpress/screens/MobileOwnership/validation.d.ts +8 -0
  323. package/build/features/connectExpress/screens/MobileOwnership/validation.js +38 -0
  324. package/build/features/connectExpress/screens/NID/IDNumber.d.ts +1 -0
  325. package/build/features/connectExpress/screens/NID/IDNumber.js +2 -2
  326. package/build/features/connectExpress/screens/NID/NID.js +10 -10
  327. package/build/features/connectExpress/screens/NID/TAC.d.ts +1 -1
  328. package/build/features/connectExpress/screens/NID/TAC.js +2 -2
  329. package/build/features/connectExpress/screens/NID/validation.d.ts +0 -3
  330. package/build/features/connectExpress/screens/NID/validation.js +0 -2
  331. package/build/features/connectExpress/screens/NIDMissed/NID.js +3 -3
  332. package/build/features/connectExpress/screens/NIDMissed/validation.d.ts +0 -3
  333. package/build/features/connectExpress/screens/NIDMissed/validation.js +0 -1
  334. package/build/features/connectExpress/screens/OTP/OTP.js +13 -15
  335. package/build/features/connectExpress/screens/OTP/OTPInput.js +12 -10
  336. package/build/features/connectExpress/screens/OperatorError/OperatorError.d.ts +5 -0
  337. package/build/features/connectExpress/screens/OperatorError/OperatorError.js +9 -0
  338. package/build/features/connectExpress/screens/OperatorError/index.d.ts +3 -0
  339. package/build/features/connectExpress/screens/OperatorError/index.js +2 -0
  340. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.d.ts +5 -0
  341. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.js +34 -0
  342. package/build/features/connectExpress/screens/PrepareDataLoading/index.d.ts +2 -0
  343. package/build/features/connectExpress/screens/PrepareDataLoading/index.js +2 -0
  344. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
  345. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  346. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.js +35 -0
  347. package/build/features/connectExpress/screens/VerifyNafath/index.d.ts +3 -0
  348. package/build/features/connectExpress/screens/VerifyNafath/index.js +2 -0
  349. package/build/features/entity/Entity.d.ts +4 -1
  350. package/build/features/entity/Entity.js +22 -9
  351. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +4 -4
  352. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +8 -4
  353. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +8 -4
  354. package/build/features/entity/screens/EntityCapital/EntityCapital.js +33 -9
  355. package/build/features/entity/screens/EntityName/EntityName.js +33 -15
  356. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +5 -5
  357. package/build/features/entity/screens/EntityName/EntityTypeList.js +2 -3
  358. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +2 -2
  359. package/build/features/entity/screens/EntityName/ExpiryDate.js +13 -8
  360. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +2 -2
  361. package/build/features/entity/screens/EntityName/IssuingDate.js +15 -8
  362. package/build/features/entity/screens/EntityName/LegalName.js +1 -13
  363. package/build/features/entity/screens/EntityName/LicenseNumber.js +6 -8
  364. package/build/features/entity/screens/EntityName/UnifiedNumber.js +4 -6
  365. package/build/features/entity/screens/EntityName/validation.d.ts +3 -3
  366. package/build/features/entity/screens/EntityName/validation.js +1 -10
  367. package/build/features/entity/screens/OperatorError/OperatorError.d.ts +5 -0
  368. package/build/features/entity/screens/OperatorError/OperatorError.js +9 -0
  369. package/build/features/entity/screens/OperatorError/index.d.ts +3 -0
  370. package/build/features/entity/screens/OperatorError/index.js +2 -0
  371. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  372. package/build/features/entity/screens/Verify/Verify.js +3 -2
  373. package/build/features/featuresScreens.d.ts +1 -0
  374. package/build/features/featuresScreens.js +211 -13
  375. package/build/features/individual/Individual.d.ts +4 -1
  376. package/build/features/individual/Individual.js +22 -9
  377. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +2 -2
  378. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +44 -11
  379. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +5 -2
  380. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +8 -3
  381. package/build/features/individual/screens/IndividualList/Email.js +2 -3
  382. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +4 -4
  383. package/build/features/individual/screens/IndividualList/IndividualList.js +21 -6
  384. package/build/features/individual/screens/IndividualList/MobileNumber.js +8 -10
  385. package/build/features/individual/screens/IndividualList/UserList.js +7 -7
  386. package/build/features/individual/screens/IndividualList/validation.js +11 -4
  387. package/build/features/individual/screens/IndividualPersonalInfo/Email.js +2 -4
  388. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +2 -2
  389. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +76 -20
  390. package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +6 -5
  391. package/build/features/individual/screens/IndividualPersonalInfo/validation.js +11 -3
  392. package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.js +9 -11
  393. package/build/features/individual/screens/IndividualPhoneInfo/validation.js +11 -3
  394. package/build/features/individual/screens/OperatorError/OperatorError.d.ts +5 -0
  395. package/build/features/individual/screens/OperatorError/OperatorError.js +9 -0
  396. package/build/features/individual/screens/OperatorError/index.d.ts +3 -0
  397. package/build/features/individual/screens/OperatorError/index.js +2 -0
  398. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  399. package/build/features/individual/screens/Verify/Verify.js +3 -2
  400. package/build/features/kyc/KYC.d.ts +11 -0
  401. package/build/features/kyc/KYC.js +99 -0
  402. package/build/features/kyc/index.d.ts +1 -0
  403. package/build/features/kyc/index.js +1 -0
  404. package/build/features/kyc/screens/AlreadySubmitted/AlreadySubmitted.d.ts +5 -0
  405. package/build/features/kyc/screens/AlreadySubmitted/AlreadySubmitted.js +19 -0
  406. package/build/features/kyc/screens/AlreadySubmitted/index.d.ts +2 -0
  407. package/build/features/kyc/screens/AlreadySubmitted/index.js +2 -0
  408. package/build/features/kyc/screens/Loading/Loading.d.ts +4 -0
  409. package/build/features/kyc/screens/Loading/Loading.js +10 -0
  410. package/build/features/kyc/screens/Loading/index.d.ts +2 -0
  411. package/build/features/kyc/screens/Loading/index.js +2 -0
  412. package/build/features/kyc/screens/OperatorError/OperatorError.d.ts +5 -0
  413. package/build/features/kyc/screens/OperatorError/OperatorError.js +9 -0
  414. package/build/features/kyc/screens/OperatorError/index.d.ts +2 -0
  415. package/build/features/kyc/screens/OperatorError/index.js +2 -0
  416. package/build/features/kyc/screens/Success/Success.d.ts +5 -0
  417. package/build/features/kyc/screens/Success/Success.js +32 -0
  418. package/build/features/kyc/screens/Success/index.d.ts +2 -0
  419. package/build/features/kyc/screens/Success/index.js +2 -0
  420. package/build/features/kyc/screens/Terms/Header.d.ts +6 -0
  421. package/build/features/kyc/screens/Terms/Header.js +36 -0
  422. package/build/features/kyc/screens/Terms/Terms.d.ts +4 -0
  423. package/build/features/kyc/screens/Terms/Terms.js +81 -0
  424. package/build/features/kyc/screens/Terms/index.d.ts +2 -0
  425. package/build/features/kyc/screens/Terms/index.js +2 -0
  426. package/build/features/kyc/screens/TokenError/TokenError.d.ts +5 -0
  427. package/build/features/kyc/screens/TokenError/TokenError.js +9 -0
  428. package/build/features/kyc/screens/TokenError/index.d.ts +2 -0
  429. package/build/features/kyc/screens/TokenError/index.js +2 -0
  430. package/build/features/kyc/screens/Users/Users.d.ts +3 -0
  431. package/build/features/kyc/screens/Users/Users.js +76 -0
  432. package/build/features/kyc/screens/Users/index.d.ts +2 -0
  433. package/build/features/kyc/screens/Users/index.js +2 -0
  434. package/build/features/kyc/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  435. package/build/features/kyc/screens/VerifyNafath/VerifyNafath.js +45 -0
  436. package/build/features/kyc/screens/VerifyNafath/index.d.ts +3 -0
  437. package/build/features/kyc/screens/VerifyNafath/index.js +2 -0
  438. package/build/features/kyc/screens/VerifyPaci/VerifyPACI.d.ts +5 -0
  439. package/build/features/kyc/screens/VerifyPaci/VerifyPACI.js +44 -0
  440. package/build/features/kyc/screens/VerifyPaci/index.d.ts +3 -0
  441. package/build/features/kyc/screens/VerifyPaci/index.js +2 -0
  442. package/build/features/password/Password.d.ts +4 -1
  443. package/build/features/password/Password.js +88 -31
  444. package/build/features/password/screens/CreatePassword/CreatePassword.js +10 -4
  445. package/build/features/password/screens/OTP/OTP.js +3 -3
  446. package/build/features/password/screens/OperatorError/OperatorError.d.ts +5 -0
  447. package/build/features/password/screens/OperatorError/OperatorError.js +9 -0
  448. package/build/features/password/screens/OperatorError/index.d.ts +3 -0
  449. package/build/features/password/screens/OperatorError/index.js +2 -0
  450. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  451. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  452. package/build/features/password/screens/PrepareDataLoading/index.d.ts +2 -0
  453. package/build/features/password/screens/PrepareDataLoading/index.js +2 -0
  454. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  455. package/build/features/password/screens/Verify/Verify.js +7 -6
  456. package/build/features/shared/Address/CountryList.d.ts +5 -5
  457. package/build/features/shared/Address/InputSelect.d.ts +5 -5
  458. package/build/features/shared/Background/Background.js +1 -1
  459. package/build/features/shared/BusinessCountry/BusinessCountry.js +1 -1
  460. package/build/features/shared/Button/Button.js +3 -1
  461. package/build/features/shared/Button/EmailProvidersButtons.js +2 -0
  462. package/build/features/shared/Button/FlowsButtons.js +18 -4
  463. package/build/features/shared/Button/NafathButton.d.ts +8 -0
  464. package/build/features/shared/Button/{AbsherButton.js → NafathButton.js} +12 -3
  465. package/build/features/shared/Button/index.d.ts +2 -2
  466. package/build/features/shared/Button/index.js +2 -2
  467. package/build/features/shared/Calender/Calender.d.ts +2 -1
  468. package/build/features/shared/Calender/Calender.js +3 -3
  469. package/build/features/shared/Containers/FeatureContainer.d.ts +2 -1
  470. package/build/features/shared/Containers/FeatureContainer.js +5 -3
  471. package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
  472. package/build/features/shared/Dialog/DialogContainer.js +5 -4
  473. package/build/features/shared/Input/Input.d.ts +2 -2
  474. package/build/features/shared/NafathVerification/NafathVerification.d.ts +14 -0
  475. package/build/features/shared/NafathVerification/NafathVerification.js +92 -0
  476. package/build/features/shared/NafathVerification/VerifyNafathLoading.d.ts +8 -0
  477. package/build/features/shared/NafathVerification/VerifyNafathLoading.js +53 -0
  478. package/build/features/shared/NafathVerification/VerifyNafathSuccess.d.ts +5 -0
  479. package/build/features/shared/NafathVerification/VerifyNafathSuccess.js +8 -0
  480. package/build/features/shared/NafathVerification/index.d.ts +2 -0
  481. package/build/features/shared/NafathVerification/index.js +2 -0
  482. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +6 -1
  483. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +10 -13
  484. package/build/features/shared/SuccessScreen/SuccessScreen.js +1 -1
  485. package/build/features/shared/UploadFile/FileUpload.d.ts +1 -1
  486. package/build/features/shared/UploadFile/UploadFile.d.ts +1 -1
  487. package/build/features/shared/UploadFile/UploadWrapper.d.ts +1 -1
  488. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +1 -1
  489. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +1 -1
  490. package/build/features/signIn/SignIn.js +18 -7
  491. package/build/features/signIn/screens/Mobile/MobileNumber.js +8 -7
  492. package/build/features/signIn/screens/Mobile/validation.js +11 -3
  493. package/build/features/signIn/screens/OTP/OTP.js +5 -4
  494. package/build/features/signIn/screens/OperatorError/OperatorError.d.ts +5 -0
  495. package/build/features/signIn/screens/OperatorError/OperatorError.js +9 -0
  496. package/build/features/signIn/screens/OperatorError/index.d.ts +3 -0
  497. package/build/features/signIn/screens/OperatorError/index.js +2 -0
  498. package/build/features/tax/Tax.d.ts +4 -1
  499. package/build/features/tax/Tax.js +22 -9
  500. package/build/features/tax/screens/OperatorError/OperatorError.d.ts +5 -0
  501. package/build/features/tax/screens/OperatorError/OperatorError.js +9 -0
  502. package/build/features/tax/screens/OperatorError/index.d.ts +3 -0
  503. package/build/features/tax/screens/OperatorError/index.js +2 -0
  504. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  505. package/build/features/tax/screens/TaxDetails/TaxDetails.js +9 -3
  506. package/build/features/tax/screens/Verify/Verify.js +7 -6
  507. package/build/hooks/index.d.ts +3 -0
  508. package/build/hooks/index.js +3 -0
  509. package/build/hooks/useAppConfig.d.ts +3 -3
  510. package/build/hooks/useAppConfig.js +4 -3
  511. package/build/hooks/useAppDispatch.d.ts +1 -0
  512. package/build/hooks/useAppTheme.js +4 -3
  513. package/build/hooks/useCountDown.d.ts +10 -0
  514. package/build/hooks/useCountDown.js +17 -0
  515. package/build/hooks/useFormDirtyCheck.d.ts +10 -0
  516. package/build/hooks/useFormDirtyCheck.js +66 -0
  517. package/build/hooks/useSanitizedTranslation.d.ts +2 -0
  518. package/build/hooks/useSanitizedTranslation.js +15 -0
  519. package/build/hooks/useVerifyToken.d.ts +4 -2
  520. package/build/hooks/useVerifyToken.js +9 -4
  521. package/build/index.css +360 -120
  522. package/build/index.d.ts +3 -2
  523. package/build/index.js +4 -2
  524. package/build/theme/components.js +7 -0
  525. package/build/theme/palette.js +2 -1
  526. package/build/theme/shadows.js +1 -1
  527. package/build/theme/theme.d.ts +1 -1
  528. package/build/theme/theme.js +2 -2
  529. package/build/utils/array.js +2 -2
  530. package/build/utils/common.d.ts +1 -0
  531. package/build/utils/common.js +16 -3
  532. package/build/utils/device.d.ts +2 -0
  533. package/build/utils/device.js +6 -0
  534. package/build/utils/object.d.ts +1 -0
  535. package/build/utils/object.js +3 -0
  536. package/build/utils/string.d.ts +6 -2
  537. package/build/utils/string.js +28 -3
  538. package/build/utils/validation.d.ts +2 -0
  539. package/build/utils/validation.js +6 -0
  540. package/package.json +2 -2
  541. package/build/features/business/screens/OTP/OTP.d.ts +0 -8
  542. package/build/features/business/screens/OTP/OTP.js +0 -90
  543. package/build/features/business/screens/OTP/OTPInput.d.ts +0 -5
  544. package/build/features/business/screens/OTP/OTPInput.js +0 -49
  545. package/build/features/business/screens/OTP/index.d.ts +0 -3
  546. package/build/features/business/screens/OTP/index.js +0 -2
  547. package/build/features/business/screens/OTP/validation.js +0 -4
  548. package/build/features/connectExpress/screens/IdentityOTP/OTP.js +0 -87
  549. package/build/features/connectExpress/screens/IdentityOTP/OTPInput.d.ts +0 -5
  550. package/build/features/connectExpress/screens/IdentityOTP/OTPInput.js +0 -54
  551. package/build/features/connectExpress/screens/IdentityOTP/index.d.ts +0 -3
  552. package/build/features/connectExpress/screens/IdentityOTP/index.js +0 -2
  553. package/build/features/connectExpress/screens/IdentityOTP/validation.js +0 -4
  554. package/build/features/shared/Button/AbsherButton.d.ts +0 -8
  555. /package/build/features/{connect/screens/NID → auth/screens/DOB}/DOB.d.ts +0 -0
@@ -1,13 +1,73 @@
1
- import { ENDPOINT_PATHS } from '../constants';
2
- import { httpClient } from './axios';
3
- var getLocale = function (disableLocale) {
4
- if (disableLocale)
5
- return Promise.resolve(null);
6
- return httpClient({
7
- method: 'get',
8
- url: ENDPOINT_PATHS.FIREBASE_URL
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
8
  });
10
9
  };
10
+ var __generator = (this && this.__generator) || function (thisArg, body) {
11
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
12
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
+ function verb(n) { return function (v) { return step([n, v]); }; }
14
+ function step(op) {
15
+ if (f) throw new TypeError("Generator is already executing.");
16
+ while (_) try {
17
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
18
+ if (y = 0, t) op = [op[0] & 2, t.value];
19
+ switch (op[0]) {
20
+ case 0: case 1: t = op; break;
21
+ case 4: _.label++; return { value: op[1], done: false };
22
+ case 5: _.label++; y = op[1]; op = [0]; continue;
23
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
24
+ default:
25
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
26
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
27
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29
+ if (t[2]) _.ops.pop();
30
+ _.trys.pop(); continue;
31
+ }
32
+ op = body.call(thisArg, _);
33
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
34
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
+ }
36
+ };
37
+ import { ENDPOINT_PATHS } from '../constants';
38
+ import instance from './axios';
39
+ import translationEN from '../assets/locales/en.json';
40
+ import translationAR from '../assets/locales/ar.json';
41
+ var getLocale = function (disableLocale) { return __awaiter(void 0, void 0, void 0, function () {
42
+ var data, error_1;
43
+ return __generator(this, function (_a) {
44
+ switch (_a.label) {
45
+ case 0:
46
+ if (disableLocale)
47
+ return [2, Promise.resolve(null)];
48
+ _a.label = 1;
49
+ case 1:
50
+ _a.trys.push([1, 3, , 4]);
51
+ return [4, instance.get("".concat(ENDPOINT_PATHS.FIREBASE_URL))];
52
+ case 2:
53
+ data = (_a.sent()).data;
54
+ return [2, data];
55
+ case 3:
56
+ error_1 = _a.sent();
57
+ return [2, {
58
+ default: {
59
+ en: {
60
+ translation: translationEN
61
+ },
62
+ ar: {
63
+ translation: translationAR
64
+ }
65
+ }
66
+ }];
67
+ case 4: return [2];
68
+ }
69
+ });
70
+ }); };
11
71
  var firebaseService = {
12
72
  getLocale: getLocale
13
73
  };
@@ -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,15 @@ 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
+ checkMigrationStatus: (jobId: string) => Promise<any>;
92
95
  };
93
96
  dataService: {
94
97
  getChannelsOfServices: (data: {
95
98
  page: number;
96
99
  }) => Promise<any>;
97
- getCustomerBases: (data: {
98
- page: number;
99
- }) => Promise<any>;
100
- getExpectedSales: (data: {
101
- page: number;
102
- }) => Promise<any>;
103
- getExpectedCustomerSales: (data: {
100
+ getBrandOperations: (data: {
104
101
  page: number;
102
+ country_code: string[];
105
103
  }) => Promise<any>;
106
104
  getSourceOfIncome: (data: {
107
105
  page: number;
@@ -115,24 +113,13 @@ declare const API: {
115
113
  }) => Promise<any>;
116
114
  getSegments: (data: {
117
115
  page: number;
116
+ limit: number;
118
117
  }) => Promise<any>;
119
118
  getTeamSize: (data: {
120
119
  page: number;
121
120
  }) => Promise<any>;
122
121
  getActivities: (config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
123
122
  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
123
  };
137
124
  individualService: {
138
125
  retrieveIndividualInfo: (id: string) => Promise<any>;
@@ -153,6 +140,7 @@ declare const API: {
153
140
  userService: {
154
141
  retrieveUserInfo: (userId: string) => Promise<any>;
155
142
  getUserList: (data: GetUserListBody) => Promise<any>;
143
+ getUserListUsingSegmentId: (data: GetUserListSegmentBody) => Promise<any>;
156
144
  };
157
145
  brandService: {
158
146
  retrieveBrand: (id: string) => Promise<any>;
@@ -176,6 +164,6 @@ declare const API: {
176
164
  getInitialData: (body: InitBody) => Promise<any>;
177
165
  };
178
166
  };
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 };
167
+ 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
168
  export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance, getAxiosHeaders };
181
169
  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;
@@ -1,12 +1,13 @@
1
1
  import { RootState } from './store';
2
- import { ActionState, LanguageMode, SharedState, ThemeMode, ScreenStepNavigation, DeviceInfo, LibConfig, CountryCode, MerchantInfo, ConfigExpressTokenParams, BusinessCountryInfo, LocalProps } from '../@types';
2
+ import { ActionState, LanguageMode, SharedState, ThemeMode, ScreenStepNavigation, DeviceInfo, LibConfig, CountryCode, MerchantInfo, BusinessCountryInfo, ConfigInfo, LocalProps, SettingAsyncData } from '../@types';
3
3
  interface SettingParams {
4
4
  disableCountries?: boolean;
5
5
  disableLocale?: boolean;
6
6
  mdn: string;
7
7
  maturity?: 'full' | 'express';
8
8
  configToken?: string;
9
- onVerifyConfigTokenSuccess?: (data: ConfigExpressTokenParams) => Promise<void>;
9
+ onVerifyConfigTokenSuccess?: (data: ConfigInfo) => Promise<void>;
10
+ settingData?: SettingAsyncData;
10
11
  }
11
12
  export declare const fetchAppSettingsSync: import("@reduxjs/toolkit").AsyncThunk<any, SettingParams, {}>;
12
13
  export declare const onCloseComplete: import("@reduxjs/toolkit").AsyncThunk<void, {
@@ -45,28 +45,43 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
45
45
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
46
  }
47
47
  };
48
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
49
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
50
+ if (ar || !(i in from)) {
51
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
52
+ ar[i] = from[i];
53
+ }
54
+ }
55
+ return to.concat(ar || Array.prototype.slice.call(from));
56
+ };
48
57
  var _a;
49
58
  import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
50
- import { getStoredData, storeData, isArray, findItem, getBrowserInfo, getFingerPrint, sortCountries, findCountryByIso2, getRequestHeaders, encryptString, dangerousMessage, getParameterByName, setBaseUrl } from '../utils';
51
- import { BUSINESS_COUNTRIES, DefaultDeviceInfo, LOCAL_STORAGE_KEYS } from '../constants';
59
+ import { getStoredData, storeData, isArray, findItem, getBrowserInfo, getFingerPrint, sortCountries, findCountryByIso2, getRequestHeaders, encryptString, dangerousMessage, getParameterByName, setBaseUrl, getUserLanguage } from '../utils';
60
+ import { BUSINESS_COUNTRIES, DEFAULT_COUNTRY_ISO2, DefaultDeviceInfo, LOCAL_STORAGE_KEYS } from '../constants';
52
61
  import i18n from '../i18n';
53
62
  import { updateLocale } from '../utils/locale';
54
63
  import API, { getAxiosHeaders, setAxiosGlobalHeaders } from '../api';
55
64
  export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
56
- var settings, _a, appConfig, language, _b, client, device, os, disableLocale, maturity, disableCountries, configToken, onVerifyConfigTokenSuccess, _c, visitorId, locale, configInfo, matureData, lang, initPayload, _d, country_list, ip_info, merchant, operator, config, list, _e, ip, latitude, longitude, country_code, domain, language_1, country, scope, public_key, mature, board_maturity, post, platform_redirect_url, data, lead_id, platforms, deviceInfo, isValidOperator, countries, countryCode, businessCountry, ipCountry;
57
- return __generator(this, function (_f) {
58
- switch (_f.label) {
65
+ var settings, _a, appConfig, language, _b, client, device, os, disableLocale, maturity, disableCountries, configToken, onVerifyConfigTokenSuccess, _c, visitorId, locale, _d, configInfo, matureData, lang, initPayload, _e, country_list, ip_info, merchant, operator, config, _f, list, _g, ip, latitude, longitude, country_code, countries, _h, operator_1, scope, data, lead, board, interfaceData, redirect, post, platforms, payment_provider, _j, locale_1, edges, deviceInfo, isValidOperator, countryCode, businessCountry, ipCountry;
66
+ return __generator(this, function (_k) {
67
+ switch (_k.label) {
59
68
  case 0:
60
69
  settings = thunkApi.getState().settings;
61
70
  _a = settings.data, appConfig = _a.appConfig, language = _a.language;
62
71
  _b = getBrowserInfo(), client = _b.client, device = _b.device, os = _b.os;
63
72
  disableLocale = params.disableLocale, maturity = params.maturity, disableCountries = params.disableCountries, configToken = params.configToken, onVerifyConfigTokenSuccess = params.onVerifyConfigTokenSuccess;
64
- return [4, Promise.all([getFingerPrint(), API.firebaseService.getLocale(disableLocale)])];
65
- case 1:
66
- _c = _f.sent(), visitorId = _c[0].visitorId, locale = _c[1];
73
+ if (!params.settingData) return [3, 1];
74
+ _d = [params.settingData.fingerPrint, params.settingData.locale];
75
+ return [3, 3];
76
+ case 1: return [4, Promise.all([getFingerPrint(), API.firebaseService.getLocale(disableLocale)])];
77
+ case 2:
78
+ _d = _k.sent();
79
+ _k.label = 3;
80
+ case 3:
81
+ _c = _d, visitorId = _c[0].visitorId, locale = _c[1];
67
82
  configInfo = appConfig;
68
83
  matureData = maturity;
69
- lang = getParameterByName('lang');
84
+ lang = getParameterByName('lang') || language;
70
85
  setAxiosGlobalHeaders({
71
86
  bi: visitorId || '',
72
87
  mdn: encryptString(params.mdn || window.location.origin),
@@ -75,34 +90,39 @@ export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', funct
75
90
  initPayload = __assign(__assign({ type: 'website', app_client_version: 'js-auth-connect', requirer_browser: "".concat(client === null || client === void 0 ? void 0 : client.name, " , ").concat(client === null || client === void 0 ? void 0 : client.version), os: "".concat(os === null || os === void 0 ? void 0 : os.name, " , ").concat(os === null || os === void 0 ? void 0 : os.version), locale: language }, (configToken && { config_token: configToken })), { data_required: {
76
91
  country_list: !disableCountries
77
92
  } });
93
+ _f = params.settingData;
94
+ if (_f) return [3, 5];
78
95
  return [4, API.initService.getInitialData(initPayload)];
79
- case 2:
80
- _d = _f.sent(), country_list = _d.country_list, ip_info = _d.ip_info, merchant = _d.merchant, operator = _d.operator, config = _d.config;
81
- list = (country_list || { list: [] }).list;
82
- _e = ip_info || {}, ip = _e.ip, latitude = _e.latitude, longitude = _e.longitude, country_code = _e.country_code;
96
+ case 4:
97
+ _f = (_k.sent());
98
+ _k.label = 5;
99
+ case 5:
100
+ _e = _f, country_list = _e.country_list, ip_info = _e.ip_info, merchant = _e.merchant, operator = _e.operator, config = _e.config;
101
+ list = __spreadArray([], ((country_list === null || country_list === void 0 ? void 0 : country_list.list) || []), true);
102
+ _g = ip_info || {}, ip = _g.ip, latitude = _g.latitude, longitude = _g.longitude, country_code = _g.country_code;
103
+ countries = sortCountries(list);
83
104
  if (config) {
84
- domain = config.domain, language_1 = config.language, country = config.country, scope = config.scope, public_key = config.public_key, mature = config.maturity, board_maturity = config.board_maturity, post = config.post, platform_redirect_url = config.platform_redirect_url, data = config.data, lead_id = config.lead_id, platforms = config.platforms;
85
- configInfo = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, configInfo), (domain && { merchantDomain: domain })), (language_1 && { language: language_1 })), (country && { businessCountryCode: country })), (scope && { scope: scope })), (public_key && { publicKey: public_key })), ((post === null || post === void 0 ? void 0 : post.url) && { postURL: post === null || post === void 0 ? void 0 : post.url })), (platform_redirect_url && { redirectUrl: platform_redirect_url })), (data && { data: data })), (lead_id && { leadId: lead_id })), (platforms && { platforms: platforms }));
86
- if (typeof mature === 'boolean')
87
- matureData = mature ? 'full' : 'express';
105
+ _h = config, operator_1 = _h.operator, scope = _h.scope, data = _h.data, lead = _h.lead, board = _h.board, interfaceData = _h.interface, redirect = _h.redirect, post = _h.post, platforms = _h.platforms, payment_provider = _h.payment_provider;
106
+ _j = interfaceData || {}, locale_1 = _j.locale, edges = _j.edges;
107
+ if (locale_1)
108
+ lang = locale_1 === 'dynamic' ? getUserLanguage() : locale_1;
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
+ matureData = 'express';
88
111
  thunkApi.dispatch(handleSetAppConfig(configInfo));
89
- thunkApi.dispatch(handleLanguage(language_1 || lang));
90
- if (public_key) {
112
+ thunkApi.dispatch(handleLanguage(lang));
113
+ if (configInfo.publicKey) {
91
114
  if (configToken) {
92
- setBaseUrl(public_key);
115
+ setBaseUrl(configInfo.publicKey);
93
116
  }
94
- thunkApi.dispatch(handlePublicKey(public_key));
117
+ thunkApi.dispatch(handlePublicKey(configInfo.publicKey));
95
118
  }
96
- if (typeof board_maturity === 'boolean')
97
- thunkApi.dispatch(handelBoardMaturity(board_maturity));
119
+ if (typeof (board === null || board === void 0 ? void 0 : board.editable) === 'boolean')
120
+ thunkApi.dispatch(handelBoardMaturity(board.editable));
98
121
  onVerifyConfigTokenSuccess === null || onVerifyConfigTokenSuccess === void 0 ? void 0 : onVerifyConfigTokenSuccess(config);
99
- if (matureData === 'express' && maturity !== matureData && typeof configInfo.onMaturityChanged === 'function') {
100
- configInfo.onMaturityChanged(matureData);
101
- }
102
122
  }
103
123
  deviceInfo = {
104
124
  app: {
105
- language: configInfo.language || 'en',
125
+ language: language !== null && language !== void 0 ? language : (lang || 'en'),
106
126
  name: configInfo.appInfo.name,
107
127
  identifier: configInfo.appInfo.identifier || 'auth-connect',
108
128
  version: configInfo.appInfo.version || '2.0.0'
@@ -133,15 +153,28 @@ export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', funct
133
153
  };
134
154
  setAxiosGlobalHeaders(__assign(__assign(__assign({}, getRequestHeaders(deviceInfo)), { authorization: encryptString(configInfo.publicKey), mdn: encryptString(params.mdn || window.location.origin), cu: window.location.href }), (matureData && { maturity: matureData })));
135
155
  isValidOperator = operator === 'valid';
136
- countries = sortCountries(list);
137
156
  countryCode = configInfo.businessCountryCode;
138
157
  businessCountry = undefined;
139
158
  ipCountry = undefined;
140
159
  if (countryCode)
141
160
  businessCountry = findCountryByIso2(countries, countryCode);
142
- if (country_code)
143
- ipCountry = findCountryByIso2(countries, country_code);
144
- return [2, __assign(__assign({ countries: countries, businessCountry: businessCountry, locale: locale, deviceInfo: deviceInfo, ipCountry: ipCountry, isValidOperator: isValidOperator, isMaturityExpress: matureData === 'express' }, (config && { boardMaturity: config.board_maturity })), (merchant && { merchant: merchant }))];
161
+ ipCountry = findCountryByIso2(countries, country_code !== null && country_code !== void 0 ? country_code : DEFAULT_COUNTRY_ISO2);
162
+ if (appConfig.onSettingFetched)
163
+ appConfig.onSettingFetched({
164
+ config: config,
165
+ country_list: country_list,
166
+ fingerPrint: { visitorId: visitorId },
167
+ ip_info: ip_info,
168
+ merchant: merchant,
169
+ operator: operator,
170
+ locale: locale
171
+ });
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 }))];
145
178
  }
146
179
  });
147
180
  }); });
@@ -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>;