@tap-payments/auth-jsconnect 2.7.1-test → 2.7.1

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 (557) hide show
  1. package/build/@types/app.d.ts +46 -8
  2. package/build/@types/app.js +16 -0
  3. package/build/@types/config.d.ts +21 -64
  4. package/build/@types/form.d.ts +11 -1
  5. package/build/@types/redux.d.ts +1 -0
  6. package/build/@types/theme.d.ts +1 -1
  7. package/build/@types/theme.js +1 -1
  8. package/build/api/account.d.ts +4 -0
  9. package/build/api/account.js +9 -2
  10. package/build/api/auth.d.ts +35 -20
  11. package/build/api/auth.js +1 -1
  12. package/build/api/data.d.ts +4 -17
  13. package/build/api/data.js +5 -45
  14. package/build/api/entity.d.ts +5 -2
  15. package/build/api/entity.js +12 -4
  16. package/build/api/firebase.js +68 -8
  17. package/build/api/index.d.ts +13 -25
  18. package/build/api/lead.d.ts +16 -3
  19. package/build/api/lead.js +16 -0
  20. package/build/api/user.d.ts +7 -0
  21. package/build/api/user.js +9 -1
  22. package/build/app/rootReducer.d.ts +1 -0
  23. package/build/app/rootReducer.js +3 -1
  24. package/build/app/settings.d.ts +3 -2
  25. package/build/app/settings.js +56 -29
  26. package/build/app/store.d.ts +2 -0
  27. package/build/assets/locales/ar.json +353 -151
  28. package/build/assets/locales/en.json +349 -150
  29. package/build/components/AnimationFlow/AnimationFlow.d.ts +9 -6
  30. package/build/components/AnimationFlow/AnimationFlow.js +5 -5
  31. package/build/components/AnimationFlow/BottomSheet.d.ts +5 -3
  32. package/build/components/AnimationFlow/BottomSheet.js +43 -14
  33. package/build/components/AnimationFlow/Dialog.d.ts +4 -4
  34. package/build/components/AnimationFlow/Dialog.js +5 -3
  35. package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +1 -1
  36. package/build/components/ArabicDatePicker/ArabicDatePicker.js +2 -2
  37. package/build/components/ArabicDatePicker/style.css +32 -3
  38. package/build/components/DatePicker/DatePicker.d.ts +1 -1
  39. package/build/components/DatePicker/DatePicker.js +2 -2
  40. package/build/components/Footer/Footer.js +2 -1
  41. package/build/components/Input/Input.js +1 -1
  42. package/build/components/Providers/ThemeProvider.js +3 -3
  43. package/build/components/Tooltip/Tooltip.js +1 -1
  44. package/build/constants/api.d.ts +5 -7
  45. package/build/constants/api.js +11 -15
  46. package/build/constants/app.d.ts +39 -0
  47. package/build/constants/app.js +345 -35
  48. package/build/constants/assets.d.ts +3 -0
  49. package/build/constants/assets.js +4 -1
  50. package/build/constants/dummy.d.ts +4 -219
  51. package/build/constants/dummy.js +64 -6194
  52. package/build/constants/flows.d.ts +26 -0
  53. package/build/constants/flows.js +27 -0
  54. package/build/constants/index.d.ts +1 -0
  55. package/build/constants/index.js +1 -0
  56. package/build/constants/validation.d.ts +2 -0
  57. package/build/constants/validation.js +2 -0
  58. package/build/features/app/auth/authStore.d.ts +29 -15
  59. package/build/features/app/auth/authStore.js +454 -155
  60. package/build/features/app/bank/bankStore.d.ts +13 -18
  61. package/build/features/app/bank/bankStore.js +186 -153
  62. package/build/features/app/board/boardStore.d.ts +5 -1
  63. package/build/features/app/board/boardStore.js +82 -51
  64. package/build/features/app/brand/brandStore.d.ts +17 -33
  65. package/build/features/app/brand/brandStore.js +254 -257
  66. package/build/features/app/business/businessStore.d.ts +37 -15
  67. package/build/features/app/business/businessStore.js +407 -223
  68. package/build/features/app/connect/connectStore.d.ts +34 -13
  69. package/build/features/app/connect/connectStore.js +317 -123
  70. package/build/features/app/connectExpress/connectExpressStore.d.ts +53 -30
  71. package/build/features/app/connectExpress/connectExpressStore.js +601 -370
  72. package/build/features/app/entity/entityStore.d.ts +20 -36
  73. package/build/features/app/entity/entityStore.js +204 -238
  74. package/build/features/app/individual/individualStore.d.ts +18 -34
  75. package/build/features/app/individual/individualStore.js +269 -292
  76. package/build/features/app/kyc/kycStore.d.ts +67 -0
  77. package/build/features/app/kyc/kycStore.js +408 -0
  78. package/build/features/app/password/passwordStore.d.ts +33 -18
  79. package/build/features/app/password/passwordStore.js +260 -219
  80. package/build/features/app/signIn/signInStore.js +19 -15
  81. package/build/features/app/tax/taxStore.d.ts +13 -7
  82. package/build/features/app/tax/taxStore.js +170 -136
  83. package/build/features/auth/Auth.d.ts +5 -6
  84. package/build/features/auth/Auth.js +44 -21
  85. package/build/features/auth/screens/AccountNotFound/AccountNotFound.js +2 -5
  86. package/build/features/auth/screens/AuthSwitch/AuthSwitch.d.ts +5 -0
  87. package/build/features/auth/screens/AuthSwitch/AuthSwitch.js +58 -0
  88. package/build/features/auth/screens/AuthSwitch/index.d.ts +3 -0
  89. package/build/features/auth/screens/AuthSwitch/index.js +2 -0
  90. package/build/features/auth/screens/AuthenticationList/AuthenticationList.js +2 -8
  91. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +2 -2
  92. package/build/features/auth/screens/AuthenticationList/LicenseNumber.js +2 -2
  93. package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +8 -2
  94. package/build/features/auth/screens/CivilID/CivilID.js +4 -35
  95. package/build/features/auth/screens/{NID → DOB}/DOB.js +3 -3
  96. package/build/features/auth/screens/DOB/DOBForm.d.ts +5 -0
  97. package/build/features/auth/screens/DOB/DOBForm.js +59 -0
  98. package/build/features/auth/screens/DOB/index.d.ts +3 -0
  99. package/build/features/auth/screens/DOB/index.js +2 -0
  100. package/build/features/{business/screens/OTP → auth/screens/DOB}/validation.d.ts +4 -4
  101. package/build/features/auth/screens/DOB/validation.js +4 -0
  102. package/build/features/auth/screens/Email/Email.d.ts +5 -0
  103. package/build/features/auth/screens/Email/Email.js +57 -0
  104. package/build/features/auth/screens/Email/EmailField.d.ts +8 -0
  105. package/build/features/auth/screens/Email/EmailField.js +52 -0
  106. package/build/features/auth/screens/Email/index.d.ts +3 -0
  107. package/build/features/auth/screens/Email/index.js +2 -0
  108. package/build/features/auth/screens/Email/validation.d.ts +8 -0
  109. package/build/features/auth/screens/Email/validation.js +4 -0
  110. package/build/features/auth/screens/EmailSent/EmailSent.d.ts +5 -0
  111. package/build/features/auth/screens/EmailSent/EmailSent.js +79 -0
  112. package/build/features/auth/screens/EmailSent/index.d.ts +2 -0
  113. package/build/features/auth/screens/EmailSent/index.js +2 -0
  114. package/build/features/auth/screens/MigratingData/MigratingData.d.ts +5 -0
  115. package/build/features/auth/screens/MigratingData/MigratingData.js +44 -0
  116. package/build/features/auth/screens/MigratingData/index.d.ts +2 -0
  117. package/build/features/auth/screens/MigratingData/index.js +2 -0
  118. package/build/features/auth/screens/Mobile/Mobile.js +6 -38
  119. package/build/features/auth/screens/Mobile/MobileNumber.js +13 -15
  120. package/build/features/auth/screens/Mobile/validation.js +11 -3
  121. package/build/features/auth/screens/NID/IDNumber.js +1 -1
  122. package/build/features/auth/screens/NID/NID.js +7 -43
  123. package/build/features/auth/screens/NID/validation.d.ts +0 -3
  124. package/build/features/auth/screens/NID/validation.js +0 -1
  125. package/build/features/auth/screens/OTP/OTP.js +41 -10
  126. package/build/features/auth/screens/OTP/OTPInput.js +23 -6
  127. package/build/features/auth/screens/OperatorError/OperatorError.d.ts +5 -0
  128. package/build/features/auth/screens/OperatorError/OperatorError.js +9 -0
  129. package/build/features/auth/screens/OperatorError/index.d.ts +3 -0
  130. package/build/features/auth/screens/OperatorError/index.js +2 -0
  131. package/build/features/auth/screens/Password/Password.d.ts +5 -0
  132. package/build/features/auth/screens/Password/Password.js +61 -0
  133. package/build/features/auth/screens/Password/PasswordField.d.ts +5 -0
  134. package/build/features/auth/screens/Password/PasswordField.js +28 -0
  135. package/build/features/auth/screens/Password/index.d.ts +3 -0
  136. package/build/features/auth/screens/Password/index.js +2 -0
  137. package/build/features/auth/screens/Password/validation.d.ts +8 -0
  138. package/build/features/auth/screens/Password/validation.js +4 -0
  139. package/build/features/auth/screens/PreparingData/PreparingData.js +3 -0
  140. package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.d.ts +5 -0
  141. package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.js +21 -0
  142. package/build/features/auth/screens/ResetPasswordMessage/index.d.ts +3 -0
  143. package/build/features/auth/screens/ResetPasswordMessage/index.js +2 -0
  144. package/build/features/auth/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  145. package/build/features/auth/screens/VerifyNafath/VerifyNafath.js +35 -0
  146. package/build/features/auth/screens/VerifyNafath/index.d.ts +3 -0
  147. package/build/features/auth/screens/VerifyNafath/index.js +2 -0
  148. package/build/features/bank/Bank.d.ts +5 -1
  149. package/build/features/bank/Bank.js +22 -9
  150. package/build/features/bank/screens/BankDetails/BankDetails.js +20 -6
  151. package/build/features/bank/screens/OperatorError/OperatorError.d.ts +5 -0
  152. package/build/features/bank/screens/OperatorError/OperatorError.js +9 -0
  153. package/build/features/bank/screens/OperatorError/index.d.ts +3 -0
  154. package/build/features/bank/screens/OperatorError/index.js +2 -0
  155. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  156. package/build/features/bank/screens/Verify/Verify.js +7 -6
  157. package/build/features/board/Board.d.ts +2 -0
  158. package/build/features/board/Board.js +24 -13
  159. package/build/features/board/screens/OperatorError/OperatorError.d.ts +5 -0
  160. package/build/features/board/screens/OperatorError/OperatorError.js +9 -0
  161. package/build/features/board/screens/OperatorError/index.d.ts +3 -0
  162. package/build/features/board/screens/OperatorError/index.js +2 -0
  163. package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  164. package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  165. package/build/features/board/screens/PrepareDataLoading/index.d.ts +2 -0
  166. package/build/features/board/screens/PrepareDataLoading/index.js +2 -0
  167. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -4
  168. package/build/features/board/screens/Verify/Verify.js +3 -2
  169. package/build/features/brand/Brand.d.ts +5 -1
  170. package/build/features/brand/Brand.js +22 -9
  171. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +7 -7
  172. package/build/features/brand/screens/BrandActivities/BrandActivities.js +48 -11
  173. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +6 -6
  174. package/build/features/brand/screens/BrandActivities/CustomerBase.js +1 -1
  175. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +6 -3
  176. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +4 -4
  177. package/build/features/brand/screens/BrandActivities/RefundPolicy.js +1 -1
  178. package/build/features/brand/screens/BrandActivities/TAC.d.ts +1 -1
  179. package/build/features/brand/screens/BrandActivities/TAC.js +1 -1
  180. package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +1 -1
  181. package/build/features/brand/screens/BrandInfo/BrandInfo.js +26 -6
  182. package/build/features/brand/screens/BrandInfo/BrandName.js +5 -2
  183. package/build/features/brand/screens/BrandInfo/validation.js +2 -2
  184. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +22 -6
  185. package/build/features/brand/screens/OperatorError/OperatorError.d.ts +5 -0
  186. package/build/features/brand/screens/OperatorError/OperatorError.js +9 -0
  187. package/build/features/brand/screens/OperatorError/index.d.ts +3 -0
  188. package/build/features/brand/screens/OperatorError/index.js +2 -0
  189. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  190. package/build/features/brand/screens/Verify/Verify.js +3 -2
  191. package/build/features/business/Business.js +20 -12
  192. package/build/features/business/screens/Activities/Activities.js +26 -9
  193. package/build/features/business/screens/Activities/ActivitiesList.d.ts +4 -4
  194. package/build/features/business/screens/Activities/ActivitiesList.js +1 -1
  195. package/build/features/business/screens/Activities/OperationStartDate.d.ts +5 -3
  196. package/build/features/business/screens/Activities/OperationStartDate.js +2 -2
  197. package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +2 -2
  198. package/build/features/business/screens/BusinessType/BusinessType.js +11 -3
  199. package/build/features/business/screens/BusinessType/LicenseNumber.js +3 -3
  200. package/build/features/business/screens/BusinessType/LicenseType.d.ts +2 -2
  201. package/build/features/business/screens/Customers/CustomerLocations.d.ts +12 -10
  202. package/build/features/business/screens/Customers/CustomerLocations.js +5 -3
  203. package/build/features/business/screens/Customers/Customers.js +50 -10
  204. package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +3 -1
  205. package/build/features/business/screens/Customers/ExpectedCustomers.js +5 -3
  206. package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +3 -1
  207. package/build/features/business/screens/Customers/ExpectedSalesRange.js +11 -5
  208. package/build/features/business/screens/Customers/RefundPolicy.d.ts +12 -5
  209. package/build/features/business/screens/Customers/RefundPolicy.js +13 -13
  210. package/build/features/business/screens/Customers/TransactionPolicy.d.ts +4 -1
  211. package/build/features/business/screens/Customers/TransactionPolicy.js +8 -5
  212. package/build/features/business/screens/Customers/validation.d.ts +6 -6
  213. package/build/features/business/screens/Customers/validation.js +3 -8
  214. package/build/features/business/screens/DOB/DOB.d.ts +6 -0
  215. package/build/features/business/screens/DOB/DOB.js +45 -0
  216. package/build/features/business/screens/DOB/DOBForm.d.ts +5 -0
  217. package/build/features/business/screens/DOB/DOBForm.js +72 -0
  218. package/build/features/business/screens/DOB/index.d.ts +3 -0
  219. package/build/features/business/screens/DOB/index.js +2 -0
  220. package/build/features/{connectExpress/screens/IdentityOTP → business/screens/DOB}/validation.d.ts +4 -4
  221. package/build/features/business/screens/DOB/validation.js +4 -0
  222. package/build/features/business/screens/IDBOD/IDBOD.js +10 -2
  223. package/build/features/business/screens/IDBOD/validation.d.ts +0 -3
  224. package/build/features/business/screens/IDBOD/validation.js +0 -1
  225. package/build/features/business/screens/MobileOwnership/CollectMobileOwnership.d.ts +3 -0
  226. package/build/features/business/screens/MobileOwnership/CollectMobileOwnership.js +104 -0
  227. package/build/features/{connectExpress/screens/IdentityOTP/OTP.d.ts → business/screens/MobileOwnership/MobileNumber.d.ts} +0 -2
  228. package/build/features/business/screens/MobileOwnership/MobileNumber.js +72 -0
  229. package/build/features/business/screens/MobileOwnership/index.d.ts +2 -0
  230. package/build/features/business/screens/MobileOwnership/index.js +2 -0
  231. package/build/features/business/screens/MobileOwnership/validation.d.ts +8 -0
  232. package/build/features/business/screens/MobileOwnership/validation.js +38 -0
  233. package/build/features/business/screens/OperatorError/OperatorError.d.ts +5 -0
  234. package/build/features/business/screens/OperatorError/OperatorError.js +9 -0
  235. package/build/features/business/screens/OperatorError/index.d.ts +3 -0
  236. package/build/features/business/screens/OperatorError/index.js +2 -0
  237. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +14 -3
  238. package/build/features/business/screens/Verify/Verify.js +15 -4
  239. package/build/features/business/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  240. package/build/features/business/screens/VerifyNafath/VerifyNafath.js +35 -0
  241. package/build/features/business/screens/VerifyNafath/index.d.ts +3 -0
  242. package/build/features/business/screens/VerifyNafath/index.js +2 -0
  243. package/build/features/connect/Connect.d.ts +5 -1
  244. package/build/features/connect/Connect.js +22 -17
  245. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +7 -1
  246. package/build/features/connect/screens/CivilID/CivilID.js +6 -1
  247. package/build/features/{auth/screens/NID → connect/screens/DOB}/DOB.d.ts +1 -2
  248. package/build/features/connect/screens/{NID → DOB}/DOB.js +2 -2
  249. package/build/features/connect/screens/DOB/DOBForm.d.ts +5 -0
  250. package/build/features/connect/screens/DOB/DOBForm.js +59 -0
  251. package/build/features/connect/screens/DOB/index.d.ts +3 -0
  252. package/build/features/connect/screens/DOB/index.js +2 -0
  253. package/build/features/connect/screens/DOB/validation.d.ts +8 -0
  254. package/build/features/connect/screens/DOB/validation.js +4 -0
  255. package/build/features/connect/screens/Individual/Email.js +1 -3
  256. package/build/features/connect/screens/Individual/Individual.js +11 -5
  257. package/build/features/connect/screens/Individual/MobileNumber.js +8 -7
  258. package/build/features/connect/screens/Individual/validation.js +11 -3
  259. package/build/features/connect/screens/Merchant/BrandName.js +5 -2
  260. package/build/features/connect/screens/Merchant/validation.js +2 -2
  261. package/build/features/connect/screens/Mobile/Mobile.js +12 -9
  262. package/build/features/connect/screens/Mobile/MobileNumber.js +8 -7
  263. package/build/features/connect/screens/Mobile/validation.js +11 -3
  264. package/build/features/connect/screens/MobileOwnership/CollectMobileOwnership.d.ts +3 -0
  265. package/build/features/connect/screens/MobileOwnership/CollectMobileOwnership.js +105 -0
  266. package/build/features/connect/screens/MobileOwnership/MobileNumber.d.ts +3 -0
  267. package/build/features/connect/screens/MobileOwnership/MobileNumber.js +72 -0
  268. package/build/features/connect/screens/MobileOwnership/index.d.ts +2 -0
  269. package/build/features/connect/screens/MobileOwnership/index.js +2 -0
  270. package/build/features/connect/screens/MobileOwnership/validation.d.ts +8 -0
  271. package/build/features/connect/screens/MobileOwnership/validation.js +38 -0
  272. package/build/features/connect/screens/NID/IDNumber.d.ts +1 -0
  273. package/build/features/connect/screens/NID/IDNumber.js +2 -2
  274. package/build/features/connect/screens/NID/NID.js +5 -11
  275. package/build/features/connect/screens/NID/validation.d.ts +0 -3
  276. package/build/features/connect/screens/NID/validation.js +0 -1
  277. package/build/features/connect/screens/OTP/OTP.js +6 -6
  278. package/build/features/connect/screens/OTP/OTPInput.js +3 -11
  279. package/build/features/connect/screens/OperatorError/OperatorError.js +1 -1
  280. package/build/features/connect/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  281. package/build/features/connect/screens/VerifyNafath/VerifyNafath.js +35 -0
  282. package/build/features/connect/screens/VerifyNafath/index.d.ts +3 -0
  283. package/build/features/connect/screens/VerifyNafath/index.js +2 -0
  284. package/build/features/connectExpress/ConnectExpress.d.ts +5 -2
  285. package/build/features/connectExpress/ConnectExpress.js +63 -42
  286. package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.js +14 -2
  287. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +2 -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/LicenseType.d.ts +2 -2
  295. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +1 -1
  296. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +2 -2
  297. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +30 -7
  298. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +1 -3
  299. package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.js +9 -8
  300. package/build/features/connectExpress/screens/CollectIndividualInfo/validation.js +11 -3
  301. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.js +14 -24
  302. package/build/features/connectExpress/screens/{NID → DOB}/DOB.d.ts +1 -2
  303. package/build/features/connectExpress/screens/{NID → DOB}/DOB.js +3 -3
  304. package/build/features/connectExpress/screens/DOB/DOBForm.d.ts +5 -0
  305. package/build/features/connectExpress/screens/DOB/DOBForm.js +63 -0
  306. package/build/features/connectExpress/screens/DOB/index.d.ts +3 -0
  307. package/build/features/connectExpress/screens/DOB/index.js +2 -0
  308. package/build/features/connectExpress/screens/DOB/validation.d.ts +8 -0
  309. package/build/features/connectExpress/screens/DOB/validation.js +4 -0
  310. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.d.ts +5 -0
  311. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.js +35 -0
  312. package/build/features/connectExpress/screens/IdentityVerifyNafath/index.d.ts +3 -0
  313. package/build/features/connectExpress/screens/IdentityVerifyNafath/index.js +2 -0
  314. package/build/features/connectExpress/screens/Mobile/Mobile.js +10 -3
  315. package/build/features/connectExpress/screens/Mobile/MobileNumber.js +9 -8
  316. package/build/features/connectExpress/screens/Mobile/validation.js +21 -6
  317. package/build/features/connectExpress/screens/MobileOwnership/CollectMobileOwnership.d.ts +3 -0
  318. package/build/features/connectExpress/screens/MobileOwnership/CollectMobileOwnership.js +107 -0
  319. package/build/features/connectExpress/screens/MobileOwnership/MobileNumber.d.ts +3 -0
  320. package/build/features/connectExpress/screens/MobileOwnership/MobileNumber.js +72 -0
  321. package/build/features/connectExpress/screens/MobileOwnership/index.d.ts +2 -0
  322. package/build/features/connectExpress/screens/MobileOwnership/index.js +2 -0
  323. package/build/features/connectExpress/screens/MobileOwnership/validation.d.ts +8 -0
  324. package/build/features/connectExpress/screens/MobileOwnership/validation.js +38 -0
  325. package/build/features/connectExpress/screens/NID/IDNumber.d.ts +1 -0
  326. package/build/features/connectExpress/screens/NID/IDNumber.js +2 -2
  327. package/build/features/connectExpress/screens/NID/NID.js +10 -10
  328. package/build/features/connectExpress/screens/NID/TAC.d.ts +1 -1
  329. package/build/features/connectExpress/screens/NID/TAC.js +2 -2
  330. package/build/features/connectExpress/screens/NID/validation.d.ts +0 -3
  331. package/build/features/connectExpress/screens/NID/validation.js +0 -2
  332. package/build/features/connectExpress/screens/NIDMissed/NID.js +3 -3
  333. package/build/features/connectExpress/screens/NIDMissed/validation.d.ts +0 -3
  334. package/build/features/connectExpress/screens/NIDMissed/validation.js +0 -1
  335. package/build/features/connectExpress/screens/OTP/OTP.js +13 -15
  336. package/build/features/connectExpress/screens/OTP/OTPInput.js +12 -10
  337. package/build/features/connectExpress/screens/OperatorError/OperatorError.d.ts +5 -0
  338. package/build/features/connectExpress/screens/OperatorError/OperatorError.js +9 -0
  339. package/build/features/connectExpress/screens/OperatorError/index.d.ts +3 -0
  340. package/build/features/connectExpress/screens/OperatorError/index.js +2 -0
  341. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.d.ts +5 -0
  342. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.js +34 -0
  343. package/build/features/connectExpress/screens/PrepareDataLoading/index.d.ts +2 -0
  344. package/build/features/connectExpress/screens/PrepareDataLoading/index.js +2 -0
  345. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
  346. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  347. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.js +35 -0
  348. package/build/features/connectExpress/screens/VerifyNafath/index.d.ts +3 -0
  349. package/build/features/connectExpress/screens/VerifyNafath/index.js +2 -0
  350. package/build/features/entity/Entity.d.ts +4 -1
  351. package/build/features/entity/Entity.js +22 -9
  352. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +4 -4
  353. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +8 -4
  354. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +8 -4
  355. package/build/features/entity/screens/EntityCapital/EntityCapital.js +33 -9
  356. package/build/features/entity/screens/EntityName/EntityName.js +33 -15
  357. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +7 -7
  358. package/build/features/entity/screens/EntityName/EntityTypeList.js +2 -3
  359. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +2 -2
  360. package/build/features/entity/screens/EntityName/ExpiryDate.js +13 -8
  361. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +2 -2
  362. package/build/features/entity/screens/EntityName/IssuingDate.js +15 -8
  363. package/build/features/entity/screens/EntityName/LegalName.js +1 -13
  364. package/build/features/entity/screens/EntityName/LicenseNumber.js +6 -8
  365. package/build/features/entity/screens/EntityName/UnifiedNumber.js +4 -6
  366. package/build/features/entity/screens/EntityName/validation.d.ts +3 -3
  367. package/build/features/entity/screens/EntityName/validation.js +1 -10
  368. package/build/features/entity/screens/OperatorError/OperatorError.d.ts +5 -0
  369. package/build/features/entity/screens/OperatorError/OperatorError.js +9 -0
  370. package/build/features/entity/screens/OperatorError/index.d.ts +3 -0
  371. package/build/features/entity/screens/OperatorError/index.js +2 -0
  372. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  373. package/build/features/entity/screens/Verify/Verify.js +3 -2
  374. package/build/features/featuresScreens.d.ts +1 -0
  375. package/build/features/featuresScreens.js +211 -13
  376. package/build/features/individual/Individual.d.ts +4 -1
  377. package/build/features/individual/Individual.js +22 -9
  378. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +2 -2
  379. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +44 -11
  380. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +2 -2
  381. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +5 -2
  382. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +2 -2
  383. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +8 -3
  384. package/build/features/individual/screens/IndividualList/Email.js +2 -3
  385. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +4 -4
  386. package/build/features/individual/screens/IndividualList/IndividualList.js +21 -6
  387. package/build/features/individual/screens/IndividualList/MobileNumber.js +8 -10
  388. package/build/features/individual/screens/IndividualList/UserList.js +7 -7
  389. package/build/features/individual/screens/IndividualList/validation.js +11 -4
  390. package/build/features/individual/screens/IndividualPersonalInfo/Email.js +2 -4
  391. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +2 -2
  392. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +2 -2
  393. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +76 -20
  394. package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +6 -5
  395. package/build/features/individual/screens/IndividualPersonalInfo/validation.js +11 -3
  396. package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.js +9 -11
  397. package/build/features/individual/screens/IndividualPhoneInfo/validation.js +11 -3
  398. package/build/features/individual/screens/OperatorError/OperatorError.d.ts +5 -0
  399. package/build/features/individual/screens/OperatorError/OperatorError.js +9 -0
  400. package/build/features/individual/screens/OperatorError/index.d.ts +3 -0
  401. package/build/features/individual/screens/OperatorError/index.js +2 -0
  402. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  403. package/build/features/individual/screens/Verify/Verify.js +3 -2
  404. package/build/features/kyc/KYC.d.ts +11 -0
  405. package/build/features/kyc/KYC.js +99 -0
  406. package/build/features/kyc/index.d.ts +1 -0
  407. package/build/features/kyc/index.js +1 -0
  408. package/build/features/kyc/screens/AlreadySubmitted/AlreadySubmitted.d.ts +5 -0
  409. package/build/features/kyc/screens/AlreadySubmitted/AlreadySubmitted.js +19 -0
  410. package/build/features/kyc/screens/AlreadySubmitted/index.d.ts +2 -0
  411. package/build/features/kyc/screens/AlreadySubmitted/index.js +2 -0
  412. package/build/features/kyc/screens/Loading/Loading.d.ts +4 -0
  413. package/build/features/kyc/screens/Loading/Loading.js +10 -0
  414. package/build/features/kyc/screens/Loading/index.d.ts +2 -0
  415. package/build/features/kyc/screens/Loading/index.js +2 -0
  416. package/build/features/kyc/screens/OperatorError/OperatorError.d.ts +5 -0
  417. package/build/features/kyc/screens/OperatorError/OperatorError.js +9 -0
  418. package/build/features/kyc/screens/OperatorError/index.d.ts +2 -0
  419. package/build/features/kyc/screens/OperatorError/index.js +2 -0
  420. package/build/features/kyc/screens/Success/Success.d.ts +5 -0
  421. package/build/features/kyc/screens/Success/Success.js +32 -0
  422. package/build/features/kyc/screens/Success/index.d.ts +2 -0
  423. package/build/features/kyc/screens/Success/index.js +2 -0
  424. package/build/features/kyc/screens/Terms/Header.d.ts +6 -0
  425. package/build/features/kyc/screens/Terms/Header.js +36 -0
  426. package/build/features/kyc/screens/Terms/Terms.d.ts +4 -0
  427. package/build/features/kyc/screens/Terms/Terms.js +81 -0
  428. package/build/features/kyc/screens/Terms/index.d.ts +2 -0
  429. package/build/features/kyc/screens/Terms/index.js +2 -0
  430. package/build/features/kyc/screens/TokenError/TokenError.d.ts +5 -0
  431. package/build/features/kyc/screens/TokenError/TokenError.js +9 -0
  432. package/build/features/kyc/screens/TokenError/index.d.ts +2 -0
  433. package/build/features/kyc/screens/TokenError/index.js +2 -0
  434. package/build/features/kyc/screens/Users/Users.d.ts +3 -0
  435. package/build/features/kyc/screens/Users/Users.js +76 -0
  436. package/build/features/kyc/screens/Users/index.d.ts +2 -0
  437. package/build/features/kyc/screens/Users/index.js +2 -0
  438. package/build/features/kyc/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
  439. package/build/features/kyc/screens/VerifyNafath/VerifyNafath.js +45 -0
  440. package/build/features/kyc/screens/VerifyNafath/index.d.ts +3 -0
  441. package/build/features/kyc/screens/VerifyNafath/index.js +2 -0
  442. package/build/features/kyc/screens/VerifyPaci/VerifyPACI.d.ts +5 -0
  443. package/build/features/kyc/screens/VerifyPaci/VerifyPACI.js +44 -0
  444. package/build/features/kyc/screens/VerifyPaci/index.d.ts +3 -0
  445. package/build/features/kyc/screens/VerifyPaci/index.js +2 -0
  446. package/build/features/password/Password.d.ts +4 -1
  447. package/build/features/password/Password.js +88 -31
  448. package/build/features/password/screens/CreatePassword/CreatePassword.js +10 -4
  449. package/build/features/password/screens/OTP/OTP.js +3 -3
  450. package/build/features/password/screens/OperatorError/OperatorError.d.ts +5 -0
  451. package/build/features/password/screens/OperatorError/OperatorError.js +9 -0
  452. package/build/features/password/screens/OperatorError/index.d.ts +3 -0
  453. package/build/features/password/screens/OperatorError/index.js +2 -0
  454. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  455. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  456. package/build/features/password/screens/PrepareDataLoading/index.d.ts +2 -0
  457. package/build/features/password/screens/PrepareDataLoading/index.js +2 -0
  458. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  459. package/build/features/password/screens/Verify/Verify.js +7 -6
  460. package/build/features/shared/Address/CountryList.d.ts +6 -6
  461. package/build/features/shared/Address/InputSelect.d.ts +6 -6
  462. package/build/features/shared/Background/Background.js +1 -1
  463. package/build/features/shared/BusinessCountry/BusinessCountry.js +1 -1
  464. package/build/features/shared/Button/Button.js +3 -1
  465. package/build/features/shared/Button/EmailProvidersButtons.js +2 -0
  466. package/build/features/shared/Button/FlowsButtons.js +18 -4
  467. package/build/features/shared/Button/NafathButton.d.ts +8 -0
  468. package/build/features/shared/Button/{AbsherButton.js → NafathButton.js} +12 -3
  469. package/build/features/shared/Button/index.d.ts +2 -2
  470. package/build/features/shared/Button/index.js +2 -2
  471. package/build/features/shared/Calender/Calender.d.ts +2 -1
  472. package/build/features/shared/Calender/Calender.js +3 -3
  473. package/build/features/shared/Containers/FeatureContainer.d.ts +2 -1
  474. package/build/features/shared/Containers/FeatureContainer.js +5 -3
  475. package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
  476. package/build/features/shared/Dialog/DialogContainer.js +5 -4
  477. package/build/features/shared/Input/Input.d.ts +2 -2
  478. package/build/features/shared/NafathVerification/NafathVerification.d.ts +14 -0
  479. package/build/features/shared/NafathVerification/NafathVerification.js +92 -0
  480. package/build/features/shared/NafathVerification/VerifyNafathLoading.d.ts +8 -0
  481. package/build/features/shared/NafathVerification/VerifyNafathLoading.js +53 -0
  482. package/build/features/shared/NafathVerification/VerifyNafathSuccess.d.ts +5 -0
  483. package/build/features/shared/NafathVerification/VerifyNafathSuccess.js +8 -0
  484. package/build/features/shared/NafathVerification/index.d.ts +2 -0
  485. package/build/features/shared/NafathVerification/index.js +2 -0
  486. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +6 -1
  487. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +10 -13
  488. package/build/features/shared/SuccessScreen/SuccessScreen.js +1 -1
  489. package/build/features/shared/UploadFile/FileUpload.d.ts +1 -1
  490. package/build/features/shared/UploadFile/UploadFile.d.ts +1 -1
  491. package/build/features/shared/UploadFile/UploadWrapper.d.ts +1 -1
  492. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +1 -1
  493. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +1 -1
  494. package/build/features/signIn/SignIn.js +18 -7
  495. package/build/features/signIn/screens/Mobile/MobileNumber.js +8 -7
  496. package/build/features/signIn/screens/Mobile/validation.js +11 -3
  497. package/build/features/signIn/screens/OTP/OTP.js +5 -4
  498. package/build/features/signIn/screens/OperatorError/OperatorError.d.ts +5 -0
  499. package/build/features/signIn/screens/OperatorError/OperatorError.js +9 -0
  500. package/build/features/signIn/screens/OperatorError/index.d.ts +3 -0
  501. package/build/features/signIn/screens/OperatorError/index.js +2 -0
  502. package/build/features/tax/Tax.d.ts +4 -1
  503. package/build/features/tax/Tax.js +22 -9
  504. package/build/features/tax/screens/OperatorError/OperatorError.d.ts +5 -0
  505. package/build/features/tax/screens/OperatorError/OperatorError.js +9 -0
  506. package/build/features/tax/screens/OperatorError/index.d.ts +3 -0
  507. package/build/features/tax/screens/OperatorError/index.js +2 -0
  508. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  509. package/build/features/tax/screens/TaxDetails/TaxDetails.js +9 -3
  510. package/build/features/tax/screens/Verify/Verify.js +7 -6
  511. package/build/hooks/index.d.ts +3 -0
  512. package/build/hooks/index.js +3 -0
  513. package/build/hooks/useAppConfig.d.ts +3 -3
  514. package/build/hooks/useAppConfig.js +4 -3
  515. package/build/hooks/useAppDispatch.d.ts +1 -0
  516. package/build/hooks/useAppTheme.js +4 -6
  517. package/build/hooks/useCountDown.d.ts +10 -0
  518. package/build/hooks/useCountDown.js +17 -0
  519. package/build/hooks/useFormDirtyCheck.d.ts +10 -0
  520. package/build/hooks/useFormDirtyCheck.js +66 -0
  521. package/build/hooks/useSanitizedTranslation.d.ts +2 -0
  522. package/build/hooks/useSanitizedTranslation.js +15 -0
  523. package/build/hooks/useVerifyToken.d.ts +4 -2
  524. package/build/hooks/useVerifyToken.js +9 -4
  525. package/build/index.css +360 -120
  526. package/build/index.d.ts +3 -2
  527. package/build/index.js +4 -2
  528. package/build/theme/components.js +7 -0
  529. package/build/theme/palette.js +2 -1
  530. package/build/theme/shadows.js +1 -1
  531. package/build/theme/theme.d.ts +1 -1
  532. package/build/theme/theme.js +2 -2
  533. package/build/utils/array.js +2 -2
  534. package/build/utils/common.d.ts +1 -0
  535. package/build/utils/common.js +16 -3
  536. package/build/utils/object.d.ts +1 -0
  537. package/build/utils/object.js +3 -0
  538. package/build/utils/string.d.ts +6 -2
  539. package/build/utils/string.js +28 -3
  540. package/build/utils/validation.d.ts +2 -0
  541. package/build/utils/validation.js +6 -0
  542. package/package.json +2 -2
  543. package/build/features/business/screens/OTP/OTP.d.ts +0 -8
  544. package/build/features/business/screens/OTP/OTP.js +0 -90
  545. package/build/features/business/screens/OTP/OTPInput.d.ts +0 -5
  546. package/build/features/business/screens/OTP/OTPInput.js +0 -49
  547. package/build/features/business/screens/OTP/index.d.ts +0 -3
  548. package/build/features/business/screens/OTP/index.js +0 -2
  549. package/build/features/business/screens/OTP/validation.js +0 -4
  550. package/build/features/connectExpress/screens/IdentityOTP/OTP.js +0 -87
  551. package/build/features/connectExpress/screens/IdentityOTP/OTPInput.d.ts +0 -5
  552. package/build/features/connectExpress/screens/IdentityOTP/OTPInput.js +0 -54
  553. package/build/features/connectExpress/screens/IdentityOTP/index.d.ts +0 -3
  554. package/build/features/connectExpress/screens/IdentityOTP/index.js +0 -2
  555. package/build/features/connectExpress/screens/IdentityOTP/validation.js +0 -4
  556. package/build/features/shared/Button/AbsherButton.d.ts +0 -8
  557. /package/build/features/{connect/screens/NID → auth/screens/DOB}/DOB.d.ts +0 -0
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { CustomerInfo } from './config';
3
- import { DirectionMode, LanguageMode, DialogEdgeFormat } from './theme';
2
+ import { PaymentProvider, SDKNotification, SettingAsyncData } from './config';
3
+ import { LanguageMode, DialogEdgeFormat } from './theme';
4
4
  export interface CountryCode {
5
5
  created: number;
6
6
  updated: number;
@@ -26,6 +26,8 @@ export interface CountryCode {
26
26
  logo: string;
27
27
  digits: number;
28
28
  supported_by_tap: boolean;
29
+ min_digits: number;
30
+ max_digits: number;
29
31
  }
30
32
  export interface City {
31
33
  id: string;
@@ -202,13 +204,14 @@ interface LibCallbacks {
202
204
  onError: (err: any) => void;
203
205
  onStepCompleted?: (name: string, data: Record<string, any>) => void;
204
206
  onReady?: () => void;
207
+ onSettingFetched?: (data: SettingAsyncData) => void;
205
208
  onClose?: () => void;
206
209
  onStepStarted?: (name: string) => void;
207
210
  onBoardButtonClick?: (data: Record<string, any>) => void;
208
211
  onCreated?: (res: Record<string, any>) => void;
209
212
  onBoardCompleted?: () => void;
210
- onMaturityChanged?: (maturity: 'full' | 'express') => void;
211
- storeBoardId?: (boardId: string) => void;
213
+ onMaturityChanged?: (maturity: 'full' | 'express') => Promise<void>;
214
+ onSwitchToBoard?: (boardId: string, authId: string) => void;
212
215
  }
213
216
  export interface LibConfig extends LibCallbacks {
214
217
  publicKey: string;
@@ -218,16 +221,30 @@ export interface LibConfig extends LibCallbacks {
218
221
  appInfo: AppInfo;
219
222
  businessCountryCode?: string;
220
223
  scope: string;
224
+ showBoard?: boolean;
221
225
  platforms?: Array<string>;
222
- showPoweredBy?: boolean;
223
226
  dialogEdgeFormat?: DialogEdgeFormat;
224
- direction?: DirectionMode;
225
- customerInfo?: CustomerInfo;
227
+ paymentProvider?: PaymentProvider;
228
+ features?: {
229
+ poweredBy?: boolean;
230
+ merchantLogo?: boolean;
231
+ switchLanguage?: boolean;
232
+ overlay?: boolean;
233
+ loaderOverlay?: boolean;
234
+ tapTextLogo?: boolean;
235
+ closeButton?: boolean;
236
+ disableNafath?: boolean;
237
+ disablePaci?: boolean;
238
+ dialogStartTransition?: 'left' | 'right' | 'up' | 'down';
239
+ dialogEndTransition?: 'left' | 'right' | 'up' | 'down';
240
+ };
226
241
  postURL?: string;
227
242
  redirectUrl?: string;
228
243
  data?: Array<string>;
229
244
  mode?: 'popup' | 'page' | 'content';
245
+ notification?: SDKNotification;
230
246
  boardMaturity?: boolean;
247
+ settingData?: SettingAsyncData;
231
248
  }
232
249
  export interface OSDetails {
233
250
  name: string;
@@ -320,7 +337,8 @@ export declare enum FlowsTypes {
320
337
  ENTITY = "entity",
321
338
  OTP = "otp",
322
339
  BRAND = "brand",
323
- BOARD = "board"
340
+ BOARD = "board",
341
+ kyc = "kyc"
324
342
  }
325
343
  export declare type FlowInfo = {
326
344
  name: string;
@@ -333,6 +351,18 @@ export declare enum AuthForType {
333
351
  NATIONAL_ID = "national_id",
334
352
  NATIONAL_ID_MISSED = "national_id_missed"
335
353
  }
354
+ export declare enum AuthTypeNumber {
355
+ EMAIL_OTP = 5,
356
+ MOBILE_OTP = 2,
357
+ PASSWORD = 1,
358
+ MIGRATION = 10,
359
+ RESET_PASSWORD = 7
360
+ }
361
+ export declare enum MigrationStatus {
362
+ IN_PROGRESS = "IN_PROGRESS",
363
+ MIGRATED = "MIGRATED",
364
+ FAILED = "FAILED"
365
+ }
336
366
  export declare enum AddressFormateType {
337
367
  SELECT = "select",
338
368
  NUMBER = "number",
@@ -383,6 +413,7 @@ export declare enum DocumentPurpose {
383
413
  CR = "commercial_registration",
384
414
  ARTICLE_ASSOCIATION = "article_of_association",
385
415
  BANK_STATEMENT = "bank_statement",
416
+ BANK_CERTIFICATE = "bank_certificate",
386
417
  IDENTITY_DOCUMENT = "identity_document",
387
418
  CUSTOMER_SIGNATURE = "customer_signature",
388
419
  TAX_DOCUMENT = "tax_document_user_upload",
@@ -644,6 +675,7 @@ export interface EventPageTrackingData extends CommonDataLayer {
644
675
  }
645
676
  export interface PageTrackingData {
646
677
  title?: string;
678
+ connect_flow?: string;
647
679
  }
648
680
  export declare type VerifyExpressTokenParams = {
649
681
  public_key: string;
@@ -681,6 +713,8 @@ export interface AuthMerchantInfo {
681
713
  terminal_id: string;
682
714
  acceptance_status: string;
683
715
  payout_status: string;
716
+ board_id: string;
717
+ board_info_id: string;
684
718
  }
685
719
  export interface AuthTerminalInfo {
686
720
  id: string;
@@ -734,17 +768,21 @@ export declare type CountryInfo = {
734
768
  id: number;
735
769
  label: string;
736
770
  country: {
771
+ id: number;
737
772
  name_en: string;
738
773
  name_ar: string;
739
774
  iso2: string;
740
775
  iso3: string;
741
776
  idd_prefix: string;
742
777
  logo: string;
778
+ min_digits: number;
779
+ max_digits: number;
743
780
  };
744
781
  };
745
782
  export declare type BusinessCountryInfo = {
746
783
  id: number;
747
784
  title: string;
785
+ title_ar: string;
748
786
  countries: Array<CountryInfo>;
749
787
  };
750
788
  export {};
@@ -34,6 +34,7 @@ export var FlowsTypes;
34
34
  FlowsTypes["OTP"] = "otp";
35
35
  FlowsTypes["BRAND"] = "brand";
36
36
  FlowsTypes["BOARD"] = "board";
37
+ FlowsTypes["kyc"] = "kyc";
37
38
  })(FlowsTypes || (FlowsTypes = {}));
38
39
  export var AuthForType;
39
40
  (function (AuthForType) {
@@ -42,6 +43,20 @@ export var AuthForType;
42
43
  AuthForType["NATIONAL_ID"] = "national_id";
43
44
  AuthForType["NATIONAL_ID_MISSED"] = "national_id_missed";
44
45
  })(AuthForType || (AuthForType = {}));
46
+ export var AuthTypeNumber;
47
+ (function (AuthTypeNumber) {
48
+ AuthTypeNumber[AuthTypeNumber["EMAIL_OTP"] = 5] = "EMAIL_OTP";
49
+ AuthTypeNumber[AuthTypeNumber["MOBILE_OTP"] = 2] = "MOBILE_OTP";
50
+ AuthTypeNumber[AuthTypeNumber["PASSWORD"] = 1] = "PASSWORD";
51
+ AuthTypeNumber[AuthTypeNumber["MIGRATION"] = 10] = "MIGRATION";
52
+ AuthTypeNumber[AuthTypeNumber["RESET_PASSWORD"] = 7] = "RESET_PASSWORD";
53
+ })(AuthTypeNumber || (AuthTypeNumber = {}));
54
+ export var MigrationStatus;
55
+ (function (MigrationStatus) {
56
+ MigrationStatus["IN_PROGRESS"] = "IN_PROGRESS";
57
+ MigrationStatus["MIGRATED"] = "MIGRATED";
58
+ MigrationStatus["FAILED"] = "FAILED";
59
+ })(MigrationStatus || (MigrationStatus = {}));
45
60
  export var AddressFormateType;
46
61
  (function (AddressFormateType) {
47
62
  AddressFormateType["SELECT"] = "select";
@@ -71,6 +86,7 @@ export var DocumentPurpose;
71
86
  DocumentPurpose["CR"] = "commercial_registration";
72
87
  DocumentPurpose["ARTICLE_ASSOCIATION"] = "article_of_association";
73
88
  DocumentPurpose["BANK_STATEMENT"] = "bank_statement";
89
+ DocumentPurpose["BANK_CERTIFICATE"] = "bank_certificate";
74
90
  DocumentPurpose["IDENTITY_DOCUMENT"] = "identity_document";
75
91
  DocumentPurpose["CUSTOMER_SIGNATURE"] = "customer_signature";
76
92
  DocumentPurpose["TAX_DOCUMENT"] = "tax_document_user_upload";
@@ -4,89 +4,46 @@ export interface ConfigInfo {
4
4
  data?: string[];
5
5
  lead?: Lead;
6
6
  board?: Board;
7
- customer?: CustomerInfo;
8
7
  interface?: Interface;
9
8
  redirect?: Redirect;
10
9
  post?: Redirect;
11
10
  connect?: Redirect;
12
11
  platforms?: string[];
12
+ payment_provider?: PaymentProvider;
13
+ }
14
+ export interface PaymentProvider {
15
+ technology_id: string;
16
+ settlement_by: string;
13
17
  }
14
18
  interface Redirect {
15
19
  url: string;
16
20
  }
21
+ export interface SDKNotification {
22
+ email: boolean;
23
+ mobile?: boolean;
24
+ }
17
25
  interface Interface {
18
- user_experience?: 'popup' | 'page' | 'content';
19
26
  locale?: 'dynamic' | 'ar' | 'en';
20
- direction?: 'dynamic' | 'rtl' | 'ltr';
21
27
  edges?: 'straight' | 'curved';
22
- theme?: 'dynamic' | 'light' | 'dark';
23
- powered?: boolean;
24
- }
25
- export interface CustomerInfo {
26
- address: Address[];
27
- identification: Identification;
28
- nationality: string;
29
- phone: Phone[];
30
- name: Name;
31
- birth: Birth;
32
- email: Email[];
33
- primary: boolean;
34
- }
35
- interface Email {
36
- address: string;
37
- type: string;
38
- primary: boolean;
39
- }
40
- interface Birth {
41
- country: string;
42
- city: string;
43
- date: string;
44
- }
45
- interface Name {
46
- middle: string;
47
- last: string;
48
- lang: string;
49
- title: string;
50
- first: string;
51
- }
52
- interface Phone {
53
- country_code: string;
54
- number: string;
55
- type: string;
56
- primary: boolean;
57
- }
58
- interface Identification {
59
- number: string;
60
- type: string;
61
- issuer: string;
62
- }
63
- interface Address {
64
- area: string;
65
- country: string;
66
- line4: string;
67
- city: string;
68
- type: string;
69
- building: string;
70
- zip_code: string;
71
- street: string;
72
- avenue: string;
73
- state: string;
74
- line3: string;
75
- postal_code: string;
76
- line2: string;
77
- line1: string;
78
- apartment: string;
79
28
  }
80
29
  interface Board {
81
- board?: boolean;
82
- board_maturity?: boolean;
30
+ display?: boolean;
31
+ editable?: boolean;
83
32
  }
84
33
  interface Lead {
85
34
  id: string;
86
- country: string;
87
- maturity: boolean;
88
35
  }
89
36
  interface Operator {
90
37
  public_key: string;
91
38
  }
39
+ declare type RecordType = Record<string, any>;
40
+ export interface SettingAsyncData {
41
+ fingerPrint: RecordType;
42
+ locale: RecordType;
43
+ country_list: RecordType;
44
+ ip_info: RecordType;
45
+ merchant: RecordType;
46
+ operator: RecordType;
47
+ config: RecordType;
48
+ }
92
49
  export {};
@@ -15,13 +15,19 @@ export declare type PasswordFormValues = {
15
15
  };
16
16
  export declare type NIDFormValues = {
17
17
  nid: string;
18
- dob: string;
18
+ dob?: any;
19
19
  termAndConditionChecked?: boolean;
20
20
  };
21
+ export declare type DOBFormValues = {
22
+ dob: any;
23
+ };
21
24
  export declare type CivilFormValues = {
22
25
  civilId: string;
23
26
  termAndConditionChecked?: boolean;
24
27
  };
28
+ export declare type AuthEmailFormValues = {
29
+ email: string;
30
+ };
25
31
  export declare type IndividualFormValues = {
26
32
  name: string;
27
33
  email: string;
@@ -154,3 +160,7 @@ export declare type AuthenticationListFormValues = {
154
160
  export declare type AuthMerchantFormValues = {
155
161
  merchantInfo?: AuthMerchantInfo;
156
162
  };
163
+ export declare type MobileOwnershipFormValues = {
164
+ mobile: string;
165
+ countryCode: CountryCode;
166
+ };
@@ -15,4 +15,5 @@ export interface ResponseData {
15
15
  export interface AsyncThunkParams<T> {
16
16
  formData: T;
17
17
  originalFormData: T;
18
+ isDirty: boolean;
18
19
  }
@@ -13,6 +13,6 @@ export declare enum DirectionMode {
13
13
  }
14
14
  export declare type ThemContext = Partial<Theme> | ((outerTheme: Theme) => Theme);
15
15
  export declare enum DialogEdgeFormat {
16
- STRAIGHT = "staight",
16
+ STRAIGHT = "straight",
17
17
  CURVED = "curved"
18
18
  }
@@ -15,6 +15,6 @@ export var DirectionMode;
15
15
  })(DirectionMode || (DirectionMode = {}));
16
16
  export var DialogEdgeFormat;
17
17
  (function (DialogEdgeFormat) {
18
- DialogEdgeFormat["STRAIGHT"] = "staight";
18
+ DialogEdgeFormat["STRAIGHT"] = "straight";
19
19
  DialogEdgeFormat["CURVED"] = "curved";
20
20
  })(DialogEdgeFormat || (DialogEdgeFormat = {}));
@@ -1,3 +1,4 @@
1
+ import { PaymentProvider, SDKNotification } from '../@types';
1
2
  export declare type CreateAccountBody = {
2
3
  lead_id: string;
3
4
  notify: {
@@ -12,10 +13,13 @@ export declare type ExpressCreateAccountBody = {
12
13
  post_url: string;
13
14
  lead_id: string;
14
15
  platforms?: string[];
16
+ payment_provider?: PaymentProvider;
17
+ notification?: SDKNotification;
15
18
  };
16
19
  declare const accountService: {
17
20
  createAccount: (data: CreateAccountBody) => Promise<any>;
18
21
  expressCreateAccount: (data: ExpressCreateAccountBody) => Promise<any>;
19
22
  checkAccountAvailability: (individualId: string) => Promise<any>;
23
+ checkMigrationStatus: (jobId: string) => Promise<any>;
20
24
  };
21
25
  export { accountService };
@@ -1,5 +1,5 @@
1
- import { httpClient } from './axios';
2
1
  import { ENDPOINT_PATHS } from '../constants';
2
+ import { httpClient } from './axios';
3
3
  var createAccount = function (data) {
4
4
  return httpClient({
5
5
  method: 'post',
@@ -20,9 +20,16 @@ var checkAccountAvailability = function (individualId) {
20
20
  url: "".concat(ENDPOINT_PATHS.INDIVIDUAL, "/").concat(individualId, "/accounts")
21
21
  });
22
22
  };
23
+ var checkMigrationStatus = function (jobId) {
24
+ return httpClient({
25
+ method: 'get',
26
+ url: "".concat(ENDPOINT_PATHS.MIGRATION_STATUS, "/").concat(jobId)
27
+ });
28
+ };
23
29
  var accountService = {
24
30
  createAccount: createAccount,
25
31
  expressCreateAccount: expressCreateAccount,
26
- checkAccountAvailability: checkAccountAvailability
32
+ checkAccountAvailability: checkAccountAvailability,
33
+ checkMigrationStatus: checkMigrationStatus
27
34
  };
28
35
  export { accountService };
@@ -1,5 +1,5 @@
1
1
  import { AxiosRequestConfig } from 'axios';
2
- import { LanguageMode } from '../@types';
2
+ import { ConfigInfo, LanguageMode } from '../@types';
3
3
  export declare type MobileCredential = {
4
4
  code: string;
5
5
  phone: string;
@@ -29,6 +29,37 @@ export declare type CreateAuthBody = {
29
29
  encryption_contract: Array<string>;
30
30
  lang?: LanguageMode;
31
31
  lead_id?: string;
32
+ board_id?: string;
33
+ user_id?: string;
34
+ };
35
+ export declare type CreateNafathAuthBody = {
36
+ country: string;
37
+ scope: string;
38
+ user_credentail: IDCredential;
39
+ auth_type?: number;
40
+ email_url?: string;
41
+ sign_in?: boolean;
42
+ is_lead?: boolean;
43
+ step_name?: string;
44
+ encryption_contract: Array<string>;
45
+ lang?: LanguageMode;
46
+ lead_id?: string;
47
+ board_id?: string;
48
+ user_id?: string;
49
+ };
50
+ export declare type CreateKYCAuthBody = {
51
+ country: string;
52
+ scope: string;
53
+ auth_type?: number;
54
+ email_url?: string;
55
+ sign_in?: boolean;
56
+ is_lead?: boolean;
57
+ step_name?: string;
58
+ encryption_contract: Array<string>;
59
+ lang?: LanguageMode;
60
+ lead_id?: string;
61
+ board_id?: string;
62
+ user_id?: string;
32
63
  };
33
64
  export declare type VerifyAuthBody = {
34
65
  auth_token: string;
@@ -39,6 +70,7 @@ export declare type VerifyAuthBody = {
39
70
  service_name: string;
40
71
  new_user?: boolean;
41
72
  sign_in: boolean;
73
+ is_lead?: boolean;
42
74
  encryption_contract: Array<string>;
43
75
  remember_me?: boolean;
44
76
  lead_id?: string;
@@ -84,26 +116,9 @@ export declare type getExpressTokenVerifyParams = {
84
116
  token: string;
85
117
  leadId: string;
86
118
  };
87
- export declare type ConfigBody = {
88
- board: boolean;
89
- public_key: string;
90
- domain: string;
91
- language: string;
92
- country: string;
93
- scope: string;
94
- lead_id: string;
95
- maturity: boolean;
96
- board_maturity?: boolean;
97
- notification?: {
98
- email: boolean;
99
- sms: boolean;
100
- };
101
- post?: {
102
- url: string;
103
- };
104
- };
119
+ export declare type ConfigBody = Pick<ConfigInfo, 'scope' | 'data' | 'lead' | 'board' | 'interface' | 'redirect' | 'post'>;
105
120
  declare const authService: {
106
- createAuth: (data: CreateAuthBody, config?: AxiosRequestConfig) => Promise<any>;
121
+ createAuth: (data: CreateAuthBody | CreateKYCAuthBody, config?: AxiosRequestConfig) => Promise<any>;
107
122
  verifyAuth: (data: VerifyAuthBody | VerifyOperationAuthBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
108
123
  createPassword: (data: CreatePasswordBody) => Promise<any>;
109
124
  verifyExpressAuth: (data: VerifyAuthExpressOTPBody) => Promise<any>;
package/build/api/auth.js CHANGED
@@ -71,7 +71,7 @@ var createAuthKitNID = function (data) {
71
71
  var generateConfigToken = function (body) {
72
72
  return httpClient({
73
73
  method: 'post',
74
- url: ENDPOINT_PATHS.CONNECT,
74
+ url: ENDPOINT_PATHS.CREATE_CONNECT,
75
75
  data: body
76
76
  });
77
77
  };
@@ -4,14 +4,11 @@ declare type GetOccupationBody = {
4
4
  };
5
5
  declare type GetSegmentsBody = {
6
6
  page: number;
7
+ limit: number;
7
8
  };
8
9
  declare type GetTeamSizeBody = {
9
10
  page: number;
10
11
  };
11
- declare type SegmentDataListBody = {
12
- page: number;
13
- limit: number;
14
- };
15
12
  declare type GetMonthlyIncomeBody = {
16
13
  page: number;
17
14
  country_code: Array<string>;
@@ -23,14 +20,9 @@ export declare type DataElementBody = {
23
20
  ar: string;
24
21
  };
25
22
  };
26
- declare type GetCustomerBasesBody = {
27
- page: number;
28
- };
29
- declare type GetExpectedSalesBody = {
30
- page: number;
31
- };
32
- declare type GetExpectedCustomerSalesBody = {
23
+ declare type GetBrandOperationsBody = {
33
24
  page: number;
25
+ country_code: string[];
34
26
  };
35
27
  declare type GetSourceOfIncomeBody = {
36
28
  page: number;
@@ -40,9 +32,7 @@ declare type GetChannelsOfServicesBody = {
40
32
  };
41
33
  declare const dataService: {
42
34
  getChannelsOfServices: (data: GetChannelsOfServicesBody) => Promise<any>;
43
- getCustomerBases: (data: GetCustomerBasesBody) => Promise<any>;
44
- getExpectedSales: (data: GetExpectedSalesBody) => Promise<any>;
45
- getExpectedCustomerSales: (data: GetExpectedCustomerSalesBody) => Promise<any>;
35
+ getBrandOperations: (data: GetBrandOperationsBody) => Promise<any>;
46
36
  getSourceOfIncome: (data: GetSourceOfIncomeBody) => Promise<any>;
47
37
  getMonthlyIncome: (data: GetMonthlyIncomeBody) => Promise<any>;
48
38
  getOccupation: (data: GetOccupationBody) => Promise<any>;
@@ -50,8 +40,5 @@ declare const dataService: {
50
40
  getTeamSize: (data: GetTeamSizeBody) => Promise<any>;
51
41
  getActivities: (config?: AxiosRequestConfig) => Promise<any>;
52
42
  getActivitiesIsIc: () => Promise<any>;
53
- getSegmentLocation: (data: SegmentDataListBody) => Promise<any>;
54
- getSegmentProfit: (data: SegmentDataListBody) => Promise<any>;
55
- getSegmentTech: (data: SegmentDataListBody) => Promise<any>;
56
43
  };
57
44
  export { dataService };
package/build/api/data.js CHANGED
@@ -18,24 +18,10 @@ var getChannelsOfServices = function (data) {
18
18
  data: data
19
19
  });
20
20
  };
21
- var getCustomerBases = function (data) {
21
+ var getBrandOperations = function (data) {
22
22
  return httpClient({
23
23
  method: 'post',
24
- url: "".concat(ENDPOINT_PATHS.CUSTOMER_BASES),
25
- data: data
26
- });
27
- };
28
- var getExpectedSales = function (data) {
29
- return httpClient({
30
- method: 'post',
31
- url: "".concat(ENDPOINT_PATHS.SALES),
32
- data: data
33
- });
34
- };
35
- var getExpectedCustomerSales = function (data) {
36
- return httpClient({
37
- method: 'post',
38
- url: "".concat(ENDPOINT_PATHS.EXPECTED_CUSTOMERS),
24
+ url: "".concat(ENDPOINT_PATHS.BRAND_OPERATIONS),
39
25
  data: data
40
26
  });
41
27
  };
@@ -73,7 +59,7 @@ var getActivitiesIsIc = function () {
73
59
  var getSegments = function (data) {
74
60
  return httpClient({
75
61
  method: 'post',
76
- url: "".concat(ENDPOINT_PATHS.SEGMENTS_PATH),
62
+ url: "".concat(ENDPOINT_PATHS.SEGMENT_LIST),
77
63
  data: data
78
64
  });
79
65
  };
@@ -84,41 +70,15 @@ var getTeamSize = function (data) {
84
70
  data: data
85
71
  });
86
72
  };
87
- var getSegmentLocation = function (data) {
88
- return httpClient({
89
- method: 'post',
90
- url: "".concat(ENDPOINT_PATHS.SEGMENT_LOCATION, "/list"),
91
- data: data
92
- });
93
- };
94
- var getSegmentProfit = function (data) {
95
- return httpClient({
96
- method: 'post',
97
- url: "".concat(ENDPOINT_PATHS.SEGMENT_PROFIT, "/list"),
98
- data: data
99
- });
100
- };
101
- var getSegmentTech = function (data) {
102
- return httpClient({
103
- method: 'post',
104
- url: "".concat(ENDPOINT_PATHS.SEGMENT_TECH, "/list"),
105
- data: data
106
- });
107
- };
108
73
  var dataService = {
109
74
  getChannelsOfServices: getChannelsOfServices,
110
- getCustomerBases: getCustomerBases,
111
- getExpectedSales: getExpectedSales,
112
- getExpectedCustomerSales: getExpectedCustomerSales,
75
+ getBrandOperations: getBrandOperations,
113
76
  getSourceOfIncome: getSourceOfIncome,
114
77
  getMonthlyIncome: getMonthlyIncome,
115
78
  getOccupation: getOccupation,
116
79
  getSegments: getSegments,
117
80
  getTeamSize: getTeamSize,
118
81
  getActivities: getActivities,
119
- getActivitiesIsIc: getActivitiesIsIc,
120
- getSegmentLocation: getSegmentLocation,
121
- getSegmentProfit: getSegmentProfit,
122
- getSegmentTech: getSegmentTech
82
+ getActivitiesIsIc: getActivitiesIsIc
123
83
  };
124
84
  export { dataService };
@@ -1,4 +1,5 @@
1
1
  import { AxiosRequestConfig } from 'axios';
2
+ import { PaymentProvider } from '../@types';
2
3
  export declare type EntityInfoBody = {
3
4
  id: string;
4
5
  lead_id?: string;
@@ -117,8 +118,10 @@ export declare type RemoveEntityActivity = {
117
118
  export declare type MerchantListBody = {
118
119
  business_entity_id: string;
119
120
  brand_id: string;
121
+ lead_id?: string;
120
122
  create_if_not_present: boolean;
121
123
  platforms?: Array<string>;
124
+ payment_provider?: PaymentProvider;
122
125
  };
123
126
  export declare type CreateEntityBody = {
124
127
  business_id: string;
@@ -137,8 +140,8 @@ export declare type CreateEntityBody = {
137
140
  };
138
141
  declare const entityService: {
139
142
  createEntityInfo: ({ id, ...data }: EntityInfoBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
140
- updateEntityInfo: ({ id, ...data }: EntityInfoBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
141
- createBankAccount: (data: EntityBankUpdateBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
143
+ updateEntityInfo: ({ id, ...data }: EntityInfoBody) => Promise<any>;
144
+ createBankAccount: (data: EntityBankUpdateBody) => Promise<any>;
142
145
  retrieveBankAccount: (id: string) => Promise<any>;
143
146
  retrieveEntityInfo: (entity_id: string, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
144
147
  updateIndividualInfo: ({ id, ...data }: EntityInfoBody) => Promise<any>;
@@ -18,9 +18,13 @@ var createEntityInfo = function (_a, config) {
18
18
  var id = _a.id, data = __rest(_a, ["id"]);
19
19
  return instance.post("".concat(ENDPOINT_PATHS.ENTITY, "/").concat(id, "/info"), data, config);
20
20
  };
21
- var updateEntityInfo = function (_a, config) {
21
+ var updateEntityInfo = function (_a) {
22
22
  var id = _a.id, data = __rest(_a, ["id"]);
23
- return instance.put("".concat(ENDPOINT_PATHS.ENTITY, "/").concat(id), data, config);
23
+ return httpClient({
24
+ method: 'put',
25
+ url: "".concat(ENDPOINT_PATHS.ENTITY, "/").concat(id),
26
+ data: data
27
+ });
24
28
  };
25
29
  var retrieveEntity = function (entity_id) {
26
30
  return httpClient({
@@ -52,8 +56,12 @@ var updateEntityCapital = function (_a) {
52
56
  data: data
53
57
  });
54
58
  };
55
- var createBankAccount = function (data, config) {
56
- return instance.put("".concat(ENDPOINT_PATHS.BANK), data, config);
59
+ var createBankAccount = function (data) {
60
+ return httpClient({
61
+ method: 'put',
62
+ url: "".concat(ENDPOINT_PATHS.BANK),
63
+ data: data
64
+ });
57
65
  };
58
66
  var retrieveBankAccount = function (id) {
59
67
  return httpClient({