@segment/action-destinations 3.110.1-apha.5 → 3.111.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/actions-pardot/prospects/index.js.map +1 -1
- package/dist/destinations/adobe-target/adobeTarget_operations.d.ts +1 -1
- package/dist/destinations/adobe-target/adobeTarget_operations.js +21 -15
- package/dist/destinations/adobe-target/adobeTarget_operations.js.map +1 -1
- package/dist/destinations/adobe-target/generated-types.d.ts +1 -0
- package/dist/destinations/adobe-target/index.js +15 -0
- package/dist/destinations/adobe-target/index.js.map +1 -1
- package/dist/destinations/amplitude/compact.d.ts +2 -0
- package/dist/destinations/amplitude/compact.js +7 -0
- package/dist/destinations/amplitude/compact.js.map +1 -0
- package/dist/destinations/amplitude/index.js +6 -6
- package/dist/destinations/amplitude/index.js.map +1 -1
- package/dist/destinations/amplitude/logEvent/generated-types.d.ts +0 -21
- package/dist/destinations/amplitude/logEvent/index.js +10 -96
- package/dist/destinations/amplitude/logEvent/index.js.map +1 -1
- package/dist/destinations/amplitude/logEventV2/index.js +16 -15
- package/dist/destinations/amplitude/logEventV2/index.js.map +1 -1
- package/dist/destinations/cordial/addProductToCart/index.js +1 -1
- package/dist/destinations/cordial/addProductToCart/index.js.map +1 -1
- package/dist/destinations/cordial/index.js +1 -1
- package/dist/destinations/cordial/index.js.map +1 -1
- package/dist/destinations/cordial/removeProductFromCart/index.js.map +1 -1
- package/dist/destinations/cordial/upsertOrder/index.js +8 -8
- package/dist/destinations/cordial/upsertOrder/index.js.map +1 -1
- package/dist/destinations/customerio/trackEvent/index.js.map +1 -1
- package/dist/destinations/engage-messaging-sendgrid/generated-types.d.ts +0 -1
- package/dist/destinations/engage-messaging-sendgrid/index.js +0 -5
- package/dist/destinations/engage-messaging-sendgrid/index.js.map +1 -1
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/generated-types.d.ts +1 -0
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js +8 -6
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js.map +1 -1
- package/dist/destinations/engage-messaging-twilio/sendSms/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/addToCart/index.js +1 -5
- package/dist/destinations/facebook-conversions-api/addToCart/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/custom/index.js +1 -5
- package/dist/destinations/facebook-conversions-api/custom/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/fb-capi-properties.d.ts +2 -1
- package/dist/destinations/facebook-conversions-api/fb-capi-properties.js +8 -6
- package/dist/destinations/facebook-conversions-api/fb-capi-properties.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/initiateCheckout/index.js +1 -5
- package/dist/destinations/facebook-conversions-api/initiateCheckout/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/pageView/index.js +1 -5
- package/dist/destinations/facebook-conversions-api/pageView/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/purchase/index.js +1 -5
- package/dist/destinations/facebook-conversions-api/purchase/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/search/index.js +1 -5
- package/dist/destinations/facebook-conversions-api/search/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/viewContent/index.js +3 -6
- package/dist/destinations/facebook-conversions-api/viewContent/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/functions.d.ts +5 -2
- package/dist/destinations/google-enhanced-conversions/functions.js +27 -7
- package/dist/destinations/google-enhanced-conversions/functions.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/index.js +2 -2
- package/dist/destinations/google-enhanced-conversions/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/postConversion/index.js +1 -1
- package/dist/destinations/google-enhanced-conversions/postConversion/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/types.d.ts +8 -0
- package/dist/destinations/google-enhanced-conversions/types.js +2 -0
- package/dist/destinations/google-enhanced-conversions/types.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadCallConversion/generated-types.d.ts +2 -2
- package/dist/destinations/google-enhanced-conversions/uploadCallConversion/index.js +20 -33
- package/dist/destinations/google-enhanced-conversions/uploadCallConversion/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/generated-types.d.ts +2 -2
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js +31 -50
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/generated-types.d.ts +2 -2
- package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js +62 -45
- package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js.map +1 -1
- package/dist/destinations/{salesforce-marketing-cloud → hubspot}/generated-types.d.ts +0 -0
- package/dist/destinations/{salesforce-marketing-cloud/contact → hubspot}/generated-types.js +0 -0
- package/dist/destinations/hubspot/generated-types.js.map +1 -0
- package/dist/destinations/{salesforce-marketing-cloud → hubspot}/index.d.ts +0 -0
- package/dist/destinations/hubspot/index.js +47 -0
- package/dist/destinations/hubspot/index.js.map +1 -0
- package/dist/destinations/hubspot/properties.d.ts +1 -0
- package/dist/destinations/hubspot/properties.js +5 -0
- package/dist/destinations/hubspot/properties.js.map +1 -0
- package/dist/destinations/hubspot/sendCustomBehavioralEvent/generated-types.d.ts +10 -0
- package/dist/destinations/{salesforce-marketing-cloud → hubspot/sendCustomBehavioralEvent}/generated-types.js +0 -0
- package/dist/destinations/hubspot/sendCustomBehavioralEvent/generated-types.js.map +1 -0
- package/dist/destinations/{salesforce-marketing-cloud/contact → hubspot/sendCustomBehavioralEvent}/index.d.ts +0 -0
- package/dist/destinations/hubspot/sendCustomBehavioralEvent/index.js +69 -0
- package/dist/destinations/hubspot/sendCustomBehavioralEvent/index.js.map +1 -0
- package/dist/destinations/hubspot/testHelper.d.ts +7 -0
- package/dist/destinations/hubspot/testHelper.js +24 -0
- package/dist/destinations/hubspot/testHelper.js.map +1 -0
- package/dist/destinations/hubspot/upsertContact/generated-types.d.ts +17 -0
- package/dist/destinations/{mixpanel/trackEvent/types.js → hubspot/upsertContact/generated-types.js} +1 -1
- package/dist/destinations/hubspot/upsertContact/generated-types.js.map +1 -0
- package/dist/destinations/hubspot/upsertContact/index.d.ts +5 -0
- package/dist/destinations/hubspot/upsertContact/index.js +183 -0
- package/dist/destinations/hubspot/upsertContact/index.js.map +1 -0
- package/dist/destinations/hubspot/upsertCustomObjectRecord/generated-types.d.ts +6 -0
- package/dist/destinations/hubspot/upsertCustomObjectRecord/generated-types.js +3 -0
- package/dist/destinations/hubspot/upsertCustomObjectRecord/generated-types.js.map +1 -0
- package/dist/destinations/hubspot/upsertCustomObjectRecord/index.d.ts +5 -0
- package/dist/destinations/hubspot/upsertCustomObjectRecord/index.js +38 -0
- package/dist/destinations/hubspot/upsertCustomObjectRecord/index.js.map +1 -0
- package/dist/destinations/index.js +1 -2
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/linkedin-audiences/index.js +38 -11
- package/dist/destinations/linkedin-audiences/index.js.map +1 -1
- package/dist/destinations/linkedin-audiences/updateAudience/index.js +19 -10
- package/dist/destinations/linkedin-audiences/updateAudience/index.js.map +1 -1
- package/dist/destinations/{salesforce-marketing-cloud/contact → loops/createContact}/generated-types.d.ts +1 -0
- package/dist/destinations/loops/createContact/generated-types.js +3 -0
- package/dist/destinations/loops/createContact/generated-types.js.map +1 -0
- package/dist/destinations/loops/createContact/index.d.ts +5 -0
- package/dist/destinations/loops/createContact/index.js +33 -0
- package/dist/destinations/loops/createContact/index.js.map +1 -0
- package/dist/destinations/loops/generated-types.d.ts +3 -0
- package/dist/destinations/loops/generated-types.js +3 -0
- package/dist/destinations/loops/generated-types.js.map +1 -0
- package/dist/destinations/loops/index.d.ts +4 -0
- package/dist/destinations/loops/index.js +35 -0
- package/dist/destinations/loops/index.js.map +1 -0
- package/dist/destinations/mixpanel/groupIdentifyUser/index.js +5 -2
- package/dist/destinations/mixpanel/groupIdentifyUser/index.js.map +1 -1
- package/dist/destinations/mixpanel/identifyUser/index.js +11 -2
- package/dist/destinations/mixpanel/identifyUser/index.js.map +1 -1
- package/dist/destinations/mixpanel/index.js +11 -3
- package/dist/destinations/mixpanel/index.js.map +1 -1
- package/dist/destinations/mixpanel/mixpanel-properties.d.ts +3 -0
- package/dist/destinations/mixpanel/mixpanel-properties.js +440 -0
- package/dist/destinations/mixpanel/mixpanel-properties.js.map +1 -0
- package/dist/destinations/mixpanel/mixpanel-types.d.ts +55 -0
- package/dist/destinations/{google-enhanced-conversions/uploadClickConversion/types.js → mixpanel/mixpanel-types.js} +1 -1
- package/dist/destinations/mixpanel/mixpanel-types.js.map +1 -0
- package/dist/destinations/mixpanel/trackEvent/functions.d.ts +4 -0
- package/dist/destinations/mixpanel/trackEvent/functions.js +64 -0
- package/dist/destinations/mixpanel/trackEvent/functions.js.map +1 -0
- package/dist/destinations/mixpanel/trackEvent/generated-types.d.ts +3 -0
- package/dist/destinations/mixpanel/trackEvent/index.js +25 -1
- package/dist/destinations/mixpanel/trackEvent/index.js.map +1 -1
- package/dist/destinations/mixpanel/trackPurchase/generated-types.d.ts +65 -0
- package/dist/destinations/mixpanel/trackPurchase/generated-types.js +3 -0
- package/dist/destinations/mixpanel/trackPurchase/generated-types.js.map +1 -0
- package/dist/destinations/mixpanel/trackPurchase/index.d.ts +5 -0
- package/dist/destinations/mixpanel/trackPurchase/index.js +80 -0
- package/dist/destinations/mixpanel/trackPurchase/index.js.map +1 -0
- package/dist/destinations/salesforce/customObject/index.js +8 -1
- package/dist/destinations/salesforce/customObject/index.js.map +1 -1
- package/dist/destinations/salesforce/lead/index.js +1 -2
- package/dist/destinations/salesforce/lead/index.js.map +1 -1
- package/dist/destinations/salesforce/sf-operations.d.ts +2 -0
- package/dist/destinations/salesforce/sf-operations.js +28 -0
- package/dist/destinations/salesforce/sf-operations.js.map +1 -1
- package/dist/destinations/sendgrid/index.js +8 -0
- package/dist/destinations/sendgrid/index.js.map +1 -1
- package/dist/destinations/sendgrid/sendgrid-properties.d.ts +8 -5
- package/dist/destinations/sendgrid/sendgrid-properties.js +37 -3
- package/dist/destinations/sendgrid/sendgrid-properties.js.map +1 -1
- package/dist/destinations/sendgrid/updateUserProfile/index.js +6 -10
- package/dist/destinations/sendgrid/updateUserProfile/index.js.map +1 -1
- package/dist/destinations/tiktok-conversions/reportWebEvent/generated-types.d.ts +1 -0
- package/dist/destinations/tiktok-conversions/reportWebEvent/index.js +15 -2
- package/dist/destinations/tiktok-conversions/reportWebEvent/index.js.map +1 -1
- package/dist/destinations/twilio/sendSms/generated-types.d.ts +1 -0
- package/dist/destinations/twilio/sendSms/index.js +6 -0
- package/dist/destinations/twilio/sendSms/index.js.map +1 -1
- package/package.json +4 -4
- package/dist/destinations/amplitude/emptyObject.d.ts +0 -2
- package/dist/destinations/amplitude/emptyObject.js +0 -7
- package/dist/destinations/amplitude/emptyObject.js.map +0 -1
- package/dist/destinations/google-enhanced-conversions/constants.d.ts +0 -1
- package/dist/destinations/google-enhanced-conversions/constants.js +0 -185
- package/dist/destinations/google-enhanced-conversions/constants.js.map +0 -1
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/types.d.ts +0 -5
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/types.js.map +0 -1
- package/dist/destinations/mixpanel/trackEvent/types.d.ts +0 -51
- package/dist/destinations/mixpanel/trackEvent/types.js.map +0 -1
- package/dist/destinations/salesforce-marketing-cloud/contact/generated-types.js.map +0 -1
- package/dist/destinations/salesforce-marketing-cloud/contact/index.js +0 -11
- package/dist/destinations/salesforce-marketing-cloud/contact/index.js.map +0 -1
- package/dist/destinations/salesforce-marketing-cloud/generated-types.js.map +0 -1
- package/dist/destinations/salesforce-marketing-cloud/index.js +0 -27
- package/dist/destinations/salesforce-marketing-cloud/index.js.map +0 -1
|
@@ -57,11 +57,20 @@ const action = {
|
|
|
57
57
|
responses.push(identifyResponse);
|
|
58
58
|
}
|
|
59
59
|
if (payload.traits && Object.keys(payload.traits).length > 0) {
|
|
60
|
+
const traits = {
|
|
61
|
+
...actions_core_1.omit(payload.traits, ['created', 'email', 'firstName', 'lastName', 'name', 'username', 'phone']),
|
|
62
|
+
$created: payload.traits.created,
|
|
63
|
+
$email: payload.traits.email,
|
|
64
|
+
$first_name: payload.traits.firstName,
|
|
65
|
+
$last_name: payload.traits.lastName,
|
|
66
|
+
$name: payload.traits.name,
|
|
67
|
+
$username: payload.traits.username,
|
|
68
|
+
$phone: payload.traits.phone
|
|
69
|
+
};
|
|
60
70
|
const data = {
|
|
61
71
|
$token: settings.projectToken,
|
|
62
72
|
$distinct_id: payload.user_id,
|
|
63
|
-
$set:
|
|
64
|
-
segment_source_name: settings.sourceName
|
|
73
|
+
$set: traits
|
|
65
74
|
};
|
|
66
75
|
const engageResponse = request(`${apiServerUrl}/engage`, {
|
|
67
76
|
method: 'post',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/mixpanel/identifyUser/index.ts"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/mixpanel/identifyUser/index.ts"],"names":[],"mappings":";;AAAA,wDAAgF;AAIhF,oCAA0C;AAE1C,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EACT,8UAA8U;IAChV,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,OAAO,EAAE;YACP,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,IAAI;YACf,WAAW,EAAE,uCAAuC;YACpD,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,YAAY,EAAE;YACZ,KAAK,EAAE,cAAc;YACrB,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,IAAI;YACf,WAAW,EAAE,yCAAyC;YACtD,OAAO,EAAE;gBACP,OAAO,EAAE,eAAe;aACzB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AO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;gBAEnG,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,OAAO;gBAChC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK;gBAC5B,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS;gBACrC,UAAU,EAAE,OAAO,CAAC,MAAM,CAAC,QAAQ;gBACnC,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,IAAI;gBAC1B,SAAS,EAAE,OAAO,CAAC,MAAM,CAAC,QAAQ;gBAClC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK;aAC7B,CAAA;YACD,MAAM,IAAI,GAAG;gBACX,MAAM,EAAE,QAAQ,CAAC,YAAY;gBAC7B,YAAY,EAAE,OAAO,CAAC,OAAO;gBAC7B,IAAI,EAAE,MAAM;aACb,CAAA;YAED,MAAM,cAAc,GAAG,OAAO,CAAC,GAAI,YAAa,SAAS,EAAE;gBACzD,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,IAAI,eAAe,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;aAC1D,CAAC,CAAA;YACF,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA;SAC/B;QACD,OAAO,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAA;IAC/B,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -9,13 +9,20 @@ const identifyUser_1 = __importDefault(require("./identifyUser"));
|
|
|
9
9
|
const groupIdentifyUser_1 = __importDefault(require("./groupIdentifyUser"));
|
|
10
10
|
const alias_1 = __importDefault(require("./alias"));
|
|
11
11
|
const utils_1 = require("./utils");
|
|
12
|
+
const trackPurchase_1 = __importDefault(require("./trackPurchase"));
|
|
12
13
|
const presets = [
|
|
13
14
|
{
|
|
14
15
|
name: 'Track Calls',
|
|
15
|
-
subscribe: 'type = "track"',
|
|
16
|
+
subscribe: 'type = "track" and event != "Order Completed"',
|
|
16
17
|
partnerAction: 'trackEvent',
|
|
17
18
|
mapping: actions_core_1.defaultValues(trackEvent_1.default.fields)
|
|
18
19
|
},
|
|
20
|
+
{
|
|
21
|
+
name: 'Order Completed Calls',
|
|
22
|
+
subscribe: 'type = "track" and event = "Order Completed"',
|
|
23
|
+
partnerAction: 'trackPurchase',
|
|
24
|
+
mapping: actions_core_1.defaultValues(trackPurchase_1.default.fields)
|
|
25
|
+
},
|
|
19
26
|
{
|
|
20
27
|
name: 'Page Calls',
|
|
21
28
|
subscribe: 'type = "page"',
|
|
@@ -80,7 +87,7 @@ const destination = {
|
|
|
80
87
|
sourceName: {
|
|
81
88
|
label: 'Source Name',
|
|
82
89
|
description: "This value, if it's not blank, will be sent as segment_source_name to Mixpanel for every event/page/screen call.",
|
|
83
|
-
type: 'string'
|
|
90
|
+
type: 'string',
|
|
84
91
|
}
|
|
85
92
|
},
|
|
86
93
|
testAuthentication: (request, { settings }) => {
|
|
@@ -98,7 +105,8 @@ const destination = {
|
|
|
98
105
|
trackEvent: trackEvent_1.default,
|
|
99
106
|
identifyUser: identifyUser_1.default,
|
|
100
107
|
groupIdentifyUser: groupIdentifyUser_1.default,
|
|
101
|
-
alias: alias_1.default
|
|
108
|
+
alias: alias_1.default,
|
|
109
|
+
trackPurchase: trackPurchase_1.default
|
|
102
110
|
}
|
|
103
111
|
};
|
|
104
112
|
exports.default = destination;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/mixpanel/index.ts"],"names":[],"mappings":";;;;;AACA,wDAAqD;AACrD,8DAAqC;AAGrC,kEAAyC;AACzC,4EAAmD;AAEnD,oDAA2B;AAC3B,mCAAoC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/mixpanel/index.ts"],"names":[],"mappings":";;;;;AACA,wDAAqD;AACr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@@ -0,0 +1,440 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.productsProperties = exports.eventProperties = void 0;
|
|
4
|
+
exports.eventProperties = {
|
|
5
|
+
distinct_id: {
|
|
6
|
+
label: 'Distinct ID',
|
|
7
|
+
type: 'string',
|
|
8
|
+
description: 'A distinct ID specified by you.',
|
|
9
|
+
default: {
|
|
10
|
+
'@if': {
|
|
11
|
+
exists: { '@path': '$.userId' },
|
|
12
|
+
then: { '@path': '$.userId' },
|
|
13
|
+
else: { '@path': '$.anonymousId' }
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
group_id: {
|
|
18
|
+
label: 'Group ID',
|
|
19
|
+
type: 'string',
|
|
20
|
+
description: 'The unique identifier of the group that performed this event.',
|
|
21
|
+
default: {
|
|
22
|
+
'@path': '$.context.groupId'
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
insert_id: {
|
|
26
|
+
label: 'Insert ID',
|
|
27
|
+
type: 'string',
|
|
28
|
+
description: 'A random id that is unique to an event. Mixpanel uses $insert_id to deduplicate events.',
|
|
29
|
+
default: {
|
|
30
|
+
'@path': '$.messageId'
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
time: {
|
|
34
|
+
label: 'Timestamp',
|
|
35
|
+
type: 'datetime',
|
|
36
|
+
description: 'The timestamp of the event. If time is not sent with the event, it will be set to the time our servers receive it.',
|
|
37
|
+
default: {
|
|
38
|
+
'@path': '$.timestamp'
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
app_name: {
|
|
42
|
+
label: 'App Name',
|
|
43
|
+
type: 'string',
|
|
44
|
+
description: 'The name of your application.',
|
|
45
|
+
default: {
|
|
46
|
+
'@path': '$.context.app.name'
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
app_namespace: {
|
|
50
|
+
label: 'App Namespace',
|
|
51
|
+
type: 'string',
|
|
52
|
+
description: 'The namespace of your application.',
|
|
53
|
+
default: {
|
|
54
|
+
'@path': '$.context.app.namespace'
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
app_build: {
|
|
58
|
+
label: 'App Build',
|
|
59
|
+
type: 'string',
|
|
60
|
+
description: 'The current build of your application.',
|
|
61
|
+
default: {
|
|
62
|
+
'@path': '$.context.app.build'
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
app_version: {
|
|
66
|
+
label: 'App Version',
|
|
67
|
+
type: 'string',
|
|
68
|
+
description: 'The current version of your application.',
|
|
69
|
+
default: {
|
|
70
|
+
'@path': '$.context.app.version'
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
os_name: {
|
|
74
|
+
label: 'OS Name',
|
|
75
|
+
type: 'string',
|
|
76
|
+
description: 'The name of the mobile operating system or browser that the user is using.',
|
|
77
|
+
default: {
|
|
78
|
+
'@path': '$.context.os.name'
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
os_version: {
|
|
82
|
+
label: 'OS Version',
|
|
83
|
+
type: 'string',
|
|
84
|
+
description: 'The version of the mobile operating system or browser the user is using.',
|
|
85
|
+
default: {
|
|
86
|
+
'@path': '$.context.os.version'
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
device_id: {
|
|
90
|
+
label: 'Device ID',
|
|
91
|
+
type: 'string',
|
|
92
|
+
description: 'A unique identifier for the device the user is using.',
|
|
93
|
+
default: {
|
|
94
|
+
'@path': '$.context.device.id'
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
device_type: {
|
|
98
|
+
label: 'Device Type',
|
|
99
|
+
type: 'string',
|
|
100
|
+
description: "The type of the user's device.",
|
|
101
|
+
default: {
|
|
102
|
+
'@path': '$.context.device.type'
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
device_name: {
|
|
106
|
+
label: 'Device Name',
|
|
107
|
+
type: 'string',
|
|
108
|
+
description: "The name of the user's device.",
|
|
109
|
+
default: {
|
|
110
|
+
'@path': '$.context.device.name'
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
device_manufacturer: {
|
|
114
|
+
label: 'Device Manufacturer',
|
|
115
|
+
type: 'string',
|
|
116
|
+
description: 'The device manufacturer that the user is using.',
|
|
117
|
+
default: {
|
|
118
|
+
'@path': '$.context.device.manufacturer'
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
device_model: {
|
|
122
|
+
label: 'Device Model',
|
|
123
|
+
type: 'string',
|
|
124
|
+
description: 'The device model that the user is using.',
|
|
125
|
+
default: {
|
|
126
|
+
'@path': '$.context.device.model'
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
bluetooth: {
|
|
130
|
+
label: 'Bluetooth Enabled',
|
|
131
|
+
type: 'boolean',
|
|
132
|
+
description: 'Whether bluetooth is enabled.',
|
|
133
|
+
default: {
|
|
134
|
+
'@path': '$.context.network.bluetooth'
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
carrier: {
|
|
138
|
+
label: 'Carrier',
|
|
139
|
+
type: 'string',
|
|
140
|
+
description: 'The carrier that the user is using.',
|
|
141
|
+
default: {
|
|
142
|
+
'@path': '$.context.network.carrier'
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
cellular: {
|
|
146
|
+
label: 'Cellular Enabled',
|
|
147
|
+
type: 'boolean',
|
|
148
|
+
description: 'Whether cellular is enabled.',
|
|
149
|
+
default: {
|
|
150
|
+
'@path': '$.context.network.cellular'
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
wifi: {
|
|
154
|
+
label: 'Wifi',
|
|
155
|
+
type: 'boolean',
|
|
156
|
+
description: 'Set to true if user’s device has an active, available Wifi connection, false if not.',
|
|
157
|
+
default: {
|
|
158
|
+
'@path': '$.context.network.wifi'
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
country: {
|
|
162
|
+
label: 'Country',
|
|
163
|
+
type: 'string',
|
|
164
|
+
description: 'The current country of the user.',
|
|
165
|
+
default: {
|
|
166
|
+
'@path': '$.context.location.country'
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
region: {
|
|
170
|
+
label: 'Region',
|
|
171
|
+
type: 'string',
|
|
172
|
+
description: 'The current region of the user.',
|
|
173
|
+
default: {
|
|
174
|
+
'@path': '$.context.location.region'
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
language: {
|
|
178
|
+
label: 'Language',
|
|
179
|
+
type: 'string',
|
|
180
|
+
description: 'The language set by the user.',
|
|
181
|
+
default: {
|
|
182
|
+
'@path': '$.context.locale'
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
library_name: {
|
|
186
|
+
label: 'Library Name',
|
|
187
|
+
type: 'string',
|
|
188
|
+
description: 'The name of the SDK used to send events.',
|
|
189
|
+
default: {
|
|
190
|
+
'@path': '$.context.library.name'
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
library_version: {
|
|
194
|
+
label: 'Library Version',
|
|
195
|
+
type: 'string',
|
|
196
|
+
description: 'The version of the SDK used to send events.',
|
|
197
|
+
default: {
|
|
198
|
+
'@path': '$.context.library.version'
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
ip: {
|
|
202
|
+
label: 'IP Address',
|
|
203
|
+
type: 'string',
|
|
204
|
+
description: "The IP address of the user. This is only used for geolocation and won't be stored.",
|
|
205
|
+
default: {
|
|
206
|
+
'@path': '$.context.ip'
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
idfa: {
|
|
210
|
+
label: 'Identifier For Advertiser (IDFA)',
|
|
211
|
+
type: 'string',
|
|
212
|
+
description: 'Identifier for Advertiser. _(iOS)_',
|
|
213
|
+
default: {
|
|
214
|
+
'@if': {
|
|
215
|
+
exists: { '@path': '$.context.device.advertisingId' },
|
|
216
|
+
then: { '@path': '$.context.device.advertisingId' },
|
|
217
|
+
else: { '@path': '$.context.device.idfa' }
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
url: {
|
|
222
|
+
label: 'URL',
|
|
223
|
+
type: 'string',
|
|
224
|
+
description: 'The full URL of the webpage on which the event is triggered.',
|
|
225
|
+
default: {
|
|
226
|
+
'@path': '$.context.page.url'
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
screen_width: {
|
|
230
|
+
label: 'Screen width',
|
|
231
|
+
type: 'number',
|
|
232
|
+
description: 'Width, in pixels, of the device screen.',
|
|
233
|
+
default: {
|
|
234
|
+
'@path': '$.context.screen.density'
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
screen_height: {
|
|
238
|
+
label: 'Screen height',
|
|
239
|
+
type: 'number',
|
|
240
|
+
description: 'Height, in pixels, of the device screen.',
|
|
241
|
+
default: {
|
|
242
|
+
'@path': '$.context.screen.density'
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
screen_density: {
|
|
246
|
+
label: 'Screen density',
|
|
247
|
+
type: 'number',
|
|
248
|
+
description: 'Pixel density of the device screen.',
|
|
249
|
+
default: {
|
|
250
|
+
'@path': '$.context.screen.density'
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
referrer: {
|
|
254
|
+
label: 'Referrer',
|
|
255
|
+
type: 'string',
|
|
256
|
+
description: 'Referrer url',
|
|
257
|
+
default: {
|
|
258
|
+
'@path': '$.context.page.referrer'
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
userAgent: {
|
|
262
|
+
label: 'User Agent',
|
|
263
|
+
type: 'string',
|
|
264
|
+
description: 'User agent',
|
|
265
|
+
default: {
|
|
266
|
+
'@path': '$.context.userAgent'
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
event_properties: {
|
|
270
|
+
label: 'Event Properties',
|
|
271
|
+
type: 'object',
|
|
272
|
+
description: 'An object of key-value pairs that represent additional data to be sent along with the event.',
|
|
273
|
+
default: {
|
|
274
|
+
'@path': '$.properties'
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
user_properties: {
|
|
278
|
+
label: 'User Properties',
|
|
279
|
+
type: 'object',
|
|
280
|
+
description: 'An object of key-value pairs that represent additional data tied to the user.',
|
|
281
|
+
default: {
|
|
282
|
+
'@path': '$.traits'
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
utm_properties: {
|
|
286
|
+
label: 'UTM Properties',
|
|
287
|
+
type: 'object',
|
|
288
|
+
description: 'UTM Tracking Properties',
|
|
289
|
+
properties: {
|
|
290
|
+
utm_source: {
|
|
291
|
+
label: 'UTM Source',
|
|
292
|
+
type: 'string'
|
|
293
|
+
},
|
|
294
|
+
utm_medium: {
|
|
295
|
+
label: 'UTM Medium',
|
|
296
|
+
type: 'string'
|
|
297
|
+
},
|
|
298
|
+
utm_campaign: {
|
|
299
|
+
label: 'UTM Campaign',
|
|
300
|
+
type: 'string'
|
|
301
|
+
},
|
|
302
|
+
utm_term: {
|
|
303
|
+
label: 'UTM Term',
|
|
304
|
+
type: 'string'
|
|
305
|
+
},
|
|
306
|
+
utm_content: {
|
|
307
|
+
label: 'UTM Content',
|
|
308
|
+
type: 'string'
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
default: {
|
|
312
|
+
utm_source: { '@path': '$.context.campaign.source' },
|
|
313
|
+
utm_medium: { '@path': '$.context.campaign.medium' },
|
|
314
|
+
utm_campaign: { '@path': '$.context.campaign.name' },
|
|
315
|
+
utm_term: { '@path': '$.context.campaign.term' },
|
|
316
|
+
utm_content: { '@path': '$.context.campaign.content' }
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
enable_batching: {
|
|
320
|
+
type: 'boolean',
|
|
321
|
+
label: 'Batch Data to Mixpanel',
|
|
322
|
+
description: 'Set as true to ensure Segment sends data to Mixpanel in batches.',
|
|
323
|
+
default: true
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
exports.productsProperties = {
|
|
327
|
+
products: {
|
|
328
|
+
label: 'Products',
|
|
329
|
+
description: 'Products in the order.',
|
|
330
|
+
type: 'object',
|
|
331
|
+
multiple: true,
|
|
332
|
+
additionalProperties: true,
|
|
333
|
+
properties: {
|
|
334
|
+
product_id: {
|
|
335
|
+
label: 'Product Id',
|
|
336
|
+
type: 'string',
|
|
337
|
+
description: 'Database id of the product being viewed.'
|
|
338
|
+
},
|
|
339
|
+
sku: {
|
|
340
|
+
label: 'SKU',
|
|
341
|
+
type: 'string',
|
|
342
|
+
description: 'Sku of the product being viewed.'
|
|
343
|
+
},
|
|
344
|
+
category: {
|
|
345
|
+
label: 'Category',
|
|
346
|
+
type: 'string',
|
|
347
|
+
description: 'Product category being viewed.'
|
|
348
|
+
},
|
|
349
|
+
name: {
|
|
350
|
+
label: 'Name',
|
|
351
|
+
type: 'string',
|
|
352
|
+
description: 'Name of the product being viewed.'
|
|
353
|
+
},
|
|
354
|
+
brand: {
|
|
355
|
+
label: 'Brand',
|
|
356
|
+
type: 'string',
|
|
357
|
+
description: 'Brand associated with the product.'
|
|
358
|
+
},
|
|
359
|
+
variant: {
|
|
360
|
+
label: 'Variant',
|
|
361
|
+
type: 'string',
|
|
362
|
+
description: 'Variant of the product.'
|
|
363
|
+
},
|
|
364
|
+
price: {
|
|
365
|
+
label: 'Price',
|
|
366
|
+
type: 'number',
|
|
367
|
+
description: 'Price ($) of the product being viewed.'
|
|
368
|
+
},
|
|
369
|
+
quantity: {
|
|
370
|
+
label: 'Quantity',
|
|
371
|
+
type: 'integer',
|
|
372
|
+
description: 'Quantity of a product.'
|
|
373
|
+
},
|
|
374
|
+
coupon: {
|
|
375
|
+
label: 'Coupon',
|
|
376
|
+
type: 'string',
|
|
377
|
+
description: 'Coupon code associated with a product (for example, MAY_DEALS_3).'
|
|
378
|
+
},
|
|
379
|
+
position: {
|
|
380
|
+
label: 'position',
|
|
381
|
+
type: 'number',
|
|
382
|
+
description: 'Position in the product list (ex. 3).'
|
|
383
|
+
},
|
|
384
|
+
url: {
|
|
385
|
+
label: 'url',
|
|
386
|
+
type: 'string',
|
|
387
|
+
description: 'URL of the product page.'
|
|
388
|
+
},
|
|
389
|
+
image_url: {
|
|
390
|
+
label: 'Image url',
|
|
391
|
+
type: 'string',
|
|
392
|
+
description: 'Image url of the product.'
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
default: {
|
|
396
|
+
'@arrayPath': [
|
|
397
|
+
'$.properties.products',
|
|
398
|
+
{
|
|
399
|
+
product_id: {
|
|
400
|
+
'@path': 'product_id'
|
|
401
|
+
},
|
|
402
|
+
sku: {
|
|
403
|
+
'@path': 'sku'
|
|
404
|
+
},
|
|
405
|
+
category: {
|
|
406
|
+
'@path': 'category'
|
|
407
|
+
},
|
|
408
|
+
name: {
|
|
409
|
+
'@path': 'name'
|
|
410
|
+
},
|
|
411
|
+
brand: {
|
|
412
|
+
'@path': 'brand'
|
|
413
|
+
},
|
|
414
|
+
variant: {
|
|
415
|
+
'@path': 'variant'
|
|
416
|
+
},
|
|
417
|
+
price: {
|
|
418
|
+
'@path': 'price'
|
|
419
|
+
},
|
|
420
|
+
quantity: {
|
|
421
|
+
'@path': 'quantity'
|
|
422
|
+
},
|
|
423
|
+
coupon: {
|
|
424
|
+
'@path': 'coupon'
|
|
425
|
+
},
|
|
426
|
+
position: {
|
|
427
|
+
'@path': 'position'
|
|
428
|
+
},
|
|
429
|
+
url: {
|
|
430
|
+
'@path': 'url'
|
|
431
|
+
},
|
|
432
|
+
image_url: {
|
|
433
|
+
'@path': 'image_url'
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
]
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
};
|
|
440
|
+
//# sourceMappingURL=mixpanel-properties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mixpanel-properties.js","sourceRoot":"","sources":["../../../src/destinations/mixpanel/mixpanel-properties.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAA+B;IACzD,WAAW,EAAE;QACX,KAAK,EAAE,aAAa;QACpB,IAAI,EAAE,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ACT,KAAK,EAAE,WAAW;gBAClB,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,2BAA2B;aAC9B;SACF;QACD,OAAO,EAAE;YACP,YAAY,EAAE;gBACZ,uBAAuB;gBACvB;oBACE,UAAU,EAAE;wBACV,OAAO,EAAE,YAAY;qBACtB;oBACD,GAAG,EAAE;wBACH,OAAO,EAAE,KAAK;qBACf;oBACD,QAAQ,EAAE;wBACR,OAAO,EAAE,UAAU;qBACpB;oBACD,IAAI,EAAE;wBACJ,OAAO,EAAE,MAAM;qBAChB;oBACD,KAAK,EAAE;wBACL,OAAO,EAAE,OAAO;qBACjB;oBACD,OAAO,EAAE;wBACP,OAAO,EAAE,SAAS;qBACnB;oBACD,KAAK,EAAE;wBACL,OAAO,EAAE,OAAO;qBACjB;oBACD,QAAQ,EAAE;wBACR,OAAO,EAAE,UAAU;qBACpB;oBACD,MAAM,EAAE;wBACN,OAAO,EAAE,QAAQ;qBAClB;oBACD,QAAQ,EAAE;wBACR,OAAO,EAAE,UAAU;qBACpB;oBACD,GAAG,EAAE;wBACH,OAAO,EAAE,KAAK;qBACf;oBACD,SAAS,EAAE;wBACT,OAAO,EAAE,WAAW;qBACrB;iBACF;aACF;SACF;KACF;CACF,CAAA"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export declare type MixpanelEventProperties = {
|
|
2
|
+
$anon_id?: string;
|
|
3
|
+
$app_build_number?: string;
|
|
4
|
+
$app_version_string?: string;
|
|
5
|
+
$app_namespace?: string;
|
|
6
|
+
$app_name?: string;
|
|
7
|
+
$bluetooth_enabled?: boolean;
|
|
8
|
+
$browser_version?: string;
|
|
9
|
+
$browser?: string;
|
|
10
|
+
$carrier?: string;
|
|
11
|
+
$cellular_enabled?: boolean;
|
|
12
|
+
$current_url?: string;
|
|
13
|
+
$device?: string;
|
|
14
|
+
$device_id?: string;
|
|
15
|
+
$device_type?: string;
|
|
16
|
+
$device_name?: string;
|
|
17
|
+
$group_id?: string;
|
|
18
|
+
$identified_id?: string;
|
|
19
|
+
$insert_id?: string;
|
|
20
|
+
$ios_app_release?: string;
|
|
21
|
+
$ios_app_version?: string;
|
|
22
|
+
$ios_device_model?: string;
|
|
23
|
+
$ios_ifa?: string;
|
|
24
|
+
$ios_version?: string;
|
|
25
|
+
ip?: string;
|
|
26
|
+
$lib_version?: string;
|
|
27
|
+
$locale?: string;
|
|
28
|
+
$manufacturer?: string;
|
|
29
|
+
$model?: string;
|
|
30
|
+
$mp_api_endpoint?: string;
|
|
31
|
+
$os_version?: string;
|
|
32
|
+
$os?: string;
|
|
33
|
+
$referrer?: string;
|
|
34
|
+
$screen_density?: number;
|
|
35
|
+
$screen_height?: number;
|
|
36
|
+
$screen_width?: number;
|
|
37
|
+
$user_id?: string;
|
|
38
|
+
$wifi_enabled?: boolean;
|
|
39
|
+
$source: 'segment';
|
|
40
|
+
distinct_id?: string | null;
|
|
41
|
+
id?: string | null;
|
|
42
|
+
mp_country_code?: string;
|
|
43
|
+
mp_lib?: string;
|
|
44
|
+
segment_source_name?: string;
|
|
45
|
+
time?: number;
|
|
46
|
+
utm_campaign?: string;
|
|
47
|
+
utm_content?: string;
|
|
48
|
+
utm_medium?: string;
|
|
49
|
+
utm_source?: string;
|
|
50
|
+
utm_term?: string;
|
|
51
|
+
};
|
|
52
|
+
export declare type MixpanelEvent = {
|
|
53
|
+
event: string;
|
|
54
|
+
properties: MixpanelEventProperties;
|
|
55
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mixpanel-types.js","sourceRoot":"","sources":["../../../src/destinations/mixpanel/mixpanel-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Settings } from '../generated-types';
|
|
2
|
+
import type { Payload } from './generated-types';
|
|
3
|
+
import { MixpanelEventProperties } from '../mixpanel-types';
|
|
4
|
+
export declare function getEventProperties(payload: Payload, settings: Settings): MixpanelEventProperties;
|