@walkeros/web-destination-gtag 0.3.1 → 0.4.0
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/dev.d.mts +240 -0
- package/dist/dev.d.ts +240 -0
- package/dist/dev.js +1 -0
- package/dist/dev.js.map +1 -0
- package/dist/dev.mjs +1 -0
- package/dist/dev.mjs.map +1 -0
- package/dist/examples/index.js +28 -12931
- package/dist/examples/index.mjs +28 -12931
- package/dist/index.browser.js +1 -1
- package/dist/index.d.mts +28 -223
- package/dist/index.d.ts +28 -223
- package/dist/index.es5.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -2
package/dist/dev.d.mts
ADDED
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import * as _walkeros_core_dev from '@walkeros/core/dev';
|
|
2
|
+
import { z } from '@walkeros/core/dev';
|
|
3
|
+
import { Mapping as Mapping$2 } from '@walkeros/core';
|
|
4
|
+
import { DestinationWeb } from '@walkeros/web-core';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Include configuration for GA4
|
|
8
|
+
* Specifies which event properties to include
|
|
9
|
+
*/
|
|
10
|
+
declare const IncludeSchema: z.ZodArray<z.ZodEnum<{
|
|
11
|
+
all: "all";
|
|
12
|
+
context: "context";
|
|
13
|
+
data: "data";
|
|
14
|
+
event: "event";
|
|
15
|
+
globals: "globals";
|
|
16
|
+
source: "source";
|
|
17
|
+
user: "user";
|
|
18
|
+
version: "version";
|
|
19
|
+
}>>;
|
|
20
|
+
/**
|
|
21
|
+
* Consent Mode Configuration
|
|
22
|
+
* Can be false (disabled), true (use defaults), or custom mapping
|
|
23
|
+
*/
|
|
24
|
+
declare const ConsentModeSchema: z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>]>;
|
|
25
|
+
declare const GA4SettingsSchema: z.ZodObject<{
|
|
26
|
+
measurementId: z.ZodString;
|
|
27
|
+
debug: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
29
|
+
all: "all";
|
|
30
|
+
context: "context";
|
|
31
|
+
data: "data";
|
|
32
|
+
event: "event";
|
|
33
|
+
globals: "globals";
|
|
34
|
+
source: "source";
|
|
35
|
+
user: "user";
|
|
36
|
+
version: "version";
|
|
37
|
+
}>>>;
|
|
38
|
+
pageview: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
+
server_container_url: z.ZodOptional<z.ZodString>;
|
|
40
|
+
snakeCase: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
transport_url: z.ZodOptional<z.ZodString>;
|
|
42
|
+
data: z.ZodOptional<z.ZodAny>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
/**
|
|
45
|
+
* Google Ads Settings Schema
|
|
46
|
+
* Configuration for Google Ads conversions
|
|
47
|
+
*/
|
|
48
|
+
declare const AdsSettingsSchema: z.ZodObject<{
|
|
49
|
+
conversionId: z.ZodString;
|
|
50
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
51
|
+
data: z.ZodOptional<z.ZodAny>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
/**
|
|
54
|
+
* GTM Settings Schema
|
|
55
|
+
* Configuration for Google Tag Manager
|
|
56
|
+
*/
|
|
57
|
+
declare const GTMSettingsSchema: z.ZodObject<{
|
|
58
|
+
containerId: z.ZodString;
|
|
59
|
+
dataLayer: z.ZodOptional<z.ZodString>;
|
|
60
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
61
|
+
data: z.ZodOptional<z.ZodAny>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
|
|
64
|
+
declare const SettingsSchema: z.ZodObject<{
|
|
65
|
+
como: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>]>>;
|
|
66
|
+
ga4: z.ZodOptional<z.ZodObject<{
|
|
67
|
+
measurementId: z.ZodString;
|
|
68
|
+
debug: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
+
include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
70
|
+
all: "all";
|
|
71
|
+
context: "context";
|
|
72
|
+
data: "data";
|
|
73
|
+
event: "event";
|
|
74
|
+
globals: "globals";
|
|
75
|
+
source: "source";
|
|
76
|
+
user: "user";
|
|
77
|
+
version: "version";
|
|
78
|
+
}>>>;
|
|
79
|
+
pageview: z.ZodOptional<z.ZodBoolean>;
|
|
80
|
+
server_container_url: z.ZodOptional<z.ZodString>;
|
|
81
|
+
snakeCase: z.ZodOptional<z.ZodBoolean>;
|
|
82
|
+
transport_url: z.ZodOptional<z.ZodString>;
|
|
83
|
+
data: z.ZodOptional<z.ZodAny>;
|
|
84
|
+
}, z.core.$strip>>;
|
|
85
|
+
ads: z.ZodOptional<z.ZodObject<{
|
|
86
|
+
conversionId: z.ZodString;
|
|
87
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
88
|
+
data: z.ZodOptional<z.ZodAny>;
|
|
89
|
+
}, z.core.$strip>>;
|
|
90
|
+
gtm: z.ZodOptional<z.ZodObject<{
|
|
91
|
+
containerId: z.ZodString;
|
|
92
|
+
dataLayer: z.ZodOptional<z.ZodString>;
|
|
93
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
94
|
+
data: z.ZodOptional<z.ZodAny>;
|
|
95
|
+
}, z.core.$strip>>;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
type Settings = z.infer<typeof SettingsSchema>;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Gtag Mapping Schema
|
|
101
|
+
* Tool-specific event-level mappings
|
|
102
|
+
*/
|
|
103
|
+
declare const MappingSchema: z.ZodObject<{
|
|
104
|
+
ga4: z.ZodOptional<z.ZodObject<{
|
|
105
|
+
include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
106
|
+
all: "all";
|
|
107
|
+
context: "context";
|
|
108
|
+
data: "data";
|
|
109
|
+
event: "event";
|
|
110
|
+
globals: "globals";
|
|
111
|
+
source: "source";
|
|
112
|
+
user: "user";
|
|
113
|
+
version: "version";
|
|
114
|
+
}>>>;
|
|
115
|
+
}, z.core.$strip>>;
|
|
116
|
+
ads: z.ZodOptional<z.ZodObject<{
|
|
117
|
+
label: z.ZodOptional<z.ZodString>;
|
|
118
|
+
}, z.core.$strip>>;
|
|
119
|
+
gtm: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
/**
|
|
122
|
+
* Type inference from MappingSchema
|
|
123
|
+
*/
|
|
124
|
+
type Mapping$1 = z.infer<typeof MappingSchema>;
|
|
125
|
+
|
|
126
|
+
declare const settings: _walkeros_core_dev.JSONSchema;
|
|
127
|
+
declare const mapping$1: _walkeros_core_dev.JSONSchema;
|
|
128
|
+
declare const ga4: _walkeros_core_dev.JSONSchema;
|
|
129
|
+
declare const ads: _walkeros_core_dev.JSONSchema;
|
|
130
|
+
declare const gtm: _walkeros_core_dev.JSONSchema;
|
|
131
|
+
|
|
132
|
+
declare const index$1_AdsSettingsSchema: typeof AdsSettingsSchema;
|
|
133
|
+
declare const index$1_ConsentModeSchema: typeof ConsentModeSchema;
|
|
134
|
+
declare const index$1_GA4SettingsSchema: typeof GA4SettingsSchema;
|
|
135
|
+
declare const index$1_GTMSettingsSchema: typeof GTMSettingsSchema;
|
|
136
|
+
declare const index$1_IncludeSchema: typeof IncludeSchema;
|
|
137
|
+
declare const index$1_MappingSchema: typeof MappingSchema;
|
|
138
|
+
type index$1_Settings = Settings;
|
|
139
|
+
declare const index$1_SettingsSchema: typeof SettingsSchema;
|
|
140
|
+
declare const index$1_ads: typeof ads;
|
|
141
|
+
declare const index$1_ga4: typeof ga4;
|
|
142
|
+
declare const index$1_gtm: typeof gtm;
|
|
143
|
+
declare const index$1_settings: typeof settings;
|
|
144
|
+
declare namespace index$1 {
|
|
145
|
+
export { index$1_AdsSettingsSchema as AdsSettingsSchema, index$1_ConsentModeSchema as ConsentModeSchema, index$1_GA4SettingsSchema as GA4SettingsSchema, index$1_GTMSettingsSchema as GTMSettingsSchema, index$1_IncludeSchema as IncludeSchema, type Mapping$1 as Mapping, index$1_MappingSchema as MappingSchema, type index$1_Settings as Settings, index$1_SettingsSchema as SettingsSchema, index$1_ads as ads, index$1_ga4 as ga4, index$1_gtm as gtm, mapping$1 as mapping, index$1_settings as settings };
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
declare global {
|
|
149
|
+
interface Window {
|
|
150
|
+
gtag?: Gtag.Gtag;
|
|
151
|
+
[key: string]: unknown;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
interface Env extends DestinationWeb.Env {
|
|
155
|
+
window: {
|
|
156
|
+
gtag: Gtag.Gtag;
|
|
157
|
+
dataLayer: unknown[];
|
|
158
|
+
};
|
|
159
|
+
document: {
|
|
160
|
+
createElement: (tagName: string) => {
|
|
161
|
+
src: string;
|
|
162
|
+
async?: boolean;
|
|
163
|
+
setAttribute: (name: string, value: string) => void;
|
|
164
|
+
removeAttribute: (name: string) => void;
|
|
165
|
+
};
|
|
166
|
+
head: {
|
|
167
|
+
appendChild: (node: unknown) => void;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
interface AdsMapping {
|
|
172
|
+
label?: string;
|
|
173
|
+
}
|
|
174
|
+
interface Mapping {
|
|
175
|
+
ga4?: GA4Mapping;
|
|
176
|
+
ads?: AdsMapping;
|
|
177
|
+
gtm?: GTMMapping;
|
|
178
|
+
}
|
|
179
|
+
interface GA4Mapping {
|
|
180
|
+
include?: Include;
|
|
181
|
+
}
|
|
182
|
+
interface GTMMapping {
|
|
183
|
+
}
|
|
184
|
+
type Rule = Mapping$2.Rule<Mapping>;
|
|
185
|
+
type Include = Array<'all' | 'context' | 'data' | 'event' | 'globals' | 'source' | 'user' | 'version'>;
|
|
186
|
+
|
|
187
|
+
declare const init: Env | undefined;
|
|
188
|
+
declare const push: Env;
|
|
189
|
+
declare const simulation: string[];
|
|
190
|
+
|
|
191
|
+
declare const env_init: typeof init;
|
|
192
|
+
declare const env_push: typeof push;
|
|
193
|
+
declare const env_simulation: typeof simulation;
|
|
194
|
+
declare namespace env {
|
|
195
|
+
export { env_init as init, env_push as push, env_simulation as simulation };
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
declare function ga4Purchase$1(): unknown[];
|
|
199
|
+
declare function ga4AddToCart$1(): unknown[];
|
|
200
|
+
declare function adsConversion$1(): unknown[];
|
|
201
|
+
declare function gtmEvent(): Record<string, unknown>;
|
|
202
|
+
|
|
203
|
+
declare const events_gtmEvent: typeof gtmEvent;
|
|
204
|
+
declare namespace events {
|
|
205
|
+
export { adsConversion$1 as adsConversion, ga4AddToCart$1 as ga4AddToCart, ga4Purchase$1 as ga4Purchase, events_gtmEvent as gtmEvent };
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
declare const ga4Purchase: Rule;
|
|
209
|
+
declare const ga4AddToCart: Rule;
|
|
210
|
+
declare const adsConversion: Rule;
|
|
211
|
+
declare const gtmProductView: Rule;
|
|
212
|
+
declare const combinedPurchase: Rule;
|
|
213
|
+
declare const config: {
|
|
214
|
+
order: {
|
|
215
|
+
complete: Rule;
|
|
216
|
+
};
|
|
217
|
+
product: {
|
|
218
|
+
add: Rule;
|
|
219
|
+
view: Rule;
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
declare const mapping_adsConversion: typeof adsConversion;
|
|
224
|
+
declare const mapping_combinedPurchase: typeof combinedPurchase;
|
|
225
|
+
declare const mapping_config: typeof config;
|
|
226
|
+
declare const mapping_ga4AddToCart: typeof ga4AddToCart;
|
|
227
|
+
declare const mapping_ga4Purchase: typeof ga4Purchase;
|
|
228
|
+
declare const mapping_gtmProductView: typeof gtmProductView;
|
|
229
|
+
declare namespace mapping {
|
|
230
|
+
export { mapping_adsConversion as adsConversion, mapping_combinedPurchase as combinedPurchase, mapping_config as config, mapping_ga4AddToCart as ga4AddToCart, mapping_ga4Purchase as ga4Purchase, mapping_gtmProductView as gtmProductView };
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
declare const index_env: typeof env;
|
|
234
|
+
declare const index_events: typeof events;
|
|
235
|
+
declare const index_mapping: typeof mapping;
|
|
236
|
+
declare namespace index {
|
|
237
|
+
export { index_env as env, index_events as events, index_mapping as mapping };
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export { index as examples, index$1 as schemas };
|
package/dist/dev.d.ts
ADDED
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import * as _walkeros_core_dev from '@walkeros/core/dev';
|
|
2
|
+
import { z } from '@walkeros/core/dev';
|
|
3
|
+
import { Mapping as Mapping$2 } from '@walkeros/core';
|
|
4
|
+
import { DestinationWeb } from '@walkeros/web-core';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Include configuration for GA4
|
|
8
|
+
* Specifies which event properties to include
|
|
9
|
+
*/
|
|
10
|
+
declare const IncludeSchema: z.ZodArray<z.ZodEnum<{
|
|
11
|
+
all: "all";
|
|
12
|
+
context: "context";
|
|
13
|
+
data: "data";
|
|
14
|
+
event: "event";
|
|
15
|
+
globals: "globals";
|
|
16
|
+
source: "source";
|
|
17
|
+
user: "user";
|
|
18
|
+
version: "version";
|
|
19
|
+
}>>;
|
|
20
|
+
/**
|
|
21
|
+
* Consent Mode Configuration
|
|
22
|
+
* Can be false (disabled), true (use defaults), or custom mapping
|
|
23
|
+
*/
|
|
24
|
+
declare const ConsentModeSchema: z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>]>;
|
|
25
|
+
declare const GA4SettingsSchema: z.ZodObject<{
|
|
26
|
+
measurementId: z.ZodString;
|
|
27
|
+
debug: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
29
|
+
all: "all";
|
|
30
|
+
context: "context";
|
|
31
|
+
data: "data";
|
|
32
|
+
event: "event";
|
|
33
|
+
globals: "globals";
|
|
34
|
+
source: "source";
|
|
35
|
+
user: "user";
|
|
36
|
+
version: "version";
|
|
37
|
+
}>>>;
|
|
38
|
+
pageview: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
+
server_container_url: z.ZodOptional<z.ZodString>;
|
|
40
|
+
snakeCase: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
transport_url: z.ZodOptional<z.ZodString>;
|
|
42
|
+
data: z.ZodOptional<z.ZodAny>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
/**
|
|
45
|
+
* Google Ads Settings Schema
|
|
46
|
+
* Configuration for Google Ads conversions
|
|
47
|
+
*/
|
|
48
|
+
declare const AdsSettingsSchema: z.ZodObject<{
|
|
49
|
+
conversionId: z.ZodString;
|
|
50
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
51
|
+
data: z.ZodOptional<z.ZodAny>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
/**
|
|
54
|
+
* GTM Settings Schema
|
|
55
|
+
* Configuration for Google Tag Manager
|
|
56
|
+
*/
|
|
57
|
+
declare const GTMSettingsSchema: z.ZodObject<{
|
|
58
|
+
containerId: z.ZodString;
|
|
59
|
+
dataLayer: z.ZodOptional<z.ZodString>;
|
|
60
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
61
|
+
data: z.ZodOptional<z.ZodAny>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
|
|
64
|
+
declare const SettingsSchema: z.ZodObject<{
|
|
65
|
+
como: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>]>>;
|
|
66
|
+
ga4: z.ZodOptional<z.ZodObject<{
|
|
67
|
+
measurementId: z.ZodString;
|
|
68
|
+
debug: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
+
include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
70
|
+
all: "all";
|
|
71
|
+
context: "context";
|
|
72
|
+
data: "data";
|
|
73
|
+
event: "event";
|
|
74
|
+
globals: "globals";
|
|
75
|
+
source: "source";
|
|
76
|
+
user: "user";
|
|
77
|
+
version: "version";
|
|
78
|
+
}>>>;
|
|
79
|
+
pageview: z.ZodOptional<z.ZodBoolean>;
|
|
80
|
+
server_container_url: z.ZodOptional<z.ZodString>;
|
|
81
|
+
snakeCase: z.ZodOptional<z.ZodBoolean>;
|
|
82
|
+
transport_url: z.ZodOptional<z.ZodString>;
|
|
83
|
+
data: z.ZodOptional<z.ZodAny>;
|
|
84
|
+
}, z.core.$strip>>;
|
|
85
|
+
ads: z.ZodOptional<z.ZodObject<{
|
|
86
|
+
conversionId: z.ZodString;
|
|
87
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
88
|
+
data: z.ZodOptional<z.ZodAny>;
|
|
89
|
+
}, z.core.$strip>>;
|
|
90
|
+
gtm: z.ZodOptional<z.ZodObject<{
|
|
91
|
+
containerId: z.ZodString;
|
|
92
|
+
dataLayer: z.ZodOptional<z.ZodString>;
|
|
93
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
94
|
+
data: z.ZodOptional<z.ZodAny>;
|
|
95
|
+
}, z.core.$strip>>;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
type Settings = z.infer<typeof SettingsSchema>;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Gtag Mapping Schema
|
|
101
|
+
* Tool-specific event-level mappings
|
|
102
|
+
*/
|
|
103
|
+
declare const MappingSchema: z.ZodObject<{
|
|
104
|
+
ga4: z.ZodOptional<z.ZodObject<{
|
|
105
|
+
include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
106
|
+
all: "all";
|
|
107
|
+
context: "context";
|
|
108
|
+
data: "data";
|
|
109
|
+
event: "event";
|
|
110
|
+
globals: "globals";
|
|
111
|
+
source: "source";
|
|
112
|
+
user: "user";
|
|
113
|
+
version: "version";
|
|
114
|
+
}>>>;
|
|
115
|
+
}, z.core.$strip>>;
|
|
116
|
+
ads: z.ZodOptional<z.ZodObject<{
|
|
117
|
+
label: z.ZodOptional<z.ZodString>;
|
|
118
|
+
}, z.core.$strip>>;
|
|
119
|
+
gtm: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
/**
|
|
122
|
+
* Type inference from MappingSchema
|
|
123
|
+
*/
|
|
124
|
+
type Mapping$1 = z.infer<typeof MappingSchema>;
|
|
125
|
+
|
|
126
|
+
declare const settings: _walkeros_core_dev.JSONSchema;
|
|
127
|
+
declare const mapping$1: _walkeros_core_dev.JSONSchema;
|
|
128
|
+
declare const ga4: _walkeros_core_dev.JSONSchema;
|
|
129
|
+
declare const ads: _walkeros_core_dev.JSONSchema;
|
|
130
|
+
declare const gtm: _walkeros_core_dev.JSONSchema;
|
|
131
|
+
|
|
132
|
+
declare const index$1_AdsSettingsSchema: typeof AdsSettingsSchema;
|
|
133
|
+
declare const index$1_ConsentModeSchema: typeof ConsentModeSchema;
|
|
134
|
+
declare const index$1_GA4SettingsSchema: typeof GA4SettingsSchema;
|
|
135
|
+
declare const index$1_GTMSettingsSchema: typeof GTMSettingsSchema;
|
|
136
|
+
declare const index$1_IncludeSchema: typeof IncludeSchema;
|
|
137
|
+
declare const index$1_MappingSchema: typeof MappingSchema;
|
|
138
|
+
type index$1_Settings = Settings;
|
|
139
|
+
declare const index$1_SettingsSchema: typeof SettingsSchema;
|
|
140
|
+
declare const index$1_ads: typeof ads;
|
|
141
|
+
declare const index$1_ga4: typeof ga4;
|
|
142
|
+
declare const index$1_gtm: typeof gtm;
|
|
143
|
+
declare const index$1_settings: typeof settings;
|
|
144
|
+
declare namespace index$1 {
|
|
145
|
+
export { index$1_AdsSettingsSchema as AdsSettingsSchema, index$1_ConsentModeSchema as ConsentModeSchema, index$1_GA4SettingsSchema as GA4SettingsSchema, index$1_GTMSettingsSchema as GTMSettingsSchema, index$1_IncludeSchema as IncludeSchema, type Mapping$1 as Mapping, index$1_MappingSchema as MappingSchema, type index$1_Settings as Settings, index$1_SettingsSchema as SettingsSchema, index$1_ads as ads, index$1_ga4 as ga4, index$1_gtm as gtm, mapping$1 as mapping, index$1_settings as settings };
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
declare global {
|
|
149
|
+
interface Window {
|
|
150
|
+
gtag?: Gtag.Gtag;
|
|
151
|
+
[key: string]: unknown;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
interface Env extends DestinationWeb.Env {
|
|
155
|
+
window: {
|
|
156
|
+
gtag: Gtag.Gtag;
|
|
157
|
+
dataLayer: unknown[];
|
|
158
|
+
};
|
|
159
|
+
document: {
|
|
160
|
+
createElement: (tagName: string) => {
|
|
161
|
+
src: string;
|
|
162
|
+
async?: boolean;
|
|
163
|
+
setAttribute: (name: string, value: string) => void;
|
|
164
|
+
removeAttribute: (name: string) => void;
|
|
165
|
+
};
|
|
166
|
+
head: {
|
|
167
|
+
appendChild: (node: unknown) => void;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
interface AdsMapping {
|
|
172
|
+
label?: string;
|
|
173
|
+
}
|
|
174
|
+
interface Mapping {
|
|
175
|
+
ga4?: GA4Mapping;
|
|
176
|
+
ads?: AdsMapping;
|
|
177
|
+
gtm?: GTMMapping;
|
|
178
|
+
}
|
|
179
|
+
interface GA4Mapping {
|
|
180
|
+
include?: Include;
|
|
181
|
+
}
|
|
182
|
+
interface GTMMapping {
|
|
183
|
+
}
|
|
184
|
+
type Rule = Mapping$2.Rule<Mapping>;
|
|
185
|
+
type Include = Array<'all' | 'context' | 'data' | 'event' | 'globals' | 'source' | 'user' | 'version'>;
|
|
186
|
+
|
|
187
|
+
declare const init: Env | undefined;
|
|
188
|
+
declare const push: Env;
|
|
189
|
+
declare const simulation: string[];
|
|
190
|
+
|
|
191
|
+
declare const env_init: typeof init;
|
|
192
|
+
declare const env_push: typeof push;
|
|
193
|
+
declare const env_simulation: typeof simulation;
|
|
194
|
+
declare namespace env {
|
|
195
|
+
export { env_init as init, env_push as push, env_simulation as simulation };
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
declare function ga4Purchase$1(): unknown[];
|
|
199
|
+
declare function ga4AddToCart$1(): unknown[];
|
|
200
|
+
declare function adsConversion$1(): unknown[];
|
|
201
|
+
declare function gtmEvent(): Record<string, unknown>;
|
|
202
|
+
|
|
203
|
+
declare const events_gtmEvent: typeof gtmEvent;
|
|
204
|
+
declare namespace events {
|
|
205
|
+
export { adsConversion$1 as adsConversion, ga4AddToCart$1 as ga4AddToCart, ga4Purchase$1 as ga4Purchase, events_gtmEvent as gtmEvent };
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
declare const ga4Purchase: Rule;
|
|
209
|
+
declare const ga4AddToCart: Rule;
|
|
210
|
+
declare const adsConversion: Rule;
|
|
211
|
+
declare const gtmProductView: Rule;
|
|
212
|
+
declare const combinedPurchase: Rule;
|
|
213
|
+
declare const config: {
|
|
214
|
+
order: {
|
|
215
|
+
complete: Rule;
|
|
216
|
+
};
|
|
217
|
+
product: {
|
|
218
|
+
add: Rule;
|
|
219
|
+
view: Rule;
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
declare const mapping_adsConversion: typeof adsConversion;
|
|
224
|
+
declare const mapping_combinedPurchase: typeof combinedPurchase;
|
|
225
|
+
declare const mapping_config: typeof config;
|
|
226
|
+
declare const mapping_ga4AddToCart: typeof ga4AddToCart;
|
|
227
|
+
declare const mapping_ga4Purchase: typeof ga4Purchase;
|
|
228
|
+
declare const mapping_gtmProductView: typeof gtmProductView;
|
|
229
|
+
declare namespace mapping {
|
|
230
|
+
export { mapping_adsConversion as adsConversion, mapping_combinedPurchase as combinedPurchase, mapping_config as config, mapping_ga4AddToCart as ga4AddToCart, mapping_ga4Purchase as ga4Purchase, mapping_gtmProductView as gtmProductView };
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
declare const index_env: typeof env;
|
|
234
|
+
declare const index_events: typeof events;
|
|
235
|
+
declare const index_mapping: typeof mapping;
|
|
236
|
+
declare namespace index {
|
|
237
|
+
export { index_env as env, index_events as events, index_mapping as mapping };
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export { index as examples, index$1 as schemas };
|