@tap-payments/auth-jsconnect 2.3.99-test → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (493) hide show
  1. package/README.md +1 -1
  2. package/build/@types/app.d.ts +266 -15
  3. package/build/@types/app.js +7 -0
  4. package/build/@types/form.d.ts +31 -23
  5. package/build/@types/theme.d.ts +1 -1
  6. package/build/@types/user.d.ts +39 -3
  7. package/build/api/account.d.ts +2 -2
  8. package/build/api/auth.d.ts +12 -11
  9. package/build/api/auth.js +5 -1
  10. package/build/api/availabilityServices.d.ts +3 -3
  11. package/build/api/axios.js +1 -1
  12. package/build/api/board.d.ts +3 -3
  13. package/build/api/brand.d.ts +1 -1
  14. package/build/api/country.d.ts +2 -1
  15. package/build/api/country.js +8 -1
  16. package/build/api/data.d.ts +17 -10
  17. package/build/api/data.js +26 -2
  18. package/build/api/document.d.ts +2 -2
  19. package/build/api/entity.d.ts +13 -8
  20. package/build/api/entity.js +32 -1
  21. package/build/api/file.d.ts +1 -1
  22. package/build/api/index.d.ts +26 -5
  23. package/build/api/individual.d.ts +29 -11
  24. package/build/api/individual.js +9 -1
  25. package/build/api/init.d.ts +2 -1
  26. package/build/api/lead.d.ts +15 -10
  27. package/build/api/lead.js +58 -1
  28. package/build/api/operator.d.ts +10 -1
  29. package/build/api/operator.js +10 -2
  30. package/build/api/user.d.ts +2 -2
  31. package/build/app/rootReducer.d.ts +1 -0
  32. package/build/app/rootReducer.js +3 -1
  33. package/build/app/settings.d.ts +37 -3
  34. package/build/app/settings.js +116 -39
  35. package/build/app/store.d.ts +6 -4
  36. package/build/assets/locales/ar.json +24 -1
  37. package/build/assets/locales/en.json +24 -1
  38. package/build/components/AnimationFlow/AnimationFlow.d.ts +2 -1
  39. package/build/components/AnimationFlow/AnimationFlow.js +3 -3
  40. package/build/components/AnimationFlow/BottomSheet.js +26 -5
  41. package/build/components/AnimationFlow/Dialog.d.ts +2 -1
  42. package/build/components/AnimationFlow/Dialog.js +2 -2
  43. package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +5 -2
  44. package/build/components/ArabicDatePicker/ArabicDatePicker.js +45 -23
  45. package/build/components/ArabicDatePicker/arabicAr.d.ts +8 -0
  46. package/build/components/ArabicDatePicker/arabicAr.js +32 -0
  47. package/build/components/ArabicDatePicker/arabicEn.d.ts +8 -0
  48. package/build/components/ArabicDatePicker/arabicEn.js +32 -0
  49. package/build/components/ArabicDatePicker/style.css +45 -5
  50. package/build/components/DatePicker/DatePicker.d.ts +3 -1
  51. package/build/components/DatePicker/DatePicker.js +23 -17
  52. package/build/components/ExpandIcon/ExpandIcon.d.ts +2 -0
  53. package/build/components/SimpleList/SimpleList.d.ts +2 -1
  54. package/build/components/SimpleList/SimpleList.js +12 -9
  55. package/build/components/Slide/Slide.d.ts +1 -1
  56. package/build/constants/api.d.ts +9 -0
  57. package/build/constants/api.js +18 -1
  58. package/build/constants/app.d.ts +9 -1
  59. package/build/constants/app.js +84 -16
  60. package/build/constants/assets.d.ts +4 -0
  61. package/build/constants/assets.js +4 -0
  62. package/build/constants/dummy.d.ts +62 -0
  63. package/build/constants/dummy.js +603 -0
  64. package/build/constants/validation.d.ts +2 -2
  65. package/build/constants/validation.js +3 -3
  66. package/build/features/app/bank/bankStore.d.ts +94 -10
  67. package/build/features/app/bank/bankStore.js +110 -54
  68. package/build/features/app/board/boardStore.d.ts +66 -0
  69. package/build/features/app/board/boardStore.js +223 -0
  70. package/build/features/app/brand/brandStore.d.ts +161 -18
  71. package/build/features/app/brand/brandStore.js +295 -145
  72. package/build/features/app/business/businessStore.d.ts +171 -18
  73. package/build/features/app/business/businessStore.js +297 -198
  74. package/build/features/app/connect/connectStore.d.ts +180 -14
  75. package/build/features/app/connect/connectStore.js +342 -95
  76. package/build/features/app/connectExpress/connectExpressStore.d.ts +273 -25
  77. package/build/features/app/connectExpress/connectExpressStore.js +453 -71
  78. package/build/features/app/entity/entityStore.d.ts +98 -10
  79. package/build/features/app/entity/entityStore.js +150 -75
  80. package/build/features/app/individual/individualStore.d.ts +200 -28
  81. package/build/features/app/individual/individualStore.js +346 -222
  82. package/build/features/app/password/passwordStore.d.ts +114 -12
  83. package/build/features/app/password/passwordStore.js +113 -43
  84. package/build/features/app/signIn/signInStore.d.ts +61 -7
  85. package/build/features/app/signIn/signInStore.js +1 -1
  86. package/build/features/app/tax/taxStore.d.ts +83 -9
  87. package/build/features/app/tax/taxStore.js +97 -48
  88. package/build/features/bank/Bank.d.ts +1 -0
  89. package/build/features/bank/Bank.js +11 -6
  90. package/build/features/bank/screens/BankDetails/BankDetails.js +19 -14
  91. package/build/features/bank/screens/BankDetails/BankName.d.ts +3 -2
  92. package/build/features/bank/screens/BankDetails/BankName.js +4 -5
  93. package/build/features/bank/screens/BankDetails/BankStatement.d.ts +3 -2
  94. package/build/features/bank/screens/BankDetails/BankStatement.js +5 -4
  95. package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +2 -1
  96. package/build/features/bank/screens/BankDetails/Beneficiary.js +8 -10
  97. package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +1 -1
  98. package/build/features/bank/screens/BankDetails/IBAN.d.ts +2 -1
  99. package/build/features/bank/screens/BankDetails/IBAN.js +4 -6
  100. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
  101. package/build/features/bank/screens/Verify/OTPInput.js +3 -1
  102. package/build/features/bank/screens/Verify/Verify.js +2 -2
  103. package/build/features/board/Board.d.ts +10 -0
  104. package/build/features/board/Board.js +74 -0
  105. package/build/features/board/index.d.ts +1 -0
  106. package/build/features/board/index.js +1 -0
  107. package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
  108. package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +21 -0
  109. package/build/features/board/screens/ResetPasswordSuccess/index.d.ts +3 -0
  110. package/build/features/board/screens/ResetPasswordSuccess/index.js +2 -0
  111. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
  112. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +35 -0
  113. package/build/features/board/screens/SuccessWithFlowButtons/index.d.ts +2 -0
  114. package/build/features/board/screens/SuccessWithFlowButtons/index.js +2 -0
  115. package/build/features/board/screens/Verify/OTPInput.d.ts +7 -0
  116. package/build/features/board/screens/Verify/OTPInput.js +51 -0
  117. package/build/features/board/screens/Verify/Verify.d.ts +5 -0
  118. package/build/features/board/screens/Verify/Verify.js +74 -0
  119. package/build/features/board/screens/Verify/index.d.ts +2 -0
  120. package/build/features/board/screens/Verify/index.js +2 -0
  121. package/build/features/board/screens/Verify/validation.d.ts +8 -0
  122. package/build/features/board/screens/Verify/validation.js +4 -0
  123. package/build/features/brand/Brand.d.ts +1 -0
  124. package/build/features/brand/Brand.js +11 -6
  125. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +6 -20
  126. package/build/features/brand/screens/BrandActivities/ActivitiesList.js +26 -23
  127. package/build/features/brand/screens/BrandActivities/BrandActivities.js +31 -8
  128. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +7 -30
  129. package/build/features/brand/screens/BrandActivities/CustomerBase.js +13 -25
  130. package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +2 -1
  131. package/build/features/brand/screens/BrandActivities/ExpectedCustomers.js +12 -13
  132. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +2 -1
  133. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +22 -23
  134. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +5 -5
  135. package/build/features/brand/screens/BrandActivities/RefundPolicy.js +3 -3
  136. package/build/features/brand/screens/BrandActivities/TAC.d.ts +3 -4
  137. package/build/features/brand/screens/BrandActivities/TAC.js +3 -3
  138. package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +1 -1
  139. package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +3 -3
  140. package/build/features/brand/screens/BrandActivities/validation.d.ts +36 -36
  141. package/build/features/brand/screens/BrandActivities/validation.js +5 -10
  142. package/build/features/brand/screens/BrandInfo/BrandInfo.js +18 -31
  143. package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +3 -3
  144. package/build/features/brand/screens/BrandInfo/BrandLogo.js +3 -14
  145. package/build/features/brand/screens/BrandInfo/BrandName.d.ts +2 -2
  146. package/build/features/brand/screens/BrandInfo/BrandName.js +4 -7
  147. package/build/features/brand/screens/BrandInfo/SalesChannels.js +17 -6
  148. package/build/features/brand/screens/BrandInfo/validation.d.ts +21 -6
  149. package/build/features/brand/screens/BrandInfo/validation.js +9 -8
  150. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.d.ts +5 -0
  151. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +103 -0
  152. package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.d.ts +10 -0
  153. package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.js +69 -0
  154. package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.d.ts +10 -0
  155. package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.js +69 -0
  156. package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.d.ts +10 -0
  157. package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.js +69 -0
  158. package/build/features/brand/screens/{BrandInfo → BrandSegmentInfo}/TeamSize.d.ts +2 -1
  159. package/build/features/brand/screens/{BrandInfo → BrandSegmentInfo}/TeamSize.js +18 -33
  160. package/build/features/brand/screens/BrandSegmentInfo/index.d.ts +2 -0
  161. package/build/features/brand/screens/BrandSegmentInfo/index.js +2 -0
  162. package/build/features/brand/screens/BrandSegmentInfo/validation.d.ts +17 -0
  163. package/build/features/brand/screens/BrandSegmentInfo/validation.js +9 -0
  164. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
  165. package/build/features/brand/screens/Verify/OTPInput.js +3 -1
  166. package/build/features/brand/screens/Verify/Verify.js +2 -2
  167. package/build/features/business/Business.js +4 -1
  168. package/build/features/business/screens/Activities/Activities.js +2 -1
  169. package/build/features/business/screens/Activities/ActivitiesList.d.ts +13 -61
  170. package/build/features/business/screens/Activities/ActivitiesList.js +226 -103
  171. package/build/features/business/screens/Activities/OperationStartDate.d.ts +1 -1
  172. package/build/features/business/screens/Activities/OperationStartDate.js +2 -2
  173. package/build/features/business/screens/Activities/validation.d.ts +165 -30
  174. package/build/features/business/screens/Activities/validation.js +5 -2
  175. package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +1 -1
  176. package/build/features/business/screens/BusinessType/Article.d.ts +1 -1
  177. package/build/features/business/screens/BusinessType/BusinessType.js +14 -6
  178. package/build/features/business/screens/BusinessType/EntityLicenseList.js +3 -6
  179. package/build/features/business/screens/BusinessType/EntityName.js +4 -5
  180. package/build/features/business/screens/BusinessType/LicenseList.js +6 -9
  181. package/build/features/business/screens/BusinessType/LicenseNumber.js +10 -9
  182. package/build/features/business/screens/BusinessType/LicenseType.d.ts +3 -3
  183. package/build/features/business/screens/BusinessType/validation.d.ts +10 -0
  184. package/build/features/business/screens/BusinessType/validation.js +18 -2
  185. package/build/features/business/screens/CivilID/CivilID.js +2 -1
  186. package/build/features/business/screens/CivilID/IDNumber.js +2 -3
  187. package/build/features/business/screens/Customers/CustomerLocations.d.ts +41 -29
  188. package/build/features/business/screens/Customers/CustomerLocations.js +35 -19
  189. package/build/features/business/screens/Customers/Customers.js +29 -17
  190. package/build/features/business/screens/Customers/ExpectedCustomers.js +8 -10
  191. package/build/features/business/screens/Customers/ExpectedSalesRange.js +13 -15
  192. package/build/features/business/screens/Customers/RefundPolicy.d.ts +4 -4
  193. package/build/features/business/screens/Customers/RefundPolicy.js +15 -4
  194. package/build/features/business/screens/Customers/TransactionPolicy.js +19 -9
  195. package/build/features/business/screens/IDBOD/DOB.js +2 -2
  196. package/build/features/business/screens/IDBOD/ID.js +7 -4
  197. package/build/features/business/screens/IDBOD/IDBOD.js +9 -17
  198. package/build/features/business/screens/IDBOD/validation.d.ts +10 -0
  199. package/build/features/business/screens/IDBOD/validation.js +4 -0
  200. package/build/features/business/screens/OTP/OTP.js +2 -2
  201. package/build/features/business/screens/OTP/OTPInput.js +5 -2
  202. package/build/features/business/screens/Verify/OTPInput.js +3 -1
  203. package/build/features/business/screens/Verify/Verify.js +2 -2
  204. package/build/features/connect/Connect.d.ts +2 -0
  205. package/build/features/connect/Connect.js +95 -13
  206. package/build/features/connect/screens/BrandSegment/BrandSegment.d.ts +5 -0
  207. package/build/features/connect/screens/BrandSegment/BrandSegment.js +84 -0
  208. package/build/features/connect/screens/BrandSegment/SegmentLocations.d.ts +8 -0
  209. package/build/features/{brand/screens/BrandInfo/Segments.js → connect/screens/BrandSegment/SegmentLocations.js} +19 -37
  210. package/build/features/connect/screens/BrandSegment/SegmentProfits.d.ts +8 -0
  211. package/build/features/connect/screens/{Merchant/Segments.js → BrandSegment/SegmentProfits.js} +17 -30
  212. package/build/features/connect/screens/BrandSegment/SegmentTechs.d.ts +8 -0
  213. package/build/features/connect/screens/BrandSegment/SegmentTechs.js +66 -0
  214. package/build/features/connect/screens/{Merchant → BrandSegment}/TeamSize.js +12 -25
  215. package/build/features/connect/screens/BrandSegment/index.d.ts +3 -0
  216. package/build/features/connect/screens/BrandSegment/index.js +2 -0
  217. package/build/features/connect/screens/BrandSegment/validation.d.ts +17 -0
  218. package/build/features/connect/screens/BrandSegment/validation.js +9 -0
  219. package/build/features/connect/screens/BusinessCountry/BusinessCountry.d.ts +5 -0
  220. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +103 -0
  221. package/build/features/connect/screens/BusinessCountry/index.d.ts +3 -0
  222. package/build/features/connect/screens/BusinessCountry/index.js +2 -0
  223. package/build/features/connect/screens/CivilID/CivilID.js +12 -16
  224. package/build/features/connect/screens/CivilID/IDNumber.js +5 -6
  225. package/build/features/connect/screens/Individual/Email.js +9 -11
  226. package/build/features/connect/screens/Individual/Individual.js +9 -2
  227. package/build/features/connect/screens/Individual/MobileNumber.js +6 -9
  228. package/build/features/connect/screens/Individual/Name.js +11 -15
  229. package/build/features/connect/screens/Merchant/BrandList.js +4 -22
  230. package/build/features/connect/screens/Merchant/BrandName.js +3 -5
  231. package/build/features/connect/screens/Merchant/Merchant.js +13 -16
  232. package/build/features/connect/screens/Merchant/SalesChannels.js +6 -6
  233. package/build/features/connect/screens/Merchant/validation.d.ts +0 -6
  234. package/build/features/connect/screens/Merchant/validation.js +8 -12
  235. package/build/features/connect/screens/Mobile/Mobile.js +23 -22
  236. package/build/features/connect/screens/Mobile/MobileNumber.js +22 -15
  237. package/build/features/connect/screens/NID/DOB.js +3 -3
  238. package/build/features/connect/screens/NID/IDNumber.js +6 -7
  239. package/build/features/connect/screens/NID/NID.js +17 -4
  240. package/build/features/connect/screens/OTP/OTP.js +14 -16
  241. package/build/features/connect/screens/OTP/OTPInput.js +14 -2
  242. package/build/features/connect/screens/ThankYou/ThankYou.js +17 -2
  243. package/build/features/connectExpress/ConnectExpress.d.ts +1 -1
  244. package/build/features/connectExpress/ConnectExpress.js +87 -17
  245. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.d.ts +5 -0
  246. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +93 -0
  247. package/build/features/connectExpress/screens/AuthenticationList/BrandList.d.ts +10 -0
  248. package/build/features/connectExpress/screens/AuthenticationList/BrandList.js +81 -0
  249. package/build/features/connectExpress/screens/AuthenticationList/EntityList.d.ts +11 -0
  250. package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +96 -0
  251. package/build/features/connectExpress/screens/AuthenticationList/MerchantList.d.ts +10 -0
  252. package/build/features/connectExpress/screens/AuthenticationList/MerchantList.js +107 -0
  253. package/build/features/connectExpress/screens/AuthenticationList/index.d.ts +3 -0
  254. package/build/features/connectExpress/screens/AuthenticationList/index.js +2 -0
  255. package/build/features/connectExpress/screens/AuthenticationList/validation.d.ts +14 -0
  256. package/build/features/connectExpress/screens/AuthenticationList/validation.js +8 -0
  257. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.d.ts +5 -0
  258. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +105 -0
  259. package/build/features/connectExpress/screens/BusinessCountry/index.d.ts +3 -0
  260. package/build/features/connectExpress/screens/BusinessCountry/index.js +2 -0
  261. package/build/features/connectExpress/screens/CivilID/CivilID.js +11 -4
  262. package/build/features/connectExpress/screens/CivilID/IDNumber.js +12 -8
  263. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +2 -1
  264. package/build/features/connectExpress/screens/CivilIDMissed/IDNumber.js +6 -7
  265. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +4 -6
  266. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +13 -5
  267. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +10 -12
  268. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +9 -8
  269. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +3 -3
  270. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +2 -2
  271. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +13 -0
  272. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +71 -4
  273. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +6 -2
  274. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +3 -5
  275. package/build/features/connectExpress/screens/CollectIndividualInfo/Name.js +2 -3
  276. package/build/features/connectExpress/screens/IdentityOTP/OTP.js +4 -4
  277. package/build/features/connectExpress/screens/IdentityOTP/OTPInput.js +5 -3
  278. package/build/features/connectExpress/screens/Mobile/Mobile.js +9 -5
  279. package/build/features/connectExpress/screens/Mobile/MobileNumber.js +9 -6
  280. package/build/features/connectExpress/screens/Mobile/TAC.js +1 -1
  281. package/build/features/connectExpress/screens/NID/DOB.js +2 -2
  282. package/build/features/connectExpress/screens/NID/IDNumber.js +2 -3
  283. package/build/features/connectExpress/screens/NID/NID.js +7 -3
  284. package/build/features/connectExpress/screens/NID/TAC.d.ts +2 -2
  285. package/build/features/connectExpress/screens/NIDMissed/DOB.js +2 -2
  286. package/build/features/connectExpress/screens/NIDMissed/IDNumber.js +7 -4
  287. package/build/features/connectExpress/screens/NIDMissed/NID.js +7 -4
  288. package/build/features/connectExpress/screens/NIDMissed/validation.d.ts +10 -0
  289. package/build/features/connectExpress/screens/NIDMissed/validation.js +4 -0
  290. package/build/features/connectExpress/screens/OTP/OTP.js +3 -3
  291. package/build/features/connectExpress/screens/OTP/OTPInput.js +4 -2
  292. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +15 -6
  293. package/build/features/entity/Entity.d.ts +1 -0
  294. package/build/features/entity/Entity.js +11 -6
  295. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +3 -16
  296. package/build/features/entity/screens/EntityCapital/ActivityList.js +53 -35
  297. package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +2 -1
  298. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +8 -15
  299. package/build/features/entity/screens/EntityCapital/CapitalShareCount.d.ts +2 -1
  300. package/build/features/entity/screens/EntityCapital/CapitalShareCount.js +7 -12
  301. package/build/features/entity/screens/EntityCapital/CapitalShareValue.d.ts +2 -1
  302. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +9 -16
  303. package/build/features/entity/screens/EntityCapital/EntityCapital.js +14 -6
  304. package/build/features/entity/screens/EntityCapital/validation.d.ts +90 -90
  305. package/build/features/entity/screens/EntityCapital/validation.js +2 -2
  306. package/build/features/entity/screens/EntityName/Article.d.ts +3 -2
  307. package/build/features/entity/screens/EntityName/Article.js +3 -2
  308. package/build/features/entity/screens/EntityName/EntityName.js +45 -16
  309. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +8 -20
  310. package/build/features/entity/screens/EntityName/EntityTypeList.js +16 -24
  311. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +3 -2
  312. package/build/features/entity/screens/EntityName/ExpiryDate.js +4 -5
  313. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +3 -2
  314. package/build/features/entity/screens/EntityName/IssuingDate.js +4 -5
  315. package/build/features/entity/screens/EntityName/LegalName.d.ts +2 -1
  316. package/build/features/entity/screens/EntityName/LegalName.js +3 -4
  317. package/build/features/entity/screens/EntityName/LicenseCertificate.js +8 -2
  318. package/build/features/entity/screens/EntityName/LicenseNumber.d.ts +2 -1
  319. package/build/features/entity/screens/EntityName/LicenseNumber.js +10 -10
  320. package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +2 -1
  321. package/build/features/entity/screens/EntityName/UnifiedNumber.js +3 -4
  322. package/build/features/entity/screens/EntityName/validation.d.ts +28 -0
  323. package/build/features/entity/screens/EntityName/validation.js +40 -2
  324. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
  325. package/build/features/entity/screens/Verify/OTPInput.js +3 -1
  326. package/build/features/entity/screens/Verify/Verify.js +2 -2
  327. package/build/features/featuresScreens.d.ts +1 -0
  328. package/build/features/featuresScreens.js +42 -0
  329. package/build/features/individual/Individual.d.ts +1 -0
  330. package/build/features/individual/Individual.js +11 -6
  331. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +1 -1
  332. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +36 -25
  333. package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +1 -1
  334. package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.js +10 -4
  335. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +2 -1
  336. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +13 -10
  337. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +19 -30
  338. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -2
  339. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +87 -48
  340. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +4 -3
  341. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +12 -9
  342. package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.js +2 -1
  343. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +6 -7
  344. package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.js +9 -3
  345. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +17 -27
  346. package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +7 -7
  347. package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +8 -7
  348. package/build/features/individual/screens/IndividualList/Email.js +1 -1
  349. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +2 -2
  350. package/build/features/individual/screens/IndividualList/UserList.js +10 -6
  351. package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.d.ts +1 -0
  352. package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.js +6 -22
  353. package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.d.ts +1 -0
  354. package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.js +6 -22
  355. package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +2 -1
  356. package/build/features/individual/screens/IndividualPersonalInfo/DOB.js +3 -3
  357. package/build/features/individual/screens/IndividualPersonalInfo/Email.d.ts +2 -1
  358. package/build/features/individual/screens/IndividualPersonalInfo/Email.js +3 -8
  359. package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +2 -1
  360. package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.js +3 -4
  361. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +5 -4
  362. package/build/features/individual/screens/IndividualPersonalInfo/Gender.js +3 -2
  363. package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +2 -1
  364. package/build/features/individual/screens/IndividualPersonalInfo/ID.js +8 -6
  365. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +1 -1
  366. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +56 -37
  367. package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.d.ts +1 -0
  368. package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.js +7 -24
  369. package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.d.ts +1 -0
  370. package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +5 -8
  371. package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +2 -1
  372. package/build/features/individual/screens/IndividualPersonalInfo/Name.js +3 -10
  373. package/build/features/individual/screens/IndividualPersonalInfo/Nationality.d.ts +1 -0
  374. package/build/features/individual/screens/IndividualPersonalInfo/Nationality.js +7 -24
  375. package/build/features/individual/screens/IndividualPersonalInfo/validation.d.ts +1 -1
  376. package/build/features/individual/screens/IndividualPersonalInfo/validation.js +67 -63
  377. package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.js +2 -1
  378. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
  379. package/build/features/individual/screens/Verify/OTPInput.js +3 -1
  380. package/build/features/individual/screens/Verify/Verify.js +2 -2
  381. package/build/features/password/Password.d.ts +1 -0
  382. package/build/features/password/Password.js +20 -5
  383. package/build/features/password/screens/CreatePassword/CreatePassword.js +3 -2
  384. package/build/features/password/screens/OTP/OTP.js +2 -2
  385. package/build/features/password/screens/OTP/OTPInput.js +5 -2
  386. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
  387. package/build/features/password/screens/Verify/OTPInput.js +3 -1
  388. package/build/features/password/screens/Verify/Verify.js +2 -2
  389. package/build/features/shared/Address/CountryList.d.ts +6 -6
  390. package/build/features/shared/Address/InputSelect.d.ts +6 -6
  391. package/build/features/shared/Address/InputSelect.js +1 -1
  392. package/build/features/shared/BusinessCountry/BusinessCountry.d.ts +15 -0
  393. package/build/features/shared/BusinessCountry/BusinessCountry.js +179 -0
  394. package/build/features/shared/BusinessCountry/index.d.ts +2 -0
  395. package/build/features/shared/BusinessCountry/index.js +2 -0
  396. package/build/features/shared/Button/EmailProvidersButtons.d.ts +1 -1
  397. package/build/features/shared/Button/EmailProvidersButtons.js +9 -2
  398. package/build/features/shared/Button/FlowsButtons.d.ts +4 -2
  399. package/build/features/shared/Button/FlowsButtons.js +17 -13
  400. package/build/features/shared/Button/IndividualActionButtons.d.ts +4 -2
  401. package/build/features/shared/Button/IndividualActionButtons.js +26 -2
  402. package/build/features/shared/Calender/Calender.d.ts +13 -0
  403. package/build/features/shared/Calender/Calender.js +56 -0
  404. package/build/features/shared/Calender/index.d.ts +2 -0
  405. package/build/features/shared/Calender/index.js +2 -0
  406. package/build/features/shared/CheckIcon/CheckIcon.d.ts +7 -1
  407. package/build/features/shared/CheckIcon/CheckIcon.js +7 -6
  408. package/build/features/shared/Containers/FeatureContainer.d.ts +1 -1
  409. package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
  410. package/build/features/shared/Dot/Dot.d.ts +8 -0
  411. package/build/features/shared/Dot/Dot.js +29 -0
  412. package/build/features/shared/Dot/index.d.ts +2 -0
  413. package/build/features/shared/Dot/index.js +2 -0
  414. package/build/features/shared/EndAdornment/EndAdornment.d.ts +10 -0
  415. package/build/features/shared/EndAdornment/EndAdornment.js +17 -0
  416. package/build/features/shared/EndAdornment/EndAdornmentExpanded.d.ts +7 -0
  417. package/build/features/shared/EndAdornment/EndAdornmentExpanded.js +13 -0
  418. package/build/features/shared/EndAdornment/index.d.ts +3 -0
  419. package/build/features/shared/EndAdornment/index.js +3 -0
  420. package/build/features/shared/Footer/Footer.js +10 -1
  421. package/build/features/shared/Footer/PoweredByFooter.d.ts +1 -1
  422. package/build/features/shared/Input/Input.d.ts +4 -5
  423. package/build/features/shared/Input/index.d.ts +2 -1
  424. package/build/features/shared/InputSelect/InputSelect.d.ts +4 -0
  425. package/build/features/shared/InputSelect/InputSelect.js +33 -0
  426. package/build/features/shared/InputSelect/index.d.ts +2 -0
  427. package/build/features/shared/InputSelect/index.js +2 -0
  428. package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +2 -1
  429. package/build/features/shared/SalesChannels/SaleChannelIconsInput.js +4 -3
  430. package/build/features/shared/SalesChannels/SalesChannel.d.ts +2 -1
  431. package/build/features/shared/SalesChannels/SalesChannel.js +6 -2
  432. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +3 -1
  433. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +20 -9
  434. package/build/features/shared/SuccessScreen/SuccessScreen.js +1 -1
  435. package/build/features/shared/UploadFile/FileUpload.d.ts +5 -4
  436. package/build/features/shared/UploadFile/FileUpload.js +4 -4
  437. package/build/features/shared/UploadFile/UploadFile.d.ts +2 -2
  438. package/build/features/shared/UploadFile/UploadWrapper.d.ts +4 -3
  439. package/build/features/shared/UploadFile/UploadWrapper.js +3 -3
  440. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +5 -4
  441. package/build/features/shared/UploadMultipleFile/UploadFile.js +4 -4
  442. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +4 -3
  443. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.js +2 -2
  444. package/build/features/signIn/screens/Email/Email.js +2 -1
  445. package/build/features/signIn/screens/Mobile/Mobile.js +2 -1
  446. package/build/features/signIn/screens/OTP/OTP.js +2 -2
  447. package/build/features/signIn/screens/OTP/OTPInput.js +4 -2
  448. package/build/features/signIn/screens/Password/Password.js +2 -1
  449. package/build/features/tax/Tax.d.ts +1 -0
  450. package/build/features/tax/Tax.js +11 -6
  451. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
  452. package/build/features/tax/screens/TaxDetails/ConfirmPolicy.d.ts +1 -1
  453. package/build/features/tax/screens/TaxDetails/TaxDetails.js +10 -7
  454. package/build/features/tax/screens/TaxDetails/TaxDocument.js +8 -2
  455. package/build/features/tax/screens/TaxDetails/VATId.d.ts +3 -2
  456. package/build/features/tax/screens/TaxDetails/VATId.js +3 -5
  457. package/build/features/tax/screens/Verify/OTPInput.js +3 -1
  458. package/build/features/tax/screens/Verify/Verify.js +2 -2
  459. package/build/hooks/index.d.ts +1 -0
  460. package/build/hooks/index.js +1 -0
  461. package/build/hooks/useAppConfig.d.ts +4 -2
  462. package/build/hooks/useAppConfig.js +18 -18
  463. package/build/hooks/useAppDispatch.d.ts +1 -0
  464. package/build/hooks/useCountry.d.ts +1 -0
  465. package/build/hooks/useCountry.js +4 -3
  466. package/build/hooks/useDataVerified.d.ts +6 -0
  467. package/build/hooks/useDataVerified.js +19 -0
  468. package/build/hooks/useErrorListener.d.ts +2 -1
  469. package/build/hooks/useErrorListener.js +16 -1
  470. package/build/hooks/useExcludeReadOnlyFelids.d.ts +1 -1
  471. package/build/hooks/useFormErrorAndUpdateReadOnly.d.ts +1 -1
  472. package/build/hooks/useFormReadOnly.d.ts +1 -1
  473. package/build/hooks/useVerifyToken.js +1 -1
  474. package/build/index.d.ts +3 -2
  475. package/build/index.js +4 -2
  476. package/build/utils/array.d.ts +13 -2
  477. package/build/utils/array.js +115 -2
  478. package/build/utils/common.d.ts +1 -0
  479. package/build/utils/common.js +10 -0
  480. package/build/utils/date.d.ts +1 -0
  481. package/build/utils/date.js +6 -0
  482. package/build/utils/gtm.d.ts +6 -0
  483. package/build/utils/gtm.js +29 -0
  484. package/build/utils/index.d.ts +1 -0
  485. package/build/utils/index.js +1 -0
  486. package/build/utils/object.d.ts +1 -0
  487. package/build/utils/object.js +14 -0
  488. package/build/utils/string.d.ts +1 -0
  489. package/build/utils/string.js +3 -0
  490. package/package.json +4 -2
  491. package/build/features/brand/screens/BrandInfo/Segments.d.ts +0 -9
  492. package/build/features/connect/screens/Merchant/Segments.d.ts +0 -8
  493. /package/build/features/connect/screens/{Merchant → BrandSegment}/TeamSize.d.ts +0 -0
