@segment/action-destinations 3.219.0 → 3.221.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/airship/utilities.js +2 -2
- package/dist/destinations/airship/utilities.js.map +1 -1
- package/dist/destinations/braze/updateUserProfile/index.js +1 -6
- package/dist/destinations/braze/updateUserProfile/index.js.map +1 -1
- package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.d.ts +1 -0
- package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js +8 -1
- package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js.map +1 -1
- package/dist/destinations/engage/twilio/utils/PhoneMessageSender.d.ts +0 -1
- package/dist/destinations/engage/twilio/utils/PhoneMessageSender.js +1 -2
- package/dist/destinations/engage/twilio/utils/PhoneMessageSender.js.map +1 -1
- package/dist/destinations/fullstory/identifyUserV2/generated-types.d.ts +1 -1
- package/dist/destinations/fullstory/identifyUserV2/index.js +1 -1
- package/dist/destinations/fullstory/identifyUserV2/index.js.map +1 -1
- package/dist/destinations/fullstory/index.js +1 -1
- package/dist/destinations/fullstory/index.js.map +1 -1
- package/dist/destinations/fullstory/request-params.d.ts +2 -2
- package/dist/destinations/fullstory/request-params.js +6 -6
- package/dist/destinations/fullstory/request-params.js.map +1 -1
- package/dist/destinations/fullstory/trackEventV2/generated-types.d.ts +1 -1
- package/dist/destinations/fullstory/trackEventV2/index.js +1 -1
- package/dist/destinations/fullstory/trackEventV2/index.js.map +1 -1
- package/dist/destinations/hubspot/upsertContact/index.d.ts +1 -1
- package/dist/destinations/hubspot/upsertContact/index.js +28 -8
- package/dist/destinations/hubspot/upsertContact/index.js.map +1 -1
- package/dist/destinations/hyperengage/commonFields.d.ts +3 -0
- package/dist/destinations/hyperengage/commonFields.js +165 -0
- package/dist/destinations/hyperengage/commonFields.js.map +1 -0
- package/dist/destinations/hyperengage/generated-types.d.ts +4 -0
- package/dist/destinations/hyperengage/generated-types.js +3 -0
- package/dist/destinations/hyperengage/generated-types.js.map +1 -0
- package/dist/destinations/hyperengage/group/generated-types.d.ts +35 -0
- package/dist/destinations/hyperengage/group/generated-types.js +3 -0
- package/dist/destinations/hyperengage/group/generated-types.js.map +1 -0
- package/dist/destinations/hyperengage/group/index.d.ts +5 -0
- package/dist/destinations/hyperengage/group/index.js +81 -0
- package/dist/destinations/hyperengage/group/index.js.map +1 -0
- package/dist/destinations/hyperengage/identify/generated-types.d.ts +36 -0
- package/dist/destinations/hyperengage/identify/generated-types.js +3 -0
- package/dist/destinations/hyperengage/identify/generated-types.js.map +1 -0
- package/dist/destinations/hyperengage/identify/index.d.ts +5 -0
- package/dist/destinations/hyperengage/identify/index.js +110 -0
- package/dist/destinations/hyperengage/identify/index.js.map +1 -0
- package/dist/destinations/hyperengage/index.d.ts +4 -0
- package/dist/destinations/hyperengage/index.js +72 -0
- package/dist/destinations/hyperengage/index.js.map +1 -0
- package/dist/destinations/hyperengage/track/generated-types.d.ts +32 -0
- package/dist/destinations/hyperengage/track/generated-types.js +3 -0
- package/dist/destinations/hyperengage/track/generated-types.js.map +1 -0
- package/dist/destinations/hyperengage/track/index.d.ts +5 -0
- package/dist/destinations/hyperengage/track/index.js +54 -0
- package/dist/destinations/hyperengage/track/index.js.map +1 -0
- package/dist/destinations/hyperengage/validateInput.d.ts +2 -0
- package/dist/destinations/hyperengage/validateInput.js +90 -0
- package/dist/destinations/hyperengage/validateInput.js.map +1 -0
- package/dist/destinations/index.js +3 -0
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/liveramp-audiences/audienceEnteredS3/index.js +1 -1
- package/dist/destinations/liveramp-audiences/audienceEnteredS3/index.js.map +1 -1
- package/dist/destinations/liveramp-audiences/audienceEnteredSftp/index.js +1 -1
- package/dist/destinations/liveramp-audiences/audienceEnteredSftp/index.js.map +1 -1
- package/dist/destinations/loops/createOrUpdateContact/generated-types.d.ts +1 -1
- package/dist/destinations/loops/createOrUpdateContact/index.js +2 -2
- package/dist/destinations/loops/createOrUpdateContact/index.js.map +1 -1
- package/dist/destinations/pinterest-conversions/pinterest-capi-custom-data.js +1 -1
- package/dist/destinations/pinterest-conversions/pinterest-capi-custom-data.js.map +1 -1
- package/dist/destinations/pinterest-conversions/reportConversionEvent/generated-types.d.ts +1 -1
- package/dist/destinations/segment-profiles/segment-properties.d.ts +1 -0
- package/dist/destinations/segment-profiles/segment-properties.js +9 -1
- package/dist/destinations/segment-profiles/segment-properties.js.map +1 -1
- package/dist/destinations/segment-profiles/sendGroup/generated-types.d.ts +1 -0
- package/dist/destinations/segment-profiles/sendGroup/index.js +3 -1
- package/dist/destinations/segment-profiles/sendGroup/index.js.map +1 -1
- package/dist/destinations/segment-profiles/sendIdentify/generated-types.d.ts +1 -0
- package/dist/destinations/segment-profiles/sendIdentify/index.js +3 -1
- package/dist/destinations/segment-profiles/sendIdentify/index.js.map +1 -1
- package/dist/destinations/segment-profiles/sendSubscription/generated-types.d.ts +1 -0
- package/dist/destinations/segment-profiles/sendSubscription/index.js +4 -1
- package/dist/destinations/segment-profiles/sendSubscription/index.js.map +1 -1
- package/dist/destinations/snap-conversions-api/_tests_/index.test.js.map +1 -1
- package/dist/destinations/trackey/generated-types.d.ts +3 -0
- package/dist/destinations/trackey/generated-types.js +3 -0
- package/dist/destinations/trackey/generated-types.js.map +1 -0
- package/dist/destinations/trackey/group.types.d.ts +11 -0
- package/dist/destinations/trackey/group.types.js +3 -0
- package/dist/destinations/trackey/group.types.js.map +1 -0
- package/dist/destinations/trackey/identify.types.d.ts +11 -0
- package/dist/destinations/trackey/identify.types.js +3 -0
- package/dist/destinations/trackey/identify.types.js.map +1 -0
- package/dist/destinations/trackey/index.d.ts +4 -0
- package/dist/destinations/trackey/index.js +206 -0
- package/dist/destinations/trackey/index.js.map +1 -0
- package/dist/destinations/trackey/track.types.d.ts +12 -0
- package/dist/destinations/trackey/track.types.js +3 -0
- package/dist/destinations/trackey/track.types.js.map +1 -0
- package/dist/destinations/yahoo-audiences/constants.d.ts +2 -0
- package/dist/destinations/yahoo-audiences/constants.js +6 -0
- package/dist/destinations/yahoo-audiences/constants.js.map +1 -0
- package/dist/destinations/yahoo-audiences/generated-types.d.ts +10 -0
- package/dist/destinations/yahoo-audiences/generated-types.js +3 -0
- package/dist/destinations/yahoo-audiences/generated-types.js.map +1 -0
- package/dist/destinations/yahoo-audiences/index.d.ts +4 -0
- package/dist/destinations/yahoo-audiences/index.js +150 -0
- package/dist/destinations/yahoo-audiences/index.js.map +1 -0
- package/dist/destinations/yahoo-audiences/types.d.ts +31 -0
- package/dist/destinations/yahoo-audiences/types.js +3 -0
- package/dist/destinations/yahoo-audiences/types.js.map +1 -0
- package/dist/destinations/yahoo-audiences/updateSegment/generated-types.d.ts +16 -0
- package/dist/destinations/yahoo-audiences/updateSegment/generated-types.js +3 -0
- package/dist/destinations/yahoo-audiences/updateSegment/generated-types.js.map +1 -0
- package/dist/destinations/yahoo-audiences/updateSegment/index.d.ts +5 -0
- package/dist/destinations/yahoo-audiences/updateSegment/index.js +163 -0
- package/dist/destinations/yahoo-audiences/updateSegment/index.js.map +1 -0
- package/dist/destinations/yahoo-audiences/utils-rt.d.ts +10 -0
- package/dist/destinations/yahoo-audiences/utils-rt.js +103 -0
- package/dist/destinations/yahoo-audiences/utils-rt.js.map +1 -0
- package/dist/destinations/yahoo-audiences/utils-tax.d.ts +8 -0
- package/dist/destinations/yahoo-audiences/utils-tax.js +78 -0
- package/dist/destinations/yahoo-audiences/utils-tax.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identify.types.js","sourceRoot":"","sources":["../../../src/destinations/trackey/identify.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const base = 'https://eo493p73oqjeket.m.pipedream.net/';
|
|
4
|
+
const endpoint = base + 'public-api/integrations/segment/webhook';
|
|
5
|
+
const destination = {
|
|
6
|
+
name: 'Trackey',
|
|
7
|
+
slug: 'actions-trackey',
|
|
8
|
+
mode: 'cloud',
|
|
9
|
+
description: 'Send Segment events to Trackey',
|
|
10
|
+
authentication: {
|
|
11
|
+
scheme: 'custom',
|
|
12
|
+
fields: {
|
|
13
|
+
apiKey: {
|
|
14
|
+
label: 'API Key',
|
|
15
|
+
description: 'Your Trackey API Key',
|
|
16
|
+
type: 'string',
|
|
17
|
+
required: true
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
extendRequest: ({ settings }) => {
|
|
22
|
+
return {
|
|
23
|
+
headers: {
|
|
24
|
+
'api-key': settings.apiKey,
|
|
25
|
+
'Content-Type': 'application/json'
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
},
|
|
29
|
+
actions: {
|
|
30
|
+
track: {
|
|
31
|
+
title: 'track',
|
|
32
|
+
description: 'Track an event',
|
|
33
|
+
defaultSubscription: 'type = "track"',
|
|
34
|
+
fields: {
|
|
35
|
+
userId: {
|
|
36
|
+
label: 'User ID',
|
|
37
|
+
type: 'string',
|
|
38
|
+
required: true,
|
|
39
|
+
description: 'The user identifier to associate the event with',
|
|
40
|
+
default: { '@path': '$.userId' }
|
|
41
|
+
},
|
|
42
|
+
event: {
|
|
43
|
+
label: 'Event Name',
|
|
44
|
+
type: 'string',
|
|
45
|
+
required: true,
|
|
46
|
+
description: 'Name of the Segment track() event',
|
|
47
|
+
default: { '@path': '$.event' }
|
|
48
|
+
},
|
|
49
|
+
messageId: {
|
|
50
|
+
label: 'Message ID',
|
|
51
|
+
type: 'string',
|
|
52
|
+
description: 'A unique value for each event.',
|
|
53
|
+
default: {
|
|
54
|
+
'@path': '$.messageId'
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
timestamp: {
|
|
58
|
+
label: 'Event Timestamp',
|
|
59
|
+
type: 'string',
|
|
60
|
+
required: true,
|
|
61
|
+
description: 'Timestamp that the event took place, in ISO 8601 format. e.g. 2019-06-12T19:11:01.152Z',
|
|
62
|
+
default: { '@path': '$.timestamp' }
|
|
63
|
+
},
|
|
64
|
+
properties: {
|
|
65
|
+
label: 'Event Properties',
|
|
66
|
+
type: 'object',
|
|
67
|
+
required: false,
|
|
68
|
+
description: 'Additional information associated with the track() event',
|
|
69
|
+
default: { '@path': '$.properties' }
|
|
70
|
+
},
|
|
71
|
+
groupId: {
|
|
72
|
+
label: 'Group ID',
|
|
73
|
+
type: 'object',
|
|
74
|
+
required: false,
|
|
75
|
+
description: 'Company ID associated with the event',
|
|
76
|
+
default: { '@path': '$.context.group_id' }
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
perform: (request, { payload }) => {
|
|
80
|
+
return request(endpoint, {
|
|
81
|
+
method: 'POST',
|
|
82
|
+
json: {
|
|
83
|
+
userId: payload.userId,
|
|
84
|
+
event: payload.event,
|
|
85
|
+
messageId: payload.messageId,
|
|
86
|
+
timestamp: payload.timestamp,
|
|
87
|
+
properties: payload.properties,
|
|
88
|
+
groupId: payload.groupId
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
identify: {
|
|
94
|
+
title: 'Identify',
|
|
95
|
+
description: 'Identify a user',
|
|
96
|
+
defaultSubscription: 'type = "identify"',
|
|
97
|
+
fields: {
|
|
98
|
+
userId: {
|
|
99
|
+
label: 'User ID',
|
|
100
|
+
type: 'string',
|
|
101
|
+
required: true,
|
|
102
|
+
description: 'The user identifier to associate the event with',
|
|
103
|
+
default: { '@path': '$.userId' }
|
|
104
|
+
},
|
|
105
|
+
messageId: {
|
|
106
|
+
label: 'Message ID',
|
|
107
|
+
type: 'string',
|
|
108
|
+
description: 'A unique value for each event.',
|
|
109
|
+
default: {
|
|
110
|
+
'@path': '$.messageId'
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
timestamp: {
|
|
114
|
+
label: 'Event Timestamp',
|
|
115
|
+
type: 'string',
|
|
116
|
+
required: true,
|
|
117
|
+
description: 'Timestamp that the event took place, in ISO 8601 format. e.g. 2019-06-12T19:11:01.152Z',
|
|
118
|
+
default: { '@path': '$.timestamp' }
|
|
119
|
+
},
|
|
120
|
+
traits: {
|
|
121
|
+
label: 'User Traits',
|
|
122
|
+
type: 'object',
|
|
123
|
+
required: false,
|
|
124
|
+
description: 'User profile information',
|
|
125
|
+
default: { '@path': '$.traits' }
|
|
126
|
+
},
|
|
127
|
+
groupId: {
|
|
128
|
+
label: 'Group ID',
|
|
129
|
+
type: 'object',
|
|
130
|
+
required: false,
|
|
131
|
+
description: 'Company ID associated with the event',
|
|
132
|
+
default: { '@path': '$.context.group_id' }
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
perform: (request, { payload }) => {
|
|
136
|
+
return request(endpoint, {
|
|
137
|
+
method: 'POST',
|
|
138
|
+
json: {
|
|
139
|
+
userId: payload.userId,
|
|
140
|
+
messageId: payload.messageId,
|
|
141
|
+
timestamp: payload.timestamp,
|
|
142
|
+
traits: payload.traits,
|
|
143
|
+
groupId: payload.groupId
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
group: {
|
|
149
|
+
title: 'Group',
|
|
150
|
+
description: 'Group a user',
|
|
151
|
+
defaultSubscription: 'type = "group"',
|
|
152
|
+
fields: {
|
|
153
|
+
userId: {
|
|
154
|
+
label: 'User ID',
|
|
155
|
+
type: 'string',
|
|
156
|
+
required: true,
|
|
157
|
+
description: 'The user identifier to associate the event with',
|
|
158
|
+
default: { '@path': '$.userId' }
|
|
159
|
+
},
|
|
160
|
+
messageId: {
|
|
161
|
+
label: 'Message ID',
|
|
162
|
+
type: 'string',
|
|
163
|
+
description: 'A unique value for each event.',
|
|
164
|
+
default: {
|
|
165
|
+
'@path': '$.messageId'
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
timestamp: {
|
|
169
|
+
label: 'Event Timestamp',
|
|
170
|
+
type: 'string',
|
|
171
|
+
required: true,
|
|
172
|
+
description: 'Timestamp that the event took place, in ISO 8601 format. e.g. 2019-06-12T19:11:01.152Z',
|
|
173
|
+
default: { '@path': '$.timestamp' }
|
|
174
|
+
},
|
|
175
|
+
traits: {
|
|
176
|
+
label: 'Company Traits',
|
|
177
|
+
type: 'object',
|
|
178
|
+
required: false,
|
|
179
|
+
description: 'Company profile information',
|
|
180
|
+
default: { '@path': '$.traits' }
|
|
181
|
+
},
|
|
182
|
+
groupId: {
|
|
183
|
+
label: 'Group ID',
|
|
184
|
+
type: 'object',
|
|
185
|
+
required: true,
|
|
186
|
+
description: 'Company ID associated with the event',
|
|
187
|
+
default: { '@path': '$.groupId' }
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
perform: (request, { payload }) => {
|
|
191
|
+
return request(endpoint, {
|
|
192
|
+
method: 'POST',
|
|
193
|
+
json: {
|
|
194
|
+
userId: payload.userId,
|
|
195
|
+
messageId: payload.messageId,
|
|
196
|
+
timestamp: payload.timestamp,
|
|
197
|
+
traits: payload.traits,
|
|
198
|
+
groupId: payload.groupId
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
exports.default = destination;
|
|
206
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/trackey/index.ts"],"names":[],"mappings":";;AAIA,MAAM,IAAI,GAAG,0CAA0C,CAAA;AACvD,MAAM,QAAQ,GAAG,IAAI,GAAG,yCAAyC,CAAA;AAEjE,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,gCAAgC;IAC7C,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,MAAM,EAAE;gBACN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gBACD,SAAS,EAAE;oBACT,KAAK,EAAE,iBAAiB;oBACxB,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,IAAI;oBACd,WAAW,EAAE,wFAAwF;oBACrG,OAAO,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE;iBACpC;gBACD,MAAM,EAAE;oBACN,KAAK,EAAE,gBAAgB;oBACvB,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,KAAK;oBACf,WAAW,EAAE,6BAA6B;oBAC1C,OAAO,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;iBACjC;gBACD,OAAO,EAAE;oBACP,KAAK,EAAE,UAAU;oBACjB,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,IAAI;oBACd,WAAW,EAAE,sCAAsC;oBACnD,OAAO,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;iBAClC;aACF;YACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;gBAChC,OAAO,OAAO,CAAC,QAAQ,EAAE;oBACvB,MAAM,EAAE,MAAM;oBACd,IAAI,EAAE;wBACJ,MAAM,EAAE,OAAO,CAAC,MAAM;wBACtB,SAAS,EAAE,OAAO,CAAC,SAAS;wBAC5B,SAAS,EAAE,OAAO,CAAC,SAAS;wBAC5B,MAAM,EAAE,OAAO,CAAC,MAAM;wBACtB,OAAO,EAAE,OAAO,CAAC,OAAO;qBACzB;iBACF,CAAC,CAAA;YACJ,CAAC;SACF;KACF;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"track.types.js","sourceRoot":"","sources":["../../../src/destinations/trackey/track.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.REALTIME_BASE_URL = exports.TAXONOMY_BASE_URL = void 0;
|
|
4
|
+
exports.TAXONOMY_BASE_URL = 'https://datax.yahooapis.com';
|
|
5
|
+
exports.REALTIME_BASE_URL = 'https://dataxonline.yahoo.com/online/audience';
|
|
6
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/destinations/yahoo-audiences/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG,6BAA6B,CAAA;AACjD,QAAA,iBAAiB,GAAG,+CAA+C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/destinations/yahoo-audiences/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,150 @@
|
|
|
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 utils_rt_1 = require("./utils-rt");
|
|
8
|
+
const updateSegment_1 = __importDefault(require("./updateSegment"));
|
|
9
|
+
const utils_tax_1 = require("./utils-tax");
|
|
10
|
+
const destination = {
|
|
11
|
+
name: 'Yahoo Audiences',
|
|
12
|
+
slug: 'actions-yahoo-audiences',
|
|
13
|
+
mode: 'cloud',
|
|
14
|
+
description: 'Sync Segment Engage Audiences to Yahoo Ads',
|
|
15
|
+
authentication: {
|
|
16
|
+
scheme: 'oauth2',
|
|
17
|
+
fields: {
|
|
18
|
+
mdm_id: {
|
|
19
|
+
label: 'MDM ID',
|
|
20
|
+
description: 'Yahoo MDM ID provided by Yahoo representative',
|
|
21
|
+
type: 'string',
|
|
22
|
+
required: true
|
|
23
|
+
},
|
|
24
|
+
engage_space_id: {
|
|
25
|
+
label: 'Engage Space Id',
|
|
26
|
+
description: 'Engage Space Id found in Unify > Settings > API Access',
|
|
27
|
+
type: 'string',
|
|
28
|
+
required: true
|
|
29
|
+
},
|
|
30
|
+
customer_desc: {
|
|
31
|
+
label: 'Customer Description',
|
|
32
|
+
description: 'Engage space name and description',
|
|
33
|
+
type: 'string',
|
|
34
|
+
required: false
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
testAuthentication: async (request, { settings }) => {
|
|
38
|
+
if (!process.env.ACTIONS_YAHOO_AUDIENCES_TAXONOMY_CLIENT_SECRET) {
|
|
39
|
+
throw new actions_core_1.IntegrationError('Missing Taxonomy API client secret', 'MISSING_REQUIRED_FIELD', 400);
|
|
40
|
+
}
|
|
41
|
+
if (!process.env.ACTIONS_YAHOO_AUDIENCES_TAXONOMY_CLIENT_ID) {
|
|
42
|
+
throw new actions_core_1.IntegrationError('Missing Taxonomy API client Id', 'MISSING_REQUIRED_FIELD', 400);
|
|
43
|
+
}
|
|
44
|
+
const tx_creds = {
|
|
45
|
+
tx_client_key: process.env.ACTIONS_YAHOO_AUDIENCES_TAXONOMY_CLIENT_ID,
|
|
46
|
+
tx_client_secret: process.env.ACTIONS_YAHOO_AUDIENCES_TAXONOMY_CLIENT_SECRET
|
|
47
|
+
};
|
|
48
|
+
const body_form_data = utils_tax_1.gen_customer_taxonomy_payload(settings);
|
|
49
|
+
await utils_tax_1.update_taxonomy('', tx_creds, request, body_form_data);
|
|
50
|
+
},
|
|
51
|
+
refreshAccessToken: async (request, { auth }) => {
|
|
52
|
+
const rt_client_key = JSON.parse(auth.clientId)['rt_api'];
|
|
53
|
+
const rt_client_secret = JSON.parse(auth.clientSecret)['rt_api'];
|
|
54
|
+
const jwt = utils_rt_1.generate_jwt(rt_client_key, rt_client_secret);
|
|
55
|
+
const res = await request('https://id.b2b.yahooinc.com/identity/oauth2/access_token', {
|
|
56
|
+
method: 'POST',
|
|
57
|
+
body: new URLSearchParams({
|
|
58
|
+
client_assertion: jwt,
|
|
59
|
+
client_assertion_type: 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer',
|
|
60
|
+
grant_type: 'client_credentials',
|
|
61
|
+
scope: 'audience',
|
|
62
|
+
realm: 'dataxonline'
|
|
63
|
+
})
|
|
64
|
+
});
|
|
65
|
+
const rt_access_token = res.data.access_token;
|
|
66
|
+
return { accessToken: rt_access_token };
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
audienceFields: {
|
|
70
|
+
audience_id: {
|
|
71
|
+
type: 'string',
|
|
72
|
+
label: 'Audience Id',
|
|
73
|
+
description: 'Segment Audience Id (aud_...)',
|
|
74
|
+
required: true
|
|
75
|
+
},
|
|
76
|
+
audience_key: {
|
|
77
|
+
label: 'Audience key',
|
|
78
|
+
description: 'Segment Audience Key',
|
|
79
|
+
type: 'string',
|
|
80
|
+
required: true
|
|
81
|
+
},
|
|
82
|
+
identifier: {
|
|
83
|
+
label: 'User Identifier',
|
|
84
|
+
description: 'Specify the identifier(s) to send to Yahoo',
|
|
85
|
+
type: 'string',
|
|
86
|
+
required: true,
|
|
87
|
+
default: 'email',
|
|
88
|
+
choices: [
|
|
89
|
+
{ value: 'email', label: 'Send email' },
|
|
90
|
+
{ value: 'maid', label: 'Send MAID' },
|
|
91
|
+
{ value: 'email_maid', label: 'Send email and/or MAID' }
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
audienceConfig: {
|
|
96
|
+
mode: {
|
|
97
|
+
type: 'synced',
|
|
98
|
+
full_audience_sync: false
|
|
99
|
+
},
|
|
100
|
+
async createAudience(request, createAudienceInput) {
|
|
101
|
+
const audience_id = createAudienceInput.audienceSettings?.audience_id;
|
|
102
|
+
const audience_key = createAudienceInput.audienceSettings?.audience_key;
|
|
103
|
+
const engage_space_id = createAudienceInput.settings?.engage_space_id;
|
|
104
|
+
const identifier = createAudienceInput.audienceSettings?.identifier;
|
|
105
|
+
if (!audience_id) {
|
|
106
|
+
throw new actions_core_1.IntegrationError('Create Audience: missing audience Id value', 'MISSING_REQUIRED_FIELD', 400);
|
|
107
|
+
}
|
|
108
|
+
if (!audience_key) {
|
|
109
|
+
throw new actions_core_1.IntegrationError('Create Audience: missing audience key value', 'MISSING_REQUIRED_FIELD', 400);
|
|
110
|
+
}
|
|
111
|
+
if (!engage_space_id) {
|
|
112
|
+
throw new actions_core_1.IntegrationError('Create Audience: missing Engage space Id type value', 'MISSING_REQUIRED_FIELD', 400);
|
|
113
|
+
}
|
|
114
|
+
if (!process.env.ACTIONS_YAHOO_AUDIENCES_TAXONOMY_CLIENT_SECRET) {
|
|
115
|
+
throw new actions_core_1.IntegrationError('Missing Taxonomy API client secret', 'MISSING_REQUIRED_FIELD', 400);
|
|
116
|
+
}
|
|
117
|
+
if (!process.env.ACTIONS_YAHOO_AUDIENCES_TAXONOMY_CLIENT_ID) {
|
|
118
|
+
throw new actions_core_1.IntegrationError('Missing Taxonomy API client Id', 'MISSING_REQUIRED_FIELD', 400);
|
|
119
|
+
}
|
|
120
|
+
if (!identifier) {
|
|
121
|
+
throw new actions_core_1.IntegrationError('Create Audience: missing Identifier type value', 'MISSING_REQUIRED_FIELD', 400);
|
|
122
|
+
}
|
|
123
|
+
const input = {
|
|
124
|
+
segment_audience_id: audience_id,
|
|
125
|
+
segment_audience_key: audience_key,
|
|
126
|
+
engage_space_id: engage_space_id,
|
|
127
|
+
identifier: identifier
|
|
128
|
+
};
|
|
129
|
+
const body_form_data = utils_tax_1.gen_segment_subtaxonomy_payload(input);
|
|
130
|
+
const tx_creds = {
|
|
131
|
+
tx_client_key: process.env.ACTIONS_YAHOO_AUDIENCES_TAXONOMY_CLIENT_ID,
|
|
132
|
+
tx_client_secret: process.env.ACTIONS_YAHOO_AUDIENCES_TAXONOMY_CLIENT_SECRET
|
|
133
|
+
};
|
|
134
|
+
await utils_tax_1.update_taxonomy(engage_space_id, tx_creds, request, body_form_data);
|
|
135
|
+
return { externalId: audience_id };
|
|
136
|
+
},
|
|
137
|
+
async getAudience(_, getAudienceInput) {
|
|
138
|
+
const audience_id = getAudienceInput.audienceSettings?.audience_id;
|
|
139
|
+
if (!audience_id) {
|
|
140
|
+
throw new actions_core_1.IntegrationError('Missing audience_id value', 'MISSING_REQUIRED_FIELD', 400);
|
|
141
|
+
}
|
|
142
|
+
return { externalId: audience_id };
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
actions: {
|
|
146
|
+
updateSegment: updateSegment_1.default
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
exports.default = destination;
|
|
150
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/yahoo-audiences/index.ts"],"names":[],"mappings":";;;;;AACA,wDAAwD;AAExD,yCAAyC;AACzC,oEAA2C;AAC3C,2CAA6G;AAM7G,MAAM,WAAW,GAA8D;IAC7E,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,4CAA4C;IACzD,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,MAAM,EAAE;gBACN,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,+CAA+C;gBAC5D,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,eAAe,EAAE;gBACf,KAAK,EAAE,iBAAiB;gBACxB,WAAW,EAAE,wDAAwD;gBACrE,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,aAAa,EAAE;gBACb,KAAK,EAAE,sBAAsB;gBAC7B,WAAW,EAAE,mCAAmC;gBAChD,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,kBAAkB,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;YAClD,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,8CAA8C,EAAE;gBAC/D,MAAM,IAAI,+BAAgB,CAA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AAwB,EAAE,GAAG,CAAC,CAAA;aACvF;YACD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,CAAA;QACpC,CAAC;KACF;IAED,OAAO,EAAE;QACP,aAAa,EAAb,uBAAa;KACd;CACF,CAAA;AACD,kBAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface CredsObj {
|
|
2
|
+
tx_client_key: string;
|
|
3
|
+
tx_client_secret: string;
|
|
4
|
+
}
|
|
5
|
+
export interface TaxonomyObject {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
description: string;
|
|
9
|
+
users: {
|
|
10
|
+
include: [string];
|
|
11
|
+
};
|
|
12
|
+
subTaxonomy: [
|
|
13
|
+
{
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
type: string;
|
|
17
|
+
}
|
|
18
|
+
];
|
|
19
|
+
}
|
|
20
|
+
export interface YahooPayload {
|
|
21
|
+
schema: Array<string>;
|
|
22
|
+
data: Array<unknown>;
|
|
23
|
+
gdpr: boolean;
|
|
24
|
+
gdpr_euconsent?: string | undefined;
|
|
25
|
+
}
|
|
26
|
+
export interface YahooSubTaxonomy {
|
|
27
|
+
segment_audience_id: string;
|
|
28
|
+
segment_audience_key: string;
|
|
29
|
+
engage_space_id: string;
|
|
30
|
+
identifier: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/destinations/yahoo-audiences/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
segment_audience_id: string;
|
|
3
|
+
segment_audience_key: string;
|
|
4
|
+
event_attributes: {
|
|
5
|
+
[k: string]: unknown;
|
|
6
|
+
};
|
|
7
|
+
segment_computation_action: string;
|
|
8
|
+
enable_batching?: boolean;
|
|
9
|
+
batch_size?: number;
|
|
10
|
+
email?: string;
|
|
11
|
+
advertising_id?: string;
|
|
12
|
+
device_type?: string;
|
|
13
|
+
identifier: string;
|
|
14
|
+
gdpr_flag: boolean;
|
|
15
|
+
gdpr_euconsent?: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/yahoo-audiences/updateSegment/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ActionDefinition } from '@segment/actions-core';
|
|
2
|
+
import type { Settings, AudienceSettings } from '../generated-types';
|
|
3
|
+
import type { Payload } from './generated-types';
|
|
4
|
+
declare const action: ActionDefinition<Settings, Payload, AudienceSettings>;
|
|
5
|
+
export default action;
|