@segment/action-destinations 3.240.0 → 3.242.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.
Files changed (54) hide show
  1. package/dist/destinations/airship/utilities.js +8 -0
  2. package/dist/destinations/airship/utilities.js.map +1 -1
  3. package/dist/destinations/avo/generated-types.d.ts +5 -0
  4. package/dist/destinations/avo/generated-types.js +3 -0
  5. package/dist/destinations/avo/generated-types.js.map +1 -0
  6. package/dist/destinations/avo/index.d.ts +4 -0
  7. package/dist/destinations/avo/index.js +54 -0
  8. package/dist/destinations/avo/index.js.map +1 -0
  9. package/dist/destinations/avo/sendSchemaToInspector/AvoSchemaParser.d.ts +9 -0
  10. package/dist/destinations/avo/sendSchemaToInspector/AvoSchemaParser.js +97 -0
  11. package/dist/destinations/avo/sendSchemaToInspector/AvoSchemaParser.js.map +1 -0
  12. package/dist/destinations/avo/sendSchemaToInspector/avo-types.d.ts +26 -0
  13. package/dist/destinations/avo/sendSchemaToInspector/avo-types.js +10 -0
  14. package/dist/destinations/avo/sendSchemaToInspector/avo-types.js.map +1 -0
  15. package/dist/destinations/avo/sendSchemaToInspector/avo.d.ts +3 -0
  16. package/dist/destinations/avo/sendSchemaToInspector/avo.js +44 -0
  17. package/dist/destinations/avo/sendSchemaToInspector/avo.js.map +1 -0
  18. package/dist/destinations/avo/sendSchemaToInspector/generated-types.d.ts +11 -0
  19. package/dist/destinations/avo/sendSchemaToInspector/generated-types.js +3 -0
  20. package/dist/destinations/avo/sendSchemaToInspector/generated-types.js.map +1 -0
  21. package/dist/destinations/avo/sendSchemaToInspector/index.d.ts +5 -0
  22. package/dist/destinations/avo/sendSchemaToInspector/index.js +95 -0
  23. package/dist/destinations/avo/sendSchemaToInspector/index.js.map +1 -0
  24. package/dist/destinations/display-video-360/index.js +5 -0
  25. package/dist/destinations/display-video-360/index.js.map +1 -1
  26. package/dist/destinations/display-video-360/shared.d.ts +2 -0
  27. package/dist/destinations/display-video-360/shared.js +7 -1
  28. package/dist/destinations/display-video-360/shared.js.map +1 -1
  29. package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js +3 -7
  30. package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js.map +1 -1
  31. package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js +3 -9
  32. package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js.map +1 -1
  33. package/dist/destinations/index.js +2 -0
  34. package/dist/destinations/index.js.map +1 -1
  35. package/dist/destinations/linkedin-conversions/api/index.d.ts +1 -1
  36. package/dist/destinations/linkedin-conversions/api/index.js +23 -13
  37. package/dist/destinations/linkedin-conversions/api/index.js.map +1 -1
  38. package/dist/destinations/linkedin-conversions/constants.d.ts +1 -1
  39. package/dist/destinations/linkedin-conversions/constants.js +1 -1
  40. package/dist/destinations/linkedin-conversions/streamConversion/index.js +8 -5
  41. package/dist/destinations/linkedin-conversions/streamConversion/index.js.map +1 -1
  42. package/dist/destinations/stackadapt/forwardEvent/generated-types.d.ts +33 -0
  43. package/dist/destinations/stackadapt/forwardEvent/generated-types.js +3 -0
  44. package/dist/destinations/stackadapt/forwardEvent/generated-types.js.map +1 -0
  45. package/dist/destinations/stackadapt/forwardEvent/index.d.ts +5 -0
  46. package/dist/destinations/stackadapt/forwardEvent/index.js +273 -0
  47. package/dist/destinations/stackadapt/forwardEvent/index.js.map +1 -0
  48. package/dist/destinations/stackadapt/generated-types.d.ts +3 -0
  49. package/dist/destinations/stackadapt/generated-types.js +3 -0
  50. package/dist/destinations/stackadapt/generated-types.js.map +1 -0
  51. package/dist/destinations/stackadapt/index.d.ts +4 -0
  52. package/dist/destinations/stackadapt/index.js +38 -0
  53. package/dist/destinations/stackadapt/index.js.map +1 -0
  54. package/package.json +4 -4
