@redneckz/wildless-cms-uni-blocks 0.14.865 → 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 +586 -435
- 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/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +7 -2
- package/bundle/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -2
- 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/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +7 -2
- package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +19 -10
- package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -2
- package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +21 -10
- package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- 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/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +7 -2
- package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +18 -9
- package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -2
- package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +21 -10
- package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- 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 +501 -333
- 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/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +7 -2
- package/mobile/bundle/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -2
- 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/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +7 -2
- package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +19 -10
- package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -2
- package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +21 -10
- package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- 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/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +7 -2
- package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +18 -9
- package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -2
- package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +21 -10
- package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- 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/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +31 -27
- package/mobile/src/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +22 -10
- 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/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +31 -27
- package/src/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +22 -10
- 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,4 +1,3 @@
|
|
|
1
|
-
import { locationNavigator } from '../../external/locationNavigator';
|
|
2
1
|
import { getAdditionalInfoData } from '../../retail/adaptors/getAdditionalInfoData';
|
|
3
2
|
import { getCardOptionsData } from '../../retail/adaptors/getCardOptionsData';
|
|
4
3
|
import { getEmploymentData } from '../../retail/adaptors/getEmploymentData';
|
|
@@ -6,7 +5,6 @@ import { getFamilyStatusAndIncomeData } from '../../retail/adaptors/getFamilySta
|
|
|
6
5
|
import { getPersonalInfoData } from '../../retail/adaptors/getPersonalInfoData';
|
|
7
6
|
import { type Participant, type UpdateUserTaskBody } from '../../retail/api/updateUserTask';
|
|
8
7
|
import { type LeadFormState } from '../../retail/model/LeadFormState';
|
|
9
|
-
import { type ReferalData } from '../../retail/model/ReferalData';
|
|
10
8
|
import {
|
|
11
9
|
getDeliveryCreditCardData,
|
|
12
10
|
getDeliveryData,
|
|
@@ -19,7 +17,6 @@ type getCreditCardFormTaskDataProps = {
|
|
|
19
17
|
profileId: number;
|
|
20
18
|
formData: LeadFormState;
|
|
21
19
|
step?: number;
|
|
22
|
-
isTaskWithReferalCode?: ReferalData['isTaskWithReferalCode'];
|
|
23
20
|
};
|
|
24
21
|
|
|
25
22
|
export const getCreditCardFormTaskData = ({
|
|
@@ -28,38 +25,31 @@ export const getCreditCardFormTaskData = ({
|
|
|
28
25
|
profileId,
|
|
29
26
|
formData,
|
|
30
27
|
step = 0,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
authorizedAgentId: formData?.bankEmployeeCode,
|
|
44
|
-
participants: [
|
|
45
|
-
{
|
|
46
|
-
id: participantId,
|
|
47
|
-
profile: {
|
|
48
|
-
id: profileId,
|
|
49
|
-
},
|
|
50
|
-
roleCd: {
|
|
51
|
-
key: 'BORROWER',
|
|
52
|
-
value: 'Заемщик',
|
|
53
|
-
},
|
|
54
|
-
...getCurrentStepData(step, formData),
|
|
28
|
+
}: getCreditCardFormTaskDataProps): UpdateUserTaskBody => ({
|
|
29
|
+
sendToBank: true,
|
|
30
|
+
taskKind: 'UNITED',
|
|
31
|
+
task: {
|
|
32
|
+
id: taskId,
|
|
33
|
+
...getOfficeCode(formData),
|
|
34
|
+
authorizedAgentId: formData?.bankEmployeeCode,
|
|
35
|
+
participants: [
|
|
36
|
+
{
|
|
37
|
+
id: participantId,
|
|
38
|
+
profile: {
|
|
39
|
+
id: profileId,
|
|
55
40
|
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
41
|
+
roleCd: {
|
|
42
|
+
key: 'BORROWER',
|
|
43
|
+
value: 'Заемщик',
|
|
44
|
+
},
|
|
45
|
+
...getCurrentStepData(step, formData),
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
...getCardOptionsData(formData),
|
|
49
|
+
...getDeliveryData(formData),
|
|
50
|
+
files: formData?.files,
|
|
51
|
+
},
|
|
52
|
+
});
|
|
63
53
|
|
|
64
54
|
const getCurrentStepData = (step: number, formData: LeadFormState): Partial<Participant> => {
|
|
65
55
|
switch (step) {
|
|
@@ -48,7 +48,6 @@ export const useCreditCardFormAPI = ({
|
|
|
48
48
|
async (formData: LeadFormState) => {
|
|
49
49
|
startSending();
|
|
50
50
|
retailFormStore.leadForm = formData;
|
|
51
|
-
const referalData = retailFormStore.referalData;
|
|
52
51
|
|
|
53
52
|
try {
|
|
54
53
|
const { taskId, profileId, participantId } = retailFormStore;
|
|
@@ -60,7 +59,6 @@ export const useCreditCardFormAPI = ({
|
|
|
60
59
|
profileId,
|
|
61
60
|
step,
|
|
62
61
|
formData: formData as any,
|
|
63
|
-
isTaskWithReferalCode: referalData?.isTaskWithReferalCode,
|
|
64
62
|
}),
|
|
65
63
|
);
|
|
66
64
|
resetForm(response);
|
|
@@ -16,14 +16,13 @@ interface CreditFormProps extends CreditFormContent, UniBlockProps {
|
|
|
16
16
|
programsSource?: ProgramsSourceProps | JSONRefObject;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
const STEPS =
|
|
19
|
+
const STEPS = 4;
|
|
20
20
|
|
|
21
21
|
const STEP_TITLES = [
|
|
22
22
|
'',
|
|
23
23
|
'Персональные данные',
|
|
24
24
|
'Данные о трудоустройстве',
|
|
25
25
|
'Семейное положение и доход',
|
|
26
|
-
'Дополнительные сведения',
|
|
27
26
|
'Отделение Банка',
|
|
28
27
|
];
|
|
29
28
|
|
|
@@ -1,12 +1,200 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
COMMON_RETAIL_CONTENT,
|
|
4
|
-
DELIVERY_CREDIT_CONTENT,
|
|
5
|
-
} from '../../retail/content';
|
|
1
|
+
/* eslint-disable max-lines */
|
|
2
|
+
import { PERSONAL_DATA } from '../../retail/content';
|
|
6
3
|
import { type SectionsRetailProps } from '../../retail/model/InputSectionsType';
|
|
7
4
|
|
|
5
|
+
const PERSONAL_INFO_CONTENT: SectionsRetailProps[] = [
|
|
6
|
+
...PERSONAL_DATA,
|
|
7
|
+
{
|
|
8
|
+
title: 'Адрес регистрации по месту жительства',
|
|
9
|
+
columns: 1,
|
|
10
|
+
inputs: [],
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
name: 'addressRegistration',
|
|
16
|
+
required: true,
|
|
17
|
+
dadata: true,
|
|
18
|
+
filledByEsia: true,
|
|
19
|
+
},
|
|
20
|
+
{ name: 'addressMatch' },
|
|
21
|
+
],
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
title: 'Адрес фактического проживания (место пребывания РФ)',
|
|
25
|
+
inputs: [],
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
inputs: [{ name: 'addressFact', required: true, dadata: true }],
|
|
29
|
+
},
|
|
30
|
+
];
|
|
31
|
+
const EMPLOYMENT_CONTENT: SectionsRetailProps[] = [
|
|
32
|
+
{
|
|
33
|
+
title: 'Данные о трудоустройстве',
|
|
34
|
+
inputs: [],
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
inputs: [
|
|
38
|
+
{
|
|
39
|
+
name: 'infoCard',
|
|
40
|
+
label:
|
|
41
|
+
'Клиент на момент оформления заявки на кредит должен быть: официально трудоустроен более 6 месяцев, ' +
|
|
42
|
+
'если Клиент получает з/п на счет РСХБ, то трудоустроен более 3 месяцев, не должен находиться в декретном отпуске',
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
inputs: [
|
|
48
|
+
{ name: 'employment', required: true },
|
|
49
|
+
{ name: 'organizationName', required: true, dadata: true, filledByEsia: true },
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
columns: 2,
|
|
54
|
+
inputs: [
|
|
55
|
+
{ name: 'inn', required: true, dadata: true, filledByEsia: true },
|
|
56
|
+
{ name: 'legalForm', required: true },
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
inputs: [
|
|
61
|
+
{ name: 'organization', required: true },
|
|
62
|
+
{ name: 'amountWorkers', required: true },
|
|
63
|
+
],
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
columns: 2,
|
|
67
|
+
inputs: [
|
|
68
|
+
{ name: 'employerOrganization', required: true },
|
|
69
|
+
{ name: 'jobsNumber', required: true, filledByEsia: true },
|
|
70
|
+
],
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
inputs: [
|
|
74
|
+
{
|
|
75
|
+
name: 'organizationPhone',
|
|
76
|
+
label: 'Телефон работодателя',
|
|
77
|
+
required: true,
|
|
78
|
+
},
|
|
79
|
+
{ name: 'beginDate', required: true, filledByEsia: true },
|
|
80
|
+
],
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
title: 'Адрес работодателя',
|
|
84
|
+
inputs: [],
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
inputs: [{ name: 'organizationAddress', required: true, dadata: true }],
|
|
88
|
+
},
|
|
89
|
+
];
|
|
90
|
+
const FAMILY_STATUS_AND_INCOME_CONTENT: SectionsRetailProps[] = [
|
|
91
|
+
{
|
|
92
|
+
title: 'Семейное положение',
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
columns: 1,
|
|
96
|
+
inputs: [{ name: 'familyStatus', required: true }],
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
columns: 2,
|
|
100
|
+
inputs: [
|
|
101
|
+
{ name: 'children', required: true },
|
|
102
|
+
{ name: 'dependents', required: true },
|
|
103
|
+
],
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
title: 'Совокупный доход',
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
columns: 1,
|
|
110
|
+
inputs: [
|
|
111
|
+
{
|
|
112
|
+
name: 'confirmationIncome',
|
|
113
|
+
required: true,
|
|
114
|
+
filledByEsia: true,
|
|
115
|
+
},
|
|
116
|
+
],
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
inputs: [
|
|
120
|
+
{
|
|
121
|
+
name: 'infoCard',
|
|
122
|
+
label: 'Сумма основного и дополнительных доходов после вычета налога',
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
columns: 1,
|
|
128
|
+
inputs: [{ name: 'wages', required: true, filledByEsia: true }],
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
columns: 1,
|
|
132
|
+
inputs: [
|
|
133
|
+
{
|
|
134
|
+
name: 'retirementIncome',
|
|
135
|
+
required: true,
|
|
136
|
+
condition: { name: 'employment', values: ['RETIREE'] },
|
|
137
|
+
},
|
|
138
|
+
],
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
columns: 1,
|
|
142
|
+
inputs: [{ name: 'mandatoryPayments', required: true }],
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
columns: 1,
|
|
146
|
+
inputs: [{ name: 'snils', required: true }],
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
columns: 1,
|
|
150
|
+
inputs: [{ name: 'initiateBankruptcyFlg' }],
|
|
151
|
+
},
|
|
152
|
+
];
|
|
153
|
+
|
|
154
|
+
const DELIVERY_CREDIT_CONTENT: SectionsRetailProps[] = [
|
|
155
|
+
{
|
|
156
|
+
title: 'Отделение Банка',
|
|
157
|
+
columns: 1,
|
|
158
|
+
inputs: [],
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
inputs: [{ name: 'regionRetail', required: true }],
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
inputs: [{ name: 'addressRetail', required: true }],
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
title: 'Код представителя Банка',
|
|
168
|
+
columns: 1,
|
|
169
|
+
inputs: [],
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
inputs: [
|
|
173
|
+
{
|
|
174
|
+
name: 'infoCard',
|
|
175
|
+
label: 'Если представитель Банка помогал Вам в заведении заявки, введите здесь его код',
|
|
176
|
+
},
|
|
177
|
+
],
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
inputs: [{ name: 'bankEmployeeCode' }],
|
|
181
|
+
},
|
|
182
|
+
];
|
|
183
|
+
const CALCULATOR_CONTENT: SectionsRetailProps[] = [
|
|
184
|
+
{
|
|
185
|
+
columns: 1,
|
|
186
|
+
inputs: [
|
|
187
|
+
{
|
|
188
|
+
name: 'calculator',
|
|
189
|
+
},
|
|
190
|
+
],
|
|
191
|
+
},
|
|
192
|
+
];
|
|
193
|
+
|
|
8
194
|
export const stepsSectionsMap: SectionsRetailProps[][] = [
|
|
9
195
|
CALCULATOR_CONTENT,
|
|
10
|
-
|
|
196
|
+
PERSONAL_INFO_CONTENT,
|
|
197
|
+
EMPLOYMENT_CONTENT,
|
|
198
|
+
FAMILY_STATUS_AND_INCOME_CONTENT,
|
|
11
199
|
DELIVERY_CREDIT_CONTENT,
|
|
12
200
|
];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type LeadFormState } from '../../retail/model/LeadFormState';
|
|
2
|
-
import {
|
|
2
|
+
import { getMainFormStateMap } from '../../retail/utils/getMainFormStateMap';
|
|
3
3
|
|
|
4
4
|
export const formStateMap: Partial<LeadFormState>[] = [
|
|
5
5
|
{
|
|
@@ -15,7 +15,7 @@ export const formStateMap: Partial<LeadFormState>[] = [
|
|
|
15
15
|
isStateEmployee: false,
|
|
16
16
|
},
|
|
17
17
|
},
|
|
18
|
-
...
|
|
18
|
+
...getMainFormStateMap(true),
|
|
19
19
|
{
|
|
20
20
|
regionRetail: { key: '', text: '' },
|
|
21
21
|
addressRetail: undefined,
|
|
@@ -19,7 +19,7 @@ export const useCreditFormAPI = ({
|
|
|
19
19
|
onFinish,
|
|
20
20
|
}: CreditFormApiProps): [LeadFormState, (formData: LeadFormState) => void, boolean] => {
|
|
21
21
|
const [isSending, { setTrue: startSending, setFalse: endSending }] = useBool(false);
|
|
22
|
-
const isFinalStep = step ===
|
|
22
|
+
const isFinalStep = step === 4;
|
|
23
23
|
|
|
24
24
|
const retailFormStore = useRetailFormStore();
|
|
25
25
|
|
|
@@ -52,7 +52,6 @@ export const useCreditFormAPI = ({
|
|
|
52
52
|
async (formData: LeadFormState) => {
|
|
53
53
|
startSending();
|
|
54
54
|
retailFormStore.leadForm = formData;
|
|
55
|
-
const referalData = retailFormStore.referalData;
|
|
56
55
|
|
|
57
56
|
try {
|
|
58
57
|
const { taskId, profileId, participantId } = retailFormStore;
|
|
@@ -64,7 +63,6 @@ export const useCreditFormAPI = ({
|
|
|
64
63
|
profileId,
|
|
65
64
|
step,
|
|
66
65
|
formData: formData as any,
|
|
67
|
-
isTaskWithReferalCode: referalData?.isTaskWithReferalCode,
|
|
68
66
|
}),
|
|
69
67
|
);
|
|
70
68
|
resetForm(response);
|
|
@@ -1,12 +1,77 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DEBIT_CARD_CONTENT,
|
|
3
|
-
DEBIT_PERSONAL_INFO_CONTENT,
|
|
4
|
-
DELIVERY_DEBIT_CARD_CONTENT,
|
|
5
|
-
} from '../../retail/content';
|
|
1
|
+
import { DELIVERY_CARD_CONTENT, PERSONAL_DATA } from '../../retail/content';
|
|
6
2
|
import { type SectionsRetailProps } from '../../retail/model/InputSectionsType';
|
|
7
3
|
|
|
4
|
+
const DEBIT_PERSONAL_INFO_CONTENT: SectionsRetailProps[] = [
|
|
5
|
+
...PERSONAL_DATA,
|
|
6
|
+
{
|
|
7
|
+
title: 'Адрес регистрации по месту жительства',
|
|
8
|
+
columns: 1,
|
|
9
|
+
inputs: [],
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
inputs: [
|
|
13
|
+
{
|
|
14
|
+
name: 'addressRegistration',
|
|
15
|
+
required: true,
|
|
16
|
+
dadata: true,
|
|
17
|
+
filledByEsia: true,
|
|
18
|
+
},
|
|
19
|
+
{ name: 'addressMatch' },
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
title: 'Адрес фактического проживания (место пребывания РФ)',
|
|
24
|
+
inputs: [],
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
inputs: [{ name: 'addressFact', required: true, dadata: true }],
|
|
28
|
+
},
|
|
29
|
+
];
|
|
30
|
+
const DEBIT_CARD_CONTENT: SectionsRetailProps[] = [
|
|
31
|
+
{
|
|
32
|
+
title: 'Параметры карты',
|
|
33
|
+
inputs: [],
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
inputs: [
|
|
37
|
+
{ name: 'currency', required: true },
|
|
38
|
+
{ name: 'paymentSystem', required: true },
|
|
39
|
+
{ name: 'cardCategory', required: true },
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
title: 'Отображение на карте',
|
|
44
|
+
inputs: [],
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
columns: 2,
|
|
48
|
+
inputs: [{ name: 'latinName' }, { name: 'latinSurname', required: true }],
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
inputs: [
|
|
52
|
+
{
|
|
53
|
+
name: 'infoCard',
|
|
54
|
+
label: 'Проверьте корректность заполненных полей, при необходимости внесите изменения.',
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
inputs: [
|
|
60
|
+
{
|
|
61
|
+
name: 'infoCard',
|
|
62
|
+
label:
|
|
63
|
+
// eslint-disable-next-line max-len
|
|
64
|
+
'Количество символов ограничивается 20. При этом, если фамилия и имя на карте содержит более 21 символа, то необходимо сократить имя и указывать на карте только первую букву имени и фамилию, если при таком сокращении фамилия и имя не умещается в количество символов – 20, то указывать только фамилию.',
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
inputs: [{ name: 'codeWord', required: true }],
|
|
70
|
+
},
|
|
71
|
+
];
|
|
72
|
+
|
|
8
73
|
export const stepsSectionsMap: SectionsRetailProps[][] = [
|
|
9
|
-
|
|
74
|
+
DELIVERY_CARD_CONTENT,
|
|
10
75
|
DEBIT_PERSONAL_INFO_CONTENT,
|
|
11
76
|
DEBIT_CARD_CONTENT,
|
|
12
77
|
];
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { locationNavigator } from '../../external/locationNavigator';
|
|
2
1
|
import { getCardOptionsData } from '../../retail/adaptors/getCardOptionsData';
|
|
3
2
|
import { getPersonalInfoData } from '../../retail/adaptors/getPersonalInfoData';
|
|
4
3
|
import { type Participant } from '../../retail/api/updateUserTask';
|
|
5
4
|
import { type UpdateUserTaskDebitBody } from '../../retail/api/updateUserTaskDebit';
|
|
6
5
|
import { type LeadFormState } from '../../retail/model/LeadFormState';
|
|
7
|
-
import { type ReferalData } from '../../retail/model/ReferalData';
|
|
8
6
|
import {
|
|
9
7
|
getDebitCardData,
|
|
10
8
|
getDeliveryData,
|
|
@@ -19,7 +17,6 @@ type getDebitFormTaskDataProps = {
|
|
|
19
17
|
formData: LeadFormState;
|
|
20
18
|
programId: string;
|
|
21
19
|
step?: number;
|
|
22
|
-
isTaskWithReferalCode?: ReferalData['isTaskWithReferalCode'];
|
|
23
20
|
};
|
|
24
21
|
|
|
25
22
|
export const getDebitCardFormTaskData = ({
|
|
@@ -28,30 +25,23 @@ export const getDebitCardFormTaskData = ({
|
|
|
28
25
|
formData,
|
|
29
26
|
programId,
|
|
30
27
|
step = 0,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
return {
|
|
37
|
-
task: {
|
|
38
|
-
taskSource,
|
|
39
|
-
id: taskId,
|
|
40
|
-
creditProgram: {
|
|
41
|
-
code: debitProgrammIdToCardCodesMap[programId],
|
|
42
|
-
},
|
|
43
|
-
...getOfficeCode(formData),
|
|
44
|
-
participants: [
|
|
45
|
-
{
|
|
46
|
-
id: participantId,
|
|
47
|
-
...getCurrentStepData(step, formData),
|
|
48
|
-
},
|
|
49
|
-
],
|
|
50
|
-
...getCardOptionsData(formData),
|
|
51
|
-
...getDeliveryData(formData),
|
|
28
|
+
}: getDebitFormTaskDataProps): UpdateUserTaskDebitBody => ({
|
|
29
|
+
task: {
|
|
30
|
+
id: taskId,
|
|
31
|
+
creditProgram: {
|
|
32
|
+
code: debitProgrammIdToCardCodesMap[programId],
|
|
52
33
|
},
|
|
53
|
-
|
|
54
|
-
|
|
34
|
+
...getOfficeCode(formData),
|
|
35
|
+
participants: [
|
|
36
|
+
{
|
|
37
|
+
id: participantId,
|
|
38
|
+
...getCurrentStepData(step, formData),
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
...getCardOptionsData(formData),
|
|
42
|
+
...getDeliveryData(formData),
|
|
43
|
+
},
|
|
44
|
+
});
|
|
55
45
|
|
|
56
46
|
const getCurrentStepData = (step: number, formData: LeadFormState): Partial<Participant> => {
|
|
57
47
|
switch (step) {
|
|
@@ -40,7 +40,6 @@ export const useDebitFormAPI = ({
|
|
|
40
40
|
async (formData: LeadFormState) => {
|
|
41
41
|
startSending();
|
|
42
42
|
retailFormStore.leadForm = formData;
|
|
43
|
-
const referalData = retailFormStore.referalData;
|
|
44
43
|
|
|
45
44
|
try {
|
|
46
45
|
const { taskId, participantId, programId } = retailFormStore;
|
|
@@ -52,7 +51,6 @@ export const useDebitFormAPI = ({
|
|
|
52
51
|
programId,
|
|
53
52
|
step,
|
|
54
53
|
formData: formData as any,
|
|
55
|
-
isTaskWithReferalCode: referalData?.isTaskWithReferalCode,
|
|
56
54
|
}),
|
|
57
55
|
);
|
|
58
56
|
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { getCalcData } from '../../components/CreditForm/getCalcData';
|
|
2
|
-
import { locationNavigator } from '../../external/locationNavigator';
|
|
3
2
|
import { type Participant, type UpdateUserTaskBody } from '../api/updateUserTask';
|
|
4
3
|
import { type LeadFormState } from '../model/LeadFormState';
|
|
5
|
-
import { type ReferalData } from '../model/ReferalData';
|
|
6
|
-
import { getAdditionalInfoData } from './getAdditionalInfoData';
|
|
7
4
|
import { getCalculatorData } from './getCalculatorData';
|
|
8
5
|
import { getDeliveryCreditData } from './getDeliveryCreditData';
|
|
9
6
|
import { getEmploymentData } from './getEmploymentData';
|
|
@@ -16,7 +13,6 @@ type getCreditFormTaskDataProps = {
|
|
|
16
13
|
profileId: number;
|
|
17
14
|
formData: LeadFormState;
|
|
18
15
|
step?: number;
|
|
19
|
-
isTaskWithReferalCode?: ReferalData['isTaskWithReferalCode'];
|
|
20
16
|
};
|
|
21
17
|
|
|
22
18
|
export const getCreditFormTaskData = ({
|
|
@@ -25,40 +21,33 @@ export const getCreditFormTaskData = ({
|
|
|
25
21
|
profileId,
|
|
26
22
|
formData,
|
|
27
23
|
step = 0,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
authorizedAgentId: formData?.bankEmployeeCode,
|
|
40
|
-
participants: [
|
|
41
|
-
{
|
|
42
|
-
id: participantId,
|
|
43
|
-
profile: {
|
|
44
|
-
id: profileId,
|
|
45
|
-
},
|
|
46
|
-
roleCd: {
|
|
47
|
-
key: 'BORROWER',
|
|
48
|
-
value: 'Заемщик',
|
|
49
|
-
},
|
|
50
|
-
...getCurrentStepData(step, formData),
|
|
24
|
+
}: getCreditFormTaskDataProps): UpdateUserTaskBody => ({
|
|
25
|
+
sendToBank: true,
|
|
26
|
+
taskKind: 'UNITED',
|
|
27
|
+
task: {
|
|
28
|
+
id: taskId,
|
|
29
|
+
authorizedAgentId: formData?.bankEmployeeCode,
|
|
30
|
+
participants: [
|
|
31
|
+
{
|
|
32
|
+
id: participantId,
|
|
33
|
+
profile: {
|
|
34
|
+
id: profileId,
|
|
51
35
|
},
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
36
|
+
roleCd: {
|
|
37
|
+
key: 'BORROWER',
|
|
38
|
+
value: 'Заемщик',
|
|
39
|
+
},
|
|
40
|
+
...getCurrentStepData(step, formData),
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
...getCalcData(formData),
|
|
44
|
+
...getDeliveryCreditData(formData),
|
|
45
|
+
esiaAccountTypeCd: {
|
|
46
|
+
key: formData?.esiaAccountTypeCd?.key,
|
|
47
|
+
} as UpdateUserTaskBody['task']['esiaAccountTypeCd'],
|
|
48
|
+
files: formData?.files,
|
|
49
|
+
},
|
|
50
|
+
});
|
|
62
51
|
|
|
63
52
|
const getCurrentStepData = (step: number, formData: LeadFormState): Partial<Participant> => {
|
|
64
53
|
switch (step) {
|
|
@@ -70,8 +59,6 @@ const getCurrentStepData = (step: number, formData: LeadFormState): Partial<Part
|
|
|
70
59
|
return getEmploymentData(formData);
|
|
71
60
|
case 3:
|
|
72
61
|
return getFamilyStatusAndIncomeData(formData);
|
|
73
|
-
case 4:
|
|
74
|
-
return getAdditionalInfoData(formData);
|
|
75
62
|
default:
|
|
76
63
|
return {};
|
|
77
64
|
}
|
|
@@ -30,7 +30,7 @@ export const getEmploymentData = (formData: LeadFormState): Partial<Participant>
|
|
|
30
30
|
employmentTypeCd: employment,
|
|
31
31
|
organizationName,
|
|
32
32
|
organizationInn: inn,
|
|
33
|
-
organizationActivityTypeCd: employerActivities,
|
|
33
|
+
organizationActivityTypeCd: employerActivities?.key ? employerActivities : undefined,
|
|
34
34
|
organizationTypeCd: organization,
|
|
35
35
|
organizationKindCd: employerOrganization,
|
|
36
36
|
employeesNumberCd: amountWorkers,
|
|
@@ -39,11 +39,11 @@ export const getEmploymentData = (formData: LeadFormState): Partial<Participant>
|
|
|
39
39
|
generalSeniority: experience5Years,
|
|
40
40
|
jobsNumber,
|
|
41
41
|
lastWorkDuration: lastJobExperience,
|
|
42
|
-
positionCd: positionOrganization,
|
|
42
|
+
positionCd: positionOrganization?.key ? positionOrganization : undefined,
|
|
43
43
|
participantContacts: getParticipantContacts({
|
|
44
44
|
organizationPhone: organizationPhone && formatPhone(organizationPhone),
|
|
45
45
|
}),
|
|
46
46
|
participantAddresses: getParticipantAddresses({ organizationAddress }),
|
|
47
|
-
ownershipShare: positionOrganization?.key === 'BUSINESS_OWNER' ? partInBusiness :
|
|
47
|
+
ownershipShare: positionOrganization?.key === 'BUSINESS_OWNER' ? partInBusiness : undefined,
|
|
48
48
|
};
|
|
49
49
|
};
|
|
@@ -19,6 +19,7 @@ export const getFamilyStatusAndIncomeData = (formData: LeadFormState): Partial<P
|
|
|
19
19
|
snils,
|
|
20
20
|
armyIdFlg,
|
|
21
21
|
conscription,
|
|
22
|
+
initiateBankruptcyFlg,
|
|
22
23
|
} = formData;
|
|
23
24
|
|
|
24
25
|
return {
|
|
@@ -40,6 +41,7 @@ export const getFamilyStatusAndIncomeData = (formData: LeadFormState): Partial<P
|
|
|
40
41
|
}),
|
|
41
42
|
snils: snils?.replace(/[-\s]/g, ''),
|
|
42
43
|
armyIdFlg,
|
|
44
|
+
initiateBankruptcyFlg,
|
|
43
45
|
};
|
|
44
46
|
};
|
|
45
47
|
|
|
@@ -20,7 +20,7 @@ export const getPersonalInfoData = (formData: LeadFormState): Partial<Participan
|
|
|
20
20
|
dulSerie,
|
|
21
21
|
dulSubdivisionCode,
|
|
22
22
|
education,
|
|
23
|
-
participantDateRegistration
|
|
23
|
+
participantDateRegistration,
|
|
24
24
|
housing,
|
|
25
25
|
addressRegistration,
|
|
26
26
|
addressFact,
|
|
@@ -39,7 +39,9 @@ export const getPersonalInfoData = (formData: LeadFormState): Partial<Participan
|
|
|
39
39
|
dulSerie,
|
|
40
40
|
dulSubdivisionCode,
|
|
41
41
|
educationLevelCd: education,
|
|
42
|
-
registrationDate:
|
|
42
|
+
registrationDate: participantDateRegistration
|
|
43
|
+
? formatDate(participantDateRegistration, true)
|
|
44
|
+
: undefined,
|
|
43
45
|
homeMatchFlg: addressMatch,
|
|
44
46
|
houseTypeCd: housing,
|
|
45
47
|
participantContacts: getParticipantContacts({
|