@segment/action-destinations 3.337.2-staging.1 → 3.337.4-staging-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (430) hide show
  1. package/README.md +1 -1
  2. package/dist/destinations/acoustic-s3tc/receiveEvents/eventprocessing.js +6 -2
  3. package/dist/destinations/acoustic-s3tc/receiveEvents/eventprocessing.js.map +1 -1
  4. package/dist/destinations/acoustic-s3tc/receiveEvents/preCheck.js +7 -1
  5. package/dist/destinations/acoustic-s3tc/receiveEvents/preCheck.js.map +1 -1
  6. package/dist/destinations/aggregations-io/generated-types.d.ts +4 -0
  7. package/dist/destinations/aggregations-io/generated-types.js.map +1 -0
  8. package/dist/destinations/aggregations-io/index.js +58 -0
  9. package/dist/destinations/aggregations-io/index.js.map +1 -0
  10. package/dist/destinations/aggregations-io/send/generated-types.d.ts +7 -0
  11. package/dist/destinations/aggregations-io/send/generated-types.js.map +1 -0
  12. package/dist/destinations/aggregations-io/send/index.js +44 -0
  13. package/dist/destinations/aggregations-io/send/index.js.map +1 -0
  14. package/dist/destinations/aggregations-io/types.d.ts +8 -0
  15. package/dist/destinations/aggregations-io/types.js +8 -0
  16. package/dist/destinations/aggregations-io/types.js.map +1 -0
  17. package/dist/destinations/airship/registerAndAssociate/generated-types.d.ts +3 -0
  18. package/dist/destinations/airship/registerAndAssociate/index.js +35 -7
  19. package/dist/destinations/airship/registerAndAssociate/index.js.map +1 -1
  20. package/dist/destinations/airship/utilities.d.ts +3 -1
  21. package/dist/destinations/airship/utilities.js +76 -41
  22. package/dist/destinations/airship/utilities.js.map +1 -1
  23. package/dist/destinations/algolia-insights/conversionEvents/generated-types.d.ts +2 -2
  24. package/dist/destinations/algolia-insights/conversionEvents/index.js +7 -3
  25. package/dist/destinations/algolia-insights/conversionEvents/index.js.map +1 -1
  26. package/dist/destinations/algolia-insights/index.js +7 -0
  27. package/dist/destinations/algolia-insights/index.js.map +1 -1
  28. package/dist/destinations/algolia-insights/productAddedEvents/generated-types.d.ts +2 -2
  29. package/dist/destinations/algolia-insights/productAddedEvents/index.js +7 -3
  30. package/dist/destinations/algolia-insights/productAddedEvents/index.js.map +1 -1
  31. package/dist/destinations/algolia-insights/productClickedEvents/generated-types.d.ts +2 -2
  32. package/dist/destinations/algolia-insights/productClickedEvents/index.js +7 -3
  33. package/dist/destinations/algolia-insights/productClickedEvents/index.js.map +1 -1
  34. package/dist/destinations/algolia-insights/productListFilteredEvents/generated-types.d.ts +2 -2
  35. package/dist/destinations/algolia-insights/productListFilteredEvents/index.js +7 -3
  36. package/dist/destinations/algolia-insights/productListFilteredEvents/index.js.map +1 -1
  37. package/dist/destinations/algolia-insights/productViewedEvents/generated-types.d.ts +2 -2
  38. package/dist/destinations/algolia-insights/productViewedEvents/index.js +7 -3
  39. package/dist/destinations/algolia-insights/productViewedEvents/index.js.map +1 -1
  40. package/dist/destinations/amazon-ads/generated-types.d.ts +3 -0
  41. package/dist/destinations/amazon-ads/generated-types.js.map +1 -0
  42. package/dist/destinations/amazon-ads/index.d.ts +4 -0
  43. package/dist/destinations/amazon-ads/index.js +87 -0
  44. package/dist/destinations/amazon-ads/index.js.map +1 -0
  45. package/dist/destinations/amazon-ads/syncAudiences/generated-types.d.ts +2 -0
  46. package/dist/destinations/{engage/sendgrid/Profile.js → amazon-ads/syncAudiences/generated-types.js} +1 -1
  47. package/dist/destinations/amazon-ads/syncAudiences/generated-types.js.map +1 -0
  48. package/dist/destinations/amazon-ads/syncAudiences/index.d.ts +5 -0
  49. package/dist/destinations/amazon-ads/syncAudiences/index.js +15 -0
  50. package/dist/destinations/amazon-ads/syncAudiences/index.js.map +1 -0
  51. package/dist/destinations/amazon-ads/types.d.ts +22 -0
  52. package/dist/destinations/amazon-ads/types.js +11 -0
  53. package/dist/destinations/amazon-ads/types.js.map +1 -0
  54. package/dist/destinations/braze/index.js +12 -0
  55. package/dist/destinations/braze/index.js.map +1 -1
  56. package/dist/destinations/braze/trackEvent/generated-types.d.ts +1 -0
  57. package/dist/destinations/braze/trackEvent/index.js +8 -0
  58. package/dist/destinations/braze/trackEvent/index.js.map +1 -1
  59. package/dist/destinations/braze/trackPurchase/generated-types.d.ts +1 -0
  60. package/dist/destinations/braze/trackPurchase/index.js +8 -0
  61. package/dist/destinations/braze/trackPurchase/index.js.map +1 -1
  62. package/dist/destinations/braze/utils.js +15 -11
  63. package/dist/destinations/braze/utils.js.map +1 -1
  64. package/dist/destinations/courier/generated-types.d.ts +4 -0
  65. package/dist/destinations/courier/generated-types.js +3 -0
  66. package/dist/destinations/courier/generated-types.js.map +1 -0
  67. package/dist/destinations/courier/index.d.ts +4 -0
  68. package/dist/destinations/courier/index.js +44 -0
  69. package/dist/destinations/courier/index.js.map +1 -0
  70. package/dist/destinations/courier/postToCourier/generated-types.d.ts +5 -0
  71. package/dist/destinations/courier/postToCourier/generated-types.js +3 -0
  72. package/dist/destinations/courier/postToCourier/generated-types.js.map +1 -0
  73. package/dist/destinations/courier/postToCourier/index.js +35 -0
  74. package/dist/destinations/courier/postToCourier/index.js.map +1 -0
  75. package/dist/destinations/criteo-audiences/addUserToAudience/index.js +5 -5
  76. package/dist/destinations/criteo-audiences/addUserToAudience/index.js.map +1 -1
  77. package/dist/destinations/criteo-audiences/criteo-audiences.js +13 -2
  78. package/dist/destinations/criteo-audiences/criteo-audiences.js.map +1 -1
  79. package/dist/destinations/criteo-audiences/removeUserFromAudience/index.js +5 -5
  80. package/dist/destinations/criteo-audiences/removeUserFromAudience/index.js.map +1 -1
  81. package/dist/destinations/customerio/createUpdateDevice/generated-types.d.ts +3 -0
  82. package/dist/destinations/customerio/createUpdateDevice/index.js +25 -16
  83. package/dist/destinations/customerio/createUpdateDevice/index.js.map +1 -1
  84. package/dist/destinations/customerio/createUpdateObject/generated-types.d.ts +3 -0
  85. package/dist/destinations/customerio/createUpdateObject/index.js +76 -39
  86. package/dist/destinations/customerio/createUpdateObject/index.js.map +1 -1
  87. package/dist/destinations/customerio/createUpdatePerson/generated-types.d.ts +4 -1
  88. package/dist/destinations/customerio/createUpdatePerson/index.d.ts +1 -1
  89. package/dist/destinations/customerio/createUpdatePerson/index.js +50 -41
  90. package/dist/destinations/customerio/createUpdatePerson/index.js.map +1 -1
  91. package/dist/destinations/customerio/deleteDevice/index.js +14 -4
  92. package/dist/destinations/customerio/deleteDevice/index.js.map +1 -1
  93. package/dist/destinations/customerio/deleteObject/generated-types.d.ts +4 -0
  94. package/dist/destinations/customerio/deleteObject/generated-types.js +3 -0
  95. package/dist/destinations/customerio/deleteObject/generated-types.js.map +1 -0
  96. package/dist/destinations/customerio/deleteObject/index.d.ts +5 -0
  97. package/dist/destinations/customerio/deleteObject/index.js +48 -0
  98. package/dist/destinations/customerio/deleteObject/index.js.map +1 -0
  99. package/dist/destinations/customerio/deletePerson/generated-types.d.ts +3 -0
  100. package/dist/destinations/customerio/deletePerson/generated-types.js +3 -0
  101. package/dist/destinations/customerio/deletePerson/generated-types.js.map +1 -0
  102. package/dist/destinations/customerio/deletePerson/index.d.ts +5 -0
  103. package/dist/destinations/customerio/deletePerson/index.js +41 -0
  104. package/dist/destinations/customerio/deletePerson/index.js.map +1 -0
  105. package/dist/destinations/customerio/deleteRelationship/generated-types.d.ts +6 -0
  106. package/dist/destinations/customerio/deleteRelationship/generated-types.js +3 -0
  107. package/dist/destinations/customerio/deleteRelationship/generated-types.js.map +1 -0
  108. package/dist/destinations/customerio/deleteRelationship/index.d.ts +5 -0
  109. package/dist/destinations/customerio/deleteRelationship/index.js +82 -0
  110. package/dist/destinations/customerio/deleteRelationship/index.js.map +1 -0
  111. package/dist/destinations/customerio/index.js +39 -15
  112. package/dist/destinations/customerio/index.js.map +1 -1
  113. package/dist/destinations/customerio/mergePeople/generated-types.d.ts +4 -0
  114. package/dist/destinations/customerio/mergePeople/generated-types.js +3 -0
  115. package/dist/destinations/customerio/mergePeople/generated-types.js.map +1 -0
  116. package/dist/destinations/customerio/mergePeople/index.d.ts +5 -0
  117. package/dist/destinations/customerio/mergePeople/index.js +52 -0
  118. package/dist/destinations/customerio/mergePeople/index.js.map +1 -0
  119. package/dist/destinations/customerio/reportDeliveryEvent/generated-types.d.ts +10 -0
  120. package/dist/destinations/customerio/reportDeliveryEvent/generated-types.js +3 -0
  121. package/dist/destinations/customerio/reportDeliveryEvent/generated-types.js.map +1 -0
  122. package/dist/destinations/customerio/reportDeliveryEvent/index.d.ts +5 -0
  123. package/dist/destinations/customerio/reportDeliveryEvent/index.js +125 -0
  124. package/dist/destinations/customerio/reportDeliveryEvent/index.js.map +1 -0
  125. package/dist/destinations/customerio/suppressPerson/generated-types.d.ts +3 -0
  126. package/dist/destinations/customerio/suppressPerson/generated-types.js +3 -0
  127. package/dist/destinations/customerio/suppressPerson/generated-types.js.map +1 -0
  128. package/dist/destinations/customerio/suppressPerson/index.d.ts +5 -0
  129. package/dist/destinations/customerio/suppressPerson/index.js +41 -0
  130. package/dist/destinations/customerio/suppressPerson/index.js.map +1 -0
  131. package/dist/destinations/customerio/test-helper.d.ts +4 -0
  132. package/dist/destinations/customerio/test-helper.js +77 -0
  133. package/dist/destinations/customerio/test-helper.js.map +1 -0
  134. package/dist/destinations/customerio/trackEvent/index.js +26 -32
  135. package/dist/destinations/customerio/trackEvent/index.js.map +1 -1
  136. package/dist/destinations/customerio/trackPageView/generated-types.d.ts +1 -0
  137. package/dist/destinations/customerio/trackPageView/index.js +23 -29
  138. package/dist/destinations/customerio/trackPageView/index.js.map +1 -1
  139. package/dist/destinations/customerio/trackScreenView/generated-types.d.ts +1 -0
  140. package/dist/destinations/customerio/trackScreenView/index.js +22 -29
  141. package/dist/destinations/customerio/trackScreenView/index.js.map +1 -1
  142. package/dist/destinations/customerio/unsuppressPerson/generated-types.d.ts +3 -0
  143. package/dist/destinations/customerio/unsuppressPerson/generated-types.js +3 -0
  144. package/dist/destinations/customerio/unsuppressPerson/generated-types.js.map +1 -0
  145. package/dist/destinations/customerio/unsuppressPerson/index.d.ts +5 -0
  146. package/dist/destinations/customerio/unsuppressPerson/index.js +41 -0
  147. package/dist/destinations/customerio/unsuppressPerson/index.js.map +1 -0
  148. package/dist/destinations/customerio/utils.d.ts +44 -2
  149. package/dist/destinations/customerio/utils.js +89 -13
  150. package/dist/destinations/customerio/utils.js.map +1 -1
  151. package/dist/destinations/devrev/createRevUser/index.js +9 -6
  152. package/dist/destinations/devrev/createRevUser/index.js.map +1 -1
  153. package/dist/destinations/devrev/utils/types.d.ts +9 -0
  154. package/dist/destinations/display-video-360/index.js +1 -1
  155. package/dist/destinations/display-video-360/index.js.map +1 -1
  156. package/dist/destinations/display-video-360/properties.js +4 -4
  157. package/dist/destinations/display-video-360/properties.js.map +1 -1
  158. package/dist/destinations/display-video-360/proto/protofile.d.ts +1 -0
  159. package/dist/destinations/display-video-360/proto/protofile.js +1 -0
  160. package/dist/destinations/display-video-360/proto/protofile.js.map +1 -1
  161. package/dist/destinations/display-video-360/shared.js +1 -0
  162. package/dist/destinations/display-video-360/shared.js.map +1 -1
  163. package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js +7 -3
  164. package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js.map +1 -1
  165. package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.js +0 -3
  166. package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.js.map +1 -1
  167. package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js +8 -2
  168. package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js.map +1 -1
  169. package/dist/destinations/engage/utils/EngageStats.js +0 -4
  170. package/dist/destinations/engage/utils/EngageStats.js.map +1 -1
  171. package/dist/destinations/equals/generated-types.d.ts +3 -0
  172. package/dist/destinations/equals/generated-types.js +3 -0
  173. package/dist/destinations/equals/generated-types.js.map +1 -0
  174. package/dist/destinations/equals/index.d.ts +4 -0
  175. package/dist/destinations/equals/index.js +38 -0
  176. package/dist/destinations/equals/index.js.map +1 -0
  177. package/dist/destinations/equals/send/generated-types.d.ts +5 -0
  178. package/dist/destinations/equals/send/generated-types.js +3 -0
  179. package/dist/destinations/equals/send/generated-types.js.map +1 -0
  180. package/dist/destinations/equals/send/index.d.ts +5 -0
  181. package/dist/destinations/equals/send/index.js +38 -0
  182. package/dist/destinations/equals/send/index.js.map +1 -0
  183. package/dist/destinations/facebook-conversions-api/fb-capi-app-data.js +1 -1
  184. package/dist/destinations/google-enhanced-conversions/functions.d.ts +1 -1
  185. package/dist/destinations/google-enhanced-conversions/functions.js +1 -1
  186. package/dist/destinations/hubspot/sendCustomBehavioralEvent/index.js +0 -1
  187. package/dist/destinations/hubspot/sendCustomBehavioralEvent/index.js.map +1 -1
  188. package/dist/destinations/hubspot/utils.d.ts +3 -3
  189. package/dist/destinations/index.js +4 -1
  190. package/dist/destinations/index.js.map +1 -1
  191. package/dist/destinations/kevel/generated-types.d.ts +4 -0
  192. package/dist/destinations/kevel/generated-types.js +3 -0
  193. package/dist/destinations/kevel/generated-types.js.map +1 -0
  194. package/dist/destinations/kevel/index.d.ts +4 -0
  195. package/dist/destinations/kevel/index.js +45 -0
  196. package/dist/destinations/kevel/index.js.map +1 -0
  197. package/dist/destinations/kevel/syncAudience/generated-types.d.ts +8 -0
  198. package/dist/destinations/kevel/syncAudience/generated-types.js +3 -0
  199. package/dist/destinations/kevel/syncAudience/generated-types.js.map +1 -0
  200. package/dist/destinations/kevel/syncAudience/index.d.ts +5 -0
  201. package/dist/destinations/kevel/syncAudience/index.js +64 -0
  202. package/dist/destinations/kevel/syncAudience/index.js.map +1 -0
  203. package/dist/destinations/kevel/syncTraits/generated-types.d.ts +6 -0
  204. package/dist/destinations/kevel/syncTraits/generated-types.js +3 -0
  205. package/dist/destinations/kevel/syncTraits/generated-types.js.map +1 -0
  206. package/dist/destinations/kevel/syncTraits/index.d.ts +5 -0
  207. package/dist/destinations/kevel/syncTraits/index.js +39 -0
  208. package/dist/destinations/kevel/syncTraits/index.js.map +1 -0
  209. package/dist/destinations/linkedin-conversions/api/api.test.js +43 -25
  210. package/dist/destinations/linkedin-conversions/api/api.test.js.map +1 -1
  211. package/dist/destinations/linkedin-conversions/api/index.d.ts +3 -2
  212. package/dist/destinations/linkedin-conversions/api/index.js +31 -15
  213. package/dist/destinations/linkedin-conversions/api/index.js.map +1 -1
  214. package/dist/destinations/linkedin-conversions/streamConversion/generated-types.d.ts +1 -1
  215. package/dist/destinations/linkedin-conversions/streamConversion/index.js +2 -1
  216. package/dist/destinations/linkedin-conversions/streamConversion/index.js.map +1 -1
  217. package/dist/destinations/linkedin-conversions/types.d.ts +6 -7
  218. package/dist/destinations/marketo-static-lists/addToList/index.js +2 -2
  219. package/dist/destinations/marketo-static-lists/addToList/index.js.map +1 -1
  220. package/dist/destinations/marketo-static-lists/functions.js +7 -7
  221. package/dist/destinations/marketo-static-lists/functions.js.map +1 -1
  222. package/dist/destinations/marketo-static-lists/removeFromList/index.js +2 -2
  223. package/dist/destinations/marketo-static-lists/removeFromList/index.js.map +1 -1
  224. package/dist/destinations/mixpanel/incrementProperties/__test__/__snapshots__/snapshot.test.js.snap +18 -0
  225. package/dist/destinations/mixpanel/incrementProperties/__test__/index.test.d.ts +1 -0
  226. package/dist/destinations/mixpanel/incrementProperties/__test__/index.test.js +129 -0
  227. package/dist/destinations/mixpanel/incrementProperties/__test__/index.test.js.map +1 -0
  228. package/dist/destinations/mixpanel/incrementProperties/__test__/snapshot.test.d.ts +1 -0
  229. package/dist/destinations/mixpanel/incrementProperties/__test__/snapshot.test.js +69 -0
  230. package/dist/destinations/mixpanel/incrementProperties/__test__/snapshot.test.js.map +1 -0
  231. package/dist/destinations/mixpanel/incrementProperties/generated-types.d.ts +8 -0
  232. package/dist/destinations/mixpanel/incrementProperties/generated-types.js +3 -0
  233. package/dist/destinations/mixpanel/incrementProperties/generated-types.js.map +1 -0
  234. package/dist/destinations/mixpanel/incrementProperties/index.d.ts +5 -0
  235. package/dist/destinations/mixpanel/incrementProperties/index.js +84 -0
  236. package/dist/destinations/mixpanel/incrementProperties/index.js.map +1 -0
  237. package/dist/destinations/mixpanel/index.js +3 -1
  238. package/dist/destinations/mixpanel/index.js.map +1 -1
  239. package/dist/destinations/mixpanel/mixpanel-types.d.ts +4 -0
  240. package/dist/destinations/moengage/trackEvent/generated-types.d.ts +1 -0
  241. package/dist/destinations/moengage/trackEvent/index.js +10 -2
  242. package/dist/destinations/moengage/trackEvent/index.js.map +1 -1
  243. package/dist/destinations/schematic/generated-types.d.ts +3 -0
  244. package/dist/destinations/schematic/generated-types.js +3 -0
  245. package/dist/destinations/schematic/generated-types.js.map +1 -0
  246. package/dist/destinations/schematic/identifyUser/generated-types.d.ts +18 -0
  247. package/dist/destinations/schematic/identifyUser/generated-types.js +3 -0
  248. package/dist/destinations/schematic/identifyUser/generated-types.js.map +1 -0
  249. package/dist/destinations/schematic/identifyUser/index.d.ts +5 -0
  250. package/dist/destinations/schematic/identifyUser/index.js +114 -0
  251. package/dist/destinations/schematic/identifyUser/index.js.map +1 -0
  252. package/dist/destinations/schematic/index.d.ts +4 -0
  253. package/dist/destinations/schematic/index.js +58 -0
  254. package/dist/destinations/schematic/index.js.map +1 -0
  255. package/dist/destinations/schematic/trackEvent/generated-types.d.ts +13 -0
  256. package/dist/destinations/schematic/trackEvent/generated-types.js +3 -0
  257. package/dist/destinations/schematic/trackEvent/generated-types.js.map +1 -0
  258. package/dist/destinations/schematic/trackEvent/index.d.ts +5 -0
  259. package/dist/destinations/schematic/trackEvent/index.js +89 -0
  260. package/dist/destinations/schematic/trackEvent/index.js.map +1 -0
  261. package/dist/destinations/segment/generated-types.d.ts +0 -1
  262. package/dist/destinations/segment/index.js +3 -13
  263. package/dist/destinations/segment/index.js.map +1 -1
  264. package/dist/destinations/segment/properties.d.ts +1 -1
  265. package/dist/destinations/segment/properties.js +3 -3
  266. package/dist/destinations/segment/properties.js.map +1 -1
  267. package/dist/destinations/segment/sendGroup/index.js +5 -16
  268. package/dist/destinations/segment/sendGroup/index.js.map +1 -1
  269. package/dist/destinations/segment/sendIdentify/index.js +5 -16
  270. package/dist/destinations/segment/sendIdentify/index.js.map +1 -1
  271. package/dist/destinations/segment/sendPage/index.js +5 -16
  272. package/dist/destinations/segment/sendPage/index.js.map +1 -1
  273. package/dist/destinations/segment/sendScreen/index.js +5 -16
  274. package/dist/destinations/segment/sendScreen/index.js.map +1 -1
  275. package/dist/destinations/segment/sendTrack/index.js +5 -16
  276. package/dist/destinations/segment/sendTrack/index.js.map +1 -1
  277. package/dist/destinations/surveysparrow/createContact/generated-types.d.ts +10 -0
  278. package/dist/destinations/surveysparrow/createContact/generated-types.js +3 -0
  279. package/dist/destinations/surveysparrow/createContact/generated-types.js.map +1 -0
  280. package/dist/destinations/surveysparrow/createContact/index.d.ts +5 -0
  281. package/dist/destinations/surveysparrow/createContact/index.js +105 -0
  282. package/dist/destinations/surveysparrow/createContact/index.js.map +1 -0
  283. package/dist/destinations/surveysparrow/generated-types.d.ts +3 -0
  284. package/dist/destinations/surveysparrow/generated-types.js +3 -0
  285. package/dist/destinations/surveysparrow/generated-types.js.map +1 -0
  286. package/dist/destinations/surveysparrow/index.d.ts +4 -0
  287. package/dist/destinations/surveysparrow/index.js +40 -0
  288. package/dist/destinations/surveysparrow/index.js.map +1 -0
  289. package/dist/destinations/surveysparrow/triggerSurvey/generated-types.d.ts +10 -0
  290. package/dist/destinations/surveysparrow/triggerSurvey/generated-types.js +3 -0
  291. package/dist/destinations/surveysparrow/triggerSurvey/generated-types.js.map +1 -0
  292. package/dist/destinations/surveysparrow/triggerSurvey/index.d.ts +8 -0
  293. package/dist/destinations/surveysparrow/triggerSurvey/index.js +165 -0
  294. package/dist/destinations/surveysparrow/triggerSurvey/index.js.map +1 -0
  295. package/dist/destinations/tiktok-conversions/common_fields.d.ts +2 -0
  296. package/dist/destinations/tiktok-conversions/common_fields.js +245 -0
  297. package/dist/destinations/tiktok-conversions/common_fields.js.map +1 -0
  298. package/dist/destinations/tiktok-conversions/formatter.d.ts +3 -0
  299. package/dist/destinations/tiktok-conversions/formatter.js +43 -0
  300. package/dist/destinations/tiktok-conversions/formatter.js.map +1 -0
  301. package/dist/destinations/tiktok-conversions/index.js +3 -92
  302. package/dist/destinations/tiktok-conversions/index.js.map +1 -1
  303. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.d.ts +3 -3
  304. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js +24 -33
  305. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js.map +1 -1
  306. package/dist/destinations/tiktok-conversions/reportWebEvent/generated-types.d.ts +4 -12
  307. package/dist/destinations/tiktok-conversions/reportWebEvent/index.js +40 -113
  308. package/dist/destinations/tiktok-conversions/reportWebEvent/index.js.map +1 -1
  309. package/dist/destinations/tiktok-conversions/utils.d.ts +4 -0
  310. package/dist/destinations/tiktok-conversions/utils.js +65 -0
  311. package/dist/destinations/tiktok-conversions/utils.js.map +1 -0
  312. package/dist/destinations/tiktok-conversions-sandbox/common_fields.d.ts +2 -0
  313. package/dist/destinations/tiktok-conversions-sandbox/common_fields.js +244 -0
  314. package/dist/destinations/tiktok-conversions-sandbox/common_fields.js.map +1 -0
  315. package/dist/destinations/{tiktok-offline-conversions/reportOfflineEvent → tiktok-conversions-sandbox}/formatter.js +11 -11
  316. package/dist/destinations/tiktok-conversions-sandbox/formatter.js.map +1 -0
  317. package/dist/destinations/tiktok-conversions-sandbox/generated-types.d.ts +4 -0
  318. package/dist/destinations/tiktok-conversions-sandbox/generated-types.js +3 -0
  319. package/dist/destinations/tiktok-conversions-sandbox/generated-types.js.map +1 -0
  320. package/dist/destinations/tiktok-conversions-sandbox/index.d.ts +4 -0
  321. package/dist/destinations/tiktok-conversions-sandbox/index.js +247 -0
  322. package/dist/destinations/tiktok-conversions-sandbox/index.js.map +1 -0
  323. package/dist/destinations/tiktok-conversions-sandbox/reportWebEvent/generated-types.d.ts +33 -0
  324. package/dist/destinations/tiktok-conversions-sandbox/reportWebEvent/generated-types.js +3 -0
  325. package/dist/destinations/tiktok-conversions-sandbox/reportWebEvent/generated-types.js.map +1 -0
  326. package/dist/destinations/tiktok-conversions-sandbox/reportWebEvent/index.d.ts +5 -0
  327. package/dist/destinations/tiktok-conversions-sandbox/reportWebEvent/index.js +16 -0
  328. package/dist/destinations/tiktok-conversions-sandbox/reportWebEvent/index.js.map +1 -0
  329. package/dist/destinations/tiktok-conversions-sandbox/utils.d.ts +4 -0
  330. package/dist/destinations/tiktok-conversions-sandbox/utils.js +65 -0
  331. package/dist/destinations/tiktok-conversions-sandbox/utils.js.map +1 -0
  332. package/dist/destinations/tiktok-offline-conversions/common_fields.js +179 -20
  333. package/dist/destinations/tiktok-offline-conversions/common_fields.js.map +1 -1
  334. package/dist/destinations/tiktok-offline-conversions/formatter.d.ts +1 -0
  335. package/dist/destinations/tiktok-offline-conversions/formatter.js +11 -1
  336. package/dist/destinations/tiktok-offline-conversions/formatter.js.map +1 -1
  337. package/dist/destinations/tiktok-offline-conversions/index.js +156 -153
  338. package/dist/destinations/tiktok-offline-conversions/index.js.map +1 -1
  339. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/generated-types.d.ts +3 -3
  340. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/index.js +4 -305
  341. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/index.js.map +1 -1
  342. package/dist/destinations/tiktok-offline-conversions/trackNonPaymentOfflineConversion/generated-types.d.ts +25 -2
  343. package/dist/destinations/tiktok-offline-conversions/trackNonPaymentOfflineConversion/index.js +4 -29
  344. package/dist/destinations/tiktok-offline-conversions/trackNonPaymentOfflineConversion/index.js.map +1 -1
  345. package/dist/destinations/tiktok-offline-conversions/trackPaymentOfflineConversion/generated-types.d.ts +18 -5
  346. package/dist/destinations/tiktok-offline-conversions/trackPaymentOfflineConversion/index.js +5 -126
  347. package/dist/destinations/tiktok-offline-conversions/trackPaymentOfflineConversion/index.js.map +1 -1
  348. package/dist/destinations/tiktok-offline-conversions/utils.d.ts +8 -0
  349. package/dist/destinations/tiktok-offline-conversions/utils.js +67 -0
  350. package/dist/destinations/tiktok-offline-conversions/utils.js.map +1 -0
  351. package/dist/destinations/tiktok-offline-conversions-sandbox/common_fields.d.ts +2 -0
  352. package/dist/destinations/tiktok-offline-conversions-sandbox/common_fields.js +244 -0
  353. package/dist/destinations/tiktok-offline-conversions-sandbox/common_fields.js.map +1 -0
  354. package/dist/destinations/tiktok-offline-conversions-sandbox/formatter.d.ts +3 -0
  355. package/dist/destinations/tiktok-offline-conversions-sandbox/formatter.js +43 -0
  356. package/dist/destinations/tiktok-offline-conversions-sandbox/formatter.js.map +1 -0
  357. package/dist/destinations/tiktok-offline-conversions-sandbox/generated-types.d.ts +4 -0
  358. package/dist/destinations/tiktok-offline-conversions-sandbox/generated-types.js +3 -0
  359. package/dist/destinations/tiktok-offline-conversions-sandbox/generated-types.js.map +1 -0
  360. package/dist/destinations/tiktok-offline-conversions-sandbox/index.d.ts +4 -0
  361. package/dist/destinations/tiktok-offline-conversions-sandbox/index.js +251 -0
  362. package/dist/destinations/tiktok-offline-conversions-sandbox/index.js.map +1 -0
  363. package/dist/destinations/tiktok-offline-conversions-sandbox/reportOfflineEvent/generated-types.d.ts +33 -0
  364. package/dist/destinations/tiktok-offline-conversions-sandbox/reportOfflineEvent/generated-types.js +3 -0
  365. package/dist/destinations/tiktok-offline-conversions-sandbox/reportOfflineEvent/generated-types.js.map +1 -0
  366. package/dist/destinations/tiktok-offline-conversions-sandbox/reportOfflineEvent/index.d.ts +5 -0
  367. package/dist/destinations/tiktok-offline-conversions-sandbox/reportOfflineEvent/index.js +16 -0
  368. package/dist/destinations/tiktok-offline-conversions-sandbox/reportOfflineEvent/index.js.map +1 -0
  369. package/dist/destinations/tiktok-offline-conversions-sandbox/trackNonPaymentOfflineConversion/generated-types.d.ts +33 -0
  370. package/dist/destinations/tiktok-offline-conversions-sandbox/trackNonPaymentOfflineConversion/generated-types.js +3 -0
  371. package/dist/destinations/tiktok-offline-conversions-sandbox/trackNonPaymentOfflineConversion/generated-types.js.map +1 -0
  372. package/dist/destinations/tiktok-offline-conversions-sandbox/trackNonPaymentOfflineConversion/index.d.ts +5 -0
  373. package/dist/destinations/tiktok-offline-conversions-sandbox/trackNonPaymentOfflineConversion/index.js +16 -0
  374. package/dist/destinations/tiktok-offline-conversions-sandbox/trackNonPaymentOfflineConversion/index.js.map +1 -0
  375. package/dist/destinations/tiktok-offline-conversions-sandbox/trackPaymentOfflineConversion/generated-types.d.ts +33 -0
  376. package/dist/destinations/tiktok-offline-conversions-sandbox/trackPaymentOfflineConversion/generated-types.js +3 -0
  377. package/dist/destinations/tiktok-offline-conversions-sandbox/trackPaymentOfflineConversion/generated-types.js.map +1 -0
  378. package/dist/destinations/tiktok-offline-conversions-sandbox/trackPaymentOfflineConversion/index.d.ts +5 -0
  379. package/dist/destinations/tiktok-offline-conversions-sandbox/trackPaymentOfflineConversion/index.js +16 -0
  380. package/dist/destinations/tiktok-offline-conversions-sandbox/trackPaymentOfflineConversion/index.js.map +1 -0
  381. package/dist/destinations/tiktok-offline-conversions-sandbox/utils.d.ts +8 -0
  382. package/dist/destinations/tiktok-offline-conversions-sandbox/utils.js +68 -0
  383. package/dist/destinations/tiktok-offline-conversions-sandbox/utils.js.map +1 -0
  384. package/dist/destinations/webhook-audiences/index.js +1 -3
  385. package/dist/destinations/webhook-audiences/index.js.map +1 -1
  386. package/dist/destinations/yahoo-audiences/index.js +9 -1
  387. package/dist/destinations/yahoo-audiences/index.js.map +1 -1
  388. package/dist/destinations/yahoo-audiences/updateSegment/generated-types.d.ts +6 -2
  389. package/dist/destinations/yahoo-audiences/updateSegment/index.js +36 -11
  390. package/dist/destinations/yahoo-audiences/updateSegment/index.js.map +1 -1
  391. package/dist/destinations/yahoo-audiences/utils-rt.js +3 -3
  392. package/dist/destinations/yahoo-audiences/utils-rt.js.map +1 -1
  393. package/package.json +3 -3
  394. package/dist/destinations/engage/sendgrid/Profile.d.ts +0 -6
  395. package/dist/destinations/engage/sendgrid/Profile.js.map +0 -1
  396. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.d.ts +0 -21
  397. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js +0 -174
  398. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js.map +0 -1
  399. package/dist/destinations/mixpanel/utils.d.ts +0 -13
  400. package/dist/destinations/mixpanel/utils.js +0 -117
  401. package/dist/destinations/mixpanel/utils.js.map +0 -1
  402. package/dist/destinations/responsys/asyncMergePetRecords/generated-types.d.ts +0 -14
  403. package/dist/destinations/responsys/asyncMergePetRecords/generated-types.js.map +0 -1
  404. package/dist/destinations/responsys/asyncMergePetRecords/index.js +0 -113
  405. package/dist/destinations/responsys/asyncMergePetRecords/index.js.map +0 -1
  406. package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.d.ts +0 -20
  407. package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.js.map +0 -1
  408. package/dist/destinations/responsys/asyncMergeProfileListMembers/index.js +0 -174
  409. package/dist/destinations/responsys/asyncMergeProfileListMembers/index.js.map +0 -1
  410. package/dist/destinations/responsys/generated-types.d.ts +0 -5
  411. package/dist/destinations/responsys/generated-types.js.map +0 -1
  412. package/dist/destinations/responsys/index.js +0 -62
  413. package/dist/destinations/responsys/index.js.map +0 -1
  414. package/dist/destinations/responsys/rsp-operations.d.ts +0 -14
  415. package/dist/destinations/responsys/rsp-operations.js +0 -33
  416. package/dist/destinations/responsys/rsp-operations.js.map +0 -1
  417. package/dist/destinations/responsys/rsp-properties.d.ts +0 -4
  418. package/dist/destinations/responsys/rsp-properties.js +0 -27
  419. package/dist/destinations/responsys/rsp-properties.js.map +0 -1
  420. package/dist/destinations/responsys/types.d.ts +0 -37
  421. package/dist/destinations/responsys/types.js +0 -3
  422. package/dist/destinations/responsys/types.js.map +0 -1
  423. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.js.map +0 -1
  424. package/dist/destinations/{responsys/asyncMergePetRecords → aggregations-io}/generated-types.js +0 -0
  425. package/dist/destinations/{responsys → aggregations-io}/index.d.ts +0 -0
  426. package/dist/destinations/{responsys/asyncMergeProfileListMembers → aggregations-io/send}/generated-types.js +0 -0
  427. package/dist/destinations/{responsys/asyncMergePetRecords → aggregations-io/send}/index.d.ts +0 -0
  428. package/dist/destinations/{responsys → amazon-ads}/generated-types.js +0 -0
  429. package/dist/destinations/{responsys/asyncMergeProfileListMembers → courier/postToCourier}/index.d.ts +0 -0
  430. package/dist/destinations/{tiktok-offline-conversions/reportOfflineEvent → tiktok-conversions-sandbox}/formatter.d.ts +1 -1
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const segment_properties_1 = require("../segment-properties");
4
- const properties_1 = require("../properties");
5
4
  const errors_1 = require("../errors");