@@ -0,0 +1,273 @@
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 isEmpty_1 = __importDefault(require("lodash/isEmpty"));
7
+ const action = {
8
+ title: 'Forward Event',
9
+ description: 'Forward Segment events to StackAdapt for conversion tracking',
10
+ defaultSubscription: 'type = "identify" or type = "page" or type = "screen" or type = "track"',
11
+ fields: {
12
+ user_id: {
13
+ label: 'Segment User ID',
14
+ description: 'The ID of the user in Segment',
15
+ type: 'string',
16
+ required: true,
17
+ default: {
18
+ '@if': {
19
+ exists: { '@path': '$.userId' },
20
+ then: { '@path': '$.userId' },
21
+ else: { '@path': '$.anonymousId' }
22
+ }
23
+ }
24
+ },
25
+ event_type: {
26
+ label: 'Event Type',
27
+ description: 'The Segment event type (page, track, etc.)',
28
+ type: 'string',
29
+ default: {
30
+ '@path': '$.type'
31
+ }
32
+ },
33
+ ip_fwd: {
34
+ description: 'IP address of the user',
35
+ label: 'IP Address',
36
+ type: 'string',
37
+ default: {
38
+ '@path': '$.context.ip'
39
+ }
40
+ },
41
+ title: {
42
+ type: 'string',
43
+ description: 'The title of the page where the event occurred.',
44
+ label: 'Page Title',
45
+ default: { '@path': '$.context.page.title' }
46
+ },
47
+ url: {
48
+ type: 'string',
49
+ description: 'The URL of the page where the event occurred.',
50
+ label: 'URL',
51
+ default: { '@path': '$.context.page.url' }
52
+ },
53
+ referrer: {
54
+ type: 'string',
55
+ description: 'The referrer of the page where the event occurred.',
56
+ label: 'Referrer',
57
+ default: { '@path': '$.context.page.referrer' }
58
+ },
59
+ utm_source: {
60
+ type: 'string',
61
+ format: 'text',
62
+ label: 'UTM Source',
63
+ description: 'UTM source parameter associated with event',
64
+ default: { '@path': '$.context.campaign.source' }
65
+ },
66
+ user_agent: {
67
+ description: 'User-Agent of the user',
68
+ label: 'User Agent',
69
+ type: 'string',
70
+ default: {
71
+ '@path': '$.context.userAgent'
72
+ }
73
+ },
74
+ email: {
75
+ label: 'Email',
76
+ description: 'Email address of the individual who triggered the event.',
77
+ type: 'string',
78
+ format: 'email',
79
+ default: {
80
+ '@if': {
81
+ exists: { '@path': '$.traits.email' },
82
+ then: { '@path': '$.traits.email' },
83
+ else: { '@path': '$.properties.email' }
84
+ }
85
+ }
86
+ },
87
+ phone: {
88
+ label: 'Phone Number',
89
+ description: 'Phone number of the individual who triggered the event',
90
+ type: 'string',
91
+ default: {
92
+ '@if': {
93
+ exists: { '@path': '$.traits.phone' },
94
+ then: { '@path': '$.traits.phone' },
95
+ else: { '@path': '$.properties.phone' }
96
+ }
97
+ }
98
+ },
99
+ first_name: {
100
+ label: 'First Name',
101
+ description: 'First name of the individual who triggered the event.',
102
+ type: 'string',
103
+ default: {
104
+ '@if': {
105
+ exists: { '@path': '$.traits.first_name' },
106
+ then: { '@path': '$.traits.first_name' },
107
+ else: { '@path': '$.properties.first_name' }
108
+ }
109
+ }
110
+ },
111
+ last_name: {
112
+ label: 'Last Name',
113
+ description: 'Last name of the individual who triggered the event.',
114
+ type: 'string',
115
+ default: {
116
+ '@if': {
117
+ exists: { '@path': '$.traits.last_name' },
118
+ then: { '@path': '$.traits.last_name' },
119
+ else: { '@path': '$.properties.last_name' }
120
+ }
121
+ }
122
+ },
123
+ ecommerce_data: {
124
+ label: 'Ecommerce Data',
125
+ description: 'Additional ecommerce fields that are included in the pixel payload.',
126
+ type: 'object',
127
+ additionalProperties: true,
128
+ properties: {
129
+ action: {
130
+ label: 'Event Name',
131
+ description: 'The event name (e.g. Order Completed)',
132
+ type: 'string'
133
+ },
134
+ revenue: {
135
+ label: 'Revenue',
136
+ type: 'number',
137
+ description: 'The revenue generated from the event.'
138
+ },
139
+ order_id: {
140
+ label: 'Order ID',
141
+ type: 'string',
142
+ description: 'The ID of the order.'
143
+ },
144
+ product_price: {
145
+ label: 'Price',
146
+ type: 'number',
147
+ description: 'The price of the product.'
148
+ },
149
+ product_quantity: {
150
+ label: 'Quantity',
151
+ type: 'integer',
152
+ description: 'The quantity of the product.'
153
+ },
154
+ product_id: {
155
+ label: 'Product ID',
156
+ type: 'string',
157
+ description: 'An identifier for the product.'
158
+ },
159
+ product_category: {
160
+ label: 'Product Category',
161
+ type: 'string',
162
+ description: 'A category for the product.'
163
+ },
164
+ product_name: {
165
+ label: 'Product Name',
166
+ type: 'string',
167
+ description: 'The name of the product.'
168
+ }
169
+ },
170
+ default: {
171
+ action: { '@path': '$.event' },
172
+ revenue: { '@path': '$.properties.revenue' },
173
+ order_id: { '@path': '$.properties.order_id' },
174
+ product_price: { '@path': '$.properties.price' },
175
+ product_quantity: { '@path': '$.properties.quantity' },
176
+ product_id: { '@path': '$.properties.product_id' },
177
+ product_category: { '@path': '$.properties.category' },
178
+ product_name: { '@path': '$.properties.name' }
179
+ }
180
+ },
181
+ ecommerce_products: {
182
+ label: 'Products',
183
+ description: 'The list of products associated with the event (for events with multiple products, such as Order Completed)',
184
+ type: 'object',
185
+ multiple: true,
186
+ additionalProperties: true,
187
+ properties: {
188
+ product_price: {
189
+ label: 'Price',
190
+ type: 'number',
191
+ description: 'The price of the product.'
192
+ },
193
+ product_quantity: {
194
+ label: 'Quantity',
195
+ type: 'integer',
196
+ description: 'The quantity of the product.'
197
+ },
198
+ product_id: {
199
+ label: 'Product ID',
200
+ type: 'string',
201
+ description: 'An identifier for the product.'
202
+ },
203
+ product_category: {
204
+ label: 'Product Category',
205
+ type: 'string',
206
+ description: 'A category for the product.'
207
+ },
208
+ product_name: {
209
+ label: 'Product Name',
210
+ type: 'string',
211
+ description: 'The name of the product.'
212
+ }
213
+ },
214
+ default: {
215
+ '@arrayPath': [
216
+ '$.properties.products',
217
+ {
218
+ product_price: {
219
+ '@path': 'price'
220
+ },
221
+ product_quantity: {
222
+ '@path': 'quantity'
223
+ },
224
+ product_id: {
225
+ '@path': 'product_id'
226
+ },
227
+ product_category: {
228
+ '@path': 'category'
229
+ },
230
+ product_name: {
231
+ '@path': 'name'
232
+ }
233
+ }
234
+ ]
235
+ }
236
+ }
237
+ },
238
+ perform: async (request, { payload, settings }) => {
239
+ return request(`https://tags.srv.stackadapt.com/saq_pxl`, {
240
+ method: 'GET',
241
+ searchParams: getAvailableData(payload, settings),
242
+ headers: {
243
+ 'Content-Type': 'application/json',
244
+ 'X-Forwarded-For': payload.ip_fwd ?? '',
245
+ 'User-Agent': payload.user_agent ?? ''
246
+ }
247
+ });
248
+ }
249
+ };
250
+ function getAvailableData(payload, settings) {
251
+ const ecommerceData = {
252
+ ...payload.ecommerce_data,
253
+ ...(!isEmpty_1.default(payload.ecommerce_products) && { products: payload.ecommerce_products })
254
+ };
255
+ return {
256
+ segment_ss: '1',
257
+ event_type: payload.event_type ?? '',
258
+ title: payload.title ?? '',
259
+ url: payload.url ?? '',
260
+ ref: payload.referrer ?? '',
261
+ ip_fwd: payload.ip_fwd ?? '',
262
+ utm_source: payload.utm_source ?? '',
263
+ user_id: payload.user_id,
264
+ uid: settings.pixelId,
265
+ first_name: payload.first_name ?? '',
266
+ last_name: payload.last_name ?? '',
267
+ email: payload.email ?? '',
268
+ phone: payload.phone ?? '',
269
+ ...(!isEmpty_1.default(ecommerceData) && { args: JSON.stringify(ecommerceData) })
270
+ };
271
+ }
272
+ exports.default = action;
273
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/stackadapt/forwardEvent/index.ts"],"names":[],"mappings":";;;;;AAGA,6DAAoC;AAEpC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,8DAA8D;IAC3E,mBAAmB,EAAE,yEAAyE;IAC9F,MAAM,EAAE;QACN,OAAO,EAAE;YACP,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBAGP,KAAK,EAAE;oBACL,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;oBAC/B,IAAI,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;oBAC7B,IAAI,EAAE,EAAE,OAAO,EAAE,eAAe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+ export interface Settings {
2
+ pixelId: string;
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=generated-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/destinations/stackadapt/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type { DestinationDefinition } from '@segment/actions-core';
2
+ import type { Settings } from './generated-types';
3
+ declare const destination: DestinationDefinition<Settings>;
4
+ export default destination;
@@ -0,0 +1,38 @@
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 forwardEvent_1 = __importDefault(require("./forwardEvent"));
8
+ const destination = {
9
+ name: 'StackAdapt Cloud (Actions)',
10
+ slug: 'actions-stackadapt-cloud',
11
+ mode: 'cloud',
12
+ description: 'Forward Segment events to StackAdapt for tracking ad conversions, and generating lookalike and retargeting Audiences',
13
+ authentication: {
14
+ scheme: 'custom',
15
+ fields: {
16
+ pixelId: {
17
+ label: 'Universal Pixel ID',
18
+ description: 'Your StackAdapt Universal Pixel ID',
19
+ type: 'string',
20
+ required: true
21
+ }
22
+ }
23
+ },
24
+ presets: [
25
+ {
26
+ name: 'Forward Event',
27
+ subscribe: 'type = "identify" or type = "page" or type = "screen" or type = "track"',
28
+ partnerAction: 'forwardEvent',
29
+ mapping: actions_core_1.defaultValues(forwardEvent_1.default.fields),
30
+ type: 'automatic'
31
+ }
32
+ ],
33
+ actions: {
34
+ forwardEvent: forwardEvent_1.default
35
+ }
36
+ };
37
+ exports.default = destination;
38
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/stackadapt/index.ts"],"names":[],"mappings":";;;;;AAGA,wDAAqD;AACrD,kEAAyC;AAEzC,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,4BAA4B;IAClC,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE,OAAO;IACb,WAAW,EACT,sHAAsH;IACxH,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,OAAO,EAAE;gBACP,KAAK,EAAE,oBAAoB;gBAC3B,WAAW,EAAE,oCAAoC;gBACjD,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;SACF;KACF;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,eAAe;YACrB,SAAS,EAAE,yEAAyE;YACpF,aAAa,EAAE,cAAc;YAC7B,OAAO,EAAE,4BAAa,CAAC,sBAAY,CAAC,MAAM,CAAC;YAC3C,IAAI,EAAE,WAAW;SAClB;KACF;IACD,OAAO,EAAE;QACP,YAAY,EAAZ,sBAAY;KACb;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@segment/action-destinations",
3
3
  "description": "Destination Actions engine and definitions.",
4
- "version": "3.240.0",
4
+ "version": "3.242.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/segmentio/action-destinations",
@@ -43,8 +43,8 @@
43
43
  "@bufbuild/protobuf": "^1.4.2",
44
44
  "@bufbuild/protoc-gen-es": "^1.4.2",
45
45
  "@segment/a1-notation": "^2.1.4",
46
- "@segment/actions-core": "^3.95.0",
47
- "@segment/actions-shared": "^1.76.0",
46
+ "@segment/actions-core": "^3.96.0",
47
+ "@segment/actions-shared": "^1.77.0",
48
48
  "@types/node": "^18.11.15",
49
49
  "ajv-formats": "^2.1.1",
50
50
  "aws4": "^1.12.0",
@@ -85,5 +85,5 @@
85
85
  "__tests__/__helpers__/"
86
86
  ]
87
87
  },
88
- "gitHead": "45fdac01d8e8e067690d2162347b008771c144b4"
88
+ "gitHead": "021fb1843cf869ae8d985835211f47eed5a2909f"
89
89
  }