@walkeros/web-destination-meta 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/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 {
@@ -8,10 +7,10 @@ declare global {
8
7
  fbq?: facebook.Pixel.Event;
9
8
  }
10
9
  }
11
- interface Settings$1 {
10
+ interface Settings {
12
11
  pixelId: string;
13
12
  }
14
- interface Mapping$1 {
13
+ interface Mapping {
15
14
  track?: StandardEventNames;
16
15
  trackCustom?: string;
17
16
  }
@@ -27,155 +26,26 @@ interface Env extends DestinationWeb.Env {
27
26
  };
28
27
  };
29
28
  }
30
- type Types = Destination$1.Types<Settings$1, Mapping$1, Env>;
29
+ type Types = Destination$1.Types<Settings, Mapping, Env>;
31
30
  type Destination = DestinationWeb.Destination<Types>;
32
31
  type Config = DestinationWeb.Config<Types>;
33
- type Rule = Mapping$2.Rule<Mapping$1>;
34
- type Rules = Mapping$2.Rules<Rule>;
32
+ type Rule = Mapping$1.Rule<Mapping>;
33
+ type Rules = Mapping$1.Rules<Rule>;
35
34
  type StandardEventNames = 'PageView' | 'AddPaymentInfo' | 'AddToCart' | 'AddToWishlist' | 'CompleteRegistration' | 'Contact' | 'CustomizeProduct' | 'Donate' | 'FindLocation' | 'InitiateCheckout' | 'Lead' | 'Purchase' | 'Schedule' | 'Search' | 'StartTrial' | 'SubmitApplication' | 'Subscribe' | 'ViewContent' | string;
36
35
 
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 };
46
- }
47
-
48
- declare const init: Env | undefined;
49
- declare const push: Env;
50
-
51
- declare const env_init: typeof init;
52
- declare const env_push: typeof push;
53
- declare namespace env {
54
- export { env_init as init, env_push as push };
55
- }
56
-
57
- declare function Purchase$1(): unknown[];
58
- declare function AddToCart$1(): unknown[];
59
- declare function InitiateCheckout$1(): unknown[];
60
- declare function ViewContent$1(): unknown[];
61
-
62
- declare namespace events {
63
- export { AddToCart$1 as AddToCart, InitiateCheckout$1 as InitiateCheckout, Purchase$1 as Purchase, ViewContent$1 as ViewContent };
64
- }
65
-
66
- declare const Purchase: Rule;
67
- declare const AddToCart: Rule;
68
- declare const InitiateCheckout: Rule;
69
- declare const ViewContent: Rule;
70
- declare const config: {
71
- order: {
72
- complete: Rule;
73
- };
74
- product: {
75
- view: Rule;
76
- add: Rule;
77
- };
78
- cart: {
79
- view: Rule;
80
- };
81
- };
82
-
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 };
90
- }
91
-
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 };
96
- }
97
-
98
- /**
99
- * Meta Pixel ID
100
- * Must be a numeric string (Facebook Pixel IDs are numeric)
101
- */
102
- declare const PixelId: z.ZodString;
103
- /**
104
- * Meta Pixel Standard Event Names
105
- * https://developers.facebook.com/docs/meta-pixel/reference
106
- */
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
- }>;
127
- /**
128
- * Custom Event Name
129
- * Any string for custom tracking
130
- */
131
- declare const CustomEventName: z.ZodString;
132
-
133
- declare const SettingsSchema: z.ZodObject<{
134
- pixelId: z.ZodString;
135
- }, z.core.$strip>;
136
- type Settings = z.infer<typeof SettingsSchema>;
137
-
138
- declare const MappingSchema: z.ZodObject<{
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
- }>>;
159
- trackCustom: z.ZodOptional<z.ZodString>;
160
- }, z.core.$strip>;
161
- type Mapping = z.infer<typeof MappingSchema>;
162
-
163
- declare const settings: _walkeros_core.JSONSchema;
164
- declare const mapping: _walkeros_core.JSONSchema;
165
-
166
- declare const index_CustomEventName: typeof CustomEventName;
36
+ type index_Config = Config;
37
+ type index_Destination = Destination;
38
+ type index_Env = Env;
167
39
  type index_Mapping = Mapping;
168
- declare const index_MappingSchema: typeof MappingSchema;
169
- declare const index_PixelId: typeof PixelId;
40
+ type index_Rule = Rule;
41
+ type index_Rules = Rules;
170
42
  type index_Settings = Settings;
171
- declare const index_SettingsSchema: typeof SettingsSchema;
172
- declare const index_StandardEventName: typeof StandardEventName;
173
- declare const index_mapping: typeof mapping;
174
- declare const index_settings: typeof settings;
43
+ type index_StandardEventNames = StandardEventNames;
44
+ type index_Types = Types;
175
45
  declare namespace index {
176
- 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 };
46
+ export type { index_Config as Config, index_Destination as Destination, index_Env as Env, index_Mapping as Mapping, index_Rule as Rule, index_Rules as Rules, index_Settings as Settings, index_StandardEventNames as StandardEventNames, index_Types as Types };
177
47
  }
178
48
 
179
49
  declare const destinationMeta: Destination;
180
50
 
181
- export { index$2 as DestinationMeta, destinationMeta as default, destinationMeta, index$1 as examples, index as schemas };
51
+ export { index as DestinationMeta, destinationMeta as default, destinationMeta };
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 {
@@ -8,10 +7,10 @@ declare global {
8
7
  fbq?: facebook.Pixel.Event;
9
8
  }
10
9
  }
