@segment/action-destinations 3.162.0 → 3.162.1-staged-fb-capi.54
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/Utility/eventprocessing.js +18 -18
- package/dist/destinations/acoustic/Utility/eventprocessing.js.map +1 -1
- package/dist/destinations/airship/customEvents/generated-types.d.ts +9 -0
- package/dist/destinations/airship/customEvents/generated-types.js +3 -0
- package/dist/destinations/airship/customEvents/generated-types.js.map +1 -0
- package/dist/destinations/airship/customEvents/index.d.ts +5 -0
- package/dist/destinations/airship/customEvents/index.js +59 -0
- package/dist/destinations/airship/customEvents/index.js.map +1 -0
- package/dist/destinations/airship/generated-types.d.ts +5 -0
- package/dist/destinations/airship/generated-types.js +3 -0
- package/dist/destinations/airship/generated-types.js.map +1 -0
- package/dist/destinations/airship/index.d.ts +4 -0
- package/dist/destinations/airship/index.js +97 -0
- package/dist/destinations/airship/index.js.map +1 -0
- package/dist/destinations/airship/manageTags/generated-types.d.ts +7 -0
- package/dist/destinations/airship/manageTags/generated-types.js +3 -0
- package/dist/destinations/airship/manageTags/generated-types.js.map +1 -0
- package/dist/destinations/airship/manageTags/index.d.ts +5 -0
- package/dist/destinations/airship/manageTags/index.js +38 -0
- package/dist/destinations/airship/manageTags/index.js.map +1 -0
- package/dist/destinations/airship/setAttributes/generated-types.d.ts +30 -0
- package/dist/destinations/airship/setAttributes/generated-types.js +3 -0
- package/dist/destinations/airship/setAttributes/generated-types.js.map +1 -0
- package/dist/destinations/airship/setAttributes/index.d.ts +5 -0
- package/dist/destinations/airship/setAttributes/index.js +182 -0
- package/dist/destinations/airship/setAttributes/index.js.map +1 -0
- package/dist/destinations/airship/utilities.d.ts +28 -0
- package/dist/destinations/airship/utilities.js +146 -0
- package/dist/destinations/airship/utilities.js.map +1 -0
- package/dist/destinations/calliper/alias/generated-types.d.ts +5 -0
- package/dist/destinations/calliper/alias/generated-types.js +3 -0
- package/dist/destinations/calliper/alias/generated-types.js.map +1 -0
- package/dist/destinations/calliper/alias/index.d.ts +5 -0
- package/dist/destinations/calliper/alias/index.js +60 -0
- package/dist/destinations/calliper/alias/index.js.map +1 -0
- package/dist/destinations/calliper/generated-types.d.ts +4 -0
- package/dist/destinations/calliper/generated-types.js +3 -0
- package/dist/destinations/calliper/generated-types.js.map +1 -0
- package/dist/destinations/calliper/identifyGroup/generated-types.d.ts +7 -0
- package/dist/destinations/calliper/identifyGroup/generated-types.js +3 -0
- package/dist/destinations/calliper/identifyGroup/generated-types.js.map +1 -0
- package/dist/destinations/calliper/identifyGroup/index.d.ts +5 -0
- package/dist/destinations/calliper/identifyGroup/index.js +53 -0
- package/dist/destinations/calliper/identifyGroup/index.js.map +1 -0
- package/dist/destinations/calliper/identifyUser/generated-types.d.ts +14 -0
- package/dist/destinations/calliper/identifyUser/generated-types.js +3 -0
- package/dist/destinations/calliper/identifyUser/generated-types.js.map +1 -0
- package/dist/destinations/calliper/identifyUser/index.d.ts +5 -0
- package/dist/destinations/calliper/identifyUser/index.js +152 -0
- package/dist/destinations/calliper/identifyUser/index.js.map +1 -0
- package/dist/destinations/calliper/index.d.ts +4 -0
- package/dist/destinations/calliper/index.js +81 -0
- package/dist/destinations/calliper/index.js.map +1 -0
- package/dist/destinations/calliper/trackEvent/eventProperties.d.ts +2 -0
- package/dist/destinations/calliper/trackEvent/eventProperties.js +231 -0
- package/dist/destinations/calliper/trackEvent/eventProperties.js.map +1 -0
- package/dist/destinations/calliper/trackEvent/generated-types.d.ts +32 -0
- package/dist/destinations/calliper/trackEvent/generated-types.js +3 -0
- package/dist/destinations/calliper/trackEvent/generated-types.js.map +1 -0
- package/dist/destinations/calliper/trackEvent/index.d.ts +5 -0
- package/dist/destinations/calliper/trackEvent/index.js +65 -0
- package/dist/destinations/calliper/trackEvent/index.js.map +1 -0
- package/dist/destinations/calliper/utils/constants.d.ts +1 -0
- package/dist/destinations/calliper/utils/constants.js +5 -0
- package/dist/destinations/calliper/utils/constants.js.map +1 -0
- package/dist/destinations/calliper/utils/helpers.d.ts +1 -0
- package/dist/destinations/calliper/utils/helpers.js +8 -0
- package/dist/destinations/calliper/utils/helpers.js.map +1 -0
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/generated-types.d.ts +1 -0
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js +159 -122
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/addToCart/generated-types.d.ts +21 -0
- package/dist/destinations/facebook-conversions-api/addToCart/index.js +3 -0
- package/dist/destinations/facebook-conversions-api/addToCart/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/custom/generated-types.d.ts +21 -0
- package/dist/destinations/facebook-conversions-api/custom/index.js +3 -0
- package/dist/destinations/facebook-conversions-api/custom/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/fb-capi-app-data.d.ts +10 -0
- package/dist/destinations/facebook-conversions-api/fb-capi-app-data.js +179 -0
- package/dist/destinations/facebook-conversions-api/fb-capi-app-data.js.map +1 -0
- package/dist/destinations/facebook-conversions-api/index.js +1 -1
- package/dist/destinations/facebook-conversions-api/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/initiateCheckout/generated-types.d.ts +21 -0
- package/dist/destinations/facebook-conversions-api/initiateCheckout/index.js +3 -0
- package/dist/destinations/facebook-conversions-api/initiateCheckout/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/pageView/generated-types.d.ts +21 -0
- package/dist/destinations/facebook-conversions-api/pageView/index.js +3 -0
- package/dist/destinations/facebook-conversions-api/pageView/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/purchase/generated-types.d.ts +21 -0
- package/dist/destinations/facebook-conversions-api/purchase/index.js +3 -0
- package/dist/destinations/facebook-conversions-api/purchase/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/search/generated-types.d.ts +21 -0
- package/dist/destinations/facebook-conversions-api/search/index.js +3 -0
- package/dist/destinations/facebook-conversions-api/search/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/viewContent/generated-types.d.ts +21 -0
- package/dist/destinations/facebook-conversions-api/viewContent/index.js +3 -0
- package/dist/destinations/facebook-conversions-api/viewContent/index.js.map +1 -1
- package/dist/destinations/facebook-custom-audiences/generated-types.d.ts +3 -0
- package/dist/destinations/facebook-custom-audiences/generated-types.js +3 -0
- package/dist/destinations/facebook-custom-audiences/generated-types.js.map +1 -0
- package/dist/destinations/facebook-custom-audiences/index.d.ts +4 -0
- package/dist/destinations/facebook-custom-audiences/index.js +32 -0
- package/dist/destinations/facebook-custom-audiences/index.js.map +1 -0
- package/dist/destinations/facebook-custom-audiences/syncEngage/generated-types.d.ts +3 -0
- package/dist/destinations/facebook-custom-audiences/syncEngage/generated-types.js +3 -0
- package/dist/destinations/facebook-custom-audiences/syncEngage/generated-types.js.map +1 -0
- package/dist/destinations/facebook-custom-audiences/syncEngage/index.d.ts +5 -0
- package/dist/destinations/facebook-custom-audiences/syncEngage/index.js +18 -0
- package/dist/destinations/facebook-custom-audiences/syncEngage/index.js.map +1 -0
- package/dist/destinations/facebook-custom-audiences/syncRetl/generated-types.d.ts +3 -0
- package/dist/destinations/facebook-custom-audiences/syncRetl/generated-types.js +3 -0
- package/dist/destinations/facebook-custom-audiences/syncRetl/generated-types.js.map +1 -0
- package/dist/destinations/facebook-custom-audiences/syncRetl/index.d.ts +5 -0
- package/dist/destinations/facebook-custom-audiences/syncRetl/index.js +18 -0
- package/dist/destinations/facebook-custom-audiences/syncRetl/index.js.map +1 -0
- package/dist/destinations/fullstory/index.js +1 -1
- package/dist/destinations/fullstory/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/functions.d.ts +1 -0
- package/dist/destinations/google-enhanced-conversions/functions.js +3 -1
- package/dist/destinations/google-enhanced-conversions/functions.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js +3 -1
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js +3 -1
- package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js.map +1 -1
- package/dist/destinations/heap/identifyUser/index.js +0 -3
- package/dist/destinations/heap/identifyUser/index.js.map +1 -1
- package/dist/destinations/heap/trackEvent/index.js +0 -3
- package/dist/destinations/heap/trackEvent/index.js.map +1 -1
- package/dist/destinations/index.js +6 -0
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/iterable/index.js +3 -3
- package/dist/destinations/iterable/index.js.map +1 -1
- package/dist/destinations/iterable/shared-fields.d.ts +15 -1
- package/dist/destinations/iterable/shared-fields.js +19 -17
- package/dist/destinations/iterable/shared-fields.js.map +1 -1
- package/dist/destinations/iterable/trackEvent/index.js +4 -1
- package/dist/destinations/iterable/trackEvent/index.js.map +1 -1
- package/dist/destinations/iterable/trackPurchase/generated-types.d.ts +1 -4
- package/dist/destinations/iterable/trackPurchase/index.js +21 -26
- package/dist/destinations/iterable/trackPurchase/index.js.map +1 -1
- package/dist/destinations/iterable/updateCart/generated-types.d.ts +1 -4
- package/dist/destinations/iterable/updateCart/index.js +21 -28
- package/dist/destinations/iterable/updateCart/index.js.map +1 -1
- package/dist/destinations/iterable/updateUser/generated-types.d.ts +1 -1
- package/dist/destinations/iterable/updateUser/index.js +12 -8
- package/dist/destinations/iterable/updateUser/index.js.map +1 -1
- package/dist/destinations/iterable/utils.d.ts +4 -0
- package/dist/destinations/iterable/utils.js +63 -0
- package/dist/destinations/iterable/utils.js.map +1 -0
- package/dist/destinations/livelike-cloud/trackEvent/index.js +0 -3
- package/dist/destinations/livelike-cloud/trackEvent/index.js.map +1 -1
- package/dist/destinations/liveramp-audiences/audienceEntered/generated-types.d.ts +9 -0
- package/dist/destinations/liveramp-audiences/audienceEntered/generated-types.js +3 -0
- package/dist/destinations/liveramp-audiences/audienceEntered/generated-types.js.map +1 -0
- package/dist/destinations/liveramp-audiences/audienceEntered/index.d.ts +5 -0
- package/dist/destinations/liveramp-audiences/audienceEntered/index.js +78 -0
- package/dist/destinations/liveramp-audiences/audienceEntered/index.js.map +1 -0
- package/dist/destinations/liveramp-audiences/audienceEntered/s3.d.ts +6 -0
- package/dist/destinations/liveramp-audiences/audienceEntered/s3.js +37 -0
- package/dist/destinations/liveramp-audiences/audienceEntered/s3.js.map +1 -0
- package/dist/destinations/liveramp-audiences/audienceEntered/sftp.d.ts +7 -0
- package/dist/destinations/liveramp-audiences/audienceEntered/sftp.js +48 -0
- package/dist/destinations/liveramp-audiences/audienceEntered/sftp.js.map +1 -0
- package/dist/destinations/liveramp-audiences/generated-types.d.ts +12 -0
- package/dist/destinations/liveramp-audiences/generated-types.js +3 -0
- package/dist/destinations/liveramp-audiences/generated-types.js.map +1 -0
- package/dist/destinations/liveramp-audiences/index.d.ts +4 -0
- package/dist/destinations/liveramp-audiences/index.js +89 -0
- package/dist/destinations/liveramp-audiences/index.js.map +1 -0
- package/dist/destinations/liveramp-audiences/operations.d.ts +8 -0
- package/dist/destinations/liveramp-audiences/operations.js +32 -0
- package/dist/destinations/liveramp-audiences/operations.js.map +1 -0
- package/dist/destinations/loops/createOrUpdateContact/generated-types.d.ts +5 -0
- package/dist/destinations/loops/createOrUpdateContact/index.js +24 -7
- package/dist/destinations/loops/createOrUpdateContact/index.js.map +1 -1
- package/dist/destinations/loops/index.js +11 -1
- package/dist/destinations/loops/index.js.map +1 -1
- package/dist/destinations/loops/sendEvent/generated-types.d.ts +5 -0
- package/dist/destinations/loops/sendEvent/generated-types.js +3 -0
- package/dist/destinations/loops/sendEvent/generated-types.js.map +1 -0
- package/dist/destinations/loops/sendEvent/index.d.ts +5 -0
- package/dist/destinations/loops/sendEvent/index.js +52 -0
- package/dist/destinations/loops/sendEvent/index.js.map +1 -0
- package/dist/destinations/noop/generated-types.d.ts +2 -0
- package/dist/destinations/noop/generated-types.js +3 -0
- package/dist/destinations/noop/generated-types.js.map +1 -0
- package/dist/destinations/noop/index.d.ts +4 -0
- package/dist/destinations/noop/index.js +27 -0
- package/dist/destinations/noop/index.js.map +1 -0
- package/dist/destinations/noop/noop/generated-types.d.ts +3 -0
- package/dist/destinations/noop/noop/generated-types.js +3 -0
- package/dist/destinations/noop/noop/generated-types.js.map +1 -0
- package/dist/destinations/noop/noop/index.d.ts +5 -0
- package/dist/destinations/noop/noop/index.js +19 -0
- package/dist/destinations/noop/noop/index.js.map +1 -0
- package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/functions.d.ts +1 -0
- package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/functions.js +11 -1
- package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/functions.js.map +1 -1
- package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/index.js +4 -1
- package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/index.js.map +1 -1
- package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/mock-dataFile.d.ts +1 -0
- package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/mock-dataFile.js +2 -1
- package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/mock-dataFile.js.map +1 -1
- package/dist/destinations/revx/generated-types.d.ts +3 -0
- package/dist/destinations/revx/generated-types.js +3 -0
- package/dist/destinations/revx/generated-types.js.map +1 -0
- package/dist/destinations/revx/index.d.ts +4 -0
- package/dist/destinations/revx/index.js +36 -0
- package/dist/destinations/revx/index.js.map +1 -0
- package/dist/destinations/revx/sendRevxPing/generated-types.d.ts +41 -0
- package/dist/destinations/revx/sendRevxPing/generated-types.js +3 -0
- package/dist/destinations/revx/sendRevxPing/generated-types.js.map +1 -0
- package/dist/destinations/revx/sendRevxPing/index.d.ts +5 -0
- package/dist/destinations/revx/sendRevxPing/index.js +268 -0
- package/dist/destinations/revx/sendRevxPing/index.js.map +1 -0
- package/dist/destinations/segment-profiles/generated-types.d.ts +0 -1
- package/dist/destinations/segment-profiles/helperFunctions.d.ts +0 -7
- package/dist/destinations/segment-profiles/helperFunctions.js +1 -45
- package/dist/destinations/segment-profiles/helperFunctions.js.map +1 -1
- package/dist/destinations/segment-profiles/index.js +0 -14
- package/dist/destinations/segment-profiles/index.js.map +1 -1
- package/dist/destinations/segment-profiles/properties.js +10 -1
- package/dist/destinations/segment-profiles/properties.js.map +1 -1
- package/dist/destinations/segment-profiles/sendGroup/index.js +0 -8
- package/dist/destinations/segment-profiles/sendGroup/index.js.map +1 -1
- package/dist/destinations/segment-profiles/sendIdentify/index.js +0 -8
- package/dist/destinations/segment-profiles/sendIdentify/index.js.map +1 -1
- package/dist/destinations/snap-conversions-api/snap-capi-properties.js +2 -1
- package/dist/destinations/snap-conversions-api/snap-capi-properties.js.map +1 -1
- package/dist/destinations/the-trade-desk-crm/generated-types.d.ts +2 -0
- package/dist/destinations/the-trade-desk-crm/index.js +15 -1
- package/dist/destinations/the-trade-desk-crm/index.js.map +1 -1
- package/dist/destinations/tiktok-conversions/reportWebEvent/index.js +1 -1
- package/dist/destinations/tiktok-conversions/reportWebEvent/index.js.map +1 -1
- package/dist/destinations/usermaven/common-definitions.js +2 -2
- package/dist/destinations/usermaven/common-definitions.js.map +1 -1
- package/dist/destinations/usermaven/generated-types.d.ts +1 -0
- package/dist/destinations/usermaven/group/generated-types.d.ts +2 -2
- package/dist/destinations/usermaven/identify/generated-types.d.ts +2 -2
- package/dist/destinations/usermaven/index.js +19 -2
- package/dist/destinations/usermaven/index.js.map +1 -1
- package/dist/destinations/usermaven/page/generated-types.d.ts +31 -0
- package/dist/destinations/usermaven/page/generated-types.js +3 -0
- package/dist/destinations/usermaven/page/generated-types.js.map +1 -0
- package/dist/destinations/usermaven/page/index.d.ts +5 -0
- package/dist/destinations/usermaven/page/index.js +58 -0
- package/dist/destinations/usermaven/page/index.js.map +1 -0
- package/dist/destinations/usermaven/request-params.js +15 -10
- package/dist/destinations/usermaven/request-params.js.map +1 -1
- package/dist/destinations/usermaven/track/generated-types.d.ts +2 -2
- package/dist/lib/AWS/s3.d.ts +4 -0
- package/dist/lib/AWS/s3.js +21 -0
- package/dist/lib/AWS/s3.js.map +1 -0
- package/package.json +8 -5
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.eventProperties = void 0;
|
|
4
|
+
exports.eventProperties = {
|
|
5
|
+
event: {
|
|
6
|
+
label: 'Event Type',
|
|
7
|
+
type: 'string',
|
|
8
|
+
description: 'A type of your event, e.g. a sign up or a name of an action within your product.',
|
|
9
|
+
required: true,
|
|
10
|
+
default: {
|
|
11
|
+
'@path': '$.event'
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
time: {
|
|
15
|
+
label: 'Timestamp',
|
|
16
|
+
type: 'datetime',
|
|
17
|
+
description: 'The timestamp of the event. Could be any date string/number value compatible with JavaScript Date constructor: e.g. milliseconds epoch or an ISO datetime. If time is not sent with the event, it will be set to the request time.',
|
|
18
|
+
default: {
|
|
19
|
+
'@path': '$.timestamp'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
anonymous_id: {
|
|
23
|
+
label: 'Anonymous ID',
|
|
24
|
+
type: 'string',
|
|
25
|
+
description: 'A distinct ID of an unidentified (logged out) user. Device id is used if available',
|
|
26
|
+
default: {
|
|
27
|
+
'@path': '$.anonymousId'
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
user_id: {
|
|
31
|
+
label: 'User ID',
|
|
32
|
+
type: 'string',
|
|
33
|
+
description: 'A distinct ID of an identified (logged in) user.',
|
|
34
|
+
default: {
|
|
35
|
+
'@path': '$.userId'
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
group_id: {
|
|
39
|
+
label: 'Group ID',
|
|
40
|
+
type: 'string',
|
|
41
|
+
description: 'The unique identifier of the group that performed this event.',
|
|
42
|
+
default: {
|
|
43
|
+
'@path': '$.context.groupId'
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
event_unique_id: {
|
|
47
|
+
label: 'Event ID',
|
|
48
|
+
type: 'string',
|
|
49
|
+
description: 'A random id that is unique to an event. ID is being used to prevent event duplication. All the events that share the same unique id besides the first one will be ignored.',
|
|
50
|
+
default: {
|
|
51
|
+
'@path': '$.messageId'
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
app_version: {
|
|
55
|
+
label: 'App Version',
|
|
56
|
+
type: 'string',
|
|
57
|
+
description: 'The current version of your application.',
|
|
58
|
+
default: {
|
|
59
|
+
'@path': '$.context.app.version'
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
os_name: {
|
|
63
|
+
label: 'OS Name',
|
|
64
|
+
type: 'string',
|
|
65
|
+
description: 'The name of the mobile operating system or browser that the user is using.',
|
|
66
|
+
default: {
|
|
67
|
+
'@path': '$.context.os.name'
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
os_version: {
|
|
71
|
+
label: 'OS Version',
|
|
72
|
+
type: 'string',
|
|
73
|
+
description: 'The version of the mobile operating system or browser the user is using.',
|
|
74
|
+
default: {
|
|
75
|
+
'@path': '$.context.os.version'
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
device_id: {
|
|
79
|
+
label: 'Device ID',
|
|
80
|
+
type: 'string',
|
|
81
|
+
description: 'A unique identifier for the device the user is using.',
|
|
82
|
+
default: {
|
|
83
|
+
'@path': '$.context.device.id'
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
platform: {
|
|
87
|
+
label: 'Platform',
|
|
88
|
+
type: 'string',
|
|
89
|
+
description: 'Platform of the device.',
|
|
90
|
+
default: {
|
|
91
|
+
'@path': '$.context.device.type'
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
device_manufacturer: {
|
|
95
|
+
label: 'Device Manufacturer',
|
|
96
|
+
type: 'string',
|
|
97
|
+
description: 'The device manufacturer that the user is using.',
|
|
98
|
+
default: {
|
|
99
|
+
'@path': '$.context.device.manufacturer'
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
device_model: {
|
|
103
|
+
label: 'Device Model',
|
|
104
|
+
type: 'string',
|
|
105
|
+
description: 'The device model that the user is using.',
|
|
106
|
+
default: {
|
|
107
|
+
'@path': '$.context.device.model'
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
carrier: {
|
|
111
|
+
label: 'Carrier',
|
|
112
|
+
type: 'string',
|
|
113
|
+
description: 'The carrier that the user is using.',
|
|
114
|
+
default: {
|
|
115
|
+
'@path': '$.context.network.carrier'
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
cellular: {
|
|
119
|
+
label: 'Cellular Enabled',
|
|
120
|
+
type: 'boolean',
|
|
121
|
+
description: 'Whether cellular is enabled.',
|
|
122
|
+
default: {
|
|
123
|
+
'@path': '$.context.network.cellular'
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
country: {
|
|
127
|
+
label: 'Country',
|
|
128
|
+
type: 'string',
|
|
129
|
+
description: 'The current country of the user.',
|
|
130
|
+
default: {
|
|
131
|
+
'@path': '$.context.location.country'
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
region: {
|
|
135
|
+
label: 'Region',
|
|
136
|
+
type: 'string',
|
|
137
|
+
description: 'The current region of the user.',
|
|
138
|
+
default: {
|
|
139
|
+
'@path': '$.context.location.region'
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
city: {
|
|
143
|
+
label: 'City',
|
|
144
|
+
type: 'string',
|
|
145
|
+
description: 'The current city of the user.',
|
|
146
|
+
default: {
|
|
147
|
+
'@path': '$.context.location.city'
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
language: {
|
|
151
|
+
label: 'Language',
|
|
152
|
+
type: 'string',
|
|
153
|
+
description: 'The language set by the user.',
|
|
154
|
+
default: {
|
|
155
|
+
'@path': '$.context.locale'
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
library_name: {
|
|
159
|
+
label: 'Library Name',
|
|
160
|
+
type: 'string',
|
|
161
|
+
description: 'The name of the SDK used to send events.',
|
|
162
|
+
default: {
|
|
163
|
+
'@path': '$.context.library.name'
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
library_version: {
|
|
167
|
+
label: 'Library Version',
|
|
168
|
+
type: 'string',
|
|
169
|
+
description: 'The version of the SDK used to send events.',
|
|
170
|
+
default: {
|
|
171
|
+
'@path': '$.context.library.version'
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
ip: {
|
|
175
|
+
label: 'IP Address',
|
|
176
|
+
type: 'string',
|
|
177
|
+
description: "The IP address of the user. This is only used for geolocation and won't be stored.",
|
|
178
|
+
default: {
|
|
179
|
+
'@path': '$.context.ip'
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
url: {
|
|
183
|
+
label: 'URL',
|
|
184
|
+
type: 'string',
|
|
185
|
+
description: 'The full URL of the webpage on which the event is triggered.',
|
|
186
|
+
default: {
|
|
187
|
+
'@path': '$.context.page.url'
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
path: {
|
|
191
|
+
label: 'Page Path',
|
|
192
|
+
type: 'string',
|
|
193
|
+
description: 'The relative URL of the webpage on which the event is triggered.',
|
|
194
|
+
default: {
|
|
195
|
+
'@path': '$.context.page.path'
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
page_title: {
|
|
199
|
+
label: 'Page Title',
|
|
200
|
+
type: 'string',
|
|
201
|
+
description: 'The name of the webpage on which the event is triggered.',
|
|
202
|
+
default: {
|
|
203
|
+
'@path': '$.context.page.title'
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
referrer: {
|
|
207
|
+
label: 'Referrer',
|
|
208
|
+
type: 'string',
|
|
209
|
+
description: 'Referrer url',
|
|
210
|
+
default: {
|
|
211
|
+
'@path': '$.context.page.referrer'
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
user_agent: {
|
|
215
|
+
label: 'User Agent',
|
|
216
|
+
type: 'string',
|
|
217
|
+
description: 'User agent',
|
|
218
|
+
default: {
|
|
219
|
+
'@path': '$.context.userAgent'
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
event_properties: {
|
|
223
|
+
label: 'Event Properties',
|
|
224
|
+
type: 'object',
|
|
225
|
+
description: 'An object of key-value pairs that represent additional data to be sent along with the event.',
|
|
226
|
+
default: {
|
|
227
|
+
'@path': '$.properties'
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
//# sourceMappingURL=eventProperties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventProperties.js","sourceRoot":"","sources":["../../../../src/destinations/calliper/trackEvent/eventProperties.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAA+B;IACzD,KAAK,EAAE;QACL,KAAK,EAAE,YAAY;QACnB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,kFAAkF;QAC/F,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE;YACP,OAAO,EAAE,SAAS;SACnB;KACF;IACD,IAAI,EAAE;QACJ,KAAK,EAAE,WAAW;QAClB,IAAI,EAAE,UAAU;QAChB,WAAW,EACT,oOAAoO;QACtO,OAAO,EAAE;YACP,OAAO,EAAE,aAAa;SACvB;KACF;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,cAAc;QACrB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,oFAAoF;QACjG,OAAO,EAAE;YACP,OAAO,EAAE,eAAe;SACzB;KACF;IACD,OAAO,EAAE;QACP,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,kDAAkD;QAC/D,OAAO,EAAE;YACP,OAAO,EAAE,UAAU;SACpB;KACF;IACD,QAAQ,EAAE;QACR,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,+DAA+D;QAC5E,OAAO,EAAE;YACP,OAAO,EAAE,mBAAmB;SAC7B;KACF;IACD,eAAe,EAAE;QACf,KAAK,EAAE,UAA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AAK,EAAE,KAAK;QACZ,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,8DAA8D;QAC3E,OAAO,EAAE;YACP,OAAO,EAAE,oBAAoB;SAC9B;KACF;IACD,IAAI,EAAE;QACJ,KAAK,EAAE,WAAW;QAClB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,kEAAkE;QAC/E,OAAO,EAAE;YACP,OAAO,EAAE,qBAAqB;SAC/B;KACF;IACD,UAAU,EAAE;QACV,KAAK,EAAE,YAAY;QACnB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,0DAA0D;QACvE,OAAO,EAAE;YACP,OAAO,EAAE,sBAAsB;SAChC;KACF;IACD,QAAQ,EAAE;QACR,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,cAAc;QAC3B,OAAO,EAAE;YACP,OAAO,EAAE,yBAAyB;SACnC;KACF;IACD,UAAU,EAAE;QACV,KAAK,EAAE,YAAY;QACnB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE;YACP,OAAO,EAAE,qBAAqB;SAC/B;KACF;IACD,gBAAgB,EAAE;QAChB,KAAK,EAAE,kBAAkB;QACzB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,8FAA8F;QAC3G,OAAO,EAAE;YACP,OAAO,EAAE,cAAc;SACxB;KACF;CACF,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
event: string;
|
|
3
|
+
time?: string | number;
|
|
4
|
+
anonymous_id?: string;
|
|
5
|
+
user_id?: string;
|
|
6
|
+
group_id?: string;
|
|
7
|
+
event_unique_id?: string;
|
|
8
|
+
app_version?: string;
|
|
9
|
+
os_name?: string;
|
|
10
|
+
os_version?: string;
|
|
11
|
+
device_id?: string;
|
|
12
|
+
platform?: string;
|
|
13
|
+
device_manufacturer?: string;
|
|
14
|
+
device_model?: string;
|
|
15
|
+
carrier?: string;
|
|
16
|
+
cellular?: boolean;
|
|
17
|
+
country?: string;
|
|
18
|
+
region?: string;
|
|
19
|
+
city?: string;
|
|
20
|
+
language?: string;
|
|
21
|
+
library_name?: string;
|
|
22
|
+
library_version?: string;
|
|
23
|
+
ip?: string;
|
|
24
|
+
url?: string;
|
|
25
|
+
path?: string;
|
|
26
|
+
page_title?: string;
|
|
27
|
+
referrer?: string;
|
|
28
|
+
user_agent?: string;
|
|
29
|
+
event_properties?: {
|
|
30
|
+
[k: string]: unknown;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/calliper/trackEvent/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const eventProperties_1 = require("./eventProperties");
|
|
7
|
+
const dayjs_1 = __importDefault(require("../../../lib/dayjs"));
|
|
8
|
+
const constants_1 = require("../utils/constants");
|
|
9
|
+
const formatEvent = (payload) => {
|
|
10
|
+
const datetime = payload.time;
|
|
11
|
+
const time = datetime && dayjs_1.default.utc(datetime).isValid() ? dayjs_1.default.utc(datetime).valueOf() : Date.now();
|
|
12
|
+
return {
|
|
13
|
+
event: payload.event,
|
|
14
|
+
time: time,
|
|
15
|
+
anonymous_id: payload.anonymous_id,
|
|
16
|
+
user_id: payload.user_id,
|
|
17
|
+
group_id: payload.group_id,
|
|
18
|
+
event_unique_id: payload.event_unique_id,
|
|
19
|
+
app_version: payload.app_version,
|
|
20
|
+
os_name: payload.os_name,
|
|
21
|
+
device_id: payload.device_id,
|
|
22
|
+
platform: payload.platform,
|
|
23
|
+
device_manufacturer: payload.device_manufacturer,
|
|
24
|
+
device_model: payload.device_model,
|
|
25
|
+
carrier: payload.carrier,
|
|
26
|
+
cellular: payload.cellular,
|
|
27
|
+
country: payload.country,
|
|
28
|
+
region: payload.region,
|
|
29
|
+
city: payload.city,
|
|
30
|
+
language: payload.language,
|
|
31
|
+
library_name: `Segment: ${payload.library_name}`,
|
|
32
|
+
library_version: payload.library_version,
|
|
33
|
+
ip: payload.ip,
|
|
34
|
+
url: payload.url,
|
|
35
|
+
path: payload.path,
|
|
36
|
+
page_title: payload.page_title,
|
|
37
|
+
user_agent: payload.user_agent,
|
|
38
|
+
properties: payload.event_properties
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
const processData = async (request, settings, payload) => {
|
|
42
|
+
const events = payload.map(formatEvent);
|
|
43
|
+
return request(`${constants_1.API_URL}/event/batch`, {
|
|
44
|
+
method: 'post',
|
|
45
|
+
json: {
|
|
46
|
+
company_id: settings.companyId,
|
|
47
|
+
key: settings.segmentKey,
|
|
48
|
+
events
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
const action = {
|
|
53
|
+
title: 'Track Event',
|
|
54
|
+
description: 'Send your product event to Calliper.',
|
|
55
|
+
defaultSubscription: 'type = "track"',
|
|
56
|
+
fields: eventProperties_1.eventProperties,
|
|
57
|
+
performBatch: async (request, { settings, payload }) => {
|
|
58
|
+
return processData(request, settings, payload);
|
|
59
|
+
},
|
|
60
|
+
perform: async (request, { settings, payload }) => {
|
|
61
|
+
return processData(request, settings, [payload]);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
exports.default = action;
|
|
65
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/calliper/trackEvent/index.ts"],"names":[],"mappings":";;;;;AAGA,uDAAmD;AACnD,+DAAsC;AACtC,kDAA4C;AAE5C,MAAM,WAAW,GAAG,CAAC,OAAgB,EAAE,EAAE;IACvC,MAAM,Q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AA;AACH,CAAC,CAAA;AAED,MAAM,WAAW,GAAG,KAAK,EAAE,OAAsB,EAAE,QAAkB,EAAE,OAAkB,EAAE,EAAE;IAC3F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAA;IAEvC,OAAO,OAAO,CAAC,GAAG,mBAAO,cAAc,EAAE;QACvC,MAAM,EAAE,MAAM;QACd,IAAI,EAAE;YACJ,UAAU,EAAE,QAAQ,CAAC,SAAS;YAC9B,GAAG,EAAE,QAAQ,CAAC,UAAU;YACxB,MAAM;SACP;KACF,CAAC,CAAA;AACJ,CAAC,CAAA;AAED,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,sCAAsC;IACnD,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE,iCAAe;IAEvB,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QACrD,OAAO,WAAW,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA;IAChD,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QAChD,OAAO,WAAW,CAAC,OAAO,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IAClD,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const API_URL = "https://api.getcalliper.com/segment";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/destinations/calliper/utils/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,qCAAqC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function formatName(firstName: unknown, lastName: unknown, name: unknown): unknown;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.formatName = void 0;
|
|
4
|
+
function formatName(firstName, lastName, name) {
|
|
5
|
+
return name ?? ([firstName, lastName].filter(Boolean).join(' ') || undefined);
|
|
6
|
+
}
|
|
7
|
+
exports.formatName = formatName;
|
|
8
|
+
//# sourceMappingURL=helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../src/destinations/calliper/utils/helpers.ts"],"names":[],"mappings":";;;AAAA,SAAgB,UAAU,CAAC,SAAkB,EAAE,QAAiB,EAAE,IAAa;IAC7E,OAAO,IAAI,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,SAAS,CAAC,CAAA;AAC/E,CAAC;AAFD,gCAEC"}
|