@segment/action-destinations 3.262.0-staging-dbf2c12ff → 3.262.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/customerio/utils.d.ts +1 -1
- package/dist/destinations/engage/utils/track.d.ts +17 -17
- package/dist/destinations/koala/identify/index.js +1 -6
- package/dist/destinations/koala/identify/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/destinations/amazon-ads/utils.d.ts +0 -25
- package/dist/destinations/amazon-ads/utils.js +0 -8
- package/dist/destinations/amazon-ads/utils.js.map +0 -1
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/generated-types.d.ts +0 -36
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/generated-types.js +0 -3
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/generated-types.js.map +0 -1
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.d.ts +0 -5
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js +0 -452
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/sendSms/generated-types.d.ts +0 -22
- package/dist/destinations/engage-messaging-twilio/sendSms/generated-types.js +0 -3
- package/dist/destinations/engage-messaging-twilio/sendSms/generated-types.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/sendSms/index.d.ts +0 -5
- package/dist/destinations/engage-messaging-twilio/sendSms/index.js +0 -131
- package/dist/destinations/engage-messaging-twilio/sendSms/index.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/sendSms/sms-sender.d.ts +0 -23
- package/dist/destinations/engage-messaging-twilio/sendSms/sms-sender.js +0 -131
- package/dist/destinations/engage-messaging-twilio/sendSms/sms-sender.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/sendWhatsApp/generated-types.d.ts +0 -24
- package/dist/destinations/engage-messaging-twilio/sendWhatsApp/generated-types.js +0 -3
- package/dist/destinations/engage-messaging-twilio/sendWhatsApp/generated-types.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/sendWhatsApp/index.d.ts +0 -5
- package/dist/destinations/engage-messaging-twilio/sendWhatsApp/index.js +0 -133
- package/dist/destinations/engage-messaging-twilio/sendWhatsApp/index.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/sendWhatsApp/whatsapp-sender.d.ts +0 -21
- package/dist/destinations/engage-messaging-twilio/sendWhatsApp/whatsapp-sender.js +0 -75
- package/dist/destinations/engage-messaging-twilio/sendWhatsApp/whatsapp-sender.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/utils/message-sender.d.ts +0 -24
- package/dist/destinations/engage-messaging-twilio/utils/message-sender.js +0 -111
- package/dist/destinations/engage-messaging-twilio/utils/message-sender.js.map +0 -1
- package/dist/destinations/hubspot/helperFunctions.d.ts +0 -7
- package/dist/destinations/hubspot/helperFunctions.js +0 -27
- package/dist/destinations/hubspot/helperFunctions.js.map +0 -1
- package/dist/destinations/mixpanel/utils.d.ts +0 -13
- package/dist/destinations/mixpanel/utils.js +0 -117
- package/dist/destinations/mixpanel/utils.js.map +0 -1
- package/dist/destinations/snap-conversions-api/snap-capi-properties.d.ts +0 -30
- package/dist/destinations/snap-conversions-api/snap-capi-properties.js +0 -316
- package/dist/destinations/snap-conversions-api/snap-capi-properties.js.map +0 -1
- package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.d.ts +0 -3
- package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js +0 -34
- package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js.map +0 -1
- package/dist/destinations/vernst-test/generated-types.d.ts +0 -2
- package/dist/destinations/vernst-test/generated-types.js +0 -3
- package/dist/destinations/vernst-test/generated-types.js.map +0 -1
- package/dist/destinations/vernst-test/index.d.ts +0 -4
- package/dist/destinations/vernst-test/index.js +0 -20
- package/dist/destinations/vernst-test/index.js.map +0 -1
- package/dist/destinations/vernst-test/pingWebhook/generated-types.d.ts +0 -3
- package/dist/destinations/vernst-test/pingWebhook/generated-types.js +0 -3
- package/dist/destinations/vernst-test/pingWebhook/generated-types.js.map +0 -1
- package/dist/destinations/vernst-test/pingWebhook/index.d.ts +0 -5
- package/dist/destinations/vernst-test/pingWebhook/index.js +0 -21
- package/dist/destinations/vernst-test/pingWebhook/index.js.map +0 -1
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare enum ApiRegions {
|
|
2
|
-
US = "US \uD83C\uDDFA\uD83C\uDDF8",
|
|
3
|
-
EU = "EU \uD83C\uDDEA\uD83C\uDDFA"
|
|
4
|
-
}
|
|
5
|
-
export declare enum StrictMode {
|
|
6
|
-
ON = "1",
|
|
7
|
-
OFF = "0"
|
|
8
|
-
}
|
|
9
|
-
export declare function getConcatenatedName(firstName: unknown, lastName: unknown, name: unknown): unknown;
|
|
10
|
-
export declare function getApiServerUrl(apiRegion: string | undefined): "https://api-eu.mixpanel.com" | "https://api.mixpanel.com";
|
|
11
|
-
export declare function getBrowser(userAgent: string): string;
|
|
12
|
-
export declare function getBrowserVersion(userAgent: string): string | undefined;
|
|
13
|
-
export declare function cheapGuid(maxlen?: number): string;
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.cheapGuid = exports.getBrowserVersion = exports.getBrowser = exports.getApiServerUrl = exports.getConcatenatedName = exports.StrictMode = exports.ApiRegions = void 0;
|
|
4
|
-
var ApiRegions;
|
|
5
|
-
(function (ApiRegions) {
|
|
6
|
-
ApiRegions["US"] = "US \uD83C\uDDFA\uD83C\uDDF8";
|
|
7
|
-
ApiRegions["EU"] = "EU \uD83C\uDDEA\uD83C\uDDFA";
|
|
8
|
-
})(ApiRegions = exports.ApiRegions || (exports.ApiRegions = {}));
|
|
9
|
-
var StrictMode;
|
|
10
|
-
(function (StrictMode) {
|
|
11
|
-
StrictMode["ON"] = "1";
|
|
12
|
-
StrictMode["OFF"] = "0";
|
|
13
|
-
})(StrictMode = exports.StrictMode || (exports.StrictMode = {}));
|
|
14
|
-
function getConcatenatedName(firstName, lastName, name) {
|
|
15
|
-
return name ?? (firstName && lastName ? `${firstName} ${lastName}` : undefined);
|
|
16
|
-
}
|
|
17
|
-
exports.getConcatenatedName = getConcatenatedName;
|
|
18
|
-
function getApiServerUrl(apiRegion) {
|
|
19
|
-
if (apiRegion == ApiRegions.EU) {
|
|
20
|
-
return 'https://api-eu.mixpanel.com';
|
|
21
|
-
}
|
|
22
|
-
return 'https://api.mixpanel.com';
|
|
23
|
-
}
|
|
24
|
-
exports.getApiServerUrl = getApiServerUrl;
|
|
25
|
-
function getBrowser(userAgent) {
|
|
26
|
-
if (userAgent.includes(' OPR/')) {
|
|
27
|
-
if (userAgent.includes('Mini')) {
|
|
28
|
-
return 'Opera Mini';
|
|
29
|
-
}
|
|
30
|
-
return 'Opera';
|
|
31
|
-
}
|
|
32
|
-
else if (/(BlackBerry|PlayBook|BB10)/i.test(userAgent)) {
|
|
33
|
-
return 'BlackBerry';
|
|
34
|
-
}
|
|
35
|
-
else if (userAgent.includes('IEMobile') || userAgent.includes('WPDesktop')) {
|
|
36
|
-
return 'Internet Explorer Mobile';
|
|
37
|
-
}
|
|
38
|
-
else if (userAgent.includes('SamsungBrowser/')) {
|
|
39
|
-
return 'Samsung Internet';
|
|
40
|
-
}
|
|
41
|
-
else if (userAgent.includes('Edge') || userAgent.includes('Edg/')) {
|
|
42
|
-
return 'Microsoft Edge';
|
|
43
|
-
}
|
|
44
|
-
else if (userAgent.includes('FBIOS')) {
|
|
45
|
-
return 'Facebook Mobile';
|
|
46
|
-
}
|
|
47
|
-
else if (userAgent.includes('Chrome')) {
|
|
48
|
-
return 'Chrome';
|
|
49
|
-
}
|
|
50
|
-
else if (userAgent.includes('CriOS')) {
|
|
51
|
-
return 'Chrome iOS';
|
|
52
|
-
}
|
|
53
|
-
else if (userAgent.includes('UCWEB') || userAgent.includes('UCBrowser')) {
|
|
54
|
-
return 'UC Browser';
|
|
55
|
-
}
|
|
56
|
-
else if (userAgent.includes('FxiOS')) {
|
|
57
|
-
return 'Firefox iOS';
|
|
58
|
-
}
|
|
59
|
-
else if (userAgent.includes('Safari')) {
|
|
60
|
-
return 'Safari';
|
|
61
|
-
}
|
|
62
|
-
else if (userAgent.includes('Android')) {
|
|
63
|
-
return 'Android Mobile';
|
|
64
|
-
}
|
|
65
|
-
else if (userAgent.includes('Konqueror')) {
|
|
66
|
-
return 'Konqueror';
|
|
67
|
-
}
|
|
68
|
-
else if (userAgent.includes('Firefox')) {
|
|
69
|
-
return 'Firefox';
|
|
70
|
-
}
|
|
71
|
-
else if (userAgent.includes('MSIE') || userAgent.includes('Trident/')) {
|
|
72
|
-
return 'Internet Explorer';
|
|
73
|
-
}
|
|
74
|
-
else if (userAgent.includes('Gecko')) {
|
|
75
|
-
return 'Mozilla';
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
return '';
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
exports.getBrowser = getBrowser;
|
|
82
|
-
function getBrowserVersion(userAgent) {
|
|
83
|
-
const browser = getBrowser(userAgent);
|
|
84
|
-
const versionRegexs = {
|
|
85
|
-
'Internet Explorer Mobile': /rv:(\d+(\.\d+)?)/,
|
|
86
|
-
'Microsoft Edge': /Edge?\/(\d+(\.\d+)?)/,
|
|
87
|
-
Chrome: /Chrome\/(\d+(\.\d+)?)/,
|
|
88
|
-
'Chrome iOS': /CriOS\/(\d+(\.\d+)?)/,
|
|
89
|
-
'UC Browser': /(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,
|
|
90
|
-
Safari: /Version\/(\d+(\.\d+)?)/,
|
|
91
|
-
'Mobile Safari': /Version\/(\d+(\.\d+)?)/,
|
|
92
|
-
Opera: /(Opera|OPR)\/(\d+(\.\d+)?)/,
|
|
93
|
-
Firefox: /Firefox\/(\d+(\.\d+)?)/,
|
|
94
|
-
'Firefox iOS': /FxiOS\/(\d+(\.\d+)?)/,
|
|
95
|
-
Konqueror: /Konqueror:(\d+(\.\d+)?)/,
|
|
96
|
-
BlackBerry: /BlackBerry (\d+(\.\d+)?)/,
|
|
97
|
-
'Android Mobile': /android\s(\d+(\.\d+)?)/,
|
|
98
|
-
'Samsung Internet': /SamsungBrowser\/(\d+(\.\d+)?)/,
|
|
99
|
-
'Internet Explorer': /(rv:|MSIE )(\d+(\.\d+)?)/,
|
|
100
|
-
Mozilla: /rv:(\d+(\.\d+)?)/
|
|
101
|
-
};
|
|
102
|
-
const regex = versionRegexs[browser];
|
|
103
|
-
if (!regex)
|
|
104
|
-
return regex;
|
|
105
|
-
const matches = regex.exec(userAgent);
|
|
106
|
-
if (!matches) {
|
|
107
|
-
return undefined;
|
|
108
|
-
}
|
|
109
|
-
return matches[matches.length - 2];
|
|
110
|
-
}
|
|
111
|
-
exports.getBrowserVersion = getBrowserVersion;
|
|
112
|
-
function cheapGuid(maxlen) {
|
|
113
|
-
const guid = Math.random().toString(36).substring(2, 10) + Math.random().toString(36).substring(2, 10);
|
|
114
|
-
return maxlen ? guid.substring(0, maxlen) : guid;
|
|
115
|
-
}
|
|
116
|
-
exports.cheapGuid = cheapGuid;
|
|
117
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/destinations/mixpanel/utils.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,gDAAc,CAAA;IACd,gDAAc,CAAA;AAChB,CAAC,EAHW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAGrB;AAED,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,sBAAQ,CAAA;IACR,uBAAS,CAAA;AACX,CAAC,EAHW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAGrB;AAED,SAAgB,mBAAmB,CAAC,SAAkB,EAAE,QAAiB,EAAE,IAAa;IACtF,OAAO,IAAI,IAAI,CAAC,SAAS,IAAI,QAAQ,CAAC,CAAC,C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E,wBAAwB;QAC1C,kBAAkB,EAAE,+BAA+B;QACnD,mBAAmB,EAAE,0BAA0B;QAC/C,OAAO,EAAE,kBAAkB;KAC5B,CAAA;IACD,MAAM,KAAK,GAAG,aAAa,CAAC,OAAO,CAAC,CAAA;IACpC,IAAI,CAAC,KAAK;QAAE,OAAO,KAAK,CAAA;IACxB,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;IACrC,IAAI,CAAC,OAAO,EAAE;QACZ,OAAO,SAAS,CAAA;KACjB;IACD,OAAO,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;AACpC,CAAC;AA3BD,8CA2BC;AAED,SAAgB,SAAS,CAAC,MAAe;IACvC,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA;IACtG,OAAO,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;AAClD,CAAC;AAHD,8BAGC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { InputField } from '@segment/actions-core/destination-kit/types';
|
|
2
|
-
export declare const CURRENCY_ISO_4217_CODES: Set<string>;
|
|
3
|
-
export declare const products: InputField;
|
|
4
|
-
export declare const event_type: InputField;
|
|
5
|
-
export declare const event_conversion_type: InputField;
|
|
6
|
-
export declare const event_tag: InputField;
|
|
7
|
-
export declare const timestamp: InputField;
|
|
8
|
-
export declare const email: InputField;
|
|
9
|
-
export declare const mobile_ad_id: InputField;
|
|
10
|
-
export declare const uuid_c1: InputField;
|
|
11
|
-
export declare const idfv: InputField;
|
|
12
|
-
export declare const phone_number: InputField;
|
|
13
|
-
export declare const user_agent: InputField;
|
|
14
|
-
export declare const ip_address: InputField;
|
|
15
|
-
export declare const item_category: InputField;
|
|
16
|
-
export declare const brands: InputField;
|
|
17
|
-
export declare const item_ids: InputField;
|
|
18
|
-
export declare const description: InputField;
|
|
19
|
-
export declare const number_items: InputField;
|
|
20
|
-
export declare const price: InputField;
|
|
21
|
-
export declare const currency: InputField;
|
|
22
|
-
export declare const transaction_id: InputField;
|
|
23
|
-
export declare const level: InputField;
|
|
24
|
-
export declare const client_dedup_id: InputField;
|
|
25
|
-
export declare const search_string: InputField;
|
|
26
|
-
export declare const page_url: InputField;
|
|
27
|
-
export declare const sign_up_method: InputField;
|
|
28
|
-
export declare const device_model: InputField;
|
|
29
|
-
export declare const os_version: InputField;
|
|
30
|
-
export declare const click_id: InputField;
|
|
@@ -1,316 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.click_id = exports.os_version = exports.device_model = exports.sign_up_method = exports.page_url = exports.search_string = exports.client_dedup_id = exports.level = exports.transaction_id = exports.currency = exports.price = exports.number_items = exports.description = exports.item_ids = exports.brands = exports.item_category = exports.ip_address = exports.user_agent = exports.phone_number = exports.idfv = exports.uuid_c1 = exports.mobile_ad_id = exports.email = exports.timestamp = exports.event_tag = exports.event_conversion_type = exports.event_type = exports.products = exports.CURRENCY_ISO_4217_CODES = void 0;
|
|
4
|
-
exports.CURRENCY_ISO_4217_CODES = new Set([
|
|
5
|
-
'USD',
|
|
6
|
-
'AED',
|
|
7
|
-
'AUD',
|
|
8
|
-
'BGN',
|
|
9
|
-
'BRL',
|
|
10
|
-
'CAD',
|
|
11
|
-
'CHF',
|
|
12
|
-
'CLP',
|
|
13
|
-
'CNY',
|
|
14
|
-
'COP',
|
|
15
|
-
'CZK',
|
|
16
|
-
'DKK',
|
|
17
|
-
'EGP',
|
|
18
|
-
'EUR',
|
|
19
|
-
'GBP',
|
|
20
|
-
'GIP',
|
|
21
|
-
'HKD',
|
|
22
|
-
'HRK',
|
|
23
|
-
'HUF',
|
|
24
|
-
'IDR',
|
|
25
|
-
'ILS',
|
|
26
|
-
'INR',
|
|
27
|
-
'JPY',
|
|
28
|
-
'KRW',
|
|
29
|
-
'KWD',
|
|
30
|
-
'KZT',
|
|
31
|
-
'LBP',
|
|
32
|
-
'MXN',
|
|
33
|
-
'MYR',
|
|
34
|
-
'NGN',
|
|
35
|
-
'NOK',
|
|
36
|
-
'NZD',
|
|
37
|
-
'PEN',
|
|
38
|
-
'PHP',
|
|
39
|
-
'PKR',
|
|
40
|
-
'PLN',
|
|
41
|
-
'QAR',
|
|
42
|
-
'RON',
|
|
43
|
-
'RUB',
|
|
44
|
-
'SAR',
|
|
45
|
-
'SEK',
|
|
46
|
-
'SGD',
|
|
47
|
-
'THB',
|
|
48
|
-
'TRY',
|
|
49
|
-
'TWD',
|
|
50
|
-
'TZS',
|
|
51
|
-
'UAH',
|
|
52
|
-
'VND',
|
|
53
|
-
'ZAR',
|
|
54
|
-
'ALL',
|
|
55
|
-
'BHD',
|
|
56
|
-
'DZD',
|
|
57
|
-
'GHS',
|
|
58
|
-
'IQD',
|
|
59
|
-
'ISK',
|
|
60
|
-
'JOD',
|
|
61
|
-
'KES',
|
|
62
|
-
'MAD',
|
|
63
|
-
'OMR',
|
|
64
|
-
'XOF'
|
|
65
|
-
]);
|
|
66
|
-
exports.products = {
|
|
67
|
-
label: 'Products',
|
|
68
|
-
description: "Use this field to send details of mulitple products / items. This field overrides individual 'Item ID', 'Item Category' and 'Brand' fields. Note: total purchase value is tracked using the 'Price' field",
|
|
69
|
-
type: 'object',
|
|
70
|
-
multiple: true,
|
|
71
|
-
additionalProperties: false,
|
|
72
|
-
properties: {
|
|
73
|
-
item_id: {
|
|
74
|
-
label: 'Item ID',
|
|
75
|
-
type: 'string',
|
|
76
|
-
description: 'Identfier for the item. International Article Number (EAN) when applicable, or other product or category identifier.',
|
|
77
|
-
allowNull: false
|
|
78
|
-
},
|
|
79
|
-
item_category: {
|
|
80
|
-
label: 'Category',
|
|
81
|
-
type: 'string',
|
|
82
|
-
description: 'Category of the item. This field accepts a string.',
|
|
83
|
-
allowNull: false
|
|
84
|
-
},
|
|
85
|
-
brand: {
|
|
86
|
-
label: 'Brand',
|
|
87
|
-
type: 'string',
|
|
88
|
-
description: 'Brand associated with the item. This field accepts a string.',
|
|
89
|
-
allowNull: false
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
default: {
|
|
93
|
-
'@arrayPath': [
|
|
94
|
-
'$.properties.products',
|
|
95
|
-
{
|
|
96
|
-
item_id: {
|
|
97
|
-
'@path': 'product_id'
|
|
98
|
-
},
|
|
99
|
-
item_category: {
|
|
100
|
-
'@path': 'category'
|
|
101
|
-
},
|
|
102
|
-
brand: {
|
|
103
|
-
'@path': 'brand'
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
]
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
exports.event_type = {
|
|
110
|
-
label: 'Event Type',
|
|
111
|
-
description: 'The conversion event type. For custom events, you must use one of the predefined event types (i.e. CUSTOM_EVENT_1). Please refer to the possible event types in [Snapchat Marketing API docs](https://marketingapi.snapchat.com/docs/conversion.html#conversion-parameters).',
|
|
112
|
-
type: 'string'
|
|
113
|
-
};
|
|
114
|
-
exports.event_conversion_type = {
|
|
115
|
-
label: 'Event Conversion Type',
|
|
116
|
-
description: 'Where the event took place. This must be OFFLINE, WEB, or MOBILE_APP.',
|
|
117
|
-
type: 'string',
|
|
118
|
-
choices: [
|
|
119
|
-
{ label: 'Offline', value: 'OFFLINE' },
|
|
120
|
-
{ label: 'Web', value: 'WEB' },
|
|
121
|
-
{ label: 'Mobile App', value: 'MOBILE_APP' }
|
|
122
|
-
]
|
|
123
|
-
};
|
|
124
|
-
exports.event_tag = {
|
|
125
|
-
label: 'Event Tag',
|
|
126
|
-
description: 'Custom event label.',
|
|
127
|
-
type: 'string'
|
|
128
|
-
};
|
|
129
|
-
exports.timestamp = {
|
|
130
|
-
label: 'Event Timestamp',
|
|
131
|
-
description: 'The Epoch timestamp for when the conversion happened. The timestamp cannot be more than 28 days in the past.',
|
|
132
|
-
type: 'string',
|
|
133
|
-
default: {
|
|
134
|
-
'@path': '$.timestamp'
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
exports.email = {
|
|
138
|
-
label: 'Email',
|
|
139
|
-
description: 'Email address of the user who triggered the conversion event. Segment will normalize and hash this value before sending to Snapchat. [Snapchat requires](https://marketingapi.snapchat.com/docs/conversion.html#conversion-parameters) that every payload contain values for Email or Phone Number or Mobile Ad Identifier or both IP Address and User Agent fields. Also see [Segment documentation](https://segment.com/docs/connections/destinations/catalog/actions-snap-conversions/#required-parameters-and-hashing).',
|
|
140
|
-
type: 'string',
|
|
141
|
-
default: {
|
|
142
|
-
'@if': {
|
|
143
|
-
exists: { '@path': '$.properties.email' },
|
|
144
|
-
then: { '@path': '$.properties.email' },
|
|
145
|
-
else: { '@path': '$.traits.email' }
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
|
-
exports.mobile_ad_id = {
|
|
150
|
-
label: 'Mobile Ad Identifier',
|
|
151
|
-
description: 'Mobile ad identifier (IDFA or AAID) of the user who triggered the conversion event. Segment will normalize and hash this value before sending to Snapchat. [Snapchat requires](https://marketingapi.snapchat.com/docs/conversion.html#conversion-parameters) that every payload contain values for Email or Phone Number or Mobile Ad Identifier or both IP Address and User Agent fields. Also see [Segment documentation](https://segment.com/docs/connections/destinations/catalog/actions-snap-conversions/#required-parameters-and-hashing).',
|
|
152
|
-
type: 'string',
|
|
153
|
-
default: {
|
|
154
|
-
'@path': '$.context.device.advertisingId'
|
|
155
|
-
}
|
|
156
|
-
};
|
|
157
|
-
exports.uuid_c1 = {
|
|
158
|
-
label: 'uuid_c1 Cookie',
|
|
159
|
-
description: 'Unique user ID cookie. If you are using the Pixel SDK, you can access a cookie1 by looking at the _scid value.',
|
|
160
|
-
type: 'string',
|
|
161
|
-
default: {
|
|
162
|
-
'@path': '$.integrations.Snap Conversions Api.uuid_c1'
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
|
-
exports.idfv = {
|
|
166
|
-
label: 'Identifier for Vendor',
|
|
167
|
-
description: 'IDFV of the user’s device. Segment will normalize and hash this value before sending to Snapchat.',
|
|
168
|
-
type: 'string',
|
|
169
|
-
default: {
|
|
170
|
-
'@path': '$.context.device.id'
|
|
171
|
-
}
|
|
172
|
-
};
|
|
173
|
-
exports.phone_number = {
|
|
174
|
-
label: 'Phone Number',
|
|
175
|
-
description: 'Phone number of the user who triggered the conversion event. Segment will normalize and hash this value before sending to Snapchat. [Snapchat requires](https://marketingapi.snapchat.com/docs/conversion.html#conversion-parameters) that every payload contain values for Email or Phone Number or Mobile Ad Identifier or both IP Address and User Agent fields. Also see [Segment documentation](https://segment.com/docs/connections/destinations/catalog/actions-snap-conversions/#required-parameters-and-hashing).',
|
|
176
|
-
type: 'string',
|
|
177
|
-
default: {
|
|
178
|
-
'@if': {
|
|
179
|
-
exists: { '@path': '$.properties.phone' },
|
|
180
|
-
then: { '@path': '$.properties.phone' },
|
|
181
|
-
else: { '@path': '$.traits.phone' }
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
};
|
|
185
|
-
exports.user_agent = {
|
|
186
|
-
label: 'User Agent',
|
|
187
|
-
description: 'User agent from the user’s device. [Snapchat requires](https://marketingapi.snapchat.com/docs/conversion.html#conversion-parameters) that every payload contain values for Email or Phone Number or Mobile Ad Identifier or both IP Address and User Agent fields. Also see [Segment documentation](https://segment.com/docs/connections/destinations/catalog/actions-snap-conversions/#required-parameters-and-hashing).',
|
|
188
|
-
type: 'string',
|
|
189
|
-
default: {
|
|
190
|
-
'@path': '$.context.userAgent'
|
|
191
|
-
}
|
|
192
|
-
};
|
|
193
|
-
exports.ip_address = {
|
|
194
|
-
label: 'IP Address',
|
|
195
|
-
description: 'IP address of the device or browser. Segment will normalize and hash this value before sending to Snapchat. [Snapchat requires](https://marketingapi.snapchat.com/docs/conversion.html#conversion-parameters) that every payload contain values for Email or Phone Number or Mobile Ad Identifier or both IP Address and User Agent fields. Also see [Segment documentation](https://segment.com/docs/connections/destinations/catalog/actions-snap-conversions/#required-parameters-and-hashing).',
|
|
196
|
-
type: 'string',
|
|
197
|
-
default: {
|
|
198
|
-
'@path': '$.context.ip'
|
|
199
|
-
}
|
|
200
|
-
};
|
|
201
|
-
exports.item_category = {
|
|
202
|
-
label: 'Item Category',
|
|
203
|
-
description: 'Category of the item. This field accepts a string.',
|
|
204
|
-
type: 'string',
|
|
205
|
-
default: {
|
|
206
|
-
'@path': '$.properties.category'
|
|
207
|
-
}
|
|
208
|
-
};
|
|
209
|
-
exports.brands = {
|
|
210
|
-
label: 'Brand',
|
|
211
|
-
description: 'Brand associated with the item. This field accepts a string or a list of strings',
|
|
212
|
-
type: 'string',
|
|
213
|
-
multiple: true,
|
|
214
|
-
default: {
|
|
215
|
-
'@path': '$.properties.brand'
|
|
216
|
-
}
|
|
217
|
-
};
|
|
218
|
-
exports.item_ids = {
|
|
219
|
-
label: 'Item ID',
|
|
220
|
-
description: 'Identfier for the item. International Article Number (EAN) when applicable, or other product or category identifier.',
|
|
221
|
-
type: 'string',
|
|
222
|
-
default: {
|
|
223
|
-
'@path': '$.properties.product_id'
|
|
224
|
-
}
|
|
225
|
-
};
|
|
226
|
-
exports.description = {
|
|
227
|
-
label: 'Description',
|
|
228
|
-
description: 'A string description for additional info.',
|
|
229
|
-
type: 'string'
|
|
230
|
-
};
|
|
231
|
-
exports.number_items = {
|
|
232
|
-
label: 'Number of Items',
|
|
233
|
-
description: 'Number of items. This field accepts a string only. e.g. "5"',
|
|
234
|
-
type: 'string',
|
|
235
|
-
default: {
|
|
236
|
-
'@path': '$.properties.quantity'
|
|
237
|
-
}
|
|
238
|
-
};
|
|
239
|
-
exports.price = {
|
|
240
|
-
label: 'Price',
|
|
241
|
-
description: "Total value of the purchase. This should be a single number. Can be overriden using the 'Track Purchase Value Per Product' field.",
|
|
242
|
-
type: 'number',
|
|
243
|
-
default: {
|
|
244
|
-
'@if': {
|
|
245
|
-
exists: { '@path': '$.properties.revenue' },
|
|
246
|
-
then: { '@path': '$.properties.revenue' },
|
|
247
|
-
else: { '@path': '$.properties.total' }
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
};
|
|
251
|
-
exports.currency = {
|
|
252
|
-
label: 'Currency',
|
|
253
|
-
description: 'Currency for the value specified as ISO 4217 code.',
|
|
254
|
-
type: 'string',
|
|
255
|
-
default: {
|
|
256
|
-
'@path': '$.properties.currency'
|
|
257
|
-
}
|
|
258
|
-
};
|
|
259
|
-
exports.transaction_id = {
|
|
260
|
-
label: 'Transaction ID',
|
|
261
|
-
description: 'Transaction ID or order ID tied to the conversion event. Please refer to the [Snapchat Marketing API docs](https://marketingapi.snapchat.com/docs/conversion.html#deduplication) for information on how this field is used for deduplication against Snap Pixel SDK and App Ads Kit events.',
|
|
262
|
-
type: 'string',
|
|
263
|
-
default: {
|
|
264
|
-
'@path': '$.properties.order_id'
|
|
265
|
-
}
|
|
266
|
-
};
|
|
267
|
-
exports.level = {
|
|
268
|
-
label: 'Level',
|
|
269
|
-
description: 'Represents a level in the context of a game.',
|
|
270
|
-
type: 'string'
|
|
271
|
-
};
|
|
272
|
-
exports.client_dedup_id = {
|
|
273
|
-
label: 'Client Deduplication ID',
|
|
274
|
-
description: 'If you are reporting events via more than one method (Snap Pixel, App Ads Kit, Conversions API) you should use the same client_dedup_id across all methods. Please refer to the [Snapchat Marketing API docs](https://marketingapi.snapchat.com/docs/conversion.html#deduplication) for information on how this field is used for deduplication against Snap Pixel SDK and App Adds Kit events.',
|
|
275
|
-
type: 'string'
|
|
276
|
-
};
|
|
277
|
-
exports.search_string = {
|
|
278
|
-
label: 'Search String',
|
|
279
|
-
description: 'The text string that was searched for.',
|
|
280
|
-
type: 'string',
|
|
281
|
-
default: {
|
|
282
|
-
'@path': '$.properties.query'
|
|
283
|
-
}
|
|
284
|
-
};
|
|
285
|
-
exports.page_url = {
|
|
286
|
-
label: 'Page URL',
|
|
287
|
-
description: 'The URL of the web page where the event took place.',
|
|
288
|
-
type: 'string',
|
|
289
|
-
default: {
|
|
290
|
-
'@path': '$.context.page.url'
|
|
291
|
-
}
|
|
292
|
-
};
|
|
293
|
-
exports.sign_up_method = {
|
|
294
|
-
label: 'Sign Up Method',
|
|
295
|
-
description: 'A string indicating the sign up method.',
|
|
296
|
-
type: 'string'
|
|
297
|
-
};
|
|
298
|
-
exports.device_model = {
|
|
299
|
-
label: 'Device Model',
|
|
300
|
-
description: 'The user’s device model.',
|
|
301
|
-
type: 'string'
|
|
302
|
-
};
|
|
303
|
-
exports.os_version = {
|
|
304
|
-
label: 'OS Version',
|
|
305
|
-
description: 'The user’s OS version.',
|
|
306
|
-
type: 'string'
|
|
307
|
-
};
|
|
308
|
-
exports.click_id = {
|
|
309
|
-
label: 'Click ID',
|
|
310
|
-
description: "The ID value stored in the landing page URL's `&ScCid=` query parameter. Using this ID improves ad measurement performance. We also encourage advertisers who are using `click_id` to pass the full url in the `page_url` field. For more details, please refer to [Sending a Click ID](#sending-a-click-id)",
|
|
311
|
-
type: 'string',
|
|
312
|
-
default: {
|
|
313
|
-
'@path': '$.integrations.Snap Conversions Api.click_id'
|
|
314
|
-
}
|
|
315
|
-
};
|
|
316
|
-
//# sourceMappingURL=snap-capi-properties.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"snap-capi-properties.js","sourceRoot":"","sources":["../../../src/destinations/snap-conversions-api/snap-capi-properties.ts"],"names":[],"mappings":";;;AAEa,QAAA,uBAAuB,GAAG,IAAI,GAAG,CAAC;IAC7C,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,K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K,EAAE,yBAAyB;IAChC,WAAW,EACT,iYAAiY;IACnY,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,aAAa,GAAe;IACvC,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,wCAAwC;IACrD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE;QACP,OAAO,EAAE,oBAAoB;KAC9B;CACF,CAAA;AAEY,QAAA,QAAQ,GAAe;IAClC,KAAK,EAAE,UAAU;IACjB,WAAW,EAAE,qDAAqD;IAClE,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE;QACP,OAAO,EAAE,oBAAoB;KAC9B;CACF,CAAA;AAEY,QAAA,cAAc,GAAe;IACxC,KAAK,EAAE,gBAAgB;IACvB,WAAW,EAAE,yCAAyC;IACtD,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,YAAY,GAAe;IACtC,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE,0BAA0B;IACvC,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,UAAU,GAAe;IACpC,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,wBAAwB;IACrC,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,QAAQ,GAAe;IAClC,KAAK,EAAE,UAAU;IACjB,WAAW,EACT,8SAA8S;IAChT,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE;QACP,OAAO,EAAE,8CAA8C;KACxD;CACF,CAAA"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.formatPhone = exports.formatUserId = exports.formatEmail = void 0;
|
|
4
|
-
const crypto_1 = require("crypto");
|
|
5
|
-
function formatEmail(email) {
|
|
6
|
-
if (email) {
|
|
7
|
-
return hashAndEncode(email.toLowerCase());
|
|
8
|
-
}
|
|
9
|
-
return undefined;
|
|
10
|
-
}
|
|
11
|
-
exports.formatEmail = formatEmail;
|
|
12
|
-
function formatUserId(userId) {
|
|
13
|
-
if (userId) {
|
|
14
|
-
return hashAndEncode(userId.toLowerCase().trim());
|
|
15
|
-
}
|
|
16
|
-
return undefined;
|
|
17
|
-
}
|
|
18
|
-
exports.formatUserId = formatUserId;
|
|
19
|
-
function formatPhone(phone) {
|
|
20
|
-
if (!phone)
|
|
21
|
-
return undefined;
|
|
22
|
-
const validatedPhone = phone.match(/[0-9]{0,14}/g);
|
|
23
|
-
if (validatedPhone === null) {
|
|
24
|
-
throw new Error(`${phone} is not a valid E.164 phone number.`);
|
|
25
|
-
}
|
|
26
|
-
let formattedPhone = `+${phone.replace(/[^0-9]/g, '')}`;
|
|
27
|
-
formattedPhone = formattedPhone.substring(0, 15);
|
|
28
|
-
return hashAndEncode(formattedPhone);
|
|
29
|
-
}
|
|
30
|
-
exports.formatPhone = formatPhone;
|
|
31
|
-
function hashAndEncode(property) {
|
|
32
|
-
return crypto_1.createHash('sha256').update(property).digest('hex');
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=formatter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formatter.js","sourceRoot":"","sources":["../../../../src/destinations/tiktok-conversions/reportWebEvent/formatter.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AAKnC,SAAgB,WAAW,CAAC,KAAyB;IACnD,IAAI,KAAK,EAAE;QACT,OAAO,aAAa,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CAAA;KAC1C;IACD,OAAO,SAAS,CAAA;AAClB,CAAC;AALD,kCAKC;AAOD,SAAgB,YAAY,CAAC,MAA0B;IACrD,IAAI,MAAM,EAAE;QACV,OAAO,aAAa,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC,CAAA;KAClD;IACD,OAAO,SAAS,CAAA;AAClB,CAAC;AALD,oCAKC;AAOD,SAAgB,WAAW,CAAC,KAAyB;IACnD,IAAI,CAAC,KAAK;QAAE,OAAO,SAAS,CAAA;IAE5B,MAAM,cAAc,GAAG,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAA;IAClD,IAAI,cAAc,KAAK,IAAI,EAAE;QAC3B,MAAM,IAAI,KAAK,CAAC,GAAG,KAAK,qCAAqC,CAAC,CAAA;KAC/D;IAED,IAAI,cAAc,GAAG,IAAI,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,EAAE,CAAA;IAEvD,cAAc,GAAG,cAAc,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA;IAChD,OAAO,aAAa,CAAC,cAAc,CAAC,CAAA;AACtC,CAAC;AAZD,kCAYC;AAED,SAAS,aAAa,CAAC,QAAgB;IACrC,OAAO,mBAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;AAC5D,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/destinations/vernst-test/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,20 +0,0 @@
|
|
|
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 pingWebhook_1 = __importDefault(require("./pingWebhook"));
|
|
7
|
-
const destination = {
|
|
8
|
-
name: 'Vernst Test',
|
|
9
|
-
slug: 'actions-vernst-test',
|
|
10
|
-
mode: 'cloud',
|
|
11
|
-
authentication: {
|
|
12
|
-
scheme: 'custom',
|
|
13
|
-
fields: {}
|
|
14
|
-
},
|
|
15
|
-
actions: {
|
|
16
|
-
pingWebhook: pingWebhook_1.default
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
exports.default = destination;
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/vernst-test/index.ts"],"names":[],"mappings":";;;;;AAGA,gEAAuC;AAEvC,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,EAAE;KACX;IAED,OAAO,EAAE;QACP,WAAW,EAAX,qBAAW;KACZ;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/vernst-test/pingWebhook/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const action = {
|
|
4
|
-
title: 'Ping Webhook',
|
|
5
|
-
description: 'Pings a webhook with the content',
|
|
6
|
-
fields: {
|
|
7
|
-
content: {
|
|
8
|
-
label: 'Content',
|
|
9
|
-
description: 'the content that will be sent',
|
|
10
|
-
type: 'string'
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
perform: (request, data) => {
|
|
14
|
-
return request('https://webhook.site/6c73baff-8715-48b8-84cd-67da8cdbd68f', {
|
|
15
|
-
method: 'POST',
|
|
16
|
-
json: { "content": data.payload.content }
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
exports.default = action;
|
|
21
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/vernst-test/pingWebhook/index.ts"],"names":[],"mappings":";;AAIA,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE,kCAAkC;IAC/C,MAAM,EAAE;QACN,OAAO,EAAE;YACP,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,QAAQ;SACf;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QACzB,OAAO,OAAO,CAAC,2DAA2D,EAAE;YAC1E,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;SAC1C,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|