@segment/action-destinations 3.345.2 → 3.346.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/attentive/customEvents/generated-types.d.ts +14 -0
- package/dist/destinations/attentive/customEvents/generated-types.js +3 -0
- package/dist/destinations/attentive/customEvents/generated-types.js.map +1 -0
- package/dist/destinations/attentive/customEvents/index.d.ts +5 -0
- package/dist/destinations/attentive/customEvents/index.js +124 -0
- package/dist/destinations/attentive/customEvents/index.js.map +1 -0
- package/dist/destinations/attentive/customEvents/types.d.ts +15 -0
- package/dist/destinations/attentive/customEvents/types.js +3 -0
- package/dist/destinations/attentive/customEvents/types.js.map +1 -0
- package/dist/destinations/attentive/generated-types.d.ts +3 -0
- package/dist/destinations/attentive/generated-types.js +3 -0
- package/dist/destinations/attentive/generated-types.js.map +1 -0
- package/dist/destinations/attentive/index.d.ts +4 -0
- package/dist/destinations/attentive/index.js +54 -0
- package/dist/destinations/attentive/index.js.map +1 -0
- package/dist/destinations/drip/identify/index.js +1 -1
- package/dist/destinations/drip/identify/index.js.map +1 -1
- package/dist/destinations/drip/index.js +1 -1
- package/dist/destinations/drip/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/functions.js +6 -2
- package/dist/destinations/google-enhanced-conversions/functions.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/userList/index.js +2 -1
- package/dist/destinations/google-enhanced-conversions/userList/index.js.map +1 -1
- package/dist/destinations/hubspot/customEvent/functions/dynamic-field-functions.js +1 -1
- package/dist/destinations/hubspot/customEvent/functions/dynamic-field-functions.js.map +1 -1
- package/dist/destinations/index.js +2 -0
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/klaviyo/addProfileToList/index.js +10 -1
- package/dist/destinations/klaviyo/addProfileToList/index.js.map +1 -1
- package/dist/destinations/klaviyo/removeProfile/index.js +10 -1
- package/dist/destinations/klaviyo/removeProfile/index.js.map +1 -1
- package/dist/destinations/klaviyo/subscribeProfile/index.js +10 -1
- package/dist/destinations/klaviyo/subscribeProfile/index.js.map +1 -1
- package/dist/destinations/rokt-audiences/constants.js +1 -1
- package/dist/destinations/rokt-audiences/constants.js.map +1 -1
- package/dist/destinations/rokt-audiences/generated-types.d.ts +3 -1
- package/dist/destinations/rokt-audiences/index.js +26 -10
- package/dist/destinations/rokt-audiences/index.js.map +1 -1
- package/dist/destinations/rokt-audiences/upsertCustomAudiences/custom-audience-operations.d.ts +2 -1
- package/dist/destinations/rokt-audiences/upsertCustomAudiences/custom-audience-operations.js +4 -3
- package/dist/destinations/rokt-audiences/upsertCustomAudiences/custom-audience-operations.js.map +1 -1
- package/dist/destinations/rokt-audiences/upsertCustomAudiences/index.js +4 -4
- package/dist/destinations/rokt-audiences/upsertCustomAudiences/index.js.map +1 -1
- package/dist/destinations/s3/functions.js +1 -1
- package/dist/destinations/s3/functions.js.map +1 -1
- package/dist/destinations/schematic/trackEvent/index.js.map +1 -1
- package/dist/destinations/sendgrid-audiences/constants.d.ts +1 -0
- package/dist/destinations/sendgrid-audiences/constants.js +2 -1
- package/dist/destinations/sendgrid-audiences/constants.js.map +1 -1
- package/dist/destinations/sendgrid-audiences/syncAudience/dynamic-fields.d.ts +4 -0
- package/dist/destinations/sendgrid-audiences/syncAudience/dynamic-fields.js +33 -0
- package/dist/destinations/sendgrid-audiences/syncAudience/dynamic-fields.js.map +1 -0
- package/dist/destinations/sendgrid-audiences/syncAudience/fields.js +117 -0
- package/dist/destinations/sendgrid-audiences/syncAudience/fields.js.map +1 -1
- package/dist/destinations/sendgrid-audiences/syncAudience/generated-types.d.ts +13 -0
- package/dist/destinations/sendgrid-audiences/syncAudience/index.js +8 -0
- package/dist/destinations/sendgrid-audiences/syncAudience/index.js.map +1 -1
- package/dist/destinations/sendgrid-audiences/syncAudience/utils.js +16 -1
- package/dist/destinations/sendgrid-audiences/syncAudience/utils.js.map +1 -1
- package/dist/destinations/sendgrid-audiences/types.d.ts +11 -0
- package/dist/destinations/snap-audiences/index.js +17 -77
- package/dist/destinations/snap-audiences/index.js.map +1 -1
- package/dist/destinations/stackadapt-audiences/forwardAudienceEvent/functions.js +6 -3
- package/dist/destinations/stackadapt-audiences/forwardAudienceEvent/functions.js.map +1 -1
- package/dist/destinations/stackadapt-audiences/forwardProfile/functions.js +11 -0
- package/dist/destinations/stackadapt-audiences/forwardProfile/functions.js.map +1 -1
- package/dist/destinations/stackadapt-audiences/index.js +29 -0
- package/dist/destinations/stackadapt-audiences/index.js.map +1 -1
- package/dist/destinations/taboola-actions/generated-types.d.ts +1 -0
- package/dist/destinations/taboola-actions/index.js +12 -1
- package/dist/destinations/taboola-actions/index.js.map +1 -1
- package/dist/destinations/twilio-messaging/generated-types.d.ts +6 -0
- package/dist/destinations/twilio-messaging/generated-types.js +3 -0
- package/dist/destinations/twilio-messaging/generated-types.js.map +1 -0
- package/dist/destinations/twilio-messaging/index.d.ts +4 -0
- package/dist/destinations/twilio-messaging/index.js +61 -0
- package/dist/destinations/twilio-messaging/index.js.map +1 -0
- package/dist/destinations/twilio-messaging/sendMessage/constants.d.ts +41 -0
- package/dist/destinations/twilio-messaging/sendMessage/constants.js +95 -0
- package/dist/destinations/twilio-messaging/sendMessage/constants.js.map +1 -0
- package/dist/destinations/twilio-messaging/sendMessage/dynamic-fields.d.ts +10 -0
- package/dist/destinations/twilio-messaging/sendMessage/dynamic-fields.js +169 -0
- package/dist/destinations/twilio-messaging/sendMessage/dynamic-fields.js.map +1 -0
- package/dist/destinations/twilio-messaging/sendMessage/fields.d.ts +2 -0
- package/dist/destinations/twilio-messaging/sendMessage/fields.js +250 -0
- package/dist/destinations/twilio-messaging/sendMessage/fields.js.map +1 -0
- package/dist/destinations/twilio-messaging/sendMessage/generated-types.d.ts +23 -0
- package/dist/destinations/twilio-messaging/sendMessage/generated-types.js +3 -0
- package/dist/destinations/twilio-messaging/sendMessage/generated-types.js.map +1 -0
- package/dist/destinations/twilio-messaging/sendMessage/index.d.ts +5 -0
- package/dist/destinations/twilio-messaging/sendMessage/index.js +39 -0
- package/dist/destinations/twilio-messaging/sendMessage/index.js.map +1 -0
- package/dist/destinations/twilio-messaging/sendMessage/types.d.ts +34 -0
- package/dist/destinations/twilio-messaging/sendMessage/types.js +3 -0
- package/dist/destinations/twilio-messaging/sendMessage/types.js.map +1 -0
- package/dist/destinations/twilio-messaging/sendMessage/utils.d.ts +6 -0
- package/dist/destinations/twilio-messaging/sendMessage/utils.js +147 -0
- package/dist/destinations/twilio-messaging/sendMessage/utils.js.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateContentSid = exports.parseFieldValue = exports.send = void 0;
|
|
4
|
+
const actions_core_1 = require("@segment/actions-core");
|
|
5
|
+
const constants_1 = require("./constants");
|
|
6
|
+
async function send(request, payload, settings) {
|
|
7
|
+
let { toPhoneNumber, fromPhoneNumber, messagingServiceSid, contentSid } = payload;
|
|
8
|
+
const { channel, senderType, messengerPageUserId, contentTemplateType, contentVariables, inlineBody, inlineVariables, validityPeriod, sendAt, mediaUrls, inlineMediaUrls } = payload;
|
|
9
|
+
const getTo = () => {
|
|
10
|
+
switch (channel) {
|
|
11
|
+
case 'SMS':
|
|
12
|
+
case 'MMS': {
|
|
13
|
+
toPhoneNumber = toPhoneNumber.trim();
|
|
14
|
+
if (!constants_1.E164_REGEX.test(toPhoneNumber)) {
|
|
15
|
+
throw new actions_core_1.PayloadValidationError("'To' field should be a valid phone number in E.164 format");
|
|
16
|
+
}
|
|
17
|
+
return toPhoneNumber;
|
|
18
|
+
}
|
|
19
|
+
case 'Whatsapp': {
|
|
20
|
+
toPhoneNumber = toPhoneNumber.trim();
|
|
21
|
+
if (!constants_1.E164_REGEX.test(toPhoneNumber)) {
|
|
22
|
+
throw new actions_core_1.PayloadValidationError("'To' field should be a valid phone number in E.164 format");
|
|
23
|
+
}
|
|
24
|
+
return `whatsapp:${toPhoneNumber}`;
|
|
25
|
+
}
|
|
26
|
+
case 'Messenger': {
|
|
27
|
+
if (!messengerPageUserId) {
|
|
28
|
+
throw new actions_core_1.PayloadValidationError("'Messenger Page or User ID' field is required when Channel field set to 'Messenger'");
|
|
29
|
+
}
|
|
30
|
+
return `messenger:${messengerPageUserId.trim()}`;
|
|
31
|
+
}
|
|
32
|
+
default: {
|
|
33
|
+
throw new actions_core_1.PayloadValidationError('Unsupported Channel');
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
const getSendAt = () => (sendAt ? { SendAt: sendAt } : {});
|
|
38
|
+
const getValidityPeriod = () => (validityPeriod ? { ValidityPeriod: validityPeriod } : {});
|
|
39
|
+
const getSender = () => {
|
|
40
|
+
if (senderType === constants_1.SENDER_TYPE.PHONE_NUMBER) {
|
|
41
|
+
fromPhoneNumber = fromPhoneNumber?.trim();
|
|
42
|
+
if (!fromPhoneNumber) {
|
|
43
|
+
throw new actions_core_1.PayloadValidationError("'From Phone Number' field is required when sending from a phone number.");
|
|
44
|
+
}
|
|
45
|
+
if (!constants_1.E164_REGEX.test(fromPhoneNumber)) {
|
|
46
|
+
throw new actions_core_1.PayloadValidationError("'From' field should be a valid phone number in E.164 format");
|
|
47
|
+
}
|
|
48
|
+
return { From: fromPhoneNumber };
|
|
49
|
+
}
|
|
50
|
+
if (senderType === constants_1.SENDER_TYPE.MESSAGING_SERVICE) {
|
|
51
|
+
messagingServiceSid = parseFieldValue(messagingServiceSid);
|
|
52
|
+
if (!messagingServiceSid) {
|
|
53
|
+
throw new actions_core_1.PayloadValidationError("'Messaging Service SID' field is required when 'Choose Sender' field = Messaging Service SID");
|
|
54
|
+
}
|
|
55
|
+
if (!constants_1.MESSAGING_SERVICE_SID_REGEX.test(messagingServiceSid ?? '')) {
|
|
56
|
+
throw new actions_core_1.PayloadValidationError("'Messaging Service SID' field value should start with 'MG' followed by 32 hexadecimal characters, totaling 34 characters.");
|
|
57
|
+
}
|
|
58
|
+
return { MessagingServiceSid: messagingServiceSid };
|
|
59
|
+
}
|
|
60
|
+
throw new actions_core_1.PayloadValidationError('Unsupported Sender Type');
|
|
61
|
+
};
|
|
62
|
+
const getContent = () => {
|
|
63
|
+
contentSid = parseFieldValue(contentSid);
|
|
64
|
+
if (contentSid && !constants_1.CONTENT_SID_REGEX.test(contentSid)) {
|
|
65
|
+
throw new actions_core_1.PayloadValidationError("Content SID should start with 'HX' followed by 32 hexadecimal characters.");
|
|
66
|
+
}
|
|
67
|
+
if (contentTemplateType === constants_1.INLINE_CONTENT_TYPES.INLINE.friendly_name && inlineBody) {
|
|
68
|
+
return { Body: encodeURIComponent(replaceTokens(inlineBody, inlineVariables)) };
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
return {
|
|
72
|
+
ContentSid: contentSid,
|
|
73
|
+
...(Object.keys(contentVariables ?? {}).length > 0 && { ContentVariables: JSON.stringify(contentVariables) })
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
const getMediaUrl = () => {
|
|
78
|
+
const supportsMedia = Object.values(constants_1.ALL_CONTENT_TYPES).find((type) => type.supports_media);
|
|
79
|
+
if (supportsMedia) {
|
|
80
|
+
const urls = contentTemplateType === constants_1.ALL_CONTENT_TYPES.INLINE.friendly_name
|
|
81
|
+
? inlineMediaUrls
|
|
82
|
+
?.filter((item) => item.trim() !== '')
|
|
83
|
+
.map((item) => replaceTokens(item.trim(), inlineVariables)) ?? []
|
|
84
|
+
: mediaUrls?.map((item) => item.url.trim()) ?? [];
|
|
85
|
+
if (urls.length > 10) {
|
|
86
|
+
throw new actions_core_1.PayloadValidationError('Media URL cannot contain more than 10 URLs');
|
|
87
|
+
}
|
|
88
|
+
urls
|
|
89
|
+
.filter((url) => url.trim() !== '')
|
|
90
|
+
.some((url) => {
|
|
91
|
+
try {
|
|
92
|
+
new URL(url);
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
catch {
|
|
96
|
+
throw new actions_core_1.PayloadValidationError(`Media URL ${url} is not a valid URL.`);
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
return urls.length > 0 ? { MediaUrl: urls } : {};
|
|
100
|
+
}
|
|
101
|
+
return {};
|
|
102
|
+
};
|
|
103
|
+
const twilioPayload = (() => ({
|
|
104
|
+
To: getTo(),
|
|
105
|
+
...getSendAt(),
|
|
106
|
+
...getValidityPeriod(),
|
|
107
|
+
...getSender(),
|
|
108
|
+
...getContent(),
|
|
109
|
+
...getMediaUrl()
|
|
110
|
+
}))();
|
|
111
|
+
const encodedBody = encode(twilioPayload);
|
|
112
|
+
return await request(constants_1.SEND_SMS_URL.replace(constants_1.ACCOUNT_SID_TOKEN, settings.accountSID), {
|
|
113
|
+
method: 'post',
|
|
114
|
+
body: encodedBody
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
exports.send = send;
|
|
118
|
+
function parseFieldValue(value) {
|
|
119
|
+
if (!value) {
|
|
120
|
+
return undefined;
|
|
121
|
+
}
|
|
122
|
+
const match = constants_1.FIELD_REGEX.exec(value);
|
|
123
|
+
return match ? match[1] : value;
|
|
124
|
+
}
|
|
125
|
+
exports.parseFieldValue = parseFieldValue;
|
|
126
|
+
function replaceTokens(str, tokens) {
|
|
127
|
+
return str.replace(constants_1.TOKEN_REGEX, (_, key) => String(tokens?.[key] ?? ''));
|
|
128
|
+
}
|
|
129
|
+
function encode(twilioPayload) {
|
|
130
|
+
const encodedSmsBody = new URLSearchParams();
|
|
131
|
+
Object.entries(twilioPayload).forEach(([key, value]) => {
|
|
132
|
+
if (key === 'MediaUrl' && Array.isArray(value)) {
|
|
133
|
+
value.forEach((url) => {
|
|
134
|
+
encodedSmsBody.append(`MediaUrl`, url);
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
encodedSmsBody.append(key, String(value));
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
return encodedSmsBody.toString();
|
|
142
|
+
}
|
|
143
|
+
function validateContentSid(contentSid) {
|
|
144
|
+
return /^HX[0-9a-fA-F]{32}$/.test(contentSid);
|
|
145
|
+
}
|
|
146
|
+
exports.validateContentSid = validateContentSid;
|
|
147
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/destinations/twilio-messaging/sendMessage/utils.ts"],"names":[],"mappings":";;;AAAA,wDAA6E;AAG7E,2CAWoB;AAGb,KAAK,UAAU,IAAI,CAAC,OAAsB,EAAE,OAAgB,EAAE,QAAkB;IACrF,IAAI,EAAE,aAAa,EAAE,eAAe,EAAE,mBAAmB,EAAE,UAAU,EAAE,GAAG,OAAO,CAAA;IAEjF,MAAM,EACJ,OAAO,EACP,UAAU,EACV,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,UAAU,EACV,eAAe,EACf,cAAc,EACd,MAAM,EACN,SAAS,EACT,eAAe,EAChB,GAAG,OAAO,CAAA;IAEX,MAAM,KAAK,GAAG,GAAW,EAAE;QACzB,QAAQ,OAAO,EAAE;YACf,KAAK,KAAK,CAAC;YACX,KAAK,KAAK,CAAC,CAAC;gBACV,aAAa,GAAG,aAAa,CAAC,IAAI,EAAE,CAAA;gBACpC,IAAI,CAAC,sBAAU,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE;oBACnC,MAAM,IAAI,qCAAsB,CAAC,2DAA2D,CAAC,CAAA;iBAC9F;gBACD,OAAO,aAAa,CAAA;aACrB;YACD,KAAK,UAAU,CAAC,CAAC;gBACf,aAAa,GAAG,aAAa,CAAC,IAAI,EAAE,CAAA;gBACpC,IAAI,CAAC,sBAAU,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE;oBACnC,MAAM,IAAI,qCAAsB,CAAC,2DAA2D,CAAC,CAAA;iBAC9F;gBACD,OAAO,YAAY,aAAa,EAAE,CAAA;aACnC;YACD,KAAK,WAAW,CAAC,CAAC;gBAChB,IAAI,CAAC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,UAAU,CAAC,CAAA;AAC/C,CAAC;AAFD,gDAEC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@segment/action-destinations",
|
|
3
3
|
"description": "Destination Actions engine and definitions.",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.346.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/segmentio/action-destinations",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"@bufbuild/protobuf": "^1.4.2",
|
|
45
45
|
"@bufbuild/protoc-gen-es": "^1.4.2",
|
|
46
46
|
"@segment/a1-notation": "^2.1.4",
|
|
47
|
-
"@segment/actions-core": "^3.
|
|
48
|
-
"@segment/actions-shared": "^1.
|
|
47
|
+
"@segment/actions-core": "^3.141.0",
|
|
48
|
+
"@segment/actions-shared": "^1.122.0",
|
|
49
49
|
"@types/node": "^18.11.15",
|
|
50
50
|
"ajv-formats": "^2.1.1",
|
|
51
51
|
"aws4": "^1.12.0",
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"__tests__/__helpers__/"
|
|
89
89
|
]
|
|
90
90
|
},
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "b3bf23153b9752f1021e8f75ea1d1c96acc50a9e"
|
|
92
92
|
}
|