@segment/action-destinations 3.371.1-staging-468162e0c → 3.372.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (317) hide show
  1. package/dist/destinations/amazon-amc/function.d.ts +4 -3
  2. package/dist/destinations/amazon-amc/function.js +19 -21
  3. package/dist/destinations/amazon-amc/function.js.map +1 -1
  4. package/dist/destinations/amazon-amc/syncAudiencesToDSP/index.js +4 -4
  5. package/dist/destinations/amazon-amc/syncAudiencesToDSP/index.js.map +1 -1
  6. package/dist/destinations/index.js +0 -1
  7. package/dist/destinations/index.js.map +1 -1
  8. package/dist/destinations/salesforce-marketing-cloud/_tests_/dataExtension.test.js +0 -50
  9. package/dist/destinations/salesforce-marketing-cloud/_tests_/dataExtension.test.js.map +1 -1
  10. package/dist/destinations/salesforce-marketing-cloud/contactDataExtension/generated-types.d.ts +0 -48
  11. package/dist/destinations/salesforce-marketing-cloud/contactDataExtension/index.js +4 -30
  12. package/dist/destinations/salesforce-marketing-cloud/contactDataExtension/index.js.map +1 -1
  13. package/dist/destinations/salesforce-marketing-cloud/dataExtension/generated-types.d.ts +0 -48
  14. package/dist/destinations/salesforce-marketing-cloud/dataExtension/index.js +4 -32
  15. package/dist/destinations/salesforce-marketing-cloud/dataExtension/index.js.map +1 -1
  16. package/dist/destinations/salesforce-marketing-cloud/sfmc-operations.d.ts +3 -12
  17. package/dist/destinations/salesforce-marketing-cloud/sfmc-operations.js +9 -313
  18. package/dist/destinations/salesforce-marketing-cloud/sfmc-operations.js.map +1 -1
  19. package/dist/destinations/salesforce-marketing-cloud/sfmc-properties.d.ts +0 -2
  20. package/dist/destinations/salesforce-marketing-cloud/sfmc-properties.js +10 -165
  21. package/dist/destinations/salesforce-marketing-cloud/sfmc-properties.js.map +1 -1
  22. package/dist/destinations/webhook-extensible/__test__/webhook.test.js +246 -0
  23. package/dist/destinations/webhook-extensible/__test__/webhook.test.js.map +1 -1
  24. package/dist/destinations/webhook-extensible/auth-utils.d.ts +3 -0
  25. package/dist/destinations/webhook-extensible/auth-utils.js +78 -0
  26. package/dist/destinations/webhook-extensible/auth-utils.js.map +1 -0
  27. package/dist/destinations/webhook-extensible/index.js +3 -37
  28. package/dist/destinations/webhook-extensible/index.js.map +1 -1
  29. package/package.json +6 -5
  30. package/dist/destinations/accoil-analytics/postToAccoil/generated-types.d.ts +0 -5
  31. package/dist/destinations/accoil-analytics/postToAccoil/generated-types.js +0 -3
  32. package/dist/destinations/accoil-analytics/postToAccoil/generated-types.js.map +0 -1
  33. package/dist/destinations/accoil-analytics/postToAccoil/index.d.ts +0 -5
  34. package/dist/destinations/accoil-analytics/postToAccoil/index.js +0 -27
  35. package/dist/destinations/accoil-analytics/postToAccoil/index.js.map +0 -1
  36. package/dist/destinations/amazon-ads/generated-types.d.ts +0 -3
  37. package/dist/destinations/amazon-ads/generated-types.js +0 -3
  38. package/dist/destinations/amazon-ads/generated-types.js.map +0 -1
  39. package/dist/destinations/amazon-ads/index.d.ts +0 -4
  40. package/dist/destinations/amazon-ads/index.js +0 -87
  41. package/dist/destinations/amazon-ads/index.js.map +0 -1
  42. package/dist/destinations/amazon-ads/syncAudiences/generated-types.d.ts +0 -2
  43. package/dist/destinations/amazon-ads/syncAudiences/generated-types.js +0 -3
  44. package/dist/destinations/amazon-ads/syncAudiences/generated-types.js.map +0 -1
  45. package/dist/destinations/amazon-ads/syncAudiences/index.d.ts +0 -5
  46. package/dist/destinations/amazon-ads/syncAudiences/index.js +0 -15
  47. package/dist/destinations/amazon-ads/syncAudiences/index.js.map +0 -1
  48. package/dist/destinations/amazon-ads/types.d.ts +0 -22
  49. package/dist/destinations/amazon-ads/types.js +0 -11
  50. package/dist/destinations/amazon-ads/types.js.map +0 -1
  51. package/dist/destinations/amazon-ads/utils.d.ts +0 -25
  52. package/dist/destinations/amazon-ads/utils.js +0 -8
  53. package/dist/destinations/amazon-ads/utils.js.map +0 -1
  54. package/dist/destinations/dynamic-yield-audiences/syncAudience/types.d.ts +0 -22
  55. package/dist/destinations/dynamic-yield-audiences/syncAudience/types.js +0 -3
  56. package/dist/destinations/dynamic-yield-audiences/syncAudience/types.js.map +0 -1
  57. package/dist/destinations/dynamic-yield-audiences/types.d.ts +0 -8
  58. package/dist/destinations/dynamic-yield-audiences/types.js +0 -12
  59. package/dist/destinations/dynamic-yield-audiences/types.js.map +0 -1
  60. package/dist/destinations/engage/sendgrid/destinationDefinition.d.ts +0 -3
  61. package/dist/destinations/engage/sendgrid/destinationDefinition.js +0 -70
  62. package/dist/destinations/engage/sendgrid/destinationDefinition.js.map +0 -1
  63. package/dist/destinations/engage/sendgrid/generated-types.d.ts +0 -1
  64. package/dist/destinations/engage/sendgrid/generated-types.js +0 -14
  65. package/dist/destinations/engage/sendgrid/generated-types.js.map +0 -1
  66. package/dist/destinations/engage/sendgrid/index.d.ts +0 -2
  67. package/dist/destinations/engage/sendgrid/index.js +0 -5
  68. package/dist/destinations/engage/sendgrid/index.js.map +0 -1
  69. package/dist/destinations/engage/sendgrid/previewApiLookup/actionDefinition.d.ts +0 -4
  70. package/dist/destinations/engage/sendgrid/previewApiLookup/actionDefinition.js +0 -28
  71. package/dist/destinations/engage/sendgrid/previewApiLookup/actionDefinition.js.map +0 -1
  72. package/dist/destinations/engage/sendgrid/previewApiLookup/generated-types.d.ts +0 -1
  73. package/dist/destinations/engage/sendgrid/previewApiLookup/generated-types.js +0 -14
  74. package/dist/destinations/engage/sendgrid/previewApiLookup/generated-types.js.map +0 -1
  75. package/dist/destinations/engage/sendgrid/previewApiLookup/index.d.ts +0 -1
  76. package/dist/destinations/engage/sendgrid/previewApiLookup/index.js +0 -14
  77. package/dist/destinations/engage/sendgrid/previewApiLookup/index.js.map +0 -1
  78. package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.d.ts +0 -44
  79. package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js +0 -419
  80. package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js.map +0 -1
  81. package/dist/destinations/engage/sendgrid/sendEmail/UnlayerResponse.d.ts +0 -12
  82. package/dist/destinations/engage/sendgrid/sendEmail/UnlayerResponse.js +0 -3
  83. package/dist/destinations/engage/sendgrid/sendEmail/UnlayerResponse.js.map +0 -1
  84. package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.d.ts +0 -4
  85. package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.js +0 -257
  86. package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.js.map +0 -1
  87. package/dist/destinations/engage/sendgrid/sendEmail/generated-types.d.ts +0 -1
  88. package/dist/destinations/engage/sendgrid/sendEmail/generated-types.js +0 -14
  89. package/dist/destinations/engage/sendgrid/sendEmail/generated-types.js.map +0 -1
  90. package/dist/destinations/engage/sendgrid/sendEmail/index.d.ts +0 -1
  91. package/dist/destinations/engage/sendgrid/sendEmail/index.js +0 -14
  92. package/dist/destinations/engage/sendgrid/sendEmail/index.js.map +0 -1
  93. package/dist/destinations/engage/sendgrid/sendEmail/insertEmailPreviewText.d.ts +0 -1
  94. package/dist/destinations/engage/sendgrid/sendEmail/insertEmailPreviewText.js +0 -23
  95. package/dist/destinations/engage/sendgrid/sendEmail/insertEmailPreviewText.js.map +0 -1
  96. package/dist/destinations/engage/sendgrid/sendEmail/isRestrictedDomain.d.ts +0 -1
  97. package/dist/destinations/engage/sendgrid/sendEmail/isRestrictedDomain.js +0 -14
  98. package/dist/destinations/engage/sendgrid/sendEmail/isRestrictedDomain.js.map +0 -1
  99. package/dist/destinations/engage/twilio/destinationDefinition.d.ts +0 -3
  100. package/dist/destinations/engage/twilio/destinationDefinition.js +0 -172
  101. package/dist/destinations/engage/twilio/destinationDefinition.js.map +0 -1
  102. package/dist/destinations/engage/twilio/generated-types.d.ts +0 -1
  103. package/dist/destinations/engage/twilio/generated-types.js +0 -14
  104. package/dist/destinations/engage/twilio/generated-types.js.map +0 -1
  105. package/dist/destinations/engage/twilio/index.d.ts +0 -2
  106. package/dist/destinations/engage/twilio/index.js +0 -5
  107. package/dist/destinations/engage/twilio/index.js.map +0 -1
  108. package/dist/destinations/engage/twilio/sendMobilePush/PushSender.d.ts +0 -29
  109. package/dist/destinations/engage/twilio/sendMobilePush/PushSender.js +0 -169
  110. package/dist/destinations/engage/twilio/sendMobilePush/PushSender.js.map +0 -1
  111. package/dist/destinations/engage/twilio/sendMobilePush/actionDefinition.d.ts +0 -4
  112. package/dist/destinations/engage/twilio/sendMobilePush/actionDefinition.js +0 -250
  113. package/dist/destinations/engage/twilio/sendMobilePush/actionDefinition.js.map +0 -1
  114. package/dist/destinations/engage/twilio/sendMobilePush/generated-types.d.ts +0 -1
  115. package/dist/destinations/engage/twilio/sendMobilePush/generated-types.js +0 -14
  116. package/dist/destinations/engage/twilio/sendMobilePush/generated-types.js.map +0 -1
  117. package/dist/destinations/engage/twilio/sendMobilePush/index.d.ts +0 -1
  118. package/dist/destinations/engage/twilio/sendMobilePush/index.js +0 -14
  119. package/dist/destinations/engage/twilio/sendMobilePush/index.js.map +0 -1
  120. package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.d.ts +0 -9
  121. package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.js +0 -72
  122. package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.js.map +0 -1
  123. package/dist/destinations/engage/twilio/sendSms/actionDefinition.d.ts +0 -4
  124. package/dist/destinations/engage/twilio/sendSms/actionDefinition.js +0 -162
  125. package/dist/destinations/engage/twilio/sendSms/actionDefinition.js.map +0 -1
  126. package/dist/destinations/engage/twilio/sendSms/generated-types.d.ts +0 -1
  127. package/dist/destinations/engage/twilio/sendSms/generated-types.js +0 -14
  128. package/dist/destinations/engage/twilio/sendSms/generated-types.js.map +0 -1
  129. package/dist/destinations/engage/twilio/sendSms/index.d.ts +0 -1
  130. package/dist/destinations/engage/twilio/sendSms/index.js +0 -14
  131. package/dist/destinations/engage/twilio/sendSms/index.js.map +0 -1
  132. package/dist/destinations/engage/twilio/sendWhatsApp/WhatsAppMessageSender.d.ts +0 -9
  133. package/dist/destinations/engage/twilio/sendWhatsApp/WhatsAppMessageSender.js +0 -89
  134. package/dist/destinations/engage/twilio/sendWhatsApp/WhatsAppMessageSender.js.map +0 -1
  135. package/dist/destinations/engage/twilio/sendWhatsApp/actionDefinition.d.ts +0 -4
  136. package/dist/destinations/engage/twilio/sendWhatsApp/actionDefinition.js +0 -136
  137. package/dist/destinations/engage/twilio/sendWhatsApp/actionDefinition.js.map +0 -1
  138. package/dist/destinations/engage/twilio/sendWhatsApp/generated-types.d.ts +0 -1
  139. package/dist/destinations/engage/twilio/sendWhatsApp/generated-types.js +0 -14
  140. package/dist/destinations/engage/twilio/sendWhatsApp/generated-types.js.map +0 -1
  141. package/dist/destinations/engage/twilio/sendWhatsApp/index.d.ts +0 -1
  142. package/dist/destinations/engage/twilio/sendWhatsApp/index.js +0 -14
  143. package/dist/destinations/engage/twilio/sendWhatsApp/index.js.map +0 -1
  144. package/dist/destinations/engage/twilio/utils/PhoneMessageSender.d.ts +0 -16
  145. package/dist/destinations/engage/twilio/utils/PhoneMessageSender.js +0 -71
  146. package/dist/destinations/engage/twilio/utils/PhoneMessageSender.js.map +0 -1
  147. package/dist/destinations/engage/twilio/utils/TwilioMessageSender.d.ts +0 -16
  148. package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js +0 -115
  149. package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js.map +0 -1
  150. package/dist/destinations/engage/twilio/utils/index.d.ts +0 -2
  151. package/dist/destinations/engage/twilio/utils/index.js +0 -15
  152. package/dist/destinations/engage/twilio/utils/index.js.map +0 -1
  153. package/dist/destinations/engage/twilio/utils/types.d.ts +0 -23
  154. package/dist/destinations/engage/twilio/utils/types.js +0 -3
  155. package/dist/destinations/engage/twilio/utils/types.js.map +0 -1
  156. package/dist/destinations/engage/utils/AggregateError.d.ts +0 -14
  157. package/dist/destinations/engage/utils/AggregateError.js +0 -26
  158. package/dist/destinations/engage/utils/AggregateError.js.map +0 -1
  159. package/dist/destinations/engage/utils/EngageActionPerformer.d.ts +0 -42
  160. package/dist/destinations/engage/utils/EngageActionPerformer.js +0 -148
  161. package/dist/destinations/engage/utils/EngageActionPerformer.js.map +0 -1
  162. package/dist/destinations/engage/utils/EngageLogger.d.ts +0 -18
  163. package/dist/destinations/engage/utils/EngageLogger.js +0 -52
  164. package/dist/destinations/engage/utils/EngageLogger.js.map +0 -1
  165. package/dist/destinations/engage/utils/EngageStats.d.ts +0 -18
  166. package/dist/destinations/engage/utils/EngageStats.js +0 -95
  167. package/dist/destinations/engage/utils/EngageStats.js.map +0 -1
  168. package/dist/destinations/engage/utils/IntegrationErrorWrapper.d.ts +0 -12
  169. package/dist/destinations/engage/utils/IntegrationErrorWrapper.js +0 -31
  170. package/dist/destinations/engage/utils/IntegrationErrorWrapper.js.map +0 -1
  171. package/dist/destinations/engage/utils/MessageSendPerformer.d.ts +0 -65
  172. package/dist/destinations/engage/utils/MessageSendPerformer.js +0 -211
  173. package/dist/destinations/engage/utils/MessageSendPerformer.js.map +0 -1
  174. package/dist/destinations/engage/utils/Profile.d.ts +0 -6
  175. package/dist/destinations/engage/utils/Profile.js +0 -3
  176. package/dist/destinations/engage/utils/Profile.js.map +0 -1
  177. package/dist/destinations/engage/utils/ResponseError.d.ts +0 -25
  178. package/dist/destinations/engage/utils/ResponseError.js +0 -22
  179. package/dist/destinations/engage/utils/ResponseError.js.map +0 -1
  180. package/dist/destinations/engage/utils/apiLookups.d.ts +0 -22
  181. package/dist/destinations/engage/utils/apiLookups.js +0 -189
  182. package/dist/destinations/engage/utils/apiLookups.js.map +0 -1
  183. package/dist/destinations/engage/utils/getProfileApiEndpoint.d.ts +0 -2
  184. package/dist/destinations/engage/utils/getProfileApiEndpoint.js +0 -10
  185. package/dist/destinations/engage/utils/getProfileApiEndpoint.js.map +0 -1
  186. package/dist/destinations/engage/utils/index.d.ts +0 -9
  187. package/dist/destinations/engage/utils/index.js +0 -22
  188. package/dist/destinations/engage/utils/index.js.map +0 -1
  189. package/dist/destinations/engage/utils/isDestinationActionService.d.ts +0 -1
  190. package/dist/destinations/engage/utils/isDestinationActionService.js +0 -8
  191. package/dist/destinations/engage/utils/isDestinationActionService.js.map +0 -1
  192. package/dist/destinations/engage/utils/isRetryableError.d.ts +0 -2
  193. package/dist/destinations/engage/utils/isRetryableError.js +0 -33
  194. package/dist/destinations/engage/utils/isRetryableError.js.map +0 -1
  195. package/dist/destinations/engage/utils/operationTracking/GenericMethodDecorator.d.ts +0 -1
  196. package/dist/destinations/engage/utils/operationTracking/GenericMethodDecorator.js +0 -3
  197. package/dist/destinations/engage/utils/operationTracking/GenericMethodDecorator.js.map +0 -1
  198. package/dist/destinations/engage/utils/operationTracking/OperationDecorator.d.ts +0 -46
  199. package/dist/destinations/engage/utils/operationTracking/OperationDecorator.js +0 -46
  200. package/dist/destinations/engage/utils/operationTracking/OperationDecorator.js.map +0 -1
  201. package/dist/destinations/engage/utils/operationTracking/OperationDuration.d.ts +0 -12
  202. package/dist/destinations/engage/utils/operationTracking/OperationDuration.js +0 -23
  203. package/dist/destinations/engage/utils/operationTracking/OperationDuration.js.map +0 -1
  204. package/dist/destinations/engage/utils/operationTracking/OperationErrorHandler.d.ts +0 -12
  205. package/dist/destinations/engage/utils/operationTracking/OperationErrorHandler.js +0 -35
  206. package/dist/destinations/engage/utils/operationTracking/OperationErrorHandler.js.map +0 -1
  207. package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.d.ts +0 -14
  208. package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.js +0 -31
  209. package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.js.map +0 -1
  210. package/dist/destinations/engage/utils/operationTracking/OperationLogger.d.ts +0 -31
  211. package/dist/destinations/engage/utils/operationTracking/OperationLogger.js +0 -104
  212. package/dist/destinations/engage/utils/operationTracking/OperationLogger.js.map +0 -1
  213. package/dist/destinations/engage/utils/operationTracking/OperationStats.d.ts +0 -39
  214. package/dist/destinations/engage/utils/operationTracking/OperationStats.js +0 -130
  215. package/dist/destinations/engage/utils/operationTracking/OperationStats.js.map +0 -1
  216. package/dist/destinations/engage/utils/operationTracking/OperationTracker.test.d.ts +0 -1
  217. package/dist/destinations/engage/utils/operationTracking/OperationTracker.test.js +0 -377
  218. package/dist/destinations/engage/utils/operationTracking/OperationTracker.test.js.map +0 -1
  219. package/dist/destinations/engage/utils/operationTracking/OperationTree.d.ts +0 -23
  220. package/dist/destinations/engage/utils/operationTracking/OperationTree.js +0 -49
  221. package/dist/destinations/engage/utils/operationTracking/OperationTree.js.map +0 -1
  222. package/dist/destinations/engage/utils/operationTracking/TrackedError.d.ts +0 -6
  223. package/dist/destinations/engage/utils/operationTracking/TrackedError.js +0 -3
  224. package/dist/destinations/engage/utils/operationTracking/TrackedError.js.map +0 -1
  225. package/dist/destinations/engage/utils/operationTracking/index.d.ts +0 -10
  226. package/dist/destinations/engage/utils/operationTracking/index.js +0 -23
  227. package/dist/destinations/engage/utils/operationTracking/index.js.map +0 -1
  228. package/dist/destinations/engage/utils/operationTracking/wrapTryCatchFinallyPromisable.d.ts +0 -21
  229. package/dist/destinations/engage/utils/operationTracking/wrapTryCatchFinallyPromisable.js +0 -99
  230. package/dist/destinations/engage/utils/operationTracking/wrapTryCatchFinallyPromisable.js.map +0 -1
  231. package/dist/destinations/engage/utils/testUtils.d.ts +0 -6
  232. package/dist/destinations/engage/utils/testUtils.js +0 -26
  233. package/dist/destinations/engage/utils/testUtils.js.map +0 -1
  234. package/dist/destinations/engage/utils/track.d.ts +0 -52
  235. package/dist/destinations/engage/utils/track.js +0 -9
  236. package/dist/destinations/engage/utils/track.js.map +0 -1
  237. package/dist/destinations/engage-messaging-sendgrid/previewApiLookup.types.d.ts +0 -16
  238. package/dist/destinations/engage-messaging-sendgrid/previewApiLookup.types.js +0 -3
  239. package/dist/destinations/engage-messaging-sendgrid/previewApiLookup.types.js.map +0 -1
  240. package/dist/destinations/engage-messaging-sendgrid/sendEmail.types.d.ts +0 -56
  241. package/dist/destinations/engage-messaging-sendgrid/sendEmail.types.js +0 -3
  242. package/dist/destinations/engage-messaging-sendgrid/sendEmail.types.js.map +0 -1
  243. package/dist/destinations/engage-messaging-twilio/sendMobilePush.types.d.ts +0 -39
  244. package/dist/destinations/engage-messaging-twilio/sendMobilePush.types.js +0 -3
  245. package/dist/destinations/engage-messaging-twilio/sendMobilePush.types.js.map +0 -1
  246. package/dist/destinations/engage-messaging-twilio/sendSms/sms-sender.d.ts +0 -23
  247. package/dist/destinations/engage-messaging-twilio/sendSms/sms-sender.js +0 -131
  248. package/dist/destinations/engage-messaging-twilio/sendSms/sms-sender.js.map +0 -1
  249. package/dist/destinations/engage-messaging-twilio/sendSms.types.d.ts +0 -27
  250. package/dist/destinations/engage-messaging-twilio/sendSms.types.js +0 -3
  251. package/dist/destinations/engage-messaging-twilio/sendSms.types.js.map +0 -1
  252. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/whatsapp-sender.d.ts +0 -21
  253. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/whatsapp-sender.js +0 -75
  254. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/whatsapp-sender.js.map +0 -1
  255. package/dist/destinations/engage-messaging-twilio/sendWhatsApp.types.d.ts +0 -25
  256. package/dist/destinations/engage-messaging-twilio/sendWhatsApp.types.js +0 -3
  257. package/dist/destinations/engage-messaging-twilio/sendWhatsApp.types.js.map +0 -1
  258. package/dist/destinations/engage-messaging-twilio/utils/message-sender.d.ts +0 -24
  259. package/dist/destinations/engage-messaging-twilio/utils/message-sender.js +0 -111
  260. package/dist/destinations/engage-messaging-twilio/utils/message-sender.js.map +0 -1
  261. package/dist/destinations/facebook-custom-audiences/add/generated-types.d.ts +0 -2
  262. package/dist/destinations/facebook-custom-audiences/add/generated-types.js +0 -3
  263. package/dist/destinations/facebook-custom-audiences/add/generated-types.js.map +0 -1
  264. package/dist/destinations/facebook-custom-audiences/add/index.d.ts +0 -5
  265. package/dist/destinations/facebook-custom-audiences/add/index.js +0 -11
  266. package/dist/destinations/facebook-custom-audiences/add/index.js.map +0 -1
  267. package/dist/destinations/facebook-custom-audiences/remove/generated-types.d.ts +0 -2
  268. package/dist/destinations/facebook-custom-audiences/remove/generated-types.js +0 -3
  269. package/dist/destinations/facebook-custom-audiences/remove/generated-types.js.map +0 -1
  270. package/dist/destinations/facebook-custom-audiences/remove/index.d.ts +0 -5
  271. package/dist/destinations/facebook-custom-audiences/remove/index.js +0 -11
  272. package/dist/destinations/facebook-custom-audiences/remove/index.js.map +0 -1
  273. package/dist/destinations/hubspot/helperFunctions.d.ts +0 -7
  274. package/dist/destinations/hubspot/helperFunctions.js +0 -27
  275. package/dist/destinations/hubspot/helperFunctions.js.map +0 -1
  276. package/dist/destinations/mixpanel/utils.d.ts +0 -13
  277. package/dist/destinations/mixpanel/utils.js +0 -117
  278. package/dist/destinations/mixpanel/utils.js.map +0 -1
  279. package/dist/destinations/responsys/shared_properties.d.ts +0 -3
  280. package/dist/destinations/responsys/shared_properties.js +0 -19
  281. package/dist/destinations/responsys/shared_properties.js.map +0 -1
  282. package/dist/destinations/snap-conversions-api/snap-capi-properties.d.ts +0 -30
  283. package/dist/destinations/snap-conversions-api/snap-capi-properties.js +0 -316
  284. package/dist/destinations/snap-conversions-api/snap-capi-properties.js.map +0 -1
  285. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.d.ts +0 -3
  286. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js +0 -34
  287. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js.map +0 -1
  288. package/dist/destinations/vernst-test/generated-types.d.ts +0 -2
  289. package/dist/destinations/vernst-test/generated-types.js +0 -3
  290. package/dist/destinations/vernst-test/generated-types.js.map +0 -1
  291. package/dist/destinations/vernst-test/index.d.ts +0 -4
  292. package/dist/destinations/vernst-test/index.js +0 -20
  293. package/dist/destinations/vernst-test/index.js.map +0 -1
  294. package/dist/destinations/vernst-test/pingWebhook/generated-types.d.ts +0 -3
  295. package/dist/destinations/vernst-test/pingWebhook/generated-types.js +0 -3
  296. package/dist/destinations/vernst-test/pingWebhook/generated-types.js.map +0 -1
  297. package/dist/destinations/vernst-test/pingWebhook/index.d.ts +0 -5
  298. package/dist/destinations/vernst-test/pingWebhook/index.js +0 -21
  299. package/dist/destinations/vernst-test/pingWebhook/index.js.map +0 -1
  300. package/dist/destinations/warehouse-test/client.d.ts +0 -27
  301. package/dist/destinations/warehouse-test/client.js +0 -121
  302. package/dist/destinations/warehouse-test/client.js.map +0 -1
  303. package/dist/destinations/warehouse-test/fields.d.ts +0 -3
  304. package/dist/destinations/warehouse-test/fields.js +0 -71
  305. package/dist/destinations/warehouse-test/fields.js.map +0 -1
  306. package/dist/destinations/warehouse-test/generated-types.d.ts +0 -7
  307. package/dist/destinations/warehouse-test/generated-types.js +0 -3
  308. package/dist/destinations/warehouse-test/generated-types.js.map +0 -1
  309. package/dist/destinations/warehouse-test/index.d.ts +0 -4
  310. package/dist/destinations/warehouse-test/index.js +0 -58
  311. package/dist/destinations/warehouse-test/index.js.map +0 -1
  312. package/dist/destinations/warehouse-test/syncToWarehouse/generated-types.d.ts +0 -5
  313. package/dist/destinations/warehouse-test/syncToWarehouse/generated-types.js +0 -3
  314. package/dist/destinations/warehouse-test/syncToWarehouse/generated-types.js.map +0 -1
  315. package/dist/destinations/warehouse-test/syncToWarehouse/index.d.ts +0 -5
  316. package/dist/destinations/warehouse-test/syncToWarehouse/index.js +0 -37
  317. package/dist/destinations/warehouse-test/syncToWarehouse/index.js.map +0 -1
