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

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 (644) 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 +492 -185
  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/calculateInputs.d.ts +1 -1
  27. package/bundle/retail/utils/checkNewMicroservice.d.ts +1 -0
  28. package/bundle/retail/utils/renderStep.d.ts +1 -2
  29. package/bundle/retail/validator/getRetailFormValidator.d.ts +1 -2
  30. package/bundle/ui-kit/SearchBar/SearchBar.d.ts +1 -2
  31. package/bundle/ui-kit/SearchDialog/SearchDialog.d.ts +0 -2
  32. package/dist/api/apiBaseUrl.d.ts +0 -1
  33. package/dist/api/apiBaseUrl.js +1 -2
  34. package/dist/api/apiBaseUrl.js.map +1 -1
  35. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -1
  36. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  37. package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -0
  38. package/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +6 -4
  39. package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +35 -24
  40. package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  41. package/dist/components/ApplicationLeadForm/parseEsiaProfile.d.ts +1 -1
  42. package/dist/components/ApplicationLeadForm/parseEsiaProfile.js +13 -11
  43. package/dist/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
  44. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -1
  45. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +98 -4
  46. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  47. package/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
  48. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +3 -2
  49. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  50. package/dist/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -2
  51. package/dist/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
  52. package/dist/components/ApplicationLeadForm/useSaveUserData.d.ts +2 -1
  53. package/dist/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
  54. package/dist/components/CreditCardForm/CreditCardFormStep.js +1 -2
  55. package/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
  56. package/dist/components/CreditCardForm/creditCardFormStepsData.js +84 -13
  57. package/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  58. package/dist/components/CreditForm/CreditFormStatusTracker.js +16 -2
  59. package/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  60. package/dist/components/CreditForm/CreditFormStep.js +1 -2
  61. package/dist/components/CreditForm/CreditFormStep.js.map +1 -1
  62. package/dist/components/CreditForm/creditFormStepsData.js +52 -8
  63. package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  64. package/dist/components/CreditForm/useCreditFormAPI.js +1 -1
  65. package/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
  66. package/dist/components/DebitForm/DebitFormStep.js +1 -2
  67. package/dist/components/DebitForm/DebitFormStep.js.map +1 -1
  68. package/dist/components/Footer/Footer.js +1 -1
  69. package/dist/components/Footer/Footer.js.map +1 -1
  70. package/dist/components/Footer/renderLogoSearchBar.js +2 -2
  71. package/dist/components/Footer/renderLogoSearchBar.js.map +1 -1
  72. package/dist/components/Header/DropdownMenu.d.ts +2 -2
  73. package/dist/components/Header/HeaderQuickActionsMenu.d.ts +1 -1
  74. package/dist/components/Header/HeaderQuickActionsMenu.js +5 -7
  75. package/dist/components/Header/HeaderQuickActionsMenu.js.map +1 -1
  76. package/dist/retail/adaptors/getCreditFormTaskData.d.ts +3 -2
  77. package/dist/retail/adaptors/getCreditFormTaskData.js +36 -25
  78. package/dist/retail/adaptors/getCreditFormTaskData.js.map +1 -1
  79. package/dist/retail/adaptors/getEmploymentData.js +25 -21
  80. package/dist/retail/adaptors/getEmploymentData.js.map +1 -1
  81. package/dist/retail/adaptors/utils.js +1 -1
  82. package/dist/retail/adaptors/utils.js.map +1 -1
  83. package/dist/retail/api/apiBaseUrl.d.ts +2 -1
  84. package/dist/retail/api/apiBaseUrl.js +3 -2
  85. package/dist/retail/api/apiBaseUrl.js.map +1 -1
  86. package/dist/retail/api/checkCaptcha.d.ts +1 -0
  87. package/dist/retail/api/checkCaptcha.js +10 -3
  88. package/dist/retail/api/checkCaptcha.js.map +1 -1
  89. package/dist/retail/api/checkCode.d.ts +1 -0
  90. package/dist/retail/api/checkCode.js +9 -1
  91. package/dist/retail/api/checkCode.js.map +1 -1
  92. package/dist/retail/api/createCaptcha.js +5 -1
  93. package/dist/retail/api/createCaptcha.js.map +1 -1
  94. package/dist/retail/api/createDraftTask.d.ts +2 -1
  95. package/dist/retail/api/createDraftTask.js.map +1 -1
  96. package/dist/retail/api/createParticipant.d.ts +6 -0
  97. package/dist/retail/api/createParticipant.js +6 -0
  98. package/dist/retail/api/createParticipant.js.map +1 -0
  99. package/dist/retail/api/doRequest.js +4 -2
  100. package/dist/retail/api/doRequest.js.map +1 -1
  101. package/dist/retail/api/esiaRequestProfile.js +11 -7
  102. package/dist/retail/api/esiaRequestProfile.js.map +1 -1
  103. package/dist/retail/api/getDictionaries.js +3 -1
  104. package/dist/retail/api/getDictionaries.js.map +1 -1
  105. package/dist/retail/api/getLink.js +5 -1
  106. package/dist/retail/api/getLink.js.map +1 -1
  107. package/dist/retail/api/sendCode.js +8 -1
  108. package/dist/retail/api/sendCode.js.map +1 -1
  109. package/dist/retail/api/sendMessage.d.ts +7 -0
  110. package/dist/retail/api/sendMessage.js +8 -0
  111. package/dist/retail/api/sendMessage.js.map +1 -0
  112. package/dist/retail/api/updateUserTask.d.ts +14 -8
  113. package/dist/retail/api/updateUserTask.js.map +1 -1
  114. package/dist/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
  115. package/dist/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  116. package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +9 -1
  117. package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +28 -4
  118. package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  119. package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -1
  120. package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  121. package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +2 -1
  122. package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +2 -1
  123. package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  124. package/dist/retail/hooks/useLeadFormData.js +3 -1
  125. package/dist/retail/hooks/useLeadFormData.js.map +1 -1
  126. package/dist/retail/hooks/useRetailFormStore.d.ts +1 -1
  127. package/dist/retail/model/LeadFormState.d.ts +2 -4
  128. package/dist/retail/utils/calculateInputs.d.ts +1 -1
  129. package/dist/retail/utils/calculateInputs.js +2 -6
  130. package/dist/retail/utils/calculateInputs.js.map +1 -1
  131. package/dist/retail/utils/checkNewMicroservice.d.ts +1 -0
  132. package/dist/retail/utils/checkNewMicroservice.js +8 -0
  133. package/dist/retail/utils/checkNewMicroservice.js.map +1 -0
  134. package/dist/retail/utils/renderStep.d.ts +1 -2
  135. package/dist/retail/utils/renderStep.js +2 -2
  136. package/dist/retail/utils/renderStep.js.map +1 -1
  137. package/dist/retail/validator/getRetailFormValidator.d.ts +1 -2
  138. package/dist/retail/validator/getRetailFormValidator.js +1 -1
  139. package/dist/retail/validator/getRetailFormValidator.js.map +1 -1
  140. package/dist/ui-kit/SearchBar/SearchBar.d.ts +1 -2
  141. package/dist/ui-kit/SearchBar/SearchBar.js +1 -1
  142. package/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  143. package/dist/ui-kit/SearchDialog/SearchDialog.d.ts +0 -2
  144. package/dist/ui-kit/SearchDialog/SearchDialog.js +2 -2
  145. package/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  146. package/dist/ui-kit/YandexMap/useYandexMaps.js +1 -2
  147. package/dist/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
  148. package/dist/wlc.json +1 -2
  149. package/lib/api/apiBaseUrl.d.ts +0 -1
  150. package/lib/api/apiBaseUrl.js +0 -1
  151. package/lib/api/apiBaseUrl.js.map +1 -1
  152. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.fixture.d.ts +1 -0
  153. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -1
  154. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  155. package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -0
  156. package/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +6 -4
  157. package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +33 -23
  158. package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  159. package/lib/components/ApplicationLeadForm/parseEsiaProfile.d.ts +1 -1
  160. package/lib/components/ApplicationLeadForm/parseEsiaProfile.js +13 -11
  161. package/lib/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
  162. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -1
  163. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +98 -4
  164. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  165. package/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
  166. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +3 -2
  167. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  168. package/lib/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -2
  169. package/lib/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
  170. package/lib/components/ApplicationLeadForm/useSaveUserData.d.ts +2 -1
  171. package/lib/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
  172. package/lib/components/CreditCardForm/CreditCardFormStep.js +1 -2
  173. package/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
  174. package/lib/components/CreditCardForm/creditCardFormStepsData.js +84 -13
  175. package/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  176. package/lib/components/CreditForm/CreditFormStatusTracker.js +16 -2
  177. package/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  178. package/lib/components/CreditForm/CreditFormStep.js +1 -2
  179. package/lib/components/CreditForm/CreditFormStep.js.map +1 -1
  180. package/lib/components/CreditForm/creditFormStepsData.js +52 -8
  181. package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  182. package/lib/components/CreditForm/useCreditFormAPI.js +1 -1
  183. package/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
  184. package/lib/components/DebitForm/DebitFormStep.js +1 -2
  185. package/lib/components/DebitForm/DebitFormStep.js.map +1 -1
  186. package/lib/components/Footer/Footer.js +1 -1
  187. package/lib/components/Footer/Footer.js.map +1 -1
  188. package/lib/components/Footer/renderLogoSearchBar.js +2 -2
  189. package/lib/components/Footer/renderLogoSearchBar.js.map +1 -1
  190. package/lib/components/Header/DropdownMenu.d.ts +2 -2
  191. package/lib/components/Header/HeaderQuickActionsMenu.d.ts +1 -1
  192. package/lib/components/Header/HeaderQuickActionsMenu.js +5 -7
  193. package/lib/components/Header/HeaderQuickActionsMenu.js.map +1 -1
  194. package/lib/retail/adaptors/getCreditFormTaskData.d.ts +3 -2
  195. package/lib/retail/adaptors/getCreditFormTaskData.js +36 -25
  196. package/lib/retail/adaptors/getCreditFormTaskData.js.map +1 -1
  197. package/lib/retail/adaptors/getEmploymentData.js +25 -21
  198. package/lib/retail/adaptors/getEmploymentData.js.map +1 -1
  199. package/lib/retail/adaptors/utils.js +1 -1
  200. package/lib/retail/adaptors/utils.js.map +1 -1
  201. package/lib/retail/api/apiBaseUrl.d.ts +2 -1
  202. package/lib/retail/api/apiBaseUrl.js +2 -1
  203. package/lib/retail/api/apiBaseUrl.js.map +1 -1
  204. package/lib/retail/api/checkCaptcha.d.ts +1 -0
  205. package/lib/retail/api/checkCaptcha.js +10 -3
  206. package/lib/retail/api/checkCaptcha.js.map +1 -1
  207. package/lib/retail/api/checkCode.d.ts +1 -0
  208. package/lib/retail/api/checkCode.js +9 -1
  209. package/lib/retail/api/checkCode.js.map +1 -1
  210. package/lib/retail/api/createCaptcha.js +5 -1
  211. package/lib/retail/api/createCaptcha.js.map +1 -1
  212. package/lib/retail/api/createDraftTask.d.ts +2 -1
  213. package/lib/retail/api/createDraftTask.js.map +1 -1
  214. package/lib/retail/api/createParticipant.d.ts +6 -0
  215. package/lib/retail/api/createParticipant.js +3 -0
  216. package/lib/retail/api/createParticipant.js.map +1 -0
  217. package/lib/retail/api/doRequest.js +4 -2
  218. package/lib/retail/api/doRequest.js.map +1 -1
  219. package/lib/retail/api/esiaRequestProfile.js +11 -7
  220. package/lib/retail/api/esiaRequestProfile.js.map +1 -1
  221. package/lib/retail/api/getDictionaries.js +3 -1
  222. package/lib/retail/api/getDictionaries.js.map +1 -1
  223. package/lib/retail/api/getLink.js +5 -1
  224. package/lib/retail/api/getLink.js.map +1 -1
  225. package/lib/retail/api/sendCode.js +8 -1
  226. package/lib/retail/api/sendCode.js.map +1 -1
  227. package/lib/retail/api/sendMessage.d.ts +7 -0
  228. package/lib/retail/api/sendMessage.js +5 -0
  229. package/lib/retail/api/sendMessage.js.map +1 -0
  230. package/lib/retail/api/updateUserTask.d.ts +14 -8
  231. package/lib/retail/api/updateUserTask.js.map +1 -1
  232. package/lib/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
  233. package/lib/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  234. package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +9 -1
  235. package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +28 -4
  236. package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  237. package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -1
  238. package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  239. package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +2 -1
  240. package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +2 -1
  241. package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  242. package/lib/retail/hooks/useLeadFormData.js +4 -2
  243. package/lib/retail/hooks/useLeadFormData.js.map +1 -1
  244. package/lib/retail/hooks/useRetailFormStore.d.ts +1 -1
  245. package/lib/retail/model/LeadFormState.d.ts +2 -4
  246. package/lib/retail/utils/calculateInputs.d.ts +1 -1
  247. package/lib/retail/utils/calculateInputs.js +2 -6
  248. package/lib/retail/utils/calculateInputs.js.map +1 -1
  249. package/lib/retail/utils/checkNewMicroservice.d.ts +1 -0
  250. package/lib/retail/utils/checkNewMicroservice.js +5 -0
  251. package/lib/retail/utils/checkNewMicroservice.js.map +1 -0
  252. package/lib/retail/utils/renderStep.d.ts +1 -2
  253. package/lib/retail/utils/renderStep.js +2 -2
  254. package/lib/retail/utils/renderStep.js.map +1 -1
  255. package/lib/retail/validator/getRetailFormValidator.d.ts +1 -2
  256. package/lib/retail/validator/getRetailFormValidator.js +1 -1
  257. package/lib/retail/validator/getRetailFormValidator.js.map +1 -1
  258. package/lib/ui-kit/SearchBar/SearchBar.d.ts +1 -2
  259. package/lib/ui-kit/SearchBar/SearchBar.js +1 -1
  260. package/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  261. package/lib/ui-kit/SearchDialog/SearchDialog.d.ts +0 -2
  262. package/lib/ui-kit/SearchDialog/SearchDialog.js +2 -2
  263. package/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  264. package/lib/ui-kit/YandexMap/useYandexMaps.js +1 -2
  265. package/lib/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
  266. package/lib/wlc.json +1 -2
  267. package/mobile/bundle/api/apiBaseUrl.d.ts +0 -1
  268. package/mobile/bundle/bundle.umd.js +487 -180
  269. package/mobile/bundle/bundle.umd.min.js +1 -1
  270. package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -0
  271. package/mobile/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +6 -4
  272. package/mobile/bundle/components/ApplicationLeadForm/parseEsiaProfile.d.ts +1 -1
  273. package/mobile/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -1
  274. package/mobile/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
  275. package/mobile/bundle/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -2
  276. package/mobile/bundle/components/ApplicationLeadForm/useSaveUserData.d.ts +2 -1
  277. package/mobile/bundle/components/Header/DropdownMenu.d.ts +2 -2
  278. package/mobile/bundle/components/Header/HeaderQuickActionsMenu.d.ts +1 -1
  279. package/mobile/bundle/retail/adaptors/getCreditFormTaskData.d.ts +3 -2
  280. package/mobile/bundle/retail/api/apiBaseUrl.d.ts +2 -1
  281. package/mobile/bundle/retail/api/checkCaptcha.d.ts +1 -0
  282. package/mobile/bundle/retail/api/checkCode.d.ts +1 -0
  283. package/mobile/bundle/retail/api/createDraftTask.d.ts +2 -1
  284. package/mobile/bundle/retail/api/createParticipant.d.ts +6 -0
  285. package/mobile/bundle/retail/api/sendMessage.d.ts +7 -0
  286. package/mobile/bundle/retail/api/updateUserTask.d.ts +14 -8
  287. package/mobile/bundle/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +9 -1
  288. package/mobile/bundle/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +2 -1
  289. package/mobile/bundle/retail/hooks/useRetailFormStore.d.ts +1 -1
  290. package/mobile/bundle/retail/model/LeadFormState.d.ts +2 -4
  291. package/mobile/bundle/retail/utils/calculateInputs.d.ts +1 -1
  292. package/mobile/bundle/retail/utils/checkNewMicroservice.d.ts +1 -0
  293. package/mobile/bundle/retail/utils/renderStep.d.ts +1 -2
  294. package/mobile/bundle/retail/validator/getRetailFormValidator.d.ts +1 -2
  295. package/mobile/bundle/ui-kit/SearchBar/SearchBar.d.ts +1 -2
  296. package/mobile/bundle/ui-kit/SearchDialog/SearchDialog.d.ts +0 -2
  297. package/mobile/dist/api/apiBaseUrl.d.ts +0 -1
  298. package/mobile/dist/api/apiBaseUrl.js +1 -2
  299. package/mobile/dist/api/apiBaseUrl.js.map +1 -1
  300. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -1
  301. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  302. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -0
  303. package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +6 -4
  304. package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +35 -24
  305. package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  306. package/mobile/dist/components/ApplicationLeadForm/parseEsiaProfile.d.ts +1 -1
  307. package/mobile/dist/components/ApplicationLeadForm/parseEsiaProfile.js +13 -11
  308. package/mobile/dist/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
  309. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -1
  310. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +98 -4
  311. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  312. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
  313. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +3 -2
  314. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  315. package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -2
  316. package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
  317. package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.d.ts +2 -1
  318. package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
  319. package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js +1 -2
  320. package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
  321. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js +84 -13
  322. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  323. package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js +16 -2
  324. package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  325. package/mobile/dist/components/CreditForm/CreditFormStep.js +1 -2
  326. package/mobile/dist/components/CreditForm/CreditFormStep.js.map +1 -1
  327. package/mobile/dist/components/CreditForm/creditFormStepsData.js +52 -8
  328. package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  329. package/mobile/dist/components/CreditForm/useCreditFormAPI.js +1 -1
  330. package/mobile/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
  331. package/mobile/dist/components/DebitForm/DebitFormStep.js +1 -2
  332. package/mobile/dist/components/DebitForm/DebitFormStep.js.map +1 -1
  333. package/mobile/dist/components/Footer/Footer.js +1 -1
  334. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  335. package/mobile/dist/components/Header/DropdownMenu.d.ts +2 -2
  336. package/mobile/dist/components/Header/HeaderQuickActionsMenu.d.ts +1 -1
  337. package/mobile/dist/components/Header/HeaderQuickActionsMenu.js +5 -7
  338. package/mobile/dist/components/Header/HeaderQuickActionsMenu.js.map +1 -1
  339. package/mobile/dist/retail/adaptors/getCreditFormTaskData.d.ts +3 -2
  340. package/mobile/dist/retail/adaptors/getCreditFormTaskData.js +36 -25
  341. package/mobile/dist/retail/adaptors/getCreditFormTaskData.js.map +1 -1
  342. package/mobile/dist/retail/adaptors/getEmploymentData.js +25 -21
  343. package/mobile/dist/retail/adaptors/getEmploymentData.js.map +1 -1
  344. package/mobile/dist/retail/adaptors/utils.js +1 -1
  345. package/mobile/dist/retail/adaptors/utils.js.map +1 -1
  346. package/mobile/dist/retail/api/apiBaseUrl.d.ts +2 -1
  347. package/mobile/dist/retail/api/apiBaseUrl.js +3 -2
  348. package/mobile/dist/retail/api/apiBaseUrl.js.map +1 -1
  349. package/mobile/dist/retail/api/checkCaptcha.d.ts +1 -0
  350. package/mobile/dist/retail/api/checkCaptcha.js +10 -3
  351. package/mobile/dist/retail/api/checkCaptcha.js.map +1 -1
  352. package/mobile/dist/retail/api/checkCode.d.ts +1 -0
  353. package/mobile/dist/retail/api/checkCode.js +9 -1
  354. package/mobile/dist/retail/api/checkCode.js.map +1 -1
  355. package/mobile/dist/retail/api/createCaptcha.js +5 -1
  356. package/mobile/dist/retail/api/createCaptcha.js.map +1 -1
  357. package/mobile/dist/retail/api/createDraftTask.d.ts +2 -1
  358. package/mobile/dist/retail/api/createDraftTask.js.map +1 -1
  359. package/mobile/dist/retail/api/createParticipant.d.ts +6 -0
  360. package/mobile/dist/retail/api/createParticipant.js +6 -0
  361. package/mobile/dist/retail/api/createParticipant.js.map +1 -0
  362. package/mobile/dist/retail/api/doRequest.js +4 -2
  363. package/mobile/dist/retail/api/doRequest.js.map +1 -1
  364. package/mobile/dist/retail/api/esiaRequestProfile.js +11 -7
  365. package/mobile/dist/retail/api/esiaRequestProfile.js.map +1 -1
  366. package/mobile/dist/retail/api/getDictionaries.js +3 -1
  367. package/mobile/dist/retail/api/getDictionaries.js.map +1 -1
  368. package/mobile/dist/retail/api/getLink.js +5 -1
  369. package/mobile/dist/retail/api/getLink.js.map +1 -1
  370. package/mobile/dist/retail/api/sendCode.js +8 -1
  371. package/mobile/dist/retail/api/sendCode.js.map +1 -1
  372. package/mobile/dist/retail/api/sendMessage.d.ts +7 -0
  373. package/mobile/dist/retail/api/sendMessage.js +8 -0
  374. package/mobile/dist/retail/api/sendMessage.js.map +1 -0
  375. package/mobile/dist/retail/api/updateUserTask.d.ts +14 -8
  376. package/mobile/dist/retail/api/updateUserTask.js.map +1 -1
  377. package/mobile/dist/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
  378. package/mobile/dist/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  379. package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +9 -1
  380. package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +28 -4
  381. package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  382. package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -1
  383. package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  384. package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +2 -1
  385. package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +2 -1
  386. package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  387. package/mobile/dist/retail/hooks/useLeadFormData.js +3 -1
  388. package/mobile/dist/retail/hooks/useLeadFormData.js.map +1 -1
  389. package/mobile/dist/retail/hooks/useRetailFormStore.d.ts +1 -1
  390. package/mobile/dist/retail/model/LeadFormState.d.ts +2 -4
  391. package/mobile/dist/retail/utils/calculateInputs.d.ts +1 -1
  392. package/mobile/dist/retail/utils/calculateInputs.js +2 -6
  393. package/mobile/dist/retail/utils/calculateInputs.js.map +1 -1
  394. package/mobile/dist/retail/utils/checkNewMicroservice.d.ts +1 -0
  395. package/mobile/dist/retail/utils/checkNewMicroservice.js +8 -0
  396. package/mobile/dist/retail/utils/checkNewMicroservice.js.map +1 -0
  397. package/mobile/dist/retail/utils/renderStep.d.ts +1 -2
  398. package/mobile/dist/retail/utils/renderStep.js +2 -2
  399. package/mobile/dist/retail/utils/renderStep.js.map +1 -1
  400. package/mobile/dist/retail/validator/getRetailFormValidator.d.ts +1 -2
  401. package/mobile/dist/retail/validator/getRetailFormValidator.js +1 -1
  402. package/mobile/dist/retail/validator/getRetailFormValidator.js.map +1 -1
  403. package/mobile/dist/ui-kit/SearchBar/SearchBar.d.ts +1 -2
  404. package/mobile/dist/ui-kit/SearchBar/SearchBar.js +1 -1
  405. package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  406. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.d.ts +0 -2
  407. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js +2 -2
  408. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  409. package/mobile/dist/ui-kit/YandexMap/useYandexMaps.js +1 -2
  410. package/mobile/dist/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
  411. package/mobile/dist/wlc.json +1 -2
  412. package/mobile/lib/api/apiBaseUrl.d.ts +0 -1
  413. package/mobile/lib/api/apiBaseUrl.js +0 -1
  414. package/mobile/lib/api/apiBaseUrl.js.map +1 -1
  415. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -1
  416. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  417. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -0
  418. package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +6 -4
  419. package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +33 -23
  420. package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  421. package/mobile/lib/components/ApplicationLeadForm/parseEsiaProfile.d.ts +1 -1
  422. package/mobile/lib/components/ApplicationLeadForm/parseEsiaProfile.js +13 -11
  423. package/mobile/lib/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
  424. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -1
  425. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +98 -4
  426. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  427. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
  428. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +3 -2
  429. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  430. package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -2
  431. package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
  432. package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.d.ts +2 -1
  433. package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
  434. package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js +1 -2
  435. package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
  436. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js +84 -13
  437. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  438. package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js +16 -2
  439. package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  440. package/mobile/lib/components/CreditForm/CreditFormStep.js +1 -2
  441. package/mobile/lib/components/CreditForm/CreditFormStep.js.map +1 -1
  442. package/mobile/lib/components/CreditForm/creditFormStepsData.js +52 -8
  443. package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  444. package/mobile/lib/components/CreditForm/useCreditFormAPI.js +1 -1
  445. package/mobile/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
  446. package/mobile/lib/components/DebitForm/DebitFormStep.js +1 -2
  447. package/mobile/lib/components/DebitForm/DebitFormStep.js.map +1 -1
  448. package/mobile/lib/components/Footer/Footer.js +1 -1
  449. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  450. package/mobile/lib/components/Header/DropdownMenu.d.ts +2 -2
  451. package/mobile/lib/components/Header/HeaderQuickActionsMenu.d.ts +1 -1
  452. package/mobile/lib/components/Header/HeaderQuickActionsMenu.js +5 -7
  453. package/mobile/lib/components/Header/HeaderQuickActionsMenu.js.map +1 -1
  454. package/mobile/lib/retail/adaptors/getCreditFormTaskData.d.ts +3 -2
  455. package/mobile/lib/retail/adaptors/getCreditFormTaskData.js +36 -25
  456. package/mobile/lib/retail/adaptors/getCreditFormTaskData.js.map +1 -1
  457. package/mobile/lib/retail/adaptors/getEmploymentData.js +25 -21
  458. package/mobile/lib/retail/adaptors/getEmploymentData.js.map +1 -1
  459. package/mobile/lib/retail/adaptors/utils.js +1 -1
  460. package/mobile/lib/retail/adaptors/utils.js.map +1 -1
  461. package/mobile/lib/retail/api/apiBaseUrl.d.ts +2 -1
  462. package/mobile/lib/retail/api/apiBaseUrl.js +2 -1
  463. package/mobile/lib/retail/api/apiBaseUrl.js.map +1 -1
  464. package/mobile/lib/retail/api/checkCaptcha.d.ts +1 -0
  465. package/mobile/lib/retail/api/checkCaptcha.js +10 -3
  466. package/mobile/lib/retail/api/checkCaptcha.js.map +1 -1
  467. package/mobile/lib/retail/api/checkCode.d.ts +1 -0
  468. package/mobile/lib/retail/api/checkCode.js +9 -1
  469. package/mobile/lib/retail/api/checkCode.js.map +1 -1
  470. package/mobile/lib/retail/api/createCaptcha.js +5 -1
  471. package/mobile/lib/retail/api/createCaptcha.js.map +1 -1
  472. package/mobile/lib/retail/api/createDraftTask.d.ts +2 -1
  473. package/mobile/lib/retail/api/createDraftTask.js.map +1 -1
  474. package/mobile/lib/retail/api/createParticipant.d.ts +6 -0
  475. package/mobile/lib/retail/api/createParticipant.js +3 -0
  476. package/mobile/lib/retail/api/createParticipant.js.map +1 -0
  477. package/mobile/lib/retail/api/doRequest.js +4 -2
  478. package/mobile/lib/retail/api/doRequest.js.map +1 -1
  479. package/mobile/lib/retail/api/esiaRequestProfile.js +11 -7
  480. package/mobile/lib/retail/api/esiaRequestProfile.js.map +1 -1
  481. package/mobile/lib/retail/api/getDictionaries.js +3 -1
  482. package/mobile/lib/retail/api/getDictionaries.js.map +1 -1
  483. package/mobile/lib/retail/api/getLink.js +5 -1
  484. package/mobile/lib/retail/api/getLink.js.map +1 -1
  485. package/mobile/lib/retail/api/sendCode.js +8 -1
  486. package/mobile/lib/retail/api/sendCode.js.map +1 -1
  487. package/mobile/lib/retail/api/sendMessage.d.ts +7 -0
  488. package/mobile/lib/retail/api/sendMessage.js +5 -0
  489. package/mobile/lib/retail/api/sendMessage.js.map +1 -0
  490. package/mobile/lib/retail/api/updateUserTask.d.ts +14 -8
  491. package/mobile/lib/retail/api/updateUserTask.js.map +1 -1
  492. package/mobile/lib/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
  493. package/mobile/lib/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  494. package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +9 -1
  495. package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +28 -4
  496. package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  497. package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -1
  498. package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  499. package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +2 -1
  500. package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +2 -1
  501. package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  502. package/mobile/lib/retail/hooks/useLeadFormData.js +4 -2
  503. package/mobile/lib/retail/hooks/useLeadFormData.js.map +1 -1
  504. package/mobile/lib/retail/hooks/useRetailFormStore.d.ts +1 -1
  505. package/mobile/lib/retail/model/LeadFormState.d.ts +2 -4
  506. package/mobile/lib/retail/utils/calculateInputs.d.ts +1 -1
  507. package/mobile/lib/retail/utils/calculateInputs.js +2 -6
  508. package/mobile/lib/retail/utils/calculateInputs.js.map +1 -1
  509. package/mobile/lib/retail/utils/checkNewMicroservice.d.ts +1 -0
  510. package/mobile/lib/retail/utils/checkNewMicroservice.js +5 -0
  511. package/mobile/lib/retail/utils/checkNewMicroservice.js.map +1 -0
  512. package/mobile/lib/retail/utils/renderStep.d.ts +1 -2
  513. package/mobile/lib/retail/utils/renderStep.js +2 -2
  514. package/mobile/lib/retail/utils/renderStep.js.map +1 -1
  515. package/mobile/lib/retail/validator/getRetailFormValidator.d.ts +1 -2
  516. package/mobile/lib/retail/validator/getRetailFormValidator.js +1 -1
  517. package/mobile/lib/retail/validator/getRetailFormValidator.js.map +1 -1
  518. package/mobile/lib/ui-kit/SearchBar/SearchBar.d.ts +1 -2
  519. package/mobile/lib/ui-kit/SearchBar/SearchBar.js +1 -1
  520. package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  521. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.d.ts +0 -2
  522. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js +2 -2
  523. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  524. package/mobile/lib/ui-kit/YandexMap/useYandexMaps.js +1 -2
  525. package/mobile/lib/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
  526. package/mobile/lib/wlc.json +1 -2
  527. package/mobile/src/api/apiBaseUrl.ts +0 -1
  528. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +3 -0
  529. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +2 -0
  530. package/mobile/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +50 -24
  531. package/mobile/src/components/ApplicationLeadForm/parseEsiaProfile.ts +17 -11
  532. package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +129 -3
  533. package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +9 -1
  534. package/mobile/src/components/ApplicationLeadForm/useLeadFormStore.ts +2 -1
  535. package/mobile/src/components/ApplicationLeadForm/useSaveUserData.ts +2 -1
  536. package/mobile/src/components/CreditCardForm/CreditCardFormStep.tsx +1 -2
  537. package/mobile/src/components/CreditCardForm/creditCardFormStepsData.tsx +84 -13
  538. package/mobile/src/components/CreditForm/CreditFormStatusTracker.tsx +16 -2
  539. package/mobile/src/components/CreditForm/CreditFormStep.tsx +1 -2
  540. package/mobile/src/components/CreditForm/creditFormStepsData.tsx +52 -8
  541. package/mobile/src/components/CreditForm/useCreditFormAPI.tsx +1 -1
  542. package/mobile/src/components/DebitForm/DebitFormStep.tsx +1 -2
  543. package/mobile/src/components/Footer/Footer.tsx +3 -5
  544. package/mobile/src/components/Header/DropdownMenu.tsx +2 -2
  545. package/mobile/src/components/Header/HeaderQuickActionsMenu.tsx +7 -9
  546. package/mobile/src/retail/adaptors/getCreditFormTaskData.ts +42 -28
  547. package/mobile/src/retail/adaptors/getEmploymentData.tsx +25 -21
  548. package/mobile/src/retail/adaptors/utils.ts +1 -1
  549. package/mobile/src/retail/api/apiBaseUrl.ts +2 -1
  550. package/mobile/src/retail/api/checkCaptcha.ts +10 -2
  551. package/mobile/src/retail/api/checkCode.ts +11 -2
  552. package/mobile/src/retail/api/createCaptcha.ts +11 -4
  553. package/mobile/src/retail/api/createDraftTask.ts +2 -1
  554. package/mobile/src/retail/api/createParticipant.ts +17 -0
  555. package/mobile/src/retail/api/doRequest.ts +17 -12
  556. package/mobile/src/retail/api/esiaRequestProfile.ts +10 -2
  557. package/mobile/src/retail/api/getDictionaries.ts +6 -1
  558. package/mobile/src/retail/api/getLink.ts +10 -2
  559. package/mobile/src/retail/api/sendCode.ts +9 -1
  560. package/mobile/src/retail/api/sendMessage.ts +12 -0
  561. package/mobile/src/retail/api/updateUserTask.ts +14 -9
  562. package/mobile/src/retail/components/CaptchaDialog/CaptchaDialog.tsx +1 -1
  563. package/mobile/src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx +54 -21
  564. package/mobile/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +2 -1
  565. package/mobile/src/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +3 -0
  566. package/mobile/src/retail/hooks/useLeadFormData.ts +7 -2
  567. package/mobile/src/retail/model/LeadFormState.ts +2 -4
  568. package/mobile/src/retail/utils/calculateInputs.ts +2 -10
  569. package/mobile/src/retail/utils/checkNewMicroservice.ts +5 -0
  570. package/mobile/src/retail/utils/renderStep.tsx +1 -3
  571. package/mobile/src/retail/validator/getRetailFormValidator.ts +1 -3
  572. package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +1 -3
  573. package/mobile/src/ui-kit/SearchDialog/SearchDialog.tsx +28 -39
  574. package/mobile/src/ui-kit/YandexMap/useYandexMaps.ts +1 -4
  575. package/mobile/src/wlc.json +2 -2
  576. package/package.json +1 -1
  577. package/src/api/apiBaseUrl.ts +0 -1
  578. package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.tsx +15 -0
  579. package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +3 -0
  580. package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +2 -0
  581. package/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +50 -24
  582. package/src/components/ApplicationLeadForm/parseEsiaProfile.ts +17 -11
  583. package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +129 -3
  584. package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +9 -1
  585. package/src/components/ApplicationLeadForm/useLeadFormStore.ts +2 -1
  586. package/src/components/ApplicationLeadForm/useSaveUserData.ts +2 -1
  587. package/src/components/CreditCardForm/CreditCardFormStep.tsx +1 -2
  588. package/src/components/CreditCardForm/creditCardFormStepsData.tsx +84 -13
  589. package/src/components/CreditForm/CreditForm.fixture.tsx +12 -18
  590. package/src/components/CreditForm/CreditFormStatusTracker.tsx +16 -2
  591. package/src/components/CreditForm/CreditFormStep.tsx +1 -2
  592. package/src/components/CreditForm/creditFormStepsData.tsx +52 -8
  593. package/src/components/CreditForm/useCreditFormAPI.tsx +1 -1
  594. package/src/components/DebitForm/DebitFormStep.tsx +1 -2
  595. package/src/components/Footer/Footer.tsx +3 -5
  596. package/src/components/Footer/renderLogoSearchBar.tsx +2 -7
  597. package/src/components/Header/DropdownMenu.tsx +2 -2
  598. package/src/components/Header/HeaderQuickActionsMenu.tsx +7 -9
  599. package/src/retail/adaptors/getCreditFormTaskData.ts +42 -28
  600. package/src/retail/adaptors/getEmploymentData.tsx +25 -21
  601. package/src/retail/adaptors/utils.ts +1 -1
  602. package/src/retail/api/apiBaseUrl.ts +2 -1
  603. package/src/retail/api/checkCaptcha.ts +10 -2
  604. package/src/retail/api/checkCode.ts +11 -2
  605. package/src/retail/api/createCaptcha.ts +11 -4
  606. package/src/retail/api/createDraftTask.ts +2 -1
  607. package/src/retail/api/createParticipant.ts +17 -0
  608. package/src/retail/api/doRequest.ts +17 -12
  609. package/src/retail/api/esiaRequestProfile.ts +10 -2
  610. package/src/retail/api/getDictionaries.ts +6 -1
  611. package/src/retail/api/getLink.ts +10 -2
  612. package/src/retail/api/sendCode.ts +9 -1
  613. package/src/retail/api/sendMessage.ts +12 -0
  614. package/src/retail/api/updateUserTask.ts +14 -9
  615. package/src/retail/components/CaptchaDialog/CaptchaDialog.tsx +1 -1
  616. package/src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx +54 -21
  617. package/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +2 -1
  618. package/src/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +3 -0
  619. package/src/retail/hooks/useLeadFormData.ts +7 -2
  620. package/src/retail/model/LeadFormState.ts +2 -4
  621. package/src/retail/utils/calculateInputs.ts +2 -10
  622. package/src/retail/utils/checkNewMicroservice.ts +5 -0
  623. package/src/retail/utils/renderStep.tsx +1 -3
  624. package/src/retail/validator/getRetailFormValidator.ts +1 -3
  625. package/src/ui-kit/SearchBar/SearchBar.tsx +1 -3
  626. package/src/ui-kit/SearchDialog/SearchDialog.tsx +28 -39
  627. package/src/ui-kit/YandexMap/useYandexMaps.ts +1 -4
  628. package/src/wlc.json +2 -2
  629. package/bundle/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +0 -8
  630. package/dist/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +0 -8
  631. package/dist/components/ApplicationLeadForm/renderAgreementSubmit.js +0 -14
  632. package/dist/components/ApplicationLeadForm/renderAgreementSubmit.js.map +0 -1
  633. package/lib/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +0 -8
  634. package/lib/components/ApplicationLeadForm/renderAgreementSubmit.js +0 -11
  635. package/lib/components/ApplicationLeadForm/renderAgreementSubmit.js.map +0 -1
  636. package/mobile/bundle/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +0 -8
  637. package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +0 -8
  638. package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.js +0 -14
  639. package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.js.map +0 -1
  640. package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +0 -8
  641. package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.js +0 -11
  642. package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.js.map +0 -1
  643. package/mobile/src/components/ApplicationLeadForm/renderAgreementSubmit.tsx +0 -32
  644. 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
  }
