@tap-payments/auth-jsconnect 2.0.54-test → 2.0.55-test

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 (361) hide show
  1. package/build/@types/app.d.ts +39 -14
  2. package/build/@types/app.js +9 -0
  3. package/build/@types/form.d.ts +11 -0
  4. package/build/api/account.js +1 -1
  5. package/build/api/auth.d.ts +15 -2
  6. package/build/api/auth.js +25 -2
  7. package/build/api/availabilityServices.js +1 -1
  8. package/build/api/axios.js +4 -4
  9. package/build/api/board.js +1 -1
  10. package/build/api/brand.d.ts +1 -1
  11. package/build/api/brand.js +1 -1
  12. package/build/api/country.js +1 -1
  13. package/build/api/data.d.ts +33 -7
  14. package/build/api/data.js +42 -17
  15. package/build/api/entity.d.ts +2 -0
  16. package/build/api/entity.js +1 -1
  17. package/build/api/firebase.js +1 -1
  18. package/build/api/individual.d.ts +1 -1
  19. package/build/api/individual.js +1 -1
  20. package/build/api/ip.js +1 -1
  21. package/build/api/lead.d.ts +1 -1
  22. package/build/api/lead.js +1 -1
  23. package/build/api/operator.js +1 -1
  24. package/build/api/user.js +1 -1
  25. package/build/app/rootReducer.d.ts +10 -7
  26. package/build/app/rootReducer.js +14 -8
  27. package/build/app/settings.d.ts +2 -2
  28. package/build/app/settings.js +11 -5
  29. package/build/app/store.d.ts +6 -0
  30. package/build/assets/locales/ar.json +14 -4
  31. package/build/assets/locales/en.json +14 -4
  32. package/build/components/AnimationFlow/AnimationFlow.d.ts +4 -1
  33. package/build/components/AnimationFlow/AnimationFlow.js +5 -7
  34. package/build/components/AnimationFlow/BottomSheet.js +2 -1
  35. package/build/components/AnimationFlow/Dialog.d.ts +4 -1
  36. package/build/components/AnimationFlow/Dialog.js +10 -5
  37. package/build/components/DatePicker/DatePicker.js +3 -3
  38. package/build/components/FileInput/DragAndDrop.d.ts +9 -1
  39. package/build/components/FileInput/DragAndDrop.js +115 -10
  40. package/build/components/FileInput/UploadInput.js +2 -2
  41. package/build/components/Footer/Footer.js +3 -3
  42. package/build/components/Input/Input.js +2 -2
  43. package/build/components/Lottie/Lottie.d.ts +878 -0
  44. package/build/components/Lottie/Lottie.js +58 -0
  45. package/build/components/Lottie/files/pulsating_circle_waves.json +236 -0
  46. package/build/components/Lottie/files/success.json +425 -0
  47. package/build/components/Lottie/index.d.ts +3 -0
  48. package/build/components/Lottie/index.js +3 -0
  49. package/build/components/OTPTimer/OTPTimer.js +1 -1
  50. package/build/components/ProgressBar/CircularProgressBar.d.ts +14 -0
  51. package/build/components/ProgressBar/CircularProgressBar.js +48 -0
  52. package/build/components/ProgressBar/index.d.ts +2 -0
  53. package/build/components/ProgressBar/index.js +2 -0
  54. package/build/components/Providers/ThemeProvider.d.ts +1 -1
  55. package/build/components/SimpleList/SimpleList.js +1 -1
  56. package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +3 -2
  57. package/build/components/SocialMediaGroup/SocialMediaGroup.js +29 -36
  58. package/build/constants/api.d.ts +1 -0
  59. package/build/constants/api.js +10 -7
  60. package/build/constants/app.d.ts +16 -1
  61. package/build/constants/app.js +76 -4
  62. package/build/constants/assets.d.ts +17 -1
  63. package/build/constants/assets.js +22 -6
  64. package/build/constants/validation.d.ts +1 -0
  65. package/build/constants/validation.js +1 -0
  66. package/build/features/app/auth/authStore.d.ts +35 -0
  67. package/build/features/app/auth/authStore.js +148 -0
  68. package/build/features/app/bank/bankStore.d.ts +6 -2
  69. package/build/features/app/bank/bankStore.js +46 -26
  70. package/build/features/app/business/businessStore.d.ts +2 -2
  71. package/build/features/app/business/businessStore.js +58 -48
  72. package/build/features/app/connect/connectStore.d.ts +14 -2
  73. package/build/features/app/connect/connectStore.js +170 -10
  74. package/build/features/app/entity/entityStore.d.ts +53 -0
  75. package/build/features/app/entity/entityStore.js +461 -0
  76. package/build/features/app/individual/individualStore.d.ts +2 -2
  77. package/build/features/app/individual/individualStore.js +23 -15
  78. package/build/features/app/otp/otpStore.d.ts +28 -0
  79. package/build/features/app/otp/otpStore.js +153 -0
  80. package/build/features/app/password/passwordStore.d.ts +2 -2
  81. package/build/features/app/password/passwordStore.js +4 -4
  82. package/build/features/app/signIn/signInStore.d.ts +2 -2
  83. package/build/features/app/signIn/signInStore.js +6 -6
  84. package/build/features/app/tax/taxStore.d.ts +2 -2
  85. package/build/features/app/tax/taxStore.js +5 -5
  86. package/build/features/auth/Auth.d.ts +10 -0
  87. package/build/features/auth/Auth.js +87 -0
  88. package/build/features/auth/index.d.ts +1 -0
  89. package/build/features/auth/index.js +1 -0
  90. package/build/features/auth/screens/OTP/OTP.d.ts +5 -0
  91. package/build/features/auth/screens/OTP/OTP.js +72 -0
  92. package/build/features/auth/screens/OTP/OTPInput.d.ts +5 -0
  93. package/build/features/auth/screens/OTP/OTPInput.js +44 -0
  94. package/build/features/auth/screens/OTP/index.d.ts +3 -0
  95. package/build/features/auth/screens/OTP/index.js +2 -0
  96. package/build/features/auth/screens/OTP/validation.d.ts +8 -0
  97. package/build/features/auth/screens/OTP/validation.js +4 -0
  98. package/build/features/bank/Bank.d.ts +1 -1
  99. package/build/features/bank/Bank.js +18 -12
  100. package/build/features/bank/screens/BankDetails/BankDetails.js +9 -9
  101. package/build/features/bank/screens/BankDetails/BankName.js +8 -8
  102. package/build/features/bank/screens/BankDetails/BankStatement.js +35 -10
  103. package/build/features/bank/screens/BankDetails/Beneficiary.js +7 -7
  104. package/build/features/bank/screens/BankDetails/ConfirmPolicy.js +5 -5
  105. package/build/features/bank/screens/BankDetails/IBAN.js +8 -8
  106. package/build/features/bank/screens/BankDetails/validation.js +1 -1
  107. package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
  108. package/build/features/bank/screens/Success/Success.js +3 -3
  109. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
  110. package/build/features/bank/screens/Verify/OTPInput.js +4 -4
  111. package/build/features/bank/screens/Verify/Verify.js +9 -9
  112. package/build/features/business/Business.d.ts +2 -2
  113. package/build/features/business/Business.js +20 -13
  114. package/build/features/business/screens/Activities/Activities.js +7 -7
  115. package/build/features/business/screens/Activities/ActivitiesList.d.ts +2 -2
  116. package/build/features/business/screens/Activities/ActivitiesList.js +9 -9
  117. package/build/features/business/screens/Activities/LicenseName.js +6 -6
  118. package/build/features/business/screens/Activities/OperationStartDate.js +4 -4
  119. package/build/features/business/screens/Activities/SalesChannels.d.ts +1 -1
  120. package/build/features/business/screens/Activities/SalesChannels.js +8 -8
  121. package/build/features/business/screens/BusinessType/BusinessType.js +8 -8
  122. package/build/features/business/screens/BusinessType/LicenseList.js +10 -10
  123. package/build/features/business/screens/BusinessType/LicenseNumber.js +8 -8
  124. package/build/features/business/screens/BusinessType/SelectType.js +6 -6
  125. package/build/features/business/screens/BusinessType/validation.js +2 -2
  126. package/build/features/business/screens/Customers/CustomerLocations.d.ts +3 -3
  127. package/build/features/business/screens/Customers/CustomerLocations.js +33 -15
  128. package/build/features/business/screens/Customers/Customers.js +8 -8
  129. package/build/features/business/screens/Customers/ExpectedCustomers.js +22 -10
  130. package/build/features/business/screens/Customers/ExpectedSalesRange.js +39 -21
  131. package/build/features/business/screens/Customers/RefundPolicy.d.ts +1 -1
  132. package/build/features/business/screens/Customers/RefundPolicy.js +7 -7
  133. package/build/features/business/screens/Customers/TransactionPolicy.js +5 -5
  134. package/build/features/business/screens/IDBOD/DOB.js +5 -5
  135. package/build/features/business/screens/IDBOD/ID.js +6 -6
  136. package/build/features/business/screens/IDBOD/IDBOD.js +6 -6
  137. package/build/features/business/screens/OTP/OTP.js +9 -9
  138. package/build/features/business/screens/OTP/OTPInput.js +4 -4
  139. package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
  140. package/build/features/business/screens/Success/Success.js +3 -3
  141. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
  142. package/build/features/business/screens/Verify/OTPInput.js +4 -4
  143. package/build/features/business/screens/Verify/Verify.js +9 -9
  144. package/build/features/connect/Connect.d.ts +3 -2
  145. package/build/features/connect/Connect.js +46 -16
  146. package/build/features/connect/screens/CivilID/CivilID.d.ts +5 -0
  147. package/build/features/connect/screens/CivilID/CivilID.js +85 -0
  148. package/build/features/connect/screens/CivilID/IDNumber.d.ts +7 -0
  149. package/build/features/connect/screens/CivilID/IDNumber.js +59 -0
  150. package/build/features/connect/screens/CivilID/index.d.ts +3 -0
  151. package/build/features/connect/screens/CivilID/index.js +2 -0
  152. package/build/features/connect/screens/CivilID/validation.d.ts +8 -0
  153. package/build/features/connect/screens/CivilID/validation.js +4 -0
  154. package/build/features/connect/screens/Individual/Email.js +7 -7
  155. package/build/features/connect/screens/Individual/Individual.js +14 -10
  156. package/build/features/connect/screens/Individual/MobileNumber.d.ts +1 -1
  157. package/build/features/connect/screens/Individual/MobileNumber.js +11 -11
  158. package/build/features/connect/screens/Individual/Name.js +6 -6
  159. package/build/features/connect/screens/Individual/validation.js +1 -1
  160. package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
  161. package/build/features/connect/screens/Merchant/BrandList.js +8 -8
  162. package/build/features/connect/screens/Merchant/BrandName.js +10 -10
  163. package/build/features/connect/screens/Merchant/Merchant.js +42 -18
  164. package/build/features/connect/screens/Merchant/SalesChannels.d.ts +5 -0
  165. package/build/features/connect/screens/Merchant/SalesChannels.js +114 -0
  166. package/build/features/connect/screens/Merchant/SocialMedia.js +65 -20
  167. package/build/features/connect/screens/Merchant/TAC.js +7 -7
  168. package/build/features/connect/screens/Merchant/validation.d.ts +87 -0
  169. package/build/features/connect/screens/Merchant/validation.js +69 -3
  170. package/build/features/connect/screens/Mobile/Mobile.js +16 -13
  171. package/build/features/connect/screens/Mobile/MobileNumber.d.ts +1 -1
  172. package/build/features/connect/screens/Mobile/MobileNumber.js +12 -12
  173. package/build/features/connect/screens/Mobile/Title.js +2 -2
  174. package/build/features/connect/screens/NID/DOB.js +5 -5
  175. package/build/features/connect/screens/NID/IDNumber.js +8 -8
  176. package/build/features/connect/screens/NID/NID.js +8 -8
  177. package/build/features/connect/screens/OTP/OTP.js +9 -9
  178. package/build/features/connect/screens/OTP/OTPInput.js +4 -4
  179. package/build/features/connect/screens/ThankYou/ThankYou.js +1 -1
  180. package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
  181. package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +169 -0
  182. package/build/features/connect/screens/VerifyPACI/VerifyPACILoading.d.ts +5 -0
  183. package/build/features/connect/screens/VerifyPACI/VerifyPACILoading.js +22 -0
  184. package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.d.ts +5 -0
  185. package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.js +8 -0
  186. package/build/features/connect/screens/VerifyPACI/index.d.ts +3 -0
  187. package/build/features/connect/screens/VerifyPACI/index.js +2 -0
  188. package/build/features/entity/Entity.d.ts +7 -0
  189. package/build/features/entity/Entity.js +70 -0
  190. package/build/features/entity/index.d.ts +1 -0
  191. package/build/features/entity/index.js +1 -0
  192. package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.d.ts +54 -0
  193. package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.js +139 -0
  194. package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.d.ts +5 -0
  195. package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.js +56 -0
  196. package/build/features/entity/screens/EntityInfoConfirm/LicenseName.d.ts +5 -0
  197. package/build/features/entity/screens/EntityInfoConfirm/LicenseName.js +17 -0
  198. package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.d.ts +5 -0
  199. package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.js +28 -0
  200. package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.d.ts +6 -0
  201. package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.js +38 -0
  202. package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.d.ts +5 -0
  203. package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.js +112 -0
  204. package/build/features/entity/screens/EntityInfoConfirm/index.d.ts +2 -0
  205. package/build/features/entity/screens/EntityInfoConfirm/index.js +2 -0
  206. package/build/features/entity/screens/EntityInfoConfirm/validation.d.ts +107 -0
  207. package/build/features/entity/screens/EntityInfoConfirm/validation.js +17 -0
  208. package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
  209. package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -0
  210. package/build/features/entity/screens/ResetPasswordSuccess/index.d.ts +3 -0
  211. package/build/features/entity/screens/ResetPasswordSuccess/index.js +2 -0
  212. package/build/features/entity/screens/Success/Success.d.ts +5 -0
  213. package/build/features/entity/screens/Success/Success.js +16 -0
  214. package/build/features/entity/screens/Success/index.d.ts +3 -0
  215. package/build/features/entity/screens/Success/index.js +2 -0
  216. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
  217. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +109 -0
  218. package/build/features/entity/screens/SuccessWithFlowButtons/index.d.ts +2 -0
  219. package/build/features/entity/screens/SuccessWithFlowButtons/index.js +2 -0
  220. package/build/features/entity/screens/Verify/OTPInput.d.ts +7 -0
  221. package/build/features/entity/screens/Verify/OTPInput.js +47 -0
  222. package/build/features/entity/screens/Verify/Verify.d.ts +5 -0
  223. package/build/features/entity/screens/Verify/Verify.js +78 -0
  224. package/build/features/entity/screens/Verify/index.d.ts +2 -0
  225. package/build/features/entity/screens/Verify/index.js +2 -0
  226. package/build/features/entity/screens/Verify/validation.d.ts +8 -0
  227. package/build/features/entity/screens/Verify/validation.js +4 -0
  228. package/build/features/featuresScreens.d.ts +4 -1
  229. package/build/features/featuresScreens.js +88 -40
  230. package/build/features/individual/Individual.d.ts +2 -2
  231. package/build/features/individual/Individual.js +20 -13
  232. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +9 -9
  233. package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.d.ts +1 -1
  234. package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.js +8 -8
  235. package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.js +6 -6
  236. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +6 -6
  237. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
  238. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +23 -12
  239. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -1
  240. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +19 -11
  241. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +6 -6
  242. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
  243. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +10 -10
  244. package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +1 -1
  245. package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
  246. package/build/features/individual/screens/ShowIndividualInfo/ShowOwnerInfo.js +6 -6
  247. package/build/features/individual/screens/ShowIndividualInfo/info.js +1 -1
  248. package/build/features/individual/screens/Success/Success.js +3 -3
  249. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
  250. package/build/features/individual/screens/Verify/OTPInput.js +4 -4
  251. package/build/features/individual/screens/Verify/Verify.js +9 -9
  252. package/build/features/otp/OTP.d.ts +7 -0
  253. package/build/features/otp/OTP.js +58 -0
  254. package/build/features/otp/index.d.ts +0 -0
  255. package/build/features/otp/index.js +1 -0
  256. package/build/features/otp/screens/OTPVerify/OTPInput.d.ts +6 -0
  257. package/build/features/otp/screens/OTPVerify/OTPInput.js +47 -0
  258. package/build/features/otp/screens/OTPVerify/Verify.d.ts +5 -0
  259. package/build/features/otp/screens/OTPVerify/Verify.js +49 -0
  260. package/build/features/otp/screens/OTPVerify/index.d.ts +2 -0
  261. package/build/features/otp/screens/OTPVerify/index.js +2 -0
  262. package/build/features/otp/screens/OTPVerify/validation.d.ts +8 -0
  263. package/build/features/otp/screens/OTPVerify/validation.js +4 -0
  264. package/build/features/password/Password.d.ts +2 -2
  265. package/build/features/password/Password.js +20 -13
  266. package/build/features/password/screens/CreatePassword/ConditionText.js +1 -1
  267. package/build/features/password/screens/CreatePassword/ConfirmPassword.js +3 -3
  268. package/build/features/password/screens/CreatePassword/CreatePassword.js +8 -8
  269. package/build/features/password/screens/CreatePassword/Password.js +6 -6
  270. package/build/features/password/screens/OTP/OTP.js +9 -9
  271. package/build/features/password/screens/OTP/OTPInput.js +4 -4
  272. package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
  273. package/build/features/password/screens/Success/Success.js +4 -4
  274. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
  275. package/build/features/password/screens/Verify/OTPInput.js +4 -4
  276. package/build/features/password/screens/Verify/Verify.js +9 -9
  277. package/build/features/shared/AcceptancePayouts/AcceptancePayouts.js +4 -4
  278. package/build/features/shared/Background/Background.d.ts +7 -5
  279. package/build/features/shared/Background/Background.js +16 -5
  280. package/build/features/shared/Background/LogoBackground.js +3 -3
  281. package/build/features/shared/Button/AbsherButton.d.ts +1 -1
  282. package/build/features/shared/Button/AbsherButton.js +3 -3
  283. package/build/features/shared/Button/Button.d.ts +1 -1
  284. package/build/features/shared/Button/Button.js +7 -7
  285. package/build/features/shared/Button/EmailProvidersButtons.d.ts +1 -1
  286. package/build/features/shared/Button/EmailProvidersButtons.js +2 -2
  287. package/build/features/shared/Button/FlowsButtons.d.ts +2 -2
  288. package/build/features/shared/Button/FlowsButtons.js +6 -6
  289. package/build/features/shared/Button/MobileButton.d.ts +1 -1
  290. package/build/features/shared/Button/MobileButton.js +3 -3
  291. package/build/features/shared/Dialog/CloseDialog.d.ts +11 -0
  292. package/build/features/shared/Dialog/CloseDialog.js +62 -0
  293. package/build/features/shared/Dialog/DialogContainer.d.ts +8 -0
  294. package/build/features/shared/Dialog/DialogContainer.js +56 -0
  295. package/build/features/shared/Dialog/index.d.ts +4 -0
  296. package/build/features/shared/Dialog/index.js +4 -0
  297. package/build/features/shared/Footer/Footer.js +4 -4
  298. package/build/features/shared/Input/Input.d.ts +2 -2
  299. package/build/features/shared/Input/Input.js +4 -4
  300. package/build/features/shared/OTP/OTP.d.ts +1 -1
  301. package/build/features/shared/OTP/OTP.js +3 -3
  302. package/build/features/shared/Search/Search.js +1 -1
  303. package/build/features/shared/SearchIcon/SearchIcon.js +2 -2
  304. package/build/features/shared/SuccessScreen/SuccessScreen.js +5 -5
  305. package/build/features/shared/UploadFile/UploadFile.d.ts +8 -3
  306. package/build/features/shared/UploadFile/UploadFile.js +27 -12
  307. package/build/features/signIn/SignIn.d.ts +2 -2
  308. package/build/features/signIn/SignIn.js +21 -13
  309. package/build/features/signIn/screens/Email/Email.js +8 -8
  310. package/build/features/signIn/screens/Email/EmailField.js +5 -5
  311. package/build/features/signIn/screens/Email/validation.js +1 -1
  312. package/build/features/signIn/screens/Mobile/Mobile.js +9 -9
  313. package/build/features/signIn/screens/Mobile/MobileNumber.d.ts +1 -1
  314. package/build/features/signIn/screens/Mobile/MobileNumber.js +12 -12
  315. package/build/features/signIn/screens/OTP/OTP.js +9 -9
  316. package/build/features/signIn/screens/OTP/OTPInput.js +4 -4
  317. package/build/features/signIn/screens/Password/Password.js +7 -7
  318. package/build/features/signIn/screens/Password/PasswordInput.js +3 -3
  319. package/build/features/tax/Tax.d.ts +2 -2
  320. package/build/features/tax/Tax.js +21 -13
  321. package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
  322. package/build/features/tax/screens/Success/Success.js +3 -3
  323. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
  324. package/build/features/tax/screens/TaxDetails/ConfirmPolicy.js +5 -5
  325. package/build/features/tax/screens/TaxDetails/TaxDetails.js +6 -6
  326. package/build/features/tax/screens/TaxDetails/VATId.js +5 -5
  327. package/build/features/tax/screens/Verify/OTPInput.js +4 -4
  328. package/build/features/tax/screens/Verify/Verify.js +9 -9
  329. package/build/hooks/index.d.ts +1 -0
  330. package/build/hooks/index.js +1 -0
  331. package/build/hooks/useAppConfig.d.ts +1 -1
  332. package/build/hooks/useAppConfig.js +6 -4
  333. package/build/hooks/useAppDispatch.d.ts +3 -0
  334. package/build/hooks/useAppSelector.d.ts +1 -1
  335. package/build/hooks/useAppTheme.d.ts +1 -1
  336. package/build/hooks/useAppTheme.js +3 -3
  337. package/build/hooks/useErrorListener.js +4 -3
  338. package/build/hooks/useLanguage.js +1 -1
  339. package/build/hooks/useRedirectionListener.js +1 -1
  340. package/build/hooks/useScreen.d.ts +3 -0
  341. package/build/hooks/useScreen.js +14 -0
  342. package/build/hooks/useStepStartedListener.js +1 -1
  343. package/build/i18n.js +1 -1
  344. package/build/index.d.ts +12 -9
  345. package/build/index.js +18 -9
  346. package/build/theme/theme.d.ts +1 -1
  347. package/build/utils/array.d.ts +1 -1
  348. package/build/utils/device.d.ts +1 -0
  349. package/build/utils/device.js +13 -0
  350. package/build/utils/html.d.ts +1 -0
  351. package/build/utils/html.js +6 -0
  352. package/build/utils/locale.d.ts +1 -1
  353. package/build/utils/locale.js +2 -2
  354. package/build/utils/rsa.d.ts +2 -2
  355. package/build/utils/rsa.js +2 -2
  356. package/build/utils/string.d.ts +23 -21
  357. package/build/utils/string.js +13 -4
  358. package/package.json +1 -1
  359. package/build/api/index.d.ts +0 -83
  360. package/build/components/DatePicker/customStyle.css +0 -86
  361. package/build/index.css +0 -140
