@redneckz/wildless-cms-uni-blocks 0.14.605 → 0.14.607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +128 -116
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/getRegionUrl.d.ts +1 -1
- package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +4 -3
- 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/NameFieldDef.d.ts +1 -1
- 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/consents.js +4 -12
- package/dist/components/ApplicationLeadForm/consents.js.map +1 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +4 -3
- package/dist/components/ApplicationLeadForm/getInitialFormState.js +1 -3
- package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +25 -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/NameFieldDef.d.ts +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/FormField/getField.js +1 -3
- package/dist/ui-kit/FormField/getField.js.map +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +1 -3
- package/dist/ui-kit/FormField/getObjectValidator.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/consents.js +4 -12
- package/lib/components/ApplicationLeadForm/consents.js.map +1 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +4 -3
- package/lib/components/ApplicationLeadForm/getInitialFormState.js +1 -3
- package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +25 -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/NameFieldDef.d.ts +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/FormField/getField.js +1 -3
- package/lib/ui-kit/FormField/getField.js.map +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +1 -3
- package/lib/ui-kit/FormField/getObjectValidator.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 +128 -116
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/getRegionUrl.d.ts +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +4 -3
- 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/NameFieldDef.d.ts +1 -1
- 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/consents.js +4 -12
- package/mobile/dist/components/ApplicationLeadForm/consents.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +4 -3
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +1 -3
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +25 -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/NameFieldDef.d.ts +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/FormField/getField.js +1 -3
- package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +1 -3
- package/mobile/dist/ui-kit/FormField/getObjectValidator.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/consents.js +4 -12
- package/mobile/lib/components/ApplicationLeadForm/consents.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +4 -3
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +1 -3
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +25 -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/NameFieldDef.d.ts +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/FormField/getField.js +1 -3
- package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +1 -3
- package/mobile/lib/ui-kit/FormField/getObjectValidator.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 +28 -0
- package/mobile/src/api/RetailAPI/feedbackById.ts +7 -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/ApplicationLeadForm.example.json +2 -12
- package/mobile/src/components/ApplicationLeadForm/consents.ts +4 -12
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +5 -6
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +29 -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 +1 -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/NameFieldDef.ts +1 -3
- package/mobile/src/ui-kit/FormField/constants.tsx +0 -2
- package/mobile/src/ui-kit/FormField/getField.tsx +1 -3
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +1 -3
- 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 +28 -0
- package/src/api/RetailAPI/feedbackById.ts +7 -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/ApplicationLeadForm.example.json +2 -12
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.mobile.tsx +2 -4
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.tsx +1 -3
- package/src/components/ApplicationLeadForm/consents.ts +4 -12
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +5 -6
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +29 -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 +1 -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/NameFieldDef.ts +1 -3
- package/src/ui-kit/FormField/constants.tsx +0 -2
- package/src/ui-kit/FormField/getField.tsx +1 -3
- package/src/ui-kit/FormField/getObjectValidator.tsx +1 -3
- 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
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: {
|
|
@@ -1499,10 +1488,8 @@
|
|
|
1499
1488
|
consentToReceiveMaterials: agreementValidator,
|
|
1500
1489
|
processPersonalDataLeadFlg: agreementValidator,
|
|
1501
1490
|
consentProviderFlg: agreementValidator,
|
|
1502
|
-
consentPhotoFlg: agreementValidator,
|
|
1503
1491
|
consentPfrFlg: agreementValidator,
|
|
1504
|
-
|
|
1505
|
-
consentCollectionFlg: agreementValidator,
|
|
1492
|
+
consentOthersFlg: agreementValidator,
|
|
1506
1493
|
consentInformFlg: agreementValidator,
|
|
1507
1494
|
familyStatus: defaultValidator('Выберите семейное положение'),
|
|
1508
1495
|
children: lengthStringValidator(2, 'Укажите количество детей'),
|
|
@@ -1630,7 +1617,7 @@
|
|
|
1630
1617
|
}
|
|
1631
1618
|
}
|
|
1632
1619
|
|
|
1633
|
-
const BRANCHES_URL =
|
|
1620
|
+
const BRANCHES_URL = `${API_BASE_URI}/branches`;
|
|
1634
1621
|
const EMPTY_VALUE$3 = [];
|
|
1635
1622
|
function useBranches(regionCode) {
|
|
1636
1623
|
const { data } = useAsyncData(regionCode ? `${BRANCHES_URL}?regionCode=${regionCode}` : null, fetchSafeBoxes$1);
|
|
@@ -1641,10 +1628,10 @@
|
|
|
1641
1628
|
return result || EMPTY_VALUE$3;
|
|
1642
1629
|
};
|
|
1643
1630
|
|
|
1644
|
-
const REGIONS_URL$1 = '/
|
|
1645
|
-
const PREMIUM_REGIONS_URL = '/
|
|
1631
|
+
const REGIONS_URL$1 = '/branchesByRegions';
|
|
1632
|
+
const PREMIUM_REGIONS_URL = '/premiumBranchesByRegions';
|
|
1646
1633
|
function useBranchesByRegions(isPremium = false) {
|
|
1647
|
-
const { data } = useAsyncData(isPremium ? PREMIUM_REGIONS_URL : REGIONS_URL$1
|
|
1634
|
+
const { data } = useAsyncData(`${API_BASE_URI}${isPremium ? PREMIUM_REGIONS_URL : REGIONS_URL$1}`, fetchJSONUnsafe);
|
|
1648
1635
|
return Array.isArray(data) ? data : [];
|
|
1649
1636
|
}
|
|
1650
1637
|
|
|
@@ -1730,7 +1717,7 @@
|
|
|
1730
1717
|
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
1718
|
|
|
1732
1719
|
const useLeadFormData = (typeField) => {
|
|
1733
|
-
const { data, error } = useAsyncData(
|
|
1720
|
+
const { data, error } = useAsyncData(`/api/v1/dictionary?dictionaryType=${encodeURIComponent(typeField)}`, fetchData);
|
|
1734
1721
|
if (data && 'errorMessage' in data) {
|
|
1735
1722
|
return { error };
|
|
1736
1723
|
}
|
|
@@ -1991,18 +1978,6 @@
|
|
|
1991
1978
|
text: 'Согласие на запрос в ПФР',
|
|
1992
1979
|
docId: 3,
|
|
1993
1980
|
},
|
|
1994
|
-
consentPhotoFlg: {
|
|
1995
|
-
text: 'Прочие согласия (согласие на фотографирование)',
|
|
1996
|
-
docId: 1,
|
|
1997
|
-
},
|
|
1998
|
-
consentAssignmentClaimsFlg: {
|
|
1999
|
-
text: 'Прочие согласия (согласие на уступку прав требований)',
|
|
2000
|
-
docId: 1,
|
|
2001
|
-
},
|
|
2002
|
-
consentCollectionFlg: {
|
|
2003
|
-
text: 'Прочие согласия (согласие на взыскание по исполнительной надписи нотариуса)',
|
|
2004
|
-
docId: 1,
|
|
2005
|
-
},
|
|
2006
1981
|
consentInformFlg: {
|
|
2007
1982
|
text: 'Согласие на информирование о продуктах и услугах Банка',
|
|
2008
1983
|
docId: 14,
|
|
@@ -2010,6 +1985,10 @@
|
|
|
2010
1985
|
consentToReceiveMaterials: {
|
|
2011
1986
|
text: 'Согласен на получение информационных и аналитических материалов по электронной почте',
|
|
2012
1987
|
},
|
|
1988
|
+
consentOthersFlg: {
|
|
1989
|
+
text: 'Прочие согласия',
|
|
1990
|
+
docId: 1,
|
|
1991
|
+
},
|
|
2013
1992
|
};
|
|
2014
1993
|
|
|
2015
1994
|
const CloseButton = JSX(({ className, onClose }) => (jsx("button", { className: style('flex justify-center items-center w-12 h-12 p-2xs bg-transparent border-none', className), onClick: onClose, title: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C", type: "button", children: jsx(Icon, { name: "CloseIcon", width: "20", height: "20", iconVersion: "gray" }) })));
|
|
@@ -2023,51 +2002,33 @@
|
|
|
2023
2002
|
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
2003
|
});
|
|
2025
2004
|
|
|
2026
|
-
|
|
2027
|
-
|
|
2005
|
+
async function doRequest(url, method, body) {
|
|
2006
|
+
const response = await fetch(`${API_BASE_URI}${url}`, {
|
|
2007
|
+
method,
|
|
2008
|
+
headers: {
|
|
2009
|
+
'Content-Type': 'application/json',
|
|
2010
|
+
...getAuthorizationHeaders(),
|
|
2011
|
+
},
|
|
2012
|
+
credentials: 'include',
|
|
2013
|
+
body: body ? JSON.stringify(body) : null,
|
|
2014
|
+
});
|
|
2015
|
+
return isJSON(response) ? response.json() : response;
|
|
2016
|
+
}
|
|
2017
|
+
// TODO: Need delete isJSON
|
|
2018
|
+
const isJSON = (response) => response.headers.get('Content-Type') === 'application/json';
|
|
2019
|
+
const getAuthorizationHeaders = () => {
|
|
2028
2020
|
const token = sessionStorage.getItem('accessToken');
|
|
2029
2021
|
return token ? { Authorization: `Bearer ${token}` } : null;
|
|
2030
2022
|
};
|
|
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'),
|
|
2023
|
+
|
|
2024
|
+
const feedbackById = async (id) => {
|
|
2025
|
+
const response = await doRequest(`/feedback/file?id=${encodeURIComponent(id)}`, 'GET');
|
|
2026
|
+
return await response.blob();
|
|
2066
2027
|
};
|
|
2067
2028
|
|
|
2068
2029
|
const getDocument = async (id) => {
|
|
2069
|
-
const response = await
|
|
2070
|
-
return URL.createObjectURL(
|
|
2030
|
+
const response = await feedbackById(id);
|
|
2031
|
+
return URL.createObjectURL(response);
|
|
2071
2032
|
};
|
|
2072
2033
|
|
|
2073
2034
|
const OPEN_DOC_BUTTON_TEXT = 'Ознакомиться';
|
|
@@ -2153,6 +2114,19 @@
|
|
|
2153
2114
|
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
2115
|
});
|
|
2155
2116
|
|
|
2117
|
+
const SERVICE_TYPES = [
|
|
2118
|
+
{ key: 'ULTRASERVICE', text: 'Ультра' },
|
|
2119
|
+
{ key: 'PREMIUMSERVICE', text: 'Премиум' },
|
|
2120
|
+
];
|
|
2121
|
+
const SERVICE_DIRECTIONS = [
|
|
2122
|
+
{ key: 'Физическое лицо' },
|
|
2123
|
+
{ key: 'Юридическое лицо / ИП' },
|
|
2124
|
+
];
|
|
2125
|
+
const FEEDBACK_METHOD = [
|
|
2126
|
+
{ key: 'phone', text: 'Телефонный звонок' },
|
|
2127
|
+
{ key: 'email', text: 'Электронное сообщение' },
|
|
2128
|
+
];
|
|
2129
|
+
|
|
2156
2130
|
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
2131
|
|
|
2158
2132
|
const FullAddressField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0410\u0434\u0440\u0435\u0441", ...getValidation(field('fullAddress'), validatorObj.fullAddress, input?.required), ...input })));
|
|
@@ -2186,16 +2160,18 @@
|
|
|
2186
2160
|
|
|
2187
2161
|
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
2162
|
|
|
2189
|
-
const
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2163
|
+
const OUT_SERVICE_BASE_URL = `${API_BASE_URI}/outservice`;
|
|
2164
|
+
const EMPTY_REGIONS = [];
|
|
2165
|
+
async function getOutServiceRegions() {
|
|
2166
|
+
const data = await fetchJSON(`${OUT_SERVICE_BASE_URL}/outserviceregions`);
|
|
2167
|
+
return data && Array.isArray(data) ? data : EMPTY_REGIONS;
|
|
2193
2168
|
}
|
|
2194
2169
|
|
|
2195
2170
|
const LocalitiesField = JSX(({ field, input }) => {
|
|
2196
2171
|
const fieldRegion = field('region');
|
|
2197
2172
|
const regionKey = fieldRegion?.value?.key;
|
|
2198
|
-
const
|
|
2173
|
+
const { data: regions } = useAsyncData('outServiceRegions', getOutServiceRegions);
|
|
2174
|
+
const localities = regions
|
|
2199
2175
|
?.find((_) => _.code === regionKey)
|
|
2200
2176
|
?.localities?.map((_) => ({ key: _, text: _ }));
|
|
2201
2177
|
useEffect(() => {
|
|
@@ -2280,6 +2256,12 @@
|
|
|
2280
2256
|
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
2257
|
const arrayToOptions = (array) => (array ?? []).map((_) => ({ key: _, value: _ }));
|
|
2282
2258
|
|
|
2259
|
+
const REGIONS_URL = `${API_BASE_URI}/regions`;
|
|
2260
|
+
function useRegions(url = REGIONS_URL) {
|
|
2261
|
+
const { data } = useAsyncData(url, fetchJSONUnsafe);
|
|
2262
|
+
return Array.isArray(data) ? data : [];
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2283
2265
|
const RegionField = JSX(({ field, input, url }) => {
|
|
2284
2266
|
const regions = useRegions(url);
|
|
2285
2267
|
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) }));
|
|
@@ -2438,9 +2420,7 @@
|
|
|
2438
2420
|
consentToReceiveMaterials: jsx(ConsentField, { field: field, input: input }),
|
|
2439
2421
|
processPersonalDataLeadFlg: jsx(ConsentField, { field: field, input: input }),
|
|
2440
2422
|
consentProviderFlg: jsx(ConsentField, { field: field, input: input }),
|
|
2441
|
-
|
|
2442
|
-
consentAssignmentClaimsFlg: jsx(ConsentField, { field: field, input: input }),
|
|
2443
|
-
consentCollectionFlg: jsx(ConsentField, { field: field, input: input }),
|
|
2423
|
+
consentOthersFlg: jsx(ConsentField, { field: field, input: input }),
|
|
2444
2424
|
consentInformFlg: jsx(ConsentField, { field: field, input: input }),
|
|
2445
2425
|
consentPfrFlg: jsx(ConsentField, { field: field, input: input }),
|
|
2446
2426
|
applicationDate: (jsx(InputControl, { label: "\u0414\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u044F \u0432 \u0411\u0430\u043D\u043A", ...field('applicationDate') })),
|
|
@@ -2773,9 +2753,7 @@
|
|
|
2773
2753
|
consentDataProcessing: false,
|
|
2774
2754
|
processPersonalDataLeadFlg: false,
|
|
2775
2755
|
consentProviderFlg: false,
|
|
2776
|
-
|
|
2777
|
-
consentAssignmentClaimsFlg: false,
|
|
2778
|
-
consentCollectionFlg: false,
|
|
2756
|
+
consentOthersFlg: false,
|
|
2779
2757
|
consentInformFlg: false,
|
|
2780
2758
|
participantAddress: '',
|
|
2781
2759
|
participantDateRegistration: undefined,
|
|
@@ -2795,6 +2773,14 @@
|
|
|
2795
2773
|
|
|
2796
2774
|
const renderSubmitButton = (button, className) => (jsx(Button, { className: style('w-full @xl:w-auto', className), type: "submit", children: button?.text ? button.text : 'Отправить заявку' }));
|
|
2797
2775
|
|
|
2776
|
+
const createDraftTask = (body) => doRequest('/user-data/createDraftTask', 'POST', body);
|
|
2777
|
+
|
|
2778
|
+
const createUserProfile = (body) => doRequest('/public-data/createUserProfile', 'POST', body);
|
|
2779
|
+
|
|
2780
|
+
const updateUserProfile = (body) => doRequest('/user-data/updateUserProfile', 'POST', body);
|
|
2781
|
+
|
|
2782
|
+
const updateUserTask = (body) => doRequest('/user-data/updateUserTask', 'PUT', body);
|
|
2783
|
+
|
|
2798
2784
|
const getUpdateUserProfileData = (profileId, formData) => {
|
|
2799
2785
|
const { name = '', surname = '', middleName = '', birthday = '', phone = '', email = '', processPersonalDataLeadFlg, consentProviderFlg, consentPfrFlg, consentPhotoFlg, consentAssignmentClaimsFlg, consentCollectionFlg, consentInformFlg, } = formData;
|
|
2800
2786
|
return {
|
|
@@ -2817,8 +2803,7 @@
|
|
|
2817
2803
|
};
|
|
2818
2804
|
};
|
|
2819
2805
|
|
|
2820
|
-
|
|
2821
|
-
const getUpdateUserTaskData = (participantId, taskId, profileId, formatData) => ({
|
|
2806
|
+
const getUpdateUserTaskData = ({ participantId, taskId, profileId, formData, }) => ({
|
|
2822
2807
|
sendToBank: true,
|
|
2823
2808
|
taskKind: 'SHORT',
|
|
2824
2809
|
task: {
|
|
@@ -2826,11 +2811,11 @@
|
|
|
2826
2811
|
id: taskId,
|
|
2827
2812
|
participants: [
|
|
2828
2813
|
{
|
|
2829
|
-
birthDate:
|
|
2814
|
+
birthDate: formData?.birthDate,
|
|
2830
2815
|
id: participantId,
|
|
2831
|
-
midname:
|
|
2832
|
-
name:
|
|
2833
|
-
surname:
|
|
2816
|
+
midname: formData?.midname,
|
|
2817
|
+
name: formData?.name,
|
|
2818
|
+
surname: formData?.surname,
|
|
2834
2819
|
profile: {
|
|
2835
2820
|
id: profileId,
|
|
2836
2821
|
},
|
|
@@ -2839,13 +2824,13 @@
|
|
|
2839
2824
|
contactTypeCd: {
|
|
2840
2825
|
key: 'EMAIL',
|
|
2841
2826
|
},
|
|
2842
|
-
value:
|
|
2827
|
+
value: formData?.email,
|
|
2843
2828
|
},
|
|
2844
2829
|
{
|
|
2845
2830
|
contactTypeCd: {
|
|
2846
2831
|
key: 'MAIN_PHONE',
|
|
2847
2832
|
},
|
|
2848
|
-
value:
|
|
2833
|
+
value: formData?.phone,
|
|
2849
2834
|
},
|
|
2850
2835
|
],
|
|
2851
2836
|
roleCd: {
|
|
@@ -2887,8 +2872,10 @@
|
|
|
2887
2872
|
? children ?? (jsx("div", { className: "ml-s", children: jsx(Text, { font: "font-medium", color: TEXT_COLOR[bgColor], size: logoTitleSizeStyle, children: logo?.title ?? 'Россельхозбанк' }) }))
|
|
2888
2873
|
: null] })));
|
|
2889
2874
|
|
|
2890
|
-
const checkCaptcha =
|
|
2891
|
-
|
|
2875
|
+
const checkCaptcha = (body) => doRequest('/sms/checkCaptcha', 'POST', body);
|
|
2876
|
+
|
|
2877
|
+
const handleCheckCaptcha = async ({ code, setHasError, close, sendCode = noop, }) => {
|
|
2878
|
+
const response = await checkCaptcha({ captchaText: code });
|
|
2892
2879
|
if ((await response.text()) === 'ERROR') {
|
|
2893
2880
|
setHasError(true);
|
|
2894
2881
|
}
|
|
@@ -2898,8 +2885,10 @@
|
|
|
2898
2885
|
}
|
|
2899
2886
|
};
|
|
2900
2887
|
|
|
2901
|
-
const createCaptcha =
|
|
2902
|
-
|
|
2888
|
+
const createCaptcha = (phoneNumber) => doRequest(`/sms/createCaptcha?phoneNumber=${encodeURIComponent(phoneNumber)}`, 'GET');
|
|
2889
|
+
|
|
2890
|
+
const handleCreateCaptcha = async (setCaptcha, phoneNumber) => {
|
|
2891
|
+
const response = await createCaptcha(phoneNumber);
|
|
2903
2892
|
setCaptcha(URL.createObjectURL(await response.blob()));
|
|
2904
2893
|
};
|
|
2905
2894
|
|
|
@@ -2908,9 +2897,9 @@
|
|
|
2908
2897
|
const [code, setCode] = useState('');
|
|
2909
2898
|
const [hasError, setHasError] = useState(false);
|
|
2910
2899
|
useEffect(() => {
|
|
2911
|
-
|
|
2900
|
+
handleCreateCaptcha(setCaptcha, phoneNumber);
|
|
2912
2901
|
}, []);
|
|
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-
|
|
2902
|
+
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
2903
|
});
|
|
2915
2904
|
|
|
2916
2905
|
const useCaptchaDialog = (initialProps, onClose) => {
|
|
@@ -2946,9 +2935,11 @@
|
|
|
2946
2935
|
return `${minutes}:${seconds}`;
|
|
2947
2936
|
};
|
|
2948
2937
|
|
|
2938
|
+
const sendCode = (body) => doRequest('/sms/sendCode', 'POST', body);
|
|
2939
|
+
|
|
2949
2940
|
const handleSendCode = async ({ phoneNumber, captchaDialog, setTimeNextReq, setIsTimerStarted, setAttemps, }) => {
|
|
2950
2941
|
try {
|
|
2951
|
-
await
|
|
2942
|
+
await sendCode({
|
|
2952
2943
|
phoneNumber: phoneNumber,
|
|
2953
2944
|
smsCodesSetName: { key: 'AUTHENTICATION' },
|
|
2954
2945
|
});
|
|
@@ -3007,6 +2998,12 @@
|
|
|
3007
2998
|
return (jsx(Button, { type: "button", onClick: onClick, disabled: isDisabled, children: jsx(Text, { font: "font-medium", children: text }) }));
|
|
3008
2999
|
});
|
|
3009
3000
|
|
|
3001
|
+
const checkCode = async (body) => doRequest('/sms/checkCode', 'POST', body).then(saveToken);
|
|
3002
|
+
const saveToken = (data) => {
|
|
3003
|
+
globalThis.sessionStorage.setItem('accessToken', data.access_token);
|
|
3004
|
+
globalThis.sessionStorage.setItem('refreshToken', data.refresh_token);
|
|
3005
|
+
};
|
|
3006
|
+
|
|
3010
3007
|
const useVerifyPhoneDialogSubmit = ({ close, values }) => {
|
|
3011
3008
|
const [hasError, setHasError] = useState(false);
|
|
3012
3009
|
const [errorText, setErrorText] = useState('');
|
|
@@ -3026,7 +3023,7 @@
|
|
|
3026
3023
|
setTimeNextReq(0);
|
|
3027
3024
|
setAttemps(attemps + 1);
|
|
3028
3025
|
setIsLoading(true);
|
|
3029
|
-
await
|
|
3026
|
+
await checkCode({
|
|
3030
3027
|
smsText: values.join(''),
|
|
3031
3028
|
smsCodesSetName: { key: 'AUTHENTICATION' },
|
|
3032
3029
|
});
|
|
@@ -3107,19 +3104,25 @@
|
|
|
3107
3104
|
return 'Fail';
|
|
3108
3105
|
}
|
|
3109
3106
|
try {
|
|
3110
|
-
const { profile } = await
|
|
3107
|
+
const { profile } = await createUserProfile({
|
|
3111
3108
|
profile: { phone: formatPhone(formData.phone) },
|
|
3112
3109
|
});
|
|
3113
3110
|
const profileId = profile?.id;
|
|
3111
|
+
const transformedForm = transformOtherConsentsField(formData);
|
|
3114
3112
|
if (profileId && formData?.phone) {
|
|
3115
3113
|
const handleSuccessVerify = async () => {
|
|
3116
3114
|
try {
|
|
3117
|
-
await
|
|
3118
|
-
const { taskId, participantId } = await
|
|
3115
|
+
await updateUserProfile(getUpdateUserProfileData(profileId, transformedForm));
|
|
3116
|
+
const { taskId, participantId } = await createDraftTask({
|
|
3119
3117
|
profileId,
|
|
3120
3118
|
programId,
|
|
3121
3119
|
});
|
|
3122
|
-
await
|
|
3120
|
+
await updateUserTask(getUpdateUserTaskData({
|
|
3121
|
+
participantId,
|
|
3122
|
+
taskId,
|
|
3123
|
+
profileId,
|
|
3124
|
+
formData: transformedForm,
|
|
3125
|
+
}));
|
|
3123
3126
|
saveUserData(participantId, taskId, profileId);
|
|
3124
3127
|
saveForm(JSON.stringify(formData));
|
|
3125
3128
|
globalThis.location.href = '/credit-lead';
|
|
@@ -3156,6 +3159,15 @@
|
|
|
3156
3159
|
__html: `<span>Вводя код, я подтверждаю, что ознакомлен и подписываю:</span>${consentsToList(consents)}`,
|
|
3157
3160
|
});
|
|
3158
3161
|
const consentsToList = (consents) => `<ul>${consents?.map((_) => '<li>' + _ + '</li>').join('')}</ul>`;
|
|
3162
|
+
const transformOtherConsentsField = (formData) => {
|
|
3163
|
+
const { consentOthersFlg, ...form } = formData;
|
|
3164
|
+
return {
|
|
3165
|
+
...form,
|
|
3166
|
+
consentCollectionFlg: consentOthersFlg,
|
|
3167
|
+
consentAssignmentClaimsFlg: consentOthersFlg,
|
|
3168
|
+
consentPhotoFlg: consentOthersFlg,
|
|
3169
|
+
};
|
|
3170
|
+
};
|
|
3159
3171
|
|
|
3160
3172
|
const useInitApplicationLead = () => {
|
|
3161
3173
|
useEffect(() => {
|
|
@@ -3833,7 +3845,7 @@
|
|
|
3833
3845
|
};
|
|
3834
3846
|
function useBusinessDepositRates(rateParams) {
|
|
3835
3847
|
const serviceName = rateParams?.rateType ? DEPOSIT_RATES_SERVICE_MAP[rateParams?.rateType] : '';
|
|
3836
|
-
const { data } = useAsyncData(serviceName ?
|
|
3848
|
+
const { data } = useAsyncData(serviceName ? `${API_BASE_URI}/depositrates/${serviceName}` : null, fetchJSONUnsafe);
|
|
3837
3849
|
return Array.isArray(data) ? data : [];
|
|
3838
3850
|
}
|
|
3839
3851
|
|
|
@@ -5195,11 +5207,11 @@
|
|
|
5195
5207
|
|
|
5196
5208
|
const DepositoryItem = ({ title, timestamp, publicId }) => {
|
|
5197
5209
|
const link = useLink();
|
|
5198
|
-
const { href } = link({ href:
|
|
5210
|
+
const { href } = link({ href: `${API_BASE_URI}/depository/${publicId}/file` });
|
|
5199
5211
|
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
5212
|
};
|
|
5201
5213
|
|
|
5202
|
-
const DEPOSITARY_URL =
|
|
5214
|
+
const DEPOSITARY_URL = `${API_BASE_URI}/depository`;
|
|
5203
5215
|
const useDepository = ({ size, page, query, startDate, endDate }) => {
|
|
5204
5216
|
const formatStartDate = startDate ? formatDate(startDate, true) : '';
|
|
5205
5217
|
const formatEndDate = endDate ? formatDate(endDate, true) : '';
|
|
@@ -5260,7 +5272,7 @@
|
|
|
5260
5272
|
return [latestEvent, fireEvent];
|
|
5261
5273
|
};
|
|
5262
5274
|
|
|
5263
|
-
const REGION_URL =
|
|
5275
|
+
const REGION_URL = `${API_BASE_URI}/region`;
|
|
5264
5276
|
const LOCATION_STORAGE_KEY = 'location';
|
|
5265
5277
|
function useLocation(defaultLocation = 'Москва') {
|
|
5266
5278
|
const [currentLocation, fireCurrentLocation] = useLatestEvent(defaultEventBus, 'location', restoreLocation() ?? { name: defaultLocation });
|
|
@@ -5427,7 +5439,7 @@
|
|
|
5427
5439
|
}
|
|
5428
5440
|
};
|
|
5429
5441
|
|
|
5430
|
-
const EXCHANGE_RATES_URL =
|
|
5442
|
+
const EXCHANGE_RATES_URL = `${API_BASE_URI}/exchangerates`;
|
|
5431
5443
|
function useFetchExchangeRateData(currentRegion) {
|
|
5432
5444
|
const regionCode = currentRegion?.code || '000';
|
|
5433
5445
|
const { data } = useAsyncData(EXCHANGE_RATES_URL + `?regionCode=${regionCode}`, fetchJSONUnsafe);
|
|
@@ -6835,7 +6847,7 @@
|
|
|
6835
6847
|
|
|
6836
6848
|
const EMPTY_VALUE$2 = [];
|
|
6837
6849
|
function useAtms(regionCode) {
|
|
6838
|
-
const { data, error } = useAsyncData(
|
|
6850
|
+
const { data, error } = useAsyncData(`${API_BASE_URI}/atms?regionCode=${regionCode}`, fetchMap$1);
|
|
6839
6851
|
const isLoad = !data && !error;
|
|
6840
6852
|
return { data: data || EMPTY_VALUE$2, isLoad };
|
|
6841
6853
|
}
|
|
@@ -7067,8 +7079,8 @@
|
|
|
7067
7079
|
};
|
|
7068
7080
|
|
|
7069
7081
|
const EMPTY_VALUE$1 = { branches: [], remoteWorkplaces: [] };
|
|
7070
|
-
function useOffices(regionCode) {
|
|
7071
|
-
const { data, error } = useAsyncData(
|
|
7082
|
+
function useOffices(regionCode = '000') {
|
|
7083
|
+
const { data, error } = useAsyncData(`${API_BASE_URI}/branchesAndRemoteWorkplaces?regionCode=${encodeURIComponent(regionCode)}`, fetchMap);
|
|
7072
7084
|
const isLoad = !data && !error;
|
|
7073
7085
|
return { data: data || EMPTY_VALUE$1, isLoad };
|
|
7074
7086
|
}
|
|
@@ -7262,7 +7274,7 @@
|
|
|
7262
7274
|
const getCaseVolume = (caseVolumes, selectedCaseVolume) => caseVolumes?.find((_) => _.volume === selectedCaseVolume);
|
|
7263
7275
|
const getTariffs = (safeBoxCases, selectedBoxSize) => safeBoxCases?.find((_) => _.safeBoxCasesSize === selectedBoxSize)?.tariffs;
|
|
7264
7276
|
|
|
7265
|
-
const SAFEBOXES_URL =
|
|
7277
|
+
const SAFEBOXES_URL = `${API_BASE_URI}/safeboxes`;
|
|
7266
7278
|
const EMPTY_VALUE = [];
|
|
7267
7279
|
function useSafeBoxes(regionCode) {
|
|
7268
7280
|
const { data } = useAsyncData(regionCode ? `${SAFEBOXES_URL}?regionCode=${regionCode}` : null, fetchSafeBoxes);
|
|
@@ -7877,7 +7889,7 @@
|
|
|
7877
7889
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
7878
7890
|
});
|
|
7879
7891
|
|
|
7880
|
-
const packageVersion = "0.14.
|
|
7892
|
+
const packageVersion = "0.14.606";
|
|
7881
7893
|
|
|
7882
7894
|
exports.Blocks = Blocks;
|
|
7883
7895
|
exports.ContentPage = ContentPage;
|