@segment/action-destinations 3.246.0 → 3.248.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 (201) hide show
  1. package/dist/destinations/algolia-insights/algolia-insight-api.d.ts +10 -0
  2. package/dist/destinations/algolia-insights/conversionEvents/generated-types.d.ts +7 -0
  3. package/dist/destinations/algolia-insights/conversionEvents/index.js +76 -10
  4. package/dist/destinations/algolia-insights/conversionEvents/index.js.map +1 -1
  5. package/dist/destinations/algolia-insights/productAddedEvents/index.js +3 -3
  6. package/dist/destinations/algolia-insights/productAddedEvents/index.js.map +1 -1
  7. package/dist/destinations/algolia-insights/productClickedEvents/index.js +3 -3
  8. package/dist/destinations/algolia-insights/productClickedEvents/index.js.map +1 -1
  9. package/dist/destinations/algolia-insights/productListFilteredEvents/index.js +3 -3
  10. package/dist/destinations/algolia-insights/productListFilteredEvents/index.js.map +1 -1
  11. package/dist/destinations/algolia-insights/productViewedEvents/index.js +3 -3
  12. package/dist/destinations/algolia-insights/productViewedEvents/index.js.map +1 -1
  13. package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js +10 -2
  14. package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js.map +1 -1
  15. package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js +11 -3
  16. package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js.map +1 -1
  17. package/dist/destinations/engage/utils/Profile.d.ts +1 -1
  18. package/dist/destinations/engage/utils/track.d.ts +17 -17
  19. package/dist/destinations/google-enhanced-conversions/functions.d.ts +2 -2
  20. package/dist/destinations/google-enhanced-conversions/functions.js +5 -4
  21. package/dist/destinations/google-enhanced-conversions/functions.js.map +1 -1
  22. package/dist/destinations/google-enhanced-conversions/uploadCallConversion/index.js +2 -2
  23. package/dist/destinations/google-enhanced-conversions/uploadCallConversion/index.js.map +1 -1
  24. package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js +2 -2
  25. package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js.map +1 -1
  26. package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js +2 -2
  27. package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js.map +1 -1
  28. package/dist/destinations/index.js +1 -0
  29. package/dist/destinations/index.js.map +1 -1
  30. package/dist/destinations/kafka/generated-types.d.ts +8 -0
  31. package/dist/destinations/kafka/generated-types.js.map +1 -0
  32. package/dist/destinations/kafka/index.d.ts +4 -0
  33. package/dist/destinations/kafka/index.js +70 -0
  34. package/dist/destinations/kafka/index.js.map +1 -0
  35. package/dist/destinations/kafka/send/generated-types.d.ts +12 -0
  36. package/dist/destinations/kafka/send/generated-types.js.map +1 -0
  37. package/dist/destinations/kafka/send/index.js +58 -0
  38. package/dist/destinations/kafka/send/index.js.map +1 -0
  39. package/dist/destinations/kafka/utils.d.ts +7 -0
  40. package/dist/destinations/kafka/utils.js +62 -0
  41. package/dist/destinations/kafka/utils.js.map +1 -0
  42. package/dist/destinations/linkedin-conversions/streamConversion/index.js +33 -3
  43. package/dist/destinations/linkedin-conversions/streamConversion/index.js.map +1 -1
  44. package/dist/destinations/optimizely-data-platform/customEvent/index.js +1 -1
  45. package/dist/destinations/optimizely-data-platform/customEvent/index.js.map +1 -1
  46. package/dist/destinations/optimizely-data-platform/fields.d.ts +1 -0
  47. package/dist/destinations/optimizely-data-platform/fields.js +10 -1
  48. package/dist/destinations/optimizely-data-platform/fields.js.map +1 -1
  49. package/dist/destinations/optimizely-data-platform/index.js +2 -0
  50. package/dist/destinations/optimizely-data-platform/index.js.map +1 -1
  51. package/dist/destinations/optimizely-data-platform/nonEcommCustomEvent/generated-types.d.ts +13 -0
  52. package/dist/destinations/optimizely-data-platform/nonEcommCustomEvent/generated-types.js.map +1 -0
  53. package/dist/destinations/optimizely-data-platform/nonEcommCustomEvent/index.js +29 -0
  54. package/dist/destinations/optimizely-data-platform/nonEcommCustomEvent/index.js.map +1 -0
  55. package/dist/destinations/salesforce/sf-properties.d.ts +1 -1
  56. package/dist/destinations/salesforce/sf-properties.js +52 -4
  57. package/dist/destinations/salesforce/sf-properties.js.map +1 -1
  58. package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.js +8 -4
  59. package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.js.map +1 -1
  60. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v3.js +9 -6
  61. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v3.js.map +1 -1
  62. package/dist/destinations/tiktok-audiences/addUser/index.js +1 -1
  63. package/dist/destinations/tiktok-audiences/addUser/index.js.map +1 -1
  64. package/dist/destinations/tiktok-audiences/createAudience/index.js +2 -2
  65. package/dist/destinations/tiktok-audiences/createAudience/index.js.map +1 -1
  66. package/dist/destinations/tiktok-audiences/index.js +3 -3
  67. package/dist/destinations/tiktok-audiences/index.js.map +1 -1
  68. package/dist/destinations/tiktok-audiences/removeUser/index.js +1 -1
  69. package/dist/destinations/tiktok-audiences/removeUser/index.js.map +1 -1
  70. package/dist/destinations/tiktok-conversions-sandbox/common_fields.js +1 -1
  71. package/dist/destinations/tiktok-conversions-sandbox/common_fields.js.map +1 -1
  72. package/dist/destinations/tiktok-offline-conversions/common_fields.js +183 -24
  73. package/dist/destinations/tiktok-offline-conversions/common_fields.js.map +1 -1
  74. package/dist/destinations/tiktok-offline-conversions/formatter.d.ts +1 -0
  75. package/dist/destinations/tiktok-offline-conversions/formatter.js +11 -1
  76. package/dist/destinations/tiktok-offline-conversions/formatter.js.map +1 -1
  77. package/dist/destinations/tiktok-offline-conversions/index.js +169 -15
  78. package/dist/destinations/tiktok-offline-conversions/index.js.map +1 -1
  79. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/generated-types.d.ts +3 -3
  80. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/index.js +5 -306
  81. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/index.js.map +1 -1
  82. package/dist/destinations/tiktok-offline-conversions/trackNonPaymentOfflineConversion/generated-types.d.ts +25 -2
  83. package/dist/destinations/tiktok-offline-conversions/trackNonPaymentOfflineConversion/index.js +4 -29
  84. package/dist/destinations/tiktok-offline-conversions/trackNonPaymentOfflineConversion/index.js.map +1 -1
  85. package/dist/destinations/tiktok-offline-conversions/trackPaymentOfflineConversion/generated-types.d.ts +18 -5
  86. package/dist/destinations/tiktok-offline-conversions/trackPaymentOfflineConversion/index.js +5 -126
  87. package/dist/destinations/tiktok-offline-conversions/trackPaymentOfflineConversion/index.js.map +1 -1
  88. package/dist/destinations/tiktok-offline-conversions/utils.d.ts +8 -0
  89. package/dist/destinations/tiktok-offline-conversions/utils.js +68 -0
  90. package/dist/destinations/tiktok-offline-conversions/utils.js.map +1 -0
  91. package/dist/destinations/tiktok-offline-conversions-sandbox/common_fields.js +1 -1
  92. package/dist/destinations/tiktok-offline-conversions-sandbox/common_fields.js.map +1 -1
  93. package/package.json +5 -4
  94. package/dist/destinations/braze/updateUserProfile/__snapshots__/snapshot.test.d.ts +0 -1
  95. package/dist/destinations/braze/updateUserProfile/__snapshots__/snapshot.test.js +0 -184
  96. package/dist/destinations/braze/updateUserProfile/__snapshots__/snapshot.test.js.map +0 -1
  97. package/dist/destinations/engage/sendgrid/Profile.d.ts +0 -6
  98. package/dist/destinations/engage/sendgrid/Profile.js +0 -3
  99. package/dist/destinations/engage/sendgrid/Profile.js.map +0 -1
  100. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.d.ts +0 -21
  101. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js +0 -174
  102. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js.map +0 -1
  103. package/dist/destinations/klaviyo/removeProfileToList/generated-types.d.ts +0 -4
  104. package/dist/destinations/klaviyo/removeProfileToList/generated-types.js.map +0 -1
  105. package/dist/destinations/klaviyo/removeProfileToList/index.d.ts +0 -5
  106. package/dist/destinations/klaviyo/removeProfileToList/index.js +0 -43
  107. package/dist/destinations/klaviyo/removeProfileToList/index.js.map +0 -1
  108. package/dist/destinations/mixpanel/utils.d.ts +0 -13
  109. package/dist/destinations/mixpanel/utils.js +0 -117
  110. package/dist/destinations/mixpanel/utils.js.map +0 -1
  111. package/dist/destinations/movable-ink/categoryView/generated-types.d.ts +0 -22
  112. package/dist/destinations/movable-ink/categoryView/generated-types.js.map +0 -1
  113. package/dist/destinations/movable-ink/categoryView/index.js +0 -43
  114. package/dist/destinations/movable-ink/categoryView/index.js.map +0 -1
  115. package/dist/destinations/movable-ink/conversion/generated-types.d.ts +0 -20
  116. package/dist/destinations/movable-ink/conversion/generated-types.js.map +0 -1
  117. package/dist/destinations/movable-ink/conversion/index.d.ts +0 -5
  118. package/dist/destinations/movable-ink/conversion/index.js +0 -45
  119. package/dist/destinations/movable-ink/conversion/index.js.map +0 -1
  120. package/dist/destinations/movable-ink/fields.d.ts +0 -21
  121. package/dist/destinations/movable-ink/fields.js +0 -236
  122. package/dist/destinations/movable-ink/fields.js.map +0 -1
  123. package/dist/destinations/movable-ink/identify/generated-types.d.ts +0 -7
  124. package/dist/destinations/movable-ink/identify/generated-types.js +0 -3
  125. package/dist/destinations/movable-ink/identify/generated-types.js.map +0 -1
  126. package/dist/destinations/movable-ink/identify/index.d.ts +0 -5
  127. package/dist/destinations/movable-ink/identify/index.js +0 -32
  128. package/dist/destinations/movable-ink/identify/index.js.map +0 -1
  129. package/dist/destinations/movable-ink/productAdded/generated-types.d.ts +0 -22
  130. package/dist/destinations/movable-ink/productAdded/generated-types.js +0 -3
  131. package/dist/destinations/movable-ink/productAdded/generated-types.js.map +0 -1
  132. package/dist/destinations/movable-ink/productAdded/index.d.ts +0 -5
  133. package/dist/destinations/movable-ink/productAdded/index.js +0 -43
  134. package/dist/destinations/movable-ink/productAdded/index.js.map +0 -1
  135. package/dist/destinations/movable-ink/productViewed/generated-types.d.ts +0 -21
  136. package/dist/destinations/movable-ink/productViewed/generated-types.js +0 -3
  137. package/dist/destinations/movable-ink/productViewed/generated-types.js.map +0 -1
  138. package/dist/destinations/movable-ink/productViewed/index.d.ts +0 -5
  139. package/dist/destinations/movable-ink/productViewed/index.js +0 -43
  140. package/dist/destinations/movable-ink/productViewed/index.js.map +0 -1
  141. package/dist/destinations/movable-ink/search/generated-types.d.ts +0 -12
  142. package/dist/destinations/movable-ink/search/generated-types.js +0 -3
  143. package/dist/destinations/movable-ink/search/generated-types.js.map +0 -1
  144. package/dist/destinations/movable-ink/search/index.d.ts +0 -5
  145. package/dist/destinations/movable-ink/search/index.js +0 -43
  146. package/dist/destinations/movable-ink/search/index.js.map +0 -1
  147. package/dist/destinations/movable-ink/sendCustomEvent/generated-types.d.ts +0 -25
  148. package/dist/destinations/movable-ink/sendCustomEvent/generated-types.js +0 -3
  149. package/dist/destinations/movable-ink/sendCustomEvent/generated-types.js.map +0 -1
  150. package/dist/destinations/movable-ink/sendCustomEvent/index.d.ts +0 -5
  151. package/dist/destinations/movable-ink/sendCustomEvent/index.js +0 -48
  152. package/dist/destinations/movable-ink/sendCustomEvent/index.js.map +0 -1
  153. package/dist/destinations/responsys/asyncMergePetRecords/generated-types.d.ts +0 -14
  154. package/dist/destinations/responsys/asyncMergePetRecords/generated-types.js +0 -3
  155. package/dist/destinations/responsys/asyncMergePetRecords/generated-types.js.map +0 -1
  156. package/dist/destinations/responsys/asyncMergePetRecords/index.d.ts +0 -5
  157. package/dist/destinations/responsys/asyncMergePetRecords/index.js +0 -113
  158. package/dist/destinations/responsys/asyncMergePetRecords/index.js.map +0 -1
  159. package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.d.ts +0 -20
  160. package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.js +0 -3
  161. package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.js.map +0 -1
  162. package/dist/destinations/responsys/asyncMergeProfileListMembers/index.d.ts +0 -5
  163. package/dist/destinations/responsys/asyncMergeProfileListMembers/index.js +0 -174
  164. package/dist/destinations/responsys/asyncMergeProfileListMembers/index.js.map +0 -1
  165. package/dist/destinations/responsys/rsp-operations.d.ts +0 -14
  166. package/dist/destinations/responsys/rsp-operations.js +0 -33
  167. package/dist/destinations/responsys/rsp-operations.js.map +0 -1
  168. package/dist/destinations/responsys/rsp-properties.d.ts +0 -4
  169. package/dist/destinations/responsys/rsp-properties.js +0 -27
  170. package/dist/destinations/responsys/rsp-properties.js.map +0 -1
  171. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.d.ts +0 -3
  172. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.js +0 -43
  173. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.js.map +0 -1
  174. package/dist/destinations/trackey/group.types.d.ts +0 -11
  175. package/dist/destinations/trackey/group.types.js +0 -3
  176. package/dist/destinations/trackey/group.types.js.map +0 -1
  177. package/dist/destinations/trackey/identify.types.d.ts +0 -11
  178. package/dist/destinations/trackey/identify.types.js +0 -3
  179. package/dist/destinations/trackey/identify.types.js.map +0 -1
  180. package/dist/destinations/trackey/track.types.d.ts +0 -12
  181. package/dist/destinations/trackey/track.types.js +0 -3
  182. package/dist/destinations/trackey/track.types.js.map +0 -1
  183. package/dist/destinations/yahoo-audiences/createCustomerNode/generated-types.d.ts +0 -4
  184. package/dist/destinations/yahoo-audiences/createCustomerNode/generated-types.js +0 -3
  185. package/dist/destinations/yahoo-audiences/createCustomerNode/generated-types.js.map +0 -1
  186. package/dist/destinations/yahoo-audiences/createCustomerNode/index.js +0 -33
  187. package/dist/destinations/yahoo-audiences/createCustomerNode/index.js.map +0 -1
  188. package/dist/destinations/yahoo-audiences/createSegment/generated-types.d.ts +0 -6
  189. package/dist/destinations/yahoo-audiences/createSegment/generated-types.js +0 -3
  190. package/dist/destinations/yahoo-audiences/createSegment/generated-types.js.map +0 -1
  191. package/dist/destinations/yahoo-audiences/createSegment/index.d.ts +0 -5
  192. package/dist/destinations/yahoo-audiences/createSegment/index.js +0 -45
  193. package/dist/destinations/yahoo-audiences/createSegment/index.js.map +0 -1
  194. package/dist/destinations/yahoo-audiences/utils.d.ts +0 -4
  195. package/dist/destinations/yahoo-audiences/utils.js +0 -30
  196. package/dist/destinations/yahoo-audiences/utils.js.map +0 -1
  197. /package/dist/destinations/{klaviyo/removeProfileToList → kafka}/generated-types.js +0 -0
  198. /package/dist/destinations/{movable-ink/categoryView → kafka/send}/generated-types.js +0 -0
  199. /package/dist/destinations/{yahoo-audiences/createCustomerNode → kafka/send}/index.d.ts +0 -0
  200. /package/dist/destinations/{movable-ink/conversion → optimizely-data-platform/nonEcommCustomEvent}/generated-types.js +0 -0
  201. /package/dist/destinations/{movable-ink/categoryView → optimizely-data-platform/nonEcommCustomEvent}/index.d.ts +0 -0
