@redneckz/wildless-cms-uni-blocks 0.14.1027 → 0.14.1029
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/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +251 -119
- package/bundle/bundle.umd.min.js +1 -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/RatesTable/RatesTable.d.ts +6 -0
- package/bundle/components/RatesTable/RatesTableContent.d.ts +12 -0
- package/bundle/components/RatesTable/RatesTableItem.d.ts +9 -0
- package/bundle/components/RatesTable/renderDataPickForm.d.ts +1 -0
- package/bundle/components/RatesTable/renderDate.d.ts +6 -0
- package/bundle/components/RatesTable/renderLink.d.ts +1 -0
- package/bundle/hooks/useRates.d.ts +4 -0
- 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/bundle/ui-kit/Rate/Rate.d.ts +12 -0
- 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/Blocks.mobile.js +2 -0
- package/dist/components/Blocks.mobile.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/RatesTable/RatesTable.d.ts +6 -0
- package/dist/components/RatesTable/RatesTable.js +17 -0
- package/dist/components/RatesTable/RatesTable.js.map +1 -0
- package/dist/components/RatesTable/RatesTableContent.d.ts +12 -0
- package/dist/components/RatesTable/RatesTableContent.js +2 -0
- package/dist/components/RatesTable/RatesTableContent.js.map +1 -0
- package/dist/components/RatesTable/RatesTableItem.d.ts +9 -0
- package/dist/components/RatesTable/RatesTableItem.js +16 -0
- package/dist/components/RatesTable/RatesTableItem.js.map +1 -0
- package/dist/components/RatesTable/renderDataPickForm.d.ts +1 -0
- package/dist/components/RatesTable/renderDataPickForm.js +8 -0
- package/dist/components/RatesTable/renderDataPickForm.js.map +1 -0
- package/dist/components/RatesTable/renderDate.d.ts +6 -0
- package/dist/components/RatesTable/renderDate.js +24 -0
- package/dist/components/RatesTable/renderDate.js.map +1 -0
- package/dist/components/RatesTable/renderLink.d.ts +1 -0
- package/dist/components/RatesTable/renderLink.js +8 -0
- package/dist/components/RatesTable/renderLink.js.map +1 -0
- package/dist/hooks/useRates.d.ts +4 -0
- package/dist/hooks/useRates.js +42 -0
- package/dist/hooks/useRates.js.map +1 -0
- 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/dist/ui-kit/Rate/Rate.d.ts +12 -0
- package/dist/ui-kit/Rate/Rate.js +11 -0
- package/dist/ui-kit/Rate/Rate.js.map +1 -0
- package/lib/common.css +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/Blocks.mobile.js +2 -0
- package/lib/components/Blocks.mobile.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/RatesTable/RatesTable.d.ts +6 -0
- package/lib/components/RatesTable/RatesTable.fixture.d.ts +6 -0
- package/lib/components/RatesTable/RatesTable.fixture.mobile.d.ts +6 -0
- package/lib/components/RatesTable/RatesTable.js +15 -0
- package/lib/components/RatesTable/RatesTable.js.map +1 -0
- package/lib/components/RatesTable/RatesTableContent.d.ts +12 -0
- package/lib/components/RatesTable/RatesTableContent.js +2 -0
- package/lib/components/RatesTable/RatesTableContent.js.map +1 -0
- package/lib/components/RatesTable/RatesTableItem.d.ts +9 -0
- package/lib/components/RatesTable/RatesTableItem.js +14 -0
- package/lib/components/RatesTable/RatesTableItem.js.map +1 -0
- package/lib/components/RatesTable/renderDataPickForm.d.ts +1 -0
- package/lib/components/RatesTable/renderDataPickForm.js +5 -0
- package/lib/components/RatesTable/renderDataPickForm.js.map +1 -0
- package/lib/components/RatesTable/renderDate.d.ts +6 -0
- package/lib/components/RatesTable/renderDate.js +21 -0
- package/lib/components/RatesTable/renderDate.js.map +1 -0
- package/lib/components/RatesTable/renderLink.d.ts +1 -0
- package/lib/components/RatesTable/renderLink.js +5 -0
- package/lib/components/RatesTable/renderLink.js.map +1 -0
- package/lib/hooks/useRates.d.ts +4 -0
- package/lib/hooks/useRates.js +39 -0
- package/lib/hooks/useRates.js.map +1 -0
- 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/lib/ui-kit/Rate/Rate.d.ts +12 -0
- package/lib/ui-kit/Rate/Rate.js +9 -0
- package/lib/ui-kit/Rate/Rate.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +216 -84
- package/mobile/bundle/bundle.umd.min.js +1 -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/RatesTable/RatesTable.d.ts +6 -0
- package/mobile/bundle/components/RatesTable/RatesTableContent.d.ts +12 -0
- package/mobile/bundle/components/RatesTable/RatesTableItem.d.ts +9 -0
- package/mobile/bundle/components/RatesTable/renderDataPickForm.d.ts +1 -0
- package/mobile/bundle/components/RatesTable/renderDate.d.ts +6 -0
- package/mobile/bundle/components/RatesTable/renderLink.d.ts +1 -0
- package/mobile/bundle/hooks/useRates.d.ts +4 -0
- 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/bundle/ui-kit/Rate/Rate.d.ts +12 -0
- 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/Blocks.js +2 -0
- package/mobile/dist/components/Blocks.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/RatesTable/RatesTable.d.ts +6 -0
- package/mobile/dist/components/RatesTable/RatesTable.js +17 -0
- package/mobile/dist/components/RatesTable/RatesTable.js.map +1 -0
- package/mobile/dist/components/RatesTable/RatesTableContent.d.ts +12 -0
- package/mobile/dist/components/RatesTable/RatesTableContent.js +2 -0
- package/mobile/dist/components/RatesTable/RatesTableContent.js.map +1 -0
- package/mobile/dist/components/RatesTable/RatesTableItem.d.ts +9 -0
- package/mobile/dist/components/RatesTable/RatesTableItem.js +16 -0
- package/mobile/dist/components/RatesTable/RatesTableItem.js.map +1 -0
- package/mobile/dist/components/RatesTable/renderDataPickForm.d.ts +1 -0
- package/mobile/dist/components/RatesTable/renderDataPickForm.js +8 -0
- package/mobile/dist/components/RatesTable/renderDataPickForm.js.map +1 -0
- package/mobile/dist/components/RatesTable/renderDate.d.ts +6 -0
- package/mobile/dist/components/RatesTable/renderDate.js +24 -0
- package/mobile/dist/components/RatesTable/renderDate.js.map +1 -0
- package/mobile/dist/components/RatesTable/renderLink.d.ts +1 -0
- package/mobile/dist/components/RatesTable/renderLink.js +8 -0
- package/mobile/dist/components/RatesTable/renderLink.js.map +1 -0
- package/mobile/dist/hooks/useRates.d.ts +4 -0
- package/mobile/dist/hooks/useRates.js +42 -0
- package/mobile/dist/hooks/useRates.js.map +1 -0
- 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/dist/ui-kit/Rate/Rate.d.ts +12 -0
- package/mobile/dist/ui-kit/Rate/Rate.js +11 -0
- package/mobile/dist/ui-kit/Rate/Rate.js.map +1 -0
- package/mobile/lib/common.css +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/Blocks.js +2 -0
- package/mobile/lib/components/Blocks.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/RatesTable/RatesTable.d.ts +6 -0
- package/mobile/lib/components/RatesTable/RatesTable.js +15 -0
- package/mobile/lib/components/RatesTable/RatesTable.js.map +1 -0
- package/mobile/lib/components/RatesTable/RatesTableContent.d.ts +12 -0
- package/mobile/lib/components/RatesTable/RatesTableContent.js +2 -0
- package/mobile/lib/components/RatesTable/RatesTableContent.js.map +1 -0
- package/mobile/lib/components/RatesTable/RatesTableItem.d.ts +9 -0
- package/mobile/lib/components/RatesTable/RatesTableItem.js +14 -0
- package/mobile/lib/components/RatesTable/RatesTableItem.js.map +1 -0
- package/mobile/lib/components/RatesTable/renderDataPickForm.d.ts +1 -0
- package/mobile/lib/components/RatesTable/renderDataPickForm.js +5 -0
- package/mobile/lib/components/RatesTable/renderDataPickForm.js.map +1 -0
- package/mobile/lib/components/RatesTable/renderDate.d.ts +6 -0
- package/mobile/lib/components/RatesTable/renderDate.js +21 -0
- package/mobile/lib/components/RatesTable/renderDate.js.map +1 -0
- package/mobile/lib/components/RatesTable/renderLink.d.ts +1 -0
- package/mobile/lib/components/RatesTable/renderLink.js +5 -0
- package/mobile/lib/components/RatesTable/renderLink.js.map +1 -0
- package/mobile/lib/hooks/useRates.d.ts +4 -0
- package/mobile/lib/hooks/useRates.js +39 -0
- package/mobile/lib/hooks/useRates.js.map +1 -0
- 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/lib/ui-kit/Rate/Rate.d.ts +12 -0
- package/mobile/lib/ui-kit/Rate/Rate.js +9 -0
- package/mobile/lib/ui-kit/Rate/Rate.js.map +1 -0
- 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/Blocks.ts +2 -0
- package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +1 -1
- package/mobile/src/components/DebitForm/getDebitCardFormTaskData.ts +1 -1
- package/mobile/src/components/RatesTable/RatesTable.example.json +7 -0
- package/mobile/src/components/RatesTable/RatesTable.tsx +38 -0
- package/mobile/src/components/RatesTable/RatesTable.ui.json +7 -0
- package/mobile/src/components/RatesTable/RatesTableContent.ts +13 -0
- package/mobile/src/components/RatesTable/RatesTableItem.tsx +39 -0
- package/mobile/src/components/RatesTable/renderDataPickForm.tsx +9 -0
- package/mobile/src/components/RatesTable/renderDate.tsx +42 -0
- package/mobile/src/components/RatesTable/renderLink.tsx +8 -0
- package/mobile/src/hooks/useRates.ts +65 -0
- 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/mobile/src/ui-kit/Rate/Rate.tsx +27 -0
- package/package.json +1 -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.mobile.ts +2 -0
- 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/RatesTable/RatesTable.example.json +7 -0
- package/src/components/RatesTable/RatesTable.fixture.mobile.tsx +26 -0
- package/src/components/RatesTable/RatesTable.fixture.tsx +26 -0
- package/src/components/RatesTable/RatesTable.tsx +38 -0
- package/src/components/RatesTable/RatesTable.ui.json +7 -0
- package/src/components/RatesTable/RatesTableContent.ts +13 -0
- package/src/components/RatesTable/RatesTableItem.tsx +39 -0
- package/src/components/RatesTable/renderDataPickForm.tsx +9 -0
- package/src/components/RatesTable/renderDate.tsx +42 -0
- package/src/components/RatesTable/renderLink.tsx +8 -0
- package/src/hooks/useRates.ts +65 -0
- package/src/icons/IconName.ts +4 -4
- 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
- package/src/ui-kit/Rate/Rate.tsx +27 -0
|
@@ -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,
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DIVIDER_STYLE } from '../../components/TariffsTable/TariffsTableRowContainer';
|
|
2
|
+
import { UniBlock } from '../../UniBlock/UniBlock';
|
|
3
|
+
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
4
|
+
import { style } from '../../utils/style';
|
|
5
|
+
|
|
6
|
+
export type RateItem = {
|
|
7
|
+
currencyPair?: string;
|
|
8
|
+
buyRate?: number;
|
|
9
|
+
sellRate?: number;
|
|
10
|
+
lastUpdatedAt?: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
interface RateProps extends RateItem, UniBlockProps {}
|
|
14
|
+
|
|
15
|
+
export const RATES_COLUMN_STYLE = `grid grid-cols-3 gap-s`;
|
|
16
|
+
|
|
17
|
+
export const Rate = UniBlock<RateProps>(({ currencyPair = '', buyRate = 0, sellRate = 0 }) => (
|
|
18
|
+
<div className={style('mb-s', RATES_COLUMN_STYLE, DIVIDER_STYLE)}>
|
|
19
|
+
<div>{formatCurrencyPair(currencyPair)}</div>
|
|
20
|
+
<div>{formatRate(buyRate)}</div>
|
|
21
|
+
<div>{formatRate(sellRate)}</div>
|
|
22
|
+
</div>
|
|
23
|
+
));
|
|
24
|
+
|
|
25
|
+
const formatCurrencyPair = (currency: string) => currency.replace('_TOD', '');
|
|
26
|
+
|
|
27
|
+
const formatRate = (rate: number) => rate.toFixed(4);
|
package/package.json
CHANGED
|
@@ -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;
|
|
@@ -62,6 +62,7 @@ export const useApplicationLeadApi = ({
|
|
|
62
62
|
const consentBkiDialog = useConsentBkiDialog(goToNextStep);
|
|
63
63
|
const verifyPhoneDialog = useDialog(VerifyPhoneDialog);
|
|
64
64
|
const draftDialog = useDraftDialog();
|
|
65
|
+
|
|
65
66
|
const handleFailSendForm = () => {
|
|
66
67
|
verifyPhoneDialog.close();
|
|
67
68
|
changeSubmitFormStatus(false);
|
|
@@ -145,7 +146,7 @@ export const useApplicationLeadApi = ({
|
|
|
145
146
|
try {
|
|
146
147
|
startSending();
|
|
147
148
|
const transformedFormData = transformFormData(formData);
|
|
148
|
-
const
|
|
149
|
+
const participantData = await createParticipant({
|
|
149
150
|
phone: formatPhone(transformedFormData.phone as string),
|
|
150
151
|
email: transformedFormData.email as string,
|
|
151
152
|
});
|
|
@@ -153,38 +154,41 @@ export const useApplicationLeadApi = ({
|
|
|
153
154
|
const referalData = leadFormStore.referalData;
|
|
154
155
|
const marketingInfo = sessionStore.marketingInfo;
|
|
155
156
|
|
|
156
|
-
if (!
|
|
157
|
+
if (!participantData) {
|
|
157
158
|
throw new Error();
|
|
158
159
|
}
|
|
159
160
|
|
|
160
|
-
const
|
|
161
|
-
const taskId = await updateUserDataNewMicroservice({
|
|
162
|
-
programId,
|
|
163
|
-
participantId,
|
|
164
|
-
formData: transformedFormData,
|
|
165
|
-
referalData,
|
|
166
|
-
productType,
|
|
167
|
-
marketingInfo,
|
|
168
|
-
saveUserData,
|
|
169
|
-
sendAspects,
|
|
170
|
-
});
|
|
171
|
-
verifyPhoneDialog.close();
|
|
161
|
+
const { participantId, userId } = participantData;
|
|
172
162
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
participantId,
|
|
177
|
-
onFail: handleFailSendForm,
|
|
178
|
-
});
|
|
179
|
-
};
|
|
163
|
+
if (!participantId) {
|
|
164
|
+
throw new Error();
|
|
165
|
+
}
|
|
180
166
|
|
|
181
|
-
const
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
167
|
+
const sendCurrentTask = createSendCurrentTaskNew({
|
|
168
|
+
programId,
|
|
169
|
+
participantId,
|
|
170
|
+
userId,
|
|
171
|
+
formData: transformedFormData,
|
|
172
|
+
referalData,
|
|
173
|
+
productType,
|
|
174
|
+
marketingInfo,
|
|
175
|
+
saveUserData,
|
|
176
|
+
sendAspects,
|
|
177
|
+
verifyPhoneDialog,
|
|
178
|
+
consentBkiDialog,
|
|
179
|
+
handleFailSendForm,
|
|
180
|
+
});
|
|
181
|
+
|
|
182
|
+
const handleSuccessVerify = createHandleSuccessVerifyNew({
|
|
183
|
+
userId,
|
|
184
|
+
programId,
|
|
185
|
+
productType,
|
|
186
|
+
verifyPhoneDialog,
|
|
187
|
+
draftDialog,
|
|
188
|
+
sendAspects,
|
|
189
|
+
sendCurrentTask,
|
|
190
|
+
handleFailSendForm,
|
|
191
|
+
});
|
|
188
192
|
|
|
189
193
|
const acceptedConsents = getAcceptedConsents(transformedFormData, productType);
|
|
190
194
|
|
|
@@ -207,6 +211,108 @@ export const useApplicationLeadApi = ({
|
|
|
207
211
|
};
|
|
208
212
|
};
|
|
209
213
|
|
|
214
|
+
const createSendCurrentTaskNew =
|
|
215
|
+
({
|
|
216
|
+
programId,
|
|
217
|
+
participantId,
|
|
218
|
+
userId,
|
|
219
|
+
formData,
|
|
220
|
+
referalData,
|
|
221
|
+
productType,
|
|
222
|
+
marketingInfo,
|
|
223
|
+
saveUserData,
|
|
224
|
+
sendAspects,
|
|
225
|
+
verifyPhoneDialog,
|
|
226
|
+
consentBkiDialog,
|
|
227
|
+
handleFailSendForm,
|
|
228
|
+
}: {
|
|
229
|
+
programId: string;
|
|
230
|
+
participantId: string | number;
|
|
231
|
+
userId?: string | number;
|
|
232
|
+
formData: LeadFormState;
|
|
233
|
+
referalData: ReferalData | null;
|
|
234
|
+
productType: ProductType;
|
|
235
|
+
marketingInfo: MarketingInfo | null;
|
|
236
|
+
saveUserData: (userData: UserData) => void;
|
|
237
|
+
sendAspects: (userId: string | number, taskId: number) => void;
|
|
238
|
+
verifyPhoneDialog: any;
|
|
239
|
+
consentBkiDialog: any;
|
|
240
|
+
handleFailSendForm: () => void;
|
|
241
|
+
}) =>
|
|
242
|
+
async () => {
|
|
243
|
+
const taskId = await updateUserDataNewMicroservice({
|
|
244
|
+
programId,
|
|
245
|
+
participantId,
|
|
246
|
+
userId,
|
|
247
|
+
formData,
|
|
248
|
+
referalData,
|
|
249
|
+
productType,
|
|
250
|
+
marketingInfo,
|
|
251
|
+
saveUserData,
|
|
252
|
+
sendAspects,
|
|
253
|
+
});
|
|
254
|
+
verifyPhoneDialog.close();
|
|
255
|
+
|
|
256
|
+
consentBkiDialog.open({
|
|
257
|
+
phone: formData.phone,
|
|
258
|
+
taskId,
|
|
259
|
+
userId,
|
|
260
|
+
participantId,
|
|
261
|
+
onFail: handleFailSendForm,
|
|
262
|
+
});
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
const createHandleSuccessVerifyNew =
|
|
266
|
+
({
|
|
267
|
+
userId,
|
|
268
|
+
programId,
|
|
269
|
+
productType,
|
|
270
|
+
verifyPhoneDialog,
|
|
271
|
+
draftDialog,
|
|
272
|
+
sendAspects,
|
|
273
|
+
sendCurrentTask,
|
|
274
|
+
handleFailSendForm,
|
|
275
|
+
}: {
|
|
276
|
+
userId?: string | number;
|
|
277
|
+
programId: string;
|
|
278
|
+
productType: ProductType;
|
|
279
|
+
verifyPhoneDialog: any;
|
|
280
|
+
draftDialog: any;
|
|
281
|
+
sendAspects: (userId: string | number, taskId: number) => void;
|
|
282
|
+
sendCurrentTask: () => Promise<void>;
|
|
283
|
+
handleFailSendForm: () => void;
|
|
284
|
+
}) =>
|
|
285
|
+
async () => {
|
|
286
|
+
try {
|
|
287
|
+
const lastTaskId = await getLastTaskStatus({
|
|
288
|
+
userId,
|
|
289
|
+
profileId: userId,
|
|
290
|
+
programId,
|
|
291
|
+
});
|
|
292
|
+
|
|
293
|
+
if (lastTaskId) {
|
|
294
|
+
const task = await getTaskById({ taskId: lastTaskId });
|
|
295
|
+
|
|
296
|
+
if (task) {
|
|
297
|
+
verifyPhoneDialog.close();
|
|
298
|
+
draftDialog.open({
|
|
299
|
+
task,
|
|
300
|
+
isFromLead: true,
|
|
301
|
+
isDebit: productType === 'debitCard',
|
|
302
|
+
sendAspects,
|
|
303
|
+
onClose: sendCurrentTask,
|
|
304
|
+
});
|
|
305
|
+
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
await sendCurrentTask();
|
|
311
|
+
} catch {
|
|
312
|
+
handleFailSendForm();
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
|
|
210
316
|
const getAcceptedConsents = (formData: LeadFormState, productType: ProductType): string[] => {
|
|
211
317
|
const consents = productTypeToConsentsMap[productType];
|
|
212
318
|
|
|
@@ -288,6 +394,7 @@ const updateUserData = async ({
|
|
|
288
394
|
|
|
289
395
|
const updateUserDataNewMicroservice = async ({
|
|
290
396
|
programId,
|
|
397
|
+
userId,
|
|
291
398
|
participantId,
|
|
292
399
|
formData,
|
|
293
400
|
referalData,
|
|
@@ -297,13 +404,14 @@ const updateUserDataNewMicroservice = async ({
|
|
|
297
404
|
sendAspects,
|
|
298
405
|
}: {
|
|
299
406
|
programId: string;
|
|
300
|
-
participantId: number;
|
|
407
|
+
participantId: string | number;
|
|
408
|
+
userId?: string | number;
|
|
301
409
|
formData: LeadFormState;
|
|
302
410
|
referalData: ReferalData | null;
|
|
303
411
|
productType: ProductType;
|
|
304
412
|
marketingInfo: MarketingInfo | null;
|
|
305
413
|
saveUserData: (userData: UserData) => void;
|
|
306
|
-
sendAspects: (
|
|
414
|
+
sendAspects: (userId: string | number, taskId: number) => void;
|
|
307
415
|
}): Promise<number> => {
|
|
308
416
|
let taskId: number;
|
|
309
417
|
const transformedConsents = transformConsentsFields(formData, productType);
|
|
@@ -332,8 +440,8 @@ const updateUserDataNewMicroservice = async ({
|
|
|
332
440
|
});
|
|
333
441
|
}
|
|
334
442
|
|
|
335
|
-
sendAspects(participantId, taskId);
|
|
336
|
-
saveUserData({ participantId, taskId, programId, formData });
|
|
443
|
+
sendAspects(userId || participantId, taskId);
|
|
444
|
+
saveUserData({ participantId, taskId, userId, programId, formData });
|
|
337
445
|
|
|
338
446
|
return taskId;
|
|
339
447
|
} catch (ex) {
|
|
@@ -8,7 +8,8 @@ export interface LeadFormStoreSlice {
|
|
|
8
8
|
leadForm: LeadFormState;
|
|
9
9
|
taskId: number;
|
|
10
10
|
profileId: Nullable<number>;
|
|
11
|
-
|
|
11
|
+
userId: Nullable<string | number>;
|
|
12
|
+
participantId: string | number;
|
|
12
13
|
programId: string;
|
|
13
14
|
productType: ProductType;
|
|
14
15
|
referalData: ReferalData;
|
|
@@ -4,9 +4,10 @@ import { type Nullable } from '../../utils/Nullable';
|
|
|
4
4
|
import { useLeadFormStore } from './useLeadFormStore';
|
|
5
5
|
|
|
6
6
|
export interface UserData {
|
|
7
|
-
participantId: number;
|
|
7
|
+
participantId: string | number;
|
|
8
8
|
taskId: number;
|
|
9
9
|
profileId?: Nullable<number>;
|
|
10
|
+
userId?: Nullable<string | number>;
|
|
10
11
|
programId: string;
|
|
11
12
|
formData: LeadFormState;
|
|
12
13
|
}
|
|
@@ -14,10 +15,18 @@ export const useSaveUserData = () => {
|
|
|
14
15
|
const leadFormStore = useLeadFormStore();
|
|
15
16
|
|
|
16
17
|
return useCallback(
|
|
17
|
-
({
|
|
18
|
+
({
|
|
19
|
+
participantId,
|
|
20
|
+
taskId,
|
|
21
|
+
userId,
|
|
22
|
+
profileId,
|
|
23
|
+
programId: programNumber,
|
|
24
|
+
formData,
|
|
25
|
+
}: UserData) => {
|
|
18
26
|
leadFormStore.participantId = participantId;
|
|
19
27
|
leadFormStore.taskId = taskId;
|
|
20
28
|
leadFormStore.profileId = profileId;
|
|
29
|
+
leadFormStore.userId = userId;
|
|
21
30
|
leadFormStore.programId = programNumber;
|
|
22
31
|
leadFormStore.leadForm = formData;
|
|
23
32
|
},
|
|
@@ -9,7 +9,7 @@ export const useSendLeadFormAspects = ({ data }: AspectsProps) => {
|
|
|
9
9
|
const aspects = useAspects();
|
|
10
10
|
|
|
11
11
|
return useCallback(
|
|
12
|
-
(ProfileId: number, TaskId: number) => {
|
|
12
|
+
(ProfileId: string | number, TaskId: number) => {
|
|
13
13
|
const snowplowParams = JSON.stringify({
|
|
14
14
|
ProfileId,
|
|
15
15
|
TaskId,
|
|
@@ -36,6 +36,7 @@ import { LinkDocs } from './LinkDocs/LinkDocs';
|
|
|
36
36
|
import { MobileAppTile } from './MobileAppTile/MobileAppTile';
|
|
37
37
|
import { OfficesAtmsMap } from './OfficesAtmsMap/OfficesAtmsMap';
|
|
38
38
|
import { ProductBlock } from './ProductBlock/ProductBlock';
|
|
39
|
+
import { RatesTable } from './RatesTable/RatesTable';
|
|
39
40
|
import { RichTextBlock } from './RichTextBlock/RichTextBlock';
|
|
40
41
|
import { RkoTariffCardsTable } from './RkoTariffCardsTable/RkoTariffCardsTable';
|
|
41
42
|
import { RollupItem } from './RollupItem/RollupItem';
|
|
@@ -92,4 +93,5 @@ export const Blocks: BlocksRegistry = {
|
|
|
92
93
|
CashbackCalculator,
|
|
93
94
|
CalculatorRko,
|
|
94
95
|
RkoTariffCardsTable,
|
|
96
|
+
RatesTable,
|
|
95
97
|
};
|
package/src/components/Blocks.ts
CHANGED
|
@@ -37,6 +37,7 @@ import { LinkDocs } from './LinkDocs/LinkDocs';
|
|
|
37
37
|
import { MobileAppTile } from './MobileAppTile/MobileAppTile';
|
|
38
38
|
import { OfficesAtmsMap } from './OfficesAtmsMap/OfficesAtmsMap';
|
|
39
39
|
import { ProductBlock } from './ProductBlock/ProductBlock';
|
|
40
|
+
import { RatesTable } from './RatesTable/RatesTable';
|
|
40
41
|
import { RichTextBlock } from './RichTextBlock/RichTextBlock';
|
|
41
42
|
import { RkoTariffCardsTable } from './RkoTariffCardsTable/RkoTariffCardsTable';
|
|
42
43
|
import { RollupItem } from './RollupItem/RollupItem';
|
|
@@ -96,4 +97,5 @@ export const Blocks: BlocksRegistry = {
|
|
|
96
97
|
CashbackCalculator,
|
|
97
98
|
CalculatorRko,
|
|
98
99
|
RkoTariffCardsTable,
|
|
100
|
+
RatesTable,
|
|
99
101
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import '../../setup-fixture';
|
|
2
|
+
import { RatesTable } from './RatesTable';
|
|
3
|
+
|
|
4
|
+
const ratesTableContent = {
|
|
5
|
+
infoMessage: 'Информация может содержать неточности, актуальный курс уточняйте в отделении Банка',
|
|
6
|
+
title: 'Курс покупки/продажи для операций с использованием платежных карт в сети Банка',
|
|
7
|
+
href: 'rshb.ru',
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
const archiveRatesTableContent = {
|
|
11
|
+
title: 'Архив курсов покупки/продажи для операций с использованием платежных карт в сети Банка',
|
|
12
|
+
isArchive: true,
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export default {
|
|
16
|
+
default: (
|
|
17
|
+
<div className="container grid grid-cols-12">
|
|
18
|
+
<RatesTable className="col-span-12" {...ratesTableContent} />
|
|
19
|
+
</div>
|
|
20
|
+
),
|
|
21
|
+
archive: (
|
|
22
|
+
<div className="container grid grid-cols-12">
|
|
23
|
+
<RatesTable className="col-span-12" {...archiveRatesTableContent} />
|
|
24
|
+
</div>
|
|
25
|
+
),
|
|
26
|
+
};
|