@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.event_name = exports.batch_size = exports.enable_batching = exports.
|
|
3
|
+
exports.event_name = exports.batch_size = exports.enable_batching = exports.data = exports.lookup_field = exports.field_value = exports.external_id = void 0;
|
|
4
4
|
exports.external_id = {
|
|
5
5
|
label: 'External ID',
|
|
6
6
|
description: 'The ID of the Static List that users will be synced to.',
|
|
@@ -11,14 +11,96 @@ exports.external_id = {
|
|
|
11
11
|
unsafe_hidden: true,
|
|
12
12
|
required: true
|
|
13
13
|
};
|
|
14
|
-
exports.
|
|
15
|
-
label: '
|
|
16
|
-
description:
|
|
14
|
+
exports.field_value = {
|
|
15
|
+
label: 'Field Value',
|
|
16
|
+
description: 'The value cooresponding to the lookup field.',
|
|
17
17
|
type: 'string',
|
|
18
18
|
default: {
|
|
19
|
-
'@
|
|
19
|
+
'@if': {
|
|
20
|
+
exists: { '@path': '$.context.traits.email' },
|
|
21
|
+
then: { '@path': '$.context.traits.email' },
|
|
22
|
+
else: { '@path': '$.properties.email' }
|
|
23
|
+
}
|
|
20
24
|
},
|
|
21
|
-
|
|
25
|
+
required: true
|
|
26
|
+
};
|
|
27
|
+
exports.lookup_field = {
|
|
28
|
+
label: 'Lookup Field',
|
|
29
|
+
description: `The lead field to use for deduplication and filtering. This field must be apart of the field(s) you are sending to Marketo.`,
|
|
30
|
+
type: 'string',
|
|
31
|
+
choices: [
|
|
32
|
+
{ label: 'Email', value: 'email' },
|
|
33
|
+
{ label: 'Id', value: 'id' },
|
|
34
|
+
{ label: 'Cookies', value: 'cookies' },
|
|
35
|
+
{ label: 'Twitter ID', value: 'twitterId' },
|
|
36
|
+
{ label: 'Facebook ID', value: 'facebookId' },
|
|
37
|
+
{ label: 'LinkedIn ID', value: 'linkedinId' },
|
|
38
|
+
{ label: 'Salesforce Account ID', value: 'sfdcAccountId' },
|
|
39
|
+
{ label: 'Salesforce Contact ID', value: 'sfdcContactId' },
|
|
40
|
+
{ label: 'Salesforce Lead ID', value: 'sfdcLeadId' },
|
|
41
|
+
{ label: 'Salesforce Opportunity ID', value: 'sfdcOpptyId' }
|
|
42
|
+
],
|
|
43
|
+
default: 'email',
|
|
44
|
+
required: true
|
|
45
|
+
};
|
|
46
|
+
exports.data = {
|
|
47
|
+
label: 'Lead Info Fields',
|
|
48
|
+
description: 'The fields that contain data about the lead, such as Email, Last Name, etc. On the left-hand side, input the field name exactly how it appears in Marketo. On the right-hand side, map the Segment field that contains the corresponding value.',
|
|
49
|
+
type: 'object',
|
|
50
|
+
required: true,
|
|
51
|
+
properties: {
|
|
52
|
+
email: {
|
|
53
|
+
label: 'Email',
|
|
54
|
+
description: `The user's email address to send to Marketo.`,
|
|
55
|
+
type: 'string'
|
|
56
|
+
},
|
|
57
|
+
firstName: {
|
|
58
|
+
label: 'First Name',
|
|
59
|
+
description: `The user's first name.`,
|
|
60
|
+
type: 'string'
|
|
61
|
+
},
|
|
62
|
+
lastName: {
|
|
63
|
+
label: 'Last Name',
|
|
64
|
+
description: `The user's last name.`,
|
|
65
|
+
type: 'string'
|
|
66
|
+
},
|
|
67
|
+
phone: {
|
|
68
|
+
label: 'Phone Number',
|
|
69
|
+
description: `The user's phone number.`,
|
|
70
|
+
type: 'string'
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
default: {
|
|
74
|
+
email: {
|
|
75
|
+
'@if': {
|
|
76
|
+
exists: { '@path': '$.context.traits.email' },
|
|
77
|
+
then: { '@path': '$.context.traits.email' },
|
|
78
|
+
else: { '@path': '$.properties.email' }
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
firstName: {
|
|
82
|
+
'@if': {
|
|
83
|
+
exists: { '@path': '$.context.traits.firstName' },
|
|
84
|
+
then: { '@path': '$.context.traits.firstName' },
|
|
85
|
+
else: { '@path': '$.properties.firstName' }
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
lastName: {
|
|
89
|
+
'@if': {
|
|
90
|
+
exists: { '@path': '$.context.traits.lastName' },
|
|
91
|
+
then: { '@path': '$.context.traits.lastName' },
|
|
92
|
+
else: { '@path': '$.properties.lastName' }
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
phone: {
|
|
96
|
+
'@if': {
|
|
97
|
+
exists: { '@path': '$.context.traits.phoneNumber' },
|
|
98
|
+
then: { '@path': '$.context.traits.phoneNumber' },
|
|
99
|
+
else: { '@path': '$.properties.phoneNumber' }
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
additionalProperties: true
|
|
22
104
|
};
|
|
23
105
|
exports.enable_batching = {
|
|
24
106
|
label: 'Enable Batching',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../src/destinations/marketo-static-lists/properties.ts"],"names":[],"mappings":";;;AAEa,QAAA,WAAW,GAAe;IACrC,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,yDAAyD;IACtE,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE;QACP,OAAO,EAAE,yCAAyC;KACnD;IACD,aAAa,EAAE,IAAI;IACnB,QAAQ,EAAE,IAAI;CACf,CAAA;AAEY,QAAA,
|
|
1
|
+
{"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../src/destinations/marketo-static-lists/properties.ts"],"names":[],"mappings":";;;AAEa,QAAA,WAAW,GAAe;IACrC,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,yDAAyD;IACtE,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE;QACP,OAAO,EAAE,yCAAyC;KACnD;IACD,aAAa,EAAE,IAAI;IACnB,QAAQ,EAAE,IAAI;CACf,CAAA;AAEY,QAAA,WAAW,GAAe;IACrC,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,8CAA8C;IAC3D,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE;QACP,KAAK,EAAE;YACL,MAAM,EAAE,EAAE,OAAO,EAAE,wBAAwB,EAAE;YAC7C,IAAI,EAAE,EAAE,OAAO,EAAE,wBAAwB,EAAE;YAC3C,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;SACxC;KACF;IACD,QAAQ,EAAE,IAAI;CACf,CAAA;AAEY,QAAA,YAAY,GAAe;IACtC,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE,6HAA6H;IAC1I,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE;QACP,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;QAClC,EAAE,KAAK,E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AQ;IACd,OAAO,EAAE;QACP,OAAO,EAAE,SAAS;KACnB;IACD,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,IAAI;CACf,CAAA"}
|
|
@@ -8,7 +8,8 @@ const action = {
|
|
|
8
8
|
defaultSubscription: 'event = "Audience Exited"',
|
|
9
9
|
fields: {
|
|
10
10
|
external_id: { ...properties_1.external_id },
|
|
11
|
-
|
|
11
|
+
lookup_field: { ...properties_1.lookup_field },
|
|
12
|
+
field_value: { ...properties_1.field_value },
|
|
12
13
|
enable_batching: { ...properties_1.enable_batching },
|
|
13
14
|
batch_size: { ...properties_1.batch_size },
|
|
14
15
|
event_name: { ...properties_1.event_name }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/marketo-static-lists/removeFromList/index.ts"],"names":[],"mappings":";;AAGA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/marketo-static-lists/removeFromList/index.ts"],"names":[],"mappings":";;AAGA,8CAA+G;AAC/G,4CAA6C;AAE7C,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,sCAAsC;IACnD,mBAAmB,EAAE,2BAA2B;IAChD,MAAM,EAAE;QACN,WAAW,EAAE,EAAE,GAAG,wBAAW,EAAE;QAC/B,YAAY,EAAE,EAAE,GAAG,yBAAY,EAAE;QACjC,WAAW,EAAE,EAAE,GAAG,wBAAW,EAAE;QAC/B,eAAe,EAAE,EAAE,GAAG,4BAAe,EAAE;QACvC,UAAU,EAAE,EAAE,GAAG,uBAAU,EAAE;QAC7B,UAAU,EAAE,EAAE,GAAG,uBAAU,EAAE;KAC9B;IACD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE;QAC9D,YAAY,EAAE,WAAW,EAAE,IAAI,CAAC,oBAAoB,EAAE,CAAC,EAAE,YAAY,EAAE,IAAI,CAAC,CAAA;QAC5E,OAAO,0BAAc,CAAC,OAAO,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,YAAY,CAAC,CAAA;IACnE,CAAC;IACD,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE;QACnE,YAAY,EAAE,WAAW,EAAE,IAAI,CAAC,0BAA0B,EAAE,CAAC,EAAE,YAAY,EAAE,IAAI,CAAC,CAAA;QAClF,OAAO,0BAAc,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,CAAC,CAAA;IACjE,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -4,7 +4,7 @@ const fields_1 = require("../fields");
|
|
|
4
4
|
const utils_1 = require("../utils");
|
|
5
5
|
const action = {
|
|
6
6
|
title: 'Ecommerce Event',
|
|
7
|
-
description: 'Send Segment track() events to Optimizely Data Platform',
|
|
7
|
+
description: 'Send Segment Ecommerce track() events to Optimizely Data Platform',
|
|
8
8
|
fields: {
|
|
9
9
|
user_identifiers: fields_1.user_identifiers,
|
|
10
10
|
event_action: { ...fields_1.event_action },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/optimizely-data-platform/customEvent/index.ts"],"names":[],"mappings":";;AAGA,sCAAgG;AAChG,oCAAgC;AAEhC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,iBAAiB;IACxB,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/optimizely-data-platform/customEvent/index.ts"],"names":[],"mappings":";;AAGA,sCAAgG;AAChG,oCAAgC;AAEhC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,iBAAiB;IACxB,WAAW,EAAE,mEAAmE;IAChF,MAAM,EAAE;QACN,gBAAgB,EAAE,yBAAgB;QAClC,YAAY,EAAE,EAAE,GAAG,qBAAY,EAAE;QACjC,QAAQ,EAAE,EAAE,GAAG,iBAAQ,EAAE;QACzB,QAAQ,EAAE,EAAE,GAAG,iBAAQ,EAAE;QACzB,KAAK,EAAE,EAAE,GAAG,cAAK,EAAE;QACnB,SAAS,EAAE,EAAE,GAAG,kBAAS,EAAE;KAC5B;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC1C,MAAM,IAAI,GAAG,aAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;QAEnC,MAAM,IAAI,GAAG;YACX,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;YAC1C,MAAM,EAAE,OAAO,CAAC,YAAY;YAC5B,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,QAAQ,EAAE,OAAO,CAAC,QAAQ;SAC3B,CAAA;QAED,OAAO,OAAO,CAAC,GAAG,IAAI,eAAe,EAAE;YACrC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;SACX,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { InputField } from '@segment/actions-core/destination-kit/types';
|
|
2
2
|
export declare const event_action: InputField;
|
|
3
|
+
export declare const data: InputField;
|
|
3
4
|
export declare const user_identifiers: InputField;
|
|
4
5
|
export declare const email_action_identifiers: InputField;
|
|
5
6
|
export declare const timestamp: InputField;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.products = exports.total = exports.order_id = exports.timestamp = exports.email_action_identifiers = exports.user_identifiers = exports.event_action = void 0;
|
|
3
|
+
exports.products = exports.total = exports.order_id = exports.timestamp = exports.email_action_identifiers = exports.user_identifiers = exports.data = exports.event_action = void 0;
|
|
4
4
|
exports.event_action = {
|
|
5
5
|
label: 'Optimizely Event Name',
|
|
6
6
|
description: 'The name of the Optimizely event to send',
|
|
@@ -10,6 +10,15 @@ exports.event_action = {
|
|
|
10
10
|
'@path': '$.event'
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
|
+
exports.data = {
|
|
14
|
+
label: 'Event Properties',
|
|
15
|
+
description: 'Additional information to send with your custom event',
|
|
16
|
+
type: 'object',
|
|
17
|
+
required: false,
|
|
18
|
+
default: {
|
|
19
|
+
'@path': '$.properties'
|
|
20
|
+
}
|
|
21
|
+
};
|
|
13
22
|
exports.user_identifiers = {
|
|
14
23
|
label: 'User identifiers',
|
|
15
24
|
description: 'User identifier details to send to Optimizely. ',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../src/destinations/optimizely-data-platform/fields.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAAe;IACtC,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EAAE,0CAA0C;IACvD,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE;QACP,OAAO,EAAE,SAAS;KACnB;CACF,CAAA;AAEY,QAAA,gBAAgB,GAAe;IAC1C,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,iDAAiD;IAC9D,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;IACd,UAAU,EAAE;QACV,WAAW,EAAE;YACX,KAAK,EAAE,sBAAsB;YAC7B,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,sBAAsB;YACnC,QAAQ,EAAE,KAAK;SAChB;QACD,MAAM,EAAE;YACN,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,iBAAiB;YAC9B,QAAQ,EAAE,KAAK;SAChB;QACD,KAAK,EAAE;YACL,KAAK,EAAE,OAAO;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AAA"}
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../src/destinations/optimizely-data-platform/fields.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAAe;IACtC,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EAAE,0CAA0C;IACvD,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE;QACP,OAAO,EAAE,SAAS;KACnB;CACF,CAAA;AAEY,QAAA,IAAI,GAAe;IAC9B,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,uDAAuD;IACpE,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE;QACP,OAAO,EAAE,cAAc;KACxB;CACF,CAAA;AAEY,QAAA,gBAAgB,GAAe;IAC1C,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,iDAAiD;IAC9D,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;IACd,UAAU,EAAE;QACV,WAAW,EAAE;YACX,KAAK,EAAE,sBAAsB;YAC7B,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,sBAAsB;YACnC,QAAQ,EAAE,KAAK;SAChB;QACD,MAAM,EAAE;YACN,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,iBAAiB;YAC9B,QAAQ,EAAE,KAAK;SAChB;QACD,KAAK,EAAE;YACL,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,oBAAoB;YACjC,QAAQ,EAAE,KAAK;SAChB;QACD,eAAe,EAAE;YACf,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,kFAAkF;YAC/F,QAAQ,EAAE,KAAK;SAChB;KACF;IACD,OAAO,EAAE;QACP,WAAW,EAAE;YACX,OAAO,EAAE,eAAe;SACzB;QACD,MAAM,EAAE;YACN,OAAO,EAAE,UAAU;SACpB;QACD,KA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EAAE,IAAI;IACd,OAAO,EAAE;QACP,OAAO,EAAE,aAAa;KACvB;CACF,CAAA;AAEY,QAAA,QAAQ,GAAe;IAClC,KAAK,EAAE,UAAU;IACjB,WAAW,EAAE,0BAA0B;IACvC,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE;QACP,OAAO,EAAE,uBAAuB;KACjC;CACF,CAAA;AAEY,QAAA,KAAK,GAAe;IAC/B,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,0BAA0B;IACvC,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE;QACP,OAAO,EAAE,oBAAoB;KAC9B;CACF,CAAA;AAEY,QAAA,QAAQ,GAAe;IAClC,KAAK,EAAE,iBAAiB;IACxB,WAAW,EAAE,4FAA4F;IACzG,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;IACd,UAAU,EAAE;QACV,UAAU,EAAE;YACV,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,QAAQ;SACf;QACD,GAAG,EAAE;YACH,KAAK,EAAE,UAAU;YACjB,WAAW,EAAE,yBAAyB;YACtC,IAAI,EAAE,QAAQ;SACf;KACF;IACD,OAAO,EAAE;QACP,YAAY,EAAE;YACZ,uBAAuB;YACvB;gBACE,UAAU,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE;gBACvC,GAAG,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE;aAC/B;SACF;KACF;CACF,CAAA"}
|
|
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const actions_core_1 = require("@segment/actions-core");
|
|
7
7
|
const customEvent_1 = __importDefault(require("./customEvent"));
|
|
8
|
+
const nonEcommCustomEvent_1 = __importDefault(require("./nonEcommCustomEvent"));
|
|
8
9
|
const upsertContact_1 = __importDefault(require("./upsertContact"));
|
|
9
10
|
const emailEvent_1 = __importDefault(require("./emailEvent"));
|
|
10
11
|
const utils_1 = require("./utils");
|
|
@@ -147,6 +148,7 @@ const destination = {
|
|
|
147
148
|
],
|
|
148
149
|
actions: {
|
|
149
150
|
customEvent: customEvent_1.default,
|
|
151
|
+
nonEcommCustomEvent: nonEcommCustomEvent_1.default,
|
|
150
152
|
upsertContact: upsertContact_1.default,
|
|
151
153
|
emailEvent: emailEvent_1.default
|
|
152
154
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/optimizely-data-platform/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAAqD;AAGrD,gEAAuC;AACvC,oEAA2C;AAC3C,8DAAqC;AACrC,mCAA+B;AAE/B,MAAM,mBAAmB,GAAG;IAC1B,GAAG,4BAAa,CAAC,qBAAW,CAAC,MAAM,CAAC;IACpC,QAAQ,EAAE;QACR,YAAY,EAAE;YACZ,cAAc;YACd;gBACE,UAAU,EAAE;oBACV,OAAO,EAAE,cAAc;iBACxB;gBACD,GAAG,EAAE;oBACH,OAAO,EAAE,YAAY;iBACtB;aACF;SACF;KACF;CACF,CAAA;AAED,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE,kCAAkC;IACxC,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,iFAAiF;IAC9F,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,MAAM,EAAE;gBACN,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,mEAAmE;gBAChF,IAAI,EAAE,UAAU;gBAChB,QAAQ,EAAE,IAAI;aACf;YACD,MAAM,EAAE;gBACN,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,kDAAkD;gBAC/D,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE;oBAC5B,EAAE,KA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AAW,CAAC,MAAM,CAAC;gBACpC,YAAY,EAAE,oBAAoB;aACnC;YACD,IAAI,EAAE,WAAW;SAClB;QACD;YACE,IAAI,EAAE,oBAAoB;YAC1B,SAAS,EAAE,iDAAiD;YAC5D,aAAa,EAAE,YAAY;YAC3B,OAAO,EAAE;gBACP,GAAG,4BAAa,CAAC,oBAAU,CAAC,MAAM,CAAC;gBACnC,YAAY,EAAE,eAAe;aAC9B;YACD,IAAI,EAAE,WAAW;SAClB;QACD;YACE,IAAI,EAAE,cAAc;YACpB,SAAS,EAAE,2CAA2C;YACtD,aAAa,EAAE,YAAY;YAC3B,OAAO,EAAE;gBACP,GAAG,4BAAa,CAAC,oBAAU,CAAC,MAAM,CAAC;gBACnC,YAAY,EAAE,cAAc;aAC7B;YACD,IAAI,EAAE,WAAW;SAClB;QACD;YACE,IAAI,EAAE,cAAc;YACpB,SAAS,EAAE,2CAA2C;YACtD,aAAa,EAAE,YAAY;YAC3B,OAAO,EAAE;gBACP,GAAG,4BAAa,CAAC,oBAAU,CAAC,MAAM,CAAC;gBACnC,YAAY,EAAE,oBAAoB;aACnC;YACD,IAAI,EAAE,WAAW;SAClB;QACD;YACE,IAAI,EAAE,sBAAsB;YAC5B,SAAS,EAAE,mDAAmD;YAC9D,aAAa,EAAE,YAAY;YAC3B,OAAO,EAAE;gBACP,GAAG,4BAAa,CAAC,oBAAU,CAAC,MAAM,CAAC;gBACnC,YAAY,EAAE,sBAAsB;aACrC;YACD,IAAI,EAAE,WAAW;SAClB;KACF;IACD,OAAO,EAAE;QACP,WAAW,EAAX,qBAAW;QACX,aAAa,EAAb,uBAAa;QACb,UAAU,EAAV,oBAAU;KACX;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/optimizely-data-platform/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAAqD;AAGrD,gEAAuC;AACvC,gFAAuD;AACvD,oEAA2C;AAC3C,8D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AU,CAAC,MAAM,CAAC;gBACnC,YAAY,EAAE,cAAc;aAC7B;YACD,IAAI,EAAE,WAAW;SAClB;QACD;YACE,IAAI,EAAE,cAAc;YACpB,SAAS,EAAE,2CAA2C;YACtD,aAAa,EAAE,YAAY;YAC3B,OAAO,EAAE;gBACP,GAAG,4BAAa,CAAC,oBAAU,CAAC,MAAM,CAAC;gBACnC,YAAY,EAAE,oBAAoB;aACnC;YACD,IAAI,EAAE,WAAW;SAClB;QACD;YACE,IAAI,EAAE,sBAAsB;YAC5B,SAAS,EAAE,mDAAmD;YAC9D,aAAa,EAAE,YAAY;YAC3B,OAAO,EAAE;gBACP,GAAG,4BAAa,CAAC,oBAAU,CAAC,MAAM,CAAC;gBACnC,YAAY,EAAE,sBAAsB;aACrC;YACD,IAAI,EAAE,WAAW;SAClB;KACF;IACD,OAAO,EAAE;QACP,WAAW,EAAX,qBAAW;QACX,mBAAmB,EAAnB,6BAAmB;QACnB,aAAa,EAAb,uBAAa;QACb,UAAU,EAAV,oBAAU;KACX;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/optimizely-data-platform/nonEcommCustomEvent/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const fields_1 = require("../fields");
|
|
4
|
+
const utils_1 = require("../utils");
|
|
5
|
+
const action = {
|
|
6
|
+
title: 'Custom Event',
|
|
7
|
+
description: 'Send Segment custom track() events to Optimizely Data Platform',
|
|
8
|
+
fields: {
|
|
9
|
+
user_identifiers: fields_1.user_identifiers,
|
|
10
|
+
event_action: { ...fields_1.event_action },
|
|
11
|
+
data: { ...fields_1.data },
|
|
12
|
+
timestamp: { ...fields_1.timestamp }
|
|
13
|
+
},
|
|
14
|
+
perform: (request, { payload, settings }) => {
|
|
15
|
+
const host = utils_1.hosts[settings.region];
|
|
16
|
+
const body = {
|
|
17
|
+
user_identifiers: payload.user_identifiers,
|
|
18
|
+
action: payload.event_action,
|
|
19
|
+
timestamp: payload.timestamp,
|
|
20
|
+
data: payload.data
|
|
21
|
+
};
|
|
22
|
+
return request(`${host}/custom_event`, {
|
|
23
|
+
method: 'post',
|
|
24
|
+
json: body
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.default = action;
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/optimizely-data-platform/nonEcommCustomEvent/index.ts"],"names":[],"mappings":";;AAGA,sCAA2E;AAC3E,oCAAgC;AAEhC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE,gEAAgE;IAC7E,MAAM,EAAE;QACN,gBAAgB,EAAE,yBAAgB;QAClC,YAAY,EAAE,EAAE,GAAG,qBAAY,EAAE;QACjC,IAAI,EAAE,EAAE,GAAG,aAAI,EAAE;QACjB,SAAS,EAAE,EAAE,GAAG,kBAAS,EAAE;KAC5B;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC1C,MAAM,IAAI,GAAG,aAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;QAEnC,MAAM,IAAI,GAAG;YACX,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;YAC1C,MAAM,EAAE,OAAO,CAAC,YAAY;YAC5B,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,IAAI,EAAE,OAAO,CAAC,IAAI;SACnB,CAAA;QAED,OAAO,OAAO,CAAC,GAAG,IAAI,eAAe,EAAE;YACrC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;SACX,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InputField } from '@segment/actions-core
|
|
1
|
+
import { InputField } from '@segment/actions-core';
|
|
2
2
|
export declare const operation: InputField;
|
|
3
3
|
export declare const enable_batching: InputField;
|
|
4
4
|
export declare const batch_size: InputField;
|
|
@@ -16,7 +16,7 @@ exports.operation = {
|
|
|
16
16
|
};
|
|
17
17
|
exports.enable_batching = {
|
|
18
18
|
label: 'Use Salesforce Bulk API',
|
|
19
|
-
description: 'If true, events are sent to [Salesforce’s Bulk API 2.0](https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/asynch_api_intro.htm) rather than their streaming REST API. Once enabled, Segment will collect events into batches of
|
|
19
|
+
description: 'If true, events are sent to [Salesforce’s Bulk API 2.0](https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/asynch_api_intro.htm) rather than their streaming REST API. Once enabled, Segment will collect events into batches of 5000 before sending to Salesforce. *Enabling Bulk API is not compatible with the `create` operation*.',
|
|
20
20
|
type: 'boolean',
|
|
21
21
|
default: false
|
|
22
22
|
};
|
|
@@ -45,12 +45,42 @@ exports.bulkUpsertExternalId = {
|
|
|
45
45
|
description: 'The external id field value to use for bulk upsert.',
|
|
46
46
|
type: 'string'
|
|
47
47
|
}
|
|
48
|
+
},
|
|
49
|
+
depends_on: {
|
|
50
|
+
match: 'all',
|
|
51
|
+
conditions: [
|
|
52
|
+
{
|
|
53
|
+
fieldKey: 'operation',
|
|
54
|
+
operator: 'is',
|
|
55
|
+
value: 'upsert'
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
fieldKey: 'enable_batching',
|
|
59
|
+
operator: 'is',
|
|
60
|
+
value: true
|
|
61
|
+
}
|
|
62
|
+
]
|
|
48
63
|
}
|
|
49
64
|
};
|
|
50
65
|
exports.bulkUpdateRecordId = {
|
|
51
66
|
label: 'Bulk Update Record Id',
|
|
52
67
|
description: 'The record id value to use for bulk update.',
|
|
53
|
-
type: 'string'
|
|
68
|
+
type: 'string',
|
|
69
|
+
depends_on: {
|
|
70
|
+
match: 'all',
|
|
71
|
+
conditions: [
|
|
72
|
+
{
|
|
73
|
+
fieldKey: 'operation',
|
|
74
|
+
operator: 'is',
|
|
75
|
+
value: 'update'
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
fieldKey: 'enable_batching',
|
|
79
|
+
operator: 'is',
|
|
80
|
+
value: true
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
}
|
|
54
84
|
};
|
|
55
85
|
exports.recordMatcherOperator = {
|
|
56
86
|
label: 'Record Matchers Operator',
|
|
@@ -60,7 +90,16 @@ exports.recordMatcherOperator = {
|
|
|
60
90
|
{ label: 'OR', value: 'OR' },
|
|
61
91
|
{ label: 'AND', value: 'AND' }
|
|
62
92
|
],
|
|
63
|
-
default: 'OR'
|
|
93
|
+
default: 'OR',
|
|
94
|
+
depends_on: {
|
|
95
|
+
conditions: [
|
|
96
|
+
{
|
|
97
|
+
fieldKey: 'operation',
|
|
98
|
+
operator: 'is',
|
|
99
|
+
value: ['update', 'upsert', 'delete']
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
}
|
|
64
103
|
};
|
|
65
104
|
exports.traits = {
|
|
66
105
|
label: 'Record Matchers',
|
|
@@ -74,7 +113,16 @@ exports.traits = {
|
|
|
74
113
|
|
|
75
114
|
`,
|
|
76
115
|
type: 'object',
|
|
77
|
-
defaultObjectUI: 'keyvalue:only'
|
|
116
|
+
defaultObjectUI: 'keyvalue:only',
|
|
117
|
+
depends_on: {
|
|
118
|
+
conditions: [
|
|
119
|
+
{
|
|
120
|
+
fieldKey: 'operation',
|
|
121
|
+
operator: 'is',
|
|
122
|
+
value: ['update', 'upsert', 'delete']
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
}
|
|
78
126
|
};
|
|
79
127
|
exports.customFields = {
|
|
80
128
|
label: 'Other Fields',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sf-properties.js","sourceRoot":"","sources":["../../../src/destinations/salesforce/sf-properties.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"sf-properties.js","sourceRoot":"","sources":["../../../src/destinations/salesforce/sf-properties.ts"],"names":[],"mappings":";;;AAAA,wDAAoE;AAEvD,QAAA,SAAS,GAAe;IACnC,KAAK,EAAE,WAAW;IAClB,WAAW,EACT,0HAA0H;IAC5H,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE;QACP,EAAE,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,QAAQ,EAAE;QAC/C,EAAE,KAAK,EAAE,wBAAwB,EAAE,KAAK,EAAE,QAAQ,EAAE;QACpD,EAAE,KAAK,EAAE,gDAAgD,EAAE,KAAK,EAAE,QAAQ,EAAE;QAC5E,EAAE,KAAK,EAAE,wBAAwB,EAAE,KAAK,EAAE,QAAQ,EAAE;KACrD;CACF,CAAA;AAEY,QAAA,eAAe,GAAe;IACzC,KAAK,EAAE,yBAAyB;IAChC,WAAW,EACT,kWAAkW;IACpW,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,KAAK;CACf,CAAA;AAEY,QAAA,UAAU,GAAe;IACpC,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,qFAAqF;IAClG,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,KAAK;IACf,aAAa,EAAE,IAAI;IACnB,OAAO,EAAE,IAAI;CACd,CAAA;AAEY,QAAA,oBAAoB,GAAe;IAC9C,KAAK,EAAE,yBAAyB;IAChC,WAAW,EAAE,gEAAgE;IAC7E,IAAI,EAAE,QAAQ;IACd,eAAe,EAAE,eAAe;IAChC,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACV,cAAc,EAAE;YACd,KAAK,EAAE,kBAAkB;YACzB,WAAW,EAAE,sDAAsD;YACnE,IAAI,EAAE,QAAQ;SACf;QACD,eAAe,EAAE;YACf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;;;GAQZ;IACD,IAAI,EAAE,QAAQ;IACd,eAAe,EAAE,eAAe;IAChC,UAAU,EAAE;QACV,UAAU,EAAE;YACV;gBACE,QAAQ,EAAE,WAAW;gBACrB,QAAQ,EAAE,IAAI;gBACd,KAAK,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC;aACtC;SACF;KACF;CACF,CAAA;AAEY,QAAA,YAAY,GAAe;IACtC,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE;;;;;;;GAOZ;IACD,IAAI,EAAE,QAAQ;IACd,eAAe,EAAE,UAAU;CAC5B,CAAA;AAOM,MAAM,cAAc,GAAG,CAAC,OAAgB,EAAE,EAAE;IACjD,IAAI,OAAO,CAAC,SAAS,KAAK,QAAQ,IAAI,OAAO,CAAC,SAAS,KAAK,QAAQ,IAAI,OAAO,CAAC,SAAS,KAAK,QAAQ,EAAE;QACtG,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;YACnB,MAAM,IAAI,+BAAgB,CACxB,wDAAwD,EACxD,8BAA8B,EAC9B,GAAG,CACJ,CAAA;SACF;KACF;AACH,CAAC,CAAA;AAVY,QAAA,cAAc,kBAU1B"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
function snakeCase(str) {
|
|
4
|
+
const result = str.replace(/([A-Z])/g, '$1');
|
|
5
|
+
return result.split(' ').join('_').toLowerCase();
|
|
6
|
+
}
|
|
3
7
|
const action = {
|
|
4
8
|
title: 'Track Event',
|
|
5
9
|
description: 'Send track events to Schematic',
|
|
@@ -7,7 +11,7 @@ const action = {
|
|
|
7
11
|
fields: {
|
|
8
12
|
event_name: {
|
|
9
13
|
label: 'Event name',
|
|
10
|
-
description: 'Name of event',
|
|
14
|
+
description: 'Name of event (this will be snake cased in request)',
|
|
11
15
|
type: 'string',
|
|
12
16
|
required: true,
|
|
13
17
|
default: { '@path': '$.event' }
|
|
@@ -44,7 +48,19 @@ const action = {
|
|
|
44
48
|
description: 'Additional properties to send with event',
|
|
45
49
|
type: 'object',
|
|
46
50
|
defaultObjectUI: 'keyvalue',
|
|
47
|
-
required: false
|
|
51
|
+
required: false,
|
|
52
|
+
additionalProperties: true,
|
|
53
|
+
properties: {
|
|
54
|
+
raw_event_name: {
|
|
55
|
+
label: 'Raw Event Name',
|
|
56
|
+
description: 'Event name',
|
|
57
|
+
type: 'string',
|
|
58
|
+
required: false
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
default: {
|
|
62
|
+
raw_event_name: { '@path': '$.event' }
|
|
63
|
+
}
|
|
48
64
|
}
|
|
49
65
|
},
|
|
50
66
|
perform: (request, { settings, payload }) => {
|
|
@@ -56,7 +72,7 @@ const action = {
|
|
|
56
72
|
company: payload.company_keys,
|
|
57
73
|
user: payload.user_keys,
|
|
58
74
|
traits: payload.traits,
|
|
59
|
-
event: payload.event_name
|
|
75
|
+
event: snakeCase(payload.event_name)
|
|
60
76
|
},
|
|
61
77
|
event_type: 'track'
|
|
62
78
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/schematic/trackEvent/index.ts"],"names":[],"mappings":";;AAIA,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,gCAAgC;IAC7C,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,UAAU,EAAE;YACV,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/schematic/trackEvent/index.ts"],"names":[],"mappings":";;AAIA,SAAS,SAAS,CAAC,GAAW;IAC5B,MAAM,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA;IAC5C,OAAO,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,G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,OAAO,EAAE;gBACP,cAAc,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;aACvC;SACF;KACF;IAED,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QAC1C,OAAO,OAAO,CAAC,oCAAoC,EAAE;YACnD,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,EAAE,qBAAqB,EAAE,GAAG,QAAQ,CAAC,MAAM,EAAE,EAAE;YACxD,IAAI,EAAE;gBACJ,IAAI,EAAE;oBACJ,OAAO,EAAE,OAAO,CAAC,YAAY;oBAC7B,IAAI,EAAE,OAAO,CAAC,SAAS;oBACvB,MAAM,EAAE,OAAO,CAAC,MAAM;oBACtB,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC,UAAU,CAAC;iBACrC;gBACD,UAAU,EAAE,OAAO;aACpB;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -77,6 +77,7 @@ const capiV3tests = () => describe('CAPIv3 Implementation', () => {
|
|
|
77
77
|
const { integration, event_name, event_time, user_data, custom_data, action_source, app_data } = data[0];
|
|
78
78
|
const { em, ph } = user_data;
|
|
79
79
|
const { brands, content_category, content_ids, currency, num_items, value } = custom_data;
|
|
80
|
+
const { app_id } = app_data;
|
|
80
81
|
expect(integration).toBe('segment');
|
|
81
82
|
expect(event_name).toBe('PURCHASE');
|
|
82
83
|
expect(event_time).toBe(1652368875449);
|
|
@@ -85,7 +86,7 @@ const capiV3tests = () => describe('CAPIv3 Implementation', () => {
|
|
|
85
86
|
expect(currency).toBe('USD');
|
|
86
87
|
expect(value).toBe(15);
|
|
87
88
|
expect(action_source).toBe('website');
|
|
88
|
-
expect(
|
|
89
|
+
expect(app_id).toBe('test123');
|
|
89
90
|
expect(brands).toEqual(['Hasbro', 'Mattel']);
|
|
90
91
|
expect(content_category).toEqual(['games', 'games']);
|
|
91
92
|
expect(content_ids).toEqual(['123', '456']);
|
|
@@ -116,6 +117,7 @@ const capiV3tests = () => describe('CAPIv3 Implementation', () => {
|
|
|
116
117
|
const { integration, event_name, event_source_url, event_time, user_data, custom_data, action_source, app_data } = data[0];
|
|
117
118
|
const { client_ip_address, client_user_agent, em, ph } = user_data;
|
|
118
119
|
const { currency, value } = custom_data;
|
|
120
|
+
const { app_id } = app_data;
|
|
119
121
|
expect(integration).toBe('segment');
|
|
120
122
|
expect(event_name).toBe('PURCHASE');
|
|
121
123
|
expect(event_source_url).toBe('https://segment.com/academy/');
|
|
@@ -127,7 +129,7 @@ const capiV3tests = () => describe('CAPIv3 Implementation', () => {
|
|
|
127
129
|
expect(currency).toBe('USD');
|
|
128
130
|
expect(value).toBe(15);
|
|
129
131
|
expect(action_source).toBe('website');
|
|
130
|
-
expect(
|
|
132
|
+
expect(app_id).toBe('test123');
|
|
131
133
|
});
|
|
132
134
|
it('should fail web event without pixel_id', async () => {
|
|
133
135
|
nock_1.default(/.*/).post(/.*/).reply(200);
|
|
@@ -195,6 +197,7 @@ const capiV3tests = () => describe('CAPIv3 Implementation', () => {
|
|
|
195
197
|
const { integration, event_name, event_source_url, event_time, user_data, custom_data, action_source, app_data } = data[0];
|
|
196
198
|
const { client_ip_address, client_user_agent, em, ph } = user_data;
|
|
197
199
|
const { currency, value } = custom_data;
|
|
200
|
+
const { app_id } = app_data;
|
|
198
201
|
expect(integration).toBe('segment');
|
|
199
202
|
expect(event_name).toBe('SAVE');
|
|
200
203
|
expect(event_source_url).toBe('https://segment.com/academy/');
|
|
@@ -206,7 +209,7 @@ const capiV3tests = () => describe('CAPIv3 Implementation', () => {
|
|
|
206
209
|
expect(currency).toBe('USD');
|
|
207
210
|
expect(value).toBe(15);
|
|
208
211
|
expect(action_source).toBe('other');
|
|
209
|
-
expect(
|
|
212
|
+
expect(app_id).toBe('test123');
|
|
210
213
|
});
|
|
211
214
|
it('should handle a mobile app event conversion type', async () => {
|
|
212
215
|
nock_1.default(/.*/).post(/.*/).reply(200);
|
|
@@ -321,6 +324,7 @@ const capiV3tests = () => describe('CAPIv3 Implementation', () => {
|
|
|
321
324
|
const { integration, event_name, event_source_url, event_time, user_data, custom_data, action_source, app_data } = data[0];
|
|
322
325
|
const { client_ip_address, client_user_agent, em, ph } = user_data;
|
|
323
326
|
const { currency, value } = custom_data;
|
|
327
|
+
const { app_id } = app_data;
|
|
324
328
|
expect(integration).toBe('segment');
|
|
325
329
|
expect(event_name).toBe('CUSTOM_EVENT_5');
|
|
326
330
|
expect(event_source_url).toBe('https://segment.com/academy/');
|
|
@@ -332,7 +336,7 @@ const capiV3tests = () => describe('CAPIv3 Implementation', () => {
|
|
|
332
336
|
expect(currency).toBe('USD');
|
|
333
337
|
expect(value).toBe(15);
|
|
334
338
|
expect(action_source).toBe('app');
|
|
335
|
-
expect(
|
|
339
|
+
expect(app_id).toBe('123');
|
|
336
340
|
});
|
|
337
341
|
it('should fail event missing all Snap identifiers', async () => {
|
|
338
342
|
const event = actions_core_1.createTestEvent({
|