feeef 0.11.1 → 0.11.3

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
@@ -4692,7 +4692,8 @@ var generatePublicStoreIntegrations = (integrations) => {
4692
4692
  ai,
4693
4693
  security,
4694
4694
  customFields,
4695
- payment
4695
+ payment,
4696
+ connectors
4696
4697
  } = integrations;
4697
4698
  return {
4698
4699
  metaPixel: generatePublicStoreIntegrationMetaPixel(metaPixel) || null,
@@ -4706,7 +4707,27 @@ var generatePublicStoreIntegrations = (integrations) => {
4706
4707
  webhooks: generatePublicStoreIntegrationWebhooks(webhooks) || null,
4707
4708
  security: generatePublicStoreIntegrationSecurity(security) || null,
4708
4709
  customFields: generatePublicStoreIntegrationCustomFields(customFields) || null,
4709
- payment: generatePublicStoreIntegrationPayment(payment) || null
4710
+ payment: generatePublicStoreIntegrationPayment(payment) || null,
4711
+ connectors: generatePublicStoreIntegrationConnectors(connectors) || null
4712
+ };
4713
+ };
4714
+ var generatePublicStoreIntegrationConnectors = (connectors) => {
4715
+ if (!connectors) return null;
4716
+ return {
4717
+ active: connectors.active,
4718
+ metadata: connectors.metadata,
4719
+ connectors: (connectors.connectors || []).map((c) => ({
4720
+ id: c.id,
4721
+ type: c.type,
4722
+ active: c.active,
4723
+ name: c.name,
4724
+ status: c.status,
4725
+ externalId: c.externalId,
4726
+ fieldMapping: c.fieldMapping,
4727
+ syncState: c.syncState,
4728
+ createdAt: c.createdAt,
4729
+ metadata: c.metadata
4730
+ }))
4710
4731
  };
4711
4732
  };
4712
4733
  var generatePublicStoreIntegrationCustomFields = (customFields) => {
@@ -4800,9 +4821,10 @@ var generatePublicStoreIntegrationOrderdz = (orderdz) => {
4800
4821
  };
4801
4822
  var generatePublicStoreIntegrationWebhooks = (webhooks) => {
4802
4823
  if (!webhooks) return null;
4803
- const activeWebhooks = webhooks.webhooks.filter((webhook) => webhook.active);
4824
+ const webhookList = webhooks.webhooks ?? [];
4825
+ const activeWebhooks = webhookList.filter((webhook) => webhook.active);
4804
4826
  return {
4805
- webhookCount: webhooks.webhooks.length,
4827
+ webhookCount: webhookList.length,
4806
4828
  activeWebhookCount: activeWebhooks.length,
4807
4829
  active: webhooks.active,
4808
4830
  webhookUrls: activeWebhooks.map((webhook) => webhook.url)
@@ -5791,6 +5813,7 @@ export {
5791
5813
  generatePublicIntegrationsDataTiktokPixel,
5792
5814
  generatePublicStoreIntegrationAi,
5793
5815
  generatePublicStoreIntegrationClarity,
5816
+ generatePublicStoreIntegrationConnectors,
5794
5817
  generatePublicStoreIntegrationCustomFields,
5795
5818
  generatePublicStoreIntegrationGoogleAnalytics,
5796
5819
  generatePublicStoreIntegrationGoogleSheet,