@tap-payments/auth-jsconnect 2.4.29-test → 2.4.31-test

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (427) hide show
  1. package/build/api/account.js +1 -1
  2. package/build/api/auth.d.ts +1 -1
  3. package/build/api/auth.js +1 -1
  4. package/build/api/availabilityServices.js +1 -1
  5. package/build/api/axios.js +2 -2
  6. package/build/api/board.js +1 -1
  7. package/build/api/brand.d.ts +1 -1
  8. package/build/api/brand.js +1 -1
  9. package/build/api/country.js +1 -1
  10. package/build/api/data.js +1 -1
  11. package/build/api/document.js +1 -1
  12. package/build/api/entity.js +1 -1
  13. package/build/api/file.js +1 -1
  14. package/build/api/firebase.js +1 -1
  15. package/build/api/individual.js +1 -1
  16. package/build/api/init.js +1 -1
  17. package/build/api/lead.d.ts +1 -1
  18. package/build/api/lead.js +1 -1
  19. package/build/api/location.js +1 -1
  20. package/build/api/operator.js +1 -1
  21. package/build/api/user.js +1 -1
  22. package/build/app/rootReducer.d.ts +10 -10
  23. package/build/app/rootReducer.js +10 -10
  24. package/build/app/settings.d.ts +2 -2
  25. package/build/app/settings.js +5 -5
  26. package/build/components/AnimationFlow/AnimationFlow.d.ts +1 -1
  27. package/build/components/AnimationFlow/AnimationFlow.js +1 -1
  28. package/build/components/AnimationFlow/BottomSheet.d.ts +1 -1
  29. package/build/components/AnimationFlow/BottomSheet.js +3 -3
  30. package/build/components/AnimationFlow/Dialog.d.ts +1 -1
  31. package/build/components/AnimationFlow/Dialog.js +4 -4
  32. package/build/components/ArabicDatePicker/ArabicDatePicker.js +2 -2
  33. package/build/components/ArabicDatePicker/style.css +24 -0
  34. package/build/components/DatePicker/DatePicker.js +3 -3
  35. package/build/components/DatePicker/customStyle.css +86 -0
  36. package/build/components/FileInput/DragAndDrop.js +6 -6
  37. package/build/components/FileInput/UploadInput.js +2 -2
  38. package/build/components/Footer/Footer.js +3 -3
  39. package/build/components/Input/Input.js +2 -2
  40. package/build/components/OTPTimer/OTPTimer.js +1 -1
  41. package/build/components/Providers/ThemeProvider.d.ts +1 -1
  42. package/build/components/SimpleList/SimpleList.js +2 -2
  43. package/build/components/Tooltip/Tooltip.js +2 -2
  44. package/build/constants/app.d.ts +1 -1
  45. package/build/constants/app.js +1 -1
  46. package/build/features/app/bank/bankStore.d.ts +3 -2
  47. package/build/features/app/bank/bankStore.js +35 -23
  48. package/build/features/app/brand/brandStore.d.ts +4 -2
  49. package/build/features/app/brand/brandStore.js +71 -51
  50. package/build/features/app/business/businessStore.d.ts +2 -2
  51. package/build/features/app/business/businessStore.js +5 -5
  52. package/build/features/app/connect/connectStore.d.ts +2 -2
  53. package/build/features/app/connect/connectStore.js +5 -5
  54. package/build/features/app/connectExpress/connectExpressStore.d.ts +2 -2
  55. package/build/features/app/connectExpress/connectExpressStore.js +6 -6
  56. package/build/features/app/entity/entityStore.d.ts +6 -2
  57. package/build/features/app/entity/entityStore.js +92 -58
  58. package/build/features/app/individual/individualStore.d.ts +147 -0
  59. package/build/features/app/individual/individualStore.js +22 -22
  60. package/build/features/app/password/passwordStore.d.ts +4 -2
  61. package/build/features/app/password/passwordStore.js +74 -38
  62. package/build/features/app/signIn/signInStore.d.ts +2 -2
  63. package/build/features/app/signIn/signInStore.js +3 -3
  64. package/build/features/app/tax/taxStore.d.ts +3 -2
  65. package/build/features/app/tax/taxStore.js +34 -23
  66. package/build/features/bank/Bank.d.ts +1 -1
  67. package/build/features/bank/Bank.js +10 -10
  68. package/build/features/bank/screens/BankDetails/BankDetails.js +9 -9
  69. package/build/features/bank/screens/BankDetails/BankName.js +8 -8
  70. package/build/features/bank/screens/BankDetails/BankStatement.d.ts +1 -1
  71. package/build/features/bank/screens/BankDetails/BankStatement.js +6 -6
  72. package/build/features/bank/screens/BankDetails/Beneficiary.js +6 -6
  73. package/build/features/bank/screens/BankDetails/ConfirmPolicy.js +5 -5
  74. package/build/features/bank/screens/BankDetails/IBAN.js +10 -10
  75. package/build/features/bank/screens/BankDetails/validation.js +1 -1
  76. package/build/features/bank/screens/PrepareDataLoading/PrepareDataLoading.js +3 -3
  77. package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +5 -5
  78. package/build/features/bank/screens/Success/Success.js +3 -3
  79. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
  80. package/build/features/bank/screens/Verify/OTPInput.js +5 -5
  81. package/build/features/bank/screens/Verify/Verify.js +8 -8
  82. package/build/features/brand/Brand.d.ts +1 -1
  83. package/build/features/brand/Brand.js +10 -10
  84. package/build/features/brand/screens/BrandActivities/ActivitiesList.js +12 -12
  85. package/build/features/brand/screens/BrandActivities/BrandActivities.js +7 -7
  86. package/build/features/brand/screens/BrandActivities/CustomerBase.js +11 -11
  87. package/build/features/brand/screens/BrandActivities/ExpectedCustomers.js +8 -8
  88. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +12 -12
  89. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +1 -1
  90. package/build/features/brand/screens/BrandActivities/RefundPolicy.js +10 -10
  91. package/build/features/brand/screens/BrandActivities/TAC.js +10 -10
  92. package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +8 -8
  93. package/build/features/brand/screens/BrandInfo/BrandInfo.js +9 -9
  94. package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +1 -1
  95. package/build/features/brand/screens/BrandInfo/BrandLogo.js +7 -7
  96. package/build/features/brand/screens/BrandInfo/BrandName.js +9 -9
  97. package/build/features/brand/screens/BrandInfo/SalesChannels.js +4 -4
  98. package/build/features/brand/screens/BrandInfo/Segments.js +9 -9
  99. package/build/features/brand/screens/BrandInfo/TeamSize.js +9 -9
  100. package/build/features/brand/screens/BrandInfo/validation.js +1 -1
  101. package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.js +3 -3
  102. package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +5 -5
  103. package/build/features/brand/screens/Success/Success.js +3 -3
  104. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
  105. package/build/features/brand/screens/Verify/OTPInput.js +5 -5
  106. package/build/features/brand/screens/Verify/Verify.js +8 -8
  107. package/build/features/business/Business.d.ts +1 -1
  108. package/build/features/business/Business.js +10 -10
  109. package/build/features/business/screens/Activities/Activities.js +7 -7
  110. package/build/features/business/screens/Activities/ActivitiesList.js +12 -12
  111. package/build/features/business/screens/Activities/LicenseName.js +6 -6
  112. package/build/features/business/screens/Activities/OperationStartDate.js +5 -5
  113. package/build/features/business/screens/BrandDetails/BrandDetails.js +7 -7
  114. package/build/features/business/screens/BrandDetails/BrandName.js +4 -4
  115. package/build/features/business/screens/BrandDetails/Header.js +5 -5
  116. package/build/features/business/screens/BrandDetails/LicenseInfo.js +4 -4
  117. package/build/features/business/screens/BrandDetails/SalesChannel.js +5 -5
  118. package/build/features/business/screens/BusinessType/Article.d.ts +1 -1
  119. package/build/features/business/screens/BusinessType/Article.js +7 -7
  120. package/build/features/business/screens/BusinessType/BusinessType.js +10 -10
  121. package/build/features/business/screens/BusinessType/EntityLicenseList.js +13 -13
  122. package/build/features/business/screens/BusinessType/EntityName.js +6 -6
  123. package/build/features/business/screens/BusinessType/LicenseCertificate.js +7 -7
  124. package/build/features/business/screens/BusinessType/LicenseList.js +13 -13
  125. package/build/features/business/screens/BusinessType/LicenseNumber.js +10 -10
  126. package/build/features/business/screens/BusinessType/LicenseType.js +14 -14
  127. package/build/features/business/screens/BusinessType/SelectType.js +6 -6
  128. package/build/features/business/screens/BusinessType/validation.js +2 -2
  129. package/build/features/business/screens/CivilID/CivilID.js +6 -6
  130. package/build/features/business/screens/CivilID/IDNumber.js +6 -6
  131. package/build/features/business/screens/Customers/CustomerLocations.js +11 -11
  132. package/build/features/business/screens/Customers/Customers.js +8 -8
  133. package/build/features/business/screens/Customers/ExpectedCustomers.js +9 -9
  134. package/build/features/business/screens/Customers/ExpectedSalesRange.js +11 -11
  135. package/build/features/business/screens/Customers/RefundPolicy.d.ts +1 -1
  136. package/build/features/business/screens/Customers/RefundPolicy.js +10 -10
  137. package/build/features/business/screens/Customers/TransactionPolicy.js +7 -7
  138. package/build/features/business/screens/IDBOD/DOB.js +5 -5
  139. package/build/features/business/screens/IDBOD/ID.js +5 -5
  140. package/build/features/business/screens/IDBOD/IDBOD.js +6 -6
  141. package/build/features/business/screens/OTP/OTP.js +9 -9
  142. package/build/features/business/screens/OTP/OTPInput.js +4 -4
  143. package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +5 -5
  144. package/build/features/business/screens/Success/Success.js +3 -3
  145. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
  146. package/build/features/business/screens/Verify/OTPInput.js +5 -5
  147. package/build/features/business/screens/Verify/Verify.js +9 -9
  148. package/build/features/business/screens/VerifyPACI/VerifyPACI.js +4 -4
  149. package/build/features/connect/Connect.d.ts +1 -1
  150. package/build/features/connect/Connect.js +10 -10
  151. package/build/features/connect/screens/CivilID/CivilID.js +8 -8
  152. package/build/features/connect/screens/CivilID/IDNumber.js +6 -6
  153. package/build/features/connect/screens/Individual/Email.js +6 -6
  154. package/build/features/connect/screens/Individual/Individual.js +11 -11
  155. package/build/features/connect/screens/Individual/MobileNumber.d.ts +1 -1
  156. package/build/features/connect/screens/Individual/MobileNumber.js +12 -12
  157. package/build/features/connect/screens/Individual/Name.js +5 -5
  158. package/build/features/connect/screens/Individual/validation.js +1 -1
  159. package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
  160. package/build/features/connect/screens/Merchant/BrandList.js +10 -10
  161. package/build/features/connect/screens/Merchant/BrandName.js +8 -8
  162. package/build/features/connect/screens/Merchant/Merchant.js +8 -8
  163. package/build/features/connect/screens/Merchant/SalesChannels.js +4 -4
  164. package/build/features/connect/screens/Merchant/Segments.js +9 -9
  165. package/build/features/connect/screens/Merchant/TAC.js +9 -9
  166. package/build/features/connect/screens/Merchant/TeamSize.js +9 -9
  167. package/build/features/connect/screens/Merchant/validation.js +1 -1
  168. package/build/features/connect/screens/Mobile/Mobile.js +11 -11
  169. package/build/features/connect/screens/Mobile/MobileNumber.d.ts +1 -1
  170. package/build/features/connect/screens/Mobile/MobileNumber.js +12 -12
  171. package/build/features/connect/screens/Mobile/Title.js +2 -2
  172. package/build/features/connect/screens/NID/DOB.js +5 -5
  173. package/build/features/connect/screens/NID/IDNumber.js +7 -7
  174. package/build/features/connect/screens/NID/NID.js +8 -8
  175. package/build/features/connect/screens/OTP/OTP.js +10 -10
  176. package/build/features/connect/screens/OTP/OTPInput.js +5 -5
  177. package/build/features/connect/screens/ThankYou/ThankYou.js +4 -4
  178. package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +5 -5
  179. package/build/features/connectExpress/ConnectExpress.d.ts +1 -1
  180. package/build/features/connectExpress/ConnectExpress.js +10 -10
  181. package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.js +3 -3
  182. package/build/features/connectExpress/screens/Brand/Brand.js +9 -9
  183. package/build/features/connectExpress/screens/CivilID/CivilID.js +8 -8
  184. package/build/features/connectExpress/screens/CivilID/IDNumber.js +6 -6
  185. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +6 -6
  186. package/build/features/connectExpress/screens/CivilIDMissed/IDNumber.js +6 -6
  187. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +8 -8
  188. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +8 -8
  189. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +13 -13
  190. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +10 -10
  191. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.js +12 -12
  192. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +8 -8
  193. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +2 -2
  194. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +11 -11
  195. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +6 -6
  196. package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.d.ts +1 -1
  197. package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.js +11 -11
  198. package/build/features/connectExpress/screens/CollectIndividualInfo/Name.js +5 -5
  199. package/build/features/connectExpress/screens/CollectIndividualInfo/validation.js +1 -1
  200. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.js +5 -5
  201. package/build/features/connectExpress/screens/IdentityOTP/OTP.js +10 -10
  202. package/build/features/connectExpress/screens/IdentityOTP/OTPInput.js +5 -5
  203. package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.js +4 -4
  204. package/build/features/connectExpress/screens/Mobile/Mobile.js +10 -10
  205. package/build/features/connectExpress/screens/Mobile/MobileNumber.d.ts +1 -1
  206. package/build/features/connectExpress/screens/Mobile/MobileNumber.js +12 -12
  207. package/build/features/connectExpress/screens/Mobile/TAC.js +8 -8
  208. package/build/features/connectExpress/screens/Mobile/Title.js +2 -2
  209. package/build/features/connectExpress/screens/NID/DOB.js +5 -5
  210. package/build/features/connectExpress/screens/NID/IDNumber.js +9 -9
  211. package/build/features/connectExpress/screens/NID/NID.js +8 -8
  212. package/build/features/connectExpress/screens/NID/TAC.js +8 -8
  213. package/build/features/connectExpress/screens/NIDMissed/DOB.js +5 -5
  214. package/build/features/connectExpress/screens/NIDMissed/IDNumber.js +7 -7
  215. package/build/features/connectExpress/screens/NIDMissed/NID.js +7 -7
  216. package/build/features/connectExpress/screens/OTP/OTP.js +10 -10
  217. package/build/features/connectExpress/screens/OTP/OTPInput.js +5 -5
  218. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +4 -4
  219. package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.js +4 -4
  220. package/build/features/entity/Entity.d.ts +1 -1
  221. package/build/features/entity/Entity.js +10 -10
  222. package/build/features/entity/screens/EntityCapital/ActivityList.js +12 -12
  223. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +7 -7
  224. package/build/features/entity/screens/EntityCapital/CapitalShareCount.js +6 -6
  225. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +7 -7
  226. package/build/features/entity/screens/EntityCapital/EntityCapital.js +7 -7
  227. package/build/features/entity/screens/EntityName/Article.d.ts +1 -1
  228. package/build/features/entity/screens/EntityName/Article.js +7 -7
  229. package/build/features/entity/screens/EntityName/EntityName.js +9 -9
  230. package/build/features/entity/screens/EntityName/EntityTypeList.js +12 -12
  231. package/build/features/entity/screens/EntityName/ExpiryDate.js +6 -6
  232. package/build/features/entity/screens/EntityName/IssuingDate.js +5 -5
  233. package/build/features/entity/screens/EntityName/LegalName.js +6 -6
  234. package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +1 -1
  235. package/build/features/entity/screens/EntityName/LicenseCertificate.js +8 -8
  236. package/build/features/entity/screens/EntityName/LicenseNumber.js +10 -10
  237. package/build/features/entity/screens/EntityName/UnifiedNumber.js +7 -7
  238. package/build/features/entity/screens/EntityName/validation.js +2 -2
  239. package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.js +3 -3
  240. package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +5 -5
  241. package/build/features/entity/screens/Success/Success.js +3 -3
  242. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
  243. package/build/features/entity/screens/Verify/OTPInput.js +5 -5
  244. package/build/features/entity/screens/Verify/Verify.js +8 -8
  245. package/build/features/featuresScreens.d.ts +1 -1
  246. package/build/features/featuresScreens.js +79 -79
  247. package/build/features/individual/Individual.d.ts +1 -1
  248. package/build/features/individual/Individual.js +10 -10
  249. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +11 -11
  250. package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +1 -1
  251. package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.js +8 -8
  252. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +10 -10
  253. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
  254. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +11 -11
  255. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -1
  256. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +9 -9
  257. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +10 -10
  258. package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.js +6 -6
  259. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +7 -7
  260. package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +1 -1
  261. package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.js +8 -8
  262. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
  263. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +10 -10
  264. package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +1 -1
  265. package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +1 -1
  266. package/build/features/individual/screens/IndividualList/CollectPhoneEmail.d.ts +1 -1
  267. package/build/features/individual/screens/IndividualList/CollectPhoneEmail.js +3 -3
  268. package/build/features/individual/screens/IndividualList/Email.d.ts +1 -1
  269. package/build/features/individual/screens/IndividualList/Email.js +8 -8
  270. package/build/features/individual/screens/IndividualList/IndividualList.js +8 -8
  271. package/build/features/individual/screens/IndividualList/MobileNumber.d.ts +1 -1
  272. package/build/features/individual/screens/IndividualList/MobileNumber.js +11 -11
  273. package/build/features/individual/screens/IndividualList/UserList.js +11 -11
  274. package/build/features/individual/screens/IndividualList/validation.d.ts +1 -1
  275. package/build/features/individual/screens/IndividualList/validation.js +1 -1
  276. package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.js +9 -9
  277. package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.d.ts +1 -1
  278. package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.js +8 -8
  279. package/build/features/individual/screens/IndividualPersonalInfo/DOB.js +6 -6
  280. package/build/features/individual/screens/IndividualPersonalInfo/Email.js +4 -4
  281. package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.js +7 -7
  282. package/build/features/individual/screens/IndividualPersonalInfo/Gender.js +8 -8
  283. package/build/features/individual/screens/IndividualPersonalInfo/ID.js +6 -6
  284. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +9 -9
  285. package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.d.ts +1 -1
  286. package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.js +8 -8
  287. package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.d.ts +1 -1
  288. package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +10 -10
  289. package/build/features/individual/screens/IndividualPersonalInfo/Name.js +5 -5
  290. package/build/features/individual/screens/IndividualPersonalInfo/Nationality.d.ts +1 -1
  291. package/build/features/individual/screens/IndividualPersonalInfo/Nationality.js +8 -8
  292. package/build/features/individual/screens/IndividualPersonalInfo/validation.js +1 -1
  293. package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.d.ts +1 -1
  294. package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.js +11 -11
  295. package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.js +8 -8
  296. package/build/features/individual/screens/PrepareDataLoading/PrepareDataLoading.js +3 -3
  297. package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +5 -5
  298. package/build/features/individual/screens/Success/Success.js +3 -3
  299. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
  300. package/build/features/individual/screens/Verify/OTPInput.js +5 -5
  301. package/build/features/individual/screens/Verify/Verify.js +8 -8
  302. package/build/features/password/Password.d.ts +1 -1
  303. package/build/features/password/Password.js +10 -10
  304. package/build/features/password/screens/CreatePassword/ConditionText.js +1 -1
  305. package/build/features/password/screens/CreatePassword/ConfirmPassword.js +3 -3
  306. package/build/features/password/screens/CreatePassword/CreatePassword.js +8 -8
  307. package/build/features/password/screens/CreatePassword/Password.js +6 -6
  308. package/build/features/password/screens/OTP/OTP.js +9 -9
  309. package/build/features/password/screens/OTP/OTPInput.js +4 -4
  310. package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +5 -5
  311. package/build/features/password/screens/Success/Success.js +4 -4
  312. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
  313. package/build/features/password/screens/Verify/OTPInput.js +5 -5
  314. package/build/features/password/screens/Verify/Verify.js +8 -8
  315. package/build/features/shared/AcceptancePayouts/AcceptancePayouts.js +4 -4
  316. package/build/features/shared/Address/Address.d.ts +1 -1
  317. package/build/features/shared/Address/Address.js +2 -2
  318. package/build/features/shared/Address/CountryList.d.ts +2 -2
  319. package/build/features/shared/Address/CountryList.js +7 -7
  320. package/build/features/shared/Address/InputSelect.d.ts +1 -1
  321. package/build/features/shared/Address/InputSelect.js +7 -7
  322. package/build/features/shared/Background/Background.js +2 -2
  323. package/build/features/shared/Background/LogoBackground.js +3 -3
  324. package/build/features/shared/Button/AbsherButton.d.ts +1 -1
  325. package/build/features/shared/Button/AbsherButton.js +3 -3
  326. package/build/features/shared/Button/Button.d.ts +1 -1
  327. package/build/features/shared/Button/Button.js +7 -7
  328. package/build/features/shared/Button/EmailProvidersButtons.d.ts +1 -1
  329. package/build/features/shared/Button/EmailProvidersButtons.js +3 -3
  330. package/build/features/shared/Button/FlowsButtons.d.ts +2 -2
  331. package/build/features/shared/Button/FlowsButtons.js +7 -7
  332. package/build/features/shared/Button/IndividualActionButtons.d.ts +1 -1
  333. package/build/features/shared/Button/IndividualActionButtons.js +5 -5
  334. package/build/features/shared/Button/MobileButton.d.ts +1 -1
  335. package/build/features/shared/Button/MobileButton.js +3 -3
  336. package/build/features/shared/CreateAccountLoading/CreateAccountLoading.js +4 -4
  337. package/build/features/shared/DataLoading/DataLoading.js +4 -4
  338. package/build/features/shared/Dialog/CloseDialog.js +2 -2
  339. package/build/features/shared/Dialog/DialogContainer.js +2 -2
  340. package/build/features/shared/EndAdornment/EndAdornment.js +2 -2
  341. package/build/features/shared/EndAdornment/EndAdornmentExpanded.js +2 -2
  342. package/build/features/shared/Footer/Footer.js +4 -4
  343. package/build/features/shared/Footer/PoweredByFooter.js +3 -3
  344. package/build/features/shared/GenericError/GenericError.js +4 -4
  345. package/build/features/shared/Input/Input.d.ts +1 -1
  346. package/build/features/shared/Input/Input.js +2 -2
  347. package/build/features/shared/OTP/OTP.d.ts +1 -1
  348. package/build/features/shared/OTP/OTP.js +3 -3
  349. package/build/features/shared/PaciVerification/PaciVerification.js +5 -5
  350. package/build/features/shared/PaciVerification/VerifyPACILoading.js +3 -3
  351. package/build/features/shared/PaciVerification/VerifyPACISuccess.js +1 -1
  352. package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +1 -1
  353. package/build/features/shared/SalesChannels/SaleChannelIconsInput.js +9 -9
  354. package/build/features/shared/SalesChannels/SalesChannel.d.ts +1 -1
  355. package/build/features/shared/SalesChannels/SalesChannel.js +6 -6
  356. package/build/features/shared/Search/Search.js +1 -1
  357. package/build/features/shared/SearchIcon/SearchIcon.js +2 -2
  358. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +1 -1
  359. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +6 -6
  360. package/build/features/shared/SuccessScreen/SuccessScreen.js +6 -6
  361. package/build/features/shared/UploadFile/FileUpload.d.ts +1 -1
  362. package/build/features/shared/UploadFile/FileUpload.js +8 -8
  363. package/build/features/shared/UploadFile/UploadFile.js +10 -10
  364. package/build/features/shared/UploadFile/UploadWrapper.d.ts +2 -2
  365. package/build/features/shared/UploadFile/UploadWrapper.js +7 -7
  366. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +1 -1
  367. package/build/features/shared/UploadMultipleFile/UploadFile.js +8 -8
  368. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +2 -2
  369. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.js +7 -7
  370. package/build/features/signIn/SignIn.d.ts +1 -1
  371. package/build/features/signIn/SignIn.js +10 -10
  372. package/build/features/signIn/screens/Email/Email.js +8 -8
  373. package/build/features/signIn/screens/Email/EmailField.js +5 -5
  374. package/build/features/signIn/screens/Email/validation.js +1 -1
  375. package/build/features/signIn/screens/Mobile/Mobile.js +9 -9
  376. package/build/features/signIn/screens/Mobile/MobileNumber.d.ts +1 -1
  377. package/build/features/signIn/screens/Mobile/MobileNumber.js +12 -12
  378. package/build/features/signIn/screens/OTP/OTP.js +9 -9
  379. package/build/features/signIn/screens/OTP/OTPInput.js +4 -4
  380. package/build/features/signIn/screens/Password/Password.js +7 -7
  381. package/build/features/signIn/screens/Password/PasswordInput.js +3 -3
  382. package/build/features/tax/Tax.d.ts +1 -1
  383. package/build/features/tax/Tax.js +10 -10
  384. package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.js +3 -3
  385. package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +5 -5
  386. package/build/features/tax/screens/Success/Success.js +3 -3
  387. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
  388. package/build/features/tax/screens/TaxDetails/ConfirmPolicy.js +5 -5
  389. package/build/features/tax/screens/TaxDetails/TaxDetails.js +8 -8
  390. package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +1 -1
  391. package/build/features/tax/screens/TaxDetails/TaxDocument.js +8 -8
  392. package/build/features/tax/screens/TaxDetails/VATId.js +6 -6
  393. package/build/features/tax/screens/Verify/OTPInput.js +5 -5
  394. package/build/features/tax/screens/Verify/Verify.js +8 -8
  395. package/build/hooks/useAppConfig.d.ts +1 -1
  396. package/build/hooks/useAppConfig.js +4 -4
  397. package/build/hooks/useAppSelector.d.ts +1 -1
  398. package/build/hooks/useAppTheme.d.ts +1 -1
  399. package/build/hooks/useAppTheme.js +3 -3
  400. package/build/hooks/useCountry.js +1 -1
  401. package/build/hooks/useDataNoneEditable.d.ts +1 -1
  402. package/build/hooks/useDataNoneEditable.js +1 -1
  403. package/build/hooks/useDataVerified.d.ts +1 -1
  404. package/build/hooks/useDataVerified.js +1 -1
  405. package/build/hooks/useErrorListener.js +1 -1
  406. package/build/hooks/useExcludeReadOnlyFelids.js +1 -1
  407. package/build/hooks/useFormReadOnly.js +1 -1
  408. package/build/hooks/useLanguage.js +1 -1
  409. package/build/hooks/useRedirectionListener.js +1 -1
  410. package/build/hooks/useScreen.js +1 -1
  411. package/build/hooks/useStepStartedListener.js +1 -1
  412. package/build/hooks/useVerifyToken.d.ts +1 -1
  413. package/build/hooks/useVerifyToken.js +2 -2
  414. package/build/i18n.js +1 -1
  415. package/build/index.css +140 -0
  416. package/build/index.d.ts +10 -10
  417. package/build/index.js +10 -10
  418. package/build/theme/theme.d.ts +1 -1
  419. package/build/utils/array.d.ts +4 -3
  420. package/build/utils/array.js +67 -1
  421. package/build/utils/locale.d.ts +1 -1
  422. package/build/utils/locale.js +1 -1
  423. package/build/utils/object.js +1 -1
  424. package/build/utils/rsa.js +1 -1
  425. package/build/utils/string.d.ts +1 -1
  426. package/build/utils/string.js +4 -4
  427. package/package.json +1 -1
