feeef 0.12.9 → 0.12.11

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/build/index.js CHANGED
@@ -4879,7 +4879,7 @@ var FeeeF = class {
4879
4879
  };
4880
4880
 
4881
4881
  // src/core/entities/store.ts
4882
- var generatePublicStoreIntegrations = (integrations) => {
4882
+ var generatePublicStoreIntegrations = (integrations, configs) => {
4883
4883
  if (!integrations) return null;
4884
4884
  const {
4885
4885
  metaPixel,
@@ -4893,7 +4893,8 @@ var generatePublicStoreIntegrations = (integrations) => {
4893
4893
  security,
4894
4894
  customFields,
4895
4895
  payment,
4896
- connectors
4896
+ connectors,
4897
+ inventory
4897
4898
  } = integrations;
4898
4899
  return {
4899
4900
  metaPixel: generatePublicStoreIntegrationMetaPixel(metaPixel) || null,
@@ -4908,7 +4909,17 @@ var generatePublicStoreIntegrations = (integrations) => {
4908
4909
  security: generatePublicStoreIntegrationSecurity(security) || null,
4909
4910
  customFields: generatePublicStoreIntegrationCustomFields(customFields) || null,
4910
4911
  payment: generatePublicStoreIntegrationPayment(payment) || null,
4911
- connectors: generatePublicStoreIntegrationConnectors(connectors) || null
4912
+ connectors: generatePublicStoreIntegrationConnectors(connectors) || null,
4913
+ inventory: generatePublicStoreIntegrationInventory(inventory, {
4914
+ showUnavailableOnFrontend: configs?.inventory_integration?.show_unavailable_on_frontend === true
4915
+ }) || null
4916
+ };
4917
+ };
4918
+ var generatePublicStoreIntegrationInventory = (inventory, options) => {
4919
+ if (!inventory) return null;
4920
+ return {
4921
+ active: inventory.active === true,
4922
+ showUnavailableOnFrontend: options?.showUnavailableOnFrontend === true
4912
4923
  };
4913
4924
  };
4914
4925
  var generatePublicStoreIntegrationConnectors = (connectors) => {
@@ -6021,6 +6032,7 @@ export {
6021
6032
  generatePublicStoreIntegrationGoogleAnalytics,
6022
6033
  generatePublicStoreIntegrationGoogleSheet,
6023
6034
  generatePublicStoreIntegrationGoogleTags,
6035
+ generatePublicStoreIntegrationInventory,
6024
6036
  generatePublicStoreIntegrationMetaPixel,
6025
6037
  generatePublicStoreIntegrationOrderdz,
6026
6038
  generatePublicStoreIntegrationPayment,