@redneckz/wildless-cms-uni-blocks 0.14.1000 → 0.14.1001
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/LeadServiceAPI.d.ts +2 -1
- package/bundle/bundle.umd.js +9 -5
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/dist/api/LeadServiceAPI.d.ts +2 -1
- package/dist/api/LeadServiceAPI.js +3 -3
- package/dist/api/LeadServiceAPI.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/dist/components/ApplicationForm/constants.js +5 -1
- package/dist/components/ApplicationForm/constants.js.map +1 -1
- package/lib/api/LeadServiceAPI.d.ts +2 -1
- package/lib/api/LeadServiceAPI.js +3 -3
- package/lib/api/LeadServiceAPI.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/lib/components/ApplicationForm/constants.js +5 -1
- package/lib/components/ApplicationForm/constants.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
- package/mobile/bundle/api/LeadServiceAPI.d.ts +2 -1
- package/mobile/bundle/bundle.umd.js +9 -5
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/mobile/dist/api/LeadServiceAPI.d.ts +2 -1
- package/mobile/dist/api/LeadServiceAPI.js +3 -3
- package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/constants.js +5 -1
- package/mobile/dist/components/ApplicationForm/constants.js.map +1 -1
- package/mobile/lib/api/LeadServiceAPI.d.ts +2 -1
- package/mobile/lib/api/LeadServiceAPI.js +3 -3
- package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/constants.js +5 -1
- package/mobile/lib/components/ApplicationForm/constants.js.map +1 -1
- package/mobile/src/api/LeadServiceAPI.ts +4 -2
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +1 -0
- package/mobile/src/components/ApplicationForm/constants.ts +5 -1
- package/package.json +1 -1
- package/src/api/LeadServiceAPI.ts +4 -2
- package/src/components/ApplicationForm/ApplicationFormContent.ts +1 -0
- package/src/components/ApplicationForm/constants.ts +5 -1
|
@@ -20,6 +20,7 @@ export declare type CheckCodeProps = {
|
|
|
20
20
|
code: string;
|
|
21
21
|
body: LeadRequest;
|
|
22
22
|
router: Router;
|
|
23
|
+
endpoint?: EndpointType;
|
|
23
24
|
};
|
|
24
25
|
declare type CheckCodeResponse = {
|
|
25
26
|
errorCode?: string;
|
|
@@ -38,7 +39,7 @@ export declare type sendProps = {
|
|
|
38
39
|
export declare function LeadServiceAPI(): {
|
|
39
40
|
send: ({ body, router, endpoint }: sendProps) => Promise<any>;
|
|
40
41
|
sendCode: ({ phone }: PhoneOnly) => Promise<string | null>;
|
|
41
|
-
checkCode: ({ reqId, code, body, router, }: CheckCodeProps) => Promise<CheckCodeResponse>;
|
|
42
|
+
checkCode: ({ reqId, code, body, router, endpoint, }: CheckCodeProps) => Promise<CheckCodeResponse>;
|
|
42
43
|
sendPhoneCallRequest: (body: LeadRequest, endpoint?: EndpointType) => Promise<any>;
|
|
43
44
|
};
|
|
44
45
|
export {};
|
package/bundle/bundle.umd.js
CHANGED
|
@@ -1803,7 +1803,11 @@
|
|
|
1803
1803
|
isNaturalEndpoint: true,
|
|
1804
1804
|
},
|
|
1805
1805
|
initcorporatelead: {
|
|
1806
|
-
withTypeForm:
|
|
1806
|
+
withTypeForm: true,
|
|
1807
|
+
isNaturalEndpoint: false,
|
|
1808
|
+
},
|
|
1809
|
+
confirmCorporateLead: {
|
|
1810
|
+
withTypeForm: true,
|
|
1807
1811
|
isNaturalEndpoint: false,
|
|
1808
1812
|
},
|
|
1809
1813
|
callback: {
|
|
@@ -1930,14 +1934,14 @@
|
|
|
1930
1934
|
return null;
|
|
1931
1935
|
}
|
|
1932
1936
|
}
|
|
1933
|
-
async function checkCode({ reqId, code, body, router, }) {
|
|
1937
|
+
async function checkCode({ reqId, code, body, router, endpoint = 'confirmCorporateLead', }) {
|
|
1934
1938
|
const submitBody = {
|
|
1935
1939
|
requestId: reqId,
|
|
1936
1940
|
confimationCode: code,
|
|
1937
|
-
leadRequest: getSubmitBody({ body, router }),
|
|
1941
|
+
leadRequest: getSubmitBody({ body, endpoint, router }),
|
|
1938
1942
|
};
|
|
1939
1943
|
try {
|
|
1940
|
-
const response = await LeadServiceFetch(`${API_BASE_URI}
|
|
1944
|
+
const response = await LeadServiceFetch(`${API_BASE_URI}/${endpoint}`, submitBody);
|
|
1941
1945
|
return await response.json();
|
|
1942
1946
|
}
|
|
1943
1947
|
catch (e) {
|
|
@@ -14138,7 +14142,7 @@
|
|
|
14138
14142
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
14139
14143
|
});
|
|
14140
14144
|
|
|
14141
|
-
const packageVersion = "0.14.
|
|
14145
|
+
const packageVersion = "0.14.1000";
|
|
14142
14146
|
|
|
14143
14147
|
exports.Blocks = Blocks;
|
|
14144
14148
|
exports.ContentPage = ContentPage;
|