@segment/action-destinations 3.44.1-alpha.0 → 3.46.1-alpha.1
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/adobe-target/generated-types.d.ts +3 -0
- package/dist/destinations/adobe-target/generated-types.js +3 -0
- package/dist/destinations/adobe-target/generated-types.js.map +1 -0
- package/dist/destinations/adobe-target/index.d.ts +4 -0
- package/dist/destinations/adobe-target/index.js +27 -0
- package/dist/destinations/adobe-target/index.js.map +1 -0
- package/dist/destinations/adobe-target/updateProfile/generated-types.d.ts +6 -0
- package/dist/destinations/adobe-target/updateProfile/generated-types.js +3 -0
- package/dist/destinations/adobe-target/updateProfile/generated-types.js.map +1 -0
- package/dist/destinations/adobe-target/updateProfile/index.d.ts +5 -0
- package/dist/destinations/adobe-target/updateProfile/index.js +58 -0
- package/dist/destinations/adobe-target/updateProfile/index.js.map +1 -0
- package/dist/destinations/close/createUpdateContactAndLead/generated-types.d.ts +12 -0
- package/dist/destinations/close/createUpdateContactAndLead/generated-types.js +3 -0
- package/dist/destinations/close/createUpdateContactAndLead/generated-types.js.map +1 -0
- package/dist/destinations/close/createUpdateContactAndLead/index.d.ts +5 -0
- package/dist/destinations/close/createUpdateContactAndLead/index.js +89 -0
- package/dist/destinations/close/createUpdateContactAndLead/index.js.map +1 -0
- package/dist/destinations/close/generated-types.d.ts +4 -0
- package/dist/destinations/close/generated-types.js +3 -0
- package/dist/destinations/close/generated-types.js.map +1 -0
- package/dist/destinations/close/index.d.ts +4 -0
- package/dist/destinations/close/index.js +49 -0
- package/dist/destinations/close/index.js.map +1 -0
- package/dist/destinations/customerio/utils.js +1 -1
- package/dist/destinations/customerio/utils.js.map +1 -1
- package/dist/destinations/friendbuy/cloudUtil.d.ts +4 -4
- package/dist/destinations/friendbuy/cloudUtil.js +31 -15
- package/dist/destinations/friendbuy/cloudUtil.js.map +1 -1
- package/dist/destinations/friendbuy/index.js +2 -2
- package/dist/destinations/friendbuy/index.js.map +1 -1
- package/dist/destinations/friendbuy/trackCustomEvent/generated-types.d.ts +1 -0
- package/dist/destinations/friendbuy/trackCustomEvent/index.js +8 -5
- package/dist/destinations/friendbuy/trackCustomEvent/index.js.map +1 -1
- package/dist/destinations/friendbuy/trackCustomer/index.js +4 -3
- package/dist/destinations/friendbuy/trackCustomer/index.js.map +1 -1
- package/dist/destinations/friendbuy/trackPurchase/generated-types.d.ts +2 -0
- package/dist/destinations/friendbuy/trackPurchase/index.js +29 -29
- package/dist/destinations/friendbuy/trackPurchase/index.js.map +1 -1
- package/dist/destinations/friendbuy/trackSignUp/generated-types.d.ts +3 -0
- package/dist/destinations/friendbuy/trackSignUp/index.js +7 -3
- package/dist/destinations/friendbuy/trackSignUp/index.js.map +1 -1
- package/dist/destinations/gainsight-px-cloud-action/common-fields.d.ts +2 -0
- package/dist/destinations/gainsight-px-cloud-action/common-fields.js +277 -0
- package/dist/destinations/gainsight-px-cloud-action/common-fields.js.map +1 -0
- package/dist/destinations/gainsight-px-cloud-action/generated-types.d.ts +4 -0
- package/dist/destinations/gainsight-px-cloud-action/generated-types.js +3 -0
- package/dist/destinations/gainsight-px-cloud-action/generated-types.js.map +1 -0
- package/dist/destinations/gainsight-px-cloud-action/groupIdentify/generated-types.d.ts +60 -0
- package/dist/destinations/gainsight-px-cloud-action/groupIdentify/generated-types.js +3 -0
- package/dist/destinations/gainsight-px-cloud-action/groupIdentify/generated-types.js.map +1 -0
- package/dist/destinations/gainsight-px-cloud-action/groupIdentify/index.d.ts +5 -0
- package/dist/destinations/gainsight-px-cloud-action/groupIdentify/index.js +38 -0
- package/dist/destinations/gainsight-px-cloud-action/groupIdentify/index.js.map +1 -0
- package/dist/destinations/gainsight-px-cloud-action/identifyUser/generated-types.d.ts +59 -0
- package/dist/destinations/gainsight-px-cloud-action/identifyUser/generated-types.js +3 -0
- package/dist/destinations/gainsight-px-cloud-action/identifyUser/generated-types.js.map +1 -0
- package/dist/destinations/gainsight-px-cloud-action/identifyUser/index.d.ts +5 -0
- package/dist/destinations/gainsight-px-cloud-action/identifyUser/index.js +29 -0
- package/dist/destinations/gainsight-px-cloud-action/identifyUser/index.js.map +1 -0
- package/dist/destinations/gainsight-px-cloud-action/index.d.ts +4 -0
- package/dist/destinations/gainsight-px-cloud-action/index.js +100 -0
- package/dist/destinations/gainsight-px-cloud-action/index.js.map +1 -0
- package/dist/destinations/gainsight-px-cloud-action/regional-endpoints.d.ts +12 -0
- package/dist/destinations/gainsight-px-cloud-action/regional-endpoints.js +19 -0
- package/dist/destinations/gainsight-px-cloud-action/regional-endpoints.js.map +1 -0
- package/dist/destinations/gainsight-px-cloud-action/trackEvent/generated-types.d.ts +60 -0
- package/dist/destinations/gainsight-px-cloud-action/trackEvent/generated-types.js +3 -0
- package/dist/destinations/gainsight-px-cloud-action/trackEvent/generated-types.js.map +1 -0
- package/dist/destinations/gainsight-px-cloud-action/trackEvent/index.d.ts +5 -0
- package/dist/destinations/gainsight-px-cloud-action/trackEvent/index.js +37 -0
- package/dist/destinations/gainsight-px-cloud-action/trackEvent/index.js.map +1 -0
- package/dist/destinations/gainsight-px-cloud-action/trackPageView/generated-types.d.ts +63 -0
- package/dist/destinations/gainsight-px-cloud-action/trackPageView/generated-types.js +3 -0
- package/dist/destinations/gainsight-px-cloud-action/trackPageView/generated-types.js.map +1 -0
- package/dist/destinations/gainsight-px-cloud-action/trackPageView/index.d.ts +5 -0
- package/dist/destinations/gainsight-px-cloud-action/trackPageView/index.js +60 -0
- package/dist/destinations/gainsight-px-cloud-action/trackPageView/index.js.map +1 -0
- package/dist/destinations/index.js +3 -0
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/salesforce/lead/index.js +9 -9
- package/dist/destinations/salesforce/lead/index.js.map +1 -1
- package/dist/destinations/salesforce/sf-properties.d.ts +0 -2
- package/dist/destinations/salesforce/sf-properties.js +4 -20
- package/dist/destinations/salesforce/sf-properties.js.map +1 -1
- package/package.json +4 -5
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const regional_endpoints_1 = require("../regional-endpoints");
|
|
4
|
+
const common_fields_1 = require("../common-fields");
|
|
5
|
+
const action = {
|
|
6
|
+
title: 'Identify User',
|
|
7
|
+
description: 'Set the user ID for a particular device ID or update user properties',
|
|
8
|
+
defaultSubscription: 'type = "identify"',
|
|
9
|
+
fields: {
|
|
10
|
+
traits: {
|
|
11
|
+
label: 'User Properties',
|
|
12
|
+
type: 'object',
|
|
13
|
+
description: 'Properties to set on the user profile',
|
|
14
|
+
required: true,
|
|
15
|
+
default: {
|
|
16
|
+
'@path': '$.traits'
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
...common_fields_1.commonFields
|
|
20
|
+
},
|
|
21
|
+
perform: (request, { payload, settings }) => {
|
|
22
|
+
return request(regional_endpoints_1.getEndpointByRegion('track', settings.dataCenter), {
|
|
23
|
+
method: 'post',
|
|
24
|
+
json: payload
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.default = action;
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/gainsight-px-cloud-action/identifyUser/index.ts"],"names":[],"mappings":";;AAGA,8DAA2D;AAC3D,oDAAgD;AAEhD,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,sEAAsE;IACnF,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,MAAM,EAAE;YACN,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,uCAAuC;YACpD,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,GAAG,4BAAY;KAChB;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAE1C,OAAO,OAAO,CAAC,wCAAmB,CAAC,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE;YAChE,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,OAAO;SACd,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const actions_core_1 = require("@segment/actions-core");
|
|
7
|
+
const actions_core_2 = require("@segment/actions-core");
|
|
8
|
+
const regional_endpoints_1 = require("./regional-endpoints");
|
|
9
|
+
const identifyUser_1 = __importDefault(require("./identifyUser"));
|
|
10
|
+
const groupIdentify_1 = __importDefault(require("./groupIdentify"));
|
|
11
|
+
const trackEvent_1 = __importDefault(require("./trackEvent"));
|
|
12
|
+
const trackPageView_1 = __importDefault(require("./trackPageView"));
|
|
13
|
+
const presets = [
|
|
14
|
+
{
|
|
15
|
+
name: 'Identify User',
|
|
16
|
+
subscribe: 'type = "identify"',
|
|
17
|
+
partnerAction: 'identifyUser',
|
|
18
|
+
mapping: actions_core_2.defaultValues(identifyUser_1.default.fields)
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: 'Group User',
|
|
22
|
+
subscribe: 'type = "group"',
|
|
23
|
+
partnerAction: 'groupIdentify',
|
|
24
|
+
mapping: actions_core_2.defaultValues(groupIdentify_1.default.fields)
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'Track Event',
|
|
28
|
+
subscribe: 'type = "track"',
|
|
29
|
+
partnerAction: 'trackEvent',
|
|
30
|
+
mapping: actions_core_2.defaultValues(trackEvent_1.default.fields)
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'Track Page View',
|
|
34
|
+
subscribe: 'type = "page"',
|
|
35
|
+
partnerAction: 'trackPageView',
|
|
36
|
+
mapping: actions_core_2.defaultValues(trackPageView_1.default.fields)
|
|
37
|
+
}
|
|
38
|
+
];
|
|
39
|
+
const destination = {
|
|
40
|
+
name: 'Gainsight Px Cloud (Actions)',
|
|
41
|
+
slug: 'actions-gainsight-px-cloud',
|
|
42
|
+
mode: 'cloud',
|
|
43
|
+
authentication: {
|
|
44
|
+
scheme: 'basic',
|
|
45
|
+
fields: {
|
|
46
|
+
apiKey: {
|
|
47
|
+
label: 'API Key',
|
|
48
|
+
description: 'Gainsight PX API key. You can find this key in the "Administration/Products" screen.',
|
|
49
|
+
type: 'string',
|
|
50
|
+
required: true
|
|
51
|
+
},
|
|
52
|
+
dataCenter: {
|
|
53
|
+
label: 'Data center',
|
|
54
|
+
description: 'The PX data center where your PX subscription is hosted.',
|
|
55
|
+
type: 'string',
|
|
56
|
+
format: 'text',
|
|
57
|
+
required: true,
|
|
58
|
+
choices: [
|
|
59
|
+
{
|
|
60
|
+
label: 'North America',
|
|
61
|
+
value: 'north_america'
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
label: 'Europe',
|
|
65
|
+
value: 'europe'
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
testAuthentication: async (request, { settings }) => {
|
|
71
|
+
const endpoint = regional_endpoints_1.getEndpointByRegion('track', settings.dataCenter);
|
|
72
|
+
const response = await request(endpoint, {
|
|
73
|
+
method: 'post',
|
|
74
|
+
username: settings.apiKey,
|
|
75
|
+
password: '',
|
|
76
|
+
json: [],
|
|
77
|
+
throwHttpErrors: false
|
|
78
|
+
});
|
|
79
|
+
if (response.status === 400) {
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
throw new actions_core_1.IntegrationError('Invalid API key', 'Invalid API Key', 401);
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
extendRequest({ settings }) {
|
|
86
|
+
return {
|
|
87
|
+
username: settings.apiKey,
|
|
88
|
+
password: ''
|
|
89
|
+
};
|
|
90
|
+
},
|
|
91
|
+
presets,
|
|
92
|
+
actions: {
|
|
93
|
+
identifyUser: identifyUser_1.default,
|
|
94
|
+
groupIdentify: groupIdentify_1.default,
|
|
95
|
+
trackEvent: trackEvent_1.default,
|
|
96
|
+
trackPageView: trackPageView_1.default
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
exports.default = destination;
|
|
100
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/gainsight-px-cloud-action/index.ts"],"names":[],"mappings":";;;;;AACA,wDAAwD;AAExD,wDAAqD;AAErD,6DAA0D;AAC1D,kEAAyC;AACzC,oEAA2C;AAC3C,8DAAqC;AACrC,oEAA2C;AAG3C,MAAM,OAAO,GAAqC;IAChD;QACE,IAAI,EAAE,eAAe;QACrB,SAAS,EAAE,mBAAmB;QAC9B,aAAa,EAAE,cAAc;QAC7B,OAAO,EAAE,4BAAa,CAAC,sBAAY,CAAC,MAAM,CAAC;KAC5C;IACD;QACE,IAAI,EAAE,YAAY;QAClB,SAAS,EAAE,gBAAgB;QAC3B,aAAa,EAAE,eAAe;QAC9B,OAAO,EAAE,4BAAa,CAAC,uBAAa,CAAC,MAAM,CAAC;KAC7C;IACD;QACE,IAAI,EAAE,aAAa;QACnB,SAAS,EAAE,gBAAgB;QAC3B,aAAa,EAAE,YAAY;QAC3B,OAAO,EAAE,4BAAa,CAAC,oBAAU,CAAC,MAAM,CAAC;KAC1C;IACD;QACE,IAAI,EAAE,iBAAiB;QACvB,SAAS,EAAE,eAAe;QAC1B,aAAa,EAAE,eAAe;QAC9B,OAAO,EAAE,4BAAa,CAAC,uBAAa,CAAC,MAAM,CAAC;KAC7C;CACF,CAAA;AAED,MAAM,WAAW,GAAoC;IACn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ACH,CAAC;IACD,OAAO;IACP,OAAO,EAAE;QACP,YAAY,EAAZ,sBAAY;QACZ,aAAa,EAAb,uBAAa;QACb,UAAU,EAAV,oBAAU;QACV,aAAa,EAAb,uBAAa;KACd;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const endpoints: {
|
|
2
|
+
track: {
|
|
3
|
+
north_america: string;
|
|
4
|
+
europe: string;
|
|
5
|
+
};
|
|
6
|
+
batch: {
|
|
7
|
+
north_america: string;
|
|
8
|
+
europe: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export declare function getEndpointByRegion(endpoint: keyof typeof endpoints, region?: string): string;
|
|
12
|
+
export default endpoints;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getEndpointByRegion = exports.endpoints = void 0;
|
|
4
|
+
exports.endpoints = {
|
|
5
|
+
track: {
|
|
6
|
+
north_america: 'https://segment-esp.aptrinsic.com/rte/segmentio/v1/push',
|
|
7
|
+
europe: 'https://segment-esp-eu.aptrinsic.com/rte/segmentio/v1/push'
|
|
8
|
+
},
|
|
9
|
+
batch: {
|
|
10
|
+
north_america: 'https://segment-esp.aptrinsic.com/rte/segmentio/v1/batch',
|
|
11
|
+
europe: 'https://segment-esp-eu.aptrinsic.com/rte/segmentio/v1/batch'
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
function getEndpointByRegion(endpoint, region) {
|
|
15
|
+
return exports.endpoints[endpoint][region] ?? exports.endpoints[endpoint]['north_america'];
|
|
16
|
+
}
|
|
17
|
+
exports.getEndpointByRegion = getEndpointByRegion;
|
|
18
|
+
exports.default = exports.endpoints;
|
|
19
|
+
//# sourceMappingURL=regional-endpoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regional-endpoints.js","sourceRoot":"","sources":["../../../src/destinations/gainsight-px-cloud-action/regional-endpoints.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG;IACvB,KAAK,EAAE;QACL,aAAa,EAAE,yDAAyD;QACxE,MAAM,EAAE,4DAA4D;KACrE;IACD,KAAK,EAAE;QACL,aAAa,EAAE,0DAA0D;QACzE,MAAM,EAAE,6DAA6D;KACtE;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"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
event: string;
|
|
3
|
+
properties?: {
|
|
4
|
+
[k: string]: unknown;
|
|
5
|
+
};
|
|
6
|
+
anonymousId?: string | null;
|
|
7
|
+
context: {
|
|
8
|
+
campaign?: {
|
|
9
|
+
source?: string;
|
|
10
|
+
medium?: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
term?: string;
|
|
13
|
+
content?: string;
|
|
14
|
+
};
|
|
15
|
+
location?: {
|
|
16
|
+
city?: string;
|
|
17
|
+
country?: string;
|
|
18
|
+
latitude?: number;
|
|
19
|
+
longitude?: number;
|
|
20
|
+
region?: string;
|
|
21
|
+
speed?: number;
|
|
22
|
+
};
|
|
23
|
+
page?: {
|
|
24
|
+
path?: string;
|
|
25
|
+
referrer?: string;
|
|
26
|
+
search?: string;
|
|
27
|
+
title?: string;
|
|
28
|
+
url?: string;
|
|
29
|
+
};
|
|
30
|
+
screen?: {
|
|
31
|
+
width?: number;
|
|
32
|
+
height?: number;
|
|
33
|
+
};
|
|
34
|
+
app?: {
|
|
35
|
+
name?: string;
|
|
36
|
+
version?: string;
|
|
37
|
+
build?: string;
|
|
38
|
+
};
|
|
39
|
+
device?: {
|
|
40
|
+
[k: string]: unknown;
|
|
41
|
+
};
|
|
42
|
+
network?: {
|
|
43
|
+
[k: string]: unknown;
|
|
44
|
+
};
|
|
45
|
+
library?: {
|
|
46
|
+
name?: string;
|
|
47
|
+
version?: string;
|
|
48
|
+
};
|
|
49
|
+
ip?: string;
|
|
50
|
+
locale?: string;
|
|
51
|
+
userAgent?: string;
|
|
52
|
+
};
|
|
53
|
+
messageId: string;
|
|
54
|
+
receivedAt: string | number;
|
|
55
|
+
sentAt: string | number;
|
|
56
|
+
timestamp: string | number;
|
|
57
|
+
userId: string | null;
|
|
58
|
+
type: string;
|
|
59
|
+
version?: number | null;
|
|
60
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/gainsight-px-cloud-action/trackEvent/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const regional_endpoints_1 = require("../regional-endpoints");
|
|
4
|
+
const common_fields_1 = require("../common-fields");
|
|
5
|
+
const action = {
|
|
6
|
+
title: 'Track Event',
|
|
7
|
+
description: 'Send an event to Gainsight PX',
|
|
8
|
+
defaultSubscription: 'type = "track"',
|
|
9
|
+
fields: {
|
|
10
|
+
event: {
|
|
11
|
+
label: 'Event Name',
|
|
12
|
+
type: 'string',
|
|
13
|
+
description: 'A unique identifier for your event.',
|
|
14
|
+
required: true,
|
|
15
|
+
default: {
|
|
16
|
+
'@path': '$.event'
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
properties: {
|
|
20
|
+
label: 'Event Properties',
|
|
21
|
+
type: 'object',
|
|
22
|
+
description: 'An object of key-value pairs that represent additional data to be sent along with the event.',
|
|
23
|
+
default: {
|
|
24
|
+
'@path': '$.properties'
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
...common_fields_1.commonFields
|
|
28
|
+
},
|
|
29
|
+
perform: (request, { payload, settings }) => {
|
|
30
|
+
return request(regional_endpoints_1.getEndpointByRegion('track', settings.dataCenter), {
|
|
31
|
+
method: 'post',
|
|
32
|
+
json: payload
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
exports.default = action;
|
|
37
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/gainsight-px-cloud-action/trackEvent/index.ts"],"names":[],"mappings":";;AAGA,8DAA2D;AAC3D,oDAAgD;AAEhD,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,+BAA+B;IAC5C,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,KAAK,EAAE;YACL,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,qCAAqC;YAClD,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,SAAS;aACnB;SACF;QACD,UAAU,EAAE;YACV,KAAK,EAAE,kBAAkB;YACzB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,8FAA8F;YAC3G,OAAO,EAAE;gBACP,OAAO,EAAE,cAAc;aACxB;SACF;QACD,GAAG,4BAAY;KAChB;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAE1C,OAAO,OAAO,CAAC,wCAAmB,CAAC,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE;YAChE,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,OAAO;SACd,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
name: string | null;
|
|
3
|
+
properties: {
|
|
4
|
+
url?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
referrer?: string;
|
|
7
|
+
path?: string;
|
|
8
|
+
};
|
|
9
|
+
anonymousId?: string | null;
|
|
10
|
+
context: {
|
|
11
|
+
campaign?: {
|
|
12
|
+
source?: string;
|
|
13
|
+
medium?: string;
|
|
14
|
+
name?: string;
|
|
15
|
+
term?: string;
|
|
16
|
+
content?: string;
|
|
17
|
+
};
|
|
18
|
+
location?: {
|
|
19
|
+
city?: string;
|
|
20
|
+
country?: string;
|
|
21
|
+
latitude?: number;
|
|
22
|
+
longitude?: number;
|
|
23
|
+
region?: string;
|
|
24
|
+
speed?: number;
|
|
25
|
+
};
|
|
26
|
+
page?: {
|
|
27
|
+
path?: string;
|
|
28
|
+
referrer?: string;
|
|
29
|
+
search?: string;
|
|
30
|
+
title?: string;
|
|
31
|
+
url?: string;
|
|
32
|
+
};
|
|
33
|
+
screen?: {
|
|
34
|
+
width?: number;
|
|
35
|
+
height?: number;
|
|
36
|
+
};
|
|
37
|
+
app?: {
|
|
38
|
+
name?: string;
|
|
39
|
+
version?: string;
|
|
40
|
+
build?: string;
|
|
41
|
+
};
|
|
42
|
+
device?: {
|
|
43
|
+
[k: string]: unknown;
|
|
44
|
+
};
|
|
45
|
+
network?: {
|
|
46
|
+
[k: string]: unknown;
|
|
47
|
+
};
|
|
48
|
+
library?: {
|
|
49
|
+
name?: string;
|
|
50
|
+
version?: string;
|
|
51
|
+
};
|
|
52
|
+
ip?: string;
|
|
53
|
+
locale?: string;
|
|
54
|
+
userAgent?: string;
|
|
55
|
+
};
|
|
56
|
+
messageId: string;
|
|
57
|
+
receivedAt: string | number;
|
|
58
|
+
sentAt: string | number;
|
|
59
|
+
timestamp: string | number;
|
|
60
|
+
userId: string | null;
|
|
61
|
+
type: string;
|
|
62
|
+
version?: number | null;
|
|
63
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/gainsight-px-cloud-action/trackPageView/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const regional_endpoints_1 = require("../regional-endpoints");
|
|
4
|
+
const common_fields_1 = require("../common-fields");
|
|
5
|
+
const action = {
|
|
6
|
+
title: 'Track Page View',
|
|
7
|
+
description: 'Send a page view event to Gainsight PX',
|
|
8
|
+
defaultSubscription: 'type = "page"',
|
|
9
|
+
fields: {
|
|
10
|
+
name: {
|
|
11
|
+
label: 'Page Name',
|
|
12
|
+
type: 'string',
|
|
13
|
+
allowNull: true,
|
|
14
|
+
required: true,
|
|
15
|
+
description: 'The name of the page',
|
|
16
|
+
default: {
|
|
17
|
+
'@path': '$.name'
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
properties: {
|
|
21
|
+
label: 'Page Properties',
|
|
22
|
+
type: 'object',
|
|
23
|
+
description: 'Page Properties',
|
|
24
|
+
required: true,
|
|
25
|
+
properties: {
|
|
26
|
+
url: {
|
|
27
|
+
label: 'Page Url',
|
|
28
|
+
type: 'string'
|
|
29
|
+
},
|
|
30
|
+
title: {
|
|
31
|
+
label: 'Page Title',
|
|
32
|
+
type: 'string'
|
|
33
|
+
},
|
|
34
|
+
referrer: {
|
|
35
|
+
label: 'Page Referrer',
|
|
36
|
+
type: 'string'
|
|
37
|
+
},
|
|
38
|
+
path: {
|
|
39
|
+
label: 'Path portion of the current page URL',
|
|
40
|
+
type: 'string'
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
default: {
|
|
44
|
+
url: { '@path': '$.properties.url' },
|
|
45
|
+
title: { '@path': '$.properties.title' },
|
|
46
|
+
referrer: { '@path': '$.properties.referrer' },
|
|
47
|
+
path: { '@path': '$.properties.path' }
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
...common_fields_1.commonFields
|
|
51
|
+
},
|
|
52
|
+
perform: (request, { payload, settings }) => {
|
|
53
|
+
return request(regional_endpoints_1.getEndpointByRegion('track', settings.dataCenter), {
|
|
54
|
+
method: 'post',
|
|
55
|
+
json: payload
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
exports.default = action;
|
|
60
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/gainsight-px-cloud-action/trackPageView/index.ts"],"names":[],"mappings":";;AAGA,8DAA2D;AAC3D,oDAAgD;AAEhD,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,iBAAiB;IACxB,WAAW,EAAE,wCAAwC;IACrD,mBAAmB,EAAE,eAAe;IACpC,MAAM,EAAE;QACN,IAAI,EAAE;YACJ,KAAK,EAAE,WAAW;YAClB,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,IAAI;YACf,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,sBAAsB;YACnC,OAAO,EAAE;gBACP,OAAO,EAAE,QAAQ;aAClB;SACF;QACD,UAAU,EAAE;YACV,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,iBAAiB;YAC9B,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE;gBACV,GAAG,EAAE;oBACH,KAAK,EAAE,UAAU;oBACjB,IAAI,EAAE,QAAQ;iBACf;gBACD,KAAK,EAAE;oBACL,KAAK,EAAE,YAAY;oBACnB,IAAI,EAAE,QAAQ;iBACf;gBACD,QAAQ,EAAE;oBACR,KAAK,EAAE,eAAe;oBACtB,IAAI,EAAE,QAAQ;iBACf;gBACD,IAAI,EAAE;oBACJ,KAAK,EAAE,sCAAsC;oBAC7C,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,OAAO,EAAE;gBACP,GAAG,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE;gBACpC,KAAK,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;gBACxC,QAAQ,EAAE,EAAE,OAAO,EAAE,uBAAuB,EAAE;gBAC9C,IAAI,EAAE,EAAE,OAAO,EAAE,mBAAmB,EAAE;aACvC;SACF;QACD,GAAG,4BAAY;KAChB;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAE1C,OAAO,OAAO,CAAC,wCAAmB,CAAC,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE;YAChE,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,OAAO;SACd,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -32,9 +32,11 @@ register('61806e472cd47ea1104885fc', './facebook-conversions-api');
|
|
|
32
32
|
register('5f7dd6d21ad74f3842b1fc47', './amplitude');
|
|
33
33
|
register('60f9d0d048950c356be2e4da', './braze');
|
|
34
34
|
register('61d7456b078e79929de4ee8c', './clevertap');
|
|
35
|
+
register('61f8296b7d15c30a3bbe2b76', './close');
|
|
35
36
|
register('61eed75ba749df7601b12186', './cordial');
|
|
36
37
|
register('5f7dd78fe27ce7ff2b8bfa37', './customerio');
|
|
37
38
|
register('61dde0dc77eb0db0392649d3', './friendbuy');
|
|
39
|
+
register('61f83101210c42a28a88d240', './gainsight-px-cloud-action');
|
|
38
40
|
register('60ad61f9ff47a16b8fb7b5d9', './google-analytics-4');
|
|
39
41
|
register('60ae8b97dcb6cc52d5d0d5ab', './google-enhanced-conversions');
|
|
40
42
|
register('615c7438d93d9b61b1e9e192', './mixpanel');
|
|
@@ -48,6 +50,7 @@ register('615cae349d109d6b7496a131', './tiktok-conversions');
|
|
|
48
50
|
register('602efa1f249b9a5e2bf8a813', './twilio');
|
|
49
51
|
register('614a3c7d791c91c41bae7599', './webhook');
|
|
50
52
|
register('61dc4e96894a6d7954cc6e45', './voyage');
|
|
53
|
+
register('61aa712b857e8c85c3b5a849', './adobe-target');
|
|
51
54
|
function register(id, destinationPath) {
|
|
52
55
|
const definition = require(destinationPath).default;
|
|
53
56
|
const resolvedPath = require.resolve(destinationPath);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/destinations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,wDAAmD;AACnD,gDAAuB;AAWV,QAAA,YAAY,GAA0C,EAAE,CAAA;AACxD,QAAA,QAAQ,GAAsC,EAAE,CAAA;AAU7D,QAAQ,CAAC,0BAA0B,EAAE,UAAU,CAAC,CAAA;AAChD,QAAQ,CAAC,0BAA0B,EAAE,4BAA4B,CAAC,CAAA;AAClE,QAAQ,CAAC,0BAA0B,EAAE,aAAa,CAAC,CAAA;AACnD,QAAQ,CAAC,0BAA0B,EAAE,SAAS,CAAC,CAAA;AAC/C,QAAQ,CAAC,0BAA0B,EAAE,aAAa,CAAC,CAAA;AACnD,QAAQ,CAAC,0BAA0B,EAAE,WAAW,CAAC,CAAA;AACjD,QAAQ,CAAC,0BAA0B,EAAE,cAAc,CAAC,CAAA;AACpD,QAAQ,CAAC,0BAA0B,EAAE,aAAa,CAAC,CAAA;AACnD,QAAQ,CAAC,0BAA0B,EAAE,sBAAsB,CAAC,CAAA;AAC5D,QAAQ,CAAC,0BAA0B,EAAE,+BAA+B,CAAC,CAAA;AACrE,QAAQ,CAAC,0BAA0B,EAAE,YAAY,CAAC,CAAA;AAClD,QAAQ,CAAC,0BAA0B,EAAE,aAAa,CAAC,CAAA;AACnD,QAAQ,CAAC,0BAA0B,EAAE,+BAA+B,CAAC,CAAA;AACrE,QAAQ,CAAC,0BAA0B,EAAE,6BAA6B,CAAC,CAAA;AACnE,QAAQ,CAAC,0BAA0B,EAAE,aAAa,CAAC,CAAA;AACnD,QAAQ,CAAC,0BAA0B,EAAE,cAAc,CAAC,CAAA;AACpD,QAAQ,CAAC,0BAA0B,EAAE,SAAS,CAAC,CAAA;AAC/C,QAAQ,CAAC,0BAA0B,EAAE,sBAAsB,CAAC,CAA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,GAAW;IAChD,MAAM,WAAW,GAAG,oBAAY,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAA;IAExE,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,IAAI,CAAA;KACZ;IAGD,OAAO,IAAI,0BAAW,CAAC,WAAyC,CAAC,CAAA;AACnE,CAAC;AAED,SAAgB,kBAAkB,CAAC,EAAU;IAC3C,MAAM,WAAW,GAAG,gBAAQ,CAAC,EAAE,CAAC,CAAA;IAEhC,IAAI,CAAC,WAAW,EAAE,UAAU,EAAE;QAC5B,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,IAAI,0BAAW,CAAC,WAAW,CAAC,UAAU,CAAC,CAAA;AAChD,CAAC;AARD,gDAQC;AAEM,KAAK,UAAU,uBAAuB,CAAC,WAAmB;IAC/D,OAAO,kBAAkB,CAAC,WAAW,CAAC,IAAI,uBAAuB,CAAC,WAAW,CAAC,CAAA;AAChF,CAAC;AAFD,0DAEC"}
|
|
@@ -14,47 +14,47 @@ const action = {
|
|
|
14
14
|
traits: sf_properties_1.traits,
|
|
15
15
|
company: {
|
|
16
16
|
label: 'Company',
|
|
17
|
-
description:
|
|
17
|
+
description: 'Company',
|
|
18
18
|
type: 'string'
|
|
19
19
|
},
|
|
20
20
|
last_name: {
|
|
21
21
|
label: 'Last Name',
|
|
22
|
-
description:
|
|
22
|
+
description: 'Last Name',
|
|
23
23
|
type: 'string'
|
|
24
24
|
},
|
|
25
25
|
first_name: {
|
|
26
26
|
label: 'First Name',
|
|
27
|
-
description:
|
|
27
|
+
description: 'First Name',
|
|
28
28
|
type: 'string'
|
|
29
29
|
},
|
|
30
30
|
email: {
|
|
31
31
|
label: 'Email',
|
|
32
|
-
description:
|
|
32
|
+
description: 'Email',
|
|
33
33
|
type: 'string'
|
|
34
34
|
},
|
|
35
35
|
city: {
|
|
36
36
|
label: 'City',
|
|
37
|
-
description:
|
|
37
|
+
description: 'City',
|
|
38
38
|
type: 'string'
|
|
39
39
|
},
|
|
40
40
|
postal_code: {
|
|
41
41
|
label: 'Postal Code',
|
|
42
|
-
description:
|
|
42
|
+
description: 'Postal Code',
|
|
43
43
|
type: 'string'
|
|
44
44
|
},
|
|
45
45
|
country: {
|
|
46
46
|
label: 'Country',
|
|
47
|
-
description:
|
|
47
|
+
description: 'Country',
|
|
48
48
|
type: 'string'
|
|
49
49
|
},
|
|
50
50
|
street: {
|
|
51
51
|
label: 'Street',
|
|
52
|
-
description:
|
|
52
|
+
description: 'Street',
|
|
53
53
|
type: 'string'
|
|
54
54
|
},
|
|
55
55
|
state: {
|
|
56
56
|
label: 'State',
|
|
57
|
-
description:
|
|
57
|
+
description: 'State',
|
|
58
58
|
type: 'string'
|
|
59
59
|
}
|
|
60
60
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/salesforce/lead/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA0E;AAG1E,oDAAoE;AACpE,qEAAyC;AAEzC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,MAAM;IACb,WAAW,EAAE,aAAa;IAC1B,MAAM,EAAE;QACN,SAAS,EAAE,yBAAS;QACpB,MAAM,EAAE,sBAAM;QACd,OAAO,EAAE;YACP,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/salesforce/lead/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA0E;AAG1E,oDAAoE;AACpE,qEAAyC;AAEzC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,MAAM;IACb,WAAW,EAAE,aAAa;IAC1B,MAAM,EAAE;QACN,SAAS,EAAE,yBAAS;QACpB,MAAM,EAAE,sBAAM;QACd,OAAO,EAAE;YACP,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,SAAS;YACtB,IAAI,EAAE,QAAQ;SACf;QACD,SAAS,E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,CAAA;QAEvB,IAAI,OAAO,CAAC,SAAS,KAAK,QAAQ,EAAE;YAClC,OAAO,MAAM,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAAA;SAC9C;QAED,IAAI,OAAO,CAAC,SAAS,KAAK,QAAQ,EAAE;YAClC,IAAI,CAAC,OAAO,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE;gBAC1C,MAAM,IAAI,+BAAgB,CAAC,oCAAoC,EAAE,8BAA8B,EAAE,GAAG,CAAC,CAAA;aACtG;YACD,OAAO,MAAM,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAAA;SAC9C;IACH,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { InputField } from '@segment/actions-core/src/destination-kit/types';
|
|
2
2
|
export declare const operation: InputField;
|
|
3
3
|
export declare const traits: InputField;
|
|
4
|
-
export declare const other_fields: InputField;
|
|
5
|
-
export declare const custom_fields: InputField;
|
|
6
4
|
interface Payload {
|
|
7
5
|
operation?: string;
|
|
8
6
|
traits?: object;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateLookup = exports.
|
|
3
|
+
exports.validateLookup = exports.traits = exports.operation = void 0;
|
|
4
4
|
const actions_core_1 = require("@segment/actions-core");
|
|
5
5
|
exports.operation = {
|
|
6
6
|
label: 'Operation',
|
|
7
|
-
description: '
|
|
7
|
+
description: 'Operation',
|
|
8
8
|
type: 'string',
|
|
9
9
|
required: true,
|
|
10
10
|
choices: [
|
|
@@ -14,24 +14,8 @@ exports.operation = {
|
|
|
14
14
|
]
|
|
15
15
|
};
|
|
16
16
|
exports.traits = {
|
|
17
|
-
label: '
|
|
18
|
-
description:
|
|
19
|
-
|
|
20
|
-
Any field can be matched on, including Record ID, External IDs, standard fields and custom fields. On the left-hand side, input the Salesforce field name. On the right-hand side, map the Segment field that contains the value.
|
|
21
|
-
|
|
22
|
-
If multiple records are found, we will not make any updates so we recommend using fields that contain unique values per record. Please see more information in our documentation.`,
|
|
23
|
-
type: 'object'
|
|
24
|
-
};
|
|
25
|
-
exports.other_fields = {
|
|
26
|
-
label: 'Other Standard Fields',
|
|
27
|
-
description: 'Additional standard fields to send to Salesforce. On the left-hand side, input the Salesforce standard field name. On the right-hand side, map the Segment field that contains the value.',
|
|
28
|
-
type: 'object'
|
|
29
|
-
};
|
|
30
|
-
exports.custom_fields = {
|
|
31
|
-
label: 'Custom Fields',
|
|
32
|
-
description: `Custom fields to send to Salesforce. Fields must be predefined in your Salesforce account.
|
|
33
|
-
|
|
34
|
-
On the left-hand side, input the Salesforce field name with __c appended. On the right-hand side, map the Segment field that contains the value.`,
|
|
17
|
+
label: 'Traits',
|
|
18
|
+
description: 'Traits',
|
|
35
19
|
type: 'object'
|
|
36
20
|
};
|
|
37
21
|
const validateLookup = (payload) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sf-properties.js","sourceRoot":"","sources":["../../../src/destinations/salesforce/sf-properties.ts"],"names":[],"mappings":";;;AACA,wDAAwD;AAE3C,QAAA,SAAS,GAAe;IACnC,KAAK,EAAE,WAAW;IAClB,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"sf-properties.js","sourceRoot":"","sources":["../../../src/destinations/salesforce/sf-properties.ts"],"names":[],"mappings":";;;AACA,wDAAwD;AAE3C,QAAA,SAAS,GAAe;IACnC,KAAK,EAAE,WAAW;IAClB,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE;QACP,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;QACpC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;QACpC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;KACrC;CACF,CAAA;AAEY,QAAA,MAAM,GAAe;IAChC,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,QAAQ;IACrB,IAAI,EAAE,QAAQ;CACf,CAAA;AAOM,MAAM,cAAc,GAAG,CAAC,OAAgB,EAAE,EAAE;IACjD,IAAI,OAAO,CAAC,SAAS,KAAK,QAAQ,IAAI,OAAO,CAAC,SAAS,KAAK,QAAQ,EAAE;QACpE,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;YACnB,MAAM,IAAI,+BAAgB,CACxB,wDAAwD,EACxD,8BAA8B,EAC9B,GAAG,CACJ,CAAA;SACF;KACF;AACH,CAAC,CAAA;AAVY,QAAA,cAAc,kBAU1B"}
|
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.46.1-alpha.1",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/segmentio/action-destinations",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@amplitude/ua-parser-js": "^0.7.25",
|
|
41
41
|
"@segment/actions-core": "^3.21.1",
|
|
42
|
-
"@segment/actions-shared": "^1.1.
|
|
42
|
+
"@segment/actions-shared": "^1.2.1-alpha.1",
|
|
43
43
|
"cheerio": "^1.0.0-rc.10",
|
|
44
44
|
"dayjs": "^1.10.7",
|
|
45
45
|
"escape-goat": "^3",
|
|
@@ -56,12 +56,11 @@
|
|
|
56
56
|
"@segment/ajv-human-errors": "<rootDir>/../ajv-human-errors/src",
|
|
57
57
|
"@segment/actions-core": "<rootDir>/../core/src",
|
|
58
58
|
"@segment/actions-shared": "<rootDir>/../actions-shared/src",
|
|
59
|
-
"@segment/destination-subscriptions": "<rootDir>/../destination-subscriptions/src"
|
|
60
|
-
"@friendbuy/shared(.*)": "<rootDir>/../browser-destinations/src/destinations/friendbuy/shared$1"
|
|
59
|
+
"@segment/destination-subscriptions": "<rootDir>/../destination-subscriptions/src"
|
|
61
60
|
},
|
|
62
61
|
"setupFilesAfterEnv": [
|
|
63
62
|
"<rootDir>/test/setup-after-env.ts"
|
|
64
63
|
]
|
|
65
64
|
},
|
|
66
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "c9e87b8e90bcca2b4765c066bd797ed6efec6631"
|
|
67
66
|
}
|