@redneckz/wildless-cms-uni-blocks 0.14.951 → 0.14.952

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 (536) hide show
  1. package/bundle/api/apiBaseUrl.d.ts +0 -1
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +323 -128
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -0
  6. package/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +6 -4
  7. package/bundle/components/ApplicationLeadForm/parseEsiaProfile.d.ts +1 -1
  8. package/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -1
  9. package/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
  10. package/bundle/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -2
  11. package/bundle/components/ApplicationLeadForm/useSaveUserData.d.ts +2 -1
  12. package/bundle/components/Header/DropdownMenu.d.ts +2 -2
  13. package/bundle/components/Header/HeaderQuickActionsMenu.d.ts +1 -1
  14. package/bundle/retail/adaptors/getCreditFormTaskData.d.ts +3 -2
  15. package/bundle/retail/api/apiBaseUrl.d.ts +2 -1
  16. package/bundle/retail/api/checkCaptcha.d.ts +1 -0
  17. package/bundle/retail/api/checkCode.d.ts +1 -0
  18. package/bundle/retail/api/createDraftTask.d.ts +2 -1
  19. package/bundle/retail/api/createParticipant.d.ts +6 -0
  20. package/bundle/retail/api/sendMessage.d.ts +7 -0
  21. package/bundle/retail/api/updateUserTask.d.ts +14 -8
  22. package/bundle/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +9 -1
  23. package/bundle/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +2 -1
  24. package/bundle/retail/hooks/useRetailFormStore.d.ts +1 -1
  25. package/bundle/retail/model/LeadFormState.d.ts +2 -4
  26. package/bundle/retail/utils/checkNewMicroservice.d.ts +1 -0
  27. package/bundle/ui-kit/SearchBar/SearchBar.d.ts +1 -2
  28. package/bundle/ui-kit/SearchDialog/SearchDialog.d.ts +0 -2
  29. package/dist/api/apiBaseUrl.d.ts +0 -1
  30. package/dist/api/apiBaseUrl.js +1 -2
  31. package/dist/api/apiBaseUrl.js.map +1 -1
  32. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -1
  33. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  34. package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -0
  35. package/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +6 -4
  36. package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +35 -24
  37. package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  38. package/dist/components/ApplicationLeadForm/parseEsiaProfile.d.ts +1 -1
  39. package/dist/components/ApplicationLeadForm/parseEsiaProfile.js +13 -11
  40. package/dist/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
  41. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -1
  42. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +98 -4
  43. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  44. package/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
  45. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +3 -2
  46. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  47. package/dist/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -2
  48. package/dist/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
  49. package/dist/components/ApplicationLeadForm/useSaveUserData.d.ts +2 -1
  50. package/dist/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
  51. package/dist/components/CreditForm/CreditFormStatusTracker.js +16 -2
  52. package/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  53. package/dist/components/CreditForm/useCreditFormAPI.js +1 -1
  54. package/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
  55. package/dist/components/Footer/Footer.js +1 -1
  56. package/dist/components/Footer/Footer.js.map +1 -1
  57. package/dist/components/Footer/renderLogoSearchBar.js +2 -2
  58. package/dist/components/Footer/renderLogoSearchBar.js.map +1 -1
  59. package/dist/components/Header/DropdownMenu.d.ts +2 -2
  60. package/dist/components/Header/HeaderQuickActionsMenu.d.ts +1 -1
  61. package/dist/components/Header/HeaderQuickActionsMenu.js +5 -7
  62. package/dist/components/Header/HeaderQuickActionsMenu.js.map +1 -1
  63. package/dist/retail/adaptors/getCreditFormTaskData.d.ts +3 -2
  64. package/dist/retail/adaptors/getCreditFormTaskData.js +36 -25
  65. package/dist/retail/adaptors/getCreditFormTaskData.js.map +1 -1
  66. package/dist/retail/adaptors/utils.js +1 -1
  67. package/dist/retail/adaptors/utils.js.map +1 -1
  68. package/dist/retail/api/apiBaseUrl.d.ts +2 -1
  69. package/dist/retail/api/apiBaseUrl.js +3 -2
  70. package/dist/retail/api/apiBaseUrl.js.map +1 -1
  71. package/dist/retail/api/checkCaptcha.d.ts +1 -0
  72. package/dist/retail/api/checkCaptcha.js +10 -3
  73. package/dist/retail/api/checkCaptcha.js.map +1 -1
  74. package/dist/retail/api/checkCode.d.ts +1 -0
  75. package/dist/retail/api/checkCode.js +9 -1
  76. package/dist/retail/api/checkCode.js.map +1 -1
  77. package/dist/retail/api/createCaptcha.js +5 -1
  78. package/dist/retail/api/createCaptcha.js.map +1 -1
  79. package/dist/retail/api/createDraftTask.d.ts +2 -1
  80. package/dist/retail/api/createDraftTask.js.map +1 -1
  81. package/dist/retail/api/createParticipant.d.ts +6 -0
  82. package/dist/retail/api/createParticipant.js +6 -0
  83. package/dist/retail/api/createParticipant.js.map +1 -0
  84. package/dist/retail/api/doRequest.js +4 -2
  85. package/dist/retail/api/doRequest.js.map +1 -1
  86. package/dist/retail/api/esiaRequestProfile.js +11 -7
  87. package/dist/retail/api/esiaRequestProfile.js.map +1 -1
  88. package/dist/retail/api/getDictionaries.js +3 -1
  89. package/dist/retail/api/getDictionaries.js.map +1 -1
  90. package/dist/retail/api/getLink.js +5 -1
  91. package/dist/retail/api/getLink.js.map +1 -1
  92. package/dist/retail/api/sendCode.js +8 -1
  93. package/dist/retail/api/sendCode.js.map +1 -1
  94. package/dist/retail/api/sendMessage.d.ts +7 -0
  95. package/dist/retail/api/sendMessage.js +8 -0
  96. package/dist/retail/api/sendMessage.js.map +1 -0
  97. package/dist/retail/api/updateUserTask.d.ts +14 -8
  98. package/dist/retail/api/updateUserTask.js.map +1 -1
  99. package/dist/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
  100. package/dist/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  101. package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +9 -1
  102. package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +28 -4
  103. package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  104. package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -1
  105. package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  106. package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +2 -1
  107. package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +2 -1
  108. package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  109. package/dist/retail/hooks/useLeadFormData.js +3 -1
  110. package/dist/retail/hooks/useLeadFormData.js.map +1 -1
  111. package/dist/retail/hooks/useRetailFormStore.d.ts +1 -1
  112. package/dist/retail/model/LeadFormState.d.ts +2 -4
  113. package/dist/retail/utils/checkNewMicroservice.d.ts +1 -0
  114. package/dist/retail/utils/checkNewMicroservice.js +8 -0
  115. package/dist/retail/utils/checkNewMicroservice.js.map +1 -0
  116. package/dist/ui-kit/SearchBar/SearchBar.d.ts +1 -2
  117. package/dist/ui-kit/SearchBar/SearchBar.js +1 -1
  118. package/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  119. package/dist/ui-kit/SearchDialog/SearchDialog.d.ts +0 -2
  120. package/dist/ui-kit/SearchDialog/SearchDialog.js +2 -2
  121. package/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  122. package/dist/ui-kit/YandexMap/useYandexMaps.js +1 -2
  123. package/dist/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
  124. package/dist/wlc.json +1 -2
  125. package/lib/api/apiBaseUrl.d.ts +0 -1
  126. package/lib/api/apiBaseUrl.js +0 -1
  127. package/lib/api/apiBaseUrl.js.map +1 -1
  128. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.fixture.d.ts +1 -0
  129. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -1
  130. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  131. package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -0
  132. package/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +6 -4
  133. package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +33 -23
  134. package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  135. package/lib/components/ApplicationLeadForm/parseEsiaProfile.d.ts +1 -1
  136. package/lib/components/ApplicationLeadForm/parseEsiaProfile.js +13 -11
  137. package/lib/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
  138. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -1
  139. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +98 -4
  140. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  141. package/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
  142. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +3 -2
  143. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  144. package/lib/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -2
  145. package/lib/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
  146. package/lib/components/ApplicationLeadForm/useSaveUserData.d.ts +2 -1
  147. package/lib/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
  148. package/lib/components/CreditForm/CreditFormStatusTracker.js +16 -2
  149. package/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  150. package/lib/components/CreditForm/useCreditFormAPI.js +1 -1
  151. package/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
  152. package/lib/components/Footer/Footer.js +1 -1
  153. package/lib/components/Footer/Footer.js.map +1 -1
  154. package/lib/components/Footer/renderLogoSearchBar.js +2 -2
  155. package/lib/components/Footer/renderLogoSearchBar.js.map +1 -1
  156. package/lib/components/Header/DropdownMenu.d.ts +2 -2
  157. package/lib/components/Header/HeaderQuickActionsMenu.d.ts +1 -1
  158. package/lib/components/Header/HeaderQuickActionsMenu.js +5 -7
  159. package/lib/components/Header/HeaderQuickActionsMenu.js.map +1 -1
  160. package/lib/retail/adaptors/getCreditFormTaskData.d.ts +3 -2
  161. package/lib/retail/adaptors/getCreditFormTaskData.js +36 -25
  162. package/lib/retail/adaptors/getCreditFormTaskData.js.map +1 -1
  163. package/lib/retail/adaptors/utils.js +1 -1
  164. package/lib/retail/adaptors/utils.js.map +1 -1
  165. package/lib/retail/api/apiBaseUrl.d.ts +2 -1
  166. package/lib/retail/api/apiBaseUrl.js +2 -1
  167. package/lib/retail/api/apiBaseUrl.js.map +1 -1
  168. package/lib/retail/api/checkCaptcha.d.ts +1 -0
  169. package/lib/retail/api/checkCaptcha.js +10 -3
  170. package/lib/retail/api/checkCaptcha.js.map +1 -1
  171. package/lib/retail/api/checkCode.d.ts +1 -0
  172. package/lib/retail/api/checkCode.js +9 -1
  173. package/lib/retail/api/checkCode.js.map +1 -1
  174. package/lib/retail/api/createCaptcha.js +5 -1
  175. package/lib/retail/api/createCaptcha.js.map +1 -1
  176. package/lib/retail/api/createDraftTask.d.ts +2 -1
  177. package/lib/retail/api/createDraftTask.js.map +1 -1
  178. package/lib/retail/api/createParticipant.d.ts +6 -0
  179. package/lib/retail/api/createParticipant.js +3 -0
  180. package/lib/retail/api/createParticipant.js.map +1 -0
  181. package/lib/retail/api/doRequest.js +4 -2
  182. package/lib/retail/api/doRequest.js.map +1 -1
  183. package/lib/retail/api/esiaRequestProfile.js +11 -7
  184. package/lib/retail/api/esiaRequestProfile.js.map +1 -1
  185. package/lib/retail/api/getDictionaries.js +3 -1
  186. package/lib/retail/api/getDictionaries.js.map +1 -1
  187. package/lib/retail/api/getLink.js +5 -1
  188. package/lib/retail/api/getLink.js.map +1 -1
  189. package/lib/retail/api/sendCode.js +8 -1
  190. package/lib/retail/api/sendCode.js.map +1 -1
  191. package/lib/retail/api/sendMessage.d.ts +7 -0
  192. package/lib/retail/api/sendMessage.js +5 -0
  193. package/lib/retail/api/sendMessage.js.map +1 -0
  194. package/lib/retail/api/updateUserTask.d.ts +14 -8
  195. package/lib/retail/api/updateUserTask.js.map +1 -1
  196. package/lib/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
  197. package/lib/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  198. package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +9 -1
  199. package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +28 -4
  200. package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  201. package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -1
  202. package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  203. package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +2 -1
  204. package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +2 -1
  205. package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  206. package/lib/retail/hooks/useLeadFormData.js +4 -2
  207. package/lib/retail/hooks/useLeadFormData.js.map +1 -1
  208. package/lib/retail/hooks/useRetailFormStore.d.ts +1 -1
  209. package/lib/retail/model/LeadFormState.d.ts +2 -4
  210. package/lib/retail/utils/checkNewMicroservice.d.ts +1 -0
  211. package/lib/retail/utils/checkNewMicroservice.js +5 -0
  212. package/lib/retail/utils/checkNewMicroservice.js.map +1 -0
  213. package/lib/ui-kit/SearchBar/SearchBar.d.ts +1 -2
  214. package/lib/ui-kit/SearchBar/SearchBar.js +1 -1
  215. package/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  216. package/lib/ui-kit/SearchDialog/SearchDialog.d.ts +0 -2
  217. package/lib/ui-kit/SearchDialog/SearchDialog.js +2 -2
  218. package/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  219. package/lib/ui-kit/YandexMap/useYandexMaps.js +1 -2
  220. package/lib/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
  221. package/lib/wlc.json +1 -2
  222. package/mobile/bundle/api/apiBaseUrl.d.ts +0 -1
  223. package/mobile/bundle/bundle.umd.js +318 -123
  224. package/mobile/bundle/bundle.umd.min.js +1 -1
  225. package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -0
  226. package/mobile/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +6 -4
  227. package/mobile/bundle/components/ApplicationLeadForm/parseEsiaProfile.d.ts +1 -1
  228. package/mobile/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -1
  229. package/mobile/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
  230. package/mobile/bundle/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -2
  231. package/mobile/bundle/components/ApplicationLeadForm/useSaveUserData.d.ts +2 -1
  232. package/mobile/bundle/components/Header/DropdownMenu.d.ts +2 -2
  233. package/mobile/bundle/components/Header/HeaderQuickActionsMenu.d.ts +1 -1
  234. package/mobile/bundle/retail/adaptors/getCreditFormTaskData.d.ts +3 -2
  235. package/mobile/bundle/retail/api/apiBaseUrl.d.ts +2 -1
  236. package/mobile/bundle/retail/api/checkCaptcha.d.ts +1 -0
  237. package/mobile/bundle/retail/api/checkCode.d.ts +1 -0
  238. package/mobile/bundle/retail/api/createDraftTask.d.ts +2 -1
  239. package/mobile/bundle/retail/api/createParticipant.d.ts +6 -0
  240. package/mobile/bundle/retail/api/sendMessage.d.ts +7 -0
  241. package/mobile/bundle/retail/api/updateUserTask.d.ts +14 -8
  242. package/mobile/bundle/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +9 -1
  243. package/mobile/bundle/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +2 -1
  244. package/mobile/bundle/retail/hooks/useRetailFormStore.d.ts +1 -1
  245. package/mobile/bundle/retail/model/LeadFormState.d.ts +2 -4
  246. package/mobile/bundle/retail/utils/checkNewMicroservice.d.ts +1 -0
  247. package/mobile/bundle/ui-kit/SearchBar/SearchBar.d.ts +1 -2
  248. package/mobile/bundle/ui-kit/SearchDialog/SearchDialog.d.ts +0 -2
  249. package/mobile/dist/api/apiBaseUrl.d.ts +0 -1
  250. package/mobile/dist/api/apiBaseUrl.js +1 -2
  251. package/mobile/dist/api/apiBaseUrl.js.map +1 -1
  252. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -1
  253. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  254. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -0
  255. package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +6 -4
  256. package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +35 -24
  257. package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  258. package/mobile/dist/components/ApplicationLeadForm/parseEsiaProfile.d.ts +1 -1
  259. package/mobile/dist/components/ApplicationLeadForm/parseEsiaProfile.js +13 -11
  260. package/mobile/dist/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
  261. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -1
  262. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +98 -4
  263. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  264. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
  265. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +3 -2
  266. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  267. package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -2
  268. package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
  269. package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.d.ts +2 -1
  270. package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
  271. package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js +16 -2
  272. package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  273. package/mobile/dist/components/CreditForm/useCreditFormAPI.js +1 -1
  274. package/mobile/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
  275. package/mobile/dist/components/Footer/Footer.js +1 -1
  276. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  277. package/mobile/dist/components/Header/DropdownMenu.d.ts +2 -2
  278. package/mobile/dist/components/Header/HeaderQuickActionsMenu.d.ts +1 -1
  279. package/mobile/dist/components/Header/HeaderQuickActionsMenu.js +5 -7
  280. package/mobile/dist/components/Header/HeaderQuickActionsMenu.js.map +1 -1
  281. package/mobile/dist/retail/adaptors/getCreditFormTaskData.d.ts +3 -2
  282. package/mobile/dist/retail/adaptors/getCreditFormTaskData.js +36 -25
  283. package/mobile/dist/retail/adaptors/getCreditFormTaskData.js.map +1 -1
  284. package/mobile/dist/retail/adaptors/utils.js +1 -1
  285. package/mobile/dist/retail/adaptors/utils.js.map +1 -1
  286. package/mobile/dist/retail/api/apiBaseUrl.d.ts +2 -1
  287. package/mobile/dist/retail/api/apiBaseUrl.js +3 -2
  288. package/mobile/dist/retail/api/apiBaseUrl.js.map +1 -1
  289. package/mobile/dist/retail/api/checkCaptcha.d.ts +1 -0
  290. package/mobile/dist/retail/api/checkCaptcha.js +10 -3
  291. package/mobile/dist/retail/api/checkCaptcha.js.map +1 -1
  292. package/mobile/dist/retail/api/checkCode.d.ts +1 -0
  293. package/mobile/dist/retail/api/checkCode.js +9 -1
  294. package/mobile/dist/retail/api/checkCode.js.map +1 -1
  295. package/mobile/dist/retail/api/createCaptcha.js +5 -1
  296. package/mobile/dist/retail/api/createCaptcha.js.map +1 -1
  297. package/mobile/dist/retail/api/createDraftTask.d.ts +2 -1
  298. package/mobile/dist/retail/api/createDraftTask.js.map +1 -1
  299. package/mobile/dist/retail/api/createParticipant.d.ts +6 -0
  300. package/mobile/dist/retail/api/createParticipant.js +6 -0
  301. package/mobile/dist/retail/api/createParticipant.js.map +1 -0
  302. package/mobile/dist/retail/api/doRequest.js +4 -2
  303. package/mobile/dist/retail/api/doRequest.js.map +1 -1
  304. package/mobile/dist/retail/api/esiaRequestProfile.js +11 -7
  305. package/mobile/dist/retail/api/esiaRequestProfile.js.map +1 -1
  306. package/mobile/dist/retail/api/getDictionaries.js +3 -1
  307. package/mobile/dist/retail/api/getDictionaries.js.map +1 -1
  308. package/mobile/dist/retail/api/getLink.js +5 -1
  309. package/mobile/dist/retail/api/getLink.js.map +1 -1
  310. package/mobile/dist/retail/api/sendCode.js +8 -1
  311. package/mobile/dist/retail/api/sendCode.js.map +1 -1
  312. package/mobile/dist/retail/api/sendMessage.d.ts +7 -0
  313. package/mobile/dist/retail/api/sendMessage.js +8 -0
  314. package/mobile/dist/retail/api/sendMessage.js.map +1 -0
  315. package/mobile/dist/retail/api/updateUserTask.d.ts +14 -8
  316. package/mobile/dist/retail/api/updateUserTask.js.map +1 -1
  317. package/mobile/dist/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
  318. package/mobile/dist/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  319. package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +9 -1
  320. package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +28 -4
  321. package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  322. package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -1
  323. package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  324. package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +2 -1
  325. package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +2 -1
  326. package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  327. package/mobile/dist/retail/hooks/useLeadFormData.js +3 -1
  328. package/mobile/dist/retail/hooks/useLeadFormData.js.map +1 -1
  329. package/mobile/dist/retail/hooks/useRetailFormStore.d.ts +1 -1
  330. package/mobile/dist/retail/model/LeadFormState.d.ts +2 -4
  331. package/mobile/dist/retail/utils/checkNewMicroservice.d.ts +1 -0
  332. package/mobile/dist/retail/utils/checkNewMicroservice.js +8 -0
  333. package/mobile/dist/retail/utils/checkNewMicroservice.js.map +1 -0
  334. package/mobile/dist/ui-kit/SearchBar/SearchBar.d.ts +1 -2
  335. package/mobile/dist/ui-kit/SearchBar/SearchBar.js +1 -1
  336. package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  337. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.d.ts +0 -2
  338. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js +2 -2
  339. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  340. package/mobile/dist/ui-kit/YandexMap/useYandexMaps.js +1 -2
  341. package/mobile/dist/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
  342. package/mobile/dist/wlc.json +1 -2
  343. package/mobile/lib/api/apiBaseUrl.d.ts +0 -1
  344. package/mobile/lib/api/apiBaseUrl.js +0 -1
  345. package/mobile/lib/api/apiBaseUrl.js.map +1 -1
  346. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -1
  347. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  348. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -0
  349. package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +6 -4
  350. package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +33 -23
  351. package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  352. package/mobile/lib/components/ApplicationLeadForm/parseEsiaProfile.d.ts +1 -1
  353. package/mobile/lib/components/ApplicationLeadForm/parseEsiaProfile.js +13 -11
  354. package/mobile/lib/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
  355. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -1
  356. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +98 -4
  357. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  358. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
  359. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +3 -2
  360. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  361. package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -2
  362. package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
  363. package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.d.ts +2 -1
  364. package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
  365. package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js +16 -2
  366. package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  367. package/mobile/lib/components/CreditForm/useCreditFormAPI.js +1 -1
  368. package/mobile/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
  369. package/mobile/lib/components/Footer/Footer.js +1 -1
  370. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  371. package/mobile/lib/components/Header/DropdownMenu.d.ts +2 -2
  372. package/mobile/lib/components/Header/HeaderQuickActionsMenu.d.ts +1 -1
  373. package/mobile/lib/components/Header/HeaderQuickActionsMenu.js +5 -7
  374. package/mobile/lib/components/Header/HeaderQuickActionsMenu.js.map +1 -1
  375. package/mobile/lib/retail/adaptors/getCreditFormTaskData.d.ts +3 -2
  376. package/mobile/lib/retail/adaptors/getCreditFormTaskData.js +36 -25
  377. package/mobile/lib/retail/adaptors/getCreditFormTaskData.js.map +1 -1
  378. package/mobile/lib/retail/adaptors/utils.js +1 -1
  379. package/mobile/lib/retail/adaptors/utils.js.map +1 -1
  380. package/mobile/lib/retail/api/apiBaseUrl.d.ts +2 -1
  381. package/mobile/lib/retail/api/apiBaseUrl.js +2 -1
  382. package/mobile/lib/retail/api/apiBaseUrl.js.map +1 -1
  383. package/mobile/lib/retail/api/checkCaptcha.d.ts +1 -0
  384. package/mobile/lib/retail/api/checkCaptcha.js +10 -3
  385. package/mobile/lib/retail/api/checkCaptcha.js.map +1 -1
  386. package/mobile/lib/retail/api/checkCode.d.ts +1 -0
  387. package/mobile/lib/retail/api/checkCode.js +9 -1
  388. package/mobile/lib/retail/api/checkCode.js.map +1 -1
  389. package/mobile/lib/retail/api/createCaptcha.js +5 -1
  390. package/mobile/lib/retail/api/createCaptcha.js.map +1 -1
  391. package/mobile/lib/retail/api/createDraftTask.d.ts +2 -1
  392. package/mobile/lib/retail/api/createDraftTask.js.map +1 -1
  393. package/mobile/lib/retail/api/createParticipant.d.ts +6 -0
  394. package/mobile/lib/retail/api/createParticipant.js +3 -0
  395. package/mobile/lib/retail/api/createParticipant.js.map +1 -0
  396. package/mobile/lib/retail/api/doRequest.js +4 -2
  397. package/mobile/lib/retail/api/doRequest.js.map +1 -1
  398. package/mobile/lib/retail/api/esiaRequestProfile.js +11 -7
  399. package/mobile/lib/retail/api/esiaRequestProfile.js.map +1 -1
  400. package/mobile/lib/retail/api/getDictionaries.js +3 -1
  401. package/mobile/lib/retail/api/getDictionaries.js.map +1 -1
  402. package/mobile/lib/retail/api/getLink.js +5 -1
  403. package/mobile/lib/retail/api/getLink.js.map +1 -1
  404. package/mobile/lib/retail/api/sendCode.js +8 -1
  405. package/mobile/lib/retail/api/sendCode.js.map +1 -1
  406. package/mobile/lib/retail/api/sendMessage.d.ts +7 -0
  407. package/mobile/lib/retail/api/sendMessage.js +5 -0
  408. package/mobile/lib/retail/api/sendMessage.js.map +1 -0
  409. package/mobile/lib/retail/api/updateUserTask.d.ts +14 -8
  410. package/mobile/lib/retail/api/updateUserTask.js.map +1 -1
  411. package/mobile/lib/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
  412. package/mobile/lib/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  413. package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +9 -1
  414. package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +28 -4
  415. package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  416. package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -1
  417. package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  418. package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +2 -1
  419. package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +2 -1
  420. package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  421. package/mobile/lib/retail/hooks/useLeadFormData.js +4 -2
  422. package/mobile/lib/retail/hooks/useLeadFormData.js.map +1 -1
  423. package/mobile/lib/retail/hooks/useRetailFormStore.d.ts +1 -1
  424. package/mobile/lib/retail/model/LeadFormState.d.ts +2 -4
  425. package/mobile/lib/retail/utils/checkNewMicroservice.d.ts +1 -0
  426. package/mobile/lib/retail/utils/checkNewMicroservice.js +5 -0
  427. package/mobile/lib/retail/utils/checkNewMicroservice.js.map +1 -0
  428. package/mobile/lib/ui-kit/SearchBar/SearchBar.d.ts +1 -2
  429. package/mobile/lib/ui-kit/SearchBar/SearchBar.js +1 -1
  430. package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  431. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.d.ts +0 -2
  432. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js +2 -2
  433. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  434. package/mobile/lib/ui-kit/YandexMap/useYandexMaps.js +1 -2
  435. package/mobile/lib/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
  436. package/mobile/lib/wlc.json +1 -2
  437. package/mobile/src/api/apiBaseUrl.ts +0 -1
  438. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +3 -0
  439. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +2 -0
  440. package/mobile/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +50 -24
  441. package/mobile/src/components/ApplicationLeadForm/parseEsiaProfile.ts +17 -11
  442. package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +129 -3
  443. package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +9 -1
  444. package/mobile/src/components/ApplicationLeadForm/useLeadFormStore.ts +2 -1
  445. package/mobile/src/components/ApplicationLeadForm/useSaveUserData.ts +2 -1
  446. package/mobile/src/components/CreditForm/CreditFormStatusTracker.tsx +16 -2
  447. package/mobile/src/components/CreditForm/useCreditFormAPI.tsx +1 -1
  448. package/mobile/src/components/Footer/Footer.tsx +3 -5
  449. package/mobile/src/components/Header/DropdownMenu.tsx +2 -2
  450. package/mobile/src/components/Header/HeaderQuickActionsMenu.tsx +7 -9
  451. package/mobile/src/retail/adaptors/getCreditFormTaskData.ts +42 -28
  452. package/mobile/src/retail/adaptors/utils.ts +1 -1
  453. package/mobile/src/retail/api/apiBaseUrl.ts +2 -1
  454. package/mobile/src/retail/api/checkCaptcha.ts +10 -2
  455. package/mobile/src/retail/api/checkCode.ts +11 -2
  456. package/mobile/src/retail/api/createCaptcha.ts +11 -4
  457. package/mobile/src/retail/api/createDraftTask.ts +2 -1
  458. package/mobile/src/retail/api/createParticipant.ts +17 -0
  459. package/mobile/src/retail/api/doRequest.ts +17 -12
  460. package/mobile/src/retail/api/esiaRequestProfile.ts +10 -2
  461. package/mobile/src/retail/api/getDictionaries.ts +6 -1
  462. package/mobile/src/retail/api/getLink.ts +10 -2
  463. package/mobile/src/retail/api/sendCode.ts +9 -1
  464. package/mobile/src/retail/api/sendMessage.ts +12 -0
  465. package/mobile/src/retail/api/updateUserTask.ts +14 -9
  466. package/mobile/src/retail/components/CaptchaDialog/CaptchaDialog.tsx +1 -1
  467. package/mobile/src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx +54 -21
  468. package/mobile/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +2 -1
  469. package/mobile/src/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +3 -0
  470. package/mobile/src/retail/hooks/useLeadFormData.ts +7 -2
  471. package/mobile/src/retail/model/LeadFormState.ts +2 -4
  472. package/mobile/src/retail/utils/checkNewMicroservice.ts +5 -0
  473. package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +1 -3
  474. package/mobile/src/ui-kit/SearchDialog/SearchDialog.tsx +28 -39
  475. package/mobile/src/ui-kit/YandexMap/useYandexMaps.ts +1 -4
  476. package/mobile/src/wlc.json +2 -2
  477. package/package.json +1 -1
  478. package/src/api/apiBaseUrl.ts +0 -1
  479. package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.tsx +15 -0
  480. package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +3 -0
  481. package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +2 -0
  482. package/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +50 -24
  483. package/src/components/ApplicationLeadForm/parseEsiaProfile.ts +17 -11
  484. package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +129 -3
  485. package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +9 -1
  486. package/src/components/ApplicationLeadForm/useLeadFormStore.ts +2 -1
  487. package/src/components/ApplicationLeadForm/useSaveUserData.ts +2 -1
  488. package/src/components/CreditForm/CreditForm.fixture.tsx +12 -18
  489. package/src/components/CreditForm/CreditFormStatusTracker.tsx +16 -2
  490. package/src/components/CreditForm/useCreditFormAPI.tsx +1 -1
  491. package/src/components/Footer/Footer.tsx +3 -5
  492. package/src/components/Footer/renderLogoSearchBar.tsx +2 -7
  493. package/src/components/Header/DropdownMenu.tsx +2 -2
  494. package/src/components/Header/HeaderQuickActionsMenu.tsx +7 -9
  495. package/src/retail/adaptors/getCreditFormTaskData.ts +42 -28
  496. package/src/retail/adaptors/utils.ts +1 -1
  497. package/src/retail/api/apiBaseUrl.ts +2 -1
  498. package/src/retail/api/checkCaptcha.ts +10 -2
  499. package/src/retail/api/checkCode.ts +11 -2
  500. package/src/retail/api/createCaptcha.ts +11 -4
  501. package/src/retail/api/createDraftTask.ts +2 -1
  502. package/src/retail/api/createParticipant.ts +17 -0
  503. package/src/retail/api/doRequest.ts +17 -12
  504. package/src/retail/api/esiaRequestProfile.ts +10 -2
  505. package/src/retail/api/getDictionaries.ts +6 -1
  506. package/src/retail/api/getLink.ts +10 -2
  507. package/src/retail/api/sendCode.ts +9 -1
  508. package/src/retail/api/sendMessage.ts +12 -0
  509. package/src/retail/api/updateUserTask.ts +14 -9
  510. package/src/retail/components/CaptchaDialog/CaptchaDialog.tsx +1 -1
  511. package/src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx +54 -21
  512. package/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +2 -1
  513. package/src/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +3 -0
  514. package/src/retail/hooks/useLeadFormData.ts +7 -2
  515. package/src/retail/model/LeadFormState.ts +2 -4
  516. package/src/retail/utils/checkNewMicroservice.ts +5 -0
  517. package/src/ui-kit/SearchBar/SearchBar.tsx +1 -3
  518. package/src/ui-kit/SearchDialog/SearchDialog.tsx +28 -39
  519. package/src/ui-kit/YandexMap/useYandexMaps.ts +1 -4
  520. package/src/wlc.json +2 -2
  521. package/bundle/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +0 -8
  522. package/dist/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +0 -8
  523. package/dist/components/ApplicationLeadForm/renderAgreementSubmit.js +0 -14
  524. package/dist/components/ApplicationLeadForm/renderAgreementSubmit.js.map +0 -1
  525. package/lib/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +0 -8
  526. package/lib/components/ApplicationLeadForm/renderAgreementSubmit.js +0 -11
  527. package/lib/components/ApplicationLeadForm/renderAgreementSubmit.js.map +0 -1
  528. package/mobile/bundle/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +0 -8
  529. package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +0 -8
  530. package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.js +0 -14
  531. package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.js.map +0 -1
  532. package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +0 -8
  533. package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.js +0 -11
  534. package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.js.map +0 -1
  535. package/mobile/src/components/ApplicationLeadForm/renderAgreementSubmit.tsx +0 -32
  536. package/src/components/ApplicationLeadForm/renderAgreementSubmit.tsx +0 -32
