@segment/action-destinations 3.457.0 → 3.457.1-staging-2bbab8979.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 (140) hide show
  1. package/dist/destinations/amazon-amc/constants.d.ts +17 -0
  2. package/dist/destinations/amazon-amc/constants.js +25 -0
  3. package/dist/destinations/amazon-amc/constants.js.map +1 -0
  4. package/dist/destinations/amazon-amc/function.d.ts +4 -2
  5. package/dist/destinations/amazon-amc/function.js +44 -18
  6. package/dist/destinations/amazon-amc/function.js.map +1 -1
  7. package/dist/destinations/amazon-amc/generated-types.d.ts +5 -1
  8. package/dist/destinations/amazon-amc/index.js +89 -34
  9. package/dist/destinations/amazon-amc/index.js.map +1 -1
  10. package/dist/destinations/amazon-amc/syncAudiencesToDSP/index.js +1 -1
  11. package/dist/destinations/amazon-amc/syncAudiencesToDSP/index.js.map +1 -1
  12. package/dist/destinations/amazon-amc/types.d.ts +44 -0
  13. package/dist/destinations/amazon-amc/types.js +4 -1
  14. package/dist/destinations/amazon-amc/types.js.map +1 -1
  15. package/dist/destinations/amazon-amc/utils.d.ts +3 -49
  16. package/dist/destinations/amazon-amc/utils.js +10 -24
  17. package/dist/destinations/amazon-amc/utils.js.map +1 -1
  18. package/dist/destinations/amplitude/event-schema.js +30 -3
  19. package/dist/destinations/amplitude/event-schema.js.map +1 -1
  20. package/dist/destinations/amplitude/logEvent/generated-types.d.ts +4 -0
  21. package/dist/destinations/amplitude/logEvent/index.js +11 -3
  22. package/dist/destinations/amplitude/logEvent/index.js.map +1 -1
  23. package/dist/destinations/amplitude/logEventV2/generated-types.d.ts +4 -0
  24. package/dist/destinations/amplitude/logEventV2/index.js +10 -5
  25. package/dist/destinations/amplitude/logEventV2/index.js.map +1 -1
  26. package/dist/destinations/amplitude/logPurchase/generated-types.d.ts +4 -0
  27. package/dist/destinations/amplitude/logPurchase/index.js +10 -5
  28. package/dist/destinations/amplitude/logPurchase/index.js.map +1 -1
  29. package/dist/destinations/aws-kinesis/utils.js +3 -0
  30. package/dist/destinations/aws-kinesis/utils.js.map +1 -1
  31. package/dist/destinations/braze/ecommerce/constants.d.ts +8 -0
  32. package/dist/destinations/braze/ecommerce/constants.js +12 -0
  33. package/dist/destinations/braze/ecommerce/constants.js.map +1 -0
  34. package/dist/destinations/braze/ecommerce/fields.d.ts +25 -0
  35. package/dist/destinations/braze/ecommerce/fields.js +555 -0
  36. package/dist/destinations/braze/ecommerce/fields.js.map +1 -0
  37. package/dist/destinations/braze/ecommerce/functions.d.ts +10 -0
  38. package/dist/destinations/braze/ecommerce/functions.js +502 -0
  39. package/dist/destinations/braze/ecommerce/functions.js.map +1 -0
  40. package/dist/destinations/braze/ecommerce/generated-types.d.ts +40 -0
  41. package/dist/destinations/braze/ecommerce/generated-types.js +3 -0
  42. package/dist/destinations/braze/ecommerce/generated-types.js.map +1 -0
  43. package/dist/destinations/braze/ecommerce/index.d.ts +5 -0
  44. package/dist/destinations/braze/ecommerce/index.js +20 -0
  45. package/dist/destinations/braze/ecommerce/index.js.map +1 -0
  46. package/dist/destinations/braze/ecommerce/types.d.ts +123 -0
  47. package/dist/destinations/braze/ecommerce/types.js +3 -0
  48. package/dist/destinations/braze/ecommerce/types.js.map +1 -0
  49. package/dist/destinations/braze/ecommerceSingleProduct/generated-types.d.ts +38 -0
  50. package/dist/destinations/braze/ecommerceSingleProduct/generated-types.js +3 -0
  51. package/dist/destinations/braze/ecommerceSingleProduct/generated-types.js.map +1 -0
  52. package/dist/destinations/braze/ecommerceSingleProduct/index.d.ts +5 -0
  53. package/dist/destinations/braze/ecommerceSingleProduct/index.js +20 -0
  54. package/dist/destinations/braze/ecommerceSingleProduct/index.js.map +1 -0
  55. package/dist/destinations/braze/index.js +65 -5
  56. package/dist/destinations/braze/index.js.map +1 -1
  57. package/dist/destinations/customerio/index.js +1 -1
  58. package/dist/destinations/google-enhanced-conversions/functions.js +2 -6
  59. package/dist/destinations/google-enhanced-conversions/functions.js.map +1 -1
  60. package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js +1 -1
  61. package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js.map +1 -1
  62. package/dist/destinations/google-enhanced-conversions/uploadClickConversion2/index.js +1 -1
  63. package/dist/destinations/google-enhanced-conversions/uploadClickConversion2/index.js.map +1 -1
  64. package/dist/destinations/index.js +1 -0
  65. package/dist/destinations/index.js.map +1 -1
  66. package/dist/destinations/kafka/generated-types.d.ts +0 -3
  67. package/dist/destinations/kafka/index.js +0 -21
  68. package/dist/destinations/kafka/index.js.map +1 -1
  69. package/dist/destinations/kafka/send/generated-types.d.ts +1 -0
  70. package/dist/destinations/kafka/send/index.js +7 -0
  71. package/dist/destinations/kafka/send/index.js.map +1 -1
  72. package/dist/destinations/kafka/utils.js +0 -13
  73. package/dist/destinations/kafka/utils.js.map +1 -1
  74. package/dist/destinations/linkedin-audiences/updateAudience/fields.js.map +1 -1
  75. package/dist/destinations/linkedin-conversions/api/index.js +6 -2
  76. package/dist/destinations/linkedin-conversions/api/index.js.map +1 -1
  77. package/dist/destinations/linkedin-conversions/streamConversion/index.js.map +1 -1
  78. package/dist/destinations/memora/generated-types.d.ts +5 -0
  79. package/dist/destinations/memora/generated-types.js +3 -0
  80. package/dist/destinations/memora/generated-types.js.map +1 -0
  81. package/dist/destinations/memora/index.d.ts +6 -0
  82. package/dist/destinations/memora/index.js +69 -0
  83. package/dist/destinations/memora/index.js.map +1 -0
  84. package/dist/destinations/memora/upsertProfile/generated-types.d.ts +12 -0
  85. package/dist/destinations/memora/upsertProfile/generated-types.js +3 -0
  86. package/dist/destinations/memora/upsertProfile/generated-types.js.map +1 -0
  87. package/dist/destinations/memora/upsertProfile/index.d.ts +5 -0
  88. package/dist/destinations/memora/upsertProfile/index.js +297 -0
  89. package/dist/destinations/memora/upsertProfile/index.js.map +1 -0
  90. package/dist/destinations/salesforce-marketing-cloud/_tests_/asyncDataExtension.test.d.ts +1 -0
  91. package/dist/destinations/salesforce-marketing-cloud/_tests_/asyncDataExtension.test.js +96 -0
  92. package/dist/destinations/salesforce-marketing-cloud/_tests_/asyncDataExtension.test.js.map +1 -0
  93. package/dist/destinations/salesforce-marketing-cloud/asyncDataExtension/generated-types.d.ts +59 -0
  94. package/dist/destinations/salesforce-marketing-cloud/asyncDataExtension/generated-types.js +3 -0
  95. package/dist/destinations/salesforce-marketing-cloud/asyncDataExtension/generated-types.js.map +1 -0
  96. package/dist/destinations/salesforce-marketing-cloud/asyncDataExtension/index.d.ts +5 -0
  97. package/dist/destinations/salesforce-marketing-cloud/asyncDataExtension/index.js +82 -0
  98. package/dist/destinations/salesforce-marketing-cloud/asyncDataExtension/index.js.map +1 -0
  99. package/dist/destinations/salesforce-marketing-cloud/index.d.ts +1 -1
  100. package/dist/destinations/salesforce-marketing-cloud/index.js +3 -1
  101. package/dist/destinations/salesforce-marketing-cloud/index.js.map +1 -1
  102. package/dist/destinations/salesforce-marketing-cloud/sfmc-operations.d.ts +1 -0
  103. package/dist/destinations/salesforce-marketing-cloud/sfmc-operations.js +25 -0
  104. package/dist/destinations/salesforce-marketing-cloud/sfmc-operations.js.map +1 -1
  105. package/dist/destinations/snap-audiences/index.js.map +1 -1
  106. package/dist/destinations/snap-audiences/syncAudience/fields.js +2 -2
  107. package/dist/destinations/snap-audiences/syncAudience/fields.js.map +1 -1
  108. package/dist/destinations/snap-audiences/syncAudience/functions.js +27 -6
  109. package/dist/destinations/snap-audiences/syncAudience/functions.js.map +1 -1
  110. package/dist/destinations/snap-audiences/syncAudience/types.d.ts +1 -1
  111. package/dist/destinations/stackadapt-audiences/forwardAudienceEvent/constants.js +11 -11
  112. package/dist/destinations/stackadapt-audiences/forwardAudienceEvent/fields.js +9 -3
  113. package/dist/destinations/stackadapt-audiences/forwardAudienceEvent/fields.js.map +1 -1
  114. package/dist/destinations/stackadapt-audiences/forwardAudienceEvent/functions.js +2 -2
  115. package/dist/destinations/stackadapt-audiences/forwardAudienceEvent/functions.js.map +1 -1
  116. package/dist/destinations/taguchi/syncUserProfile/utils.js.map +1 -1
  117. package/dist/destinations/the-trade-desk-crm/functions.d.ts +2 -2
  118. package/dist/destinations/the-trade-desk-crm/functions.js +76 -18
  119. package/dist/destinations/the-trade-desk-crm/functions.js.map +1 -1
  120. package/dist/destinations/tiktok-app-events/index.js +1 -1
  121. package/dist/destinations/tiktok-app-events/index.js.map +1 -1
  122. package/dist/destinations/tiktok-app-events/reportAppEvent/constants.js.map +1 -1
  123. package/dist/destinations/tiktok-app-events/reportAppEvent/fields/common_fields.js +29 -29
  124. package/dist/destinations/tiktok-app-events/reportAppEvent/fields/common_fields.js.map +1 -1
  125. package/dist/destinations/tiktok-app-events/reportAppEvent/utils.js +4 -3
  126. package/dist/destinations/tiktok-app-events/reportAppEvent/utils.js.map +1 -1
  127. package/dist/destinations/twilio-messaging/sendMessage/constants.d.ts +3 -3
  128. package/dist/destinations/twilio-messaging/sendMessage/constants.js +3 -3
  129. package/dist/destinations/twilio-messaging/sendMessage/constants.js.map +1 -1
  130. package/dist/destinations/twilio-messaging/sendMessage/fields.js.map +1 -1
  131. package/dist/destinations/twilio-messaging/sendMessage/utils.js.map +1 -1
  132. package/dist/destinations/yonoma/trackEvent/index.js +1 -1
  133. package/dist/destinations/yonoma/trackEvent/index.js.map +1 -1
  134. package/dist/destinations/yonoma/trackPageView/index.js +1 -1
  135. package/dist/destinations/yonoma/trackPageView/index.js.map +1 -1
  136. package/dist/destinations/yonoma/upsertContact/index.js +3 -3
  137. package/dist/destinations/yonoma/upsertContact/index.js.map +1 -1
  138. package/dist/destinations/zapier/send/constants.js.map +1 -1
  139. package/dist/destinations/zapier/send/index.js.map +1 -1
  140. package/package.json +4 -4
