From 2c7291cd630de9bb666120d5d831d7f66745f800 Mon Sep 17 00:00:00 2001 From: Yashasvi Bajpai <33063622+yashasvibajpai@users.noreply.github.com> Date: Tue, 3 Sep 2024 09:40:51 +0530 Subject: [PATCH] fix: add configs for new webhook topics and events from pixel app --- src/v1/sources/shopify/config.js | 50 ++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/src/v1/sources/shopify/config.js b/src/v1/sources/shopify/config.js index d500dfdcb9..97a187a133 100644 --- a/src/v1/sources/shopify/config.js +++ b/src/v1/sources/shopify/config.js @@ -36,6 +36,31 @@ const SHOPIFY_TRACK_MAP = { orders_fulfilled: 'Order Fulfilled', orders_paid: 'Order Paid', orders_partially_fullfilled: 'Order Partially Fulfilled', + 'customer.tags_added': 'Customer Tags Added', + 'customer.tags_removed': 'Customer Tags Removed', + 'customer.email_updated': 'Customer Email Updated', + collections_create: 'Collection Created', + collections_update: 'Collection Updated', + collections_delete: 'Collection Deleted', + collection_listings_add: 'Collection Listings Added', + collection_listings_remove: 'Collection Listings Removed', + collection_listings_update: 'Collection Listings Updated', + collection_publications_create: 'Collection Publications Created', + collection_publications_delete: 'Collection Publications Deleted', + collection_publications_update: 'Collection Publications Updated', + discounts_create: 'Discount Created', + discounts_delete: 'Discount Deleted', + discounts_update: 'Discount Updated', + draft_orders_create: 'Draft Order Created', + draft_orders_delete: 'Draft Order Deleted', + draft_orders_update: 'Draft Order Updated', + fulfillment_order_split: 'Fulfillment Order Split', + inventory_items_create: 'Inventory Items Created', + inventory_items_delete: 'Inventory Items Deleted', + inventory_items_update: 'Inventory Items Updated', + inventory_levels_connect: 'Inventory Levels Connected', + inventory_levels_disconnect: 'Inventory Levels Disconnected', + inventory_levels_update: 'Inventory Levels Updated', }; const PIXEL_EVENT_TOPICS = { @@ -281,13 +306,38 @@ const PRODUCT_MAPPING_EXCLUSION_FIELDS = [ * be discarded. */ const SUPPORTED_TRACK_EVENTS = [ + 'customer.tags_added', + 'customer.tags_removed', + 'customer.email_updated', 'checkouts_delete', 'checkouts_update', 'customers_disable', 'customers_enable', + 'collections_create', + 'collections_update', + 'collections_delete', + 'collection_listings_add', + 'collection_listings_remove', + 'collection_listings_update', + 'collection_publications_create', + 'collection_publications_delete', + 'collection_publications_update', + 'discounts_create', + 'discounts_delete', + 'discounts_update', + 'draft_orders_create', + 'draft_orders_delete', + 'draft_orders_update', 'carts_update', 'fulfillments_create', 'fulfillments_update', + 'fulfillment_order_split', + 'inventory_items_create', + 'inventory_items_delete', + 'inventory_items_update', + 'inventory_levels_connect', + 'inventory_levels_disconnect', + 'inventory_levels_update', 'orders_create', 'orders_delete', 'orders_edited',