@redneckz/wildless-cms-uni-blocks 0.14.813 → 0.14.814
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/bundle.umd.js +172 -131
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +4 -0
- package/bundle/components/ApplicationLeadForm/applicationFormData.d.ts +0 -1
- package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/bundle/components/ApplicationLeadForm/parseEsiaProfile.d.ts +2 -2
- package/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -2
- package/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
- package/bundle/retail/api/checkCode.d.ts +1 -0
- package/bundle/retail/api/{updateProfileEsia.d.ts → esiaRequestProfile.d.ts} +11 -4
- package/bundle/retail/api/updateUserTask.d.ts +1 -0
- package/bundle/retail/api/uploadFile.d.ts +1 -1
- package/bundle/retail/model/NameFieldDef.d.ts +1 -1
- package/bundle/ui-kit/FormField/shouldRenderField.d.ts +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +13 -3
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/dist/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +4 -0
- package/dist/components/ApplicationLeadForm/EsiaLoginBanner.js +23 -0
- package/dist/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -0
- package/dist/components/ApplicationLeadForm/applicationFormData.d.ts +0 -1
- package/dist/components/ApplicationLeadForm/applicationFormData.js +6 -31
- package/dist/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.js +8 -2
- package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/dist/components/ApplicationLeadForm/parseEsiaProfile.d.ts +2 -2
- package/dist/components/ApplicationLeadForm/parseEsiaProfile.js +54 -19
- package/dist/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -2
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +7 -10
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +12 -16
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/dist/retail/adaptors/getFamilyStatusAndIncomeData.js +2 -2
- package/dist/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
- package/dist/retail/api/checkCode.d.ts +1 -0
- package/dist/retail/api/checkCode.js +3 -2
- package/dist/retail/api/checkCode.js.map +1 -1
- package/{lib/retail/api/updateProfileEsia.d.ts → dist/retail/api/esiaRequestProfile.d.ts} +11 -4
- package/dist/retail/api/esiaRequestProfile.js +10 -0
- package/dist/retail/api/esiaRequestProfile.js.map +1 -0
- package/dist/retail/api/updateUserTask.d.ts +1 -0
- package/dist/retail/api/updateUserTask.js.map +1 -1
- package/dist/retail/api/uploadFile.d.ts +1 -1
- package/dist/retail/api/uploadFile.js +2 -3
- package/dist/retail/api/uploadFile.js.map +1 -1
- package/dist/retail/components/DraftDialog/parseDraftTask.js +2 -1
- package/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/dist/retail/content.js +10 -1
- package/dist/retail/content.js.map +1 -1
- package/dist/retail/model/NameFieldDef.d.ts +1 -1
- package/dist/retail/utils/mainFormStateMap.js +1 -0
- package/dist/retail/utils/mainFormStateMap.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/PhoneField.js +2 -1
- package/dist/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/dist/ui-kit/FormField/shouldRenderField.d.ts +1 -1
- package/dist/ui-kit/FormField/shouldRenderField.js +1 -1
- package/dist/ui-kit/FormField/shouldRenderField.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +13 -3
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/lib/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +4 -0
- package/lib/components/ApplicationLeadForm/EsiaLoginBanner.js +21 -0
- package/lib/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -0
- package/lib/components/ApplicationLeadForm/applicationFormData.d.ts +0 -1
- package/lib/components/ApplicationLeadForm/applicationFormData.js +5 -30
- package/lib/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.js +8 -2
- package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/lib/components/ApplicationLeadForm/parseEsiaProfile.d.ts +2 -2
- package/lib/components/ApplicationLeadForm/parseEsiaProfile.js +54 -19
- package/lib/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -2
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +7 -10
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +12 -16
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/lib/retail/adaptors/getFamilyStatusAndIncomeData.js +2 -2
- package/lib/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
- package/lib/retail/api/checkCode.d.ts +1 -0
- package/lib/retail/api/checkCode.js +1 -1
- package/lib/retail/api/checkCode.js.map +1 -1
- package/{mobile/bundle/retail/api/updateProfileEsia.d.ts → lib/retail/api/esiaRequestProfile.d.ts} +11 -4
- package/lib/retail/api/esiaRequestProfile.js +7 -0
- package/lib/retail/api/esiaRequestProfile.js.map +1 -0
- package/lib/retail/api/updateUserTask.d.ts +1 -0
- package/lib/retail/api/updateUserTask.js.map +1 -1
- package/lib/retail/api/uploadFile.d.ts +1 -1
- package/lib/retail/api/uploadFile.js +2 -3
- package/lib/retail/api/uploadFile.js.map +1 -1
- package/lib/retail/components/DraftDialog/parseDraftTask.js +2 -1
- package/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/lib/retail/content.js +10 -1
- package/lib/retail/content.js.map +1 -1
- package/lib/retail/model/NameFieldDef.d.ts +1 -1
- package/lib/retail/utils/mainFormStateMap.js +1 -0
- package/lib/retail/utils/mainFormStateMap.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/PhoneField.js +2 -1
- package/lib/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/lib/ui-kit/FormField/shouldRenderField.d.ts +1 -1
- package/lib/ui-kit/FormField/shouldRenderField.js +1 -1
- package/lib/ui-kit/FormField/shouldRenderField.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +172 -131
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +4 -0
- package/mobile/bundle/components/ApplicationLeadForm/applicationFormData.d.ts +0 -1
- package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/parseEsiaProfile.d.ts +2 -2
- package/mobile/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -2
- package/mobile/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
- package/mobile/bundle/retail/api/checkCode.d.ts +1 -0
- package/{dist/retail/api/updateProfileEsia.d.ts → mobile/bundle/retail/api/esiaRequestProfile.d.ts} +11 -4
- package/mobile/bundle/retail/api/updateUserTask.d.ts +1 -0
- package/mobile/bundle/retail/api/uploadFile.d.ts +1 -1
- package/mobile/bundle/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/bundle/ui-kit/FormField/shouldRenderField.d.ts +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +13 -3
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +4 -0
- package/mobile/dist/components/ApplicationLeadForm/EsiaLoginBanner.js +23 -0
- package/mobile/dist/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -0
- package/mobile/dist/components/ApplicationLeadForm/applicationFormData.d.ts +0 -1
- package/mobile/dist/components/ApplicationLeadForm/applicationFormData.js +6 -31
- package/mobile/dist/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +8 -2
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/parseEsiaProfile.d.ts +2 -2
- package/mobile/dist/components/ApplicationLeadForm/parseEsiaProfile.js +54 -19
- package/mobile/dist/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -2
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +7 -10
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +12 -16
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/dist/retail/adaptors/getFamilyStatusAndIncomeData.js +2 -2
- package/mobile/dist/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
- package/mobile/dist/retail/api/checkCode.d.ts +1 -0
- package/mobile/dist/retail/api/checkCode.js +3 -2
- package/mobile/dist/retail/api/checkCode.js.map +1 -1
- package/mobile/dist/retail/api/esiaRequestProfile.d.ts +84 -0
- package/mobile/dist/retail/api/esiaRequestProfile.js +10 -0
- package/mobile/dist/retail/api/esiaRequestProfile.js.map +1 -0
- package/mobile/dist/retail/api/updateUserTask.d.ts +1 -0
- package/mobile/dist/retail/api/updateUserTask.js.map +1 -1
- package/mobile/dist/retail/api/uploadFile.d.ts +1 -1
- package/mobile/dist/retail/api/uploadFile.js +2 -3
- package/mobile/dist/retail/api/uploadFile.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js +2 -1
- package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/mobile/dist/retail/content.js +10 -1
- package/mobile/dist/retail/content.js.map +1 -1
- package/mobile/dist/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/dist/retail/utils/mainFormStateMap.js +1 -0
- package/mobile/dist/retail/utils/mainFormStateMap.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/PhoneField.js +2 -1
- package/mobile/dist/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/shouldRenderField.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/shouldRenderField.js +1 -1
- package/mobile/dist/ui-kit/FormField/shouldRenderField.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +13 -3
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +4 -0
- package/mobile/lib/components/ApplicationLeadForm/EsiaLoginBanner.js +21 -0
- package/mobile/lib/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -0
- package/mobile/lib/components/ApplicationLeadForm/applicationFormData.d.ts +0 -1
- package/mobile/lib/components/ApplicationLeadForm/applicationFormData.js +5 -30
- package/mobile/lib/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +8 -2
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/parseEsiaProfile.d.ts +2 -2
- package/mobile/lib/components/ApplicationLeadForm/parseEsiaProfile.js +54 -19
- package/mobile/lib/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -2
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +7 -10
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +12 -16
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/lib/retail/adaptors/getFamilyStatusAndIncomeData.js +2 -2
- package/mobile/lib/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
- package/mobile/lib/retail/api/checkCode.d.ts +1 -0
- package/mobile/lib/retail/api/checkCode.js +1 -1
- package/mobile/lib/retail/api/checkCode.js.map +1 -1
- package/mobile/lib/retail/api/esiaRequestProfile.d.ts +84 -0
- package/mobile/lib/retail/api/esiaRequestProfile.js +7 -0
- package/mobile/lib/retail/api/esiaRequestProfile.js.map +1 -0
- package/mobile/lib/retail/api/updateUserTask.d.ts +1 -0
- package/mobile/lib/retail/api/updateUserTask.js.map +1 -1
- package/mobile/lib/retail/api/uploadFile.d.ts +1 -1
- package/mobile/lib/retail/api/uploadFile.js +2 -3
- package/mobile/lib/retail/api/uploadFile.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js +2 -1
- package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/mobile/lib/retail/content.js +10 -1
- package/mobile/lib/retail/content.js.map +1 -1
- package/mobile/lib/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/lib/retail/utils/mainFormStateMap.js +1 -0
- package/mobile/lib/retail/utils/mainFormStateMap.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/PhoneField.js +2 -1
- package/mobile/lib/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/shouldRenderField.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/shouldRenderField.js +1 -1
- package/mobile/lib/ui-kit/FormField/shouldRenderField.js.map +1 -1
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +14 -2
- package/mobile/src/components/ApplicationLeadForm/EsiaLoginBanner.tsx +52 -0
- package/mobile/src/components/ApplicationLeadForm/applicationFormData.tsx +5 -31
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +8 -1
- package/mobile/src/components/ApplicationLeadForm/parseEsiaProfile.ts +68 -34
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +58 -65
- package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +31 -41
- package/mobile/src/retail/adaptors/getFamilyStatusAndIncomeData.ts +2 -1
- package/mobile/src/retail/api/checkCode.ts +1 -1
- package/mobile/src/retail/api/{updateProfileEsia.ts → esiaRequestProfile.ts} +16 -5
- package/mobile/src/retail/api/updateUserTask.ts +1 -0
- package/mobile/src/retail/api/uploadFile.ts +2 -3
- package/mobile/src/retail/components/DraftDialog/parseDraftTask.ts +2 -0
- package/mobile/src/retail/content.tsx +10 -1
- package/mobile/src/retail/model/NameFieldDef.ts +1 -0
- package/mobile/src/retail/utils/mainFormStateMap.ts +1 -0
- package/mobile/src/ui-kit/FormField/Fields/PhoneField.tsx +9 -1
- package/mobile/src/ui-kit/FormField/shouldRenderField.tsx +2 -1
- package/package.json +1 -1
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +14 -2
- package/src/components/ApplicationLeadForm/EsiaLoginBanner.tsx +52 -0
- package/src/components/ApplicationLeadForm/applicationFormData.tsx +5 -31
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +8 -1
- package/src/components/ApplicationLeadForm/parseEsiaProfile.ts +68 -34
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +58 -65
- package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +31 -41
- package/src/retail/adaptors/getFamilyStatusAndIncomeData.ts +2 -1
- package/src/retail/api/checkCode.ts +1 -1
- package/src/retail/api/{updateProfileEsia.ts → esiaRequestProfile.ts} +16 -5
- package/src/retail/api/updateUserTask.ts +1 -0
- package/src/retail/api/uploadFile.ts +2 -3
- package/src/retail/components/DraftDialog/parseDraftTask.ts +2 -0
- package/src/retail/content.tsx +10 -1
- package/src/retail/model/NameFieldDef.ts +1 -0
- package/src/retail/utils/mainFormStateMap.ts +1 -0
- package/src/ui-kit/FormField/Fields/PhoneField.tsx +9 -1
- package/src/ui-kit/FormField/shouldRenderField.tsx +2 -1
- package/bundle/retail/components/EsiaLoginDialog/EsiaLoginDialog.d.ts +0 -4
- package/bundle/retail/components/EsiaLoginDialog/useEsiaLoginDialog.d.ts +0 -1
- package/dist/retail/api/updateProfileEsia.js +0 -6
- package/dist/retail/api/updateProfileEsia.js.map +0 -1
- package/dist/retail/components/EsiaLoginDialog/EsiaLoginDialog.d.ts +0 -4
- package/dist/retail/components/EsiaLoginDialog/EsiaLoginDialog.js +0 -34
- package/dist/retail/components/EsiaLoginDialog/EsiaLoginDialog.js.map +0 -1
- package/dist/retail/components/EsiaLoginDialog/useEsiaLoginDialog.d.ts +0 -1
- package/dist/retail/components/EsiaLoginDialog/useEsiaLoginDialog.js +0 -15
- package/dist/retail/components/EsiaLoginDialog/useEsiaLoginDialog.js.map +0 -1
- package/lib/retail/api/updateProfileEsia.js +0 -3
- package/lib/retail/api/updateProfileEsia.js.map +0 -1
- package/lib/retail/components/EsiaLoginDialog/EsiaLoginDialog.d.ts +0 -4
- package/lib/retail/components/EsiaLoginDialog/EsiaLoginDialog.fixture.d.ts +0 -5
- package/lib/retail/components/EsiaLoginDialog/EsiaLoginDialog.js +0 -32
- package/lib/retail/components/EsiaLoginDialog/EsiaLoginDialog.js.map +0 -1
- package/lib/retail/components/EsiaLoginDialog/useEsiaLoginDialog.d.ts +0 -1
- package/lib/retail/components/EsiaLoginDialog/useEsiaLoginDialog.js +0 -12
- package/lib/retail/components/EsiaLoginDialog/useEsiaLoginDialog.js.map +0 -1
- package/mobile/bundle/retail/components/EsiaLoginDialog/EsiaLoginDialog.d.ts +0 -4
- package/mobile/bundle/retail/components/EsiaLoginDialog/useEsiaLoginDialog.d.ts +0 -1
- package/mobile/dist/retail/api/updateProfileEsia.d.ts +0 -77
- package/mobile/dist/retail/api/updateProfileEsia.js +0 -6
- package/mobile/dist/retail/api/updateProfileEsia.js.map +0 -1
- package/mobile/dist/retail/components/EsiaLoginDialog/EsiaLoginDialog.d.ts +0 -4
- package/mobile/dist/retail/components/EsiaLoginDialog/EsiaLoginDialog.js +0 -34
- package/mobile/dist/retail/components/EsiaLoginDialog/EsiaLoginDialog.js.map +0 -1
- package/mobile/dist/retail/components/EsiaLoginDialog/useEsiaLoginDialog.d.ts +0 -1
- package/mobile/dist/retail/components/EsiaLoginDialog/useEsiaLoginDialog.js +0 -15
- package/mobile/dist/retail/components/EsiaLoginDialog/useEsiaLoginDialog.js.map +0 -1
- package/mobile/lib/retail/api/updateProfileEsia.d.ts +0 -77
- package/mobile/lib/retail/api/updateProfileEsia.js +0 -3
- package/mobile/lib/retail/api/updateProfileEsia.js.map +0 -1
- package/mobile/lib/retail/components/EsiaLoginDialog/EsiaLoginDialog.d.ts +0 -4
- package/mobile/lib/retail/components/EsiaLoginDialog/EsiaLoginDialog.js +0 -32
- package/mobile/lib/retail/components/EsiaLoginDialog/EsiaLoginDialog.js.map +0 -1
- package/mobile/lib/retail/components/EsiaLoginDialog/useEsiaLoginDialog.d.ts +0 -1
- package/mobile/lib/retail/components/EsiaLoginDialog/useEsiaLoginDialog.js +0 -12
- package/mobile/lib/retail/components/EsiaLoginDialog/useEsiaLoginDialog.js.map +0 -1
- package/mobile/src/retail/components/EsiaLoginDialog/EsiaLoginDialog.tsx +0 -65
- package/mobile/src/retail/components/EsiaLoginDialog/useEsiaLoginDialog.tsx +0 -13
- package/src/retail/components/EsiaLoginDialog/EsiaLoginDialog.fixture.tsx +0 -7
- package/src/retail/components/EsiaLoginDialog/EsiaLoginDialog.tsx +0 -65
- package/src/retail/components/EsiaLoginDialog/useEsiaLoginDialog.tsx +0 -13
|
@@ -19,12 +19,13 @@ export const getFamilyStatusAndIncomeData = (formData: LeadFormState): Partial<P
|
|
|
19
19
|
snils,
|
|
20
20
|
armyIdFlg,
|
|
21
21
|
conscription,
|
|
22
|
+
esiaAccountTypeCd,
|
|
22
23
|
} = formData;
|
|
23
24
|
|
|
24
25
|
return {
|
|
25
26
|
maritalStatusCd: familyStatus,
|
|
26
27
|
totalDependents: familyMembers,
|
|
27
|
-
incomeCertificateCd: confirmationIncome,
|
|
28
|
+
incomeCertificateCd: esiaAccountTypeCd?.key ? { key: 'SFR_CERTIFICATE' } : confirmationIncome,
|
|
28
29
|
otherDependents: dependents,
|
|
29
30
|
childrenDependents: children,
|
|
30
31
|
militaryStatusCd: conscription,
|
|
@@ -16,7 +16,7 @@ export type CheckCodeResponse = {
|
|
|
16
16
|
export const checkCode = async (body: CheckCodeBody) =>
|
|
17
17
|
fetchRetailJSON<CheckCodeResponse>('/sms/checkCode', 'POST', body).then(saveToken);
|
|
18
18
|
|
|
19
|
-
const saveToken = (data: CheckCodeResponse | null) => {
|
|
19
|
+
export const saveToken = (data: CheckCodeResponse | null) => {
|
|
20
20
|
if (data) {
|
|
21
21
|
globalThis.sessionStorage.setItem('accessToken', data.access_token);
|
|
22
22
|
globalThis.sessionStorage.setItem('refreshToken', data.refresh_token);
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import { saveToken, type CheckCodeResponse } from './checkCode';
|
|
1
2
|
import { fetchRetailJSON } from './doRequest';
|
|
2
3
|
|
|
3
|
-
export type
|
|
4
|
+
export type EsiaRequestProfileBody = {
|
|
4
5
|
code: string;
|
|
5
|
-
|
|
6
|
+
authorize: boolean;
|
|
6
7
|
state: string;
|
|
7
8
|
redirectUri: string;
|
|
8
9
|
};
|
|
9
10
|
|
|
10
|
-
export type
|
|
11
|
+
export type EsiaRequestProfileResponse = CheckCodeResponse & {
|
|
11
12
|
profile: {
|
|
12
13
|
id: number;
|
|
13
14
|
esiaId: string;
|
|
@@ -75,8 +76,18 @@ export type UpdateProfileEsiaResponse = {
|
|
|
75
76
|
workLengthLastJob: number;
|
|
76
77
|
pdfFileWorkbook: string;
|
|
77
78
|
pdfFilePayout: string;
|
|
79
|
+
pdfFileSigPayout: string;
|
|
80
|
+
pdfFileSigWorkbook: string;
|
|
81
|
+
xmlFilePayout: string;
|
|
82
|
+
xmlFileSigPayout: string;
|
|
83
|
+
xmlFileSigWorkbook: string;
|
|
84
|
+
xmlFileWorkbook: string;
|
|
78
85
|
};
|
|
79
86
|
};
|
|
80
87
|
|
|
81
|
-
export const
|
|
82
|
-
fetchRetailJSON<
|
|
88
|
+
export const esiaRequestProfile = (body: EsiaRequestProfileBody) =>
|
|
89
|
+
fetchRetailJSON<EsiaRequestProfileResponse>('/esia/requestProfile', 'POST', body).then((res) => {
|
|
90
|
+
saveToken(res);
|
|
91
|
+
|
|
92
|
+
return res;
|
|
93
|
+
});
|
|
@@ -5,13 +5,12 @@ export type DocumentCategory = 'CONFIRMING_EMPLOYMENT_DOC' | 'CONFIRMING_INCOME_
|
|
|
5
5
|
|
|
6
6
|
export const uploadFile = async (
|
|
7
7
|
file: Blob,
|
|
8
|
-
taskId: string,
|
|
9
8
|
documentCategory: DocumentCategory,
|
|
9
|
+
isPDF = false,
|
|
10
10
|
): Promise<File> => {
|
|
11
11
|
const fd = new FormData();
|
|
12
|
-
fd.append('taskId', taskId);
|
|
13
12
|
fd.append('documentCategory', documentCategory);
|
|
14
|
-
fd.append('file', file, '
|
|
13
|
+
fd.append('file', file, `file.${isPDF ? 'pdf' : 'xml'}`);
|
|
15
14
|
|
|
16
15
|
const res = await globalThis
|
|
17
16
|
?.fetch?.(`/light-api-cash/v1/file`, {
|
|
@@ -68,6 +68,7 @@ export const parseDraftTask = (task: Task): LeadFormState => {
|
|
|
68
68
|
payrollCardRshbFlg: isInsurance,
|
|
69
69
|
consentInsuranceFlg: isSalaryClient,
|
|
70
70
|
incomeCertificateCd,
|
|
71
|
+
profile,
|
|
71
72
|
} = participant;
|
|
72
73
|
|
|
73
74
|
return {
|
|
@@ -121,6 +122,7 @@ export const parseDraftTask = (task: Task): LeadFormState => {
|
|
|
121
122
|
monthsValue,
|
|
122
123
|
isAnnuity: paymentTypeCd?.key === 'ANNUITY',
|
|
123
124
|
},
|
|
125
|
+
esiaAccountTypeCd: profile?.esiaAccountTypeCd,
|
|
124
126
|
...getParticipantIncomes(participantIncomes),
|
|
125
127
|
...getParticipantAddresses(participantAddresses),
|
|
126
128
|
...getParticipantContacts(participantContacts),
|
package/src/retail/content.tsx
CHANGED
|
@@ -190,7 +190,16 @@ const FAMILY_STATUS_AND_INCOME_CONTENT: CreditCardSectionsProps[] = [
|
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
192
|
columns: 1,
|
|
193
|
-
inputs: [
|
|
193
|
+
inputs: [
|
|
194
|
+
{
|
|
195
|
+
name: 'confirmationIncome',
|
|
196
|
+
required: true,
|
|
197
|
+
condition: {
|
|
198
|
+
name: 'esiaAccountTypeCd',
|
|
199
|
+
values: [''],
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
],
|
|
194
203
|
},
|
|
195
204
|
{
|
|
196
205
|
columns: 1,
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { isEsiaAuthorize } from '../../../retail/utils/isEsiaAuthorize';
|
|
2
3
|
import { InputPhoneControl } from '../../Input/InputPhoneControl';
|
|
3
4
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
5
|
|
|
5
6
|
export const PhoneField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
6
7
|
const fieldName = input?.name || 'phone';
|
|
7
8
|
|
|
8
|
-
return
|
|
9
|
+
return (
|
|
10
|
+
<InputPhoneControl
|
|
11
|
+
label="Телефон"
|
|
12
|
+
disabled={input?.filledByEsia && isEsiaAuthorize(field, input.name ?? '')}
|
|
13
|
+
{...field(fieldName)}
|
|
14
|
+
{...input}
|
|
15
|
+
/>
|
|
16
|
+
);
|
|
9
17
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
|
1
2
|
import { type FormFieldRegisterer } from '../../hooks/useForm/useForm';
|
|
2
3
|
import { type BaseFieldDef } from './BaseFieldDef';
|
|
3
4
|
|
|
@@ -11,5 +12,5 @@ export function shouldRenderField<F extends BaseFieldDef>({
|
|
|
11
12
|
const { condition } = input;
|
|
12
13
|
const { value } = field(condition?.name || '');
|
|
13
14
|
|
|
14
|
-
return !condition || condition?.values?.
|
|
15
|
+
return !condition || condition?.values?.includes(value?.key ?? value);
|
|
15
16
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useEsiaLoginDialog: (nextStepLink: string) => () => void;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.updateProfileEsia = void 0;
|
|
3
|
-
const doRequest_1 = require("./doRequest");
|
|
4
|
-
const updateProfileEsia = (body) => (0, doRequest_1.fetchRetailJSON)('/esia/updateProfileEsia', 'POST', body);
|
|
5
|
-
exports.updateProfileEsia = updateProfileEsia;
|
|
6
|
-
//# sourceMappingURL=updateProfileEsia.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateProfileEsia.js","sourceRoot":"","sources":["../../../src/retail/api/updateProfileEsia.ts"],"names":[],"mappings":";;AAAA,2CAA8C;AAgFvC,MAAM,iBAAiB,GAAG,CAAC,IAA2B,EAAE,EAAE,CAC/D,IAAA,2BAAe,EAA4B,yBAAyB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;AADzE,QAAA,iBAAiB,qBACwD"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.EsiaLoginDialog = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
|
-
const locationNavigator_1 = require("../../../external/locationNavigator");
|
|
7
|
-
const Button_1 = require("../../../ui-kit/Button/Button");
|
|
8
|
-
const Dialog_1 = require("../../../ui-kit/DialogManager/Dialog");
|
|
9
|
-
const Img_1 = require("../../../ui-kit/Img/Img");
|
|
10
|
-
const getLink_1 = require("../../api/getLink");
|
|
11
|
-
const useRetailFormStore_1 = require("../../hooks/useRetailFormStore");
|
|
12
|
-
exports.EsiaLoginDialog = (0, uni_jsx_1.JSX)(({ onClose }) => {
|
|
13
|
-
const navigator = (0, locationNavigator_1.locationNavigator)();
|
|
14
|
-
const retailFormStore = (0, useRetailFormStore_1.useRetailFormStore)();
|
|
15
|
-
const handleAuth = (0, hooks_1.useCallback)(async () => {
|
|
16
|
-
const resp = await (0, getLink_1.getLink)({
|
|
17
|
-
redirectUri: globalThis.location.origin + globalThis.location.pathname,
|
|
18
|
-
});
|
|
19
|
-
if (resp?.link) {
|
|
20
|
-
navigator.assign(resp.link);
|
|
21
|
-
globalThis.location.href = resp.link;
|
|
22
|
-
}
|
|
23
|
-
}, []);
|
|
24
|
-
const handleClose = (0, hooks_1.useCallback)(() => {
|
|
25
|
-
if (retailFormStore.leadForm) {
|
|
26
|
-
const leadForm = { ...retailFormStore.leadForm };
|
|
27
|
-
delete leadForm.esiaAccountTypeCd;
|
|
28
|
-
retailFormStore.leadForm = leadForm;
|
|
29
|
-
}
|
|
30
|
-
onClose?.();
|
|
31
|
-
}, []);
|
|
32
|
-
return ((0, jsx_runtime_1.jsx)(Dialog_1.Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", onClose: handleClose, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-lg items-center rounded-md", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center justify-around w-full px-m", children: [(0, jsx_runtime_1.jsxs)("ul", { className: "list-disc", children: [(0, jsx_runtime_1.jsx)("li", { children: "\u0412\u0435\u0440\u043E\u044F\u0442\u043D\u043E\u0441\u0442\u044C \u043E\u0434\u043E\u0431\u0440\u0435\u043D\u0438\u044F \u0432\u044B\u0448\u0435" }), (0, jsx_runtime_1.jsx)("li", { children: "\u0411\u0435\u0437 \u0441\u043F\u0440\u0430\u0432\u043E\u043A \u043E \u0434\u043E\u0445\u043E\u0434\u0430\u0445 \u0438 \u0442\u0440\u0443\u0434\u043E\u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435" }), (0, jsx_runtime_1.jsx)("li", { children: "\u0421 \u0437\u0430\u0449\u0438\u0442\u043E\u0439 \u0412\u0430\u0448\u0438\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" })] }), (0, jsx_runtime_1.jsx)(Img_1.Img, { image: { icon: 'GosUslugiIcon', iconVersion: 'normal' }, height: "70" })] }), (0, jsx_runtime_1.jsxs)("div", { className: "@container flex flex-wrap gap-lg w-full", children: [(0, jsx_runtime_1.jsx)(Button_1.Button, { type: "button", onClick: handleAuth, className: "w-full md:w-auto", children: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438" }), (0, jsx_runtime_1.jsx)(Button_1.Button, { type: "button", version: "secondary", onClick: handleClose, className: "w-full md:w-auto", children: "\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C" })] })] }) }));
|
|
33
|
-
});
|
|
34
|
-
//# sourceMappingURL=EsiaLoginDialog.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EsiaLoginDialog.js","sourceRoot":"","sources":["../../../../src/retail/components/EsiaLoginDialog/EsiaLoginDialog.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA0D;AAC1D,2EAAwE;AACxE,0DAAuD;AACvD,iEAA8D;AAC9D,iDAA8C;AAC9C,+CAA4C;AAC5C,uEAAoE;AAMvD,QAAA,eAAe,GAAG,IAAA,aAAG,EAAuB,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;IACvE,MAAM,SAAS,GAAG,IAAA,qCAAiB,GAAE,CAAC;IACtC,MAAM,eAAe,GAAG,IAAA,uCAAkB,GAAE,CAAC;IAE7C,MAAM,UAAU,GAAG,IAAA,mBAAW,EAAC,KAAK,IAAI,EAAE;QACxC,MAAM,IAAI,GAAG,MAAM,IAAA,iBAAO,EAAC;YACzB,WAAW,EAAE,UAAU,CAAC,QAAQ,CAAC,MAAM,GAAG,UAAU,CAAC,QAAQ,CAAC,QAAQ;SACvE,CAAC,CAAC;QAEH,IAAI,IAAI,EAAE,IAAI,EAAE;YACd,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC5B,UAAU,CAAC,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;SACtC;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,WAAW,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QACnC,IAAI,eAAe,CAAC,QAAQ,EAAE;YAC5B,MAAM,QAAQ,GAAG,EAAE,GAAG,eAAe,CAAC,QAAQ,EAAE,CAAC;YACjD,OAAO,QAAQ,CAAC,iBAAiB,CAAC;YAClC,eAAe,CAAC,QAAQ,GAAG,QAAQ,CAAC;SACrC;QACD,OAAO,EAAE,EAAE,CAAC;IACd,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,uBAAC,eAAM,IAAC,SAAS,EAAC,qDAAqD,EAAC,OAAO,EAAE,WAAW,YAC1F,iCAAK,SAAS,EAAC,8CAA8C,aAC3D,iCAAK,SAAS,EAAC,8CAA8C,aAC3D,gCAAI,SAAS,EAAC,WAAW,aACvB,gMAAmC,EACnC,+PAAgD,EAChD,mKAA+B,IAC5B,EACL,uBAAC,SAAG,IAAC,KAAK,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAC,IAAI,GAAG,IACxE,EACN,iCAAK,SAAS,EAAC,yCAAyC,aACtD,uBAAC,eAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAC,kBAAkB,6JAE9D,EACT,uBAAC,eAAM,IACL,IAAI,EAAC,QAAQ,EACb,OAAO,EAAC,WAAW,EACnB,OAAO,EAAE,WAAW,EACpB,SAAS,EAAC,kBAAkB,6EAGrB,IACL,IACF,GACC,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useEsiaLoginDialog: (nextStepLink: string) => () => void;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.useEsiaLoginDialog = void 0;
|
|
3
|
-
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
4
|
-
const locationNavigator_1 = require("../../../external/locationNavigator");
|
|
5
|
-
const useDialog_1 = require("../../../ui-kit/DialogManager/useDialog");
|
|
6
|
-
const EsiaLoginDialog_1 = require("./EsiaLoginDialog");
|
|
7
|
-
const useEsiaLoginDialog = (nextStepLink) => {
|
|
8
|
-
const { open } = (0, useDialog_1.useDialog)(EsiaLoginDialog_1.EsiaLoginDialog);
|
|
9
|
-
const navigator = (0, locationNavigator_1.locationNavigator)();
|
|
10
|
-
return (0, hooks_1.useCallback)(() => {
|
|
11
|
-
open({ onClose: () => navigator.assign(nextStepLink) });
|
|
12
|
-
}, [open, nextStepLink]);
|
|
13
|
-
};
|
|
14
|
-
exports.useEsiaLoginDialog = useEsiaLoginDialog;
|
|
15
|
-
//# sourceMappingURL=useEsiaLoginDialog.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useEsiaLoginDialog.js","sourceRoot":"","sources":["../../../../src/retail/components/EsiaLoginDialog/useEsiaLoginDialog.tsx"],"names":[],"mappings":";;AAAA,uDAA0D;AAC1D,2EAAwE;AACxE,uEAAoE;AACpE,uDAAoD;AAE7C,MAAM,kBAAkB,GAAG,CAAC,YAAoB,EAAE,EAAE;IACzD,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,qBAAS,EAAC,iCAAe,CAAC,CAAC;IAC5C,MAAM,SAAS,GAAG,IAAA,qCAAiB,GAAE,CAAC;IAEtC,OAAO,IAAA,mBAAW,EAAC,GAAG,EAAE;QACtB,IAAI,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;IAC1D,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC;AAC3B,CAAC,CAAC;AAPW,QAAA,kBAAkB,sBAO7B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateProfileEsia.js","sourceRoot":"","sources":["../../../src/retail/api/updateProfileEsia.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAgF9C,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,IAA2B,EAAE,EAAE,CAC/D,eAAe,CAA4B,yBAAyB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
4
|
-
import { locationNavigator } from '../../../external/locationNavigator.js';
|
|
5
|
-
import { Button } from '../../../ui-kit/Button/Button.js';
|
|
6
|
-
import { Dialog } from '../../../ui-kit/DialogManager/Dialog.js';
|
|
7
|
-
import { Img } from '../../../ui-kit/Img/Img.js';
|
|
8
|
-
import { getLink } from '../../api/getLink.js';
|
|
9
|
-
import { useRetailFormStore } from '../../hooks/useRetailFormStore.js';
|
|
10
|
-
export const EsiaLoginDialog = JSX(({ onClose }) => {
|
|
11
|
-
const navigator = locationNavigator();
|
|
12
|
-
const retailFormStore = useRetailFormStore();
|
|
13
|
-
const handleAuth = useCallback(async () => {
|
|
14
|
-
const resp = await getLink({
|
|
15
|
-
redirectUri: globalThis.location.origin + globalThis.location.pathname,
|
|
16
|
-
});
|
|
17
|
-
if (resp?.link) {
|
|
18
|
-
navigator.assign(resp.link);
|
|
19
|
-
globalThis.location.href = resp.link;
|
|
20
|
-
}
|
|
21
|
-
}, []);
|
|
22
|
-
const handleClose = useCallback(() => {
|
|
23
|
-
if (retailFormStore.leadForm) {
|
|
24
|
-
const leadForm = { ...retailFormStore.leadForm };
|
|
25
|
-
delete leadForm.esiaAccountTypeCd;
|
|
26
|
-
retailFormStore.leadForm = leadForm;
|
|
27
|
-
}
|
|
28
|
-
onClose?.();
|
|
29
|
-
}, []);
|
|
30
|
-
return (_jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", onClose: handleClose, children: _jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md", children: [_jsxs("div", { className: "flex items-center justify-around w-full px-m", children: [_jsxs("ul", { className: "list-disc", children: [_jsx("li", { children: "\u0412\u0435\u0440\u043E\u044F\u0442\u043D\u043E\u0441\u0442\u044C \u043E\u0434\u043E\u0431\u0440\u0435\u043D\u0438\u044F \u0432\u044B\u0448\u0435" }), _jsx("li", { children: "\u0411\u0435\u0437 \u0441\u043F\u0440\u0430\u0432\u043E\u043A \u043E \u0434\u043E\u0445\u043E\u0434\u0430\u0445 \u0438 \u0442\u0440\u0443\u0434\u043E\u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435" }), _jsx("li", { children: "\u0421 \u0437\u0430\u0449\u0438\u0442\u043E\u0439 \u0412\u0430\u0448\u0438\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" })] }), _jsx(Img, { image: { icon: 'GosUslugiIcon', iconVersion: 'normal' }, height: "70" })] }), _jsxs("div", { className: "@container flex flex-wrap gap-lg w-full", children: [_jsx(Button, { type: "button", onClick: handleAuth, className: "w-full md:w-auto", children: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438" }), _jsx(Button, { type: "button", version: "secondary", onClick: handleClose, className: "w-full md:w-auto", children: "\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C" })] })] }) }));
|
|
31
|
-
});
|
|
32
|
-
//# sourceMappingURL=EsiaLoginDialog.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EsiaLoginDialog.js","sourceRoot":"","sources":["../../../../src/retail/components/EsiaLoginDialog/EsiaLoginDialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAMpE,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAuB,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;IACvE,MAAM,SAAS,GAAG,iBAAiB,EAAE,CAAC;IACtC,MAAM,eAAe,GAAG,kBAAkB,EAAE,CAAC;IAE7C,MAAM,UAAU,GAAG,WAAW,CAAC,KAAK,IAAI,EAAE;QACxC,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC;YACzB,WAAW,EAAE,UAAU,CAAC,QAAQ,CAAC,MAAM,GAAG,UAAU,CAAC,QAAQ,CAAC,QAAQ;SACvE,CAAC,CAAC;QAEH,IAAI,IAAI,EAAE,IAAI,EAAE;YACd,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC5B,UAAU,CAAC,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;SACtC;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,EAAE;QACnC,IAAI,eAAe,CAAC,QAAQ,EAAE;YAC5B,MAAM,QAAQ,GAAG,EAAE,GAAG,eAAe,CAAC,QAAQ,EAAE,CAAC;YACjD,OAAO,QAAQ,CAAC,iBAAiB,CAAC;YAClC,eAAe,CAAC,QAAQ,GAAG,QAAQ,CAAC;SACrC;QACD,OAAO,EAAE,EAAE,CAAC;IACd,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,KAAC,MAAM,IAAC,SAAS,EAAC,qDAAqD,EAAC,OAAO,EAAE,WAAW,YAC1F,eAAK,SAAS,EAAC,8CAA8C,aAC3D,eAAK,SAAS,EAAC,8CAA8C,aAC3D,cAAI,SAAS,EAAC,WAAW,aACvB,8KAAmC,EACnC,6OAAgD,EAChD,iJAA+B,IAC5B,EACL,KAAC,GAAG,IAAC,KAAK,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAC,IAAI,GAAG,IACxE,EACN,eAAK,SAAS,EAAC,yCAAyC,aACtD,KAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAC,kBAAkB,6JAE9D,EACT,KAAC,MAAM,IACL,IAAI,EAAC,QAAQ,EACb,OAAO,EAAC,WAAW,EACnB,OAAO,EAAE,WAAW,EACpB,SAAS,EAAC,kBAAkB,6EAGrB,IACL,IACF,GACC,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useEsiaLoginDialog: (nextStepLink: string) => () => void;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
-
import { locationNavigator } from '../../../external/locationNavigator.js';
|
|
3
|
-
import { useDialog } from '../../../ui-kit/DialogManager/useDialog.js';
|
|
4
|
-
import { EsiaLoginDialog } from './EsiaLoginDialog.js';
|
|
5
|
-
export const useEsiaLoginDialog = (nextStepLink) => {
|
|
6
|
-
const { open } = useDialog(EsiaLoginDialog);
|
|
7
|
-
const navigator = locationNavigator();
|
|
8
|
-
return useCallback(() => {
|
|
9
|
-
open({ onClose: () => navigator.assign(nextStepLink) });
|
|
10
|
-
}, [open, nextStepLink]);
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=useEsiaLoginDialog.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useEsiaLoginDialog.js","sourceRoot":"","sources":["../../../../src/retail/components/EsiaLoginDialog/useEsiaLoginDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,YAAoB,EAAE,EAAE;IACzD,MAAM,EAAE,IAAI,EAAE,GAAG,SAAS,CAAC,eAAe,CAAC,CAAC;IAC5C,MAAM,SAAS,GAAG,iBAAiB,EAAE,CAAC;IAEtC,OAAO,WAAW,CAAC,GAAG,EAAE;QACtB,IAAI,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;IAC1D,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC;AAC3B,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useEsiaLoginDialog: (nextStepLink: string) => () => void;
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
export declare type UpdateProfileEsiaBody = {
|
|
2
|
-
code: string;
|
|
3
|
-
profileId: string;
|
|
4
|
-
state: string;
|
|
5
|
-
redirectUri: string;
|
|
6
|
-
};
|
|
7
|
-
export declare type UpdateProfileEsiaResponse = {
|
|
8
|
-
profile: {
|
|
9
|
-
id: number;
|
|
10
|
-
esiaId: string;
|
|
11
|
-
surname: string;
|
|
12
|
-
name: string;
|
|
13
|
-
midname: string;
|
|
14
|
-
birthDate: Date;
|
|
15
|
-
phone: string;
|
|
16
|
-
email: string;
|
|
17
|
-
esiaAccountType: {
|
|
18
|
-
key: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
addInfo: {
|
|
22
|
-
snils: string;
|
|
23
|
-
inn: string;
|
|
24
|
-
birthPlace: string;
|
|
25
|
-
};
|
|
26
|
-
document: {
|
|
27
|
-
dulSerie: string;
|
|
28
|
-
dulNumber: string;
|
|
29
|
-
dulIssueDate: string;
|
|
30
|
-
dulSubdivisionCode: string;
|
|
31
|
-
dulIssuedBy: string;
|
|
32
|
-
};
|
|
33
|
-
addressRegistration: {
|
|
34
|
-
fiasCode: string;
|
|
35
|
-
postcode: string;
|
|
36
|
-
region: string;
|
|
37
|
-
regionCode: {
|
|
38
|
-
key: string;
|
|
39
|
-
value: string;
|
|
40
|
-
};
|
|
41
|
-
city: string;
|
|
42
|
-
locality: string;
|
|
43
|
-
street: string;
|
|
44
|
-
house: string;
|
|
45
|
-
building: string;
|
|
46
|
-
block: string;
|
|
47
|
-
apartment: string;
|
|
48
|
-
};
|
|
49
|
-
addressFact: {
|
|
50
|
-
fiasCode: string;
|
|
51
|
-
postcode: string;
|
|
52
|
-
region: string;
|
|
53
|
-
regionCode: {
|
|
54
|
-
key: string;
|
|
55
|
-
value: string;
|
|
56
|
-
};
|
|
57
|
-
city: string;
|
|
58
|
-
locality: string;
|
|
59
|
-
street: string;
|
|
60
|
-
house: string;
|
|
61
|
-
building: string;
|
|
62
|
-
block: string;
|
|
63
|
-
apartment: string;
|
|
64
|
-
};
|
|
65
|
-
esiaAdditionalDocument: {
|
|
66
|
-
averageMonthlyIncome: number;
|
|
67
|
-
inn: string;
|
|
68
|
-
jobsNumberInFiveYears: string;
|
|
69
|
-
startWorkDate: string;
|
|
70
|
-
workLength: number;
|
|
71
|
-
workLengthInFiveYears: number;
|
|
72
|
-
workLengthLastJob: number;
|
|
73
|
-
pdfFileWorkbook: string;
|
|
74
|
-
pdfFilePayout: string;
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
export declare const updateProfileEsia: (body: UpdateProfileEsiaBody) => Promise<UpdateProfileEsiaResponse | null>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.updateProfileEsia = void 0;
|
|
3
|
-
const doRequest_1 = require("./doRequest");
|
|
4
|
-
const updateProfileEsia = (body) => (0, doRequest_1.fetchRetailJSON)('/esia/updateProfileEsia', 'POST', body);
|
|
5
|
-
exports.updateProfileEsia = updateProfileEsia;
|
|
6
|
-
//# sourceMappingURL=updateProfileEsia.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateProfileEsia.js","sourceRoot":"","sources":["../../../src/retail/api/updateProfileEsia.ts"],"names":[],"mappings":";;AAAA,2CAA8C;AAgFvC,MAAM,iBAAiB,GAAG,CAAC,IAA2B,EAAE,EAAE,CAC/D,IAAA,2BAAe,EAA4B,yBAAyB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;AADzE,QAAA,iBAAiB,qBACwD"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.EsiaLoginDialog = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
|
-
const locationNavigator_1 = require("../../../external/locationNavigator");
|
|
7
|
-
const Button_1 = require("../../../ui-kit/Button/Button");
|
|
8
|
-
const Dialog_1 = require("../../../ui-kit/DialogManager/Dialog");
|
|
9
|
-
const Img_1 = require("../../../ui-kit/Img/Img");
|
|
10
|
-
const getLink_1 = require("../../api/getLink");
|
|
11
|
-
const useRetailFormStore_1 = require("../../hooks/useRetailFormStore");
|
|
12
|
-
exports.EsiaLoginDialog = (0, uni_jsx_1.JSX)(({ onClose }) => {
|
|
13
|
-
const navigator = (0, locationNavigator_1.locationNavigator)();
|
|
14
|
-
const retailFormStore = (0, useRetailFormStore_1.useRetailFormStore)();
|
|
15
|
-
const handleAuth = (0, hooks_1.useCallback)(async () => {
|
|
16
|
-
const resp = await (0, getLink_1.getLink)({
|
|
17
|
-
redirectUri: globalThis.location.origin + globalThis.location.pathname,
|
|
18
|
-
});
|
|
19
|
-
if (resp?.link) {
|
|
20
|
-
navigator.assign(resp.link);
|
|
21
|
-
globalThis.location.href = resp.link;
|
|
22
|
-
}
|
|
23
|
-
}, []);
|
|
24
|
-
const handleClose = (0, hooks_1.useCallback)(() => {
|
|
25
|
-
if (retailFormStore.leadForm) {
|
|
26
|
-
const leadForm = { ...retailFormStore.leadForm };
|
|
27
|
-
delete leadForm.esiaAccountTypeCd;
|
|
28
|
-
retailFormStore.leadForm = leadForm;
|
|
29
|
-
}
|
|
30
|
-
onClose?.();
|
|
31
|
-
}, []);
|
|
32
|
-
return ((0, jsx_runtime_1.jsx)(Dialog_1.Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", onClose: handleClose, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-lg items-center rounded-md", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center justify-around w-full px-m", children: [(0, jsx_runtime_1.jsxs)("ul", { className: "list-disc", children: [(0, jsx_runtime_1.jsx)("li", { children: "\u0412\u0435\u0440\u043E\u044F\u0442\u043D\u043E\u0441\u0442\u044C \u043E\u0434\u043E\u0431\u0440\u0435\u043D\u0438\u044F \u0432\u044B\u0448\u0435" }), (0, jsx_runtime_1.jsx)("li", { children: "\u0411\u0435\u0437 \u0441\u043F\u0440\u0430\u0432\u043E\u043A \u043E \u0434\u043E\u0445\u043E\u0434\u0430\u0445 \u0438 \u0442\u0440\u0443\u0434\u043E\u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435" }), (0, jsx_runtime_1.jsx)("li", { children: "\u0421 \u0437\u0430\u0449\u0438\u0442\u043E\u0439 \u0412\u0430\u0448\u0438\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" })] }), (0, jsx_runtime_1.jsx)(Img_1.Img, { image: { icon: 'GosUslugiIcon', iconVersion: 'normal' }, height: "70" })] }), (0, jsx_runtime_1.jsxs)("div", { className: "@container flex flex-wrap gap-lg w-full", children: [(0, jsx_runtime_1.jsx)(Button_1.Button, { type: "button", onClick: handleAuth, className: "w-full md:w-auto", children: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438" }), (0, jsx_runtime_1.jsx)(Button_1.Button, { type: "button", version: "secondary", onClick: handleClose, className: "w-full md:w-auto", children: "\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C" })] })] }) }));
|
|
33
|
-
});
|
|
34
|
-
//# sourceMappingURL=EsiaLoginDialog.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EsiaLoginDialog.js","sourceRoot":"","sources":["../../../../src/retail/components/EsiaLoginDialog/EsiaLoginDialog.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA0D;AAC1D,2EAAwE;AACxE,0DAAuD;AACvD,iEAA8D;AAC9D,iDAA8C;AAC9C,+CAA4C;AAC5C,uEAAoE;AAMvD,QAAA,eAAe,GAAG,IAAA,aAAG,EAAuB,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;IACvE,MAAM,SAAS,GAAG,IAAA,qCAAiB,GAAE,CAAC;IACtC,MAAM,eAAe,GAAG,IAAA,uCAAkB,GAAE,CAAC;IAE7C,MAAM,UAAU,GAAG,IAAA,mBAAW,EAAC,KAAK,IAAI,EAAE;QACxC,MAAM,IAAI,GAAG,MAAM,IAAA,iBAAO,EAAC;YACzB,WAAW,EAAE,UAAU,CAAC,QAAQ,CAAC,MAAM,GAAG,UAAU,CAAC,QAAQ,CAAC,QAAQ;SACvE,CAAC,CAAC;QAEH,IAAI,IAAI,EAAE,IAAI,EAAE;YACd,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC5B,UAAU,CAAC,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;SACtC;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,WAAW,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QACnC,IAAI,eAAe,CAAC,QAAQ,EAAE;YAC5B,MAAM,QAAQ,GAAG,EAAE,GAAG,eAAe,CAAC,QAAQ,EAAE,CAAC;YACjD,OAAO,QAAQ,CAAC,iBAAiB,CAAC;YAClC,eAAe,CAAC,QAAQ,GAAG,QAAQ,CAAC;SACrC;QACD,OAAO,EAAE,EAAE,CAAC;IACd,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,uBAAC,eAAM,IAAC,SAAS,EAAC,qDAAqD,EAAC,OAAO,EAAE,WAAW,YAC1F,iCAAK,SAAS,EAAC,8CAA8C,aAC3D,iCAAK,SAAS,EAAC,8CAA8C,aAC3D,gCAAI,SAAS,EAAC,WAAW,aACvB,gMAAmC,EACnC,+PAAgD,EAChD,mKAA+B,IAC5B,EACL,uBAAC,SAAG,IAAC,KAAK,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAC,IAAI,GAAG,IACxE,EACN,iCAAK,SAAS,EAAC,yCAAyC,aACtD,uBAAC,eAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAC,kBAAkB,6JAE9D,EACT,uBAAC,eAAM,IACL,IAAI,EAAC,QAAQ,EACb,OAAO,EAAC,WAAW,EACnB,OAAO,EAAE,WAAW,EACpB,SAAS,EAAC,kBAAkB,6EAGrB,IACL,IACF,GACC,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useEsiaLoginDialog: (nextStepLink: string) => () => void;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.useEsiaLoginDialog = void 0;
|
|
3
|
-
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
4
|
-
const locationNavigator_1 = require("../../../external/locationNavigator");
|
|
5
|
-
const useDialog_1 = require("../../../ui-kit/DialogManager/useDialog");
|
|
6
|
-
const EsiaLoginDialog_1 = require("./EsiaLoginDialog");
|
|
7
|
-
const useEsiaLoginDialog = (nextStepLink) => {
|
|
8
|
-
const { open } = (0, useDialog_1.useDialog)(EsiaLoginDialog_1.EsiaLoginDialog);
|
|
9
|
-
const navigator = (0, locationNavigator_1.locationNavigator)();
|
|
10
|
-
return (0, hooks_1.useCallback)(() => {
|
|
11
|
-
open({ onClose: () => navigator.assign(nextStepLink) });
|
|
12
|
-
}, [open, nextStepLink]);
|
|
13
|
-
};
|
|
14
|
-
exports.useEsiaLoginDialog = useEsiaLoginDialog;
|
|
15
|
-
//# sourceMappingURL=useEsiaLoginDialog.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useEsiaLoginDialog.js","sourceRoot":"","sources":["../../../../src/retail/components/EsiaLoginDialog/useEsiaLoginDialog.tsx"],"names":[],"mappings":";;AAAA,uDAA0D;AAC1D,2EAAwE;AACxE,uEAAoE;AACpE,uDAAoD;AAE7C,MAAM,kBAAkB,GAAG,CAAC,YAAoB,EAAE,EAAE;IACzD,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,qBAAS,EAAC,iCAAe,CAAC,CAAC;IAC5C,MAAM,SAAS,GAAG,IAAA,qCAAiB,GAAE,CAAC;IAEtC,OAAO,IAAA,mBAAW,EAAC,GAAG,EAAE;QACtB,IAAI,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;IAC1D,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC;AAC3B,CAAC,CAAC;AAPW,QAAA,kBAAkB,sBAO7B"}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
export declare type UpdateProfileEsiaBody = {
|
|
2
|
-
code: string;
|
|
3
|
-
profileId: string;
|
|
4
|
-
state: string;
|
|
5
|
-
redirectUri: string;
|
|
6
|
-
};
|
|
7
|
-
export declare type UpdateProfileEsiaResponse = {
|
|
8
|
-
profile: {
|
|
9
|
-
id: number;
|
|
10
|
-
esiaId: string;
|
|
11
|
-
surname: string;
|
|
12
|
-
name: string;
|
|
13
|
-
midname: string;
|
|
14
|
-
birthDate: Date;
|
|
15
|
-
phone: string;
|
|
16
|
-
email: string;
|
|
17
|
-
esiaAccountType: {
|
|
18
|
-
key: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
addInfo: {
|
|
22
|
-
snils: string;
|
|
23
|
-
inn: string;
|
|
24
|
-
birthPlace: string;
|
|
25
|
-
};
|
|
26
|
-
document: {
|
|
27
|
-
dulSerie: string;
|
|
28
|
-
dulNumber: string;
|
|
29
|
-
dulIssueDate: string;
|
|
30
|
-
dulSubdivisionCode: string;
|
|
31
|
-
dulIssuedBy: string;
|
|
32
|
-
};
|
|
33
|
-
addressRegistration: {
|
|
34
|
-
fiasCode: string;
|
|
35
|
-
postcode: string;
|
|
36
|
-
region: string;
|
|
37
|
-
regionCode: {
|
|
38
|
-
key: string;
|
|
39
|
-
value: string;
|
|
40
|
-
};
|
|
41
|
-
city: string;
|
|
42
|
-
locality: string;
|
|
43
|
-
street: string;
|
|
44
|
-
house: string;
|
|
45
|
-
building: string;
|
|
46
|
-
block: string;
|
|
47
|
-
apartment: string;
|
|
48
|
-
};
|
|
49
|
-
addressFact: {
|
|
50
|
-
fiasCode: string;
|
|
51
|
-
postcode: string;
|
|
52
|
-
region: string;
|
|
53
|
-
regionCode: {
|
|
54
|
-
key: string;
|
|
55
|
-
value: string;
|
|
56
|
-
};
|
|
57
|
-
city: string;
|
|
58
|
-
locality: string;
|
|
59
|
-
street: string;
|
|
60
|
-
house: string;
|
|
61
|
-
building: string;
|
|
62
|
-
block: string;
|
|
63
|
-
apartment: string;
|
|
64
|
-
};
|
|
65
|
-
esiaAdditionalDocument: {
|
|
66
|
-
averageMonthlyIncome: number;
|
|
67
|
-
inn: string;
|
|
68
|
-
jobsNumberInFiveYears: string;
|
|
69
|
-
startWorkDate: string;
|
|
70
|
-
workLength: number;
|
|
71
|
-
workLengthInFiveYears: number;
|
|
72
|
-
workLengthLastJob: number;
|
|
73
|
-
pdfFileWorkbook: string;
|
|
74
|
-
pdfFilePayout: string;
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
export declare const updateProfileEsia: (body: UpdateProfileEsiaBody) => Promise<UpdateProfileEsiaResponse | null>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateProfileEsia.js","sourceRoot":"","sources":["../../../src/retail/api/updateProfileEsia.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAgF9C,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,IAA2B,EAAE,EAAE,CAC/D,eAAe,CAA4B,yBAAyB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC"}
|