@walkeros/server-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.
@@ -1,277 +1,9 @@
1
- import { Mapping as Mapping$1 } from '@walkeros/core';
2
1
  import { DestinationServer, sendServer } from '@walkeros/server-core';
2
+ import { Flow } from '@walkeros/core';
3
3
 
4
- interface Settings {
5
- accessToken: string;
6
- pixelId: string;
7
- action_source?: ActionSource;
8
- doNotHash?: string[];
9
- test_event_code?: string;
10
- url?: string;
11
- user_data?: Mapping$1.Map;
12
- }
13
- interface Mapping {
14
- }
15
4
  interface Env extends DestinationServer.Env {
16
5
  sendServer?: typeof sendServer;
17
6
  }
18
- type Rule = Mapping$1.Rule<Mapping>;
19
- interface BodyParameters {
20
- data: Array<ServerEventParameters>;
21
- test_event_code?: string;
22
- }
23
- /**
24
- * Represents the top‑level parameters for a server event sent via Meta's Conversions API.
25
- * https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/server-event
26
- */
27
- interface ServerEventParameters extends StandardParameters {
28
- /** The event name or custom event identifier. Required for deduplication. */
29
- event_name: EventName;
30
- /** Unix timestamp (in seconds) when the event actually occurred. GMT timezone. */
31
- event_time: number;
32
- /** Map of customer information for matching (emails, phone, etc.). */
33
- user_data: CustomerInformationParameters;
34
- /** Additional business data about the event. */
35
- custom_data?: Record<string, unknown>;
36
- /** URL of the page where the event occurred. */
37
- event_source_url?: string;
38
- /** If true, exclude this event from ads optimization (only attribution). */
39
- opt_out?: boolean;
40
- /** Unique ID for deduplication across Pixel and CAPI. */
41
- event_id?: string;
42
- /** Source of the event (e.g., website, app). */
43
- action_source: ActionSource;
44
- /** Processing options (e.g., ['LDU'] for CCPA limited data use). */
45
- data_processing_options?: DataProcessingOption[];
46
- /** Country code for data processing option (1 = USA, 0 = auto‑geolocate). */
47
- data_processing_options_country?: number;
48
- /** State code for data processing option (1000 = California, 0 = auto). */
49
- data_processing_options_state?: number;
50
- /** App‑specific data (required if action_source is 'app'). */
51
- app_data?: AppData;
52
- /** HTTP referrer header of the event. */
53
- referrer_url?: string;
54
- /** Metadata to link delayed events to past acquisition events. */
55
- original_event_data?: OriginalEventDataParameters;
56
- /** User segment for more context about the customer's relationship. */
57
- customer_segmentation?: CustomerSegmentation;
58
- }
59
- type EventName = 'AddPaymentInfo' | 'AddToCart' | 'AddToWishlist' | 'CompleteRegistration' | 'Contact' | 'CustomizeProduct' | 'Donate' | 'FindLocation' | 'InitiateCheckout' | 'Lead' | 'Purchase' | 'Schedule' | 'Search' | 'StartTrial' | 'SubmitApplication' | 'Subscribe' | 'ViewContent' | string;
60
- type ActionSource = 'email' | 'website' | 'app' | 'phone_call' | 'chat' | 'physical_store' | 'system_generated' | 'business_messaging' | 'other';
61
- type DataProcessingOption = 'LDU';
62
- type CustomerSegmentation = 'new_customer_to_business' | 'new_customer_to_business_line' | 'new_customer_to_product_area' | 'new_customer_to_medium' | 'existing_customer_to_business' | 'existing_customer_to_business_line' | 'existing_customer_to_product_area' | 'existing_customer_to_medium' | 'customer_in_loyalty_program';
63
- /** Extended device info for app events (Android version 'a2', iOS 'i2') */
64
- interface AppData {
65
- /**
66
- * Comma-separated array of strings with fixed order:
67
- * [sdk_version, os_version, device_model, device_brand,
68
- * screen_width, screen_height, ...]
69
- */
70
- extinfo: string[];
71
- }
72
- interface CustomerInformationParameters {
73
- /** Email(s), SHA-256 hashed, lowercase and trimmed */
74
- em?: string | string[];
75
- /** Phone number(s), SHA-256 hashed, E.164 format (no leading 0s or symbols) */
76
- ph?: string | string[];
77
- /** First name(s), SHA-256 hashed, lowercase */
78
- fn?: string | string[];
79
- /** Last name(s), SHA-256 hashed, lowercase */
80
- ln?: string | string[];
81
- /** Date(s) of birth in YYYYMMDD, SHA-256 hashed */
82
- db?: string | string[];
83
- /** Gender(s) in lowercase single letter ("m", "f", etc.), SHA-256 hashed */
84
- ge?: string | string[];
85
- /** City name(s), SHA-256 hashed, lowercase */
86
- ct?: string | string[];
87
- /** State abbreviation(s), SHA-256 hashed, lowercase (e.g., "ca", "ny") */
88
- st?: string | string[];
89
- /** ZIP or postal code(s), SHA-256 hashed, lowercase */
90
- zp?: string | string[];
91
- /** Country code(s), SHA-256 hashed, lowercase (ISO 3166-1 alpha-2) */
92
- country?: string | string[];
93
- /** External IDs, unique per user. SHA-256 hash recommended */
94
- external_id?: string | string[];
95
- /** IPv4 or IPv6 address of client. Do NOT hash. */
96
- client_ip_address?: string;
97
- /** User agent string from browser. Do NOT hash. */
98
- client_user_agent?: string;
99
- /** fbclid parameter value from the URL. Do NOT hash. */
100
- fbclid?: string;
101
- /** Facebook click ID (_fbc cookie). Do NOT hash. */
102
- fbc?: string;
103
- /** Facebook browser ID (_fbp cookie). Do NOT hash. */
104
- fbp?: string;
105
- /** Subscription ID for the transaction. Do NOT hash. */
106
- subscription_id?: string;
107
- /** Facebook login ID (App-Scoped ID). Do NOT hash. */
108
- fb_login_id?: number;
109
- /** Meta Lead Ad lead ID. Do NOT hash. */
110
- lead_id?: number;
111
- /** Anonymous install ID. App events only. Do NOT hash. */
112
- anon_id?: string;
113
- /** Mobile advertiser ID (GAID/IDFA). Do NOT hash. */
114
- madid?: string;
115
- /** Facebook Page ID. Do NOT hash. */
116
- page_id?: string;
117
- /** Messenger Page-scoped user ID. Do NOT hash. */
118
- page_scoped_user_id?: string;
119
- /** Click to WhatsApp ad click ID. Do NOT hash. */
120
- ctwa_clid?: string;
121
- /** Instagram business account ID. Do NOT hash. */
122
- ig_account_id?: string;
123
- /** Instagram-scoped user ID. Do NOT hash. */
124
- ig_sid?: string;
125
- }
126
- interface StandardParameters {
127
- availability?: string;
128
- body_style?: string;
129
- checkin_date?: string;
130
- city?: string;
131
- condition_of_vehicle?: string;
132
- content_ids?: string[];
133
- content_type?: 'product' | 'product_group' | string;
134
- contents?: Array<{
135
- id: string;
136
- quantity?: number;
137
- item_price?: number;
138
- delivery_category?: string;
139
- }>;
140
- country?: string;
141
- currency?: string;
142
- delivery_category?: 'in_store' | 'curbside' | 'home_delivery' | string;
143
- departing_arrival_date?: string;
144
- departing_departure_date?: string;
145
- destination_airport?: string;
146
- destination_ids?: string[];
147
- dma_code?: string;
148
- drivetrain?: string;
149
- exterior_color?: string;
150
- fuel_type?: string;
151
- hotel_score?: number;
152
- interior_color?: string;
153
- lead_event_source?: string;
154
- lease_end_date?: string;
155
- lease_start_date?: string;
156
- listing_type?: string;
157
- make?: string;
158
- 'mileage.unit'?: string;
159
- 'mileage.value'?: number;
160
- model?: string;
161
- neighborhood?: string;
162
- net_revenue?: number;
163
- num_adults?: number;
164
- num_children?: number;
165
- num_infants?: number;
166
- num_items?: number;
167
- order_id?: string;
168
- origin_airport?: string;
169
- postal_code?: string;
170
- predicted_ltv?: number;
171
- preferred_baths_range?: string;
172
- preferred_beds_range?: string;
173
- preferred_neighborhoods?: string[];
174
- preferred_num_stops?: number;
175
- preferred_price_range?: string;
176
- preferred_star_ratings?: [number, number];
177
- price?: string;
178
- product_catalog_id?: string;
179
- property_type?: string;
180
- region?: string;
181
- returning_arrival_date?: string;
182
- returning_departure_date?: string;
183
- search_string?: string;
184
- state_of_vehicle?: string;
185
- suggested_destinations?: string[];
186
- suggested_home_listings?: string[];
187
- suggested_hotels?: string[];
188
- suggested_jobs?: string[];
189
- suggested_local_service_businesses?: string[];
190
- suggested_location_based_items?: string[];
191
- suggested_vehicles?: string[];
192
- transmission?: string;
193
- travel_class?: string;
194
- travel_end?: string;
195
- travel_start?: string;
196
- trim?: string;
197
- fb_availability?: string;
198
- fb_body_style?: string;
199
- fb_checkin_date?: string;
200
- fb_city?: string;
201
- fb_condition_of_vehicle?: string;
202
- fb_content_ids?: string[];
203
- fb_content_type?: string;
204
- fb_contents?: Array<{
205
- id: string;
206
- quantity?: number;
207
- item_price?: number;
208
- }>;
209
- fb_country?: string;
210
- fb_currency?: string;
211
- fb_delivery_category?: string;
212
- fb_departing_arrival_date?: string;
213
- fb_departing_departure_date?: string;
214
- fb_destination_airport?: string;
215
- fb_destination_ids?: string[];
216
- fb_dma_code?: string;
217
- fb_drivetrain?: string;
218
- fb_exterior_color?: string;
219
- fb_fuel_type?: string;
220
- fb_hotel_score?: number;
221
- fb_interior_color?: string;
222
- fb_lease_end_date?: string;
223
- fb_lease_start_date?: string;
224
- fb_listing_type?: string;
225
- fb_make?: string;
226
- 'fb_mileage.unit'?: string;
227
- 'fb_mileage.value'?: number;
228
- fb_model?: string;
229
- fb_neighborhood?: string;
230
- fb_num_adults?: number;
231
- fb_num_children?: number;
232
- fb_num_infants?: number;
233
- fb_num_items?: number;
234
- fb_order_id?: string;
235
- fb_origin_airport?: string;
236
- fb_postal_code?: string;
237
- fb_predicted_ltv?: number;
238
- fb_preferred_baths_range?: string;
239
- fb_preferred_beds_range?: string;
240
- fb_preferred_neighborhoods?: string[];
241
- fb_preferred_num_stops?: number;
242
- fb_preferred_price_range?: string;
243
- fb_preferred_star_ratings?: [number, number];
244
- fb_price?: string;
245
- fb_product_catalog_id?: string;
246
- fb_property_type?: string;
247
- fb_region?: string;
248
- fb_returning_arrival_date?: string;
249
- fb_returning_departure_date?: string;
250
- fb_search_string?: string;
251
- fb_state_of_vehicle?: string;
252
- fb_suggested_destinations?: string[];
253
- fb_suggested_home_listings?: string[];
254
- fb_suggested_hotels?: string[];
255
- fb_suggested_jobs?: string[];
256
- fb_suggested_local_service_businesses?: string[];
257
- fb_suggested_location_based_items?: string[];
258
- fb_suggested_vehicles?: string[];
259
- fb_transmission?: string;
260
- fb_travel_class?: string;
261
- fb_travel_end?: string;
262
- fb_travel_start?: string;
263
- user_bucket?: string;
264
- value?: number;
265
- vin?: string;
266
- year?: number;
267
- item_number?: string;
268
- }
269
- interface OriginalEventDataParameters {
270
- event_name?: EventName;
271
- event_time?: number;
272
- order_id?: number;
273
- event_id?: string;
274
- }
275
7
 
