@adtrackify/at-tracking-event-types 1.0.1 → 1.0.3
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/bitbucket-pipelines.yml +20 -0
- package/build.js +22 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +17 -17
- package/dist/types/adtrackify-api-types.d.ts +12 -12
- package/dist/types/adtrackify-api-types.js +8 -8
- package/dist/types/adtrackify-standard-events.d.ts +18 -18
- package/dist/types/adtrackify-standard-events.js +22 -28
- package/dist/types/adtrackify-standard-events.js.map +1 -1
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.js +20 -20
- package/dist/types/third-party-event-configuration-types.d.ts +8 -8
- package/dist/types/third-party-event-configuration-types.js +2 -2
- package/dist/types/tracking-event-type.d.ts +124 -124
- package/dist/types/tracking-event-type.js +4 -4
- package/package.json +9 -7
- package/tsconfig.json +15 -2
- package/.babelrc +0 -22
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
|
|
@@ -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
|
package/build.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
// @ts-ignore
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
const { build } = require('esbuild')
|
|
6
|
+
const { dependencies } = require('./package.json')
|
|
7
|
+
const { Generator } = require('npm-dts')
|
|
8
|
+
|
|
9
|
+
new Generator({
|
|
10
|
+
entry: 'src/index.ts',
|
|
11
|
+
output: 'dist/index.d.ts',
|
|
12
|
+
}).generate()
|
|
13
|
+
|
|
14
|
+
build({
|
|
15
|
+
entryPoints: ['./src/index.ts'],
|
|
16
|
+
outdir: 'dist',
|
|
17
|
+
bundle: true,
|
|
18
|
+
format: 'esm',
|
|
19
|
+
platform: 'node',
|
|
20
|
+
sourcemap: 'linked',
|
|
21
|
+
external: Object.keys(dependencies)
|
|
22
|
+
})
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './types';
|
|
1
|
+
export * from './types';
|
package/dist/index.js
CHANGED
|
@@ -1,18 +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("./types"), exports);
|
|
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("./types"), exports);
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
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
|
+
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,9 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
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 = {}));
|
|
1
|
+
"use strict";
|
|
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
9
|
//# sourceMappingURL=adtrackify-api-types.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
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
|
+
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,29 +1,23 @@
|
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
ADTRACKIFY_STANDARD_EVENT["
|
|
13
|
-
ADTRACKIFY_STANDARD_EVENT["
|
|
14
|
-
ADTRACKIFY_STANDARD_EVENT["
|
|
15
|
-
ADTRACKIFY_STANDARD_EVENT["
|
|
16
|
-
ADTRACKIFY_STANDARD_EVENT["
|
|
17
|
-
ADTRACKIFY_STANDARD_EVENT["
|
|
18
|
-
ADTRACKIFY_STANDARD_EVENT["
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
ADTRACKIFY_STANDARD_EVENT["VIEW_CART"] = "view_cart";
|
|
24
|
-
ADTRACKIFY_STANDARD_EVENT["VIEW_CONTENT"] = "view_content";
|
|
25
|
-
//
|
|
26
|
-
ADTRACKIFY_STANDARD_EVENT["SELECT_SHIPPING_METHOD"] = "select_shipping_method";
|
|
27
|
-
ADTRACKIFY_STANDARD_EVENT["VIRTUALIZED_VIEWED_PAYMENT_FORM"] = "virtualized_viewd_payment_form";
|
|
28
|
-
})(ADTRACKIFY_STANDARD_EVENT = exports.ADTRACKIFY_STANDARD_EVENT || (exports.ADTRACKIFY_STANDARD_EVENT = {}));
|
|
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 = {}));
|
|
29
23
|
//# sourceMappingURL=adtrackify-standard-events.js.map
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './adtrackify-api-types';
|
|
2
|
-
export * from './adtrackify-standard-events';
|
|
3
|
-
export * from './third-party-event-configuration-types';
|
|
4
|
-
export * from './tracking-event-type';
|
|
1
|
+
export * from './adtrackify-api-types';
|
|
2
|
+
export * from './adtrackify-standard-events';
|
|
3
|
+
export * from './third-party-event-configuration-types';
|
|
4
|
+
export * from './tracking-event-type';
|
package/dist/types/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
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-api-types"), exports);
|
|
18
|
-
__exportStar(require("./adtrackify-standard-events"), exports);
|
|
19
|
-
__exportStar(require("./third-party-event-configuration-types"), exports);
|
|
20
|
-
__exportStar(require("./tracking-event-type"), exports);
|
|
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-api-types"), exports);
|
|
18
|
+
__exportStar(require("./adtrackify-standard-events"), exports);
|
|
19
|
+
__exportStar(require("./third-party-event-configuration-types"), exports);
|
|
20
|
+
__exportStar(require("./tracking-event-type"), exports);
|
|
21
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface DestinationConfiguration {
|
|
2
|
-
eventConfigurations: DestinationEventSpecificConfiguration[];
|
|
3
|
-
}
|
|
4
|
-
export interface DestinationEventSpecificConfiguration {
|
|
5
|
-
enabled: boolean;
|
|
6
|
-
sourceEventName: string;
|
|
7
|
-
destinationEventName: string;
|
|
8
|
-
}
|
|
1
|
+
export interface DestinationConfiguration {
|
|
2
|
+
eventConfigurations: DestinationEventSpecificConfiguration[];
|
|
3
|
+
}
|
|
4
|
+
export interface DestinationEventSpecificConfiguration {
|
|
5
|
+
enabled: boolean;
|
|
6
|
+
sourceEventName: string;
|
|
7
|
+
destinationEventName: string;
|
|
8
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=third-party-event-configuration-types.js.map
|
|
@@ -1,124 +1,124 @@
|
|
|
1
|
-
import { IResult } from 'ua-parser-js';
|
|
2
|
-
export interface TrackingEvent {
|
|
3
|
-
id: string;
|
|
4
|
-
type: string;
|
|
5
|
-
name: string;
|
|
6
|
-
pixelId: string;
|
|
7
|
-
context: TrackingEventContext;
|
|
8
|
-
data: TrackingEventData;
|
|
9
|
-
testCode?: string;
|
|
10
|
-
sentAtEpoch?: number;
|
|
11
|
-
collectedAt?: string;
|
|
12
|
-
version: string;
|
|
13
|
-
}
|
|
14
|
-
export interface TrackingEventContext {
|
|
15
|
-
identity: TrackingEventIdentity;
|
|
16
|
-
click?: AdClickInfo;
|
|
17
|
-
campaign?: CampaignInfo;
|
|
18
|
-
page?: PageInfo;
|
|
19
|
-
device?: DeviceInfo;
|
|
20
|
-
locale?: string;
|
|
21
|
-
timezone?: string;
|
|
22
|
-
userAgent?: string;
|
|
23
|
-
ipAddress?: string;
|
|
24
|
-
ipv6Address?: string;
|
|
25
|
-
}
|
|
26
|
-
export interface TrackingEventIdentity {
|
|
27
|
-
gender?: string;
|
|
28
|
-
dob?: string;
|
|
29
|
-
phone?: string;
|
|
30
|
-
id?: string;
|
|
31
|
-
firstName?: string;
|
|
32
|
-
lastName?: string;
|
|
33
|
-
email?: string;
|
|
34
|
-
address?: AddressInfo;
|
|
35
|
-
addresses?: AddressInfo[];
|
|
36
|
-
}
|
|
37
|
-
export interface AdClickInfo {
|
|
38
|
-
fbp?: string;
|
|
39
|
-
fbc?: string;
|
|
40
|
-
fbclid?: string;
|
|
41
|
-
gclid?: string;
|
|
42
|
-
}
|
|
43
|
-
export interface TrackingEventData {
|
|
44
|
-
[key: string]: any;
|
|
45
|
-
firstName?: string;
|
|
46
|
-
lastName?: string;
|
|
47
|
-
email?: string;
|
|
48
|
-
phone?: string;
|
|
49
|
-
addresses?: AddressInfo[];
|
|
50
|
-
cartId?: string;
|
|
51
|
-
transactionId?: string;
|
|
52
|
-
affiliation?: string;
|
|
53
|
-
currency?: string;
|
|
54
|
-
price?: number;
|
|
55
|
-
subtotalPrice?: number;
|
|
56
|
-
value?: number;
|
|
57
|
-
tax?: number;
|
|
58
|
-
shipping?: number;
|
|
59
|
-
coupon?: string;
|
|
60
|
-
paymentType?: string;
|
|
61
|
-
shippingTier?: string;
|
|
62
|
-
creativeName?: string;
|
|
63
|
-
creativeSlot?: string;
|
|
64
|
-
locationId?: string;
|
|
65
|
-
promotionId?: string;
|
|
66
|
-
promotionName?: string;
|
|
67
|
-
items?: GenericContent[];
|
|
68
|
-
}
|
|
69
|
-
export interface GenericContent {
|
|
70
|
-
[key: string]: any;
|
|
71
|
-
content_type?: string;
|
|
72
|
-
id?: string;
|
|
73
|
-
name?: string;
|
|
74
|
-
sku?: string;
|
|
75
|
-
brand?: string;
|
|
76
|
-
variant?: string;
|
|
77
|
-
coupon?: string;
|
|
78
|
-
currency?: string;
|
|
79
|
-
discount?: number;
|
|
80
|
-
index?: number;
|
|
81
|
-
value?: number;
|
|
82
|
-
price?: number;
|
|
83
|
-
quantity?: number;
|
|
84
|
-
url?: string;
|
|
85
|
-
locationId?: string;
|
|
86
|
-
imageUrl?: string;
|
|
87
|
-
category?: string;
|
|
88
|
-
category2?: string;
|
|
89
|
-
category3?: string;
|
|
90
|
-
category4?: string;
|
|
91
|
-
category5?: string;
|
|
92
|
-
}
|
|
93
|
-
export interface AddressInfo {
|
|
94
|
-
email?: string;
|
|
95
|
-
phone?: string;
|
|
96
|
-
firstName?: string;
|
|
97
|
-
lastName?: string;
|
|
98
|
-
company?: string;
|
|
99
|
-
address1?: string;
|
|
100
|
-
address2?: string;
|
|
101
|
-
city?: string;
|
|
102
|
-
province?: string;
|
|
103
|
-
provinceCode: string;
|
|
104
|
-
country?: string;
|
|
105
|
-
countryCode: string;
|
|
106
|
-
zip?: string;
|
|
107
|
-
}
|
|
108
|
-
export interface CampaignInfo {
|
|
109
|
-
name?: string;
|
|
110
|
-
source?: string;
|
|
111
|
-
medium?: string;
|
|
112
|
-
term?: string;
|
|
113
|
-
content?: string;
|
|
114
|
-
}
|
|
115
|
-
export interface PageInfo {
|
|
116
|
-
path?: string;
|
|
117
|
-
referrer?: string;
|
|
118
|
-
search?: string;
|
|
119
|
-
title?: string;
|
|
120
|
-
url?: string;
|
|
121
|
-
qsp?: any;
|
|
122
|
-
}
|
|
123
|
-
export declare type DeviceInfo = IResult;
|
|
124
|
-
export declare const Currencies: string[];
|
|
1
|
+
import { IResult } from 'ua-parser-js';
|
|
2
|
+
export interface TrackingEvent {
|
|
3
|
+
id: string;
|
|
4
|
+
type: string;
|
|
5
|
+
name: string;
|
|
6
|
+
pixelId: string;
|
|
7
|
+
context: TrackingEventContext;
|
|
8
|
+
data: TrackingEventData;
|
|
9
|
+
testCode?: string;
|
|
10
|
+
sentAtEpoch?: number;
|
|
11
|
+
collectedAt?: string;
|
|
12
|
+
version: string;
|
|
13
|
+
}
|
|
14
|
+
export interface TrackingEventContext {
|
|
15
|
+
identity: TrackingEventIdentity;
|
|
16
|
+
click?: AdClickInfo;
|
|
17
|
+
campaign?: CampaignInfo;
|
|
18
|
+
page?: PageInfo;
|
|
19
|
+
device?: DeviceInfo;
|
|
20
|
+
locale?: string;
|
|
21
|
+
timezone?: string;
|
|
22
|
+
userAgent?: string;
|
|
23
|
+
ipAddress?: string;
|
|
24
|
+
ipv6Address?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface TrackingEventIdentity {
|
|
27
|
+
gender?: string;
|
|
28
|
+
dob?: string;
|
|
29
|
+
phone?: string;
|
|
30
|
+
id?: string;
|
|
31
|
+
firstName?: string;
|
|
32
|
+
lastName?: string;
|
|
33
|
+
email?: string;
|
|
34
|
+
address?: AddressInfo;
|
|
35
|
+
addresses?: AddressInfo[];
|
|
36
|
+
}
|
|
37
|
+
export interface AdClickInfo {
|
|
38
|
+
fbp?: string;
|
|
39
|
+
fbc?: string;
|
|
40
|
+
fbclid?: string;
|
|
41
|
+
gclid?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface TrackingEventData {
|
|
44
|
+
[key: string]: any;
|
|
45
|
+
firstName?: string;
|
|
46
|
+
lastName?: string;
|
|
47
|
+
email?: string;
|
|
48
|
+
phone?: string;
|
|
49
|
+
addresses?: AddressInfo[];
|
|
50
|
+
cartId?: string;
|
|
51
|
+
transactionId?: string;
|
|
52
|
+
affiliation?: string;
|
|
53
|
+
currency?: string;
|
|
54
|
+
price?: number;
|
|
55
|
+
subtotalPrice?: number;
|
|
56
|
+
value?: number;
|
|
57
|
+
tax?: number;
|
|
58
|
+
shipping?: number;
|
|
59
|
+
coupon?: string;
|
|
60
|
+
paymentType?: string;
|
|
61
|
+
shippingTier?: string;
|
|
62
|
+
creativeName?: string;
|
|
63
|
+
creativeSlot?: string;
|
|
64
|
+
locationId?: string;
|
|
65
|
+
promotionId?: string;
|
|
66
|
+
promotionName?: string;
|
|
67
|
+
items?: GenericContent[];
|
|
68
|
+
}
|
|
69
|
+
export interface GenericContent {
|
|
70
|
+
[key: string]: any;
|
|
71
|
+
content_type?: string;
|
|
72
|
+
id?: string;
|
|
73
|
+
name?: string;
|
|
74
|
+
sku?: string;
|
|
75
|
+
brand?: string;
|
|
76
|
+
variant?: string;
|
|
77
|
+
coupon?: string;
|
|
78
|
+
currency?: string;
|
|
79
|
+
discount?: number;
|
|
80
|
+
index?: number;
|
|
81
|
+
value?: number;
|
|
82
|
+
price?: number;
|
|
83
|
+
quantity?: number;
|
|
84
|
+
url?: string;
|
|
85
|
+
locationId?: string;
|
|
86
|
+
imageUrl?: string;
|
|
87
|
+
category?: string;
|
|
88
|
+
category2?: string;
|
|
89
|
+
category3?: string;
|
|
90
|
+
category4?: string;
|
|
91
|
+
category5?: string;
|
|
92
|
+
}
|
|
93
|
+
export interface AddressInfo {
|
|
94
|
+
email?: string;
|
|
95
|
+
phone?: string;
|
|
96
|
+
firstName?: string;
|
|
97
|
+
lastName?: string;
|
|
98
|
+
company?: string;
|
|
99
|
+
address1?: string;
|
|
100
|
+
address2?: string;
|
|
101
|
+
city?: string;
|
|
102
|
+
province?: string;
|
|
103
|
+
provinceCode: string;
|
|
104
|
+
country?: string;
|
|
105
|
+
countryCode: string;
|
|
106
|
+
zip?: string;
|
|
107
|
+
}
|
|
108
|
+
export interface CampaignInfo {
|
|
109
|
+
name?: string;
|
|
110
|
+
source?: string;
|
|
111
|
+
medium?: string;
|
|
112
|
+
term?: string;
|
|
113
|
+
content?: string;
|
|
114
|
+
}
|
|
115
|
+
export interface PageInfo {
|
|
116
|
+
path?: string;
|
|
117
|
+
referrer?: string;
|
|
118
|
+
search?: string;
|
|
119
|
+
title?: string;
|
|
120
|
+
url?: string;
|
|
121
|
+
qsp?: any;
|
|
122
|
+
}
|
|
123
|
+
export declare type DeviceInfo = IResult;
|
|
124
|
+
export declare const Currencies: string[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Currencies = void 0;
|
|
4
|
-
exports.Currencies = ['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'];
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Currencies = void 0;
|
|
4
|
+
exports.Currencies = ['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'];
|
|
5
5
|
//# sourceMappingURL=tracking-event-type.js.map
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adtrackify/at-tracking-event-types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "",
|
|
5
|
-
"main": "dist/index.
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"clean": "rimraf dist",
|
|
9
9
|
"build": "node ./node_modules/typescript/bin/tsc",
|
|
@@ -21,12 +21,11 @@
|
|
|
21
21
|
"verify": "npm run clean && npm run type-check && npm run lint:fix",
|
|
22
22
|
"version": "npm run format && git add -A src",
|
|
23
23
|
"postversion": "git push && git push --tags",
|
|
24
|
+
"push": "npm install && npm run build:dev && npm publish",
|
|
24
25
|
"type-check": "tsc --noEmit"
|
|
25
26
|
},
|
|
26
27
|
"dependencies": {
|
|
27
|
-
"
|
|
28
|
-
"ua-parser-js": "^1.0.2",
|
|
29
|
-
"typescript": "^4.7.4"
|
|
28
|
+
"ua-parser-js": "^1.0.2"
|
|
30
29
|
},
|
|
31
30
|
"devDependencies": {
|
|
32
31
|
"@babel/cli": "^7.13.16",
|
|
@@ -38,6 +37,7 @@
|
|
|
38
37
|
"@babel/runtime-corejs3": "^7.13.17",
|
|
39
38
|
"@types/jest": "^27.4.1",
|
|
40
39
|
"@types/node": "^17.0.8",
|
|
40
|
+
"@types/ua-parser-js": "^0.7.36",
|
|
41
41
|
"@typescript-eslint/eslint-plugin": "^5.21.0",
|
|
42
42
|
"@typescript-eslint/parser": "^5.21.0",
|
|
43
43
|
"babel-eslint": "^10.1.0",
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"babel-polyfill": "^6.26.0",
|
|
47
47
|
"core-js": "^3.21.1",
|
|
48
48
|
"cross-env": "^7.0.3",
|
|
49
|
+
"esbuild": "^0.14.54",
|
|
49
50
|
"eslint": "^8.14.0",
|
|
50
51
|
"eslint-config-standard": "^17.0.0",
|
|
51
52
|
"eslint-loader": "^4.0.2",
|
|
@@ -64,7 +65,8 @@
|
|
|
64
65
|
"npm-scripts-info": "^0.3.9",
|
|
65
66
|
"prettier": "^2.2.1",
|
|
66
67
|
"regenerator-runtime": "^0.13.9",
|
|
67
|
-
"rimraf": "^3.0.2"
|
|
68
|
+
"rimraf": "^3.0.2",
|
|
69
|
+
"typescript": "^4.7.4"
|
|
68
70
|
},
|
|
69
71
|
"repository": {
|
|
70
72
|
"type": "git",
|
package/tsconfig.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"target": "
|
|
3
|
+
"target": "esnext" /* 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
|
+
],
|
|
5
8
|
"allowJs": true, /* Allow javascript files to be compiled. */
|
|
6
|
-
"checkJs":
|
|
9
|
+
"checkJs": false /* Report errors in .js files. */,
|
|
7
10
|
"outDir": "dist", /* Redirect output to the directory. */
|
|
8
11
|
"rootDir": "./src" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
|
|
9
12
|
"strict": true, /* Enable all strict type-checking options. */
|
|
@@ -11,14 +14,24 @@
|
|
|
11
14
|
"skipLibCheck": true, /* Skip type checking of declaration files. */
|
|
12
15
|
"forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */
|
|
13
16
|
"useUnknownInCatchVariables": true,
|
|
17
|
+
"experimentalDecorators": true,
|
|
14
18
|
"sourceMap": true,
|
|
15
19
|
"declaration": true,
|
|
16
20
|
"moduleResolution": "node",
|
|
21
|
+
"resolveJsonModule": true,
|
|
22
|
+
"isolatedModules": true,
|
|
23
|
+
"removeComments": true,
|
|
24
|
+
"typeRoots": [
|
|
25
|
+
"./node_modules/@types"
|
|
26
|
+
],
|
|
17
27
|
"types": [
|
|
18
28
|
"node"
|
|
19
29
|
]
|
|
20
30
|
},
|
|
21
31
|
"include": [
|
|
22
32
|
"./src"
|
|
33
|
+
],
|
|
34
|
+
"exclude": [
|
|
35
|
+
"node_modules"
|
|
23
36
|
]
|
|
24
37
|
}
|
package/.babelrc
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"presets": [
|
|
3
|
-
[
|
|
4
|
-
"@babel/preset-env"
|
|
5
|
-
],
|
|
6
|
-
[
|
|
7
|
-
"@babel/preset-typescript"
|
|
8
|
-
],
|
|
9
|
-
],
|
|
10
|
-
"plugins": [
|
|
11
|
-
"@babel/plugin-syntax-dynamic-import",
|
|
12
|
-
"@babel/plugin-proposal-optional-chaining",
|
|
13
|
-
[
|
|
14
|
-
"@babel/plugin-transform-runtime",
|
|
15
|
-
{
|
|
16
|
-
"helpers": true,
|
|
17
|
-
"regenerator": true,
|
|
18
|
-
"useESModules": false
|
|
19
|
-
}
|
|
20
|
-
]
|
|
21
|
-
]
|
|
22
|
-
}
|