@@ -6,12 +6,12 @@ exports.commonFields = {
6
6
  label: 'Event Name',
7
7
  type: 'string',
8
8
  required: true,
9
- description: 'Conversion event name. Please refer to the "Supported Offline Events" section on in TikTok’s [Offline Events API documentation](https://ads.tiktok.com/marketing_api/docs?id=1758053486938113) for accepted event names.'
9
+ description: 'Conversion event name. Please refer to the "Offline Standard Events" section on in TikTok’s [Events API 2.0 documentation](https://business-api.tiktok.com/portal/docs?id=1771101186666498) for accepted event names.'
10
10
  },
11
11
  event_id: {
12
12
  label: 'Event ID',
13
13
  type: 'string',
14
- description: 'A unique value for each event. This ID can be used to match data between partner and TikTok. We suggest it is a String of 32 characters, including numeric digits (0-9), uppercase letters (A-Z), and lowercase letters (a-z).',
14
+ description: 'Any hashed ID that can identify a unique user/session.',
15
15
  default: {
16
16
  '@path': '$.messageId'
17
17
  }
@@ -19,42 +19,41 @@ exports.commonFields = {
19
19
  timestamp: {
20
20
  label: 'Event Timestamp',
21
21
  type: 'string',
22
- required: true,
23
- description: 'Timestamp that the event took place, in ISO 8601 format. e.g. 2019-06-12T19:11:01.152Z',
22
+ description: 'Timestamp that the event took place, in ISO 8601 format.',
24
23
  default: {
25
24
  '@path': '$.timestamp'
26
25
  }
27
26
  },
28
27
  phone_numbers: {
29
- label: 'Phone Numbers',
30
- description: 'A single phone number or array of phone numbers in E.164 standard format. Segment will hash this value before sending to TikTok. At least one phone number is required if no value is provided in the Emails field.',
28
+ label: 'Phone Number',
29
+ description: 'A single phone number or array of phone numbers in E.164 standard format. Segment will hash this value before sending to TikTok. At least one phone number value is required if both Email and External ID fields are empty.',
31
30
  type: 'string',
32
31
  multiple: true,
33
32
  default: {
34
33
  '@if': {
35
34
  exists: { '@path': '$.properties.phone' },
36
35
  then: { '@path': '$.properties.phone' },
37
- else: { '@path': '$.traits.phone' }
36
+ else: { '@path': '$.context.traits.phone' }
38
37
  }
39
38
  }
40
39
  },
41
40
  email_addresses: {
42
- label: 'Emails',
43
- description: 'A single email address or an array of email addresses. Segment will hash this value before sending to TikTok. At least one email is required if no value is provided in the Phone Numbers field.',
41
+ label: 'Email',
42
+ description: 'A single email address or an array of email addresses. Segment will hash this value before sending to TikTok. At least one email value is required if both Phone Number and External ID fields are empty.',
44
43
  type: 'string',
45
44
  multiple: true,
46
45
  default: {
47
46
  '@if': {
48
47
  exists: { '@path': '$.properties.email' },
49
48
  then: { '@path': '$.properties.email' },
50
- else: { '@path': '$.traits.email' }
49
+ else: { '@path': '$.context.traits.email' }
51
50
  }
52
51
  }
53
52
  },
54
53
  order_id: {
55
54
  label: 'Order ID',
56
55
  type: 'string',
57
- description: 'The order id',
56
+ description: 'Order ID of the transaction.',
58
57
  default: {
59
58
  '@path': '$.properties.order_id'
60
59
  }
@@ -62,24 +61,184 @@ exports.commonFields = {
62
61
  shop_id: {
63
62
  label: 'Shop ID',
64
63
  type: 'string',
65
- description: 'The shop id',
64
+ description: 'Shop ID of the transaction.',
66
65
  default: {
67
66
  '@path': '$.properties.shop_id'
68
67
  }
69
68
  },
70
- event_channel: {
71
- label: 'Event channel',
69
+ external_ids: {
70
+ label: 'External ID',
71
+ description: 'Uniquely identifies the user who triggered the conversion event. Segment will hash this value before sending to TikTok. TikTok Offline Conversions Destination supports both string and string[] types for sending external ID(s). At least one external ID value is required if both Email and Phone Number fields are empty.',
72
+ type: 'string',
73
+ multiple: true,
74
+ default: {
75
+ '@if': {
76
+ exists: { '@path': '$.userId' },
77
+ then: { '@path': '$.userId' },
78
+ else: { '@path': '$.anonymousId' }
79
+ }
80
+ }
81
+ },
82
+ ttclid: {
83
+ label: 'TikTok Click ID',
84
+ description: 'The value of the ttclid used to match website visitor events with TikTok ads. The ttclid is valid for 7 days. See [Set up ttclid](https://ads.tiktok.com/marketing_api/docs?rid=4eezrhr6lg4&id=1681728034437121) for details.',
85
+ type: 'string',
86
+ default: {
87
+ '@if': {
88
+ exists: { '@path': '$.properties.ttclid' },
89
+ then: { '@path': '$.properties.ttclid' },
90
+ else: { '@path': '$.integrations.TikTok Offline Conversions.ttclid' }
91
+ }
92
+ }
93
+ },
94
+ ttp: {
95
+ label: 'TikTok Cookie ID',
96
+ description: 'TikTok Cookie ID. If you also use Pixel SDK and have enabled cookies, Pixel SDK automatically saves a unique identifier in the `_ttp` cookie. The value of `_ttp` is used to match website visitor events with TikTok ads. You can extract the value of `_ttp` and attach the value here. To learn more about the `ttp` parameter, refer to [Events API 2.0 - Send TikTok Cookie](https://ads.tiktok.com/marketing_api/docs?id=%201771100936446977) (`_ttp`).',
97
+ type: 'string',
98
+ default: {
99
+ '@if': {
100
+ exists: { '@path': '$.properties.ttp' },
101
+ then: { '@path': '$.properties.ttp' },
102
+ else: { '@path': '$.integrations.TikTok Offline Conversions.ttp' }
103
+ }
104
+ }
105
+ },
106
+ lead_id: {
107
+ label: 'TikTok Lead ID',
108
+ description: 'ID of TikTok leads. Every lead will have its own lead_id when exported from TikTok. This feature is in Beta. Please contact your TikTok representative to inquire regarding availability',
109
+ type: 'string',
110
+ default: { '@path': '$.properties.lead_id' }
111
+ },
112
+ locale: {
113
+ label: 'Locale',
114
+ description: 'The BCP 47 language identifier. For reference, refer to the [IETF BCP 47 standardized code](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).',
115
+ type: 'string',
116
+ default: {
117
+ '@path': '$.context.locale'
118
+ }
119
+ },
120
+ url: {
121
+ label: 'Page URL',
122
+ type: 'string',
123
+ description: 'The page URL where the conversion event took place.',
124
+ default: {
125
+ '@path': '$.context.page.url'
126
+ }
127
+ },
128
+ referrer: {
129
+ label: 'Page Referrer',
130
+ type: 'string',
131
+ description: 'The page referrer.',
132
+ default: {
133
+ '@path': '$.context.page.referrer'
134
+ }
135
+ },
136
+ ip: {
137
+ label: 'IP Address',
138
+ type: 'string',
139
+ description: 'IP address of the browser.',
140
+ default: {
141
+ '@path': '$.context.ip'
142
+ }
143
+ },
144
+ user_agent: {
145
+ label: 'User Agent',
146
+ type: 'string',
147
+ description: 'User agent from the user’s device.',
148
+ default: {
149
+ '@path': '$.context.userAgent'
150
+ }
151
+ },
152
+ contents: {
153
+ label: 'Contents',
154
+ type: 'object',
155
+ multiple: true,
156
+ description: 'Related item details for the event.',
157
+ properties: {
158
+ price: {
159
+ label: 'Price',
160
+ description: 'Price of the item.',
161
+ type: 'number'
162
+ },
163
+ quantity: {
164
+ label: 'Quantity',
165
+ description: 'Number of items.',
166
+ type: 'number'
167
+ },
168
+ content_category: {
169
+ label: 'Content Category',
170
+ description: 'Category of the product item.',
171
+ type: 'string'
172
+ },
173
+ content_id: {
174
+ label: 'Content ID',
175
+ description: 'ID of the product item.',
176
+ type: 'string'
177
+ },
178
+ content_name: {
179
+ label: 'Content Name',
180
+ description: 'Name of the product item.',
181
+ type: 'string'
182
+ },
183
+ brand: {
184
+ label: 'Brand',
185
+ description: 'Brand name of the product item.',
186
+ type: 'string'
187
+ }
188
+ }
189
+ },
190
+ content_type: {
191
+ label: 'Content Type',
192
+ description: 'Type of the product item. When the `content_id` in the `Contents` field is specified as a `sku_id`, set this field to `product`. When the `content_id` in the `Contents` field is specified as an `item_group_id`, set this field to `product_group`.',
193
+ type: 'string',
194
+ choices: [{ label: 'product', value: 'product' }, { label: 'product_group', value: 'product_group' }],
195
+ default: 'product'
196
+ },
197
+ currency: {
198
+ label: 'Currency',
199
+ type: 'string',
200
+ description: 'Currency for the value specified as ISO 4217 code.',
201
+ default: {
202
+ '@path': '$.properties.currency'
203
+ }
204
+ },
205
+ value: {
206
+ label: 'Value',
207
+ type: 'number',
208
+ description: 'Value of the order or items sold.',
209
+ default: {
210
+ '@if': {
211
+ exists: { '@path': '$.properties.value' },
212
+ then: { '@path': '$.properties.value' },
213
+ else: { '@path': '$.properties.revenue' }
214
+ }
215
+ }
216
+ },
217
+ description: {
218
+ label: 'Description',
219
+ type: 'string',
220
+ description: 'A string description of the web event.'
221
+ },
222
+ query: {
223
+ label: 'Query',
224
+ type: 'string',
225
+ description: 'The text string that was searched for.',
226
+ default: {
227
+ '@path': '$.properties.query'
228
+ }
229
+ },
230
+ limited_data_use: {
231
+ label: 'Limited Data Use',
232
+ type: 'boolean',
233
+ description: 'Use this field to flag an event for limited data processing. TikTok will recognize this parameter as a request for limited data processing, and will limit its processing activities accordingly if the event shared occurred in an eligible location. To learn more about the Limited Data Use feature, refer to [Events API 2.0 - Limited Data Use](https://ads.tiktok.com/marketing_api/docs?id=1771101204435970).',
234
+ default: {
235
+ '@path': '$.properties.limited_data_use'
236
+ }
237
+ },
238
+ test_event_code: {
239
+ label: 'Test Event Code',
72
240
  type: 'string',
73
- description: 'Event channel of the offline conversion event. Accepted values are: email, website, phone_call, in_store, crm, other. Any other value will be rejected',
74
- choices: [
75
- { label: 'Email', value: 'email' },
76
- { label: 'Website', value: 'website' },
77
- { label: 'Phone call', value: 'phone_call' },
78
- { label: 'In store', value: 'in_store' },
79
- { label: 'CRM', value: 'crm' },
80
- { label: 'Other', value: 'other' }
81
- ],
82
- default: 'in_store'
241
+ description: 'Use this field to specify that events should be test events rather than actual traffic. You can find your Test Event Code in your TikTok Events Manager under the "Test Event" tab. You\'ll want to remove your Test Event Code when sending real traffic through this integration.'
83
242
  }
84
243
  };
85
244
  //# sourceMappingURL=common_fields.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"common_fields.js","sourceRoot":"","sources":["../../../src/destinations/tiktok-offline-con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ACP,OAAO,EAAE,uBAAuB;SACjC;KACF;IACD,OAAO,EAAE;QACP,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,aAAa;QAC1B,OAAO,EAAE;YACP,OAAO,EAAE,sBAAsB;SAChC;KACF;IACD,aAAa,EAAE;QACb,KAAK,EAAE,eAAe;QACtB,IAAI,EAAE,QAAQ;QACd,WAAW,EACT,wJAAwJ;QAC1J,OAAO,EAAE;YACP,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;YAClC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;YACtC,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;YAC5C,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;YACxC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;YAC9B,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;SACnC;QACD,OAAO,EAAE,UAAU;KACpB;CACF,CAAA"}
1
+ {"version":3,"file":"common_fields.js","sourceRoot":"","sources":["../../../src/destinations/tiktok-offline-conversions/common_fields.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAA+B;IACtD,KAAK,EAAE;QACL,KAAK,EAAE,YAAY;QACnB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,WAAW,EACT,uNAAuN;KAC1N;IACD,QAAQ,EAAE;QACR,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,wDAAwD;QACrE,OAAO,EAAE;YACP,OAAO,EAAE,aAAa;SACvB;KACF;IACD,SAAS,EAAE;QACT,KAAK,EAAE,iBAAiB;QACxB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,0DAA0D;QACvE,OAAO,EAAE;YACP,OAAO,EAAE,aAAa;SACvB;KACF;IACD,aA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,OAAO,EAAE,SAAS;KACnB;IACD,QAAQ,EAAE;QACR,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,oDAAoD;QACjE,OAAO,EAAE;YACP,OAAO,EAAE,uBAAuB;SACjC;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE,OAAO;QACd,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,mCAAmC;QAChD,OAAO,EAAE;YACP,KAAK,EAAE;gBACL,MAAM,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;gBACzC,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;gBACvC,IAAI,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE;aAC1C;SACF;KACF;IACD,WAAW,EAAE;QACX,KAAK,EAAE,aAAa;QACpB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,wCAAwC;KACtD;IACD,KAAK,EAAE;QACL,KAAK,EAAE,OAAO;QACd,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,wCAAwC;QACrD,OAAO,EAAE;YACP,OAAO,EAAE,oBAAoB;SAC9B;KACF;IACD,gBAAgB,EAAE;QAChB,KAAK,EAAE,kBAAkB;QACzB,IAAI,EAAE,SAAS;QACf,WAAW,EACT,uZAAuZ;QACzZ,OAAO,EAAE;YACP,OAAO,EAAE,+BAA+B;SACzC;KACF;IACD,eAAe,EAAE;QACf,KAAK,EAAE,iBAAiB;QACxB,IAAI,EAAE,QAAQ;QACd,WAAW,EACT,qRAAqR;KACxR;CACF,CAAA"}
@@ -1,2 +1,3 @@
1
1
  export declare const formatEmails: (email_addresses: string[] | undefined) => string[];
2
2
  export declare const formatPhones: (phone_numbers: string[] | undefined) => string[];
3
+ export declare function formatUserIds(userIds: string[] | undefined): string[];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.formatPhones = exports.formatEmails = void 0;
3
+ exports.formatUserIds = exports.formatPhones = exports.formatEmails = void 0;
4
4
  const crypto_1 = require("crypto");
5
5
  const formatEmails = (email_addresses) => {
6
6
  const result = [];
@@ -27,6 +27,16 @@ const formatPhones = (phone_numbers) => {
27
27
  return result;
28
28
  };
29
29
  exports.formatPhones = formatPhones;
30
+ function formatUserIds(userIds) {
31
+ const result = [];
32
+ if (userIds) {
33
+ userIds.forEach((userId) => {
34
+ result.push(hashAndEncode(userId.toLowerCase()));
35
+ });
36
+ }
37
+ return result;
38
+ }
39
+ exports.formatUserIds = formatUserIds;
30
40
  function hashAndEncode(property) {
31
41
  return crypto_1.createHash('sha256').update(property).digest('hex');
32
42
  }
@@ -1 +1 @@
1
- {"version":3,"file":"formatter.js","sourceRoot":"","sources":["../../../src/destinations/tiktok-offline-conversions/formatter.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AAK5B,MAAM,YAAY,GAAG,CAAC,eAAqC,EAAY,EAAE;IAC9E,MAAM,MAAM,GAAa,EAAE,CAAA;IAC3B,IAAI,eAAe,EAAE;QACnB,eAAe,CAAC,OAAO,CAAC,CAAC,KAAa,EAAE,EAAE;YACxC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAA;QACjD,CAAC,CAAC,CAAA;KACH;IACD,OAAO,MAAM,CAAA;AACf,CAAC,CAAA;AARY,QAAA,YAAY,gBAQxB;AAOM,MAAM,YAAY,GAAG,CAAC,aAAmC,EAAY,EAAE;IAC5E,MAAM,MAAM,GAAa,EAAE,CAAA;IAC3B,IAAI,CAAC,aAAa;QAAE,OAAO,MAAM,CAAA;IAEjC,aAAa,CAAC,OAAO,CAAC,CAAC,KAAa,EAAE,EAAE;QACtC,MAAM,cAAc,GAAG,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAA;QAClD,IAAI,cAAc,KAAK,IAAI,EAAE;YAC3B,MAAM,IAAI,KAAK,CAAC,GAAG,KAAK,qCAAqC,CAAC,CAAA;SAC/D;QAED,M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C,CAAC,CAAA;SAC/D;QAED,MAAM,cAAc,GAAG,IAAI,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,EAAE,CAAA;QAEzD,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAA;IAC7D,CAAC,CAAC,CAAA;IAEF,OAAO,MAAM,CAAA;AACf,CAAC,CAAA;AAhBY,QAAA,YAAY,gBAgBxB;AAOD,SAAgB,aAAa,CAAC,OAA6B;IACzD,MAAM,MAAM,GAAa,EAAE,CAAA;IAC3B,IAAI,OAAO,EAAE;QACX,OAAO,CAAC,OAAO,CAAC,CAAC,MAAc,EAAE,EAAE;YACjC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC,CAAA;QAClD,CAAC,CAAC,CAAA;KACH;IACD,OAAO,MAAM,CAAA;AACf,CAAC;AARD,sCAQC;AAED,SAAS,aAAa,CAAC,QAAgB;IACrC,OAAO,mBAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;AAC5D,CAAC"}
@@ -6,6 +6,49 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const actions_core_1 = require("@segment/actions-core");
7
7
  const trackPaymentOfflineConversion_1 = __importDefault(require("./trackPaymentOfflineConversion"));
8
8
  const trackNonPaymentOfflineConversion_1 = __importDefault(require("./trackNonPaymentOfflineConversion"));
9
+ const reportOfflineEvent_1 = __importDefault(require("./reportOfflineEvent"));
10
+ const productProperties = {
11
+ price: {
12
+ '@path': '$.price'
13
+ },
14
+ quantity: {
15
+ '@path': '$.quantity'
16
+ },
17
+ content_category: {
18
+ '@path': '$.category'
19
+ },
20
+ content_id: {
21
+ '@path': '$.product_id'
22
+ },
23
+ content_name: {
24
+ '@path': '$.name'
25
+ },
26
+ brand: {
27
+ '@path': '$.brand'
28
+ }
29
+ };
30
+ const singleProductContents = {
31
+ ...actions_core_1.defaultValues(reportOfflineEvent_1.default.fields),
32
+ contents: {
33
+ '@arrayPath': [
34
+ '$.properties',
35
+ {
36
+ ...productProperties
37
+ }
38
+ ]
39
+ }
40
+ };
41
+ const multiProductContents = {
42
+ ...actions_core_1.defaultValues(reportOfflineEvent_1.default.fields),
43
+ contents: {
44
+ '@arrayPath': [
45
+ '$.properties.products',
46
+ {
47
+ ...productProperties
48
+ }
49
+ ]
50
+ }
51
+ };
9
52
  const destination = {
10
53
  name: 'TikTok Offline Conversions',
11
54
  slug: 'actions-tiktok-offline-conversions',
@@ -15,14 +58,14 @@ const destination = {
15
58
  fields: {
16
59
  accessToken: {
17
60
  label: 'Access Token',
18
- description: 'Your TikTok Access Token. Please see TikTok’s [Events API documentation](https://ads.tiktok.com/marketing_api/docs?rid=mcxl4tclmfa&id=1758051319816193) for information on how to generate an access token via the TikTok Ads Manager or API.',
61
+ description: 'Your TikTok Access Token. Please see TikTok’s [Events API 2.0 documentation](https://business-api.tiktok.com/portal/docs?id=1771101130925058) for information on how to generate an access token via the TikTok Ads Manager or API.',
19
62
  type: 'string',
20
63
  required: true
21
64
  },
22
65
  eventSetID: {
23
66
  label: 'Event Set ID',
24
67
  type: 'string',
25
- description: 'Your TikTok Offline Event Set ID. Please see TikTok’s [Events API documentation](https://ads.tiktok.com/marketing_api/docs?rid=mcxl4tclmfa&id=1758051319816193) for information on how to find this value.',
68
+ description: 'Your TikTok Offline Event Set ID. Please see TikTok’s [Events API 2.0 documentation](https://business-api.tiktok.com/portal/docs?id=1771101027431425) for information on how to find this value.',
26
69
  required: true
27
70
  }
28
71
  },
@@ -49,48 +92,159 @@ const destination = {
49
92
  presets: [
50
93
  {
51
94
  name: 'Complete Payment',
52
- subscribe: 'type = "track" and event = "Order Completed"',
53
- partnerAction: 'trackPaymentOfflineConversion',
95
+ subscribe: 'event = "Order Completed"',
96
+ partnerAction: 'reportOfflineEvent',
54
97
  mapping: {
55
- ...actions_core_1.defaultValues(trackPaymentOfflineConversion_1.default.fields),
98
+ ...multiProductContents,
56
99
  event: 'CompletePayment'
57
100
  },
58
101
  type: 'automatic'
59
102
  },
60
103
  {
61
104
  name: 'Contact',
62
- subscribe: 'type = "track" and event = "User Contacted Call Center"',
63
- partnerAction: 'trackNonPaymentOfflineConversion',
105
+ subscribe: 'event = "Callback Started"',
106
+ partnerAction: 'reportOfflineEvent',
64
107
  mapping: {
65
- ...actions_core_1.defaultValues(trackNonPaymentOfflineConversion_1.default.fields),
108
+ ...actions_core_1.defaultValues(reportOfflineEvent_1.default.fields),
66
109
  event: 'Contact'
67
110
  },
68
111
  type: 'automatic'
69
112
  },
70
113
  {
71
114
  name: 'Subscribe',
72
- subscribe: 'type = "track" and event = "User Subscribed In Store"',
73
- partnerAction: 'trackNonPaymentOfflineConversion',
115
+ subscribe: 'event = "Subscription Created"',
116
+ partnerAction: 'reportOfflineEvent',
74
117
  mapping: {
75
- ...actions_core_1.defaultValues(trackNonPaymentOfflineConversion_1.default.fields),
118
+ ...actions_core_1.defaultValues(reportOfflineEvent_1.default.fields),
76
119
  event: 'Subscribe'
77
120
  },
78
121
  type: 'automatic'
79
122
  },
80
123
  {
81
124
  name: 'Submit Form',
82
- subscribe: 'type = "track" and event = "Form Submitted"',
83
- partnerAction: 'trackNonPaymentOfflineConversion',
125
+ subscribe: 'event = "Form Submitted"',
126
+ partnerAction: 'reportOfflineEvent',
84
127
  mapping: {
85
- ...actions_core_1.defaultValues(trackNonPaymentOfflineConversion_1.default.fields),
128
+ ...actions_core_1.defaultValues(reportOfflineEvent_1.default.fields),
86
129
  event: 'SubmitForm'
87
130
  },
88
131
  type: 'automatic'
132
+ },
133
+ {
134
+ name: 'Page View',
135
+ subscribe: 'type="page"',
136
+ partnerAction: 'reportOfflineEvent',
137
+ mapping: {
138
+ ...multiProductContents,
139
+ event: 'PageView'
140
+ },
141
+ type: 'automatic'
142
+ },
143
+ {
144
+ name: 'View Content',
145
+ subscribe: 'event = "Product Viewed"',
146
+ partnerAction: 'reportOfflineEvent',
147
+ mapping: {
148
+ ...singleProductContents,
149
+ event: 'ViewContent'
150
+ },
151
+ type: 'automatic'
152
+ },
153
+ {
154
+ name: 'Click Button',
155
+ subscribe: 'event = "Product Clicked"',
156
+ partnerAction: 'reportOfflineEvent',
157
+ mapping: {
158
+ ...singleProductContents,
159
+ event: 'ClickButton'
160
+ },
161
+ type: 'automatic'
162
+ },
163
+ {
164
+ name: 'Search',
165
+ subscribe: 'event = "Products Searched"',
166
+ partnerAction: 'reportOfflineEvent',
167
+ mapping: {
168
+ ...singleProductContents,
169
+ event: 'Search'
170
+ },
171
+ type: 'automatic'
172
+ },
173
+ {
174
+ name: 'Add to Wishlist',
175
+ subscribe: 'event = "Product Added to Wishlist"',
176
+ partnerAction: 'reportOfflineEvent',
177
+ mapping: {
178
+ ...singleProductContents,
179
+ event: 'AddToWishlist'
180
+ },
181
+ type: 'automatic'
182
+ },
183
+ {
184
+ name: 'Add to Cart',
185
+ subscribe: 'event = "Product Added"',
186
+ partnerAction: 'reportOfflineEvent',
187
+ mapping: {
188
+ ...singleProductContents,
189
+ event: 'AddToCart'
190
+ },
191
+ type: 'automatic'
192
+ },
193
+ {
194
+ name: 'Initiate Checkout',
195
+ subscribe: 'event = "Checkout Started"',
196
+ partnerAction: 'reportOfflineEvent',
197
+ mapping: {
198
+ ...multiProductContents,
199
+ event: 'InitiateCheckout'
200
+ },
201
+ type: 'automatic'
202
+ },
203
+ {
204
+ name: 'Add Payment Info',
205
+ subscribe: 'event = "Payment Info Entered"',
206
+ partnerAction: 'reportOfflineEvent',
207
+ mapping: {
208
+ ...multiProductContents,
209
+ event: 'AddPaymentInfo'
210
+ },
211
+ type: 'automatic'
212
+ },
213
+ {
214
+ name: 'Place an Order',
215
+ subscribe: 'event = "Order Placed"',
216
+ partnerAction: 'reportOfflineEvent',
217
+ mapping: {
218
+ ...multiProductContents,
219
+ event: 'PlaceAnOrder'
220
+ },
221
+ type: 'automatic'
222
+ },
223
+ {
224
+ name: 'Download',
225
+ subscribe: 'event = "Download Link Clicked"',
226
+ partnerAction: 'reportOfflineEvent',
227
+ mapping: {
228
+ ...actions_core_1.defaultValues(reportOfflineEvent_1.default.fields),
229
+ event: 'Download'
230
+ },
231
+ type: 'automatic'
232
+ },
233
+ {
234
+ name: 'Complete Registration',
235
+ subscribe: 'event = "Signed Up"',
236
+ partnerAction: 'reportOfflineEvent',
237
+ mapping: {
238
+ ...actions_core_1.defaultValues(reportOfflineEvent_1.default.fields),
239
+ event: 'CompleteRegistration'
240
+ },
241
+ type: 'automatic'
89
242
  }
90
243
  ],
91
244
  actions: {
92
245
  trackPaymentOfflineConversion: trackPaymentOfflineConversion_1.default,
93
- trackNonPaymentOfflineConversion: trackNonPaymentOfflineConversion_1.default
246
+ trackNonPaymentOfflineConversion: trackNonPaymentOfflineConversion_1.default,
247
+ reportOfflineEvent: reportOfflineEvent_1.default
94
248
  }
95
249
  };
96
250
  exports.default = destination;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/tiktok-offline-conversions/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA4E;AAE5E,oGAA2E;AAC3E,0GAAiF;AAEjF,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,4BAA4B;IAClC,IAAI,EAAE,oCAAoC;IAC1C,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,WAAW,EAAE;gBACX,KAAK,EAAE,cAAc;gBACrB,WAAW,EACT,+OAA+O;gBACjP,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,UAAU,EAAE;gBACV,KAAK,EAAE,cAAc;gBACrB,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,4MAA4M;gBAC9M,QAAQ,EAAE,IAAI;aACf;SACF;QACD,kBAAkB,EAAE,CAAC,OAAO,EA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C;gBACzD,KAAK,EAAE,YAAY;aACpB;YACD,IAAI,EAAE,WAAW;SAClB;KACF;IACD,OAAO,EAAE;QACP,6BAA6B,EAA7B,uCAA6B;QAC7B,gCAAgC,EAAhC,0CAAgC;KACjC;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/tiktok-offline-conversions/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA4E;AAE5E,oGAA2E;AAC3E,0GAAiF;AACjF,8EAAqD;AAErD,MAAM,iBAAiB,GAAG;IACxB,KAAK,EAAE;QACL,OAAO,EAAE,SAAS;KACnB;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,YAAY;KACtB;IACD,gBAAgB,EAAE;QAChB,OAAO,EAAE,YAAY;KACtB;IACD,UAAU,EAAE;QACV,OAAO,EAAE,cAAc;KACxB;IACD,YAAY,EAAE;QACZ,OAAO,EAAE,QAAQ;KAClB;IACD,KAAK,EAAE;QACL,OAAO,EAAE,SAAS;KACnB;CACF,CAAA;AAED,MAAM,qBAAqB,GAAG;IAC5B,GAAG,4BAAa,CAAC,4BAAkB,CAAC,MAAM,CAAC;IAC3C,QAAQ,EAAE;QACR,YAAY,EAAE;YACZ,cAAc;YACd;gBACE,GAAG,iBAAiB;aACrB;SACF;KACF;CACF,CAAA;AAED,MAAM,oBAAoB,GAAG;IAC3B,GAAG,4BAAa,CAAC,4BAAkB,CAAC,MAAM,CAAC;IAC3C,QAAQ,EAAE;QACR,YAAY,EAAE;YACZ,uBAAuB;YACvB;gBACE,GAAG,iBAAiB;aACrB;SACF;KACF;CACF,CAAA;AAED,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,4BAA4B;IAClC,IAAI,EAAE,oCAAoC;IAC1C,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,WAAW,EAAE;gBACX,KAAK,EAAE,cAAc;gBACrB,WAA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kBAAe,WAAW,CAAA"}
@@ -3,7 +3,9 @@ export interface Payload {
3
3
  event_id?: string;
4
4
  timestamp?: string;
5
5
  phone_numbers?: string[];
6
- emails?: string[];
6
+ email_addresses?: string[];
7
+ order_id?: string;
8
+ shop_id?: string;
7
9
  external_ids?: string[];
8
10
  ttclid?: string;
9
11
  ttp?: string;
@@ -26,8 +28,6 @@ export interface Payload {
26
28
  value?: number;
27
29
  description?: string;
28
30
  query?: string;
29
- order_id?: string;
30
- shop_id?: string;
31
31
  limited_data_use?: boolean;
32
32
  test_event_code?: string;
33
33
  }