@segment/action-destinations 3.188.0 → 3.189.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/app-fit/index.js +2 -2
- package/dist/destinations/app-fit/index.js.map +1 -1
- package/dist/destinations/app-fit/track/index.js +1 -1
- package/dist/destinations/app-fit/track/index.js.map +1 -1
- package/dist/destinations/attio/index.js +1 -1
- package/dist/destinations/attio/index.js.map +1 -1
- package/dist/destinations/{engage-messaging-twilio/utils/types.js → engage/sendgrid/Profile.js} +1 -1
- package/dist/destinations/engage/sendgrid/Profile.js.map +1 -0
- package/dist/destinations/engage/sendgrid/destinationDefinition.d.ts +3 -0
- package/dist/destinations/engage/sendgrid/destinationDefinition.js +70 -0
- package/dist/destinations/engage/sendgrid/destinationDefinition.js.map +1 -0
- package/dist/destinations/engage/sendgrid/generated-types.d.ts +1 -0
- package/dist/destinations/engage/sendgrid/generated-types.js +14 -0
- package/dist/destinations/engage/sendgrid/generated-types.js.map +1 -0
- package/dist/destinations/engage/sendgrid/index.d.ts +2 -0
- package/dist/destinations/engage/sendgrid/index.js +5 -0
- package/dist/destinations/engage/sendgrid/index.js.map +1 -0
- package/dist/destinations/{engage-messaging-sendgrid/previewApiLookup/index.d.ts → engage/sendgrid/previewApiLookup/actionDefinition.d.ts} +1 -2
- package/dist/destinations/{engage-messaging-sendgrid/previewApiLookup/index.js → engage/sendgrid/previewApiLookup/actionDefinition.js} +4 -4
- package/dist/destinations/engage/sendgrid/previewApiLookup/actionDefinition.js.map +1 -0
- package/dist/destinations/{engage-messaging-sendgrid/utils → engage/sendgrid/previewApiLookup}/api-lookups.d.ts +2 -4
- package/dist/destinations/{engage-messaging-sendgrid/utils → engage/sendgrid/previewApiLookup}/api-lookups.js +1 -15
- package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js.map +1 -0
- package/dist/destinations/engage/sendgrid/previewApiLookup/generated-types.d.ts +1 -0
- package/dist/destinations/engage/sendgrid/previewApiLookup/generated-types.js +14 -0
- package/dist/destinations/engage/sendgrid/previewApiLookup/generated-types.js.map +1 -0
- package/dist/destinations/engage/sendgrid/previewApiLookup/index.d.ts +2 -0
- package/dist/destinations/{engage-messaging-twilio/utils → engage/sendgrid/previewApiLookup}/index.js +2 -6
- package/dist/destinations/engage/sendgrid/previewApiLookup/index.js.map +1 -0
- package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.d.ts +42 -0
- package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js +318 -0
- package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js.map +1 -0
- package/dist/destinations/engage/sendgrid/sendEmail/UnlayerResponse.d.ts +12 -0
- package/dist/destinations/engage/sendgrid/sendEmail/UnlayerResponse.js +3 -0
- package/dist/destinations/engage/sendgrid/sendEmail/UnlayerResponse.js.map +1 -0
- package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.d.ts +4 -0
- package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.js +236 -0
- package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.js.map +1 -0
- package/dist/destinations/engage/sendgrid/sendEmail/generated-types.d.ts +1 -0
- package/dist/destinations/engage/sendgrid/sendEmail/generated-types.js +14 -0
- package/dist/destinations/engage/sendgrid/sendEmail/generated-types.js.map +1 -0
- package/dist/destinations/engage/sendgrid/sendEmail/index.d.ts +1 -0
- package/dist/destinations/engage/sendgrid/sendEmail/index.js +14 -0
- package/dist/destinations/engage/sendgrid/sendEmail/index.js.map +1 -0
- package/dist/destinations/engage/sendgrid/sendEmail/insertEmailPreviewText.d.ts +1 -0
- package/dist/destinations/engage/sendgrid/sendEmail/insertEmailPreviewText.js +23 -0
- package/dist/destinations/engage/sendgrid/sendEmail/insertEmailPreviewText.js.map +1 -0
- package/dist/destinations/engage/sendgrid/sendEmail/isRestrictedDomain.d.ts +1 -0
- package/dist/destinations/engage/sendgrid/sendEmail/isRestrictedDomain.js +14 -0
- package/dist/destinations/engage/sendgrid/sendEmail/isRestrictedDomain.js.map +1 -0
- package/dist/destinations/engage/twilio/destinationDefinition.d.ts +3 -0
- package/dist/destinations/engage/twilio/destinationDefinition.js +172 -0
- package/dist/destinations/engage/twilio/destinationDefinition.js.map +1 -0
- package/dist/destinations/engage/twilio/generated-types.d.ts +1 -0
- package/dist/destinations/engage/twilio/generated-types.js +14 -0
- package/dist/destinations/engage/twilio/generated-types.js.map +1 -0
- package/dist/destinations/engage/twilio/index.d.ts +2 -0
- package/dist/destinations/engage/twilio/index.js +5 -0
- package/dist/destinations/engage/twilio/index.js.map +1 -0
- package/dist/destinations/engage/twilio/sendMobilePush/PushSender.d.ts +27 -0
- package/dist/destinations/engage/twilio/sendMobilePush/PushSender.js +142 -0
- package/dist/destinations/engage/twilio/sendMobilePush/PushSender.js.map +1 -0
- package/dist/destinations/engage/twilio/sendMobilePush/actionDefinition.d.ts +4 -0
- package/dist/destinations/{engage-messaging-twilio/sendMobilePush/index.js → engage/twilio/sendMobilePush/actionDefinition.js} +5 -5
- package/dist/destinations/engage/twilio/sendMobilePush/actionDefinition.js.map +1 -0
- package/dist/destinations/engage/twilio/sendMobilePush/generated-types.d.ts +1 -0
- package/dist/destinations/engage/twilio/sendMobilePush/generated-types.js +14 -0
- package/dist/destinations/engage/twilio/sendMobilePush/generated-types.js.map +1 -0
- package/dist/destinations/engage/twilio/sendMobilePush/index.d.ts +1 -0
- package/dist/destinations/engage/twilio/sendMobilePush/index.js +14 -0
- package/dist/destinations/engage/twilio/sendMobilePush/index.js.map +1 -0
- package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.d.ts +9 -0
- package/dist/destinations/{engage-messaging-twilio/sendSms/sms-sender.js → engage/twilio/sendSms/SmsMessageSender.js} +5 -32
- package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.js.map +1 -0
- package/dist/destinations/engage/twilio/sendSms/actionDefinition.d.ts +4 -0
- package/dist/destinations/{engage-messaging-twilio/sendSms/index.js → engage/twilio/sendSms/actionDefinition.js} +5 -5
- package/dist/destinations/engage/twilio/sendSms/actionDefinition.js.map +1 -0
- package/dist/destinations/engage/twilio/sendSms/generated-types.d.ts +1 -0
- package/dist/destinations/engage/twilio/sendSms/generated-types.js +14 -0
- package/dist/destinations/engage/twilio/sendSms/generated-types.js.map +1 -0
- package/dist/destinations/engage/twilio/sendSms/index.d.ts +1 -0
- package/dist/destinations/engage/twilio/sendSms/index.js +14 -0
- package/dist/destinations/engage/twilio/sendSms/index.js.map +1 -0
- package/dist/destinations/engage/twilio/sendWhatsApp/WhatsAppMessageSender.d.ts +8 -0
- package/dist/destinations/{engage-messaging-twilio/sendWhatsApp/whatsapp-sender.js → engage/twilio/sendWhatsApp/WhatsAppMessageSender.js} +8 -4
- package/dist/destinations/engage/twilio/sendWhatsApp/WhatsAppMessageSender.js.map +1 -0
- package/dist/destinations/engage/twilio/sendWhatsApp/actionDefinition.d.ts +4 -0
- package/dist/destinations/{engage-messaging-twilio/sendWhatsApp/index.js → engage/twilio/sendWhatsApp/actionDefinition.js} +5 -5
- package/dist/destinations/engage/twilio/sendWhatsApp/actionDefinition.js.map +1 -0
- package/dist/destinations/engage/twilio/sendWhatsApp/generated-types.d.ts +1 -0
- package/dist/destinations/engage/twilio/sendWhatsApp/generated-types.js +14 -0
- package/dist/destinations/engage/twilio/sendWhatsApp/generated-types.js.map +1 -0
- package/dist/destinations/engage/twilio/sendWhatsApp/index.d.ts +1 -0
- package/dist/destinations/engage/twilio/sendWhatsApp/index.js +14 -0
- package/dist/destinations/engage/twilio/sendWhatsApp/index.js.map +1 -0
- package/dist/destinations/engage/twilio/utils/PhoneMessageSender.d.ts +16 -0
- package/dist/destinations/engage/twilio/utils/PhoneMessageSender.js +57 -0
- package/dist/destinations/engage/twilio/utils/PhoneMessageSender.js.map +1 -0
- package/dist/destinations/engage/twilio/utils/TwilioMessageSender.d.ts +16 -0
- package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js +109 -0
- package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js.map +1 -0
- package/dist/destinations/engage/twilio/utils/index.d.ts +2 -0
- package/dist/destinations/engage/twilio/utils/index.js +15 -0
- package/dist/destinations/engage/twilio/utils/index.js.map +1 -0
- package/dist/destinations/{engage-messaging-twilio → engage/twilio}/utils/types.d.ts +0 -16
- package/dist/destinations/engage/twilio/utils/types.js.map +1 -0
- package/dist/destinations/engage/utils/AggregateError.d.ts +14 -0
- package/dist/destinations/engage/utils/AggregateError.js +26 -0
- package/dist/destinations/engage/utils/AggregateError.js.map +1 -0
- package/dist/destinations/engage/utils/EngageActionPerformer.d.ts +41 -0
- package/dist/destinations/engage/utils/EngageActionPerformer.js +135 -0
- package/dist/destinations/engage/utils/EngageActionPerformer.js.map +1 -0
- package/dist/destinations/{engage-messaging-twilio/utils/MessageLogger.d.ts → engage/utils/EngageLogger.d.ts} +8 -5
- package/dist/destinations/engage/utils/EngageLogger.js +52 -0
- package/dist/destinations/engage/utils/EngageLogger.js.map +1 -0
- package/dist/destinations/engage/utils/EngageStats.d.ts +18 -0
- package/dist/destinations/{engage-messaging-twilio/utils/MessageStats.js → engage/utils/EngageStats.js} +28 -14
- package/dist/destinations/engage/utils/EngageStats.js.map +1 -0
- package/dist/destinations/{engage-messaging-twilio → engage}/utils/IntegrationErrorWrapper.d.ts +2 -2
- package/dist/destinations/{engage-messaging-twilio → engage}/utils/IntegrationErrorWrapper.js +1 -1
- package/dist/destinations/engage/utils/IntegrationErrorWrapper.js.map +1 -0
- package/dist/destinations/engage/utils/MessageSendPerformer.d.ts +63 -0
- package/dist/destinations/engage/utils/MessageSendPerformer.js +191 -0
- package/dist/destinations/engage/utils/MessageSendPerformer.js.map +1 -0
- package/dist/destinations/engage/utils/ResponseError.d.ts +20 -0
- package/dist/destinations/engage/utils/ResponseError.js +17 -0
- package/dist/destinations/engage/utils/ResponseError.js.map +1 -0
- package/dist/destinations/engage/utils/getProfileApiEndpoint.d.ts +2 -0
- package/dist/destinations/engage/utils/getProfileApiEndpoint.js +10 -0
- package/dist/destinations/engage/utils/getProfileApiEndpoint.js.map +1 -0
- package/dist/destinations/engage/utils/index.d.ts +9 -0
- package/dist/destinations/engage/utils/index.js +22 -0
- package/dist/destinations/engage/utils/index.js.map +1 -0
- package/dist/destinations/engage/utils/isDestinationActionService.js.map +1 -0
- package/dist/destinations/engage/utils/isRetryableError.d.ts +2 -0
- package/dist/destinations/engage/utils/isRetryableError.js +33 -0
- package/dist/destinations/engage/utils/isRetryableError.js.map +1 -0
- package/dist/destinations/engage/utils/operationTracking/GenericMethodDecorator.js.map +1 -0
- package/dist/destinations/engage/utils/operationTracking/OperationDecorator.js.map +1 -0
- package/dist/destinations/engage/utils/operationTracking/OperationDuration.js.map +1 -0
- package/dist/destinations/engage/utils/operationTracking/OperationErrorHandler.js.map +1 -0
- package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationFinallyHooks.d.ts +4 -0
- package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationFinallyHooks.js +2 -0
- package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.js.map +1 -0
- package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationLogger.d.ts +2 -1
- package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationLogger.js +22 -25
- package/dist/destinations/engage/utils/operationTracking/OperationLogger.js.map +1 -0
- package/dist/destinations/engage/utils/operationTracking/OperationStats.js.map +1 -0
- package/dist/destinations/engage/utils/operationTracking/OperationTracker.test.js.map +1 -0
- package/dist/destinations/engage/utils/operationTracking/OperationTree.js.map +1 -0
- package/dist/destinations/engage/utils/operationTracking/TrackedError.js.map +1 -0
- package/dist/destinations/engage/utils/operationTracking/index.js.map +1 -0
- package/dist/destinations/engage/utils/operationTracking/wrapTryCatchFinallyPromisable.js.map +1 -0
- package/dist/destinations/engage/utils/testUtils.d.ts +6 -0
- package/dist/destinations/engage/utils/testUtils.js +26 -0
- package/dist/destinations/engage/utils/testUtils.js.map +1 -0
- package/dist/destinations/engage/utils/track.d.ts +52 -0
- package/dist/destinations/engage/utils/track.js +9 -0
- package/dist/destinations/engage/utils/track.js.map +1 -0
- package/dist/destinations/engage-messaging-sendgrid/index.d.ts +2 -3
- package/dist/destinations/engage-messaging-sendgrid/index.js +13 -67
- package/dist/destinations/engage-messaging-sendgrid/index.js.map +1 -1
- package/dist/destinations/engage-messaging-sendgrid/previewApiLookup.types.js +3 -0
- package/dist/destinations/engage-messaging-sendgrid/previewApiLookup.types.js.map +1 -0
- package/dist/destinations/engage-messaging-sendgrid/sendEmail.types.js +3 -0
- package/dist/destinations/engage-messaging-sendgrid/sendEmail.types.js.map +1 -0
- package/dist/destinations/engage-messaging-twilio/index.d.ts +2 -3
- package/dist/destinations/engage-messaging-twilio/index.js +13 -169
- package/dist/destinations/engage-messaging-twilio/index.js.map +1 -1
- package/dist/destinations/engage-messaging-twilio/sendMobilePush.types.js +3 -0
- package/dist/destinations/engage-messaging-twilio/sendMobilePush.types.js.map +1 -0
- package/dist/destinations/engage-messaging-twilio/sendSms.types.js +3 -0
- package/dist/destinations/engage-messaging-twilio/sendSms.types.js.map +1 -0
- package/dist/destinations/engage-messaging-twilio/sendWhatsApp.types.js +3 -0
- package/dist/destinations/engage-messaging-twilio/sendWhatsApp.types.js.map +1 -0
- package/dist/destinations/hilo/generated-types.d.ts +3 -0
- package/dist/destinations/hilo/generated-types.js.map +1 -0
- package/dist/destinations/hilo/group/generated-types.d.ts +9 -0
- package/dist/destinations/hilo/group/generated-types.js.map +1 -0
- package/dist/destinations/hilo/group/index.js +59 -0
- package/dist/destinations/hilo/group/index.js.map +1 -0
- package/dist/destinations/hilo/identify/generated-types.d.ts +8 -0
- package/dist/destinations/hilo/identify/generated-types.js.map +1 -0
- package/dist/destinations/hilo/identify/index.js +51 -0
- package/dist/destinations/hilo/identify/index.js.map +1 -0
- package/dist/destinations/hilo/index.d.ts +4 -0
- package/dist/destinations/hilo/index.js +103 -0
- package/dist/destinations/hilo/index.js.map +1 -0
- package/dist/destinations/hilo/page/generated-types.d.ts +9 -0
- package/dist/destinations/hilo/page/generated-types.js.map +1 -0
- package/dist/destinations/{engage-messaging-sendgrid/sendEmail → hilo/page}/index.d.ts +1 -1
- package/dist/destinations/hilo/page/index.js +59 -0
- package/dist/destinations/hilo/page/index.js.map +1 -0
- package/dist/destinations/hilo/screen/generated-types.d.ts +9 -0
- package/dist/destinations/hilo/screen/generated-types.js.map +1 -0
- package/dist/destinations/{engage-messaging-twilio/sendMobilePush → hilo/screen}/index.d.ts +1 -1
- package/dist/destinations/hilo/screen/index.js +59 -0
- package/dist/destinations/hilo/screen/index.js.map +1 -0
- package/dist/destinations/hilo/track/generated-types.d.ts +9 -0
- package/dist/destinations/hilo/track/generated-types.js +3 -0
- package/dist/destinations/hilo/track/generated-types.js.map +1 -0
- package/dist/destinations/hilo/track/index.d.ts +5 -0
- package/dist/destinations/hilo/track/index.js +59 -0
- package/dist/destinations/hilo/track/index.js.map +1 -0
- package/dist/destinations/hubspot/api/index.d.ts +11 -5
- package/dist/destinations/hubspot/api/index.js +59 -24
- package/dist/destinations/hubspot/api/index.js.map +1 -1
- package/dist/destinations/hubspot/errors.d.ts +2 -0
- package/dist/destinations/hubspot/errors.js +3 -1
- package/dist/destinations/hubspot/errors.js.map +1 -1
- package/dist/destinations/hubspot/upsertCompany/index.js +1 -1
- package/dist/destinations/hubspot/upsertCompany/index.js.map +1 -1
- package/dist/destinations/hubspot/upsertCustomObjectRecord/generated-types.d.ts +5 -0
- package/dist/destinations/hubspot/upsertCustomObjectRecord/index.js +113 -22
- package/dist/destinations/hubspot/upsertCustomObjectRecord/index.js.map +1 -1
- package/dist/destinations/hubspot/utils.d.ts +23 -0
- package/dist/destinations/hubspot/utils.js +7 -1
- package/dist/destinations/hubspot/utils.js.map +1 -1
- package/dist/destinations/index.js +5 -2
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/iterable/generated-types.d.ts +1 -0
- package/dist/destinations/iterable/index.js +20 -1
- package/dist/destinations/iterable/index.js.map +1 -1
- package/dist/destinations/iterable/index.test.d.ts +1 -0
- package/dist/destinations/iterable/index.test.js +46 -0
- package/dist/destinations/iterable/index.test.js.map +1 -0
- package/dist/destinations/iterable/shared-fields.d.ts +1 -0
- package/dist/destinations/iterable/trackEvent/index.js +3 -2
- package/dist/destinations/iterable/trackEvent/index.js.map +1 -1
- package/dist/destinations/iterable/trackPurchase/index.js +3 -2
- package/dist/destinations/iterable/trackPurchase/index.js.map +1 -1
- package/dist/destinations/iterable/updateCart/index.js +3 -2
- package/dist/destinations/iterable/updateCart/index.js.map +1 -1
- package/dist/destinations/iterable/updateUser/index.js +3 -2
- package/dist/destinations/iterable/updateUser/index.js.map +1 -1
- package/dist/destinations/iterable/utils.d.ts +9 -1
- package/dist/destinations/iterable/utils.js +18 -1
- package/dist/destinations/iterable/utils.js.map +1 -1
- package/dist/destinations/rehook/generated-types.d.ts +4 -0
- package/dist/destinations/rehook/generated-types.js +3 -0
- package/dist/destinations/rehook/generated-types.js.map +1 -0
- package/dist/destinations/rehook/identifyUser/generated-types.d.ts +7 -0
- package/dist/destinations/rehook/identifyUser/generated-types.js +3 -0
- package/dist/destinations/rehook/identifyUser/generated-types.js.map +1 -0
- package/dist/destinations/rehook/identifyUser/index.d.ts +5 -0
- package/dist/destinations/rehook/identifyUser/index.js +44 -0
- package/dist/destinations/rehook/identifyUser/index.js.map +1 -0
- package/dist/destinations/rehook/index.d.ts +4 -0
- package/dist/destinations/rehook/index.js +47 -0
- package/dist/destinations/rehook/index.js.map +1 -0
- package/dist/destinations/rehook/trackEvent/generated-types.d.ts +7 -0
- package/dist/destinations/rehook/trackEvent/generated-types.js +3 -0
- package/dist/destinations/rehook/trackEvent/generated-types.js.map +1 -0
- package/dist/destinations/rehook/trackEvent/index.d.ts +5 -0
- package/dist/destinations/rehook/trackEvent/index.js +48 -0
- package/dist/destinations/rehook/trackEvent/index.js.map +1 -0
- package/package.json +2 -2
- package/dist/destinations/engage-messaging-sendgrid/previewApiLookup/generated-types.js.map +0 -1
- package/dist/destinations/engage-messaging-sendgrid/previewApiLookup/index.js.map +0 -1
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/generated-types.js.map +0 -1
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js +0 -578
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js.map +0 -1
- package/dist/destinations/engage-messaging-sendgrid/utils/api-lookups.js.map +0 -1
- package/dist/destinations/engage-messaging-sendgrid/utils/types.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/operationTracking/GenericMethodDecorator.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/operationTracking/OperationDecorator.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/operationTracking/OperationDuration.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/operationTracking/OperationErrorHandler.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/operationTracking/OperationFinallyHooks.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/operationTracking/OperationLogger.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/operationTracking/OperationStats.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/operationTracking/OperationTracker.test.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/operationTracking/OperationTree.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/operationTracking/TrackedError.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/operationTracking/index.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/operationTracking/wrapTryCatchFinallyPromisable.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/sendMobilePush/generated-types.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/sendMobilePush/index.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/sendMobilePush/push-sender.d.ts +0 -17
- package/dist/destinations/engage-messaging-twilio/sendMobilePush/push-sender.js +0 -182
- package/dist/destinations/engage-messaging-twilio/sendMobilePush/push-sender.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/sendSms/generated-types.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/sendSms/index.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/sendSms/sms-sender.d.ts +0 -9
- package/dist/destinations/engage-messaging-twilio/sendSms/sms-sender.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/sendWhatsApp/generated-types.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/sendWhatsApp/index.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/sendWhatsApp/whatsapp-sender.d.ts +0 -7
- package/dist/destinations/engage-messaging-twilio/sendWhatsApp/whatsapp-sender.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/utils/IntegrationErrorWrapper.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/utils/MessageLogger.js +0 -36
- package/dist/destinations/engage-messaging-twilio/utils/MessageLogger.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/utils/MessageStats.d.ts +0 -14
- package/dist/destinations/engage-messaging-twilio/utils/MessageStats.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/utils/index.d.ts +0 -6
- package/dist/destinations/engage-messaging-twilio/utils/index.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/utils/isDestinationActionService.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/utils/message-sender.d.ts +0 -43
- package/dist/destinations/engage-messaging-twilio/utils/message-sender.js +0 -203
- package/dist/destinations/engage-messaging-twilio/utils/message-sender.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/utils/phone-message.d.ts +0 -19
- package/dist/destinations/engage-messaging-twilio/utils/phone-message.js +0 -97
- package/dist/destinations/engage-messaging-twilio/utils/phone-message.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/utils/track.d.ts +0 -45
- package/dist/destinations/engage-messaging-twilio/utils/track.js +0 -9
- package/dist/destinations/engage-messaging-twilio/utils/track.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/utils/types.js.map +0 -1
- /package/dist/destinations/{engage-messaging-sendgrid/utils/types.d.ts → engage/sendgrid/Profile.d.ts} +0 -0
- /package/dist/destinations/{engage-messaging-sendgrid → engage/twilio}/utils/types.js +0 -0
- /package/dist/destinations/{engage-messaging-twilio → engage}/utils/isDestinationActionService.d.ts +0 -0
- /package/dist/destinations/{engage-messaging-twilio → engage}/utils/isDestinationActionService.js +0 -0
- /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/GenericMethodDecorator.d.ts +0 -0
- /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/GenericMethodDecorator.js +0 -0
- /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationDecorator.d.ts +0 -0
- /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationDecorator.js +0 -0
- /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationDuration.d.ts +0 -0
- /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationDuration.js +0 -0
- /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationErrorHandler.d.ts +0 -0
- /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationErrorHandler.js +0 -0
- /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationStats.d.ts +0 -0
- /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationStats.js +0 -0
- /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationTracker.test.d.ts +0 -0
- /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationTracker.test.js +0 -0
- /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationTree.d.ts +0 -0
- /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationTree.js +0 -0
- /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/TrackedError.d.ts +0 -0
- /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/TrackedError.js +0 -0
- /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/index.d.ts +0 -0
- /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/index.js +0 -0
- /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/wrapTryCatchFinallyPromisable.d.ts +0 -0
- /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/wrapTryCatchFinallyPromisable.js +0 -0
- /package/dist/destinations/engage-messaging-sendgrid/{previewApiLookup/generated-types.d.ts → previewApiLookup.types.d.ts} +0 -0
- /package/dist/destinations/engage-messaging-sendgrid/{sendEmail/generated-types.d.ts → sendEmail.types.d.ts} +0 -0
- /package/dist/destinations/engage-messaging-twilio/{sendMobilePush/generated-types.d.ts → sendMobilePush.types.d.ts} +0 -0
- /package/dist/destinations/engage-messaging-twilio/{sendSms/generated-types.d.ts → sendSms.types.d.ts} +0 -0
- /package/dist/destinations/engage-messaging-twilio/{sendWhatsApp/generated-types.d.ts → sendWhatsApp.types.d.ts} +0 -0
- /package/dist/destinations/{engage-messaging-sendgrid/previewApiLookup → hilo}/generated-types.js +0 -0
- /package/dist/destinations/{engage-messaging-sendgrid/sendEmail → hilo/group}/generated-types.js +0 -0
- /package/dist/destinations/{engage-messaging-twilio/sendSms → hilo/group}/index.d.ts +0 -0
- /package/dist/destinations/{engage-messaging-twilio/sendMobilePush → hilo/identify}/generated-types.js +0 -0
- /package/dist/destinations/{engage-messaging-twilio/sendWhatsApp → hilo/identify}/index.d.ts +0 -0
- /package/dist/destinations/{engage-messaging-twilio/sendSms → hilo/page}/generated-types.js +0 -0
- /package/dist/destinations/{engage-messaging-twilio/sendWhatsApp → hilo/screen}/generated-types.js +0 -0
|
@@ -1,175 +1,19 @@
|
|
|
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
|
+
};
|
|
2
12
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
13
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
14
|
};
|
|
5
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const getRange = (val) => {
|
|
10
|
-
return Array(val)
|
|
11
|
-
.fill(1)
|
|
12
|
-
.map((x, y) => ({ value: x + y, label: `${x + y}` }));
|
|
13
|
-
};
|
|
14
|
-
const ConnectionOverridesProperties = {
|
|
15
|
-
ct: {
|
|
16
|
-
label: 'Connection timeout',
|
|
17
|
-
description: 'The timeout in milliseconds Twilio will wait to establish its TCP connection to your webserver',
|
|
18
|
-
type: 'number',
|
|
19
|
-
default: 5000,
|
|
20
|
-
choices: getRange(10000)
|
|
21
|
-
},
|
|
22
|
-
rt: {
|
|
23
|
-
label: 'Read timeout',
|
|
24
|
-
description: 'The amount of time in milliseconds after sending your webhook an HTTP request that Twilio will wait for the initial HTTP response packet',
|
|
25
|
-
type: 'number',
|
|
26
|
-
default: 15000,
|
|
27
|
-
choices: getRange(15000)
|
|
28
|
-
},
|
|
29
|
-
tt: {
|
|
30
|
-
label: 'Total timeout',
|
|
31
|
-
description: 'The total time allowed for all timeouts including retries',
|
|
32
|
-
type: 'number',
|
|
33
|
-
default: 15000,
|
|
34
|
-
choices: getRange(15000)
|
|
35
|
-
},
|
|
36
|
-
rc: {
|
|
37
|
-
label: 'Retry count',
|
|
38
|
-
description: 'The number of retry attempts Twilio will make if its connection to your webhook fails',
|
|
39
|
-
type: 'number',
|
|
40
|
-
default: 1,
|
|
41
|
-
choices: getRange(5)
|
|
42
|
-
},
|
|
43
|
-
rp: {
|
|
44
|
-
label: 'Retry policy',
|
|
45
|
-
description: 'The type of failure to retry on',
|
|
46
|
-
type: 'string',
|
|
47
|
-
default: 'ct',
|
|
48
|
-
choices: ['ct', '4xx', '5xx', 'rt', 'all']
|
|
49
|
-
},
|
|
50
|
-
sni: {
|
|
51
|
-
label: 'SNI',
|
|
52
|
-
description: 'The type of failure to retry on',
|
|
53
|
-
type: 'string',
|
|
54
|
-
default: 'unset',
|
|
55
|
-
choices: ['y', 'n', 'unser']
|
|
56
|
-
},
|
|
57
|
-
e: {
|
|
58
|
-
label: 'Edge location',
|
|
59
|
-
description: 'The Twilio edge location where webhooks egress. This can be a list and we rotate through the list as retries happen.',
|
|
60
|
-
type: 'string',
|
|
61
|
-
default: 'ashburn',
|
|
62
|
-
choices: [
|
|
63
|
-
'ashburn',
|
|
64
|
-
'ashburn-ix',
|
|
65
|
-
'dublin',
|
|
66
|
-
'frankfurt',
|
|
67
|
-
'frankfurt-ix',
|
|
68
|
-
'sao-paulo',
|
|
69
|
-
'singapore',
|
|
70
|
-
'sydney',
|
|
71
|
-
'tokyo',
|
|
72
|
-
'umatilla',
|
|
73
|
-
'london-ix',
|
|
74
|
-
'san-jose-ix',
|
|
75
|
-
'singapore-ix'
|
|
76
|
-
]
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
const destination = {
|
|
80
|
-
name: 'Engage Messaging Twilio',
|
|
81
|
-
slug: 'actions-personas-messaging-twilio',
|
|
82
|
-
mode: 'cloud',
|
|
83
|
-
description: 'This is an Engage specific action to send an SMS and Whatsapp messages using Twilio API',
|
|
84
|
-
authentication: {
|
|
85
|
-
scheme: 'custom',
|
|
86
|
-
fields: {
|
|
87
|
-
twilioAccountSID: {
|
|
88
|
-
label: 'Twilio Account SID',
|
|
89
|
-
description: 'Twilio Account SID',
|
|
90
|
-
type: 'string',
|
|
91
|
-
required: true
|
|
92
|
-
},
|
|
93
|
-
twilioApiKeySID: {
|
|
94
|
-
label: 'Twilio API Key SID',
|
|
95
|
-
description: 'Twilio API Key SID',
|
|
96
|
-
type: 'string',
|
|
97
|
-
required: true
|
|
98
|
-
},
|
|
99
|
-
twilioApiKeySecret: {
|
|
100
|
-
label: 'Twilio API Key Secret',
|
|
101
|
-
description: 'Twilio API Key Secret',
|
|
102
|
-
type: 'password',
|
|
103
|
-
required: true
|
|
104
|
-
},
|
|
105
|
-
profileApiEnvironment: {
|
|
106
|
-
label: 'Profile API Environment',
|
|
107
|
-
description: 'Profile API Environment',
|
|
108
|
-
type: 'string',
|
|
109
|
-
required: true
|
|
110
|
-
},
|
|
111
|
-
profileApiAccessToken: {
|
|
112
|
-
label: 'Profile API Access Token',
|
|
113
|
-
description: 'Profile API Access Token',
|
|
114
|
-
type: 'password',
|
|
115
|
-
required: true
|
|
116
|
-
},
|
|
117
|
-
spaceId: {
|
|
118
|
-
label: 'Space ID',
|
|
119
|
-
description: 'Space ID',
|
|
120
|
-
type: 'string',
|
|
121
|
-
required: true
|
|
122
|
-
},
|
|
123
|
-
sourceId: {
|
|
124
|
-
label: 'Source ID',
|
|
125
|
-
description: 'Source ID',
|
|
126
|
-
type: 'string',
|
|
127
|
-
required: true
|
|
128
|
-
},
|
|
129
|
-
webhookUrl: {
|
|
130
|
-
label: 'Webhook URL',
|
|
131
|
-
description: 'Webhook URL that will receive all events for the sent message',
|
|
132
|
-
type: 'string',
|
|
133
|
-
format: 'uri',
|
|
134
|
-
required: false
|
|
135
|
-
},
|
|
136
|
-
twilioHostname: {
|
|
137
|
-
label: 'Twilio host name',
|
|
138
|
-
description: 'Overrides the default Twilio host name used mainly for testing without having to send real messages.',
|
|
139
|
-
type: 'string',
|
|
140
|
-
default: 'api.twilio.com',
|
|
141
|
-
required: false
|
|
142
|
-
},
|
|
143
|
-
connectionOverrides: {
|
|
144
|
-
label: 'Connection Overrides',
|
|
145
|
-
description: 'Connection overrides are configuration supported by twilio webhook services. Must be passed as fragments on the callback url',
|
|
146
|
-
type: 'string',
|
|
147
|
-
required: false,
|
|
148
|
-
default: 'rp=all&rc=5',
|
|
149
|
-
properties: ConnectionOverridesProperties
|
|
150
|
-
},
|
|
151
|
-
region: {
|
|
152
|
-
label: 'Region',
|
|
153
|
-
description: 'The region where the message is originating from',
|
|
154
|
-
type: 'string',
|
|
155
|
-
choices: [
|
|
156
|
-
{ value: 'us-west-2', label: 'US West 2' },
|
|
157
|
-
{ value: 'eu-west-1', label: 'EU West 1' }
|
|
158
|
-
],
|
|
159
|
-
default: 'us-west-2',
|
|
160
|
-
required: false
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
testAuthentication: (request, options) => {
|
|
164
|
-
const hostName = options.settings.twilioHostname ?? 'api.twilio.com';
|
|
165
|
-
return request(`https://${hostName}/2010-04-01`);
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
actions: {
|
|
169
|
-
sendSms: sendSms_1.default,
|
|
170
|
-
sendWhatsApp: sendWhatsApp_1.default,
|
|
171
|
-
sendMobilePush: sendMobilePush_1.default
|
|
172
|
-
}
|
|
173
|
-
};
|
|
174
|
-
exports.default = destination;
|
|
16
|
+
const twilio_1 = __importDefault(require("../engage/twilio"));
|
|
17
|
+
exports.default = twilio_1.default;
|
|
18
|
+
__exportStar(require("../engage/twilio"), exports);
|
|
175
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/engage-messaging-twilio/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/engage-messaging-twilio/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAQA,8DAA0C;AAC1C,kBAAe,gBAAW,CAAA;AAC1B,mDAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendMobilePush.types.js","sourceRoot":"","sources":["../../../src/destinations/engage-messaging-twilio/sendMobilePush.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendSms.types.js","sourceRoot":"","sources":["../../../src/destinations/engage-messaging-twilio/sendSms.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendWhatsApp.types.js","sourceRoot":"","sources":["../../../src/destinations/engage-messaging-twilio/sendWhatsApp.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/destinations/hilo/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/hilo/group/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const action = {
|
|
4
|
+
title: 'Group',
|
|
5
|
+
description: 'Create or update an account in Hilo',
|
|
6
|
+
defaultSubscription: 'type = "group"',
|
|
7
|
+
fields: {
|
|
8
|
+
anonymousId: {
|
|
9
|
+
type: 'string',
|
|
10
|
+
description: 'An anonymous identifier',
|
|
11
|
+
label: 'Anonymous ID',
|
|
12
|
+
default: { '@path': '$.anonymousId' }
|
|
13
|
+
},
|
|
14
|
+
groupId: {
|
|
15
|
+
type: 'string',
|
|
16
|
+
description: 'The group ID',
|
|
17
|
+
label: 'Group ID',
|
|
18
|
+
required: true,
|
|
19
|
+
default: { '@path': '$.groupId' }
|
|
20
|
+
},
|
|
21
|
+
traits: {
|
|
22
|
+
type: 'object',
|
|
23
|
+
label: 'Traits',
|
|
24
|
+
description: 'Traits to associate with the user',
|
|
25
|
+
required: false,
|
|
26
|
+
default: { '@path': '$.traits' }
|
|
27
|
+
},
|
|
28
|
+
timestamp: {
|
|
29
|
+
type: 'string',
|
|
30
|
+
format: 'date-time',
|
|
31
|
+
required: true,
|
|
32
|
+
description: 'The timestamp of the event',
|
|
33
|
+
label: 'Timestamp',
|
|
34
|
+
default: { '@path': '$.timestamp' }
|
|
35
|
+
},
|
|
36
|
+
userId: {
|
|
37
|
+
type: 'string',
|
|
38
|
+
description: 'The ID associated with the user',
|
|
39
|
+
label: 'User ID',
|
|
40
|
+
default: { '@path': '$.userId' }
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
perform: (request, { payload }) => {
|
|
44
|
+
return request('https://api.hilohq.com/v1/events/group', {
|
|
45
|
+
method: 'post',
|
|
46
|
+
json: {
|
|
47
|
+
event: {
|
|
48
|
+
anonymous_id: payload.anonymousId,
|
|
49
|
+
account_id: payload.groupId,
|
|
50
|
+
contact_id: payload.userId,
|
|
51
|
+
timestamp: payload.timestamp,
|
|
52
|
+
properties: payload.traits
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
exports.default = action;
|
|
59
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/hilo/group/index.ts"],"names":[],"mappings":";;AAIA,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,qCAAqC;IAClD,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,yBAAyB;YACtC,KAAK,EAAE,cAAc;YACrB,OAAO,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE;SACtC;QACD,OAAO,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,cAAc;YAC3B,KAAK,EAAE,UAAU;YACjB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;SAClC;QACD,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,mCAAmC;YAChD,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;SACjC;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,WAAW;YACnB,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,4BAA4B;YACzC,KAAK,EAAE,WAAW;YAClB,OAAO,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE;SACpC;QACD,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,iCAAiC;YAC9C,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;SACjC;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAChC,OAAO,OAAO,CAAC,wCAAwC,EAAE;YACvD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,KAAK,EAAE;oBACL,YAAY,EAAE,OAAO,CAAC,WAAW;oBACjC,UAAU,EAAE,OAAO,CAAC,OAAO;oBAC3B,UAAU,EAAE,OAAO,CAAC,MAAM;oBAC1B,SAAS,EAAE,OAAO,CAAC,SAAS;oBAC5B,UAAU,EAAE,OAAO,CAAC,MAAM;iBAC3B;aACF;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/hilo/identify/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const action = {
|
|
4
|
+
title: 'Identify',
|
|
5
|
+
description: 'Create or update a contact in Hilo',
|
|
6
|
+
defaultSubscription: 'type = "identify"',
|
|
7
|
+
fields: {
|
|
8
|
+
anonymousId: {
|
|
9
|
+
type: 'string',
|
|
10
|
+
description: 'An anonymous identifier',
|
|
11
|
+
label: 'Anonymous ID',
|
|
12
|
+
default: { '@path': '$.anonymousId' }
|
|
13
|
+
},
|
|
14
|
+
traits: {
|
|
15
|
+
type: 'object',
|
|
16
|
+
label: 'Traits',
|
|
17
|
+
description: 'Traits to associate with the user',
|
|
18
|
+
required: false,
|
|
19
|
+
default: { '@path': '$.traits' }
|
|
20
|
+
},
|
|
21
|
+
timestamp: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
format: 'date-time',
|
|
24
|
+
required: true,
|
|
25
|
+
description: 'The timestamp of the event',
|
|
26
|
+
label: 'Timestamp',
|
|
27
|
+
default: { '@path': '$.timestamp' }
|
|
28
|
+
},
|
|
29
|
+
userId: {
|
|
30
|
+
type: 'string',
|
|
31
|
+
description: 'The ID associated with the user',
|
|
32
|
+
label: 'User ID',
|
|
33
|
+
default: { '@path': '$.userId' }
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
perform: (request, { payload }) => {
|
|
37
|
+
return request('https://api.hilohq.com/v1/events/identify', {
|
|
38
|
+
method: 'post',
|
|
39
|
+
json: {
|
|
40
|
+
event: {
|
|
41
|
+
anonymous_id: payload.anonymousId,
|
|
42
|
+
contact_id: payload.userId,
|
|
43
|
+
timestamp: payload.timestamp,
|
|
44
|
+
properties: payload.traits
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
exports.default = action;
|
|
51
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/hilo/identify/index.ts"],"names":[],"mappings":";;AAIA,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,UAAU;IACjB,WAAW,EAAE,oCAAoC;IACjD,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,yBAAyB;YACtC,KAAK,EAAE,cAAc;YACrB,OAAO,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE;SACtC;QACD,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,mCAAmC;YAChD,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;SACjC;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,WAAW;YACnB,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,4BAA4B;YACzC,KAAK,EAAE,WAAW;YAClB,OAAO,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE;SACpC;QACD,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,iCAAiC;YAC9C,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;SACjC;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAChC,OAAO,OAAO,CAAC,2CAA2C,EAAE;YAC1D,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,KAAK,EAAE;oBACL,YAAY,EAAE,OAAO,CAAC,WAAW;oBACjC,UAAU,EAAE,OAAO,CAAC,MAAM;oBAC1B,SAAS,EAAE,OAAO,CAAC,SAAS;oBAC5B,UAAU,EAAE,OAAO,CAAC,MAAM;iBAC3B;aACF;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const actions_core_1 = require("@segment/actions-core");
|
|
7
|
+
const identify_1 = __importDefault(require("./identify"));
|
|
8
|
+
const group_1 = __importDefault(require("./group"));
|
|
9
|
+
const track_1 = __importDefault(require("./track"));
|
|
10
|
+
const page_1 = __importDefault(require("./page"));
|
|
11
|
+
const screen_1 = __importDefault(require("./screen"));
|
|
12
|
+
const destination = {
|
|
13
|
+
name: 'Hilo',
|
|
14
|
+
slug: 'actions-hilo',
|
|
15
|
+
mode: 'cloud',
|
|
16
|
+
authentication: {
|
|
17
|
+
scheme: 'oauth-managed',
|
|
18
|
+
fields: {
|
|
19
|
+
integrationId: {
|
|
20
|
+
description: 'Hilo integration ID. This can be found on the integration page.',
|
|
21
|
+
label: 'Integration ID',
|
|
22
|
+
type: 'string',
|
|
23
|
+
required: true
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
testAuthentication: (request) => {
|
|
27
|
+
return request('https://api.hilohq.com/oauth/token/info');
|
|
28
|
+
},
|
|
29
|
+
refreshAccessToken: async (request, { auth }) => {
|
|
30
|
+
const res = await request('https://api.hilohq.com/oauth/token', {
|
|
31
|
+
method: 'POST',
|
|
32
|
+
body: new URLSearchParams({
|
|
33
|
+
refresh_token: auth.refreshToken,
|
|
34
|
+
client_id: auth.clientId,
|
|
35
|
+
client_secret: auth.clientSecret,
|
|
36
|
+
grant_type: 'refresh_token'
|
|
37
|
+
})
|
|
38
|
+
});
|
|
39
|
+
return { accessToken: res.data?.access_token };
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
extendRequest({ auth, settings }) {
|
|
43
|
+
return {
|
|
44
|
+
headers: {
|
|
45
|
+
authorization: `Bearer ${auth?.accessToken}`
|
|
46
|
+
},
|
|
47
|
+
searchParams: {
|
|
48
|
+
integration_id: settings?.integrationId
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
},
|
|
52
|
+
onDelete: async (request, { payload }) => {
|
|
53
|
+
return request(`https://api.hilohq.com/v1/events/delete`, {
|
|
54
|
+
method: 'POST',
|
|
55
|
+
json: {
|
|
56
|
+
event: {
|
|
57
|
+
contact_id: payload.userId
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
},
|
|
62
|
+
actions: {
|
|
63
|
+
identify: identify_1.default,
|
|
64
|
+
group: group_1.default,
|
|
65
|
+
track: track_1.default,
|
|
66
|
+
page: page_1.default,
|
|
67
|
+
screen: screen_1.default
|
|
68
|
+
},
|
|
69
|
+
presets: [
|
|
70
|
+
{
|
|
71
|
+
name: 'Track Calls',
|
|
72
|
+
subscribe: 'type = "track"',
|
|
73
|
+
partnerAction: 'track',
|
|
74
|
+
mapping: actions_core_1.defaultValues(track_1.default.fields)
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: 'Page Calls',
|
|
78
|
+
subscribe: 'type = "page"',
|
|
79
|
+
partnerAction: 'page',
|
|
80
|
+
mapping: actions_core_1.defaultValues(page_1.default.fields)
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: 'Screen Calls',
|
|
84
|
+
subscribe: 'type = "screen"',
|
|
85
|
+
partnerAction: 'screen',
|
|
86
|
+
mapping: actions_core_1.defaultValues(screen_1.default.fields)
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: 'Identify Calls',
|
|
90
|
+
subscribe: 'type = "identify"',
|
|
91
|
+
partnerAction: 'identify',
|
|
92
|
+
mapping: actions_core_1.defaultValues(identify_1.default.fields)
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: 'Group Calls',
|
|
96
|
+
subscribe: 'type = "group"',
|
|
97
|
+
partnerAction: 'group',
|
|
98
|
+
mapping: actions_core_1.defaultValues(group_1.default.fields)
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
};
|
|
102
|
+
exports.default = destination;
|
|
103
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/hilo/index.ts"],"names":[],"mappings":";;;;;AAEA,wDAAqD;AACrD,0DAAiC;AACjC,oDAA2B;AAC3B,oDAA2B;AAC3B,kDAAyB;AACzB,sDAA6B;AAM7B,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,eAAe;QACvB,MAAM,EAAE;YACN,aAAa,EAAE;gBACb,WAAW,EAAE,iEAAiE;gBAC9E,KAAK,EAAE,gBAAgB;gBACvB,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;SACF;QACD,kBAAkB,EAAE,CAAC,OAAO,EAAE,EAAE;YAE9B,OAAO,OAAO,CAAC,yCAAyC,CAAC,CAAA;QAC3D,CAAC;QACD,kBAAkB,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;YAE9C,MAAM,GAAG,GAAG,MAAM,OAAO,CAAuB,oCAAoC,EAAE;gBACpF,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,IAAI,eAAe,CAAC;oBACxB,aAAa,EAAE,IAAI,CAAC,YAAY;oBAChC,SAAS,EAAE,IAAI,CAAC,QAAQ;oBACxB,aAAa,EAAE,IAAI,CAAC,YAAY;oBAChC,UAAU,EAAE,eAAe;iBAC5B,CAAC;aACH,CAAC,CAAA;YAEF,OAAO,EAAE,WAAW,EAAE,GAAG,CAAC,IAAI,EAAE,YAAY,EAAE,CAAA;QAChD,CAAC;KACF;IAED,aAAa,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC9B,OAAO;YACL,OAAO,EAAE;gBACP,aAAa,EAAE,UAAU,IAAI,EAAE,WAAW,EAAE;aAC7C;YACD,YAAY,EAAE;gBACZ,cAAc,EAAE,QAAQ,EAAE,aAAa;aACxC;SACF,CAAA;IACH,CAAC;IAED,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAGvC,OAAO,OAAO,CAAC,yCAAyC,EAAE;YACxD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,KAAK,EAAE;oBACL,UAAU,EAAE,OAAO,CAAC,MAAM;iBAC3B;aACF;SACF,CAAC,CAAA;IACJ,CAAC;IAED,OAAO,EAAE;QACP,QAAQ,EAAR,kBAAQ;QACR,KAAK,EAAL,eAAK;QACL,KAAK,EAAL,eAAK;QACL,IAAI,EAAJ,cAAI;QACJ,MAAM,EAAN,gBAAM;KACP;IAED,OAAO,EAAE;QACP;YACE,IAAI,EAAE,aAAa;YACnB,SAAS,EAAE,gBAAgB;YAC3B,aAAa,EAAE,OAAO;YACtB,OAAO,EAAE,4BAAa,CAAC,eAAK,CAAC,MAAM,CAAC;SACrC;QACD;YACE,IAAI,EAAE,YAAY;YAClB,SAAS,EAAE,eAAe;YAC1B,aAAa,EAAE,MAAM;YACrB,OAAO,EAAE,4BAAa,CAAC,cAAI,CAAC,MAAM,CAAC;SACpC;QACD;YACE,IAAI,EAAE,cAAc;YACpB,SAAS,EAAE,iBAAiB;YAC5B,aAAa,EAAE,QAAQ;YACvB,OAAO,EAAE,4BAAa,CAAC,gBAAM,CAAC,MAAM,CAAC;SACtC;QACD;YACE,IAAI,EAAE,gBAAgB;YACtB,SAAS,EAAE,mBAAmB;YAC9B,aAAa,EAAE,UAAU;YACzB,OAAO,EAAE,4BAAa,CAAC,kBAAQ,CAAC,MAAM,CAAC;SACxC;QACD;YACE,IAAI,EAAE,aAAa;YACnB,SAAS,EAAE,gBAAgB;YAC3B,aAAa,EAAE,OAAO;YACtB,OAAO,EAAE,4BAAa,CAAC,eAAK,CAAC,MAAM,CAAC;SACrC;KACF;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/hilo/page/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActionDefinition } from '@segment/actions-core';
|
|
1
|
+
import type { ActionDefinition } from '@segment/actions-core';
|
|
2
2
|
import type { Settings } from '../generated-types';
|
|
3
3
|
import type { Payload } from './generated-types';
|
|
4
4
|
declare const action: ActionDefinition<Settings, Payload>;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const action = {
|
|
4
|
+
title: 'Page',
|
|
5
|
+
description: 'Track page view in Hilo',
|
|
6
|
+
defaultSubscription: 'type = "page"',
|
|
7
|
+
fields: {
|
|
8
|
+
anonymousId: {
|
|
9
|
+
type: 'string',
|
|
10
|
+
description: 'An anonymous identifier',
|
|
11
|
+
label: 'Anonymous ID',
|
|
12
|
+
default: { '@path': '$.anonymousId' }
|
|
13
|
+
},
|
|
14
|
+
name: {
|
|
15
|
+
type: 'string',
|
|
16
|
+
label: 'Name',
|
|
17
|
+
description: 'Page name',
|
|
18
|
+
required: false,
|
|
19
|
+
default: { '@path': '$.name' }
|
|
20
|
+
},
|
|
21
|
+
properties: {
|
|
22
|
+
type: 'object',
|
|
23
|
+
label: 'Properties',
|
|
24
|
+
description: 'Properties to associate with the page view',
|
|
25
|
+
required: false,
|
|
26
|
+
default: { '@path': '$.properties' }
|
|
27
|
+
},
|
|
28
|
+
timestamp: {
|
|
29
|
+
type: 'string',
|
|
30
|
+
format: 'date-time',
|
|
31
|
+
required: true,
|
|
32
|
+
description: 'The timestamp of the page view',
|
|
33
|
+
label: 'Timestamp',
|
|
34
|
+
default: { '@path': '$.timestamp' }
|
|
35
|
+
},
|
|
36
|
+
userId: {
|
|
37
|
+
type: 'string',
|
|
38
|
+
description: 'The ID associated with the user',
|
|
39
|
+
label: 'User ID',
|
|
40
|
+
default: { '@path': '$.userId' }
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
perform: (request, { payload }) => {
|
|
44
|
+
return request('https://api.hilohq.com/v1/events/page', {
|
|
45
|
+
method: 'post',
|
|
46
|
+
json: {
|
|
47
|
+
event: {
|
|
48
|
+
anonymous_id: payload.anonymousId,
|
|
49
|
+
contact_id: payload.userId,
|
|
50
|
+
name: payload.name,
|
|
51
|
+
timestamp: payload.timestamp,
|
|
52
|
+
properties: payload.properties
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
exports.default = action;
|
|
59
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/hilo/page/index.ts"],"names":[],"mappings":";;AAIA,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,MAAM;IACb,WAAW,EAAE,yBAAyB;IACtC,mBAAmB,EAAE,eAAe;IACpC,MAAM,EAAE;QACN,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,yBAAyB;YACtC,KAAK,EAAE,cAAc;YACrB,OAAO,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE;SACtC;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,MAAM;YACb,WAAW,EAAE,WAAW;YACxB,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;SAC/B;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,4CAA4C;YACzD,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE;SACrC;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,WAAW;YACnB,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,gCAAgC;YAC7C,KAAK,EAAE,WAAW;YAClB,OAAO,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE;SACpC;QACD,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,iCAAiC;YAC9C,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;SACjC;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAChC,OAAO,OAAO,CAAC,uCAAuC,EAAE;YACtD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,KAAK,EAAE;oBACL,YAAY,EAAE,OAAO,CAAC,WAAW;oBACjC,UAAU,EAAE,OAAO,CAAC,MAAM;oBAC1B,IAAI,EAAE,OAAO,CAAC,IAAI;oBAClB,SAAS,EAAE,OAAO,CAAC,SAAS;oBAC5B,UAAU,EAAE,OAAO,CAAC,UAAU;iBAC/B;aACF;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/hilo/screen/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActionDefinition } from '@segment/actions-core';
|
|
1
|
+
import type { ActionDefinition } from '@segment/actions-core';
|
|
2
2
|
import type { Settings } from '../generated-types';
|
|
3
3
|
import type { Payload } from './generated-types';
|
|
4
4
|
declare const action: ActionDefinition<Settings, Payload>;
|