@@ -58,19 +58,19 @@ var __rest = (this && this.__rest) || function (s, e) {
58
58
  };
59
59
  var _a;
60
60
  import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
61
- import API from '@api';
62
- import { BusinessType, DocumentPurpose, FlowsTypes, LicenseType } from '@types';
63
- import { handleNextScreenStep, handlePrevScreenStep, handleSetCountryByIso2 } from '@app/settings';
64
- import { ENTITY_STEP_NAMES } from '@constants';
61
+ import API from '../../../api';
62
+ import { BusinessType, DocumentPurpose, FlowsTypes, LicenseType } from '../../../@types';
63
+ import { handleNextScreenStep, handlePrevScreenStep, handleSetCountryByIso2 } from '../../../app/settings';
64
+ import { ENTITY_STEP_NAMES } from '../../../constants';
65
65
  import moment from 'moment';
66
- import { convertNumbers2English, getRecentDocumentBasedOnPurpose, hasVerifiedValue, hasNoneEditableValue, sleep, formatNumberAsCurrency, removeAllCharsFromNumber } from '@utils';
66
+ import { convertNumbers2English, getRecentDocumentBasedOnPurpose, hasVerifiedValue, hasNoneEditableValue, sleep, formatNumberAsCurrency, removeAllCharsFromNumber, retrieveIndividualData } from '../../../utils';
67
67
  export var verifyLeadToken = createAsyncThunk('entityVerifyLeadToken', function (_a, thunkApi) {
68
68
  var token = _a.token, isInternally = _a.isInternally;
69
69
  return __awaiter(void 0, void 0, void 0, function () {
70
- var payload, data, boardData, entityData, entityTypes, countryIso2, board_id, entityId;
71
- var _b, _c, _d;
72
- return __generator(this, function (_e) {
73
- switch (_e.label) {
70
+ var payload, data, boardData, boardInfoData, entityData, entityTypes, individualData, countryIso2, _b, board_id, board_info_id, _c, id_1, type_1, serviceCallBack, _d, boardRes, individualRes, entityId;
71
+ var _e, _f, _g, _h;
72
+ return __generator(this, function (_j) {
73
+ switch (_j.label) {
74
74
  case 0:
75
75
  payload = {
76
76
  service_name: 'tap_email',
@@ -78,9 +78,9 @@ export var verifyLeadToken = createAsyncThunk('entityVerifyLeadToken', function
78
78
  };
79
79
  return [4, API.leadService.verifyLeadToken(payload)];
80
80
  case 1:
81
- data = (_e.sent()).data;
81
+ data = (_j.sent()).data;
82
82
  countryIso2 = undefined;
83
- if (!(!(data === null || data === void 0 ? void 0 : data.errors) && !(data === null || data === void 0 ? void 0 : data.mw_error))) return [3, 7];
83
+ if (!(!(data === null || data === void 0 ? void 0 : data.errors) && !(data === null || data === void 0 ? void 0 : data.mw_error))) return [3, 10];
84
84
  if (isInternally)
85
85
  data.step_name = ENTITY_STEP_NAMES.ENTITY_INFO;
86
86
  if (data === null || data === void 0 ? void 0 : data.country_code) {
@@ -88,44 +88,59 @@ export var verifyLeadToken = createAsyncThunk('entityVerifyLeadToken', function
88
88
  if (countryIso2)
89
89
  thunkApi.dispatch(handleSetCountryByIso2(countryIso2));
90
90
  }
91
- if (!(data.step_name !== ENTITY_STEP_NAMES.PHONE_AUTH)) return [3, 7];
92
- board_id = data === null || data === void 0 ? void 0 : data.id;
93
- if (!board_id) return [3, 3];
91
+ if (!(data.step_name !== ENTITY_STEP_NAMES.PHONE_AUTH)) return [3, 10];
92
+ _b = data || {}, board_id = _b.id, board_info_id = _b.board_info_id;
93
+ if (!board_id) return [3, 6];
94
94
  return [4, API.boardService.retrieveBoardDetails(board_id)];
95
95
  case 2:
96
- boardData = _e.sent();
97
- _e.label = 3;
96
+ boardData = _j.sent();
97
+ if (!board_info_id) return [3, 4];
98
+ return [4, API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id })];
98
99
  case 3:
99
- entityId = (_b = boardData === null || boardData === void 0 ? void 0 : boardData.entity) === null || _b === void 0 ? void 0 : _b.id;
100
- if (!entityId) return [3, 5];
101
- return [4, API.entityService.retrieveEntity(entityId)];
100
+ boardInfoData = _j.sent();
101
+ _j.label = 4;
102
102
  case 4:
103
- entityData = _e.sent();
104
- _e.label = 5;
103
+ _c = ((_e = boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification) === null || _e === void 0 ? void 0 : _e.recipient) || {}, id_1 = _c.id, type_1 = _c.type;
104
+ serviceCallBack = function () { return API.individualService.retrieveIndividual(id_1, type_1); };
105
+ return [4, retrieveIndividualData(type_1, boardData, serviceCallBack)];
105
106
  case 5:
107
+ _d = _j.sent(), boardRes = _d.boardRes, individualRes = _d.individualRes;
108
+ boardData = boardRes;
109
+ individualData = individualRes;
110
+ _j.label = 6;
111
+ case 6:
112
+ entityId = (_f = boardData === null || boardData === void 0 ? void 0 : boardData.entity) === null || _f === void 0 ? void 0 : _f.id;
113
+ if (!entityId) return [3, 8];
114
+ return [4, API.entityService.retrieveEntity(entityId)];
115
+ case 7:
116
+ entityData = _j.sent();
117
+ _j.label = 8;
118
+ case 8:
106
119
  if (!countryIso2) {
107
120
  countryIso2 = entityData.country;
108
121
  if (countryIso2)
109
122
  thunkApi.dispatch(handleSetCountryByIso2(countryIso2));
110
123
  }
111
124
  return [4, API.entityService.retrieveEntityType()];
112
- case 6:
113
- entityTypes = _e.sent();
125
+ case 9:
126
+ entityTypes = _j.sent();
114
127
  sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('ENTITY_NAME_STEP')); });
115
- _e.label = 7;
116
- case 7: return [2, {
128
+ _j.label = 10;
129
+ case 10: return [2, {
117
130
  data: data,
131
+ individualData: individualData,
118
132
  boardResponse: {
119
133
  user: boardData === null || boardData === void 0 ? void 0 : boardData.user,
120
134
  brand: boardData === null || boardData === void 0 ? void 0 : boardData.brand,
121
135
  bank_account: boardData === null || boardData === void 0 ? void 0 : boardData.bank_account,
122
136
  entity: entityData === null || entityData === void 0 ? void 0 : entityData.entity,
123
137
  merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant,
124
- name: (_c = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _c === void 0 ? void 0 : _c.names,
125
- contact: (_d = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _d === void 0 ? void 0 : _d.contact,
138
+ name: (_g = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _g === void 0 ? void 0 : _g.names,
139
+ contact: (_h = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _h === void 0 ? void 0 : _h.contact,
126
140
  individuals: boardData === null || boardData === void 0 ? void 0 : boardData.individuals,
127
141
  business: boardData === null || boardData === void 0 ? void 0 : boardData.business,
128
- entityTypes: entityTypes
142
+ entityTypes: entityTypes,
143
+ notification: boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification
129
144
  },
130
145
  token: token
131
146
  }];
@@ -151,58 +166,73 @@ export var resendOTP = createAsyncThunk('entityResendOTP', function (params, thu
151
166
  });
152
167
  }); });
153
168
  export var verifyEntityLeadOTP = createAsyncThunk('verifyEntityLeadOTP', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
154
- var _a, entity, settings, responseBody, payload, data, boardData, entityData, entityTypes, board_id, entityId;
155
- var _b, _c, _d, _e, _f, _g;
156
- return __generator(this, function (_h) {
157
- switch (_h.label) {
169
+ var _a, entity, settings, responseBody, payload, data, boardData, entityData, entityTypes, boardInfoData, individualData, _b, board_id, board_info_id, _c, id_2, type_2, serviceCallBack, _d, boardRes, individualRes, entityId;
170
+ var _e, _f, _g, _h, _j, _k, _l;
171
+ return __generator(this, function (_m) {
172
+ switch (_m.label) {
158
173
  case 0:
159
174
  _a = thunkApi.getState(), entity = _a.entity, settings = _a.settings;
160
175
  responseBody = entity.data.verify.responseBody;
161
176
  payload = {
162
177
  data: params.otp,
163
- service_name: (_b = responseBody === null || responseBody === void 0 ? void 0 : responseBody.verification_by) === null || _b === void 0 ? void 0 : _b.service_name,
178
+ service_name: (_e = responseBody === null || responseBody === void 0 ? void 0 : responseBody.verification_by) === null || _e === void 0 ? void 0 : _e.service_name,
164
179
  verify_token: responseBody === null || responseBody === void 0 ? void 0 : responseBody.verify_token,
165
180
  step_name: ENTITY_STEP_NAMES.PHONE_AUTH,
166
181
  encryption_contract: ['data']
167
182
  };
168
183
  return [4, API.leadService.verifyLeadOTP(payload)];
169
184
  case 1:
170
- data = (_h.sent()).data;
171
- entityTypes = undefined;
172
- if (!!data.errors) return [3, 7];
173
- board_id = responseBody === null || responseBody === void 0 ? void 0 : responseBody.id;
174
- if (!board_id) return [3, 3];
185
+ data = (_m.sent()).data;
186
+ individualData = undefined;
187
+ if (!!data.errors) return [3, 10];
188
+ _b = data || {}, board_id = _b.id, board_info_id = _b.board_info_id;
189
+ if (!board_id) return [3, 6];
175
190
  return [4, API.boardService.retrieveBoardDetails(board_id)];
176
191
  case 2:
177
- boardData = _h.sent();
178
- _h.label = 3;
192
+ boardData = _m.sent();
193
+ if (!board_info_id) return [3, 4];
194
+ return [4, API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id })];
179
195
  case 3:
180
- entityId = (_c = boardData === null || boardData === void 0 ? void 0 : boardData.entity) === null || _c === void 0 ? void 0 : _c.id;
181
- if (!entityId) return [3, 5];
182
- return [4, API.entityService.retrieveEntity(entityId)];
196
+ boardInfoData = _m.sent();
197
+ _m.label = 4;
183
198
  case 4:
184
- entityData = _h.sent();
185
- _h.label = 5;
199
+ _c = ((_f = boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification) === null || _f === void 0 ? void 0 : _f.recipient) || {}, id_2 = _c.id, type_2 = _c.type;
200
+ serviceCallBack = function () { return API.individualService.retrieveIndividual(id_2, type_2); };
201
+ return [4, retrieveIndividualData(type_2, boardData, serviceCallBack)];
186
202
  case 5:
187
- (_e = (_d = settings.data.appConfig).onStepCompleted) === null || _e === void 0 ? void 0 : _e.call(_d, settings.data.activeScreen.name, { otp: params.otp });
188
- return [4, API.entityService.retrieveEntityType()];
203
+ _d = _m.sent(), boardRes = _d.boardRes, individualRes = _d.individualRes;
204
+ boardData = boardRes;
205
+ individualData = individualRes;
206
+ _m.label = 6;
189
207
  case 6:
190
- entityTypes = _h.sent();
208
+ entityId = (_g = boardData === null || boardData === void 0 ? void 0 : boardData.entity) === null || _g === void 0 ? void 0 : _g.id;
209
+ if (!entityId) return [3, 8];
210
+ return [4, API.entityService.retrieveEntity(entityId)];
211
+ case 7:
212
+ entityData = _m.sent();
213
+ _m.label = 8;
214
+ case 8:
215
+ (_j = (_h = settings.data.appConfig).onStepCompleted) === null || _j === void 0 ? void 0 : _j.call(_h, settings.data.activeScreen.name, { otp: params.otp });
216
+ return [4, API.entityService.retrieveEntityType()];
217
+ case 9:
218
+ entityTypes = _m.sent();
191
219
  sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('ENTITY_NAME_STEP')); });
192
- _h.label = 7;
193
- case 7: return [2, {
220
+ _m.label = 10;
221
+ case 10: return [2, {
194
222
  data: data,
223
+ individualData: individualData,
195
224
  boardResponse: {
196
225
  user: boardData === null || boardData === void 0 ? void 0 : boardData.user,
197
226
  brand: boardData === null || boardData === void 0 ? void 0 : boardData.brand,
198
227
  bank_account: boardData === null || boardData === void 0 ? void 0 : boardData.bank_account,
199
228
  entity: entityData === null || entityData === void 0 ? void 0 : entityData.entity,
200
229
  merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant,
201
- name: (_f = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _f === void 0 ? void 0 : _f.names,
202
- contact: (_g = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _g === void 0 ? void 0 : _g.contact,
230
+ name: (_k = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _k === void 0 ? void 0 : _k.names,
231
+ contact: (_l = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _l === void 0 ? void 0 : _l.contact,
203
232
  individuals: boardData === null || boardData === void 0 ? void 0 : boardData.individuals,
204
233
  business: boardData === null || boardData === void 0 ? void 0 : boardData.business,
205
- entityTypes: entityTypes
234
+ entityTypes: entityTypes,
235
+ notification: boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification
206
236
  },
207
237
  formData: params
208
238
  }];
@@ -479,13 +509,13 @@ export var entitySlice = createSlice({
479
509
  var _a, _b, _c, _d;
480
510
  state.error = null;
481
511
  state.customLoading = false;
482
- var _e = action.payload, data = _e.data, token = _e.token, boardResponse = _e.boardResponse;
512
+ var _e = action.payload, data = _e.data, token = _e.token, boardResponse = _e.boardResponse, individualData = _e.individualData;
483
513
  var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
484
514
  if (description) {
485
515
  state.error = description;
486
516
  return;
487
517
  }
488
- state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, data), state.data.verify.responseBody), boardResponse), { board_id: data.id });
518
+ state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, data), state.data.verify.responseBody), boardResponse), { board_id: data.id, individualData: individualData });
489
519
  state.data.verify.token = token;
490
520
  var _f = boardResponse || {}, entity = _f.entity, entityTypes = _f.entityTypes;
491
521
  if (entity) {
@@ -560,7 +590,7 @@ export var entitySlice = createSlice({
560
590
  var _a, _b, _c, _d;
561
591
  state.loading = false;
562
592
  state.error = null;
563
- var _e = action.payload, data = _e.data, boardResponse = _e.boardResponse, formData = _e.formData;
593
+ var _e = action.payload, data = _e.data, boardResponse = _e.boardResponse, formData = _e.formData, individualData = _e.individualData;
564
594
  var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
565
595
  if (description) {
566
596
  state.error = description;
@@ -568,7 +598,7 @@ export var entitySlice = createSlice({
568
598
  }
569
599
  state.data.otpData = formData;
570
600
  state.data.otpData.responseBody = data;
571
- state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), boardResponse);
601
+ state.data.verify.responseBody = __assign(__assign(__assign({}, state.data.verify.responseBody), boardResponse), { individualData: individualData });
572
602
  var _f = boardResponse || {}, entity = _f.entity, entityTypes = _f.entityTypes;
573
603
  var _g = entity || {}, license = _g.license, type = _g.type, capital = _g.capital, activities = _g.activities, legal_name = _g.legal_name;
574
604
  var legalName = legal_name;
@@ -688,7 +718,11 @@ export var entitySlice = createSlice({
688
718
  return;
689
719
  }
690
720
  var flows = response.flows;
691
- state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { flows: flows });
721
+ var _b = state.data.verify.responseBody || {}, individuals = _b.individuals, individualData = _b.individualData;
722
+ var data_state = (individualData || {}).data_state;
723
+ state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, state.data.verify.responseBody), { flows: flows }), (individualData && { user: individualData })), (data_state && {
724
+ individuals: __assign(__assign({}, individuals), { data_state: data_state })
725
+ }));
692
726
  })
693
727
  .addCase(updateBoardSuccess.pending, function (state) {
694
728
  state.loading = true;
@@ -0,0 +1,147 @@
1
+ import { RootState } from '../../../app/store';
2
+ import { FlowsTypes, IndividualExtraFormValues, OTPFormValues, ResponseData, SharedState, ActionState, User, IndividualPersonalInfoFormValues, IndividualEmailMobileFormValues, IndividualMobileFormValues, AsyncThunkParams } from '../../../@types';
3
+ import { CancelToken } from 'axios';
4
+ interface VerifyLeadTokenProps {
5
+ token: string;
6
+ isInternally?: boolean;
7
+ isUpdatePhoneInfo?: boolean;
8
+ }
9
+ export declare const verifyToken: import("@reduxjs/toolkit").AsyncThunk<{
10
+ data: any;
11
+ boardResponse: {
12
+ brand: any;
13
+ bank_account: any;
14
+ entity: any;
15
+ merchant: any;
16
+ merchant_id: any;
17
+ name: any;
18
+ contact: any;
19
+ individuals: any;
20
+ countries: import("../../../@types").CountryCode[];
21
+ countryCode: any;
22
+ notification: any;
23
+ business: any;
24
+ flows: any;
25
+ };
26
+ token: string;
27
+ }, VerifyLeadTokenProps, {}>;
28
+ export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<void, VerifyLeadTokenProps, {}>;
29
+ export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
30
+ data: any;
31
+ }, void, {}>;
32
+ declare type AddDetailsParams = {
33
+ user: User;
34
+ userList: User[];
35
+ };
36
+ export declare const addDetailsAsync: import("@reduxjs/toolkit").AsyncThunk<{
37
+ userList: User[];
38
+ individualId: string;
39
+ countryCode: string;
40
+ countries: import("../../../@types").CountryCode[];
41
+ }, AddDetailsParams, {}>;
42
+ declare type RequestEmail = {
43
+ user: User;
44
+ collectInfo: IndividualEmailMobileFormValues;
45
+ };
46
+ export declare const requestDetailsByEmail: import("@reduxjs/toolkit").AsyncThunk<{
47
+ data: any;
48
+ individualData: User | undefined;
49
+ }, RequestEmail, {}>;
50
+ export declare const getIndividualList: import("@reduxjs/toolkit").AsyncThunk<User[], string, {}>;
51
+ export declare const getCityList: import("@reduxjs/toolkit").AsyncThunk<any, string, {}>;
52
+ declare type RetrieveIndividualInfoParams = {
53
+ id: string;
54
+ type: string;
55
+ countryCode?: string;
56
+ };
57
+ export declare const retrieveIndividualInfo: import("@reduxjs/toolkit").AsyncThunk<{
58
+ data: any;
59
+ countryCode: string | undefined;
60
+ countries: import("../../../@types").CountryCode[];
61
+ }, RetrieveIndividualInfoParams, {}>;
62
+ export declare const retrieveDataList: import("@reduxjs/toolkit").AsyncThunk<{
63
+ sourceIncome: any;
64
+ monthlyIncome: any;
65
+ occupation: any;
66
+ }, string, {}>;
67
+ export declare const retrieveBoardStatus: import("@reduxjs/toolkit").AsyncThunk<{
68
+ flows: any;
69
+ }, void, {}>;
70
+ export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<{
71
+ data: any;
72
+ }, string, {}>;
73
+ export declare const verifyLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
74
+ data: any;
75
+ boardResponse: {
76
+ brand: any;
77
+ bank_account: any;
78
+ entity: any;
79
+ merchant: any;
80
+ merchant_id: any;
81
+ name: any;
82
+ contact: any;
83
+ individuals: any;
84
+ countries: import("../../../@types").CountryCode[];
85
+ countryCode: any;
86
+ notification: any;
87
+ business: any;
88
+ flows: any;
89
+ };
90
+ formData: {
91
+ otp: string;
92
+ };
93
+ }, OTPFormValues, {}>;
94
+ export declare const updatePhoneInfo: import("@reduxjs/toolkit").AsyncThunk<{
95
+ data: any;
96
+ formData: IndividualMobileFormValues;
97
+ }, AsyncThunkParams<IndividualMobileFormValues>, {}>;
98
+ export declare const updateIndividualPersonalInfo: import("@reduxjs/toolkit").AsyncThunk<{
99
+ data: any;
100
+ formData: IndividualPersonalInfoFormValues;
101
+ }, AsyncThunkParams<IndividualPersonalInfoFormValues>, {}>;
102
+ export declare const updateIndividualInfo: import("@reduxjs/toolkit").AsyncThunk<{
103
+ data: any;
104
+ formData: IndividualExtraFormValues;
105
+ individualData: User;
106
+ }, AsyncThunkParams<IndividualExtraFormValues>, {}>;
107
+ export declare const checkEmailAvailability: import("@reduxjs/toolkit").AsyncThunk<{
108
+ response: any;
109
+ formData: string;
110
+ } | undefined, {
111
+ email: string;
112
+ cancelToken: CancelToken;
113
+ onSuccess?: (() => void) | undefined;
114
+ }, {}>;
115
+ export declare const updateBoardSuccess: import("@reduxjs/toolkit").AsyncThunk<{
116
+ response: any;
117
+ formData: void;
118
+ individualData: any;
119
+ } | undefined, void, {}>;
120
+ declare type VerifyData = {
121
+ token: string;
122
+ };
123
+ export interface IndividualData {
124
+ verify: ResponseData & VerifyData;
125
+ otpData: OTPFormValues & ResponseData;
126
+ individualPhoneInfo: IndividualMobileFormValues & ResponseData;
127
+ individualCollectData: IndividualEmailMobileFormValues & ResponseData;
128
+ individualPersonalData: IndividualPersonalInfoFormValues & ResponseData;
129
+ individualData: IndividualExtraFormValues & ResponseData;
130
+ flowName: FlowsTypes;
131
+ }
132
+ export interface IndividualState extends SharedState<IndividualData> {
133
+ customLoading?: boolean;
134
+ cityLoading?: boolean;
135
+ }
136
+ export declare const individualSlice: import("@reduxjs/toolkit").Slice<IndividualState, {
137
+ clearError: (state: IndividualState) => void;
138
+ stopLoader: (state: IndividualState) => void;
139
+ resetOTPScreen: (state: IndividualState) => void;
140
+ resetIndividualData: (state: IndividualState) => void;
141
+ civilIDUploadingStatus: (state: IndividualState, action: ActionState<boolean>) => void;
142
+ signatureFileUploadingStatus: (state: IndividualState, action: ActionState<boolean>) => void;
143
+ }, "individual/store">;
144
+ export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, civilIDUploadingStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>, signatureFileUploadingStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>, resetIndividualData: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
145
+ declare const _default: import("redux").Reducer<IndividualState, import("redux").AnyAction>;
146
+ export default _default;
147
+ export declare const individualSelector: (state: RootState) => IndividualState;
@@ -67,11 +67,11 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
67
67
  };
68
68
  var _a;
69
69
  import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
70
- import API from '@api';
71
- import { FlowsTypes, IndividualGender, IndividualType, DocumentPurpose } from '@types';
72
- import { handleNextScreenStep, handlePrevScreenStep, handleSetCountryByIso2 } from '@app/settings';
73
- import { defaultCountry, IDENTIFICATION_TYPE, INDIVIDUAl_STEP_NAMES } from '@constants';
74
- import { convertNumbers2English, dateFormat, findCountryByIddPrefix, findCountryByIso2, hasNoneEditableValue, getUserNameObject, getUserName, sleep, isValidEmail, getRecentDocumentBasedOnPurpose, formatNumberAsCurrency, removeAllCharsFromNumber, mapUserList, sortUserList, getIndividualType } from '@utils';
70
+ import API from '../../../api';
71
+ import { FlowsTypes, IndividualGender, DocumentPurpose } from '../../../@types';
72
+ import { handleNextScreenStep, handlePrevScreenStep, handleSetCountryByIso2 } from '../../../app/settings';
73
+ import { defaultCountry, IDENTIFICATION_TYPE, INDIVIDUAl_STEP_NAMES } from '../../../constants';
74
+ import { convertNumbers2English, dateFormat, findCountryByIddPrefix, findCountryByIso2, hasNoneEditableValue, getUserNameObject, getUserName, sleep, isValidEmail, getRecentDocumentBasedOnPurpose, formatNumberAsCurrency, removeAllCharsFromNumber, mapUserList, sortUserList, getIndividualType } from '../../../utils';
75
75
  export var verifyToken = createAsyncThunk('individual/verifyToken', function (_a, thunkApi) {
76
76
  var token = _a.token, isInternally = _a.isInternally, isUpdatePhoneInfo = _a.isUpdatePhoneInfo;
77
77
  return __awaiter(void 0, void 0, void 0, function () {
@@ -238,7 +238,7 @@ export var addDetailsAsync = createAsyncThunk('individual/addDetailsAsync', func
238
238
  });
239
239
  }); });
240
240
  export var requestDetailsByEmail = createAsyncThunk('individual/requestDetailsByEmail', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
241
- var individual, _a, merchant_id, board_id, user, collectInfo, id, objects, ids, _b, resEmail, resPhone, isPhoneAndEmailAvailable, email, mobile, countryCode, hasContact, individualData, hasPhone, requestBody, data_2, list, payload, data;
241
+ var individual, _a, merchant_id, board_id, user, collectInfo, id, objects, ids, _b, resEmail, resPhone, isPhoneAndEmailAvailable, email, mobile, countryCode, hasContact, individualData, hasPhone, requestBody, data_2, user_1, payload, data;
242
242
  var _c;
243
243
  return __generator(this, function (_d) {
244
244
  switch (_d.label) {
@@ -269,8 +269,8 @@ export var requestDetailsByEmail = createAsyncThunk('individual/requestDetailsBy
269
269
  return [4, API.individualService.updateMultipleIndividual(requestBody)];
270
270
  case 1:
271
271
  data_2 = _d.sent();
272
- list = sortUserList(mapUserList(data_2 === null || data_2 === void 0 ? void 0 : data_2.individuals)) || [];
273
- individualData = (list === null || list === void 0 ? void 0 : list[0]) && __assign({}, list[0]);
272
+ user_1 = (sortUserList(mapUserList(data_2 === null || data_2 === void 0 ? void 0 : data_2.individuals)) || [])[0];
273
+ individualData = user_1;
274
274
  _d.label = 2;
275
275
  case 2:
276
276
  payload = {
@@ -292,7 +292,7 @@ export var requestDetailsByEmail = createAsyncThunk('individual/requestDetailsBy
292
292
  return [4, API.boardService.requestDetailsByEmail(payload)];
293
293
  case 3:
294
294
  data = _d.sent();
295
- return [2, { data: data, userData: __assign({}, individualData) }];
295
+ return [2, { data: data, individualData: individualData }];
296
296
  }
297
297
  });
298
298
  }); });
@@ -330,23 +330,24 @@ export var getCityList = createAsyncThunk('individual/getCityList', function (co
330
330
  });
331
331
  }); });
332
332
  export var retrieveIndividualInfo = createAsyncThunk('individual/retrieveIndividualInfo', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
333
- var id, type, countryCode, settings, data, individualData;
334
- return __generator(this, function (_a) {
335
- switch (_a.label) {
333
+ var id, type, countryCode, settings, data, _a, isShareholder, isBoardMember, isBuyer, isCustomer, individualData;
334
+ return __generator(this, function (_b) {
335
+ switch (_b.label) {
336
336
  case 0:
337
337
  id = params.id, type = params.type, countryCode = params.countryCode;
338
338
  settings = thunkApi.getState().settings;
339
339
  return [4, API.individualService.retrieveIndividual(id, type)];
340
340
  case 1:
341
- data = _a.sent();
341
+ data = _b.sent();
342
+ _a = getIndividualType([type]), isShareholder = _a.isShareholder, isBoardMember = _a.isBoardMember, isBuyer = _a.isBuyer, isCustomer = _a.isCustomer;
342
343
  individualData = data === null || data === void 0 ? void 0 : data.user;
343
- if (type === IndividualType.SHARE_HOLDER)
344
+ if (isShareholder)
344
345
  individualData = data === null || data === void 0 ? void 0 : data.shareholder;
345
- else if (type === IndividualType.BOARD_MEMBER)
346
+ else if (isBoardMember)
346
347
  individualData = data === null || data === void 0 ? void 0 : data.board_member;
347
- else if (type === IndividualType.BUYER)
348
+ else if (isBuyer)
348
349
  individualData = data === null || data === void 0 ? void 0 : data.buyer;
349
- else if (type === IndividualType.CUSTOMER)
350
+ else if (isCustomer)
350
351
  individualData = data === null || data === void 0 ? void 0 : data.customer;
351
352
  return [2, {
352
353
  data: __assign(__assign({}, (individualData || {})), { objects: [type], individual_data_state: individualData === null || individualData === void 0 ? void 0 : individualData.data_state, object: type }),
@@ -636,7 +637,7 @@ export var updateIndividualPersonalInfo = createAsyncThunk('individual/updateInd
636
637
  export var updateIndividualInfo = createAsyncThunk('updateIndividualInfo', function (_a, thunkApi) {
637
638
  var formData = _a.formData, originalFormData = _a.originalFormData;
638
639
  return __awaiter(void 0, void 0, void 0, function () {
639
- var _b, settings, individual, _c, notification, user, id, _d, objects, ids, occupation, sourceIncome, monthlyIncome, isPEP, isInfluencer, shareCount, shareValue, civilID, signatureFileId, isOccupationNonEditable, isSourceIncomeNonEditable, isPEPNonEditable, isInfluencerNonEditable, isMonthlyIncomeNonEditable, isSharesAvailable, pepInfo, influencerInfo, occupationInfo, sourceIncomeInfo, monthlyIncomeInfo, userPayload, shareHolderPayload, boardMemberPayload, buyerMemberPayload, _e, isUser, isShareholder, isBoardMember, isBuyer, isCustomer, isUserORBuyerType, payload, requestBody, data, businessCountry, hasCivilIdDocument, hasSignatureDocument, isSendSignatureFile, civilIdDocument, signatureDocument, documentBody, documentBody, documentsList, documentBody, list, individualData;
640
+ var _b, settings, individual, _c, notification, user, id, _d, objects, ids, occupation, sourceIncome, monthlyIncome, isPEP, isInfluencer, shareCount, shareValue, civilID, signatureFileId, isOccupationNonEditable, isSourceIncomeNonEditable, isPEPNonEditable, isInfluencerNonEditable, isMonthlyIncomeNonEditable, isSharesAvailable, pepInfo, influencerInfo, occupationInfo, sourceIncomeInfo, monthlyIncomeInfo, userPayload, shareHolderPayload, boardMemberPayload, buyerMemberPayload, _e, isUser, isShareholder, isBoardMember, isBuyer, isCustomer, isUserORBuyerType, payload, requestBody, data, businessCountry, hasCivilIdDocument, hasSignatureDocument, isSendSignatureFile, civilIdDocument, signatureDocument, documentBody, documentBody, documentsList, documentBody, individualData;
640
641
  var _f, _g;
641
642
  return __generator(this, function (_h) {
642
643
  switch (_h.label) {
@@ -733,8 +734,7 @@ export var updateIndividualInfo = createAsyncThunk('updateIndividualInfo', funct
733
734
  _h.sent();
734
735
  _h.label = 7;
735
736
  case 7:
736
- list = sortUserList(mapUserList(data === null || data === void 0 ? void 0 : data.individuals)) || [];
737
- individualData = (list === null || list === void 0 ? void 0 : list[0]) && __assign({}, list[0]);
737
+ individualData = (sortUserList(mapUserList(data === null || data === void 0 ? void 0 : data.individuals)) || [])[0];
738
738
  thunkApi.dispatch(handleNextScreenStep());
739
739
  (_g = (_f = settings.data.appConfig).onStepCompleted) === null || _g === void 0 ? void 0 : _g.call(_f, settings.data.activeScreen.name, requestBody);
740
740
  return [2, { data: data, formData: originalFormData, individualData: individualData }];
@@ -1026,12 +1026,12 @@ export var individualSlice = createSlice({
1026
1026
  .addCase(requestDetailsByEmail.fulfilled, function (state, action) {
1027
1027
  state.loading = false;
1028
1028
  state.error = null;
1029
- var _a = action.payload, data = _a.data, userData = _a.userData;
1029
+ var _a = action.payload, data = _a.data, individualData = _a.individualData;
1030
1030
  var userList = (state.data.verify.responseBody || {}).userList;
1031
1031
  var list = userList || [];
1032
1032
  list = list.map(function (user) {
1033
1033
  var _a, _b;
1034
- var userInfo = user.id === (userData === null || userData === void 0 ? void 0 : userData.id) ? userData : user;
1034
+ var userInfo = user.id === (individualData === null || individualData === void 0 ? void 0 : individualData.id) ? individualData : user;
1035
1035
  return user.id === ((_b = (_a = data === null || data === void 0 ? void 0 : data.notification) === null || _a === void 0 ? void 0 : _a.recipient) === null || _b === void 0 ? void 0 : _b.id) ? __assign(__assign({}, userInfo), { isRequestedEmail: true }) : userInfo;
1036
1036
  });
1037
1037
  state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { requestEmailData: data, userList: list });
@@ -1,7 +1,8 @@
1
- import { RootState } from '@store';
2
- import { FlowsTypes, OTPFormValues, PasswordCreateFormValues, ResponseData, SharedState } from '@types';
1
+ import { RootState } from '../../../app/store';
2
+ import { FlowsTypes, OTPFormValues, PasswordCreateFormValues, ResponseData, SharedState } from '../../../@types';
3
3
  export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
4
4
  data: any;
5
+ individualData: any;
5
6
  boardResponse: any;
6
7
  token: string;
7
8
  }, string, {}>;
@@ -30,6 +31,7 @@ export declare const verifyOperationToken: import("@reduxjs/toolkit").AsyncThunk
30
31
  token: string;
31
32
  boardId: string;
32
33
  boardInfoId: string;
34
+ individualData: any;
33
35
  boardResponse: any;
34
36
  flows: any;
35
37
  }, {