@adtrackify/at-tracking-event-types 2.0.33 → 2.0.35

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.
@@ -2,15 +2,19 @@ export interface Destination {
2
2
  id: string;
3
3
  accountId: string;
4
4
  pixelId: string;
5
- destination: string;
6
- destinationType?: string;
5
+ destination: DESTINATION;
6
+ destinationType?: DESTINATTON_TYPE;
7
7
  displayName?: string;
8
8
  enabled: boolean;
9
9
  configuration?: UserDestinationConfiguration;
10
10
  createdAt: string;
11
11
  updatedAt: string;
12
12
  }
13
- export declare enum DESTINATIONS {
13
+ export declare enum DESTINATTON_TYPE {
14
+ INTEGRATION = "integration",
15
+ DESTIANTION = "destination"
16
+ }
17
+ export declare enum DESTINATION {
14
18
  FACEBOOK = "facebook",
15
19
  TIKTOK = "tiktok",
16
20
  GOOGLE_ADS = "googleAds",
@@ -1,20 +1,25 @@
1
1
  "use strict";
2
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["HUBSPOT"] = "hubspot";
11
- DESTINATIONS["WEBHOOK"] = "webhook";
12
- DESTINATIONS["CUSTOM_HTML"] = "customHTML";
13
- DESTINATIONS["SNAPCHAT"] = "snapchat";
14
- DESTINATIONS["TWITTER"] = "twitter";
15
- DESTINATIONS["REDDIT"] = "reddit";
16
- DESTINATIONS["INTERCOM"] = "intercom";
17
- DESTINATIONS["FACEBOOK_INTEGRATION"] = "facebookIntegration";
18
- DESTINATIONS["GOOGLE_ADS_INTEGRATION"] = "googleAdsIntegration";
19
- })(DESTINATIONS = exports.DESTINATIONS || (exports.DESTINATIONS = {}));
3
+ exports.DESTINATION = exports.DESTINATTON_TYPE = void 0;
4
+ var DESTINATTON_TYPE;
5
+ (function (DESTINATTON_TYPE) {
6
+ DESTINATTON_TYPE["INTEGRATION"] = "integration";
7
+ DESTINATTON_TYPE["DESTIANTION"] = "destination";
8
+ })(DESTINATTON_TYPE = exports.DESTINATTON_TYPE || (exports.DESTINATTON_TYPE = {}));
9
+ var DESTINATION;
10
+ (function (DESTINATION) {
11
+ DESTINATION["FACEBOOK"] = "facebook";
12
+ DESTINATION["TIKTOK"] = "tiktok";
13
+ DESTINATION["GOOGLE_ADS"] = "googleAds";
14
+ DESTINATION["GOOGLE_ANALYTICS_4"] = "googleAnalytics4";
15
+ DESTINATION["HUBSPOT"] = "hubspot";
16
+ DESTINATION["WEBHOOK"] = "webhook";
17
+ DESTINATION["CUSTOM_HTML"] = "customHTML";
18
+ DESTINATION["SNAPCHAT"] = "snapchat";
19
+ DESTINATION["TWITTER"] = "twitter";
20
+ DESTINATION["REDDIT"] = "reddit";
21
+ DESTINATION["INTERCOM"] = "intercom";
22
+ DESTINATION["FACEBOOK_INTEGRATION"] = "facebookIntegration";
23
+ DESTINATION["GOOGLE_ADS_INTEGRATION"] = "googleAdsIntegration";
24
+ })(DESTINATION = exports.DESTINATION || (exports.DESTINATION = {}));
20
25
  //# sourceMappingURL=destinations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"destinations.js","sourceRoot":"","sources":["../../../../../src/types/api/destinations/destinations.ts"],"names":[],"mappings":";;;AAaA,IAAY,YAcX;AAdD,WAAY,YAAY;IACtB,qCAAqB,CAAA;IACrB,iCAAiB,CAAA;IACjB,wCAAwB,CAAA;IACxB,uDAAuC,CAAA;IACvC,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,0CAA0B,CAAA;IAC1B,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,4DAA4C,CAAA;IAC5C,+DAA+C,CAAA;AACjD,CAAC,EAdW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAcvB"}
