@redneckz/wildless-cms-uni-blocks 0.14.670 → 0.14.672
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/RetailAPI/checkCaptcha.d.ts +1 -1
- package/bundle/api/RetailAPI/createCaptcha.d.ts +1 -1
- package/bundle/api/RetailAPI/createUserProfile.d.ts +1 -1
- package/bundle/api/RetailAPI/doRequest.d.ts +2 -1
- package/bundle/api/RetailAPI/getCardTypes.d.ts +8 -0
- package/bundle/api/RetailAPI/getLink.d.ts +1 -1
- package/bundle/api/RetailAPI/getPaymentSystems.d.ts +4 -0
- package/bundle/api/RetailAPI/getTaskStatus.d.ts +2 -3
- package/bundle/api/RetailAPI/regionOffices.d.ts +1 -1
- package/bundle/api/RetailAPI/sendCode.d.ts +1 -4
- package/bundle/api/RetailAPI/sendSignalToProcess.d.ts +1 -5
- package/bundle/api/RetailAPI/updateProfileEsia.d.ts +1 -1
- package/bundle/api/RetailAPI/updateUserProfile.d.ts +1 -1
- package/bundle/api/RetailAPI/updateUserTask.d.ts +1 -1
- package/bundle/bundle.umd.js +131 -104
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/ui-kit/FormField/Fields/PaymentSystemField.d.ts +0 -2
- package/dist/api/RetailAPI/checkCaptcha.d.ts +1 -1
- package/dist/api/RetailAPI/checkCaptcha.js +3 -1
- package/dist/api/RetailAPI/checkCaptcha.js.map +1 -1
- package/dist/api/RetailAPI/checkCode.js +5 -3
- package/dist/api/RetailAPI/checkCode.js.map +1 -1
- package/dist/api/RetailAPI/createCaptcha.d.ts +1 -1
- package/dist/api/RetailAPI/createCaptcha.js +1 -1
- package/dist/api/RetailAPI/createCaptcha.js.map +1 -1
- package/dist/api/RetailAPI/createDraftTask.js +4 -1
- package/dist/api/RetailAPI/createDraftTask.js.map +1 -1
- package/dist/api/RetailAPI/createUserProfile.d.ts +1 -1
- package/dist/api/RetailAPI/createUserProfile.js +1 -1
- package/dist/api/RetailAPI/createUserProfile.js.map +1 -1
- package/dist/api/RetailAPI/doRequest.d.ts +2 -1
- package/dist/api/RetailAPI/doRequest.js +13 -6
- package/dist/api/RetailAPI/doRequest.js.map +1 -1
- package/dist/api/RetailAPI/feedbackById.js +1 -1
- package/dist/api/RetailAPI/feedbackById.js.map +1 -1
- package/dist/api/RetailAPI/getCardTypes.d.ts +8 -0
- package/dist/api/RetailAPI/getCardTypes.js +13 -0
- package/dist/api/RetailAPI/getCardTypes.js.map +1 -0
- package/dist/api/RetailAPI/getLink.d.ts +1 -1
- package/dist/api/RetailAPI/getLink.js +1 -1
- package/dist/api/RetailAPI/getLink.js.map +1 -1
- package/dist/api/RetailAPI/getPaymentSystems.d.ts +4 -0
- package/dist/api/RetailAPI/getPaymentSystems.js +15 -0
- package/dist/api/RetailAPI/getPaymentSystems.js.map +1 -0
- package/dist/api/RetailAPI/getTaskStatus.d.ts +2 -3
- package/dist/api/RetailAPI/getTaskStatus.js +1 -1
- package/dist/api/RetailAPI/getTaskStatus.js.map +1 -1
- package/dist/api/RetailAPI/regionOffices.d.ts +1 -1
- package/dist/api/RetailAPI/regionOffices.js +9 -8
- package/dist/api/RetailAPI/regionOffices.js.map +1 -1
- package/dist/api/RetailAPI/sendCode.d.ts +1 -4
- package/dist/api/RetailAPI/sendCode.js +4 -1
- package/dist/api/RetailAPI/sendCode.js.map +1 -1
- package/dist/api/RetailAPI/sendSignalToProcess.d.ts +1 -5
- package/dist/api/RetailAPI/sendSignalToProcess.js.map +1 -1
- package/dist/api/RetailAPI/updateProfileEsia.d.ts +1 -1
- package/dist/api/RetailAPI/updateProfileEsia.js +1 -1
- package/dist/api/RetailAPI/updateProfileEsia.js.map +1 -1
- package/dist/api/RetailAPI/updateRefreshToken.js +4 -4
- package/dist/api/RetailAPI/updateRefreshToken.js.map +1 -1
- package/dist/api/RetailAPI/updateUserProfile.d.ts +1 -1
- package/dist/api/RetailAPI/updateUserProfile.js +1 -1
- package/dist/api/RetailAPI/updateUserProfile.js.map +1 -1
- package/dist/api/RetailAPI/updateUserTask.d.ts +1 -1
- package/dist/api/RetailAPI/updateUserTask.js +1 -1
- package/dist/api/RetailAPI/updateUserTask.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +5 -4
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +4 -3
- package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/dist/components/CreditCardForm/formStateMap.js +1 -2
- package/dist/components/CreditCardForm/formStateMap.js.map +1 -1
- package/dist/components/CreditForm/CreditFormStatusTracker.js +1 -1
- package/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/dist/ui-kit/CaptchaDialog/CaptchaDialog.js +16 -5
- package/dist/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/AddressRetailField.js +2 -3
- package/dist/ui-kit/FormField/Fields/AddressRetailField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/CardCategoryField.js +11 -3
- package/dist/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/PaymentSystemField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/PaymentSystemField.js +11 -6
- package/dist/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
- package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +17 -12
- package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/lib/api/RetailAPI/checkCaptcha.d.ts +1 -1
- package/lib/api/RetailAPI/checkCaptcha.js +3 -1
- package/lib/api/RetailAPI/checkCaptcha.js.map +1 -1
- package/lib/api/RetailAPI/checkCode.js +6 -4
- package/lib/api/RetailAPI/checkCode.js.map +1 -1
- package/lib/api/RetailAPI/createCaptcha.d.ts +1 -1
- package/lib/api/RetailAPI/createCaptcha.js +1 -1
- package/lib/api/RetailAPI/createCaptcha.js.map +1 -1
- package/lib/api/RetailAPI/createDraftTask.js +5 -2
- package/lib/api/RetailAPI/createDraftTask.js.map +1 -1
- package/lib/api/RetailAPI/createUserProfile.d.ts +1 -1
- package/lib/api/RetailAPI/createUserProfile.js +2 -2
- package/lib/api/RetailAPI/createUserProfile.js.map +1 -1
- package/lib/api/RetailAPI/doRequest.d.ts +2 -1
- package/lib/api/RetailAPI/doRequest.js +11 -5
- package/lib/api/RetailAPI/doRequest.js.map +1 -1
- package/lib/api/RetailAPI/feedbackById.js +1 -1
- package/lib/api/RetailAPI/feedbackById.js.map +1 -1
- package/lib/api/RetailAPI/getCardTypes.d.ts +8 -0
- package/lib/api/RetailAPI/getCardTypes.js +10 -0
- package/lib/api/RetailAPI/getCardTypes.js.map +1 -0
- package/lib/api/RetailAPI/getLink.d.ts +1 -1
- package/lib/api/RetailAPI/getLink.js +2 -2
- package/lib/api/RetailAPI/getLink.js.map +1 -1
- package/lib/api/RetailAPI/getPaymentSystems.d.ts +4 -0
- package/lib/api/RetailAPI/getPaymentSystems.js +12 -0
- package/lib/api/RetailAPI/getPaymentSystems.js.map +1 -0
- package/lib/api/RetailAPI/getTaskStatus.d.ts +2 -3
- package/lib/api/RetailAPI/getTaskStatus.js +2 -2
- package/lib/api/RetailAPI/getTaskStatus.js.map +1 -1
- package/lib/api/RetailAPI/regionOffices.d.ts +1 -1
- package/lib/api/RetailAPI/regionOffices.js +8 -7
- package/lib/api/RetailAPI/regionOffices.js.map +1 -1
- package/lib/api/RetailAPI/sendCode.d.ts +1 -4
- package/lib/api/RetailAPI/sendCode.js +5 -2
- package/lib/api/RetailAPI/sendCode.js.map +1 -1
- package/lib/api/RetailAPI/sendSignalToProcess.d.ts +1 -5
- package/lib/api/RetailAPI/sendSignalToProcess.js.map +1 -1
- package/lib/api/RetailAPI/updateProfileEsia.d.ts +1 -1
- package/lib/api/RetailAPI/updateProfileEsia.js +2 -2
- package/lib/api/RetailAPI/updateProfileEsia.js.map +1 -1
- package/lib/api/RetailAPI/updateRefreshToken.js +4 -4
- package/lib/api/RetailAPI/updateRefreshToken.js.map +1 -1
- package/lib/api/RetailAPI/updateUserProfile.d.ts +1 -1
- package/lib/api/RetailAPI/updateUserProfile.js +2 -2
- package/lib/api/RetailAPI/updateUserProfile.js.map +1 -1
- package/lib/api/RetailAPI/updateUserTask.d.ts +1 -1
- package/lib/api/RetailAPI/updateUserTask.js +2 -2
- package/lib/api/RetailAPI/updateUserTask.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +5 -4
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +5 -4
- package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/lib/components/CreditCardForm/formStateMap.js +1 -2
- package/lib/components/CreditCardForm/formStateMap.js.map +1 -1
- package/lib/components/CreditForm/CreditFormStatusTracker.js +1 -1
- package/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/lib/ui-kit/CaptchaDialog/CaptchaDialog.js +17 -6
- package/lib/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/AddressRetailField.js +3 -4
- package/lib/ui-kit/FormField/Fields/AddressRetailField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/CardCategoryField.js +11 -3
- package/lib/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/PaymentSystemField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/PaymentSystemField.js +10 -5
- package/lib/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
- package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +17 -12
- package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/bundle/api/RetailAPI/checkCaptcha.d.ts +1 -1
- package/mobile/bundle/api/RetailAPI/createCaptcha.d.ts +1 -1
- package/mobile/bundle/api/RetailAPI/createUserProfile.d.ts +1 -1
- package/mobile/bundle/api/RetailAPI/doRequest.d.ts +2 -1
- package/mobile/bundle/api/RetailAPI/getCardTypes.d.ts +8 -0
- package/mobile/bundle/api/RetailAPI/getLink.d.ts +1 -1
- package/mobile/bundle/api/RetailAPI/getPaymentSystems.d.ts +4 -0
- package/mobile/bundle/api/RetailAPI/getTaskStatus.d.ts +2 -3
- package/mobile/bundle/api/RetailAPI/regionOffices.d.ts +1 -1
- package/mobile/bundle/api/RetailAPI/sendCode.d.ts +1 -4
- package/mobile/bundle/api/RetailAPI/sendSignalToProcess.d.ts +1 -5
- package/mobile/bundle/api/RetailAPI/updateProfileEsia.d.ts +1 -1
- package/mobile/bundle/api/RetailAPI/updateUserProfile.d.ts +1 -1
- package/mobile/bundle/api/RetailAPI/updateUserTask.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +131 -104
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/ui-kit/FormField/Fields/PaymentSystemField.d.ts +0 -2
- package/mobile/dist/api/RetailAPI/checkCaptcha.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/checkCaptcha.js +3 -1
- package/mobile/dist/api/RetailAPI/checkCaptcha.js.map +1 -1
- package/mobile/dist/api/RetailAPI/checkCode.js +5 -3
- package/mobile/dist/api/RetailAPI/checkCode.js.map +1 -1
- package/mobile/dist/api/RetailAPI/createCaptcha.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/createCaptcha.js +1 -1
- package/mobile/dist/api/RetailAPI/createCaptcha.js.map +1 -1
- package/mobile/dist/api/RetailAPI/createDraftTask.js +4 -1
- package/mobile/dist/api/RetailAPI/createDraftTask.js.map +1 -1
- package/mobile/dist/api/RetailAPI/createUserProfile.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/createUserProfile.js +1 -1
- package/mobile/dist/api/RetailAPI/createUserProfile.js.map +1 -1
- package/mobile/dist/api/RetailAPI/doRequest.d.ts +2 -1
- package/mobile/dist/api/RetailAPI/doRequest.js +13 -6
- package/mobile/dist/api/RetailAPI/doRequest.js.map +1 -1
- package/mobile/dist/api/RetailAPI/feedbackById.js +1 -1
- package/mobile/dist/api/RetailAPI/feedbackById.js.map +1 -1
- package/mobile/dist/api/RetailAPI/getCardTypes.d.ts +8 -0
- package/mobile/dist/api/RetailAPI/getCardTypes.js +13 -0
- package/mobile/dist/api/RetailAPI/getCardTypes.js.map +1 -0
- package/mobile/dist/api/RetailAPI/getLink.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/getLink.js +1 -1
- package/mobile/dist/api/RetailAPI/getLink.js.map +1 -1
- package/mobile/dist/api/RetailAPI/getPaymentSystems.d.ts +4 -0
- package/mobile/dist/api/RetailAPI/getPaymentSystems.js +15 -0
- package/mobile/dist/api/RetailAPI/getPaymentSystems.js.map +1 -0
- package/mobile/dist/api/RetailAPI/getTaskStatus.d.ts +2 -3
- package/mobile/dist/api/RetailAPI/getTaskStatus.js +1 -1
- package/mobile/dist/api/RetailAPI/getTaskStatus.js.map +1 -1
- package/mobile/dist/api/RetailAPI/regionOffices.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/regionOffices.js +9 -8
- package/mobile/dist/api/RetailAPI/regionOffices.js.map +1 -1
- package/mobile/dist/api/RetailAPI/sendCode.d.ts +1 -4
- package/mobile/dist/api/RetailAPI/sendCode.js +4 -1
- package/mobile/dist/api/RetailAPI/sendCode.js.map +1 -1
- package/mobile/dist/api/RetailAPI/sendSignalToProcess.d.ts +1 -5
- package/mobile/dist/api/RetailAPI/sendSignalToProcess.js.map +1 -1
- package/mobile/dist/api/RetailAPI/updateProfileEsia.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/updateProfileEsia.js +1 -1
- package/mobile/dist/api/RetailAPI/updateProfileEsia.js.map +1 -1
- package/mobile/dist/api/RetailAPI/updateRefreshToken.js +4 -4
- package/mobile/dist/api/RetailAPI/updateRefreshToken.js.map +1 -1
- package/mobile/dist/api/RetailAPI/updateUserProfile.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/updateUserProfile.js +1 -1
- package/mobile/dist/api/RetailAPI/updateUserProfile.js.map +1 -1
- package/mobile/dist/api/RetailAPI/updateUserTask.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/updateUserTask.js +1 -1
- package/mobile/dist/api/RetailAPI/updateUserTask.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +5 -4
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +4 -3
- package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/formStateMap.js +1 -2
- package/mobile/dist/components/CreditCardForm/formStateMap.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js +1 -1
- package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/mobile/dist/ui-kit/CaptchaDialog/CaptchaDialog.js +16 -5
- package/mobile/dist/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/mobile/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/AddressRetailField.js +2 -3
- package/mobile/dist/ui-kit/FormField/Fields/AddressRetailField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/CardCategoryField.js +11 -3
- package/mobile/dist/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.js +11 -6
- package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +17 -12
- package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/lib/api/RetailAPI/checkCaptcha.d.ts +1 -1
- package/mobile/lib/api/RetailAPI/checkCaptcha.js +3 -1
- package/mobile/lib/api/RetailAPI/checkCaptcha.js.map +1 -1
- package/mobile/lib/api/RetailAPI/checkCode.js +6 -4
- package/mobile/lib/api/RetailAPI/checkCode.js.map +1 -1
- package/mobile/lib/api/RetailAPI/createCaptcha.d.ts +1 -1
- package/mobile/lib/api/RetailAPI/createCaptcha.js +1 -1
- package/mobile/lib/api/RetailAPI/createCaptcha.js.map +1 -1
- package/mobile/lib/api/RetailAPI/createDraftTask.js +5 -2
- package/mobile/lib/api/RetailAPI/createDraftTask.js.map +1 -1
- package/mobile/lib/api/RetailAPI/createUserProfile.d.ts +1 -1
- package/mobile/lib/api/RetailAPI/createUserProfile.js +2 -2
- package/mobile/lib/api/RetailAPI/createUserProfile.js.map +1 -1
- package/mobile/lib/api/RetailAPI/doRequest.d.ts +2 -1
- package/mobile/lib/api/RetailAPI/doRequest.js +11 -5
- package/mobile/lib/api/RetailAPI/doRequest.js.map +1 -1
- package/mobile/lib/api/RetailAPI/feedbackById.js +1 -1
- package/mobile/lib/api/RetailAPI/feedbackById.js.map +1 -1
- package/mobile/lib/api/RetailAPI/getCardTypes.d.ts +8 -0
- package/mobile/lib/api/RetailAPI/getCardTypes.js +10 -0
- package/mobile/lib/api/RetailAPI/getCardTypes.js.map +1 -0
- package/mobile/lib/api/RetailAPI/getLink.d.ts +1 -1
- package/mobile/lib/api/RetailAPI/getLink.js +2 -2
- package/mobile/lib/api/RetailAPI/getLink.js.map +1 -1
- package/mobile/lib/api/RetailAPI/getPaymentSystems.d.ts +4 -0
- package/mobile/lib/api/RetailAPI/getPaymentSystems.js +12 -0
- package/mobile/lib/api/RetailAPI/getPaymentSystems.js.map +1 -0
- package/mobile/lib/api/RetailAPI/getTaskStatus.d.ts +2 -3
- package/mobile/lib/api/RetailAPI/getTaskStatus.js +2 -2
- package/mobile/lib/api/RetailAPI/getTaskStatus.js.map +1 -1
- package/mobile/lib/api/RetailAPI/regionOffices.d.ts +1 -1
- package/mobile/lib/api/RetailAPI/regionOffices.js +8 -7
- package/mobile/lib/api/RetailAPI/regionOffices.js.map +1 -1
- package/mobile/lib/api/RetailAPI/sendCode.d.ts +1 -4
- package/mobile/lib/api/RetailAPI/sendCode.js +5 -2
- package/mobile/lib/api/RetailAPI/sendCode.js.map +1 -1
- package/mobile/lib/api/RetailAPI/sendSignalToProcess.d.ts +1 -5
- package/mobile/lib/api/RetailAPI/sendSignalToProcess.js.map +1 -1
- package/mobile/lib/api/RetailAPI/updateProfileEsia.d.ts +1 -1
- package/mobile/lib/api/RetailAPI/updateProfileEsia.js +2 -2
- package/mobile/lib/api/RetailAPI/updateProfileEsia.js.map +1 -1
- package/mobile/lib/api/RetailAPI/updateRefreshToken.js +4 -4
- package/mobile/lib/api/RetailAPI/updateRefreshToken.js.map +1 -1
- package/mobile/lib/api/RetailAPI/updateUserProfile.d.ts +1 -1
- package/mobile/lib/api/RetailAPI/updateUserProfile.js +2 -2
- package/mobile/lib/api/RetailAPI/updateUserProfile.js.map +1 -1
- package/mobile/lib/api/RetailAPI/updateUserTask.d.ts +1 -1
- package/mobile/lib/api/RetailAPI/updateUserTask.js +2 -2
- package/mobile/lib/api/RetailAPI/updateUserTask.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +5 -4
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +5 -4
- package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/formStateMap.js +1 -2
- package/mobile/lib/components/CreditCardForm/formStateMap.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js +1 -1
- package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/mobile/lib/ui-kit/CaptchaDialog/CaptchaDialog.js +17 -6
- package/mobile/lib/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/mobile/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/AddressRetailField.js +3 -4
- package/mobile/lib/ui-kit/FormField/Fields/AddressRetailField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/CardCategoryField.js +11 -3
- package/mobile/lib/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.js +10 -5
- package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +17 -12
- package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/src/api/RetailAPI/checkCaptcha.ts +3 -1
- package/mobile/src/api/RetailAPI/checkCode.ts +7 -5
- package/mobile/src/api/RetailAPI/createCaptcha.ts +3 -1
- package/mobile/src/api/RetailAPI/createDraftTask.ts +12 -3
- package/mobile/src/api/RetailAPI/createUserProfile.ts +4 -2
- package/mobile/src/api/RetailAPI/doRequest.ts +19 -9
- package/mobile/src/api/RetailAPI/feedbackById.ts +2 -2
- package/mobile/src/api/RetailAPI/getCardTypes.ts +20 -0
- package/mobile/src/api/RetailAPI/getLink.ts +2 -2
- package/mobile/src/api/RetailAPI/getPaymentSystems.ts +21 -0
- package/mobile/src/api/RetailAPI/getTaskStatus.ts +3 -3
- package/mobile/src/api/RetailAPI/regionOffices.ts +18 -12
- package/mobile/src/api/RetailAPI/sendCode.ts +14 -2
- package/mobile/src/api/RetailAPI/sendSignalToProcess.ts +1 -6
- package/mobile/src/api/RetailAPI/updateProfileEsia.ts +2 -2
- package/mobile/src/api/RetailAPI/updateRefreshToken.ts +6 -6
- package/mobile/src/api/RetailAPI/updateUserProfile.ts +2 -2
- package/mobile/src/api/RetailAPI/updateUserTask.ts +2 -2
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +3 -3
- package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +5 -4
- package/mobile/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +9 -8
- package/mobile/src/components/CreditCardForm/formStateMap.tsx +1 -2
- package/mobile/src/components/CreditForm/CreditFormStatusTracker.tsx +1 -1
- package/mobile/src/ui-kit/CaptchaDialog/CaptchaDialog.tsx +20 -12
- package/mobile/src/ui-kit/EsiaLoginDialog/EsiaLoginDialog.tsx +1 -0
- package/mobile/src/ui-kit/FormField/Fields/AddressRetailField.tsx +3 -4
- package/mobile/src/ui-kit/FormField/Fields/CardCategoryField.tsx +12 -3
- package/mobile/src/ui-kit/FormField/Fields/PaymentSystemField.tsx +12 -6
- package/mobile/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +18 -13
- package/package.json +1 -1
- package/src/api/RetailAPI/checkCaptcha.ts +3 -1
- package/src/api/RetailAPI/checkCode.ts +7 -5
- package/src/api/RetailAPI/createCaptcha.ts +3 -1
- package/src/api/RetailAPI/createDraftTask.ts +12 -3
- package/src/api/RetailAPI/createUserProfile.ts +4 -2
- package/src/api/RetailAPI/doRequest.ts +19 -9
- package/src/api/RetailAPI/feedbackById.ts +2 -2
- package/src/api/RetailAPI/getCardTypes.ts +20 -0
- package/src/api/RetailAPI/getLink.ts +2 -2
- package/src/api/RetailAPI/getPaymentSystems.ts +21 -0
- package/src/api/RetailAPI/getTaskStatus.ts +3 -3
- package/src/api/RetailAPI/regionOffices.ts +18 -12
- package/src/api/RetailAPI/sendCode.ts +14 -2
- package/src/api/RetailAPI/sendSignalToProcess.ts +1 -6
- package/src/api/RetailAPI/updateProfileEsia.ts +2 -2
- package/src/api/RetailAPI/updateRefreshToken.ts +6 -6
- package/src/api/RetailAPI/updateUserProfile.ts +2 -2
- package/src/api/RetailAPI/updateUserTask.ts +2 -2
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +3 -3
- package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +5 -4
- package/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +9 -8
- package/src/components/CreditCardForm/formStateMap.tsx +1 -2
- package/src/components/CreditForm/CreditFormStatusTracker.tsx +1 -1
- package/src/ui-kit/CaptchaDialog/CaptchaDialog.tsx +20 -12
- package/src/ui-kit/EsiaLoginDialog/EsiaLoginDialog.tsx +1 -0
- package/src/ui-kit/FormField/Fields/AddressRetailField.tsx +3 -4
- package/src/ui-kit/FormField/Fields/CardCategoryField.tsx +12 -3
- package/src/ui-kit/FormField/Fields/PaymentSystemField.tsx +12 -6
- package/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +18 -13
- package/bundle/ui-kit/CaptchaDialog/handleCheckCaptcha.d.ts +0 -8
- package/bundle/ui-kit/CaptchaDialog/handleCreateCaptcha.d.ts +0 -1
- package/bundle/ui-kit/VerifyPhoneDialog/handleSendCode.d.ts +0 -15
- package/dist/ui-kit/CaptchaDialog/handleCheckCaptcha.d.ts +0 -8
- package/dist/ui-kit/CaptchaDialog/handleCheckCaptcha.js +0 -16
- package/dist/ui-kit/CaptchaDialog/handleCheckCaptcha.js.map +0 -1
- package/dist/ui-kit/CaptchaDialog/handleCreateCaptcha.d.ts +0 -1
- package/dist/ui-kit/CaptchaDialog/handleCreateCaptcha.js +0 -9
- package/dist/ui-kit/CaptchaDialog/handleCreateCaptcha.js.map +0 -1
- package/dist/ui-kit/VerifyPhoneDialog/handleSendCode.d.ts +0 -15
- package/dist/ui-kit/VerifyPhoneDialog/handleSendCode.js +0 -25
- package/dist/ui-kit/VerifyPhoneDialog/handleSendCode.js.map +0 -1
- package/lib/ui-kit/CaptchaDialog/handleCheckCaptcha.d.ts +0 -8
- package/lib/ui-kit/CaptchaDialog/handleCheckCaptcha.js +0 -13
- package/lib/ui-kit/CaptchaDialog/handleCheckCaptcha.js.map +0 -1
- package/lib/ui-kit/CaptchaDialog/handleCreateCaptcha.d.ts +0 -1
- package/lib/ui-kit/CaptchaDialog/handleCreateCaptcha.js +0 -6
- package/lib/ui-kit/CaptchaDialog/handleCreateCaptcha.js.map +0 -1
- package/lib/ui-kit/VerifyPhoneDialog/handleSendCode.d.ts +0 -15
- package/lib/ui-kit/VerifyPhoneDialog/handleSendCode.js +0 -22
- package/lib/ui-kit/VerifyPhoneDialog/handleSendCode.js.map +0 -1
- package/mobile/bundle/ui-kit/CaptchaDialog/handleCheckCaptcha.d.ts +0 -8
- package/mobile/bundle/ui-kit/CaptchaDialog/handleCreateCaptcha.d.ts +0 -1
- package/mobile/bundle/ui-kit/VerifyPhoneDialog/handleSendCode.d.ts +0 -15
- package/mobile/dist/ui-kit/CaptchaDialog/handleCheckCaptcha.d.ts +0 -8
- package/mobile/dist/ui-kit/CaptchaDialog/handleCheckCaptcha.js +0 -16
- package/mobile/dist/ui-kit/CaptchaDialog/handleCheckCaptcha.js.map +0 -1
- package/mobile/dist/ui-kit/CaptchaDialog/handleCreateCaptcha.d.ts +0 -1
- package/mobile/dist/ui-kit/CaptchaDialog/handleCreateCaptcha.js +0 -9
- package/mobile/dist/ui-kit/CaptchaDialog/handleCreateCaptcha.js.map +0 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/handleSendCode.d.ts +0 -15
- package/mobile/dist/ui-kit/VerifyPhoneDialog/handleSendCode.js +0 -25
- package/mobile/dist/ui-kit/VerifyPhoneDialog/handleSendCode.js.map +0 -1
- package/mobile/lib/ui-kit/CaptchaDialog/handleCheckCaptcha.d.ts +0 -8
- package/mobile/lib/ui-kit/CaptchaDialog/handleCheckCaptcha.js +0 -13
- package/mobile/lib/ui-kit/CaptchaDialog/handleCheckCaptcha.js.map +0 -1
- package/mobile/lib/ui-kit/CaptchaDialog/handleCreateCaptcha.d.ts +0 -1
- package/mobile/lib/ui-kit/CaptchaDialog/handleCreateCaptcha.js +0 -6
- package/mobile/lib/ui-kit/CaptchaDialog/handleCreateCaptcha.js.map +0 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/handleSendCode.d.ts +0 -15
- package/mobile/lib/ui-kit/VerifyPhoneDialog/handleSendCode.js +0 -22
- package/mobile/lib/ui-kit/VerifyPhoneDialog/handleSendCode.js.map +0 -1
- package/mobile/src/ui-kit/CaptchaDialog/handleCheckCaptcha.ts +0 -25
- package/mobile/src/ui-kit/CaptchaDialog/handleCreateCaptcha.ts +0 -9
- package/mobile/src/ui-kit/VerifyPhoneDialog/handleSendCode.ts +0 -43
- package/src/ui-kit/CaptchaDialog/handleCheckCaptcha.ts +0 -25
- package/src/ui-kit/CaptchaDialog/handleCreateCaptcha.ts +0 -9
- package/src/ui-kit/VerifyPhoneDialog/handleSendCode.ts +0 -43
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { fetchRetailJSON } from './doRequest';
|
|
2
2
|
|
|
3
3
|
export type CheckCodeBody = {
|
|
4
4
|
smsText: string;
|
|
@@ -14,9 +14,11 @@ export type CheckCodeResponse = {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
export const checkCode = async (body: CheckCodeBody) =>
|
|
17
|
-
|
|
17
|
+
fetchRetailJSON<CheckCodeResponse>('/sms/checkCode', 'POST', body).then(saveToken);
|
|
18
18
|
|
|
19
|
-
const saveToken = (data: CheckCodeResponse) => {
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
const saveToken = (data: CheckCodeResponse | null) => {
|
|
20
|
+
if (data) {
|
|
21
|
+
globalThis.sessionStorage.setItem('accessToken', data.access_token);
|
|
22
|
+
globalThis.sessionStorage.setItem('refreshToken', data.refresh_token);
|
|
23
|
+
}
|
|
22
24
|
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { doRequest } from './doRequest';
|
|
2
2
|
|
|
3
3
|
export const createCaptcha = (phoneNumber: string) =>
|
|
4
|
-
doRequest
|
|
4
|
+
doRequest(`/sms/createCaptcha?phoneNumber=${encodeURIComponent(phoneNumber)}`, 'GET').then(
|
|
5
|
+
async (res) => (res ? await res.blob() : new Blob()),
|
|
6
|
+
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { fetchRetailJSON } from './doRequest';
|
|
2
2
|
|
|
3
3
|
export type CreateDraftTaskBody = {
|
|
4
4
|
profileId: number;
|
|
@@ -10,5 +10,14 @@ export type CreateDraftTaskResponse = {
|
|
|
10
10
|
participantId: number;
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
export const createDraftTask = (
|
|
14
|
-
|
|
13
|
+
export const createDraftTask = async (
|
|
14
|
+
body: CreateDraftTaskBody,
|
|
15
|
+
): Promise<CreateDraftTaskResponse> => {
|
|
16
|
+
const res = await fetchRetailJSON<CreateDraftTaskResponse>(
|
|
17
|
+
'/user-data/createDraftTask',
|
|
18
|
+
'POST',
|
|
19
|
+
body,
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
return res || ({} as CreateDraftTaskResponse);
|
|
23
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { fetchRetailJSON } from './doRequest';
|
|
2
2
|
|
|
3
3
|
export interface RetailUserProfile {
|
|
4
4
|
id?: number;
|
|
@@ -10,4 +10,6 @@ interface CreateUserProfileType {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export const createUserProfile = (body: CreateUserProfileType) =>
|
|
13
|
-
|
|
13
|
+
fetchRetailJSON<CreateUserProfileType>('/public-data/createUserProfile', 'POST', body).then(
|
|
14
|
+
(res) => res?.profile?.id || null,
|
|
15
|
+
);
|
|
@@ -1,11 +1,27 @@
|
|
|
1
1
|
import { API_BASE_URI } from '../apiBaseUrl';
|
|
2
2
|
|
|
3
|
-
export async
|
|
3
|
+
export const fetchRetailJSON = async <R>(
|
|
4
4
|
url: string,
|
|
5
5
|
method: 'POST' | 'GET' | 'PUT',
|
|
6
6
|
body?: any,
|
|
7
|
-
): Promise<R> {
|
|
8
|
-
|
|
7
|
+
): Promise<R | null> => {
|
|
8
|
+
try {
|
|
9
|
+
const response = await doRequest(url, method, body);
|
|
10
|
+
|
|
11
|
+
return response.json();
|
|
12
|
+
} catch (err) {
|
|
13
|
+
console.error(err);
|
|
14
|
+
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export async function doRequest(
|
|
20
|
+
url: string,
|
|
21
|
+
method: 'POST' | 'GET' | 'PUT',
|
|
22
|
+
body?: any,
|
|
23
|
+
): Promise<Response> {
|
|
24
|
+
return globalThis?.fetch?.(`${API_BASE_URI}${url}`, {
|
|
9
25
|
method,
|
|
10
26
|
headers: {
|
|
11
27
|
'Content-Type': 'application/json',
|
|
@@ -14,14 +30,8 @@ export async function doRequest<R>(
|
|
|
14
30
|
credentials: 'include',
|
|
15
31
|
body: body ? JSON.stringify(body) : null,
|
|
16
32
|
});
|
|
17
|
-
|
|
18
|
-
// TODO: add error handling
|
|
19
|
-
return isJSON(response) ? response.json() : response;
|
|
20
33
|
}
|
|
21
34
|
|
|
22
|
-
// TODO: Need delete isJSON
|
|
23
|
-
const isJSON = (response: Response) => response.headers.get('Content-Type') === 'application/json';
|
|
24
|
-
|
|
25
35
|
const getAuthorizationHeaders = () => {
|
|
26
36
|
const token = sessionStorage.getItem('accessToken');
|
|
27
37
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { doRequest } from './doRequest';
|
|
2
2
|
|
|
3
3
|
export const feedbackById = async (id: number, convertToPng = false) => {
|
|
4
|
-
const response
|
|
4
|
+
const response = await doRequest(
|
|
5
5
|
`/feedback/file?id=${encodeURIComponent(id)}&convertToPngFlg=${convertToPng}`,
|
|
6
6
|
'GET',
|
|
7
7
|
);
|
|
8
8
|
|
|
9
|
-
return await response.blob();
|
|
9
|
+
return response ? await response.blob() : new Blob();
|
|
10
10
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { doRequest } from './doRequest';
|
|
2
|
+
|
|
3
|
+
export type CardTypeData = {
|
|
4
|
+
type: string;
|
|
5
|
+
key: string;
|
|
6
|
+
value: string;
|
|
7
|
+
displayOrder: number;
|
|
8
|
+
description: string;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export const getCardTypes = async (paymentSystemType: string) => {
|
|
12
|
+
const response: Response = await doRequest('/dictionaryFiltered', 'POST', {
|
|
13
|
+
type: 'CARD_TYPE',
|
|
14
|
+
presets: { paymentSystemType, creditProgramId: 13 },
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const data: CardTypeData[] = await response?.json();
|
|
18
|
+
|
|
19
|
+
return data;
|
|
20
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { fetchRetailJSON } from './doRequest';
|
|
2
2
|
|
|
3
3
|
export type GetLinkBody = {
|
|
4
4
|
redirectUri: string;
|
|
@@ -9,4 +9,4 @@ export type GetLinkResponse = {
|
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export const getLink = (body: GetLinkBody) =>
|
|
12
|
-
|
|
12
|
+
fetchRetailJSON<GetLinkResponse>('/esia/getLink', 'POST', body);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { doRequest } from './doRequest';
|
|
2
|
+
|
|
3
|
+
type PaymentSystemResponse = {
|
|
4
|
+
paymentSystems?: {
|
|
5
|
+
name: string;
|
|
6
|
+
type: string;
|
|
7
|
+
}[];
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export const getPaymentSystems = async () => {
|
|
11
|
+
const response: Response = await doRequest('/public-data/creditProgramConditions', 'POST', {
|
|
12
|
+
creditProgramId: 13,
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
const data: PaymentSystemResponse = await response?.json();
|
|
16
|
+
|
|
17
|
+
return data?.paymentSystems?.map((paymentSystem) => ({
|
|
18
|
+
id: paymentSystem.type,
|
|
19
|
+
text: paymentSystem.name,
|
|
20
|
+
}));
|
|
21
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { fetchRetailJSON } from './doRequest';
|
|
2
2
|
|
|
3
3
|
export enum STATUS_TYPE {
|
|
4
4
|
process = 'IN_PROCESS',
|
|
@@ -7,10 +7,10 @@ export enum STATUS_TYPE {
|
|
|
7
7
|
rework = 'REVISION',
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
interface GetTaskStatusResponse {
|
|
10
|
+
export interface GetTaskStatusResponse {
|
|
11
11
|
statusCd: STATUS_TYPE;
|
|
12
12
|
taskId: number;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export const getTaskStatus = (body: { taskId: number | null }) =>
|
|
16
|
-
|
|
16
|
+
fetchRetailJSON<GetTaskStatusResponse>('/user-data/getTaskStatus', 'POST', body);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DEFAULT_CENTER_COORDS } from './../../ui-kit/YandexMap/YandexMap';
|
|
2
|
-
import {
|
|
2
|
+
import { fetchRetailJSON } from './doRequest';
|
|
3
3
|
|
|
4
4
|
export type OfficeType = {
|
|
5
5
|
address?: string;
|
|
@@ -18,19 +18,25 @@ export interface RegionOfficesResponseType {
|
|
|
18
18
|
offices: OfficeType[];
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
export const
|
|
22
|
-
const response
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
export const fetchRegionOffices = async (regionKey: string): Promise<OfficeType[]> => {
|
|
22
|
+
const response = await fetchRetailJSON<RegionOfficesResponseType>(
|
|
23
|
+
'/public-data/regionOffices',
|
|
24
|
+
'POST',
|
|
25
|
+
{
|
|
26
|
+
regionRfCd: {
|
|
27
|
+
key: regionKey,
|
|
28
|
+
},
|
|
29
|
+
cashCardFlg: true,
|
|
25
30
|
},
|
|
26
|
-
|
|
27
|
-
});
|
|
31
|
+
);
|
|
28
32
|
|
|
29
|
-
return
|
|
30
|
-
|
|
33
|
+
return (
|
|
34
|
+
response?.offices?.map((office: OfficeType) => ({
|
|
31
35
|
...office,
|
|
32
|
-
gpsLatitude: (office.latitude ?? DEFAULT_CENTER_COORDS[0])
|
|
33
|
-
gpsLongitude: (office.longitude ?? DEFAULT_CENTER_COORDS[1])
|
|
34
|
-
}))
|
|
36
|
+
gpsLatitude: formatCoordinate(office.latitude ?? DEFAULT_CENTER_COORDS[0]),
|
|
37
|
+
gpsLongitude: formatCoordinate(office.longitude ?? DEFAULT_CENTER_COORDS[1]),
|
|
38
|
+
})) || []
|
|
35
39
|
);
|
|
36
40
|
};
|
|
41
|
+
|
|
42
|
+
const formatCoordinate = (coordinate: number) => Number(coordinate.toString().replace(',', '.'));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { fetchRetailJSON } from './doRequest';
|
|
2
2
|
import { type StatusType } from './StatusType';
|
|
3
3
|
|
|
4
4
|
export type SendCodeBody = {
|
|
@@ -8,5 +8,17 @@ export type SendCodeBody = {
|
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
+
type SendCodeErrorResult = { errorMessage: string };
|
|
12
|
+
|
|
11
13
|
export const sendCode = (body: SendCodeBody) =>
|
|
12
|
-
|
|
14
|
+
fetchRetailJSON<StatusType | SendCodeErrorResult>('/sms/sendCode', 'POST', body).then(
|
|
15
|
+
(res) => !isErrorResult(res, body.phoneNumber),
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
const isErrorResult = (
|
|
19
|
+
res: StatusType | SendCodeErrorResult | null,
|
|
20
|
+
phoneNumber: string,
|
|
21
|
+
): res is SendCodeErrorResult =>
|
|
22
|
+
Boolean(res) &&
|
|
23
|
+
typeof res !== 'string' &&
|
|
24
|
+
Boolean(res?.errorMessage.startsWith(`Too many request for phoneNumber [${phoneNumber}]`));
|
|
@@ -10,10 +10,5 @@ interface SendSignalToProcess {
|
|
|
10
10
|
taskId: number | null;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
interface SendSignalToProcessResponse {
|
|
14
|
-
statusCd: string;
|
|
15
|
-
taskId: number;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
13
|
export const sendSignalToProcess = (body: SendSignalToProcess) =>
|
|
19
|
-
doRequest
|
|
14
|
+
doRequest('/user-data/sendSignalToProcess', 'POST', body);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { fetchRetailJSON } from './doRequest';
|
|
2
2
|
|
|
3
3
|
export type UpdateProfileEsiaBody = {
|
|
4
4
|
code: string;
|
|
@@ -68,4 +68,4 @@ export type UpdateProfileEsiaResponse = {
|
|
|
68
68
|
};
|
|
69
69
|
|
|
70
70
|
export const updateProfileEsia = (body: UpdateProfileEsiaBody) =>
|
|
71
|
-
|
|
71
|
+
fetchRetailJSON<UpdateProfileEsiaResponse>('/esia/updateProfileEsia', 'POST', body);
|
|
@@ -21,21 +21,21 @@ export const updateRefreshToken = () => {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const updateTokenRequest = async () => {
|
|
24
|
-
const res = await doRequest
|
|
24
|
+
const res = await doRequest('/auth/refresh', 'POST', {
|
|
25
25
|
// eslint-disable-next-line camelcase
|
|
26
26
|
refresh_token: refreshToken,
|
|
27
27
|
// eslint-disable-next-line camelcase
|
|
28
28
|
access_token: accessToken,
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
if (res
|
|
31
|
+
if (res) {
|
|
32
32
|
handleStatus(res.status);
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
}
|
|
34
|
+
const data: UpdateRefreshTokenBody = await res.json();
|
|
36
35
|
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
globalThis.sessionStorage.setItem('refreshToken', data.refresh_token);
|
|
37
|
+
globalThis.sessionStorage.setItem('accessToken', data.access_token);
|
|
38
|
+
}
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
updateTokenRequest();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { fetchRetailJSON } from './doRequest';
|
|
2
2
|
import { type CreateUserProfileResponse } from './updateUserTask';
|
|
3
3
|
|
|
4
4
|
export type UpdateUserProfileBody = {
|
|
@@ -23,4 +23,4 @@ export type UpdateUserProfileBody = {
|
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
export const updateUserProfile = (body: UpdateUserProfileBody) =>
|
|
26
|
-
|
|
26
|
+
fetchRetailJSON<CreateUserProfileResponse>('/user-data/updateUserProfile', 'PUT', body);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Option } from '../../ui-kit/Select/Option';
|
|
2
|
-
import {
|
|
2
|
+
import { fetchRetailJSON } from './doRequest';
|
|
3
3
|
|
|
4
4
|
type ParticipantAddress = {
|
|
5
5
|
addressType: {
|
|
@@ -140,4 +140,4 @@ export type CreateUserProfileResponse = {
|
|
|
140
140
|
};
|
|
141
141
|
|
|
142
142
|
export const updateUserTask = (body: UpdateUserTaskBody) =>
|
|
143
|
-
|
|
143
|
+
fetchRetailJSON<CreateUserProfileResponse>('/user-data/updateUserTask', 'PUT', body);
|
|
@@ -52,9 +52,7 @@ export const useApplicationLeadApi = ({
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
try {
|
|
55
|
-
const {
|
|
56
|
-
profile: { id: profileId },
|
|
57
|
-
} = await createUserProfile({
|
|
55
|
+
const profileId = await createUserProfile({
|
|
58
56
|
profile: { phone: formatPhone(formData.phone as string) },
|
|
59
57
|
});
|
|
60
58
|
|
|
@@ -111,6 +109,7 @@ const updateUserData = async ({
|
|
|
111
109
|
const transformedForm = transformOtherConsentsField(formData);
|
|
112
110
|
|
|
113
111
|
await updateUserProfile(getUpdateUserProfileData(profileId, transformedForm));
|
|
112
|
+
|
|
114
113
|
const { taskId, participantId } = await createDraftTask({
|
|
115
114
|
profileId,
|
|
116
115
|
programId,
|
|
@@ -124,6 +123,7 @@ const updateUserData = async ({
|
|
|
124
123
|
formData: transformedForm,
|
|
125
124
|
}),
|
|
126
125
|
);
|
|
126
|
+
|
|
127
127
|
saveUserData(participantId, taskId, profileId);
|
|
128
128
|
saveForm(formData);
|
|
129
129
|
};
|
|
@@ -22,10 +22,11 @@ export const useInitApplicationLead = (nextStepLink: string) => {
|
|
|
22
22
|
redirectUri: globalThis.location?.href,
|
|
23
23
|
});
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
data &&
|
|
26
|
+
setLeadForm({
|
|
27
|
+
...leadForm,
|
|
28
|
+
...parseEsiaProfile(data),
|
|
29
|
+
});
|
|
29
30
|
|
|
30
31
|
globalThis.location.href = nextStepLink;
|
|
31
32
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
+
import { useCallback, useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { getTaskStatus, STATUS_TYPE } from '../../api/RetailAPI/getTaskStatus';
|
|
4
4
|
import { sendSignalToProcess, type SignalType } from '../../api/RetailAPI/sendSignalToProcess';
|
|
5
5
|
import { useLocalStorage } from '../../hooks/useLocalStorage';
|
|
@@ -24,13 +24,14 @@ export const CreditCardFormStatusTracker = JSX(() => {
|
|
|
24
24
|
}
|
|
25
25
|
})();
|
|
26
26
|
|
|
27
|
-
const trackStatus = () =>
|
|
28
|
-
getTaskStatus({ taskId })
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
27
|
+
const trackStatus = useCallback(async () => {
|
|
28
|
+
const res = await getTaskStatus({ taskId });
|
|
29
|
+
|
|
30
|
+
if (res && res?.statusCd !== STATUS_TYPE.process) {
|
|
31
|
+
clearInterval(pullingInterval);
|
|
32
|
+
setStatus(res.statusCd);
|
|
33
|
+
}
|
|
34
|
+
}, []);
|
|
34
35
|
|
|
35
36
|
const pullingInterval = setInterval(trackStatus, 30000);
|
|
36
37
|
}, []);
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { PAYMENT_SYSTEM_TYPES } from '../../ui-kit/FormField/Fields/PaymentSystemField';
|
|
2
1
|
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
3
2
|
|
|
4
3
|
export const formStateMap: Partial<FormState>[] = [
|
|
5
4
|
{
|
|
6
|
-
paymentSystem:
|
|
5
|
+
paymentSystem: '',
|
|
7
6
|
currency: 'rub',
|
|
8
7
|
codeWord: '',
|
|
9
8
|
},
|
|
@@ -27,7 +27,7 @@ export const CreditFormStatusTracker = JSX(() => {
|
|
|
27
27
|
const trackStatus = () =>
|
|
28
28
|
taskId &&
|
|
29
29
|
getTaskStatus({ taskId }).then((res) => {
|
|
30
|
-
if (res
|
|
30
|
+
if (res?.statusCd && res.statusCd !== STATUS_TYPE.process) {
|
|
31
31
|
clearInterval(pullingInterval);
|
|
32
32
|
setStatus(res.statusCd);
|
|
33
33
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
+
import { useCallback, useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { checkCaptcha } from '../../api/RetailAPI/checkCaptcha';
|
|
4
|
+
import { createCaptcha } from '../../api/RetailAPI/createCaptcha';
|
|
3
5
|
import { Button } from '../Button/Button';
|
|
4
6
|
import { Dialog } from '../DialogManager/Dialog';
|
|
5
7
|
import { Icon } from '../Icon/Icon';
|
|
6
8
|
import { Input } from '../Input/Input';
|
|
7
9
|
import { Logo } from '../Logo/Logo';
|
|
8
|
-
import { handleCheckCaptcha } from './handleCheckCaptcha';
|
|
9
|
-
import { handleCreateCaptcha } from './handleCreateCaptcha';
|
|
10
10
|
|
|
11
11
|
export interface CaptchaDialogProps {
|
|
12
12
|
phoneNumber: string;
|
|
@@ -21,10 +21,23 @@ export const CaptchaDialog = JSX<CaptchaDialogProps>(
|
|
|
21
21
|
const [code, setCode] = useState('');
|
|
22
22
|
const [hasError, setHasError] = useState(false);
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
const handleCheckCaptcha = useCallback(async () => {
|
|
25
|
+
const isValidCode = await checkCaptcha({ captchaText: code });
|
|
26
|
+
|
|
27
|
+
if (isValidCode) {
|
|
28
|
+
sendCode?.();
|
|
29
|
+
close?.();
|
|
30
|
+
} else {
|
|
31
|
+
setHasError(isValidCode);
|
|
32
|
+
}
|
|
33
|
+
}, []);
|
|
34
|
+
|
|
35
|
+
const handleCreateCaptcha = useCallback(() => {
|
|
36
|
+
(async () => setCaptcha(URL.createObjectURL(await createCaptcha(phoneNumber))))();
|
|
26
37
|
}, []);
|
|
27
38
|
|
|
39
|
+
useEffect(handleCreateCaptcha, []);
|
|
40
|
+
|
|
28
41
|
return (
|
|
29
42
|
<Dialog
|
|
30
43
|
head={<Logo />}
|
|
@@ -35,7 +48,7 @@ export const CaptchaDialog = JSX<CaptchaDialogProps>(
|
|
|
35
48
|
<div className="flex h-36 w-72">
|
|
36
49
|
<img className="grow" src={captcha}></img>
|
|
37
50
|
<div
|
|
38
|
-
onClick={
|
|
51
|
+
onClick={handleCreateCaptcha}
|
|
39
52
|
className="flex w-8 items-center justify-center cursor-pointer"
|
|
40
53
|
>
|
|
41
54
|
<Icon iconVersion="normal" name="RefreshIcon" />
|
|
@@ -52,12 +65,7 @@ export const CaptchaDialog = JSX<CaptchaDialogProps>(
|
|
|
52
65
|
<Button onClick={close} version="secondary">
|
|
53
66
|
Вернуться
|
|
54
67
|
</Button>
|
|
55
|
-
<Button
|
|
56
|
-
type="submit"
|
|
57
|
-
disabled={!code}
|
|
58
|
-
onClick={() => handleCheckCaptcha({ code, setHasError, close, sendCode })}
|
|
59
|
-
version="secondary"
|
|
60
|
-
>
|
|
68
|
+
<Button type="submit" disabled={!code} onClick={handleCheckCaptcha} version="secondary">
|
|
61
69
|
Отправить
|
|
62
70
|
</Button>
|
|
63
71
|
</div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
-
import {
|
|
3
|
+
import { fetchRegionOffices, type OfficeType } from '../../../api/RetailAPI/regionOffices';
|
|
4
4
|
import { getOfficePoint } from '../../../components/OfficesAtmsMap/renderOfficeCard';
|
|
5
5
|
import { useOfficesAtmsMapData } from '../../../components/OfficesAtmsMap/useOfficesAtmsMapData';
|
|
6
6
|
import { useLeadFormData } from '../../../hooks/useLeadFormData';
|
|
@@ -21,9 +21,8 @@ export const AddressRetailField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
|
21
21
|
|
|
22
22
|
useEffect(() => {
|
|
23
23
|
(async () => {
|
|
24
|
-
const officesList = await
|
|
25
|
-
|
|
26
|
-
setOffices(officesList || []);
|
|
24
|
+
const officesList = await fetchRegionOffices((regionValue?.key as string) ?? '');
|
|
25
|
+
setOffices(officesList);
|
|
27
26
|
})();
|
|
28
27
|
|
|
29
28
|
if (regionValue?.key) {
|
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import {
|
|
2
|
+
import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { getCardTypes, type CardTypeData } from '../../../api/RetailAPI/getCardTypes';
|
|
3
4
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
5
|
import { SelectField } from '../SelectField';
|
|
5
6
|
|
|
6
7
|
export const CardCategoryField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
7
|
-
const
|
|
8
|
+
const [cardTypes, setCardTypes] = useState<CardTypeData[]>([]);
|
|
9
|
+
const selectedPaymentSystem = field('paymentSystem').value;
|
|
10
|
+
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
(async () => {
|
|
13
|
+
const fetchedCardTypes = await getCardTypes(selectedPaymentSystem as string);
|
|
14
|
+
setCardTypes(fetchedCardTypes);
|
|
15
|
+
})();
|
|
16
|
+
}, [selectedPaymentSystem]);
|
|
8
17
|
|
|
9
18
|
return (
|
|
10
19
|
<SelectField
|
|
11
20
|
field={field}
|
|
12
|
-
source={
|
|
21
|
+
source={cardTypes}
|
|
13
22
|
label="Категория карты"
|
|
14
23
|
fieldName="cardCategory"
|
|
15
24
|
input={input}
|
|
@@ -1,23 +1,29 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { getPaymentSystems } from '../../../api/RetailAPI/getPaymentSystems';
|
|
2
4
|
import { type RadioButtonItem } from '../../RadioButtonGroup/RadioButtonGroup';
|
|
3
5
|
import { RadioButtonGroupControl } from '../../RadioButtonGroup/RadioButtonGroupControl';
|
|
4
6
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
5
7
|
import { validatorObj } from '../getObjectValidator';
|
|
6
8
|
import { getValidation } from '../getValidation';
|
|
7
9
|
|
|
8
|
-
export const PAYMENT_SYSTEM_TYPES: RadioButtonItem[] = [
|
|
9
|
-
{ id: 'mir', text: 'Карта МИР' },
|
|
10
|
-
{ id: 'union_pay', text: 'UnionPay' },
|
|
11
|
-
];
|
|
12
|
-
|
|
13
10
|
export const PaymentSystemField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
14
11
|
const { value, onChange } = field('paymentSystem');
|
|
15
12
|
|
|
13
|
+
const [paymentSystemOptions, setPaymentSystemOptions] = useState<RadioButtonItem[]>([]);
|
|
14
|
+
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
(async () => {
|
|
17
|
+
const fetchedPaymentSystems = await getPaymentSystems();
|
|
18
|
+
setPaymentSystemOptions(fetchedPaymentSystems || []);
|
|
19
|
+
})();
|
|
20
|
+
}, []);
|
|
21
|
+
|
|
16
22
|
return (
|
|
17
23
|
<RadioButtonGroupControl
|
|
18
24
|
label="Платежная система"
|
|
19
25
|
orientation="horizontal"
|
|
20
|
-
items={
|
|
26
|
+
items={paymentSystemOptions}
|
|
21
27
|
value={value}
|
|
22
28
|
onChange={(_) => onChange?.(_)}
|
|
23
29
|
{...getValidation(field('paymentSystem'), validatorObj.paymentSystem, input?.required)}
|