@@ -0,0 +1,555 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.commonFields = exports.product = exports.products = void 0;
4
+ const functions_1 = require("./functions");
5
+ const constants_1 = require("./constants");
6
+ const name = {
7
+ label: 'Ecommerce Event Name',
8
+ description: 'The name of the Braze ecommerce recommended event',
9
+ type: 'string',
10
+ required: true,
11
+ choices: [
12
+ { label: 'Product Viewed', value: constants_1.EVENT_NAMES.PRODUCT_VIEWED },
13
+ { label: 'Cart Updated', value: constants_1.EVENT_NAMES.CART_UPDATED },
14
+ { label: 'Checkout Started', value: constants_1.EVENT_NAMES.CHECKOUT_STARTED },
15
+ { label: 'Order Placed', value: constants_1.EVENT_NAMES.ORDER_PLACED },
16
+ { label: 'Order Cancelled', value: constants_1.EVENT_NAMES.ORDER_CANCELLED },
17
+ { label: 'Order Refunded', value: constants_1.EVENT_NAMES.ORDER_REFUNDED }
18
+ ]
19
+ };
20
+ const external_id = {
21
+ label: 'External User ID',
22
+ description: 'The unique user identifier',
23
+ type: 'string',
24
+ default: { '@path': '$.userId' }
25
+ };
26
+ const user_alias = {
27
+ label: 'User Alias Object',
28
+ description: 'A user alias object. See [the docs](https://www.braze.com/docs/api/objects_filters/user_alias_object/).',
29
+ type: 'object',
30
+ defaultObjectUI: 'keyvalue',
31
+ additionalProperties: false,
32
+ properties: {
33
+ alias_name: {
34
+ label: 'Alias Name',
35
+ type: 'string',
36
+ required: true
37
+ },
38
+ alias_label: {
39
+ label: 'Alias Label',
40
+ type: 'string',
41
+ required: true
42
+ }
43
+ }
44
+ };
45
+ const _update_existing_only = {
46
+ label: 'Update Existing Only',
47
+ description: 'When this flag is set to true, Braze will only update existing profiles and will not create any new ones.',
48
+ type: 'boolean',
49
+ default: false
50
+ };
51
+ const email = {
52
+ label: 'Email',
53
+ description: 'The user email',
54
+ type: 'string',
55
+ default: {
56
+ '@if': {
57
+ exists: { '@path': '$.context.traits.email' },
58
+ then: { '@path': '$.context.traits.email' },
59
+ else: { '@path': '$.properties.email' }
60
+ }
61
+ }
62
+ };
63
+ const phone = {
64
+ label: 'Phone Number',
65
+ description: "The user's phone number",
66
+ type: 'string',
67
+ allowNull: true,
68
+ default: {
69
+ '@if': {
70
+ exists: { '@path': '$.context.traits.phone' },
71
+ then: { '@path': '$.context.traits.phone' },
72
+ else: { '@path': '$.properties.phone' }
73
+ }
74
+ }
75
+ };
76
+ const braze_id = {
77
+ label: 'Braze User Identifier',
78
+ description: 'The unique user identifier',
79
+ type: 'string',
80
+ allowNull: true,
81
+ default: {
82
+ '@if': {
83
+ exists: { '@path': '$.context.traits.braze_id' },
84
+ then: { '@path': '$.context.traits.braze_id' },
85
+ else: { '@path': '$.properties.braze_id' }
86
+ }
87
+ }
88
+ };
89
+ const cancel_reason = {
90
+ label: 'Cancel Reason',
91
+ description: 'Reason why the order was cancelled.',
92
+ type: 'string',
93
+ default: { '@path': '$.properties.reason' },
94
+ required: {
95
+ match: 'any',
96
+ conditions: [
97
+ {
98
+ fieldKey: 'name',
99
+ operator: 'is',
100
+ value: constants_1.EVENT_NAMES.ORDER_CANCELLED
101
+ }
102
+ ]
103
+ },
104
+ depends_on: {
105
+ match: 'any',
106
+ conditions: [
107
+ {
108
+ fieldKey: 'name',
109
+ operator: 'is',
110
+ value: constants_1.EVENT_NAMES.ORDER_CANCELLED
111
+ }
112
+ ]
113
+ }
114
+ };
115
+ const time = {
116
+ label: 'Time',
117
+ description: 'Timestamp for when the event occurred.',
118
+ type: 'string',
119
+ format: 'date-time',
120
+ required: true,
121
+ default: { '@path': '$.timestamp' }
122
+ };
123
+ const checkout_id = {
124
+ label: 'Checkout ID',
125
+ description: 'Unique identifier for the checkout.',
126
+ type: 'string',
127
+ default: { '@path': '$.properties.checkout_id' },
128
+ required: {
129
+ match: 'any',
130
+ conditions: [
131
+ {
132
+ fieldKey: 'name',
133
+ operator: 'is',
134
+ value: constants_1.EVENT_NAMES.CHECKOUT_STARTED
135
+ }
136
+ ]
137
+ },
138
+ depends_on: {
139
+ match: 'any',
140
+ conditions: [
141
+ {
142
+ fieldKey: 'name',
143
+ operator: 'is',
144
+ value: constants_1.EVENT_NAMES.CHECKOUT_STARTED
145
+ }
146
+ ]
147
+ }
148
+ };
149
+ const order_id = {
150
+ label: 'Order ID',
151
+ description: 'Unique identifier for the order placed.',
152
+ type: 'string',
153
+ default: { '@path': '$.properties.order_id' },
154
+ required: {
155
+ match: 'any',
156
+ conditions: [
157
+ {
158
+ fieldKey: 'name',
159
+ operator: 'is',
160
+ value: constants_1.EVENT_NAMES.ORDER_PLACED
161
+ },
162
+ {
163
+ fieldKey: 'name',
164
+ operator: 'is',
165
+ value: constants_1.EVENT_NAMES.ORDER_CANCELLED
166
+ },
167
+ {
168
+ fieldKey: 'name',
169
+ operator: 'is',
170
+ value: constants_1.EVENT_NAMES.ORDER_REFUNDED
171
+ }
172
+ ]
173
+ },
174
+ depends_on: {
175
+ match: 'any',
176
+ conditions: [
177
+ {
178
+ fieldKey: 'name',
179
+ operator: 'is',
180
+ value: constants_1.EVENT_NAMES.ORDER_PLACED
181
+ },
182
+ {
183
+ fieldKey: 'name',
184
+ operator: 'is',
185
+ value: constants_1.EVENT_NAMES.ORDER_CANCELLED
186
+ },
187
+ {
188
+ fieldKey: 'name',
189
+ operator: 'is',
190
+ value: constants_1.EVENT_NAMES.ORDER_REFUNDED
191
+ }
192
+ ]
193
+ }
194
+ };
195
+ const cart_id = {
196
+ label: 'Cart ID',
197
+ description: 'Unique identifier for the cart. If no value is passed, Braze will determine a default value (shared across cart, checkout, and order events) for the user cart mapping.',
198
+ type: 'string',
199
+ default: { '@path': '$.properties.cart_id' },
200
+ required: {
201
+ match: 'any',
202
+ conditions: [
203
+ {
204
+ fieldKey: 'name',
205
+ operator: 'is',
206
+ value: [constants_1.EVENT_NAMES.CART_UPDATED]
207
+ }
208
+ ]
209
+ },
210
+ depends_on: {
211
+ match: 'any',
212
+ conditions: [
213
+ {
214
+ fieldKey: 'name',
215
+ operator: 'is',
216
+ value: constants_1.EVENT_NAMES.CART_UPDATED
217
+ },
218
+ {
219
+ fieldKey: 'name',
220
+ operator: 'is',
221
+ value: constants_1.EVENT_NAMES.CHECKOUT_STARTED
222
+ },
223
+ {
224
+ fieldKey: 'name',
225
+ operator: 'is',
226
+ value: constants_1.EVENT_NAMES.ORDER_PLACED
227
+ }
228
+ ]
229
+ }
230
+ };
231
+ const total_value = {
232
+ label: 'Total Value',
233
+ description: 'Total monetary value of the cart.',
234
+ type: 'number',
235
+ default: { '@path': '$.properties.total' },
236
+ required: {
237
+ match: 'any',
238
+ conditions: [
239
+ {
240
+ fieldKey: 'name',
241
+ operator: 'is',
242
+ value: constants_1.EVENT_NAMES.CHECKOUT_STARTED
243
+ },
244
+ {
245
+ fieldKey: 'name',
246
+ operator: 'is',
247
+ value: constants_1.EVENT_NAMES.CART_UPDATED
248
+ },
249
+ {
250
+ fieldKey: 'name',
251
+ operator: 'is',
252
+ value: constants_1.EVENT_NAMES.ORDER_PLACED
253
+ },
254
+ {
255
+ fieldKey: 'name',
256
+ operator: 'is',
257
+ value: constants_1.EVENT_NAMES.ORDER_CANCELLED
258
+ },
259
+ {
260
+ fieldKey: 'name',
261
+ operator: 'is',
262
+ value: constants_1.EVENT_NAMES.ORDER_REFUNDED
263
+ }
264
+ ]
265
+ },
266
+ depends_on: {
267
+ match: 'any',
268
+ conditions: [
269
+ {
270
+ fieldKey: 'name',
271
+ operator: 'is',
272
+ value: constants_1.EVENT_NAMES.CHECKOUT_STARTED
273
+ },
274
+ {
275
+ fieldKey: 'name',
276
+ operator: 'is',
277
+ value: constants_1.EVENT_NAMES.CART_UPDATED
278
+ },
279
+ {
280
+ fieldKey: 'name',
281
+ operator: 'is',
282
+ value: constants_1.EVENT_NAMES.ORDER_PLACED
283
+ },
284
+ {
285
+ fieldKey: 'name',
286
+ operator: 'is',
287
+ value: constants_1.EVENT_NAMES.ORDER_CANCELLED
288
+ },
289
+ {
290
+ fieldKey: 'name',
291
+ operator: 'is',
292
+ value: constants_1.EVENT_NAMES.ORDER_REFUNDED
293
+ }
294
+ ]
295
+ }
296
+ };
297
+ const total_discounts = {
298
+ label: 'Total Discounts',
299
+ description: 'Total amount of discounts applied to the order.',
300
+ type: 'number',
301
+ default: { '@path': '$.properties.discount' },
302
+ required: false,
303
+ depends_on: {
304
+ match: 'any',
305
+ conditions: [
306
+ {
307
+ fieldKey: 'name',
308
+ operator: 'is',
309
+ value: constants_1.EVENT_NAMES.ORDER_PLACED
310
+ },
311
+ {
312
+ fieldKey: 'name',
313
+ operator: 'is',
314
+ value: constants_1.EVENT_NAMES.ORDER_CANCELLED
315
+ },
316
+ {
317
+ fieldKey: 'name',
318
+ operator: 'is',
319
+ value: constants_1.EVENT_NAMES.ORDER_REFUNDED
320
+ }
321
+ ]
322
+ }
323
+ };
324
+ const discounts = {
325
+ label: 'Discounts',
326
+ description: 'Details of all discounts applied to the order.',
327
+ type: 'object',
328
+ multiple: true,
329
+ defaultObjectUI: 'keyvalue',
330
+ additionalProperties: false,
331
+ properties: {
332
+ code: {
333
+ label: 'Discount Code',
334
+ type: 'string',
335
+ required: true
336
+ },
337
+ amount: {
338
+ label: 'Discount Amount',
339
+ type: 'number',
340
+ required: true
341
+ }
342
+ },
343
+ default: {
344
+ '@arrayPath': [
345
+ '$.properties,discount_items',
346
+ {
347
+ code: { '@path': '$.code' },
348
+ amount: { '@path': '$.amount' }
349
+ }
350
+ ]
351
+ },
352
+ required: false,
353
+ depends_on: {
354
+ match: 'any',
355
+ conditions: [
356
+ {
357
+ fieldKey: 'name',
358
+ operator: 'is',
359
+ value: constants_1.EVENT_NAMES.ORDER_PLACED
360
+ },
361
+ {
362
+ fieldKey: 'name',
363
+ operator: 'is',
364
+ value: constants_1.EVENT_NAMES.ORDER_CANCELLED
365
+ },
366
+ {
367
+ fieldKey: 'name',
368
+ operator: 'is',
369
+ value: constants_1.EVENT_NAMES.ORDER_REFUNDED
370
+ }
371
+ ]
372
+ }
373
+ };
374
+ const currency = {
375
+ label: 'Currency',
376
+ description: 'Currency code for the transaction. Defaults to USD if no value passed.',
377
+ type: 'string',
378
+ required: true,
379
+ default: { '@path': '$.properties.currency' },
380
+ choices: (0, functions_1.currencies)()
381
+ };
382
+ const source = {
383
+ label: 'Source',
384
+ description: 'Source the event is derived from.',
385
+ type: 'string',
386
+ required: true,
387
+ default: { '@path': '$.properties.source' }
388
+ };
389
+ exports.products = {
390
+ label: 'Products',
391
+ description: 'List of products associated with the ecommerce event. Standard product fields are mapped by default. Any additional fields added into a product item will be sent as product level metadata.',
392
+ type: 'object',
393
+ multiple: true,
394
+ additionalProperties: true,
395
+ required: true,
396
+ defaultObjectUI: 'keyvalue',
397
+ properties: {
398
+ product_id: {
399
+ label: 'Product ID',
400
+ description: 'A unique identifier for the product that was viewed. This value be can be the product ID or SKU',
401
+ type: 'string',
402
+ required: true
403
+ },
404
+ product_name: {
405
+ label: 'Product Name',
406
+ description: 'The name of the product that was viewed.',
407
+ type: 'string',
408
+ required: true
409
+ },
410
+ variant_id: {
411
+ label: 'Variant ID',
412
+ description: 'A unique identifier for the product variant. An example is shirt_medium_blue',
413
+ type: 'string',
414
+ required: true
415
+ },
416
+ image_url: {
417
+ label: 'Image URL',
418
+ description: 'The URL of the product image.',
419
+ type: 'string',
420
+ format: 'uri'
421
+ },
422
+ product_url: {
423
+ label: 'Product URL',
424
+ description: 'URL to the product page for more details.',
425
+ type: 'string',
426
+ format: 'uri'
427
+ },
428
+ quantity: {
429
+ label: 'Quantity',
430
+ description: 'Number of units of the product in the cart.',
431
+ type: 'number',
432
+ required: true
433
+ },
434
+ price: {
435
+ label: 'Price',
436
+ description: 'The variant unit price of the product at the time of viewing.',
437
+ type: 'number',
438
+ required: true
439
+ }
440
+ },
441
+ default: {
442
+ '@arrayPath': [
443
+ '$.properties.products',
444
+ {
445
+ product_id: { '@path': '$.product_id' },
446
+ product_name: { '@path': '$.name' },
447
+ variant_id: { '@path': '$.variant' },
448
+ image_url: { '@path': '$.image_url' },
449
+ product_url: { '@path': '$.url' },
450
+ quantity: { '@path': '$.quantity' },
451
+ price: { '@path': '$.price' }
452
+ }
453
+ ]
454
+ }
455
+ };
456
+ exports.product = {
457
+ label: 'Product',
458
+ description: 'Product details associated with the ecommerce event.',
459
+ type: 'object',
460
+ additionalProperties: false,
461
+ required: true,
462
+ defaultObjectUI: 'keyvalue',
463
+ properties: {
464
+ product_id: {
465
+ label: 'Product ID',
466
+ description: 'A unique identifier for the product that was viewed. This value be can be the product ID or SKU',
467
+ type: 'string',
468
+ required: true
469
+ },
470
+ product_name: {
471
+ label: 'Product Name',
472
+ description: 'The name of the product that was viewed.',
473
+ type: 'string',
474
+ required: true
475
+ },
476
+ variant_id: {
477
+ label: 'Variant ID',
478
+ description: 'A unique identifier for the product variant. An example is shirt_medium_blue',
479
+ type: 'string',
480
+ required: true
481
+ },
482
+ image_url: {
483
+ label: 'Image URL',
484
+ description: 'The URL of the product image.',
485
+ type: 'string',
486
+ format: 'uri'
487
+ },
488
+ product_url: {
489
+ label: 'Product URL',
490
+ description: 'URL to the product page for more details.',
491
+ type: 'string',
492
+ format: 'uri'
493
+ },
494
+ price: {
495
+ label: 'Price',
496
+ description: 'The variant unit price of the product at the time of viewing.',
497
+ type: 'number',
498
+ required: true
499
+ }
500
+ },
501
+ default: {
502
+ product_id: { '@path': '$.properties.product_id' },
503
+ product_name: { '@path': '$.properties.name' },
504
+ variant_id: { '@path': '$.properties.variant' },
505
+ image_url: { '@path': '$.properties.image_url' },
506
+ product_url: { '@path': '$.properties.url' },
507
+ price: { '@path': '$.properties.price' }
508
+ }
509
+ };
510
+ const metadata = {
511
+ label: 'Metadata',
512
+ description: 'Additional metadata for the ecommerce event.',
513
+ type: 'object',
514
+ additionalProperties: true,
515
+ defaultObjectUI: 'keyvalue'
516
+ };
517
+ const enable_batching = {
518
+ type: 'boolean',
519
+ label: 'Batch Data to Braze',
520
+ description: 'If true, Segment will batch events before sending to Braze’s user track endpoint.',
521
+ required: true,
522
+ default: true
523
+ };
524
+ const batch_size = {
525
+ label: 'Maximum Batch Size',
526
+ description: 'Maximum number of events to include in each batch. Actual batch sizes may be lower.',
527
+ type: 'number',
528
+ required: true,
529
+ default: 75,
530
+ minimum: 2,
531
+ maximum: 75
532
+ };
533
+ exports.commonFields = {
534
+ name,
535
+ external_id,
536
+ user_alias,
537
+ _update_existing_only,
538
+ email,
539
+ phone,
540
+ braze_id,
541
+ cancel_reason,
542
+ time,
543
+ checkout_id,
544
+ order_id,
545
+ cart_id,
546
+ total_value,
547
+ total_discounts,
548
+ discounts,
549
+ currency,
550
+ source,
551
+ metadata,
552
+ enable_batching,
553
+ batch_size
554
+ };
555
+ //# sourceMappingURL=fields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../src/destinations/braze/ecommerce/fields.ts"],"names":[],"mappings":";;;AACA,2CAAwC;AACxC,2CAAyC;AAEzC,MAAM,IAAI,GAAe;IACvB,KAAK,EAAE,sBAAsB;IAC7B,WAAW,EAAE,mDAAmD;IAChE,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE;QACP,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,uBAAW,CAAC,cAAc,EAAE;QAC9D,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,uBAAW,CAAC,YAAY,EAAE;QAC1D,EAAE,KAAK,EAAE,kBAAkB,EAAE,KAAK,EAAE,uBAAW,CAAC,gBAAgB,EAAE;QAClE,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,uBAAW,CAAC,YAAY,EAAE;QAC1D,EAAE,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,uBAAW,CAAC,eAAe,EAAE;QAChE,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,uBAAW,CAAC,cAAc,EAAE;KAC/D;CACF,CAAA;AAED,MAAM,WAAW,GAAe;IAC9B,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,4BAA4B;IACzC,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;CACjC,CAAA;AAED,MAAM,UAAU,GAAe;IAC7B,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EACT,yGAAyG;IAC3G,IAA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ACf;KACF;IACD,OAAO,EAAE;QACP,UAAU,EAAE,EAAE,OAAO,EAAE,yBAAyB,EAAE;QAClD,YAAY,EAAE,EAAE,OAAO,EAAE,mBAAmB,EAAE;QAC9C,UAAU,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE;QAC/C,SAAS,EAAE,EAAE,OAAO,EAAE,wBAAwB,EAAE;QAChD,WAAW,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE;QAC5C,KAAK,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;KACzC;CACF,CAAA;AAED,MAAM,QAAQ,GAAe;IAC3B,KAAK,EAAE,UAAU;IACjB,WAAW,EAAE,8CAA8C;IAC3D,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,IAAI;IAC1B,eAAe,EAAE,UAAU;CAC5B,CAAA;AAED,MAAM,eAAe,GAAe;IAClC,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EAAE,mFAAmF;IAChG,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE,IAAI;CACd,CAAA;AAED,MAAM,UAAU,GAAe;IAC7B,KAAK,EAAE,oBAAoB;IAC3B,WAAW,EAAE,qFAAqF;IAClG,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,CAAC;IACV,OAAO,EAAE,EAAE;CACZ,CAAA;AAEY,QAAA,YAAY,GAAG;IAC1B,IAAI;IACJ,WAAW;IACX,UAAU;IACV,qBAAqB;IACrB,KAAK;IACL,KAAK;IACL,QAAQ;IACR,aAAa;IACb,IAAI;IACJ,WAAW;IACX,QAAQ;IACR,OAAO;IACP,WAAW;IACX,eAAe;IACf,SAAS;IACT,QAAQ;IACR,MAAM;IACN,QAAQ;IACR,eAAe;IACf,UAAU;CACX,CAAA"}
@@ -0,0 +1,10 @@
1
+ import { Payload } from './generated-types';
2
+ import { Payload as SingleProductPayload } from '../ecommerceSingleProduct/generated-types';
3
+ import { Settings } from '../generated-types';
4
+ import { BrazeTrackUserAPIResponse } from '../utils';
5
+ import { RequestClient, MultiStatusResponse } from '@segment/actions-core';
6
+ export declare function send(request: RequestClient, payloads: (Payload | SingleProductPayload)[], settings: Settings, isBatch: boolean): Promise<MultiStatusResponse | import("@segment/actions-core/src").ModifiedResponse<BrazeTrackUserAPIResponse>>;
7
+ export declare function currencies(): {
8
+ label: string;
9
+ value: string;
10
+ }[];