@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.
Files changed (40) hide show
  1. package/bundle/api/LeadServiceAPI.d.ts +2 -1
  2. package/bundle/bundle.umd.js +9 -5
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  5. package/dist/api/LeadServiceAPI.d.ts +2 -1
  6. package/dist/api/LeadServiceAPI.js +3 -3
  7. package/dist/api/LeadServiceAPI.js.map +1 -1
  8. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  9. package/dist/components/ApplicationForm/constants.js +5 -1
  10. package/dist/components/ApplicationForm/constants.js.map +1 -1
  11. package/lib/api/LeadServiceAPI.d.ts +2 -1
  12. package/lib/api/LeadServiceAPI.js +3 -3
  13. package/lib/api/LeadServiceAPI.js.map +1 -1
  14. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  15. package/lib/components/ApplicationForm/constants.js +5 -1
  16. package/lib/components/ApplicationForm/constants.js.map +1 -1
  17. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
  18. package/mobile/bundle/api/LeadServiceAPI.d.ts +2 -1
  19. package/mobile/bundle/bundle.umd.js +9 -5
  20. package/mobile/bundle/bundle.umd.min.js +1 -1
  21. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  22. package/mobile/dist/api/LeadServiceAPI.d.ts +2 -1
  23. package/mobile/dist/api/LeadServiceAPI.js +3 -3
  24. package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
  25. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  26. package/mobile/dist/components/ApplicationForm/constants.js +5 -1
  27. package/mobile/dist/components/ApplicationForm/constants.js.map +1 -1
  28. package/mobile/lib/api/LeadServiceAPI.d.ts +2 -1
  29. package/mobile/lib/api/LeadServiceAPI.js +3 -3
  30. package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
  31. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  32. package/mobile/lib/components/ApplicationForm/constants.js +5 -1
  33. package/mobile/lib/components/ApplicationForm/constants.js.map +1 -1
  34. package/mobile/src/api/LeadServiceAPI.ts +4 -2
  35. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +1 -0
  36. package/mobile/src/components/ApplicationForm/constants.ts +5 -1
  37. package/package.json +1 -1
  38. package/src/api/LeadServiceAPI.ts +4 -2
  39. package/src/components/ApplicationForm/ApplicationFormContent.ts +1 -0
  40. 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 {};
@@ -1803,7 +1803,11 @@
1803
1803
  isNaturalEndpoint: true,
1804
1804
  },
1805
1805
  initcorporatelead: {
1806
- withTypeForm: false,
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}/confirmCorporateLead`, submitBody);
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.999";
14145
+ const packageVersion = "0.14.1000";
14142
14146
 
14143
14147
  exports.Blocks = Blocks;
14144
14148
  exports.ContentPage = ContentPage;