@segment/action-destinations 3.337.2-staging.1 → 3.337.2
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/README.md +1 -1
- package/dist/destinations/acoustic-s3tc/receiveEvents/eventprocessing.js +6 -2
- package/dist/destinations/acoustic-s3tc/receiveEvents/eventprocessing.js.map +1 -1
- package/dist/destinations/acoustic-s3tc/receiveEvents/preCheck.js +7 -1
- package/dist/destinations/acoustic-s3tc/receiveEvents/preCheck.js.map +1 -1
- package/dist/destinations/aggregations-io/generated-types.d.ts +4 -0
- package/dist/destinations/aggregations-io/generated-types.js +3 -0
- package/dist/destinations/aggregations-io/generated-types.js.map +1 -0
- package/dist/destinations/aggregations-io/index.d.ts +4 -0
- package/dist/destinations/aggregations-io/index.js +58 -0
- package/dist/destinations/aggregations-io/index.js.map +1 -0
- package/dist/destinations/aggregations-io/send/generated-types.d.ts +7 -0
- package/dist/destinations/aggregations-io/send/generated-types.js +3 -0
- package/dist/destinations/aggregations-io/send/generated-types.js.map +1 -0
- package/dist/destinations/aggregations-io/send/index.d.ts +5 -0
- package/dist/destinations/aggregations-io/send/index.js +44 -0
- package/dist/destinations/aggregations-io/send/index.js.map +1 -0
- package/dist/destinations/aggregations-io/types.d.ts +8 -0
- package/dist/destinations/aggregations-io/types.js +8 -0
- package/dist/destinations/aggregations-io/types.js.map +1 -0
- package/dist/destinations/airship/registerAndAssociate/generated-types.d.ts +3 -0
- package/dist/destinations/airship/registerAndAssociate/index.js +35 -7
- package/dist/destinations/airship/registerAndAssociate/index.js.map +1 -1
- package/dist/destinations/airship/utilities.d.ts +3 -1
- package/dist/destinations/airship/utilities.js +84 -41
- package/dist/destinations/airship/utilities.js.map +1 -1
- package/dist/destinations/algolia-insights/conversionEvents/generated-types.d.ts +2 -2
- package/dist/destinations/algolia-insights/conversionEvents/index.js +7 -3
- package/dist/destinations/algolia-insights/conversionEvents/index.js.map +1 -1
- package/dist/destinations/algolia-insights/index.js +7 -0
- package/dist/destinations/algolia-insights/index.js.map +1 -1
- package/dist/destinations/algolia-insights/productAddedEvents/generated-types.d.ts +2 -2
- package/dist/destinations/algolia-insights/productAddedEvents/index.js +7 -3
- package/dist/destinations/algolia-insights/productAddedEvents/index.js.map +1 -1
- package/dist/destinations/algolia-insights/productClickedEvents/generated-types.d.ts +2 -2
- package/dist/destinations/algolia-insights/productClickedEvents/index.js +7 -3
- package/dist/destinations/algolia-insights/productClickedEvents/index.js.map +1 -1
- package/dist/destinations/algolia-insights/productListFilteredEvents/generated-types.d.ts +2 -2
- package/dist/destinations/algolia-insights/productListFilteredEvents/index.js +7 -3
- package/dist/destinations/algolia-insights/productListFilteredEvents/index.js.map +1 -1
- package/dist/destinations/algolia-insights/productViewedEvents/generated-types.d.ts +2 -2
- package/dist/destinations/algolia-insights/productViewedEvents/index.js +7 -3
- package/dist/destinations/algolia-insights/productViewedEvents/index.js.map +1 -1
- package/dist/destinations/amazon-ads/generated-types.d.ts +3 -0
- package/dist/destinations/amazon-ads/generated-types.js +3 -0
- package/dist/destinations/amazon-ads/generated-types.js.map +1 -0
- package/dist/destinations/amazon-ads/index.d.ts +4 -0
- package/dist/destinations/amazon-ads/index.js +87 -0
- package/dist/destinations/amazon-ads/index.js.map +1 -0
- package/dist/destinations/amazon-ads/syncAudiences/generated-types.d.ts +2 -0
- package/dist/destinations/amazon-ads/syncAudiences/generated-types.js +3 -0
- package/dist/destinations/amazon-ads/syncAudiences/generated-types.js.map +1 -0
- package/dist/destinations/amazon-ads/syncAudiences/index.d.ts +5 -0
- package/dist/destinations/amazon-ads/syncAudiences/index.js +15 -0
- package/dist/destinations/amazon-ads/syncAudiences/index.js.map +1 -0
- package/dist/destinations/amazon-ads/types.d.ts +22 -0
- package/dist/destinations/amazon-ads/types.js +11 -0
- package/dist/destinations/amazon-ads/types.js.map +1 -0
- package/dist/destinations/avo/generated-types.d.ts +5 -0
- package/dist/destinations/avo/generated-types.js +3 -0
- package/dist/destinations/avo/generated-types.js.map +1 -0
- package/dist/destinations/avo/index.d.ts +4 -0
- package/dist/destinations/avo/index.js +54 -0
- package/dist/destinations/avo/index.js.map +1 -0
- package/dist/destinations/avo/sendSchemaToInspector/AvoSchemaParser.d.ts +9 -0
- package/dist/destinations/avo/sendSchemaToInspector/AvoSchemaParser.js +97 -0
- package/dist/destinations/avo/sendSchemaToInspector/AvoSchemaParser.js.map +1 -0
- package/dist/destinations/avo/sendSchemaToInspector/avo-types.d.ts +26 -0
- package/dist/destinations/avo/sendSchemaToInspector/avo-types.js +10 -0
- package/dist/destinations/avo/sendSchemaToInspector/avo-types.js.map +1 -0
- package/dist/destinations/avo/sendSchemaToInspector/avo.d.ts +3 -0
- package/dist/destinations/avo/sendSchemaToInspector/avo.js +44 -0
- package/dist/destinations/avo/sendSchemaToInspector/avo.js.map +1 -0
- package/dist/destinations/avo/sendSchemaToInspector/generated-types.d.ts +11 -0
- package/dist/destinations/avo/sendSchemaToInspector/generated-types.js +3 -0
- package/dist/destinations/avo/sendSchemaToInspector/generated-types.js.map +1 -0
- package/dist/destinations/avo/sendSchemaToInspector/index.d.ts +5 -0
- package/dist/destinations/avo/sendSchemaToInspector/index.js +95 -0
- package/dist/destinations/avo/sendSchemaToInspector/index.js.map +1 -0
- package/dist/destinations/braze/index.js +12 -0
- package/dist/destinations/braze/index.js.map +1 -1
- package/dist/destinations/braze/trackEvent/generated-types.d.ts +1 -0
- package/dist/destinations/braze/trackEvent/index.js +8 -0
- package/dist/destinations/braze/trackEvent/index.js.map +1 -1
- package/dist/destinations/braze/trackPurchase/generated-types.d.ts +1 -0
- package/dist/destinations/braze/trackPurchase/index.js +8 -0
- package/dist/destinations/braze/trackPurchase/index.js.map +1 -1
- package/dist/destinations/braze/updateUserProfile/__snapshots__/snapshot.test.d.ts +1 -0
- package/dist/destinations/braze/updateUserProfile/__snapshots__/snapshot.test.js +184 -0
- package/dist/destinations/braze/updateUserProfile/__snapshots__/snapshot.test.js.map +1 -0
- package/dist/destinations/braze/utils.js +15 -11
- package/dist/destinations/braze/utils.js.map +1 -1
- package/dist/destinations/courier/generated-types.d.ts +4 -0
- package/dist/destinations/courier/generated-types.js +3 -0
- package/dist/destinations/courier/generated-types.js.map +1 -0
- package/dist/destinations/courier/index.d.ts +4 -0
- package/dist/destinations/courier/index.js +44 -0
- package/dist/destinations/courier/index.js.map +1 -0
- package/dist/destinations/courier/postToCourier/generated-types.d.ts +5 -0
- package/dist/destinations/courier/postToCourier/generated-types.js +3 -0
- package/dist/destinations/courier/postToCourier/generated-types.js.map +1 -0
- package/dist/destinations/courier/postToCourier/index.d.ts +5 -0
- package/dist/destinations/courier/postToCourier/index.js +35 -0
- package/dist/destinations/courier/postToCourier/index.js.map +1 -0
- package/dist/destinations/criteo-audiences/addUserToAudience/index.js +5 -5
- package/dist/destinations/criteo-audiences/addUserToAudience/index.js.map +1 -1
- package/dist/destinations/criteo-audiences/criteo-audiences.js +13 -2
- package/dist/destinations/criteo-audiences/criteo-audiences.js.map +1 -1
- package/dist/destinations/criteo-audiences/removeUserFromAudience/index.js +5 -5
- package/dist/destinations/criteo-audiences/removeUserFromAudience/index.js.map +1 -1
- package/dist/destinations/devrev/createRevUser/index.js +9 -6
- package/dist/destinations/devrev/createRevUser/index.js.map +1 -1
- package/dist/destinations/devrev/utils/types.d.ts +9 -0
- package/dist/destinations/display-video-360/index.js +6 -1
- package/dist/destinations/display-video-360/index.js.map +1 -1
- package/dist/destinations/display-video-360/properties.js +4 -4
- package/dist/destinations/display-video-360/properties.js.map +1 -1
- package/dist/destinations/display-video-360/proto/protofile.d.ts +1 -0
- package/dist/destinations/display-video-360/proto/protofile.js +1 -0
- package/dist/destinations/display-video-360/proto/protofile.js.map +1 -1
- package/dist/destinations/display-video-360/shared.d.ts +2 -0
- package/dist/destinations/display-video-360/shared.js +8 -1
- package/dist/destinations/display-video-360/shared.js.map +1 -1
- package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.d.ts +2 -5
- package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js +18 -98
- package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js.map +1 -1
- package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js +9 -3
- package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js.map +1 -1
- package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.js +0 -3
- package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.js.map +1 -1
- package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js +8 -2
- package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js.map +1 -1
- package/dist/destinations/engage/utils/EngageStats.js +0 -4
- package/dist/destinations/engage/utils/EngageStats.js.map +1 -1
- package/dist/destinations/equals/generated-types.d.ts +3 -0
- package/dist/destinations/equals/generated-types.js +3 -0
- package/dist/destinations/equals/generated-types.js.map +1 -0
- package/dist/destinations/equals/index.d.ts +4 -0
- package/dist/destinations/equals/index.js +38 -0
- package/dist/destinations/equals/index.js.map +1 -0
- package/dist/destinations/equals/send/generated-types.d.ts +5 -0
- package/dist/destinations/equals/send/generated-types.js +3 -0
- package/dist/destinations/equals/send/generated-types.js.map +1 -0
- package/dist/destinations/equals/send/index.d.ts +5 -0
- package/dist/destinations/equals/send/index.js +38 -0
- package/dist/destinations/equals/send/index.js.map +1 -0
- package/dist/destinations/facebook-conversions-api/constants.d.ts +1 -1
- package/dist/destinations/facebook-conversions-api/constants.js +1 -1
- package/dist/destinations/facebook-conversions-api/fb-capi-app-data.js +1 -1
- package/dist/destinations/google-enhanced-conversions/functions.d.ts +1 -1
- package/dist/destinations/google-enhanced-conversions/functions.js +1 -1
- package/dist/destinations/hubspot/sendCustomBehavioralEvent/index.js +0 -1
- package/dist/destinations/hubspot/sendCustomBehavioralEvent/index.js.map +1 -1
- package/dist/destinations/hubspot/utils.d.ts +3 -3
- package/dist/destinations/index.js +9 -0
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/kameleoon/index.js +1 -1
- package/dist/destinations/kameleoon/index.js.map +1 -1
- package/dist/destinations/kevel/generated-types.d.ts +4 -0
- package/dist/destinations/kevel/generated-types.js +3 -0
- package/dist/destinations/kevel/generated-types.js.map +1 -0
- package/dist/destinations/kevel/index.d.ts +4 -0
- package/dist/destinations/kevel/index.js +45 -0
- package/dist/destinations/kevel/index.js.map +1 -0
- package/dist/destinations/kevel/syncAudience/generated-types.d.ts +8 -0
- package/dist/destinations/kevel/syncAudience/generated-types.js +3 -0
- package/dist/destinations/kevel/syncAudience/generated-types.js.map +1 -0
- package/dist/destinations/kevel/syncAudience/index.d.ts +5 -0
- package/dist/destinations/kevel/syncAudience/index.js +64 -0
- package/dist/destinations/kevel/syncAudience/index.js.map +1 -0
- package/dist/destinations/kevel/syncTraits/generated-types.d.ts +6 -0
- package/dist/destinations/kevel/syncTraits/generated-types.js +3 -0
- package/dist/destinations/kevel/syncTraits/generated-types.js.map +1 -0
- package/dist/destinations/kevel/syncTraits/index.d.ts +5 -0
- package/dist/destinations/kevel/syncTraits/index.js +39 -0
- package/dist/destinations/kevel/syncTraits/index.js.map +1 -0
- package/dist/destinations/klaviyo/properties.js +1 -1
- package/dist/destinations/klaviyo/properties.js.map +1 -1
- package/dist/destinations/klaviyo/removeProfileToList/generated-types.d.ts +4 -0
- package/dist/destinations/klaviyo/removeProfileToList/generated-types.js +3 -0
- package/dist/destinations/klaviyo/removeProfileToList/generated-types.js.map +1 -0
- package/dist/destinations/klaviyo/removeProfileToList/index.d.ts +5 -0
- package/dist/destinations/klaviyo/removeProfileToList/index.js +43 -0
- package/dist/destinations/klaviyo/removeProfileToList/index.js.map +1 -0
- package/dist/destinations/linkedin-conversions/api/api.test.js +43 -25
- package/dist/destinations/linkedin-conversions/api/api.test.js.map +1 -1
- package/dist/destinations/linkedin-conversions/api/index.d.ts +3 -2
- package/dist/destinations/linkedin-conversions/api/index.js +41 -15
- package/dist/destinations/linkedin-conversions/api/index.js.map +1 -1
- package/dist/destinations/linkedin-conversions/constants.d.ts +1 -1
- package/dist/destinations/linkedin-conversions/constants.js +1 -1
- package/dist/destinations/linkedin-conversions/streamConversion/generated-types.d.ts +1 -1
- package/dist/destinations/linkedin-conversions/streamConversion/index.js +27 -6
- package/dist/destinations/linkedin-conversions/streamConversion/index.js.map +1 -1
- package/dist/destinations/linkedin-conversions/types.d.ts +15 -7
- package/dist/destinations/linkedin-conversions/types.js.map +1 -1
- package/dist/destinations/marketo-static-lists/addToList/index.js +2 -2
- package/dist/destinations/marketo-static-lists/addToList/index.js.map +1 -1
- package/dist/destinations/marketo-static-lists/functions.js +7 -7
- package/dist/destinations/marketo-static-lists/functions.js.map +1 -1
- package/dist/destinations/marketo-static-lists/removeFromList/index.js +2 -2
- package/dist/destinations/marketo-static-lists/removeFromList/index.js.map +1 -1
- package/dist/destinations/mixpanel/incrementProperties/__test__/index.test.d.ts +1 -0
- package/dist/destinations/mixpanel/incrementProperties/__test__/index.test.js +129 -0
- package/dist/destinations/mixpanel/incrementProperties/__test__/index.test.js.map +1 -0
- package/dist/destinations/mixpanel/incrementProperties/__test__/snapshot.test.d.ts +1 -0
- package/dist/destinations/mixpanel/incrementProperties/__test__/snapshot.test.js +69 -0
- package/dist/destinations/mixpanel/incrementProperties/__test__/snapshot.test.js.map +1 -0
- package/dist/destinations/mixpanel/incrementProperties/generated-types.d.ts +8 -0
- package/dist/destinations/mixpanel/incrementProperties/generated-types.js +3 -0
- package/dist/destinations/mixpanel/incrementProperties/generated-types.js.map +1 -0
- package/dist/destinations/mixpanel/incrementProperties/index.d.ts +5 -0
- package/dist/destinations/mixpanel/incrementProperties/index.js +84 -0
- package/dist/destinations/mixpanel/incrementProperties/index.js.map +1 -0
- package/dist/destinations/mixpanel/index.js +3 -1
- package/dist/destinations/mixpanel/index.js.map +1 -1
- package/dist/destinations/mixpanel/mixpanel-types.d.ts +4 -0
- package/dist/destinations/moengage/trackEvent/generated-types.d.ts +1 -0
- package/dist/destinations/moengage/trackEvent/index.js +10 -2
- package/dist/destinations/moengage/trackEvent/index.js.map +1 -1
- package/dist/destinations/movable-ink/categoryView/generated-types.d.ts +22 -0
- package/dist/destinations/movable-ink/categoryView/generated-types.js +3 -0
- package/dist/destinations/movable-ink/categoryView/generated-types.js.map +1 -0
- package/dist/destinations/movable-ink/categoryView/index.d.ts +5 -0
- package/dist/destinations/movable-ink/categoryView/index.js +43 -0
- package/dist/destinations/movable-ink/categoryView/index.js.map +1 -0
- package/dist/destinations/movable-ink/conversion/generated-types.d.ts +20 -0
- package/dist/destinations/movable-ink/conversion/generated-types.js +3 -0
- package/dist/destinations/movable-ink/conversion/generated-types.js.map +1 -0
- package/dist/destinations/movable-ink/conversion/index.d.ts +5 -0
- package/dist/destinations/movable-ink/conversion/index.js +45 -0
- package/dist/destinations/movable-ink/conversion/index.js.map +1 -0
- package/dist/destinations/movable-ink/fields.d.ts +21 -0
- package/dist/destinations/movable-ink/fields.js +236 -0
- package/dist/destinations/movable-ink/fields.js.map +1 -0
- package/dist/destinations/movable-ink/identify/generated-types.d.ts +7 -0
- package/dist/destinations/movable-ink/identify/generated-types.js +3 -0
- package/dist/destinations/movable-ink/identify/generated-types.js.map +1 -0
- package/dist/destinations/movable-ink/identify/index.d.ts +5 -0
- package/dist/destinations/movable-ink/identify/index.js +32 -0
- package/dist/destinations/movable-ink/identify/index.js.map +1 -0
- package/dist/destinations/movable-ink/productAdded/generated-types.d.ts +22 -0
- package/dist/destinations/movable-ink/productAdded/generated-types.js +3 -0
- package/dist/destinations/movable-ink/productAdded/generated-types.js.map +1 -0
- package/dist/destinations/movable-ink/productAdded/index.d.ts +5 -0
- package/dist/destinations/movable-ink/productAdded/index.js +43 -0
- package/dist/destinations/movable-ink/productAdded/index.js.map +1 -0
- package/dist/destinations/movable-ink/productViewed/generated-types.d.ts +21 -0
- package/dist/destinations/movable-ink/productViewed/generated-types.js +3 -0
- package/dist/destinations/movable-ink/productViewed/generated-types.js.map +1 -0
- package/dist/destinations/movable-ink/productViewed/index.d.ts +5 -0
- package/dist/destinations/movable-ink/productViewed/index.js +43 -0
- package/dist/destinations/movable-ink/productViewed/index.js.map +1 -0
- package/dist/destinations/movable-ink/search/generated-types.d.ts +12 -0
- package/dist/destinations/movable-ink/search/generated-types.js +3 -0
- package/dist/destinations/movable-ink/search/generated-types.js.map +1 -0
- package/dist/destinations/movable-ink/search/index.d.ts +5 -0
- package/dist/destinations/movable-ink/search/index.js +43 -0
- package/dist/destinations/movable-ink/search/index.js.map +1 -0
- package/dist/destinations/movable-ink/sendCustomEvent/generated-types.d.ts +25 -0
- package/dist/destinations/movable-ink/sendCustomEvent/generated-types.js +3 -0
- package/dist/destinations/movable-ink/sendCustomEvent/generated-types.js.map +1 -0
- package/dist/destinations/movable-ink/sendCustomEvent/index.d.ts +5 -0
- package/dist/destinations/movable-ink/sendCustomEvent/index.js +48 -0
- package/dist/destinations/movable-ink/sendCustomEvent/index.js.map +1 -0
- package/dist/destinations/responsys/generated-types.d.ts +15 -0
- package/dist/destinations/responsys/index.js +141 -6
- package/dist/destinations/responsys/index.js.map +1 -1
- package/dist/destinations/responsys/sendAudience/generated-types.d.ts +14 -0
- package/dist/destinations/responsys/sendAudience/generated-types.js +3 -0
- package/dist/destinations/responsys/sendAudience/generated-types.js.map +1 -0
- package/dist/destinations/responsys/sendAudience/index.d.ts +5 -0
- package/dist/destinations/responsys/sendAudience/index.js +88 -0
- package/dist/destinations/responsys/sendAudience/index.js.map +1 -0
- package/dist/destinations/responsys/sendCustomTraits/generated-types.d.ts +9 -0
- package/dist/destinations/responsys/sendCustomTraits/generated-types.js +3 -0
- package/dist/destinations/responsys/sendCustomTraits/generated-types.js.map +1 -0
- package/dist/destinations/responsys/sendCustomTraits/index.d.ts +5 -0
- package/dist/destinations/responsys/sendCustomTraits/index.js +52 -0
- package/dist/destinations/responsys/sendCustomTraits/index.js.map +1 -0
- package/dist/destinations/responsys/shared_properties.d.ts +3 -0
- package/dist/destinations/responsys/shared_properties.js +19 -0
- package/dist/destinations/responsys/shared_properties.js.map +1 -0
- package/dist/destinations/responsys/types.d.ts +23 -22
- package/dist/destinations/responsys/upsertListMember/generated-types.d.ts +13 -0
- package/dist/destinations/responsys/upsertListMember/generated-types.js +3 -0
- package/dist/destinations/responsys/upsertListMember/generated-types.js.map +1 -0
- package/dist/destinations/responsys/upsertListMember/index.d.ts +5 -0
- package/dist/destinations/responsys/upsertListMember/index.js +80 -0
- package/dist/destinations/responsys/upsertListMember/index.js.map +1 -0
- package/dist/destinations/responsys/utils.d.ts +18 -0
- package/dist/destinations/responsys/utils.js +161 -0
- package/dist/destinations/responsys/utils.js.map +1 -0
- package/dist/destinations/schematic/generated-types.d.ts +3 -0
- package/dist/destinations/schematic/generated-types.js +3 -0
- package/dist/destinations/schematic/generated-types.js.map +1 -0
- package/dist/destinations/schematic/identifyUser/generated-types.d.ts +18 -0
- package/dist/destinations/schematic/identifyUser/generated-types.js +3 -0
- package/dist/destinations/schematic/identifyUser/generated-types.js.map +1 -0
- package/dist/destinations/schematic/identifyUser/index.d.ts +5 -0
- package/dist/destinations/schematic/identifyUser/index.js +114 -0
- package/dist/destinations/schematic/identifyUser/index.js.map +1 -0
- package/dist/destinations/schematic/index.d.ts +4 -0
- package/dist/destinations/schematic/index.js +58 -0
- package/dist/destinations/schematic/index.js.map +1 -0
- package/dist/destinations/schematic/trackEvent/generated-types.d.ts +13 -0
- package/dist/destinations/schematic/trackEvent/generated-types.js +3 -0
- package/dist/destinations/schematic/trackEvent/generated-types.js.map +1 -0
- package/dist/destinations/schematic/trackEvent/index.d.ts +5 -0
- package/dist/destinations/schematic/trackEvent/index.js +89 -0
- package/dist/destinations/schematic/trackEvent/index.js.map +1 -0
- package/dist/destinations/segment/generated-types.d.ts +0 -1
- package/dist/destinations/segment/index.js +3 -13
- package/dist/destinations/segment/index.js.map +1 -1
- package/dist/destinations/segment/properties.d.ts +1 -1
- package/dist/destinations/segment/properties.js +3 -3
- package/dist/destinations/segment/properties.js.map +1 -1
- package/dist/destinations/segment/sendGroup/index.js +40 -15
- package/dist/destinations/segment/sendGroup/index.js.map +1 -1
- package/dist/destinations/segment/sendIdentify/index.js +40 -15
- package/dist/destinations/segment/sendIdentify/index.js.map +1 -1
- package/dist/destinations/segment/sendPage/index.js +48 -15
- package/dist/destinations/segment/sendPage/index.js.map +1 -1
- package/dist/destinations/segment/sendScreen/index.js +41 -15
- package/dist/destinations/segment/sendScreen/index.js.map +1 -1
- package/dist/destinations/segment/sendTrack/index.js +44 -15
- package/dist/destinations/segment/sendTrack/index.js.map +1 -1
- package/dist/destinations/stackadapt/forwardEvent/generated-types.d.ts +33 -0
- package/dist/destinations/stackadapt/forwardEvent/generated-types.js +3 -0
- package/dist/destinations/stackadapt/forwardEvent/generated-types.js.map +1 -0
- package/dist/destinations/stackadapt/forwardEvent/index.d.ts +5 -0
- package/dist/destinations/stackadapt/forwardEvent/index.js +273 -0
- package/dist/destinations/stackadapt/forwardEvent/index.js.map +1 -0
- package/dist/destinations/stackadapt/generated-types.d.ts +3 -0
- package/dist/destinations/stackadapt/generated-types.js +3 -0
- package/dist/destinations/stackadapt/generated-types.js.map +1 -0
- package/dist/destinations/stackadapt/index.d.ts +4 -0
- package/dist/destinations/stackadapt/index.js +38 -0
- package/dist/destinations/stackadapt/index.js.map +1 -0
- package/dist/destinations/surveysparrow/createContact/generated-types.d.ts +10 -0
- package/dist/destinations/surveysparrow/createContact/generated-types.js +3 -0
- package/dist/destinations/surveysparrow/createContact/generated-types.js.map +1 -0
- package/dist/destinations/surveysparrow/createContact/index.d.ts +5 -0
- package/dist/destinations/surveysparrow/createContact/index.js +105 -0
- package/dist/destinations/surveysparrow/createContact/index.js.map +1 -0
- package/dist/destinations/surveysparrow/generated-types.d.ts +3 -0
- package/dist/destinations/surveysparrow/generated-types.js +3 -0
- package/dist/destinations/surveysparrow/generated-types.js.map +1 -0
- package/dist/destinations/surveysparrow/index.d.ts +4 -0
- package/dist/destinations/surveysparrow/index.js +40 -0
- package/dist/destinations/surveysparrow/index.js.map +1 -0
- package/dist/destinations/surveysparrow/triggerSurvey/generated-types.d.ts +10 -0
- package/dist/destinations/surveysparrow/triggerSurvey/generated-types.js +3 -0
- package/dist/destinations/surveysparrow/triggerSurvey/generated-types.js.map +1 -0
- package/dist/destinations/surveysparrow/triggerSurvey/index.d.ts +8 -0
- package/dist/destinations/surveysparrow/triggerSurvey/index.js +165 -0
- package/dist/destinations/surveysparrow/triggerSurvey/index.js.map +1 -0
- package/dist/destinations/tiktok-conversions/index.js +3 -92
- package/dist/destinations/tiktok-conversions/index.js.map +1 -1
- package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.d.ts +3 -3
- package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js +24 -33
- package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js.map +1 -1
- package/dist/destinations/tiktok-conversions/reportWebEvent/generated-types.d.ts +4 -12
- package/dist/destinations/tiktok-conversions/reportWebEvent/index.js +40 -113
- package/dist/destinations/tiktok-conversions/reportWebEvent/index.js.map +1 -1
- package/dist/destinations/tiktok-conversions-sandbox/common_fields.d.ts +2 -0
- package/dist/destinations/tiktok-conversions-sandbox/common_fields.js +244 -0
- package/dist/destinations/tiktok-conversions-sandbox/common_fields.js.map +1 -0
- package/dist/destinations/tiktok-conversions-sandbox/formatter.d.ts +3 -0
- package/dist/destinations/tiktok-conversions-sandbox/formatter.js +43 -0
- package/dist/destinations/tiktok-conversions-sandbox/formatter.js.map +1 -0
- package/dist/destinations/tiktok-conversions-sandbox/generated-types.d.ts +4 -0
- package/dist/destinations/tiktok-conversions-sandbox/generated-types.js +3 -0
- package/dist/destinations/tiktok-conversions-sandbox/generated-types.js.map +1 -0
- package/dist/destinations/tiktok-conversions-sandbox/index.d.ts +4 -0
- package/dist/destinations/tiktok-conversions-sandbox/index.js +247 -0
- package/dist/destinations/tiktok-conversions-sandbox/index.js.map +1 -0
- package/dist/destinations/tiktok-conversions-sandbox/reportWebEvent/generated-types.d.ts +33 -0
- package/dist/destinations/tiktok-conversions-sandbox/reportWebEvent/generated-types.js +3 -0
- package/dist/destinations/tiktok-conversions-sandbox/reportWebEvent/generated-types.js.map +1 -0
- package/dist/destinations/tiktok-conversions-sandbox/reportWebEvent/index.d.ts +5 -0
- package/dist/destinations/tiktok-conversions-sandbox/reportWebEvent/index.js +16 -0
- package/dist/destinations/tiktok-conversions-sandbox/reportWebEvent/index.js.map +1 -0
- package/dist/destinations/tiktok-conversions-sandbox/utils.d.ts +4 -0
- package/dist/destinations/tiktok-conversions-sandbox/utils.js +65 -0
- package/dist/destinations/tiktok-conversions-sandbox/utils.js.map +1 -0
- package/dist/destinations/tiktok-offline-conversions/common_fields.js +179 -20
- package/dist/destinations/tiktok-offline-conversions/common_fields.js.map +1 -1
- package/dist/destinations/tiktok-offline-conversions/formatter.d.ts +1 -0
- package/dist/destinations/tiktok-offline-conversions/formatter.js +11 -1
- package/dist/destinations/tiktok-offline-conversions/formatter.js.map +1 -1
- package/dist/destinations/tiktok-offline-conversions/index.js +156 -153
- package/dist/destinations/tiktok-offline-conversions/index.js.map +1 -1
- package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/generated-types.d.ts +3 -3
- package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/index.js +4 -305
- package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/index.js.map +1 -1
- package/dist/destinations/tiktok-offline-conversions/trackNonPaymentOfflineConversion/generated-types.d.ts +25 -2
- package/dist/destinations/tiktok-offline-conversions/trackNonPaymentOfflineConversion/index.js +4 -29
- package/dist/destinations/tiktok-offline-conversions/trackNonPaymentOfflineConversion/index.js.map +1 -1
- package/dist/destinations/tiktok-offline-conversions/trackPaymentOfflineConversion/generated-types.d.ts +18 -5
- package/dist/destinations/tiktok-offline-conversions/trackPaymentOfflineConversion/index.js +5 -126
- package/dist/destinations/tiktok-offline-conversions/trackPaymentOfflineConversion/index.js.map +1 -1
- package/dist/destinations/tiktok-offline-conversions/utils.d.ts +8 -0
- package/dist/destinations/tiktok-offline-conversions/utils.js +67 -0
- package/dist/destinations/tiktok-offline-conversions/utils.js.map +1 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/common_fields.d.ts +2 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/common_fields.js +244 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/common_fields.js.map +1 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/formatter.d.ts +3 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/formatter.js +43 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/formatter.js.map +1 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/generated-types.d.ts +4 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/generated-types.js +3 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/generated-types.js.map +1 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/index.d.ts +4 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/index.js +251 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/index.js.map +1 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/reportOfflineEvent/generated-types.d.ts +33 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/reportOfflineEvent/generated-types.js +3 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/reportOfflineEvent/generated-types.js.map +1 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/reportOfflineEvent/index.d.ts +5 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/reportOfflineEvent/index.js +16 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/reportOfflineEvent/index.js.map +1 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/trackNonPaymentOfflineConversion/generated-types.d.ts +33 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/trackNonPaymentOfflineConversion/generated-types.js +3 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/trackNonPaymentOfflineConversion/generated-types.js.map +1 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/trackNonPaymentOfflineConversion/index.d.ts +5 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/trackNonPaymentOfflineConversion/index.js +16 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/trackNonPaymentOfflineConversion/index.js.map +1 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/trackPaymentOfflineConversion/generated-types.d.ts +33 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/trackPaymentOfflineConversion/generated-types.js +3 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/trackPaymentOfflineConversion/generated-types.js.map +1 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/trackPaymentOfflineConversion/index.d.ts +5 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/trackPaymentOfflineConversion/index.js +16 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/trackPaymentOfflineConversion/index.js.map +1 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/utils.d.ts +8 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/utils.js +68 -0
- package/dist/destinations/tiktok-offline-conversions-sandbox/utils.js.map +1 -0
- package/dist/destinations/trackey/group.types.d.ts +11 -0
- package/dist/destinations/trackey/group.types.js +3 -0
- package/dist/destinations/trackey/group.types.js.map +1 -0
- package/dist/destinations/trackey/identify.types.d.ts +11 -0
- package/dist/destinations/trackey/identify.types.js +3 -0
- package/dist/destinations/trackey/identify.types.js.map +1 -0
- package/dist/destinations/trackey/track.types.d.ts +12 -0
- package/dist/destinations/trackey/track.types.js +3 -0
- package/dist/destinations/trackey/track.types.js.map +1 -0
- package/dist/destinations/webhook-audiences/index.js +1 -3
- package/dist/destinations/webhook-audiences/index.js.map +1 -1
- package/dist/destinations/yahoo-audiences/index.js +9 -1
- package/dist/destinations/yahoo-audiences/index.js.map +1 -1
- package/dist/destinations/yahoo-audiences/updateSegment/generated-types.d.ts +6 -2
- package/dist/destinations/yahoo-audiences/updateSegment/index.js +36 -11
- package/dist/destinations/yahoo-audiences/updateSegment/index.js.map +1 -1
- package/dist/destinations/yahoo-audiences/utils-rt.js +3 -3
- package/dist/destinations/yahoo-audiences/utils-rt.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,316 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
4
|
-
const
|
|
3
|
+
const common_fields_1 = require("../common_fields");
|
|
4
|
+
const utils_1 = require("../utils");
|
|
5
5
|
const action = {
|
|
6
6
|
title: 'Track Payment Offline Conversion',
|
|
7
7
|
description: 'Send details of an in-store purchase or console purchase to the Tiktok Offline Events API',
|
|
8
8
|
fields: {
|
|
9
|
-
|
|
10
|
-
label: 'Event Name',
|
|
11
|
-
type: 'string',
|
|
12
|
-
required: true,
|
|
13
|
-
description: 'Conversion event name. Please refer to the "Offline Standard Events" section on in TikTok’s [Events API 2.0 documentation](https://business-api.tiktok.com/portal/docs?id=1771101186666498) for accepted event names.'
|
|
14
|
-
},
|
|
15
|
-
event_id: {
|
|
16
|
-
label: 'Event ID',
|
|
17
|
-
type: 'string',
|
|
18
|
-
description: 'Any hashed ID that can identify a unique user/session.',
|
|
19
|
-
default: {
|
|
20
|
-
'@path': '$.messageId'
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
timestamp: {
|
|
24
|
-
label: 'Event Timestamp',
|
|
25
|
-
type: 'string',
|
|
26
|
-
description: 'Timestamp that the event took place, in ISO 8601 format.',
|
|
27
|
-
default: {
|
|
28
|
-
'@path': '$.timestamp'
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
phone_numbers: {
|
|
32
|
-
label: 'Phone Numbers',
|
|
33
|
-
description: 'A single phone number or array of phone numbers in E.164 standard format. Segment will hash this value before sending to TikTok. At least one phone number is required if no value is provided in the Emails field.',
|
|
34
|
-
type: 'string',
|
|
35
|
-
multiple: true,
|
|
36
|
-
default: {
|
|
37
|
-
'@if': {
|
|
38
|
-
exists: { '@path': '$.properties.phone' },
|
|
39
|
-
then: { '@path': '$.properties.phone' },
|
|
40
|
-
else: { '@path': '$.traits.phone' }
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
emails: {
|
|
45
|
-
label: 'Emails',
|
|
46
|
-
description: 'A single email address or an array of email addresses. Segment will hash this value before sending to TikTok. At least one email is required if no value is provided in the Phone Numbers field.',
|
|
47
|
-
type: 'string',
|
|
48
|
-
multiple: true,
|
|
49
|
-
default: {
|
|
50
|
-
'@if': {
|
|
51
|
-
exists: { '@path': '$.properties.email' },
|
|
52
|
-
then: { '@path': '$.properties.email' },
|
|
53
|
-
else: { '@path': '$.traits.email' }
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
external_ids: {
|
|
58
|
-
label: 'External ID',
|
|
59
|
-
description: 'Uniquely identifies the user who triggered the conversion event. Segment will hash this value before sending to TikTok.',
|
|
60
|
-
type: 'string',
|
|
61
|
-
multiple: true,
|
|
62
|
-
default: {
|
|
63
|
-
'@if': {
|
|
64
|
-
exists: { '@path': '$.userId' },
|
|
65
|
-
then: { '@path': '$.userId' },
|
|
66
|
-
else: { '@path': '$.anonymousId' }
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
ttclid: {
|
|
71
|
-
label: 'TikTok Click ID',
|
|
72
|
-
description: 'The value of the ttclid used to match website visitor events with TikTok ads. The ttclid is valid for 7 days. See [Set up ttclid](https://ads.tiktok.com/marketing_api/docs?rid=4eezrhr6lg4&id=1681728034437121) for details.',
|
|
73
|
-
type: 'string',
|
|
74
|
-
default: {
|
|
75
|
-
'@if': {
|
|
76
|
-
exists: { '@path': '$.properties.ttclid' },
|
|
77
|
-
then: { '@path': '$.properties.ttclid' },
|
|
78
|
-
else: { '@path': '$.traits.ttclid' }
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
ttp: {
|
|
83
|
-
label: 'TikTok Cookie ID',
|
|
84
|
-
description: 'TikTok Cookie ID. If you also use Pixel SDK and have enabled cookies, Pixel SDK automatically saves a unique identifier in the `_ttp` cookie. The value of `_ttp` is used to match website visitor events with TikTok ads. You can extract the value of `_ttp` and attach the value here. To learn more about the `ttp` parameter, refer to [Events API 2.0 - Send TikTok Cookie](https://ads.tiktok.com/marketing_api/docs?id=%201771100936446977) (`_ttp`).',
|
|
85
|
-
type: 'string',
|
|
86
|
-
default: {
|
|
87
|
-
'@if': {
|
|
88
|
-
exists: { '@path': '$.properties.ttp' },
|
|
89
|
-
then: { '@path': '$.properties.ttp' },
|
|
90
|
-
else: { '@path': '$.integrations.TikTok Pixel.ttp' }
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
lead_id: {
|
|
95
|
-
label: 'TikTok Lead ID',
|
|
96
|
-
description: 'ID of TikTok leads. Every lead will have its own lead_id when exported from TikTok. This feature is in Beta. Please contact your TikTok representative to inquire regarding availability',
|
|
97
|
-
type: 'string',
|
|
98
|
-
default: {
|
|
99
|
-
'@if': {
|
|
100
|
-
exists: { '@path': '$.properties.lead_id' },
|
|
101
|
-
then: { '@path': '$.properties.lead_id' },
|
|
102
|
-
else: { '@path': '$.traits.lead_id' }
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
locale: {
|
|
107
|
-
label: 'Locale',
|
|
108
|
-
description: 'The BCP 47 language identifier. For reference, refer to the [IETF BCP 47 standardized code](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).',
|
|
109
|
-
type: 'string',
|
|
110
|
-
default: {
|
|
111
|
-
'@path': '$.context.locale'
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
url: {
|
|
115
|
-
label: 'Page URL',
|
|
116
|
-
type: 'string',
|
|
117
|
-
description: 'The page URL where the conversion event took place.',
|
|
118
|
-
default: {
|
|
119
|
-
'@path': '$.context.page.url'
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
referrer: {
|
|
123
|
-
label: 'Page Referrer',
|
|
124
|
-
type: 'string',
|
|
125
|
-
description: 'The page referrer.',
|
|
126
|
-
default: {
|
|
127
|
-
'@path': '$.context.page.referrer'
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
ip: {
|
|
131
|
-
label: 'IP Address',
|
|
132
|
-
type: 'string',
|
|
133
|
-
description: 'IP address of the browser.',
|
|
134
|
-
default: {
|
|
135
|
-
'@path': '$.context.ip'
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
user_agent: {
|
|
139
|
-
label: 'User Agent',
|
|
140
|
-
type: 'string',
|
|
141
|
-
description: 'User agent from the user’s device.',
|
|
142
|
-
default: {
|
|
143
|
-
'@path': '$.context.userAgent'
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
contents: {
|
|
147
|
-
label: 'Contents',
|
|
148
|
-
type: 'object',
|
|
149
|
-
multiple: true,
|
|
150
|
-
description: 'Related items in a web event.',
|
|
151
|
-
properties: {
|
|
152
|
-
price: {
|
|
153
|
-
label: 'Price',
|
|
154
|
-
description: 'Price of the item.',
|
|
155
|
-
type: 'number'
|
|
156
|
-
},
|
|
157
|
-
quantity: {
|
|
158
|
-
label: 'Quantity',
|
|
159
|
-
description: 'Number of items.',
|
|
160
|
-
type: 'number'
|
|
161
|
-
},
|
|
162
|
-
content_category: {
|
|
163
|
-
label: 'Content Category',
|
|
164
|
-
description: 'Category of the product item.',
|
|
165
|
-
type: 'string'
|
|
166
|
-
},
|
|
167
|
-
content_id: {
|
|
168
|
-
label: 'Content ID',
|
|
169
|
-
description: 'ID of the product item.',
|
|
170
|
-
type: 'string'
|
|
171
|
-
},
|
|
172
|
-
content_name: {
|
|
173
|
-
label: 'Content Name',
|
|
174
|
-
description: 'Name of the product item.',
|
|
175
|
-
type: 'string'
|
|
176
|
-
},
|
|
177
|
-
brand: {
|
|
178
|
-
label: 'Brand',
|
|
179
|
-
description: 'Brand name of the product item.',
|
|
180
|
-
type: 'string'
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
},
|
|
184
|
-
content_type: {
|
|
185
|
-
label: 'Content Type',
|
|
186
|
-
description: 'Type of the product item. When the `content_id` in the `contents` parameter is specified as `sku_id`, set this field to `product`. When the `content_id` in the `contents` parameter is specified as `item_group_id`, set this field to `product_group`.',
|
|
187
|
-
type: 'string',
|
|
188
|
-
choices: ['product', 'product_group'],
|
|
189
|
-
default: 'product'
|
|
190
|
-
},
|
|
191
|
-
currency: {
|
|
192
|
-
label: 'Currency',
|
|
193
|
-
type: 'string',
|
|
194
|
-
description: 'Currency for the value specified as ISO 4217 code.',
|
|
195
|
-
default: {
|
|
196
|
-
'@path': '$.properties.currency'
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
value: {
|
|
200
|
-
label: 'Value',
|
|
201
|
-
type: 'number',
|
|
202
|
-
description: 'Value of the order or items sold.',
|
|
203
|
-
default: {
|
|
204
|
-
'@if': {
|
|
205
|
-
exists: { '@path': '$.properties.value' },
|
|
206
|
-
then: { '@path': '$.properties.value' },
|
|
207
|
-
else: { '@path': '$.properties.revenue' }
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
description: {
|
|
212
|
-
label: 'Description',
|
|
213
|
-
type: 'string',
|
|
214
|
-
description: 'A string description of the web event.'
|
|
215
|
-
},
|
|
216
|
-
query: {
|
|
217
|
-
label: 'Query',
|
|
218
|
-
type: 'string',
|
|
219
|
-
description: 'The text string that was searched for.',
|
|
220
|
-
default: {
|
|
221
|
-
'@path': '$.properties.query'
|
|
222
|
-
}
|
|
223
|
-
},
|
|
224
|
-
order_id: {
|
|
225
|
-
label: 'Order ID',
|
|
226
|
-
type: 'string',
|
|
227
|
-
description: 'Order ID of the transaction.',
|
|
228
|
-
default: {
|
|
229
|
-
'@path': '$.properties.order_id'
|
|
230
|
-
}
|
|
231
|
-
},
|
|
232
|
-
shop_id: {
|
|
233
|
-
label: 'Shop ID',
|
|
234
|
-
type: 'string',
|
|
235
|
-
description: 'Shop ID of the transaction.',
|
|
236
|
-
default: {
|
|
237
|
-
'@path': '$.properties.shop_id'
|
|
238
|
-
}
|
|
239
|
-
},
|
|
240
|
-
limited_data_use: {
|
|
241
|
-
label: 'Limited Data Use',
|
|
242
|
-
type: 'boolean',
|
|
243
|
-
description: 'Use this field to flag an event for limited data processing. TikTok will recognize this parameter as a request for limited data processing, and will limit its processing activities accordingly if the event shared occurred in an eligible location. To learn more about the Limited Data Use feature, refer to [Events API 2.0 - Limited Data Use](https://ads.tiktok.com/marketing_api/docs?id=1771101204435970).',
|
|
244
|
-
default: {
|
|
245
|
-
'@path': '$.properties.limited_data_use'
|
|
246
|
-
}
|
|
247
|
-
},
|
|
248
|
-
test_event_code: {
|
|
249
|
-
label: 'Test Event Code',
|
|
250
|
-
type: 'string',
|
|
251
|
-
description: 'Use this field to specify that events should be test events rather than actual traffic. You can find your Test Event Code in your TikTok Events Manager under the "Test Event" tab. You\'ll want to remove your Test Event Code when sending real traffic through this integration.'
|
|
252
|
-
}
|
|
9
|
+
...common_fields_1.commonFields
|
|
253
10
|
},
|
|
254
11
|
perform: (request, { payload, settings }) => {
|
|
255
|
-
|
|
256
|
-
const emails = formatter_1.formatEmails(payload.emails);
|
|
257
|
-
const userIds = formatter_1.formatUserIds(payload.external_ids);
|
|
258
|
-
if (phone_numbers.length < 1 && emails.length < 1 && userIds.length < 1)
|
|
259
|
-
throw new actions_core_1.PayloadValidationError('TikTok Offline Conversions API requires an email address and/or phone number');
|
|
260
|
-
let payloadUrl, urlTtclid;
|
|
261
|
-
if (payload.url) {
|
|
262
|
-
try {
|
|
263
|
-
payloadUrl = new URL(payload.url);
|
|
264
|
-
}
|
|
265
|
-
catch (error) {
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
if (payloadUrl)
|
|
269
|
-
urlTtclid = payloadUrl.searchParams.get('ttclid');
|
|
270
|
-
return request('https://business-api.tiktok.com/open_api/v1.3/event/track/', {
|
|
271
|
-
method: 'post',
|
|
272
|
-
json: {
|
|
273
|
-
event_source: 'offline',
|
|
274
|
-
event_source_id: settings.eventSetID,
|
|
275
|
-
partner_name: 'Segment',
|
|
276
|
-
data: [
|
|
277
|
-
{
|
|
278
|
-
event: payload.event,
|
|
279
|
-
event_time: payload.timestamp
|
|
280
|
-
? Math.floor(new Date(payload.timestamp).getTime() / 1000)
|
|
281
|
-
: Math.floor(new Date().getTime() / 1000),
|
|
282
|
-
event_id: payload.event_id ? `${payload.event_id}` : undefined,
|
|
283
|
-
user: {
|
|
284
|
-
ttclid: payload.ttclid ? payload.ttclid : urlTtclid ? urlTtclid : undefined,
|
|
285
|
-
external_id: userIds,
|
|
286
|
-
phone_number: phone_numbers,
|
|
287
|
-
email: emails,
|
|
288
|
-
lead_id: payload.lead_id ? payload.lead_id : undefined,
|
|
289
|
-
ttp: payload.ttp ? payload.ttp : undefined,
|
|
290
|
-
ip: payload.ip ? payload.ip : undefined,
|
|
291
|
-
user_agent: payload.user_agent ? payload.user_agent : undefined,
|
|
292
|
-
locale: payload.locale ? payload.locale : undefined
|
|
293
|
-
},
|
|
294
|
-
properties: {
|
|
295
|
-
contents: payload.contents ? payload.contents : [],
|
|
296
|
-
content_type: payload.content_type ? payload.content_type : undefined,
|
|
297
|
-
currency: payload.currency ? payload.currency : undefined,
|
|
298
|
-
value: payload.value ? payload.value : undefined,
|
|
299
|
-
query: payload.query ? payload.query : undefined,
|
|
300
|
-
description: payload.description ? payload.description : undefined,
|
|
301
|
-
order_id: payload.order_id ? payload.order_id : undefined,
|
|
302
|
-
shop_id: payload.shop_id ? payload.shop_id : undefined
|
|
303
|
-
},
|
|
304
|
-
page: {
|
|
305
|
-
url: payload.url ? payload.url : undefined,
|
|
306
|
-
referrer: payload.referrer ? payload.referrer : undefined
|
|
307
|
-
},
|
|
308
|
-
limited_data_use: payload.limited_data_use ? payload.limited_data_use : false,
|
|
309
|
-
test_event_code: payload.test_event_code ? payload.test_event_code : undefined
|
|
310
|
-
}
|
|
311
|
-
]
|
|
312
|
-
}
|
|
313
|
-
});
|
|
12
|
+
return utils_1.performOfflineEvent(request, settings, payload);
|
|
314
13
|
}
|
|
315
14
|
};
|
|
316
15
|
exports.default = action;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/tiktok-offline-conversions/reportOfflineEvent/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/tiktok-offline-conversions/reportOfflineEvent/index.ts"],"names":[],"mappings":";;AAGA,oDAA+C;AAC/C,oCAA8C;AAE9C,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,kCAAkC;IACzC,WAAW,EAAE,2FAA2F;IACxG,MAAM,EAAE;QACN,GAAG,4BAAY;KAChB;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC1C,OAAO,2BAAmB,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA;IACxD,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,10 +1,33 @@
|
|
|
1
1
|
export interface Payload {
|
|
2
2
|
event: string;
|
|
3
3
|
event_id?: string;
|
|
4
|
-
timestamp
|
|
4
|
+
timestamp?: string;
|
|
5
5
|
phone_numbers?: string[];
|
|
6
6
|
email_addresses?: string[];
|
|
7
7
|
order_id?: string;
|
|
8
8
|
shop_id?: string;
|
|
9
|
-
|
|
9
|
+
external_ids?: string[];
|
|
10
|
+
ttclid?: string;
|
|
11
|
+
ttp?: string;
|
|
12
|
+
lead_id?: string;
|
|
13
|
+
locale?: string;
|
|
14
|
+
url?: string;
|
|
15
|
+
referrer?: string;
|
|
16
|
+
ip?: string;
|
|
17
|
+
user_agent?: string;
|
|
18
|
+
contents?: {
|
|
19
|
+
price?: number;
|
|
20
|
+
quantity?: number;
|
|
21
|
+
content_category?: string;
|
|
22
|
+
content_id?: string;
|
|
23
|
+
content_name?: string;
|
|
24
|
+
brand?: string;
|
|
25
|
+
}[];
|
|
26
|
+
content_type?: string;
|
|
27
|
+
currency?: string;
|
|
28
|
+
value?: number;
|
|
29
|
+
description?: string;
|
|
30
|
+
query?: string;
|
|
31
|
+
limited_data_use?: boolean;
|
|
32
|
+
test_event_code?: string;
|
|
10
33
|
}
|
package/dist/destinations/tiktok-offline-conversions/trackNonPaymentOfflineConversion/index.js
CHANGED
|
@@ -1,40 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const actions_core_1 = require("@segment/actions-core");
|
|
4
3
|
const common_fields_1 = require("../common_fields");
|
|
5
|
-
const
|
|
4
|
+
const utils_1 = require("../utils");
|
|
6
5
|
const action = {
|
|
7
|
-
title: 'Track Non Payment Offline Conversion',
|
|
8
|
-
description:
|
|
6
|
+
title: '[Deprecated] Track Non Payment Offline Conversion',
|
|
7
|
+
description: "[Deprecated] Send a non payment related event to the TikTok Offline Conversions API. This Action has been Deprecated. Please use the 'Track Payment Offline Conversion' Action instead",
|
|
9
8
|
fields: {
|
|
10
9
|
...common_fields_1.commonFields
|
|
11
10
|
},
|
|
12
11
|
perform: (request, { payload, settings }) => {
|
|
13
|
-
|
|
14
|
-
const emails = formatter_1.formatEmails(payload.email_addresses);
|
|
15
|
-
if (phone_numbers.length < 1 && emails.length < 1)
|
|
16
|
-
throw new actions_core_1.PayloadValidationError('TikTok Offline Conversions API requires an email address and/or phone number');
|
|
17
|
-
return request('https://business-api.tiktok.com/open_api/v1.3/offline/track/', {
|
|
18
|
-
method: 'post',
|
|
19
|
-
json: {
|
|
20
|
-
event_set_id: settings.eventSetID,
|
|
21
|
-
event: payload.event,
|
|
22
|
-
event_id: payload.event_id ? `${payload.event_id}` : undefined,
|
|
23
|
-
timestamp: payload.timestamp,
|
|
24
|
-
context: {
|
|
25
|
-
user: {
|
|
26
|
-
phone_numbers,
|
|
27
|
-
emails
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
properties: {
|
|
31
|
-
order_id: payload.order_id,
|
|
32
|
-
shop_id: payload.shop_id,
|
|
33
|
-
event_channel: payload.event_channel
|
|
34
|
-
},
|
|
35
|
-
partner_name: 'Segment'
|
|
36
|
-
}
|
|
37
|
-
});
|
|
12
|
+
return utils_1.performOfflineEvent(request, settings, payload);
|
|
38
13
|
}
|
|
39
14
|
};
|
|
40
15
|
exports.default = action;
|
package/dist/destinations/tiktok-offline-conversions/trackNonPaymentOfflineConversion/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/tiktok-offline-conversions/trackNonPaymentOfflineConversion/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/tiktok-offline-conversions/trackNonPaymentOfflineConversion/index.ts"],"names":[],"mappings":";;AAGA,oDAA+C;AAC/C,oCAA8C;AAE9C,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,mDAAmD;IAC1D,WAAW,EACT,wLAAwL;IAC1L,MAAM,EAAE;QACN,GAAG,4BAAY;KAChB;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC1C,OAAO,2BAAmB,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA;IACxD,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -6,15 +6,28 @@ export interface Payload {
|
|
|
6
6
|
email_addresses?: string[];
|
|
7
7
|
order_id?: string;
|
|
8
8
|
shop_id?: string;
|
|
9
|
-
|
|
9
|
+
external_ids?: string[];
|
|
10
|
+
ttclid?: string;
|
|
11
|
+
ttp?: string;
|
|
12
|
+
lead_id?: string;
|
|
13
|
+
locale?: string;
|
|
14
|
+
url?: string;
|
|
15
|
+
referrer?: string;
|
|
16
|
+
ip?: string;
|
|
17
|
+
user_agent?: string;
|
|
10
18
|
contents?: {
|
|
11
19
|
price?: number;
|
|
12
20
|
quantity?: number;
|
|
13
|
-
|
|
21
|
+
content_category?: string;
|
|
14
22
|
content_id?: string;
|
|
15
23
|
content_name?: string;
|
|
16
|
-
|
|
24
|
+
brand?: string;
|
|
17
25
|
}[];
|
|
18
|
-
|
|
19
|
-
|
|
26
|
+
content_type?: string;
|
|
27
|
+
currency?: string;
|
|
28
|
+
value?: number;
|
|
29
|
+
description?: string;
|
|
30
|
+
query?: string;
|
|
31
|
+
limited_data_use?: boolean;
|
|
32
|
+
test_event_code?: string;
|
|
20
33
|
}
|
|
@@ -1,136 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const actions_core_1 = require("@segment/actions-core");
|
|
4
3
|
const common_fields_1 = require("../common_fields");
|
|
5
|
-
const
|
|
4
|
+
const utils_1 = require("../utils");
|
|
6
5
|
const action = {
|
|
7
|
-
title: 'Track Payment Offline Conversion',
|
|
8
|
-
description:
|
|
6
|
+
title: '[Deprecated] Track Payment Offline Conversion',
|
|
7
|
+
description: "[Deprecated] Send details of an in-store purchase or console purchase to the Tiktok Offline Events API. This Action has been Deprecated. Please use the 'Track Payment Offline Conversion' Action instead",
|
|
9
8
|
fields: {
|
|
10
|
-
...common_fields_1.commonFields
|
|
11
|
-
timestamp: {
|
|
12
|
-
label: 'Event Timestamp',
|
|
13
|
-
type: 'string',
|
|
14
|
-
description: 'Timestamp that the event took place, in ISO 8601 format. e.g. 2019-06-12T19:11:01.152Z',
|
|
15
|
-
default: {
|
|
16
|
-
'@path': '$.timestamp'
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
contents: {
|
|
20
|
-
label: 'Contents',
|
|
21
|
-
type: 'object',
|
|
22
|
-
multiple: true,
|
|
23
|
-
description: 'Array of product or content items for the offline event.',
|
|
24
|
-
properties: {
|
|
25
|
-
price: {
|
|
26
|
-
label: 'Price',
|
|
27
|
-
description: 'Price of the product or content item. Price is a required field for all content items.',
|
|
28
|
-
type: 'number'
|
|
29
|
-
},
|
|
30
|
-
quantity: {
|
|
31
|
-
label: 'Quantity',
|
|
32
|
-
description: 'Quantity of this product ot item in the offline event. Quantity is a required field for all content items.',
|
|
33
|
-
type: 'number'
|
|
34
|
-
},
|
|
35
|
-
content_type: {
|
|
36
|
-
label: 'Content Type',
|
|
37
|
-
description: 'Product type',
|
|
38
|
-
type: 'string'
|
|
39
|
-
},
|
|
40
|
-
content_id: {
|
|
41
|
-
label: 'Content ID',
|
|
42
|
-
description: 'Product or content item identifier. Content ID is a required field for all product or content items.',
|
|
43
|
-
type: 'string'
|
|
44
|
-
},
|
|
45
|
-
content_name: {
|
|
46
|
-
label: 'Content Name',
|
|
47
|
-
description: 'Name of the product or content item.',
|
|
48
|
-
type: 'string'
|
|
49
|
-
},
|
|
50
|
-
content_category: {
|
|
51
|
-
label: 'Content Category',
|
|
52
|
-
description: 'Category of the product or content item.',
|
|
53
|
-
type: 'string'
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
default: {
|
|
57
|
-
'@arrayPath': [
|
|
58
|
-
'$.properties.products',
|
|
59
|
-
{
|
|
60
|
-
price: {
|
|
61
|
-
'@path': 'price'
|
|
62
|
-
},
|
|
63
|
-
quantity: {
|
|
64
|
-
'@path': 'quantity'
|
|
65
|
-
},
|
|
66
|
-
content_type: {
|
|
67
|
-
'@path': 'type'
|
|
68
|
-
},
|
|
69
|
-
content_id: {
|
|
70
|
-
'@path': 'product_id'
|
|
71
|
-
},
|
|
72
|
-
content_name: {
|
|
73
|
-
'@path': 'name'
|
|
74
|
-
},
|
|
75
|
-
content_category: {
|
|
76
|
-
'@path': 'category'
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
]
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
currency: {
|
|
83
|
-
label: 'Currency',
|
|
84
|
-
type: 'string',
|
|
85
|
-
required: true,
|
|
86
|
-
description: 'ISO 4217 code. Required for revenue reporting. Example: "USD".List of currencies currently supported: AED, ARS, AUD, BDT, BHD, BIF, BOB, BRL, CAD, CHF, CLP, CNY, COP, CRC, CZK, DKK, DZD, EGP, EUR, GBP, GTQ, HKD, HNL, HUF, IDR, ILS, INR, ISK, JPY, KES, KHR, KRW, KWD, KZT, MAD, MOP, MXN, MYR, NGN, NIO, NOK, NZD, OMR, PEN, PHP, PHP, PKR, PLN, PYG, QAR, RON, RUB, SAR, SEK, SGD, THB, TRY, TWD, UAH, USD, VES, VND, ZAR.',
|
|
87
|
-
default: {
|
|
88
|
-
'@path': '$.properties.currency'
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
value: {
|
|
92
|
-
label: 'Value',
|
|
93
|
-
type: 'number',
|
|
94
|
-
required: true,
|
|
95
|
-
description: 'Revenue of total products or content items. Required for revenue reporting. Must be a number. e.g. 101.99 and not "101.99 USD"',
|
|
96
|
-
default: {
|
|
97
|
-
'@if': {
|
|
98
|
-
exists: { '@path': '$.properties.value' },
|
|
99
|
-
then: { '@path': '$.properties.value' },
|
|
100
|
-
else: { '@path': '$.properties.revenue' }
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
9
|
+
...common_fields_1.commonFields
|
|
104
10
|
},
|
|
105
11
|
perform: (request, { payload, settings }) => {
|
|
106
|
-
|
|
107
|
-
const emails = formatter_1.formatEmails(payload.email_addresses);
|
|
108
|
-
if (phone_numbers.length < 1 && emails.length < 1)
|
|
109
|
-
throw new actions_core_1.PayloadValidationError('TikTok Offline Conversions API requires an email address and/or phone number');
|
|
110
|
-
return request('https://business-api.tiktok.com/open_api/v1.3/offline/track/', {
|
|
111
|
-
method: 'post',
|
|
112
|
-
json: {
|
|
113
|
-
event_set_id: settings.eventSetID,
|
|
114
|
-
event: payload.event,
|
|
115
|
-
event_id: payload.event_id ? `${payload.event_id}` : undefined,
|
|
116
|
-
timestamp: payload.timestamp,
|
|
117
|
-
context: {
|
|
118
|
-
user: {
|
|
119
|
-
phone_numbers,
|
|
120
|
-
emails
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
properties: {
|
|
124
|
-
order_id: payload.order_id,
|
|
125
|
-
shop_id: payload.shop_id,
|
|
126
|
-
contents: payload.contents,
|
|
127
|
-
currency: payload.currency,
|
|
128
|
-
value: payload.value,
|
|
129
|
-
event_channel: payload.event_channel
|
|
130
|
-
},
|
|
131
|
-
partner_name: 'Segment'
|
|
132
|
-
}
|
|
133
|
-
});
|
|
12
|
+
return utils_1.performOfflineEvent(request, settings, payload);
|
|
134
13
|
}
|
|
135
14
|
};
|
|
136
15
|
exports.default = action;
|
package/dist/destinations/tiktok-offline-conversions/trackPaymentOfflineConversion/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/tiktok-offline-conversions/trackPaymentOfflineConversion/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/tiktok-offline-conversions/trackPaymentOfflineConversion/index.ts"],"names":[],"mappings":";;AAGA,oDAA+C;AAC/C,oCAA8C;AAE9C,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,+CAA+C;IACtD,WAAW,EACT,2MAA2M;IAC7M,MAAM,EAAE;QACN,GAAG,4BAAY;KAChB;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC1C,OAAO,2BAAmB,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA;IACxD,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RequestClient } from '@segment/actions-core';
|
|
2
|
+
import { Settings } from './generated-types';
|
|
3
|
+
import { Payload as ReportOfflineEventPayload } from './reportOfflineEvent/generated-types';
|
|
4
|
+
import { Payload as TrackNonPaymentOfflineConversionPayload } from './trackNonPaymentOfflineConversion/generated-types';
|
|
5
|
+
import { Payload as TrackPaymentOfflineConversionPayload } from './trackPaymentOfflineConversion/generated-types';
|
|
6
|
+
declare type OfflineEventPayload = ReportOfflineEventPayload | TrackNonPaymentOfflineConversionPayload | TrackPaymentOfflineConversionPayload;
|
|
7
|
+
export declare function performOfflineEvent(request: RequestClient, settings: Settings, payload: OfflineEventPayload): Promise<import("@segment/actions-core").ModifiedResponse<unknown>>;
|
|
8
|
+
export {};
|