@redneckz/wildless-cms-uni-blocks 0.14.1033 → 0.14.1034

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 (42) hide show
  1. package/bundle/bundle.umd.js +5 -5
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +1 -2
  4. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +0 -1
  5. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  6. package/dist/retail/api/getLastTaskStatus.js +4 -1
  7. package/dist/retail/api/getLastTaskStatus.js.map +1 -1
  8. package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +1 -2
  9. package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +1 -2
  10. package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  11. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +0 -1
  12. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  13. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
  14. package/lib/retail/api/getLastTaskStatus.js +4 -1
  15. package/lib/retail/api/getLastTaskStatus.js.map +1 -1
  16. package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +1 -2
  17. package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +1 -2
  18. package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  19. package/mobile/bundle/bundle.umd.js +5 -5
  20. package/mobile/bundle/bundle.umd.min.js +1 -1
  21. package/mobile/bundle/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +1 -2
  22. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +0 -1
  23. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  24. package/mobile/dist/retail/api/getLastTaskStatus.js +4 -1
  25. package/mobile/dist/retail/api/getLastTaskStatus.js.map +1 -1
  26. package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +1 -2
  27. package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +1 -2
  28. package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  29. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +0 -1
  30. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  31. package/mobile/lib/retail/api/getLastTaskStatus.js +4 -1
  32. package/mobile/lib/retail/api/getLastTaskStatus.js.map +1 -1
  33. package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +1 -2
  34. package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +1 -2
  35. package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  36. package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +0 -1
  37. package/mobile/src/retail/api/getLastTaskStatus.ts +6 -5
  38. package/mobile/src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx +1 -3
  39. package/package.json +1 -1
  40. package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +0 -1
  41. package/src/retail/api/getLastTaskStatus.ts +6 -5
  42. package/src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx +1 -3
@@ -6886,7 +6886,9 @@
6886
6886
  };
6887
6887
 
6888
6888
  const getLastTaskStatus = async (body) => {
6889
- const res = await fetchRetailJSON('/user-data/getLastStatus', 'POST', body);
6889
+ const isNewMicroservice = checkNewMicroservice();
6890
+ const endpoint = isNewMicroservice ? '/public-data/getLastStatus' : '/user-data/getLastStatus';
6891
+ const res = await fetchRetailJSON(endpoint, 'POST', body);
6890
6892
  return res?.statusCd === 'DRAFT' ? res?.taskId : null;
6891
6893
  };
6892
6894
 
@@ -7172,11 +7174,10 @@
7172
7174
  }
7173
7175
  };
7174
7176
  return {
7175
- open: ({ phone, profileId, userId, onFail, taskId, participantId }) => open({
7177
+ open: ({ phone, profileId, onFail, taskId, participantId }) => open({
7176
7178
  onSubmit: handleSubmitBkiConsent({
7177
7179
  phone,
7178
7180
  profileId,
7179
- userId,
7180
7181
  onFail,
7181
7182
  taskId,
7182
7183
  participantId,
@@ -7827,7 +7828,6 @@
7827
7828
  try {
7828
7829
  const lastTaskId = await getLastTaskStatus({
7829
7830
  userId,
7830
- profileId: userId,
7831
7831
  programId,
7832
7832
  });
7833
7833
  if (lastTaskId) {
@@ -14620,7 +14620,7 @@
14620
14620
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
14621
14621
  });
14622
14622
 
14623
- const packageVersion = "0.14.1032";
14623
+ const packageVersion = "0.14.1033";
14624
14624
 
14625
14625
  exports.Blocks = Blocks;
14626
14626
  exports.ContentPage = ContentPage;