@segment/action-destinations 3.261.0 → 3.261.1-staging.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/amazon-ads/generated-types.d.ts +9 -0
- package/dist/destinations/amazon-ads/index.d.ts +2 -2
- package/dist/destinations/amazon-ads/index.js +180 -3
- package/dist/destinations/amazon-ads/index.js.map +1 -1
- package/dist/destinations/amazon-ads/syncAudiences/generated-types.d.ts +19 -0
- package/dist/destinations/amazon-ads/syncAudiences/index.js +158 -7
- package/dist/destinations/amazon-ads/syncAudiences/index.js.map +1 -1
- package/dist/destinations/amazon-ads/utils.d.ts +25 -0
- package/dist/destinations/amazon-ads/utils.js +8 -0
- package/dist/destinations/amazon-ads/utils.js.map +1 -0
- package/dist/destinations/chartmogul/index.js +1 -1
- package/dist/destinations/chartmogul/index.js.map +1 -1
- package/dist/destinations/display-video-360/addToAudience/index.js +2 -1
- package/dist/destinations/display-video-360/addToAudience/index.js.map +1 -1
- package/dist/destinations/engage/sendgrid/Profile.d.ts +6 -0
- package/dist/destinations/{inleads-ai/identify/generated-types.js → engage/sendgrid/Profile.js} +1 -1
- package/dist/destinations/engage/sendgrid/Profile.js.map +1 -0
- package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.d.ts +21 -0
- package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js +174 -0
- package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js.map +1 -0
- package/dist/destinations/engage/utils/EngageActionPerformer.js +17 -2
- package/dist/destinations/engage/utils/EngageActionPerformer.js.map +1 -1
- package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.d.ts +3 -0
- package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.js +15 -0
- package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.js.map +1 -1
- package/dist/destinations/engage/utils/track.d.ts +3 -0
- package/dist/destinations/gameball/index.js +1 -1
- package/dist/destinations/gameball/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/functions.js.map +1 -1
- package/dist/destinations/hubspot/upsertCustomObjectRecord/index.js +4 -4
- package/dist/destinations/hubspot/upsertCustomObjectRecord/index.js.map +1 -1
- package/dist/destinations/index.js +0 -3
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/kameleoon/index.js +9 -15
- package/dist/destinations/kameleoon/index.js.map +1 -1
- package/dist/destinations/kameleoon/logEvent/generated-types.d.ts +0 -2
- package/dist/destinations/kameleoon/logEvent/index.js +1 -13
- package/dist/destinations/kameleoon/logEvent/index.js.map +1 -1
- package/dist/destinations/klaviyo/functions.d.ts +7 -4
- package/dist/destinations/klaviyo/functions.js +80 -1
- package/dist/destinations/klaviyo/functions.js.map +1 -1
- package/dist/destinations/klaviyo/removeProfile/index.js +2 -0
- package/dist/destinations/klaviyo/removeProfile/index.js.map +1 -1
- package/dist/destinations/klaviyo/types.d.ts +97 -0
- package/dist/destinations/klaviyo/upsertProfile/index.js +29 -19
- package/dist/destinations/klaviyo/upsertProfile/index.js.map +1 -1
- package/dist/destinations/liveramp-audiences/audienceEnteredS3/index.js +2 -2
- package/dist/destinations/liveramp-audiences/audienceEnteredS3/index.js.map +1 -1
- package/dist/destinations/liveramp-audiences/audienceEnteredSftp/index.js +2 -2
- package/dist/destinations/liveramp-audiences/audienceEnteredSftp/index.js.map +1 -1
- package/dist/destinations/marketo-static-lists/addToList/index.js +4 -2
- package/dist/destinations/marketo-static-lists/addToList/index.js.map +1 -1
- package/dist/destinations/mixpanel/utils.d.ts +13 -0
- package/dist/destinations/mixpanel/utils.js +117 -0
- package/dist/destinations/mixpanel/utils.js.map +1 -0
- package/dist/destinations/moloco-rmp/index.js +2 -2
- package/dist/destinations/responsys/asyncMergePetRecords/generated-types.d.ts +14 -0
- package/dist/destinations/responsys/asyncMergePetRecords/generated-types.js.map +1 -0
- package/dist/destinations/{kameleoon/group → responsys/asyncMergePetRecords}/index.d.ts +1 -1
- package/dist/destinations/responsys/asyncMergePetRecords/index.js +113 -0
- package/dist/destinations/responsys/asyncMergePetRecords/index.js.map +1 -0
- package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.d.ts +20 -0
- package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.js.map +1 -0
- package/dist/destinations/{inleads-ai/group → responsys/asyncMergeProfileListMembers}/index.d.ts +1 -1
- package/dist/destinations/responsys/asyncMergeProfileListMembers/index.js +174 -0
- package/dist/destinations/responsys/asyncMergeProfileListMembers/index.js.map +1 -0
- package/dist/destinations/responsys/rsp-operations.d.ts +14 -0
- package/dist/destinations/responsys/rsp-operations.js +33 -0
- package/dist/destinations/responsys/rsp-operations.js.map +1 -0
- package/dist/destinations/responsys/rsp-properties.d.ts +4 -0
- package/dist/destinations/responsys/rsp-properties.js +27 -0
- package/dist/destinations/responsys/rsp-properties.js.map +1 -0
- package/dist/destinations/segment/segment-properties.js +2 -2
- package/dist/destinations/segment/segment-properties.js.map +1 -1
- package/dist/destinations/snap-conversions-api/_tests_/capiV2tests.d.ts +1 -0
- package/dist/destinations/snap-conversions-api/_tests_/capiV2tests.js +381 -0
- package/dist/destinations/snap-conversions-api/_tests_/capiV2tests.js.map +1 -0
- package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.d.ts +1 -0
- package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.js +581 -0
- package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.js.map +1 -0
- package/dist/destinations/snap-conversions-api/_tests_/index.test.js +488 -420
- package/dist/destinations/snap-conversions-api/_tests_/index.test.js.map +1 -1
- package/dist/destinations/snap-conversions-api/index.js +42 -42
- package/dist/destinations/snap-conversions-api/index.js.map +1 -1
- package/dist/destinations/snap-conversions-api/reportConversionEvent/generated-types.d.ts +18 -97
- package/dist/destinations/snap-conversions-api/reportConversionEvent/index.js +29 -7
- package/dist/destinations/snap-conversions-api/reportConversionEvent/index.js.map +1 -1
- package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v2.d.ts +4 -0
- package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v2.js +97 -0
- package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v2.js.map +1 -0
- package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v3.d.ts +4 -0
- package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v3.js +119 -593
- package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v3.js.map +1 -1
- package/dist/destinations/snap-conversions-api/reportConversionEvent/utils.d.ts +4 -3
- package/dist/destinations/snap-conversions-api/reportConversionEvent/utils.js +1 -6
- package/dist/destinations/snap-conversions-api/reportConversionEvent/utils.js.map +1 -1
- package/dist/destinations/snap-conversions-api/snap-capi-properties.d.ts +30 -0
- package/dist/destinations/snap-conversions-api/snap-capi-properties.js +316 -0
- package/dist/destinations/snap-conversions-api/snap-capi-properties.js.map +1 -0
- package/dist/destinations/stackadapt/forwardEvent/generated-types.d.ts +4 -4
- package/dist/destinations/stackadapt/forwardEvent/index.js +7 -11
- package/dist/destinations/stackadapt/forwardEvent/index.js.map +1 -1
- package/dist/destinations/tiktok-conversions/index.js +75 -163
- package/dist/destinations/tiktok-conversions/index.js.map +1 -1
- package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.d.ts +3 -0
- package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js +34 -0
- package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js.map +1 -0
- package/dist/destinations/tiktok-conversions/reportWebEvent/generated-types.d.ts +4 -12
- package/dist/destinations/tiktok-conversions/reportWebEvent/index.d.ts +1 -1
- package/dist/destinations/tiktok-conversions/reportWebEvent/index.js +233 -5
- package/dist/destinations/tiktok-conversions/reportWebEvent/index.js.map +1 -1
- package/dist/destinations/{tiktok-conversions → tiktok-offline-conversions/reportOfflineEvent}/formatter.js +11 -11
- package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.js.map +1 -0
- package/package.json +4 -4
- package/dist/destinations/inleads-ai/common-fields.d.ts +0 -3
- package/dist/destinations/inleads-ai/common-fields.js +0 -238
- package/dist/destinations/inleads-ai/common-fields.js.map +0 -1
- package/dist/destinations/inleads-ai/contants.d.ts +0 -4
- package/dist/destinations/inleads-ai/contants.js +0 -8
- package/dist/destinations/inleads-ai/contants.js.map +0 -1
- package/dist/destinations/inleads-ai/generated-types.d.ts +0 -3
- package/dist/destinations/inleads-ai/generated-types.js.map +0 -1
- package/dist/destinations/inleads-ai/group/generated-types.d.ts +0 -44
- package/dist/destinations/inleads-ai/group/generated-types.js.map +0 -1
- package/dist/destinations/inleads-ai/group/index.js +0 -76
- package/dist/destinations/inleads-ai/group/index.js.map +0 -1
- package/dist/destinations/inleads-ai/identify/generated-types.d.ts +0 -46
- package/dist/destinations/inleads-ai/identify/generated-types.js.map +0 -1
- package/dist/destinations/inleads-ai/identify/index.d.ts +0 -5
- package/dist/destinations/inleads-ai/identify/index.js +0 -120
- package/dist/destinations/inleads-ai/identify/index.js.map +0 -1
- package/dist/destinations/inleads-ai/index.d.ts +0 -4
- package/dist/destinations/inleads-ai/index.js +0 -66
- package/dist/destinations/inleads-ai/index.js.map +0 -1
- package/dist/destinations/inleads-ai/track/generated-types.d.ts +0 -45
- package/dist/destinations/inleads-ai/track/generated-types.js +0 -3
- package/dist/destinations/inleads-ai/track/generated-types.js.map +0 -1
- package/dist/destinations/inleads-ai/track/index.d.ts +0 -5
- package/dist/destinations/inleads-ai/track/index.js +0 -64
- package/dist/destinations/inleads-ai/track/index.js.map +0 -1
- package/dist/destinations/kameleoon/group/generated-types.d.ts +0 -12
- package/dist/destinations/kameleoon/group/generated-types.js +0 -3
- package/dist/destinations/kameleoon/group/generated-types.js.map +0 -1
- package/dist/destinations/kameleoon/group/index.js +0 -94
- package/dist/destinations/kameleoon/group/index.js.map +0 -1
- package/dist/destinations/kameleoon/identify/generated-types.d.ts +0 -11
- package/dist/destinations/kameleoon/identify/generated-types.js +0 -3
- package/dist/destinations/kameleoon/identify/generated-types.js.map +0 -1
- package/dist/destinations/kameleoon/identify/index.d.ts +0 -5
- package/dist/destinations/kameleoon/identify/index.js +0 -87
- package/dist/destinations/kameleoon/identify/index.js.map +0 -1
- package/dist/destinations/kameleoon/page/generated-types.d.ts +0 -15
- package/dist/destinations/kameleoon/page/generated-types.js +0 -3
- package/dist/destinations/kameleoon/page/generated-types.js.map +0 -1
- package/dist/destinations/kameleoon/page/index.d.ts +0 -5
- package/dist/destinations/kameleoon/page/index.js +0 -99
- package/dist/destinations/kameleoon/page/index.js.map +0 -1
- package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-input-fields-deprecated.d.ts +0 -31
- package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-input-fields-deprecated.js +0 -174
- package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-input-fields-deprecated.js.map +0 -1
- package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-input-fields-v3.d.ts +0 -16
- package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-input-fields-v3.js +0 -640
- package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-input-fields-v3.js.map +0 -1
- package/dist/destinations/spiffy/generated-types.d.ts +0 -5
- package/dist/destinations/spiffy/generated-types.js +0 -3
- package/dist/destinations/spiffy/generated-types.js.map +0 -1
- package/dist/destinations/spiffy/index.d.ts +0 -4
- package/dist/destinations/spiffy/index.js +0 -62
- package/dist/destinations/spiffy/index.js.map +0 -1
- package/dist/destinations/spiffy/send/generated-types.d.ts +0 -8
- package/dist/destinations/spiffy/send/generated-types.js +0 -3
- package/dist/destinations/spiffy/send/generated-types.js.map +0 -1
- package/dist/destinations/spiffy/send/index.d.ts +0 -5
- package/dist/destinations/spiffy/send/index.js +0 -42
- package/dist/destinations/spiffy/send/index.js.map +0 -1
- package/dist/destinations/tiktok-conversions/common_fields.d.ts +0 -2
- package/dist/destinations/tiktok-conversions/common_fields.js +0 -244
- package/dist/destinations/tiktok-conversions/common_fields.js.map +0 -1
- package/dist/destinations/tiktok-conversions/formatter.js.map +0 -1
- package/dist/destinations/tiktok-conversions/utils.d.ts +0 -4
- package/dist/destinations/tiktok-conversions/utils.js +0 -65
- package/dist/destinations/tiktok-conversions/utils.js.map +0 -1
- package/dist/destinations/xtremepush/generated-types.d.ts +0 -4
- package/dist/destinations/xtremepush/generated-types.js +0 -3
- package/dist/destinations/xtremepush/generated-types.js.map +0 -1
- package/dist/destinations/xtremepush/identify/generated-types.d.ts +0 -14
- package/dist/destinations/xtremepush/identify/generated-types.js +0 -3
- package/dist/destinations/xtremepush/identify/generated-types.js.map +0 -1
- package/dist/destinations/xtremepush/identify/index.d.ts +0 -5
- package/dist/destinations/xtremepush/identify/index.js +0 -87
- package/dist/destinations/xtremepush/identify/index.js.map +0 -1
- package/dist/destinations/xtremepush/index.d.ts +0 -4
- package/dist/destinations/xtremepush/index.js +0 -66
- package/dist/destinations/xtremepush/index.js.map +0 -1
- package/dist/destinations/xtremepush/track/generated-types.d.ts +0 -15
- package/dist/destinations/xtremepush/track/generated-types.js +0 -3
- package/dist/destinations/xtremepush/track/generated-types.js.map +0 -1
- package/dist/destinations/xtremepush/track/index.d.ts +0 -5
- package/dist/destinations/xtremepush/track/index.js +0 -95
- package/dist/destinations/xtremepush/track/index.js.map +0 -1
- package/dist/destinations/{inleads-ai → responsys/asyncMergePetRecords}/generated-types.js +0 -0
- package/dist/destinations/{inleads-ai/group → responsys/asyncMergeProfileListMembers}/generated-types.js +0 -0
- package/dist/destinations/{tiktok-conversions → tiktok-offline-conversions/reportOfflineEvent}/formatter.d.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.formatPhones = exports.formatUserIds = exports.formatEmails = void 0;
|
|
4
4
|
const crypto_1 = require("crypto");
|
|
5
5
|
const formatEmails = (email_addresses) => {
|
|
6
6
|
const result = [];
|
|
@@ -12,6 +12,16 @@ const formatEmails = (email_addresses) => {
|
|
|
12
12
|
return result;
|
|
13
13
|
};
|
|
14
14
|
exports.formatEmails = formatEmails;
|
|
15
|
+
function formatUserIds(userIds) {
|
|
16
|
+
const result = [];
|
|
17
|
+
if (userIds) {
|
|
18
|
+
userIds.forEach((userId) => {
|
|
19
|
+
result.push(hashAndEncode(userId.toLowerCase()));
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
return result;
|
|
23
|
+
}
|
|
24
|
+
exports.formatUserIds = formatUserIds;
|
|
15
25
|
const formatPhones = (phone_numbers) => {
|
|
16
26
|
const result = [];
|
|
17
27
|
if (!phone_numbers)
|
|
@@ -27,16 +37,6 @@ const formatPhones = (phone_numbers) => {
|
|
|
27
37
|
return result;
|
|
28
38
|
};
|
|
29
39
|
exports.formatPhones = formatPhones;
|
|
30
|
-
function formatUserIds(userIds) {
|
|
31
|
-
const result = [];
|
|
32
|
-
if (userIds) {
|
|
33
|
-
userIds.forEach((userId) => {
|
|
34
|
-
result.push(hashAndEncode(userId.toLowerCase()));
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
return result;
|
|
38
|
-
}
|
|
39
|
-
exports.formatUserIds = formatUserIds;
|
|
40
40
|
function hashAndEncode(property) {
|
|
41
41
|
return crypto_1.createHash('sha256').update(property).digest('hex');
|
|
42
42
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatter.js","sourceRoot":"","sources":["../../../../src/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AAK5B,MAAM,YAAY,GAAG,CAAC,eAAqC,EAAY,EAAE;IAC9E,MAAM,MAAM,GAAa,EAAE,CAAA;IAC3B,IAAI,eAAe,EAAE;QACnB,eAAe,CAAC,OAAO,CAAC,CAAC,KAAa,EAAE,EAAE;YACxC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAA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 -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@segment/action-destinations",
|
|
3
3
|
"description": "Destination Actions engine and definitions.",
|
|
4
|
-
"version": "3.261.0",
|
|
4
|
+
"version": "3.261.1-staging.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/segmentio/action-destinations",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"@bufbuild/protobuf": "^1.4.2",
|
|
44
44
|
"@bufbuild/protoc-gen-es": "^1.4.2",
|
|
45
45
|
"@segment/a1-notation": "^2.1.4",
|
|
46
|
-
"@segment/actions-core": "
|
|
47
|
-
"@segment/actions-shared": "^1.
|
|
46
|
+
"@segment/actions-core": "3.106.0-staging-5f3508561",
|
|
47
|
+
"@segment/actions-shared": "^1.87.0",
|
|
48
48
|
"@types/node": "^18.11.15",
|
|
49
49
|
"ajv-formats": "^2.1.1",
|
|
50
50
|
"aws4": "^1.12.0",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"__tests__/__helpers__/"
|
|
87
87
|
]
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "9c04e12c4a0e81f6b68dca0a297fb2c0209d2431"
|
|
90
90
|
}
|
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.commonFields = void 0;
|
|
4
|
-
exports.commonFields = {
|
|
5
|
-
userMeta: {
|
|
6
|
-
label: 'User Metadata',
|
|
7
|
-
type: 'object',
|
|
8
|
-
description: 'User metadata including IP, Location, etc.',
|
|
9
|
-
properties: {
|
|
10
|
-
ip: {
|
|
11
|
-
label: 'IP Address',
|
|
12
|
-
description: "The user's IP address.",
|
|
13
|
-
type: 'string',
|
|
14
|
-
required: false
|
|
15
|
-
},
|
|
16
|
-
latitude: {
|
|
17
|
-
label: 'Latitude',
|
|
18
|
-
description: "The latitude coordinate of the user's location.",
|
|
19
|
-
type: 'number',
|
|
20
|
-
required: false
|
|
21
|
-
},
|
|
22
|
-
longitude: {
|
|
23
|
-
label: 'Longitude',
|
|
24
|
-
description: "The longitude coordinate of the user's location.",
|
|
25
|
-
type: 'number',
|
|
26
|
-
required: false
|
|
27
|
-
},
|
|
28
|
-
country: {
|
|
29
|
-
label: 'Country',
|
|
30
|
-
description: "The country of the user's location.",
|
|
31
|
-
type: 'string',
|
|
32
|
-
required: false
|
|
33
|
-
},
|
|
34
|
-
city: {
|
|
35
|
-
label: 'City',
|
|
36
|
-
description: "The city of the user's location.",
|
|
37
|
-
type: 'string',
|
|
38
|
-
required: false
|
|
39
|
-
},
|
|
40
|
-
browser: {
|
|
41
|
-
label: 'Browser',
|
|
42
|
-
description: "The user's web browser.",
|
|
43
|
-
type: 'string',
|
|
44
|
-
required: false
|
|
45
|
-
},
|
|
46
|
-
os: {
|
|
47
|
-
label: 'Operating System',
|
|
48
|
-
description: "The user's operating system.",
|
|
49
|
-
type: 'string',
|
|
50
|
-
required: false
|
|
51
|
-
},
|
|
52
|
-
osVersion: {
|
|
53
|
-
label: 'OS Version',
|
|
54
|
-
description: "The version of the user's operating system.",
|
|
55
|
-
type: 'string',
|
|
56
|
-
required: false
|
|
57
|
-
},
|
|
58
|
-
deviceType: {
|
|
59
|
-
label: 'Device Type',
|
|
60
|
-
description: 'The type of device the user is using.',
|
|
61
|
-
type: 'string',
|
|
62
|
-
required: false
|
|
63
|
-
},
|
|
64
|
-
deviceVendor: {
|
|
65
|
-
label: 'Device Vendor',
|
|
66
|
-
description: "The vendor or manufacturer of the user's device.",
|
|
67
|
-
type: 'string',
|
|
68
|
-
required: false
|
|
69
|
-
},
|
|
70
|
-
deviceModel: {
|
|
71
|
-
label: 'Device Model',
|
|
72
|
-
description: "The model of the user's device.",
|
|
73
|
-
type: 'string',
|
|
74
|
-
required: false
|
|
75
|
-
},
|
|
76
|
-
timeZone: {
|
|
77
|
-
label: 'Time Zone',
|
|
78
|
-
description: "The time zone of the user's location.",
|
|
79
|
-
type: 'string',
|
|
80
|
-
required: false
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
default: {
|
|
84
|
-
ip: { '@path': '$.context.ip' },
|
|
85
|
-
latitude: { '@path': '$.context.location.latitude' },
|
|
86
|
-
longitude: { '@path': '$.context.location.longitude' },
|
|
87
|
-
country: { '@path': '$.context.location.country' },
|
|
88
|
-
city: { '@path': '$.context.location.city' },
|
|
89
|
-
browser: { '@path': '$.context.userAgent' },
|
|
90
|
-
os: { '@path': '$.context.os.name' },
|
|
91
|
-
osVersion: { '@path': '$.context.os.version' },
|
|
92
|
-
deviceType: { '@path': '$.context.device.type' },
|
|
93
|
-
deviceVendor: { '@path': '$.context.device.manufacturer' },
|
|
94
|
-
deviceModel: { '@path': '$.context.device.model' },
|
|
95
|
-
timeZone: {
|
|
96
|
-
'@if': {
|
|
97
|
-
exists: { '@path': '$.context.timezone' },
|
|
98
|
-
then: { '@path': '$.context.timezone' },
|
|
99
|
-
else: { '@path': '$.properties.timezone' }
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
defaultObjectUI: 'keyvalue'
|
|
104
|
-
},
|
|
105
|
-
anonymous_id: {
|
|
106
|
-
type: 'string',
|
|
107
|
-
allowNull: true,
|
|
108
|
-
required: false,
|
|
109
|
-
description: 'User Anonymous id',
|
|
110
|
-
label: 'Anonymous ID',
|
|
111
|
-
default: { '@path': '$.anonymousId' }
|
|
112
|
-
},
|
|
113
|
-
event_id: {
|
|
114
|
-
type: 'string',
|
|
115
|
-
required: false,
|
|
116
|
-
description: 'The ID of the event.',
|
|
117
|
-
label: 'Event ID',
|
|
118
|
-
default: { '@path': '$.messageId' }
|
|
119
|
-
},
|
|
120
|
-
url: {
|
|
121
|
-
type: 'string',
|
|
122
|
-
required: false,
|
|
123
|
-
description: 'The URL of the page where the event occurred.',
|
|
124
|
-
label: 'URL',
|
|
125
|
-
default: { '@path': '$.context.page.url' }
|
|
126
|
-
},
|
|
127
|
-
referer: {
|
|
128
|
-
type: 'string',
|
|
129
|
-
required: false,
|
|
130
|
-
description: 'The referrer of the page where the event occurred.',
|
|
131
|
-
label: 'Referrer',
|
|
132
|
-
default: { '@path': '$.context.page.referrer' }
|
|
133
|
-
},
|
|
134
|
-
user_language: {
|
|
135
|
-
type: 'string',
|
|
136
|
-
required: false,
|
|
137
|
-
description: 'The language of the browser.',
|
|
138
|
-
label: 'User Language',
|
|
139
|
-
default: { '@path': '$.context.locale' }
|
|
140
|
-
},
|
|
141
|
-
utc_time: {
|
|
142
|
-
type: 'string',
|
|
143
|
-
required: true,
|
|
144
|
-
description: 'The time of the event in UTC.',
|
|
145
|
-
label: 'UTC Time',
|
|
146
|
-
format: 'date-time',
|
|
147
|
-
default: { '@path': '$.timestamp' }
|
|
148
|
-
},
|
|
149
|
-
utm: {
|
|
150
|
-
type: 'object',
|
|
151
|
-
required: false,
|
|
152
|
-
description: 'Information about the UTM parameters.',
|
|
153
|
-
label: 'UTM',
|
|
154
|
-
properties: {
|
|
155
|
-
source: {
|
|
156
|
-
label: 'Source',
|
|
157
|
-
description: 'The source of the campaign.',
|
|
158
|
-
type: 'string'
|
|
159
|
-
},
|
|
160
|
-
medium: {
|
|
161
|
-
label: 'Medium',
|
|
162
|
-
description: 'The medium of the campaign.',
|
|
163
|
-
type: 'string'
|
|
164
|
-
},
|
|
165
|
-
name: {
|
|
166
|
-
label: 'Name',
|
|
167
|
-
description: 'The name of the campaign.',
|
|
168
|
-
type: 'string'
|
|
169
|
-
},
|
|
170
|
-
term: {
|
|
171
|
-
label: 'Term',
|
|
172
|
-
description: 'The term of the campaign.',
|
|
173
|
-
type: 'string'
|
|
174
|
-
},
|
|
175
|
-
content: {
|
|
176
|
-
label: 'Content',
|
|
177
|
-
description: 'The content of the campaign.',
|
|
178
|
-
type: 'string'
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
default: {
|
|
182
|
-
source: { '@path': '$.context.campaign.source' },
|
|
183
|
-
medium: { '@path': '$.context.campaign.medium' },
|
|
184
|
-
name: { '@path': '$.context.campaign.name' },
|
|
185
|
-
term: { '@path': '$.context.campaign.term' },
|
|
186
|
-
content: { '@path': '$.context.campaign.content' }
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
screen: {
|
|
190
|
-
type: 'object',
|
|
191
|
-
required: false,
|
|
192
|
-
description: 'Information about the screen.',
|
|
193
|
-
label: 'Screen',
|
|
194
|
-
properties: {
|
|
195
|
-
height: {
|
|
196
|
-
label: 'Height',
|
|
197
|
-
description: 'The height of the screen.',
|
|
198
|
-
type: 'integer'
|
|
199
|
-
},
|
|
200
|
-
width: {
|
|
201
|
-
label: 'Width',
|
|
202
|
-
description: 'The width of the screen.',
|
|
203
|
-
type: 'integer'
|
|
204
|
-
},
|
|
205
|
-
density: {
|
|
206
|
-
label: 'Density',
|
|
207
|
-
description: 'The density of the screen.',
|
|
208
|
-
type: 'number'
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
default: {
|
|
212
|
-
height: { '@path': '$.context.screen.height' },
|
|
213
|
-
width: { '@path': '$.context.screen.width' },
|
|
214
|
-
density: { '@path': '$.context.screen.density' }
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
timezone: {
|
|
218
|
-
type: 'string',
|
|
219
|
-
required: false,
|
|
220
|
-
description: 'The timezone of the browser.',
|
|
221
|
-
label: 'Timezone',
|
|
222
|
-
default: {
|
|
223
|
-
'@if': {
|
|
224
|
-
exists: { '@path': '$.context.timezone' },
|
|
225
|
-
then: { '@path': '$.context.timezone' },
|
|
226
|
-
else: { '@path': '$.properties.timezone' }
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
},
|
|
230
|
-
source_ip: {
|
|
231
|
-
type: 'string',
|
|
232
|
-
required: false,
|
|
233
|
-
description: 'The IP address of the user.',
|
|
234
|
-
label: 'IP Address',
|
|
235
|
-
default: { '@path': '$.context.ip' }
|
|
236
|
-
}
|
|
237
|
-
};
|
|
238
|
-
//# sourceMappingURL=common-fields.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common-fields.js","sourceRoot":"","sources":["../../../src/destinations/inleads-ai/common-fields.ts"],"names":[],"mappings":";;;AAGa,QAAA,YAAY,GAAyC;IAChE,QAAQ,EAAE;QACR,KAAK,EAAE,eAAe;QACtB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,4CAA4C;QACzD,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,KAAK,EAAE,YAAY;gBACnB,WAAW,EAAE,wBAAwB;gBACrC,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,KAAK;aAChB;YACD,QAAQ,EAAE;gBACR,KAAK,EAAE,UAAU;gBACjB,WAAW,EAAE,iDAAiD;gBAC9D,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,KAAK;aAChB;YACD,SAAS,EAAE;gBACT,KAAK,EAAE,WAAW;gBAClB,WAAW,EAAE,kDAAkD;gBAC/D,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,KAAK;aAChB;YACD,OAAO,EAAE;gBACP,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,qCAAqC;gBAClD,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,KAAK;aAChB;YACD,IAAI,EAAE;gBACJ,KAAK,EAAE,MAAM;gBACb,WAAW,EAAE,kCAAkC;gBAC/C,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,KAAK;aAChB;YACD,OAAO,EAAE;gBACP,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,yBAAyB;gBACtC,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,KAAK;aAChB;YACD,EAAE,EAAE;gBACF,KAAK,EAAE,kBAAkB;gBACzB,WAAW,EAAE,8BAA8B;gBAC3C,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,KAAK;aAChB;YACD,SAAS,EAAE;gBACT,KAAK,EAAE,Y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,WAAW,EAAE,0BAA0B;gBACvC,IAAI,EAAE,SAAS;aAChB;YACD,OAAO,EAAE;gBACP,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,4BAA4B;gBACzC,IAAI,EAAE,QAAQ;aACf;SACF;QACD,OAAO,EAAE;YACP,MAAM,EAAE,EAAE,OAAO,EAAE,yBAAyB,EAAE;YAC9C,KAAK,EAAE,EAAE,OAAO,EAAE,wBAAwB,EAAE;YAC5C,OAAO,EAAE,EAAE,OAAO,EAAE,0BAA0B,EAAE;SACjD;KACF;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,8BAA8B;QAC3C,KAAK,EAAE,UAAU;QACjB,OAAO,EAAE;YACP,KAAK,EAAE;gBACL,MAAM,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;gBACzC,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;gBACvC,IAAI,EAAE,EAAE,OAAO,EAAE,uBAAuB,EAAE;aAC3C;SACF;KACF;IACD,SAAS,EAAE;QACT,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,6BAA6B;QAC1C,KAAK,EAAE,YAAY;QACnB,OAAO,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE;KACrC;CACF,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PartnerActionName = exports.IntegrationBaseUrl = exports.IntegrationWebsite = exports.IntegrationName = void 0;
|
|
4
|
-
exports.IntegrationName = "Inleads AI";
|
|
5
|
-
exports.IntegrationWebsite = "inleads.ai";
|
|
6
|
-
exports.IntegrationBaseUrl = "https://server.inleads.ai";
|
|
7
|
-
exports.PartnerActionName = "postToInleadsAI";
|
|
8
|
-
//# sourceMappingURL=contants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contants.js","sourceRoot":"","sources":["../../../src/destinations/inleads-ai/contants.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,YAAY,CAAC;AAC/B,QAAA,kBAAkB,GAAG,YAAY,CAAC;AAClC,QAAA,kBAAkB,GAAG,2BAA2B,CAAC;AACjD,QAAA,iBAAiB,GAAG,iBAAiB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/destinations/inleads-ai/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export interface Payload {
|
|
2
|
-
account_id: string;
|
|
3
|
-
user_id?: string;
|
|
4
|
-
name: string;
|
|
5
|
-
created_at?: string;
|
|
6
|
-
traits?: {
|
|
7
|
-
[k: string]: unknown;
|
|
8
|
-
};
|
|
9
|
-
website?: string;
|
|
10
|
-
userMeta?: {
|
|
11
|
-
ip?: string;
|
|
12
|
-
latitude?: number;
|
|
13
|
-
longitude?: number;
|
|
14
|
-
country?: string;
|
|
15
|
-
city?: string;
|
|
16
|
-
browser?: string;
|
|
17
|
-
os?: string;
|
|
18
|
-
osVersion?: string;
|
|
19
|
-
deviceType?: string;
|
|
20
|
-
deviceVendor?: string;
|
|
21
|
-
deviceModel?: string;
|
|
22
|
-
timeZone?: string;
|
|
23
|
-
};
|
|
24
|
-
anonymous_id?: string | null;
|
|
25
|
-
event_id?: string;
|
|
26
|
-
url?: string;
|
|
27
|
-
referer?: string;
|
|
28
|
-
user_language?: string;
|
|
29
|
-
utc_time: string;
|
|
30
|
-
utm?: {
|
|
31
|
-
source?: string;
|
|
32
|
-
medium?: string;
|
|
33
|
-
name?: string;
|
|
34
|
-
term?: string;
|
|
35
|
-
content?: string;
|
|
36
|
-
};
|
|
37
|
-
screen?: {
|
|
38
|
-
height?: number;
|
|
39
|
-
width?: number;
|
|
40
|
-
density?: number;
|
|
41
|
-
};
|
|
42
|
-
timezone?: string;
|
|
43
|
-
source_ip?: string;
|
|
44
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/inleads-ai/group/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const common_fields_1 = require("../common-fields");
|
|
4
|
-
const contants_1 = require("../contants");
|
|
5
|
-
const action = {
|
|
6
|
-
title: 'Group',
|
|
7
|
-
description: `Send group calls to ${contants_1.IntegrationName}.`,
|
|
8
|
-
defaultSubscription: 'type = "group"',
|
|
9
|
-
fields: {
|
|
10
|
-
account_id: {
|
|
11
|
-
type: 'string',
|
|
12
|
-
required: true,
|
|
13
|
-
description: 'The External ID of the account to send properties for',
|
|
14
|
-
label: 'Account id',
|
|
15
|
-
default: { '@path': '$.groupId' }
|
|
16
|
-
},
|
|
17
|
-
user_id: {
|
|
18
|
-
type: 'string',
|
|
19
|
-
description: 'The ID associated with the user',
|
|
20
|
-
label: 'User ID',
|
|
21
|
-
default: { '@path': '$.userId' }
|
|
22
|
-
},
|
|
23
|
-
name: {
|
|
24
|
-
type: 'string',
|
|
25
|
-
required: true,
|
|
26
|
-
description: 'The Account name',
|
|
27
|
-
label: 'Account name',
|
|
28
|
-
default: {
|
|
29
|
-
'@if': {
|
|
30
|
-
exists: { '@path': '$.traits.name' },
|
|
31
|
-
then: { '@path': '$.traits.name' },
|
|
32
|
-
else: { '@path': '$.properties.name' }
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
created_at: {
|
|
37
|
-
type: 'string',
|
|
38
|
-
required: false,
|
|
39
|
-
description: 'The timestamp when the account was created, represented in the ISO-8601 date format. For instance, "2023-09-26T15:30:00Z".',
|
|
40
|
-
label: 'Account created at',
|
|
41
|
-
default: {
|
|
42
|
-
'@if': {
|
|
43
|
-
exists: { '@path': '$.traits.created_at' },
|
|
44
|
-
then: { '@path': '$.traits.created_at' },
|
|
45
|
-
else: { '@path': '$.traits.createdAt' }
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
traits: {
|
|
50
|
-
type: 'object',
|
|
51
|
-
required: false,
|
|
52
|
-
description: 'The properties of the account',
|
|
53
|
-
label: 'Account properties',
|
|
54
|
-
default: { '@path': '$.traits' }
|
|
55
|
-
},
|
|
56
|
-
website: {
|
|
57
|
-
type: 'string',
|
|
58
|
-
required: false,
|
|
59
|
-
description: 'The account website',
|
|
60
|
-
label: 'Account website',
|
|
61
|
-
default: { '@path': '$.traits.website' }
|
|
62
|
-
},
|
|
63
|
-
...common_fields_1.commonFields
|
|
64
|
-
},
|
|
65
|
-
perform: (request, data) => {
|
|
66
|
-
return request(`${contants_1.IntegrationBaseUrl}/events/track`, {
|
|
67
|
-
method: 'post',
|
|
68
|
-
headers: {
|
|
69
|
-
Authorization: `Basic ${data.settings.apiKey}`
|
|
70
|
-
},
|
|
71
|
-
json: { ...data.payload, apiKey: data.settings.apiKey }
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
exports.default = action;
|
|
76
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/inleads-ai/group/index.ts"],"names":[],"mappings":";;AAGA,oDAA+C;AAC/C,0CAAiE;AAEjE,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,uBAAuB,0BAAe,GAAG;IACtD,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,uDAAuD;YACpE,KAAK,EAAE,YAAY;YACnB,OAAO,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;SAClC;Q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AAC,GAAG,6BAAkB,eAAe,EAAE;YACnD,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACP,aAAa,EAAE,SAAS,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE;aAC/C;YACD,IAAI,EAAE,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE;SACxD,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
export interface Payload {
|
|
2
|
-
user_id: string;
|
|
3
|
-
name?: string | null;
|
|
4
|
-
first_name?: string | null;
|
|
5
|
-
last_name?: string | null;
|
|
6
|
-
email?: string;
|
|
7
|
-
account_id?: string;
|
|
8
|
-
created_at?: string;
|
|
9
|
-
traits?: {
|
|
10
|
-
[k: string]: unknown;
|
|
11
|
-
};
|
|
12
|
-
userMeta?: {
|
|
13
|
-
ip?: string;
|
|
14
|
-
latitude?: number;
|
|
15
|
-
longitude?: number;
|
|
16
|
-
country?: string;
|
|
17
|
-
city?: string;
|
|
18
|
-
browser?: string;
|
|
19
|
-
os?: string;
|
|
20
|
-
osVersion?: string;
|
|
21
|
-
deviceType?: string;
|
|
22
|
-
deviceVendor?: string;
|
|
23
|
-
deviceModel?: string;
|
|
24
|
-
timeZone?: string;
|
|
25
|
-
};
|
|
26
|
-
anonymous_id?: string | null;
|
|
27
|
-
event_id?: string;
|
|
28
|
-
url?: string;
|
|
29
|
-
referer?: string;
|
|
30
|
-
user_language?: string;
|
|
31
|
-
utc_time: string;
|
|
32
|
-
utm?: {
|
|
33
|
-
source?: string;
|
|
34
|
-
medium?: string;
|
|
35
|
-
name?: string;
|
|
36
|
-
term?: string;
|
|
37
|
-
content?: string;
|
|
38
|
-
};
|
|
39
|
-
screen?: {
|
|
40
|
-
height?: number;
|
|
41
|
-
width?: number;
|
|
42
|
-
density?: number;
|
|
43
|
-
};
|
|
44
|
-
timezone?: string;
|
|
45
|
-
source_ip?: string;
|
|
46
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/inleads-ai/identify/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const common_fields_1 = require("../common-fields");
|
|
4
|
-
const contants_1 = require("../contants");
|
|
5
|
-
const action = {
|
|
6
|
-
title: 'Identify',
|
|
7
|
-
description: `Send identify calls to ${contants_1.IntegrationName}.`,
|
|
8
|
-
defaultSubscription: 'type = "identify"',
|
|
9
|
-
platform: 'cloud',
|
|
10
|
-
fields: {
|
|
11
|
-
user_id: {
|
|
12
|
-
type: 'string',
|
|
13
|
-
required: true,
|
|
14
|
-
description: 'The External ID of the user',
|
|
15
|
-
label: 'User ID',
|
|
16
|
-
default: { '@path': '$.userId' }
|
|
17
|
-
},
|
|
18
|
-
name: {
|
|
19
|
-
type: 'string',
|
|
20
|
-
required: false,
|
|
21
|
-
description: "The user's name",
|
|
22
|
-
allowNull: true,
|
|
23
|
-
label: 'Name',
|
|
24
|
-
default: {
|
|
25
|
-
'@if': {
|
|
26
|
-
exists: { '@path': '$.traits.name' },
|
|
27
|
-
then: { '@path': '$.traits.name' },
|
|
28
|
-
else: { '@path': '$.properties.name' }
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
first_name: {
|
|
33
|
-
type: 'string',
|
|
34
|
-
required: false,
|
|
35
|
-
allowNull: true,
|
|
36
|
-
description: "The user's first name. This field is mandatory if you're not providing a name field",
|
|
37
|
-
label: 'First name',
|
|
38
|
-
default: {
|
|
39
|
-
'@if': {
|
|
40
|
-
exists: { '@path': '$.traits.first_name' },
|
|
41
|
-
then: { '@path': '$.traits.first_name' },
|
|
42
|
-
else: { '@path': '$.properties.first_name' }
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
last_name: {
|
|
47
|
-
type: 'string',
|
|
48
|
-
required: false,
|
|
49
|
-
allowNull: true,
|
|
50
|
-
description: "The user's last name. This field is mandatory if you're not providing a name field",
|
|
51
|
-
label: 'Last name',
|
|
52
|
-
default: {
|
|
53
|
-
'@if': {
|
|
54
|
-
exists: { '@path': '$.traits.last_name' },
|
|
55
|
-
then: { '@path': '$.traits.last_name' },
|
|
56
|
-
else: { '@path': '$.properties.last_name' }
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
email: {
|
|
61
|
-
type: 'string',
|
|
62
|
-
required: false,
|
|
63
|
-
description: "The user's email address",
|
|
64
|
-
label: 'Email address',
|
|
65
|
-
default: {
|
|
66
|
-
'@if': {
|
|
67
|
-
exists: { '@path': '$.traits.email' },
|
|
68
|
-
then: { '@path': '$.traits.email' },
|
|
69
|
-
else: { '@path': '$.properties.email' }
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
account_id: {
|
|
74
|
-
type: 'string',
|
|
75
|
-
required: false,
|
|
76
|
-
description: 'The account id, to uniquely identify the account associated with the user',
|
|
77
|
-
label: 'Account id',
|
|
78
|
-
default: {
|
|
79
|
-
'@if': {
|
|
80
|
-
exists: { '@path': '$.context.group_id' },
|
|
81
|
-
then: { '@path': '$.context.group_id' },
|
|
82
|
-
else: { '@path': '$.groupId' }
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
created_at: {
|
|
87
|
-
type: 'string',
|
|
88
|
-
required: false,
|
|
89
|
-
description: 'The timestamp when the user was created, represented in the ISO-8601 date format. For instance, "2023-09-26T15:30:00Z".',
|
|
90
|
-
label: 'Created at',
|
|
91
|
-
format: 'date-time',
|
|
92
|
-
default: {
|
|
93
|
-
'@if': {
|
|
94
|
-
exists: { '@path': '$.traits.created_at' },
|
|
95
|
-
then: { '@path': '$.traits.created_at' },
|
|
96
|
-
else: { '@path': '$.traits.createdAt' }
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
traits: {
|
|
101
|
-
type: 'object',
|
|
102
|
-
label: 'Traits',
|
|
103
|
-
description: 'Properties to associate with the user',
|
|
104
|
-
required: false,
|
|
105
|
-
default: { '@path': '$.traits' }
|
|
106
|
-
},
|
|
107
|
-
...common_fields_1.commonFields
|
|
108
|
-
},
|
|
109
|
-
perform: (request, data) => {
|
|
110
|
-
return request(`${contants_1.IntegrationBaseUrl}/events/track`, {
|
|
111
|
-
method: 'post',
|
|
112
|
-
headers: {
|
|
113
|
-
Authorization: `Basic ${data.settings.apiKey}`
|
|
114
|
-
},
|
|
115
|
-
json: { ...data.payload, apiKey: data.settings.apiKey }
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
exports.default = action;
|
|
120
|
-
//# sourceMappingURL=index.js.map
|