@adtrackify/at-tracking-event-types 1.0.2 → 1.0.4
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/bitbucket-pipelines.yml +20 -0
- package/dist/types/adtrackify-event-bus-event.d.ts +13 -0
- package/dist/types/adtrackify-event-bus-event.js +3 -0
- package/dist/types/adtrackify-event-bus-event.js.map +1 -0
- package/dist/types/api/destination.d.ts +28 -0
- package/dist/types/{adtrackify-api-types.js → api/destination.js} +1 -1
- package/dist/types/api/destination.js.map +1 -0
- package/dist/types/api/index.d.ts +1 -0
- package/dist/types/api/index.js +18 -0
- package/dist/types/api/index.js.map +1 -0
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.js +0 -1
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
- package/src/types/adtrackify-event-bus-event.ts +15 -0
- package/src/types/api/destination.ts +33 -0
- package/src/types/api/index.ts +1 -0
- package/src/types/index.ts +0 -1
- package/dist/types/adtrackify-api-types.d.ts +0 -12
- package/dist/types/adtrackify-api-types.js.map +0 -1
- package/src/types/adtrackify-api-types.ts +0 -14
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
image: node:14.13.0
|
|
2
|
+
|
|
3
|
+
pipelines:
|
|
4
|
+
default:
|
|
5
|
+
- step:
|
|
6
|
+
caches:
|
|
7
|
+
- node
|
|
8
|
+
script:
|
|
9
|
+
- printf "//`node -p \"require('url').parse(process.env.NPM_REGISTRY_URL || 'https://registry.npmjs.org').host\"`/:_authToken=${NPM_TOKEN}\nregistry=${NPM_REGISTRY_URL:-https://registry.npmjs.org}\n" >> ~/.npmrc
|
|
10
|
+
- npm install
|
|
11
|
+
- npm run build:dev
|
|
12
|
+
branches:
|
|
13
|
+
master:
|
|
14
|
+
- step:
|
|
15
|
+
deployment: prod
|
|
16
|
+
caches:
|
|
17
|
+
- node
|
|
18
|
+
script:
|
|
19
|
+
- printf "//`node -p \"require('url').parse(process.env.NPM_REGISTRY_URL || 'https://registry.npmjs.org').host\"`/:_authToken=${NPM_TOKEN}\nregistry=${NPM_REGISTRY_URL:-https://registry.npmjs.org}\n" >> ~/.npmrc
|
|
20
|
+
- npm run push
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adtrackify-event-bus-event.js","sourceRoot":"","sources":["../../src/types/adtrackify-event-bus-event.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface AdTrackifyDestination {
|
|
2
|
+
id: string;
|
|
3
|
+
accountId: string;
|
|
4
|
+
pixelId: string;
|
|
5
|
+
destination: string;
|
|
6
|
+
displayName: string;
|
|
7
|
+
configuration?: any;
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface AdTrackifyFacebookDestination extends AdTrackifyDestination {
|
|
11
|
+
configuration: {
|
|
12
|
+
apiAccessToken: string;
|
|
13
|
+
enableConversionAPI: boolean;
|
|
14
|
+
pixelId: string;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export declare enum ADTRACKIFY_DESTINATIONS {
|
|
18
|
+
FACEBOOK = "facebook",
|
|
19
|
+
GOOGLE_ANALYTICS_4 = "googleAnalytics4"
|
|
20
|
+
}
|
|
21
|
+
export interface FacebookPixelConfiguration {
|
|
22
|
+
apiAccessToken?: string;
|
|
23
|
+
enableConversionAPI: boolean;
|
|
24
|
+
pixelId: string;
|
|
25
|
+
}
|
|
26
|
+
export interface GoogleAnalytics4Configuration {
|
|
27
|
+
measurementId: string;
|
|
28
|
+
}
|
|
@@ -6,4 +6,4 @@ var ADTRACKIFY_DESTINATIONS;
|
|
|
6
6
|
ADTRACKIFY_DESTINATIONS["FACEBOOK"] = "facebook";
|
|
7
7
|
ADTRACKIFY_DESTINATIONS["GOOGLE_ANALYTICS_4"] = "googleAnalytics4";
|
|
8
8
|
})(ADTRACKIFY_DESTINATIONS = exports.ADTRACKIFY_DESTINATIONS || (exports.ADTRACKIFY_DESTINATIONS = {}));
|
|
9
|
-
//# sourceMappingURL=
|
|
9
|
+
//# sourceMappingURL=destination.js.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './destination';
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./destination"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
|
@@ -14,7 +14,6 @@ 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("./adtrackify-api-types"), exports);
|
|
18
17
|
__exportStar(require("./adtrackify-standard-events"), exports);
|
|
19
18
|
__exportStar(require("./third-party-event-configuration-types"), exports);
|
|
20
19
|
__exportStar(require("./tracking-event-type"), exports);
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,0EAAwD;AACxD,wDAAsC"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TrackingEvent } from './tracking-event-type';
|
|
2
|
+
|
|
3
|
+
export interface AdtrackifyEventBusEvent {
|
|
4
|
+
eventId: string;
|
|
5
|
+
eventType: string;
|
|
6
|
+
eventTime: string;
|
|
7
|
+
eventData?: object;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface AdtrackifyEventBusTrackingEvent extends AdtrackifyEventBusEvent {
|
|
11
|
+
eventData: {
|
|
12
|
+
trackingEvent: TrackingEvent;
|
|
13
|
+
pixelId: string;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface AdTrackifyDestination {
|
|
2
|
+
id: string;
|
|
3
|
+
accountId: string;
|
|
4
|
+
pixelId: string;
|
|
5
|
+
destination: string;
|
|
6
|
+
displayName: string;
|
|
7
|
+
configuration?: any;
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
export interface AdTrackifyFacebookDestination extends AdTrackifyDestination {
|
|
13
|
+
configuration: {
|
|
14
|
+
apiAccessToken: string;
|
|
15
|
+
enableConversionAPI: boolean;
|
|
16
|
+
pixelId: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export enum ADTRACKIFY_DESTINATIONS {
|
|
21
|
+
FACEBOOK = 'facebook',
|
|
22
|
+
GOOGLE_ANALYTICS_4 = 'googleAnalytics4'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface FacebookPixelConfiguration {
|
|
26
|
+
apiAccessToken?: string;
|
|
27
|
+
enableConversionAPI: boolean;
|
|
28
|
+
pixelId: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface GoogleAnalytics4Configuration {
|
|
32
|
+
measurementId: string;
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './destination';
|
package/src/types/index.ts
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare enum ADTRACKIFY_DESTINATIONS {
|
|
2
|
-
FACEBOOK = "facebook",
|
|
3
|
-
GOOGLE_ANALYTICS_4 = "googleAnalytics4"
|
|
4
|
-
}
|
|
5
|
-
export interface FacebookPixelConfiguration {
|
|
6
|
-
apiAccessToken?: string;
|
|
7
|
-
enableConversionAPI: boolean;
|
|
8
|
-
pixelId: string;
|
|
9
|
-
}
|
|
10
|
-
export interface GoogleAnalytics4Configuration {
|
|
11
|
-
measurementId: string;
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"adtrackify-api-types.js","sourceRoot":"","sources":["../../src/types/adtrackify-api-types.ts"],"names":[],"mappings":";;;AAAA,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IACjC,gDAAqB,CAAA;IACrB,kEAAuC,CAAA;AACzC,CAAC,EAHW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAGlC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export enum ADTRACKIFY_DESTINATIONS {
|
|
2
|
-
FACEBOOK = 'facebook',
|
|
3
|
-
GOOGLE_ANALYTICS_4 = 'googleAnalytics4'
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export interface FacebookPixelConfiguration {
|
|
7
|
-
apiAccessToken?: string;
|
|
8
|
-
enableConversionAPI: boolean;
|
|
9
|
-
pixelId: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface GoogleAnalytics4Configuration {
|
|
13
|
-
measurementId: string;
|
|
14
|
-
}
|