11
- interface Settings$1 {
10
+ interface Settings {
12
11
  pixelId: string;
13
12
  }
14
- interface Mapping$1 {
13
+ interface Mapping {
15
14
  track?: StandardEventNames;
16
15
  trackCustom?: string;
17
16
  }
@@ -27,155 +26,26 @@ interface Env extends DestinationWeb.Env {
27
26
  };
28
27
  };
29
28
  }
30
- type Types = Destination$1.Types<Settings$1, Mapping$1, Env>;
29
+ type Types = Destination$1.Types<Settings, Mapping, Env>;
31
30
  type Destination = DestinationWeb.Destination<Types>;
32
31
  type Config = DestinationWeb.Config<Types>;
33
- type Rule = Mapping$2.Rule<Mapping$1>;
34
- type Rules = Mapping$2.Rules<Rule>;
32
+ type Rule = Mapping$1.Rule<Mapping>;
33
+ type Rules = Mapping$1.Rules<Rule>;
35
34
  type StandardEventNames = 'PageView' | 'AddPaymentInfo' | 'AddToCart' | 'AddToWishlist' | 'CompleteRegistration' | 'Contact' | 'CustomizeProduct' | 'Donate' | 'FindLocation' | 'InitiateCheckout' | 'Lead' | 'Purchase' | 'Schedule' | 'Search' | 'StartTrial' | 'SubmitApplication' | 'Subscribe' | 'ViewContent' | string;
36
35
 
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 };
46
- }
47
-
48
- declare const init: Env | undefined;
49
- declare const push: Env;
50
-
51
- declare const env_init: typeof init;
52
- declare const env_push: typeof push;
53
- declare namespace env {
54
- export { env_init as init, env_push as push };
55
- }
56
-
57
- declare function Purchase$1(): unknown[];
58
- declare function AddToCart$1(): unknown[];
59
- declare function InitiateCheckout$1(): unknown[];
60
- declare function ViewContent$1(): unknown[];
61
-
62
- declare namespace events {
63
- export { AddToCart$1 as AddToCart, InitiateCheckout$1 as InitiateCheckout, Purchase$1 as Purchase, ViewContent$1 as ViewContent };
64
- }
65
-
66
- declare const Purchase: Rule;
67
- declare const AddToCart: Rule;
68
- declare const InitiateCheckout: Rule;
69
- declare const ViewContent: Rule;
70
- declare const config: {
71
- order: {
72
- complete: Rule;
73
- };
74
- product: {
75
- view: Rule;
76
- add: Rule;
77
- };
78
- cart: {
79
- view: Rule;
80
- };
81
- };
82
-
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 };
90
- }
91
-
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 };
96
- }
97
-
98
- /**
99
- * Meta Pixel ID
100
- * Must be a numeric string (Facebook Pixel IDs are numeric)
101
- */
102
- declare const PixelId: z.ZodString;
103
- /**
104
- * Meta Pixel Standard Event Names
105
- * https://developers.facebook.com/docs/meta-pixel/reference
106
- */
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
- }>;
127
- /**
128
- * Custom Event Name
129
- * Any string for custom tracking
130
- */
131
- declare const CustomEventName: z.ZodString;
132
-
133
- declare const SettingsSchema: z.ZodObject<{
134
- pixelId: z.ZodString;
135
- }, z.core.$strip>;
136
- type Settings = z.infer<typeof SettingsSchema>;
137
-
138
- declare const MappingSchema: z.ZodObject<{
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
- }>>;
159
- trackCustom: z.ZodOptional<z.ZodString>;
160
- }, z.core.$strip>;
161
- type Mapping = z.infer<typeof MappingSchema>;
162
-
163
- declare const settings: _walkeros_core.JSONSchema;
164
- declare const mapping: _walkeros_core.JSONSchema;
165
-
166
- declare const index_CustomEventName: typeof CustomEventName;
36
+ type index_Config = Config;
37
+ type index_Destination = Destination;
38
+ type index_Env = Env;
167
39
  type index_Mapping = Mapping;
168
- declare const index_MappingSchema: typeof MappingSchema;
169
- declare const index_PixelId: typeof PixelId;
40
+ type index_Rule = Rule;
41
+ type index_Rules = Rules;
170
42
  type index_Settings = Settings;
171
- declare const index_SettingsSchema: typeof SettingsSchema;
172
- declare const index_StandardEventName: typeof StandardEventName;
173
- declare const index_mapping: typeof mapping;
174
- declare const index_settings: typeof settings;
43
+ type index_StandardEventNames = StandardEventNames;
44
+ type index_Types = Types;
175
45
  declare namespace index {
176
- 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 };
46
+ export type { index_Config as Config, index_Destination as Destination, index_Env as Env, index_Mapping as Mapping, index_Rule as Rule, index_Rules as Rules, index_Settings as Settings, index_StandardEventNames as StandardEventNames, index_Types as Types };
177
47
  }
178
48
 
179
49
  declare const destinationMeta: Destination;
180
50
 
181
- export { index$2 as DestinationMeta, destinationMeta as default, destinationMeta, index$1 as examples, index as schemas };
51
+ export { index as DestinationMeta, destinationMeta as default, destinationMeta };