@segment/action-destinations 3.246.0-snap-connector → 3.248.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/acoustic-s3tc/index.js +3 -3
- package/dist/destinations/acoustic-s3tc/index.js.map +1 -1
- package/dist/destinations/acoustic-s3tc/receiveEvents/eventprocessing.d.ts +6 -1
- package/dist/destinations/acoustic-s3tc/receiveEvents/eventprocessing.js +26 -25
- package/dist/destinations/acoustic-s3tc/receiveEvents/eventprocessing.js.map +1 -1
- package/dist/destinations/acoustic-s3tc/receiveEvents/generated-types.d.ts +1 -1
- package/dist/destinations/acoustic-s3tc/receiveEvents/index.js +12 -10
- package/dist/destinations/acoustic-s3tc/receiveEvents/index.js.map +1 -1
- package/dist/destinations/algolia-insights/algolia-insight-api.d.ts +10 -0
- package/dist/destinations/algolia-insights/conversionEvents/generated-types.d.ts +7 -0
- package/dist/destinations/algolia-insights/conversionEvents/index.js +76 -10
- package/dist/destinations/algolia-insights/conversionEvents/index.js.map +1 -1
- package/dist/destinations/algolia-insights/productAddedEvents/index.js +3 -3
- package/dist/destinations/algolia-insights/productAddedEvents/index.js.map +1 -1
- package/dist/destinations/algolia-insights/productClickedEvents/index.js +3 -3
- package/dist/destinations/algolia-insights/productClickedEvents/index.js.map +1 -1
- package/dist/destinations/algolia-insights/productListFilteredEvents/index.js +3 -3
- package/dist/destinations/algolia-insights/productListFilteredEvents/index.js.map +1 -1
- package/dist/destinations/algolia-insights/productViewedEvents/index.js +3 -3
- package/dist/destinations/algolia-insights/productViewedEvents/index.js.map +1 -1
- package/dist/destinations/avo/index.js +4 -4
- package/dist/destinations/avo/index.js.map +1 -1
- package/dist/destinations/customerio/createUpdateDevice/generated-types.d.ts +3 -0
- package/dist/destinations/customerio/createUpdateDevice/index.js +29 -17
- package/dist/destinations/customerio/createUpdateDevice/index.js.map +1 -1
- package/dist/destinations/customerio/createUpdateObject/generated-types.d.ts +3 -0
- package/dist/destinations/customerio/createUpdateObject/index.js +80 -39
- package/dist/destinations/customerio/createUpdateObject/index.js.map +1 -1
- package/dist/destinations/customerio/createUpdatePerson/generated-types.d.ts +4 -1
- package/dist/destinations/customerio/createUpdatePerson/index.d.ts +1 -1
- package/dist/destinations/customerio/createUpdatePerson/index.js +51 -41
- package/dist/destinations/customerio/createUpdatePerson/index.js.map +1 -1
- package/dist/destinations/customerio/deleteDevice/index.js +15 -5
- package/dist/destinations/customerio/deleteDevice/index.js.map +1 -1
- package/dist/destinations/customerio/deletePerson/index.js +4 -8
- package/dist/destinations/customerio/deletePerson/index.js.map +1 -1
- package/dist/destinations/customerio/deleteRelationship/index.js +4 -8
- package/dist/destinations/customerio/deleteRelationship/index.js.map +1 -1
- package/dist/destinations/customerio/index.js +39 -15
- package/dist/destinations/customerio/index.js.map +1 -1
- package/dist/destinations/customerio/suppressPerson/index.js +4 -8
- package/dist/destinations/customerio/suppressPerson/index.js.map +1 -1
- package/dist/destinations/customerio/trackEvent/index.js +26 -32
- package/dist/destinations/customerio/trackEvent/index.js.map +1 -1
- package/dist/destinations/customerio/trackPageView/generated-types.d.ts +1 -0
- package/dist/destinations/customerio/trackPageView/index.js +26 -29
- package/dist/destinations/customerio/trackPageView/index.js.map +1 -1
- package/dist/destinations/customerio/trackScreenView/generated-types.d.ts +1 -0
- package/dist/destinations/customerio/trackScreenView/index.js +25 -29
- package/dist/destinations/customerio/trackScreenView/index.js.map +1 -1
- package/dist/destinations/customerio/unsuppressPerson/index.js +4 -8
- package/dist/destinations/customerio/unsuppressPerson/index.js.map +1 -1
- package/dist/destinations/customerio/utils.d.ts +46 -2
- package/dist/destinations/customerio/utils.js +88 -13
- package/dist/destinations/customerio/utils.js.map +1 -1
- package/dist/destinations/display-video-360/shared.d.ts +10 -5
- package/dist/destinations/display-video-360/shared.js +11 -6
- package/dist/destinations/display-video-360/shared.js.map +1 -1
- package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js +10 -2
- package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js.map +1 -1
- package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js +11 -3
- package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js.map +1 -1
- package/dist/destinations/engage/utils/Profile.d.ts +1 -1
- package/dist/destinations/engage/utils/track.d.ts +17 -17
- package/dist/destinations/google-analytics-4/addPaymentInfo/generated-types.d.ts +2 -0
- package/dist/destinations/google-analytics-4/addPaymentInfo/index.js +8 -2
- package/dist/destinations/google-analytics-4/addPaymentInfo/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/addToCart/generated-types.d.ts +2 -0
- package/dist/destinations/google-analytics-4/addToCart/index.js +8 -2
- package/dist/destinations/google-analytics-4/addToCart/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/addToWishlist/generated-types.d.ts +2 -0
- package/dist/destinations/google-analytics-4/addToWishlist/index.js +8 -2
- package/dist/destinations/google-analytics-4/addToWishlist/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/beginCheckout/generated-types.d.ts +2 -0
- package/dist/destinations/google-analytics-4/beginCheckout/index.js +8 -2
- package/dist/destinations/google-analytics-4/beginCheckout/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/customEvent/generated-types.d.ts +2 -0
- package/dist/destinations/google-analytics-4/customEvent/index.js +8 -2
- package/dist/destinations/google-analytics-4/customEvent/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/ga4-functions.d.ts +2 -0
- package/dist/destinations/google-analytics-4/ga4-functions.js +13 -1
- package/dist/destinations/google-analytics-4/ga4-functions.js.map +1 -1
- package/dist/destinations/google-analytics-4/ga4-properties.d.ts +2 -0
- package/dist/destinations/google-analytics-4/ga4-properties.js +19 -1
- package/dist/destinations/google-analytics-4/ga4-properties.js.map +1 -1
- package/dist/destinations/google-analytics-4/ga4-types.d.ts +4 -0
- package/dist/destinations/google-analytics-4/generateLead/generated-types.d.ts +2 -0
- package/dist/destinations/google-analytics-4/generateLead/index.js +8 -2
- package/dist/destinations/google-analytics-4/generateLead/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/login/generated-types.d.ts +2 -0
- package/dist/destinations/google-analytics-4/login/index.js +8 -2
- package/dist/destinations/google-analytics-4/login/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/pageView/generated-types.d.ts +2 -0
- package/dist/destinations/google-analytics-4/pageView/index.js +8 -2
- package/dist/destinations/google-analytics-4/pageView/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/purchase/generated-types.d.ts +2 -0
- package/dist/destinations/google-analytics-4/purchase/index.js +8 -2
- package/dist/destinations/google-analytics-4/purchase/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/refund/generated-types.d.ts +2 -0
- package/dist/destinations/google-analytics-4/refund/index.js +8 -2
- package/dist/destinations/google-analytics-4/refund/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/removeFromCart/generated-types.d.ts +2 -0
- package/dist/destinations/google-analytics-4/removeFromCart/index.js +8 -2
- package/dist/destinations/google-analytics-4/removeFromCart/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/search/generated-types.d.ts +2 -0
- package/dist/destinations/google-analytics-4/search/index.js +8 -2
- package/dist/destinations/google-analytics-4/search/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/selectItem/generated-types.d.ts +2 -0
- package/dist/destinations/google-analytics-4/selectItem/index.js +8 -2
- package/dist/destinations/google-analytics-4/selectItem/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/selectPromotion/generated-types.d.ts +2 -0
- package/dist/destinations/google-analytics-4/selectPromotion/index.js +8 -2
- package/dist/destinations/google-analytics-4/selectPromotion/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/signUp/generated-types.d.ts +2 -0
- package/dist/destinations/google-analytics-4/signUp/index.js +8 -2
- package/dist/destinations/google-analytics-4/signUp/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewCart/generated-types.d.ts +2 -0
- package/dist/destinations/google-analytics-4/viewCart/index.js +8 -2
- package/dist/destinations/google-analytics-4/viewCart/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewItem/generated-types.d.ts +2 -0
- package/dist/destinations/google-analytics-4/viewItem/index.js +8 -2
- package/dist/destinations/google-analytics-4/viewItem/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewItemList/generated-types.d.ts +2 -0
- package/dist/destinations/google-analytics-4/viewItemList/index.js +8 -2
- package/dist/destinations/google-analytics-4/viewItemList/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewPromotion/generated-types.d.ts +2 -0
- package/dist/destinations/google-analytics-4/viewPromotion/index.js +8 -2
- package/dist/destinations/google-analytics-4/viewPromotion/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/functions.d.ts +2 -2
- package/dist/destinations/google-enhanced-conversions/functions.js +5 -4
- package/dist/destinations/google-enhanced-conversions/functions.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadCallConversion/generated-types.d.ts +2 -0
- package/dist/destinations/google-enhanced-conversions/uploadCallConversion/index.js +33 -2
- package/dist/destinations/google-enhanced-conversions/uploadCallConversion/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/generated-types.d.ts +2 -0
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js +33 -2
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js +2 -2
- package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js.map +1 -1
- package/dist/destinations/index.js +1 -0
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/kafka/generated-types.d.ts +8 -0
- package/dist/destinations/{trackey/group.types.js → kafka/generated-types.js} +1 -1
- package/dist/destinations/kafka/generated-types.js.map +1 -0
- package/dist/destinations/kafka/index.d.ts +4 -0
- package/dist/destinations/kafka/index.js +70 -0
- package/dist/destinations/kafka/index.js.map +1 -0
- package/dist/destinations/kafka/send/generated-types.d.ts +12 -0
- package/dist/destinations/{engage/sendgrid/Profile.js → kafka/send/generated-types.js} +1 -1
- package/dist/destinations/kafka/send/generated-types.js.map +1 -0
- package/dist/destinations/kafka/send/index.d.ts +5 -0
- package/dist/destinations/kafka/send/index.js +58 -0
- package/dist/destinations/kafka/send/index.js.map +1 -0
- package/dist/destinations/kafka/utils.d.ts +7 -0
- package/dist/destinations/kafka/utils.js +62 -0
- package/dist/destinations/kafka/utils.js.map +1 -0
- package/dist/destinations/klaviyo/orderCompleted/index.js +29 -12
- package/dist/destinations/klaviyo/orderCompleted/index.js.map +1 -1
- package/dist/destinations/linkedin-conversions/api/api.test.js +120 -0
- package/dist/destinations/linkedin-conversions/api/api.test.js.map +1 -1
- package/dist/destinations/linkedin-conversions/api/index.d.ts +4 -1
- package/dist/destinations/linkedin-conversions/api/index.js +118 -27
- package/dist/destinations/linkedin-conversions/api/index.js.map +1 -1
- package/dist/destinations/linkedin-conversions/streamConversion/generated-types.d.ts +4 -3
- package/dist/destinations/linkedin-conversions/streamConversion/index.js +43 -7
- package/dist/destinations/linkedin-conversions/streamConversion/index.js.map +1 -1
- package/dist/destinations/linkedin-conversions/types.d.ts +2 -0
- package/dist/destinations/marketo-static-lists/addToList/generated-types.d.ts +8 -1
- package/dist/destinations/marketo-static-lists/addToList/index.js +2 -1
- package/dist/destinations/marketo-static-lists/addToList/index.js.map +1 -1
- package/dist/destinations/marketo-static-lists/constants.js +2 -2
- package/dist/destinations/marketo-static-lists/constants.js.map +1 -1
- package/dist/destinations/marketo-static-lists/functions.d.ts +1 -0
- package/dist/destinations/marketo-static-lists/functions.js +30 -13
- package/dist/destinations/marketo-static-lists/functions.js.map +1 -1
- package/dist/destinations/marketo-static-lists/index.js +3 -2
- package/dist/destinations/marketo-static-lists/index.js.map +1 -1
- package/dist/destinations/marketo-static-lists/properties.d.ts +3 -1
- package/dist/destinations/marketo-static-lists/properties.js +88 -6
- package/dist/destinations/marketo-static-lists/properties.js.map +1 -1
- package/dist/destinations/marketo-static-lists/removeFromList/generated-types.d.ts +2 -1
- package/dist/destinations/marketo-static-lists/removeFromList/index.js +2 -1
- package/dist/destinations/marketo-static-lists/removeFromList/index.js.map +1 -1
- package/dist/destinations/optimizely-data-platform/customEvent/index.js +1 -1
- package/dist/destinations/optimizely-data-platform/customEvent/index.js.map +1 -1
- package/dist/destinations/optimizely-data-platform/fields.d.ts +1 -0
- package/dist/destinations/optimizely-data-platform/fields.js +10 -1
- package/dist/destinations/optimizely-data-platform/fields.js.map +1 -1
- package/dist/destinations/optimizely-data-platform/index.js +2 -0
- package/dist/destinations/optimizely-data-platform/index.js.map +1 -1
- package/dist/destinations/optimizely-data-platform/nonEcommCustomEvent/generated-types.d.ts +13 -0
- package/dist/destinations/{trackey/identify.types.js → optimizely-data-platform/nonEcommCustomEvent/generated-types.js} +1 -1
- package/dist/destinations/optimizely-data-platform/nonEcommCustomEvent/generated-types.js.map +1 -0
- package/dist/destinations/optimizely-data-platform/nonEcommCustomEvent/index.d.ts +5 -0
- package/dist/destinations/optimizely-data-platform/nonEcommCustomEvent/index.js +29 -0
- package/dist/destinations/optimizely-data-platform/nonEcommCustomEvent/index.js.map +1 -0
- package/dist/destinations/salesforce/sf-properties.d.ts +1 -1
- package/dist/destinations/salesforce/sf-properties.js +52 -4
- package/dist/destinations/salesforce/sf-properties.js.map +1 -1
- package/dist/destinations/schematic/trackEvent/generated-types.d.ts +1 -0
- package/dist/destinations/schematic/trackEvent/index.js +19 -3
- package/dist/destinations/schematic/trackEvent/index.js.map +1 -1
- package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.js +8 -4
- package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.js.map +1 -1
- package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v3.js +9 -6
- package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v3.js.map +1 -1
- package/dist/destinations/tiktok-audiences/addUser/index.js +1 -1
- package/dist/destinations/tiktok-audiences/addUser/index.js.map +1 -1
- package/dist/destinations/tiktok-audiences/createAudience/index.js +2 -2
- package/dist/destinations/tiktok-audiences/createAudience/index.js.map +1 -1
- package/dist/destinations/tiktok-audiences/index.js +3 -3
- package/dist/destinations/tiktok-audiences/index.js.map +1 -1
- package/dist/destinations/tiktok-audiences/removeUser/index.js +1 -1
- package/dist/destinations/tiktok-audiences/removeUser/index.js.map +1 -1
- package/dist/destinations/tiktok-conversions-sandbox/common_fields.js +1 -1
- package/dist/destinations/tiktok-conversions-sandbox/common_fields.js.map +1 -1
- package/dist/destinations/tiktok-offline-conversions/common_fields.js +183 -24
- 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 +169 -15
- package/dist/destinations/tiktok-offline-conversions/index.js.map +1 -1
- package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/index.js +1 -1
- 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.js +10 -9
- package/dist/destinations/tiktok-offline-conversions/utils.js.map +1 -1
- package/dist/destinations/tiktok-offline-conversions-sandbox/common_fields.js +1 -1
- package/dist/destinations/tiktok-offline-conversions-sandbox/common_fields.js.map +1 -1
- package/package.json +5 -4
- package/dist/destinations/engage/sendgrid/Profile.d.ts +0 -6
- package/dist/destinations/engage/sendgrid/Profile.js.map +0 -1
- package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.d.ts +0 -18
- package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js +0 -94
- package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js.map +0 -1
- package/dist/destinations/mixpanel/incrementProperties/__test__/__snapshots__/snapshot.test.js.snap +0 -18
- package/dist/destinations/tiktok-conversions/common_fields.d.ts +0 -2
- package/dist/destinations/tiktok-conversions/common_fields.js +0 -245
- package/dist/destinations/tiktok-conversions/common_fields.js.map +0 -1
- package/dist/destinations/tiktok-conversions/formatter.d.ts +0 -3
- package/dist/destinations/tiktok-conversions/formatter.js +0 -43
- package/dist/destinations/tiktok-conversions/formatter.js.map +0 -1
- package/dist/destinations/tiktok-conversions/utils.d.ts +0 -4
- package/dist/destinations/tiktok-conversions/utils.js +0 -65
- package/dist/destinations/tiktok-conversions/utils.js.map +0 -1
- package/dist/destinations/trackey/group.types.d.ts +0 -11
- package/dist/destinations/trackey/group.types.js.map +0 -1
- package/dist/destinations/trackey/identify.types.d.ts +0 -11
- package/dist/destinations/trackey/identify.types.js.map +0 -1
- package/dist/destinations/trackey/track.types.d.ts +0 -12
- package/dist/destinations/trackey/track.types.js +0 -3
- package/dist/destinations/trackey/track.types.js.map +0 -1
|
@@ -6,6 +6,49 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const actions_core_1 = require("@segment/actions-core");
|
|
7
7
|
const trackPaymentOfflineConversion_1 = __importDefault(require("./trackPaymentOfflineConversion"));
|
|
8
8
|
const trackNonPaymentOfflineConversion_1 = __importDefault(require("./trackNonPaymentOfflineConversion"));
|
|
9
|
+
const reportOfflineEvent_1 = __importDefault(require("./reportOfflineEvent"));
|
|
10
|
+
const productProperties = {
|
|
11
|
+
price: {
|
|
12
|
+
'@path': '$.price'
|
|
13
|
+
},
|
|
14
|
+
quantity: {
|
|
15
|
+
'@path': '$.quantity'
|
|
16
|
+
},
|
|
17
|
+
content_category: {
|
|
18
|
+
'@path': '$.category'
|
|
19
|
+
},
|
|
20
|
+
content_id: {
|
|
21
|
+
'@path': '$.product_id'
|
|
22
|
+
},
|
|
23
|
+
content_name: {
|
|
24
|
+
'@path': '$.name'
|
|
25
|
+
},
|
|
26
|
+
brand: {
|
|
27
|
+
'@path': '$.brand'
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
const singleProductContents = {
|
|
31
|
+
...actions_core_1.defaultValues(reportOfflineEvent_1.default.fields),
|
|
32
|
+
contents: {
|
|
33
|
+
'@arrayPath': [
|
|
34
|
+
'$.properties',
|
|
35
|
+
{
|
|
36
|
+
...productProperties
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
const multiProductContents = {
|
|
42
|
+
...actions_core_1.defaultValues(reportOfflineEvent_1.default.fields),
|
|
43
|
+
contents: {
|
|
44
|
+
'@arrayPath': [
|
|
45
|
+
'$.properties.products',
|
|
46
|
+
{
|
|
47
|
+
...productProperties
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
};
|
|
9
52
|
const destination = {
|
|
10
53
|
name: 'TikTok Offline Conversions',
|
|
11
54
|
slug: 'actions-tiktok-offline-conversions',
|
|
@@ -15,14 +58,14 @@ const destination = {
|
|
|
15
58
|
fields: {
|
|
16
59
|
accessToken: {
|
|
17
60
|
label: 'Access Token',
|
|
18
|
-
description: 'Your TikTok Access Token. Please see TikTok’s [Events API documentation](https://
|
|
61
|
+
description: 'Your TikTok Access Token. Please see TikTok’s [Events API 2.0 documentation](https://business-api.tiktok.com/portal/docs?id=1771101130925058) for information on how to generate an access token via the TikTok Ads Manager or API.',
|
|
19
62
|
type: 'string',
|
|
20
63
|
required: true
|
|
21
64
|
},
|
|
22
65
|
eventSetID: {
|
|
23
66
|
label: 'Event Set ID',
|
|
24
67
|
type: 'string',
|
|
25
|
-
description: 'Your TikTok Offline Event Set ID. Please see TikTok’s [Events API documentation](https://
|
|
68
|
+
description: 'Your TikTok Offline Event Set ID. Please see TikTok’s [Events API 2.0 documentation](https://business-api.tiktok.com/portal/docs?id=1771101027431425) for information on how to find this value.',
|
|
26
69
|
required: true
|
|
27
70
|
}
|
|
28
71
|
},
|
|
@@ -49,48 +92,159 @@ const destination = {
|
|
|
49
92
|
presets: [
|
|
50
93
|
{
|
|
51
94
|
name: 'Complete Payment',
|
|
52
|
-
subscribe: '
|
|
53
|
-
partnerAction: '
|
|
95
|
+
subscribe: 'event = "Order Completed"',
|
|
96
|
+
partnerAction: 'reportOfflineEvent',
|
|
54
97
|
mapping: {
|
|
55
|
-
...
|
|
98
|
+
...multiProductContents,
|
|
56
99
|
event: 'CompletePayment'
|
|
57
100
|
},
|
|
58
101
|
type: 'automatic'
|
|
59
102
|
},
|
|
60
103
|
{
|
|
61
104
|
name: 'Contact',
|
|
62
|
-
subscribe: '
|
|
63
|
-
partnerAction: '
|
|
105
|
+
subscribe: 'event = "Callback Started"',
|
|
106
|
+
partnerAction: 'reportOfflineEvent',
|
|
64
107
|
mapping: {
|
|
65
|
-
...actions_core_1.defaultValues(
|
|
108
|
+
...actions_core_1.defaultValues(reportOfflineEvent_1.default.fields),
|
|
66
109
|
event: 'Contact'
|
|
67
110
|
},
|
|
68
111
|
type: 'automatic'
|
|
69
112
|
},
|
|
70
113
|
{
|
|
71
114
|
name: 'Subscribe',
|
|
72
|
-
subscribe: '
|
|
73
|
-
partnerAction: '
|
|
115
|
+
subscribe: 'event = "Subscription Created"',
|
|
116
|
+
partnerAction: 'reportOfflineEvent',
|
|
74
117
|
mapping: {
|
|
75
|
-
...actions_core_1.defaultValues(
|
|
118
|
+
...actions_core_1.defaultValues(reportOfflineEvent_1.default.fields),
|
|
76
119
|
event: 'Subscribe'
|
|
77
120
|
},
|
|
78
121
|
type: 'automatic'
|
|
79
122
|
},
|
|
80
123
|
{
|
|
81
124
|
name: 'Submit Form',
|
|
82
|
-
subscribe: '
|
|
83
|
-
partnerAction: '
|
|
125
|
+
subscribe: 'event = "Form Submitted"',
|
|
126
|
+
partnerAction: 'reportOfflineEvent',
|
|
84
127
|
mapping: {
|
|
85
|
-
...actions_core_1.defaultValues(
|
|
128
|
+
...actions_core_1.defaultValues(reportOfflineEvent_1.default.fields),
|
|
86
129
|
event: 'SubmitForm'
|
|
87
130
|
},
|
|
88
131
|
type: 'automatic'
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: 'Page View',
|
|
135
|
+
subscribe: 'type="page"',
|
|
136
|
+
partnerAction: 'reportOfflineEvent',
|
|
137
|
+
mapping: {
|
|
138
|
+
...multiProductContents,
|
|
139
|
+
event: 'PageView'
|
|
140
|
+
},
|
|
141
|
+
type: 'automatic'
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: 'View Content',
|
|
145
|
+
subscribe: 'event = "Product Viewed"',
|
|
146
|
+
partnerAction: 'reportOfflineEvent',
|
|
147
|
+
mapping: {
|
|
148
|
+
...singleProductContents,
|
|
149
|
+
event: 'ViewContent'
|
|
150
|
+
},
|
|
151
|
+
type: 'automatic'
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: 'Click Button',
|
|
155
|
+
subscribe: 'event = "Product Clicked"',
|
|
156
|
+
partnerAction: 'reportOfflineEvent',
|
|
157
|
+
mapping: {
|
|
158
|
+
...singleProductContents,
|
|
159
|
+
event: 'ClickButton'
|
|
160
|
+
},
|
|
161
|
+
type: 'automatic'
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
name: 'Search',
|
|
165
|
+
subscribe: 'event = "Products Searched"',
|
|
166
|
+
partnerAction: 'reportOfflineEvent',
|
|
167
|
+
mapping: {
|
|
168
|
+
...singleProductContents,
|
|
169
|
+
event: 'Search'
|
|
170
|
+
},
|
|
171
|
+
type: 'automatic'
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
name: 'Add to Wishlist',
|
|
175
|
+
subscribe: 'event = "Product Added to Wishlist"',
|
|
176
|
+
partnerAction: 'reportOfflineEvent',
|
|
177
|
+
mapping: {
|
|
178
|
+
...singleProductContents,
|
|
179
|
+
event: 'AddToWishlist'
|
|
180
|
+
},
|
|
181
|
+
type: 'automatic'
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
name: 'Add to Cart',
|
|
185
|
+
subscribe: 'event = "Product Added"',
|
|
186
|
+
partnerAction: 'reportOfflineEvent',
|
|
187
|
+
mapping: {
|
|
188
|
+
...singleProductContents,
|
|
189
|
+
event: 'AddToCart'
|
|
190
|
+
},
|
|
191
|
+
type: 'automatic'
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
name: 'Initiate Checkout',
|
|
195
|
+
subscribe: 'event = "Checkout Started"',
|
|
196
|
+
partnerAction: 'reportOfflineEvent',
|
|
197
|
+
mapping: {
|
|
198
|
+
...multiProductContents,
|
|
199
|
+
event: 'InitiateCheckout'
|
|
200
|
+
},
|
|
201
|
+
type: 'automatic'
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
name: 'Add Payment Info',
|
|
205
|
+
subscribe: 'event = "Payment Info Entered"',
|
|
206
|
+
partnerAction: 'reportOfflineEvent',
|
|
207
|
+
mapping: {
|
|
208
|
+
...multiProductContents,
|
|
209
|
+
event: 'AddPaymentInfo'
|
|
210
|
+
},
|
|
211
|
+
type: 'automatic'
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
name: 'Place an Order',
|
|
215
|
+
subscribe: 'event = "Order Placed"',
|
|
216
|
+
partnerAction: 'reportOfflineEvent',
|
|
217
|
+
mapping: {
|
|
218
|
+
...multiProductContents,
|
|
219
|
+
event: 'PlaceAnOrder'
|
|
220
|
+
},
|
|
221
|
+
type: 'automatic'
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
name: 'Download',
|
|
225
|
+
subscribe: 'event = "Download Link Clicked"',
|
|
226
|
+
partnerAction: 'reportOfflineEvent',
|
|
227
|
+
mapping: {
|
|
228
|
+
...actions_core_1.defaultValues(reportOfflineEvent_1.default.fields),
|
|
229
|
+
event: 'Download'
|
|
230
|
+
},
|
|
231
|
+
type: 'automatic'
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
name: 'Complete Registration',
|
|
235
|
+
subscribe: 'event = "Signed Up"',
|
|
236
|
+
partnerAction: 'reportOfflineEvent',
|
|
237
|
+
mapping: {
|
|
238
|
+
...actions_core_1.defaultValues(reportOfflineEvent_1.default.fields),
|
|
239
|
+
event: 'CompleteRegistration'
|
|
240
|
+
},
|
|
241
|
+
type: 'automatic'
|
|
89
242
|
}
|
|
90
243
|
],
|
|
91
244
|
actions: {
|
|
92
245
|
trackPaymentOfflineConversion: trackPaymentOfflineConversion_1.default,
|
|
93
|
-
trackNonPaymentOfflineConversion: trackNonPaymentOfflineConversion_1.default
|
|
246
|
+
trackNonPaymentOfflineConversion: trackNonPaymentOfflineConversion_1.default,
|
|
247
|
+
reportOfflineEvent: reportOfflineEvent_1.default
|
|
94
248
|
}
|
|
95
249
|
};
|
|
96
250
|
exports.default = destination;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/tiktok-offline-conversions/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA4E;AAE5E,oGAA2E;AAC3E,0GAAiF;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/tiktok-offline-conversions/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA4E;AAE5E,oGAA2E;AAC3E,0GAAiF;AACjF,8EAAqD;AAErD,MAAM,iBAAiB,GAAG;IACxB,KAAK,EAAE;QACL,OAAO,EAAE,SAAS;KACnB;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,YAAY;KACtB;IACD,gBAAgB,EAAE;QAChB,OAAO,EAAE,YAAY;KACtB;IACD,UAAU,EAAE;QACV,OAAO,EAAE,cAAc;KAC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aAAa,EAAE,oBAAoB;YACnC,OAAO,EAAE;gBACP,GAAG,oBAAoB;gBACvB,KAAK,EAAE,cAAc;aACtB;YACD,IAAI,EAAE,WAAW;SAClB;QACD;YACE,IAAI,EAAE,UAAU;YAChB,SAAS,EAAE,iCAAiC;YAC5C,aAAa,EAAE,oBAAoB;YACnC,OAAO,EAAE;gBACP,GAAG,4BAAa,CAAC,4BAAkB,CAAC,MAAM,CAAC;gBAC3C,KAAK,EAAE,UAAU;aAClB;YACD,IAAI,EAAE,WAAW;SAClB;QACD;YACE,IAAI,EAAE,uBAAuB;YAC7B,SAAS,EAAE,qBAAqB;YAChC,aAAa,EAAE,oBAAoB;YACnC,OAAO,EAAE;gBACP,GAAG,4BAAa,CAAC,4BAAkB,CAAC,MAAM,CAAC;gBAC3C,KAAK,EAAE,sBAAsB;aAC9B;YACD,IAAI,EAAE,WAAW;SAClB;KACF;IACD,OAAO,EAAE;QACP,6BAA6B,EAA7B,uCAA6B;QAC7B,gCAAgC,EAAhC,0CAAgC;QAChC,kBAAkB,EAAlB,4BAAkB;KACnB;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const common_fields_1 = require("../common_fields");
|
|
4
4
|
const utils_1 = require("../utils");
|
|
5
5
|
const action = {
|
|
6
|
-
title: 'Track
|
|
6
|
+
title: 'Track 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
9
|
...common_fields_1.commonFields
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,0BAA0B;IACjC,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"}
|
|
@@ -9,15 +9,16 @@ function performOfflineEvent(request, settings, payload) {
|
|
|
9
9
|
const userIds = formatter_1.formatUserIds(payload.external_ids);
|
|
10
10
|
if (phone_numbers.length < 1 && emails.length < 1 && userIds.length < 1)
|
|
11
11
|
throw new actions_core_1.PayloadValidationError('TikTok Offline Conversions API requires an email address and/or phone number and or a userId');
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
let payloadUrl, urlTtclid;
|
|
13
|
+
if (payload.url) {
|
|
14
|
+
try {
|
|
15
|
+
payloadUrl = new URL(payload.url);
|
|
16
|
+
}
|
|
17
|
+
catch (error) {
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
if (payloadUrl)
|
|
21
|
+
urlTtclid = payloadUrl.searchParams.get('ttclid');
|
|
21
22
|
return request('https://business-api.tiktok.com/open_api/v1.3/event/track/', {
|
|
22
23
|
method: 'post',
|
|
23
24
|
json: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/destinations/tiktok-offline-conversions/utils.ts"],"names":[],"mappings":";;;AAAA,wDAA6E;AAK7E,2CAAuE;AAOvE,SAAgB,mBAAmB,CAAC,OAAsB,EAAE,QAAkB,EAAE,OAA4B;IAC1G,MAAM,aAAa,GAAG,wBAAY,CAAC,OAAO,CAAC,aAAa,CAAC,CAAA;IACzD,MAAM,MAAM,GAAG,wBAAY,CAAC,OAAO,CAAC,eAAe,CAAC,CAAA;IACpD,MAAM,OAAO,GAAG,yBAAa,CAAC,OAAO,CAAC,YAAY,CAAC,CAAA;IAEnD,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC;QACrE,MAAM,IAAI,qCAAsB,CAC9B,8FAA8F,CAC/F,CAAA;IAEH,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/destinations/tiktok-offline-conversions/utils.ts"],"names":[],"mappings":";;;AAAA,wDAA6E;AAK7E,2CAAuE;AAOvE,SAAgB,mBAAmB,CAAC,OAAsB,EAAE,QAAkB,EAAE,OAA4B;IAC1G,MAAM,aAAa,GAAG,wBAAY,CAAC,OAAO,CAAC,aAAa,CAAC,CAAA;IACzD,MAAM,MAAM,GAAG,wBAAY,CAAC,OAAO,CAAC,eAAe,CAAC,CAAA;IACpD,MAAM,OAAO,GAAG,yBAAa,CAAC,OAAO,CAAC,YAAY,CAAC,CAAA;IAEnD,IAAI,aAAa,CAAC,MAAM,GA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S;wBACzD,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS;qBACvD;oBACD,IAAI,EAAE;wBACJ,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS;wBAC1C,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS;qBAC1D;oBACD,gBAAgB,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,KAAK;oBAC7E,eAAe,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS;iBAC/E;aACF;SACF;KACF,CAAC,CAAA;AACJ,CAAC;AAjED,kDAiEC"}
|
|
@@ -191,7 +191,7 @@ exports.commonFields = {
|
|
|
191
191
|
label: 'Content Type',
|
|
192
192
|
description: 'Type of the product item. When the `content_id` in the `Contents` field is specified as a `sku_id`, set this field to `product`. When the `content_id` in the `Contents` field is specified as an `item_group_id`, set this field to `product_group`.',
|
|
193
193
|
type: 'string',
|
|
194
|
-
choices: ['product', 'product_group'],
|
|
194
|
+
choices: [{ label: 'product', value: 'product' }, { label: 'product_group', value: 'product_group' }],
|
|
195
195
|
default: 'product'
|
|
196
196
|
},
|
|
197
197
|
currency: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common_fields.js","sourceRoot":"","sources":["../../../src/destinations/tiktok-offline-conversions-sandbox/common_fields.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAA+B;IACtD,KAAK,EAAE;QACL,KAAK,EAAE,YAAY;QACnB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,WAAW,EACT,uNAAuN;KAC1N;IACD,QAAQ,EAAE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C9C,IAAI,EAAE,QAAQ;aACf;SACF;KACF;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,cAAc;QACrB,WAAW,EACT,uPAAuP;QACzP,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"common_fields.js","sourceRoot":"","sources":["../../../src/destinations/tiktok-offline-conversions-sandbox/common_fields.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAA+B;IACtD,KAAK,EAAE;QACL,KAAK,EAAE,YAAY;QACnB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,WAAW,EACT,uNAAuN;KAC1N;IACD,QAAQ,EAAE;QACR,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,wDAAwD;QACrE,OAAO,EAAE;YACP,OAAO,EAAE,aAAa;SACvB;KACF;IACD,SAAS,EAAE;QACT,KAAK,EAAE,iBAAiB;QACxB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,0DAA0D;QACvE,OAAO,EAAE;YACP,OAAO,EAAE,aAAa;SACvB;KACF;IACD,aAAa,EAAE;QACb,KAAK,EAAE,cAAc;QACrB,WAAW,EACT,8NAA8N;QAChO,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE;YACP,KAAK,EAAE;gBACL,MAAM,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;gBACzC,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;gBACvC,IAAI,EAAE,EAAE,OAAO,EAAE,wBAAwB,EAAE;aAC5C;SACF;KACF;IACD,eAAe,EAAE;QACf,KAAK,EAAE,OAAO;QACd,WAAW,EACT,2MAA2M;QAC7M,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE;YACP,KAAK,EAAE;gBACL,MAAM,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;gBACzC,IAAI,EAAE,EAAE,O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