@segment/action-destinations 3.71.1-alpha.2 → 3.74.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/gainsight-px-cloud-action/index.js +30 -36
- package/dist/destinations/gainsight-px-cloud-action/index.js.map +1 -1
- package/dist/destinations/gainsight-px-cloud-action/regional-endpoints.js +3 -3
- package/dist/destinations/gainsight-px-cloud-action/regional-endpoints.js.map +1 -1
- package/dist/destinations/gainsight-px-cloud-action/sendEvent/generated-types.d.ts +5 -0
- package/dist/destinations/gainsight-px-cloud-action/{groupIdentify → sendEvent}/generated-types.js +0 -0
- package/dist/destinations/gainsight-px-cloud-action/sendEvent/generated-types.js.map +1 -0
- package/dist/destinations/gainsight-px-cloud-action/{identifyUser → sendEvent}/index.d.ts +0 -0
- package/dist/destinations/gainsight-px-cloud-action/{groupIdentify → sendEvent}/index.js +5 -5
- package/dist/destinations/gainsight-px-cloud-action/sendEvent/index.js.map +1 -0
- package/dist/destinations/index.js +1 -0
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/personas-messaging-twilio/generated-types.d.ts +3 -2
- package/dist/destinations/personas-messaging-twilio/index.js +12 -6
- package/dist/destinations/personas-messaging-twilio/index.js.map +1 -1
- package/dist/destinations/personas-messaging-twilio/sendSms/index.js +2 -2
- package/dist/destinations/personas-messaging-twilio/sendSms/index.js.map +1 -1
- package/dist/destinations/salesforce/account/index.js +4 -0
- package/dist/destinations/salesforce/account/index.js.map +1 -1
- package/dist/destinations/salesforce/cases/index.js +5 -0
- package/dist/destinations/salesforce/cases/index.js.map +1 -1
- package/dist/destinations/salesforce/contact/index.js +9 -3
- package/dist/destinations/salesforce/contact/index.js.map +1 -1
- package/dist/destinations/salesforce/customObject/index.d.ts +1 -1
- package/dist/destinations/salesforce/customObject/index.js +5 -0
- package/dist/destinations/salesforce/customObject/index.js.map +1 -1
- package/dist/destinations/salesforce/lead/index.js +4 -0
- package/dist/destinations/salesforce/lead/index.js.map +1 -1
- package/dist/destinations/salesforce/opportunity/index.js +3 -2
- package/dist/destinations/salesforce/opportunity/index.js.map +1 -1
- package/dist/destinations/salesforce/sf-utils.js +2 -6
- package/dist/destinations/salesforce/sf-utils.js.map +1 -1
- package/dist/destinations/snap-conversions-api/_tests_/index.test.d.ts +1 -0
- package/dist/destinations/snap-conversions-api/_tests_/index.test.js +204 -0
- package/dist/destinations/snap-conversions-api/_tests_/index.test.js.map +1 -0
- package/dist/destinations/snap-conversions-api/generated-types.d.ts +5 -0
- package/dist/destinations/{gainsight-px-cloud-action/identifyUser → snap-conversions-api}/generated-types.js +0 -0
- package/dist/destinations/snap-conversions-api/generated-types.js.map +1 -0
- package/dist/destinations/snap-conversions-api/index.d.ts +4 -0
- package/dist/destinations/snap-conversions-api/index.js +189 -0
- package/dist/destinations/snap-conversions-api/index.js.map +1 -0
- package/dist/destinations/snap-conversions-api/reportConversionEvent/generated-types.d.ts +25 -0
- package/dist/destinations/{gainsight-px-cloud-action/trackEvent → snap-conversions-api/reportConversionEvent}/generated-types.js +0 -0
- package/dist/destinations/snap-conversions-api/reportConversionEvent/generated-types.js.map +1 -0
- package/dist/destinations/{gainsight-px-cloud-action/trackEvent → snap-conversions-api/reportConversionEvent}/index.d.ts +1 -1
- package/dist/destinations/snap-conversions-api/reportConversionEvent/index.js +50 -0
- package/dist/destinations/snap-conversions-api/reportConversionEvent/index.js.map +1 -0
- package/dist/destinations/snap-conversions-api/snap-capi-properties.d.ts +30 -0
- package/dist/destinations/snap-conversions-api/snap-capi-properties.js +310 -0
- package/dist/destinations/snap-conversions-api/snap-capi-properties.js.map +1 -0
- package/dist/destinations/talon-one/t1-properties.js +10 -4
- package/dist/destinations/talon-one/t1-properties.js.map +1 -1
- package/dist/destinations/talon-one/trackEvent/index.js +10 -2
- package/dist/destinations/talon-one/trackEvent/index.js.map +1 -1
- package/dist/destinations/talon-one/updateCustomerProfile/index.js +1 -1
- package/dist/destinations/talon-one/updateCustomerProfile/index.js.map +1 -1
- package/package.json +4 -4
- package/dist/destinations/gainsight-px-cloud-action/groupIdentify/generated-types.d.ts +0 -2
- package/dist/destinations/gainsight-px-cloud-action/groupIdentify/generated-types.js.map +0 -1
- package/dist/destinations/gainsight-px-cloud-action/groupIdentify/index.d.ts +0 -5
- package/dist/destinations/gainsight-px-cloud-action/groupIdentify/index.js.map +0 -1
- package/dist/destinations/gainsight-px-cloud-action/identifyUser/generated-types.d.ts +0 -2
- package/dist/destinations/gainsight-px-cloud-action/identifyUser/generated-types.js.map +0 -1
- package/dist/destinations/gainsight-px-cloud-action/identifyUser/index.js +0 -17
- package/dist/destinations/gainsight-px-cloud-action/identifyUser/index.js.map +0 -1
- package/dist/destinations/gainsight-px-cloud-action/trackEvent/generated-types.d.ts +0 -2
- package/dist/destinations/gainsight-px-cloud-action/trackEvent/generated-types.js.map +0 -1
- package/dist/destinations/gainsight-px-cloud-action/trackEvent/index.js +0 -17
- package/dist/destinations/gainsight-px-cloud-action/trackEvent/index.js.map +0 -1
- package/dist/destinations/gainsight-px-cloud-action/trackPageView/generated-types.d.ts +0 -2
- package/dist/destinations/gainsight-px-cloud-action/trackPageView/generated-types.js +0 -3
- package/dist/destinations/gainsight-px-cloud-action/trackPageView/generated-types.js.map +0 -1
- package/dist/destinations/gainsight-px-cloud-action/trackPageView/index.d.ts +0 -5
- package/dist/destinations/gainsight-px-cloud-action/trackPageView/index.js +0 -17
- package/dist/destinations/gainsight-px-cloud-action/trackPageView/index.js.map +0 -1
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.formatPayload = exports.hash = exports.conversionType = exports.sign_up_method = exports.page_url = exports.search_string = exports.client_dedup_id = exports.level = exports.transaction_id = exports.currency = exports.price = exports.number_items = exports.description = exports.item_ids = exports.item_category = exports.ip_address = exports.user_agent = exports.phone_number = exports.idfv = exports.uuid_c1 = exports.mobile_ad_id = exports.email = exports.timestamp = exports.event_tag = exports.event_conversion_type = exports.event_type = exports.CURRENCY_ISO_4217_CODES = void 0;
|
|
4
|
+
const actions_core_1 = require("@segment/actions-core");
|
|
5
|
+
const crypto_1 = require("crypto");
|
|
6
|
+
exports.CURRENCY_ISO_4217_CODES = new Set([
|
|
7
|
+
'USD',
|
|
8
|
+
'AED',
|
|
9
|
+
'AUD',
|
|
10
|
+
'BGN',
|
|
11
|
+
'BRL',
|
|
12
|
+
'CAD',
|
|
13
|
+
'CHF',
|
|
14
|
+
'CLP',
|
|
15
|
+
'CNY',
|
|
16
|
+
'COP',
|
|
17
|
+
'CZK',
|
|
18
|
+
'DKK',
|
|
19
|
+
'EGP',
|
|
20
|
+
'EUR',
|
|
21
|
+
'GBP',
|
|
22
|
+
'GIP',
|
|
23
|
+
'HKD',
|
|
24
|
+
'HRK',
|
|
25
|
+
'HUF',
|
|
26
|
+
'IDR',
|
|
27
|
+
'ILS',
|
|
28
|
+
'INR',
|
|
29
|
+
'JPY',
|
|
30
|
+
'KRW',
|
|
31
|
+
'KWD',
|
|
32
|
+
'KZT',
|
|
33
|
+
'LBP',
|
|
34
|
+
'MXN',
|
|
35
|
+
'MYR',
|
|
36
|
+
'NGN',
|
|
37
|
+
'NOK',
|
|
38
|
+
'NZD',
|
|
39
|
+
'PEN',
|
|
40
|
+
'PHP',
|
|
41
|
+
'PKR',
|
|
42
|
+
'PLN',
|
|
43
|
+
'QAR',
|
|
44
|
+
'RON',
|
|
45
|
+
'RUB',
|
|
46
|
+
'SAR',
|
|
47
|
+
'SEK',
|
|
48
|
+
'SGD',
|
|
49
|
+
'THB',
|
|
50
|
+
'TRY',
|
|
51
|
+
'TWD',
|
|
52
|
+
'TZS',
|
|
53
|
+
'UAH',
|
|
54
|
+
'VND',
|
|
55
|
+
'ZAR',
|
|
56
|
+
'ALL',
|
|
57
|
+
'BHD',
|
|
58
|
+
'DZD',
|
|
59
|
+
'GHS',
|
|
60
|
+
'IQD',
|
|
61
|
+
'ISK',
|
|
62
|
+
'JOD',
|
|
63
|
+
'KES',
|
|
64
|
+
'MAD',
|
|
65
|
+
'OMR',
|
|
66
|
+
'XOF'
|
|
67
|
+
]);
|
|
68
|
+
exports.event_type = {
|
|
69
|
+
label: 'Event Type',
|
|
70
|
+
description: 'The conversion event type. For custom events, you must use one of the predefined event types (i.e. CUSTOM_EVENT_1). Please refer to the possible event types in [Snapchat Marketing API docs](https://marketingapi.snapchat.com/docs/conversion.html#conversion-parameters).',
|
|
71
|
+
type: 'string'
|
|
72
|
+
};
|
|
73
|
+
exports.event_conversion_type = {
|
|
74
|
+
label: 'Event Conversion Type',
|
|
75
|
+
description: 'Where the event took place. This must be OFFLINE, WEB, or MOBILE_APP.',
|
|
76
|
+
type: 'string',
|
|
77
|
+
choices: [
|
|
78
|
+
{ label: 'Offline', value: 'OFFLINE' },
|
|
79
|
+
{ label: 'Web', value: 'WEB' },
|
|
80
|
+
{ label: 'Mobile App', value: 'MOBILE_APP' }
|
|
81
|
+
]
|
|
82
|
+
};
|
|
83
|
+
exports.event_tag = {
|
|
84
|
+
label: 'Event Tag',
|
|
85
|
+
description: 'Custom event label.',
|
|
86
|
+
type: 'string'
|
|
87
|
+
};
|
|
88
|
+
exports.timestamp = {
|
|
89
|
+
label: 'Event Timestamp',
|
|
90
|
+
description: 'The Epoch timestamp for when the conversion happened. The timestamp cannot be more than 28 days in the past.',
|
|
91
|
+
type: 'string',
|
|
92
|
+
default: {
|
|
93
|
+
'@path': '$.timestamp'
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
exports.email = {
|
|
97
|
+
label: 'Email',
|
|
98
|
+
description: 'Email address of the user who triggered the conversion event. Segment will normalize and hash this value before sending to Snapchat.',
|
|
99
|
+
type: 'string',
|
|
100
|
+
default: {
|
|
101
|
+
'@if': {
|
|
102
|
+
exists: { '@path': '$.properties.email' },
|
|
103
|
+
then: { '@path': '$.properties.email' },
|
|
104
|
+
else: { '@path': '$.traits.email' }
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
exports.mobile_ad_id = {
|
|
109
|
+
label: 'Mobile Ad Identifier',
|
|
110
|
+
description: 'Mobile ad identifier (IDFA or AAID) of the user who triggered the conversion event. Segment will normalize and hash this value before sending to Snapchat.',
|
|
111
|
+
type: 'string',
|
|
112
|
+
default: {
|
|
113
|
+
'@path': '$.context.device.advertisingId'
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
exports.uuid_c1 = {
|
|
117
|
+
label: 'uuid_c1 Cookie',
|
|
118
|
+
description: 'Unique user ID cookie. If you are using the Pixel SDK, you can access a cookie1 by looking at the _scid value.',
|
|
119
|
+
type: 'string'
|
|
120
|
+
};
|
|
121
|
+
exports.idfv = {
|
|
122
|
+
label: 'Identifier for Vendor',
|
|
123
|
+
description: 'IDFV of the user’s device. Segment will normalize and hash this value before sending to Snapchat.',
|
|
124
|
+
type: 'string',
|
|
125
|
+
default: {
|
|
126
|
+
'@path': '$.context.device.id'
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
exports.phone_number = {
|
|
130
|
+
label: 'Phone Number',
|
|
131
|
+
description: 'Phone number of the user who triggered the conversion event. Segment will normalize and hash this value before sending to Snapchat.',
|
|
132
|
+
type: 'string',
|
|
133
|
+
default: {
|
|
134
|
+
'@if': {
|
|
135
|
+
exists: { '@path': '$.properties.phone' },
|
|
136
|
+
then: { '@path': '$.properties.phone' },
|
|
137
|
+
else: { '@path': '$.traits.phone' }
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
exports.user_agent = {
|
|
142
|
+
label: 'User Agent',
|
|
143
|
+
description: 'User agent from the user’s device.',
|
|
144
|
+
type: 'string',
|
|
145
|
+
default: {
|
|
146
|
+
'@path': '$.context.userAgent'
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
exports.ip_address = {
|
|
150
|
+
label: 'IP Address',
|
|
151
|
+
description: 'IP address of the device or browser. Segment will normalize and hash this value before sending to Snapchat.',
|
|
152
|
+
type: 'string',
|
|
153
|
+
default: {
|
|
154
|
+
'@path': '$.context.ip'
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
exports.item_category = {
|
|
158
|
+
label: 'Item Category',
|
|
159
|
+
description: 'Category of the item.',
|
|
160
|
+
type: 'string',
|
|
161
|
+
default: {
|
|
162
|
+
'@path': '$.properties.category'
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
exports.item_ids = {
|
|
166
|
+
label: 'Item IDs',
|
|
167
|
+
description: 'International Article Number (EAN) when applicable, or other product or category identifier.',
|
|
168
|
+
type: 'string',
|
|
169
|
+
default: {
|
|
170
|
+
'@path': '$.properties.product_id'
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
exports.description = {
|
|
174
|
+
label: 'Description',
|
|
175
|
+
description: 'A string description for additional info.',
|
|
176
|
+
type: 'string'
|
|
177
|
+
};
|
|
178
|
+
exports.number_items = {
|
|
179
|
+
label: 'Number of Items',
|
|
180
|
+
description: 'Number of items.',
|
|
181
|
+
type: 'string',
|
|
182
|
+
default: {
|
|
183
|
+
'@path': '$.properties.quantity'
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
exports.price = {
|
|
187
|
+
label: 'Price',
|
|
188
|
+
description: 'Value of the purchase.This should be a single number.',
|
|
189
|
+
type: 'number',
|
|
190
|
+
default: {
|
|
191
|
+
'@if': {
|
|
192
|
+
exists: { '@path': '$.properties.price' },
|
|
193
|
+
then: { '@path': '$.properties.price' },
|
|
194
|
+
else: { '@path': '$.properties.value' }
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
exports.currency = {
|
|
199
|
+
label: 'Currency',
|
|
200
|
+
description: 'Currency for the value specified as ISO 4217 code.',
|
|
201
|
+
type: 'string',
|
|
202
|
+
default: {
|
|
203
|
+
'@path': '$.properties.currency'
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
exports.transaction_id = {
|
|
207
|
+
label: 'Transaction ID',
|
|
208
|
+
description: 'Transaction ID or order ID tied to the conversion event. Please refer to the [Snapchat Marketing API docs](https://marketingapi.snapchat.com/docs/conversion.html#deduplication) for information on how this field is used for deduplication against Snap Pixel SDK and App Adds Kit events.',
|
|
209
|
+
type: 'string',
|
|
210
|
+
default: {
|
|
211
|
+
'@path': '$.properties.order_id'
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
exports.level = {
|
|
215
|
+
label: 'Level',
|
|
216
|
+
description: 'Represents a level in the context of a game.',
|
|
217
|
+
type: 'string'
|
|
218
|
+
};
|
|
219
|
+
exports.client_dedup_id = {
|
|
220
|
+
label: 'Client Deduplication ID',
|
|
221
|
+
description: 'If you are reporting events via more than one method (Snap Pixel, App Ads Kit, Conversions API) you should use the same client_dedup_id across all methods. Please refer to the [Snapchat Marketing API docs](https://marketingapi.snapchat.com/docs/conversion.html#deduplication) for information on how this field is used for deduplication against Snap Pixel SDK and App Adds Kit events.',
|
|
222
|
+
type: 'string'
|
|
223
|
+
};
|
|
224
|
+
exports.search_string = {
|
|
225
|
+
label: 'Search String',
|
|
226
|
+
description: 'The text string that was searched for.',
|
|
227
|
+
type: 'string',
|
|
228
|
+
default: {
|
|
229
|
+
'@path': '$.properties.query'
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
exports.page_url = {
|
|
233
|
+
label: 'Page URL',
|
|
234
|
+
description: 'The URL of the web page where the event took place.',
|
|
235
|
+
type: 'string',
|
|
236
|
+
default: {
|
|
237
|
+
'@path': '$.context.page.url'
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
exports.sign_up_method = {
|
|
241
|
+
label: 'Sign Up Method',
|
|
242
|
+
description: 'A string indicating the sign up method.',
|
|
243
|
+
type: 'string'
|
|
244
|
+
};
|
|
245
|
+
const conversionType = (settings, event_conversion_type) => {
|
|
246
|
+
if (event_conversion_type === 'MOBILE_APP') {
|
|
247
|
+
if (settings?.snap_app_id === undefined ||
|
|
248
|
+
settings?.app_id === undefined ||
|
|
249
|
+
settings?.snap_app_id === '' ||
|
|
250
|
+
settings?.app_id === '') {
|
|
251
|
+
throw new actions_core_1.IntegrationError('If event conversion type is "MOBILE_APP" then snap_app_id and app_id must be defined', 'Misconfigured required field', 400);
|
|
252
|
+
}
|
|
253
|
+
delete settings?.pixel_id;
|
|
254
|
+
}
|
|
255
|
+
else {
|
|
256
|
+
if (settings?.pixel_id === undefined) {
|
|
257
|
+
throw new actions_core_1.IntegrationError(`If event conversion type is "${event_conversion_type}" then pixel_id must be defined`, 'Misconfigured required field', 400);
|
|
258
|
+
}
|
|
259
|
+
delete settings?.snap_app_id;
|
|
260
|
+
delete settings?.app_id;
|
|
261
|
+
}
|
|
262
|
+
return settings;
|
|
263
|
+
};
|
|
264
|
+
exports.conversionType = conversionType;
|
|
265
|
+
const hash = (value) => {
|
|
266
|
+
if (value === undefined)
|
|
267
|
+
return;
|
|
268
|
+
const hash = crypto_1.createHash('sha256');
|
|
269
|
+
hash.update(value);
|
|
270
|
+
return hash.digest('hex');
|
|
271
|
+
};
|
|
272
|
+
exports.hash = hash;
|
|
273
|
+
const formatPayload = (payload) => {
|
|
274
|
+
if (payload.email) {
|
|
275
|
+
payload.email = payload.email.replace(/\s/g, '').toLowerCase();
|
|
276
|
+
}
|
|
277
|
+
if (payload.phone_number) {
|
|
278
|
+
payload.phone_number = payload.phone_number.replace(/\D|^0+/g, '');
|
|
279
|
+
}
|
|
280
|
+
if (payload.mobile_ad_id) {
|
|
281
|
+
payload.mobile_ad_id = payload.mobile_ad_id.toLowerCase();
|
|
282
|
+
}
|
|
283
|
+
return {
|
|
284
|
+
event_type: payload?.event_type,
|
|
285
|
+
event_conversion_type: payload?.event_conversion_type,
|
|
286
|
+
event_tag: payload?.event_tag,
|
|
287
|
+
timestamp: Date.parse(payload?.timestamp),
|
|
288
|
+
hashed_email: exports.hash(payload?.email),
|
|
289
|
+
mobile_ad_id: exports.hash(payload?.mobile_ad_id),
|
|
290
|
+
uuid_c1: payload?.uuid_c1,
|
|
291
|
+
hashed_idfv: exports.hash(payload?.idfv),
|
|
292
|
+
hashed_phone_number: exports.hash(payload?.phone_number),
|
|
293
|
+
user_agent: payload?.user_agent,
|
|
294
|
+
hashed_ip_address: exports.hash(payload?.ip_address),
|
|
295
|
+
item_category: payload?.item_category,
|
|
296
|
+
item_ids: payload?.item_ids,
|
|
297
|
+
description: payload?.description,
|
|
298
|
+
number_items: payload?.number_items,
|
|
299
|
+
price: payload?.price,
|
|
300
|
+
currency: payload?.currency,
|
|
301
|
+
transaction_id: payload?.transaction_id,
|
|
302
|
+
level: payload?.level,
|
|
303
|
+
client_dedup_id: payload?.client_dedup_id,
|
|
304
|
+
search_string: payload?.search_string,
|
|
305
|
+
page_url: payload?.page_url,
|
|
306
|
+
sign_up_method: payload?.sign_up_method
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
exports.formatPayload = formatPayload;
|
|
310
|
+
//# sourceMappingURL=snap-capi-properties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snap-capi-properties.js","sourceRoot":"","sources":["../../../src/destinations/snap-conversions-api/snap-capi-properties.ts"],"names":[],"mappings":";;;AAAA,wDAAwD;AAExD,mCAAmC;AAItB,QAAA,uBAAuB,GAAG,IAAI,GAAG,CAAC;IAC7C,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KA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I,CAAC,OAAO,EAAE,UAAU,CAAC;QAC5C,aAAa,EAAE,OAAO,EAAE,aAAa;QACrC,QAAQ,EAAE,OAAO,EAAE,QAAQ;QAC3B,WAAW,EAAE,OAAO,EAAE,WAAW;QACjC,YAAY,EAAE,OAAO,EAAE,YAAY;QACnC,KAAK,EAAE,OAAO,EAAE,KAAK;QACrB,QAAQ,EAAE,OAAO,EAAE,QAAQ;QAC3B,cAAc,EAAE,OAAO,EAAE,cAAc;QACvC,KAAK,EAAE,OAAO,EAAE,KAAK;QACrB,eAAe,EAAE,OAAO,EAAE,eAAe;QACzC,aAAa,EAAE,OAAO,EAAE,aAAa;QACrC,QAAQ,EAAE,OAAO,EAAE,QAAQ;QAC3B,cAAc,EAAE,OAAO,EAAE,cAAc;KACxC,CAAA;AACH,CAAC,CAAA;AA1CY,QAAA,aAAa,iBA0CzB"}
|
|
@@ -5,17 +5,23 @@ exports.customerProfileId = {
|
|
|
5
5
|
label: 'Customer Profile ID',
|
|
6
6
|
description: 'The customer profile integration identifier to use in Talon.One.',
|
|
7
7
|
type: 'string',
|
|
8
|
-
required: true
|
|
8
|
+
required: true,
|
|
9
|
+
default: {
|
|
10
|
+
'@path': '$.userId'
|
|
11
|
+
}
|
|
9
12
|
};
|
|
10
13
|
exports.attribute = {
|
|
11
14
|
label: 'Attribute-Value pairs',
|
|
12
15
|
description: 'Extra attributes associated with the customer profile. [See more info](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes).',
|
|
13
16
|
type: 'object',
|
|
14
|
-
required: false
|
|
17
|
+
required: false,
|
|
18
|
+
default: {
|
|
19
|
+
'@path': '$.traits'
|
|
20
|
+
}
|
|
15
21
|
};
|
|
16
22
|
exports.audienceId = {
|
|
17
|
-
label: '
|
|
18
|
-
description: 'You should get
|
|
23
|
+
label: 'Audience IDs (the label must not be used)',
|
|
24
|
+
description: 'You should get these audience IDs from Talon.One.',
|
|
19
25
|
type: 'integer',
|
|
20
26
|
multiple: true,
|
|
21
27
|
required: false
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"t1-properties.js","sourceRoot":"","sources":["../../../src/destinations/talon-one/t1-properties.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAe;IAC3C,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EAAE,kEAAkE;IAC/E,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;
|
|
1
|
+
{"version":3,"file":"t1-properties.js","sourceRoot":"","sources":["../../../src/destinations/talon-one/t1-properties.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAe;IAC3C,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EAAE,kEAAkE;IAC/E,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE;QACP,OAAO,EAAE,UAAU;KACpB;CACF,CAAA;AAEY,QAAA,SAAS,GAAe;IACnC,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EACT,oJAAoJ;IACtJ,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE;QACP,OAAO,EAAE,UAAU;KACpB;CACF,CAAA;AAEY,QAAA,UAAU,GAAe;IACpC,KAAK,EAAE,2CAA2C;IAClD,WAAW,EAAE,mDAAmD;IAChE,IAAI,EAAE,SAAS;IACf,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,KAAK;CAChB,CAAA;AAEY,QAAA,aAAa,GAAe;IACvC,GAAG,kBAAU;IACb,KAAK,EAAE,6DAA6D;CACrE,CAAA;AAEY,QAAA,gBAAgB,GAAe;IAC1C,GAAG,kBAAU;IACb,KAAK,EAAE,8DAA8D;CACtE,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const t1_properties_1 = require("../t1-properties");
|
|
4
|
+
const TARGET_EVENT_TYPE = 'string';
|
|
4
5
|
const action = {
|
|
5
6
|
title: 'Track Event',
|
|
6
7
|
description: 'This records a custom event in Talon.One.',
|
|
@@ -13,16 +14,23 @@ const action = {
|
|
|
13
14
|
label: 'Event Type',
|
|
14
15
|
description: 'The name of the event sent to Talon.One.',
|
|
15
16
|
type: 'string',
|
|
16
|
-
required: true
|
|
17
|
+
required: true,
|
|
18
|
+
default: {
|
|
19
|
+
'@path': '$.event'
|
|
20
|
+
}
|
|
17
21
|
},
|
|
18
22
|
type: {
|
|
19
23
|
label: 'Type',
|
|
20
24
|
description: 'Type of event. Can be only `string`, `time`, `number`, `boolean`, `location`',
|
|
21
25
|
type: 'string',
|
|
22
|
-
required: true
|
|
26
|
+
required: true,
|
|
27
|
+
default: TARGET_EVENT_TYPE
|
|
23
28
|
},
|
|
24
29
|
attributes: {
|
|
25
30
|
...t1_properties_1.attribute,
|
|
31
|
+
default: {
|
|
32
|
+
'@path': '$.properties'
|
|
33
|
+
},
|
|
26
34
|
description: 'Extra attributes associated with the event. [See more info](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes).'
|
|
27
35
|
}
|
|
28
36
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/talon-one/trackEvent/index.ts"],"names":[],"mappings":";;AAGA,oDAA+D;AAE/D,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,2CAA2C;IACxD,MAAM,EAAE;QACN,iBAAiB,EAAE;YACjB,GAAG,iCAAiB;YACpB,WAAW,EACT,gIAAgI;SACnI;QACD,SAAS,EAAE;YACT,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,0CAA0C;YACvD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/talon-one/trackEvent/index.ts"],"names":[],"mappings":";;AAGA,oDAA+D;AAE/D,MAAM,iBAAiB,GAAG,QAAQ,CAAA;AAElC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,2CAA2C;IACxD,MAAM,EAAE;QACN,iBAAiB,EAAE;YACjB,GAAG,iCAAiB;YACpB,WAAW,EACT,gIAAgI;SACnI;QACD,SAAS,EAAE;YACT,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,0CAA0C;YACvD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,SAAS;aACnB;SACF;QACD,IAAI,EAAE;YACJ,KAAK,EAAE,MAAM;YACb,WAAW,EAAE,8EAA8E;YAC3F,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,iBAAiB;SAC3B;QACD,UAAU,EAAE;YACV,GAAG,yBAAS;YACZ,OAAO,EAAE;gBACP,OAAO,EAAE,cAAc;aACxB;YACD,WAAW,EACT,yIAAyI;SAC5I;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAEhC,OAAO,OAAO,CAAC,6CAA6C,EAAE;YAC5D,MAAM,EAAE,KAAK;YACb,IAAI,EAAE;gBACJ,iBAAiB,EAAE,OAAO,CAAC,iBAAiB;gBAC5C,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,eAAe,EAAE,OAAO,CAAC,UAAU;aACpC;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -13,7 +13,7 @@ const action = {
|
|
|
13
13
|
label: 'Run rule engine',
|
|
14
14
|
description: 'This runs rule engine in Talon.One upon updating customer profile. Set to true to trigger rules.',
|
|
15
15
|
type: 'boolean',
|
|
16
|
-
default:
|
|
16
|
+
default: true
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
perform: (request, { payload }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/talon-one/updateCustomerProfile/index.ts"],"names":[],"mappings":";;AAGA,oDAAgG;AAEhG,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,yBAAyB;IAChC,WAAW,EAAE,sEAAsE;IACnF,MAAM,EAAE;QACN,UAAU,EAAE,EAAE,GAAG,yBAAS,EAAE;QAC5B,iBAAiB,EAAE,EAAE,GAAG,iCAAiB,EAAE;QAC3C,iBAAiB,EAAE,EAAE,GAAG,gCAAgB,EAAE;QAC1C,cAAc,EAAE,EAAE,GAAG,6BAAa,EAAE;QACpC,aAAa,EAAE;YACb,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,kGAAkG;YAC/G,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/talon-one/updateCustomerProfile/index.ts"],"names":[],"mappings":";;AAGA,oDAAgG;AAEhG,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,yBAAyB;IAChC,WAAW,EAAE,sEAAsE;IACnF,MAAM,EAAE;QACN,UAAU,EAAE,EAAE,GAAG,yBAAS,EAAE;QAC5B,iBAAiB,EAAE,EAAE,GAAG,iCAAiB,EAAE;QAC3C,iBAAiB,EAAE,EAAE,GAAG,gCAAgB,EAAE;QAC1C,cAAc,EAAE,EAAE,GAAG,6BAAa,EAAE;QACpC,aAAa,EAAE;YACb,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,kGAAkG;YAC/G,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,IAAI;SACd;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAEhC,OAAO,OAAO,CAAC,0DAA0D,OAAO,CAAC,iBAAiB,EAAE,EAAE;YACpG,MAAM,EAAE,KAAK;YACb,IAAI,EAAE;gBACJ,UAAU,EAAE,OAAO,CAAC,UAAU;gBAC9B,gBAAgB,EAAE;oBAChB,IAAI,EAAE,OAAO,CAAC,cAAc;oBAC5B,OAAO,EAAE,OAAO,CAAC,iBAAiB;iBACnC;gBACD,aAAa,EAAE,OAAO,CAAC,aAAa;aACrC;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@segment/action-destinations",
|
|
3
3
|
"description": "Destination Actions engine and definitions.",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.74.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/segmentio/action-destinations",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@amplitude/ua-parser-js": "^0.7.25",
|
|
40
|
-
"@segment/actions-core": "^3.
|
|
41
|
-
"@segment/actions-shared": "^1.
|
|
40
|
+
"@segment/actions-core": "^3.24.0",
|
|
41
|
+
"@segment/actions-shared": "^1.7.0",
|
|
42
42
|
"cheerio": "^1.0.0-rc.10",
|
|
43
43
|
"dayjs": "^1.10.7",
|
|
44
44
|
"escape-goat": "^3",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"<rootDir>/test/setup-after-env.ts"
|
|
62
62
|
]
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "1d80dc9fa6aec5712915453f70b4b399829df3b1"
|
|
65
65
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/gainsight-px-cloud-action/groupIdentify/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/gainsight-px-cloud-action/groupIdentify/index.ts"],"names":[],"mappings":";;AAGA,8DAA2D;AAE3D,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EAAE,wFAAwF;IACrG,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE,EAAE;IACV,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAE1C,OAAO,OAAO,CAAC,wCAAmB,CAAC,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE;YAChE,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,OAAO;SACd,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/gainsight-px-cloud-action/identifyUser/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const regional_endpoints_1 = require("../regional-endpoints");
|
|
4
|
-
const action = {
|
|
5
|
-
title: 'Identify User',
|
|
6
|
-
description: 'Set the user ID for a particular device ID or update user properties',
|
|
7
|
-
defaultSubscription: 'type = "identify"',
|
|
8
|
-
fields: {},
|
|
9
|
-
perform: (request, { payload, settings }) => {
|
|
10
|
-
return request(regional_endpoints_1.getEndpointByRegion('track', settings.dataCenter), {
|
|
11
|
-
method: 'post',
|
|
12
|
-
json: payload
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
exports.default = action;
|
|
17
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/gainsight-px-cloud-action/identifyUser/index.ts"],"names":[],"mappings":";;AAGA,8DAA2D;AAE3D,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,sEAAsE;IACnF,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE,EAAE;IACV,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAE1C,OAAO,OAAO,CAAC,wCAAmB,CAAC,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE;YAChE,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,OAAO;SACd,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/gainsight-px-cloud-action/trackEvent/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const regional_endpoints_1 = require("../regional-endpoints");
|
|
4
|
-
const action = {
|
|
5
|
-
title: 'Track Event',
|
|
6
|
-
description: 'Send an event to Gainsight PX',
|
|
7
|
-
defaultSubscription: 'type = "track"',
|
|
8
|
-
fields: {},
|
|
9
|
-
perform: (request, { payload, settings }) => {
|
|
10
|
-
return request(regional_endpoints_1.getEndpointByRegion('track', settings.dataCenter), {
|
|
11
|
-
method: 'post',
|
|
12
|
-
json: payload
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
exports.default = action;
|
|
17
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/gainsight-px-cloud-action/trackEvent/index.ts"],"names":[],"mappings":";;AAGA,8DAA2D;AAE3D,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,+BAA+B;IAC5C,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE,EAAE;IACV,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAE1C,OAAO,OAAO,CAAC,wCAAmB,CAAC,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE;YAChE,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,OAAO;SACd,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/gainsight-px-cloud-action/trackPageView/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const regional_endpoints_1 = require("../regional-endpoints");
|
|
4
|
-
const action = {
|
|
5
|
-
title: 'Track Page View',
|
|
6
|
-
description: 'Send a page view event to Gainsight PX',
|
|
7
|
-
defaultSubscription: 'type = "page"',
|
|
8
|
-
fields: {},
|
|
9
|
-
perform: (request, { payload, settings }) => {
|
|
10
|
-
return request(regional_endpoints_1.getEndpointByRegion('track', settings.dataCenter), {
|
|
11
|
-
method: 'post',
|
|
12
|
-
json: payload
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
exports.default = action;
|
|
17
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/gainsight-px-cloud-action/trackPageView/index.ts"],"names":[],"mappings":";;AAGA,8DAA2D;AAE3D,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,iBAAiB;IACxB,WAAW,EAAE,wCAAwC;IACrD,mBAAmB,EAAE,eAAe;IACpC,MAAM,EAAE,EAAE;IACV,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAE1C,OAAO,OAAO,CAAC,wCAAmB,CAAC,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE;YAChE,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,OAAO;SACd,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|