@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
|
@@ -11,14 +11,13 @@ import {
|
|
|
11
11
|
INCOME_CERTIFICATE,
|
|
12
12
|
} from './utils';
|
|
13
13
|
|
|
14
|
-
export const parseDraftTask = (task: Task):
|
|
14
|
+
export const parseDraftTask = (task: Task): LeadFormState => {
|
|
15
15
|
const participant = task.participants[0];
|
|
16
16
|
const {
|
|
17
17
|
classCard: cardCategory,
|
|
18
18
|
codeWord,
|
|
19
19
|
paymentSystemTypeCd: paymentSystem,
|
|
20
20
|
currencyCode: currency,
|
|
21
|
-
taskSource,
|
|
22
21
|
} = task;
|
|
23
22
|
|
|
24
23
|
const { loanAmount: moneyValue, creditPeriod: monthsValue, paymentTypeCd } = task;
|
|
@@ -72,7 +71,7 @@ export const parseDraftTask = (task: Task): [LeadFormState, boolean] => {
|
|
|
72
71
|
profile,
|
|
73
72
|
} = participant;
|
|
74
73
|
|
|
75
|
-
|
|
74
|
+
return {
|
|
76
75
|
currency: currency?.key,
|
|
77
76
|
paymentSystem: getSelectValue(paymentSystem),
|
|
78
77
|
cardCategory: getSelectValue(cardCategory),
|
|
@@ -129,6 +128,4 @@ export const parseDraftTask = (task: Task): [LeadFormState, boolean] => {
|
|
|
129
128
|
...getParticipantContacts(participantContacts),
|
|
130
129
|
...getParticipantGender(genderCd),
|
|
131
130
|
};
|
|
132
|
-
|
|
133
|
-
return [taskFromDraft, taskSource === 'ReferalSF'];
|
|
134
131
|
};
|
|
@@ -3,7 +3,7 @@ import { useCallback, useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
|
3
3
|
import { type CustomFieldProps } from '../../../ui-kit/FormField/CustomFieldProps';
|
|
4
4
|
import { type DaDataSuggestion } from '../../api/dadataHints/dadataHintsType';
|
|
5
5
|
import { getOrganizationFromInn } from '../../api/getOrganizationFromInn';
|
|
6
|
-
import { useRetailFormStore } from '../../hooks/useRetailFormStore';
|
|
6
|
+
import { useRetailFormStore, type CreditFormStoreSlice } from '../../hooks/useRetailFormStore';
|
|
7
7
|
import { isEsiaAuthorize } from '../../utils/isEsiaAuthorize';
|
|
8
8
|
import { updateOrganizationFields } from '../../utils/updateOrganizationFields';
|
|
9
9
|
import { DaDataInputControl } from '../DaDataInputControl/DaDataInputControl';
|
|
@@ -19,11 +19,7 @@ export const DaDataInnField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
|
19
19
|
}, []);
|
|
20
20
|
|
|
21
21
|
useEffect(() => {
|
|
22
|
-
if (
|
|
23
|
-
!esiaAccountTypeCd ||
|
|
24
|
-
!inn ||
|
|
25
|
-
!(employerActivities && employerOrganization && organization && amountWorkers)
|
|
26
|
-
) {
|
|
22
|
+
if (!esiaAccountTypeCd || !inn || !isDictionariesAlreadyLoad(store as CreditFormStoreSlice)) {
|
|
27
23
|
return;
|
|
28
24
|
}
|
|
29
25
|
(async () => {
|
|
@@ -46,3 +42,15 @@ export const DaDataInnField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
|
46
42
|
/>
|
|
47
43
|
);
|
|
48
44
|
});
|
|
45
|
+
|
|
46
|
+
const isDictionariesAlreadyLoad = (store: CreditFormStoreSlice) => {
|
|
47
|
+
const { employerActivities, employerOrganization, organization, amountWorkers, productType } =
|
|
48
|
+
store;
|
|
49
|
+
|
|
50
|
+
return [
|
|
51
|
+
employerOrganization,
|
|
52
|
+
organization,
|
|
53
|
+
amountWorkers,
|
|
54
|
+
productType === 'creditCard' ? employerActivities : true,
|
|
55
|
+
].every(Boolean);
|
|
56
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { CheckboxWithError } from '../../../ui-kit/Checkbox/CheckboxWithError';
|
|
3
|
+
import { type CustomFieldProps } from '../../../ui-kit/FormField/CustomFieldProps';
|
|
4
|
+
|
|
5
|
+
export const InitiateBankruptcyFlgField = JSX<CustomFieldProps>(({ field, input }) => (
|
|
6
|
+
<CheckboxWithError
|
|
7
|
+
text="Я планирую в ближайшее время инициировать дело о банкротстве в отношении себя"
|
|
8
|
+
{...field(input?.name ?? '')}
|
|
9
|
+
/>
|
|
10
|
+
));
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/* eslint-disable max-lines */
|
|
2
|
-
|
|
3
2
|
import { type CreditCardSectionsProps } from '../components/CreditCardForm/CreditCardFormContent';
|
|
4
3
|
|
|
5
|
-
const PERSONAL_DATA: CreditCardSectionsProps[] = [
|
|
4
|
+
export const PERSONAL_DATA: CreditCardSectionsProps[] = [
|
|
6
5
|
{
|
|
7
6
|
title: 'Персональные данные',
|
|
8
7
|
columns: 2,
|
|
@@ -37,10 +36,6 @@ const PERSONAL_DATA: CreditCardSectionsProps[] = [
|
|
|
37
36
|
},
|
|
38
37
|
],
|
|
39
38
|
},
|
|
40
|
-
];
|
|
41
|
-
|
|
42
|
-
const PERSONAL_INFO_CONTENT: CreditCardSectionsProps[] = [
|
|
43
|
-
...PERSONAL_DATA,
|
|
44
39
|
{
|
|
45
40
|
inputs: [
|
|
46
41
|
{
|
|
@@ -49,265 +44,11 @@ const PERSONAL_INFO_CONTENT: CreditCardSectionsProps[] = [
|
|
|
49
44
|
dadata: true,
|
|
50
45
|
filledByEsia: true,
|
|
51
46
|
},
|
|
52
|
-
{
|
|
53
|
-
name: 'education',
|
|
54
|
-
required: true,
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
title: 'Адрес регистрации по месту жительства',
|
|
60
|
-
columns: 1,
|
|
61
|
-
inputs: [],
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
inputs: [
|
|
65
|
-
{
|
|
66
|
-
name: 'addressRegistration',
|
|
67
|
-
required: true,
|
|
68
|
-
dadata: true,
|
|
69
|
-
filledByEsia: true,
|
|
70
|
-
},
|
|
71
|
-
{ name: 'addressMatch' },
|
|
72
|
-
],
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
columns: 2,
|
|
76
|
-
inputs: [{ name: 'participantDateRegistration', required: true }],
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
title: 'Адрес фактического проживания (место пребывания РФ)',
|
|
80
|
-
inputs: [],
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
columns: 2,
|
|
84
|
-
inputs: [{ name: 'housing', required: true }],
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
inputs: [{ name: 'addressFact', required: true, dadata: true }],
|
|
88
|
-
},
|
|
89
|
-
];
|
|
90
|
-
const EMPLOYMENT_CONTENT: CreditCardSectionsProps[] = [
|
|
91
|
-
{
|
|
92
|
-
title: 'Данные о трудоустройстве',
|
|
93
|
-
inputs: [],
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
inputs: [
|
|
97
|
-
{
|
|
98
|
-
name: 'infoCard',
|
|
99
|
-
label:
|
|
100
|
-
'Клиент на момент оформления заявки на кредит должен быть: официально трудоустроен более 6 месяцев, ' +
|
|
101
|
-
'если Клиент получает з/п на счет РСХБ, то трудоустроен более 3 месяцев, не должен находиться в декретном отпуске',
|
|
102
|
-
},
|
|
103
|
-
],
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
inputs: [
|
|
107
|
-
{ name: 'employment', required: true },
|
|
108
|
-
{ name: 'organizationName', required: true, dadata: true, filledByEsia: true },
|
|
109
|
-
],
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
columns: 2,
|
|
113
|
-
inputs: [
|
|
114
|
-
{ name: 'inn', required: true, dadata: true, filledByEsia: true },
|
|
115
|
-
{ name: 'legalForm', required: true },
|
|
116
|
-
],
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
inputs: [
|
|
120
|
-
{ name: 'organization', required: true },
|
|
121
|
-
{ name: 'amountWorkers', required: true },
|
|
122
|
-
],
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
columns: 2,
|
|
126
|
-
inputs: [
|
|
127
|
-
{ name: 'employerActivities', required: true },
|
|
128
|
-
{ name: 'employerOrganization', required: true },
|
|
129
|
-
{ name: 'generalSeniority', required: true, filledByEsia: true },
|
|
130
|
-
{ name: 'lastJobExperience', required: true, filledByEsia: true },
|
|
131
|
-
{ name: 'experience5Years', required: true, filledByEsia: true },
|
|
132
|
-
{ name: 'jobsNumber', required: true, filledByEsia: true },
|
|
133
|
-
],
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
inputs: [
|
|
137
|
-
{
|
|
138
|
-
name: 'organizationPhone',
|
|
139
|
-
label: 'Телефон работодателя',
|
|
140
|
-
required: true,
|
|
141
|
-
},
|
|
142
|
-
{ name: 'beginDate', required: true, filledByEsia: true },
|
|
143
|
-
],
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
columns: 2,
|
|
147
|
-
inputs: [
|
|
148
|
-
{ name: 'positionOrganization', required: true },
|
|
149
|
-
{
|
|
150
|
-
name: 'partInBusiness',
|
|
151
|
-
required: true,
|
|
152
|
-
condition: { name: 'positionOrganization', values: ['BUSINESS_OWNER'] },
|
|
153
|
-
},
|
|
154
|
-
],
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
title: 'Адрес работодателя',
|
|
158
|
-
inputs: [],
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
inputs: [{ name: 'organizationAddress', required: true, dadata: true }],
|
|
162
|
-
},
|
|
163
|
-
];
|
|
164
|
-
const FAMILY_STATUS_AND_INCOME_CONTENT: CreditCardSectionsProps[] = [
|
|
165
|
-
{
|
|
166
|
-
title: 'Семейное положение',
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
columns: 1,
|
|
170
|
-
inputs: [{ name: 'familyStatus', required: true }],
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
columns: 1,
|
|
174
|
-
inputs: [{ name: 'children', required: true }],
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
columns: 2,
|
|
178
|
-
inputs: [{ name: 'dependents', required: true }, { name: 'familyMembers' }],
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
title: 'Совокупный доход',
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
columns: 1,
|
|
185
|
-
inputs: [
|
|
186
|
-
{
|
|
187
|
-
name: 'confirmationIncome',
|
|
188
|
-
required: true,
|
|
189
|
-
filledByEsia: true,
|
|
190
|
-
},
|
|
191
|
-
],
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
inputs: [
|
|
195
|
-
{
|
|
196
|
-
name: 'infoCard',
|
|
197
|
-
label: 'Сумма основного и дополнительных доходов после вычета налога',
|
|
198
|
-
},
|
|
199
|
-
],
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
columns: 1,
|
|
203
|
-
inputs: [{ name: 'wages', required: true, filledByEsia: true }],
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
columns: 1,
|
|
207
|
-
inputs: [
|
|
208
|
-
{
|
|
209
|
-
name: 'retirementIncome',
|
|
210
|
-
required: true,
|
|
211
|
-
condition: { name: 'employment', values: ['RETIREE'] },
|
|
212
|
-
},
|
|
213
|
-
],
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
columns: 1,
|
|
217
|
-
inputs: [{ name: 'mandatoryPayments', required: true }],
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
columns: 1,
|
|
221
|
-
inputs: [{ name: 'snils', required: true }],
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
columns: 1,
|
|
225
|
-
inputs: [{ name: 'conscription', required: true }],
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
columns: 2,
|
|
229
|
-
inputs: [{ name: 'armyIdFlg' }],
|
|
230
|
-
},
|
|
231
|
-
];
|
|
232
|
-
const ADDITIONAL_CONTENT: CreditCardSectionsProps[] = [
|
|
233
|
-
{
|
|
234
|
-
title: 'Дополнительные сведения',
|
|
235
|
-
columns: 1,
|
|
236
|
-
inputs: [],
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
inputs: [{ name: 'bankruptcyFlg' }],
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
inputs: [{ name: 'shareholderFlg' }],
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
inputs: [{ name: 'legalEntityName' }],
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
inputs: [{ name: 'creditInRshbCd' }],
|
|
249
|
-
},
|
|
250
|
-
];
|
|
251
|
-
export const COMMON_RETAIL_CONTENT: CreditCardSectionsProps[][] = [
|
|
252
|
-
PERSONAL_INFO_CONTENT,
|
|
253
|
-
EMPLOYMENT_CONTENT,
|
|
254
|
-
FAMILY_STATUS_AND_INCOME_CONTENT,
|
|
255
|
-
ADDITIONAL_CONTENT,
|
|
256
|
-
];
|
|
257
|
-
export const DELIVERY_CREDIT_CONTENT: CreditCardSectionsProps[] = [
|
|
258
|
-
{
|
|
259
|
-
title: 'Отделение Банка',
|
|
260
|
-
columns: 1,
|
|
261
|
-
inputs: [],
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
inputs: [{ name: 'regionRetail', required: true }],
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
inputs: [{ name: 'addressRetail', required: true }],
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
title: 'Код представителя Банка',
|
|
271
|
-
columns: 1,
|
|
272
|
-
inputs: [],
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
inputs: [
|
|
276
|
-
{
|
|
277
|
-
name: 'infoCard',
|
|
278
|
-
label: 'Если представитель Банка помогал Вам в заведении заявки, введите здесь его код',
|
|
279
|
-
},
|
|
280
|
-
],
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
inputs: [{ name: 'bankEmployeeCode' }],
|
|
284
|
-
},
|
|
285
|
-
];
|
|
286
|
-
export const CREDIT_CARD_CONTENT: CreditCardSectionsProps[] = [
|
|
287
|
-
{
|
|
288
|
-
title: 'Параметры карты',
|
|
289
|
-
inputs: [],
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
inputs: [
|
|
293
|
-
{ name: 'currency', required: true },
|
|
294
|
-
{ name: 'paymentSystem', required: true },
|
|
295
|
-
{ name: 'cardCategory', required: true },
|
|
296
|
-
{ name: 'codeWord', required: true },
|
|
297
|
-
],
|
|
298
|
-
},
|
|
299
|
-
];
|
|
300
|
-
export const CALCULATOR_CONTENT: CreditCardSectionsProps[] = [
|
|
301
|
-
{
|
|
302
|
-
columns: 1,
|
|
303
|
-
inputs: [
|
|
304
|
-
{
|
|
305
|
-
name: 'calculator',
|
|
306
|
-
},
|
|
307
47
|
],
|
|
308
48
|
},
|
|
309
49
|
];
|
|
310
|
-
|
|
50
|
+
|
|
51
|
+
export const DELIVERY_CARD_CONTENT: CreditCardSectionsProps[] = [
|
|
311
52
|
{
|
|
312
53
|
title: 'Регион обслуживания карты',
|
|
313
54
|
columns: 1,
|
|
@@ -416,103 +157,3 @@ export const DELIVERY_DEBIT_CARD_CONTENT: CreditCardSectionsProps[] = [
|
|
|
416
157
|
],
|
|
417
158
|
},
|
|
418
159
|
];
|
|
419
|
-
export const DEBIT_PERSONAL_INFO_CONTENT: CreditCardSectionsProps[] = [
|
|
420
|
-
...PERSONAL_DATA,
|
|
421
|
-
{
|
|
422
|
-
inputs: [
|
|
423
|
-
{
|
|
424
|
-
name: 'dulIssuedBy',
|
|
425
|
-
required: true,
|
|
426
|
-
dadata: true,
|
|
427
|
-
filledByEsia: true,
|
|
428
|
-
},
|
|
429
|
-
],
|
|
430
|
-
},
|
|
431
|
-
{
|
|
432
|
-
title: 'Адрес регистрации по месту жительства',
|
|
433
|
-
columns: 1,
|
|
434
|
-
inputs: [],
|
|
435
|
-
},
|
|
436
|
-
{
|
|
437
|
-
inputs: [
|
|
438
|
-
{
|
|
439
|
-
name: 'addressRegistration',
|
|
440
|
-
required: true,
|
|
441
|
-
dadata: true,
|
|
442
|
-
filledByEsia: true,
|
|
443
|
-
},
|
|
444
|
-
{ name: 'addressMatch' },
|
|
445
|
-
],
|
|
446
|
-
},
|
|
447
|
-
{
|
|
448
|
-
title: 'Адрес фактического проживания (место пребывания РФ)',
|
|
449
|
-
inputs: [],
|
|
450
|
-
},
|
|
451
|
-
{
|
|
452
|
-
inputs: [{ name: 'addressFact', required: true, dadata: true }],
|
|
453
|
-
},
|
|
454
|
-
];
|
|
455
|
-
export const DEBIT_CARD_CONTENT: CreditCardSectionsProps[] = [
|
|
456
|
-
{
|
|
457
|
-
title: 'Параметры карты',
|
|
458
|
-
inputs: [],
|
|
459
|
-
},
|
|
460
|
-
{
|
|
461
|
-
inputs: [
|
|
462
|
-
{ name: 'currency', required: true },
|
|
463
|
-
{ name: 'paymentSystem', required: true },
|
|
464
|
-
{ name: 'cardCategory', required: true },
|
|
465
|
-
],
|
|
466
|
-
},
|
|
467
|
-
{
|
|
468
|
-
title: 'Отображение на карте',
|
|
469
|
-
inputs: [],
|
|
470
|
-
},
|
|
471
|
-
{
|
|
472
|
-
columns: 2,
|
|
473
|
-
inputs: [{ name: 'latinName' }, { name: 'latinSurname', required: true }],
|
|
474
|
-
},
|
|
475
|
-
{
|
|
476
|
-
inputs: [
|
|
477
|
-
{
|
|
478
|
-
name: 'infoCard',
|
|
479
|
-
label: 'Проверьте корректность заполненных полей, при необходимости внесите изменения.',
|
|
480
|
-
},
|
|
481
|
-
],
|
|
482
|
-
},
|
|
483
|
-
{
|
|
484
|
-
inputs: [
|
|
485
|
-
{
|
|
486
|
-
name: 'infoCard',
|
|
487
|
-
label:
|
|
488
|
-
// eslint-disable-next-line max-len
|
|
489
|
-
'Количество символов ограничивается 20. При этом, если фамилия и имя на карте содержит более 21 символа, то необходимо сократить имя и указывать на карте только первую букву имени и фамилию, если при таком сокращении фамилия и имя не умещается в количество символов – 20, то указывать только фамилию.',
|
|
490
|
-
},
|
|
491
|
-
],
|
|
492
|
-
},
|
|
493
|
-
{
|
|
494
|
-
inputs: [{ name: 'codeWord', required: true }],
|
|
495
|
-
},
|
|
496
|
-
];
|
|
497
|
-
export const DELIVERY_CREDIT_CARD_CONTENT: CreditCardSectionsProps[] = [
|
|
498
|
-
...DELIVERY_DEBIT_CARD_CONTENT,
|
|
499
|
-
{
|
|
500
|
-
inputs: [
|
|
501
|
-
{
|
|
502
|
-
name: 'infoCard',
|
|
503
|
-
label: 'Если представитель Банка помогал Вам в заведении заявки, введите здесь его код',
|
|
504
|
-
condition: {
|
|
505
|
-
name: 'methodObtain',
|
|
506
|
-
values: ['office'],
|
|
507
|
-
},
|
|
508
|
-
},
|
|
509
|
-
{
|
|
510
|
-
name: 'bankEmployeeCode',
|
|
511
|
-
condition: {
|
|
512
|
-
name: 'methodObtain',
|
|
513
|
-
values: ['office'],
|
|
514
|
-
},
|
|
515
|
-
},
|
|
516
|
-
],
|
|
517
|
-
},
|
|
518
|
-
];
|
|
@@ -42,6 +42,7 @@ import { FamilyStatusField } from './components/Fields/FamilyStatusField';
|
|
|
42
42
|
import { GeneralSeniorityField } from './components/Fields/GeneralSeniorityField';
|
|
43
43
|
import { HousingField } from './components/Fields/HousingField';
|
|
44
44
|
import { InfoCardField } from './components/Fields/InfoCardField';
|
|
45
|
+
import { InitiateBankruptcyFlgField } from './components/Fields/InitiateBankruptcyFlgField';
|
|
45
46
|
import { JobsNumberField } from './components/Fields/JobsNumberField';
|
|
46
47
|
import { LastJobExperienceField } from './components/Fields/LastJobExperienceField';
|
|
47
48
|
import { LatinNameField } from './components/Fields/LatinNameField';
|
|
@@ -88,7 +89,6 @@ export const InputsConsentsMap = {
|
|
|
88
89
|
consentInformFlg: ConsentField,
|
|
89
90
|
consentPfrFlg: ConsentField,
|
|
90
91
|
consentInformMaterialsFlg: ConsentField,
|
|
91
|
-
consentPhotoFlg: ConsentField,
|
|
92
92
|
consentFATCA: ConsentField,
|
|
93
93
|
};
|
|
94
94
|
|
|
@@ -136,6 +136,7 @@ export const InputsRetailMap = {
|
|
|
136
136
|
wages: WagesField,
|
|
137
137
|
mandatoryPayments: MandatoryPaymentsField,
|
|
138
138
|
bankruptcyFlg: BankruptcyFlgField,
|
|
139
|
+
initiateBankruptcyFlg: InitiateBankruptcyFlgField,
|
|
139
140
|
shareholderFlg: ShareholderFlgField,
|
|
140
141
|
legalEntityName: LegalEntityNameField,
|
|
141
142
|
creditInRshbCd: CreditInRshbCdField,
|
|
@@ -16,7 +16,6 @@ export interface CreditCardFormConsents {
|
|
|
16
16
|
consentOthersFlg?: boolean;
|
|
17
17
|
consentInformFlg?: boolean;
|
|
18
18
|
consentInformMaterialsFlg?: boolean;
|
|
19
|
-
consentPhotoFlg?: boolean;
|
|
20
19
|
}
|
|
21
20
|
|
|
22
21
|
export interface DebitCardFormConsents {
|
|
@@ -84,7 +83,9 @@ export type File = {
|
|
|
84
83
|
|
|
85
84
|
export type FormRetailConsents = CreditFormConsents &
|
|
86
85
|
CreditCardFormConsents &
|
|
87
|
-
DebitCardFormConsents
|
|
86
|
+
DebitCardFormConsents & {
|
|
87
|
+
consentPhotoFlg?: boolean;
|
|
88
|
+
};
|
|
88
89
|
|
|
89
90
|
// TODO Какая то часть должна быть взята из RetailAPI
|
|
90
91
|
export interface LeadFormState extends FormRetailConsents, FormStateDeliveryType {
|
|
@@ -169,6 +170,7 @@ export interface LeadFormState extends FormRetailConsents, FormStateDeliveryType
|
|
|
169
170
|
wages?: string;
|
|
170
171
|
creditInRshbCd?: Option;
|
|
171
172
|
bankruptcyFlg?: boolean;
|
|
173
|
+
initiateBankruptcyFlg?: boolean;
|
|
172
174
|
shareholderFlg?: boolean;
|
|
173
175
|
legalEntityName?: string;
|
|
174
176
|
partInBusiness?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type LeadFormState } from '../model/LeadFormState';
|
|
2
2
|
|
|
3
|
-
export const
|
|
3
|
+
export const getMainFormStateMap = (isCredit = false): Partial<LeadFormState>[] => [
|
|
4
4
|
{
|
|
5
5
|
surname: '',
|
|
6
6
|
name: '',
|
|
@@ -55,8 +55,9 @@ export const mainFormStateMap: Partial<LeadFormState>[] = [
|
|
|
55
55
|
wages: undefined,
|
|
56
56
|
mandatoryPayments: undefined,
|
|
57
57
|
snils: '',
|
|
58
|
-
armyIdFlg: false,
|
|
58
|
+
armyIdFlg: isCredit ? undefined : false,
|
|
59
59
|
esiaAccountTypeCd: { key: '', text: '' },
|
|
60
|
+
initiateBankruptcyFlg: isCredit ? false : undefined,
|
|
60
61
|
},
|
|
61
62
|
{
|
|
62
63
|
bankruptcyFlg: false,
|
package/package.json
CHANGED
|
@@ -12,7 +12,6 @@ export const getApplicationFormData = (productType: ProductType): SectionsRetail
|
|
|
12
12
|
{ name: 'consentInformFlg' },
|
|
13
13
|
{ name: 'consentPfrFlg' },
|
|
14
14
|
{ name: 'consentInformMaterialsFlg' },
|
|
15
|
-
{ name: 'consentPhotoFlg' },
|
|
16
15
|
{ name: 'consentFATCA', required: true },
|
|
17
16
|
];
|
|
18
17
|
|
|
@@ -53,10 +53,6 @@ const CREDIT_CARD_CONSENTS: Record<keyof CreditCardFormConsents, ConsentData> =
|
|
|
53
53
|
text: 'Согласие на получение информационных материалов',
|
|
54
54
|
docId: 18,
|
|
55
55
|
},
|
|
56
|
-
consentPhotoFlg: {
|
|
57
|
-
text: 'Согласие на фотографирование',
|
|
58
|
-
docId: 17,
|
|
59
|
-
},
|
|
60
56
|
};
|
|
61
57
|
|
|
62
58
|
const DEBIT_CARD_CONSENTS: Record<keyof DebitCardFormConsents, ConsentData> = {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { locationNavigator } from '../../external/locationNavigator';
|
|
3
2
|
import { getParticipantContacts } from '../../retail/adaptors/utils';
|
|
4
3
|
import { type CreateUserTaskDebitBody } from '../../retail/api/createUserTaskDebit';
|
|
5
4
|
import { type MarketingInfo, type UpdateUserTaskBody } from '../../retail/api/updateUserTask';
|
|
6
5
|
import { type LeadFormState } from '../../retail/model/LeadFormState';
|
|
7
|
-
import { type ReferalData } from '../../retail/model/ReferalData';
|
|
8
6
|
import { formatDate } from '../../utils/formatDate';
|
|
9
7
|
import { formatPhone } from '../../utils/formatPhone';
|
|
8
|
+
import { type Nullable } from '../../utils/Nullable';
|
|
10
9
|
import { debitProgrammIdToCardCodesMap } from '../DebitForm/utils';
|
|
11
10
|
|
|
12
11
|
type getLeadFormTaskDataProps = {
|
|
@@ -14,7 +13,7 @@ type getLeadFormTaskDataProps = {
|
|
|
14
13
|
taskId: number;
|
|
15
14
|
profileId: number;
|
|
16
15
|
formData: LeadFormState;
|
|
17
|
-
|
|
16
|
+
marketingInfo: MarketingInfo | null;
|
|
18
17
|
};
|
|
19
18
|
|
|
20
19
|
export const getCreditLeadFormTaskData = ({
|
|
@@ -22,11 +21,10 @@ export const getCreditLeadFormTaskData = ({
|
|
|
22
21
|
taskId,
|
|
23
22
|
profileId,
|
|
24
23
|
formData,
|
|
25
|
-
|
|
24
|
+
marketingInfo,
|
|
26
25
|
}: getLeadFormTaskDataProps): UpdateUserTaskBody => {
|
|
27
26
|
const { name, surname, middleName, limitedBirthday, phone, email } = formData;
|
|
28
|
-
const
|
|
29
|
-
const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
|
|
27
|
+
const taskSource = getTaskSource(marketingInfo?.utm_source);
|
|
30
28
|
|
|
31
29
|
return {
|
|
32
30
|
sendToBank: true,
|
|
@@ -54,7 +52,7 @@ export const getCreditLeadFormTaskData = ({
|
|
|
54
52
|
},
|
|
55
53
|
},
|
|
56
54
|
],
|
|
57
|
-
marketingInfo
|
|
55
|
+
marketingInfo,
|
|
58
56
|
},
|
|
59
57
|
};
|
|
60
58
|
};
|
|
@@ -62,11 +60,10 @@ export const getCreditLeadFormTaskData = ({
|
|
|
62
60
|
export const getDebitLeadFormTaskData = (
|
|
63
61
|
formData: LeadFormState,
|
|
64
62
|
programId: string,
|
|
65
|
-
|
|
63
|
+
marketingInfo: MarketingInfo | null,
|
|
66
64
|
): CreateUserTaskDebitBody => {
|
|
67
65
|
const { name, surname, middleName, limitedBirthday, phone, email } = formData;
|
|
68
|
-
const
|
|
69
|
-
const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
|
|
66
|
+
const taskSource = getTaskSource(marketingInfo?.utm_source);
|
|
70
67
|
|
|
71
68
|
return {
|
|
72
69
|
task: {
|
|
@@ -86,18 +83,23 @@ export const getDebitLeadFormTaskData = (
|
|
|
86
83
|
}),
|
|
87
84
|
},
|
|
88
85
|
],
|
|
86
|
+
marketingInfo: {
|
|
87
|
+
bannerId: marketingInfo?.bannerId,
|
|
88
|
+
},
|
|
89
89
|
},
|
|
90
90
|
};
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
93
|
+
const getTaskSource = (source: Nullable<string>) => {
|
|
94
|
+
switch (source) {
|
|
95
|
+
case 'referal_sf': {
|
|
96
|
+
return 'ReferalSF';
|
|
97
|
+
}
|
|
98
|
+
case 'vse_svoe': {
|
|
99
|
+
return 'vseSvoe';
|
|
100
|
+
}
|
|
101
|
+
default: {
|
|
102
|
+
return globalThis.location.origin;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
103
105
|
};
|