@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/index.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Destination as Destination$1, Mapping as Mapping$2, z } from '@walkeros/core';
|
|
1
|
+
import { Destination as Destination$1, Mapping as Mapping$1 } from '@walkeros/core';
|
|
3
2
|
import { DestinationWeb } from '@walkeros/web-core';
|
|
4
3
|
|
|
5
4
|
declare global {
|
|
@@ -29,13 +28,13 @@ type ConsentMode = false | true | ConsentMapping;
|
|
|
29
28
|
interface ConsentMapping {
|
|
30
29
|
[walkerOSConsentGroup: string]: string | string[];
|
|
31
30
|
}
|
|
32
|
-
type Types = Destination$1.Types<Settings
|
|
31
|
+
type Types = Destination$1.Types<Settings, Mapping, Env>;
|
|
33
32
|
type Destination = DestinationWeb.Destination<Types>;
|
|
34
33
|
type Config = DestinationWeb.Config<Types>;
|
|
35
34
|
interface BaseSettings {
|
|
36
|
-
data?: Mapping$
|
|
35
|
+
data?: Mapping$1.Value | Mapping$1.Values;
|
|
37
36
|
}
|
|
38
|
-
interface Settings
|
|
37
|
+
interface Settings {
|
|
39
38
|
como?: ConsentMode;
|
|
40
39
|
ga4?: GA4Settings;
|
|
41
40
|
ads?: AdsSettings;
|
|
@@ -62,7 +61,7 @@ interface GTMSettings extends BaseSettings {
|
|
|
62
61
|
dataLayer?: string;
|
|
63
62
|
domain?: string;
|
|
64
63
|
}
|
|
65
|
-
interface Mapping
|
|
64
|
+
interface Mapping {
|
|
66
65
|
ga4?: GA4Mapping;
|
|
67
66
|
ads?: AdsMapping;
|
|
68
67
|
gtm?: GTMMapping;
|
|
@@ -72,231 +71,37 @@ interface GA4Mapping {
|
|
|
72
71
|
}
|
|
73
72
|
interface GTMMapping {
|
|
74
73
|
}
|
|
75
|
-
type Rule = Mapping$
|
|
76
|
-
type Rules = Mapping$
|
|
77
|
-
type Param = Mapping$
|
|
74
|
+
type Rule = Mapping$1.Rule<Mapping>;
|
|
75
|
+
type Rules = Mapping$1.Rules<Rule>;
|
|
76
|
+
type Param = Mapping$1.Value;
|
|
78
77
|
type Include = Array<'all' | 'context' | 'data' | 'event' | 'globals' | 'source' | 'user' | 'version'>;
|
|
79
78
|
type Parameters = Gtag.ControlParams & Gtag.EventParams & Gtag.CustomParams;
|
|
80
79
|
|
|
81
|
-
type
|
|
82
|
-
type
|
|
83
|
-
type
|
|
84
|
-
type
|
|
85
|
-
type
|
|
86
|
-
type
|
|
87
|
-
type
|
|
88
|
-
type
|
|
89
|
-
type
|
|
90
|
-
type
|
|
91
|
-
type
|
|
92
|
-
type
|
|
93
|
-
type
|
|
94
|
-
type index$2_Param = Param;
|
|
95
|
-
type index$2_Parameters = Parameters;
|
|
96
|
-
type index$2_Rule = Rule;
|
|
97
|
-
type index$2_Rules = Rules;
|
|
98
|
-
type index$2_Types = Types;
|
|
99
|
-
declare namespace index$2 {
|
|
100
|
-
export type { index$2_AdsMapping as AdsMapping, index$2_AdsSettings as AdsSettings, index$2_BaseSettings as BaseSettings, index$2_Config as Config, index$2_ConsentMapping as ConsentMapping, index$2_ConsentMode as ConsentMode, index$2_Destination as Destination, index$2_Env as Env, index$2_GA4Mapping as GA4Mapping, index$2_GA4Settings as GA4Settings, index$2_GTMMapping as GTMMapping, index$2_GTMSettings as GTMSettings, index$2_Include as Include, Mapping$1 as Mapping, index$2_Param as Param, index$2_Parameters as Parameters, index$2_Rule as Rule, index$2_Rules as Rules, Settings$1 as Settings, index$2_Types as Types };
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
declare const init: Env | undefined;
|
|
104
|
-
declare const push: Env;
|
|
105
|
-
declare const simulation: string[];
|
|
106
|
-
|
|
107
|
-
declare const env_init: typeof init;
|
|
108
|
-
declare const env_push: typeof push;
|
|
109
|
-
declare const env_simulation: typeof simulation;
|
|
110
|
-
declare namespace env {
|
|
111
|
-
export { env_init as init, env_push as push, env_simulation as simulation };
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
declare function ga4Purchase$1(): unknown[];
|
|
115
|
-
declare function ga4AddToCart$1(): unknown[];
|
|
116
|
-
declare function adsConversion$1(): unknown[];
|
|
117
|
-
declare function gtmEvent(): Record<string, unknown>;
|
|
118
|
-
|
|
119
|
-
declare const events_gtmEvent: typeof gtmEvent;
|
|
120
|
-
declare namespace events {
|
|
121
|
-
export { adsConversion$1 as adsConversion, ga4AddToCart$1 as ga4AddToCart, ga4Purchase$1 as ga4Purchase, events_gtmEvent as gtmEvent };
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
declare const ga4Purchase: Rule;
|
|
125
|
-
declare const ga4AddToCart: Rule;
|
|
126
|
-
declare const adsConversion: Rule;
|
|
127
|
-
declare const gtmProductView: Rule;
|
|
128
|
-
declare const combinedPurchase: Rule;
|
|
129
|
-
declare const config: {
|
|
130
|
-
order: {
|
|
131
|
-
complete: Rule;
|
|
132
|
-
};
|
|
133
|
-
product: {
|
|
134
|
-
add: Rule;
|
|
135
|
-
view: Rule;
|
|
136
|
-
};
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
declare const mapping$1_adsConversion: typeof adsConversion;
|
|
140
|
-
declare const mapping$1_combinedPurchase: typeof combinedPurchase;
|
|
141
|
-
declare const mapping$1_config: typeof config;
|
|
142
|
-
declare const mapping$1_ga4AddToCart: typeof ga4AddToCart;
|
|
143
|
-
declare const mapping$1_ga4Purchase: typeof ga4Purchase;
|
|
144
|
-
declare const mapping$1_gtmProductView: typeof gtmProductView;
|
|
145
|
-
declare namespace mapping$1 {
|
|
146
|
-
export { mapping$1_adsConversion as adsConversion, mapping$1_combinedPurchase as combinedPurchase, mapping$1_config as config, mapping$1_ga4AddToCart as ga4AddToCart, mapping$1_ga4Purchase as ga4Purchase, mapping$1_gtmProductView as gtmProductView };
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
declare const index$1_env: typeof env;
|
|
150
|
-
declare const index$1_events: typeof events;
|
|
151
|
-
declare namespace index$1 {
|
|
152
|
-
export { index$1_env as env, index$1_events as events, mapping$1 as mapping };
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* Include configuration for GA4
|
|
157
|
-
* Specifies which event properties to include
|
|
158
|
-
*/
|
|
159
|
-
declare const IncludeSchema: z.ZodArray<z.ZodEnum<{
|
|
160
|
-
data: "data";
|
|
161
|
-
event: "event";
|
|
162
|
-
all: "all";
|
|
163
|
-
context: "context";
|
|
164
|
-
globals: "globals";
|
|
165
|
-
source: "source";
|
|
166
|
-
user: "user";
|
|
167
|
-
version: "version";
|
|
168
|
-
}>>;
|
|
169
|
-
/**
|
|
170
|
-
* Consent Mode Configuration
|
|
171
|
-
* Can be false (disabled), true (use defaults), or custom mapping
|
|
172
|
-
*/
|
|
173
|
-
declare const ConsentModeSchema: z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>]>;
|
|
174
|
-
declare const GA4SettingsSchema: z.ZodObject<{
|
|
175
|
-
measurementId: z.ZodString;
|
|
176
|
-
debug: z.ZodOptional<z.ZodBoolean>;
|
|
177
|
-
include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
178
|
-
data: "data";
|
|
179
|
-
event: "event";
|
|
180
|
-
all: "all";
|
|
181
|
-
context: "context";
|
|
182
|
-
globals: "globals";
|
|
183
|
-
source: "source";
|
|
184
|
-
user: "user";
|
|
185
|
-
version: "version";
|
|
186
|
-
}>>>;
|
|
187
|
-
pageview: z.ZodOptional<z.ZodBoolean>;
|
|
188
|
-
server_container_url: z.ZodOptional<z.ZodString>;
|
|
189
|
-
snakeCase: z.ZodOptional<z.ZodBoolean>;
|
|
190
|
-
transport_url: z.ZodOptional<z.ZodString>;
|
|
191
|
-
data: z.ZodOptional<z.ZodAny>;
|
|
192
|
-
}, z.core.$strip>;
|
|
193
|
-
/**
|
|
194
|
-
* Google Ads Settings Schema
|
|
195
|
-
* Configuration for Google Ads conversions
|
|
196
|
-
*/
|
|
197
|
-
declare const AdsSettingsSchema: z.ZodObject<{
|
|
198
|
-
conversionId: z.ZodString;
|
|
199
|
-
currency: z.ZodOptional<z.ZodString>;
|
|
200
|
-
data: z.ZodOptional<z.ZodAny>;
|
|
201
|
-
}, z.core.$strip>;
|
|
202
|
-
/**
|
|
203
|
-
* GTM Settings Schema
|
|
204
|
-
* Configuration for Google Tag Manager
|
|
205
|
-
*/
|
|
206
|
-
declare const GTMSettingsSchema: z.ZodObject<{
|
|
207
|
-
containerId: z.ZodString;
|
|
208
|
-
dataLayer: z.ZodOptional<z.ZodString>;
|
|
209
|
-
domain: z.ZodOptional<z.ZodString>;
|
|
210
|
-
data: z.ZodOptional<z.ZodAny>;
|
|
211
|
-
}, z.core.$strip>;
|
|
212
|
-
|
|
213
|
-
declare const SettingsSchema: z.ZodObject<{
|
|
214
|
-
como: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>]>>;
|
|
215
|
-
ga4: z.ZodOptional<z.ZodObject<{
|
|
216
|
-
measurementId: z.ZodString;
|
|
217
|
-
debug: z.ZodOptional<z.ZodBoolean>;
|
|
218
|
-
include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
219
|
-
data: "data";
|
|
220
|
-
event: "event";
|
|
221
|
-
all: "all";
|
|
222
|
-
context: "context";
|
|
223
|
-
globals: "globals";
|
|
224
|
-
source: "source";
|
|
225
|
-
user: "user";
|
|
226
|
-
version: "version";
|
|
227
|
-
}>>>;
|
|
228
|
-
pageview: z.ZodOptional<z.ZodBoolean>;
|
|
229
|
-
server_container_url: z.ZodOptional<z.ZodString>;
|
|
230
|
-
snakeCase: z.ZodOptional<z.ZodBoolean>;
|
|
231
|
-
transport_url: z.ZodOptional<z.ZodString>;
|
|
232
|
-
data: z.ZodOptional<z.ZodAny>;
|
|
233
|
-
}, z.core.$strip>>;
|
|
234
|
-
ads: z.ZodOptional<z.ZodObject<{
|
|
235
|
-
conversionId: z.ZodString;
|
|
236
|
-
currency: z.ZodOptional<z.ZodString>;
|
|
237
|
-
data: z.ZodOptional<z.ZodAny>;
|
|
238
|
-
}, z.core.$strip>>;
|
|
239
|
-
gtm: z.ZodOptional<z.ZodObject<{
|
|
240
|
-
containerId: z.ZodString;
|
|
241
|
-
dataLayer: z.ZodOptional<z.ZodString>;
|
|
242
|
-
domain: z.ZodOptional<z.ZodString>;
|
|
243
|
-
data: z.ZodOptional<z.ZodAny>;
|
|
244
|
-
}, z.core.$strip>>;
|
|
245
|
-
}, z.core.$strip>;
|
|
246
|
-
type Settings = z.infer<typeof SettingsSchema>;
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* Gtag Mapping Schema
|
|
250
|
-
* Tool-specific event-level mappings
|
|
251
|
-
*/
|
|
252
|
-
declare const MappingSchema: z.ZodObject<{
|
|
253
|
-
ga4: z.ZodOptional<z.ZodObject<{
|
|
254
|
-
include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
255
|
-
data: "data";
|
|
256
|
-
event: "event";
|
|
257
|
-
all: "all";
|
|
258
|
-
context: "context";
|
|
259
|
-
globals: "globals";
|
|
260
|
-
source: "source";
|
|
261
|
-
user: "user";
|
|
262
|
-
version: "version";
|
|
263
|
-
}>>>;
|
|
264
|
-
}, z.core.$strip>>;
|
|
265
|
-
ads: z.ZodOptional<z.ZodObject<{
|
|
266
|
-
label: z.ZodOptional<z.ZodString>;
|
|
267
|
-
}, z.core.$strip>>;
|
|
268
|
-
gtm: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
269
|
-
}, z.core.$strip>;
|
|
270
|
-
/**
|
|
271
|
-
* Type inference from MappingSchema
|
|
272
|
-
*/
|
|
273
|
-
type Mapping = z.infer<typeof MappingSchema>;
|
|
274
|
-
|
|
275
|
-
declare const settings: _walkeros_core.JSONSchema;
|
|
276
|
-
declare const mapping: _walkeros_core.JSONSchema;
|
|
277
|
-
declare const ga4: _walkeros_core.JSONSchema;
|
|
278
|
-
declare const ads: _walkeros_core.JSONSchema;
|
|
279
|
-
declare const gtm: _walkeros_core.JSONSchema;
|
|
280
|
-
|
|
281
|
-
declare const index_AdsSettingsSchema: typeof AdsSettingsSchema;
|
|
282
|
-
declare const index_ConsentModeSchema: typeof ConsentModeSchema;
|
|
283
|
-
declare const index_GA4SettingsSchema: typeof GA4SettingsSchema;
|
|
284
|
-
declare const index_GTMSettingsSchema: typeof GTMSettingsSchema;
|
|
285
|
-
declare const index_IncludeSchema: typeof IncludeSchema;
|
|
80
|
+
type index_AdsMapping = AdsMapping;
|
|
81
|
+
type index_AdsSettings = AdsSettings;
|
|
82
|
+
type index_BaseSettings = BaseSettings;
|
|
83
|
+
type index_Config = Config;
|
|
84
|
+
type index_ConsentMapping = ConsentMapping;
|
|
85
|
+
type index_ConsentMode = ConsentMode;
|
|
86
|
+
type index_Destination = Destination;
|
|
87
|
+
type index_Env = Env;
|
|
88
|
+
type index_GA4Mapping = GA4Mapping;
|
|
89
|
+
type index_GA4Settings = GA4Settings;
|
|
90
|
+
type index_GTMMapping = GTMMapping;
|
|
91
|
+
type index_GTMSettings = GTMSettings;
|
|
92
|
+
type index_Include = Include;
|
|
286
93
|
type index_Mapping = Mapping;
|
|
287
|
-
|
|
94
|
+
type index_Param = Param;
|
|
95
|
+
type index_Parameters = Parameters;
|
|
96
|
+
type index_Rule = Rule;
|
|
97
|
+
type index_Rules = Rules;
|
|
288
98
|
type index_Settings = Settings;
|
|
289
|
-
|
|
290
|
-
declare const index_ads: typeof ads;
|
|
291
|
-
declare const index_ga4: typeof ga4;
|
|
292
|
-
declare const index_gtm: typeof gtm;
|
|
293
|
-
declare const index_mapping: typeof mapping;
|
|
294
|
-
declare const index_settings: typeof settings;
|
|
99
|
+
type index_Types = Types;
|
|
295
100
|
declare namespace index {
|
|
296
|
-
export {
|
|
101
|
+
export type { index_AdsMapping as AdsMapping, index_AdsSettings as AdsSettings, index_BaseSettings as BaseSettings, index_Config as Config, index_ConsentMapping as ConsentMapping, index_ConsentMode as ConsentMode, index_Destination as Destination, index_Env as Env, index_GA4Mapping as GA4Mapping, index_GA4Settings as GA4Settings, index_GTMMapping as GTMMapping, index_GTMSettings as GTMSettings, index_Include as Include, index_Mapping as Mapping, index_Param as Param, index_Parameters as Parameters, index_Rule as Rule, index_Rules as Rules, index_Settings as Settings, index_Types as Types };
|
|
297
102
|
}
|
|
298
103
|
|
|
299
104
|
declare function resetConsentState(): void;
|
|
300
105
|
declare const destinationGtag: Destination;
|
|
301
106
|
|
|
302
|
-
export { index
|
|
107
|
+
export { index as DestinationGtag, destinationGtag as default, destinationGtag, resetConsentState };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Destination as Destination$1, Mapping as Mapping$2, z } from '@walkeros/core';
|
|
1
|
+
import { Destination as Destination$1, Mapping as Mapping$1 } from '@walkeros/core';
|
|
3
2
|
import { DestinationWeb } from '@walkeros/web-core';
|
|
4
3
|
|
|
5
4
|
declare global {
|
|
@@ -29,13 +28,13 @@ type ConsentMode = false | true | ConsentMapping;
|
|
|
29
28
|
interface ConsentMapping {
|
|
30
29
|
[walkerOSConsentGroup: string]: string | string[];
|
|
31
30
|
}
|
|
32
|
-
type Types = Destination$1.Types<Settings
|
|
31
|
+
type Types = Destination$1.Types<Settings, Mapping, Env>;
|
|
33
32
|
type Destination = DestinationWeb.Destination<Types>;
|
|
34
33
|
type Config = DestinationWeb.Config<Types>;
|
|
35
34
|
interface BaseSettings {
|
|
36
|
-
data?: Mapping$
|
|
35
|
+
data?: Mapping$1.Value | Mapping$1.Values;
|
|
37
36
|
}
|
|
38
|
-
interface Settings
|
|
37
|
+
interface Settings {
|
|
39
38
|
como?: ConsentMode;
|
|
40
39
|
ga4?: GA4Settings;
|
|
41
40
|
ads?: AdsSettings;
|
|
@@ -62,7 +61,7 @@ interface GTMSettings extends BaseSettings {
|
|
|
62
61
|
dataLayer?: string;
|
|
63
62
|
domain?: string;
|
|
64
63
|
}
|
|
65
|
-
interface Mapping
|
|
64
|
+
interface Mapping {
|
|
66
65
|
ga4?: GA4Mapping;
|
|
67
66
|
ads?: AdsMapping;
|
|
68
67
|
gtm?: GTMMapping;
|
|
@@ -72,231 +71,37 @@ interface GA4Mapping {
|
|
|
72
71
|
}
|
|
73
72
|
interface GTMMapping {
|
|
74
73
|
}
|
|
75
|
-
type Rule = Mapping$
|
|
76
|
-
type Rules = Mapping$
|
|
77
|
-
type Param = Mapping$
|
|
74
|
+
type Rule = Mapping$1.Rule<Mapping>;
|
|
75
|
+
type Rules = Mapping$1.Rules<Rule>;
|
|
76
|
+
type Param = Mapping$1.Value;
|
|
78
77
|
type Include = Array<'all' | 'context' | 'data' | 'event' | 'globals' | 'source' | 'user' | 'version'>;
|
|
79
78
|
type Parameters = Gtag.ControlParams & Gtag.EventParams & Gtag.CustomParams;
|
|
80
79
|
|
|
81
|
-
type
|
|
82
|
-
type
|
|
83
|
-
type
|
|
84
|
-
type
|
|
85
|
-
type
|
|
86
|
-
type
|
|
87
|
-
type
|
|
88
|
-
type
|
|
89
|
-
type
|
|
90
|
-
type
|
|
91
|
-
type
|
|
92
|
-
type
|
|
93
|
-
type
|
|
94
|
-
type index$2_Param = Param;
|
|
95
|
-
type index$2_Parameters = Parameters;
|
|
96
|
-
type index$2_Rule = Rule;
|
|
97
|
-
type index$2_Rules = Rules;
|
|
98
|
-
type index$2_Types = Types;
|
|
99
|
-
declare namespace index$2 {
|
|
100
|
-
export type { index$2_AdsMapping as AdsMapping, index$2_AdsSettings as AdsSettings, index$2_BaseSettings as BaseSettings, index$2_Config as Config, index$2_ConsentMapping as ConsentMapping, index$2_ConsentMode as ConsentMode, index$2_Destination as Destination, index$2_Env as Env, index$2_GA4Mapping as GA4Mapping, index$2_GA4Settings as GA4Settings, index$2_GTMMapping as GTMMapping, index$2_GTMSettings as GTMSettings, index$2_Include as Include, Mapping$1 as Mapping, index$2_Param as Param, index$2_Parameters as Parameters, index$2_Rule as Rule, index$2_Rules as Rules, Settings$1 as Settings, index$2_Types as Types };
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
declare const init: Env | undefined;
|
|
104
|
-
declare const push: Env;
|
|
105
|
-
declare const simulation: string[];
|
|
106
|
-
|
|
107
|
-
declare const env_init: typeof init;
|
|
108
|
-
declare const env_push: typeof push;
|
|
109
|
-
declare const env_simulation: typeof simulation;
|
|
110
|
-
declare namespace env {
|
|
111
|
-
export { env_init as init, env_push as push, env_simulation as simulation };
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
declare function ga4Purchase$1(): unknown[];
|
|
115
|
-
declare function ga4AddToCart$1(): unknown[];
|
|
116
|
-
declare function adsConversion$1(): unknown[];
|
|
117
|
-
declare function gtmEvent(): Record<string, unknown>;
|
|
118
|
-
|
|
119
|
-
declare const events_gtmEvent: typeof gtmEvent;
|
|
120
|
-
declare namespace events {
|
|
121
|
-
export { adsConversion$1 as adsConversion, ga4AddToCart$1 as ga4AddToCart, ga4Purchase$1 as ga4Purchase, events_gtmEvent as gtmEvent };
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
declare const ga4Purchase: Rule;
|
|
125
|
-
declare const ga4AddToCart: Rule;
|
|
126
|
-
declare const adsConversion: Rule;
|
|
127
|
-
declare const gtmProductView: Rule;
|
|
128
|
-
declare const combinedPurchase: Rule;
|
|
129
|
-
declare const config: {
|
|
130
|
-
order: {
|
|
131
|
-
complete: Rule;
|
|
132
|
-
};
|
|
133
|
-
product: {
|
|
134
|
-
add: Rule;
|
|
135
|
-
view: Rule;
|
|
136
|
-
};
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
declare const mapping$1_adsConversion: typeof adsConversion;
|
|
140
|
-
declare const mapping$1_combinedPurchase: typeof combinedPurchase;
|
|
141
|
-
declare const mapping$1_config: typeof config;
|
|
142
|
-
declare const mapping$1_ga4AddToCart: typeof ga4AddToCart;
|
|
143
|
-
declare const mapping$1_ga4Purchase: typeof ga4Purchase;
|
|
144
|
-
declare const mapping$1_gtmProductView: typeof gtmProductView;
|
|
145
|
-
declare namespace mapping$1 {
|
|
146
|
-
export { mapping$1_adsConversion as adsConversion, mapping$1_combinedPurchase as combinedPurchase, mapping$1_config as config, mapping$1_ga4AddToCart as ga4AddToCart, mapping$1_ga4Purchase as ga4Purchase, mapping$1_gtmProductView as gtmProductView };
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
declare const index$1_env: typeof env;
|
|
150
|
-
declare const index$1_events: typeof events;
|
|
151
|
-
declare namespace index$1 {
|
|
152
|
-
export { index$1_env as env, index$1_events as events, mapping$1 as mapping };
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* Include configuration for GA4
|
|
157
|
-
* Specifies which event properties to include
|
|
158
|
-
*/
|
|
159
|
-
declare const IncludeSchema: z.ZodArray<z.ZodEnum<{
|
|
160
|
-
data: "data";
|
|
161
|
-
event: "event";
|
|
162
|
-
all: "all";
|
|
163
|
-
context: "context";
|
|
164
|
-
globals: "globals";
|
|
165
|
-
source: "source";
|
|
166
|
-
user: "user";
|
|
167
|
-
version: "version";
|
|
168
|
-
}>>;
|
|
169
|
-
/**
|
|
170
|
-
* Consent Mode Configuration
|
|
171
|
-
* Can be false (disabled), true (use defaults), or custom mapping
|
|
172
|
-
*/
|
|
173
|
-
declare const ConsentModeSchema: z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>]>;
|
|
174
|
-
declare const GA4SettingsSchema: z.ZodObject<{
|
|
175
|
-
measurementId: z.ZodString;
|
|
176
|
-
debug: z.ZodOptional<z.ZodBoolean>;
|
|
177
|
-
include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
178
|
-
data: "data";
|
|
179
|
-
event: "event";
|
|
180
|
-
all: "all";
|
|
181
|
-
context: "context";
|
|
182
|
-
globals: "globals";
|
|
183
|
-
source: "source";
|
|
184
|
-
user: "user";
|
|
185
|
-
version: "version";
|
|
186
|
-
}>>>;
|
|
187
|
-
pageview: z.ZodOptional<z.ZodBoolean>;
|
|
188
|
-
server_container_url: z.ZodOptional<z.ZodString>;
|
|
189
|
-
snakeCase: z.ZodOptional<z.ZodBoolean>;
|
|
190
|
-
transport_url: z.ZodOptional<z.ZodString>;
|
|
191
|
-
data: z.ZodOptional<z.ZodAny>;
|
|
192
|
-
}, z.core.$strip>;
|
|
193
|
-
/**
|
|
194
|
-
* Google Ads Settings Schema
|
|
195
|
-
* Configuration for Google Ads conversions
|
|
196
|
-
*/
|
|
197
|
-
declare const AdsSettingsSchema: z.ZodObject<{
|
|
198
|
-
conversionId: z.ZodString;
|
|
199
|
-
currency: z.ZodOptional<z.ZodString>;
|
|
200
|
-
data: z.ZodOptional<z.ZodAny>;
|
|
201
|
-
}, z.core.$strip>;
|
|
202
|
-
/**
|
|
203
|
-
* GTM Settings Schema
|
|
204
|
-
* Configuration for Google Tag Manager
|
|
205
|
-
*/
|
|
206
|
-
declare const GTMSettingsSchema: z.ZodObject<{
|
|
207
|
-
containerId: z.ZodString;
|
|
208
|
-
dataLayer: z.ZodOptional<z.ZodString>;
|
|
209
|
-
domain: z.ZodOptional<z.ZodString>;
|
|
210
|
-
data: z.ZodOptional<z.ZodAny>;
|
|
211
|
-
}, z.core.$strip>;
|
|
212
|
-
|
|
213
|
-
declare const SettingsSchema: z.ZodObject<{
|
|
214
|
-
como: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>]>>;
|
|
215
|
-
ga4: z.ZodOptional<z.ZodObject<{
|
|
216
|
-
measurementId: z.ZodString;
|
|
217
|
-
debug: z.ZodOptional<z.ZodBoolean>;
|
|
218
|
-
include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
219
|
-
data: "data";
|
|
220
|
-
event: "event";
|
|
221
|
-
all: "all";
|
|
222
|
-
context: "context";
|
|
223
|
-
globals: "globals";
|
|
224
|
-
source: "source";
|
|
225
|
-
user: "user";
|
|
226
|
-
version: "version";
|
|
227
|
-
}>>>;
|
|
228
|
-
pageview: z.ZodOptional<z.ZodBoolean>;
|
|
229
|
-
server_container_url: z.ZodOptional<z.ZodString>;
|
|
230
|
-
snakeCase: z.ZodOptional<z.ZodBoolean>;
|
|
231
|
-
transport_url: z.ZodOptional<z.ZodString>;
|
|
232
|
-
data: z.ZodOptional<z.ZodAny>;
|
|
233
|
-
}, z.core.$strip>>;
|
|
234
|
-
ads: z.ZodOptional<z.ZodObject<{
|
|
235
|
-
conversionId: z.ZodString;
|
|
236
|
-
currency: z.ZodOptional<z.ZodString>;
|
|
237
|
-
data: z.ZodOptional<z.ZodAny>;
|
|
238
|
-
}, z.core.$strip>>;
|
|
239
|
-
gtm: z.ZodOptional<z.ZodObject<{
|
|
240
|
-
containerId: z.ZodString;
|
|
241
|
-
dataLayer: z.ZodOptional<z.ZodString>;
|
|
242
|
-
domain: z.ZodOptional<z.ZodString>;
|
|
243
|
-
data: z.ZodOptional<z.ZodAny>;
|
|
244
|
-
}, z.core.$strip>>;
|
|
245
|
-
}, z.core.$strip>;
|
|
246
|
-
type Settings = z.infer<typeof SettingsSchema>;
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* Gtag Mapping Schema
|
|
250
|
-
* Tool-specific event-level mappings
|
|
251
|
-
*/
|
|
252
|
-
declare const MappingSchema: z.ZodObject<{
|
|
253
|
-
ga4: z.ZodOptional<z.ZodObject<{
|
|
254
|
-
include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
255
|
-
data: "data";
|
|
256
|
-
event: "event";
|
|
257
|
-
all: "all";
|
|
258
|
-
context: "context";
|
|
259
|
-
globals: "globals";
|
|
260
|
-
source: "source";
|
|
261
|
-
user: "user";
|
|
262
|
-
version: "version";
|
|
263
|
-
}>>>;
|
|
264
|
-
}, z.core.$strip>>;
|
|
265
|
-
ads: z.ZodOptional<z.ZodObject<{
|
|
266
|
-
label: z.ZodOptional<z.ZodString>;
|
|
267
|
-
}, z.core.$strip>>;
|
|
268
|
-
gtm: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
269
|
-
}, z.core.$strip>;
|
|
270
|
-
/**
|
|
271
|
-
* Type inference from MappingSchema
|
|
272
|
-
*/
|
|
273
|
-
type Mapping = z.infer<typeof MappingSchema>;
|
|
274
|
-
|
|
275
|
-
declare const settings: _walkeros_core.JSONSchema;
|
|
276
|
-
declare const mapping: _walkeros_core.JSONSchema;
|
|
277
|
-
declare const ga4: _walkeros_core.JSONSchema;
|
|
278
|
-
declare const ads: _walkeros_core.JSONSchema;
|
|
279
|
-
declare const gtm: _walkeros_core.JSONSchema;
|
|
280
|
-
|
|
281
|
-
declare const index_AdsSettingsSchema: typeof AdsSettingsSchema;
|
|
282
|
-
declare const index_ConsentModeSchema: typeof ConsentModeSchema;
|
|
283
|
-
declare const index_GA4SettingsSchema: typeof GA4SettingsSchema;
|
|
284
|
-
declare const index_GTMSettingsSchema: typeof GTMSettingsSchema;
|
|
285
|
-
declare const index_IncludeSchema: typeof IncludeSchema;
|
|
80
|
+
type index_AdsMapping = AdsMapping;
|
|
81
|
+
type index_AdsSettings = AdsSettings;
|
|
82
|
+
type index_BaseSettings = BaseSettings;
|
|
83
|
+
type index_Config = Config;
|
|
84
|
+
type index_ConsentMapping = ConsentMapping;
|
|
85
|
+
type index_ConsentMode = ConsentMode;
|
|
86
|
+
type index_Destination = Destination;
|
|
87
|
+
type index_Env = Env;
|
|
88
|
+
type index_GA4Mapping = GA4Mapping;
|
|
89
|
+
type index_GA4Settings = GA4Settings;
|
|
90
|
+
type index_GTMMapping = GTMMapping;
|
|
91
|
+
type index_GTMSettings = GTMSettings;
|
|
92
|
+
type index_Include = Include;
|
|
286
93
|
type index_Mapping = Mapping;
|
|
287
|
-
|
|
94
|
+
type index_Param = Param;
|
|
95
|
+
type index_Parameters = Parameters;
|
|
96
|
+
type index_Rule = Rule;
|
|
97
|
+
type index_Rules = Rules;
|
|
288
98
|
type index_Settings = Settings;
|
|
289
|
-
|
|
290
|
-
declare const index_ads: typeof ads;
|
|
291
|
-
declare const index_ga4: typeof ga4;
|
|
292
|
-
declare const index_gtm: typeof gtm;
|
|
293
|
-
declare const index_mapping: typeof mapping;
|
|
294
|
-
declare const index_settings: typeof settings;
|
|
99
|
+
type index_Types = Types;
|
|
295
100
|
declare namespace index {
|
|
296
|
-
export {
|
|
101
|
+
export type { index_AdsMapping as AdsMapping, index_AdsSettings as AdsSettings, index_BaseSettings as BaseSettings, index_Config as Config, index_ConsentMapping as ConsentMapping, index_ConsentMode as ConsentMode, index_Destination as Destination, index_Env as Env, index_GA4Mapping as GA4Mapping, index_GA4Settings as GA4Settings, index_GTMMapping as GTMMapping, index_GTMSettings as GTMSettings, index_Include as Include, index_Mapping as Mapping, index_Param as Param, index_Parameters as Parameters, index_Rule as Rule, index_Rules as Rules, index_Settings as Settings, index_Types as Types };
|
|
297
102
|
}
|
|
298
103
|
|
|
299
104
|
declare function resetConsentState(): void;
|
|
300
105
|
declare const destinationGtag: Destination;
|
|
301
106
|
|
|
302
|
-
export { index
|
|
107
|
+
export { index as DestinationGtag, destinationGtag as default, destinationGtag, resetConsentState };
|