6
5
  const action = {
7
6
  title: 'Send Track',
@@ -28,7 +27,7 @@ const action = {
28
27
  properties: segment_properties_1.properties,
29
28
  traits: segment_properties_1.traits
30
29
  },
31
- perform: (request, { payload, settings, features, statsContext }) => {
30
+ perform: (_request, { payload, statsContext }) => {
32
31
  if (!payload.anonymous_id && !payload.user_id) {
33
32
  throw errors_1.MissingUserOrAnonymousIdThrowableError;
34
33
  }
@@ -57,21 +56,11 @@ const action = {
57
56
  },
58
57
  properties: {
59
58
  ...payload?.properties
60
- }
59
+ },
60
+ type: 'track'
61
61
  };
62
- if (!settings.endpoint || !(settings.endpoint in properties_1.SEGMENT_ENDPOINTS)) {
63
- throw errors_1.InvalidEndpointSelectedThrowableError;
64
- }
65
- if (features && features['actions-segment-tapi-internal-enabled']) {
66
- statsContext?.statsClient?.incr('tapi_internal', 1, [...statsContext.tags, 'action:sendTrack']);
67
- const payload = { ...trackPayload, type: 'track' };
68
- return { batch: [payload] };
69
- }
70
- const selectedSegmentEndpoint = properties_1.SEGMENT_ENDPOINTS[settings.endpoint].url;
71
- return request(`${selectedSegmentEndpoint}/track`, {
72
- method: 'POST',
73
- json: trackPayload
74
- });
62
+ statsContext?.statsClient?.incr('tapi_internal', 1, [...statsContext.tags, 'action:sendTrack']);
63
+ return { batch: [trackPayload] };
75
64
  }
