@segment/action-destinations 3.331.7-staging.1 → 3.331.8-staging
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/blackbaud-raisers-edge-nxt/utils/index.d.ts +1 -1
- package/dist/destinations/display-video-360/addToAudience/generated-types.d.ts +1 -1
- package/dist/destinations/display-video-360/addToAudience/index.js +3 -2
- package/dist/destinations/display-video-360/addToAudience/index.js.map +1 -1
- package/dist/destinations/display-video-360/index.js +5 -3
- package/dist/destinations/display-video-360/index.js.map +1 -1
- package/dist/destinations/display-video-360/listManagement.d.ts +9 -0
- package/dist/destinations/display-video-360/listManagement.js +16 -0
- package/dist/destinations/display-video-360/listManagement.js.map +1 -0
- package/dist/destinations/display-video-360/properties.d.ts +1 -1
- package/dist/destinations/display-video-360/properties.js +14 -17
- package/dist/destinations/display-video-360/properties.js.map +1 -1
- package/dist/destinations/display-video-360/removeFromAudience/generated-types.d.ts +1 -1
- package/dist/destinations/display-video-360/removeFromAudience/index.js +3 -2
- package/dist/destinations/display-video-360/removeFromAudience/index.js.map +1 -1
- package/dist/destinations/display-video-360/shared.js +3 -3
- package/dist/destinations/display-video-360/shared.js.map +1 -1
- package/package.json +1 -1
- package/dist/destinations/absmartly/segment.d.ts +0 -11
- package/dist/destinations/absmartly/segment.js +0 -3
- package/dist/destinations/absmartly/segment.js.map +0 -1
- package/dist/destinations/braze/updateUserProfile/__snapshots__/__snapshots__/snapshot.test.js.snap +0 -208
- package/dist/destinations/braze/updateUserProfile/__snapshots__/snapshot.test.d.ts +0 -1
- package/dist/destinations/braze/updateUserProfile/__snapshots__/snapshot.test.js +0 -184
- package/dist/destinations/braze/updateUserProfile/__snapshots__/snapshot.test.js.map +0 -1
- package/dist/destinations/gleap/generated-types.d.ts +0 -3
- package/dist/destinations/gleap/generated-types.js +0 -3
- package/dist/destinations/gleap/generated-types.js.map +0 -1
- package/dist/destinations/gleap/identifyContact/generated-types.d.ts +0 -18
- package/dist/destinations/gleap/identifyContact/generated-types.js +0 -3
- package/dist/destinations/gleap/identifyContact/generated-types.js.map +0 -1
- package/dist/destinations/gleap/identifyContact/index.d.ts +0 -5
- package/dist/destinations/gleap/identifyContact/index.js +0 -155
- package/dist/destinations/gleap/identifyContact/index.js.map +0 -1
- package/dist/destinations/gleap/index.d.ts +0 -4
- package/dist/destinations/gleap/index.js +0 -52
- package/dist/destinations/gleap/index.js.map +0 -1
- package/dist/destinations/gleap/trackEvent/generated-types.d.ts +0 -10
- package/dist/destinations/gleap/trackEvent/generated-types.js +0 -3
- package/dist/destinations/gleap/trackEvent/generated-types.js.map +0 -1
- package/dist/destinations/gleap/trackEvent/index.d.ts +0 -5
- package/dist/destinations/gleap/trackEvent/index.js +0 -111
- package/dist/destinations/gleap/trackEvent/index.js.map +0 -1
- package/dist/destinations/klaviyo/removeProfileToList/generated-types.d.ts +0 -4
- package/dist/destinations/klaviyo/removeProfileToList/generated-types.js +0 -3
- package/dist/destinations/klaviyo/removeProfileToList/generated-types.js.map +0 -1
- package/dist/destinations/klaviyo/removeProfileToList/index.d.ts +0 -5
- package/dist/destinations/klaviyo/removeProfileToList/index.js +0 -41
- package/dist/destinations/klaviyo/removeProfileToList/index.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/trackey/identifyUser/generated-types.d.ts +0 -8
- package/dist/destinations/trackey/identifyUser/generated-types.js +0 -3
- package/dist/destinations/trackey/identifyUser/generated-types.js.map +0 -1
- package/dist/destinations/trackey/identifyUser/index.d.ts +0 -5
- package/dist/destinations/trackey/identifyUser/index.js +0 -52
- package/dist/destinations/trackey/identifyUser/index.js.map +0 -1
- package/dist/destinations/trackey/identifyUser.types.d.ts +0 -8
- package/dist/destinations/trackey/identifyUser.types.js +0 -3
- package/dist/destinations/trackey/identifyUser.types.js.map +0 -1
- package/dist/destinations/trackey/registerCompany/generated-types.d.ts +0 -9
- package/dist/destinations/trackey/registerCompany/generated-types.js +0 -3
- package/dist/destinations/trackey/registerCompany/generated-types.js.map +0 -1
- package/dist/destinations/trackey/registerCompany/index.d.ts +0 -5
- package/dist/destinations/trackey/registerCompany/index.js +0 -60
- package/dist/destinations/trackey/registerCompany/index.js.map +0 -1
- package/dist/destinations/trackey/registerCompany.types.d.ts +0 -9
- package/dist/destinations/trackey/registerCompany.types.js +0 -3
- package/dist/destinations/trackey/registerCompany.types.js.map +0 -1
- package/dist/destinations/trackey/trackEvent/generated-types.d.ts +0 -12
- package/dist/destinations/trackey/trackEvent/generated-types.js +0 -3
- package/dist/destinations/trackey/trackEvent/generated-types.js.map +0 -1
- package/dist/destinations/trackey/trackEvent/index.d.ts +0 -5
- package/dist/destinations/trackey/trackEvent/index.js +0 -68
- package/dist/destinations/trackey/trackEvent/index.js.map +0 -1
- package/dist/destinations/trackey/trackEvent.types.d.ts +0 -12
- package/dist/destinations/trackey/trackEvent.types.js +0 -3
- package/dist/destinations/trackey/trackEvent.types.js.map +0 -1
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const actions_core_1 = require("@segment/actions-core");
|
|
4
|
-
const functions_1 = require("../functions");
|
|
5
|
-
const properties_1 = require("../properties");
|
|
6
|
-
const action = {
|
|
7
|
-
title: 'Remove profile from list',
|
|
8
|
-
description: 'Remove profile from list',
|
|
9
|
-
fields: {
|
|
10
|
-
email: { ...properties_1.email },
|
|
11
|
-
list_id: { ...properties_1.external_id }
|
|
12
|
-
},
|
|
13
|
-
perform: async (request, { payload }) => {
|
|
14
|
-
const { email, list_id } = payload;
|
|
15
|
-
if (!email || !list_id) {
|
|
16
|
-
throw new actions_core_1.IntegrationError("Insert the ID of the default list that you'd like to subscribe users", 'Missing required fields', 400);
|
|
17
|
-
}
|
|
18
|
-
try {
|
|
19
|
-
const profileData = await functions_1.getProfile(request, email);
|
|
20
|
-
const v = JSON.parse(profileData.content);
|
|
21
|
-
if (!v && v.data[0] != undefined) {
|
|
22
|
-
const listData = {
|
|
23
|
-
data: [
|
|
24
|
-
{
|
|
25
|
-
type: 'profile',
|
|
26
|
-
id: v.id
|
|
27
|
-
}
|
|
28
|
-
]
|
|
29
|
-
};
|
|
30
|
-
const list = await functions_1.executeProfileList(request, 'DELETE', listData, list_id);
|
|
31
|
-
return list;
|
|
32
|
-
}
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
catch (error) {
|
|
36
|
-
throw new Error('An error occurred while processing the request');
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
exports.default = action;
|
|
41
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/klaviyo/removeProfileToList/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAK1E,4CAA6D;AAC7D,8CAAkD;AAElD,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,0BAA0B;IACjC,WAAW,EAAE,0BAA0B;IACvC,MAAM,EAAE;QACN,KAAK,EAAE,EAAE,GAAG,kBAAK,EAAE;QACnB,OAAO,EAAE,EAAE,GAAG,wBAAW,EAAE;KAC5B;IACD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QACtC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,OAAO,CAAA;QAClC,IAAI,CAAC,KAAK,IAAI,CAAC,OAAO,EAAE;YACtB,MAAM,IAAI,+BAAgB,CACxB,sEAAsE,EACtE,yBAAyB,EACzB,GAAG,CACJ,CAAA;SACF;QACD,IAAI;YACF,MAAM,WAAW,GAA2B,MAAM,sBAAU,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;YAC5E,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,CAAA;YACzC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,SAAS,EAAE;gBAChC,MAAM,QAAQ,GAAa;oBACzB,IAAI,EAAE;wBACJ;4BACE,IAAI,EAAE,SAAS;4BACf,EAAE,EAAE,CAAC,CAAC,EAAE;yBACT;qBACF;iBACF,CAAA;gBAED,MAAM,IAAI,GAAG,MAAM,8BAAkB,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA;gBAC3E,OAAO,IAAI,CAAA;aACZ;YACD,OAAM;SACP;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAA;SAClE;IACH,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -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,gD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Root":"","sources":["../../../../src/destinations/trackey/identifyUser/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const constants_1 = require("../constants");
|
|
4
|
-
const action = {
|
|
5
|
-
title: 'Identify User',
|
|
6
|
-
description: 'Identify a user',
|
|
7
|
-
defaultSubscription: 'type = "identify"',
|
|
8
|
-
fields: {
|
|
9
|
-
userId: {
|
|
10
|
-
label: 'User ID',
|
|
11
|
-
type: 'string',
|
|
12
|
-
required: true,
|
|
13
|
-
description: 'The user identifier to associate the event with',
|
|
14
|
-
default: { '@path': '$.userId' }
|
|
15
|
-
},
|
|
16
|
-
messageId: {
|
|
17
|
-
label: 'Message ID',
|
|
18
|
-
type: 'string',
|
|
19
|
-
description: 'A unique value for each event.',
|
|
20
|
-
default: {
|
|
21
|
-
'@path': '$.messageId'
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
timestamp: {
|
|
25
|
-
label: 'Event Timestamp',
|
|
26
|
-
type: 'string',
|
|
27
|
-
required: true,
|
|
28
|
-
description: 'Timestamp that the event took place, in ISO 8601 format. e.g. 2019-06-12T19:11:01.152Z',
|
|
29
|
-
default: { '@path': '$.timestamp' }
|
|
30
|
-
},
|
|
31
|
-
traits: {
|
|
32
|
-
label: 'User Traits',
|
|
33
|
-
type: 'object',
|
|
34
|
-
required: false,
|
|
35
|
-
description: 'User profile information',
|
|
36
|
-
default: { '@path': '$.traits' }
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
perform: (request, { payload }) => {
|
|
40
|
-
return request(constants_1.baseUrl, {
|
|
41
|
-
method: 'POST',
|
|
42
|
-
json: {
|
|
43
|
-
userId: payload.userId,
|
|
44
|
-
messageId: payload.messageId,
|
|
45
|
-
timestamp: payload.timestamp,
|
|
46
|
-
traits: payload.traits
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
exports.default = action;
|
|
52
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/trackey/identifyUser/index.ts"],"names":[],"mappings":";;AAGA,4CAAsC;AAEtC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,iBAAiB;IAC9B,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,MAAM,EAAE;YACN,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,iDAAiD;YAC9D,OAAO,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;SACjC;QACD,SAAS,EAAE;YACT,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,gCAAgC;YAC7C,OAAO,EAAE;gBACP,OAAO,EAAE,aAAa;aACvB;SACF;QACD,SAAS,EAAE;YACT,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,wFAAwF;YACrG,OAAO,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE;SACpC;QACD,MAAM,EAAE;YACN,KAAK,EAAE,aAAa;YACpB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,WAAW,EAAE,0BAA0B;YACvC,OAAO,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;SACjC;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAChC,OAAO,OAAO,CAAC,mBAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,MAAM,EAAE,OAAO,CAAC,MAAM;aACvB;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"identifyUser.types.js","sourceRoot":"","sources":["../../../src/destinations/trackey/identifyUser.types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/trackey/registerCompany/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const constants_1 = require("../constants");
|
|
4
|
-
const action = {
|
|
5
|
-
title: 'Register Company',
|
|
6
|
-
description: 'Register a user in a company',
|
|
7
|
-
defaultSubscription: 'type = "group"',
|
|
8
|
-
fields: {
|
|
9
|
-
userId: {
|
|
10
|
-
label: 'User ID',
|
|
11
|
-
type: 'string',
|
|
12
|
-
required: true,
|
|
13
|
-
description: 'The user identifier to associate the event with',
|
|
14
|
-
default: { '@path': '$.userId' }
|
|
15
|
-
},
|
|
16
|
-
messageId: {
|
|
17
|
-
label: 'Message ID',
|
|
18
|
-
type: 'string',
|
|
19
|
-
description: 'A unique value for each event.',
|
|
20
|
-
default: {
|
|
21
|
-
'@path': '$.messageId'
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
timestamp: {
|
|
25
|
-
label: 'Event Timestamp',
|
|
26
|
-
type: 'string',
|
|
27
|
-
required: true,
|
|
28
|
-
description: 'Timestamp that the event took place, in ISO 8601 format. e.g. 2019-06-12T19:11:01.152Z',
|
|
29
|
-
default: { '@path': '$.timestamp' }
|
|
30
|
-
},
|
|
31
|
-
traits: {
|
|
32
|
-
label: 'COmpany Traits',
|
|
33
|
-
type: 'object',
|
|
34
|
-
required: false,
|
|
35
|
-
description: 'Company profile information',
|
|
36
|
-
default: { '@path': '$.traits' }
|
|
37
|
-
},
|
|
38
|
-
groupId: {
|
|
39
|
-
label: 'Group ID',
|
|
40
|
-
type: 'string',
|
|
41
|
-
required: true,
|
|
42
|
-
description: 'Company ID associated with the event',
|
|
43
|
-
default: { '@path': '$.groupId' }
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
perform: (request, { payload }) => {
|
|
47
|
-
return request(constants_1.baseUrl, {
|
|
48
|
-
method: 'POST',
|
|
49
|
-
json: {
|
|
50
|
-
userId: payload.userId,
|
|
51
|
-
messageId: payload.messageId,
|
|
52
|
-
timestamp: payload.timestamp,
|
|
53
|
-
traits: payload.traits,
|
|
54
|
-
groupId: payload.groupId
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
exports.default = action;
|
|
60
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/trackey/registerCompany/index.ts"],"names":[],"mappings":";;AAGA,4CAAsC;AAEtC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,8BAA8B;IAC3C,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,MAAM,EAAE;YACN,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,iDAAiD;YAC9D,OAAO,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;SACjC;QACD,SAAS,EAAE;YACT,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,gCAAgC;YAC7C,OAAO,EAAE;gBACP,OAAO,EAAE,aAAa;aACvB;SACF;QACD,SAAS,EAAE;YACT,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,wFAAwF;YACrG,OAAO,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE;SACpC;QACD,MAAM,EAAE;YACN,KAAK,EAAE,gBAAgB;YACvB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,WAAW,EAAE,6BAA6B;YAC1C,OAAO,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;SACjC;QACD,OAAO,EAAE;YACP,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,sCAAsC;YACnD,OAAO,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;SAClC;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAChC,OAAO,OAAO,CAAC,mBAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,OAAO,EAAE,OAAO,CAAC,OAAO;aACzB;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"registerCompany.types.js","sourceRoot":"","sources":["../../../src/destinations/trackey/registerCompany.types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/trackey/trackEvent/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const constants_1 = require("../constants");
|
|
4
|
-
const action = {
|
|
5
|
-
title: 'Track Event',
|
|
6
|
-
description: 'Track an event',
|
|
7
|
-
defaultSubscription: 'type = "track"',
|
|
8
|
-
fields: {
|
|
9
|
-
userId: {
|
|
10
|
-
label: 'User ID',
|
|
11
|
-
type: 'string',
|
|
12
|
-
required: true,
|
|
13
|
-
description: 'The user identifier to associate the event with',
|
|
14
|
-
default: { '@path': '$.userId' }
|
|
15
|
-
},
|
|
16
|
-
event: {
|
|
17
|
-
label: 'Event Name',
|
|
18
|
-
type: 'string',
|
|
19
|
-
required: true,
|
|
20
|
-
description: 'Name of the Segment track() event',
|
|
21
|
-
default: { '@path': '$.event' }
|
|
22
|
-
},
|
|
23
|
-
messageId: {
|
|
24
|
-
label: 'Message ID',
|
|
25
|
-
type: 'string',
|
|
26
|
-
description: 'A unique value for each event.',
|
|
27
|
-
default: {
|
|
28
|
-
'@path': '$.messageId'
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
timestamp: {
|
|
32
|
-
label: 'Event Timestamp',
|
|
33
|
-
type: 'string',
|
|
34
|
-
required: true,
|
|
35
|
-
description: 'Timestamp that the event took place, in ISO 8601 format. e.g. 2019-06-12T19:11:01.152Z',
|
|
36
|
-
default: { '@path': '$.timestamp' }
|
|
37
|
-
},
|
|
38
|
-
properties: {
|
|
39
|
-
label: 'Event Properties',
|
|
40
|
-
type: 'object',
|
|
41
|
-
required: false,
|
|
42
|
-
description: 'Additional information associated with the track() event',
|
|
43
|
-
default: { '@path': '$.properties' }
|
|
44
|
-
},
|
|
45
|
-
groupId: {
|
|
46
|
-
label: 'Group ID',
|
|
47
|
-
type: 'object',
|
|
48
|
-
required: false,
|
|
49
|
-
description: 'Company ID associated with the event',
|
|
50
|
-
default: { '@path': '$.context.group_id' }
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
perform: (request, { payload }) => {
|
|
54
|
-
return request(constants_1.baseUrl, {
|
|
55
|
-
method: 'POST',
|
|
56
|
-
json: {
|
|
57
|
-
userId: payload.userId,
|
|
58
|
-
event: payload.event,
|
|
59
|
-
messageId: payload.messageId,
|
|
60
|
-
timestamp: payload.timestamp,
|
|
61
|
-
properties: payload.properties,
|
|
62
|
-
groupId: payload.groupId
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
exports.default = action;
|
|
68
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/trackey/trackEvent/index.ts"],"names":[],"mappings":";;AAGA,4CAAsC;AAEtC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,gBAAgB;IAC7B,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,MAAM,EAAE;YACN,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,iDAAiD;YAC9D,OAAO,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;SACjC;QACD,KAAK,EAAE;YACL,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,mCAAmC;YAChD,OAAO,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;SAChC;QACD,SAAS,EAAE;YACT,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,gCAAgC;YAC7C,OAAO,EAAE;gBACP,OAAO,EAAE,aAAa;aACvB;SACF;QACD,SAAS,EAAE;YACT,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,wFAAwF;YACrG,OAAO,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE;SACpC;QACD,UAAU,EAAE;YACV,KAAK,EAAE,kBAAkB;YACzB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,WAAW,EAAE,0DAA0D;YACvE,OAAO,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE;SACrC;QACD,OAAO,EAAE;YACP,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,WAAW,EAAE,sCAAsC;YACnD,OAAO,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;SAC3C;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAChC,OAAO,OAAO,CAAC,mBAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,UAAU,EAAE,OAAO,CAAC,UAAU;gBAC9B,OAAO,EAAE,OAAO,CAAC,OAAO;aACzB;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"trackEvent.types.js","sourceRoot":"","sources":["../../../src/destinations/trackey/trackEvent.types.ts"],"names":[],"mappings":""}
|