@walkeros/web-destination-gtag 0.3.1 → 0.4.1

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/index.d.mts CHANGED
@@ -1,5 +1,4 @@
1
- import * as _walkeros_core from '@walkeros/core';
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,18 +28,19 @@ type ConsentMode = false | true | ConsentMapping;
29
28
  interface ConsentMapping {
30
29
  [walkerOSConsentGroup: string]: string | string[];
31
30
  }
32
- type Types = Destination$1.Types<Settings$1, Mapping$1, Env>;
31
+ type Types = Destination$1.Types<Settings, Mapping, Env, InitSettings>;
33
32
  type Destination = DestinationWeb.Destination<Types>;
34
33
  type Config = DestinationWeb.Config<Types>;
35
34
  interface BaseSettings {
36
- data?: Mapping$2.Value | Mapping$2.Values;
35
+ data?: Mapping$1.Value | Mapping$1.Values;
37
36
  }
38
- interface Settings$1 {
37
+ interface Settings {
39
38
  como?: ConsentMode;
40
39
  ga4?: GA4Settings;
41
40
  ads?: AdsSettings;
42
41
  gtm?: GTMSettings;
43
42
  }
43
+ type InitSettings = Partial<Settings>;
44
44
  interface GA4Settings extends BaseSettings {
45
45
  measurementId: string;
46
46
  debug?: boolean;
@@ -62,7 +62,7 @@ interface GTMSettings extends BaseSettings {
62
62
  dataLayer?: string;
63
63
  domain?: string;
64
64
  }
65
- interface Mapping$1 {
65
+ interface Mapping {
66
66
  ga4?: GA4Mapping;
67
67
  ads?: AdsMapping;
68
68
  gtm?: GTMMapping;
@@ -72,231 +72,38 @@ interface GA4Mapping {
72
72
  }
73
73
  interface GTMMapping {
74
74
  }
75
- type Rule = Mapping$2.Rule<Mapping$1>;
76
- type Rules = Mapping$2.Rules<Rule>;
77
- type Param = Mapping$2.Value;
75
+ type Rule = Mapping$1.Rule<Mapping>;
76
+ type Rules = Mapping$1.Rules<Rule>;
77
+ type Param = Mapping$1.Value;
78
78
  type Include = Array<'all' | 'context' | 'data' | 'event' | 'globals' | 'source' | 'user' | 'version'>;
79
79
  type Parameters = Gtag.ControlParams & Gtag.EventParams & Gtag.CustomParams;
80
80
 
81
- type index$2_AdsMapping = AdsMapping;
82
- type index$2_AdsSettings = AdsSettings;
83
- type index$2_BaseSettings = BaseSettings;
84
- type index$2_Config = Config;
85
- type index$2_ConsentMapping = ConsentMapping;
86
- type index$2_ConsentMode = ConsentMode;
87
- type index$2_Destination = Destination;
88
- type index$2_Env = Env;
89
- type index$2_GA4Mapping = GA4Mapping;
90
- type index$2_GA4Settings = GA4Settings;
91
- type index$2_GTMMapping = GTMMapping;
92
- type index$2_GTMSettings = GTMSettings;
93
- type index$2_Include = Include;
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;
81
+ type index_AdsMapping = AdsMapping;
82
+ type index_AdsSettings = AdsSettings;
83
+ type index_BaseSettings = BaseSettings;
84
+ type index_Config = Config;
85
+ type index_ConsentMapping = ConsentMapping;
86
+ type index_ConsentMode = ConsentMode;
87
+ type index_Destination = Destination;
88
+ type index_Env = Env;
89
+ type index_GA4Mapping = GA4Mapping;
90
+ type index_GA4Settings = GA4Settings;
91
+ type index_GTMMapping = GTMMapping;
92
+ type index_GTMSettings = GTMSettings;
93
+ type index_Include = Include;
94
+ type index_InitSettings = InitSettings;
286
95
  type index_Mapping = Mapping;
287
- declare const index_MappingSchema: typeof MappingSchema;
96
+ type index_Param = Param;
97
+ type index_Parameters = Parameters;
98
+ type index_Rule = Rule;
99
+ type index_Rules = Rules;
288
100
  type index_Settings = Settings;
289
- declare const index_SettingsSchema: typeof SettingsSchema;
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;
101
+ type index_Types = Types;
295
102
  declare namespace index {
296
- export { index_AdsSettingsSchema as AdsSettingsSchema, index_ConsentModeSchema as ConsentModeSchema, index_GA4SettingsSchema as GA4SettingsSchema, index_GTMSettingsSchema as GTMSettingsSchema, index_IncludeSchema as IncludeSchema, type index_Mapping as Mapping, index_MappingSchema as MappingSchema, type index_Settings as Settings, index_SettingsSchema as SettingsSchema, index_ads as ads, index_ga4 as ga4, index_gtm as gtm, index_mapping as mapping, index_settings as settings };
103
+ 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_InitSettings as InitSettings, 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
104
  }
298
105
 
299
106
  declare function resetConsentState(): void;
300
107
  declare const destinationGtag: Destination;
301
108
 
302
- export { index$2 as DestinationGtag, destinationGtag as default, destinationGtag, index$1 as examples, resetConsentState, index as schemas };
109
+ export { index as DestinationGtag, destinationGtag as default, destinationGtag, resetConsentState };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import * as _walkeros_core from '@walkeros/core';
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,18 +28,19 @@ type ConsentMode = false | true | ConsentMapping;
29
28
  interface ConsentMapping {
30
29
  [walkerOSConsentGroup: string]: string | string[];
31
30
  }
32
- type Types = Destination$1.Types<Settings$1, Mapping$1, Env>;
31
+ type Types = Destination$1.Types<Settings, Mapping, Env, InitSettings>;
33
32
  type Destination = DestinationWeb.Destination<Types>;
34
33
  type Config = DestinationWeb.Config<Types>;
35
34
  interface BaseSettings {
36
- data?: Mapping$2.Value | Mapping$2.Values;
35
+ data?: Mapping$1.Value | Mapping$1.Values;
37
36
  }
38
- interface Settings$1 {
37
+ interface Settings {
39
38
  como?: ConsentMode;
40
39
  ga4?: GA4Settings;
41
40
  ads?: AdsSettings;
42
41
  gtm?: GTMSettings;
43
42
  }
43
+ type InitSettings = Partial<Settings>;
44
44
  interface GA4Settings extends BaseSettings {
45
45
  measurementId: string;
46
46
  debug?: boolean;
@@ -62,7 +62,7 @@ interface GTMSettings extends BaseSettings {
62
62
  dataLayer?: string;
63
63
  domain?: string;
64
64
  }
65
- interface Mapping$1 {
65
+ interface Mapping {
66
66
  ga4?: GA4Mapping;
67
67
  ads?: AdsMapping;
68
68
  gtm?: GTMMapping;
@@ -72,231 +72,38 @@ interface GA4Mapping {
72
72
  }
73
73
  interface GTMMapping {
74
74
  }
75
- type Rule = Mapping$2.Rule<Mapping$1>;
76
- type Rules = Mapping$2.Rules<Rule>;
77
- type Param = Mapping$2.Value;
75
+ type Rule = Mapping$1.Rule<Mapping>;
76
+ type Rules = Mapping$1.Rules<Rule>;
77
+ type Param = Mapping$1.Value;
78
78
  type Include = Array<'all' | 'context' | 'data' | 'event' | 'globals' | 'source' | 'user' | 'version'>;
79
79
  type Parameters = Gtag.ControlParams & Gtag.EventParams & Gtag.CustomParams;
80
80
 
81
- type index$2_AdsMapping = AdsMapping;
82
- type index$2_AdsSettings = AdsSettings;
83
- type index$2_BaseSettings = BaseSettings;
84
- type index$2_Config = Config;
85
- type index$2_ConsentMapping = ConsentMapping;
86
- type index$2_ConsentMode = ConsentMode;
87
- type index$2_Destination = Destination;
88
- type index$2_Env = Env;
89
- type index$2_GA4Mapping = GA4Mapping;
90
- type index$2_GA4Settings = GA4Settings;
91
- type index$2_GTMMapping = GTMMapping;
92
- type index$2_GTMSettings = GTMSettings;
93
- type index$2_Include = Include;
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;
81
+ type index_AdsMapping = AdsMapping;
82
+ type index_AdsSettings = AdsSettings;
83
+ type index_BaseSettings = BaseSettings;
84
+ type index_Config = Config;
85
+ type index_ConsentMapping = ConsentMapping;
86
+ type index_ConsentMode = ConsentMode;
87
+ type index_Destination = Destination;
88
+ type index_Env = Env;
89
+ type index_GA4Mapping = GA4Mapping;
90
+ type index_GA4Settings = GA4Settings;
91
+ type index_GTMMapping = GTMMapping;
92
+ type index_GTMSettings = GTMSettings;
93
+ type index_Include = Include;
94
+ type index_InitSettings = InitSettings;
286
95
  type index_Mapping = Mapping;
287
- declare const index_MappingSchema: typeof MappingSchema;
96
+ type index_Param = Param;
97
+ type index_Parameters = Parameters;
98
+ type index_Rule = Rule;
99
+ type index_Rules = Rules;
288
100
  type index_Settings = Settings;
289
- declare const index_SettingsSchema: typeof SettingsSchema;
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;
101
+ type index_Types = Types;
295
102
  declare namespace index {
296
- export { index_AdsSettingsSchema as AdsSettingsSchema, index_ConsentModeSchema as ConsentModeSchema, index_GA4SettingsSchema as GA4SettingsSchema, index_GTMSettingsSchema as GTMSettingsSchema, index_IncludeSchema as IncludeSchema, type index_Mapping as Mapping, index_MappingSchema as MappingSchema, type index_Settings as Settings, index_SettingsSchema as SettingsSchema, index_ads as ads, index_ga4 as ga4, index_gtm as gtm, index_mapping as mapping, index_settings as settings };
103
+ 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_InitSettings as InitSettings, 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
104
  }
298
105
 
299
106
  declare function resetConsentState(): void;
300
107
  declare const destinationGtag: Destination;
301
108
 
302
- export { index$2 as DestinationGtag, destinationGtag as default, destinationGtag, index$1 as examples, resetConsentState, index as schemas };
109
+ export { index as DestinationGtag, destinationGtag as default, destinationGtag, resetConsentState };