@walkeros/server-destination-meta 0.0.7

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