@segment/action-destinations 3.491.0 → 3.492.1-async
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/display-video-360/syncAudience/generated-types.d.ts +7 -0
- package/dist/destinations/display-video-360/syncAudience/generated-types.js +3 -0
- package/dist/destinations/display-video-360/syncAudience/generated-types.js.map +1 -0
- package/dist/destinations/display-video-360/syncAudience/index.d.ts +5 -0
- package/dist/destinations/display-video-360/syncAudience/index.js +30 -0
- package/dist/destinations/display-video-360/syncAudience/index.js.map +1 -0
- package/dist/destinations/google-enhanced-conversions/uploadCallConversion/index.js +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadCallConversion/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadCallConversion2/index.js +2 -2
- package/dist/destinations/google-enhanced-conversions/uploadCallConversion2/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion2/index.js +3 -3
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion2/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment2/index.js +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment2/index.js.map +1 -1
- package/dist/destinations/memora/upsertProfile/index.js +30 -9
- package/dist/destinations/memora/upsertProfile/index.js.map +1 -1
- package/dist/destinations/salesforce-marketing-cloud/_tests_/asyncDataExtension.async.test.d.ts +1 -0
- package/dist/destinations/salesforce-marketing-cloud/_tests_/asyncDataExtension.async.test.js +598 -0
- package/dist/destinations/salesforce-marketing-cloud/_tests_/asyncDataExtension.async.test.js.map +1 -0
- package/dist/destinations/salesforce-marketing-cloud/asyncDataExtension/fields.d.ts +128 -0
- package/dist/destinations/salesforce-marketing-cloud/asyncDataExtension/fields.js +57 -0
- package/dist/destinations/salesforce-marketing-cloud/asyncDataExtension/fields.js.map +1 -0
- package/dist/destinations/salesforce-marketing-cloud/asyncDataExtension/index.async.d.ts +5 -0
- package/dist/destinations/salesforce-marketing-cloud/asyncDataExtension/index.async.js +145 -0
- package/dist/destinations/salesforce-marketing-cloud/asyncDataExtension/index.async.js.map +1 -0
- package/dist/destinations/salesforce-marketing-cloud/asyncDataExtension/index.js +5 -53
- package/dist/destinations/salesforce-marketing-cloud/asyncDataExtension/index.js.map +1 -1
- package/dist/destinations/salesforce-marketing-cloud/index.js +6 -2
- package/dist/destinations/salesforce-marketing-cloud/index.js.map +1 -1
- package/dist/destinations/salesforce-marketing-cloud/sfmc-operations.d.ts +11 -1
- package/dist/destinations/salesforce-marketing-cloud/sfmc-operations.js +3 -2
- package/dist/destinations/salesforce-marketing-cloud/sfmc-operations.js.map +1 -1
- package/dist/destinations/tiktok-audiences/syncAudience/functions.d.ts +10 -0
- package/dist/destinations/tiktok-audiences/syncAudience/functions.js +234 -0
- package/dist/destinations/tiktok-audiences/syncAudience/functions.js.map +1 -0
- package/dist/destinations/tiktok-audiences/syncAudience/generated-types.d.ts +12 -0
- package/dist/destinations/tiktok-audiences/syncAudience/generated-types.js +3 -0
- package/dist/destinations/tiktok-audiences/syncAudience/generated-types.js.map +1 -0
- package/dist/destinations/tiktok-audiences/syncAudience/index.d.ts +5 -0
- package/dist/destinations/tiktok-audiences/syncAudience/index.js +36 -0
- package/dist/destinations/tiktok-audiences/syncAudience/index.js.map +1 -0
- package/dist/destinations/tiktok-audiences/syncAudience/types.d.ts +1 -0
- package/dist/destinations/tiktok-audiences/syncAudience/types.js +3 -0
- package/dist/destinations/tiktok-audiences/syncAudience/types.js.map +1 -0
- package/dist/destinations/webhook/ssrf-utils.d.ts +1 -0
- package/dist/destinations/webhook/ssrf-utils.js +75 -0
- package/dist/destinations/webhook/ssrf-utils.js.map +1 -0
- package/dist/destinations/webhook-extensible/ssrf-utils.d.ts +1 -0
- package/dist/destinations/webhook-extensible/ssrf-utils.js +75 -0
- package/dist/destinations/webhook-extensible/ssrf-utils.js.map +1 -0
- package/package.json +6 -6
|
@@ -0,0 +1,598 @@
|
|
|
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 nock_1 = __importDefault(require("nock"));
|
|
7
|
+
const actions_core_1 = require("@segment/actions-core");
|
|
8
|
+
const index_1 = __importDefault(require("../index"));
|
|
9
|
+
const testDestination = (0, actions_core_1.createTestIntegration)(index_1.default);
|
|
10
|
+
const timestamp = '2025-10-13T4:00:00.449Z';
|
|
11
|
+
const settings = {
|
|
12
|
+
subdomain: 'test123',
|
|
13
|
+
client_id: 'test123',
|
|
14
|
+
client_secret: 'test123',
|
|
15
|
+
account_id: 'test123'
|
|
16
|
+
};
|
|
17
|
+
const dataExtensionId = '1234567890';
|
|
18
|
+
const event = (0, actions_core_1.createTestEvent)({
|
|
19
|
+
timestamp: timestamp,
|
|
20
|
+
type: 'track',
|
|
21
|
+
userId: 'TonyStark001',
|
|
22
|
+
properties: {
|
|
23
|
+
id: 'ily3000'
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
const payload = {
|
|
27
|
+
keys: {
|
|
28
|
+
id: 'version'
|
|
29
|
+
},
|
|
30
|
+
values: {
|
|
31
|
+
name: 'MARK42'
|
|
32
|
+
},
|
|
33
|
+
onMappingSave: {
|
|
34
|
+
inputs: {},
|
|
35
|
+
outputs: {
|
|
36
|
+
id: dataExtensionId
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
const retlPayload = {
|
|
41
|
+
keys: {
|
|
42
|
+
id: 'version'
|
|
43
|
+
},
|
|
44
|
+
values: {
|
|
45
|
+
name: 'MARK42'
|
|
46
|
+
},
|
|
47
|
+
retlOnMappingSave: {
|
|
48
|
+
inputs: {},
|
|
49
|
+
outputs: {
|
|
50
|
+
id: dataExtensionId
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
describe('Salesforce Marketing Cloud - Async', () => {
|
|
55
|
+
describe('Async Data Extension Action for Async Pipeline', () => {
|
|
56
|
+
beforeAll(() => {
|
|
57
|
+
nock_1.default.cleanAll();
|
|
58
|
+
});
|
|
59
|
+
afterEach(() => {
|
|
60
|
+
nock_1.default.cleanAll();
|
|
61
|
+
});
|
|
62
|
+
describe('Dynamic Fields Hooks', () => {
|
|
63
|
+
it('should throw error whem no dataExtensionId is provided in hook outputs', async () => {
|
|
64
|
+
const hookResponse = await testDestination.testDynamicField('asyncDataExtension', 'keys.__keys__', {
|
|
65
|
+
settings,
|
|
66
|
+
payload: {}
|
|
67
|
+
});
|
|
68
|
+
expect(hookResponse.choices.length).toBe(0);
|
|
69
|
+
expect(hookResponse.error).toEqual({
|
|
70
|
+
message: 'No Data Extension ID provided',
|
|
71
|
+
code: 'BAD_REQUEST'
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
it('should work with retlOnMappingSave for keys.__keys__', async () => {
|
|
75
|
+
(0, nock_1.default)(`https://${settings.subdomain}.auth.marketingcloudapis.com`).post('/v2/token').reply(200, {
|
|
76
|
+
access_token: 'test-access-token',
|
|
77
|
+
token_type: 'Bearer',
|
|
78
|
+
expires_in: 3600
|
|
79
|
+
});
|
|
80
|
+
(0, nock_1.default)(`https://${settings.subdomain}.rest.marketingcloudapis.com`)
|
|
81
|
+
.get(`/data/v1/customobjects/${dataExtensionId}/fields`)
|
|
82
|
+
.reply(200, {
|
|
83
|
+
fields: [
|
|
84
|
+
{ name: 'subscriber_key', isPrimaryKey: true },
|
|
85
|
+
{ name: 'first_name', isPrimaryKey: false }
|
|
86
|
+
]
|
|
87
|
+
});
|
|
88
|
+
const response = await testDestination.testDynamicField('asyncDataExtension', 'keys.__keys__', {
|
|
89
|
+
settings,
|
|
90
|
+
payload: {
|
|
91
|
+
retlOnMappingSave: {
|
|
92
|
+
outputs: {
|
|
93
|
+
id: dataExtensionId
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
expect(response.choices).toHaveLength(1);
|
|
99
|
+
expect(response.choices).toEqual([{ value: 'subscriber_key', label: 'subscriber_key' }]);
|
|
100
|
+
});
|
|
101
|
+
it('should return primary key fields for keys.__keys__', async () => {
|
|
102
|
+
(0, nock_1.default)(`https://${settings.subdomain}.auth.marketingcloudapis.com`).post('/v2/token').reply(200, {
|
|
103
|
+
access_token: 'test-access-token',
|
|
104
|
+
token_type: 'Bearer',
|
|
105
|
+
expires_in: 3600
|
|
106
|
+
});
|
|
107
|
+
(0, nock_1.default)(`https://${settings.subdomain}.rest.marketingcloudapis.com`)
|
|
108
|
+
.get(`/data/v1/customobjects/${dataExtensionId}/fields`)
|
|
109
|
+
.reply(200, {
|
|
110
|
+
fields: [
|
|
111
|
+
{ name: 'id', isPrimaryKey: true },
|
|
112
|
+
{ name: 'email', isPrimaryKey: false },
|
|
113
|
+
{ name: 'name', isPrimaryKey: false },
|
|
114
|
+
{ name: 'age', isPrimaryKey: false }
|
|
115
|
+
]
|
|
116
|
+
});
|
|
117
|
+
const response = await testDestination.testDynamicField('asyncDataExtension', 'keys.__keys__', {
|
|
118
|
+
settings,
|
|
119
|
+
payload: {
|
|
120
|
+
onMappingSave: {
|
|
121
|
+
outputs: {
|
|
122
|
+
id: dataExtensionId
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
expect(response.choices).toHaveLength(1);
|
|
128
|
+
expect(response.choices).toEqual(expect.arrayContaining([{ value: 'id', label: 'id' }]));
|
|
129
|
+
});
|
|
130
|
+
it('should return non-primary key fields for values.__keys__', async () => {
|
|
131
|
+
(0, nock_1.default)(`https://${settings.subdomain}.auth.marketingcloudapis.com`).post('/v2/token').reply(200, {
|
|
132
|
+
access_token: 'test-access-token',
|
|
133
|
+
token_type: 'Bearer',
|
|
134
|
+
expires_in: 3600
|
|
135
|
+
});
|
|
136
|
+
(0, nock_1.default)(`https://${settings.subdomain}.rest.marketingcloudapis.com`)
|
|
137
|
+
.get(`/data/v1/customobjects/${dataExtensionId}/fields`)
|
|
138
|
+
.reply(200, {
|
|
139
|
+
fields: [
|
|
140
|
+
{ name: 'id', isPrimaryKey: true },
|
|
141
|
+
{ name: 'email', isPrimaryKey: true },
|
|
142
|
+
{ name: 'name', isPrimaryKey: false },
|
|
143
|
+
{ name: 'age', isPrimaryKey: false }
|
|
144
|
+
]
|
|
145
|
+
});
|
|
146
|
+
const response = await testDestination.testDynamicField('asyncDataExtension', 'values.__keys__', {
|
|
147
|
+
settings,
|
|
148
|
+
payload: {
|
|
149
|
+
onMappingSave: {
|
|
150
|
+
outputs: {
|
|
151
|
+
id: dataExtensionId
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
expect(response.choices).toHaveLength(2);
|
|
157
|
+
expect(response.choices).toEqual(expect.arrayContaining([
|
|
158
|
+
{ value: 'name', label: 'name' },
|
|
159
|
+
{ value: 'age', label: 'age' }
|
|
160
|
+
]));
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
describe('performBatch', () => {
|
|
164
|
+
it('should submit batch with retlOnMappingSave hook outputs and returns jobId', async () => {
|
|
165
|
+
(0, nock_1.default)(`https://${settings.subdomain}.auth.marketingcloudapis.com`).post('/v2/token').reply(200, {
|
|
166
|
+
access_token: 'test-access-token',
|
|
167
|
+
token_type: 'Bearer',
|
|
168
|
+
expires_in: 3600
|
|
169
|
+
});
|
|
170
|
+
(0, nock_1.default)(`https://${settings.subdomain}.rest.marketingcloudapis.com`)
|
|
171
|
+
.put(`/data/v1/async/dataextensions/${dataExtensionId}/rows`)
|
|
172
|
+
.reply(200, {
|
|
173
|
+
requestId: 'test-job-id',
|
|
174
|
+
resultMessages: []
|
|
175
|
+
});
|
|
176
|
+
const response = await testDestination.testAsyncBatchAction('asyncDataExtension', {
|
|
177
|
+
events: [event],
|
|
178
|
+
settings,
|
|
179
|
+
mapping: retlPayload
|
|
180
|
+
});
|
|
181
|
+
expect(response.jobId).toBe('test-job-id');
|
|
182
|
+
expect(response.multiStatusResponse.getResponseAtIndex(0).value().status).toBe(200);
|
|
183
|
+
});
|
|
184
|
+
it('should throw an error if no data extension is connected', async () => {
|
|
185
|
+
const events = [
|
|
186
|
+
(0, actions_core_1.createTestEvent)({
|
|
187
|
+
type: 'track',
|
|
188
|
+
userId: 'user1',
|
|
189
|
+
properties: {
|
|
190
|
+
keys: { id: 'v1' },
|
|
191
|
+
values: { name: 'User 1' }
|
|
192
|
+
}
|
|
193
|
+
})
|
|
194
|
+
];
|
|
195
|
+
const mappingWithoutId = {
|
|
196
|
+
keys: { '@path': '$.properties.keys' },
|
|
197
|
+
values: { '@path': '$.properties.values' }
|
|
198
|
+
};
|
|
199
|
+
const response = await testDestination.testAsyncBatchAction('asyncDataExtension', {
|
|
200
|
+
events,
|
|
201
|
+
settings,
|
|
202
|
+
mapping: mappingWithoutId
|
|
203
|
+
});
|
|
204
|
+
const errResponse0a = response.multiStatusResponse.getResponseAtIndex(0);
|
|
205
|
+
expect(errResponse0a.value().status).toBe(400);
|
|
206
|
+
expect(errResponse0a instanceof actions_core_1.ActionDestinationErrorResponse && errResponse0a.value().errormessage).toEqual('No Data Extension Connected');
|
|
207
|
+
});
|
|
208
|
+
it('should submit batch to SFMC and returns jobId', async () => {
|
|
209
|
+
(0, nock_1.default)(`https://${settings.subdomain}.auth.marketingcloudapis.com`).post('/v2/token').reply(200, {
|
|
210
|
+
access_token: 'test-access-token',
|
|
211
|
+
token_type: 'Bearer',
|
|
212
|
+
expires_in: 3600
|
|
213
|
+
});
|
|
214
|
+
(0, nock_1.default)(`https://${settings.subdomain}.rest.marketingcloudapis.com`)
|
|
215
|
+
.put(`/data/v1/async/dataextensions/${dataExtensionId}/rows`)
|
|
216
|
+
.reply(200, {
|
|
217
|
+
requestId: 'test-job-id',
|
|
218
|
+
resultMessages: []
|
|
219
|
+
});
|
|
220
|
+
const response = await testDestination.testAsyncBatchAction('asyncDataExtension', {
|
|
221
|
+
events: [event],
|
|
222
|
+
settings,
|
|
223
|
+
mapping: payload
|
|
224
|
+
});
|
|
225
|
+
expect(response.jobId).toBe('test-job-id');
|
|
226
|
+
expect(response.multiStatusResponse.getResponseAtIndex(0).value().status).toBe(200);
|
|
227
|
+
});
|
|
228
|
+
it('should handle non-OK errors with resultMessages', async () => {
|
|
229
|
+
const events = [
|
|
230
|
+
(0, actions_core_1.createTestEvent)({
|
|
231
|
+
type: 'track',
|
|
232
|
+
userId: 'user1',
|
|
233
|
+
properties: {
|
|
234
|
+
keys: { id: 'v1' },
|
|
235
|
+
values: { name: 'User 1' }
|
|
236
|
+
}
|
|
237
|
+
}),
|
|
238
|
+
(0, actions_core_1.createTestEvent)({
|
|
239
|
+
type: 'track',
|
|
240
|
+
userId: 'user2',
|
|
241
|
+
properties: {
|
|
242
|
+
keys: { id: 'v2' },
|
|
243
|
+
values: { name: 'User 2' }
|
|
244
|
+
}
|
|
245
|
+
}),
|
|
246
|
+
(0, actions_core_1.createTestEvent)({
|
|
247
|
+
type: 'track',
|
|
248
|
+
userId: 'user3',
|
|
249
|
+
properties: {
|
|
250
|
+
keys: { id: 'v3' },
|
|
251
|
+
values: { name: 'User 3' }
|
|
252
|
+
}
|
|
253
|
+
}),
|
|
254
|
+
(0, actions_core_1.createTestEvent)({
|
|
255
|
+
type: 'track',
|
|
256
|
+
userId: 'user4',
|
|
257
|
+
properties: {
|
|
258
|
+
keys: { id: 'v4' },
|
|
259
|
+
values: { name: 'User 4' }
|
|
260
|
+
}
|
|
261
|
+
}),
|
|
262
|
+
(0, actions_core_1.createTestEvent)({
|
|
263
|
+
type: 'track',
|
|
264
|
+
userId: 'user5',
|
|
265
|
+
properties: {
|
|
266
|
+
keys: { id: 'v5' },
|
|
267
|
+
values: { name: 'User 5' }
|
|
268
|
+
}
|
|
269
|
+
})
|
|
270
|
+
];
|
|
271
|
+
(0, nock_1.default)(`https://${settings.subdomain}.rest.marketingcloudapis.com`)
|
|
272
|
+
.put(`/data/v1/async/dataextensions/${dataExtensionId}/rows`)
|
|
273
|
+
.reply(400, {
|
|
274
|
+
requestId: 'test-job-id',
|
|
275
|
+
resultMessages: [
|
|
276
|
+
{
|
|
277
|
+
resultType: 'Validation',
|
|
278
|
+
resultClass: 'Error',
|
|
279
|
+
resultCode: 'CustomObjectNotFound',
|
|
280
|
+
message: 'Failed to resolve the Custom Object from the provided ObjectReferenceIdentifier [Id: a52c65d8-8938-f111-a5ab-d4f5ef4cd471, Key: ].'
|
|
281
|
+
}
|
|
282
|
+
]
|
|
283
|
+
});
|
|
284
|
+
const response = await testDestination.testAsyncBatchAction('asyncDataExtension', {
|
|
285
|
+
events,
|
|
286
|
+
settings,
|
|
287
|
+
mapping: payload
|
|
288
|
+
});
|
|
289
|
+
expect(response.jobId).toBe('test-job-id');
|
|
290
|
+
const errResponse0b = response.multiStatusResponse.getResponseAtIndex(0);
|
|
291
|
+
expect(errResponse0b.value().status).toBe(400);
|
|
292
|
+
expect(errResponse0b instanceof actions_core_1.ActionDestinationErrorResponse && errResponse0b.value().errormessage).toEqual('Failed to resolve the Custom Object from the provided ObjectReferenceIdentifier [Id: a52c65d8-8938-f111-a5ab-d4f5ef4cd471, Key: ].');
|
|
293
|
+
});
|
|
294
|
+
it('should handle non-OK errors without resultMessages', async () => {
|
|
295
|
+
const events = [
|
|
296
|
+
(0, actions_core_1.createTestEvent)({
|
|
297
|
+
type: 'track',
|
|
298
|
+
userId: 'user1',
|
|
299
|
+
properties: {
|
|
300
|
+
keys: { id: 'v1' },
|
|
301
|
+
values: { name: 'User 1' }
|
|
302
|
+
}
|
|
303
|
+
}),
|
|
304
|
+
(0, actions_core_1.createTestEvent)({
|
|
305
|
+
type: 'track',
|
|
306
|
+
userId: 'user2',
|
|
307
|
+
properties: {
|
|
308
|
+
keys: { id: 'v2' },
|
|
309
|
+
values: { name: 'User 2' }
|
|
310
|
+
}
|
|
311
|
+
}),
|
|
312
|
+
(0, actions_core_1.createTestEvent)({
|
|
313
|
+
type: 'track',
|
|
314
|
+
userId: 'user3',
|
|
315
|
+
properties: {
|
|
316
|
+
keys: { id: 'v3' },
|
|
317
|
+
values: { name: 'User 3' }
|
|
318
|
+
}
|
|
319
|
+
}),
|
|
320
|
+
(0, actions_core_1.createTestEvent)({
|
|
321
|
+
type: 'track',
|
|
322
|
+
userId: 'user4',
|
|
323
|
+
properties: {
|
|
324
|
+
keys: { id: 'v4' },
|
|
325
|
+
values: { name: 'User 4' }
|
|
326
|
+
}
|
|
327
|
+
}),
|
|
328
|
+
(0, actions_core_1.createTestEvent)({
|
|
329
|
+
type: 'track',
|
|
330
|
+
userId: 'user5',
|
|
331
|
+
properties: {
|
|
332
|
+
keys: { id: 'v5' },
|
|
333
|
+
values: { name: 'User 5' }
|
|
334
|
+
}
|
|
335
|
+
})
|
|
336
|
+
];
|
|
337
|
+
(0, nock_1.default)(`https://${settings.subdomain}.rest.marketingcloudapis.com`)
|
|
338
|
+
.put(`/data/v1/async/dataextensions/${dataExtensionId}/rows`)
|
|
339
|
+
.reply(400, {
|
|
340
|
+
requestId: undefined,
|
|
341
|
+
resultMessages: []
|
|
342
|
+
});
|
|
343
|
+
const response = await testDestination.testAsyncBatchAction('asyncDataExtension', {
|
|
344
|
+
events,
|
|
345
|
+
settings,
|
|
346
|
+
mapping: payload
|
|
347
|
+
});
|
|
348
|
+
expect(response.jobId).toBeUndefined();
|
|
349
|
+
const errResponse0c = response.multiStatusResponse.getResponseAtIndex(0);
|
|
350
|
+
expect(errResponse0c.value().status).toBe(400);
|
|
351
|
+
expect(errResponse0c instanceof actions_core_1.ActionDestinationErrorResponse && errResponse0c.value().errormessage).toEqual('Failed to upsert rows asynchronously: SFMC API responded with {"resultMessages":[]}.');
|
|
352
|
+
});
|
|
353
|
+
it('should handle any other errors', async () => {
|
|
354
|
+
const events = [
|
|
355
|
+
(0, actions_core_1.createTestEvent)({
|
|
356
|
+
type: 'track',
|
|
357
|
+
userId: 'user1',
|
|
358
|
+
properties: {
|
|
359
|
+
keys: { id: 'v1' },
|
|
360
|
+
values: { name: 'User 1' }
|
|
361
|
+
}
|
|
362
|
+
}),
|
|
363
|
+
(0, actions_core_1.createTestEvent)({
|
|
364
|
+
type: 'track',
|
|
365
|
+
userId: 'user2',
|
|
366
|
+
properties: {
|
|
367
|
+
keys: { id: 'v2' },
|
|
368
|
+
values: { name: 'User 2' }
|
|
369
|
+
}
|
|
370
|
+
}),
|
|
371
|
+
(0, actions_core_1.createTestEvent)({
|
|
372
|
+
type: 'track',
|
|
373
|
+
userId: 'user3',
|
|
374
|
+
properties: {
|
|
375
|
+
keys: { id: 'v3' },
|
|
376
|
+
values: { name: 'User 3' }
|
|
377
|
+
}
|
|
378
|
+
}),
|
|
379
|
+
(0, actions_core_1.createTestEvent)({
|
|
380
|
+
type: 'track',
|
|
381
|
+
userId: 'user4',
|
|
382
|
+
properties: {
|
|
383
|
+
keys: { id: 'v4' },
|
|
384
|
+
values: { name: 'User 4' }
|
|
385
|
+
}
|
|
386
|
+
}),
|
|
387
|
+
(0, actions_core_1.createTestEvent)({
|
|
388
|
+
type: 'track',
|
|
389
|
+
userId: 'user5',
|
|
390
|
+
properties: {
|
|
391
|
+
keys: { id: 'v5' },
|
|
392
|
+
values: { name: 'User 5' }
|
|
393
|
+
}
|
|
394
|
+
})
|
|
395
|
+
];
|
|
396
|
+
(0, nock_1.default)(`https://${settings.subdomain}.rest.marketingcloudapis.com`)
|
|
397
|
+
.put(`/data/v1/async/dataextensions/${dataExtensionId}/rows`)
|
|
398
|
+
.reply(400, {
|
|
399
|
+
message: 'Parameter {id} is invalid.',
|
|
400
|
+
errorcode: 10001,
|
|
401
|
+
documentation: ''
|
|
402
|
+
});
|
|
403
|
+
const response = await testDestination.testAsyncBatchAction('asyncDataExtension', {
|
|
404
|
+
events,
|
|
405
|
+
settings,
|
|
406
|
+
mapping: payload
|
|
407
|
+
});
|
|
408
|
+
expect(response.jobId).toBeUndefined();
|
|
409
|
+
const errResponse0d = response.multiStatusResponse.getResponseAtIndex(0);
|
|
410
|
+
expect(errResponse0d.value().status).toBe(400);
|
|
411
|
+
expect(errResponse0d instanceof actions_core_1.ActionDestinationErrorResponse && errResponse0d.value().errormessage).toEqual('Failed to upsert rows asynchronously: SFMC API responded with {"message":"Parameter {id} is invalid.","errorcode":10001,"documentation":""}.');
|
|
412
|
+
});
|
|
413
|
+
});
|
|
414
|
+
describe('performPoll', () => {
|
|
415
|
+
const jobId = 'test-job-id';
|
|
416
|
+
const pollPayload = {
|
|
417
|
+
jobId,
|
|
418
|
+
attempt: 1,
|
|
419
|
+
totalEventsCount: 5,
|
|
420
|
+
validEventsCount: 5
|
|
421
|
+
};
|
|
422
|
+
it('should return IN_PROGRESS when requestStatus is Pending', async () => {
|
|
423
|
+
(0, nock_1.default)(`https://${settings.subdomain}.rest.marketingcloudapis.com`)
|
|
424
|
+
.get(`/data/v1/async/${jobId}/status`)
|
|
425
|
+
.reply(200, {
|
|
426
|
+
requestId: jobId,
|
|
427
|
+
status: { requestStatus: 'Pending', resultStatus: 'OK' },
|
|
428
|
+
resultMessages: []
|
|
429
|
+
});
|
|
430
|
+
const response = await testDestination.testAsyncPollAction('asyncDataExtension', {
|
|
431
|
+
pollPayload,
|
|
432
|
+
settings
|
|
433
|
+
});
|
|
434
|
+
expect(response.jobId).toBe(jobId);
|
|
435
|
+
expect(response.status).toBe('IN_PROGRESS');
|
|
436
|
+
});
|
|
437
|
+
it('should return IN_PROGRESS when requestStatus is Executing', async () => {
|
|
438
|
+
(0, nock_1.default)(`https://${settings.subdomain}.rest.marketingcloudapis.com`)
|
|
439
|
+
.get(`/data/v1/async/${jobId}/status`)
|
|
440
|
+
.reply(200, {
|
|
441
|
+
requestId: jobId,
|
|
442
|
+
status: { requestStatus: 'Executing', resultStatus: 'OK' },
|
|
443
|
+
resultMessages: []
|
|
444
|
+
});
|
|
445
|
+
const response = await testDestination.testAsyncPollAction('asyncDataExtension', {
|
|
446
|
+
pollPayload,
|
|
447
|
+
settings
|
|
448
|
+
});
|
|
449
|
+
expect(response.jobId).toBe(jobId);
|
|
450
|
+
expect(response.status).toBe('IN_PROGRESS');
|
|
451
|
+
});
|
|
452
|
+
it('should return IN_PROGRESS on 429 rate limit error', async () => {
|
|
453
|
+
(0, nock_1.default)(`https://${settings.subdomain}.rest.marketingcloudapis.com`)
|
|
454
|
+
.get(`/data/v1/async/${jobId}/status`)
|
|
455
|
+
.reply(429, 'Too Many Requests');
|
|
456
|
+
const response = await testDestination.testAsyncPollAction('asyncDataExtension', {
|
|
457
|
+
pollPayload,
|
|
458
|
+
settings
|
|
459
|
+
});
|
|
460
|
+
expect(response.status).toBe('IN_PROGRESS');
|
|
461
|
+
});
|
|
462
|
+
it('should return IN_PROGRESS on 500 server error', async () => {
|
|
463
|
+
(0, nock_1.default)(`https://${settings.subdomain}.rest.marketingcloudapis.com`)
|
|
464
|
+
.get(`/data/v1/async/${jobId}/status`)
|
|
465
|
+
.reply(500, 'Internal Server Error');
|
|
466
|
+
const response = await testDestination.testAsyncPollAction('asyncDataExtension', {
|
|
467
|
+
pollPayload,
|
|
468
|
+
settings
|
|
469
|
+
});
|
|
470
|
+
expect(response.status).toBe('IN_PROGRESS');
|
|
471
|
+
});
|
|
472
|
+
it('should return COMPLETED with batchResults when requestStatus is Complete and resultStatus is OK', async () => {
|
|
473
|
+
(0, nock_1.default)(`https://${settings.subdomain}.rest.marketingcloudapis.com`)
|
|
474
|
+
.get(`/data/v1/async/${jobId}/status`)
|
|
475
|
+
.reply(200, {
|
|
476
|
+
status: {
|
|
477
|
+
callDateTime: '2024-07-11T22:19:02.04',
|
|
478
|
+
completionDateTime: '2024-07-11T22:19:03.97',
|
|
479
|
+
hasErrors: false,
|
|
480
|
+
pickupDateTime: '2024-07-11T22:19:03.567',
|
|
481
|
+
requestStatus: 'Complete',
|
|
482
|
+
resultStatus: 'OK',
|
|
483
|
+
requestId: '12260e92-b8cb-41ec-8c5a-116fb9d23eb4'
|
|
484
|
+
},
|
|
485
|
+
requestId: '615f178b-d380-440c-a650-defd99b1efde',
|
|
486
|
+
resultMessages: []
|
|
487
|
+
});
|
|
488
|
+
const response = await testDestination.testAsyncPollAction('asyncDataExtension', {
|
|
489
|
+
pollPayload,
|
|
490
|
+
settings
|
|
491
|
+
});
|
|
492
|
+
expect(response.jobId).toBe(jobId);
|
|
493
|
+
expect(response.status).toBe('COMPLETED');
|
|
494
|
+
expect(response.batchResults).toBeDefined();
|
|
495
|
+
});
|
|
496
|
+
it('should return COMPLETED with granularResults when Complete but Has Errors', async () => {
|
|
497
|
+
(0, nock_1.default)(`https://${settings.subdomain}.rest.marketingcloudapis.com`)
|
|
498
|
+
.get(`/data/v1/async/${jobId}/status`)
|
|
499
|
+
.reply(200, {
|
|
500
|
+
requestId: jobId,
|
|
501
|
+
status: { requestStatus: 'Complete', resultStatus: 'Has Errors' },
|
|
502
|
+
resultMessages: []
|
|
503
|
+
});
|
|
504
|
+
(0, nock_1.default)(`https://${settings.subdomain}.rest.marketingcloudapis.com`)
|
|
505
|
+
.get(`/data/v1/async/${jobId}/results`)
|
|
506
|
+
.reply(200, {
|
|
507
|
+
page: 1,
|
|
508
|
+
pageSize: 50,
|
|
509
|
+
count: 5,
|
|
510
|
+
items: [
|
|
511
|
+
{
|
|
512
|
+
errorCode: 2,
|
|
513
|
+
errors: [
|
|
514
|
+
{
|
|
515
|
+
errorMessage: 'Column [contactkey] does not allow null value.',
|
|
516
|
+
name: 'contactkey',
|
|
517
|
+
errorCode: 70001
|
|
518
|
+
}
|
|
519
|
+
],
|
|
520
|
+
message: 'Cannot locate the existing record. Required keys are missing.',
|
|
521
|
+
status: 'Error'
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
message: 'Upserted DataExtensionObject',
|
|
525
|
+
status: 'OK'
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
message: 'Upserted DataExtensionObject',
|
|
529
|
+
status: 'OK'
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
errorCode: 2,
|
|
533
|
+
errors: [
|
|
534
|
+
{
|
|
535
|
+
errorMessage: 'Column [contactkey] does not allow null value.',
|
|
536
|
+
name: 'contactkey',
|
|
537
|
+
errorCode: 70001
|
|
538
|
+
}
|
|
539
|
+
],
|
|
540
|
+
message: 'Cannot locate the existing record. Required keys are missing.',
|
|
541
|
+
status: 'Error'
|
|
542
|
+
}
|
|
543
|
+
],
|
|
544
|
+
requestId: '424b760c-7410-4598-b977-ebf1d01b3555',
|
|
545
|
+
resultMessages: []
|
|
546
|
+
});
|
|
547
|
+
const response = await testDestination.testAsyncPollAction('asyncDataExtension', {
|
|
548
|
+
pollPayload,
|
|
549
|
+
settings
|
|
550
|
+
});
|
|
551
|
+
expect(response.status).toBe('COMPLETED');
|
|
552
|
+
expect(response.granularResults).toBeDefined();
|
|
553
|
+
expect(response.granularResults?.isErrorResponseAtIndex(0)).toBe(true);
|
|
554
|
+
expect(response.granularResults?.isSuccessResponseAtIndex(1)).toBe(true);
|
|
555
|
+
expect(response.granularResults?.isSuccessResponseAtIndex(2)).toBe(true);
|
|
556
|
+
});
|
|
557
|
+
it('should return FAILED when requestStatus is Error', async () => {
|
|
558
|
+
(0, nock_1.default)(`https://${settings.subdomain}.rest.marketingcloudapis.com`)
|
|
559
|
+
.get(`/data/v1/async/${jobId}/status`)
|
|
560
|
+
.reply(200, {
|
|
561
|
+
status: {
|
|
562
|
+
callDateTime: '2024-07-11T22:19:02.04',
|
|
563
|
+
completionDateTime: '2024-07-11T22:19:03.97',
|
|
564
|
+
hasErrors: false,
|
|
565
|
+
pickupDateTime: '2024-07-11T22:19:03.567',
|
|
566
|
+
requestStatus: 'Error',
|
|
567
|
+
resultStatus: 'OK',
|
|
568
|
+
requestId: '12260e92-b8cb-41ec-8c5a-116fb9d23eb4'
|
|
569
|
+
},
|
|
570
|
+
requestId: '615f178b-d380-440c-a650-defd99b1efde',
|
|
571
|
+
resultMessages: []
|
|
572
|
+
});
|
|
573
|
+
const response = await testDestination.testAsyncPollAction('asyncDataExtension', {
|
|
574
|
+
pollPayload,
|
|
575
|
+
settings
|
|
576
|
+
});
|
|
577
|
+
expect(response.jobId).toBe(jobId);
|
|
578
|
+
expect(response.status).toBe('FAILED');
|
|
579
|
+
expect(response.batchResults instanceof actions_core_1.ActionDestinationErrorResponse && response.batchResults.value().status).toBeDefined();
|
|
580
|
+
});
|
|
581
|
+
it('should return FAILED when status object is missing in response', async () => {
|
|
582
|
+
(0, nock_1.default)(`https://${settings.subdomain}.rest.marketingcloudapis.com`)
|
|
583
|
+
.get(`/data/v1/async/${jobId}/status`)
|
|
584
|
+
.reply(200, {
|
|
585
|
+
requestId: '615f178b-d380-440c-a650-defd99b1efde',
|
|
586
|
+
resultMessages: []
|
|
587
|
+
});
|
|
588
|
+
const response = await testDestination.testAsyncPollAction('asyncDataExtension', {
|
|
589
|
+
pollPayload,
|
|
590
|
+
settings
|
|
591
|
+
});
|
|
592
|
+
expect(response.status).toBe('FAILED');
|
|
593
|
+
expect(response.batchResults).toBeDefined();
|
|
594
|
+
});
|
|
595
|
+
});
|
|
596
|
+
});
|
|
597
|
+
});
|
|
598
|
+
//# sourceMappingURL=asyncDataExtension.async.test.js.map
|
package/dist/destinations/salesforce-marketing-cloud/_tests_/asyncDataExtension.async.test.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asyncDataExtension.async.test.js","sourceRoot":"","sources":["../../../../src/destinations/salesforce-marketing-cloud/_tests_/asyncDataExtension.async.test.ts"],"names":[],"mappings":";;;;;AAAA,gDAAuB;AACvB,wDAM8B;AAC9B,qDAAiC;AAGjC,MAAM,eAAe,GAAG,IAAA,oCAAqB,EAAC,eAAU,CAAC,CAAA;AACzD,MAAM,SAAS,GAAG,yBAAyB,CAAA;AAC3C,MAAM,QAAQ,GAAa;IACzB,SAAS,EAAE,SAAS;IACpB,SAAS,EAAE,SAAS;IACpB,aAAa,EAAE,SAAS;IACxB,UAAU,EAAE,SAAS;CACtB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