@redneckz/wildless-cms-uni-blocks 0.14.866 → 0.14.867
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/bundle.umd.js +550 -416
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -5
- package/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +6 -0
- package/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -3
- package/bundle/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -3
- package/bundle/retail/adaptors/getCreditFormTaskData.d.ts +1 -3
- package/bundle/retail/api/createUserTaskDebit.d.ts +3 -1
- package/bundle/retail/api/updateUserTask.d.ts +3 -2
- package/bundle/retail/api/updateUserTaskDebit.d.ts +1 -1
- package/bundle/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
- package/bundle/retail/components/Fields/InitiateBankruptcyFlgField.d.ts +2 -0
- package/bundle/retail/content.d.ts +2 -8
- package/bundle/retail/inputs.d.ts +1 -1
- package/bundle/retail/model/LeadFormState.d.ts +4 -2
- package/bundle/retail/model/NameFieldDef.d.ts +1 -1
- package/bundle/retail/model/ReferalData.d.ts +0 -1
- package/bundle/retail/utils/getMainFormStateMap.d.ts +2 -0
- package/dist/components/ApplicationLeadForm/applicationFormData.js +0 -1
- package/dist/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/dist/components/ApplicationLeadForm/consents.js +0 -4
- package/dist/components/ApplicationLeadForm/consents.js.map +1 -1
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -5
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +20 -17
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +12 -11
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +6 -0
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +20 -12
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/dist/components/CreditCardForm/creditCardFormStepsData.js +245 -3
- package/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/dist/components/CreditCardForm/formStateMap.js +2 -2
- package/dist/components/CreditCardForm/formStateMap.js.map +1 -1
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -3
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js +24 -30
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js +0 -2
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/dist/components/CreditForm/CreditForm.js +1 -2
- package/dist/components/CreditForm/CreditForm.js.map +1 -1
- package/dist/components/CreditForm/creditFormStepsData.js +192 -3
- package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/dist/components/CreditForm/formStateMap.js +2 -2
- package/dist/components/CreditForm/formStateMap.js.map +1 -1
- package/dist/components/CreditForm/useCreditFormAPI.js +1 -3
- package/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/dist/components/DebitForm/DebitFormStepsData.js +71 -3
- package/dist/components/DebitForm/DebitFormStepsData.js.map +1 -1
- package/dist/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -3
- package/dist/components/DebitForm/getDebitCardFormTaskData.js +16 -22
- package/dist/components/DebitForm/getDebitCardFormTaskData.js.map +1 -1
- package/dist/components/DebitForm/useDebitFormAPI.js +0 -2
- package/dist/components/DebitForm/useDebitFormAPI.js.map +1 -1
- package/dist/retail/adaptors/getCreditFormTaskData.d.ts +1 -3
- package/dist/retail/adaptors/getCreditFormTaskData.js +24 -33
- package/dist/retail/adaptors/getCreditFormTaskData.js.map +1 -1
- package/dist/retail/adaptors/getEmploymentData.js +3 -3
- package/dist/retail/adaptors/getEmploymentData.js.map +1 -1
- package/dist/retail/adaptors/getFamilyStatusAndIncomeData.js +2 -1
- package/dist/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
- package/dist/retail/adaptors/getPersonalInfoData.js +4 -2
- package/dist/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/dist/retail/api/checkCode.js +1 -1
- package/dist/retail/api/checkCode.js.map +1 -1
- package/dist/retail/api/createUserTaskDebit.d.ts +3 -1
- package/dist/retail/api/createUserTaskDebit.js.map +1 -1
- package/dist/retail/api/updateUserTask.d.ts +3 -2
- package/dist/retail/api/updateUserTask.js.map +1 -1
- package/dist/retail/api/updateUserTaskDebit.d.ts +1 -1
- package/dist/retail/components/DraftDialog/DraftDialog.js +1 -2
- package/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/dist/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
- package/dist/retail/components/DraftDialog/parseDraftTask.js +2 -3
- package/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/dist/retail/components/Fields/DaDataInnField.js +10 -3
- package/dist/retail/components/Fields/DaDataInnField.js.map +1 -1
- package/dist/retail/components/Fields/InitiateBankruptcyFlgField.d.ts +2 -0
- package/dist/retail/components/Fields/InitiateBankruptcyFlgField.js +7 -0
- package/dist/retail/components/Fields/InitiateBankruptcyFlgField.js.map +1 -0
- package/dist/retail/content.d.ts +2 -8
- package/dist/retail/content.js +3 -361
- package/dist/retail/content.js.map +1 -1
- package/dist/retail/inputs.d.ts +1 -1
- package/dist/retail/inputs.js +2 -1
- package/dist/retail/inputs.js.map +1 -1
- package/dist/retail/model/LeadFormState.d.ts +4 -2
- package/dist/retail/model/NameFieldDef.d.ts +1 -1
- package/dist/retail/model/ReferalData.d.ts +0 -1
- package/dist/retail/utils/getMainFormStateMap.d.ts +2 -0
- package/dist/retail/utils/{mainFormStateMap.js → getMainFormStateMap.js} +6 -4
- package/dist/retail/utils/getMainFormStateMap.js.map +1 -0
- package/lib/components/ApplicationLeadForm/applicationFormData.js +0 -1
- package/lib/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/lib/components/ApplicationLeadForm/consents.js +0 -4
- package/lib/components/ApplicationLeadForm/consents.js.map +1 -1
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -5
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +20 -17
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +12 -11
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +6 -0
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +20 -12
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/lib/components/CreditCardForm/creditCardFormStepsData.js +244 -2
- package/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/lib/components/CreditCardForm/formStateMap.js +2 -2
- package/lib/components/CreditCardForm/formStateMap.js.map +1 -1
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -3
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js +24 -30
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js +0 -2
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/lib/components/CreditForm/CreditForm.js +1 -2
- package/lib/components/CreditForm/CreditForm.js.map +1 -1
- package/lib/components/CreditForm/creditFormStepsData.js +191 -2
- package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/lib/components/CreditForm/formStateMap.js +2 -2
- package/lib/components/CreditForm/formStateMap.js.map +1 -1
- package/lib/components/CreditForm/useCreditFormAPI.js +1 -3
- package/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/lib/components/DebitForm/DebitFormStepsData.js +70 -2
- package/lib/components/DebitForm/DebitFormStepsData.js.map +1 -1
- package/lib/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -3
- package/lib/components/DebitForm/getDebitCardFormTaskData.js +16 -22
- package/lib/components/DebitForm/getDebitCardFormTaskData.js.map +1 -1
- package/lib/components/DebitForm/useDebitFormAPI.js +0 -2
- package/lib/components/DebitForm/useDebitFormAPI.js.map +1 -1
- package/lib/retail/adaptors/getCreditFormTaskData.d.ts +1 -3
- package/lib/retail/adaptors/getCreditFormTaskData.js +24 -33
- package/lib/retail/adaptors/getCreditFormTaskData.js.map +1 -1
- package/lib/retail/adaptors/getEmploymentData.js +3 -3
- package/lib/retail/adaptors/getEmploymentData.js.map +1 -1
- package/lib/retail/adaptors/getFamilyStatusAndIncomeData.js +2 -1
- package/lib/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
- package/lib/retail/adaptors/getPersonalInfoData.js +4 -2
- package/lib/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/lib/retail/api/checkCode.js +1 -1
- package/lib/retail/api/checkCode.js.map +1 -1
- package/lib/retail/api/createUserTaskDebit.d.ts +3 -1
- package/lib/retail/api/createUserTaskDebit.js.map +1 -1
- package/lib/retail/api/updateUserTask.d.ts +3 -2
- package/lib/retail/api/updateUserTask.js.map +1 -1
- package/lib/retail/api/updateUserTaskDebit.d.ts +1 -1
- package/lib/retail/components/DraftDialog/DraftDialog.js +1 -2
- package/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/lib/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
- package/lib/retail/components/DraftDialog/parseDraftTask.js +2 -3
- package/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/lib/retail/components/Fields/DaDataInnField.js +10 -3
- package/lib/retail/components/Fields/DaDataInnField.js.map +1 -1
- package/lib/retail/components/Fields/InitiateBankruptcyFlgField.d.ts +2 -0
- package/lib/retail/components/Fields/InitiateBankruptcyFlgField.js +5 -0
- package/lib/retail/components/Fields/InitiateBankruptcyFlgField.js.map +1 -0
- package/lib/retail/content.d.ts +2 -8
- package/lib/retail/content.js +2 -360
- package/lib/retail/content.js.map +1 -1
- package/lib/retail/inputs.d.ts +1 -1
- package/lib/retail/inputs.js +2 -1
- package/lib/retail/inputs.js.map +1 -1
- package/lib/retail/model/LeadFormState.d.ts +4 -2
- package/lib/retail/model/NameFieldDef.d.ts +1 -1
- package/lib/retail/model/ReferalData.d.ts +0 -1
- package/lib/retail/utils/getMainFormStateMap.d.ts +2 -0
- package/lib/retail/utils/{mainFormStateMap.js → getMainFormStateMap.js} +4 -3
- package/lib/retail/utils/getMainFormStateMap.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +465 -314
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -5
- package/mobile/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +6 -0
- package/mobile/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -3
- package/mobile/bundle/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -3
- package/mobile/bundle/retail/adaptors/getCreditFormTaskData.d.ts +1 -3
- package/mobile/bundle/retail/api/createUserTaskDebit.d.ts +3 -1
- package/mobile/bundle/retail/api/updateUserTask.d.ts +3 -2
- package/mobile/bundle/retail/api/updateUserTaskDebit.d.ts +1 -1
- package/mobile/bundle/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
- package/mobile/bundle/retail/components/Fields/InitiateBankruptcyFlgField.d.ts +2 -0
- package/mobile/bundle/retail/content.d.ts +2 -8
- package/mobile/bundle/retail/inputs.d.ts +1 -1
- package/mobile/bundle/retail/model/LeadFormState.d.ts +4 -2
- package/mobile/bundle/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/bundle/retail/model/ReferalData.d.ts +0 -1
- package/mobile/bundle/retail/utils/getMainFormStateMap.d.ts +2 -0
- package/mobile/dist/components/ApplicationLeadForm/applicationFormData.js +0 -1
- package/mobile/dist/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/consents.js +0 -4
- package/mobile/dist/components/ApplicationLeadForm/consents.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -5
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +20 -17
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +12 -11
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +6 -0
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +20 -12
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js +245 -3
- package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/formStateMap.js +2 -2
- package/mobile/dist/components/CreditCardForm/formStateMap.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -3
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js +24 -30
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js +0 -2
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditForm.js +1 -2
- package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -1
- package/mobile/dist/components/CreditForm/creditFormStepsData.js +192 -3
- package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/dist/components/CreditForm/formStateMap.js +2 -2
- package/mobile/dist/components/CreditForm/formStateMap.js.map +1 -1
- package/mobile/dist/components/CreditForm/useCreditFormAPI.js +1 -3
- package/mobile/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/mobile/dist/components/DebitForm/DebitFormStepsData.js +71 -3
- package/mobile/dist/components/DebitForm/DebitFormStepsData.js.map +1 -1
- package/mobile/dist/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -3
- package/mobile/dist/components/DebitForm/getDebitCardFormTaskData.js +16 -22
- package/mobile/dist/components/DebitForm/getDebitCardFormTaskData.js.map +1 -1
- package/mobile/dist/components/DebitForm/useDebitFormAPI.js +0 -2
- package/mobile/dist/components/DebitForm/useDebitFormAPI.js.map +1 -1
- package/mobile/dist/retail/adaptors/getCreditFormTaskData.d.ts +1 -3
- package/mobile/dist/retail/adaptors/getCreditFormTaskData.js +24 -33
- package/mobile/dist/retail/adaptors/getCreditFormTaskData.js.map +1 -1
- package/mobile/dist/retail/adaptors/getEmploymentData.js +3 -3
- package/mobile/dist/retail/adaptors/getEmploymentData.js.map +1 -1
- package/mobile/dist/retail/adaptors/getFamilyStatusAndIncomeData.js +2 -1
- package/mobile/dist/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
- package/mobile/dist/retail/adaptors/getPersonalInfoData.js +4 -2
- package/mobile/dist/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/mobile/dist/retail/api/checkCode.js +1 -1
- package/mobile/dist/retail/api/checkCode.js.map +1 -1
- package/mobile/dist/retail/api/createUserTaskDebit.d.ts +3 -1
- package/mobile/dist/retail/api/createUserTaskDebit.js.map +1 -1
- package/mobile/dist/retail/api/updateUserTask.d.ts +3 -2
- package/mobile/dist/retail/api/updateUserTask.js.map +1 -1
- package/mobile/dist/retail/api/updateUserTaskDebit.d.ts +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js +1 -2
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
- package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js +2 -3
- package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/mobile/dist/retail/components/Fields/DaDataInnField.js +10 -3
- package/mobile/dist/retail/components/Fields/DaDataInnField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/InitiateBankruptcyFlgField.d.ts +2 -0
- package/mobile/dist/retail/components/Fields/InitiateBankruptcyFlgField.js +7 -0
- package/mobile/dist/retail/components/Fields/InitiateBankruptcyFlgField.js.map +1 -0
- package/mobile/dist/retail/content.d.ts +2 -8
- package/mobile/dist/retail/content.js +3 -361
- package/mobile/dist/retail/content.js.map +1 -1
- package/mobile/dist/retail/inputs.d.ts +1 -1
- package/mobile/dist/retail/inputs.js +2 -1
- package/mobile/dist/retail/inputs.js.map +1 -1
- package/mobile/dist/retail/model/LeadFormState.d.ts +4 -2
- package/mobile/dist/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/dist/retail/model/ReferalData.d.ts +0 -1
- package/mobile/dist/retail/utils/getMainFormStateMap.d.ts +2 -0
- package/mobile/{lib/retail/utils/mainFormStateMap.js → dist/retail/utils/getMainFormStateMap.js} +7 -3
- package/mobile/dist/retail/utils/getMainFormStateMap.js.map +1 -0
- package/mobile/lib/components/ApplicationLeadForm/applicationFormData.js +0 -1
- package/mobile/lib/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/consents.js +0 -4
- package/mobile/lib/components/ApplicationLeadForm/consents.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -5
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +20 -17
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +12 -11
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +6 -0
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +20 -12
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js +244 -2
- package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/formStateMap.js +2 -2
- package/mobile/lib/components/CreditCardForm/formStateMap.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -3
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js +24 -30
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js +0 -2
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditForm.js +1 -2
- package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -1
- package/mobile/lib/components/CreditForm/creditFormStepsData.js +191 -2
- package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/lib/components/CreditForm/formStateMap.js +2 -2
- package/mobile/lib/components/CreditForm/formStateMap.js.map +1 -1
- package/mobile/lib/components/CreditForm/useCreditFormAPI.js +1 -3
- package/mobile/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/mobile/lib/components/DebitForm/DebitFormStepsData.js +70 -2
- package/mobile/lib/components/DebitForm/DebitFormStepsData.js.map +1 -1
- package/mobile/lib/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -3
- package/mobile/lib/components/DebitForm/getDebitCardFormTaskData.js +16 -22
- package/mobile/lib/components/DebitForm/getDebitCardFormTaskData.js.map +1 -1
- package/mobile/lib/components/DebitForm/useDebitFormAPI.js +0 -2
- package/mobile/lib/components/DebitForm/useDebitFormAPI.js.map +1 -1
- package/mobile/lib/retail/adaptors/getCreditFormTaskData.d.ts +1 -3
- package/mobile/lib/retail/adaptors/getCreditFormTaskData.js +24 -33
- package/mobile/lib/retail/adaptors/getCreditFormTaskData.js.map +1 -1
- package/mobile/lib/retail/adaptors/getEmploymentData.js +3 -3
- package/mobile/lib/retail/adaptors/getEmploymentData.js.map +1 -1
- package/mobile/lib/retail/adaptors/getFamilyStatusAndIncomeData.js +2 -1
- package/mobile/lib/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
- package/mobile/lib/retail/adaptors/getPersonalInfoData.js +4 -2
- package/mobile/lib/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/mobile/lib/retail/api/checkCode.js +1 -1
- package/mobile/lib/retail/api/checkCode.js.map +1 -1
- package/mobile/lib/retail/api/createUserTaskDebit.d.ts +3 -1
- package/mobile/lib/retail/api/createUserTaskDebit.js.map +1 -1
- package/mobile/lib/retail/api/updateUserTask.d.ts +3 -2
- package/mobile/lib/retail/api/updateUserTask.js.map +1 -1
- package/mobile/lib/retail/api/updateUserTaskDebit.d.ts +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js +1 -2
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
- package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js +2 -3
- package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/mobile/lib/retail/components/Fields/DaDataInnField.js +10 -3
- package/mobile/lib/retail/components/Fields/DaDataInnField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/InitiateBankruptcyFlgField.d.ts +2 -0
- package/mobile/lib/retail/components/Fields/InitiateBankruptcyFlgField.js +5 -0
- package/mobile/lib/retail/components/Fields/InitiateBankruptcyFlgField.js.map +1 -0
- package/mobile/lib/retail/content.d.ts +2 -8
- package/mobile/lib/retail/content.js +2 -360
- package/mobile/lib/retail/content.js.map +1 -1
- package/mobile/lib/retail/inputs.d.ts +1 -1
- package/mobile/lib/retail/inputs.js +2 -1
- package/mobile/lib/retail/inputs.js.map +1 -1
- package/mobile/lib/retail/model/LeadFormState.d.ts +4 -2
- package/mobile/lib/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/lib/retail/model/ReferalData.d.ts +0 -1
- package/mobile/lib/retail/utils/getMainFormStateMap.d.ts +2 -0
- package/mobile/{dist/retail/utils/mainFormStateMap.js → lib/retail/utils/getMainFormStateMap.js} +4 -5
- package/mobile/lib/retail/utils/getMainFormStateMap.js.map +1 -0
- package/mobile/src/components/ApplicationLeadForm/applicationFormData.tsx +0 -1
- package/mobile/src/components/ApplicationLeadForm/consents.ts +0 -4
- package/mobile/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +22 -20
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +15 -11
- package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +31 -12
- package/mobile/src/components/CreditCardForm/creditCardFormStepsData.tsx +246 -6
- package/mobile/src/components/CreditCardForm/formStateMap.tsx +2 -2
- package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +24 -34
- package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +0 -2
- package/mobile/src/components/CreditForm/CreditForm.tsx +1 -2
- package/mobile/src/components/CreditForm/creditFormStepsData.tsx +194 -6
- package/mobile/src/components/CreditForm/formStateMap.tsx +2 -2
- package/mobile/src/components/CreditForm/useCreditFormAPI.tsx +1 -3
- package/mobile/src/components/DebitForm/DebitFormStepsData.tsx +71 -6
- package/mobile/src/components/DebitForm/getDebitCardFormTaskData.ts +16 -26
- package/mobile/src/components/DebitForm/useDebitFormAPI.tsx +0 -2
- package/mobile/src/retail/adaptors/getCreditFormTaskData.ts +26 -39
- package/mobile/src/retail/adaptors/getEmploymentData.tsx +3 -3
- package/mobile/src/retail/adaptors/getFamilyStatusAndIncomeData.ts +2 -0
- package/mobile/src/retail/adaptors/getPersonalInfoData.tsx +4 -2
- package/mobile/src/retail/api/checkCode.ts +1 -1
- package/mobile/src/retail/api/createUserTaskDebit.ts +3 -1
- package/mobile/src/retail/api/updateUserTask.ts +3 -2
- package/mobile/src/retail/api/updateUserTaskDebit.ts +1 -1
- package/mobile/src/retail/components/DraftDialog/DraftDialog.tsx +1 -2
- package/mobile/src/retail/components/DraftDialog/parseDraftTask.ts +2 -5
- package/mobile/src/retail/components/Fields/DaDataInnField.tsx +14 -6
- package/mobile/src/retail/components/Fields/InitiateBankruptcyFlgField.tsx +10 -0
- package/mobile/src/retail/content.tsx +3 -362
- package/mobile/src/retail/inputs.tsx +2 -1
- package/mobile/src/retail/model/LeadFormState.ts +4 -2
- package/mobile/src/retail/model/NameFieldDef.ts +1 -0
- package/mobile/src/retail/model/ReferalData.ts +0 -1
- package/mobile/src/retail/utils/{mainFormStateMap.ts → getMainFormStateMap.ts} +3 -2
- package/package.json +1 -1
- package/src/components/ApplicationLeadForm/applicationFormData.tsx +0 -1
- package/src/components/ApplicationLeadForm/consents.ts +0 -4
- package/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +22 -20
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +15 -11
- package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +31 -12
- package/src/components/CreditCardForm/creditCardFormStepsData.tsx +246 -6
- package/src/components/CreditCardForm/formStateMap.tsx +2 -2
- package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +24 -34
- package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +0 -2
- package/src/components/CreditForm/CreditForm.tsx +1 -2
- package/src/components/CreditForm/creditFormStepsData.tsx +194 -6
- package/src/components/CreditForm/formStateMap.tsx +2 -2
- package/src/components/CreditForm/useCreditFormAPI.tsx +1 -3
- package/src/components/DebitForm/DebitFormStepsData.tsx +71 -6
- package/src/components/DebitForm/getDebitCardFormTaskData.ts +16 -26
- package/src/components/DebitForm/useDebitFormAPI.tsx +0 -2
- package/src/retail/adaptors/getCreditFormTaskData.ts +26 -39
- package/src/retail/adaptors/getEmploymentData.tsx +3 -3
- package/src/retail/adaptors/getFamilyStatusAndIncomeData.ts +2 -0
- package/src/retail/adaptors/getPersonalInfoData.tsx +4 -2
- package/src/retail/api/checkCode.ts +1 -1
- package/src/retail/api/createUserTaskDebit.ts +3 -1
- package/src/retail/api/updateUserTask.ts +3 -2
- package/src/retail/api/updateUserTaskDebit.ts +1 -1
- package/src/retail/components/DraftDialog/DraftDialog.tsx +1 -2
- package/src/retail/components/DraftDialog/parseDraftTask.ts +2 -5
- package/src/retail/components/Fields/DaDataInnField.tsx +14 -6
- package/src/retail/components/Fields/InitiateBankruptcyFlgField.tsx +10 -0
- package/src/retail/content.tsx +3 -362
- package/src/retail/inputs.tsx +2 -1
- package/src/retail/model/LeadFormState.ts +4 -2
- package/src/retail/model/NameFieldDef.ts +1 -0
- package/src/retail/model/ReferalData.ts +0 -1
- package/src/retail/utils/{mainFormStateMap.ts → getMainFormStateMap.ts} +3 -2
- package/bundle/retail/utils/mainFormStateMap.d.ts +0 -2
- package/dist/retail/utils/mainFormStateMap.d.ts +0 -2
- package/dist/retail/utils/mainFormStateMap.js.map +0 -1
- package/lib/retail/utils/mainFormStateMap.d.ts +0 -2
- package/lib/retail/utils/mainFormStateMap.js.map +0 -1
- package/mobile/bundle/retail/utils/mainFormStateMap.d.ts +0 -2
- package/mobile/dist/retail/utils/mainFormStateMap.d.ts +0 -2
- package/mobile/dist/retail/utils/mainFormStateMap.js.map +0 -1
- package/mobile/lib/retail/utils/mainFormStateMap.d.ts +0 -2
- package/mobile/lib/retail/utils/mainFormStateMap.js.map +0 -1
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { type CreateUserTaskDebitBody } from '../../retail/api/createUserTaskDebit';
|
|
2
|
-
import { type UpdateUserTaskBody } from '../../retail/api/updateUserTask';
|
|
2
|
+
import { type MarketingInfo, type UpdateUserTaskBody } from '../../retail/api/updateUserTask';
|
|
3
3
|
import { type LeadFormState } from '../../retail/model/LeadFormState';
|
|
4
|
-
import { type ReferalData } from '../../retail/model/ReferalData';
|
|
5
4
|
declare type getLeadFormTaskDataProps = {
|
|
6
5
|
participantId: number;
|
|
7
6
|
taskId: number;
|
|
8
7
|
profileId: number;
|
|
9
8
|
formData: LeadFormState;
|
|
10
|
-
|
|
9
|
+
marketingInfo: MarketingInfo | null;
|
|
11
10
|
};
|
|
12
|
-
export declare const getCreditLeadFormTaskData: ({ participantId, taskId, profileId, formData,
|
|
13
|
-
export declare const getDebitLeadFormTaskData: (formData: LeadFormState, programId: string,
|
|
11
|
+
export declare const getCreditLeadFormTaskData: ({ participantId, taskId, profileId, formData, marketingInfo, }: getLeadFormTaskDataProps) => UpdateUserTaskBody;
|
|
12
|
+
export declare const getDebitLeadFormTaskData: (formData: LeadFormState, programId: string, marketingInfo: MarketingInfo | null) => CreateUserTaskDebitBody;
|
|
14
13
|
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { type MarketingInfo } from '../../retail/api/updateUserTask';
|
|
1
2
|
import { type LeadFormState } from '../../retail/model/LeadFormState';
|
|
3
|
+
import { type ReferalData } from '../../retail/model/ReferalData';
|
|
2
4
|
import { type FieldRetailDef } from '../../retail/model/RetailFormContent';
|
|
3
5
|
import { EsiaStatuses, type ProductType } from './ApplicationLeadFormContent';
|
|
4
6
|
declare type InitApplicationLeadProps = {
|
|
@@ -8,5 +10,9 @@ declare type InitApplicationLeadProps = {
|
|
|
8
10
|
setEsiaStatus: (status: EsiaStatuses) => void;
|
|
9
11
|
esiaAuthSuccess: boolean;
|
|
10
12
|
};
|
|
13
|
+
export interface ApplicationLeadStore {
|
|
14
|
+
marketingInfo: MarketingInfo | null;
|
|
15
|
+
referalData: ReferalData | null;
|
|
16
|
+
}
|
|
11
17
|
export declare const useInitApplicationLead: ({ inputs, productType, setEsiaStatus, esiaAuthSuccess, }: InitApplicationLeadProps) => LeadFormState;
|
|
12
18
|
export {};
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { type UpdateUserTaskBody } from '../../retail/api/updateUserTask';
|
|
2
2
|
import { type LeadFormState } from '../../retail/model/LeadFormState';
|
|
3
|
-
import { type ReferalData } from '../../retail/model/ReferalData';
|
|
4
3
|
declare type getCreditCardFormTaskDataProps = {
|
|
5
4
|
participantId: number;
|
|
6
5
|
taskId: number;
|
|
7
6
|
profileId: number;
|
|
8
7
|
formData: LeadFormState;
|
|
9
8
|
step?: number;
|
|
10
|
-
isTaskWithReferalCode?: ReferalData['isTaskWithReferalCode'];
|
|
11
9
|
};
|
|
12
|
-
export declare const getCreditCardFormTaskData: ({ participantId, taskId, profileId, formData, step,
|
|
10
|
+
export declare const getCreditCardFormTaskData: ({ participantId, taskId, profileId, formData, step, }: getCreditCardFormTaskDataProps) => UpdateUserTaskBody;
|
|
13
11
|
export {};
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { type UpdateUserTaskDebitBody } from '../../retail/api/updateUserTaskDebit';
|
|
2
2
|
import { type LeadFormState } from '../../retail/model/LeadFormState';
|
|
3
|
-
import { type ReferalData } from '../../retail/model/ReferalData';
|
|
4
3
|
declare type getDebitFormTaskDataProps = {
|
|
5
4
|
participantId: number;
|
|
6
5
|
taskId: number;
|
|
7
6
|
formData: LeadFormState;
|
|
8
7
|
programId: string;
|
|
9
8
|
step?: number;
|
|
10
|
-
isTaskWithReferalCode?: ReferalData['isTaskWithReferalCode'];
|
|
11
9
|
};
|
|
12
|
-
export declare const getDebitCardFormTaskData: ({ participantId, taskId, formData, programId, step,
|
|
10
|
+
export declare const getDebitCardFormTaskData: ({ participantId, taskId, formData, programId, step, }: getDebitFormTaskDataProps) => UpdateUserTaskDebitBody;
|
|
13
11
|
export {};
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { type UpdateUserTaskBody } from '../api/updateUserTask';
|
|
2
2
|
import { type LeadFormState } from '../model/LeadFormState';
|
|
3
|
-
import { type ReferalData } from '../model/ReferalData';
|
|
4
3
|
declare type getCreditFormTaskDataProps = {
|
|
5
4
|
participantId: number;
|
|
6
5
|
taskId: number;
|
|
7
6
|
profileId: number;
|
|
8
7
|
formData: LeadFormState;
|
|
9
8
|
step?: number;
|
|
10
|
-
isTaskWithReferalCode?: ReferalData['isTaskWithReferalCode'];
|
|
11
9
|
};
|
|
12
|
-
export declare const getCreditFormTaskData: ({ participantId, taskId, profileId, formData, step,
|
|
10
|
+
export declare const getCreditFormTaskData: ({ participantId, taskId, profileId, formData, step, }: getCreditFormTaskDataProps) => UpdateUserTaskBody;
|
|
13
11
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type Nullable } from '../../utils/Nullable';
|
|
2
|
+
import { type MarketingInfo, type Participant } from './updateUserTask';
|
|
2
3
|
export declare type CreateUserTaskDebitBody = {
|
|
3
4
|
task: {
|
|
4
5
|
taskSource: string;
|
|
@@ -6,6 +7,7 @@ export declare type CreateUserTaskDebitBody = {
|
|
|
6
7
|
code: string;
|
|
7
8
|
};
|
|
8
9
|
participants: Participant[];
|
|
10
|
+
marketingInfo?: Nullable<MarketingInfo>;
|
|
9
11
|
};
|
|
10
12
|
};
|
|
11
13
|
export declare type CreateUserTaskDebitResponse = {
|
|
@@ -111,12 +111,13 @@ export declare type MarketingInfo = {
|
|
|
111
111
|
utm_source?: Nullable<string>;
|
|
112
112
|
utm_content?: Nullable<string>;
|
|
113
113
|
utm_term?: Nullable<string>;
|
|
114
|
+
bannerId?: Nullable<string>;
|
|
114
115
|
};
|
|
115
116
|
export declare type UpdateUserTaskBody = {
|
|
116
117
|
sendToBank: boolean;
|
|
117
118
|
taskKind: 'SHORT' | 'FULL' | 'UNITED';
|
|
118
119
|
task: {
|
|
119
|
-
taskSource
|
|
120
|
+
taskSource?: string;
|
|
120
121
|
id: number;
|
|
121
122
|
office?: {
|
|
122
123
|
id: string;
|
|
@@ -134,7 +135,7 @@ export declare type UpdateUserTaskBody = {
|
|
|
134
135
|
loanAmount?: number;
|
|
135
136
|
creditPeriod?: number;
|
|
136
137
|
paymentTypeCd?: PaymentType;
|
|
137
|
-
marketingInfo?: MarketingInfo
|
|
138
|
+
marketingInfo?: Nullable<MarketingInfo>;
|
|
138
139
|
files?: File[];
|
|
139
140
|
};
|
|
140
141
|
};
|
|
@@ -2,7 +2,7 @@ import { type Option } from '../../ui-kit/Select/Option';
|
|
|
2
2
|
import { type MarketingInfo, type Participant } from './updateUserTask';
|
|
3
3
|
export declare type UpdateUserTaskDebitBody = {
|
|
4
4
|
task: {
|
|
5
|
-
taskSource
|
|
5
|
+
taskSource?: string;
|
|
6
6
|
id: number;
|
|
7
7
|
office?: {
|
|
8
8
|
id: string;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
import { type CreditCardSectionsProps } from '../components/CreditCardForm/CreditCardFormContent';
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const CREDIT_CARD_CONTENT: CreditCardSectionsProps[];
|
|
5
|
-
export declare const CALCULATOR_CONTENT: CreditCardSectionsProps[];
|
|
6
|
-
export declare const DELIVERY_DEBIT_CARD_CONTENT: CreditCardSectionsProps[];
|
|
7
|
-
export declare const DEBIT_PERSONAL_INFO_CONTENT: CreditCardSectionsProps[];
|
|
8
|
-
export declare const DEBIT_CARD_CONTENT: CreditCardSectionsProps[];
|
|
9
|
-
export declare const DELIVERY_CREDIT_CARD_CONTENT: CreditCardSectionsProps[];
|
|
2
|
+
export declare const PERSONAL_DATA: CreditCardSectionsProps[];
|
|
3
|
+
export declare const DELIVERY_CARD_CONTENT: CreditCardSectionsProps[];
|
|
@@ -13,7 +13,6 @@ export declare const InputsConsentsMap: {
|
|
|
13
13
|
consentInformFlg: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
14
14
|
consentPfrFlg: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
15
15
|
consentInformMaterialsFlg: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
16
|
-
consentPhotoFlg: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
17
16
|
consentFATCA: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
18
17
|
};
|
|
19
18
|
export declare const InputsRetailMap: {
|
|
@@ -65,6 +64,7 @@ export declare const InputsRetailMap: {
|
|
|
65
64
|
wages: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
66
65
|
mandatoryPayments: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
67
66
|
bankruptcyFlg: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
67
|
+
initiateBankruptcyFlg: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
68
68
|
shareholderFlg: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
69
69
|
legalEntityName: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
70
70
|
creditInRshbCd: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
@@ -13,7 +13,6 @@ export interface CreditCardFormConsents {
|
|
|
13
13
|
consentOthersFlg?: boolean;
|
|
14
14
|
consentInformFlg?: boolean;
|
|
15
15
|
consentInformMaterialsFlg?: boolean;
|
|
16
|
-
consentPhotoFlg?: boolean;
|
|
17
16
|
}
|
|
18
17
|
export interface DebitCardFormConsents {
|
|
19
18
|
processPersonalDataFlg?: boolean;
|
|
@@ -73,7 +72,9 @@ export declare type File = {
|
|
|
73
72
|
value: string;
|
|
74
73
|
};
|
|
75
74
|
};
|
|
76
|
-
export declare type FormRetailConsents = CreditFormConsents & CreditCardFormConsents & DebitCardFormConsents
|
|
75
|
+
export declare type FormRetailConsents = CreditFormConsents & CreditCardFormConsents & DebitCardFormConsents & {
|
|
76
|
+
consentPhotoFlg?: boolean;
|
|
77
|
+
};
|
|
77
78
|
export interface LeadFormState extends FormRetailConsents, FormStateDeliveryType {
|
|
78
79
|
surname?: string;
|
|
79
80
|
name?: string;
|
|
@@ -156,6 +157,7 @@ export interface LeadFormState extends FormRetailConsents, FormStateDeliveryType
|
|
|
156
157
|
wages?: string;
|
|
157
158
|
creditInRshbCd?: Option;
|
|
158
159
|
bankruptcyFlg?: boolean;
|
|
160
|
+
initiateBankruptcyFlg?: boolean;
|
|
159
161
|
shareholderFlg?: boolean;
|
|
160
162
|
legalEntityName?: string;
|
|
161
163
|
partInBusiness?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare type NameFieldApplicationBaseDef = 'surname' | 'name' | 'middleName' | 'limitedBirthday' | 'email' | 'phone' | 'inn';
|
|
2
2
|
declare type NameFieldConsentDef = 'processPersonalDataFlg' | 'consentProviderFlg' | 'consentInformFlg' | 'consentPfrFlg' | 'consentOthersFlg' | 'consentInformMaterialsFlg' | 'consentPhotoFlg' | 'consentFATCA';
|
|
3
3
|
declare type NameFieldCreditCardDef = 'addressCourier' | 'paymentSystem' | 'currency' | 'cardCategory' | 'codeWord' | 'confirmationIncome' | 'methodObtain' | 'deliveryDate' | 'regionHasDelivery' | 'latinName' | 'latinSurname';
|
|
4
|
-
declare type NameFieldRetailDef = 'organization' | 'organizationAddress' | 'organizationPhone' | 'organizationName' | 'legalForm' | 'generalSeniority' | 'lastJobExperience' | 'experience5Years' | 'jobsNumber' | 'beginDate' | 'addressFact' | 'addressRegistration' | 'addressRetail' | 'addressMatch' | 'sex' | 'birthPlace' | 'education' | 'housing' | 'amountWorkers' | 'employment' | 'employerActivities' | 'employerOrganization' | 'positionOrganization' | 'familyStatus' | 'familyMembers' | 'children' | 'dependents' | 'totalIncome' | 'expenses' | 'snils' | 'conscription' | 'armyIdFlg' | 'dulSerie' | 'dulNumber' | 'dulIssueDate' | 'dulSubdivisionCode' | 'dulIssuedBy' | 'participantDateRegistration' | 'retirementIncome' | 'rentalIncome' | 'otherIncome' | 'otherPayments' | 'additionalIncome' | 'wages' | 'mandatoryPayments' | 'bankruptcyFlg' | 'shareholderFlg' | 'legalEntityName' | 'creditInRshbCd' | 'bankEmployeeCode' | 'partInBusiness' | 'regionRetail' | 'calculator' | 'infoCard' | 'deliveryTime' | 'esiaAccountTypeCd' | 'comment';
|
|
4
|
+
declare type NameFieldRetailDef = 'organization' | 'organizationAddress' | 'organizationPhone' | 'organizationName' | 'legalForm' | 'generalSeniority' | 'lastJobExperience' | 'experience5Years' | 'jobsNumber' | 'beginDate' | 'addressFact' | 'addressRegistration' | 'addressRetail' | 'addressMatch' | 'sex' | 'birthPlace' | 'education' | 'housing' | 'amountWorkers' | 'employment' | 'employerActivities' | 'employerOrganization' | 'positionOrganization' | 'familyStatus' | 'familyMembers' | 'children' | 'dependents' | 'totalIncome' | 'expenses' | 'snils' | 'conscription' | 'armyIdFlg' | 'dulSerie' | 'dulNumber' | 'dulIssueDate' | 'dulSubdivisionCode' | 'dulIssuedBy' | 'participantDateRegistration' | 'retirementIncome' | 'rentalIncome' | 'otherIncome' | 'otherPayments' | 'additionalIncome' | 'wages' | 'mandatoryPayments' | 'bankruptcyFlg' | 'initiateBankruptcyFlg' | 'shareholderFlg' | 'legalEntityName' | 'creditInRshbCd' | 'bankEmployeeCode' | 'partInBusiness' | 'regionRetail' | 'calculator' | 'infoCard' | 'deliveryTime' | 'esiaAccountTypeCd' | 'comment';
|
|
5
5
|
export declare type NameFieldDef = NameFieldApplicationBaseDef | NameFieldConsentDef | NameFieldRetailDef | NameFieldCreditCardDef;
|
|
6
6
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicationFormData.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/applicationFormData.tsx"],"names":[],"mappings":";;AAGA,yCAAsD;AAE/C,MAAM,sBAAsB,GAAG,CAAC,WAAwB,EAAyB,EAAE;IACxF,MAAM,sBAAsB,GAAG,mCAAwB,CAAC,WAAW,CAAC,CAAC;IACrE,MAAM,WAAW,GAAqB;QACpC,EAAE,IAAI,EAAE,wBAAwB,EAAE,QAAQ,EAAE,IAAI,EAAE;QAClD,EAAE,IAAI,EAAE,oBAAoB,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC9C,EAAE,IAAI,E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AE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE;gBAC/D,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE;gBACrD,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE;aAChD;SACF;QACD;YACE,MAAM,EAAE,WAAW,CAAC,MAAM,CACxB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CACtE;SACF;KACF,CAAC;AACJ,CAAC,CAAC;AA9BW,QAAA,sBAAsB,0BA8BjC"}
|
|
@@ -43,10 +43,6 @@ const CREDIT_CARD_CONSENTS = {
|
|
|
43
43
|
text: 'Согласие на получение информационных материалов',
|
|
44
44
|
docId: 18,
|
|
45
45
|
},
|
|
46
|
-
consentPhotoFlg: {
|
|
47
|
-
text: 'Согласие на фотографирование',
|
|
48
|
-
docId: 17,
|
|
49
|
-
},
|
|
50
46
|
};
|
|
51
47
|
const DEBIT_CARD_CONSENTS = {
|
|
52
48
|
processPersonalDataFlg: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consents.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/consents.ts"],"names":[],"mappings":";;AAWA,MAAM,eAAe,GAAkD;IACrE,sBAAsB,EAAE;QACtB,IAAI,EAAE,2CAA2C;QACjD,KAAK,EAAE,CAAC;KACT;IACD,gBAAgB,EAAE;QAChB,IAAI,EAAE,wDAAwD;QAC9D,KAAK,EAAE,EAAE;KACV;IACD,kBAAkB,EAAE;QAClB,IAAI,EAAE,uDAAuD;QAC7D,KAAK,EAAE,CAAC;KACT;IACD,gBAAgB,EAAE;QAChB,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,CAAC;KACT;IACD,aAAa,EAAE;QACb,IAAI,EAAE,0BAA0B;QAChC,KAAK,EAAE,CAAC;KACT;CACF,CAAC;AAEF,MAAM,oBAAoB,GAAsD;IAC9E,sBAAsB,EAAE;QACtB,IAAI,EAAE,2CAA2C;QACjD,KAAK,EAAE,CAAC;KACT;IACD,gBAAgB,EAAE;QAChB,IAAI,EAAE,wDAAwD;QAC9D,KAAK,EAAE,EAAE;KACV;IACD,kBAAkB,EAAE;QAClB,IAAI,EAAE,uDAAuD;QAC7D,KAAK,EAAE,CAAC;KACT;IACD,gBAAgB,EAAE;QAChB,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,EAAE;KACV;IACD,yBAAyB,EAAE;QACzB,IAAI,EAAE,iDAAiD;QACvD,KAAK,EAAE,EAAE;KACV;
|
|
1
|
+
{"version":3,"file":"consents.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/consents.ts"],"names":[],"mappings":";;AAWA,MAAM,eAAe,GAAkD;IACrE,sBAAsB,EAAE;QACtB,IAAI,EAAE,2CAA2C;QACjD,KAAK,EAAE,CAAC;KACT;IACD,gBAAgB,EAAE;QAChB,IAAI,EAAE,wDAAwD;QAC9D,KAAK,EAAE,EAAE;KACV;IACD,kBAAkB,EAAE;QAClB,IAAI,EAAE,uDAAuD;QAC7D,KAAK,EAAE,CAAC;KACT;IACD,gBAAgB,EAAE;QAChB,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,CAAC;KACT;IACD,aAAa,EAAE;QACb,IAAI,EAAE,0BAA0B;QAChC,KAAK,EAAE,CAAC;KACT;CACF,CAAC;AAEF,MAAM,oBAAoB,GAAsD;IAC9E,sBAAsB,EAAE;QACtB,IAAI,EAAE,2CAA2C;QACjD,KAAK,EAAE,CAAC;KACT;IACD,gBAAgB,EAAE;QAChB,IAAI,EAAE,wDAAwD;QAC9D,KAAK,EAAE,EAAE;KACV;IACD,kBAAkB,EAAE;QAClB,IAAI,EAAE,uDAAuD;QAC7D,KAAK,EAAE,CAAC;KACT;IACD,gBAAgB,EAAE;QAChB,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,EAAE;KACV;IACD,yBAAyB,EAAE;QACzB,IAAI,EAAE,iDAAiD;QACvD,KAAK,EAAE,EAAE;KACV;CACF,CAAC;AAEF,MAAM,mBAAmB,GAAqD;IAC5E,sBAAsB,EAAE;QACtB,IAAI,EAAE,2CAA2C;QACjD,KAAK,EAAE,CAAC;KACT;IACD,gBAAgB,EAAE;QAChB,IAAI,EAAE,wDAAwD;QAC9D,KAAK,EAAE,EAAE;KACV;IACD,kBAAkB,EAAE;QAClB,IAAI,EAAE,uDAAuD;QAC7D,KAAK,EAAE,CAAC;KACT;IACD,gBAAgB,EAAE;QAChB,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,EAAE;KACV;IACD,YAAY,EAAE;QACZ,IAAI,EAAE,wBAAwB;QAC9B,KAAK,EAAE,EAAE;KACV;CACF,CAAC;AAEW,QAAA,wBAAwB,GAAG;IACtC,MAAM,EAAE,eAAe;IACvB,UAAU,EAAE,oBAAoB;IAChC,SAAS,EAAE,mBAAmB;CAC/B,CAAC"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { type CreateUserTaskDebitBody } from '../../retail/api/createUserTaskDebit';
|
|
2
|
-
import { type UpdateUserTaskBody } from '../../retail/api/updateUserTask';
|
|
2
|
+
import { type MarketingInfo, type UpdateUserTaskBody } from '../../retail/api/updateUserTask';
|
|
3
3
|
import { type LeadFormState } from '../../retail/model/LeadFormState';
|
|
4
|
-
import { type ReferalData } from '../../retail/model/ReferalData';
|
|
5
4
|
declare type getLeadFormTaskDataProps = {
|
|
6
5
|
participantId: number;
|
|
7
6
|
taskId: number;
|
|
8
7
|
profileId: number;
|
|
9
8
|
formData: LeadFormState;
|
|
10
|
-
|
|
9
|
+
marketingInfo: MarketingInfo | null;
|
|
11
10
|
};
|
|
12
|
-
export declare const getCreditLeadFormTaskData: ({ participantId, taskId, profileId, formData,
|
|
13
|
-
export declare const getDebitLeadFormTaskData: (formData: LeadFormState, programId: string,
|
|
11
|
+
export declare const getCreditLeadFormTaskData: ({ participantId, taskId, profileId, formData, marketingInfo, }: getLeadFormTaskDataProps) => UpdateUserTaskBody;
|
|
12
|
+
export declare const getDebitLeadFormTaskData: (formData: LeadFormState, programId: string, marketingInfo: MarketingInfo | null) => CreateUserTaskDebitBody;
|
|
14
13
|
export {};
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.getDebitLeadFormTaskData = exports.getCreditLeadFormTaskData = void 0;
|
|
3
3
|
/* eslint-disable camelcase */
|
|
4
|
-
const locationNavigator_1 = require("../../external/locationNavigator");
|
|
5
4
|
const utils_1 = require("../../retail/adaptors/utils");
|
|
6
5
|
const formatDate_1 = require("../../utils/formatDate");
|
|
7
6
|
const formatPhone_1 = require("../../utils/formatPhone");
|
|
8
7
|
const utils_2 = require("../DebitForm/utils");
|
|
9
|
-
const getCreditLeadFormTaskData = ({ participantId, taskId, profileId, formData,
|
|
8
|
+
const getCreditLeadFormTaskData = ({ participantId, taskId, profileId, formData, marketingInfo, }) => {
|
|
10
9
|
const { name, surname, middleName, limitedBirthday, phone, email } = formData;
|
|
11
|
-
const
|
|
12
|
-
const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
|
|
10
|
+
const taskSource = getTaskSource(marketingInfo?.utm_source);
|
|
13
11
|
return {
|
|
14
12
|
sendToBank: true,
|
|
15
13
|
taskKind: 'SHORT',
|
|
@@ -36,15 +34,14 @@ const getCreditLeadFormTaskData = ({ participantId, taskId, profileId, formData,
|
|
|
36
34
|
},
|
|
37
35
|
},
|
|
38
36
|
],
|
|
39
|
-
marketingInfo
|
|
37
|
+
marketingInfo,
|
|
40
38
|
},
|
|
41
39
|
};
|
|
42
40
|
};
|
|
43
41
|
exports.getCreditLeadFormTaskData = getCreditLeadFormTaskData;
|
|
44
|
-
const getDebitLeadFormTaskData = (formData, programId,
|
|
42
|
+
const getDebitLeadFormTaskData = (formData, programId, marketingInfo) => {
|
|
45
43
|
const { name, surname, middleName, limitedBirthday, phone, email } = formData;
|
|
46
|
-
const
|
|
47
|
-
const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
|
|
44
|
+
const taskSource = getTaskSource(marketingInfo?.utm_source);
|
|
48
45
|
return {
|
|
49
46
|
task: {
|
|
50
47
|
taskSource,
|
|
@@ -63,18 +60,24 @@ const getDebitLeadFormTaskData = (formData, programId, isTaskWithReferalCode) =>
|
|
|
63
60
|
}),
|
|
64
61
|
},
|
|
65
62
|
],
|
|
63
|
+
marketingInfo: {
|
|
64
|
+
bannerId: marketingInfo?.bannerId,
|
|
65
|
+
},
|
|
66
66
|
},
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
69
|
exports.getDebitLeadFormTaskData = getDebitLeadFormTaskData;
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
70
|
+
const getTaskSource = (source) => {
|
|
71
|
+
switch (source) {
|
|
72
|
+
case 'referal_sf': {
|
|
73
|
+
return 'ReferalSF';
|
|
74
|
+
}
|
|
75
|
+
case 'vse_svoe': {
|
|
76
|
+
return 'vseSvoe';
|
|
77
|
+
}
|
|
78
|
+
default: {
|
|
79
|
+
return globalThis.location.origin;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
79
82
|
};
|
|
80
83
|
//# sourceMappingURL=getLeadFormTaskData.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLeadFormTaskData.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/getLeadFormTaskData.ts"],"names":[],"mappings":";;AAAA,8BAA8B;AAC9B,
|
|
1
|
+
{"version":3,"file":"getLeadFormTaskData.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/getLeadFormTaskData.ts"],"names":[],"mappings":";;AAAA,8BAA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;IAE5D,OAAO;QACL,IAAI,EAAE;YACJ,UAAU;YACV,aAAa,EAAE;gBACb,IAAI,EAAE,qCAA6B,CAAC,SAAS,CAAC;aAC/C;YACD,YAAY,EAAE;gBACZ;oBACE,SAAS,EAAE,eAAe,IAAI,IAAA,uBAAU,EAAC,eAAe,EAAE,IAAI,CAAC;oBAC/D,OAAO,EAAE,UAAU;oBACnB,IAAI;oBACJ,OAAO;oBACP,mBAAmB,EAAE,IAAA,8BAAsB,EAAC;wBAC1C,KAAK,EAAE,KAAK,IAAI,IAAA,yBAAW,EAAC,KAAK,CAAC;wBAClC,KAAK;qBACN,CAAC;iBACH;aACF;YACD,aAAa,EAAE;gBACb,QAAQ,EAAE,aAAa,EAAE,QAAQ;aAClC;SACF;KACF,CAAC;AACJ,CAAC,CAAC;AA/BW,QAAA,wBAAwB,4BA+BnC;AAEF,MAAM,aAAa,GAAG,CAAC,MAAwB,EAAE,EAAE;IACjD,QAAQ,MAAM,EAAE;QACd,KAAK,YAAY,CAAC,CAAC;YACjB,OAAO,WAAW,CAAC;SACpB;QACD,KAAK,UAAU,CAAC,CAAC;YACf,OAAO,SAAS,CAAC;SAClB;QACD,OAAO,CAAC,CAAC;YACP,OAAO,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC;SACnC;KACF;AACH,CAAC,CAAC"}
|
|
@@ -3,6 +3,7 @@ exports.useApplicationLeadApi = void 0;
|
|
|
3
3
|
/* eslint-disable max-lines */
|
|
4
4
|
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
5
5
|
const useBool_1 = require("@redneckz/uni-jsx/lib/hooks/useBool");
|
|
6
|
+
const useSessionStore_1 = require("@redneckz/uni-jsx/lib/Store/useSessionStore");
|
|
6
7
|
const locationNavigator_1 = require("../../external/locationNavigator");
|
|
7
8
|
const createDraftTask_1 = require("../../retail/api/createDraftTask");
|
|
8
9
|
const createUserProfile_1 = require("../../retail/api/createUserProfile");
|
|
@@ -20,7 +21,6 @@ const useDialog_1 = require("../../ui-kit/DialogManager/useDialog");
|
|
|
20
21
|
const formatPhone_1 = require("../../utils/formatPhone");
|
|
21
22
|
const consents_1 = require("./consents");
|
|
22
23
|
const getLeadFormTaskData_1 = require("./getLeadFormTaskData");
|
|
23
|
-
const useLeadFormStore_1 = require("./useLeadFormStore");
|
|
24
24
|
const useSaveUserData_1 = require("./useSaveUserData");
|
|
25
25
|
const useSendLeadFormAspects_1 = require("./useSendLeadFormAspects");
|
|
26
26
|
// eslint-disable-next-line max-lines-per-function
|
|
@@ -28,7 +28,7 @@ const useApplicationLeadApi = ({ programId, nextStepLink, productType, data, })
|
|
|
28
28
|
const [isSending, { setTrue: startSending, setFalse: endSending }] = (0, useBool_1.useBool)(false);
|
|
29
29
|
const [ok, setOK] = (0, hooks_1.useState)();
|
|
30
30
|
const saveUserData = (0, useSaveUserData_1.useSaveUserData)();
|
|
31
|
-
const
|
|
31
|
+
const sessionStore = (0, useSessionStore_1.useSessionStore)();
|
|
32
32
|
const sendAspects = (0, useSendLeadFormAspects_1.useSendLeadFormAspects)({ data });
|
|
33
33
|
const navigator = (0, locationNavigator_1.locationNavigator)();
|
|
34
34
|
const goToNextStep = (0, hooks_1.useCallback)(() => {
|
|
@@ -44,7 +44,8 @@ const useApplicationLeadApi = ({ programId, nextStepLink, productType, data, })
|
|
|
44
44
|
const profileId = await (0, createUserProfile_1.createUserProfile)({
|
|
45
45
|
profile: { phone: (0, formatPhone_1.formatPhone)(transformedFormData.phone) },
|
|
46
46
|
});
|
|
47
|
-
const referalData =
|
|
47
|
+
const referalData = sessionStore.referalData;
|
|
48
|
+
const marketingInfo = sessionStore.marketingInfo;
|
|
48
49
|
if (!profileId) {
|
|
49
50
|
throw new Error();
|
|
50
51
|
}
|
|
@@ -55,6 +56,7 @@ const useApplicationLeadApi = ({ programId, nextStepLink, productType, data, })
|
|
|
55
56
|
formData: transformedFormData,
|
|
56
57
|
productType,
|
|
57
58
|
referalData,
|
|
59
|
+
marketingInfo,
|
|
58
60
|
saveUserData,
|
|
59
61
|
sendAspects,
|
|
60
62
|
});
|
|
@@ -111,15 +113,14 @@ const getAcceptedConsents = (formData, productType) => {
|
|
|
111
113
|
.filter((_) => formData[_])
|
|
112
114
|
.map((_) => consents[_]?.text);
|
|
113
115
|
};
|
|
114
|
-
const updateUserData = async ({ programId, profileId, formData, productType, referalData, saveUserData, sendAspects, }) => {
|
|
116
|
+
const updateUserData = async ({ programId, profileId, formData, productType, referalData, marketingInfo, saveUserData, sendAspects, }) => {
|
|
115
117
|
let taskId;
|
|
116
118
|
let participantId;
|
|
117
119
|
const transformedConsents = transformConsentsFields(formData, productType);
|
|
118
|
-
const isTaskWithReferalCode = referalData?.isTaskWithReferalCode;
|
|
119
120
|
await (0, updateUserProfile_1.updateUserProfile)((0, getUpdateUserProfile_1.getUpdateUserProfileData)(profileId, formData, transformedConsents));
|
|
120
121
|
try {
|
|
121
122
|
if (productType === 'debitCard') {
|
|
122
|
-
const debitData = await (0, createUserTaskDebit_1.createUserTaskDebit)((0, getLeadFormTaskData_1.getDebitLeadFormTaskData)(formData, programId,
|
|
123
|
+
const debitData = await (0, createUserTaskDebit_1.createUserTaskDebit)((0, getLeadFormTaskData_1.getDebitLeadFormTaskData)(formData, programId, marketingInfo));
|
|
123
124
|
taskId = debitData.taskId;
|
|
124
125
|
participantId = debitData.participantId;
|
|
125
126
|
}
|
|
@@ -135,10 +136,10 @@ const updateUserData = async ({ programId, profileId, formData, productType, ref
|
|
|
135
136
|
taskId,
|
|
136
137
|
profileId,
|
|
137
138
|
formData,
|
|
138
|
-
|
|
139
|
+
marketingInfo,
|
|
139
140
|
}));
|
|
140
141
|
}
|
|
141
|
-
if (
|
|
142
|
+
if (referalData?.referalCode) {
|
|
142
143
|
await (0, saveReferalInfo_1.saveReferalInfo)({
|
|
143
144
|
taskId,
|
|
144
145
|
...referalData,
|
|
@@ -152,19 +153,19 @@ const updateUserData = async ({ programId, profileId, formData, productType, ref
|
|
|
152
153
|
}
|
|
153
154
|
};
|
|
154
155
|
const transformConsentsFields = (formData, productType) => {
|
|
155
|
-
const { consentOthersFlg, consentPfrFlg, processPersonalDataFlg, consentInformFlg, consentProviderFlg, consentInformMaterialsFlg,
|
|
156
|
+
const { consentOthersFlg, consentPfrFlg, processPersonalDataFlg, consentInformFlg, consentProviderFlg, consentInformMaterialsFlg, consentFATCA, } = formData;
|
|
156
157
|
let consents;
|
|
157
158
|
if (productType === 'credit') {
|
|
158
159
|
consents = {
|
|
159
|
-
consentPhotoFlg: consentOthersFlg,
|
|
160
160
|
consentPfrFlg: consentPfrFlg,
|
|
161
161
|
consentInformMaterialsFlg: consentOthersFlg,
|
|
162
|
+
consentPhotoFlg: false,
|
|
162
163
|
};
|
|
163
164
|
}
|
|
164
165
|
else if (productType === 'creditCard') {
|
|
165
166
|
consents = {
|
|
166
167
|
consentInformMaterialsFlg,
|
|
167
|
-
consentPhotoFlg,
|
|
168
|
+
consentPhotoFlg: false,
|
|
168
169
|
};
|
|
169
170
|
}
|
|
170
171
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useApplicationLeadApi.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/useApplicationLeadApi.tsx"],"names":[],"mappings":";;AAAA,8BAA8B;AAC9B,uDAAoE;AACpE,iEAA8D;AAC9D,wEAAqE;AAErE,sEAAmE;AACnE,0EAAuE;AACvE,8EAA2E;AAC3E,0EAAuE;AACvE,8DAA2D;AAC3D,sEAAmE;AACnE,0EAAuE;AACvE,
|
|
1
|
+
{"version":3,"file":"useApplicationLeadApi.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/useApplicationLeadApi.tsx"],"names":[],"mappings":";;AAAA,8BAA8B;AAC9B,uDAAoE;AACpE,iEAA8D;AAC9D,iFAA8E;AAC9E,wEAAqE;AAErE,sEAAmE;AACnE,0EAAuE;AACvE,8EAA2E;AAC3E,0EAAuE;AACvE,8DAA2D;AAC3D,sEAAmE;AACnE,0EAAuE;AACvE,oEAAq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,IAAI,WAAW,KAAK,QAAQ,EAAE;QAC5B,QAAQ,GAAG;YACT,aAAa,EAAE,aAAa;YAC5B,yBAAyB,EAAE,gBAAgB;YAC3C,eAAe,EAAE,KAAK;SACvB,CAAC;KACH;SAAM,IAAI,WAAW,KAAK,YAAY,EAAE;QACvC,QAAQ,GAAG;YACT,yBAAyB;YACzB,eAAe,EAAE,KAAK;SACvB,CAAC;KACH;SAAM;QACL,QAAQ,GAAG;YACT,YAAY;YACZ,eAAe,EAAE,gBAAgB;SAClC,CAAC;KACH;IAED,OAAO;QACL,GAAG,QAAQ;QACX,sBAAsB;QACtB,gBAAgB;QAChB,kBAAkB;QAClB,oBAAoB,EAAE,gBAAgB;QACtC,0BAA0B,EAAE,gBAAgB;KAC7C,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,QAAuB,EAAiB,EAAE,CAAC,CAAC;IACrE,GAAG,QAAQ;IACX,OAAO,EAAE,QAAQ,CAAC,OAAO,EAAE,IAAI,EAAE;IACjC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE;IAC3B,UAAU,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE;CACxC,CAAC,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { type MarketingInfo } from '../../retail/api/updateUserTask';
|
|
1
2
|
import { type LeadFormState } from '../../retail/model/LeadFormState';
|
|
3
|
+
import { type ReferalData } from '../../retail/model/ReferalData';
|
|
2
4
|
import { type FieldRetailDef } from '../../retail/model/RetailFormContent';
|
|
3
5
|
import { EsiaStatuses, type ProductType } from './ApplicationLeadFormContent';
|
|
4
6
|
declare type InitApplicationLeadProps = {
|
|
@@ -8,5 +10,9 @@ declare type InitApplicationLeadProps = {
|
|
|
8
10
|
setEsiaStatus: (status: EsiaStatuses) => void;
|
|
9
11
|
esiaAuthSuccess: boolean;
|
|
10
12
|
};
|
|
13
|
+
export interface ApplicationLeadStore {
|
|
14
|
+
marketingInfo: MarketingInfo | null;
|
|
15
|
+
referalData: ReferalData | null;
|
|
16
|
+
}
|
|
11
17
|
export declare const useInitApplicationLead: ({ inputs, productType, setEsiaStatus, esiaAuthSuccess, }: InitApplicationLeadProps) => LeadFormState;
|
|
12
18
|
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.useInitApplicationLead = void 0;
|
|
3
|
+
/* eslint-disable camelcase */
|
|
3
4
|
/* eslint-disable max-lines-per-function */
|
|
4
5
|
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
|
+
const useSessionStore_1 = require("@redneckz/uni-jsx/lib/Store/useSessionStore");
|
|
5
7
|
const useSetter_1 = require("../../hooks/useSetter");
|
|
6
8
|
const esiaRequestProfile_1 = require("../../retail/api/esiaRequestProfile");
|
|
7
9
|
const getSessionQuery_1 = require("../../utils/getSessionQuery");
|
|
@@ -12,6 +14,7 @@ const useLeadFormStore_1 = require("./useLeadFormStore");
|
|
|
12
14
|
const useInitApplicationLead = ({ inputs, productType, setEsiaStatus, esiaAuthSuccess, }) => {
|
|
13
15
|
const leadFormStore = (0, useLeadFormStore_1.useLeadFormStore)();
|
|
14
16
|
const saveForm = (0, useSetter_1.useSetter)(leadFormStore, 'leadForm');
|
|
17
|
+
const sessionStore = (0, useSessionStore_1.useSessionStore)();
|
|
15
18
|
const queryFromStorage = globalThis.sessionStorage?.getItem(getSessionQuery_1.QUERY_STORAGE_KEY);
|
|
16
19
|
const initialFormState = (0, hooks_1.useMemo)(() => (0, getInitialFormState_1.getInitialFormState)(inputs, leadFormStore.leadForm, esiaAuthSuccess), [inputs, leadFormStore.leadForm]);
|
|
17
20
|
const requestEsiaProfile = (0, hooks_1.useCallback)(async (code, state) => {
|
|
@@ -38,23 +41,15 @@ const useInitApplicationLead = ({ inputs, productType, setEsiaStatus, esiaAuthSu
|
|
|
38
41
|
}, []);
|
|
39
42
|
(0, hooks_1.useEffect)(() => {
|
|
40
43
|
leadFormStore.productType = productType;
|
|
41
|
-
const { code, state, referalCode, refererCode, productId } = getLeadQueryParams(
|
|
44
|
+
const { code, state, referalCode, refererCode, productId, marketingInfo } = getLeadQueryParams(queryFromStorage, sessionStore);
|
|
42
45
|
if (referalCode) {
|
|
43
|
-
|
|
46
|
+
sessionStore.referalData = {
|
|
44
47
|
refererCode,
|
|
45
48
|
referalCode,
|
|
46
49
|
productId,
|
|
47
|
-
isTaskWithReferalCode: true,
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
else if (!code) {
|
|
51
|
-
leadFormStore.referalData = {
|
|
52
|
-
refererCode: null,
|
|
53
|
-
referalCode: null,
|
|
54
|
-
productId: null,
|
|
55
|
-
isTaskWithReferalCode: false,
|
|
56
50
|
};
|
|
57
51
|
}
|
|
52
|
+
sessionStore.marketingInfo = marketingInfo;
|
|
58
53
|
if (code && state) {
|
|
59
54
|
requestEsiaProfile(code, state);
|
|
60
55
|
}
|
|
@@ -66,19 +61,32 @@ const useInitApplicationLead = ({ inputs, productType, setEsiaStatus, esiaAuthSu
|
|
|
66
61
|
return initialFormState;
|
|
67
62
|
};
|
|
68
63
|
exports.useInitApplicationLead = useInitApplicationLead;
|
|
69
|
-
const getLeadQueryParams = (
|
|
64
|
+
const getLeadQueryParams = (queryFromStorage, sessionStore) => {
|
|
65
|
+
const referalData = sessionStore.referalData;
|
|
66
|
+
const marketingInfoFromStorage = sessionStore.marketingInfo;
|
|
70
67
|
const queryStorage = new URLSearchParams(decodeURIComponent(queryFromStorage || ''));
|
|
71
68
|
const code = queryStorage.get('code');
|
|
72
69
|
const state = queryStorage.get('state');
|
|
73
70
|
const referalCode = code ? referalData?.referalCode : queryStorage.get('referalCode');
|
|
74
71
|
const refererCode = code ? referalData?.refererCode : queryStorage.get('refererCode');
|
|
75
72
|
const productId = code ? referalData?.productId : queryStorage.get('productId');
|
|
73
|
+
const marketingInfo = code
|
|
74
|
+
? marketingInfoFromStorage
|
|
75
|
+
: {
|
|
76
|
+
utm_campaign: queryStorage.get('utm_campaign'),
|
|
77
|
+
utm_medium: queryStorage.get('utm_medium'),
|
|
78
|
+
utm_source: queryStorage.get('utm_source'),
|
|
79
|
+
utm_content: queryStorage.get('utm_content'),
|
|
80
|
+
utm_term: queryStorage.get('utm_term'),
|
|
81
|
+
bannerId: queryStorage.get('bannerId'),
|
|
82
|
+
};
|
|
76
83
|
return {
|
|
77
84
|
code,
|
|
78
85
|
state,
|
|
79
86
|
referalCode,
|
|
80
87
|
refererCode,
|
|
81
88
|
productId,
|
|
89
|
+
marketingInfo,
|
|
82
90
|
};
|
|
83
91
|
};
|
|
84
92
|
//# sourceMappingURL=useInitApplicationLead.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInitApplicationLead.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/useInitApplicationLead.ts"],"names":[],"mappings":";;AAAA,2CAA2C;AAC3C,uDAA8E;AAC9E,qDAAkD;AAClD,4EAAyE;
|
|
1
|
+
{"version":3,"file":"useInitApplicationLead.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/useInitApplicationLead.ts"],"names":[],"mappings":";;AAAA,8BAA8B;AAC9B,2CAA2C;AAC3C,uDAA8E;AAC9E,iFAA8E;AAC9E,qDAAkD;AAClD,4EAAyE;AAKzE,iEAAgE;AAChE,6EAA8E;AAC9E,+DAA4D;AAC5D,yDAAsD;AACtD,yDAAsD;AAe/C,MAAM,sBAAsB,GAAG,CAAC,EACrC,MAAM,EACN,WAAW,EACX,aAAa,EACb,eAAe,GACU,EAAiB,EAAE;IAC5C,MAAM,aAAa,GAAG,IAAA,mCAAgB,GAAE,CAAC;IACzC,MAAM,QAAQ,GAAG,IAAA,qBAAS,EAAC,aAAa,EAAE,UAAU,CAAC,CAAC;IACtD,MAAM,YAAY,GAAG,IAAA,iCAAe,GAAwB,CAAC;IAC7D,MAAM,gBAAgB,GAAG,UAAU,CAAC,cAAc,EA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