@redneckz/wildless-cms-uni-blocks 0.14.605 → 0.14.607

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 (663) hide show
  1. package/bundle/api/OutServiceAPI/OutServiceAPI.d.ts +8 -0
  2. package/bundle/api/RetailAPI/StatusType.d.ts +1 -0
  3. package/bundle/api/RetailAPI/checkCaptcha.d.ts +4 -0
  4. package/bundle/api/RetailAPI/checkCode.d.ts +12 -0
  5. package/bundle/api/RetailAPI/createCaptcha.d.ts +1 -0
  6. package/bundle/api/RetailAPI/createDraftTask.d.ts +9 -0
  7. package/bundle/api/RetailAPI/createUserProfile.d.ts +9 -0
  8. package/bundle/api/RetailAPI/doRequest.d.ts +1 -0
  9. package/bundle/api/RetailAPI/feedbackById.d.ts +1 -0
  10. package/bundle/api/RetailAPI/sendCode.d.ts +10 -0
  11. package/bundle/api/RetailAPI/updateUserProfile.d.ts +20 -0
  12. package/bundle/api/RetailAPI/updateUserTask.d.ts +36 -0
  13. package/{dist/api/RetailApi → bundle/api/RetailAPI}/utils/getUpdateUserProfile.d.ts +1 -1
  14. package/bundle/api/RetailAPI/utils/getUpdateUserTask.d.ts +9 -0
  15. package/bundle/api/apiBaseUrl.d.ts +1 -0
  16. package/bundle/blocks.schema.json +1 -1
  17. package/bundle/bundle.umd.js +128 -116
  18. package/bundle/bundle.umd.min.js +1 -1
  19. package/bundle/components/ApplicationForm/getRegionUrl.d.ts +1 -1
  20. package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +4 -3
  21. package/bundle/ui-kit/CaptchaDialog/handleCheckCaptcha.d.ts +8 -0
  22. package/bundle/ui-kit/CaptchaDialog/handleCreateCaptcha.d.ts +1 -0
  23. package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  24. package/bundle/ui-kit/FormField/constants.d.ts +0 -1
  25. package/dist/api/FileStorage.js +3 -3
  26. package/dist/api/FileStorage.js.map +1 -1
  27. package/dist/api/LeadServiceAPI.js +2 -1
  28. package/dist/api/LeadServiceAPI.js.map +1 -1
  29. package/dist/api/OutServiceAPI/OutServiceAPI.d.ts +8 -0
  30. package/dist/api/OutServiceAPI/OutServiceAPI.js +12 -0
  31. package/dist/api/OutServiceAPI/OutServiceAPI.js.map +1 -0
  32. package/dist/api/RetailAPI/StatusType.d.ts +1 -0
  33. package/dist/api/{RetailApi/RetailApiTypes.js → RetailAPI/StatusType.js} +1 -1
  34. package/dist/api/RetailAPI/StatusType.js.map +1 -0
  35. package/dist/api/RetailAPI/checkCaptcha.d.ts +4 -0
  36. package/dist/api/RetailAPI/checkCaptcha.js +6 -0
  37. package/dist/api/RetailAPI/checkCaptcha.js.map +1 -0
  38. package/dist/api/RetailAPI/checkCode.d.ts +12 -0
  39. package/dist/api/RetailAPI/checkCode.js +10 -0
  40. package/dist/api/RetailAPI/checkCode.js.map +1 -0
  41. package/dist/api/RetailAPI/createCaptcha.d.ts +1 -0
  42. package/dist/api/RetailAPI/createCaptcha.js +6 -0
  43. package/dist/api/RetailAPI/createCaptcha.js.map +1 -0
  44. package/dist/api/RetailAPI/createDraftTask.d.ts +9 -0
  45. package/dist/api/RetailAPI/createDraftTask.js +6 -0
  46. package/dist/api/RetailAPI/createDraftTask.js.map +1 -0
  47. package/dist/api/RetailAPI/createUserProfile.d.ts +9 -0
  48. package/dist/api/RetailAPI/createUserProfile.js +6 -0
  49. package/dist/api/RetailAPI/createUserProfile.js.map +1 -0
  50. package/dist/api/RetailAPI/doRequest.d.ts +1 -0
  51. package/dist/api/RetailAPI/doRequest.js +23 -0
  52. package/dist/api/RetailAPI/doRequest.js.map +1 -0
  53. package/dist/api/RetailAPI/feedbackById.d.ts +1 -0
  54. package/dist/api/RetailAPI/feedbackById.js +9 -0
  55. package/dist/api/RetailAPI/feedbackById.js.map +1 -0
  56. package/dist/api/RetailAPI/sendCode.d.ts +10 -0
  57. package/dist/api/RetailAPI/sendCode.js +6 -0
  58. package/dist/api/RetailAPI/sendCode.js.map +1 -0
  59. package/dist/api/RetailAPI/updateUserProfile.d.ts +20 -0
  60. package/dist/api/RetailAPI/updateUserProfile.js +6 -0
  61. package/dist/api/RetailAPI/updateUserProfile.js.map +1 -0
  62. package/dist/api/RetailAPI/updateUserTask.d.ts +36 -0
  63. package/dist/api/RetailAPI/updateUserTask.js +6 -0
  64. package/dist/api/RetailAPI/updateUserTask.js.map +1 -0
  65. package/{lib/api/RetailApi → dist/api/RetailAPI}/utils/getUpdateUserProfile.d.ts +1 -1
  66. package/dist/api/{RetailApi → RetailAPI}/utils/getUpdateUserProfile.js.map +1 -1
  67. package/dist/api/RetailAPI/utils/getUpdateUserTask.d.ts +9 -0
  68. package/dist/api/{RetailApi → RetailAPI}/utils/getUpdateUserTask.js +7 -8
  69. package/dist/api/RetailAPI/utils/getUpdateUserTask.js.map +1 -0
  70. package/dist/api/apiBaseUrl.d.ts +1 -0
  71. package/dist/api/apiBaseUrl.js +4 -0
  72. package/dist/api/apiBaseUrl.js.map +1 -0
  73. package/dist/api/dadataHints/dadataHints.js +2 -1
  74. package/dist/api/dadataHints/dadataHints.js.map +1 -1
  75. package/dist/components/ApplicationForm/getRegionUrl.d.ts +1 -1
  76. package/dist/components/ApplicationForm/getRegionUrl.js +3 -2
  77. package/dist/components/ApplicationForm/getRegionUrl.js.map +1 -1
  78. package/dist/components/ApplicationLeadForm/consents.js +4 -12
  79. package/dist/components/ApplicationLeadForm/consents.js.map +1 -1
  80. package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +4 -3
  81. package/dist/components/ApplicationLeadForm/getInitialFormState.js +1 -3
  82. package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  83. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +25 -7
  84. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  85. package/dist/components/CalculatorBusinessDeposit/useBusinessDepositRates.js +2 -1
  86. package/dist/components/CalculatorBusinessDeposit/useBusinessDepositRates.js.map +1 -1
  87. package/dist/components/Depository/DepositoryItem.js +2 -1
  88. package/dist/components/Depository/DepositoryItem.js.map +1 -1
  89. package/dist/components/Depository/useDepository.js +2 -1
  90. package/dist/components/Depository/useDepository.js.map +1 -1
  91. package/dist/components/ExchangeRateTile/useFetchExchangeRateData.js +2 -1
  92. package/dist/components/ExchangeRateTile/useFetchExchangeRateData.js.map +1 -1
  93. package/dist/components/OfficesAtmsMap/useAtms.js +2 -1
  94. package/dist/components/OfficesAtmsMap/useAtms.js.map +1 -1
  95. package/dist/components/OfficesAtmsMap/useOffices.js +3 -2
  96. package/dist/components/OfficesAtmsMap/useOffices.js.map +1 -1
  97. package/dist/components/SafeDepositRental/useGetRegions.js +2 -1
  98. package/dist/components/SafeDepositRental/useGetRegions.js.map +1 -1
  99. package/dist/components/SafeDepositRental/useSafeBoxes.js +2 -1
  100. package/dist/components/SafeDepositRental/useSafeBoxes.js.map +1 -1
  101. package/dist/hooks/useBranches.js +2 -1
  102. package/dist/hooks/useBranches.js.map +1 -1
  103. package/dist/hooks/useBranchesByRegions.js +4 -3
  104. package/dist/hooks/useBranchesByRegions.js.map +1 -1
  105. package/dist/hooks/useLeadFormData.js +1 -1
  106. package/dist/hooks/useLeadFormData.js.map +1 -1
  107. package/dist/hooks/useLocation.js +2 -1
  108. package/dist/hooks/useLocation.js.map +1 -1
  109. package/dist/hooks/useRegions.js +2 -1
  110. package/dist/hooks/useRegions.js.map +1 -1
  111. package/dist/ui-kit/CaptchaDialog/CaptchaDialog.js +4 -4
  112. package/dist/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
  113. package/dist/ui-kit/CaptchaDialog/handleCheckCaptcha.d.ts +8 -0
  114. package/dist/ui-kit/CaptchaDialog/handleCheckCaptcha.js +16 -0
  115. package/dist/ui-kit/CaptchaDialog/handleCheckCaptcha.js.map +1 -0
  116. package/dist/ui-kit/CaptchaDialog/handleCreateCaptcha.d.ts +1 -0
  117. package/dist/ui-kit/CaptchaDialog/handleCreateCaptcha.js +9 -0
  118. package/dist/ui-kit/CaptchaDialog/handleCreateCaptcha.js.map +1 -0
  119. package/dist/ui-kit/Checkbox/getDocument.js +3 -3
  120. package/dist/ui-kit/Checkbox/getDocument.js.map +1 -1
  121. package/dist/ui-kit/FormField/Fields/LocalitiesField.js +4 -3
  122. package/dist/ui-kit/FormField/Fields/LocalitiesField.js.map +1 -1
  123. package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  124. package/dist/ui-kit/FormField/constants.d.ts +0 -1
  125. package/dist/ui-kit/FormField/constants.js +1 -2
  126. package/dist/ui-kit/FormField/constants.js.map +1 -1
  127. package/dist/ui-kit/FormField/getField.js +1 -3
  128. package/dist/ui-kit/FormField/getField.js.map +1 -1
  129. package/dist/ui-kit/FormField/getObjectValidator.js +1 -3
  130. package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  131. package/dist/ui-kit/VerifyPhoneDialog/handleSendCode.js +2 -2
  132. package/dist/ui-kit/VerifyPhoneDialog/handleSendCode.js.map +1 -1
  133. package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +2 -2
  134. package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  135. package/lib/api/FileStorage.js +1 -1
  136. package/lib/api/FileStorage.js.map +1 -1
  137. package/lib/api/LeadServiceAPI.js +2 -1
  138. package/lib/api/LeadServiceAPI.js.map +1 -1
  139. package/lib/api/OutServiceAPI/OutServiceAPI.d.ts +8 -0
  140. package/lib/api/OutServiceAPI/OutServiceAPI.js +9 -0
  141. package/lib/api/OutServiceAPI/OutServiceAPI.js.map +1 -0
  142. package/lib/api/RetailAPI/StatusType.d.ts +1 -0
  143. package/lib/api/RetailAPI/StatusType.js +2 -0
  144. package/lib/api/RetailAPI/StatusType.js.map +1 -0
  145. package/lib/api/RetailAPI/checkCaptcha.d.ts +4 -0
  146. package/lib/api/RetailAPI/checkCaptcha.js +3 -0
  147. package/lib/api/RetailAPI/checkCaptcha.js.map +1 -0
  148. package/lib/api/RetailAPI/checkCode.d.ts +12 -0
  149. package/lib/api/RetailAPI/checkCode.js +7 -0
  150. package/lib/api/RetailAPI/checkCode.js.map +1 -0
  151. package/lib/api/RetailAPI/createCaptcha.d.ts +1 -0
  152. package/lib/api/RetailAPI/createCaptcha.js +3 -0
  153. package/lib/api/RetailAPI/createCaptcha.js.map +1 -0
  154. package/lib/api/RetailAPI/createDraftTask.d.ts +9 -0
  155. package/lib/api/RetailAPI/createDraftTask.js +3 -0
  156. package/lib/api/RetailAPI/createDraftTask.js.map +1 -0
  157. package/lib/api/RetailAPI/createUserProfile.d.ts +9 -0
  158. package/lib/api/RetailAPI/createUserProfile.js +3 -0
  159. package/lib/api/RetailAPI/createUserProfile.js.map +1 -0
  160. package/lib/api/RetailAPI/doRequest.d.ts +1 -0
  161. package/lib/api/RetailAPI/doRequest.js +20 -0
  162. package/lib/api/RetailAPI/doRequest.js.map +1 -0
  163. package/lib/api/RetailAPI/feedbackById.d.ts +1 -0
  164. package/lib/api/RetailAPI/feedbackById.js +6 -0
  165. package/lib/api/RetailAPI/feedbackById.js.map +1 -0
  166. package/lib/api/RetailAPI/sendCode.d.ts +10 -0
  167. package/lib/api/RetailAPI/sendCode.js +3 -0
  168. package/lib/api/RetailAPI/sendCode.js.map +1 -0
  169. package/lib/api/RetailAPI/updateUserProfile.d.ts +20 -0
  170. package/lib/api/RetailAPI/updateUserProfile.js +3 -0
  171. package/lib/api/RetailAPI/updateUserProfile.js.map +1 -0
  172. package/lib/api/RetailAPI/updateUserTask.d.ts +36 -0
  173. package/lib/api/RetailAPI/updateUserTask.js +3 -0
  174. package/lib/api/RetailAPI/updateUserTask.js.map +1 -0
  175. package/{bundle/api/RetailApi → lib/api/RetailAPI}/utils/getUpdateUserProfile.d.ts +1 -1
  176. package/lib/api/{RetailApi → RetailAPI}/utils/getUpdateUserProfile.js.map +1 -1
  177. package/lib/api/RetailAPI/utils/getUpdateUserTask.d.ts +9 -0
  178. package/lib/api/{RetailApi → RetailAPI}/utils/getUpdateUserTask.js +7 -8
  179. package/lib/api/RetailAPI/utils/getUpdateUserTask.js.map +1 -0
  180. package/lib/api/apiBaseUrl.d.ts +1 -0
  181. package/lib/api/apiBaseUrl.js +2 -0
  182. package/lib/api/apiBaseUrl.js.map +1 -0
  183. package/lib/api/dadataHints/dadataHints.js +2 -1
  184. package/lib/api/dadataHints/dadataHints.js.map +1 -1
  185. package/lib/common.css +1 -1
  186. package/lib/components/ApplicationForm/getRegionUrl.d.ts +1 -1
  187. package/lib/components/ApplicationForm/getRegionUrl.js +2 -1
  188. package/lib/components/ApplicationForm/getRegionUrl.js.map +1 -1
  189. package/lib/components/ApplicationLeadForm/consents.js +4 -12
  190. package/lib/components/ApplicationLeadForm/consents.js.map +1 -1
  191. package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +4 -3
  192. package/lib/components/ApplicationLeadForm/getInitialFormState.js +1 -3
  193. package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  194. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +25 -7
  195. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  196. package/lib/components/CalculatorBusinessDeposit/useBusinessDepositRates.js +2 -1
  197. package/lib/components/CalculatorBusinessDeposit/useBusinessDepositRates.js.map +1 -1
  198. package/lib/components/Depository/DepositoryItem.js +2 -1
  199. package/lib/components/Depository/DepositoryItem.js.map +1 -1
  200. package/lib/components/Depository/useDepository.js +2 -1
  201. package/lib/components/Depository/useDepository.js.map +1 -1
  202. package/lib/components/ExchangeRateTile/useFetchExchangeRateData.js +2 -1
  203. package/lib/components/ExchangeRateTile/useFetchExchangeRateData.js.map +1 -1
  204. package/lib/components/OfficesAtmsMap/useAtms.js +2 -1
  205. package/lib/components/OfficesAtmsMap/useAtms.js.map +1 -1
  206. package/lib/components/OfficesAtmsMap/useOffices.js +3 -2
  207. package/lib/components/OfficesAtmsMap/useOffices.js.map +1 -1
  208. package/lib/components/SafeDepositRental/useGetRegions.js +2 -1
  209. package/lib/components/SafeDepositRental/useGetRegions.js.map +1 -1
  210. package/lib/components/SafeDepositRental/useSafeBoxes.js +2 -1
  211. package/lib/components/SafeDepositRental/useSafeBoxes.js.map +1 -1
  212. package/lib/hooks/useBranches.js +2 -1
  213. package/lib/hooks/useBranches.js.map +1 -1
  214. package/lib/hooks/useBranchesByRegions.js +4 -3
  215. package/lib/hooks/useBranchesByRegions.js.map +1 -1
  216. package/lib/hooks/useLeadFormData.js +1 -1
  217. package/lib/hooks/useLeadFormData.js.map +1 -1
  218. package/lib/hooks/useLocation.js +2 -1
  219. package/lib/hooks/useLocation.js.map +1 -1
  220. package/lib/hooks/useRegions.js +2 -1
  221. package/lib/hooks/useRegions.js.map +1 -1
  222. package/lib/ui-kit/CaptchaDialog/CaptchaDialog.js +4 -4
  223. package/lib/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
  224. package/lib/ui-kit/CaptchaDialog/handleCheckCaptcha.d.ts +8 -0
  225. package/lib/ui-kit/CaptchaDialog/handleCheckCaptcha.js +13 -0
  226. package/lib/ui-kit/CaptchaDialog/handleCheckCaptcha.js.map +1 -0
  227. package/lib/ui-kit/CaptchaDialog/handleCreateCaptcha.d.ts +1 -0
  228. package/lib/ui-kit/CaptchaDialog/handleCreateCaptcha.js +6 -0
  229. package/lib/ui-kit/CaptchaDialog/handleCreateCaptcha.js.map +1 -0
  230. package/lib/ui-kit/Checkbox/getDocument.js +3 -3
  231. package/lib/ui-kit/Checkbox/getDocument.js.map +1 -1
  232. package/lib/ui-kit/FormField/Fields/LocalitiesField.js +4 -3
  233. package/lib/ui-kit/FormField/Fields/LocalitiesField.js.map +1 -1
  234. package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  235. package/lib/ui-kit/FormField/constants.d.ts +0 -1
  236. package/lib/ui-kit/FormField/constants.js +0 -1
  237. package/lib/ui-kit/FormField/constants.js.map +1 -1
  238. package/lib/ui-kit/FormField/getField.js +1 -3
  239. package/lib/ui-kit/FormField/getField.js.map +1 -1
  240. package/lib/ui-kit/FormField/getObjectValidator.js +1 -3
  241. package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  242. package/lib/ui-kit/VerifyPhoneDialog/handleSendCode.js +2 -2
  243. package/lib/ui-kit/VerifyPhoneDialog/handleSendCode.js.map +1 -1
  244. package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +2 -2
  245. package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  246. package/mobile/bundle/api/OutServiceAPI/OutServiceAPI.d.ts +8 -0
  247. package/mobile/bundle/api/RetailAPI/StatusType.d.ts +1 -0
  248. package/mobile/bundle/api/RetailAPI/checkCaptcha.d.ts +4 -0
  249. package/mobile/bundle/api/RetailAPI/checkCode.d.ts +12 -0
  250. package/mobile/bundle/api/RetailAPI/createCaptcha.d.ts +1 -0
  251. package/mobile/bundle/api/RetailAPI/createDraftTask.d.ts +9 -0
  252. package/mobile/bundle/api/RetailAPI/createUserProfile.d.ts +9 -0
  253. package/mobile/bundle/api/RetailAPI/doRequest.d.ts +1 -0
  254. package/mobile/bundle/api/RetailAPI/feedbackById.d.ts +1 -0
  255. package/mobile/bundle/api/RetailAPI/sendCode.d.ts +10 -0
  256. package/mobile/bundle/api/RetailAPI/updateUserProfile.d.ts +20 -0
  257. package/mobile/bundle/api/RetailAPI/updateUserTask.d.ts +36 -0
  258. package/mobile/bundle/api/{RetailApi → RetailAPI}/utils/getUpdateUserProfile.d.ts +1 -1
  259. package/mobile/bundle/api/RetailAPI/utils/getUpdateUserTask.d.ts +9 -0
  260. package/mobile/bundle/api/apiBaseUrl.d.ts +1 -0
  261. package/mobile/bundle/bundle.umd.js +128 -116
  262. package/mobile/bundle/bundle.umd.min.js +1 -1
  263. package/mobile/bundle/components/ApplicationForm/getRegionUrl.d.ts +1 -1
  264. package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +4 -3
  265. package/mobile/bundle/ui-kit/CaptchaDialog/handleCheckCaptcha.d.ts +8 -0
  266. package/mobile/bundle/ui-kit/CaptchaDialog/handleCreateCaptcha.d.ts +1 -0
  267. package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  268. package/mobile/bundle/ui-kit/FormField/constants.d.ts +0 -1
  269. package/mobile/dist/api/FileStorage.js +3 -3
  270. package/mobile/dist/api/FileStorage.js.map +1 -1
  271. package/mobile/dist/api/LeadServiceAPI.js +2 -1
  272. package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
  273. package/mobile/dist/api/OutServiceAPI/OutServiceAPI.d.ts +8 -0
  274. package/mobile/dist/api/OutServiceAPI/OutServiceAPI.js +12 -0
  275. package/mobile/dist/api/OutServiceAPI/OutServiceAPI.js.map +1 -0
  276. package/mobile/dist/api/RetailAPI/StatusType.d.ts +1 -0
  277. package/mobile/dist/api/{RetailApi/RetailApiTypes.js → RetailAPI/StatusType.js} +1 -1
  278. package/mobile/dist/api/RetailAPI/StatusType.js.map +1 -0
  279. package/mobile/dist/api/RetailAPI/checkCaptcha.d.ts +4 -0
  280. package/mobile/dist/api/RetailAPI/checkCaptcha.js +6 -0
  281. package/mobile/dist/api/RetailAPI/checkCaptcha.js.map +1 -0
  282. package/mobile/dist/api/RetailAPI/checkCode.d.ts +12 -0
  283. package/mobile/dist/api/RetailAPI/checkCode.js +10 -0
  284. package/mobile/dist/api/RetailAPI/checkCode.js.map +1 -0
  285. package/mobile/dist/api/RetailAPI/createCaptcha.d.ts +1 -0
  286. package/mobile/dist/api/RetailAPI/createCaptcha.js +6 -0
  287. package/mobile/dist/api/RetailAPI/createCaptcha.js.map +1 -0
  288. package/mobile/dist/api/RetailAPI/createDraftTask.d.ts +9 -0
  289. package/mobile/dist/api/RetailAPI/createDraftTask.js +6 -0
  290. package/mobile/dist/api/RetailAPI/createDraftTask.js.map +1 -0
  291. package/mobile/dist/api/RetailAPI/createUserProfile.d.ts +9 -0
  292. package/mobile/dist/api/RetailAPI/createUserProfile.js +6 -0
  293. package/mobile/dist/api/RetailAPI/createUserProfile.js.map +1 -0
  294. package/mobile/dist/api/RetailAPI/doRequest.d.ts +1 -0
  295. package/mobile/dist/api/RetailAPI/doRequest.js +23 -0
  296. package/mobile/dist/api/RetailAPI/doRequest.js.map +1 -0
  297. package/mobile/dist/api/RetailAPI/feedbackById.d.ts +1 -0
  298. package/mobile/dist/api/RetailAPI/feedbackById.js +9 -0
  299. package/mobile/dist/api/RetailAPI/feedbackById.js.map +1 -0
  300. package/mobile/dist/api/RetailAPI/sendCode.d.ts +10 -0
  301. package/mobile/dist/api/RetailAPI/sendCode.js +6 -0
  302. package/mobile/dist/api/RetailAPI/sendCode.js.map +1 -0
  303. package/mobile/dist/api/RetailAPI/updateUserProfile.d.ts +20 -0
  304. package/mobile/dist/api/RetailAPI/updateUserProfile.js +6 -0
  305. package/mobile/dist/api/RetailAPI/updateUserProfile.js.map +1 -0
  306. package/mobile/dist/api/RetailAPI/updateUserTask.d.ts +36 -0
  307. package/mobile/dist/api/RetailAPI/updateUserTask.js +6 -0
  308. package/mobile/dist/api/RetailAPI/updateUserTask.js.map +1 -0
  309. package/mobile/dist/api/RetailAPI/utils/getUpdateUserProfile.d.ts +3 -0
  310. package/mobile/dist/api/{RetailApi → RetailAPI}/utils/getUpdateUserProfile.js.map +1 -1
  311. package/mobile/dist/api/RetailAPI/utils/getUpdateUserTask.d.ts +9 -0
  312. package/mobile/dist/api/{RetailApi → RetailAPI}/utils/getUpdateUserTask.js +7 -8
  313. package/mobile/dist/api/RetailAPI/utils/getUpdateUserTask.js.map +1 -0
  314. package/mobile/dist/api/apiBaseUrl.d.ts +1 -0
  315. package/mobile/dist/api/apiBaseUrl.js +4 -0
  316. package/mobile/dist/api/apiBaseUrl.js.map +1 -0
  317. package/mobile/dist/api/dadataHints/dadataHints.js +2 -1
  318. package/mobile/dist/api/dadataHints/dadataHints.js.map +1 -1
  319. package/mobile/dist/components/ApplicationForm/getRegionUrl.d.ts +1 -1
  320. package/mobile/dist/components/ApplicationForm/getRegionUrl.js +3 -2
  321. package/mobile/dist/components/ApplicationForm/getRegionUrl.js.map +1 -1
  322. package/mobile/dist/components/ApplicationLeadForm/consents.js +4 -12
  323. package/mobile/dist/components/ApplicationLeadForm/consents.js.map +1 -1
  324. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +4 -3
  325. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +1 -3
  326. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  327. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +25 -7
  328. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  329. package/mobile/dist/components/CalculatorBusinessDeposit/useBusinessDepositRates.js +2 -1
  330. package/mobile/dist/components/CalculatorBusinessDeposit/useBusinessDepositRates.js.map +1 -1
  331. package/mobile/dist/components/Depository/DepositoryItem.js +2 -1
  332. package/mobile/dist/components/Depository/DepositoryItem.js.map +1 -1
  333. package/mobile/dist/components/Depository/useDepository.js +2 -1
  334. package/mobile/dist/components/Depository/useDepository.js.map +1 -1
  335. package/mobile/dist/components/ExchangeRateTile/useFetchExchangeRateData.js +2 -1
  336. package/mobile/dist/components/ExchangeRateTile/useFetchExchangeRateData.js.map +1 -1
  337. package/mobile/dist/components/OfficesAtmsMap/useAtms.js +2 -1
  338. package/mobile/dist/components/OfficesAtmsMap/useAtms.js.map +1 -1
  339. package/mobile/dist/components/OfficesAtmsMap/useOffices.js +3 -2
  340. package/mobile/dist/components/OfficesAtmsMap/useOffices.js.map +1 -1
  341. package/mobile/dist/components/SafeDepositRental/useGetRegions.js +2 -1
  342. package/mobile/dist/components/SafeDepositRental/useGetRegions.js.map +1 -1
  343. package/mobile/dist/components/SafeDepositRental/useSafeBoxes.js +2 -1
  344. package/mobile/dist/components/SafeDepositRental/useSafeBoxes.js.map +1 -1
  345. package/mobile/dist/hooks/useBranches.js +2 -1
  346. package/mobile/dist/hooks/useBranches.js.map +1 -1
  347. package/mobile/dist/hooks/useBranchesByRegions.js +4 -3
  348. package/mobile/dist/hooks/useBranchesByRegions.js.map +1 -1
  349. package/mobile/dist/hooks/useLeadFormData.js +1 -1
  350. package/mobile/dist/hooks/useLeadFormData.js.map +1 -1
  351. package/mobile/dist/hooks/useLocation.js +2 -1
  352. package/mobile/dist/hooks/useLocation.js.map +1 -1
  353. package/mobile/dist/hooks/useRegions.js +2 -1
  354. package/mobile/dist/hooks/useRegions.js.map +1 -1
  355. package/mobile/dist/ui-kit/CaptchaDialog/CaptchaDialog.js +4 -4
  356. package/mobile/dist/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
  357. package/mobile/dist/ui-kit/CaptchaDialog/handleCheckCaptcha.d.ts +8 -0
  358. package/mobile/dist/ui-kit/CaptchaDialog/handleCheckCaptcha.js +16 -0
  359. package/mobile/dist/ui-kit/CaptchaDialog/handleCheckCaptcha.js.map +1 -0
  360. package/mobile/dist/ui-kit/CaptchaDialog/handleCreateCaptcha.d.ts +1 -0
  361. package/mobile/dist/ui-kit/CaptchaDialog/handleCreateCaptcha.js +9 -0
  362. package/mobile/dist/ui-kit/CaptchaDialog/handleCreateCaptcha.js.map +1 -0
  363. package/mobile/dist/ui-kit/Checkbox/getDocument.js +3 -3
  364. package/mobile/dist/ui-kit/Checkbox/getDocument.js.map +1 -1
  365. package/mobile/dist/ui-kit/FormField/Fields/LocalitiesField.js +4 -3
  366. package/mobile/dist/ui-kit/FormField/Fields/LocalitiesField.js.map +1 -1
  367. package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  368. package/mobile/dist/ui-kit/FormField/constants.d.ts +0 -1
  369. package/mobile/dist/ui-kit/FormField/constants.js +1 -2
  370. package/mobile/dist/ui-kit/FormField/constants.js.map +1 -1
  371. package/mobile/dist/ui-kit/FormField/getField.js +1 -3
  372. package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
  373. package/mobile/dist/ui-kit/FormField/getObjectValidator.js +1 -3
  374. package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  375. package/mobile/dist/ui-kit/VerifyPhoneDialog/handleSendCode.js +2 -2
  376. package/mobile/dist/ui-kit/VerifyPhoneDialog/handleSendCode.js.map +1 -1
  377. package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +2 -2
  378. package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  379. package/mobile/lib/api/FileStorage.js +1 -1
  380. package/mobile/lib/api/FileStorage.js.map +1 -1
  381. package/mobile/lib/api/LeadServiceAPI.js +2 -1
  382. package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
  383. package/mobile/lib/api/OutServiceAPI/OutServiceAPI.d.ts +8 -0
  384. package/mobile/lib/api/OutServiceAPI/OutServiceAPI.js +9 -0
  385. package/mobile/lib/api/OutServiceAPI/OutServiceAPI.js.map +1 -0
  386. package/mobile/lib/api/RetailAPI/StatusType.d.ts +1 -0
  387. package/mobile/lib/api/RetailAPI/StatusType.js +2 -0
  388. package/mobile/lib/api/RetailAPI/StatusType.js.map +1 -0
  389. package/mobile/lib/api/RetailAPI/checkCaptcha.d.ts +4 -0
  390. package/mobile/lib/api/RetailAPI/checkCaptcha.js +3 -0
  391. package/mobile/lib/api/RetailAPI/checkCaptcha.js.map +1 -0
  392. package/mobile/lib/api/RetailAPI/checkCode.d.ts +12 -0
  393. package/mobile/lib/api/RetailAPI/checkCode.js +7 -0
  394. package/mobile/lib/api/RetailAPI/checkCode.js.map +1 -0
  395. package/mobile/lib/api/RetailAPI/createCaptcha.d.ts +1 -0
  396. package/mobile/lib/api/RetailAPI/createCaptcha.js +3 -0
  397. package/mobile/lib/api/RetailAPI/createCaptcha.js.map +1 -0
  398. package/mobile/lib/api/RetailAPI/createDraftTask.d.ts +9 -0
  399. package/mobile/lib/api/RetailAPI/createDraftTask.js +3 -0
  400. package/mobile/lib/api/RetailAPI/createDraftTask.js.map +1 -0
  401. package/mobile/lib/api/RetailAPI/createUserProfile.d.ts +9 -0
  402. package/mobile/lib/api/RetailAPI/createUserProfile.js +3 -0
  403. package/mobile/lib/api/RetailAPI/createUserProfile.js.map +1 -0
  404. package/mobile/lib/api/RetailAPI/doRequest.d.ts +1 -0
  405. package/mobile/lib/api/RetailAPI/doRequest.js +20 -0
  406. package/mobile/lib/api/RetailAPI/doRequest.js.map +1 -0
  407. package/mobile/lib/api/RetailAPI/feedbackById.d.ts +1 -0
  408. package/mobile/lib/api/RetailAPI/feedbackById.js +6 -0
  409. package/mobile/lib/api/RetailAPI/feedbackById.js.map +1 -0
  410. package/mobile/lib/api/RetailAPI/sendCode.d.ts +10 -0
  411. package/mobile/lib/api/RetailAPI/sendCode.js +3 -0
  412. package/mobile/lib/api/RetailAPI/sendCode.js.map +1 -0
  413. package/mobile/lib/api/RetailAPI/updateUserProfile.d.ts +20 -0
  414. package/mobile/lib/api/RetailAPI/updateUserProfile.js +3 -0
  415. package/mobile/lib/api/RetailAPI/updateUserProfile.js.map +1 -0
  416. package/mobile/lib/api/RetailAPI/updateUserTask.d.ts +36 -0
  417. package/mobile/lib/api/RetailAPI/updateUserTask.js +3 -0
  418. package/mobile/lib/api/RetailAPI/updateUserTask.js.map +1 -0
  419. package/mobile/lib/api/RetailAPI/utils/getUpdateUserProfile.d.ts +3 -0
  420. package/mobile/lib/api/{RetailApi → RetailAPI}/utils/getUpdateUserProfile.js.map +1 -1
  421. package/mobile/lib/api/RetailAPI/utils/getUpdateUserTask.d.ts +9 -0
  422. package/mobile/lib/api/{RetailApi → RetailAPI}/utils/getUpdateUserTask.js +7 -8
  423. package/mobile/lib/api/RetailAPI/utils/getUpdateUserTask.js.map +1 -0
  424. package/mobile/lib/api/apiBaseUrl.d.ts +1 -0
  425. package/mobile/lib/api/apiBaseUrl.js +2 -0
  426. package/mobile/lib/api/apiBaseUrl.js.map +1 -0
  427. package/mobile/lib/api/dadataHints/dadataHints.js +2 -1
  428. package/mobile/lib/api/dadataHints/dadataHints.js.map +1 -1
  429. package/mobile/lib/common.css +1 -1
  430. package/mobile/lib/components/ApplicationForm/getRegionUrl.d.ts +1 -1
  431. package/mobile/lib/components/ApplicationForm/getRegionUrl.js +2 -1
  432. package/mobile/lib/components/ApplicationForm/getRegionUrl.js.map +1 -1
  433. package/mobile/lib/components/ApplicationLeadForm/consents.js +4 -12
  434. package/mobile/lib/components/ApplicationLeadForm/consents.js.map +1 -1
  435. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +4 -3
  436. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +1 -3
  437. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  438. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +25 -7
  439. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  440. package/mobile/lib/components/CalculatorBusinessDeposit/useBusinessDepositRates.js +2 -1
  441. package/mobile/lib/components/CalculatorBusinessDeposit/useBusinessDepositRates.js.map +1 -1
  442. package/mobile/lib/components/Depository/DepositoryItem.js +2 -1
  443. package/mobile/lib/components/Depository/DepositoryItem.js.map +1 -1
  444. package/mobile/lib/components/Depository/useDepository.js +2 -1
  445. package/mobile/lib/components/Depository/useDepository.js.map +1 -1
  446. package/mobile/lib/components/ExchangeRateTile/useFetchExchangeRateData.js +2 -1
  447. package/mobile/lib/components/ExchangeRateTile/useFetchExchangeRateData.js.map +1 -1
  448. package/mobile/lib/components/OfficesAtmsMap/useAtms.js +2 -1
  449. package/mobile/lib/components/OfficesAtmsMap/useAtms.js.map +1 -1
  450. package/mobile/lib/components/OfficesAtmsMap/useOffices.js +3 -2
  451. package/mobile/lib/components/OfficesAtmsMap/useOffices.js.map +1 -1
  452. package/mobile/lib/components/SafeDepositRental/useGetRegions.js +2 -1
  453. package/mobile/lib/components/SafeDepositRental/useGetRegions.js.map +1 -1
  454. package/mobile/lib/components/SafeDepositRental/useSafeBoxes.js +2 -1
  455. package/mobile/lib/components/SafeDepositRental/useSafeBoxes.js.map +1 -1
  456. package/mobile/lib/hooks/useBranches.js +2 -1
  457. package/mobile/lib/hooks/useBranches.js.map +1 -1
  458. package/mobile/lib/hooks/useBranchesByRegions.js +4 -3
  459. package/mobile/lib/hooks/useBranchesByRegions.js.map +1 -1
  460. package/mobile/lib/hooks/useLeadFormData.js +1 -1
  461. package/mobile/lib/hooks/useLeadFormData.js.map +1 -1
  462. package/mobile/lib/hooks/useLocation.js +2 -1
  463. package/mobile/lib/hooks/useLocation.js.map +1 -1
  464. package/mobile/lib/hooks/useRegions.js +2 -1
  465. package/mobile/lib/hooks/useRegions.js.map +1 -1
  466. package/mobile/lib/ui-kit/CaptchaDialog/CaptchaDialog.js +4 -4
  467. package/mobile/lib/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
  468. package/mobile/lib/ui-kit/CaptchaDialog/handleCheckCaptcha.d.ts +8 -0
  469. package/mobile/lib/ui-kit/CaptchaDialog/handleCheckCaptcha.js +13 -0
  470. package/mobile/lib/ui-kit/CaptchaDialog/handleCheckCaptcha.js.map +1 -0
  471. package/mobile/lib/ui-kit/CaptchaDialog/handleCreateCaptcha.d.ts +1 -0
  472. package/mobile/lib/ui-kit/CaptchaDialog/handleCreateCaptcha.js +6 -0
  473. package/mobile/lib/ui-kit/CaptchaDialog/handleCreateCaptcha.js.map +1 -0
  474. package/mobile/lib/ui-kit/Checkbox/getDocument.js +3 -3
  475. package/mobile/lib/ui-kit/Checkbox/getDocument.js.map +1 -1
  476. package/mobile/lib/ui-kit/FormField/Fields/LocalitiesField.js +4 -3
  477. package/mobile/lib/ui-kit/FormField/Fields/LocalitiesField.js.map +1 -1
  478. package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  479. package/mobile/lib/ui-kit/FormField/constants.d.ts +0 -1
  480. package/mobile/lib/ui-kit/FormField/constants.js +0 -1
  481. package/mobile/lib/ui-kit/FormField/constants.js.map +1 -1
  482. package/mobile/lib/ui-kit/FormField/getField.js +1 -3
  483. package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
  484. package/mobile/lib/ui-kit/FormField/getObjectValidator.js +1 -3
  485. package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  486. package/mobile/lib/ui-kit/VerifyPhoneDialog/handleSendCode.js +2 -2
  487. package/mobile/lib/ui-kit/VerifyPhoneDialog/handleSendCode.js.map +1 -1
  488. package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +2 -2
  489. package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  490. package/mobile/src/api/FileStorage.ts +2 -1
  491. package/mobile/src/api/LeadServiceAPI.ts +2 -1
  492. package/mobile/src/api/OutServiceAPI/OutServiceAPI.ts +20 -0
  493. package/mobile/src/api/RetailAPI/StatusType.ts +1 -0
  494. package/mobile/src/api/RetailAPI/checkCaptcha.ts +8 -0
  495. package/mobile/src/api/RetailAPI/checkCode.ts +22 -0
  496. package/mobile/src/api/RetailAPI/createCaptcha.ts +4 -0
  497. package/mobile/src/api/RetailAPI/createDraftTask.ts +14 -0
  498. package/mobile/src/api/RetailAPI/createUserProfile.ts +13 -0
  499. package/mobile/src/api/RetailAPI/doRequest.ts +28 -0
  500. package/mobile/src/api/RetailAPI/feedbackById.ts +7 -0
  501. package/mobile/src/api/RetailAPI/sendCode.ts +12 -0
  502. package/mobile/src/api/RetailAPI/updateUserProfile.ts +24 -0
  503. package/mobile/src/api/RetailAPI/updateUserTask.ts +41 -0
  504. package/mobile/src/api/{RetailApi → RetailAPI}/utils/getUpdateUserProfile.ts +1 -1
  505. package/mobile/src/api/{RetailApi → RetailAPI}/utils/getUpdateUserTask.ts +20 -14
  506. package/mobile/src/api/apiBaseUrl.ts +1 -0
  507. package/mobile/src/api/dadataHints/dadataHints.ts +2 -1
  508. package/mobile/src/components/ApplicationForm/getRegionUrl.tsx +2 -1
  509. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.example.json +2 -12
  510. package/mobile/src/components/ApplicationLeadForm/consents.ts +4 -12
  511. package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +5 -6
  512. package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +29 -8
  513. package/mobile/src/components/CalculatorBusinessDeposit/useBusinessDepositRates.ts +2 -1
  514. package/mobile/src/components/Depository/DepositoryItem.tsx +2 -1
  515. package/mobile/src/components/Depository/useDepository.ts +3 -1
  516. package/mobile/src/components/ExchangeRateTile/useFetchExchangeRateData.ts +2 -1
  517. package/mobile/src/components/OfficesAtmsMap/useAtms.ts +2 -1
  518. package/mobile/src/components/OfficesAtmsMap/useOffices.ts +3 -2
  519. package/mobile/src/components/SafeDepositRental/useGetRegions.ts +2 -1
  520. package/mobile/src/components/SafeDepositRental/useSafeBoxes.ts +2 -1
  521. package/mobile/src/hooks/useBranches.ts +2 -1
  522. package/mobile/src/hooks/useBranchesByRegions.ts +4 -3
  523. package/mobile/src/hooks/useLeadFormData.ts +1 -1
  524. package/mobile/src/hooks/useLocation.ts +2 -1
  525. package/mobile/src/hooks/useRegions.ts +2 -1
  526. package/mobile/src/ui-kit/CaptchaDialog/CaptchaDialog.tsx +6 -6
  527. package/mobile/src/ui-kit/CaptchaDialog/{checkCaptcha.ts → handleCheckCaptcha.ts} +5 -5
  528. package/mobile/src/ui-kit/CaptchaDialog/handleCreateCaptcha.ts +9 -0
  529. package/mobile/src/ui-kit/Checkbox/getDocument.ts +3 -3
  530. package/mobile/src/ui-kit/FormField/Fields/LocalitiesField.tsx +6 -3
  531. package/mobile/src/ui-kit/FormField/NameFieldDef.ts +1 -3
  532. package/mobile/src/ui-kit/FormField/constants.tsx +0 -2
  533. package/mobile/src/ui-kit/FormField/getField.tsx +1 -3
  534. package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +1 -3
  535. package/mobile/src/ui-kit/VerifyPhoneDialog/handleSendCode.ts +2 -2
  536. package/mobile/src/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +2 -2
  537. package/package.json +1 -1
  538. package/src/api/FileStorage.ts +2 -1
  539. package/src/api/LeadServiceAPI.ts +2 -1
  540. package/src/api/OutServiceAPI/OutServiceAPI.ts +20 -0
  541. package/src/api/RetailAPI/StatusType.ts +1 -0
  542. package/src/api/RetailAPI/checkCaptcha.ts +8 -0
  543. package/src/api/RetailAPI/checkCode.ts +22 -0
  544. package/src/api/RetailAPI/createCaptcha.ts +4 -0
  545. package/src/api/RetailAPI/createDraftTask.ts +14 -0
  546. package/src/api/RetailAPI/createUserProfile.ts +13 -0
  547. package/src/api/RetailAPI/doRequest.ts +28 -0
  548. package/src/api/RetailAPI/feedbackById.ts +7 -0
  549. package/src/api/RetailAPI/sendCode.ts +12 -0
  550. package/src/api/RetailAPI/updateUserProfile.ts +24 -0
  551. package/src/api/RetailAPI/updateUserTask.ts +41 -0
  552. package/src/api/{RetailApi → RetailAPI}/utils/getUpdateUserProfile.ts +1 -1
  553. package/src/api/{RetailApi → RetailAPI}/utils/getUpdateUserTask.ts +20 -14
  554. package/src/api/apiBaseUrl.ts +1 -0
  555. package/src/api/dadataHints/dadataHints.ts +2 -1
  556. package/src/components/ApplicationForm/getRegionUrl.tsx +2 -1
  557. package/src/components/ApplicationLeadForm/ApplicationLeadForm.example.json +2 -12
  558. package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.mobile.tsx +2 -4
  559. package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.tsx +1 -3
  560. package/src/components/ApplicationLeadForm/consents.ts +4 -12
  561. package/src/components/ApplicationLeadForm/getInitialFormState.tsx +5 -6
  562. package/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +29 -8
  563. package/src/components/CalculatorBusinessDeposit/useBusinessDepositRates.ts +2 -1
  564. package/src/components/Depository/DepositoryItem.tsx +2 -1
  565. package/src/components/Depository/useDepository.ts +3 -1
  566. package/src/components/ExchangeRateTile/useFetchExchangeRateData.ts +2 -1
  567. package/src/components/OfficesAtmsMap/useAtms.ts +2 -1
  568. package/src/components/OfficesAtmsMap/useOffices.ts +3 -2
  569. package/src/components/SafeDepositRental/useGetRegions.ts +2 -1
  570. package/src/components/SafeDepositRental/useSafeBoxes.ts +2 -1
  571. package/src/hooks/useBranches.ts +2 -1
  572. package/src/hooks/useBranchesByRegions.ts +4 -3
  573. package/src/hooks/useLeadFormData.ts +1 -1
  574. package/src/hooks/useLocation.ts +2 -1
  575. package/src/hooks/useRegions.ts +2 -1
  576. package/src/ui-kit/CaptchaDialog/CaptchaDialog.tsx +6 -6
  577. package/src/ui-kit/CaptchaDialog/{checkCaptcha.ts → handleCheckCaptcha.ts} +5 -5
  578. package/src/ui-kit/CaptchaDialog/handleCreateCaptcha.ts +9 -0
  579. package/src/ui-kit/Checkbox/getDocument.ts +3 -3
  580. package/src/ui-kit/FormField/Fields/LocalitiesField.tsx +6 -3
  581. package/src/ui-kit/FormField/NameFieldDef.ts +1 -3
  582. package/src/ui-kit/FormField/constants.tsx +0 -2
  583. package/src/ui-kit/FormField/getField.tsx +1 -3
  584. package/src/ui-kit/FormField/getObjectValidator.tsx +1 -3
  585. package/src/ui-kit/InfoCard/InfoCard.fixture.tsx +2 -2
  586. package/src/ui-kit/VerifyPhoneDialog/handleSendCode.ts +2 -2
  587. package/src/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +2 -2
  588. package/bundle/api/RetailApi/RetailApi.d.ts +0 -12
  589. package/bundle/api/RetailApi/RetailApiTypes.d.ts +0 -86
  590. package/bundle/api/RetailApi/utils/getUpdateUserTask.d.ts +0 -2
  591. package/bundle/ui-kit/CaptchaDialog/checkCaptcha.d.ts +0 -8
  592. package/bundle/ui-kit/CaptchaDialog/createCaptcha.d.ts +0 -1
  593. package/dist/api/RetailApi/RetailApi.d.ts +0 -12
  594. package/dist/api/RetailApi/RetailApi.js +0 -44
  595. package/dist/api/RetailApi/RetailApi.js.map +0 -1
  596. package/dist/api/RetailApi/RetailApiTypes.d.ts +0 -86
  597. package/dist/api/RetailApi/RetailApiTypes.js.map +0 -1
  598. package/dist/api/RetailApi/utils/getUpdateUserTask.d.ts +0 -2
  599. package/dist/api/RetailApi/utils/getUpdateUserTask.js.map +0 -1
  600. package/dist/ui-kit/CaptchaDialog/checkCaptcha.d.ts +0 -8
  601. package/dist/ui-kit/CaptchaDialog/checkCaptcha.js +0 -16
  602. package/dist/ui-kit/CaptchaDialog/checkCaptcha.js.map +0 -1
  603. package/dist/ui-kit/CaptchaDialog/createCaptcha.d.ts +0 -1
  604. package/dist/ui-kit/CaptchaDialog/createCaptcha.js +0 -9
  605. package/dist/ui-kit/CaptchaDialog/createCaptcha.js.map +0 -1
  606. package/lib/api/RetailApi/RetailApi.d.ts +0 -12
  607. package/lib/api/RetailApi/RetailApi.js +0 -42
  608. package/lib/api/RetailApi/RetailApi.js.map +0 -1
  609. package/lib/api/RetailApi/RetailApiTypes.d.ts +0 -86
  610. package/lib/api/RetailApi/RetailApiTypes.js +0 -2
  611. package/lib/api/RetailApi/RetailApiTypes.js.map +0 -1
  612. package/lib/api/RetailApi/utils/getUpdateUserTask.d.ts +0 -2
  613. package/lib/api/RetailApi/utils/getUpdateUserTask.js.map +0 -1
  614. package/lib/ui-kit/CaptchaDialog/checkCaptcha.d.ts +0 -8
  615. package/lib/ui-kit/CaptchaDialog/checkCaptcha.js +0 -13
  616. package/lib/ui-kit/CaptchaDialog/checkCaptcha.js.map +0 -1
  617. package/lib/ui-kit/CaptchaDialog/createCaptcha.d.ts +0 -1
  618. package/lib/ui-kit/CaptchaDialog/createCaptcha.js +0 -6
  619. package/lib/ui-kit/CaptchaDialog/createCaptcha.js.map +0 -1
  620. package/mobile/bundle/api/RetailApi/RetailApi.d.ts +0 -12
  621. package/mobile/bundle/api/RetailApi/RetailApiTypes.d.ts +0 -86
  622. package/mobile/bundle/api/RetailApi/utils/getUpdateUserTask.d.ts +0 -2
  623. package/mobile/bundle/ui-kit/CaptchaDialog/checkCaptcha.d.ts +0 -8
  624. package/mobile/bundle/ui-kit/CaptchaDialog/createCaptcha.d.ts +0 -1
  625. package/mobile/dist/api/RetailApi/RetailApi.d.ts +0 -12
  626. package/mobile/dist/api/RetailApi/RetailApi.js +0 -44
  627. package/mobile/dist/api/RetailApi/RetailApi.js.map +0 -1
  628. package/mobile/dist/api/RetailApi/RetailApiTypes.d.ts +0 -86
  629. package/mobile/dist/api/RetailApi/RetailApiTypes.js.map +0 -1
  630. package/mobile/dist/api/RetailApi/utils/getUpdateUserProfile.d.ts +0 -3
  631. package/mobile/dist/api/RetailApi/utils/getUpdateUserTask.d.ts +0 -2
  632. package/mobile/dist/api/RetailApi/utils/getUpdateUserTask.js.map +0 -1
  633. package/mobile/dist/ui-kit/CaptchaDialog/checkCaptcha.d.ts +0 -8
  634. package/mobile/dist/ui-kit/CaptchaDialog/checkCaptcha.js +0 -16
  635. package/mobile/dist/ui-kit/CaptchaDialog/checkCaptcha.js.map +0 -1
  636. package/mobile/dist/ui-kit/CaptchaDialog/createCaptcha.d.ts +0 -1
  637. package/mobile/dist/ui-kit/CaptchaDialog/createCaptcha.js +0 -9
  638. package/mobile/dist/ui-kit/CaptchaDialog/createCaptcha.js.map +0 -1
  639. package/mobile/lib/api/RetailApi/RetailApi.d.ts +0 -12
  640. package/mobile/lib/api/RetailApi/RetailApi.js +0 -42
  641. package/mobile/lib/api/RetailApi/RetailApi.js.map +0 -1
  642. package/mobile/lib/api/RetailApi/RetailApiTypes.d.ts +0 -86
  643. package/mobile/lib/api/RetailApi/RetailApiTypes.js +0 -2
  644. package/mobile/lib/api/RetailApi/RetailApiTypes.js.map +0 -1
  645. package/mobile/lib/api/RetailApi/utils/getUpdateUserProfile.d.ts +0 -3
  646. package/mobile/lib/api/RetailApi/utils/getUpdateUserTask.d.ts +0 -2
  647. package/mobile/lib/api/RetailApi/utils/getUpdateUserTask.js.map +0 -1
  648. package/mobile/lib/ui-kit/CaptchaDialog/checkCaptcha.d.ts +0 -8
  649. package/mobile/lib/ui-kit/CaptchaDialog/checkCaptcha.js +0 -13
  650. package/mobile/lib/ui-kit/CaptchaDialog/checkCaptcha.js.map +0 -1
  651. package/mobile/lib/ui-kit/CaptchaDialog/createCaptcha.d.ts +0 -1
  652. package/mobile/lib/ui-kit/CaptchaDialog/createCaptcha.js +0 -6
  653. package/mobile/lib/ui-kit/CaptchaDialog/createCaptcha.js.map +0 -1
  654. package/mobile/src/api/RetailApi/RetailApi.ts +0 -69
  655. package/mobile/src/api/RetailApi/RetailApiTypes.ts +0 -95
  656. package/mobile/src/ui-kit/CaptchaDialog/createCaptcha.ts +0 -6
  657. package/src/api/RetailApi/RetailApi.ts +0 -69
  658. package/src/api/RetailApi/RetailApiTypes.ts +0 -95
  659. package/src/ui-kit/CaptchaDialog/createCaptcha.ts +0 -6
  660. /package/dist/api/{RetailApi → RetailAPI}/utils/getUpdateUserProfile.js +0 -0
  661. /package/lib/api/{RetailApi → RetailAPI}/utils/getUpdateUserProfile.js +0 -0
  662. /package/mobile/dist/api/{RetailApi → RetailAPI}/utils/getUpdateUserProfile.js +0 -0
  663. /package/mobile/lib/api/{RetailApi → RetailAPI}/utils/getUpdateUserProfile.js +0 -0
