@redneckz/wildless-cms-uni-blocks 0.14.698 → 0.14.700
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/getPaymentSystems.d.ts +2 -4
- package/bundle/api/RetailAPI/model/EOrganizationActivityTypes.d.ts +23 -0
- package/bundle/api/RetailAPI/model/LeadFormData.d.ts +7 -0
- package/bundle/api/RetailAPI/updateUserTask.d.ts +5 -1
- package/bundle/api/RetailAPI/utils/getOrganizationParams.d.ts +17 -0
- package/bundle/api/RetailAPI/utils/getUpdateUserProfile.d.ts +2 -2
- package/bundle/api/dadataHints/dadataHintsType.d.ts +3 -0
- package/bundle/bundle.umd.js +399 -275
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -2
- package/bundle/components/ApplicationLeadForm/LeadFormState.d.ts +147 -0
- package/bundle/components/ApplicationLeadForm/consents.d.ts +3 -3
- package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +2 -148
- package/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
- package/bundle/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +2 -2
- package/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +5 -6
- package/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +4 -2
- package/bundle/components/ApplicationLeadForm/useLeadFormStore.d.ts +15 -0
- package/bundle/components/CreditCardForm/CreditCardFormContent.d.ts +2 -2
- package/bundle/components/CreditCardForm/calculateInputs.d.ts +2 -2
- package/bundle/components/CreditCardForm/formStateMap.d.ts +2 -2
- package/bundle/components/CreditCardForm/getCardData.d.ts +2 -2
- package/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +2 -2
- package/bundle/components/CreditCardForm/getFifthStepData.d.ts +2 -2
- package/bundle/components/CreditCardForm/getFourthStepData.d.ts +2 -2
- package/bundle/components/CreditCardForm/getInitialFormState.d.ts +2 -2
- package/bundle/components/CreditCardForm/getSecondStepData.d.ts +2 -2
- package/bundle/components/CreditCardForm/getSixthStepData.d.ts +4 -4
- package/bundle/components/CreditCardForm/getThirdStepData.d.ts +2 -2
- package/bundle/components/CreditCardForm/renderInputs.d.ts +2 -2
- package/bundle/components/CreditCardForm/renderStep.d.ts +3 -3
- package/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
- package/bundle/components/CreditForm/calculateInputs.d.ts +2 -2
- package/bundle/components/CreditForm/formStateMap.d.ts +2 -2
- package/bundle/components/CreditForm/getCalcData.d.ts +2 -2
- package/bundle/components/CreditForm/getCreditFormTaskData.d.ts +2 -2
- package/bundle/components/CreditForm/getFifthStepData.d.ts +2 -2
- package/bundle/components/CreditForm/getFirstStepData.d.ts +2 -2
- package/bundle/components/CreditForm/getFourthStepData.d.ts +2 -2
- package/bundle/components/CreditForm/getInitialFormState.d.ts +2 -2
- package/bundle/components/CreditForm/getSecondStepData.d.ts +2 -2
- package/bundle/components/CreditForm/getThirdStepData.d.ts +2 -2
- package/bundle/components/CreditForm/getZeroStepData.d.ts +2 -2
- package/bundle/components/CreditForm/renderInputs.d.ts +2 -2
- package/bundle/components/CreditForm/renderStep.d.ts +3 -3
- package/bundle/components/CreditForm/useCreditFormAPI.d.ts +2 -2
- package/bundle/components/CreditForm/utils.d.ts +1 -1
- package/bundle/hooks/useCreditFormStore.d.ts +13 -0
- package/bundle/hooks/useLeadFormData.d.ts +1 -1
- package/bundle/hooks/useSetter.d.ts +2 -0
- package/bundle/ui-kit/DialogManager/useDialog.d.ts +4 -1
- package/bundle/ui-kit/FormField/SelectField.d.ts +1 -7
- package/bundle/ui-kit/FormField/updateOrganizationFields.d.ts +4 -0
- package/bundle/ui-kit/FormField/validators.d.ts +1 -1
- package/bundle/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +2 -5
- package/dist/api/RetailAPI/getPaymentSystems.d.ts +2 -4
- package/dist/api/RetailAPI/getPaymentSystems.js +1 -4
- package/dist/api/RetailAPI/getPaymentSystems.js.map +1 -1
- package/dist/api/RetailAPI/model/EOrganizationActivityTypes.d.ts +23 -0
- package/dist/api/RetailAPI/model/EOrganizationActivityTypes.js +2 -0
- package/dist/api/RetailAPI/model/EOrganizationActivityTypes.js.map +1 -0
- package/dist/api/RetailAPI/model/LeadFormData.d.ts +7 -0
- package/dist/api/RetailAPI/model/LeadFormData.js +2 -0
- package/dist/api/RetailAPI/model/LeadFormData.js.map +1 -0
- package/dist/api/RetailAPI/updateUserTask.d.ts +5 -1
- package/dist/api/RetailAPI/updateUserTask.js.map +1 -1
- package/dist/api/RetailAPI/utils/getOrganizationParams.d.ts +17 -0
- package/dist/api/RetailAPI/utils/getOrganizationParams.js +101 -0
- package/dist/api/RetailAPI/utils/getOrganizationParams.js.map +1 -0
- package/dist/api/RetailAPI/utils/getUpdateUserProfile.d.ts +2 -2
- package/dist/api/RetailAPI/utils/getUpdateUserProfile.js +1 -0
- package/dist/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
- package/dist/api/dadataHints/dadataHintsType.d.ts +3 -0
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +2 -7
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -2
- package/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/dist/components/ApplicationLeadForm/LeadFormState.d.ts +147 -0
- package/dist/components/ApplicationLeadForm/LeadFormState.js +2 -0
- package/dist/components/ApplicationLeadForm/LeadFormState.js.map +1 -0
- package/dist/components/ApplicationLeadForm/consents.d.ts +3 -3
- package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +2 -148
- package/dist/components/ApplicationLeadForm/getInitialFormState.js +4 -6
- package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/dist/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +2 -2
- package/dist/components/ApplicationLeadForm/pasreEsiaProfile.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +5 -6
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +11 -19
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +4 -2
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +9 -7
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useLeadFormStore.d.ts +15 -0
- package/dist/components/ApplicationLeadForm/useLeadFormStore.js +6 -0
- package/dist/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -0
- package/dist/components/CreditCardForm/CreditCardFormContent.d.ts +2 -2
- package/dist/components/CreditCardForm/calculateInputs.d.ts +2 -2
- package/dist/components/CreditCardForm/formStateMap.d.ts +2 -2
- package/dist/components/CreditCardForm/formStateMap.js +1 -1
- package/dist/components/CreditCardForm/formStateMap.js.map +1 -1
- package/dist/components/CreditCardForm/getCardData.d.ts +2 -2
- package/dist/components/CreditCardForm/getCardData.js.map +1 -1
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +2 -2
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/dist/components/CreditCardForm/getFifthStepData.d.ts +2 -2
- package/dist/components/CreditCardForm/getFifthStepData.js.map +1 -1
- package/dist/components/CreditCardForm/getFourthStepData.d.ts +2 -2
- package/dist/components/CreditCardForm/getFourthStepData.js.map +1 -1
- package/dist/components/CreditCardForm/getInitialFormState.d.ts +2 -2
- package/dist/components/CreditCardForm/getInitialFormState.js.map +1 -1
- package/dist/components/CreditCardForm/getSecondStepData.d.ts +2 -2
- package/dist/components/CreditCardForm/getSecondStepData.js.map +1 -1
- package/dist/components/CreditCardForm/getSixthStepData.d.ts +4 -4
- package/dist/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/dist/components/CreditCardForm/getThirdStepData.d.ts +2 -2
- package/dist/components/CreditCardForm/getThirdStepData.js.map +1 -1
- package/dist/components/CreditCardForm/renderInputs.d.ts +2 -2
- package/dist/components/CreditCardForm/renderStep.d.ts +3 -3
- package/dist/components/CreditCardForm/renderStep.js.map +1 -1
- package/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/dist/components/CreditForm/PendingStatusContent.js.map +1 -1
- package/dist/components/CreditForm/calculateInputs.d.ts +2 -2
- package/dist/components/CreditForm/formStateMap.d.ts +2 -2
- package/dist/components/CreditForm/formStateMap.js.map +1 -1
- package/dist/components/CreditForm/getCalcData.d.ts +2 -2
- package/dist/components/CreditForm/getCalcData.js.map +1 -1
- package/dist/components/CreditForm/getCreditFormTaskData.d.ts +2 -2
- package/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/dist/components/CreditForm/getFifthStepData.d.ts +2 -2
- package/dist/components/CreditForm/getFifthStepData.js.map +1 -1
- package/dist/components/CreditForm/getFirstStepData.d.ts +2 -2
- package/dist/components/CreditForm/getFirstStepData.js.map +1 -1
- package/dist/components/CreditForm/getFourthStepData.d.ts +2 -2
- package/dist/components/CreditForm/getFourthStepData.js.map +1 -1
- package/dist/components/CreditForm/getInitialFormState.d.ts +2 -2
- package/dist/components/CreditForm/getInitialFormState.js.map +1 -1
- package/dist/components/CreditForm/getSecondStepData.d.ts +2 -2
- package/dist/components/CreditForm/getSecondStepData.js.map +1 -1
- package/dist/components/CreditForm/getThirdStepData.d.ts +2 -2
- package/dist/components/CreditForm/getThirdStepData.js.map +1 -1
- package/dist/components/CreditForm/getZeroStepData.d.ts +2 -2
- package/dist/components/CreditForm/getZeroStepData.js.map +1 -1
- package/dist/components/CreditForm/renderInputs.d.ts +2 -2
- package/dist/components/CreditForm/renderStep.d.ts +3 -3
- package/dist/components/CreditForm/renderStep.js.map +1 -1
- package/dist/components/CreditForm/useCreditFormAPI.d.ts +2 -2
- package/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/dist/components/CreditForm/utils.d.ts +1 -1
- package/dist/components/GrantSupport/GrantSupport.js +1 -1
- package/dist/components/GrantSupport/GrantSupport.js.map +1 -1
- package/dist/hooks/useCreditFormStore.d.ts +13 -0
- package/dist/hooks/useCreditFormStore.js +8 -0
- package/dist/hooks/useCreditFormStore.js.map +1 -0
- package/dist/hooks/useLeadFormData.d.ts +1 -1
- package/dist/hooks/useSetter.d.ts +2 -0
- package/dist/hooks/useSetter.js +14 -0
- package/dist/hooks/useSetter.js.map +1 -0
- package/dist/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js +1 -1
- package/dist/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js.map +1 -1
- package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +2 -10
- package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/dist/ui-kit/DialogManager/useDialog.d.ts +4 -1
- package/dist/ui-kit/DialogManager/useDialog.js.map +1 -1
- package/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/AmountWorkersField.js +10 -2
- package/dist/ui-kit/FormField/Fields/AmountWorkersField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/CardCategoryField.js +1 -1
- package/dist/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/EmployerActivitiesField.js +10 -2
- package/dist/ui-kit/FormField/Fields/EmployerActivitiesField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/EmployerOrganizationField.js +10 -2
- package/dist/ui-kit/FormField/Fields/EmployerOrganizationField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/InnField.js +4 -3
- package/dist/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/OrganizationField.js +10 -2
- package/dist/ui-kit/FormField/Fields/OrganizationField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/OrganizationNameField.js +4 -1
- package/dist/ui-kit/FormField/Fields/OrganizationNameField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/PaymentSystemField.js +3 -1
- package/dist/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
- package/dist/ui-kit/FormField/SelectField.d.ts +1 -7
- package/dist/ui-kit/FormField/SelectField.js.map +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +10 -10
- package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/dist/ui-kit/FormField/updateOrganizationFields.d.ts +4 -0
- package/dist/ui-kit/FormField/updateOrganizationFields.js +17 -0
- package/dist/ui-kit/FormField/updateOrganizationFields.js.map +1 -0
- package/dist/ui-kit/FormField/validators.d.ts +1 -1
- package/dist/ui-kit/RichText/RichText.js +3 -6
- package/dist/ui-kit/RichText/RichText.js.map +1 -1
- package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +2 -5
- package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +5 -3
- package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/lib/api/RetailAPI/getPaymentSystems.d.ts +2 -4
- package/lib/api/RetailAPI/getPaymentSystems.js +1 -4
- package/lib/api/RetailAPI/getPaymentSystems.js.map +1 -1
- package/lib/api/RetailAPI/model/EOrganizationActivityTypes.d.ts +23 -0
- package/lib/api/RetailAPI/model/EOrganizationActivityTypes.js +2 -0
- package/lib/api/RetailAPI/model/EOrganizationActivityTypes.js.map +1 -0
- package/lib/api/RetailAPI/model/LeadFormData.d.ts +7 -0
- package/lib/api/RetailAPI/model/LeadFormData.js +2 -0
- package/lib/api/RetailAPI/model/LeadFormData.js.map +1 -0
- package/lib/api/RetailAPI/updateUserTask.d.ts +5 -1
- package/lib/api/RetailAPI/updateUserTask.js.map +1 -1
- package/lib/api/RetailAPI/utils/getOrganizationParams.d.ts +17 -0
- package/lib/api/RetailAPI/utils/getOrganizationParams.js +95 -0
- package/lib/api/RetailAPI/utils/getOrganizationParams.js.map +1 -0
- package/lib/api/RetailAPI/utils/getUpdateUserProfile.d.ts +2 -2
- package/lib/api/RetailAPI/utils/getUpdateUserProfile.js +1 -0
- package/lib/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
- package/lib/api/dadataHints/dadataHintsType.d.ts +3 -0
- package/lib/common.css +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -8
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -2
- package/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/lib/components/ApplicationLeadForm/LeadFormState.d.ts +147 -0
- package/lib/components/ApplicationLeadForm/LeadFormState.js +2 -0
- package/lib/components/ApplicationLeadForm/LeadFormState.js.map +1 -0
- package/lib/components/ApplicationLeadForm/consents.d.ts +3 -3
- package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +2 -148
- package/lib/components/ApplicationLeadForm/getInitialFormState.js +4 -6
- package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/lib/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +2 -2
- package/lib/components/ApplicationLeadForm/pasreEsiaProfile.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +5 -6
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +11 -19
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +4 -2
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +10 -8
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useLeadFormStore.d.ts +15 -0
- package/lib/components/ApplicationLeadForm/useLeadFormStore.js +3 -0
- package/lib/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -0
- package/lib/components/CreditCardForm/CreditCardFormContent.d.ts +2 -2
- package/lib/components/CreditCardForm/calculateInputs.d.ts +2 -2
- package/lib/components/CreditCardForm/formStateMap.d.ts +2 -2
- package/lib/components/CreditCardForm/formStateMap.js +1 -1
- package/lib/components/CreditCardForm/formStateMap.js.map +1 -1
- package/lib/components/CreditCardForm/getCardData.d.ts +2 -2
- package/lib/components/CreditCardForm/getCardData.js.map +1 -1
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +2 -2
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/lib/components/CreditCardForm/getFifthStepData.d.ts +2 -2
- package/lib/components/CreditCardForm/getFifthStepData.js.map +1 -1
- package/lib/components/CreditCardForm/getFourthStepData.d.ts +2 -2
- package/lib/components/CreditCardForm/getFourthStepData.js.map +1 -1
- package/lib/components/CreditCardForm/getInitialFormState.d.ts +2 -2
- package/lib/components/CreditCardForm/getInitialFormState.js.map +1 -1
- package/lib/components/CreditCardForm/getSecondStepData.d.ts +2 -2
- package/lib/components/CreditCardForm/getSecondStepData.js.map +1 -1
- package/lib/components/CreditCardForm/getSixthStepData.d.ts +4 -4
- package/lib/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/lib/components/CreditCardForm/getThirdStepData.d.ts +2 -2
- package/lib/components/CreditCardForm/getThirdStepData.js.map +1 -1
- package/lib/components/CreditCardForm/renderInputs.d.ts +2 -2
- package/lib/components/CreditCardForm/renderStep.d.ts +3 -3
- package/lib/components/CreditCardForm/renderStep.js.map +1 -1
- package/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/lib/components/CreditForm/PendingStatusContent.js.map +1 -1
- package/lib/components/CreditForm/calculateInputs.d.ts +2 -2
- package/lib/components/CreditForm/formStateMap.d.ts +2 -2
- package/lib/components/CreditForm/formStateMap.js.map +1 -1
- package/lib/components/CreditForm/getCalcData.d.ts +2 -2
- package/lib/components/CreditForm/getCalcData.js.map +1 -1
- package/lib/components/CreditForm/getCreditFormTaskData.d.ts +2 -2
- package/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/lib/components/CreditForm/getFifthStepData.d.ts +2 -2
- package/lib/components/CreditForm/getFifthStepData.js.map +1 -1
- package/lib/components/CreditForm/getFirstStepData.d.ts +2 -2
- package/lib/components/CreditForm/getFirstStepData.js.map +1 -1
- package/lib/components/CreditForm/getFourthStepData.d.ts +2 -2
- package/lib/components/CreditForm/getFourthStepData.js.map +1 -1
- package/lib/components/CreditForm/getInitialFormState.d.ts +2 -2
- package/lib/components/CreditForm/getInitialFormState.js.map +1 -1
- package/lib/components/CreditForm/getSecondStepData.d.ts +2 -2
- package/lib/components/CreditForm/getSecondStepData.js.map +1 -1
- package/lib/components/CreditForm/getThirdStepData.d.ts +2 -2
- package/lib/components/CreditForm/getThirdStepData.js.map +1 -1
- package/lib/components/CreditForm/getZeroStepData.d.ts +2 -2
- package/lib/components/CreditForm/getZeroStepData.js.map +1 -1
- package/lib/components/CreditForm/renderInputs.d.ts +2 -2
- package/lib/components/CreditForm/renderStep.d.ts +3 -3
- package/lib/components/CreditForm/renderStep.js.map +1 -1
- package/lib/components/CreditForm/useCreditFormAPI.d.ts +2 -2
- package/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/lib/components/CreditForm/utils.d.ts +1 -1
- package/lib/components/GrantSupport/GrantSupport.js +1 -1
- package/lib/components/GrantSupport/GrantSupport.js.map +1 -1
- package/lib/hooks/useCreditFormStore.d.ts +13 -0
- package/lib/hooks/useCreditFormStore.js +5 -0
- package/lib/hooks/useCreditFormStore.js.map +1 -0
- package/lib/hooks/useLeadFormData.d.ts +1 -1
- package/lib/hooks/useSetter.d.ts +2 -0
- package/lib/hooks/useSetter.js +11 -0
- package/lib/hooks/useSetter.js.map +1 -0
- package/lib/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js +1 -1
- package/lib/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js.map +1 -1
- package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +2 -10
- package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/lib/ui-kit/DialogManager/useDialog.d.ts +4 -1
- package/lib/ui-kit/DialogManager/useDialog.js.map +1 -1
- package/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/AmountWorkersField.js +10 -2
- package/lib/ui-kit/FormField/Fields/AmountWorkersField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/CardCategoryField.js +1 -1
- package/lib/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/EmployerActivitiesField.js +10 -2
- package/lib/ui-kit/FormField/Fields/EmployerActivitiesField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/EmployerOrganizationField.js +10 -2
- package/lib/ui-kit/FormField/Fields/EmployerOrganizationField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/InnField.js +4 -3
- package/lib/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/OrganizationField.js +10 -2
- package/lib/ui-kit/FormField/Fields/OrganizationField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/OrganizationNameField.js +4 -1
- package/lib/ui-kit/FormField/Fields/OrganizationNameField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/PaymentSystemField.js +4 -2
- package/lib/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
- package/lib/ui-kit/FormField/SelectField.d.ts +1 -7
- package/lib/ui-kit/FormField/SelectField.js.map +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +10 -10
- package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/lib/ui-kit/FormField/updateOrganizationFields.d.ts +4 -0
- package/lib/ui-kit/FormField/updateOrganizationFields.js +14 -0
- package/lib/ui-kit/FormField/updateOrganizationFields.js.map +1 -0
- package/lib/ui-kit/FormField/validators.d.ts +1 -1
- package/lib/ui-kit/RichText/RichText.js +3 -6
- package/lib/ui-kit/RichText/RichText.js.map +1 -1
- package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +2 -5
- package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +5 -3
- package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/bundle/api/RetailAPI/getPaymentSystems.d.ts +2 -4
- package/mobile/bundle/api/RetailAPI/model/EOrganizationActivityTypes.d.ts +23 -0
- package/mobile/bundle/api/RetailAPI/model/LeadFormData.d.ts +7 -0
- package/mobile/bundle/api/RetailAPI/updateUserTask.d.ts +5 -1
- package/mobile/bundle/api/RetailAPI/utils/getOrganizationParams.d.ts +17 -0
- package/mobile/bundle/api/RetailAPI/utils/getUpdateUserProfile.d.ts +2 -2
- package/mobile/bundle/api/dadataHints/dadataHintsType.d.ts +3 -0
- package/mobile/bundle/bundle.umd.js +399 -275
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -2
- package/mobile/bundle/components/ApplicationLeadForm/LeadFormState.d.ts +147 -0
- package/mobile/bundle/components/ApplicationLeadForm/consents.d.ts +3 -3
- package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +2 -148
- package/mobile/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
- package/mobile/bundle/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +2 -2
- package/mobile/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +5 -6
- package/mobile/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +4 -2
- package/mobile/bundle/components/ApplicationLeadForm/useLeadFormStore.d.ts +15 -0
- package/mobile/bundle/components/CreditCardForm/CreditCardFormContent.d.ts +2 -2
- package/mobile/bundle/components/CreditCardForm/calculateInputs.d.ts +2 -2
- package/mobile/bundle/components/CreditCardForm/formStateMap.d.ts +2 -2
- package/mobile/bundle/components/CreditCardForm/getCardData.d.ts +2 -2
- package/mobile/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +2 -2
- package/mobile/bundle/components/CreditCardForm/getFifthStepData.d.ts +2 -2
- package/mobile/bundle/components/CreditCardForm/getFourthStepData.d.ts +2 -2
- package/mobile/bundle/components/CreditCardForm/getInitialFormState.d.ts +2 -2
- package/mobile/bundle/components/CreditCardForm/getSecondStepData.d.ts +2 -2
- package/mobile/bundle/components/CreditCardForm/getSixthStepData.d.ts +4 -4
- package/mobile/bundle/components/CreditCardForm/getThirdStepData.d.ts +2 -2
- package/mobile/bundle/components/CreditCardForm/renderInputs.d.ts +2 -2
- package/mobile/bundle/components/CreditCardForm/renderStep.d.ts +3 -3
- package/mobile/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/calculateInputs.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/formStateMap.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/getCalcData.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/getCreditFormTaskData.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/getFifthStepData.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/getFirstStepData.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/getFourthStepData.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/getInitialFormState.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/getSecondStepData.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/getThirdStepData.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/getZeroStepData.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/renderInputs.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/renderStep.d.ts +3 -3
- package/mobile/bundle/components/CreditForm/useCreditFormAPI.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/utils.d.ts +1 -1
- package/mobile/bundle/hooks/useCreditFormStore.d.ts +13 -0
- package/mobile/bundle/hooks/useLeadFormData.d.ts +1 -1
- package/mobile/bundle/hooks/useSetter.d.ts +2 -0
- package/mobile/bundle/ui-kit/DialogManager/useDialog.d.ts +4 -1
- package/mobile/bundle/ui-kit/FormField/SelectField.d.ts +1 -7
- package/mobile/bundle/ui-kit/FormField/updateOrganizationFields.d.ts +4 -0
- package/mobile/bundle/ui-kit/FormField/validators.d.ts +1 -1
- package/mobile/bundle/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +2 -5
- package/mobile/dist/api/RetailAPI/getPaymentSystems.d.ts +2 -4
- package/mobile/dist/api/RetailAPI/getPaymentSystems.js +1 -4
- package/mobile/dist/api/RetailAPI/getPaymentSystems.js.map +1 -1
- package/mobile/dist/api/RetailAPI/model/EOrganizationActivityTypes.d.ts +23 -0
- package/mobile/dist/api/RetailAPI/model/EOrganizationActivityTypes.js +2 -0
- package/mobile/dist/api/RetailAPI/model/EOrganizationActivityTypes.js.map +1 -0
- package/mobile/dist/api/RetailAPI/model/LeadFormData.d.ts +7 -0
- package/mobile/dist/api/RetailAPI/model/LeadFormData.js +2 -0
- package/mobile/dist/api/RetailAPI/model/LeadFormData.js.map +1 -0
- package/mobile/dist/api/RetailAPI/updateUserTask.d.ts +5 -1
- package/mobile/dist/api/RetailAPI/updateUserTask.js.map +1 -1
- package/mobile/dist/api/RetailAPI/utils/getOrganizationParams.d.ts +17 -0
- package/mobile/dist/api/RetailAPI/utils/getOrganizationParams.js +101 -0
- package/mobile/dist/api/RetailAPI/utils/getOrganizationParams.js.map +1 -0
- package/mobile/dist/api/RetailAPI/utils/getUpdateUserProfile.d.ts +2 -2
- package/mobile/dist/api/RetailAPI/utils/getUpdateUserProfile.js +1 -0
- package/mobile/dist/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
- package/mobile/dist/api/dadataHints/dadataHintsType.d.ts +3 -0
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +2 -7
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -2
- package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/LeadFormState.d.ts +147 -0
- package/mobile/dist/components/ApplicationLeadForm/LeadFormState.js +2 -0
- package/mobile/dist/components/ApplicationLeadForm/LeadFormState.js.map +1 -0
- package/mobile/dist/components/ApplicationLeadForm/consents.d.ts +3 -3
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +2 -148
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +4 -6
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +2 -2
- package/mobile/dist/components/ApplicationLeadForm/pasreEsiaProfile.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +5 -6
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +11 -19
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +4 -2
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +9 -7
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.d.ts +15 -0
- package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.js +6 -0
- package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -0
- package/mobile/dist/components/CreditCardForm/CreditCardFormContent.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/calculateInputs.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/formStateMap.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/formStateMap.js +1 -1
- package/mobile/dist/components/CreditCardForm/formStateMap.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getCardData.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/getCardData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getFifthStepData.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/getFifthStepData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getFourthStepData.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/getFourthStepData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getInitialFormState.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getSecondStepData.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/getSecondStepData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getSixthStepData.d.ts +4 -4
- package/mobile/dist/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getThirdStepData.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/getThirdStepData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/renderInputs.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/renderStep.d.ts +3 -3
- package/mobile/dist/components/CreditCardForm/renderStep.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/dist/components/CreditForm/PendingStatusContent.js.map +1 -1
- package/mobile/dist/components/CreditForm/calculateInputs.d.ts +2 -2
- package/mobile/dist/components/CreditForm/formStateMap.d.ts +2 -2
- package/mobile/dist/components/CreditForm/formStateMap.js.map +1 -1
- package/mobile/dist/components/CreditForm/getCalcData.d.ts +2 -2
- package/mobile/dist/components/CreditForm/getCalcData.js.map +1 -1
- package/mobile/dist/components/CreditForm/getCreditFormTaskData.d.ts +2 -2
- package/mobile/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/mobile/dist/components/CreditForm/getFifthStepData.d.ts +2 -2
- package/mobile/dist/components/CreditForm/getFifthStepData.js.map +1 -1
- package/mobile/dist/components/CreditForm/getFirstStepData.d.ts +2 -2
- package/mobile/dist/components/CreditForm/getFirstStepData.js.map +1 -1
- package/mobile/dist/components/CreditForm/getFourthStepData.d.ts +2 -2
- package/mobile/dist/components/CreditForm/getFourthStepData.js.map +1 -1
- package/mobile/dist/components/CreditForm/getInitialFormState.d.ts +2 -2
- package/mobile/dist/components/CreditForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/CreditForm/getSecondStepData.d.ts +2 -2
- package/mobile/dist/components/CreditForm/getSecondStepData.js.map +1 -1
- package/mobile/dist/components/CreditForm/getThirdStepData.d.ts +2 -2
- package/mobile/dist/components/CreditForm/getThirdStepData.js.map +1 -1
- package/mobile/dist/components/CreditForm/getZeroStepData.d.ts +2 -2
- package/mobile/dist/components/CreditForm/getZeroStepData.js.map +1 -1
- package/mobile/dist/components/CreditForm/renderInputs.d.ts +2 -2
- package/mobile/dist/components/CreditForm/renderStep.d.ts +3 -3
- package/mobile/dist/components/CreditForm/renderStep.js.map +1 -1
- package/mobile/dist/components/CreditForm/useCreditFormAPI.d.ts +2 -2
- package/mobile/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/mobile/dist/components/CreditForm/utils.d.ts +1 -1
- package/mobile/dist/components/GrantSupport/GrantSupport.js +1 -1
- package/mobile/dist/components/GrantSupport/GrantSupport.js.map +1 -1
- package/mobile/dist/hooks/useCreditFormStore.d.ts +13 -0
- package/mobile/dist/hooks/useCreditFormStore.js +8 -0
- package/mobile/dist/hooks/useCreditFormStore.js.map +1 -0
- package/mobile/dist/hooks/useLeadFormData.d.ts +1 -1
- package/mobile/dist/hooks/useSetter.d.ts +2 -0
- package/mobile/dist/hooks/useSetter.js +14 -0
- package/mobile/dist/hooks/useSetter.js.map +1 -0
- package/mobile/dist/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js +1 -1
- package/mobile/dist/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js.map +1 -1
- package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +2 -10
- package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/mobile/dist/ui-kit/DialogManager/useDialog.d.ts +4 -1
- package/mobile/dist/ui-kit/DialogManager/useDialog.js.map +1 -1
- package/mobile/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/AmountWorkersField.js +10 -2
- package/mobile/dist/ui-kit/FormField/Fields/AmountWorkersField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/CardCategoryField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/EmployerActivitiesField.js +10 -2
- package/mobile/dist/ui-kit/FormField/Fields/EmployerActivitiesField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/EmployerOrganizationField.js +10 -2
- package/mobile/dist/ui-kit/FormField/Fields/EmployerOrganizationField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/InnField.js +4 -3
- package/mobile/dist/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/OrganizationField.js +10 -2
- package/mobile/dist/ui-kit/FormField/Fields/OrganizationField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/OrganizationNameField.js +4 -1
- package/mobile/dist/ui-kit/FormField/Fields/OrganizationNameField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.js +3 -1
- package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/SelectField.d.ts +1 -7
- package/mobile/dist/ui-kit/FormField/SelectField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +10 -10
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/updateOrganizationFields.d.ts +4 -0
- package/mobile/dist/ui-kit/FormField/updateOrganizationFields.js +17 -0
- package/mobile/dist/ui-kit/FormField/updateOrganizationFields.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/validators.d.ts +1 -1
- package/mobile/dist/ui-kit/RichText/RichText.js +3 -6
- package/mobile/dist/ui-kit/RichText/RichText.js.map +1 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +2 -5
- package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +5 -3
- package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/lib/api/RetailAPI/getPaymentSystems.d.ts +2 -4
- package/mobile/lib/api/RetailAPI/getPaymentSystems.js +1 -4
- package/mobile/lib/api/RetailAPI/getPaymentSystems.js.map +1 -1
- package/mobile/lib/api/RetailAPI/model/EOrganizationActivityTypes.d.ts +23 -0
- package/mobile/lib/api/RetailAPI/model/EOrganizationActivityTypes.js +2 -0
- package/mobile/lib/api/RetailAPI/model/EOrganizationActivityTypes.js.map +1 -0
- package/mobile/lib/api/RetailAPI/model/LeadFormData.d.ts +7 -0
- package/mobile/lib/api/RetailAPI/model/LeadFormData.js +2 -0
- package/mobile/lib/api/RetailAPI/model/LeadFormData.js.map +1 -0
- package/mobile/lib/api/RetailAPI/updateUserTask.d.ts +5 -1
- package/mobile/lib/api/RetailAPI/updateUserTask.js.map +1 -1
- package/mobile/lib/api/RetailAPI/utils/getOrganizationParams.d.ts +17 -0
- package/mobile/lib/api/RetailAPI/utils/getOrganizationParams.js +95 -0
- package/mobile/lib/api/RetailAPI/utils/getOrganizationParams.js.map +1 -0
- package/mobile/lib/api/RetailAPI/utils/getUpdateUserProfile.d.ts +2 -2
- package/mobile/lib/api/RetailAPI/utils/getUpdateUserProfile.js +1 -0
- package/mobile/lib/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
- package/mobile/lib/api/dadataHints/dadataHintsType.d.ts +3 -0
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -8
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -2
- package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/LeadFormState.d.ts +147 -0
- package/mobile/lib/components/ApplicationLeadForm/LeadFormState.js +2 -0
- package/mobile/lib/components/ApplicationLeadForm/LeadFormState.js.map +1 -0
- package/mobile/lib/components/ApplicationLeadForm/consents.d.ts +3 -3
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +2 -148
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +4 -6
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +2 -2
- package/mobile/lib/components/ApplicationLeadForm/pasreEsiaProfile.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +5 -6
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +11 -19
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +4 -2
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +10 -8
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.d.ts +15 -0
- package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.js +3 -0
- package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/CreditCardFormContent.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/calculateInputs.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/formStateMap.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/formStateMap.js +1 -1
- package/mobile/lib/components/CreditCardForm/formStateMap.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getCardData.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/getCardData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getFifthStepData.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/getFifthStepData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getFourthStepData.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/getFourthStepData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getInitialFormState.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getSecondStepData.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/getSecondStepData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getSixthStepData.d.ts +4 -4
- package/mobile/lib/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getThirdStepData.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/getThirdStepData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/renderInputs.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/renderStep.d.ts +3 -3
- package/mobile/lib/components/CreditCardForm/renderStep.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/lib/components/CreditForm/PendingStatusContent.js.map +1 -1
- package/mobile/lib/components/CreditForm/calculateInputs.d.ts +2 -2
- package/mobile/lib/components/CreditForm/formStateMap.d.ts +2 -2
- package/mobile/lib/components/CreditForm/formStateMap.js.map +1 -1
- package/mobile/lib/components/CreditForm/getCalcData.d.ts +2 -2
- package/mobile/lib/components/CreditForm/getCalcData.js.map +1 -1
- package/mobile/lib/components/CreditForm/getCreditFormTaskData.d.ts +2 -2
- package/mobile/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/mobile/lib/components/CreditForm/getFifthStepData.d.ts +2 -2
- package/mobile/lib/components/CreditForm/getFifthStepData.js.map +1 -1
- package/mobile/lib/components/CreditForm/getFirstStepData.d.ts +2 -2
- package/mobile/lib/components/CreditForm/getFirstStepData.js.map +1 -1
- package/mobile/lib/components/CreditForm/getFourthStepData.d.ts +2 -2
- package/mobile/lib/components/CreditForm/getFourthStepData.js.map +1 -1
- package/mobile/lib/components/CreditForm/getInitialFormState.d.ts +2 -2
- package/mobile/lib/components/CreditForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/CreditForm/getSecondStepData.d.ts +2 -2
- package/mobile/lib/components/CreditForm/getSecondStepData.js.map +1 -1
- package/mobile/lib/components/CreditForm/getThirdStepData.d.ts +2 -2
- package/mobile/lib/components/CreditForm/getThirdStepData.js.map +1 -1
- package/mobile/lib/components/CreditForm/getZeroStepData.d.ts +2 -2
- package/mobile/lib/components/CreditForm/getZeroStepData.js.map +1 -1
- package/mobile/lib/components/CreditForm/renderInputs.d.ts +2 -2
- package/mobile/lib/components/CreditForm/renderStep.d.ts +3 -3
- package/mobile/lib/components/CreditForm/renderStep.js.map +1 -1
- package/mobile/lib/components/CreditForm/useCreditFormAPI.d.ts +2 -2
- package/mobile/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/mobile/lib/components/CreditForm/utils.d.ts +1 -1
- package/mobile/lib/components/GrantSupport/GrantSupport.js +1 -1
- package/mobile/lib/components/GrantSupport/GrantSupport.js.map +1 -1
- package/mobile/lib/hooks/useCreditFormStore.d.ts +13 -0
- package/mobile/lib/hooks/useCreditFormStore.js +5 -0
- package/mobile/lib/hooks/useCreditFormStore.js.map +1 -0
- package/mobile/lib/hooks/useLeadFormData.d.ts +1 -1
- package/mobile/lib/hooks/useSetter.d.ts +2 -0
- package/mobile/lib/hooks/useSetter.js +11 -0
- package/mobile/lib/hooks/useSetter.js.map +1 -0
- package/mobile/lib/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js +1 -1
- package/mobile/lib/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js.map +1 -1
- package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +2 -10
- package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/mobile/lib/ui-kit/DialogManager/useDialog.d.ts +4 -1
- package/mobile/lib/ui-kit/DialogManager/useDialog.js.map +1 -1
- package/mobile/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/AmountWorkersField.js +10 -2
- package/mobile/lib/ui-kit/FormField/Fields/AmountWorkersField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/CardCategoryField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/EmployerActivitiesField.js +10 -2
- package/mobile/lib/ui-kit/FormField/Fields/EmployerActivitiesField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/EmployerOrganizationField.js +10 -2
- package/mobile/lib/ui-kit/FormField/Fields/EmployerOrganizationField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/InnField.js +4 -3
- package/mobile/lib/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/OrganizationField.js +10 -2
- package/mobile/lib/ui-kit/FormField/Fields/OrganizationField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/OrganizationNameField.js +4 -1
- package/mobile/lib/ui-kit/FormField/Fields/OrganizationNameField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.js +4 -2
- package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/SelectField.d.ts +1 -7
- package/mobile/lib/ui-kit/FormField/SelectField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +10 -10
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/updateOrganizationFields.d.ts +4 -0
- package/mobile/lib/ui-kit/FormField/updateOrganizationFields.js +14 -0
- package/mobile/lib/ui-kit/FormField/updateOrganizationFields.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/validators.d.ts +1 -1
- package/mobile/lib/ui-kit/RichText/RichText.js +3 -6
- package/mobile/lib/ui-kit/RichText/RichText.js.map +1 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +2 -5
- package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +5 -3
- package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/src/api/RetailAPI/getPaymentSystems.ts +3 -10
- package/mobile/src/api/RetailAPI/model/EOrganizationActivityTypes.ts +23 -0
- package/mobile/src/api/RetailAPI/model/LeadFormData.ts +7 -0
- package/mobile/src/api/RetailAPI/updateUserTask.ts +6 -1
- package/mobile/src/api/RetailAPI/utils/getOrganizationParams.ts +126 -0
- package/mobile/src/api/RetailAPI/utils/getUpdateUserProfile.ts +4 -2
- package/mobile/src/api/dadataHints/dadataHintsType.ts +3 -0
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +6 -8
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +2 -2
- package/mobile/src/components/ApplicationLeadForm/GroupedConsents.tsx +5 -5
- package/mobile/src/components/ApplicationLeadForm/LeadFormState.ts +152 -0
- package/mobile/src/components/ApplicationLeadForm/consents.ts +3 -3
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +6 -161
- package/mobile/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +2 -2
- package/mobile/src/components/ApplicationLeadForm/pasreEsiaProfile.ts +2 -2
- package/mobile/src/components/ApplicationLeadForm/{useApplicationLeadApi.ts → useApplicationLeadApi.tsx} +19 -34
- package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +20 -9
- package/mobile/src/components/ApplicationLeadForm/useLeadFormStore.ts +12 -0
- package/mobile/src/components/CreditCardForm/CreditCardFormContent.ts +2 -2
- package/mobile/src/components/CreditCardForm/calculateInputs.ts +2 -2
- package/mobile/src/components/CreditCardForm/formStateMap.tsx +3 -3
- package/mobile/src/components/CreditCardForm/getCardData.tsx +2 -2
- package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +3 -3
- package/mobile/src/components/CreditCardForm/getFifthStepData.ts +2 -2
- package/mobile/src/components/CreditCardForm/getFourthStepData.ts +2 -2
- package/mobile/src/components/CreditCardForm/getInitialFormState.tsx +2 -2
- package/mobile/src/components/CreditCardForm/getSecondStepData.tsx +2 -2
- package/mobile/src/components/CreditCardForm/getSixthStepData.ts +4 -4
- package/mobile/src/components/CreditCardForm/getThirdStepData.tsx +2 -2
- package/mobile/src/components/CreditCardForm/renderInputs.tsx +2 -2
- package/mobile/src/components/CreditCardForm/renderStep.tsx +4 -4
- package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +3 -3
- package/mobile/src/components/CreditForm/PendingStatusContent.tsx +2 -2
- package/mobile/src/components/CreditForm/calculateInputs.ts +2 -2
- package/mobile/src/components/CreditForm/formStateMap.tsx +2 -2
- package/mobile/src/components/CreditForm/getCalcData.ts +2 -2
- package/mobile/src/components/CreditForm/getCreditFormTaskData.ts +3 -3
- package/mobile/src/components/CreditForm/getFifthStepData.ts +2 -2
- package/mobile/src/components/CreditForm/getFirstStepData.tsx +2 -2
- package/mobile/src/components/CreditForm/getFourthStepData.ts +2 -2
- package/mobile/src/components/CreditForm/getInitialFormState.tsx +2 -2
- package/mobile/src/components/CreditForm/getSecondStepData.tsx +2 -2
- package/mobile/src/components/CreditForm/getThirdStepData.ts +2 -2
- package/mobile/src/components/CreditForm/getZeroStepData.ts +2 -2
- package/mobile/src/components/CreditForm/renderInputs.tsx +2 -2
- package/mobile/src/components/CreditForm/renderStep.tsx +4 -4
- package/mobile/src/components/CreditForm/useCreditFormAPI.tsx +3 -3
- package/mobile/src/components/CreditForm/utils.ts +1 -1
- package/mobile/src/components/GrantSupport/GrantSupport.tsx +1 -1
- package/mobile/src/hooks/useCreditFormStore.tsx +13 -0
- package/mobile/src/hooks/useLeadFormData.ts +1 -1
- package/mobile/src/hooks/useSetter.ts +16 -0
- package/mobile/src/ui-kit/ApplicationFormLayout/ApplicationFormLayout.tsx +1 -1
- package/mobile/src/ui-kit/ConsentBkiDialog/useConsentBkiDialog.tsx +2 -11
- package/mobile/src/ui-kit/DialogManager/useDialog.tsx +2 -1
- package/mobile/src/ui-kit/EsiaLoginDialog/EsiaLoginDialog.tsx +2 -2
- package/mobile/src/ui-kit/FormField/Fields/AmountWorkersField.tsx +12 -2
- package/mobile/src/ui-kit/FormField/Fields/CardCategoryField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/EmployerActivitiesField.tsx +12 -2
- package/mobile/src/ui-kit/FormField/Fields/EmployerOrganizationField.tsx +12 -2
- package/mobile/src/ui-kit/FormField/Fields/InnField.tsx +5 -5
- package/mobile/src/ui-kit/FormField/Fields/OrganizationField.tsx +12 -2
- package/mobile/src/ui-kit/FormField/Fields/OrganizationNameField.tsx +5 -1
- package/mobile/src/ui-kit/FormField/Fields/PaymentSystemField.tsx +14 -6
- package/mobile/src/ui-kit/FormField/SelectField.tsx +1 -8
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +10 -10
- package/mobile/src/ui-kit/FormField/updateOrganizationFields.ts +40 -0
- package/mobile/src/ui-kit/FormField/validators.ts +1 -1
- package/mobile/src/ui-kit/RichText/RichText.tsx +21 -21
- package/mobile/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +20 -25
- package/package.json +1 -1
- package/src/api/RetailAPI/getPaymentSystems.ts +3 -10
- package/src/api/RetailAPI/model/EOrganizationActivityTypes.ts +23 -0
- package/src/api/RetailAPI/model/LeadFormData.ts +7 -0
- package/src/api/RetailAPI/updateUserTask.ts +6 -1
- package/src/api/RetailAPI/utils/getOrganizationParams.ts +126 -0
- package/src/api/RetailAPI/utils/getUpdateUserProfile.ts +4 -2
- package/src/api/dadataHints/dadataHintsType.ts +3 -0
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +6 -8
- package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +2 -2
- package/src/components/ApplicationLeadForm/GroupedConsents.tsx +5 -5
- package/src/components/ApplicationLeadForm/LeadFormState.ts +152 -0
- package/src/components/ApplicationLeadForm/consents.ts +3 -3
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +6 -161
- package/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +2 -2
- package/src/components/ApplicationLeadForm/pasreEsiaProfile.ts +2 -2
- package/src/components/ApplicationLeadForm/{useApplicationLeadApi.ts → useApplicationLeadApi.tsx} +19 -34
- package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +20 -9
- package/src/components/ApplicationLeadForm/useLeadFormStore.ts +12 -0
- package/src/components/CreditCardForm/CreditCardFormContent.ts +2 -2
- package/src/components/CreditCardForm/calculateInputs.ts +2 -2
- package/src/components/CreditCardForm/formStateMap.tsx +3 -3
- package/src/components/CreditCardForm/getCardData.tsx +2 -2
- package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +3 -3
- package/src/components/CreditCardForm/getFifthStepData.ts +2 -2
- package/src/components/CreditCardForm/getFourthStepData.ts +2 -2
- package/src/components/CreditCardForm/getInitialFormState.tsx +2 -2
- package/src/components/CreditCardForm/getSecondStepData.tsx +2 -2
- package/src/components/CreditCardForm/getSixthStepData.ts +4 -4
- package/src/components/CreditCardForm/getThirdStepData.tsx +2 -2
- package/src/components/CreditCardForm/renderInputs.tsx +2 -2
- package/src/components/CreditCardForm/renderStep.tsx +4 -4
- package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +3 -3
- package/src/components/CreditForm/PendingStatusContent.tsx +2 -2
- package/src/components/CreditForm/calculateInputs.ts +2 -2
- package/src/components/CreditForm/formStateMap.tsx +2 -2
- package/src/components/CreditForm/getCalcData.ts +2 -2
- package/src/components/CreditForm/getCreditFormTaskData.ts +3 -3
- package/src/components/CreditForm/getFifthStepData.ts +2 -2
- package/src/components/CreditForm/getFirstStepData.tsx +2 -2
- package/src/components/CreditForm/getFourthStepData.ts +2 -2
- package/src/components/CreditForm/getInitialFormState.tsx +2 -2
- package/src/components/CreditForm/getSecondStepData.tsx +2 -2
- package/src/components/CreditForm/getThirdStepData.ts +2 -2
- package/src/components/CreditForm/getZeroStepData.ts +2 -2
- package/src/components/CreditForm/renderInputs.tsx +2 -2
- package/src/components/CreditForm/renderStep.tsx +4 -4
- package/src/components/CreditForm/useCreditFormAPI.tsx +3 -3
- package/src/components/CreditForm/utils.ts +1 -1
- package/src/components/GrantSupport/GrantSupport.tsx +1 -1
- package/src/hooks/useCreditFormStore.tsx +13 -0
- package/src/hooks/useLeadFormData.ts +1 -1
- package/src/hooks/useSetter.ts +16 -0
- package/src/ui-kit/ApplicationFormLayout/ApplicationFormLayout.tsx +1 -1
- package/src/ui-kit/ConsentBkiDialog/useConsentBkiDialog.tsx +2 -11
- package/src/ui-kit/DialogManager/useDialog.tsx +2 -1
- package/src/ui-kit/EsiaLoginDialog/EsiaLoginDialog.tsx +2 -2
- package/src/ui-kit/FormField/Fields/AmountWorkersField.tsx +12 -2
- package/src/ui-kit/FormField/Fields/CardCategoryField.tsx +1 -1
- package/src/ui-kit/FormField/Fields/EmployerActivitiesField.tsx +12 -2
- package/src/ui-kit/FormField/Fields/EmployerOrganizationField.tsx +12 -2
- package/src/ui-kit/FormField/Fields/InnField.tsx +5 -5
- package/src/ui-kit/FormField/Fields/OrganizationField.tsx +12 -2
- package/src/ui-kit/FormField/Fields/OrganizationNameField.tsx +5 -1
- package/src/ui-kit/FormField/Fields/PaymentSystemField.tsx +14 -6
- package/src/ui-kit/FormField/SelectField.tsx +1 -8
- package/src/ui-kit/FormField/getObjectValidator.tsx +10 -10
- package/src/ui-kit/FormField/updateOrganizationFields.ts +40 -0
- package/src/ui-kit/FormField/validators.ts +1 -1
- package/src/ui-kit/RichText/RichText.tsx +21 -21
- package/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.fixture.tsx +7 -10
- package/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +20 -25
- package/bundle/ui-kit/RichText/getHtmlText.d.ts +0 -1
- package/dist/ui-kit/RichText/getHtmlText.d.ts +0 -1
- package/dist/ui-kit/RichText/getHtmlText.js +0 -5
- package/dist/ui-kit/RichText/getHtmlText.js.map +0 -1
- package/lib/ui-kit/RichText/getHtmlText.d.ts +0 -1
- package/lib/ui-kit/RichText/getHtmlText.js +0 -2
- package/lib/ui-kit/RichText/getHtmlText.js.map +0 -1
- package/mobile/bundle/ui-kit/RichText/getHtmlText.d.ts +0 -1
- package/mobile/dist/ui-kit/RichText/getHtmlText.d.ts +0 -1
- package/mobile/dist/ui-kit/RichText/getHtmlText.js +0 -5
- package/mobile/dist/ui-kit/RichText/getHtmlText.js.map +0 -1
- package/mobile/lib/ui-kit/RichText/getHtmlText.d.ts +0 -1
- package/mobile/lib/ui-kit/RichText/getHtmlText.js +0 -2
- package/mobile/lib/ui-kit/RichText/getHtmlText.js.map +0 -1
- package/mobile/src/ui-kit/RichText/getHtmlText.tsx +0 -1
- package/src/ui-kit/RichText/getHtmlText.tsx +0 -1
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/* eslint-disable complexity */
|
|
2
|
+
import { EOrganizationActivityTypes } from '../model/EOrganizationActivityTypes';
|
|
3
|
+
import { type LeadProps } from '../model/LeadFormData';
|
|
4
|
+
|
|
5
|
+
export const getOrganizationActivityType = (
|
|
6
|
+
options: LeadProps[],
|
|
7
|
+
okved: string,
|
|
8
|
+
): { key: string; text: string } | null => {
|
|
9
|
+
if (!okved) {
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
const getOptionByKey = getOptionOp(options);
|
|
13
|
+
const okvedType = +okved?.split('.')[0];
|
|
14
|
+
const secondOkvedType = +okved?.split('.')[1];
|
|
15
|
+
|
|
16
|
+
switch (okvedType) {
|
|
17
|
+
case 1:
|
|
18
|
+
return getOptionByKey(EOrganizationActivityTypes.AGRICULTURE);
|
|
19
|
+
case 35:
|
|
20
|
+
return getOptionByKey(EOrganizationActivityTypes.FUEL_AND_ENERGY);
|
|
21
|
+
case 41:
|
|
22
|
+
case 42:
|
|
23
|
+
case 43:
|
|
24
|
+
return getOptionByKey(EOrganizationActivityTypes.CONSTRUCTION);
|
|
25
|
+
case 46:
|
|
26
|
+
case 47:
|
|
27
|
+
return getOptionByKey(EOrganizationActivityTypes.TRADE);
|
|
28
|
+
case 55:
|
|
29
|
+
case 79:
|
|
30
|
+
return getOptionByKey(EOrganizationActivityTypes.TOURISM);
|
|
31
|
+
case 62:
|
|
32
|
+
return getOptionByKey(EOrganizationActivityTypes.TECHNOLOGY);
|
|
33
|
+
case 63:
|
|
34
|
+
return getOptionByKey(EOrganizationActivityTypes.CONSULTING_SERVICE);
|
|
35
|
+
case 64:
|
|
36
|
+
return getOptionByKey(EOrganizationActivityTypes.BANK);
|
|
37
|
+
case 65:
|
|
38
|
+
return getOptionByKey(EOrganizationActivityTypes.INSURER);
|
|
39
|
+
case 66:
|
|
40
|
+
return getOptionByKey(EOrganizationActivityTypes.FINANCIAL_INSTITUTIONS);
|
|
41
|
+
case 72:
|
|
42
|
+
case 74:
|
|
43
|
+
return getOptionByKey(EOrganizationActivityTypes.SCIENCE);
|
|
44
|
+
case 80:
|
|
45
|
+
return getOptionByKey(EOrganizationActivityTypes.SECURITY);
|
|
46
|
+
case 84: {
|
|
47
|
+
if (secondOkvedType < 22) {
|
|
48
|
+
return getOptionByKey(EOrganizationActivityTypes.GOVERNANCE);
|
|
49
|
+
}
|
|
50
|
+
if (secondOkvedType === 22) {
|
|
51
|
+
return getOptionByKey(EOrganizationActivityTypes.ARMY);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return getOptionByKey(EOrganizationActivityTypes.OTHER_SECTORS);
|
|
55
|
+
}
|
|
56
|
+
case 85:
|
|
57
|
+
return getOptionByKey(EOrganizationActivityTypes.EDUCATION);
|
|
58
|
+
case 86:
|
|
59
|
+
return getOptionByKey(EOrganizationActivityTypes.HEALTHCARE);
|
|
60
|
+
case 87:
|
|
61
|
+
return getOptionByKey(EOrganizationActivityTypes.SOCIAL_SPHERE);
|
|
62
|
+
default: {
|
|
63
|
+
if (okvedType >= 10 && okvedType <= 33) {
|
|
64
|
+
return getOptionByKey(EOrganizationActivityTypes.INDUSTRY);
|
|
65
|
+
}
|
|
66
|
+
if (okvedType >= 5 && okvedType <= 9) {
|
|
67
|
+
return getOptionByKey(EOrganizationActivityTypes.FUEL_AND_ENERGY);
|
|
68
|
+
}
|
|
69
|
+
if (okvedType >= 49 && okvedType <= 53) {
|
|
70
|
+
return getOptionByKey(EOrganizationActivityTypes.TRANSPORT);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return getOptionByKey(EOrganizationActivityTypes.OTHER_SECTORS);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export const getEmployeesNumberOption = (
|
|
79
|
+
options: LeadProps[] | null,
|
|
80
|
+
count?: number,
|
|
81
|
+
): { key: string; text: string } => {
|
|
82
|
+
const [option] = [options?.find((_) => Number(count) <= Number(_.description))].map((_) => ({
|
|
83
|
+
key: _?.key ?? '',
|
|
84
|
+
text: _?.value ?? '',
|
|
85
|
+
}));
|
|
86
|
+
|
|
87
|
+
return option;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export const getOrganizationKind = (
|
|
91
|
+
options: LeadProps[],
|
|
92
|
+
okopf: number,
|
|
93
|
+
): { key: string; text: string } | null => {
|
|
94
|
+
const getOptionByKey = getOptionOp(options);
|
|
95
|
+
|
|
96
|
+
if ([40001, 40002, 71610].includes(okopf)) {
|
|
97
|
+
return getOptionByKey('FOREIGN');
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
return getOptionByKey('RUSSIAN');
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
export const getOrganizationType = (
|
|
104
|
+
options: LeadProps[],
|
|
105
|
+
okopf: number,
|
|
106
|
+
inn: string,
|
|
107
|
+
): { key: string; text: string } | null => {
|
|
108
|
+
const getOptionByKey = getOptionOp(options);
|
|
109
|
+
|
|
110
|
+
if (inn === '7725114488') {
|
|
111
|
+
return getOptionByKey('RSHB');
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if (okopf === 50102) {
|
|
115
|
+
return getOptionByKey('SOLE_TRADER');
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (okopf >= 75000 && okopf <= 75505 && okopf !== 75500) {
|
|
119
|
+
return getOptionByKey('BUDGETARY');
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
return getOptionByKey('COMMERCIAL');
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
const getOptionOp = (options: LeadProps[]) => (key: string) =>
|
|
126
|
+
options.map((_) => ({ key, text: _.value || '' })).find((_) => _.key === key) ?? null;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type LeadFormState } from '../../../components/ApplicationLeadForm/LeadFormState';
|
|
2
2
|
import { formatDate } from '../../../utils/formatDate';
|
|
3
3
|
import { formatPhone } from '../../../utils/formatPhone';
|
|
4
4
|
import { type UpdateUserProfileBody } from '../updateUserProfile';
|
|
5
5
|
|
|
6
|
+
// TODO Не должно быть импортов из бизнес-слоя в API слой. Только наоборот.
|
|
7
|
+
|
|
6
8
|
export const getUpdateUserProfileData = (
|
|
7
9
|
profileId: number,
|
|
8
|
-
formData:
|
|
10
|
+
formData: LeadFormState,
|
|
9
11
|
): UpdateUserProfileBody => {
|
|
10
12
|
const {
|
|
11
13
|
name = '',
|
|
@@ -37,12 +37,15 @@ interface DaDataOrganization {
|
|
|
37
37
|
value: string;
|
|
38
38
|
};
|
|
39
39
|
inn: string;
|
|
40
|
+
employee_count: number;
|
|
40
41
|
name: {
|
|
41
42
|
short_with_opf: string;
|
|
42
43
|
};
|
|
43
44
|
opf: {
|
|
44
45
|
short: string;
|
|
46
|
+
code: string;
|
|
45
47
|
};
|
|
48
|
+
okved: string;
|
|
46
49
|
}
|
|
47
50
|
|
|
48
51
|
export interface DaDataAddress {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
+
import { useEffect, useMemo } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { useForm } from '../../hooks/useForm';
|
|
4
|
-
import { useLocalStorage } from '../../hooks/useLocalStorage';
|
|
5
4
|
import { ApplicationFormLayout } from '../../ui-kit/ApplicationFormLayout/ApplicationFormLayout';
|
|
6
5
|
import { useDialog } from '../../ui-kit/DialogManager/useDialog';
|
|
7
6
|
import { inputColumnStyles } from '../../ui-kit/FormField/inputColumnStyle';
|
|
@@ -13,7 +12,6 @@ import { style } from '../../utils/style';
|
|
|
13
12
|
import { renderInputs } from '../ApplicationForm/renderInputs';
|
|
14
13
|
import { applicationFormData } from './applicationFormData';
|
|
15
14
|
import { type ApplicationLeadFormContent, type FieldDef } from './ApplicationLeadFormContent';
|
|
16
|
-
import { getInitialFormState, type FormState } from './getInitialFormState';
|
|
17
15
|
import { renderSubmitButton } from './renderSubmitButton';
|
|
18
16
|
import { useApplicationLeadApi } from './useApplicationLeadApi';
|
|
19
17
|
import { useInitApplicationLead } from './useInitApplicationLead';
|
|
@@ -22,16 +20,16 @@ interface ApplicationLeadFormProps extends ApplicationLeadFormContent, UniBlockP
|
|
|
22
20
|
|
|
23
21
|
export const ApplicationLeadForm = JSX<ApplicationLeadFormProps>(
|
|
24
22
|
({ className, title, programId = '', nextStepLink = '/credit-lead', button, ...rest }) => {
|
|
25
|
-
const inputs = (
|
|
23
|
+
const inputs = useMemo(
|
|
24
|
+
() => (applicationFormData?.flatMap((_) => _?.inputs) || []) as FieldDef[],
|
|
25
|
+
[applicationFormData],
|
|
26
|
+
);
|
|
26
27
|
|
|
27
|
-
const { isLoading } = useInitApplicationLead(nextStepLink);
|
|
28
|
-
const [leadForm, setLeadForm] = useLocalStorage<FormState>('leadForm');
|
|
29
|
-
const initialFormState = getInitialFormState(inputs, leadForm);
|
|
28
|
+
const [initialFormState, { isLoading }] = useInitApplicationLead(inputs, nextStepLink);
|
|
30
29
|
const { handleSubmit, responseStatus } = useApplicationLeadApi({
|
|
31
30
|
inputs,
|
|
32
31
|
programId,
|
|
33
32
|
nextStepLink,
|
|
34
|
-
saveForm: setLeadForm,
|
|
35
33
|
});
|
|
36
34
|
|
|
37
35
|
const [, { field, onSubmit }] = useForm(initialFormState, { onSubmit: handleSubmit });
|
|
@@ -5,7 +5,7 @@ import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
|
|
|
5
5
|
import { type NameFieldDef } from '../../ui-kit/FormField/NameFieldDef';
|
|
6
6
|
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
7
7
|
import { type TypeFormFieldDef } from '../ApplicationForm/ApplicationFormContent';
|
|
8
|
-
import { type
|
|
8
|
+
import { type LeadFormState } from './LeadFormState';
|
|
9
9
|
|
|
10
10
|
interface Required {
|
|
11
11
|
/** @title Обязательно для заполнения */
|
|
@@ -97,5 +97,5 @@ export type ApplicationLeadFormContent = UniBlockContent &
|
|
|
97
97
|
export interface GroupedConsentsProps {
|
|
98
98
|
inputs?: FieldDef[];
|
|
99
99
|
typeForm?: TypeFormFieldDef;
|
|
100
|
-
field: FormFieldRegisterer<
|
|
100
|
+
field: FormFieldRegisterer<LeadFormState>;
|
|
101
101
|
}
|
|
@@ -11,18 +11,18 @@ import { Icon } from '../../ui-kit/Icon/Icon';
|
|
|
11
11
|
import { renderErrorText } from '../../ui-kit/Input/renderErrorText';
|
|
12
12
|
import { withValidator } from '../../validation/withValidator';
|
|
13
13
|
import { type GroupedConsentsProps } from './ApplicationLeadFormContent';
|
|
14
|
-
import { type
|
|
14
|
+
import { type LeadFormState } from './LeadFormState';
|
|
15
15
|
|
|
16
16
|
const CONSENT_ALL_DOCS_TEXT = 'Согласие на все документы';
|
|
17
17
|
const CONSENT_REQUIRED = 'Отметьте все обязательные соглашения';
|
|
18
18
|
|
|
19
19
|
export const GroupedConsents = JSX<GroupedConsentsProps>(
|
|
20
20
|
({ inputs = [], typeForm = '', field, key }) => {
|
|
21
|
-
const isChecked = inputs.every((_) => Boolean(field(_.name as keyof
|
|
21
|
+
const isChecked = inputs.every((_) => Boolean(field(_.name as keyof LeadFormState).value));
|
|
22
22
|
|
|
23
23
|
const handleGeneralToggle = (value: boolean) => {
|
|
24
24
|
for (const item of inputs) {
|
|
25
|
-
const itemField = field(item.name as keyof
|
|
25
|
+
const itemField = field(item.name as keyof LeadFormState);
|
|
26
26
|
itemField?.onChange && itemField.onChange(value);
|
|
27
27
|
}
|
|
28
28
|
};
|
|
@@ -34,8 +34,8 @@ export const GroupedConsents = JSX<GroupedConsentsProps>(
|
|
|
34
34
|
?.some((_) =>
|
|
35
35
|
Boolean(
|
|
36
36
|
withValidator(
|
|
37
|
-
field(_?.name as keyof
|
|
38
|
-
validatorObj[_?.name as keyof
|
|
37
|
+
field(_?.name as keyof LeadFormState),
|
|
38
|
+
validatorObj[_?.name as keyof LeadFormState],
|
|
39
39
|
).error,
|
|
40
40
|
),
|
|
41
41
|
),
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { type PaymentSystem, type PaymentType } from '../../api/RetailAPI/updateUserTask';
|
|
2
|
+
import { type Option } from '../../ui-kit/Select/Option';
|
|
3
|
+
|
|
4
|
+
export interface FormConsents {
|
|
5
|
+
processPersonalDataFlg?: boolean;
|
|
6
|
+
consentProviderFlg?: boolean;
|
|
7
|
+
consentPfrFlg?: boolean;
|
|
8
|
+
consentInformFlg?: boolean;
|
|
9
|
+
consentToReceiveMaterials?: boolean;
|
|
10
|
+
consentOthersFlg?: boolean;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type FormStateDeliveryType = {
|
|
14
|
+
regionRetail?: string;
|
|
15
|
+
bankEmployeeCode?: number;
|
|
16
|
+
methodObtain?: 'office' | 'courier';
|
|
17
|
+
deliveryDate?: Date | string;
|
|
18
|
+
addressRetail?: Option;
|
|
19
|
+
addressCourier?: Address;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export interface Address {
|
|
23
|
+
apartment?: string;
|
|
24
|
+
block?: string;
|
|
25
|
+
building?: string;
|
|
26
|
+
city?: string;
|
|
27
|
+
countryCode?: string;
|
|
28
|
+
district?: string;
|
|
29
|
+
fiasCode?: string;
|
|
30
|
+
fullAddress: string;
|
|
31
|
+
house?: string;
|
|
32
|
+
locality?: string;
|
|
33
|
+
okatoRegionCode?: string;
|
|
34
|
+
postcode?: string;
|
|
35
|
+
region?: string;
|
|
36
|
+
regionCode?: string;
|
|
37
|
+
street?: string;
|
|
38
|
+
qc?: string;
|
|
39
|
+
qcComplete?: string;
|
|
40
|
+
qcHouse?: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// TODO Какая то часть должна быть взята из RetailAPI
|
|
44
|
+
export interface LeadFormState extends FormConsents, FormStateDeliveryType {
|
|
45
|
+
typeForm?: Option | string;
|
|
46
|
+
surname?: string;
|
|
47
|
+
name?: string;
|
|
48
|
+
middleName?: string;
|
|
49
|
+
fullName?: string;
|
|
50
|
+
registrationDate?: Date | string;
|
|
51
|
+
birthday?: Date | string;
|
|
52
|
+
limitedBirthday?: Date | string;
|
|
53
|
+
birthPlace?: string;
|
|
54
|
+
sex?: string;
|
|
55
|
+
phone?: string;
|
|
56
|
+
organizationPhone?: string;
|
|
57
|
+
secondaryPhone?: string;
|
|
58
|
+
education?: Option;
|
|
59
|
+
housing?: Option;
|
|
60
|
+
employment?: Option;
|
|
61
|
+
organization?: Option;
|
|
62
|
+
amountWorkers?: Option;
|
|
63
|
+
employerActivities?: Option;
|
|
64
|
+
employerOrganization?: Option;
|
|
65
|
+
positionOrganization?: Option;
|
|
66
|
+
dulSerie?: string;
|
|
67
|
+
dulNumber?: string;
|
|
68
|
+
dulIssueDateField?: Date | string;
|
|
69
|
+
dulSubdivisionCode?: string;
|
|
70
|
+
dulIssuedBy?: string;
|
|
71
|
+
email?: string;
|
|
72
|
+
acquiringType?: Option;
|
|
73
|
+
serviceType?: Option;
|
|
74
|
+
vedTypes?: string;
|
|
75
|
+
region?: Option;
|
|
76
|
+
onlineCheckout?: boolean;
|
|
77
|
+
posTerminal?: boolean;
|
|
78
|
+
term?: number;
|
|
79
|
+
amount?: number;
|
|
80
|
+
annualRevenue?: string;
|
|
81
|
+
serviceDirection?: string;
|
|
82
|
+
desiredMeetingDate?: string;
|
|
83
|
+
inn?: number;
|
|
84
|
+
legalForm?: string;
|
|
85
|
+
organizationName?: string;
|
|
86
|
+
generalSeniority?: string;
|
|
87
|
+
lastJobExperience?: number;
|
|
88
|
+
experience5Years?: number;
|
|
89
|
+
jobsNumber?: number;
|
|
90
|
+
organizationAddress?: Address;
|
|
91
|
+
beginDate?: Date | string;
|
|
92
|
+
addressFact?: Address;
|
|
93
|
+
addressBranch?: Option;
|
|
94
|
+
bankEmpolee?: string;
|
|
95
|
+
applicationDate?: string;
|
|
96
|
+
comment?: string;
|
|
97
|
+
isClient?: boolean;
|
|
98
|
+
feedbackMethod?: string;
|
|
99
|
+
collectionCount?: number;
|
|
100
|
+
product?: string;
|
|
101
|
+
localities?: string[];
|
|
102
|
+
partnerComments?: string;
|
|
103
|
+
consentDataProcessing?: boolean;
|
|
104
|
+
consentPhotoFlg?: boolean;
|
|
105
|
+
consentAssignmentClaimsFlg?: boolean;
|
|
106
|
+
consentCollectionFlg?: boolean;
|
|
107
|
+
familyStatus?: Option;
|
|
108
|
+
children?: number;
|
|
109
|
+
familyMembers?: number;
|
|
110
|
+
dependents?: number;
|
|
111
|
+
totalIncome?: number;
|
|
112
|
+
expenses?: number;
|
|
113
|
+
snils?: string;
|
|
114
|
+
conscription?: Option;
|
|
115
|
+
armyIdFlg?: boolean;
|
|
116
|
+
addressRegistration?: Address;
|
|
117
|
+
participantDateRegistration?: Date | string;
|
|
118
|
+
retirementIncome?: number;
|
|
119
|
+
otherIncome?: number;
|
|
120
|
+
incomeAverage?: number;
|
|
121
|
+
mandatoryPayments?: number;
|
|
122
|
+
additionalIncome?: number;
|
|
123
|
+
otherPayments?: number;
|
|
124
|
+
rentalIncome?: number;
|
|
125
|
+
wages?: number;
|
|
126
|
+
creditInRshbCd?: Option;
|
|
127
|
+
disablePeopleFlg?: boolean;
|
|
128
|
+
bankruptcyFlg?: boolean;
|
|
129
|
+
shareholderFlg?: boolean;
|
|
130
|
+
legalEntityName?: string;
|
|
131
|
+
partInBusiness?: number;
|
|
132
|
+
addressMatch?: boolean;
|
|
133
|
+
confirmationIncome?: Option;
|
|
134
|
+
currency?: string;
|
|
135
|
+
paymentSystem?: PaymentSystem;
|
|
136
|
+
cardCategory?: Option;
|
|
137
|
+
codeWord?: string;
|
|
138
|
+
esiaAccountTypeCd?: Option;
|
|
139
|
+
calculator?: {
|
|
140
|
+
moneyValue?: number;
|
|
141
|
+
monthsValue?: number;
|
|
142
|
+
isAnnuity?: boolean;
|
|
143
|
+
isInsurance?: boolean;
|
|
144
|
+
isSalaryClient?: boolean;
|
|
145
|
+
isPensionClient?: boolean;
|
|
146
|
+
isStateEmployee?: boolean;
|
|
147
|
+
};
|
|
148
|
+
addressRetail?: Option;
|
|
149
|
+
loanAmount?: number;
|
|
150
|
+
creditPeriod?: number;
|
|
151
|
+
paymentTypeCd?: PaymentType;
|
|
152
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type FormConsents } from './
|
|
1
|
+
import { type FormConsents } from './LeadFormState';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
interface ConsentData {
|
|
4
4
|
text: string;
|
|
5
5
|
docId?: number;
|
|
6
|
-
}
|
|
6
|
+
}
|
|
7
7
|
|
|
8
8
|
export const CONSENTS: Record<keyof FormConsents, ConsentData> = {
|
|
9
9
|
processPersonalDataFlg: {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/* eslint-disable max-lines */
|
|
2
|
-
import { type PaymentType } from '../../api/RetailAPI/updateUserTask';
|
|
3
1
|
import {
|
|
4
2
|
FEEDBACK_METHOD,
|
|
5
3
|
SERVICE_DIRECTIONS,
|
|
@@ -7,157 +5,8 @@ import {
|
|
|
7
5
|
} from '../../ui-kit/FormField/constants';
|
|
8
6
|
import { ACQUIRING_TYPES } from '../../ui-kit/FormField/Fields/AcquiringField';
|
|
9
7
|
import { VED_TYPES } from '../../ui-kit/FormField/Fields/VedField';
|
|
10
|
-
import { type Option } from '../../ui-kit/Select/Option';
|
|
11
8
|
import { type FieldDef } from './ApplicationLeadFormContent';
|
|
12
|
-
|
|
13
|
-
export interface FormConsents {
|
|
14
|
-
processPersonalDataFlg?: boolean;
|
|
15
|
-
consentProviderFlg?: boolean;
|
|
16
|
-
consentPfrFlg?: boolean;
|
|
17
|
-
consentInformFlg?: boolean;
|
|
18
|
-
consentToReceiveMaterials?: boolean;
|
|
19
|
-
consentOthersFlg?: boolean;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export type FormStateDeliveryType = {
|
|
23
|
-
regionRetail?: string;
|
|
24
|
-
bankEmployeeCode?: number;
|
|
25
|
-
methodObtain?: 'office' | 'courier';
|
|
26
|
-
deliveryDate?: Date | string;
|
|
27
|
-
addressRetail?: Option;
|
|
28
|
-
addressCourier?: Address;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export interface Address {
|
|
32
|
-
apartment?: string;
|
|
33
|
-
block?: string;
|
|
34
|
-
building?: string;
|
|
35
|
-
city?: string;
|
|
36
|
-
countryCode?: string;
|
|
37
|
-
district?: string;
|
|
38
|
-
fiasCode?: string;
|
|
39
|
-
fullAddress: string;
|
|
40
|
-
house?: string;
|
|
41
|
-
locality?: string;
|
|
42
|
-
okatoRegionCode?: string;
|
|
43
|
-
postcode?: string;
|
|
44
|
-
region?: string;
|
|
45
|
-
regionCode?: string;
|
|
46
|
-
street?: string;
|
|
47
|
-
qc?: string;
|
|
48
|
-
qcComplete?: string;
|
|
49
|
-
qcHouse?: string;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export interface FormState extends FormConsents, FormStateDeliveryType {
|
|
53
|
-
typeForm?: Option | string;
|
|
54
|
-
surname?: string;
|
|
55
|
-
name?: string;
|
|
56
|
-
middleName?: string;
|
|
57
|
-
fullName?: string;
|
|
58
|
-
registrationDate?: Date | string;
|
|
59
|
-
birthday?: Date | string;
|
|
60
|
-
limitedBirthday?: Date | string;
|
|
61
|
-
birthPlace?: string;
|
|
62
|
-
sex?: string;
|
|
63
|
-
phone?: string;
|
|
64
|
-
organizationPhone?: string;
|
|
65
|
-
secondaryPhone?: string;
|
|
66
|
-
education?: Option;
|
|
67
|
-
housing?: Option;
|
|
68
|
-
employment?: Option;
|
|
69
|
-
organization?: Option;
|
|
70
|
-
amountWorkers?: Option;
|
|
71
|
-
employerActivities?: Option;
|
|
72
|
-
employerOrganization?: Option;
|
|
73
|
-
positionOrganization?: Option;
|
|
74
|
-
dulSerie?: string;
|
|
75
|
-
dulNumber?: string;
|
|
76
|
-
dulIssueDateField?: Date | string;
|
|
77
|
-
dulSubdivisionCode?: string;
|
|
78
|
-
dulIssuedBy?: string;
|
|
79
|
-
email?: string;
|
|
80
|
-
acquiringType?: Option;
|
|
81
|
-
serviceType?: Option;
|
|
82
|
-
vedTypes?: string;
|
|
83
|
-
region?: Option;
|
|
84
|
-
onlineCheckout?: boolean;
|
|
85
|
-
posTerminal?: boolean;
|
|
86
|
-
term?: number;
|
|
87
|
-
amount?: number;
|
|
88
|
-
annualRevenue?: string;
|
|
89
|
-
serviceDirection?: string;
|
|
90
|
-
desiredMeetingDate?: string;
|
|
91
|
-
inn?: number;
|
|
92
|
-
legalForm?: string;
|
|
93
|
-
organizationName?: string;
|
|
94
|
-
generalSeniority?: string;
|
|
95
|
-
lastJobExperience?: number;
|
|
96
|
-
experience5Years?: number;
|
|
97
|
-
jobsNumber?: number;
|
|
98
|
-
organizationAddress?: Address;
|
|
99
|
-
beginDate?: Date | string;
|
|
100
|
-
addressFact?: Address;
|
|
101
|
-
addressBranch?: Option;
|
|
102
|
-
bankEmpolee?: string;
|
|
103
|
-
applicationDate?: string;
|
|
104
|
-
comment?: string;
|
|
105
|
-
isClient?: boolean;
|
|
106
|
-
feedbackMethod?: string;
|
|
107
|
-
collectionCount?: number;
|
|
108
|
-
product?: string;
|
|
109
|
-
localities?: string[];
|
|
110
|
-
partnerComments?: string;
|
|
111
|
-
consentDataProcessing?: boolean;
|
|
112
|
-
consentPhotoFlg?: boolean;
|
|
113
|
-
consentAssignmentClaimsFlg?: boolean;
|
|
114
|
-
consentCollectionFlg?: boolean;
|
|
115
|
-
familyStatus?: Option;
|
|
116
|
-
children?: number;
|
|
117
|
-
familyMembers?: number;
|
|
118
|
-
dependents?: number;
|
|
119
|
-
totalIncome?: number;
|
|
120
|
-
expenses?: number;
|
|
121
|
-
snils?: string;
|
|
122
|
-
conscription?: Option;
|
|
123
|
-
armyIdFlg?: boolean;
|
|
124
|
-
addressRegistration?: Address;
|
|
125
|
-
participantDateRegistration?: Date | string;
|
|
126
|
-
retirementIncome?: number;
|
|
127
|
-
otherIncome?: number;
|
|
128
|
-
incomeAverage?: number;
|
|
129
|
-
mandatoryPayments?: number;
|
|
130
|
-
additionalIncome?: number;
|
|
131
|
-
otherPayments?: number;
|
|
132
|
-
rentalIncome?: number;
|
|
133
|
-
wages?: number;
|
|
134
|
-
creditInRshbCd?: Option;
|
|
135
|
-
disablePeopleFlg?: boolean;
|
|
136
|
-
bankruptcyFlg?: boolean;
|
|
137
|
-
shareholderFlg?: boolean;
|
|
138
|
-
legalEntityName?: string;
|
|
139
|
-
partInBusiness?: number;
|
|
140
|
-
addressMatch?: boolean;
|
|
141
|
-
confirmationIncome?: Option;
|
|
142
|
-
currency?: string;
|
|
143
|
-
paymentSystem?: string;
|
|
144
|
-
cardCategory?: Option;
|
|
145
|
-
codeWord?: string;
|
|
146
|
-
esiaAccountTypeCd?: Option;
|
|
147
|
-
calculator?: {
|
|
148
|
-
moneyValue?: number;
|
|
149
|
-
monthsValue?: number;
|
|
150
|
-
isAnnuity?: boolean;
|
|
151
|
-
isInsurance?: boolean;
|
|
152
|
-
isSalaryClient?: boolean;
|
|
153
|
-
isPensionClient?: boolean;
|
|
154
|
-
isStateEmployee?: boolean;
|
|
155
|
-
};
|
|
156
|
-
addressRetail?: Option;
|
|
157
|
-
loanAmount?: number;
|
|
158
|
-
creditPeriod?: number;
|
|
159
|
-
paymentTypeCd?: PaymentType;
|
|
160
|
-
}
|
|
9
|
+
import type { LeadFormState } from './LeadFormState';
|
|
161
10
|
|
|
162
11
|
const initialFormState = {
|
|
163
12
|
typeForm: '',
|
|
@@ -193,7 +42,7 @@ const initialFormState = {
|
|
|
193
42
|
addressRegistration: '',
|
|
194
43
|
participantDateRegistration: undefined,
|
|
195
44
|
currency: '',
|
|
196
|
-
paymentSystem: '',
|
|
45
|
+
paymentSystem: { name: '', type: '' },
|
|
197
46
|
cardCategory: { key: '', text: '' },
|
|
198
47
|
codeWord: '',
|
|
199
48
|
addressRetail: { key: '', text: '' },
|
|
@@ -201,14 +50,10 @@ const initialFormState = {
|
|
|
201
50
|
|
|
202
51
|
export const getInitialFormState = (
|
|
203
52
|
inputs: FieldDef[],
|
|
204
|
-
savedForm:
|
|
205
|
-
|
|
206
|
-
): FormState => {
|
|
53
|
+
savedForm: LeadFormState | null,
|
|
54
|
+
): LeadFormState => {
|
|
207
55
|
if (savedForm) {
|
|
208
|
-
|
|
209
|
-
formStateCopy.limitedBirthday = new Date(formStateCopy?.limitedBirthday || 0);
|
|
210
|
-
|
|
211
|
-
return formStateCopy;
|
|
56
|
+
return { ...savedForm, limitedBirthday: new Date(savedForm?.limitedBirthday || 0) };
|
|
212
57
|
}
|
|
213
58
|
|
|
214
59
|
const formState = Object.fromEntries(
|
|
@@ -218,5 +63,5 @@ export const getInitialFormState = (
|
|
|
218
63
|
]),
|
|
219
64
|
);
|
|
220
65
|
|
|
221
|
-
return { ...formState, typeForm: { key: ''
|
|
66
|
+
return { ...formState, typeForm: { key: '', text: '' } };
|
|
222
67
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { type UpdateUserTaskBody } from '../../api/RetailAPI/updateUserTask';
|
|
2
|
-
import { type FormState } from '../../components/ApplicationLeadForm/getInitialFormState';
|
|
3
2
|
import { locationNavigator } from '../../external/locationNavigator';
|
|
4
3
|
import { formatDate } from '../../utils/formatDate';
|
|
5
4
|
import { formatPhone } from '../../utils/formatPhone';
|
|
6
5
|
import { getParticipantContacts } from '../CreditForm/utils';
|
|
6
|
+
import { type LeadFormState } from './LeadFormState';
|
|
7
7
|
|
|
8
8
|
type getLeadFormTaskDataProps = {
|
|
9
9
|
participantId: number;
|
|
10
10
|
taskId: number;
|
|
11
11
|
profileId: number;
|
|
12
|
-
formData:
|
|
12
|
+
formData: LeadFormState;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
export const getLeadFormTaskData = ({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type UpdateProfileEsiaResponse } from '../../api/RetailAPI/updateProfileEsia';
|
|
2
2
|
import { normalizePhone } from '../../ui-kit/PhoneInput/normalizePhone';
|
|
3
|
-
import { type Address, type
|
|
3
|
+
import { type Address, type LeadFormState } from './LeadFormState';
|
|
4
4
|
|
|
5
|
-
export const parseEsiaProfile = (esiaProfile: UpdateProfileEsiaResponse):
|
|
5
|
+
export const parseEsiaProfile = (esiaProfile: UpdateProfileEsiaResponse): LeadFormState => {
|
|
6
6
|
const { profile, addInfo, document, addressRegistration, addressFact } = esiaProfile;
|
|
7
7
|
|
|
8
8
|
return {
|