@adtrackify/at-tracking-event-types 4.61.9 → 4.61.10
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/cjs/types/api/destinations/destination-catalog.d.ts +1 -0
- package/dist/cjs/types/api/destinations/destinations.d.ts +2 -0
- package/dist/cjs/types/api/destinations/index.d.ts +1 -0
- package/dist/cjs/types/api/destinations/index.js +1 -0
- package/dist/cjs/types/api/destinations/index.js.map +1 -1
- package/dist/cjs/types/api/destinations/tag-load-trigger-types.d.ts +37 -0
- package/dist/cjs/types/api/destinations/tag-load-trigger-types.js +89 -0
- package/dist/cjs/types/api/destinations/tag-load-trigger-types.js.map +1 -0
- package/dist/esm/types/api/destinations/destination-catalog.d.ts +1 -0
- package/dist/esm/types/api/destinations/destinations.d.ts +2 -0
- package/dist/esm/types/api/destinations/index.d.ts +1 -0
- package/dist/esm/types/api/destinations/index.js +1 -0
- package/dist/esm/types/api/destinations/index.js.map +1 -1
- package/dist/esm/types/api/destinations/tag-load-trigger-types.d.ts +37 -0
- package/dist/esm/types/api/destinations/tag-load-trigger-types.js +85 -0
- package/dist/esm/types/api/destinations/tag-load-trigger-types.js.map +1 -0
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ import { DESTINATION, DESTINATION_TYPE, EVENT_TRIGGER_CONDITION } from './destin
|
|
|
4
4
|
import type { DestinationHealthStatus } from '../health/health-status.js';
|
|
5
5
|
import type { ForwardingHealthStatus } from '../health/forwarding-health.js';
|
|
6
6
|
import type { DestinationEventConfig } from './custom-event-mapping.js';
|
|
7
|
+
import type { TagLoadTriggerConfig } from './tag-load-trigger-types.js';
|
|
7
8
|
export interface Destination {
|
|
8
9
|
id: string;
|
|
9
10
|
accountId: string;
|
|
@@ -31,6 +32,7 @@ export interface UserDestinationConfiguration {
|
|
|
31
32
|
trigger?: DestinationTriggerConfiguration;
|
|
32
33
|
forwarding?: ForwardingConfiguration;
|
|
33
34
|
eventConfig?: DestinationEventConfig;
|
|
35
|
+
tagLoadTrigger?: TagLoadTriggerConfig;
|
|
34
36
|
}
|
|
35
37
|
export interface DestinationTriggerConfiguration {
|
|
36
38
|
shopify?: ShopifyTriggerConfiguration;
|
|
@@ -22,4 +22,5 @@ __exportStar(require("./third-party-integration-configs.js"), exports);
|
|
|
22
22
|
__exportStar(require("./third-party-contact-acquisition-configs.js"), exports);
|
|
23
23
|
__exportStar(require("./custom-event-mapping.js"), exports);
|
|
24
24
|
__exportStar(require("./slack-destination-types.js"), exports);
|
|
25
|
+
__exportStar(require("./tag-load-trigger-types.js"), exports);
|
|
25
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/api/destinations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAKA,yDAAuC;AACvC,oDAAkC;AAClC,2DAAyC;AACzC,uEAAqD;AACrD,uEAAqD;AACrD,+EAA6D;AAC7D,4DAA0C;AAC1C,+DAA6C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/api/destinations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAKA,yDAAuC;AACvC,oDAAkC;AAClC,2DAAyC;AACzC,uEAAqD;AACrD,uEAAqD;AACrD,+EAA6D;AAC7D,4DAA0C;AAC1C,+DAA6C;AAC7C,8DAA4C"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { ConditionGroup } from './custom-event-mapping.js';
|
|
2
|
+
import { CONDITION_LOGIC, CONDITION_OPERATOR } from './custom-event-mapping.js';
|
|
3
|
+
import { DESTINATION } from './destination-enums.js';
|
|
4
|
+
export declare enum TAG_LOAD_MODE {
|
|
5
|
+
INCLUDE = "include",
|
|
6
|
+
EXCLUDE = "exclude"
|
|
7
|
+
}
|
|
8
|
+
export declare enum TAG_LOAD_FIELD {
|
|
9
|
+
PATHNAME = "page.pathname",
|
|
10
|
+
URL = "page.url",
|
|
11
|
+
SEARCH = "page.search",
|
|
12
|
+
HOSTNAME = "page.hostname",
|
|
13
|
+
REFERRER = "page.referrer"
|
|
14
|
+
}
|
|
15
|
+
export interface TagLoadTriggerConfig {
|
|
16
|
+
enabled: boolean;
|
|
17
|
+
mode: TAG_LOAD_MODE;
|
|
18
|
+
conditionGroups: ConditionGroup[];
|
|
19
|
+
groupLogic?: CONDITION_LOGIC;
|
|
20
|
+
}
|
|
21
|
+
export declare const TAG_LOAD_SUPPORTED_OPERATORS: CONDITION_OPERATOR[];
|
|
22
|
+
export interface TagLoadFieldDefinition {
|
|
23
|
+
field: TAG_LOAD_FIELD;
|
|
24
|
+
label: string;
|
|
25
|
+
description?: string;
|
|
26
|
+
caseInsensitive?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare const TAG_LOAD_CONDITION_FIELDS: TagLoadFieldDefinition[];
|
|
29
|
+
export interface TagLoadOperatorDefinition {
|
|
30
|
+
operator: CONDITION_OPERATOR;
|
|
31
|
+
label: string;
|
|
32
|
+
requiresValue: boolean;
|
|
33
|
+
}
|
|
34
|
+
export declare const TAG_LOAD_OPERATOR_DEFINITIONS: TagLoadOperatorDefinition[];
|
|
35
|
+
export declare const TAG_LOAD_EXISTENCE_OPERATORS: CONDITION_OPERATOR[];
|
|
36
|
+
export declare const TAG_LOAD_TRIGGER_ELIGIBLE_DESTINATIONS: DESTINATION[];
|
|
37
|
+
export declare function isTagLoadTriggerEligible(destination: DESTINATION): boolean;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isTagLoadTriggerEligible = exports.TAG_LOAD_TRIGGER_ELIGIBLE_DESTINATIONS = exports.TAG_LOAD_EXISTENCE_OPERATORS = exports.TAG_LOAD_OPERATOR_DEFINITIONS = exports.TAG_LOAD_CONDITION_FIELDS = exports.TAG_LOAD_SUPPORTED_OPERATORS = exports.TAG_LOAD_FIELD = exports.TAG_LOAD_MODE = void 0;
|
|
4
|
+
const custom_event_mapping_js_1 = require("./custom-event-mapping.js");
|
|
5
|
+
const destination_enums_js_1 = require("./destination-enums.js");
|
|
6
|
+
var TAG_LOAD_MODE;
|
|
7
|
+
(function (TAG_LOAD_MODE) {
|
|
8
|
+
TAG_LOAD_MODE["INCLUDE"] = "include";
|
|
9
|
+
TAG_LOAD_MODE["EXCLUDE"] = "exclude";
|
|
10
|
+
})(TAG_LOAD_MODE = exports.TAG_LOAD_MODE || (exports.TAG_LOAD_MODE = {}));
|
|
11
|
+
var TAG_LOAD_FIELD;
|
|
12
|
+
(function (TAG_LOAD_FIELD) {
|
|
13
|
+
TAG_LOAD_FIELD["PATHNAME"] = "page.pathname";
|
|
14
|
+
TAG_LOAD_FIELD["URL"] = "page.url";
|
|
15
|
+
TAG_LOAD_FIELD["SEARCH"] = "page.search";
|
|
16
|
+
TAG_LOAD_FIELD["HOSTNAME"] = "page.hostname";
|
|
17
|
+
TAG_LOAD_FIELD["REFERRER"] = "page.referrer";
|
|
18
|
+
})(TAG_LOAD_FIELD = exports.TAG_LOAD_FIELD || (exports.TAG_LOAD_FIELD = {}));
|
|
19
|
+
exports.TAG_LOAD_SUPPORTED_OPERATORS = [
|
|
20
|
+
custom_event_mapping_js_1.CONDITION_OPERATOR.EQUALS,
|
|
21
|
+
custom_event_mapping_js_1.CONDITION_OPERATOR.NOT_EQUALS,
|
|
22
|
+
custom_event_mapping_js_1.CONDITION_OPERATOR.CONTAINS,
|
|
23
|
+
custom_event_mapping_js_1.CONDITION_OPERATOR.NOT_CONTAINS,
|
|
24
|
+
custom_event_mapping_js_1.CONDITION_OPERATOR.STARTS_WITH,
|
|
25
|
+
custom_event_mapping_js_1.CONDITION_OPERATOR.ENDS_WITH,
|
|
26
|
+
custom_event_mapping_js_1.CONDITION_OPERATOR.EXISTS,
|
|
27
|
+
custom_event_mapping_js_1.CONDITION_OPERATOR.NOT_EXISTS,
|
|
28
|
+
];
|
|
29
|
+
exports.TAG_LOAD_CONDITION_FIELDS = [
|
|
30
|
+
{
|
|
31
|
+
field: TAG_LOAD_FIELD.PATHNAME,
|
|
32
|
+
label: 'Page Path',
|
|
33
|
+
description: 'URL path without domain (e.g., /checkout)',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
field: TAG_LOAD_FIELD.URL,
|
|
37
|
+
label: 'Full URL',
|
|
38
|
+
description: 'Complete URL including protocol and query string',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
field: TAG_LOAD_FIELD.SEARCH,
|
|
42
|
+
label: 'Query String',
|
|
43
|
+
description: 'URL parameters (e.g., ?utm_source=google)',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
field: TAG_LOAD_FIELD.HOSTNAME,
|
|
47
|
+
label: 'Hostname',
|
|
48
|
+
description: 'Domain name (e.g., shop.example.com)',
|
|
49
|
+
caseInsensitive: true,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
field: TAG_LOAD_FIELD.REFERRER,
|
|
53
|
+
label: 'Referrer',
|
|
54
|
+
description: 'Previous page URL',
|
|
55
|
+
},
|
|
56
|
+
];
|
|
57
|
+
exports.TAG_LOAD_OPERATOR_DEFINITIONS = [
|
|
58
|
+
{ operator: custom_event_mapping_js_1.CONDITION_OPERATOR.EQUALS, label: 'equals', requiresValue: true },
|
|
59
|
+
{ operator: custom_event_mapping_js_1.CONDITION_OPERATOR.NOT_EQUALS, label: 'does not equal', requiresValue: true },
|
|
60
|
+
{ operator: custom_event_mapping_js_1.CONDITION_OPERATOR.CONTAINS, label: 'contains', requiresValue: true },
|
|
61
|
+
{ operator: custom_event_mapping_js_1.CONDITION_OPERATOR.NOT_CONTAINS, label: 'does not contain', requiresValue: true },
|
|
62
|
+
{ operator: custom_event_mapping_js_1.CONDITION_OPERATOR.STARTS_WITH, label: 'starts with', requiresValue: true },
|
|
63
|
+
{ operator: custom_event_mapping_js_1.CONDITION_OPERATOR.ENDS_WITH, label: 'ends with', requiresValue: true },
|
|
64
|
+
{ operator: custom_event_mapping_js_1.CONDITION_OPERATOR.EXISTS, label: 'exists', requiresValue: false },
|
|
65
|
+
{ operator: custom_event_mapping_js_1.CONDITION_OPERATOR.NOT_EXISTS, label: 'does not exist', requiresValue: false },
|
|
66
|
+
];
|
|
67
|
+
exports.TAG_LOAD_EXISTENCE_OPERATORS = [
|
|
68
|
+
custom_event_mapping_js_1.CONDITION_OPERATOR.EXISTS,
|
|
69
|
+
custom_event_mapping_js_1.CONDITION_OPERATOR.NOT_EXISTS,
|
|
70
|
+
];
|
|
71
|
+
exports.TAG_LOAD_TRIGGER_ELIGIBLE_DESTINATIONS = [
|
|
72
|
+
destination_enums_js_1.DESTINATION.FACEBOOK,
|
|
73
|
+
destination_enums_js_1.DESTINATION.TIKTOK,
|
|
74
|
+
destination_enums_js_1.DESTINATION.GOOGLE_ANALYTICS_4,
|
|
75
|
+
destination_enums_js_1.DESTINATION.SNAPCHAT,
|
|
76
|
+
destination_enums_js_1.DESTINATION.PINTEREST,
|
|
77
|
+
destination_enums_js_1.DESTINATION.GOOGLE_ADS,
|
|
78
|
+
destination_enums_js_1.DESTINATION.TWITTER,
|
|
79
|
+
destination_enums_js_1.DESTINATION.POSTHOG,
|
|
80
|
+
destination_enums_js_1.DESTINATION.CUSTOMER_IO,
|
|
81
|
+
destination_enums_js_1.DESTINATION.CUSTOM_HTML,
|
|
82
|
+
destination_enums_js_1.DESTINATION.HUBSPOT,
|
|
83
|
+
destination_enums_js_1.DESTINATION.INTERCOM,
|
|
84
|
+
];
|
|
85
|
+
function isTagLoadTriggerEligible(destination) {
|
|
86
|
+
return exports.TAG_LOAD_TRIGGER_ELIGIBLE_DESTINATIONS.includes(destination);
|
|
87
|
+
}
|
|
88
|
+
exports.isTagLoadTriggerEligible = isTagLoadTriggerEligible;
|
|
89
|
+
//# sourceMappingURL=tag-load-trigger-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag-load-trigger-types.js","sourceRoot":"","sources":["../../../../../src/types/api/destinations/tag-load-trigger-types.ts"],"names":[],"mappings":";;;AAQA,uEAAgF;AAChF,iEAAqD;AASrD,IAAY,aAKX;AALD,WAAY,aAAa;IAEvB,oCAAmB,CAAA;IAEnB,oCAAmB,CAAA;AACrB,CAAC,EALW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAKxB;AAUD,IAAY,cAWX;AAXD,WAAY,cAAc;IAExB,4CAA0B,CAAA;IAE1B,kCAAgB,CAAA;IAEhB,wCAAsB,CAAA;IAEtB,4CAA0B,CAAA;IAE1B,4CAA0B,CAAA;AAC5B,CAAC,EAXW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAWzB;AA6BY,QAAA,4BAA4B,GAAyB;IAChE,4CAAkB,CAAC,MAAM;IACzB,4CAAkB,CAAC,UAAU;IAC7B,4CAAkB,CAAC,QAAQ;IAC3B,4CAAkB,CAAC,YAAY;IAC/B,4CAAkB,CAAC,WAAW;IAC9B,4CAAkB,CAAC,SAAS;IAC5B,4CAAkB,CAAC,MAAM;IACzB,4CAAkB,CAAC,UAAU;CAC9B,CAAC;AAoBW,QAAA,yBAAyB,GAA6B;IACjE;QACE,KAAK,EAAE,cAAc,CAAC,QAAQ;QAC9B,KAAK,EAAE,WAAW;QAClB,WAAW,EAAE,2CAA2C;KACzD;IACD;QACE,KAAK,EAAE,cAAc,CAAC,GAAG;QACzB,KAAK,EAAE,UAAU;QACjB,WAAW,EAAE,kDAAkD;KAChE;IACD;QACE,KAAK,EAAE,cAAc,CAAC,MAAM;QAC5B,KAAK,EAAE,cAAc;QACrB,WAAW,EAAE,2CAA2C;KACzD;IACD;QACE,KAAK,EAAE,cAAc,CAAC,QAAQ;QAC9B,KAAK,EAAE,UAAU;QACjB,WAAW,EAAE,sCAAsC;QACnD,eAAe,EAAE,IAAI;KACtB;IACD;QACE,KAAK,EAAE,cAAc,CAAC,QAAQ;QAC9B,KAAK,EAAE,UAAU;QACjB,WAAW,EAAE,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;IACvB,kCAAW,CAAC,WAAW;IACvB,kCAAW,CAAC,OAAO;IACnB,kCAAW,CAAC,QAAQ;CACrB,CAAC;AAKF,SAAgB,wBAAwB,CAAC,WAAwB;IAC/D,OAAO,8CAAsC,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;AACtE,CAAC;AAFD,4DAEC"}
|
|
@@ -4,6 +4,7 @@ import { DESTINATION, DESTINATION_TYPE, EVENT_TRIGGER_CONDITION } from './destin
|
|
|
4
4
|
import type { DestinationHealthStatus } from '../health/health-status.js';
|
|
5
5
|
import type { ForwardingHealthStatus } from '../health/forwarding-health.js';
|
|
6
6
|
import type { DestinationEventConfig } from './custom-event-mapping.js';
|
|
7
|
+
import type { TagLoadTriggerConfig } from './tag-load-trigger-types.js';
|
|
7
8
|
export interface Destination {
|
|
8
9
|
id: string;
|
|
9
10
|
accountId: string;
|
|
@@ -31,6 +32,7 @@ export interface UserDestinationConfiguration {
|
|
|
31
32
|
trigger?: DestinationTriggerConfiguration;
|
|
32
33
|
forwarding?: ForwardingConfiguration;
|
|
33
34
|
eventConfig?: DestinationEventConfig;
|
|
35
|
+
tagLoadTrigger?: TagLoadTriggerConfig;
|
|
34
36
|
}
|
|
35
37
|
export interface DestinationTriggerConfiguration {
|
|
36
38
|
shopify?: ShopifyTriggerConfiguration;
|
|
@@ -6,4 +6,5 @@ export * from './third-party-integration-configs.js';
|
|
|
6
6
|
export * from './third-party-contact-acquisition-configs.js';
|
|
7
7
|
export * from './custom-event-mapping.js';
|
|
8
8
|
export * from './slack-destination-types.js';
|
|
9
|
+
export * from './tag-load-trigger-types.js';
|
|
9
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/api/destinations/index.ts"],"names":[],"mappings":"AAKA,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/api/destinations/index.ts"],"names":[],"mappings":"AAKA,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { ConditionGroup } from './custom-event-mapping.js';
|
|
2
|
+
import { CONDITION_LOGIC, CONDITION_OPERATOR } from './custom-event-mapping.js';
|
|
3
|
+
import { DESTINATION } from './destination-enums.js';
|
|
4
|
+
export declare enum TAG_LOAD_MODE {
|
|
5
|
+
INCLUDE = "include",
|
|
6
|
+
EXCLUDE = "exclude"
|
|
7
|
+
}
|
|
8
|
+
export declare enum TAG_LOAD_FIELD {
|
|
9
|
+
PATHNAME = "page.pathname",
|
|
10
|
+
URL = "page.url",
|
|
11
|
+
SEARCH = "page.search",
|
|
12
|
+
HOSTNAME = "page.hostname",
|
|
13
|
+
REFERRER = "page.referrer"
|
|
14
|
+
}
|
|
15
|
+
export interface TagLoadTriggerConfig {
|
|
16
|
+
enabled: boolean;
|
|
17
|
+
mode: TAG_LOAD_MODE;
|
|
18
|
+
conditionGroups: ConditionGroup[];
|
|
19
|
+
groupLogic?: CONDITION_LOGIC;
|
|
20
|
+
}
|
|
21
|
+
export declare const TAG_LOAD_SUPPORTED_OPERATORS: CONDITION_OPERATOR[];
|
|
22
|
+
export interface TagLoadFieldDefinition {
|
|
23
|
+
field: TAG_LOAD_FIELD;
|
|
24
|
+
label: string;
|
|
25
|
+
description?: string;
|
|
26
|
+
caseInsensitive?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare const TAG_LOAD_CONDITION_FIELDS: TagLoadFieldDefinition[];
|
|
29
|
+
export interface TagLoadOperatorDefinition {
|
|
30
|
+
operator: CONDITION_OPERATOR;
|
|
31
|
+
label: string;
|
|
32
|
+
requiresValue: boolean;
|
|
33
|
+
}
|
|
34
|
+
export declare const TAG_LOAD_OPERATOR_DEFINITIONS: TagLoadOperatorDefinition[];
|
|
35
|
+
export declare const TAG_LOAD_EXISTENCE_OPERATORS: CONDITION_OPERATOR[];
|
|
36
|
+
export declare const TAG_LOAD_TRIGGER_ELIGIBLE_DESTINATIONS: DESTINATION[];
|
|
37
|
+
export declare function isTagLoadTriggerEligible(destination: DESTINATION): boolean;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { CONDITION_OPERATOR } from './custom-event-mapping.js';
|
|
2
|
+
import { DESTINATION } from './destination-enums.js';
|
|
3
|
+
export var TAG_LOAD_MODE;
|
|
4
|
+
(function (TAG_LOAD_MODE) {
|
|
5
|
+
TAG_LOAD_MODE["INCLUDE"] = "include";
|
|
6
|
+
TAG_LOAD_MODE["EXCLUDE"] = "exclude";
|
|
7
|
+
})(TAG_LOAD_MODE || (TAG_LOAD_MODE = {}));
|
|
8
|
+
export var TAG_LOAD_FIELD;
|
|
9
|
+
(function (TAG_LOAD_FIELD) {
|
|
10
|
+
TAG_LOAD_FIELD["PATHNAME"] = "page.pathname";
|
|
11
|
+
TAG_LOAD_FIELD["URL"] = "page.url";
|
|
12
|
+
TAG_LOAD_FIELD["SEARCH"] = "page.search";
|
|
13
|
+
TAG_LOAD_FIELD["HOSTNAME"] = "page.hostname";
|
|
14
|
+
TAG_LOAD_FIELD["REFERRER"] = "page.referrer";
|
|
15
|
+
})(TAG_LOAD_FIELD || (TAG_LOAD_FIELD = {}));
|
|
16
|
+
export const TAG_LOAD_SUPPORTED_OPERATORS = [
|
|
17
|
+
CONDITION_OPERATOR.EQUALS,
|
|
18
|
+
CONDITION_OPERATOR.NOT_EQUALS,
|
|
19
|
+
CONDITION_OPERATOR.CONTAINS,
|
|
20
|
+
CONDITION_OPERATOR.NOT_CONTAINS,
|
|
21
|
+
CONDITION_OPERATOR.STARTS_WITH,
|
|
22
|
+
CONDITION_OPERATOR.ENDS_WITH,
|
|
23
|
+
CONDITION_OPERATOR.EXISTS,
|
|
24
|
+
CONDITION_OPERATOR.NOT_EXISTS,
|
|
25
|
+
];
|
|
26
|
+
export const TAG_LOAD_CONDITION_FIELDS = [
|
|
27
|
+
{
|
|
28
|
+
field: TAG_LOAD_FIELD.PATHNAME,
|
|
29
|
+
label: 'Page Path',
|
|
30
|
+
description: 'URL path without domain (e.g., /checkout)',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
field: TAG_LOAD_FIELD.URL,
|
|
34
|
+
label: 'Full URL',
|
|
35
|
+
description: 'Complete URL including protocol and query string',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
field: TAG_LOAD_FIELD.SEARCH,
|
|
39
|
+
label: 'Query String',
|
|
40
|
+
description: 'URL parameters (e.g., ?utm_source=google)',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
field: TAG_LOAD_FIELD.HOSTNAME,
|
|
44
|
+
label: 'Hostname',
|
|
45
|
+
description: 'Domain name (e.g., shop.example.com)',
|
|
46
|
+
caseInsensitive: true,
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
field: TAG_LOAD_FIELD.REFERRER,
|
|
50
|
+
label: 'Referrer',
|
|
51
|
+
description: 'Previous page URL',
|
|
52
|
+
},
|
|
53
|
+
];
|
|
54
|
+
export const TAG_LOAD_OPERATOR_DEFINITIONS = [
|
|
55
|
+
{ operator: CONDITION_OPERATOR.EQUALS, label: 'equals', requiresValue: true },
|
|
56
|
+
{ operator: CONDITION_OPERATOR.NOT_EQUALS, label: 'does not equal', requiresValue: true },
|
|
57
|
+
{ operator: CONDITION_OPERATOR.CONTAINS, label: 'contains', requiresValue: true },
|
|
58
|
+
{ operator: CONDITION_OPERATOR.NOT_CONTAINS, label: 'does not contain', requiresValue: true },
|
|
59
|
+
{ operator: CONDITION_OPERATOR.STARTS_WITH, label: 'starts with', requiresValue: true },
|
|
60
|
+
{ operator: CONDITION_OPERATOR.ENDS_WITH, label: 'ends with', requiresValue: true },
|
|
61
|
+
{ operator: CONDITION_OPERATOR.EXISTS, label: 'exists', requiresValue: false },
|
|
62
|
+
{ operator: CONDITION_OPERATOR.NOT_EXISTS, label: 'does not exist', requiresValue: false },
|
|
63
|
+
];
|
|
64
|
+
export const TAG_LOAD_EXISTENCE_OPERATORS = [
|
|
65
|
+
CONDITION_OPERATOR.EXISTS,
|
|
66
|
+
CONDITION_OPERATOR.NOT_EXISTS,
|
|
67
|
+
];
|
|
68
|
+
export const TAG_LOAD_TRIGGER_ELIGIBLE_DESTINATIONS = [
|
|
69
|
+
DESTINATION.FACEBOOK,
|
|
70
|
+
DESTINATION.TIKTOK,
|
|
71
|
+
DESTINATION.GOOGLE_ANALYTICS_4,
|
|
72
|
+
DESTINATION.SNAPCHAT,
|
|
73
|
+
DESTINATION.PINTEREST,
|
|
74
|
+
DESTINATION.GOOGLE_ADS,
|
|
75
|
+
DESTINATION.TWITTER,
|
|
76
|
+
DESTINATION.POSTHOG,
|
|
77
|
+
DESTINATION.CUSTOMER_IO,
|
|
78
|
+
DESTINATION.CUSTOM_HTML,
|
|
79
|
+
DESTINATION.HUBSPOT,
|
|
80
|
+
DESTINATION.INTERCOM,
|
|
81
|
+
];
|
|
82
|
+
export function isTagLoadTriggerEligible(destination) {
|
|
83
|
+
return TAG_LOAD_TRIGGER_ELIGIBLE_DESTINATIONS.includes(destination);
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=tag-load-trigger-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag-load-trigger-types.js","sourceRoot":"","sources":["../../../../../src/types/api/destinations/tag-load-trig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