@redneckz/wildless-cms-uni-blocks 0.14.551 → 0.14.552
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 +5 -4
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/api/LeadServiceAPI.js +4 -3
- package/dist/api/LeadServiceAPI.js.map +1 -1
- package/lib/api/LeadServiceAPI.js +4 -3
- package/lib/api/LeadServiceAPI.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +5 -4
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/api/LeadServiceAPI.js +4 -3
- package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
- package/mobile/lib/api/LeadServiceAPI.js +4 -3
- package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
- package/mobile/src/api/LeadServiceAPI.ts +5 -2
- package/package.json +1 -1
- package/src/api/LeadServiceAPI.ts +5 -2
package/bundle/bundle.umd.js
CHANGED
|
@@ -888,7 +888,7 @@
|
|
|
888
888
|
|
|
889
889
|
function LeadServiceAPI() {
|
|
890
890
|
async function send(body, isIndividualType = false) {
|
|
891
|
-
const { typeForm, region, phone = '', email, birthday, inn, fullName, addressBranch, secondaryPhone = '', bankEmpolee, applicationDate, serviceDirection, ...staticBody } = body;
|
|
891
|
+
const { typeForm, region, phone = '', email, birthday, desiredMeetingDate, inn, fullName, addressBranch, secondaryPhone = '', bankEmpolee, applicationDate, serviceDirection, ...staticBody } = body;
|
|
892
892
|
const isNaturalPerson = isIndividualType && serviceDirection !== 'Юридическое лицо / ИП';
|
|
893
893
|
const url = isNaturalPerson ? '/api/v1/lead' : '/api/v1/sendcorporatelead';
|
|
894
894
|
const submitBody = {
|
|
@@ -896,7 +896,8 @@
|
|
|
896
896
|
...getRegion$1(region, isNaturalPerson),
|
|
897
897
|
...getEmail(email, isNaturalPerson),
|
|
898
898
|
...getPhone(phone),
|
|
899
|
-
...(
|
|
899
|
+
...getFormatDate(desiredMeetingDate, 'desiredMeetingDate'),
|
|
900
|
+
...(isNaturalPerson ? getFormatDate(birthday) : { inn, fullName }),
|
|
900
901
|
...(typeForm === 'FEEDBACK'
|
|
901
902
|
? {}
|
|
902
903
|
: {
|
|
@@ -929,7 +930,7 @@
|
|
|
929
930
|
};
|
|
930
931
|
}
|
|
931
932
|
const getPhone = (phone) => (phone ? { phone: formatPhone(phone) } : {});
|
|
932
|
-
const
|
|
933
|
+
const getFormatDate = (date, key = 'birthday') => date ? { [key]: formatDate(date) } : {};
|
|
933
934
|
const getRegion$1 = (region, isNaturalPerson = true) => ({
|
|
934
935
|
[isNaturalPerson ? 'regionBranch' : 'region']: region,
|
|
935
936
|
});
|
|
@@ -6553,7 +6554,7 @@
|
|
|
6553
6554
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6554
6555
|
});
|
|
6555
6556
|
|
|
6556
|
-
const packageVersion = "0.14.
|
|
6557
|
+
const packageVersion = "0.14.551";
|
|
6557
6558
|
|
|
6558
6559
|
exports.Blocks = Blocks;
|
|
6559
6560
|
exports.ContentPage = ContentPage;
|