@walkeros/web-destination-meta 2.0.1 → 2.1.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/dev.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _walkeros_core_dev from '@walkeros/core/dev';
2
2
  import { z } from '@walkeros/core/dev';
3
- import { Mapping as Mapping$2 } from '@walkeros/core';
4
3
  import { DestinationWeb } from '@walkeros/web-core';
4
+ import { Flow } from '@walkeros/core';
5
5
 
6
6
  /**
7
7
  * Meta Pixel ID
@@ -66,20 +66,22 @@ declare const MappingSchema: z.ZodObject<{
66
66
  }>>;
67
67
  trackCustom: z.ZodOptional<z.ZodString>;
68
68
  }, z.core.$strip>;
69
- type Mapping$1 = z.infer<typeof MappingSchema>;
69
+ type Mapping = z.infer<typeof MappingSchema>;
70
70
 
71
71
  declare const settings: _walkeros_core_dev.JSONSchema;
72
- declare const mapping$1: _walkeros_core_dev.JSONSchema;
72
+ declare const mapping: _walkeros_core_dev.JSONSchema;
73
73
 
74
74
  declare const index$1_CustomEventName: typeof CustomEventName;
75
+ type index$1_Mapping = Mapping;
75
76
  declare const index$1_MappingSchema: typeof MappingSchema;
76
77
  declare const index$1_PixelId: typeof PixelId;
77
78
  type index$1_Settings = Settings;
78
79
  declare const index$1_SettingsSchema: typeof SettingsSchema;
79
80
  declare const index$1_StandardEventName: typeof StandardEventName;
81
+ declare const index$1_mapping: typeof mapping;
80
82
  declare const index$1_settings: typeof settings;
81
83
  declare namespace index$1 {
82
- export { index$1_CustomEventName as CustomEventName, type Mapping$1 as Mapping, index$1_MappingSchema as MappingSchema, index$1_PixelId as PixelId, type index$1_Settings as Settings, index$1_SettingsSchema as SettingsSchema, index$1_StandardEventName as StandardEventName, mapping$1 as mapping, index$1_settings as settings };
84
+ export { index$1_CustomEventName as CustomEventName, type index$1_Mapping as Mapping, index$1_MappingSchema as MappingSchema, index$1_PixelId as PixelId, type index$1_Settings as Settings, index$1_SettingsSchema as SettingsSchema, index$1_StandardEventName as StandardEventName, index$1_mapping as mapping, index$1_settings as settings };
83
85
  }
84
86
 
85
87
  declare global {
@@ -88,10 +90,6 @@ declare global {
88
90
  fbq?: facebook.Pixel.Event;
89
91
  }
90
92
  }
91
- interface Mapping {
92
- track?: StandardEventNames;
93
- trackCustom?: string;
94
- }
95
93
  interface Env extends DestinationWeb.Env {
96
94
  window: {
97
95
  fbq: facebook.Pixel.Event;
@@ -104,8 +102,6 @@ interface Env extends DestinationWeb.Env {
104
102
  };
105
103
  };
106
104
  }
107
- type Rule = Mapping$2.Rule<Mapping>;
108
- type StandardEventNames = 'PageView' | 'AddPaymentInfo' | 'AddToCart' | 'AddToWishlist' | 'CompleteRegistration' | 'Contact' | 'CustomizeProduct' | 'Donate' | 'FindLocation' | 'InitiateCheckout' | 'Lead' | 'Purchase' | 'Schedule' | 'Search' | 'StartTrial' | 'SubmitApplication' | 'Subscribe' | 'ViewContent' | string;
109
105
 
110
106
  declare const init: Env | undefined;
111
107
  declare const push: Env;
@@ -116,46 +112,25 @@ declare namespace env {
116
112
  export { env_init as init, env_push as push };
117
113
  }
118
114
 
119
- declare function Purchase$1(): unknown[];
120
- declare function AddToCart$1(): unknown[];
121
- declare function InitiateCheckout$1(): unknown[];
122
- declare function ViewContent$1(): unknown[];
123
-
124
- declare namespace events {
125
- export { AddToCart$1 as AddToCart, InitiateCheckout$1 as InitiateCheckout, Purchase$1 as Purchase, ViewContent$1 as ViewContent };
126
- }
127
-
128
- declare const Purchase: Rule;
129
- declare const AddToCart: Rule;
130
- declare const InitiateCheckout: Rule;
131
- declare const ViewContent: Rule;
132
- declare const config: {
133
- order: {
134
- complete: Rule;
135
- };
136
- product: {
137
- view: Rule;
138
- add: Rule;
139
- };
140
- cart: {
141
- view: Rule;
142
- };
143
- };
115
+ declare const purchase: Flow.StepExample;
116
+ declare const addToCart: Flow.StepExample;
117
+ declare const viewContent: Flow.StepExample;
118
+ declare const initiateCheckout: Flow.StepExample;
119
+ declare const pageView: Flow.StepExample;
144
120
 
145
- declare const mapping_AddToCart: typeof AddToCart;
146
- declare const mapping_InitiateCheckout: typeof InitiateCheckout;
147
- declare const mapping_Purchase: typeof Purchase;
148
- declare const mapping_ViewContent: typeof ViewContent;
149
- declare const mapping_config: typeof config;
150
- declare namespace mapping {
151
- export { mapping_AddToCart as AddToCart, mapping_InitiateCheckout as InitiateCheckout, mapping_Purchase as Purchase, mapping_ViewContent as ViewContent, mapping_config as config };
121
+ declare const step_addToCart: typeof addToCart;
122
+ declare const step_initiateCheckout: typeof initiateCheckout;
123
+ declare const step_pageView: typeof pageView;
124
+ declare const step_purchase: typeof purchase;
125
+ declare const step_viewContent: typeof viewContent;
126
+ declare namespace step {
127
+ export { step_addToCart as addToCart, step_initiateCheckout as initiateCheckout, step_pageView as pageView, step_purchase as purchase, step_viewContent as viewContent };
152
128
  }
153
129
 
154
130
  declare const index_env: typeof env;
155
- declare const index_events: typeof events;
156
- declare const index_mapping: typeof mapping;
131
+ declare const index_step: typeof step;
157
132
  declare namespace index {
158
- export { index_env as env, index_events as events, index_mapping as mapping };
133
+ export { index_env as env, index_step as step };
159
134
  }
160
135
 
161
136
  export { index as examples, index$1 as schemas };
package/dist/dev.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _walkeros_core_dev from '@walkeros/core/dev';
2
2
  import { z } from '@walkeros/core/dev';
3
- import { Mapping as Mapping$2 } from '@walkeros/core';
4
3
  import { DestinationWeb } from '@walkeros/web-core';
4
+ import { Flow } from '@walkeros/core';
5
5
 
6
6
  /**
7
7
  * Meta Pixel ID
@@ -66,20 +66,22 @@ declare const MappingSchema: z.ZodObject<{
66
66
  }>>;
67
67
  trackCustom: z.ZodOptional<z.ZodString>;
68
68
  }, z.core.$strip>;
69
- type Mapping$1 = z.infer<typeof MappingSchema>;
69
+ type Mapping = z.infer<typeof MappingSchema>;
70
70
 
71
71
  declare const settings: _walkeros_core_dev.JSONSchema;
72
- declare const mapping$1: _walkeros_core_dev.JSONSchema;
72
+ declare const mapping: _walkeros_core_dev.JSONSchema;
73
73
 
74
74
  declare const index$1_CustomEventName: typeof CustomEventName;
75
+ type index$1_Mapping = Mapping;
75
76
  declare const index$1_MappingSchema: typeof MappingSchema;
76
77
  declare const index$1_PixelId: typeof PixelId;
77
78
  type index$1_Settings = Settings;
78
79
  declare const index$1_SettingsSchema: typeof SettingsSchema;
79
80
  declare const index$1_StandardEventName: typeof StandardEventName;
81
+ declare const index$1_mapping: typeof mapping;
80
82
  declare const index$1_settings: typeof settings;
81
83
  declare namespace index$1 {
82
- export { index$1_CustomEventName as CustomEventName, type Mapping$1 as Mapping, index$1_MappingSchema as MappingSchema, index$1_PixelId as PixelId, type index$1_Settings as Settings, index$1_SettingsSchema as SettingsSchema, index$1_StandardEventName as StandardEventName, mapping$1 as mapping, index$1_settings as settings };
84
+ export { index$1_CustomEventName as CustomEventName, type index$1_Mapping as Mapping, index$1_MappingSchema as MappingSchema, index$1_PixelId as PixelId, type index$1_Settings as Settings, index$1_SettingsSchema as SettingsSchema, index$1_StandardEventName as StandardEventName, index$1_mapping as mapping, index$1_settings as settings };
83
85
  }
84
86
 
85
87
  declare global {
@@ -88,10 +90,6 @@ declare global {
88
90
  fbq?: facebook.Pixel.Event;
89
91
  }
90
92
  }
91
- interface Mapping {
92
- track?: StandardEventNames;
93
- trackCustom?: string;
94
- }
95
93
  interface Env extends DestinationWeb.Env {
96
94
  window: {
97
95
  fbq: facebook.Pixel.Event;
@@ -104,8 +102,6 @@ interface Env extends DestinationWeb.Env {
104
102
  };
105
103
  };
106
104
  }
107
- type Rule = Mapping$2.Rule<Mapping>;
108
- type StandardEventNames = 'PageView' | 'AddPaymentInfo' | 'AddToCart' | 'AddToWishlist' | 'CompleteRegistration' | 'Contact' | 'CustomizeProduct' | 'Donate' | 'FindLocation' | 'InitiateCheckout' | 'Lead' | 'Purchase' | 'Schedule' | 'Search' | 'StartTrial' | 'SubmitApplication' | 'Subscribe' | 'ViewContent' | string;
109
105
 
110
106
  declare const init: Env | undefined;
111
107
  declare const push: Env;
@@ -116,46 +112,25 @@ declare namespace env {
116
112
  export { env_init as init, env_push as push };
117
113
  }
118
114
 
119
- declare function Purchase$1(): unknown[];
120
- declare function AddToCart$1(): unknown[];
121
- declare function InitiateCheckout$1(): unknown[];
122
- declare function ViewContent$1(): unknown[];
123
-
124
- declare namespace events {
125
- export { AddToCart$1 as AddToCart, InitiateCheckout$1 as InitiateCheckout, Purchase$1 as Purchase, ViewContent$1 as ViewContent };
126
- }
127
-
128
- declare const Purchase: Rule;
129
- declare const AddToCart: Rule;
130
- declare const InitiateCheckout: Rule;
131
- declare const ViewContent: Rule;
132
- declare const config: {
133
- order: {
134
- complete: Rule;
135
- };
136
- product: {
137
- view: Rule;
138
- add: Rule;
139
- };
140
- cart: {
141
- view: Rule;
142
- };
143
- };
115
+ declare const purchase: Flow.StepExample;
116
+ declare const addToCart: Flow.StepExample;
117
+ declare const viewContent: Flow.StepExample;
118
+ declare const initiateCheckout: Flow.StepExample;
119
+ declare const pageView: Flow.StepExample;
144
120
 
145
- declare const mapping_AddToCart: typeof AddToCart;
146
- declare const mapping_InitiateCheckout: typeof InitiateCheckout;
147
- declare const mapping_Purchase: typeof Purchase;
148
- declare const mapping_ViewContent: typeof ViewContent;
149
- declare const mapping_config: typeof config;
150
- declare namespace mapping {
151
- export { mapping_AddToCart as AddToCart, mapping_InitiateCheckout as InitiateCheckout, mapping_Purchase as Purchase, mapping_ViewContent as ViewContent, mapping_config as config };
121
+ declare const step_addToCart: typeof addToCart;
122
+ declare const step_initiateCheckout: typeof initiateCheckout;
123
+ declare const step_pageView: typeof pageView;
124
+ declare const step_purchase: typeof purchase;
125
+ declare const step_viewContent: typeof viewContent;
126
+ declare namespace step {
127
+ export { step_addToCart as addToCart, step_initiateCheckout as initiateCheckout, step_pageView as pageView, step_purchase as purchase, step_viewContent as viewContent };
152
128
  }
153
129
 
154
130
  declare const index_env: typeof env;
155
- declare const index_events: typeof events;
156
- declare const index_mapping: typeof mapping;
131
+ declare const index_step: typeof step;
157
132
  declare namespace index {
158
- export { index_env as env, index_events as events, index_mapping as mapping };
133
+ export { index_env as env, index_step as step };
159
134
  }
160
135
 
161
136
  export { index as examples, index$1 as schemas };