@adtrackify/at-tracking-event-types 1.0.50 → 1.0.52
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 +16 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/src/types/api/destination.ts +94 -79
- package/src/types/api/destinations.ts +11 -8
package/dist/index.d.ts
CHANGED
|
@@ -115,6 +115,12 @@ declare module '@adtrackify/at-tracking-event-types/types/api/destination' {
|
|
|
115
115
|
export interface HubspotPixelConfiguration {
|
|
116
116
|
hubspotId: string;
|
|
117
117
|
}
|
|
118
|
+
export interface SnapchatPixelConfiguration {
|
|
119
|
+
snapchatPixelId: string;
|
|
120
|
+
}
|
|
121
|
+
export interface TwitterPixelConfiguration {
|
|
122
|
+
twitterPixelId: string;
|
|
123
|
+
}
|
|
118
124
|
export interface WebhookConfiguration {
|
|
119
125
|
webhookUrl: string;
|
|
120
126
|
}
|
|
@@ -122,6 +128,12 @@ declare module '@adtrackify/at-tracking-event-types/types/api/destination' {
|
|
|
122
128
|
html: string;
|
|
123
129
|
location: CustomHTMLLocation;
|
|
124
130
|
}
|
|
131
|
+
export interface CustomJSConfiguration {
|
|
132
|
+
script: string;
|
|
133
|
+
async: boolean;
|
|
134
|
+
defer: boolean;
|
|
135
|
+
location: CustomHTMLLocation;
|
|
136
|
+
}
|
|
125
137
|
export enum CustomHTMLLocation {
|
|
126
138
|
HEADER = "header",
|
|
127
139
|
FOOTER = "footer",
|
|
@@ -137,7 +149,10 @@ declare module '@adtrackify/at-tracking-event-types/types/api/destinations' {
|
|
|
137
149
|
GOOGLE_ANALYTICS_4 = "googleAnalytics4",
|
|
138
150
|
HUBSPOT = "hubspot",
|
|
139
151
|
WEBHOOK = "webhook",
|
|
140
|
-
CUSTOM_HTML = "customHTML"
|
|
152
|
+
CUSTOM_HTML = "customHTML",
|
|
153
|
+
CUSTOM_JS = "customJS",
|
|
154
|
+
SNAPCHAT = "snapchat",
|
|
155
|
+
TWITTER = "twitter"
|
|
141
156
|
}
|
|
142
157
|
|
|
143
158
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a=(t=>(t.ADD_PAYMENT_INFO="add_payment_info",t.ADD_SHIPPING_INFO="add_shipping_info",t.ADD_TO_CART="add_to_cart",t.ADD_TO_WISHLIST="add_to_wishlist",t.INITIATE_CHECKOUT="initiate_checkout",t.LEAD="lead",t.LOGIN="login",t.PAGE_VIEW="page_view",t.PURCHASE="purchase",t.REFUND="refund",t.SEARCH="search",t.SIGN_UP="sign_up",t.VIEW_CART="view_cart",t.VIEW_CONTENT="view_content",t.SELECT_SHIPPING_METHOD="select_shipping_method",t.VIRTUALIZED_VIEWED_PAYMENT_FORM="virtualized_viewd_payment_form",t))(a||{});var b=["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 g=(n=>(n.PENDING="pending",n.ACTIVE="active",n.INACTIVE="inactive",n))(g||{});var c=(n=>(n.HEADER="header",n.FOOTER="footer",n.BODY="body",n))(c||{});var d=(r=>(r.FACEBOOK="facebook",r.TIKTOK="tiktok",r.GOOGLE_ADS="googleAds",r.GOOGLE_ANALYTICS_4="googleAnalytics4",r.HUBSPOT="hubspot",r.WEBHOOK="webhook",r.CUSTOM_HTML="customHTML",r.CUSTOM_JS="customJS",r.SNAPCHAT="snapchat",r.TWITTER="twitter",r))(d||{});var p=(i=>(i.STARTED="started",i.COMPLETED="completed",i.UNINSTALLED="uninstalled",i.FAILED="failed",i.NONE="none",i))(p||{}),l=(e=>(e.ACTIVE="active",e.CANCELLED="cancelled",e.DECLINED="declined",e.EXPIRED="expired",e.FROZEN="frozen",e.PENDING="pending",e.NOT_SUBMITTED="na",e))(l||{});var m=(o=>(o.MONTHLY="monthly",o.YEARLY="yearly",o))(m||{}),u=(s=>(s.CURRENT="current",s.PAST_DUE="past_due",s.CANCELLED="cancelled",s.FAILED="failed",s))(u||{}),f=(e=>(e.ACTIVE="active",e.CANCELLED="cancelled",e.DECLINED="declined",e.EXPIRED="expired",e.FROZEN="frozen",e.PENDING="pending",e.NOT_SUBMITTED="na",e))(f||{}),x=(n=>(n.STRIPE="stripe",n.PAYPAL="paypal",n.SHOPIFY="shopify",n))(x||{});export{g as ACCOUNT_STATUS,a as ADTRACKIFY_STANDARD_EVENT,b as Currencies,c as CustomHTMLLocation,d as DESTINATIONS,x as PAYMENT_GATEWAY,u as PAYMENT_STATUS,m as PLAN_BILLING_FREQUENCY,f as SUBSCRIPTION_STATUS,p as ShopifyAppInstallStatus,l 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/adtrackify-standard-events.ts", "../src/types/tracking-event-type.ts", "../src/types/api/account.ts", "../src/types/api/destination.ts", "../src/types/api/destinations.ts", "../src/types/api/shopify-app-install.ts", "../src/types/api/subscription.ts"],
|
|
4
|
-
"sourcesContent": ["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 //\n SELECT_SHIPPING_METHOD = 'select_shipping_method',\n VIRTUALIZED_VIEWED_PAYMENT_FORM = 'virtualized_viewd_payment_form'\n}", "import { IResult } from 'ua-parser-js';\nimport { ADTRACKIFY_STANDARD_EVENT } from './adtrackify-standard-events';\n\n\nexport interface TrackingEvent {\n id: string;\n type: string;\n name: ADTRACKIFY_STANDARD_EVENT;\n pixelId: string;\n context: TrackingEventContext;\n data: TrackingEventData;\n testCode?: string;\n sentAtEpoch?: number;\n collectedAt?: string;\n version: string;\n}\n\nexport interface TrackingEventContext {\n identity: TrackingEventIdentity;\n click?: AdClickInfo;\n campaign?: CampaignInfo;\n page?: PageInfo;\n device?: DeviceInfo;\n locale?: string;\n timezone?: string;\n userAgent?: string;\n ipAddress?: string;\n ipv6Address?: string;\n}\n\nexport interface TrackingEventIdentity {\n gender?: string;\n dob?: string;\n phone?: string;\n id?: string;\n firstName?: string;\n lastName?: string;\n email?: string;\n address?: AddressInfo;\n addresses?: AddressInfo[];\n}\n\nexport interface AdClickInfo {\n fbp?: string;\n fbc?: string;\n fbclid?: string;\n gclid?: string;\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 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 AddressInfo {\n email?: string;\n phone?: string;\n firstName?: string;\n lastName?: string;\n company?: string;\n address1?: string;\n address2?: string;\n city?: string;\n province?: string;\n provinceCode?: string;\n country?: string;\n countryCode?: string;\n zip?: string;\n}\n\nexport interface CampaignInfo {\n name?: string;\n source?: string;\n medium?: string;\n term?: string;\n content?: string;\n}\n\nexport interface PageInfo {\n path?: string;\n referrer?: string;\n search?: string;\n title?: string;\n url?: string;\n qsp?: any;\n}\n\nexport type DeviceInfo = IResult;\n\n\nexport const Currencies: string[] = [ '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' ];\n\n", "export 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 ownerId?: string,\n createdAt: string,\n updatedAt: string;\n}\n\nexport enum ACCOUNT_STATUS {\n PENDING = 'pending',\n ACTIVE = 'active',\n INACTIVE = 'inactive'\n}", "export interface Destination {\
|
|
5
|
-
"mappings": "AAAO,IAAKA,OACVA,EAAA,iBAAmB,mBACnBA,EAAA,kBAAoB,oBACpBA,EAAA,YAAc,cACdA,EAAA,gBAAkB,kBAGlBA,EAAA,kBAAoB,oBACpBA,EAAA,KAAO,OACPA,EAAA,MAAQ,QACRA,EAAA,UAAY,YACZA,EAAA,SAAW,WACXA,EAAA,OAAS,SACTA,EAAA,OAAS,SAITA,EAAA,QAAU,UACVA,EAAA,UAAY,YACZA,EAAA,aAAe,eAIfA,EAAA,uBAAyB,yBACzBA,EAAA,gCAAkC,iCAxBxBA,OAAA,ICyIL,IAAMC,EAAuB,CAAE,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,KAAM,EC5Hpb,IAAKC,OACVA,EAAA,QAAU,UACVA,EAAA,OAAS,SACTA,EAAA,SAAW,WAHDA,OAAA,
|
|
4
|
+
"sourcesContent": ["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 //\n SELECT_SHIPPING_METHOD = 'select_shipping_method',\n VIRTUALIZED_VIEWED_PAYMENT_FORM = 'virtualized_viewd_payment_form'\n}", "import { IResult } from 'ua-parser-js';\nimport { ADTRACKIFY_STANDARD_EVENT } from './adtrackify-standard-events';\n\n\nexport interface TrackingEvent {\n id: string;\n type: string;\n name: ADTRACKIFY_STANDARD_EVENT;\n pixelId: string;\n context: TrackingEventContext;\n data: TrackingEventData;\n testCode?: string;\n sentAtEpoch?: number;\n collectedAt?: string;\n version: string;\n}\n\nexport interface TrackingEventContext {\n identity: TrackingEventIdentity;\n click?: AdClickInfo;\n campaign?: CampaignInfo;\n page?: PageInfo;\n device?: DeviceInfo;\n locale?: string;\n timezone?: string;\n userAgent?: string;\n ipAddress?: string;\n ipv6Address?: string;\n}\n\nexport interface TrackingEventIdentity {\n gender?: string;\n dob?: string;\n phone?: string;\n id?: string;\n firstName?: string;\n lastName?: string;\n email?: string;\n address?: AddressInfo;\n addresses?: AddressInfo[];\n}\n\nexport interface AdClickInfo {\n fbp?: string;\n fbc?: string;\n fbclid?: string;\n gclid?: string;\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 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 AddressInfo {\n email?: string;\n phone?: string;\n firstName?: string;\n lastName?: string;\n company?: string;\n address1?: string;\n address2?: string;\n city?: string;\n province?: string;\n provinceCode?: string;\n country?: string;\n countryCode?: string;\n zip?: string;\n}\n\nexport interface CampaignInfo {\n name?: string;\n source?: string;\n medium?: string;\n term?: string;\n content?: string;\n}\n\nexport interface PageInfo {\n path?: string;\n referrer?: string;\n search?: string;\n title?: string;\n url?: string;\n qsp?: any;\n}\n\nexport type DeviceInfo = IResult;\n\n\nexport const Currencies: string[] = [ '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' ];\n\n", "export 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 ownerId?: string,\n createdAt: string,\n updatedAt: string;\n}\n\nexport enum ACCOUNT_STATUS {\n PENDING = 'pending',\n ACTIVE = 'active',\n INACTIVE = 'inactive'\n}", "export interface Destination {\n id: string,\n accountId: string,\n pixelId: string,\n destination: string;\n displayName?: string,\n enabled: boolean;\n configuration?: any,\n createdAt: string,\n updatedAt: string;\n}\n\nexport interface DestinationCatalogItem {\n id: string,\n active: boolean,\n destinationKey: string,\n destinationType: string,\n displayName?: string,\n shortName?: string;\n description?: string,\n url: string,\n fields?: any,\n createdAt: string,\n updatedAt: string;\n}\n\nexport interface DestinationCatalogFields {\n component_type: string,\n name: string,\n description: string,\n label: string,\n type: string,\n required: boolean,\n values?: any[],\n order: number;\n}\n\nexport interface AdTrackifyFacebookDestination extends Destination {\n configuration: FacebookPixelConfiguration;\n}\nexport interface FacebookPixelConfiguration {\n apiAccessToken?: string;\n enableConversionAPI: boolean;\n pixelId: string;\n}\n\nexport interface TiktokPixelConfiguration {\n pixelId: string;\n}\n\nexport interface GoogleAnalytics4Configuration {\n measurementId: string;\n}\n\nexport interface GoogleAdsConfiguration {\n pixelId: string;\n conversionID: string;\n}\n\nexport interface HubspotPixelConfiguration {\n hubspotId: string;\n}\n\nexport interface SnapchatPixelConfiguration {\n snapchatPixelId: string;\n}\n\nexport interface TwitterPixelConfiguration {\n twitterPixelId: string;\n}\n\nexport interface WebhookConfiguration {\n webhookUrl: string;\n}\n\nexport interface CustomHTMLConfiguration {\n html: string;\n location: CustomHTMLLocation;\n}\n\nexport interface CustomJSConfiguration {\n script: string;\n async: boolean;\n defer: boolean;\n location: CustomHTMLLocation;\n}\n\nexport enum CustomHTMLLocation {\n HEADER = 'header',\n FOOTER = 'footer',\n BODY = 'body'\n}\n\n\n", "export 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}", "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"],
|
|
5
|
+
"mappings": "AAAO,IAAKA,OACVA,EAAA,iBAAmB,mBACnBA,EAAA,kBAAoB,oBACpBA,EAAA,YAAc,cACdA,EAAA,gBAAkB,kBAGlBA,EAAA,kBAAoB,oBACpBA,EAAA,KAAO,OACPA,EAAA,MAAQ,QACRA,EAAA,UAAY,YACZA,EAAA,SAAW,WACXA,EAAA,OAAS,SACTA,EAAA,OAAS,SAITA,EAAA,QAAU,UACVA,EAAA,UAAY,YACZA,EAAA,aAAe,eAIfA,EAAA,uBAAyB,yBACzBA,EAAA,gCAAkC,iCAxBxBA,OAAA,ICyIL,IAAMC,EAAuB,CAAE,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,KAAM,EC5Hpb,IAAKC,OACVA,EAAA,QAAU,UACVA,EAAA,OAAS,SACTA,EAAA,SAAW,WAHDA,OAAA,IC0EL,IAAKC,OACVA,EAAA,OAAS,SACTA,EAAA,OAAS,SACTA,EAAA,KAAO,OAHGA,OAAA,ICvFL,IAAKC,OACVA,EAAA,SAAW,WACXA,EAAA,OAAS,SACTA,EAAA,WAAa,YACbA,EAAA,mBAAqB,mBACrBA,EAAA,QAAU,UACVA,EAAA,QAAU,UACVA,EAAA,YAAc,aACdA,EAAA,UAAY,WACZA,EAAA,SAAW,WACXA,EAAA,QAAU,UAVAA,OAAA,ICmBL,IAAKC,OACVA,EAAA,QAAU,UACVA,EAAA,UAAY,YACZA,EAAA,YAAc,cACdA,EAAA,OAAS,SACTA,EAAA,KAAO,OALGA,OAAA,IAOAC,OACVA,EAAA,OAAS,SACTA,EAAA,UAAY,YACZA,EAAA,SAAW,WACXA,EAAA,QAAU,UACVA,EAAA,OAAS,SACTA,EAAA,QAAU,UACVA,EAAA,cAAgB,KAPNA,OAAA,ICaL,IAAKC,OACVA,EAAA,QAAU,UACVA,EAAA,OAAS,SAFCA,OAAA,IAKAC,OACVA,EAAA,QAAU,UACVA,EAAA,SAAW,WACXA,EAAA,UAAY,YACZA,EAAA,OAAS,SAJCA,OAAA,IAOAC,OACVA,EAAA,OAAS,SACTA,EAAA,UAAY,YACZA,EAAA,SAAW,WACXA,EAAA,QAAU,UACVA,EAAA,OAAS,SACTA,EAAA,QAAU,UACVA,EAAA,cAAgB,KAPNA,OAAA,IASAC,OACVA,EAAA,OAAS,SACTA,EAAA,OAAS,SACTA,EAAA,QAAU,UAHAA,OAAA",
|
|
6
6
|
"names": ["ADTRACKIFY_STANDARD_EVENT", "Currencies", "ACCOUNT_STATUS", "CustomHTMLLocation", "DESTINATIONS", "ShopifyAppInstallStatus", "ShopifyAppSubscriptionStatus", "PLAN_BILLING_FREQUENCY", "PAYMENT_STATUS", "SUBSCRIPTION_STATUS", "PAYMENT_GATEWAY"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,79 +1,94 @@
|
|
|
1
|
-
export interface Destination {
|
|
2
|
-
id: string,
|
|
3
|
-
accountId: string,
|
|
4
|
-
pixelId: string,
|
|
5
|
-
destination: string;
|
|
6
|
-
displayName?: string,
|
|
7
|
-
enabled: boolean;
|
|
8
|
-
configuration?: any,
|
|
9
|
-
createdAt: string,
|
|
10
|
-
updatedAt: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface DestinationCatalogItem {
|
|
14
|
-
id: string,
|
|
15
|
-
active: boolean,
|
|
16
|
-
destinationKey: string,
|
|
17
|
-
destinationType: string,
|
|
18
|
-
displayName?: string,
|
|
19
|
-
shortName?: string;
|
|
20
|
-
description?: string,
|
|
21
|
-
url: string,
|
|
22
|
-
fields?: any,
|
|
23
|
-
createdAt: string,
|
|
24
|
-
updatedAt: string;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface DestinationCatalogFields {
|
|
28
|
-
component_type: string,
|
|
29
|
-
name: string,
|
|
30
|
-
description: string,
|
|
31
|
-
label: string,
|
|
32
|
-
type: string,
|
|
33
|
-
required: boolean,
|
|
34
|
-
values?: any[],
|
|
35
|
-
order: number;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export interface AdTrackifyFacebookDestination extends Destination {
|
|
39
|
-
configuration: FacebookPixelConfiguration;
|
|
40
|
-
}
|
|
41
|
-
export interface FacebookPixelConfiguration {
|
|
42
|
-
apiAccessToken?: string;
|
|
43
|
-
enableConversionAPI: boolean;
|
|
44
|
-
pixelId: string;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export interface TiktokPixelConfiguration {
|
|
48
|
-
pixelId: string;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export interface GoogleAnalytics4Configuration {
|
|
52
|
-
measurementId: string;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export interface GoogleAdsConfiguration {
|
|
56
|
-
pixelId: string;
|
|
57
|
-
conversionID: string;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export interface HubspotPixelConfiguration {
|
|
61
|
-
hubspotId: string;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export interface
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export interface
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
1
|
+
export interface Destination {
|
|
2
|
+
id: string,
|
|
3
|
+
accountId: string,
|
|
4
|
+
pixelId: string,
|
|
5
|
+
destination: string;
|
|
6
|
+
displayName?: string,
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
configuration?: any,
|
|
9
|
+
createdAt: string,
|
|
10
|
+
updatedAt: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface DestinationCatalogItem {
|
|
14
|
+
id: string,
|
|
15
|
+
active: boolean,
|
|
16
|
+
destinationKey: string,
|
|
17
|
+
destinationType: string,
|
|
18
|
+
displayName?: string,
|
|
19
|
+
shortName?: string;
|
|
20
|
+
description?: string,
|
|
21
|
+
url: string,
|
|
22
|
+
fields?: any,
|
|
23
|
+
createdAt: string,
|
|
24
|
+
updatedAt: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface DestinationCatalogFields {
|
|
28
|
+
component_type: string,
|
|
29
|
+
name: string,
|
|
30
|
+
description: string,
|
|
31
|
+
label: string,
|
|
32
|
+
type: string,
|
|
33
|
+
required: boolean,
|
|
34
|
+
values?: any[],
|
|
35
|
+
order: number;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface AdTrackifyFacebookDestination extends Destination {
|
|
39
|
+
configuration: FacebookPixelConfiguration;
|
|
40
|
+
}
|
|
41
|
+
export interface FacebookPixelConfiguration {
|
|
42
|
+
apiAccessToken?: string;
|
|
43
|
+
enableConversionAPI: boolean;
|
|
44
|
+
pixelId: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface TiktokPixelConfiguration {
|
|
48
|
+
pixelId: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface GoogleAnalytics4Configuration {
|
|
52
|
+
measurementId: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface GoogleAdsConfiguration {
|
|
56
|
+
pixelId: string;
|
|
57
|
+
conversionID: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface HubspotPixelConfiguration {
|
|
61
|
+
hubspotId: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface SnapchatPixelConfiguration {
|
|
65
|
+
snapchatPixelId: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface TwitterPixelConfiguration {
|
|
69
|
+
twitterPixelId: string;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface WebhookConfiguration {
|
|
73
|
+
webhookUrl: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface CustomHTMLConfiguration {
|
|
77
|
+
html: string;
|
|
78
|
+
location: CustomHTMLLocation;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface CustomJSConfiguration {
|
|
82
|
+
script: string;
|
|
83
|
+
async: boolean;
|
|
84
|
+
defer: boolean;
|
|
85
|
+
location: CustomHTMLLocation;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export enum CustomHTMLLocation {
|
|
89
|
+
HEADER = 'header',
|
|
90
|
+
FOOTER = 'footer',
|
|
91
|
+
BODY = 'body'
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
export enum DESTINATIONS {
|
|
2
|
-
FACEBOOK = 'facebook',
|
|
3
|
-
TIKTOK = 'tiktok',
|
|
4
|
-
GOOGLE_ADS = 'googleAds',
|
|
5
|
-
GOOGLE_ANALYTICS_4 = 'googleAnalytics4',
|
|
6
|
-
HUBSPOT = 'hubspot',
|
|
7
|
-
WEBHOOK = 'webhook',
|
|
8
|
-
CUSTOM_HTML = 'customHTML',
|
|
1
|
+
export enum DESTINATIONS {
|
|
2
|
+
FACEBOOK = 'facebook',
|
|
3
|
+
TIKTOK = 'tiktok',
|
|
4
|
+
GOOGLE_ADS = 'googleAds',
|
|
5
|
+
GOOGLE_ANALYTICS_4 = 'googleAnalytics4',
|
|
6
|
+
HUBSPOT = 'hubspot',
|
|
7
|
+
WEBHOOK = 'webhook',
|
|
8
|
+
CUSTOM_HTML = 'customHTML',
|
|
9
|
+
CUSTOM_JS = 'customJS',
|
|
10
|
+
SNAPCHAT = 'snapchat',
|
|
11
|
+
TWITTER = 'twitter'
|
|
9
12
|
}
|