@segment/action-destinations 3.278.1-channels-1094.14 → 3.279.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/amplitude/logPurchase/index.js +16 -1
- package/dist/destinations/amplitude/logPurchase/index.js.map +1 -1
- package/dist/destinations/courier/audienceToList/generated-types.d.ts +11 -0
- package/dist/destinations/{engage-messaging-sendgrid/sendEmail.types.js → courier/audienceToList/generated-types.js} +1 -1
- package/dist/destinations/courier/audienceToList/generated-types.js.map +1 -0
- package/dist/destinations/courier/audienceToList/index.d.ts +9 -0
- package/dist/destinations/courier/audienceToList/index.js +107 -0
- package/dist/destinations/courier/audienceToList/index.js.map +1 -0
- package/dist/destinations/courier/index.d.ts +1 -0
- package/dist/destinations/courier/index.js +19 -1
- package/dist/destinations/courier/index.js.map +1 -1
- package/dist/destinations/courier/postToCourier/generated-types.d.ts +1 -0
- package/dist/destinations/courier/postToCourier/index.js +14 -6
- package/dist/destinations/courier/postToCourier/index.js.map +1 -1
- package/dist/destinations/engage-messaging-sendgrid/index.d.ts +4 -3
- package/dist/destinations/engage-messaging-sendgrid/index.js +68 -16
- package/dist/destinations/engage-messaging-sendgrid/index.js.map +1 -1
- package/dist/destinations/{engage/utils → engage-messaging-sendgrid/previewApiLookup}/apiLookups.d.ts +5 -5
- package/dist/destinations/{engage/utils → engage-messaging-sendgrid/previewApiLookup}/apiLookups.js +9 -9
- package/dist/destinations/engage-messaging-sendgrid/previewApiLookup/apiLookups.js.map +1 -0
- package/dist/destinations/{engage-messaging-twilio/sendSms.types.js → engage-messaging-sendgrid/previewApiLookup/generated-types.js} +1 -1
- package/dist/destinations/engage-messaging-sendgrid/previewApiLookup/generated-types.js.map +1 -0
- package/dist/destinations/{engage/twilio/sendMobilePush/actionDefinition.d.ts → engage-messaging-sendgrid/previewApiLookup/index.d.ts} +1 -0
- package/dist/destinations/{engage/sendgrid/previewApiLookup/actionDefinition.js → engage-messaging-sendgrid/previewApiLookup/index.js} +3 -2
- package/dist/destinations/engage-messaging-sendgrid/previewApiLookup/index.js.map +1 -0
- package/dist/destinations/{engage/sendgrid → engage-messaging-sendgrid}/sendEmail/SendEmailPerformer.d.ts +2 -3
- package/dist/destinations/{engage/sendgrid → engage-messaging-sendgrid}/sendEmail/SendEmailPerformer.js +11 -11
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/SendEmailPerformer.js.map +1 -0
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/UnlayerResponse.js.map +1 -0
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/generated-types.js +3 -0
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/generated-types.js.map +1 -0
- package/dist/destinations/{engage/sendgrid/sendEmail/actionDefinition.d.ts → engage-messaging-sendgrid/sendEmail/index.d.ts} +1 -0
- package/dist/destinations/{engage/sendgrid/sendEmail/actionDefinition.js → engage-messaging-sendgrid/sendEmail/index.js} +3 -2
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js.map +1 -0
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/insertEmailPreviewText.js.map +1 -0
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/isRestrictedDomain.js.map +1 -0
- package/dist/destinations/engage-messaging-twilio/index.d.ts +4 -3
- package/dist/destinations/engage-messaging-twilio/index.js +169 -15
- package/dist/destinations/engage-messaging-twilio/index.js.map +1 -1
- package/dist/destinations/{engage/twilio → engage-messaging-twilio}/sendMobilePush/PushSender.d.ts +1 -1
- package/dist/destinations/{engage/twilio → engage-messaging-twilio}/sendMobilePush/PushSender.js +2 -2
- package/dist/destinations/engage-messaging-twilio/sendMobilePush/PushSender.js.map +1 -0
- package/dist/destinations/engage-messaging-twilio/sendMobilePush/generated-types.js +3 -0
- package/dist/destinations/engage-messaging-twilio/sendMobilePush/generated-types.js.map +1 -0
- package/dist/destinations/{engage/twilio/sendWhatsApp/actionDefinition.d.ts → engage-messaging-twilio/sendMobilePush/index.d.ts} +1 -0
- package/dist/destinations/{engage/twilio/sendMobilePush/actionDefinition.js → engage-messaging-twilio/sendMobilePush/index.js} +2 -1
- package/dist/destinations/engage-messaging-twilio/sendMobilePush/index.js.map +1 -0
- package/dist/destinations/{engage/twilio → engage-messaging-twilio}/sendSms/SmsMessageSender.d.ts +1 -1
- package/dist/destinations/{engage/twilio → engage-messaging-twilio}/sendSms/SmsMessageSender.js +2 -2
- package/dist/destinations/engage-messaging-twilio/sendSms/SmsMessageSender.js.map +1 -0
- package/dist/destinations/engage-messaging-twilio/sendSms/generated-types.js +3 -0
- package/dist/destinations/engage-messaging-twilio/sendSms/generated-types.js.map +1 -0
- package/dist/destinations/{engage/twilio/sendSms/actionDefinition.d.ts → engage-messaging-twilio/sendSms/index.d.ts} +1 -0
- package/dist/destinations/{engage/twilio/sendSms/actionDefinition.js → engage-messaging-twilio/sendSms/index.js} +2 -1
- package/dist/destinations/engage-messaging-twilio/sendSms/index.js.map +1 -0
- package/dist/destinations/{engage/twilio → engage-messaging-twilio}/sendWhatsApp/WhatsAppMessageSender.js +4 -4
- package/dist/destinations/engage-messaging-twilio/sendWhatsApp/WhatsAppMessageSender.js.map +1 -0
- package/dist/destinations/engage-messaging-twilio/sendWhatsApp/generated-types.js +3 -0
- package/dist/destinations/engage-messaging-twilio/sendWhatsApp/generated-types.js.map +1 -0
- package/dist/destinations/engage-messaging-twilio/sendWhatsApp/index.d.ts +5 -0
- package/dist/destinations/{engage/twilio/sendWhatsApp/actionDefinition.js → engage-messaging-twilio/sendWhatsApp/index.js} +2 -1
- package/dist/destinations/engage-messaging-twilio/sendWhatsApp/index.js.map +1 -0
- package/dist/destinations/{engage/twilio → engage-messaging-twilio}/utils/PhoneMessageSender.d.ts +1 -1
- package/dist/destinations/{engage/twilio → engage-messaging-twilio}/utils/PhoneMessageSender.js +2 -2
- package/dist/destinations/engage-messaging-twilio/utils/PhoneMessageSender.js.map +1 -0
- package/dist/destinations/{engage/twilio → engage-messaging-twilio}/utils/TwilioMessageSender.d.ts +1 -1
- package/dist/destinations/{engage/twilio → engage-messaging-twilio}/utils/TwilioMessageSender.js +6 -6
- package/dist/destinations/engage-messaging-twilio/utils/TwilioMessageSender.js.map +1 -0
- package/dist/destinations/engage-messaging-twilio/utils/index.js.map +1 -0
- package/dist/destinations/engage-messaging-twilio/utils/types.js.map +1 -0
- package/dist/destinations/hubspot/sendCustomBehavioralEvent/index.js +1 -1
- package/dist/destinations/hubspot/sendCustomBehavioralEvent/index.js.map +1 -1
- package/dist/destinations/klaviyo/functions.d.ts +15 -0
- package/dist/destinations/klaviyo/functions.js +53 -1
- package/dist/destinations/klaviyo/functions.js.map +1 -1
- package/dist/destinations/klaviyo/upsertProfile/generated-types.d.ts +12 -0
- package/dist/destinations/klaviyo/upsertProfile/index.js +73 -3
- package/dist/destinations/klaviyo/upsertProfile/index.js.map +1 -1
- package/dist/destinations/loops/sendEvent/generated-types.d.ts +3 -0
- package/dist/destinations/loops/sendEvent/index.js +9 -1
- package/dist/destinations/loops/sendEvent/index.js.map +1 -1
- package/dist/destinations/taboola-actions/index.js +8 -10
- package/dist/destinations/taboola-actions/index.js.map +1 -1
- package/dist/destinations/taboola-actions/syncAudience/client.d.ts +8 -3
- package/dist/destinations/taboola-actions/syncAudience/client.js +21 -1
- package/dist/destinations/taboola-actions/syncAudience/client.js.map +1 -1
- package/dist/destinations/taboola-actions/syncAudience/index.js +1 -13
- package/dist/destinations/taboola-actions/syncAudience/index.js.map +1 -1
- package/dist/destinations/tiktok-conversions/common_fields.js +86 -1
- package/dist/destinations/tiktok-conversions/common_fields.js.map +1 -1
- package/dist/destinations/tiktok-conversions/formatter.d.ts +2 -0
- package/dist/destinations/tiktok-conversions/formatter.js +16 -1
- package/dist/destinations/tiktok-conversions/formatter.js.map +1 -1
- package/dist/destinations/tiktok-conversions/reportWebEvent/generated-types.d.ts +8 -0
- package/dist/destinations/tiktok-conversions/utils.js +7 -1
- package/dist/destinations/tiktok-conversions/utils.js.map +1 -1
- package/package.json +4 -4
- package/dist/destinations/engage/sendgrid/destinationDefinition.d.ts +0 -3
- package/dist/destinations/engage/sendgrid/destinationDefinition.js +0 -70
- package/dist/destinations/engage/sendgrid/destinationDefinition.js.map +0 -1
- package/dist/destinations/engage/sendgrid/generated-types.d.ts +0 -1
- package/dist/destinations/engage/sendgrid/generated-types.js +0 -14
- package/dist/destinations/engage/sendgrid/generated-types.js.map +0 -1
- package/dist/destinations/engage/sendgrid/index.d.ts +0 -2
- package/dist/destinations/engage/sendgrid/index.js +0 -5
- package/dist/destinations/engage/sendgrid/index.js.map +0 -1
- package/dist/destinations/engage/sendgrid/previewApiLookup/actionDefinition.d.ts +0 -4
- package/dist/destinations/engage/sendgrid/previewApiLookup/actionDefinition.js.map +0 -1
- package/dist/destinations/engage/sendgrid/previewApiLookup/generated-types.d.ts +0 -1
- package/dist/destinations/engage/sendgrid/previewApiLookup/generated-types.js +0 -14
- package/dist/destinations/engage/sendgrid/previewApiLookup/generated-types.js.map +0 -1
- package/dist/destinations/engage/sendgrid/previewApiLookup/index.d.ts +0 -1
- package/dist/destinations/engage/sendgrid/previewApiLookup/index.js +0 -14
- package/dist/destinations/engage/sendgrid/previewApiLookup/index.js.map +0 -1
- package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js.map +0 -1
- package/dist/destinations/engage/sendgrid/sendEmail/UnlayerResponse.js.map +0 -1
- package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.js.map +0 -1
- package/dist/destinations/engage/sendgrid/sendEmail/generated-types.d.ts +0 -1
- package/dist/destinations/engage/sendgrid/sendEmail/generated-types.js +0 -14
- package/dist/destinations/engage/sendgrid/sendEmail/generated-types.js.map +0 -1
- package/dist/destinations/engage/sendgrid/sendEmail/index.d.ts +0 -1
- package/dist/destinations/engage/sendgrid/sendEmail/index.js +0 -14
- package/dist/destinations/engage/sendgrid/sendEmail/index.js.map +0 -1
- package/dist/destinations/engage/sendgrid/sendEmail/insertEmailPreviewText.js.map +0 -1
- package/dist/destinations/engage/sendgrid/sendEmail/isRestrictedDomain.js.map +0 -1
- package/dist/destinations/engage/twilio/destinationDefinition.d.ts +0 -3
- package/dist/destinations/engage/twilio/destinationDefinition.js +0 -172
- package/dist/destinations/engage/twilio/destinationDefinition.js.map +0 -1
- package/dist/destinations/engage/twilio/generated-types.d.ts +0 -1
- package/dist/destinations/engage/twilio/generated-types.js +0 -14
- package/dist/destinations/engage/twilio/generated-types.js.map +0 -1
- package/dist/destinations/engage/twilio/index.d.ts +0 -2
- package/dist/destinations/engage/twilio/index.js +0 -5
- package/dist/destinations/engage/twilio/index.js.map +0 -1
- package/dist/destinations/engage/twilio/sendMobilePush/PushSender.js.map +0 -1
- package/dist/destinations/engage/twilio/sendMobilePush/actionDefinition.js.map +0 -1
- package/dist/destinations/engage/twilio/sendMobilePush/generated-types.d.ts +0 -1
- package/dist/destinations/engage/twilio/sendMobilePush/generated-types.js +0 -14
- package/dist/destinations/engage/twilio/sendMobilePush/generated-types.js.map +0 -1
- package/dist/destinations/engage/twilio/sendMobilePush/index.d.ts +0 -1
- package/dist/destinations/engage/twilio/sendMobilePush/index.js +0 -14
- package/dist/destinations/engage/twilio/sendMobilePush/index.js.map +0 -1
- package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.js.map +0 -1
- package/dist/destinations/engage/twilio/sendSms/actionDefinition.js.map +0 -1
- package/dist/destinations/engage/twilio/sendSms/generated-types.d.ts +0 -1
- package/dist/destinations/engage/twilio/sendSms/generated-types.js +0 -14
- package/dist/destinations/engage/twilio/sendSms/generated-types.js.map +0 -1
- package/dist/destinations/engage/twilio/sendSms/index.d.ts +0 -1
- package/dist/destinations/engage/twilio/sendSms/index.js +0 -14
- package/dist/destinations/engage/twilio/sendSms/index.js.map +0 -1
- package/dist/destinations/engage/twilio/sendWhatsApp/WhatsAppMessageSender.js.map +0 -1
- package/dist/destinations/engage/twilio/sendWhatsApp/actionDefinition.js.map +0 -1
- package/dist/destinations/engage/twilio/sendWhatsApp/generated-types.d.ts +0 -1
- package/dist/destinations/engage/twilio/sendWhatsApp/generated-types.js +0 -14
- package/dist/destinations/engage/twilio/sendWhatsApp/generated-types.js.map +0 -1
- package/dist/destinations/engage/twilio/sendWhatsApp/index.d.ts +0 -1
- package/dist/destinations/engage/twilio/sendWhatsApp/index.js +0 -14
- package/dist/destinations/engage/twilio/sendWhatsApp/index.js.map +0 -1
- package/dist/destinations/engage/twilio/utils/PhoneMessageSender.js.map +0 -1
- package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js.map +0 -1
- package/dist/destinations/engage/twilio/utils/index.js.map +0 -1
- package/dist/destinations/engage/twilio/utils/types.js.map +0 -1
- package/dist/destinations/engage/utils/AggregateError.d.ts +0 -14
- package/dist/destinations/engage/utils/AggregateError.js +0 -26
- package/dist/destinations/engage/utils/AggregateError.js.map +0 -1
- package/dist/destinations/engage/utils/EngageActionPerformer.d.ts +0 -42
- package/dist/destinations/engage/utils/EngageActionPerformer.js +0 -148
- package/dist/destinations/engage/utils/EngageActionPerformer.js.map +0 -1
- package/dist/destinations/engage/utils/EngageLogger.d.ts +0 -18
- package/dist/destinations/engage/utils/EngageLogger.js +0 -52
- package/dist/destinations/engage/utils/EngageLogger.js.map +0 -1
- package/dist/destinations/engage/utils/EngageStats.d.ts +0 -18
- package/dist/destinations/engage/utils/EngageStats.js +0 -95
- package/dist/destinations/engage/utils/EngageStats.js.map +0 -1
- package/dist/destinations/engage/utils/IntegrationErrorWrapper.d.ts +0 -12
- package/dist/destinations/engage/utils/IntegrationErrorWrapper.js +0 -31
- package/dist/destinations/engage/utils/IntegrationErrorWrapper.js.map +0 -1
- package/dist/destinations/engage/utils/MessageSendPerformer.d.ts +0 -68
- package/dist/destinations/engage/utils/MessageSendPerformer.js +0 -274
- package/dist/destinations/engage/utils/MessageSendPerformer.js.map +0 -1
- package/dist/destinations/engage/utils/Profile.d.ts +0 -6
- package/dist/destinations/engage/utils/Profile.js +0 -3
- package/dist/destinations/engage/utils/Profile.js.map +0 -1
- package/dist/destinations/engage/utils/ResponseError.d.ts +0 -25
- package/dist/destinations/engage/utils/ResponseError.js +0 -22
- package/dist/destinations/engage/utils/ResponseError.js.map +0 -1
- package/dist/destinations/engage/utils/apiLookups.js.map +0 -1
- package/dist/destinations/engage/utils/getProfileApiEndpoint.d.ts +0 -2
- package/dist/destinations/engage/utils/getProfileApiEndpoint.js +0 -10
- package/dist/destinations/engage/utils/getProfileApiEndpoint.js.map +0 -1
- package/dist/destinations/engage/utils/index.d.ts +0 -9
- package/dist/destinations/engage/utils/index.js +0 -22
- package/dist/destinations/engage/utils/index.js.map +0 -1
- package/dist/destinations/engage/utils/isDestinationActionService.d.ts +0 -1
- package/dist/destinations/engage/utils/isDestinationActionService.js +0 -8
- package/dist/destinations/engage/utils/isDestinationActionService.js.map +0 -1
- package/dist/destinations/engage/utils/isRetryableError.d.ts +0 -2
- package/dist/destinations/engage/utils/isRetryableError.js +0 -33
- package/dist/destinations/engage/utils/isRetryableError.js.map +0 -1
- package/dist/destinations/engage/utils/operationTracking/GenericMethodDecorator.d.ts +0 -1
- package/dist/destinations/engage/utils/operationTracking/GenericMethodDecorator.js +0 -3
- package/dist/destinations/engage/utils/operationTracking/GenericMethodDecorator.js.map +0 -1
- package/dist/destinations/engage/utils/operationTracking/OperationDecorator.d.ts +0 -46
- package/dist/destinations/engage/utils/operationTracking/OperationDecorator.js +0 -46
- package/dist/destinations/engage/utils/operationTracking/OperationDecorator.js.map +0 -1
- package/dist/destinations/engage/utils/operationTracking/OperationDuration.d.ts +0 -12
- package/dist/destinations/engage/utils/operationTracking/OperationDuration.js +0 -23
- package/dist/destinations/engage/utils/operationTracking/OperationDuration.js.map +0 -1
- package/dist/destinations/engage/utils/operationTracking/OperationErrorHandler.d.ts +0 -12
- package/dist/destinations/engage/utils/operationTracking/OperationErrorHandler.js +0 -35
- package/dist/destinations/engage/utils/operationTracking/OperationErrorHandler.js.map +0 -1
- package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.d.ts +0 -14
- package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.js +0 -31
- package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.js.map +0 -1
- package/dist/destinations/engage/utils/operationTracking/OperationLogger.d.ts +0 -31
- package/dist/destinations/engage/utils/operationTracking/OperationLogger.js +0 -104
- package/dist/destinations/engage/utils/operationTracking/OperationLogger.js.map +0 -1
- package/dist/destinations/engage/utils/operationTracking/OperationStats.d.ts +0 -39
- package/dist/destinations/engage/utils/operationTracking/OperationStats.js +0 -130
- package/dist/destinations/engage/utils/operationTracking/OperationStats.js.map +0 -1
- package/dist/destinations/engage/utils/operationTracking/OperationTracker.test.d.ts +0 -1
- package/dist/destinations/engage/utils/operationTracking/OperationTracker.test.js +0 -377
- package/dist/destinations/engage/utils/operationTracking/OperationTracker.test.js.map +0 -1
- package/dist/destinations/engage/utils/operationTracking/OperationTree.d.ts +0 -23
- package/dist/destinations/engage/utils/operationTracking/OperationTree.js +0 -49
- package/dist/destinations/engage/utils/operationTracking/OperationTree.js.map +0 -1
- package/dist/destinations/engage/utils/operationTracking/TrackedError.d.ts +0 -6
- package/dist/destinations/engage/utils/operationTracking/TrackedError.js +0 -3
- package/dist/destinations/engage/utils/operationTracking/TrackedError.js.map +0 -1
- package/dist/destinations/engage/utils/operationTracking/index.d.ts +0 -10
- package/dist/destinations/engage/utils/operationTracking/index.js +0 -23
- package/dist/destinations/engage/utils/operationTracking/index.js.map +0 -1
- package/dist/destinations/engage/utils/operationTracking/wrapTryCatchFinallyPromisable.d.ts +0 -21
- package/dist/destinations/engage/utils/operationTracking/wrapTryCatchFinallyPromisable.js +0 -99
- package/dist/destinations/engage/utils/operationTracking/wrapTryCatchFinallyPromisable.js.map +0 -1
- package/dist/destinations/engage/utils/testUtils.d.ts +0 -6
- package/dist/destinations/engage/utils/testUtils.js +0 -26
- package/dist/destinations/engage/utils/testUtils.js.map +0 -1
- package/dist/destinations/engage/utils/track.d.ts +0 -52
- package/dist/destinations/engage/utils/track.js +0 -9
- package/dist/destinations/engage/utils/track.js.map +0 -1
- package/dist/destinations/engage-messaging-sendgrid/previewApiLookup.types.js +0 -3
- package/dist/destinations/engage-messaging-sendgrid/previewApiLookup.types.js.map +0 -1
- package/dist/destinations/engage-messaging-sendgrid/sendEmail.types.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/sendMobilePush.types.js +0 -3
- package/dist/destinations/engage-messaging-twilio/sendMobilePush.types.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/sendSms.types.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/sendWhatsApp.types.js +0 -3
- package/dist/destinations/engage-messaging-twilio/sendWhatsApp.types.js.map +0 -1
- /package/dist/destinations/engage-messaging-sendgrid/{previewApiLookup.types.d.ts → previewApiLookup/generated-types.d.ts} +0 -0
- /package/dist/destinations/{engage/sendgrid → engage-messaging-sendgrid}/sendEmail/UnlayerResponse.d.ts +0 -0
- /package/dist/destinations/{engage/sendgrid → engage-messaging-sendgrid}/sendEmail/UnlayerResponse.js +0 -0
- /package/dist/destinations/engage-messaging-sendgrid/{sendEmail.types.d.ts → sendEmail/generated-types.d.ts} +0 -0
- /package/dist/destinations/{engage/sendgrid → engage-messaging-sendgrid}/sendEmail/insertEmailPreviewText.d.ts +0 -0
- /package/dist/destinations/{engage/sendgrid → engage-messaging-sendgrid}/sendEmail/insertEmailPreviewText.js +0 -0
- /package/dist/destinations/{engage/sendgrid → engage-messaging-sendgrid}/sendEmail/isRestrictedDomain.d.ts +0 -0
- /package/dist/destinations/{engage/sendgrid → engage-messaging-sendgrid}/sendEmail/isRestrictedDomain.js +0 -0
- /package/dist/destinations/engage-messaging-twilio/{sendMobilePush.types.d.ts → sendMobilePush/generated-types.d.ts} +0 -0
- /package/dist/destinations/engage-messaging-twilio/{sendSms.types.d.ts → sendSms/generated-types.d.ts} +0 -0
- /package/dist/destinations/{engage/twilio → engage-messaging-twilio}/sendWhatsApp/WhatsAppMessageSender.d.ts +0 -0
- /package/dist/destinations/engage-messaging-twilio/{sendWhatsApp.types.d.ts → sendWhatsApp/generated-types.d.ts} +0 -0
- /package/dist/destinations/{engage/twilio → engage-messaging-twilio}/utils/index.d.ts +0 -0
- /package/dist/destinations/{engage/twilio → engage-messaging-twilio}/utils/index.js +0 -0
- /package/dist/destinations/{engage/twilio → engage-messaging-twilio}/utils/types.d.ts +0 -0
- /package/dist/destinations/{engage/twilio → engage-messaging-twilio}/utils/types.js +0 -0
|
@@ -62,7 +62,22 @@ const action = {
|
|
|
62
62
|
revenue: {
|
|
63
63
|
label: 'Revenue',
|
|
64
64
|
type: 'number',
|
|
65
|
-
description: 'Revenue = price * quantity. If you send all 3 fields of price, quantity, and revenue, then (price * quantity) will be used as the revenue value. You can use negative values to indicate refunds.'
|
|
65
|
+
description: 'Revenue = price * quantity. If you send all 3 fields of price, quantity, and revenue, then (price * quantity) will be used as the revenue value. You can use negative values to indicate refunds.',
|
|
66
|
+
depends_on: {
|
|
67
|
+
match: 'any',
|
|
68
|
+
conditions: [
|
|
69
|
+
{
|
|
70
|
+
fieldKey: 'price',
|
|
71
|
+
operator: 'is',
|
|
72
|
+
value: ''
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
fieldKey: 'quantity',
|
|
76
|
+
operator: 'is',
|
|
77
|
+
value: ''
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
}
|
|
66
81
|
},
|
|
67
82
|
productId: {
|
|
68
83
|
label: 'Product ID',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/amplitude/logPurchase/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA6D;AAC7D,+DAAsC;AACtC,kDAA6C;AAI7C,gCAA6C;AAC7C,0CAAqD;AACrD,oEAA8D;AAC9D,8CAAwD;AACxD,8DAA2D;AAC3D,4DAAsD;AACtD,8CAA6C;AAW7C,MAAM,WAAW,GAAG,CAAC,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,a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AAC,CAAC,GAAG,UAAU,CAAC,SAAS,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;gBAC5F,OAAO,EAAE,SAAS;aACnB,CAAC,CAAA;SACH;QAED,MAAM,QAAQ,GAAG,wCAAmB,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAA;QAEzG,OAAO,OAAO,CAAC,QAAQ,EAAE;YACvB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,OAAO,EAAE,QAAQ,CAAC,MAAM;gBACxB,MAAM;gBACN,OAAO;aACR;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
segment_audience_id: string;
|
|
3
|
+
segment_audience_key: string;
|
|
4
|
+
segment_computation_action: string;
|
|
5
|
+
segment_user_id?: string;
|
|
6
|
+
segment_anonymous_id?: string;
|
|
7
|
+
traits_or_props: {
|
|
8
|
+
[k: string]: unknown;
|
|
9
|
+
};
|
|
10
|
+
audience_action?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/courier/audienceToList/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ActionDefinition } from '@segment/actions-core';
|
|
2
|
+
import type { Settings } from '../generated-types';
|
|
3
|
+
import type { Payload } from './generated-types';
|
|
4
|
+
export declare const CONSTANTS: {
|
|
5
|
+
ADD: string;
|
|
6
|
+
REMOVE: string;
|
|
7
|
+
};
|
|
8
|
+
declare const action: ActionDefinition<Settings, Payload>;
|
|
9
|
+
export default action;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CONSTANTS = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
exports.CONSTANTS = {
|
|
6
|
+
ADD: 'ADD',
|
|
7
|
+
REMOVE: 'REMOVE'
|
|
8
|
+
};
|
|
9
|
+
const action = {
|
|
10
|
+
title: 'Sync Audience',
|
|
11
|
+
description: 'Sync Engage Audiences to Courier lists',
|
|
12
|
+
defaultSubscription: 'type = "identify" or type = "track"',
|
|
13
|
+
fields: {
|
|
14
|
+
segment_audience_id: {
|
|
15
|
+
label: 'Audience ID',
|
|
16
|
+
description: 'Segment Audience ID to which user identifier should be added or removed',
|
|
17
|
+
type: 'string',
|
|
18
|
+
unsafe_hidden: true,
|
|
19
|
+
required: true,
|
|
20
|
+
default: {
|
|
21
|
+
'@path': '$.context.personas.computation_id'
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
segment_audience_key: {
|
|
25
|
+
label: 'Audience Key',
|
|
26
|
+
description: 'Segment Audience key to which user identifier should be added or removed',
|
|
27
|
+
type: 'string',
|
|
28
|
+
unsafe_hidden: true,
|
|
29
|
+
required: true,
|
|
30
|
+
default: {
|
|
31
|
+
'@path': '$.context.personas.computation_key'
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
segment_computation_action: {
|
|
35
|
+
label: 'Segment Computation Action',
|
|
36
|
+
description: "Segment computation class used to determine if input event is from an Engage Audience'. Value must be = 'audience'.",
|
|
37
|
+
type: 'string',
|
|
38
|
+
unsafe_hidden: true,
|
|
39
|
+
required: true,
|
|
40
|
+
default: {
|
|
41
|
+
'@path': '$.context.personas.computation_class'
|
|
42
|
+
},
|
|
43
|
+
choices: [{ label: 'audience', value: 'audience' }]
|
|
44
|
+
},
|
|
45
|
+
segment_user_id: {
|
|
46
|
+
label: 'Segment User ID',
|
|
47
|
+
description: 'The Segment userId value.',
|
|
48
|
+
type: 'string',
|
|
49
|
+
unsafe_hidden: true,
|
|
50
|
+
required: false,
|
|
51
|
+
default: { '@path': '$.userId' }
|
|
52
|
+
},
|
|
53
|
+
segment_anonymous_id: {
|
|
54
|
+
label: 'Segment Anonymous ID',
|
|
55
|
+
description: 'The Segment anonymousId value.',
|
|
56
|
+
type: 'string',
|
|
57
|
+
unsafe_hidden: true,
|
|
58
|
+
required: false,
|
|
59
|
+
default: { '@path': '$.anonymousId' }
|
|
60
|
+
},
|
|
61
|
+
traits_or_props: {
|
|
62
|
+
label: 'Traits or properties object',
|
|
63
|
+
description: 'A computed object for track and identify events. This field should not need to be edited.',
|
|
64
|
+
type: 'object',
|
|
65
|
+
required: true,
|
|
66
|
+
unsafe_hidden: true,
|
|
67
|
+
default: {
|
|
68
|
+
'@if': {
|
|
69
|
+
exists: { '@path': '$.properties' },
|
|
70
|
+
then: { '@path': '$.properties' },
|
|
71
|
+
else: { '@path': '$.traits' }
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
audience_action: {
|
|
76
|
+
label: 'Audience Action',
|
|
77
|
+
description: 'Indicates if the user will be added or removed from the Audience',
|
|
78
|
+
type: 'string',
|
|
79
|
+
unsafe_hidden: true,
|
|
80
|
+
choices: [
|
|
81
|
+
{ label: exports.CONSTANTS.ADD, value: exports.CONSTANTS.ADD },
|
|
82
|
+
{ label: exports.CONSTANTS.REMOVE, value: exports.CONSTANTS.REMOVE }
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
perform: (request, { payload, settings }) => {
|
|
87
|
+
return processPayload(request, payload, settings);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
const processPayload = (request, payload, settings) => {
|
|
91
|
+
payload.audience_action = payload.traits_or_props[payload.segment_audience_key] ? exports.CONSTANTS.ADD : exports.CONSTANTS.REMOVE;
|
|
92
|
+
const domain = __1.getDomain(settings.region);
|
|
93
|
+
const list_id = `${payload.segment_audience_key}-${payload.segment_audience_id}`;
|
|
94
|
+
const user_id = payload.segment_user_id ?? payload.segment_anonymous_id;
|
|
95
|
+
if (payload.audience_action === exports.CONSTANTS.ADD) {
|
|
96
|
+
return request(`${domain}/lists/${list_id}/subscriptions/${user_id}`, {
|
|
97
|
+
method: 'PUT'
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
return request(`${domain}/lists/${list_id}/subscriptions/${user_id}`, {
|
|
102
|
+
method: 'DELETE'
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
exports.default = action;
|
|
107
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/courier/audienceToList/index.ts"],"names":[],"mappings":";;;AAGA,0BAA8B;AAEjB,QAAA,SAAS,GAAG;IACvB,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;CACjB,CAAA;AAED,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,wCAAwC;IACrD,mBAAmB,EAAE,qCAAqC;IAC1D,MAAM,EAAE;QACN,mBAAmB,EAAE;YACnB,KAAK,EAAE,aAAa;YACpB,WAAW,EAAE,yEAAyE;YACtF,IAAI,EAAE,QAAQ;YACd,aAAa,EAAE,IAAI;YACnB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,mCAAmC;aAC7C;SACF;QACD,oBAAoB,EAAE;YACpB,KAAK,EAAE,cAAc;YACrB,WAAW,EAAE,0EAA0E;YACvF,IAAI,EAAE,QAAQ;YACd,aAAa,EAAE,IAAI;YACnB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,oCAAoC;aAC9C;SACF;QACD,0BAA0B,EAAE;YAC1B,KAAK,EAAE,4BAA4B;YACnC,WAAW,EACT,qHAAqH;YACvH,IAAI,EAAE,QAAQ;YACd,aAAa,EAAE,IAAI;YACnB,QAAQ,EAAE,I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AAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC1C,OAAO,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAA;IACnD,CAAC;CACF,CAAA;AAED,MAAM,cAAc,GAAG,CACrB,OAA+G,EAC/G,OAAgB,EAChB,QAAkB,EAClB,EAAE;IACF,OAAO,CAAC,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,iBAAS,CAAC,GAAG,CAAC,CAAC,CAAC,iBAAS,CAAC,MAAM,CAAA;IAElH,MAAM,MAAM,GAAG,aAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;IAEzC,MAAM,OAAO,GAAG,GAAG,OAAO,CAAC,oBAAoB,IAAI,OAAO,CAAC,mBAAmB,EAAE,CAAA;IAChF,MAAM,OAAO,GAAG,OAAO,CAAC,eAAe,IAAI,OAAO,CAAC,oBAAoB,CAAA;IAEvE,IAAI,OAAO,CAAC,eAAe,KAAK,iBAAS,CAAC,GAAG,EAAE;QAC7C,OAAO,OAAO,CAAC,GAAG,MAAM,UAAU,OAAO,kBAAkB,OAAO,EAAE,EAAE;YACpE,MAAM,EAAE,KAAK;SACd,CAAC,CAAA;KACH;SAAM;QACL,OAAO,OAAO,CAAC,GAAG,MAAM,UAAU,OAAO,kBAAkB,OAAO,EAAE,EAAE;YACpE,MAAM,EAAE,QAAQ;SACjB,CAAC,CAAA;KACH;AACH,CAAC,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DestinationDefinition } from '@segment/actions-core';
|
|
2
2
|
import type { Settings } from './generated-types';
|
|
3
3
|
declare const destination: DestinationDefinition<Settings>;
|
|
4
|
+
export declare const getDomain: (region: string) => string;
|
|
4
5
|
export default destination;
|
|
@@ -3,7 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getDomain = void 0;
|
|
6
7
|
const postToCourier_1 = __importDefault(require("./postToCourier"));
|
|
8
|
+
const audienceToList_1 = __importDefault(require("./audienceToList"));
|
|
7
9
|
const destination = {
|
|
8
10
|
name: 'Courier (Actions)',
|
|
9
11
|
slug: 'actions-courier',
|
|
@@ -34,11 +36,27 @@ const destination = {
|
|
|
34
36
|
],
|
|
35
37
|
required: true
|
|
36
38
|
}
|
|
39
|
+
},
|
|
40
|
+
testAuthentication: (request, { settings }) => {
|
|
41
|
+
const domain = exports.getDomain(settings.region);
|
|
42
|
+
return request(`${domain}/debug`, { method: 'POST', headers: { Authorization: `Bearer ${settings.apiKey}` } });
|
|
37
43
|
}
|
|
38
44
|
},
|
|
39
45
|
actions: {
|
|
40
|
-
postToCourier: postToCourier_1.default
|
|
46
|
+
postToCourier: postToCourier_1.default,
|
|
47
|
+
audienceToList: audienceToList_1.default
|
|
48
|
+
},
|
|
49
|
+
extendRequest({ settings }) {
|
|
50
|
+
return {
|
|
51
|
+
headers: {
|
|
52
|
+
Authorization: `Bearer ${settings.apiKey}`,
|
|
53
|
+
'Content-Type': 'application/json',
|
|
54
|
+
'User-Agent': 'SegmentCourier'
|
|
55
|
+
}
|
|
56
|
+
};
|
|
41
57
|
}
|
|
42
58
|
};
|
|
59
|
+
const getDomain = (region) => `https://api.${region === 'EU' ? 'eu.' : ''}courier.com`;
|
|
60
|
+
exports.getDomain = getDomain;
|
|
43
61
|
exports.default = destination;
|
|
44
62
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/courier/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/courier/index.ts"],"names":[],"mappings":";;;;;;AAGA,oEAA2C;A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C,MAAc,EAAE,EAAE,CAAC,eAAe,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,aAAa,CAAA;AAAxF,QAAA,SAAS,aAA+E;AAErG,kBAAe,WAAW,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const actions_core_1 = require("@segment/actions-core");
|
|
4
|
+
const __1 = require("..");
|
|
4
5
|
const action = {
|
|
5
6
|
title: 'Forward to Courier',
|
|
6
7
|
description: 'Forward track, group and identify events to Courier',
|
|
@@ -13,20 +14,27 @@ const action = {
|
|
|
13
14
|
required: true,
|
|
14
15
|
default: { '@path': '$.' },
|
|
15
16
|
unsafe_hidden: true
|
|
17
|
+
},
|
|
18
|
+
segment_computation_action: {
|
|
19
|
+
label: 'Segment Computation Action',
|
|
20
|
+
description: "Segment computation class used to determine if input event is from an Engage Audience'",
|
|
21
|
+
type: 'string',
|
|
22
|
+
unsafe_hidden: true,
|
|
23
|
+
default: {
|
|
24
|
+
'@path': '$.context.personas.computation_class'
|
|
25
|
+
}
|
|
16
26
|
}
|
|
17
27
|
},
|
|
18
28
|
perform: (request, { settings, payload }) => {
|
|
29
|
+
if (payload?.segment_computation_action === 'audience') {
|
|
30
|
+
throw new actions_core_1.PayloadValidationError('This Action does not support sending Engage Audiences. Please use the Sync Audience Action.');
|
|
31
|
+
}
|
|
19
32
|
if (!['track', 'group', 'identify'].includes(payload.data.type)) {
|
|
20
33
|
throw new actions_core_1.PayloadValidationError('Event type must be either track, group or identify');
|
|
21
34
|
}
|
|
22
|
-
const domain =
|
|
23
|
-
const headers = {
|
|
24
|
-
Authorization: `Bearer ${settings.apiKey}`,
|
|
25
|
-
'Content-Type': 'application/json'
|
|
26
|
-
};
|
|
35
|
+
const domain = __1.getDomain(settings.region);
|
|
27
36
|
return request(`${domain}/inbound/segment`, {
|
|
28
37
|
method: 'POST',
|
|
29
|
-
headers,
|
|
30
38
|
json: payload.data
|
|
31
39
|
});
|
|
32
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/courier/postToCourier/index.ts"],"names":[],"mappings":";;AAAA,wDAAgF;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/courier/postToCourier/index.ts"],"names":[],"mappings":";;AAAA,wDAAgF;AAGhF,0BAA8B;AAE9B,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,oBAAoB;IAC3B,WAAW,EAAE,qDAAqD;IAClE,mBAAmB,EAAE,uDAAuD;IAC5E,MAAM,EAAE;QACN,IAAI,EAAE;YACJ,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;YAC1B,aAAa,EAAE,IAAI;SACpB;QACD,0BAA0B,EAAE;YAC1B,KAAK,EAAE,4BAA4B;YACnC,WAAW,EAAE,wFAAwF;YACrG,IAAI,EAAE,QAAQ;YACd,aAAa,EAAE,IAAI;YACnB,OAAO,EAAE;gBACP,OAAO,EAAE,sCAAsC;aAChD;SACF;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QAC1C,IAAI,OAAO,EAAE,0BAA0B,KAAK,UAAU,EAAE;YACtD,MAAM,IAAI,qCAAsB,CAC9B,6FAA6F,CAC9F,CAAA;SACF;QAED,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,IAAc,CAAC,EAAE;YACzE,MAAM,IAAI,qCAAsB,CAAC,oDAAoD,CAAC,CAAA;SACvF;QAED,MAAM,MAAM,GAAG,aAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;QAEzC,OAAO,OAAO,CAAC,GAAG,MAAM,kBAAkB,EAAE;YAC1C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,OAAO,CAAC,IAAI;SACnB,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
import type { DestinationDefinition } from '@segment/actions-core';
|
|
2
|
+
import type { Settings } from './generated-types';
|
|
3
|
+
export declare const destinationDefinition: DestinationDefinition<Settings>;
|
|
4
|
+
export default destinationDefinition;
|
|
@@ -1,19 +1,71 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
13
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
|
-
};
|
|
15
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
3
|
+
exports.destinationDefinition = void 0;
|
|
4
|
+
const sendEmail_1 = require("./sendEmail");
|
|
5
|
+
const previewApiLookup_1 = require("./previewApiLookup");
|
|
6
|
+
exports.destinationDefinition = {
|
|
7
|
+
name: 'Engage Messaging SendGrid',
|
|
8
|
+
slug: 'actions-personas-messaging-sendgrid',
|
|
9
|
+
mode: 'cloud',
|
|
10
|
+
description: 'This is an Engage specific action to send an email',
|
|
11
|
+
authentication: {
|
|
12
|
+
scheme: 'custom',
|
|
13
|
+
fields: {
|
|
14
|
+
unlayerApiKey: {
|
|
15
|
+
label: 'Unlayer API Key',
|
|
16
|
+
type: 'password',
|
|
17
|
+
description: 'The API key for your Unlayer account'
|
|
18
|
+
},
|
|
19
|
+
sendGridApiKey: {
|
|
20
|
+
label: 'API Key',
|
|
21
|
+
type: 'password',
|
|
22
|
+
description: 'The Api Key for your SendGrid account',
|
|
23
|
+
required: true
|
|
24
|
+
},
|
|
25
|
+
profileApiEnvironment: {
|
|
26
|
+
label: 'Profile API Environment',
|
|
27
|
+
description: 'Profile API Environment',
|
|
28
|
+
type: 'string',
|
|
29
|
+
required: true
|
|
30
|
+
},
|
|
31
|
+
profileApiAccessToken: {
|
|
32
|
+
label: 'Profile API Access Token',
|
|
33
|
+
description: 'Profile API Access Token',
|
|
34
|
+
type: 'password',
|
|
35
|
+
required: true
|
|
36
|
+
},
|
|
37
|
+
spaceId: {
|
|
38
|
+
label: 'Space ID',
|
|
39
|
+
description: 'Space ID',
|
|
40
|
+
type: 'string',
|
|
41
|
+
required: true
|
|
42
|
+
},
|
|
43
|
+
sourceId: {
|
|
44
|
+
label: 'Source ID',
|
|
45
|
+
description: 'Source ID',
|
|
46
|
+
type: 'string',
|
|
47
|
+
required: true
|
|
48
|
+
},
|
|
49
|
+
region: {
|
|
50
|
+
label: 'Region',
|
|
51
|
+
description: 'The region where the email is originating from',
|
|
52
|
+
type: 'string',
|
|
53
|
+
choices: [
|
|
54
|
+
{ value: 'us-west-2', label: 'US West 2' },
|
|
55
|
+
{ value: 'eu-west-1', label: 'EU West 1' }
|
|
56
|
+
],
|
|
57
|
+
default: 'us-west-2',
|
|
58
|
+
required: false
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
testAuthentication: (request) => {
|
|
62
|
+
return request('https://api.sendgrid.com/v3/mail_settings');
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
actions: {
|
|
66
|
+
sendEmail: sendEmail_1.actionDefinition,
|
|
67
|
+
previewApiLookup: previewApiLookup_1.actionDefinition
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
exports.default = exports.destinationDefinition;
|
|
19
71
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/engage-messaging-sendgrid/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/engage-messaging-sendgrid/index.ts"],"names":[],"mappings":";;;AAEA,2CAA2D;AAC3D,yDAAyE;AAE5D,QAAA,qBAAqB,GAAoC;IACpE,IAAI,EAAE,2BAA2B;IACjC,IAAI,EAAE,qCAAqC;IAC3C,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,oDAAoD;IACjE,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,aAAa,EAAE;gBACb,KAAK,EAAE,iBAAiB;gBACxB,IAAI,EAAE,UAAU;gBAChB,WAAW,EAAE,sCAAsC;aACpD;YACD,cAAc,EAAE;gBACd,KAAK,EAAE,SAAS;gBAChB,IAAI,EAAE,UAAU;gBAChB,WAAW,EAAE,uCAAuC;gBACpD,QAAQ,EAAE,IAAI;aACf;YACD,qBAAqB,EAAE;gBACrB,KAAK,EAAE,yBAAyB;gBAChC,WAAW,EAAE,yBAAyB;gBACtC,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,qBAAqB,EAAE;gBACrB,KAAK,EAAE,0BAA0B;gBACjC,WAAW,EAAE,0BAA0B;gBACvC,IAAI,EAAE,UAAU;gBAChB,QAAQ,EAAE,IAAI;aACf;YACD,OAAO,EAAE;gBACP,KAAK,EAAE,UAAU;gBACjB,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,QAAQ,EAAE;gBACR,KAAK,EAAE,WAAW;gBAClB,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,MAAM,EAAE;gBACN,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,gDAAgD;gBAC7D,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;oBAC1C,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;iBAC3C;gBACD,OAAO,EAAE,WAAW;gBACpB,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,kBAAkB,EAAE,CAAC,OAAO,EAAE,EAAE;YAC9B,OAAO,OAAO,CAAC,2CAA2C,CAAC,CAAA;QAC7D,CAAC;KACF;IACD,OAAO,EAAE;QACP,SAAS,EAAT,4BAAS;QACT,gBAAgB,EAAhB,mCAAgB;KACjB;CACF,CAAA;AAED,kBAAe,6BAAqB,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { InputField } from '@segment/actions-core';
|
|
2
2
|
import { RequestClient } from '@segment/actions-core';
|
|
3
|
-
import
|
|
4
|
-
import type { Settings } from '../
|
|
5
|
-
import { Profile } from '
|
|
3
|
+
import { Logger, StatsClient, DataFeedCache } from '@segment/actions-core/destination-kit';
|
|
4
|
+
import type { Settings } from '../generated-types';
|
|
5
|
+
import { Profile } from '@segment/actions-shared';
|
|
6
6
|
export declare type ApiLookupConfig = {
|
|
7
7
|
id?: string | undefined;
|
|
8
8
|
name: string;
|
|
@@ -15,8 +15,8 @@ export declare type ApiLookupConfig = {
|
|
|
15
15
|
shouldRetryOnRetryableError?: boolean;
|
|
16
16
|
};
|
|
17
17
|
export declare const getRequestId: ({ method, url, body, headers }: ApiLookupConfig) => string;
|
|
18
|
-
export declare const getCachedResponse: ({ responseType }: ApiLookupConfig, requestId: string,
|
|
19
|
-
export declare const performApiLookup: (request: RequestClient, apiLookupConfig: ApiLookupConfig, profile: Profile, statsClient: StatsClient | undefined, tags: string[], settings: Settings, logger?: Logger | undefined,
|
|
18
|
+
export declare const getCachedResponse: ({ responseType }: ApiLookupConfig, requestId: string, dataFeedCache: DataFeedCache, datafeedTags: string[]) => Promise<any>;
|
|
19
|
+
export declare const performApiLookup: (request: RequestClient, apiLookupConfig: ApiLookupConfig, profile: Profile, statsClient: StatsClient | undefined, tags: string[], settings: Settings, logger?: Logger | undefined, dataFeedCache?: DataFeedCache | undefined) => Promise<any>;
|
|
20
20
|
export declare const apiLookupActionFields: Record<string, InputField>;
|
|
21
21
|
export declare const apiLookupLiquidKey = "datafeeds";
|
|
22
22
|
export declare const FLAGON_NAME_DATA_FEEDS = "is-datafeeds-enabled";
|
package/dist/destinations/{engage/utils → engage-messaging-sendgrid/previewApiLookup}/apiLookups.js
RENAMED
|
@@ -36,8 +36,8 @@ const getRequestId = ({ method, url, body, headers }) => {
|
|
|
36
36
|
return requestId;
|
|
37
37
|
};
|
|
38
38
|
exports.getRequestId = getRequestId;
|
|
39
|
-
const getCachedResponse = async ({ responseType }, requestId,
|
|
40
|
-
const cachedResponse = await
|
|
39
|
+
const getCachedResponse = async ({ responseType }, requestId, dataFeedCache, datafeedTags) => {
|
|
40
|
+
const cachedResponse = await dataFeedCache.getRequestResponse(requestId);
|
|
41
41
|
if (!cachedResponse) {
|
|
42
42
|
datafeedTags.push('cache_hit:false');
|
|
43
43
|
return;
|
|
@@ -49,7 +49,7 @@ const getCachedResponse = async ({ responseType }, requestId, engageDestinationC
|
|
|
49
49
|
return cachedResponse;
|
|
50
50
|
};
|
|
51
51
|
exports.getCachedResponse = getCachedResponse;
|
|
52
|
-
const performApiLookup = async (request, apiLookupConfig, profile, statsClient, tags, settings, logger,
|
|
52
|
+
const performApiLookup = async (request, apiLookupConfig, profile, statsClient, tags, settings, logger, dataFeedCache) => {
|
|
53
53
|
const { id, method, headers, cacheTtl, name, shouldRetryOnRetryableError = true } = apiLookupConfig;
|
|
54
54
|
const datafeedTags = [
|
|
55
55
|
...tags,
|
|
@@ -65,13 +65,13 @@ const performApiLookup = async (request, apiLookupConfig, profile, statsClient,
|
|
|
65
65
|
try {
|
|
66
66
|
const { renderedUrl, renderedBody } = await renderLiquidFields(apiLookupConfig, profile, datafeedTags, logDataFeedError);
|
|
67
67
|
const requestId = exports.getRequestId({ ...apiLookupConfig, url: renderedUrl, body: renderedBody });
|
|
68
|
-
if (cacheTtl > 0 && !
|
|
68
|
+
if (cacheTtl > 0 && !dataFeedCache) {
|
|
69
69
|
logDataFeedError('Data feed cache not available and cache needed');
|
|
70
70
|
datafeedTags.push('cache_set:false');
|
|
71
71
|
throw new actions_core_1.IntegrationError('Data feed cache not available and cache needed', 'DATA_FEED_CACHE_NOT_AVAILABLE', 400);
|
|
72
72
|
}
|
|
73
|
-
if (cacheTtl > 0 &&
|
|
74
|
-
const cachedResponse = await exports.getCachedResponse(apiLookupConfig, requestId,
|
|
73
|
+
if (cacheTtl > 0 && dataFeedCache) {
|
|
74
|
+
const cachedResponse = await exports.getCachedResponse(apiLookupConfig, requestId, dataFeedCache, datafeedTags);
|
|
75
75
|
if (cachedResponse) {
|
|
76
76
|
datafeedTags.push('error:false');
|
|
77
77
|
return cachedResponse;
|
|
@@ -97,16 +97,16 @@ const performApiLookup = async (request, apiLookupConfig, profile, statsClient,
|
|
|
97
97
|
}
|
|
98
98
|
return {};
|
|
99
99
|
}
|
|
100
|
-
if (cacheTtl > 0 &&
|
|
100
|
+
if (cacheTtl > 0 && dataFeedCache) {
|
|
101
101
|
const dataString = JSON.stringify(data);
|
|
102
102
|
const size = Buffer.byteLength(dataString, 'utf-8');
|
|
103
|
-
if (size >
|
|
103
|
+
if (size > dataFeedCache.maxResponseSizeBytes) {
|
|
104
104
|
datafeedTags.push('error:true', 'reason:response_size_too_big');
|
|
105
105
|
logDataFeedError('Data feed response size too big too cache and caching needed, failing send');
|
|
106
106
|
throw new actions_core_1.IntegrationError('Data feed response size too big too cache and caching needed, failing send', 'DATA_FEED_RESPONSE_TOO_BIG', 400);
|
|
107
107
|
}
|
|
108
108
|
try {
|
|
109
|
-
await
|
|
109
|
+
await dataFeedCache.setRequestResponse(requestId, dataString, cacheTtl / 1000);
|
|
110
110
|
datafeedTags.push('cache_set:true');
|
|
111
111
|
}
|
|
112
112
|
catch (error) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiLookups.js","sourceRoot":"","sources":["../../../../src/destinations/engage-messaging-sendgrid/previewApiLookup/apiLookups.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AACnC,wDAAwD;AAKxD,uCAA6C;AAG7C,MAAM,MAAM,GAAG,IAAI,iBAAQ,EAAE,CAAA;AAkB7B,MAAM,kBAAkB,GAAG,KAAK,EAC9B,EAAE,GAAG,EAAE,IAAI,EAAyC,EACpD,OAAgB,EAChB,YAAsB,EACtB,gBAAkC,EAClC,EAAE;IACF,IAAI,WAAmB,CAAA;IACvB,IAAI,YAAgC,CAAA;IACpC,IAAI;QACF,WAAW,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,CAAC,CAAA;KAC5D;IAAC,OAAO,KAAK,EAAE;QACd,gBAAgB,CAAC,4BAA4B,EAAE,KAAK,CAAC,CAAA;QACrD,YAAY,CAAC,IAAI,CAAC,YAAY,EAAE,0BAA0B,EAAE,eAAe,CAAC,CAAA;QAC5E,MAAM,IAAI,+BAAgB,CAAC,+BAA+B,EAAE,2BAA2B,EAAE,GAAG,CAAC,CAAA;KAC9F;IACD,IAAI;QACF,YAAY,GAAG,IAAI,CAAC,CAAC,CAAC,MAAM,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;KACjF;IAAC,OAAO,KAAK,EAAE;QACd,gBAAgB,CAAC,4BAA4B,E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BAA0B;QACvC,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;KACf;IACD,MAAM,EAAE;QACN,KAAK,EAAE,gBAAgB;QACvB,WAAW,EAAE,wCAAwC;QACrD,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;KACf;IACD,QAAQ,EAAE;QACR,KAAK,EAAE,WAAW;QAClB,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;KACf;IACD,IAAI,EAAE;QACJ,KAAK,EAAE,cAAc;QACrB,WAAW,EAAE,uDAAuD;QACpE,IAAI,EAAE,QAAQ;KACf;IACD,OAAO,EAAE;QACP,KAAK,EAAE,iBAAiB;QACxB,WAAW,EAAE,6CAA6C;QAC1D,IAAI,EAAE,QAAQ;KACf;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,eAAe;QACtB,WAAW,EAAE,mEAAmE;QAChF,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;KACf;IACD,2BAA2B,EAAE;QAC3B,KAAK,EAAE,cAAc;QACrB,WAAW,EACT,iJAAiJ;QACnJ,IAAI,EAAE,SAAS;KAChB;CACF,CAAA;AAEY,QAAA,kBAAkB,GAAG,WAAW,CAAA;AAEhC,QAAA,sBAAsB,GAAG,sBAAsB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/engage-messaging-sendgrid/previewApiLookup/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -2,3 +2,4 @@ import { ActionDefinition } from '@segment/actions-core';
|
|
|
2
2
|
import type { Settings } from '../generated-types';
|
|
3
3
|
import type { Payload } from './generated-types';
|
|
4
4
|
export declare const actionDefinition: ActionDefinition<Settings, Payload>;
|
|
5
|
+
export default actionDefinition;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.actionDefinition = void 0;
|
|
4
|
-
const apiLookups_1 = require("
|
|
4
|
+
const apiLookups_1 = require("./apiLookups");
|
|
5
5
|
exports.actionDefinition = {
|
|
6
6
|
title: 'Perform a single API lookup',
|
|
7
7
|
description: 'Perform a single API lookup and return the response',
|
|
@@ -25,4 +25,5 @@ exports.actionDefinition = {
|
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
|
-
|
|
28
|
+
exports.default = exports.actionDefinition;
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/engage-messaging-sendgrid/previewApiLookup/index.ts"],"names":[],"mappings":";;;AAGA,6CAAsE;AAGzD,QAAA,gBAAgB,GAAwC;IACnE,KAAK,EAAE,6BAA6B;IACpC,WAAW,EAAE,qDAAqD;IAClE,MAAM,EAAE;QACN,GAAG,kCAAqB;QACxB,MAAM,EAAE;YACN,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,yBAAyB;YACtC,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;SAChB;KACF;IACD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE;QACtE,MAAM,WAAW,GAAG,YAAY,EAAE,WAAW,CAAA;QAC7C,MAAM,IAAI,GAAG,YAAY,EAAE,IAAI,IAAI,EAAE,CAAA;QACrC,MAAM,EAAE,MAAM,GAAG,EAAE,EAAE,GAAG,eAAe,EAAE,GAAG,OAAO,CAAA;QACnD,MAAM,OAAO,GAAY,EAAE,MAAM,EAAE,MAAgC,EAAE,CAAA;QACrE,MAAM,IAAI,GAAG,MAAM,6BAAgB,CAAC,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAA;QAC3G,OAAO;YACL,IAAI;SACL,CAAA;IACH,CAAC;CACF,CAAA;AAED,kBAAe,wBAAgB,CAAA"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ExtId, MessageSendPerformer, OperationContext, ResponseError } from '
|
|
1
|
+
import { ExtId, MessageSendPerformer, OperationContext, ResponseError, Profile } from '@segment/actions-shared';
|
|
2
2
|
import type { Settings } from '../generated-types';
|
|
3
3
|
import type { Payload } from './generated-types';
|
|
4
|
-
import { Profile } from '../../utils/Profile';
|
|
5
4
|
import { Liquid as LiquidJs } from 'liquidjs';
|
|
6
|
-
import { ApiLookupConfig, apiLookupLiquidKey } from '
|
|
5
|
+
import { ApiLookupConfig, apiLookupLiquidKey } from '../previewApiLookup/apiLookups';
|
|
7
6
|
export declare const EXTERNAL_ID_KEY = "email";
|
|
8
7
|
export declare const Liquid: LiquidJs;
|
|
9
8
|
export declare class SendEmailPerformer extends MessageSendPerformer<Settings, Payload> {
|