@adtrackify/at-tracking-event-types 1.1.31 → 1.1.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -142,7 +142,8 @@ declare module '@adtrackify/at-tracking-event-types/types/api/destinations/desti
142
142
  CUSTOM_JS = "customJS",
143
143
  SNAPCHAT = "snapchat",
144
144
  TWITTER = "twitter",
145
- REDDIT = "reddit"
145
+ REDDIT = "reddit",
146
+ SCRIPT_TAG = "scriptTag"
146
147
  }
147
148
  export interface UserDestinationConfiguration {
148
149
  [key: string]: any;
@@ -225,8 +226,10 @@ declare module '@adtrackify/at-tracking-event-types/types/api/destinations/third
225
226
  }
226
227
  export interface CustomJSConfiguration extends UserDestinationConfiguration {
227
228
  script: string;
228
- async: boolean;
229
- defer: boolean;
229
+ location: CustomHTMLLocation;
230
+ }
231
+ export interface ScriptTagConfiguration extends UserDestinationConfiguration {
232
+ script: string;
230
233
  location: CustomHTMLLocation;
231
234
  }
232
235
  export enum CustomHTMLLocation {
@@ -302,11 +305,10 @@ declare module '@adtrackify/at-tracking-event-types/types/api/query' {
302
305
  dimensions?: DIMENSION[];
303
306
  filters?: any[];
304
307
  }
305
- export type MeasureDataRow = {
306
- [key in MEASURE]: number;
307
- } & {
308
+ export interface MeasureDataRow {
309
+ [key: string]: number | string;
308
310
  'dt': string;
309
- };
311
+ }
310
312
  export interface MeasureData {
311
313
  primaryAvg: number;
312
314
  compareAvg: number;
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- var p=(i=>(i.PENDING="pending",i.ACTIVE="active",i.INACTIVE="inactive",i))(p||{});var d=(a=>(a.FACEBOOK="facebook",a.TIKTOK="tiktok",a.GOOGLE_ADS="googleAds",a.GOOGLE_ANALYTICS_4="googleAnalytics4",a.HUBSPOT="hubspot",a.WEBHOOK="webhook",a.CUSTOM_HTML="customHTML",a.CUSTOM_JS="customJS",a.SNAPCHAT="snapchat",a.TWITTER="twitter",a.REDDIT="reddit",a))(d||{});var u=(i=>(i.HEADER="header",i.FOOTER="footer",i.BODY="body",i))(u||{});var m=(o=>(o.STARTED="started",o.COMPLETED="completed",o.UNINSTALLED="uninstalled",o.FAILED="failed",o.NONE="none",o))(m||{}),f=(r=>(r.ACTIVE="active",r.CANCELLED="cancelled",r.DECLINED="declined",r.EXPIRED="expired",r.FROZEN="frozen",r.PENDING="pending",r.NOT_SUBMITTED="na",r))(f||{});var x=(c=>(c.MONTHLY="monthly",c.YEARLY="yearly",c))(x||{}),l=(s=>(s.CURRENT="current",s.PAST_DUE="past_due",s.CANCELLED="cancelled",s.FAILED="failed",s))(l||{}),C=(r=>(r.ACTIVE="active",r.CANCELLED="cancelled",r.DECLINED="declined",r.EXPIRED="expired",r.FROZEN="frozen",r.PENDING="pending",r.NOT_SUBMITTED="na",r))(C||{}),_=(i=>(i.STRIPE="stripe",i.PAYPAL="paypal",i.SHOPIFY="shopify",i))(_||{});var y=(g=>(g.SECOND="second",g.MINUTE="minute",g.HOUR="hour",g.DAY="day",g.WEEK="week",g.MONTH="month",g.QUARTER="quarter",g.YEAR="year",g))(y||{}),E=(e=>(e.TRACKED_PAGE_VIEWS="tracked.page_views",e.TRACKED_VIEW_CONTENTS="tracked.view_contents",e.TRACKED_ADD_TO_CARTS="tracked.add_to_carts",e.TRACKED_INITIATE_CHECKOUTS="tracked.initiate_checkouts",e.TRACKED_PURCHASES="tracked.purchases",e.TRACKED_REVENUE="tracked.revenue",e.TRACKED_SESSION_CONVERSION_RATE="tracked.session_conversion_rate",e.TRACKED_REVENUE_PER_VISITOR="tracked.revenue_per_visitor",e.TRACKED_REVENUE_PER_SESSION="tracked.revenue_per_session",e.TRACKED_UNIQUE_SESSIONS="tracked.sessions",e.TRACKED_UNIQUE_VISITORS="tracked.visitors",e.SHOPIFY_CUSTOMERS="shopify.customers",e.SHOPIFY_ABANDONED_CHECKOUTS="shopify.abandoned_checkouts",e.SHOPIFY_RETURNS="shopify.returns",e.SHOPIFY_RETURN_REVENUE="shopify.return_revenue",e.SHOPIFY_RETURN_RATE="shopify.return_rate",e.SHOPIFY_REFUNDS="shopify.refunds",e.SHOPIFY_REFUND_REVENUE="shopify.refunds_revenue",e.SHOPIFY_REFUND_RATE="shopify.refunds_rate",e.SHOPIFY_ORDERS="shopify.orders",e.SHOPIFY_REVENUE="shopify.revenue",e.SHOPIFY_AOV="shopify.average_order_value",e.SHOPIFY_TOP_PRODUCTS="shopify.top_products",e.SHOPIFY_CUSTOMER_LTV="shopify.customer_ltv",e.SHOPIFY_REPEAT_CUSTOMER_RATE="shopify.repeat_customer_rate",e.SITE_TTFB="site.ttfb",e.SITE_FCP="site.fcp",e.SITE_LCP="site.lcp",e.SITE_TIME_ON_SITE="site.time_on_site",e))(E||{}),b=(t=>(t.REFERRER="referrer",t.COUNTRY="country",t.POSTAL_CODE="postal_code",t.PROVINCE="province",t.DEVICE_MODEL="device_model",t.DEVICE_VENDOR="device_vendor",t.DEVICE_TYPE="device_type",t.BROWSER="browser",t.BROWSER_VERSION="browser_version",t.OS="OS",t.PAGE_PATH="path",t.PAGE_TITLE="title",t.QUERY_STRING="query",t.UTM_SOURCE="utm_source",t.UTM_MEDIUM="utm_medium",t.UTM_TERM="utm_term",t.UTM_CONTENT="utm_content",t.ADBLOCK_DETECTED="adblock_detected",t.TIMEZONE="timezone",t.LOCALE="locale",t))(b||{});var P=(o=>(o.debug="debug",o.error="error",o.info="info",o.trace="trace",o.warn="warn",o))(P||{}),W={trace:0,debug:1,info:2,warn:3,error:4};var v=(n=>(n.ADD_PAYMENT_INFO="add_payment_info",n.ADD_SHIPPING_INFO="add_shipping_info",n.ADD_TO_CART="add_to_cart",n.ADD_TO_WISHLIST="add_to_wishlist",n.INITIATE_CHECKOUT="initiate_checkout",n.LEAD="lead",n.LOGIN="login",n.PAGE_VIEW="page_view",n.PURCHASE="purchase",n.REFUND="refund",n.SEARCH="search",n.SIGN_UP="sign_up",n.VIEW_CART="view_cart",n.VIEW_CONTENT="view_content",n.SELECT_SHIPPING_METHOD="select_shipping_method",n.VIRTUALIZED_VIEWED_PAYMENT_FORM="virtualized_viewd_payment_form",n.METRIC="metric",n.WEB_VITAL="web_vital",n.LOG="log",n))(v||{});var X=["AED","ARS","AUD","BDT","BIF","BOB","BRL","CAD","CHF","CLP","CNY","COP","CRC","CZK","DKK","DZD","EGP","EUR","GBP","GTQ","HKD","HNL","HUF","IDR","ILS","INR","ISK","JPY","KES","KRW","KWD","KZT","MAD","MOP","MXN","MYR","NGN","NIO","NOK","NZD","PEN","PHP","PKR","PLN","PYG","QAR","RON","RUB","SAR","SEK","SGD","THB","TRY","TWD","USD","VES","VND","ZAR"];var h=(s=>(s.TRACKING="tracking",s.METRIC="metric",s.IDENTIFY="identify",s.LOG="log",s))(h||{});export{p as ACCOUNT_STATUS,h as ADTRACKIFY_EVENT_TYPE,v as ADTRACKIFY_STANDARD_EVENT,X as Currencies,u as CustomHTMLLocation,d as DESTINATIONS,b as DIMENSION,y as GRANULARITY,P as LogLevel,W as LogLevelId,E as MEASURE,_ as PAYMENT_GATEWAY,l as PAYMENT_STATUS,x as PLAN_BILLING_FREQUENCY,C as SUBSCRIPTION_STATUS,m as ShopifyAppInstallStatus,f as ShopifyAppSubscriptionStatus};
1
+ var p=(o=>(o.PENDING="pending",o.ACTIVE="active",o.INACTIVE="inactive",o))(p||{});var d=(i=>(i.FACEBOOK="facebook",i.TIKTOK="tiktok",i.GOOGLE_ADS="googleAds",i.GOOGLE_ANALYTICS_4="googleAnalytics4",i.HUBSPOT="hubspot",i.WEBHOOK="webhook",i.CUSTOM_HTML="customHTML",i.CUSTOM_JS="customJS",i.SNAPCHAT="snapchat",i.TWITTER="twitter",i.REDDIT="reddit",i.SCRIPT_TAG="scriptTag",i))(d||{});var u=(o=>(o.HEADER="header",o.FOOTER="footer",o.BODY="body",o))(u||{});var f=(a=>(a.STARTED="started",a.COMPLETED="completed",a.UNINSTALLED="uninstalled",a.FAILED="failed",a.NONE="none",a))(f||{}),m=(r=>(r.ACTIVE="active",r.CANCELLED="cancelled",r.DECLINED="declined",r.EXPIRED="expired",r.FROZEN="frozen",r.PENDING="pending",r.NOT_SUBMITTED="na",r))(m||{});var x=(c=>(c.MONTHLY="monthly",c.YEARLY="yearly",c))(x||{}),l=(s=>(s.CURRENT="current",s.PAST_DUE="past_due",s.CANCELLED="cancelled",s.FAILED="failed",s))(l||{}),C=(r=>(r.ACTIVE="active",r.CANCELLED="cancelled",r.DECLINED="declined",r.EXPIRED="expired",r.FROZEN="frozen",r.PENDING="pending",r.NOT_SUBMITTED="na",r))(C||{}),_=(o=>(o.STRIPE="stripe",o.PAYPAL="paypal",o.SHOPIFY="shopify",o))(_||{});var y=(g=>(g.SECOND="second",g.MINUTE="minute",g.HOUR="hour",g.DAY="day",g.WEEK="week",g.MONTH="month",g.QUARTER="quarter",g.YEAR="year",g))(y||{}),E=(e=>(e.TRACKED_PAGE_VIEWS="tracked.page_views",e.TRACKED_VIEW_CONTENTS="tracked.view_contents",e.TRACKED_ADD_TO_CARTS="tracked.add_to_carts",e.TRACKED_INITIATE_CHECKOUTS="tracked.initiate_checkouts",e.TRACKED_PURCHASES="tracked.purchases",e.TRACKED_REVENUE="tracked.revenue",e.TRACKED_SESSION_CONVERSION_RATE="tracked.session_conversion_rate",e.TRACKED_REVENUE_PER_VISITOR="tracked.revenue_per_visitor",e.TRACKED_REVENUE_PER_SESSION="tracked.revenue_per_session",e.TRACKED_UNIQUE_SESSIONS="tracked.sessions",e.TRACKED_UNIQUE_VISITORS="tracked.visitors",e.SHOPIFY_CUSTOMERS="shopify.customers",e.SHOPIFY_ABANDONED_CHECKOUTS="shopify.abandoned_checkouts",e.SHOPIFY_RETURNS="shopify.returns",e.SHOPIFY_RETURN_REVENUE="shopify.return_revenue",e.SHOPIFY_RETURN_RATE="shopify.return_rate",e.SHOPIFY_REFUNDS="shopify.refunds",e.SHOPIFY_REFUND_REVENUE="shopify.refunds_revenue",e.SHOPIFY_REFUND_RATE="shopify.refunds_rate",e.SHOPIFY_ORDERS="shopify.orders",e.SHOPIFY_REVENUE="shopify.revenue",e.SHOPIFY_AOV="shopify.average_order_value",e.SHOPIFY_TOP_PRODUCTS="shopify.top_products",e.SHOPIFY_CUSTOMER_LTV="shopify.customer_ltv",e.SHOPIFY_REPEAT_CUSTOMER_RATE="shopify.repeat_customer_rate",e.SITE_TTFB="site.ttfb",e.SITE_FCP="site.fcp",e.SITE_LCP="site.lcp",e.SITE_TIME_ON_SITE="site.time_on_site",e))(E||{}),b=(t=>(t.REFERRER="referrer",t.COUNTRY="country",t.POSTAL_CODE="postal_code",t.PROVINCE="province",t.DEVICE_MODEL="device_model",t.DEVICE_VENDOR="device_vendor",t.DEVICE_TYPE="device_type",t.BROWSER="browser",t.BROWSER_VERSION="browser_version",t.OS="OS",t.PAGE_PATH="path",t.PAGE_TITLE="title",t.QUERY_STRING="query",t.UTM_SOURCE="utm_source",t.UTM_MEDIUM="utm_medium",t.UTM_TERM="utm_term",t.UTM_CONTENT="utm_content",t.ADBLOCK_DETECTED="adblock_detected",t.TIMEZONE="timezone",t.LOCALE="locale",t))(b||{});var P=(a=>(a.debug="debug",a.error="error",a.info="info",a.trace="trace",a.warn="warn",a))(P||{}),W={trace:0,debug:1,info:2,warn:3,error:4};var v=(n=>(n.ADD_PAYMENT_INFO="add_payment_info",n.ADD_SHIPPING_INFO="add_shipping_info",n.ADD_TO_CART="add_to_cart",n.ADD_TO_WISHLIST="add_to_wishlist",n.INITIATE_CHECKOUT="initiate_checkout",n.LEAD="lead",n.LOGIN="login",n.PAGE_VIEW="page_view",n.PURCHASE="purchase",n.REFUND="refund",n.SEARCH="search",n.SIGN_UP="sign_up",n.VIEW_CART="view_cart",n.VIEW_CONTENT="view_content",n.SELECT_SHIPPING_METHOD="select_shipping_method",n.VIRTUALIZED_VIEWED_PAYMENT_FORM="virtualized_viewd_payment_form",n.METRIC="metric",n.WEB_VITAL="web_vital",n.LOG="log",n))(v||{});var X=["AED","ARS","AUD","BDT","BIF","BOB","BRL","CAD","CHF","CLP","CNY","COP","CRC","CZK","DKK","DZD","EGP","EUR","GBP","GTQ","HKD","HNL","HUF","IDR","ILS","INR","ISK","JPY","KES","KRW","KWD","KZT","MAD","MOP","MXN","MYR","NGN","NIO","NOK","NZD","PEN","PHP","PKR","PLN","PYG","QAR","RON","RUB","SAR","SEK","SGD","THB","TRY","TWD","USD","VES","VND","ZAR"];var h=(s=>(s.TRACKING="tracking",s.METRIC="metric",s.IDENTIFY="identify",s.LOG="log",s))(h||{});export{p as ACCOUNT_STATUS,h as ADTRACKIFY_EVENT_TYPE,v as ADTRACKIFY_STANDARD_EVENT,X as Currencies,u as CustomHTMLLocation,d as DESTINATIONS,b as DIMENSION,y as GRANULARITY,P as LogLevel,W as LogLevelId,E as MEASURE,_ as PAYMENT_GATEWAY,l as PAYMENT_STATUS,x as PLAN_BILLING_FREQUENCY,C as SUBSCRIPTION_STATUS,f as ShopifyAppInstallStatus,m as ShopifyAppSubscriptionStatus};
2
2
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/types/api/account.ts", "../src/types/api/destinations/destinations.ts", "../src/types/api/destinations/third-party-destination-configs.ts", "../src/types/api/shopify-app-install.ts", "../src/types/api/subscription.ts", "../src/types/api/query.ts", "../src/types/common/logger.ts", "../src/types/adtrackify-standard-events.ts", "../src/types/tracking-events/tracking-event-type.ts", "../src/types/adtrackify-event-types.ts"],
4
- "sourcesContent": ["import { Subscription } from './subscription';\n\nexport interface Account {\n id: string,\n accountName: string,\n companyName?: string,\n accountStatus: ACCOUNT_STATUS,\n primaryEmail: string,\n publicApiKey?: string,\n subscriptionId?: string,\n pixels?: Pixel[],\n subscription?: Subscription;\n ownerId?: string,\n createdAt: string,\n updatedAt: string;\n}\n\n\nexport interface Pixel {\n id: string;\n accountId: string;\n name: string;\n createdAt: string,\n updatedAt: string;\n}\n\nexport enum ACCOUNT_STATUS {\n PENDING = 'pending',\n ACTIVE = 'active',\n INACTIVE = 'inactive'\n}", "\r\nexport interface Destination {\r\n id: string,\r\n accountId: string,\r\n pixelId: string,\r\n destination: string;\r\n displayName?: string,\r\n enabled: boolean;\r\n configuration?: UserDestinationConfiguration,\r\n createdAt: string,\r\n updatedAt: string;\r\n}\r\n\r\nexport enum DESTINATIONS {\r\n FACEBOOK = 'facebook',\r\n TIKTOK = 'tiktok',\r\n GOOGLE_ADS = 'googleAds',\r\n GOOGLE_ANALYTICS_4 = 'googleAnalytics4',\r\n HUBSPOT = 'hubspot',\r\n WEBHOOK = 'webhook',\r\n CUSTOM_HTML = 'customHTML',\r\n CUSTOM_JS = 'customJS',\r\n SNAPCHAT = 'snapchat',\r\n TWITTER = 'twitter',\r\n REDDIT = 'reddit'\r\n}\r\n\r\nexport interface UserDestinationConfiguration {\r\n [ key: string ]: any;\r\n eventBlacklist?: string[];\r\n events?: EventConfiguration[];\r\n trigger?: DestinationTriggerConfiguration;\r\n}\r\n\r\nexport interface DestinationTriggerConfiguration {\r\n shopify?: ShopifyTriggerConfiguration;\r\n exludeDomains?: string[];\r\n excludePages?: string[];\r\n domains?: string[];\r\n pages?: string[];\r\n}\r\n\r\nexport interface ShopifyTriggerConfiguration {\r\n enabled: boolean;\r\n collections?: string[];\r\n tags?: string[];\r\n}\r\n\r\n\r\nexport interface EventConfiguration {\r\n sourceEventName: string;\r\n exclude?: boolean;\r\n sample: EventSampleConfiguration;\r\n transformations?: EventTransformation[];\r\n}\r\n\r\nexport interface EventTransformation {\r\n transformationEventName: string;\r\n enabled: boolean;\r\n}\r\n\r\nexport interface EventSampleConfiguration {\r\n enabled: boolean;\r\n rate: number;\r\n}\r\n\r\n", "import { Destination, UserDestinationConfiguration } from './destinations';\r\n\r\nexport interface AdTrackifyFacebookDestination extends Destination {\r\n configuration: FacebookPixelConfiguration;\r\n}\r\n\r\nexport interface AdTrackifyTikTokDestination extends Destination {\r\n configuration: TiktokPixelConfiguration;\r\n}\r\n\r\nexport interface AdTrackifyGoogleAnalytics4Destination extends Destination {\r\n configuration: GoogleAnalytics4Configuration;\r\n}\r\n\r\n// Destination Specific configurations below\r\nexport interface FacebookPixelConfiguration extends UserDestinationConfiguration {\r\n apiAccessToken?: string;\r\n enableConversionAPI: boolean;\r\n pixelId: string;\r\n}\r\n\r\nexport interface TiktokPixelConfiguration extends UserDestinationConfiguration {\r\n apiAccessToken?: string;\r\n enableConversionAPI: boolean;\r\n pixelId: string;\r\n}\r\n\r\nexport interface GoogleAnalytics4Configuration extends UserDestinationConfiguration {\r\n apiSecret: string;\r\n measurementId: string;\r\n}\r\n\r\nexport interface GoogleAdsConfiguration extends UserDestinationConfiguration {\r\n pixelId: string;\r\n conversionID: string;\r\n}\r\n\r\nexport interface HubspotPixelConfiguration extends UserDestinationConfiguration {\r\n hubspotId: string;\r\n}\r\n\r\nexport interface SnapchatPixelConfiguration extends UserDestinationConfiguration {\r\n snapchatPixelId: string;\r\n}\r\n\r\nexport interface TwitterPixelConfiguration extends UserDestinationConfiguration {\r\n twitterPixelId: string;\r\n}\r\n\r\nexport interface WebhookConfiguration extends UserDestinationConfiguration {\r\n webhookUrl: string;\r\n}\r\n\r\nexport interface CustomHTMLConfiguration extends UserDestinationConfiguration {\r\n html: string;\r\n location: CustomHTMLLocation;\r\n}\r\n\r\nexport interface CustomJSConfiguration extends UserDestinationConfiguration {\r\n script: string;\r\n async: boolean;\r\n defer: boolean;\r\n location: CustomHTMLLocation;\r\n}\r\n\r\nexport enum CustomHTMLLocation {\r\n HEADER = 'header',\r\n FOOTER = 'footer',\r\n BODY = 'body'\r\n}\r\n\r\n", "export interface ShopifyAppInstall {\n shopifyAppInstallId: string;\n shop: string;\n accessToken?: string;\n appStatus?: string;\n appSubscriptionStatus?: ShopifyAppSubscriptionStatus;\n code?: string;\n hmac?: string;\n host?: string;\n installRequest?: ShopifyInstallRequest;\n isAppEnabled?: boolean;\n pixelId?: string;\n shopInfo?: any;\n state?: string;\n timestamp?: number;\n createdAt: string;\n updatedAt: string;\n}\n\nexport enum ShopifyAppInstallStatus {\n STARTED = 'started',\n COMPLETED = 'completed',\n UNINSTALLED = 'uninstalled',\n FAILED = 'failed',\n NONE = 'none'\n}\nexport enum ShopifyAppSubscriptionStatus {\n ACTIVE = 'active', // approved and billed to shop\n CANCELLED = 'cancelled', // cancelled, uninstalled or cancellation\n DECLINED = 'declined', // subscription declined by merchant\n EXPIRED = 'expired', //wasn't approved within two days of being created\n FROZEN = 'frozen', //on hold due to not payment\n PENDING = 'pending', // pending approval\n NOT_SUBMITTED = 'na' // billing has not yet been attempted\n}\n\nexport interface ShopifyInstallRequest {\n shop?: string;\n session?: string;\n hmac?: string;\n host?: string;\n nonce?: string;\n timestamp?: string;\n status?: string;\n}\n\nexport interface ShopifyStoreInfo {\n // TBD based on shopify api\n [ key: string ]: any;\n}", "\nexport interface Subscription {\n id: string,\n accountId?: string,\n shopifyAppInstallId?: string,\n shopifyDomain?: string,\n stripeCustomerId?: string,\n stripeSubscriptionId?: string,\n stripeCompletedCheckoutSession?: any;\n shopifyChargeId?: string;\n subscriptionPlan?: SubscriptionPlan,\n status?: SUBSCRIPTION_STATUS,\n paymentStatus?: PAYMENT_STATUS,\n paymentGateway?: PAYMENT_GATEWAY,\n createdAt: string,\n updatedAt: string,\n\n}\nexport interface SubscriptionPlan {\n id: number;\n planName: string;\n displayName: string;\n description: string;\n sku: string;\n price: string;\n displayPrice: string;\n billingFrequency: PLAN_BILLING_FREQUENCY;\n trialLengthDays?: number;\n trialRequiresCreditCard?: boolean;\n planDesc?: string[];\n unitPriceText?: string;\n isHighlighted?: boolean;\n isBanner?: boolean;\n bannerText?: string;\n bannerColor?: string;\n stripePriceId?: string;\n stripeProductId?: string;\n}\n\nexport enum PLAN_BILLING_FREQUENCY {\n MONTHLY = 'monthly',\n YEARLY = 'yearly'\n}\n\nexport enum PAYMENT_STATUS {\n CURRENT = 'current',\n PAST_DUE = 'past_due',\n CANCELLED = 'cancelled',\n FAILED = 'failed'\n}\n\nexport enum SUBSCRIPTION_STATUS {\n ACTIVE = 'active', // approved and billed to shop\n CANCELLED = 'cancelled', // cancelled, uninstalled or cancellation\n DECLINED = 'declined', // subscription declined by merchant\n EXPIRED = 'expired', //wasn't approved within two days of being created\n FROZEN = 'frozen', //on hold due to not payment\n PENDING = 'pending', // pending approval\n NOT_SUBMITTED = 'na' // billing has not yet been attempted\n}\nexport enum PAYMENT_GATEWAY {\n STRIPE = 'stripe',\n PAYPAL = 'paypal',\n SHOPIFY = 'shopify'\n}\n", "export interface DateRange {\n start: string; // must be in UTC string format\n end: string; // must be in UTC string format\n}\n\nexport enum GRANULARITY {\n SECOND = 'second',\n MINUTE = 'minute',\n HOUR = 'hour',\n DAY = 'day',\n WEEK = 'week',\n MONTH = 'month',\n QUARTER = 'quarter',\n YEAR = 'year',\n}\n\nexport enum MEASURE {\n TRACKED_PAGE_VIEWS = 'tracked.page_views',\n TRACKED_VIEW_CONTENTS = 'tracked.view_contents',\n TRACKED_ADD_TO_CARTS = 'tracked.add_to_carts',\n TRACKED_INITIATE_CHECKOUTS = 'tracked.initiate_checkouts',\n TRACKED_PURCHASES = 'tracked.purchases',\n TRACKED_REVENUE = 'tracked.revenue',\n TRACKED_SESSION_CONVERSION_RATE = 'tracked.session_conversion_rate',\n TRACKED_REVENUE_PER_VISITOR = 'tracked.revenue_per_visitor',\n TRACKED_REVENUE_PER_SESSION = 'tracked.revenue_per_session',\n TRACKED_UNIQUE_SESSIONS = 'tracked.sessions',\n TRACKED_UNIQUE_VISITORS = 'tracked.visitors',\n\n SHOPIFY_CUSTOMERS = 'shopify.customers',\n SHOPIFY_ABANDONED_CHECKOUTS = 'shopify.abandoned_checkouts',\n SHOPIFY_RETURNS = 'shopify.returns',\n SHOPIFY_RETURN_REVENUE = 'shopify.return_revenue',\n SHOPIFY_RETURN_RATE = 'shopify.return_rate',\n SHOPIFY_REFUNDS = 'shopify.refunds',\n SHOPIFY_REFUND_REVENUE = 'shopify.refunds_revenue',\n SHOPIFY_REFUND_RATE = 'shopify.refunds_rate',\n SHOPIFY_ORDERS = 'shopify.orders',\n SHOPIFY_REVENUE = 'shopify.revenue',\n SHOPIFY_AOV = 'shopify.average_order_value',\n SHOPIFY_TOP_PRODUCTS = 'shopify.top_products',\n SHOPIFY_CUSTOMER_LTV = 'shopify.customer_ltv',\n SHOPIFY_REPEAT_CUSTOMER_RATE = 'shopify.repeat_customer_rate',\n\n SITE_TTFB = 'site.ttfb',\n SITE_FCP = 'site.fcp',\n SITE_LCP = 'site.lcp',\n SITE_TIME_ON_SITE = 'site.time_on_site',\n}\n\nexport interface Query {\n pixelId: string;\n measures: MEASURE[];\n dateRange: DateRange;\n compareDateRange?: DateRange;\n granularity?: GRANULARITY;\n dimensions?: DIMENSION[],\n filters?: any[];\n}\n\nexport type MeasureDataRow = {\n [ key in MEASURE ]: number;\n} & {\n 'dt': string;\n};\n\nexport interface MeasureData {\n primaryAvg: number;\n compareAvg: number;\n primarySum: number;\n compareSum: number;\n percentDiff: number;\n primary?: MeasureDataRow[],\n compare?: MeasureDataRow[];\n}\nexport interface MeasureResult {\n measure: MEASURE;\n granularity: GRANULARITY;\n dateRange: DateRange;\n compareDateRange?: DateRange;\n success: boolean;\n data: MeasureData;\n}\n\nexport enum DIMENSION {\n REFERRER = 'referrer',\n COUNTRY = 'country',\n POSTAL_CODE = 'postal_code',\n PROVINCE = 'province',\n DEVICE_MODEL = 'device_model',\n DEVICE_VENDOR = 'device_vendor',\n DEVICE_TYPE = 'device_type',\n BROWSER = 'browser',\n BROWSER_VERSION = 'browser_version',\n OS = 'OS',\n PAGE_PATH = 'path',\n PAGE_TITLE = 'title',\n QUERY_STRING = 'query',\n UTM_SOURCE = 'utm_source',\n UTM_MEDIUM = 'utm_medium',\n UTM_TERM = 'utm_term',\n UTM_CONTENT = 'utm_content',\n ADBLOCK_DETECTED = 'adblock_detected',\n TIMEZONE = 'timezone',\n LOCALE = 'locale',\n}\n", "export interface LogContext {\n [x: string]: LogContextValue;\n}\n\nexport type LogContextValue = string | number | boolean | LogContext | LogContextArray | undefined | null;\n\nexport interface LogContextArray extends Array<LogContextValue> {}\n\nexport enum LogLevel {\n debug = 'debug',\n error = 'error',\n info = 'info',\n trace = 'trace',\n warn = 'warn',\n}\nexport const LogLevelId = {\n trace: 0,\n debug: 1,\n info: 2,\n warn: 3,\n error: 4,\n};\n\nexport interface LogMessage {\n message: string;\n logLevel: LogLevel;\n context?: LogContext;\n}\n", "export enum ADTRACKIFY_STANDARD_EVENT {\n ADD_PAYMENT_INFO = 'add_payment_info',\n ADD_SHIPPING_INFO = 'add_shipping_info',\n ADD_TO_CART = 'add_to_cart',\n ADD_TO_WISHLIST = 'add_to_wishlist',\n // COMPLETE_REGISTRATION: 'complete_registration',\n // CONTACT: 'contact',\n INITIATE_CHECKOUT = 'initiate_checkout',\n LEAD = 'lead',\n LOGIN = 'login',\n PAGE_VIEW = 'page_view',\n PURCHASE = 'purchase',\n REFUND = 'refund',\n SEARCH = 'search',\n // START_TRIAL: 'start_trial',\n // SUBMIT_APPLICATION: 'submit_application',\n // SUBSCRIBE: 'subscribe',\n SIGN_UP = 'sign_up',\n VIEW_CART = 'view_cart',\n VIEW_CONTENT = 'view_content',\n\n //\n SELECT_SHIPPING_METHOD = 'select_shipping_method',\n VIRTUALIZED_VIEWED_PAYMENT_FORM = 'virtualized_viewd_payment_form',\n\n METRIC = 'metric',\n WEB_VITAL = 'web_vital',\n\n // LOG\n LOG = 'log',\n}\n", "import { ADTRACKIFY_STANDARD_EVENT } from '../adtrackify-standard-events';\nimport { ADTRACKIFY_EVENT_TYPE } from '../adtrackify-event-types';\nimport { AddressInfo } from '../common/address';\nimport { TrackingEventContext } from './tracking-event-context';\nimport { TrackingEventIdentity } from './tracking-event-identity';\nimport { LogMessage } from '../common/logger';\n\nexport interface Event {\n id: string;\n type: ADTRACKIFY_EVENT_TYPE;\n name: ADTRACKIFY_STANDARD_EVENT;\n pixelId: string;\n sentAtEpoch?: number;\n collectedAtEpoch?: number;\n collectedAt?: string;\n version: string;\n context?: TrackingEventContext;\n}\n\nexport interface TrackingEvent extends Event {\n identity?: TrackingEventIdentity;\n data?: TrackingEventData;\n testCode?: string;\n}\n\nexport interface MetricEvent extends Event {\n data: MetricEventData;\n}\n\nexport interface LogEvent extends Event {\n data: LogEventData;\n}\n\nexport interface TrackingEventData {\n [ key: string ]: any;\n firstName?: string;\n lastName?: string;\n email?: string;\n phone?: string;\n addresses?: AddressInfo[];\n cartId?: string;\n transactionId?: string;\n orderId?: string;\n orderName?: string;\n affiliation?: string;\n currency?: string;\n price?: number;\n subtotalPrice?: number;\n value?: number;\n tax?: number;\n shipping?: number;\n coupon?: string;\n paymentType?: string;\n shippingTier?: string;\n creativeName?: string;\n creativeSlot?: string;\n locationId?: string;\n promotionId?: string;\n promotionName?: string;\n items?: GenericContent[];\n}\n\nexport interface GenericContent {\n [ key: string ]: any;\n content_type?: string;\n id?: string;\n name?: string;\n sku?: string;\n brand?: string;\n variant?: string;\n coupon?: string;\n currency?: string;\n discount?: number;\n index?: number;\n value?: number;\n price?: number;\n quantity?: number;\n url?: string;\n locationId?: string;\n imageUrl?: string;\n category?: string;\n category2?: string;\n category3?: string;\n category4?: string;\n category5?: string;\n}\n\nexport interface LogEventData extends LogMessage { }\nexport interface MetricEventData {\n [ key: string ]: any;\n name: string;\n value: number;\n}\n\nexport const Currencies: string[] = [\n 'AED',\n 'ARS',\n 'AUD',\n 'BDT',\n 'BIF',\n 'BOB',\n 'BRL',\n 'CAD',\n 'CHF',\n 'CLP',\n 'CNY',\n 'COP',\n 'CRC',\n 'CZK',\n 'DKK',\n 'DZD',\n 'EGP',\n 'EUR',\n 'GBP',\n 'GTQ',\n 'HKD',\n 'HNL',\n 'HUF',\n 'IDR',\n 'ILS',\n 'INR',\n 'ISK',\n 'JPY',\n 'KES',\n 'KRW',\n 'KWD',\n 'KZT',\n 'MAD',\n 'MOP',\n 'MXN',\n 'MYR',\n 'NGN',\n 'NIO',\n 'NOK',\n 'NZD',\n 'PEN',\n 'PHP',\n 'PKR',\n 'PLN',\n 'PYG',\n 'QAR',\n 'RON',\n 'RUB',\n 'SAR',\n 'SEK',\n 'SGD',\n 'THB',\n 'TRY',\n 'TWD',\n 'USD',\n 'VES',\n 'VND',\n 'ZAR',\n];\n", "export enum ADTRACKIFY_EVENT_TYPE {\n TRACKING = 'tracking',\n METRIC = 'metric',\n IDENTIFY = 'identify',\n LOG = 'log',\n}\n"],
5
- "mappings": "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",
4
+ "sourcesContent": ["import { Subscription } from './subscription';\n\nexport interface Account {\n id: string,\n accountName: string,\n companyName?: string,\n accountStatus: ACCOUNT_STATUS,\n primaryEmail: string,\n publicApiKey?: string,\n subscriptionId?: string,\n pixels?: Pixel[],\n subscription?: Subscription;\n ownerId?: string,\n createdAt: string,\n updatedAt: string;\n}\n\n\nexport interface Pixel {\n id: string;\n accountId: string;\n name: string;\n createdAt: string,\n updatedAt: string;\n}\n\nexport enum ACCOUNT_STATUS {\n PENDING = 'pending',\n ACTIVE = 'active',\n INACTIVE = 'inactive'\n}", "\nexport interface Destination {\n id: string,\n accountId: string,\n pixelId: string,\n destination: string;\n displayName?: string,\n enabled: boolean;\n configuration?: UserDestinationConfiguration,\n createdAt: string,\n updatedAt: string;\n}\n\nexport enum DESTINATIONS {\n FACEBOOK = 'facebook',\n TIKTOK = 'tiktok',\n GOOGLE_ADS = 'googleAds',\n GOOGLE_ANALYTICS_4 = 'googleAnalytics4',\n HUBSPOT = 'hubspot',\n WEBHOOK = 'webhook',\n CUSTOM_HTML = 'customHTML',\n CUSTOM_JS = 'customJS',\n SNAPCHAT = 'snapchat',\n TWITTER = 'twitter',\n REDDIT = 'reddit',\n SCRIPT_TAG = 'scriptTag'\n}\n\nexport interface UserDestinationConfiguration {\n [ key: string ]: any;\n eventBlacklist?: string[];\n events?: EventConfiguration[];\n trigger?: DestinationTriggerConfiguration;\n}\n\nexport interface DestinationTriggerConfiguration {\n shopify?: ShopifyTriggerConfiguration;\n exludeDomains?: string[];\n excludePages?: string[];\n domains?: string[];\n pages?: string[];\n}\n\nexport interface ShopifyTriggerConfiguration {\n enabled: boolean;\n collections?: string[];\n tags?: string[];\n}\n\n\nexport interface EventConfiguration {\n sourceEventName: string;\n exclude?: boolean;\n sample: EventSampleConfiguration;\n transformations?: EventTransformation[];\n}\n\nexport interface EventTransformation {\n transformationEventName: string;\n enabled: boolean;\n}\n\nexport interface EventSampleConfiguration {\n enabled: boolean;\n rate: number;\n}\n\n", "import { Destination, UserDestinationConfiguration } from './destinations';\n\nexport interface AdTrackifyFacebookDestination extends Destination {\n configuration: FacebookPixelConfiguration;\n}\n\nexport interface AdTrackifyTikTokDestination extends Destination {\n configuration: TiktokPixelConfiguration;\n}\n\nexport interface AdTrackifyGoogleAnalytics4Destination extends Destination {\n configuration: GoogleAnalytics4Configuration;\n}\n\n// Destination Specific configurations below\nexport interface FacebookPixelConfiguration extends UserDestinationConfiguration {\n apiAccessToken?: string;\n enableConversionAPI: boolean;\n pixelId: string;\n}\n\nexport interface TiktokPixelConfiguration extends UserDestinationConfiguration {\n apiAccessToken?: string;\n enableConversionAPI: boolean;\n pixelId: string;\n}\n\nexport interface GoogleAnalytics4Configuration extends UserDestinationConfiguration {\n apiSecret: string;\n measurementId: string;\n}\n\nexport interface GoogleAdsConfiguration extends UserDestinationConfiguration {\n pixelId: string;\n conversionID: string;\n}\n\nexport interface HubspotPixelConfiguration extends UserDestinationConfiguration {\n hubspotId: string;\n}\n\nexport interface SnapchatPixelConfiguration extends UserDestinationConfiguration {\n snapchatPixelId: string;\n}\n\nexport interface TwitterPixelConfiguration extends UserDestinationConfiguration {\n twitterPixelId: string;\n}\n\nexport interface WebhookConfiguration extends UserDestinationConfiguration {\n webhookUrl: string;\n}\n\nexport interface CustomHTMLConfiguration extends UserDestinationConfiguration {\n html: string;\n location: CustomHTMLLocation;\n}\n\nexport interface CustomJSConfiguration extends UserDestinationConfiguration {\n script: string;\n location: CustomHTMLLocation;\n}\n\nexport interface ScriptTagConfiguration extends UserDestinationConfiguration {\n script: string;\n location: CustomHTMLLocation;\n}\n\nexport enum CustomHTMLLocation {\n HEADER = 'header',\n FOOTER = 'footer',\n BODY = 'body'\n}\n\n", "export interface ShopifyAppInstall {\n shopifyAppInstallId: string;\n shop: string;\n accessToken?: string;\n appStatus?: string;\n appSubscriptionStatus?: ShopifyAppSubscriptionStatus;\n code?: string;\n hmac?: string;\n host?: string;\n installRequest?: ShopifyInstallRequest;\n isAppEnabled?: boolean;\n pixelId?: string;\n shopInfo?: any;\n state?: string;\n timestamp?: number;\n createdAt: string;\n updatedAt: string;\n}\n\nexport enum ShopifyAppInstallStatus {\n STARTED = 'started',\n COMPLETED = 'completed',\n UNINSTALLED = 'uninstalled',\n FAILED = 'failed',\n NONE = 'none'\n}\nexport enum ShopifyAppSubscriptionStatus {\n ACTIVE = 'active', // approved and billed to shop\n CANCELLED = 'cancelled', // cancelled, uninstalled or cancellation\n DECLINED = 'declined', // subscription declined by merchant\n EXPIRED = 'expired', //wasn't approved within two days of being created\n FROZEN = 'frozen', //on hold due to not payment\n PENDING = 'pending', // pending approval\n NOT_SUBMITTED = 'na' // billing has not yet been attempted\n}\n\nexport interface ShopifyInstallRequest {\n shop?: string;\n session?: string;\n hmac?: string;\n host?: string;\n nonce?: string;\n timestamp?: string;\n status?: string;\n}\n\nexport interface ShopifyStoreInfo {\n // TBD based on shopify api\n [ key: string ]: any;\n}", "\nexport interface Subscription {\n id: string,\n accountId?: string,\n shopifyAppInstallId?: string,\n shopifyDomain?: string,\n stripeCustomerId?: string,\n stripeSubscriptionId?: string,\n stripeCompletedCheckoutSession?: any;\n shopifyChargeId?: string;\n subscriptionPlan?: SubscriptionPlan,\n status?: SUBSCRIPTION_STATUS,\n paymentStatus?: PAYMENT_STATUS,\n paymentGateway?: PAYMENT_GATEWAY,\n createdAt: string,\n updatedAt: string,\n\n}\nexport interface SubscriptionPlan {\n id: number;\n planName: string;\n displayName: string;\n description: string;\n sku: string;\n price: string;\n displayPrice: string;\n billingFrequency: PLAN_BILLING_FREQUENCY;\n trialLengthDays?: number;\n trialRequiresCreditCard?: boolean;\n planDesc?: string[];\n unitPriceText?: string;\n isHighlighted?: boolean;\n isBanner?: boolean;\n bannerText?: string;\n bannerColor?: string;\n stripePriceId?: string;\n stripeProductId?: string;\n}\n\nexport enum PLAN_BILLING_FREQUENCY {\n MONTHLY = 'monthly',\n YEARLY = 'yearly'\n}\n\nexport enum PAYMENT_STATUS {\n CURRENT = 'current',\n PAST_DUE = 'past_due',\n CANCELLED = 'cancelled',\n FAILED = 'failed'\n}\n\nexport enum SUBSCRIPTION_STATUS {\n ACTIVE = 'active', // approved and billed to shop\n CANCELLED = 'cancelled', // cancelled, uninstalled or cancellation\n DECLINED = 'declined', // subscription declined by merchant\n EXPIRED = 'expired', //wasn't approved within two days of being created\n FROZEN = 'frozen', //on hold due to not payment\n PENDING = 'pending', // pending approval\n NOT_SUBMITTED = 'na' // billing has not yet been attempted\n}\nexport enum PAYMENT_GATEWAY {\n STRIPE = 'stripe',\n PAYPAL = 'paypal',\n SHOPIFY = 'shopify'\n}\n", "export interface DateRange {\n start: string; // must be in UTC string format\n end: string; // must be in UTC string format\n}\n\nexport enum GRANULARITY {\n SECOND = 'second',\n MINUTE = 'minute',\n HOUR = 'hour',\n DAY = 'day',\n WEEK = 'week',\n MONTH = 'month',\n QUARTER = 'quarter',\n YEAR = 'year',\n}\n\nexport enum MEASURE {\n TRACKED_PAGE_VIEWS = 'tracked.page_views',\n TRACKED_VIEW_CONTENTS = 'tracked.view_contents',\n TRACKED_ADD_TO_CARTS = 'tracked.add_to_carts',\n TRACKED_INITIATE_CHECKOUTS = 'tracked.initiate_checkouts',\n TRACKED_PURCHASES = 'tracked.purchases',\n TRACKED_REVENUE = 'tracked.revenue',\n TRACKED_SESSION_CONVERSION_RATE = 'tracked.session_conversion_rate',\n TRACKED_REVENUE_PER_VISITOR = 'tracked.revenue_per_visitor',\n TRACKED_REVENUE_PER_SESSION = 'tracked.revenue_per_session',\n TRACKED_UNIQUE_SESSIONS = 'tracked.sessions',\n TRACKED_UNIQUE_VISITORS = 'tracked.visitors',\n\n SHOPIFY_CUSTOMERS = 'shopify.customers',\n SHOPIFY_ABANDONED_CHECKOUTS = 'shopify.abandoned_checkouts',\n SHOPIFY_RETURNS = 'shopify.returns',\n SHOPIFY_RETURN_REVENUE = 'shopify.return_revenue',\n SHOPIFY_RETURN_RATE = 'shopify.return_rate',\n SHOPIFY_REFUNDS = 'shopify.refunds',\n SHOPIFY_REFUND_REVENUE = 'shopify.refunds_revenue',\n SHOPIFY_REFUND_RATE = 'shopify.refunds_rate',\n SHOPIFY_ORDERS = 'shopify.orders',\n SHOPIFY_REVENUE = 'shopify.revenue',\n SHOPIFY_AOV = 'shopify.average_order_value',\n SHOPIFY_TOP_PRODUCTS = 'shopify.top_products',\n SHOPIFY_CUSTOMER_LTV = 'shopify.customer_ltv',\n SHOPIFY_REPEAT_CUSTOMER_RATE = 'shopify.repeat_customer_rate',\n\n SITE_TTFB = 'site.ttfb',\n SITE_FCP = 'site.fcp',\n SITE_LCP = 'site.lcp',\n SITE_TIME_ON_SITE = 'site.time_on_site',\n}\n\nexport interface Query {\n pixelId: string;\n measures: MEASURE[];\n dateRange: DateRange;\n compareDateRange?: DateRange;\n granularity?: GRANULARITY;\n dimensions?: DIMENSION[],\n filters?: any[];\n}\n\nexport interface MeasureDataRow {\n [ key: string ]: number | string,\n 'dt': string,\n}\n\nexport interface MeasureData {\n primaryAvg: number;\n compareAvg: number;\n primarySum: number;\n compareSum: number;\n percentDiff: number;\n primary?: MeasureDataRow[],\n compare?: MeasureDataRow[];\n}\nexport interface MeasureResult {\n measure: MEASURE;\n granularity: GRANULARITY;\n dateRange: DateRange;\n compareDateRange?: DateRange;\n success: boolean;\n data: MeasureData;\n}\n\nexport enum DIMENSION {\n REFERRER = 'referrer',\n COUNTRY = 'country',\n POSTAL_CODE = 'postal_code',\n PROVINCE = 'province',\n DEVICE_MODEL = 'device_model',\n DEVICE_VENDOR = 'device_vendor',\n DEVICE_TYPE = 'device_type',\n BROWSER = 'browser',\n BROWSER_VERSION = 'browser_version',\n OS = 'OS',\n PAGE_PATH = 'path',\n PAGE_TITLE = 'title',\n QUERY_STRING = 'query',\n UTM_SOURCE = 'utm_source',\n UTM_MEDIUM = 'utm_medium',\n UTM_TERM = 'utm_term',\n UTM_CONTENT = 'utm_content',\n ADBLOCK_DETECTED = 'adblock_detected',\n TIMEZONE = 'timezone',\n LOCALE = 'locale',\n}\n", "export interface LogContext {\n [x: string]: LogContextValue;\n}\n\nexport type LogContextValue = string | number | boolean | LogContext | LogContextArray | undefined | null;\n\nexport interface LogContextArray extends Array<LogContextValue> {}\n\nexport enum LogLevel {\n debug = 'debug',\n error = 'error',\n info = 'info',\n trace = 'trace',\n warn = 'warn',\n}\nexport const LogLevelId = {\n trace: 0,\n debug: 1,\n info: 2,\n warn: 3,\n error: 4,\n};\n\nexport interface LogMessage {\n message: string;\n logLevel: LogLevel;\n context?: LogContext;\n}\n", "export enum ADTRACKIFY_STANDARD_EVENT {\n ADD_PAYMENT_INFO = 'add_payment_info',\n ADD_SHIPPING_INFO = 'add_shipping_info',\n ADD_TO_CART = 'add_to_cart',\n ADD_TO_WISHLIST = 'add_to_wishlist',\n // COMPLETE_REGISTRATION: 'complete_registration',\n // CONTACT: 'contact',\n INITIATE_CHECKOUT = 'initiate_checkout',\n LEAD = 'lead',\n LOGIN = 'login',\n PAGE_VIEW = 'page_view',\n PURCHASE = 'purchase',\n REFUND = 'refund',\n SEARCH = 'search',\n // START_TRIAL: 'start_trial',\n // SUBMIT_APPLICATION: 'submit_application',\n // SUBSCRIBE: 'subscribe',\n SIGN_UP = 'sign_up',\n VIEW_CART = 'view_cart',\n VIEW_CONTENT = 'view_content',\n\n //\n SELECT_SHIPPING_METHOD = 'select_shipping_method',\n VIRTUALIZED_VIEWED_PAYMENT_FORM = 'virtualized_viewd_payment_form',\n\n METRIC = 'metric',\n WEB_VITAL = 'web_vital',\n\n // LOG\n LOG = 'log',\n}\n", "import { ADTRACKIFY_STANDARD_EVENT } from '../adtrackify-standard-events';\nimport { ADTRACKIFY_EVENT_TYPE } from '../adtrackify-event-types';\nimport { AddressInfo } from '../common/address';\nimport { TrackingEventContext } from './tracking-event-context';\nimport { TrackingEventIdentity } from './tracking-event-identity';\nimport { LogMessage } from '../common/logger';\n\nexport interface Event {\n id: string;\n type: ADTRACKIFY_EVENT_TYPE;\n name: ADTRACKIFY_STANDARD_EVENT;\n pixelId: string;\n sentAtEpoch?: number;\n collectedAtEpoch?: number;\n collectedAt?: string;\n version: string;\n context?: TrackingEventContext;\n}\n\nexport interface TrackingEvent extends Event {\n identity?: TrackingEventIdentity;\n data?: TrackingEventData;\n testCode?: string;\n}\n\nexport interface MetricEvent extends Event {\n data: MetricEventData;\n}\n\nexport interface LogEvent extends Event {\n data: LogEventData;\n}\n\nexport interface TrackingEventData {\n [ key: string ]: any;\n firstName?: string;\n lastName?: string;\n email?: string;\n phone?: string;\n addresses?: AddressInfo[];\n cartId?: string;\n transactionId?: string;\n orderId?: string;\n orderName?: string;\n affiliation?: string;\n currency?: string;\n price?: number;\n subtotalPrice?: number;\n value?: number;\n tax?: number;\n shipping?: number;\n coupon?: string;\n paymentType?: string;\n shippingTier?: string;\n creativeName?: string;\n creativeSlot?: string;\n locationId?: string;\n promotionId?: string;\n promotionName?: string;\n items?: GenericContent[];\n}\n\nexport interface GenericContent {\n [ key: string ]: any;\n content_type?: string;\n id?: string;\n name?: string;\n sku?: string;\n brand?: string;\n variant?: string;\n coupon?: string;\n currency?: string;\n discount?: number;\n index?: number;\n value?: number;\n price?: number;\n quantity?: number;\n url?: string;\n locationId?: string;\n imageUrl?: string;\n category?: string;\n category2?: string;\n category3?: string;\n category4?: string;\n category5?: string;\n}\n\nexport interface LogEventData extends LogMessage { }\nexport interface MetricEventData {\n [ key: string ]: any;\n name: string;\n value: number;\n}\n\nexport const Currencies: string[] = [\n 'AED',\n 'ARS',\n 'AUD',\n 'BDT',\n 'BIF',\n 'BOB',\n 'BRL',\n 'CAD',\n 'CHF',\n 'CLP',\n 'CNY',\n 'COP',\n 'CRC',\n 'CZK',\n 'DKK',\n 'DZD',\n 'EGP',\n 'EUR',\n 'GBP',\n 'GTQ',\n 'HKD',\n 'HNL',\n 'HUF',\n 'IDR',\n 'ILS',\n 'INR',\n 'ISK',\n 'JPY',\n 'KES',\n 'KRW',\n 'KWD',\n 'KZT',\n 'MAD',\n 'MOP',\n 'MXN',\n 'MYR',\n 'NGN',\n 'NIO',\n 'NOK',\n 'NZD',\n 'PEN',\n 'PHP',\n 'PKR',\n 'PLN',\n 'PYG',\n 'QAR',\n 'RON',\n 'RUB',\n 'SAR',\n 'SEK',\n 'SGD',\n 'THB',\n 'TRY',\n 'TWD',\n 'USD',\n 'VES',\n 'VND',\n 'ZAR',\n];\n", "export enum ADTRACKIFY_EVENT_TYPE {\n TRACKING = 'tracking',\n METRIC = 'metric',\n IDENTIFY = 'identify',\n LOG = 'log',\n}\n"],
5
+ "mappings": "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",
6
6
  "names": ["ACCOUNT_STATUS", "DESTINATIONS", "CustomHTMLLocation", "ShopifyAppInstallStatus", "ShopifyAppSubscriptionStatus", "PLAN_BILLING_FREQUENCY", "PAYMENT_STATUS", "SUBSCRIPTION_STATUS", "PAYMENT_GATEWAY", "GRANULARITY", "MEASURE", "DIMENSION", "LogLevel", "LogLevelId", "ADTRACKIFY_STANDARD_EVENT", "Currencies", "ADTRACKIFY_EVENT_TYPE"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adtrackify/at-tracking-event-types",
3
- "version": "1.1.31",
3
+ "version": "1.1.33",
4
4
  "description": "",
5
5
  "module": "./dist/index.js",
6
6
  "main": "./dist/index.js",
@@ -1,66 +1,67 @@
1
-
2
- export interface Destination {
3
- id: string,
4
- accountId: string,
5
- pixelId: string,
6
- destination: string;
7
- displayName?: string,
8
- enabled: boolean;
9
- configuration?: UserDestinationConfiguration,
10
- createdAt: string,
11
- updatedAt: string;
12
- }
13
-
14
- export enum DESTINATIONS {
15
- FACEBOOK = 'facebook',
16
- TIKTOK = 'tiktok',
17
- GOOGLE_ADS = 'googleAds',
18
- GOOGLE_ANALYTICS_4 = 'googleAnalytics4',
19
- HUBSPOT = 'hubspot',
20
- WEBHOOK = 'webhook',
21
- CUSTOM_HTML = 'customHTML',
22
- CUSTOM_JS = 'customJS',
23
- SNAPCHAT = 'snapchat',
24
- TWITTER = 'twitter',
25
- REDDIT = 'reddit'
26
- }
27
-
28
- export interface UserDestinationConfiguration {
29
- [ key: string ]: any;
30
- eventBlacklist?: string[];
31
- events?: EventConfiguration[];
32
- trigger?: DestinationTriggerConfiguration;
33
- }
34
-
35
- export interface DestinationTriggerConfiguration {
36
- shopify?: ShopifyTriggerConfiguration;
37
- exludeDomains?: string[];
38
- excludePages?: string[];
39
- domains?: string[];
40
- pages?: string[];
41
- }
42
-
43
- export interface ShopifyTriggerConfiguration {
44
- enabled: boolean;
45
- collections?: string[];
46
- tags?: string[];
47
- }
48
-
49
-
50
- export interface EventConfiguration {
51
- sourceEventName: string;
52
- exclude?: boolean;
53
- sample: EventSampleConfiguration;
54
- transformations?: EventTransformation[];
55
- }
56
-
57
- export interface EventTransformation {
58
- transformationEventName: string;
59
- enabled: boolean;
60
- }
61
-
62
- export interface EventSampleConfiguration {
63
- enabled: boolean;
64
- rate: number;
65
- }
66
-
1
+
2
+ export interface Destination {
3
+ id: string,
4
+ accountId: string,
5
+ pixelId: string,
6
+ destination: string;
7
+ displayName?: string,
8
+ enabled: boolean;
9
+ configuration?: UserDestinationConfiguration,
10
+ createdAt: string,
11
+ updatedAt: string;
12
+ }
13
+
14
+ export enum DESTINATIONS {
15
+ FACEBOOK = 'facebook',
16
+ TIKTOK = 'tiktok',
17
+ GOOGLE_ADS = 'googleAds',
18
+ GOOGLE_ANALYTICS_4 = 'googleAnalytics4',
19
+ HUBSPOT = 'hubspot',
20
+ WEBHOOK = 'webhook',
21
+ CUSTOM_HTML = 'customHTML',
22
+ CUSTOM_JS = 'customJS',
23
+ SNAPCHAT = 'snapchat',
24
+ TWITTER = 'twitter',
25
+ REDDIT = 'reddit',
26
+ SCRIPT_TAG = 'scriptTag'
27
+ }
28
+
29
+ export interface UserDestinationConfiguration {
30
+ [ key: string ]: any;
31
+ eventBlacklist?: string[];
32
+ events?: EventConfiguration[];
33
+ trigger?: DestinationTriggerConfiguration;
34
+ }
35
+
36
+ export interface DestinationTriggerConfiguration {
37
+ shopify?: ShopifyTriggerConfiguration;
38
+ exludeDomains?: string[];
39
+ excludePages?: string[];
40
+ domains?: string[];
41
+ pages?: string[];
42
+ }
43
+
44
+ export interface ShopifyTriggerConfiguration {
45
+ enabled: boolean;
46
+ collections?: string[];
47
+ tags?: string[];
48
+ }
49
+
50
+
51
+ export interface EventConfiguration {
52
+ sourceEventName: string;
53
+ exclude?: boolean;
54
+ sample: EventSampleConfiguration;
55
+ transformations?: EventTransformation[];
56
+ }
57
+
58
+ export interface EventTransformation {
59
+ transformationEventName: string;
60
+ enabled: boolean;
61
+ }
62
+
63
+ export interface EventSampleConfiguration {
64
+ enabled: boolean;
65
+ rate: number;
66
+ }
67
+
@@ -1,71 +1,74 @@
1
- import { Destination, UserDestinationConfiguration } from './destinations';
2
-
3
- export interface AdTrackifyFacebookDestination extends Destination {
4
- configuration: FacebookPixelConfiguration;
5
- }
6
-
7
- export interface AdTrackifyTikTokDestination extends Destination {
8
- configuration: TiktokPixelConfiguration;
9
- }
10
-
11
- export interface AdTrackifyGoogleAnalytics4Destination extends Destination {
12
- configuration: GoogleAnalytics4Configuration;
13
- }
14
-
15
- // Destination Specific configurations below
16
- export interface FacebookPixelConfiguration extends UserDestinationConfiguration {
17
- apiAccessToken?: string;
18
- enableConversionAPI: boolean;
19
- pixelId: string;
20
- }
21
-
22
- export interface TiktokPixelConfiguration extends UserDestinationConfiguration {
23
- apiAccessToken?: string;
24
- enableConversionAPI: boolean;
25
- pixelId: string;
26
- }
27
-
28
- export interface GoogleAnalytics4Configuration extends UserDestinationConfiguration {
29
- apiSecret: string;
30
- measurementId: string;
31
- }
32
-
33
- export interface GoogleAdsConfiguration extends UserDestinationConfiguration {
34
- pixelId: string;
35
- conversionID: string;
36
- }
37
-
38
- export interface HubspotPixelConfiguration extends UserDestinationConfiguration {
39
- hubspotId: string;
40
- }
41
-
42
- export interface SnapchatPixelConfiguration extends UserDestinationConfiguration {
43
- snapchatPixelId: string;
44
- }
45
-
46
- export interface TwitterPixelConfiguration extends UserDestinationConfiguration {
47
- twitterPixelId: string;
48
- }
49
-
50
- export interface WebhookConfiguration extends UserDestinationConfiguration {
51
- webhookUrl: string;
52
- }
53
-
54
- export interface CustomHTMLConfiguration extends UserDestinationConfiguration {
55
- html: string;
56
- location: CustomHTMLLocation;
57
- }
58
-
59
- export interface CustomJSConfiguration extends UserDestinationConfiguration {
60
- script: string;
61
- async: boolean;
62
- defer: boolean;
63
- location: CustomHTMLLocation;
64
- }
65
-
66
- export enum CustomHTMLLocation {
67
- HEADER = 'header',
68
- FOOTER = 'footer',
69
- BODY = 'body'
70
- }
71
-
1
+ import { Destination, UserDestinationConfiguration } from './destinations';
2
+
3
+ export interface AdTrackifyFacebookDestination extends Destination {
4
+ configuration: FacebookPixelConfiguration;
5
+ }
6
+
7
+ export interface AdTrackifyTikTokDestination extends Destination {
8
+ configuration: TiktokPixelConfiguration;
9
+ }
10
+
11
+ export interface AdTrackifyGoogleAnalytics4Destination extends Destination {
12
+ configuration: GoogleAnalytics4Configuration;
13
+ }
14
+
15
+ // Destination Specific configurations below
16
+ export interface FacebookPixelConfiguration extends UserDestinationConfiguration {
17
+ apiAccessToken?: string;
18
+ enableConversionAPI: boolean;
19
+ pixelId: string;
20
+ }
21
+
22
+ export interface TiktokPixelConfiguration extends UserDestinationConfiguration {
23
+ apiAccessToken?: string;
24
+ enableConversionAPI: boolean;
25
+ pixelId: string;
26
+ }
27
+
28
+ export interface GoogleAnalytics4Configuration extends UserDestinationConfiguration {
29
+ apiSecret: string;
30
+ measurementId: string;
31
+ }
32
+
33
+ export interface GoogleAdsConfiguration extends UserDestinationConfiguration {
34
+ pixelId: string;
35
+ conversionID: string;
36
+ }
37
+
38
+ export interface HubspotPixelConfiguration extends UserDestinationConfiguration {
39
+ hubspotId: string;
40
+ }
41
+
42
+ export interface SnapchatPixelConfiguration extends UserDestinationConfiguration {
43
+ snapchatPixelId: string;
44
+ }
45
+
46
+ export interface TwitterPixelConfiguration extends UserDestinationConfiguration {
47
+ twitterPixelId: string;
48
+ }
49
+
50
+ export interface WebhookConfiguration extends UserDestinationConfiguration {
51
+ webhookUrl: string;
52
+ }
53
+
54
+ export interface CustomHTMLConfiguration extends UserDestinationConfiguration {
55
+ html: string;
56
+ location: CustomHTMLLocation;
57
+ }
58
+
59
+ export interface CustomJSConfiguration extends UserDestinationConfiguration {
60
+ script: string;
61
+ location: CustomHTMLLocation;
62
+ }
63
+
64
+ export interface ScriptTagConfiguration extends UserDestinationConfiguration {
65
+ script: string;
66
+ location: CustomHTMLLocation;
67
+ }
68
+
69
+ export enum CustomHTMLLocation {
70
+ HEADER = 'header',
71
+ FOOTER = 'footer',
72
+ BODY = 'body'
73
+ }
74
+
@@ -58,11 +58,10 @@ export interface Query {
58
58
  filters?: any[];
59
59
  }
60
60
 
61
- export type MeasureDataRow = {
62
- [ key in MEASURE ]: number;
63
- } & {
64
- 'dt': string;
65
- };
61
+ export interface MeasureDataRow {
62
+ [ key: string ]: number | string,
63
+ 'dt': string,
64
+ }
66
65
 
67
66
  export interface MeasureData {
68
67
  primaryAvg: number;