1
+ {"version":3,"file":"destinations.js","sourceRoot":"","sources":["../../../../../src/types/api/destinations/destinations.ts"],"names":[],"mappings":";;;AAaA,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,+CAA2B,CAAA;IAC3B,+CAA2B,CAAA;AAC7B,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B;AAED,IAAY,WAcX;AAdD,WAAY,WAAW;IACrB,oCAAqB,CAAA;IACrB,gCAAiB,CAAA;IACjB,uCAAwB,CAAA;IACxB,sDAAuC,CAAA;IACvC,kCAAmB,CAAA;IACnB,kCAAmB,CAAA;IACnB,yCAA0B,CAAA;IAC1B,oCAAqB,CAAA;IACrB,kCAAmB,CAAA;IACnB,gCAAiB,CAAA;IACjB,oCAAqB,CAAA;IACrB,2DAA4C,CAAA;IAC5C,8DAA+C,CAAA;AACjD,CAAC,EAdW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QActB"}
@@ -1,4 +1,4 @@
1
- import { DESTINATIONS } from '../api';
1
+ import { DESTINATION } from '../api';
2
2
  import { InternalEvent } from './base/event';
3
3
  export interface LogEvent extends InternalEvent {
4
4
  data: LogEventData;
@@ -12,7 +12,7 @@ export interface LogEventData {
12
12
  context?: LogContext;
13
13
  }
14
14
  export interface LogContext {
15
- integrationType?: DESTINATIONS;
15
+ integrationType?: DESTINATION;
16
16
  eventId?: string;
17
17
  errorCode?: number;
18
18
  errorMessage?: string;
@@ -24,6 +24,7 @@ export interface TrackingEventData {
24
24
  value?: number;
25
25
  tax?: number;
26
26
  shipping?: number;
27
+ discount?: number;
27
28
  coupon?: string;
28
29
  paymentType?: string;
29
30
  shippingTier?: string;
@@ -2,15 +2,19 @@ export interface Destination {
2
2
  id: string;
3
3
  accountId: string;
4
4
  pixelId: string;
5
- destination: string;
6
- destinationType?: string;
5
+ destination: DESTINATION;
6
+ destinationType?: DESTINATTON_TYPE;
7
7
  displayName?: string;
8
8
  enabled: boolean;
9
9
  configuration?: UserDestinationConfiguration;
10
10
  createdAt: string;
11
11
  updatedAt: string;
12
12
  }
13
- export declare enum DESTINATIONS {
13
+ export declare enum DESTINATTON_TYPE {
14
+ INTEGRATION = "integration",
15
+ DESTIANTION = "destination"
16
+ }
17
+ export declare enum DESTINATION {
14
18
  FACEBOOK = "facebook",
15
19
  TIKTOK = "tiktok",
16
20
  GOOGLE_ADS = "googleAds",
@@ -1,17 +1,22 @@
1
- export var DESTINATIONS;
2
- (function (DESTINATIONS) {
3
- DESTINATIONS["FACEBOOK"] = "facebook";
4
- DESTINATIONS["TIKTOK"] = "tiktok";
5
- DESTINATIONS["GOOGLE_ADS"] = "googleAds";
6
- DESTINATIONS["GOOGLE_ANALYTICS_4"] = "googleAnalytics4";
7
- DESTINATIONS["HUBSPOT"] = "hubspot";
8
- DESTINATIONS["WEBHOOK"] = "webhook";
9
- DESTINATIONS["CUSTOM_HTML"] = "customHTML";
10
- DESTINATIONS["SNAPCHAT"] = "snapchat";
11
- DESTINATIONS["TWITTER"] = "twitter";
12
- DESTINATIONS["REDDIT"] = "reddit";
13
- DESTINATIONS["INTERCOM"] = "intercom";
14
- DESTINATIONS["FACEBOOK_INTEGRATION"] = "facebookIntegration";
15
- DESTINATIONS["GOOGLE_ADS_INTEGRATION"] = "googleAdsIntegration";
16
- })(DESTINATIONS || (DESTINATIONS = {}));
1
+ export var DESTINATTON_TYPE;
2
+ (function (DESTINATTON_TYPE) {
3
+ DESTINATTON_TYPE["INTEGRATION"] = "integration";
4
+ DESTINATTON_TYPE["DESTIANTION"] = "destination";
5
+ })(DESTINATTON_TYPE || (DESTINATTON_TYPE = {}));
6
+ export var DESTINATION;
7
+ (function (DESTINATION) {
8
+ DESTINATION["FACEBOOK"] = "facebook";
9
+ DESTINATION["TIKTOK"] = "tiktok";
10
+ DESTINATION["GOOGLE_ADS"] = "googleAds";
11
+ DESTINATION["GOOGLE_ANALYTICS_4"] = "googleAnalytics4";
12
+ DESTINATION["HUBSPOT"] = "hubspot";
13
+ DESTINATION["WEBHOOK"] = "webhook";
14
+ DESTINATION["CUSTOM_HTML"] = "customHTML";
15
+ DESTINATION["SNAPCHAT"] = "snapchat";
16
+ DESTINATION["TWITTER"] = "twitter";
17
+ DESTINATION["REDDIT"] = "reddit";
18
+ DESTINATION["INTERCOM"] = "intercom";
19
+ DESTINATION["FACEBOOK_INTEGRATION"] = "facebookIntegration";
20
+ DESTINATION["GOOGLE_ADS_INTEGRATION"] = "googleAdsIntegration";
21
+ })(DESTINATION || (DESTINATION = {}));
17
22
  //# sourceMappingURL=destinations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"destinations.js","sourceRoot":"","sources":["../../../../../src/types/api/destinations/destinations.ts"],"names":[],"mappings":"AAaA,MAAM,CAAN,IAAY,YAcX;AAdD,WAAY,YAAY;IACtB,qCAAqB,CAAA;IACrB,iCAAiB,CAAA;IACjB,wCAAwB,CAAA;IACxB,uDAAuC,CAAA;IACvC,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,0CAA0B,CAAA;IAC1B,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,4DAA4C,CAAA;IAC5C,+DAA+C,CAAA;AACjD,CAAC,EAdW,YAAY,KAAZ,YAAY,QAcvB"}
1
+ {"version":3,"file":"destinations.js","sourceRoot":"","sources":["../../../../../src/types/api/destinations/destinations.ts"],"names":[],"mappings":"AAaA,MAAM,CAAN,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,+CAA2B,CAAA;IAC3B,+CAA2B,CAAA;AAC7B,CAAC,EAHW,gBAAgB,KAAhB,gBAAgB,QAG3B;AAED,MAAM,CAAN,IAAY,WAcX;AAdD,WAAY,WAAW;IACrB,oCAAqB,CAAA;IACrB,gCAAiB,CAAA;IACjB,uCAAwB,CAAA;IACxB,sDAAuC,CAAA;IACvC,kCAAmB,CAAA;IACnB,kCAAmB,CAAA;IACnB,yCAA0B,CAAA;IAC1B,oCAAqB,CAAA;IACrB,kCAAmB,CAAA;IACnB,gCAAiB,CAAA;IACjB,oCAAqB,CAAA;IACrB,2DAA4C,CAAA;IAC5C,8DAA+C,CAAA;AACjD,CAAC,EAdW,WAAW,KAAX,WAAW,QActB"}
@@ -1,4 +1,4 @@
1
- import { DESTINATIONS } from '../api';
1
+ import { DESTINATION } from '../api';
2
2
  import { InternalEvent } from './base/event';
3
3
  export interface LogEvent extends InternalEvent {
4
4
  data: LogEventData;
@@ -12,7 +12,7 @@ export interface LogEventData {
12
12
  context?: LogContext;
13
13
  }
14
14
  export interface LogContext {
15
- integrationType?: DESTINATIONS;
15
+ integrationType?: DESTINATION;
16
16
  eventId?: string;
17
17
  errorCode?: number;
18
18
  errorMessage?: string;
@@ -24,6 +24,7 @@ export interface TrackingEventData {
24
24
  value?: number;
25
25
  tax?: number;
26
26
  shipping?: number;
27
+ discount?: number;
27
28
  coupon?: string;
28
29
  paymentType?: string;
29
30
  shippingTier?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adtrackify/at-tracking-event-types",
3
- "version": "2.0.33",
3
+ "version": "2.0.35",
4
4
  "description": "",
5
5
  "files": [
6
6
  "dist/*"