@walkeros/web-destination-meta 0.3.0 → 0.3.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/examples/index.js +12564 -5153
- package/dist/examples/index.mjs +12564 -5153
- package/dist/index.browser.js +1 -1
- package/dist/index.d.mts +45 -27
- package/dist/index.d.ts +45 -27
- 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,6 +1,6 @@
|
|
|
1
|
+
import * as _walkeros_core from '@walkeros/core';
|
|
1
2
|
import { Destination as Destination$1, Mapping as Mapping$2, z } from '@walkeros/core';
|
|
2
3
|
import { DestinationWeb } from '@walkeros/web-core';
|
|
3
|
-
import * as zod_to_json_schema from 'zod-to-json-schema';
|
|
4
4
|
|
|
5
5
|
declare global {
|
|
6
6
|
interface Window {
|
|
@@ -104,7 +104,26 @@ declare const PixelId: z.ZodString;
|
|
|
104
104
|
* Meta Pixel Standard Event Names
|
|
105
105
|
* https://developers.facebook.com/docs/meta-pixel/reference
|
|
106
106
|
*/
|
|
107
|
-
declare const StandardEventName: z.ZodEnum<
|
|
107
|
+
declare const StandardEventName: z.ZodEnum<{
|
|
108
|
+
PageView: "PageView";
|
|
109
|
+
AddPaymentInfo: "AddPaymentInfo";
|
|
110
|
+
AddToCart: "AddToCart";
|
|
111
|
+
AddToWishlist: "AddToWishlist";
|
|
112
|
+
CompleteRegistration: "CompleteRegistration";
|
|
113
|
+
Contact: "Contact";
|
|
114
|
+
CustomizeProduct: "CustomizeProduct";
|
|
115
|
+
Donate: "Donate";
|
|
116
|
+
FindLocation: "FindLocation";
|
|
117
|
+
InitiateCheckout: "InitiateCheckout";
|
|
118
|
+
Lead: "Lead";
|
|
119
|
+
Purchase: "Purchase";
|
|
120
|
+
Schedule: "Schedule";
|
|
121
|
+
Search: "Search";
|
|
122
|
+
StartTrial: "StartTrial";
|
|
123
|
+
SubmitApplication: "SubmitApplication";
|
|
124
|
+
Subscribe: "Subscribe";
|
|
125
|
+
ViewContent: "ViewContent";
|
|
126
|
+
}>;
|
|
108
127
|
/**
|
|
109
128
|
* Custom Event Name
|
|
110
129
|
* Any string for custom tracking
|
|
@@ -113,37 +132,36 @@ declare const CustomEventName: z.ZodString;
|
|
|
113
132
|
|
|
114
133
|
declare const SettingsSchema: z.ZodObject<{
|
|
115
134
|
pixelId: z.ZodString;
|
|
116
|
-
},
|
|
117
|
-
pixelId: string;
|
|
118
|
-
}, {
|
|
119
|
-
pixelId: string;
|
|
120
|
-
}>;
|
|
135
|
+
}, z.core.$strip>;
|
|
121
136
|
type Settings = z.infer<typeof SettingsSchema>;
|
|
122
137
|
|
|
123
138
|
declare const MappingSchema: z.ZodObject<{
|
|
124
|
-
track: z.ZodOptional<z.ZodEnum<
|
|
139
|
+
track: z.ZodOptional<z.ZodEnum<{
|
|
140
|
+
PageView: "PageView";
|
|
141
|
+
AddPaymentInfo: "AddPaymentInfo";
|
|
142
|
+
AddToCart: "AddToCart";
|
|
143
|
+
AddToWishlist: "AddToWishlist";
|
|
144
|
+
CompleteRegistration: "CompleteRegistration";
|
|
145
|
+
Contact: "Contact";
|
|
146
|
+
CustomizeProduct: "CustomizeProduct";
|
|
147
|
+
Donate: "Donate";
|
|
148
|
+
FindLocation: "FindLocation";
|
|
149
|
+
InitiateCheckout: "InitiateCheckout";
|
|
150
|
+
Lead: "Lead";
|
|
151
|
+
Purchase: "Purchase";
|
|
152
|
+
Schedule: "Schedule";
|
|
153
|
+
Search: "Search";
|
|
154
|
+
StartTrial: "StartTrial";
|
|
155
|
+
SubmitApplication: "SubmitApplication";
|
|
156
|
+
Subscribe: "Subscribe";
|
|
157
|
+
ViewContent: "ViewContent";
|
|
158
|
+
}>>;
|
|
125
159
|
trackCustom: z.ZodOptional<z.ZodString>;
|
|
126
|
-
},
|
|
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
|
-
}>;
|
|
160
|
+
}, z.core.$strip>;
|
|
133
161
|
type Mapping = z.infer<typeof MappingSchema>;
|
|
134
162
|
|
|
135
|
-
declare const settings:
|
|
136
|
-
|
|
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
|
-
};
|
|
163
|
+
declare const settings: _walkeros_core.JSONSchema;
|
|
164
|
+
declare const mapping: _walkeros_core.JSONSchema;
|
|
147
165
|
|
|
148
166
|
declare const index_CustomEventName: typeof CustomEventName;
|
|
149
167
|
type index_Mapping = Mapping;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as _walkeros_core from '@walkeros/core';
|
|
1
2
|
import { Destination as Destination$1, Mapping as Mapping$2, z } from '@walkeros/core';
|
|
2
3
|
import { DestinationWeb } from '@walkeros/web-core';
|
|
3
|
-
import * as zod_to_json_schema from 'zod-to-json-schema';
|
|
4
4
|
|
|
5
5
|
declare global {
|
|
6
6
|
interface Window {
|
|
@@ -104,7 +104,26 @@ declare const PixelId: z.ZodString;
|
|
|
104
104
|
* Meta Pixel Standard Event Names
|
|
105
105
|
* https://developers.facebook.com/docs/meta-pixel/reference
|
|
106
106
|
*/
|
|
107
|
-
declare const StandardEventName: z.ZodEnum<
|
|
107
|
+
declare const StandardEventName: z.ZodEnum<{
|
|
108
|
+
PageView: "PageView";
|
|
109
|
+
AddPaymentInfo: "AddPaymentInfo";
|
|
110
|
+
AddToCart: "AddToCart";
|
|
111
|
+
AddToWishlist: "AddToWishlist";
|
|
112
|
+
CompleteRegistration: "CompleteRegistration";
|
|
113
|
+
Contact: "Contact";
|
|
114
|
+
CustomizeProduct: "CustomizeProduct";
|
|
115
|
+
Donate: "Donate";
|
|
116
|
+
FindLocation: "FindLocation";
|
|
117
|
+
InitiateCheckout: "InitiateCheckout";
|
|
118
|
+
Lead: "Lead";
|
|
119
|
+
Purchase: "Purchase";
|
|
120
|
+
Schedule: "Schedule";
|
|
121
|
+
Search: "Search";
|
|
122
|
+
StartTrial: "StartTrial";
|
|
123
|
+
SubmitApplication: "SubmitApplication";
|
|
124
|
+
Subscribe: "Subscribe";
|
|
125
|
+
ViewContent: "ViewContent";
|
|
126
|
+
}>;
|
|
108
127
|
/**
|
|
109
128
|
* Custom Event Name
|
|
110
129
|
* Any string for custom tracking
|
|
@@ -113,37 +132,36 @@ declare const CustomEventName: z.ZodString;
|
|
|
113
132
|
|
|
114
133
|
declare const SettingsSchema: z.ZodObject<{
|
|
115
134
|
pixelId: z.ZodString;
|
|
116
|
-
},
|
|
117
|
-
pixelId: string;
|
|
118
|
-
}, {
|
|
119
|
-
pixelId: string;
|
|
120
|
-
}>;
|
|
135
|
+
}, z.core.$strip>;
|
|
121
136
|
type Settings = z.infer<typeof SettingsSchema>;
|
|
122
137
|
|
|
123
138
|
declare const MappingSchema: z.ZodObject<{
|
|
124
|
-
track: z.ZodOptional<z.ZodEnum<
|
|
139
|
+
track: z.ZodOptional<z.ZodEnum<{
|
|
140
|
+
PageView: "PageView";
|
|
141
|
+
AddPaymentInfo: "AddPaymentInfo";
|
|
142
|
+
AddToCart: "AddToCart";
|
|
143
|
+
AddToWishlist: "AddToWishlist";
|
|
144
|
+
CompleteRegistration: "CompleteRegistration";
|
|
145
|
+
Contact: "Contact";
|
|
146
|
+
CustomizeProduct: "CustomizeProduct";
|
|
147
|
+
Donate: "Donate";
|
|
148
|
+
FindLocation: "FindLocation";
|
|
149
|
+
InitiateCheckout: "InitiateCheckout";
|
|
150
|
+
Lead: "Lead";
|
|
151
|
+
Purchase: "Purchase";
|
|
152
|
+
Schedule: "Schedule";
|
|
153
|
+
Search: "Search";
|
|
154
|
+
StartTrial: "StartTrial";
|
|
155
|
+
SubmitApplication: "SubmitApplication";
|
|
156
|
+
Subscribe: "Subscribe";
|
|
157
|
+
ViewContent: "ViewContent";
|
|
158
|
+
}>>;
|
|
125
159
|
trackCustom: z.ZodOptional<z.ZodString>;
|
|
126
|
-
},
|
|
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
|
-
}>;
|
|
160
|
+
}, z.core.$strip>;
|
|
133
161
|
type Mapping = z.infer<typeof MappingSchema>;
|
|
134
162
|
|
|
135
|
-
declare const settings:
|
|
136
|
-
|
|
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
|
-
};
|
|
163
|
+
declare const settings: _walkeros_core.JSONSchema;
|
|
164
|
+
declare const mapping: _walkeros_core.JSONSchema;
|
|
147
165
|
|
|
148
166
|
declare const index_CustomEventName: typeof CustomEventName;
|
|
149
167
|
type index_Mapping = Mapping;
|