@redneckz/wildless-cms-uni-blocks 0.14.631 → 0.14.632
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/updateUserTask.d.ts +93 -22
- package/bundle/api/dadataHints/dadataHintsType.d.ts +15 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +316 -86
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +37 -18
- package/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +10 -0
- package/bundle/components/CreditForm/getCreditFormTaskData.d.ts +11 -0
- package/bundle/components/CreditForm/getFirstStepData.d.ts +3 -0
- package/bundle/components/CreditForm/getFourthStepData.d.ts +3 -0
- package/bundle/components/CreditForm/getInitialFormState.d.ts +22 -21
- package/bundle/components/CreditForm/getSecondStepData.d.ts +3 -0
- package/bundle/components/CreditForm/getThirdStepData.d.ts +3 -0
- package/bundle/components/CreditForm/useCreditFormApi.d.ts +2 -1
- package/bundle/components/CreditForm/utils.d.ts +18 -0
- package/bundle/ui-kit/FormField/Fields/AddressField.d.ts +2 -0
- package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/dist/api/RetailAPI/updateUserTask.d.ts +93 -22
- package/dist/api/RetailAPI/updateUserTask.js.map +1 -1
- package/dist/api/dadataHints/dadataHintsType.d.ts +15 -1
- package/dist/api/dadataHints/hintsListsOptions.js +3 -2
- package/dist/api/dadataHints/hintsListsOptions.js.map +1 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +37 -18
- package/dist/components/ApplicationLeadForm/getInitialFormState.js +2 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +10 -0
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +38 -0
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -0
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +2 -2
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/CreditForm/CreditFormStep.js +1 -0
- package/dist/components/CreditForm/CreditFormStep.js.map +1 -1
- package/dist/components/CreditForm/creditFormStepsData.js +9 -4
- package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/dist/components/CreditForm/getCreditFormTaskData.d.ts +11 -0
- package/dist/components/CreditForm/getCreditFormTaskData.js +47 -0
- package/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -0
- package/dist/components/CreditForm/getFirstStepData.d.ts +3 -0
- package/dist/components/CreditForm/getFirstStepData.js +35 -0
- package/dist/components/CreditForm/getFirstStepData.js.map +1 -0
- package/dist/components/CreditForm/getFourthStepData.d.ts +3 -0
- package/dist/components/CreditForm/getFourthStepData.js +13 -0
- package/dist/components/CreditForm/getFourthStepData.js.map +1 -0
- package/dist/components/CreditForm/getInitialFormState.d.ts +22 -21
- package/dist/components/CreditForm/getInitialFormState.js +30 -21
- package/dist/components/CreditForm/getInitialFormState.js.map +1 -1
- package/dist/components/CreditForm/getSecondStepData.d.ts +3 -0
- package/dist/components/CreditForm/getSecondStepData.js +28 -0
- package/dist/components/CreditForm/getSecondStepData.js.map +1 -0
- package/dist/components/CreditForm/getThirdStepData.d.ts +3 -0
- package/dist/components/CreditForm/getThirdStepData.js +19 -0
- package/dist/components/CreditForm/getThirdStepData.js.map +1 -0
- package/dist/components/CreditForm/useCreditFormApi.d.ts +2 -1
- package/dist/components/CreditForm/useCreditFormApi.js +17 -3
- package/dist/components/CreditForm/useCreditFormApi.js.map +1 -1
- package/dist/components/CreditForm/utils.d.ts +18 -0
- package/dist/components/CreditForm/utils.js +62 -0
- package/dist/components/CreditForm/utils.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/AddressField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/AddressField.js +36 -0
- package/dist/ui-kit/FormField/Fields/AddressField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/EmploymentField.js +1 -1
- package/dist/ui-kit/FormField/Fields/EmploymentField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/PhoneField.js +1 -1
- package/dist/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/dist/ui-kit/FormField/SelectField.js +7 -3
- package/dist/ui-kit/FormField/SelectField.js.map +1 -1
- package/dist/ui-kit/FormField/getField.js +5 -4
- package/dist/ui-kit/FormField/getField.js.map +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +4 -2
- package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/lib/api/RetailAPI/updateUserTask.d.ts +93 -22
- package/lib/api/RetailAPI/updateUserTask.js.map +1 -1
- package/lib/api/dadataHints/dadataHintsType.d.ts +15 -1
- package/lib/api/dadataHints/hintsListsOptions.js +3 -2
- package/lib/api/dadataHints/hintsListsOptions.js.map +1 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +37 -18
- package/lib/components/ApplicationLeadForm/getInitialFormState.js +2 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +10 -0
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +35 -0
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -0
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +2 -2
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/CreditForm/CreditFormStep.js +1 -0
- package/lib/components/CreditForm/CreditFormStep.js.map +1 -1
- package/lib/components/CreditForm/creditFormStepsData.js +9 -4
- package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/lib/components/CreditForm/getCreditFormTaskData.d.ts +11 -0
- package/lib/components/CreditForm/getCreditFormTaskData.js +44 -0
- package/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -0
- package/lib/components/CreditForm/getFirstStepData.d.ts +3 -0
- package/lib/components/CreditForm/getFirstStepData.js +32 -0
- package/lib/components/CreditForm/getFirstStepData.js.map +1 -0
- package/lib/components/CreditForm/getFourthStepData.d.ts +3 -0
- package/lib/components/CreditForm/getFourthStepData.js +10 -0
- package/lib/components/CreditForm/getFourthStepData.js.map +1 -0
- package/lib/components/CreditForm/getInitialFormState.d.ts +22 -21
- package/lib/components/CreditForm/getInitialFormState.js +30 -21
- package/lib/components/CreditForm/getInitialFormState.js.map +1 -1
- package/lib/components/CreditForm/getSecondStepData.d.ts +3 -0
- package/lib/components/CreditForm/getSecondStepData.js +25 -0
- package/lib/components/CreditForm/getSecondStepData.js.map +1 -0
- package/lib/components/CreditForm/getThirdStepData.d.ts +3 -0
- package/lib/components/CreditForm/getThirdStepData.js +16 -0
- package/lib/components/CreditForm/getThirdStepData.js.map +1 -0
- package/lib/components/CreditForm/useCreditFormApi.d.ts +2 -1
- package/lib/components/CreditForm/useCreditFormApi.js +17 -3
- package/lib/components/CreditForm/useCreditFormApi.js.map +1 -1
- package/lib/components/CreditForm/utils.d.ts +18 -0
- package/lib/components/CreditForm/utils.js +57 -0
- package/lib/components/CreditForm/utils.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/AddressField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/AddressField.js +34 -0
- package/lib/ui-kit/FormField/Fields/AddressField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/EmploymentField.js +1 -1
- package/lib/ui-kit/FormField/Fields/EmploymentField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/PhoneField.js +1 -1
- package/lib/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/lib/ui-kit/FormField/SelectField.js +7 -3
- package/lib/ui-kit/FormField/SelectField.js.map +1 -1
- package/lib/ui-kit/FormField/getField.js +5 -4
- package/lib/ui-kit/FormField/getField.js.map +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +4 -2
- package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/bundle/api/RetailAPI/updateUserTask.d.ts +93 -22
- package/mobile/bundle/api/dadataHints/dadataHintsType.d.ts +15 -1
- package/mobile/bundle/bundle.umd.js +316 -86
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +37 -18
- package/mobile/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +10 -0
- package/mobile/bundle/components/CreditForm/getCreditFormTaskData.d.ts +11 -0
- package/mobile/bundle/components/CreditForm/getFirstStepData.d.ts +3 -0
- package/mobile/bundle/components/CreditForm/getFourthStepData.d.ts +3 -0
- package/mobile/bundle/components/CreditForm/getInitialFormState.d.ts +22 -21
- package/mobile/bundle/components/CreditForm/getSecondStepData.d.ts +3 -0
- package/mobile/bundle/components/CreditForm/getThirdStepData.d.ts +3 -0
- package/mobile/bundle/components/CreditForm/useCreditFormApi.d.ts +2 -1
- package/mobile/bundle/components/CreditForm/utils.d.ts +18 -0
- package/mobile/bundle/ui-kit/FormField/Fields/AddressField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/updateUserTask.d.ts +93 -22
- package/mobile/dist/api/RetailAPI/updateUserTask.js.map +1 -1
- package/mobile/dist/api/dadataHints/dadataHintsType.d.ts +15 -1
- package/mobile/dist/api/dadataHints/hintsListsOptions.js +3 -2
- package/mobile/dist/api/dadataHints/hintsListsOptions.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +37 -18
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +2 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +10 -0
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +38 -0
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -0
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +2 -2
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditFormStep.js +1 -0
- package/mobile/dist/components/CreditForm/CreditFormStep.js.map +1 -1
- package/mobile/dist/components/CreditForm/creditFormStepsData.js +9 -4
- package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/dist/components/CreditForm/getCreditFormTaskData.d.ts +11 -0
- package/mobile/dist/components/CreditForm/getCreditFormTaskData.js +47 -0
- package/mobile/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -0
- package/mobile/dist/components/CreditForm/getFirstStepData.d.ts +3 -0
- package/mobile/dist/components/CreditForm/getFirstStepData.js +35 -0
- package/mobile/dist/components/CreditForm/getFirstStepData.js.map +1 -0
- package/mobile/dist/components/CreditForm/getFourthStepData.d.ts +3 -0
- package/mobile/dist/components/CreditForm/getFourthStepData.js +13 -0
- package/mobile/dist/components/CreditForm/getFourthStepData.js.map +1 -0
- package/mobile/dist/components/CreditForm/getInitialFormState.d.ts +22 -21
- package/mobile/dist/components/CreditForm/getInitialFormState.js +30 -21
- package/mobile/dist/components/CreditForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/CreditForm/getSecondStepData.d.ts +3 -0
- package/mobile/dist/components/CreditForm/getSecondStepData.js +28 -0
- package/mobile/dist/components/CreditForm/getSecondStepData.js.map +1 -0
- package/mobile/dist/components/CreditForm/getThirdStepData.d.ts +3 -0
- package/mobile/dist/components/CreditForm/getThirdStepData.js +19 -0
- package/mobile/dist/components/CreditForm/getThirdStepData.js.map +1 -0
- package/mobile/dist/components/CreditForm/useCreditFormApi.d.ts +2 -1
- package/mobile/dist/components/CreditForm/useCreditFormApi.js +17 -3
- package/mobile/dist/components/CreditForm/useCreditFormApi.js.map +1 -1
- package/mobile/dist/components/CreditForm/utils.d.ts +18 -0
- package/mobile/dist/components/CreditForm/utils.js +62 -0
- package/mobile/dist/components/CreditForm/utils.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/AddressField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/AddressField.js +36 -0
- package/mobile/dist/ui-kit/FormField/Fields/AddressField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/EmploymentField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/EmploymentField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/PhoneField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/SelectField.js +7 -3
- package/mobile/dist/ui-kit/FormField/SelectField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getField.js +5 -4
- package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +4 -2
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/lib/api/RetailAPI/updateUserTask.d.ts +93 -22
- package/mobile/lib/api/RetailAPI/updateUserTask.js.map +1 -1
- package/mobile/lib/api/dadataHints/dadataHintsType.d.ts +15 -1
- package/mobile/lib/api/dadataHints/hintsListsOptions.js +3 -2
- package/mobile/lib/api/dadataHints/hintsListsOptions.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +37 -18
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +2 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +10 -0
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +35 -0
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -0
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +2 -2
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditFormStep.js +1 -0
- package/mobile/lib/components/CreditForm/CreditFormStep.js.map +1 -1
- package/mobile/lib/components/CreditForm/creditFormStepsData.js +9 -4
- package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/lib/components/CreditForm/getCreditFormTaskData.d.ts +11 -0
- package/mobile/lib/components/CreditForm/getCreditFormTaskData.js +44 -0
- package/mobile/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -0
- package/mobile/lib/components/CreditForm/getFirstStepData.d.ts +3 -0
- package/mobile/lib/components/CreditForm/getFirstStepData.js +32 -0
- package/mobile/lib/components/CreditForm/getFirstStepData.js.map +1 -0
- package/mobile/lib/components/CreditForm/getFourthStepData.d.ts +3 -0
- package/mobile/lib/components/CreditForm/getFourthStepData.js +10 -0
- package/mobile/lib/components/CreditForm/getFourthStepData.js.map +1 -0
- package/mobile/lib/components/CreditForm/getInitialFormState.d.ts +22 -21
- package/mobile/lib/components/CreditForm/getInitialFormState.js +30 -21
- package/mobile/lib/components/CreditForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/CreditForm/getSecondStepData.d.ts +3 -0
- package/mobile/lib/components/CreditForm/getSecondStepData.js +25 -0
- package/mobile/lib/components/CreditForm/getSecondStepData.js.map +1 -0
- package/mobile/lib/components/CreditForm/getThirdStepData.d.ts +3 -0
- package/mobile/lib/components/CreditForm/getThirdStepData.js +16 -0
- package/mobile/lib/components/CreditForm/getThirdStepData.js.map +1 -0
- package/mobile/lib/components/CreditForm/useCreditFormApi.d.ts +2 -1
- package/mobile/lib/components/CreditForm/useCreditFormApi.js +17 -3
- package/mobile/lib/components/CreditForm/useCreditFormApi.js.map +1 -1
- package/mobile/lib/components/CreditForm/utils.d.ts +18 -0
- package/mobile/lib/components/CreditForm/utils.js +57 -0
- package/mobile/lib/components/CreditForm/utils.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/AddressField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/AddressField.js +34 -0
- package/mobile/lib/ui-kit/FormField/Fields/AddressField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/EmploymentField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/EmploymentField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/PhoneField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/SelectField.js +7 -3
- package/mobile/lib/ui-kit/FormField/SelectField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getField.js +5 -4
- package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +4 -2
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/src/api/RetailAPI/updateUserTask.ts +103 -22
- package/mobile/src/api/dadataHints/dadataHintsType.ts +18 -1
- package/mobile/src/api/dadataHints/hintsListsOptions.ts +3 -2
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +40 -19
- package/mobile/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +50 -0
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +2 -2
- package/mobile/src/components/CreditForm/CreditFormStep.tsx +1 -0
- package/mobile/src/components/CreditForm/creditFormStepsData.tsx +9 -4
- package/mobile/src/components/CreditForm/getCreditFormTaskData.ts +61 -0
- package/mobile/src/components/CreditForm/getFirstStepData.tsx +54 -0
- package/mobile/src/components/CreditForm/getFourthStepData.ts +13 -0
- package/mobile/src/components/CreditForm/getInitialFormState.tsx +52 -42
- package/mobile/src/components/CreditForm/getSecondStepData.tsx +44 -0
- package/mobile/src/components/CreditForm/getThirdStepData.ts +27 -0
- package/mobile/src/components/CreditForm/useCreditFormApi.tsx +22 -3
- package/mobile/src/components/CreditForm/utils.ts +69 -0
- package/mobile/src/ui-kit/FormField/Fields/AddressField.tsx +47 -0
- package/mobile/src/ui-kit/FormField/Fields/EmploymentField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/PhoneField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/NameFieldDef.ts +4 -2
- package/mobile/src/ui-kit/FormField/SelectField.tsx +8 -8
- package/mobile/src/ui-kit/FormField/getField.tsx +5 -4
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +4 -2
- package/package.json +1 -1
- package/src/api/RetailAPI/updateUserTask.ts +103 -22
- package/src/api/dadataHints/dadataHintsType.ts +18 -1
- package/src/api/dadataHints/hintsListsOptions.ts +3 -2
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +40 -19
- package/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +50 -0
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +2 -2
- package/src/components/CreditForm/CreditFormStep.tsx +1 -0
- package/src/components/CreditForm/creditFormStepsData.tsx +9 -4
- package/src/components/CreditForm/getCreditFormTaskData.ts +61 -0
- package/src/components/CreditForm/getFirstStepData.tsx +54 -0
- package/src/components/CreditForm/getFourthStepData.ts +13 -0
- package/src/components/CreditForm/getInitialFormState.tsx +52 -42
- package/src/components/CreditForm/getSecondStepData.tsx +44 -0
- package/src/components/CreditForm/getThirdStepData.ts +27 -0
- package/src/components/CreditForm/useCreditFormApi.tsx +22 -3
- package/src/components/CreditForm/utils.ts +69 -0
- package/src/ui-kit/FormField/Fields/AddressField.tsx +47 -0
- package/src/ui-kit/FormField/Fields/EmploymentField.tsx +1 -1
- package/src/ui-kit/FormField/Fields/PhoneField.tsx +1 -1
- package/src/ui-kit/FormField/NameFieldDef.ts +4 -2
- package/src/ui-kit/FormField/SelectField.tsx +8 -8
- package/src/ui-kit/FormField/getField.tsx +5 -4
- package/src/ui-kit/FormField/getObjectValidator.tsx +4 -2
- package/bundle/api/RetailAPI/utils/getUpdateUserTask.d.ts +0 -10
- package/bundle/ui-kit/FormField/Fields/FullAddressField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/ParticipantAddressField.d.ts +0 -2
- package/dist/api/RetailAPI/utils/getUpdateUserTask.d.ts +0 -10
- package/dist/api/RetailAPI/utils/getUpdateUserTask.js +0 -47
- package/dist/api/RetailAPI/utils/getUpdateUserTask.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/FullAddressField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/FullAddressField.js +0 -9
- package/dist/ui-kit/FormField/Fields/FullAddressField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/ParticipantAddressField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/ParticipantAddressField.js +0 -9
- package/dist/ui-kit/FormField/Fields/ParticipantAddressField.js.map +0 -1
- package/lib/api/RetailAPI/utils/getUpdateUserTask.d.ts +0 -10
- package/lib/api/RetailAPI/utils/getUpdateUserTask.js +0 -44
- package/lib/api/RetailAPI/utils/getUpdateUserTask.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/FullAddressField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/FullAddressField.js +0 -7
- package/lib/ui-kit/FormField/Fields/FullAddressField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/ParticipantAddressField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/ParticipantAddressField.js +0 -7
- package/lib/ui-kit/FormField/Fields/ParticipantAddressField.js.map +0 -1
- package/mobile/bundle/api/RetailAPI/utils/getUpdateUserTask.d.ts +0 -10
- package/mobile/bundle/ui-kit/FormField/Fields/FullAddressField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/ParticipantAddressField.d.ts +0 -2
- package/mobile/dist/api/RetailAPI/utils/getUpdateUserTask.d.ts +0 -10
- package/mobile/dist/api/RetailAPI/utils/getUpdateUserTask.js +0 -47
- package/mobile/dist/api/RetailAPI/utils/getUpdateUserTask.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/FullAddressField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/FullAddressField.js +0 -9
- package/mobile/dist/ui-kit/FormField/Fields/FullAddressField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/ParticipantAddressField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/ParticipantAddressField.js +0 -9
- package/mobile/dist/ui-kit/FormField/Fields/ParticipantAddressField.js.map +0 -1
- package/mobile/lib/api/RetailAPI/utils/getUpdateUserTask.d.ts +0 -10
- package/mobile/lib/api/RetailAPI/utils/getUpdateUserTask.js +0 -44
- package/mobile/lib/api/RetailAPI/utils/getUpdateUserTask.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/FullAddressField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/FullAddressField.js +0 -7
- package/mobile/lib/ui-kit/FormField/Fields/FullAddressField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/ParticipantAddressField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/ParticipantAddressField.js +0 -7
- package/mobile/lib/ui-kit/FormField/Fields/ParticipantAddressField.js.map +0 -1
- package/mobile/src/api/RetailAPI/utils/getUpdateUserTask.ts +0 -66
- package/mobile/src/ui-kit/FormField/Fields/FullAddressField.tsx +0 -13
- package/mobile/src/ui-kit/FormField/Fields/ParticipantAddressField.tsx +0 -17
- package/src/api/RetailAPI/utils/getUpdateUserTask.ts +0 -66
- package/src/ui-kit/FormField/Fields/FullAddressField.tsx +0 -13
- package/src/ui-kit/FormField/Fields/ParticipantAddressField.tsx +0 -17
package/bundle/bundle.umd.js
CHANGED
|
@@ -1239,8 +1239,9 @@
|
|
|
1239
1239
|
dulIssuedBy: PASSPORT_FMS_HINTS_LIST_OPTIONS,
|
|
1240
1240
|
organizationName: ORGANIZATION_NAME_HINTS_LIST_OPTIONS,
|
|
1241
1241
|
inn: ORGANIZATION_INN_HINTS_LIST_OPTIONS,
|
|
1242
|
-
|
|
1243
|
-
|
|
1242
|
+
addressRegistration: ADDRESS_HINTS_LIST_OPTIONS,
|
|
1243
|
+
addressFact: ADDRESS_HINTS_LIST_OPTIONS,
|
|
1244
|
+
organizationAddress: ADDRESS_HINTS_LIST_OPTIONS,
|
|
1244
1245
|
};
|
|
1245
1246
|
|
|
1246
1247
|
const debounce = (fn, delay = 600) => {
|
|
@@ -1459,6 +1460,7 @@
|
|
|
1459
1460
|
addressBranch: defaultSelectValidator(),
|
|
1460
1461
|
phone: phoneValidator('Укажите номер телефона'),
|
|
1461
1462
|
secondaryPhone: phoneValidator('Укажите номер телефона'),
|
|
1463
|
+
organizationPhone: phoneValidator('Укажите номер телефона'),
|
|
1462
1464
|
birthday: defaultValidator('Укажите дату рождения'),
|
|
1463
1465
|
birthPlace: defaultValidator('Укажите место рождения'),
|
|
1464
1466
|
education: defaultValidator('Выберите ваше образование'),
|
|
@@ -1484,7 +1486,7 @@
|
|
|
1484
1486
|
experience5Years: jobNumberValidator('Укажите общий стаж за последние 5 лет'),
|
|
1485
1487
|
jobsNumber: jobNumberValidator('Укажите количество мест работы за последние 5 лет'),
|
|
1486
1488
|
beginDate: defaultValidator('Укажите дату заключения трудового договора'),
|
|
1487
|
-
|
|
1489
|
+
addressFact: defaultValidator(),
|
|
1488
1490
|
partnerComments: defaultValidator(),
|
|
1489
1491
|
collectionCount: defaultValidator(),
|
|
1490
1492
|
comment: defaultValidator(),
|
|
@@ -1513,7 +1515,8 @@
|
|
|
1513
1515
|
conscription: defaultValidator(),
|
|
1514
1516
|
armyIdFlg: agreementValidator,
|
|
1515
1517
|
sex: defaultValidator('Укажите свой пол'),
|
|
1516
|
-
|
|
1518
|
+
addressRegistration: defaultValidator('Необходимо выбрать адрес'),
|
|
1519
|
+
organizationAddress: defaultValidator('Необходимо выбрать адрес'),
|
|
1517
1520
|
participantDateRegistration: defaultValidator('Укажите дату регистрации'),
|
|
1518
1521
|
retirementIncome: defaultValidator(),
|
|
1519
1522
|
otherIncome: defaultValidator(),
|
|
@@ -1668,6 +1671,34 @@
|
|
|
1668
1671
|
})), ...getValidation(field('addressBranch'), validatorObj.addressBranch, input?.required), isSearch: true }));
|
|
1669
1672
|
});
|
|
1670
1673
|
|
|
1674
|
+
const AddressField = JSX(({ field, input }) => {
|
|
1675
|
+
const fieldName = input?.name || 'addressRegistration';
|
|
1676
|
+
const fieldValue = field(fieldName).value;
|
|
1677
|
+
const onDaDataChange = useCallback((item) => {
|
|
1678
|
+
field?.(fieldName)?.onChange?.({
|
|
1679
|
+
apartment: item?.data?.flat,
|
|
1680
|
+
city: item?.data?.city,
|
|
1681
|
+
district: item?.data?.area_with_type,
|
|
1682
|
+
fullAddress: item?.value,
|
|
1683
|
+
fiasCode: item?.data?.fias_id,
|
|
1684
|
+
house: item?.data?.house,
|
|
1685
|
+
locality: item?.data?.settlement_with_type,
|
|
1686
|
+
okatoRegionCode: item?.data?.okato,
|
|
1687
|
+
postcode: item?.data?.postal_code,
|
|
1688
|
+
region: item?.data?.region,
|
|
1689
|
+
regionCode: item?.data?.region_kladr_id ? item?.data?.region_kladr_id.substring(0, 2) : '',
|
|
1690
|
+
street: item?.data?.house,
|
|
1691
|
+
});
|
|
1692
|
+
}, []);
|
|
1693
|
+
const onChange = useCallback((value) => {
|
|
1694
|
+
field?.(fieldName)?.onChange?.({
|
|
1695
|
+
...field(fieldName).value,
|
|
1696
|
+
fullAddress: value,
|
|
1697
|
+
});
|
|
1698
|
+
}, []);
|
|
1699
|
+
return (jsx(InputControl, { label: "\u0410\u0434\u0440\u0435\u0441", ...getValidation(field(fieldName), validatorObj[fieldName], input?.required), value: fieldValue.fullAddress, onChange: onChange, ...input, onDaDataChange: onDaDataChange }));
|
|
1700
|
+
});
|
|
1701
|
+
|
|
1671
1702
|
const useNormalizedInput = (props, { normalize, format }) => {
|
|
1672
1703
|
const { value, onFocus, onBlur, onChange } = props;
|
|
1673
1704
|
const [isFocused, setIsFocused] = useState(false);
|
|
@@ -1744,10 +1775,14 @@
|
|
|
1744
1775
|
};
|
|
1745
1776
|
|
|
1746
1777
|
const SelectField = UniBlock(({ field, source, label, fieldName, input }) => {
|
|
1747
|
-
const
|
|
1748
|
-
|
|
1778
|
+
const leadOptions = (source &&
|
|
1779
|
+
source?.map((_) => ({
|
|
1780
|
+
key: _.key || '',
|
|
1781
|
+
text: _.value,
|
|
1782
|
+
}))) ||
|
|
1783
|
+
[];
|
|
1784
|
+
return (jsx(SelectControl, { placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0438\u0437 \u0441\u043F\u0438\u0441\u043A\u0430", label: label, options: leadOptions, ...getValidation(field(fieldName), validatorObj[fieldName], input?.required) }));
|
|
1749
1785
|
});
|
|
1750
|
-
const arrayToOptions$1 = (array) => (array ?? []).map((_) => ({ key: _, text: _ }));
|
|
1751
1786
|
|
|
1752
1787
|
const AmountWorkersField = JSX(({ field, input }) => {
|
|
1753
1788
|
const { data: amountWorkers } = useLeadFormData('EMPLOYEES_NUMBER');
|
|
@@ -2227,7 +2262,7 @@
|
|
|
2227
2262
|
});
|
|
2228
2263
|
|
|
2229
2264
|
const EmploymentField = JSX(({ field, input }) => {
|
|
2230
|
-
const { data: employment } = useLeadFormData('
|
|
2265
|
+
const { data: employment } = useLeadFormData('EMPLOYMENT_INFO_UNITED');
|
|
2231
2266
|
return (jsx(SelectField, { field: field, source: employment, label: "\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F \u043E \u0442\u0440\u0443\u0434\u043E\u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435", fieldName: "employment", input: input }));
|
|
2232
2267
|
});
|
|
2233
2268
|
|
|
@@ -2257,8 +2292,6 @@
|
|
|
2257
2292
|
|
|
2258
2293
|
const FeedbackMethodField = JSX(({ field, input }) => (jsx(SelectControl, { label: "\u0421\u043F\u043E\u0441\u043E\u0431 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u043E\u0442\u0432\u0435\u0442\u0430", options: FEEDBACK_METHOD, ...getValidation(field('feedbackMethod'), validatorObj.feedbackMethod, input?.required) })));
|
|
2259
2294
|
|
|
2260
|
-
const FullAddressField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0410\u0434\u0440\u0435\u0441", ...getValidation(field('fullAddress'), validatorObj.fullAddress, input?.required), ...input })));
|
|
2261
|
-
|
|
2262
2295
|
const FullNameField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0424\u0418\u041E", ...getValidation(field('fullName'), validatorObj.fullName, input?.required), ...input })));
|
|
2263
2296
|
|
|
2264
2297
|
const GeneralSeniorityField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041E\u0431\u0449\u0438\u0439 \u0441\u0442\u0430\u0436", inputLength: 2, placeholder: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043B\u0435\u0442", ...getValidation(field('generalSeniority'), validatorObj.generalSeniority, input?.required), ...input })));
|
|
@@ -2337,8 +2370,6 @@
|
|
|
2337
2370
|
|
|
2338
2371
|
const OtherPaymentsField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0432\u044B\u043F\u043B\u0430\u0442\u044B", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", type: "number", ...getValidation(field('otherPayments'), validatorObj.otherPayments, input?.required), ...input })));
|
|
2339
2372
|
|
|
2340
|
-
const ParticipantAddressField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0410\u0434\u0440\u0435\u0441", ...getValidation(field('participantAddress'), validatorObj.participantAddress, input?.required), ...input })));
|
|
2341
|
-
|
|
2342
2373
|
const ParticipantDateRegistrationField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043F\u043E \u043C\u0435\u0441\u0442\u0443 \u0436\u0438\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u0430", ...getValidation(field('participantDateRegistration'), validatorObj.participantDateRegistration, input?.required) })));
|
|
2343
2374
|
|
|
2344
2375
|
const MAX_PART = 100;
|
|
@@ -2382,7 +2413,7 @@
|
|
|
2382
2413
|
|
|
2383
2414
|
const InputPhoneControl = JSX(({ className, label, error, ...rest }) => (jsxs("div", { className: style('shrink-0 w-full', className), children: [jsx(PhoneInput, { "aria-label": label, label: getRequiredLabel({ label, errors: rest?.errors }), valid: Boolean(!error), placeholder: "+7 (___) ___-__-__", ...rest }), renderErrorText(error)] })));
|
|
2384
2415
|
|
|
2385
|
-
const PhoneField = JSX(({ field, input }) => (jsx(InputPhoneControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...getValidation(field('phone'), validatorObj.phone, input?.required), ...input })));
|
|
2416
|
+
const PhoneField = JSX(({ field, input }) => (jsx(InputPhoneControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...getValidation(field(input?.name || 'phone'), validatorObj.phone, input?.required), ...input })));
|
|
2386
2417
|
|
|
2387
2418
|
const PositionOrganizationField = JSX(({ field, input }) => {
|
|
2388
2419
|
const { data: positionOrganization } = useLeadFormData('POSITION');
|
|
@@ -3161,6 +3192,7 @@
|
|
|
3161
3192
|
name: jsx(NameField, { field: field, input: input }),
|
|
3162
3193
|
middleName: jsx(MiddleNameField, { field: field, input: input }),
|
|
3163
3194
|
phone: jsx(PhoneField, { field: field, input: input }),
|
|
3195
|
+
organizationPhone: jsx(PhoneField, { field: field, input: input }),
|
|
3164
3196
|
email: jsx(EmailField, { field: field, input: input }),
|
|
3165
3197
|
fullName: jsx(FullNameField, { field: field, input: input }),
|
|
3166
3198
|
inn: jsx(InnField, { field: field, input: input }),
|
|
@@ -3171,7 +3203,8 @@
|
|
|
3171
3203
|
experience5Years: jsx(Experience5YearsField, { field: field, input: input }),
|
|
3172
3204
|
jobsNumber: jsx(JobsNumberField, { field: field, input: input }),
|
|
3173
3205
|
beginDate: jsx(BeginDateField, { field: field, input: input }),
|
|
3174
|
-
|
|
3206
|
+
addressFact: jsx(AddressField, { field: field, input: input }),
|
|
3207
|
+
organizationAddress: jsx(AddressField, { field: field, input: input }),
|
|
3175
3208
|
comment: jsx(CommentField, { field: field, input: input }),
|
|
3176
3209
|
addressBranch: jsx(AddressBranchField, { field: field, input: input, isPremium: isPremium }),
|
|
3177
3210
|
sex: jsx(SexField, { field: field, input: input }),
|
|
@@ -3225,7 +3258,7 @@
|
|
|
3225
3258
|
dulIssueDateField: jsx(DulIssueDateField, { field: field, input: input }),
|
|
3226
3259
|
dulSubdivisionCode: jsx(DulSubdivisionCodeField, { field: field, input: input }),
|
|
3227
3260
|
dulIssuedBy: jsx(DulIssuedByField, { field: field, input: input }),
|
|
3228
|
-
|
|
3261
|
+
addressRegistration: jsx(AddressField, { field: field, input: input }),
|
|
3229
3262
|
participantDateRegistration: jsx(ParticipantDateRegistrationField, { field: field, input: input }),
|
|
3230
3263
|
retirementIncome: jsx(RetirementIncomeField, { field: field, input: input }),
|
|
3231
3264
|
otherIncome: jsx(OtherIncomeField, { field: field, input: input }),
|
|
@@ -3441,6 +3474,7 @@
|
|
|
3441
3474
|
name: '',
|
|
3442
3475
|
phone: '',
|
|
3443
3476
|
secondaryPhone: '',
|
|
3477
|
+
organizationPhone: '',
|
|
3444
3478
|
comment: '',
|
|
3445
3479
|
product: '',
|
|
3446
3480
|
partnerComments: '',
|
|
@@ -3462,7 +3496,7 @@
|
|
|
3462
3496
|
consentProviderFlg: false,
|
|
3463
3497
|
consentOthersFlg: false,
|
|
3464
3498
|
consentInformFlg: false,
|
|
3465
|
-
|
|
3499
|
+
addressRegistration: '',
|
|
3466
3500
|
participantDateRegistration: undefined,
|
|
3467
3501
|
};
|
|
3468
3502
|
const getInitialFormState$1 = (inputs, savedForm, typeForm = '') => {
|
|
@@ -3510,48 +3544,6 @@
|
|
|
3510
3544
|
};
|
|
3511
3545
|
};
|
|
3512
3546
|
|
|
3513
|
-
const getUpdateUserTaskData = ({ participantId, taskId, profileId, formData, }) => {
|
|
3514
|
-
const { name = '', surname = '', middleName = '', birthday = '', phone = '', email = '', } = formData;
|
|
3515
|
-
return {
|
|
3516
|
-
sendToBank: true,
|
|
3517
|
-
taskKind: 'SHORT',
|
|
3518
|
-
task: {
|
|
3519
|
-
taskSource: globalThis.location.origin,
|
|
3520
|
-
id: taskId,
|
|
3521
|
-
participants: [
|
|
3522
|
-
{
|
|
3523
|
-
birthDate: formatDate(birthday, true),
|
|
3524
|
-
id: participantId,
|
|
3525
|
-
midname: middleName,
|
|
3526
|
-
name: name,
|
|
3527
|
-
surname: surname,
|
|
3528
|
-
profile: {
|
|
3529
|
-
id: profileId,
|
|
3530
|
-
},
|
|
3531
|
-
participantContacts: [
|
|
3532
|
-
{
|
|
3533
|
-
contactTypeCd: {
|
|
3534
|
-
key: 'EMAIL',
|
|
3535
|
-
},
|
|
3536
|
-
value: email,
|
|
3537
|
-
},
|
|
3538
|
-
{
|
|
3539
|
-
contactTypeCd: {
|
|
3540
|
-
key: 'MAIN_PHONE',
|
|
3541
|
-
},
|
|
3542
|
-
value: formatPhone(phone),
|
|
3543
|
-
},
|
|
3544
|
-
],
|
|
3545
|
-
roleCd: {
|
|
3546
|
-
key: 'BORROWER',
|
|
3547
|
-
value: 'Заемщик',
|
|
3548
|
-
},
|
|
3549
|
-
},
|
|
3550
|
-
],
|
|
3551
|
-
},
|
|
3552
|
-
};
|
|
3553
|
-
};
|
|
3554
|
-
|
|
3555
3547
|
const ICON_SIZE$1 = { width: '118', height: '24' };
|
|
3556
3548
|
|
|
3557
3549
|
const logoTitleSizeStyle = '';
|
|
@@ -3892,6 +3884,95 @@
|
|
|
3892
3884
|
};
|
|
3893
3885
|
};
|
|
3894
3886
|
|
|
3887
|
+
const fieldsNamesToContactKeysMap = {
|
|
3888
|
+
email: 'EMAIL',
|
|
3889
|
+
phone: 'MAIN_PHONE',
|
|
3890
|
+
organizationPhone: 'ORGANIZATION_PHONE',
|
|
3891
|
+
};
|
|
3892
|
+
const fieldsNamesToAddressKeysMap = {
|
|
3893
|
+
addressRegistration: 'REGISTRATION',
|
|
3894
|
+
addressFact: 'RESIDENTAL',
|
|
3895
|
+
organizationAddress: 'WORK',
|
|
3896
|
+
};
|
|
3897
|
+
const fieldsNamesToIncomeKeysMap = {
|
|
3898
|
+
mandatoryIncome: 'INCOME_AVERAGE',
|
|
3899
|
+
otherPayments: 'MANDATORY_PAYMENTS',
|
|
3900
|
+
};
|
|
3901
|
+
const getParticipantContacts = (fields) => Object.entries(fields).reduce((acc, [key, value]) => {
|
|
3902
|
+
if (key in fieldsNamesToContactKeysMap) {
|
|
3903
|
+
return [
|
|
3904
|
+
...acc,
|
|
3905
|
+
{
|
|
3906
|
+
contactTypeCd: {
|
|
3907
|
+
key: fieldsNamesToContactKeysMap[key],
|
|
3908
|
+
},
|
|
3909
|
+
value,
|
|
3910
|
+
},
|
|
3911
|
+
];
|
|
3912
|
+
}
|
|
3913
|
+
return acc;
|
|
3914
|
+
}, []);
|
|
3915
|
+
const getParticipantAddresses = (fields) => Object.entries(fields).reduce((acc, [key, value]) => {
|
|
3916
|
+
if (key in fieldsNamesToAddressKeysMap) {
|
|
3917
|
+
return [
|
|
3918
|
+
...acc,
|
|
3919
|
+
{
|
|
3920
|
+
addressType: {
|
|
3921
|
+
key: fieldsNamesToAddressKeysMap[key],
|
|
3922
|
+
},
|
|
3923
|
+
...value,
|
|
3924
|
+
},
|
|
3925
|
+
];
|
|
3926
|
+
}
|
|
3927
|
+
return acc;
|
|
3928
|
+
}, []);
|
|
3929
|
+
const getParticipantIncomes = (fields) => Object.entries(fields).reduce((acc, [key, value]) => {
|
|
3930
|
+
if (key in fieldsNamesToIncomeKeysMap) {
|
|
3931
|
+
return [
|
|
3932
|
+
...acc,
|
|
3933
|
+
{
|
|
3934
|
+
incomeTypeCd: {
|
|
3935
|
+
key: fieldsNamesToIncomeKeysMap[key],
|
|
3936
|
+
},
|
|
3937
|
+
value,
|
|
3938
|
+
},
|
|
3939
|
+
];
|
|
3940
|
+
}
|
|
3941
|
+
return acc;
|
|
3942
|
+
}, []);
|
|
3943
|
+
|
|
3944
|
+
const getLeadFormTaskData = ({ participantId, taskId, profileId, formData, }) => {
|
|
3945
|
+
const { name, surname, middleName, birthday, phone, email } = formData;
|
|
3946
|
+
return {
|
|
3947
|
+
sendToBank: true,
|
|
3948
|
+
taskKind: 'SHORT',
|
|
3949
|
+
task: {
|
|
3950
|
+
taskSource: globalThis.location.origin,
|
|
3951
|
+
id: taskId,
|
|
3952
|
+
participants: [
|
|
3953
|
+
{
|
|
3954
|
+
birthDate: birthday && formatDate(birthday, true),
|
|
3955
|
+
id: participantId,
|
|
3956
|
+
midname: middleName,
|
|
3957
|
+
name,
|
|
3958
|
+
surname,
|
|
3959
|
+
profile: {
|
|
3960
|
+
id: profileId,
|
|
3961
|
+
},
|
|
3962
|
+
participantContacts: getParticipantContacts({
|
|
3963
|
+
phone: phone && formatPhone(phone),
|
|
3964
|
+
email,
|
|
3965
|
+
}),
|
|
3966
|
+
roleCd: {
|
|
3967
|
+
key: 'BORROWER',
|
|
3968
|
+
value: 'Заемщик',
|
|
3969
|
+
},
|
|
3970
|
+
},
|
|
3971
|
+
],
|
|
3972
|
+
},
|
|
3973
|
+
};
|
|
3974
|
+
};
|
|
3975
|
+
|
|
3895
3976
|
const useApplicationLeadApi = ({ inputs, programId, nextStepLink, saveForm, }) => {
|
|
3896
3977
|
const [responseStatus, setResponseStatus] = useState('');
|
|
3897
3978
|
const [, setTaskId] = useLocalStorage('taskId');
|
|
@@ -3953,7 +4034,7 @@
|
|
|
3953
4034
|
profileId,
|
|
3954
4035
|
programId,
|
|
3955
4036
|
});
|
|
3956
|
-
await updateUserTask(
|
|
4037
|
+
await updateUserTask(getLeadFormTaskData({
|
|
3957
4038
|
participantId,
|
|
3958
4039
|
taskId,
|
|
3959
4040
|
profileId,
|
|
@@ -5709,7 +5790,7 @@
|
|
|
5709
5790
|
});
|
|
5710
5791
|
|
|
5711
5792
|
const formStateMap = {
|
|
5712
|
-
|
|
5793
|
+
0: {
|
|
5713
5794
|
surname: '',
|
|
5714
5795
|
name: '',
|
|
5715
5796
|
middleName: '',
|
|
@@ -5723,30 +5804,39 @@
|
|
|
5723
5804
|
dulIssueDateField: undefined,
|
|
5724
5805
|
dulSubdivisionCode: '',
|
|
5725
5806
|
dulIssuedBy: '',
|
|
5726
|
-
|
|
5807
|
+
addressRegistration: {
|
|
5808
|
+
fullAddress: '',
|
|
5809
|
+
fiasCode: '',
|
|
5810
|
+
},
|
|
5727
5811
|
participantDateRegistration: undefined,
|
|
5728
|
-
|
|
5812
|
+
addressFact: {
|
|
5813
|
+
fullAddress: '',
|
|
5814
|
+
fiasCode: '',
|
|
5815
|
+
},
|
|
5729
5816
|
housing: '',
|
|
5730
5817
|
},
|
|
5731
|
-
|
|
5732
|
-
employment: { key: '', text: '' },
|
|
5733
|
-
organizationName: '',
|
|
5734
|
-
inn: undefined,
|
|
5735
|
-
legalForm: '',
|
|
5736
|
-
organization: { key: '', text: '' },
|
|
5818
|
+
1: {
|
|
5737
5819
|
amountWorkers: { key: '', text: '' },
|
|
5820
|
+
beginDate: undefined,
|
|
5738
5821
|
employerActivities: { key: '', text: '' },
|
|
5739
5822
|
employerOrganization: { key: '', text: '' },
|
|
5740
|
-
|
|
5823
|
+
employment: { key: '', text: '' },
|
|
5741
5824
|
experience5Years: '',
|
|
5825
|
+
inn: undefined,
|
|
5742
5826
|
jobsNumber: '',
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5827
|
+
lastJobExperience: '',
|
|
5828
|
+
legalForm: '',
|
|
5829
|
+
organization: { key: '', text: '' },
|
|
5830
|
+
organizationAddress: {
|
|
5831
|
+
fullAddress: '',
|
|
5832
|
+
fiasCode: '',
|
|
5833
|
+
},
|
|
5834
|
+
organizationName: '',
|
|
5835
|
+
organizationPhone: '',
|
|
5746
5836
|
partInBusiness: undefined,
|
|
5747
|
-
|
|
5837
|
+
positionOrganization: { key: '', text: '' },
|
|
5748
5838
|
},
|
|
5749
|
-
|
|
5839
|
+
2: {
|
|
5750
5840
|
familyStatus: { key: '', text: '' },
|
|
5751
5841
|
dependents: undefined,
|
|
5752
5842
|
familyMembers: undefined,
|
|
@@ -5755,14 +5845,14 @@
|
|
|
5755
5845
|
snils: '',
|
|
5756
5846
|
armyIdFlg: false,
|
|
5757
5847
|
},
|
|
5758
|
-
|
|
5759
|
-
disablePeopleFlg:
|
|
5760
|
-
bankruptcyFlg:
|
|
5761
|
-
shareholderFlg:
|
|
5848
|
+
3: {
|
|
5849
|
+
disablePeopleFlg: false,
|
|
5850
|
+
bankruptcyFlg: false,
|
|
5851
|
+
shareholderFlg: false,
|
|
5762
5852
|
legalEntityName: '',
|
|
5763
|
-
creditInRshbCd:
|
|
5853
|
+
creditInRshbCd: undefined,
|
|
5764
5854
|
},
|
|
5765
|
-
|
|
5855
|
+
4: {
|
|
5766
5856
|
regionRetail: '',
|
|
5767
5857
|
addressRetail: '',
|
|
5768
5858
|
bankEmployeeCode: '',
|
|
@@ -5791,13 +5881,147 @@
|
|
|
5791
5881
|
return (jsxs("div", { className: 'flex justify-between', children: [jsx(Button, { onClick: onPrevStep, className: style('w-full @xl:w-auto'), type: "button", version: "secondary", disabled: isFirstStep, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(Button, { className: style('w-full @xl:w-auto'), type: "submit", children: "\u0414\u0430\u043B\u0435\u0435" })] }));
|
|
5792
5882
|
});
|
|
5793
5883
|
|
|
5794
|
-
const
|
|
5884
|
+
const getFirstStepData = (formData) => {
|
|
5885
|
+
const { name, surname, middleName, birthday = '', phone = '', email, sex, birthPlace, dulIssueDateField = '', dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, education, participantDateRegistration = '', housing, addressRegistration, addressFact, } = formData;
|
|
5886
|
+
return {
|
|
5887
|
+
birthDate: formatDate(birthday, true),
|
|
5888
|
+
midname: middleName,
|
|
5889
|
+
name,
|
|
5890
|
+
surname,
|
|
5891
|
+
birthPlace,
|
|
5892
|
+
dulIssueDate: formatDate(dulIssueDateField, true),
|
|
5893
|
+
dulIssuedBy,
|
|
5894
|
+
dulNumber,
|
|
5895
|
+
dulSerie,
|
|
5896
|
+
dulSubdivisionCode,
|
|
5897
|
+
educationLevelCd: education,
|
|
5898
|
+
registrationDate: formatDate(participantDateRegistration, true),
|
|
5899
|
+
houseTypeCd: housing,
|
|
5900
|
+
participantContacts: getParticipantContacts({
|
|
5901
|
+
phone: formatPhone(phone),
|
|
5902
|
+
email,
|
|
5903
|
+
}),
|
|
5904
|
+
participantAddresses: getParticipantAddresses({ addressRegistration, addressFact }),
|
|
5905
|
+
genderCd: sex
|
|
5906
|
+
? {
|
|
5907
|
+
key: sex === 'male' ? 'MAN' : 'WOMAN',
|
|
5908
|
+
}
|
|
5909
|
+
: undefined,
|
|
5910
|
+
};
|
|
5911
|
+
};
|
|
5912
|
+
|
|
5913
|
+
const getFourthStepData = (formData) => {
|
|
5914
|
+
const { bankruptcyFlg, shareholderFlg, legalEntityName, creditInRshbCd } = formData;
|
|
5915
|
+
return {
|
|
5916
|
+
bankruptcyFlg,
|
|
5917
|
+
shareholderFlg,
|
|
5918
|
+
nameLegalEntity: legalEntityName,
|
|
5919
|
+
creditInRshbCd,
|
|
5920
|
+
};
|
|
5921
|
+
};
|
|
5922
|
+
|
|
5923
|
+
const getSecondStepData = (formData) => {
|
|
5924
|
+
const { employment, organizationName, inn, legalForm, organization, amountWorkers, employerActivities, employerOrganization, generalSeniority, lastJobExperience, experience5Years, jobsNumber, organizationPhone, organizationAddress, positionOrganization, } = formData;
|
|
5925
|
+
return {
|
|
5926
|
+
employmentTypeCd: employment,
|
|
5927
|
+
organizationName,
|
|
5928
|
+
organizationInn: inn,
|
|
5929
|
+
organizationActivityTypeCd: employerActivities,
|
|
5930
|
+
organizationTypeCd: organization,
|
|
5931
|
+
organizationKindCd: employerOrganization,
|
|
5932
|
+
employeesNumberCd: amountWorkers,
|
|
5933
|
+
opf: legalForm,
|
|
5934
|
+
seniority: generalSeniority,
|
|
5935
|
+
generalSeniority: experience5Years,
|
|
5936
|
+
jobsNumber,
|
|
5937
|
+
lastWorkDuration: lastJobExperience,
|
|
5938
|
+
positionCd: positionOrganization,
|
|
5939
|
+
participantContacts: getParticipantContacts({
|
|
5940
|
+
organizationPhone: organizationPhone && formatPhone(organizationPhone),
|
|
5941
|
+
}),
|
|
5942
|
+
participantAddresses: getParticipantAddresses({ organizationAddress }),
|
|
5943
|
+
};
|
|
5944
|
+
};
|
|
5945
|
+
|
|
5946
|
+
const getThirdStepData = (formData) => {
|
|
5947
|
+
const { familyStatus, dependents, familyMembers, mandatoryIncome, otherPayments, snils, armyIdFlg, } = formData;
|
|
5948
|
+
return {
|
|
5949
|
+
maritalStatusCd: familyStatus,
|
|
5950
|
+
totalDependents: familyMembers,
|
|
5951
|
+
otherDependents: dependents,
|
|
5952
|
+
participantIncomes: getParticipantIncomes({
|
|
5953
|
+
mandatoryIncome,
|
|
5954
|
+
otherPayments,
|
|
5955
|
+
}),
|
|
5956
|
+
snils: snils?.replaceAll(' ', ''),
|
|
5957
|
+
armyIdFlg,
|
|
5958
|
+
};
|
|
5959
|
+
};
|
|
5960
|
+
|
|
5961
|
+
const getCreditFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) => {
|
|
5962
|
+
return {
|
|
5963
|
+
sendToBank: true,
|
|
5964
|
+
taskKind: 'UNITED',
|
|
5965
|
+
task: {
|
|
5966
|
+
taskSource: globalThis.location.origin,
|
|
5967
|
+
id: taskId,
|
|
5968
|
+
//TODO: Добавить id офиса
|
|
5969
|
+
authorizedAgentId: formData?.bankEmployeeCode,
|
|
5970
|
+
participants: [
|
|
5971
|
+
{
|
|
5972
|
+
id: participantId,
|
|
5973
|
+
profile: {
|
|
5974
|
+
id: profileId,
|
|
5975
|
+
},
|
|
5976
|
+
roleCd: {
|
|
5977
|
+
key: 'BORROWER',
|
|
5978
|
+
value: 'Заемщик',
|
|
5979
|
+
},
|
|
5980
|
+
...getCurrentStepData(step, formData),
|
|
5981
|
+
},
|
|
5982
|
+
],
|
|
5983
|
+
},
|
|
5984
|
+
};
|
|
5985
|
+
};
|
|
5986
|
+
const getCurrentStepData = (step, formData) => {
|
|
5987
|
+
switch (step) {
|
|
5988
|
+
case 0:
|
|
5989
|
+
return getFirstStepData(formData);
|
|
5990
|
+
case 1:
|
|
5991
|
+
return getSecondStepData(formData);
|
|
5992
|
+
case 2:
|
|
5993
|
+
return getThirdStepData(formData);
|
|
5994
|
+
case 3:
|
|
5995
|
+
return getFourthStepData(formData);
|
|
5996
|
+
default:
|
|
5997
|
+
return getFirstStepData(formData);
|
|
5998
|
+
}
|
|
5999
|
+
};
|
|
6000
|
+
|
|
6001
|
+
const useCreditFormApi = ({ inputs, step, onNextStep, saveStep }) => {
|
|
6002
|
+
const [taskId] = useLocalStorage('taskId');
|
|
6003
|
+
const [profileId] = useLocalStorage('profileId');
|
|
6004
|
+
const [participantId] = useLocalStorage('participantId');
|
|
5795
6005
|
const handleSubmit = useCallback(async (formData) => {
|
|
5796
6006
|
const feedbackValidator = objectValidator(getObjectValidator(inputs));
|
|
5797
6007
|
if (!isValidationSuccess(feedbackValidator(formData))) {
|
|
5798
6008
|
return console.warn('validation fail');
|
|
5799
6009
|
}
|
|
5800
6010
|
saveStep(formData);
|
|
6011
|
+
try {
|
|
6012
|
+
if (taskId && profileId && participantId) {
|
|
6013
|
+
await updateUserTask(getCreditFormTaskData({
|
|
6014
|
+
participantId,
|
|
6015
|
+
taskId,
|
|
6016
|
+
profileId,
|
|
6017
|
+
step,
|
|
6018
|
+
formData: formData,
|
|
6019
|
+
}));
|
|
6020
|
+
}
|
|
6021
|
+
}
|
|
6022
|
+
catch (ex) {
|
|
6023
|
+
return 'Fail';
|
|
6024
|
+
}
|
|
5801
6025
|
onNextStep();
|
|
5802
6026
|
return 'OK';
|
|
5803
6027
|
}, []);
|
|
@@ -5811,6 +6035,7 @@
|
|
|
5811
6035
|
const initialState = getInitialFormState(step, localStorageData);
|
|
5812
6036
|
const { handleSubmit } = useCreditFormApi({
|
|
5813
6037
|
inputs,
|
|
6038
|
+
step,
|
|
5814
6039
|
onNextStep: onNextStep,
|
|
5815
6040
|
saveStep,
|
|
5816
6041
|
});
|
|
@@ -5868,7 +6093,7 @@
|
|
|
5868
6093
|
inputs: [],
|
|
5869
6094
|
},
|
|
5870
6095
|
{
|
|
5871
|
-
inputs: [{ fieldType: 'common', name: '
|
|
6096
|
+
inputs: [{ fieldType: 'common', name: 'addressRegistration', required: true, dadata: true }],
|
|
5872
6097
|
},
|
|
5873
6098
|
{
|
|
5874
6099
|
columns: 2,
|
|
@@ -5878,7 +6103,7 @@
|
|
|
5878
6103
|
title: 'Адрес фактического проживания (место пребывания РФ)',
|
|
5879
6104
|
columns: 2,
|
|
5880
6105
|
inputs: [
|
|
5881
|
-
{ fieldType: 'common', name: '
|
|
6106
|
+
{ fieldType: 'common', name: 'addressFact', required: true, dadata: true },
|
|
5882
6107
|
{ fieldType: 'common', name: 'housing' },
|
|
5883
6108
|
],
|
|
5884
6109
|
},
|
|
@@ -5928,7 +6153,12 @@
|
|
|
5928
6153
|
},
|
|
5929
6154
|
{
|
|
5930
6155
|
inputs: [
|
|
5931
|
-
{
|
|
6156
|
+
{
|
|
6157
|
+
fieldType: 'common',
|
|
6158
|
+
name: 'organizationPhone',
|
|
6159
|
+
label: 'Телефон работодателя',
|
|
6160
|
+
required: true,
|
|
6161
|
+
},
|
|
5932
6162
|
{ fieldType: 'common', name: 'beginDate', required: true },
|
|
5933
6163
|
],
|
|
5934
6164
|
},
|
|
@@ -5944,7 +6174,7 @@
|
|
|
5944
6174
|
inputs: [],
|
|
5945
6175
|
},
|
|
5946
6176
|
{
|
|
5947
|
-
inputs: [{ fieldType: 'common', name: '
|
|
6177
|
+
inputs: [{ fieldType: 'common', name: 'organizationAddress', required: true, dadata: true }],
|
|
5948
6178
|
},
|
|
5949
6179
|
],
|
|
5950
6180
|
[
|
|
@@ -8325,7 +8555,7 @@
|
|
|
8325
8555
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
8326
8556
|
});
|
|
8327
8557
|
|
|
8328
|
-
const packageVersion = "0.14.
|
|
8558
|
+
const packageVersion = "0.14.631";
|
|
8329
8559
|
|
|
8330
8560
|
exports.Blocks = Blocks;
|
|
8331
8561
|
exports.ContentPage = ContentPage;
|