@redneckz/wildless-cms-uni-blocks 0.14.1028 → 0.14.1030
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/api/getSubmitBody.d.ts +4225 -865
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +178 -46
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +10 -0
- package/bundle/components/ApplicationForm/Footnote.d.ts +1 -0
- package/bundle/components/ApplicationForm/renderAgreementSubmit.d.ts +2 -1
- package/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
- package/bundle/components/ApplicationLeadForm/useLeadFormStore.d.ts +4 -2
- package/bundle/components/ApplicationLeadForm/useSaveUserData.d.ts +3 -2
- package/bundle/components/ApplicationLeadForm/useSendLeadFormAspects.d.ts +1 -1
- package/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -1
- package/bundle/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -1
- package/bundle/components/ReferalForm/ReferalForm.d.ts +10 -0
- package/bundle/components/ReferalForm/ReferalFormContent.d.ts +11 -0
- package/bundle/components/ReferalForm/ResultLink.d.ts +5 -0
- package/bundle/components/ReferalForm/referalFormData.d.ts +2 -0
- package/bundle/components/ReferalForm/renderLinkInput.d.ts +2 -0
- package/bundle/components/ReferalForm/renderSections.d.ts +3 -0
- package/bundle/model/FormTypeFieldDef.d.ts +1 -1
- package/bundle/retail/adaptors/getCreditFormTaskData.d.ts +1 -1
- package/bundle/retail/api/createDraftTask.d.ts +1 -1
- package/bundle/retail/api/createParticipant.d.ts +5 -1
- package/bundle/retail/api/draftTasksKZO.d.ts +2 -1
- package/bundle/retail/api/getLastTaskStatus.d.ts +2 -1
- package/bundle/retail/api/getUserTasks.d.ts +2 -40
- package/bundle/retail/api/getUserTasksCard.d.ts +2 -0
- package/bundle/retail/api/getUserTasksCredit.d.ts +2 -0
- package/bundle/retail/api/getUserTasksDebit.d.ts +2 -0
- package/bundle/retail/api/getUserTasksTypes.d.ts +39 -0
- package/bundle/retail/api/updateUserTask.d.ts +1 -1
- package/bundle/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -2
- package/bundle/retail/components/DraftDialog/DraftDialog.d.ts +1 -1
- package/bundle/retail/hooks/useRetailFormStore.d.ts +2 -1
- package/dist/api/getSubmitBody.d.ts +4225 -865
- package/dist/api/getSubmitBody.js +14 -0
- package/dist/api/getSubmitBody.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationForm.js +2 -1
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +10 -0
- package/dist/components/ApplicationForm/Footnote.d.ts +1 -0
- package/dist/components/ApplicationForm/Footnote.js +1 -1
- package/dist/components/ApplicationForm/Footnote.js.map +1 -1
- package/dist/components/ApplicationForm/renderAgreementSubmit.d.ts +2 -1
- package/dist/components/ApplicationForm/renderAgreementSubmit.js +1 -1
- package/dist/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +80 -31
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useLeadFormStore.d.ts +4 -2
- package/dist/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useSaveUserData.d.ts +3 -2
- package/dist/components/ApplicationLeadForm/useSaveUserData.js +2 -1
- package/dist/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useSendLeadFormAspects.d.ts +1 -1
- package/dist/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -1
- package/dist/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -1
- package/dist/components/ReferalForm/ReferalForm.d.ts +10 -0
- package/dist/components/ReferalForm/ReferalForm.js +33 -0
- package/dist/components/ReferalForm/ReferalForm.js.map +1 -0
- package/dist/components/ReferalForm/ReferalFormContent.d.ts +11 -0
- package/dist/components/ReferalForm/ReferalFormContent.js +2 -0
- package/dist/components/ReferalForm/ReferalFormContent.js.map +1 -0
- package/dist/components/ReferalForm/ResultLink.d.ts +5 -0
- package/dist/components/ReferalForm/ResultLink.js +12 -0
- package/dist/components/ReferalForm/ResultLink.js.map +1 -0
- package/dist/components/ReferalForm/referalFormData.d.ts +2 -0
- package/dist/components/ReferalForm/referalFormData.js +19 -0
- package/dist/components/ReferalForm/referalFormData.js.map +1 -0
- package/dist/components/ReferalForm/renderLinkInput.d.ts +2 -0
- package/dist/components/ReferalForm/renderLinkInput.js +25 -0
- package/dist/components/ReferalForm/renderLinkInput.js.map +1 -0
- package/dist/components/ReferalForm/renderSections.d.ts +3 -0
- package/dist/components/ReferalForm/renderSections.js +10 -0
- package/dist/components/ReferalForm/renderSections.js.map +1 -0
- package/dist/hooks/useDadataParty.js +1 -1
- package/dist/hooks/useDadataParty.js.map +1 -1
- package/dist/model/FormTypeFieldDef.d.ts +1 -1
- package/dist/retail/adaptors/getCreditFormTaskData.d.ts +1 -1
- package/dist/retail/api/createDraftTask.d.ts +1 -1
- package/dist/retail/api/createParticipant.d.ts +5 -1
- package/dist/retail/api/createParticipant.js +1 -1
- package/dist/retail/api/createParticipant.js.map +1 -1
- package/dist/retail/api/draftTasksKZO.d.ts +2 -1
- package/dist/retail/api/draftTasksKZO.js.map +1 -1
- package/dist/retail/api/getLastTaskStatus.d.ts +2 -1
- package/dist/retail/api/getLastTaskStatus.js.map +1 -1
- package/dist/retail/api/getUserTasks.d.ts +2 -40
- package/dist/retail/api/getUserTasks.js +2 -6
- package/dist/retail/api/getUserTasks.js.map +1 -1
- package/dist/retail/api/getUserTasksCard.d.ts +2 -0
- package/dist/retail/api/getUserTasksCard.js +8 -0
- package/dist/retail/api/getUserTasksCard.js.map +1 -0
- package/dist/retail/api/getUserTasksCredit.d.ts +2 -0
- package/dist/retail/api/getUserTasksCredit.js +9 -0
- package/dist/retail/api/getUserTasksCredit.js.map +1 -0
- package/dist/retail/api/getUserTasksDebit.d.ts +2 -0
- package/dist/retail/api/getUserTasksDebit.js +8 -0
- package/dist/retail/api/getUserTasksDebit.js.map +1 -0
- package/dist/retail/api/getUserTasksTypes.d.ts +39 -0
- package/dist/retail/api/getUserTasksTypes.js +9 -0
- package/dist/retail/api/getUserTasksTypes.js.map +1 -0
- package/dist/retail/api/updateUserTask.d.ts +1 -1
- package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -2
- package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +2 -1
- package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/dist/retail/components/DraftDialog/DraftDialog.d.ts +1 -1
- package/dist/retail/components/DraftDialog/DraftDialog.js +4 -2
- package/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/dist/retail/components/DraftDialog/parseDraftTask.js +4 -1
- package/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/dist/retail/hooks/useRetailFormStore.d.ts +2 -1
- package/lib/api/getSubmitBody.d.ts +4225 -865
- package/lib/api/getSubmitBody.js +14 -0
- package/lib/api/getSubmitBody.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +1 -0
- package/lib/components/ApplicationForm/ApplicationForm.js +2 -1
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +10 -0
- package/lib/components/ApplicationForm/Footnote.d.ts +1 -0
- package/lib/components/ApplicationForm/Footnote.js +1 -1
- package/lib/components/ApplicationForm/Footnote.js.map +1 -1
- package/lib/components/ApplicationForm/renderAgreementSubmit.d.ts +2 -1
- package/lib/components/ApplicationForm/renderAgreementSubmit.js +1 -1
- package/lib/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +80 -31
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useLeadFormStore.d.ts +4 -2
- package/lib/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useSaveUserData.d.ts +3 -2
- package/lib/components/ApplicationLeadForm/useSaveUserData.js +2 -1
- package/lib/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useSendLeadFormAspects.d.ts +1 -1
- package/lib/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -1
- package/lib/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -1
- package/lib/components/ReferalForm/ReferalForm.d.ts +10 -0
- package/lib/components/ReferalForm/ReferalForm.fixture.d.ts +5 -0
- package/lib/components/ReferalForm/ReferalForm.fixture.mobile.d.ts +5 -0
- package/lib/components/ReferalForm/ReferalForm.js +31 -0
- package/lib/components/ReferalForm/ReferalForm.js.map +1 -0
- package/lib/components/ReferalForm/ReferalFormContent.d.ts +11 -0
- package/lib/components/ReferalForm/ReferalFormContent.js +2 -0
- package/lib/components/ReferalForm/ReferalFormContent.js.map +1 -0
- package/lib/components/ReferalForm/ResultLink.d.ts +5 -0
- package/lib/components/ReferalForm/ResultLink.js +10 -0
- package/lib/components/ReferalForm/ResultLink.js.map +1 -0
- package/lib/components/ReferalForm/referalFormData.d.ts +2 -0
- package/lib/components/ReferalForm/referalFormData.js +17 -0
- package/lib/components/ReferalForm/referalFormData.js.map +1 -0
- package/lib/components/ReferalForm/renderLinkInput.d.ts +2 -0
- package/lib/components/ReferalForm/renderLinkInput.js +23 -0
- package/lib/components/ReferalForm/renderLinkInput.js.map +1 -0
- package/lib/components/ReferalForm/renderSections.d.ts +3 -0
- package/lib/components/ReferalForm/renderSections.js +7 -0
- package/lib/components/ReferalForm/renderSections.js.map +1 -0
- package/lib/hooks/useDadataParty.js +1 -1
- package/lib/hooks/useDadataParty.js.map +1 -1
- package/lib/model/FormTypeFieldDef.d.ts +1 -1
- package/lib/retail/adaptors/getCreditFormTaskData.d.ts +1 -1
- package/lib/retail/api/createDraftTask.d.ts +1 -1
- package/lib/retail/api/createParticipant.d.ts +5 -1
- package/lib/retail/api/createParticipant.js +1 -1
- package/lib/retail/api/createParticipant.js.map +1 -1
- package/lib/retail/api/draftTasksKZO.d.ts +2 -1
- package/lib/retail/api/draftTasksKZO.js.map +1 -1
- package/lib/retail/api/getLastTaskStatus.d.ts +2 -1
- package/lib/retail/api/getLastTaskStatus.js.map +1 -1
- package/lib/retail/api/getUserTasks.d.ts +2 -40
- package/lib/retail/api/getUserTasks.js +1 -6
- package/lib/retail/api/getUserTasks.js.map +1 -1
- package/lib/retail/api/getUserTasksCard.d.ts +2 -0
- package/lib/retail/api/getUserTasksCard.js +5 -0
- package/lib/retail/api/getUserTasksCard.js.map +1 -0
- package/lib/retail/api/getUserTasksCredit.d.ts +2 -0
- package/lib/retail/api/getUserTasksCredit.js +6 -0
- package/lib/retail/api/getUserTasksCredit.js.map +1 -0
- package/lib/retail/api/getUserTasksDebit.d.ts +2 -0
- package/lib/retail/api/getUserTasksDebit.js +5 -0
- package/lib/retail/api/getUserTasksDebit.js.map +1 -0
- package/lib/retail/api/getUserTasksTypes.d.ts +39 -0
- package/lib/retail/api/getUserTasksTypes.js +7 -0
- package/lib/retail/api/getUserTasksTypes.js.map +1 -0
- package/lib/retail/api/updateUserTask.d.ts +1 -1
- package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -2
- package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +2 -1
- package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/lib/retail/components/DraftDialog/DraftDialog.d.ts +1 -1
- package/lib/retail/components/DraftDialog/DraftDialog.js +4 -2
- package/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/lib/retail/components/DraftDialog/parseDraftTask.js +4 -1
- package/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/lib/retail/hooks/useRetailFormStore.d.ts +2 -1
- package/mobile/bundle/api/getSubmitBody.d.ts +4225 -865
- package/mobile/bundle/bundle.umd.js +113 -42
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +10 -0
- package/mobile/bundle/components/ApplicationForm/Footnote.d.ts +1 -0
- package/mobile/bundle/components/ApplicationForm/renderAgreementSubmit.d.ts +2 -1
- package/mobile/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
- package/mobile/bundle/components/ApplicationLeadForm/useLeadFormStore.d.ts +4 -2
- package/mobile/bundle/components/ApplicationLeadForm/useSaveUserData.d.ts +3 -2
- package/mobile/bundle/components/ApplicationLeadForm/useSendLeadFormAspects.d.ts +1 -1
- package/mobile/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -1
- package/mobile/bundle/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -1
- package/mobile/bundle/components/ReferalForm/ReferalForm.d.ts +10 -0
- package/mobile/bundle/components/ReferalForm/ReferalFormContent.d.ts +11 -0
- package/mobile/bundle/components/ReferalForm/ResultLink.d.ts +5 -0
- package/mobile/bundle/components/ReferalForm/referalFormData.d.ts +2 -0
- package/mobile/bundle/components/ReferalForm/renderLinkInput.d.ts +2 -0
- package/mobile/bundle/components/ReferalForm/renderSections.d.ts +3 -0
- package/mobile/bundle/model/FormTypeFieldDef.d.ts +1 -1
- package/mobile/bundle/retail/adaptors/getCreditFormTaskData.d.ts +1 -1
- package/mobile/bundle/retail/api/createDraftTask.d.ts +1 -1
- package/mobile/bundle/retail/api/createParticipant.d.ts +5 -1
- package/mobile/bundle/retail/api/draftTasksKZO.d.ts +2 -1
- package/mobile/bundle/retail/api/getLastTaskStatus.d.ts +2 -1
- package/mobile/bundle/retail/api/getUserTasks.d.ts +2 -40
- package/mobile/bundle/retail/api/getUserTasksCard.d.ts +2 -0
- package/mobile/bundle/retail/api/getUserTasksCredit.d.ts +2 -0
- package/mobile/bundle/retail/api/getUserTasksDebit.d.ts +2 -0
- package/mobile/bundle/retail/api/getUserTasksTypes.d.ts +39 -0
- package/mobile/bundle/retail/api/updateUserTask.d.ts +1 -1
- package/mobile/bundle/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -2
- package/mobile/bundle/retail/components/DraftDialog/DraftDialog.d.ts +1 -1
- package/mobile/bundle/retail/hooks/useRetailFormStore.d.ts +2 -1
- package/mobile/dist/api/getSubmitBody.d.ts +4225 -865
- package/mobile/dist/api/getSubmitBody.js +14 -0
- package/mobile/dist/api/getSubmitBody.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +2 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +10 -0
- package/mobile/dist/components/ApplicationForm/Footnote.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/Footnote.js +1 -1
- package/mobile/dist/components/ApplicationForm/Footnote.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.d.ts +2 -1
- package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +80 -31
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.d.ts +4 -2
- package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.d.ts +3 -2
- package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.js +2 -1
- package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useSendLeadFormAspects.d.ts +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -1
- package/mobile/dist/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -1
- package/mobile/dist/components/ReferalForm/ReferalForm.d.ts +10 -0
- package/mobile/dist/components/ReferalForm/ReferalForm.js +33 -0
- package/mobile/dist/components/ReferalForm/ReferalForm.js.map +1 -0
- package/mobile/dist/components/ReferalForm/ReferalFormContent.d.ts +11 -0
- package/mobile/dist/components/ReferalForm/ReferalFormContent.js +2 -0
- package/mobile/dist/components/ReferalForm/ReferalFormContent.js.map +1 -0
- package/mobile/dist/components/ReferalForm/ResultLink.d.ts +5 -0
- package/mobile/dist/components/ReferalForm/ResultLink.js +12 -0
- package/mobile/dist/components/ReferalForm/ResultLink.js.map +1 -0
- package/mobile/dist/components/ReferalForm/referalFormData.d.ts +2 -0
- package/mobile/dist/components/ReferalForm/referalFormData.js +19 -0
- package/mobile/dist/components/ReferalForm/referalFormData.js.map +1 -0
- package/mobile/dist/components/ReferalForm/renderLinkInput.d.ts +2 -0
- package/mobile/dist/components/ReferalForm/renderLinkInput.js +25 -0
- package/mobile/dist/components/ReferalForm/renderLinkInput.js.map +1 -0
- package/mobile/dist/components/ReferalForm/renderSections.d.ts +3 -0
- package/mobile/dist/components/ReferalForm/renderSections.js +10 -0
- package/mobile/dist/components/ReferalForm/renderSections.js.map +1 -0
- package/mobile/dist/hooks/useDadataParty.js +1 -1
- package/mobile/dist/hooks/useDadataParty.js.map +1 -1
- package/mobile/dist/model/FormTypeFieldDef.d.ts +1 -1
- package/mobile/dist/retail/adaptors/getCreditFormTaskData.d.ts +1 -1
- package/mobile/dist/retail/api/createDraftTask.d.ts +1 -1
- package/mobile/dist/retail/api/createParticipant.d.ts +5 -1
- package/mobile/dist/retail/api/createParticipant.js +1 -1
- package/mobile/dist/retail/api/createParticipant.js.map +1 -1
- package/mobile/dist/retail/api/draftTasksKZO.d.ts +2 -1
- package/mobile/dist/retail/api/draftTasksKZO.js.map +1 -1
- package/mobile/dist/retail/api/getLastTaskStatus.d.ts +2 -1
- package/mobile/dist/retail/api/getLastTaskStatus.js.map +1 -1
- package/mobile/dist/retail/api/getUserTasks.d.ts +2 -40
- package/mobile/dist/retail/api/getUserTasks.js +2 -6
- package/mobile/dist/retail/api/getUserTasks.js.map +1 -1
- package/mobile/dist/retail/api/getUserTasksCard.d.ts +2 -0
- package/mobile/dist/retail/api/getUserTasksCard.js +8 -0
- package/mobile/dist/retail/api/getUserTasksCard.js.map +1 -0
- package/mobile/dist/retail/api/getUserTasksCredit.d.ts +2 -0
- package/mobile/dist/retail/api/getUserTasksCredit.js +9 -0
- package/mobile/dist/retail/api/getUserTasksCredit.js.map +1 -0
- package/mobile/dist/retail/api/getUserTasksDebit.d.ts +2 -0
- package/mobile/dist/retail/api/getUserTasksDebit.js +8 -0
- package/mobile/dist/retail/api/getUserTasksDebit.js.map +1 -0
- package/mobile/dist/retail/api/getUserTasksTypes.d.ts +39 -0
- package/mobile/dist/retail/api/getUserTasksTypes.js +9 -0
- package/mobile/dist/retail/api/getUserTasksTypes.js.map +1 -0
- package/mobile/dist/retail/api/updateUserTask.d.ts +1 -1
- package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -2
- package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +2 -1
- package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.d.ts +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js +4 -2
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js +4 -1
- package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/mobile/dist/retail/hooks/useRetailFormStore.d.ts +2 -1
- package/mobile/lib/api/getSubmitBody.d.ts +4225 -865
- package/mobile/lib/api/getSubmitBody.js +14 -0
- package/mobile/lib/api/getSubmitBody.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +2 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +10 -0
- package/mobile/lib/components/ApplicationForm/Footnote.d.ts +1 -0
- package/mobile/lib/components/ApplicationForm/Footnote.js +1 -1
- package/mobile/lib/components/ApplicationForm/Footnote.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.d.ts +2 -1
- package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +80 -31
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.d.ts +4 -2
- package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.d.ts +3 -2
- package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.js +2 -1
- package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useSendLeadFormAspects.d.ts +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -1
- package/mobile/lib/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -1
- package/mobile/lib/components/ReferalForm/ReferalForm.d.ts +10 -0
- package/mobile/lib/components/ReferalForm/ReferalForm.js +31 -0
- package/mobile/lib/components/ReferalForm/ReferalForm.js.map +1 -0
- package/mobile/lib/components/ReferalForm/ReferalFormContent.d.ts +11 -0
- package/mobile/lib/components/ReferalForm/ReferalFormContent.js +2 -0
- package/mobile/lib/components/ReferalForm/ReferalFormContent.js.map +1 -0
- package/mobile/lib/components/ReferalForm/ResultLink.d.ts +5 -0
- package/mobile/lib/components/ReferalForm/ResultLink.js +10 -0
- package/mobile/lib/components/ReferalForm/ResultLink.js.map +1 -0
- package/mobile/lib/components/ReferalForm/referalFormData.d.ts +2 -0
- package/mobile/lib/components/ReferalForm/referalFormData.js +17 -0
- package/mobile/lib/components/ReferalForm/referalFormData.js.map +1 -0
- package/mobile/lib/components/ReferalForm/renderLinkInput.d.ts +2 -0
- package/mobile/lib/components/ReferalForm/renderLinkInput.js +23 -0
- package/mobile/lib/components/ReferalForm/renderLinkInput.js.map +1 -0
- package/mobile/lib/components/ReferalForm/renderSections.d.ts +3 -0
- package/mobile/lib/components/ReferalForm/renderSections.js +7 -0
- package/mobile/lib/components/ReferalForm/renderSections.js.map +1 -0
- package/mobile/lib/hooks/useDadataParty.js +1 -1
- package/mobile/lib/hooks/useDadataParty.js.map +1 -1
- package/mobile/lib/model/FormTypeFieldDef.d.ts +1 -1
- package/mobile/lib/retail/adaptors/getCreditFormTaskData.d.ts +1 -1
- package/mobile/lib/retail/api/createDraftTask.d.ts +1 -1
- package/mobile/lib/retail/api/createParticipant.d.ts +5 -1
- package/mobile/lib/retail/api/createParticipant.js +1 -1
- package/mobile/lib/retail/api/createParticipant.js.map +1 -1
- package/mobile/lib/retail/api/draftTasksKZO.d.ts +2 -1
- package/mobile/lib/retail/api/draftTasksKZO.js.map +1 -1
- package/mobile/lib/retail/api/getLastTaskStatus.d.ts +2 -1
- package/mobile/lib/retail/api/getLastTaskStatus.js.map +1 -1
- package/mobile/lib/retail/api/getUserTasks.d.ts +2 -40
- package/mobile/lib/retail/api/getUserTasks.js +1 -6
- package/mobile/lib/retail/api/getUserTasks.js.map +1 -1
- package/mobile/lib/retail/api/getUserTasksCard.d.ts +2 -0
- package/mobile/lib/retail/api/getUserTasksCard.js +5 -0
- package/mobile/lib/retail/api/getUserTasksCard.js.map +1 -0
- package/mobile/lib/retail/api/getUserTasksCredit.d.ts +2 -0
- package/mobile/lib/retail/api/getUserTasksCredit.js +6 -0
- package/mobile/lib/retail/api/getUserTasksCredit.js.map +1 -0
- package/mobile/lib/retail/api/getUserTasksDebit.d.ts +2 -0
- package/mobile/lib/retail/api/getUserTasksDebit.js +5 -0
- package/mobile/lib/retail/api/getUserTasksDebit.js.map +1 -0
- package/mobile/lib/retail/api/getUserTasksTypes.d.ts +39 -0
- package/mobile/lib/retail/api/getUserTasksTypes.js +7 -0
- package/mobile/lib/retail/api/getUserTasksTypes.js.map +1 -0
- package/mobile/lib/retail/api/updateUserTask.d.ts +1 -1
- package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -2
- package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +2 -1
- package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.d.ts +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js +4 -2
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js +4 -1
- package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/mobile/lib/retail/hooks/useRetailFormStore.d.ts +2 -1
- package/mobile/src/api/getSubmitBody.ts +17 -0
- package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +38 -0
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +2 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +10 -0
- package/mobile/src/components/ApplicationForm/Footnote.tsx +10 -1
- package/mobile/src/components/ApplicationForm/renderAgreementSubmit.tsx +7 -1
- package/mobile/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +2 -2
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +140 -32
- package/mobile/src/components/ApplicationLeadForm/useLeadFormStore.ts +2 -1
- package/mobile/src/components/ApplicationLeadForm/useSaveUserData.ts +11 -2
- package/mobile/src/components/ApplicationLeadForm/useSendLeadFormAspects.tsx +1 -1
- package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +1 -1
- package/mobile/src/components/DebitForm/getDebitCardFormTaskData.ts +1 -1
- package/mobile/src/components/ReferalForm/ReferalForm.example.json +8 -0
- package/mobile/src/components/ReferalForm/ReferalForm.tsx +78 -0
- package/mobile/src/components/ReferalForm/ReferalForm.ui.json +1 -0
- package/mobile/src/components/ReferalForm/ReferalFormContent.ts +12 -0
- package/mobile/src/components/ReferalForm/ResultLink.tsx +20 -0
- package/mobile/src/components/ReferalForm/referalFormData.ts +18 -0
- package/mobile/src/components/ReferalForm/renderLinkInput.tsx +37 -0
- package/mobile/src/components/ReferalForm/renderSections.tsx +18 -0
- package/mobile/src/hooks/useDadataParty.ts +1 -1
- package/mobile/src/model/FormTypeFieldDef.ts +2 -1
- package/mobile/src/retail/adaptors/getCreditFormTaskData.ts +1 -1
- package/mobile/src/retail/api/createDraftTask.ts +1 -1
- package/mobile/src/retail/api/createParticipant.ts +3 -2
- package/mobile/src/retail/api/draftTasksKZO.ts +2 -1
- package/mobile/src/retail/api/getLastTaskStatus.ts +2 -1
- package/mobile/src/retail/api/getUserTasks.ts +2 -42
- package/mobile/src/retail/api/getUserTasksCard.ts +6 -0
- package/mobile/src/retail/api/getUserTasksCredit.ts +8 -0
- package/mobile/src/retail/api/getUserTasksDebit.ts +6 -0
- package/mobile/src/retail/api/getUserTasksTypes.ts +42 -0
- package/mobile/src/retail/api/updateUserTask.ts +1 -1
- package/mobile/src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx +6 -3
- package/mobile/src/retail/components/DraftDialog/DraftDialog.tsx +5 -3
- package/mobile/src/retail/components/DraftDialog/parseDraftTask.ts +5 -1
- package/package.json +1 -1
- package/src/api/getSubmitBody.ts +17 -0
- package/src/components/ApplicationForm/ApplicationForm.example.json +38 -0
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +36 -0
- package/src/components/ApplicationForm/ApplicationForm.tsx +2 -0
- package/src/components/ApplicationForm/ApplicationFormContent.ts +10 -0
- package/src/components/ApplicationForm/Footnote.tsx +10 -1
- package/src/components/ApplicationForm/renderAgreementSubmit.tsx +7 -1
- package/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +2 -2
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +140 -32
- package/src/components/ApplicationLeadForm/useLeadFormStore.ts +2 -1
- package/src/components/ApplicationLeadForm/useSaveUserData.ts +11 -2
- package/src/components/ApplicationLeadForm/useSendLeadFormAspects.tsx +1 -1
- package/src/components/Blocks.ts +2 -0
- package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +1 -1
- package/src/components/DebitForm/getDebitCardFormTaskData.ts +1 -1
- package/src/components/ReferalForm/ReferalForm.example.json +8 -0
- package/src/components/ReferalForm/ReferalForm.fixture.mobile.tsx +16 -0
- package/src/components/ReferalForm/ReferalForm.fixture.tsx +16 -0
- package/src/components/ReferalForm/ReferalForm.tsx +78 -0
- package/src/components/ReferalForm/ReferalForm.ui.json +1 -0
- package/src/components/ReferalForm/ReferalFormContent.ts +12 -0
- package/src/components/ReferalForm/ResultLink.tsx +20 -0
- package/src/components/ReferalForm/referalFormData.ts +18 -0
- package/src/components/ReferalForm/renderLinkInput.tsx +37 -0
- package/src/components/ReferalForm/renderSections.tsx +18 -0
- package/src/hooks/useDadataParty.ts +1 -1
- package/src/icons/IconName.ts +4 -4
- package/src/model/FormTypeFieldDef.ts +2 -1
- package/src/retail/adaptors/getCreditFormTaskData.ts +1 -1
- package/src/retail/api/createDraftTask.ts +1 -1
- package/src/retail/api/createParticipant.ts +3 -2
- package/src/retail/api/draftTasksKZO.ts +2 -1
- package/src/retail/api/getLastTaskStatus.ts +2 -1
- package/src/retail/api/getUserTasks.ts +2 -42
- package/src/retail/api/getUserTasksCard.ts +6 -0
- package/src/retail/api/getUserTasksCredit.ts +8 -0
- package/src/retail/api/getUserTasksDebit.ts +6 -0
- package/src/retail/api/getUserTasksTypes.ts +42 -0
- package/src/retail/api/updateUserTask.ts +1 -1
- package/src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx +6 -3
- package/src/retail/components/DraftDialog/DraftDialog.tsx +5 -3
- package/src/retail/components/DraftDialog/parseDraftTask.ts +5 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
3
|
+
import { renderLinkInput } from './renderLinkInput';
|
|
4
|
+
|
|
5
|
+
type ResultLinkProps = {
|
|
6
|
+
link: string;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export const ResultLink = JSX<ResultLinkProps>(({ link }) => {
|
|
10
|
+
return (
|
|
11
|
+
<div>
|
|
12
|
+
<div className="@xl:text-center @xl:col-span-2 mb-m">
|
|
13
|
+
<Text size="text-h6">Скопируйте ссылку и отправьте другу</Text>
|
|
14
|
+
</div>
|
|
15
|
+
{renderLinkInput({
|
|
16
|
+
value: link,
|
|
17
|
+
})}
|
|
18
|
+
</div>
|
|
19
|
+
);
|
|
20
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type SectionsProps } from '../../model/InputSectionsType';
|
|
2
|
+
|
|
3
|
+
export const sections: SectionsProps[] = [
|
|
4
|
+
{ title: 'Заполните ваши данные и получите персональную ссылку', inputs: [] },
|
|
5
|
+
{
|
|
6
|
+
columns: 2,
|
|
7
|
+
inputs: [
|
|
8
|
+
{
|
|
9
|
+
name: 'dadataPartyInnSelect',
|
|
10
|
+
required: true,
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
name: 'email',
|
|
14
|
+
required: true,
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
];
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { type Picture } from '../../model/Picture';
|
|
4
|
+
import { Img } from '../../ui-kit/Img/Img';
|
|
5
|
+
import { type InputProps } from '../../ui-kit/Input/InputProps';
|
|
6
|
+
import { defaultStyle } from '../../ui-kit/Input/styles';
|
|
7
|
+
import { style } from '../../utils/style';
|
|
8
|
+
|
|
9
|
+
const icon: Picture = {
|
|
10
|
+
src: 'CopyIcon.svg',
|
|
11
|
+
iconVersion: 'normal',
|
|
12
|
+
size: { width: 20 },
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const renderLinkInput = JSX<InputProps>(({ className, value = '' }) => {
|
|
16
|
+
const onClick = useCallback(async () => {
|
|
17
|
+
try {
|
|
18
|
+
await globalThis.navigator.clipboard.writeText(value);
|
|
19
|
+
} catch {
|
|
20
|
+
console.log('Ошибка копирования');
|
|
21
|
+
}
|
|
22
|
+
}, []);
|
|
23
|
+
|
|
24
|
+
return (
|
|
25
|
+
<div className={style('relative flex items-center max-w-lg m-auto', className)}>
|
|
26
|
+
<input
|
|
27
|
+
className={style('h-14 border-gray text-ellipsis pr-5xl', defaultStyle)}
|
|
28
|
+
type="text"
|
|
29
|
+
value={value}
|
|
30
|
+
disabled={true}
|
|
31
|
+
/>
|
|
32
|
+
<div role="button" className="absolute right-3" onClick={onClick}>
|
|
33
|
+
<Img image={icon} />
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
);
|
|
37
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { FormFieldRegisterer } from '../../hooks/useForm/useForm';
|
|
2
|
+
import type { SectionsProps } from '../../model/InputSectionsType';
|
|
3
|
+
import { getField } from '../../ui-kit/FormField/getField';
|
|
4
|
+
import { inputColumnStyles } from '../../ui-kit/FormField/inputColumnStyle';
|
|
5
|
+
import { renderTitle } from '../../ui-kit/FormField/renderTitle';
|
|
6
|
+
import { style } from '../../utils/style';
|
|
7
|
+
import { type FieldDef } from '../ApplicationForm/ApplicationFormContent';
|
|
8
|
+
|
|
9
|
+
export const renderSections = (
|
|
10
|
+
sections: SectionsProps[],
|
|
11
|
+
field: FormFieldRegisterer<Record<string, any>>,
|
|
12
|
+
) =>
|
|
13
|
+
sections.map((_, i) => (
|
|
14
|
+
<div key={`section-${i}`} className={style(inputColumnStyles(_.columns), 'grid')}>
|
|
15
|
+
{renderTitle(_.title)}
|
|
16
|
+
{(_?.inputs || [])?.map(getField<FieldDef>(field))}
|
|
17
|
+
</div>
|
|
18
|
+
));
|
|
@@ -9,7 +9,7 @@ export interface DaDataPartyHint {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export const useDadataParty = async (searchQuery: string): Promise<DaDataPartyHint[]> =>
|
|
12
|
-
(await getDaDataHints({ url: INN_DADATA_URL, query: searchQuery }))
|
|
12
|
+
(await getDaDataHints({ url: INN_DADATA_URL, query: searchQuery }))?.map((_) => ({
|
|
13
13
|
fullName: _?.value,
|
|
14
14
|
address: _?.data?.address?.value,
|
|
15
15
|
inn: _?.data?.inn,
|
|
@@ -10,7 +10,7 @@ import { getFamilyStatusAndIncomeData } from './getFamilyStatusAndIncomeData';
|
|
|
10
10
|
import { getPersonalInfoData } from './getPersonalInfoData';
|
|
11
11
|
|
|
12
12
|
type getCreditFormTaskDataProps = {
|
|
13
|
-
participantId: Nullable<number>;
|
|
13
|
+
participantId: Nullable<string | number>;
|
|
14
14
|
taskId: number;
|
|
15
15
|
profileId: Nullable<number>;
|
|
16
16
|
formData: LeadFormState;
|
|
@@ -6,7 +6,8 @@ interface CreateParticipantType {
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
interface CreateParticipantResponseType {
|
|
9
|
-
participantId:
|
|
9
|
+
participantId: string;
|
|
10
|
+
userId?: string;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
export const createParticipant = (body: CreateParticipantType) =>
|
|
@@ -14,4 +15,4 @@ export const createParticipant = (body: CreateParticipantType) =>
|
|
|
14
15
|
'/public-data/createParticipant',
|
|
15
16
|
'POST',
|
|
16
17
|
body,
|
|
17
|
-
).then((res) => res
|
|
18
|
+
).then((res) => res || null);
|
|
@@ -1,47 +1,7 @@
|
|
|
1
1
|
import { fetchRetailJSON } from './doRequest';
|
|
2
|
+
import { type GetUserTasksResponse } from './getUserTasksTypes';
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
-
CASH = 'CASH',
|
|
5
|
-
CARD = 'CARD',
|
|
6
|
-
DEBIT = 'DEBIT',
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export type UserTask = {
|
|
10
|
-
classCard?: {
|
|
11
|
-
key: string;
|
|
12
|
-
value: string;
|
|
13
|
-
};
|
|
14
|
-
createdDate?: string;
|
|
15
|
-
creditPeriod?: number;
|
|
16
|
-
deliveryAddress?: string;
|
|
17
|
-
extId?: string;
|
|
18
|
-
id?: number;
|
|
19
|
-
loanAmount?: number;
|
|
20
|
-
officeAddress?: string;
|
|
21
|
-
programId?: number;
|
|
22
|
-
programName?: string;
|
|
23
|
-
statusCd?: {
|
|
24
|
-
key: string;
|
|
25
|
-
value: string;
|
|
26
|
-
};
|
|
27
|
-
statusDescription?: string;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
type AllTasks = {
|
|
31
|
-
productTypeCd: {
|
|
32
|
-
key: EProductType;
|
|
33
|
-
value: string;
|
|
34
|
-
};
|
|
35
|
-
tasks: Array<UserTask>;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export type GetUserTasksResponse = {
|
|
39
|
-
allTasks?: Array<AllTasks>;
|
|
40
|
-
user?: {
|
|
41
|
-
name: string;
|
|
42
|
-
midname: string;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
4
|
+
export { EProductType, type GetUserTasksResponse, type UserTask } from './getUserTasksTypes';
|
|
45
5
|
|
|
46
6
|
export const getUserTasks = async (): Promise<GetUserTasksResponse | undefined> => {
|
|
47
7
|
const res = await fetchRetailJSON<GetUserTasksResponse>('/user-data/getUserTasks', 'GET');
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { fetchRetailJSON } from './doRequest';
|
|
2
|
+
import { type GetUserTasksResponse } from './getUserTasksTypes';
|
|
3
|
+
|
|
4
|
+
export const getUserTasksCredit = async (): Promise<GetUserTasksResponse | undefined> => {
|
|
5
|
+
const res = await fetchRetailJSON<GetUserTasksResponse>('/public-data/getUserTasksCredit', 'GET');
|
|
6
|
+
|
|
7
|
+
return res || undefined;
|
|
8
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export enum EProductType {
|
|
2
|
+
CASH = 'CASH',
|
|
3
|
+
CARD = 'CARD',
|
|
4
|
+
DEBIT = 'DEBIT',
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export type UserTask = {
|
|
8
|
+
classCard?: {
|
|
9
|
+
key: string;
|
|
10
|
+
value: string;
|
|
11
|
+
};
|
|
12
|
+
createdDate?: string;
|
|
13
|
+
creditPeriod?: number;
|
|
14
|
+
deliveryAddress?: string;
|
|
15
|
+
extId?: string;
|
|
16
|
+
id?: number;
|
|
17
|
+
loanAmount?: number;
|
|
18
|
+
officeAddress?: string;
|
|
19
|
+
programId?: number;
|
|
20
|
+
programName?: string;
|
|
21
|
+
statusCd?: {
|
|
22
|
+
key: string;
|
|
23
|
+
value: string;
|
|
24
|
+
};
|
|
25
|
+
statusDescription?: string;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export type AllTasks = {
|
|
29
|
+
productTypeCd: {
|
|
30
|
+
key: EProductType;
|
|
31
|
+
value: string;
|
|
32
|
+
};
|
|
33
|
+
tasks: Array<UserTask>;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export type GetUserTasksResponse = {
|
|
37
|
+
allTasks?: Array<AllTasks>;
|
|
38
|
+
user?: {
|
|
39
|
+
name: string;
|
|
40
|
+
midname: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
@@ -7,9 +7,10 @@ import { ConsentBkiDialog } from './ConsentBkiDialog';
|
|
|
7
7
|
type SubmitBkiConsentProps = {
|
|
8
8
|
phone?: string;
|
|
9
9
|
profileId?: number;
|
|
10
|
+
userId?: string | number;
|
|
10
11
|
onFail?: () => void;
|
|
11
12
|
taskId?: number;
|
|
12
|
-
participantId?: number;
|
|
13
|
+
participantId?: string | number;
|
|
13
14
|
};
|
|
14
15
|
|
|
15
16
|
export const useConsentBkiDialog = (onClose: () => void) => {
|
|
@@ -17,7 +18,8 @@ export const useConsentBkiDialog = (onClose: () => void) => {
|
|
|
17
18
|
const verifyPhoneDialog = useDialog(VerifyPhoneDialog);
|
|
18
19
|
|
|
19
20
|
const handleSuccessVerify =
|
|
20
|
-
(profileId?: number, taskId?: number, participantId?:
|
|
21
|
+
(profileId?: number, taskId?: number, participantId?: string | number) =>
|
|
22
|
+
async (smsCode?: string) => {
|
|
21
23
|
try {
|
|
22
24
|
if (profileId) {
|
|
23
25
|
await updateUserProfile({
|
|
@@ -64,11 +66,12 @@ export const useConsentBkiDialog = (onClose: () => void) => {
|
|
|
64
66
|
};
|
|
65
67
|
|
|
66
68
|
return {
|
|
67
|
-
open: ({ phone, profileId, onFail, taskId, participantId }: SubmitBkiConsentProps) =>
|
|
69
|
+
open: ({ phone, profileId, userId, onFail, taskId, participantId }: SubmitBkiConsentProps) =>
|
|
68
70
|
open({
|
|
69
71
|
onSubmit: handleSubmitBkiConsent({
|
|
70
72
|
phone,
|
|
71
73
|
profileId,
|
|
74
|
+
userId,
|
|
72
75
|
onFail,
|
|
73
76
|
taskId,
|
|
74
77
|
participantId,
|
|
@@ -17,7 +17,7 @@ export interface DraftDialogProps extends OnCloseProps {
|
|
|
17
17
|
task: Task;
|
|
18
18
|
isFromLead?: boolean;
|
|
19
19
|
isDebit?: boolean;
|
|
20
|
-
sendAspects?: (
|
|
20
|
+
sendAspects?: (userId: number, taskId: number) => void;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export const DraftDialog = JSX<DraftDialogProps>(function ({
|
|
@@ -30,19 +30,21 @@ export const DraftDialog = JSX<DraftDialogProps>(function ({
|
|
|
30
30
|
const retailFormStore = useRetailFormStore();
|
|
31
31
|
const navigator = locationNavigator();
|
|
32
32
|
|
|
33
|
-
const { participants, creditProgram, createdDate = '', id: taskId } = task;
|
|
33
|
+
const { participants, participant, creditProgram, createdDate = '', id: taskId } = task;
|
|
34
34
|
|
|
35
35
|
const programmId: string = creditProgramCodeToProductIdMap[creditProgram.code];
|
|
36
36
|
const isCredit = Boolean(creditCodesToProgrammIdMap[creditProgram.code]);
|
|
37
37
|
const productData = getProductData(isDebit, isCredit);
|
|
38
38
|
|
|
39
|
-
const
|
|
39
|
+
const currentParticipant = participant || participants?.[0];
|
|
40
|
+
const { id: participantId, profile } = currentParticipant || {};
|
|
40
41
|
|
|
41
42
|
const handleGoToDraft = useCallback(() => {
|
|
42
43
|
const taskFromDraft = parseDraftTask(task);
|
|
43
44
|
retailFormStore.participantId = participantId ?? null;
|
|
44
45
|
retailFormStore.taskId = taskId;
|
|
45
46
|
retailFormStore.profileId = profile?.id ?? null;
|
|
47
|
+
retailFormStore.userId = profile?.id ?? null;
|
|
46
48
|
retailFormStore.programId = programmId;
|
|
47
49
|
retailFormStore.leadForm = taskFromDraft;
|
|
48
50
|
|
|
@@ -11,7 +11,11 @@ import {
|
|
|
11
11
|
} from './utils';
|
|
12
12
|
|
|
13
13
|
export const parseDraftTask = (task: Task): LeadFormState => {
|
|
14
|
-
const participant = task.participants[0];
|
|
14
|
+
const participant = task.participant || task.participants?.[0];
|
|
15
|
+
if (!participant) {
|
|
16
|
+
throw new Error('Task does not contain participant data');
|
|
17
|
+
}
|
|
18
|
+
|
|
15
19
|
const {
|
|
16
20
|
classCard: cardCategory,
|
|
17
21
|
codeWord,
|
package/package.json
CHANGED
package/src/api/getSubmitBody.ts
CHANGED
|
@@ -73,6 +73,7 @@ export const getSubmitBody = ({ body, endpoint, router }: submitBodyProps) => {
|
|
|
73
73
|
}),
|
|
74
74
|
...getRkoTariffName(typeForm),
|
|
75
75
|
...staticBody,
|
|
76
|
+
...getReferalRkoData(body, typeForm),
|
|
76
77
|
};
|
|
77
78
|
};
|
|
78
79
|
|
|
@@ -124,3 +125,19 @@ const getRkoTariffName = (typeForm?: string) =>
|
|
|
124
125
|
partnerComments: globalThis?.sessionStorage.getItem('rkoTariffName') ?? 'Неизвестный тариф',
|
|
125
126
|
}
|
|
126
127
|
: {};
|
|
128
|
+
|
|
129
|
+
const getReferalRkoData = (body: LeadRequest, typeForm?: string) => {
|
|
130
|
+
const params = new URLSearchParams(decodeURIComponent(globalThis.location?.search));
|
|
131
|
+
|
|
132
|
+
const partnerComments = params.get('utm_mail');
|
|
133
|
+
const partner = params.get('utm_source');
|
|
134
|
+
|
|
135
|
+
return typeForm === 'REF'
|
|
136
|
+
? {
|
|
137
|
+
name: body.fullName,
|
|
138
|
+
fullName: undefined,
|
|
139
|
+
partnerComments,
|
|
140
|
+
partner,
|
|
141
|
+
}
|
|
142
|
+
: {};
|
|
143
|
+
};
|
|
@@ -1841,5 +1841,43 @@
|
|
|
1841
1841
|
}
|
|
1842
1842
|
}
|
|
1843
1843
|
}
|
|
1844
|
+
],
|
|
1845
|
+
[
|
|
1846
|
+
"Заявка на РКО по ссылке друга",
|
|
1847
|
+
{
|
|
1848
|
+
"content": {
|
|
1849
|
+
"version": "primary",
|
|
1850
|
+
"padding": "",
|
|
1851
|
+
"title": "Открыть счёт РКО",
|
|
1852
|
+
"typeForm": "REF",
|
|
1853
|
+
"endpoint": "sendcorporatelead",
|
|
1854
|
+
"sections": [
|
|
1855
|
+
{
|
|
1856
|
+
"inputs": [{ "name": "fullName", "required": true, "label": "ФИО" }]
|
|
1857
|
+
},
|
|
1858
|
+
{
|
|
1859
|
+
"columns": 2,
|
|
1860
|
+
"inputs": [
|
|
1861
|
+
{ "name": "phone", "required": true },
|
|
1862
|
+
{ "name": "email", "required": true }
|
|
1863
|
+
]
|
|
1864
|
+
}
|
|
1865
|
+
],
|
|
1866
|
+
"button": {
|
|
1867
|
+
"text": "Открыть счет",
|
|
1868
|
+
"version": "primary"
|
|
1869
|
+
},
|
|
1870
|
+
"link": {
|
|
1871
|
+
"text": "условиями передачи данных",
|
|
1872
|
+
"href": "/privacy-policy",
|
|
1873
|
+
"target": "_blank"
|
|
1874
|
+
},
|
|
1875
|
+
"additionalLink": {
|
|
1876
|
+
"text": "условиями проведения акции",
|
|
1877
|
+
"href": "/promo-link",
|
|
1878
|
+
"target": "_blank"
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
}
|
|
1844
1882
|
]
|
|
1845
1883
|
]
|
|
@@ -29,6 +29,12 @@ const linkCorpAgent: LinkProps = {
|
|
|
29
29
|
target: '_blank',
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
+
const linkPromo: LinkProps = {
|
|
33
|
+
text: 'условиями проведения акции',
|
|
34
|
+
href: '/promo-link',
|
|
35
|
+
target: '_blank',
|
|
36
|
+
};
|
|
37
|
+
|
|
32
38
|
export default {
|
|
33
39
|
default: (
|
|
34
40
|
<div className="container grid grid-cols-12">
|
|
@@ -1151,4 +1157,34 @@ export default {
|
|
|
1151
1157
|
<DialogManager />
|
|
1152
1158
|
</div>
|
|
1153
1159
|
),
|
|
1160
|
+
referalRko: (
|
|
1161
|
+
<div className="container grid grid-cols-12">
|
|
1162
|
+
<ApplicationForm
|
|
1163
|
+
className="col-span-12"
|
|
1164
|
+
title="Заявка на РКО по ссылке друга"
|
|
1165
|
+
typeForm="REF"
|
|
1166
|
+
endpoint="sendcorporatelead"
|
|
1167
|
+
sections={[
|
|
1168
|
+
{
|
|
1169
|
+
inputs: [{ name: 'fullName', required: true, label: 'ФИО' }],
|
|
1170
|
+
},
|
|
1171
|
+
{
|
|
1172
|
+
columns: 2,
|
|
1173
|
+
inputs: [
|
|
1174
|
+
{ name: 'phone', required: true },
|
|
1175
|
+
{ name: 'email', required: true },
|
|
1176
|
+
],
|
|
1177
|
+
},
|
|
1178
|
+
]}
|
|
1179
|
+
button={{
|
|
1180
|
+
text: 'Открыть счет',
|
|
1181
|
+
version: 'primary',
|
|
1182
|
+
}}
|
|
1183
|
+
link={linkCorp}
|
|
1184
|
+
additionalLink={linkPromo}
|
|
1185
|
+
/>
|
|
1186
|
+
<PopupManager />
|
|
1187
|
+
<DialogManager />
|
|
1188
|
+
</div>
|
|
1189
|
+
),
|
|
1154
1190
|
};
|
|
@@ -51,6 +51,7 @@ export const ApplicationForm = UniBlock<ApplicationFormProps>(
|
|
|
51
51
|
sections = [],
|
|
52
52
|
button,
|
|
53
53
|
link,
|
|
54
|
+
additionalLink,
|
|
54
55
|
endpoint,
|
|
55
56
|
additionalParams,
|
|
56
57
|
withSnowplow,
|
|
@@ -117,6 +118,7 @@ export const ApplicationForm = UniBlock<ApplicationFormProps>(
|
|
|
117
118
|
{renderAgreementSubmit({
|
|
118
119
|
consentDataProcessing,
|
|
119
120
|
link,
|
|
121
|
+
additionalLink,
|
|
120
122
|
button,
|
|
121
123
|
typeForm,
|
|
122
124
|
})}
|
|
@@ -116,6 +116,16 @@ export type ApplicationFormContent = UniBlockContent &
|
|
|
116
116
|
/** @default "" */
|
|
117
117
|
target?: Target;
|
|
118
118
|
};
|
|
119
|
+
/**
|
|
120
|
+
* @title Условия проведения акции
|
|
121
|
+
* @required ["text", "href"]
|
|
122
|
+
*/
|
|
123
|
+
additionalLink?: TextProps & {
|
|
124
|
+
/** @title URL (href) */
|
|
125
|
+
href?: string;
|
|
126
|
+
/** @default "" */
|
|
127
|
+
target?: Target;
|
|
128
|
+
};
|
|
119
129
|
typeForm?: FormTypeFieldDef;
|
|
120
130
|
endpoint?: EndpointType;
|
|
121
131
|
/** @title Дополнительные параметры формы */
|
|
@@ -7,9 +7,10 @@ import { Text } from '../../ui-kit/Text/Text';
|
|
|
7
7
|
|
|
8
8
|
type FootnoteProps = TextProps & {
|
|
9
9
|
link?: LinkProps;
|
|
10
|
+
additionalLink?: LinkProps;
|
|
10
11
|
};
|
|
11
12
|
|
|
12
|
-
export const Footnote = JSX<FootnoteProps>(({ text, link }) => (
|
|
13
|
+
export const Footnote = JSX<FootnoteProps>(({ text, link, additionalLink }) => (
|
|
13
14
|
<Paragraph size="text-l" font="font-light" color="text-secondary-text">
|
|
14
15
|
{text ? <Text>{text}</Text> : null}
|
|
15
16
|
{link ? (
|
|
@@ -17,5 +18,13 @@ export const Footnote = JSX<FootnoteProps>(({ text, link }) => (
|
|
|
17
18
|
{link.text}
|
|
18
19
|
</Link>
|
|
19
20
|
) : null}
|
|
21
|
+
{additionalLink ? (
|
|
22
|
+
<Text>
|
|
23
|
+
{' и '}
|
|
24
|
+
<Link {...additionalLink} ariaLabel="условия проведения акции">
|
|
25
|
+
{additionalLink.text}
|
|
26
|
+
</Link>
|
|
27
|
+
</Text>
|
|
28
|
+
) : null}
|
|
20
29
|
</Paragraph>
|
|
21
30
|
));
|
|
@@ -14,11 +14,13 @@ const agreementTextPF = 'Нажимая на кнопку, вы подтверж
|
|
|
14
14
|
export const renderAgreementSubmit = ({
|
|
15
15
|
consentDataProcessing,
|
|
16
16
|
link,
|
|
17
|
+
additionalLink,
|
|
17
18
|
button,
|
|
18
19
|
typeForm,
|
|
19
20
|
}: {
|
|
20
21
|
consentDataProcessing?: FieldProps<boolean>;
|
|
21
22
|
link?: LinkProps;
|
|
23
|
+
additionalLink?: LinkProps;
|
|
22
24
|
button?: SubmitButtonProps;
|
|
23
25
|
typeForm?: string;
|
|
24
26
|
}) => (
|
|
@@ -32,7 +34,11 @@ export const renderAgreementSubmit = ({
|
|
|
32
34
|
{renderErrorText(withValidator(consentDataProcessing, agreementValidator).error)}
|
|
33
35
|
</div>
|
|
34
36
|
) : (
|
|
35
|
-
<Footnote
|
|
37
|
+
<Footnote
|
|
38
|
+
text={typeForm === 'PF' ? agreementTextPF : agreementText}
|
|
39
|
+
link={link}
|
|
40
|
+
additionalLink={additionalLink}
|
|
41
|
+
/>
|
|
36
42
|
)}
|
|
37
43
|
<SubmitButton className="w-full @xl:w-auto">
|
|
38
44
|
{button?.text ? button.text : 'Отправить заявку'}
|
|
@@ -12,7 +12,7 @@ import { type Nullable } from '../../utils/Nullable';
|
|
|
12
12
|
import { debitProgrammIdToCardCodesMap } from '../DebitForm/utils';
|
|
13
13
|
|
|
14
14
|
type getCreditLeadFormTaskDataProps = {
|
|
15
|
-
participantId: number;
|
|
15
|
+
participantId: string | number;
|
|
16
16
|
taskId: number;
|
|
17
17
|
profileId?: number;
|
|
18
18
|
formData: LeadFormState;
|
|
@@ -28,7 +28,7 @@ type getDebitLeadFormTaskDataProps = {
|
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
type getParticipantProps = {
|
|
31
|
-
participantId: number;
|
|
31
|
+
participantId: number | string;
|
|
32
32
|
profileId?: number;
|
|
33
33
|
formData: LeadFormState;
|
|
34
34
|
consents?: FormRetailConsents;
|