Skip to content

Commit

Permalink
refactor: use generated integration constants
Browse files Browse the repository at this point in the history
  • Loading branch information
koladilip committed Dec 5, 2024
1 parent e0f6ff2 commit ea84cf2
Show file tree
Hide file tree
Showing 84 changed files with 825 additions and 298 deletions.
2 changes: 1 addition & 1 deletion packages/analytics-js-common/.size-limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ module.exports = [
{
name: 'Common - No bundling',
path: 'dist/npm/**/*.js',
limit: '17.2 KiB',
limit: '18.3 KiB',
},
];
167 changes: 167 additions & 0 deletions packages/analytics-js-common/src/constants/Destinations.ts
Original file line number Diff line number Diff line change
@@ -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';

Check warning on line 167 in packages/analytics-js-common/src/constants/Destinations.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/Destinations.ts#L8-L167

Added lines #L8 - L167 were not covered by tests
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import {

Check warning on line 1 in packages/analytics-js-common/src/constants/integrations/ActiveCampaign/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/ActiveCampaign/constants.ts#L1

Added line #L1 was not covered by tests
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 = {
Expand All @@ -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 };

Check warning on line 21 in packages/analytics-js-common/src/constants/integrations/ActiveCampaign/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/ActiveCampaign/constants.ts#L21

Added line #L21 was not covered by tests

export {
ACTIVE_CAMPAIGN_NAME as NAME,
ACTIVE_CAMPAIGN_DISPLAY_NAME as DISPLAY_NAME,

Check warning on line 25 in packages/analytics-js-common/src/constants/integrations/ActiveCampaign/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/ActiveCampaign/constants.ts#L23-L25

Added lines #L23 - L25 were not covered by tests
} from '../../Destinations';
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import {

Check warning on line 1 in packages/analytics-js-common/src/constants/integrations/AdobeAnalytics/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/AdobeAnalytics/constants.ts#L1

Added line #L1 was not covered by tests
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 = {
Expand All @@ -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 };

Check warning on line 21 in packages/analytics-js-common/src/constants/integrations/AdobeAnalytics/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/AdobeAnalytics/constants.ts#L21

Added line #L21 was not covered by tests

export {
ADOBE_ANALYTICS_NAME as NAME,
ADOBE_ANALYTICS_DISPLAY_NAME as DISPLAY_NAME,

Check warning on line 25 in packages/analytics-js-common/src/constants/integrations/AdobeAnalytics/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/AdobeAnalytics/constants.ts#L23-L25

Added lines #L23 - L25 were not covered by tests
} from '../../Destinations';
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ADROLL_NAME as NAME, ADROLL_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations';

Check warning on line 1 in packages/analytics-js-common/src/constants/integrations/Adroll/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/Adroll/constants.ts#L1

Added line #L1 was not covered by tests

const DIR_NAME = 'Adroll';
const NAME = 'ADROLL';
const DISPLAY_NAME = 'Adroll';

const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME };
const CNameMapping = {
Expand All @@ -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 };

Check warning on line 14 in packages/analytics-js-common/src/constants/integrations/Adroll/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/Adroll/constants.ts#L14

Added line #L14 was not covered by tests

export { ADROLL_NAME as NAME, ADROLL_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations';

Check warning on line 16 in packages/analytics-js-common/src/constants/integrations/Adroll/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/Adroll/constants.ts#L16

Added line #L16 was not covered by tests
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AM_NAME as NAME, AM_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations';

Check warning on line 1 in packages/analytics-js-common/src/constants/integrations/Amplitude/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/Amplitude/constants.ts#L1

Added line #L1 was not covered by tests

const DIR_NAME = 'Amplitude';
const NAME = 'AM';
const DISPLAY_NAME = 'Amplitude';

const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME };
const CNameMapping = {
Expand All @@ -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 };

Check warning on line 13 in packages/analytics-js-common/src/constants/integrations/Amplitude/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/Amplitude/constants.ts#L13

Added line #L13 was not covered by tests

export { AM_NAME as NAME, AM_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations';

Check warning on line 15 in packages/analytics-js-common/src/constants/integrations/Amplitude/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/Amplitude/constants.ts#L15

Added line #L15 was not covered by tests
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { APPCUES_NAME as NAME, APPCUES_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations';

Check warning on line 1 in packages/analytics-js-common/src/constants/integrations/Appcues/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/Appcues/constants.ts#L1

Added line #L1 was not covered by tests

const DIR_NAME = 'Appcues';
const NAME = 'APPCUES';
const DISPLAY_NAME = 'Appcues';

const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME };
const CNameMapping = {
Expand All @@ -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 };

Check warning on line 13 in packages/analytics-js-common/src/constants/integrations/Appcues/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/Appcues/constants.ts#L13

Added line #L13 was not covered by tests

export { APPCUES_NAME as NAME, APPCUES_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations';

Check warning on line 15 in packages/analytics-js-common/src/constants/integrations/Appcues/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/Appcues/constants.ts#L15

Added line #L15 was not covered by tests
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AXEPTIO_NAME as NAME, AXEPTIO_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations';

Check warning on line 1 in packages/analytics-js-common/src/constants/integrations/Axeptio/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/Axeptio/constants.ts#L1

Added line #L1 was not covered by tests

const DIR_NAME = 'Axeptio';
const NAME = 'AXEPTIO';
const DISPLAY_NAME = 'Axeptio';

const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME };
const CNameMapping = {
Expand All @@ -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 };

Check warning on line 12 in packages/analytics-js-common/src/constants/integrations/Axeptio/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/Axeptio/constants.ts#L12

Added line #L12 was not covered by tests

export { AXEPTIO_NAME as NAME, AXEPTIO_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations';

Check warning on line 14 in packages/analytics-js-common/src/constants/integrations/Axeptio/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/Axeptio/constants.ts#L14

Added line #L14 was not covered by tests
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BINGADS_NAME as NAME, BINGADS_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations';

Check warning on line 1 in packages/analytics-js-common/src/constants/integrations/BingAds/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/BingAds/constants.ts#L1

Added line #L1 was not covered by tests

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 = {
Expand All @@ -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 };

Check warning on line 16 in packages/analytics-js-common/src/constants/integrations/BingAds/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/BingAds/constants.ts#L16

Added line #L16 was not covered by tests

export { BINGADS_NAME as NAME, BINGADS_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations';

Check warning on line 18 in packages/analytics-js-common/src/constants/integrations/BingAds/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/BingAds/constants.ts#L18

Added line #L18 was not covered by tests
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BRAZE_NAME as NAME, BRAZE_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations';

Check warning on line 1 in packages/analytics-js-common/src/constants/integrations/Braze/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/Braze/constants.ts#L1

Added line #L1 was not covered by tests

const DIR_NAME = 'Braze';
const NAME = 'BRAZE';
const DISPLAY_NAME = 'Braze';

const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME };
const CNameMapping = {
Expand All @@ -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 };

Check warning on line 15 in packages/analytics-js-common/src/constants/integrations/Braze/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/Braze/constants.ts#L15

Added line #L15 was not covered by tests

export { BRAZE_NAME as NAME, BRAZE_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations';

Check warning on line 17 in packages/analytics-js-common/src/constants/integrations/Braze/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/Braze/constants.ts#L17

Added line #L17 was not covered by tests
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BUGSNAG_NAME as NAME, BUGSNAG_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations';

Check warning on line 1 in packages/analytics-js-common/src/constants/integrations/Bugsnag/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/Bugsnag/constants.ts#L1

Added line #L1 was not covered by tests

const DIR_NAME = 'Bugsnag';
const NAME = 'BUGSNAG';
const DISPLAY_NAME = 'Bugsnag';

const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME };
const CNameMapping = {
Expand All @@ -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 };

Check warning on line 12 in packages/analytics-js-common/src/constants/integrations/Bugsnag/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/Bugsnag/constants.ts#L12

Added line #L12 was not covered by tests

export { BUGSNAG_NAME as NAME, BUGSNAG_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations';

Check warning on line 14 in packages/analytics-js-common/src/constants/integrations/Bugsnag/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/Bugsnag/constants.ts#L14

Added line #L14 was not covered by tests
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CHARTBEAT_NAME as NAME, CHARTBEAT_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations';

Check warning on line 1 in packages/analytics-js-common/src/constants/integrations/Chartbeat/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/Chartbeat/constants.ts#L1

Added line #L1 was not covered by tests

const DIR_NAME = 'Chartbeat';
const NAME = 'CHARTBEAT';
const DISPLAY_NAME = 'Chartbeat';

const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME };
const CNameMapping = {
Expand All @@ -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 };

Check warning on line 14 in packages/analytics-js-common/src/constants/integrations/Chartbeat/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/Chartbeat/constants.ts#L14

Added line #L14 was not covered by tests

export { CHARTBEAT_NAME as NAME, CHARTBEAT_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations';

Check warning on line 16 in packages/analytics-js-common/src/constants/integrations/Chartbeat/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/Chartbeat/constants.ts#L16

Added line #L16 was not covered by tests
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CLEVERTAP_NAME as NAME, CLEVERTAP_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations';

Check warning on line 1 in packages/analytics-js-common/src/constants/integrations/Clevertap/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/Clevertap/constants.ts#L1

Added line #L1 was not covered by tests

const DIR_NAME = 'Clevertap';
const NAME = 'CLEVERTAP';
const DISPLAY_NAME = 'CleverTap';

const DISPLAY_NAME_TO_DIR_NAME_MAP = { [DISPLAY_NAME]: DIR_NAME };
const CNameMapping = {
Expand All @@ -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 };

Check warning on line 12 in packages/analytics-js-common/src/constants/integrations/Clevertap/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/Clevertap/constants.ts#L12

Added line #L12 was not covered by tests

export { CLEVERTAP_NAME as NAME, CLEVERTAP_DISPLAY_NAME as DISPLAY_NAME } from '../../Destinations';

Check warning on line 14 in packages/analytics-js-common/src/constants/integrations/Clevertap/constants.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-common/src/constants/integrations/Clevertap/constants.ts#L14

Added line #L14 was not covered by tests
Loading

0 comments on commit ea84cf2

Please sign in to comment.