@adtrackify/at-tracking-event-types 1.0.29 → 1.0.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.
Files changed (51) hide show
  1. package/build.js +8 -4
  2. package/dist/index.d.ts +425 -1
  3. package/dist/index.js +5449 -18
  4. package/dist/index.js.map +7 -1
  5. package/package.json +7 -4
  6. package/src/index.ts +2 -1
  7. package/src/types/api/subscription.ts +115 -2
  8. package/tsconfig.json +2 -5
  9. package/dist/types/adtrackify-event-bus-event.d.ts +0 -13
  10. package/dist/types/adtrackify-event-bus-event.js +0 -3
  11. package/dist/types/adtrackify-event-bus-event.js.map +0 -1
  12. package/dist/types/adtrackify-standard-events.d.ts +0 -18
  13. package/dist/types/adtrackify-standard-events.js +0 -23
  14. package/dist/types/adtrackify-standard-events.js.map +0 -1
  15. package/dist/types/api/account.d.ts +0 -17
  16. package/dist/types/api/account.js +0 -10
  17. package/dist/types/api/account.js.map +0 -1
  18. package/dist/types/api/destination.d.ts +0 -44
  19. package/dist/types/api/destination.js +0 -3
  20. package/dist/types/api/destination.js.map +0 -1
  21. package/dist/types/api/destinations.d.ts +0 -6
  22. package/dist/types/api/destinations.js +0 -11
  23. package/dist/types/api/destinations.js.map +0 -1
  24. package/dist/types/api/index.d.ts +0 -6
  25. package/dist/types/api/index.js +0 -23
  26. package/dist/types/api/index.js.map +0 -1
  27. package/dist/types/api/shopify-app-install.d.ts +0 -46
  28. package/dist/types/api/shopify-app-install.js +0 -22
  29. package/dist/types/api/shopify-app-install.js.map +0 -1
  30. package/dist/types/api/subscription.d.ts +0 -49
  31. package/dist/types/api/subscription.js +0 -32
  32. package/dist/types/api/subscription.js.map +0 -1
  33. package/dist/types/api/user.d.ts +0 -13
  34. package/dist/types/api/user.js +0 -3
  35. package/dist/types/api/user.js.map +0 -1
  36. package/dist/types/index.d.ts +0 -5
  37. package/dist/types/index.js +0 -22
  38. package/dist/types/index.js.map +0 -1
  39. package/dist/types/third-party-event-configuration-types.d.ts +0 -8
  40. package/dist/types/third-party-event-configuration-types.js +0 -3
  41. package/dist/types/third-party-event-configuration-types.js.map +0 -1
  42. package/dist/types/tracking-event-type.d.ts +0 -125
  43. package/dist/types/tracking-event-type.js +0 -5
  44. package/dist/types/tracking-event-type.js.map +0 -1
  45. package/dist/utils/fake-tracking-event-generator.d.ts +0 -17
  46. package/dist/utils/fake-tracking-event-generator.js +0 -204
  47. package/dist/utils/fake-tracking-event-generator.js.map +0 -1
  48. package/dist/utils/index.d.ts +0 -1
  49. package/dist/utils/index.js +0 -18
  50. package/dist/utils/index.js.map +0 -1
  51. package/prettier.config.js +0 -9
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "@adtrackify/at-tracking-event-types",
3
- "version": "1.0.29",
3
+ "version": "1.0.33",
4
4
  "description": "",
5
+ "module": "./dist/index.js",
5
6
  "main": "./dist/index.js",
6
7
  "types": "./dist/index.d.ts",
8
+ "modules": "commonjs",
7
9
  "scripts": {
8
10
  "clean": "rimraf dist",
9
- "build": "npm run clean && npm run verify && cross-env NODE_ENV=production stage=dev APP_ENV=dev node ./node_modules/typescript/bin/tsc",
11
+ "build": "npm run clean && npm run verify && cross-env NODE_ENV=production stage=dev APP_ENV=dev node build.js",
10
12
  "elint": "eslint --ignore-path .gitignore .",
11
13
  "format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
12
14
  "lint": "tslint -p tsconfig.json",
@@ -27,7 +29,6 @@
27
29
  "@types/ua-parser-js": "^0.7.36"
28
30
  },
