@redneckz/wildless-cms-uni-blocks 0.14.605 → 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 +105 -94
- 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/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/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 +105 -94
- 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/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/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/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 +2 -2
- 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { sendCode } from '../../api/RetailAPI/sendCode';
|
|
2
2
|
import { type CaptchaDialogProps } from '../CaptchaDialog/CaptchaDialog';
|
|
3
3
|
import { type DialogOptions } from '../DialogManager/useDialogManager';
|
|
4
4
|
|
|
@@ -22,7 +22,7 @@ export const handleSendCode = async ({
|
|
|
22
22
|
setAttemps,
|
|
23
23
|
}: HandleSendCodeProps) => {
|
|
24
24
|
try {
|
|
25
|
-
await
|
|
25
|
+
await sendCode({
|
|
26
26
|
phoneNumber: phoneNumber,
|
|
27
27
|
smsCodesSetName: { key: 'AUTHENTICATION' },
|
|
28
28
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useEffect, useMemo, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
-
import {
|
|
2
|
+
import { checkCode } from '../../api/RetailAPI/checkCode';
|
|
3
3
|
|
|
4
4
|
type useVerifyPhoneDialogSubmitProps = {
|
|
5
5
|
values: string[];
|
|
@@ -35,7 +35,7 @@ export const useVerifyPhoneDialogSubmit = ({ close, values }: useVerifyPhoneDial
|
|
|
35
35
|
setTimeNextReq(0);
|
|
36
36
|
setAttemps(attemps + 1);
|
|
37
37
|
setIsLoading(true);
|
|
38
|
-
await
|
|
38
|
+
await checkCode({
|
|
39
39
|
smsText: values.join(''),
|
|
40
40
|
smsCodesSetName: { key: 'AUTHENTICATION' },
|
|
41
41
|
});
|
package/package.json
CHANGED
package/src/api/FileStorage.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type JSONRecord, type JSONScalar } from '@redneckz/json-op';
|
|
2
2
|
import { formatDate } from '../utils/formatDate';
|
|
3
3
|
import { formatPhone } from '../utils/formatPhone';
|
|
4
|
+
import { API_BASE_URI } from './apiBaseUrl';
|
|
4
5
|
|
|
5
6
|
export type LeadRequest = Record<string, JSONRecord | JSONScalar | null> & {
|
|
6
7
|
typeForm?: string;
|
|
@@ -29,7 +30,7 @@ export function LeadServiceAPI() {
|
|
|
29
30
|
...staticBody
|
|
30
31
|
} = body;
|
|
31
32
|
const isNaturalPerson = isIndividualType && serviceDirection !== 'Юридическое лицо / ИП';
|
|
32
|
-
const url = isNaturalPerson ? '/
|
|
33
|
+
const url = `${API_BASE_URI}${isNaturalPerson ? '/lead' : '/sendcorporatelead'}`;
|
|
33
34
|
const submitBody = {
|
|
34
35
|
typeForm,
|
|
35
36
|
...getRegion(region, isNaturalPerson),
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { fetchJSON } from '../../utils/fetchJSON';
|
|
2
|
+
import { API_BASE_URI } from '../apiBaseUrl';
|
|
3
|
+
|
|
4
|
+
const OUT_SERVICE_BASE_URL = `${API_BASE_URI}/outservice`;
|
|
5
|
+
|
|
6
|
+
export interface Region {
|
|
7
|
+
id?: number;
|
|
8
|
+
code?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
slug?: string;
|
|
11
|
+
localities?: string[];
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const EMPTY_REGIONS: Region[] = [];
|
|
15
|
+
|
|
16
|
+
export async function getOutServiceRegions(): Promise<Region[]> {
|
|
17
|
+
const data = await fetchJSON(`${OUT_SERVICE_BASE_URL}/outserviceregions`);
|
|
18
|
+
|
|
19
|
+
return data && Array.isArray(data) ? data : EMPTY_REGIONS;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type StatusType = 'OK' | 'ERROR';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { doRequest } from './doRequest';
|
|
2
|
+
|
|
3
|
+
export type CheckCodeBody = {
|
|
4
|
+
smsText: string;
|
|
5
|
+
smsCodesSetName: {
|
|
6
|
+
key: 'AUTHENTICATION' | 'SEND_TASK';
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export type CheckCodeResponse = {
|
|
11
|
+
access_token: string;
|
|
12
|
+
expires_in: number;
|
|
13
|
+
refresh_token: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export const checkCode = async (body: CheckCodeBody) =>
|
|
17
|
+
doRequest<CheckCodeResponse>('/sms/checkCode', 'POST', body).then(saveToken);
|
|
18
|
+
|
|
19
|
+
const saveToken = (data: CheckCodeResponse) => {
|
|
20
|
+
globalThis.sessionStorage.setItem('accessToken', data.access_token);
|
|
21
|
+
globalThis.sessionStorage.setItem('refreshToken', data.refresh_token);
|
|
22
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { doRequest } from './doRequest';
|
|
2
|
+
|
|
3
|
+
export type CreateDraftTaskBody = {
|
|
4
|
+
profileId: number;
|
|
5
|
+
programId: string;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export type CreateDraftTaskResponse = {
|
|
9
|
+
taskId: number;
|
|
10
|
+
participantId: number;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const createDraftTask = (body: CreateDraftTaskBody) =>
|
|
14
|
+
doRequest<CreateDraftTaskResponse>('/user-data/createDraftTask', 'POST', body);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { doRequest } from './doRequest';
|
|
2
|
+
|
|
3
|
+
export interface RetailUserProfile {
|
|
4
|
+
id?: number;
|
|
5
|
+
phone?: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
interface CreateUserProfileType {
|
|
9
|
+
profile: RetailUserProfile;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const createUserProfile = (body: CreateUserProfileType) =>
|
|
13
|
+
doRequest<CreateUserProfileType>('/public-data/createUserProfile', 'POST', body);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { API_BASE_URI } from '../apiBaseUrl';
|
|
2
|
+
|
|
3
|
+
export async function doRequest<R>(
|
|
4
|
+
url: string,
|
|
5
|
+
method: 'POST' | 'GET' | 'PUT',
|
|
6
|
+
body?: any,
|
|
7
|
+
): Promise<R> {
|
|
8
|
+
const response = await fetch(
|
|
9
|
+
`https://retail-light-api.cprb.dev.rshbdev.ru/${API_BASE_URI}${url}`,
|
|
10
|
+
{
|
|
11
|
+
method,
|
|
12
|
+
headers: {
|
|
13
|
+
'Content-Type': 'application/json',
|
|
14
|
+
...getAthorizationHeaders(),
|
|
15
|
+
},
|
|
16
|
+
credentials: 'include',
|
|
17
|
+
body: body ? JSON.stringify(body) : null,
|
|
18
|
+
},
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
return isJSON(response) ? response.json() : response.text();
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// TODO: Need delete isJSON
|
|
25
|
+
const isJSON = (response: Response) => response.headers.get('Content-Type') === 'application/json';
|
|
26
|
+
|
|
27
|
+
const getAthorizationHeaders = () => {
|
|
28
|
+
const token = sessionStorage.getItem('accessToken');
|
|
29
|
+
|
|
30
|
+
return token ? { Authorization: `Bearer ${token}` } : null;
|
|
31
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { doRequest } from './doRequest';
|
|
2
|
+
import { type StatusType } from './StatusType';
|
|
3
|
+
|
|
4
|
+
export type SendCodeBody = {
|
|
5
|
+
phoneNumber: string;
|
|
6
|
+
smsCodesSetName: {
|
|
7
|
+
key: 'AUTHENTICATION' | 'SEND_TASK';
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export const sendCode = (body: SendCodeBody) =>
|
|
12
|
+
doRequest<StatusType | { errorMessage: string }>('/sms/sendCode', 'POST', body);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { doRequest } from './doRequest';
|
|
2
|
+
import { type CreateUserProfileResponse } from './updateUserTask';
|
|
3
|
+
|
|
4
|
+
export type UpdateUserProfileBody = {
|
|
5
|
+
profile: {
|
|
6
|
+
id: number;
|
|
7
|
+
phone?: string;
|
|
8
|
+
email?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
surname?: string;
|
|
11
|
+
midname?: string;
|
|
12
|
+
birthDate?: string;
|
|
13
|
+
processPersonalDataLeadFlg?: boolean;
|
|
14
|
+
consentProviderFlg?: boolean;
|
|
15
|
+
consentPfrFlg?: boolean;
|
|
16
|
+
consentPhotoFlg?: boolean;
|
|
17
|
+
consentAssignmentClaimsFlg?: boolean;
|
|
18
|
+
consentCollectionFlg?: boolean;
|
|
19
|
+
consentInformFlg?: boolean;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export const updateUserProfile = (body: UpdateUserProfileBody) =>
|
|
24
|
+
doRequest<CreateUserProfileResponse>('/user-data/updateUserProfile', 'POST', body);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { doRequest } from './doRequest';
|
|
2
|
+
|
|
3
|
+
export type UpdateUserTaskBody = {
|
|
4
|
+
sendToBank: boolean;
|
|
5
|
+
taskKind: 'SHORT' | 'FULL' | 'UNITED';
|
|
6
|
+
task: {
|
|
7
|
+
taskSource: string;
|
|
8
|
+
id: number;
|
|
9
|
+
participants: [
|
|
10
|
+
{
|
|
11
|
+
birthDate: string;
|
|
12
|
+
id: number;
|
|
13
|
+
midname: string;
|
|
14
|
+
name: string;
|
|
15
|
+
surname: string;
|
|
16
|
+
profile: {
|
|
17
|
+
id: number;
|
|
18
|
+
};
|
|
19
|
+
participantContacts: Array<{
|
|
20
|
+
contactTypeCd: {
|
|
21
|
+
key: 'EMAIL' | 'MAIN_PHONE';
|
|
22
|
+
};
|
|
23
|
+
value: string;
|
|
24
|
+
}>;
|
|
25
|
+
roleCd: {
|
|
26
|
+
key: string;
|
|
27
|
+
value: string;
|
|
28
|
+
};
|
|
29
|
+
},
|
|
30
|
+
];
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type CreateUserProfileResponse = {
|
|
35
|
+
profile: {
|
|
36
|
+
id: number;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export const updateUserTask = (body: UpdateUserTaskBody) =>
|
|
41
|
+
doRequest<CreateUserProfileResponse>('/user-data/updateUserTask', 'PUT', body);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type FormState } from '../../../components/ApplicationLeadForm/getInitialFormState';
|
|
2
2
|
import { formatDate } from '../../../utils/formatDate';
|
|
3
3
|
import { formatPhone } from '../../../utils/formatPhone';
|
|
4
|
-
import { type UpdateUserProfileBody } from '../
|
|
4
|
+
import { type UpdateUserProfileBody } from '../updateUserProfile';
|
|
5
5
|
|
|
6
6
|
export const getUpdateUserProfileData = (
|
|
7
7
|
profileId: number,
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
import { type UpdateUserTaskBody } from '../
|
|
1
|
+
import { type UpdateUserTaskBody } from '../updateUserTask';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
type getUpdateUserTaskDataType = {
|
|
4
|
+
participantId: number;
|
|
5
|
+
taskId: number;
|
|
6
|
+
profileId: number;
|
|
7
|
+
formData?: Record<string, any>;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export const getUpdateUserTaskData = ({
|
|
11
|
+
participantId,
|
|
12
|
+
taskId,
|
|
13
|
+
profileId,
|
|
14
|
+
formData,
|
|
15
|
+
}: getUpdateUserTaskDataType): UpdateUserTaskBody => ({
|
|
10
16
|
sendToBank: true,
|
|
11
17
|
taskKind: 'SHORT',
|
|
12
18
|
task: {
|
|
@@ -14,11 +20,11 @@ export const getUpdateUserTaskData = (
|
|
|
14
20
|
id: taskId,
|
|
15
21
|
participants: [
|
|
16
22
|
{
|
|
17
|
-
birthDate:
|
|
23
|
+
birthDate: formData?.birthDate,
|
|
18
24
|
id: participantId,
|
|
19
|
-
midname:
|
|
20
|
-
name:
|
|
21
|
-
surname:
|
|
25
|
+
midname: formData?.midname,
|
|
26
|
+
name: formData?.name,
|
|
27
|
+
surname: formData?.surname,
|
|
22
28
|
profile: {
|
|
23
29
|
id: profileId,
|
|
24
30
|
},
|
|
@@ -27,13 +33,13 @@ export const getUpdateUserTaskData = (
|
|
|
27
33
|
contactTypeCd: {
|
|
28
34
|
key: 'EMAIL',
|
|
29
35
|
},
|
|
30
|
-
value:
|
|
36
|
+
value: formData?.email,
|
|
31
37
|
},
|
|
32
38
|
{
|
|
33
39
|
contactTypeCd: {
|
|
34
40
|
key: 'MAIN_PHONE',
|
|
35
41
|
},
|
|
36
|
-
value:
|
|
42
|
+
value: formData?.phone,
|
|
37
43
|
},
|
|
38
44
|
],
|
|
39
45
|
roleCd: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const API_BASE_URI = '/api/v1';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { API_BASE_URI } from '../apiBaseUrl';
|
|
1
2
|
import { type DaDataSuggestion, type ListRequestOption } from './dadataHintsType';
|
|
2
3
|
|
|
3
4
|
const DEFAULT_HINTS_COUNT = 10;
|
|
@@ -31,7 +32,7 @@ export const getDaDataHints = (options: ListRequestOption): Promise<Array<DaData
|
|
|
31
32
|
const queryPrefixValue = queryPrefix ? `${queryPrefix}, ` : '';
|
|
32
33
|
const combinedQuery = `${queryPrefixValue}${query}`;
|
|
33
34
|
|
|
34
|
-
const result = fetch(
|
|
35
|
+
const result = fetch(`${API_BASE_URI}/suggestions/${url}`, {
|
|
35
36
|
method: 'POST',
|
|
36
37
|
mode: 'cors',
|
|
37
38
|
headers: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { API_BASE_URI } from '../../api/apiBaseUrl';
|
|
2
2
|
|
|
3
|
+
const OUT_SERVICE_URL = `${API_BASE_URI}/outservice/outserviceregions`;
|
|
3
4
|
export const getRegionUrl = (typeForm?: string) =>
|
|
4
5
|
typeForm === 'OUTSERVICE' ? OUT_SERVICE_URL : undefined;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { createDraftTask } from '../../api/RetailAPI/createDraftTask';
|
|
3
|
+
import { createUserProfile } from '../../api/RetailAPI/createUserProfile';
|
|
4
|
+
import { updateUserProfile } from '../../api/RetailAPI/updateUserProfile';
|
|
5
|
+
import { updateUserTask } from '../../api/RetailAPI/updateUserTask';
|
|
6
|
+
import { getUpdateUserProfileData } from '../../api/RetailAPI/utils/getUpdateUserProfile';
|
|
7
|
+
import { getUpdateUserTaskData } from '../../api/RetailAPI/utils/getUpdateUserTask';
|
|
5
8
|
import { useLocalStorage } from '../../hooks/useLocalStorage';
|
|
6
9
|
import { getObjectValidator } from '../../ui-kit/FormField/getObjectValidator';
|
|
7
10
|
import { useVerifyPhoneDialog } from '../../ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog';
|
|
@@ -38,7 +41,7 @@ export const useApplicationLeadApi = ({ inputs, programId, saveForm }: Applicati
|
|
|
38
41
|
}
|
|
39
42
|
|
|
40
43
|
try {
|
|
41
|
-
const { profile } = await
|
|
44
|
+
const { profile } = await createUserProfile({
|
|
42
45
|
profile: { phone: formatPhone(formData.phone as string) },
|
|
43
46
|
});
|
|
44
47
|
const profileId = profile?.id;
|
|
@@ -46,14 +49,14 @@ export const useApplicationLeadApi = ({ inputs, programId, saveForm }: Applicati
|
|
|
46
49
|
if (profileId && formData?.phone) {
|
|
47
50
|
const handleSuccessVerify = async () => {
|
|
48
51
|
try {
|
|
49
|
-
await
|
|
50
|
-
const { taskId, participantId } = await
|
|
52
|
+
await updateUserProfile(getUpdateUserProfileData(profileId, formData));
|
|
53
|
+
const { taskId, participantId } = await createDraftTask({
|
|
51
54
|
profileId,
|
|
52
55
|
programId,
|
|
53
56
|
});
|
|
54
57
|
|
|
55
|
-
await
|
|
56
|
-
getUpdateUserTaskData(participantId, taskId, profileId, formData),
|
|
58
|
+
await updateUserTask(
|
|
59
|
+
getUpdateUserTaskData({ participantId, taskId, profileId, formData }),
|
|
57
60
|
);
|
|
58
61
|
saveUserData(participantId, taskId, profileId);
|
|
59
62
|
saveForm(JSON.stringify(formData));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
|
|
2
|
+
import { API_BASE_URI } from '../../api/apiBaseUrl';
|
|
2
3
|
import { fetchJSONUnsafe, type FetchJSONUnsafeType } from '../../utils/fetchJSON';
|
|
3
4
|
import { type RateParamsDef } from './CalculatorBusinessDepositContent';
|
|
4
5
|
import { type BusinessDepositCalculatorSourceBookParams } from './useBusinessDepositParams';
|
|
@@ -14,7 +15,7 @@ export function useBusinessDepositRates(rateParams?: RateParamsDef): CalculatorB
|
|
|
14
15
|
const serviceName = rateParams?.rateType ? DEPOSIT_RATES_SERVICE_MAP[rateParams?.rateType] : '';
|
|
15
16
|
|
|
16
17
|
const { data } = useAsyncData(
|
|
17
|
-
serviceName ?
|
|
18
|
+
serviceName ? `${API_BASE_URI}/depositrates/${serviceName}` : null,
|
|
18
19
|
fetchJSONUnsafe as FetchJSONUnsafeType<CalculatorBusinessDepositData>,
|
|
19
20
|
);
|
|
20
21
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { API_BASE_URI } from '../../api/apiBaseUrl';
|
|
1
2
|
import { useLink } from '../../hooks/useLink';
|
|
2
3
|
import { Text } from '../../ui-kit/Text/Text';
|
|
3
4
|
import { formatDate } from '../../utils/formatDate';
|
|
@@ -6,7 +7,7 @@ import { type DepositoryDataItem } from './useDepository';
|
|
|
6
7
|
|
|
7
8
|
export const DepositoryItem = ({ title, timestamp, publicId }: DepositoryDataItem) => {
|
|
8
9
|
const link = useLink();
|
|
9
|
-
const { href } = link({ href:
|
|
10
|
+
const { href } = link({ href: `${API_BASE_URI}/depository/${publicId}/file` });
|
|
10
11
|
|
|
11
12
|
return (
|
|
12
13
|
<div
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
|
|
2
|
+
import { API_BASE_URI } from '../../api/apiBaseUrl';
|
|
2
3
|
import { fetchJSONUnsafe, type FetchJSONUnsafeType } from '../../utils/fetchJSON';
|
|
3
4
|
import { formatDate } from '../../utils/formatDate';
|
|
4
5
|
import { type DepositoryFiltrationState } from './Depository';
|
|
@@ -19,7 +20,8 @@ interface UseDepositoryParams extends DepositoryFiltrationState {
|
|
|
19
20
|
size: number;
|
|
20
21
|
page: number;
|
|
21
22
|
}
|
|
22
|
-
|
|
23
|
+
|
|
24
|
+
const DEPOSITARY_URL = `${API_BASE_URI}/depository`;
|
|
23
25
|
|
|
24
26
|
export const useDepository = ({ size, page, query, startDate, endDate }: UseDepositoryParams) => {
|
|
25
27
|
const formatStartDate = startDate ? formatDate(startDate, true) : '';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
|
|
2
|
+
import { API_BASE_URI } from '../../api/apiBaseUrl';
|
|
2
3
|
import { type ExchangeCurrencyItem } from '../../components/ExchangeRateTile/ExchangeCurrencyCalculator';
|
|
3
4
|
import { type Region } from '../../hooks/useRegions';
|
|
4
5
|
import { fetchJSONUnsafe, type FetchJSONUnsafeType } from '../../utils/fetchJSON';
|
|
@@ -10,7 +11,7 @@ export interface ExchangeData {
|
|
|
10
11
|
address?: string;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
|
-
const EXCHANGE_RATES_URL =
|
|
14
|
+
const EXCHANGE_RATES_URL = `${API_BASE_URI}/exchangerates`;
|
|
14
15
|
|
|
15
16
|
export function useFetchExchangeRateData(currentRegion: Region) {
|
|
16
17
|
const regionCode = currentRegion?.code || '000';
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
|
|
2
|
+
import { API_BASE_URI } from '../../api/apiBaseUrl';
|
|
2
3
|
import { fetchJSON } from '../../utils/fetchJSON';
|
|
3
4
|
import { type Atm } from './OfficesAtmsMapProps';
|
|
4
5
|
|
|
5
6
|
const EMPTY_VALUE = [];
|
|
6
7
|
|
|
7
8
|
export function useAtms(regionCode?: string) {
|
|
8
|
-
const { data, error } = useAsyncData(
|
|
9
|
+
const { data, error } = useAsyncData(`${API_BASE_URI}/atms?regionCode=${regionCode}`, fetchMap);
|
|
9
10
|
const isLoad = !data && !error;
|
|
10
11
|
|
|
11
12
|
return { data: data || EMPTY_VALUE, isLoad };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
|
|
2
|
+
import { API_BASE_URI } from '../../api/apiBaseUrl';
|
|
2
3
|
import { fetchJSON } from '../../utils/fetchJSON';
|
|
3
4
|
import { type Branch, type RemoteWorkplace } from './OfficesAtmsMapProps';
|
|
4
5
|
|
|
5
6
|
const EMPTY_VALUE = { branches: [], remoteWorkplaces: [] };
|
|
6
7
|
|
|
7
|
-
export function useOffices(regionCode
|
|
8
|
+
export function useOffices(regionCode = '000') {
|
|
8
9
|
const { data, error } = useAsyncData(
|
|
9
|
-
|
|
10
|
+
`${API_BASE_URI}/branchesAndRemoteWorkplaces?regionCode=${encodeURIComponent(regionCode)}`,
|
|
10
11
|
fetchMap,
|
|
11
12
|
);
|
|
12
13
|
const isLoad = !data && !error;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
|
|
2
|
+
import { API_BASE_URI } from '../../api/apiBaseUrl';
|
|
2
3
|
import { fetchJSONUnsafe, type FetchJSONUnsafeType } from '../../utils/fetchJSON';
|
|
3
4
|
|
|
4
|
-
const REGIONS_URL =
|
|
5
|
+
const REGIONS_URL = `${API_BASE_URI}/regions`;
|
|
5
6
|
|
|
6
7
|
export interface Region {
|
|
7
8
|
id?: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
|
|
2
|
+
import { API_BASE_URI } from '../../api/apiBaseUrl';
|
|
2
3
|
import { fetchJSON } from '../../utils/fetchJSON';
|
|
3
4
|
|
|
4
5
|
export interface Tariff {
|
|
@@ -24,7 +25,7 @@ export interface Branch {
|
|
|
24
25
|
safeBoxCaseVolumes?: SafeBoxCaseVolume[];
|
|
25
26
|
}
|
|
26
27
|
|
|
27
|
-
const SAFEBOXES_URL =
|
|
28
|
+
const SAFEBOXES_URL = `${API_BASE_URI}/safeboxes`;
|
|
28
29
|
const EMPTY_VALUE = [];
|
|
29
30
|
|
|
30
31
|
export function useSafeBoxes(regionCode?: string): Branch[] {
|
package/src/hooks/useBranches.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
|
|
2
|
+
import { API_BASE_URI } from '../api/apiBaseUrl';
|
|
2
3
|
import { fetchJSON } from '../utils/fetchJSON';
|
|
3
4
|
|
|
4
5
|
export interface Tariff {
|
|
@@ -24,7 +25,7 @@ export interface Branch {
|
|
|
24
25
|
safeBoxCaseVolumes?: SafeBoxCaseVolume[];
|
|
25
26
|
}
|
|
26
27
|
|
|
27
|
-
const BRANCHES_URL =
|
|
28
|
+
const BRANCHES_URL = `${API_BASE_URI}/branches`;
|
|
28
29
|
const EMPTY_VALUE = [];
|
|
29
30
|
|
|
30
31
|
export function useBranches(regionCode?: string): Branch[] {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
|
|
2
|
+
import { API_BASE_URI } from '../api/apiBaseUrl';
|
|
2
3
|
import { fetchJSONUnsafe, type FetchJSONUnsafeType } from '../utils/fetchJSON';
|
|
3
4
|
|
|
4
|
-
const REGIONS_URL = '/
|
|
5
|
-
const PREMIUM_REGIONS_URL = '/
|
|
5
|
+
const REGIONS_URL = '/branchesByRegions';
|
|
6
|
+
const PREMIUM_REGIONS_URL = '/premiumBranchesByRegions';
|
|
6
7
|
|
|
7
8
|
export interface Region {
|
|
8
9
|
region: string;
|
|
@@ -14,7 +15,7 @@ export interface Region {
|
|
|
14
15
|
|
|
15
16
|
export function useBranchesByRegions(isPremium = false): Region[] {
|
|
16
17
|
const { data } = useAsyncData(
|
|
17
|
-
isPremium ? PREMIUM_REGIONS_URL : REGIONS_URL
|
|
18
|
+
`${API_BASE_URI}${isPremium ? PREMIUM_REGIONS_URL : REGIONS_URL}`,
|
|
18
19
|
fetchJSONUnsafe as FetchJSONUnsafeType<Region[]>,
|
|
19
20
|
);
|
|
20
21
|
|
|
@@ -8,7 +8,9 @@ type ErrorProps = {
|
|
|
8
8
|
|
|
9
9
|
export const useLeadFormData = (typeField: string) => {
|
|
10
10
|
const { data, error } = useAsyncData(
|
|
11
|
-
`https://portal-ui-cc.cprb.dev.rshbdev.ru/light-api-cash/v1/dictionary?dictionaryType=${
|
|
11
|
+
`https://portal-ui-cc.cprb.dev.rshbdev.ru/light-api-cash/v1/dictionary?dictionaryType=${encodeURIComponent(
|
|
12
|
+
typeField,
|
|
13
|
+
)}`,
|
|
12
14
|
fetchData,
|
|
13
15
|
);
|
|
14
16
|
if (data && 'errorMessage' in data) {
|
package/src/hooks/useLocation.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { useCallback, useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
2
|
import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
|
|
3
|
+
import { API_BASE_URI } from '../api/apiBaseUrl';
|
|
3
4
|
import { defaultEventBus } from '../EventBus/defaultEventBus';
|
|
4
5
|
import { useLatestEvent } from '../EventBus/useLatestEvent';
|
|
5
6
|
import { fetchJSONUnsafe, type FetchJSONUnsafeType } from '../utils/fetchJSON';
|
|
6
7
|
import { type Region } from './useRegions';
|
|
7
8
|
|
|
8
|
-
const REGION_URL =
|
|
9
|
+
const REGION_URL = `${API_BASE_URI}/region`;
|
|
9
10
|
const LOCATION_STORAGE_KEY = 'location';
|
|
10
11
|
|
|
11
12
|
export function useLocation(defaultLocation = 'Москва'): [Region, (_: Region) => void] {
|
package/src/hooks/useRegions.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
|
|
2
|
+
import { API_BASE_URI } from '../api/apiBaseUrl';
|
|
2
3
|
import { fetchJSONUnsafe, type FetchJSONUnsafeType } from '../utils/fetchJSON';
|
|
3
4
|
|
|
4
|
-
const REGIONS_URL =
|
|
5
|
+
const REGIONS_URL = `${API_BASE_URI}/regions`;
|
|
5
6
|
|
|
6
7
|
export interface Region {
|
|
7
8
|
id?: number;
|