@@ -1,23 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- __exportStar(require("./wrapTryCatchFinallyPromisable"), exports);
14
- __exportStar(require("./OperationDecorator"), exports);
15
- __exportStar(require("./GenericMethodDecorator"), exports);
16
- __exportStar(require("./OperationTree"), exports);
17
- __exportStar(require("./OperationFinallyHooks"), exports);
18
- __exportStar(require("./OperationLogger"), exports);
19
- __exportStar(require("./OperationDuration"), exports);
20
- __exportStar(require("./OperationStats"), exports);
21
- __exportStar(require("./OperationErrorHandler"), exports);
22
- __exportStar(require("./TrackedError"), exports);
23
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/destinations/engage/utils/operationTracking/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kEAA+C;AAC/C,uDAAoC;AACpC,2DAAwC;AACxC,kDAA+B;AAC/B,0DAAuC;AACvC,oDAAiC;AACjC,sDAAmC;AACnC,mDAAgC;AAChC,0DAAuC;AACvC,iDAA8B"}
@@ -1,21 +0,0 @@
1
- export interface TryCatchFinallyContext<TFunc extends (this: any, ...args: any[]) => any = (this: any, ...args: any[]) => any> {
2
- func: TFunc;
3
- funcArgs: Parameters<TFunc>;
4
- funcThis: ThisParameterType<TFunc>;
5
- result?: ReturnType<TFunc> | Awaited<ReturnType<TFunc>>;
6
- error?: unknown;
7
- stage: 'try' | 'success' | 'catch' | 'finally';
8
- }
9
- export interface TryCatchFinallyHook<TContext extends TryCatchFinallyContext<any> = TryCatchFinallyContext<(...args: any[]) => any>> {
10
- onTry?(ctx: TContext): void | (() => void);
11
- onSuccess?(ctx: TContext): void | (() => void);
12
- onCatch?(ctx: TContext): void | (() => void);
13
- onFinally?(ctx: TContext): void | (() => void);
14
- getPriority?(ctx: TContext): number | void;
15
- }
16
- export declare type FuncFromTryCatchFinallyContext<TWrapContext extends TryCatchFinallyContext<any>> = TWrapContext extends TryCatchFinallyContext<infer TFunc> ? TFunc : never;
17
- export declare const DefaultHookPriority = 0;
18
- export declare function wrapTryCatchFinallyPromisable<TFunc extends (...args: any[]) => any, TContext extends TryCatchFinallyContext<TFunc> = TryCatchFinallyContext<TFunc>, THooks extends TryCatchFinallyHook<TContext>[] = TryCatchFinallyHook<TContext>[]>(func: TFunc, getHooks: (ctx: TContext) => THooks, onHookError?: (e: unknown) => unknown | undefined): TFunc;
19
- export declare type Awaited<T> = T extends null | undefined ? T : T extends object & {
20
- then(onfulfilled: infer F, ...args: infer _): any;
21
- } ? F extends (value: infer V, ...args: infer _) => any ? Awaited<V> : never : T;
@@ -1,99 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.wrapTryCatchFinallyPromisable = exports.DefaultHookPriority = void 0;
4
- exports.DefaultHookPriority = 0;
5
- function wrapTryCatchFinallyPromisable(func, getHooks, onHookError) {
6
- function forEachHook(hooks, inContext, doThis) {
7
- const prioritizedHooks = Object.values(hooks).sort((h1, h2) => {
8
- const p1 = h1.getPriority ? h1.getPriority(inContext) : exports.DefaultHookPriority;
9
- const p2 = h2.getPriority ? h2.getPriority(inContext) : exports.DefaultHookPriority;
10
- return (p1 === undefined ? exports.DefaultHookPriority : p1) - (p2 === undefined ? exports.DefaultHookPriority : p2);
11
- });
12
- const postCallbacks = [];
13
- for (const hook of prioritizedHooks) {
14
- try {
15
- const callback = doThis(hook);
16
- if (callback instanceof Function)
17
- postCallbacks.push(callback);
18
- }
19
- catch (hookError) {
20
- let errorToThrow = hookError;
21
- if (onHookError)
22
- errorToThrow = onHookError(errorToThrow);
23
- if (errorToThrow)
24
- throw errorToThrow;
25
- }
26
- }
27
- for (const callback of postCallbacks.reverse()) {
28
- try {
29
- callback();
30
- }
31
- catch (callbackError) {
32
- let errorToThrow = callbackError;
33
- if (onHookError)
34
- errorToThrow = onHookError(errorToThrow);
35
- if (errorToThrow)
36
- throw errorToThrow;
37
- }
38
- }
39
- }
40
- return function (...funcArgs) {
41
- const ctx = {
42
- funcArgs: funcArgs,
43
- funcThis: this,
44
- func,
45
- stage: 'try'
46
- };
47
- let isPromise = false;
48
- const hooks = getHooks(ctx);
49
- try {
50
- forEachHook(hooks, ctx, (hook) => hook.onTry?.(ctx));
51
- const funcResMayBePromise = func.apply(this, funcArgs);
52
- isPromise = isValuePromise(funcResMayBePromise);
53
- if (isPromise) {
54
- const wrappedPromise = (async () => {
55
- try {
56
- ctx.result = await funcResMayBePromise;
57
- ctx.stage = 'success';
58
- forEachHook(hooks, ctx, (hook) => hook.onSuccess?.(ctx));
59
- }
60
- catch (error) {
61
- ctx.stage = 'catch';
62
- ctx.error = error;
63
- forEachHook(hooks, ctx, (hook) => hook.onCatch?.(ctx));
64
- if (ctx.error)
65
- throw ctx.error;
66
- }
67
- finally {
68
- ctx.stage = 'finally';
69
- forEachHook(hooks, ctx, (hook) => hook.onFinally?.(ctx));
70
- }
71
- return ctx.result;
72
- })();
73
- return wrappedPromise;
74
- }
75
- ctx.result = funcResMayBePromise;
76
- ctx.stage = 'success';
77
- forEachHook(hooks, ctx, (hook) => hook.onSuccess?.(ctx));
78
- }
79
- catch (error) {
80
- ctx.stage = 'catch';
81
- ctx.error = error;
82
- forEachHook(hooks, ctx, (hook) => hook.onCatch?.(ctx));
83
- if (ctx.error)
84
- throw ctx.error;
85
- }
86
- finally {
87
- if (!isPromise) {
88
- ctx.stage = 'finally';
89
- forEachHook(hooks, ctx, (hook) => hook.onFinally?.(ctx));
90
- }
91
- }
92
- return ctx.result;
93
- };
94
- }
95
- exports.wrapTryCatchFinallyPromisable = wrapTryCatchFinallyPromisable;
96
- function isValuePromise(obj) {
97
- return obj instanceof Object && 'then' in obj && typeof obj.then === 'function';
98
- }
99
- //# sourceMappingURL=wrapTryCatchFinallyPromisable.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"wrapTryCatchFinallyPromisable.js","sourceRoot":"","sources":["../../../../../src/destinations/engage/utils/operationTracking/wrapTryCatchFinallyP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,MAA2B,CAAA;IACxC,CAAU,CAAA;AACZ,CAAC;AApFD,sEAoFC;AAYD,SAAS,cAAc,CAAc,GAAY;IAM/C,OAAO,GAAG,YAAY,MAAM,IAAI,MAAM,IAAI,GAAG,IAAI,OAAO,GAAG,CAAC,IAAI,KAAK,UAAU,CAAA;AACjF,CAAC"}
@@ -1,6 +0,0 @@
1
- import { Logger } from '@segment/actions-core/destination-kit';
2
- export declare function createLoggerMock(): Logger;
3
- export declare const loggerMock: Logger;
4
- export declare function expectLogged(logMethod: Function, ...msgs: string[]): void;
5
- export declare function expectErrorLogged(...msgs: string[]): void;
6
- export declare function expectInfoLogged(...msgs: string[]): void;
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.expectInfoLogged = exports.expectErrorLogged = exports.expectLogged = exports.loggerMock = exports.createLoggerMock = void 0;
4
- function createLoggerMock() {
5
- return {
6
- level: 'error',
7
- name: 'test',
8
- error: jest.fn(),
9
- info: jest.fn()
10
- };
11
- }
12
- exports.createLoggerMock = createLoggerMock;
13
- exports.loggerMock = createLoggerMock();
14
- function expectLogged(logMethod, ...msgs) {
15
- expect(logMethod).toHaveBeenCalledWith(expect.stringMatching(new RegExp(`(.*)${msgs.join('(.*)')}(.*)`)), expect.anything());
16
- }
17
- exports.expectLogged = expectLogged;
18
- function expectErrorLogged(...msgs) {
19
- expectLogged(exports.loggerMock.error, ...msgs);
20
- }
21
- exports.expectErrorLogged = expectErrorLogged;
22
- function expectInfoLogged(...msgs) {
23
- expectLogged(exports.loggerMock.info, ...msgs);
24
- }
25
- exports.expectInfoLogged = expectInfoLogged;
26
- //# sourceMappingURL=testUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"testUtils.js","sourceRoot":"","sources":["../../../../src/destinations/engage/utils/testUtils.ts"],"names":[],"mappings":";;;AAEA,SAAgB,gBAAgB;IAC9B,OAAO;QACL,KAAK,EAAE,OAAO;QACd,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,IAAI,CAAC,EAAE,EAAqB;QACnC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAoB;KACxB,CAAA;AACb,CAAC;AAPD,4CAOC;AAEY,QAAA,UAAU,GAAG,gBAAgB,EAAE,CAAA;AAE5C,SAAgB,YAAY,CAAC,SAAmB,EAAE,GAAG,IAAc;IACjE,MAAM,CAAC,SAAS,CAAC,CAAC,oBAAoB,CACpC,MAAM,CAAC,cAAc,CAAC,IAAI,MAAM,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EACjE,MAAM,CAAC,QAAQ,EAAE,CAClB,CAAA;AACH,CAAC;AALD,oCAKC;AAED,SAAgB,iBAAiB,CAAC,GAAG,IAAc;IACjD,YAAY,CAAC,kBAAU,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,CAAA;AACzC,CAAC;AAFD,8CAEC;AACD,SAAgB,gBAAgB,CAAC,GAAG,IAAc;IAChD,YAAY,CAAC,kBAAU,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,CAAA;AACxC,CAAC;AAFD,4CAEC"}
@@ -1,52 +0,0 @@
1
- import { ContextFromDecorator } from './operationTracking';
2
- export declare const track: ((decoratorArgs?: ({
3
- onError?: ((ctx: import("./operationTracking").OperationErrorHandlerContext<import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>>) => void) | undefined;
4
- } & {
5
- onTry?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => void) | undefined;
6
- onFinally?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => void) | undefined;
7
- } & import("./operationTracking").OperationLoggerDecoratorArgs & {
8
- shouldStats?: ((args: import("./operationTracking").OperationStatsEventArgs) => boolean | void) | undefined;
9
- } & {
10
- wrapIntegrationError?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => import("@segment/actions-core/*").IntegrationError | [message: string, code: string, status: number]) | undefined;
11
- }) | undefined) => import("./operationTracking").GenericMethodDecorator<(this: any, ...args: any[]) => any>) & {
12
- getCurrentOperation(classInstance: any): (import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any> & {
13
- parent?: (import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any> & any) | undefined;
14
- sharedContext: {};
15
- }) | undefined;
16
- } & {
17
- _contextType: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any> & {
18
- decoratorArgs?: {
19
- onError?: ((ctx: import("./operationTracking").OperationErrorHandlerContext<import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>>) => void) | undefined;
20
- } | undefined;
21
- } & {
22
- parent?: (import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any> & any) | undefined;
23
- sharedContext: {};
24
- } & {
25
- start?: number | undefined;
26
- duration?: number | undefined;
27
- } & {
28
- onFinally: (() => void)[];
29
- decoratorArgs?: {
30
- onTry?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => void) | undefined;
31
- onFinally?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => void) | undefined;
32
- } | undefined;
33
- } & {
34
- logs: string[];
35
- logMetadata?: Record<string, unknown> | undefined;
36
- decoratorArgs?: import("./operationTracking").OperationLoggerDecoratorArgs | undefined;
37
- sharedContext: import("./operationTracking").OperationLoggerSharedContext;
38
- } & {
39
- tags: string[];
40
- sharedContext: {
41
- tags: string[];
42
- };
43
- decoratorArgs?: {
44
- shouldStats?: ((args: import("./operationTracking").OperationStatsEventArgs) => boolean | void) | undefined;
45
- } | undefined;
46
- } & {
47
- decoratorArgs?: {
48
- wrapIntegrationError?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => import("@segment/actions-core/*").IntegrationError | [message: string, code: string, status: number]) | undefined;
49
- } | undefined;
50
- };
51
- };
52
- export declare type OperationContext = ContextFromDecorator<typeof track>;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.track = void 0;
4
- const operationTracking_1 = require("./operationTracking");
5
- const EngageStats_1 = require("./EngageStats");
6
- const EngageLogger_1 = require("./EngageLogger");
7
- const IntegrationErrorWrapper_1 = require("./IntegrationErrorWrapper");
8
- exports.track = operationTracking_1.OperationDecorator.createDecoratorFactoryWithDefault(EngageLogger_1.EngageLogger, EngageStats_1.EngageStats, IntegrationErrorWrapper_1.IntegrationErrorWrapper);
9
- //# sourceMappingURL=track.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"track.js","sourceRoot":"","sources":["../../../../src/destinations/engage/utils/track.ts"],"names":[],"mappings":";;;AAEA,2DAA8E;AAC9E,+CAA2C;AAC3C,iDAA6C;AAC7C,uEAAmE;AAEtD,QAAA,KAAK,GAAG,sCAAkB,CAAC,iCAAiC,CACvE,2BAAY,EACZ,yBAAW,EACX,iDAAuB,CACxB,CAAA"}
@@ -1,16 +0,0 @@
1
- export interface Payload {
2
- id?: string;
3
- name: string;
4
- url: string;
5
- method: string;
6
- cacheTtl: number;
7
- body?: string;
8
- headers?: {
9
- [k: string]: unknown;
10
- };
11
- responseType: string;
12
- shouldRetryOnRetryableError?: boolean;
13
- traits?: {
14
- [k: string]: unknown;
15
- };
16
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=previewApiLookup.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"previewApiLookup.types.js","sourceRoot":"","sources":["../../../src/destinations/engage-messaging-sendgrid/previewApiLookup.types.ts"],"names":[],"mappings":""}
@@ -1,56 +0,0 @@
1
- export interface Payload {
2
- send?: boolean;
3
- traitEnrichment?: boolean;
4
- userId?: string;
5
- toEmail?: string;
6
- fromDomain?: string | null;
7
- fromEmail: string;
8
- fromName: string;
9
- replyToEqualsFrom?: boolean;
10
- replyToEmail: string;
11
- replyToName: string;
12
- bcc: string;
13
- previewText?: string;
14
- subject: string;
15
- body?: string;
16
- bodyUrl?: string;
17
- bodyType: string;
18
- bodyHtml?: string;
19
- groupId?: string;
20
- byPassSubscription?: boolean;
21
- ipPool?: string;
22
- sendBasedOnOptOut?: boolean;
23
- apiLookups?: {
24
- id?: string;
25
- name: string;
26
- url: string;
27
- method: string;
28
- cacheTtl: number;
29
- body?: string;
30
- headers?: {
31
- [k: string]: unknown;
32
- };
33
- responseType: string;
34
- shouldRetryOnRetryableError?: boolean;
35
- }[];
36
- segmentComputationId?: string;
37
- externalIds?: {
38
- id?: string;
39
- type?: string;
40
- subscriptionStatus?: string;
41
- unsubscribeLink?: string;
42
- preferencesLink?: string;
43
- groups?: {
44
- id?: string;
45
- isSubscribed?: boolean;
46
- groupUnsubscribeLink?: string;
47
- }[];
48
- }[];
49
- customArgs?: {
50
- [k: string]: unknown;
51
- };
52
- traits?: {
53
- [k: string]: unknown;
54
- };
55
- eventOccurredTS?: string;
56
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=sendEmail.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sendEmail.types.js","sourceRoot":"","sources":["../../../src/destinations/engage-messaging-sendgrid/sendEmail.types.ts"],"names":[],"mappings":""}
@@ -1,39 +0,0 @@
1
- export interface Payload {
2
- contentSid?: string;
3
- from: string;
4
- customizations?: {
5
- title?: string;
6
- body?: string;
7
- media?: string[];
8
- tapAction?: string;
9
- link?: string;
10
- sound?: string;
11
- priority?: string;
12
- badgeAmount?: number;
13
- badgeStrategy?: string;
14
- ttl?: number;
15
- tapActionButtons?: {
16
- id: string;
17
- text: string;
18
- onTap: string;
19
- link?: string;
20
- }[];
21
- };
22
- customArgs?: {
23
- [k: string]: unknown;
24
- };
25
- connectionOverrides?: string;
26
- send?: boolean;
27
- segmentComputationId?: string;
28
- externalIds?: {
29
- id?: string;
30
- type?: string;
31
- channelType?: string;
32
- subscriptionStatus?: string;
33
- }[];
34
- traits?: {
35
- [k: string]: unknown;
36
- };
37
- eventOccurredTS?: string;
38
- googleApiVersion?: string;
39
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=sendMobilePush.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sendMobilePush.types.js","sourceRoot":"","sources":["../../../src/destinations/engage-messaging-twilio/sendMobilePush.types.ts"],"names":[],"mappings":""}
@@ -1,23 +0,0 @@
1
- import type { Settings } from '../generated-types';
2
- import type { Payload } from './generated-types';
3
- import { Logger, StatsClient, StatsContext } from '@segment/actions-core/src/destination-kit';
4
- import { MessageSender, RequestFn } from '../utils/message-sender';
5
- export declare class SmsMessageSender extends MessageSender<Payload> {
6
- readonly request: RequestFn;
7
- readonly payload: Payload;
8
- readonly settings: Settings;
9
- readonly statsClient: StatsClient | undefined;
10
- readonly tags: StatsContext['tags'];
11
- readonly logger: Logger | undefined;
12
- constructor(request: RequestFn, payload: Payload, settings: Settings, statsClient: StatsClient | undefined, tags: StatsContext['tags'], logger: Logger | undefined);
13
- getExternalId: () => {
14
- id?: string | undefined;
15
- type?: string | undefined;
16
- subscriptionStatus?: string | undefined;
17
- } | undefined;
18
- getBody: (phone: string) => Promise<URLSearchParams>;
19
- private getProfileTraits;
20
- private getContentTemplate;
21
- private getUnparsedContent;
22
- private parseContent;
23
- }
@@ -1,131 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SmsMessageSender = void 0;
4
- const liquidjs_1 = require("liquidjs");
5
- const actions_core_1 = require("@segment/actions-core");
6
- const message_sender_1 = require("../utils/message-sender");
7
- const Liquid = new liquidjs_1.Liquid();
8
- class SmsMessageSender extends message_sender_1.MessageSender {
9
- constructor(request, payload, settings, statsClient, tags, logger) {
10
- super(request, payload, settings, statsClient, tags, logger);
11
- this.request = request;
12
- this.payload = payload;
13
- this.settings = settings;
14
- this.statsClient = statsClient;
15
- this.tags = tags;
16
- this.logger = logger;
17
- this.getExternalId = () => this.payload.externalIds?.find(({ type }) => type === 'phone');
18
- this.getBody = async (phone) => {
19
- if (!this.payload.body && !this.payload.contentSid) {
20
- this.logger?.error(`TE Messaging: Unable to process SMS, no body provided and no content sid provided - ${this.settings.spaceId}`);
21
- throw new actions_core_1.PayloadValidationError('Unable to process sms, no body provided and no content sid provided');
22
- }
23
- let traits;
24
- if (this.payload.traitEnrichment) {
25
- traits = this.payload?.traits ? this.payload?.traits : {};
26
- }
27
- else {
28
- traits = await this.getProfileTraits();
29
- }
30
- const profile = {
31
- user_id: this.payload.userId ?? undefined,
32
- phone,
33
- traits
34
- };
35
- let parsedBody;
36
- let parsedMedia = [];
37
- if (this.payload.contentSid) {
38
- const data = await this.getContentTemplate();
39
- const parsed = await this.parseContent(this.getUnparsedContent(data), profile);
40
- parsedBody = parsed.body;
41
- parsedMedia = parsed.media;
42
- }
43
- else {
44
- parsedBody = (await this.parseContent({ body: this.payload.body ?? '' }, profile)).body;
45
- }
46
- const body = new URLSearchParams({
47
- Body: parsedBody,
48
- From: this.payload.from,
49
- To: phone,
50
- ShortenUrls: 'true'
51
- });
52
- parsedMedia?.forEach((media) => {
53
- body.append('MediaUrl', media);
54
- });
55
- return body;
56
- };
57
- this.getProfileTraits = async () => {
58
- if (!this.payload.userId) {
59
- this.logger?.error(`TE Messaging: Unable to process SMS, no userId provided and no traits provided - ${this.settings.spaceId}`);
60
- throw new actions_core_1.IntegrationError('Unable to process sms, no userId provided and no traits provided', 'Invalid parameters', 400);
61
- }
62
- try {
63
- const { region, profileApiEnvironment, spaceId, profileApiAccessToken } = this.settings;
64
- const domainName = region === 'eu-west-1' ? 'profiles.euw1.segment' : 'profiles.segment';
65
- const topLevelName = profileApiEnvironment === 'production' ? 'com' : 'build';
66
- const response = await this.request(`https://${domainName}.${topLevelName}/v1/spaces/${spaceId}/collections/users/profiles/user_id:${encodeURIComponent(this.payload.userId)}/traits?limit=200`, {
67
- headers: {
68
- authorization: `Basic ${Buffer.from(profileApiAccessToken + ':').toString('base64')}`,
69
- 'content-type': 'application/json'
70
- }
71
- });
72
- this.tags.push(`profile_status_code:${response.status}`);
73
- this.statsClient?.incr('actions-personas-messaging-twilio.profile_invoked', 1, this.tags);
74
- const body = await response.json();
75
- return body.traits;
76
- }
77
- catch (error) {
78
- this.statsClient?.incr('actions-personas-messaging-twilio.profile_error', 1, this.tags);
79
- this.logger?.error(`TE Messaging: SMS profile traits request failure - ${this.settings.spaceId} - [${error}]`);
80
- throw new actions_core_1.IntegrationError('Unable to get profile traits for SMS message', 'SMS trait fetch failure', 500);
81
- }
82
- };
83
- this.getContentTemplate = async () => {
84
- const twilioToken = Buffer.from(`${this.settings.twilioApiKeySID}:${this.settings.twilioApiKeySecret}`).toString('base64');
85
- try {
86
- const response = await this.request(`https://content.twilio.com/v1/Content/${this.payload.contentSid}`, {
87
- method: 'GET',
88
- headers: {
89
- authorization: `Basic ${twilioToken}`
90
- }
91
- });
92
- const data = await response.json();
93
- return data;
94
- }
95
- catch (error) {
96
- this.tags.push('reason:get_content_template');
97
- this.statsClient?.incr('actions-personas-messaging-twilio.error', 1, this.tags);
98
- this.logger?.error(`TE Messaging: SMS failed request to fetch content template from Twilio Content API - ${this.settings.spaceId} - [${error}]`);
99
- throw new actions_core_1.IntegrationError('Unable to fetch content template', 'Twilio Content API request failure', 500);
100
- }
101
- };
102
- this.getUnparsedContent = (data) => {
103
- if (!data.types) {
104
- this.logger?.error(`TE Messaging: SMS template from Twilio Content API does not contain a template type - ${this.settings.spaceId} - [${JSON.stringify(data)}]`);
105
- throw new actions_core_1.IntegrationError('Unexpected response from Twilio Content API', `SMS template does not contain a template type`, 500);
106
- }
107
- const type = Object.keys(data.types)[0];
108
- if (type === 'twilio/text' || type === 'twilio/media') {
109
- return { body: data.types[type].body, media: data.types[type].media };
110
- }
111
- else {
112
- this.logger?.error(`TE Messaging: SMS unsupported content template type '${type}' - ${this.settings.spaceId}`);
113
- throw new actions_core_1.IntegrationError('Unsupported content type', `Sending templates with '${type}' content type is not supported by SMS`, 400);
114
- }
115
- };
116
- }
117
- async parseContent(content, profile) {
118
- try {
119
- return {
120
- body: await Liquid.parseAndRender(content.body, { profile }),
121
- media: await Promise.all(content.media?.map((media) => Liquid.parseAndRender(media, { profile })) || [])
122
- };
123
- }
124
- catch (error) {
125
- this.logger?.error(`TE Messaging: SMS templating parse failure - ${this.settings.spaceId} - [${error}]`);
126
- throw new actions_core_1.IntegrationError(`Unable to parse templating in SMS`, `SMS templating parse failure`, 400);
127
- }
128
- }
129
- }
130
- exports.SmsMessageSender = SmsMessageSender;
131
- //# sourceMappingURL=sms-sender.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sms-sender.js","sourceRoot":"","sources":["../../../../src/destinations/engage-messaging-twilio/sendSms/sms-sender.ts"],"names":[],"mappings":";;;AACA,uCAA6C;AAG7C,wDAAgF;AAEhF,4DAAkE;AAElE,MAAM,MAAM,GAAG,IAAI,iBAAQ,EAAE,CAAA;AAiB7B,MAAa,gBAAiB,SAAQ,8BAAsB;IAC1D,YACW,OAAkB,EAClB,OAAgB,EAChB,QAAkB,EAClB,WAAoC,EACpC,IAA0B,EAC1B,MAA0B;QAEnC,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,CAAC,CAAA;QAPnD,YAAO,GAAP,OAAO,CAAW;QAClB,YAAO,GAAP,OAAO,CAAS;QAChB,aAAQ,GAAR,QAAQ,CAAU;QAClB,gBAAW,GAAX,WAAW,CAAyB;QACpC,SAAI,GAAJ,IAAI,CAAsB;QAC1B,WAAM,GAAN,MAAM,CAAoB;QAKrC,kBAAa,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,KAAK,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,MAAM,IAAI,+BAAgB,CACxB,0BAA0B,EAC1B,2BAA2B,IAAI,wCAAwC,EACvE,GAAG,CACJ,CAAA;aACF;QACH,CAAC,CAAA;IA1ID,CAAC;IA4IO,KAAK,CAAC,YAAY,CACxB,OAAiD,EACjD,OAAgB;QAEhB,IAAI;YACF,OAAO;gBACL,IAAI,EAAE,MAAM,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC;gBAC5D,KAAK,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;aACzG,CAAA;SACF;QAAC,OAAO,KAAc,EAAE;YACvB,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,gDAAgD,IAAI,CAAC,QAAQ,CAAC,OAAO,OAAO,KAAK,GAAG,CAAC,CAAA;YACxG,MAAM,IAAI,+BAAgB,CAAC,mCAAmC,EAAE,8BAA8B,EAAE,GAAG,CAAC,CAAA;SACrG;IACH,CAAC;CACF;AApKD,4CAoKC"}
@@ -1,27 +0,0 @@
1
- export interface Payload {
2
- userId?: string;
3
- toNumber?: string;
4
- from: string;
5
- body?: string;
6
- media?: string[];
7
- contentSid?: string;
8
- customArgs?: {
9
- [k: string]: unknown;
10
- };
11
- connectionOverrides?: string;
12
- send?: boolean;
13
- traitEnrichment?: boolean;
14
- sendBasedOnOptOut?: boolean;
15
- segmentComputationId?: string;
16
- externalIds?: {
17
- id?: string;
18
- type?: string;
19
- channelType?: string;
20
- subscriptionStatus?: string;
21
- }[];
22
- traits?: {
23
- [k: string]: unknown;
24
- };
25
- eventOccurredTS?: string;
26
- messageId?: string;
27
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=sendSms.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sendSms.types.js","sourceRoot":"","sources":["../../../src/destinations/engage-messaging-twilio/sendSms.types.ts"],"names":[],"mappings":""}
@@ -1,21 +0,0 @@
1
- import type { Settings } from '../generated-types';
2
- import type { Payload } from './generated-types';
3
- import { RequestFn, MessageSender } from '../utils/message-sender';
4
- import { Logger, StatsClient, StatsContext } from '@segment/actions-core/src/destination-kit';
5
- export declare class WhatsAppMessageSender extends MessageSender<Payload> {
6
- readonly request: RequestFn;
7
- readonly payload: Payload;
8
- readonly settings: Settings;
9
- readonly statsClient: StatsClient | undefined;
10
- readonly tags: StatsContext['tags'];
11
- readonly logger: Logger | undefined;
12
- constructor(request: RequestFn, payload: Payload, settings: Settings, statsClient: StatsClient | undefined, tags: StatsContext['tags'], logger: Logger | undefined);
13
- getExternalId: () => {
14
- id?: string | undefined;
15
- type?: string | undefined;
16
- channelType?: string | undefined;
17
- subscriptionStatus?: string | undefined;
18
- } | undefined;
19
- getBody: (phone: string) => Promise<URLSearchParams>;
20
- private getVariables;
21
- }