@@ -6,16 +6,17 @@ import { normalizePhone } from '../../ui-kit/PhoneInput/normalizePhone';
6
6
 
7
7
  export const parseEsiaProfile = async (
8
8
  esiaProfile: EsiaRequestProfileResponse,
9
- isDebit: boolean,
9
+ isDebit = false,
10
+ isNewMicroservice = false,
10
11
  ): Promise<LeadFormState> => {
11
12
  checkEsiaData(esiaProfile);
12
- const isFullEsiaData = !isDebit && checkEsiaAdditionalDocument(esiaProfile);
13
+ const isFullEsiaData = !isDebit && checkEsiaAdditionalDocument(esiaProfile, isNewMicroservice);
13
14
 
14
15
  const { profile, addInfo, document, addressRegistration, addressFact, esiaAdditionalDocument } =
15
16
  esiaProfile;
16
17
  let files: File[] = [];
17
18
 
18
- if (isFullEsiaData) {
19
+ if (isFullEsiaData && !isNewMicroservice) {
19
20
  files = await saveDocuments(esiaAdditionalDocument);
20
21
  }
21
22
 
@@ -176,8 +177,19 @@ const checkEsiaData = (esiaProfile: EsiaRequestProfileResponse) => {
176
177
  }
177
178
  };
178
179
 
179
- const checkEsiaAdditionalDocument = (esiaProfile: EsiaRequestProfileResponse) => {
180
+ const checkEsiaAdditionalDocument = (
181
+ esiaProfile: EsiaRequestProfileResponse,
182
+ isNewMicroservice: boolean,
183
+ ) => {
180
184
  const { esiaAdditionalDocument } = esiaProfile;
185
+ const documents = [
186
+ esiaAdditionalDocument?.pdfFilePayout,
187
+ esiaAdditionalDocument?.pdfFileWorkbook,
188
+ esiaAdditionalDocument?.pdfFileSigPayout,
189
+ esiaAdditionalDocument?.xmlFilePayout,
190
+ esiaAdditionalDocument?.xmlFileSigPayout,
191
+ esiaAdditionalDocument?.xmlFileWorkbook,
192
+ ];
181
193
 
182
194
  const data = [
183
195
  esiaAdditionalDocument?.inn,
@@ -187,13 +199,7 @@ const checkEsiaAdditionalDocument = (esiaProfile: EsiaRequestProfileResponse) =>
187
199
  esiaAdditionalDocument?.workLength?.toString(),
188
200
  esiaAdditionalDocument?.workLengthLastJob?.toString(),
189
201
  esiaAdditionalDocument?.jobsNumberInFiveYears?.toString(),
190
- esiaAdditionalDocument?.pdfFilePayout,
191
- esiaAdditionalDocument?.pdfFileWorkbook,
192
- esiaAdditionalDocument?.pdfFileSigPayout,
193
- esiaAdditionalDocument?.xmlFilePayout,
194
- esiaAdditionalDocument?.xmlFileSigPayout,
195
- esiaAdditionalDocument?.xmlFileWorkbook,
196
202
  ];
197
203
 
198
- return data.every(Boolean);
204
+ return data.every(Boolean) && (isNewMicroservice || documents.every(Boolean));
199
205
  };
@@ -5,6 +5,7 @@ import { useSessionStore } from '@redneckz/uni-jsx/lib/Store/useSessionStore';
5
5
  import { locationNavigator } from '../../external/locationNavigator';
6
6
  import { type AspectsProps } from '../../model/AspectsProps';
7
7
  import { createDraftTask } from '../../retail/api/createDraftTask';
8
+ import { createParticipant } from '../../retail/api/createParticipant';
8
9
  import { createUserProfile } from '../../retail/api/createUserProfile';
9
10
  import { createUserTaskDebit } from '../../retail/api/createUserTaskDebit';
10
11
  import { getLastTaskStatus } from '../../retail/api/getLastTaskStatus';
@@ -33,6 +34,7 @@ interface ApplicationLeadApiProps extends AspectsProps {
33
34
  nextStepLink: string;
34
35
  productType: ProductType;
35
36
  changeSubmitFormStatus: (status?: boolean) => void;
37
+ isNewMicroservice: boolean;
36
38
  }
37
39
 
38
40
  // eslint-disable-next-line max-lines-per-function
@@ -42,6 +44,7 @@ export const useApplicationLeadApi = ({
42
44
  productType,
43
45
  data,
44
46
  changeSubmitFormStatus,
47
+ isNewMicroservice,
45
48
  }: ApplicationLeadApiProps) => {
46
49
  const [isSending, { setTrue: startSending, setFalse: endSending }] = useBool(false);
47
50
  const saveUserData = useSaveUserData();
@@ -63,7 +66,7 @@ export const useApplicationLeadApi = ({
63
66
  changeSubmitFormStatus(false);
64
67
  };
65
68
 
66
- const handleSubmit = useCallback(async (formData: LeadFormState) => {
69
+ const handleSubmitOldMicroservice = useCallback(async (formData: LeadFormState) => {
67
70
  try {
68
71
  startSending();
69
72
  const transformedFormData = transformFormData(formData);
@@ -93,7 +96,11 @@ export const useApplicationLeadApi = ({
93
96
  if (productType === 'debitCard') {
94
97
  goToNextStep();
95
98
  } else {
96
- consentBkiDialog.open(transformedFormData.phone, profileId, handleFailSendForm);
99
+ consentBkiDialog.open({
100
+ phone: transformedFormData.phone,
101
+ profileId,
102
+ onFail: handleFailSendForm,
103
+ });
97
104
  }
98
105
  };
99
106
  const handleSuccessVerify = async () => {
@@ -133,7 +140,70 @@ export const useApplicationLeadApi = ({
133
140
  }
134
141
  }, []);
135
142
 
136
- return { isSending, handleSubmit };
143
+ const handleSubmitNewMicroservice = useCallback(async (formData: LeadFormState) => {
144
+ try {
145
+ startSending();
146
+ const transformedFormData = transformFormData(formData);
147
+ const participantId = await createParticipant({
148
+ phone: formatPhone(transformedFormData.phone as string),
149
+ email: transformedFormData.email as string,
150
+ });
151
+
152
+ const referalData = leadFormStore.referalData;
153
+ const marketingInfo = sessionStore.marketingInfo;
154
+
155
+ if (!participantId) {
156
+ throw new Error();
157
+ }
158
+
159
+ const sendCurrentTask = async () => {
160
+ const taskId = await updateUserDataNewMicroservice({
161
+ programId,
162
+ participantId,
163
+ formData: transformedFormData,
164
+ referalData,
165
+ productType,
166
+ marketingInfo,
167
+ saveUserData,
168
+ sendAspects,
169
+ });
170
+ verifyPhoneDialog.close();
171
+
172
+ consentBkiDialog.open({
173
+ phone: transformedFormData.phone,
174
+ taskId,
175
+ participantId,
176
+ onFail: handleFailSendForm,
177
+ });
178
+ };
179
+
180
+ const handleSuccessVerify = async () => {
181
+ try {
182
+ await sendCurrentTask();
183
+ } catch {
184
+ handleFailSendForm();
185
+ }
186
+ };
187
+
188
+ const acceptedConsents = getAcceptedConsents(transformedFormData, productType);
189
+
190
+ verifyPhoneDialog.open({
191
+ phone: transformedFormData.phone as string,
192
+ consents: acceptedConsents,
193
+ onSuccess: handleSuccessVerify,
194
+ onFail: handleFailSendForm,
195
+ });
196
+ } catch {
197
+ handleFailSendForm();
198
+ } finally {
199
+ endSending();
200
+ }
201
+ }, []);
202
+
203
+ return {
204
+ isSending,
205
+ handleSubmit: isNewMicroservice ? handleSubmitNewMicroservice : handleSubmitOldMicroservice,
206
+ };
137
207
  };
138
208
 
139
209
  const getAcceptedConsents = (formData: LeadFormState, productType: ProductType): string[] => {
@@ -209,6 +279,62 @@ const updateUserData = async ({
209
279
  }
210
280
  };
211
281
 
282
+ const updateUserDataNewMicroservice = async ({
283
+ programId,
284
+ participantId,
285
+ formData,
286
+ referalData,
287
+ productType,
288
+ marketingInfo,
289
+ saveUserData,
290
+ sendAspects,
291
+ }: {
292
+ programId: string;
293
+ participantId: number;
294
+ formData: LeadFormState;
295
+ referalData: ReferalData | null;
296
+ productType: ProductType;
297
+ marketingInfo: MarketingInfo | null;
298
+ saveUserData: (userData: UserData) => void;
299
+ sendAspects: (profileId: number, taskId: number) => void;
300
+ }): Promise<number> => {
301
+ let taskId: number;
302
+ const transformedConsents = transformConsentsFields(formData, productType);
303
+
304
+ try {
305
+ const creditData = await createDraftTask({
306
+ participantId,
307
+ programId,
308
+ });
309
+ taskId = creditData.taskId;
310
+
311
+ await updateUserTask(
312
+ getCreditLeadFormTaskData({
313
+ participantId,
314
+ taskId,
315
+ formData,
316
+ marketingInfo,
317
+ consents: transformedConsents,
318
+ }),
319
+ );
320
+
321
+ if (referalData?.referalCode) {
322
+ await saveReferalInfo({
323
+ taskId,
324
+ ...referalData,
325
+ });
326
+ }
327
+
328
+ sendAspects(participantId, taskId);
329
+ saveUserData({ participantId, taskId, programId, formData });
330
+
331
+ return taskId;
332
+ } catch (ex) {
333
+ console.log(ex);
334
+ throw new Error();
335
+ }
336
+ };
337
+
212
338
  const transformConsentsFields = (
213
339
  formData: LeadFormState,
214
340
  productType: ProductType,
@@ -19,10 +19,12 @@ type InitApplicationLeadProps = {
19
19
  productType: ProductType;
20
20
  setEsiaStatus: (status: EsiaStatuses) => void;
21
21
  esiaAuthSuccess: boolean;
22
+ isNewMicroservice: boolean;
22
23
  };
23
24
 
24
25
  export interface ApplicationLeadStore {
25
26
  marketingInfo: MarketingInfo | null;
27
+ isNewMicroservice: boolean | null;
26
28
  }
27
29
 
28
30
  export const useInitApplicationLead = ({
@@ -30,6 +32,7 @@ export const useInitApplicationLead = ({
30
32
  productType,
31
33
  setEsiaStatus,
32
34
  esiaAuthSuccess,
35
+ isNewMicroservice,
33
36
  }: InitApplicationLeadProps): LeadFormState => {
34
37
  const leadFormStore = useLeadFormStore();
35
38
  const saveForm = useSetter(leadFormStore, 'leadForm');
@@ -53,7 +56,11 @@ export const useInitApplicationLead = ({
53
56
  });
54
57
 
55
58
  if (data) {
56
- const parsedData = await parseEsiaProfile(data, productType === 'debitCard');
59
+ const parsedData = await parseEsiaProfile(
60
+ data,
61
+ productType === 'debitCard',
62
+ isNewMicroservice,
63
+ );
57
64
 
58
65
  saveForm((_) => ({
59
66
  ..._,
@@ -70,6 +77,7 @@ export const useInitApplicationLead = ({
70
77
  leadFormStore.productType = productType;
71
78
 
72
79
  sessionStore.marketingInfo = getMarketingInfo(queryFromStorage, sessionStore);
80
+ sessionStore.isNewMicroservice = isNewMicroservice || null;
73
81
  }, [queryFromStorage]);
74
82
 
75
83
  useEffect(() => {
@@ -1,12 +1,13 @@
1
1
  import { useLocalStore } from '@redneckz/uni-jsx/lib/Store/useLocalStore';
2
2
  import { type LeadFormState } from '../../retail/model/LeadFormState';
3
3
  import { type ReferalData } from '../../retail/model/ReferalData';
4
+ import { type Nullable } from '../../utils/Nullable';
4
5
  import { type ProductType } from './ApplicationLeadFormContent';
5
6
 
6
7
  export interface LeadFormStoreSlice {
7
8
  leadForm: LeadFormState;
8
9
  taskId: number;
9
- profileId: number;
10
+ profileId: Nullable<number>;
10
11
  participantId: number;
11
12
  programId: string;
12
13
  productType: ProductType;
@@ -1,11 +1,12 @@
1
1
  import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
2
2
  import { type LeadFormState } from '../../retail/model/LeadFormState';
3
+ import { type Nullable } from '../../utils/Nullable';
3
4
  import { useLeadFormStore } from './useLeadFormStore';
4
5
 
5
6
  export interface UserData {
6
7
  participantId: number;
7
8
  taskId: number;
8
- profileId: number;
9
+ profileId?: Nullable<number>;
9
10
  programId: string;
10
11
  formData: LeadFormState;
11
12
  }
@@ -3,8 +3,10 @@ import { useCallback, useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { useInterval } from '../../hooks/useInterval';
4
4
  import { type VNode } from '../../model/VNode';
5
5
  import { getTaskStatus, STATUS_TYPE } from '../../retail/api/getTaskStatus';
6
+ import { sendMessage, type MessageName } from '../../retail/api/sendMessage';
6
7
  import { sendSignalToProcess, type SignalType } from '../../retail/api/sendSignalToProcess';
7
8
  import { useRetailFormStore } from '../../retail/hooks/useRetailFormStore';
9
+ import { checkNewMicroservice } from '../../retail/utils/checkNewMicroservice';
8
10
  import { FailedStatusContent } from './FailedStatusContent';
9
11
  import { PendingStatusContent } from './PendingStatusContent';
10
12
  import { ReworkStatusContent } from './ReworkStatusContent';
@@ -14,14 +16,26 @@ const SIGNAL_TYPES: SignalType[] = [
14
16
  'CREATE_APPLICATION_LOAN_V3_SIGNAL',
15
17
  ];
16
18
 
19
+ const MESSAGE_NAMES: MessageName[] = [
20
+ 'CREATE_APPLICATION_SHORT_MESSAGE',
21
+ // 'CREATE_APPLICATION_LOAN_MESSAGE',
22
+ ];
23
+
17
24
  export const CreditFormStatusTracker = JSX(() => {
25
+ const isNewMicroservice = checkNewMicroservice();
18
26
  const [status, setStatus] = useState(STATUS_TYPE.process);
19
27
  const { taskId } = useRetailFormStore();
20
28
 
21
29
  useEffect(() => {
22
30
  (async () => {
23
- for (const signalType of SIGNAL_TYPES) {
24
- await sendSignalToProcess({ signalType, taskId });
31
+ if (isNewMicroservice) {
32
+ for (const messageName of MESSAGE_NAMES) {
33
+ await sendMessage({ messageName, taskId });
34
+ }
35
+ } else {
36
+ for (const signalType of SIGNAL_TYPES) {
37
+ await sendSignalToProcess({ signalType, taskId });
38
+ }
25
39
  }
26
40
  })();
27
41
  }, [taskId]);
@@ -55,7 +55,7 @@ export const useCreditFormAPI = ({
55
55
 
56
56
  try {
57
57
  const { taskId, profileId, participantId } = retailFormStore;
58
- if (taskId && profileId && participantId) {
58
+ if (taskId) {
59
59
  const response = await updateUserTask(
60
60
  getCreditFormTaskData({
61
61
  participantId,
@@ -53,11 +53,9 @@ export const Footer = UniBlock<FooterProps>(({ className, footer, ...rest }) =>
53
53
  {_?.title}
54
54
  </SocialMedia>
55
55
  ))}
56
- <div className="flex gap-m xl:gap-xs flex-wrap">
57
- {otherLinks.map((_, i) => (
58
- <Link key={`${_.href}_${i}`} className="text-s font-light" {..._} />
59
- ))}
60
- </div>
56
+ {otherLinks.map((_, i) => (
57
+ <Link key={`${_.href}_${i}`} className="text-s font-light" {..._} />
58
+ ))}
61
59
  </div>
62
60
  </div>
63
61
  <HorizontalNavigation title={horizontalNavigationTitle} links={relatedEnterprises} />
@@ -13,7 +13,7 @@ export interface DropdownMenuProps extends ComponentType {
13
13
  activeItem?: LinkProps;
14
14
  ariaLabel?: string;
15
15
  renderDropdownItem?: ({ item, i, activeItem, handlers }: renderDropdownItemProps) => void;
16
- handlers?: Record<string, (ev: PreventableEventWithTarget) => void>;
16
+ handlers?: Record<string, (ev?: PreventableEventWithTarget) => void>;
17
17
  onItemClick?: () => void;
18
18
  }
19
19
 
@@ -21,7 +21,7 @@ export type renderDropdownItemProps = {
21
21
  item?: LinkProps;
22
22
  i?: number;
23
23
  activeItem?: LinkProps;
24
- handlers?: Record<string, (ev: PreventableEventWithTarget) => void>;
24
+ handlers?: Record<string, (ev?: PreventableEventWithTarget) => void>;
25
25
  closeDropdown?: () => void;
26
26
  };
27
27
 
@@ -83,15 +83,15 @@ const renderQuickActionsDropdown = ({
83
83
  }: renderDropdownItemProps) => {
84
84
  const quickActionsMapping = {
85
85
  call: {
86
- handler: (ev: PreventableEventWithTarget) => {
87
- handlers?.call(ev);
86
+ handler: () => {
87
+ handlers?.call();
88
88
  closeDropdown();
89
89
  },
90
90
  text: 'Заказать звонок',
91
91
  },
92
92
  chat: {
93
- handler: (ev: PreventableEventWithTarget) => {
94
- handlers?.chat(ev);
93
+ handler: () => {
94
+ handlers?.chat();
95
95
  closeDropdown();
96
96
  },
97
97
  text: 'Написать в чат',
@@ -117,14 +117,12 @@ export const useHandlers = () => {
117
117
  const handleCallClick = useCallback(() => {
118
118
  phoneCallRequestDialog.open({ onClose: () => phoneCallRequestDialog.close() });
119
119
  }, []);
120
- const aspects = useAspects();
121
120
 
122
- const handleChatClick = useCallback((ev: PreventableEventWithTarget) => {
123
- console.log('chat click');
121
+ const aspects = useAspects();
124
122
 
123
+ const handleChatClick = useCallback((ev?: PreventableEventWithTarget) => {
125
124
  const openChatBot = aspects[CHAT_BOT_ASPECT_NAME];
126
- console.log(openChatBot);
127
- if (openChatBot) {
125
+ if (openChatBot && ev) {
128
126
  openChatBot(ev).finally();
129
127
  }
130
128
  }, []);
@@ -1,6 +1,8 @@
1
1
  import { getCalcData } from '../../components/CreditForm/getCalcData';
2
+ import { type Nullable } from '../../utils/Nullable';
2
3
  import { type Participant, type UpdateUserTaskBody } from '../api/updateUserTask';
3
4
  import { type LeadFormState } from '../model/LeadFormState';
5
+ import { checkNewMicroservice } from '../utils/checkNewMicroservice';
4
6
  import { getCalculatorData } from './getCalculatorData';
5
7
  import { getDeliveryCreditData } from './getDeliveryCreditData';
6
8
  import { getEmploymentData } from './getEmploymentData';
@@ -8,9 +10,9 @@ import { getFamilyStatusAndIncomeData } from './getFamilyStatusAndIncomeData';
8
10
  import { getPersonalInfoData } from './getPersonalInfoData';
9
11
 
10
12
  type getCreditFormTaskDataProps = {
11
- participantId: number;
13
+ participantId: Nullable<number>;
12
14
  taskId: number;
13
- profileId: number;
15
+ profileId: Nullable<number>;
14
16
  formData: LeadFormState;
15
17
  step?: number;
16
18
  };
@@ -21,33 +23,45 @@ export const getCreditFormTaskData = ({
21
23
  profileId,
22
24
  formData,
23
25
  step = 0,
24
- }: getCreditFormTaskDataProps): UpdateUserTaskBody => ({
25
- sendToBank: true,
26
- taskKind: 'UNITED',
27
- task: {
28
- id: taskId,
29
- authorizedAgentId: formData?.bankEmployeeCode,
30
- participants: [
31
- {
32
- id: participantId,
33
- profile: {
34
- id: profileId,
35
- },
36
- roleCd: {
37
- key: 'BORROWER',
38
- value: 'Заемщик',
39
- },
40
- ...getCurrentStepData(step, formData),
26
+ }: getCreditFormTaskDataProps): UpdateUserTaskBody => {
27
+ const isNewMicroservice = checkNewMicroservice();
28
+
29
+ const participantInfo = {
30
+ id: participantId,
31
+ ...(!isNewMicroservice && {
32
+ profile: {
33
+ id: profileId,
41
34
  },
42
- ],
43
- ...getCalcData(formData),
44
- ...getDeliveryCreditData(formData),
45
- esiaAccountTypeCd: {
46
- key: formData?.esiaAccountTypeCd?.key,
47
- } as UpdateUserTaskBody['task']['esiaAccountTypeCd'],
48
- files: formData?.files,
49
- },
50
- });
35
+ }),
36
+ roleCd: {
37
+ key: 'BORROWER',
38
+ value: 'Заемщик',
39
+ },
40
+ ...getCurrentStepData(step, formData),
41
+ };
42
+
43
+ return {
44
+ sendToBank: true,
45
+ taskKind: 'UNITED',
46
+ task: {
47
+ id: taskId,
48
+ authorizedAgentId: formData?.bankEmployeeCode,
49
+ ...(isNewMicroservice
50
+ ? {
51
+ participant: participantInfo,
52
+ }
53
+ : {
54
+ participants: [participantInfo],
55
+ }),
56
+ ...getCalcData(formData),
57
+ ...getDeliveryCreditData(formData),
58
+ esiaAccountTypeCd: {
59
+ key: formData?.esiaAccountTypeCd?.key,
60
+ } as UpdateUserTaskBody['task']['esiaAccountTypeCd'],
61
+ files: formData?.files,
62
+ },
63
+ };
64
+ };
51
65
 
52
66
  const getCurrentStepData = (step: number, formData: LeadFormState): Partial<Participant> => {
53
67
  switch (step) {
@@ -53,10 +53,10 @@ export const getParticipantAddresses = (fields: Record<string, Address | undefin
53
53
  return [
54
54
  ...acc,
55
55
  {
56
+ ...address,
56
57
  addressType: {
57
58
  key: fieldsNamesToAddressKeysMap[key],
58
59
  },
59
- ...address,
60
60
  },
61
61
  ];
62
62
  }
@@ -1 +1,2 @@
1
- export const API_BASE_URI = '/light-api-cash/v1';
1
+ export const RETAIL_API_BASE_URI = '/light-api-cash/v1';
2
+ export const NEW_RETAIL_API_BASE_URI = '/api/credit-application';
@@ -1,10 +1,18 @@
1
+ import { checkNewMicroservice } from '../utils/checkNewMicroservice';
1
2
  import { doRequest } from './doRequest';
2
3
 
3
4
  export type CapchaTextType = {
4
5
  captchaText: string;
6
+ phoneNumber?: string;
5
7
  };
6
8
 
7
- export const checkCaptcha = (body: CapchaTextType) =>
8
- doRequest('/sms/checkCaptcha', 'POST', body)
9
+ export const checkCaptcha = async (body: CapchaTextType) => {
10
+ const isNewMicroservice = checkNewMicroservice();
11
+
12
+ return await doRequest(`${isNewMicroservice ? '/user-data' : ''}/sms/checkCaptcha`, 'POST', {
13
+ captchaText: body.captchaText,
14
+ ...(isNewMicroservice && { phoneNumber: body?.phoneNumber }),
15
+ })
9
16
  .then((res) => res.text())
10
17
  .then((text) => text !== 'ERROR');
18
+ };
@@ -1,3 +1,4 @@
1
+ import { checkNewMicroservice } from '../utils/checkNewMicroservice';
1
2
  import { doRequest } from './doRequest';
2
3
 
3
4
  export type CheckCodeBody = {
@@ -5,6 +6,7 @@ export type CheckCodeBody = {
5
6
  smsCodesSetName: {
6
7
  key: 'AUTHENTICATION' | 'SEND_TASK';
7
8
  };
9
+ phoneNumber?: string;
8
10
  };
9
11
 
10
12
  export type CheckCodeResponse = {
@@ -13,5 +15,12 @@ export type CheckCodeResponse = {
13
15
  refresh_token: string;
14
16
  };
15
17
 
16
- export const checkCode = async (body: CheckCodeBody) =>
17
- await doRequest('/sms/checkCode', 'POST', body);
18
+ export const checkCode = async (body: CheckCodeBody) => {
19
+ const isNewMicroservice = checkNewMicroservice();
20
+
21
+ return await doRequest(`${isNewMicroservice ? '/user-data' : ''}/sms/checkCode`, 'POST', {
22
+ smsText: body.smsText,
23
+ smsCodesSetName: isNewMicroservice ? body.smsCodesSetName.key : body.smsCodesSetName,
24
+ ...(isNewMicroservice && { phoneNumber: body?.phoneNumber }),
25
+ });
26
+ };
@@ -1,6 +1,13 @@
1
+ import { checkNewMicroservice } from '../utils/checkNewMicroservice';
1
2
  import { doRequest } from './doRequest';
2
3
 
3
- export const createCaptcha = (phoneNumber: string) =>
4
- doRequest(`/sms/createCaptcha?phoneNumber=${encodeURIComponent(phoneNumber)}`, 'GET').then(
5
- async (res) => (res ? res.blob() : new Blob()),
6
- );
4
+ export const createCaptcha = async (phoneNumber: string) => {
5
+ const isNewMicroservice = checkNewMicroservice();
6
+
7
+ return await doRequest(
8
+ `${isNewMicroservice ? '/user-data' : ''}/sms/createCaptcha?phoneNumber=${encodeURIComponent(
9
+ phoneNumber,
10
+ )}`,
11
+ 'GET',
12
+ ).then(async (res) => (res ? res.blob() : new Blob()));
13
+ };
@@ -1,7 +1,8 @@
1
1
  import { fetchRetailJSON } from './doRequest';
2
2
 
3
3
  export type CreateDraftTaskBody = {
4
- profileId: number;
4
+ profileId?: number;
5
+ participantId?: number;
5
6
  programId: string;
6
7
  };
7
8
 
@@ -0,0 +1,17 @@
1
+ import { fetchRetailJSON } from './doRequest';
2
+
3
+ interface CreateParticipantType {
4
+ phone: string;
5
+ email: string;
6
+ }
7
+
8
+ interface CreateParticipantResponseType {
9
+ participantId: number;
10
+ }
11
+
12
+ export const createParticipant = (body: CreateParticipantType) =>
13
+ fetchRetailJSON<CreateParticipantResponseType>(
14
+ '/public-data/createParticipant',
15
+ 'POST',
16
+ body,
17
+ ).then((res) => res?.participantId || null);