@segment/action-destinations 3.371.1-staging-cb4b858fd → 3.372.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/amazon-amc/function.d.ts +4 -3
- package/dist/destinations/amazon-amc/function.js +19 -21
- package/dist/destinations/amazon-amc/function.js.map +1 -1
- package/dist/destinations/amazon-amc/syncAudiencesToDSP/index.js +4 -4
- package/dist/destinations/amazon-amc/syncAudiencesToDSP/index.js.map +1 -1
- package/dist/destinations/display-video-360/proto/protofile.d.ts +1 -1
- package/dist/destinations/display-video-360/proto/protofile.js +1 -1
- package/dist/destinations/display-video-360/proto/protofile.js.map +1 -1
- package/dist/destinations/index.js +0 -1
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/salesforce-marketing-cloud/_tests_/dataExtension.test.js +0 -50
- package/dist/destinations/salesforce-marketing-cloud/_tests_/dataExtension.test.js.map +1 -1
- package/dist/destinations/salesforce-marketing-cloud/contactDataExtension/generated-types.d.ts +0 -48
- package/dist/destinations/salesforce-marketing-cloud/contactDataExtension/index.js +4 -30
- package/dist/destinations/salesforce-marketing-cloud/contactDataExtension/index.js.map +1 -1
- package/dist/destinations/salesforce-marketing-cloud/dataExtension/generated-types.d.ts +0 -48
- package/dist/destinations/salesforce-marketing-cloud/dataExtension/index.js +4 -32
- package/dist/destinations/salesforce-marketing-cloud/dataExtension/index.js.map +1 -1
- package/dist/destinations/salesforce-marketing-cloud/sfmc-operations.d.ts +3 -12
- package/dist/destinations/salesforce-marketing-cloud/sfmc-operations.js +9 -313
- package/dist/destinations/salesforce-marketing-cloud/sfmc-operations.js.map +1 -1
- package/dist/destinations/salesforce-marketing-cloud/sfmc-properties.d.ts +0 -2
- package/dist/destinations/salesforce-marketing-cloud/sfmc-properties.js +10 -165
- package/dist/destinations/salesforce-marketing-cloud/sfmc-properties.js.map +1 -1
- package/dist/destinations/webhook-extensible/__test__/webhook.test.js +246 -0
- package/dist/destinations/webhook-extensible/__test__/webhook.test.js.map +1 -1
- package/dist/destinations/webhook-extensible/auth-utils.d.ts +3 -0
- package/dist/destinations/webhook-extensible/auth-utils.js +78 -0
- package/dist/destinations/webhook-extensible/auth-utils.js.map +1 -0
- package/dist/destinations/webhook-extensible/index.js +3 -37
- package/dist/destinations/webhook-extensible/index.js.map +1 -1
- package/package.json +6 -5
- package/dist/destinations/accoil-analytics/postToAccoil/generated-types.d.ts +0 -5
- package/dist/destinations/accoil-analytics/postToAccoil/generated-types.js +0 -3
- package/dist/destinations/accoil-analytics/postToAccoil/generated-types.js.map +0 -1
- package/dist/destinations/accoil-analytics/postToAccoil/index.d.ts +0 -5
- package/dist/destinations/accoil-analytics/postToAccoil/index.js +0 -27
- package/dist/destinations/accoil-analytics/postToAccoil/index.js.map +0 -1
- package/dist/destinations/amazon-ads/generated-types.d.ts +0 -3
- package/dist/destinations/amazon-ads/generated-types.js +0 -3
- package/dist/destinations/amazon-ads/generated-types.js.map +0 -1
- package/dist/destinations/amazon-ads/index.d.ts +0 -4
- package/dist/destinations/amazon-ads/index.js +0 -87
- package/dist/destinations/amazon-ads/index.js.map +0 -1
- package/dist/destinations/amazon-ads/syncAudiences/generated-types.d.ts +0 -2
- package/dist/destinations/amazon-ads/syncAudiences/generated-types.js +0 -3
- package/dist/destinations/amazon-ads/syncAudiences/generated-types.js.map +0 -1
- package/dist/destinations/amazon-ads/syncAudiences/index.d.ts +0 -5
- package/dist/destinations/amazon-ads/syncAudiences/index.js +0 -15
- package/dist/destinations/amazon-ads/syncAudiences/index.js.map +0 -1
- package/dist/destinations/amazon-ads/types.d.ts +0 -22
- package/dist/destinations/amazon-ads/types.js +0 -11
- package/dist/destinations/amazon-ads/types.js.map +0 -1
- package/dist/destinations/amazon-ads/utils.d.ts +0 -25
- package/dist/destinations/amazon-ads/utils.js +0 -8
- package/dist/destinations/amazon-ads/utils.js.map +0 -1
- package/dist/destinations/dynamic-yield-audiences/syncAudience/types.d.ts +0 -22
- package/dist/destinations/dynamic-yield-audiences/syncAudience/types.js +0 -3
- package/dist/destinations/dynamic-yield-audiences/syncAudience/types.js.map +0 -1
- package/dist/destinations/dynamic-yield-audiences/types.d.ts +0 -8
- package/dist/destinations/dynamic-yield-audiences/types.js +0 -12
- package/dist/destinations/dynamic-yield-audiences/types.js.map +0 -1
- 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 +0 -28
- 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.d.ts +0 -44
- package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js +0 -419
- package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js.map +0 -1
- package/dist/destinations/engage/sendgrid/sendEmail/UnlayerResponse.d.ts +0 -12
- package/dist/destinations/engage/sendgrid/sendEmail/UnlayerResponse.js +0 -3
- package/dist/destinations/engage/sendgrid/sendEmail/UnlayerResponse.js.map +0 -1
- package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.d.ts +0 -4
- package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.js +0 -257
- 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.d.ts +0 -1
- package/dist/destinations/engage/sendgrid/sendEmail/insertEmailPreviewText.js +0 -23
- package/dist/destinations/engage/sendgrid/sendEmail/insertEmailPreviewText.js.map +0 -1
- package/dist/destinations/engage/sendgrid/sendEmail/isRestrictedDomain.d.ts +0 -1
- package/dist/destinations/engage/sendgrid/sendEmail/isRestrictedDomain.js +0 -14
- 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.d.ts +0 -29
- package/dist/destinations/engage/twilio/sendMobilePush/PushSender.js +0 -169
- package/dist/destinations/engage/twilio/sendMobilePush/PushSender.js.map +0 -1
- package/dist/destinations/engage/twilio/sendMobilePush/actionDefinition.d.ts +0 -4
- package/dist/destinations/engage/twilio/sendMobilePush/actionDefinition.js +0 -250
- 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.d.ts +0 -9
- package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.js +0 -72
- package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.js.map +0 -1
- package/dist/destinations/engage/twilio/sendSms/actionDefinition.d.ts +0 -4
- package/dist/destinations/engage/twilio/sendSms/actionDefinition.js +0 -162
- 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.d.ts +0 -9
- package/dist/destinations/engage/twilio/sendWhatsApp/WhatsAppMessageSender.js +0 -89
- package/dist/destinations/engage/twilio/sendWhatsApp/WhatsAppMessageSender.js.map +0 -1
- package/dist/destinations/engage/twilio/sendWhatsApp/actionDefinition.d.ts +0 -4
- package/dist/destinations/engage/twilio/sendWhatsApp/actionDefinition.js +0 -136
- 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.d.ts +0 -16
- package/dist/destinations/engage/twilio/utils/PhoneMessageSender.js +0 -71
- package/dist/destinations/engage/twilio/utils/PhoneMessageSender.js.map +0 -1
- package/dist/destinations/engage/twilio/utils/TwilioMessageSender.d.ts +0 -16
- package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js +0 -115
- package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js.map +0 -1
- package/dist/destinations/engage/twilio/utils/index.d.ts +0 -2
- package/dist/destinations/engage/twilio/utils/index.js +0 -15
- package/dist/destinations/engage/twilio/utils/index.js.map +0 -1
- package/dist/destinations/engage/twilio/utils/types.d.ts +0 -23
- package/dist/destinations/engage/twilio/utils/types.js +0 -3
- 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 -65
- package/dist/destinations/engage/utils/MessageSendPerformer.js +0 -211
- 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.d.ts +0 -22
- package/dist/destinations/engage/utils/apiLookups.js +0 -189
- 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.d.ts +0 -16
- 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.d.ts +0 -56
- package/dist/destinations/engage-messaging-sendgrid/sendEmail.types.js +0 -3
- package/dist/destinations/engage-messaging-sendgrid/sendEmail.types.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/sendMobilePush.types.d.ts +0 -39
- 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/sms-sender.d.ts +0 -23
- package/dist/destinations/engage-messaging-twilio/sendSms/sms-sender.js +0 -131
- package/dist/destinations/engage-messaging-twilio/sendSms/sms-sender.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/sendSms.types.d.ts +0 -27
- package/dist/destinations/engage-messaging-twilio/sendSms.types.js +0 -3
- package/dist/destinations/engage-messaging-twilio/sendSms.types.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/sendWhatsApp/whatsapp-sender.d.ts +0 -21
- package/dist/destinations/engage-messaging-twilio/sendWhatsApp/whatsapp-sender.js +0 -75
- package/dist/destinations/engage-messaging-twilio/sendWhatsApp/whatsapp-sender.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/sendWhatsApp.types.d.ts +0 -25
- 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-twilio/utils/message-sender.d.ts +0 -24
- package/dist/destinations/engage-messaging-twilio/utils/message-sender.js +0 -111
- package/dist/destinations/engage-messaging-twilio/utils/message-sender.js.map +0 -1
- package/dist/destinations/facebook-custom-audiences/add/generated-types.d.ts +0 -2
- package/dist/destinations/facebook-custom-audiences/add/generated-types.js +0 -3
- package/dist/destinations/facebook-custom-audiences/add/generated-types.js.map +0 -1
- package/dist/destinations/facebook-custom-audiences/add/index.d.ts +0 -5
- package/dist/destinations/facebook-custom-audiences/add/index.js +0 -11
- package/dist/destinations/facebook-custom-audiences/add/index.js.map +0 -1
- package/dist/destinations/facebook-custom-audiences/remove/generated-types.d.ts +0 -2
- package/dist/destinations/facebook-custom-audiences/remove/generated-types.js +0 -3
- package/dist/destinations/facebook-custom-audiences/remove/generated-types.js.map +0 -1
- package/dist/destinations/facebook-custom-audiences/remove/index.d.ts +0 -5
- package/dist/destinations/facebook-custom-audiences/remove/index.js +0 -11
- package/dist/destinations/facebook-custom-audiences/remove/index.js.map +0 -1
- package/dist/destinations/hubspot/helperFunctions.d.ts +0 -7
- package/dist/destinations/hubspot/helperFunctions.js +0 -27
- package/dist/destinations/hubspot/helperFunctions.js.map +0 -1
- package/dist/destinations/mixpanel/utils.d.ts +0 -13
- package/dist/destinations/mixpanel/utils.js +0 -117
- package/dist/destinations/mixpanel/utils.js.map +0 -1
- package/dist/destinations/responsys/shared_properties.d.ts +0 -3
- package/dist/destinations/responsys/shared_properties.js +0 -19
- package/dist/destinations/responsys/shared_properties.js.map +0 -1
- package/dist/destinations/snap-conversions-api/snap-capi-properties.d.ts +0 -30
- package/dist/destinations/snap-conversions-api/snap-capi-properties.js +0 -316
- package/dist/destinations/snap-conversions-api/snap-capi-properties.js.map +0 -1
- package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.d.ts +0 -3
- package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js +0 -34
- package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js.map +0 -1
- package/dist/destinations/vernst-test/generated-types.d.ts +0 -2
- package/dist/destinations/vernst-test/generated-types.js +0 -3
- package/dist/destinations/vernst-test/generated-types.js.map +0 -1
- package/dist/destinations/vernst-test/index.d.ts +0 -4
- package/dist/destinations/vernst-test/index.js +0 -20
- package/dist/destinations/vernst-test/index.js.map +0 -1
- package/dist/destinations/vernst-test/pingWebhook/generated-types.d.ts +0 -3
- package/dist/destinations/vernst-test/pingWebhook/generated-types.js +0 -3
- package/dist/destinations/vernst-test/pingWebhook/generated-types.js.map +0 -1
- package/dist/destinations/vernst-test/pingWebhook/index.d.ts +0 -5
- package/dist/destinations/vernst-test/pingWebhook/index.js +0 -21
- package/dist/destinations/vernst-test/pingWebhook/index.js.map +0 -1
- package/dist/destinations/warehouse-test/client.d.ts +0 -27
- package/dist/destinations/warehouse-test/client.js +0 -121
- package/dist/destinations/warehouse-test/client.js.map +0 -1
- package/dist/destinations/warehouse-test/fields.d.ts +0 -3
- package/dist/destinations/warehouse-test/fields.js +0 -71
- package/dist/destinations/warehouse-test/fields.js.map +0 -1
- package/dist/destinations/warehouse-test/generated-types.d.ts +0 -7
- package/dist/destinations/warehouse-test/generated-types.js +0 -3
- package/dist/destinations/warehouse-test/generated-types.js.map +0 -1
- package/dist/destinations/warehouse-test/index.d.ts +0 -4
- package/dist/destinations/warehouse-test/index.js +0 -58
- package/dist/destinations/warehouse-test/index.js.map +0 -1
- package/dist/destinations/warehouse-test/syncToWarehouse/generated-types.d.ts +0 -5
- package/dist/destinations/warehouse-test/syncToWarehouse/generated-types.js +0 -3
- package/dist/destinations/warehouse-test/syncToWarehouse/generated-types.js.map +0 -1
- package/dist/destinations/warehouse-test/syncToWarehouse/index.d.ts +0 -5
- package/dist/destinations/warehouse-test/syncToWarehouse/index.js +0 -37
- package/dist/destinations/warehouse-test/syncToWarehouse/index.js.map +0 -1
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WhatsAppMessageSender = void 0;
|
|
4
|
-
const liquidjs_1 = require("liquidjs");
|
|
5
|
-
const actions_core_1 = require("@segment/actions-core");
|
|
6
|
-
const message_sender_1 = require("../utils/message-sender");
|
|
7
|
-
const google_libphonenumber_1 = require("google-libphonenumber");
|
|
8
|
-
const phoneUtil = google_libphonenumber_1.PhoneNumberUtil.getInstance();
|
|
9
|
-
const Liquid = new liquidjs_1.Liquid();
|
|
10
|
-
class WhatsAppMessageSender extends message_sender_1.MessageSender {
|
|
11
|
-
constructor(request, payload, settings, statsClient, tags, logger) {
|
|
12
|
-
super(request, payload, settings, statsClient, tags, logger);
|
|
13
|
-
this.request = request;
|
|
14
|
-
this.payload = payload;
|
|
15
|
-
this.settings = settings;
|
|
16
|
-
this.statsClient = statsClient;
|
|
17
|
-
this.tags = tags;
|
|
18
|
-
this.logger = logger;
|
|
19
|
-
this.getExternalId = () => this.payload.externalIds?.find(({ type, channelType }) => channelType?.toLowerCase() === 'whatsapp' && type === 'phone');
|
|
20
|
-
this.getBody = async (phone) => {
|
|
21
|
-
let parsedPhone;
|
|
22
|
-
try {
|
|
23
|
-
parsedPhone = phoneUtil.parse(phone, 'US');
|
|
24
|
-
parsedPhone = phoneUtil.format(parsedPhone, google_libphonenumber_1.PhoneNumberFormat.E164);
|
|
25
|
-
parsedPhone = `whatsapp:${parsedPhone}`;
|
|
26
|
-
}
|
|
27
|
-
catch (error) {
|
|
28
|
-
this.tags.push('type:invalid_phone_e164');
|
|
29
|
-
this.logger?.error(`TE Messaging: WhatsApp invalid phone number - ${this.settings.spaceId} - [${error}]`);
|
|
30
|
-
this.statsClient?.incr('actions-personas-messaging-twilio.error', 1, this.tags);
|
|
31
|
-
throw new actions_core_1.IntegrationError('The string supplied did not seem to be a phone number. Phone number must be able to be formatted to e164 for whatsapp.', `INVALID_PHONE`, 400);
|
|
32
|
-
}
|
|
33
|
-
if (!this.payload.contentSid) {
|
|
34
|
-
this.logger?.error(`TE Messaging: A valid WhatsApp Content SID was not provided - ${this.settings.spaceId}`);
|
|
35
|
-
throw new actions_core_1.IntegrationError('A valid whatsApp Content SID was not provided.', `INVALID_CONTENT_SID`, 400);
|
|
36
|
-
}
|
|
37
|
-
const params = {
|
|
38
|
-
ContentSid: this.payload.contentSid,
|
|
39
|
-
From: this.payload.from,
|
|
40
|
-
To: parsedPhone
|
|
41
|
-
};
|
|
42
|
-
const contentVariables = await this.getVariables();
|
|
43
|
-
if (contentVariables)
|
|
44
|
-
params['ContentVariables'] = contentVariables;
|
|
45
|
-
return new URLSearchParams(params);
|
|
46
|
-
};
|
|
47
|
-
this.getVariables = async () => {
|
|
48
|
-
try {
|
|
49
|
-
if (!this.payload.traitEnrichment && this.payload.contentVariables)
|
|
50
|
-
return JSON.stringify(this.payload.contentVariables) ?? null;
|
|
51
|
-
if (!this.payload.contentVariables || !this.payload.traits)
|
|
52
|
-
return null;
|
|
53
|
-
const profile = {
|
|
54
|
-
profile: {
|
|
55
|
-
traits: this.payload.traits
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
const mapping = {};
|
|
59
|
-
for (const [key, val] of Object.entries(this.payload.contentVariables)) {
|
|
60
|
-
const parsed = await Liquid.parseAndRender(val, profile);
|
|
61
|
-
if (parsed?.length) {
|
|
62
|
-
mapping[key] = parsed;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
return JSON.stringify(mapping);
|
|
66
|
-
}
|
|
67
|
-
catch (error) {
|
|
68
|
-
this.logger?.error(`TE Messaging: Failed to parse WhatsApp template with content variables - ${this.settings.spaceId} - [${error}]`);
|
|
69
|
-
throw new actions_core_1.IntegrationError(`Unable to parse templating in content variables`, `Content variables templating parse failure`, 400);
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
exports.WhatsAppMessageSender = WhatsAppMessageSender;
|
|
75
|
-
//# sourceMappingURL=whatsapp-sender.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"whatsapp-sender.js","sourceRoot":"","sources":["../../../../src/destinations/engage-messaging-twilio/sendWhatsApp/whatsapp-sender.ts"],"names":[],"mappings":";;;AACA,uCAA6C;AAG7C,wDAAwD;AACxD,4DAAkE;AAClE,iEAA0E;AAG1E,MAAM,SAAS,GAAG,uCAAe,CAAC,WAAW,EAAE,CAAA;AAC/C,MAAM,MAAM,GAAG,IAAI,iBAAQ,EAAE,CAAA;AAE7B,MAAa,qBAAsB,SAAQ,8BAAsB;IAC/D,YACW,OAAkB,EAClB,OAAgB,EAChB,QAAkB,EAClB,WAAoC,EACpC,IAA0B,EAC1B,MAA0B;QAEnC,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,CAAC,CAAA;QAPnD,YAAO,GAAP,OAAO,CAAW;QAClB,YAAO,GAAP,OAAO,CAAS;QAChB,aAAQ,GAAR,QAAQ,CAAU;QAClB,gBAAW,GAAX,WAAW,CAAyB;QACpC,SAAI,GAAJ,IAAI,CAAsB;QAC1B,WAAM,GAAN,MAAM,CAAoB;QAKrC,kBAAa,GAAG,GAAG,EAAE,CACnB,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,IAAI,CAC5B,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,WAAW,EAAE,WAAW,EAAE,KAAK,UAAU,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sDA0FC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export interface Payload {
|
|
2
|
-
contentSid: string;
|
|
3
|
-
contentVariables?: {
|
|
4
|
-
[k: string]: unknown;
|
|
5
|
-
};
|
|
6
|
-
toNumber?: string;
|
|
7
|
-
from: string;
|
|
8
|
-
customArgs?: {
|
|
9
|
-
[k: string]: unknown;
|
|
10
|
-
};
|
|
11
|
-
connectionOverrides?: string;
|
|
12
|
-
send?: boolean;
|
|
13
|
-
traitEnrichment?: boolean;
|
|
14
|
-
segmentComputationId?: string;
|
|
15
|
-
externalIds?: {
|
|
16
|
-
id?: string;
|
|
17
|
-
type?: string;
|
|
18
|
-
channelType?: string;
|
|
19
|
-
subscriptionStatus?: string;
|
|
20
|
-
}[];
|
|
21
|
-
traits?: {
|
|
22
|
-
[k: string]: unknown;
|
|
23
|
-
};
|
|
24
|
-
eventOccurredTS?: string;
|
|
25
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sendWhatsApp.types.js","sourceRoot":"","sources":["../../../src/destinations/engage-messaging-twilio/sendWhatsApp.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { RequestOptions } from '@segment/actions-core';
|
|
2
|
-
import type { Settings } from '../generated-types';
|
|
3
|
-
import type { Payload } from '../sendSms/generated-types';
|
|
4
|
-
import { Logger, StatsClient, StatsContext } from '@segment/actions-core/src/destination-kit';
|
|
5
|
-
export declare type RequestFn = (url: string, options?: RequestOptions) => Promise<Response>;
|
|
6
|
-
declare type MinimalPayload = Pick<Payload, 'from' | 'toNumber' | 'customArgs' | 'externalIds' | 'traits' | 'send' | 'eventOccurredTS'>;
|
|
7
|
-
export declare abstract class MessageSender<SmsPayload extends MinimalPayload> {
|
|
8
|
-
readonly request: RequestFn;
|
|
9
|
-
readonly payload: SmsPayload;
|
|
10
|
-
readonly settings: Settings;
|
|
11
|
-
readonly statsClient: StatsClient | undefined;
|
|
12
|
-
readonly tags: StatsContext['tags'];
|
|
13
|
-
readonly logger: Logger | undefined;
|
|
14
|
-
private readonly EXTERNAL_ID_KEY;
|
|
15
|
-
private readonly DEFAULT_HOSTNAME;
|
|
16
|
-
private readonly DEFAULT_CONNECTION_OVERRIDES;
|
|
17
|
-
constructor(request: RequestFn, payload: SmsPayload, settings: Settings, statsClient: StatsClient | undefined, tags: StatsContext['tags'], logger: Logger | undefined);
|
|
18
|
-
abstract getBody: (phone: string) => Promise<URLSearchParams>;
|
|
19
|
-
abstract getExternalId: () => NonNullable<MinimalPayload['externalIds']>[number] | undefined;
|
|
20
|
-
send: () => Promise<Response | undefined>;
|
|
21
|
-
private getSendabilityPayload;
|
|
22
|
-
private getWebhookUrlWithParams;
|
|
23
|
-
}
|
|
24
|
-
export {};
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MessageSender = void 0;
|
|
4
|
-
const actions_core_1 = require("@segment/actions-core");
|
|
5
|
-
var SendabilityStatus;
|
|
6
|
-
(function (SendabilityStatus) {
|
|
7
|
-
SendabilityStatus["NoSenderPhone"] = "no_sender_phone";
|
|
8
|
-
SendabilityStatus["ShouldSend"] = "should_send";
|
|
9
|
-
SendabilityStatus["DoNotSend"] = "do_not_send";
|
|
10
|
-
SendabilityStatus["SendDisabled"] = "send_disabled";
|
|
11
|
-
SendabilityStatus["InvalidSubscriptionStatus"] = "invalid_subscription_status";
|
|
12
|
-
})(SendabilityStatus || (SendabilityStatus = {}));
|
|
13
|
-
class MessageSender {
|
|
14
|
-
constructor(request, payload, settings, statsClient, tags, logger) {
|
|
15
|
-
this.request = request;
|
|
16
|
-
this.payload = payload;
|
|
17
|
-
this.settings = settings;
|
|
18
|
-
this.statsClient = statsClient;
|
|
19
|
-
this.tags = tags;
|
|
20
|
-
this.logger = logger;
|
|
21
|
-
this.EXTERNAL_ID_KEY = 'phone';
|
|
22
|
-
this.DEFAULT_HOSTNAME = 'api.twilio.com';
|
|
23
|
-
this.DEFAULT_CONNECTION_OVERRIDES = 'rp=all&rc=5';
|
|
24
|
-
this.send = async () => {
|
|
25
|
-
const { phone, sendabilityStatus } = this.getSendabilityPayload();
|
|
26
|
-
if (sendabilityStatus !== SendabilityStatus.ShouldSend || !phone) {
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
const body = await this.getBody(phone);
|
|
30
|
-
const webhookUrlWithParams = this.getWebhookUrlWithParams(phone);
|
|
31
|
-
if (webhookUrlWithParams)
|
|
32
|
-
body.append('StatusCallback', webhookUrlWithParams);
|
|
33
|
-
const twilioHostname = this.settings.twilioHostname ?? this.DEFAULT_HOSTNAME;
|
|
34
|
-
const twilioToken = Buffer.from(`${this.settings.twilioApiKeySID}:${this.settings.twilioApiKeySecret}`).toString('base64');
|
|
35
|
-
try {
|
|
36
|
-
const response = await this.request(`https://${twilioHostname}/2010-04-01/Accounts/${this.settings.twilioAccountSID}/Messages.json`, {
|
|
37
|
-
method: 'POST',
|
|
38
|
-
headers: {
|
|
39
|
-
authorization: `Basic ${twilioToken}`
|
|
40
|
-
},
|
|
41
|
-
body
|
|
42
|
-
});
|
|
43
|
-
this.tags.push(`twilio_status_code:${response.status}`);
|
|
44
|
-
this.statsClient?.incr('actions-personas-messaging-twilio.response', 1, this.tags);
|
|
45
|
-
if (this.payload.eventOccurredTS != undefined) {
|
|
46
|
-
this.statsClient?.histogram('actions-personas-messaging-twilio.eventDeliveryTS', Date.now() - new Date(this.payload.eventOccurredTS).getTime(), this.tags);
|
|
47
|
-
}
|
|
48
|
-
return response;
|
|
49
|
-
}
|
|
50
|
-
catch (error) {
|
|
51
|
-
if (error instanceof Object) {
|
|
52
|
-
const twilioApiError = error;
|
|
53
|
-
this.logger?.error(`TE Messaging: Twilio Programmable API error - ${this.settings.spaceId} - [${JSON.stringify(twilioApiError.response.data)}]`);
|
|
54
|
-
const errorCode = twilioApiError.response.data.code;
|
|
55
|
-
if (errorCode === 63018) {
|
|
56
|
-
this.statsClient?.incr('actions-personas-messaging-twilio.rate-limited', 1, this.tags);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
throw error;
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
this.getSendabilityPayload = () => {
|
|
63
|
-
const nonSendableStatuses = ['unsubscribed', 'did not subscribed', 'false'];
|
|
64
|
-
const sendableStatuses = ['subscribed', 'true'];
|
|
65
|
-
const externalId = this.getExternalId();
|
|
66
|
-
let status;
|
|
67
|
-
if (!this.payload.send) {
|
|
68
|
-
this.statsClient?.incr('actions-personas-messaging-twilio.send-disabled', 1, this.tags);
|
|
69
|
-
return { sendabilityStatus: SendabilityStatus.SendDisabled, phone: undefined };
|
|
70
|
-
}
|
|
71
|
-
if (!externalId?.subscriptionStatus || nonSendableStatuses.includes(externalId.subscriptionStatus)) {
|
|
72
|
-
this.statsClient?.incr('actions-personas-messaging-twilio.notsubscribed', 1, this.tags);
|
|
73
|
-
status = SendabilityStatus.DoNotSend;
|
|
74
|
-
}
|
|
75
|
-
else if (sendableStatuses.includes(externalId.subscriptionStatus)) {
|
|
76
|
-
this.statsClient?.incr('actions-personas-messaging-twilio.subscribed', 1, this.tags);
|
|
77
|
-
status = SendabilityStatus.ShouldSend;
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
this.statsClient?.incr('actions-personas-messaging-twilio.twilio-error', 1, this.tags);
|
|
81
|
-
throw new actions_core_1.IntegrationError(`Failed to recognize the subscriptionStatus in the payload: "${externalId.subscriptionStatus}".`, 'Invalid subscriptionStatus value', 400);
|
|
82
|
-
}
|
|
83
|
-
const phone = this.payload.toNumber || externalId?.id;
|
|
84
|
-
if (!phone) {
|
|
85
|
-
status = SendabilityStatus.NoSenderPhone;
|
|
86
|
-
}
|
|
87
|
-
return { sendabilityStatus: status, phone };
|
|
88
|
-
};
|
|
89
|
-
this.getWebhookUrlWithParams = (phone) => {
|
|
90
|
-
const webhookUrl = this.settings.webhookUrl;
|
|
91
|
-
const connectionOverrides = this.settings.connectionOverrides;
|
|
92
|
-
const customArgs = {
|
|
93
|
-
...this.payload.customArgs,
|
|
94
|
-
space_id: this.settings.spaceId,
|
|
95
|
-
__segment_internal_external_id_key__: this.EXTERNAL_ID_KEY,
|
|
96
|
-
__segment_internal_external_id_value__: phone
|
|
97
|
-
};
|
|
98
|
-
if (webhookUrl && customArgs) {
|
|
99
|
-
const webhookUrlWithParams = new URL(webhookUrl);
|
|
100
|
-
for (const key of Object.keys(customArgs)) {
|
|
101
|
-
webhookUrlWithParams.searchParams.append(key, String(customArgs[key]));
|
|
102
|
-
}
|
|
103
|
-
webhookUrlWithParams.hash = connectionOverrides || this.DEFAULT_CONNECTION_OVERRIDES;
|
|
104
|
-
return webhookUrlWithParams.toString();
|
|
105
|
-
}
|
|
106
|
-
return null;
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
exports.MessageSender = MessageSender;
|
|
111
|
-
//# sourceMappingURL=message-sender.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"message-sender.js","sourceRoot":"","sources":["../../../../src/destinations/engage-messaging-twilio/utils/message-sender.ts"],"names":[],"mappings":";;;AAIA,wDAAwD;AAGxD,IAAK,iBAMJ;AAND,WAAK,iBAAiB;IACpB,sDAAiC,CAAA;IACjC,+CAA0B,CAAA;IAC1B,8CAAyB,CAAA;IACzB,mDAA8B,CAAA;IAC9B,8EAAyD,CAAA;AAC3D,CAAC,EANI,iBAAiB,KAAjB,iBAAiB,QAMrB;AAsBD,MAAsB,aAAa;IAKjC,YACW,OAAkB,EAClB,OAAmB,EACnB,QAAkB,EAClB,WAAoC,EACpC,IAA0B,EAC1B,MAA0B;QAL1B,YAAO,GAAP,OAAO,CAAW;QAClB,YAAO,GAAP,OAAO,CAAY;QACnB,aAAQ,GAAR,QAAQ,CAAU;QAClB,gBAAW,GAAX,WAAW,CAAyB;QACpC,SAAI,GAAJ,IAAI,CA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AAmB,GAAG,IAAI,CAAC,QAAQ,CAAC,mBAAmB,CAAA;YAC7D,MAAM,UAAU,GAAuC;gBACrD,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU;gBAC1B,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,OAAO;gBAC/B,oCAAoC,EAAE,IAAI,CAAC,eAAe;gBAC1D,sCAAsC,EAAE,KAAK;aAC9C,CAAA;YAED,IAAI,UAAU,IAAI,UAAU,EAAE;gBAI5B,MAAM,oBAAoB,GAAG,IAAI,GAAG,CAAC,UAAU,CAAC,CAAA;gBAChD,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE;oBACzC,oBAAoB,CAAC,YAAY,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;iBACvE;gBAED,oBAAoB,CAAC,IAAI,GAAG,mBAAmB,IAAI,IAAI,CAAC,4BAA4B,CAAA;gBAEpF,OAAO,oBAAoB,CAAC,QAAQ,EAAE,CAAA;aACvC;YAED,OAAO,IAAI,CAAA;QACb,CAAC,CAAA;IA5HE,CAAC;CA6HL;AAzID,sCAyIC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/facebook-custom-audiences/add/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const action = {
|
|
4
|
-
title: 'Add',
|
|
5
|
-
description: 'This action is in charge of adding elements to your audience.',
|
|
6
|
-
fields: {},
|
|
7
|
-
perform: (_request, _data) => {
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
exports.default = action;
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/facebook-custom-audiences/add/index.ts"],"names":[],"mappings":";;AAIA,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,KAAK;IACZ,WAAW,EAAE,+DAA+D;IAC5E,MAAM,EAAE,EAAE;IACV,OAAO,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE;IAM7B,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/facebook-custom-audiences/remove/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const action = {
|
|
4
|
-
title: 'Remove',
|
|
5
|
-
description: 'This action is in charge of removing elements to your audience.',
|
|
6
|
-
fields: {},
|
|
7
|
-
perform: (_request, _data) => {
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
exports.default = action;
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/facebook-custom-audiences/remove/index.ts"],"names":[],"mappings":";;AAIA,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,iEAAiE;IAC9E,MAAM,EAAE,EAAE;IACV,OAAO,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE;IAM7B,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.flattenObject = void 0;
|
|
4
|
-
function flattenObject(obj) {
|
|
5
|
-
if (typeof obj === 'undefined' || obj === null)
|
|
6
|
-
return obj;
|
|
7
|
-
const flattened = {};
|
|
8
|
-
Object.keys(obj).forEach((key) => {
|
|
9
|
-
if (typeof obj[key] === 'undefined' || obj[key] == null || !Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
10
|
-
return;
|
|
11
|
-
}
|
|
12
|
-
if (obj[key] instanceof Array) {
|
|
13
|
-
flattened[key] = obj[key]
|
|
14
|
-
.map((item) => (typeof item === 'object' ? JSON.stringify(item) : item))
|
|
15
|
-
.join(';');
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
if (typeof obj[key] === 'object') {
|
|
19
|
-
flattened[key] = JSON.stringify(obj[key]);
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
flattened[key] = obj[key];
|
|
23
|
-
});
|
|
24
|
-
return flattened;
|
|
25
|
-
}
|
|
26
|
-
exports.flattenObject = flattenObject;
|
|
27
|
-
//# sourceMappingURL=helperFunctions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helperFunctions.js","sourceRoot":"","sources":["../../../src/destinations/hubspot/helperFunctions.ts"],"names":[],"mappings":";;;AAKA,SAAgB,aAAa,CAAC,GAAe;IAC3C,IAAI,OAAO,GAAG,KAAK,WAAW,IAAI,GAAG,KAAK,IAAI;QAAE,OAAO,GAAG,CAAA;IAE1D,MAAM,SAAS,GAAe,EAAE,CAAA;IAEhC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,GAAW,EAAE,EAAE;QAGvC,IAAI,OAAO,GAAG,CAAC,GAAG,CAAC,KAAK,WAAW,IAAI,GAAG,CAAC,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE;YAC1G,OAAM;SACP;QAGD,IAAI,GAAG,CAAC,GAAG,CAAC,YAAY,KAAK,EAAE;YAC7B,SAAS,CAAC,GAAG,CAAC,GAAI,GAAG,CAAC,GAAG,CAAoB;iBAC1C,GAAG,CAAC,CAAC,IAAa,EAAE,EAAE,CAAC,CAAC,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;iBAChF,IAAI,CAAC,GAAG,CAAC,CAAA;YACZ,OAAM;SACP;QAGD,IAAI,OAAO,GAAG,CAAC,GAAG,CAAC,KAAK,QAAQ,EAAE;YAChC,SAAS,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAA;YACzC,OAAM;SACP;QAED,SAAS,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAA;IAC3B,CAAC,CAAC,CAAA;IAEF,OAAO,SAAS,CAAA;AAClB,CAAC;AA9BD,sCA8BC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare enum ApiRegions {
|
|
2
|
-
US = "US \uD83C\uDDFA\uD83C\uDDF8",
|
|
3
|
-
EU = "EU \uD83C\uDDEA\uD83C\uDDFA"
|
|
4
|
-
}
|
|
5
|
-
export declare enum StrictMode {
|
|
6
|
-
ON = "1",
|
|
7
|
-
OFF = "0"
|
|
8
|
-
}
|
|
9
|
-
export declare function getConcatenatedName(firstName: unknown, lastName: unknown, name: unknown): unknown;
|
|
10
|
-
export declare function getApiServerUrl(apiRegion: string | undefined): "https://api-eu.mixpanel.com" | "https://api.mixpanel.com";
|
|
11
|
-
export declare function getBrowser(userAgent: string): string;
|
|
12
|
-
export declare function getBrowserVersion(userAgent: string): string | undefined;
|
|
13
|
-
export declare function cheapGuid(maxlen?: number): string;
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.cheapGuid = exports.getBrowserVersion = exports.getBrowser = exports.getApiServerUrl = exports.getConcatenatedName = exports.StrictMode = exports.ApiRegions = void 0;
|
|
4
|
-
var ApiRegions;
|
|
5
|
-
(function (ApiRegions) {
|
|
6
|
-
ApiRegions["US"] = "US \uD83C\uDDFA\uD83C\uDDF8";
|
|
7
|
-
ApiRegions["EU"] = "EU \uD83C\uDDEA\uD83C\uDDFA";
|
|
8
|
-
})(ApiRegions = exports.ApiRegions || (exports.ApiRegions = {}));
|
|
9
|
-
var StrictMode;
|
|
10
|
-
(function (StrictMode) {
|
|
11
|
-
StrictMode["ON"] = "1";
|
|
12
|
-
StrictMode["OFF"] = "0";
|
|
13
|
-
})(StrictMode = exports.StrictMode || (exports.StrictMode = {}));
|
|
14
|
-
function getConcatenatedName(firstName, lastName, name) {
|
|
15
|
-
return name ?? (firstName && lastName ? `${firstName} ${lastName}` : undefined);
|
|
16
|
-
}
|
|
17
|
-
exports.getConcatenatedName = getConcatenatedName;
|
|
18
|
-
function getApiServerUrl(apiRegion) {
|
|
19
|
-
if (apiRegion == ApiRegions.EU) {
|
|
20
|
-
return 'https://api-eu.mixpanel.com';
|
|
21
|
-
}
|
|
22
|
-
return 'https://api.mixpanel.com';
|
|
23
|
-
}
|
|
24
|
-
exports.getApiServerUrl = getApiServerUrl;
|
|
25
|
-
function getBrowser(userAgent) {
|
|
26
|
-
if (userAgent.includes(' OPR/')) {
|
|
27
|
-
if (userAgent.includes('Mini')) {
|
|
28
|
-
return 'Opera Mini';
|
|
29
|
-
}
|
|
30
|
-
return 'Opera';
|
|
31
|
-
}
|
|
32
|
-
else if (/(BlackBerry|PlayBook|BB10)/i.test(userAgent)) {
|
|
33
|
-
return 'BlackBerry';
|
|
34
|
-
}
|
|
35
|
-
else if (userAgent.includes('IEMobile') || userAgent.includes('WPDesktop')) {
|
|
36
|
-
return 'Internet Explorer Mobile';
|
|
37
|
-
}
|
|
38
|
-
else if (userAgent.includes('SamsungBrowser/')) {
|
|
39
|
-
return 'Samsung Internet';
|
|
40
|
-
}
|
|
41
|
-
else if (userAgent.includes('Edge') || userAgent.includes('Edg/')) {
|
|
42
|
-
return 'Microsoft Edge';
|
|
43
|
-
}
|
|
44
|
-
else if (userAgent.includes('FBIOS')) {
|
|
45
|
-
return 'Facebook Mobile';
|
|
46
|
-
}
|
|
47
|
-
else if (userAgent.includes('Chrome')) {
|
|
48
|
-
return 'Chrome';
|
|
49
|
-
}
|
|
50
|
-
else if (userAgent.includes('CriOS')) {
|
|
51
|
-
return 'Chrome iOS';
|
|
52
|
-
}
|
|
53
|
-
else if (userAgent.includes('UCWEB') || userAgent.includes('UCBrowser')) {
|
|
54
|
-
return 'UC Browser';
|
|
55
|
-
}
|
|
56
|
-
else if (userAgent.includes('FxiOS')) {
|
|
57
|
-
return 'Firefox iOS';
|
|
58
|
-
}
|
|
59
|
-
else if (userAgent.includes('Safari')) {
|
|
60
|
-
return 'Safari';
|
|
61
|
-
}
|
|
62
|
-
else if (userAgent.includes('Android')) {
|
|
63
|
-
return 'Android Mobile';
|
|
64
|
-
}
|
|
65
|
-
else if (userAgent.includes('Konqueror')) {
|
|
66
|
-
return 'Konqueror';
|
|
67
|
-
}
|
|
68
|
-
else if (userAgent.includes('Firefox')) {
|
|
69
|
-
return 'Firefox';
|
|
70
|
-
}
|
|
71
|
-
else if (userAgent.includes('MSIE') || userAgent.includes('Trident/')) {
|
|
72
|
-
return 'Internet Explorer';
|
|
73
|
-
}
|
|
74
|
-
else if (userAgent.includes('Gecko')) {
|
|
75
|
-
return 'Mozilla';
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
return '';
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
exports.getBrowser = getBrowser;
|
|
82
|
-
function getBrowserVersion(userAgent) {
|
|
83
|
-
const browser = getBrowser(userAgent);
|
|
84
|
-
const versionRegexs = {
|
|
85
|
-
'Internet Explorer Mobile': /rv:(\d+(\.\d+)?)/,
|
|
86
|
-
'Microsoft Edge': /Edge?\/(\d+(\.\d+)?)/,
|
|
87
|
-
Chrome: /Chrome\/(\d+(\.\d+)?)/,
|
|
88
|
-
'Chrome iOS': /CriOS\/(\d+(\.\d+)?)/,
|
|
89
|
-
'UC Browser': /(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,
|
|
90
|
-
Safari: /Version\/(\d+(\.\d+)?)/,
|
|
91
|
-
'Mobile Safari': /Version\/(\d+(\.\d+)?)/,
|
|
92
|
-
Opera: /(Opera|OPR)\/(\d+(\.\d+)?)/,
|
|
93
|
-
Firefox: /Firefox\/(\d+(\.\d+)?)/,
|
|
94
|
-
'Firefox iOS': /FxiOS\/(\d+(\.\d+)?)/,
|
|
95
|
-
Konqueror: /Konqueror:(\d+(\.\d+)?)/,
|
|
96
|
-
BlackBerry: /BlackBerry (\d+(\.\d+)?)/,
|
|
97
|
-
'Android Mobile': /android\s(\d+(\.\d+)?)/,
|
|
98
|
-
'Samsung Internet': /SamsungBrowser\/(\d+(\.\d+)?)/,
|
|
99
|
-
'Internet Explorer': /(rv:|MSIE )(\d+(\.\d+)?)/,
|
|
100
|
-
Mozilla: /rv:(\d+(\.\d+)?)/
|
|
101
|
-
};
|
|
102
|
-
const regex = versionRegexs[browser];
|
|
103
|
-
if (!regex)
|
|
104
|
-
return regex;
|
|
105
|
-
const matches = regex.exec(userAgent);
|
|
106
|
-
if (!matches) {
|
|
107
|
-
return undefined;
|
|
108
|
-
}
|
|
109
|
-
return matches[matches.length - 2];
|
|
110
|
-
}
|
|
111
|
-
exports.getBrowserVersion = getBrowserVersion;
|
|
112
|
-
function cheapGuid(maxlen) {
|
|
113
|
-
const guid = Math.random().toString(36).substring(2, 10) + Math.random().toString(36).substring(2, 10);
|
|
114
|
-
return maxlen ? guid.substring(0, maxlen) : guid;
|
|
115
|
-
}
|
|
116
|
-
exports.cheapGuid = cheapGuid;
|
|
117
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/destinations/mixpanel/utils.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAGX;AA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-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.batch_size = exports.enable_batching = void 0;
|
|
4
|
-
exports.enable_batching = {
|
|
5
|
-
label: 'Use Responsys Async API',
|
|
6
|
-
description: 'Once enabled, Segment will collect events into batches of 200 before sending to Responsys.',
|
|
7
|
-
type: 'boolean',
|
|
8
|
-
default: true,
|
|
9
|
-
unsafe_hidden: true
|
|
10
|
-
};
|
|
11
|
-
exports.batch_size = {
|
|
12
|
-
label: 'Batch Size',
|
|
13
|
-
description: 'Maximum number of events to include in each batch. Actual batch sizes may be lower.',
|
|
14
|
-
type: 'number',
|
|
15
|
-
required: false,
|
|
16
|
-
unsafe_hidden: true,
|
|
17
|
-
default: 200
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=shared_properties.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shared_properties.js","sourceRoot":"","sources":["../../../src/destinations/responsys/shared_properties.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAe;IACzC,KAAK,EAAE,yBAAyB;IAChC,WAAW,EAAE,4FAA4F;IACzG,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAI;IACb,aAAa,EAAE,IAAI;CACpB,CAAA;AAEY,QAAA,UAAU,GAAe;IACpC,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,qFAAqF;IAClG,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,KAAK;IACf,aAAa,EAAE,IAAI;IACnB,OAAO,EAAE,GAAG;CACb,CAAA"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { InputField } from '@segment/actions-core/destination-kit/types';
|
|
2
|
-
export declare const CURRENCY_ISO_4217_CODES: Set<string>;
|
|
3
|
-
export declare const products: InputField;
|
|
4
|
-
export declare const event_type: InputField;
|
|
5
|
-
export declare const event_conversion_type: InputField;
|
|
6
|
-
export declare const event_tag: InputField;
|
|
7
|
-
export declare const timestamp: InputField;
|
|
8
|
-
export declare const email: InputField;
|
|
9
|
-
export declare const mobile_ad_id: InputField;
|
|
10
|
-
export declare const uuid_c1: InputField;
|
|
11
|
-
export declare const idfv: InputField;
|
|
12
|
-
export declare const phone_number: InputField;
|
|
13
|
-
export declare const user_agent: InputField;
|
|
14
|
-
export declare const ip_address: InputField;
|
|
15
|
-
export declare const item_category: InputField;
|
|
16
|
-
export declare const brands: InputField;
|
|
17
|
-
export declare const item_ids: InputField;
|
|
18
|
-
export declare const description: InputField;
|
|
19
|
-
export declare const number_items: InputField;
|
|
20
|
-
export declare const price: InputField;
|
|
21
|
-
export declare const currency: InputField;
|
|
22
|
-
export declare const transaction_id: InputField;
|
|
23
|
-
export declare const level: InputField;
|
|
24
|
-
export declare const client_dedup_id: InputField;
|
|
25
|
-
export declare const search_string: InputField;
|
|
26
|
-
export declare const page_url: InputField;
|
|
27
|
-
export declare const sign_up_method: InputField;
|
|
28
|
-
export declare const device_model: InputField;
|
|
29
|
-
export declare const os_version: InputField;
|
|
30
|
-
export declare const click_id: InputField;
|