@segment/action-destinations 3.444.1-staging-2a9f3e6f0.0 → 3.444.1-staging-e7a1c3dfd.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/aws-kinesis/index.js +2 -2
- package/dist/destinations/aws-kinesis/index.js.map +1 -1
- package/dist/destinations/aws-kinesis/send/generated-types.d.ts +2 -0
- package/dist/destinations/aws-kinesis/send/index.js +24 -7
- package/dist/destinations/aws-kinesis/send/index.js.map +1 -1
- package/dist/destinations/aws-kinesis/utils.d.ts +1 -4
- package/dist/destinations/aws-kinesis/utils.js +29 -47
- package/dist/destinations/aws-kinesis/utils.js.map +1 -1
- package/dist/destinations/index.js +1 -0
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/kafka/generated-types.d.ts +0 -3
- package/dist/destinations/kafka/index.js +0 -21
- package/dist/destinations/kafka/index.js.map +1 -1
- package/dist/destinations/kafka/send/generated-types.d.ts +1 -0
- package/dist/destinations/kafka/send/index.js +7 -0
- package/dist/destinations/kafka/send/index.js.map +1 -1
- package/dist/destinations/kafka/utils.js +0 -13
- package/dist/destinations/kafka/utils.js.map +1 -1
- package/dist/destinations/linkedin-audiences/updateAudience/fields.js.map +1 -1
- package/dist/destinations/linkedin-conversions/api/index.js +6 -2
- package/dist/destinations/linkedin-conversions/api/index.js.map +1 -1
- package/dist/destinations/linkedin-conversions/streamConversion/index.js.map +1 -1
- package/dist/destinations/reddit-conversions-api/fields.js +161 -2
- package/dist/destinations/reddit-conversions-api/fields.js.map +1 -1
- package/dist/destinations/salesforce-marketing-cloud/asyncDataExtension/index.js +10 -0
- package/dist/destinations/salesforce-marketing-cloud/asyncDataExtension/index.js.map +1 -1
- package/dist/destinations/snap-audiences/index.js.map +1 -1
- package/dist/destinations/snap-audiences/syncAudience/fields.js +2 -2
- package/dist/destinations/snap-audiences/syncAudience/fields.js.map +1 -1
- package/dist/destinations/snap-audiences/syncAudience/functions.js +27 -6
- package/dist/destinations/snap-audiences/syncAudience/functions.js.map +1 -1
- package/dist/destinations/snap-audiences/syncAudience/types.d.ts +1 -1
- package/dist/destinations/stackadapt-audiences/forwardAudienceEvent/constants.js +11 -11
- package/dist/destinations/stackadapt-audiences/forwardAudienceEvent/fields.js +9 -3
- package/dist/destinations/stackadapt-audiences/forwardAudienceEvent/fields.js.map +1 -1
- package/dist/destinations/stackadapt-audiences/forwardAudienceEvent/functions.js +2 -2
- package/dist/destinations/stackadapt-audiences/forwardAudienceEvent/functions.js.map +1 -1
- package/dist/destinations/taguchi/syncUserProfile/utils.js.map +1 -1
- package/dist/destinations/tiktok-app-events/generated-types.d.ts +4 -0
- package/dist/destinations/tiktok-app-events/generated-types.js +3 -0
- package/dist/destinations/tiktok-app-events/generated-types.js.map +1 -0
- package/dist/destinations/tiktok-app-events/index.d.ts +24 -0
- package/dist/destinations/tiktok-app-events/index.js +103 -0
- package/dist/destinations/tiktok-app-events/index.js.map +1 -0
- package/dist/destinations/tiktok-app-events/reportAppEvent/constants.d.ts +9 -0
- package/dist/destinations/tiktok-app-events/reportAppEvent/constants.js +13 -0
- package/dist/destinations/tiktok-app-events/reportAppEvent/constants.js.map +1 -0
- package/dist/destinations/tiktok-app-events/reportAppEvent/fields/common_fields.d.ts +10 -0
- package/dist/destinations/tiktok-app-events/reportAppEvent/fields/common_fields.js +719 -0
- package/dist/destinations/tiktok-app-events/reportAppEvent/fields/common_fields.js.map +1 -0
- package/dist/destinations/tiktok-app-events/reportAppEvent/formatter.d.ts +6 -0
- package/dist/destinations/tiktok-app-events/reportAppEvent/formatter.js +65 -0
- package/dist/destinations/tiktok-app-events/reportAppEvent/formatter.js.map +1 -0
- package/dist/destinations/tiktok-app-events/reportAppEvent/generated-types.d.ts +52 -0
- package/dist/destinations/tiktok-app-events/reportAppEvent/generated-types.js +3 -0
- package/dist/destinations/tiktok-app-events/reportAppEvent/generated-types.js.map +1 -0
- package/dist/destinations/tiktok-app-events/reportAppEvent/index.d.ts +5 -0
- package/dist/destinations/tiktok-app-events/reportAppEvent/index.js +16 -0
- package/dist/destinations/tiktok-app-events/reportAppEvent/index.js.map +1 -0
- package/dist/destinations/tiktok-app-events/reportAppEvent/types.d.ts +73 -0
- package/dist/destinations/tiktok-app-events/reportAppEvent/types.js +3 -0
- package/dist/destinations/tiktok-app-events/reportAppEvent/types.js.map +1 -0
- package/dist/destinations/tiktok-app-events/reportAppEvent/utils.d.ts +4 -0
- package/dist/destinations/tiktok-app-events/reportAppEvent/utils.js +154 -0
- package/dist/destinations/tiktok-app-events/reportAppEvent/utils.js.map +1 -0
- package/dist/destinations/yonoma/trackEvent/index.js +1 -1
- package/dist/destinations/yonoma/trackEvent/index.js.map +1 -1
- package/dist/destinations/yonoma/trackPageView/index.js +1 -1
- package/dist/destinations/yonoma/trackPageView/index.js.map +1 -1
- package/dist/destinations/yonoma/upsertContact/index.js +3 -3
- package/dist/destinations/yonoma/upsertContact/index.js.map +1 -1
- package/package.json +4 -4
- package/dist/lib/AWS/utils.d.ts +0 -5
- package/dist/lib/AWS/utils.js +0 -22
- package/dist/lib/AWS/utils.js.map +0 -1
|
@@ -0,0 +1,719 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.common_fields = exports.APP_STANDARD_EVENT_NAMES = exports.STANDARD_EVENTS = exports.PRODUCT_MAPPING_TYPE = void 0;
|
|
4
|
+
const constants_1 = require("../constants");
|
|
5
|
+
exports.PRODUCT_MAPPING_TYPE = {
|
|
6
|
+
MULTIPLE: 'MULTIPLE',
|
|
7
|
+
SINGLE: 'SINGLE',
|
|
8
|
+
NONE: 'NONE'
|
|
9
|
+
};
|
|
10
|
+
exports.STANDARD_EVENTS = [
|
|
11
|
+
{
|
|
12
|
+
key: 'ACHIEVE_LEVEL',
|
|
13
|
+
ttEventName: 'AchieveLevel',
|
|
14
|
+
description: 'Achieve a level',
|
|
15
|
+
segmentEventName: 'Level Achieved',
|
|
16
|
+
productMappingType: exports.PRODUCT_MAPPING_TYPE.NONE,
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
key: 'ADD_PAYMENT_INFO',
|
|
20
|
+
ttEventName: 'AddPaymentInfo',
|
|
21
|
+
description: 'Add payment information',
|
|
22
|
+
segmentEventName: 'Payment Info Entered',
|
|
23
|
+
productMappingType: exports.PRODUCT_MAPPING_TYPE.NONE,
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
key: 'ADD_TO_CART',
|
|
27
|
+
ttEventName: 'AddToCart',
|
|
28
|
+
description: 'Add to cart',
|
|
29
|
+
segmentEventName: 'Product Added',
|
|
30
|
+
productMappingType: exports.PRODUCT_MAPPING_TYPE.SINGLE,
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
key: 'ADD_TO_WISHLIST',
|
|
34
|
+
ttEventName: 'AddToWishlist',
|
|
35
|
+
description: 'Add to wishlist',
|
|
36
|
+
segmentEventName: 'Product Added to Wishlist',
|
|
37
|
+
productMappingType: exports.PRODUCT_MAPPING_TYPE.SINGLE,
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
key: 'CHECKOUT',
|
|
41
|
+
ttEventName: 'Checkout',
|
|
42
|
+
description: 'Place an order',
|
|
43
|
+
segmentEventName: 'Checkout Started',
|
|
44
|
+
productMappingType: exports.PRODUCT_MAPPING_TYPE.MULTIPLE,
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
key: 'COMPLETE_TUTORIAL',
|
|
48
|
+
ttEventName: 'CompleteTutorial',
|
|
49
|
+
description: 'Complete the tutorial',
|
|
50
|
+
segmentEventName: 'Tutorial Completed',
|
|
51
|
+
productMappingType: exports.PRODUCT_MAPPING_TYPE.NONE,
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
key: 'CREATE_GROUP',
|
|
55
|
+
ttEventName: 'CreateGroup',
|
|
56
|
+
description: 'Create a group',
|
|
57
|
+
segmentEventName: 'Group Created',
|
|
58
|
+
productMappingType: exports.PRODUCT_MAPPING_TYPE.NONE,
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
key: 'CREATE_ROLE',
|
|
62
|
+
ttEventName: 'CreateRole',
|
|
63
|
+
description: 'Create a role',
|
|
64
|
+
segmentEventName: 'Role Created',
|
|
65
|
+
productMappingType: exports.PRODUCT_MAPPING_TYPE.NONE,
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
key: 'GENERATE_LEAD',
|
|
69
|
+
ttEventName: 'GenerateLead',
|
|
70
|
+
description: 'Generate a lead',
|
|
71
|
+
segmentEventName: 'Lead Generated',
|
|
72
|
+
productMappingType: exports.PRODUCT_MAPPING_TYPE.NONE,
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
key: 'IN_APP_AD_CLICK',
|
|
76
|
+
ttEventName: 'InAppADClick',
|
|
77
|
+
description: 'In-app ad click',
|
|
78
|
+
segmentEventName: 'Application Ad Clicked',
|
|
79
|
+
productMappingType: exports.PRODUCT_MAPPING_TYPE.NONE,
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
key: 'IN_APP_AD_IMPR',
|
|
83
|
+
ttEventName: 'InAppADImpr',
|
|
84
|
+
description: 'In-app ad impression',
|
|
85
|
+
segmentEventName: 'Application Ad Served',
|
|
86
|
+
productMappingType: exports.PRODUCT_MAPPING_TYPE.NONE,
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
key: 'INSTALL_APP',
|
|
90
|
+
ttEventName: 'InstallApp',
|
|
91
|
+
description: 'Install the app',
|
|
92
|
+
segmentEventName: 'Application Installed',
|
|
93
|
+
productMappingType: exports.PRODUCT_MAPPING_TYPE.NONE,
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
key: 'JOIN_GROUP',
|
|
97
|
+
ttEventName: 'JoinGroup',
|
|
98
|
+
description: 'Join a group',
|
|
99
|
+
segmentEventName: 'Group Joined',
|
|
100
|
+
productMappingType: exports.PRODUCT_MAPPING_TYPE.NONE,
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
key: 'LAUNCH_APP',
|
|
104
|
+
ttEventName: 'LaunchAPP',
|
|
105
|
+
description: 'Launch the app',
|
|
106
|
+
segmentEventName: 'Application Opened',
|
|
107
|
+
productMappingType: exports.PRODUCT_MAPPING_TYPE.NONE,
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
key: 'LOAN_APPLICATION',
|
|
111
|
+
ttEventName: 'LoanApplication',
|
|
112
|
+
description: 'Apply for a loan',
|
|
113
|
+
segmentEventName: 'Loan Application Submitted',
|
|
114
|
+
productMappingType: exports.PRODUCT_MAPPING_TYPE.NONE,
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
key: 'LOAN_APPROVAL',
|
|
118
|
+
ttEventName: 'LoanApproval',
|
|
119
|
+
description: 'Loan is approved',
|
|
120
|
+
segmentEventName: 'Loan Approved',
|
|
121
|
+
productMappingType: exports.PRODUCT_MAPPING_TYPE.NONE,
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
key: 'LOAN_DISBURSAL',
|
|
125
|
+
ttEventName: 'LoanDisbursal',
|
|
126
|
+
description: 'Loan is disbursed',
|
|
127
|
+
segmentEventName: 'Loan Disbursed',
|
|
128
|
+
productMappingType: exports.PRODUCT_MAPPING_TYPE.NONE,
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
key: 'LOGIN',
|
|
132
|
+
ttEventName: 'Login',
|
|
133
|
+
description: 'Log in successfully',
|
|
134
|
+
segmentEventName: 'Signed In',
|
|
135
|
+
productMappingType: exports.PRODUCT_MAPPING_TYPE.NONE,
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
key: 'PURCHASE',
|
|
139
|
+
ttEventName: 'Purchase',
|
|
140
|
+
description: 'Complete payment',
|
|
141
|
+
segmentEventName: 'Order Completed',
|
|
142
|
+
productMappingType: exports.PRODUCT_MAPPING_TYPE.MULTIPLE,
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
key: 'RATE',
|
|
146
|
+
ttEventName: 'Rate',
|
|
147
|
+
description: 'Rate',
|
|
148
|
+
segmentEventName: 'Rating Completed',
|
|
149
|
+
productMappingType: exports.PRODUCT_MAPPING_TYPE.NONE,
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
key: 'REGISTRATION',
|
|
153
|
+
ttEventName: 'Registration',
|
|
154
|
+
description: 'Complete the registration',
|
|
155
|
+
segmentEventName: 'Signed Up',
|
|
156
|
+
productMappingType: exports.PRODUCT_MAPPING_TYPE.NONE,
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
key: 'SEARCH',
|
|
160
|
+
ttEventName: 'Search',
|
|
161
|
+
description: 'Search',
|
|
162
|
+
segmentEventName: 'Products Searched',
|
|
163
|
+
productMappingType: exports.PRODUCT_MAPPING_TYPE.NONE,
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
key: 'SPEND_CREDITS',
|
|
167
|
+
ttEventName: 'SpendCredits',
|
|
168
|
+
description: 'Spend credits',
|
|
169
|
+
segmentEventName: 'Credits Spent',
|
|
170
|
+
productMappingType: exports.PRODUCT_MAPPING_TYPE.NONE,
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
key: 'START_TRIAL',
|
|
174
|
+
ttEventName: 'StartTrial',
|
|
175
|
+
description: 'Start the trial',
|
|
176
|
+
segmentEventName: 'Trial Started',
|
|
177
|
+
productMappingType: exports.PRODUCT_MAPPING_TYPE.NONE,
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
key: 'SUBSCRIBE',
|
|
181
|
+
ttEventName: 'Subscribe',
|
|
182
|
+
description: 'Subscribe',
|
|
183
|
+
segmentEventName: 'User Subscribed',
|
|
184
|
+
productMappingType: exports.PRODUCT_MAPPING_TYPE.NONE,
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
key: 'UNLOCK_ACHIEVEMENT',
|
|
188
|
+
ttEventName: 'UnlockAchievement',
|
|
189
|
+
description: 'Unlock an achievement',
|
|
190
|
+
segmentEventName: 'Achievement Unlocked',
|
|
191
|
+
productMappingType: exports.PRODUCT_MAPPING_TYPE.NONE,
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
key: 'VIEW_CONTENT',
|
|
195
|
+
ttEventName: 'ViewContent',
|
|
196
|
+
description: 'View details',
|
|
197
|
+
segmentEventName: 'Product Viewed',
|
|
198
|
+
productMappingType: exports.PRODUCT_MAPPING_TYPE.SINGLE,
|
|
199
|
+
},
|
|
200
|
+
];
|
|
201
|
+
exports.APP_STANDARD_EVENT_NAMES = exports.STANDARD_EVENTS.reduce((acc, item) => {
|
|
202
|
+
acc[item.key] = item.ttEventName;
|
|
203
|
+
return acc;
|
|
204
|
+
}, {});
|
|
205
|
+
exports.common_fields = {
|
|
206
|
+
event_source: {
|
|
207
|
+
label: 'Event Source',
|
|
208
|
+
type: 'string',
|
|
209
|
+
required: true,
|
|
210
|
+
description: "The type of events you are uploading through TikTok Events API. For non mobile related events use one of the following Integrations: [TikTok Conversions](https://segment.com/docs/connections/destinations/catalog/tiktok-conversions/), [TikTok Offline Conversions](https://segment.com/docs/connections/destinations/catalog/actions-tiktok-offline-conversions) or [TikTok Pixel](https://segment.com/docs/connections/destinations/catalog/actions-tiktok-pixel).",
|
|
211
|
+
default: constants_1.APP,
|
|
212
|
+
choices: [
|
|
213
|
+
{
|
|
214
|
+
value: constants_1.APP,
|
|
215
|
+
label: 'The events took place on a Mobile App.'
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
event: {
|
|
220
|
+
label: 'Event Name',
|
|
221
|
+
type: 'string',
|
|
222
|
+
required: true,
|
|
223
|
+
description: 'Conversion event name. Please refer to the "App Standard Events" section on in TikTok’s [Supported events documentation](https://business-api.tiktok.com/portal/docs?id=1771101186666498) for accepted event names.'
|
|
224
|
+
},
|
|
225
|
+
event_id: {
|
|
226
|
+
label: 'Event ID',
|
|
227
|
+
type: 'string',
|
|
228
|
+
description: 'Any hashed ID that can identify a unique user/session.',
|
|
229
|
+
default: {
|
|
230
|
+
'@path': '$.messageId'
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
timestamp: {
|
|
234
|
+
label: 'Event Timestamp',
|
|
235
|
+
type: 'string',
|
|
236
|
+
description: 'Timestamp that the event took place, in ISO 8601 format.',
|
|
237
|
+
default: {
|
|
238
|
+
'@path': '$.timestamp'
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
phone_number: {
|
|
242
|
+
label: 'Phone Number',
|
|
243
|
+
description: 'A single phone number or array of phone numbers in E.164 standard format. Segment will hash this value before sending to TikTok. e.g. +14150000000. Segment will hash this value before sending to TikTok.',
|
|
244
|
+
type: 'string',
|
|
245
|
+
multiple: true,
|
|
246
|
+
default: {
|
|
247
|
+
'@if': {
|
|
248
|
+
exists: { '@path': '$.properties.phone' },
|
|
249
|
+
then: { '@path': '$.properties.phone' },
|
|
250
|
+
else: { '@path': '$.context.traits.phone' }
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
email: {
|
|
255
|
+
label: 'Email',
|
|
256
|
+
description: 'A single email address or an array of email addresses. Segment will hash this value before sending to TikTok.',
|
|
257
|
+
type: 'string',
|
|
258
|
+
multiple: true,
|
|
259
|
+
default: {
|
|
260
|
+
'@if': {
|
|
261
|
+
exists: { '@path': '$.properties.email' },
|
|
262
|
+
then: { '@path': '$.properties.email' },
|
|
263
|
+
else: { '@path': '$.context.traits.email' }
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
advertising_id: {
|
|
268
|
+
label: 'Mobile Advertising ID',
|
|
269
|
+
description: 'Identifier for Advertisers (IDFA for iOS devices and AAID for Android devices). Used for mobile app events tracking.',
|
|
270
|
+
type: 'string',
|
|
271
|
+
default: {
|
|
272
|
+
'@path': '$.context.device.advertisingId'
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
app: {
|
|
276
|
+
label: 'App Information',
|
|
277
|
+
type: 'object',
|
|
278
|
+
description: 'Information about the mobile app where the event took place. This field is an allowlist-only feature. If you would like to access it, please contact your TikTok representative.',
|
|
279
|
+
defaultObjectUI: 'keyvalue',
|
|
280
|
+
required: true,
|
|
281
|
+
properties: {
|
|
282
|
+
app_id: {
|
|
283
|
+
label: 'Mobile App ID',
|
|
284
|
+
description: 'For iOS Apps use the app ID found in the App Store URL. For Android Apps in the Google Play store, use the app ID found in the Google Play store URL. For Android Apps not in the Google Play store, use the package name.',
|
|
285
|
+
type: 'string',
|
|
286
|
+
required: true
|
|
287
|
+
},
|
|
288
|
+
app_name: {
|
|
289
|
+
label: 'App Name',
|
|
290
|
+
description: 'The name of the mobile app.',
|
|
291
|
+
type: 'string'
|
|
292
|
+
},
|
|
293
|
+
app_version: {
|
|
294
|
+
label: 'App Version',
|
|
295
|
+
description: 'The version of the mobile app.',
|
|
296
|
+
type: 'string'
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
default: {
|
|
300
|
+
app_id: {
|
|
301
|
+
'@path': '$.context.app.namespace'
|
|
302
|
+
},
|
|
303
|
+
app_name: {
|
|
304
|
+
'@path': '$.context.app.name'
|
|
305
|
+
},
|
|
306
|
+
app_version: {
|
|
307
|
+
'@path': '$.context.app.version'
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
ad: {
|
|
312
|
+
label: 'Ad Information',
|
|
313
|
+
type: 'object',
|
|
314
|
+
description: 'Information about the ad that led to the app event. This field is an allowlist-only feature. If you would like to access it, please contact your TikTok representative.',
|
|
315
|
+
defaultObjectUI: 'keyvalue',
|
|
316
|
+
properties: {
|
|
317
|
+
callback: {
|
|
318
|
+
label: 'Callback',
|
|
319
|
+
description: 'Callback information to help attribute events.',
|
|
320
|
+
type: 'string'
|
|
321
|
+
},
|
|
322
|
+
campaign_id: {
|
|
323
|
+
label: 'Campaign ID',
|
|
324
|
+
description: 'The TikTok Ad Campaign ID.',
|
|
325
|
+
type: 'string'
|
|
326
|
+
},
|
|
327
|
+
ad_id: {
|
|
328
|
+
label: 'Ad ID',
|
|
329
|
+
description: 'Ad group ID.',
|
|
330
|
+
type: 'string'
|
|
331
|
+
},
|
|
332
|
+
creative_id: {
|
|
333
|
+
label: 'Creative ID',
|
|
334
|
+
description: 'Ad ID.',
|
|
335
|
+
type: 'string'
|
|
336
|
+
},
|
|
337
|
+
is_retargeting: {
|
|
338
|
+
label: 'Is Retargeting',
|
|
339
|
+
description: 'Whether the user is a retargeting user.',
|
|
340
|
+
type: 'boolean'
|
|
341
|
+
},
|
|
342
|
+
attributed: {
|
|
343
|
+
label: 'Attributed',
|
|
344
|
+
description: 'Whether the event is attributed.',
|
|
345
|
+
type: 'boolean'
|
|
346
|
+
},
|
|
347
|
+
attribution_type: {
|
|
348
|
+
label: 'Attribution Type',
|
|
349
|
+
description: 'Attribution type.',
|
|
350
|
+
type: 'string'
|
|
351
|
+
},
|
|
352
|
+
attribution_provider: {
|
|
353
|
+
label: 'Attribution Provider',
|
|
354
|
+
description: 'Attribution provider.',
|
|
355
|
+
type: 'string'
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
default: {
|
|
359
|
+
campaign_id: {
|
|
360
|
+
'@path': '$.properties.campaign.name'
|
|
361
|
+
},
|
|
362
|
+
ad_id: {
|
|
363
|
+
'@path': '$.properties.campaign.ad_group'
|
|
364
|
+
},
|
|
365
|
+
creative_id: {
|
|
366
|
+
'@path': '$.properties.campaign.ad_creative'
|
|
367
|
+
},
|
|
368
|
+
attribution_provider: {
|
|
369
|
+
'@path': '$.properties.provider'
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
device_details: {
|
|
374
|
+
label: 'Device Details',
|
|
375
|
+
type: 'object',
|
|
376
|
+
defaultObjectUI: 'keyvalue',
|
|
377
|
+
description: 'Mobile device details.',
|
|
378
|
+
properties: {
|
|
379
|
+
device_type: {
|
|
380
|
+
label: 'Device Type',
|
|
381
|
+
description: 'Used to help determine which device the Mobile Advertising ID is and Mobile Device ID is for.',
|
|
382
|
+
type: 'string'
|
|
383
|
+
},
|
|
384
|
+
device_id: {
|
|
385
|
+
label: 'Device ID',
|
|
386
|
+
description: 'The iOS IDFV. Android Device ID is not supported at this time.',
|
|
387
|
+
type: 'string'
|
|
388
|
+
},
|
|
389
|
+
device_version: {
|
|
390
|
+
label: 'Device Version',
|
|
391
|
+
description: 'The operating system version of the device.',
|
|
392
|
+
type: 'string'
|
|
393
|
+
},
|
|
394
|
+
ad_tracking_enabled: {
|
|
395
|
+
label: 'Ad Tracking Enabled',
|
|
396
|
+
description: 'Indicates whether the user has limited ad tracking on their device.',
|
|
397
|
+
type: 'boolean'
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
default: {
|
|
401
|
+
device_type: {
|
|
402
|
+
'@path': '$.context.device.type'
|
|
403
|
+
},
|
|
404
|
+
device_id: {
|
|
405
|
+
'@path': '$.context.device.id'
|
|
406
|
+
},
|
|
407
|
+
device_version: {
|
|
408
|
+
'@path': '$.context.os.version'
|
|
409
|
+
},
|
|
410
|
+
ad_tracking_enabled: {
|
|
411
|
+
'@path': '$.context.device.adTrackingEnabled'
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
external_id: {
|
|
416
|
+
label: 'External ID',
|
|
417
|
+
description: 'Uniquely identifies the user who triggered the conversion event. Segment will hash this value before sending to TikTok. TikTok Conversions Destination supports both string and string[] types for sending external ID(s).',
|
|
418
|
+
type: 'string',
|
|
419
|
+
multiple: true,
|
|
420
|
+
default: {
|
|
421
|
+
'@if': {
|
|
422
|
+
exists: { '@path': '$.userId' },
|
|
423
|
+
then: { '@path': '$.userId' },
|
|
424
|
+
else: { '@path': '$.anonymousId' }
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
locale: {
|
|
429
|
+
label: 'Locale',
|
|
430
|
+
description: 'The BCP 47 language identifier. For reference, refer to the [IETF BCP 47 standardized code](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).',
|
|
431
|
+
type: 'string',
|
|
432
|
+
default: {
|
|
433
|
+
'@path': '$.context.locale'
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
att_status: {
|
|
437
|
+
label: 'App Tracking Transparency Status',
|
|
438
|
+
description: "The App Tracking Transparency (ATT) status of the user on iOS devices. This field is required when sending events from iOS 14.5+ devices but should be set to 'Not Applicable' if the iOS version is below 14 or the device is running Android. Selecting AUTO will allow Segment to determine the value to send based on Mobile platform, version, and ad tracking settings.",
|
|
439
|
+
type: 'string',
|
|
440
|
+
required: true,
|
|
441
|
+
choices: [
|
|
442
|
+
{ label: constants_1.APP_STATUS.AUTHORIZED, value: constants_1.APP_STATUS.AUTHORIZED },
|
|
443
|
+
{ label: constants_1.APP_STATUS.DENIED, value: constants_1.APP_STATUS.DENIED },
|
|
444
|
+
{ label: constants_1.APP_STATUS.NOT_DETERMINED, value: constants_1.APP_STATUS.NOT_DETERMINED },
|
|
445
|
+
{ label: constants_1.APP_STATUS.RESTRICTED, value: constants_1.APP_STATUS.RESTRICTED },
|
|
446
|
+
{ label: constants_1.APP_STATUS.NOT_APPLICABLE, value: constants_1.APP_STATUS.NOT_APPLICABLE },
|
|
447
|
+
{ label: constants_1.APP_STATUS.AUTO, value: constants_1.APP_STATUS.AUTO }
|
|
448
|
+
],
|
|
449
|
+
default: constants_1.APP_STATUS.AUTO
|
|
450
|
+
},
|
|
451
|
+
ip: {
|
|
452
|
+
label: 'IP Address',
|
|
453
|
+
type: 'string',
|
|
454
|
+
description: 'IP address of the device.',
|
|
455
|
+
default: {
|
|
456
|
+
'@path': '$.context.ip'
|
|
457
|
+
}
|
|
458
|
+
},
|
|
459
|
+
user_agent: {
|
|
460
|
+
label: 'User Agent',
|
|
461
|
+
type: 'string',
|
|
462
|
+
description: 'User agent from the user’s device.',
|
|
463
|
+
default: {
|
|
464
|
+
'@path': '$.context.userAgent'
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
contents: {
|
|
468
|
+
label: 'Contents',
|
|
469
|
+
type: 'object',
|
|
470
|
+
multiple: true,
|
|
471
|
+
description: 'Related item details for the event.',
|
|
472
|
+
defaultObjectUI: 'keyvalue',
|
|
473
|
+
properties: {
|
|
474
|
+
price: {
|
|
475
|
+
label: 'Price',
|
|
476
|
+
description: 'Price of the item.',
|
|
477
|
+
type: 'number'
|
|
478
|
+
},
|
|
479
|
+
quantity: {
|
|
480
|
+
label: 'Quantity',
|
|
481
|
+
description: 'Number of items.',
|
|
482
|
+
type: 'number',
|
|
483
|
+
required: {
|
|
484
|
+
match: 'any',
|
|
485
|
+
conditions: [
|
|
486
|
+
{
|
|
487
|
+
fieldKey: 'event',
|
|
488
|
+
operator: 'is',
|
|
489
|
+
value: exports.APP_STANDARD_EVENT_NAMES.PURCHASE
|
|
490
|
+
}
|
|
491
|
+
]
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
content_category: {
|
|
495
|
+
label: 'Content Category',
|
|
496
|
+
description: 'Category of the product item.',
|
|
497
|
+
type: 'string'
|
|
498
|
+
},
|
|
499
|
+
content_id: {
|
|
500
|
+
label: 'Content ID',
|
|
501
|
+
description: 'ID of the product item.',
|
|
502
|
+
type: 'string'
|
|
503
|
+
},
|
|
504
|
+
content_name: {
|
|
505
|
+
label: 'Content Name',
|
|
506
|
+
description: 'Name of the product item.',
|
|
507
|
+
type: 'string'
|
|
508
|
+
},
|
|
509
|
+
brand: {
|
|
510
|
+
label: 'Brand',
|
|
511
|
+
description: 'Brand name of the product item.',
|
|
512
|
+
type: 'string'
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
required: {
|
|
516
|
+
match: 'any',
|
|
517
|
+
conditions: [
|
|
518
|
+
{
|
|
519
|
+
fieldKey: 'event',
|
|
520
|
+
operator: 'is',
|
|
521
|
+
value: exports.APP_STANDARD_EVENT_NAMES.ADD_TO_CART
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
fieldKey: 'event',
|
|
525
|
+
operator: 'is',
|
|
526
|
+
value: exports.APP_STANDARD_EVENT_NAMES.ADD_TO_WISHLIST
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
fieldKey: 'event',
|
|
530
|
+
operator: 'is',
|
|
531
|
+
value: exports.APP_STANDARD_EVENT_NAMES.CHECKOUT
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
fieldKey: 'event',
|
|
535
|
+
operator: 'is',
|
|
536
|
+
value: exports.APP_STANDARD_EVENT_NAMES.PURCHASE
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
fieldKey: 'event',
|
|
540
|
+
operator: 'is',
|
|
541
|
+
value: exports.APP_STANDARD_EVENT_NAMES.SUBSCRIBE
|
|
542
|
+
}
|
|
543
|
+
]
|
|
544
|
+
}
|
|
545
|
+
},
|
|
546
|
+
content_ids: {
|
|
547
|
+
label: 'Content IDs',
|
|
548
|
+
description: "Product IDs associated with the event, such as SKUs. Do not populate this field if the 'Contents' field is populated. This field accepts a single string value or an array of string values.",
|
|
549
|
+
type: 'string',
|
|
550
|
+
multiple: true,
|
|
551
|
+
default: {
|
|
552
|
+
'@path': '$.properties.content_ids'
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
num_items: {
|
|
556
|
+
label: 'Number of Items',
|
|
557
|
+
type: 'number',
|
|
558
|
+
description: 'Number of items when checkout was initiated. Used with the InitiateCheckout event.',
|
|
559
|
+
default: {
|
|
560
|
+
'@path': '$.properties.num_items'
|
|
561
|
+
}
|
|
562
|
+
},
|
|
563
|
+
content_type: {
|
|
564
|
+
label: 'Content Type',
|
|
565
|
+
description: 'Type of the product item. When the `content_id` in the `Contents` field is specified as a `sku_id`, set this field to `product`. When the `content_id` in the `Contents` field is specified as an `item_group_id`, set this field to `product_group`.',
|
|
566
|
+
type: 'string',
|
|
567
|
+
choices: [
|
|
568
|
+
{ label: 'product', value: 'product' },
|
|
569
|
+
{ label: 'product_group', value: 'product_group' }
|
|
570
|
+
],
|
|
571
|
+
default: 'product',
|
|
572
|
+
required: {
|
|
573
|
+
match: 'any',
|
|
574
|
+
conditions: [
|
|
575
|
+
{
|
|
576
|
+
fieldKey: 'event',
|
|
577
|
+
operator: 'is',
|
|
578
|
+
value: exports.APP_STANDARD_EVENT_NAMES.ADD_TO_CART
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
fieldKey: 'event',
|
|
582
|
+
operator: 'is',
|
|
583
|
+
value: exports.APP_STANDARD_EVENT_NAMES.ADD_TO_WISHLIST
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
fieldKey: 'event',
|
|
587
|
+
operator: 'is',
|
|
588
|
+
value: exports.APP_STANDARD_EVENT_NAMES.CHECKOUT
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
fieldKey: 'event',
|
|
592
|
+
operator: 'is',
|
|
593
|
+
value: exports.APP_STANDARD_EVENT_NAMES.PURCHASE
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
fieldKey: 'event',
|
|
597
|
+
operator: 'is',
|
|
598
|
+
value: exports.APP_STANDARD_EVENT_NAMES.VIEW_CONTENT
|
|
599
|
+
}
|
|
600
|
+
]
|
|
601
|
+
}
|
|
602
|
+
},
|
|
603
|
+
currency: {
|
|
604
|
+
label: 'Currency',
|
|
605
|
+
type: 'string',
|
|
606
|
+
description: 'Currency for the value specified as ISO 4217 code.',
|
|
607
|
+
default: {
|
|
608
|
+
'@path': '$.properties.currency'
|
|
609
|
+
},
|
|
610
|
+
required: {
|
|
611
|
+
match: 'any',
|
|
612
|
+
conditions: [
|
|
613
|
+
{
|
|
614
|
+
fieldKey: 'event',
|
|
615
|
+
operator: 'is',
|
|
616
|
+
value: exports.APP_STANDARD_EVENT_NAMES.ADD_TO_CART
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
fieldKey: 'event',
|
|
620
|
+
operator: 'is',
|
|
621
|
+
value: exports.APP_STANDARD_EVENT_NAMES.ADD_TO_WISHLIST
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
fieldKey: 'event',
|
|
625
|
+
operator: 'is',
|
|
626
|
+
value: exports.APP_STANDARD_EVENT_NAMES.CHECKOUT
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
fieldKey: 'event',
|
|
630
|
+
operator: 'is',
|
|
631
|
+
value: exports.APP_STANDARD_EVENT_NAMES.PURCHASE
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
fieldKey: 'event',
|
|
635
|
+
operator: 'is',
|
|
636
|
+
value: exports.APP_STANDARD_EVENT_NAMES.VIEW_CONTENT
|
|
637
|
+
}
|
|
638
|
+
]
|
|
639
|
+
}
|
|
640
|
+
},
|
|
641
|
+
value: {
|
|
642
|
+
label: 'Value',
|
|
643
|
+
type: 'number',
|
|
644
|
+
description: 'Value of the order or items sold.',
|
|
645
|
+
default: {
|
|
646
|
+
'@if': {
|
|
647
|
+
exists: { '@path': '$.properties.value' },
|
|
648
|
+
then: { '@path': '$.properties.value' },
|
|
649
|
+
else: { '@path': '$.properties.revenue' }
|
|
650
|
+
}
|
|
651
|
+
},
|
|
652
|
+
required: {
|
|
653
|
+
match: 'any',
|
|
654
|
+
conditions: [
|
|
655
|
+
{
|
|
656
|
+
fieldKey: 'event',
|
|
657
|
+
operator: 'is',
|
|
658
|
+
value: exports.APP_STANDARD_EVENT_NAMES.ADD_TO_CART
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
fieldKey: 'event',
|
|
662
|
+
operator: 'is',
|
|
663
|
+
value: exports.APP_STANDARD_EVENT_NAMES.ADD_TO_WISHLIST
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
fieldKey: 'event',
|
|
667
|
+
operator: 'is',
|
|
668
|
+
value: exports.APP_STANDARD_EVENT_NAMES.CHECKOUT
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
fieldKey: 'event',
|
|
672
|
+
operator: 'is',
|
|
673
|
+
value: exports.APP_STANDARD_EVENT_NAMES.PURCHASE
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
fieldKey: 'event',
|
|
677
|
+
operator: 'is',
|
|
678
|
+
value: exports.APP_STANDARD_EVENT_NAMES.VIEW_CONTENT
|
|
679
|
+
}
|
|
680
|
+
]
|
|
681
|
+
}
|
|
682
|
+
},
|
|
683
|
+
description: {
|
|
684
|
+
label: 'Description',
|
|
685
|
+
type: 'string',
|
|
686
|
+
description: 'A string description of the item or page.'
|
|
687
|
+
},
|
|
688
|
+
limited_data_use: {
|
|
689
|
+
label: 'Limited Data Use',
|
|
690
|
+
type: 'boolean',
|
|
691
|
+
description: 'Use this field to flag an event for limited data processing. TikTok will recognize this parameter as a request for limited data processing, and will limit its processing activities accordingly if the event shared occurred in an eligible location. To learn more about the Limited Data Use feature, refer to [Events API 2.0 - Limited Data Use](https://ads.tiktok.com/marketing_api/docs?id=1771101204435970).',
|
|
692
|
+
default: {
|
|
693
|
+
'@path': '$.properties.limited_data_use'
|
|
694
|
+
}
|
|
695
|
+
},
|
|
696
|
+
test_event_code: {
|
|
697
|
+
label: 'Test Event Code',
|
|
698
|
+
type: 'string',
|
|
699
|
+
description: 'Use this field to specify that events should be test events rather than actual traffic. You can find your Test Event Code in your TikTok Events Manager under the "Test Event" tab. You\'ll want to remove your Test Event Code when sending real traffic through this integration.'
|
|
700
|
+
},
|
|
701
|
+
search_string: {
|
|
702
|
+
label: 'Search String',
|
|
703
|
+
type: 'string',
|
|
704
|
+
description: 'The text string entered by the user for the search. Optionally used with the Search event.',
|
|
705
|
+
default: {
|
|
706
|
+
'@path': '$.properties.search_string'
|
|
707
|
+
},
|
|
708
|
+
depends_on: {
|
|
709
|
+
conditions: [
|
|
710
|
+
{
|
|
711
|
+
fieldKey: 'event',
|
|
712
|
+
operator: 'is',
|
|
713
|
+
value: 'Search'
|
|
714
|
+
}
|
|
715
|
+
]
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
};
|
|
719
|
+
//# sourceMappingURL=common_fields.js.map
|