@segment/action-destinations 3.477.0 → 3.479.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/klaviyo/addProfileToList/index.js +1 -1
- package/dist/destinations/klaviyo/addProfileToList/index.js.map +1 -1
- package/dist/destinations/klaviyo/properties.js +10 -2
- package/dist/destinations/klaviyo/properties.js.map +1 -1
- package/dist/destinations/klaviyo/removeProfile/index.js +1 -1
- package/dist/destinations/klaviyo/removeProfile/index.js.map +1 -1
- package/dist/destinations/klaviyo/removeProfileFromList/index.js +1 -1
- package/dist/destinations/klaviyo/removeProfileFromList/index.js.map +1 -1
- package/dist/destinations/klaviyo/subscribeProfile/generated-types.d.ts +1 -0
- package/dist/destinations/klaviyo/subscribeProfile/index.js +6 -0
- package/dist/destinations/klaviyo/subscribeProfile/index.js.map +1 -1
- package/dist/destinations/klaviyo/trackEvent/index.js +1 -1
- package/dist/destinations/klaviyo/trackEvent/index.js.map +1 -1
- package/dist/destinations/klaviyo/unsubscribeProfile/generated-types.d.ts +1 -0
- package/dist/destinations/klaviyo/unsubscribeProfile/index.js +6 -0
- package/dist/destinations/klaviyo/unsubscribeProfile/index.js.map +1 -1
- package/dist/destinations/klaviyo/upsertProfile/index.js +1 -1
- package/dist/destinations/klaviyo/upsertProfile/index.js.map +1 -1
- package/dist/destinations/klime/index.d.ts +1 -1
- package/dist/destinations/klime/index.js +25 -1
- package/dist/destinations/klime/index.js.map +1 -1
- package/dist/destinations/liveramp-audiences/awsClient.js +6 -1
- package/dist/destinations/liveramp-audiences/awsClient.js.map +1 -1
- package/dist/destinations/pendo-audiences/constants.d.ts +22 -3
- package/dist/destinations/pendo-audiences/constants.js +23 -4
- package/dist/destinations/pendo-audiences/constants.js.map +1 -1
- package/dist/destinations/pendo-audiences/functions.d.ts +4 -2
- package/dist/destinations/pendo-audiences/functions.js +16 -5
- package/dist/destinations/pendo-audiences/functions.js.map +1 -1
- package/dist/destinations/pendo-audiences/generated-types.d.ts +1 -0
- package/dist/destinations/pendo-audiences/index.js +19 -8
- package/dist/destinations/pendo-audiences/index.js.map +1 -1
- package/dist/destinations/pendo-audiences/syncAudience/fields.js +2 -2
- package/dist/destinations/pendo-audiences/syncAudience/functions.d.ts +1 -1
- package/dist/destinations/pendo-audiences/syncAudience/functions.js +17 -35
- package/dist/destinations/pendo-audiences/syncAudience/functions.js.map +1 -1
- package/dist/destinations/pendo-audiences/syncAudience/index.js +4 -4
- package/dist/destinations/pendo-audiences/syncAudience/index.js.map +1 -1
- package/dist/destinations/pendo-audiences/syncAudience/types.d.ts +0 -3
- package/dist/destinations/pendo-audiences/types.d.ts +2 -4
- package/dist/destinations/salesforce-marketing-cloud/_tests_/contactDataExtensionV2.test.d.ts +1 -0
- package/dist/destinations/salesforce-marketing-cloud/_tests_/contactDataExtensionV2.test.js +650 -0
- package/dist/destinations/salesforce-marketing-cloud/_tests_/contactDataExtensionV2.test.js.map +1 -0
- package/dist/destinations/salesforce-marketing-cloud/_tests_/dataExtensionV2.test.d.ts +1 -0
- package/dist/destinations/salesforce-marketing-cloud/_tests_/dataExtensionV2.test.js +501 -0
- package/dist/destinations/salesforce-marketing-cloud/_tests_/dataExtensionV2.test.js.map +1 -0
- package/dist/destinations/the-trade-desk-crm/awsClient.d.ts +6 -1
- package/dist/destinations/the-trade-desk-crm/awsClient.js +8 -2
- package/dist/destinations/the-trade-desk-crm/awsClient.js.map +1 -1
- package/dist/destinations/the-trade-desk-crm/functions.d.ts +16 -1
- package/dist/destinations/the-trade-desk-crm/functions.js +7 -2
- package/dist/destinations/the-trade-desk-crm/functions.js.map +1 -1
- package/dist/destinations/the-trade-desk-crm/syncAudience/index.js +8 -6
- package/dist/destinations/the-trade-desk-crm/syncAudience/index.js.map +1 -1
- package/dist/destinations/yahoo-audiences/index.js +1 -14
- package/dist/destinations/yahoo-audiences/index.js.map +1 -1
- package/dist/destinations/yahoo-audiences/types.d.ts +3 -0
- package/dist/destinations/yahoo-audiences/utils-tax.d.ts +1 -1
- package/dist/destinations/yahoo-audiences/utils-tax.js +25 -15
- package/dist/destinations/yahoo-audiences/utils-tax.js.map +1 -1
- package/dist/destinations/youappi-audiences/constants.d.ts +1 -0
- package/dist/destinations/youappi-audiences/constants.js +5 -0
- package/dist/destinations/youappi-audiences/constants.js.map +1 -0
- package/dist/destinations/youappi-audiences/generated-types.d.ts +3 -0
- package/dist/destinations/youappi-audiences/generated-types.js +3 -0
- package/dist/destinations/youappi-audiences/generated-types.js.map +1 -0
- package/dist/destinations/youappi-audiences/index.d.ts +4 -0
- package/dist/destinations/youappi-audiences/index.js +45 -0
- package/dist/destinations/youappi-audiences/index.js.map +1 -0
- package/dist/destinations/youappi-audiences/sync/functions.d.ts +7 -0
- package/dist/destinations/youappi-audiences/sync/functions.js +105 -0
- package/dist/destinations/youappi-audiences/sync/functions.js.map +1 -0
- package/dist/destinations/youappi-audiences/sync/generated-types.d.ts +12 -0
- package/dist/destinations/youappi-audiences/sync/generated-types.js +3 -0
- package/dist/destinations/youappi-audiences/sync/generated-types.js.map +1 -0
- package/dist/destinations/youappi-audiences/sync/index.d.ts +5 -0
- package/dist/destinations/youappi-audiences/sync/index.js +101 -0
- package/dist/destinations/youappi-audiences/sync/index.js.map +1 -0
- package/dist/destinations/youappi-audiences/sync/types.d.ts +14 -0
- package/dist/destinations/youappi-audiences/sync/types.js +3 -0
- package/dist/destinations/youappi-audiences/sync/types.js.map +1 -0
- package/dist/lib/test-data.js +24 -7
- package/dist/lib/test-data.js.map +1 -1
- package/package.json +2 -2
|
@@ -3,27 +3,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.send = send;
|
|
4
4
|
const actions_core_1 = require("@segment/actions-core");
|
|
5
5
|
const constants_1 = require("../constants");
|
|
6
|
-
|
|
6
|
+
const functions_1 = require("../functions");
|
|
7
|
+
async function send(request, region, payload, isBatch) {
|
|
7
8
|
const msResponse = new actions_core_1.MultiStatusResponse();
|
|
8
9
|
const segmentId = payload[0]?.segmentAudienceId;
|
|
9
10
|
if (!segmentId) {
|
|
10
11
|
payload.forEach((p, index) => {
|
|
11
|
-
handleError('Missing Pendo Segment ID', isBatch, msResponse, index, p, 400);
|
|
12
|
+
handleError('PayloadValidationError', 'Missing Pendo Segment ID', isBatch, msResponse, index, p, 400);
|
|
12
13
|
});
|
|
13
14
|
return msResponse;
|
|
14
15
|
}
|
|
15
|
-
if (isBatch) {
|
|
16
|
-
return sendBatch(request, payload, segmentId, msResponse);
|
|
17
|
-
}
|
|
18
|
-
return sendSingle(request, payload[0], segmentId, isBatch, msResponse);
|
|
19
|
-
}
|
|
20
|
-
async function sendBatch(request, payload, segmentId, msResponse) {
|
|
21
16
|
const adds = new Map();
|
|
22
17
|
const removes = new Map();
|
|
23
18
|
payload.forEach((p, index) => {
|
|
24
19
|
const { visitorId, traitsOrProperties, segmentAudienceKey } = p;
|
|
25
20
|
if (!visitorId) {
|
|
26
|
-
handleError('Visitor ID is required',
|
|
21
|
+
handleError('PayloadValidationError', 'Visitor ID is required', isBatch, msResponse, index, p, 400);
|
|
27
22
|
return;
|
|
28
23
|
}
|
|
29
24
|
const isAdding = Boolean(traitsOrProperties[segmentAudienceKey]);
|
|
@@ -53,9 +48,8 @@ async function sendBatch(request, payload, segmentId, msResponse) {
|
|
|
53
48
|
});
|
|
54
49
|
}
|
|
55
50
|
try {
|
|
56
|
-
const response = await request(`${
|
|
51
|
+
const response = await request(`${(0, functions_1.getDomain)(region)}/${constants_1.SEGMENT_ENDPOINT}/${segmentId}/visitor`, {
|
|
57
52
|
method: 'PATCH',
|
|
58
|
-
skipResponseCloning: true,
|
|
59
53
|
json: patchBody
|
|
60
54
|
});
|
|
61
55
|
const data = response?.data;
|
|
@@ -72,7 +66,7 @@ async function sendBatch(request, payload, segmentId, msResponse) {
|
|
|
72
66
|
});
|
|
73
67
|
}
|
|
74
68
|
else {
|
|
75
|
-
handleError(item.message,
|
|
69
|
+
handleError('IntegrationError', item.message, isBatch, msResponse, index, p, item.status, buildSent(item.operation, visitorId));
|
|
76
70
|
}
|
|
77
71
|
});
|
|
78
72
|
});
|
|
@@ -84,37 +78,25 @@ async function sendBatch(request, payload, segmentId, msResponse) {
|
|
|
84
78
|
allIndices.forEach((index) => {
|
|
85
79
|
const visitorId = adds.get(index) ?? removes.get(index);
|
|
86
80
|
const op = adds.has(index) ? 'add' : 'remove';
|
|
87
|
-
handleError(message,
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
return msResponse;
|
|
91
|
-
}
|
|
92
|
-
async function sendSingle(request, p, segmentId, isBatch, msResponse) {
|
|
93
|
-
const { visitorId, traitsOrProperties, segmentAudienceKey } = p;
|
|
94
|
-
if (!visitorId) {
|
|
95
|
-
handleError('Visitor ID is required', isBatch, msResponse, 0, p, 400);
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
const isAdding = Boolean(traitsOrProperties[segmentAudienceKey]);
|
|
99
|
-
const method = isAdding ? 'PUT' : 'DELETE';
|
|
100
|
-
const url = `${constants_1.CONSTANTS.API_BASE_URL}${constants_1.CONSTANTS.SEGMENT_ENDPOINT}/${segmentId}/visitor/${encodeURIComponent(visitorId)}`;
|
|
101
|
-
try {
|
|
102
|
-
await request(url, {
|
|
103
|
-
method
|
|
81
|
+
handleError('IntegrationError', message, isBatch, msResponse, index, payload[index], status, buildSent(op, visitorId));
|
|
104
82
|
});
|
|
105
83
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
const message = error?.message || `An error occurred while ${isAdding ? 'adding' : 'removing'} visitor from Pendo Segment.`;
|
|
109
|
-
throw new actions_core_1.IntegrationError(message, (0, actions_core_1.getErrorCodeFromHttpStatus)(status), status);
|
|
84
|
+
if (isBatch) {
|
|
85
|
+
return msResponse;
|
|
110
86
|
}
|
|
87
|
+
return;
|
|
111
88
|
}
|
|
112
89
|
function buildSent(op, visitorId) {
|
|
113
90
|
return { patch: [{ op, path: '/visitors', value: [visitorId] }] };
|
|
114
91
|
}
|
|
115
|
-
function handleError(message, isBatch, msResponse, index, payload, status = 400, sent) {
|
|
92
|
+
function handleError(errType, message, isBatch, msResponse, index, payload, status = 400, sent) {
|
|
116
93
|
if (!isBatch) {
|
|
117
|
-
|
|
94
|
+
if (errType === 'PayloadValidationError') {
|
|
95
|
+
throw new actions_core_1.PayloadValidationError(message);
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
throw new actions_core_1.IntegrationError(message, (0, actions_core_1.getErrorCodeFromHttpStatus)(status) || actions_core_1.ErrorCodes.UNKNOWN_ERROR, status);
|
|
99
|
+
}
|
|
118
100
|
}
|
|
119
101
|
msResponse.setErrorResponseAtIndex(index, {
|
|
120
102
|
status,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../../src/destinations/pendo-audiences/syncAudience/functions.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../../src/destinations/pendo-audiences/syncAudience/functions.ts"],"names":[],"mappings":";;AAMA,oBAgGC;AAtGD,wDAA4K;AAG5K,4CAA+C;AAC/C,4CAAwC;AAEjC,KAAK,UAAU,IAAI,CAAC,OAAsB,EAAE,MAAc,EAAE,OAAkB,EAAE,OAAgB;IACrG,MAAM,UAAU,GAAG,IAAI,kCAAmB,EAAE,CAAA;IAC5C,MAAM,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,iBAAiB,CAAA;IAE/C,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE;YAC3B,WAAW,CAAC,wBAAwB,EAAE,0BAA0B,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,CAAC,CAAA;QACvG,CAAC,CAAC,CAAA;QACF,OAAO,UAAU,CAAA;IACnB,CAAC;IAED,MAAM,IAAI,GAAW,IAAI,GAAG,EAAE,CAAA;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CAAC;QACb,IAAG,OAAO,KAAK,wBAAwB,EAAE,CAAC;YACxC,MAAM,IAAI,qCAAsB,CAAC,OAAO,CAAC,CAAA;QAC3C,CAAC;aACI,CAAC;YACJ,MAAM,IAAI,+BAAgB,CAAE,OAAO,EAAE,IAAA,yCAA0B,EAAC,MAAM,CAAC,IAAI,yBAAU,CAAC,aAAa,EAAE,MAAM,CAAC,CAAA;QAC9G,CAAC;IACH,CAAC;IACD,UAAU,CAAC,uBAAuB,CAAC,KAAK,EAAE;QACxC,MAAM;QACN,IAAI,EAAE,OAAoC;QAC1C,YAAY,EAAE,OAAO;QACrB,GAAG,CAAC,IAAI,IAAI,EAAE,IAAI,EAAE,CAAC;KACtB,CAAC,CAAA;AACJ,CAAC"}
|
|
@@ -7,11 +7,11 @@ const action = {
|
|
|
7
7
|
description: 'Sync Segment Engage Audience membership to a Pendo Segment by adding or removing visitors.',
|
|
8
8
|
defaultSubscription: 'type = "identify" or type = "track"',
|
|
9
9
|
fields: fields_1.fields,
|
|
10
|
-
perform: (request, { payload }) => {
|
|
11
|
-
return (0, functions_1.send)(request, [payload], false);
|
|
10
|
+
perform: (request, { payload, settings }) => {
|
|
11
|
+
return (0, functions_1.send)(request, settings.region, [payload], false);
|
|
12
12
|
},
|
|
13
|
-
performBatch: (request, { payload }) => {
|
|
14
|
-
return (0, functions_1.send)(request, payload, true);
|
|
13
|
+
performBatch: (request, { payload, settings }) => {
|
|
14
|
+
return (0, functions_1.send)(request, settings.region, payload, true);
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
exports.default = action;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/pendo-audiences/syncAudience/index.ts"],"names":[],"mappings":";;AAGA,qCAAiC;AACjC,2CAAkC;AAElC,MAAM,MAAM,GAA0D;IACpE,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EAAE,4FAA4F;IACzG,mBAAmB,EAAE,qCAAqC;IAC1D,MAAM,EAAN,eAAM;IACN,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/pendo-audiences/syncAudience/index.ts"],"names":[],"mappings":";;AAGA,qCAAiC;AACjC,2CAAkC;AAElC,MAAM,MAAM,GAA0D;IACpE,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EAAE,4FAA4F;IACzG,mBAAmB,EAAE,qCAAqC;IAC1D,MAAM,EAAN,eAAM;IACN,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC1C,OAAO,IAAA,gBAAI,EAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,CAAA;IACzD,CAAC;IACD,YAAY,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC/C,OAAO,IAAA,gBAAI,EAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,CAAA;IACtD,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -14,8 +14,5 @@ export interface BatchMultistatusItem {
|
|
|
14
14
|
export interface BatchPatchResponse {
|
|
15
15
|
multistatus: BatchMultistatusItem[];
|
|
16
16
|
}
|
|
17
|
-
export interface VisitorActionResponse {
|
|
18
|
-
message: string;
|
|
19
|
-
}
|
|
20
17
|
export type AddMap = Map<number, string>;
|
|
21
18
|
export type RemoveMap = Map<number, string>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { REGIONS } from './constants';
|
|
2
|
+
export type PendoDomain = typeof REGIONS[keyof typeof REGIONS]['domain'];
|
|
1
3
|
export interface CreateSegmentJSON {
|
|
2
4
|
name: string;
|
|
3
5
|
visitors: string[];
|
|
@@ -8,7 +10,3 @@ export interface CreateSegmentResponse {
|
|
|
8
10
|
export interface GetSegmentResponse {
|
|
9
11
|
id?: string;
|
|
10
12
|
}
|
|
11
|
-
export interface PendoErrorResponse {
|
|
12
|
-
status?: number;
|
|
13
|
-
message?: string;
|
|
14
|
-
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|