@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
|
@@ -4,52 +4,52 @@ const cloudUtil_1 = require("../cloudUtil");
|
|
|
4
4
|
const actions_shared_1 = require("@segment/actions-shared");
|
|
5
5
|
const actions_shared_2 = require("@segment/actions-shared");
|
|
6
6
|
const actions_shared_3 = require("@segment/actions-shared");
|
|
7
|
-
const
|
|
7
|
+
const cloudTrackPurchaseFields = { ...actions_shared_3.trackPurchaseFields({}), ...actions_shared_1.contextFields };
|
|
8
8
|
const trackPurchaseMapi = {
|
|
9
9
|
fields: {
|
|
10
|
-
orderId:
|
|
11
|
-
amount:
|
|
12
|
-
currency:
|
|
10
|
+
orderId: actions_shared_2.COPY,
|
|
11
|
+
amount: actions_shared_2.COPY,
|
|
12
|
+
currency: actions_shared_2.COPY,
|
|
13
13
|
coupon: { name: 'couponCode' },
|
|
14
|
-
attributionId:
|
|
15
|
-
referralCode:
|
|
16
|
-
giftCardCodes:
|
|
14
|
+
attributionId: actions_shared_2.COPY,
|
|
15
|
+
referralCode: actions_shared_2.COPY,
|
|
16
|
+
giftCardCodes: actions_shared_2.COPY,
|
|
17
17
|
products: {
|
|
18
18
|
type: 'array',
|
|
19
19
|
defaultObject: { sku: 'unknown', name: 'unknown', quantity: 1 },
|
|
20
20
|
fields: {
|
|
21
|
-
sku:
|
|
22
|
-
name:
|
|
23
|
-
quantity:
|
|
24
|
-
price:
|
|
25
|
-
description:
|
|
26
|
-
category:
|
|
27
|
-
url:
|
|
21
|
+
sku: actions_shared_2.COPY,
|
|
22
|
+
name: actions_shared_2.COPY,
|
|
23
|
+
quantity: actions_shared_2.COPY,
|
|
24
|
+
price: actions_shared_2.COPY,
|
|
25
|
+
description: actions_shared_2.COPY,
|
|
26
|
+
category: actions_shared_2.COPY,
|
|
27
|
+
url: actions_shared_2.COPY,
|
|
28
28
|
image_url: { name: 'imageUrl' }
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
|
-
customerId:
|
|
32
|
-
email:
|
|
33
|
-
firstName:
|
|
34
|
-
lastName:
|
|
35
|
-
isNewCustomer:
|
|
36
|
-
age:
|
|
37
|
-
birthday:
|
|
38
|
-
ipAddress:
|
|
39
|
-
userAgent:
|
|
40
|
-
pageUrl:
|
|
41
|
-
pageTitle:
|
|
31
|
+
customerId: actions_shared_2.COPY,
|
|
32
|
+
email: actions_shared_2.COPY,
|
|
33
|
+
firstName: actions_shared_2.COPY,
|
|
34
|
+
lastName: actions_shared_2.COPY,
|
|
35
|
+
isNewCustomer: actions_shared_2.COPY,
|
|
36
|
+
age: actions_shared_2.DROP,
|
|
37
|
+
birthday: actions_shared_2.DROP,
|
|
38
|
+
ipAddress: actions_shared_2.COPY,
|
|
39
|
+
userAgent: actions_shared_2.COPY,
|
|
40
|
+
pageUrl: actions_shared_2.DROP,
|
|
41
|
+
pageTitle: actions_shared_2.DROP
|
|
42
42
|
},
|
|
43
43
|
unmappedFieldObject: 'additionalProperties'
|
|
44
44
|
};
|
|
45
45
|
const action = {
|
|
46
46
|
title: 'Track Purchase',
|
|
47
47
|
description: 'Record when a customer makes a purchase.',
|
|
48
|
-
fields:
|
|
48
|
+
fields: cloudTrackPurchaseFields,
|
|
49
49
|
perform: async (request, { settings, payload }) => {
|
|
50
|
-
const friendbuyPayload =
|
|
51
|
-
const requestParams = await cloudUtil_1.
|
|
52
|
-
return request(
|
|
50
|
+
const friendbuyPayload = actions_shared_2.mapEvent(trackPurchaseMapi, payload);
|
|
51
|
+
const [requestUrl, requestParams] = await cloudUtil_1.createMapiRequest('v1/event/purchase', request, settings, friendbuyPayload);
|
|
52
|
+
return request(requestUrl, requestParams);
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
55
|
exports.default = action;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/friendbuy/trackPurchase/index.ts"],"names":[],"mappings":";;AAKA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/friendbuy/trackPurchase/index.ts"],"names":[],"mappings":";;AAKA,4CAAgD;AAChD,4DAAuD;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,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QAChD,MAAM,gBAAgB,GAAG,yBAAQ,CAAC,iBAAiB,EAAE,OAAsC,CAAC,CAAA;QAC5F,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,MAAM,6BAAiB,CACzD,mBAAmB,EACnB,OAAO,EACP,QAAQ,EACR,gBAAgB,CACjB,CAAA;QACD,OAAO,OAAO,CAAC,UAAU,EAAE,aAAa,CAAC,CAAA;IAC3C,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -5,6 +5,10 @@ const actions_shared_1 = require("@segment/actions-shared");
|
|
|
5
5
|
const actions_shared_2 = require("@segment/actions-shared");
|
|
6
6
|
const actions_shared_3 = require("@segment/actions-shared");
|
|
7
7
|
const actions_shared_4 = require("@segment/actions-shared");
|
|
8
|
+
const cloudTrackSignUpFields = {
|
|
9
|
+
...actions_shared_3.trackSignUpFields({ requireCustomerId: true, requireEmail: true }),
|
|
10
|
+
...actions_shared_1.contextFields
|
|
11
|
+
};
|
|
8
12
|
const trackSignUpMapi = {
|
|
9
13
|
fields: {
|
|
10
14
|
coupon: { name: 'couponCode' },
|
|
@@ -28,11 +32,11 @@ const trackSignUpMapi = {
|
|
|
28
32
|
const action = {
|
|
29
33
|
title: 'Track Sign Up',
|
|
30
34
|
description: 'Record when a customer signs up for a service.',
|
|
31
|
-
fields:
|
|
35
|
+
fields: cloudTrackSignUpFields,
|
|
32
36
|
perform: async (request, { settings, payload }) => {
|
|
33
37
|
const friendbuyPayload = actions_shared_2.mapEvent(trackSignUpMapi, payload);
|
|
34
|
-
const requestParams = await cloudUtil_1.
|
|
35
|
-
return request(
|
|
38
|
+
const [requestUrl, requestParams] = await cloudUtil_1.createMapiRequest('v1/event/account-sign-up', request, settings, friendbuyPayload);
|
|
39
|
+
return request(requestUrl, requestParams);
|
|
36
40
|
}
|
|
37
41
|
};
|
|
38
42
|
exports.default = action;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/friendbuy/trackSignUp/index.ts"],"names":[],"mappings":";;AAKA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/friendbuy/trackSignUp/index.ts"],"names":[],"mappings":";;AAKA,4CAAgD;AAChD,4DAAuD;AACvD,4DAA8D;AAC9D,4DAA2D;AAC3D,4DAAmD;AAEnD,MAAM,sBAAsB,GAAG;IAC7B,GAAG,kCAAiB,CAAC,EAAE,iBAAiB,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;IACrE,GAAG,8BAAa;CACjB,CAAA;AAED,MAAM,eAAe,GAAa;IAChC,MAAM,EAAE;QACN,MAAM,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE;QAC9B,aAAa,EAAE,qBAAI;QACnB,YAAY,EAAE,qBAAI;QAGlB,UAAU,EAAE,qBAAI;QAEhB,KAAK,EAAE,qBAAI;QACX,aAAa,EAAE,qBAAI;QACnB,aAAa,EAAE,qBAAI;QACnB,SAAS,EAAE,qBAAI;QACf,QAAQ,EAAE,qBAAI;QAEd,GAAG,EAAE,qBAAI;QACT,QAAQ,EAAE,EAAE,OAAO,EAAE,0BAAuB,EAAE;QAG9C,SAAS,EAAE,qBAAI;QACf,SAAS,EAAE,qBAAI;QACf,OAAO,EAAE,qBAAI;QACb,SAAS,EAAE,qBAAI;KAChB;IACD,mBAAmB,EAAE,sBAAsB;CAC5C,CAAA;AAED,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,gDAAgD;IAC7D,MAAM,EAAE,sBAAsB;IAE9B,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QAChD,MAAM,gBAAgB,GAAG,yBAAQ,CAAC,eAAe,EAAE,OAAsC,CAAC,CAAA;QAC1F,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,MAAM,6BAAiB,CACzD,0BAA0B,EAC1B,OAAO,EACP,QAAQ,EACR,gBAAgB,CACjB,CAAA;QACD,OAAO,OAAO,CAAC,UAAU,EAAE,aAAa,CAAC,CAAA;IAC3C,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.commonFields = void 0;
|
|
4
|
+
exports.commonFields = {
|
|
5
|
+
anonymousId: {
|
|
6
|
+
label: 'Anonymous ID',
|
|
7
|
+
type: 'string',
|
|
8
|
+
allowNull: true,
|
|
9
|
+
description: 'The generated anonymous ID for the user',
|
|
10
|
+
default: {
|
|
11
|
+
'@path': '$.anonymousId'
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
context: {
|
|
15
|
+
label: 'Event Context',
|
|
16
|
+
type: 'object',
|
|
17
|
+
description: 'Segment context with ip and userAgent',
|
|
18
|
+
required: true,
|
|
19
|
+
default: { '@path': '$.context' },
|
|
20
|
+
properties: {
|
|
21
|
+
campaign: {
|
|
22
|
+
label: 'UTM Properties',
|
|
23
|
+
type: 'object',
|
|
24
|
+
description: 'UTM Tracking Properties',
|
|
25
|
+
properties: {
|
|
26
|
+
source: {
|
|
27
|
+
label: 'UTM Source',
|
|
28
|
+
type: 'string',
|
|
29
|
+
default: { '@path': '$.context.campaign.source' }
|
|
30
|
+
},
|
|
31
|
+
medium: {
|
|
32
|
+
label: 'UTM Medium',
|
|
33
|
+
type: 'string',
|
|
34
|
+
default: { '@path': '$.context.campaign.medium' }
|
|
35
|
+
},
|
|
36
|
+
name: {
|
|
37
|
+
label: 'UTM Campaign',
|
|
38
|
+
type: 'string',
|
|
39
|
+
default: { '@path': '$.context.campaign.name' }
|
|
40
|
+
},
|
|
41
|
+
term: {
|
|
42
|
+
label: 'UTM Term',
|
|
43
|
+
type: 'string',
|
|
44
|
+
default: { '@path': '$.context.campaign.term' }
|
|
45
|
+
},
|
|
46
|
+
content: {
|
|
47
|
+
label: 'UTM Content',
|
|
48
|
+
type: 'string',
|
|
49
|
+
default: { '@path': '$.context.campaign.content' }
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
location: {
|
|
54
|
+
label: 'Location',
|
|
55
|
+
type: 'object',
|
|
56
|
+
description: 'information about the user’s current location',
|
|
57
|
+
properties: {
|
|
58
|
+
city: {
|
|
59
|
+
label: 'City',
|
|
60
|
+
type: 'string',
|
|
61
|
+
default: { '@path': '$.context.location.city' }
|
|
62
|
+
},
|
|
63
|
+
country: {
|
|
64
|
+
label: 'Country',
|
|
65
|
+
type: 'string',
|
|
66
|
+
default: { '@path': '$.context.location.country' }
|
|
67
|
+
},
|
|
68
|
+
latitude: {
|
|
69
|
+
label: 'Latitude',
|
|
70
|
+
type: 'number',
|
|
71
|
+
default: { '@path': '$.context.location.latitude' }
|
|
72
|
+
},
|
|
73
|
+
longitude: {
|
|
74
|
+
label: 'Longitude',
|
|
75
|
+
type: 'number',
|
|
76
|
+
default: { '@path': '$.context.location.longitude' }
|
|
77
|
+
},
|
|
78
|
+
region: {
|
|
79
|
+
label: 'Region',
|
|
80
|
+
type: 'string',
|
|
81
|
+
default: { '@path': '$.context.location.region' }
|
|
82
|
+
},
|
|
83
|
+
speed: {
|
|
84
|
+
label: 'Speed',
|
|
85
|
+
type: 'number',
|
|
86
|
+
default: { '@path': '$.context.location.speed' }
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
page: {
|
|
91
|
+
label: 'Page Properties',
|
|
92
|
+
type: 'object',
|
|
93
|
+
description: 'Current page properties',
|
|
94
|
+
properties: {
|
|
95
|
+
path: {
|
|
96
|
+
label: 'Page path',
|
|
97
|
+
type: 'string',
|
|
98
|
+
default: { '@path': '$.context.page.path' }
|
|
99
|
+
},
|
|
100
|
+
referrer: {
|
|
101
|
+
label: 'Referrer',
|
|
102
|
+
type: 'string',
|
|
103
|
+
default: { '@path': '$.context.page.referrer' }
|
|
104
|
+
},
|
|
105
|
+
search: {
|
|
106
|
+
label: 'Search',
|
|
107
|
+
type: 'string',
|
|
108
|
+
default: { '@path': '$.context.page.search' }
|
|
109
|
+
},
|
|
110
|
+
title: {
|
|
111
|
+
label: 'Title',
|
|
112
|
+
type: 'string',
|
|
113
|
+
default: { '@path': '$.context.page.title' }
|
|
114
|
+
},
|
|
115
|
+
url: {
|
|
116
|
+
label: 'Url',
|
|
117
|
+
type: 'string',
|
|
118
|
+
default: { '@path': '$.context.page.url' }
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
screen: {
|
|
123
|
+
label: 'Screen Properties',
|
|
124
|
+
type: 'object',
|
|
125
|
+
description: 'Screen Properties',
|
|
126
|
+
properties: {
|
|
127
|
+
width: {
|
|
128
|
+
label: 'Screen Width',
|
|
129
|
+
type: 'number',
|
|
130
|
+
default: { '@path': '$.context.screen.width' }
|
|
131
|
+
},
|
|
132
|
+
height: {
|
|
133
|
+
label: 'Screen Height',
|
|
134
|
+
type: 'number',
|
|
135
|
+
default: { '@path': '$.context.screen.height' }
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
app: {
|
|
140
|
+
label: 'Application Properties',
|
|
141
|
+
type: 'object',
|
|
142
|
+
description: 'Application Properties',
|
|
143
|
+
properties: {
|
|
144
|
+
name: {
|
|
145
|
+
label: 'Name',
|
|
146
|
+
type: 'string',
|
|
147
|
+
default: { '@path': '$.context.app.name' },
|
|
148
|
+
},
|
|
149
|
+
version: {
|
|
150
|
+
label: 'Version',
|
|
151
|
+
type: 'string',
|
|
152
|
+
default: { '@path': '$.context.app.version' }
|
|
153
|
+
},
|
|
154
|
+
build: {
|
|
155
|
+
label: 'Build',
|
|
156
|
+
type: 'string',
|
|
157
|
+
default: { '@path': '$.context.app.build' }
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
device: {
|
|
162
|
+
label: 'Device Properties',
|
|
163
|
+
type: 'object',
|
|
164
|
+
description: 'Device Properties',
|
|
165
|
+
default: { '@path': '$.context.device' }
|
|
166
|
+
},
|
|
167
|
+
network: {
|
|
168
|
+
label: 'Network Properties',
|
|
169
|
+
type: 'object',
|
|
170
|
+
description: 'Network Properties',
|
|
171
|
+
default: { '@path': '$.context.network' }
|
|
172
|
+
},
|
|
173
|
+
library: {
|
|
174
|
+
label: 'Library Properties',
|
|
175
|
+
type: 'object',
|
|
176
|
+
description: 'Device Properties',
|
|
177
|
+
properties: {
|
|
178
|
+
name: {
|
|
179
|
+
label: 'Name',
|
|
180
|
+
type: 'string',
|
|
181
|
+
default: { '@path': '$.context.library.name' },
|
|
182
|
+
},
|
|
183
|
+
version: {
|
|
184
|
+
label: 'Version',
|
|
185
|
+
type: 'string',
|
|
186
|
+
default: { '@path': '$.context.library.version' }
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
ip: {
|
|
191
|
+
label: 'Users IP address',
|
|
192
|
+
type: 'string',
|
|
193
|
+
description: 'Users IP address',
|
|
194
|
+
default: { '@path': '$.context.ip' }
|
|
195
|
+
},
|
|
196
|
+
locale: {
|
|
197
|
+
label: 'Users Locale string',
|
|
198
|
+
type: 'string',
|
|
199
|
+
description: 'Users Locale string',
|
|
200
|
+
default: { '@path': '$.context.locale' }
|
|
201
|
+
},
|
|
202
|
+
userAgent: {
|
|
203
|
+
label: 'User Agent string',
|
|
204
|
+
type: 'string',
|
|
205
|
+
description: 'User Agent string',
|
|
206
|
+
default: { '@path': '$.context.userAgent' }
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
messageId: {
|
|
211
|
+
type: 'string',
|
|
212
|
+
label: 'Message ID',
|
|
213
|
+
description: 'The message ID uniquely identifies an event to ensure each event is only processed once.',
|
|
214
|
+
required: true,
|
|
215
|
+
default: {
|
|
216
|
+
'@path': '$.messageId'
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
receivedAt: {
|
|
220
|
+
type: 'datetime',
|
|
221
|
+
label: 'receivedAt',
|
|
222
|
+
description: 'The timestamp at which this event was received.',
|
|
223
|
+
required: true,
|
|
224
|
+
default: {
|
|
225
|
+
'@path': '$.receivedAt'
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
sentAt: {
|
|
229
|
+
type: 'datetime',
|
|
230
|
+
label: 'sentAt',
|
|
231
|
+
description: 'The timestamp at which this was sent.',
|
|
232
|
+
required: true,
|
|
233
|
+
default: {
|
|
234
|
+
'@path': '$.sentAt'
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
timestamp: {
|
|
238
|
+
type: 'datetime',
|
|
239
|
+
label: 'timestamp',
|
|
240
|
+
description: 'The timestamp at which this event occurred.',
|
|
241
|
+
required: true,
|
|
242
|
+
default: {
|
|
243
|
+
'@path': '$.timestamp'
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
userId: {
|
|
247
|
+
label: 'User ID',
|
|
248
|
+
type: 'string',
|
|
249
|
+
allowNull: true,
|
|
250
|
+
required: true,
|
|
251
|
+
description: 'The unique user identifier',
|
|
252
|
+
default: {
|
|
253
|
+
'@path': '$.userId'
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
type: {
|
|
257
|
+
label: 'Type',
|
|
258
|
+
type: 'string',
|
|
259
|
+
allowNull: false,
|
|
260
|
+
required: true,
|
|
261
|
+
description: 'Segment event type',
|
|
262
|
+
default: {
|
|
263
|
+
'@path': '$.type'
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
version: {
|
|
267
|
+
label: 'Version',
|
|
268
|
+
type: 'number',
|
|
269
|
+
allowNull: true,
|
|
270
|
+
required: false,
|
|
271
|
+
description: 'Version of the Segment Tracking API that received the message',
|
|
272
|
+
default: {
|
|
273
|
+
'@path': '$.version'
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
};
|
|
277
|
+
//# sourceMappingURL=common-fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common-fields.js","sourceRoot":"","sources":["../../../src/destinations/gainsight-px-cloud-action/common-fields.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAA+B;IACtD,WAAW,EAAE;QACX,KAAK,EAAE,cAAc;QACrB,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,IAAI;QACf,WAAW,EAAE,yCAAyC;QACtD,OAAO,EAAE;YACP,OAAO,EAAE,eAAe;SACzB;KACF;IACD,OAAO,EAAE;QACP,KAAK,EAAE,eAAe;QACtB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,uCAAuC;QACpD,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;QACjC,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,KAAK,EAAE,gBAAgB;gBACvB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,yBAAyB;gBACtC,UAAU,EAAE;oBACV,MAAM,EAAE;wBACN,KAAK,EAAE,YAAY;wBACnB,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,EAAE,OAAO,EAAE,2BAA2B,EAAE;qBAClD;oBACD,MAAM,EAAE;wBACN,KAAK,EAAE,YAAY;wBACnB,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,EAAE,OAAO,EAAE,2BAA2B,EAAE;qBAClD;oBACD,IAAI,EAAE;wBACJ,KAAK,EAAE,cAAc;wBACrB,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,EAAE,OAAO,EAAE,yBAAyB,EAAE;qBAChD;oBACD,IAAI,EAAE;wBACJ,KAAK,EAAE,UAAU;wBACjB,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,EAAE,OAAO,EAAE,yBAAyB,EAAE;qBAChD;oBACD,OAAO,EAAE;wBACP,KAAK,EAAE,aAAa;wBACpB,IAAI,EAAE,QAAQ;w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KAAK;QACf,WAAW,EAAE,+DAA+D;QAC5E,OAAO,EAAE;YACP,OAAO,EAAE,WAAW;SACrB;KACF;CACF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/destinations/gainsight-px-cloud-action/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
groupId: string;
|
|
3
|
+
traits: {
|
|
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/groupIdentify/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,38 @@
|
|
|
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: 'Group Identify User',
|
|
7
|
+
description: 'Updates or adds properties to an account. The account is created if it does not exist.',
|
|
8
|
+
defaultSubscription: 'type = "group"',
|
|
9
|
+
fields: {
|
|
10
|
+
groupId: {
|
|
11
|
+
label: 'Account ID',
|
|
12
|
+
type: 'string',
|
|
13
|
+
description: 'The unique identifier of the account.',
|
|
14
|
+
required: true,
|
|
15
|
+
default: {
|
|
16
|
+
'@path': '$.groupId'
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
traits: {
|
|
20
|
+
label: 'User Properties',
|
|
21
|
+
type: 'object',
|
|
22
|
+
description: 'Properties to set on the user profile',
|
|
23
|
+
required: true,
|
|
24
|
+
default: {
|
|
25
|
+
'@path': '$.traits'
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
...common_fields_1.commonFields
|
|
29
|
+
},
|
|
30
|
+
perform: (request, { payload, settings }) => {
|
|
31
|
+
return request(regional_endpoints_1.getEndpointByRegion('track', settings.dataCenter), {
|
|
32
|
+
method: 'post',
|
|
33
|
+
json: payload
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
exports.default = action;
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/gainsight-px-cloud-action/groupIdentify/index.ts"],"names":[],"mappings":";;AAGA,8DAA2D;AAC3D,oDAAgD;AAEhD,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EAAE,wFAAwF;IACrG,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,OAAO,EAAE;YACP,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,uCAAuC;YACpD,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,WAAW;aACrB;SACF;QACD,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,59 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
traits: {
|
|
3
|
+
[k: string]: unknown;
|
|
4
|
+
};
|
|
5
|
+
anonymousId?: string | null;
|
|
6
|
+
context: {
|
|
7
|
+
campaign?: {
|
|
8
|
+
source?: string;
|
|
9
|
+
medium?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
term?: string;
|
|
12
|
+
content?: string;
|
|
13
|
+
};
|
|
14
|
+
location?: {
|
|
15
|
+
city?: string;
|
|
16
|
+
country?: string;
|
|
17
|
+
latitude?: number;
|
|
18
|
+
longitude?: number;
|
|
19
|
+
region?: string;
|
|
20
|
+
speed?: number;
|
|
21
|
+
};
|
|
22
|
+
page?: {
|
|
23
|
+
path?: string;
|
|
24
|
+
referrer?: string;
|
|
25
|
+
search?: string;
|
|
26
|
+
title?: string;
|
|
27
|
+
url?: string;
|
|
28
|
+
};
|
|
29
|
+
screen?: {
|
|
30
|
+
width?: number;
|
|
31
|
+
height?: number;
|
|
32
|
+
};
|
|
33
|
+
app?: {
|
|
34
|
+
name?: string;
|
|
35
|
+
version?: string;
|
|
36
|
+
build?: string;
|
|
37
|
+
};
|
|
38
|
+
device?: {
|
|
39
|
+
[k: string]: unknown;
|
|
40
|
+
};
|
|
41
|
+
network?: {
|
|
42
|
+
[k: string]: unknown;
|
|
43
|
+
};
|
|
44
|
+
library?: {
|
|
45
|
+
name?: string;
|
|
46
|
+
version?: string;
|
|
47
|
+
};
|
|
48
|
+
ip?: string;
|
|
49
|
+
locale?: string;
|
|
50
|
+
userAgent?: string;
|
|
51
|
+
};
|
|
52
|
+
messageId: string;
|
|
53
|
+
receivedAt: string | number;
|
|
54
|
+
sentAt: string | number;
|
|
55
|
+
timestamp: string | number;
|
|
56
|
+
userId: string | null;
|
|
57
|
+
type: string;
|
|
58
|
+
version?: number | null;
|
|
59
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/gainsight-px-cloud-action/identifyUser/generated-types.ts"],"names":[],"mappings":""}
|