@segment/action-destinations 3.111.1-alpha.0 → 3.111.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.
Files changed (44) hide show
  1. package/dist/destinations/facebook-conversions-api/viewContent/index.js +1 -2
  2. package/dist/destinations/facebook-conversions-api/viewContent/index.js.map +1 -1
  3. package/dist/destinations/google-sheets/googleapis/index.js +1 -1
  4. package/dist/destinations/google-sheets/googleapis/index.js.map +1 -1
  5. package/dist/destinations/hubspot/{upsertCustomObjectRecord → createCustomObjectRecord}/generated-types.d.ts +0 -0
  6. package/dist/destinations/hubspot/{upsertCustomObjectRecord → createCustomObjectRecord}/generated-types.js +0 -0
  7. package/dist/destinations/hubspot/createCustomObjectRecord/generated-types.js.map +1 -0
  8. package/dist/destinations/hubspot/{upsertCustomObjectRecord → createCustomObjectRecord}/index.d.ts +0 -0
  9. package/dist/destinations/hubspot/{upsertCustomObjectRecord → createCustomObjectRecord}/index.js +2 -2
  10. package/dist/destinations/hubspot/{upsertCustomObjectRecord → createCustomObjectRecord}/index.js.map +1 -1
  11. package/dist/destinations/hubspot/index.js +2 -2
  12. package/dist/destinations/mixpanel/groupIdentifyUser/index.js +2 -5
  13. package/dist/destinations/mixpanel/groupIdentifyUser/index.js.map +1 -1
  14. package/dist/destinations/mixpanel/identifyUser/index.js +2 -11
  15. package/dist/destinations/mixpanel/identifyUser/index.js.map +1 -1
  16. package/dist/destinations/mixpanel/index.js +2 -10
  17. package/dist/destinations/mixpanel/index.js.map +1 -1
  18. package/dist/destinations/mixpanel/trackEvent/generated-types.d.ts +0 -3
  19. package/dist/destinations/mixpanel/trackEvent/index.js +1 -25
  20. package/dist/destinations/mixpanel/trackEvent/index.js.map +1 -1
  21. package/dist/destinations/mixpanel/trackEvent/types.d.ts +51 -0
  22. package/dist/destinations/mixpanel/{mixpanel-types.js → trackEvent/types.js} +1 -1
  23. package/dist/destinations/mixpanel/trackEvent/types.js.map +1 -0
  24. package/dist/destinations/sendgrid/sendgrid-properties.js +0 -3
  25. package/dist/destinations/sendgrid/sendgrid-properties.js.map +1 -1
  26. package/dist/destinations/twilio/sendSms/generated-types.d.ts +0 -1
  27. package/dist/destinations/twilio/sendSms/index.js +0 -6
  28. package/dist/destinations/twilio/sendSms/index.js.map +1 -1
  29. package/package.json +4 -5
  30. package/dist/destinations/hubspot/upsertCustomObjectRecord/generated-types.js.map +0 -1
  31. package/dist/destinations/mixpanel/mixpanel-properties.d.ts +0 -3
  32. package/dist/destinations/mixpanel/mixpanel-properties.js +0 -440
  33. package/dist/destinations/mixpanel/mixpanel-properties.js.map +0 -1
  34. package/dist/destinations/mixpanel/mixpanel-types.d.ts +0 -55
  35. package/dist/destinations/mixpanel/mixpanel-types.js.map +0 -1
  36. package/dist/destinations/mixpanel/trackEvent/functions.d.ts +0 -4
  37. package/dist/destinations/mixpanel/trackEvent/functions.js +0 -64
  38. package/dist/destinations/mixpanel/trackEvent/functions.js.map +0 -1
  39. package/dist/destinations/mixpanel/trackPurchase/generated-types.d.ts +0 -65
  40. package/dist/destinations/mixpanel/trackPurchase/generated-types.js +0 -3
  41. package/dist/destinations/mixpanel/trackPurchase/generated-types.js.map +0 -1
  42. package/dist/destinations/mixpanel/trackPurchase/index.d.ts +0 -5
  43. package/dist/destinations/mixpanel/trackPurchase/index.js +0 -80
  44. package/dist/destinations/mixpanel/trackPurchase/index.js.map +0 -1
