@segment/action-destinations 3.103.1-alpha.2 → 3.104.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/actions-pardot/prospects/index.js.map +1 -1
- package/dist/destinations/adobe-target/adobeTarget_operations.d.ts +1 -1
- package/dist/destinations/adobe-target/adobeTarget_operations.js +18 -14
- package/dist/destinations/adobe-target/adobeTarget_operations.js.map +1 -1
- package/dist/destinations/amplitude/logEvent/generated-types.d.ts +0 -21
- package/dist/destinations/amplitude/logEvent/index.js +10 -96
- package/dist/destinations/amplitude/logEvent/index.js.map +1 -1
- package/dist/destinations/cordial/addProductToCart/index.js +1 -1
- package/dist/destinations/cordial/addProductToCart/index.js.map +1 -1
- package/dist/destinations/cordial/index.js +1 -1
- package/dist/destinations/cordial/index.js.map +1 -1
- package/dist/destinations/cordial/removeProductFromCart/index.js.map +1 -1
- package/dist/destinations/cordial/upsertOrder/index.js +8 -8
- package/dist/destinations/cordial/upsertOrder/index.js.map +1 -1
- package/dist/destinations/customerio/trackEvent/index.js.map +1 -1
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js +1 -4
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js.map +1 -1
- package/dist/destinations/engage-messaging-twilio/sendSms/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/generated-types.d.ts +1 -2
- package/dist/destinations/google-enhanced-conversions/index.js +8 -15
- package/dist/destinations/google-enhanced-conversions/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/postConversion/index.js +1 -7
- package/dist/destinations/google-enhanced-conversions/postConversion/index.js.map +1 -1
- package/dist/destinations/google-sheets/postSheet/index.js +1 -1
- package/dist/destinations/index.js +1 -1
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/intercom/identifyContact/index.js +1 -1
- package/dist/destinations/intercom/identifyContact/index.js.map +1 -1
- package/dist/destinations/{salesforce-marketing-cloud → linkedin-audiences}/generated-types.d.ts +1 -0
- package/dist/destinations/{google-enhanced-conversions/uploadCallConversion → linkedin-audiences}/generated-types.js +0 -0
- package/dist/destinations/linkedin-audiences/generated-types.js.map +1 -0
- package/dist/destinations/{salesforce-marketing-cloud → linkedin-audiences}/index.d.ts +0 -0
- package/dist/destinations/linkedin-audiences/index.js +59 -0
- package/dist/destinations/linkedin-audiences/index.js.map +1 -0
- package/dist/destinations/linkedin-audiences/linkedin-properties.d.ts +1 -0
- package/dist/destinations/linkedin-audiences/linkedin-properties.js +5 -0
- package/dist/destinations/linkedin-audiences/linkedin-properties.js.map +1 -0
- package/dist/destinations/linkedin-audiences/updateAudience/generated-types.d.ts +11 -0
- package/dist/destinations/{google-enhanced-conversions/uploadClickConversion → linkedin-audiences/updateAudience}/generated-types.js +0 -0
- package/dist/destinations/linkedin-audiences/updateAudience/generated-types.js.map +1 -0
- package/dist/destinations/{salesforce-marketing-cloud/contact → linkedin-audiences/updateAudience}/index.d.ts +0 -0
- package/dist/destinations/linkedin-audiences/updateAudience/index.js +171 -0
- package/dist/destinations/linkedin-audiences/updateAudience/index.js.map +1 -0
- package/dist/destinations/mixpanel/index.js +1 -1
- package/dist/destinations/mixpanel/trackEvent/index.js.map +1 -1
- package/dist/destinations/qualtrics/triggerXflowWorkflow/index.js +1 -1
- package/dist/destinations/qualtrics/triggerXflowWorkflow/index.js.map +1 -1
- package/dist/destinations/salesforce/lead/index.js +1 -2
- package/dist/destinations/salesforce/lead/index.js.map +1 -1
- package/package.json +4 -4
- package/dist/destinations/google-enhanced-conversions/constants.d.ts +0 -1
- package/dist/destinations/google-enhanced-conversions/constants.js +0 -185
- package/dist/destinations/google-enhanced-conversions/constants.js.map +0 -1
- package/dist/destinations/google-enhanced-conversions/functions.d.ts +0 -3
- package/dist/destinations/google-enhanced-conversions/functions.js +0 -36
- package/dist/destinations/google-enhanced-conversions/functions.js.map +0 -1
- package/dist/destinations/google-enhanced-conversions/uploadCallConversion/generated-types.d.ts +0 -11
- package/dist/destinations/google-enhanced-conversions/uploadCallConversion/generated-types.js.map +0 -1
- package/dist/destinations/google-enhanced-conversions/uploadCallConversion/index.d.ts +0 -5
- package/dist/destinations/google-enhanced-conversions/uploadCallConversion/index.js +0 -99
- package/dist/destinations/google-enhanced-conversions/uploadCallConversion/index.js.map +0 -1
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/generated-types.d.ts +0 -25
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/generated-types.js.map +0 -1
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.d.ts +0 -5
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js +0 -238
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js.map +0 -1
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/types.d.ts +0 -5
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/types.js +0 -3
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/types.js.map +0 -1
- package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/generated-types.d.ts +0 -20
- package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/generated-types.js +0 -3
- package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/generated-types.js.map +0 -1
- package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.d.ts +0 -5
- package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js +0 -269
- package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js.map +0 -1
- package/dist/destinations/salesforce-marketing-cloud/contact/generated-types.d.ts +0 -2
- package/dist/destinations/salesforce-marketing-cloud/contact/generated-types.js +0 -3
- package/dist/destinations/salesforce-marketing-cloud/contact/generated-types.js.map +0 -1
- package/dist/destinations/salesforce-marketing-cloud/contact/index.js +0 -11
- package/dist/destinations/salesforce-marketing-cloud/contact/index.js.map +0 -1
- package/dist/destinations/salesforce-marketing-cloud/generated-types.js +0 -3
- package/dist/destinations/salesforce-marketing-cloud/generated-types.js.map +0 -1
- package/dist/destinations/salesforce-marketing-cloud/index.js +0 -27
- package/dist/destinations/salesforce-marketing-cloud/index.js.map +0 -1
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export interface Payload {
|
|
2
|
-
conversion_action: string;
|
|
3
|
-
adjustment_type: string;
|
|
4
|
-
adjustment_timestamp: string;
|
|
5
|
-
order_id?: string;
|
|
6
|
-
gclid?: string;
|
|
7
|
-
conversion_timestamp?: string;
|
|
8
|
-
restatement_value?: number & string;
|
|
9
|
-
restatement_currency_code?: string;
|
|
10
|
-
email_address?: string;
|
|
11
|
-
phone_number?: string;
|
|
12
|
-
first_name?: string;
|
|
13
|
-
last_name?: string;
|
|
14
|
-
city?: string;
|
|
15
|
-
state?: string;
|
|
16
|
-
country?: string;
|
|
17
|
-
postal_code?: string;
|
|
18
|
-
street_address?: string;
|
|
19
|
-
user_agent?: string;
|
|
20
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/google-enhanced-conversions/uploadConversionAdjustment/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,269 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const actions_core_1 = require("@segment/actions-core");
|
|
4
|
-
const functions_1 = require("../functions");
|
|
5
|
-
const action = {
|
|
6
|
-
title: 'Upload Conversion Adjustment',
|
|
7
|
-
description: 'Upload a conversion adjustment to the Google Ads API.',
|
|
8
|
-
fields: {
|
|
9
|
-
conversion_action: {
|
|
10
|
-
label: 'Conversion Action ID',
|
|
11
|
-
description: 'The ID of the conversion action associated with this conversion. To find the Conversion Action ID, click on your conversion in Google Ads and get the value for ctId in the URL. For example, if the URL is https://ads.google.com/aw/conversions/detail?ocid=00000000&ctId=576882000, your Conversion Action ID is 576882000.',
|
|
12
|
-
type: 'string',
|
|
13
|
-
required: true,
|
|
14
|
-
default: ''
|
|
15
|
-
},
|
|
16
|
-
adjustment_type: {
|
|
17
|
-
label: 'Adjustment Type',
|
|
18
|
-
description: 'The adjustment type. See Google’s documentation for details on each type.',
|
|
19
|
-
type: 'string',
|
|
20
|
-
choices: [
|
|
21
|
-
{ label: 'UNSPECIFIED', value: 'UNSPECIFIED' },
|
|
22
|
-
{ label: 'UNKNOWN', value: 'UNKNOWN' },
|
|
23
|
-
{ label: `RETRACTION`, value: 'RETRACTION' },
|
|
24
|
-
{ label: 'RESTATEMENT', value: 'RESTATEMENT' },
|
|
25
|
-
{ label: `ENHANCEMENT`, value: 'ENHANCEMENT' }
|
|
26
|
-
],
|
|
27
|
-
required: true
|
|
28
|
-
},
|
|
29
|
-
adjustment_timestamp: {
|
|
30
|
-
label: 'Adjustment Timestamp',
|
|
31
|
-
description: 'The date time at which the adjustment occurred. Must be after the conversion_date_time. The timezone must be specified. The format is "yyyy-mm-dd hh:mm:ss+|-hh:mm", e.g. "2019-01-01 12:32:45-08:00".',
|
|
32
|
-
type: 'string',
|
|
33
|
-
required: true,
|
|
34
|
-
default: {
|
|
35
|
-
'@path': '$.timestamp'
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
order_id: {
|
|
39
|
-
label: 'Order ID',
|
|
40
|
-
description: 'The order ID of the conversion to be adjusted. If the conversion was reported with an order ID specified, that order ID must be used as the identifier here. Required for ENHANCEMENT adjustments.',
|
|
41
|
-
type: 'string',
|
|
42
|
-
default: {
|
|
43
|
-
'@path': '$.properties.orderId'
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
gclid: {
|
|
47
|
-
label: 'GCLID',
|
|
48
|
-
description: 'Google click ID associated with the original conversion for this adjustment. This is used for the GCLID Date Time Pair. Required for non-ENHANCEMENT adjustments. If adjustment is ENHANCEMENT, this value is optional but may be set in addition to the order ID.',
|
|
49
|
-
type: 'string',
|
|
50
|
-
default: ''
|
|
51
|
-
},
|
|
52
|
-
conversion_timestamp: {
|
|
53
|
-
label: 'Conversion Timestamp',
|
|
54
|
-
description: 'The date time at which the original conversion for this adjustment occurred. The timezone must be specified. The format is "yyyy-mm-dd hh:mm:ss+|-hh:mm", e.g. "2019-01-01 12:32:45-08:00". This is used for the GCLID Date Time Pair. Required for non-ENHANCEMENT adjustments. If adjustment is ENHANCEMENT, this value is optional but may be set in addition to the order ID.',
|
|
55
|
-
type: 'string',
|
|
56
|
-
default: ''
|
|
57
|
-
},
|
|
58
|
-
restatement_value: {
|
|
59
|
-
label: 'Restatement Value',
|
|
60
|
-
description: 'The restated conversion value. This is the value of the conversion after restatement. For example, to change the value of a conversion from 100 to 70, an adjusted value of 70 should be reported. Required for RESTATEMENT adjustments.',
|
|
61
|
-
type: 'number',
|
|
62
|
-
default: ''
|
|
63
|
-
},
|
|
64
|
-
restatement_currency_code: {
|
|
65
|
-
label: 'Restatement Currency Code',
|
|
66
|
-
description: 'The currency of the restated value. If not provided, then the default currency from the conversion action is used, and if that is not set then the account currency is used. This is the ISO 4217 3-character currency code e.g. USD or EUR.',
|
|
67
|
-
type: 'string',
|
|
68
|
-
default: ''
|
|
69
|
-
},
|
|
70
|
-
email_address: {
|
|
71
|
-
label: 'Email Address',
|
|
72
|
-
description: 'Email address of the individual who triggered the conversion event. Segment will hash this value before sending to Google.',
|
|
73
|
-
type: 'string',
|
|
74
|
-
format: 'email',
|
|
75
|
-
default: {
|
|
76
|
-
'@if': {
|
|
77
|
-
exists: { '@path': '$.properties.email' },
|
|
78
|
-
then: { '@path': '$.properties.email' },
|
|
79
|
-
else: { '@path': '$context.traits.email' }
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
phone_number: {
|
|
84
|
-
label: 'Phone Number',
|
|
85
|
-
description: 'Phone number of the individual who triggered the conversion event, in E.164 standard format, e.g. +14150000000. Segment will hash this value before sending to Google.',
|
|
86
|
-
type: 'string',
|
|
87
|
-
default: {
|
|
88
|
-
'@if': {
|
|
89
|
-
exists: { '@path': '$.properties.phone' },
|
|
90
|
-
then: { '@path': '$.properties.phone' },
|
|
91
|
-
else: { '@path': '$context.traits.phone' }
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
first_name: {
|
|
96
|
-
label: 'First Name',
|
|
97
|
-
description: 'First name of the user who performed the conversion. Segment will hash this value before sending to Google.',
|
|
98
|
-
type: 'string',
|
|
99
|
-
default: {
|
|
100
|
-
'@if': {
|
|
101
|
-
exists: { '@path': '$.properties.firstName' },
|
|
102
|
-
then: { '@path': '$.properties.firstName' },
|
|
103
|
-
else: { '@path': '$context.traits.firstName' }
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
last_name: {
|
|
108
|
-
label: 'Last Name',
|
|
109
|
-
description: 'Last name of the user who performed the conversion. Segment will hash this value before sending to Google.',
|
|
110
|
-
type: 'string',
|
|
111
|
-
default: {
|
|
112
|
-
'@if': {
|
|
113
|
-
exists: { '@path': '$.properties.lastName' },
|
|
114
|
-
then: { '@path': '$.properties.lastName' },
|
|
115
|
-
else: { '@path': '$context.traits.lastName' }
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
city: {
|
|
120
|
-
label: 'City',
|
|
121
|
-
description: 'City of the user who performed the conversion.',
|
|
122
|
-
type: 'string',
|
|
123
|
-
default: {
|
|
124
|
-
'@if': {
|
|
125
|
-
exists: { '@path': '$.properties.address.city,' },
|
|
126
|
-
then: { '@path': '$.properties.address.city,' },
|
|
127
|
-
else: { '@path': '$.context.traits.address.city' }
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
state: {
|
|
132
|
-
label: 'State',
|
|
133
|
-
description: 'State of the user who performed the conversion.',
|
|
134
|
-
type: 'string',
|
|
135
|
-
default: {
|
|
136
|
-
'@if': {
|
|
137
|
-
exists: { '@path': '$.properties.address.state,' },
|
|
138
|
-
then: { '@path': '$.properties.address.state,' },
|
|
139
|
-
else: { '@path': '$.context.traits.address.state' }
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
country: {
|
|
144
|
-
label: 'Country',
|
|
145
|
-
description: '2-letter country code in ISO-3166-1 alpha-2 of the user who performed the conversion.',
|
|
146
|
-
type: 'string',
|
|
147
|
-
default: {
|
|
148
|
-
'@if': {
|
|
149
|
-
exists: { '@path': '$.properties.address.country,' },
|
|
150
|
-
then: { '@path': '$.properties.address.country,' },
|
|
151
|
-
else: { '@path': '$.context.traits.address.country' }
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
postal_code: {
|
|
156
|
-
label: 'Postal Code',
|
|
157
|
-
description: 'Postal code of the user who performed the conversion.',
|
|
158
|
-
type: 'string',
|
|
159
|
-
default: {
|
|
160
|
-
'@if': {
|
|
161
|
-
exists: { '@path': '$.properties.address.postalCode,' },
|
|
162
|
-
then: { '@path': '$.properties.address.postalCode,' },
|
|
163
|
-
else: { '@path': '$.context.traits.address.postalCode' }
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
street_address: {
|
|
168
|
-
label: 'Street Address',
|
|
169
|
-
description: 'Street address of the user who performed the conversion. Segment will hash this value before sending to Google.',
|
|
170
|
-
type: 'string',
|
|
171
|
-
default: {
|
|
172
|
-
'@if': {
|
|
173
|
-
exists: { '@path': '$.properties.address.street,' },
|
|
174
|
-
then: { '@path': '$.properties.address.street,' },
|
|
175
|
-
else: { '@path': '$.context.traits.address.street' }
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
user_agent: {
|
|
180
|
-
label: 'User Agent',
|
|
181
|
-
description: 'The user agent to enhance the original conversion. User agent can only be specified in enhancements with user identifiers. This should match the user agent of the request that sent the original conversion so the conversion and its enhancement are either both attributed as same-device or both attributed as cross-device.',
|
|
182
|
-
type: 'string',
|
|
183
|
-
default: {
|
|
184
|
-
'@path': '$.context.userAgent'
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
perform: async (request, { settings, payload }) => {
|
|
189
|
-
if (!settings.customerId) {
|
|
190
|
-
throw new actions_core_1.IntegrationError('Customer id is required for this action. Please set it in destination settings.', 'Missing required fields.', 400);
|
|
191
|
-
}
|
|
192
|
-
settings.customerId = settings.customerId.replace(/[^0-9.]+/g, '');
|
|
193
|
-
if (payload.adjustment_type == 'ENHANCEMENT' && !payload.order_id) {
|
|
194
|
-
throw new actions_core_1.IntegrationError('Order id required for enhancement conversion', 'INVALID_ARGUMENT', 400);
|
|
195
|
-
}
|
|
196
|
-
else if (payload.adjustment_type != 'ENHANCEMENT') {
|
|
197
|
-
if (!payload.gclid) {
|
|
198
|
-
throw new actions_core_1.IntegrationError('Gclid required for chosen conversion type', 'INVALID_ARGUMENT', 400);
|
|
199
|
-
}
|
|
200
|
-
if (!payload.conversion_timestamp) {
|
|
201
|
-
throw new actions_core_1.IntegrationError('Conversion timestamp required for chosen conversion type', 'INVALID_ARGUMENT', 400);
|
|
202
|
-
}
|
|
203
|
-
if (payload.adjustment_type == 'RESTATEMENT' && !payload.restatement_value) {
|
|
204
|
-
throw new actions_core_1.IntegrationError('Restatement value required for restatement conversion', 'INVALID_ARGUMENT', 400);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
const request_object = {
|
|
208
|
-
conversionAction: `customers/${settings.customerId}/conversionActions/${payload.conversion_action}`,
|
|
209
|
-
adjustmentType: payload.adjustment_type,
|
|
210
|
-
adjustmentDateTime: payload.adjustment_timestamp.replace(/T/, ' ').replace(/\..+/, '+00:00'),
|
|
211
|
-
orderId: payload.order_id,
|
|
212
|
-
gclidDateTimePair: {
|
|
213
|
-
gclid: payload.gclid,
|
|
214
|
-
conversionDateTime: payload.conversion_timestamp
|
|
215
|
-
},
|
|
216
|
-
restatementValue: {
|
|
217
|
-
adjustedValue: payload.restatement_value,
|
|
218
|
-
currencyCode: payload.restatement_currency_code
|
|
219
|
-
},
|
|
220
|
-
userIdentifiers: [],
|
|
221
|
-
userAgent: payload.user_agent
|
|
222
|
-
};
|
|
223
|
-
if (payload.email_address) {
|
|
224
|
-
request_object.userIdentifiers.push({ hashedEmail: functions_1.hash(payload.email_address) });
|
|
225
|
-
}
|
|
226
|
-
if (payload.phone_number) {
|
|
227
|
-
request_object.userIdentifiers.push({ hashedPhoneNumber: functions_1.hash(payload.phone_number) });
|
|
228
|
-
}
|
|
229
|
-
if (payload.first_name ||
|
|
230
|
-
payload.last_name ||
|
|
231
|
-
payload.city ||
|
|
232
|
-
payload.state ||
|
|
233
|
-
payload.country ||
|
|
234
|
-
payload.postal_code ||
|
|
235
|
-
payload.street_address) {
|
|
236
|
-
request_object.userIdentifiers.push({
|
|
237
|
-
addressInfo: {
|
|
238
|
-
hashedFirstName: functions_1.hash(payload.first_name),
|
|
239
|
-
hashedLastName: functions_1.hash(payload.last_name),
|
|
240
|
-
hashedStreetAddress: functions_1.hash(payload.street_address),
|
|
241
|
-
city: payload.city,
|
|
242
|
-
state: payload.state,
|
|
243
|
-
countryCode: payload.country,
|
|
244
|
-
postalCode: payload.postal_code
|
|
245
|
-
}
|
|
246
|
-
});
|
|
247
|
-
}
|
|
248
|
-
const response = await request(`https://googleads.googleapis.com/v11/customers/${settings.customerId}:uploadConversionAdjustments`, {
|
|
249
|
-
method: 'post',
|
|
250
|
-
headers: {
|
|
251
|
-
'developer-token': `${process.env.ADWORDS_DEVELOPER_TOKEN}`
|
|
252
|
-
},
|
|
253
|
-
json: {
|
|
254
|
-
conversionAdjustments: [request_object],
|
|
255
|
-
partialFailure: true
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
|
-
if (typeof response.data === 'object' && response.data != null) {
|
|
259
|
-
Object.entries(response.data).forEach(([key, value]) => {
|
|
260
|
-
if (key === 'partialFailureError' && value.code !== 0) {
|
|
261
|
-
throw new actions_core_1.IntegrationError(value.message, 'INVALID_ARGUMENT', 400);
|
|
262
|
-
}
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
return response;
|
|
266
|
-
}
|
|
267
|
-
};
|
|
268
|
-
exports.default = action;
|
|
269
|
-
//# sourceMappingURL=index.js.map
|
package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAC1E,4CAAmC;AAInC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,8BAA8B;IACrC,WAAW,EAAE,uDAAuD;IACpE,MAAM,EAAE;QACN,iBAAiB,EAAE;YACjB,KAAK,EAAE,sBAAsB;YAC7B,WAAW,EACT,gUAAgU;YAClU,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,EAAE;SACZ;QACD,eAAe,EAAE;YACf,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,2EAA2E;YACxF,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;gBAC9C,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;gBACtC,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;gBAC5C,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;gBAC9C,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;aAC/C;YACD,QAAQ,EAAE,IAAI;SACf;QACD,oBAAoB,EAAE;YACpB,KAAK,EAAE,sBAAsB;YAC7B,WAAW,EACT,wMAAwM;YAC1M,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,aAAa;aACvB;SACF;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,UAAU;YACjB,WAAW,EACT,oMAAoM;YACtM,IAAI,EAAE,QA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F,CAAA;QAGD,IAAI,OAAO,QAAQ,CAAC,IAAI,KAAK,QAAQ,IAAI,QAAQ,CAAC,IAAI,IAAI,IAAI,EAAE;YAC9D,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;gBACrD,IAAI,GAAG,KAAK,qBAAqB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,EAAE;oBACrD,MAAM,IAAI,+BAAgB,CAAC,KAAK,CAAC,OAAO,EAAE,kBAAkB,EAAE,GAAG,CAAC,CAAA;iBACnE;YACH,CAAC,CAAC,CAAA;SACH;QACD,OAAO,QAAQ,CAAA;IACjB,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/salesforce-marketing-cloud/contact/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/salesforce-marketing-cloud/contact/index.ts"],"names":[],"mappings":";;AAIA,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,MAAM;IACnB,MAAM,EAAE,EAAE;IACV,OAAO,EAAE,GAAG,EAAE;IAOd,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/destinations/salesforce-marketing-cloud/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,27 +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 contact_1 = __importDefault(require("./contact"));
|
|
7
|
-
const destination = {
|
|
8
|
-
name: 'Salesforce Marketing Cloud (Actions)',
|
|
9
|
-
slug: 'actions-salesforce-marketing-cloud',
|
|
10
|
-
mode: 'cloud',
|
|
11
|
-
authentication: {
|
|
12
|
-
scheme: 'oauth2',
|
|
13
|
-
fields: {}
|
|
14
|
-
},
|
|
15
|
-
extendRequest({ auth }) {
|
|
16
|
-
return {
|
|
17
|
-
headers: {
|
|
18
|
-
authorization: `Bearer ${auth?.accessToken}`
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
},
|
|
22
|
-
actions: {
|
|
23
|
-
contact: contact_1.default
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
exports.default = destination;
|
|
27
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/salesforce-marketing-cloud/index.ts"],"names":[],"mappings":";;;;;AAGA,wDAA+B;AAE/B,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,sCAAsC;IAC5C,IAAI,EAAE,oCAAoC;IAC1C,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,EAAE;KAoBX;IACD,aAAa,CAAC,EAAE,IAAI,EAAE;QACpB,OAAO;YACL,OAAO,EAAE;gBACP,aAAa,EAAE,UAAU,IAAI,EAAE,WAAW,EAAE;aAC7C;SACF,CAAA;IACH,CAAC;IAOD,OAAO,EAAE;QACP,OAAO,EAAP,iBAAO;KACR;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|