@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
@@ -1,4 +1,5 @@
1
- import { RETAIL_API_BASE_URI } from '../../api/apiBaseUrl';
1
+ import { checkNewMicroservice } from '../utils/checkNewMicroservice';
2
+ import { NEW_RETAIL_API_BASE_URI, RETAIL_API_BASE_URI } from './apiBaseUrl';
2
3
  import { getTraceId } from './getTraceId';
3
4
 
4
5
  export const fetchRetailJSON = async <R>(
@@ -22,20 +23,24 @@ export async function doRequest(
22
23
  method: 'POST' | 'GET' | 'PUT',
23
24
  body?: any,
24
25
  ): Promise<Response> {
26
+ const isNewMicroservice = checkNewMicroservice();
25
27
  const traceId = getTraceId();
26
28
 
27
- return globalThis?.fetch?.(`${RETAIL_API_BASE_URI}${url}`, {
28
- method,
29
- headers: {
30
- 'Content-Type': 'application/json',
31
- 'X-B3-Sampled': '1',
32
- 'X-B3-Spanid': traceId,
33
- 'X-B3-Traceid': traceId,
34
- ...getAuthorizationHeaders(),
29
+ return globalThis?.fetch?.(
30
+ `${isNewMicroservice ? NEW_RETAIL_API_BASE_URI : RETAIL_API_BASE_URI}${url}`,
31
+ {
32
+ method,
33
+ headers: {
34
+ 'Content-Type': 'application/json',
35
+ 'X-B3-Sampled': '1',
36
+ 'X-B3-Spanid': traceId,
37
+ 'X-B3-Traceid': traceId,
38
+ ...getAuthorizationHeaders(),
39
+ },
40
+ credentials: 'include',
41
+ body: body ? JSON.stringify(body) : null,
35
42
  },
36
- credentials: 'include',
37
- body: body ? JSON.stringify(body) : null,
38
- });
43
+ );
39
44
  }
40
45
 
41
46
  export const getAuthorizationHeaders = () => {
@@ -1,3 +1,4 @@
1
+ import { checkNewMicroservice } from '../utils/checkNewMicroservice';
1
2
  import { saveToken } from '../utils/saveToken';
2
3
  import { type CheckCodeResponse } from './checkCode';
3
4
  import { fetchRetailJSON } from './doRequest';
@@ -87,8 +88,14 @@ export type EsiaRequestProfileResponse = CheckCodeResponse & {
87
88
  };
88
89
  };
89
90
 
90
- export const esiaRequestProfile = (body: EsiaRequestProfileBody) =>
91
- fetchRetailJSON<EsiaRequestProfileResponse>('/esia/requestProfile', 'POST', body).then((res) => {
91
+ export const esiaRequestProfile = async (body: EsiaRequestProfileBody) => {
92
+ const isNewMicroservice = checkNewMicroservice();
93
+
94
+ return await fetchRetailJSON<EsiaRequestProfileResponse>(
95
+ `${isNewMicroservice ? '/user-data' : ''}/esia/requestProfile`,
96
+ 'POST',
97
+ body,
98
+ ).then((res) => {
92
99
  if (res?.access_token && res?.refresh_token) {
93
100
  saveToken(res);
94
101
  updateRefreshToken(true);
@@ -96,3 +103,4 @@ export const esiaRequestProfile = (body: EsiaRequestProfileBody) =>
96
103
 
97
104
  return res;
98
105
  });
106
+ };
@@ -1,17 +1,22 @@
1
1
  import { type CreditFormDictionarySlice } from '../hooks/useRetailFormStore';
2
2
  import { type DictionaryItem } from '../model/LeadFormData';
3
+ import { checkNewMicroservice } from '../utils/checkNewMicroservice';
3
4
  import { fetchRetailJSON } from './doRequest';
4
5
 
5
6
  export const getDictionaries = async (
6
7
  dictionaries: Record<string, string>,
7
8
  store: CreditFormDictionarySlice,
8
9
  ) => {
10
+ const isNewMicroservice = checkNewMicroservice();
11
+
9
12
  await Promise.all(
10
13
  Object.entries(dictionaries).map((dictionary) => {
11
14
  const [fieldName, dictionaryName] = dictionary;
12
15
 
13
16
  fetchRetailJSON<DictionaryItem[]>(
14
- `/dictionary?dictionaryType=${encodeURIComponent(dictionaryName)}`,
17
+ `${isNewMicroservice ? '/public-data' : ''}/dictionary?dictionaryType=${encodeURIComponent(
18
+ dictionaryName,
19
+ )}`,
15
20
  'POST',
16
21
  ).then((res) => {
17
22
  store[fieldName] = res;
@@ -1,3 +1,4 @@
1
+ import { checkNewMicroservice } from '../utils/checkNewMicroservice';
1
2
  import { fetchRetailJSON } from './doRequest';
2
3
 
3
4
  export type GetLinkBody = {
@@ -8,5 +9,12 @@ export type GetLinkResponse = {
8
9
  link: string;
9
10
  };
10
11
 
11
- export const getLink = (body: GetLinkBody) =>
12
- fetchRetailJSON<GetLinkResponse>('/esia/getLink', 'POST', body);
12
+ export const getLink = async (body: GetLinkBody) => {
13
+ const isNewMicroservice = checkNewMicroservice();
14
+
15
+ return await fetchRetailJSON<GetLinkResponse>(
16
+ `${isNewMicroservice ? '/user-data' : ''}/esia/getLink`,
17
+ 'POST',
18
+ body,
19
+ );
20
+ };
@@ -1,3 +1,4 @@
1
+ import { checkNewMicroservice } from '../utils/checkNewMicroservice';
1
2
  import { doRequest } from './doRequest';
2
3
 
3
4
  export type SendCodeBody = {
@@ -7,4 +8,11 @@ export type SendCodeBody = {
7
8
  };
8
9
  };
9
10
 
10
- export const sendCode = (body: SendCodeBody) => doRequest('/sms/sendCode', 'POST', body);
11
+ export const sendCode = async (body: SendCodeBody) => {
12
+ const isNewMicroservice = checkNewMicroservice();
13
+
14
+ return await doRequest(`${isNewMicroservice ? '/user-data' : ''}/sms/sendCode`, 'POST', {
15
+ phoneNumber: body.phoneNumber,
16
+ smsCodesSetName: isNewMicroservice ? body.smsCodesSetName.key : body.smsCodesSetName,
17
+ });
18
+ };
@@ -0,0 +1,12 @@
1
+ import { doRequest } from './doRequest';
2
+
3
+ export type MessageName = 'CREATE_APPLICATION_SHORT_MESSAGE' | 'CREATE_APPLICATION_LOAN_MESSAGE';
4
+
5
+ interface SendMessage {
6
+ messageName: MessageName;
7
+ taskId: number | null;
8
+ }
9
+
10
+ export const sendMessage = async (body: SendMessage) => {
11
+ await doRequest('/camunda/send/message', 'POST', body);
12
+ };
@@ -48,12 +48,13 @@ export type PaymentType = {
48
48
 
49
49
  export type Participant = {
50
50
  birthDate?: string;
51
- id?: number;
51
+ id?: Nullable<number>;
52
52
  midname?: string;
53
53
  name?: string;
54
54
  surname?: string;
55
+ esiaAccountTypeCd?: Option;
55
56
  profile?: {
56
- id: number;
57
+ id?: Nullable<number>;
57
58
  esiaAccountTypeCd?: Option;
58
59
  };
59
60
  armyIdFlg?: boolean;
@@ -118,6 +119,15 @@ export type Participant = {
118
119
  latinSurname?: string;
119
120
  latinName?: string;
120
121
  residentOtherCountry?: boolean;
122
+ processPersonalDataFlg?: boolean;
123
+ consentProviderFlg?: boolean;
124
+ consentPfrFlg?: boolean;
125
+ consentPhotoFlg?: boolean;
126
+ consentAssignmentClaimsFlg?: boolean;
127
+ consentCollectionFlg?: boolean;
128
+ consentInformFlg?: boolean;
129
+ consentBkiFlg?: boolean;
130
+ smsConsentBki?: string;
121
131
  };
122
132
 
123
133
  export type MarketingInfo = {
@@ -145,7 +155,8 @@ export type UpdateUserTaskBody = {
145
155
  key: string;
146
156
  };
147
157
  authorizedAgentId?: number;
148
- participants: Participant[];
158
+ participants?: Participant[];
159
+ participant?: Participant;
149
160
  esiaAccountTypeCd?: {
150
161
  key: 'VERIFIED' | 'STANDARD' | 'SIMPLIFIED';
151
162
  };
@@ -157,11 +168,5 @@ export type UpdateUserTaskBody = {
157
168
  };
158
169
  };
159
170
 
160
- export type CreateUserProfileResponse = {
161
- profile: {
162
- id: number;
163
- };
164
- };
165
-
166
171
  export const updateUserTask = (body: UpdateUserTaskBody) =>
167
172
  doRequest('/user-data/updateUserTask', 'PUT', body);
@@ -28,7 +28,7 @@ export const CaptchaDialog = JSX<CaptchaDialogProps>(({ phoneNumber, sendCode, o
28
28
 
29
29
  const handleCheckCaptcha = useCallback(async () => {
30
30
  startLoading();
31
- const isValidCode = await checkCaptcha({ captchaText: code });
31
+ const isValidCode = await checkCaptcha({ captchaText: code, phoneNumber });
32
32
 
33
33
  if (isValidCode) {
34
34
  onClose?.();
@@ -1,37 +1,61 @@
1
1
  import { useDialog } from '../../../ui-kit/DialogManager/useDialog';
2
2
  import { updateUserProfile } from '../../api/updateUserProfile';
3
+ import { updateUserTask } from '../../api/updateUserTask';
3
4
  import { VerifyPhoneDialog } from '../VerifyPhoneDialog/VerifyPhoneDialog';
4
5
  import { ConsentBkiDialog } from './ConsentBkiDialog';
5
6
 
7
+ type SubmitBkiConsentProps = {
8
+ phone?: string;
9
+ profileId?: number;
10
+ onFail?: () => void;
11
+ taskId?: number;
12
+ participantId?: number;
13
+ };
14
+
6
15
  export const useConsentBkiDialog = (onClose: () => void) => {
7
16
  const { open } = useDialog(ConsentBkiDialog);
8
17
  const verifyPhoneDialog = useDialog(VerifyPhoneDialog);
9
18
 
10
- const handleSuccessVerify = (profileId?: number) => async (smsCode?: string) => {
11
- try {
12
- if (profileId) {
13
- await updateUserProfile({
14
- profile: {
15
- id: profileId,
16
- consentBkiFlg: true,
17
- smsConsentBki: smsCode,
18
- },
19
- });
20
- }
19
+ const handleSuccessVerify =
20
+ (profileId?: number, taskId?: number, participantId?: number) => async (smsCode?: string) => {
21
+ try {
22
+ if (profileId) {
23
+ await updateUserProfile({
24
+ profile: {
25
+ id: profileId,
26
+ consentBkiFlg: true,
27
+ smsConsentBki: smsCode,
28
+ },
29
+ });
30
+ } else if (taskId && participantId) {
31
+ await updateUserTask({
32
+ task: {
33
+ id: taskId,
34
+ participant: {
35
+ id: participantId,
36
+ consentBkiFlg: true,
37
+ smsConsentBki: smsCode,
38
+ },
39
+ },
40
+ sendToBank: false,
41
+ taskKind: 'SHORT',
42
+ });
43
+ }
21
44
 
22
- onClose();
23
- } catch (ex) {
24
- console.log(ex);
25
- }
26
- };
45
+ onClose();
46
+ } catch (ex) {
47
+ console.log(ex);
48
+ }
49
+ };
27
50
 
28
- const handleSubmitBkiConstent =
29
- (phone?: string, profileId?: number, onFail?: () => void) => async (confirmStatus: string) => {
51
+ const handleSubmitBkiConsent =
52
+ ({ phone, profileId, onFail, taskId, participantId }: SubmitBkiConsentProps) =>
53
+ async (confirmStatus: string) => {
30
54
  if (confirmStatus === 'SIGNED' && phone) {
31
55
  verifyPhoneDialog.open({
32
56
  phone,
33
57
  consents: ['согласие на запрос информации в БКИ'],
34
- onSuccess: handleSuccessVerify(profileId),
58
+ onSuccess: handleSuccessVerify(profileId, taskId, participantId),
35
59
  onFail,
36
60
  });
37
61
  } else {
@@ -40,7 +64,16 @@ export const useConsentBkiDialog = (onClose: () => void) => {
40
64
  };
41
65
 
42
66
  return {
43
- open: (phone?: string, profileId?: number, onFail?: () => void) =>
44
- open({ onSubmit: handleSubmitBkiConstent(phone, profileId, onFail), onClose }),
67
+ open: ({ phone, profileId, onFail, taskId, participantId }: SubmitBkiConsentProps) =>
68
+ open({
69
+ onSubmit: handleSubmitBkiConsent({
70
+ phone,
71
+ profileId,
72
+ onFail,
73
+ taskId,
74
+ participantId,
75
+ }),
76
+ onClose,
77
+ }),
45
78
  };
46
79
  };
@@ -37,6 +37,7 @@ export const VerifyPhoneDialog = JSX<VerifyPhoneDialogProps>(
37
37
  }) => {
38
38
  const [values, setValues] = useState<string[]>(Array(CODE_LENGTH).fill('') as string[]);
39
39
  const sessionStore = useSessionStore<SmsCodeStore>();
40
+ const phoneNumber = formatPhone(phone);
40
41
 
41
42
  const {
42
43
  handleSubmit,
@@ -49,12 +50,12 @@ export const VerifyPhoneDialog = JSX<VerifyPhoneDialogProps>(
49
50
  setErrorText,
50
51
  } = useVerifyPhoneDialogSubmit({
51
52
  values,
53
+ phoneNumber,
52
54
  onSuccess,
53
55
  onFail,
54
56
  });
55
57
 
56
58
  const captchaDialog = useDialog(CaptchaDialog);
57
- const phoneNumber = formatPhone(phone);
58
59
  const restartTimer = useCountDownTimer({ seconds: timeNextReq, onTick: setTimeNextReq });
59
60
 
60
61
  const handleSendCode = useCallback(async () => {
@@ -9,6 +9,7 @@ export const TIME_TO_RESEND = 180;
9
9
 
10
10
  type useVerifyPhoneDialogSubmitProps = {
11
11
  values: string[];
12
+ phoneNumber: string;
12
13
  onSuccess: (smsCode?: string) => void;
13
14
  onFail: () => void;
14
15
  };
@@ -22,6 +23,7 @@ export interface SmsCodeStore {
22
23
 
23
24
  export const useVerifyPhoneDialogSubmit = ({
24
25
  values,
26
+ phoneNumber,
25
27
  onSuccess,
26
28
  onFail,
27
29
  }: useVerifyPhoneDialogSubmitProps) => {
@@ -47,6 +49,7 @@ export const useVerifyPhoneDialogSubmit = ({
47
49
  const response = await checkCode({
48
50
  smsText: values.join(''),
49
51
  smsCodesSetName: { key: 'AUTHENTICATION' },
52
+ phoneNumber,
50
53
  });
51
54
 
52
55
  if (response.ok) {
@@ -1,15 +1,20 @@
1
1
  import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
2
2
  import { fetchJSON } from '../../utils/fetchJSON';
3
- import { API_BASE_URI } from '../api/apiBaseUrl';
3
+ import { NEW_RETAIL_API_BASE_URI, RETAIL_API_BASE_URI } from '../api/apiBaseUrl';
4
4
  import { type DictionaryItem } from '../model/LeadFormData';
5
+ import { checkNewMicroservice } from '../utils/checkNewMicroservice';
5
6
 
6
7
  type ErrorProps = {
7
8
  errorMessage?: string;
8
9
  };
9
10
 
10
11
  export const useLeadFormData = (typeField: string) => {
12
+ const isNewMicroservice = checkNewMicroservice();
13
+
11
14
  const { data, error } = useAsyncData(
12
- `${API_BASE_URI}/dictionary?dictionaryType=${encodeURIComponent(typeField)}`,
15
+ `${
16
+ isNewMicroservice ? `${NEW_RETAIL_API_BASE_URI}/public-data` : RETAIL_API_BASE_URI
17
+ }/dictionary?dictionaryType=${encodeURIComponent(typeField)}`,
13
18
  fetchData,
14
19
  );
15
20
  if (data && 'errorMessage' in data) {
@@ -84,6 +84,8 @@ export type FormRetailConsents = CreditFormConsents &
84
84
  CreditCardFormConsents &
85
85
  DebitCardFormConsents & {
86
86
  consentPhotoFlg?: boolean;
87
+ consentAssignmentClaimsFlg?: boolean;
88
+ consentCollectionFlg?: boolean;
87
89
  };
88
90
 
89
91
  // TODO Какая то часть должна быть взята из RetailAPI
@@ -145,10 +147,6 @@ export interface LeadFormState extends FormRetailConsents, FormStateDeliveryType
145
147
  product?: string;
146
148
  localities?: string[];
147
149
  partnerComments?: string;
148
- consentDataProcessing?: boolean;
149
- consentPhotoFlg?: boolean;
150
- consentAssignmentClaimsFlg?: boolean;
151
- consentCollectionFlg?: boolean;
152
150
  familyStatus?: Option;
153
151
  familyMembers?: string;
154
152
  children?: string;
@@ -0,0 +1,5 @@
1
+ export const checkNewMicroservice = () => {
2
+ const isNewMicroservice = globalThis.sessionStorage?.getItem('isNewMicroservice');
3
+
4
+ return Boolean(isNewMicroservice);
5
+ };
@@ -3,14 +3,13 @@ import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { type SearchHeaderProps } from '../../data/CommonData';
4
4
  import { type TopMenuItemProps } from '../../data/NavigationData';
5
5
  import { type ComponentType } from '../../model/ComponentType';
6
- import { type PlaceholderProps } from '../../model/PlaceholderProps';
7
6
  import { style } from '../../utils/style';
8
7
  import { CloseButton } from '../DialogManager/CloseButton';
9
8
  import { useDialog } from '../DialogManager/useDialog';
10
9
  import { SearchDialog } from '../SearchDialog/SearchDialog';
11
10
  import { SearchInput } from '../SearchDialog/SearchInput';
12
11
 
13
- interface SearchBarProps extends ComponentType, PlaceholderProps {
12
+ interface SearchBarProps extends ComponentType {
14
13
  search?: SearchHeaderProps;
15
14
  navigationItems?: TopMenuItemProps[];
16
15
  }
@@ -39,7 +38,6 @@ export const SearchBar = JSX<SearchBarProps>(({ className, search, ...rest }) =>
39
38
  value={value}
40
39
  placeholder={search?.placeholder}
41
40
  onChange={handleInitialInputChange}
42
- {...rest}
43
41
  />
44
42
  <CloseButton className="absolute top-0 right-0 sm:hidden" onClose={resetQueryOnDialogClose} />
45
43
  </div>
@@ -1,6 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useMemo } from '@redneckz/uni-jsx/lib/hooks';
3
- import type { SearchHeaderProps } from '../../data/CommonData';
4
3
  import { type TopMenuItemProps } from '../../data/NavigationData';
5
4
  import { env } from '../../Env';
6
5
  import { type LinkProps } from '../../model/LinkProps';
@@ -16,48 +15,38 @@ import { SearchInput } from './SearchInput';
16
15
  export interface SearchDialogProps extends OnCloseProps {
17
16
  initialQuery?: string;
18
17
  navigationItems?: TopMenuItemProps[];
19
- search?: SearchHeaderProps;
20
18
  }
21
19
 
22
20
  const IS_SINGLE_SEARCH_INDEX = Boolean(env.SINGLE_SEARCH_INDEX);
23
21
 
24
- export const SearchDialog = JSX<SearchDialogProps>(
25
- ({ initialQuery, navigationItems, onClose, search }) => {
26
- const basePath = getBasePath(env.SITE_URL);
27
-
28
- const basePathList = useMemo(
29
- () => (IS_SINGLE_SEARCH_INDEX ? [basePath] : navigationItems?.map((_) => _.href || '/')),
30
- [navigationItems],
31
- );
32
-
33
- const [searchResult, searchInputProps] = useSearch({
34
- basePathList,
35
- initialQuery,
36
- });
37
-
38
- const searchItems = useMemo(
39
- () => combineTopItemsAndSearchResult(navigationItems)(searchResult),
40
- [navigationItems, searchResult],
41
- );
42
-
43
- return (
44
- <Dialog
45
- maxWidth="none"
46
- head={
47
- <SearchInput
48
- className="mt-s"
49
- autoFocus={true}
50
- placeholder={search?.placeholder}
51
- {...searchInputProps}
52
- />
53
- }
54
- onClose={onClose}
55
- >
56
- <Sitemap navigationItems={searchItems} isSearchPanel={true} />
57
- </Dialog>
58
- );
59
- },
60
- );
22
+ export const SearchDialog = JSX<SearchDialogProps>(({ initialQuery, navigationItems, onClose }) => {
23
+ const basePath = getBasePath(env.SITE_URL);
24
+
25
+ const basePathList = useMemo(
26
+ () => (IS_SINGLE_SEARCH_INDEX ? [basePath] : navigationItems?.map((_) => _.href || '/')),
27
+ [navigationItems],
28
+ );
29
+
30
+ const [searchResult, searchInputProps] = useSearch({
31
+ basePathList,
32
+ initialQuery,
33
+ });
34
+
35
+ const searchItems = useMemo(
36
+ () => combineTopItemsAndSearchResult(navigationItems)(searchResult),
37
+ [navigationItems, searchResult],
38
+ );
39
+
40
+ return (
41
+ <Dialog
42
+ maxWidth="none"
43
+ head={<SearchInput className="mt-s" autoFocus={true} {...searchInputProps} />}
44
+ onClose={onClose}
45
+ >
46
+ <Sitemap navigationItems={searchItems} isSearchPanel={true} />
47
+ </Dialog>
48
+ );
49
+ });
61
50
 
62
51
  const combineTopItemsAndSearchResult =
63
52
  (topItems: TopMenuItemProps[] | undefined) =>
@@ -1,13 +1,10 @@
1
1
  import type ymaps from 'yandex-maps';
2
2
  import { useExternalNS } from '../../hooks/useExternalNS';
3
- import { projectSettings } from '../../ProjectSettings';
4
3
 
5
4
  const YMAPS_NAMESPACE = 'ymaps';
6
5
 
7
6
  export const useYandexMaps = () => {
8
- const url = `https://api-maps.yandex.ru/2.1/?apikey=${
9
- projectSettings.YANDEX_MAP_API_KEY || ''
10
- }&lang=ru_RU`;
7
+ const url = `https://api-maps.yandex.ru/2.1/?lang=ru_RU`;
11
8
 
12
9
  return useExternalNS<typeof ymaps>(YMAPS_NAMESPACE, url, false);
13
10
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "PROD_BRANCH": "master",
3
- "CHAT_BOT": "personal",
4
- "YANDEX_MAP_API_KEY": "93eb7343-0f82-4313-8071-72da6262f4c3"
3
+ "CHAT_BOT": "personal"
5
4
  }
5
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.14.951",
3
+ "version": "0.14.952",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -1,2 +1 @@
1
1
  export const API_BASE_URI = '/api/v1';
2
- export const RETAIL_API_BASE_URI = '/light-api-cash/v1';
@@ -24,6 +24,21 @@ export default {
24
24
  </div>
25
25
  ),
26
26
 
27
+ newMicroservice: (
28
+ <div className="container grid grid-cols-12">
29
+ <ApplicationLeadForm
30
+ className="col-span-12"
31
+ title="Заявка на кредит"
32
+ programId="10"
33
+ productType="credit"
34
+ button={button}
35
+ isNewMicroservice={true}
36
+ />
37
+ <PopupManager />
38
+ <DialogManager />
39
+ </div>
40
+ ),
41
+
27
42
  creditCard: (
28
43
  <div className="container grid grid-cols-12">
29
44
  <ApplicationLeadForm
@@ -43,6 +43,7 @@ export const ApplicationLeadForm = JSX<ApplicationLeadFormProps>(
43
43
  button,
44
44
  productType = 'credit',
45
45
  data,
46
+ isNewMicroservice = false,
46
47
  ...rest
47
48
  }) => {
48
49
  const [esiaStatus, setEsiaStatus] = useState<EsiaStatuses>();
@@ -69,6 +70,7 @@ export const ApplicationLeadForm = JSX<ApplicationLeadFormProps>(
69
70
  productType,
70
71
  setEsiaStatus,
71
72
  esiaAuthSuccess: esiaStatus === EsiaStatuses.Success,
73
+ isNewMicroservice,
72
74
  });
73
75
  const { isSending, handleSubmit } = useApplicationLeadApi({
74
76
  programId,
@@ -76,6 +78,7 @@ export const ApplicationLeadForm = JSX<ApplicationLeadFormProps>(
76
78
  productType,
77
79
  data,
78
80
  changeSubmitFormStatus,
81
+ isNewMicroservice,
79
82
  });
80
83
 
81
84
  const [, { field, onSubmit, reset }] = useForm(initialFormState, {
@@ -31,4 +31,6 @@ export type ApplicationLeadFormContent = UniBlockContent &
31
31
  nextStepLink?: string;
32
32
  /** @title тип продукта */
33
33
  productType?: ProductType;
34
+ /** @title включить отправку заявки на новый микросервис */
35
+ isNewMicroservice?: boolean;
34
36
  };