@segment/action-destinations 3.421.1-staging-e77a32820.0 → 3.422.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/batch/updateProfile/type.d.ts +1 -1
- package/dist/destinations/bing-ads-audiences/generated-types.d.ts +0 -3
- package/dist/destinations/bing-ads-audiences/index.d.ts +1 -1
- package/dist/destinations/bing-ads-audiences/index.js +3 -82
- package/dist/destinations/bing-ads-audiences/index.js.map +1 -1
- package/dist/destinations/dynamic-yield-audiences/generated-types.d.ts +0 -1
- package/dist/destinations/dynamic-yield-audiences/helpers.d.ts +3 -2
- package/dist/destinations/dynamic-yield-audiences/helpers.js +27 -4
- package/dist/destinations/dynamic-yield-audiences/helpers.js.map +1 -1
- package/dist/destinations/dynamic-yield-audiences/index.js +22 -11
- package/dist/destinations/dynamic-yield-audiences/index.js.map +1 -1
- package/dist/destinations/dynamic-yield-audiences/syncAudience/index.js +13 -10
- package/dist/destinations/dynamic-yield-audiences/syncAudience/index.js.map +1 -1
- package/dist/destinations/epsilon/sendEvent/fields.d.ts +1 -0
- package/dist/destinations/epsilon/sendEvent/fields.js +8 -1
- package/dist/destinations/epsilon/sendEvent/fields.js.map +1 -1
- package/dist/destinations/epsilon/sendEvent/generated-types.d.ts +3 -0
- package/dist/destinations/epsilon/sendEvent/index.js +5 -3
- package/dist/destinations/epsilon/sendEvent/index.js.map +1 -1
- package/dist/destinations/first-party-dv360/_tests_/index.test.js +17 -17
- package/dist/destinations/first-party-dv360/_tests_/index.test.js.map +1 -1
- package/dist/destinations/first-party-dv360/addToAudContactInfo/_tests_/index.test.d.ts +1 -7
- package/dist/destinations/first-party-dv360/addToAudContactInfo/_tests_/index.test.js +2 -60
- package/dist/destinations/first-party-dv360/addToAudContactInfo/_tests_/index.test.js.map +1 -1
- package/dist/destinations/first-party-dv360/functions.d.ts +2 -2
- package/dist/destinations/first-party-dv360/functions.js +26 -64
- package/dist/destinations/first-party-dv360/functions.js.map +1 -1
- package/dist/destinations/first-party-dv360/index.js +2 -4
- package/dist/destinations/first-party-dv360/index.js.map +1 -1
- package/dist/destinations/first-party-dv360/removeFromAudContactInfo/_tests_/index.test.js +2 -2
- package/dist/destinations/first-party-dv360/removeFromAudContactInfo/_tests_/index.test.js.map +1 -1
- package/dist/destinations/index.js +1 -0
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/kafka/index.js +1 -1
- package/dist/destinations/kafka/index.js.map +1 -1
- package/dist/destinations/kafka/send/generated-types.d.ts +0 -2
- package/dist/destinations/kafka/send/index.js +1 -17
- package/dist/destinations/kafka/send/index.js.map +1 -1
- package/dist/destinations/kafka/utils.d.ts +3 -2
- package/dist/destinations/kafka/utils.js +29 -65
- package/dist/destinations/kafka/utils.js.map +1 -1
- package/dist/destinations/klaviyo/functions.d.ts +3 -3
- package/dist/destinations/klaviyo/functions.js +21 -42
- package/dist/destinations/klaviyo/functions.js.map +1 -1
- package/dist/destinations/klaviyo/types.d.ts +3 -5
- package/dist/destinations/klaviyo/types.js.map +1 -1
- package/dist/destinations/klaviyo/upsertProfile/index.js +27 -25
- package/dist/destinations/klaviyo/upsertProfile/index.js.map +1 -1
- package/dist/destinations/linkedin-audiences/updateAudience/index.js +2 -1
- package/dist/destinations/linkedin-audiences/updateAudience/index.js.map +1 -1
- package/dist/destinations/liveramp-audiences/audienceEnteredS3/index.js +0 -3
- package/dist/destinations/liveramp-audiences/audienceEnteredS3/index.js.map +1 -1
- package/dist/destinations/liveramp-audiences/audienceEnteredS3/s3.d.ts +1 -2
- package/dist/destinations/liveramp-audiences/audienceEnteredS3/s3.js +0 -33
- package/dist/destinations/liveramp-audiences/audienceEnteredS3/s3.js.map +1 -1
- package/dist/destinations/taguchi/generated-types.d.ts +5 -0
- package/dist/destinations/taguchi/generated-types.js.map +1 -0
- package/dist/destinations/{ms-bing-capi → taguchi}/index.d.ts +1 -1
- package/dist/destinations/taguchi/index.js +61 -0
- package/dist/destinations/taguchi/index.js.map +1 -0
- package/dist/destinations/taguchi/syncEvent/fields.d.ts +5 -0
- package/dist/destinations/taguchi/syncEvent/fields.js +139 -0
- package/dist/destinations/taguchi/syncEvent/fields.js.map +1 -0
- package/dist/destinations/taguchi/syncEvent/generated-types.d.ts +20 -0
- package/dist/destinations/taguchi/syncEvent/generated-types.js.map +1 -0
- package/dist/destinations/taguchi/syncEvent/index.js +22 -0
- package/dist/destinations/taguchi/syncEvent/index.js.map +1 -0
- package/dist/destinations/taguchi/syncEvent/types.d.ts +33 -0
- package/dist/destinations/taguchi/syncEvent/types.js.map +1 -0
- package/dist/destinations/taguchi/syncEvent/utils.d.ts +6 -0
- package/dist/destinations/taguchi/syncEvent/utils.js +62 -0
- package/dist/destinations/taguchi/syncEvent/utils.js.map +1 -0
- package/dist/destinations/taguchi/syncUserProfile/fields.d.ts +6 -0
- package/dist/destinations/taguchi/syncUserProfile/fields.js +235 -0
- package/dist/destinations/taguchi/syncUserProfile/fields.js.map +1 -0
- package/dist/destinations/taguchi/syncUserProfile/generated-types.d.ts +25 -0
- package/dist/destinations/taguchi/syncUserProfile/generated-types.js.map +1 -0
- package/dist/destinations/taguchi/syncUserProfile/index.js +23 -0
- package/dist/destinations/taguchi/syncUserProfile/index.js.map +1 -0
- package/dist/destinations/taguchi/syncUserProfile/types.d.ts +32 -0
- package/dist/destinations/taguchi/syncUserProfile/types.js.map +1 -0
- package/dist/destinations/taguchi/syncUserProfile/utils.d.ts +6 -0
- package/dist/destinations/taguchi/syncUserProfile/utils.js +97 -0
- package/dist/destinations/taguchi/syncUserProfile/utils.js.map +1 -0
- package/dist/destinations/the-trade-desk-crm/index.d.ts +2 -0
- package/dist/destinations/the-trade-desk-crm/index.js +8 -5
- package/dist/destinations/the-trade-desk-crm/index.js.map +1 -1
- package/dist/destinations/twilio-messaging/sendMessage/fields.js +10 -0
- package/dist/destinations/twilio-messaging/sendMessage/fields.js.map +1 -1
- package/dist/destinations/yonoma/sendEvent/generated-types.d.ts +1 -0
- package/dist/destinations/yonoma/sendEvent/index.js +6 -0
- package/dist/destinations/yonoma/sendEvent/index.js.map +1 -1
- package/dist/destinations/yonoma/trackPageView/index.js +14 -2
- package/dist/destinations/yonoma/trackPageView/index.js.map +1 -1
- package/dist/destinations/yonoma/upsertContact/constants.d.ts +0 -2
- package/dist/destinations/yonoma/upsertContact/constants.js +1 -3
- package/dist/destinations/yonoma/upsertContact/constants.js.map +1 -1
- package/dist/destinations/yonoma/upsertContact/index.js +10 -26
- package/dist/destinations/yonoma/upsertContact/index.js.map +1 -1
- package/dist/destinations/yonoma/upsertContact/types.d.ts +2 -6
- package/package.json +4 -4
- package/dist/destinations/bing-ads-audiences/constants.d.ts +0 -2
- package/dist/destinations/bing-ads-audiences/constants.js +0 -7
- package/dist/destinations/bing-ads-audiences/constants.js.map +0 -1
- package/dist/destinations/bing-ads-audiences/types.d.ts +0 -29
- package/dist/destinations/bing-ads-audiences/types.js.map +0 -1
- package/dist/destinations/dynamic-yield-audiences/syncAudience/types.d.ts +0 -30
- package/dist/destinations/dynamic-yield-audiences/syncAudience/types.js.map +0 -1
- package/dist/destinations/ms-bing-capi/constants.d.ts +0 -2
- package/dist/destinations/ms-bing-capi/constants.js +0 -186
- package/dist/destinations/ms-bing-capi/constants.js.map +0 -1
- package/dist/destinations/ms-bing-capi/fields.d.ts +0 -6
- package/dist/destinations/ms-bing-capi/fields.js +0 -334
- package/dist/destinations/ms-bing-capi/fields.js.map +0 -1
- package/dist/destinations/ms-bing-capi/generated-types.d.ts +0 -4
- package/dist/destinations/ms-bing-capi/generated-types.js.map +0 -1
- package/dist/destinations/ms-bing-capi/index.js +0 -49
- package/dist/destinations/ms-bing-capi/index.js.map +0 -1
- package/dist/destinations/ms-bing-capi/pageLoad/generated-types.d.ts +0 -22
- package/dist/destinations/ms-bing-capi/pageLoad/generated-types.js.map +0 -1
- package/dist/destinations/ms-bing-capi/pageLoad/index.js +0 -36
- package/dist/destinations/ms-bing-capi/pageLoad/index.js.map +0 -1
- package/dist/destinations/ms-bing-capi/sendEvent/generated-types.d.ts +0 -22
- package/dist/destinations/ms-bing-capi/sendEvent/generated-types.js.map +0 -1
- package/dist/destinations/ms-bing-capi/sendEvent/index.js +0 -35
- package/dist/destinations/ms-bing-capi/sendEvent/index.js.map +0 -1
- package/dist/destinations/ms-bing-capi/sendEvent/types.d.ts +0 -13
- package/dist/destinations/ms-bing-capi/sendEvent/types.js +0 -3
- package/dist/destinations/ms-bing-capi/sendEvent/types.js.map +0 -1
- package/dist/destinations/ms-bing-capi/sendEvent/utils.d.ts +0 -4
- package/dist/destinations/ms-bing-capi/sendEvent/utils.js +0 -8
- package/dist/destinations/ms-bing-capi/sendEvent/utils.js.map +0 -1
- /package/dist/destinations/{ms-bing-capi → taguchi}/generated-types.js +0 -0
- /package/dist/destinations/{ms-bing-capi/pageLoad → taguchi/syncEvent}/generated-types.js +0 -0
- /package/dist/destinations/{ms-bing-capi/pageLoad → taguchi/syncEvent}/index.d.ts +0 -0
- /package/dist/destinations/{bing-ads-audiences → taguchi/syncEvent}/types.js +0 -0
- /package/dist/destinations/{ms-bing-capi/sendEvent → taguchi/syncUserProfile}/generated-types.js +0 -0
- /package/dist/destinations/{ms-bing-capi/sendEvent → taguchi/syncUserProfile}/index.d.ts +0 -0
- /package/dist/destinations/{dynamic-yield-audiences/syncAudience → taguchi/syncUserProfile}/types.js +0 -0
|
@@ -1,334 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.customData = exports.hotelData = exports.items = exports.data = exports.userData = void 0;
|
|
4
|
-
const utils_1 = require("./sendEvent/utils");
|
|
5
|
-
exports.userData = {
|
|
6
|
-
label: 'User Data',
|
|
7
|
-
description: 'A list of user identifiers associated with the event.',
|
|
8
|
-
type: 'object',
|
|
9
|
-
required: true,
|
|
10
|
-
properties: {
|
|
11
|
-
clientUserAgent: {
|
|
12
|
-
label: 'Client User Agent',
|
|
13
|
-
description: 'User agent string of the client device.',
|
|
14
|
-
type: 'string'
|
|
15
|
-
},
|
|
16
|
-
anonymousId: {
|
|
17
|
-
label: 'Anonymous ID',
|
|
18
|
-
description: 'Guest user anonymous ID.',
|
|
19
|
-
type: 'string'
|
|
20
|
-
},
|
|
21
|
-
externalId: {
|
|
22
|
-
label: 'External ID',
|
|
23
|
-
description: 'Authenticated user id (anonymized) if user is logged in. Also used for ID sync',
|
|
24
|
-
type: 'string'
|
|
25
|
-
},
|
|
26
|
-
em: {
|
|
27
|
-
label: 'Email',
|
|
28
|
-
description: 'Email address of the user. Accepts a clear text or hashed email address. Segment will ensure the email address is hashed before sending to Bing Ads.',
|
|
29
|
-
type: 'string'
|
|
30
|
-
},
|
|
31
|
-
ph: {
|
|
32
|
-
label: 'Phone',
|
|
33
|
-
description: 'Phone number of the user. Accepts a clear text or hashed phone number. Segment will ensure the phone number is hashed before sending to Bing Ads.',
|
|
34
|
-
type: 'string'
|
|
35
|
-
},
|
|
36
|
-
clientIpAddress: {
|
|
37
|
-
label: 'Client IP Address',
|
|
38
|
-
description: 'IP address of the client device.',
|
|
39
|
-
type: 'string'
|
|
40
|
-
},
|
|
41
|
-
msclkid: {
|
|
42
|
-
label: 'MSCLKID',
|
|
43
|
-
description: 'Microsoft Last Click ID.',
|
|
44
|
-
type: 'string'
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
default: {
|
|
48
|
-
clientUserAgent: { '@path': '$.context.userAgent' },
|
|
49
|
-
anonymousId: { '@path': '$.anonymousId' },
|
|
50
|
-
externalId: { '@path': '$.userId' },
|
|
51
|
-
em: {
|
|
52
|
-
'@if': {
|
|
53
|
-
exists: { '@path': '$.context.traits.email' },
|
|
54
|
-
then: { '@path': '$.context.traits.email' },
|
|
55
|
-
else: { '@path': '$.properties.email' }
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
ph: {
|
|
59
|
-
'@if': {
|
|
60
|
-
exists: { '@path': '$.context.traits.phone' },
|
|
61
|
-
then: { '@path': '$.context.traits.phone' },
|
|
62
|
-
else: { '@path': '$.properties.phone' }
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
clientIpAddress: { '@path': '$.context.ip' },
|
|
66
|
-
msclkid: {
|
|
67
|
-
'@if': {
|
|
68
|
-
exists: { '@path': '$.properties.msclkid' },
|
|
69
|
-
then: { '@path': '$.properties.msclkid' },
|
|
70
|
-
else: { '@path': '$.integrations.Ms Bing Capi.msclkid' }
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
exports.data = {
|
|
76
|
-
label: 'Data',
|
|
77
|
-
description: 'TODO - description for this field',
|
|
78
|
-
type: 'object',
|
|
79
|
-
required: true,
|
|
80
|
-
properties: {
|
|
81
|
-
eventType: {
|
|
82
|
-
label: 'Event Type',
|
|
83
|
-
description: 'The type of event being sent to the Bing API.',
|
|
84
|
-
type: 'string',
|
|
85
|
-
required: true,
|
|
86
|
-
choices: [
|
|
87
|
-
{ label: 'Page Load', value: 'pageLoad' },
|
|
88
|
-
{ label: 'Custom', value: 'custom' }
|
|
89
|
-
]
|
|
90
|
-
},
|
|
91
|
-
eventId: {
|
|
92
|
-
label: 'Event ID',
|
|
93
|
-
description: 'EventID for deduplication. Defaults to the Segment messageId.',
|
|
94
|
-
type: 'string'
|
|
95
|
-
},
|
|
96
|
-
eventName: {
|
|
97
|
-
label: 'Event Name',
|
|
98
|
-
description: 'Event action for custom conversion goals, if used.',
|
|
99
|
-
type: 'string'
|
|
100
|
-
},
|
|
101
|
-
eventTime: {
|
|
102
|
-
label: 'Event Time',
|
|
103
|
-
description: 'The time the event occurred.',
|
|
104
|
-
type: 'string',
|
|
105
|
-
required: true
|
|
106
|
-
},
|
|
107
|
-
eventSourceUrl: {
|
|
108
|
-
label: 'Event Source URL',
|
|
109
|
-
description: 'URL of the page, used for example: “destination URL” goals. Required for pageLoad events.',
|
|
110
|
-
type: 'string',
|
|
111
|
-
required: {
|
|
112
|
-
conditions: [{ fieldKey: 'eventDetails.eventType', operator: 'is', value: 'pageLoad' }]
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
pageLoadId: {
|
|
116
|
-
label: 'Page Load ID',
|
|
117
|
-
description: 'Page load id that links to 0+ custom events from the same page. Format as a v4 UUID. ',
|
|
118
|
-
type: 'string'
|
|
119
|
-
},
|
|
120
|
-
referrerUrl: {
|
|
121
|
-
label: 'Referrer URL',
|
|
122
|
-
description: 'Referrer of the page, used for example: "referral" remarketing lists.',
|
|
123
|
-
type: 'string'
|
|
124
|
-
},
|
|
125
|
-
pageTitle: {
|
|
126
|
-
label: 'Page Title',
|
|
127
|
-
description: 'Title of the page.',
|
|
128
|
-
type: 'string'
|
|
129
|
-
},
|
|
130
|
-
keywords: {
|
|
131
|
-
label: 'Keywords',
|
|
132
|
-
description: 'Page keywords - SEO meta keyworls.',
|
|
133
|
-
type: 'string'
|
|
134
|
-
},
|
|
135
|
-
userData: exports.userData
|
|
136
|
-
},
|
|
137
|
-
default: {
|
|
138
|
-
eventType: { '@path': '$.properties.event_type' },
|
|
139
|
-
eventId: { '@path': '$.messageId' },
|
|
140
|
-
eventName: { '@path': '$.event' },
|
|
141
|
-
eventTime: { '@path': '$.timestamp' },
|
|
142
|
-
eventSourceUrl: { '@path': '$.context.page.url' },
|
|
143
|
-
pageLoadId: { '@path': '$.properties.page_load_id' },
|
|
144
|
-
referrerUrl: { '@path': '$.context.page.referrer' },
|
|
145
|
-
pageTitle: { '@path': '$.context.page.title' },
|
|
146
|
-
keywords: { '@path': '$.properties.keywords' }
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
|
-
exports.items = {
|
|
150
|
-
label: 'Items',
|
|
151
|
-
description: 'The list of items associated with the event. Must contain at least one item.',
|
|
152
|
-
type: 'object',
|
|
153
|
-
multiple: true,
|
|
154
|
-
required: false,
|
|
155
|
-
properties: {
|
|
156
|
-
id: {
|
|
157
|
-
label: 'Item ID',
|
|
158
|
-
description: 'The unique identifier for the item.',
|
|
159
|
-
type: 'string',
|
|
160
|
-
required: true
|
|
161
|
-
},
|
|
162
|
-
name: {
|
|
163
|
-
label: 'Item Name',
|
|
164
|
-
description: 'The name of the item.',
|
|
165
|
-
type: 'string',
|
|
166
|
-
required: true
|
|
167
|
-
},
|
|
168
|
-
price: {
|
|
169
|
-
label: 'Item Price',
|
|
170
|
-
description: 'The price of the item, after discounts.',
|
|
171
|
-
type: 'integer',
|
|
172
|
-
required: true
|
|
173
|
-
},
|
|
174
|
-
quantity: {
|
|
175
|
-
label: 'Item Quantity',
|
|
176
|
-
description: 'The quantity of the item.',
|
|
177
|
-
type: 'integer',
|
|
178
|
-
required: true
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
default: {
|
|
182
|
-
'@arrayPath': [
|
|
183
|
-
'$.properties.products',
|
|
184
|
-
{
|
|
185
|
-
id: { '@path': '$.id' },
|
|
186
|
-
name: { '@path': '$.name' },
|
|
187
|
-
quantity: { '@path': '$.quantity' },
|
|
188
|
-
item_price: { '@path': '$.price' }
|
|
189
|
-
}
|
|
190
|
-
]
|
|
191
|
-
}
|
|
192
|
-
};
|
|
193
|
-
exports.hotelData = {
|
|
194
|
-
label: 'Hotel Data',
|
|
195
|
-
description: 'Data specific to hotel events.',
|
|
196
|
-
type: 'object',
|
|
197
|
-
properties: {
|
|
198
|
-
totalPrice: {
|
|
199
|
-
label: 'Total Price',
|
|
200
|
-
description: 'Total price of the booking, including taxes and fees.',
|
|
201
|
-
type: 'integer'
|
|
202
|
-
},
|
|
203
|
-
basePrice: {
|
|
204
|
-
label: 'Base Price',
|
|
205
|
-
description: 'Price of the booking, not including taxes or fees.',
|
|
206
|
-
type: 'integer'
|
|
207
|
-
},
|
|
208
|
-
checkInDate: {
|
|
209
|
-
label: 'Check-In Date',
|
|
210
|
-
description: 'The date of check-in for the hotel booking in the format YYYY-MM-DD',
|
|
211
|
-
type: 'string',
|
|
212
|
-
format: 'date-time'
|
|
213
|
-
},
|
|
214
|
-
checkOutDate: {
|
|
215
|
-
label: 'Check-Out Date',
|
|
216
|
-
description: 'The date of check-out for the hotel booking in the format YYYY-MM-DD',
|
|
217
|
-
type: 'string',
|
|
218
|
-
format: 'date-time'
|
|
219
|
-
},
|
|
220
|
-
lengthOfStay: {
|
|
221
|
-
label: 'Length of Stay',
|
|
222
|
-
description: 'The number of nights the booking is for. Not required if you specify hct_checkout_date.',
|
|
223
|
-
type: 'integer'
|
|
224
|
-
},
|
|
225
|
-
partnerHotelId: {
|
|
226
|
-
label: 'Partner Hotel ID',
|
|
227
|
-
description: 'The ID of the hotel as provided by the partner.',
|
|
228
|
-
type: 'string'
|
|
229
|
-
},
|
|
230
|
-
bookingHref: {
|
|
231
|
-
label: 'Booking Href',
|
|
232
|
-
description: 'Encrypted or obfuscated booking refrence number',
|
|
233
|
-
type: 'string'
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
|
-
default: {
|
|
237
|
-
totalPrice: { '@path': '$.properties.hotel_total_price' },
|
|
238
|
-
basePrice: { '@path': '$.properties.hotel_base_price' },
|
|
239
|
-
checkInDate: { '@path': '$.properties.hotel_check_in_date' },
|
|
240
|
-
checkOutDate: { '@path': '$.properties.hotel_check_out_date' },
|
|
241
|
-
lengthOfStay: { '@path': '$.properties.hotel_length_of_stay' },
|
|
242
|
-
partnerHotelId: { '@path': '$.properties.hotel_partner_id' },
|
|
243
|
-
bookingHref: { '@path': '$.properties.hotel_booking_href' }
|
|
244
|
-
}
|
|
245
|
-
};
|
|
246
|
-
exports.customData = {
|
|
247
|
-
label: 'Custom Data',
|
|
248
|
-
description: 'Custom data to be sent to the Bing API. This can include additional properties that are not covered by the standard fields.',
|
|
249
|
-
type: 'object',
|
|
250
|
-
properties: {
|
|
251
|
-
eventCategory: {
|
|
252
|
-
label: 'Event Category',
|
|
253
|
-
description: 'The category for custom conversion goals, if used.',
|
|
254
|
-
type: 'string'
|
|
255
|
-
},
|
|
256
|
-
eventLabel: {
|
|
257
|
-
label: 'Event Label',
|
|
258
|
-
description: 'The label for custom conversion goals.',
|
|
259
|
-
type: 'string'
|
|
260
|
-
},
|
|
261
|
-
eventValue: {
|
|
262
|
-
label: 'Event Value',
|
|
263
|
-
description: 'The event value for custom conversion goals.',
|
|
264
|
-
type: 'number'
|
|
265
|
-
},
|
|
266
|
-
searchTerm: {
|
|
267
|
-
label: 'Search Term',
|
|
268
|
-
description: 'The query used by the user for a search results page.',
|
|
269
|
-
type: 'string'
|
|
270
|
-
},
|
|
271
|
-
transactionId: {
|
|
272
|
-
label: 'Transaction ID',
|
|
273
|
-
description: 'The unique identifier for the transaction. Required for purchase events.',
|
|
274
|
-
type: 'string'
|
|
275
|
-
},
|
|
276
|
-
value: {
|
|
277
|
-
label: 'Value',
|
|
278
|
-
description: 'Revenue value (float) to report variable revenue for goals, if used',
|
|
279
|
-
type: 'number'
|
|
280
|
-
},
|
|
281
|
-
currency: {
|
|
282
|
-
label: 'Currency',
|
|
283
|
-
description: 'The currency of the event value, in ISO 4217 format.',
|
|
284
|
-
type: 'string',
|
|
285
|
-
choices: (0, utils_1.getCurrencyChoices)()
|
|
286
|
-
},
|
|
287
|
-
itemIds: {
|
|
288
|
-
label: 'Item IDs',
|
|
289
|
-
description: 'A comma separated list of product IDs, or an array of IDs.',
|
|
290
|
-
type: 'string',
|
|
291
|
-
multiple: true
|
|
292
|
-
},
|
|
293
|
-
pageType: {
|
|
294
|
-
label: 'Page Type',
|
|
295
|
-
description: 'The type of page where the event occurred.',
|
|
296
|
-
type: 'string',
|
|
297
|
-
choices: [
|
|
298
|
-
{ label: 'Home', value: 'home' },
|
|
299
|
-
{ label: 'Product', value: 'product' },
|
|
300
|
-
{ label: 'Category', value: 'category' },
|
|
301
|
-
{ label: 'Search Results', value: 'searchresults' },
|
|
302
|
-
{ label: 'Cart', value: 'cart' },
|
|
303
|
-
{ label: 'Purchase', value: 'purchase' },
|
|
304
|
-
{ label: 'Other', value: 'other' }
|
|
305
|
-
]
|
|
306
|
-
},
|
|
307
|
-
ecommTotalValue: {
|
|
308
|
-
label: 'Ecomm Total Value',
|
|
309
|
-
description: 'Total value of the cart of purchase.',
|
|
310
|
-
type: 'number'
|
|
311
|
-
},
|
|
312
|
-
ecommCategory: {
|
|
313
|
-
label: 'Ecomm Category',
|
|
314
|
-
description: 'Category ID',
|
|
315
|
-
type: 'string'
|
|
316
|
-
},
|
|
317
|
-
items: exports.items,
|
|
318
|
-
hotelData: exports.hotelData
|
|
319
|
-
},
|
|
320
|
-
default: {
|
|
321
|
-
eventCategory: { '@path': '$.properties.event_category' },
|
|
322
|
-
eventLabel: { '@path': '$.properties.event_label' },
|
|
323
|
-
eventValue: { '@path': '$.properties.value' },
|
|
324
|
-
searchTerm: { '@path': '$.properties.query' },
|
|
325
|
-
transactionId: { '@path': '$.properties.order_id' },
|
|
326
|
-
value: { '@path': '$.properties.value' },
|
|
327
|
-
currency: { '@path': '$.properties.currency' },
|
|
328
|
-
itemIds: { '@path': '$.properties.item_ids' },
|
|
329
|
-
pageType: { '@path': '$.properties.page_type' },
|
|
330
|
-
ecommTotalValue: { '@path': '$.properties.ecomm_total_value' },
|
|
331
|
-
ecommCategory: { '@path': '$.properties.ecomm_category' }
|
|
332
|
-
}
|
|
333
|
-
};
|
|
334
|
-
//# sourceMappingURL=fields.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../src/destinations/ms-bing-capi/fields.ts"],"names":[],"mappings":";;;AACA,6CAAsD;AAEzC,QAAA,QAAQ,GAAe;IAClC,KAAK,EAAE,WAAW;IAClB,WAAW,EAAE,uDAAuD;IACpE,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;IACd,UAAU,EAAE;QACV,eAAe,EAAE;YACf,KAAK,EAAE,mBAAmB;YAC1B,WAAW,EAAE,yCAAyC;YACtD,IAAI,EAAE,QAAQ;SACf;QACD,WAAW,EAAE;YACX,KAAK,EAAE,cAAc;YACrB,WAAW,EAAE,0BAA0B;YACvC,IAAI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O,EAAE,uBAAuB,EAAE;QACnD,KAAK,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;QACxC,QAAQ,EAAE,EAAE,OAAO,EAAE,uBAAuB,EAAE;QAC9C,OAAO,EAAE,EAAE,OAAO,EAAE,uBAAuB,EAAE;QAC7C,QAAQ,EAAE,EAAE,OAAO,EAAE,wBAAwB,EAAE;QAC/C,eAAe,EAAE,EAAE,OAAO,EAAE,gCAAgC,EAAE;QAC9D,aAAa,EAAE,EAAE,OAAO,EAAE,6BAA6B,EAAE;KAC1D;CACF,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/destinations/ms-bing-capi/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const sendEvent_1 = __importDefault(require("./sendEvent"));
|
|
7
|
-
const pageLoad_1 = __importDefault(require("./pageLoad"));
|
|
8
|
-
const constants_1 = require("./constants");
|
|
9
|
-
const destination = {
|
|
10
|
-
name: 'Ms Bing Capi',
|
|
11
|
-
slug: 'actions-ms-bing-capi',
|
|
12
|
-
mode: 'cloud',
|
|
13
|
-
authentication: {
|
|
14
|
-
scheme: 'basic',
|
|
15
|
-
fields: {
|
|
16
|
-
UetTag: {
|
|
17
|
-
label: 'Bing UetTag',
|
|
18
|
-
description: 'Your Bing UetTag.',
|
|
19
|
-
type: 'string',
|
|
20
|
-
required: true
|
|
21
|
-
},
|
|
22
|
-
ApiToken: {
|
|
23
|
-
label: 'Bing ApiToken',
|
|
24
|
-
description: 'Your Bing API Token.',
|
|
25
|
-
type: 'string',
|
|
26
|
-
required: true
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
testAuthentication: (request, { settings }) => {
|
|
30
|
-
return request(`${constants_1.API_URL}/${settings.UetTag}/events`, {
|
|
31
|
-
method: 'get'
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
extendRequest: ({ settings }) => {
|
|
36
|
-
return {
|
|
37
|
-
headers: {
|
|
38
|
-
Authorization: `Bearer ${settings.ApiToken}`,
|
|
39
|
-
'Content-Type': 'application/json'
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
},
|
|
43
|
-
actions: {
|
|
44
|
-
sendEvent: sendEvent_1.default,
|
|
45
|
-
pageLoad: pageLoad_1.default
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
exports.default = destination;
|
|
49
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/ms-bing-capi/index.ts"],"names":[],"mappings":";;;;;AAEA,4DAAmC;AACnC,0DAAiC;AACjC,2CAAqC;AAErC,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE,OAAO;IACb,cAAc,EAAE;QACd,MAAM,EAAE,OAAO;QACf,MAAM,EAAE;YACN,MAAM,EAAE;gBACN,KAAK,EAAE,aAAa;gBACpB,WAAW,EAAE,mBAAmB;gBAChC,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,QAAQ,EAAE;gBACR,KAAK,EAAE,eAAe;gBACtB,WAAW,EAAE,sBAAsB;gBACnC,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;SACF;QACD,kBAAkB,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;YAC5C,OAAO,OAAO,CAAC,GAAG,mBAAO,IAAI,QAAQ,CAAC,MAAM,SAAS,EAAE;gBACrD,MAAM,EAAE,KAAK;aACd,CAAC,CAAA;QACJ,CAAC;KACF;IACD,aAAa,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC9B,OAAO;YACL,OAAO,EAAE;gBACP,aAAa,EAAE,UAAU,QAAQ,CAAC,QAAQ,EAAE;gBAC5C,cAAc,EAAE,kBAAkB;aACnC;SACF,CAAA;IACH,CAAC;IACD,OAAO,EAAE;QACP,SAAS,EAAT,mBAAS;QACT,QAAQ,EAAR,kBAAQ;KACT;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface Payload {
|
|
2
|
-
data: {
|
|
3
|
-
eventType?: string;
|
|
4
|
-
eventId?: string;
|
|
5
|
-
eventName?: string;
|
|
6
|
-
eventTime?: string;
|
|
7
|
-
eventSourceUrl?: string;
|
|
8
|
-
pageLoadId?: string;
|
|
9
|
-
referrerUrl?: string;
|
|
10
|
-
pageTitle?: string;
|
|
11
|
-
keywords?: string;
|
|
12
|
-
userData?: {
|
|
13
|
-
clientUserAgent?: string;
|
|
14
|
-
anonymousId?: string;
|
|
15
|
-
externalId?: string;
|
|
16
|
-
em?: string;
|
|
17
|
-
ph?: string;
|
|
18
|
-
clientIpAddress?: string;
|
|
19
|
-
msclkid?: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/ms-bing-capi/pageLoad/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const fields_1 = require("../fields");
|
|
4
|
-
const constants_1 = require("../constants");
|
|
5
|
-
const hashing_utils_1 = require("../../../lib/hashing-utils");
|
|
6
|
-
const uuid_1 = require("@lukeed/uuid");
|
|
7
|
-
const action = {
|
|
8
|
-
title: 'Page Load',
|
|
9
|
-
description: 'Send a page load event to Microsoft Bing CAPI.',
|
|
10
|
-
defaultSubscription: 'type = "page"',
|
|
11
|
-
fields: {
|
|
12
|
-
data: fields_1.data
|
|
13
|
-
},
|
|
14
|
-
perform: (request, { payload, settings }) => {
|
|
15
|
-
if (payload.data.userData == undefined) {
|
|
16
|
-
payload.data.userData = {
|
|
17
|
-
anonymousId: (0, uuid_1.v4)()
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
if (payload.data.userData?.em) {
|
|
21
|
-
payload.data.userData.em = (0, hashing_utils_1.processHashing)(payload.data.userData.em, 'sha256', 'hex', (value) => value.trim().toLowerCase());
|
|
22
|
-
}
|
|
23
|
-
if (payload.data.userData?.ph) {
|
|
24
|
-
payload.data.userData.ph = (0, hashing_utils_1.processHashing)(payload.data.userData.ph, 'sha256', 'hex', (value) => value.trim().replace(/\D/g, ''));
|
|
25
|
-
}
|
|
26
|
-
const url = `${constants_1.API_URL}${settings.UetTag}/events`;
|
|
27
|
-
return request(url, {
|
|
28
|
-
method: 'post',
|
|
29
|
-
json: {
|
|
30
|
-
data: [payload.data]
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
exports.default = action;
|
|
36
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/ms-bing-capi/pageLoad/index.ts"],"names":[],"mappings":";;AAGA,sCAAiD;AACjD,4CAAsC;AACtC,8DAA2D;AAC3D,uCAA2C;AAE3C,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,WAAW;IAClB,WAAW,EAAE,gDAAgD;IAC7D,mBAAmB,EAAE,eAAe;IACpC,MAAM,EAAE;QACN,IAAI,EAAE,aAAa;KACpB;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC1C,IAAI,OAAO,CAA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
|
-
eventSourceUrl?: string;
|
|
8
|
-
pageLoadId?: string;
|
|
9
|
-
referrerUrl?: string;
|
|
10
|
-
pageTitle?: string;
|
|
11
|
-
keywords?: string;
|
|
12
|
-
userData?: {
|
|
13
|
-
clientUserAgent?: string;
|
|
14
|
-
anonymousId?: string;
|
|
15
|
-
externalId?: string;
|
|
16
|
-
em?: string;
|
|
17
|
-
ph?: string;
|
|
18
|
-
clientIpAddress?: string;
|
|
19
|
-
msclkid?: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/ms-bing-capi/sendEvent/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const fields_1 = require("../fields");
|
|
4
|
-
const constants_1 = require("../constants");
|
|
5
|
-
const hashing_utils_1 = require("../../../lib/hashing-utils");
|
|
6
|
-
const uuid_1 = require("@lukeed/uuid");
|
|
7
|
-
const action = {
|
|
8
|
-
title: 'Send Event',
|
|
9
|
-
description: '',
|
|
10
|
-
defaultSubscription: 'type = "track"',
|
|
11
|
-
fields: {
|
|
12
|
-
data: fields_1.data
|
|
13
|
-
},
|
|
14
|
-
perform: (request, { payload, settings }) => {
|
|
15
|
-
if (payload.data.userData == undefined) {
|
|
16
|
-
payload.data.userData = {
|
|
17
|
-
anonymousId: (0, uuid_1.v4)()
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
if (payload.data.userData?.em) {
|
|
21
|
-
payload.data.userData.em = (0, hashing_utils_1.processHashing)(payload.data.userData.em, 'sha256', 'hex', (value) => value.trim().toLowerCase());
|
|
22
|
-
}
|
|
23
|
-
if (payload.data.userData?.ph) {
|
|
24
|
-
payload.data.userData.ph = (0, hashing_utils_1.processHashing)(payload.data.userData.ph, 'sha256', 'hex', (value) => value.trim().replace(/\D/g, ''));
|
|
25
|
-
}
|
|
26
|
-
return request(`${constants_1.API_URL}${settings.UetTag}/events`, {
|
|
27
|
-
method: 'post',
|
|
28
|
-
json: {
|
|
29
|
-
data: [payload.data]
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
exports.default = action;
|
|
35
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/ms-bing-capi/sendEvent/index.ts"],"names":[],"mappings":";;AAGA,sCAAgC;AAChC,4CAAsC;AACtC,8DAA2D;AAC3D,uCAA2C;AAE3C,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,EAAE;IACf,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,IAAI,EAAE,aAAI;KACX;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC1C,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,IAAI,SAAS,EAAE,CAAC;YACvC,OAAO,CAAC,IAAI,CAAC,QAAQ,GAAG;gBACtB,WAAW,EAAE,IAAA,SAAM,GAAE;aACtB,CAAA;QACH,CAAC;QACD,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,EAAE,CAAC;YAC9B,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,GAAG,IAAA,8BAAc,EAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAC7F,KAAK,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAC3B,CAAA;QACH,CAAC;QACD,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,EAAE,CAAC;YAC9B,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,GAAG,IAAA,8BAAc,EAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAC7F,KAAK,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAChC,CAAA;QACH,CAAC;QAED,OAAO,OAAO,CAAC,GAAG,mBAAO,GAAG,QAAQ,CAAC,MAAM,SAAS,EAAE;YACpD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,IAAI,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;aACrB;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface EventJSON {
|
|
2
|
-
data: Array<EventObject>;
|
|
3
|
-
}
|
|
4
|
-
export interface EventObject {
|
|
5
|
-
eventType: string;
|
|
6
|
-
eventId?: string;
|
|
7
|
-
eventName: string;
|
|
8
|
-
customData?: CustomData;
|
|
9
|
-
}
|
|
10
|
-
export interface EventResponse {
|
|
11
|
-
}
|
|
12
|
-
export interface CustomData {
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/destinations/ms-bing-capi/sendEvent/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getCurrencyChoices = getCurrencyChoices;
|
|
4
|
-
const constants_1 = require("../constants");
|
|
5
|
-
function getCurrencyChoices() {
|
|
6
|
-
return Array.from(constants_1.CURRENCY_ISO_CODES).map((code) => ({ label: code, value: code }));
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/destinations/ms-bing-capi/sendEvent/utils.ts"],"names":[],"mappings":";;AAEA,gDAEC;AAJD,4CAAiD;AAEjD,SAAgB,kBAAkB;IAChC,OAAO,KAAK,CAAC,IAAI,CAAC,8BAAkB,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;AACrF,CAAC"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/destinations/{ms-bing-capi/sendEvent → taguchi/syncUserProfile}/generated-types.js
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/destinations/{dynamic-yield-audiences/syncAudience → taguchi/syncUserProfile}/types.js
RENAMED
|
File without changes
|