@redneckz/wildless-cms-uni-blocks 0.14.604 → 0.14.606
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.
- package/bundle/api/OutServiceAPI/OutServiceAPI.d.ts +8 -0
- package/bundle/api/RetailAPI/StatusType.d.ts +1 -0
- package/bundle/api/RetailAPI/checkCaptcha.d.ts +4 -0
- package/bundle/api/RetailAPI/checkCode.d.ts +12 -0
- package/bundle/api/RetailAPI/createCaptcha.d.ts +1 -0
- package/bundle/api/RetailAPI/createDraftTask.d.ts +9 -0
- package/bundle/api/RetailAPI/createUserProfile.d.ts +9 -0
- package/bundle/api/RetailAPI/doRequest.d.ts +1 -0
- package/bundle/api/RetailAPI/feedbackById.d.ts +1 -0
- package/bundle/api/RetailAPI/sendCode.d.ts +10 -0
- package/bundle/api/RetailAPI/updateUserProfile.d.ts +20 -0
- package/bundle/api/RetailAPI/updateUserTask.d.ts +36 -0
- package/{dist/api/RetailApi → bundle/api/RetailAPI}/utils/getUpdateUserProfile.d.ts +1 -1
- package/bundle/api/RetailAPI/utils/getUpdateUserTask.d.ts +9 -0
- package/bundle/api/apiBaseUrl.d.ts +1 -0
- package/bundle/bundle.umd.js +106 -95
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/getRegionUrl.d.ts +1 -1
- package/bundle/ui-kit/CaptchaDialog/handleCheckCaptcha.d.ts +8 -0
- package/bundle/ui-kit/CaptchaDialog/handleCreateCaptcha.d.ts +1 -0
- package/bundle/ui-kit/FormField/constants.d.ts +0 -1
- package/dist/api/FileStorage.js +3 -3
- package/dist/api/FileStorage.js.map +1 -1
- package/dist/api/LeadServiceAPI.js +2 -1
- package/dist/api/LeadServiceAPI.js.map +1 -1
- package/dist/api/OutServiceAPI/OutServiceAPI.d.ts +8 -0
- package/dist/api/OutServiceAPI/OutServiceAPI.js +12 -0
- package/dist/api/OutServiceAPI/OutServiceAPI.js.map +1 -0
- package/dist/api/RetailAPI/StatusType.d.ts +1 -0
- package/dist/api/{RetailApi/RetailApiTypes.js → RetailAPI/StatusType.js} +1 -1
- package/dist/api/RetailAPI/StatusType.js.map +1 -0
- package/dist/api/RetailAPI/checkCaptcha.d.ts +4 -0
- package/dist/api/RetailAPI/checkCaptcha.js +6 -0
- package/dist/api/RetailAPI/checkCaptcha.js.map +1 -0
- package/dist/api/RetailAPI/checkCode.d.ts +12 -0
- package/dist/api/RetailAPI/checkCode.js +10 -0
- package/dist/api/RetailAPI/checkCode.js.map +1 -0
- package/dist/api/RetailAPI/createCaptcha.d.ts +1 -0
- package/dist/api/RetailAPI/createCaptcha.js +6 -0
- package/dist/api/RetailAPI/createCaptcha.js.map +1 -0
- package/dist/api/RetailAPI/createDraftTask.d.ts +9 -0
- package/dist/api/RetailAPI/createDraftTask.js +6 -0
- package/dist/api/RetailAPI/createDraftTask.js.map +1 -0
- package/dist/api/RetailAPI/createUserProfile.d.ts +9 -0
- package/dist/api/RetailAPI/createUserProfile.js +6 -0
- package/dist/api/RetailAPI/createUserProfile.js.map +1 -0
- package/dist/api/RetailAPI/doRequest.d.ts +1 -0
- package/dist/api/RetailAPI/doRequest.js +23 -0
- package/dist/api/RetailAPI/doRequest.js.map +1 -0
- package/dist/api/RetailAPI/feedbackById.d.ts +1 -0
- package/dist/api/RetailAPI/feedbackById.js +9 -0
- package/dist/api/RetailAPI/feedbackById.js.map +1 -0
- package/dist/api/RetailAPI/sendCode.d.ts +10 -0
- package/dist/api/RetailAPI/sendCode.js +6 -0
- package/dist/api/RetailAPI/sendCode.js.map +1 -0
- package/dist/api/RetailAPI/updateUserProfile.d.ts +20 -0
- package/dist/api/RetailAPI/updateUserProfile.js +6 -0
- package/dist/api/RetailAPI/updateUserProfile.js.map +1 -0
- package/dist/api/RetailAPI/updateUserTask.d.ts +36 -0
- package/dist/api/RetailAPI/updateUserTask.js +6 -0
- package/dist/api/RetailAPI/updateUserTask.js.map +1 -0
- package/{lib/api/RetailApi → dist/api/RetailAPI}/utils/getUpdateUserProfile.d.ts +1 -1
- package/dist/api/{RetailApi → RetailAPI}/utils/getUpdateUserProfile.js.map +1 -1
- package/dist/api/RetailAPI/utils/getUpdateUserTask.d.ts +9 -0
- package/dist/api/{RetailApi → RetailAPI}/utils/getUpdateUserTask.js +7 -8
- package/dist/api/RetailAPI/utils/getUpdateUserTask.js.map +1 -0
- package/dist/api/apiBaseUrl.d.ts +1 -0
- package/dist/api/apiBaseUrl.js +4 -0
- package/dist/api/apiBaseUrl.js.map +1 -0
- package/dist/api/dadataHints/dadataHints.js +2 -1
- package/dist/api/dadataHints/dadataHints.js.map +1 -1
- package/dist/components/ApplicationForm/getRegionUrl.d.ts +1 -1
- package/dist/components/ApplicationForm/getRegionUrl.js +3 -2
- package/dist/components/ApplicationForm/getRegionUrl.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +10 -7
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/CalculatorBusinessDeposit/useBusinessDepositRates.js +2 -1
- package/dist/components/CalculatorBusinessDeposit/useBusinessDepositRates.js.map +1 -1
- package/dist/components/Depository/DepositoryItem.js +2 -1
- package/dist/components/Depository/DepositoryItem.js.map +1 -1
- package/dist/components/Depository/useDepository.js +2 -1
- package/dist/components/Depository/useDepository.js.map +1 -1
- package/dist/components/ExchangeRateTile/useFetchExchangeRateData.js +2 -1
- package/dist/components/ExchangeRateTile/useFetchExchangeRateData.js.map +1 -1
- package/dist/components/OfficesAtmsMap/useAtms.js +2 -1
- package/dist/components/OfficesAtmsMap/useAtms.js.map +1 -1
- package/dist/components/OfficesAtmsMap/useOffices.js +3 -2
- package/dist/components/OfficesAtmsMap/useOffices.js.map +1 -1
- package/dist/components/SafeDepositRental/useGetRegions.js +2 -1
- package/dist/components/SafeDepositRental/useGetRegions.js.map +1 -1
- package/dist/components/SafeDepositRental/useSafeBoxes.js +2 -1
- package/dist/components/SafeDepositRental/useSafeBoxes.js.map +1 -1
- package/dist/hooks/useBranches.js +2 -1
- package/dist/hooks/useBranches.js.map +1 -1
- package/dist/hooks/useBranchesByRegions.js +4 -3
- package/dist/hooks/useBranchesByRegions.js.map +1 -1
- package/dist/hooks/useLeadFormData.js +1 -1
- package/dist/hooks/useLeadFormData.js.map +1 -1
- package/dist/hooks/useLocation.js +2 -1
- package/dist/hooks/useLocation.js.map +1 -1
- package/dist/hooks/useRegions.js +2 -1
- package/dist/hooks/useRegions.js.map +1 -1
- package/dist/ui-kit/CaptchaDialog/CaptchaDialog.js +4 -4
- package/dist/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/dist/ui-kit/CaptchaDialog/handleCheckCaptcha.d.ts +8 -0
- package/dist/ui-kit/CaptchaDialog/handleCheckCaptcha.js +16 -0
- package/dist/ui-kit/CaptchaDialog/handleCheckCaptcha.js.map +1 -0
- package/dist/ui-kit/CaptchaDialog/handleCreateCaptcha.d.ts +1 -0
- package/dist/ui-kit/CaptchaDialog/handleCreateCaptcha.js +9 -0
- package/dist/ui-kit/CaptchaDialog/handleCreateCaptcha.js.map +1 -0
- package/dist/ui-kit/Checkbox/getDocument.js +3 -3
- package/dist/ui-kit/Checkbox/getDocument.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/LocalitiesField.js +4 -3
- package/dist/ui-kit/FormField/Fields/LocalitiesField.js.map +1 -1
- package/dist/ui-kit/FormField/constants.d.ts +0 -1
- package/dist/ui-kit/FormField/constants.js +1 -2
- package/dist/ui-kit/FormField/constants.js.map +1 -1
- package/dist/ui-kit/InfoCard/InfoCard.js +1 -1
- package/dist/ui-kit/InfoCard/InfoCard.js.map +1 -1
- package/dist/ui-kit/VerifyPhoneDialog/handleSendCode.js +2 -2
- package/dist/ui-kit/VerifyPhoneDialog/handleSendCode.js.map +1 -1
- package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +2 -2
- package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/lib/api/FileStorage.js +1 -1
- package/lib/api/FileStorage.js.map +1 -1
- package/lib/api/LeadServiceAPI.js +2 -1
- package/lib/api/LeadServiceAPI.js.map +1 -1
- package/lib/api/OutServiceAPI/OutServiceAPI.d.ts +8 -0
- package/lib/api/OutServiceAPI/OutServiceAPI.js +9 -0
- package/lib/api/OutServiceAPI/OutServiceAPI.js.map +1 -0
- package/lib/api/RetailAPI/StatusType.d.ts +1 -0
- package/lib/api/RetailAPI/StatusType.js +2 -0
- package/lib/api/RetailAPI/StatusType.js.map +1 -0
- package/lib/api/RetailAPI/checkCaptcha.d.ts +4 -0
- package/lib/api/RetailAPI/checkCaptcha.js +3 -0
- package/lib/api/RetailAPI/checkCaptcha.js.map +1 -0
- package/lib/api/RetailAPI/checkCode.d.ts +12 -0
- package/lib/api/RetailAPI/checkCode.js +7 -0
- package/lib/api/RetailAPI/checkCode.js.map +1 -0
- package/lib/api/RetailAPI/createCaptcha.d.ts +1 -0
- package/lib/api/RetailAPI/createCaptcha.js +3 -0
- package/lib/api/RetailAPI/createCaptcha.js.map +1 -0
- package/lib/api/RetailAPI/createDraftTask.d.ts +9 -0
- package/lib/api/RetailAPI/createDraftTask.js +3 -0
- package/lib/api/RetailAPI/createDraftTask.js.map +1 -0
- package/lib/api/RetailAPI/createUserProfile.d.ts +9 -0
- package/lib/api/RetailAPI/createUserProfile.js +3 -0
- package/lib/api/RetailAPI/createUserProfile.js.map +1 -0
- package/lib/api/RetailAPI/doRequest.d.ts +1 -0
- package/lib/api/RetailAPI/doRequest.js +20 -0
- package/lib/api/RetailAPI/doRequest.js.map +1 -0
- package/lib/api/RetailAPI/feedbackById.d.ts +1 -0
- package/lib/api/RetailAPI/feedbackById.js +6 -0
- package/lib/api/RetailAPI/feedbackById.js.map +1 -0
- package/lib/api/RetailAPI/sendCode.d.ts +10 -0
- package/lib/api/RetailAPI/sendCode.js +3 -0
- package/lib/api/RetailAPI/sendCode.js.map +1 -0
- package/lib/api/RetailAPI/updateUserProfile.d.ts +20 -0
- package/lib/api/RetailAPI/updateUserProfile.js +3 -0
- package/lib/api/RetailAPI/updateUserProfile.js.map +1 -0
- package/lib/api/RetailAPI/updateUserTask.d.ts +36 -0
- package/lib/api/RetailAPI/updateUserTask.js +3 -0
- package/lib/api/RetailAPI/updateUserTask.js.map +1 -0
- package/{bundle/api/RetailApi → lib/api/RetailAPI}/utils/getUpdateUserProfile.d.ts +1 -1
- package/lib/api/{RetailApi → RetailAPI}/utils/getUpdateUserProfile.js.map +1 -1
- package/lib/api/RetailAPI/utils/getUpdateUserTask.d.ts +9 -0
- package/lib/api/{RetailApi → RetailAPI}/utils/getUpdateUserTask.js +7 -8
- package/lib/api/RetailAPI/utils/getUpdateUserTask.js.map +1 -0
- package/lib/api/apiBaseUrl.d.ts +1 -0
- package/lib/api/apiBaseUrl.js +2 -0
- package/lib/api/apiBaseUrl.js.map +1 -0
- package/lib/api/dadataHints/dadataHints.js +2 -1
- package/lib/api/dadataHints/dadataHints.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/getRegionUrl.d.ts +1 -1
- package/lib/components/ApplicationForm/getRegionUrl.js +2 -1
- package/lib/components/ApplicationForm/getRegionUrl.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +10 -7
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/CalculatorBusinessDeposit/useBusinessDepositRates.js +2 -1
- package/lib/components/CalculatorBusinessDeposit/useBusinessDepositRates.js.map +1 -1
- package/lib/components/Depository/DepositoryItem.js +2 -1
- package/lib/components/Depository/DepositoryItem.js.map +1 -1
- package/lib/components/Depository/useDepository.js +2 -1
- package/lib/components/Depository/useDepository.js.map +1 -1
- package/lib/components/ExchangeRateTile/useFetchExchangeRateData.js +2 -1
- package/lib/components/ExchangeRateTile/useFetchExchangeRateData.js.map +1 -1
- package/lib/components/OfficesAtmsMap/useAtms.js +2 -1
- package/lib/components/OfficesAtmsMap/useAtms.js.map +1 -1
- package/lib/components/OfficesAtmsMap/useOffices.js +3 -2
- package/lib/components/OfficesAtmsMap/useOffices.js.map +1 -1
- package/lib/components/SafeDepositRental/useGetRegions.js +2 -1
- package/lib/components/SafeDepositRental/useGetRegions.js.map +1 -1
- package/lib/components/SafeDepositRental/useSafeBoxes.js +2 -1
- package/lib/components/SafeDepositRental/useSafeBoxes.js.map +1 -1
- package/lib/hooks/useBranches.js +2 -1
- package/lib/hooks/useBranches.js.map +1 -1
- package/lib/hooks/useBranchesByRegions.js +4 -3
- package/lib/hooks/useBranchesByRegions.js.map +1 -1
- package/lib/hooks/useLeadFormData.js +1 -1
- package/lib/hooks/useLeadFormData.js.map +1 -1
- package/lib/hooks/useLocation.js +2 -1
- package/lib/hooks/useLocation.js.map +1 -1
- package/lib/hooks/useRegions.js +2 -1
- package/lib/hooks/useRegions.js.map +1 -1
- package/lib/ui-kit/CaptchaDialog/CaptchaDialog.js +4 -4
- package/lib/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/lib/ui-kit/CaptchaDialog/handleCheckCaptcha.d.ts +8 -0
- package/lib/ui-kit/CaptchaDialog/handleCheckCaptcha.js +13 -0
- package/lib/ui-kit/CaptchaDialog/handleCheckCaptcha.js.map +1 -0
- package/lib/ui-kit/CaptchaDialog/handleCreateCaptcha.d.ts +1 -0
- package/lib/ui-kit/CaptchaDialog/handleCreateCaptcha.js +6 -0
- package/lib/ui-kit/CaptchaDialog/handleCreateCaptcha.js.map +1 -0
- package/lib/ui-kit/Checkbox/getDocument.js +3 -3
- package/lib/ui-kit/Checkbox/getDocument.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/LocalitiesField.js +4 -3
- package/lib/ui-kit/FormField/Fields/LocalitiesField.js.map +1 -1
- package/lib/ui-kit/FormField/constants.d.ts +0 -1
- package/lib/ui-kit/FormField/constants.js +0 -1
- package/lib/ui-kit/FormField/constants.js.map +1 -1
- package/lib/ui-kit/InfoCard/InfoCard.js +1 -1
- package/lib/ui-kit/InfoCard/InfoCard.js.map +1 -1
- package/lib/ui-kit/VerifyPhoneDialog/handleSendCode.js +2 -2
- package/lib/ui-kit/VerifyPhoneDialog/handleSendCode.js.map +1 -1
- package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +2 -2
- package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/mobile/bundle/api/OutServiceAPI/OutServiceAPI.d.ts +8 -0
- package/mobile/bundle/api/RetailAPI/StatusType.d.ts +1 -0
- package/mobile/bundle/api/RetailAPI/checkCaptcha.d.ts +4 -0
- package/mobile/bundle/api/RetailAPI/checkCode.d.ts +12 -0
- package/mobile/bundle/api/RetailAPI/createCaptcha.d.ts +1 -0
- package/mobile/bundle/api/RetailAPI/createDraftTask.d.ts +9 -0
- package/mobile/bundle/api/RetailAPI/createUserProfile.d.ts +9 -0
- package/mobile/bundle/api/RetailAPI/doRequest.d.ts +1 -0
- package/mobile/bundle/api/RetailAPI/feedbackById.d.ts +1 -0
- package/mobile/bundle/api/RetailAPI/sendCode.d.ts +10 -0
- package/mobile/bundle/api/RetailAPI/updateUserProfile.d.ts +20 -0
- package/mobile/bundle/api/RetailAPI/updateUserTask.d.ts +36 -0
- package/mobile/bundle/api/{RetailApi → RetailAPI}/utils/getUpdateUserProfile.d.ts +1 -1
- package/mobile/bundle/api/RetailAPI/utils/getUpdateUserTask.d.ts +9 -0
- package/mobile/bundle/api/apiBaseUrl.d.ts +1 -0
- package/mobile/bundle/bundle.umd.js +106 -95
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/getRegionUrl.d.ts +1 -1
- package/mobile/bundle/ui-kit/CaptchaDialog/handleCheckCaptcha.d.ts +8 -0
- package/mobile/bundle/ui-kit/CaptchaDialog/handleCreateCaptcha.d.ts +1 -0
- package/mobile/bundle/ui-kit/FormField/constants.d.ts +0 -1
- package/mobile/dist/api/FileStorage.js +3 -3
- package/mobile/dist/api/FileStorage.js.map +1 -1
- package/mobile/dist/api/LeadServiceAPI.js +2 -1
- package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
- package/mobile/dist/api/OutServiceAPI/OutServiceAPI.d.ts +8 -0
- package/mobile/dist/api/OutServiceAPI/OutServiceAPI.js +12 -0
- package/mobile/dist/api/OutServiceAPI/OutServiceAPI.js.map +1 -0
- package/mobile/dist/api/RetailAPI/StatusType.d.ts +1 -0
- package/mobile/dist/api/{RetailApi/RetailApiTypes.js → RetailAPI/StatusType.js} +1 -1
- package/mobile/dist/api/RetailAPI/StatusType.js.map +1 -0
- package/mobile/dist/api/RetailAPI/checkCaptcha.d.ts +4 -0
- package/mobile/dist/api/RetailAPI/checkCaptcha.js +6 -0
- package/mobile/dist/api/RetailAPI/checkCaptcha.js.map +1 -0
- package/mobile/dist/api/RetailAPI/checkCode.d.ts +12 -0
- package/mobile/dist/api/RetailAPI/checkCode.js +10 -0
- package/mobile/dist/api/RetailAPI/checkCode.js.map +1 -0
- package/mobile/dist/api/RetailAPI/createCaptcha.d.ts +1 -0
- package/mobile/dist/api/RetailAPI/createCaptcha.js +6 -0
- package/mobile/dist/api/RetailAPI/createCaptcha.js.map +1 -0
- package/mobile/dist/api/RetailAPI/createDraftTask.d.ts +9 -0
- package/mobile/dist/api/RetailAPI/createDraftTask.js +6 -0
- package/mobile/dist/api/RetailAPI/createDraftTask.js.map +1 -0
- package/mobile/dist/api/RetailAPI/createUserProfile.d.ts +9 -0
- package/mobile/dist/api/RetailAPI/createUserProfile.js +6 -0
- package/mobile/dist/api/RetailAPI/createUserProfile.js.map +1 -0
- package/mobile/dist/api/RetailAPI/doRequest.d.ts +1 -0
- package/mobile/dist/api/RetailAPI/doRequest.js +23 -0
- package/mobile/dist/api/RetailAPI/doRequest.js.map +1 -0
- package/mobile/dist/api/RetailAPI/feedbackById.d.ts +1 -0
- package/mobile/dist/api/RetailAPI/feedbackById.js +9 -0
- package/mobile/dist/api/RetailAPI/feedbackById.js.map +1 -0
- package/mobile/dist/api/RetailAPI/sendCode.d.ts +10 -0
- package/mobile/dist/api/RetailAPI/sendCode.js +6 -0
- package/mobile/dist/api/RetailAPI/sendCode.js.map +1 -0
- package/mobile/dist/api/RetailAPI/updateUserProfile.d.ts +20 -0
- package/mobile/dist/api/RetailAPI/updateUserProfile.js +6 -0
- package/mobile/dist/api/RetailAPI/updateUserProfile.js.map +1 -0
- package/mobile/dist/api/RetailAPI/updateUserTask.d.ts +36 -0
- package/mobile/dist/api/RetailAPI/updateUserTask.js +6 -0
- package/mobile/dist/api/RetailAPI/updateUserTask.js.map +1 -0
- package/mobile/dist/api/RetailAPI/utils/getUpdateUserProfile.d.ts +3 -0
- package/mobile/dist/api/{RetailApi → RetailAPI}/utils/getUpdateUserProfile.js.map +1 -1
- package/mobile/dist/api/RetailAPI/utils/getUpdateUserTask.d.ts +9 -0
- package/mobile/dist/api/{RetailApi → RetailAPI}/utils/getUpdateUserTask.js +7 -8
- package/mobile/dist/api/RetailAPI/utils/getUpdateUserTask.js.map +1 -0
- package/mobile/dist/api/apiBaseUrl.d.ts +1 -0
- package/mobile/dist/api/apiBaseUrl.js +4 -0
- package/mobile/dist/api/apiBaseUrl.js.map +1 -0
- package/mobile/dist/api/dadataHints/dadataHints.js +2 -1
- package/mobile/dist/api/dadataHints/dadataHints.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/getRegionUrl.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/getRegionUrl.js +3 -2
- package/mobile/dist/components/ApplicationForm/getRegionUrl.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +10 -7
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/CalculatorBusinessDeposit/useBusinessDepositRates.js +2 -1
- package/mobile/dist/components/CalculatorBusinessDeposit/useBusinessDepositRates.js.map +1 -1
- package/mobile/dist/components/Depository/DepositoryItem.js +2 -1
- package/mobile/dist/components/Depository/DepositoryItem.js.map +1 -1
- package/mobile/dist/components/Depository/useDepository.js +2 -1
- package/mobile/dist/components/Depository/useDepository.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/useFetchExchangeRateData.js +2 -1
- package/mobile/dist/components/ExchangeRateTile/useFetchExchangeRateData.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/useAtms.js +2 -1
- package/mobile/dist/components/OfficesAtmsMap/useAtms.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/useOffices.js +3 -2
- package/mobile/dist/components/OfficesAtmsMap/useOffices.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/useGetRegions.js +2 -1
- package/mobile/dist/components/SafeDepositRental/useGetRegions.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/useSafeBoxes.js +2 -1
- package/mobile/dist/components/SafeDepositRental/useSafeBoxes.js.map +1 -1
- package/mobile/dist/hooks/useBranches.js +2 -1
- package/mobile/dist/hooks/useBranches.js.map +1 -1
- package/mobile/dist/hooks/useBranchesByRegions.js +4 -3
- package/mobile/dist/hooks/useBranchesByRegions.js.map +1 -1
- package/mobile/dist/hooks/useLeadFormData.js +1 -1
- package/mobile/dist/hooks/useLeadFormData.js.map +1 -1
- package/mobile/dist/hooks/useLocation.js +2 -1
- package/mobile/dist/hooks/useLocation.js.map +1 -1
- package/mobile/dist/hooks/useRegions.js +2 -1
- package/mobile/dist/hooks/useRegions.js.map +1 -1
- package/mobile/dist/ui-kit/CaptchaDialog/CaptchaDialog.js +4 -4
- package/mobile/dist/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/mobile/dist/ui-kit/CaptchaDialog/handleCheckCaptcha.d.ts +8 -0
- package/mobile/dist/ui-kit/CaptchaDialog/handleCheckCaptcha.js +16 -0
- package/mobile/dist/ui-kit/CaptchaDialog/handleCheckCaptcha.js.map +1 -0
- package/mobile/dist/ui-kit/CaptchaDialog/handleCreateCaptcha.d.ts +1 -0
- package/mobile/dist/ui-kit/CaptchaDialog/handleCreateCaptcha.js +9 -0
- package/mobile/dist/ui-kit/CaptchaDialog/handleCreateCaptcha.js.map +1 -0
- package/mobile/dist/ui-kit/Checkbox/getDocument.js +3 -3
- package/mobile/dist/ui-kit/Checkbox/getDocument.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/LocalitiesField.js +4 -3
- package/mobile/dist/ui-kit/FormField/Fields/LocalitiesField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/constants.d.ts +0 -1
- package/mobile/dist/ui-kit/FormField/constants.js +1 -2
- package/mobile/dist/ui-kit/FormField/constants.js.map +1 -1
- package/mobile/dist/ui-kit/InfoCard/InfoCard.js +1 -1
- package/mobile/dist/ui-kit/InfoCard/InfoCard.js.map +1 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/handleSendCode.js +2 -2
- package/mobile/dist/ui-kit/VerifyPhoneDialog/handleSendCode.js.map +1 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +2 -2
- package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/mobile/lib/api/FileStorage.js +1 -1
- package/mobile/lib/api/FileStorage.js.map +1 -1
- package/mobile/lib/api/LeadServiceAPI.js +2 -1
- package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
- package/mobile/lib/api/OutServiceAPI/OutServiceAPI.d.ts +8 -0
- package/mobile/lib/api/OutServiceAPI/OutServiceAPI.js +9 -0
- package/mobile/lib/api/OutServiceAPI/OutServiceAPI.js.map +1 -0
- package/mobile/lib/api/RetailAPI/StatusType.d.ts +1 -0
- package/mobile/lib/api/RetailAPI/StatusType.js +2 -0
- package/mobile/lib/api/RetailAPI/StatusType.js.map +1 -0
- package/mobile/lib/api/RetailAPI/checkCaptcha.d.ts +4 -0
- package/mobile/lib/api/RetailAPI/checkCaptcha.js +3 -0
- package/mobile/lib/api/RetailAPI/checkCaptcha.js.map +1 -0
- package/mobile/lib/api/RetailAPI/checkCode.d.ts +12 -0
- package/mobile/lib/api/RetailAPI/checkCode.js +7 -0
- package/mobile/lib/api/RetailAPI/checkCode.js.map +1 -0
- package/mobile/lib/api/RetailAPI/createCaptcha.d.ts +1 -0
- package/mobile/lib/api/RetailAPI/createCaptcha.js +3 -0
- package/mobile/lib/api/RetailAPI/createCaptcha.js.map +1 -0
- package/mobile/lib/api/RetailAPI/createDraftTask.d.ts +9 -0
- package/mobile/lib/api/RetailAPI/createDraftTask.js +3 -0
- package/mobile/lib/api/RetailAPI/createDraftTask.js.map +1 -0
- package/mobile/lib/api/RetailAPI/createUserProfile.d.ts +9 -0
- package/mobile/lib/api/RetailAPI/createUserProfile.js +3 -0
- package/mobile/lib/api/RetailAPI/createUserProfile.js.map +1 -0
- package/mobile/lib/api/RetailAPI/doRequest.d.ts +1 -0
- package/mobile/lib/api/RetailAPI/doRequest.js +20 -0
- package/mobile/lib/api/RetailAPI/doRequest.js.map +1 -0
- package/mobile/lib/api/RetailAPI/feedbackById.d.ts +1 -0
- package/mobile/lib/api/RetailAPI/feedbackById.js +6 -0
- package/mobile/lib/api/RetailAPI/feedbackById.js.map +1 -0
- package/mobile/lib/api/RetailAPI/sendCode.d.ts +10 -0
- package/mobile/lib/api/RetailAPI/sendCode.js +3 -0
- package/mobile/lib/api/RetailAPI/sendCode.js.map +1 -0
- package/mobile/lib/api/RetailAPI/updateUserProfile.d.ts +20 -0
- package/mobile/lib/api/RetailAPI/updateUserProfile.js +3 -0
- package/mobile/lib/api/RetailAPI/updateUserProfile.js.map +1 -0
- package/mobile/lib/api/RetailAPI/updateUserTask.d.ts +36 -0
- package/mobile/lib/api/RetailAPI/updateUserTask.js +3 -0
- package/mobile/lib/api/RetailAPI/updateUserTask.js.map +1 -0
- package/mobile/lib/api/RetailAPI/utils/getUpdateUserProfile.d.ts +3 -0
- package/mobile/lib/api/{RetailApi → RetailAPI}/utils/getUpdateUserProfile.js.map +1 -1
- package/mobile/lib/api/RetailAPI/utils/getUpdateUserTask.d.ts +9 -0
- package/mobile/lib/api/{RetailApi → RetailAPI}/utils/getUpdateUserTask.js +7 -8
- package/mobile/lib/api/RetailAPI/utils/getUpdateUserTask.js.map +1 -0
- package/mobile/lib/api/apiBaseUrl.d.ts +1 -0
- package/mobile/lib/api/apiBaseUrl.js +2 -0
- package/mobile/lib/api/apiBaseUrl.js.map +1 -0
- package/mobile/lib/api/dadataHints/dadataHints.js +2 -1
- package/mobile/lib/api/dadataHints/dadataHints.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/getRegionUrl.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/getRegionUrl.js +2 -1
- package/mobile/lib/components/ApplicationForm/getRegionUrl.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +10 -7
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/CalculatorBusinessDeposit/useBusinessDepositRates.js +2 -1
- package/mobile/lib/components/CalculatorBusinessDeposit/useBusinessDepositRates.js.map +1 -1
- package/mobile/lib/components/Depository/DepositoryItem.js +2 -1
- package/mobile/lib/components/Depository/DepositoryItem.js.map +1 -1
- package/mobile/lib/components/Depository/useDepository.js +2 -1
- package/mobile/lib/components/Depository/useDepository.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/useFetchExchangeRateData.js +2 -1
- package/mobile/lib/components/ExchangeRateTile/useFetchExchangeRateData.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/useAtms.js +2 -1
- package/mobile/lib/components/OfficesAtmsMap/useAtms.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/useOffices.js +3 -2
- package/mobile/lib/components/OfficesAtmsMap/useOffices.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/useGetRegions.js +2 -1
- package/mobile/lib/components/SafeDepositRental/useGetRegions.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/useSafeBoxes.js +2 -1
- package/mobile/lib/components/SafeDepositRental/useSafeBoxes.js.map +1 -1
- package/mobile/lib/hooks/useBranches.js +2 -1
- package/mobile/lib/hooks/useBranches.js.map +1 -1
- package/mobile/lib/hooks/useBranchesByRegions.js +4 -3
- package/mobile/lib/hooks/useBranchesByRegions.js.map +1 -1
- package/mobile/lib/hooks/useLeadFormData.js +1 -1
- package/mobile/lib/hooks/useLeadFormData.js.map +1 -1
- package/mobile/lib/hooks/useLocation.js +2 -1
- package/mobile/lib/hooks/useLocation.js.map +1 -1
- package/mobile/lib/hooks/useRegions.js +2 -1
- package/mobile/lib/hooks/useRegions.js.map +1 -1
- package/mobile/lib/ui-kit/CaptchaDialog/CaptchaDialog.js +4 -4
- package/mobile/lib/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/mobile/lib/ui-kit/CaptchaDialog/handleCheckCaptcha.d.ts +8 -0
- package/mobile/lib/ui-kit/CaptchaDialog/handleCheckCaptcha.js +13 -0
- package/mobile/lib/ui-kit/CaptchaDialog/handleCheckCaptcha.js.map +1 -0
- package/mobile/lib/ui-kit/CaptchaDialog/handleCreateCaptcha.d.ts +1 -0
- package/mobile/lib/ui-kit/CaptchaDialog/handleCreateCaptcha.js +6 -0
- package/mobile/lib/ui-kit/CaptchaDialog/handleCreateCaptcha.js.map +1 -0
- package/mobile/lib/ui-kit/Checkbox/getDocument.js +3 -3
- package/mobile/lib/ui-kit/Checkbox/getDocument.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/LocalitiesField.js +4 -3
- package/mobile/lib/ui-kit/FormField/Fields/LocalitiesField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/constants.d.ts +0 -1
- package/mobile/lib/ui-kit/FormField/constants.js +0 -1
- package/mobile/lib/ui-kit/FormField/constants.js.map +1 -1
- package/mobile/lib/ui-kit/InfoCard/InfoCard.js +1 -1
- package/mobile/lib/ui-kit/InfoCard/InfoCard.js.map +1 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/handleSendCode.js +2 -2
- package/mobile/lib/ui-kit/VerifyPhoneDialog/handleSendCode.js.map +1 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +2 -2
- package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/mobile/src/api/FileStorage.ts +2 -1
- package/mobile/src/api/LeadServiceAPI.ts +2 -1
- package/mobile/src/api/OutServiceAPI/OutServiceAPI.ts +20 -0
- package/mobile/src/api/RetailAPI/StatusType.ts +1 -0
- package/mobile/src/api/RetailAPI/checkCaptcha.ts +8 -0
- package/mobile/src/api/RetailAPI/checkCode.ts +22 -0
- package/mobile/src/api/RetailAPI/createCaptcha.ts +4 -0
- package/mobile/src/api/RetailAPI/createDraftTask.ts +14 -0
- package/mobile/src/api/RetailAPI/createUserProfile.ts +13 -0
- package/mobile/src/api/RetailAPI/doRequest.ts +31 -0
- package/mobile/src/api/RetailAPI/feedbackById.ts +10 -0
- package/mobile/src/api/RetailAPI/sendCode.ts +12 -0
- package/mobile/src/api/RetailAPI/updateUserProfile.ts +24 -0
- package/mobile/src/api/RetailAPI/updateUserTask.ts +41 -0
- package/mobile/src/api/{RetailApi → RetailAPI}/utils/getUpdateUserProfile.ts +1 -1
- package/mobile/src/api/{RetailApi → RetailAPI}/utils/getUpdateUserTask.ts +20 -14
- package/mobile/src/api/apiBaseUrl.ts +1 -0
- package/mobile/src/api/dadataHints/dadataHints.ts +2 -1
- package/mobile/src/components/ApplicationForm/getRegionUrl.tsx +2 -1
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +11 -8
- package/mobile/src/components/CalculatorBusinessDeposit/useBusinessDepositRates.ts +2 -1
- package/mobile/src/components/Depository/DepositoryItem.tsx +2 -1
- package/mobile/src/components/Depository/useDepository.ts +3 -1
- package/mobile/src/components/ExchangeRateTile/useFetchExchangeRateData.ts +2 -1
- package/mobile/src/components/OfficesAtmsMap/useAtms.ts +2 -1
- package/mobile/src/components/OfficesAtmsMap/useOffices.ts +3 -2
- package/mobile/src/components/SafeDepositRental/useGetRegions.ts +2 -1
- package/mobile/src/components/SafeDepositRental/useSafeBoxes.ts +2 -1
- package/mobile/src/hooks/useBranches.ts +2 -1
- package/mobile/src/hooks/useBranchesByRegions.ts +4 -3
- package/mobile/src/hooks/useLeadFormData.ts +3 -1
- package/mobile/src/hooks/useLocation.ts +2 -1
- package/mobile/src/hooks/useRegions.ts +2 -1
- package/mobile/src/ui-kit/CaptchaDialog/CaptchaDialog.tsx +6 -6
- package/mobile/src/ui-kit/CaptchaDialog/{checkCaptcha.ts → handleCheckCaptcha.ts} +5 -5
- package/mobile/src/ui-kit/CaptchaDialog/handleCreateCaptcha.ts +9 -0
- package/mobile/src/ui-kit/Checkbox/getDocument.ts +3 -3
- package/mobile/src/ui-kit/FormField/Fields/LocalitiesField.tsx +6 -3
- package/mobile/src/ui-kit/FormField/constants.tsx +0 -2
- package/mobile/src/ui-kit/InfoCard/InfoCard.tsx +9 -7
- package/mobile/src/ui-kit/VerifyPhoneDialog/handleSendCode.ts +2 -2
- package/mobile/src/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +2 -2
- package/package.json +1 -1
- package/src/api/FileStorage.ts +2 -1
- package/src/api/LeadServiceAPI.ts +2 -1
- package/src/api/OutServiceAPI/OutServiceAPI.ts +20 -0
- package/src/api/RetailAPI/StatusType.ts +1 -0
- package/src/api/RetailAPI/checkCaptcha.ts +8 -0
- package/src/api/RetailAPI/checkCode.ts +22 -0
- package/src/api/RetailAPI/createCaptcha.ts +4 -0
- package/src/api/RetailAPI/createDraftTask.ts +14 -0
- package/src/api/RetailAPI/createUserProfile.ts +13 -0
- package/src/api/RetailAPI/doRequest.ts +31 -0
- package/src/api/RetailAPI/feedbackById.ts +10 -0
- package/src/api/RetailAPI/sendCode.ts +12 -0
- package/src/api/RetailAPI/updateUserProfile.ts +24 -0
- package/src/api/RetailAPI/updateUserTask.ts +41 -0
- package/src/api/{RetailApi → RetailAPI}/utils/getUpdateUserProfile.ts +1 -1
- package/src/api/{RetailApi → RetailAPI}/utils/getUpdateUserTask.ts +20 -14
- package/src/api/apiBaseUrl.ts +1 -0
- package/src/api/dadataHints/dadataHints.ts +2 -1
- package/src/components/ApplicationForm/getRegionUrl.tsx +2 -1
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +11 -8
- package/src/components/CalculatorBusinessDeposit/useBusinessDepositRates.ts +2 -1
- package/src/components/Depository/DepositoryItem.tsx +2 -1
- package/src/components/Depository/useDepository.ts +3 -1
- package/src/components/ExchangeRateTile/useFetchExchangeRateData.ts +2 -1
- package/src/components/OfficesAtmsMap/useAtms.ts +2 -1
- package/src/components/OfficesAtmsMap/useOffices.ts +3 -2
- package/src/components/SafeDepositRental/useGetRegions.ts +2 -1
- package/src/components/SafeDepositRental/useSafeBoxes.ts +2 -1
- package/src/hooks/useBranches.ts +2 -1
- package/src/hooks/useBranchesByRegions.ts +4 -3
- package/src/hooks/useLeadFormData.ts +3 -1
- package/src/hooks/useLocation.ts +2 -1
- package/src/hooks/useRegions.ts +2 -1
- package/src/ui-kit/CaptchaDialog/CaptchaDialog.tsx +6 -6
- package/src/ui-kit/CaptchaDialog/{checkCaptcha.ts → handleCheckCaptcha.ts} +5 -5
- package/src/ui-kit/CaptchaDialog/handleCreateCaptcha.ts +9 -0
- package/src/ui-kit/Checkbox/getDocument.ts +3 -3
- package/src/ui-kit/FormField/Fields/LocalitiesField.tsx +6 -3
- package/src/ui-kit/FormField/constants.tsx +0 -2
- package/src/ui-kit/InfoCard/InfoCard.fixture.tsx +3 -3
- package/src/ui-kit/InfoCard/InfoCard.tsx +9 -7
- package/src/ui-kit/VerifyPhoneDialog/handleSendCode.ts +2 -2
- package/src/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +2 -2
- package/bundle/api/RetailApi/RetailApi.d.ts +0 -12
- package/bundle/api/RetailApi/RetailApiTypes.d.ts +0 -86
- package/bundle/api/RetailApi/utils/getUpdateUserTask.d.ts +0 -2
- package/bundle/ui-kit/CaptchaDialog/checkCaptcha.d.ts +0 -8
- package/bundle/ui-kit/CaptchaDialog/createCaptcha.d.ts +0 -1
- package/dist/api/RetailApi/RetailApi.d.ts +0 -12
- package/dist/api/RetailApi/RetailApi.js +0 -44
- package/dist/api/RetailApi/RetailApi.js.map +0 -1
- package/dist/api/RetailApi/RetailApiTypes.d.ts +0 -86
- package/dist/api/RetailApi/RetailApiTypes.js.map +0 -1
- package/dist/api/RetailApi/utils/getUpdateUserTask.d.ts +0 -2
- package/dist/api/RetailApi/utils/getUpdateUserTask.js.map +0 -1
- package/dist/ui-kit/CaptchaDialog/checkCaptcha.d.ts +0 -8
- package/dist/ui-kit/CaptchaDialog/checkCaptcha.js +0 -16
- package/dist/ui-kit/CaptchaDialog/checkCaptcha.js.map +0 -1
- package/dist/ui-kit/CaptchaDialog/createCaptcha.d.ts +0 -1
- package/dist/ui-kit/CaptchaDialog/createCaptcha.js +0 -9
- package/dist/ui-kit/CaptchaDialog/createCaptcha.js.map +0 -1
- package/lib/api/RetailApi/RetailApi.d.ts +0 -12
- package/lib/api/RetailApi/RetailApi.js +0 -42
- package/lib/api/RetailApi/RetailApi.js.map +0 -1
- package/lib/api/RetailApi/RetailApiTypes.d.ts +0 -86
- package/lib/api/RetailApi/RetailApiTypes.js +0 -2
- package/lib/api/RetailApi/RetailApiTypes.js.map +0 -1
- package/lib/api/RetailApi/utils/getUpdateUserTask.d.ts +0 -2
- package/lib/api/RetailApi/utils/getUpdateUserTask.js.map +0 -1
- package/lib/ui-kit/CaptchaDialog/checkCaptcha.d.ts +0 -8
- package/lib/ui-kit/CaptchaDialog/checkCaptcha.js +0 -13
- package/lib/ui-kit/CaptchaDialog/checkCaptcha.js.map +0 -1
- package/lib/ui-kit/CaptchaDialog/createCaptcha.d.ts +0 -1
- package/lib/ui-kit/CaptchaDialog/createCaptcha.js +0 -6
- package/lib/ui-kit/CaptchaDialog/createCaptcha.js.map +0 -1
- package/mobile/bundle/api/RetailApi/RetailApi.d.ts +0 -12
- package/mobile/bundle/api/RetailApi/RetailApiTypes.d.ts +0 -86
- package/mobile/bundle/api/RetailApi/utils/getUpdateUserTask.d.ts +0 -2
- package/mobile/bundle/ui-kit/CaptchaDialog/checkCaptcha.d.ts +0 -8
- package/mobile/bundle/ui-kit/CaptchaDialog/createCaptcha.d.ts +0 -1
- package/mobile/dist/api/RetailApi/RetailApi.d.ts +0 -12
- package/mobile/dist/api/RetailApi/RetailApi.js +0 -44
- package/mobile/dist/api/RetailApi/RetailApi.js.map +0 -1
- package/mobile/dist/api/RetailApi/RetailApiTypes.d.ts +0 -86
- package/mobile/dist/api/RetailApi/RetailApiTypes.js.map +0 -1
- package/mobile/dist/api/RetailApi/utils/getUpdateUserProfile.d.ts +0 -3
- package/mobile/dist/api/RetailApi/utils/getUpdateUserTask.d.ts +0 -2
- package/mobile/dist/api/RetailApi/utils/getUpdateUserTask.js.map +0 -1
- package/mobile/dist/ui-kit/CaptchaDialog/checkCaptcha.d.ts +0 -8
- package/mobile/dist/ui-kit/CaptchaDialog/checkCaptcha.js +0 -16
- package/mobile/dist/ui-kit/CaptchaDialog/checkCaptcha.js.map +0 -1
- package/mobile/dist/ui-kit/CaptchaDialog/createCaptcha.d.ts +0 -1
- package/mobile/dist/ui-kit/CaptchaDialog/createCaptcha.js +0 -9
- package/mobile/dist/ui-kit/CaptchaDialog/createCaptcha.js.map +0 -1
- package/mobile/lib/api/RetailApi/RetailApi.d.ts +0 -12
- package/mobile/lib/api/RetailApi/RetailApi.js +0 -42
- package/mobile/lib/api/RetailApi/RetailApi.js.map +0 -1
- package/mobile/lib/api/RetailApi/RetailApiTypes.d.ts +0 -86
- package/mobile/lib/api/RetailApi/RetailApiTypes.js +0 -2
- package/mobile/lib/api/RetailApi/RetailApiTypes.js.map +0 -1
- package/mobile/lib/api/RetailApi/utils/getUpdateUserProfile.d.ts +0 -3
- package/mobile/lib/api/RetailApi/utils/getUpdateUserTask.d.ts +0 -2
- package/mobile/lib/api/RetailApi/utils/getUpdateUserTask.js.map +0 -1
- package/mobile/lib/ui-kit/CaptchaDialog/checkCaptcha.d.ts +0 -8
- package/mobile/lib/ui-kit/CaptchaDialog/checkCaptcha.js +0 -13
- package/mobile/lib/ui-kit/CaptchaDialog/checkCaptcha.js.map +0 -1
- package/mobile/lib/ui-kit/CaptchaDialog/createCaptcha.d.ts +0 -1
- package/mobile/lib/ui-kit/CaptchaDialog/createCaptcha.js +0 -6
- package/mobile/lib/ui-kit/CaptchaDialog/createCaptcha.js.map +0 -1
- package/mobile/src/api/RetailApi/RetailApi.ts +0 -69
- package/mobile/src/api/RetailApi/RetailApiTypes.ts +0 -95
- package/mobile/src/ui-kit/CaptchaDialog/createCaptcha.ts +0 -6
- package/src/api/RetailApi/RetailApi.ts +0 -69
- package/src/api/RetailApi/RetailApiTypes.ts +0 -95
- package/src/ui-kit/CaptchaDialog/createCaptcha.ts +0 -6
- /package/dist/api/{RetailApi → RetailAPI}/utils/getUpdateUserProfile.js +0 -0
- /package/lib/api/{RetailApi → RetailAPI}/utils/getUpdateUserProfile.js +0 -0
- /package/mobile/dist/api/{RetailApi → RetailAPI}/utils/getUpdateUserProfile.js +0 -0
- /package/mobile/lib/api/{RetailApi → RetailAPI}/utils/getUpdateUserProfile.js +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare type CreateDraftTaskBody = {
|
|
2
|
+
profileId: number;
|
|
3
|
+
programId: string;
|
|
4
|
+
};
|
|
5
|
+
export declare type CreateDraftTaskResponse = {
|
|
6
|
+
taskId: number;
|
|
7
|
+
participantId: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const createDraftTask: (body: CreateDraftTaskBody) => Promise<CreateDraftTaskResponse>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function doRequest<R>(url: string, method: 'POST' | 'GET' | 'PUT', body?: any): Promise<R>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const feedbackById: (id: number) => Promise<Blob | MediaSource>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type StatusType } from './StatusType';
|
|
2
|
+
export declare type SendCodeBody = {
|
|
3
|
+
phoneNumber: string;
|
|
4
|
+
smsCodesSetName: {
|
|
5
|
+
key: 'AUTHENTICATION' | 'SEND_TASK';
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export declare const sendCode: (body: SendCodeBody) => Promise<StatusType | {
|
|
9
|
+
errorMessage: string;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type CreateUserProfileResponse } from './updateUserTask';
|
|
2
|
+
export declare type UpdateUserProfileBody = {
|
|
3
|
+
profile: {
|
|
4
|
+
id: number;
|
|
5
|
+
phone?: string;
|
|
6
|
+
email?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
surname?: string;
|
|
9
|
+
midname?: string;
|
|
10
|
+
birthDate?: string;
|
|
11
|
+
processPersonalDataLeadFlg?: boolean;
|
|
12
|
+
consentProviderFlg?: boolean;
|
|
13
|
+
consentPfrFlg?: boolean;
|
|
14
|
+
consentPhotoFlg?: boolean;
|
|
15
|
+
consentAssignmentClaimsFlg?: boolean;
|
|
16
|
+
consentCollectionFlg?: boolean;
|
|
17
|
+
consentInformFlg?: boolean;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare const updateUserProfile: (body: UpdateUserProfileBody) => Promise<CreateUserProfileResponse>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare type UpdateUserTaskBody = {
|
|
2
|
+
sendToBank: boolean;
|
|
3
|
+
taskKind: 'SHORT' | 'FULL' | 'UNITED';
|
|
4
|
+
task: {
|
|
5
|
+
taskSource: string;
|
|
6
|
+
id: number;
|
|
7
|
+
participants: [
|
|
8
|
+
{
|
|
9
|
+
birthDate: string;
|
|
10
|
+
id: number;
|
|
11
|
+
midname: string;
|
|
12
|
+
name: string;
|
|
13
|
+
surname: string;
|
|
14
|
+
profile: {
|
|
15
|
+
id: number;
|
|
16
|
+
};
|
|
17
|
+
participantContacts: Array<{
|
|
18
|
+
contactTypeCd: {
|
|
19
|
+
key: 'EMAIL' | 'MAIN_PHONE';
|
|
20
|
+
};
|
|
21
|
+
value: string;
|
|
22
|
+
}>;
|
|
23
|
+
roleCd: {
|
|
24
|
+
key: string;
|
|
25
|
+
value: string;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
];
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare type CreateUserProfileResponse = {
|
|
32
|
+
profile: {
|
|
33
|
+
id: number;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export declare const updateUserTask: (body: UpdateUserTaskBody) => Promise<CreateUserProfileResponse>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type FormState } from '../../../components/ApplicationLeadForm/getInitialFormState';
|
|
2
|
-
import { type UpdateUserProfileBody } from '../
|
|
2
|
+
import { type UpdateUserProfileBody } from '../updateUserProfile';
|
|
3
3
|
export declare const getUpdateUserProfileData: (profileId: number, formData: FormState) => UpdateUserProfileBody;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type UpdateUserTaskBody } from '../updateUserTask';
|
|
2
|
+
declare type getUpdateUserTaskDataType = {
|
|
3
|
+
participantId: number;
|
|
4
|
+
taskId: number;
|
|
5
|
+
profileId: number;
|
|
6
|
+
formData?: Record<string, any>;
|
|
7
|
+
};
|
|
8
|
+
export declare const getUpdateUserTaskData: ({ participantId, taskId, profileId, formData, }: getUpdateUserTaskDataType) => UpdateUserTaskBody;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const API_BASE_URI = "/api/v1";
|
|
@@ -863,11 +863,13 @@
|
|
|
863
863
|
|
|
864
864
|
const formatPhone = (phone) => phone?.replace(/[^+\d]/g, '');
|
|
865
865
|
|
|
866
|
+
const API_BASE_URI = '/api/v1';
|
|
867
|
+
|
|
866
868
|
function LeadServiceAPI() {
|
|
867
869
|
async function send(body, isIndividualType = false) {
|
|
868
870
|
const { typeForm, region, phone = '', email, birthday, desiredMeetingDate, inn, addressBranch, secondaryPhone = '', bankEmpolee, applicationDate, serviceDirection, ...staticBody } = body;
|
|
869
871
|
const isNaturalPerson = isIndividualType && serviceDirection !== 'Юридическое лицо / ИП';
|
|
870
|
-
const url = isNaturalPerson ? '/
|
|
872
|
+
const url = `${API_BASE_URI}${isNaturalPerson ? '/lead' : '/sendcorporatelead'}`;
|
|
871
873
|
const submitBody = {
|
|
872
874
|
typeForm,
|
|
873
875
|
...getRegion$1(region, isNaturalPerson),
|
|
@@ -1086,20 +1088,7 @@
|
|
|
1086
1088
|
|
|
1087
1089
|
const getConsentDataProcessing = (inputs) => inputs?.find((_) => _?.name === 'consentDataProcessing');
|
|
1088
1090
|
|
|
1089
|
-
const
|
|
1090
|
-
{ key: 'ULTRASERVICE', text: 'Ультра' },
|
|
1091
|
-
{ key: 'PREMIUMSERVICE', text: 'Премиум' },
|
|
1092
|
-
];
|
|
1093
|
-
const SERVICE_DIRECTIONS = [
|
|
1094
|
-
{ key: 'Физическое лицо' },
|
|
1095
|
-
{ key: 'Юридическое лицо / ИП' },
|
|
1096
|
-
];
|
|
1097
|
-
const FEEDBACK_METHOD = [
|
|
1098
|
-
{ key: 'phone', text: 'Телефонный звонок' },
|
|
1099
|
-
{ key: 'email', text: 'Электронное сообщение' },
|
|
1100
|
-
];
|
|
1101
|
-
const OUT_SERVICE_URL = '/api/v1/outservice/outserviceregions';
|
|
1102
|
-
|
|
1091
|
+
const OUT_SERVICE_URL = `${API_BASE_URI}/outservice/outserviceregions`;
|
|
1103
1092
|
const getRegionUrl = (typeForm) => typeForm === 'OUTSERVICE' ? OUT_SERVICE_URL : undefined;
|
|
1104
1093
|
|
|
1105
1094
|
function useBool(defaultValue = false) {
|
|
@@ -1182,7 +1171,7 @@
|
|
|
1182
1171
|
const responseHandler = getResponseHandler(responseItemHandler);
|
|
1183
1172
|
const queryPrefixValue = queryPrefix ? `${queryPrefix}, ` : '';
|
|
1184
1173
|
const combinedQuery = `${queryPrefixValue}${query}`;
|
|
1185
|
-
const result = fetch(
|
|
1174
|
+
const result = fetch(`${API_BASE_URI}/suggestions/${url}`, {
|
|
1186
1175
|
method: 'POST',
|
|
1187
1176
|
mode: 'cors',
|
|
1188
1177
|
headers: {
|
|
@@ -1638,7 +1627,7 @@
|
|
|
1638
1627
|
}
|
|
1639
1628
|
}
|
|
1640
1629
|
|
|
1641
|
-
const BRANCHES_URL =
|
|
1630
|
+
const BRANCHES_URL = `${API_BASE_URI}/branches`;
|
|
1642
1631
|
const EMPTY_VALUE$3 = [];
|
|
1643
1632
|
function useBranches(regionCode) {
|
|
1644
1633
|
const { data } = useAsyncData(regionCode ? `${BRANCHES_URL}?regionCode=${regionCode}` : null, fetchSafeBoxes$1);
|
|
@@ -1649,10 +1638,10 @@
|
|
|
1649
1638
|
return result || EMPTY_VALUE$3;
|
|
1650
1639
|
};
|
|
1651
1640
|
|
|
1652
|
-
const REGIONS_URL$1 = '/
|
|
1653
|
-
const PREMIUM_REGIONS_URL = '/
|
|
1641
|
+
const REGIONS_URL$1 = '/branchesByRegions';
|
|
1642
|
+
const PREMIUM_REGIONS_URL = '/premiumBranchesByRegions';
|
|
1654
1643
|
function useBranchesByRegions(isPremium = false) {
|
|
1655
|
-
const { data } = useAsyncData(isPremium ? PREMIUM_REGIONS_URL : REGIONS_URL$1
|
|
1644
|
+
const { data } = useAsyncData(`${API_BASE_URI}${isPremium ? PREMIUM_REGIONS_URL : REGIONS_URL$1}`, fetchJSONUnsafe);
|
|
1656
1645
|
return Array.isArray(data) ? data : [];
|
|
1657
1646
|
}
|
|
1658
1647
|
|
|
@@ -1738,7 +1727,7 @@
|
|
|
1738
1727
|
const AmountField = JSX(({ field }) => (jsx(InputRange, { title: "\u0421\u0443\u043C\u043C\u0430, \u20BD", items: ITEMS_CREDIT_AMOUNT, min: MIN_CREDIT_AMOUNT, max: MAX_CREDIT_AMOUNT, ...field('amount') })));
|
|
1739
1728
|
|
|
1740
1729
|
const useLeadFormData = (typeField) => {
|
|
1741
|
-
const { data, error } = useAsyncData(`https://portal-ui-cc.cprb.dev.rshbdev.ru/light-api-cash/v1/dictionary?dictionaryType=${typeField}`, fetchData);
|
|
1730
|
+
const { data, error } = useAsyncData(`https://portal-ui-cc.cprb.dev.rshbdev.ru/light-api-cash/v1/dictionary?dictionaryType=${encodeURIComponent(typeField)}`, fetchData);
|
|
1742
1731
|
if (data && 'errorMessage' in data) {
|
|
1743
1732
|
return { error };
|
|
1744
1733
|
}
|
|
@@ -2031,51 +2020,33 @@
|
|
|
2031
2020
|
return (jsxs("div", { onClick: onClick, className: style('relative min-h-full bg-white pt-0 p-lg', className), role: "dialog", children: [jsxs("div", { className: "sticky py-xl top-0 bg-white z-10", children: [jsx(CloseButton, { className: "absolute top-0 right-0", onClose: handleClose }), jsx("div", { className: "container", children: head })] }), jsx("div", { className: "container pb-6xl", children: children })] }));
|
|
2032
2021
|
});
|
|
2033
2022
|
|
|
2034
|
-
|
|
2023
|
+
async function doRequest(url, method, body) {
|
|
2024
|
+
const response = await fetch(`https://retail-light-api.cprb.dev.rshbdev.ru/${API_BASE_URI}${url}`, {
|
|
2025
|
+
method,
|
|
2026
|
+
headers: {
|
|
2027
|
+
'Content-Type': 'application/json',
|
|
2028
|
+
...getAthorizationHeaders(),
|
|
2029
|
+
},
|
|
2030
|
+
credentials: 'include',
|
|
2031
|
+
body: body ? JSON.stringify(body) : null,
|
|
2032
|
+
});
|
|
2033
|
+
return isJSON(response) ? response.json() : response.text();
|
|
2034
|
+
}
|
|
2035
|
+
// TODO: Need delete isJSON
|
|
2036
|
+
const isJSON = (response) => response.headers.get('Content-Type') === 'application/json';
|
|
2035
2037
|
const getAthorizationHeaders = () => {
|
|
2036
2038
|
const token = sessionStorage.getItem('accessToken');
|
|
2037
2039
|
return token ? { Authorization: `Bearer ${token}` } : null;
|
|
2038
2040
|
};
|
|
2039
|
-
|
|
2040
|
-
const
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
'Content-Type': 'application/json',
|
|
2044
|
-
...getAthorizationHeaders(),
|
|
2045
|
-
},
|
|
2046
|
-
credentials: 'include',
|
|
2047
|
-
body: body ? JSON.stringify(body) : null,
|
|
2048
|
-
})
|
|
2049
|
-
.then((response) => {
|
|
2050
|
-
if (response.ok) {
|
|
2051
|
-
return getResponse(response);
|
|
2052
|
-
}
|
|
2053
|
-
else {
|
|
2054
|
-
throw response;
|
|
2055
|
-
}
|
|
2056
|
-
})
|
|
2057
|
-
.catch((error) => {
|
|
2058
|
-
throw error;
|
|
2059
|
-
});
|
|
2060
|
-
const saveToken = (data) => {
|
|
2061
|
-
sessionStorage.setItem('accessToken', data.access_token);
|
|
2062
|
-
sessionStorage.setItem('refreshToken', data.refresh_token);
|
|
2063
|
-
};
|
|
2064
|
-
const RETAIL_API = {
|
|
2065
|
-
CreateUserProfile: async (body) => await request('/public-data/createUserProfile', 'POST', body),
|
|
2066
|
-
UpdateUserProfile: async (body) => await request('/user-data/updateUserProfile', 'PUT', body),
|
|
2067
|
-
CreateDraftTask: async (body) => await request('/user-data/createDraftTask', 'POST', body),
|
|
2068
|
-
UpdateUserTask: async (body) => await request('/user-data/updateUserTask', 'PUT', body),
|
|
2069
|
-
SendCode: async (body) => await request('/sms/sendCode', 'POST', body),
|
|
2070
|
-
CheckCode: async (body) => await request('/sms/checkCode', 'POST', body).then(saveToken),
|
|
2071
|
-
CreateCaptcha: async (phoneNumber) => await request(`/sms/createCaptcha?phoneNumber=${phoneNumber}`, 'GET'),
|
|
2072
|
-
CheckCaptcha: async (body) => await request('/sms/checkCaptcha', 'POST', body),
|
|
2073
|
-
GetFileByID: async (id) => await request(`/feedback/file?id=${id}`, 'GET'),
|
|
2041
|
+
|
|
2042
|
+
const feedbackById = async (id) => {
|
|
2043
|
+
const request = await doRequest(`/feedback/file?id=${encodeURIComponent(id)}`, 'GET');
|
|
2044
|
+
return request;
|
|
2074
2045
|
};
|
|
2075
2046
|
|
|
2076
2047
|
const getDocument = async (id) => {
|
|
2077
|
-
const response = await
|
|
2078
|
-
return URL.createObjectURL(
|
|
2048
|
+
const response = await feedbackById(id);
|
|
2049
|
+
return URL.createObjectURL(response);
|
|
2079
2050
|
};
|
|
2080
2051
|
|
|
2081
2052
|
const OPEN_DOC_BUTTON_TEXT = 'Ознакомиться';
|
|
@@ -2161,6 +2132,19 @@
|
|
|
2161
2132
|
return (jsx(SelectField, { field: field, source: familyStatus, label: "\u0421\u0435\u043C\u0435\u0439\u043D\u043E\u0435 \u043F\u043E\u043B\u043E\u0436\u0435\u043D\u0438\u0435", fieldName: "familyStatus", input: input }));
|
|
2162
2133
|
});
|
|
2163
2134
|
|
|
2135
|
+
const SERVICE_TYPES = [
|
|
2136
|
+
{ key: 'ULTRASERVICE', text: 'Ультра' },
|
|
2137
|
+
{ key: 'PREMIUMSERVICE', text: 'Премиум' },
|
|
2138
|
+
];
|
|
2139
|
+
const SERVICE_DIRECTIONS = [
|
|
2140
|
+
{ key: 'Физическое лицо' },
|
|
2141
|
+
{ key: 'Юридическое лицо / ИП' },
|
|
2142
|
+
];
|
|
2143
|
+
const FEEDBACK_METHOD = [
|
|
2144
|
+
{ key: 'phone', text: 'Телефонный звонок' },
|
|
2145
|
+
{ key: 'email', text: 'Электронное сообщение' },
|
|
2146
|
+
];
|
|
2147
|
+
|
|
2164
2148
|
const FeedbackMethodField = JSX(({ field, input }) => (jsx(SelectControl, { label: "\u0421\u043F\u043E\u0441\u043E\u0431 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u043E\u0442\u0432\u0435\u0442\u0430", options: FEEDBACK_METHOD, ...getValidation(field('feedbackMethod'), validatorObj.feedbackMethod, input?.required) })));
|
|
2165
2149
|
|
|
2166
2150
|
const FullAddressField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0410\u0434\u0440\u0435\u0441", ...getValidation(field('fullAddress'), validatorObj.fullAddress, input?.required), ...input })));
|
|
@@ -2194,16 +2178,18 @@
|
|
|
2194
2178
|
|
|
2195
2179
|
const LegalFormField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041E\u041F\u0424", placeholder: "\u041E\u041E\u041E, \u041F\u0410\u041E \u0438 \u0434\u0440.", ...getValidation(field('legalForm'), validatorObj.legalForm, input?.required), ...input })));
|
|
2196
2180
|
|
|
2197
|
-
const
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2181
|
+
const OUT_SERVICE_BASE_URL = `${API_BASE_URI}/outservice`;
|
|
2182
|
+
const EMPTY_REGIONS = [];
|
|
2183
|
+
async function getOutServiceRegions() {
|
|
2184
|
+
const data = await fetchJSON(`${OUT_SERVICE_BASE_URL}/outserviceregions`);
|
|
2185
|
+
return data && Array.isArray(data) ? data : EMPTY_REGIONS;
|
|
2201
2186
|
}
|
|
2202
2187
|
|
|
2203
2188
|
const LocalitiesField = JSX(({ field, input }) => {
|
|
2204
2189
|
const fieldRegion = field('region');
|
|
2205
2190
|
const regionKey = fieldRegion?.value?.key;
|
|
2206
|
-
const
|
|
2191
|
+
const { data: regions } = useAsyncData('outServiceRegions', getOutServiceRegions);
|
|
2192
|
+
const localities = regions
|
|
2207
2193
|
?.find((_) => _.code === regionKey)
|
|
2208
2194
|
?.localities?.map((_) => ({ key: _, text: _ }));
|
|
2209
2195
|
useEffect(() => {
|
|
@@ -2288,6 +2274,12 @@
|
|
|
2288
2274
|
const ProductField = UniBlock(({ field, source }) => (jsx(SelectControl, { placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043F\u0440\u043E\u0434\u0443\u043A\u0442", label: "\u041F\u0440\u043E\u0434\u0443\u043A\u0442", options: arrayToOptions(source?.productList), ...withValidator(field('product'), validatorObj.product) })));
|
|
2289
2275
|
const arrayToOptions = (array) => (array ?? []).map((_) => ({ key: _, value: _ }));
|
|
2290
2276
|
|
|
2277
|
+
const REGIONS_URL = `${API_BASE_URI}/regions`;
|
|
2278
|
+
function useRegions(url = REGIONS_URL) {
|
|
2279
|
+
const { data } = useAsyncData(url, fetchJSONUnsafe);
|
|
2280
|
+
return Array.isArray(data) ? data : [];
|
|
2281
|
+
}
|
|
2282
|
+
|
|
2291
2283
|
const RegionField = JSX(({ field, input, url }) => {
|
|
2292
2284
|
const regions = useRegions(url);
|
|
2293
2285
|
return (jsx(SelectControl, { label: "\u0424\u0438\u043B\u0438\u0430\u043B", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B", isSearch: true, options: useMemo(() => regions?.map(({ code = '', name = '' }) => ({ key: code, text: name })), [regions]), ...getValidation(field('region'), validatorObj.region, input?.required) }));
|
|
@@ -2803,6 +2795,14 @@
|
|
|
2803
2795
|
|
|
2804
2796
|
const renderSubmitButton = (button, className) => (jsx(Button, { className: style('w-full @xl:w-auto', className), type: "submit", children: button?.text ? button.text : 'Отправить заявку' }));
|
|
2805
2797
|
|
|
2798
|
+
const createDraftTask = (body) => doRequest('/user-data/createDraftTask', 'POST', body);
|
|
2799
|
+
|
|
2800
|
+
const createUserProfile = (body) => doRequest('/public-data/createUserProfile', 'POST', body);
|
|
2801
|
+
|
|
2802
|
+
const updateUserProfile = (body) => doRequest('/user-data/updateUserProfile', 'POST', body);
|
|
2803
|
+
|
|
2804
|
+
const updateUserTask = (body) => doRequest('/user-data/updateUserTask', 'PUT', body);
|
|
2805
|
+
|
|
2806
2806
|
const getUpdateUserProfileData = (profileId, formData) => {
|
|
2807
2807
|
const { name = '', surname = '', middleName = '', birthday = '', phone = '', email = '', processPersonalDataLeadFlg, consentProviderFlg, consentPfrFlg, consentPhotoFlg, consentAssignmentClaimsFlg, consentCollectionFlg, consentInformFlg, } = formData;
|
|
2808
2808
|
return {
|
|
@@ -2825,8 +2825,7 @@
|
|
|
2825
2825
|
};
|
|
2826
2826
|
};
|
|
2827
2827
|
|
|
2828
|
-
|
|
2829
|
-
const getUpdateUserTaskData = (participantId, taskId, profileId, formatData) => ({
|
|
2828
|
+
const getUpdateUserTaskData = ({ participantId, taskId, profileId, formData, }) => ({
|
|
2830
2829
|
sendToBank: true,
|
|
2831
2830
|
taskKind: 'SHORT',
|
|
2832
2831
|
task: {
|
|
@@ -2834,11 +2833,11 @@
|
|
|
2834
2833
|
id: taskId,
|
|
2835
2834
|
participants: [
|
|
2836
2835
|
{
|
|
2837
|
-
birthDate:
|
|
2836
|
+
birthDate: formData?.birthDate,
|
|
2838
2837
|
id: participantId,
|
|
2839
|
-
midname:
|
|
2840
|
-
name:
|
|
2841
|
-
surname:
|
|
2838
|
+
midname: formData?.midname,
|
|
2839
|
+
name: formData?.name,
|
|
2840
|
+
surname: formData?.surname,
|
|
2842
2841
|
profile: {
|
|
2843
2842
|
id: profileId,
|
|
2844
2843
|
},
|
|
@@ -2847,13 +2846,13 @@
|
|
|
2847
2846
|
contactTypeCd: {
|
|
2848
2847
|
key: 'EMAIL',
|
|
2849
2848
|
},
|
|
2850
|
-
value:
|
|
2849
|
+
value: formData?.email,
|
|
2851
2850
|
},
|
|
2852
2851
|
{
|
|
2853
2852
|
contactTypeCd: {
|
|
2854
2853
|
key: 'MAIN_PHONE',
|
|
2855
2854
|
},
|
|
2856
|
-
value:
|
|
2855
|
+
value: formData?.phone,
|
|
2857
2856
|
},
|
|
2858
2857
|
],
|
|
2859
2858
|
roleCd: {
|
|
@@ -2895,8 +2894,10 @@
|
|
|
2895
2894
|
? children ?? (jsx("div", { className: "ml-s", children: jsx(Text, { font: "font-medium", color: TEXT_COLOR[bgColor], size: logoTitleSizeStyle, children: logo?.title ?? 'Россельхозбанк' }) }))
|
|
2896
2895
|
: null] })));
|
|
2897
2896
|
|
|
2898
|
-
const checkCaptcha =
|
|
2899
|
-
|
|
2897
|
+
const checkCaptcha = (body) => doRequest('/sms/checkCaptcha', 'POST', body);
|
|
2898
|
+
|
|
2899
|
+
const handleCheckCaptcha = async ({ code, setHasError, close, sendCode = noop, }) => {
|
|
2900
|
+
const response = await checkCaptcha({ captchaText: code });
|
|
2900
2901
|
if ((await response.text()) === 'ERROR') {
|
|
2901
2902
|
setHasError(true);
|
|
2902
2903
|
}
|
|
@@ -2906,8 +2907,10 @@
|
|
|
2906
2907
|
}
|
|
2907
2908
|
};
|
|
2908
2909
|
|
|
2909
|
-
const createCaptcha =
|
|
2910
|
-
|
|
2910
|
+
const createCaptcha = (phoneNumber) => doRequest(`/sms/createCaptcha?phoneNumber=${encodeURIComponent(phoneNumber)}`, 'GET');
|
|
2911
|
+
|
|
2912
|
+
const handleCreateCaptcha = async (setCaptcha, phoneNumber) => {
|
|
2913
|
+
const response = await createCaptcha(phoneNumber);
|
|
2911
2914
|
setCaptcha(URL.createObjectURL(await response.blob()));
|
|
2912
2915
|
};
|
|
2913
2916
|
|
|
@@ -2916,9 +2919,9 @@
|
|
|
2916
2919
|
const [code, setCode] = useState('');
|
|
2917
2920
|
const [hasError, setHasError] = useState(false);
|
|
2918
2921
|
useEffect(() => {
|
|
2919
|
-
|
|
2922
|
+
handleCreateCaptcha(setCaptcha, phoneNumber);
|
|
2920
2923
|
}, []);
|
|
2921
|
-
return (jsx(Dialog, { head: jsx(Logo, {}), onClose: onClose, className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md", children: [jsxs("div", { className: "flex h-
|
|
2924
|
+
return (jsx(Dialog, { head: jsx(Logo, {}), onClose: onClose, className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md", children: [jsxs("div", { className: "flex h-36 w-72", children: [jsx("img", { className: "grow", src: captcha }), jsx("div", { onClick: () => handleCreateCaptcha(setCaptcha, phoneNumber), className: "flex w-8 items-center justify-center cursor-pointer", children: jsx(Icon, { iconVersion: "normal", name: "RefreshIcon" }) })] }), jsx(Input, { className: "w-[300px]", onChange: setCode, value: code, placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043E\u0434 \u0441 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0438" }), hasError ? jsx("div", { className: "text-error", children: "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043E\u0434" }) : null, jsxs("div", { className: "flex w-[310px] justify-between", children: [jsx(Button, { onClick: close, version: "secondary", children: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F" }), jsx(Button, { type: "submit", disabled: !code, onClick: () => handleCheckCaptcha({ code, setHasError, close, sendCode }), version: "secondary", children: "\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C" })] })] }) }));
|
|
2922
2925
|
});
|
|
2923
2926
|
|
|
2924
2927
|
const useCaptchaDialog = (initialProps, onClose) => {
|
|
@@ -2954,9 +2957,11 @@
|
|
|
2954
2957
|
return `${minutes}:${seconds}`;
|
|
2955
2958
|
};
|
|
2956
2959
|
|
|
2960
|
+
const sendCode = (body) => doRequest('/sms/sendCode', 'POST', body);
|
|
2961
|
+
|
|
2957
2962
|
const handleSendCode = async ({ phoneNumber, captchaDialog, setTimeNextReq, setIsTimerStarted, setAttemps, }) => {
|
|
2958
2963
|
try {
|
|
2959
|
-
await
|
|
2964
|
+
await sendCode({
|
|
2960
2965
|
phoneNumber: phoneNumber,
|
|
2961
2966
|
smsCodesSetName: { key: 'AUTHENTICATION' },
|
|
2962
2967
|
});
|
|
@@ -3015,6 +3020,12 @@
|
|
|
3015
3020
|
return (jsx(Button, { type: "button", onClick: onClick, disabled: isDisabled, children: jsx(Text, { font: "font-medium", children: text }) }));
|
|
3016
3021
|
});
|
|
3017
3022
|
|
|
3023
|
+
const checkCode = async (body) => doRequest('/sms/checkCode', 'POST', body).then(saveToken);
|
|
3024
|
+
const saveToken = (data) => {
|
|
3025
|
+
globalThis.sessionStorage.setItem('accessToken', data.access_token);
|
|
3026
|
+
globalThis.sessionStorage.setItem('refreshToken', data.refresh_token);
|
|
3027
|
+
};
|
|
3028
|
+
|
|
3018
3029
|
const useVerifyPhoneDialogSubmit = ({ close, values }) => {
|
|
3019
3030
|
const [hasError, setHasError] = useState(false);
|
|
3020
3031
|
const [errorText, setErrorText] = useState('');
|
|
@@ -3034,7 +3045,7 @@
|
|
|
3034
3045
|
setTimeNextReq(0);
|
|
3035
3046
|
setAttemps(attemps + 1);
|
|
3036
3047
|
setIsLoading(true);
|
|
3037
|
-
await
|
|
3048
|
+
await checkCode({
|
|
3038
3049
|
smsText: values.join(''),
|
|
3039
3050
|
smsCodesSetName: { key: 'AUTHENTICATION' },
|
|
3040
3051
|
});
|
|
@@ -3115,19 +3126,19 @@
|
|
|
3115
3126
|
return 'Fail';
|
|
3116
3127
|
}
|
|
3117
3128
|
try {
|
|
3118
|
-
const { profile } = await
|
|
3129
|
+
const { profile } = await createUserProfile({
|
|
3119
3130
|
profile: { phone: formatPhone(formData.phone) },
|
|
3120
3131
|
});
|
|
3121
3132
|
const profileId = profile?.id;
|
|
3122
3133
|
if (profileId && formData?.phone) {
|
|
3123
3134
|
const handleSuccessVerify = async () => {
|
|
3124
3135
|
try {
|
|
3125
|
-
await
|
|
3126
|
-
const { taskId, participantId } = await
|
|
3136
|
+
await updateUserProfile(getUpdateUserProfileData(profileId, formData));
|
|
3137
|
+
const { taskId, participantId } = await createDraftTask({
|
|
3127
3138
|
profileId,
|
|
3128
3139
|
programId,
|
|
3129
3140
|
});
|
|
3130
|
-
await
|
|
3141
|
+
await updateUserTask(getUpdateUserTaskData({ participantId, taskId, profileId, formData }));
|
|
3131
3142
|
saveUserData(participantId, taskId, profileId);
|
|
3132
3143
|
saveForm(JSON.stringify(formData));
|
|
3133
3144
|
globalThis.location.href = '/credit-lead';
|
|
@@ -3829,7 +3840,7 @@
|
|
|
3829
3840
|
};
|
|
3830
3841
|
function useBusinessDepositRates(rateParams) {
|
|
3831
3842
|
const serviceName = rateParams?.rateType ? DEPOSIT_RATES_SERVICE_MAP[rateParams?.rateType] : '';
|
|
3832
|
-
const { data } = useAsyncData(serviceName ?
|
|
3843
|
+
const { data } = useAsyncData(serviceName ? `${API_BASE_URI}/depositrates/${serviceName}` : null, fetchJSONUnsafe);
|
|
3833
3844
|
return Array.isArray(data) ? data : [];
|
|
3834
3845
|
}
|
|
3835
3846
|
|
|
@@ -4817,7 +4828,7 @@
|
|
|
4817
4828
|
}
|
|
4818
4829
|
}, type: "button", ...(isUnfolded ? getAspectsAttributes(data) : {}), children: [jsx("div", { children: isUnfolded ? 'Скрыть' : 'Подробнее о тарифе' }), jsx(Icon, { className: "text-primary-text", name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" })] }));
|
|
4819
4830
|
|
|
4820
|
-
const InfoCard = JSX(({ __html, icon, iconVersion = 'black' }) => (jsxs("div", { className: "flex flex-row items-center w-full min-h-14 bg-main-gray rounded-lg gap-m p-m", children: [jsx("div", { className: "rounded-full bg-white p-xs", children: jsx(Icon, { name: icon, width: "24", height: "24", iconVersion: iconVersion }) }), jsx(RichText, { __html: __html })] })));
|
|
4831
|
+
const InfoCard = JSX(({ __html, icon = 'InfoCircleIcon', iconVersion = 'black' }) => (jsxs("div", { className: "flex flex-row items-center w-full min-h-14 bg-main-gray rounded-lg gap-m p-m", children: [jsx("div", { className: "rounded-full bg-white p-xs", children: jsx(Icon, { name: icon, width: "24", height: "24", iconVersion: iconVersion }) }), jsx(RichText, { __html: __html })] })));
|
|
4821
4832
|
|
|
4822
4833
|
const ProgressBar = JSX(({ step = 10, description, showPercentage = true }) => (jsxs("div", { children: [jsx("div", { className: "h-4 w-full bg-gray relative", children: jsx("div", { className: "h-4 bg-green", style: { width: `${step}%` } }) }), jsxs("div", { className: "relative", children: [showPercentage ? jsxs("div", { className: "absolute left-2/4 text-green", children: [step, "%"] }) : null, description ? jsx("div", { className: "text-right mr-4 text-gray", children: description }) : null] })] })));
|
|
4823
4834
|
|
|
@@ -5186,11 +5197,11 @@
|
|
|
5186
5197
|
|
|
5187
5198
|
const DepositoryItem = ({ title, timestamp, publicId }) => {
|
|
5188
5199
|
const link = useLink();
|
|
5189
|
-
const { href } = link({ href:
|
|
5200
|
+
const { href } = link({ href: `${API_BASE_URI}/depository/${publicId}/file` });
|
|
5190
5201
|
return (jsxs("div", { className: "flex gap-3 items-center py-lg border-gray border-opacity-50 border-b", children: [renderRoundedIcon({ icon: 'DocDownloadIcon', iconVersion: 'black' }), jsxs("div", { className: "flex flex-col gap-x-6xl lg:flex-row lg:items-center", children: [timestamp ? (jsx(Text, { size: "text-m", "font-weight": "font-light", children: formatDate(timestamp) })) : null, jsx("a", { className: "text-h6 hover:text-primary-active", href: href, download: true, "aria-label": "\u0421\u043A\u0430\u0447\u0430\u0442\u044C", children: title })] })] }, publicId));
|
|
5191
5202
|
};
|
|
5192
5203
|
|
|
5193
|
-
const DEPOSITARY_URL =
|
|
5204
|
+
const DEPOSITARY_URL = `${API_BASE_URI}/depository`;
|
|
5194
5205
|
const useDepository = ({ size, page, query, startDate, endDate }) => {
|
|
5195
5206
|
const formatStartDate = startDate ? formatDate(startDate, true) : '';
|
|
5196
5207
|
const formatEndDate = endDate ? formatDate(endDate, true) : '';
|
|
@@ -5251,7 +5262,7 @@
|
|
|
5251
5262
|
return [latestEvent, fireEvent];
|
|
5252
5263
|
};
|
|
5253
5264
|
|
|
5254
|
-
const REGION_URL =
|
|
5265
|
+
const REGION_URL = `${API_BASE_URI}/region`;
|
|
5255
5266
|
const LOCATION_STORAGE_KEY = 'location';
|
|
5256
5267
|
function useLocation(defaultLocation = 'Москва') {
|
|
5257
5268
|
const [currentLocation, fireCurrentLocation] = useLatestEvent(defaultEventBus, 'location', restoreLocation() ?? { name: defaultLocation });
|
|
@@ -5418,7 +5429,7 @@
|
|
|
5418
5429
|
}
|
|
5419
5430
|
};
|
|
5420
5431
|
|
|
5421
|
-
const EXCHANGE_RATES_URL =
|
|
5432
|
+
const EXCHANGE_RATES_URL = `${API_BASE_URI}/exchangerates`;
|
|
5422
5433
|
function useFetchExchangeRateData(currentRegion) {
|
|
5423
5434
|
const regionCode = currentRegion?.code || '000';
|
|
5424
5435
|
const { data } = useAsyncData(EXCHANGE_RATES_URL + `?regionCode=${regionCode}`, fetchJSONUnsafe);
|
|
@@ -6253,7 +6264,7 @@
|
|
|
6253
6264
|
|
|
6254
6265
|
const EMPTY_VALUE$2 = [];
|
|
6255
6266
|
function useAtms(regionCode) {
|
|
6256
|
-
const { data, error } = useAsyncData(
|
|
6267
|
+
const { data, error } = useAsyncData(`${API_BASE_URI}/atms?regionCode=${regionCode}`, fetchMap$1);
|
|
6257
6268
|
const isLoad = !data && !error;
|
|
6258
6269
|
return { data: data || EMPTY_VALUE$2, isLoad };
|
|
6259
6270
|
}
|
|
@@ -6485,8 +6496,8 @@
|
|
|
6485
6496
|
};
|
|
6486
6497
|
|
|
6487
6498
|
const EMPTY_VALUE$1 = { branches: [], remoteWorkplaces: [] };
|
|
6488
|
-
function useOffices(regionCode) {
|
|
6489
|
-
const { data, error } = useAsyncData(
|
|
6499
|
+
function useOffices(regionCode = '000') {
|
|
6500
|
+
const { data, error } = useAsyncData(`${API_BASE_URI}/branchesAndRemoteWorkplaces?regionCode=${encodeURIComponent(regionCode)}`, fetchMap);
|
|
6490
6501
|
const isLoad = !data && !error;
|
|
6491
6502
|
return { data: data || EMPTY_VALUE$1, isLoad };
|
|
6492
6503
|
}
|
|
@@ -6629,7 +6640,7 @@
|
|
|
6629
6640
|
const getCaseVolume = (caseVolumes, selectedCaseVolume) => caseVolumes?.find((_) => _.volume === selectedCaseVolume);
|
|
6630
6641
|
const getTariffs = (safeBoxCases, selectedBoxSize) => safeBoxCases?.find((_) => _.safeBoxCasesSize === selectedBoxSize)?.tariffs;
|
|
6631
6642
|
|
|
6632
|
-
const SAFEBOXES_URL =
|
|
6643
|
+
const SAFEBOXES_URL = `${API_BASE_URI}/safeboxes`;
|
|
6633
6644
|
const EMPTY_VALUE = [];
|
|
6634
6645
|
function useSafeBoxes(regionCode) {
|
|
6635
6646
|
const { data } = useAsyncData(regionCode ? `${SAFEBOXES_URL}?regionCode=${regionCode}` : null, fetchSafeBoxes);
|
|
@@ -7504,7 +7515,7 @@
|
|
|
7504
7515
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
7505
7516
|
});
|
|
7506
7517
|
|
|
7507
|
-
const packageVersion = "0.14.
|
|
7518
|
+
const packageVersion = "0.14.605";
|
|
7508
7519
|
|
|
7509
7520
|
exports.Blocks = Blocks;
|
|
7510
7521
|
exports.ContentPage = ContentPage;
|