@segment/action-destinations 3.240.0-snap-connector → 3.241.0-snap-connector

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 (326) hide show
  1. package/dist/destinations/accoil-analytics/generated-types.d.ts +3 -0
  2. package/dist/destinations/accoil-analytics/generated-types.js +3 -0
  3. package/dist/destinations/accoil-analytics/generated-types.js.map +1 -0
  4. package/dist/destinations/accoil-analytics/index.d.ts +4 -0
  5. package/dist/destinations/accoil-analytics/index.js +69 -0
  6. package/dist/destinations/accoil-analytics/index.js.map +1 -0
  7. package/dist/destinations/accoil-analytics/postToAccoil/generated-types.d.ts +5 -0
  8. package/dist/destinations/accoil-analytics/postToAccoil/generated-types.js +3 -0
  9. package/dist/destinations/accoil-analytics/postToAccoil/generated-types.js.map +1 -0
  10. package/dist/destinations/accoil-analytics/postToAccoil/index.d.ts +5 -0
  11. package/dist/destinations/accoil-analytics/postToAccoil/index.js +27 -0
  12. package/dist/destinations/accoil-analytics/postToAccoil/index.js.map +1 -0
  13. package/dist/destinations/airship/utilities.js +8 -0
  14. package/dist/destinations/airship/utilities.js.map +1 -1
  15. package/dist/destinations/app-fit/index.js +1 -1
  16. package/dist/destinations/app-fit/index.js.map +1 -1
  17. package/dist/destinations/avo/generated-types.d.ts +5 -0
  18. package/dist/destinations/avo/generated-types.js +3 -0
  19. package/dist/destinations/avo/generated-types.js.map +1 -0
  20. package/dist/destinations/avo/index.d.ts +4 -0
  21. package/dist/destinations/avo/index.js +64 -0
  22. package/dist/destinations/avo/index.js.map +1 -0
  23. package/dist/destinations/avo/sendSchemaToInspector/AvoSchemaParser.d.ts +9 -0
  24. package/dist/destinations/avo/sendSchemaToInspector/AvoSchemaParser.js +97 -0
  25. package/dist/destinations/avo/sendSchemaToInspector/AvoSchemaParser.js.map +1 -0
  26. package/dist/destinations/avo/sendSchemaToInspector/avo-types.d.ts +26 -0
  27. package/dist/destinations/avo/sendSchemaToInspector/avo-types.js +10 -0
  28. package/dist/destinations/avo/sendSchemaToInspector/avo-types.js.map +1 -0
  29. package/dist/destinations/avo/sendSchemaToInspector/avo.d.ts +3 -0
  30. package/dist/destinations/avo/sendSchemaToInspector/avo.js +44 -0
  31. package/dist/destinations/avo/sendSchemaToInspector/avo.js.map +1 -0
  32. package/dist/destinations/avo/sendSchemaToInspector/generated-types.d.ts +11 -0
  33. package/dist/destinations/avo/sendSchemaToInspector/generated-types.js +3 -0
  34. package/dist/destinations/avo/sendSchemaToInspector/generated-types.js.map +1 -0
  35. package/dist/destinations/avo/sendSchemaToInspector/index.d.ts +5 -0
  36. package/dist/destinations/avo/sendSchemaToInspector/index.js +95 -0
  37. package/dist/destinations/avo/sendSchemaToInspector/index.js.map +1 -0
  38. package/dist/destinations/blackbaud-raisers-edge-nxt/utils/index.d.ts +1 -1
  39. package/dist/destinations/courier/generated-types.d.ts +4 -0
  40. package/dist/destinations/courier/generated-types.js +3 -0
  41. package/dist/destinations/courier/generated-types.js.map +1 -0
  42. package/dist/destinations/courier/index.d.ts +4 -0
  43. package/dist/destinations/courier/index.js +44 -0
  44. package/dist/destinations/courier/index.js.map +1 -0
  45. package/dist/destinations/courier/postToCourier/generated-types.d.ts +5 -0
  46. package/dist/destinations/courier/postToCourier/generated-types.js +3 -0
  47. package/dist/destinations/courier/postToCourier/generated-types.js.map +1 -0
  48. package/dist/destinations/courier/postToCourier/index.d.ts +5 -0
  49. package/dist/destinations/courier/postToCourier/index.js +35 -0
  50. package/dist/destinations/courier/postToCourier/index.js.map +1 -0
  51. package/dist/destinations/customerio/deleteObject/generated-types.d.ts +4 -0
  52. package/dist/destinations/customerio/deleteObject/generated-types.js +3 -0
  53. package/dist/destinations/customerio/deleteObject/generated-types.js.map +1 -0
  54. package/dist/destinations/customerio/deleteObject/index.d.ts +5 -0
  55. package/dist/destinations/customerio/deleteObject/index.js +48 -0
  56. package/dist/destinations/customerio/deleteObject/index.js.map +1 -0
  57. package/dist/destinations/customerio/deletePerson/generated-types.d.ts +3 -0
  58. package/dist/destinations/customerio/deletePerson/generated-types.js +3 -0
  59. package/dist/destinations/customerio/deletePerson/generated-types.js.map +1 -0
  60. package/dist/destinations/customerio/deletePerson/index.d.ts +5 -0
  61. package/dist/destinations/customerio/deletePerson/index.js +41 -0
  62. package/dist/destinations/customerio/deletePerson/index.js.map +1 -0
  63. package/dist/destinations/customerio/deleteRelationship/generated-types.d.ts +6 -0
  64. package/dist/destinations/customerio/deleteRelationship/generated-types.js +3 -0
  65. package/dist/destinations/customerio/deleteRelationship/generated-types.js.map +1 -0
  66. package/dist/destinations/customerio/deleteRelationship/index.d.ts +5 -0
  67. package/dist/destinations/customerio/deleteRelationship/index.js +82 -0
  68. package/dist/destinations/customerio/deleteRelationship/index.js.map +1 -0
  69. package/dist/destinations/customerio/index.js +12 -0
  70. package/dist/destinations/customerio/index.js.map +1 -1
  71. package/dist/destinations/customerio/mergePeople/generated-types.d.ts +4 -0
  72. package/dist/destinations/customerio/mergePeople/generated-types.js +3 -0
  73. package/dist/destinations/customerio/mergePeople/generated-types.js.map +1 -0
  74. package/dist/destinations/customerio/mergePeople/index.d.ts +5 -0
  75. package/dist/destinations/customerio/mergePeople/index.js +52 -0
  76. package/dist/destinations/customerio/mergePeople/index.js.map +1 -0
  77. package/dist/destinations/customerio/reportDeliveryEvent/generated-types.d.ts +10 -0
  78. package/dist/destinations/customerio/reportDeliveryEvent/generated-types.js +3 -0
  79. package/dist/destinations/customerio/reportDeliveryEvent/generated-types.js.map +1 -0
  80. package/dist/destinations/customerio/reportDeliveryEvent/index.d.ts +5 -0
  81. package/dist/destinations/customerio/reportDeliveryEvent/index.js +121 -0
  82. package/dist/destinations/customerio/reportDeliveryEvent/index.js.map +1 -0
  83. package/dist/destinations/customerio/suppressPerson/generated-types.d.ts +3 -0
  84. package/dist/destinations/customerio/suppressPerson/generated-types.js +3 -0
  85. package/dist/destinations/customerio/suppressPerson/generated-types.js.map +1 -0
  86. package/dist/destinations/customerio/suppressPerson/index.d.ts +5 -0
  87. package/dist/destinations/customerio/suppressPerson/index.js +41 -0
  88. package/dist/destinations/customerio/suppressPerson/index.js.map +1 -0
  89. package/dist/destinations/customerio/test-helper.d.ts +6 -0
  90. package/dist/destinations/customerio/test-helper.js +84 -0
  91. package/dist/destinations/customerio/test-helper.js.map +1 -0
  92. package/dist/destinations/customerio/unsuppressPerson/generated-types.d.ts +3 -0
  93. package/dist/destinations/customerio/unsuppressPerson/generated-types.js +3 -0
  94. package/dist/destinations/customerio/unsuppressPerson/generated-types.js.map +1 -0
  95. package/dist/destinations/customerio/unsuppressPerson/index.d.ts +5 -0
  96. package/dist/destinations/customerio/unsuppressPerson/index.js +41 -0
  97. package/dist/destinations/customerio/unsuppressPerson/index.js.map +1 -0
  98. package/dist/destinations/display-video-360/errors.d.ts +2 -2
  99. package/dist/destinations/display-video-360/errors.js +12 -6
  100. package/dist/destinations/display-video-360/errors.js.map +1 -1
  101. package/dist/destinations/display-video-360/index.js +21 -3
  102. package/dist/destinations/display-video-360/index.js.map +1 -1
  103. package/dist/destinations/display-video-360/shared.d.ts +2 -0
  104. package/dist/destinations/display-video-360/shared.js +12 -4
  105. package/dist/destinations/display-video-360/shared.js.map +1 -1
  106. package/dist/destinations/engage/sendgrid/Profile.d.ts +6 -0
  107. package/dist/destinations/engage/sendgrid/Profile.js +3 -0
  108. package/dist/destinations/engage/sendgrid/Profile.js.map +1 -0
  109. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.d.ts +18 -0
  110. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js +94 -0
  111. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js.map +1 -0
  112. package/dist/destinations/engage/twilio/sendMobilePush/PushSender.d.ts +1 -0
  113. package/dist/destinations/engage/twilio/sendMobilePush/PushSender.js +19 -6
  114. package/dist/destinations/engage/twilio/sendMobilePush/PushSender.js.map +1 -1
  115. package/dist/destinations/engage/twilio/sendMobilePush/actionDefinition.js +7 -0
  116. package/dist/destinations/engage/twilio/sendMobilePush/actionDefinition.js.map +1 -1
  117. package/dist/destinations/engage/utils/track.d.ts +17 -17
  118. package/dist/destinations/engage-messaging-twilio/sendMobilePush.types.d.ts +1 -0
  119. package/dist/destinations/facebook-conversions-api/constants.d.ts +1 -1
  120. package/dist/destinations/facebook-conversions-api/constants.js +1 -1
  121. package/dist/destinations/fullstory/index.js +4 -4
  122. package/dist/destinations/fullstory/index.js.map +1 -1
  123. package/dist/destinations/index.js +9 -0
  124. package/dist/destinations/index.js.map +1 -1
  125. package/dist/destinations/iterable/index.js +12 -0
  126. package/dist/destinations/iterable/index.js.map +1 -1
  127. package/dist/destinations/kameleoon/index.js +1 -1
  128. package/dist/destinations/kameleoon/index.js.map +1 -1
  129. package/dist/destinations/klaviyo/orderCompleted/index.js +29 -12
  130. package/dist/destinations/klaviyo/orderCompleted/index.js.map +1 -1
  131. package/dist/destinations/linkedin-conversions/api/api.test.js +119 -1
  132. package/dist/destinations/linkedin-conversions/api/api.test.js.map +1 -1
  133. package/dist/destinations/linkedin-conversions/api/index.d.ts +7 -3
  134. package/dist/destinations/linkedin-conversions/api/index.js +153 -32
  135. package/dist/destinations/linkedin-conversions/api/index.js.map +1 -1
  136. package/dist/destinations/linkedin-conversions/constants.d.ts +1 -1
  137. package/dist/destinations/linkedin-conversions/constants.js +1 -1
  138. package/dist/destinations/linkedin-conversions/streamConversion/generated-types.d.ts +2 -1
  139. package/dist/destinations/linkedin-conversions/streamConversion/index.js +38 -8
  140. package/dist/destinations/linkedin-conversions/streamConversion/index.js.map +1 -1
  141. package/dist/destinations/linkedin-conversions/types.d.ts +13 -0
  142. package/dist/destinations/linkedin-conversions/types.js.map +1 -1
  143. package/dist/destinations/mixpanel/incrementProperties/__test__/__snapshots__/snapshot.test.js.snap +18 -0
  144. package/dist/destinations/responsys/generated-types.d.ts +20 -0
  145. package/dist/destinations/responsys/generated-types.js +3 -0
  146. package/dist/destinations/responsys/generated-types.js.map +1 -0
  147. package/dist/destinations/responsys/index.d.ts +4 -0
  148. package/dist/destinations/responsys/index.js +197 -0
  149. package/dist/destinations/responsys/index.js.map +1 -0
  150. package/dist/destinations/responsys/sendAudience/generated-types.d.ts +14 -0
  151. package/dist/destinations/responsys/sendAudience/generated-types.js +3 -0
  152. package/dist/destinations/responsys/sendAudience/generated-types.js.map +1 -0
  153. package/dist/destinations/responsys/sendAudience/index.d.ts +5 -0
  154. package/dist/destinations/responsys/sendAudience/index.js +90 -0
  155. package/dist/destinations/responsys/sendAudience/index.js.map +1 -0
  156. package/dist/destinations/responsys/sendCustomTraits/generated-types.d.ts +9 -0
  157. package/dist/destinations/responsys/sendCustomTraits/generated-types.js +3 -0
  158. package/dist/destinations/responsys/sendCustomTraits/generated-types.js.map +1 -0
  159. package/dist/destinations/responsys/sendCustomTraits/index.d.ts +5 -0
  160. package/dist/destinations/responsys/sendCustomTraits/index.js +53 -0
  161. package/dist/destinations/responsys/sendCustomTraits/index.js.map +1 -0
  162. package/dist/destinations/responsys/shared_properties.d.ts +3 -0
  163. package/dist/destinations/responsys/shared_properties.js +19 -0
  164. package/dist/destinations/responsys/shared_properties.js.map +1 -0
  165. package/dist/destinations/responsys/types.d.ts +38 -0
  166. package/dist/destinations/responsys/types.js +3 -0
  167. package/dist/destinations/responsys/types.js.map +1 -0
  168. package/dist/destinations/responsys/upsertListMember/generated-types.d.ts +13 -0
  169. package/dist/destinations/responsys/upsertListMember/generated-types.js +3 -0
  170. package/dist/destinations/responsys/upsertListMember/generated-types.js.map +1 -0
  171. package/dist/destinations/responsys/upsertListMember/index.d.ts +5 -0
  172. package/dist/destinations/responsys/upsertListMember/index.js +78 -0
  173. package/dist/destinations/responsys/upsertListMember/index.js.map +1 -0
  174. package/dist/destinations/responsys/utils.d.ts +17 -0
  175. package/dist/destinations/responsys/utils.js +154 -0
  176. package/dist/destinations/responsys/utils.js.map +1 -0
  177. package/dist/destinations/schematic/generated-types.d.ts +3 -0
  178. package/dist/destinations/schematic/generated-types.js +3 -0
  179. package/dist/destinations/schematic/generated-types.js.map +1 -0
  180. package/dist/destinations/schematic/identifyUser/generated-types.d.ts +17 -0
  181. package/dist/destinations/schematic/identifyUser/generated-types.js +3 -0
  182. package/dist/destinations/schematic/identifyUser/generated-types.js.map +1 -0
  183. package/dist/destinations/schematic/identifyUser/index.d.ts +5 -0
  184. package/dist/destinations/schematic/identifyUser/index.js +85 -0
  185. package/dist/destinations/schematic/identifyUser/index.js.map +1 -0
  186. package/dist/destinations/schematic/index.d.ts +4 -0
  187. package/dist/destinations/schematic/index.js +58 -0
  188. package/dist/destinations/schematic/index.js.map +1 -0
  189. package/dist/destinations/schematic/trackEvent/generated-types.d.ts +13 -0
  190. package/dist/destinations/schematic/trackEvent/generated-types.js +3 -0
  191. package/dist/destinations/schematic/trackEvent/generated-types.js.map +1 -0
  192. package/dist/destinations/schematic/trackEvent/index.d.ts +5 -0
  193. package/dist/destinations/schematic/trackEvent/index.js +67 -0
  194. package/dist/destinations/schematic/trackEvent/index.js.map +1 -0
  195. package/dist/destinations/segment/segment-properties.d.ts +1 -0
  196. package/dist/destinations/segment/segment-properties.js +7 -1
  197. package/dist/destinations/segment/segment-properties.js.map +1 -1
  198. package/dist/destinations/segment/sendGroup/generated-types.d.ts +1 -0
  199. package/dist/destinations/segment/sendGroup/index.js +39 -25
  200. package/dist/destinations/segment/sendGroup/index.js.map +1 -1
  201. package/dist/destinations/segment/sendIdentify/generated-types.d.ts +1 -0
  202. package/dist/destinations/segment/sendIdentify/index.js +39 -25
  203. package/dist/destinations/segment/sendIdentify/index.js.map +1 -1
  204. package/dist/destinations/segment/sendPage/generated-types.d.ts +1 -0
  205. package/dist/destinations/segment/sendPage/index.js +47 -33
  206. package/dist/destinations/segment/sendPage/index.js.map +1 -1
  207. package/dist/destinations/segment/sendScreen/generated-types.d.ts +1 -0
  208. package/dist/destinations/segment/sendScreen/index.js +40 -26
  209. package/dist/destinations/segment/sendScreen/index.js.map +1 -1
  210. package/dist/destinations/segment/sendTrack/generated-types.d.ts +1 -0
  211. package/dist/destinations/segment/sendTrack/index.js +43 -29
  212. package/dist/destinations/segment/sendTrack/index.js.map +1 -1
  213. package/dist/destinations/stackadapt/forwardEvent/generated-types.d.ts +33 -0
  214. package/dist/destinations/stackadapt/forwardEvent/generated-types.js +3 -0
  215. package/dist/destinations/stackadapt/forwardEvent/generated-types.js.map +1 -0
  216. package/dist/destinations/stackadapt/forwardEvent/index.d.ts +5 -0
  217. package/dist/destinations/stackadapt/forwardEvent/index.js +273 -0
  218. package/dist/destinations/stackadapt/forwardEvent/index.js.map +1 -0
  219. package/dist/destinations/stackadapt/generated-types.d.ts +3 -0
  220. package/dist/destinations/stackadapt/generated-types.js +3 -0
  221. package/dist/destinations/stackadapt/generated-types.js.map +1 -0
  222. package/dist/destinations/stackadapt/index.d.ts +4 -0
  223. package/dist/destinations/stackadapt/index.js +38 -0
  224. package/dist/destinations/stackadapt/index.js.map +1 -0
  225. package/dist/destinations/surveysparrow/createContact/generated-types.d.ts +10 -0
  226. package/dist/destinations/surveysparrow/createContact/generated-types.js +3 -0
  227. package/dist/destinations/surveysparrow/createContact/generated-types.js.map +1 -0
  228. package/dist/destinations/surveysparrow/createContact/index.d.ts +5 -0
  229. package/dist/destinations/surveysparrow/createContact/index.js +105 -0
  230. package/dist/destinations/surveysparrow/createContact/index.js.map +1 -0
  231. package/dist/destinations/surveysparrow/generated-types.d.ts +3 -0
  232. package/dist/destinations/surveysparrow/generated-types.js +3 -0
  233. package/dist/destinations/surveysparrow/generated-types.js.map +1 -0
  234. package/dist/destinations/surveysparrow/index.d.ts +4 -0
  235. package/dist/destinations/surveysparrow/index.js +40 -0
  236. package/dist/destinations/surveysparrow/index.js.map +1 -0
  237. package/dist/destinations/surveysparrow/triggerSurvey/generated-types.d.ts +10 -0
  238. package/dist/destinations/surveysparrow/triggerSurvey/generated-types.js +3 -0
  239. package/dist/destinations/surveysparrow/triggerSurvey/generated-types.js.map +1 -0
  240. package/dist/destinations/surveysparrow/triggerSurvey/index.d.ts +8 -0
  241. package/dist/destinations/surveysparrow/triggerSurvey/index.js +165 -0
  242. package/dist/destinations/surveysparrow/triggerSurvey/index.js.map +1 -0
  243. package/dist/destinations/tiktok-conversions/common_fields.d.ts +2 -0
  244. package/dist/destinations/tiktok-conversions/common_fields.js +245 -0
  245. package/dist/destinations/tiktok-conversions/common_fields.js.map +1 -0
  246. package/dist/destinations/tiktok-conversions/formatter.d.ts +3 -0
  247. package/dist/destinations/tiktok-conversions/formatter.js +43 -0
  248. package/dist/destinations/tiktok-conversions/formatter.js.map +1 -0
  249. package/dist/destinations/tiktok-conversions/utils.d.ts +4 -0
  250. package/dist/destinations/tiktok-conversions/utils.js +65 -0
  251. package/dist/destinations/tiktok-conversions/utils.js.map +1 -0
  252. package/dist/destinations/tiktok-conversions-sandbox/common_fields.d.ts +2 -0
  253. package/dist/destinations/tiktok-conversions-sandbox/common_fields.js +244 -0
  254. package/dist/destinations/tiktok-conversions-sandbox/common_fields.js.map +1 -0
  255. package/dist/destinations/tiktok-conversions-sandbox/formatter.d.ts +3 -0
  256. package/dist/destinations/tiktok-conversions-sandbox/formatter.js +43 -0
  257. package/dist/destinations/tiktok-conversions-sandbox/formatter.js.map +1 -0
  258. package/dist/destinations/tiktok-conversions-sandbox/generated-types.d.ts +4 -0
  259. package/dist/destinations/tiktok-conversions-sandbox/generated-types.js +3 -0
  260. package/dist/destinations/tiktok-conversions-sandbox/generated-types.js.map +1 -0
  261. package/dist/destinations/tiktok-conversions-sandbox/index.d.ts +4 -0
  262. package/dist/destinations/tiktok-conversions-sandbox/index.js +247 -0
  263. package/dist/destinations/tiktok-conversions-sandbox/index.js.map +1 -0
  264. package/dist/destinations/tiktok-conversions-sandbox/reportWebEvent/generated-types.d.ts +33 -0
  265. package/dist/destinations/tiktok-conversions-sandbox/reportWebEvent/generated-types.js +3 -0
  266. package/dist/destinations/tiktok-conversions-sandbox/reportWebEvent/generated-types.js.map +1 -0
  267. package/dist/destinations/tiktok-conversions-sandbox/reportWebEvent/index.d.ts +5 -0
  268. package/dist/destinations/tiktok-conversions-sandbox/reportWebEvent/index.js +16 -0
  269. package/dist/destinations/tiktok-conversions-sandbox/reportWebEvent/index.js.map +1 -0
  270. package/dist/destinations/tiktok-conversions-sandbox/utils.d.ts +4 -0
  271. package/dist/destinations/tiktok-conversions-sandbox/utils.js +65 -0
  272. package/dist/destinations/tiktok-conversions-sandbox/utils.js.map +1 -0
  273. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/generated-types.d.ts +33 -0
  274. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/generated-types.js +3 -0
  275. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/generated-types.js.map +1 -0
  276. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/index.d.ts +5 -0
  277. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/index.js +16 -0
  278. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/index.js.map +1 -0
  279. package/dist/destinations/tiktok-offline-conversions/utils.d.ts +8 -0
  280. package/dist/destinations/tiktok-offline-conversions/utils.js +67 -0
  281. package/dist/destinations/tiktok-offline-conversions/utils.js.map +1 -0
  282. package/dist/destinations/tiktok-offline-conversions-sandbox/common_fields.d.ts +2 -0
  283. package/dist/destinations/tiktok-offline-conversions-sandbox/common_fields.js +244 -0
  284. package/dist/destinations/tiktok-offline-conversions-sandbox/common_fields.js.map +1 -0
  285. package/dist/destinations/tiktok-offline-conversions-sandbox/formatter.d.ts +3 -0
  286. package/dist/destinations/tiktok-offline-conversions-sandbox/formatter.js +43 -0
  287. package/dist/destinations/tiktok-offline-conversions-sandbox/formatter.js.map +1 -0
  288. package/dist/destinations/tiktok-offline-conversions-sandbox/generated-types.d.ts +4 -0
  289. package/dist/destinations/tiktok-offline-conversions-sandbox/generated-types.js +3 -0
  290. package/dist/destinations/tiktok-offline-conversions-sandbox/generated-types.js.map +1 -0
  291. package/dist/destinations/tiktok-offline-conversions-sandbox/index.d.ts +4 -0
  292. package/dist/destinations/tiktok-offline-conversions-sandbox/index.js +251 -0
  293. package/dist/destinations/tiktok-offline-conversions-sandbox/index.js.map +1 -0
  294. package/dist/destinations/tiktok-offline-conversions-sandbox/reportOfflineEvent/generated-types.d.ts +33 -0
  295. package/dist/destinations/tiktok-offline-conversions-sandbox/reportOfflineEvent/generated-types.js +3 -0
  296. package/dist/destinations/tiktok-offline-conversions-sandbox/reportOfflineEvent/generated-types.js.map +1 -0
  297. package/dist/destinations/tiktok-offline-conversions-sandbox/reportOfflineEvent/index.d.ts +5 -0
  298. package/dist/destinations/tiktok-offline-conversions-sandbox/reportOfflineEvent/index.js +16 -0
  299. package/dist/destinations/tiktok-offline-conversions-sandbox/reportOfflineEvent/index.js.map +1 -0
  300. package/dist/destinations/tiktok-offline-conversions-sandbox/trackNonPaymentOfflineConversion/generated-types.d.ts +33 -0
  301. package/dist/destinations/tiktok-offline-conversions-sandbox/trackNonPaymentOfflineConversion/generated-types.js +3 -0
  302. package/dist/destinations/tiktok-offline-conversions-sandbox/trackNonPaymentOfflineConversion/generated-types.js.map +1 -0
  303. package/dist/destinations/tiktok-offline-conversions-sandbox/trackNonPaymentOfflineConversion/index.d.ts +5 -0
  304. package/dist/destinations/tiktok-offline-conversions-sandbox/trackNonPaymentOfflineConversion/index.js +16 -0
  305. package/dist/destinations/tiktok-offline-conversions-sandbox/trackNonPaymentOfflineConversion/index.js.map +1 -0
  306. package/dist/destinations/tiktok-offline-conversions-sandbox/trackPaymentOfflineConversion/generated-types.d.ts +33 -0
  307. package/dist/destinations/tiktok-offline-conversions-sandbox/trackPaymentOfflineConversion/generated-types.js +3 -0
  308. package/dist/destinations/tiktok-offline-conversions-sandbox/trackPaymentOfflineConversion/generated-types.js.map +1 -0
  309. package/dist/destinations/tiktok-offline-conversions-sandbox/trackPaymentOfflineConversion/index.d.ts +5 -0
  310. package/dist/destinations/tiktok-offline-conversions-sandbox/trackPaymentOfflineConversion/index.js +16 -0
  311. package/dist/destinations/tiktok-offline-conversions-sandbox/trackPaymentOfflineConversion/index.js.map +1 -0
  312. package/dist/destinations/tiktok-offline-conversions-sandbox/utils.d.ts +8 -0
  313. package/dist/destinations/tiktok-offline-conversions-sandbox/utils.js +68 -0
  314. package/dist/destinations/tiktok-offline-conversions-sandbox/utils.js.map +1 -0
  315. package/dist/destinations/trackey/group.types.d.ts +11 -0
  316. package/dist/destinations/trackey/group.types.js +3 -0
  317. package/dist/destinations/trackey/group.types.js.map +1 -0
  318. package/dist/destinations/trackey/identify.types.d.ts +11 -0
  319. package/dist/destinations/trackey/identify.types.js +3 -0
  320. package/dist/destinations/trackey/identify.types.js.map +1 -0
  321. package/dist/destinations/trackey/track.types.d.ts +12 -0
  322. package/dist/destinations/trackey/track.types.js +3 -0
  323. package/dist/destinations/trackey/track.types.js.map +1 -0
  324. package/dist/destinations/webhook/send/index.js +6 -0
  325. package/dist/destinations/webhook/send/index.js.map +1 -1
  326. package/package.json +3 -3
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.performWebEvent = void 0;
4
+ const formatter_1 = require("./formatter");
5
+ function performWebEvent(request, settings, payload) {
6
+ const phone_numbers = formatter_1.formatPhones(payload.phone_number);
7
+ const emails = formatter_1.formatEmails(payload.email);
8
+ const userIds = formatter_1.formatUserIds(payload.external_id);
9
+ let payloadUrl, urlTtclid;
10
+ if (payload.url) {
11
+ try {
12
+ payloadUrl = new URL(payload.url);
13
+ }
14
+ catch (error) {
15
+ }
16
+ }
17
+ if (payloadUrl)
18
+ urlTtclid = payloadUrl.searchParams.get('ttclid');
19
+ return request('https://business-api.tiktok.com/open_api/v1.3/event/track/', {
20
+ method: 'post',
21
+ json: {
22
+ event_source: 'web',
23
+ event_source_id: settings.pixelCode,
24
+ partner_name: 'Segment',
25
+ data: [
26
+ {
27
+ event: payload.event,
28
+ event_time: payload.timestamp
29
+ ? Math.floor(new Date(payload.timestamp).getTime() / 1000)
30
+ : Math.floor(new Date().getTime() / 1000),
31
+ event_id: payload.event_id ? `${payload.event_id}` : undefined,
32
+ user: {
33
+ ttclid: payload.ttclid ? payload.ttclid : urlTtclid ? urlTtclid : undefined,
34
+ external_id: userIds,
35
+ phone: phone_numbers,
36
+ email: emails,
37
+ lead_id: payload.lead_id ? payload.lead_id : undefined,
38
+ ttp: payload.ttp ? payload.ttp : undefined,
39
+ ip: payload.ip ? payload.ip : undefined,
40
+ user_agent: payload.user_agent ? payload.user_agent : undefined,
41
+ locale: payload.locale ? payload.locale : undefined
42
+ },
43
+ properties: {
44
+ contents: payload.contents ? payload.contents : [],
45
+ content_type: payload.content_type ? payload.content_type : undefined,
46
+ currency: payload.currency ? payload.currency : undefined,
47
+ value: payload.value ? payload.value : undefined,
48
+ query: payload.query ? payload.query : undefined,
49
+ description: payload.description ? payload.description : undefined,
50
+ order_id: payload.order_id ? payload.order_id : undefined,
51
+ shop_id: payload.shop_id ? payload.shop_id : undefined
52
+ },
53
+ page: {
54
+ url: payload.url ? payload.url : undefined,
55
+ referrer: payload.referrer ? payload.referrer : undefined
56
+ },
57
+ limited_data_use: payload.limited_data_use ? payload.limited_data_use : false,
58
+ test_event_code: payload.test_event_code ? payload.test_event_code : undefined
59
+ }
60
+ ]
61
+ }
62
+ });
63
+ }
64
+ exports.performWebEvent = performWebEvent;
65
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/destinations/tiktok-conversions-sandbox/utils.ts"],"names":[],"mappings":";;;AAGA,2CAAuE;AAEvE,SAAgB,eAAe,CAAC,OAAsB,EAAE,QAAkB,EAAE,OAAgB;IAC1F,MAAM,aAAa,GAAG,wBAAY,CAAC,OAAO,CAAC,YAAY,CAAC,CAAA;IACxD,MAAM,MAAM,GAAG,wBAAY,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC1C,MAAM,OAAO,GAAG,yBAAa,CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;IAElD,IAAI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O,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS;wBAC1C,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS;qBAC1D;oBACD,gBAAgB,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,KAAK;oBAC7E,eAAe,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS;iBAC/E;aACF;SACF;KACF,CAAC,CAAA;AACJ,CAAC;AA5DD,0CA4DC"}
@@ -0,0 +1,33 @@
1
+ export interface Payload {
2
+ event: string;
3
+ event_id?: string;
4
+ timestamp?: string;
5
+ phone_numbers?: string[];
6
+ email_addresses?: string[];
7
+ order_id?: string;
8
+ shop_id?: string;
9
+ external_ids?: string[];
10
+ ttclid?: string;
11
+ ttp?: string;
12
+ lead_id?: string;
13
+ locale?: string;
14
+ url?: string;
15
+ referrer?: string;
16
+ ip?: string;
17
+ user_agent?: string;
18
+ contents?: {
19
+ price?: number;
20
+ quantity?: number;
21
+ content_category?: string;
22
+ content_id?: string;
23
+ content_name?: string;
24
+ brand?: string;
25
+ }[];
26
+ content_type?: string;
27
+ currency?: string;
28
+ value?: number;
29
+ description?: string;
30
+ query?: string;
31
+ limited_data_use?: boolean;
32
+ test_event_code?: string;
33
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=generated-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/tiktok-offline-conversions/reportOfflineEvent/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
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;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const common_fields_1 = require("../common_fields");
4
+ const utils_1 = require("../utils");
5
+ const action = {
6
+ title: 'Track Payment Offline Conversion',
7
+ description: 'Send details of an in-store purchase or console purchase to the Tiktok Offline Events API',
8
+ fields: {
9
+ ...common_fields_1.commonFields
10
+ },
11
+ perform: (request, { payload, settings }) => {
12
+ return utils_1.performOfflineEvent(request, settings, payload);
13
+ }
14
+ };
15
+ exports.default = action;
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/tiktok-offline-conversions/reportOfflineEvent/index.ts"],"names":[],"mappings":";;AAGA,oDAA+C;AAC/C,oCAA8C;AAE9C,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,kCAAkC;IACzC,WAAW,EAAE,2FAA2F;IACxG,MAAM,EAAE;QACN,GAAG,4BAAY;KAChB;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC1C,OAAO,2BAAmB,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA;IACxD,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { RequestClient } from '@segment/actions-core';
2
+ import { Settings } from './generated-types';
3
+ import { Payload as ReportOfflineEventPayload } from './reportOfflineEvent/generated-types';
4
+ import { Payload as TrackNonPaymentOfflineConversionPayload } from './trackNonPaymentOfflineConversion/generated-types';
5
+ import { Payload as TrackPaymentOfflineConversionPayload } from './trackPaymentOfflineConversion/generated-types';
6
+ declare type OfflineEventPayload = ReportOfflineEventPayload | TrackNonPaymentOfflineConversionPayload | TrackPaymentOfflineConversionPayload;
7
+ export declare function performOfflineEvent(request: RequestClient, settings: Settings, payload: OfflineEventPayload): Promise<import("@segment/actions-core").ModifiedResponse<unknown>>;
8
+ export {};
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.performOfflineEvent = void 0;
4
+ const actions_core_1 = require("@segment/actions-core");
5
+ const formatter_1 = require("./formatter");
6
+ function performOfflineEvent(request, settings, payload) {
7
+ const phone_numbers = formatter_1.formatPhones(payload.phone_numbers);
8
+ const emails = formatter_1.formatEmails(payload.email_addresses);
9
+ const userIds = formatter_1.formatUserIds(payload.external_ids);
10
+ if (phone_numbers.length < 1 && emails.length < 1 && userIds.length < 1)
11
+ throw new actions_core_1.PayloadValidationError('TikTok Offline Conversions API requires an email address and/or phone number and or a userId');
12
+ const urlTtclid = payload.url
13
+ ? (() => {
14
+ try {
15
+ return new URL(payload.url).searchParams.get('ttclid');
16
+ }
17
+ catch (error) {
18
+ }
19
+ })()
20
+ : undefined;
21
+ return request('https://business-api.tiktok.com/open_api/v1.3/event/track/', {
22
+ method: 'post',
23
+ json: {
24
+ event_source: 'offline',
25
+ event_source_id: settings.eventSetID,
26
+ partner_name: 'Segment',
27
+ data: [
28
+ {
29
+ event: payload.event,
30
+ event_time: payload.timestamp
31
+ ? Math.floor(new Date(payload.timestamp).getTime() / 1000)
32
+ : Math.floor(new Date().getTime() / 1000),
33
+ event_id: payload.event_id ? `${payload.event_id}` : undefined,
34
+ user: {
35
+ ttclid: payload.ttclid ? payload.ttclid : urlTtclid ? urlTtclid : undefined,
36
+ external_id: userIds,
37
+ phone: phone_numbers,
38
+ email: emails,
39
+ lead_id: payload.lead_id ? payload.lead_id : undefined,
40
+ ttp: payload.ttp ? payload.ttp : undefined,
41
+ ip: payload.ip ? payload.ip : undefined,
42
+ user_agent: payload.user_agent ? payload.user_agent : undefined,
43
+ locale: payload.locale ? payload.locale : undefined
44
+ },
45
+ properties: {
46
+ contents: payload.contents ? payload.contents : [],
47
+ content_type: payload.content_type ? payload.content_type : undefined,
48
+ currency: payload.currency ? payload.currency : undefined,
49
+ value: payload.value ? payload.value : undefined,
50
+ query: payload.query ? payload.query : undefined,
51
+ description: payload.description ? payload.description : undefined,
52
+ order_id: payload.order_id ? payload.order_id : undefined,
53
+ shop_id: payload.shop_id ? payload.shop_id : undefined
54
+ },
55
+ page: {
56
+ url: payload.url ? payload.url : undefined,
57
+ referrer: payload.referrer ? payload.referrer : undefined
58
+ },
59
+ limited_data_use: payload.limited_data_use ? payload.limited_data_use : false,
60
+ test_event_code: payload.test_event_code ? payload.test_event_code : undefined
61
+ }
62
+ ]
63
+ }
64
+ });
65
+ }
66
+ exports.performOfflineEvent = performOfflineEvent;
67
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/destinations/tiktok-offline-conversions/utils.ts"],"names":[],"mappings":";;;AAAA,wDAA6E;AAK7E,2CAAuE;AAOvE,SAAgB,mBAAmB,CAAC,OAAsB,EAAE,QAAkB,EAAE,OAA4B;IAC1G,MAAM,aAAa,GAAG,wBAAY,CAAC,OAAO,CAAC,aAAa,CAAC,CAAA;IACzD,MAAM,MAAM,GAAG,wBAAY,CAAC,OAAO,CAAC,eAAe,CAAC,CAAA;IACpD,MAAM,OAAO,GAAG,yBAAa,CAAC,OAAO,CAAC,YAAY,CAAC,CAAA;IAEnD,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC;QACrE,MAAM,IAAI,qCAAsB,CAC9B,8FAA8F,CAC/F,CAAA;IAEH,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG;QAC3B,CAAC,CAAC,CAAC,GAAG,EAAE;YACJ,IAAI;gBACF,OAAO,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;aACvD;YAAC,OAAO,K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AAE,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,KAAK;oBAC7E,eAAe,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS;iBAC/E;aACF;SACF;KACF,CAAC,CAAA;AACJ,CAAC;AAhED,kDAgEC"}
@@ -0,0 +1,2 @@
1
+ import { InputField } from '@segment/actions-core';
2
+ export declare const commonFields: Record<string, InputField>;
@@ -0,0 +1,244 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.commonFields = void 0;
4
+ exports.commonFields = {
5
+ event: {
6
+ label: 'Event Name',
7
+ type: 'string',
8
+ required: true,
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
+ },
11
+ event_id: {
12
+ label: 'Event ID',
13
+ type: 'string',
14
+ description: 'Any hashed ID that can identify a unique user/session.',
15
+ default: {
16
+ '@path': '$.messageId'
17
+ }
18
+ },
19
+ timestamp: {
20
+ label: 'Event Timestamp',
21
+ type: 'string',
22
+ description: 'Timestamp that the event took place, in ISO 8601 format.',
23
+ default: {
24
+ '@path': '$.timestamp'
25
+ }
26
+ },
27
+ phone_numbers: {
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.',
30
+ type: 'string',
31
+ multiple: true,
32
+ default: {
33
+ '@if': {
34
+ exists: { '@path': '$.properties.phone' },
35
+ then: { '@path': '$.properties.phone' },
36
+ else: { '@path': '$.context.traits.phone' }
37
+ }
38
+ }
39
+ },
40
+ email_addresses: {
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.',
43
+ type: 'string',
44
+ multiple: true,
45
+ default: {
46
+ '@if': {
47
+ exists: { '@path': '$.properties.email' },
48
+ then: { '@path': '$.properties.email' },
49
+ else: { '@path': '$.context.traits.email' }
50
+ }
51
+ }
52
+ },
53
+ order_id: {
54
+ label: 'Order ID',
55
+ type: 'string',
56
+ description: 'Order ID of the transaction.',
57
+ default: {
58
+ '@path': '$.properties.order_id'
59
+ }
60
+ },
61
+ shop_id: {
62
+ label: 'Shop ID',
63
+ type: 'string',
64
+ description: 'Shop ID of the transaction.',
65
+ default: {
66
+ '@path': '$.properties.shop_id'
67
+ }
68
+ },
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: ['product', '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',
240
+ type: 'string',
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.'
242
+ }
243
+ };
244
+ //# sourceMappingURL=common_fields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common_fields.js","sourceRoot":"","sources":["../../../src/destinations/tiktok-offline-conversions-sandbox/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,aAAa,EAAE;QACb,KAAK,EAAE,cAAc;QACrB,WAAW,EACT,8NAA8N;QAChO,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,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,wBAAwB,EAAE;aAC5C;SACF;KACF;IACD,eAAe,EAAE;QACf,KAAK,EAAE,OAAO;QACd,WAAW,EACT,2MAA2M;QAC7M,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE;YACP,KAAK,EAAE;gBACL,MAAM,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;gBACz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,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"}
@@ -0,0 +1,3 @@
1
+ export declare const formatEmails: (email_addresses: string[] | undefined) => string[];
2
+ export declare const formatPhones: (phone_numbers: string[] | undefined) => string[];
3
+ export declare function formatUserIds(userIds: string[] | undefined): string[];
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.formatUserIds = exports.formatPhones = exports.formatEmails = void 0;
4
+ const crypto_1 = require("crypto");
5
+ const formatEmails = (email_addresses) => {
6
+ const result = [];
7
+ if (email_addresses) {
8
+ email_addresses.forEach((email) => {
9
+ result.push(hashAndEncode(email.toLowerCase()));
10
+ });
11
+ }
12
+ return result;
13
+ };
14
+ exports.formatEmails = formatEmails;
15
+ const formatPhones = (phone_numbers) => {
16
+ const result = [];
17
+ if (!phone_numbers)
18
+ return result;
19
+ phone_numbers.forEach((phone) => {
20
+ const validatedPhone = phone.match(/[0-9]{0,14}/g);
21
+ if (validatedPhone === null) {
22
+ throw new Error(`${phone} is not a valid E.164 phone number.`);
23
+ }
24
+ const formattedPhone = `+${phone.replace(/[^0-9]/g, '')}`;
25
+ result.push(hashAndEncode(formattedPhone.substring(0, 15)));
26
+ });
27
+ return result;
28
+ };
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;
40
+ function hashAndEncode(property) {
41
+ return crypto_1.createHash('sha256').update(property).digest('hex');
42
+ }
43
+ //# sourceMappingURL=formatter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatter.js","sourceRoot":"","sources":["../../../src/destinations/tiktok-offline-conversions-sandbox/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,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"}
@@ -0,0 +1,4 @@
1
+ export interface Settings {
2
+ accessToken: string;
3
+ eventSetID: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=generated-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/destinations/tiktok-offline-conversions-sandbox/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { DestinationDefinition } from '@segment/actions-core';
2
+ import type { Settings } from './generated-types';
3
+ declare const destination: DestinationDefinition<Settings>;
4
+ export default destination;