@@ -1,440 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.productsProperties = exports.eventProperties = void 0;
4
- exports.eventProperties = {
5
- distinct_id: {
6
- label: 'Distinct ID',
7
- type: 'string',
8
- description: 'A distinct ID specified by you.',
9
- default: {
10
- '@if': {
11
- exists: { '@path': '$.userId' },
12
- then: { '@path': '$.userId' },
13
- else: { '@path': '$.anonymousId' }
14
- }
15
- }
16
- },
17
- group_id: {
18
- label: 'Group ID',
19
- type: 'string',
20
- description: 'The unique identifier of the group that performed this event.',
21
- default: {
22
- '@path': '$.context.groupId'
23
- }
24
- },
25
- insert_id: {
26
- label: 'Insert ID',
27
- type: 'string',
28
- description: 'A random id that is unique to an event. Mixpanel uses $insert_id to deduplicate events.',
29
- default: {
30
- '@path': '$.messageId'
31
- }
32
- },
33
- time: {
34
- label: 'Timestamp',
35
- type: 'datetime',
36
- description: 'The timestamp of the event. If time is not sent with the event, it will be set to the time our servers receive it.',
37
- default: {
38
- '@path': '$.timestamp'
39
- }
40
- },
41
- app_name: {
42
- label: 'App Name',
43
- type: 'string',
44
- description: 'The name of your application.',
45
- default: {
46
- '@path': '$.context.app.name'
47
- }
48
- },
49
- app_namespace: {
50
- label: 'App Namespace',
51
- type: 'string',
52
- description: 'The namespace of your application.',
53
- default: {
54
- '@path': '$.context.app.namespace'
55
- }
56
- },
57
- app_build: {
58
- label: 'App Build',
59
- type: 'string',
60
- description: 'The current build of your application.',
61
- default: {
62
- '@path': '$.context.app.build'
63
- }
64
- },
65
- app_version: {
66
- label: 'App Version',
67
- type: 'string',
68
- description: 'The current version of your application.',
69
- default: {
70
- '@path': '$.context.app.version'
71
- }
72
- },
73
- os_name: {
74
- label: 'OS Name',
75
- type: 'string',
76
- description: 'The name of the mobile operating system or browser that the user is using.',
77
- default: {
78
- '@path': '$.context.os.name'
79
- }
80
- },
81
- os_version: {
82
- label: 'OS Version',
83
- type: 'string',
84
- description: 'The version of the mobile operating system or browser the user is using.',
85
- default: {
86
- '@path': '$.context.os.version'
87
- }
88
- },
89
- device_id: {
90
- label: 'Device ID',
91
- type: 'string',
92
- description: 'A unique identifier for the device the user is using.',
93
- default: {
94
- '@path': '$.context.device.id'
95
- }
96
- },
97
- device_type: {
98
- label: 'Device Type',
99
- type: 'string',
100
- description: "The type of the user's device.",
101
- default: {
102
- '@path': '$.context.device.type'
103
- }
104
- },
105
- device_name: {
106
- label: 'Device Name',
107
- type: 'string',
108
- description: "The name of the user's device.",
109
- default: {
110
- '@path': '$.context.device.name'
111
- }
112
- },
113
- device_manufacturer: {
114
- label: 'Device Manufacturer',
115
- type: 'string',
116
- description: 'The device manufacturer that the user is using.',
117
- default: {
118
- '@path': '$.context.device.manufacturer'
119
- }
120
- },
121
- device_model: {
122
- label: 'Device Model',
123
- type: 'string',
124
- description: 'The device model that the user is using.',
125
- default: {
126
- '@path': '$.context.device.model'
127
- }
128
- },
129
- bluetooth: {
130
- label: 'Bluetooth Enabled',
131
- type: 'boolean',
132
- description: 'Whether bluetooth is enabled.',
133
- default: {
134
- '@path': '$.context.network.bluetooth'
135
- }
136
- },
137
- carrier: {
138
- label: 'Carrier',
139
- type: 'string',
140
- description: 'The carrier that the user is using.',
141
- default: {
142
- '@path': '$.context.network.carrier'
143
- }
144
- },
145
- cellular: {
146
- label: 'Cellular Enabled',
147
- type: 'boolean',
148
- description: 'Whether cellular is enabled.',
149
- default: {
150
- '@path': '$.context.network.cellular'
151
- }
152
- },
153
- wifi: {
154
- label: 'Wifi',
155
- type: 'boolean',
156
- description: 'Set to true if user’s device has an active, available Wifi connection, false if not.',
157
- default: {
158
- '@path': '$.context.network.wifi'
159
- }
160
- },
161
- country: {
162
- label: 'Country',
163
- type: 'string',
164
- description: 'The current country of the user.',
165
- default: {
166
- '@path': '$.context.location.country'
167
- }
168
- },
169
- region: {
170
- label: 'Region',
171
- type: 'string',
172
- description: 'The current region of the user.',
173
- default: {
174
- '@path': '$.context.location.region'
175
- }
176
- },
177
- language: {
178
- label: 'Language',
179
- type: 'string',
180
- description: 'The language set by the user.',
181
- default: {
182
- '@path': '$.context.locale'
183
- }
184
- },
185
- library_name: {
186
- label: 'Library Name',
187
- type: 'string',
188
- description: 'The name of the SDK used to send events.',
189
- default: {
190
- '@path': '$.context.library.name'
191
- }
192
- },
193
- library_version: {
194
- label: 'Library Version',
195
- type: 'string',
196
- description: 'The version of the SDK used to send events.',
197
- default: {
198
- '@path': '$.context.library.version'
199
- }
200
- },
201
- ip: {
202
- label: 'IP Address',
203
- type: 'string',
204
- description: "The IP address of the user. This is only used for geolocation and won't be stored.",
205
- default: {
206
- '@path': '$.context.ip'
207
- }
208
- },
209
- idfa: {
210
- label: 'Identifier For Advertiser (IDFA)',
211
- type: 'string',
212
- description: 'Identifier for Advertiser. _(iOS)_',
213
- default: {
214
- '@if': {
215
- exists: { '@path': '$.context.device.advertisingId' },
216
- then: { '@path': '$.context.device.advertisingId' },
217
- else: { '@path': '$.context.device.idfa' }
218
- }
219
- }
220
- },
221
- url: {
222
- label: 'URL',
223
- type: 'string',
224
- description: 'The full URL of the webpage on which the event is triggered.',
225
- default: {
226
- '@path': '$.context.page.url'
227
- }
228
- },
229
- screen_width: {
230
- label: 'Screen width',
231
- type: 'number',
232
- description: 'Width, in pixels, of the device screen.',
233
- default: {
234
- '@path': '$.context.screen.density'
235
- }
236
- },
237
- screen_height: {
238
- label: 'Screen height',
239
- type: 'number',
240
- description: 'Height, in pixels, of the device screen.',
241
- default: {
242
- '@path': '$.context.screen.density'
243
- }
244
- },
245
- screen_density: {
246
- label: 'Screen density',
247
- type: 'number',
248
- description: 'Pixel density of the device screen.',
249
- default: {
250
- '@path': '$.context.screen.density'
251
- }
252
- },
253
- referrer: {
254
- label: 'Referrer',
255
- type: 'string',
256
- description: 'Referrer url',
257
- default: {
258
- '@path': '$.context.page.referrer'
259
- }
260
- },
261
- userAgent: {
262
- label: 'User Agent',
263
- type: 'string',
264
- description: 'User agent',
265
- default: {
266
- '@path': '$.context.userAgent'
267
- }
268
- },
269
- event_properties: {
270
- label: 'Event Properties',
271
- type: 'object',
272
- description: 'An object of key-value pairs that represent additional data to be sent along with the event.',
273
- default: {
274
- '@path': '$.properties'
275
- }
276
- },
277
- user_properties: {
278
- label: 'User Properties',
279
- type: 'object',
280
- description: 'An object of key-value pairs that represent additional data tied to the user.',
281
- default: {
282
- '@path': '$.traits'
283
- }
284
- },
285
- utm_properties: {
286
- label: 'UTM Properties',
287
- type: 'object',
288
- description: 'UTM Tracking Properties',
289
- properties: {
290
- utm_source: {
291
- label: 'UTM Source',
292
- type: 'string'
293
- },
294
- utm_medium: {
295
- label: 'UTM Medium',
296
- type: 'string'
297
- },
298
- utm_campaign: {
299
- label: 'UTM Campaign',
300
- type: 'string'
301
- },
302
- utm_term: {
303
- label: 'UTM Term',
304
- type: 'string'
305
- },
306
- utm_content: {
307
- label: 'UTM Content',
308
- type: 'string'
309
- }
310
- },
311
- default: {
312
- utm_source: { '@path': '$.context.campaign.source' },
313
- utm_medium: { '@path': '$.context.campaign.medium' },
314
- utm_campaign: { '@path': '$.context.campaign.name' },
315
- utm_term: { '@path': '$.context.campaign.term' },
316
- utm_content: { '@path': '$.context.campaign.content' }
317
- }
318
- },
319
- enable_batching: {
320
- type: 'boolean',
321
- label: 'Batch Data to Mixpanel',
322
- description: 'Set as true to ensure Segment sends data to Mixpanel in batches.',
323
- default: true
324
- }
325
- };
326
- exports.productsProperties = {
327
- products: {
328
- label: 'Products',
329
- description: 'Products in the order.',
330
- type: 'object',
331
- multiple: true,
332
- additionalProperties: true,
333
- properties: {
334
- product_id: {
335
- label: 'Product Id',
336
- type: 'string',
337
- description: 'Database id of the product being viewed.'
338
- },
339
- sku: {
340
- label: 'SKU',
341
- type: 'string',
342
- description: 'Sku of the product being viewed.'
343
- },
344
- category: {
345
- label: 'Category',
346
- type: 'string',
347
- description: 'Product category being viewed.'
348
- },
349
- name: {
350
- label: 'Name',
351
- type: 'string',
352
- description: 'Name of the product being viewed.'
353
- },
354
- brand: {
355
- label: 'Brand',
356
- type: 'string',
357
- description: 'Brand associated with the product.'
358
- },
359
- variant: {
360
- label: 'Variant',
361
- type: 'string',
362
- description: 'Variant of the product.'
363
- },
364
- price: {
365
- label: 'Price',
366
- type: 'number',
367
- description: 'Price ($) of the product being viewed.'
368
- },
369
- quantity: {
370
- label: 'Quantity',
371
- type: 'integer',
372
- description: 'Quantity of a product.'
373
- },
374
- coupon: {
375
- label: 'Coupon',
376
- type: 'string',
377
- description: 'Coupon code associated with a product (for example, MAY_DEALS_3).'
378
- },
379
- position: {
380
- label: 'position',
381
- type: 'number',
382
- description: 'Position in the product list (ex. 3).'
383
- },
384
- url: {
385
- label: 'url',
386
- type: 'string',
387
- description: 'URL of the product page.'
388
- },
389
- image_url: {
390
- label: 'Image url',
391
- type: 'string',
392
- description: 'Image url of the product.'
393
- }
394
- },
395
- default: {
396
- '@arrayPath': [
397
- '$.properties.products',
398
- {
399
- product_id: {
400
- '@path': 'product_id'
401
- },
402
- sku: {
403
- '@path': 'sku'
404
- },
405
- category: {
406
- '@path': 'category'
407
- },
408
- name: {
409
- '@path': 'name'
410
- },
411
- brand: {
412
- '@path': 'brand'
413
- },
414
- variant: {
415
- '@path': 'variant'
416
- },
417
- price: {
418
- '@path': 'price'
419
- },
420
- quantity: {
421
- '@path': 'quantity'
422
- },
423
- coupon: {
424
- '@path': 'coupon'
425
- },
426
- position: {
427
- '@path': 'position'
428
- },
429
- url: {
430
- '@path': 'url'
431
- },
432
- image_url: {
433
- '@path': 'image_url'
434
- }
435
- }
436
- ]
437
- }
438
- }
439
- };
440
- //# sourceMappingURL=mixpanel-properties.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mixpanel-properties.js","sourceRoot":"","sources":["../../../src/destinations/mixpanel/mixpanel-properties.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAA+B;IACzD,WAAW,EAAE;QACX,KAAK,EAAE,aAAa;QACpB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,iCAAiC;QAC9C,OAAO,EAAE;YACP,KAAK,EAAE;gBACL,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;gBAC/B,IAAI,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;gBAC7B,IAAI,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE;aACnC;SACF;KACF;IACD,QAAQ,EAAE;QACR,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,+DAA+D;QAC5E,OAAO,EAAE;YACP,OAAO,EAAE,mBAAmB;SAC7B;KAC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AO;qBACjB;oBACD,OAAO,EAAE;wBACP,OAAO,EAAE,SAAS;qBACnB;oBACD,KAAK,EAAE;wBACL,OAAO,EAAE,OAAO;qBACjB;oBACD,QAAQ,EAAE;wBACR,OAAO,EAAE,UAAU;qBACpB;oBACD,MAAM,EAAE;wBACN,OAAO,EAAE,QAAQ;qBAClB;oBACD,QAAQ,EAAE;wBACR,OAAO,EAAE,UAAU;qBACpB;oBACD,GAAG,EAAE;wBACH,OAAO,EAAE,KAAK;qBACf;oBACD,SAAS,EAAE;wBACT,OAAO,EAAE,WAAW;qBACrB;iBACF;aACF;SACF;KACF;CACF,CAAA"}
@@ -1,55 +0,0 @@
1
- export declare type MixpanelEventProperties = {
2
- $anon_id?: string;
3
- $app_build_number?: string;
4
- $app_version_string?: string;
5
- $app_namespace?: string;
6
- $app_name?: string;
7
- $bluetooth_enabled?: boolean;
8
- $browser_version?: string;
9
- $browser?: string;
10
- $carrier?: string;
11
- $cellular_enabled?: boolean;
12
- $current_url?: string;
13
- $device?: string;
14
- $device_id?: string;
15
- $device_type?: string;
16
- $device_name?: string;
17
- $group_id?: string;
18
- $identified_id?: string;
19
- $insert_id?: string;
20
- $ios_app_release?: string;
21
- $ios_app_version?: string;
22
- $ios_device_model?: string;
23
- $ios_ifa?: string;
24
- $ios_version?: string;
25
- ip?: string;
26
- $lib_version?: string;
27
- $locale?: string;
28
- $manufacturer?: string;
29
- $model?: string;
30
- $mp_api_endpoint?: string;
31
- $os_version?: string;
32
- $os?: string;
33
- $referrer?: string;
34
- $screen_density?: number;
35
- $screen_height?: number;
36
- $screen_width?: number;
37
- $user_id?: string;
38
- $wifi_enabled?: boolean;
39
- $source: 'segment';
40
- distinct_id?: string | null;
41
- id?: string | null;
42
- mp_country_code?: string;
43
- mp_lib?: string;
44
- segment_source_name?: string;
45
- time?: number;
46
- utm_campaign?: string;
47
- utm_content?: string;
48
- utm_medium?: string;
49
- utm_source?: string;
50
- utm_term?: string;
51
- };
52
- export declare type MixpanelEvent = {
53
- event: string;
54
- properties: MixpanelEventProperties;
55
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"mixpanel-types.js","sourceRoot":"","sources":["../../../src/destinations/mixpanel/mixpanel-types.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- import type { Settings } from '../generated-types';
2
- import type { Payload } from './generated-types';
3
- import { MixpanelEventProperties } from '../mixpanel-types';
4
- export declare function getEventProperties(payload: Payload, settings: Settings): MixpanelEventProperties;
@@ -1,64 +0,0 @@
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
- exports.getEventProperties = void 0;
7
- const dayjs_1 = __importDefault(require("../../../lib/dayjs"));
8
- const utils_1 = require("../utils");
9
- function getEventProperties(payload, settings) {
10
- const datetime = payload.time;
11
- const time = datetime && dayjs_1.default.utc(datetime).isValid() ? dayjs_1.default.utc(datetime).valueOf() : Date.now();
12
- const utm = payload.utm_properties || {};
13
- let browser, browserVersion;
14
- if (payload.userAgent) {
15
- browser = utils_1.getBrowser(payload.userAgent, payload.device_manufacturer);
16
- browserVersion = utils_1.getBrowserVersion(payload.userAgent, payload.device_manufacturer);
17
- }
18
- return {
19
- time: time,
20
- ip: payload.ip,
21
- id: payload.distinct_id,
22
- distinct_id: payload.distinct_id,
23
- $app_build_number: payload.app_build,
24
- $app_version_string: payload.app_version,
25
- $app_namespace: payload.app_namespace,
26
- $app_name: payload.app_name,
27
- $browser: browser,
28
- $browser_version: browserVersion,
29
- $bluetooth_enabled: payload.bluetooth,
30
- $cellular_enabled: payload.cellular,
31
- $carrier: payload.carrier,
32
- $current_url: payload.url,
33
- $device: payload.device_name,
34
- $device_id: payload.device_id,
35
- $device_type: payload.device_type,
36
- $device_name: payload.device_name,
37
- $group_id: payload.group_id,
38
- $insert_id: payload.insert_id ?? utils_1.cheapGuid(),
39
- $ios_ifa: payload.idfa,
40
- $lib_version: payload.library_version,
41
- $locale: payload.language,
42
- $manufacturer: payload.device_manufacturer,
43
- $model: payload.device_model,
44
- $os: payload.os_name,
45
- $os_version: payload.os_version,
46
- $referrer: payload.referrer,
47
- $screen_height: payload.screen_height,
48
- $screen_width: payload.screen_width,
49
- $screen_density: payload.screen_density,
50
- $source: 'segment',
51
- $wifi_enabled: payload.wifi,
52
- mp_country_code: payload.country,
53
- mp_lib: payload.library_name && `Segment: ${payload.library_name}`,
54
- segment_source_name: settings.sourceName,
55
- utm_campaign: utm.utm_campaign,
56
- utm_content: utm.utm_content,
57
- utm_medium: utm.utm_medium,
58
- utm_source: utm.utm_source,
59
- utm_term: utm.utm_term,
60
- ...payload.event_properties
61
- };
62
- }
63
- exports.getEventProperties = getEventProperties;
64
- //# sourceMappingURL=functions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../../src/destinations/mixpanel/trackEvent/functions.ts"],"names":[],"mappings":";;;;;;AAGA,+DAAsC;AAEtC,oCAAmE;AAEnE,SAAgB,kBAAkB,CAAC,OAAgB,EAAE,QAAkB;IACnE,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAA;IAC7B,MAAM,IAAI,GAAG,QAAQ,IAAI,eAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,eAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAA;IAEnG,MAAM,GAAG,GAAG,OAAO,CAAC,cAAc,IAAI,EAAE,CAAA;IACxC,IAAI,OAAO,EAAE,cAAc,CAAA;IAC3B,IAAI,OAAO,CAAC,SAAS,EAAE;QACnB,OAAO,GAAG,kBAAU,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAA;QACpE,cAAc,GAAG,yBAAiB,CAAC,OAAO,CAAC,SAAS,EAAE,OA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C,IAAI;QAC3B,eAAe,EAAE,OAAO,CAAC,OAAO;QAChC,MAAM,EAAE,OAAO,CAAC,YAAY,IAAI,YAAa,OAAO,CAAC,YAAa,EAAE;QACpE,mBAAmB,EAAE,QAAQ,CAAC,UAAU;QACxC,YAAY,EAAE,GAAG,CAAC,YAAY;QAC9B,WAAW,EAAE,GAAG,CAAC,WAAW;QAC5B,UAAU,EAAE,GAAG,CAAC,UAAU;QAC1B,UAAU,EAAE,GAAG,CAAC,UAAU;QAC1B,QAAQ,EAAE,GAAG,CAAC,QAAQ;QACtB,GAAG,OAAO,CAAC,gBAAgB;KAC9B,CAAA;AACL,CAAC;AAtDD,gDAsDC"}
@@ -1,65 +0,0 @@
1
- export interface Payload {
2
- generatePurchaseEventPerProduct?: boolean;
3
- distinct_id?: string;
4
- group_id?: string;
5
- insert_id?: string;
6
- time?: string | number;
7
- app_name?: string;
8
- app_namespace?: string;
9
- app_build?: string;
10
- app_version?: string;
11
- os_name?: string;
12
- os_version?: string;
13
- device_id?: string;
14
- device_type?: string;
15
- device_name?: string;
16
- device_manufacturer?: string;
17
- device_model?: string;
18
- bluetooth?: boolean;
19
- carrier?: string;
20
- cellular?: boolean;
21
- wifi?: boolean;
22
- country?: string;
23
- region?: string;
24
- language?: string;
25
- library_name?: string;
26
- library_version?: string;
27
- ip?: string;
28
- idfa?: string;
29
- url?: string;
30
- screen_width?: number;
31
- screen_height?: number;
32
- screen_density?: number;
33
- referrer?: string;
34
- userAgent?: string;
35
- event_properties?: {
36
- [k: string]: unknown;
37
- };
38
- user_properties?: {
39
- [k: string]: unknown;
40
- };
41
- utm_properties?: {
42
- utm_source?: string;
43
- utm_medium?: string;
44
- utm_campaign?: string;
45
- utm_term?: string;
46
- utm_content?: string;
47
- };
48
- enable_batching?: boolean;
49
- products?: {
50
- product_id?: string;
51
- sku?: string;
52
- category?: string;
53
- name?: string;
54
- brand?: string;
55
- variant?: string;
56
- price?: number;
57
- quantity?: number;
58
- coupon?: string;
59
- position?: number;
60
- url?: string;
61
- image_url?: string;
62
- [k: string]: unknown;
63
- }[];
64
- event: string;
65
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=generated-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/mixpanel/trackPurchase/generated-types.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- import { ActionDefinition } from '@segment/actions-core';
2
- import type { Settings } from '../generated-types';
3
- import type { Payload } from './generated-types';
4
- declare const action: ActionDefinition<Settings, Payload>;
5
- export default action;