@@ -1,23 +1,23 @@
1
1
  import { AxiosRequestConfig } from 'axios';
2
2
  import { LanguageMode } from '../@types';
3
- export declare type MobileCredential = {
3
+ export type MobileCredential = {
4
4
  code: string;
5
5
  phone: string;
6
6
  };
7
- export declare type EmailCredential = {
7
+ export type EmailCredential = {
8
8
  email: string;
9
9
  };
10
- export declare type IDCredential = {
10
+ export type IDCredential = {
11
11
  country_code?: string;
12
12
  identification_id: string;
13
13
  identification_id_type?: string;
14
14
  date_of_birth?: string;
15
15
  };
16
- export declare type CivilID = {
16
+ export type CivilID = {
17
17
  identification_id: string;
18
18
  country_code: string;
19
19
  };
20
- export declare type CreateAuthBody = {
20
+ export type CreateAuthBody = {
21
21
  country: string;
22
22
  scope: string;
23
23
  user_credentail: MobileCredential | EmailCredential | IDCredential | CivilID;
@@ -30,7 +30,7 @@ export declare type CreateAuthBody = {
30
30
  lang?: LanguageMode;
31
31
  lead_id?: string;
32
32
  };
33
- export declare type VerifyAuthBody = {
33
+ export type VerifyAuthBody = {
34
34
  auth_token: string;
35
35
  auth_type: number;
36
36
  data: string;
@@ -42,28 +42,28 @@ export declare type VerifyAuthBody = {
42
42
  encryption_contract: Array<string>;
43
43
  remember_me?: boolean;
44
44
  };
45
- export declare type VerifyOperationAuthBody = {
45
+ export type VerifyOperationAuthBody = {
46
46
  auth_token: string;
47
47
  auth_type: number;
48
48
  };
49
- export declare type ResetPasswordCredential = {
49
+ export type ResetPasswordCredential = {
50
50
  otp: string;
51
51
  new_password: string;
52
52
  };
53
- export declare type ResetPasswordVerifyAuthBody = {
53
+ export type ResetPasswordVerifyAuthBody = {
54
54
  auth_token: string;
55
55
  auth_type: number;
56
56
  step_name: string;
57
57
  user_credentail: ResetPasswordCredential;
58
58
  encryption_contract: Array<string>;
59
59
  };
60
- export declare type CreatePasswordBody = {
60
+ export type CreatePasswordBody = {
61
61
  password: string;
62
62
  signup_token?: string;
63
63
  step_name: string;
64
64
  encryption_contract: Array<string>;
65
65
  };
66
- export declare type VerifyAuthExpressOTPBody = {
66
+ export type VerifyAuthExpressOTPBody = {
67
67
  auth_token?: string;
68
68
  verify_token?: string;
69
69
  lead_id?: string;
@@ -89,5 +89,6 @@ declare const authService: {
89
89
  createExpressAuth: (data: CreateAuthBody, config?: AxiosRequestConfig) => Promise<any>;
90
90
  verifyExpressLeadIdentity: (data: VerifyAuthExpressOTPBody) => Promise<any>;
91
91
  createExpressLeadIdentityAuth: (data: CreateAuthBody) => Promise<any>;
92
+ getVerifyExpressAuth: (token: string, config?: AxiosRequestConfig) => Promise<any>;
92
93
  };
93
94
  export { authService };
package/build/api/auth.js CHANGED
@@ -40,6 +40,9 @@ var verifyExpressAuth = function (data) {
40
40
  data: data
41
41
  });
42
42
  };
43
+ var getVerifyExpressAuth = function (token, config) {
44
+ return httpClient(__assign({ method: 'get', url: "".concat(ENDPOINT_PATHS.Verify_Express_Auth_PACI_PATH, "/").concat(token) }, config));
45
+ };
43
46
  var verifyExpressLeadIdentity = function (data) {
44
47
  return httpClient({
45
48
  method: 'put',
@@ -71,6 +74,7 @@ var authService = {
71
74
  createAuthKitNID: createAuthKitNID,
72
75
  createExpressAuth: createExpressAuth,
73
76
  verifyExpressLeadIdentity: verifyExpressLeadIdentity,
74
- createExpressLeadIdentityAuth: createExpressLeadIdentityAuth
77
+ createExpressLeadIdentityAuth: createExpressLeadIdentityAuth,
78
+ getVerifyExpressAuth: getVerifyExpressAuth
75
79
  };
76
80
  export { authService };
@@ -1,14 +1,14 @@
1
1
  import { AxiosRequestConfig } from 'axios';
2
- export declare type CheckEmailBody = {
2
+ export type CheckEmailBody = {
3
3
  email: string | null;
4
4
  encryption_contract: Array<string>;
5
5
  };
6
- export declare type CheckBrandBody = {
6
+ export type CheckBrandBody = {
7
7
  profile_name: string;
8
8
  country_code: string;
9
9
  encryption_contract: Array<string>;
10
10
  };
11
- export declare type CheckIBanBody = {
11
+ export type CheckIBanBody = {
12
12
  iban_number: string;
13
13
  encryption_contract?: Array<string>;
14
14
  };
@@ -13,7 +13,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
13
13
  function verb(n) { return function (v) { return step([n, v]); }; }
14
14
  function step(op) {
15
15
  if (f) throw new TypeError("Generator is already executing.");
16
- while (_) try {
16
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
17
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
18
18
  if (y = 0, t) op = [op[0] & 2, t.value];
19
19
  switch (op[0]) {
@@ -1,15 +1,15 @@
1
- export declare type UpdateBoardBody = {
1
+ export type UpdateBoardBody = {
2
2
  id?: string;
3
3
  infoId?: string;
4
4
  step_name: string;
5
5
  lang: string;
6
6
  encryption_contract?: string;
7
7
  };
8
- export declare type RetrieveBoardInfoBody = {
8
+ export type RetrieveBoardInfoBody = {
9
9
  id: string;
10
10
  infoId: string;
11
11
  };
12
- export declare type UpdateBoardInfoBody = {
12
+ export type UpdateBoardInfoBody = {
13
13
  id: string;
14
14
  infoId: string;
15
15
  step_name: string;
@@ -1,5 +1,5 @@
1
1
  import { BrandListBody, UpdateBrandBody, UpdateSalesChannels } from '../api/individual';
2
- export declare type RemoveBrandActivity = {
2
+ export type RemoveBrandActivity = {
3
3
  id: string;
4
4
  activities?: Array<{
5
5
  id: string;
@@ -1,4 +1,4 @@
1
- export declare type GetCitiesBody = {
1
+ export type GetCitiesBody = {
2
2
  country: string[];
3
3
  };
4
4
  declare const countryService: {
@@ -6,5 +6,6 @@ declare const countryService: {
6
6
  list: never[];
7
7
  };
8
8
  getCities: (data: GetCitiesBody) => Promise<any>;
9
+ getCurrency: (countryCode: string) => Promise<any>;
9
10
  };
10
11
  export { countryService };
@@ -15,8 +15,15 @@ var getCities = function (data) {
15
15
  data: data
16
16
  });
17
17
  };
18
+ var getCurrency = function (countryCode) {
19
+ return httpClient({
20
+ method: 'get',
21
+ url: "".concat(ENDPOINT_PATHS.CURRENCY, "/").concat(countryCode)
22
+ });
23
+ };
18
24
  var countryService = {
19
25
  getCountries: getCountries,
20
- getCities: getCities
26
+ getCities: getCities,
27
+ getCurrency: getCurrency
21
28
  };
22
29
  export { countryService };
@@ -1,37 +1,41 @@
1
1
  import { AxiosRequestConfig } from 'axios';
2
- declare type GetOccupationBody = {
2
+ type GetOccupationBody = {
3
3
  page: number;
4
4
  };
5
- declare type GetSegmentsBody = {
5
+ type GetSegmentsBody = {
6
6
  page: number;
7
7
  };
8
- declare type GetTeamSizeBody = {
8
+ type GetTeamSizeBody = {
9
9
  page: number;
10
10
  };
11
- declare type GetMonthlyIncomeBody = {
11
+ type SegmentDataListBody = {
12
+ page: number;
13
+ limit: number;
14
+ };
15
+ type GetMonthlyIncomeBody = {
12
16
  page: number;
13
17
  country_code: Array<string>;
14
18
  };
15
- export declare type DataElementBody = {
19
+ export type DataElementBody = {
16
20
  id: string;
17
21
  name: {
18
22
  en: string;
19
23
  ar: string;
20
24
  };
21
25
  };
22
- declare type GetCustomerBasesBody = {
26
+ type GetCustomerBasesBody = {
23
27
  page: number;
24
28
  };
25
- declare type GetExpectedSalesBody = {
29
+ type GetExpectedSalesBody = {
26
30
  page: number;
27
31
  };
28
- declare type GetExpectedCustomerSalesBody = {
32
+ type GetExpectedCustomerSalesBody = {
29
33
  page: number;
30
34
  };
31
- declare type GetSourceOfIncomeBody = {
35
+ type GetSourceOfIncomeBody = {
32
36
  page: number;
33
37
  };
34
- declare type GetChannelsOfServicesBody = {
38
+ type GetChannelsOfServicesBody = {
35
39
  page: number;
36
40
  };
37
41
  declare const dataService: {
@@ -46,5 +50,8 @@ declare const dataService: {
46
50
  getTeamSize: (data: GetTeamSizeBody) => Promise<any>;
47
51
  getActivities: (config?: AxiosRequestConfig) => Promise<any>;
48
52
  getActivitiesIsIc: () => Promise<any>;
53
+ getSegmentLocation: (data: SegmentDataListBody) => Promise<any>;
54
+ getSegmentProfit: (data: SegmentDataListBody) => Promise<any>;
55
+ getSegmentTech: (data: SegmentDataListBody) => Promise<any>;
49
56
  };
50
57
  export { dataService };
package/build/api/data.js CHANGED
@@ -56,7 +56,7 @@ var getMonthlyIncome = function (data) {
56
56
  var getOccupation = function (data) {
57
57
  return httpClient({
58
58
  method: 'post',
59
- url: "".concat(ENDPOINT_PATHS.OCCUPATION),
59
+ url: "".concat(ENDPOINT_PATHS.OCCUPATION, "/list"),
60
60
  data: data
61
61
  });
62
62
  };
@@ -84,6 +84,27 @@ var getTeamSize = function (data) {
84
84
  data: data
85
85
  });
86
86
  };
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
+ };
87
108
  var dataService = {
88
109
  getChannelsOfServices: getChannelsOfServices,
89
110
  getCustomerBases: getCustomerBases,
@@ -95,6 +116,9 @@ var dataService = {
95
116
  getSegments: getSegments,
96
117
  getTeamSize: getTeamSize,
97
118
  getActivities: getActivities,
98
- getActivitiesIsIc: getActivitiesIsIc
119
+ getActivitiesIsIc: getActivitiesIsIc,
120
+ getSegmentLocation: getSegmentLocation,
121
+ getSegmentProfit: getSegmentProfit,
122
+ getSegmentTech: getSegmentTech
99
123
  };
100
124
  export { dataService };
@@ -1,4 +1,4 @@
1
- export declare type DocumentInfo = {
1
+ export type DocumentInfo = {
2
2
  type?: string;
3
3
  number?: string;
4
4
  issuing_country?: string;
@@ -6,7 +6,7 @@ export declare type DocumentInfo = {
6
6
  expiry_date?: string;
7
7
  images: Array<string>;
8
8
  };
9
- export declare type DocumentUpdateBody = {
9
+ export type DocumentUpdateBody = {
10
10
  entity_id?: boolean;
11
11
  individual_type_id?: number;
12
12
  country?: string;
@@ -1,5 +1,5 @@
1
1
  import { AxiosRequestConfig } from 'axios';
2
- export declare type EntityInfoBody = {
2
+ export type EntityInfoBody = {
3
3
  id: string;
4
4
  lead_id?: string;
5
5
  activities?: Array<{
@@ -32,8 +32,9 @@ export declare type EntityInfoBody = {
32
32
  };
33
33
  step_name: string;
34
34
  encryption_contract?: Array<string>;
35
+ vat_acknowledged_by?: string;
35
36
  };
36
- export declare type BankDocumentInfo = {
37
+ export type BankDocumentInfo = {
37
38
  type?: string;
38
39
  number?: string;
39
40
  issuing_country?: string;
@@ -41,8 +42,9 @@ export declare type BankDocumentInfo = {
41
42
  expiry_date?: string;
42
43
  files: Array<string>;
43
44
  };
44
- export declare type EntityBankUpdateBody = {
45
+ export type EntityBankUpdateBody = {
45
46
  wallet_id: string;
47
+ acknowledged_by?: string;
46
48
  bank_account: {
47
49
  bank_name?: string;
48
50
  beneficiary_name?: string;
@@ -56,7 +58,7 @@ export declare type EntityBankUpdateBody = {
56
58
  step_name: string;
57
59
  encryption_contract?: Array<string>;
58
60
  };
59
- export declare type UpdateEntityBody = {
61
+ export type UpdateEntityBody = {
60
62
  id: string;
61
63
  license?: {
62
64
  type?: string;
@@ -86,13 +88,13 @@ export declare type UpdateEntityBody = {
86
88
  };
87
89
  encryption_contract?: Array<string>;
88
90
  };
89
- export declare type UpdateEntityActivityBody = {
91
+ export type UpdateEntityActivityBody = {
90
92
  id: string;
91
93
  activities?: Array<{
92
94
  id: string;
93
95
  }>;
94
96
  };
95
- export declare type UpdateEntityCapitalBody = {
97
+ export type UpdateEntityCapitalBody = {
96
98
  id: string;
97
99
  capital: {
98
100
  paid: string;
@@ -102,11 +104,11 @@ export declare type UpdateEntityCapitalBody = {
102
104
  };
103
105
  };
104
106
  };
105
- export declare type UpdateEntityAOAFileBody = {
107
+ export type UpdateEntityAOAFileBody = {
106
108
  id: string;
107
109
  AOA_file_id: string;
108
110
  };
109
- export declare type RemoveEntityActivity = {
111
+ export type RemoveEntityActivity = {
110
112
  id: string;
111
113
  activities?: Array<{
112
114
  id: string;
@@ -127,5 +129,8 @@ declare const entityService: {
127
129
  updateEntityAOAFile: ({ id, ...data }: UpdateEntityAOAFileBody) => Promise<any>;
128
130
  retrieveAllEntities: (id: string) => Promise<any>;
129
131
  removeEntityActivities: ({ id, ...data }: RemoveEntityActivity) => Promise<any>;
132
+ getEntityListUsingIndividualId: (individualId: string) => Promise<any>;
133
+ getMerchantListUsingEntityId: (entityId: string) => Promise<any>;
134
+ getTerminalListUsingMerchantId: (merchantId: string) => Promise<any>;
130
135
  };
131
136
  export { entityService };
@@ -97,6 +97,34 @@ var removeEntityActivities = function (_a) {
97
97
  data: data
98
98
  });
99
99
  };
100
+ var getEntityListUsingIndividualId = function (individualId) {
101
+ return httpClient({
102
+ method: 'post',
103
+ url: "".concat(ENDPOINT_PATHS.ENTITY, "/list"),
104
+ data: {
105
+ individual_id: individualId
106
+ }
107
+ });
108
+ };
109
+ var getMerchantListUsingEntityId = function (entityId) {
110
+ return httpClient({
111
+ method: 'post',
112
+ url: "".concat(ENDPOINT_PATHS.MERCHANT, "/list"),
113
+ data: {
114
+ create_if_not_present: true,
115
+ business_entity_id: entityId
116
+ }
117
+ });
118
+ };
119
+ var getTerminalListUsingMerchantId = function (merchantId) {
120
+ return httpClient({
121
+ method: 'post',
122
+ url: "".concat(ENDPOINT_PATHS.TERMINAL, "/list"),
123
+ data: {
124
+ merchant_id: [merchantId]
125
+ }
126
+ });
127
+ };
100
128
  var entityService = {
101
129
  createEntityInfo: createEntityInfo,
102
130
  updateEntityInfo: updateEntityInfo,
@@ -111,6 +139,9 @@ var entityService = {
111
139
  updateEntityCapital: updateEntityCapital,
112
140
  updateEntityAOAFile: updateEntityAOAFile,
113
141
  retrieveAllEntities: retrieveAllEntities,
114
- removeEntityActivities: removeEntityActivities
142
+ removeEntityActivities: removeEntityActivities,
143
+ getEntityListUsingIndividualId: getEntityListUsingIndividualId,
144
+ getMerchantListUsingEntityId: getMerchantListUsingEntityId,
145
+ getTerminalListUsingMerchantId: getTerminalListUsingMerchantId
115
146
  };
116
147
  export { entityService };
@@ -1,5 +1,5 @@
1
1
  import { AxiosRequestConfig } from 'axios';
2
- export declare type UploadFileBody = {
2
+ export type UploadFileBody = {
3
3
  file_link_create: boolean;
4
4
  file?: File;
5
5
  title: string | undefined;
@@ -1,12 +1,12 @@
1
1
  import axiosInstance, { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, getAxiosHeaders } from './axios';
2
- import { ValidateOperatorBody } from './operator';
2
+ import { ValidateOperatorBody, UpdateOperatorBody } from './operator';
3
3
  import { CreateAuthBody, VerifyAuthBody, CreatePasswordBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, VerifyAuthExpressOTPBody } from './auth';
4
- import { UpdateLeadBody, LeadVerifyBody, CreateLeadBody, LeadOTPVerifyBody, LeadIdentityUpdateBody } from './lead';
4
+ import { UpdateLeadBody, LeadVerifyBody, CreateLeadBody, LeadOTPVerifyBody, LeadIdentityUpdateBody, ExpressLeadVerifyBody } from './lead';
5
5
  import { CheckEmailBody, CheckBrandBody } from './availabilityServices';
6
6
  import { EntityInfoBody, EntityBankUpdateBody, BankDocumentInfo, UpdateEntityBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, UpdateEntityAOAFileBody, RemoveEntityActivity } from './entity';
7
7
  import { CreateAccountBody, ExpressCreateAccountBody } from './account';
8
8
  import { DataElementBody } from './data';
9
- import { BrandListBody, UpdateBrandBody, UpdateIndividualBody, GetIndividualListBody } from './individual';
9
+ import { BrandListBody, UpdateBrandBody, UpdateIndividualBody, GetIndividualListBody, UpdateIndividualWithTypeBody, UpdateMultipleIndividualBody } from './individual';
10
10
  import { UpdateBoardBody, RequestEmailBody } from './board';
11
11
  import { GetUserListBody } from './user';
12
12
  import { RemoveBrandActivity } from './brand';
@@ -20,12 +20,14 @@ declare const API: {
20
20
  };
21
21
  operatorService: {
22
22
  validateOperator: (body: ValidateOperatorBody) => Promise<any>;
23
+ updateOperator: (data: UpdateOperatorBody) => Promise<any>;
23
24
  };
24
25
  countryService: {
25
26
  getCountries: (disableCountries?: boolean | undefined) => Promise<any> | {
26
27
  list: never[];
27
28
  };
28
29
  getCities: (data: import("./country").GetCitiesBody) => Promise<any>;
30
+ getCurrency: (countryCode: string) => Promise<any>;
29
31
  };
30
32
  authService: {
31
33
  createAuth: (data: CreateAuthBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
@@ -38,6 +40,7 @@ declare const API: {
38
40
  createExpressAuth: (data: CreateAuthBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
39
41
  verifyExpressLeadIdentity: (data: VerifyAuthExpressOTPBody) => Promise<any>;
40
42
  createExpressLeadIdentityAuth: (data: CreateAuthBody) => Promise<any>;
43
+ getVerifyExpressAuth: (token: string, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
41
44
  };
42
45
  leadService: {
43
46
  createLead: (data: CreateLeadBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
@@ -49,6 +52,8 @@ declare const API: {
49
52
  retrieveEntityList: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
50
53
  retrieveLeadIdentity: (leadId: string) => Promise<any>;
51
54
  updateLeadExpress: ({ id, ...data }: UpdateLeadBody) => Promise<any>;
55
+ verifyExpressLeadToken: (data: ExpressLeadVerifyBody) => Promise<any>;
56
+ createVerifyTokenByBoardId: (boardId: string) => Promise<any>;
52
57
  };
53
58
  entityService: {
54
59
  createEntityInfo: ({ id, ...data }: EntityInfoBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
@@ -65,6 +70,9 @@ declare const API: {
65
70
  updateEntityAOAFile: ({ id, ...data }: UpdateEntityAOAFileBody) => Promise<any>;
66
71
  retrieveAllEntities: (id: string) => Promise<any>;
67
72
  removeEntityActivities: ({ id, ...data }: RemoveEntityActivity) => Promise<any>;
73
+ getEntityListUsingIndividualId: (individualId: string) => Promise<any>;
74
+ getMerchantListUsingEntityId: (entityId: string) => Promise<any>;
75
+ getTerminalListUsingMerchantId: (merchantId: string) => Promise<any>;
68
76
  };
69
77
  availabilityServices: {
70
78
  checkEmail: (data: CheckEmailBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
@@ -109,12 +117,25 @@ declare const API: {
109
117
  }) => Promise<any>;
110
118
  getActivities: (config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
111
119
  getActivitiesIsIc: () => Promise<any>;
120
+ getSegmentLocation: (data: {
121
+ page: number;
122
+ limit: number;
123
+ }) => Promise<any>;
124
+ getSegmentProfit: (data: {
125
+ page: number;
126
+ limit: number;
127
+ }) => Promise<any>;
128
+ getSegmentTech: (data: {
129
+ page: number;
130
+ limit: number;
131
+ }) => Promise<any>;
112
132
  };
113
133
  individualService: {
114
134
  retrieveIndividualInfo: (id: string) => Promise<any>;
115
135
  retrieveIndividual: (id: string, type: string) => Promise<any>;
116
- updateIndividual: ({ id, type, ...data }: UpdateIndividualBody) => Promise<any>;
136
+ updateIndividual: ({ id, type, ...data }: UpdateIndividualWithTypeBody) => Promise<any>;
117
137
  getIndividualList: (data: GetIndividualListBody) => Promise<any>;
138
+ updateMultipleIndividual: (data: UpdateMultipleIndividualBody) => Promise<any>;
118
139
  };
119
140
  boardService: {
120
141
  retrieveBoard: (id: string) => Promise<any>;
@@ -151,6 +172,6 @@ declare const API: {
151
172
  getInitialData: (body: InitBody) => Promise<any>;
152
173
  };
153
174
  };
154
- export type { ValidateOperatorBody, CreateAuthBody, ExpressCreateAccountBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody, DataElementBody, UploadFileBody, UpdateEntityBody, DocumentUpdateBody, DocumentInfo, VerifyAuthExpressOTPBody, UpdateIndividualBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, BankDocumentInfo, GetUserListBody, GetIndividualListBody, RequestEmailBody, DocumentBody, UpdateEntityAOAFileBody, InitBody, RemoveBrandActivity, RemoveEntityActivity };
175
+ export type { ValidateOperatorBody, CreateAuthBody, ExpressCreateAccountBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody, DataElementBody, UploadFileBody, UpdateEntityBody, DocumentUpdateBody, DocumentInfo, VerifyAuthExpressOTPBody, UpdateIndividualBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, BankDocumentInfo, GetUserListBody, GetIndividualListBody, RequestEmailBody, DocumentBody, UpdateEntityAOAFileBody, InitBody, RemoveBrandActivity, RemoveEntityActivity, UpdateIndividualWithTypeBody, UpdateMultipleIndividualBody, ExpressLeadVerifyBody, UpdateOperatorBody };
155
176
  export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance, getAxiosHeaders };
156
177
  export default API;
@@ -1,12 +1,12 @@
1
1
  import { DocumentInfo } from './document';
2
- export declare type BrandListBody = {
2
+ export type BrandListBody = {
3
3
  individual_id: string;
4
4
  };
5
- export declare type UpdateBrandBody = {
5
+ export type UpdateBrandBody = {
6
6
  id: string;
7
7
  name?: {
8
- en: string;
9
- ar: string;
8
+ en?: string;
9
+ ar?: string;
10
10
  };
11
11
  sectors?: Array<{
12
12
  id: string;
@@ -53,6 +53,15 @@ export declare type UpdateBrandBody = {
53
53
  };
54
54
  };
55
55
  segment?: {
56
+ location_type?: {
57
+ id: string;
58
+ };
59
+ profit_type?: {
60
+ id: string;
61
+ };
62
+ tech_type?: {
63
+ id: string;
64
+ };
56
65
  type?: {
57
66
  id: string;
58
67
  };
@@ -63,17 +72,16 @@ export declare type UpdateBrandBody = {
63
72
  term?: Array<string>;
64
73
  step_name?: string;
65
74
  encryption_contract?: Array<string>;
75
+ term_by?: string;
66
76
  };
67
- export declare type UpdateSalesChannels = {
77
+ export type UpdateSalesChannels = {
68
78
  id?: string;
69
79
  channel_services: Array<{
70
80
  id: string;
71
81
  address: string;
72
82
  }>;
73
83
  };
74
- export declare type UpdateIndividualBody = {
75
- id: string;
76
- type: string;
84
+ export type UpdateIndividualBody = {
77
85
  names?: {
78
86
  en?: {
79
87
  title?: string;
@@ -126,12 +134,21 @@ export declare type UpdateIndividualBody = {
126
134
  is_influencer?: boolean | null;
127
135
  documents?: Array<DocumentInfo | undefined>;
128
136
  occupation?: {
129
- id?: string;
137
+ chapter: {
138
+ id: string;
139
+ };
130
140
  };
131
141
  step_name?: string;
132
142
  encryption_contract?: Array<string>;
133
143
  };
134
- export declare type GetIndividualListBody = {
144
+ export interface UpdateIndividualWithTypeBody extends UpdateIndividualBody {
145
+ id: string;
146
+ type: string;
147
+ }
148
+ export interface UpdateMultipleIndividualBody extends UpdateIndividualBody {
149
+ ids: Array<string>;
150
+ }
151
+ export type GetIndividualListBody = {
135
152
  page: number;
136
153
  limit: number;
137
154
  business_id: string;
@@ -139,7 +156,8 @@ export declare type GetIndividualListBody = {
139
156
  declare const individualService: {
140
157
  retrieveIndividualInfo: (id: string) => Promise<any>;
141
158
  retrieveIndividual: (id: string, type: string) => Promise<any>;
142
- updateIndividual: ({ id, type, ...data }: UpdateIndividualBody) => Promise<any>;
159
+ updateIndividual: ({ id, type, ...data }: UpdateIndividualWithTypeBody) => Promise<any>;
143
160
  getIndividualList: (data: GetIndividualListBody) => Promise<any>;
161
+ updateMultipleIndividual: (data: UpdateMultipleIndividualBody) => Promise<any>;
144
162
  };
145
163
  export { individualService };
@@ -31,6 +31,13 @@ var updateIndividual = function (_a) {
31
31
  data: data
32
32
  });
33
33
  };
34
+ var updateMultipleIndividual = function (data) {
35
+ return httpClient({
36
+ method: 'put',
37
+ url: "".concat(ENDPOINT_PATHS.INDIVIDUAL, "/multi"),
38
+ data: data
39
+ });
40
+ };
34
41
  var getIndividualList = function (data) {
35
42
  return httpClient({
36
43
  method: 'post',
@@ -42,6 +49,7 @@ var individualService = {
42
49
  retrieveIndividualInfo: retrieveIndividualInfo,
43
50
  retrieveIndividual: retrieveIndividual,
44
51
  updateIndividual: updateIndividual,
45
- getIndividualList: getIndividualList
52
+ getIndividualList: getIndividualList,
53
+ updateMultipleIndividual: updateMultipleIndividual
46
54
  };
47
55
  export { individualService };
@@ -1,4 +1,4 @@
1
- export declare type InitBody = {
1
+ export type InitBody = {
2
2
  type: string;
3
3
  app_client_version: string;
4
4
  requirer_browser: string;
@@ -9,6 +9,7 @@ export declare type InitBody = {
9
9
  country_list?: boolean;
10
10
  merchant?: boolean;
11
11
  };
12
+ config_token?: string;
12
13
  };
13
14
  declare const initService: {
14
15
  getInitialData: (body: InitBody) => Promise<any>;