276
8
  /**
277
9
  * Standard mock environment for push operations
@@ -288,25 +20,13 @@ declare namespace env {
288
20
  export { env_push as push, env_simulation as simulation };
289
21
  }
290
22
 
291
- declare function Purchase$1(): BodyParameters;
292
-
293
- declare namespace events {
294
- export { Purchase$1 as Purchase };
295
- }
296
-
297
- declare const InitUserData: Settings;
298
- declare const Purchase: Rule;
299
- declare const config: {
300
- order: {
301
- complete: Rule;
302
- };
303
- };
23
+ declare const purchase: Flow.StepExample;
24
+ declare const lead: Flow.StepExample;
304
25
 
305
- declare const mapping_InitUserData: typeof InitUserData;
306
- declare const mapping_Purchase: typeof Purchase;
307
- declare const mapping_config: typeof config;
308
- declare namespace mapping {
309
- export { mapping_InitUserData as InitUserData, mapping_Purchase as Purchase, mapping_config as config };
26
+ declare const step_lead: typeof lead;
27
+ declare const step_purchase: typeof purchase;
28
+ declare namespace step {
29
+ export { step_lead as lead, step_purchase as purchase };
310
30
  }
311
31
 
312
- export { env, events, mapping };
32
+ export { env, step };
@@ -1,277 +1,9 @@
1
- import { Mapping as Mapping$1 } from '@walkeros/core';
2
1
  import { DestinationServer, sendServer } from '@walkeros/server-core';
2
+ import { Flow } from '@walkeros/core';
3
3
 
4
- interface Settings {
5
- accessToken: string;
6
- pixelId: string;
7
- action_source?: ActionSource;
8
- doNotHash?: string[];
9
- test_event_code?: string;
10
- url?: string;
11
- user_data?: Mapping$1.Map;
12
- }
13
- interface Mapping {
14
- }
15
4
  interface Env extends DestinationServer.Env {
16
5
  sendServer?: typeof sendServer;
17
6
  }
18
- type Rule = Mapping$1.Rule<Mapping>;
19
- interface BodyParameters {
20
- data: Array<ServerEventParameters>;
21
- test_event_code?: string;
22
- }
23
- /**
24
- * Represents the top‑level parameters for a server event sent via Meta's Conversions API.
25
- * https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/server-event
26
- */
27
- interface ServerEventParameters extends StandardParameters {
28
- /** The event name or custom event identifier. Required for deduplication. */
29
- event_name: EventName;
30
- /** Unix timestamp (in seconds) when the event actually occurred. GMT timezone. */
31
- event_time: number;
32
- /** Map of customer information for matching (emails, phone, etc.). */
33
- user_data: CustomerInformationParameters;
34
- /** Additional business data about the event. */
35
- custom_data?: Record<string, unknown>;
36
- /** URL of the page where the event occurred. */
37
- event_source_url?: string;
38
- /** If true, exclude this event from ads optimization (only attribution). */
39
- opt_out?: boolean;
40
- /** Unique ID for deduplication across Pixel and CAPI. */
41
- event_id?: string;
42
- /** Source of the event (e.g., website, app). */
43
- action_source: ActionSource;
44
- /** Processing options (e.g., ['LDU'] for CCPA limited data use). */
45
- data_processing_options?: DataProcessingOption[];
46
- /** Country code for data processing option (1 = USA, 0 = auto‑geolocate). */
47
- data_processing_options_country?: number;
48
- /** State code for data processing option (1000 = California, 0 = auto). */
49
- data_processing_options_state?: number;
50
- /** App‑specific data (required if action_source is 'app'). */
51
- app_data?: AppData;
52
- /** HTTP referrer header of the event. */
53
- referrer_url?: string;
54
- /** Metadata to link delayed events to past acquisition events. */
55
- original_event_data?: OriginalEventDataParameters;
56
- /** User segment for more context about the customer's relationship. */
57
- customer_segmentation?: CustomerSegmentation;
58
- }
59
- type EventName = 'AddPaymentInfo' | 'AddToCart' | 'AddToWishlist' | 'CompleteRegistration' | 'Contact' | 'CustomizeProduct' | 'Donate' | 'FindLocation' | 'InitiateCheckout' | 'Lead' | 'Purchase' | 'Schedule' | 'Search' | 'StartTrial' | 'SubmitApplication' | 'Subscribe' | 'ViewContent' | string;
60
- type ActionSource = 'email' | 'website' | 'app' | 'phone_call' | 'chat' | 'physical_store' | 'system_generated' | 'business_messaging' | 'other';
61
- type DataProcessingOption = 'LDU';
62
- type CustomerSegmentation = 'new_customer_to_business' | 'new_customer_to_business_line' | 'new_customer_to_product_area' | 'new_customer_to_medium' | 'existing_customer_to_business' | 'existing_customer_to_business_line' | 'existing_customer_to_product_area' | 'existing_customer_to_medium' | 'customer_in_loyalty_program';
63
- /** Extended device info for app events (Android version 'a2', iOS 'i2') */
64
- interface AppData {
65
- /**
66
- * Comma-separated array of strings with fixed order:
67
- * [sdk_version, os_version, device_model, device_brand,
68
- * screen_width, screen_height, ...]
69
- */
70
- extinfo: string[];
71
- }
72
- interface CustomerInformationParameters {
73
- /** Email(s), SHA-256 hashed, lowercase and trimmed */
74
- em?: string | string[];
75
- /** Phone number(s), SHA-256 hashed, E.164 format (no leading 0s or symbols) */
76
- ph?: string | string[];
77
- /** First name(s), SHA-256 hashed, lowercase */
78
- fn?: string | string[];
79
- /** Last name(s), SHA-256 hashed, lowercase */
80
- ln?: string | string[];
81
- /** Date(s) of birth in YYYYMMDD, SHA-256 hashed */
82
- db?: string | string[];
83
- /** Gender(s) in lowercase single letter ("m", "f", etc.), SHA-256 hashed */
84
- ge?: string | string[];
85
- /** City name(s), SHA-256 hashed, lowercase */
86
- ct?: string | string[];
87
- /** State abbreviation(s), SHA-256 hashed, lowercase (e.g., "ca", "ny") */
88
- st?: string | string[];
89
- /** ZIP or postal code(s), SHA-256 hashed, lowercase */
90
- zp?: string | string[];
91
- /** Country code(s), SHA-256 hashed, lowercase (ISO 3166-1 alpha-2) */
92
- country?: string | string[];
93
- /** External IDs, unique per user. SHA-256 hash recommended */
94
- external_id?: string | string[];
95
- /** IPv4 or IPv6 address of client. Do NOT hash. */
96
- client_ip_address?: string;
97
- /** User agent string from browser. Do NOT hash. */
98
- client_user_agent?: string;
99
- /** fbclid parameter value from the URL. Do NOT hash. */
100
- fbclid?: string;
101
- /** Facebook click ID (_fbc cookie). Do NOT hash. */
102
- fbc?: string;
103
- /** Facebook browser ID (_fbp cookie). Do NOT hash. */
104
- fbp?: string;
105
- /** Subscription ID for the transaction. Do NOT hash. */
106
- subscription_id?: string;
107
- /** Facebook login ID (App-Scoped ID). Do NOT hash. */
108
- fb_login_id?: number;
109
- /** Meta Lead Ad lead ID. Do NOT hash. */
110
- lead_id?: number;
111
- /** Anonymous install ID. App events only. Do NOT hash. */
112
- anon_id?: string;
113
- /** Mobile advertiser ID (GAID/IDFA). Do NOT hash. */
114
- madid?: string;
115
- /** Facebook Page ID. Do NOT hash. */
116
- page_id?: string;
117
- /** Messenger Page-scoped user ID. Do NOT hash. */
118
- page_scoped_user_id?: string;
119
- /** Click to WhatsApp ad click ID. Do NOT hash. */
120
- ctwa_clid?: string;
121
- /** Instagram business account ID. Do NOT hash. */
122
- ig_account_id?: string;
123
- /** Instagram-scoped user ID. Do NOT hash. */
124
- ig_sid?: string;
125
- }
126
- interface StandardParameters {
127
- availability?: string;
128
- body_style?: string;
129
- checkin_date?: string;
130
- city?: string;
131
- condition_of_vehicle?: string;
132
- content_ids?: string[];
133
- content_type?: 'product' | 'product_group' | string;
134
- contents?: Array<{
135
- id: string;
136
- quantity?: number;
137
- item_price?: number;
138
- delivery_category?: string;
139
- }>;
140
- country?: string;
141
- currency?: string;
142
- delivery_category?: 'in_store' | 'curbside' | 'home_delivery' | string;
143
- departing_arrival_date?: string;
144
- departing_departure_date?: string;
145
- destination_airport?: string;
146
- destination_ids?: string[];
147
- dma_code?: string;
148
- drivetrain?: string;
149
- exterior_color?: string;
150
- fuel_type?: string;
151
- hotel_score?: number;
152
- interior_color?: string;
153
- lead_event_source?: string;
154
- lease_end_date?: string;
155
- lease_start_date?: string;
156
- listing_type?: string;
157
- make?: string;
158
- 'mileage.unit'?: string;
159
- 'mileage.value'?: number;
160
- model?: string;
161
- neighborhood?: string;
162
- net_revenue?: number;
163
- num_adults?: number;
164
- num_children?: number;
165
- num_infants?: number;
166
- num_items?: number;
167
- order_id?: string;
168
- origin_airport?: string;
169
- postal_code?: string;
170
- predicted_ltv?: number;
171
- preferred_baths_range?: string;
172
- preferred_beds_range?: string;
173
- preferred_neighborhoods?: string[];
174
- preferred_num_stops?: number;
175
- preferred_price_range?: string;
176
- preferred_star_ratings?: [number, number];
177
- price?: string;
178
- product_catalog_id?: string;
179
- property_type?: string;
180
- region?: string;
181
- returning_arrival_date?: string;
182
- returning_departure_date?: string;
183
- search_string?: string;
184
- state_of_vehicle?: string;
185
- suggested_destinations?: string[];
186
- suggested_home_listings?: string[];
187
- suggested_hotels?: string[];
188
- suggested_jobs?: string[];
189
- suggested_local_service_businesses?: string[];
190
- suggested_location_based_items?: string[];
191
- suggested_vehicles?: string[];
192
- transmission?: string;
193
- travel_class?: string;
194
- travel_end?: string;
195
- travel_start?: string;
196
- trim?: string;
197
- fb_availability?: string;
198
- fb_body_style?: string;
199
- fb_checkin_date?: string;
200
- fb_city?: string;
201
- fb_condition_of_vehicle?: string;
202
- fb_content_ids?: string[];
203
- fb_content_type?: string;
204
- fb_contents?: Array<{
205
- id: string;
206
- quantity?: number;
207
- item_price?: number;
208
- }>;
209
- fb_country?: string;
210
- fb_currency?: string;
211
- fb_delivery_category?: string;
212
- fb_departing_arrival_date?: string;
213
- fb_departing_departure_date?: string;
214
- fb_destination_airport?: string;
215
- fb_destination_ids?: string[];
216
- fb_dma_code?: string;
217
- fb_drivetrain?: string;
218
- fb_exterior_color?: string;
219
- fb_fuel_type?: string;
220
- fb_hotel_score?: number;
221
- fb_interior_color?: string;
222
- fb_lease_end_date?: string;
223
- fb_lease_start_date?: string;
224
- fb_listing_type?: string;
225
- fb_make?: string;
226
- 'fb_mileage.unit'?: string;
227
- 'fb_mileage.value'?: number;
228
- fb_model?: string;
229
- fb_neighborhood?: string;
230
- fb_num_adults?: number;
231
- fb_num_children?: number;
232
- fb_num_infants?: number;
233
- fb_num_items?: number;
234
- fb_order_id?: string;
235
- fb_origin_airport?: string;
236
- fb_postal_code?: string;
237
- fb_predicted_ltv?: number;
238
- fb_preferred_baths_range?: string;
239
- fb_preferred_beds_range?: string;
240
- fb_preferred_neighborhoods?: string[];
241
- fb_preferred_num_stops?: number;
242
- fb_preferred_price_range?: string;
243
- fb_preferred_star_ratings?: [number, number];
244
- fb_price?: string;
245
- fb_product_catalog_id?: string;
246
- fb_property_type?: string;
247
- fb_region?: string;
248
- fb_returning_arrival_date?: string;
249
- fb_returning_departure_date?: string;
250
- fb_search_string?: string;
251
- fb_state_of_vehicle?: string;
252
- fb_suggested_destinations?: string[];
253
- fb_suggested_home_listings?: string[];
254
- fb_suggested_hotels?: string[];
255
- fb_suggested_jobs?: string[];
256
- fb_suggested_local_service_businesses?: string[];
257
- fb_suggested_location_based_items?: string[];
258
- fb_suggested_vehicles?: string[];
259
- fb_transmission?: string;
260
- fb_travel_class?: string;
261
- fb_travel_end?: string;
262
- fb_travel_start?: string;
263
- user_bucket?: string;
264
- value?: number;
265
- vin?: string;
266
- year?: number;
267
- item_number?: string;
268
- }
269
- interface OriginalEventDataParameters {
270
- event_name?: EventName;
271
- event_time?: number;
272
- order_id?: number;
273
- event_id?: string;
274
- }
275
7
 
276
8
  /**
277
9
  * Standard mock environment for push operations
@@ -288,25 +20,13 @@ declare namespace env {
288
20
  export { env_push as push, env_simulation as simulation };
289
21
  }
290
22
 
291
- declare function Purchase$1(): BodyParameters;
292
-
293
- declare namespace events {
294
- export { Purchase$1 as Purchase };
295
- }
296
-
297
- declare const InitUserData: Settings;
298
- declare const Purchase: Rule;
299
- declare const config: {
300
- order: {
301
- complete: Rule;
302
- };
303
- };
23
+ declare const purchase: Flow.StepExample;
24
+ declare const lead: Flow.StepExample;
304
25
 
305
- declare const mapping_InitUserData: typeof InitUserData;
306
- declare const mapping_Purchase: typeof Purchase;
307
- declare const mapping_config: typeof config;
308
- declare namespace mapping {
309
- export { mapping_InitUserData as InitUserData, mapping_Purchase as Purchase, mapping_config as config };
26
+ declare const step_lead: typeof lead;
27
+ declare const step_purchase: typeof purchase;
28
+ declare namespace step {
29
+ export { step_lead as lead, step_purchase as purchase };
310
30
  }
311
31
 
312
- export { env, events, mapping };
32
+ export { env, step };