@redneckz/wildless-cms-uni-blocks 0.14.636 → 0.14.638
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/api/RetailAPI/getTaskStatus.d.ts +14 -0
- package/bundle/api/RetailAPI/sendSignalToProcess.d.ts +11 -0
- package/bundle/api/RetailAPI/updateProfileEsia.d.ts +7 -7
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +256 -43
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +2 -3
- package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -16
- package/bundle/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +3 -0
- package/bundle/components/CalculatorCredit/CalculatorCredit.d.ts +2 -0
- package/bundle/components/CreditForm/CreditForm.d.ts +2 -2
- package/bundle/components/CreditForm/CreditFormContent.d.ts +5 -23
- package/bundle/components/CreditForm/CreditFormProgress.d.ts +1 -1
- package/bundle/components/CreditForm/CreditFormStatus.d.ts +16 -0
- package/bundle/components/CreditForm/CreditFormStatusTracker.d.ts +2 -0
- package/bundle/components/CreditForm/CreditFormStep.d.ts +5 -6
- package/bundle/components/CreditForm/FailedStatusContent.d.ts +2 -0
- package/bundle/components/CreditForm/PendingStatusContent.d.ts +2 -0
- package/bundle/components/CreditForm/ReworkStatusContent.d.ts +2 -0
- package/bundle/components/CreditForm/SuccessStatusContent.d.ts +2 -0
- package/bundle/components/CreditForm/formStateMap.d.ts +72 -0
- package/bundle/components/CreditForm/getInitialFormState.d.ts +1 -63
- package/bundle/components/CreditForm/renderInfo.d.ts +3 -0
- package/bundle/components/CreditForm/renderStep.d.ts +11 -0
- package/{lib/components/CreditForm/useCreditFormApi.d.ts → bundle/components/CreditForm/useCreditFormAPI.d.ts} +4 -3
- package/bundle/hooks/useForm.d.ts +1 -1
- package/bundle/model/InputSectionsType.d.ts +5 -0
- package/dist/api/RetailAPI/getTaskStatus.d.ts +14 -0
- package/dist/api/RetailAPI/getTaskStatus.js +13 -0
- package/dist/api/RetailAPI/getTaskStatus.js.map +1 -0
- package/dist/api/RetailAPI/sendSignalToProcess.d.ts +11 -0
- package/dist/api/RetailAPI/sendSignalToProcess.js +6 -0
- package/dist/api/RetailAPI/sendSignalToProcess.js.map +1 -0
- package/dist/api/RetailAPI/updateProfileEsia.d.ts +7 -7
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +2 -3
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -3
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -16
- package/dist/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +3 -0
- package/dist/components/ApplicationLeadForm/pasreEsiaProfile.js +52 -0
- package/dist/components/ApplicationLeadForm/pasreEsiaProfile.js.map +1 -0
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +6 -3
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/dist/components/CalculatorCredit/CalculatorCredit.d.ts +2 -0
- package/dist/components/CalculatorCredit/CalculatorCredit.js +3 -2
- package/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/dist/components/CreditForm/CreditForm.d.ts +2 -2
- package/dist/components/CreditForm/CreditForm.js +17 -6
- package/dist/components/CreditForm/CreditForm.js.map +1 -1
- package/dist/components/CreditForm/CreditFormContent.d.ts +5 -23
- package/dist/components/CreditForm/CreditFormProgress.d.ts +1 -1
- package/dist/components/CreditForm/CreditFormProgress.js +3 -3
- package/dist/components/CreditForm/CreditFormProgress.js.map +1 -1
- package/dist/components/CreditForm/CreditFormStatus.d.ts +16 -0
- package/dist/components/CreditForm/CreditFormStatus.js +25 -0
- package/dist/components/CreditForm/CreditFormStatus.js.map +1 -0
- package/dist/components/CreditForm/CreditFormStatusTracker.d.ts +2 -0
- package/dist/components/CreditForm/CreditFormStatusTracker.js +42 -0
- package/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -0
- package/dist/components/CreditForm/CreditFormStep.d.ts +5 -6
- package/dist/components/CreditForm/CreditFormStep.js +19 -19
- package/dist/components/CreditForm/CreditFormStep.js.map +1 -1
- package/dist/components/CreditForm/FailedStatusContent.d.ts +2 -0
- package/dist/components/CreditForm/FailedStatusContent.js +7 -0
- package/dist/components/CreditForm/FailedStatusContent.js.map +1 -0
- package/dist/components/CreditForm/PendingStatusContent.d.ts +2 -0
- package/dist/components/CreditForm/PendingStatusContent.js +32 -0
- package/dist/components/CreditForm/PendingStatusContent.js.map +1 -0
- package/dist/components/CreditForm/ReworkStatusContent.d.ts +2 -0
- package/dist/components/CreditForm/ReworkStatusContent.js +25 -0
- package/dist/components/CreditForm/ReworkStatusContent.js.map +1 -0
- package/dist/components/CreditForm/SuccessStatusContent.d.ts +2 -0
- package/dist/components/CreditForm/SuccessStatusContent.js +32 -0
- package/dist/components/CreditForm/SuccessStatusContent.js.map +1 -0
- package/dist/components/CreditForm/creditFormStepsData.js +3 -0
- package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/dist/components/CreditForm/formStateMap.d.ts +72 -0
- package/dist/components/CreditForm/formStateMap.js +81 -0
- package/dist/components/CreditForm/formStateMap.js.map +1 -0
- package/dist/components/CreditForm/getInitialFormState.d.ts +1 -63
- package/dist/components/CreditForm/getInitialFormState.js +2 -71
- package/dist/components/CreditForm/getInitialFormState.js.map +1 -1
- package/dist/components/CreditForm/renderInfo.d.ts +3 -0
- package/dist/components/CreditForm/renderInfo.js +12 -0
- package/dist/components/CreditForm/renderInfo.js.map +1 -0
- package/dist/components/CreditForm/renderInputs.js +1 -3
- package/dist/components/CreditForm/renderInputs.js.map +1 -1
- package/dist/components/CreditForm/renderStep.d.ts +11 -0
- package/dist/components/CreditForm/renderStep.js +11 -0
- package/dist/components/CreditForm/renderStep.js.map +1 -0
- package/{bundle/components/CreditForm/useCreditFormApi.d.ts → dist/components/CreditForm/useCreditFormAPI.d.ts} +4 -3
- package/dist/components/CreditForm/{useCreditFormApi.js → useCreditFormAPI.js} +7 -4
- package/dist/components/CreditForm/useCreditFormAPI.js.map +1 -0
- package/dist/hooks/useForm.d.ts +1 -1
- package/dist/hooks/useForm.js +1 -0
- package/dist/hooks/useForm.js.map +1 -1
- package/dist/model/InputSectionsType.d.ts +5 -0
- package/dist/model/InputSectionsType.js +2 -0
- package/dist/model/InputSectionsType.js.map +1 -0
- package/lib/api/RetailAPI/getTaskStatus.d.ts +14 -0
- package/lib/api/RetailAPI/getTaskStatus.js +10 -0
- package/lib/api/RetailAPI/getTaskStatus.js.map +1 -0
- package/lib/api/RetailAPI/sendSignalToProcess.d.ts +11 -0
- package/lib/api/RetailAPI/sendSignalToProcess.js +3 -0
- package/lib/api/RetailAPI/sendSignalToProcess.js.map +1 -0
- package/lib/api/RetailAPI/updateProfileEsia.d.ts +7 -7
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +2 -3
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -3
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -16
- package/lib/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +3 -0
- package/lib/components/ApplicationLeadForm/pasreEsiaProfile.js +49 -0
- package/lib/components/ApplicationLeadForm/pasreEsiaProfile.js.map +1 -0
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +6 -3
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/lib/components/CalculatorCredit/CalculatorCredit.d.ts +2 -0
- package/lib/components/CalculatorCredit/CalculatorCredit.js +3 -2
- package/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/lib/components/CreditForm/CreditForm.d.ts +2 -2
- package/lib/components/CreditForm/CreditForm.js +17 -6
- package/lib/components/CreditForm/CreditForm.js.map +1 -1
- package/lib/components/CreditForm/CreditFormContent.d.ts +5 -23
- package/lib/components/CreditForm/CreditFormProgress.d.ts +1 -1
- package/lib/components/CreditForm/CreditFormProgress.js +3 -3
- package/lib/components/CreditForm/CreditFormProgress.js.map +1 -1
- package/lib/components/CreditForm/CreditFormStatus.d.ts +16 -0
- package/lib/components/CreditForm/CreditFormStatus.js +23 -0
- package/lib/components/CreditForm/CreditFormStatus.js.map +1 -0
- package/lib/components/CreditForm/CreditFormStatusTracker.d.ts +2 -0
- package/lib/components/CreditForm/CreditFormStatusTracker.js +40 -0
- package/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -0
- package/lib/components/CreditForm/CreditFormStep.d.ts +5 -6
- package/lib/components/CreditForm/CreditFormStep.js +19 -19
- package/lib/components/CreditForm/CreditFormStep.js.map +1 -1
- package/lib/components/CreditForm/FailedStatusContent.d.ts +2 -0
- package/lib/components/CreditForm/FailedStatusContent.js +5 -0
- package/lib/components/CreditForm/FailedStatusContent.js.map +1 -0
- package/lib/components/CreditForm/PendingStatusContent.d.ts +2 -0
- package/lib/components/CreditForm/PendingStatusContent.js +30 -0
- package/lib/components/CreditForm/PendingStatusContent.js.map +1 -0
- package/lib/components/CreditForm/ReworkStatusContent.d.ts +2 -0
- package/lib/components/CreditForm/ReworkStatusContent.js +23 -0
- package/lib/components/CreditForm/ReworkStatusContent.js.map +1 -0
- package/lib/components/CreditForm/SuccessStatusContent.d.ts +2 -0
- package/lib/components/CreditForm/SuccessStatusContent.js +30 -0
- package/lib/components/CreditForm/SuccessStatusContent.js.map +1 -0
- package/lib/components/CreditForm/creditFormStepsData.js +3 -0
- package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/lib/components/CreditForm/formStateMap.d.ts +72 -0
- package/lib/components/CreditForm/formStateMap.js +79 -0
- package/lib/components/CreditForm/formStateMap.js.map +1 -0
- package/lib/components/CreditForm/getInitialFormState.d.ts +1 -63
- package/lib/components/CreditForm/getInitialFormState.js +1 -70
- package/lib/components/CreditForm/getInitialFormState.js.map +1 -1
- package/lib/components/CreditForm/renderInfo.d.ts +2 -0
- package/lib/components/CreditForm/renderInfo.js +9 -0
- package/lib/components/CreditForm/renderInfo.js.map +1 -0
- package/lib/components/CreditForm/renderInputs.js +1 -3
- package/lib/components/CreditForm/renderInputs.js.map +1 -1
- package/lib/components/CreditForm/renderStep.d.ts +10 -0
- package/lib/components/CreditForm/renderStep.js +8 -0
- package/lib/components/CreditForm/renderStep.js.map +1 -0
- package/{mobile/bundle/components/CreditForm/useCreditFormApi.d.ts → lib/components/CreditForm/useCreditFormAPI.d.ts} +4 -3
- package/lib/components/CreditForm/{useCreditFormApi.js → useCreditFormAPI.js} +5 -2
- package/lib/components/CreditForm/useCreditFormAPI.js.map +1 -0
- package/lib/hooks/useForm.d.ts +1 -1
- package/lib/hooks/useForm.js +1 -0
- package/lib/hooks/useForm.js.map +1 -1
- package/lib/model/InputSectionsType.d.ts +5 -0
- package/lib/model/InputSectionsType.js +2 -0
- package/lib/model/InputSectionsType.js.map +1 -0
- package/mobile/bundle/api/RetailAPI/getTaskStatus.d.ts +14 -0
- package/mobile/bundle/api/RetailAPI/sendSignalToProcess.d.ts +11 -0
- package/mobile/bundle/api/RetailAPI/updateProfileEsia.d.ts +7 -7
- package/mobile/bundle/bundle.umd.js +260 -39
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +2 -3
- package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -16
- package/mobile/bundle/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +3 -0
- package/mobile/bundle/components/CalculatorCredit/CalculatorCredit.d.ts +2 -0
- package/mobile/bundle/components/CreditForm/CreditForm.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/CreditFormContent.d.ts +5 -23
- package/mobile/bundle/components/CreditForm/CreditFormProgress.d.ts +1 -1
- package/mobile/bundle/components/CreditForm/CreditFormStatus.d.ts +16 -0
- package/mobile/bundle/components/CreditForm/CreditFormStatusTracker.d.ts +2 -0
- package/mobile/bundle/components/CreditForm/CreditFormStep.d.ts +5 -6
- package/mobile/bundle/components/CreditForm/FailedStatusContent.d.ts +2 -0
- package/mobile/bundle/components/CreditForm/PendingStatusContent.d.ts +2 -0
- package/mobile/bundle/components/CreditForm/ReworkStatusContent.d.ts +2 -0
- package/mobile/bundle/components/CreditForm/SuccessStatusContent.d.ts +2 -0
- package/mobile/bundle/components/CreditForm/formStateMap.d.ts +72 -0
- package/mobile/bundle/components/CreditForm/getInitialFormState.d.ts +1 -63
- package/mobile/bundle/components/CreditForm/renderInfo.d.ts +3 -0
- package/mobile/bundle/components/CreditForm/renderStep.d.ts +11 -0
- package/{dist/components/CreditForm/useCreditFormApi.d.ts → mobile/bundle/components/CreditForm/useCreditFormAPI.d.ts} +4 -3
- package/mobile/bundle/hooks/useForm.d.ts +1 -1
- package/mobile/bundle/model/InputSectionsType.d.ts +5 -0
- package/mobile/dist/api/RetailAPI/getTaskStatus.d.ts +14 -0
- package/mobile/dist/api/RetailAPI/getTaskStatus.js +13 -0
- package/mobile/dist/api/RetailAPI/getTaskStatus.js.map +1 -0
- package/mobile/dist/api/RetailAPI/sendSignalToProcess.d.ts +11 -0
- package/mobile/dist/api/RetailAPI/sendSignalToProcess.js +6 -0
- package/mobile/dist/api/RetailAPI/sendSignalToProcess.js.map +1 -0
- package/mobile/dist/api/RetailAPI/updateProfileEsia.d.ts +7 -7
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +2 -3
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -3
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -16
- package/mobile/dist/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +3 -0
- package/mobile/dist/components/ApplicationLeadForm/pasreEsiaProfile.js +52 -0
- package/mobile/dist/components/ApplicationLeadForm/pasreEsiaProfile.js.map +1 -0
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +6 -3
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/dist/components/CalculatorCredit/CalculatorCredit.d.ts +2 -0
- package/mobile/dist/components/CalculatorCredit/CalculatorCredit.js +3 -2
- package/mobile/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditForm.d.ts +2 -2
- package/mobile/dist/components/CreditForm/CreditForm.js +17 -6
- package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditFormContent.d.ts +5 -23
- package/mobile/dist/components/CreditForm/CreditFormProgress.d.ts +1 -1
- package/mobile/dist/components/CreditForm/CreditFormProgress.js +3 -3
- package/mobile/dist/components/CreditForm/CreditFormProgress.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditFormStatus.d.ts +16 -0
- package/mobile/dist/components/CreditForm/CreditFormStatus.js +25 -0
- package/mobile/dist/components/CreditForm/CreditFormStatus.js.map +1 -0
- package/mobile/dist/components/CreditForm/CreditFormStatusTracker.d.ts +2 -0
- package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js +42 -0
- package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -0
- package/mobile/dist/components/CreditForm/CreditFormStep.d.ts +5 -6
- package/mobile/dist/components/CreditForm/CreditFormStep.js +19 -19
- package/mobile/dist/components/CreditForm/CreditFormStep.js.map +1 -1
- package/mobile/dist/components/CreditForm/FailedStatusContent.d.ts +2 -0
- package/mobile/dist/components/CreditForm/FailedStatusContent.js +7 -0
- package/mobile/dist/components/CreditForm/FailedStatusContent.js.map +1 -0
- package/mobile/dist/components/CreditForm/PendingStatusContent.d.ts +2 -0
- package/mobile/dist/components/CreditForm/PendingStatusContent.js +32 -0
- package/mobile/dist/components/CreditForm/PendingStatusContent.js.map +1 -0
- package/mobile/dist/components/CreditForm/ReworkStatusContent.d.ts +2 -0
- package/mobile/dist/components/CreditForm/ReworkStatusContent.js +25 -0
- package/mobile/dist/components/CreditForm/ReworkStatusContent.js.map +1 -0
- package/mobile/dist/components/CreditForm/SuccessStatusContent.d.ts +2 -0
- package/mobile/dist/components/CreditForm/SuccessStatusContent.js +32 -0
- package/mobile/dist/components/CreditForm/SuccessStatusContent.js.map +1 -0
- package/mobile/dist/components/CreditForm/creditFormStepsData.js +3 -0
- package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/dist/components/CreditForm/formStateMap.d.ts +72 -0
- package/mobile/dist/components/CreditForm/formStateMap.js +81 -0
- package/mobile/dist/components/CreditForm/formStateMap.js.map +1 -0
- package/mobile/dist/components/CreditForm/getInitialFormState.d.ts +1 -63
- package/mobile/dist/components/CreditForm/getInitialFormState.js +2 -71
- package/mobile/dist/components/CreditForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/CreditForm/renderInfo.d.ts +3 -0
- package/mobile/dist/components/CreditForm/renderInfo.js +12 -0
- package/mobile/dist/components/CreditForm/renderInfo.js.map +1 -0
- package/mobile/dist/components/CreditForm/renderInputs.js +1 -3
- package/mobile/dist/components/CreditForm/renderInputs.js.map +1 -1
- package/mobile/dist/components/CreditForm/renderStep.d.ts +11 -0
- package/mobile/dist/components/CreditForm/renderStep.js +11 -0
- package/mobile/dist/components/CreditForm/renderStep.js.map +1 -0
- package/mobile/dist/components/CreditForm/useCreditFormAPI.d.ts +13 -0
- package/mobile/dist/components/CreditForm/{useCreditFormApi.js → useCreditFormAPI.js} +7 -4
- package/mobile/dist/components/CreditForm/useCreditFormAPI.js.map +1 -0
- package/mobile/dist/hooks/useForm.d.ts +1 -1
- package/mobile/dist/hooks/useForm.js +1 -0
- package/mobile/dist/hooks/useForm.js.map +1 -1
- package/mobile/dist/model/InputSectionsType.d.ts +5 -0
- package/mobile/dist/model/InputSectionsType.js +2 -0
- package/mobile/dist/model/InputSectionsType.js.map +1 -0
- package/mobile/lib/api/RetailAPI/getTaskStatus.d.ts +14 -0
- package/mobile/lib/api/RetailAPI/getTaskStatus.js +10 -0
- package/mobile/lib/api/RetailAPI/getTaskStatus.js.map +1 -0
- package/mobile/lib/api/RetailAPI/sendSignalToProcess.d.ts +11 -0
- package/mobile/lib/api/RetailAPI/sendSignalToProcess.js +3 -0
- package/mobile/lib/api/RetailAPI/sendSignalToProcess.js.map +1 -0
- package/mobile/lib/api/RetailAPI/updateProfileEsia.d.ts +7 -7
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +2 -3
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -3
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -16
- package/mobile/lib/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +3 -0
- package/mobile/lib/components/ApplicationLeadForm/pasreEsiaProfile.js +49 -0
- package/mobile/lib/components/ApplicationLeadForm/pasreEsiaProfile.js.map +1 -0
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +6 -3
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/lib/components/CalculatorCredit/CalculatorCredit.d.ts +2 -0
- package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js +3 -2
- package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditForm.d.ts +2 -2
- package/mobile/lib/components/CreditForm/CreditForm.js +17 -6
- package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditFormContent.d.ts +5 -23
- package/mobile/lib/components/CreditForm/CreditFormProgress.d.ts +1 -1
- package/mobile/lib/components/CreditForm/CreditFormProgress.js +3 -3
- package/mobile/lib/components/CreditForm/CreditFormProgress.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditFormStatus.d.ts +16 -0
- package/mobile/lib/components/CreditForm/CreditFormStatus.js +23 -0
- package/mobile/lib/components/CreditForm/CreditFormStatus.js.map +1 -0
- package/mobile/lib/components/CreditForm/CreditFormStatusTracker.d.ts +2 -0
- package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js +40 -0
- package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -0
- package/mobile/lib/components/CreditForm/CreditFormStep.d.ts +5 -6
- package/mobile/lib/components/CreditForm/CreditFormStep.js +19 -19
- package/mobile/lib/components/CreditForm/CreditFormStep.js.map +1 -1
- package/mobile/lib/components/CreditForm/FailedStatusContent.d.ts +2 -0
- package/mobile/lib/components/CreditForm/FailedStatusContent.js +5 -0
- package/mobile/lib/components/CreditForm/FailedStatusContent.js.map +1 -0
- package/mobile/lib/components/CreditForm/PendingStatusContent.d.ts +2 -0
- package/mobile/lib/components/CreditForm/PendingStatusContent.js +30 -0
- package/mobile/lib/components/CreditForm/PendingStatusContent.js.map +1 -0
- package/mobile/lib/components/CreditForm/ReworkStatusContent.d.ts +2 -0
- package/mobile/lib/components/CreditForm/ReworkStatusContent.js +23 -0
- package/mobile/lib/components/CreditForm/ReworkStatusContent.js.map +1 -0
- package/mobile/lib/components/CreditForm/SuccessStatusContent.d.ts +2 -0
- package/mobile/lib/components/CreditForm/SuccessStatusContent.js +30 -0
- package/mobile/lib/components/CreditForm/SuccessStatusContent.js.map +1 -0
- package/mobile/lib/components/CreditForm/creditFormStepsData.js +3 -0
- package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/lib/components/CreditForm/formStateMap.d.ts +72 -0
- package/mobile/lib/components/CreditForm/formStateMap.js +79 -0
- package/mobile/lib/components/CreditForm/formStateMap.js.map +1 -0
- package/mobile/lib/components/CreditForm/getInitialFormState.d.ts +1 -63
- package/mobile/lib/components/CreditForm/getInitialFormState.js +1 -70
- package/mobile/lib/components/CreditForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/CreditForm/renderInfo.d.ts +3 -0
- package/mobile/lib/components/CreditForm/renderInfo.js +9 -0
- package/mobile/lib/components/CreditForm/renderInfo.js.map +1 -0
- package/mobile/lib/components/CreditForm/renderInputs.js +1 -3
- package/mobile/lib/components/CreditForm/renderInputs.js.map +1 -1
- package/mobile/lib/components/CreditForm/renderStep.d.ts +11 -0
- package/mobile/lib/components/CreditForm/renderStep.js +8 -0
- package/mobile/lib/components/CreditForm/renderStep.js.map +1 -0
- package/mobile/lib/components/CreditForm/useCreditFormAPI.d.ts +13 -0
- package/mobile/lib/components/CreditForm/{useCreditFormApi.js → useCreditFormAPI.js} +5 -2
- package/mobile/lib/components/CreditForm/useCreditFormAPI.js.map +1 -0
- package/mobile/lib/hooks/useForm.d.ts +1 -1
- package/mobile/lib/hooks/useForm.js +1 -0
- package/mobile/lib/hooks/useForm.js.map +1 -1
- package/mobile/lib/model/InputSectionsType.d.ts +5 -0
- package/mobile/lib/model/InputSectionsType.js +2 -0
- package/mobile/lib/model/InputSectionsType.js.map +1 -0
- package/mobile/src/api/RetailAPI/getTaskStatus.ts +16 -0
- package/mobile/src/api/RetailAPI/sendSignalToProcess.ts +19 -0
- package/mobile/src/api/RetailAPI/updateProfileEsia.ts +7 -7
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +3 -3
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +2 -3
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +3 -16
- package/mobile/src/components/ApplicationLeadForm/pasreEsiaProfile.ts +69 -0
- package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +8 -3
- package/mobile/src/components/CalculatorCredit/CalculatorCredit.tsx +8 -1
- package/mobile/src/components/CreditForm/CreditForm.tsx +38 -11
- package/mobile/src/components/CreditForm/CreditFormContent.ts +6 -30
- package/mobile/src/components/CreditForm/CreditFormProgress.tsx +5 -5
- package/mobile/src/components/CreditForm/CreditFormStatus.tsx +119 -0
- package/mobile/src/components/CreditForm/CreditFormStatusTracker.tsx +47 -0
- package/mobile/src/components/CreditForm/CreditFormStep.tsx +39 -36
- package/mobile/src/components/CreditForm/FailedStatusContent.tsx +11 -0
- package/mobile/src/components/CreditForm/PendingStatusContent.tsx +38 -0
- package/mobile/src/components/CreditForm/ReworkStatusContent.tsx +32 -0
- package/mobile/src/components/CreditForm/SuccessStatusContent.tsx +37 -0
- package/mobile/src/components/CreditForm/creditFormStepsData.tsx +3 -0
- package/mobile/src/components/CreditForm/formStateMap.tsx +151 -0
- package/mobile/src/components/CreditForm/getInitialFormState.tsx +1 -136
- package/mobile/src/components/CreditForm/renderInfo.tsx +10 -0
- package/mobile/src/components/CreditForm/renderInputs.tsx +2 -3
- package/mobile/src/components/CreditForm/renderStep.tsx +25 -0
- package/mobile/src/components/CreditForm/{useCreditFormApi.tsx → useCreditFormAPI.tsx} +14 -3
- package/mobile/src/hooks/useForm.ts +3 -1
- package/mobile/src/model/InputSectionsType.ts +6 -0
- package/package.json +2 -2
- package/src/api/RetailAPI/getTaskStatus.ts +16 -0
- package/src/api/RetailAPI/sendSignalToProcess.ts +19 -0
- package/src/api/RetailAPI/updateProfileEsia.ts +7 -7
- package/src/components/ApplicationForm/ApplicationFormContent.ts +3 -3
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.mobile.tsx +0 -2
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.tsx +0 -2
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +2 -3
- package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +3 -16
- package/src/components/ApplicationLeadForm/pasreEsiaProfile.ts +69 -0
- package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +8 -3
- package/src/components/CalculatorCredit/CalculatorCredit.tsx +8 -1
- package/src/components/CreditForm/CreditForm.tsx +38 -11
- package/src/components/CreditForm/CreditFormContent.ts +6 -30
- package/src/components/CreditForm/CreditFormProgress.tsx +5 -5
- package/src/components/CreditForm/CreditFormStatus.tsx +119 -0
- package/src/components/CreditForm/CreditFormStatusTracker.tsx +47 -0
- package/src/components/CreditForm/CreditFormStep.tsx +39 -36
- package/src/components/CreditForm/FailedStatusContent.tsx +11 -0
- package/src/components/CreditForm/PendingStatusContent.tsx +38 -0
- package/src/components/CreditForm/ReworkStatusContent.tsx +32 -0
- package/src/components/CreditForm/SuccessStatusContent.tsx +37 -0
- package/src/components/CreditForm/creditFormStepsData.tsx +3 -0
- package/src/components/CreditForm/formStateMap.tsx +151 -0
- package/src/components/CreditForm/getInitialFormState.tsx +1 -136
- package/src/components/CreditForm/renderInfo.tsx +10 -0
- package/src/components/CreditForm/renderInputs.tsx +2 -3
- package/src/components/CreditForm/renderStep.tsx +25 -0
- package/src/components/CreditForm/{useCreditFormApi.tsx → useCreditFormAPI.tsx} +14 -3
- package/src/hooks/useForm.ts +3 -1
- package/src/model/InputSectionsType.ts +6 -0
- package/bundle/api/FileStorage.d.ts +0 -18
- package/dist/api/FileStorage.d.ts +0 -18
- package/dist/api/FileStorage.js +0 -60
- package/dist/api/FileStorage.js.map +0 -1
- package/dist/components/CreditForm/useCreditFormApi.js.map +0 -1
- package/lib/api/FileStorage.d.ts +0 -18
- package/lib/api/FileStorage.js +0 -58
- package/lib/api/FileStorage.js.map +0 -1
- package/lib/components/CreditForm/useCreditFormApi.js.map +0 -1
- package/mobile/bundle/api/FileStorage.d.ts +0 -18
- package/mobile/dist/api/FileStorage.d.ts +0 -18
- package/mobile/dist/api/FileStorage.js +0 -60
- package/mobile/dist/api/FileStorage.js.map +0 -1
- package/mobile/dist/components/CreditForm/useCreditFormApi.d.ts +0 -12
- package/mobile/dist/components/CreditForm/useCreditFormApi.js.map +0 -1
- package/mobile/lib/api/FileStorage.d.ts +0 -18
- package/mobile/lib/api/FileStorage.js +0 -58
- package/mobile/lib/api/FileStorage.js.map +0 -1
- package/mobile/lib/components/CreditForm/useCreditFormApi.d.ts +0 -12
- package/mobile/lib/components/CreditForm/useCreditFormApi.js.map +0 -1
- package/mobile/src/api/FileStorage.ts +0 -99
- package/src/api/FileStorage.ts +0 -99
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import type { Option } from '../../ui-kit/Select/Option';
|
|
2
|
+
import { type Address } from '../ApplicationLeadForm/getInitialFormState';
|
|
3
|
+
|
|
4
|
+
export interface FormStateMap {
|
|
5
|
+
0: {
|
|
6
|
+
moneyValue?: number;
|
|
7
|
+
monthsValue?: number;
|
|
8
|
+
isAnnuity?: boolean;
|
|
9
|
+
isInsurance?: boolean;
|
|
10
|
+
isSalaryClient?: boolean;
|
|
11
|
+
isPensionClient?: boolean;
|
|
12
|
+
isStateEmployee?: boolean;
|
|
13
|
+
};
|
|
14
|
+
1: {
|
|
15
|
+
surname?: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
middleName?: string;
|
|
18
|
+
sex?: string;
|
|
19
|
+
birthday?: Date;
|
|
20
|
+
birthPlace?: string;
|
|
21
|
+
phone?: string;
|
|
22
|
+
email?: string;
|
|
23
|
+
dulSerie?: number;
|
|
24
|
+
dulNumber?: number;
|
|
25
|
+
dulIssueDateField?: Date;
|
|
26
|
+
dulSubdivisionCode?: string;
|
|
27
|
+
dulIssuedBy?: string;
|
|
28
|
+
addressRegistration?: Address;
|
|
29
|
+
participantDateRegistration?: Date;
|
|
30
|
+
addressFact?: Address;
|
|
31
|
+
housing?: string;
|
|
32
|
+
};
|
|
33
|
+
2: {
|
|
34
|
+
amountWorkers?: Option;
|
|
35
|
+
beginDate?: Date;
|
|
36
|
+
employerActivities?: Option;
|
|
37
|
+
employerOrganization?: Option;
|
|
38
|
+
employment?: Option;
|
|
39
|
+
experience5Years?: string;
|
|
40
|
+
inn?: number;
|
|
41
|
+
jobsNumber?: string;
|
|
42
|
+
lastJobExperience?: string;
|
|
43
|
+
legalForm?: string;
|
|
44
|
+
organization?: Option;
|
|
45
|
+
organizationAddress?: Address;
|
|
46
|
+
organizationName?: string;
|
|
47
|
+
organizationPhone?: string;
|
|
48
|
+
partInBusiness?: number;
|
|
49
|
+
positionOrganization?: Option;
|
|
50
|
+
};
|
|
51
|
+
3: {
|
|
52
|
+
familyStatus?: Option;
|
|
53
|
+
dependents?: number;
|
|
54
|
+
familyMembers?: number;
|
|
55
|
+
mandatoryIncome?: number;
|
|
56
|
+
otherPayments?: number;
|
|
57
|
+
snils?: string;
|
|
58
|
+
armyIdFlg?: boolean;
|
|
59
|
+
};
|
|
60
|
+
4: {
|
|
61
|
+
disablePeopleFlg?: boolean;
|
|
62
|
+
bankruptcyFlg?: boolean;
|
|
63
|
+
shareholderFlg?: boolean;
|
|
64
|
+
legalEntityName?: string;
|
|
65
|
+
creditInRshbCd?: Option;
|
|
66
|
+
};
|
|
67
|
+
5: {
|
|
68
|
+
regionRetail?: string;
|
|
69
|
+
addressRetail?: string;
|
|
70
|
+
bankEmployeeCode?: string;
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export const formStateMap: FormStateMap = {
|
|
75
|
+
0: {
|
|
76
|
+
moneyValue: 0,
|
|
77
|
+
monthsValue: 0,
|
|
78
|
+
isAnnuity: false,
|
|
79
|
+
isInsurance: false,
|
|
80
|
+
isSalaryClient: false,
|
|
81
|
+
isPensionClient: false,
|
|
82
|
+
isStateEmployee: false,
|
|
83
|
+
},
|
|
84
|
+
1: {
|
|
85
|
+
surname: '',
|
|
86
|
+
name: '',
|
|
87
|
+
middleName: '',
|
|
88
|
+
sex: '',
|
|
89
|
+
birthday: undefined,
|
|
90
|
+
birthPlace: '',
|
|
91
|
+
phone: '',
|
|
92
|
+
email: '',
|
|
93
|
+
dulSerie: undefined,
|
|
94
|
+
dulNumber: undefined,
|
|
95
|
+
dulIssueDateField: undefined,
|
|
96
|
+
dulSubdivisionCode: '',
|
|
97
|
+
dulIssuedBy: '',
|
|
98
|
+
addressRegistration: {
|
|
99
|
+
fullAddress: '',
|
|
100
|
+
fiasCode: '',
|
|
101
|
+
},
|
|
102
|
+
participantDateRegistration: undefined,
|
|
103
|
+
addressFact: {
|
|
104
|
+
fullAddress: '',
|
|
105
|
+
fiasCode: '',
|
|
106
|
+
},
|
|
107
|
+
housing: '',
|
|
108
|
+
},
|
|
109
|
+
2: {
|
|
110
|
+
amountWorkers: { key: '', text: '' },
|
|
111
|
+
beginDate: undefined,
|
|
112
|
+
employerActivities: { key: '', text: '' },
|
|
113
|
+
employerOrganization: { key: '', text: '' },
|
|
114
|
+
employment: { key: '', text: '' },
|
|
115
|
+
experience5Years: '',
|
|
116
|
+
inn: undefined,
|
|
117
|
+
jobsNumber: '',
|
|
118
|
+
lastJobExperience: '',
|
|
119
|
+
legalForm: '',
|
|
120
|
+
organization: { key: '', text: '' },
|
|
121
|
+
organizationAddress: {
|
|
122
|
+
fullAddress: '',
|
|
123
|
+
fiasCode: '',
|
|
124
|
+
},
|
|
125
|
+
organizationName: '',
|
|
126
|
+
organizationPhone: '',
|
|
127
|
+
partInBusiness: undefined,
|
|
128
|
+
positionOrganization: { key: '', text: '' },
|
|
129
|
+
},
|
|
130
|
+
3: {
|
|
131
|
+
familyStatus: { key: '', text: '' },
|
|
132
|
+
dependents: undefined,
|
|
133
|
+
familyMembers: undefined,
|
|
134
|
+
mandatoryIncome: undefined,
|
|
135
|
+
otherPayments: undefined,
|
|
136
|
+
snils: '',
|
|
137
|
+
armyIdFlg: false,
|
|
138
|
+
},
|
|
139
|
+
4: {
|
|
140
|
+
disablePeopleFlg: false,
|
|
141
|
+
bankruptcyFlg: false,
|
|
142
|
+
shareholderFlg: false,
|
|
143
|
+
legalEntityName: '',
|
|
144
|
+
creditInRshbCd: undefined,
|
|
145
|
+
},
|
|
146
|
+
5: {
|
|
147
|
+
regionRetail: '',
|
|
148
|
+
addressRetail: '',
|
|
149
|
+
bankEmployeeCode: '',
|
|
150
|
+
},
|
|
151
|
+
};
|
|
@@ -1,139 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import type { Option } from '../../ui-kit/Select/Option';
|
|
3
|
-
import { type Address } from '../ApplicationLeadForm/getInitialFormState';
|
|
4
|
-
|
|
5
|
-
export interface FormStateMap {
|
|
6
|
-
0: {
|
|
7
|
-
surname?: string;
|
|
8
|
-
name?: string;
|
|
9
|
-
middleName?: string;
|
|
10
|
-
sex?: string;
|
|
11
|
-
birthday?: Date;
|
|
12
|
-
birthPlace?: string;
|
|
13
|
-
phone?: string;
|
|
14
|
-
email?: string;
|
|
15
|
-
dulSerie?: number;
|
|
16
|
-
dulNumber?: number;
|
|
17
|
-
dulIssueDateField?: Date;
|
|
18
|
-
dulSubdivisionCode?: string;
|
|
19
|
-
dulIssuedBy?: string;
|
|
20
|
-
addressRegistration?: Address;
|
|
21
|
-
addressMatch?: boolean;
|
|
22
|
-
participantDateRegistration?: Date;
|
|
23
|
-
addressFact?: Address;
|
|
24
|
-
housing?: string;
|
|
25
|
-
};
|
|
26
|
-
1: {
|
|
27
|
-
amountWorkers?: Option;
|
|
28
|
-
beginDate?: Date;
|
|
29
|
-
employerActivities?: Option;
|
|
30
|
-
employerOrganization?: Option;
|
|
31
|
-
employment?: Option;
|
|
32
|
-
experience5Years?: string;
|
|
33
|
-
inn?: number;
|
|
34
|
-
jobsNumber?: string;
|
|
35
|
-
lastJobExperience?: string;
|
|
36
|
-
legalForm?: string;
|
|
37
|
-
organization?: Option;
|
|
38
|
-
organizationAddress?: Address;
|
|
39
|
-
organizationName?: string;
|
|
40
|
-
organizationPhone?: string;
|
|
41
|
-
partInBusiness?: number;
|
|
42
|
-
positionOrganization?: Option;
|
|
43
|
-
};
|
|
44
|
-
2: {
|
|
45
|
-
familyStatus?: Option;
|
|
46
|
-
dependents?: number;
|
|
47
|
-
familyMembers?: number;
|
|
48
|
-
mandatoryIncome?: number;
|
|
49
|
-
otherPayments?: number;
|
|
50
|
-
snils?: string;
|
|
51
|
-
armyIdFlg?: boolean;
|
|
52
|
-
};
|
|
53
|
-
3: {
|
|
54
|
-
disablePeopleFlg?: boolean;
|
|
55
|
-
bankruptcyFlg?: boolean;
|
|
56
|
-
shareholderFlg?: boolean;
|
|
57
|
-
legalEntityName?: string;
|
|
58
|
-
creditInRshbCd?: Option;
|
|
59
|
-
};
|
|
60
|
-
4: {
|
|
61
|
-
regionRetail?: string;
|
|
62
|
-
addressRetail?: string;
|
|
63
|
-
bankEmployeeCode?: string;
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
const formStateMap: FormStateMap = {
|
|
68
|
-
0: {
|
|
69
|
-
surname: '',
|
|
70
|
-
name: '',
|
|
71
|
-
middleName: '',
|
|
72
|
-
sex: '',
|
|
73
|
-
birthday: undefined,
|
|
74
|
-
birthPlace: '',
|
|
75
|
-
phone: '',
|
|
76
|
-
email: '',
|
|
77
|
-
dulSerie: undefined,
|
|
78
|
-
dulNumber: undefined,
|
|
79
|
-
dulIssueDateField: undefined,
|
|
80
|
-
dulSubdivisionCode: '',
|
|
81
|
-
dulIssuedBy: '',
|
|
82
|
-
addressRegistration: {
|
|
83
|
-
fullAddress: '',
|
|
84
|
-
fiasCode: '',
|
|
85
|
-
},
|
|
86
|
-
addressMatch: false,
|
|
87
|
-
participantDateRegistration: undefined,
|
|
88
|
-
addressFact: {
|
|
89
|
-
fullAddress: '',
|
|
90
|
-
fiasCode: '',
|
|
91
|
-
},
|
|
92
|
-
housing: '',
|
|
93
|
-
},
|
|
94
|
-
1: {
|
|
95
|
-
amountWorkers: { key: '', text: '' },
|
|
96
|
-
beginDate: undefined,
|
|
97
|
-
employerActivities: { key: '', text: '' },
|
|
98
|
-
employerOrganization: { key: '', text: '' },
|
|
99
|
-
employment: { key: '', text: '' },
|
|
100
|
-
experience5Years: '',
|
|
101
|
-
inn: undefined,
|
|
102
|
-
jobsNumber: '',
|
|
103
|
-
lastJobExperience: '',
|
|
104
|
-
legalForm: '',
|
|
105
|
-
organization: { key: '', text: '' },
|
|
106
|
-
organizationAddress: {
|
|
107
|
-
fullAddress: '',
|
|
108
|
-
fiasCode: '',
|
|
109
|
-
},
|
|
110
|
-
organizationName: '',
|
|
111
|
-
organizationPhone: '',
|
|
112
|
-
partInBusiness: undefined,
|
|
113
|
-
positionOrganization: { key: '', text: '' },
|
|
114
|
-
},
|
|
115
|
-
2: {
|
|
116
|
-
familyStatus: { key: '', text: '' },
|
|
117
|
-
dependents: undefined,
|
|
118
|
-
familyMembers: undefined,
|
|
119
|
-
mandatoryIncome: undefined,
|
|
120
|
-
otherPayments: undefined,
|
|
121
|
-
snils: '',
|
|
122
|
-
armyIdFlg: false,
|
|
123
|
-
},
|
|
124
|
-
3: {
|
|
125
|
-
disablePeopleFlg: false,
|
|
126
|
-
bankruptcyFlg: false,
|
|
127
|
-
shareholderFlg: false,
|
|
128
|
-
legalEntityName: '',
|
|
129
|
-
creditInRshbCd: undefined,
|
|
130
|
-
},
|
|
131
|
-
4: {
|
|
132
|
-
regionRetail: '',
|
|
133
|
-
addressRetail: '',
|
|
134
|
-
bankEmployeeCode: '',
|
|
135
|
-
},
|
|
136
|
-
};
|
|
1
|
+
import { formStateMap, type FormStateMap } from './formStateMap';
|
|
137
2
|
|
|
138
3
|
export const getInitialFormState = <Step extends keyof FormStateMap>(
|
|
139
4
|
step: Step,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InfoCard } from '../../ui-kit/InfoCard/InfoCard';
|
|
2
|
+
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
3
|
+
|
|
4
|
+
export const renderInfo = (inputs: FieldDef[] = []) => {
|
|
5
|
+
const infoInputs = inputs.filter((_) => _.fieldType === 'info');
|
|
6
|
+
|
|
7
|
+
return infoInputs.length
|
|
8
|
+
? infoInputs.map(({ text, name }, i) => <InfoCard key={`${name}_${i}`} __html={text} />)
|
|
9
|
+
: null;
|
|
10
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { getField } from '../../ui-kit/FormField/getField';
|
|
2
2
|
import { type RenderInputsProps } from './CreditFormContent';
|
|
3
3
|
|
|
4
|
-
export const renderInputs = ({ field, inputs }: RenderInputsProps) =>
|
|
5
|
-
|
|
6
|
-
};
|
|
4
|
+
export const renderInputs = ({ field, inputs }: RenderInputsProps) =>
|
|
5
|
+
(inputs || [])?.map(getField(field, ''));
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type FormFieldRegisterer, type FormOperatorProps } from '../../hooks/useForm';
|
|
2
|
+
import { inputColumnStyles } from '../../ui-kit/FormField/inputColumnStyle';
|
|
3
|
+
import { renderTitle } from '../../ui-kit/FormField/renderTitle';
|
|
4
|
+
import { style } from '../../utils/style';
|
|
5
|
+
import { type SectionsProps } from '../ApplicationForm/ApplicationFormContent';
|
|
6
|
+
import { type FormStateMap } from './formStateMap';
|
|
7
|
+
import { renderInfo } from './renderInfo';
|
|
8
|
+
import { renderInputs } from './renderInputs';
|
|
9
|
+
|
|
10
|
+
export type CustomSubmit = FormOperatorProps<FormStateMap[keyof FormStateMap]>['onSubmit'];
|
|
11
|
+
|
|
12
|
+
export interface StepProps {
|
|
13
|
+
sections?: SectionsProps[];
|
|
14
|
+
field: FormFieldRegisterer<FormStateMap[keyof FormStateMap]>;
|
|
15
|
+
registerSubmit?: (submit: CustomSubmit) => void;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const renderStep = ({ sections, field }: StepProps) =>
|
|
19
|
+
sections?.map(({ inputs, columns, title }, i) => (
|
|
20
|
+
<div key={`section-${i}`} className={style(inputColumnStyles(columns), 'grid gap-x-m')}>
|
|
21
|
+
{renderInfo(inputs)}
|
|
22
|
+
{renderTitle(title)}
|
|
23
|
+
{renderInputs({ field, inputs })}
|
|
24
|
+
</div>
|
|
25
|
+
));
|
|
@@ -5,17 +5,24 @@ import { getObjectValidator } from '../../ui-kit/FormField/getObjectValidator';
|
|
|
5
5
|
import { objectValidator } from '../../validation/objectValidator';
|
|
6
6
|
import { isValidationSuccess } from '../../validation/validator';
|
|
7
7
|
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
8
|
+
import { type FormStateMap } from './formStateMap';
|
|
8
9
|
import { getCreditFormTaskData } from './getCreditFormTaskData';
|
|
9
|
-
import { type FormStateMap } from './getInitialFormState';
|
|
10
10
|
|
|
11
11
|
type CreditFormApiProps = {
|
|
12
|
-
inputs: FieldDef[];
|
|
13
12
|
step: number;
|
|
13
|
+
inputs: FieldDef[];
|
|
14
14
|
onNextStep: () => void;
|
|
15
15
|
saveStep: (value: Record<string, any>) => void;
|
|
16
|
+
finishForm?: (bool: boolean) => void;
|
|
16
17
|
};
|
|
17
18
|
|
|
18
|
-
export const
|
|
19
|
+
export const useCreditFormAPI = ({
|
|
20
|
+
step,
|
|
21
|
+
inputs,
|
|
22
|
+
onNextStep,
|
|
23
|
+
saveStep,
|
|
24
|
+
finishForm,
|
|
25
|
+
}: CreditFormApiProps) => {
|
|
19
26
|
const [taskId] = useLocalStorage<number>('taskId');
|
|
20
27
|
const [profileId] = useLocalStorage<number>('profileId');
|
|
21
28
|
const [participantId] = useLocalStorage<number>('participantId');
|
|
@@ -46,6 +53,10 @@ export const useCreditFormApi = ({ inputs, step, onNextStep, saveStep }: CreditF
|
|
|
46
53
|
|
|
47
54
|
onNextStep();
|
|
48
55
|
|
|
56
|
+
if (step === 5) {
|
|
57
|
+
finishForm?.(true);
|
|
58
|
+
}
|
|
59
|
+
|
|
49
60
|
return 'OK';
|
|
50
61
|
}, []);
|
|
51
62
|
|
|
@@ -22,7 +22,7 @@ export interface FormOperatorProps<FormState extends Record<string, any>> {
|
|
|
22
22
|
field: FormFieldRegisterer<FormState>;
|
|
23
23
|
update: (_: FormState) => void;
|
|
24
24
|
reset: () => void;
|
|
25
|
-
onSubmit?: (ev: PreventableEvent) =>
|
|
25
|
+
onSubmit?: (ev: PreventableEvent) => FormState;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
// eslint-disable-next-line max-lines-per-function
|
|
@@ -98,6 +98,8 @@ export const useForm = <FormState extends Record<string, any>>(
|
|
|
98
98
|
resetOnSubmit ? reset() : setDirtyForm(true);
|
|
99
99
|
|
|
100
100
|
onSubmit && onSubmit(formState, ev);
|
|
101
|
+
|
|
102
|
+
return formState;
|
|
101
103
|
},
|
|
102
104
|
[onSubmit, formState],
|
|
103
105
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redneckz/wildless-cms-uni-blocks",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.638",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ЦК",
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
"path": "lib/common.css"
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
|
-
"limit": "
|
|
213
|
+
"limit": "86 kB",
|
|
214
214
|
"path": "bundle/bundle.umd.min.js"
|
|
215
215
|
}
|
|
216
216
|
],
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { doRequest } from './doRequest';
|
|
2
|
+
|
|
3
|
+
export enum STATUS_TYPE {
|
|
4
|
+
process = 'IN_PROCESS',
|
|
5
|
+
ok = 'OK',
|
|
6
|
+
fail = 'FAILED',
|
|
7
|
+
rework = 'REWORK',
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface GetTaskStatusResponse {
|
|
11
|
+
statusCd: STATUS_TYPE;
|
|
12
|
+
taskId: number;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const getTaskStatus = (body: { taskId: number }) =>
|
|
16
|
+
doRequest<GetTaskStatusResponse>('/user-data/getTaskStatus', 'POST', body);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { doRequest } from './doRequest';
|
|
2
|
+
|
|
3
|
+
export type SignalType =
|
|
4
|
+
| 'CREATE_APPLICATION_SHORT_SIGNAL'
|
|
5
|
+
| 'CREATE_APPLICATION_LOAN_V3_SIGNAL'
|
|
6
|
+
| 'KILL_DRAFT_PROCESS_SIGNAL';
|
|
7
|
+
|
|
8
|
+
interface SendSignalToProcess {
|
|
9
|
+
signalType: SignalType;
|
|
10
|
+
taskId: number;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface SendSignalToProcessResponse {
|
|
14
|
+
statusCd: string;
|
|
15
|
+
taskId: number;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const sendSignalToProcess = (body: SendSignalToProcess) =>
|
|
19
|
+
doRequest<SendSignalToProcessResponse>('/public-data/sendSignalToProcess', 'POST', body);
|
|
@@ -14,7 +14,7 @@ export type UpdateProfileEsiaResponse = {
|
|
|
14
14
|
surname: string;
|
|
15
15
|
name: string;
|
|
16
16
|
midname: string;
|
|
17
|
-
birthDate:
|
|
17
|
+
birthDate: Date;
|
|
18
18
|
phone: string;
|
|
19
19
|
email: string;
|
|
20
20
|
esiaAccountType: {
|
|
@@ -42,11 +42,11 @@ export type UpdateProfileEsiaResponse = {
|
|
|
42
42
|
value: string;
|
|
43
43
|
};
|
|
44
44
|
city: string;
|
|
45
|
-
locality:
|
|
45
|
+
locality: string;
|
|
46
46
|
street: string;
|
|
47
47
|
house: string;
|
|
48
|
-
building:
|
|
49
|
-
block:
|
|
48
|
+
building: string;
|
|
49
|
+
block: string;
|
|
50
50
|
apartment: string;
|
|
51
51
|
};
|
|
52
52
|
addressFact: {
|
|
@@ -58,11 +58,11 @@ export type UpdateProfileEsiaResponse = {
|
|
|
58
58
|
value: string;
|
|
59
59
|
};
|
|
60
60
|
city: string;
|
|
61
|
-
locality:
|
|
61
|
+
locality: string;
|
|
62
62
|
street: string;
|
|
63
63
|
house: string;
|
|
64
|
-
building:
|
|
65
|
-
block:
|
|
64
|
+
building: string;
|
|
65
|
+
block: string;
|
|
66
66
|
apartment: string;
|
|
67
67
|
};
|
|
68
68
|
};
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import { type AspectsProps } from '../../model/AspectsProps';
|
|
5
5
|
import { type LabelProps, type TextProps, type TitleProps } from '../../model/HeadlineType';
|
|
6
|
+
import { type InputSectionsType } from '../../model/InputSectionsType';
|
|
6
7
|
import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
|
|
7
8
|
import { type Target } from '../../model/LinkProps';
|
|
8
9
|
import { type NameFieldDef } from '../../ui-kit/FormField/NameFieldDef';
|
|
@@ -140,7 +141,8 @@ type additionalParamsType = hideProductDef | showProductDef;
|
|
|
140
141
|
*/
|
|
141
142
|
export type ApplicationFormContent = UniBlockContent &
|
|
142
143
|
TitleProps &
|
|
143
|
-
AspectsProps &
|
|
144
|
+
AspectsProps &
|
|
145
|
+
InputSectionsType & {
|
|
144
146
|
/** @title Кнопка */
|
|
145
147
|
button?: SubmitButtonProps;
|
|
146
148
|
/**
|
|
@@ -154,8 +156,6 @@ export type ApplicationFormContent = UniBlockContent &
|
|
|
154
156
|
target?: Target;
|
|
155
157
|
};
|
|
156
158
|
typeForm?: TypeFormFieldDef;
|
|
157
|
-
/** @hidden */
|
|
158
|
-
sections?: SectionsProps[];
|
|
159
159
|
endpoint?: EndpointType;
|
|
160
160
|
/** @title Дополнительные параметры формы */
|
|
161
161
|
additionalParams?: additionalParamsType;
|
|
@@ -24,7 +24,6 @@ export const ApplicationLeadForm = JSX<ApplicationLeadFormProps>(
|
|
|
24
24
|
title,
|
|
25
25
|
programId = '',
|
|
26
26
|
nextStepLink = '/credit-lead',
|
|
27
|
-
typeForm = '',
|
|
28
27
|
sections = [],
|
|
29
28
|
button,
|
|
30
29
|
...rest
|
|
@@ -34,7 +33,7 @@ export const ApplicationLeadForm = JSX<ApplicationLeadFormProps>(
|
|
|
34
33
|
|
|
35
34
|
const { isLoading } = useInitApplicationLead(nextStepLink);
|
|
36
35
|
const [leadForm, setLeadForm] = useLocalStorage<FormState>('leadForm');
|
|
37
|
-
const initialFormState = getInitialFormState(inputs, leadForm
|
|
36
|
+
const initialFormState = getInitialFormState(inputs, leadForm);
|
|
38
37
|
const { handleSubmit, responseStatus } = useApplicationLeadApi({
|
|
39
38
|
inputs,
|
|
40
39
|
programId,
|
|
@@ -43,7 +42,7 @@ export const ApplicationLeadForm = JSX<ApplicationLeadFormProps>(
|
|
|
43
42
|
});
|
|
44
43
|
|
|
45
44
|
if (responseStatus) {
|
|
46
|
-
const responseTypeDialog = useResponseTypeDialog({ responseType: responseStatus
|
|
45
|
+
const responseTypeDialog = useResponseTypeDialog({ responseType: responseStatus });
|
|
47
46
|
responseTypeDialog.open();
|
|
48
47
|
}
|
|
49
48
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
2
2
|
import { type LabelProps, type TextProps, type TitleProps } from '../../model/HeadlineType';
|
|
3
|
+
import { type InputSectionsType } from '../../model/InputSectionsType';
|
|
3
4
|
import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
|
|
4
|
-
import { type Target } from '../../model/LinkProps';
|
|
5
5
|
import { type NameFieldDef } from '../../ui-kit/FormField/NameFieldDef';
|
|
6
6
|
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
7
7
|
import { type FormState } from './getInitialFormState';
|
|
@@ -113,27 +113,14 @@ export type SectionsProps = TitleProps & {
|
|
|
113
113
|
* @title Форма заявки настраиваемая
|
|
114
114
|
*/
|
|
115
115
|
export type ApplicationLeadFormContent = UniBlockContent &
|
|
116
|
-
TitleProps &
|
|
116
|
+
TitleProps &
|
|
117
|
+
InputSectionsType & {
|
|
117
118
|
/** @title Кнопка */
|
|
118
119
|
button?: SubmitButtonProps;
|
|
119
|
-
/**
|
|
120
|
-
* @title Условия передачи данных
|
|
121
|
-
* @required ["text", "href"]
|
|
122
|
-
*/
|
|
123
|
-
link?: TextProps & {
|
|
124
|
-
/** @title URL (href) */
|
|
125
|
-
href?: string;
|
|
126
|
-
/** @default "" */
|
|
127
|
-
target?: Target;
|
|
128
|
-
};
|
|
129
120
|
/** @title Номер кредитной программы */
|
|
130
121
|
programId?: string;
|
|
131
122
|
/** @title адресс следующей страницы заявки */
|
|
132
123
|
nextStepLink?: string;
|
|
133
|
-
typeForm?: TypeFormFieldDef;
|
|
134
|
-
/** @hidden */
|
|
135
|
-
sections?: SectionsProps[];
|
|
136
|
-
endpoint?: EndpointType;
|
|
137
124
|
};
|
|
138
125
|
|
|
139
126
|
/** @hidden */
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { type UpdateProfileEsiaResponse } from '../../api/RetailAPI/updateProfileEsia';
|
|
2
|
+
import { normalizePhone } from '../../ui-kit/PhoneInput/normalizePhone';
|
|
3
|
+
import { type Address, type FormState } from './getInitialFormState';
|
|
4
|
+
|
|
5
|
+
export const parseEsiaProfile = (esiaProfile: UpdateProfileEsiaResponse): FormState => {
|
|
6
|
+
const { profile, addInfo, document, addressRegistration, addressFact } = esiaProfile;
|
|
7
|
+
|
|
8
|
+
return {
|
|
9
|
+
name: profile?.name,
|
|
10
|
+
surname: profile?.surname,
|
|
11
|
+
middleName: profile?.midname,
|
|
12
|
+
birthday: profile?.birthDate,
|
|
13
|
+
phone: normalizePhone(profile?.phone),
|
|
14
|
+
email: profile?.email,
|
|
15
|
+
dulIssueDateField: document?.dulIssueDate,
|
|
16
|
+
dulIssuedBy: document?.dulIssuedBy,
|
|
17
|
+
dulNumber: document?.dulNumber,
|
|
18
|
+
dulSerie: document?.dulSerie,
|
|
19
|
+
dulSubdivisionCode: document?.dulSubdivisionCode,
|
|
20
|
+
snils: addInfo?.snils,
|
|
21
|
+
birthPlace: addInfo?.birthPlace,
|
|
22
|
+
addressRegistration: buildAddress(addressRegistration),
|
|
23
|
+
addressFact: buildAddress(addressFact),
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const concatFullAddress = (address: Array<string | undefined>): string => {
|
|
28
|
+
return address.reduce((acc: string, value) => {
|
|
29
|
+
if (value) {
|
|
30
|
+
return acc ? `${acc}, ${value}` : value;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return acc;
|
|
34
|
+
}, '');
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const buildAddress = (fields: UpdateProfileEsiaResponse['addressRegistration']): Address => {
|
|
38
|
+
const {
|
|
39
|
+
postcode,
|
|
40
|
+
region,
|
|
41
|
+
regionCode,
|
|
42
|
+
locality,
|
|
43
|
+
city,
|
|
44
|
+
street,
|
|
45
|
+
house,
|
|
46
|
+
building,
|
|
47
|
+
block,
|
|
48
|
+
apartment,
|
|
49
|
+
} = fields;
|
|
50
|
+
|
|
51
|
+
const place = locality || city;
|
|
52
|
+
|
|
53
|
+
const fullAddress = concatFullAddress([
|
|
54
|
+
postcode,
|
|
55
|
+
region,
|
|
56
|
+
place,
|
|
57
|
+
street ? `ул ${street}` : undefined,
|
|
58
|
+
house ? `д ${house}` : undefined,
|
|
59
|
+
block ? `к ${block}` : undefined,
|
|
60
|
+
building ? `стр ${building}` : undefined,
|
|
61
|
+
apartment ? `кв ${apartment}` : undefined,
|
|
62
|
+
]);
|
|
63
|
+
|
|
64
|
+
return {
|
|
65
|
+
...fields,
|
|
66
|
+
regionCode: regionCode?.key,
|
|
67
|
+
fullAddress,
|
|
68
|
+
};
|
|
69
|
+
};
|