@segment/action-destinations 3.236.0 → 3.238.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/acoustic-s3tc/receiveEvents/eventprocessing.js +6 -2
- package/dist/destinations/acoustic-s3tc/receiveEvents/eventprocessing.js.map +1 -1
- package/dist/destinations/acoustic-s3tc/receiveEvents/preCheck.js +7 -1
- package/dist/destinations/acoustic-s3tc/receiveEvents/preCheck.js.map +1 -1
- package/dist/destinations/airship/registerAndAssociate/generated-types.d.ts +3 -0
- package/dist/destinations/airship/registerAndAssociate/index.js +35 -7
- package/dist/destinations/airship/registerAndAssociate/index.js.map +1 -1
- package/dist/destinations/airship/utilities.d.ts +3 -1
- package/dist/destinations/airship/utilities.js +76 -41
- package/dist/destinations/airship/utilities.js.map +1 -1
- package/dist/destinations/algolia-insights/conversionEvents/index.js +5 -1
- package/dist/destinations/algolia-insights/conversionEvents/index.js.map +1 -1
- package/dist/destinations/algolia-insights/index.js +7 -0
- package/dist/destinations/algolia-insights/index.js.map +1 -1
- package/dist/destinations/algolia-insights/productAddedEvents/index.js +5 -1
- package/dist/destinations/algolia-insights/productAddedEvents/index.js.map +1 -1
- package/dist/destinations/algolia-insights/productClickedEvents/index.js +5 -1
- package/dist/destinations/algolia-insights/productClickedEvents/index.js.map +1 -1
- package/dist/destinations/algolia-insights/productListFilteredEvents/index.js +5 -1
- package/dist/destinations/algolia-insights/productListFilteredEvents/index.js.map +1 -1
- package/dist/destinations/algolia-insights/productViewedEvents/index.js +5 -1
- package/dist/destinations/algolia-insights/productViewedEvents/index.js.map +1 -1
- package/dist/destinations/braze/index.js +12 -0
- package/dist/destinations/braze/index.js.map +1 -1
- package/dist/destinations/criteo-audiences/addUserToAudience/index.js +3 -3
- package/dist/destinations/criteo-audiences/addUserToAudience/index.js.map +1 -1
- package/dist/destinations/criteo-audiences/criteo-audiences.d.ts +5 -6
- package/dist/destinations/criteo-audiences/criteo-audiences.js +73 -54
- package/dist/destinations/criteo-audiences/criteo-audiences.js.map +1 -1
- package/dist/destinations/criteo-audiences/removeUserFromAudience/index.js +3 -3
- package/dist/destinations/criteo-audiences/removeUserFromAudience/index.js.map +1 -1
- package/dist/destinations/linkedin-audiences/constants.d.ts +1 -1
- package/dist/destinations/linkedin-audiences/constants.js +1 -1
- package/dist/destinations/linkedin-conversions/index.js +4 -1
- package/dist/destinations/linkedin-conversions/index.js.map +1 -1
- package/dist/destinations/marketo-static-lists/functions.js +1 -1
- package/dist/destinations/marketo-static-lists/functions.js.map +1 -1
- package/dist/destinations/mixpanel/incrementProperties/__test__/index.test.d.ts +1 -0
- package/dist/destinations/mixpanel/incrementProperties/__test__/index.test.js +129 -0
- package/dist/destinations/mixpanel/incrementProperties/__test__/index.test.js.map +1 -0
- package/dist/destinations/mixpanel/incrementProperties/__test__/snapshot.test.d.ts +1 -0
- package/dist/destinations/mixpanel/incrementProperties/__test__/snapshot.test.js +69 -0
- package/dist/destinations/mixpanel/incrementProperties/__test__/snapshot.test.js.map +1 -0
- package/dist/destinations/mixpanel/incrementProperties/generated-types.d.ts +8 -0
- package/dist/destinations/mixpanel/incrementProperties/generated-types.js +3 -0
- package/dist/destinations/mixpanel/incrementProperties/generated-types.js.map +1 -0
- package/dist/destinations/mixpanel/incrementProperties/index.d.ts +5 -0
- package/dist/destinations/mixpanel/incrementProperties/index.js +84 -0
- package/dist/destinations/mixpanel/incrementProperties/index.js.map +1 -0
- package/dist/destinations/mixpanel/index.js +3 -1
- package/dist/destinations/mixpanel/index.js.map +1 -1
- package/dist/destinations/mixpanel/mixpanel-types.d.ts +4 -0
- package/dist/destinations/segment-profiles/generated-types.d.ts +0 -1
- package/dist/destinations/segment-profiles/index.js +0 -18
- package/dist/destinations/segment-profiles/index.js.map +1 -1
- package/dist/destinations/segment-profiles/sendGroup/index.js +5 -20
- package/dist/destinations/segment-profiles/sendGroup/index.js.map +1 -1
- package/dist/destinations/segment-profiles/sendIdentify/index.js +5 -20
- package/dist/destinations/segment-profiles/sendIdentify/index.js.map +1 -1
- package/dist/destinations/segment-profiles/sendSubscription/index.js +5 -21
- package/dist/destinations/segment-profiles/sendSubscription/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/mixpanel/incrementProperties/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const actions_core_1 = require("@segment/actions-core");
|
|
4
|
+
const utils_1 = require("../common/utils");
|
|
5
|
+
const action = {
|
|
6
|
+
title: 'Increment Properties',
|
|
7
|
+
description: 'Increment the value of a user profile property. [Learn More](https://developer.mixpanel.com/reference/profile-numerical-add).',
|
|
8
|
+
defaultSubscription: 'type = "track"',
|
|
9
|
+
fields: {
|
|
10
|
+
ip: {
|
|
11
|
+
label: 'IP Address',
|
|
12
|
+
type: 'string',
|
|
13
|
+
description: "The IP address of the user. This is only used for geolocation and won't be stored.",
|
|
14
|
+
default: {
|
|
15
|
+
'@path': '$.context.ip'
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
user_id: {
|
|
19
|
+
label: 'User ID',
|
|
20
|
+
type: 'string',
|
|
21
|
+
allowNull: true,
|
|
22
|
+
description: 'The unique user identifier set by you',
|
|
23
|
+
default: {
|
|
24
|
+
'@path': '$.userId'
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
anonymous_id: {
|
|
28
|
+
label: 'Anonymous ID',
|
|
29
|
+
type: 'string',
|
|
30
|
+
allowNull: true,
|
|
31
|
+
description: 'The generated anonymous ID for the user',
|
|
32
|
+
default: {
|
|
33
|
+
'@path': '$.anonymousId'
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
increment: {
|
|
37
|
+
label: 'Increment Numerical Properties',
|
|
38
|
+
type: 'object',
|
|
39
|
+
description: 'Object of properties and the values to increment or decrement. For example: `{"purchases": 1, "items": 6}}.',
|
|
40
|
+
multiple: false,
|
|
41
|
+
required: true,
|
|
42
|
+
defaultObjectUI: 'keyvalue',
|
|
43
|
+
default: {
|
|
44
|
+
'@path': '$.properties.increment'
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
perform: async (request, { payload, settings }) => {
|
|
49
|
+
if (!settings.projectToken) {
|
|
50
|
+
throw new actions_core_1.IntegrationError('Missing project token', 'Missing required field', 400);
|
|
51
|
+
}
|
|
52
|
+
const apiServerUrl = utils_1.getApiServerUrl(settings.apiRegion);
|
|
53
|
+
const responses = [];
|
|
54
|
+
if (payload.increment && Object.keys(payload.increment).length > 0) {
|
|
55
|
+
const keys = Object.keys(payload.increment);
|
|
56
|
+
if (keys.length > 20) {
|
|
57
|
+
throw new actions_core_1.PayloadValidationError('Exceeded maximum of 20 properties for increment call');
|
|
58
|
+
}
|
|
59
|
+
const data = {
|
|
60
|
+
$token: settings.projectToken,
|
|
61
|
+
$distinct_id: payload.user_id ?? payload.anonymous_id,
|
|
62
|
+
$ip: payload.ip
|
|
63
|
+
};
|
|
64
|
+
data.$add = {};
|
|
65
|
+
for (const key of keys) {
|
|
66
|
+
const value = payload.increment[key];
|
|
67
|
+
if (typeof value === 'string' || typeof value === 'number') {
|
|
68
|
+
if (isNaN(+value)) {
|
|
69
|
+
throw new actions_core_1.IntegrationError(`The key "${key}" was not numeric`, 'Non numeric increment value', 400);
|
|
70
|
+
}
|
|
71
|
+
data.$add[key] = +value;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
const response = request(`${apiServerUrl}/engage`, {
|
|
75
|
+
method: 'post',
|
|
76
|
+
body: new URLSearchParams({ data: JSON.stringify(data) })
|
|
77
|
+
});
|
|
78
|
+
responses.push(response);
|
|
79
|
+
}
|
|
80
|
+
return Promise.all(responses);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
exports.default = action;
|
|
84
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/mixpanel/incrementProperties/index.ts"],"names":[],"mappings":";;AAAA,wDAAkG;AAGlG,2CAAiD;AAGjD,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,sBAAsB;IAC7B,WAAW,EACT,+HAA+H;IACjI,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,EAAE,EAAE;YACF,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,oFAAoF;YACjG,OAAO,EAAE;gBACP,OAAO,EAAE,cAAc;aACxB;SACF;QACD,OAAO,EAAE;YACP,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,IAAI;YACf,WAAW,EAAE,uCAAuC;YACpD,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,YAAY,EAAE;YACZ,KAAK,EAAE,cAAc;YACrB,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,IAAI;YACf,WAAW,EAAE,yCAAyC;YACtD,OAAO,EAAE;gBACP,OAAO,EAAE,eAAe;aACzB;SACF;QACD,SAAS,EAAE;YACT,KAAK,EAAE,gCAAgC;YACvC,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,6GAA6G;YAC/G,QAAQ,EAAE,KAAK;YACf,QAAQ,EAAE,IAAI;YACd,eAAe,EAAE,UAAU;YAC3B,OAAO,EAAE;gBACP,OAAO,EAAE,wBAAwB;aAClC;SACF;KACF;IAED,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAChD,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE;YAC1B,MAAM,IAAI,+BAAgB,CAAC,uBAAuB,EAAE,wBAAwB,EAAE,GAAG,CAAC,CAAA;SACnF;QAED,MAAM,Y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AEF,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;SACzB;QAED,OAAO,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAA;IAC/B,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -7,6 +7,7 @@ const actions_core_1 = require("@segment/actions-core");
|
|
|
7
7
|
const trackEvent_1 = __importDefault(require("./trackEvent"));
|
|
8
8
|
const identifyUser_1 = __importDefault(require("./identifyUser"));
|
|
9
9
|
const groupIdentifyUser_1 = __importDefault(require("./groupIdentifyUser"));
|
|
10
|
+
const incrementProperties_1 = __importDefault(require("./incrementProperties"));
|
|
10
11
|
const alias_1 = __importDefault(require("./alias"));
|
|
11
12
|
const utils_1 = require("./common/utils");
|
|
12
13
|
const trackPurchase_1 = __importDefault(require("./trackPurchase"));
|
|
@@ -119,7 +120,8 @@ const destination = {
|
|
|
119
120
|
identifyUser: identifyUser_1.default,
|
|
120
121
|
groupIdentifyUser: groupIdentifyUser_1.default,
|
|
121
122
|
alias: alias_1.default,
|
|
122
|
-
trackPurchase: trackPurchase_1.default
|
|
123
|
+
trackPurchase: trackPurchase_1.default,
|
|
124
|
+
incrementProperties: incrementProperties_1.default
|
|
123
125
|
}
|
|
124
126
|
};
|
|
125
127
|
exports.default = destination;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/mixpanel/index.ts"],"names":[],"mappings":";;;;;AACA,wDAAqD;AACrD,8DAAqC;AAGrC,kEAAyC;AACzC,4EAAmD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/mixpanel/index.ts"],"names":[],"mappings":";;;;;AACA,wDAAqD;AACrD,8DAAqC;AAGrC,kEAAyC;AACzC,4EAAmD;AACnD,gFAAuD;AAEvD,oDAA2B;AAC3B,0CAAuD;AAEvD,oEAA2C;AAG3C,MAAM,OAAO,GAAqC;IAChD;QACE,IAAI,EAAE,aAAa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,EAAE,QAAQ,CAAC,SAAS;oBAC9B,aAAa,EAAE,QAAQ,CAAC,YAAY;iBACrC,CAAC;aACH,CAAC,CAAA;QACJ,CAAC;KACF;IACD,OAAO;IACP,OAAO,EAAE;QACP,UAAU,EAAV,oBAAU;QACV,YAAY,EAAZ,sBAAY;QACZ,iBAAiB,EAAjB,2BAAiB;QACjB,KAAK,EAAL,eAAK;QACL,aAAa,EAAb,uBAAa;QACb,mBAAmB,EAAnB,6BAAmB;KACpB;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -81,4 +81,8 @@ export declare type MixpanelEngageProperties = {
|
|
|
81
81
|
$distinct_id?: string | null;
|
|
82
82
|
$ip?: string;
|
|
83
83
|
$set?: MixpanelEngageSet;
|
|
84
|
+
$add?: MixpanelIncrementPropertiesObject;
|
|
85
|
+
};
|
|
86
|
+
export declare type MixpanelIncrementPropertiesObject = {
|
|
87
|
+
[key: string]: number;
|
|
84
88
|
};
|
|
@@ -3,7 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const properties_1 = require("./properties");
|
|
7
6
|
const sendGroup_1 = __importDefault(require("./sendGroup"));
|
|
8
7
|
const sendIdentify_1 = __importDefault(require("./sendIdentify"));
|
|
9
8
|
const sendSubscription_1 = __importDefault(require("./sendSubscription"));
|
|
@@ -11,23 +10,6 @@ const destination = {
|
|
|
11
10
|
name: 'Segment Profiles',
|
|
12
11
|
slug: 'actions-segment-profiles',
|
|
13
12
|
mode: 'cloud',
|
|
14
|
-
authentication: {
|
|
15
|
-
scheme: 'custom',
|
|
16
|
-
fields: {
|
|
17
|
-
endpoint: {
|
|
18
|
-
label: 'Endpoint Region',
|
|
19
|
-
description: 'The region to send your data.',
|
|
20
|
-
type: 'string',
|
|
21
|
-
format: 'text',
|
|
22
|
-
choices: Object.keys(properties_1.SEGMENT_ENDPOINTS).map((key) => ({
|
|
23
|
-
label: properties_1.SEGMENT_ENDPOINTS[key].label,
|
|
24
|
-
value: key
|
|
25
|
-
})),
|
|
26
|
-
default: properties_1.DEFAULT_SEGMENT_ENDPOINT,
|
|
27
|
-
required: true
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
13
|
actions: {
|
|
32
14
|
sendGroup: sendGroup_1.default,
|
|
33
15
|
sendIdentify: sendIdentify_1.default,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/segment-profiles/index.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/segment-profiles/index.ts"],"names":[],"mappings":";;;;;AAGA,4DAAmC;AAEnC,kEAAyC;AAEzC,0EAAiD;AAEjD,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE,OAAO;IACb,OAAO,EAAE;QACP,SAAS,EAAT,mBAAS;QACT,YAAY,EAAZ,sBAAY;QACZ,gBAAgB,EAAhB,0BAAgB;KACjB;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const segment_properties_1 = require("../segment-properties");
|
|
4
|
-
const helperFunctions_1 = require("../helperFunctions");
|
|
5
|
-
const properties_1 = require("../properties");
|
|
6
4
|
const errors_1 = require("../errors");
|
|
7
5
|
const action = {
|
|
8
6
|
title: 'Send Group',
|
|
@@ -16,7 +14,7 @@ const action = {
|
|
|
16
14
|
traits: segment_properties_1.traits,
|
|
17
15
|
timestamp: segment_properties_1.timestamp
|
|
18
16
|
},
|
|
19
|
-
perform: (
|
|
17
|
+
perform: (_request, { payload, statsContext }) => {
|
|
20
18
|
if (!payload.anonymous_id && !payload.user_id) {
|
|
21
19
|
throw errors_1.MissingUserOrAnonymousIdThrowableError;
|
|
22
20
|
}
|
|
@@ -30,24 +28,11 @@ const action = {
|
|
|
30
28
|
timestamp: payload?.timestamp,
|
|
31
29
|
integrations: {
|
|
32
30
|
All: false
|
|
33
|
-
}
|
|
31
|
+
},
|
|
32
|
+
type: 'group'
|
|
34
33
|
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
if (features && features['actions-segment-profiles-tapi-internal-enabled']) {
|
|
39
|
-
statsContext?.statsClient?.incr('tapi_internal', 1, [...statsContext.tags, `action:sendGroup`]);
|
|
40
|
-
const payload = { ...groupPayload, type: 'group' };
|
|
41
|
-
return { batch: [payload] };
|
|
42
|
-
}
|
|
43
|
-
const selectedSegmentEndpoint = properties_1.SEGMENT_ENDPOINTS[settings.endpoint].url;
|
|
44
|
-
return request(`${selectedSegmentEndpoint}/group`, {
|
|
45
|
-
method: 'POST',
|
|
46
|
-
json: groupPayload,
|
|
47
|
-
headers: {
|
|
48
|
-
authorization: helperFunctions_1.generateSegmentAPIAuthHeaders(payload.engage_space)
|
|
49
|
-
}
|
|
50
|
-
});
|
|
34
|
+
statsContext?.statsClient?.incr('tapi_internal', 1, [...statsContext.tags, `action:sendGroup`]);
|
|
35
|
+
return { batch: [groupPayload] };
|
|
51
36
|
}
|
|
52
37
|
};
|
|
53
38
|
exports.default = action;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment-profiles/sendGroup/index.ts"],"names":[],"mappings":";;AAGA,8DAAwG;AACxG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment-profiles/sendGroup/index.ts"],"names":[],"mappings":";;AAGA,8DAAwG;AACxG,sCAAkE;AAElE,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,wGAAwG;IACrH,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,YAAY,EAAZ,iCAAY;QACZ,OAAO,EAAP,4BAAO;QACP,YAAY,EAAZ,iCAAY;QACZ,QAAQ,EAAE,EAAE,GAAG,6BAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QACzC,MAAM,EAAN,2BAAM;QACN,SAAS,EAAT,8BAAS;KACV;IACD,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE;QAC/C,IAAI,CAAC,OAAO,CAAC,YAAY,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;YAC7C,MAAM,+CAAsC,CAAA;SAC7C;QACD,MAAM,YAAY,GAAW;YAC3B,MAAM,EAAE,OAAO,EAAE,OAAO;YACxB,WAAW,EAAE,OAAO,EAAE,YAAY;YAClC,OAAO,EAAE,OAAO,EAAE,QAAQ;YAC1B,MAAM,EAAE;gBACN,GAAG,OAAO,EAAE,MAAM;aACnB;YACD,SAAS,EAAE,OAAO,EAAE,SAAS;YAC7B,YAAY,EAAE;gBAGZ,GAAG,EAAE,KAAK;aACX;YACD,IAAI,EAAE,OAAO;SACd,CAAA;QAED,YAAY,EAAE,WAAW,EAAE,IAAI,CAAC,eAAe,EAAE,CAAC,EAAE,CAAC,GAAG,YAAY,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC,CAAA;QAC/F,OAAO,EAAE,KAAK,EAAE,CAAC,YAAY,CAAC,EAAE,CAAA;IAClC,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const segment_properties_1 = require("../segment-properties");
|
|
4
|
-
const helperFunctions_1 = require("../helperFunctions");
|
|
5
|
-
const properties_1 = require("../properties");
|
|
6
4
|
const errors_1 = require("../errors");
|
|
7
5
|
const action = {
|
|
8
6
|
title: 'Send Identify',
|
|
@@ -16,7 +14,7 @@ const action = {
|
|
|
16
14
|
traits: segment_properties_1.traits,
|
|
17
15
|
timestamp: segment_properties_1.timestamp
|
|
18
16
|
},
|
|
19
|
-
perform: (
|
|
17
|
+
perform: (_request, { payload, statsContext }) => {
|
|
20
18
|
if (!payload.anonymous_id && !payload.user_id) {
|
|
21
19
|
throw errors_1.MissingUserOrAnonymousIdThrowableError;
|
|
22
20
|
}
|
|
@@ -30,24 +28,11 @@ const action = {
|
|
|
30
28
|
timestamp: payload?.timestamp,
|
|
31
29
|
integrations: {
|
|
32
30
|
All: false
|
|
33
|
-
}
|
|
31
|
+
},
|
|
32
|
+
type: 'identify'
|
|
34
33
|
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
if (features && features['actions-segment-profiles-tapi-internal-enabled']) {
|
|
39
|
-
statsContext?.statsClient?.incr('tapi_internal', 1, [...statsContext.tags, `action:sendIdentify`]);
|
|
40
|
-
const payload = { ...identityPayload, type: 'identify' };
|
|
41
|
-
return { batch: [payload] };
|
|
42
|
-
}
|
|
43
|
-
const selectedSegmentEndpoint = properties_1.SEGMENT_ENDPOINTS[settings.endpoint].url;
|
|
44
|
-
return request(`${selectedSegmentEndpoint}/identify`, {
|
|
45
|
-
method: 'POST',
|
|
46
|
-
json: identityPayload,
|
|
47
|
-
headers: {
|
|
48
|
-
authorization: helperFunctions_1.generateSegmentAPIAuthHeaders(payload.engage_space)
|
|
49
|
-
}
|
|
50
|
-
});
|
|
34
|
+
statsContext?.statsClient?.incr('tapi_internal', 1, [...statsContext.tags, `action:sendIdentify`]);
|
|
35
|
+
return { batch: [identityPayload] };
|
|
51
36
|
}
|
|
52
37
|
};
|
|
53
38
|
exports.default = action;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment-profiles/sendIdentify/index.ts"],"names":[],"mappings":";;AAGA,8DAAwG;AACxG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment-profiles/sendIdentify/index.ts"],"names":[],"mappings":";;AAGA,8DAAwG;AACxG,sCAAkE;AAElE,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EACT,gIAAgI;IAClI,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,YAAY,EAAZ,iCAAY;QACZ,OAAO,EAAP,4BAAO;QACP,YAAY,EAAZ,iCAAY;QACZ,QAAQ,EAAR,6BAAQ;QACR,MAAM,EAAN,2BAAM;QACN,SAAS,EAAT,8BAAS;KACV;IACD,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE;QAC/C,IAAI,CAAC,OAAO,CAAC,YAAY,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;YAC7C,MAAM,+CAAsC,CAAA;SAC7C;QACD,MAAM,eAAe,GAAW;YAC9B,MAAM,EAAE,OAAO,EAAE,OAAO;YACxB,WAAW,EAAE,OAAO,EAAE,YAAY;YAClC,OAAO,EAAE,OAAO,EAAE,QAAQ;YAC1B,MAAM,EAAE;gBACN,GAAG,OAAO,EAAE,MAAM;aACnB;YACD,SAAS,EAAE,OAAO,EAAE,SAAS;YAC7B,YAAY,EAAE;gBAGZ,GAAG,EAAE,KAAK;aACX;YACD,IAAI,EAAE,UAAU;SACjB,CAAA;QAED,YAAY,EAAE,WAAW,EAAE,IAAI,CAAC,eAAe,EAAE,CAAC,EAAE,CAAC,GAAG,YAAY,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC,CAAA;QAClG,OAAO,EAAE,KAAK,EAAE,CAAC,eAAe,CAAC,EAAE,CAAA;IACrC,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const subscription_properties_1 = require("./subscription-properties");
|
|
4
4
|
const errors_1 = require("../errors");
|
|
5
|
-
const helperFunctions_1 = require("../helperFunctions");
|
|
6
|
-
const properties_1 = require("../properties");
|
|
7
5
|
const segment_properties_1 = require("../segment-properties");
|
|
8
6
|
const subscriptionStatusConfig = [
|
|
9
7
|
{ status: 'SUBSCRIBED', matchingStatuses: ['true', 'subscribed'] },
|
|
@@ -180,14 +178,10 @@ const action = {
|
|
|
180
178
|
traits: subscription_properties_1.traits,
|
|
181
179
|
timestamp: segment_properties_1.timestamp
|
|
182
180
|
},
|
|
183
|
-
perform: (
|
|
181
|
+
perform: (_request, { payload, statsContext }) => {
|
|
184
182
|
const statsClient = statsContext?.statsClient;
|
|
185
183
|
const tags = statsContext?.tags;
|
|
186
184
|
tags?.push(`action:sendSubscription`);
|
|
187
|
-
if (!settings.endpoint || !(settings.endpoint in properties_1.SEGMENT_ENDPOINTS)) {
|
|
188
|
-
statsClient?.incr('invalid_endpoint', 1, tags);
|
|
189
|
-
throw errors_1.InvalidEndpointSelectedThrowableError;
|
|
190
|
-
}
|
|
191
185
|
validateSubscriptions(payload, statsClient, tags);
|
|
192
186
|
const externalIds = enrichExternalIds(payload, []);
|
|
193
187
|
const messagingSubscriptions = enrichMessagingSubscriptions(payload, []);
|
|
@@ -205,22 +199,12 @@ const action = {
|
|
|
205
199
|
timestamp: payload?.timestamp,
|
|
206
200
|
integrations: {
|
|
207
201
|
All: false
|
|
208
|
-
}
|
|
202
|
+
},
|
|
203
|
+
type: 'identify'
|
|
209
204
|
};
|
|
210
205
|
statsClient?.incr('success', 1, tags);
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
const payload = { ...subscriptionPayload, type: 'identify' };
|
|
214
|
-
return { batch: [payload] };
|
|
215
|
-
}
|
|
216
|
-
const selectedSegmentEndpoint = properties_1.SEGMENT_ENDPOINTS[settings.endpoint].url;
|
|
217
|
-
return request(`${selectedSegmentEndpoint}/identify`, {
|
|
218
|
-
method: 'POST',
|
|
219
|
-
json: subscriptionPayload,
|
|
220
|
-
headers: {
|
|
221
|
-
authorization: helperFunctions_1.generateSegmentAPIAuthHeaders(payload.engage_space)
|
|
222
|
-
}
|
|
223
|
-
});
|
|
206
|
+
statsClient?.incr('tapi_internal', 1, tags);
|
|
207
|
+
return { batch: [subscriptionPayload] };
|
|
224
208
|
}
|
|
225
209
|
};
|
|
226
210
|
exports.default = action;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment-profiles/sendSubscription/index.ts"],"names":[],"mappings":";;AAGA,uEAekC;AAClC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment-profiles/sendSubscription/index.ts"],"names":[],"mappings":";;AAGA,uEAekC;AAClC,sCASkB;AAClB,8DAAiD;AAQjD,MAAM,wBAAwB,GAA+B;IAC3D,EAAE,MAAM,EAAE,YAAY,EAAE,gBAAgB,EAAE,CAAC,MAAM,EAAE,YAAY,CAAC,EAAE;IAClE,EAAE,MAAM,EAAE,cAAc,EAAE,gBAAgB,EAAE,CAAC,OAAO,EAAE,cAAc,CAAC,EAAE;IACvE,EAAE,MAAM,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,EAAE;CAC9F,CAAA;AAUD,MAAM,iBAAiB,GAA8B;IACnD;QACE,KAAK,EAAE,OAAO;QACd,UAAU,EAAE,OAAO;QACnB,kBAAkB,EAAE,CAAC,2BAA2B,CAAC;QACjD,QAAQ,EAAE,CAAC,OAAO,CAAC;QACnB,MAAM,EAAE,IAAI;KACb;IACD;QACE,KAAK,EAAE,OAAO;QACd,UAAU,EAAE,OAAO;QACnB,kBAAkB,EAAE,CAAC,yBAAyB,EAAE,8BAA8B,CAAC;QAC/E,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC;QAC7B,MAAM,EAAE,KAAK;KACd;IACD;QACE,KAAK,EAAE,oBAAoB;QAC3B,UAAU,E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,WAAW,GAAgB,iBAAiB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAA;QAE/D,MAAM,sBAAsB,GAA4B,4BAA4B,CAAC,OAAO,EAAE,EAAE,CAAC,CAAA;QACjG,MAAM,mBAAmB,GAAW;YAClC,MAAM,EAAE,OAAO,EAAE,OAAO;YACxB,WAAW,EAAE,OAAO,EAAE,YAAY;YAClC,MAAM,EAAE;gBACN,GAAG,OAAO,EAAE,MAAM;aACnB;YACD,OAAO,EAAE;gBACP,uBAAuB,EAAE,sBAAsB;gBAC/C,WAAW;gBACX,4BAA4B,EAAE,IAAI;aACnC;YACD,SAAS,EAAE,OAAO,EAAE,SAAS;YAC7B,YAAY,EAAE;gBAGZ,GAAG,EAAE,KAAK;aACX;YACD,IAAI,EAAE,UAAU;SACjB,CAAA;QAED,WAAW,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,EAAE,IAAI,CAAC,CAAA;QACrC,WAAW,EAAE,IAAI,CAAC,eAAe,EAAE,CAAC,EAAE,IAAI,CAAC,CAAA;QAC3C,OAAO,EAAE,KAAK,EAAE,CAAC,mBAAmB,CAAC,EAAE,CAAA;IACzC,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@segment/action-destinations",
|
|
3
3
|
"description": "Destination Actions engine and definitions.",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.238.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": "^3.
|
|
47
|
-
"@segment/actions-shared": "^1.
|
|
46
|
+
"@segment/actions-core": "^3.93.0",
|
|
47
|
+
"@segment/actions-shared": "^1.74.0",
|
|
48
48
|
"@types/node": "^18.11.15",
|
|
49
49
|
"ajv-formats": "^2.1.1",
|
|
50
50
|
"aws4": "^1.12.0",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"__tests__/__helpers__/"
|
|
86
86
|
]
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "fdeb748994a56b14d1865f09c54b421e7e1543d5"
|
|
89
89
|
}
|