diff --git a/packages/analytics-js-common/.size-limit.js b/packages/analytics-js-common/.size-limit.js index c6168f0bf8..f10b98c3ab 100644 --- a/packages/analytics-js-common/.size-limit.js +++ b/packages/analytics-js-common/.size-limit.js @@ -6,6 +6,6 @@ module.exports = [ { name: 'Common - No bundling', path: 'dist/npm/**/*.js', - limit: '17.2 KiB', + limit: '18.3 KiB', }, ]; diff --git a/packages/analytics-js-common/src/constants/Destinations.ts b/packages/analytics-js-common/src/constants/Destinations.ts new file mode 100644 index 0000000000..e97f1016ce --- /dev/null +++ b/packages/analytics-js-common/src/constants/Destinations.ts @@ -0,0 +1,167 @@ +/* + GENERATED - DO NOT EDIT + This file is generated from the templates/Destinations.ts.template file. + Orginal file: https://github.com/rudderlabs/rudder-integrations-config/blob/develop/generated/Destinations.ts + + NOTE: Containly only constants for device mode destinations + */ +export const ACTIVE_CAMPAIGN_NAME = 'ACTIVE_CAMPAIGN'; +export const ACTIVE_CAMPAIGN_DISPLAY_NAME = 'ActiveCampaign'; +export const ADOBE_ANALYTICS_NAME = 'ADOBE_ANALYTICS'; +export const ADOBE_ANALYTICS_DISPLAY_NAME = 'Adobe Analytics'; +export const ADROLL_NAME = 'ADROLL'; +export const ADROLL_DISPLAY_NAME = 'Adroll'; +export const AM_NAME = 'AM'; +export const AM_DISPLAY_NAME = 'Amplitude'; +export const APPCUES_NAME = 'APPCUES'; +export const APPCUES_DISPLAY_NAME = 'Appcues'; +export const AXEPTIO_NAME = 'AXEPTIO'; +export const AXEPTIO_DISPLAY_NAME = 'Axeptio'; +export const BINGADS_NAME = 'BINGADS'; +export const BINGADS_DISPLAY_NAME = 'Bing Ads'; +export const BRAZE_NAME = 'BRAZE'; +export const BRAZE_DISPLAY_NAME = 'Braze'; +export const BUGSNAG_NAME = 'BUGSNAG'; +export const BUGSNAG_DISPLAY_NAME = 'Bugsnag'; +export const CHARTBEAT_NAME = 'CHARTBEAT'; +export const CHARTBEAT_DISPLAY_NAME = 'Chartbeat'; +export const CLEVERTAP_NAME = 'CLEVERTAP'; +export const CLEVERTAP_DISPLAY_NAME = 'CleverTap'; +export const COMMANDBAR_NAME = 'COMMANDBAR'; +export const COMMANDBAR_DISPLAY_NAME = 'CommandBar'; +export const CONVERTFLOW_NAME = 'CONVERTFLOW'; +export const CONVERTFLOW_DISPLAY_NAME = 'Convertflow'; +export const CRITEO_NAME = 'CRITEO'; +export const CRITEO_DISPLAY_NAME = 'Criteo'; +export const CUSTOMERIO_NAME = 'CUSTOMERIO'; +export const CUSTOMERIO_DISPLAY_NAME = 'Customer IO'; +export const DCM_FLOODLIGHT_NAME = 'DCM_FLOODLIGHT'; +export const DCM_FLOODLIGHT_DISPLAY_NAME = 'DCM Floodlight'; +export const DRIP_NAME = 'DRIP'; +export const DRIP_DISPLAY_NAME = 'Drip'; +export const ENGAGE_NAME = 'ENGAGE'; +export const ENGAGE_DISPLAY_NAME = 'Engage'; +export const FACEBOOK_PIXEL_NAME = 'FACEBOOK_PIXEL'; +export const FACEBOOK_PIXEL_DISPLAY_NAME = 'Facebook Pixel'; +export const FULLSTORY_NAME = 'FULLSTORY'; +export const FULLSTORY_DISPLAY_NAME = 'Fullstory'; +export const GA_NAME = 'GA'; +export const GA_DISPLAY_NAME = 'Google Analytics'; +export const GA360_NAME = 'GA360'; +export const GA360_DISPLAY_NAME = 'Google Analytics 360'; +export const GA4_NAME = 'GA4'; +export const GA4_DISPLAY_NAME = 'Google Analytics 4 (GA4)'; +export const GA4_V2_NAME = 'GA4_V2'; +export const GA4_V2_DISPLAY_NAME = 'Google Analytics 4 (GA4) V2'; +export const GAINSIGHT_PX_NAME = 'GAINSIGHT_PX'; +export const GAINSIGHT_PX_DISPLAY_NAME = 'Gainsight PX'; +export const GOOGLE_OPTIMIZE_NAME = 'GOOGLE_OPTIMIZE'; +export const GOOGLE_OPTIMIZE_DISPLAY_NAME = 'Google Optimize'; +export const GOOGLEADS_NAME = 'GOOGLEADS'; +export const GOOGLEADS_DISPLAY_NAME = 'Google Ads'; +export const GTM_NAME = 'GTM'; +export const GTM_DISPLAY_NAME = 'Google Tag Manager'; +export const HEAP_NAME = 'HEAP'; +export const HEAP_DISPLAY_NAME = 'Heap.io'; +export const HOTJAR_NAME = 'HOTJAR'; +export const HOTJAR_DISPLAY_NAME = 'Hotjar'; +export const HS_NAME = 'HS'; +export const HS_DISPLAY_NAME = 'HubSpot'; +export const INTERCOM_NAME = 'INTERCOM'; +export const INTERCOM_DISPLAY_NAME = 'Intercom'; +export const ITERABLE_NAME = 'ITERABLE'; +export const ITERABLE_DISPLAY_NAME = 'Iterable'; +export const JUNE_NAME = 'JUNE'; +export const JUNE_DISPLAY_NAME = 'JUNE'; +export const KEEN_NAME = 'KEEN'; +export const KEEN_DISPLAY_NAME = 'Keen'; +export const KISSMETRICS_NAME = 'KISSMETRICS'; +export const KISSMETRICS_DISPLAY_NAME = 'Kiss Metrics'; +export const KLAVIYO_NAME = 'KLAVIYO'; +export const KLAVIYO_DISPLAY_NAME = 'Klaviyo'; +export const LAUNCHDARKLY_NAME = 'LAUNCHDARKLY'; +export const LAUNCHDARKLY_DISPLAY_NAME = 'LaunchDarkly'; +export const LEMNISK_NAME = 'LEMNISK'; +export const LEMNISK_DISPLAY_NAME = 'Lemnisk Marketing Automation'; +export const LINKEDIN_INSIGHT_TAG_NAME = 'LINKEDIN_INSIGHT_TAG'; +export const LINKEDIN_INSIGHT_TAG_DISPLAY_NAME = 'Linkedin Insight Tag'; +export const LIVECHAT_NAME = 'LIVECHAT'; +export const LIVECHAT_DISPLAY_NAME = 'livechat'; +export const LOTAME_NAME = 'LOTAME'; +export const LOTAME_DISPLAY_NAME = 'Lotame'; +export const LYTICS_NAME = 'LYTICS'; +export const LYTICS_DISPLAY_NAME = 'Lytics'; +export const MATOMO_NAME = 'MATOMO'; +export const MATOMO_DISPLAY_NAME = 'Matomo'; +export const MICROSOFT_CLARITY_NAME = 'MICROSOFT_CLARITY'; +export const MICROSOFT_CLARITY_DISPLAY_NAME = 'Microsoft Clarity'; +export const MOENGAGE_NAME = 'MOENGAGE'; +export const MOENGAGE_DISPLAY_NAME = 'MoEngage'; +export const MOUSEFLOW_NAME = 'MOUSEFLOW'; +export const MOUSEFLOW_DISPLAY_NAME = 'Mouseflow'; +export const MP_NAME = 'MP'; +export const MP_DISPLAY_NAME = 'Mixpanel'; +export const NINETAILED_NAME = 'NINETAILED'; +export const NINETAILED_DISPLAY_NAME = 'Ninetailed'; +export const OLARK_NAME = 'OLARK'; +export const OLARK_DISPLAY_NAME = 'Olark'; +export const OPTIMIZELY_NAME = 'OPTIMIZELY'; +export const OPTIMIZELY_DISPLAY_NAME = 'Optimizely Web'; +export const PENDO_NAME = 'PENDO'; +export const PENDO_DISPLAY_NAME = 'Pendo'; +export const PINTEREST_TAG_NAME = 'PINTEREST_TAG'; +export const PINTEREST_TAG_DISPLAY_NAME = 'Pinterest Tag'; +export const PODSIGHTS_NAME = 'PODSIGHTS'; +export const PODSIGHTS_DISPLAY_NAME = 'Podsights'; +export const POST_AFFILIATE_PRO_NAME = 'POST_AFFILIATE_PRO'; +export const POST_AFFILIATE_PRO_DISPLAY_NAME = 'Post Affiliate Pro'; +export const POSTHOG_NAME = 'POSTHOG'; +export const POSTHOG_DISPLAY_NAME = 'PostHog'; +export const PROFITWELL_NAME = 'PROFITWELL'; +export const PROFITWELL_DISPLAY_NAME = 'ProfitWell'; +export const QUALAROO_NAME = 'QUALAROO'; +export const QUALAROO_DISPLAY_NAME = 'Qualaroo'; +export const QUALTRICS_NAME = 'QUALTRICS'; +export const QUALTRICS_DISPLAY_NAME = 'Qualtrics'; +export const QUANTUMMETRIC_NAME = 'QUANTUMMETRIC'; +export const QUANTUMMETRIC_DISPLAY_NAME = 'Quantum Metric'; +export const QUORA_PIXEL_NAME = 'QUORA_PIXEL'; +export const QUORA_PIXEL_DISPLAY_NAME = 'Quora Pixel'; +export const REDDIT_PIXEL_NAME = 'REDDIT_PIXEL'; +export const REDDIT_PIXEL_DISPLAY_NAME = 'Reddit Pixel'; +export const REFINER_NAME = 'REFINER'; +export const REFINER_DISPLAY_NAME = 'Refiner'; +export const ROCKERBOX_NAME = 'ROCKERBOX'; +export const ROCKERBOX_DISPLAY_NAME = 'Rockerbox'; +export const ROLLBAR_NAME = 'ROLLBAR'; +export const ROLLBAR_DISPLAY_NAME = 'rollbar'; +export const SATISMETER_NAME = 'SATISMETER'; +export const SATISMETER_DISPLAY_NAME = 'SatisMeter'; +export const SENDINBLUE_NAME = 'SENDINBLUE'; +export const SENDINBLUE_DISPLAY_NAME = 'Sendinblue'; +export const SENTRY_NAME = 'SENTRY'; +export const SENTRY_DISPLAY_NAME = 'Sentry'; +export const SHYNET_NAME = 'SHYNET'; +export const SHYNET_DISPLAY_NAME = 'Shynet'; +export const SNAP_PIXEL_NAME = 'SNAP_PIXEL'; +export const SNAP_PIXEL_DISPLAY_NAME = 'Snap Pixel'; +export const SNAPENGAGE_NAME = 'SNAPENGAGE'; +export const SNAPENGAGE_DISPLAY_NAME = 'SnapEngage'; +export const SPOTIFYPIXEL_NAME = 'SPOTIFYPIXEL'; +export const SPOTIFYPIXEL_DISPLAY_NAME = 'Spotify Pixel'; +export const SPRIG_NAME = 'SPRIG'; +export const SPRIG_DISPLAY_NAME = 'Sprig'; +export const TIKTOK_ADS_NAME = 'TIKTOK_ADS'; +export const TIKTOK_ADS_DISPLAY_NAME = 'TikTok Ads'; +export const TVSQUARED_NAME = 'TVSQUARED'; +export const TVSQUARED_DISPLAY_NAME = 'TVSquared'; +export const VERO_NAME = 'VERO'; +export const VERO_DISPLAY_NAME = 'Vero'; +export const VWO_NAME = 'VWO'; +export const VWO_DISPLAY_NAME = 'VWO'; +export const WOOPRA_NAME = 'WOOPRA'; +export const WOOPRA_DISPLAY_NAME = 'WOOPRA'; +export const XPIXEL_NAME = 'XPIXEL'; +export const XPIXEL_DISPLAY_NAME = 'XPixel'; +export const YANDEX_METRICA_NAME = 'YANDEX_METRICA'; +export const YANDEX_METRICA_DISPLAY_NAME = 'Yandex.Metrica'; diff --git a/packages/analytics-js-common/src/constants/integrations/ActiveCampaign/constants.ts b/packages/analytics-js-common/src/constants/integrations/ActiveCampaign/constants.ts index 438bbbe095..77efdd11c7 100644 --- a/packages/analytics-js-common/src/constants/integrations/ActiveCampaign/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/ActiveCampaign/constants.ts @@ -1,6 +1,9 @@ +import { + ACTIVE_CAMPAIGN_NAME as NAME, + ACTIVE_CAMPAIGN_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; + const DIR_NAME = 'ActiveCampaign'; -const NAME = 'ACTIVE_CAMPAIGN'; -const DISPLAY_NAME = 'ActiveCampaign'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -15,4 +18,9 @@ const CNameMapping = { active_campaign: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { + ACTIVE_CAMPAIGN_NAME as NAME, + ACTIVE_CAMPAIGN_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/AdobeAnalytics/constants.ts b/packages/analytics-js-common/src/constants/integrations/AdobeAnalytics/constants.ts index 0cf4299dc6..497447d070 100644 --- a/packages/analytics-js-common/src/constants/integrations/AdobeAnalytics/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/AdobeAnalytics/constants.ts @@ -1,6 +1,9 @@ +import { + ADOBE_ANALYTICS_NAME as NAME, + ADOBE_ANALYTICS_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; + const DIR_NAME = 'AdobeAnalytics'; -const NAME = 'ADOBE_ANALYTICS'; -const DISPLAY_NAME = 'Adobe Analytics'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -15,4 +18,9 @@ const CNameMapping = { 'adobe Analytics': NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { + ADOBE_ANALYTICS_NAME as NAME, + ADOBE_ANALYTICS_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Adroll/constants.ts b/packages/analytics-js-common/src/constants/integrations/Adroll/constants.ts index ad49a3c4a4..183b32b606 100644 --- a/packages/analytics-js-common/src/constants/integrations/Adroll/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Adroll/constants.ts @@ -1,6 +1,6 @@ +import { ADROLL_NAME as NAME, ADROLL_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Adroll'; -const NAME = 'ADROLL'; -const DISPLAY_NAME = 'Adroll'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -11,4 +11,6 @@ const CNameMapping = { adroll: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { ADROLL_NAME as NAME, ADROLL_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Amplitude/constants.ts b/packages/analytics-js-common/src/constants/integrations/Amplitude/constants.ts index c9ce02e28d..2f18cfe946 100644 --- a/packages/analytics-js-common/src/constants/integrations/Amplitude/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Amplitude/constants.ts @@ -1,6 +1,6 @@ +import { AM_NAME as NAME, AM_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Amplitude'; -const NAME = 'AM'; -const DISPLAY_NAME = 'Amplitude'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -10,4 +10,6 @@ const CNameMapping = { am: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { AM_NAME as NAME, AM_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Appcues/constants.ts b/packages/analytics-js-common/src/constants/integrations/Appcues/constants.ts index 7af9de4c3a..fedc923169 100644 --- a/packages/analytics-js-common/src/constants/integrations/Appcues/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Appcues/constants.ts @@ -1,6 +1,6 @@ +import { APPCUES_NAME as NAME, APPCUES_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Appcues'; -const NAME = 'APPCUES'; -const DISPLAY_NAME = 'Appcues'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -10,4 +10,6 @@ const CNameMapping = { appcues: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { APPCUES_NAME as NAME, APPCUES_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Axeptio/constants.ts b/packages/analytics-js-common/src/constants/integrations/Axeptio/constants.ts index 22f7804b3a..fd8709415a 100644 --- a/packages/analytics-js-common/src/constants/integrations/Axeptio/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Axeptio/constants.ts @@ -1,6 +1,6 @@ +import { AXEPTIO_NAME as NAME, AXEPTIO_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Axeptio'; -const NAME = 'AXEPTIO'; -const DISPLAY_NAME = 'Axeptio'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -9,4 +9,6 @@ const CNameMapping = { axeptio: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { AXEPTIO_NAME as NAME, AXEPTIO_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/BingAds/constants.ts b/packages/analytics-js-common/src/constants/integrations/BingAds/constants.ts index 41ff3dcf23..fda2ab98bd 100644 --- a/packages/analytics-js-common/src/constants/integrations/BingAds/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/BingAds/constants.ts @@ -1,6 +1,6 @@ +import { BINGADS_NAME as NAME, BINGADS_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'BingAds'; -const NAME = 'BINGADS'; -const DISPLAY_NAME = 'Bing Ads'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -13,4 +13,6 @@ const CNameMapping = { 'bing ads': NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { BINGADS_NAME as NAME, BINGADS_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Braze/constants.ts b/packages/analytics-js-common/src/constants/integrations/Braze/constants.ts index 762652dd5e..3b12172ed5 100644 --- a/packages/analytics-js-common/src/constants/integrations/Braze/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Braze/constants.ts @@ -1,6 +1,6 @@ +import { BRAZE_NAME as NAME, BRAZE_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Braze'; -const NAME = 'BRAZE'; -const DISPLAY_NAME = 'Braze'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -12,11 +12,6 @@ const CNameMapping = { const BrazeOperationString = 'BrazeSdkMetadata DeviceProperties Card Card.prototype.dismissCard Card.prototype.removeAllSubscriptions Card.prototype.removeSubscription Card.prototype.subscribeToClickedEvent Card.prototype.subscribeToDismissedEvent Card.fromContentCardsJson Banner CaptionedImage ClassicCard ControlCard ContentCards ContentCards.prototype.getUnviewedCardCount Feed Feed.prototype.getUnreadCardCount ControlMessage InAppMessage InAppMessage.SlideFrom InAppMessage.ClickAction InAppMessage.DismissType InAppMessage.OpenTarget InAppMessage.ImageStyle InAppMessage.Orientation InAppMessage.TextAlignment InAppMessage.CropType InAppMessage.prototype.closeMessage InAppMessage.prototype.removeAllSubscriptions InAppMessage.prototype.removeSubscription InAppMessage.prototype.subscribeToClickedEvent InAppMessage.prototype.subscribeToDismissedEvent InAppMessage.fromJson FullScreenMessage ModalMessage HtmlMessage SlideUpMessage User User.Genders User.NotificationSubscriptionTypes User.prototype.addAlias User.prototype.addToCustomAttributeArray User.prototype.addToSubscriptionGroup User.prototype.getUserId User.prototype.incrementCustomUserAttribute User.prototype.removeFromCustomAttributeArray User.prototype.removeFromSubscriptionGroup User.prototype.setCountry User.prototype.setCustomLocationAttribute User.prototype.setCustomUserAttribute User.prototype.setDateOfBirth User.prototype.setEmail User.prototype.setEmailNotificationSubscriptionType User.prototype.setFirstName User.prototype.setGender User.prototype.setHomeCity User.prototype.setLanguage User.prototype.setLastKnownLocation User.prototype.setLastName User.prototype.setPhoneNumber User.prototype.setPushNotificationSubscriptionType InAppMessageButton InAppMessageButton.prototype.removeAllSubscriptions InAppMessageButton.prototype.removeSubscription InAppMessageButton.prototype.subscribeToClickedEvent automaticallyShowInAppMessages destroyFeed hideContentCards showContentCards showFeed showInAppMessage toggleContentCards toggleFeed changeUser destroy getDeviceId initialize isPushBlocked isPushPermissionGranted isPushSupported logCardClick logCardDismissal logCardImpressions logContentCardImpressions logContentCardsDisplayed logCustomEvent logFeedDisplayed logInAppMessageButtonClick logInAppMessageClick logInAppMessageHtmlClick logInAppMessageImpression logPurchase openSession requestPushPermission removeAllSubscriptions removeSubscription requestContentCardsRefresh requestFeedRefresh requestImmediateDataFlush enableSDK isDisabled setLogger setSdkAuthenticationSignature addSdkMetadata disableSDK subscribeToContentCardsUpdates subscribeToFeedUpdates subscribeToInAppMessage subscribeToSdkAuthenticationFailures toggleLogging unregisterPush wipeData handleBrazeAction'; -export { - NAME, - CNameMapping, - BrazeOperationString, - DISPLAY_NAME_TO_DIR_NAME_MAP, - DISPLAY_NAME, - DIR_NAME, -}; +export { CNameMapping, BrazeOperationString, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { BRAZE_NAME as NAME, BRAZE_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Bugsnag/constants.ts b/packages/analytics-js-common/src/constants/integrations/Bugsnag/constants.ts index 1a7fbf6565..8ac234e836 100644 --- a/packages/analytics-js-common/src/constants/integrations/Bugsnag/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Bugsnag/constants.ts @@ -1,6 +1,6 @@ +import { BUGSNAG_NAME as NAME, BUGSNAG_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Bugsnag'; -const NAME = 'BUGSNAG'; -const DISPLAY_NAME = 'Bugsnag'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -9,4 +9,6 @@ const CNameMapping = { Bugsnag: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { BUGSNAG_NAME as NAME, BUGSNAG_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Chartbeat/constants.ts b/packages/analytics-js-common/src/constants/integrations/Chartbeat/constants.ts index 8b60e2132d..0b0d53dcaf 100644 --- a/packages/analytics-js-common/src/constants/integrations/Chartbeat/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Chartbeat/constants.ts @@ -1,6 +1,6 @@ +import { CHARTBEAT_NAME as NAME, CHARTBEAT_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Chartbeat'; -const NAME = 'CHARTBEAT'; -const DISPLAY_NAME = 'Chartbeat'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -11,4 +11,6 @@ const CNameMapping = { 'chart beat': NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { CHARTBEAT_NAME as NAME, CHARTBEAT_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Clevertap/constants.ts b/packages/analytics-js-common/src/constants/integrations/Clevertap/constants.ts index 5b4640e68e..4a2eda89f3 100644 --- a/packages/analytics-js-common/src/constants/integrations/Clevertap/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Clevertap/constants.ts @@ -1,6 +1,6 @@ +import { CLEVERTAP_NAME as NAME, CLEVERTAP_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Clevertap'; -const NAME = 'CLEVERTAP'; -const DISPLAY_NAME = 'CleverTap'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -9,4 +9,6 @@ const CNameMapping = { clevertap: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { CLEVERTAP_NAME as NAME, CLEVERTAP_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/CommandBar/constants.ts b/packages/analytics-js-common/src/constants/integrations/CommandBar/constants.ts index a2496c5188..56046be98e 100644 --- a/packages/analytics-js-common/src/constants/integrations/CommandBar/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/CommandBar/constants.ts @@ -1,21 +1,22 @@ +import { + COMMANDBAR_NAME as NAME, + COMMANDBAR_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; + const DIR_NAME = 'CommandBar'; -const NAME = 'COMMANDBAR'; -const DISPLAY_NAME = 'CommandBar'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { [NAME]: NAME, 'Command Bar': NAME, - 'Commandbar': NAME, + Commandbar: NAME, COMMAND_BAR: NAME, commandbar: NAME, }; -export { - NAME, - CNameMapping, - DISPLAY_NAME_TO_DIR_NAME_MAP, - DISPLAY_NAME, - DIR_NAME, -}; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; +export { + COMMANDBAR_NAME as NAME, + COMMANDBAR_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/ConvertFlow/constants.ts b/packages/analytics-js-common/src/constants/integrations/ConvertFlow/constants.ts index ec137f6400..18952833de 100644 --- a/packages/analytics-js-common/src/constants/integrations/ConvertFlow/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/ConvertFlow/constants.ts @@ -1,6 +1,9 @@ +import { + CONVERTFLOW_NAME as NAME, + CONVERTFLOW_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; + const DIR_NAME = 'ConvertFlow'; -const NAME = 'CONVERTFLOW'; -const DISPLAY_NAME = 'Convertflow'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -16,4 +19,9 @@ const CNameMapping = { 'CONVERT FLOW': NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { + CONVERTFLOW_NAME as NAME, + CONVERTFLOW_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Criteo/constants.ts b/packages/analytics-js-common/src/constants/integrations/Criteo/constants.ts index f1aebf5fb7..fccab372af 100644 --- a/packages/analytics-js-common/src/constants/integrations/Criteo/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Criteo/constants.ts @@ -1,6 +1,6 @@ +import { CRITEO_NAME as NAME, CRITEO_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Criteo'; -const NAME = 'CRITEO'; -const DISPLAY_NAME = 'Criteo'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; @@ -18,11 +18,6 @@ const supportedEvents = [ 'product added', ]; -export { - NAME, - CNameMapping, - supportedEvents, - DISPLAY_NAME_TO_DIR_NAME_MAP, - DISPLAY_NAME, - DIR_NAME, -}; +export { CNameMapping, supportedEvents, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { CRITEO_NAME as NAME, CRITEO_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/CustomerIO/constants.ts b/packages/analytics-js-common/src/constants/integrations/CustomerIO/constants.ts index f628ca7fb3..b1d8d0312b 100644 --- a/packages/analytics-js-common/src/constants/integrations/CustomerIO/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/CustomerIO/constants.ts @@ -1,6 +1,9 @@ +import { + CUSTOMERIO_NAME as NAME, + CUSTOMERIO_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; + const DIR_NAME = 'CustomerIO'; -const NAME = 'CUSTOMERIO'; -const DISPLAY_NAME = 'Customer IO'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -11,4 +14,9 @@ const CNameMapping = { 'customer.io': NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { + CUSTOMERIO_NAME as NAME, + CUSTOMERIO_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/DCMFloodlight/constants.ts b/packages/analytics-js-common/src/constants/integrations/DCMFloodlight/constants.ts index eace6d8264..279d18513b 100644 --- a/packages/analytics-js-common/src/constants/integrations/DCMFloodlight/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/DCMFloodlight/constants.ts @@ -1,6 +1,9 @@ +import { + DCM_FLOODLIGHT_NAME as NAME, + DCM_FLOODLIGHT_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; + const DIR_NAME = 'DCMFloodlight'; -const NAME = 'DCM_FLOODLIGHT'; -const DISPLAY_NAME = 'DCM Floodlight'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -16,4 +19,9 @@ const CNameMapping = { }; const GTAG = 'globalSiteTag'; -export { NAME, CNameMapping, GTAG, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, GTAG, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { + DCM_FLOODLIGHT_NAME as NAME, + DCM_FLOODLIGHT_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Drip/constants.ts b/packages/analytics-js-common/src/constants/integrations/Drip/constants.ts index cb92ebf220..b07c6329b6 100644 --- a/packages/analytics-js-common/src/constants/integrations/Drip/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Drip/constants.ts @@ -1,6 +1,6 @@ +import { DRIP_NAME as NAME, DRIP_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Drip'; -const NAME = 'DRIP'; -const DISPLAY_NAME = 'Drip'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -9,4 +9,6 @@ const CNameMapping = { drip: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { DRIP_NAME as NAME, DRIP_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Engage/constants.ts b/packages/analytics-js-common/src/constants/integrations/Engage/constants.ts index 86d333b10d..71b1a8a382 100644 --- a/packages/analytics-js-common/src/constants/integrations/Engage/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Engage/constants.ts @@ -1,6 +1,6 @@ +import { ENGAGE_NAME as NAME, ENGAGE_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Engage'; -const NAME = 'ENGAGE'; -const DISPLAY_NAME = 'Engage'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -17,11 +17,6 @@ const identifyExcludeFields = [ 'last_name', 'phone', ]; -export { - NAME, - CNameMapping, - identifyExcludeFields, - DISPLAY_NAME_TO_DIR_NAME_MAP, - DISPLAY_NAME, - DIR_NAME, -}; +export { CNameMapping, identifyExcludeFields, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { ENGAGE_NAME as NAME, ENGAGE_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/FacebookPixel/constants.ts b/packages/analytics-js-common/src/constants/integrations/FacebookPixel/constants.ts index 19823af66f..1a192d2bed 100644 --- a/packages/analytics-js-common/src/constants/integrations/FacebookPixel/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/FacebookPixel/constants.ts @@ -1,6 +1,9 @@ +import { + FACEBOOK_PIXEL_NAME as NAME, + FACEBOOK_PIXEL_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; + const DIR_NAME = 'FacebookPixel'; -const NAME = 'FACEBOOK_PIXEL'; -const DISPLAY_NAME = 'Facebook Pixel'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -78,12 +81,9 @@ const reserveTraits = [ 'country', ]; +export { traitsMapper, CNameMapping, reserveTraits, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + export { - traitsMapper, - CNameMapping, - NAME, - reserveTraits, - DISPLAY_NAME_TO_DIR_NAME_MAP, - DISPLAY_NAME, - DIR_NAME, -}; + FACEBOOK_PIXEL_NAME as NAME, + FACEBOOK_PIXEL_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Fullstory/constants.ts b/packages/analytics-js-common/src/constants/integrations/Fullstory/constants.ts index 0145cece34..8b1edd9b62 100644 --- a/packages/analytics-js-common/src/constants/integrations/Fullstory/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Fullstory/constants.ts @@ -1,6 +1,6 @@ +import { FULLSTORY_NAME as NAME, FULLSTORY_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Fullstory'; -const NAME = 'FULLSTORY'; -const DISPLAY_NAME = 'Fullstory'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -14,4 +14,6 @@ const CNameMapping = { fullstory: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { FULLSTORY_NAME as NAME, FULLSTORY_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/GA/constants.ts b/packages/analytics-js-common/src/constants/integrations/GA/constants.ts index c4619bdf8f..6e413f683b 100644 --- a/packages/analytics-js-common/src/constants/integrations/GA/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/GA/constants.ts @@ -1,6 +1,6 @@ +import { GA_NAME as NAME, GA_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'GA'; -const NAME = 'GA'; -const DISPLAY_NAME = 'Google Analytics'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -11,4 +11,6 @@ const CNameMapping = { 'google analytics': NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { GA_NAME as NAME, GA_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/GA360/constants.ts b/packages/analytics-js-common/src/constants/integrations/GA360/constants.ts index d38ea6a506..d372a7a6da 100644 --- a/packages/analytics-js-common/src/constants/integrations/GA360/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/GA360/constants.ts @@ -1,6 +1,6 @@ +import { GA360_NAME as NAME, GA360_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'GA360'; -const NAME = 'GA360'; -const DISPLAY_NAME = 'Google Analytics 360'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -15,4 +15,6 @@ const CNameMapping = { 'GA 360': NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { GA360_NAME as NAME, GA360_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/GA4/constants.ts b/packages/analytics-js-common/src/constants/integrations/GA4/constants.ts index bf66b9f88b..bebcb5da9b 100644 --- a/packages/analytics-js-common/src/constants/integrations/GA4/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/GA4/constants.ts @@ -1,6 +1,6 @@ +import { GA4_NAME as NAME, GA4_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'GA4'; -const NAME = 'GA4'; -const DISPLAY_NAME = 'Google Analytics 4 (GA4)'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -16,4 +16,6 @@ const CNameMapping = { GoogleAnalytics4: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { GA4_NAME as NAME, GA4_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/GA4_V2/constants.ts b/packages/analytics-js-common/src/constants/integrations/GA4_V2/constants.ts index 70cc3abd00..3f38c8a9d0 100644 --- a/packages/analytics-js-common/src/constants/integrations/GA4_V2/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/GA4_V2/constants.ts @@ -1,6 +1,6 @@ +import { GA4_V2_NAME as NAME, GA4_V2_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'GA4_V2'; -const NAME = 'GA4_V2'; -const DISPLAY_NAME = 'Google Analytics 4 (GA4) V2'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -16,4 +16,6 @@ const CNameMapping = { GoogleAnalytics4V2: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { GA4_V2_NAME as NAME, GA4_V2_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Gainsight_PX/constants.ts b/packages/analytics-js-common/src/constants/integrations/Gainsight_PX/constants.ts index 53c4e4b2dc..1af481ad82 100644 --- a/packages/analytics-js-common/src/constants/integrations/Gainsight_PX/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Gainsight_PX/constants.ts @@ -1,6 +1,9 @@ +import { + GAINSIGHT_PX_NAME as NAME, + GAINSIGHT_PX_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; + const DIR_NAME = 'Gainsight_PX'; -const NAME = 'GAINSIGHT_PX'; -const DISPLAY_NAME = 'Gainsight PX'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -8,4 +11,9 @@ const CNameMapping = { Gainsight_PX: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { + GAINSIGHT_PX_NAME as NAME, + GAINSIGHT_PX_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/GoogleAds/constants.ts b/packages/analytics-js-common/src/constants/integrations/GoogleAds/constants.ts index d9405f8c31..30289fb358 100644 --- a/packages/analytics-js-common/src/constants/integrations/GoogleAds/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/GoogleAds/constants.ts @@ -1,6 +1,6 @@ +import { GOOGLEADS_NAME as NAME, GOOGLEADS_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'GoogleAds'; -const NAME = 'GOOGLEADS'; -const DISPLAY_NAME = 'Google Ads'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -12,4 +12,6 @@ const CNameMapping = { googleads: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { GOOGLEADS_NAME as NAME, GOOGLEADS_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/GoogleOptimize/constants.ts b/packages/analytics-js-common/src/constants/integrations/GoogleOptimize/constants.ts index db2d4ebf42..cdf645795a 100644 --- a/packages/analytics-js-common/src/constants/integrations/GoogleOptimize/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/GoogleOptimize/constants.ts @@ -1,6 +1,9 @@ +import { + GOOGLE_OPTIMIZE_NAME as NAME, + GOOGLE_OPTIMIZE_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; + const DIR_NAME = 'GoogleOptimize'; -const NAME = 'GOOGLE_OPTIMIZE'; -const DISPLAY_NAME = 'Google Optimize'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -14,4 +17,9 @@ const CNameMapping = { 'GOOGLE OPTIMIZE': NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { + GOOGLE_OPTIMIZE_NAME as NAME, + GOOGLE_OPTIMIZE_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/GoogleTagManager/constants.ts b/packages/analytics-js-common/src/constants/integrations/GoogleTagManager/constants.ts index 14eec708b3..959f85fea4 100644 --- a/packages/analytics-js-common/src/constants/integrations/GoogleTagManager/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/GoogleTagManager/constants.ts @@ -1,6 +1,6 @@ +import { GTM_NAME as NAME, GTM_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'GoogleTagManager'; -const NAME = 'GTM'; -const DISPLAY_NAME = 'Google Tag Manager'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -11,4 +11,6 @@ const CNameMapping = { googletagmanager: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { GTM_NAME as NAME, GTM_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Heap/constants.ts b/packages/analytics-js-common/src/constants/integrations/Heap/constants.ts index 6f9ca4e1aa..72e4452511 100644 --- a/packages/analytics-js-common/src/constants/integrations/Heap/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Heap/constants.ts @@ -1,6 +1,6 @@ +import { HEAP_NAME as NAME, HEAP_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Heap'; -const NAME = 'HEAP'; -const DISPLAY_NAME = 'Heap.io'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -10,4 +10,6 @@ const CNameMapping = { 'Heap.io': NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { HEAP_NAME as NAME, HEAP_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Hotjar/constants.ts b/packages/analytics-js-common/src/constants/integrations/Hotjar/constants.ts index 4ca34163db..23afa941f2 100644 --- a/packages/analytics-js-common/src/constants/integrations/Hotjar/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Hotjar/constants.ts @@ -1,6 +1,6 @@ +import { HOTJAR_NAME as NAME, HOTJAR_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Hotjar'; -const NAME = 'HOTJAR'; -const DISPLAY_NAME = 'Hotjar'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -11,4 +11,6 @@ const CNameMapping = { 'hot jar': NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { HOTJAR_NAME as NAME, HOTJAR_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/HubSpot/constants.ts b/packages/analytics-js-common/src/constants/integrations/HubSpot/constants.ts index 2c764e92b8..00c361deea 100644 --- a/packages/analytics-js-common/src/constants/integrations/HubSpot/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/HubSpot/constants.ts @@ -1,6 +1,6 @@ +import { HS_NAME as NAME, HS_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'HubSpot'; -const NAME = 'HS'; -const DISPLAY_NAME = 'HubSpot'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -12,4 +12,6 @@ const CNameMapping = { 'Hub spot': NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { HS_NAME as NAME, HS_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/INTERCOM/constants.ts b/packages/analytics-js-common/src/constants/integrations/INTERCOM/constants.ts index 120ef5bb35..d4a57da184 100644 --- a/packages/analytics-js-common/src/constants/integrations/INTERCOM/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/INTERCOM/constants.ts @@ -1,6 +1,6 @@ +import { INTERCOM_NAME as NAME, INTERCOM_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'INTERCOM'; -const NAME = 'INTERCOM'; -const DISPLAY_NAME = 'Intercom'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -9,4 +9,6 @@ const CNameMapping = { intercom: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { INTERCOM_NAME as NAME, INTERCOM_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Iterable/constants.ts b/packages/analytics-js-common/src/constants/integrations/Iterable/constants.ts index 017d680a14..f49c8c26c1 100644 --- a/packages/analytics-js-common/src/constants/integrations/Iterable/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Iterable/constants.ts @@ -1,6 +1,6 @@ +import { ITERABLE_NAME as NAME, ITERABLE_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Iterable'; -const NAME = 'ITERABLE'; -const DISPLAY_NAME = 'Iterable'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -9,4 +9,6 @@ const CNameMapping = { iterable: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { ITERABLE_NAME as NAME, ITERABLE_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/June/constants.ts b/packages/analytics-js-common/src/constants/integrations/June/constants.ts index e79229646d..6a8a5c067b 100644 --- a/packages/analytics-js-common/src/constants/integrations/June/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/June/constants.ts @@ -1,6 +1,6 @@ +import { JUNE_NAME as NAME, JUNE_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'June'; -const NAME = 'JUNE'; -const DISPLAY_NAME = 'JUNE'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -9,4 +9,6 @@ const CNameMapping = { june: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { JUNE_NAME as NAME, JUNE_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Keen/constants.ts b/packages/analytics-js-common/src/constants/integrations/Keen/constants.ts index a22d63ab44..8cfb7bd84a 100644 --- a/packages/analytics-js-common/src/constants/integrations/Keen/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Keen/constants.ts @@ -1,6 +1,6 @@ +import { KEEN_NAME as NAME, KEEN_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Keen'; -const NAME = 'KEEN'; -const DISPLAY_NAME = 'Keen'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -11,4 +11,6 @@ const CNameMapping = { 'keen.io': NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { KEEN_NAME as NAME, KEEN_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Kissmetrics/constants.ts b/packages/analytics-js-common/src/constants/integrations/Kissmetrics/constants.ts index a81c7e8f39..7ec9dcea90 100644 --- a/packages/analytics-js-common/src/constants/integrations/Kissmetrics/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Kissmetrics/constants.ts @@ -1,6 +1,9 @@ +import { + KISSMETRICS_NAME as NAME, + KISSMETRICS_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; + const DIR_NAME = 'Kissmetrics'; -const NAME = 'KISSMETRICS'; -const DISPLAY_NAME = 'Kiss Metrics'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -9,4 +12,9 @@ const CNameMapping = { kissmetrics: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { + KISSMETRICS_NAME as NAME, + KISSMETRICS_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Klaviyo/constants.ts b/packages/analytics-js-common/src/constants/integrations/Klaviyo/constants.ts index 766f9b9027..033be3112a 100644 --- a/packages/analytics-js-common/src/constants/integrations/Klaviyo/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Klaviyo/constants.ts @@ -1,6 +1,6 @@ +import { KLAVIYO_NAME as NAME, KLAVIYO_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Klaviyo'; -const NAME = 'KLAVIYO'; -const DISPLAY_NAME = 'Klaviyo'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -9,4 +9,6 @@ const CNameMapping = { klaviyo: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { KLAVIYO_NAME as NAME, KLAVIYO_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/LaunchDarkly/constants.ts b/packages/analytics-js-common/src/constants/integrations/LaunchDarkly/constants.ts index a0a4f01922..cf6829fb8f 100644 --- a/packages/analytics-js-common/src/constants/integrations/LaunchDarkly/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/LaunchDarkly/constants.ts @@ -1,6 +1,9 @@ +import { + LAUNCHDARKLY_NAME as NAME, + LAUNCHDARKLY_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; + const DIR_NAME = 'LaunchDarkly'; -const NAME = 'LAUNCHDARKLY'; -const DISPLAY_NAME = 'LaunchDarkly'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -12,4 +15,9 @@ const CNameMapping = { 'launch darkly': NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { + LAUNCHDARKLY_NAME as NAME, + LAUNCHDARKLY_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Lemnisk/constants.ts b/packages/analytics-js-common/src/constants/integrations/Lemnisk/constants.ts index 5caaa42c27..f79444e6a7 100644 --- a/packages/analytics-js-common/src/constants/integrations/Lemnisk/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Lemnisk/constants.ts @@ -1,6 +1,6 @@ +import { LEMNISK_NAME as NAME, LEMNISK_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Lemnisk'; -const NAME = 'LEMNISK'; -const DISPLAY_NAME = 'Lemnisk Marketing Automation'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -14,4 +14,6 @@ const CNameMapping = { Lemnisk: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { LEMNISK_NAME as NAME, LEMNISK_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/LinkedInInsightTag/constants.ts b/packages/analytics-js-common/src/constants/integrations/LinkedInInsightTag/constants.ts index e72353ffb1..1f725f5903 100644 --- a/packages/analytics-js-common/src/constants/integrations/LinkedInInsightTag/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/LinkedInInsightTag/constants.ts @@ -1,6 +1,9 @@ +import { + LINKEDIN_INSIGHT_TAG_NAME as NAME, + LINKEDIN_INSIGHT_TAG_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; + const DIR_NAME = 'LinkedInInsightTag'; -const NAME = 'LINKEDIN_INSIGHT_TAG'; -const DISPLAY_NAME = 'Linkedin Insight Tag'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -17,4 +20,9 @@ const CNameMapping = { linkedininsighttag: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { + LINKEDIN_INSIGHT_TAG_NAME as NAME, + LINKEDIN_INSIGHT_TAG_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/LiveChat/constants.ts b/packages/analytics-js-common/src/constants/integrations/LiveChat/constants.ts index 7176113880..20658eff24 100644 --- a/packages/analytics-js-common/src/constants/integrations/LiveChat/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/LiveChat/constants.ts @@ -1,6 +1,6 @@ +import { LIVECHAT_NAME as NAME, LIVECHAT_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'LiveChat'; -const NAME = 'LIVECHAT'; -const DISPLAY_NAME = 'livechat'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -13,4 +13,6 @@ const CNameMapping = { 'live chat': NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { LIVECHAT_NAME as NAME, LIVECHAT_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Lotame/constants.ts b/packages/analytics-js-common/src/constants/integrations/Lotame/constants.ts index 7e57a84d66..50bad3d1e5 100644 --- a/packages/analytics-js-common/src/constants/integrations/Lotame/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Lotame/constants.ts @@ -1,6 +1,6 @@ +import { LOTAME_NAME as NAME, LOTAME_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Lotame'; -const NAME = 'LOTAME'; -const DISPLAY_NAME = 'Lotame'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -9,4 +9,6 @@ const CNameMapping = { lotame: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { LOTAME_NAME as NAME, LOTAME_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Lytics/constants.ts b/packages/analytics-js-common/src/constants/integrations/Lytics/constants.ts index 6c00d998d9..44a8db6ce6 100644 --- a/packages/analytics-js-common/src/constants/integrations/Lytics/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Lytics/constants.ts @@ -1,6 +1,6 @@ +import { LYTICS_NAME as NAME, LYTICS_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Lytics'; -const NAME = 'LYTICS'; -const DISPLAY_NAME = 'Lytics'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -9,4 +9,6 @@ const CNameMapping = { lytics: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { LYTICS_NAME as NAME, LYTICS_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Matomo/constants.ts b/packages/analytics-js-common/src/constants/integrations/Matomo/constants.ts index 15fe495e5e..de536b7c24 100644 --- a/packages/analytics-js-common/src/constants/integrations/Matomo/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Matomo/constants.ts @@ -1,6 +1,6 @@ +import { MATOMO_NAME as NAME, MATOMO_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Matomo'; -const NAME = 'MATOMO'; -const DISPLAY_NAME = 'Matomo'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -9,4 +9,6 @@ const CNameMapping = { matomo: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { MATOMO_NAME as NAME, MATOMO_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/MicrosoftClarity/constants.ts b/packages/analytics-js-common/src/constants/integrations/MicrosoftClarity/constants.ts index e513b3f85b..23e9ffcbb2 100644 --- a/packages/analytics-js-common/src/constants/integrations/MicrosoftClarity/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/MicrosoftClarity/constants.ts @@ -1,6 +1,9 @@ +import { + MICROSOFT_CLARITY_NAME as NAME, + MICROSOFT_CLARITY_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; + const DIR_NAME = 'MicrosoftClarity'; -const NAME = 'MICROSOFT_CLARITY'; -const DISPLAY_NAME = 'Microsoft Clarity'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -15,4 +18,9 @@ const CNameMapping = { microsoftClarity: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { + MICROSOFT_CLARITY_NAME as NAME, + MICROSOFT_CLARITY_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Mixpanel/constants.ts b/packages/analytics-js-common/src/constants/integrations/Mixpanel/constants.ts index 4a0479de6a..470b371f3d 100644 --- a/packages/analytics-js-common/src/constants/integrations/Mixpanel/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Mixpanel/constants.ts @@ -1,6 +1,6 @@ +import { MP_NAME as NAME, MP_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Mixpanel'; -const NAME = 'MP'; -const DISPLAY_NAME = 'Mixpanel'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -12,4 +12,6 @@ const CNameMapping = { 'Mix Panel': NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { MP_NAME as NAME, MP_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/MoEngage/constants.ts b/packages/analytics-js-common/src/constants/integrations/MoEngage/constants.ts index 030a7845c8..3d3fa77436 100644 --- a/packages/analytics-js-common/src/constants/integrations/MoEngage/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/MoEngage/constants.ts @@ -1,6 +1,6 @@ +import { MOENGAGE_NAME as NAME, MOENGAGE_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'MoEngage'; -const NAME = 'MOENGAGE'; -const DISPLAY_NAME = 'MoEngage'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -13,4 +13,6 @@ const CNameMapping = { 'Mo engage': NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { MOENGAGE_NAME as NAME, MOENGAGE_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Mouseflow/constants.ts b/packages/analytics-js-common/src/constants/integrations/Mouseflow/constants.ts index 4e61d533ba..7beb7daeef 100644 --- a/packages/analytics-js-common/src/constants/integrations/Mouseflow/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Mouseflow/constants.ts @@ -1,6 +1,6 @@ +import { MOUSEFLOW_NAME as NAME, MOUSEFLOW_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Mouseflow'; -const NAME = 'MOUSEFLOW'; -const DISPLAY_NAME = 'Mouseflow'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -15,4 +15,6 @@ const CNameMapping = { 'Mouse Flow': NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { MOUSEFLOW_NAME as NAME, MOUSEFLOW_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Ninetailed/constants.ts b/packages/analytics-js-common/src/constants/integrations/Ninetailed/constants.ts index 676fe36588..619b9d4fc3 100644 --- a/packages/analytics-js-common/src/constants/integrations/Ninetailed/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Ninetailed/constants.ts @@ -1,6 +1,9 @@ +import { + NINETAILED_NAME as NAME, + NINETAILED_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; + const DIR_NAME = 'Ninetailed'; -const NAME = 'NINETAILED'; -const DISPLAY_NAME = 'Ninetailed'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -10,4 +13,9 @@ const CNameMapping = { NineTailed: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { + NINETAILED_NAME as NAME, + NINETAILED_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Olark/constants.ts b/packages/analytics-js-common/src/constants/integrations/Olark/constants.ts index 8180cd22db..ea59878522 100644 --- a/packages/analytics-js-common/src/constants/integrations/Olark/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Olark/constants.ts @@ -1,6 +1,6 @@ +import { OLARK_NAME as NAME, OLARK_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Olark'; -const NAME = 'OLARK'; -const DISPLAY_NAME = 'Olark'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -9,4 +9,6 @@ const CNameMapping = { olark: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { OLARK_NAME as NAME, OLARK_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Optimizely/constants.ts b/packages/analytics-js-common/src/constants/integrations/Optimizely/constants.ts index 8076e08676..84ed7bf1bf 100644 --- a/packages/analytics-js-common/src/constants/integrations/Optimizely/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Optimizely/constants.ts @@ -1,6 +1,9 @@ +import { + OPTIMIZELY_NAME as NAME, + OPTIMIZELY_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; + const DIR_NAME = 'Optimizely'; -const NAME = 'OPTIMIZELY'; -const DISPLAY_NAME = 'Optimizely Web'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -9,4 +12,9 @@ const CNameMapping = { optimizely: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { + OPTIMIZELY_NAME as NAME, + OPTIMIZELY_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Pendo/constants.ts b/packages/analytics-js-common/src/constants/integrations/Pendo/constants.ts index e63c5cdd88..c134d6a890 100644 --- a/packages/analytics-js-common/src/constants/integrations/Pendo/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Pendo/constants.ts @@ -1,6 +1,6 @@ +import { PENDO_NAME as NAME, PENDO_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Pendo'; -const NAME = 'PENDO'; -const DISPLAY_NAME = 'Pendo'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -9,4 +9,6 @@ const CNameMapping = { pendo: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { PENDO_NAME as NAME, PENDO_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/PinterestTag/constants.ts b/packages/analytics-js-common/src/constants/integrations/PinterestTag/constants.ts index 908ee243df..2ebb9d7a2d 100644 --- a/packages/analytics-js-common/src/constants/integrations/PinterestTag/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/PinterestTag/constants.ts @@ -1,6 +1,9 @@ +import { + PINTEREST_TAG_NAME as NAME, + PINTEREST_TAG_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; + const DIR_NAME = 'PinterestTag'; -const NAME = 'PINTEREST_TAG'; -const DISPLAY_NAME = 'Pinterest Tag'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -20,4 +23,9 @@ const CNameMapping = { 'Pinterest ads': NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { + PINTEREST_TAG_NAME as NAME, + PINTEREST_TAG_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Podsights/constants.ts b/packages/analytics-js-common/src/constants/integrations/Podsights/constants.ts index 6ee5570371..d25b5853f3 100644 --- a/packages/analytics-js-common/src/constants/integrations/Podsights/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Podsights/constants.ts @@ -1,6 +1,6 @@ +import { PODSIGHTS_NAME as NAME, PODSIGHTS_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Podsights'; -const NAME = 'PODSIGHTS'; -const DISPLAY_NAME = 'Podsights'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -14,11 +14,6 @@ const CNameMapping = { 'Pod sights': NAME, }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; -export { - NAME, - CNameMapping, - DISPLAY_NAME_TO_DIR_NAME_MAP, - DISPLAY_NAME, - DIR_NAME, -}; +export { PODSIGHTS_NAME as NAME, PODSIGHTS_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/PostAffiliatePro/constants.ts b/packages/analytics-js-common/src/constants/integrations/PostAffiliatePro/constants.ts index b0e8f67111..9f898b994b 100644 --- a/packages/analytics-js-common/src/constants/integrations/PostAffiliatePro/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/PostAffiliatePro/constants.ts @@ -1,6 +1,9 @@ +import { + POST_AFFILIATE_PRO_NAME as NAME, + POST_AFFILIATE_PRO_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; + const DIR_NAME = 'PostAffiliatePro'; -const NAME = 'POST_AFFILIATE_PRO'; -const DISPLAY_NAME = 'Post Affiliate Pro'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -14,4 +17,9 @@ const CNameMapping = { POSTAFFILIATEPRO: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { + POST_AFFILIATE_PRO_NAME as NAME, + POST_AFFILIATE_PRO_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Posthog/constants.ts b/packages/analytics-js-common/src/constants/integrations/Posthog/constants.ts index 507a547632..133aade1b2 100644 --- a/packages/analytics-js-common/src/constants/integrations/Posthog/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Posthog/constants.ts @@ -1,6 +1,6 @@ +import { POSTHOG_NAME as NAME, POSTHOG_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Posthog'; -const NAME = 'POSTHOG'; -const DISPLAY_NAME = 'PostHog'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -13,4 +13,6 @@ const CNameMapping = { 'post hog': NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { POSTHOG_NAME as NAME, POSTHOG_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/ProfitWell/constants.ts b/packages/analytics-js-common/src/constants/integrations/ProfitWell/constants.ts index 54e10b6cf5..31fccb6315 100644 --- a/packages/analytics-js-common/src/constants/integrations/ProfitWell/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/ProfitWell/constants.ts @@ -1,6 +1,9 @@ +import { + PROFITWELL_NAME as NAME, + PROFITWELL_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; + const DIR_NAME = 'ProfitWell'; -const NAME = 'PROFITWELL'; -const DISPLAY_NAME = 'ProfitWell'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -13,4 +16,9 @@ const CNameMapping = { 'Profit well': NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { + PROFITWELL_NAME as NAME, + PROFITWELL_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Qualaroo/constants.ts b/packages/analytics-js-common/src/constants/integrations/Qualaroo/constants.ts index 5136b3e50a..4e1165e5a8 100644 --- a/packages/analytics-js-common/src/constants/integrations/Qualaroo/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Qualaroo/constants.ts @@ -1,6 +1,6 @@ +import { QUALAROO_NAME as NAME, QUALAROO_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Qualaroo'; -const NAME = 'QUALAROO'; -const DISPLAY_NAME = 'Qualaroo'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -9,4 +9,6 @@ const CNameMapping = { qualaroo: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { QUALAROO_NAME as NAME, QUALAROO_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Qualtrics/constants.ts b/packages/analytics-js-common/src/constants/integrations/Qualtrics/constants.ts index 42035b6db2..bf5d1bc3d5 100644 --- a/packages/analytics-js-common/src/constants/integrations/Qualtrics/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Qualtrics/constants.ts @@ -1,6 +1,6 @@ +import { QUALTRICS_NAME as NAME, QUALTRICS_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Qualtrics'; -const NAME = 'QUALTRICS'; -const DISPLAY_NAME = 'Qualtrics'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -9,4 +9,6 @@ const CNameMapping = { qualtrics: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { QUALTRICS_NAME as NAME, QUALTRICS_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/QuantumMetric/constants.ts b/packages/analytics-js-common/src/constants/integrations/QuantumMetric/constants.ts index e49ba6918b..44cb63f6b7 100644 --- a/packages/analytics-js-common/src/constants/integrations/QuantumMetric/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/QuantumMetric/constants.ts @@ -1,6 +1,9 @@ +import { + QUANTUMMETRIC_NAME as NAME, + QUANTUMMETRIC_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; + const DIR_NAME = 'QuantumMetric'; -const NAME = 'QUANTUMMETRIC'; -const DISPLAY_NAME = 'Quantum Metric'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -14,4 +17,9 @@ const CNameMapping = { Quantum_Metric: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { + QUANTUMMETRIC_NAME as NAME, + QUANTUMMETRIC_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/QuoraPixel/constants.ts b/packages/analytics-js-common/src/constants/integrations/QuoraPixel/constants.ts index 3d99fb16b7..7f5db4f48e 100644 --- a/packages/analytics-js-common/src/constants/integrations/QuoraPixel/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/QuoraPixel/constants.ts @@ -1,6 +1,9 @@ +import { + QUORA_PIXEL_NAME as NAME, + QUORA_PIXEL_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; + const DIR_NAME = 'QuoraPixel'; -const NAME = 'QUORA_PIXEL'; -const DISPLAY_NAME = 'Quora Pixel'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -16,4 +19,9 @@ const CNameMapping = { Quora: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { + QUORA_PIXEL_NAME as NAME, + QUORA_PIXEL_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/RedditPixel/constants.ts b/packages/analytics-js-common/src/constants/integrations/RedditPixel/constants.ts index 0910fbc926..89af4ee945 100644 --- a/packages/analytics-js-common/src/constants/integrations/RedditPixel/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/RedditPixel/constants.ts @@ -1,6 +1,9 @@ +import { + REDDIT_PIXEL_NAME as NAME, + REDDIT_PIXEL_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; + const DIR_NAME = 'RedditPixel'; -const NAME = 'REDDIT_PIXEL'; -const DISPLAY_NAME = 'Reddit Pixel'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -14,4 +17,9 @@ const CNameMapping = { 'reddit pixel': NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { + REDDIT_PIXEL_NAME as NAME, + REDDIT_PIXEL_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Refiner/constants.ts b/packages/analytics-js-common/src/constants/integrations/Refiner/constants.ts index 75d308479a..28555ca6e4 100644 --- a/packages/analytics-js-common/src/constants/integrations/Refiner/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Refiner/constants.ts @@ -1,6 +1,6 @@ +import { REFINER_NAME as NAME, REFINER_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Refiner'; -const NAME = 'REFINER'; -const DISPLAY_NAME = 'Refiner'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -9,4 +9,6 @@ const CNameMapping = { refiner: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { REFINER_NAME as NAME, REFINER_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Rockerbox/constants.ts b/packages/analytics-js-common/src/constants/integrations/Rockerbox/constants.ts index fa8a01721c..d9783ea7a7 100644 --- a/packages/analytics-js-common/src/constants/integrations/Rockerbox/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Rockerbox/constants.ts @@ -1,6 +1,6 @@ +import { ROCKERBOX_NAME as NAME, ROCKERBOX_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Rockerbox'; -const NAME = 'ROCKERBOX'; -const DISPLAY_NAME = 'Rockerbox'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -13,4 +13,6 @@ const CNameMapping = { 'Rocker Box': NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { ROCKERBOX_NAME as NAME, ROCKERBOX_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/RollBar/constants.ts b/packages/analytics-js-common/src/constants/integrations/RollBar/constants.ts index 448701bf29..e8560c1ed5 100644 --- a/packages/analytics-js-common/src/constants/integrations/RollBar/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/RollBar/constants.ts @@ -1,6 +1,6 @@ +import { ROLLBAR_NAME as NAME, ROLLBAR_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'RollBar'; -const NAME = 'ROLLBAR'; -const DISPLAY_NAME = 'RollBar'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -14,4 +14,6 @@ const CNameMapping = { 'roll bar': NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { ROLLBAR_NAME as NAME, ROLLBAR_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Satismeter/constants.ts b/packages/analytics-js-common/src/constants/integrations/Satismeter/constants.ts index f508806767..8c749bdb2c 100644 --- a/packages/analytics-js-common/src/constants/integrations/Satismeter/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Satismeter/constants.ts @@ -1,6 +1,9 @@ +import { + SATISMETER_NAME as NAME, + SATISMETER_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; + const DIR_NAME = 'Satismeter'; -const NAME = 'SATISMETER'; -const DISPLAY_NAME = 'Satismeter'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -9,4 +12,9 @@ const CNameMapping = { SatisMeter: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { + SATISMETER_NAME as NAME, + SATISMETER_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Sendinblue/constants.ts b/packages/analytics-js-common/src/constants/integrations/Sendinblue/constants.ts index a86a2a5edc..1e59ac61f8 100644 --- a/packages/analytics-js-common/src/constants/integrations/Sendinblue/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Sendinblue/constants.ts @@ -1,6 +1,9 @@ +import { + SENDINBLUE_NAME as NAME, + SENDINBLUE_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; + const DIR_NAME = 'Sendinblue'; -const NAME = 'SENDINBLUE'; -const DISPLAY_NAME = 'Sendinblue'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -27,11 +30,14 @@ const excludeReservedTraits = [ const excludePageProperties = ['url', 'title', 'path', 'referrer']; export { - NAME, CNameMapping, excludeReservedTraits, excludePageProperties, DISPLAY_NAME_TO_DIR_NAME_MAP, - DISPLAY_NAME, DIR_NAME, }; + +export { + SENDINBLUE_NAME as NAME, + SENDINBLUE_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Sentry/constants.ts b/packages/analytics-js-common/src/constants/integrations/Sentry/constants.ts index 981ee4d8be..c0aecb72f4 100644 --- a/packages/analytics-js-common/src/constants/integrations/Sentry/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Sentry/constants.ts @@ -1,6 +1,6 @@ +import { SENTRY_NAME as NAME, SENTRY_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Sentry'; -const NAME = 'SENTRY'; -const DISPLAY_NAME = 'Sentry'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -9,4 +9,6 @@ const CNameMapping = { Sentry: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { SENTRY_NAME as NAME, SENTRY_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Shynet/constants.ts b/packages/analytics-js-common/src/constants/integrations/Shynet/constants.ts index 38bfaf6103..54d0b81c33 100644 --- a/packages/analytics-js-common/src/constants/integrations/Shynet/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Shynet/constants.ts @@ -1,6 +1,6 @@ +import { SHYNET_NAME as NAME, SHYNET_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Shynet'; -const NAME = 'SHYNET'; -const DISPLAY_NAME = 'Shynet'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -15,4 +15,6 @@ const CNameMapping = { 'Shy net': NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { SHYNET_NAME as NAME, SHYNET_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/SnapEngage/constants.ts b/packages/analytics-js-common/src/constants/integrations/SnapEngage/constants.ts index a9b7fd358f..0674ce1f73 100644 --- a/packages/analytics-js-common/src/constants/integrations/SnapEngage/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/SnapEngage/constants.ts @@ -1,6 +1,9 @@ +import { + SNAPENGAGE_NAME as NAME, + SNAPENGAGE_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; + const DIR_NAME = 'SnapEngage'; -const NAME = 'SNAPENGAGE'; -const DISPLAY_NAME = 'SnapEngage'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -13,4 +16,9 @@ const CNameMapping = { 'snap engage': NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { + SNAPENGAGE_NAME as NAME, + SNAPENGAGE_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/SnapPixel/constants.ts b/packages/analytics-js-common/src/constants/integrations/SnapPixel/constants.ts index f59a3652bb..a38f59f229 100644 --- a/packages/analytics-js-common/src/constants/integrations/SnapPixel/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/SnapPixel/constants.ts @@ -1,6 +1,9 @@ +import { + SNAP_PIXEL_NAME as NAME, + SNAP_PIXEL_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; + const DIR_NAME = 'SnapPixel'; -const NAME = 'SNAP_PIXEL'; -const DISPLAY_NAME = 'Snap Pixel'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -14,4 +17,9 @@ const CNameMapping = { 'snap pixel': NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { + SNAP_PIXEL_NAME as NAME, + SNAP_PIXEL_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/SpotifyPixel/constants.ts b/packages/analytics-js-common/src/constants/integrations/SpotifyPixel/constants.ts index ec31ca65b5..9cf5c45ea1 100644 --- a/packages/analytics-js-common/src/constants/integrations/SpotifyPixel/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/SpotifyPixel/constants.ts @@ -1,6 +1,9 @@ +import { + SPOTIFYPIXEL_NAME as NAME, + SPOTIFYPIXEL_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; + const DIR_NAME = 'SpotifyPixel'; -const NAME = 'SPOTIFYPIXEL'; -const DISPLAY_NAME = 'Spotify Pixel'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -10,11 +13,9 @@ const CNameMapping = { SPOTIFY_PIXEL: NAME, }; -export { - NAME, - CNameMapping, - DISPLAY_NAME_TO_DIR_NAME_MAP, - DISPLAY_NAME, - DIR_NAME, -}; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; +export { + SPOTIFYPIXEL_NAME as NAME, + SPOTIFYPIXEL_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Sprig/constants.ts b/packages/analytics-js-common/src/constants/integrations/Sprig/constants.ts index cb8ca04f5f..61feaf49a8 100644 --- a/packages/analytics-js-common/src/constants/integrations/Sprig/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Sprig/constants.ts @@ -1,6 +1,6 @@ +import { SPRIG_NAME as NAME, SPRIG_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Sprig'; -const NAME = 'SPRIG'; -const DISPLAY_NAME = 'Sprig'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -9,4 +9,5 @@ const CNameMapping = { sprig: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; \ No newline at end of file +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; +export { SPRIG_NAME as NAME, SPRIG_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/TVSquared/constants.ts b/packages/analytics-js-common/src/constants/integrations/TVSquared/constants.ts index c07948bc8d..c956d1170a 100644 --- a/packages/analytics-js-common/src/constants/integrations/TVSquared/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/TVSquared/constants.ts @@ -1,6 +1,6 @@ +import { TVSQUARED_NAME as NAME, TVSQUARED_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'TVSquared'; -const NAME = 'TVSQUARED'; -const DISPLAY_NAME = 'TVSquared'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -15,4 +15,6 @@ const CNameMapping = { 'tv Squared': NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { TVSQUARED_NAME as NAME, TVSQUARED_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/TiktokAds/constants.ts b/packages/analytics-js-common/src/constants/integrations/TiktokAds/constants.ts index a377152663..f299163044 100644 --- a/packages/analytics-js-common/src/constants/integrations/TiktokAds/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/TiktokAds/constants.ts @@ -1,6 +1,9 @@ +import { + TIKTOK_ADS_NAME as NAME, + TIKTOK_ADS_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; + const DIR_NAME = 'TiktokAds'; -const NAME = 'TIKTOK_ADS'; -const DISPLAY_NAME = 'TikTok Ads'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -86,12 +89,15 @@ const eventNameMapping = { }; export { - NAME, CNameMapping, PARTNER_NAME, trackMapping, eventNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, - DISPLAY_NAME, DIR_NAME, }; + +export { + TIKTOK_ADS_NAME as NAME, + TIKTOK_ADS_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/VWO/constants.ts b/packages/analytics-js-common/src/constants/integrations/VWO/constants.ts index aae504ead5..07c0042e79 100644 --- a/packages/analytics-js-common/src/constants/integrations/VWO/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/VWO/constants.ts @@ -1,6 +1,6 @@ +import { VWO_NAME as NAME, VWO_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'VWO'; -const NAME = 'VWO'; -const DISPLAY_NAME = 'VWO'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -14,4 +14,6 @@ const CNameMapping = { 'visual website optimizer': NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { VWO_NAME as NAME, VWO_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Vero/constants.ts b/packages/analytics-js-common/src/constants/integrations/Vero/constants.ts index 06ba6d3884..29c141b137 100644 --- a/packages/analytics-js-common/src/constants/integrations/Vero/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Vero/constants.ts @@ -1,6 +1,6 @@ +import { VERO_NAME as NAME, VERO_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Vero'; -const NAME = 'VERO'; -const DISPLAY_NAME = 'Vero'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -9,4 +9,6 @@ const CNameMapping = { vero: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { VERO_NAME as NAME, VERO_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/Woopra/constants.ts b/packages/analytics-js-common/src/constants/integrations/Woopra/constants.ts index 4f93c609af..3ddd01c815 100644 --- a/packages/analytics-js-common/src/constants/integrations/Woopra/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/Woopra/constants.ts @@ -1,6 +1,6 @@ +import { WOOPRA_NAME as NAME, WOOPRA_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'Woopra'; -const NAME = 'WOOPRA'; -const DISPLAY_NAME = 'Woopra'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -9,4 +9,6 @@ const CNameMapping = { woopra: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { WOOPRA_NAME as NAME, WOOPRA_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/XPixel/constants.ts b/packages/analytics-js-common/src/constants/integrations/XPixel/constants.ts index 7a630dc8b8..47b460d515 100644 --- a/packages/analytics-js-common/src/constants/integrations/XPixel/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/XPixel/constants.ts @@ -1,6 +1,6 @@ +import { XPIXEL_NAME as NAME, XPIXEL_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; + const DIR_NAME = 'XPixel'; -const NAME = 'XPIXEL'; -const DISPLAY_NAME = 'XPixel'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -50,11 +50,6 @@ const trackPropertyMapping = [ }, ]; -export { - NAME, - CNameMapping, - DISPLAY_NAME_TO_DIR_NAME_MAP, - DISPLAY_NAME, - DIR_NAME, - trackPropertyMapping, -}; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME, trackPropertyMapping }; + +export { XPIXEL_NAME as NAME, XPIXEL_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations'; diff --git a/packages/analytics-js-common/src/constants/integrations/YandexMetrica/constants.ts b/packages/analytics-js-common/src/constants/integrations/YandexMetrica/constants.ts index 880b61eb9d..6cac8810b1 100644 --- a/packages/analytics-js-common/src/constants/integrations/YandexMetrica/constants.ts +++ b/packages/analytics-js-common/src/constants/integrations/YandexMetrica/constants.ts @@ -1,6 +1,9 @@ +import { + YANDEX_METRICA_NAME as NAME, + YANDEX_METRICA_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; + const DIR_NAME = 'YandexMetrica'; -const NAME = 'YANDEX_METRICA'; -const DISPLAY_NAME = 'Yandex.Metrica'; const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME }; const CNameMapping = { @@ -11,4 +14,9 @@ const CNameMapping = { YandexMetrica: NAME, }; -export { NAME, CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DISPLAY_NAME, DIR_NAME }; +export { CNameMapping, DISPLAY_NAME_TO_DIR_NAME_MAP, DIR_NAME }; + +export { + YANDEX_METRICA_NAME as NAME, + YANDEX_METRICA_DISPLAY_NAME as DISPLAY_NAME, +} from '../../Destinations'; diff --git a/packages/analytics-js/.size-limit.mjs b/packages/analytics-js/.size-limit.mjs index d55635d440..82b89e09dc 100644 --- a/packages/analytics-js/.size-limit.mjs +++ b/packages/analytics-js/.size-limit.mjs @@ -13,7 +13,7 @@ export default [ name: 'Core - Legacy - NPM (CJS)', path: 'dist/npm/legacy/cjs/index.cjs', import: '*', - limit: '49 KiB', + limit: '49.1 KiB', }, { name: 'Core - Legacy - NPM (UMD)', diff --git a/scripts/update-integration-name-constants-references.js b/scripts/update-integration-name-constants-references.js new file mode 100644 index 0000000000..1b3523a9cc --- /dev/null +++ b/scripts/update-integration-name-constants-references.js @@ -0,0 +1,94 @@ +const fs = require('fs'); +const path = require('path'); + +// Paths +const destinationsPath = path.join( + __dirname, + '../packages/analytics-js-common/src/constants/Destinations.ts', +); +const integrationsDir = path.join( + __dirname, + '../packages/analytics-js-common/src/constants/integrations', +); + +// Step 1: Parse Destinations.ts +const destinationsContent = fs.readFileSync(destinationsPath, 'utf-8'); + +const DESTINATIONS = {}; +const regex = /export const (\w+)_NAME = '(\w+)';\nexport const \1_DISPLAY_NAME = '(.*?)';/g; +let match; +while ((match = regex.exec(destinationsContent)) !== null) { + const [, key, name, displayName] = match; + DESTINATIONS[name] = { name, displayName, key }; + DESTINATIONS[displayName.toLowerCase().replace(/\s+/g, '')] = { name, displayName, key }; // Normalize +} + +// Step 2: Find all constants.ts files in constants/integrations +function findConstantsFiles(dir) { + const files = []; + fs.readdirSync(dir).forEach(file => { + const fullPath = path.join(dir, file); + if (fs.statSync(fullPath).isDirectory()) { + files.push(...findConstantsFiles(fullPath)); + } else if (file === 'constants.ts') { + files.push(fullPath); + } + }); + return files; +} + +function replaceExports(exports) { + return exports.replace( + // eslint-disable-next-line sonarjs/slow-regex + /export {\s*([\S\s]*?)\s*};/, + (match, exports) => { + const updatedExportList = exports + .split(',') + .map(e => e.trim()) + .filter(e => e !== 'NAME' && e !== 'DISPLAY_NAME') + .filter(Boolean) // Removes any empty strings from the list + .join(', '); + + return `export { ${updatedExportList} };`; + }, + ); +} + +const integrationFiles = findConstantsFiles(integrationsDir); + +// Step 3: Update each file +integrationFiles.forEach(filePath => { + const content = fs.readFileSync(filePath, 'utf-8'); + + // Extract NAME and DISPLAY_NAME to match with Destinations.ts + const nameMatch = /const NAME = '(.*?)';/.exec(content); + const displayNameMatch = /const DISPLAY_NAME = '(.*?)';/.exec(content); + if (!nameMatch || !displayNameMatch) return; + + const name = nameMatch[1]; + const displayName = displayNameMatch[1].toLowerCase().replace(/\s+/g, ''); + + const destination = DESTINATIONS[name] || DESTINATIONS[displayName]; + if (!destination) { + console.log(`No match found for ${filePath}`); + return; + } + + // Generate import lines + const nameImports = `import { ${destination.key}_NAME as NAME, ${destination.key}_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations';\n`; + const nameExports = `export { ${destination.key}_NAME as NAME, ${destination.key}_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations';\n`; + + // Remove existing NAME and DISPLAY_NAME declarations + const withoutNameAndDisplayName = content + .replace(/const NAME = '.*?';\n/, '') + .replace(/const DISPLAY_NAME = '.*?';\n/, ''); + + // Update export statement to exclude NAME and DISPLAY_NAME + const updatedExports = replaceExports(withoutNameAndDisplayName); + + // Ensure imports are at the top of the file + const updatedContent = `${nameImports}\n${updatedExports}\n${nameExports}\n`; + + fs.writeFileSync(filePath, updatedContent, 'utf-8'); + console.log(`Updated ${filePath}`); +});