76
65
  };
77
66
  exports.default = action;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment/sendTrack/index.ts"],"names":[],"mappings":";;AAGA,8DAoB8B;AAC9B,8CAAiD;AACjD,sCAAyG;AAEzG,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,iGAAiG;IAC9G,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,OAAO,EAAP,4BAAO;QACP,YAAY,EAAZ,iCAAY;QACZ,SAAS,EAAT,8BAAS;QACT,UAAU,EAAV,+BAAU;QACV,WAAW,EAAX,gCAAW;QACX,mBAAmB,EAAnB,wCAAmB;QACnB,MAAM,EAAN,2BAAM;QACN,UAAU,EAAV,+BAAU;QACV,MAAM,EAAN,2BAAM;QACN,QAAQ,EAAR,6BAAQ;QACR,OAAO,EAAP,4BAAO;QACP,gBAAgB,EAAhB,qCAAgB;QAChB,IAAI,EAAJ,yBAAI;QACJ,MAAM,EAAN,2BAAM;QACN,UAAU,EAAV,+BAAU;QACV,QAAQ,EAAR,6BAAQ;QACR,QAAQ,EAAR,6BAAQ;QACR,UAAU,EAAV,+BAAU;QACV,MAAM,EAAN,2BAAM;KACP;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE,EAAE;QAClE,IAAI,CAAC,OAAO,CAAC,YAAY,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;YAC7C,MAAM,+CAAsC,CAAA;SAC7C;QAED,MAAM,YAAY,GAAW;YAC3B,MAAM,EAAE,OAAO,EAAE,OAAO;YACxB,WAAW,EAAE,OAAO,EAAE,YAAY;YAClC,SAAS,EAAE,OAAO,EAAE,SAAS;YAC7B,KAAK,EAAE,OAAO,EAAE,UAAU;YAC1B,OAAO,EAAE;gBACP,MAAM,EAAE;oBACN,GAA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AM;iBACnB;gBACD,GAAG,EAAE,OAAO,EAAE,WAAW;gBACzB,QAAQ,EAAE,OAAO,EAAE,mBAAmB;gBACtC,MAAM,EAAE,OAAO,EAAE,MAAM;gBACvB,EAAE,EAAE,OAAO,EAAE,UAAU;gBACvB,MAAM,EAAE,OAAO,EAAE,MAAM;gBACvB,QAAQ,EAAE,OAAO,EAAE,QAAQ;gBAC3B,OAAO,EAAE,OAAO,EAAE,OAAO;gBACzB,EAAE,EAAE,OAAO,EAAE,gBAAgB;gBAC7B,IAAI,EAAE,OAAO,EAAE,IAAI;gBACnB,MAAM,EAAE,OAAO,EAAE,MAAM;gBACvB,SAAS,EAAE,OAAO,EAAE,UAAU;gBAC9B,QAAQ,EAAE,OAAO,EAAE,QAAQ;gBAC3B,OAAO,EAAE,OAAO,EAAE,QAAQ;aAC3B;YACD,UAAU,EAAE;gBACV,GAAG,OAAO,EAAE,UAAU;aACvB;YACD,IAAI,EAAE,OAAO;SACd,CAAA;QAED,YAAY,EAAE,WAAW,EAAE,IAAI,CAAC,eAAe,EAAE,CAAC,EAAE,CAAC,GAAG,YAAY,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC,CAAA;QAC/F,OAAO,EAAE,KAAK,EAAE,CAAC,YAAY,CAAC,EAAE,CAAA;IAClC,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,10 @@
