@redneckz/wildless-cms-uni-blocks 0.14.980 → 0.14.982
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 +18 -11
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/retail/api/createUserTaskDebit.d.ts +1 -1
- package/bundle/retail/api/esiaRequestProfile.d.ts +1 -0
- package/bundle/retail/api/updateUserTask.d.ts +1 -0
- package/bundle/retail/model/LeadFormState.d.ts +1 -0
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +3 -1
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/dist/components/ApplicationLeadForm/parseEsiaProfile.js +14 -9
- package/dist/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
- package/dist/retail/api/createUserTaskDebit.d.ts +1 -1
- package/dist/retail/api/esiaRequestProfile.d.ts +1 -0
- package/dist/retail/api/esiaRequestProfile.js.map +1 -1
- package/dist/retail/api/updateUserTask.d.ts +1 -0
- package/dist/retail/api/updateUserTask.js.map +1 -1
- package/dist/retail/model/LeadFormState.d.ts +1 -0
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +3 -1
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/lib/components/ApplicationLeadForm/parseEsiaProfile.js +14 -9
- package/lib/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
- package/lib/retail/api/createUserTaskDebit.d.ts +1 -1
- package/lib/retail/api/esiaRequestProfile.d.ts +1 -0
- package/lib/retail/api/esiaRequestProfile.js.map +1 -1
- package/lib/retail/api/updateUserTask.d.ts +1 -0
- package/lib/retail/api/updateUserTask.js.map +1 -1
- package/lib/retail/model/LeadFormState.d.ts +1 -0
- package/mobile/bundle/bundle.umd.js +18 -11
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/retail/api/createUserTaskDebit.d.ts +1 -1
- package/mobile/bundle/retail/api/esiaRequestProfile.d.ts +1 -0
- package/mobile/bundle/retail/api/updateUserTask.d.ts +1 -0
- package/mobile/bundle/retail/model/LeadFormState.d.ts +1 -0
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +3 -1
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/parseEsiaProfile.js +14 -9
- package/mobile/dist/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
- package/mobile/dist/retail/api/createUserTaskDebit.d.ts +1 -1
- package/mobile/dist/retail/api/esiaRequestProfile.d.ts +1 -0
- package/mobile/dist/retail/api/esiaRequestProfile.js.map +1 -1
- package/mobile/dist/retail/api/updateUserTask.d.ts +1 -0
- package/mobile/dist/retail/api/updateUserTask.js.map +1 -1
- package/mobile/dist/retail/model/LeadFormState.d.ts +1 -0
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +3 -1
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/parseEsiaProfile.js +14 -9
- package/mobile/lib/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
- package/mobile/lib/retail/api/createUserTaskDebit.d.ts +1 -1
- package/mobile/lib/retail/api/esiaRequestProfile.d.ts +1 -0
- package/mobile/lib/retail/api/esiaRequestProfile.js.map +1 -1
- package/mobile/lib/retail/api/updateUserTask.d.ts +1 -0
- package/mobile/lib/retail/api/updateUserTask.js.map +1 -1
- package/mobile/lib/retail/model/LeadFormState.d.ts +1 -0
- package/mobile/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +3 -1
- package/mobile/src/components/ApplicationLeadForm/parseEsiaProfile.ts +24 -10
- package/mobile/src/retail/api/createUserTaskDebit.ts +1 -1
- package/mobile/src/retail/api/esiaRequestProfile.ts +1 -0
- package/mobile/src/retail/api/updateUserTask.ts +1 -0
- package/mobile/src/retail/model/LeadFormState.ts +1 -0
- package/package.json +1 -1
- package/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +3 -1
- package/src/components/ApplicationLeadForm/parseEsiaProfile.ts +24 -10
- package/src/retail/api/createUserTaskDebit.ts +1 -1
- package/src/retail/api/esiaRequestProfile.ts +1 -0
- package/src/retail/api/updateUserTask.ts +1 -0
- package/src/retail/model/LeadFormState.ts +1 -0
package/bundle/bundle.umd.js
CHANGED
|
@@ -6657,6 +6657,7 @@
|
|
|
6657
6657
|
const getCreditLeadFormTaskData = ({ participantId, taskId, profileId, formData, marketingInfo, consents, }) => {
|
|
6658
6658
|
const taskSource = getTaskSource(marketingInfo?.utm_source);
|
|
6659
6659
|
const participantInfo = getParticipant({ participantId, profileId, formData, consents });
|
|
6660
|
+
const { crshbFileIds } = formData;
|
|
6660
6661
|
return {
|
|
6661
6662
|
sendToBank: true,
|
|
6662
6663
|
taskKind: 'SHORT',
|
|
@@ -6672,6 +6673,7 @@
|
|
|
6672
6673
|
}),
|
|
6673
6674
|
marketingInfo,
|
|
6674
6675
|
},
|
|
6676
|
+
crshbFileIds,
|
|
6675
6677
|
};
|
|
6676
6678
|
};
|
|
6677
6679
|
const getParticipant = ({ participantId, profileId, formData, consents, }) => {
|
|
@@ -6720,8 +6722,8 @@
|
|
|
6720
6722
|
},
|
|
6721
6723
|
],
|
|
6722
6724
|
marketingInfo,
|
|
6723
|
-
claimChannelCode,
|
|
6724
6725
|
},
|
|
6726
|
+
claimChannelCode,
|
|
6725
6727
|
};
|
|
6726
6728
|
};
|
|
6727
6729
|
const getTaskSource = (source) => {
|
|
@@ -7180,7 +7182,7 @@
|
|
|
7180
7182
|
const parseEsiaProfile = async (esiaProfile, isDebit = false, isNewMicroservice = false) => {
|
|
7181
7183
|
checkEsiaData(esiaProfile);
|
|
7182
7184
|
const isFullEsiaData = !isDebit && checkEsiaAdditionalDocument(esiaProfile, isNewMicroservice);
|
|
7183
|
-
const { profile, addInfo, document, addressRegistration, addressFact, esiaAdditionalDocument } = esiaProfile;
|
|
7185
|
+
const { profile, addInfo, document, addressRegistration, addressFact, esiaAdditionalDocument, crshbFileIds, } = esiaProfile;
|
|
7184
7186
|
let files = [];
|
|
7185
7187
|
if (isFullEsiaData && !isNewMicroservice) {
|
|
7186
7188
|
files = await saveDocuments(esiaAdditionalDocument);
|
|
@@ -7219,6 +7221,7 @@
|
|
|
7219
7221
|
confirmationIncome: { key: 'SFR_CERTIFICATE', text: 'Запрос Банком доходов из СФР' },
|
|
7220
7222
|
employment: { key: 'WORK', text: 'Работаю' },
|
|
7221
7223
|
files,
|
|
7224
|
+
crshbFileIds,
|
|
7222
7225
|
}),
|
|
7223
7226
|
};
|
|
7224
7227
|
};
|
|
@@ -7233,19 +7236,20 @@
|
|
|
7233
7236
|
const buildAddress = (fields) => {
|
|
7234
7237
|
const { postcode, region, regionCode, locality, city, street, house, building, block, apartment, } = fields;
|
|
7235
7238
|
const place = locality || city;
|
|
7239
|
+
const getAddressItem = (item, name) => (item ? `${name} ${item}` : undefined);
|
|
7236
7240
|
const fullAddress = concatFullAddress([
|
|
7237
7241
|
postcode,
|
|
7238
7242
|
region,
|
|
7239
7243
|
place,
|
|
7240
|
-
street
|
|
7241
|
-
house
|
|
7242
|
-
block
|
|
7243
|
-
building
|
|
7244
|
-
apartment
|
|
7244
|
+
getAddressItem(street, 'ул'),
|
|
7245
|
+
getAddressItem(house, 'д'),
|
|
7246
|
+
getAddressItem(block, 'к'),
|
|
7247
|
+
getAddressItem(building, 'стр'),
|
|
7248
|
+
getAddressItem(apartment, 'кв'),
|
|
7245
7249
|
]);
|
|
7246
7250
|
return {
|
|
7247
7251
|
...fields,
|
|
7248
|
-
regionCode: regionCode?.key,
|
|
7252
|
+
regionCode: regionCode?.key ?? regionCode,
|
|
7249
7253
|
fullAddress,
|
|
7250
7254
|
};
|
|
7251
7255
|
};
|
|
@@ -7314,7 +7318,7 @@
|
|
|
7314
7318
|
}
|
|
7315
7319
|
};
|
|
7316
7320
|
const checkEsiaAdditionalDocument = (esiaProfile, isNewMicroservice) => {
|
|
7317
|
-
const { esiaAdditionalDocument } = esiaProfile;
|
|
7321
|
+
const { esiaAdditionalDocument, crshbFileIds } = esiaProfile;
|
|
7318
7322
|
const documents = [
|
|
7319
7323
|
esiaAdditionalDocument?.pdfFilePayout,
|
|
7320
7324
|
esiaAdditionalDocument?.pdfFileWorkbook,
|
|
@@ -7323,6 +7327,9 @@
|
|
|
7323
7327
|
esiaAdditionalDocument?.xmlFileSigPayout,
|
|
7324
7328
|
esiaAdditionalDocument?.xmlFileWorkbook,
|
|
7325
7329
|
];
|
|
7330
|
+
const isDocumentsValid = isNewMicroservice
|
|
7331
|
+
? Boolean(crshbFileIds?.length)
|
|
7332
|
+
: documents.every(Boolean);
|
|
7326
7333
|
const data = [
|
|
7327
7334
|
esiaAdditionalDocument?.inn,
|
|
7328
7335
|
esiaAdditionalDocument?.averageMonthlyIncome?.toString(),
|
|
@@ -7332,7 +7339,7 @@
|
|
|
7332
7339
|
esiaAdditionalDocument?.workLengthLastJob?.toString(),
|
|
7333
7340
|
esiaAdditionalDocument?.jobsNumberInFiveYears?.toString(),
|
|
7334
7341
|
];
|
|
7335
|
-
return data.every(Boolean) &&
|
|
7342
|
+
return data.every(Boolean) && isDocumentsValid;
|
|
7336
7343
|
};
|
|
7337
7344
|
|
|
7338
7345
|
/* eslint-disable camelcase */
|
|
@@ -13130,7 +13137,7 @@
|
|
|
13130
13137
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
13131
13138
|
});
|
|
13132
13139
|
|
|
13133
|
-
const packageVersion = "0.14.
|
|
13140
|
+
const packageVersion = "0.14.981";
|
|
13134
13141
|
|
|
13135
13142
|
exports.Blocks = Blocks;
|
|
13136
13143
|
exports.ContentPage = ContentPage;
|