From 91f8ca76ad989af2606f915289cfcc0ada3fbaf0 Mon Sep 17 00:00:00 2001 From: Yashasvi Bajpai <33063622+yashasvibajpai@users.noreply.github.com> Date: Tue, 22 Oct 2024 10:32:36 +0530 Subject: [PATCH] chore: add network handler file for ga4 v2 in v0 implementation flow (#3822) * chore: add network handler file for ga4 v2 in v0 implementation flow * chore: add tests --- src/v0/destinations/ga4_v2/networkHandler.js | 1 + src/v1/destinations/ga4_v2/networkHandler.ts | 3 --- test/integrations/destinations/ga4_v2/dataDelivery/business.ts | 1 + test/integrations/destinations/ga4_v2/dataDelivery/data.ts | 1 + 4 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 src/v0/destinations/ga4_v2/networkHandler.js delete mode 100644 src/v1/destinations/ga4_v2/networkHandler.ts create mode 100644 test/integrations/destinations/ga4_v2/dataDelivery/business.ts create mode 100644 test/integrations/destinations/ga4_v2/dataDelivery/data.ts diff --git a/src/v0/destinations/ga4_v2/networkHandler.js b/src/v0/destinations/ga4_v2/networkHandler.js new file mode 100644 index 00000000000..3e25b43b38b --- /dev/null +++ b/src/v0/destinations/ga4_v2/networkHandler.js @@ -0,0 +1 @@ +export { networkHandler } from '../ga4/networkHandler'; diff --git a/src/v1/destinations/ga4_v2/networkHandler.ts b/src/v1/destinations/ga4_v2/networkHandler.ts deleted file mode 100644 index aece0411c18..00000000000 --- a/src/v1/destinations/ga4_v2/networkHandler.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { networkHandler } from '../../../v0/destinations/ga4/networkHandler'; - -module.exports = { networkHandler }; diff --git a/test/integrations/destinations/ga4_v2/dataDelivery/business.ts b/test/integrations/destinations/ga4_v2/dataDelivery/business.ts new file mode 100644 index 00000000000..4cfa56f498c --- /dev/null +++ b/test/integrations/destinations/ga4_v2/dataDelivery/business.ts @@ -0,0 +1 @@ +export { testScenariosForV0API, testScenariosForV1API } from '../../ga4/dataDelivery/business'; diff --git a/test/integrations/destinations/ga4_v2/dataDelivery/data.ts b/test/integrations/destinations/ga4_v2/dataDelivery/data.ts new file mode 100644 index 00000000000..1790a67cdca --- /dev/null +++ b/test/integrations/destinations/ga4_v2/dataDelivery/data.ts @@ -0,0 +1 @@ +export { data } from '../../ga4/dataDelivery/data';