@segment/action-destinations 3.340.0-staging.0 → 3.340.1-staging.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/destinations/acoustic-s3tc/receiveEvents/eventprocessing.js +6 -2
- package/dist/destinations/acoustic-s3tc/receiveEvents/eventprocessing.js.map +1 -1
- package/dist/destinations/acoustic-s3tc/receiveEvents/preCheck.js +7 -1
- package/dist/destinations/acoustic-s3tc/receiveEvents/preCheck.js.map +1 -1
- package/dist/destinations/aggregations-io/generated-types.d.ts +4 -0
- package/dist/destinations/aggregations-io/generated-types.js +3 -0
- package/dist/destinations/aggregations-io/generated-types.js.map +1 -0
- package/dist/destinations/aggregations-io/index.d.ts +4 -0
- package/dist/destinations/aggregations-io/index.js +48 -0
- package/dist/destinations/aggregations-io/index.js.map +1 -0
- package/dist/destinations/aggregations-io/send/generated-types.d.ts +7 -0
- package/dist/destinations/aggregations-io/send/generated-types.js +3 -0
- package/dist/destinations/aggregations-io/send/generated-types.js.map +1 -0
- package/dist/destinations/aggregations-io/send/index.d.ts +5 -0
- package/dist/destinations/aggregations-io/send/index.js +44 -0
- package/dist/destinations/aggregations-io/send/index.js.map +1 -0
- package/dist/destinations/airship/registerAndAssociate/generated-types.d.ts +3 -0
- package/dist/destinations/airship/registerAndAssociate/index.js +35 -7
- package/dist/destinations/airship/registerAndAssociate/index.js.map +1 -1
- package/dist/destinations/airship/utilities.d.ts +3 -1
- package/dist/destinations/airship/utilities.js +76 -41
- package/dist/destinations/airship/utilities.js.map +1 -1
- package/dist/destinations/algolia-insights/conversionEvents/generated-types.d.ts +2 -2
- package/dist/destinations/algolia-insights/conversionEvents/index.js +2 -2
- package/dist/destinations/algolia-insights/conversionEvents/index.js.map +1 -1
- package/dist/destinations/algolia-insights/productAddedEvents/generated-types.d.ts +2 -2
- package/dist/destinations/algolia-insights/productAddedEvents/index.js +2 -2
- package/dist/destinations/algolia-insights/productAddedEvents/index.js.map +1 -1
- package/dist/destinations/algolia-insights/productClickedEvents/generated-types.d.ts +2 -2
- package/dist/destinations/algolia-insights/productClickedEvents/index.js +2 -2
- package/dist/destinations/algolia-insights/productClickedEvents/index.js.map +1 -1
- package/dist/destinations/algolia-insights/productListFilteredEvents/generated-types.d.ts +2 -2
- package/dist/destinations/algolia-insights/productListFilteredEvents/index.js +2 -2
- package/dist/destinations/algolia-insights/productListFilteredEvents/index.js.map +1 -1
- package/dist/destinations/algolia-insights/productViewedEvents/generated-types.d.ts +2 -2
- package/dist/destinations/algolia-insights/productViewedEvents/index.js +2 -2
- package/dist/destinations/algolia-insights/productViewedEvents/index.js.map +1 -1
- package/dist/destinations/braze/index.js.map +1 -1
- package/dist/destinations/braze/trackEvent/generated-types.d.ts +0 -1
- package/dist/destinations/braze/trackEvent/index.js +0 -8
- package/dist/destinations/braze/trackEvent/index.js.map +1 -1
- package/dist/destinations/braze/trackPurchase/generated-types.d.ts +0 -1
- package/dist/destinations/braze/trackPurchase/index.js +0 -8
- package/dist/destinations/braze/trackPurchase/index.js.map +1 -1
- package/dist/destinations/braze/utils.js +11 -15
- package/dist/destinations/braze/utils.js.map +1 -1
- package/dist/destinations/criteo-audiences/addUserToAudience/index.js +5 -5
- package/dist/destinations/criteo-audiences/addUserToAudience/index.js.map +1 -1
- package/dist/destinations/criteo-audiences/criteo-audiences.js +10 -4
- package/dist/destinations/criteo-audiences/criteo-audiences.js.map +1 -1
- package/dist/destinations/criteo-audiences/removeUserFromAudience/index.js +5 -5
- package/dist/destinations/criteo-audiences/removeUserFromAudience/index.js.map +1 -1
- package/dist/destinations/devrev/createRevUser/index.js +9 -6
- package/dist/destinations/devrev/createRevUser/index.js.map +1 -1
- package/dist/destinations/devrev/utils/types.d.ts +9 -0
- package/dist/destinations/display-video-360/properties.js +4 -4
- package/dist/destinations/display-video-360/properties.js.map +1 -1
- package/dist/destinations/display-video-360/proto/protofile.d.ts +1 -0
- package/dist/destinations/display-video-360/proto/protofile.js +1 -0
- package/dist/destinations/display-video-360/proto/protofile.js.map +1 -1
- package/dist/destinations/display-video-360/shared.js +1 -0
- package/dist/destinations/display-video-360/shared.js.map +1 -1
- package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js +0 -2
- package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js.map +1 -1
- package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.js +0 -3
- package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.js.map +1 -1
- package/dist/destinations/engage/utils/EngageStats.js +0 -4
- package/dist/destinations/engage/utils/EngageStats.js.map +1 -1
- package/dist/destinations/equals/generated-types.d.ts +3 -0
- package/dist/destinations/equals/generated-types.js +3 -0
- package/dist/destinations/equals/generated-types.js.map +1 -0
- package/dist/destinations/equals/index.d.ts +4 -0
- package/dist/destinations/equals/index.js +38 -0
- package/dist/destinations/equals/index.js.map +1 -0
- package/dist/destinations/equals/send/generated-types.d.ts +5 -0
- package/dist/destinations/equals/send/generated-types.js +3 -0
- package/dist/destinations/equals/send/generated-types.js.map +1 -0
- package/dist/destinations/equals/send/index.d.ts +5 -0
- package/dist/destinations/equals/send/index.js +38 -0
- package/dist/destinations/equals/send/index.js.map +1 -0
- package/dist/destinations/facebook-conversions-api/fb-capi-app-data.js +1 -1
- package/dist/destinations/google-enhanced-conversions/functions.d.ts +1 -1
- package/dist/destinations/google-enhanced-conversions/functions.js +2 -1
- package/dist/destinations/google-enhanced-conversions/functions.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadCallConversion/index.js +1 -5
- package/dist/destinations/google-enhanced-conversions/uploadCallConversion/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js +1 -5
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js.map +1 -1
- package/dist/destinations/hubspot/sendCustomBehavioralEvent/index.js +0 -27
- package/dist/destinations/hubspot/sendCustomBehavioralEvent/index.js.map +1 -1
- package/dist/destinations/hubspot/utils.d.ts +0 -10
- package/dist/destinations/index.js +3 -1
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/kevel/generated-types.d.ts +4 -0
- package/dist/destinations/kevel/generated-types.js +3 -0
- package/dist/destinations/kevel/generated-types.js.map +1 -0
- package/dist/destinations/kevel/index.d.ts +4 -0
- package/dist/destinations/kevel/index.js +45 -0
- package/dist/destinations/kevel/index.js.map +1 -0
- package/dist/destinations/kevel/syncAudience/generated-types.d.ts +8 -0
- package/dist/destinations/kevel/syncAudience/generated-types.js +3 -0
- package/dist/destinations/kevel/syncAudience/generated-types.js.map +1 -0
- package/dist/destinations/kevel/syncAudience/index.d.ts +5 -0
- package/dist/destinations/kevel/syncAudience/index.js +64 -0
- package/dist/destinations/kevel/syncAudience/index.js.map +1 -0
- package/dist/destinations/kevel/syncTraits/generated-types.d.ts +6 -0
- package/dist/destinations/kevel/syncTraits/generated-types.js +3 -0
- package/dist/destinations/kevel/syncTraits/generated-types.js.map +1 -0
- package/dist/destinations/kevel/syncTraits/index.d.ts +5 -0
- package/dist/destinations/kevel/syncTraits/index.js +39 -0
- package/dist/destinations/kevel/syncTraits/index.js.map +1 -0
- package/dist/destinations/linkedin-conversions/streamConversion/index.js.map +1 -1
- package/dist/destinations/marketo-static-lists/addToList/index.js +2 -2
- package/dist/destinations/marketo-static-lists/addToList/index.js.map +1 -1
- package/dist/destinations/marketo-static-lists/functions.js +7 -7
- package/dist/destinations/marketo-static-lists/functions.js.map +1 -1
- package/dist/destinations/marketo-static-lists/removeFromList/index.js +2 -2
- package/dist/destinations/marketo-static-lists/removeFromList/index.js.map +1 -1
- package/dist/destinations/mixpanel/incrementProperties/__test__/index.test.d.ts +1 -0
- package/dist/destinations/mixpanel/incrementProperties/__test__/index.test.js +129 -0
- package/dist/destinations/mixpanel/incrementProperties/__test__/index.test.js.map +1 -0
- package/dist/destinations/mixpanel/incrementProperties/__test__/snapshot.test.d.ts +1 -0
- package/dist/destinations/mixpanel/incrementProperties/__test__/snapshot.test.js +69 -0
- package/dist/destinations/mixpanel/incrementProperties/__test__/snapshot.test.js.map +1 -0
- package/dist/destinations/mixpanel/incrementProperties/generated-types.d.ts +8 -0
- package/dist/destinations/mixpanel/incrementProperties/generated-types.js +3 -0
- package/dist/destinations/mixpanel/incrementProperties/generated-types.js.map +1 -0
- package/dist/destinations/mixpanel/incrementProperties/index.d.ts +5 -0
- package/dist/destinations/mixpanel/incrementProperties/index.js +84 -0
- package/dist/destinations/mixpanel/incrementProperties/index.js.map +1 -0
- package/dist/destinations/mixpanel/index.js +3 -1
- package/dist/destinations/mixpanel/index.js.map +1 -1
- package/dist/destinations/mixpanel/mixpanel-types.d.ts +4 -0
- package/dist/destinations/moengage/trackEvent/generated-types.d.ts +1 -0
- package/dist/destinations/moengage/trackEvent/index.js +10 -2
- package/dist/destinations/moengage/trackEvent/index.js.map +1 -1
- package/dist/destinations/segment/generated-types.d.ts +0 -1
- package/dist/destinations/segment/index.js +3 -13
- package/dist/destinations/segment/index.js.map +1 -1
- package/dist/destinations/segment/properties.d.ts +1 -1
- package/dist/destinations/segment/properties.js +3 -3
- package/dist/destinations/segment/properties.js.map +1 -1
- package/dist/destinations/segment/sendGroup/index.js +5 -16
- package/dist/destinations/segment/sendGroup/index.js.map +1 -1
- package/dist/destinations/segment/sendIdentify/index.js +5 -16
- package/dist/destinations/segment/sendIdentify/index.js.map +1 -1
- package/dist/destinations/segment/sendPage/index.js +5 -16
- package/dist/destinations/segment/sendPage/index.js.map +1 -1
- package/dist/destinations/segment/sendScreen/index.js +5 -16
- package/dist/destinations/segment/sendScreen/index.js.map +1 -1
- package/dist/destinations/segment/sendTrack/index.js +5 -16
- package/dist/destinations/segment/sendTrack/index.js.map +1 -1
- package/dist/destinations/segment-profiles/index.js +1 -3
- package/dist/destinations/segment-profiles/index.js.map +1 -1
- package/dist/destinations/segment-profiles/segment-properties.d.ts +0 -2
- package/dist/destinations/segment-profiles/segment-properties.js +1 -14
- package/dist/destinations/segment-profiles/segment-properties.js.map +1 -1
- package/dist/destinations/tiktok-conversions/index.js +3 -92
- package/dist/destinations/tiktok-conversions/index.js.map +1 -1
- package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.d.ts +3 -3
- package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js +24 -33
- package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js.map +1 -1
- package/dist/destinations/tiktok-conversions/reportWebEvent/generated-types.d.ts +4 -12
- package/dist/destinations/tiktok-conversions/reportWebEvent/index.js +40 -113
- package/dist/destinations/tiktok-conversions/reportWebEvent/index.js.map +1 -1
- package/dist/destinations/tiktok-offline-conversions/index.js +48 -199
- package/dist/destinations/tiktok-offline-conversions/index.js.map +1 -1
- package/dist/destinations/webhook-audiences/index.js +1 -3
- package/dist/destinations/webhook-audiences/index.js.map +1 -1
- package/dist/destinations/yahoo-audiences/index.js +9 -1
- package/dist/destinations/yahoo-audiences/index.js.map +1 -1
- package/dist/destinations/yahoo-audiences/updateSegment/generated-types.d.ts +6 -2
- package/dist/destinations/yahoo-audiences/updateSegment/index.js +36 -11
- package/dist/destinations/yahoo-audiences/updateSegment/index.js.map +1 -1
- package/dist/destinations/yahoo-audiences/utils-rt.js +3 -3
- package/dist/destinations/yahoo-audiences/utils-rt.js.map +1 -1
- package/package.json +3 -3
|
@@ -27,11 +27,10 @@ const action = {
|
|
|
27
27
|
'@path': '$.timestamp'
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
|
-
|
|
30
|
+
phone_number: {
|
|
31
31
|
label: 'Phone Number',
|
|
32
32
|
description: 'Phone number of the user who triggered the conversion event, in E.164 standard format, e.g. +14150000000. Segment will hash this value before sending to TikTok.',
|
|
33
33
|
type: 'string',
|
|
34
|
-
multiple: true,
|
|
35
34
|
default: {
|
|
36
35
|
'@if': {
|
|
37
36
|
exists: { '@path': '$.properties.phone' },
|
|
@@ -40,12 +39,11 @@ const action = {
|
|
|
40
39
|
}
|
|
41
40
|
}
|
|
42
41
|
},
|
|
43
|
-
|
|
42
|
+
email: {
|
|
44
43
|
label: 'Email',
|
|
45
44
|
description: 'Email address of the user who triggered the conversion event. Segment will hash this value before sending to TikTok.',
|
|
46
45
|
type: 'string',
|
|
47
46
|
format: 'email',
|
|
48
|
-
multiple: true,
|
|
49
47
|
default: {
|
|
50
48
|
'@if': {
|
|
51
49
|
exists: { '@path': '$.properties.email' },
|
|
@@ -54,11 +52,10 @@ const action = {
|
|
|
54
52
|
}
|
|
55
53
|
}
|
|
56
54
|
},
|
|
57
|
-
|
|
55
|
+
external_id: {
|
|
58
56
|
label: 'External ID',
|
|
59
57
|
description: 'Uniquely identifies the user who triggered the conversion event. Segment will hash this value before sending to TikTok.',
|
|
60
58
|
type: 'string',
|
|
61
|
-
multiple: true,
|
|
62
59
|
default: {
|
|
63
60
|
'@if': {
|
|
64
61
|
exists: { '@path': '$.userId' },
|
|
@@ -79,18 +76,6 @@ const action = {
|
|
|
79
76
|
}
|
|
80
77
|
}
|
|
81
78
|
},
|
|
82
|
-
ttp: {
|
|
83
|
-
label: 'TikTok Cookie ID',
|
|
84
|
-
description: 'TikTok Cookie ID. If you also use Pixel SDK and have enabled cookies, Pixel SDK automatically saves a unique identifier in the `_ttp` cookie. The value of `_ttp` is used to match website visitor events with TikTok ads. You can extract the value of `_ttp` and attach the value here. To learn more about the `ttp` parameter, refer to [Events API 2.0 - Send TikTok Cookie](https://ads.tiktok.com/marketing_api/docs?id=%201771100936446977) (`_ttp`).',
|
|
85
|
-
type: 'string',
|
|
86
|
-
default: {
|
|
87
|
-
'@if': {
|
|
88
|
-
exists: { '@path': '$.properties.ttp' },
|
|
89
|
-
then: { '@path': '$.properties.ttp' },
|
|
90
|
-
else: { '@path': '$.integrations.TikTok Pixel.ttp' }
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
79
|
lead_id: {
|
|
95
80
|
label: 'TikTok Lead ID',
|
|
96
81
|
description: 'ID of TikTok leads. Every lead will have its own lead_id when exported from TikTok. This feature is in Beta. Please contact your TikTok representative to inquire regarding availability',
|
|
@@ -103,14 +88,6 @@ const action = {
|
|
|
103
88
|
}
|
|
104
89
|
}
|
|
105
90
|
},
|
|
106
|
-
locale: {
|
|
107
|
-
label: 'Locale',
|
|
108
|
-
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).',
|
|
109
|
-
type: 'string',
|
|
110
|
-
default: {
|
|
111
|
-
'@path': '$.context.locale'
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
91
|
url: {
|
|
115
92
|
label: 'Page URL',
|
|
116
93
|
type: 'string',
|
|
@@ -159,35 +136,18 @@ const action = {
|
|
|
159
136
|
description: 'Number of items.',
|
|
160
137
|
type: 'number'
|
|
161
138
|
},
|
|
162
|
-
|
|
163
|
-
label: 'Content
|
|
164
|
-
description: '
|
|
139
|
+
content_type: {
|
|
140
|
+
label: 'Content Type',
|
|
141
|
+
description: 'Type of the product item.',
|
|
165
142
|
type: 'string'
|
|
166
143
|
},
|
|
167
144
|
content_id: {
|
|
168
145
|
label: 'Content ID',
|
|
169
146
|
description: 'ID of the product item.',
|
|
170
147
|
type: 'string'
|
|
171
|
-
},
|
|
172
|
-
content_name: {
|
|
173
|
-
label: 'Content Name',
|
|
174
|
-
description: 'Name of the product item.',
|
|
175
|
-
type: 'string'
|
|
176
|
-
},
|
|
177
|
-
brand: {
|
|
178
|
-
label: 'Brand',
|
|
179
|
-
description: 'Brand name of the product item.',
|
|
180
|
-
type: 'string'
|
|
181
148
|
}
|
|
182
149
|
}
|
|
183
150
|
},
|
|
184
|
-
content_type: {
|
|
185
|
-
label: 'Content Type',
|
|
186
|
-
description: 'Type of the product item. When the `content_id` in the `contents` parameter is specified as `sku_id`, set this field to `product`. When the `content_id` in the `contents` parameter is specified as `item_group_id`, set this field to `product_group`.',
|
|
187
|
-
type: 'string',
|
|
188
|
-
choices: ['product', 'product_group'],
|
|
189
|
-
default: 'product'
|
|
190
|
-
},
|
|
191
151
|
currency: {
|
|
192
152
|
label: 'Currency',
|
|
193
153
|
type: 'string',
|
|
@@ -221,30 +181,6 @@ const action = {
|
|
|
221
181
|
'@path': '$.properties.query'
|
|
222
182
|
}
|
|
223
183
|
},
|
|
224
|
-
order_id: {
|
|
225
|
-
label: 'Order ID',
|
|
226
|
-
type: 'string',
|
|
227
|
-
description: 'Order ID of the transaction.',
|
|
228
|
-
default: {
|
|
229
|
-
'@path': '$.properties.order_id'
|
|
230
|
-
}
|
|
231
|
-
},
|
|
232
|
-
shop_id: {
|
|
233
|
-
label: 'Shop ID',
|
|
234
|
-
type: 'string',
|
|
235
|
-
description: 'Shop ID of the transaction.',
|
|
236
|
-
default: {
|
|
237
|
-
'@path': '$.properties.shop_id'
|
|
238
|
-
}
|
|
239
|
-
},
|
|
240
|
-
limited_data_use: {
|
|
241
|
-
label: 'Limited Data Use',
|
|
242
|
-
type: 'boolean',
|
|
243
|
-
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).',
|
|
244
|
-
default: {
|
|
245
|
-
'@path': '$.properties.limited_data_use'
|
|
246
|
-
}
|
|
247
|
-
},
|
|
248
184
|
test_event_code: {
|
|
249
185
|
label: 'Test Event Code',
|
|
250
186
|
type: 'string',
|
|
@@ -253,9 +189,9 @@ const action = {
|
|
|
253
189
|
},
|
|
254
190
|
perform: (request, { payload, settings }) => {
|
|
255
191
|
const userData = {
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
192
|
+
hashedExternalId: formatter_1.formatUserId(payload.external_id),
|
|
193
|
+
hashedEmail: formatter_1.formatEmail(payload.email),
|
|
194
|
+
hashedPhoneNumber: formatter_1.formatPhone(payload.phone_number)
|
|
259
195
|
};
|
|
260
196
|
let payloadUrl, urlTtclid;
|
|
261
197
|
if (payload.url) {
|
|
@@ -267,48 +203,39 @@ const action = {
|
|
|
267
203
|
}
|
|
268
204
|
if (payloadUrl)
|
|
269
205
|
urlTtclid = payloadUrl.searchParams.get('ttclid');
|
|
270
|
-
return request('https://business-api.tiktok.com/open_api/v1.3/
|
|
206
|
+
return request('https://business-api.tiktok.com/open_api/v1.3/pixel/track/', {
|
|
271
207
|
method: 'post',
|
|
272
208
|
json: {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
},
|
|
304
|
-
page: {
|
|
305
|
-
url: payload.url ? payload.url : undefined,
|
|
306
|
-
referrer: payload.referrer ? payload.referrer : undefined
|
|
307
|
-
},
|
|
308
|
-
limited_data_use: payload.limited_data_use ? payload.limited_data_use : false,
|
|
309
|
-
test_event_code: payload.test_event_code ? payload.test_event_code : undefined
|
|
310
|
-
}
|
|
311
|
-
]
|
|
209
|
+
pixel_code: settings.pixelCode,
|
|
210
|
+
event: payload.event,
|
|
211
|
+
event_id: payload.event_id ? `${payload.event_id}` : undefined,
|
|
212
|
+
timestamp: payload.timestamp,
|
|
213
|
+
test_event_code: payload.test_event_code,
|
|
214
|
+
context: {
|
|
215
|
+
user: {
|
|
216
|
+
external_id: userData.hashedExternalId,
|
|
217
|
+
phone_number: userData.hashedPhoneNumber,
|
|
218
|
+
email: userData.hashedEmail,
|
|
219
|
+
lead_id: payload.lead_id
|
|
220
|
+
},
|
|
221
|
+
ad: {
|
|
222
|
+
callback: payload.ttclid ? payload.ttclid : urlTtclid ? urlTtclid : undefined
|
|
223
|
+
},
|
|
224
|
+
page: {
|
|
225
|
+
url: payload.url,
|
|
226
|
+
referrer: payload.referrer
|
|
227
|
+
},
|
|
228
|
+
ip: payload.ip,
|
|
229
|
+
user_agent: payload.user_agent
|
|
230
|
+
},
|
|
231
|
+
properties: {
|
|
232
|
+
contents: payload.contents,
|
|
233
|
+
currency: payload.currency,
|
|
234
|
+
value: payload.value,
|
|
235
|
+
description: payload.description,
|
|
236
|
+
query: payload.query
|
|
237
|
+
},
|
|
238
|
+
partner_name: 'Segment'
|
|
312
239
|
}
|
|
313
240
|
});
|
|
314
241
|
}
|
|
@@ -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,2CAAoE;AAEpE,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,kBAAkB;IACzB,WAAW,EACT,6JAA6J;IAC/J,MAAM,EAAE;QACN,KAAK,EAAE;YACL,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EACT,8MAA8M;SACjN;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,wDAAwD;YACrE,OAAO,EAAE;gBACP,OAAO,EAAE,aAAa;aACvB;SACF;QACD,SAAS,EAAE;YACT,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,0DAA0D;YACvE,OAAO,EAAE;gBACP,OAAO,EAAE,aAAa;aACvB;SACF;QAED,YAAY,EAAE;YACZ,KAAK,EAAE,cAAc;YACrB,WAAW,EACT,kKAAkK;YACpK,IAAI,EAAE,QAA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AAK,EAAE,OAAO,CAAC,KAAK;oBACpB,WAAW,EAAE,OAAO,CAAC,WAAW;oBAChC,KAAK,EAAE,OAAO,CAAC,KAAK;iBACrB;gBACD,YAAY,EAAE,SAAS;aACxB;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -4,201 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const actions_core_1 = require("@segment/actions-core");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
price: {
|
|
10
|
-
'@path': '$.price'
|
|
11
|
-
},
|
|
12
|
-
quantity: {
|
|
13
|
-
'@path': '$.quantity'
|
|
14
|
-
},
|
|
15
|
-
content_category: {
|
|
16
|
-
'@path': '$.category'
|
|
17
|
-
},
|
|
18
|
-
content_id: {
|
|
19
|
-
'@path': '$.product_id'
|
|
20
|
-
},
|
|
21
|
-
content_name: {
|
|
22
|
-
'@path': '$.name'
|
|
23
|
-
},
|
|
24
|
-
brand: {
|
|
25
|
-
'@path': '$.brand'
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
const singleProductContents = {
|
|
29
|
-
...actions_core_1.defaultValues(reportOfflineEvent_1.default.fields),
|
|
30
|
-
contents: {
|
|
31
|
-
'@arrayPath': [
|
|
32
|
-
'$.properties',
|
|
33
|
-
{
|
|
34
|
-
...productProperties
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
const multiProductContents = {
|
|
40
|
-
...actions_core_1.defaultValues(reportOfflineEvent_1.default.fields),
|
|
41
|
-
contents: {
|
|
42
|
-
'@arrayPath': [
|
|
43
|
-
'$.properties.products',
|
|
44
|
-
{
|
|
45
|
-
...productProperties
|
|
46
|
-
}
|
|
47
|
-
]
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
const presets = [
|
|
51
|
-
{
|
|
52
|
-
name: 'Page View',
|
|
53
|
-
subscribe: 'type="page"',
|
|
54
|
-
partnerAction: 'reportWebEvent',
|
|
55
|
-
mapping: {
|
|
56
|
-
...multiProductContents,
|
|
57
|
-
event: 'PageView'
|
|
58
|
-
},
|
|
59
|
-
type: 'automatic'
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
name: 'View Content',
|
|
63
|
-
subscribe: 'event = "Product Viewed"',
|
|
64
|
-
partnerAction: 'reportWebEvent',
|
|
65
|
-
mapping: {
|
|
66
|
-
...singleProductContents,
|
|
67
|
-
event: 'ViewContent'
|
|
68
|
-
},
|
|
69
|
-
type: 'automatic'
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
name: 'Click Button',
|
|
73
|
-
subscribe: 'event = "Product Clicked"',
|
|
74
|
-
partnerAction: 'reportWebEvent',
|
|
75
|
-
mapping: {
|
|
76
|
-
...singleProductContents,
|
|
77
|
-
event: 'ClickButton'
|
|
78
|
-
},
|
|
79
|
-
type: 'automatic'
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
name: 'Search',
|
|
83
|
-
subscribe: 'event = "Products Searched"',
|
|
84
|
-
partnerAction: 'reportWebEvent',
|
|
85
|
-
mapping: {
|
|
86
|
-
...singleProductContents,
|
|
87
|
-
event: 'Search'
|
|
88
|
-
},
|
|
89
|
-
type: 'automatic'
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
name: 'Add to Wishlist',
|
|
93
|
-
subscribe: 'event = "Product Added to Wishlist"',
|
|
94
|
-
partnerAction: 'reportWebEvent',
|
|
95
|
-
mapping: {
|
|
96
|
-
...singleProductContents,
|
|
97
|
-
event: 'AddToWishlist'
|
|
98
|
-
},
|
|
99
|
-
type: 'automatic'
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
name: 'Add to Cart',
|
|
103
|
-
subscribe: 'event = "Product Added"',
|
|
104
|
-
partnerAction: 'reportWebEvent',
|
|
105
|
-
mapping: {
|
|
106
|
-
...singleProductContents,
|
|
107
|
-
event: 'AddToCart'
|
|
108
|
-
},
|
|
109
|
-
type: 'automatic'
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
name: 'Initiate Checkout',
|
|
113
|
-
subscribe: 'event = "Checkout Started"',
|
|
114
|
-
partnerAction: 'reportWebEvent',
|
|
115
|
-
mapping: {
|
|
116
|
-
...multiProductContents,
|
|
117
|
-
event: 'InitiateCheckout'
|
|
118
|
-
},
|
|
119
|
-
type: 'automatic'
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
name: 'Add Payment Info',
|
|
123
|
-
subscribe: 'event = "Payment Info Entered"',
|
|
124
|
-
partnerAction: 'reportWebEvent',
|
|
125
|
-
mapping: {
|
|
126
|
-
...multiProductContents,
|
|
127
|
-
event: 'AddPaymentInfo'
|
|
128
|
-
},
|
|
129
|
-
type: 'automatic'
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
name: 'Place an Order',
|
|
133
|
-
subscribe: 'event = "Order Completed"',
|
|
134
|
-
partnerAction: 'reportWebEvent',
|
|
135
|
-
mapping: {
|
|
136
|
-
...multiProductContents,
|
|
137
|
-
event: 'PlaceAnOrder'
|
|
138
|
-
},
|
|
139
|
-
type: 'automatic'
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
name: 'Complete Payment',
|
|
143
|
-
subscribe: 'event = "Payment Completed"',
|
|
144
|
-
partnerAction: 'reportWebEvent',
|
|
145
|
-
mapping: {
|
|
146
|
-
...multiProductContents,
|
|
147
|
-
event: 'CompletePayment'
|
|
148
|
-
},
|
|
149
|
-
type: 'automatic'
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
name: 'Contact',
|
|
153
|
-
subscribe: 'event = "Callback Started"',
|
|
154
|
-
partnerAction: 'reportWebEvent',
|
|
155
|
-
mapping: {
|
|
156
|
-
...actions_core_1.defaultValues(reportOfflineEvent_1.default.fields),
|
|
157
|
-
event: 'Contact'
|
|
158
|
-
},
|
|
159
|
-
type: 'automatic'
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
name: 'Download',
|
|
163
|
-
subscribe: 'event = "Download Link Clicked"',
|
|
164
|
-
partnerAction: 'reportWebEvent',
|
|
165
|
-
mapping: {
|
|
166
|
-
...actions_core_1.defaultValues(reportOfflineEvent_1.default.fields),
|
|
167
|
-
event: 'Download'
|
|
168
|
-
},
|
|
169
|
-
type: 'automatic'
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
name: 'Submit Form',
|
|
173
|
-
subscribe: 'event = "Form Submitted"',
|
|
174
|
-
partnerAction: 'reportWebEvent',
|
|
175
|
-
mapping: {
|
|
176
|
-
...actions_core_1.defaultValues(reportOfflineEvent_1.default.fields),
|
|
177
|
-
event: 'SubmitForm'
|
|
178
|
-
},
|
|
179
|
-
type: 'automatic'
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
name: 'Complete Registration',
|
|
183
|
-
subscribe: 'event = "Signed Up"',
|
|
184
|
-
partnerAction: 'reportWebEvent',
|
|
185
|
-
mapping: {
|
|
186
|
-
...actions_core_1.defaultValues(reportOfflineEvent_1.default.fields),
|
|
187
|
-
event: 'CompleteRegistration'
|
|
188
|
-
},
|
|
189
|
-
type: 'automatic'
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
name: 'Subscribe',
|
|
193
|
-
subscribe: 'event = "Subscription Created"',
|
|
194
|
-
partnerAction: 'reportWebEvent',
|
|
195
|
-
mapping: {
|
|
196
|
-
...actions_core_1.defaultValues(reportOfflineEvent_1.default.fields),
|
|
197
|
-
event: 'Subscribe'
|
|
198
|
-
},
|
|
199
|
-
type: 'automatic'
|
|
200
|
-
}
|
|
201
|
-
];
|
|
7
|
+
const trackPaymentOfflineConversion_1 = __importDefault(require("./trackPaymentOfflineConversion"));
|
|
8
|
+
const trackNonPaymentOfflineConversion_1 = __importDefault(require("./trackNonPaymentOfflineConversion"));
|
|
202
9
|
const destination = {
|
|
203
10
|
name: 'TikTok Offline Conversions',
|
|
204
11
|
slug: 'actions-tiktok-offline-conversions',
|
|
@@ -208,14 +15,14 @@ const destination = {
|
|
|
208
15
|
fields: {
|
|
209
16
|
accessToken: {
|
|
210
17
|
label: 'Access Token',
|
|
211
|
-
description: 'Your TikTok Access Token. Please see TikTok’s [Events API
|
|
18
|
+
description: 'Your TikTok Access Token. Please see TikTok’s [Events API documentation](https://ads.tiktok.com/marketing_api/docs?rid=mcxl4tclmfa&id=1758051319816193) for information on how to generate an access token via the TikTok Ads Manager or API.',
|
|
212
19
|
type: 'string',
|
|
213
20
|
required: true
|
|
214
21
|
},
|
|
215
22
|
eventSetID: {
|
|
216
23
|
label: 'Event Set ID',
|
|
217
24
|
type: 'string',
|
|
218
|
-
description: 'Your TikTok Offline Event Set ID. Please see TikTok’s [Events API
|
|
25
|
+
description: 'Your TikTok Offline Event Set ID. Please see TikTok’s [Events API documentation](https://ads.tiktok.com/marketing_api/docs?rid=mcxl4tclmfa&id=1758051319816193) for information on how to find this value.',
|
|
219
26
|
required: true
|
|
220
27
|
}
|
|
221
28
|
},
|
|
@@ -239,9 +46,51 @@ const destination = {
|
|
|
239
46
|
}
|
|
240
47
|
};
|
|
241
48
|
},
|
|
242
|
-
presets
|
|
49
|
+
presets: [
|
|
50
|
+
{
|
|
51
|
+
name: 'Complete Payment',
|
|
52
|
+
subscribe: 'type = "track" and event = "Order Completed"',
|
|
53
|
+
partnerAction: 'trackPaymentOfflineConversion',
|
|
54
|
+
mapping: {
|
|
55
|
+
...actions_core_1.defaultValues(trackPaymentOfflineConversion_1.default.fields),
|
|
56
|
+
event: 'CompletePayment'
|
|
57
|
+
},
|
|
58
|
+
type: 'automatic'
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: 'Contact',
|
|
62
|
+
subscribe: 'type = "track" and event = "User Contacted Call Center"',
|
|
63
|
+
partnerAction: 'trackNonPaymentOfflineConversion',
|
|
64
|
+
mapping: {
|
|
65
|
+
...actions_core_1.defaultValues(trackNonPaymentOfflineConversion_1.default.fields),
|
|
66
|
+
event: 'Contact'
|
|
67
|
+
},
|
|
68
|
+
type: 'automatic'
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'Subscribe',
|
|
72
|
+
subscribe: 'type = "track" and event = "User Subscribed In Store"',
|
|
73
|
+
partnerAction: 'trackNonPaymentOfflineConversion',
|
|
74
|
+
mapping: {
|
|
75
|
+
...actions_core_1.defaultValues(trackNonPaymentOfflineConversion_1.default.fields),
|
|
76
|
+
event: 'Subscribe'
|
|
77
|
+
},
|
|
78
|
+
type: 'automatic'
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: 'Submit Form',
|
|
82
|
+
subscribe: 'type = "track" and event = "Form Submitted"',
|
|
83
|
+
partnerAction: 'trackNonPaymentOfflineConversion',
|
|
84
|
+
mapping: {
|
|
85
|
+
...actions_core_1.defaultValues(trackNonPaymentOfflineConversion_1.default.fields),
|
|
86
|
+
event: 'SubmitForm'
|
|
87
|
+
},
|
|
88
|
+
type: 'automatic'
|
|
89
|
+
}
|
|
90
|
+
],
|
|
243
91
|
actions: {
|
|
244
|
-
|
|
92
|
+
trackPaymentOfflineConversion: trackPaymentOfflineConversion_1.default,
|
|
93
|
+
trackNonPaymentOfflineConversion: trackNonPaymentOfflineConversion_1.default
|
|
245
94
|
}
|
|
246
95
|
};
|
|
247
96
|
exports.default = destination;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/tiktok-offline-conversions/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA4E;AAE5E,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/tiktok-offline-conversions/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA4E;AAE5E,oGAA2E;AAC3E,0GAAiF;AAEjF,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,4BAA4B;IAClC,IAAI,EA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D,IAAI,EAAE,WAAW;SAClB;QACD;YACE,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,uDAAuD;YAClE,aAAa,EAAE,kCAAkC;YACjD,OAAO,EAAE;gBACP,GAAG,4BAAa,CAAC,0CAAgC,CAAC,MAAM,CAAC;gBACzD,KAAK,EAAE,WAAW;aACnB;YACD,IAAI,EAAE,WAAW;SAClB;QACD;YACE,IAAI,EAAE,aAAa;YACnB,SAAS,EAAE,6CAA6C;YACxD,aAAa,EAAE,kCAAkC;YACjD,OAAO,EAAE;gBACP,GAAG,4BAAa,CAAC,0CAAgC,CAAC,MAAM,CAAC;gBACzD,KAAK,EAAE,YAAY;aACpB;YACD,IAAI,EAAE,WAAW;SAClB;KACF;IACD,OAAO,EAAE;QACP,6BAA6B,EAA7B,uCAA6B;QAC7B,gCAAgC,EAAhC,0CAAgC;KACjC;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -73,7 +73,6 @@ const destination = {
|
|
|
73
73
|
},
|
|
74
74
|
async createAudience(request, createAudienceInput) {
|
|
75
75
|
const audienceName = createAudienceInput.audienceName;
|
|
76
|
-
const personasContext = createAudienceInput.audienceSettings?.personas;
|
|
77
76
|
if (audienceName?.length == 0) {
|
|
78
77
|
throw new actions_core_1.IntegrationError('Missing audience name value', 'MISSING_REQUIRED_FIELD', 400);
|
|
79
78
|
}
|
|
@@ -86,8 +85,7 @@ const destination = {
|
|
|
86
85
|
method: 'POST',
|
|
87
86
|
json: {
|
|
88
87
|
...extras,
|
|
89
|
-
audienceName
|
|
90
|
-
personas: personasContext
|
|
88
|
+
audienceName
|
|
91
89
|
}
|
|
92
90
|
});
|
|
93
91
|
const jsonOutput = await response.json();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/webhook-audiences/index.ts"],"names":[],"mappings":";;;;;AAGA,2DAAkC;AAClC,wDAAwD;AACxD,mCAAmC;AACnC,MAAM,aAAa,GAAG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AAM,EAAE,MAAM;gBACd,IAAI,EAAE;oBACJ,GAAG,MAAM;oBACT,CAAC,aAAa,CAAC,EAAE,gBAAgB,CAAC,UAAU;iBAC7C;aACF,CAAC,CAAA;YAEF,IAAI,UAAU,CAAA;YAEd,IAAI;gBACF,UAAU,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;gBAElC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE;oBAC9B,MAAM,IAAI,+BAAgB,CAAC,WAAW,aAAa,cAAc,EAAE,kBAAkB,EAAE,GAAG,CAAC,CAAA;iBAC5F;aACF;YAAC,MAAM;gBACN,MAAM,IAAI,+BAAgB,CAAC,4CAA4C,EAAE,kBAAkB,EAAE,GAAG,CAAC,CAAA;aAClG;YAED,OAAO;gBACL,UAAU,EAAE,UAAU,CAAC,aAAa,CAAC;aACtC,CAAA;QACH,CAAC;QACD,KAAK,CAAC,cAAc,CAAC,OAAO,EAAE,mBAAmB;YAC/C,MAAM,YAAY,GAAG,mBAAmB,CAAC,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/webhook-audiences/index.ts"],"names":[],"mappings":";;;;;AAGA,2DAAkC;AAClC,wDAAwD;AACxD,mCAAmC;AACnC,MAAM,aAAa,GAAG,YAAY,CAAA;AAClC,MAAM,eAAe,GAAG,cAAc,CAAA;AAEtC,MAAM,WAAW,GAA8D;IAC7E,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,2BAA2B;IACjC,IAAI,EAAE,OAAO;IACb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,eAAe;gBACtB,WAAW,EACT,mLAAmL;aACtL;YACD,iBAAiB,EAAE;gBACjB,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,4CAA4C;gBACnD,WAAW,EAAE,qDAAqD,eAAe,kGAAk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ACJ,IAAI,EAAE;gCACJ,GAAG,CAAC,CAAC,IAAI;gCACT,GAAG,MAAM;6BACV;yBACF,CAAA;oBACH,CAAC,CAAC;oBACF,QAAQ;iBACT,CAAC,CAAA;YACJ,CAAC;SACF;KACF;CACF,CAAA;AAED,MAAM,sBAAsB,GAAG,CAAC,iBAA0B,EAAU,EAAE;IACpE,IAAI,aAAa,GAAG,EAAE,CAAA;IACtB,IAAI,iBAAiB,EAAE;QACrB,IAAI;YACF,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAA;SAC9C;QAAC,OAAO,CAAC,EAAE;YACV,MAAM,IAAI,+BAAgB,CAAC,4BAA4B,EAAE,sBAAsB,EAAE,GAAG,CAAC,CAAA;SACtF;KACF;IACD,OAAO,aAAa,CAAA;AACtB,CAAC,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -46,7 +46,12 @@ const destination = {
|
|
|
46
46
|
tx_client_secret: process.env.ACTIONS_YAHOO_AUDIENCES_TAXONOMY_CLIENT_SECRET
|
|
47
47
|
};
|
|
48
48
|
const body_form_data = utils_tax_1.gen_customer_taxonomy_payload(settings);
|
|
49
|
-
|
|
49
|
+
if (!/^[A-Za-z0-9_]+$/.test(settings.engage_space_id)) {
|
|
50
|
+
throw new actions_core_1.IntegrationError('Invalid Engage Space Id setting. Engage Space Id can be located in Unify > Settings > API Access', 'INVALID_GLOBAL_SETTING', 400);
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
return await utils_tax_1.update_taxonomy('', tx_creds, request, body_form_data, undefined, undefined);
|
|
54
|
+
}
|
|
50
55
|
},
|
|
51
56
|
refreshAccessToken: async (request, { auth }) => {
|
|
52
57
|
let rt_client_key = '';
|
|
@@ -90,6 +95,9 @@ const destination = {
|
|
|
90
95
|
async createAudience(request, createAudienceInput) {
|
|
91
96
|
const audienceSettings = createAudienceInput.audienceSettings;
|
|
92
97
|
const personas = audienceSettings.personas;
|
|
98
|
+
if (!personas) {
|
|
99
|
+
throw new actions_core_1.IntegrationError('Missing computation parameters: Id and Key', 'MISSING_REQUIRED_FIELD', 400);
|
|
100
|
+
}
|
|
93
101
|
const engage_space_id = createAudienceInput.settings?.engage_space_id;
|
|
94
102
|
const audience_id = personas.computation_id;
|
|
95
103
|
const audience_key = personas.computation_key;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/yahoo-audiences/index.ts"],"names":[],"mappings":";;;;;AACA,wDAAwD;AAExD,yCAAyC;AACzC,oEAA2C;AAC3C,2CAA6G;AAU7G,MAAM,WAAW,GAA8D;IAC7E,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,4CAA4C;IACzD,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,MAAM,EAAE;gBACN,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,+CAA+C;gBAC5D,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,eAAe,EAAE;gBACf,KAAK,EAAE,iBAAiB;gBACxB,WAAW,EAAE,wDAAwD;gBACrE,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,aAAa,EAAE;gBACb,KAAK,EAAE,sBAAsB;gBAC7B,WAAW,EAAE,mCAAmC;gBAChD,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,kBAAkB,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;YAClD,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,8CAA8C,EAAE;gBAC/D,MAAM,IAAI,+BAAgB,CAAC,oCAAoC,EAAE,wBAAwB,EAAE,GAAG,CAAC,CAAA;aAChG;YACD,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0CAA0C,EAAE;gBAC3D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