@segment/action-destinations 3.333.0 → 3.333.1-staging-d615339bd.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/pa-operations.d.ts +1 -1
- package/dist/destinations/adjust/functions.d.ts +1 -1
- package/dist/destinations/adobe-target/adobeTarget_operations.d.ts +1 -1
- package/dist/destinations/airship/utilities.d.ts +7 -7
- package/dist/destinations/cordial/cordial-client.d.ts +8 -8
- package/dist/destinations/customerio/test-helper.d.ts +1 -1
- package/dist/destinations/engage-messaging-twilio/sendMobilePush/PushSender.d.ts +1 -1
- package/dist/destinations/engage-messaging-twilio/utils/PhoneMessageSender.d.ts +1 -1
- package/dist/destinations/facebook-custom-audiences/fbca-operations.d.ts +2 -2
- package/dist/destinations/first-party-dv360/addToAudMobileDeviceId/generated-types.d.ts +5 -0
- package/dist/destinations/first-party-dv360/addToAudMobileDeviceId/generated-types.js.map +1 -0
- package/dist/destinations/first-party-dv360/addToAudMobileDeviceId/index.d.ts +5 -0
- package/dist/destinations/first-party-dv360/addToAudMobileDeviceId/index.js +24 -0
- package/dist/destinations/first-party-dv360/addToAudMobileDeviceId/index.js.map +1 -0
- package/dist/destinations/first-party-dv360/addtoAudContactInfo/generated-types.d.ts +10 -0
- package/dist/destinations/first-party-dv360/addtoAudContactInfo/generated-types.js +3 -0
- package/dist/destinations/first-party-dv360/addtoAudContactInfo/generated-types.js.map +1 -0
- package/dist/destinations/first-party-dv360/addtoAudContactInfo/index.d.ts +5 -0
- package/dist/destinations/first-party-dv360/addtoAudContactInfo/index.js +29 -0
- package/dist/destinations/first-party-dv360/addtoAudContactInfo/index.js.map +1 -0
- package/dist/destinations/first-party-dv360/functions.d.ts +23 -1
- package/dist/destinations/first-party-dv360/functions.js +130 -1
- package/dist/destinations/first-party-dv360/functions.js.map +1 -1
- package/dist/destinations/first-party-dv360/generated-types.d.ts +0 -1
- package/dist/destinations/first-party-dv360/index.js +12 -19
- package/dist/destinations/first-party-dv360/index.js.map +1 -1
- package/dist/destinations/first-party-dv360/properties.d.ts +12 -0
- package/dist/destinations/first-party-dv360/properties.js +94 -0
- package/dist/destinations/first-party-dv360/properties.js.map +1 -0
- package/dist/destinations/first-party-dv360/removeFromAudContactInfo/generated-types.d.ts +10 -0
- package/dist/destinations/first-party-dv360/removeFromAudContactInfo/generated-types.js +3 -0
- package/dist/destinations/first-party-dv360/removeFromAudContactInfo/generated-types.js.map +1 -0
- package/dist/destinations/first-party-dv360/removeFromAudContactInfo/index.d.ts +5 -0
- package/dist/destinations/first-party-dv360/removeFromAudContactInfo/index.js +29 -0
- package/dist/destinations/first-party-dv360/removeFromAudContactInfo/index.js.map +1 -0
- package/dist/destinations/first-party-dv360/removeFromAudMobileDeviceId/generated-types.d.ts +5 -0
- package/dist/destinations/first-party-dv360/removeFromAudMobileDeviceId/generated-types.js +3 -0
- package/dist/destinations/first-party-dv360/removeFromAudMobileDeviceId/generated-types.js.map +1 -0
- package/dist/destinations/first-party-dv360/removeFromAudMobileDeviceId/index.d.ts +5 -0
- package/dist/destinations/first-party-dv360/removeFromAudMobileDeviceId/index.js +24 -0
- package/dist/destinations/first-party-dv360/removeFromAudMobileDeviceId/index.js.map +1 -0
- package/dist/destinations/gameball/util.d.ts +1 -1
- package/dist/destinations/google-analytics-4/ga4-functions.d.ts +1 -1
- package/dist/destinations/google-campaign-manager-360/utils.d.ts +1 -1
- package/dist/destinations/google-enhanced-conversions/functions.d.ts +5 -5
- package/dist/destinations/google-enhanced-conversions/functions.js +18 -18
- package/dist/destinations/google-enhanced-conversions/functions.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/index.js +2 -2
- package/dist/destinations/google-enhanced-conversions/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/types.d.ts +3 -0
- package/dist/destinations/google-enhanced-conversions/userList/index.js +9 -9
- package/dist/destinations/google-enhanced-conversions/userList/index.js.map +1 -1
- package/dist/destinations/google-sheets/postSheet/operations.d.ts +1 -1
- package/dist/destinations/google-sheets/postSheet2/operations2.d.ts +1 -1
- package/dist/destinations/hubspot/customEvent/event-completion.d.ts +1 -1
- package/dist/destinations/hubspot/upsertObject/client.d.ts +3 -3
- package/dist/destinations/klaviyo/addProfileToList/generated-types.d.ts +1 -0
- package/dist/destinations/klaviyo/addProfileToList/index.js +5 -14
- package/dist/destinations/klaviyo/addProfileToList/index.js.map +1 -1
- package/dist/destinations/klaviyo/config.d.ts +4 -0
- package/dist/destinations/klaviyo/config.js +250 -1
- package/dist/destinations/klaviyo/config.js.map +1 -1
- package/dist/destinations/klaviyo/functions.d.ts +15 -7
- package/dist/destinations/klaviyo/functions.js +256 -7
- package/dist/destinations/klaviyo/functions.js.map +1 -1
- package/dist/destinations/klaviyo/orderCompleted/generated-types.d.ts +1 -0
- package/dist/destinations/klaviyo/orderCompleted/index.js +6 -4
- package/dist/destinations/klaviyo/orderCompleted/index.js.map +1 -1
- package/dist/destinations/klaviyo/properties.d.ts +3 -0
- package/dist/destinations/klaviyo/properties.js +19 -1
- package/dist/destinations/klaviyo/properties.js.map +1 -1
- package/dist/destinations/klaviyo/removeProfile/generated-types.d.ts +1 -0
- package/dist/destinations/klaviyo/removeProfile/index.js +10 -5
- package/dist/destinations/klaviyo/removeProfile/index.js.map +1 -1
- package/dist/destinations/klaviyo/removeProfileFromList/generated-types.d.ts +1 -0
- package/dist/destinations/klaviyo/removeProfileFromList/index.js +9 -6
- 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 +11 -5
- package/dist/destinations/klaviyo/subscribeProfile/index.js.map +1 -1
- package/dist/destinations/klaviyo/trackEvent/generated-types.d.ts +1 -0
- package/dist/destinations/klaviyo/trackEvent/index.js +8 -4
- package/dist/destinations/klaviyo/trackEvent/index.js.map +1 -1
- package/dist/destinations/klaviyo/types.d.ts +18 -0
- package/dist/destinations/klaviyo/unsubscribeProfile/generated-types.d.ts +1 -0
- package/dist/destinations/klaviyo/unsubscribeProfile/index.js +11 -5
- package/dist/destinations/klaviyo/unsubscribeProfile/index.js.map +1 -1
- package/dist/destinations/klaviyo/upsertProfile/generated-types.d.ts +1 -0
- package/dist/destinations/klaviyo/upsertProfile/index.js +10 -5
- package/dist/destinations/klaviyo/upsertProfile/index.js.map +1 -1
- package/dist/destinations/launchdarkly-audiences/syncAudience/custom-audience-operations.d.ts +1 -1
- package/dist/destinations/linkedin-audiences/api/index.js +0 -1
- package/dist/destinations/linkedin-audiences/api/index.js.map +1 -1
- package/dist/destinations/linkedin-audiences/constants.d.ts +1 -1
- package/dist/destinations/linkedin-audiences/constants.js +1 -1
- package/dist/destinations/magellan-ai/addToCart/generated-types.d.ts +2 -0
- package/dist/destinations/magellan-ai/addToCart/index.js +2 -1
- package/dist/destinations/magellan-ai/addToCart/index.js.map +1 -1
- package/dist/destinations/magellan-ai/checkout/generated-types.d.ts +2 -0
- package/dist/destinations/magellan-ai/checkout/index.js +2 -1
- package/dist/destinations/magellan-ai/checkout/index.js.map +1 -1
- package/dist/destinations/magellan-ai/code/generated-types.d.ts +2 -0
- package/dist/destinations/magellan-ai/code/index.js +3 -1
- package/dist/destinations/magellan-ai/code/index.js.map +1 -1
- package/dist/destinations/magellan-ai/identify/generated-types.d.ts +2 -0
- package/dist/destinations/magellan-ai/identify/index.js +3 -1
- package/dist/destinations/magellan-ai/identify/index.js.map +1 -1
- package/dist/destinations/magellan-ai/install/generated-types.d.ts +2 -2
- package/dist/destinations/magellan-ai/install/index.js +4 -1
- package/dist/destinations/magellan-ai/install/index.js.map +1 -1
- package/dist/destinations/magellan-ai/lead/generated-types.d.ts +2 -0
- package/dist/destinations/magellan-ai/lead/index.js +2 -1
- package/dist/destinations/magellan-ai/lead/index.js.map +1 -1
- package/dist/destinations/magellan-ai/product/generated-types.d.ts +2 -0
- package/dist/destinations/magellan-ai/product/index.js +4 -1
- package/dist/destinations/magellan-ai/product/index.js.map +1 -1
- package/dist/destinations/magellan-ai/purchase/generated-types.d.ts +2 -0
- package/dist/destinations/magellan-ai/purchase/index.js +2 -1
- package/dist/destinations/magellan-ai/purchase/index.js.map +1 -1
- package/dist/destinations/magellan-ai/schema.d.ts +1 -0
- package/dist/destinations/magellan-ai/schema.js +24 -22
- package/dist/destinations/magellan-ai/schema.js.map +1 -1
- package/dist/destinations/magellan-ai/thirdPartyEvent/generated-types.d.ts +2 -2
- package/dist/destinations/magellan-ai/thirdPartyEvent/index.js +2 -1
- package/dist/destinations/magellan-ai/thirdPartyEvent/index.js.map +1 -1
- package/dist/destinations/magellan-ai/view/generated-types.d.ts +2 -0
- package/dist/destinations/magellan-ai/view/index.js +3 -1
- package/dist/destinations/magellan-ai/view/index.js.map +1 -1
- package/dist/destinations/mantle/identify/generated-types.d.ts +1 -0
- package/dist/destinations/mantle/identify/index.js +8 -0
- package/dist/destinations/mantle/identify/index.js.map +1 -1
- package/dist/destinations/mixpanel/common/utils.d.ts +15 -0
- package/dist/destinations/mixpanel/common/utils.js +28 -1
- package/dist/destinations/mixpanel/common/utils.js.map +1 -1
- package/dist/destinations/mixpanel/trackEvent/index.js +30 -2
- package/dist/destinations/mixpanel/trackEvent/index.js.map +1 -1
- package/dist/destinations/mixpanel/trackPurchase/index.js +28 -2
- package/dist/destinations/mixpanel/trackPurchase/index.js.map +1 -1
- package/dist/destinations/recombee/deleteBookmark/index.js +1 -1
- package/dist/destinations/recombee/deleteBookmark/index.js.map +1 -1
- package/dist/destinations/recombee/deleteCartAddition/index.js +1 -1
- package/dist/destinations/recombee/deleteCartAddition/index.js.map +1 -1
- package/dist/destinations/recombee/setViewPortion/index.js +1 -1
- package/dist/destinations/recombee/setViewPortion/index.js.map +1 -1
- package/dist/destinations/recombee/setViewPortionFromWatchTime/index.d.ts +1 -1
- package/dist/destinations/recombee/setViewPortionFromWatchTime/index.js +6 -2
- package/dist/destinations/recombee/setViewPortionFromWatchTime/index.js.map +1 -1
- package/dist/destinations/responsys/index.js +14 -5
- package/dist/destinations/responsys/index.js.map +1 -1
- package/dist/destinations/responsys/sendAudience/index.js +1 -1
- package/dist/destinations/responsys/sendAudienceAsPet/functions.d.ts +10 -0
- package/dist/destinations/responsys/sendAudienceAsPet/functions.js +152 -0
- package/dist/destinations/responsys/sendAudienceAsPet/functions.js.map +1 -0
- package/dist/destinations/responsys/sendAudienceAsPet/generated-types.d.ts +15 -0
- package/dist/destinations/responsys/sendAudienceAsPet/generated-types.js +3 -0
- package/dist/destinations/responsys/sendAudienceAsPet/generated-types.js.map +1 -0
- package/dist/destinations/responsys/sendAudienceAsPet/index.js +143 -0
- package/dist/destinations/responsys/sendAudienceAsPet/index.js.map +1 -0
- package/dist/destinations/responsys/sendCustomTraits/index.js +1 -1
- package/dist/destinations/responsys/{shared_properties.js → shared-properties.js} +1 -1
- package/dist/destinations/responsys/{shared_properties.js.map → shared-properties.js.map} +1 -1
- package/dist/destinations/responsys/types.d.ts +18 -9
- package/dist/destinations/responsys/upsertListMember/index.js +1 -1
- package/dist/destinations/responsys/utils.d.ts +5 -4
- package/dist/destinations/responsys/utils.js +14 -42
- package/dist/destinations/responsys/utils.js.map +1 -1
- package/dist/destinations/s3/fields.js +9 -0
- package/dist/destinations/s3/fields.js.map +1 -1
- package/dist/destinations/s3/functions.d.ts +2 -1
- package/dist/destinations/s3/functions.js +14 -3
- package/dist/destinations/s3/functions.js.map +1 -1
- package/dist/destinations/s3/syncToS3/generated-types.d.ts +1 -0
- package/dist/destinations/s3/syncToS3/index.js +4 -2
- package/dist/destinations/s3/syncToS3/index.js.map +1 -1
- package/dist/destinations/sendgrid/index.js +3 -1
- package/dist/destinations/sendgrid/index.js.map +1 -1
- package/dist/destinations/sendgrid/sendEmail/constants.d.ts +4 -0
- package/dist/destinations/sendgrid/sendEmail/constants.js +8 -0
- package/dist/destinations/sendgrid/sendEmail/constants.js.map +1 -0
- package/dist/destinations/sendgrid/sendEmail/fields.d.ts +2 -0
- package/dist/destinations/sendgrid/sendEmail/fields.js +396 -0
- package/dist/destinations/sendgrid/sendEmail/fields.js.map +1 -0
- package/dist/destinations/sendgrid/sendEmail/generated-types.d.ts +73 -0
- package/dist/destinations/sendgrid/sendEmail/generated-types.js +3 -0
- package/dist/destinations/sendgrid/sendEmail/generated-types.js.map +1 -0
- package/dist/destinations/sendgrid/sendEmail/index.d.ts +5 -0
- package/dist/destinations/sendgrid/sendEmail/index.js +14 -0
- package/dist/destinations/sendgrid/sendEmail/index.js.map +1 -0
- package/dist/destinations/sendgrid/sendEmail/types.d.ts +72 -0
- package/dist/destinations/sendgrid/sendEmail/types.js +3 -0
- package/dist/destinations/sendgrid/sendEmail/types.js.map +1 -0
- package/dist/destinations/sendgrid/sendEmail/utils.d.ts +3 -0
- package/dist/destinations/sendgrid/sendEmail/utils.js +86 -0
- package/dist/destinations/sendgrid/sendEmail/utils.js.map +1 -0
- package/dist/destinations/webhook-audiences/index.js +14 -2
- package/dist/destinations/webhook-audiences/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/destinations/first-party-dv360/addToList/generated-types.d.ts +0 -2
- package/dist/destinations/first-party-dv360/addToList/generated-types.js.map +0 -1
- package/dist/destinations/first-party-dv360/addToList/index.js +0 -11
- package/dist/destinations/first-party-dv360/addToList/index.js.map +0 -1
- /package/dist/destinations/first-party-dv360/{addToList → addToAudMobileDeviceId}/generated-types.js +0 -0
- /package/dist/destinations/{first-party-dv360/addToList → responsys/sendAudienceAsPet}/index.d.ts +0 -0
- /package/dist/destinations/responsys/{shared_properties.d.ts → shared-properties.d.ts} +0 -0
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getAudienceAction = exports.encodeString = exports.generateFile = exports.clean = exports.send = void 0;
|
|
3
|
+
exports.getAudienceAction = exports.encodeString = exports.generateFile = exports.clean = exports.send = exports.generateUUID = void 0;
|
|
4
4
|
const client_1 = require("./client");
|
|
5
5
|
const actions_core_1 = require("@segment/actions-core");
|
|
6
|
-
|
|
6
|
+
function generateUUID(length = 16) {
|
|
7
|
+
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
|
8
|
+
let result = '';
|
|
9
|
+
for (let i = 0; i < length; i++) {
|
|
10
|
+
const randomIndex = Math.floor(Math.random() * characters.length);
|
|
11
|
+
result += characters[randomIndex];
|
|
12
|
+
}
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
exports.generateUUID = generateUUID;
|
|
16
|
+
async function send(payloads, settings, rawMapping, syncId) {
|
|
7
17
|
const batchSize = payloads[0] && typeof payloads[0].batch_size === 'number' ? payloads[0].batch_size : 0;
|
|
8
18
|
const delimiter = payloads[0]?.delimiter;
|
|
9
19
|
const actionColName = payloads[0]?.audience_action_column_name;
|
|
@@ -24,8 +34,9 @@ async function send(payloads, settings, rawMapping) {
|
|
|
24
34
|
headers.push({ cleanName: clean(delimiter, batchColName), originalName: batchColName });
|
|
25
35
|
}
|
|
26
36
|
const fileContent = generateFile(payloads, headers, delimiter, actionColName, batchColName);
|
|
37
|
+
const filename = (payloads[0]?.filename_prefix || '') + 'new_' + syncId;
|
|
27
38
|
const s3Client = new client_1.Client(settings.s3_aws_region, settings.iam_role_arn, settings.iam_external_id);
|
|
28
|
-
await s3Client.uploadS3(settings, fileContent,
|
|
39
|
+
await s3Client.uploadS3(settings, fileContent, filename ?? '', payloads[0]?.s3_aws_folder_name ?? '', payloads[0]?.file_extension);
|
|
29
40
|
}
|
|
30
41
|
exports.send = send;
|
|
31
42
|
function clean(delimiter, str) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../src/destinations/s3/functions.ts"],"names":[],"mappings":";;;AAEA,qCAAiC;AAEjC,wDAAwD;
|
|
1
|
+
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../src/destinations/s3/functions.ts"],"names":[],"m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AG,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;aACnC;iBAAM;gBACL,YAAY,CAAC,GAAG,EAAE,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAA;aACxD;QACH,CAAC,CAAC,CAAA;QAEF,IAAI,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,SAAS,KAAK,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAA;IAC1F,CAAC,CAAC,CAAA;IACF,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACtB,CAAC;AA1BD,oCA0BC;AAED,SAAgB,YAAY,CAAC,GAAW;IACtC,OAAO,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAA;AAC/C,CAAC;AAFD,oCAEC;AAED,SAAgB,iBAAiB,CAAC,OAAgB;IAChD,IAAI,CAAC,OAAO,CAAC,eAAe,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE;QACxD,OAAO,SAAS,CAAA;KACjB;IAED,OAAQ,OAAO,EAAE,eAAuD,EAAE,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,SAAS,CAAA;AAClH,CAAC;AAND,8CAMC"}
|
|
@@ -10,12 +10,14 @@ const action = {
|
|
|
10
10
|
perform: async (_, data) => {
|
|
11
11
|
const { payload, settings } = data;
|
|
12
12
|
const rawMapping = data.rawMapping;
|
|
13
|
-
|
|
13
|
+
const syncId = payload.sync_id;
|
|
14
|
+
return functions_1.send([payload], settings, rawMapping, syncId || '');
|
|
14
15
|
},
|
|
15
16
|
performBatch: async (_, data) => {
|
|
16
17
|
const { payload, settings } = data;
|
|
18
|
+
const syncId = payload[0].sync_id;
|
|
17
19
|
const rawMapping = data.rawMapping;
|
|
18
|
-
return functions_1.send(payload, settings, rawMapping);
|
|
20
|
+
return functions_1.send(payload, settings, rawMapping, syncId || '');
|
|
19
21
|
}
|
|
20
22
|
};
|
|
21
23
|
exports.default = action;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/s3/syncToS3/index.ts"],"names":[],"mappings":";;AAGA,sCAAwC;AACxC,4CAAmC;AAGnC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,iCAAiC;IAC9C,mBAAmB,EAAE,qCAAqC;IAC1D,MAAM,EAAE,qBAAY;IACpB,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE;QACzB,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAA;QAClC,MAAM,UAAU,GAAgB,IAAwB,CAAC,UAAU,CAAA;QACnE,OAAO,gBAAI,CAAC,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/s3/syncToS3/index.ts"],"names":[],"mappings":";;AAGA,sCAAwC;AACxC,4CAAmC;AAGnC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,iCAAiC;IAC9C,mBAAmB,EAAE,qCAAqC;IAC1D,MAAM,EAAE,qBAAY;IACpB,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE;QACzB,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAA;QAClC,MAAM,UAAU,GAAgB,IAAwB,CAAC,UAAU,CAAA;QACnE,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,CAAA;QAC9B,OAAO,gBAAI,CAAC,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,IAAI,EAAE,CAAC,CAAA;IAC5D,CAAC;IAED,YAAY,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE;QAC9B,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAA;QAClC,MAAM,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAA;QACjC,MAAM,UAAU,GAAgB,IAAwB,CAAC,UAAU,CAAA;QACnE,OAAO,gBAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,IAAI,EAAE,CAAC,CAAA;IAC1D,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const updateUserProfile_1 = __importDefault(require("./updateUserProfile"));
|
|
7
|
+
const sendEmail_1 = __importDefault(require("./sendEmail"));
|
|
7
8
|
const destination = {
|
|
8
9
|
name: 'SendGrid Marketing Campaigns',
|
|
9
10
|
slug: 'actions-sendgrid',
|
|
@@ -32,7 +33,8 @@ const destination = {
|
|
|
32
33
|
};
|
|
33
34
|
},
|
|
34
35
|
actions: {
|
|
35
|
-
updateUserProfile: updateUserProfile_1.default
|
|
36
|
+
updateUserProfile: updateUserProfile_1.default,
|
|
37
|
+
sendEmail: sendEmail_1.default
|
|
36
38
|
}
|
|
37
39
|
};
|
|
38
40
|
exports.default = destination;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/sendgrid/index.ts"],"names":[],"mappings":";;;;;AAGA,4EAAmD;AAEnD,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,8BAA8B;IACpC,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,8DAA8D;IAE3E,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,cAAc,EAAE;gBACd,KAAK,EAAE,SAAS;gBAChB,IAAI,EAAE,UAAU;gBAChB,WAAW,EAAE,wCAAwC;gBACrD,QAAQ,EAAE,IAAI;aACf;SACF;QACD,kBAAkB,EAAE,CAAC,OAAO,EAAE,EAAE;YAI9B,OAAO,OAAO,CAAC,0CAA0C,CAAC,CAAA;QAC5D,CAAC;KACF;IAED,aAAa,CAAC,EAAE,QAAQ,EAAE;QACxB,OAAO;YACL,OAAO,EAAE;gBACP,aAAa,EAAE,UAAU,QAAQ,CAAC,cAAc,EAAE;gBAClD,MAAM,EAAE,kBAAkB;aAC3B;SACF,CAAA;IACH,CAAC;IAED,OAAO,EAAE;QACP,iBAAiB,EAAjB,2BAAiB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/sendgrid/index.ts"],"names":[],"mappings":";;;;;AAGA,4EAAmD;AAEnD,4DAAmC;AAEnC,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,8BAA8B;IACpC,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,8DAA8D;IAE3E,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,cAAc,EAAE;gBACd,KAAK,EAAE,SAAS;gBAChB,IAAI,EAAE,UAAU;gBAChB,WAAW,EAAE,wCAAwC;gBACrD,QAAQ,EAAE,IAAI;aACf;SACF;QACD,kBAAkB,EAAE,CAAC,OAAO,EAAE,EAAE;YAI9B,OAAO,OAAO,CAAC,0CAA0C,CAAC,CAAA;QAC5D,CAAC;KACF;IAED,aAAa,CAAC,EAAE,QAAQ,EAAE;QACxB,OAAO;YACL,OAAO,EAAE;gBACP,aAAa,EAAE,UAAU,QAAQ,CAAC,cAAc,EAAE;gBAClD,MAAM,EAAE,kBAAkB;aAC3B;SACF,CAAA;IACH,CAAC;IAED,OAAO,EAAE;QACP,iBAAiB,EAAjB,2BAAiB;QACjB,SAAS,EAAT,mBAAS;KACV;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MAX_IP_POOL_NAME_LENGTH = exports.MIN_IP_POOL_NAME_LENGTH = exports.MAX_CATEGORY_LENGTH = exports.RESERVED_HEADERS = void 0;
|
|
4
|
+
exports.RESERVED_HEADERS = ["x-sg-id", "x-sg-eid", "received", "dkim-signature", "Content-Type", "Content-Transfer-Encoding", "To", "From", "Subject", "Reply-To", "CC", "BCC"];
|
|
5
|
+
exports.MAX_CATEGORY_LENGTH = 255;
|
|
6
|
+
exports.MIN_IP_POOL_NAME_LENGTH = 2;
|
|
7
|
+
exports.MAX_IP_POOL_NAME_LENGTH = 64;
|
|
8
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/destinations/sendgrid/sendEmail/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG,CAAC,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,gBAAgB,EAAE,cAAc,EAAE,2BAA2B,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,CAAC,CAAA;AAEvK,QAAA,mBAAmB,GAAG,GAAG,CAAA;AAEzB,QAAA,uBAAuB,GAAG,CAAC,CAAA;AAE3B,QAAA,uBAAuB,GAAG,EAAE,CAAA"}
|
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fields = void 0;
|
|
4
|
+
exports.fields = {
|
|
5
|
+
from: {
|
|
6
|
+
label: 'From',
|
|
7
|
+
description: 'From details.',
|
|
8
|
+
type: 'object',
|
|
9
|
+
required: true,
|
|
10
|
+
additionalProperties: false,
|
|
11
|
+
defaultObjectUI: 'keyvalue',
|
|
12
|
+
properties: {
|
|
13
|
+
email: {
|
|
14
|
+
label: 'Email',
|
|
15
|
+
description: 'The email address of the sender.',
|
|
16
|
+
type: 'string',
|
|
17
|
+
required: true
|
|
18
|
+
},
|
|
19
|
+
name: {
|
|
20
|
+
label: 'Name',
|
|
21
|
+
description: 'From name of the sender, displayed to the recipient.',
|
|
22
|
+
type: 'string',
|
|
23
|
+
required: false
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
to: {
|
|
28
|
+
label: 'To',
|
|
29
|
+
description: 'Recipient details.',
|
|
30
|
+
type: 'object',
|
|
31
|
+
multiple: true,
|
|
32
|
+
required: true,
|
|
33
|
+
additionalProperties: false,
|
|
34
|
+
defaultObjectUI: 'keyvalue',
|
|
35
|
+
properties: {
|
|
36
|
+
email: {
|
|
37
|
+
label: 'Email',
|
|
38
|
+
description: 'The email address of the recipient.',
|
|
39
|
+
type: 'string',
|
|
40
|
+
required: true
|
|
41
|
+
},
|
|
42
|
+
name: {
|
|
43
|
+
label: 'Name',
|
|
44
|
+
description: 'The name of the recipient.',
|
|
45
|
+
type: 'string',
|
|
46
|
+
required: false
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
cc: {
|
|
51
|
+
label: 'CC',
|
|
52
|
+
description: 'CC recipient details',
|
|
53
|
+
type: 'object',
|
|
54
|
+
multiple: true,
|
|
55
|
+
required: false,
|
|
56
|
+
additionalProperties: false,
|
|
57
|
+
defaultObjectUI: 'keyvalue',
|
|
58
|
+
properties: {
|
|
59
|
+
email: {
|
|
60
|
+
label: 'Email',
|
|
61
|
+
description: 'The email address of the CC recipient.',
|
|
62
|
+
type: 'string',
|
|
63
|
+
required: true
|
|
64
|
+
},
|
|
65
|
+
name: {
|
|
66
|
+
label: 'Name',
|
|
67
|
+
description: 'The name of the CC recipient.',
|
|
68
|
+
type: 'string',
|
|
69
|
+
required: false
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
bcc: {
|
|
74
|
+
label: 'BCC',
|
|
75
|
+
description: 'BCC recipient details',
|
|
76
|
+
type: 'object',
|
|
77
|
+
multiple: true,
|
|
78
|
+
required: false,
|
|
79
|
+
additionalProperties: false,
|
|
80
|
+
defaultObjectUI: 'keyvalue',
|
|
81
|
+
properties: {
|
|
82
|
+
email: {
|
|
83
|
+
label: 'Email',
|
|
84
|
+
description: 'The email address of the BCC recipient.',
|
|
85
|
+
type: 'string',
|
|
86
|
+
required: true
|
|
87
|
+
},
|
|
88
|
+
name: {
|
|
89
|
+
label: 'Name',
|
|
90
|
+
description: 'The name of the BCC recipient.',
|
|
91
|
+
type: 'string',
|
|
92
|
+
required: false
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
subject: {
|
|
97
|
+
label: 'Subject',
|
|
98
|
+
description: 'The subject of the email.',
|
|
99
|
+
type: 'string',
|
|
100
|
+
required: true
|
|
101
|
+
},
|
|
102
|
+
headers: {
|
|
103
|
+
label: 'Headers',
|
|
104
|
+
description: 'Headers for the email.',
|
|
105
|
+
type: 'object',
|
|
106
|
+
required: false,
|
|
107
|
+
additionalProperties: true,
|
|
108
|
+
defaultObjectUI: 'keyvalue',
|
|
109
|
+
},
|
|
110
|
+
dynamic_template_data: {
|
|
111
|
+
label: 'Dynamic Template Data',
|
|
112
|
+
description: 'A collection property names that will be substituted by their corresponding property values in the subject, reply-to and content portions of a SendGrid Dynamic Template.',
|
|
113
|
+
type: 'object',
|
|
114
|
+
multiple: true,
|
|
115
|
+
required: false,
|
|
116
|
+
defaultObjectUI: 'keyvalue',
|
|
117
|
+
additionalProperties: true,
|
|
118
|
+
properties: {
|
|
119
|
+
key: {
|
|
120
|
+
label: 'Key',
|
|
121
|
+
description: 'The key of the dynamic template data.',
|
|
122
|
+
type: 'string',
|
|
123
|
+
required: true
|
|
124
|
+
},
|
|
125
|
+
value: {
|
|
126
|
+
label: 'Value',
|
|
127
|
+
description: 'The value of the dynamic template data.',
|
|
128
|
+
type: 'string',
|
|
129
|
+
required: true
|
|
130
|
+
},
|
|
131
|
+
required: {
|
|
132
|
+
label: 'Required',
|
|
133
|
+
description: 'If true, the email will not be sent if the Value field is empty, unless there is a default specified.',
|
|
134
|
+
type: 'boolean',
|
|
135
|
+
required: true,
|
|
136
|
+
default: false
|
|
137
|
+
},
|
|
138
|
+
default: {
|
|
139
|
+
label: 'Default value',
|
|
140
|
+
description: 'The default value to use if the value field is empty.',
|
|
141
|
+
type: 'string',
|
|
142
|
+
required: false
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
template_id: {
|
|
147
|
+
label: 'Template ID',
|
|
148
|
+
description: "The template ID to use for the email. This must be for a Dynamic Template and should start with a 'd-'",
|
|
149
|
+
type: 'string',
|
|
150
|
+
required: true
|
|
151
|
+
},
|
|
152
|
+
custom_args: {
|
|
153
|
+
label: 'Custom Args',
|
|
154
|
+
description: 'Custom arguments for the email.',
|
|
155
|
+
type: 'object',
|
|
156
|
+
required: false,
|
|
157
|
+
additionalProperties: true,
|
|
158
|
+
defaultObjectUI: 'keyvalue',
|
|
159
|
+
},
|
|
160
|
+
send_at: {
|
|
161
|
+
label: 'Send At',
|
|
162
|
+
description: 'The time to send the email. ISO 8601 format. E.g. 2024-09-23T12:00:00Z. A send cannot be scheduled more than 72 hours in advance.',
|
|
163
|
+
type: 'string',
|
|
164
|
+
format: 'date-time',
|
|
165
|
+
required: false,
|
|
166
|
+
},
|
|
167
|
+
reply_to: {
|
|
168
|
+
label: 'Reply To',
|
|
169
|
+
description: 'Reply to details.',
|
|
170
|
+
type: 'object',
|
|
171
|
+
required: true,
|
|
172
|
+
additionalProperties: false,
|
|
173
|
+
defaultObjectUI: 'keyvalue',
|
|
174
|
+
properties: {
|
|
175
|
+
reply_to_equals_from: {
|
|
176
|
+
label: 'Reply To Equals From',
|
|
177
|
+
description: 'Whether "reply to" settings are the same as "from"',
|
|
178
|
+
type: 'boolean',
|
|
179
|
+
required: true,
|
|
180
|
+
default: true
|
|
181
|
+
},
|
|
182
|
+
email: {
|
|
183
|
+
label: 'Email',
|
|
184
|
+
description: 'The email to reply to.',
|
|
185
|
+
type: 'string',
|
|
186
|
+
required: false
|
|
187
|
+
},
|
|
188
|
+
name: {
|
|
189
|
+
label: 'Name',
|
|
190
|
+
description: 'The name to reply to.',
|
|
191
|
+
type: 'string',
|
|
192
|
+
required: false
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
click_tracking: {
|
|
197
|
+
label: 'Click Tracking',
|
|
198
|
+
description: 'Click tracking settings for the email.',
|
|
199
|
+
type: 'object',
|
|
200
|
+
required: false,
|
|
201
|
+
additionalProperties: false,
|
|
202
|
+
defaultObjectUI: 'keyvalue',
|
|
203
|
+
properties: {
|
|
204
|
+
enable: {
|
|
205
|
+
label: 'Enabled',
|
|
206
|
+
description: 'Indicates if this setting is enabled',
|
|
207
|
+
type: 'boolean',
|
|
208
|
+
required: true,
|
|
209
|
+
default: true
|
|
210
|
+
},
|
|
211
|
+
enable_text: {
|
|
212
|
+
label: 'Enable Text',
|
|
213
|
+
description: 'Indicates if this setting should be included in the text/plain portion of your email.',
|
|
214
|
+
type: 'boolean',
|
|
215
|
+
required: false,
|
|
216
|
+
default: false
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
open_tracking: {
|
|
221
|
+
label: 'Open Tracking',
|
|
222
|
+
description: 'Allows you to track if the email was opened by including a single transparent pixel image in the body of the message content.',
|
|
223
|
+
type: 'object',
|
|
224
|
+
required: false,
|
|
225
|
+
additionalProperties: false,
|
|
226
|
+
defaultObjectUI: 'keyvalue',
|
|
227
|
+
properties: {
|
|
228
|
+
enable: {
|
|
229
|
+
label: 'Enabled',
|
|
230
|
+
description: 'Indicates if this setting is enabled',
|
|
231
|
+
type: 'boolean',
|
|
232
|
+
required: true,
|
|
233
|
+
default: true
|
|
234
|
+
},
|
|
235
|
+
substitution_tag: {
|
|
236
|
+
label: 'Substitution Tag',
|
|
237
|
+
description: 'Allows you to specify a substitution tag that you can insert in the body of your email at a location that you desire. This tag will be replaced by the open tracking pixel.',
|
|
238
|
+
type: 'string',
|
|
239
|
+
required: false
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
subscription_tracking: {
|
|
244
|
+
label: 'Subscription Tracking',
|
|
245
|
+
description: 'Allows you to insert a subscription management link at the bottom of the text and HTML bodies of your email.',
|
|
246
|
+
type: 'object',
|
|
247
|
+
required: false,
|
|
248
|
+
additionalProperties: false,
|
|
249
|
+
defaultObjectUI: 'keyvalue',
|
|
250
|
+
properties: {
|
|
251
|
+
enable: {
|
|
252
|
+
label: 'Enabled',
|
|
253
|
+
description: 'Indicates if this setting is enabled',
|
|
254
|
+
type: 'boolean',
|
|
255
|
+
required: true,
|
|
256
|
+
default: false
|
|
257
|
+
},
|
|
258
|
+
text: {
|
|
259
|
+
label: 'Text',
|
|
260
|
+
description: 'Text to be appended to the email with the subscription tracking link.',
|
|
261
|
+
type: 'string',
|
|
262
|
+
required: false
|
|
263
|
+
},
|
|
264
|
+
html: {
|
|
265
|
+
label: 'HTML',
|
|
266
|
+
description: 'HTML to be appended to the email with the subscription tracking link.',
|
|
267
|
+
type: 'string',
|
|
268
|
+
required: false
|
|
269
|
+
},
|
|
270
|
+
substitution_tag: {
|
|
271
|
+
label: 'Substitution Tag',
|
|
272
|
+
description: 'A tag that will be replaced with the unsubscribe URL. If this property is used, it will override both the text and html properties.',
|
|
273
|
+
type: 'string',
|
|
274
|
+
required: false
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
categories: {
|
|
279
|
+
label: 'Categories',
|
|
280
|
+
description: 'Categories for the email.',
|
|
281
|
+
type: 'object',
|
|
282
|
+
multiple: true,
|
|
283
|
+
required: false,
|
|
284
|
+
defaultObjectUI: 'keyvalue',
|
|
285
|
+
additionalProperties: false,
|
|
286
|
+
properties: {
|
|
287
|
+
category: {
|
|
288
|
+
label: 'Category name',
|
|
289
|
+
description: 'Category name.',
|
|
290
|
+
type: 'string',
|
|
291
|
+
required: true
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
googleAnalytics: {
|
|
296
|
+
label: 'Google Analytics',
|
|
297
|
+
description: 'Allows you to enable tracking provided by Google Analytics.',
|
|
298
|
+
type: 'object',
|
|
299
|
+
required: false,
|
|
300
|
+
defaultObjectUI: 'keyvalue',
|
|
301
|
+
additionalProperties: false,
|
|
302
|
+
properties: {
|
|
303
|
+
enable: {
|
|
304
|
+
label: 'Enabled',
|
|
305
|
+
description: 'Indicates if this setting is enabled',
|
|
306
|
+
type: 'boolean',
|
|
307
|
+
required: true,
|
|
308
|
+
default: false
|
|
309
|
+
},
|
|
310
|
+
utm_source: {
|
|
311
|
+
label: 'UTM Source',
|
|
312
|
+
description: 'Name of the referrer source. (e.g., Google, SomeDomain.com, or Marketing Email)',
|
|
313
|
+
type: 'string',
|
|
314
|
+
required: false
|
|
315
|
+
},
|
|
316
|
+
utm_medium: {
|
|
317
|
+
label: 'UTM Medium',
|
|
318
|
+
description: 'Name of the marketing medium. (e.g., Email)',
|
|
319
|
+
type: 'string',
|
|
320
|
+
required: false
|
|
321
|
+
},
|
|
322
|
+
utm_term: {
|
|
323
|
+
label: 'UTM Term',
|
|
324
|
+
description: 'Used to identify any paid keywords.',
|
|
325
|
+
type: 'string',
|
|
326
|
+
required: false
|
|
327
|
+
},
|
|
328
|
+
utm_content: {
|
|
329
|
+
label: 'UTM Content',
|
|
330
|
+
description: 'Used to differentiate your campaign from advertisements.',
|
|
331
|
+
type: 'string',
|
|
332
|
+
required: false
|
|
333
|
+
},
|
|
334
|
+
utm_campaign: {
|
|
335
|
+
label: 'UTM Campaign',
|
|
336
|
+
description: 'The name of the campaign.',
|
|
337
|
+
type: 'string',
|
|
338
|
+
required: false
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
ip_pool_name: {
|
|
343
|
+
label: 'IP Pool',
|
|
344
|
+
description: 'Send email with an ip pool.',
|
|
345
|
+
type: 'string',
|
|
346
|
+
required: false
|
|
347
|
+
},
|
|
348
|
+
ASM: {
|
|
349
|
+
label: 'Subscription Settings',
|
|
350
|
+
description: 'Subscription settings for the email.',
|
|
351
|
+
type: 'object',
|
|
352
|
+
required: false,
|
|
353
|
+
defaultObjectUI: 'keyvalue',
|
|
354
|
+
additionalProperties: false,
|
|
355
|
+
properties: {
|
|
356
|
+
groupId: {
|
|
357
|
+
label: 'Subscription Group ID',
|
|
358
|
+
description: 'Specify a Subscription Group ID to ensure emails are sent to only users who are subscribed to that group.',
|
|
359
|
+
type: 'integer',
|
|
360
|
+
required: false
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
mail_settings: {
|
|
365
|
+
label: 'Mail Settings',
|
|
366
|
+
description: 'A collection of different mail settings that you can use to specify how you would like this email to be handled.',
|
|
367
|
+
type: 'object',
|
|
368
|
+
required: false,
|
|
369
|
+
additionalProperties: false,
|
|
370
|
+
defaultObjectUI: 'keyvalue',
|
|
371
|
+
properties: {
|
|
372
|
+
bypass_list_management: {
|
|
373
|
+
label: 'Bypass List Management',
|
|
374
|
+
description: 'Allows you to bypass all unsubscribe groups and suppressions to ensure that the email is delivered to every single recipient.',
|
|
375
|
+
type: 'boolean',
|
|
376
|
+
required: false,
|
|
377
|
+
default: false
|
|
378
|
+
},
|
|
379
|
+
bypass_unsubscribe_management: {
|
|
380
|
+
label: 'Bypass Unsubscribe Management',
|
|
381
|
+
description: 'Allows you to bypass the global unsubscribe list to ensure that the email is delivered to recipients. This filter applies only to global unsubscribes and will not bypass group unsubscribes. This filter cannot be combined with the bypass_list_management.',
|
|
382
|
+
type: 'boolean',
|
|
383
|
+
required: false,
|
|
384
|
+
default: false
|
|
385
|
+
},
|
|
386
|
+
sandbox_mode: {
|
|
387
|
+
label: 'Sandbox Mode',
|
|
388
|
+
description: 'Sandbox Mode allows you to send a test email to ensure that your request body is valid and formatted correctly.',
|
|
389
|
+
type: 'boolean',
|
|
390
|
+
required: false,
|
|
391
|
+
default: false
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
};
|
|
396
|
+
//# sourceMappingURL=fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../src/destinations/sendgrid/sendEmail/fields.ts"],"names":[],"mappings":";;;AAEa,QAAA,MAAM,GAA+B;IAC9C,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM;QACb,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,oBAAoB,EAAE,KAAK;QAC3B,eAAe,EAAE,UAAU;QAC3B,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,KAAK,EAAE,OAAO;gBACd,WAAW,EAAE,kCAAkC;gBAC/C,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,IAAI,EAAE;gBACJ,KAAK,EAAE,MAAM;gBACb,WAAW,EAAE,sDAAsD;gBACnE,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,KAAK;aAChB;SACF;KACF;IACD,EAAE,EAAE;QACF,KAAK,EAAE,IAAI;QACX,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,IAAI;QACd,oBAAoB,EAAE,KAAK;QAC3B,eAAe,EAAE,UAAU;QAC3B,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,KAAK,EAAE,OAAO;gBACd,WAAW,EAAE,qCAAqC;gBAClD,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,IAAI,EAAE;gBACJ,KAAK,EAAE,MAAM;gBACb,WAAW,EAAE,4BAA4B;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
|
7
|
+
email: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
}[];
|
|
10
|
+
cc?: {
|
|
11
|
+
email: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
}[];
|
|
14
|
+
bcc?: {
|
|
15
|
+
email: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
}[];
|
|
18
|
+
subject: string;
|
|
19
|
+
headers?: {
|
|
20
|
+
[k: string]: unknown;
|
|
21
|
+
};
|
|
22
|
+
dynamic_template_data?: {
|
|
23
|
+
key: string;
|
|
24
|
+
value: string;
|
|
25
|
+
required: boolean;
|
|
26
|
+
default?: string;
|
|
27
|
+
[k: string]: unknown;
|
|
28
|
+
}[];
|
|
29
|
+
template_id: string;
|
|
30
|
+
custom_args?: {
|
|
31
|
+
[k: string]: unknown;
|
|
32
|
+
};
|
|
33
|
+
send_at?: string;
|
|
34
|
+
reply_to: {
|
|
35
|
+
reply_to_equals_from: boolean;
|
|
36
|
+
email?: string;
|
|
37
|
+
name?: string;
|
|
38
|
+
};
|
|
39
|
+
click_tracking?: {
|
|
40
|
+
enable: boolean;
|
|
41
|
+
enable_text?: boolean;
|
|
42
|
+
};
|
|
43
|
+
open_tracking?: {
|
|
44
|
+
enable: boolean;
|
|
45
|
+
substitution_tag?: string;
|
|
46
|
+
};
|
|
47
|
+
subscription_tracking?: {
|
|
48
|
+
enable: boolean;
|
|
49
|
+
text?: string;
|
|
50
|
+
html?: string;
|
|
51
|
+
substitution_tag?: string;
|
|
52
|
+
};
|
|
53
|
+
categories?: {
|
|
54
|
+
category: string;
|
|
55
|
+
}[];
|
|
56
|
+
googleAnalytics?: {
|
|
57
|
+
enable: boolean;
|
|
58
|
+
utm_source?: string;
|
|
59
|
+
utm_medium?: string;
|
|
60
|
+
utm_term?: string;
|
|
61
|
+
utm_content?: string;
|
|
62
|
+
utm_campaign?: string;
|
|
63
|
+
};
|
|
64
|
+
ip_pool_name?: string;
|
|
65
|
+
ASM?: {
|
|
66
|
+
groupId?: number;
|
|
67
|
+
};
|
|
68
|
+
mail_settings?: {
|
|
69
|
+
bypass_list_management?: boolean;
|
|
70
|
+
bypass_unsubscribe_management?: boolean;
|
|
71
|
+
sandbox_mode?: boolean;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/sendgrid/sendEmail/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const utils_1 = require("./utils");
|
|
4
|
+
const fields_1 = require("./fields");
|
|
5
|
+
const action = {
|
|
6
|
+
title: 'Send email with Dynamic Template',
|
|
7
|
+
description: 'Send email to recipient(s) using a Dynamic Template in Sendgrid',
|
|
8
|
+
fields: fields_1.fields,
|
|
9
|
+
perform: async (request, { payload }) => {
|
|
10
|
+
return await utils_1.send(request, payload);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
exports.default = action;
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/sendgrid/sendEmail/index.ts"],"names":[],"mappings":";;AAGA,mCAA8B;AAC9B,qCAAiC;AAEjC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,kCAAkC;IACzC,WAAW,EAAE,iEAAiE;IAC9E,MAAM,EAAN,eAAM;IACN,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QACtC,OAAO,MAAM,YAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;IACrC,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|