1
+ export interface Payload {
2
+ full_name?: string;
3
+ phone?: string;
4
+ mobile?: string;
5
+ email?: string;
6
+ job_title?: string;
7
+ custom_fields?: {
8
+ [k: string]: unknown;
9
+ };
10
+ }
@@ -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/surveysparrow/createContact/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,105 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const actions_core_1 = require("@segment/actions-core");
4
+ const action = {
5
+ title: 'Create or Update Contact in SurveySparrow',
6
+ defaultSubscription: 'type=identify',
7
+ description: 'This Action will create a new Contact or update an existing Contact in SurveySparrow. One of Email or Mobile are mandatory when creating a Contact.',
8
+ fields: {
9
+ full_name: {
10
+ label: 'Name',
11
+ type: 'string',
12
+ description: 'Full name of the Contact',
13
+ default: {
14
+ '@if': {
15
+ exists: { '@path': '$.properties.name' },
16
+ then: { '@path': '$.properties.name' },
17
+ else: { '@path': '$.context.traits.name' }
18
+ }
19
+ }
20
+ },
21
+ phone: {
22
+ label: 'Phone',
23
+ type: 'string',
24
+ description: 'Non Mobile Phone number for the Contact. This should include + followed by Country Code. For Example, +18004810410',
25
+ default: {
26
+ '@if': {
27
+ exists: { '@path': '$.properties.phone' },
28
+ then: { '@path': '$.properties.phone' },
29
+ else: { '@path': '$.context.traits.phone' }
30
+ }
31
+ }
32
+ },
33
+ mobile: {
34
+ label: 'Mobile',
35
+ type: 'string',
36
+ description: 'Mobile number for the Contact. This should include + followed by Country Code. For Example, +18004810410',
37
+ default: {
38
+ '@if': {
39
+ exists: { '@path': '$.properties.mobile' },
40
+ then: { '@path': '$.properties.mobile' },
41
+ else: { '@path': '$.context.traits.mobile' }
42
+ }
43
+ }
44
+ },
45
+ email: {
46
+ label: 'Email',
47
+ type: 'string',
48
+ format: 'email',
49
+ description: 'Email Address for the Contact',
50
+ default: {
51
+ '@if': {
52
+ exists: { '@path': '$.properties.email' },
53
+ then: { '@path': '$.properties.email' },
54
+ else: { '@path': '$.context.traits.email' }
55
+ }
56
+ }
57
+ },
58
+ job_title: {
59
+ label: 'Job Title',
60
+ type: 'string',
61
+ description: 'Job Title for the Contact',
62
+ default: {
63
+ '@if': {
64
+ exists: { '@path': '$.properties.job_title' },
65
+ then: { '@path': '$.properties.job_title' },
66
+ else: { '@path': '$.context.traits.job_title' }
67
+ }
68
+ }
69
+ },
70
+ custom_fields: {
71
+ label: 'Custom Contact Properties',
72
+ type: 'object',
73
+ defaultObjectUI: 'keyvalue',
74
+ description: 'Key:Value Custom Properties to be added to the Contact in SurveySparrow. [Contact Property](https://support.surveysparrow.com/hc/en-us/articles/7078996288925-How-to-add-custom-properties-to-your-contact) should be created in SurveySparrow in advance.',
75
+ default: {
76
+ '@if': {
77
+ exists: { '@path': '$.properties.custom_fields' },
78
+ then: { '@path': '$.properties.custom_fields' },
79
+ else: { '@path': '$.context.traits.custom_fields' }
80
+ }
81
+ }
82
+ }
83
+ },
84
+ perform: (request, { payload }) => {
85
+ if (payload.email || payload.mobile) {
86
+ const transformedPayload = {
87
+ full_name: payload.full_name,
88
+ phone: payload.phone,
89
+ mobile: payload.mobile,
90
+ email: payload.email,
91
+ job_title: payload.job_title,
92
+ ...payload.custom_fields
93
+ };
94
+ return request('https://api.surveysparrow.com/v3/contacts', {
95
+ method: 'post',
96
+ json: transformedPayload
97
+ });
98
+ }
99
+ else {
100
+ throw new actions_core_1.PayloadValidationError('Either Email or Mobile are required');
101
+ }
102
+ }
103
+ };
104
+ exports.default = action;
105
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/surveysparrow/createContact/index.ts"],"names":[],"mappings":";;AAAA,wDAAgF;AAIhF,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,2CAA2C;IAClD,mBAAmB,EAAE,eAAe;IACpC,WAAW,EACT,qJAAqJ;IACvJ,MAAM,EAAE;QACN,SAAS,EAAE;YACT,KAAK,EAAE,MAAM;YACb,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,0BAA0B;YACvC,OAAO,EAAE;gBACP,KAAK,EAAE;oBACL,MAA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AO,EAAE,wBAAwB,EAAE;oBAC7C,IAAI,EAAE,EAAE,OAAO,EAAE,wBAAwB,EAAE;oBAC3C,IAAI,EAAE,EAAE,OAAO,EAAE,4BAA4B,EAAE;iBAChD;aACF;SACF;QACD,aAAa,EAAE;YACb,KAAK,EAAE,2BAA2B;YAClC,IAAI,EAAE,QAAQ;YACd,eAAe,EAAE,UAAU;YAC3B,WAAW,EACT,4PAA4P;YAC9P,OAAO,EAAE;gBACP,KAAK,EAAE;oBACL,MAAM,EAAE,EAAE,OAAO,EAAE,4BAA4B,EAAE;oBACjD,IAAI,EAAE,EAAE,OAAO,EAAE,4BAA4B,EAAE;oBAC/C,IAAI,EAAE,EAAE,OAAO,EAAE,gCAAgC,EAAE;iBACpD;aACF;SACF;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAChC,IAAI,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,MAAM,EAAE;YACnC,MAAM,kBAAkB,GAAG;gBACzB,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,GAAG,OAAO,CAAC,aAAa;aACzB,CAAA;YACD,OAAO,OAAO,CAAC,2CAA2C,EAAE;gBAC1D,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,kBAAkB;aACzB,CAAC,CAAA;SACH;aAAM;YACL,MAAM,IAAI,qCAAsB,CAAC,qCAAqC,CAAC,CAAA;SACxE;IACH,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,3 @@
1
+ export interface Settings {
2
+ apiToken: string;
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=generated-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/destinations/surveysparrow/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type { DestinationDefinition } from '@segment/actions-core';
2
+ import type { Settings } from './generated-types';
3
+ declare const destination: DestinationDefinition<Settings>;
4
+ export default destination;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const createContact_1 = __importDefault(require("./createContact"));
7
+ const triggerSurvey_1 = __importDefault(require("./triggerSurvey"));
8
+ const destination = {
9
+ name: 'Surveysparrow',
10
+ slug: 'actions-surveysparrow',
11
+ mode: 'cloud',
12
+ description: 'Trigger Surveys and Create Contacts in SurveySparrow',
13
+ authentication: {
14
+ scheme: 'custom',
15
+ fields: {
16
+ apiToken: {
17
+ label: 'Access Token',
18
+ description: 'SurveySparrow Access Token can be found in Settings > Apps and Integrations > Create a Custom app',
19
+ type: 'password',
20
+ required: true
21
+ }
22
+ },
23
+ testAuthentication: (request) => {
24
+ return request(`https://api.surveysparrow.com/v3/users`, {
25
+ method: 'get'
26
+ });
27
+ }
28
+ },
29
+ extendRequest({ settings }) {
30
+ return {
31
+ headers: { Authorization: `Bearer ${settings.apiToken}` }
32
+ };
33
+ },
34
+ actions: {
35
+ createContact: createContact_1.default,
36
+ triggerSurvey: triggerSurvey_1.default
37
+ }
38
+ };
39
+ exports.default = destination;
40
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/surveysparrow/index.ts"],"names":[],"mappings":";;;;;AAGA,oEAA2C;AAE3C,oEAA2C;AAE3C,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,sDAAsD;IAEnE,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,QAAQ,EAAE;gBACR,KAAK,EAAE,cAAc;gBACrB,WAAW,EACT,mGAAmG;gBACrG,IAAI,EAAE,UAAU;gBAChB,QAAQ,EAAE,IAAI;aACf;SACF;QACD,kBAAkB,EAAE,CAAC,OAAO,EAAE,EAAE;YAC9B,OAAO,OAAO,CAAC,wCAAwC,EAAE;gBACvD,MAAM,EAAE,KAAK;aACd,CAAC,CAAA;QACJ,CAAC;KACF;IACD,aAAa,CAAC,EAAE,QAAQ,EAAE;QACxB,OAAO;YACL,OAAO,EAAE,EAAE,aAAa,EAAE,UAAU,QAAQ,CAAC,QAAQ,EAAE,EAAE;SAC1D,CAAA;IACH,CAAC;IAED,OAAO,EAAE;QACP,aAAa,EAAb,uBAAa;QACb,aAAa,EAAb,uBAAa;KACd;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
@@ -0,0 +1,10 @@
1
+ export interface Payload {
2
+ id: number;
3
+ share_type: string;
4
+ survey_id: number;
5
+ mobile?: string;
6
+ email?: string;
7
+ variables?: {
8
+ [k: string]: unknown;
9
+ };
10
+ }
@@ -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/surveysparrow/triggerSurvey/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import type { ActionDefinition } from '@segment/actions-core';
2
+ import type { Settings } from '../generated-types';
3
+ import type { Payload } from './generated-types';
4
+ import { DynamicFieldResponse } from '@segment/actions-core';
5
+ import { RequestClient } from '@segment/actions-core';
6
+ export declare function getSurveys(request: RequestClient): Promise<DynamicFieldResponse>;
7
+ declare const action: ActionDefinition<Settings, Payload>;
8
+ export default action;
@@ -0,0 +1,165 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getSurveys = void 0;
4
+ const actions_core_1 = require("@segment/actions-core");
5
+ async function getSurveys(request) {
6
+ const choices = [];
7
+ try {
8
+ let has_next_page = false;
9
+ let page = 1;
10
+ do {
11
+ const response = await request(`https://api.surveysparrow.com/v3/surveys?page=${page}`, {
12
+ method: 'get'
13
+ });
14
+ const data = JSON.parse(response.content);
15
+ const surveys = data.data;
16
+ for (const survey of surveys) {
17
+ choices.push({
18
+ label: `${survey.name}`,
19
+ value: survey.id
20
+ });
21
+ }
22
+ page++;
23
+ has_next_page = data.has_next_page;
24
+ } while (has_next_page);
25
+ }
26
+ catch (err) {
27
+ return getError(err);
28
+ }
29
+ return {
30
+ choices
31
+ };
32
+ }
33
+ exports.getSurveys = getSurveys;
34
+ async function getError(err) {
35
+ const errResponse = err?.response;
36
+ const errorBody = await errResponse.json();
37
+ return {
38
+ choices: [],
39
+ error: {
40
+ message: errorBody?.meta?.error?.errorMessage ?? 'Unknown Error',
41
+ code: errResponse?.status.toString() ?? '500'
42
+ }
43
+ };
44
+ }
45
+ const action = {
46
+ title: 'Trigger Survey in SurveySparrow',
47
+ defaultSubscription: 'type=track and event="Trigger Survey"',
48
+ description: 'This Action will trigger a SurveySparrow survey to a user via Email, SMS or WhatsApp. The [Survey](https://support.surveysparrow.com/hc/en-us/articles/7079412445213-How-to-create-surveys-using-SurveySparrow) and required Share [Channel](https://support.surveysparrow.com/hc/en-us/articles/7078359450269-How-to-share-surveys-across-different-channels) should be created in SurveySparrow.',
49
+ fields: {
50
+ id: {
51
+ label: 'Channel ID',
52
+ type: 'number',
53
+ required: true,
54
+ description: 'Channel ID is the unique identifier for the Share Channel in SurveySparrow. This can be copied from the URL.',
55
+ default: {
56
+ '@path': '$.properties.channel_id'
57
+ }
58
+ },
59
+ share_type: {
60
+ label: 'Share Type',
61
+ type: 'string',
62
+ required: true,
63
+ description: 'Type of Survey Share to be triggered',
64
+ choices: [
65
+ {
66
+ label: 'Email',
67
+ value: 'Email'
68
+ },
69
+ {
70
+ label: 'SMS',
71
+ value: 'SMS'
72
+ },
73
+ {
74
+ label: 'WhatsApp',
75
+ value: 'WhatsApp'
76
+ }
77
+ ],
78
+ default: {
79
+ '@path': '$.properties.share_type'
80
+ }
81
+ },
82
+ survey_id: {
83
+ label: 'Survey',
84
+ type: 'number',
85
+ required: true,
86
+ description: 'Select the SurveySparrow Survey you want to trigger',
87
+ dynamic: true,
88
+ default: {
89
+ '@path': '$.properties.survey_id'
90
+ }
91
+ },
92
+ mobile: {
93
+ label: 'Mobile',
94
+ type: 'string',
95
+ description: 'Mobile number to send Survey to for either SMS or WhatsApp. This should include + followed by Country Code. For Example, +18004810410. Mobile is required for SMS or WhatsApp Shares',
96
+ default: {
97
+ '@if': {
98
+ exists: { '@path': '$.properties.mobile' },
99
+ then: { '@path': '$.properties.mobile' },
100
+ else: { '@path': '$.context.traits.mobile' }
101
+ }
102
+ }
103
+ },
104
+ email: {
105
+ label: 'Email',
106
+ type: 'string',
107
+ format: 'email',
108
+ description: 'Email address to send Survey to. This is required for an Email Share.',
109
+ default: {
110
+ '@if': {
111
+ exists: { '@path': '$.properties.email' },
112
+ then: { '@path': '$.properties.email' },
113
+ else: { '@path': '$.context.traits.email' }
114
+ }
115
+ }
116
+ },
117
+ variables: {
118
+ label: 'Variables',
119
+ type: 'object',
120
+ defaultObjectUI: 'keyvalue',
121
+ description: 'Variables you want to pass to SurveySparrow.',
122
+ default: {
123
+ '@path': '$.properties.variables'
124
+ }
125
+ }
126
+ },
127
+ dynamicFields: {
128
+ survey_id: getSurveys
129
+ },
130
+ perform: (request, data) => {
131
+ switch (data.payload.share_type) {
132
+ case 'Email': {
133
+ if (!data.payload.email) {
134
+ throw new actions_core_1.PayloadValidationError('Email is a Required Field Email Shares');
135
+ }
136
+ else
137
+ break;
138
+ }
139
+ case 'SMS':
140
+ case 'WhatsApp': {
141
+ if (!data.payload.mobile) {
142
+ throw new actions_core_1.PayloadValidationError(`Mobile is a Required Field for ${data.payload.share_type} Shares`);
143
+ }
144
+ else
145
+ break;
146
+ }
147
+ }
148
+ const payload = {
149
+ survey_id: data.payload.survey_id,
150
+ contacts: [
151
+ {
152
+ email: data.payload.email,
153
+ mobile: data.payload.mobile
154
+ }
155
+ ],
156
+ variables: data.payload.variables
157
+ };
158
+ return request(`https://api.surveysparrow.com/v3/channels/${data.payload.id}`, {
159
+ method: 'put',
160
+ json: payload
161
+ });
162
+ }
163
+ };
164
+ exports.default = action;
165
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/surveysparrow/triggerSurvey/index.ts"],"names":[],"mappings":";;;AAIA,wDAA6E;AAGtE,KAAK,UAAU,UAAU,CAAC,OAAsB;IACrD,MAAM,OAAO,GAAuB,EAAE,CAAA;IACtC,IAAI;QACF,IAAI,aAAa,GAAG,KAAK,CAAA;QACzB,IAAI,IAAI,GAAG,CAAC,CAAA;QACZ,GAAG;YACD,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,iDAAiD,IAAI,EAAE,EAAE;gBACtF,MAAM,EAAE,KAAK;aACd,CAAC,CAAA;YACF,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;YACzC,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAA;YACzB,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;gBAC5B,OAAO,CAAC,IAAI,CAAC;oBACX,KAAK,EAAE,GAAG,MAAM,CAAC,IAAI,EAAE;oBACvB,KAAK,EAAE,MAAM,CAAC,EAAE;iBACjB,CAAC,CAAA;aACH;YACD,IAAI,EAAE,CAAA;YACN,aAAa,GAAG,IAAI,CAAC,aAAa,CAAA;SACnC,QAAQ,aAAa,EAAC;KACxB;IAAC,OAAO,GAAG,EAAE;QACZ,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAA;K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I,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;oBACxB,MAAM,IAAI,qCAAsB,CAAC,kCAAkC,IAAI,CAAC,OAAO,CAAC,UAAU,SAAS,CAAC,CAAA;iBACrG;;oBAAM,MAAK;aACb;SACF;QAED,MAAM,OAAO,GAAG;YACd,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS;YACjC,QAAQ,EAAE;gBACR;oBACE,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK;oBACzB,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM;iBAC5B;aACF;YACD,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS;SAClC,CAAA;QAED,OAAO,OAAO,CAAC,6CAA6C,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE;YAC7E,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,OAAO;SACd,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { InputField } from '@segment/actions-core';
2
+ export declare const commonFields: Record<string, InputField>;