29
31
  "devDependencies": {
30
- "ua-parser-js": "^1.0.2",
31
32
  "@babel/cli": "^7.13.16",
32
33
  "@babel/core": "^7.18.13",
33
34
  "@babel/plugin-proposal-optional-chaining": "^7.13.8",
@@ -59,11 +60,13 @@
59
60
  "jest-cucumber": "3.0.1",
60
61
  "jest-junit": "13.0.0",
61
62
  "jest-runner-groups": "2.1.0",
63
+ "npm-dts": "^1.3.12",
62
64
  "npm-run-all": "^4.1.5",
63
65
  "npm-scripts-info": "^0.3.9",
64
66
  "regenerator-runtime": "^0.13.9",
65
67
  "rimraf": "^3.0.2",
66
- "typescript": "4.7.4"
68
+ "typescript": "4.7.4",
69
+ "ua-parser-js": "^1.0.2"
67
70
  },
68
71
  "repository": {
69
72
  "type": "git",
package/src/index.ts CHANGED
@@ -1 +1,2 @@
1
- export * from './types';
1
+ export * from './types';
2
+ export * from './utils';
@@ -7,7 +7,7 @@ export interface Subscription {
7
7
  stripeCustomerId?: string,
8
8
  stripeSubscriptionId?: string,
9
9
  stripeCompletedCheckoutSession?: any;
10
- shopifyChargeId: string;
10
+ shopifyChargeId?: string;
11
11
  subscriptionPlan?: SubscriptionPlan,
12
12
  status?: SUBSCRIPTION_STATUS,
13
13
  paymentStatus?: PAYMENT_STATUS,
@@ -20,6 +20,7 @@ export interface SubscriptionPlan {
20
20
  id: number;
21
21
  planName: string;
22
22
  description: string;
23
+ sku: string;
23
24
  price: string;
24
25
  billingFrequency: PLAN_BILLING_FREQUENCY;
25
26
  trialLengthDays?: number;
@@ -51,4 +52,116 @@ export enum PAYMENT_GATEWAY {
51
52
  STRIPE = 'stripe',
52
53
  PAYPAL = 'paypal',
53
54
  SHOPIFY = 'shopify'
54
- }
55
+ }
56
+
57
+ export const StripeBillingMap: any = {
58
+ dev: {
59
+ 'free': 'price_1JzjbKK7krGh4037ezNbGJEm',
60
+ 'starter_monthly': 'price_1JwzsGK7krGh4037Li0hPpsZ',
61
+ 'starter_yearly': 'price_1JwzsGK7krGh4037Li0hPpsZ',
62
+ 'scale_monthly': 'price_1JzjcSK7krGh4037yh34LPk3',
63
+ 'scale_yearly': 'price_1JzjcSK7krGh4037QiBJYfnD',
64
+ 'growth_monthly': 'price_1Jzje1K7krGh4037KErHBp5N',
65
+ 'growth_yearly': 'price_1Jzje1K7krGh4037MhCUhTDh'
66
+ },
67
+ qa: {
68
+ 'free': 'price_1JzjbKK7krGh4037ezNbGJEm',
69
+ 'starter_monthly': 'price_1JwzsGK7krGh4037Li0hPpsZ',
70
+ 'starter_yearly': 'price_1JwzsGK7krGh4037Li0hPpsZ',
71
+ 'scale_monthly': 'price_1JzjcSK7krGh4037yh34LPk3',
72
+ 'scale_yearly': 'price_1JzjcSK7krGh4037QiBJYfnD',
73
+ 'growth_monthly': 'price_1Jzje1K7krGh4037KErHBp5N',
74
+ 'growth_yearly': 'price_1Jzje1K7krGh4037MhCUhTDh'
75
+ },
76
+ prod: {
77
+ 'free': 'price_1KAFsIK7krGh4037RsaAYMEl',
78
+ 'starter_monthly': 'price_1KAFsMK7krGh4037Lz3P0ksU',
79
+ 'starter_yearly': 'price_1KAFsMK7krGh4037Dj1WmSi8',
80
+ 'scale_monthly': 'price_1KAFrxK7krGh4037zWCdaTly',
81
+ 'scale_yearly': 'price_1KAFrxK7krGh40375fhymyWP',
82
+ 'growth_monthly': 'price_1KAFs7K7krGh4037JChjz5Cr',
83
+ 'growth_yearly': 'price_1KAFs7K7krGh4037rZElg12s'
84
+ }
85
+ };
86
+ export const SubscriptionPlanSeedItems: {
87
+ items: SubscriptionPlan[];
88
+ } = {
89
+ items: [ {
90
+ id: 1,
91
+ planName: 'free',
92
+ sku: 'ADT-001',
93
+ description: 'Free Plan - Monthly',
94
+ price: '0',
95
+ billingFrequency: PLAN_BILLING_FREQUENCY.MONTHLY,
96
+ trialLengthDays: 30,
97
+ trialRequiresCreditCard: false
98
+ },
99
+ // STARTER PLANS
100
+ {
101
+ id: 2,
102
+ planName: 'starter_monthly',
103
+ sku: 'ADT-002',
104
+ description: 'Starter Plan - Monthly',
105
+ price: '9.99',
106
+ billingFrequency: PLAN_BILLING_FREQUENCY.MONTHLY,
107
+ trialLengthDays: 30,
108
+ trialRequiresCreditCard: false
109
+ }, {
110
+ id: 3,
111
+ planName: 'starter_yearly',
112
+ sku: 'ADT-003',
113
+ description: 'Starter Plan - Yearly',
114
+ price: '96.00',
115
+ billingFrequency: PLAN_BILLING_FREQUENCY.YEARLY,
116
+ trialLengthDays: 30,
117
+ trialRequiresCreditCard: false
118
+ },
119
+ // SCALE PLANS
120
+ {
121
+ id: 4,
122
+ planName: 'scale_monthly',
123
+ sku: 'ADT-004',
124
+ description: 'Scale Plan - Monthly',
125
+ price: '59.99',
126
+ billingFrequency: PLAN_BILLING_FREQUENCY.MONTHLY,
127
+ trialLengthDays: 30,
128
+ trialRequiresCreditCard: false
129
+ }, {
130
+ id: 5,
131
+ planName: 'scale_yearly',
132
+ sku: 'ADT-005',
133
+ description: 'Scale Plan - Yearly',
134
+ price: '588.00',
135
+ billingFrequency: PLAN_BILLING_FREQUENCY.YEARLY,
136
+ trialLengthDays: 30,
137
+ trialRequiresCreditCard: false
138
+ },
139
+ // GROWTH PLANS
140
+ {
141
+ id: 6,
142
+ planName: 'growth_monthly',
143
+ sku: 'ADT-006',
144
+ description: 'Growth Plan - Monthly',
145
+ price: '159.99',
146
+ billingFrequency: PLAN_BILLING_FREQUENCY.MONTHLY,
147
+ trialLengthDays: 30,
148
+ trialRequiresCreditCard: false
149
+ }, {
150
+ id: 7,
151
+ planName: 'growth_yearly',
152
+ sku: 'ADT-007',
153
+ description: 'Growth Plan - Yearly',
154
+ price: '1596.00',
155
+ billingFrequency: PLAN_BILLING_FREQUENCY.YEARLY,
156
+ trialLengthDays: 30,
157
+ trialRequiresCreditCard: false
158
+ },
159
+ ]
160
+ };
161
+
162
+
163
+ export const getPlanDetails = (planId: number, stage: string) => {
164
+ const plan = SubscriptionPlanSeedItems.items.filter(x => x.id === planId)[ 0 ] as any;
165
+ plan.stripePriceId = StripeBillingMap[ stage ][ plan.planName ];
166
+ return plan as SubscriptionPlan;
167
+ };
package/tsconfig.json CHANGED
@@ -1,11 +1,8 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "target": "esnext" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */,
3
+ "target": "ES2018" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */,
4
4
  "module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
5
- "lib": [
6
- "ESNext"
7
- ],
8
- "allowJs": true, /* Allow javascript files to be compiled. */
5
+ "allowJs": false, /* Allow javascript files to be compiled. */
9
6
  "checkJs": false /* Report errors in .js files. */,
10
7
  "outDir": "dist", /* Redirect output to the directory. */
11
8
  "rootDir": "./src" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
@@ -1,13 +0,0 @@
1
- import { TrackingEvent } from './tracking-event-type';
2
- export interface AdtrackifyEventBusEvent {
3
- eventId: string;
4
- eventType: string;
5
- eventTime: string;
6
- eventData?: object;
7
- }
8
- export interface AdtrackifyEventBusTrackingEvent extends AdtrackifyEventBusEvent {
9
- eventData: {
10
- trackingEvent: TrackingEvent;
11
- pixelId: string;
12
- };
13
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=adtrackify-event-bus-event.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"adtrackify-event-bus-event.js","sourceRoot":"","sources":["../../src/types/adtrackify-event-bus-event.ts"],"names":[],"mappings":""}
@@ -1,18 +0,0 @@
1
- export declare enum ADTRACKIFY_STANDARD_EVENT {
2
- ADD_PAYMENT_INFO = "add_payment_info",
3
- ADD_SHIPPING_INFO = "add_shipping_info",
4
- ADD_TO_CART = "add_to_cart",
5
- ADD_TO_WISHLIST = "add_to_wishlist",
6
- INITIATE_CHECKOUT = "initiate_checkout",
7
- LEAD = "lead",
8
- LOGIN = "login",
9
- PAGE_VIEW = "page_view",
10
- PURCHASE = "purchase",
11
- REFUND = "refund",
12
- SEARCH = "search",
13
- SIGN_UP = "sign_up",
14
- VIEW_CART = "view_cart",
15
- VIEW_CONTENT = "view_content",
16
- SELECT_SHIPPING_METHOD = "select_shipping_method",
17
- VIRTUALIZED_VIEWED_PAYMENT_FORM = "virtualized_viewd_payment_form"
18
- }
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ADTRACKIFY_STANDARD_EVENT = void 0;
4
- var ADTRACKIFY_STANDARD_EVENT;
5
- (function (ADTRACKIFY_STANDARD_EVENT) {
6
- ADTRACKIFY_STANDARD_EVENT["ADD_PAYMENT_INFO"] = "add_payment_info";
7
- ADTRACKIFY_STANDARD_EVENT["ADD_SHIPPING_INFO"] = "add_shipping_info";
8
- ADTRACKIFY_STANDARD_EVENT["ADD_TO_CART"] = "add_to_cart";
9
- ADTRACKIFY_STANDARD_EVENT["ADD_TO_WISHLIST"] = "add_to_wishlist";
10
- ADTRACKIFY_STANDARD_EVENT["INITIATE_CHECKOUT"] = "initiate_checkout";
11
- ADTRACKIFY_STANDARD_EVENT["LEAD"] = "lead";
12
- ADTRACKIFY_STANDARD_EVENT["LOGIN"] = "login";
13
- ADTRACKIFY_STANDARD_EVENT["PAGE_VIEW"] = "page_view";
14
- ADTRACKIFY_STANDARD_EVENT["PURCHASE"] = "purchase";
15
- ADTRACKIFY_STANDARD_EVENT["REFUND"] = "refund";
16
- ADTRACKIFY_STANDARD_EVENT["SEARCH"] = "search";
17
- ADTRACKIFY_STANDARD_EVENT["SIGN_UP"] = "sign_up";
18
- ADTRACKIFY_STANDARD_EVENT["VIEW_CART"] = "view_cart";
19
- ADTRACKIFY_STANDARD_EVENT["VIEW_CONTENT"] = "view_content";
20
- ADTRACKIFY_STANDARD_EVENT["SELECT_SHIPPING_METHOD"] = "select_shipping_method";
21
- ADTRACKIFY_STANDARD_EVENT["VIRTUALIZED_VIEWED_PAYMENT_FORM"] = "virtualized_viewd_payment_form";
22
- })(ADTRACKIFY_STANDARD_EVENT = exports.ADTRACKIFY_STANDARD_EVENT || (exports.ADTRACKIFY_STANDARD_EVENT = {}));
23
- //# sourceMappingURL=adtrackify-standard-events.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"adtrackify-standard-events.js","sourceRoot":"","sources":["../../src/types/adtrackify-standard-events.ts"],"names":[],"mappings":";;;AAAA,IAAY,yBAyBX;AAzBD,WAAY,yBAAyB;IACnC,kEAAqC,CAAA;IACrC,oEAAuC,CAAA;IACvC,wDAA2B,CAAA;IAC3B,gEAAmC,CAAA;IAGnC,oEAAuC,CAAA;IACvC,0CAAa,CAAA;IACb,4CAAe,CAAA;IACf,oDAAuB,CAAA;IACvB,kDAAqB,CAAA;IACrB,8CAAiB,CAAA;IACjB,8CAAiB,CAAA;IAIjB,gDAAmB,CAAA;IACnB,oDAAuB,CAAA;IACvB,0DAA6B,CAAA;IAI7B,8EAAiD,CAAA;IACjD,+FAAkE,CAAA;AACpE,CAAC,EAzBW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAyBpC"}
@@ -1,17 +0,0 @@
1
- export interface Account {
2
- id: string;
3
- accountName: string;
4
- companyName?: string;
5
- accountStatus: ACCOUNT_STATUS;
6
- primaryEmail: string;
7
- publicApiKey?: string;
8
- subscriptionId?: string;
9
- ownerId?: string;
10
- createdAt: string;
11
- updatedAt: string;
12
- }
13
- export declare enum ACCOUNT_STATUS {
14
- PENDING = "pending",
15
- ACTIVE = "active",
16
- INACTIVE = "inactive"
17
- }
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ACCOUNT_STATUS = void 0;
4
- var ACCOUNT_STATUS;
5
- (function (ACCOUNT_STATUS) {
6
- ACCOUNT_STATUS["PENDING"] = "pending";
7
- ACCOUNT_STATUS["ACTIVE"] = "active";
8
- ACCOUNT_STATUS["INACTIVE"] = "inactive";
9
- })(ACCOUNT_STATUS = exports.ACCOUNT_STATUS || (exports.ACCOUNT_STATUS = {}));
10
- //# sourceMappingURL=account.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"account.js","sourceRoot":"","sources":["../../../src/types/api/account.ts"],"names":[],"mappings":";;;AAaA,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;AACvB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB"}
@@ -1,44 +0,0 @@
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
- export interface DestinationCatalogItem {
13
- id: string;
14
- active: boolean;
15
- destinationKey: string;
16
- destinationType: string;
17
- displayName?: string;
18
- shortName?: string;
19
- description?: string;
20
- url: string;
21
- fields?: any;
22
- createdAt: string;
23
- updatedAt: string;
24
- }
25
- export interface DestinationCatalogFields {
26
- component_type: string;
27
- name: string;
28
- description: string;
29
- label: string;
30
- type: string;
31
- required: boolean;
32
- order: number;
33
- }
34
- export interface AdTrackifyFacebookDestination extends Destination {
35
- configuration: FacebookPixelConfiguration;
36
- }
37
- export interface FacebookPixelConfiguration {
38
- apiAccessToken?: string;
39
- enableConversionAPI: boolean;
40
- pixelId: string;
41
- }
42
- export interface GoogleAnalytics4Configuration {
43
- measurementId: string;
44
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=destination.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"destination.js","sourceRoot":"","sources":["../../../src/types/api/destination.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- export declare enum DESTINATIONS {
2
- FACEBOOK = "facebook",
3
- TIKTOK = "tiktok",
4
- GOOGLE_ADS = "googleAds",
5
- GOOGLE_ANALYTICS_4 = "googleAnalytics4"
6
- }
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DESTINATIONS = void 0;
4
- var DESTINATIONS;
5
- (function (DESTINATIONS) {
6
- DESTINATIONS["FACEBOOK"] = "facebook";
7
- DESTINATIONS["TIKTOK"] = "tiktok";
8
- DESTINATIONS["GOOGLE_ADS"] = "googleAds";
9
- DESTINATIONS["GOOGLE_ANALYTICS_4"] = "googleAnalytics4";
10
- })(DESTINATIONS = exports.DESTINATIONS || (exports.DESTINATIONS = {}));
11
- //# sourceMappingURL=destinations.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"destinations.js","sourceRoot":"","sources":["../../../src/types/api/destinations.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,qCAAqB,CAAA;IACrB,iCAAiB,CAAA;IACjB,wCAAwB,CAAA;IACxB,uDAAuC,CAAA;AACzC,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB"}
@@ -1,6 +0,0 @@
1
- export * from './account';
2
- export * from './destination';
3
- export * from './destinations';
4
- export * from './shopify-app-install';
5
- export * from './subscription';
6
- export * from './user';
@@ -1,23 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./account"), exports);
18
- __exportStar(require("./destination"), exports);
19
- __exportStar(require("./destinations"), exports);
20
- __exportStar(require("./shopify-app-install"), exports);
21
- __exportStar(require("./subscription"), exports);
22
- __exportStar(require("./user"), exports);
23
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,gDAA8B;AAC9B,iDAA+B;AAC/B,wDAAsC;AACtC,iDAA+B;AAC/B,yCAAuB"}
@@ -1,46 +0,0 @@
1
- export interface ShopifyAppInstall {
2
- shopifyAppInstallId: string;
3
- shop: string;
4
- accessToken?: string;
5
- appStatus?: string;
6
- appSubscriptionStatus?: ShopifyAppSubscriptionStatus;
7
- code?: string;
8
- hmac?: string;
9
- host?: string;
10
- installRequest?: ShopifyInstallRequest;
11
- isAppEnabled?: boolean;
12
- pixelId?: string;
13
- shopInfo?: any;
14
- state?: string;
15
- timestamp?: number;
16
- createdAt: string;
17
- updatedAt: string;
18
- }
19
- export declare enum ShopifyAppInstallStatus {
20
- STARTED = "started",
21
- COMPLETED = "completed",
22
- UNINSTALLED = "uninstalled",
23
- FAILED = "failed",
24
- NONE = "none"
25
- }
26
- export declare enum ShopifyAppSubscriptionStatus {
27
- ACTIVE = "active",
28
- CANCELLED = "cancelled",
29
- DECLINED = "declined",
30
- EXPIRED = "expired",
31
- FROZEN = "frozen",
32
- PENDING = "pending",
33
- NOT_SUBMITTED = "na"
34
- }
35
- export interface ShopifyInstallRequest {
36
- shop?: string;
37
- session?: string;
38
- hmac?: string;
39
- host?: string;
40
- nonce?: string;
41
- timestamp?: string;
42
- status?: string;
43
- }
44
- export interface ShopifyStoreInfo {
45
- [key: string]: any;
46
- }
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ShopifyAppSubscriptionStatus = exports.ShopifyAppInstallStatus = void 0;
4
- var ShopifyAppInstallStatus;
5
- (function (ShopifyAppInstallStatus) {
6
- ShopifyAppInstallStatus["STARTED"] = "started";
7
- ShopifyAppInstallStatus["COMPLETED"] = "completed";
8
- ShopifyAppInstallStatus["UNINSTALLED"] = "uninstalled";
9
- ShopifyAppInstallStatus["FAILED"] = "failed";
10
- ShopifyAppInstallStatus["NONE"] = "none";
11
- })(ShopifyAppInstallStatus = exports.ShopifyAppInstallStatus || (exports.ShopifyAppInstallStatus = {}));
12
- var ShopifyAppSubscriptionStatus;
13
- (function (ShopifyAppSubscriptionStatus) {
14
- ShopifyAppSubscriptionStatus["ACTIVE"] = "active";
15
- ShopifyAppSubscriptionStatus["CANCELLED"] = "cancelled";
16
- ShopifyAppSubscriptionStatus["DECLINED"] = "declined";
17
- ShopifyAppSubscriptionStatus["EXPIRED"] = "expired";
18
- ShopifyAppSubscriptionStatus["FROZEN"] = "frozen";
19
- ShopifyAppSubscriptionStatus["PENDING"] = "pending";
20
- ShopifyAppSubscriptionStatus["NOT_SUBMITTED"] = "na";
21
- })(ShopifyAppSubscriptionStatus = exports.ShopifyAppSubscriptionStatus || (exports.ShopifyAppSubscriptionStatus = {}));
22
- //# sourceMappingURL=shopify-app-install.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"shopify-app-install.js","sourceRoot":"","sources":["../../../src/types/api/shopify-app-install.ts"],"names":[],"mappings":";;;AAmBA,IAAY,uBAMX;AAND,WAAY,uBAAuB;IACjC,8CAAmB,CAAA;IACnB,kDAAuB,CAAA;IACvB,sDAA2B,CAAA;IAC3B,4CAAiB,CAAA;IACjB,wCAAa,CAAA;AACf,CAAC,EANW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAMlC;AACD,IAAY,4BAQX;AARD,WAAY,4BAA4B;IACtC,iDAAiB,CAAA;IACjB,uDAAuB,CAAA;IACvB,qDAAqB,CAAA;IACrB,mDAAmB,CAAA;IACnB,iDAAiB,CAAA;IACjB,mDAAmB,CAAA;IACnB,oDAAoB,CAAA;AACtB,CAAC,EARW,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAQvC"}
@@ -1,49 +0,0 @@
1
- export interface Subscription {
2
- id: string;
3
- accountId?: string;
4
- shopifyAppInstallId?: string;
5
- shopifyDomain?: string;
6
- stripeCustomerId?: string;
7
- stripeSubscriptionId?: string;
8
- stripeCompletedCheckoutSession?: any;
9
- shopifyChargeId: string;
10
- subscriptionPlan?: SubscriptionPlan;
11
- status?: SUBSCRIPTION_STATUS;
12
- paymentStatus?: PAYMENT_STATUS;
13
- paymentGateway?: PAYMENT_GATEWAY;
14
- createdAt: string;
15
- updatedAt: string;
16
- }
17
- export interface SubscriptionPlan {
18
- id: number;
19
- planName: string;
20
- description: string;
21
- price: string;
22
- billingFrequency: PLAN_BILLING_FREQUENCY;
23
- trialLengthDays?: number;
24
- trialRequiresCreditCard?: boolean;
25
- }
26
- export declare enum PLAN_BILLING_FREQUENCY {
27
- MONTHLY = "monthly",
28
- YEARLY = "yearly"
29
- }
30
- export declare enum PAYMENT_STATUS {
31
- CURRENT = "current",
32
- PAST_DUE = "past_due",
33
- CANCELLED = "cancelled",
34
- FAILED = "failed"
35
- }
36
- export declare enum SUBSCRIPTION_STATUS {
37
- ACTIVE = "active",
38
- CANCELLED = "cancelled",
39
- DECLINED = "declined",
40
- EXPIRED = "expired",
41
- FROZEN = "frozen",
42
- PENDING = "pending",
43
- NOT_SUBMITTED = "na"
44
- }
45
- export declare enum PAYMENT_GATEWAY {
46
- STRIPE = "stripe",
47
- PAYPAL = "paypal",
48
- SHOPIFY = "shopify"
49
- }
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PAYMENT_GATEWAY = exports.SUBSCRIPTION_STATUS = exports.PAYMENT_STATUS = exports.PLAN_BILLING_FREQUENCY = void 0;
4
- var PLAN_BILLING_FREQUENCY;
5
- (function (PLAN_BILLING_FREQUENCY) {
6
- PLAN_BILLING_FREQUENCY["MONTHLY"] = "monthly";
7
- PLAN_BILLING_FREQUENCY["YEARLY"] = "yearly";
8
- })(PLAN_BILLING_FREQUENCY = exports.PLAN_BILLING_FREQUENCY || (exports.PLAN_BILLING_FREQUENCY = {}));
9
- var PAYMENT_STATUS;
10
- (function (PAYMENT_STATUS) {
11
- PAYMENT_STATUS["CURRENT"] = "current";
12
- PAYMENT_STATUS["PAST_DUE"] = "past_due";
13
- PAYMENT_STATUS["CANCELLED"] = "cancelled";
14
- PAYMENT_STATUS["FAILED"] = "failed";
15
- })(PAYMENT_STATUS = exports.PAYMENT_STATUS || (exports.PAYMENT_STATUS = {}));
16
- var SUBSCRIPTION_STATUS;
17
- (function (SUBSCRIPTION_STATUS) {
18
- SUBSCRIPTION_STATUS["ACTIVE"] = "active";
19
- SUBSCRIPTION_STATUS["CANCELLED"] = "cancelled";
20
- SUBSCRIPTION_STATUS["DECLINED"] = "declined";
21
- SUBSCRIPTION_STATUS["EXPIRED"] = "expired";
22
- SUBSCRIPTION_STATUS["FROZEN"] = "frozen";
23
- SUBSCRIPTION_STATUS["PENDING"] = "pending";
24
- SUBSCRIPTION_STATUS["NOT_SUBMITTED"] = "na";
25
- })(SUBSCRIPTION_STATUS = exports.SUBSCRIPTION_STATUS || (exports.SUBSCRIPTION_STATUS = {}));
26
- var PAYMENT_GATEWAY;
27
- (function (PAYMENT_GATEWAY) {
28
- PAYMENT_GATEWAY["STRIPE"] = "stripe";
29
- PAYMENT_GATEWAY["PAYPAL"] = "paypal";
30
- PAYMENT_GATEWAY["SHOPIFY"] = "shopify";
31
- })(PAYMENT_GATEWAY = exports.PAYMENT_GATEWAY || (exports.PAYMENT_GATEWAY = {}));
32
- //# sourceMappingURL=subscription.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../src/types/api/subscription.ts"],"names":[],"mappings":";;;AA4BA,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,6CAAmB,CAAA;IACnB,2CAAiB,CAAA;AACnB,CAAC,EAHW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAGjC;AAED,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,uCAAqB,CAAA;IACrB,yCAAuB,CAAA;IACvB,mCAAiB,CAAA;AACnB,CAAC,EALW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAKzB;AAED,IAAY,mBAQX;AARD,WAAY,mBAAmB;IAC7B,wCAAiB,CAAA;IACjB,8CAAuB,CAAA;IACvB,4CAAqB,CAAA;IACrB,0CAAmB,CAAA;IACnB,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,2CAAoB,CAAA;AACtB,CAAC,EARW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAQ9B;AACD,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,oCAAiB,CAAA;IACjB,sCAAmB,CAAA;AACrB,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B"}
@@ -1,13 +0,0 @@
1
- export interface User {
2
- id: string;
3
- sub: string;
4
- userId: string;
5
- Username: string;
6
- UserLastModifiedDate: string;
7
- Enabled: boolean;
8
- UserStatus: string;
9
- email: string;
10
- email_verified: string;
11
- name: string;
12
- family_name: string;
13
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=user.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user.js","sourceRoot":"","sources":["../../../src/types/api/user.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- export * from './adtrackify-standard-events';
2
- export * from './third-party-event-configuration-types';
3
- export * from './tracking-event-type';
4
- export * from './adtrackify-event-bus-event';
5
- export * from './api';
@@ -1,22 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./adtrackify-standard-events"), exports);
18
- __exportStar(require("./third-party-event-configuration-types"), exports);
19
- __exportStar(require("./tracking-event-type"), exports);
20
- __exportStar(require("./adtrackify-event-bus-event"), exports);
21
- __exportStar(require("./api"), exports);
22
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,0EAAwD;AACxD,wDAAsC;AACtC,+DAA6C;AAC7C,wCAAsB"}
@@ -1,8 +0,0 @@
1
- export interface DestinationConfiguration {
2
- eventConfigurations: DestinationEventSpecificConfiguration[];
3
- }
4
- export interface DestinationEventSpecificConfiguration {
5
- enabled: boolean;
6
- sourceEventName: string;
7
- destinationEventName: string;
8
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=third-party-event-configuration-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"third-party-event-configuration-types.js","sourceRoot":"","sources":["../../src/types/third-party-event-configuration-types.ts"],"names":[],"mappings":""}