@@ -44,23 +44,35 @@ export interface FeatureScreenStep {
44
44
  export declare enum SocialMediaTypes {
45
45
  WEB = "website",
46
46
  INSTAGRAM = "instagram",
47
- TWITTER = "twitter"
47
+ TWITTER = "twitter",
48
+ SOCIAL = "social media",
49
+ PHYSICAL_STORE = "physical store",
50
+ CALL_CENTER = "call center",
51
+ APP = "mobile app",
52
+ APPLE_STORE = "apple store",
53
+ PLAY_STORE = "play store"
48
54
  }
49
55
  export interface CustomerLocation {
50
56
  id: string;
51
- name_ar: string;
52
- name_en: string;
57
+ name: {
58
+ ar: string;
59
+ en: string;
60
+ };
53
61
  }
54
62
  export interface ExpectedCustomer extends CustomerLocation {
55
63
  }
56
64
  export interface ExpectedSaleRange {
57
65
  id: string;
58
- name_ar: string;
59
- name_en: string;
66
+ name: {
67
+ ar: string;
68
+ en: string;
69
+ };
60
70
  sub?: Array<{
61
71
  id: string;
62
- name_ar: string;
63
- name_en: string;
72
+ name: {
73
+ ar: string;
74
+ en: string;
75
+ };
64
76
  }>;
65
77
  }
66
78
  export declare enum BusinessType {
@@ -83,20 +95,30 @@ export interface Activity {
83
95
  }
84
96
  export interface SalesChannel {
85
97
  id: string;
86
- name_ar: string;
87
- name_en: string;
98
+ name: {
99
+ ar: string;
100
+ en: string;
101
+ };
88
102
  }
89
103
  export interface SourceOfIncome {
90
104
  id: string;
91
- name_ar: string;
92
- name_en: string;
105
+ name: {
106
+ ar: string;
107
+ en: string;
108
+ };
93
109
  }
94
110
  export interface Occupation {
95
111
  id: string;
96
- name_ar: string;
97
- name_en: string;
112
+ name: {
113
+ ar: string;
114
+ en: string;
115
+ };
98
116
  }
99
117
  export interface MonthlyIncome extends SourceOfIncome {
118
+ range: {
119
+ ar: string;
120
+ en: string;
121
+ };
100
122
  }
101
123
  export interface AppInfo {
102
124
  name: string;
@@ -187,7 +209,10 @@ export declare enum FlowsTypes {
187
209
  BUSINESS = "business",
188
210
  INDIVIDUAL = "individual",
189
211
  PASSWORD = "password",
190
- TAX = "tax"
212
+ TAX = "tax",
213
+ ENTITY = "entity",
214
+ OTP = "otp",
215
+ AUTH = "auth"
191
216
  }
192
217
  export declare type FlowInfo = {
193
218
  name: string;
@@ -3,6 +3,12 @@ export var SocialMediaTypes;
3
3
  SocialMediaTypes["WEB"] = "website";
4
4
  SocialMediaTypes["INSTAGRAM"] = "instagram";
5
5
  SocialMediaTypes["TWITTER"] = "twitter";
6
+ SocialMediaTypes["SOCIAL"] = "social media";
7
+ SocialMediaTypes["PHYSICAL_STORE"] = "physical store";
8
+ SocialMediaTypes["CALL_CENTER"] = "call center";
9
+ SocialMediaTypes["APP"] = "mobile app";
10
+ SocialMediaTypes["APPLE_STORE"] = "apple store";
11
+ SocialMediaTypes["PLAY_STORE"] = "play store";
6
12
  })(SocialMediaTypes || (SocialMediaTypes = {}));
7
13
  export var BusinessType;
8
14
  (function (BusinessType) {
@@ -17,4 +23,7 @@ export var FlowsTypes;
17
23
  FlowsTypes["INDIVIDUAL"] = "individual";
18
24
  FlowsTypes["PASSWORD"] = "password";
19
25
  FlowsTypes["TAX"] = "tax";
26
+ FlowsTypes["ENTITY"] = "entity";
27
+ FlowsTypes["OTP"] = "otp";
28
+ FlowsTypes["AUTH"] = "auth";
20
29
  })(FlowsTypes || (FlowsTypes = {}));
@@ -16,6 +16,9 @@ export declare type NIDFormValues = {
16
16
  nid: string;
17
17
  dob: string;
18
18
  };
19
+ export declare type CivilFormValues = {
20
+ civilId: string;
21
+ };
19
22
  export declare type IndividualFormValues = {
20
23
  name: string;
21
24
  email: string;
@@ -24,6 +27,7 @@ export declare type IndividualFormValues = {
24
27
  };
25
28
  export declare type BrandFormValues = {
26
29
  brandName: string;
30
+ salesChannels: Array<SalesChannel>;
27
31
  links: {
28
32
  website: string;
29
33
  twitter: string;
@@ -74,3 +78,10 @@ export declare type PasswordCreateFormValues = {
74
78
  password: string;
75
79
  confirmPassword: string;
76
80
  };
81
+ export declare type EntityFormValues = {
82
+ licenseNumber?: string;
83
+ licenseName?: string;
84
+ activities?: Array<Activity>;
85
+ salesChannels?: Array<SalesChannel>;
86
+ operationStartDate: string;
87
+ };
@@ -1,5 +1,5 @@
1
1
  import { httpClient } from './axios';
2
- import { ENDPOINT_PATHS } from '../constants';
2
+ import { ENDPOINT_PATHS } from '@constants';
3
3
  var createAccount = function (data) {
4
4
  return httpClient({
5
5
  method: 'post',
@@ -1,5 +1,5 @@
1
1
  import { AxiosRequestConfig } from 'axios';
2
- import { LanguageMode } from '../@types';
2
+ import { LanguageMode } from '@types';
3
3
  export declare type MobileCredential = {
4
4
  code: string;
5
5
  phone: string;
@@ -13,8 +13,12 @@ export declare type IDCredential = {
13
13
  identification_id_type: string;
14
14
  date_of_birth: string;
15
15
  };
16
+ export declare type CivilID = {
17
+ identification_id: string;
18
+ country_code: string;
19
+ };
16
20
  export declare type CreateAuthBody = {
17
- user_credentail: MobileCredential | EmailCredential | IDCredential;
21
+ user_credentail: MobileCredential | EmailCredential | IDCredential | CivilID;
18
22
  auth_type?: number;
19
23
  email_url?: string;
20
24
  sign_in?: boolean;
@@ -56,9 +60,18 @@ export declare type CreatePasswordBody = {
56
60
  step_name: string;
57
61
  encryption_contract: Array<string>;
58
62
  };
63
+ export declare type VerifyAuthKitOTPBody = {
64
+ lead_id: string;
65
+ data: string;
66
+ post_url: string;
67
+ scopes: Array<string>;
68
+ encryption_contract: Array<string>;
69
+ };
59
70
  declare const authService: {
60
71
  createAuth: (data: CreateAuthBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
61
72
  verifyAuth: (data: VerifyAuthBody | VerifyOperationAuthBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
62
73
  createPassword: (data: CreatePasswordBody) => Promise<any>;
74
+ verifyAuthKitOTP: (data: VerifyAuthKitOTPBody) => Promise<any>;
75
+ getVerifyAuth: (token: string, config?: AxiosRequestConfig) => Promise<any>;
63
76
  };
64
77
  export { authService };
package/build/api/auth.js CHANGED
@@ -1,5 +1,16 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
1
12
  import instance, { httpClient } from './axios';
2
- import { ENDPOINT_PATHS } from '../constants';
13
+ import { ENDPOINT_PATHS } from '@constants';
3
14
  var createAuth = function (data, config) {
4
15
  return instance.post("".concat(ENDPOINT_PATHS.AUTH), data, config);
5
16
  };
@@ -13,9 +24,21 @@ var createPassword = function (data) {
13
24
  data: data
14
25
  });
15
26
  };
27
+ var getVerifyAuth = function (token, config) {
28
+ return httpClient(__assign({ method: 'get', url: "".concat(ENDPOINT_PATHS.AUTH, "/").concat(token) }, config));
29
+ };
30
+ var verifyAuthKitOTP = function (data) {
31
+ return httpClient({
32
+ method: 'post',
33
+ url: "".concat(ENDPOINT_PATHS.VERIFY_AUTH_OTP),
34
+ data: data
35
+ });
36
+ };
16
37
  var authService = {
17
38
  createAuth: createAuth,
18
39
  verifyAuth: verifyAuth,
19
- createPassword: createPassword
40
+ createPassword: createPassword,
41
+ verifyAuthKitOTP: verifyAuthKitOTP,
42
+ getVerifyAuth: getVerifyAuth
20
43
  };
21
44
  export { authService };
@@ -1,5 +1,5 @@
1
1
  import instance from './axios';
2
- import { ENDPOINT_PATHS } from '../constants';
2
+ import { ENDPOINT_PATHS } from '@constants';
3
3
  var checkEmail = function (data, config) {
4
4
  return instance.post("".concat(ENDPOINT_PATHS.CHECK_EMAIL), data, config);
5
5
  };
@@ -36,8 +36,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
36
36
  };
37
37
  import axios from 'axios';
38
38
  import { get, set } from 'lodash-es';
39
- import { ENCRYPTION_FLAG } from '../constants';
40
- import { encryptString } from '../utils';
39
+ import { ENCRYPTION_FLAG } from '@constants';
40
+ import { encryptString } from '@utils';
41
41
  var instance = axios.create({
42
42
  headers: {
43
43
  'Content-Type': 'application/json',
@@ -91,8 +91,8 @@ export var httpClient = function (config) { return __awaiter(void 0, void 0, voi
91
91
  case 1:
92
92
  data = (_c.sent()).data;
93
93
  _a = (data.errors || [{}])[0], description = _a.description, error = _a.error;
94
- if (description || error) {
95
- throw new Error(description, error);
94
+ if (description || error || (data === null || data === void 0 ? void 0 : data.status) === 'fail') {
95
+ throw new Error(description || error || (data === null || data === void 0 ? void 0 : data.message));
96
96
  }
97
97
  return [2, data];
98
98
  case 2:
@@ -9,7 +9,7 @@ var __rest = (this && this.__rest) || function (s, e) {
9
9
  }
10
10
  return t;
11
11
  };
12
- import { ENDPOINT_PATHS } from '../constants';
12
+ import { ENDPOINT_PATHS } from '@constants';
13
13
  import { httpClient } from './axios';
14
14
  var retrieveBoardInfo = function (_a) {
15
15
  var id = _a.id, infoId = _a.infoId;
@@ -1,4 +1,4 @@
1
- import { BrandListBody, UpdateBrandBody } from '../api/individual';
1
+ import { BrandListBody, UpdateBrandBody } from '@src/api/individual';
2
2
  declare const brandService: {
3
3
  retrieveBrand: (id: string) => Promise<any>;
4
4
  getBrandList: (data: BrandListBody) => Promise<any>;
@@ -10,7 +10,7 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import { httpClient } from './axios';
13
- import { ENDPOINT_PATHS } from '../constants';
13
+ import { ENDPOINT_PATHS } from '@constants';
14
14
  var retrieveBrand = function (id) {
15
15
  return httpClient({
16
16
  method: 'get',
@@ -1,5 +1,5 @@
1
1
  import { httpClient } from './axios';
2
- import { ENDPOINT_PATHS } from '../constants';
2
+ import { ENDPOINT_PATHS } from '@constants';
3
3
  var getCountries = function () {
4
4
  return httpClient({
5
5
  method: 'post',
@@ -1,10 +1,36 @@
1
+ interface GetOccupationBody {
2
+ page: number;
3
+ }
4
+ interface GetMonthlyIncomeBody {
5
+ page: number;
6
+ country_code: Array<string>;
7
+ }
8
+ export interface DataElementBody {
9
+ en: string;
10
+ ar: string;
11
+ }
12
+ interface GetCustomerBasesBody {
13
+ page: number;
14
+ }
15
+ interface GetExpectedSalesBody {
16
+ page: number;
17
+ }
18
+ interface GetExpectedCustomerSalesBody {
19
+ page: number;
20
+ }
21
+ interface GetSourceOfIncomeBody {
22
+ page: number;
23
+ }
24
+ interface GetChannelsOfServicesBody {
25
+ page: number;
26
+ }
1
27
  declare const dataService: {
2
- getChannelsOfServices: () => Promise<import("axios").AxiosResponse<any, any>>;
3
- getCustomerBases: () => Promise<import("axios").AxiosResponse<any, any>>;
4
- getExpectedSales: () => Promise<import("axios").AxiosResponse<any, any>>;
5
- getExpectedCustomerSales: () => Promise<import("axios").AxiosResponse<any, any>>;
6
- getSourceOfIncome: () => Promise<import("axios").AxiosResponse<any, any>>;
7
- getMonthlyIncome: (countryCode: string) => Promise<import("axios").AxiosResponse<any, any>>;
8
- getOccupation: () => Promise<any>;
28
+ getChannelsOfServices: (data: GetChannelsOfServicesBody) => Promise<any>;
29
+ getCustomerBases: (data: GetCustomerBasesBody) => Promise<any>;
30
+ getExpectedSales: (data: GetExpectedSalesBody) => Promise<any>;
31
+ getExpectedCustomerSales: (data: GetExpectedCustomerSalesBody) => Promise<any>;
32
+ getSourceOfIncome: (data: GetSourceOfIncomeBody) => Promise<any>;
33
+ getMonthlyIncome: (data: GetMonthlyIncomeBody) => Promise<any>;
34
+ getOccupation: (data: GetOccupationBody) => Promise<any>;
9
35
  };
10
36
  export { dataService };
package/build/api/data.js CHANGED
@@ -1,27 +1,52 @@
1
- import instance, { httpClient } from './axios';
2
- import { ENDPOINT_PATHS } from '../constants';
3
- var getChannelsOfServices = function () {
4
- return instance.get("".concat(ENDPOINT_PATHS.CHANNEL));
1
+ import { httpClient } from './axios';
2
+ import { ENDPOINT_PATHS } from '@constants';
3
+ var getChannelsOfServices = function (data) {
4
+ return httpClient({
5
+ method: 'post',
6
+ url: "".concat(ENDPOINT_PATHS.CHANNEL),
7
+ data: data
8
+ });
5
9
  };
6
- var getCustomerBases = function () {
7
- return instance.get("".concat(ENDPOINT_PATHS.CUSTOMER_BASES));
10
+ var getCustomerBases = function (data) {
11
+ return httpClient({
12
+ method: 'post',
13
+ url: "".concat(ENDPOINT_PATHS.CUSTOMER_BASES),
14
+ data: data
15
+ });
8
16
  };
9
- var getExpectedSales = function () {
10
- return instance.get("".concat(ENDPOINT_PATHS.SALES));
17
+ var getExpectedSales = function (data) {
18
+ return httpClient({
19
+ method: 'post',
20
+ url: "".concat(ENDPOINT_PATHS.SALES),
21
+ data: data
22
+ });
11
23
  };
12
- var getExpectedCustomerSales = function () {
13
- return instance.get("".concat(ENDPOINT_PATHS.EXPECTED_CUSTOMERS));
24
+ var getExpectedCustomerSales = function (data) {
25
+ return httpClient({
26
+ method: 'post',
27
+ url: "".concat(ENDPOINT_PATHS.EXPECTED_CUSTOMERS),
28
+ data: data
29
+ });
14
30
  };
15
- var getSourceOfIncome = function () {
16
- return instance.get("".concat(ENDPOINT_PATHS.SOURCE_INCOME));
31
+ var getSourceOfIncome = function (data) {
32
+ return httpClient({
33
+ method: 'post',
34
+ url: "".concat(ENDPOINT_PATHS.SOURCE_INCOME),
35
+ data: data
36
+ });
17
37
  };
18
- var getMonthlyIncome = function (countryCode) {
19
- return instance.get("".concat(ENDPOINT_PATHS.MONTHLY_INCOME, "/").concat(countryCode));
38
+ var getMonthlyIncome = function (data) {
39
+ return httpClient({
40
+ method: 'post',
41
+ url: "".concat(ENDPOINT_PATHS.MONTHLY_INCOME),
42
+ data: data
43
+ });
20
44
  };
21
- var getOccupation = function () {
45
+ var getOccupation = function (data) {
22
46
  return httpClient({
23
- method: 'get',
24
- url: "".concat(ENDPOINT_PATHS.OCCUPATION)
47
+ method: 'post',
48
+ url: "".concat(ENDPOINT_PATHS.OCCUPATION),
49
+ data: data
25
50
  });
26
51
  };
27
52
  var dataService = {
@@ -3,6 +3,8 @@ export declare type EntityInfoBody = {
3
3
  id: string;
4
4
  lead_id?: string;
5
5
  activities?: Array<string>;
6
+ license_name?: string;
7
+ license_number?: string;
6
8
  business_operation_start_at?: string;
7
9
  channel_services?: Array<string>;
8
10
  physical_store_available?: boolean;
@@ -9,7 +9,7 @@ var __rest = (this && this.__rest) || function (s, e) {
9
9
  }
10
10
  return t;
11
11
  };
12
- import { ENDPOINT_PATHS } from '../constants';
12
+ import { ENDPOINT_PATHS } from '@constants';
13
13
  import instance, { httpClient } from './axios';
14
14
  var retrieveEntityInfo = function (entity_id, config) {
15
15
  return instance.get("".concat(ENDPOINT_PATHS.ENTITY, "/").concat(entity_id), config);
@@ -1,4 +1,4 @@
1
- import { ENDPOINT_PATHS } from '../constants';
1
+ import { ENDPOINT_PATHS } from '@constants';
2
2
  import { httpClient } from './axios';
3
3
  var getLocale = function () {
4
4
  return httpClient({
@@ -9,7 +9,7 @@ export declare type UpdateBrandBody = {
9
9
  channel_services?: Array<string>;
10
10
  physical_store_available?: boolean;
11
11
  monthly_sales_range?: string;
12
- customers_served_monthly?: number;
12
+ customers_served_monthly?: string;
13
13
  customers_base?: Array<string>;
14
14
  vat_id?: string;
15
15
  agree_chargeback?: boolean;
@@ -1,4 +1,4 @@
1
- import { ENDPOINT_PATHS } from '../constants';
1
+ import { ENDPOINT_PATHS } from '@constants';
2
2
  import { httpClient } from './axios';
3
3
  var retrieveIndividualInfo = function (id) {
4
4
  return httpClient({
package/build/api/ip.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ENDPOINT_PATHS } from '../constants';
1
+ import { ENDPOINT_PATHS } from '@constants';
2
2
  import { httpClient } from './axios';
3
3
  var getIP = function () {
4
4
  return httpClient({
@@ -1,5 +1,5 @@
1
1
  import { AxiosRequestConfig } from 'axios';
2
- import { LanguageMode } from '../@types';
2
+ import { LanguageMode } from '@types';
3
3
  declare type Name = {
4
4
  title?: string;
5
5
  first?: string;
package/build/api/lead.js CHANGED
@@ -10,7 +10,7 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import instance, { httpClient } from './axios';
13
- import { ENDPOINT_PATHS } from '../constants';
13
+ import { ENDPOINT_PATHS } from '@constants';
14
14
  var createLead = function (data, config) {
15
15
  return instance.post("".concat(ENDPOINT_PATHS.LEAD), data, config);
16
16
  };
@@ -34,7 +34,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
34
34
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
35
  }
36
36
  };
37
- import { ENDPOINT_PATHS } from '../constants';
37
+ import { ENDPOINT_PATHS } from '@constants';
38
38
  import { httpClient } from './axios';
39
39
  var validateOperator = function (body) { return __awaiter(void 0, void 0, void 0, function () {
40
40
  var data, error_1;
package/build/api/user.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { httpClient } from './axios';
2
- import { ENDPOINT_PATHS } from '../constants';
2
+ import { ENDPOINT_PATHS } from '@constants';
3
3
  var retrieveUserInfo = function (userId) {
4
4
  return httpClient({
5
5
  method: 'get',
@@ -1,11 +1,14 @@
1
1
  declare const rootReducer: {
2
2
  settings: import("redux").Reducer<import("./settings").SettingsState, import("redux").AnyAction>;
3
- connect: import("redux").Reducer<import("../features/app/connect/connectStore").ConnectState, import("redux").AnyAction>;
4
- business: import("redux").Reducer<import("../features/app/business/businessStore").BusinessState, import("redux").AnyAction>;
5
- bank: import("redux").Reducer<import("../features/app/bank/bankStore").BankState, import("redux").AnyAction>;
6
- tax: import("redux").Reducer<import("../features/app/tax/taxStore").TaxState, import("redux").AnyAction>;
7
- individual: import("redux").Reducer<import("../features/app/individual/individualStore").IndividualState, import("redux").AnyAction>;
8
- password: import("redux").Reducer<import("../features/app/password/passwordStore").PasswordState, import("redux").AnyAction>;
9
- signIn: import("redux").Reducer<import("../features/app/signIn/signInStore").SignInState, import("redux").AnyAction>;
3
+ connect: import("redux").Reducer<import("@features/app/connect/connectStore").ConnectState, import("redux").AnyAction>;
4
+ business: import("redux").Reducer<import("@features/app/business/businessStore").BusinessState, import("redux").AnyAction>;
5
+ bank: import("redux").Reducer<import("@features/app/bank/bankStore").BankState, import("redux").AnyAction>;
6
+ tax: import("redux").Reducer<import("@features/app/tax/taxStore").TaxState, import("redux").AnyAction>;
7
+ individual: import("redux").Reducer<import("@features/app/individual/individualStore").IndividualState, import("redux").AnyAction>;
8
+ password: import("redux").Reducer<import("@features/app/password/passwordStore").PasswordState, import("redux").AnyAction>;
9
+ signIn: import("redux").Reducer<import("@features/app/signIn/signInStore").SignInState, import("redux").AnyAction>;
10
+ entity: import("redux").Reducer<import("@features/app/entity/entityStore").EntityState, import("redux").AnyAction>;
11
+ otp: import("redux").Reducer<import("@features/app/otp/otpStore").OtpState, import("redux").AnyAction>;
12
+ auth: import("redux").Reducer<import("@features/app/auth/authStore").AuthState, import("redux").AnyAction>;
10
13
  };
11
14
  export default rootReducer;
@@ -1,11 +1,14 @@
1
1
  import settings from './settings';
2
- import connect from '../features/app/connect/connectStore';
3
- import business from '../features/app/business/businessStore';
4
- import bank from '../features/app/bank/bankStore';
5
- import tax from '../features/app/tax/taxStore';
6
- import individual from '../features/app/individual/individualStore';
7
- import password from '../features/app/password/passwordStore';
8
- import signIn from '../features/app/signIn/signInStore';
2
+ import connect from '@features/app/connect/connectStore';
3
+ import business from '@features/app/business/businessStore';
4
+ import bank from '@features/app/bank/bankStore';
5
+ import tax from '@features/app/tax/taxStore';
6
+ import individual from '@features/app/individual/individualStore';
7
+ import password from '@features/app/password/passwordStore';
8
+ import signIn from '@features/app/signIn/signInStore';
9
+ import entity from '@features/app/entity/entityStore';
10
+ import otp from '@features/app/otp/otpStore';
11
+ import auth from '@features/app/auth/authStore';
9
12
  var rootReducer = {
10
13
  settings: settings,
11
14
  connect: connect,
@@ -14,6 +17,9 @@ var rootReducer = {
14
17
  tax: tax,
15
18
  individual: individual,
16
19
  password: password,
17
- signIn: signIn
20
+ signIn: signIn,
21
+ entity: entity,
22
+ otp: otp,
23
+ auth: auth
18
24
  };
19
25
  export default rootReducer;
@@ -1,5 +1,5 @@
1
- import { RootState } from './store';
2
- import { ActionState, LanguageMode, SharedState, ThemeMode, ScreenStepNavigation, DeviceInfo, LibConfig, CountryCode } from '../@types';
1
+ import { RootState } from '@app/store';
2
+ import { ActionState, LanguageMode, SharedState, ThemeMode, ScreenStepNavigation, DeviceInfo, LibConfig, CountryCode } from '@types';
3
3
  export declare const fetchAppSettingsSync: import("@reduxjs/toolkit").AsyncThunk<{
4
4
  countries: CountryCode[];
5
5
  businessCountry: CountryCode;
@@ -47,11 +47,11 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
47
47
  };
48
48
  var _a;
49
49
  import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
50
- import { getStoredData, storeData, isArray, findItem, getBrowserInfo, getFingerPrint, sortCountries, findCountryByIso2, getRequestHeaders, encryptString } from '../utils';
51
- import { defaultCountry, DefaultDeviceInfo, LOCAL_STORAGE_KEYS } from '../constants';
52
- import i18n from '../i18n';
53
- import { updateLocale } from '../utils/locale';
54
- import API, { setAxiosGlobalHeaders } from '../api';
50
+ import { getStoredData, storeData, isArray, findItem, getBrowserInfo, getFingerPrint, sortCountries, findCountryByIso2, getRequestHeaders, encryptString, removeElement } from '@utils';
51
+ import { defaultCountry, DefaultDeviceInfo, LOCAL_STORAGE_KEYS, DIALOG_ID, BACKGROUND_ID } from '@constants';
52
+ import i18n from '@src/i18n';
53
+ import { updateLocale } from '@utils/locale';
54
+ import API, { setAxiosGlobalHeaders } from '@api';
55
55
  export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', function (_, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
56
56
  var settings, _a, appConfig, language, _b, client, device, os, _c, visitorId, _d, ip, latitude, longitude, locale, list, operatorData, deviceInfo, countries, businessCountry;
57
57
  return __generator(this, function (_e) {
@@ -141,6 +141,12 @@ export var settingsSlice = createSlice({
141
141
  },
142
142
  handleOpen: function (state, action) {
143
143
  state.data.open = action.payload;
144
+ if (action.payload === false) {
145
+ setTimeout(function () {
146
+ removeElement(DIALOG_ID);
147
+ removeElement(BACKGROUND_ID);
148
+ }, 1000);
149
+ }
144
150
  },
145
151
  handleSkin: function (state, action) {
146
152
  state.data.skin = action.payload;
@@ -8,6 +8,9 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
8
8
  individual: import("../features/app/individual/individualStore").IndividualState;
9
9
  password: import("../features/app/password/passwordStore").PasswordState;
10
10
  signIn: import("../features/app/signIn/signInStore").SignInState;
11
+ entity: import("../features/app/entity/entityStore").EntityState;
12
+ otp: import("../features/app/otp/otpStore").OtpState;
13
+ auth: import("../features/app/auth/authStore").AuthState;
11
14
  }, import("redux").AnyAction, import("@reduxjs/toolkit").MiddlewareArray<[import("redux-thunk").ThunkMiddleware<{
12
15
  settings: import("./settings").SettingsState;
13
16
  connect: import("../features/app/connect/connectStore").ConnectState;
@@ -17,6 +20,9 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
17
20
  individual: import("../features/app/individual/individualStore").IndividualState;
18
21
  password: import("../features/app/password/passwordStore").PasswordState;
19
22
  signIn: import("../features/app/signIn/signInStore").SignInState;
23
+ entity: import("../features/app/entity/entityStore").EntityState;
24
+ otp: import("../features/app/otp/otpStore").OtpState;
25
+ auth: import("../features/app/auth/authStore").AuthState;
20
26
  }, import("redux").AnyAction, undefined>]>>;
21
27
  export declare type AppDispatch = typeof store.dispatch;
22
28
  export declare type RootState = ReturnType<typeof store.getState>;