@redneckz/wildless-cms-uni-blocks 0.14.1047 → 0.14.1049

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 (28) hide show
  1. package/bundle/bundle.umd.js +20 -6
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/dist/retail/api/getCardTypes.js +15 -4
  4. package/dist/retail/api/getCardTypes.js.map +1 -1
  5. package/dist/retail/api/getPaymentSystems.js +6 -1
  6. package/dist/retail/api/getPaymentSystems.js.map +1 -1
  7. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
  8. package/lib/retail/api/getCardTypes.js +15 -4
  9. package/lib/retail/api/getCardTypes.js.map +1 -1
  10. package/lib/retail/api/getPaymentSystems.js +6 -1
  11. package/lib/retail/api/getPaymentSystems.js.map +1 -1
  12. package/mobile/bundle/bundle.umd.js +20 -6
  13. package/mobile/bundle/bundle.umd.min.js +1 -1
  14. package/mobile/dist/retail/api/getCardTypes.js +15 -4
  15. package/mobile/dist/retail/api/getCardTypes.js.map +1 -1
  16. package/mobile/dist/retail/api/getPaymentSystems.js +6 -1
  17. package/mobile/dist/retail/api/getPaymentSystems.js.map +1 -1
  18. package/mobile/lib/retail/api/getCardTypes.js +15 -4
  19. package/mobile/lib/retail/api/getCardTypes.js.map +1 -1
  20. package/mobile/lib/retail/api/getPaymentSystems.js +6 -1
  21. package/mobile/lib/retail/api/getPaymentSystems.js.map +1 -1
  22. package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +7 -0
  23. package/mobile/src/retail/api/getCardTypes.ts +18 -4
  24. package/mobile/src/retail/api/getPaymentSystems.ts +10 -7
  25. package/package.json +1 -1
  26. package/src/components/ApplicationForm/ApplicationForm.example.json +7 -0
  27. package/src/retail/api/getCardTypes.ts +18 -4
  28. package/src/retail/api/getPaymentSystems.ts +10 -7
@@ -5488,10 +5488,20 @@
5488
5488
  const InfoCard = JSX(({ __html, icon = 'InfoCircleIcon', iconVersion = 'black', image }) => (jsxs("div", { className: "flex flex-row items-center w-full min-h-14 bg-main-gray rounded-lg gap-m p-m", children: [jsx("div", { className: "rounded-full bg-white p-xs", children: image ? (jsx(Img, { image: image, className: "block w-max" })) : (jsx(Icon, { name: icon, width: "24", height: "24", iconVersion: iconVersion })) }), jsx("div", { className: "", children: jsx(RichText, { __html: __html }) })] })));
5489
5489
 
5490
5490
  const getCardTypes = async (paymentSystemTypeCd, creditProgramId) => {
5491
- const data = await fetchRetailJSON('/dictionaryFiltered', 'POST', {
5492
- type: 'CARD_TYPE',
5493
- presets: { paymentSystemTypeCd, creditProgramId },
5494
- });
5491
+ const isNewMicroservice = checkNewMicroservice();
5492
+ const endpoint = isNewMicroservice
5493
+ ? '/external/public-data/dictionaryFiltered'
5494
+ : '/dictionaryFiltered';
5495
+ const requestBody = isNewMicroservice
5496
+ ? {
5497
+ paymentSystemTypeCd,
5498
+ dictionaryType: 'CARD_TYPE',
5499
+ }
5500
+ : {
5501
+ type: 'CARD_TYPE',
5502
+ presets: { paymentSystemTypeCd, creditProgramId },
5503
+ };
5504
+ const data = await fetchRetailJSON(endpoint, 'POST', requestBody);
5495
5505
  return Array.isArray(data) ? data : [];
5496
5506
  };
5497
5507
 
@@ -6567,7 +6577,11 @@
6567
6577
  });
6568
6578
 
6569
6579
  const getPaymentSystems = async (creditProgramId) => {
6570
- const data = await fetchRetailJSON('/public-data/creditProgramConditions', 'POST', {
6580
+ const isNewMicroservice = checkNewMicroservice();
6581
+ const endpoint = isNewMicroservice
6582
+ ? '/external/user-data/getPaymentSystem'
6583
+ : '/public-data/creditProgramConditions';
6584
+ const data = await fetchRetailJSON(endpoint, 'POST', {
6571
6585
  creditProgramId,
6572
6586
  });
6573
6587
  return formatData(data?.paymentSystems || []);
@@ -14767,7 +14781,7 @@
14767
14781
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
14768
14782
  });
14769
14783
 
14770
- const packageVersion = "0.14.1046";
14784
+ const packageVersion = "0.14.1048";
14771
14785
 
14772
14786
  exports.Blocks = Blocks;
14773
14787
  exports.ContentPage = ContentPage;