@segment/action-destinations 3.428.0 → 3.429.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/destinations/acoustic-s3tc/index.js +1 -1
- package/dist/destinations/acoustic-s3tc/index.js.map +1 -1
- package/dist/destinations/adobe-target/index.js +1 -1
- package/dist/destinations/adobe-target/index.js.map +1 -1
- package/dist/destinations/algolia-insights/conversionEvents/index.d.ts +0 -1
- package/dist/destinations/algolia-insights/conversionEvents/index.js +137 -145
- package/dist/destinations/algolia-insights/conversionEvents/index.js.map +1 -1
- package/dist/destinations/algolia-insights/index.js +1 -1
- package/dist/destinations/algolia-insights/index.js.map +1 -1
- package/dist/destinations/algolia-insights/productAddedEvents/generated-types.d.ts +1 -0
- package/dist/destinations/algolia-insights/productAddedEvents/index.d.ts +2 -0
- package/dist/destinations/algolia-insights/productAddedEvents/index.js +19 -3
- package/dist/destinations/algolia-insights/productAddedEvents/index.js.map +1 -1
- package/dist/destinations/criteo-audiences/index.js +1 -1
- package/dist/destinations/criteo-audiences/index.js.map +1 -1
- package/dist/destinations/first-party-dv360/addToAudMobileDeviceId/_tests_/index.test.d.ts +4 -0
- package/dist/destinations/first-party-dv360/addToAudMobileDeviceId/_tests_/index.test.js +79 -0
- package/dist/destinations/first-party-dv360/addToAudMobileDeviceId/_tests_/index.test.js.map +1 -0
- package/dist/destinations/first-party-dv360/addToAudMobileDeviceId/generated-types.d.ts +3 -3
- package/dist/destinations/first-party-dv360/addToAudMobileDeviceId/index.js +3 -3
- package/dist/destinations/first-party-dv360/addToAudMobileDeviceId/index.js.map +1 -1
- package/dist/destinations/first-party-dv360/functions.d.ts +1 -1
- package/dist/destinations/first-party-dv360/functions.js +6 -9
- package/dist/destinations/first-party-dv360/functions.js.map +1 -1
- package/dist/destinations/first-party-dv360/properties.js.map +1 -1
- package/dist/destinations/first-party-dv360/removeFromAudMobileDeviceId/generated-types.d.ts +3 -3
- package/dist/destinations/first-party-dv360/removeFromAudMobileDeviceId/index.js +3 -3
- package/dist/destinations/first-party-dv360/removeFromAudMobileDeviceId/index.js.map +1 -1
- package/dist/destinations/friendbuy/index.js +1 -1
- package/dist/destinations/friendbuy/index.js.map +1 -1
- package/dist/destinations/index.js +1 -0
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/kafka/index.js +1 -1
- package/dist/destinations/kafka/index.js.map +1 -1
- package/dist/destinations/kafka/utils.js +11 -7
- package/dist/destinations/kafka/utils.js.map +1 -1
- package/dist/destinations/koala/index.js +1 -1
- package/dist/destinations/koala/index.js.map +1 -1
- package/dist/destinations/metronome/index.js +1 -1
- package/dist/destinations/metronome/index.js.map +1 -1
- package/dist/destinations/moengage/index.js +1 -1
- package/dist/destinations/moengage/index.js.map +1 -1
- package/dist/destinations/ms-bing-ads-audiences/constants.d.ts +5 -0
- package/dist/destinations/ms-bing-ads-audiences/constants.js +13 -0
- package/dist/destinations/ms-bing-ads-audiences/constants.js.map +1 -0
- package/dist/destinations/ms-bing-ads-audiences/generated-types.d.ts +3 -0
- package/dist/destinations/ms-bing-ads-audiences/index.d.ts +1 -1
- package/dist/destinations/ms-bing-ads-audiences/index.js +86 -3
- package/dist/destinations/ms-bing-ads-audiences/index.js.map +1 -1
- package/dist/destinations/ms-bing-ads-audiences/syncAudiences/fields.d.ts +11 -0
- package/dist/destinations/ms-bing-ads-audiences/syncAudiences/fields.js +123 -0
- package/dist/destinations/ms-bing-ads-audiences/syncAudiences/fields.js.map +1 -0
- package/dist/destinations/ms-bing-ads-audiences/syncAudiences/generated-types.d.ts +11 -0
- package/dist/destinations/ms-bing-ads-audiences/syncAudiences/index.d.ts +1 -1
- package/dist/destinations/ms-bing-ads-audiences/syncAudiences/index.js +58 -7
- package/dist/destinations/ms-bing-ads-audiences/syncAudiences/index.js.map +1 -1
- package/dist/destinations/ms-bing-ads-audiences/types.d.ts +48 -0
- package/dist/destinations/ms-bing-ads-audiences/types.js.map +1 -0
- package/dist/destinations/ms-bing-ads-audiences/utils.d.ts +9 -0
- package/dist/destinations/ms-bing-ads-audiences/utils.js +86 -0
- package/dist/destinations/ms-bing-ads-audiences/utils.js.map +1 -0
- package/dist/destinations/ms-bing-capi/generated-types.d.ts +1 -0
- package/dist/destinations/ms-bing-capi/index.d.ts +1 -1
- package/dist/destinations/ms-bing-capi/index.js +76 -5
- package/dist/destinations/ms-bing-capi/index.js.map +1 -1
- package/dist/destinations/ms-bing-capi/sendEvent/constants.js.map +1 -0
- package/dist/destinations/ms-bing-capi/{fields.d.ts → sendEvent/fields.d.ts} +3 -0
- package/dist/destinations/ms-bing-capi/{fields.js → sendEvent/fields.js} +51 -15
- package/dist/destinations/ms-bing-capi/sendEvent/fields.js.map +1 -0
- package/dist/destinations/ms-bing-capi/sendEvent/generated-types.d.ts +22 -22
- package/dist/destinations/ms-bing-capi/sendEvent/index.d.ts +1 -1
- package/dist/destinations/ms-bing-capi/sendEvent/index.js +68 -30
- package/dist/destinations/ms-bing-capi/sendEvent/index.js.map +1 -1
- package/dist/destinations/ms-bing-capi/sendEvent/types.d.ts +62 -10
- package/dist/destinations/ms-bing-capi/sendEvent/utils.js +1 -1
- package/dist/destinations/ms-bing-capi/sendEvent/utils.js.map +1 -1
- package/dist/destinations/pipedrive/index.js +1 -1
- package/dist/destinations/pipedrive/index.js.map +1 -1
- package/dist/destinations/qualtrics/index.js +1 -1
- package/dist/destinations/qualtrics/index.js.map +1 -1
- package/dist/destinations/reddit-conversions-api/index.js +1 -1
- package/dist/destinations/reddit-conversions-api/index.js.map +1 -1
- package/dist/destinations/salesforce/index.js +2 -2
- package/dist/destinations/salesforce/index.js.map +1 -1
- package/dist/destinations/taboola-actions/index.js +1 -1
- package/dist/destinations/taboola-actions/index.js.map +1 -1
- package/dist/destinations/the-trade-desk-crm/index.js +1 -1
- package/dist/destinations/the-trade-desk-crm/index.js.map +1 -1
- package/dist/destinations/tiktok-conversions/index.js +1 -1
- package/dist/destinations/tiktok-conversions/index.js.map +1 -1
- package/dist/destinations/tiktok-conversions/reportWebEvent/constants.d.ts +4 -0
- package/dist/destinations/tiktok-conversions/reportWebEvent/constants.js +8 -0
- package/dist/destinations/tiktok-conversions/reportWebEvent/constants.js.map +1 -0
- package/dist/destinations/tiktok-conversions/reportWebEvent/fields/common_fields.d.ts +2 -0
- package/dist/destinations/tiktok-conversions/{common_fields.js → reportWebEvent/fields/common_fields.js} +89 -21
- package/dist/destinations/tiktok-conversions/reportWebEvent/fields/common_fields.js.map +1 -0
- package/dist/destinations/tiktok-conversions/reportWebEvent/fields/crm_fields.d.ts +2 -0
- package/dist/destinations/tiktok-conversions/reportWebEvent/fields/crm_fields.js +48 -0
- package/dist/destinations/tiktok-conversions/reportWebEvent/fields/crm_fields.js.map +1 -0
- package/dist/destinations/tiktok-conversions/reportWebEvent/fields/travel_fields.d.ts +2 -0
- package/dist/destinations/tiktok-conversions/reportWebEvent/fields/travel_fields.js +216 -0
- package/dist/destinations/tiktok-conversions/reportWebEvent/fields/travel_fields.js.map +1 -0
- package/dist/destinations/tiktok-conversions/reportWebEvent/fields/vehicle_fields.d.ts +2 -0
- package/dist/destinations/tiktok-conversions/reportWebEvent/fields/vehicle_fields.js +261 -0
- package/dist/destinations/tiktok-conversions/reportWebEvent/fields/vehicle_fields.js.map +1 -0
- package/dist/destinations/tiktok-conversions/{formatter.js → reportWebEvent/formatter.js} +1 -1
- package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js.map +1 -0
- package/dist/destinations/tiktok-conversions/reportWebEvent/generated-types.d.ts +58 -1
- package/dist/destinations/tiktok-conversions/reportWebEvent/index.js +10 -4
- package/dist/destinations/tiktok-conversions/reportWebEvent/index.js.map +1 -1
- package/dist/destinations/tiktok-conversions/reportWebEvent/types.d.ts +111 -0
- package/dist/destinations/tiktok-conversions/reportWebEvent/types.js +3 -0
- package/dist/destinations/tiktok-conversions/reportWebEvent/types.js.map +1 -0
- package/dist/destinations/tiktok-conversions/reportWebEvent/utils.d.ts +4 -0
- package/dist/destinations/tiktok-conversions/reportWebEvent/utils.js +170 -0
- package/dist/destinations/tiktok-conversions/reportWebEvent/utils.js.map +1 -0
- package/dist/destinations/tiktok-offline-conversions/index.js +1 -1
- package/dist/destinations/tiktok-offline-conversions/index.js.map +1 -1
- package/dist/destinations/vibe-audience/constants.d.ts +2 -0
- package/dist/destinations/vibe-audience/constants.js +6 -0
- package/dist/destinations/vibe-audience/constants.js.map +1 -0
- package/dist/destinations/vibe-audience/functions.d.ts +4 -0
- package/dist/destinations/vibe-audience/functions.js +31 -0
- package/dist/destinations/vibe-audience/functions.js.map +1 -0
- package/dist/destinations/vibe-audience/generated-types.d.ts +4 -0
- package/dist/destinations/vibe-audience/generated-types.js.map +1 -0
- package/dist/destinations/vibe-audience/index.d.ts +4 -0
- package/dist/destinations/vibe-audience/index.js +49 -0
- package/dist/destinations/vibe-audience/index.js.map +1 -0
- package/dist/destinations/vibe-audience/sync/generated-types.d.ts +16 -0
- package/dist/destinations/vibe-audience/sync/generated-types.js +3 -0
- package/dist/destinations/vibe-audience/sync/generated-types.js.map +1 -0
- package/dist/destinations/{ms-bing-capi/pageLoad → vibe-audience/sync}/index.d.ts +1 -1
- package/dist/destinations/vibe-audience/sync/index.js +135 -0
- package/dist/destinations/vibe-audience/sync/index.js.map +1 -0
- package/dist/destinations/vibe-audience/types.d.ts +14 -0
- package/dist/destinations/vibe-audience/types.js +3 -0
- package/dist/destinations/vibe-audience/types.js.map +1 -0
- package/dist/destinations/webhook/index.js +1 -1
- package/dist/destinations/webhook/index.js.map +1 -1
- package/dist/destinations/webhook-extensible/index.js +1 -1
- package/dist/destinations/webhook-extensible/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/destinations/ms-bing-capi/constants.js.map +0 -1
- package/dist/destinations/ms-bing-capi/fields.js.map +0 -1
- package/dist/destinations/ms-bing-capi/pageLoad/generated-types.d.ts +0 -56
- package/dist/destinations/ms-bing-capi/pageLoad/generated-types.js.map +0 -1
- package/dist/destinations/ms-bing-capi/pageLoad/index.js +0 -44
- package/dist/destinations/ms-bing-capi/pageLoad/index.js.map +0 -1
- package/dist/destinations/tiktok-conversions/common_fields.d.ts +0 -2
- package/dist/destinations/tiktok-conversions/common_fields.js.map +0 -1
- package/dist/destinations/tiktok-conversions/formatter.js.map +0 -1
- package/dist/destinations/tiktok-conversions/types.d.ts +0 -55
- package/dist/destinations/tiktok-conversions/types.js.map +0 -1
- package/dist/destinations/tiktok-conversions/utils.d.ts +0 -4
- package/dist/destinations/tiktok-conversions/utils.js +0 -128
- package/dist/destinations/tiktok-conversions/utils.js.map +0 -1
- /package/dist/destinations/{tiktok-conversions → ms-bing-ads-audiences}/types.js +0 -0
- /package/dist/destinations/ms-bing-capi/{constants.d.ts → sendEvent/constants.d.ts} +0 -0
- /package/dist/destinations/ms-bing-capi/{constants.js → sendEvent/constants.js} +0 -0
- /package/dist/destinations/tiktok-conversions/{formatter.d.ts → reportWebEvent/formatter.d.ts} +0 -0
- /package/dist/destinations/{ms-bing-capi/pageLoad → vibe-audience}/generated-types.js +0 -0
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.vehicle_fields = void 0;
|
|
4
|
+
const constants_1 = require("../constants");
|
|
5
|
+
exports.vehicle_fields = {
|
|
6
|
+
label: 'Vehicle Fields',
|
|
7
|
+
type: 'object',
|
|
8
|
+
description: 'Fields related to vehicle events.',
|
|
9
|
+
additionalProperties: false,
|
|
10
|
+
defaultObjectUI: 'keyvalue',
|
|
11
|
+
properties: {
|
|
12
|
+
postal_code: {
|
|
13
|
+
label: 'Postal Code',
|
|
14
|
+
type: 'string',
|
|
15
|
+
description: 'Postal code for the vehicle location.'
|
|
16
|
+
},
|
|
17
|
+
make: {
|
|
18
|
+
label: 'Make of the Vehicle',
|
|
19
|
+
type: 'string',
|
|
20
|
+
description: 'Vehicle make/brand/manufacturer.'
|
|
21
|
+
},
|
|
22
|
+
model: {
|
|
23
|
+
label: 'Model of the Vehicle',
|
|
24
|
+
type: 'string',
|
|
25
|
+
description: 'Vehicle model.'
|
|
26
|
+
},
|
|
27
|
+
year: {
|
|
28
|
+
label: 'Year of the Vehicle',
|
|
29
|
+
type: 'number',
|
|
30
|
+
description: 'Year the vehicle was laucned in yyyy format.'
|
|
31
|
+
},
|
|
32
|
+
state_of_vehicle: {
|
|
33
|
+
label: 'State of the Vehicle',
|
|
34
|
+
type: 'string',
|
|
35
|
+
description: 'Vehicle status.',
|
|
36
|
+
choices: [
|
|
37
|
+
{ value: 'New', label: 'New' },
|
|
38
|
+
{ value: 'Used', label: 'Used' },
|
|
39
|
+
{ value: 'CPO', label: 'CPO' }
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
mileage_value: {
|
|
43
|
+
label: 'Mileage Value',
|
|
44
|
+
type: 'number',
|
|
45
|
+
description: 'Vehicle mileage (in km or miles). Zero (0) for new vehicle.'
|
|
46
|
+
},
|
|
47
|
+
mileage_unit: {
|
|
48
|
+
label: 'Mileage Unit',
|
|
49
|
+
type: 'string',
|
|
50
|
+
description: 'Mileage unites in miles (MI) or kilometers (KM).',
|
|
51
|
+
choices: [
|
|
52
|
+
{ value: 'MI', label: 'Miles' },
|
|
53
|
+
{ value: 'KM', label: 'Kilometers' }
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
exterior_color: {
|
|
57
|
+
label: 'Exterior Color of the Vehicle',
|
|
58
|
+
type: 'string',
|
|
59
|
+
description: 'Vehicle exterior color.'
|
|
60
|
+
},
|
|
61
|
+
transmission: {
|
|
62
|
+
label: 'Transmission Type of the Vehicle',
|
|
63
|
+
type: 'string',
|
|
64
|
+
description: 'Vehicle transmission type.',
|
|
65
|
+
choices: [
|
|
66
|
+
{ value: 'Automatic', label: 'Automatic' },
|
|
67
|
+
{ value: 'Manual', label: 'Manual' },
|
|
68
|
+
{ value: 'Other', label: 'Other' }
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
body_style: {
|
|
72
|
+
label: 'Body Type of the Vehicle',
|
|
73
|
+
type: 'string',
|
|
74
|
+
description: 'Vehicle body type.',
|
|
75
|
+
choices: [
|
|
76
|
+
{ value: 'Convertible', label: 'Convertible' },
|
|
77
|
+
{ value: 'Coupe', label: 'Coupe' },
|
|
78
|
+
{ value: 'Hatchback', label: 'Hatchback' },
|
|
79
|
+
{ value: 'Minivan', label: 'Minivan' },
|
|
80
|
+
{ value: 'Truck', label: 'Truck' },
|
|
81
|
+
{ value: 'SUV', label: 'SUV' },
|
|
82
|
+
{ value: 'Sedan', label: 'Sedan' },
|
|
83
|
+
{ value: 'Van', label: 'Van' },
|
|
84
|
+
{ value: 'Wagon', label: 'Wagon' },
|
|
85
|
+
{ value: 'Crossover', label: 'Crossover' },
|
|
86
|
+
{ value: 'Other', label: 'Other' }
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
fuel_type: {
|
|
90
|
+
label: 'Fuel Type of the Vehicle',
|
|
91
|
+
type: 'string',
|
|
92
|
+
description: 'Vehicle fuel type.',
|
|
93
|
+
choices: [
|
|
94
|
+
{ value: 'Diesel', label: 'Diesel' },
|
|
95
|
+
{ value: 'Electric', label: 'Electric' },
|
|
96
|
+
{ value: 'Flex', label: 'Flex' },
|
|
97
|
+
{ value: 'Gasoline', label: 'Gasoline' },
|
|
98
|
+
{ value: 'Hybrid', label: 'Hybrid' },
|
|
99
|
+
{ value: 'Other', label: 'Other' }
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
drivetrain: {
|
|
103
|
+
label: 'Drivetrain of the Vehicle',
|
|
104
|
+
type: 'string',
|
|
105
|
+
description: 'Vehicle drivetrain.',
|
|
106
|
+
choices: [
|
|
107
|
+
{ value: 'AWD', label: 'AWD' },
|
|
108
|
+
{ value: 'FOUR_WD', label: 'Four WD' },
|
|
109
|
+
{ value: 'FWD', label: 'FWD' },
|
|
110
|
+
{ value: 'RWD', label: 'RWD' },
|
|
111
|
+
{ value: 'TWO_WD', label: 'Two WD' },
|
|
112
|
+
{ value: 'Other', label: 'Other' }
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
preferred_price_range_min: {
|
|
116
|
+
label: 'Minimum Preferred Price',
|
|
117
|
+
type: 'number',
|
|
118
|
+
description: 'Minimum preferred price of the vehicle.'
|
|
119
|
+
},
|
|
120
|
+
preferred_price_range_max: {
|
|
121
|
+
label: 'Maximum Preferred Price',
|
|
122
|
+
type: 'number',
|
|
123
|
+
description: 'Maximum preferred price of the vehicle.'
|
|
124
|
+
},
|
|
125
|
+
trim: {
|
|
126
|
+
label: 'Trim of the Vehicle',
|
|
127
|
+
type: 'string',
|
|
128
|
+
description: 'Vehicle trim.'
|
|
129
|
+
},
|
|
130
|
+
vin: {
|
|
131
|
+
label: 'VIN of the Vehicle',
|
|
132
|
+
type: 'string',
|
|
133
|
+
description: 'Vehicle identification number. Maximum characters: 17.'
|
|
134
|
+
},
|
|
135
|
+
interior_color: {
|
|
136
|
+
label: 'Interior Color of the Vehicle',
|
|
137
|
+
type: 'string',
|
|
138
|
+
description: 'Vehicle interior color.'
|
|
139
|
+
},
|
|
140
|
+
condition_of_vehicle: {
|
|
141
|
+
label: 'Condition of the Vehicle',
|
|
142
|
+
type: 'string',
|
|
143
|
+
description: 'Vehicle drivetrain.',
|
|
144
|
+
choices: [
|
|
145
|
+
{ value: 'Excellent', label: 'Excellent' },
|
|
146
|
+
{ value: 'Good', label: 'Good' },
|
|
147
|
+
{ value: 'Fair', label: 'Fair' },
|
|
148
|
+
{ value: 'Poor', label: 'Poor' },
|
|
149
|
+
{ value: 'Other', label: 'Other' }
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
viewcontent_type: {
|
|
153
|
+
label: 'Soft Lead Landing Page',
|
|
154
|
+
type: 'string',
|
|
155
|
+
description: 'Optional for ViewContent. Use viewcontent_type to differentiate between soft lead landing pages.',
|
|
156
|
+
depends_on: {
|
|
157
|
+
match: 'any',
|
|
158
|
+
conditions: [{ fieldKey: 'event', operator: 'is', value: 'ViewContent' }]
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
search_type: {
|
|
162
|
+
label: 'Other Search Page',
|
|
163
|
+
type: 'string',
|
|
164
|
+
description: 'Optional for Search. Use search_type to differentiate other user searches (such as dealer lookup) from inventory search.',
|
|
165
|
+
depends_on: {
|
|
166
|
+
match: 'any',
|
|
167
|
+
conditions: [{ fieldKey: 'event', operator: 'is', value: 'Search' }]
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
registration_type: {
|
|
171
|
+
label: 'Other Registration Page',
|
|
172
|
+
type: 'string',
|
|
173
|
+
description: 'Optional for CompleteRegistration. Use registration_type to differentiate between different types of customer registration on websites.',
|
|
174
|
+
depends_on: {
|
|
175
|
+
match: 'any',
|
|
176
|
+
conditions: [{ fieldKey: 'event', operator: 'is', value: 'CompleteRegistration' }]
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
default: {
|
|
181
|
+
postal_code: {
|
|
182
|
+
'@path': '$.properties.postal_code'
|
|
183
|
+
},
|
|
184
|
+
make: {
|
|
185
|
+
'@path': '$.properties.make'
|
|
186
|
+
},
|
|
187
|
+
model: {
|
|
188
|
+
'@path': '$.properties.model'
|
|
189
|
+
},
|
|
190
|
+
year: {
|
|
191
|
+
'@path': '$.properties.year'
|
|
192
|
+
},
|
|
193
|
+
state_of_vehicle: {
|
|
194
|
+
'@path': '$.properties.state_of_vehicle'
|
|
195
|
+
},
|
|
196
|
+
mileage_value: {
|
|
197
|
+
'@path': '$.properties.mileage_value'
|
|
198
|
+
},
|
|
199
|
+
mileage_unit: {
|
|
200
|
+
'@path': '$.properties.mileage_unit'
|
|
201
|
+
},
|
|
202
|
+
exterior_color: {
|
|
203
|
+
'@path': '$.properties.exterior_color'
|
|
204
|
+
},
|
|
205
|
+
transmission: {
|
|
206
|
+
'@path': '$.properties.transmission'
|
|
207
|
+
},
|
|
208
|
+
body_style: {
|
|
209
|
+
'@path': '$.properties.body_style'
|
|
210
|
+
},
|
|
211
|
+
fuel_type: {
|
|
212
|
+
'@path': '$.properties.fuel_type'
|
|
213
|
+
},
|
|
214
|
+
drivetrain: {
|
|
215
|
+
'@path': '$.properties.drive_train'
|
|
216
|
+
},
|
|
217
|
+
preferred_price_range_min: {
|
|
218
|
+
'@path': '$.properties.preferred_price_range_min'
|
|
219
|
+
},
|
|
220
|
+
preferred_price_range_max: {
|
|
221
|
+
'@path': '$.properties.preferred_price_range_max'
|
|
222
|
+
},
|
|
223
|
+
trim: {
|
|
224
|
+
'@path': '$.properties.trim'
|
|
225
|
+
},
|
|
226
|
+
vin: {
|
|
227
|
+
'@path': '$.properties.vin'
|
|
228
|
+
},
|
|
229
|
+
interior_color: {
|
|
230
|
+
'@path': '$.properties.interior_color'
|
|
231
|
+
},
|
|
232
|
+
condition_of_vehicle: {
|
|
233
|
+
'@path': '$.properties.condition_of_vehicle'
|
|
234
|
+
},
|
|
235
|
+
viewcontent_type: {
|
|
236
|
+
'@path': '$.properties.viewcontent_type'
|
|
237
|
+
},
|
|
238
|
+
search_type: {
|
|
239
|
+
'@path': '$.properties.search_type'
|
|
240
|
+
},
|
|
241
|
+
registration_type: {
|
|
242
|
+
'@path': '$.properties.registration_type'
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
depends_on: {
|
|
246
|
+
match: 'all',
|
|
247
|
+
conditions: [
|
|
248
|
+
{
|
|
249
|
+
fieldKey: 'event_source',
|
|
250
|
+
operator: 'is',
|
|
251
|
+
value: constants_1.WEB
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
fieldKey: 'event_spec_type',
|
|
255
|
+
operator: 'is',
|
|
256
|
+
value: constants_1.VEHICLE_FIELDS
|
|
257
|
+
}
|
|
258
|
+
]
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
//# sourceMappingURL=vehicle_fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vehicle_fields.js","sourceRoot":"","s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EAAE;YAChB,OAAO,EAAE,+BAA+B;SACzC;QACD,WAAW,EAAE;YACX,OAAO,EAAE,0BAA0B;SACpC;QACD,iBAAiB,EAAE;YACjB,OAAO,EAAE,gCAAgC;SAC1C;KACF;IACD,UAAU,EAAE;QACV,KAAK,EAAE,KAAK;QACZ,UAAU,EAAE;YACV;gBACE,QAAQ,EAAE,cAAc;gBACxB,QAAQ,EAAE,IAAI;gBACd,KAAK,EAAE,eAAG;aACX;YACD;gBACE,QAAQ,EAAE,iBAAiB;gBAC3B,QAAQ,EAAE,IAAI;gBACd,KAAK,EAAE,0BAAc;aACtB;SACF;KACF;CACF,CAAA"}
|
|
@@ -4,7 +4,7 @@ exports.formatPhones = exports.formatEmails = void 0;
|
|
|
4
4
|
exports.formatUserIds = formatUserIds;
|
|
5
5
|
exports.formatString = formatString;
|
|
6
6
|
exports.formatAddress = formatAddress;
|
|
7
|
-
const hashing_utils_1 = require("
|
|
7
|
+
const hashing_utils_1 = require("../../../lib/hashing-utils");
|
|
8
8
|
const formatEmails = (email_addresses) => {
|
|
9
9
|
const result = [];
|
|
10
10
|
if (email_addresses) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatter.js","sourceRoot":"","sources":["../../../../src/destinations/tiktok-conversions/reportWebEvent/formatter.ts"],"names":[],"mappings":";;;AA6CA,sCAQC;AAED,oCAGC;AAED,sCAGC;AA/DD,8DAA2D;AAIpD,MAAM,YAAY,GAAG,CAAC,eAAqC,EAAY,EAAE;IAC9E,MAAM,MAAM,GAAa,EAAE,CAAA;IAC3B,IAAI,eAAe,EAAE,CAAC;QACpB,eAAe,CAAC,OAAO,CAAC,CAAC,KAAa,EAAE,EAAE;YACxC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAA;QACjD,CAAC,CAAC,CAAA;IACJ,CAAC;IACD,OAAO,MAAM,CAAA;AACf,CAAC,CAAA;AARY,QAAA,YAAY,gB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,CAAC,WAAW,EAAE,CAAC,CAAA;AAC5D,CAAC;AAED,SAAgB,aAAa,CAAC,OAAkC;IAC9D,IAAI,CAAC,OAAO;QAAE,OAAO,EAAE,CAAA;IACvB,OAAO,OAAO,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,CAAA;AAC3D,CAAC;AAED,SAAS,aAAa,CAAC,QAAgB,EAAE,gBAA4C;IACnF,OAAO,IAAA,8BAAc,EAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,gBAAgB,CAAC,CAAA;AACpE,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export interface Payload {
|
|
2
|
+
event_source?: string;
|
|
3
|
+
event_spec_type?: string;
|
|
2
4
|
event: string;
|
|
3
5
|
event_id?: string;
|
|
4
6
|
timestamp?: string;
|
|
@@ -17,7 +19,6 @@ export interface Payload {
|
|
|
17
19
|
external_id?: string[];
|
|
18
20
|
ttclid?: string;
|
|
19
21
|
ttp?: string;
|
|
20
|
-
lead_id?: string;
|
|
21
22
|
locale?: string;
|
|
22
23
|
url?: string;
|
|
23
24
|
referrer?: string;
|
|
@@ -31,6 +32,8 @@ export interface Payload {
|
|
|
31
32
|
content_name?: string;
|
|
32
33
|
brand?: string;
|
|
33
34
|
}[];
|
|
35
|
+
content_ids?: string[];
|
|
36
|
+
num_items?: number;
|
|
34
37
|
content_type?: string;
|
|
35
38
|
currency?: string;
|
|
36
39
|
value?: number;
|
|
@@ -38,4 +41,58 @@ export interface Payload {
|
|
|
38
41
|
query?: string;
|
|
39
42
|
limited_data_use?: boolean;
|
|
40
43
|
test_event_code?: string;
|
|
44
|
+
delivery_category?: string;
|
|
45
|
+
predicted_ltv?: number;
|
|
46
|
+
search_string?: string;
|
|
47
|
+
lead_fields?: {
|
|
48
|
+
lead_id?: string;
|
|
49
|
+
lead_event_source?: string;
|
|
50
|
+
};
|
|
51
|
+
vehicle_fields?: {
|
|
52
|
+
postal_code?: string;
|
|
53
|
+
make?: string;
|
|
54
|
+
model?: string;
|
|
55
|
+
year?: number;
|
|
56
|
+
state_of_vehicle?: string;
|
|
57
|
+
mileage_value?: number;
|
|
58
|
+
mileage_unit?: string;
|
|
59
|
+
exterior_color?: string;
|
|
60
|
+
transmission?: string;
|
|
61
|
+
body_style?: string;
|
|
62
|
+
fuel_type?: string;
|
|
63
|
+
drivetrain?: string;
|
|
64
|
+
preferred_price_range_min?: number;
|
|
65
|
+
preferred_price_range_max?: number;
|
|
66
|
+
trim?: string;
|
|
67
|
+
vin?: string;
|
|
68
|
+
interior_color?: string;
|
|
69
|
+
condition_of_vehicle?: string;
|
|
70
|
+
viewcontent_type?: string;
|
|
71
|
+
search_type?: string;
|
|
72
|
+
registration_type?: string;
|
|
73
|
+
};
|
|
74
|
+
travel_fields?: {
|
|
75
|
+
city?: string;
|
|
76
|
+
region?: string;
|
|
77
|
+
country?: string;
|
|
78
|
+
checkin_date?: string;
|
|
79
|
+
checkout_date?: string;
|
|
80
|
+
num_adults?: number;
|
|
81
|
+
num_children?: number;
|
|
82
|
+
num_infants?: number;
|
|
83
|
+
suggested_hotels?: string[];
|
|
84
|
+
departing_departure_date?: string;
|
|
85
|
+
returning_departure_date?: string;
|
|
86
|
+
origin_airport?: string;
|
|
87
|
+
destination_airport?: string;
|
|
88
|
+
destination_ids?: string[];
|
|
89
|
+
departing_arrival_date?: string;
|
|
90
|
+
returning_arrival_date?: string;
|
|
91
|
+
travel_class?: string;
|
|
92
|
+
user_score?: number;
|
|
93
|
+
preferred_num_stops?: number;
|
|
94
|
+
travel_start?: string;
|
|
95
|
+
travel_end?: string;
|
|
96
|
+
suggested_destinations?: string[];
|
|
97
|
+
};
|
|
41
98
|
}
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const common_fields_1 = require("
|
|
4
|
-
const
|
|
3
|
+
const common_fields_1 = require("./fields/common_fields");
|
|
4
|
+
const crm_fields_1 = require("./fields/crm_fields");
|
|
5
|
+
const travel_fields_1 = require("./fields/travel_fields");
|
|
6
|
+
const vehicle_fields_1 = require("./fields/vehicle_fields");
|
|
7
|
+
const utils_1 = require("./utils");
|
|
5
8
|
const action = {
|
|
6
9
|
title: 'Report Web Event',
|
|
7
10
|
description: 'Report Web events directly to TikTok. Data shared can power TikTok solutions like dynamic product ads, custom targeting, campaign optimization and attribution.',
|
|
8
11
|
fields: {
|
|
9
|
-
...common_fields_1.
|
|
12
|
+
...common_fields_1.common_fields,
|
|
13
|
+
...crm_fields_1.crm_fields,
|
|
14
|
+
vehicle_fields: vehicle_fields_1.vehicle_fields,
|
|
15
|
+
travel_fields: travel_fields_1.travel_fields
|
|
10
16
|
},
|
|
11
17
|
perform: (request, { payload, settings }) => {
|
|
12
|
-
return (0, utils_1.
|
|
18
|
+
return (0, utils_1.send)(request, settings, payload);
|
|
13
19
|
}
|
|
14
20
|
};
|
|
15
21
|
exports.default = action;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/tiktok-conversions/reportWebEvent/index.ts"],"names":[],"mappings":";;AAGA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/tiktok-conversions/reportWebEvent/index.ts"],"names":[],"mappings":";;AAGA,0DAAsD;AACtD,oDAAgD;AAChD,0DAAsD;AACtD,4DAAwD;AACxD,mCAA8B;AAE9B,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,kBAAkB;IACzB,WAAW,EACT,iKAAiK;IACnK,MAAM,EAAE;QACN,GAAG,6BAAa;QAChB,GAAG,uBAAU;QACb,cAAc,EAAd,+BAAc;QACd,aAAa,EAAb,6BAAa;KACd;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC1C,OAAO,IAAA,YAAI,EAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA;IACzC,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
export interface TTJSON {
|
|
2
|
+
event_source: string;
|
|
3
|
+
event_source_id: string;
|
|
4
|
+
partner_name: string;
|
|
5
|
+
test_event_code?: string;
|
|
6
|
+
data: TTDataItem[];
|
|
7
|
+
}
|
|
8
|
+
interface TTDataItem {
|
|
9
|
+
event: string;
|
|
10
|
+
event_time: number;
|
|
11
|
+
event_id?: string;
|
|
12
|
+
user: TTUser;
|
|
13
|
+
properties: TTBaseProps & TTTravelProps & TTAutoProps;
|
|
14
|
+
page?: {
|
|
15
|
+
url?: string;
|
|
16
|
+
referrer?: string;
|
|
17
|
+
};
|
|
18
|
+
limited_data_use: boolean;
|
|
19
|
+
lead?: {
|
|
20
|
+
lead_id?: string;
|
|
21
|
+
lead_event_source?: string;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export interface TTUser {
|
|
25
|
+
external_id: string[];
|
|
26
|
+
phone: string[];
|
|
27
|
+
email: string[];
|
|
28
|
+
ttp?: string;
|
|
29
|
+
ip?: string;
|
|
30
|
+
user_agent?: string;
|
|
31
|
+
locale?: string;
|
|
32
|
+
first_name?: string;
|
|
33
|
+
last_name?: string;
|
|
34
|
+
city?: string;
|
|
35
|
+
state?: string;
|
|
36
|
+
country?: string;
|
|
37
|
+
zip_code?: string;
|
|
38
|
+
ttclid?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface TTBaseProps {
|
|
41
|
+
contents: TTContentItem[];
|
|
42
|
+
content_type?: string;
|
|
43
|
+
currency?: string;
|
|
44
|
+
value?: number;
|
|
45
|
+
query?: string;
|
|
46
|
+
description?: string;
|
|
47
|
+
order_id?: string;
|
|
48
|
+
shop_id?: string;
|
|
49
|
+
content_ids?: string[];
|
|
50
|
+
delivery_category?: string;
|
|
51
|
+
num_items?: number;
|
|
52
|
+
predicted_ltv?: number;
|
|
53
|
+
search_string?: string;
|
|
54
|
+
}
|
|
55
|
+
export interface TTTravelProps {
|
|
56
|
+
city?: string;
|
|
57
|
+
region?: string;
|
|
58
|
+
country?: string;
|
|
59
|
+
checkin_date?: string;
|
|
60
|
+
checkout_date?: string;
|
|
61
|
+
num_adults?: number;
|
|
62
|
+
num_children?: number;
|
|
63
|
+
num_infants?: number;
|
|
64
|
+
suggested_hotels?: string[];
|
|
65
|
+
departing_departure_date?: string;
|
|
66
|
+
returning_departure_date?: string;
|
|
67
|
+
origin_airport?: string;
|
|
68
|
+
destination_airiport?: string;
|
|
69
|
+
destination_ids?: string[];
|
|
70
|
+
departing_arrival_date?: string;
|
|
71
|
+
returning_arrival_date?: string;
|
|
72
|
+
travel_class?: string;
|
|
73
|
+
user_score?: number;
|
|
74
|
+
preferred_num_stops?: number;
|
|
75
|
+
travel_start?: string;
|
|
76
|
+
travel_end?: string;
|
|
77
|
+
suggested_destinations?: string[];
|
|
78
|
+
}
|
|
79
|
+
export interface TTAutoProps {
|
|
80
|
+
postal_code?: string;
|
|
81
|
+
make?: string;
|
|
82
|
+
model?: string;
|
|
83
|
+
year?: number;
|
|
84
|
+
state_of_vehicle?: string;
|
|
85
|
+
mileage?: {
|
|
86
|
+
value?: number;
|
|
87
|
+
unit?: string;
|
|
88
|
+
};
|
|
89
|
+
exterior_color?: string;
|
|
90
|
+
transmission?: string;
|
|
91
|
+
body_style?: string;
|
|
92
|
+
fuel_type?: string;
|
|
93
|
+
drivetrain?: string;
|
|
94
|
+
preferred_price_range?: number[];
|
|
95
|
+
trim?: string;
|
|
96
|
+
vin?: string;
|
|
97
|
+
interior_color?: string;
|
|
98
|
+
condition_of_vehicle?: string;
|
|
99
|
+
viewcontent_type?: string;
|
|
100
|
+
search_type?: string;
|
|
101
|
+
registration_type?: string;
|
|
102
|
+
}
|
|
103
|
+
interface TTContentItem {
|
|
104
|
+
price?: number;
|
|
105
|
+
quantity?: number;
|
|
106
|
+
content_category?: string;
|
|
107
|
+
content_id?: string;
|
|
108
|
+
content_name?: string;
|
|
109
|
+
brand?: string;
|
|
110
|
+
}
|
|
111
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/destinations/tiktok-conversions/reportWebEvent/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { RequestClient } from '@segment/actions-core';
|
|
2
|
+
import { Settings } from '../generated-types';
|
|
3
|
+
import { Payload } from './generated-types';
|
|
4
|
+
export declare function send(request: RequestClient, settings: Settings, payload: Payload): Promise<import("@segment/actions-core").ModifiedResponse<unknown>>;
|