@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,12 +0,0 @@
|
|
|
1
|
-
import { type CapchaTextType, type CheckCodeBody, type CreateDraftTaskBody, type CreateDraftTaskResponse, type CreateUserProfileBody, type CreateUserProfileResponse, type SendCodeBody, type UpdateUserProfileBody, type UpdateUserTaskBody } from './RetailApiTypes';
|
|
2
|
-
export declare const RETAIL_API: {
|
|
3
|
-
CreateUserProfile: (body: CreateUserProfileBody) => Promise<CreateUserProfileResponse>;
|
|
4
|
-
UpdateUserProfile: (body: UpdateUserProfileBody) => Promise<unknown>;
|
|
5
|
-
CreateDraftTask: (body: CreateDraftTaskBody) => Promise<CreateDraftTaskResponse>;
|
|
6
|
-
UpdateUserTask: (body: UpdateUserTaskBody) => Promise<unknown>;
|
|
7
|
-
SendCode: (body: SendCodeBody) => Promise<unknown>;
|
|
8
|
-
CheckCode: (body: CheckCodeBody) => Promise<void>;
|
|
9
|
-
CreateCaptcha: (phoneNumber: string) => Promise<Response>;
|
|
10
|
-
CheckCaptcha: (body: CapchaTextType) => Promise<Response>;
|
|
11
|
-
GetFileByID: (id: number) => Promise<Response>;
|
|
12
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
const getResponse = (response) => (isJSON(response) ? response.json() : response);
|
|
2
|
-
const getAthorizationHeaders = () => {
|
|
3
|
-
const token = sessionStorage.getItem('accessToken');
|
|
4
|
-
return token ? { Authorization: `Bearer ${token}` } : null;
|
|
5
|
-
};
|
|
6
|
-
const isJSON = (response) => response.headers.get('Content-Type') === 'application/json';
|
|
7
|
-
const request = async (url, method, body) => await fetch('https://retail-light-api.cprb.dev.rshbdev.ru/api/v1' + url, {
|
|
8
|
-
method,
|
|
9
|
-
headers: {
|
|
10
|
-
'Content-Type': 'application/json',
|
|
11
|
-
...getAthorizationHeaders(),
|
|
12
|
-
},
|
|
13
|
-
credentials: 'include',
|
|
14
|
-
body: body ? JSON.stringify(body) : null,
|
|
15
|
-
})
|
|
16
|
-
.then((response) => {
|
|
17
|
-
if (response.ok) {
|
|
18
|
-
return getResponse(response);
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
throw response;
|
|
22
|
-
}
|
|
23
|
-
})
|
|
24
|
-
.catch((error) => {
|
|
25
|
-
throw error;
|
|
26
|
-
});
|
|
27
|
-
const saveToken = (data) => {
|
|
28
|
-
sessionStorage.setItem('accessToken', data.access_token);
|
|
29
|
-
sessionStorage.setItem('refreshToken', data.refresh_token);
|
|
30
|
-
};
|
|
31
|
-
export const RETAIL_API = {
|
|
32
|
-
CreateUserProfile: async (body) => await request('/public-data/createUserProfile', 'POST', body),
|
|
33
|
-
UpdateUserProfile: async (body) => await request('/user-data/updateUserProfile', 'PUT', body),
|
|
34
|
-
CreateDraftTask: async (body) => await request('/user-data/createDraftTask', 'POST', body),
|
|
35
|
-
UpdateUserTask: async (body) => await request('/user-data/updateUserTask', 'PUT', body),
|
|
36
|
-
SendCode: async (body) => await request('/sms/sendCode', 'POST', body),
|
|
37
|
-
CheckCode: async (body) => await request('/sms/checkCode', 'POST', body).then(saveToken),
|
|
38
|
-
CreateCaptcha: async (phoneNumber) => await request(`/sms/createCaptcha?phoneNumber=${phoneNumber}`, 'GET'),
|
|
39
|
-
CheckCaptcha: async (body) => await request('/sms/checkCaptcha', 'POST', body),
|
|
40
|
-
GetFileByID: async (id) => await request(`/feedback/file?id=${id}`, 'GET'),
|
|
41
|
-
};
|
|
42
|
-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EAAE,IAAI,CAAC;IAC5D,WAAW,EAAE,KAAK,EAAE,EAAU,EAAE,EAAE,CAAC,MAAM,OAAO,CAAW,qBAAqB,EAAE,EAAE,EAAE,KAAK,CAAC;CAC7F,CAAC"}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
export declare type CreateUserProfileBody = {
|
|
2
|
-
profile: {
|
|
3
|
-
phone: string;
|
|
4
|
-
};
|
|
5
|
-
};
|
|
6
|
-
export declare type CreateUserProfileResponse = {
|
|
7
|
-
profile: {
|
|
8
|
-
id: number;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export declare type UpdateUserProfileBody = {
|
|
12
|
-
profile: {
|
|
13
|
-
id: number;
|
|
14
|
-
phone: string;
|
|
15
|
-
email: string;
|
|
16
|
-
name: string;
|
|
17
|
-
surname: string;
|
|
18
|
-
midname: string;
|
|
19
|
-
birthDate: string;
|
|
20
|
-
processPersonalDataLeadFlg: boolean;
|
|
21
|
-
consentProviderFlg: boolean;
|
|
22
|
-
consentPfrFlg: boolean;
|
|
23
|
-
consentPhotoFlg: boolean;
|
|
24
|
-
consentAssignmentClaimsFlg: boolean;
|
|
25
|
-
consentCollectionFlg: boolean;
|
|
26
|
-
consentInformFlg: boolean;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
export declare type CreateDraftTaskBody = {
|
|
30
|
-
profileId: number;
|
|
31
|
-
programId: string;
|
|
32
|
-
};
|
|
33
|
-
export declare type CreateDraftTaskResponse = {
|
|
34
|
-
taskId: number;
|
|
35
|
-
participantId: number;
|
|
36
|
-
};
|
|
37
|
-
export declare type UpdateUserTaskBody = {
|
|
38
|
-
sendToBank: boolean;
|
|
39
|
-
taskKind: 'SHORT' | 'FULL' | 'UNITED';
|
|
40
|
-
task: {
|
|
41
|
-
taskSource: string;
|
|
42
|
-
id: number;
|
|
43
|
-
participants: [
|
|
44
|
-
{
|
|
45
|
-
birthDate: string;
|
|
46
|
-
id: number;
|
|
47
|
-
midname: string;
|
|
48
|
-
name: string;
|
|
49
|
-
surname: string;
|
|
50
|
-
profile: {
|
|
51
|
-
id: number;
|
|
52
|
-
};
|
|
53
|
-
participantContacts: Array<{
|
|
54
|
-
contactTypeCd: {
|
|
55
|
-
key: 'EMAIL' | 'MAIN_PHONE';
|
|
56
|
-
};
|
|
57
|
-
value: string;
|
|
58
|
-
}>;
|
|
59
|
-
roleCd: {
|
|
60
|
-
key: string;
|
|
61
|
-
value: string;
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
];
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
export declare type SendCodeBody = {
|
|
68
|
-
phoneNumber: string;
|
|
69
|
-
smsCodesSetName: {
|
|
70
|
-
key: 'AUTHENTICATION' | 'SEND_TASK';
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
export declare type CheckCodeBody = {
|
|
74
|
-
smsText: string;
|
|
75
|
-
smsCodesSetName: {
|
|
76
|
-
key: 'AUTHENTICATION' | 'SEND_TASK';
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
export declare type CheckCodeResponse = {
|
|
80
|
-
access_token: string;
|
|
81
|
-
expires_in: number;
|
|
82
|
-
refresh_token: string;
|
|
83
|
-
};
|
|
84
|
-
export declare type CapchaTextType = {
|
|
85
|
-
captchaText: string;
|
|
86
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RetailApiTypes.js","sourceRoot":"","sources":["../../../src/api/RetailApi/RetailApiTypes.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getUpdateUserTask.js","sourceRoot":"","sources":["../../../../src/api/RetailApi/utils/getUpdateUserTask.ts"],"names":[],"mappings":"AAEA,+BAA+B;AAC/B,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,aAAqB,EACrB,MAAc,EACd,SAAiB,EACjB,UAAgC,EACZ,EAAE,CAAC,CAAC;IACxB,UAAU,EAAE,IAAI;IAChB,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE;QACJ,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,MAAM;QACtC,EAAE,EAAE,MAAM;QACV,YAAY,EAAE;YACZ;gBACE,SAAS,EAAE,UAAU,EAAE,SAAS;gBAChC,EAAE,EAAE,aAAa;gBACjB,OAAO,EAAE,UAAU,EAAE,OAAO;gBAC5B,IAAI,EAAE,UAAU,EAAE,IAAI;gBACtB,OAAO,EAAE,UAAU,EAAE,OAAO;gBAC5B,OAAO,EAAE;oBACP,EAAE,EAAE,SAAS;iBACd;gBACD,mBAAmB,EAAE;oBACnB;wBACE,aAAa,EAAE;4BACb,GAAG,EAAE,OAAO;yBACb;wBACD,KAAK,EAAE,UAAU,EAAE,KAAK;qBACzB;oBACD;wBACE,aAAa,EAAE;4BACb,GAAG,EAAE,YAAY;yBAClB;wBACD,KAAK,EAAE,UAAU,EAAE,KAAK;qBACzB;iBACF;gBACD,MAAM,EAAE;oBACN,GAAG,EAAE,UAAU;oBACf,KAAK,EAAE,SAAS;iBACjB;aACF;SACF;KACF;CACF,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
interface CheckCaptchaProps {
|
|
2
|
-
code: string;
|
|
3
|
-
setHasError: (hasError: boolean) => void;
|
|
4
|
-
sendCode?: () => void;
|
|
5
|
-
close?: () => void;
|
|
6
|
-
}
|
|
7
|
-
export declare const checkCaptcha: ({ code, setHasError, close, sendCode, }: CheckCaptchaProps) => Promise<void>;
|
|
8
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { RETAIL_API } from '../../api/RetailApi/RetailApi.js';
|
|
2
|
-
import { noop } from '../../utils/noop.js';
|
|
3
|
-
export const checkCaptcha = async ({ code, setHasError, close, sendCode = noop, }) => {
|
|
4
|
-
const response = await RETAIL_API.CheckCaptcha({ captchaText: code });
|
|
5
|
-
if ((await response.text()) === 'ERROR') {
|
|
6
|
-
setHasError(true);
|
|
7
|
-
}
|
|
8
|
-
else {
|
|
9
|
-
sendCode();
|
|
10
|
-
close?.();
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=checkCaptcha.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkCaptcha.js","sourceRoot":"","sources":["../../../src/ui-kit/CaptchaDialog/checkCaptcha.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AASxC,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,EAAE,EACjC,IAAI,EACJ,WAAW,EACX,KAAK,EACL,QAAQ,GAAG,IAAI,GACG,EAAE,EAAE;IACtB,MAAM,QAAQ,GAAG,MAAM,UAAU,CAAC,YAAY,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;IAEtE,IAAI,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,EAAE;QACvC,WAAW,CAAC,IAAI,CAAC,CAAC;KACnB;SAAM;QACL,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,EAAE,CAAC;KACX;AACH,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const createCaptcha: (setCaptcha: (captcha: string) => void, phoneNumber: string) => Promise<void>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { RETAIL_API } from '../../api/RetailApi/RetailApi.js';
|
|
2
|
-
export const createCaptcha = async (setCaptcha, phoneNumber) => {
|
|
3
|
-
const response = await RETAIL_API.CreateCaptcha(phoneNumber);
|
|
4
|
-
setCaptcha(URL.createObjectURL(await response.blob()));
|
|
5
|
-
};
|
|
6
|
-
//# sourceMappingURL=createCaptcha.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createCaptcha.js","sourceRoot":"","sources":["../../../src/ui-kit/CaptchaDialog/createCaptcha.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3D,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,EAAE,UAAqC,EAAE,WAAmB,EAAE,EAAE;IAChG,MAAM,QAAQ,GAAG,MAAM,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;IAC7D,UAAU,CAAC,GAAG,CAAC,eAAe,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AACzD,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type CapchaTextType, type CheckCodeBody, type CreateDraftTaskBody, type CreateDraftTaskResponse, type CreateUserProfileBody, type CreateUserProfileResponse, type SendCodeBody, type UpdateUserProfileBody, type UpdateUserTaskBody } from './RetailApiTypes';
|
|
2
|
-
export declare const RETAIL_API: {
|
|
3
|
-
CreateUserProfile: (body: CreateUserProfileBody) => Promise<CreateUserProfileResponse>;
|
|
4
|
-
UpdateUserProfile: (body: UpdateUserProfileBody) => Promise<unknown>;
|
|
5
|
-
CreateDraftTask: (body: CreateDraftTaskBody) => Promise<CreateDraftTaskResponse>;
|
|
6
|
-
UpdateUserTask: (body: UpdateUserTaskBody) => Promise<unknown>;
|
|
7
|
-
SendCode: (body: SendCodeBody) => Promise<unknown>;
|
|
8
|
-
CheckCode: (body: CheckCodeBody) => Promise<void>;
|
|
9
|
-
CreateCaptcha: (phoneNumber: string) => Promise<Response>;
|
|
10
|
-
CheckCaptcha: (body: CapchaTextType) => Promise<Response>;
|
|
11
|
-
GetFileByID: (id: number) => Promise<Response>;
|
|
12
|
-
};
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
export declare type CreateUserProfileBody = {
|
|
2
|
-
profile: {
|
|
3
|
-
phone: string;
|
|
4
|
-
};
|
|
5
|
-
};
|
|
6
|
-
export declare type CreateUserProfileResponse = {
|
|
7
|
-
profile: {
|
|
8
|
-
id: number;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export declare type UpdateUserProfileBody = {
|
|
12
|
-
profile: {
|
|
13
|
-
id: number;
|
|
14
|
-
phone: string;
|
|
15
|
-
email: string;
|
|
16
|
-
name: string;
|
|
17
|
-
surname: string;
|
|
18
|
-
midname: string;
|
|
19
|
-
birthDate: string;
|
|
20
|
-
processPersonalDataLeadFlg: boolean;
|
|
21
|
-
consentProviderFlg: boolean;
|
|
22
|
-
consentPfrFlg: boolean;
|
|
23
|
-
consentPhotoFlg: boolean;
|
|
24
|
-
consentAssignmentClaimsFlg: boolean;
|
|
25
|
-
consentCollectionFlg: boolean;
|
|
26
|
-
consentInformFlg: boolean;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
export declare type CreateDraftTaskBody = {
|
|
30
|
-
profileId: number;
|
|
31
|
-
programId: string;
|
|
32
|
-
};
|
|
33
|
-
export declare type CreateDraftTaskResponse = {
|
|
34
|
-
taskId: number;
|
|
35
|
-
participantId: number;
|
|
36
|
-
};
|
|
37
|
-
export declare type UpdateUserTaskBody = {
|
|
38
|
-
sendToBank: boolean;
|
|
39
|
-
taskKind: 'SHORT' | 'FULL' | 'UNITED';
|
|
40
|
-
task: {
|
|
41
|
-
taskSource: string;
|
|
42
|
-
id: number;
|
|
43
|
-
participants: [
|
|
44
|
-
{
|
|
45
|
-
birthDate: string;
|
|
46
|
-
id: number;
|
|
47
|
-
midname: string;
|
|
48
|
-
name: string;
|
|
49
|
-
surname: string;
|
|
50
|
-
profile: {
|
|
51
|
-
id: number;
|
|
52
|
-
};
|
|
53
|
-
participantContacts: Array<{
|
|
54
|
-
contactTypeCd: {
|
|
55
|
-
key: 'EMAIL' | 'MAIN_PHONE';
|
|
56
|
-
};
|
|
57
|
-
value: string;
|
|
58
|
-
}>;
|
|
59
|
-
roleCd: {
|
|
60
|
-
key: string;
|
|
61
|
-
value: string;
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
];
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
export declare type SendCodeBody = {
|
|
68
|
-
phoneNumber: string;
|
|
69
|
-
smsCodesSetName: {
|
|
70
|
-
key: 'AUTHENTICATION' | 'SEND_TASK';
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
export declare type CheckCodeBody = {
|
|
74
|
-
smsText: string;
|
|
75
|
-
smsCodesSetName: {
|
|
76
|
-
key: 'AUTHENTICATION' | 'SEND_TASK';
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
export declare type CheckCodeResponse = {
|
|
80
|
-
access_token: string;
|
|
81
|
-
expires_in: number;
|
|
82
|
-
refresh_token: string;
|
|
83
|
-
};
|
|
84
|
-
export declare type CapchaTextType = {
|
|
85
|
-
captchaText: string;
|
|
86
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
interface CheckCaptchaProps {
|
|
2
|
-
code: string;
|
|
3
|
-
setHasError: (hasError: boolean) => void;
|
|
4
|
-
sendCode?: () => void;
|
|
5
|
-
close?: () => void;
|
|
6
|
-
}
|
|
7
|
-
export declare const checkCaptcha: ({ code, setHasError, close, sendCode, }: CheckCaptchaProps) => Promise<void>;
|
|
8
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const createCaptcha: (setCaptcha: (captcha: string) => void, phoneNumber: string) => Promise<void>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type CapchaTextType, type CheckCodeBody, type CreateDraftTaskBody, type CreateDraftTaskResponse, type CreateUserProfileBody, type CreateUserProfileResponse, type SendCodeBody, type UpdateUserProfileBody, type UpdateUserTaskBody } from './RetailApiTypes';
|
|
2
|
-
export declare const RETAIL_API: {
|
|
3
|
-
CreateUserProfile: (body: CreateUserProfileBody) => Promise<CreateUserProfileResponse>;
|
|
4
|
-
UpdateUserProfile: (body: UpdateUserProfileBody) => Promise<unknown>;
|
|
5
|
-
CreateDraftTask: (body: CreateDraftTaskBody) => Promise<CreateDraftTaskResponse>;
|
|
6
|
-
UpdateUserTask: (body: UpdateUserTaskBody) => Promise<unknown>;
|
|
7
|
-
SendCode: (body: SendCodeBody) => Promise<unknown>;
|
|
8
|
-
CheckCode: (body: CheckCodeBody) => Promise<void>;
|
|
9
|
-
CreateCaptcha: (phoneNumber: string) => Promise<Response>;
|
|
10
|
-
CheckCaptcha: (body: CapchaTextType) => Promise<Response>;
|
|
11
|
-
GetFileByID: (id: number) => Promise<Response>;
|
|
12
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.RETAIL_API = void 0;
|
|
3
|
-
const getResponse = (response) => (isJSON(response) ? response.json() : response);
|
|
4
|
-
const getAthorizationHeaders = () => {
|
|
5
|
-
const token = sessionStorage.getItem('accessToken');
|
|
6
|
-
return token ? { Authorization: `Bearer ${token}` } : null;
|
|
7
|
-
};
|
|
8
|
-
const isJSON = (response) => response.headers.get('Content-Type') === 'application/json';
|
|
9
|
-
const request = async (url, method, body) => await fetch('https://retail-light-api.cprb.dev.rshbdev.ru/api/v1' + url, {
|
|
10
|
-
method,
|
|
11
|
-
headers: {
|
|
12
|
-
'Content-Type': 'application/json',
|
|
13
|
-
...getAthorizationHeaders(),
|
|
14
|
-
},
|
|
15
|
-
credentials: 'include',
|
|
16
|
-
body: body ? JSON.stringify(body) : null,
|
|
17
|
-
})
|
|
18
|
-
.then((response) => {
|
|
19
|
-
if (response.ok) {
|
|
20
|
-
return getResponse(response);
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
throw response;
|
|
24
|
-
}
|
|
25
|
-
})
|
|
26
|
-
.catch((error) => {
|
|
27
|
-
throw error;
|
|
28
|
-
});
|
|
29
|
-
const saveToken = (data) => {
|
|
30
|
-
sessionStorage.setItem('accessToken', data.access_token);
|
|
31
|
-
sessionStorage.setItem('refreshToken', data.refresh_token);
|
|
32
|
-
};
|
|
33
|
-
exports.RETAIL_API = {
|
|
34
|
-
CreateUserProfile: async (body) => await request('/public-data/createUserProfile', 'POST', body),
|
|
35
|
-
UpdateUserProfile: async (body) => await request('/user-data/updateUserProfile', 'PUT', body),
|
|
36
|
-
CreateDraftTask: async (body) => await request('/user-data/createDraftTask', 'POST', body),
|
|
37
|
-
UpdateUserTask: async (body) => await request('/user-data/updateUserTask', 'PUT', body),
|
|
38
|
-
SendCode: async (body) => await request('/sms/sendCode', 'POST', body),
|
|
39
|
-
CheckCode: async (body) => await request('/sms/checkCode', 'POST', body).then(saveToken),
|
|
40
|
-
CreateCaptcha: async (phoneNumber) => await request(`/sms/createCaptcha?phoneNumber=${phoneNumber}`, 'GET'),
|
|
41
|
-
CheckCaptcha: async (body) => await request('/sms/checkCaptcha', 'POST', body),
|
|
42
|
-
GetFileByID: async (id) => await request(`/feedback/file?id=${id}`, 'GET'),
|
|
43
|
-
};
|
|
44
|
-
//# sourceMappingURL=RetailApi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RetailApi.js","sourceRoot":"","sources":["../../../src/api/RetailApi/RetailApi.ts"],"names":[],"mappings":";;AAeA,MAAM,WAAW,GAAG,CAAC,QAAkB,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;AAE5F,MAAM,sBAAsB,GAAG,GAAG,EAAE;IAClC,MAAM,KAAK,GAAG,cAAc,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IAEpD,OAAO,KAAK,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,UAAU,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AAC7D,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,CAAC,QAAkB,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,KAAK,kBAAkB,CAAC;AAEnG,MAAM,OAAO,GAAG,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E,CACjD,MAAM,OAAO,CAAC,2BAA2B,EAAE,KAAK,EAAE,IAAI,CAAC;IACzD,QAAQ,EAAE,KAAK,EAAE,IAAkB,EAAE,EAAE,CAAC,MAAM,OAAO,CAAC,eAAe,EAAE,MAAM,EAAE,IAAI,CAAC;IACpF,SAAS,EAAE,KAAK,EAAE,IAAmB,EAAE,EAAE,CACvC,MAAM,OAAO,CAAoB,gBAAgB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;IAClF,aAAa,EAAE,KAAK,EAAE,WAAmB,EAAE,EAAE,CAC3C,MAAM,OAAO,CAAW,kCAAkC,WAAW,EAAE,EAAE,KAAK,CAAC;IACjF,YAAY,EAAE,KAAK,EAAE,IAAoB,EAAE,EAAE,CAC3C,MAAM,OAAO,CAAW,mBAAmB,EAAE,MAAM,EAAE,IAAI,CAAC;IAC5D,WAAW,EAAE,KAAK,EAAE,EAAU,EAAE,EAAE,CAAC,MAAM,OAAO,CAAW,qBAAqB,EAAE,EAAE,EAAE,KAAK,CAAC;CAC7F,CAAC"}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
export declare type CreateUserProfileBody = {
|
|
2
|
-
profile: {
|
|
3
|
-
phone: string;
|
|
4
|
-
};
|
|
5
|
-
};
|
|
6
|
-
export declare type CreateUserProfileResponse = {
|
|
7
|
-
profile: {
|
|
8
|
-
id: number;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export declare type UpdateUserProfileBody = {
|
|
12
|
-
profile: {
|
|
13
|
-
id: number;
|
|
14
|
-
phone: string;
|
|
15
|
-
email: string;
|
|
16
|
-
name: string;
|
|
17
|
-
surname: string;
|
|
18
|
-
midname: string;
|
|
19
|
-
birthDate: string;
|
|
20
|
-
processPersonalDataLeadFlg: boolean;
|
|
21
|
-
consentProviderFlg: boolean;
|
|
22
|
-
consentPfrFlg: boolean;
|
|
23
|
-
consentPhotoFlg: boolean;
|
|
24
|
-
consentAssignmentClaimsFlg: boolean;
|
|
25
|
-
consentCollectionFlg: boolean;
|
|
26
|
-
consentInformFlg: boolean;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
export declare type CreateDraftTaskBody = {
|
|
30
|
-
profileId: number;
|
|
31
|
-
programId: string;
|
|
32
|
-
};
|
|
33
|
-
export declare type CreateDraftTaskResponse = {
|
|
34
|
-
taskId: number;
|
|
35
|
-
participantId: number;
|
|
36
|
-
};
|
|
37
|
-
export declare type UpdateUserTaskBody = {
|
|
38
|
-
sendToBank: boolean;
|
|
39
|
-
taskKind: 'SHORT' | 'FULL' | 'UNITED';
|
|
40
|
-
task: {
|
|
41
|
-
taskSource: string;
|
|
42
|
-
id: number;
|
|
43
|
-
participants: [
|
|
44
|
-
{
|
|
45
|
-
birthDate: string;
|
|
46
|
-
id: number;
|
|
47
|
-
midname: string;
|
|
48
|
-
name: string;
|
|
49
|
-
surname: string;
|
|
50
|
-
profile: {
|
|
51
|
-
id: number;
|
|
52
|
-
};
|
|
53
|
-
participantContacts: Array<{
|
|
54
|
-
contactTypeCd: {
|
|
55
|
-
key: 'EMAIL' | 'MAIN_PHONE';
|
|
56
|
-
};
|
|
57
|
-
value: string;
|
|
58
|
-
}>;
|
|
59
|
-
roleCd: {
|
|
60
|
-
key: string;
|
|
61
|
-
value: string;
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
];
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
export declare type SendCodeBody = {
|
|
68
|
-
phoneNumber: string;
|
|
69
|
-
smsCodesSetName: {
|
|
70
|
-
key: 'AUTHENTICATION' | 'SEND_TASK';
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
export declare type CheckCodeBody = {
|
|
74
|
-
smsText: string;
|
|
75
|
-
smsCodesSetName: {
|
|
76
|
-
key: 'AUTHENTICATION' | 'SEND_TASK';
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
export declare type CheckCodeResponse = {
|
|
80
|
-
access_token: string;
|
|
81
|
-
expires_in: number;
|
|
82
|
-
refresh_token: string;
|
|
83
|
-
};
|
|
84
|
-
export declare type CapchaTextType = {
|
|
85
|
-
captchaText: string;
|
|
86
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RetailApiTypes.js","sourceRoot":"","sources":["../../../src/api/RetailApi/RetailApiTypes.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getUpdateUserTask.js","sourceRoot":"","sources":["../../../../src/api/RetailApi/utils/getUpdateUserTask.ts"],"names":[],"mappings":";;AAEA,+BAA+B;AACxB,MAAM,qBAAqB,GAAG,CACnC,aAAqB,EACrB,MAAc,EACd,SAAiB,EACjB,UAAgC,EACZ,EAAE,CAAC,CAAC;IACxB,UAAU,EAAE,IAAI;IAChB,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE;QACJ,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,MAAM;QACtC,EAAE,EAAE,MAAM;QACV,YAAY,EAAE;YACZ;gBACE,SAAS,EAAE,UAAU,EAAE,SAAS;gBAChC,EAAE,EAAE,aAAa;gBACjB,OAAO,EAAE,UAAU,EAAE,OAAO;gBAC5B,IAAI,EAAE,UAAU,EAAE,IAAI;gBACtB,OAAO,EAAE,UAAU,EAAE,OAAO;gBAC5B,OAAO,EAAE;oBACP,EAAE,EAAE,SAAS;iBACd;gBACD,mBAAmB,EAAE;oBACnB;wBACE,aAAa,EAAE;4BACb,GAAG,EAAE,OAAO;yBACb;wBACD,KAAK,EAAE,UAAU,EAAE,KAAK;qBACzB;oBACD;wBACE,aAAa,EAAE;4BACb,GAAG,EAAE,YAAY;yBAClB;wBACD,KAAK,EAAE,UAAU,EAAE,KAAK;qBACzB;iBACF;gBACD,MAAM,EAAE;oBACN,GAAG,EAAE,UAAU;oBACf,KAAK,EAAE,SAAS;iBACjB;aACF;SACF;KACF;CACF,CAAC,CAAC;AA1CU,QAAA,qBAAqB,yBA0C/B"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
interface CheckCaptchaProps {
|
|
2
|
-
code: string;
|
|
3
|
-
setHasError: (hasError: boolean) => void;
|
|
4
|
-
sendCode?: () => void;
|
|
5
|
-
close?: () => void;
|
|
6
|
-
}
|
|
7
|
-
export declare const checkCaptcha: ({ code, setHasError, close, sendCode, }: CheckCaptchaProps) => Promise<void>;
|
|
8
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.checkCaptcha = void 0;
|
|
3
|
-
const RetailApi_1 = require("../../api/RetailApi/RetailApi");
|
|
4
|
-
const noop_1 = require("../../utils/noop");
|
|
5
|
-
const checkCaptcha = async ({ code, setHasError, close, sendCode = noop_1.noop, }) => {
|
|
6
|
-
const response = await RetailApi_1.RETAIL_API.CheckCaptcha({ captchaText: code });
|
|
7
|
-
if ((await response.text()) === 'ERROR') {
|
|
8
|
-
setHasError(true);
|
|
9
|
-
}
|
|
10
|
-
else {
|
|
11
|
-
sendCode();
|
|
12
|
-
close?.();
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
exports.checkCaptcha = checkCaptcha;
|
|
16
|
-
//# sourceMappingURL=checkCaptcha.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkCaptcha.js","sourceRoot":"","sources":["../../../src/ui-kit/CaptchaDialog/checkCaptcha.ts"],"names":[],"mappings":";;AAAA,6DAA2D;AAC3D,2CAAwC;AASjC,MAAM,YAAY,GAAG,KAAK,EAAE,EACjC,IAAI,EACJ,WAAW,EACX,KAAK,EACL,QAAQ,GAAG,WAAI,GACG,EAAE,EAAE;IACtB,MAAM,QAAQ,GAAG,MAAM,sBAAU,CAAC,YAAY,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;IAEtE,IAAI,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,EAAE;QACvC,WAAW,CAAC,IAAI,CAAC,CAAC;KACnB;SAAM;QACL,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,EAAE,CAAC;KACX;AACH,CAAC,CAAC;AAdW,QAAA,YAAY,gBAcvB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const createCaptcha: (setCaptcha: (captcha: string) => void, phoneNumber: string) => Promise<void>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.createCaptcha = void 0;
|
|
3
|
-
const RetailApi_1 = require("../../api/RetailApi/RetailApi");
|
|
4
|
-
const createCaptcha = async (setCaptcha, phoneNumber) => {
|
|
5
|
-
const response = await RetailApi_1.RETAIL_API.CreateCaptcha(phoneNumber);
|
|
6
|
-
setCaptcha(URL.createObjectURL(await response.blob()));
|
|
7
|
-
};
|
|
8
|
-
exports.createCaptcha = createCaptcha;
|
|
9
|
-
//# sourceMappingURL=createCaptcha.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createCaptcha.js","sourceRoot":"","sources":["../../../src/ui-kit/CaptchaDialog/createCaptcha.ts"],"names":[],"mappings":";;AAAA,6DAA2D;AAEpD,MAAM,aAAa,GAAG,KAAK,EAAE,UAAqC,EAAE,WAAmB,EAAE,EAAE;IAChG,MAAM,QAAQ,GAAG,MAAM,sBAAU,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;IAC7D,UAAU,CAAC,GAAG,CAAC,eAAe,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AACzD,CAAC,CAAC;AAHW,QAAA,aAAa,iBAGxB"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type CapchaTextType, type CheckCodeBody, type CreateDraftTaskBody, type CreateDraftTaskResponse, type CreateUserProfileBody, type CreateUserProfileResponse, type SendCodeBody, type UpdateUserProfileBody, type UpdateUserTaskBody } from './RetailApiTypes';
|
|
2
|
-
export declare const RETAIL_API: {
|
|
3
|
-
CreateUserProfile: (body: CreateUserProfileBody) => Promise<CreateUserProfileResponse>;
|
|
4
|
-
UpdateUserProfile: (body: UpdateUserProfileBody) => Promise<unknown>;
|
|
5
|
-
CreateDraftTask: (body: CreateDraftTaskBody) => Promise<CreateDraftTaskResponse>;
|
|
6
|
-
UpdateUserTask: (body: UpdateUserTaskBody) => Promise<unknown>;
|
|
7
|
-
SendCode: (body: SendCodeBody) => Promise<unknown>;
|
|
8
|
-
CheckCode: (body: CheckCodeBody) => Promise<void>;
|
|
9
|
-
CreateCaptcha: (phoneNumber: string) => Promise<Response>;
|
|
10
|
-
CheckCaptcha: (body: CapchaTextType) => Promise<Response>;
|
|
11
|
-
GetFileByID: (id: number) => Promise<Response>;
|
|
12
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
const getResponse = (response) => (isJSON(response) ? response.json() : response);
|
|
2
|
-
const getAthorizationHeaders = () => {
|
|
3
|
-
const token = sessionStorage.getItem('accessToken');
|
|
4
|
-
return token ? { Authorization: `Bearer ${token}` } : null;
|
|
5
|
-
};
|
|
6
|
-
const isJSON = (response) => response.headers.get('Content-Type') === 'application/json';
|
|
7
|
-
const request = async (url, method, body) => await fetch('https://retail-light-api.cprb.dev.rshbdev.ru/api/v1' + url, {
|
|
8
|
-
method,
|
|
9
|
-
headers: {
|
|
10
|
-
'Content-Type': 'application/json',
|
|
11
|
-
...getAthorizationHeaders(),
|
|
12
|
-
},
|
|
13
|
-
credentials: 'include',
|
|
14
|
-
body: body ? JSON.stringify(body) : null,
|
|
15
|
-
})
|
|
16
|
-
.then((response) => {
|
|
17
|
-
if (response.ok) {
|
|
18
|
-
return getResponse(response);
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
throw response;
|
|
22
|
-
}
|
|
23
|
-
})
|
|
24
|
-
.catch((error) => {
|
|
25
|
-
throw error;
|
|
26
|
-
});
|
|
27
|
-
const saveToken = (data) => {
|
|
28
|
-
sessionStorage.setItem('accessToken', data.access_token);
|
|
29
|
-
sessionStorage.setItem('refreshToken', data.refresh_token);
|
|
30
|
-
};
|
|
31
|
-
export const RETAIL_API = {
|
|
32
|
-
CreateUserProfile: async (body) => await request('/public-data/createUserProfile', 'POST', body),
|
|
33
|
-
UpdateUserProfile: async (body) => await request('/user-data/updateUserProfile', 'PUT', body),
|
|
34
|
-
CreateDraftTask: async (body) => await request('/user-data/createDraftTask', 'POST', body),
|
|
35
|
-
UpdateUserTask: async (body) => await request('/user-data/updateUserTask', 'PUT', body),
|
|
36
|
-
SendCode: async (body) => await request('/sms/sendCode', 'POST', body),
|
|
37
|
-
CheckCode: async (body) => await request('/sms/checkCode', 'POST', body).then(saveToken),
|
|
38
|
-
CreateCaptcha: async (phoneNumber) => await request(`/sms/createCaptcha?phoneNumber=${phoneNumber}`, 'GET'),
|
|
39
|
-
CheckCaptcha: async (body) => await request('/sms/checkCaptcha', 'POST', body),
|
|
40
|
-
GetFileByID: async (id) => await request(`/feedback/file?id=${id}`, 'GET'),
|
|
41
|
-
};
|
|
42
|
-
//# sourceMappingURL=RetailApi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RetailApi.js","sourceRoot":"","sources":["../../../src/api/RetailApi/RetailApi.ts"],"names":[],"mappings":"AAeA,MAAM,WAAW,GAAG,CAAC,QAAkB,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;AAE5F,MAAM,sBAAsB,GAAG,GAAG,EAAE;IAClC,MAAM,KAAK,GAAG,cAAc,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IAEpD,OAAO,KAAK,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,UAAU,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AAC7D,CAAC,CAAC;AAEF,MAAM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