@segment/action-destinations 3.31.0 → 3.33.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/amplitude/generated-types.d.ts +1 -0
- package/dist/destinations/amplitude/groupIdentifyUser/index.js +3 -2
- package/dist/destinations/amplitude/groupIdentifyUser/index.js.map +1 -1
- package/dist/destinations/amplitude/identifyUser/index.js +2 -1
- package/dist/destinations/amplitude/identifyUser/index.js.map +1 -1
- package/dist/destinations/amplitude/index.js +21 -2
- package/dist/destinations/amplitude/index.js.map +1 -1
- package/dist/destinations/amplitude/logEvent/index.js +2 -3
- package/dist/destinations/amplitude/logEvent/index.js.map +1 -1
- package/dist/destinations/amplitude/mapUser/index.js +2 -1
- package/dist/destinations/amplitude/mapUser/index.js.map +1 -1
- package/dist/destinations/amplitude/regional-endpoints.d.ts +32 -0
- package/dist/destinations/amplitude/regional-endpoints.js +39 -0
- package/dist/destinations/amplitude/regional-endpoints.js.map +1 -0
- package/dist/destinations/customerio/createUpdatePerson/index.js +11 -8
- package/dist/destinations/customerio/createUpdatePerson/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/addPaymentInfo/generated-types.d.ts +1 -1
- package/dist/destinations/google-analytics-4/addPaymentInfo/index.js +8 -138
- package/dist/destinations/google-analytics-4/addPaymentInfo/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/addToCart/generated-types.d.ts +1 -1
- package/dist/destinations/google-analytics-4/addToCart/index.js +6 -127
- package/dist/destinations/google-analytics-4/addToCart/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/addToWishlist/generated-types.d.ts +1 -1
- package/dist/destinations/google-analytics-4/addToWishlist/index.js +6 -125
- package/dist/destinations/google-analytics-4/addToWishlist/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/beginCheckout/generated-types.d.ts +1 -1
- package/dist/destinations/google-analytics-4/beginCheckout/index.js +7 -138
- package/dist/destinations/google-analytics-4/beginCheckout/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/customEvent/index.js +6 -14
- package/dist/destinations/google-analytics-4/customEvent/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/ga4-properties.d.ts +17 -0
- package/dist/destinations/google-analytics-4/ga4-properties.js +276 -0
- package/dist/destinations/google-analytics-4/ga4-properties.js.map +1 -0
- package/dist/destinations/google-analytics-4/generateLead/index.js +4 -23
- package/dist/destinations/google-analytics-4/generateLead/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/login/index.js +2 -13
- package/dist/destinations/google-analytics-4/login/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/pageView/index.js +2 -13
- package/dist/destinations/google-analytics-4/pageView/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/purchase/generated-types.d.ts +1 -1
- package/dist/destinations/google-analytics-4/purchase/index.js +11 -172
- package/dist/destinations/google-analytics-4/purchase/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/refund/index.js +9 -148
- package/dist/destinations/google-analytics-4/refund/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/removeFromCart/index.js +6 -125
- package/dist/destinations/google-analytics-4/removeFromCart/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/search/index.js +2 -13
- package/dist/destinations/google-analytics-4/search/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/selectItem/generated-types.d.ts +1 -1
- package/dist/destinations/google-analytics-4/selectItem/index.js +4 -114
- package/dist/destinations/google-analytics-4/selectItem/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/selectPromotion/generated-types.d.ts +4 -4
- package/dist/destinations/google-analytics-4/selectPromotion/index.js +13 -145
- package/dist/destinations/google-analytics-4/selectPromotion/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/signUp/index.js +2 -13
- package/dist/destinations/google-analytics-4/signUp/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewCart/index.js +6 -125
- package/dist/destinations/google-analytics-4/viewCart/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewItem/generated-types.d.ts +1 -1
- package/dist/destinations/google-analytics-4/viewItem/index.js +6 -130
- package/dist/destinations/google-analytics-4/viewItem/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewItemList/index.js +4 -115
- package/dist/destinations/google-analytics-4/viewItemList/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewPromotion/generated-types.d.ts +4 -4
- package/dist/destinations/google-analytics-4/viewPromotion/index.js +13 -154
- package/dist/destinations/google-analytics-4/viewPromotion/index.js.map +1 -1
- package/dist/destinations/mixpanel/alias/generated-types.d.ts +1 -1
- package/dist/destinations/mixpanel/alias/index.js +6 -6
- package/dist/destinations/mixpanel/alias/index.js.map +1 -1
- package/dist/destinations/mixpanel/groupIdentifyUser/generated-types.d.ts +1 -0
- package/dist/destinations/mixpanel/groupIdentifyUser/index.js +14 -9
- package/dist/destinations/mixpanel/groupIdentifyUser/index.js.map +1 -1
- package/dist/destinations/mixpanel/identifyUser/generated-types.d.ts +1 -0
- package/dist/destinations/mixpanel/identifyUser/index.js +43 -10
- package/dist/destinations/mixpanel/identifyUser/index.js.map +1 -1
- package/dist/destinations/mixpanel/trackEvent/generated-types.d.ts +1 -0
- package/dist/destinations/mixpanel/trackEvent/index.js +9 -0
- package/dist/destinations/mixpanel/trackEvent/index.js.map +1 -1
- package/dist/destinations/mixpanel/trackEvent/types.d.ts +1 -0
- package/package.json +2 -2
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const dayjs_1 = __importDefault(require("../../../lib/dayjs"));
|
|
7
|
+
const regional_endpoints_1 = require("../regional-endpoints");
|
|
7
8
|
const action = {
|
|
8
9
|
title: 'Group Identify User',
|
|
9
10
|
description: 'Set or update properties of particular groups. Note that these updates will only affect events going forward.',
|
|
@@ -77,7 +78,7 @@ const action = {
|
|
|
77
78
|
if (min_id_length && min_id_length > 0) {
|
|
78
79
|
options = JSON.stringify({ min_id_length });
|
|
79
80
|
}
|
|
80
|
-
await request('
|
|
81
|
+
await request(regional_endpoints_1.getEndpointByRegion('identify', settings.endpoint), {
|
|
81
82
|
method: 'post',
|
|
82
83
|
body: new URLSearchParams({
|
|
83
84
|
api_key: settings.apiKey,
|
|
@@ -95,7 +96,7 @@ const action = {
|
|
|
95
96
|
options
|
|
96
97
|
})
|
|
97
98
|
});
|
|
98
|
-
return request('
|
|
99
|
+
return request(regional_endpoints_1.getEndpointByRegion('groupidentify', settings.endpoint), {
|
|
99
100
|
method: 'post',
|
|
100
101
|
body: new URLSearchParams({
|
|
101
102
|
api_key: settings.apiKey,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/amplitude/groupIdentifyUser/index.ts"],"names":[],"mappings":";;;;;AAGA,+DAAsC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/amplitude/groupIdentifyUser/index.ts"],"names":[],"mappings":";;;;;AAGA,+DAAsC;AACtC,8DAA2D;AAE3D,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EACT,+GAA+G;IACjH,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,OAAO,EAAE;YACP,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,IAAI;YACf,WAAW,EACT,uPAAuP;YACzP,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,SAAS,EAAE;YACT,KAAK,EAAE,WAAW;YAClB,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,oHAAoH;YACtH,OAAO,EAAE;gBACP,KAAK,EAAE;oBACL,MAAM,EAAE,EAAE,OAAO,EAAE,qBAAqB,EAAE;oBAC1C,IAAI,EAAE,EAAE,OAAO,EAAE,qBAAqB,EAAE;oBACxC,IAAI,EAAE,EAAE,OAAO,EAAE,eAAe,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,CAAC,EAAE;YAChE,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI,eAAe,CAAC;gBACxB,OAAO,EAAE,QAAQ,CAAC,MAAM;gBACxB,cAAc,EAAE,IAAI,CAAC,SAAS,CAAC;oBAC7B;wBACE,SAAS,EAAE,OAAO,CAAC,SAAS;wBAC5B,MAAM,EAAE,gBAAgB;wBACxB,SAAS,EAAE,OAAO,CAAC,SAAS;wBAC5B,OAAO,EAAE,SAAS;wBAClB,IAAI,EAAE,eAAK,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE;wBACvC,OAAO,EAAE,OAAO,CAAC,OAAO;wBACxB,eAAe,EAAE,gBAAgB;qBAClC;iBACF,CAAC;gBACF,OAAO;aACkB,CAAC;SAC7B,CAAC,CAAA;QAGF,OAAO,OAAO,CAAC,wCAAmB,CAAC,eAAe,EAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE;YACtE,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI,eAAe,CAAC;gBACxB,OAAO,EAAE,QAAQ,CAAC,MAAM;gBACxB,cAAc,EAAE,IAAI,CAAC,SAAS,CAAC;oBAC7B;wBACE,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;wBAC1C,WAAW,EAAE,OAAO,CAAC,WAAW;wBAChC,UAAU,EAAE,OAAO,CAAC,UAAU;wBAC9B,OAAO,EAAE,SAAS;qBACnB;iBACF,CAAC;gBACF,OAAO;aACkB,CAAC;SAC7B,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -5,6 +5,7 @@ const utm_1 = require("../utm");
|
|
|
5
5
|
const referrer_1 = require("../referrer");
|
|
6
6
|
const user_agent_1 = require("../user-agent");
|
|
7
7
|
const merge_user_properties_1 = require("../merge-user-properties");
|
|
8
|
+
const regional_endpoints_1 = require("../regional-endpoints");
|
|
8
9
|
const action = {
|
|
9
10
|
title: 'Identify User',
|
|
10
11
|
description: 'Set the user ID for a particular device ID or update user properties without sending an event to Amplitude.',
|
|
@@ -252,7 +253,7 @@ const action = {
|
|
|
252
253
|
...actions_core_1.removeUndefined(properties),
|
|
253
254
|
library: 'segment'
|
|
254
255
|
});
|
|
255
|
-
return request('
|
|
256
|
+
return request(regional_endpoints_1.getEndpointByRegion('identify', settings.endpoint), {
|
|
256
257
|
method: 'post',
|
|
257
258
|
body: new URLSearchParams({
|
|
258
259
|
api_key: settings.apiKey,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/amplitude/identifyUser/index.ts"],"names":[],"mappings":";;AAAA,wDAA+E;AAG/E,gCAA6C;AAC7C,0CAAqD;AACrD,8CAAwD;AACxD,oEAA8D;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/amplitude/identifyUser/index.ts"],"names":[],"mappings":";;AAAA,wDAA+E;AAG/E,gCAA6C;AAC7C,0CAAqD;AACrD,8CAAwD;AACxD,oEAA8D;AAE9D,8DAA2D;AAE3D,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EACT,6GAA6G;IAC/G,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,OAAO,EAAE;YACP,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,IAAI;YACf,WAAW,EACT,uPAAuP;YACzP,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,SAAS,EAAE;YACT,KAAK,EAAE,WAAW;YAClB,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,oHAAoH;YACtH,OAAO,EAAE;gBACP,KAAK,EAAE;oBACL,MAAM,EAAE,EAAE,OAAO,EAAE,qBAAqB,EAAE;oBAC1C,IAAI,EAAE,EAAE,OAAO,EAAE,qBAAqB,EAAE;oBACxC,IAAI,EAAE,EAAE,OAAO,EAAE,eAAe,EA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C,gBAAgB,IAAI,qCAAwB,CAAC,SAAS,CAAC,CAAC;YAE5D,GAAG,8BAAe,CAAC,UAAU,CAAC;YAC9B,OAAO,EAAE,SAAS;SACnB,CAAC,CAAA;QAEF,OAAO,OAAO,CAAC,wCAAmB,CAAC,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE;YACjE,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI,eAAe,CAAC;gBACxB,OAAO,EAAE,QAAQ,CAAC,MAAM;gBACxB,cAAc;gBACd,OAAO;aACkB,CAAC;SAC7B,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -8,6 +8,7 @@ const identifyUser_1 = __importDefault(require("./identifyUser"));
|
|
|
8
8
|
const logEvent_1 = __importDefault(require("./logEvent"));
|
|
9
9
|
const mapUser_1 = __importDefault(require("./mapUser"));
|
|
10
10
|
const groupIdentifyUser_1 = __importDefault(require("./groupIdentifyUser"));
|
|
11
|
+
const regional_endpoints_1 = require("./regional-endpoints");
|
|
11
12
|
const presets = [
|
|
12
13
|
{
|
|
13
14
|
name: 'Track Calls',
|
|
@@ -67,17 +68,35 @@ const destination = {
|
|
|
67
68
|
description: 'Amplitude project secret key. You can find this key in the "General" tab of your Amplitude project.',
|
|
68
69
|
type: 'string',
|
|
69
70
|
required: true
|
|
71
|
+
},
|
|
72
|
+
endpoint: {
|
|
73
|
+
label: 'Endpoint Region',
|
|
74
|
+
description: 'The region to send your data.',
|
|
75
|
+
type: 'string',
|
|
76
|
+
format: 'text',
|
|
77
|
+
choices: [
|
|
78
|
+
{
|
|
79
|
+
label: 'North America',
|
|
80
|
+
value: 'north_america'
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
label: 'Europe',
|
|
84
|
+
value: 'europe'
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
default: 'north_america'
|
|
70
88
|
}
|
|
71
89
|
},
|
|
72
90
|
testAuthentication: (request, { settings }) => {
|
|
73
|
-
|
|
91
|
+
const endpoint = regional_endpoints_1.getEndpointByRegion('usersearch', settings.endpoint);
|
|
92
|
+
return request(`${endpoint}?user=testUser@example.com`, {
|
|
74
93
|
username: settings.apiKey,
|
|
75
94
|
password: settings.secretKey
|
|
76
95
|
});
|
|
77
96
|
}
|
|
78
97
|
},
|
|
79
98
|
onDelete: async (request, { settings, payload }) => {
|
|
80
|
-
return request('
|
|
99
|
+
return request(regional_endpoints_1.getEndpointByRegion('deletions', settings.endpoint), {
|
|
81
100
|
username: settings.apiKey,
|
|
82
101
|
password: settings.secretKey,
|
|
83
102
|
method: 'post',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/amplitude/index.ts"],"names":[],"mappings":";;;;;AACA,wDAAqD;AACrD,kEAAyC;AACzC,0DAAiC;AACjC,wDAA+B;AAC/B,4EAAmD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/amplitude/index.ts"],"names":[],"mappings":";;;;;AACA,wDAAqD;AACrD,kEAAyC;AACzC,0DAAiC;AACjC,wDAA+B;AAC/B,4EAAmD;AAEnD,6DAA0D;AAG1D,MAAM,OAAO,GAAqC;IAChD;QACE,IAAI,EAAE,aAAa;QACnB,SAAS,EAAE,gBAAgB;QAC3B,aAAa,EAAE,UAAU;QACzB,OAAO,EAAE,4BAAa,CAAC,kBAAQ,CAAC,MAAM,CAAC;KACxC;IACD;QACE,IAAI,EAAE,YAAY;QAClB,SAAS,EAAE,eAAe;QAC1B,aAAa,EAAE,UAAU;QACzB,OAAO,EAAE;YACP,GAAG,4BAAa,CAAC,kBAAQ,CAAC,MAAM,CAAC;YACjC,UAAU,EAAE;gBACV,WAAW,EAAE,iBAAiB;aAC/B;SACF;KACF;IACD;QACE,IAAI,EAAE,cAAc;QACpB,SAAS,EAAE,iBAAiB;QAC5B,aAAa,EAAE,UAAU;QACzB,OAAO,EAAE;YACP,GAA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OAAO,CAAC,GAAG,QAAQ,4BAA4B,EAAE;gBACtD,QAAQ,EAAE,QAAQ,CAAC,MAAM;gBACzB,QAAQ,EAAE,QAAQ,CAAC,SAAS;aAC7B,CAAC,CAAA;QACJ,CAAC;KACF;IACD,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QACjD,OAAO,OAAO,CAAC,wCAAmB,CAAC,WAAW,EAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE;YAClE,QAAQ,EAAE,QAAQ,CAAC,MAAM;YACzB,QAAQ,EAAE,QAAQ,CAAC,SAAS;YAC5B,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;gBAC1B,SAAS,EAAE,SAAS;aACrB;SACF,CAAC,CAAA;IACJ,CAAC;IACD,OAAO;IACP,OAAO,EAAE;QACP,QAAQ,EAAR,kBAAQ;QACR,YAAY,EAAZ,sBAAY;QACZ,OAAO,EAAP,iBAAO;QACP,iBAAiB,EAAjB,2BAAiB;KAClB;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -10,6 +10,7 @@ const utm_1 = require("../utm");
|
|
|
10
10
|
const referrer_1 = require("../referrer");
|
|
11
11
|
const merge_user_properties_1 = require("../merge-user-properties");
|
|
12
12
|
const user_agent_1 = require("../user-agent");
|
|
13
|
+
const regional_endpoints_1 = require("../regional-endpoints");
|
|
13
14
|
const revenueKeys = ['revenue', 'price', 'productId', 'quantity', 'revenueType'];
|
|
14
15
|
function getRevenueProperties(payload) {
|
|
15
16
|
if (typeof payload.revenue !== 'number') {
|
|
@@ -181,9 +182,7 @@ const action = {
|
|
|
181
182
|
library: 'segment'
|
|
182
183
|
});
|
|
183
184
|
}
|
|
184
|
-
const endpoint = payload.use_batch_endpoint
|
|
185
|
-
? 'https://api2.amplitude.com/batch'
|
|
186
|
-
: 'https://api2.amplitude.com/2/httpapi';
|
|
185
|
+
const endpoint = regional_endpoints_1.getEndpointByRegion(payload.use_batch_endpoint ? 'batch' : 'httpapi', settings.endpoint);
|
|
187
186
|
return request(endpoint, {
|
|
188
187
|
method: 'post',
|
|
189
188
|
json: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/amplitude/logEvent/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA6D;AAC7D,+DAAsC;AACtC,kDAA6C;AAI7C,gCAA6C;AAC7C,0CAAqD;AACrD,oEAA8D;AAC9D,8CAAwD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/amplitude/logEvent/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA6D;AAC7D,+DAAsC;AACtC,kDAA6C;AAI7C,gCAA6C;AAC7C,0CAAqD;AACrD,oEAA8D;AAC9D,8CAAwD;AACxD,8DAA2D;AAW3D,MAAM,WAAW,GAAG,CAAC,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,CAAC,CAAA;AAUhF,SAAS,oBAAoB,CAAC,OAAqB;IACjD,IAAI,OAAO,OAAO,CAAC,OAAO,KAAK,QAAQ,EAAE;QACvC,OAAO,EAAE,CAAA;KACV;IAED,OAAO;QACL,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,WAAW,EAAE,OAAO,CAAC,WAAW,IAAI,UAAU;QAC9C,QAAQ,EAAE,OAAO,OAAO,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS;QACzF,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,SAAS,EAAE,OAAO,CAAC,SAAS;KAC7B,CAAA;AACH,CAAC;AAED,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,WAAW;IAClB,WAAW,EAAE,6BAA6B;IAC1C,mBA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
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const regional_endpoints_1 = require("../regional-endpoints");
|
|
3
4
|
const action = {
|
|
4
5
|
title: 'Map User',
|
|
5
6
|
description: 'Merge two users together that would otherwise have different User IDs tracked in Amplitude.',
|
|
@@ -31,7 +32,7 @@ const action = {
|
|
|
31
32
|
perform: (request, { payload, settings }) => {
|
|
32
33
|
const { min_id_length } = payload;
|
|
33
34
|
const options = min_id_length && min_id_length > 0 ? JSON.stringify({ min_id_length }) : undefined;
|
|
34
|
-
return request('
|
|
35
|
+
return request(regional_endpoints_1.getEndpointByRegion('usermap', settings.endpoint), {
|
|
35
36
|
method: 'post',
|
|
36
37
|
body: new URLSearchParams({
|
|
37
38
|
api_key: settings.apiKey,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/amplitude/mapUser/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/amplitude/mapUser/index.ts"],"names":[],"mappings":";;AACA,8DAA2D;AAI3D,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,UAAU;IACjB,WAAW,EAAE,6FAA6F;IAC1G,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,OAAO,EAAE;YACP,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,+BAA+B;YAC5C,OAAO,EAAE;gBACP,OAAO,EAAE,cAAc;aACxB;SACF;QACD,cAAc,EAAE;YACd,KAAK,EAAE,gBAAgB;YACvB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,mDAAmD;YAChE,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,aAAa,EAAE;YACb,KAAK,EAAE,mBAAmB;YAC1B,WAAW,EACT,yKAAyK;YAC3K,SAAS,EAAE,IAAI;YACf,IAAI,EAAE,SAAS;SAChB;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC1C,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,CAAA;QACjC,MAAM,OAAO,GAAG,aAAa,IAAI,aAAa,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,aAAa,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;QAClG,OAAO,OAAO,CAAC,wCAAmB,CAAC,SAAS,EAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE;YAChE,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI,eAAe,CAAC;gBACxB,OAAO,EAAE,QAAQ,CAAC,MAAM;gBACxB,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC;gBAClC,GAAG,CAAC,OAAO,IAAI,EAAE,OAAO,EAAE,CAAC;aAC5B,CAAC;SACH,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const endpoints: {
|
|
2
|
+
batch: {
|
|
3
|
+
north_america: string;
|
|
4
|
+
europe: string;
|
|
5
|
+
};
|
|
6
|
+
deletions: {
|
|
7
|
+
north_america: string;
|
|
8
|
+
europe: string;
|
|
9
|
+
};
|
|
10
|
+
httpapi: {
|
|
11
|
+
north_america: string;
|
|
12
|
+
europe: string;
|
|
13
|
+
};
|
|
14
|
+
identify: {
|
|
15
|
+
north_america: string;
|
|
16
|
+
europe: string;
|
|
17
|
+
};
|
|
18
|
+
groupidentify: {
|
|
19
|
+
north_america: string;
|
|
20
|
+
europe: string;
|
|
21
|
+
};
|
|
22
|
+
usermap: {
|
|
23
|
+
north_america: string;
|
|
24
|
+
europe: string;
|
|
25
|
+
};
|
|
26
|
+
usersearch: {
|
|
27
|
+
north_america: string;
|
|
28
|
+
europe: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare function getEndpointByRegion(endpoint: keyof typeof endpoints, region?: string): string;
|
|
32
|
+
export default endpoints;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getEndpointByRegion = exports.endpoints = void 0;
|
|
4
|
+
exports.endpoints = {
|
|
5
|
+
batch: {
|
|
6
|
+
north_america: 'https://api2.amplitude.com/batch',
|
|
7
|
+
europe: 'https://api.eu.amplitude.com/batch'
|
|
8
|
+
},
|
|
9
|
+
deletions: {
|
|
10
|
+
north_america: 'https://amplitude.com/api/2/deletions/users',
|
|
11
|
+
europe: 'https://analytics.eu.amplitude.com/api/2/deletions/users'
|
|
12
|
+
},
|
|
13
|
+
httpapi: {
|
|
14
|
+
north_america: 'https://api2.amplitude.com/2/httpapi',
|
|
15
|
+
europe: 'https://api.eu.amplitude.com/2/httpapi'
|
|
16
|
+
},
|
|
17
|
+
identify: {
|
|
18
|
+
north_america: 'https://api2.amplitude.com/identify',
|
|
19
|
+
europe: 'https://api.eu.amplitude.com/identify'
|
|
20
|
+
},
|
|
21
|
+
groupidentify: {
|
|
22
|
+
north_america: 'https://api2.amplitude.com/groupidentify',
|
|
23
|
+
europe: 'https://api.eu.amplitude.com/groupidentify'
|
|
24
|
+
},
|
|
25
|
+
usermap: {
|
|
26
|
+
north_america: 'https://api.amplitude.com/usermap',
|
|
27
|
+
europe: 'https://api.eu.amplitude.com/usermap'
|
|
28
|
+
},
|
|
29
|
+
usersearch: {
|
|
30
|
+
north_america: 'https://amplitude.com/api/2/usersearch',
|
|
31
|
+
europe: 'https://analytics.eu.amplitude.com/api/2/usersearch'
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
function getEndpointByRegion(endpoint, region) {
|
|
35
|
+
return exports.endpoints[endpoint][region] ?? exports.endpoints[endpoint]['north_america'];
|
|
36
|
+
}
|
|
37
|
+
exports.getEndpointByRegion = getEndpointByRegion;
|
|
38
|
+
exports.default = exports.endpoints;
|
|
39
|
+
//# sourceMappingURL=regional-endpoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regional-endpoints.js","sourceRoot":"","sources":["../../../src/destinations/amplitude/regional-endpoints.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG;IACvB,KAAK,EAAE;QACL,aAAa,EAAE,kCAAkC;QACjD,MAAM,EAAE,oCAAoC;KAC7C;IACD,SAAS,EAAE;QACT,aAAa,EAAE,6CAA6C;QAC5D,MAAM,EAAE,0DAA0D;KACnE;IACD,OAAO,EAAE;QACP,aAAa,EAAE,sCAAsC;QACrD,MAAM,EAAE,wCAAwC;KACjD;IACD,QAAQ,EAAE;QACR,aAAa,EAAE,qCAAqC;QACpD,MAAM,EAAE,uCAAuC;KAChD;IACD,aAAa,EAAE;QACb,aAAa,EAAE,0CAA0C;QACzD,MAAM,EAAE,4CAA4C;KACrD;IACD,OAAO,EAAE;QACP,aAAa,EAAE,mCAAmC;QAClD,MAAM,EAAE,sCAAsC;KAC/C;IACD,UAAU,EAAE;QACV,aAAa,EAAE,wCAAwC;QACvD,MAAM,EAAE,qDAAqD;KAC9D;CACF,CAAA;AAYD,SAAgB,mBAAmB,CAAC,QAAgC,EAAE,MAAe;IACnF,OAAO,iBAAS,CAAC,QAAQ,CAAC,CAAC,MAAgB,CAAC,IAAI,iBAAS,CAAC,QAAQ,CAAC,CAAC,eAAe,CAAC,CAAA;AACtF,CAAC;AAFD,kDAEC;AAED,kBAAe,iBAAS,CAAA"}
|
|
@@ -37,10 +37,10 @@ const action = {
|
|
|
37
37
|
},
|
|
38
38
|
created_at: {
|
|
39
39
|
label: 'Created At',
|
|
40
|
-
description: 'A timestamp of when the person was created.
|
|
40
|
+
description: 'A timestamp of when the person was created.',
|
|
41
41
|
type: 'string',
|
|
42
42
|
default: {
|
|
43
|
-
'@
|
|
43
|
+
'@template': '{{traits.created_at}}'
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
custom_attributes: {
|
|
@@ -60,17 +60,20 @@ const action = {
|
|
|
60
60
|
},
|
|
61
61
|
perform: (request, { settings, payload }) => {
|
|
62
62
|
let createdAt = payload.created_at;
|
|
63
|
+
const body = {
|
|
64
|
+
...payload.custom_attributes,
|
|
65
|
+
email: payload.email,
|
|
66
|
+
anonymous_id: payload.anonymous_id
|
|
67
|
+
};
|
|
63
68
|
if (createdAt && payload.convert_timestamp !== false) {
|
|
64
69
|
createdAt = dayjs_1.default.utc(createdAt).unix();
|
|
65
70
|
}
|
|
71
|
+
if (createdAt) {
|
|
72
|
+
body.created_at = createdAt;
|
|
73
|
+
}
|
|
66
74
|
return request(`${utils_1.trackApiEndpoint(settings.accountRegion)}/api/v1/customers/${payload.id}`, {
|
|
67
75
|
method: 'put',
|
|
68
|
-
json:
|
|
69
|
-
...payload.custom_attributes,
|
|
70
|
-
email: payload.email,
|
|
71
|
-
created_at: createdAt,
|
|
72
|
-
anonymous_id: payload.anonymous_id
|
|
73
|
-
}
|
|
76
|
+
json: body
|
|
74
77
|
});
|
|
75
78
|
}
|
|
76
79
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/customerio/createUpdatePerson/index.ts"],"names":[],"mappings":";;;;;AAAA,+DAAsC;AAItC,oCAA2C;AAE3C,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,yBAAyB;IAChC,WAAW,EAAE,8DAA8D;IAC3E,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,EAAE,EAAE;YACF,KAAK,EAAE,WAAW;YAClB,WAAW,EACT,mIAAmI;YACrI,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,YAAY,EAAE;YACZ,KAAK,EAAE,cAAc;YACrB,WAAW,EACT,yGAAyG;YAC3G,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,eAAe;aACzB;SACF;QACD,KAAK,EAAE;YACL,KAAK,EAAE,eAAe;YACtB,WAAW,EAAE,6BAA6B;YAC1C,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,WAAW,EAAE,kBAAkB;aAChC;SACF;QACD,UAAU,EAAE;YACV,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/customerio/createUpdatePerson/index.ts"],"names":[],"mappings":";;;;;AAAA,+DAAsC;AAItC,oCAA2C;AAE3C,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,yBAAyB;IAChC,WAAW,EAAE,8DAA8D;IAC3E,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,EAAE,EAAE;YACF,KAAK,EAAE,WAAW;YAClB,WAAW,EACT,mIAAmI;YACrI,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,YAAY,EAAE;YACZ,KAAK,EAAE,cAAc;YACrB,WAAW,EACT,yGAAyG;YAC3G,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,eAAe;aACzB;SACF;QACD,KAAK,EAAE;YACL,KAAK,EAAE,eAAe;YACtB,WAAW,EAAE,6BAA6B;YAC1C,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,WAAW,EAAE,kBAAkB;aAChC;SACF;QACD,UAAU,EAAE;YACV,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,6CAA6C;YAC1D,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,WAAW,EAAE,uBAAuB;aACrC;SACF;QACD,iBAAiB,EAAE;YACjB,KAAK,EAAE,mBAAmB;YAC1B,WAAW,EACT,2GAA2G;YAC7G,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,iBAAiB,EAAE;YACjB,KAAK,EAAE,oBAAoB;YAC3B,WAAW,EAAE,iEAAiE;YAC9E,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,IAAI;SACd;KACF;IAED,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QAC1C,IAAI,SAAS,GAAgC,OAAO,CAAC,UAAU,CAAA;QAC/D,MAAM,IAAI,GAA4B;YACpC,GAAG,OAAO,CAAC,iBAAiB;YAC5B,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,YAAY,EAAE,OAAO,CAAC,YAAY;SACnC,CAAA;QAED,IAAI,SAAS,IAAI,OAAO,CAAC,iBAAiB,KAAK,KAAK,EAAE;YACpD,SAAS,GAAG,eAAK,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,CAAA;SACxC;QAED,IAAI,SAAS,EAAE;YACb,IAAI,CAAC,UAAU,GAAG,SAAS,CAAA;SAC5B;QAED,OAAO,OAAO,CAAC,GAAG,wBAAgB,CAAC,QAAQ,CAAC,aAAa,CAAC,qBAAqB,OAAO,CAAC,EAAE,EAAE,EAAE;YAC3F,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,IAAI;SACX,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -2,150 +2,20 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const actions_core_1 = require("@segment/actions-core");
|
|
4
4
|
const constants_1 = require("../constants");
|
|
5
|
+
const ga4_properties_1 = require("../ga4-properties");
|
|
5
6
|
const action = {
|
|
6
7
|
title: 'Add Payment Info',
|
|
7
8
|
description: 'Send event when a user submits their payment information',
|
|
8
9
|
defaultSubscription: 'type = "track" and event = "Payment Info Entered"',
|
|
9
10
|
fields: {
|
|
10
|
-
client_id: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
default: {
|
|
16
|
-
'@if': {
|
|
17
|
-
exists: { '@path': '$.userId' },
|
|
18
|
-
then: { '@path': '$.userId' },
|
|
19
|
-
else: { '@path': '$.anonymousId' }
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
currency: {
|
|
24
|
-
label: 'Currency',
|
|
25
|
-
type: 'string',
|
|
26
|
-
description: 'Currency of the items associated with the event, in 3-letter ISO 4217 format.'
|
|
27
|
-
},
|
|
28
|
-
value: {
|
|
29
|
-
label: 'Value',
|
|
30
|
-
type: 'string',
|
|
31
|
-
description: 'The monetary value of the event.'
|
|
32
|
-
},
|
|
33
|
-
coupon: {
|
|
34
|
-
label: 'Coupon',
|
|
35
|
-
type: 'string',
|
|
36
|
-
description: 'Coupon code used for a purchase.'
|
|
37
|
-
},
|
|
38
|
-
payment_type: {
|
|
39
|
-
label: 'Payment Type',
|
|
40
|
-
type: 'string',
|
|
41
|
-
description: 'The chosen method of payment.',
|
|
42
|
-
default: {
|
|
43
|
-
'@path': '$.properties.payment_method'
|
|
44
|
-
}
|
|
45
|
-
},
|
|
11
|
+
client_id: { ...ga4_properties_1.client_id },
|
|
12
|
+
currency: { ...ga4_properties_1.currency },
|
|
13
|
+
value: { ...ga4_properties_1.value },
|
|
14
|
+
coupon: { ...ga4_properties_1.coupon },
|
|
15
|
+
payment_type: { ...ga4_properties_1.payment_type },
|
|
46
16
|
items: {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
type: 'object',
|
|
50
|
-
multiple: true,
|
|
51
|
-
required: true,
|
|
52
|
-
properties: {
|
|
53
|
-
item_id: {
|
|
54
|
-
label: 'Product ID',
|
|
55
|
-
type: 'string',
|
|
56
|
-
description: 'Identifier for the product being purchased.'
|
|
57
|
-
},
|
|
58
|
-
item_name: {
|
|
59
|
-
label: 'Name',
|
|
60
|
-
type: 'string',
|
|
61
|
-
description: 'Name of the product being purchased.'
|
|
62
|
-
},
|
|
63
|
-
affiliation: {
|
|
64
|
-
label: 'Affiliation',
|
|
65
|
-
type: 'string',
|
|
66
|
-
description: 'A product affiliation to designate a supplying company or brick and mortar store location.'
|
|
67
|
-
},
|
|
68
|
-
coupon: {
|
|
69
|
-
label: 'Coupon',
|
|
70
|
-
type: 'string',
|
|
71
|
-
description: 'Coupon code used for a purchase.'
|
|
72
|
-
},
|
|
73
|
-
currency: {
|
|
74
|
-
label: 'Currency',
|
|
75
|
-
type: 'string',
|
|
76
|
-
description: 'Currency of the purchase or items associated with the event, in 3-letter ISO 4217 format.'
|
|
77
|
-
},
|
|
78
|
-
discount: {
|
|
79
|
-
label: 'Discount',
|
|
80
|
-
type: 'number',
|
|
81
|
-
description: 'Monetary value of discount associated with a purchase.'
|
|
82
|
-
},
|
|
83
|
-
index: {
|
|
84
|
-
label: 'Index',
|
|
85
|
-
type: 'number',
|
|
86
|
-
description: 'The index/position of the item in a list.'
|
|
87
|
-
},
|
|
88
|
-
item_brand: {
|
|
89
|
-
label: 'Brand',
|
|
90
|
-
type: 'string',
|
|
91
|
-
description: 'Brand associated with the product.'
|
|
92
|
-
},
|
|
93
|
-
item_category: {
|
|
94
|
-
label: 'Category',
|
|
95
|
-
type: 'string',
|
|
96
|
-
description: 'Product category.'
|
|
97
|
-
},
|
|
98
|
-
item_category2: {
|
|
99
|
-
label: 'Category 2',
|
|
100
|
-
type: 'string',
|
|
101
|
-
description: 'Product category 2.'
|
|
102
|
-
},
|
|
103
|
-
item_category3: {
|
|
104
|
-
label: 'Category 3',
|
|
105
|
-
type: 'string',
|
|
106
|
-
description: 'Product category 3.'
|
|
107
|
-
},
|
|
108
|
-
item_category4: {
|
|
109
|
-
label: 'Category 4',
|
|
110
|
-
type: 'string',
|
|
111
|
-
description: 'Product category 4.'
|
|
112
|
-
},
|
|
113
|
-
item_category5: {
|
|
114
|
-
label: 'Category 5',
|
|
115
|
-
type: 'string',
|
|
116
|
-
description: 'Product category 5.'
|
|
117
|
-
},
|
|
118
|
-
item_list_id: {
|
|
119
|
-
label: 'Item List ID',
|
|
120
|
-
type: 'string',
|
|
121
|
-
description: 'The ID of the list in which the item was presented to the user.'
|
|
122
|
-
},
|
|
123
|
-
item_list_name: {
|
|
124
|
-
label: 'Item List Name',
|
|
125
|
-
type: 'string',
|
|
126
|
-
description: 'The name of the list in which the item was presented to the user.'
|
|
127
|
-
},
|
|
128
|
-
item_variant: {
|
|
129
|
-
label: 'Variant',
|
|
130
|
-
type: 'string',
|
|
131
|
-
description: 'Variant of the product (e.g. Black).'
|
|
132
|
-
},
|
|
133
|
-
location_id: {
|
|
134
|
-
label: 'Location ID',
|
|
135
|
-
type: 'string',
|
|
136
|
-
description: 'The location associated with the item.'
|
|
137
|
-
},
|
|
138
|
-
price: {
|
|
139
|
-
label: 'Price',
|
|
140
|
-
type: 'number',
|
|
141
|
-
description: 'Price of the product being purchased, in units of the specified currency parameter.'
|
|
142
|
-
},
|
|
143
|
-
quantity: {
|
|
144
|
-
label: 'Quantity',
|
|
145
|
-
type: 'integer',
|
|
146
|
-
description: 'Item quantity.'
|
|
147
|
-
}
|
|
148
|
-
}
|
|
17
|
+
...ga4_properties_1.items_multi_products,
|
|
18
|
+
required: true
|
|
149
19
|
}
|
|
150
20
|
},
|
|
151
21
|
perform: (request, { payload }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/google-analytics-4/addPaymentInfo/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAC1E,4CAAiD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/google-analytics-4/addPaymentInfo/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAC1E,4CAAiD;AAIjD,sDAA0G;AAE1G,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,0DAA0D;IACvE,mBAAmB,E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