@redneckz/wildless-cms-uni-blocks 0.14.862 → 0.14.864
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/bin/migration-scripts/0.14.471.js +1 -1
- package/bin/migration-scripts/0.14.478.js +1 -1
- package/bin/migration-scripts/0.14.850.js +7 -11
- package/bundle/UniBlock/UniBlock.d.ts +1 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +109 -48
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -2
- package/bundle/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -0
- package/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +3 -1
- package/bundle/components/DebitForm/getDebitCardFormTaskData.d.ts +3 -1
- package/bundle/components/Footer/HorizontalNavigationLink.d.ts +2 -2
- package/bundle/components/Footer/TextInformationLink.d.ts +2 -2
- package/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -3
- package/bundle/components/StickyBottomMenu/StickyBottomMenuDialog.d.ts +2 -3
- package/bundle/components/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -3
- package/bundle/model/OnClickProps.d.ts +4 -0
- package/bundle/retail/adaptors/getCreditFormTaskData.d.ts +3 -1
- package/bundle/retail/api/draftTasksKZO.d.ts +1 -0
- package/bundle/retail/api/saveReferalInfo.d.ts +5 -0
- package/bundle/retail/api/updateUserTask.d.ts +2 -1
- package/bundle/retail/components/DraftDialog/DraftDialog.d.ts +1 -0
- package/bundle/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
- package/bundle/retail/components/DraftDialog/useDraftDialog.d.ts +2 -9
- package/bundle/retail/components/VerifyPhoneDialog/SubmitButton.d.ts +3 -3
- package/bundle/retail/hooks/useRetailFormStore.d.ts +1 -0
- package/bundle/retail/model/ReferalData.d.ts +7 -0
- package/bundle/retail/utils/getOrganizationParams.d.ts +6 -16
- package/bundle/ui-kit/Button/Button.d.ts +2 -3
- package/bundle/ui-kit/DialogManager/Dialog.d.ts +2 -3
- package/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +1 -1
- package/bundle/ui-kit/Link/Link.d.ts +2 -3
- package/bundle/ui-kit/NumberInput/NumberInput.d.ts +1 -1
- package/bundle/ui-kit/Radio/RadioProps.d.ts +2 -2
- package/bundle/utils/getSessionQuery.d.ts +1 -0
- package/dist/UniBlock/UniBlock.d.ts +1 -1
- package/dist/api/LeadServiceAPI.js +1 -2
- package/dist/api/LeadServiceAPI.js.map +1 -1
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -2
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +6 -4
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +16 -2
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +36 -4
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -0
- package/dist/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useSaveUserData.js +1 -2
- package/dist/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useSendLeadFormAspects.js +1 -2
- package/dist/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
- package/dist/components/CalculatorCredit/CalculatorCredit.js +2 -2
- package/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +3 -1
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js +3 -2
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js +2 -0
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/dist/components/CreditForm/useCreditFormAPI.js +2 -0
- package/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/dist/components/DebitForm/getDebitCardFormTaskData.d.ts +3 -1
- package/dist/components/DebitForm/getDebitCardFormTaskData.js +3 -2
- package/dist/components/DebitForm/getDebitCardFormTaskData.js.map +1 -1
- package/dist/components/DebitForm/useDebitFormAPI.js +2 -0
- package/dist/components/DebitForm/useDebitFormAPI.js.map +1 -1
- package/dist/components/Footer/HorizontalNavigationLink.d.ts +2 -2
- package/dist/components/Footer/HorizontalNavigationLink.js.map +1 -1
- package/dist/components/Footer/TextInformationLink.d.ts +2 -2
- package/dist/components/Footer/TextInformationLink.js.map +1 -1
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -3
- package/dist/components/OfficesAtmsMap/getScheduleDescription.js +1 -2
- package/dist/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -1
- package/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/dist/components/StickyBottomMenu/StickyBottomMenuDialog.d.ts +2 -3
- package/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
- package/dist/components/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -3
- package/dist/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -1
- package/dist/hooks/useForm/useForm.js.map +1 -1
- package/dist/hooks/useJSONRef/fetchRefs.js +4 -4
- package/dist/hooks/useJSONRef/fetchRefs.js.map +1 -1
- package/dist/model/OnClickProps.d.ts +4 -0
- package/dist/retail/adaptors/getCreditFormTaskData.d.ts +3 -1
- package/dist/retail/adaptors/getCreditFormTaskData.js +3 -2
- package/dist/retail/adaptors/getCreditFormTaskData.js.map +1 -1
- package/dist/retail/api/createCaptcha.js +1 -1
- package/dist/retail/api/createCaptcha.js.map +1 -1
- package/dist/retail/api/dadataHints/dadataHints.js +1 -2
- package/dist/retail/api/dadataHints/dadataHints.js.map +1 -1
- package/dist/retail/api/draftTasksKZO.d.ts +1 -0
- package/dist/retail/api/draftTasksKZO.js.map +1 -1
- package/dist/retail/api/feedbackById.js +1 -1
- package/dist/retail/api/feedbackById.js.map +1 -1
- package/dist/retail/api/saveReferalInfo.d.ts +5 -0
- package/dist/retail/api/saveReferalInfo.js +6 -0
- package/dist/retail/api/saveReferalInfo.js.map +1 -0
- package/dist/retail/api/updateRefreshToken.js +1 -1
- package/dist/retail/api/updateRefreshToken.js.map +1 -1
- package/dist/retail/api/updateUserTask.d.ts +2 -1
- package/dist/retail/api/updateUserTask.js.map +1 -1
- package/dist/retail/api/uploadFile.js +1 -2
- package/dist/retail/api/uploadFile.js.map +1 -1
- package/dist/retail/components/DraftDialog/DraftDialog.d.ts +1 -0
- package/dist/retail/components/DraftDialog/DraftDialog.js +13 -4
- package/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/dist/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
- package/dist/retail/components/DraftDialog/parseDraftTask.js +3 -2
- package/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/dist/retail/components/DraftDialog/useDraftDialog.d.ts +2 -9
- package/dist/retail/components/DraftDialog/useDraftDialog.js +4 -2
- package/dist/retail/components/DraftDialog/useDraftDialog.js.map +1 -1
- package/dist/retail/components/VerifyPhoneDialog/SubmitButton.d.ts +3 -3
- package/dist/retail/components/VerifyPhoneDialog/SubmitButton.js.map +1 -1
- package/dist/retail/hooks/useRetailFormStore.d.ts +1 -0
- package/dist/retail/model/ReferalData.d.ts +7 -0
- package/{mobile/dist/model/onClick.js → dist/retail/model/ReferalData.js} +1 -1
- package/dist/retail/model/ReferalData.js.map +1 -0
- package/dist/retail/utils/getOrganizationParams.d.ts +6 -16
- package/dist/retail/utils/getOrganizationParams.js.map +1 -1
- package/dist/ui-kit/Button/Button.d.ts +2 -3
- package/dist/ui-kit/Button/Button.js.map +1 -1
- package/dist/ui-kit/DialogManager/Dialog.d.ts +2 -3
- package/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableButton.d.ts +1 -1
- package/dist/ui-kit/Link/Link.d.ts +2 -3
- package/dist/ui-kit/Link/Link.js.map +1 -1
- package/dist/ui-kit/NumberInput/NumberInput.d.ts +1 -1
- package/dist/ui-kit/Radio/RadioProps.d.ts +2 -2
- package/dist/ui-kit/TimerCircle/useCountDownTimer.js +1 -2
- package/dist/ui-kit/TimerCircle/useCountDownTimer.js.map +1 -1
- package/dist/utils/getSessionQuery.d.ts +1 -0
- package/dist/utils/getSessionQuery.js +4 -4
- package/dist/utils/getSessionQuery.js.map +1 -1
- package/lib/UniBlock/UniBlock.d.ts +1 -1
- package/lib/api/LeadServiceAPI.js +1 -2
- package/lib/api/LeadServiceAPI.js.map +1 -1
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -2
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +6 -4
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +16 -2
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +36 -4
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -0
- package/lib/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useSaveUserData.js +1 -2
- package/lib/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useSendLeadFormAspects.js +1 -2
- package/lib/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
- package/lib/components/CalculatorCredit/CalculatorCredit.js +2 -2
- package/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +3 -1
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js +3 -2
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js +2 -0
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/lib/components/CreditForm/useCreditFormAPI.js +2 -0
- package/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/lib/components/DebitForm/getDebitCardFormTaskData.d.ts +3 -1
- package/lib/components/DebitForm/getDebitCardFormTaskData.js +3 -2
- package/lib/components/DebitForm/getDebitCardFormTaskData.js.map +1 -1
- package/lib/components/DebitForm/useDebitFormAPI.js +2 -0
- package/lib/components/DebitForm/useDebitFormAPI.js.map +1 -1
- package/lib/components/Footer/HorizontalNavigationLink.d.ts +2 -2
- package/lib/components/Footer/HorizontalNavigationLink.js.map +1 -1
- package/lib/components/Footer/TextInformationLink.d.ts +2 -2
- package/lib/components/Footer/TextInformationLink.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -3
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
- package/lib/components/OfficesAtmsMap/getScheduleDescription.js +1 -2
- package/lib/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -1
- package/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/lib/components/StickyBottomMenu/StickyBottomMenuDialog.d.ts +2 -3
- package/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
- package/lib/components/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -3
- package/lib/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -1
- package/lib/hooks/useForm/useForm.js.map +1 -1
- package/lib/hooks/useJSONRef/fetchRefs.js +4 -4
- package/lib/hooks/useJSONRef/fetchRefs.js.map +1 -1
- package/lib/model/OnClickProps.d.ts +4 -0
- package/lib/retail/adaptors/getCreditFormTaskData.d.ts +3 -1
- package/lib/retail/adaptors/getCreditFormTaskData.js +3 -2
- package/lib/retail/adaptors/getCreditFormTaskData.js.map +1 -1
- package/lib/retail/api/createCaptcha.js +1 -1
- package/lib/retail/api/createCaptcha.js.map +1 -1
- package/lib/retail/api/dadataHints/dadataHints.js +1 -2
- package/lib/retail/api/dadataHints/dadataHints.js.map +1 -1
- package/lib/retail/api/draftTasksKZO.d.ts +1 -0
- package/lib/retail/api/draftTasksKZO.js.map +1 -1
- package/lib/retail/api/feedbackById.js +1 -1
- package/lib/retail/api/feedbackById.js.map +1 -1
- package/lib/retail/api/saveReferalInfo.d.ts +5 -0
- package/lib/retail/api/saveReferalInfo.js +3 -0
- package/lib/retail/api/saveReferalInfo.js.map +1 -0
- package/lib/retail/api/updateRefreshToken.js +1 -1
- package/lib/retail/api/updateRefreshToken.js.map +1 -1
- package/lib/retail/api/updateUserTask.d.ts +2 -1
- package/lib/retail/api/updateUserTask.js.map +1 -1
- package/lib/retail/api/uploadFile.js +1 -2
- package/lib/retail/api/uploadFile.js.map +1 -1
- package/lib/retail/components/DraftDialog/DraftDialog.d.ts +1 -0
- package/lib/retail/components/DraftDialog/DraftDialog.js +13 -4
- package/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/lib/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
- package/lib/retail/components/DraftDialog/parseDraftTask.js +3 -2
- package/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/lib/retail/components/DraftDialog/useDraftDialog.d.ts +2 -9
- package/lib/retail/components/DraftDialog/useDraftDialog.js +4 -2
- package/lib/retail/components/DraftDialog/useDraftDialog.js.map +1 -1
- package/lib/retail/components/DraftDialog/utils.d.ts +3 -3
- package/lib/retail/components/VerifyPhoneDialog/SubmitButton.d.ts +3 -3
- package/lib/retail/components/VerifyPhoneDialog/SubmitButton.js.map +1 -1
- package/lib/retail/hooks/useRetailFormStore.d.ts +1 -0
- package/lib/retail/model/ReferalData.d.ts +7 -0
- package/lib/retail/model/ReferalData.js +2 -0
- package/lib/retail/model/ReferalData.js.map +1 -0
- package/lib/retail/utils/getOrganizationParams.d.ts +6 -16
- package/lib/retail/utils/getOrganizationParams.js.map +1 -1
- package/lib/ui-kit/Button/Button.d.ts +2 -3
- package/lib/ui-kit/Button/Button.js.map +1 -1
- package/lib/ui-kit/DialogManager/Dialog.d.ts +2 -3
- package/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableButton.d.ts +1 -1
- package/lib/ui-kit/Link/Link.d.ts +2 -3
- package/lib/ui-kit/Link/Link.js.map +1 -1
- package/lib/ui-kit/NumberInput/NumberInput.d.ts +1 -1
- package/lib/ui-kit/Radio/RadioProps.d.ts +2 -2
- package/lib/ui-kit/TimerCircle/useCountDownTimer.js +1 -2
- package/lib/ui-kit/TimerCircle/useCountDownTimer.js.map +1 -1
- package/lib/utils/getSessionQuery.d.ts +1 -0
- package/lib/utils/getSessionQuery.js +1 -1
- package/lib/utils/getSessionQuery.js.map +1 -1
- package/mobile/bundle/UniBlock/UniBlock.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +104 -46
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -2
- package/mobile/bundle/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -0
- package/mobile/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +3 -1
- package/mobile/bundle/components/DebitForm/getDebitCardFormTaskData.d.ts +3 -1
- package/mobile/bundle/components/Footer/HorizontalNavigationLink.d.ts +2 -2
- package/mobile/bundle/components/Footer/TextInformationLink.d.ts +2 -2
- package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -3
- package/mobile/bundle/components/StickyBottomMenu/StickyBottomMenuDialog.d.ts +2 -3
- package/mobile/bundle/components/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -3
- package/mobile/bundle/model/OnClickProps.d.ts +4 -0
- package/mobile/bundle/retail/adaptors/getCreditFormTaskData.d.ts +3 -1
- package/mobile/bundle/retail/api/draftTasksKZO.d.ts +1 -0
- package/mobile/bundle/retail/api/saveReferalInfo.d.ts +5 -0
- package/mobile/bundle/retail/api/updateUserTask.d.ts +2 -1
- package/mobile/bundle/retail/components/DraftDialog/DraftDialog.d.ts +1 -0
- package/mobile/bundle/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
- package/mobile/bundle/retail/components/DraftDialog/useDraftDialog.d.ts +2 -9
- package/mobile/bundle/retail/components/VerifyPhoneDialog/SubmitButton.d.ts +3 -3
- package/mobile/bundle/retail/hooks/useRetailFormStore.d.ts +1 -0
- package/mobile/bundle/retail/model/ReferalData.d.ts +7 -0
- package/mobile/bundle/retail/utils/getOrganizationParams.d.ts +6 -16
- package/mobile/bundle/ui-kit/Button/Button.d.ts +2 -3
- package/mobile/bundle/ui-kit/DialogManager/Dialog.d.ts +2 -3
- package/mobile/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +1 -1
- package/mobile/bundle/ui-kit/Link/Link.d.ts +2 -3
- package/mobile/bundle/ui-kit/NumberInput/NumberInput.d.ts +1 -1
- package/mobile/bundle/ui-kit/Radio/RadioProps.d.ts +2 -2
- package/mobile/bundle/utils/getSessionQuery.d.ts +1 -0
- package/mobile/dist/UniBlock/UniBlock.d.ts +1 -1
- package/mobile/dist/api/LeadServiceAPI.js +1 -2
- package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -2
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +6 -4
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +16 -2
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +36 -4
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -0
- package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.js +1 -2
- package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useSendLeadFormAspects.js +1 -2
- package/mobile/dist/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
- package/mobile/dist/components/CalculatorCredit/CalculatorCredit.js +2 -2
- package/mobile/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +3 -1
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js +3 -2
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js +2 -0
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/dist/components/CreditForm/useCreditFormAPI.js +2 -0
- package/mobile/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/mobile/dist/components/DebitForm/getDebitCardFormTaskData.d.ts +3 -1
- package/mobile/dist/components/DebitForm/getDebitCardFormTaskData.js +3 -2
- package/mobile/dist/components/DebitForm/getDebitCardFormTaskData.js.map +1 -1
- package/mobile/dist/components/DebitForm/useDebitFormAPI.js +2 -0
- package/mobile/dist/components/DebitForm/useDebitFormAPI.js.map +1 -1
- package/mobile/dist/components/Footer/HorizontalNavigationLink.d.ts +2 -2
- package/mobile/dist/components/Footer/HorizontalNavigationLink.js.map +1 -1
- package/mobile/dist/components/Footer/TextInformationLink.d.ts +2 -2
- package/mobile/dist/components/Footer/TextInformationLink.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -3
- package/mobile/dist/components/OfficesAtmsMap/getScheduleDescription.js +1 -2
- package/mobile/dist/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuDialog.d.ts +2 -3
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -3
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -1
- package/mobile/dist/hooks/useForm/useForm.js.map +1 -1
- package/mobile/dist/hooks/useJSONRef/fetchRefs.js +4 -4
- package/mobile/dist/hooks/useJSONRef/fetchRefs.js.map +1 -1
- package/mobile/dist/model/OnClickProps.d.ts +4 -0
- package/mobile/dist/retail/adaptors/getCreditFormTaskData.d.ts +3 -1
- package/mobile/dist/retail/adaptors/getCreditFormTaskData.js +3 -2
- package/mobile/dist/retail/adaptors/getCreditFormTaskData.js.map +1 -1
- package/mobile/dist/retail/api/createCaptcha.js +1 -1
- package/mobile/dist/retail/api/createCaptcha.js.map +1 -1
- package/mobile/dist/retail/api/dadataHints/dadataHints.js +1 -2
- package/mobile/dist/retail/api/dadataHints/dadataHints.js.map +1 -1
- package/mobile/dist/retail/api/draftTasksKZO.d.ts +1 -0
- package/mobile/dist/retail/api/draftTasksKZO.js.map +1 -1
- package/mobile/dist/retail/api/feedbackById.js +1 -1
- package/mobile/dist/retail/api/feedbackById.js.map +1 -1
- package/mobile/dist/retail/api/saveReferalInfo.d.ts +5 -0
- package/mobile/dist/retail/api/saveReferalInfo.js +6 -0
- package/mobile/dist/retail/api/saveReferalInfo.js.map +1 -0
- package/mobile/dist/retail/api/updateRefreshToken.js +1 -1
- package/mobile/dist/retail/api/updateRefreshToken.js.map +1 -1
- package/mobile/dist/retail/api/updateUserTask.d.ts +2 -1
- package/mobile/dist/retail/api/updateUserTask.js.map +1 -1
- package/mobile/dist/retail/api/uploadFile.js +1 -2
- package/mobile/dist/retail/api/uploadFile.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.d.ts +1 -0
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js +13 -4
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
- package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js +3 -2
- package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/useDraftDialog.d.ts +2 -9
- package/mobile/dist/retail/components/DraftDialog/useDraftDialog.js +4 -2
- package/mobile/dist/retail/components/DraftDialog/useDraftDialog.js.map +1 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/SubmitButton.d.ts +3 -3
- package/mobile/dist/retail/components/VerifyPhoneDialog/SubmitButton.js.map +1 -1
- package/mobile/dist/retail/hooks/useRetailFormStore.d.ts +1 -0
- package/mobile/dist/retail/model/ReferalData.d.ts +7 -0
- package/{dist/model/onClick.js → mobile/dist/retail/model/ReferalData.js} +1 -1
- package/mobile/dist/retail/model/ReferalData.js.map +1 -0
- package/mobile/dist/retail/utils/getOrganizationParams.d.ts +6 -16
- package/mobile/dist/retail/utils/getOrganizationParams.js.map +1 -1
- package/mobile/dist/ui-kit/Button/Button.d.ts +2 -3
- package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
- package/mobile/dist/ui-kit/DialogManager/Dialog.d.ts +2 -3
- package/mobile/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.d.ts +1 -1
- package/mobile/dist/ui-kit/Link/Link.d.ts +2 -3
- package/mobile/dist/ui-kit/Link/Link.js.map +1 -1
- package/mobile/dist/ui-kit/NumberInput/NumberInput.d.ts +1 -1
- package/mobile/dist/ui-kit/Radio/RadioProps.d.ts +2 -2
- package/mobile/dist/ui-kit/TimerCircle/useCountDownTimer.js +1 -2
- package/mobile/dist/ui-kit/TimerCircle/useCountDownTimer.js.map +1 -1
- package/mobile/dist/utils/getSessionQuery.d.ts +1 -0
- package/mobile/dist/utils/getSessionQuery.js +4 -4
- package/mobile/dist/utils/getSessionQuery.js.map +1 -1
- package/mobile/lib/UniBlock/UniBlock.d.ts +1 -1
- package/mobile/lib/api/LeadServiceAPI.js +1 -2
- package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -2
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +6 -4
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +16 -2
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +36 -4
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -0
- package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.js +1 -2
- package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useSendLeadFormAspects.js +1 -2
- package/mobile/lib/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
- package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js +2 -2
- package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +3 -1
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js +3 -2
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js +2 -0
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/lib/components/CreditForm/useCreditFormAPI.js +2 -0
- package/mobile/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/mobile/lib/components/DebitForm/getDebitCardFormTaskData.d.ts +3 -1
- package/mobile/lib/components/DebitForm/getDebitCardFormTaskData.js +3 -2
- package/mobile/lib/components/DebitForm/getDebitCardFormTaskData.js.map +1 -1
- package/mobile/lib/components/DebitForm/useDebitFormAPI.js +2 -0
- package/mobile/lib/components/DebitForm/useDebitFormAPI.js.map +1 -1
- package/mobile/lib/components/Footer/HorizontalNavigationLink.d.ts +2 -2
- package/mobile/lib/components/Footer/HorizontalNavigationLink.js.map +1 -1
- package/mobile/lib/components/Footer/TextInformationLink.d.ts +2 -2
- package/mobile/lib/components/Footer/TextInformationLink.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -3
- package/mobile/lib/components/OfficesAtmsMap/getScheduleDescription.js +1 -2
- package/mobile/lib/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuDialog.d.ts +2 -3
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -3
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -1
- package/mobile/lib/hooks/useForm/useForm.js.map +1 -1
- package/mobile/lib/hooks/useJSONRef/fetchRefs.js +4 -4
- package/mobile/lib/hooks/useJSONRef/fetchRefs.js.map +1 -1
- package/mobile/lib/model/OnClickProps.d.ts +4 -0
- package/mobile/lib/retail/adaptors/getCreditFormTaskData.d.ts +3 -1
- package/mobile/lib/retail/adaptors/getCreditFormTaskData.js +3 -2
- package/mobile/lib/retail/adaptors/getCreditFormTaskData.js.map +1 -1
- package/mobile/lib/retail/api/createCaptcha.js +1 -1
- package/mobile/lib/retail/api/createCaptcha.js.map +1 -1
- package/mobile/lib/retail/api/dadataHints/dadataHints.js +1 -2
- package/mobile/lib/retail/api/dadataHints/dadataHints.js.map +1 -1
- package/mobile/lib/retail/api/draftTasksKZO.d.ts +1 -0
- package/mobile/lib/retail/api/draftTasksKZO.js.map +1 -1
- package/mobile/lib/retail/api/feedbackById.js +1 -1
- package/mobile/lib/retail/api/feedbackById.js.map +1 -1
- package/mobile/lib/retail/api/saveReferalInfo.d.ts +5 -0
- package/mobile/lib/retail/api/saveReferalInfo.js +3 -0
- package/mobile/lib/retail/api/saveReferalInfo.js.map +1 -0
- package/mobile/lib/retail/api/updateRefreshToken.js +1 -1
- package/mobile/lib/retail/api/updateRefreshToken.js.map +1 -1
- package/mobile/lib/retail/api/updateUserTask.d.ts +2 -1
- package/mobile/lib/retail/api/updateUserTask.js.map +1 -1
- package/mobile/lib/retail/api/uploadFile.js +1 -2
- package/mobile/lib/retail/api/uploadFile.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.d.ts +1 -0
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js +13 -4
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
- package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js +3 -2
- package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/useDraftDialog.d.ts +2 -9
- package/mobile/lib/retail/components/DraftDialog/useDraftDialog.js +4 -2
- package/mobile/lib/retail/components/DraftDialog/useDraftDialog.js.map +1 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/SubmitButton.d.ts +3 -3
- package/mobile/lib/retail/components/VerifyPhoneDialog/SubmitButton.js.map +1 -1
- package/mobile/lib/retail/hooks/useRetailFormStore.d.ts +1 -0
- package/mobile/lib/retail/model/ReferalData.d.ts +7 -0
- package/mobile/lib/retail/model/ReferalData.js +2 -0
- package/mobile/lib/retail/model/ReferalData.js.map +1 -0
- package/mobile/lib/retail/utils/getOrganizationParams.d.ts +6 -16
- package/mobile/lib/retail/utils/getOrganizationParams.js.map +1 -1
- package/mobile/lib/ui-kit/Button/Button.d.ts +2 -3
- package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
- package/mobile/lib/ui-kit/DialogManager/Dialog.d.ts +2 -3
- package/mobile/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.d.ts +1 -1
- package/mobile/lib/ui-kit/Link/Link.d.ts +2 -3
- package/mobile/lib/ui-kit/Link/Link.js.map +1 -1
- package/mobile/lib/ui-kit/NumberInput/NumberInput.d.ts +1 -1
- package/mobile/lib/ui-kit/Radio/RadioProps.d.ts +2 -2
- package/mobile/lib/ui-kit/TimerCircle/useCountDownTimer.js +1 -2
- package/mobile/lib/ui-kit/TimerCircle/useCountDownTimer.js.map +1 -1
- package/mobile/lib/utils/getSessionQuery.d.ts +1 -0
- package/mobile/lib/utils/getSessionQuery.js +1 -1
- package/mobile/lib/utils/getSessionQuery.js.map +1 -1
- package/mobile/src/UniBlock/UniBlock.tsx +1 -1
- package/mobile/src/api/LeadServiceAPI.ts +1 -3
- package/mobile/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +8 -2
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +21 -1
- package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +43 -4
- package/mobile/src/components/ApplicationLeadForm/useLeadFormStore.ts +2 -0
- package/mobile/src/components/ApplicationLeadForm/useSaveUserData.ts +1 -3
- package/mobile/src/components/ApplicationLeadForm/useSendLeadFormAspects.tsx +1 -3
- package/mobile/src/components/CalculatorCredit/CalculatorCredit.tsx +2 -2
- package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +5 -1
- package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +2 -0
- package/mobile/src/components/CreditForm/useCreditFormAPI.tsx +2 -0
- package/mobile/src/components/DebitForm/getDebitCardFormTaskData.ts +5 -1
- package/mobile/src/components/DebitForm/useDebitFormAPI.tsx +2 -0
- package/mobile/src/components/Footer/HorizontalNavigationLink.tsx +2 -2
- package/mobile/src/components/Footer/TextInformationLink.tsx +2 -2
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +2 -3
- package/mobile/src/components/OfficesAtmsMap/getScheduleDescription.tsx +1 -3
- package/mobile/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +1 -1
- package/mobile/src/components/StickyBottomMenu/StickyBottomMenuDialog.tsx +5 -3
- package/mobile/src/components/StickyBottomMenu/StickyBottomMenuItem.tsx +2 -3
- package/mobile/src/hooks/useForm/useForm.ts +1 -1
- package/mobile/src/hooks/useJSONRef/fetchRefs.ts +5 -6
- package/mobile/src/model/OnClickProps.ts +6 -0
- package/mobile/src/retail/adaptors/getCreditFormTaskData.ts +5 -1
- package/mobile/src/retail/api/createCaptcha.ts +1 -1
- package/mobile/src/retail/api/dadataHints/dadataHints.ts +1 -3
- package/mobile/src/retail/api/draftTasksKZO.ts +1 -0
- package/mobile/src/retail/api/feedbackById.ts +1 -1
- package/mobile/src/retail/api/saveReferalInfo.ts +9 -0
- package/mobile/src/retail/api/updateRefreshToken.ts +1 -1
- package/mobile/src/retail/api/updateUserTask.ts +11 -9
- package/mobile/src/retail/api/uploadFile.ts +1 -3
- package/mobile/src/retail/components/DraftDialog/DraftDialog.tsx +15 -3
- package/mobile/src/retail/components/DraftDialog/parseDraftTask.ts +5 -2
- package/mobile/src/retail/components/DraftDialog/useDraftDialog.tsx +5 -11
- package/mobile/src/retail/components/VerifyPhoneDialog/SubmitButton.tsx +3 -4
- package/mobile/src/retail/model/ReferalData.ts +8 -0
- package/mobile/src/retail/utils/getOrganizationParams.ts +7 -8
- package/mobile/src/ui-kit/Button/Button.tsx +6 -3
- package/mobile/src/ui-kit/DialogManager/Dialog.tsx +2 -3
- package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -1
- package/mobile/src/ui-kit/Link/Link.tsx +2 -3
- package/mobile/src/ui-kit/NumberInput/NumberInput.tsx +1 -1
- package/mobile/src/ui-kit/Radio/RadioProps.ts +2 -2
- package/mobile/src/ui-kit/TimerCircle/useCountDownTimer.ts +1 -3
- package/mobile/src/utils/getSessionQuery.ts +1 -1
- package/package.json +1 -1
- package/src/UniBlock/UniBlock.tsx +1 -1
- package/src/api/LeadServiceAPI.ts +1 -3
- package/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +8 -2
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +21 -1
- package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +43 -4
- package/src/components/ApplicationLeadForm/useLeadFormStore.ts +2 -0
- package/src/components/ApplicationLeadForm/useSaveUserData.ts +1 -3
- package/src/components/ApplicationLeadForm/useSendLeadFormAspects.tsx +1 -3
- package/src/components/CalculatorCredit/CalculatorCredit.tsx +2 -2
- package/src/components/CreditCardForm/CreditCardForm.fixture.mobile.tsx +1 -1
- package/src/components/CreditCardForm/CreditCardForm.fixture.tsx +1 -1
- package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +5 -1
- package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +2 -0
- package/src/components/CreditForm/CreditForm.fixture.mobile.tsx +1 -1
- package/src/components/CreditForm/CreditForm.fixture.tsx +1 -1
- package/src/components/CreditForm/useCreditFormAPI.tsx +2 -0
- package/src/components/DebitForm/getDebitCardFormTaskData.ts +5 -1
- package/src/components/DebitForm/useDebitFormAPI.tsx +2 -0
- package/src/components/Footer/HorizontalNavigationLink.tsx +2 -2
- package/src/components/Footer/TextInformationLink.tsx +2 -2
- package/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +2 -3
- package/src/components/OfficesAtmsMap/getScheduleDescription.tsx +1 -3
- package/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +1 -1
- package/src/components/StickyBottomMenu/StickyBottomMenuDialog.tsx +5 -3
- package/src/components/StickyBottomMenu/StickyBottomMenuItem.tsx +2 -3
- package/src/hooks/useForm/useForm.ts +1 -1
- package/src/hooks/useJSONRef/fetchRefs.ts +5 -6
- package/src/model/OnClickProps.ts +6 -0
- package/src/retail/adaptors/getCreditFormTaskData.ts +5 -1
- package/src/retail/api/createCaptcha.ts +1 -1
- package/src/retail/api/dadataHints/dadataHints.ts +1 -3
- package/src/retail/api/draftTasksKZO.ts +1 -0
- package/src/retail/api/feedbackById.ts +1 -1
- package/src/retail/api/saveReferalInfo.ts +9 -0
- package/src/retail/api/updateRefreshToken.ts +1 -1
- package/src/retail/api/updateUserTask.ts +11 -9
- package/src/retail/api/uploadFile.ts +1 -3
- package/src/retail/components/DraftDialog/DraftDialog.tsx +15 -3
- package/src/retail/components/DraftDialog/parseDraftTask.ts +5 -2
- package/src/retail/components/DraftDialog/useDraftDialog.tsx +5 -11
- package/src/retail/components/VerifyPhoneDialog/SubmitButton.tsx +3 -4
- package/src/retail/model/ReferalData.ts +8 -0
- package/src/retail/utils/getOrganizationParams.ts +7 -8
- package/src/ui-kit/Button/Button.tsx +6 -3
- package/src/ui-kit/DialogManager/Dialog.tsx +2 -3
- package/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -1
- package/src/ui-kit/Link/Link.tsx +2 -3
- package/src/ui-kit/NumberInput/NumberInput.tsx +1 -1
- package/src/ui-kit/Radio/RadioProps.ts +2 -2
- package/src/ui-kit/TimerCircle/useCountDownTimer.ts +1 -3
- package/src/utils/getSessionQuery.ts +1 -1
- package/bundle/model/onClick.d.ts +0 -3
- package/dist/model/onClick.d.ts +0 -3
- package/dist/model/onClick.js.map +0 -1
- package/lib/model/onClick.d.ts +0 -3
- package/lib/model/onClick.js +0 -2
- package/lib/model/onClick.js.map +0 -1
- package/mobile/bundle/model/onClick.d.ts +0 -3
- package/mobile/dist/model/onClick.d.ts +0 -3
- package/mobile/dist/model/onClick.js.map +0 -1
- package/mobile/lib/model/onClick.d.ts +0 -3
- package/mobile/lib/model/onClick.js +0 -2
- package/mobile/lib/model/onClick.js.map +0 -1
- package/mobile/src/model/onClick.ts +0 -3
- package/src/model/onClick.ts +0 -3
|
@@ -8,18 +8,21 @@ import { createUserProfile } from '../../retail/api/createUserProfile';
|
|
|
8
8
|
import { createUserTaskDebit } from '../../retail/api/createUserTaskDebit';
|
|
9
9
|
import { getLastTaskStatus } from '../../retail/api/getLastTaskStatus';
|
|
10
10
|
import { getTaskById } from '../../retail/api/getTaskById';
|
|
11
|
+
import { saveReferalInfo } from '../../retail/api/saveReferalInfo';
|
|
11
12
|
import { updateUserProfile } from '../../retail/api/updateUserProfile';
|
|
12
13
|
import { updateUserTask } from '../../retail/api/updateUserTask';
|
|
13
14
|
import { useConsentBkiDialog } from '../../retail/components/ConsentBkiDialog/useConsentBkiDialog';
|
|
14
15
|
import { useDraftDialog } from '../../retail/components/DraftDialog/useDraftDialog';
|
|
15
16
|
import { VerifyPhoneDialog } from '../../retail/components/VerifyPhoneDialog/VerifyPhoneDialog';
|
|
16
17
|
import { type FormRetailConsents, type LeadFormState } from '../../retail/model/LeadFormState';
|
|
18
|
+
import { type ReferalData } from '../../retail/model/ReferalData';
|
|
17
19
|
import { getUpdateUserProfileData } from '../../retail/utils/getUpdateUserProfile';
|
|
18
20
|
import { useDialog } from '../../ui-kit/DialogManager/useDialog';
|
|
19
21
|
import { formatPhone } from '../../utils/formatPhone';
|
|
20
22
|
import { type ProductType } from './ApplicationLeadFormContent';
|
|
21
23
|
import { productTypeToConsentsMap } from './consents';
|
|
22
24
|
import { getCreditLeadFormTaskData, getDebitLeadFormTaskData } from './getLeadFormTaskData';
|
|
25
|
+
import { useLeadFormStore } from './useLeadFormStore';
|
|
23
26
|
import { useSaveUserData, type UserData } from './useSaveUserData';
|
|
24
27
|
import { useSendLeadFormAspects } from './useSendLeadFormAspects';
|
|
25
28
|
|
|
@@ -39,6 +42,8 @@ export const useApplicationLeadApi = ({
|
|
|
39
42
|
const [isSending, { setTrue: startSending, setFalse: endSending }] = useBool(false);
|
|
40
43
|
const [ok, setOK] = useState<boolean | undefined>();
|
|
41
44
|
const saveUserData = useSaveUserData();
|
|
45
|
+
const leadFormStore = useLeadFormStore();
|
|
46
|
+
|
|
42
47
|
const sendAspects = useSendLeadFormAspects({ data });
|
|
43
48
|
const navigator = locationNavigator();
|
|
44
49
|
|
|
@@ -57,6 +62,7 @@ export const useApplicationLeadApi = ({
|
|
|
57
62
|
const profileId = await createUserProfile({
|
|
58
63
|
profile: { phone: formatPhone(transformedFormData.phone as string) },
|
|
59
64
|
});
|
|
65
|
+
const referalData = leadFormStore.referalData;
|
|
60
66
|
|
|
61
67
|
if (!profileId) {
|
|
62
68
|
throw new Error();
|
|
@@ -68,6 +74,7 @@ export const useApplicationLeadApi = ({
|
|
|
68
74
|
profileId,
|
|
69
75
|
formData: transformedFormData,
|
|
70
76
|
productType,
|
|
77
|
+
referalData,
|
|
71
78
|
saveUserData,
|
|
72
79
|
sendAspects,
|
|
73
80
|
});
|
|
@@ -88,6 +95,7 @@ export const useApplicationLeadApi = ({
|
|
|
88
95
|
draftDialog.open({
|
|
89
96
|
task,
|
|
90
97
|
isFromLead: true,
|
|
98
|
+
isDebit: productType === 'debitCard',
|
|
91
99
|
sendAspects,
|
|
92
100
|
onClose: sendCurrentTask,
|
|
93
101
|
});
|
|
@@ -129,6 +137,7 @@ const updateUserData = async ({
|
|
|
129
137
|
profileId,
|
|
130
138
|
formData,
|
|
131
139
|
productType,
|
|
140
|
+
referalData,
|
|
132
141
|
saveUserData,
|
|
133
142
|
sendAspects,
|
|
134
143
|
}: {
|
|
@@ -136,18 +145,22 @@ const updateUserData = async ({
|
|
|
136
145
|
profileId: number;
|
|
137
146
|
formData: LeadFormState;
|
|
138
147
|
productType: ProductType;
|
|
148
|
+
referalData: ReferalData | null;
|
|
139
149
|
saveUserData: (userData: UserData) => void;
|
|
140
150
|
sendAspects: (profileId: number, taskId: number) => void;
|
|
141
151
|
}) => {
|
|
142
152
|
let taskId: number;
|
|
143
153
|
let participantId: number;
|
|
144
154
|
const transformedConsents = transformConsentsFields(formData, productType);
|
|
155
|
+
const isTaskWithReferalCode = referalData?.isTaskWithReferalCode;
|
|
145
156
|
|
|
146
157
|
await updateUserProfile(getUpdateUserProfileData(profileId, formData, transformedConsents));
|
|
147
158
|
|
|
148
159
|
try {
|
|
149
160
|
if (productType === 'debitCard') {
|
|
150
|
-
const debitData = await createUserTaskDebit(
|
|
161
|
+
const debitData = await createUserTaskDebit(
|
|
162
|
+
getDebitLeadFormTaskData(formData, programId, isTaskWithReferalCode),
|
|
163
|
+
);
|
|
151
164
|
|
|
152
165
|
taskId = debitData.taskId;
|
|
153
166
|
participantId = debitData.participantId;
|
|
@@ -165,9 +178,16 @@ const updateUserData = async ({
|
|
|
165
178
|
taskId,
|
|
166
179
|
profileId,
|
|
167
180
|
formData,
|
|
181
|
+
isTaskWithReferalCode,
|
|
168
182
|
}),
|
|
169
183
|
);
|
|
170
184
|
}
|
|
185
|
+
if (isTaskWithReferalCode) {
|
|
186
|
+
await saveReferalInfo({
|
|
187
|
+
taskId,
|
|
188
|
+
...referalData,
|
|
189
|
+
});
|
|
190
|
+
}
|
|
171
191
|
|
|
172
192
|
sendAspects(profileId, taskId);
|
|
173
193
|
saveUserData({ participantId, taskId, profileId, programId, formData });
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
/* eslint-disable max-lines-per-function */
|
|
1
2
|
import { useCallback, useEffect, useMemo } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
3
|
import { useSetter } from '../../hooks/useSetter';
|
|
3
4
|
import { esiaRequestProfile } from '../../retail/api/esiaRequestProfile';
|
|
4
5
|
import { type LeadFormState } from '../../retail/model/LeadFormState';
|
|
6
|
+
import { type ReferalData } from '../../retail/model/ReferalData';
|
|
5
7
|
import { type FieldRetailDef } from '../../retail/model/RetailFormContent';
|
|
8
|
+
import { QUERY_STORAGE_KEY } from '../../utils/getSessionQuery';
|
|
6
9
|
import { EsiaStatuses, type ProductType } from './ApplicationLeadFormContent';
|
|
7
10
|
import { getInitialFormState } from './getInitialFormState';
|
|
8
11
|
import { parseEsiaProfile } from './parseEsiaProfile';
|
|
@@ -24,6 +27,7 @@ export const useInitApplicationLead = ({
|
|
|
24
27
|
}: InitApplicationLeadProps): LeadFormState => {
|
|
25
28
|
const leadFormStore = useLeadFormStore();
|
|
26
29
|
const saveForm = useSetter(leadFormStore, 'leadForm');
|
|
30
|
+
const queryFromStorage = globalThis.sessionStorage?.getItem(QUERY_STORAGE_KEY);
|
|
27
31
|
|
|
28
32
|
const initialFormState = useMemo(
|
|
29
33
|
() => getInitialFormState(inputs, leadFormStore.leadForm, esiaAuthSuccess),
|
|
@@ -57,9 +61,26 @@ export const useInitApplicationLead = ({
|
|
|
57
61
|
useEffect(() => {
|
|
58
62
|
leadFormStore.productType = productType;
|
|
59
63
|
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
|
|
64
|
+
const { code, state, referalCode, refererCode, productId } = getLeadQueryParams(
|
|
65
|
+
leadFormStore.referalData,
|
|
66
|
+
queryFromStorage,
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
if (referalCode) {
|
|
70
|
+
leadFormStore.referalData = {
|
|
71
|
+
refererCode,
|
|
72
|
+
referalCode,
|
|
73
|
+
productId,
|
|
74
|
+
isTaskWithReferalCode: true,
|
|
75
|
+
};
|
|
76
|
+
} else if (!code) {
|
|
77
|
+
leadFormStore.referalData = {
|
|
78
|
+
refererCode: null,
|
|
79
|
+
referalCode: null,
|
|
80
|
+
productId: null,
|
|
81
|
+
isTaskWithReferalCode: false,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
63
84
|
|
|
64
85
|
if (code && state) {
|
|
65
86
|
requestEsiaProfile(code, state);
|
|
@@ -67,7 +88,25 @@ export const useInitApplicationLead = ({
|
|
|
67
88
|
sessionStorage.removeItem('accessToken');
|
|
68
89
|
sessionStorage.removeItem('refreshToken');
|
|
69
90
|
}
|
|
70
|
-
}, []);
|
|
91
|
+
}, [queryFromStorage]);
|
|
71
92
|
|
|
72
93
|
return initialFormState;
|
|
73
94
|
};
|
|
95
|
+
|
|
96
|
+
const getLeadQueryParams = (referalData: ReferalData | null, queryFromStorage: string | null) => {
|
|
97
|
+
const queryStorage = new URLSearchParams(decodeURIComponent(queryFromStorage || ''));
|
|
98
|
+
|
|
99
|
+
const code = queryStorage.get('code');
|
|
100
|
+
const state = queryStorage.get('state');
|
|
101
|
+
const referalCode = code ? referalData?.referalCode : queryStorage.get('referalCode');
|
|
102
|
+
const refererCode = code ? referalData?.refererCode : queryStorage.get('refererCode');
|
|
103
|
+
const productId = code ? referalData?.productId : queryStorage.get('productId');
|
|
104
|
+
|
|
105
|
+
return {
|
|
106
|
+
code,
|
|
107
|
+
state,
|
|
108
|
+
referalCode,
|
|
109
|
+
refererCode,
|
|
110
|
+
productId,
|
|
111
|
+
};
|
|
112
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useLocalStore } from '@redneckz/uni-jsx/lib/Store/useLocalStore';
|
|
2
2
|
import { type LeadFormState } from '../../retail/model/LeadFormState';
|
|
3
|
+
import { type ReferalData } from '../../retail/model/ReferalData';
|
|
3
4
|
import { type ProductType } from './ApplicationLeadFormContent';
|
|
4
5
|
|
|
5
6
|
export interface LeadFormStoreSlice {
|
|
@@ -9,6 +10,7 @@ export interface LeadFormStoreSlice {
|
|
|
9
10
|
participantId: number;
|
|
10
11
|
programId: string;
|
|
11
12
|
productType: ProductType;
|
|
13
|
+
referalData: ReferalData;
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
export const useLeadFormStore = () => useLocalStore<LeadFormStoreSlice>();
|
|
@@ -12,7 +12,7 @@ export interface UserData {
|
|
|
12
12
|
export const useSaveUserData = () => {
|
|
13
13
|
const leadFormStore = useLeadFormStore();
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
return useCallback(
|
|
16
16
|
({ participantId, taskId, profileId, programId: programNumber, formData }: UserData) => {
|
|
17
17
|
leadFormStore.participantId = participantId;
|
|
18
18
|
leadFormStore.taskId = taskId;
|
|
@@ -22,6 +22,4 @@ export const useSaveUserData = () => {
|
|
|
22
22
|
},
|
|
23
23
|
[],
|
|
24
24
|
);
|
|
25
|
-
|
|
26
|
-
return saveUserData;
|
|
27
25
|
};
|
|
@@ -8,7 +8,7 @@ import { type PreventableEventWithTarget } from '../../ui-kit/PreventableEvent';
|
|
|
8
8
|
export const useSendLeadFormAspects = ({ data }: AspectsProps) => {
|
|
9
9
|
const aspects = useAspects();
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
return useCallback(
|
|
12
12
|
(ProfileId: number, TaskId: number) => {
|
|
13
13
|
const snowplowParams = JSON.stringify({
|
|
14
14
|
ProfileId,
|
|
@@ -23,6 +23,4 @@ export const useSendLeadFormAspects = ({ data }: AspectsProps) => {
|
|
|
23
23
|
},
|
|
24
24
|
[data],
|
|
25
25
|
);
|
|
26
|
-
|
|
27
|
-
return sendAspects;
|
|
28
26
|
};
|
|
@@ -63,11 +63,11 @@ export const CalculatorCredit = UniBlock<CalculatorDepositProps>(
|
|
|
63
63
|
const defaultParamsCals = getDefaultParamsMin(calcSource?.rateRows);
|
|
64
64
|
const handleChange = useCallback(
|
|
65
65
|
(params: CreditCalculatorUserInputParams) => {
|
|
66
|
-
const
|
|
66
|
+
const _calcParams = getCreditCalculatorParams(params, calcSource, paramsViewSettings);
|
|
67
67
|
|
|
68
68
|
onChange?.({
|
|
69
69
|
...params,
|
|
70
|
-
monthlyPayment:
|
|
70
|
+
monthlyPayment: _calcParams.monthlyPayment,
|
|
71
71
|
rate: defaultParamsCals?.rate ?? 0,
|
|
72
72
|
});
|
|
73
73
|
},
|
|
@@ -6,6 +6,7 @@ import { getFamilyStatusAndIncomeData } from '../../retail/adaptors/getFamilySta
|
|
|
6
6
|
import { getPersonalInfoData } from '../../retail/adaptors/getPersonalInfoData';
|
|
7
7
|
import { type Participant, type UpdateUserTaskBody } from '../../retail/api/updateUserTask';
|
|
8
8
|
import { type LeadFormState } from '../../retail/model/LeadFormState';
|
|
9
|
+
import { type ReferalData } from '../../retail/model/ReferalData';
|
|
9
10
|
import {
|
|
10
11
|
getDeliveryCreditCardData,
|
|
11
12
|
getDeliveryData,
|
|
@@ -18,6 +19,7 @@ type getCreditCardFormTaskDataProps = {
|
|
|
18
19
|
profileId: number;
|
|
19
20
|
formData: LeadFormState;
|
|
20
21
|
step?: number;
|
|
22
|
+
isTaskWithReferalCode?: ReferalData['isTaskWithReferalCode'];
|
|
21
23
|
};
|
|
22
24
|
|
|
23
25
|
export const getCreditCardFormTaskData = ({
|
|
@@ -26,14 +28,16 @@ export const getCreditCardFormTaskData = ({
|
|
|
26
28
|
profileId,
|
|
27
29
|
formData,
|
|
28
30
|
step = 0,
|
|
31
|
+
isTaskWithReferalCode,
|
|
29
32
|
}: getCreditCardFormTaskDataProps): UpdateUserTaskBody => {
|
|
30
33
|
const navigator = locationNavigator();
|
|
34
|
+
const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
|
|
31
35
|
|
|
32
36
|
return {
|
|
33
37
|
sendToBank: true,
|
|
34
38
|
taskKind: 'UNITED',
|
|
35
39
|
task: {
|
|
36
|
-
taskSource
|
|
40
|
+
taskSource,
|
|
37
41
|
id: taskId,
|
|
38
42
|
...getOfficeCode(formData),
|
|
39
43
|
authorizedAgentId: formData?.bankEmployeeCode,
|
|
@@ -48,6 +48,7 @@ export const useCreditCardFormAPI = ({
|
|
|
48
48
|
async (formData: LeadFormState) => {
|
|
49
49
|
startSending();
|
|
50
50
|
retailFormStore.leadForm = formData;
|
|
51
|
+
const referalData = retailFormStore.referalData;
|
|
51
52
|
|
|
52
53
|
try {
|
|
53
54
|
const { taskId, profileId, participantId } = retailFormStore;
|
|
@@ -59,6 +60,7 @@ export const useCreditCardFormAPI = ({
|
|
|
59
60
|
profileId,
|
|
60
61
|
step,
|
|
61
62
|
formData: formData as any,
|
|
63
|
+
isTaskWithReferalCode: referalData?.isTaskWithReferalCode,
|
|
62
64
|
}),
|
|
63
65
|
);
|
|
64
66
|
resetForm(response);
|
|
@@ -52,6 +52,7 @@ export const useCreditFormAPI = ({
|
|
|
52
52
|
async (formData: LeadFormState) => {
|
|
53
53
|
startSending();
|
|
54
54
|
retailFormStore.leadForm = formData;
|
|
55
|
+
const referalData = retailFormStore.referalData;
|
|
55
56
|
|
|
56
57
|
try {
|
|
57
58
|
const { taskId, profileId, participantId } = retailFormStore;
|
|
@@ -63,6 +64,7 @@ export const useCreditFormAPI = ({
|
|
|
63
64
|
profileId,
|
|
64
65
|
step,
|
|
65
66
|
formData: formData as any,
|
|
67
|
+
isTaskWithReferalCode: referalData?.isTaskWithReferalCode,
|
|
66
68
|
}),
|
|
67
69
|
);
|
|
68
70
|
resetForm(response);
|
|
@@ -4,6 +4,7 @@ import { getPersonalInfoData } from '../../retail/adaptors/getPersonalInfoData';
|
|
|
4
4
|
import { type Participant } from '../../retail/api/updateUserTask';
|
|
5
5
|
import { type UpdateUserTaskDebitBody } from '../../retail/api/updateUserTaskDebit';
|
|
6
6
|
import { type LeadFormState } from '../../retail/model/LeadFormState';
|
|
7
|
+
import { type ReferalData } from '../../retail/model/ReferalData';
|
|
7
8
|
import {
|
|
8
9
|
getDebitCardData,
|
|
9
10
|
getDeliveryData,
|
|
@@ -18,6 +19,7 @@ type getDebitFormTaskDataProps = {
|
|
|
18
19
|
formData: LeadFormState;
|
|
19
20
|
programId: string;
|
|
20
21
|
step?: number;
|
|
22
|
+
isTaskWithReferalCode?: ReferalData['isTaskWithReferalCode'];
|
|
21
23
|
};
|
|
22
24
|
|
|
23
25
|
export const getDebitCardFormTaskData = ({
|
|
@@ -26,12 +28,14 @@ export const getDebitCardFormTaskData = ({
|
|
|
26
28
|
formData,
|
|
27
29
|
programId,
|
|
28
30
|
step = 0,
|
|
31
|
+
isTaskWithReferalCode,
|
|
29
32
|
}: getDebitFormTaskDataProps): UpdateUserTaskDebitBody => {
|
|
30
33
|
const navigator = locationNavigator();
|
|
34
|
+
const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
|
|
31
35
|
|
|
32
36
|
return {
|
|
33
37
|
task: {
|
|
34
|
-
taskSource
|
|
38
|
+
taskSource,
|
|
35
39
|
id: taskId,
|
|
36
40
|
creditProgram: {
|
|
37
41
|
code: debitProgrammIdToCardCodesMap[programId],
|
|
@@ -40,6 +40,7 @@ export const useDebitFormAPI = ({
|
|
|
40
40
|
async (formData: LeadFormState) => {
|
|
41
41
|
startSending();
|
|
42
42
|
retailFormStore.leadForm = formData;
|
|
43
|
+
const referalData = retailFormStore.referalData;
|
|
43
44
|
|
|
44
45
|
try {
|
|
45
46
|
const { taskId, participantId, programId } = retailFormStore;
|
|
@@ -51,6 +52,7 @@ export const useDebitFormAPI = ({
|
|
|
51
52
|
programId,
|
|
52
53
|
step,
|
|
53
54
|
formData: formData as any,
|
|
55
|
+
isTaskWithReferalCode: referalData?.isTaskWithReferalCode,
|
|
54
56
|
}),
|
|
55
57
|
);
|
|
56
58
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useLink } from '../../hooks/useLink';
|
|
3
3
|
import { type LinkProps } from '../../model/LinkProps';
|
|
4
|
+
import { type OnClickProps } from '../../model/OnClickProps';
|
|
4
5
|
import { style } from '../../utils/style';
|
|
5
6
|
|
|
6
|
-
interface HorizontalNavigationLinkProps extends LinkProps {
|
|
7
|
+
interface HorizontalNavigationLinkProps extends LinkProps, OnClickProps {
|
|
7
8
|
className: string;
|
|
8
9
|
index: number;
|
|
9
|
-
onClick: () => void;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export const HorizontalNavigationLink = JSX<Partial<HorizontalNavigationLinkProps>>(
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useLink } from '../../hooks/useLink';
|
|
3
3
|
import { type LinkProps } from '../../model/LinkProps';
|
|
4
|
+
import { type OnClickProps } from '../../model/OnClickProps';
|
|
4
5
|
import { style } from '../../utils/style';
|
|
5
6
|
|
|
6
|
-
interface TextInformationLinkProps extends LinkProps {
|
|
7
|
+
interface TextInformationLinkProps extends LinkProps, OnClickProps {
|
|
7
8
|
className: string;
|
|
8
9
|
index: number;
|
|
9
|
-
onClick: () => void;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export const TextInformationLink = JSX<Partial<TextInformationLinkProps>>(
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type TextProps } from '../../model/HeadlineType';
|
|
1
2
|
import { type Picture } from '../../model/Picture';
|
|
2
3
|
import { type RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
3
4
|
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
@@ -5,9 +6,7 @@ import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
|
5
6
|
/**
|
|
6
7
|
* @title Пункт
|
|
7
8
|
*/
|
|
8
|
-
export type ItemList = {
|
|
9
|
-
/** @title Название */
|
|
10
|
-
text?: string;
|
|
9
|
+
export type ItemList = TextProps & {
|
|
11
10
|
image?: Picture;
|
|
12
11
|
};
|
|
13
12
|
|
|
@@ -38,7 +38,7 @@ export const getDateDescription = (workScheduleWeek: WorkScheduleWeek[]) => {
|
|
|
38
38
|
.map((_) => _.short?.toLowerCase())
|
|
39
39
|
.join(', ');
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
return [
|
|
42
42
|
buildScheduleText({
|
|
43
43
|
workTime: workingWeekday?.workTime,
|
|
44
44
|
lunchHour: workingWeekday?.lunchHour,
|
|
@@ -49,6 +49,4 @@ export const getDateDescription = (workScheduleWeek: WorkScheduleWeek[]) => {
|
|
|
49
49
|
true,
|
|
50
50
|
),
|
|
51
51
|
].filter(Boolean);
|
|
52
|
-
|
|
53
|
-
return rows;
|
|
54
52
|
};
|
|
@@ -41,7 +41,7 @@ export const BurgerMenuDialog = JSX<BurgerMenuDialogProps>(
|
|
|
41
41
|
}, [location]);
|
|
42
42
|
|
|
43
43
|
useEffect(() => {
|
|
44
|
-
const onMessage = (e: MessageEvent
|
|
44
|
+
const onMessage = (e: MessageEvent) => {
|
|
45
45
|
if (e.data.type === 'location') {
|
|
46
46
|
locationDialog.open({});
|
|
47
47
|
}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { type ComponentType } from '../../model/ComponentType';
|
|
3
|
+
import { type OnClickPreventableProps } from '../../model/OnClickProps';
|
|
3
4
|
import type { OnCloseProps } from '../../model/OnCloseProps';
|
|
4
5
|
import { type VNode } from '../../model/VNode';
|
|
5
6
|
import { CloseButton } from '../../ui-kit/DialogManager/CloseButton';
|
|
6
|
-
import { type PreventableEvent } from '../../ui-kit/PreventableEvent';
|
|
7
7
|
import { style } from '../../utils/style';
|
|
8
8
|
|
|
9
|
-
export interface StickyBottomMenuDialogProps
|
|
9
|
+
export interface StickyBottomMenuDialogProps
|
|
10
|
+
extends ComponentType,
|
|
11
|
+
OnCloseProps,
|
|
12
|
+
OnClickPreventableProps {
|
|
10
13
|
head?: VNode;
|
|
11
|
-
onClick?: (e: PreventableEvent) => void;
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
export const StickyBottomMenuDialog = JSX<StickyBottomMenuDialogProps>(
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { type StickyMenuItem } from '../../data/StickyMobileData';
|
|
3
|
+
import { type OnClickPreventableProps } from '../../model/OnClickProps';
|
|
3
4
|
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
4
|
-
import { type PreventableEvent } from '../../ui-kit/PreventableEvent';
|
|
5
5
|
import { style } from '../../utils/style';
|
|
6
6
|
|
|
7
|
-
interface StickyBottomMenuItemProps {
|
|
7
|
+
interface StickyBottomMenuItemProps extends OnClickPreventableProps {
|
|
8
8
|
isActive?: boolean;
|
|
9
9
|
item?: StickyMenuItem;
|
|
10
|
-
onClick?: (e: PreventableEvent) => void;
|
|
11
10
|
}
|
|
12
11
|
|
|
13
12
|
export const StickyBottomMenuItem = JSX<StickyBottomMenuItemProps>(
|
|
@@ -51,7 +51,7 @@ export function useForm<FormState extends Record<string, any>>(
|
|
|
51
51
|
const fieldErrors: ValidationInfo = isDirty && fieldValidator ? fieldValidator(value) : [];
|
|
52
52
|
|
|
53
53
|
return {
|
|
54
|
-
value: format ? (format(value) as any) : value,
|
|
54
|
+
value: format ? (format(value) as FormState[any]) : value,
|
|
55
55
|
isDirty,
|
|
56
56
|
errors: fieldValidator && fieldErrors, // TODO Костыль
|
|
57
57
|
error: fieldErrors[0],
|
|
@@ -14,12 +14,11 @@ export const fetchRefs = async (refs: string[]): Promise<Record<string, JSONNode
|
|
|
14
14
|
await Promise.allSettled(
|
|
15
15
|
unique(refs)
|
|
16
16
|
.filter(($ref) => !EXCLUSIONS.some((_) => $ref.startsWith(_)))
|
|
17
|
-
.map(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
),
|
|
17
|
+
.map(async ($ref): Promise<RefEntry> => {
|
|
18
|
+
refsCache[$ref] ||= await fetchJSONUnsafe($ref);
|
|
19
|
+
|
|
20
|
+
return [$ref, refsCache[$ref]];
|
|
21
|
+
}),
|
|
23
22
|
)
|
|
24
23
|
)
|
|
25
24
|
.filter((res): res is PromiseFulfilledResult<RefEntry> => res.status === 'fulfilled')
|
|
@@ -2,6 +2,7 @@ import { getCalcData } from '../../components/CreditForm/getCalcData';
|
|
|
2
2
|
import { locationNavigator } from '../../external/locationNavigator';
|
|
3
3
|
import { type Participant, type UpdateUserTaskBody } from '../api/updateUserTask';
|
|
4
4
|
import { type LeadFormState } from '../model/LeadFormState';
|
|
5
|
+
import { type ReferalData } from '../model/ReferalData';
|
|
5
6
|
import { getAdditionalInfoData } from './getAdditionalInfoData';
|
|
6
7
|
import { getCalculatorData } from './getCalculatorData';
|
|
7
8
|
import { getDeliveryCreditData } from './getDeliveryCreditData';
|
|
@@ -15,6 +16,7 @@ type getCreditFormTaskDataProps = {
|
|
|
15
16
|
profileId: number;
|
|
16
17
|
formData: LeadFormState;
|
|
17
18
|
step?: number;
|
|
19
|
+
isTaskWithReferalCode?: ReferalData['isTaskWithReferalCode'];
|
|
18
20
|
};
|
|
19
21
|
|
|
20
22
|
export const getCreditFormTaskData = ({
|
|
@@ -23,14 +25,16 @@ export const getCreditFormTaskData = ({
|
|
|
23
25
|
profileId,
|
|
24
26
|
formData,
|
|
25
27
|
step = 0,
|
|
28
|
+
isTaskWithReferalCode,
|
|
26
29
|
}: getCreditFormTaskDataProps): UpdateUserTaskBody => {
|
|
27
30
|
const navigator = locationNavigator();
|
|
31
|
+
const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
|
|
28
32
|
|
|
29
33
|
return {
|
|
30
34
|
sendToBank: true,
|
|
31
35
|
taskKind: 'UNITED',
|
|
32
36
|
task: {
|
|
33
|
-
taskSource
|
|
37
|
+
taskSource,
|
|
34
38
|
id: taskId,
|
|
35
39
|
authorizedAgentId: formData?.bankEmployeeCode,
|
|
36
40
|
participants: [
|
|
@@ -2,5 +2,5 @@ import { doRequest } from './doRequest';
|
|
|
2
2
|
|
|
3
3
|
export const createCaptcha = (phoneNumber: string) =>
|
|
4
4
|
doRequest(`/sms/createCaptcha?phoneNumber=${encodeURIComponent(phoneNumber)}`, 'GET').then(
|
|
5
|
-
async (res) => (res ?
|
|
5
|
+
async (res) => (res ? res.blob() : new Blob()),
|
|
6
6
|
);
|
|
@@ -31,7 +31,7 @@ export const getDaDataHints = (options: ListRequestOption): Promise<Array<DaData
|
|
|
31
31
|
const queryPrefixValue = queryPrefix ? `${queryPrefix}, ` : '';
|
|
32
32
|
const combinedQuery = `${queryPrefixValue}${query}`;
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
return globalThis
|
|
35
35
|
?.fetch?.(`/api/v1/suggestions/${url}`, {
|
|
36
36
|
method: 'POST',
|
|
37
37
|
mode: 'cors',
|
|
@@ -46,6 +46,4 @@ export const getDaDataHints = (options: ListRequestOption): Promise<Array<DaData
|
|
|
46
46
|
})
|
|
47
47
|
.then((response) => response.json())
|
|
48
48
|
.then(responseHandler);
|
|
49
|
-
|
|
50
|
-
return result;
|
|
51
49
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ReferalData } from '../model/ReferalData';
|
|
2
|
+
import { doRequest } from './doRequest';
|
|
3
|
+
|
|
4
|
+
export type SaveReferalInfo = ReferalData & {
|
|
5
|
+
taskId: number;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const saveReferalInfo = (body: SaveReferalInfo) =>
|
|
9
|
+
doRequest('/referal/saveReferalInfo', 'POST', body);
|