@@ -32,7 +32,6 @@ export const CreditCardFormStep = JSX<CreditCardFormStepProps>(
32
32
  getRetailFormValidator({
33
33
  formState,
34
34
  inputs,
35
- step,
36
35
  productType: PRODUCT_TYPE,
37
36
  }),
38
37
  [inputs],
@@ -51,7 +50,7 @@ export const CreditCardFormStep = JSX<CreditCardFormStepProps>(
51
50
 
52
51
  return (
53
52
  <form onSubmit={handleSubmit} className="space-y-m">
54
- {renderStep({ sections, field, step })}
53
+ {renderStep({ sections, field })}
55
54
  <StepsNavigationButtons isSending={isSending} step={step} onPrevStep={onPrevStep} />
56
55
  </form>
57
56
  );
@@ -56,6 +56,7 @@ const EMPLOYMENT_CONTENT: CreditCardSectionsProps[] = [
56
56
  label:
57
57
  'Клиент на момент оформления заявки на кредит должен быть: официально трудоустроен более 6 месяцев, ' +
58
58
  'если Клиент получает з/п на счет РСХБ, то трудоустроен более 3 месяцев, не должен находиться в декретном отпуске',
59
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
59
60
  },
60
61
  ],
61
62
  },
@@ -65,40 +66,94 @@ const EMPLOYMENT_CONTENT: CreditCardSectionsProps[] = [
65
66
  {
66
67
  columns: 2,
67
68
  inputs: [
68
- { name: 'organizationName', required: true, dadata: true, filledByEsia: true },
69
- { name: 'inn', required: true, dadata: true, filledByEsia: true },
69
+ {
70
+ name: 'organizationName',
71
+ required: true,
72
+ dadata: true,
73
+ filledByEsia: true,
74
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
75
+ },
76
+ {
77
+ name: 'inn',
78
+ required: true,
79
+ dadata: true,
80
+ filledByEsia: true,
81
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
82
+ },
70
83
  ],
71
84
  },
72
85
  {
73
- inputs: [{ name: 'amountWorkers', required: true }],
86
+ inputs: [
87
+ {
88
+ name: 'amountWorkers',
89
+ required: true,
90
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
91
+ },
92
+ ],
74
93
  },
75
94
  {
76
95
  columns: 2,
77
96
  inputs: [
78
- { name: 'employerActivities', required: true },
97
+ {
98
+ name: 'employerActivities',
99
+ required: true,
100
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
101
+ },
79
102
  {
80
103
  name: 'organizationPhone',
81
104
  label: 'Телефон работодателя',
82
105
  required: true,
106
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
83
107
  },
84
108
  ],
85
109
  },
86
110
  {
87
111
  columns: 2,
88
112
  inputs: [
89
- { name: 'generalSeniority', required: true, filledByEsia: true },
90
- { name: 'lastJobExperience', required: true, filledByEsia: true },
91
- { name: 'experience5Years', required: true, filledByEsia: true },
92
- { name: 'jobsNumber', required: true, filledByEsia: true },
113
+ {
114
+ name: 'generalSeniority',
115
+ required: true,
116
+ filledByEsia: true,
117
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
118
+ },
119
+ {
120
+ name: 'lastJobExperience',
121
+ required: true,
122
+ filledByEsia: true,
123
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
124
+ },
125
+ {
126
+ name: 'experience5Years',
127
+ required: true,
128
+ filledByEsia: true,
129
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
130
+ },
131
+ {
132
+ name: 'jobsNumber',
133
+ required: true,
134
+ filledByEsia: true,
135
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
136
+ },
93
137
  ],
94
138
  },
95
139
  {
96
- inputs: [{ name: 'beginDate', required: true, filledByEsia: true }],
140
+ inputs: [
141
+ {
142
+ name: 'beginDate',
143
+ required: true,
144
+ filledByEsia: true,
145
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
146
+ },
147
+ ],
97
148
  },
98
149
  {
99
150
  columns: 2,
100
151
  inputs: [
101
- { name: 'positionOrganization', required: true },
152
+ {
153
+ name: 'positionOrganization',
154
+ required: true,
155
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
156
+ },
102
157
  {
103
158
  name: 'partInBusiness',
104
159
  required: true,
@@ -109,9 +164,17 @@ const EMPLOYMENT_CONTENT: CreditCardSectionsProps[] = [
109
164
  {
110
165
  title: 'Адрес работодателя',
111
166
  inputs: [],
167
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
112
168
  },
113
169
  {
114
- inputs: [{ name: 'organizationAddress', required: true, dadata: true }],
170
+ inputs: [
171
+ {
172
+ name: 'organizationAddress',
173
+ required: true,
174
+ dadata: true,
175
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
176
+ },
177
+ ],
115
178
  },
116
179
  ];
117
180
  const FAMILY_STATUS_AND_INCOME_CONTENT: CreditCardSectionsProps[] = [
@@ -148,12 +211,20 @@ const FAMILY_STATUS_AND_INCOME_CONTENT: CreditCardSectionsProps[] = [
148
211
  {
149
212
  name: 'infoCard',
150
213
  label: 'Сумма основного и дополнительных доходов после вычета налога',
214
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
151
215
  },
152
216
  ],
153
217
  },
154
218
  {
155
219
  columns: 1,
156
- inputs: [{ name: 'wages', required: true, filledByEsia: true }],
220
+ inputs: [
221
+ {
222
+ name: 'wages',
223
+ required: true,
224
+ filledByEsia: true,
225
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
226
+ },
227
+ ],
157
228
  },
158
229
  {
159
230
  columns: 1,
@@ -161,7 +232,7 @@ const FAMILY_STATUS_AND_INCOME_CONTENT: CreditCardSectionsProps[] = [
161
232
  {
162
233
  name: 'retirementIncome',
163
234
  required: true,
164
- condition: { name: 'employment', values: ['RETIREE'] },
235
+ condition: { name: 'employment', values: ['RETIREE', 'WORK_RETIREE'] },
165
236
  },
166
237
  ],
167
238
  },
@@ -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]);
@@ -38,7 +38,6 @@ export const CreditFormStep = JSX<CreditFormStepProps>(
38
38
  getRetailFormValidator({
39
39
  formState,
40
40
  inputs,
41
- step,
42
41
  productType: PRODUCT_TYPE,
43
42
  }),
44
43
  [inputs],
@@ -57,7 +56,7 @@ export const CreditFormStep = JSX<CreditFormStepProps>(
57
56
 
58
57
  return (
59
58
  <form onSubmit={handleSubmit} className="space-y-m">
60
- {renderStep({ sections, field, step, params: { calcData } })}
59
+ {renderStep({ sections, field, params: { calcData } })}
61
60
  <StepsNavigationButtons step={step} isSending={isSending} onPrevStep={onPrevStep} />
62
61
  </form>
63
62
  );
@@ -40,6 +40,7 @@ const EMPLOYMENT_CONTENT: SectionsRetailProps[] = [
40
40
  label:
41
41
  'Клиент на момент оформления заявки на кредит должен быть: официально трудоустроен более 6 месяцев, ' +
42
42
  'если Клиент получает з/п на счет РСХБ, то трудоустроен более 3 месяцев, не должен находиться в декретном отпуске',
43
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
43
44
  },
44
45
  ],
45
46
  },
@@ -49,34 +50,69 @@ const EMPLOYMENT_CONTENT: SectionsRetailProps[] = [
49
50
  {
50
51
  columns: 2,
51
52
  inputs: [
52
- { name: 'organizationName', required: true, dadata: true, filledByEsia: true },
53
- { name: 'inn', required: true, dadata: true, filledByEsia: true },
53
+ {
54
+ name: 'organizationName',
55
+ required: true,
56
+ dadata: true,
57
+ filledByEsia: true,
58
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
59
+ },
60
+ {
61
+ name: 'inn',
62
+ required: true,
63
+ dadata: true,
64
+ filledByEsia: true,
65
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
66
+ },
54
67
  ],
55
68
  },
56
69
  {
57
70
  columns: 2,
58
71
  inputs: [
59
- { name: 'amountWorkers', required: true },
72
+ {
73
+ name: 'amountWorkers',
74
+ required: true,
75
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
76
+ },
60
77
  {
61
78
  name: 'organizationPhone',
62
79
  label: 'Телефон работодателя',
63
80
  required: true,
81
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
64
82
  },
65
83
  ],
66
84
  },
67
85
  {
68
86
  columns: 2,
69
87
  inputs: [
70
- { name: 'jobsNumber', required: true, filledByEsia: true },
71
- { name: 'beginDate', required: true, filledByEsia: true },
88
+ {
89
+ name: 'jobsNumber',
90
+ required: true,
91
+ filledByEsia: true,
92
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
93
+ },
94
+ {
95
+ name: 'beginDate',
96
+ required: true,
97
+ filledByEsia: true,
98
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
99
+ },
72
100
  ],
73
101
  },
74
102
  {
75
103
  title: 'Адрес работодателя',
76
104
  inputs: [],
105
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
77
106
  },
78
107
  {
79
- inputs: [{ name: 'organizationAddress', required: true, dadata: true }],
108
+ inputs: [
109
+ {
110
+ name: 'organizationAddress',
111
+ required: true,
112
+ dadata: true,
113
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
114
+ },
115
+ ],
80
116
  },
81
117
  ];
82
118
  const FAMILY_STATUS_AND_INCOME_CONTENT: SectionsRetailProps[] = [
@@ -112,12 +148,20 @@ const FAMILY_STATUS_AND_INCOME_CONTENT: SectionsRetailProps[] = [
112
148
  {
113
149
  name: 'infoCard',
114
150
  label: 'Сумма основного и дополнительных доходов после вычета налога',
151
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
115
152
  },
116
153
  ],
117
154
  },
118
155
  {
119
156
  columns: 1,
120
- inputs: [{ name: 'wages', required: true, filledByEsia: true }],
157
+ inputs: [
158
+ {
159
+ name: 'wages',
160
+ required: true,
161
+ filledByEsia: true,
162
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
163
+ },
164
+ ],
121
165
  },
122
166
  {
123
167
  columns: 1,
@@ -125,7 +169,7 @@ const FAMILY_STATUS_AND_INCOME_CONTENT: SectionsRetailProps[] = [
125
169
  {
126
170
  name: 'retirementIncome',
127
171
  required: true,
128
- condition: { name: 'employment', values: ['RETIREE'] },
172
+ condition: { name: 'employment', values: ['RETIREE', 'WORK_RETIREE'] },
129
173
  },
130
174
  ],
131
175
  },
@@ -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,
@@ -32,7 +32,6 @@ export const DebitFormStep = JSX<DebitFormStepProps>(
32
32
  getRetailFormValidator({
33
33
  formState,
34
34
  inputs,
35
- step,
36
35
  productType: PRODUCT_TYPE,
37
36
  }),
38
37
  [inputs],
@@ -51,7 +50,7 @@ export const DebitFormStep = JSX<DebitFormStepProps>(
51
50
 
52
51
  return (
53
52
  <form onSubmit={handleSubmit} className="space-y-m">
54
- {renderStep({ sections, field, step })}
53
+ {renderStep({ sections, field })}
55
54
  <StepsNavigationButtons step={step} isSending={isSending} onPrevStep={onPrevStep} />
56
55
  </form>
57
56
  );