@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
|
@@ -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,28 @@
|
|
|
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(`${API_BASE_URI}${url}`, {
|
|
9
|
+
method,
|
|
10
|
+
headers: {
|
|
11
|
+
'Content-Type': 'application/json',
|
|
12
|
+
...getAuthorizationHeaders(),
|
|
13
|
+
},
|
|
14
|
+
credentials: 'include',
|
|
15
|
+
body: body ? JSON.stringify(body) : null,
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
return isJSON(response) ? response.json() : response;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// TODO: Need delete isJSON
|
|
22
|
+
const isJSON = (response: Response) => response.headers.get('Content-Type') === 'application/json';
|
|
23
|
+
|
|
24
|
+
const getAuthorizationHeaders = () => {
|
|
25
|
+
const token = sessionStorage.getItem('accessToken');
|
|
26
|
+
|
|
27
|
+
return token ? { Authorization: `Bearer ${token}` } : null;
|
|
28
|
+
};
|
|
@@ -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;
|
|
@@ -61,22 +61,12 @@
|
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
"fieldType": "common",
|
|
64
|
-
"name": "
|
|
65
|
-
"required": true
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"fieldType": "common",
|
|
69
|
-
"name": "consentAssignmentClaimsFlg",
|
|
70
|
-
"required": true
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"fieldType": "common",
|
|
74
|
-
"name": "consentCollectionFlg",
|
|
64
|
+
"name": "consentInformFlg",
|
|
75
65
|
"required": true
|
|
76
66
|
},
|
|
77
67
|
{
|
|
78
68
|
"fieldType": "common",
|
|
79
|
-
"name": "
|
|
69
|
+
"name": "consentOthersFlg",
|
|
80
70
|
"required": true
|
|
81
71
|
}
|
|
82
72
|
]
|
|
@@ -33,11 +33,9 @@ export default {
|
|
|
33
33
|
inputs: [
|
|
34
34
|
{ fieldType: 'common', name: 'processPersonalDataLeadFlg', required: true },
|
|
35
35
|
{ fieldType: 'common', name: 'consentProviderFlg', required: true },
|
|
36
|
-
{ fieldType: 'common', name: 'consentPfrFlg' },
|
|
37
|
-
{ fieldType: 'common', name: 'consentPhotoFlg', required: true },
|
|
38
|
-
{ fieldType: 'common', name: 'consentAssignmentClaimsFlg', required: true },
|
|
39
|
-
{ fieldType: 'common', name: 'consentCollectionFlg', required: true },
|
|
40
36
|
{ fieldType: 'common', name: 'consentInformFlg', required: true },
|
|
37
|
+
{ fieldType: 'common', name: 'consentOthersFlg', required: true },
|
|
38
|
+
{ fieldType: 'common', name: 'consentPfrFlg' },
|
|
41
39
|
],
|
|
42
40
|
},
|
|
43
41
|
]}
|
|
@@ -36,10 +36,8 @@ export default {
|
|
|
36
36
|
{ fieldType: 'common', name: 'processPersonalDataLeadFlg', required: true },
|
|
37
37
|
{ fieldType: 'common', name: 'consentInformFlg', required: true },
|
|
38
38
|
{ fieldType: 'common', name: 'consentProviderFlg', required: true },
|
|
39
|
+
{ fieldType: 'common', name: 'consentOthersFlg', required: true },
|
|
39
40
|
{ fieldType: 'common', name: 'consentPfrFlg' },
|
|
40
|
-
{ fieldType: 'common', name: 'consentPhotoFlg', required: true },
|
|
41
|
-
{ fieldType: 'common', name: 'consentAssignmentClaimsFlg', required: true },
|
|
42
|
-
{ fieldType: 'common', name: 'consentCollectionFlg', required: true },
|
|
43
41
|
],
|
|
44
42
|
},
|
|
45
43
|
]}
|
|
@@ -18,18 +18,6 @@ export const CONSENTS: Record<keyof FormConsents, ConsentData> = {
|
|
|
18
18
|
text: 'Согласие на запрос в ПФР',
|
|
19
19
|
docId: 3,
|
|
20
20
|
},
|
|
21
|
-
consentPhotoFlg: {
|
|
22
|
-
text: 'Прочие согласия (согласие на фотографирование)',
|
|
23
|
-
docId: 1,
|
|
24
|
-
},
|
|
25
|
-
consentAssignmentClaimsFlg: {
|
|
26
|
-
text: 'Прочие согласия (согласие на уступку прав требований)',
|
|
27
|
-
docId: 1,
|
|
28
|
-
},
|
|
29
|
-
consentCollectionFlg: {
|
|
30
|
-
text: 'Прочие согласия (согласие на взыскание по исполнительной надписи нотариуса)',
|
|
31
|
-
docId: 1,
|
|
32
|
-
},
|
|
33
21
|
consentInformFlg: {
|
|
34
22
|
text: 'Согласие на информирование о продуктах и услугах Банка',
|
|
35
23
|
docId: 14,
|
|
@@ -37,4 +25,8 @@ export const CONSENTS: Record<keyof FormConsents, ConsentData> = {
|
|
|
37
25
|
consentToReceiveMaterials: {
|
|
38
26
|
text: 'Согласен на получение информационных и аналитических материалов по электронной почте',
|
|
39
27
|
},
|
|
28
|
+
consentOthersFlg: {
|
|
29
|
+
text: 'Прочие согласия',
|
|
30
|
+
docId: 1,
|
|
31
|
+
},
|
|
40
32
|
};
|
|
@@ -12,11 +12,9 @@ export interface FormConsents {
|
|
|
12
12
|
processPersonalDataLeadFlg?: boolean;
|
|
13
13
|
consentProviderFlg?: boolean;
|
|
14
14
|
consentPfrFlg?: boolean;
|
|
15
|
-
consentPhotoFlg?: boolean;
|
|
16
|
-
consentAssignmentClaimsFlg?: boolean;
|
|
17
|
-
consentCollectionFlg?: boolean;
|
|
18
15
|
consentInformFlg?: boolean;
|
|
19
16
|
consentToReceiveMaterials?: boolean;
|
|
17
|
+
consentOthersFlg?: boolean;
|
|
20
18
|
}
|
|
21
19
|
|
|
22
20
|
export interface FormState extends FormConsents {
|
|
@@ -76,6 +74,9 @@ export interface FormState extends FormConsents {
|
|
|
76
74
|
localities?: string[];
|
|
77
75
|
partnerComments?: string;
|
|
78
76
|
consentDataProcessing?: boolean;
|
|
77
|
+
consentPhotoFlg?: boolean;
|
|
78
|
+
consentAssignmentClaimsFlg?: boolean;
|
|
79
|
+
consentCollectionFlg?: boolean;
|
|
79
80
|
familyStatus?: string;
|
|
80
81
|
children?: number;
|
|
81
82
|
familyMembers?: number;
|
|
@@ -126,9 +127,7 @@ const initialFormState = {
|
|
|
126
127
|
consentDataProcessing: false,
|
|
127
128
|
processPersonalDataLeadFlg: false,
|
|
128
129
|
consentProviderFlg: false,
|
|
129
|
-
|
|
130
|
-
consentAssignmentClaimsFlg: false,
|
|
131
|
-
consentCollectionFlg: false,
|
|
130
|
+
consentOthersFlg: false,
|
|
132
131
|
consentInformFlg: false,
|
|
133
132
|
participantAddress: '',
|
|
134
133
|
participantDateRegistration: 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,22 +41,29 @@ 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;
|
|
45
48
|
|
|
49
|
+
const transformedForm = transformOtherConsentsField(formData);
|
|
50
|
+
|
|
46
51
|
if (profileId && formData?.phone) {
|
|
47
52
|
const handleSuccessVerify = async () => {
|
|
48
53
|
try {
|
|
49
|
-
await
|
|
50
|
-
const { taskId, participantId } = await
|
|
54
|
+
await updateUserProfile(getUpdateUserProfileData(profileId, transformedForm));
|
|
55
|
+
const { taskId, participantId } = await createDraftTask({
|
|
51
56
|
profileId,
|
|
52
57
|
programId,
|
|
53
58
|
});
|
|
54
59
|
|
|
55
|
-
await
|
|
56
|
-
getUpdateUserTaskData(
|
|
60
|
+
await updateUserTask(
|
|
61
|
+
getUpdateUserTaskData({
|
|
62
|
+
participantId,
|
|
63
|
+
taskId,
|
|
64
|
+
profileId,
|
|
65
|
+
formData: transformedForm,
|
|
66
|
+
}),
|
|
57
67
|
);
|
|
58
68
|
saveUserData(participantId, taskId, profileId);
|
|
59
69
|
saveForm(JSON.stringify(formData));
|
|
@@ -97,3 +107,14 @@ const verifyPhoneContent = (phone: string, consents: string[]) => ({
|
|
|
97
107
|
|
|
98
108
|
const consentsToList = (consents?: string[]) =>
|
|
99
109
|
`<ul>${consents?.map((_) => '<li>' + _ + '</li>').join('')}</ul>`;
|
|
110
|
+
|
|
111
|
+
const transformOtherConsentsField = (formData: FormState): FormState => {
|
|
112
|
+
const { consentOthersFlg, ...form } = formData;
|
|
113
|
+
|
|
114
|
+
return {
|
|
115
|
+
...form,
|
|
116
|
+
consentCollectionFlg: consentOthersFlg,
|
|
117
|
+
consentAssignmentClaimsFlg: consentOthersFlg,
|
|
118
|
+
consentPhotoFlg: consentOthersFlg,
|
|
119
|
+
};
|
|
120
|
+
};
|
|
@@ -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;
|