@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
|
@@ -24,17 +24,19 @@ type ParticipantAddress = {
|
|
|
24
24
|
street: string;
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
+
type IncomeTypeCdType =
|
|
28
|
+
| 'INCOME_AVERAGE'
|
|
29
|
+
| 'ADDITIONAL_INCOME'
|
|
30
|
+
| 'MANDATORY_PAYMENTS'
|
|
31
|
+
| 'OTHER_INCOME'
|
|
32
|
+
| 'OTHER_PAYMENTS'
|
|
33
|
+
| 'RENTAL_INCOME'
|
|
34
|
+
| 'WAGES'
|
|
35
|
+
| 'RETIREMENT_INCOME';
|
|
36
|
+
|
|
27
37
|
type ParticipantIncome = {
|
|
28
38
|
incomeTypeCd: {
|
|
29
|
-
key:
|
|
30
|
-
| 'INCOME_AVERAGE'
|
|
31
|
-
| 'ADDITIONAL_INCOME'
|
|
32
|
-
| 'MANDATORY_PAYMENTS'
|
|
33
|
-
| 'OTHER_INCOME'
|
|
34
|
-
| 'OTHER_PAYMENTS'
|
|
35
|
-
| 'RENTAL_INCOME'
|
|
36
|
-
| 'WAGES'
|
|
37
|
-
| 'RETIREMENT_INCOME';
|
|
39
|
+
key: IncomeTypeCdType;
|
|
38
40
|
};
|
|
39
41
|
value: string;
|
|
40
42
|
};
|
|
@@ -12,7 +12,7 @@ export const uploadFile = async (
|
|
|
12
12
|
fd.append('documentCategory', documentCategory);
|
|
13
13
|
fd.append('file', file, `file.${isPDF ? 'pdf' : 'xml'}`);
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
return await globalThis
|
|
16
16
|
?.fetch?.(`/light-api-cash/v1/file`, {
|
|
17
17
|
method: 'POST',
|
|
18
18
|
headers: {
|
|
@@ -22,6 +22,4 @@ export const uploadFile = async (
|
|
|
22
22
|
body: fd,
|
|
23
23
|
})
|
|
24
24
|
.then((response) => response.json());
|
|
25
|
-
|
|
26
|
-
return res;
|
|
27
25
|
};
|
|
@@ -15,12 +15,14 @@ import { creditCodesToProgrammIdMap, creditProgramCodeToProductIdMap } from './u
|
|
|
15
15
|
export interface DraftDialogProps extends OnCloseProps {
|
|
16
16
|
task: Task;
|
|
17
17
|
isFromLead?: boolean;
|
|
18
|
+
isDebit?: boolean;
|
|
18
19
|
sendAspects?: (profileId: number, taskId: number) => void;
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
export const DraftDialog = JSX<DraftDialogProps>(function ({
|
|
22
23
|
task,
|
|
23
24
|
isFromLead = false,
|
|
25
|
+
isDebit = false,
|
|
24
26
|
sendAspects = noop,
|
|
25
27
|
onClose = noop,
|
|
26
28
|
}) {
|
|
@@ -31,21 +33,31 @@ export const DraftDialog = JSX<DraftDialogProps>(function ({
|
|
|
31
33
|
|
|
32
34
|
const programmId: string = creditProgramCodeToProductIdMap[creditProgram.code];
|
|
33
35
|
const isCredit = Boolean(creditCodesToProgrammIdMap[creditProgram.code]);
|
|
34
|
-
const
|
|
36
|
+
const getNextStepLink = () => {
|
|
37
|
+
if (isDebit) {
|
|
38
|
+
return '/debit-card-lead';
|
|
39
|
+
} else if (isCredit) {
|
|
40
|
+
return '/credit-lead';
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return '/credit-card-lead';
|
|
44
|
+
};
|
|
35
45
|
|
|
36
46
|
const { id: participantId, profile } = participants[0];
|
|
37
47
|
|
|
38
48
|
const handleGoToDraft = useCallback(() => {
|
|
39
|
-
const taskFromDraft = parseDraftTask(task);
|
|
49
|
+
const [taskFromDraft, isTaskWithReferalCode] = parseDraftTask(task);
|
|
40
50
|
retailFormStore.participantId = participantId ?? null;
|
|
41
51
|
retailFormStore.taskId = taskId;
|
|
42
52
|
retailFormStore.profileId = profile?.id ?? null;
|
|
43
53
|
retailFormStore.programId = programmId;
|
|
44
54
|
retailFormStore.leadForm = taskFromDraft;
|
|
55
|
+
retailFormStore.referalData = { isTaskWithReferalCode };
|
|
56
|
+
|
|
45
57
|
if (profile?.id) {
|
|
46
58
|
sendAspects(profile.id, taskId);
|
|
47
59
|
}
|
|
48
|
-
navigator.assign(
|
|
60
|
+
navigator.assign(getNextStepLink());
|
|
49
61
|
}, []);
|
|
50
62
|
|
|
51
63
|
const handleGoToNewTask = useCallback(() => {
|
|
@@ -11,13 +11,14 @@ import {
|
|
|
11
11
|
INCOME_CERTIFICATE,
|
|
12
12
|
} from './utils';
|
|
13
13
|
|
|
14
|
-
export const parseDraftTask = (task: Task): LeadFormState => {
|
|
14
|
+
export const parseDraftTask = (task: Task): [LeadFormState, boolean] => {
|
|
15
15
|
const participant = task.participants[0];
|
|
16
16
|
const {
|
|
17
17
|
classCard: cardCategory,
|
|
18
18
|
codeWord,
|
|
19
19
|
paymentSystemTypeCd: paymentSystem,
|
|
20
20
|
currencyCode: currency,
|
|
21
|
+
taskSource,
|
|
21
22
|
} = task;
|
|
22
23
|
|
|
23
24
|
const { loanAmount: moneyValue, creditPeriod: monthsValue, paymentTypeCd } = task;
|
|
@@ -71,7 +72,7 @@ export const parseDraftTask = (task: Task): LeadFormState => {
|
|
|
71
72
|
profile,
|
|
72
73
|
} = participant;
|
|
73
74
|
|
|
74
|
-
|
|
75
|
+
const taskFromDraft = {
|
|
75
76
|
currency: currency?.key,
|
|
76
77
|
paymentSystem: getSelectValue(paymentSystem),
|
|
77
78
|
cardCategory: getSelectValue(cardCategory),
|
|
@@ -128,4 +129,6 @@ export const parseDraftTask = (task: Task): LeadFormState => {
|
|
|
128
129
|
...getParticipantContacts(participantContacts),
|
|
129
130
|
...getParticipantGender(genderCd),
|
|
130
131
|
};
|
|
132
|
+
|
|
133
|
+
return [taskFromDraft, taskSource === 'ReferalSF'];
|
|
131
134
|
};
|
|
@@ -1,22 +1,16 @@
|
|
|
1
|
-
import type { OnCloseProps } from '../../../model/OnCloseProps';
|
|
2
1
|
import { useDialog } from '../../../ui-kit/DialogManager/useDialog';
|
|
3
|
-
import { type
|
|
4
|
-
import { DraftDialog } from './DraftDialog';
|
|
2
|
+
import { DraftDialog, type DraftDialogProps } from './DraftDialog';
|
|
5
3
|
import { EmptyDraftDialog } from './EmptyDraftDialog';
|
|
6
4
|
|
|
7
|
-
type useDraftDialogOpenProps = OnCloseProps & {
|
|
8
|
-
task?: Task;
|
|
9
|
-
isFromLead?: boolean;
|
|
10
|
-
sendAspects?: (profileId: number, taskId: number) => void;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
5
|
export const useDraftDialog = () => {
|
|
14
6
|
const { open: openDraftDialog } = useDialog(DraftDialog);
|
|
15
7
|
const { open: openEmptyDraftDialog } = useDialog(EmptyDraftDialog);
|
|
16
8
|
|
|
17
9
|
return {
|
|
18
|
-
open: ({ task, isFromLead, onClose, sendAspects }:
|
|
19
|
-
task
|
|
10
|
+
open: ({ task, isFromLead, isDebit, onClose, sendAspects }: Partial<DraftDialogProps>) => {
|
|
11
|
+
task
|
|
12
|
+
? openDraftDialog({ task, isFromLead, isDebit, onClose, sendAspects })
|
|
13
|
+
: openEmptyDraftDialog({});
|
|
20
14
|
},
|
|
21
15
|
};
|
|
22
16
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { type DisabledProps } from '../../../model/DisabledProps';
|
|
3
|
+
import { type TextProps } from '../../../model/HeadlineType';
|
|
4
|
+
import { type OnClickProps } from '../../../model/OnClickProps';
|
|
3
5
|
import { Button } from '../../../ui-kit/Button/Button';
|
|
4
6
|
import { Text } from '../../../ui-kit/Text/Text';
|
|
5
7
|
|
|
6
|
-
interface SubmitButtonProps extends DisabledProps {
|
|
7
|
-
onClick: () => void;
|
|
8
|
-
text?: string;
|
|
9
|
-
}
|
|
8
|
+
interface SubmitButtonProps extends DisabledProps, TextProps, OnClickProps {}
|
|
10
9
|
|
|
11
10
|
export const SubmitButton = JSX<SubmitButtonProps>(({ disabled = false, onClick, text }) => (
|
|
12
11
|
<Button type="button" onClick={onClick} disabled={disabled}>
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/* eslint-disable complexity */
|
|
2
|
+
import { type Option } from '../../ui-kit/Select/Option';
|
|
3
|
+
import { type Nullable } from '../../utils/Nullable';
|
|
2
4
|
import { EOrganizationActivityTypes } from '../model/EOrganizationActivityTypes';
|
|
3
5
|
import { type DictionaryItem } from '../model/LeadFormData';
|
|
4
6
|
|
|
5
7
|
export const getOrganizationActivityType = (
|
|
6
8
|
options: DictionaryItem[],
|
|
7
9
|
okved: string,
|
|
8
|
-
):
|
|
10
|
+
): Nullable<Option> => {
|
|
9
11
|
if (!okved) {
|
|
10
12
|
return null;
|
|
11
13
|
}
|
|
@@ -78,7 +80,7 @@ export const getOrganizationActivityType = (
|
|
|
78
80
|
export const getEmployeesNumberOption = (
|
|
79
81
|
options: DictionaryItem[] | null,
|
|
80
82
|
count?: number,
|
|
81
|
-
):
|
|
83
|
+
): Nullable<Option> => {
|
|
82
84
|
if (!count) {
|
|
83
85
|
return null;
|
|
84
86
|
}
|
|
@@ -91,10 +93,7 @@ export const getEmployeesNumberOption = (
|
|
|
91
93
|
return option;
|
|
92
94
|
};
|
|
93
95
|
|
|
94
|
-
export const getOrganizationKind = (
|
|
95
|
-
options: DictionaryItem[],
|
|
96
|
-
okopf: number,
|
|
97
|
-
): { key: string; text: string } | null => {
|
|
96
|
+
export const getOrganizationKind = (options: DictionaryItem[], okopf: number): Nullable<Option> => {
|
|
98
97
|
const getOptionByKey = getOptionOp(options);
|
|
99
98
|
|
|
100
99
|
if ([40001, 40002, 71610].includes(okopf)) {
|
|
@@ -108,7 +107,7 @@ export const getOrganizationType = (
|
|
|
108
107
|
options: DictionaryItem[],
|
|
109
108
|
okopf: number,
|
|
110
109
|
inn: string,
|
|
111
|
-
):
|
|
110
|
+
): Nullable<Option> => {
|
|
112
111
|
const getOptionByKey = getOptionOp(options);
|
|
113
112
|
|
|
114
113
|
if (inn === '7725114488') {
|
|
@@ -128,5 +127,5 @@ export const getOrganizationType = (
|
|
|
128
127
|
|
|
129
128
|
const getOptionOp = (options: DictionaryItem[]) => (key: string) =>
|
|
130
129
|
options
|
|
131
|
-
.map((_) => ({ key: _.key as string, text: _.value as string }))
|
|
130
|
+
.map((_): Option => ({ key: _.key as string, text: _.value as string }))
|
|
132
131
|
.find((_) => _.key === key) ?? null;
|
|
@@ -6,11 +6,11 @@ import { type ButtonVersion } from '../../model/ButtonVersion';
|
|
|
6
6
|
import { type ComponentType } from '../../model/ComponentType';
|
|
7
7
|
import { type ColorPalette } from '../../model/ContentPageBase';
|
|
8
8
|
import { type DisabledProps } from '../../model/DisabledProps';
|
|
9
|
+
import { type OnClickPreventableProps } from '../../model/OnClickProps';
|
|
9
10
|
import { getAspectsAttributes } from '../../utils/dataAttributes';
|
|
10
11
|
import { noop } from '../../utils/noop';
|
|
11
12
|
import { style } from '../../utils/style';
|
|
12
13
|
import { type ARIAProps } from '../ARIAProps';
|
|
13
|
-
import { type PreventableEvent } from '../PreventableEvent';
|
|
14
14
|
|
|
15
15
|
export const themeStyle: Record<ButtonVersion, string> = {
|
|
16
16
|
primary: style(
|
|
@@ -34,7 +34,11 @@ const embeddedStyle = style(
|
|
|
34
34
|
|
|
35
35
|
const disabledStyle = style('bg-main-gray text-main-disabled cursor-not-allowed');
|
|
36
36
|
|
|
37
|
-
export interface ButtonProps
|
|
37
|
+
export interface ButtonProps
|
|
38
|
+
extends DisabledProps,
|
|
39
|
+
ARIAProps,
|
|
40
|
+
ComponentType,
|
|
41
|
+
OnClickPreventableProps {
|
|
38
42
|
type?: 'button' | 'submit' | 'reset';
|
|
39
43
|
version?: ButtonVersion;
|
|
40
44
|
shape?: 'default' | 'round' | 'square';
|
|
@@ -43,7 +47,6 @@ export interface ButtonProps extends DisabledProps, ARIAProps, ComponentType {
|
|
|
43
47
|
ariaLabel?: string;
|
|
44
48
|
data?: AspectsDef[];
|
|
45
49
|
dataTheme?: ColorPalette;
|
|
46
|
-
onClick?: (ev: PreventableEvent) => void;
|
|
47
50
|
wcmsIgnore?: boolean;
|
|
48
51
|
}
|
|
49
52
|
|
|
@@ -1,14 +1,13 @@
|
|
|
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 { style } from '../../utils/style';
|
|
6
|
-
import { type PreventableEvent } from '../PreventableEvent';
|
|
7
7
|
import { CloseButton } from './CloseButton';
|
|
8
8
|
|
|
9
|
-
export interface DialogProps extends ComponentType, OnCloseProps {
|
|
9
|
+
export interface DialogProps extends ComponentType, OnCloseProps, OnClickPreventableProps {
|
|
10
10
|
head?: VNode;
|
|
11
|
-
onClick?: (e: PreventableEvent) => void;
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export const Dialog = JSX<DialogProps>(({ className, head, children, onClose, onClick }) => (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { type ComponentType } from '../../model/ComponentType';
|
|
3
|
-
import { type OnClickProps } from '../../model/
|
|
3
|
+
import { type OnClickProps } from '../../model/OnClickProps';
|
|
4
4
|
import { DefaultFoldButton } from '../Foldable/DefaultFoldButton';
|
|
5
5
|
import { type TariffsTableInnerContent } from './InnerTableProps';
|
|
6
6
|
|
package/src/ui-kit/Link/Link.tsx
CHANGED
|
@@ -3,10 +3,10 @@ import { useLink } from '../../hooks/useLink';
|
|
|
3
3
|
import { type ComponentType } from '../../model/ComponentType';
|
|
4
4
|
import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
|
|
5
5
|
import { type LinkProps as BaseLinkProps } from '../../model/LinkProps';
|
|
6
|
+
import { type OnClickPreventableProps } from '../../model/OnClickProps';
|
|
6
7
|
import { getAspectsAttributes } from '../../utils/dataAttributes';
|
|
7
8
|
import { style } from '../../utils/style';
|
|
8
9
|
import { themeStyle as buttonThemeStyle } from '../Button/Button';
|
|
9
|
-
import { type PreventableEvent } from '../PreventableEvent';
|
|
10
10
|
|
|
11
11
|
const themeStyle: Record<LinkButtonVersion, string> = {
|
|
12
12
|
primary: buttonThemeStyle.primary,
|
|
@@ -19,12 +19,11 @@ const themeStyle: Record<LinkButtonVersion, string> = {
|
|
|
19
19
|
'': '',
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
export interface LinkProps extends BaseLinkProps, ComponentType {
|
|
22
|
+
export interface LinkProps extends BaseLinkProps, ComponentType, OnClickPreventableProps {
|
|
23
23
|
version?: LinkButtonVersion;
|
|
24
24
|
aboveText?: string;
|
|
25
25
|
rel?: string;
|
|
26
26
|
ariaLabel?: string;
|
|
27
|
-
onClick?: (ev?: PreventableEvent) => void;
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
export const Link = JSX<LinkProps>((props) => {
|
|
@@ -6,7 +6,7 @@ import { toLocalNumberFormat } from '../../utils/toLocalNumberFormat';
|
|
|
6
6
|
import { Input } from '../Input/Input';
|
|
7
7
|
import { type InputProps } from '../Input/InputProps';
|
|
8
8
|
|
|
9
|
-
export interface NumberInputProps extends InputProps
|
|
9
|
+
export interface NumberInputProps extends InputProps {
|
|
10
10
|
min?: number;
|
|
11
11
|
max?: number;
|
|
12
12
|
defaultValue?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type ComponentType } from '../../model/ComponentType';
|
|
2
2
|
import { type ControlProps } from '../../model/ControlProps';
|
|
3
|
+
import { type TextProps } from '../../model/HeadlineType';
|
|
3
4
|
|
|
4
|
-
export interface RadioProps extends ComponentType, ControlProps<string> {
|
|
5
|
+
export interface RadioProps extends TextProps, ComponentType, ControlProps<string> {
|
|
5
6
|
name: string;
|
|
6
|
-
text?: string;
|
|
7
7
|
checked: boolean;
|
|
8
8
|
}
|
|
@@ -29,10 +29,8 @@ export function useCountDownTimer({ seconds, period = 1000, onTick, onEnd }: Cou
|
|
|
29
29
|
|
|
30
30
|
const { start } = useInterval(handleTick, period);
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
return useCallback((_: number) => {
|
|
33
33
|
counter.current = _;
|
|
34
34
|
start();
|
|
35
35
|
}, []);
|
|
36
|
-
|
|
37
|
-
return restart;
|
|
38
36
|
}
|
package/dist/model/onClick.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"onClick.js","sourceRoot":"","sources":["../../src/model/onClick.ts"],"names":[],"mappings":""}
|
package/lib/model/onClick.d.ts
DELETED
package/lib/model/onClick.js
DELETED
package/lib/model/onClick.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"onClick.js","sourceRoot":"","sources":["../../src/model/onClick.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"onClick.js","sourceRoot":"","sources":["../../src/model/onClick.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"onClick.js","sourceRoot":"","sources":["../../src/model/onClick.ts"],"names":[],"mappings":""}
|
package/src/model/onClick.ts
DELETED