@adtrackify/at-tracking-event-types 1.0.49 → 1.0.50
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/.editorconfig +12 -12
- package/dist/index.d.ts +3 -5
- package/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/src/types/api/destination.ts +79 -83
- package/src/types/api/destinations.ts +8 -9
- package/src/types/api/subscription.ts +2 -0
- package/src/types/third-party-event-configuration-types.ts +9 -9
package/.editorconfig
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
root = true
|
|
2
|
-
|
|
3
|
-
[*]
|
|
4
|
-
end_of_line = lf
|
|
5
|
-
charset = utf-8
|
|
6
|
-
trim_trailing_whitespace = true
|
|
7
|
-
insert_final_newline = false
|
|
8
|
-
indent_style = space
|
|
9
|
-
indent_size = 2
|
|
10
|
-
|
|
11
|
-
[*.{diff,md}]
|
|
12
|
-
trim_trailing_whitespace = false
|
|
1
|
+
root = true
|
|
2
|
+
|
|
3
|
+
[*]
|
|
4
|
+
end_of_line = lf
|
|
5
|
+
charset = utf-8
|
|
6
|
+
trim_trailing_whitespace = true
|
|
7
|
+
insert_final_newline = false
|
|
8
|
+
indent_style = space
|
|
9
|
+
indent_size = 2
|
|
10
|
+
|
|
11
|
+
[*.{diff,md}]
|
|
12
|
+
trim_trailing_whitespace = false
|
package/dist/index.d.ts
CHANGED
|
@@ -115,9 +115,6 @@ 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
|
-
pixelId: string;
|
|
120
|
-
}
|
|
121
118
|
export interface WebhookConfiguration {
|
|
122
119
|
webhookUrl: string;
|
|
123
120
|
}
|
|
@@ -140,8 +137,7 @@ declare module '@adtrackify/at-tracking-event-types/types/api/destinations' {
|
|
|
140
137
|
GOOGLE_ANALYTICS_4 = "googleAnalytics4",
|
|
141
138
|
HUBSPOT = "hubspot",
|
|
142
139
|
WEBHOOK = "webhook",
|
|
143
|
-
CUSTOM_HTML = "customHTML"
|
|
144
|
-
SNAPCHAT = "snapchat"
|
|
140
|
+
CUSTOM_HTML = "customHTML"
|
|
145
141
|
}
|
|
146
142
|
|
|
147
143
|
}
|
|
@@ -237,6 +233,8 @@ declare module '@adtrackify/at-tracking-event-types/types/api/subscription' {
|
|
|
237
233
|
isBanner?: boolean;
|
|
238
234
|
bannerText?: string;
|
|
239
235
|
bannerColor?: string;
|
|
236
|
+
stripePriceId?: string;
|
|
237
|
+
stripeProductId?: string;
|
|
240
238
|
}
|
|
241
239
|
export enum PLAN_BILLING_FREQUENCY {
|
|
242
240
|
MONTHLY = "monthly",
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
1
|
+
var o=(e=>(e.ADD_PAYMENT_INFO="add_payment_info",e.ADD_SHIPPING_INFO="add_shipping_info",e.ADD_TO_CART="add_to_cart",e.ADD_TO_WISHLIST="add_to_wishlist",e.INITIATE_CHECKOUT="initiate_checkout",e.LEAD="lead",e.LOGIN="login",e.PAGE_VIEW="page_view",e.PURCHASE="purchase",e.REFUND="refund",e.SEARCH="search",e.SIGN_UP="sign_up",e.VIEW_CART="view_cart",e.VIEW_CONTENT="view_content",e.SELECT_SHIPPING_METHOD="select_shipping_method",e.VIRTUALIZED_VIEWED_PAYMENT_FORM="virtualized_viewd_payment_form",e))(o||{});var y=["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 a=(n=>(n.PENDING="pending",n.ACTIVE="active",n.INACTIVE="inactive",n))(a||{});var g=(n=>(n.HEADER="header",n.FOOTER="footer",n.BODY="body",n))(g||{});var c=(t=>(t.FACEBOOK="facebook",t.TIKTOK="tiktok",t.GOOGLE_ADS="googleAds",t.GOOGLE_ANALYTICS_4="googleAnalytics4",t.HUBSPOT="hubspot",t.WEBHOOK="webhook",t.CUSTOM_HTML="customHTML",t))(c||{});var d=(r=>(r.STARTED="started",r.COMPLETED="completed",r.UNINSTALLED="uninstalled",r.FAILED="failed",r.NONE="none",r))(d||{}),p=(t=>(t.ACTIVE="active",t.CANCELLED="cancelled",t.DECLINED="declined",t.EXPIRED="expired",t.FROZEN="frozen",t.PENDING="pending",t.NOT_SUBMITTED="na",t))(p||{});var l=(s=>(s.MONTHLY="monthly",s.YEARLY="yearly",s))(l||{}),m=(i=>(i.CURRENT="current",i.PAST_DUE="past_due",i.CANCELLED="cancelled",i.FAILED="failed",i))(m||{}),u=(t=>(t.ACTIVE="active",t.CANCELLED="cancelled",t.DECLINED="declined",t.EXPIRED="expired",t.FROZEN="frozen",t.PENDING="pending",t.NOT_SUBMITTED="na",t))(u||{}),f=(n=>(n.STRIPE="stripe",n.PAYPAL="paypal",n.SHOPIFY="shopify",n))(f||{});export{a as ACCOUNT_STATUS,o as ADTRACKIFY_STANDARD_EVENT,y as Currencies,g as CustomHTMLLocation,c as DESTINATIONS,f as PAYMENT_GATEWAY,m as PAYMENT_STATUS,l as PLAN_BILLING_FREQUENCY,u as SUBSCRIPTION_STATUS,d as ShopifyAppInstallStatus,p 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 {\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}\
|
|
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 {\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?: any,\r\n createdAt: string,\r\n updatedAt: string;\r\n}\r\n\r\nexport interface DestinationCatalogItem {\r\n id: string,\r\n active: boolean,\r\n destinationKey: string,\r\n destinationType: string,\r\n displayName?: string,\r\n shortName?: string;\r\n description?: string,\r\n url: string,\r\n fields?: any,\r\n createdAt: string,\r\n updatedAt: string;\r\n}\r\n\r\nexport interface DestinationCatalogFields {\r\n component_type: string,\r\n name: string,\r\n description: string,\r\n label: string,\r\n type: string,\r\n required: boolean,\r\n values?: any[],\r\n order: number;\r\n}\r\n\r\nexport interface AdTrackifyFacebookDestination extends Destination {\r\n configuration: FacebookPixelConfiguration;\r\n}\r\nexport interface FacebookPixelConfiguration {\r\n apiAccessToken?: string;\r\n enableConversionAPI: boolean;\r\n pixelId: string;\r\n}\r\n\r\nexport interface TiktokPixelConfiguration {\r\n pixelId: string;\r\n}\r\n\r\nexport interface GoogleAnalytics4Configuration {\r\n measurementId: string;\r\n}\r\n\r\nexport interface GoogleAdsConfiguration {\r\n pixelId: string;\r\n conversionID: string;\r\n}\r\n\r\nexport interface HubspotPixelConfiguration {\r\n hubspotId: string;\r\n}\r\n\r\nexport interface WebhookConfiguration {\r\n webhookUrl: string;\r\n}\r\n\r\nexport interface CustomHTMLConfiguration {\r\n html: string;\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\r\n", "export 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}", "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,IC2DL,IAAKC,OACVA,EAAA,OAAS,SACTA,EAAA,OAAS,SACTA,EAAA,KAAO,OAHGA,OAAA,ICxEL,IAAKC,OACVA,EAAA,SAAW,WACXA,EAAA,OAAS,SACTA,EAAA,WAAa,YACbA,EAAA,mBAAqB,mBACrBA,EAAA,QAAU,UACVA,EAAA,QAAU,UACVA,EAAA,YAAc,aAPJA,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,83 +1,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
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export interface
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
BODY = 'body'
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
|
|
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 WebhookConfiguration {
|
|
65
|
+
webhookUrl: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface CustomHTMLConfiguration {
|
|
69
|
+
html: string;
|
|
70
|
+
location: CustomHTMLLocation;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export enum CustomHTMLLocation {
|
|
74
|
+
HEADER = 'header',
|
|
75
|
+
FOOTER = 'footer',
|
|
76
|
+
BODY = 'body'
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
|
|
@@ -1,10 +1,9 @@
|
|
|
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
|
-
SNAPCHAT = 'snapchat'
|
|
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',
|
|
10
9
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export interface DestinationConfiguration {
|
|
2
|
-
eventConfigurations: DestinationEventSpecificConfiguration[];
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
export interface DestinationEventSpecificConfiguration {
|
|
6
|
-
enabled: boolean;
|
|
7
|
-
sourceEventName: string;
|
|
8
|
-
destinationEventName?: string;
|
|
9
|
-
excludeEvent?: boolean;
|
|
1
|
+
export interface DestinationConfiguration {
|
|
2
|
+
eventConfigurations: DestinationEventSpecificConfiguration[];
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
export interface DestinationEventSpecificConfiguration {
|
|
6
|
+
enabled: boolean;
|
|
7
|
+
sourceEventName: string;
|
|
8
|
+
destinationEventName?: string;
|
|
9
|
+
excludeEvent?: boolean;
|
|
10
10
|
}
|