@@ -1,12 +0,0 @@
1
- import { type CapchaTextType, type CheckCodeBody, type CreateDraftTaskBody, type CreateDraftTaskResponse, type CreateUserProfileBody, type CreateUserProfileResponse, type SendCodeBody, type UpdateUserProfileBody, type UpdateUserTaskBody } from './RetailApiTypes';
2
- export declare const RETAIL_API: {
3
- CreateUserProfile: (body: CreateUserProfileBody) => Promise<CreateUserProfileResponse>;
4
- UpdateUserProfile: (body: UpdateUserProfileBody) => Promise<unknown>;
5
- CreateDraftTask: (body: CreateDraftTaskBody) => Promise<CreateDraftTaskResponse>;
6
- UpdateUserTask: (body: UpdateUserTaskBody) => Promise<unknown>;
7
- SendCode: (body: SendCodeBody) => Promise<unknown>;
8
- CheckCode: (body: CheckCodeBody) => Promise<void>;
9
- CreateCaptcha: (phoneNumber: string) => Promise<Response>;
10
- CheckCaptcha: (body: CapchaTextType) => Promise<Response>;
11
- GetFileByID: (id: number) => Promise<Response>;
12
- };
@@ -1,42 +0,0 @@
1
- const getResponse = (response) => (isJSON(response) ? response.json() : response);
2
- const getAthorizationHeaders = () => {
3
- const token = sessionStorage.getItem('accessToken');
4
- return token ? { Authorization: `Bearer ${token}` } : null;
5
- };
6
- const isJSON = (response) => response.headers.get('Content-Type') === 'application/json';
7
- const request = async (url, method, body) => await fetch('https://retail-light-api.cprb.dev.rshbdev.ru/api/v1' + url, {
8
- method,
9
- headers: {
10
- 'Content-Type': 'application/json',
11
- ...getAthorizationHeaders(),
12
- },
13
- credentials: 'include',
14
- body: body ? JSON.stringify(body) : null,
15
- })
16
- .then((response) => {
17
- if (response.ok) {
18
- return getResponse(response);
19
- }
20
- else {
21
- throw response;
22
- }
23
- })
24
- .catch((error) => {
25
- throw error;
26
- });
27
- const saveToken = (data) => {
28
- sessionStorage.setItem('accessToken', data.access_token);
29
- sessionStorage.setItem('refreshToken', data.refresh_token);
30
- };
31
- export const RETAIL_API = {
32
- CreateUserProfile: async (body) => await request('/public-data/createUserProfile', 'POST', body),
33
- UpdateUserProfile: async (body) => await request('/user-data/updateUserProfile', 'PUT', body),
34
- CreateDraftTask: async (body) => await request('/user-data/createDraftTask', 'POST', body),
35
- UpdateUserTask: async (body) => await request('/user-data/updateUserTask', 'PUT', body),
36
- SendCode: async (body) => await request('/sms/sendCode', 'POST', body),
37
- CheckCode: async (body) => await request('/sms/checkCode', 'POST', body).then(saveToken),
38
- CreateCaptcha: async (phoneNumber) => await request(`/sms/createCaptcha?phoneNumber=${phoneNumber}`, 'GET'),
39
- CheckCaptcha: async (body) => await request('/sms/checkCaptcha', 'POST', body),
40
- GetFileByID: async (id) => await request(`/feedback/file?id=${id}`, 'GET'),
41
- };
42
- //# sourceMappingURL=RetailApi.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RetailApi.js","sourceRoot":"","sources":["../../../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E,EAAE,EAAE,KAAK,CAAC;CAC7F,CAAC"}
@@ -1,86 +0,0 @@
1
- export declare type CreateUserProfileBody = {
2
- profile: {
3
- phone: string;
4
- };
5
- };
6
- export declare type CreateUserProfileResponse = {
7
- profile: {
8
- id: number;
9
- };
10
- };
11
- export declare type UpdateUserProfileBody = {
12
- profile: {
13
- id: number;
14
- phone: string;
15
- email: string;
16
- name: string;
17
- surname: string;
18
- midname: string;
19
- birthDate: string;
20
- processPersonalDataLeadFlg: boolean;
21
- consentProviderFlg: boolean;
22
- consentPfrFlg: boolean;
23
- consentPhotoFlg: boolean;
24
- consentAssignmentClaimsFlg: boolean;
25
- consentCollectionFlg: boolean;
26
- consentInformFlg: boolean;
27
- };
28
- };
29
- export declare type CreateDraftTaskBody = {
30
- profileId: number;
31
- programId: string;
32
- };
33
- export declare type CreateDraftTaskResponse = {
34
- taskId: number;
35
- participantId: number;
36
- };
37
- export declare type UpdateUserTaskBody = {
38
- sendToBank: boolean;
39
- taskKind: 'SHORT' | 'FULL' | 'UNITED';
40
- task: {
41
- taskSource: string;
42
- id: number;
43
- participants: [
44
- {
45
- birthDate: string;
46
- id: number;
47
- midname: string;
48
- name: string;
49
- surname: string;
50
- profile: {
51
- id: number;
52
- };
53
- participantContacts: Array<{
54
- contactTypeCd: {
55
- key: 'EMAIL' | 'MAIN_PHONE';
56
- };
57
- value: string;
58
- }>;
59
- roleCd: {
60
- key: string;
61
- value: string;
62
- };
63
- }
64
- ];
65
- };
66
- };
67
- export declare type SendCodeBody = {
68
- phoneNumber: string;
69
- smsCodesSetName: {
70
- key: 'AUTHENTICATION' | 'SEND_TASK';
71
- };
72
- };
73
- export declare type CheckCodeBody = {
74
- smsText: string;
75
- smsCodesSetName: {
76
- key: 'AUTHENTICATION' | 'SEND_TASK';
77
- };
78
- };
79
- export declare type CheckCodeResponse = {
80
- access_token: string;
81
- expires_in: number;
82
- refresh_token: string;
83
- };
84
- export declare type CapchaTextType = {
85
- captchaText: string;
86
- };
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=RetailApiTypes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RetailApiTypes.js","sourceRoot":"","sources":["../../../src/api/RetailApi/RetailApiTypes.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import { type UpdateUserTaskBody } from '../RetailApiTypes';
2
- export declare const getUpdateUserTaskData: (participantId: number, taskId: number, profileId: number, formatData?: Record<string, any>) => UpdateUserTaskBody;
@@ -1 +0,0 @@
1
- {"version":3,"file":"getUpdateUserTask.js","sourceRoot":"","sources":["../../../../src/api/RetailApi/utils/getUpdateUserTask.ts"],"names":[],"mappings":"AAEA,+BAA+B;AAC/B,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,aAAqB,EACrB,MAAc,EACd,SAAiB,EACjB,UAAgC,EACZ,EAAE,CAAC,CAAC;IACxB,UAAU,EAAE,IAAI;IAChB,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE;QACJ,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,MAAM;QACtC,EAAE,EAAE,MAAM;QACV,YAAY,EAAE;YACZ;gBACE,SAAS,EAAE,UAAU,EAAE,SAAS;gBAChC,EAAE,EAAE,aAAa;gBACjB,OAAO,EAAE,UAAU,EAAE,OAAO;gBAC5B,IAAI,EAAE,UAAU,EAAE,IAAI;gBACtB,OAAO,EAAE,UAAU,EAAE,OAAO;gBAC5B,OAAO,EAAE;oBACP,EAAE,EAAE,SAAS;iBACd;gBACD,mBAAmB,EAAE;oBACnB;wBACE,aAAa,EAAE;4BACb,GAAG,EAAE,OAAO;yBACb;wBACD,KAAK,EAAE,UAAU,EAAE,KAAK;qBACzB;oBACD;wBACE,aAAa,EAAE;4BACb,GAAG,EAAE,YAAY;yBAClB;wBACD,KAAK,EAAE,UAAU,EAAE,KAAK;qBACzB;iBACF;gBACD,MAAM,EAAE;oBACN,GAAG,EAAE,UAAU;oBACf,KAAK,EAAE,SAAS;iBACjB;aACF;SACF;KACF;CACF,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- interface CheckCaptchaProps {
2
- code: string;
3
- setHasError: (hasError: boolean) => void;
4
- sendCode?: () => void;
5
- close?: () => void;
6
- }
7
- export declare const checkCaptcha: ({ code, setHasError, close, sendCode, }: CheckCaptchaProps) => Promise<void>;
8
- export {};
@@ -1,13 +0,0 @@
1
- import { RETAIL_API } from '../../api/RetailApi/RetailApi.js';
2
- import { noop } from '../../utils/noop.js';
3
- export const checkCaptcha = async ({ code, setHasError, close, sendCode = noop, }) => {
4
- const response = await RETAIL_API.CheckCaptcha({ captchaText: code });
5
- if ((await response.text()) === 'ERROR') {
6
- setHasError(true);
7
- }
8
- else {
9
- sendCode();
10
- close?.();
11
- }
12
- };
13
- //# sourceMappingURL=checkCaptcha.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkCaptcha.js","sourceRoot":"","sources":["../../../src/ui-kit/CaptchaDialog/checkCaptcha.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AASxC,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,EAAE,EACjC,IAAI,EACJ,WAAW,EACX,KAAK,EACL,QAAQ,GAAG,IAAI,GACG,EAAE,EAAE;IACtB,MAAM,QAAQ,GAAG,MAAM,UAAU,CAAC,YAAY,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;IAEtE,IAAI,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,EAAE;QACvC,WAAW,CAAC,IAAI,CAAC,CAAC;KACnB;SAAM;QACL,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,EAAE,CAAC;KACX;AACH,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- export declare const createCaptcha: (setCaptcha: (captcha: string) => void, phoneNumber: string) => Promise<void>;
@@ -1,6 +0,0 @@
1
- import { RETAIL_API } from '../../api/RetailApi/RetailApi.js';
2
- export const createCaptcha = async (setCaptcha, phoneNumber) => {
3
- const response = await RETAIL_API.CreateCaptcha(phoneNumber);
4
- setCaptcha(URL.createObjectURL(await response.blob()));
5
- };
6
- //# sourceMappingURL=createCaptcha.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createCaptcha.js","sourceRoot":"","sources":["../../../src/ui-kit/CaptchaDialog/createCaptcha.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3D,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,EAAE,UAAqC,EAAE,WAAmB,EAAE,EAAE;IAChG,MAAM,QAAQ,GAAG,MAAM,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;IAC7D,UAAU,CAAC,GAAG,CAAC,eAAe,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AACzD,CAAC,CAAC"}
@@ -1,12 +0,0 @@
1
- import { type CapchaTextType, type CheckCodeBody, type CreateDraftTaskBody, type CreateDraftTaskResponse, type CreateUserProfileBody, type CreateUserProfileResponse, type SendCodeBody, type UpdateUserProfileBody, type UpdateUserTaskBody } from './RetailApiTypes';
2
- export declare const RETAIL_API: {
3
- CreateUserProfile: (body: CreateUserProfileBody) => Promise<CreateUserProfileResponse>;
4
- UpdateUserProfile: (body: UpdateUserProfileBody) => Promise<unknown>;
5
- CreateDraftTask: (body: CreateDraftTaskBody) => Promise<CreateDraftTaskResponse>;
6
- UpdateUserTask: (body: UpdateUserTaskBody) => Promise<unknown>;
7
- SendCode: (body: SendCodeBody) => Promise<unknown>;
8
- CheckCode: (body: CheckCodeBody) => Promise<void>;
9
- CreateCaptcha: (phoneNumber: string) => Promise<Response>;
10
- CheckCaptcha: (body: CapchaTextType) => Promise<Response>;
11
- GetFileByID: (id: number) => Promise<Response>;
12
- };
@@ -1,86 +0,0 @@
1
- export declare type CreateUserProfileBody = {
2
- profile: {
3
- phone: string;
4
- };
5
- };
6
- export declare type CreateUserProfileResponse = {
7
- profile: {
8
- id: number;
9
- };
10
- };
11
- export declare type UpdateUserProfileBody = {
12
- profile: {
13
- id: number;
14
- phone: string;
15
- email: string;
16
- name: string;
17
- surname: string;
18
- midname: string;
19
- birthDate: string;
20
- processPersonalDataLeadFlg: boolean;
21
- consentProviderFlg: boolean;
22
- consentPfrFlg: boolean;
23
- consentPhotoFlg: boolean;
24
- consentAssignmentClaimsFlg: boolean;
25
- consentCollectionFlg: boolean;
26
- consentInformFlg: boolean;
27
- };
28
- };
29
- export declare type CreateDraftTaskBody = {
30
- profileId: number;
31
- programId: string;
32
- };
33
- export declare type CreateDraftTaskResponse = {
34
- taskId: number;
35
- participantId: number;
36
- };
37
- export declare type UpdateUserTaskBody = {
38
- sendToBank: boolean;
39
- taskKind: 'SHORT' | 'FULL' | 'UNITED';
40
- task: {
41
- taskSource: string;
42
- id: number;
43
- participants: [
44
- {
45
- birthDate: string;
46
- id: number;
47
- midname: string;
48
- name: string;
49
- surname: string;
50
- profile: {
51
- id: number;
52
- };
53
- participantContacts: Array<{
54
- contactTypeCd: {
55
- key: 'EMAIL' | 'MAIN_PHONE';
56
- };
57
- value: string;
58
- }>;
59
- roleCd: {
60
- key: string;
61
- value: string;
62
- };
63
- }
64
- ];
65
- };
66
- };
67
- export declare type SendCodeBody = {
68
- phoneNumber: string;
69
- smsCodesSetName: {
70
- key: 'AUTHENTICATION' | 'SEND_TASK';
71
- };
72
- };
73
- export declare type CheckCodeBody = {
74
- smsText: string;
75
- smsCodesSetName: {
76
- key: 'AUTHENTICATION' | 'SEND_TASK';
77
- };
78
- };
79
- export declare type CheckCodeResponse = {
80
- access_token: string;
81
- expires_in: number;
82
- refresh_token: string;
83
- };
84
- export declare type CapchaTextType = {
85
- captchaText: string;
86
- };
@@ -1,2 +0,0 @@
1
- import { type UpdateUserTaskBody } from '../RetailApiTypes';
2
- export declare const getUpdateUserTaskData: (participantId: number, taskId: number, profileId: number, formatData?: Record<string, any>) => UpdateUserTaskBody;
@@ -1,8 +0,0 @@
1
- interface CheckCaptchaProps {
2
- code: string;
3
- setHasError: (hasError: boolean) => void;
4
- sendCode?: () => void;
5
- close?: () => void;
6
- }
7
- export declare const checkCaptcha: ({ code, setHasError, close, sendCode, }: CheckCaptchaProps) => Promise<void>;
8
- export {};
@@ -1 +0,0 @@
1
- export declare const createCaptcha: (setCaptcha: (captcha: string) => void, phoneNumber: string) => Promise<void>;
@@ -1,12 +0,0 @@
1
- import { type CapchaTextType, type CheckCodeBody, type CreateDraftTaskBody, type CreateDraftTaskResponse, type CreateUserProfileBody, type CreateUserProfileResponse, type SendCodeBody, type UpdateUserProfileBody, type UpdateUserTaskBody } from './RetailApiTypes';
2
- export declare const RETAIL_API: {
3
- CreateUserProfile: (body: CreateUserProfileBody) => Promise<CreateUserProfileResponse>;
4
- UpdateUserProfile: (body: UpdateUserProfileBody) => Promise<unknown>;
5
- CreateDraftTask: (body: CreateDraftTaskBody) => Promise<CreateDraftTaskResponse>;
6
- UpdateUserTask: (body: UpdateUserTaskBody) => Promise<unknown>;
7
- SendCode: (body: SendCodeBody) => Promise<unknown>;
8
- CheckCode: (body: CheckCodeBody) => Promise<void>;
9
- CreateCaptcha: (phoneNumber: string) => Promise<Response>;
10
- CheckCaptcha: (body: CapchaTextType) => Promise<Response>;
11
- GetFileByID: (id: number) => Promise<Response>;
12
- };
@@ -1,44 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.RETAIL_API = void 0;
3
- const getResponse = (response) => (isJSON(response) ? response.json() : response);
4
- const getAthorizationHeaders = () => {
5
- const token = sessionStorage.getItem('accessToken');
6
- return token ? { Authorization: `Bearer ${token}` } : null;
7
- };
8
- const isJSON = (response) => response.headers.get('Content-Type') === 'application/json';
9
- const request = async (url, method, body) => await fetch('https://retail-light-api.cprb.dev.rshbdev.ru/api/v1' + url, {
10
- method,
11
- headers: {
12
- 'Content-Type': 'application/json',
13
- ...getAthorizationHeaders(),
14
- },
15
- credentials: 'include',
16
- body: body ? JSON.stringify(body) : null,
17
- })
18
- .then((response) => {
19
- if (response.ok) {
20
- return getResponse(response);
21
- }
22
- else {
23
- throw response;
24
- }
25
- })
26
- .catch((error) => {
27
- throw error;
28
- });
29
- const saveToken = (data) => {
30
- sessionStorage.setItem('accessToken', data.access_token);
31
- sessionStorage.setItem('refreshToken', data.refresh_token);
32
- };
33
- exports.RETAIL_API = {
34
- CreateUserProfile: async (body) => await request('/public-data/createUserProfile', 'POST', body),
35
- UpdateUserProfile: async (body) => await request('/user-data/updateUserProfile', 'PUT', body),
36
- CreateDraftTask: async (body) => await request('/user-data/createDraftTask', 'POST', body),
37
- UpdateUserTask: async (body) => await request('/user-data/updateUserTask', 'PUT', body),
38
- SendCode: async (body) => await request('/sms/sendCode', 'POST', body),
39
- CheckCode: async (body) => await request('/sms/checkCode', 'POST', body).then(saveToken),
40
- CreateCaptcha: async (phoneNumber) => await request(`/sms/createCaptcha?phoneNumber=${phoneNumber}`, 'GET'),
41
- CheckCaptcha: async (body) => await request('/sms/checkCaptcha', 'POST', body),
42
- GetFileByID: async (id) => await request(`/feedback/file?id=${id}`, 'GET'),
43
- };
44
- //# sourceMappingURL=RetailApi.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RetailApi.js","sourceRoot":"","sources":["../../../src/api/RetailApi/RetailApi.ts"],"names":[],"mappings":";;AAeA,MAAM,WAAW,GAAG,CAAC,QAAkB,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;AAE5F,MAAM,sBAAsB,GAAG,GAAG,EAAE;IAClC,MAAM,KAAK,GAAG,cAAc,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IAEpD,OAAO,KAAK,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,UAAU,KAAK,EAAE,E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AAC,8BAA8B,EAAE,KAAK,EAAE,IAAI,CAAC;IAC5D,eAAe,EAAE,KAAK,EAAE,IAAyB,EAAE,EAAE,CACnD,MAAM,OAAO,CAA0B,4BAA4B,EAAE,MAAM,EAAE,IAAI,CAAC;IACpF,cAAc,EAAE,KAAK,EAAE,IAAwB,EAAE,EAAE,CACjD,MAAM,OAAO,CAAC,2BAA2B,EAAE,KAAK,EAAE,IAAI,CAAC;IACzD,QAAQ,EAAE,KAAK,EAAE,IAAkB,EAAE,EAAE,CAAC,MAAM,OAAO,CAAC,eAAe,EAAE,MAAM,EAAE,IAAI,CAAC;IACpF,SAAS,EAAE,KAAK,EAAE,IAAmB,EAAE,EAAE,CACvC,MAAM,OAAO,CAAoB,gBAAgB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;IAClF,aAAa,EAAE,KAAK,EAAE,WAAmB,EAAE,EAAE,CAC3C,MAAM,OAAO,CAAW,kCAAkC,WAAW,EAAE,EAAE,KAAK,CAAC;IACjF,YAAY,EAAE,KAAK,EAAE,IAAoB,EAAE,EAAE,CAC3C,MAAM,OAAO,CAAW,mBAAmB,EAAE,MAAM,EAAE,IAAI,CAAC;IAC5D,WAAW,EAAE,KAAK,EAAE,EAAU,EAAE,EAAE,CAAC,MAAM,OAAO,CAAW,qBAAqB,EAAE,EAAE,EAAE,KAAK,CAAC;CAC7F,CAAC"}
@@ -1,86 +0,0 @@
1
- export declare type CreateUserProfileBody = {
2
- profile: {
3
- phone: string;
4
- };
5
- };
6
- export declare type CreateUserProfileResponse = {
7
- profile: {
8
- id: number;
9
- };
10
- };
11
- export declare type UpdateUserProfileBody = {
12
- profile: {
13
- id: number;
14
- phone: string;
15
- email: string;
16
- name: string;
17
- surname: string;
18
- midname: string;
19
- birthDate: string;
20
- processPersonalDataLeadFlg: boolean;
21
- consentProviderFlg: boolean;
22
- consentPfrFlg: boolean;
23
- consentPhotoFlg: boolean;
24
- consentAssignmentClaimsFlg: boolean;
25
- consentCollectionFlg: boolean;
26
- consentInformFlg: boolean;
27
- };
28
- };
29
- export declare type CreateDraftTaskBody = {
30
- profileId: number;
31
- programId: string;
32
- };
33
- export declare type CreateDraftTaskResponse = {
34
- taskId: number;
35
- participantId: number;
36
- };
37
- export declare type UpdateUserTaskBody = {
38
- sendToBank: boolean;
39
- taskKind: 'SHORT' | 'FULL' | 'UNITED';
40
- task: {
41
- taskSource: string;
42
- id: number;
43
- participants: [
44
- {
45
- birthDate: string;
46
- id: number;
47
- midname: string;
48
- name: string;
49
- surname: string;
50
- profile: {
51
- id: number;
52
- };
53
- participantContacts: Array<{
54
- contactTypeCd: {
55
- key: 'EMAIL' | 'MAIN_PHONE';
56
- };
57
- value: string;
58
- }>;
59
- roleCd: {
60
- key: string;
61
- value: string;
62
- };
63
- }
64
- ];
65
- };
66
- };
67
- export declare type SendCodeBody = {
68
- phoneNumber: string;
69
- smsCodesSetName: {
70
- key: 'AUTHENTICATION' | 'SEND_TASK';
71
- };
72
- };
73
- export declare type CheckCodeBody = {
74
- smsText: string;
75
- smsCodesSetName: {
76
- key: 'AUTHENTICATION' | 'SEND_TASK';
77
- };
78
- };
79
- export declare type CheckCodeResponse = {
80
- access_token: string;
81
- expires_in: number;
82
- refresh_token: string;
83
- };
84
- export declare type CapchaTextType = {
85
- captchaText: string;
86
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"RetailApiTypes.js","sourceRoot":"","sources":["../../../src/api/RetailApi/RetailApiTypes.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import { type FormState } from '../../../components/ApplicationLeadForm/getInitialFormState';
2
- import { type UpdateUserProfileBody } from '../RetailApiTypes';
3
- export declare const getUpdateUserProfileData: (profileId: number, formData: FormState) => UpdateUserProfileBody;
@@ -1,2 +0,0 @@
1
- import { type UpdateUserTaskBody } from '../RetailApiTypes';
2
- export declare const getUpdateUserTaskData: (participantId: number, taskId: number, profileId: number, formatData?: Record<string, any>) => UpdateUserTaskBody;
@@ -1 +0,0 @@
1
- {"version":3,"file":"getUpdateUserTask.js","sourceRoot":"","sources":["../../../../src/api/RetailApi/utils/getUpdateUserTask.ts"],"names":[],"mappings":";;AAEA,+BAA+B;AACxB,MAAM,qBAAqB,GAAG,CACnC,aAAqB,EACrB,MAAc,EACd,SAAiB,EACjB,UAAgC,EACZ,EAAE,CAAC,CAAC;IACxB,UAAU,EAAE,IAAI;IAChB,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE;QACJ,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,MAAM;QACtC,EAAE,EAAE,MAAM;QACV,YAAY,EAAE;YACZ;gBACE,SAAS,EAAE,UAAU,EAAE,SAAS;gBAChC,EAAE,EAAE,aAAa;gBACjB,OAAO,EAAE,UAAU,EAAE,OAAO;gBAC5B,IAAI,EAAE,UAAU,EAAE,IAAI;gBACtB,OAAO,EAAE,UAAU,EAAE,OAAO;gBAC5B,OAAO,EAAE;oBACP,EAAE,EAAE,SAAS;iBACd;gBACD,mBAAmB,EAAE;oBACnB;wBACE,aAAa,EAAE;4BACb,GAAG,EAAE,OAAO;yBACb;wBACD,KAAK,EAAE,UAAU,EAAE,KAAK;qBACzB;oBACD;wBACE,aAAa,EAAE;4BACb,GAAG,EAAE,YAAY;yBAClB;wBACD,KAAK,EAAE,UAAU,EAAE,KAAK;qBACzB;iBACF;gBACD,MAAM,EAAE;oBACN,GAAG,EAAE,UAAU;oBACf,KAAK,EAAE,SAAS;iBACjB;aACF;SACF;KACF;CACF,CAAC,CAAC;AA1CU,QAAA,qBAAqB,yBA0C/B"}
@@ -1,8 +0,0 @@
1
- interface CheckCaptchaProps {
2
- code: string;
3
- setHasError: (hasError: boolean) => void;
4
- sendCode?: () => void;
5
- close?: () => void;
6
- }
7
- export declare const checkCaptcha: ({ code, setHasError, close, sendCode, }: CheckCaptchaProps) => Promise<void>;
8
- export {};
@@ -1,16 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.checkCaptcha = void 0;
3
- const RetailApi_1 = require("../../api/RetailApi/RetailApi");
4
- const noop_1 = require("../../utils/noop");
5
- const checkCaptcha = async ({ code, setHasError, close, sendCode = noop_1.noop, }) => {
6
- const response = await RetailApi_1.RETAIL_API.CheckCaptcha({ captchaText: code });
7
- if ((await response.text()) === 'ERROR') {
8
- setHasError(true);
9
- }
10
- else {
11
- sendCode();
12
- close?.();
13
- }
14
- };
15
- exports.checkCaptcha = checkCaptcha;
16
- //# sourceMappingURL=checkCaptcha.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkCaptcha.js","sourceRoot":"","sources":["../../../src/ui-kit/CaptchaDialog/checkCaptcha.ts"],"names":[],"mappings":";;AAAA,6DAA2D;AAC3D,2CAAwC;AASjC,MAAM,YAAY,GAAG,KAAK,EAAE,EACjC,IAAI,EACJ,WAAW,EACX,KAAK,EACL,QAAQ,GAAG,WAAI,GACG,EAAE,EAAE;IACtB,MAAM,QAAQ,GAAG,MAAM,sBAAU,CAAC,YAAY,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;IAEtE,IAAI,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,EAAE;QACvC,WAAW,CAAC,IAAI,CAAC,CAAC;KACnB;SAAM;QACL,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,EAAE,CAAC;KACX;AACH,CAAC,CAAC;AAdW,QAAA,YAAY,gBAcvB"}
@@ -1 +0,0 @@
1
- export declare const createCaptcha: (setCaptcha: (captcha: string) => void, phoneNumber: string) => Promise<void>;
@@ -1,9 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.createCaptcha = void 0;
3
- const RetailApi_1 = require("../../api/RetailApi/RetailApi");
4
- const createCaptcha = async (setCaptcha, phoneNumber) => {
5
- const response = await RetailApi_1.RETAIL_API.CreateCaptcha(phoneNumber);
6
- setCaptcha(URL.createObjectURL(await response.blob()));
7
- };
8
- exports.createCaptcha = createCaptcha;
9
- //# sourceMappingURL=createCaptcha.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createCaptcha.js","sourceRoot":"","sources":["../../../src/ui-kit/CaptchaDialog/createCaptcha.ts"],"names":[],"mappings":";;AAAA,6DAA2D;AAEpD,MAAM,aAAa,GAAG,KAAK,EAAE,UAAqC,EAAE,WAAmB,EAAE,EAAE;IAChG,MAAM,QAAQ,GAAG,MAAM,sBAAU,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;IAC7D,UAAU,CAAC,GAAG,CAAC,eAAe,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AACzD,CAAC,CAAC;AAHW,QAAA,aAAa,iBAGxB"}
@@ -1,12 +0,0 @@
1
- import { type CapchaTextType, type CheckCodeBody, type CreateDraftTaskBody, type CreateDraftTaskResponse, type CreateUserProfileBody, type CreateUserProfileResponse, type SendCodeBody, type UpdateUserProfileBody, type UpdateUserTaskBody } from './RetailApiTypes';
2
- export declare const RETAIL_API: {
3
- CreateUserProfile: (body: CreateUserProfileBody) => Promise<CreateUserProfileResponse>;
4
- UpdateUserProfile: (body: UpdateUserProfileBody) => Promise<unknown>;
5
- CreateDraftTask: (body: CreateDraftTaskBody) => Promise<CreateDraftTaskResponse>;
6
- UpdateUserTask: (body: UpdateUserTaskBody) => Promise<unknown>;
7
- SendCode: (body: SendCodeBody) => Promise<unknown>;
8
- CheckCode: (body: CheckCodeBody) => Promise<void>;
9
- CreateCaptcha: (phoneNumber: string) => Promise<Response>;
10
- CheckCaptcha: (body: CapchaTextType) => Promise<Response>;
11
- GetFileByID: (id: number) => Promise<Response>;
12
- };
@@ -1,42 +0,0 @@
1
- const getResponse = (response) => (isJSON(response) ? response.json() : response);
2
- const getAthorizationHeaders = () => {
3
- const token = sessionStorage.getItem('accessToken');
4
- return token ? { Authorization: `Bearer ${token}` } : null;
5
- };
6
- const isJSON = (response) => response.headers.get('Content-Type') === 'application/json';
7
- const request = async (url, method, body) => await fetch('https://retail-light-api.cprb.dev.rshbdev.ru/api/v1' + url, {
8
- method,
9
- headers: {
10
- 'Content-Type': 'application/json',
11
- ...getAthorizationHeaders(),
12
- },
13
- credentials: 'include',
14
- body: body ? JSON.stringify(body) : null,
15
- })
16
- .then((response) => {
17
- if (response.ok) {
18
- return getResponse(response);
19
- }
20
- else {
21
- throw response;
22
- }
23
- })
24
- .catch((error) => {
25
- throw error;
26
- });
27
- const saveToken = (data) => {
28
- sessionStorage.setItem('accessToken', data.access_token);
29
- sessionStorage.setItem('refreshToken', data.refresh_token);
30
- };
31
- export const RETAIL_API = {
32
- CreateUserProfile: async (body) => await request('/public-data/createUserProfile', 'POST', body),
33
- UpdateUserProfile: async (body) => await request('/user-data/updateUserProfile', 'PUT', body),
34
- CreateDraftTask: async (body) => await request('/user-data/createDraftTask', 'POST', body),
35
- UpdateUserTask: async (body) => await request('/user-data/updateUserTask', 'PUT', body),
36
- SendCode: async (body) => await request('/sms/sendCode', 'POST', body),
37
- CheckCode: async (body) => await request('/sms/checkCode', 'POST', body).then(saveToken),
38
- CreateCaptcha: async (phoneNumber) => await request(`/sms/createCaptcha?phoneNumber=${phoneNumber}`, 'GET'),
39
- CheckCaptcha: async (body) => await request('/sms/checkCaptcha', 'POST', body),
40
- GetFileByID: async (id) => await request(`/feedback/file?id=${id}`, 'GET'),
41
- };
42
- //# sourceMappingURL=RetailApi.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RetailApi.js","sourceRoot":"","sources":["../../../src/api/RetailApi/RetailApi.ts"],"names":[],"mappings":"AAeA,MAAM,WAAW,GAAG,CAAC,QAAkB,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;AAE5F,MAAM,sBAAsB,GAAG,GAAG,EAAE;IAClC,MAAM,KAAK,GAAG,cAAc,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;I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