@walkeros/web-destination-meta 0.2.1 → 0.3.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/examples/index.js +204 -74
- package/dist/examples/index.mjs +204 -74
- package/dist/index.browser.js +1 -1
- package/dist/index.d.mts +83 -96
- package/dist/index.d.ts +83 -96
- 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 +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Destination as Destination$1, Mapping as Mapping$
|
|
1
|
+
import { Destination as Destination$1, Mapping as Mapping$2, z } from '@walkeros/core';
|
|
2
2
|
import { DestinationWeb } from '@walkeros/web-core';
|
|
3
|
+
import * as zod_to_json_schema from 'zod-to-json-schema';
|
|
3
4
|
|
|
4
5
|
declare global {
|
|
5
6
|
interface Window {
|
|
@@ -7,10 +8,10 @@ declare global {
|
|
|
7
8
|
fbq?: facebook.Pixel.Event;
|
|
8
9
|
}
|
|
9
10
|
}
|
|
10
|
-
interface Settings {
|
|
11
|
-
pixelId
|
|
11
|
+
interface Settings$1 {
|
|
12
|
+
pixelId: string;
|
|
12
13
|
}
|
|
13
|
-
interface Mapping {
|
|
14
|
+
interface Mapping$1 {
|
|
14
15
|
track?: StandardEventNames;
|
|
15
16
|
trackCustom?: string;
|
|
16
17
|
}
|
|
@@ -26,24 +27,22 @@ interface Env extends DestinationWeb.Env {
|
|
|
26
27
|
};
|
|
27
28
|
};
|
|
28
29
|
}
|
|
29
|
-
type Types = Destination$1.Types<Settings, Mapping, Env>;
|
|
30
|
+
type Types = Destination$1.Types<Settings$1, Mapping$1, Env>;
|
|
30
31
|
type Destination = DestinationWeb.Destination<Types>;
|
|
31
32
|
type Config = DestinationWeb.Config<Types>;
|
|
32
|
-
type Rule = Mapping$
|
|
33
|
-
type Rules = Mapping$
|
|
33
|
+
type Rule = Mapping$2.Rule<Mapping$1>;
|
|
34
|
+
type Rules = Mapping$2.Rules<Rule>;
|
|
34
35
|
type StandardEventNames = 'PageView' | 'AddPaymentInfo' | 'AddToCart' | 'AddToWishlist' | 'CompleteRegistration' | 'Contact' | 'CustomizeProduct' | 'Donate' | 'FindLocation' | 'InitiateCheckout' | 'Lead' | 'Purchase' | 'Schedule' | 'Search' | 'StartTrial' | 'SubmitApplication' | 'Subscribe' | 'ViewContent' | string;
|
|
35
36
|
|
|
36
|
-
type index$
|
|
37
|
-
type index$
|
|
38
|
-
type index$
|
|
39
|
-
type index$
|
|
40
|
-
type index$
|
|
41
|
-
type index$
|
|
42
|
-
type index$
|
|
43
|
-
|
|
44
|
-
type index$
|
|
45
|
-
declare namespace index$1 {
|
|
46
|
-
export type { index$1_Config as Config, index$1_Destination as Destination, index$1_Env as Env, index$1_Mapping as Mapping, index$1_Rule as Rule, index$1_Rules as Rules, index$1_Settings as Settings, index$1_StandardEventNames as StandardEventNames, index$1_Types as Types };
|
|
37
|
+
type index$2_Config = Config;
|
|
38
|
+
type index$2_Destination = Destination;
|
|
39
|
+
type index$2_Env = Env;
|
|
40
|
+
type index$2_Rule = Rule;
|
|
41
|
+
type index$2_Rules = Rules;
|
|
42
|
+
type index$2_StandardEventNames = StandardEventNames;
|
|
43
|
+
type index$2_Types = Types;
|
|
44
|
+
declare namespace index$2 {
|
|
45
|
+
export type { index$2_Config as Config, index$2_Destination as Destination, index$2_Env as Env, Mapping$1 as Mapping, index$2_Rule as Rule, index$2_Rules as Rules, Settings$1 as Settings, index$2_StandardEventNames as StandardEventNames, index$2_Types as Types };
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
declare const init: Env | undefined;
|
|
@@ -81,96 +80,84 @@ declare const config: {
|
|
|
81
80
|
};
|
|
82
81
|
};
|
|
83
82
|
|
|
84
|
-
declare const
|
|
85
|
-
declare const
|
|
86
|
-
declare const
|
|
87
|
-
declare const
|
|
88
|
-
declare const
|
|
89
|
-
declare namespace mapping {
|
|
90
|
-
export {
|
|
83
|
+
declare const mapping$1_AddToCart: typeof AddToCart;
|
|
84
|
+
declare const mapping$1_InitiateCheckout: typeof InitiateCheckout;
|
|
85
|
+
declare const mapping$1_Purchase: typeof Purchase;
|
|
86
|
+
declare const mapping$1_ViewContent: typeof ViewContent;
|
|
87
|
+
declare const mapping$1_config: typeof config;
|
|
88
|
+
declare namespace mapping$1 {
|
|
89
|
+
export { mapping$1_AddToCart as AddToCart, mapping$1_InitiateCheckout as InitiateCheckout, mapping$1_Purchase as Purchase, mapping$1_ViewContent as ViewContent, mapping$1_config as config };
|
|
91
90
|
}
|
|
92
91
|
|
|
93
|
-
declare const
|
|
94
|
-
declare const
|
|
95
|
-
declare
|
|
96
|
-
|
|
97
|
-
export { index_env as env, index_events as events, index_mapping as mapping };
|
|
92
|
+
declare const index$1_env: typeof env;
|
|
93
|
+
declare const index$1_events: typeof events;
|
|
94
|
+
declare namespace index$1 {
|
|
95
|
+
export { index$1_env as env, index$1_events as events, mapping$1 as mapping };
|
|
98
96
|
}
|
|
99
97
|
|
|
100
|
-
type UiSchema$1 = Record<string, unknown>;
|
|
101
98
|
/**
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
* @see {@link Settings} in types/index.ts
|
|
99
|
+
* Meta Pixel ID
|
|
100
|
+
* Must be a numeric string (Facebook Pixel IDs are numeric)
|
|
106
101
|
*/
|
|
107
|
-
declare const
|
|
102
|
+
declare const PixelId: z.ZodString;
|
|
108
103
|
/**
|
|
109
|
-
*
|
|
110
|
-
*
|
|
104
|
+
* Meta Pixel Standard Event Names
|
|
105
|
+
* https://developers.facebook.com/docs/meta-pixel/reference
|
|
111
106
|
*/
|
|
112
|
-
declare const
|
|
107
|
+
declare const StandardEventName: z.ZodEnum<["PageView", "AddPaymentInfo", "AddToCart", "AddToWishlist", "CompleteRegistration", "Contact", "CustomizeProduct", "Donate", "FindLocation", "InitiateCheckout", "Lead", "Purchase", "Schedule", "Search", "StartTrial", "SubmitApplication", "Subscribe", "ViewContent"]>;
|
|
113
108
|
/**
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
* @see {@link Mapping} in types/index.ts
|
|
109
|
+
* Custom Event Name
|
|
110
|
+
* Any string for custom tracking
|
|
118
111
|
*/
|
|
119
|
-
declare const
|
|
120
|
-
/**
|
|
121
|
-
* UI Schema for Meta Pixel mapping
|
|
122
|
-
*/
|
|
123
|
-
declare const mappingUiSchema: UiSchema$1;
|
|
124
|
-
/**
|
|
125
|
-
* RJSF schema for Meta Pixel event data properties
|
|
126
|
-
* Describes the expected data structure for Meta Pixel events
|
|
127
|
-
*
|
|
128
|
-
* @see https://developers.facebook.com/docs/meta-pixel/reference
|
|
129
|
-
*/
|
|
130
|
-
declare const dataSchema: JSONSchema;
|
|
131
|
-
/**
|
|
132
|
-
* UI Schema for Meta Pixel data
|
|
133
|
-
* Customizes visual presentation
|
|
134
|
-
*/
|
|
135
|
-
declare const dataUiSchema: UiSchema$1;
|
|
136
|
-
|
|
137
|
-
declare const schema_dataSchema: typeof dataSchema;
|
|
138
|
-
declare const schema_dataUiSchema: typeof dataUiSchema;
|
|
139
|
-
declare const schema_mappingSchema: typeof mappingSchema;
|
|
140
|
-
declare const schema_mappingUiSchema: typeof mappingUiSchema;
|
|
141
|
-
declare const schema_settingsSchema: typeof settingsSchema;
|
|
142
|
-
declare const schema_settingsUiSchema: typeof settingsUiSchema;
|
|
143
|
-
declare namespace schema {
|
|
144
|
-
export { type UiSchema$1 as UiSchema, schema_dataSchema as dataSchema, schema_dataUiSchema as dataUiSchema, schema_mappingSchema as mappingSchema, schema_mappingUiSchema as mappingUiSchema, schema_settingsSchema as settingsSchema, schema_settingsUiSchema as settingsUiSchema };
|
|
145
|
-
}
|
|
112
|
+
declare const CustomEventName: z.ZodString;
|
|
146
113
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
* - New: ~40 lines using schema builder
|
|
156
|
-
* - Savings: 57% less code!
|
|
157
|
-
*/
|
|
114
|
+
declare const SettingsSchema: z.ZodObject<{
|
|
115
|
+
pixelId: z.ZodString;
|
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
pixelId: string;
|
|
118
|
+
}, {
|
|
119
|
+
pixelId: string;
|
|
120
|
+
}>;
|
|
121
|
+
type Settings = z.infer<typeof SettingsSchema>;
|
|
158
122
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
declare const
|
|
172
|
-
|
|
123
|
+
declare const MappingSchema: z.ZodObject<{
|
|
124
|
+
track: z.ZodOptional<z.ZodEnum<["PageView", "AddPaymentInfo", "AddToCart", "AddToWishlist", "CompleteRegistration", "Contact", "CustomizeProduct", "Donate", "FindLocation", "InitiateCheckout", "Lead", "Purchase", "Schedule", "Search", "StartTrial", "SubmitApplication", "Subscribe", "ViewContent"]>>;
|
|
125
|
+
trackCustom: z.ZodOptional<z.ZodString>;
|
|
126
|
+
}, "strip", z.ZodTypeAny, {
|
|
127
|
+
track?: "PageView" | "AddPaymentInfo" | "AddToCart" | "AddToWishlist" | "CompleteRegistration" | "Contact" | "CustomizeProduct" | "Donate" | "FindLocation" | "InitiateCheckout" | "Lead" | "Purchase" | "Schedule" | "Search" | "StartTrial" | "SubmitApplication" | "Subscribe" | "ViewContent" | undefined;
|
|
128
|
+
trackCustom?: string | undefined;
|
|
129
|
+
}, {
|
|
130
|
+
track?: "PageView" | "AddPaymentInfo" | "AddToCart" | "AddToWishlist" | "CompleteRegistration" | "Contact" | "CustomizeProduct" | "Donate" | "FindLocation" | "InitiateCheckout" | "Lead" | "Purchase" | "Schedule" | "Search" | "StartTrial" | "SubmitApplication" | "Subscribe" | "ViewContent" | undefined;
|
|
131
|
+
trackCustom?: string | undefined;
|
|
132
|
+
}>;
|
|
133
|
+
type Mapping = z.infer<typeof MappingSchema>;
|
|
134
|
+
|
|
135
|
+
declare const settings: zod_to_json_schema.JsonSchema7Type & {
|
|
136
|
+
$schema?: string | undefined;
|
|
137
|
+
definitions?: {
|
|
138
|
+
[key: string]: zod_to_json_schema.JsonSchema7Type;
|
|
139
|
+
} | undefined;
|
|
140
|
+
};
|
|
141
|
+
declare const mapping: zod_to_json_schema.JsonSchema7Type & {
|
|
142
|
+
$schema?: string | undefined;
|
|
143
|
+
definitions?: {
|
|
144
|
+
[key: string]: zod_to_json_schema.JsonSchema7Type;
|
|
145
|
+
} | undefined;
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
declare const index_CustomEventName: typeof CustomEventName;
|
|
149
|
+
type index_Mapping = Mapping;
|
|
150
|
+
declare const index_MappingSchema: typeof MappingSchema;
|
|
151
|
+
declare const index_PixelId: typeof PixelId;
|
|
152
|
+
type index_Settings = Settings;
|
|
153
|
+
declare const index_SettingsSchema: typeof SettingsSchema;
|
|
154
|
+
declare const index_StandardEventName: typeof StandardEventName;
|
|
155
|
+
declare const index_mapping: typeof mapping;
|
|
156
|
+
declare const index_settings: typeof settings;
|
|
157
|
+
declare namespace index {
|
|
158
|
+
export { index_CustomEventName as CustomEventName, type index_Mapping as Mapping, index_MappingSchema as MappingSchema, index_PixelId as PixelId, type index_Settings as Settings, index_SettingsSchema as SettingsSchema, index_StandardEventName as StandardEventName, index_mapping as mapping, index_settings as settings };
|
|
159
|
+
}
|
|
173
160
|
|
|
174
161
|
declare const destinationMeta: Destination;
|
|
175
162
|
|
|
176
|
-
export { index$
|
|
163
|
+
export { index$2 as DestinationMeta, destinationMeta as default, destinationMeta, index$1 as examples, index as schemas };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Destination as Destination$1, Mapping as Mapping$
|
|
1
|
+
import { Destination as Destination$1, Mapping as Mapping$2, z } from '@walkeros/core';
|
|
2
2
|
import { DestinationWeb } from '@walkeros/web-core';
|
|
3
|
+
import * as zod_to_json_schema from 'zod-to-json-schema';
|
|
3
4
|
|
|
4
5
|
declare global {
|
|
5
6
|
interface Window {
|
|
@@ -7,10 +8,10 @@ declare global {
|
|
|
7
8
|
fbq?: facebook.Pixel.Event;
|
|
8
9
|
}
|
|
9
10
|
}
|
|
10
|
-
interface Settings {
|
|
11
|
-
pixelId
|
|
11
|
+
interface Settings$1 {
|
|
12
|
+
pixelId: string;
|
|
12
13
|
}
|
|
13
|
-
interface Mapping {
|
|
14
|
+
interface Mapping$1 {
|
|
14
15
|
track?: StandardEventNames;
|
|
15
16
|
trackCustom?: string;
|
|
16
17
|
}
|
|
@@ -26,24 +27,22 @@ interface Env extends DestinationWeb.Env {
|
|
|
26
27
|
};
|
|
27
28
|
};
|
|
28
29
|
}
|
|
29
|
-
type Types = Destination$1.Types<Settings, Mapping, Env>;
|
|
30
|
+
type Types = Destination$1.Types<Settings$1, Mapping$1, Env>;
|
|
30
31
|
type Destination = DestinationWeb.Destination<Types>;
|
|
31
32
|
type Config = DestinationWeb.Config<Types>;
|
|
32
|
-
type Rule = Mapping$
|
|
33
|
-
type Rules = Mapping$
|
|
33
|
+
type Rule = Mapping$2.Rule<Mapping$1>;
|
|
34
|
+
type Rules = Mapping$2.Rules<Rule>;
|
|
34
35
|
type StandardEventNames = 'PageView' | 'AddPaymentInfo' | 'AddToCart' | 'AddToWishlist' | 'CompleteRegistration' | 'Contact' | 'CustomizeProduct' | 'Donate' | 'FindLocation' | 'InitiateCheckout' | 'Lead' | 'Purchase' | 'Schedule' | 'Search' | 'StartTrial' | 'SubmitApplication' | 'Subscribe' | 'ViewContent' | string;
|
|
35
36
|
|
|
36
|
-
type index$
|
|
37
|
-
type index$
|
|
38
|
-
type index$
|
|
39
|
-
type index$
|
|
40
|
-
type index$
|
|
41
|
-
type index$
|
|
42
|
-
type index$
|
|
43
|
-
|
|
44
|
-
type index$
|
|
45
|
-
declare namespace index$1 {
|
|
46
|
-
export type { index$1_Config as Config, index$1_Destination as Destination, index$1_Env as Env, index$1_Mapping as Mapping, index$1_Rule as Rule, index$1_Rules as Rules, index$1_Settings as Settings, index$1_StandardEventNames as StandardEventNames, index$1_Types as Types };
|
|
37
|
+
type index$2_Config = Config;
|
|
38
|
+
type index$2_Destination = Destination;
|
|
39
|
+
type index$2_Env = Env;
|
|
40
|
+
type index$2_Rule = Rule;
|
|
41
|
+
type index$2_Rules = Rules;
|
|
42
|
+
type index$2_StandardEventNames = StandardEventNames;
|
|
43
|
+
type index$2_Types = Types;
|
|
44
|
+
declare namespace index$2 {
|
|
45
|
+
export type { index$2_Config as Config, index$2_Destination as Destination, index$2_Env as Env, Mapping$1 as Mapping, index$2_Rule as Rule, index$2_Rules as Rules, Settings$1 as Settings, index$2_StandardEventNames as StandardEventNames, index$2_Types as Types };
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
declare const init: Env | undefined;
|
|
@@ -81,96 +80,84 @@ declare const config: {
|
|
|
81
80
|
};
|
|
82
81
|
};
|
|
83
82
|
|
|
84
|
-
declare const
|
|
85
|
-
declare const
|
|
86
|
-
declare const
|
|
87
|
-
declare const
|
|
88
|
-
declare const
|
|
89
|
-
declare namespace mapping {
|
|
90
|
-
export {
|
|
83
|
+
declare const mapping$1_AddToCart: typeof AddToCart;
|
|
84
|
+
declare const mapping$1_InitiateCheckout: typeof InitiateCheckout;
|
|
85
|
+
declare const mapping$1_Purchase: typeof Purchase;
|
|
86
|
+
declare const mapping$1_ViewContent: typeof ViewContent;
|
|
87
|
+
declare const mapping$1_config: typeof config;
|
|
88
|
+
declare namespace mapping$1 {
|
|
89
|
+
export { mapping$1_AddToCart as AddToCart, mapping$1_InitiateCheckout as InitiateCheckout, mapping$1_Purchase as Purchase, mapping$1_ViewContent as ViewContent, mapping$1_config as config };
|
|
91
90
|
}
|
|
92
91
|
|
|
93
|
-
declare const
|
|
94
|
-
declare const
|
|
95
|
-
declare
|
|
96
|
-
|
|
97
|
-
export { index_env as env, index_events as events, index_mapping as mapping };
|
|
92
|
+
declare const index$1_env: typeof env;
|
|
93
|
+
declare const index$1_events: typeof events;
|
|
94
|
+
declare namespace index$1 {
|
|
95
|
+
export { index$1_env as env, index$1_events as events, mapping$1 as mapping };
|
|
98
96
|
}
|
|
99
97
|
|
|
100
|
-
type UiSchema$1 = Record<string, unknown>;
|
|
101
98
|
/**
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
* @see {@link Settings} in types/index.ts
|
|
99
|
+
* Meta Pixel ID
|
|
100
|
+
* Must be a numeric string (Facebook Pixel IDs are numeric)
|
|
106
101
|
*/
|
|
107
|
-
declare const
|
|
102
|
+
declare const PixelId: z.ZodString;
|
|
108
103
|
/**
|
|
109
|
-
*
|
|
110
|
-
*
|
|
104
|
+
* Meta Pixel Standard Event Names
|
|
105
|
+
* https://developers.facebook.com/docs/meta-pixel/reference
|
|
111
106
|
*/
|
|
112
|
-
declare const
|
|
107
|
+
declare const StandardEventName: z.ZodEnum<["PageView", "AddPaymentInfo", "AddToCart", "AddToWishlist", "CompleteRegistration", "Contact", "CustomizeProduct", "Donate", "FindLocation", "InitiateCheckout", "Lead", "Purchase", "Schedule", "Search", "StartTrial", "SubmitApplication", "Subscribe", "ViewContent"]>;
|
|
113
108
|
/**
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
* @see {@link Mapping} in types/index.ts
|
|
109
|
+
* Custom Event Name
|
|
110
|
+
* Any string for custom tracking
|
|
118
111
|
*/
|
|
119
|
-
declare const
|
|
120
|
-
/**
|
|
121
|
-
* UI Schema for Meta Pixel mapping
|
|
122
|
-
*/
|
|
123
|
-
declare const mappingUiSchema: UiSchema$1;
|
|
124
|
-
/**
|
|
125
|
-
* RJSF schema for Meta Pixel event data properties
|
|
126
|
-
* Describes the expected data structure for Meta Pixel events
|
|
127
|
-
*
|
|
128
|
-
* @see https://developers.facebook.com/docs/meta-pixel/reference
|
|
129
|
-
*/
|
|
130
|
-
declare const dataSchema: JSONSchema;
|
|
131
|
-
/**
|
|
132
|
-
* UI Schema for Meta Pixel data
|
|
133
|
-
* Customizes visual presentation
|
|
134
|
-
*/
|
|
135
|
-
declare const dataUiSchema: UiSchema$1;
|
|
136
|
-
|
|
137
|
-
declare const schema_dataSchema: typeof dataSchema;
|
|
138
|
-
declare const schema_dataUiSchema: typeof dataUiSchema;
|
|
139
|
-
declare const schema_mappingSchema: typeof mappingSchema;
|
|
140
|
-
declare const schema_mappingUiSchema: typeof mappingUiSchema;
|
|
141
|
-
declare const schema_settingsSchema: typeof settingsSchema;
|
|
142
|
-
declare const schema_settingsUiSchema: typeof settingsUiSchema;
|
|
143
|
-
declare namespace schema {
|
|
144
|
-
export { type UiSchema$1 as UiSchema, schema_dataSchema as dataSchema, schema_dataUiSchema as dataUiSchema, schema_mappingSchema as mappingSchema, schema_mappingUiSchema as mappingUiSchema, schema_settingsSchema as settingsSchema, schema_settingsUiSchema as settingsUiSchema };
|
|
145
|
-
}
|
|
112
|
+
declare const CustomEventName: z.ZodString;
|
|
146
113
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
* - New: ~40 lines using schema builder
|
|
156
|
-
* - Savings: 57% less code!
|
|
157
|
-
*/
|
|
114
|
+
declare const SettingsSchema: z.ZodObject<{
|
|
115
|
+
pixelId: z.ZodString;
|
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
pixelId: string;
|
|
118
|
+
}, {
|
|
119
|
+
pixelId: string;
|
|
120
|
+
}>;
|
|
121
|
+
type Settings = z.infer<typeof SettingsSchema>;
|
|
158
122
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
declare const
|
|
172
|
-
|
|
123
|
+
declare const MappingSchema: z.ZodObject<{
|
|
124
|
+
track: z.ZodOptional<z.ZodEnum<["PageView", "AddPaymentInfo", "AddToCart", "AddToWishlist", "CompleteRegistration", "Contact", "CustomizeProduct", "Donate", "FindLocation", "InitiateCheckout", "Lead", "Purchase", "Schedule", "Search", "StartTrial", "SubmitApplication", "Subscribe", "ViewContent"]>>;
|
|
125
|
+
trackCustom: z.ZodOptional<z.ZodString>;
|
|
126
|
+
}, "strip", z.ZodTypeAny, {
|
|
127
|
+
track?: "PageView" | "AddPaymentInfo" | "AddToCart" | "AddToWishlist" | "CompleteRegistration" | "Contact" | "CustomizeProduct" | "Donate" | "FindLocation" | "InitiateCheckout" | "Lead" | "Purchase" | "Schedule" | "Search" | "StartTrial" | "SubmitApplication" | "Subscribe" | "ViewContent" | undefined;
|
|
128
|
+
trackCustom?: string | undefined;
|
|
129
|
+
}, {
|
|
130
|
+
track?: "PageView" | "AddPaymentInfo" | "AddToCart" | "AddToWishlist" | "CompleteRegistration" | "Contact" | "CustomizeProduct" | "Donate" | "FindLocation" | "InitiateCheckout" | "Lead" | "Purchase" | "Schedule" | "Search" | "StartTrial" | "SubmitApplication" | "Subscribe" | "ViewContent" | undefined;
|
|
131
|
+
trackCustom?: string | undefined;
|
|
132
|
+
}>;
|
|
133
|
+
type Mapping = z.infer<typeof MappingSchema>;
|
|
134
|
+
|
|
135
|
+
declare const settings: zod_to_json_schema.JsonSchema7Type & {
|
|
136
|
+
$schema?: string | undefined;
|
|
137
|
+
definitions?: {
|
|
138
|
+
[key: string]: zod_to_json_schema.JsonSchema7Type;
|
|
139
|
+
} | undefined;
|
|
140
|
+
};
|
|
141
|
+
declare const mapping: zod_to_json_schema.JsonSchema7Type & {
|
|
142
|
+
$schema?: string | undefined;
|
|
143
|
+
definitions?: {
|
|
144
|
+
[key: string]: zod_to_json_schema.JsonSchema7Type;
|
|
145
|
+
} | undefined;
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
declare const index_CustomEventName: typeof CustomEventName;
|
|
149
|
+
type index_Mapping = Mapping;
|
|
150
|
+
declare const index_MappingSchema: typeof MappingSchema;
|
|
151
|
+
declare const index_PixelId: typeof PixelId;
|
|
152
|
+
type index_Settings = Settings;
|
|
153
|
+
declare const index_SettingsSchema: typeof SettingsSchema;
|
|
154
|
+
declare const index_StandardEventName: typeof StandardEventName;
|
|
155
|
+
declare const index_mapping: typeof mapping;
|
|
156
|
+
declare const index_settings: typeof settings;
|
|
157
|
+
declare namespace index {
|
|
158
|
+
export { index_CustomEventName as CustomEventName, type index_Mapping as Mapping, index_MappingSchema as MappingSchema, index_PixelId as PixelId, type index_Settings as Settings, index_SettingsSchema as SettingsSchema, index_StandardEventName as StandardEventName, index_mapping as mapping, index_settings as settings };
|
|
159
|
+
}
|
|
173
160
|
|
|
174
161
|
declare const destinationMeta: Destination;
|
|
175
162
|
|
|
176
|
-
export { index$
|
|
163
|
+
export { index$2 as DestinationMeta, destinationMeta as default, destinationMeta, index$1 as examples, index as schemas };
|