@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 @@
|
|
|
1
|
+
export declare type StatusType = 'OK' | 'ERROR';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare type CheckCodeBody = {
|
|
2
|
+
smsText: string;
|
|
3
|
+
smsCodesSetName: {
|
|
4
|
+
key: 'AUTHENTICATION' | 'SEND_TASK';
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export declare type CheckCodeResponse = {
|
|
8
|
+
access_token: string;
|
|
9
|
+
expires_in: number;
|
|
10
|
+
refresh_token: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const checkCode: (body: CheckCodeBody) => Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const createCaptcha: (phoneNumber: string) => Promise<Response>;
|
|
@@ -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";
|
package/bundle/bundle.umd.js
CHANGED
|
@@ -855,11 +855,13 @@
|
|
|
855
855
|
|
|
856
856
|
const formatPhone = (phone) => phone?.replace(/[^+\d]/g, '');
|
|
857
857
|
|
|
858
|
+
const API_BASE_URI = '/api/v1';
|
|
859
|
+
|
|
858
860
|
function LeadServiceAPI() {
|
|
859
861
|
async function send(body, isIndividualType = false) {
|
|
860
862
|
const { typeForm, region, phone = '', email, birthday, desiredMeetingDate, inn, addressBranch, secondaryPhone = '', bankEmpolee, applicationDate, serviceDirection, ...staticBody } = body;
|
|
861
863
|
const isNaturalPerson = isIndividualType && serviceDirection !== 'Юридическое лицо / ИП';
|
|
862
|
-
const url = isNaturalPerson ? '/
|
|
864
|
+
const url = `${API_BASE_URI}${isNaturalPerson ? '/lead' : '/sendcorporatelead'}`;
|
|
863
865
|
const submitBody = {
|
|
864
866
|
typeForm,
|
|
865
867
|
...getRegion$1(region, isNaturalPerson),
|
|
@@ -1078,20 +1080,7 @@
|
|
|
1078
1080
|
|
|
1079
1081
|
const getConsentDataProcessing = (inputs) => inputs?.find((_) => _?.name === 'consentDataProcessing');
|
|
1080
1082
|
|
|
1081
|
-
const
|
|
1082
|
-
{ key: 'ULTRASERVICE', text: 'Ультра' },
|
|
1083
|
-
{ key: 'PREMIUMSERVICE', text: 'Премиум' },
|
|
1084
|
-
];
|
|
1085
|
-
const SERVICE_DIRECTIONS = [
|
|
1086
|
-
{ key: 'Физическое лицо' },
|
|
1087
|
-
{ key: 'Юридическое лицо / ИП' },
|
|
1088
|
-
];
|
|
1089
|
-
const FEEDBACK_METHOD = [
|
|
1090
|
-
{ key: 'phone', text: 'Телефонный звонок' },
|
|
1091
|
-
{ key: 'email', text: 'Электронное сообщение' },
|
|
1092
|
-
];
|
|
1093
|
-
const OUT_SERVICE_URL = '/api/v1/outservice/outserviceregions';
|
|
1094
|
-
|
|
1083
|
+
const OUT_SERVICE_URL = `${API_BASE_URI}/outservice/outserviceregions`;
|
|
1095
1084
|
const getRegionUrl = (typeForm) => typeForm === 'OUTSERVICE' ? OUT_SERVICE_URL : undefined;
|
|
1096
1085
|
|
|
1097
1086
|
function useBool(defaultValue = false) {
|
|
@@ -1174,7 +1163,7 @@
|
|
|
1174
1163
|
const responseHandler = getResponseHandler(responseItemHandler);
|
|
1175
1164
|
const queryPrefixValue = queryPrefix ? `${queryPrefix}, ` : '';
|
|
1176
1165
|
const combinedQuery = `${queryPrefixValue}${query}`;
|
|
1177
|
-
const result = fetch(
|
|
1166
|
+
const result = fetch(`${API_BASE_URI}/suggestions/${url}`, {
|
|
1178
1167
|
method: 'POST',
|
|
1179
1168
|
mode: 'cors',
|
|
1180
1169
|
headers: {
|
|
@@ -1630,7 +1619,7 @@
|
|
|
1630
1619
|
}
|
|
1631
1620
|
}
|
|
1632
1621
|
|
|
1633
|
-
const BRANCHES_URL =
|
|
1622
|
+
const BRANCHES_URL = `${API_BASE_URI}/branches`;
|
|
1634
1623
|
const EMPTY_VALUE$3 = [];
|
|
1635
1624
|
function useBranches(regionCode) {
|
|
1636
1625
|
const { data } = useAsyncData(regionCode ? `${BRANCHES_URL}?regionCode=${regionCode}` : null, fetchSafeBoxes$1);
|
|
@@ -1641,10 +1630,10 @@
|
|
|
1641
1630
|
return result || EMPTY_VALUE$3;
|
|
1642
1631
|
};
|
|
1643
1632
|
|
|
1644
|
-
const REGIONS_URL$1 = '/
|
|
1645
|
-
const PREMIUM_REGIONS_URL = '/
|
|
1633
|
+
const REGIONS_URL$1 = '/branchesByRegions';
|
|
1634
|
+
const PREMIUM_REGIONS_URL = '/premiumBranchesByRegions';
|
|
1646
1635
|
function useBranchesByRegions(isPremium = false) {
|
|
1647
|
-
const { data } = useAsyncData(isPremium ? PREMIUM_REGIONS_URL : REGIONS_URL$1
|
|
1636
|
+
const { data } = useAsyncData(`${API_BASE_URI}${isPremium ? PREMIUM_REGIONS_URL : REGIONS_URL$1}`, fetchJSONUnsafe);
|
|
1648
1637
|
return Array.isArray(data) ? data : [];
|
|
1649
1638
|
}
|
|
1650
1639
|
|
|
@@ -1730,7 +1719,7 @@
|
|
|
1730
1719
|
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') })));
|
|
1731
1720
|
|
|
1732
1721
|
const useLeadFormData = (typeField) => {
|
|
1733
|
-
const { data, error } = useAsyncData(`https://portal-ui-cc.cprb.dev.rshbdev.ru/light-api-cash/v1/dictionary?dictionaryType=${typeField}`, fetchData);
|
|
1722
|
+
const { data, error } = useAsyncData(`https://portal-ui-cc.cprb.dev.rshbdev.ru/light-api-cash/v1/dictionary?dictionaryType=${encodeURIComponent(typeField)}`, fetchData);
|
|
1734
1723
|
if (data && 'errorMessage' in data) {
|
|
1735
1724
|
return { error };
|
|
1736
1725
|
}
|
|
@@ -2023,51 +2012,33 @@
|
|
|
2023
2012
|
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 })] }));
|
|
2024
2013
|
});
|
|
2025
2014
|
|
|
2026
|
-
|
|
2015
|
+
async function doRequest(url, method, body) {
|
|
2016
|
+
const response = await fetch(`https://retail-light-api.cprb.dev.rshbdev.ru/${API_BASE_URI}${url}`, {
|
|
2017
|
+
method,
|
|
2018
|
+
headers: {
|
|
2019
|
+
'Content-Type': 'application/json',
|
|
2020
|
+
...getAthorizationHeaders(),
|
|
2021
|
+
},
|
|
2022
|
+
credentials: 'include',
|
|
2023
|
+
body: body ? JSON.stringify(body) : null,
|
|
2024
|
+
});
|
|
2025
|
+
return isJSON(response) ? response.json() : response.text();
|
|
2026
|
+
}
|
|
2027
|
+
// TODO: Need delete isJSON
|
|
2028
|
+
const isJSON = (response) => response.headers.get('Content-Type') === 'application/json';
|
|
2027
2029
|
const getAthorizationHeaders = () => {
|
|
2028
2030
|
const token = sessionStorage.getItem('accessToken');
|
|
2029
2031
|
return token ? { Authorization: `Bearer ${token}` } : null;
|
|
2030
2032
|
};
|
|
2031
|
-
|
|
2032
|
-
const
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
'Content-Type': 'application/json',
|
|
2036
|
-
...getAthorizationHeaders(),
|
|
2037
|
-
},
|
|
2038
|
-
credentials: 'include',
|
|
2039
|
-
body: body ? JSON.stringify(body) : null,
|
|
2040
|
-
})
|
|
2041
|
-
.then((response) => {
|
|
2042
|
-
if (response.ok) {
|
|
2043
|
-
return getResponse(response);
|
|
2044
|
-
}
|
|
2045
|
-
else {
|
|
2046
|
-
throw response;
|
|
2047
|
-
}
|
|
2048
|
-
})
|
|
2049
|
-
.catch((error) => {
|
|
2050
|
-
throw error;
|
|
2051
|
-
});
|
|
2052
|
-
const saveToken = (data) => {
|
|
2053
|
-
sessionStorage.setItem('accessToken', data.access_token);
|
|
2054
|
-
sessionStorage.setItem('refreshToken', data.refresh_token);
|
|
2055
|
-
};
|
|
2056
|
-
const RETAIL_API = {
|
|
2057
|
-
CreateUserProfile: async (body) => await request('/public-data/createUserProfile', 'POST', body),
|
|
2058
|
-
UpdateUserProfile: async (body) => await request('/user-data/updateUserProfile', 'PUT', body),
|
|
2059
|
-
CreateDraftTask: async (body) => await request('/user-data/createDraftTask', 'POST', body),
|
|
2060
|
-
UpdateUserTask: async (body) => await request('/user-data/updateUserTask', 'PUT', body),
|
|
2061
|
-
SendCode: async (body) => await request('/sms/sendCode', 'POST', body),
|
|
2062
|
-
CheckCode: async (body) => await request('/sms/checkCode', 'POST', body).then(saveToken),
|
|
2063
|
-
CreateCaptcha: async (phoneNumber) => await request(`/sms/createCaptcha?phoneNumber=${phoneNumber}`, 'GET'),
|
|
2064
|
-
CheckCaptcha: async (body) => await request('/sms/checkCaptcha', 'POST', body),
|
|
2065
|
-
GetFileByID: async (id) => await request(`/feedback/file?id=${id}`, 'GET'),
|
|
2033
|
+
|
|
2034
|
+
const feedbackById = async (id) => {
|
|
2035
|
+
const request = await doRequest(`/feedback/file?id=${encodeURIComponent(id)}`, 'GET');
|
|
2036
|
+
return request;
|
|
2066
2037
|
};
|
|
2067
2038
|
|
|
2068
2039
|
const getDocument = async (id) => {
|
|
2069
|
-
const response = await
|
|
2070
|
-
return URL.createObjectURL(
|
|
2040
|
+
const response = await feedbackById(id);
|
|
2041
|
+
return URL.createObjectURL(response);
|
|
2071
2042
|
};
|
|
2072
2043
|
|
|
2073
2044
|
const OPEN_DOC_BUTTON_TEXT = 'Ознакомиться';
|
|
@@ -2153,6 +2124,19 @@
|
|
|
2153
2124
|
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 }));
|
|
2154
2125
|
});
|
|
2155
2126
|
|
|
2127
|
+
const SERVICE_TYPES = [
|
|
2128
|
+
{ key: 'ULTRASERVICE', text: 'Ультра' },
|
|
2129
|
+
{ key: 'PREMIUMSERVICE', text: 'Премиум' },
|
|
2130
|
+
];
|
|
2131
|
+
const SERVICE_DIRECTIONS = [
|
|
2132
|
+
{ key: 'Физическое лицо' },
|
|
2133
|
+
{ key: 'Юридическое лицо / ИП' },
|
|
2134
|
+
];
|
|
2135
|
+
const FEEDBACK_METHOD = [
|
|
2136
|
+
{ key: 'phone', text: 'Телефонный звонок' },
|
|
2137
|
+
{ key: 'email', text: 'Электронное сообщение' },
|
|
2138
|
+
];
|
|
2139
|
+
|
|
2156
2140
|
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) })));
|
|
2157
2141
|
|
|
2158
2142
|
const FullAddressField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0410\u0434\u0440\u0435\u0441", ...getValidation(field('fullAddress'), validatorObj.fullAddress, input?.required), ...input })));
|
|
@@ -2186,16 +2170,18 @@
|
|
|
2186
2170
|
|
|
2187
2171
|
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 })));
|
|
2188
2172
|
|
|
2189
|
-
const
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2173
|
+
const OUT_SERVICE_BASE_URL = `${API_BASE_URI}/outservice`;
|
|
2174
|
+
const EMPTY_REGIONS = [];
|
|
2175
|
+
async function getOutServiceRegions() {
|
|
2176
|
+
const data = await fetchJSON(`${OUT_SERVICE_BASE_URL}/outserviceregions`);
|
|
2177
|
+
return data && Array.isArray(data) ? data : EMPTY_REGIONS;
|
|
2193
2178
|
}
|
|
2194
2179
|
|
|
2195
2180
|
const LocalitiesField = JSX(({ field, input }) => {
|
|
2196
2181
|
const fieldRegion = field('region');
|
|
2197
2182
|
const regionKey = fieldRegion?.value?.key;
|
|
2198
|
-
const
|
|
2183
|
+
const { data: regions } = useAsyncData('outServiceRegions', getOutServiceRegions);
|
|
2184
|
+
const localities = regions
|
|
2199
2185
|
?.find((_) => _.code === regionKey)
|
|
2200
2186
|
?.localities?.map((_) => ({ key: _, text: _ }));
|
|
2201
2187
|
useEffect(() => {
|
|
@@ -2280,6 +2266,12 @@
|
|
|
2280
2266
|
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) })));
|
|
2281
2267
|
const arrayToOptions = (array) => (array ?? []).map((_) => ({ key: _, value: _ }));
|
|
2282
2268
|
|
|
2269
|
+
const REGIONS_URL = `${API_BASE_URI}/regions`;
|
|
2270
|
+
function useRegions(url = REGIONS_URL) {
|
|
2271
|
+
const { data } = useAsyncData(url, fetchJSONUnsafe);
|
|
2272
|
+
return Array.isArray(data) ? data : [];
|
|
2273
|
+
}
|
|
2274
|
+
|
|
2283
2275
|
const RegionField = JSX(({ field, input, url }) => {
|
|
2284
2276
|
const regions = useRegions(url);
|
|
2285
2277
|
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) }));
|
|
@@ -2795,6 +2787,14 @@
|
|
|
2795
2787
|
|
|
2796
2788
|
const renderSubmitButton = (button, className) => (jsx(Button, { className: style('w-full @xl:w-auto', className), type: "submit", children: button?.text ? button.text : 'Отправить заявку' }));
|
|
2797
2789
|
|
|
2790
|
+
const createDraftTask = (body) => doRequest('/user-data/createDraftTask', 'POST', body);
|
|
2791
|
+
|
|
2792
|
+
const createUserProfile = (body) => doRequest('/public-data/createUserProfile', 'POST', body);
|
|
2793
|
+
|
|
2794
|
+
const updateUserProfile = (body) => doRequest('/user-data/updateUserProfile', 'POST', body);
|
|
2795
|
+
|
|
2796
|
+
const updateUserTask = (body) => doRequest('/user-data/updateUserTask', 'PUT', body);
|
|
2797
|
+
|
|
2798
2798
|
const getUpdateUserProfileData = (profileId, formData) => {
|
|
2799
2799
|
const { name = '', surname = '', middleName = '', birthday = '', phone = '', email = '', processPersonalDataLeadFlg, consentProviderFlg, consentPfrFlg, consentPhotoFlg, consentAssignmentClaimsFlg, consentCollectionFlg, consentInformFlg, } = formData;
|
|
2800
2800
|
return {
|
|
@@ -2817,8 +2817,7 @@
|
|
|
2817
2817
|
};
|
|
2818
2818
|
};
|
|
2819
2819
|
|
|
2820
|
-
|
|
2821
|
-
const getUpdateUserTaskData = (participantId, taskId, profileId, formatData) => ({
|
|
2820
|
+
const getUpdateUserTaskData = ({ participantId, taskId, profileId, formData, }) => ({
|
|
2822
2821
|
sendToBank: true,
|
|
2823
2822
|
taskKind: 'SHORT',
|
|
2824
2823
|
task: {
|
|
@@ -2826,11 +2825,11 @@
|
|
|
2826
2825
|
id: taskId,
|
|
2827
2826
|
participants: [
|
|
2828
2827
|
{
|
|
2829
|
-
birthDate:
|
|
2828
|
+
birthDate: formData?.birthDate,
|
|
2830
2829
|
id: participantId,
|
|
2831
|
-
midname:
|
|
2832
|
-
name:
|
|
2833
|
-
surname:
|
|
2830
|
+
midname: formData?.midname,
|
|
2831
|
+
name: formData?.name,
|
|
2832
|
+
surname: formData?.surname,
|
|
2834
2833
|
profile: {
|
|
2835
2834
|
id: profileId,
|
|
2836
2835
|
},
|
|
@@ -2839,13 +2838,13 @@
|
|
|
2839
2838
|
contactTypeCd: {
|
|
2840
2839
|
key: 'EMAIL',
|
|
2841
2840
|
},
|
|
2842
|
-
value:
|
|
2841
|
+
value: formData?.email,
|
|
2843
2842
|
},
|
|
2844
2843
|
{
|
|
2845
2844
|
contactTypeCd: {
|
|
2846
2845
|
key: 'MAIN_PHONE',
|
|
2847
2846
|
},
|
|
2848
|
-
value:
|
|
2847
|
+
value: formData?.phone,
|
|
2849
2848
|
},
|
|
2850
2849
|
],
|
|
2851
2850
|
roleCd: {
|
|
@@ -2887,8 +2886,10 @@
|
|
|
2887
2886
|
? children ?? (jsx("div", { className: "ml-s", children: jsx(Text, { font: "font-medium", color: TEXT_COLOR[bgColor], size: logoTitleSizeStyle, children: logo?.title ?? 'Россельхозбанк' }) }))
|
|
2888
2887
|
: null] })));
|
|
2889
2888
|
|
|
2890
|
-
const checkCaptcha =
|
|
2891
|
-
|
|
2889
|
+
const checkCaptcha = (body) => doRequest('/sms/checkCaptcha', 'POST', body);
|
|
2890
|
+
|
|
2891
|
+
const handleCheckCaptcha = async ({ code, setHasError, close, sendCode = noop, }) => {
|
|
2892
|
+
const response = await checkCaptcha({ captchaText: code });
|
|
2892
2893
|
if ((await response.text()) === 'ERROR') {
|
|
2893
2894
|
setHasError(true);
|
|
2894
2895
|
}
|
|
@@ -2898,8 +2899,10 @@
|
|
|
2898
2899
|
}
|
|
2899
2900
|
};
|
|
2900
2901
|
|
|
2901
|
-
const createCaptcha =
|
|
2902
|
-
|
|
2902
|
+
const createCaptcha = (phoneNumber) => doRequest(`/sms/createCaptcha?phoneNumber=${encodeURIComponent(phoneNumber)}`, 'GET');
|
|
2903
|
+
|
|
2904
|
+
const handleCreateCaptcha = async (setCaptcha, phoneNumber) => {
|
|
2905
|
+
const response = await createCaptcha(phoneNumber);
|
|
2903
2906
|
setCaptcha(URL.createObjectURL(await response.blob()));
|
|
2904
2907
|
};
|
|
2905
2908
|
|
|
@@ -2908,9 +2911,9 @@
|
|
|
2908
2911
|
const [code, setCode] = useState('');
|
|
2909
2912
|
const [hasError, setHasError] = useState(false);
|
|
2910
2913
|
useEffect(() => {
|
|
2911
|
-
|
|
2914
|
+
handleCreateCaptcha(setCaptcha, phoneNumber);
|
|
2912
2915
|
}, []);
|
|
2913
|
-
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-
|
|
2916
|
+
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" })] })] }) }));
|
|
2914
2917
|
});
|
|
2915
2918
|
|
|
2916
2919
|
const useCaptchaDialog = (initialProps, onClose) => {
|
|
@@ -2946,9 +2949,11 @@
|
|
|
2946
2949
|
return `${minutes}:${seconds}`;
|
|
2947
2950
|
};
|
|
2948
2951
|
|
|
2952
|
+
const sendCode = (body) => doRequest('/sms/sendCode', 'POST', body);
|
|
2953
|
+
|
|
2949
2954
|
const handleSendCode = async ({ phoneNumber, captchaDialog, setTimeNextReq, setIsTimerStarted, setAttemps, }) => {
|
|
2950
2955
|
try {
|
|
2951
|
-
await
|
|
2956
|
+
await sendCode({
|
|
2952
2957
|
phoneNumber: phoneNumber,
|
|
2953
2958
|
smsCodesSetName: { key: 'AUTHENTICATION' },
|
|
2954
2959
|
});
|
|
@@ -3007,6 +3012,12 @@
|
|
|
3007
3012
|
return (jsx(Button, { type: "button", onClick: onClick, disabled: isDisabled, children: jsx(Text, { font: "font-medium", children: text }) }));
|
|
3008
3013
|
});
|
|
3009
3014
|
|
|
3015
|
+
const checkCode = async (body) => doRequest('/sms/checkCode', 'POST', body).then(saveToken);
|
|
3016
|
+
const saveToken = (data) => {
|
|
3017
|
+
globalThis.sessionStorage.setItem('accessToken', data.access_token);
|
|
3018
|
+
globalThis.sessionStorage.setItem('refreshToken', data.refresh_token);
|
|
3019
|
+
};
|
|
3020
|
+
|
|
3010
3021
|
const useVerifyPhoneDialogSubmit = ({ close, values }) => {
|
|
3011
3022
|
const [hasError, setHasError] = useState(false);
|
|
3012
3023
|
const [errorText, setErrorText] = useState('');
|
|
@@ -3026,7 +3037,7 @@
|
|
|
3026
3037
|
setTimeNextReq(0);
|
|
3027
3038
|
setAttemps(attemps + 1);
|
|
3028
3039
|
setIsLoading(true);
|
|
3029
|
-
await
|
|
3040
|
+
await checkCode({
|
|
3030
3041
|
smsText: values.join(''),
|
|
3031
3042
|
smsCodesSetName: { key: 'AUTHENTICATION' },
|
|
3032
3043
|
});
|
|
@@ -3107,19 +3118,19 @@
|
|
|
3107
3118
|
return 'Fail';
|
|
3108
3119
|
}
|
|
3109
3120
|
try {
|
|
3110
|
-
const { profile } = await
|
|
3121
|
+
const { profile } = await createUserProfile({
|
|
3111
3122
|
profile: { phone: formatPhone(formData.phone) },
|
|
3112
3123
|
});
|
|
3113
3124
|
const profileId = profile?.id;
|
|
3114
3125
|
if (profileId && formData?.phone) {
|
|
3115
3126
|
const handleSuccessVerify = async () => {
|
|
3116
3127
|
try {
|
|
3117
|
-
await
|
|
3118
|
-
const { taskId, participantId } = await
|
|
3128
|
+
await updateUserProfile(getUpdateUserProfileData(profileId, formData));
|
|
3129
|
+
const { taskId, participantId } = await createDraftTask({
|
|
3119
3130
|
profileId,
|
|
3120
3131
|
programId,
|
|
3121
3132
|
});
|
|
3122
|
-
await
|
|
3133
|
+
await updateUserTask(getUpdateUserTaskData({ participantId, taskId, profileId, formData }));
|
|
3123
3134
|
saveUserData(participantId, taskId, profileId);
|
|
3124
3135
|
saveForm(JSON.stringify(formData));
|
|
3125
3136
|
globalThis.location.href = '/credit-lead';
|
|
@@ -3833,7 +3844,7 @@
|
|
|
3833
3844
|
};
|
|
3834
3845
|
function useBusinessDepositRates(rateParams) {
|
|
3835
3846
|
const serviceName = rateParams?.rateType ? DEPOSIT_RATES_SERVICE_MAP[rateParams?.rateType] : '';
|
|
3836
|
-
const { data } = useAsyncData(serviceName ?
|
|
3847
|
+
const { data } = useAsyncData(serviceName ? `${API_BASE_URI}/depositrates/${serviceName}` : null, fetchJSONUnsafe);
|
|
3837
3848
|
return Array.isArray(data) ? data : [];
|
|
3838
3849
|
}
|
|
3839
3850
|
|
|
@@ -4825,7 +4836,7 @@
|
|
|
4825
4836
|
const renderBlocks = (info) => (jsx("div", { className: "flex gap-5xl grow basis-0", children: info.map((column, i) => renderBlocksColumn({ column, i })) }));
|
|
4826
4837
|
const renderBlocksColumn = ({ column, i }) => column ? (jsx("div", { className: "flex flex-col gap-xl grow basis-0", children: column.map(({ title = '', description, additionalDescription, button }, key) => (jsxs("div", { children: [jsx(Headline, { title: title, description: description, headlineVersion: "XS", align: "text-left", isEmbedded: true }), additionalDescription ? (jsx("div", { className: "mt-xs opacity-80", children: jsx(Paragraph, { size: "text-m", font: "font-light", children: additionalDescription }) })) : null, jsx("div", { className: style({ 'mt-xl': Boolean(button?.text) }), children: renderButtonsSection([button]) })] }, String(key)))) }, `col-${String(i)}`)) : null;
|
|
4827
4838
|
|
|
4828
|
-
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 })] })));
|
|
4839
|
+
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 })] })));
|
|
4829
4840
|
|
|
4830
4841
|
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] })] })));
|
|
4831
4842
|
|
|
@@ -5195,11 +5206,11 @@
|
|
|
5195
5206
|
|
|
5196
5207
|
const DepositoryItem = ({ title, timestamp, publicId }) => {
|
|
5197
5208
|
const link = useLink();
|
|
5198
|
-
const { href } = link({ href:
|
|
5209
|
+
const { href } = link({ href: `${API_BASE_URI}/depository/${publicId}/file` });
|
|
5199
5210
|
return (jsxs("div", { className: "flex gap-3 items-center py-lg border-gray border-opacity-50 border-b", children: [renderRoundedIcon(), 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));
|
|
5200
5211
|
};
|
|
5201
5212
|
|
|
5202
|
-
const DEPOSITARY_URL =
|
|
5213
|
+
const DEPOSITARY_URL = `${API_BASE_URI}/depository`;
|
|
5203
5214
|
const useDepository = ({ size, page, query, startDate, endDate }) => {
|
|
5204
5215
|
const formatStartDate = startDate ? formatDate(startDate, true) : '';
|
|
5205
5216
|
const formatEndDate = endDate ? formatDate(endDate, true) : '';
|
|
@@ -5260,7 +5271,7 @@
|
|
|
5260
5271
|
return [latestEvent, fireEvent];
|
|
5261
5272
|
};
|
|
5262
5273
|
|
|
5263
|
-
const REGION_URL =
|
|
5274
|
+
const REGION_URL = `${API_BASE_URI}/region`;
|
|
5264
5275
|
const LOCATION_STORAGE_KEY = 'location';
|
|
5265
5276
|
function useLocation(defaultLocation = 'Москва') {
|
|
5266
5277
|
const [currentLocation, fireCurrentLocation] = useLatestEvent(defaultEventBus, 'location', restoreLocation() ?? { name: defaultLocation });
|
|
@@ -5427,7 +5438,7 @@
|
|
|
5427
5438
|
}
|
|
5428
5439
|
};
|
|
5429
5440
|
|
|
5430
|
-
const EXCHANGE_RATES_URL =
|
|
5441
|
+
const EXCHANGE_RATES_URL = `${API_BASE_URI}/exchangerates`;
|
|
5431
5442
|
function useFetchExchangeRateData(currentRegion) {
|
|
5432
5443
|
const regionCode = currentRegion?.code || '000';
|
|
5433
5444
|
const { data } = useAsyncData(EXCHANGE_RATES_URL + `?regionCode=${regionCode}`, fetchJSONUnsafe);
|
|
@@ -6835,7 +6846,7 @@
|
|
|
6835
6846
|
|
|
6836
6847
|
const EMPTY_VALUE$2 = [];
|
|
6837
6848
|
function useAtms(regionCode) {
|
|
6838
|
-
const { data, error } = useAsyncData(
|
|
6849
|
+
const { data, error } = useAsyncData(`${API_BASE_URI}/atms?regionCode=${regionCode}`, fetchMap$1);
|
|
6839
6850
|
const isLoad = !data && !error;
|
|
6840
6851
|
return { data: data || EMPTY_VALUE$2, isLoad };
|
|
6841
6852
|
}
|
|
@@ -7067,8 +7078,8 @@
|
|
|
7067
7078
|
};
|
|
7068
7079
|
|
|
7069
7080
|
const EMPTY_VALUE$1 = { branches: [], remoteWorkplaces: [] };
|
|
7070
|
-
function useOffices(regionCode) {
|
|
7071
|
-
const { data, error } = useAsyncData(
|
|
7081
|
+
function useOffices(regionCode = '000') {
|
|
7082
|
+
const { data, error } = useAsyncData(`${API_BASE_URI}/branchesAndRemoteWorkplaces?regionCode=${encodeURIComponent(regionCode)}`, fetchMap);
|
|
7072
7083
|
const isLoad = !data && !error;
|
|
7073
7084
|
return { data: data || EMPTY_VALUE$1, isLoad };
|
|
7074
7085
|
}
|
|
@@ -7262,7 +7273,7 @@
|
|
|
7262
7273
|
const getCaseVolume = (caseVolumes, selectedCaseVolume) => caseVolumes?.find((_) => _.volume === selectedCaseVolume);
|
|
7263
7274
|
const getTariffs = (safeBoxCases, selectedBoxSize) => safeBoxCases?.find((_) => _.safeBoxCasesSize === selectedBoxSize)?.tariffs;
|
|
7264
7275
|
|
|
7265
|
-
const SAFEBOXES_URL =
|
|
7276
|
+
const SAFEBOXES_URL = `${API_BASE_URI}/safeboxes`;
|
|
7266
7277
|
const EMPTY_VALUE = [];
|
|
7267
7278
|
function useSafeBoxes(regionCode) {
|
|
7268
7279
|
const { data } = useAsyncData(regionCode ? `${SAFEBOXES_URL}?regionCode=${regionCode}` : null, fetchSafeBoxes);
|
|
@@ -7877,7 +7888,7 @@
|
|
|
7877
7888
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
7878
7889
|
});
|
|
7879
7890
|
|
|
7880
|
-
const packageVersion = "0.14.
|
|
7891
|
+
const packageVersion = "0.14.605";
|
|
7881
7892
|
|
|
7882
7893
|
exports.Blocks = Blocks;
|
|
7883
7894
|
exports.ContentPage = ContentPage;
|