@adtrackify/at-tracking-event-types 1.0.19 → 1.0.21

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
@@ -1,2 +1 @@
1
1
  export * from './types';
2
- export * from './utils';
package/dist/index.js CHANGED
@@ -15,5 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./types"), exports);
18
- __exportStar(require("./utils"), exports);
19
18
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
@@ -1,22 +1,38 @@
1
- export interface AdTrackifyDestination {
1
+ export interface Destination {
2
2
  id: string;
3
3
  accountId: string;
4
4
  pixelId: string;
5
5
  destination: string;
6
- displayName: string;
7
- configuration?: any;
6
+ displayName?: string;
8
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;
9
24
  }
10
- export interface AdTrackifyFacebookDestination extends AdTrackifyDestination {
11
- configuration: {
12
- apiAccessToken: string;
13
- enableConversionAPI: boolean;
14
- pixelId: string;
15
- };
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;
16
33
  }
17
- export declare enum ADTRACKIFY_DESTINATIONS {
18
- FACEBOOK = "facebook",
19
- GOOGLE_ANALYTICS_4 = "googleAnalytics4"
34
+ export interface AdTrackifyFacebookDestination extends Destination {
35
+ configuration: FacebookPixelConfiguration;
20
36
  }
21
37
  export interface FacebookPixelConfiguration {
22
38
  apiAccessToken?: string;
@@ -1,9 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ADTRACKIFY_DESTINATIONS = void 0;
4
- var ADTRACKIFY_DESTINATIONS;
5
- (function (ADTRACKIFY_DESTINATIONS) {
6
- ADTRACKIFY_DESTINATIONS["FACEBOOK"] = "facebook";
7
- ADTRACKIFY_DESTINATIONS["GOOGLE_ANALYTICS_4"] = "googleAnalytics4";
8
- })(ADTRACKIFY_DESTINATIONS = exports.ADTRACKIFY_DESTINATIONS || (exports.ADTRACKIFY_DESTINATIONS = {}));
9
3
  //# sourceMappingURL=destination.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"destination.js","sourceRoot":"","sources":["../../../src/types/api/destination.ts"],"names":[],"mappings":";;;AAmBA,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IACjC,gDAAqB,CAAA;IACrB,kEAAuC,CAAA;AACzC,CAAC,EAHW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAGlC"}
1
+ {"version":3,"file":"destination.js","sourceRoot":"","sources":["../../../src/types/api/destination.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export declare enum DESTINATIONS {
2
+ FACEBOOK = "facebook",
3
+ TIKTOK = "tiktok",
4
+ GOOGLE_ADS = "googleAds",
5
+ GOOGLE_ANALYTICS_4 = "googleAnalytics4"
6
+ }
@@ -0,0 +1,11 @@
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
@@ -0,0 +1 @@
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 +1,3 @@
1
+ export * from './shopify-app-install';
1
2
  export * from './destination';
3
+ export * from './destinations';
@@ -14,5 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./shopify-app-install"), exports);
17
18
  __exportStar(require("./destination"), exports);
19
+ __exportStar(require("./destinations"), exports);
18
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,gDAA8B;AAC9B,iDAA+B"}
@@ -0,0 +1,29 @@
1
+ export interface ShopifyAppInstall {
2
+ shopifyAppInstallId: string;
3
+ accessToken?: string;
4
+ appStatus?: string;
5
+ code?: string;
6
+ createdAt: string;
7
+ hmac?: string;
8
+ host?: string;
9
+ installRequest: ShopifyInstallRequest;
10
+ isAppEnabled: boolean;
11
+ pixelId?: string;
12
+ shop: string;
13
+ shopInfo?: any;
14
+ state?: string;
15
+ timestamp?: number;
16
+ updatedAt: string;
17
+ }
18
+ export interface ShopifyInstallRequest {
19
+ shop: string;
20
+ session: string;
21
+ hmac: string;
22
+ host: string;
23
+ nonce: string;
24
+ timestamp: string;
25
+ status: string;
26
+ }
27
+ export interface ShopifyStoreInfo {
28
+ [key: string]: any;
29
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=shopify-app-install.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shopify-app-install.js","sourceRoot":"","sources":["../../../src/types/api/shopify-app-install.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adtrackify/at-tracking-event-types",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
package/src/index.ts CHANGED
@@ -1,2 +1 @@
1
- export * from './types';
2
- export * from './utils';
1
+ export * from './types';
@@ -1,33 +1,47 @@
1
- export interface AdTrackifyDestination {
2
- id: string;
3
- accountId: string;
4
- pixelId: string;
1
+ export interface Destination {
2
+ id: string,
3
+ accountId: string,
4
+ pixelId: string,
5
5
  destination: string;
6
- displayName: string;
7
- configuration?: any;
6
+ displayName?: string,
8
7
  enabled: boolean;
8
+ configuration: any,
9
+ createdAt: string,
10
+ updatedAt: string;
9
11
  }
10
12
 
11
-
12
- export interface AdTrackifyFacebookDestination extends AdTrackifyDestination {
13
- configuration: {
14
- apiAccessToken: string;
15
- enableConversionAPI: boolean;
16
- pixelId: string;
17
- };
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;
18
25
  }
19
26
 
20
- export enum ADTRACKIFY_DESTINATIONS {
21
- FACEBOOK = 'facebook',
22
- GOOGLE_ANALYTICS_4 = 'googleAnalytics4'
27
+ export interface DestinationCatalogFields {
28
+ component_type: string,
29
+ name: string,
30
+ description: string,
31
+ label: string,
32
+ type: string,
33
+ required: boolean,
34
+ order: number;
23
35
  }
24
36
 
37
+ export interface AdTrackifyFacebookDestination extends Destination {
38
+ configuration: FacebookPixelConfiguration;
39
+ }
25
40
  export interface FacebookPixelConfiguration {
26
41
  apiAccessToken?: string;
27
42
  enableConversionAPI: boolean;
28
43
  pixelId: string;
29
44
  }
30
-
31
45
  export interface GoogleAnalytics4Configuration {
32
46
  measurementId: string;
33
- }
47
+ }
@@ -0,0 +1,6 @@
1
+ export enum DESTINATIONS {
2
+ FACEBOOK = 'facebook',
3
+ TIKTOK = 'tiktok',
4
+ GOOGLE_ADS = 'googleAds',
5
+ GOOGLE_ANALYTICS_4 = 'googleAnalytics4'
6
+ }
@@ -1 +1,3 @@
1
- export * from './destination';
1
+ export * from './shopify-app-install';
2
+ export * from './destination';
3
+ export * from './destinations';
@@ -0,0 +1,32 @@
1
+ export interface ShopifyAppInstall {
2
+ shopifyAppInstallId: string;
3
+ accessToken?: string;
4
+ appStatus?: string;
5
+ code?: string;
6
+ createdAt: string;
7
+ hmac?: string;
8
+ host?: string;
9
+ installRequest: ShopifyInstallRequest;
10
+ isAppEnabled: boolean;
11
+ pixelId?: string;
12
+ shop: string;
13
+ shopInfo?: any;
14
+ state?: string;
15
+ timestamp?: number;
16
+ updatedAt: string;
17
+ }
18
+
19
+ export interface ShopifyInstallRequest {
20
+ shop: string;
21
+ session: string;
22
+ hmac: string;
23
+ host: string;
24
+ nonce: string;
25
+ timestamp: string;
26
+ status: string;
27
+ }
28
+
29
+ export interface ShopifyStoreInfo {
30
+ // TBD based on shopify api
31
+ [ key: string ]: any;
32
+ }