@segment/action-destinations 3.187.1-TempPublishBranch.6 → 3.189.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 (378) hide show
  1. package/dist/destinations/app-fit/index.js +2 -2
  2. package/dist/destinations/app-fit/index.js.map +1 -1
  3. package/dist/destinations/app-fit/track/index.js +1 -1
  4. package/dist/destinations/app-fit/track/index.js.map +1 -1
  5. package/dist/destinations/attio/api/index.d.ts +30 -0
  6. package/dist/destinations/attio/api/index.js +28 -0
  7. package/dist/destinations/attio/api/index.js.map +1 -0
  8. package/dist/destinations/attio/assertRecord/generated-types.d.ts +8 -0
  9. package/dist/destinations/attio/assertRecord/generated-types.js.map +1 -0
  10. package/dist/destinations/attio/assertRecord/index.d.ts +6 -0
  11. package/dist/destinations/attio/assertRecord/index.js +84 -0
  12. package/dist/destinations/attio/assertRecord/index.js.map +1 -0
  13. package/dist/destinations/attio/generated-types.d.ts +2 -0
  14. package/dist/destinations/attio/generated-types.js.map +1 -0
  15. package/dist/destinations/attio/groupWorkspace/generated-types.d.ts +10 -0
  16. package/dist/destinations/attio/groupWorkspace/generated-types.js.map +1 -0
  17. package/dist/destinations/attio/groupWorkspace/index.js +82 -0
  18. package/dist/destinations/attio/groupWorkspace/index.js.map +1 -0
  19. package/dist/destinations/attio/identifyUser/generated-types.d.ts +10 -0
  20. package/dist/destinations/attio/identifyUser/generated-types.js.map +1 -0
  21. package/dist/destinations/attio/identifyUser/index.js +74 -0
  22. package/dist/destinations/attio/identifyUser/index.js.map +1 -0
  23. package/dist/destinations/attio/index.d.ts +4 -0
  24. package/dist/destinations/attio/index.js +48 -0
  25. package/dist/destinations/attio/index.js.map +1 -0
  26. package/dist/destinations/{engage-messaging-twilio/utils/types.js → engage/sendgrid/Profile.js} +1 -1
  27. package/dist/destinations/engage/sendgrid/Profile.js.map +1 -0
  28. package/dist/destinations/engage/sendgrid/destinationDefinition.d.ts +3 -0
  29. package/dist/destinations/engage/sendgrid/destinationDefinition.js +70 -0
  30. package/dist/destinations/engage/sendgrid/destinationDefinition.js.map +1 -0
  31. package/dist/destinations/engage/sendgrid/generated-types.d.ts +1 -0
  32. package/dist/destinations/engage/sendgrid/generated-types.js +14 -0
  33. package/dist/destinations/engage/sendgrid/generated-types.js.map +1 -0
  34. package/dist/destinations/engage/sendgrid/index.d.ts +2 -0
  35. package/dist/destinations/engage/sendgrid/index.js +5 -0
  36. package/dist/destinations/engage/sendgrid/index.js.map +1 -0
  37. package/dist/destinations/{engage-messaging-sendgrid/previewApiLookup/index.d.ts → engage/sendgrid/previewApiLookup/actionDefinition.d.ts} +1 -2
  38. package/dist/destinations/{engage-messaging-sendgrid/previewApiLookup/index.js → engage/sendgrid/previewApiLookup/actionDefinition.js} +4 -4
  39. package/dist/destinations/engage/sendgrid/previewApiLookup/actionDefinition.js.map +1 -0
  40. package/dist/destinations/{engage-messaging-sendgrid/utils → engage/sendgrid/previewApiLookup}/api-lookups.d.ts +2 -4
  41. package/dist/destinations/{engage-messaging-sendgrid/utils → engage/sendgrid/previewApiLookup}/api-lookups.js +1 -15
  42. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js.map +1 -0
  43. package/dist/destinations/engage/sendgrid/previewApiLookup/generated-types.d.ts +1 -0
  44. package/dist/destinations/engage/sendgrid/previewApiLookup/generated-types.js +14 -0
  45. package/dist/destinations/engage/sendgrid/previewApiLookup/generated-types.js.map +1 -0
  46. package/dist/destinations/engage/sendgrid/previewApiLookup/index.d.ts +2 -0
  47. package/dist/destinations/{engage-messaging-twilio/utils → engage/sendgrid/previewApiLookup}/index.js +2 -6
  48. package/dist/destinations/engage/sendgrid/previewApiLookup/index.js.map +1 -0
  49. package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.d.ts +42 -0
  50. package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js +318 -0
  51. package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js.map +1 -0
  52. package/dist/destinations/engage/sendgrid/sendEmail/UnlayerResponse.d.ts +12 -0
  53. package/dist/destinations/engage/sendgrid/sendEmail/UnlayerResponse.js +3 -0
  54. package/dist/destinations/engage/sendgrid/sendEmail/UnlayerResponse.js.map +1 -0
  55. package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.d.ts +4 -0
  56. package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.js +236 -0
  57. package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.js.map +1 -0
  58. package/dist/destinations/engage/sendgrid/sendEmail/generated-types.d.ts +1 -0
  59. package/dist/destinations/engage/sendgrid/sendEmail/generated-types.js +14 -0
  60. package/dist/destinations/engage/sendgrid/sendEmail/generated-types.js.map +1 -0
  61. package/dist/destinations/engage/sendgrid/sendEmail/index.d.ts +1 -0
  62. package/dist/destinations/engage/sendgrid/sendEmail/index.js +14 -0
  63. package/dist/destinations/engage/sendgrid/sendEmail/index.js.map +1 -0
  64. package/dist/destinations/engage/sendgrid/sendEmail/insertEmailPreviewText.d.ts +1 -0
  65. package/dist/destinations/engage/sendgrid/sendEmail/insertEmailPreviewText.js +23 -0
  66. package/dist/destinations/engage/sendgrid/sendEmail/insertEmailPreviewText.js.map +1 -0
  67. package/dist/destinations/engage/sendgrid/sendEmail/isRestrictedDomain.d.ts +1 -0
  68. package/dist/destinations/engage/sendgrid/sendEmail/isRestrictedDomain.js +14 -0
  69. package/dist/destinations/engage/sendgrid/sendEmail/isRestrictedDomain.js.map +1 -0
  70. package/dist/destinations/engage/twilio/destinationDefinition.d.ts +3 -0
  71. package/dist/destinations/engage/twilio/destinationDefinition.js +172 -0
  72. package/dist/destinations/engage/twilio/destinationDefinition.js.map +1 -0
  73. package/dist/destinations/engage/twilio/generated-types.d.ts +1 -0
  74. package/dist/destinations/engage/twilio/generated-types.js +14 -0
  75. package/dist/destinations/engage/twilio/generated-types.js.map +1 -0
  76. package/dist/destinations/engage/twilio/index.d.ts +2 -0
  77. package/dist/destinations/engage/twilio/index.js +5 -0
  78. package/dist/destinations/engage/twilio/index.js.map +1 -0
  79. package/dist/destinations/engage/twilio/sendMobilePush/PushSender.d.ts +27 -0
  80. package/dist/destinations/engage/twilio/sendMobilePush/PushSender.js +142 -0
  81. package/dist/destinations/engage/twilio/sendMobilePush/PushSender.js.map +1 -0
  82. package/dist/destinations/engage/twilio/sendMobilePush/actionDefinition.d.ts +4 -0
  83. package/dist/destinations/{engage-messaging-twilio/sendMobilePush/index.js → engage/twilio/sendMobilePush/actionDefinition.js} +5 -5
  84. package/dist/destinations/engage/twilio/sendMobilePush/actionDefinition.js.map +1 -0
  85. package/dist/destinations/engage/twilio/sendMobilePush/generated-types.d.ts +1 -0
  86. package/dist/destinations/engage/twilio/sendMobilePush/generated-types.js +14 -0
  87. package/dist/destinations/engage/twilio/sendMobilePush/generated-types.js.map +1 -0
  88. package/dist/destinations/engage/twilio/sendMobilePush/index.d.ts +1 -0
  89. package/dist/destinations/engage/twilio/sendMobilePush/index.js +14 -0
  90. package/dist/destinations/engage/twilio/sendMobilePush/index.js.map +1 -0
  91. package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.d.ts +9 -0
  92. package/dist/destinations/{engage-messaging-twilio/sendSms/sms-sender.js → engage/twilio/sendSms/SmsMessageSender.js} +5 -32
  93. package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.js.map +1 -0
  94. package/dist/destinations/engage/twilio/sendSms/actionDefinition.d.ts +4 -0
  95. package/dist/destinations/{engage-messaging-twilio/sendSms/index.js → engage/twilio/sendSms/actionDefinition.js} +5 -5
  96. package/dist/destinations/engage/twilio/sendSms/actionDefinition.js.map +1 -0
  97. package/dist/destinations/engage/twilio/sendSms/generated-types.d.ts +1 -0
  98. package/dist/destinations/engage/twilio/sendSms/generated-types.js +14 -0
  99. package/dist/destinations/engage/twilio/sendSms/generated-types.js.map +1 -0
  100. package/dist/destinations/engage/twilio/sendSms/index.d.ts +1 -0
  101. package/dist/destinations/engage/twilio/sendSms/index.js +14 -0
  102. package/dist/destinations/engage/twilio/sendSms/index.js.map +1 -0
  103. package/dist/destinations/engage/twilio/sendWhatsApp/WhatsAppMessageSender.d.ts +8 -0
  104. package/dist/destinations/{engage-messaging-twilio/sendWhatsApp/whatsapp-sender.js → engage/twilio/sendWhatsApp/WhatsAppMessageSender.js} +8 -4
  105. package/dist/destinations/engage/twilio/sendWhatsApp/WhatsAppMessageSender.js.map +1 -0
  106. package/dist/destinations/engage/twilio/sendWhatsApp/actionDefinition.d.ts +4 -0
  107. package/dist/destinations/{engage-messaging-twilio/sendWhatsApp/index.js → engage/twilio/sendWhatsApp/actionDefinition.js} +5 -5
  108. package/dist/destinations/engage/twilio/sendWhatsApp/actionDefinition.js.map +1 -0
  109. package/dist/destinations/engage/twilio/sendWhatsApp/generated-types.d.ts +1 -0
  110. package/dist/destinations/engage/twilio/sendWhatsApp/generated-types.js +14 -0
  111. package/dist/destinations/engage/twilio/sendWhatsApp/generated-types.js.map +1 -0
  112. package/dist/destinations/engage/twilio/sendWhatsApp/index.d.ts +1 -0
  113. package/dist/destinations/engage/twilio/sendWhatsApp/index.js +14 -0
  114. package/dist/destinations/engage/twilio/sendWhatsApp/index.js.map +1 -0
  115. package/dist/destinations/engage/twilio/utils/PhoneMessageSender.d.ts +16 -0
  116. package/dist/destinations/engage/twilio/utils/PhoneMessageSender.js +57 -0
  117. package/dist/destinations/engage/twilio/utils/PhoneMessageSender.js.map +1 -0
  118. package/dist/destinations/engage/twilio/utils/TwilioMessageSender.d.ts +16 -0
  119. package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js +109 -0
  120. package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js.map +1 -0
  121. package/dist/destinations/engage/twilio/utils/index.d.ts +2 -0
  122. package/dist/destinations/engage/twilio/utils/index.js +15 -0
  123. package/dist/destinations/engage/twilio/utils/index.js.map +1 -0
  124. package/dist/destinations/{engage-messaging-twilio → engage/twilio}/utils/types.d.ts +0 -16
  125. package/dist/destinations/engage/twilio/utils/types.js.map +1 -0
  126. package/dist/destinations/engage/utils/AggregateError.d.ts +14 -0
  127. package/dist/destinations/engage/utils/AggregateError.js +26 -0
  128. package/dist/destinations/engage/utils/AggregateError.js.map +1 -0
  129. package/dist/destinations/engage/utils/EngageActionPerformer.d.ts +41 -0
  130. package/dist/destinations/engage/utils/EngageActionPerformer.js +135 -0
  131. package/dist/destinations/engage/utils/EngageActionPerformer.js.map +1 -0
  132. package/dist/destinations/{engage-messaging-twilio/utils/MessageLogger.d.ts → engage/utils/EngageLogger.d.ts} +8 -5
  133. package/dist/destinations/engage/utils/EngageLogger.js +52 -0
  134. package/dist/destinations/engage/utils/EngageLogger.js.map +1 -0
  135. package/dist/destinations/engage/utils/EngageStats.d.ts +18 -0
  136. package/dist/destinations/{engage-messaging-twilio/utils/MessageStats.js → engage/utils/EngageStats.js} +28 -14
  137. package/dist/destinations/engage/utils/EngageStats.js.map +1 -0
  138. package/dist/destinations/{engage-messaging-twilio → engage}/utils/IntegrationErrorWrapper.d.ts +2 -2
  139. package/dist/destinations/{engage-messaging-twilio → engage}/utils/IntegrationErrorWrapper.js +1 -1
  140. package/dist/destinations/engage/utils/IntegrationErrorWrapper.js.map +1 -0
  141. package/dist/destinations/engage/utils/MessageSendPerformer.d.ts +63 -0
  142. package/dist/destinations/engage/utils/MessageSendPerformer.js +191 -0
  143. package/dist/destinations/engage/utils/MessageSendPerformer.js.map +1 -0
  144. package/dist/destinations/engage/utils/ResponseError.d.ts +20 -0
  145. package/dist/destinations/engage/utils/ResponseError.js +17 -0
  146. package/dist/destinations/engage/utils/ResponseError.js.map +1 -0
  147. package/dist/destinations/engage/utils/getProfileApiEndpoint.d.ts +2 -0
  148. package/dist/destinations/engage/utils/getProfileApiEndpoint.js +10 -0
  149. package/dist/destinations/engage/utils/getProfileApiEndpoint.js.map +1 -0
  150. package/dist/destinations/engage/utils/index.d.ts +9 -0
  151. package/dist/destinations/engage/utils/index.js +22 -0
  152. package/dist/destinations/engage/utils/index.js.map +1 -0
  153. package/dist/destinations/engage/utils/isDestinationActionService.js.map +1 -0
  154. package/dist/destinations/engage/utils/isRetryableError.d.ts +2 -0
  155. package/dist/destinations/engage/utils/isRetryableError.js +33 -0
  156. package/dist/destinations/engage/utils/isRetryableError.js.map +1 -0
  157. package/dist/destinations/engage/utils/operationTracking/GenericMethodDecorator.js.map +1 -0
  158. package/dist/destinations/engage/utils/operationTracking/OperationDecorator.js.map +1 -0
  159. package/dist/destinations/engage/utils/operationTracking/OperationDuration.js.map +1 -0
  160. package/dist/destinations/engage/utils/operationTracking/OperationErrorHandler.js.map +1 -0
  161. package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationFinallyHooks.d.ts +4 -0
  162. package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationFinallyHooks.js +2 -0
  163. package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.js.map +1 -0
  164. package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationLogger.d.ts +2 -1
  165. package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationLogger.js +22 -25
  166. package/dist/destinations/engage/utils/operationTracking/OperationLogger.js.map +1 -0
  167. package/dist/destinations/engage/utils/operationTracking/OperationStats.js.map +1 -0
  168. package/dist/destinations/engage/utils/operationTracking/OperationTracker.test.js.map +1 -0
  169. package/dist/destinations/engage/utils/operationTracking/OperationTree.js.map +1 -0
  170. package/dist/destinations/engage/utils/operationTracking/TrackedError.js.map +1 -0
  171. package/dist/destinations/engage/utils/operationTracking/index.js.map +1 -0
  172. package/dist/destinations/engage/utils/operationTracking/wrapTryCatchFinallyPromisable.js.map +1 -0
  173. package/dist/destinations/engage/utils/testUtils.d.ts +6 -0
  174. package/dist/destinations/engage/utils/testUtils.js +26 -0
  175. package/dist/destinations/engage/utils/testUtils.js.map +1 -0
  176. package/dist/destinations/engage/utils/track.d.ts +52 -0
  177. package/dist/destinations/engage/utils/track.js +9 -0
  178. package/dist/destinations/engage/utils/track.js.map +1 -0
  179. package/dist/destinations/engage-messaging-sendgrid/index.d.ts +2 -3
  180. package/dist/destinations/engage-messaging-sendgrid/index.js +13 -67
  181. package/dist/destinations/engage-messaging-sendgrid/index.js.map +1 -1
  182. package/dist/destinations/engage-messaging-sendgrid/previewApiLookup.types.js +3 -0
  183. package/dist/destinations/engage-messaging-sendgrid/previewApiLookup.types.js.map +1 -0
  184. package/dist/destinations/engage-messaging-sendgrid/sendEmail.types.js +3 -0
  185. package/dist/destinations/engage-messaging-sendgrid/sendEmail.types.js.map +1 -0
  186. package/dist/destinations/engage-messaging-twilio/index.d.ts +2 -3
  187. package/dist/destinations/engage-messaging-twilio/index.js +13 -169
  188. package/dist/destinations/engage-messaging-twilio/index.js.map +1 -1
  189. package/dist/destinations/engage-messaging-twilio/sendMobilePush.types.js +3 -0
  190. package/dist/destinations/engage-messaging-twilio/sendMobilePush.types.js.map +1 -0
  191. package/dist/destinations/engage-messaging-twilio/sendSms.types.js +3 -0
  192. package/dist/destinations/engage-messaging-twilio/sendSms.types.js.map +1 -0
  193. package/dist/destinations/engage-messaging-twilio/sendWhatsApp.types.js +3 -0
  194. package/dist/destinations/engage-messaging-twilio/sendWhatsApp.types.js.map +1 -0
  195. package/dist/destinations/hilo/generated-types.d.ts +3 -0
  196. package/dist/destinations/hilo/generated-types.js.map +1 -0
  197. package/dist/destinations/hilo/group/generated-types.d.ts +9 -0
  198. package/dist/destinations/hilo/group/generated-types.js +3 -0
  199. package/dist/destinations/hilo/group/generated-types.js.map +1 -0
  200. package/dist/destinations/{engage-messaging-sendgrid/sendEmail → hilo/group}/index.d.ts +1 -1
  201. package/dist/destinations/hilo/group/index.js +59 -0
  202. package/dist/destinations/hilo/group/index.js.map +1 -0
  203. package/dist/destinations/hilo/identify/generated-types.d.ts +8 -0
  204. package/dist/destinations/hilo/identify/generated-types.js +3 -0
  205. package/dist/destinations/hilo/identify/generated-types.js.map +1 -0
  206. package/dist/destinations/{engage-messaging-twilio/sendMobilePush → hilo/identify}/index.d.ts +1 -1
  207. package/dist/destinations/hilo/identify/index.js +51 -0
  208. package/dist/destinations/hilo/identify/index.js.map +1 -0
  209. package/dist/destinations/hilo/index.d.ts +4 -0
  210. package/dist/destinations/hilo/index.js +103 -0
  211. package/dist/destinations/hilo/index.js.map +1 -0
  212. package/dist/destinations/hilo/page/generated-types.d.ts +9 -0
  213. package/dist/destinations/hilo/page/generated-types.js +3 -0
  214. package/dist/destinations/hilo/page/generated-types.js.map +1 -0
  215. package/dist/destinations/hilo/page/index.d.ts +5 -0
  216. package/dist/destinations/hilo/page/index.js +59 -0
  217. package/dist/destinations/hilo/page/index.js.map +1 -0
  218. package/dist/destinations/hilo/screen/generated-types.d.ts +9 -0
  219. package/dist/destinations/hilo/screen/generated-types.js +3 -0
  220. package/dist/destinations/hilo/screen/generated-types.js.map +1 -0
  221. package/dist/destinations/hilo/screen/index.d.ts +5 -0
  222. package/dist/destinations/hilo/screen/index.js +59 -0
  223. package/dist/destinations/hilo/screen/index.js.map +1 -0
  224. package/dist/destinations/hilo/track/generated-types.d.ts +9 -0
  225. package/dist/destinations/hilo/track/generated-types.js +3 -0
  226. package/dist/destinations/hilo/track/generated-types.js.map +1 -0
  227. package/dist/destinations/hilo/track/index.d.ts +5 -0
  228. package/dist/destinations/hilo/track/index.js +59 -0
  229. package/dist/destinations/hilo/track/index.js.map +1 -0
  230. package/dist/destinations/hubspot/api/index.d.ts +11 -5
  231. package/dist/destinations/hubspot/api/index.js +59 -24
  232. package/dist/destinations/hubspot/api/index.js.map +1 -1
  233. package/dist/destinations/hubspot/errors.d.ts +2 -0
  234. package/dist/destinations/hubspot/errors.js +3 -1
  235. package/dist/destinations/hubspot/errors.js.map +1 -1
  236. package/dist/destinations/hubspot/upsertCompany/index.js +1 -1
  237. package/dist/destinations/hubspot/upsertCompany/index.js.map +1 -1
  238. package/dist/destinations/hubspot/upsertCustomObjectRecord/generated-types.d.ts +5 -0
  239. package/dist/destinations/hubspot/upsertCustomObjectRecord/index.js +113 -22
  240. package/dist/destinations/hubspot/upsertCustomObjectRecord/index.js.map +1 -1
  241. package/dist/destinations/hubspot/utils.d.ts +23 -0
  242. package/dist/destinations/hubspot/utils.js +7 -1
  243. package/dist/destinations/hubspot/utils.js.map +1 -1
  244. package/dist/destinations/index.js +5 -2
  245. package/dist/destinations/index.js.map +1 -1
  246. package/dist/destinations/iterable/generated-types.d.ts +1 -0
  247. package/dist/destinations/iterable/index.js +20 -1
  248. package/dist/destinations/iterable/index.js.map +1 -1
  249. package/dist/destinations/iterable/index.test.d.ts +1 -0
  250. package/dist/destinations/iterable/index.test.js +46 -0
  251. package/dist/destinations/iterable/index.test.js.map +1 -0
  252. package/dist/destinations/iterable/shared-fields.d.ts +1 -0
  253. package/dist/destinations/iterable/trackEvent/index.js +3 -2
  254. package/dist/destinations/iterable/trackEvent/index.js.map +1 -1
  255. package/dist/destinations/iterable/trackPurchase/index.js +3 -2
  256. package/dist/destinations/iterable/trackPurchase/index.js.map +1 -1
  257. package/dist/destinations/iterable/updateCart/index.js +3 -2
  258. package/dist/destinations/iterable/updateCart/index.js.map +1 -1
  259. package/dist/destinations/iterable/updateUser/index.js +3 -2
  260. package/dist/destinations/iterable/updateUser/index.js.map +1 -1
  261. package/dist/destinations/iterable/utils.d.ts +9 -1
  262. package/dist/destinations/iterable/utils.js +18 -1
  263. package/dist/destinations/iterable/utils.js.map +1 -1
  264. package/dist/destinations/pinterest-conversions/reportConversionEvent/index.js +1 -1
  265. package/dist/destinations/pinterest-conversions/reportConversionEvent/index.js.map +1 -1
  266. package/dist/destinations/rehook/generated-types.d.ts +4 -0
  267. package/dist/destinations/rehook/generated-types.js +3 -0
  268. package/dist/destinations/rehook/generated-types.js.map +1 -0
  269. package/dist/destinations/rehook/identifyUser/generated-types.d.ts +7 -0
  270. package/dist/destinations/rehook/identifyUser/generated-types.js +3 -0
  271. package/dist/destinations/rehook/identifyUser/generated-types.js.map +1 -0
  272. package/dist/destinations/rehook/identifyUser/index.d.ts +5 -0
  273. package/dist/destinations/rehook/identifyUser/index.js +44 -0
  274. package/dist/destinations/rehook/identifyUser/index.js.map +1 -0
  275. package/dist/destinations/rehook/index.d.ts +4 -0
  276. package/dist/destinations/rehook/index.js +47 -0
  277. package/dist/destinations/rehook/index.js.map +1 -0
  278. package/dist/destinations/rehook/trackEvent/generated-types.d.ts +7 -0
  279. package/dist/destinations/rehook/trackEvent/generated-types.js +3 -0
  280. package/dist/destinations/rehook/trackEvent/generated-types.js.map +1 -0
  281. package/dist/destinations/rehook/trackEvent/index.d.ts +5 -0
  282. package/dist/destinations/rehook/trackEvent/index.js +48 -0
  283. package/dist/destinations/rehook/trackEvent/index.js.map +1 -0
  284. package/dist/destinations/the-trade-desk-crm/functions.js +4 -0
  285. package/dist/destinations/the-trade-desk-crm/functions.js.map +1 -1
  286. package/dist/destinations/the-trade-desk-crm/properties.d.ts +1 -0
  287. package/dist/destinations/the-trade-desk-crm/properties.js +8 -1
  288. package/dist/destinations/the-trade-desk-crm/properties.js.map +1 -1
  289. package/dist/destinations/the-trade-desk-crm/syncAudience/generated-types.d.ts +1 -0
  290. package/dist/destinations/the-trade-desk-crm/syncAudience/index.js +2 -1
  291. package/dist/destinations/the-trade-desk-crm/syncAudience/index.js.map +1 -1
  292. package/package.json +4 -4
  293. package/dist/destinations/engage-messaging-sendgrid/previewApiLookup/generated-types.js.map +0 -1
  294. package/dist/destinations/engage-messaging-sendgrid/previewApiLookup/index.js.map +0 -1
  295. package/dist/destinations/engage-messaging-sendgrid/sendEmail/generated-types.js.map +0 -1
  296. package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js +0 -578
  297. package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js.map +0 -1
  298. package/dist/destinations/engage-messaging-sendgrid/utils/api-lookups.js.map +0 -1
  299. package/dist/destinations/engage-messaging-sendgrid/utils/types.js.map +0 -1
  300. package/dist/destinations/engage-messaging-twilio/operationTracking/GenericMethodDecorator.js.map +0 -1
  301. package/dist/destinations/engage-messaging-twilio/operationTracking/OperationDecorator.js.map +0 -1
  302. package/dist/destinations/engage-messaging-twilio/operationTracking/OperationDuration.js.map +0 -1
  303. package/dist/destinations/engage-messaging-twilio/operationTracking/OperationErrorHandler.js.map +0 -1
  304. package/dist/destinations/engage-messaging-twilio/operationTracking/OperationFinallyHooks.js.map +0 -1
  305. package/dist/destinations/engage-messaging-twilio/operationTracking/OperationLogger.js.map +0 -1
  306. package/dist/destinations/engage-messaging-twilio/operationTracking/OperationStats.js.map +0 -1
  307. package/dist/destinations/engage-messaging-twilio/operationTracking/OperationTracker.test.js.map +0 -1
  308. package/dist/destinations/engage-messaging-twilio/operationTracking/OperationTree.js.map +0 -1
  309. package/dist/destinations/engage-messaging-twilio/operationTracking/TrackedError.js.map +0 -1
  310. package/dist/destinations/engage-messaging-twilio/operationTracking/index.js.map +0 -1
  311. package/dist/destinations/engage-messaging-twilio/operationTracking/wrapTryCatchFinallyPromisable.js.map +0 -1
  312. package/dist/destinations/engage-messaging-twilio/sendMobilePush/generated-types.js.map +0 -1
  313. package/dist/destinations/engage-messaging-twilio/sendMobilePush/index.js.map +0 -1
  314. package/dist/destinations/engage-messaging-twilio/sendMobilePush/push-sender.d.ts +0 -17
  315. package/dist/destinations/engage-messaging-twilio/sendMobilePush/push-sender.js +0 -182
  316. package/dist/destinations/engage-messaging-twilio/sendMobilePush/push-sender.js.map +0 -1
  317. package/dist/destinations/engage-messaging-twilio/sendSms/generated-types.js.map +0 -1
  318. package/dist/destinations/engage-messaging-twilio/sendSms/index.js.map +0 -1
  319. package/dist/destinations/engage-messaging-twilio/sendSms/sms-sender.d.ts +0 -9
  320. package/dist/destinations/engage-messaging-twilio/sendSms/sms-sender.js.map +0 -1
  321. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/generated-types.js.map +0 -1
  322. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/index.js.map +0 -1
  323. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/whatsapp-sender.d.ts +0 -7
  324. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/whatsapp-sender.js.map +0 -1
  325. package/dist/destinations/engage-messaging-twilio/utils/IntegrationErrorWrapper.js.map +0 -1
  326. package/dist/destinations/engage-messaging-twilio/utils/MessageLogger.js +0 -36
  327. package/dist/destinations/engage-messaging-twilio/utils/MessageLogger.js.map +0 -1
  328. package/dist/destinations/engage-messaging-twilio/utils/MessageStats.d.ts +0 -14
  329. package/dist/destinations/engage-messaging-twilio/utils/MessageStats.js.map +0 -1
  330. package/dist/destinations/engage-messaging-twilio/utils/index.d.ts +0 -6
  331. package/dist/destinations/engage-messaging-twilio/utils/index.js.map +0 -1
  332. package/dist/destinations/engage-messaging-twilio/utils/isDestinationActionService.js.map +0 -1
  333. package/dist/destinations/engage-messaging-twilio/utils/message-sender.d.ts +0 -43
  334. package/dist/destinations/engage-messaging-twilio/utils/message-sender.js +0 -203
  335. package/dist/destinations/engage-messaging-twilio/utils/message-sender.js.map +0 -1
  336. package/dist/destinations/engage-messaging-twilio/utils/phone-message.d.ts +0 -19
  337. package/dist/destinations/engage-messaging-twilio/utils/phone-message.js +0 -97
  338. package/dist/destinations/engage-messaging-twilio/utils/phone-message.js.map +0 -1
  339. package/dist/destinations/engage-messaging-twilio/utils/track.d.ts +0 -45
  340. package/dist/destinations/engage-messaging-twilio/utils/track.js +0 -9
  341. package/dist/destinations/engage-messaging-twilio/utils/track.js.map +0 -1
  342. package/dist/destinations/engage-messaging-twilio/utils/types.js.map +0 -1
  343. /package/dist/destinations/{engage-messaging-sendgrid/previewApiLookup → attio/assertRecord}/generated-types.js +0 -0
  344. /package/dist/destinations/{engage-messaging-sendgrid/sendEmail → attio}/generated-types.js +0 -0
  345. /package/dist/destinations/{engage-messaging-twilio/sendMobilePush → attio/groupWorkspace}/generated-types.js +0 -0
  346. /package/dist/destinations/{engage-messaging-twilio/sendSms → attio/groupWorkspace}/index.d.ts +0 -0
  347. /package/dist/destinations/{engage-messaging-twilio/sendSms → attio/identifyUser}/generated-types.js +0 -0
  348. /package/dist/destinations/{engage-messaging-twilio/sendWhatsApp → attio/identifyUser}/index.d.ts +0 -0
  349. /package/dist/destinations/{engage-messaging-sendgrid/utils/types.d.ts → engage/sendgrid/Profile.d.ts} +0 -0
  350. /package/dist/destinations/{engage-messaging-sendgrid → engage/twilio}/utils/types.js +0 -0
  351. /package/dist/destinations/{engage-messaging-twilio → engage}/utils/isDestinationActionService.d.ts +0 -0
  352. /package/dist/destinations/{engage-messaging-twilio → engage}/utils/isDestinationActionService.js +0 -0
  353. /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/GenericMethodDecorator.d.ts +0 -0
  354. /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/GenericMethodDecorator.js +0 -0
  355. /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationDecorator.d.ts +0 -0
  356. /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationDecorator.js +0 -0
  357. /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationDuration.d.ts +0 -0
  358. /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationDuration.js +0 -0
  359. /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationErrorHandler.d.ts +0 -0
  360. /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationErrorHandler.js +0 -0
  361. /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationStats.d.ts +0 -0
  362. /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationStats.js +0 -0
  363. /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationTracker.test.d.ts +0 -0
  364. /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationTracker.test.js +0 -0
  365. /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationTree.d.ts +0 -0
  366. /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/OperationTree.js +0 -0
  367. /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/TrackedError.d.ts +0 -0
  368. /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/TrackedError.js +0 -0
  369. /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/index.d.ts +0 -0
  370. /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/index.js +0 -0
  371. /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/wrapTryCatchFinallyPromisable.d.ts +0 -0
  372. /package/dist/destinations/{engage-messaging-twilio → engage/utils}/operationTracking/wrapTryCatchFinallyPromisable.js +0 -0
  373. /package/dist/destinations/engage-messaging-sendgrid/{previewApiLookup/generated-types.d.ts → previewApiLookup.types.d.ts} +0 -0
  374. /package/dist/destinations/engage-messaging-sendgrid/{sendEmail/generated-types.d.ts → sendEmail.types.d.ts} +0 -0
  375. /package/dist/destinations/engage-messaging-twilio/{sendMobilePush/generated-types.d.ts → sendMobilePush.types.d.ts} +0 -0
  376. /package/dist/destinations/engage-messaging-twilio/{sendSms/generated-types.d.ts → sendSms.types.d.ts} +0 -0
  377. /package/dist/destinations/engage-messaging-twilio/{sendWhatsApp/generated-types.d.ts → sendWhatsApp.types.d.ts} +0 -0
  378. /package/dist/destinations/{engage-messaging-twilio/sendWhatsApp → hilo}/generated-types.js +0 -0
@@ -0,0 +1,236 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.actionDefinition = void 0;
4
+ const previewApiLookup_1 = require("../previewApiLookup");
5
+ const SendEmailPerformer_1 = require("./SendEmailPerformer");
6
+ exports.actionDefinition = {
7
+ title: 'Send Email',
8
+ description: 'Sends Email to a user powered by SendGrid',
9
+ defaultSubscription: 'type = "track" and event = "Audience Entered"',
10
+ fields: {
11
+ send: {
12
+ label: 'Send Message',
13
+ description: 'Whether or not the message should actually get sent.',
14
+ type: 'boolean',
15
+ required: false,
16
+ default: false
17
+ },
18
+ traitEnrichment: {
19
+ label: 'Trait Enrich',
20
+ description: 'Whether or not trait enrich from event (i.e without profile api call)',
21
+ type: 'boolean',
22
+ required: false,
23
+ default: true
24
+ },
25
+ userId: {
26
+ label: 'User ID',
27
+ description: 'User ID in Segment',
28
+ type: 'string',
29
+ required: false,
30
+ default: { '@path': '$.userId' }
31
+ },
32
+ toEmail: {
33
+ label: 'Test Email',
34
+ description: 'Email to send to when testing',
35
+ type: 'string'
36
+ },
37
+ fromDomain: {
38
+ label: 'From Domain',
39
+ description: 'Verified domain in Sendgrid',
40
+ type: 'string',
41
+ allowNull: true
42
+ },
43
+ fromEmail: {
44
+ label: 'From Email',
45
+ description: 'From Email',
46
+ type: 'string',
47
+ required: true
48
+ },
49
+ fromName: {
50
+ label: 'From Name',
51
+ description: 'From Name displayed to end user email',
52
+ type: 'string',
53
+ required: true
54
+ },
55
+ replyToEqualsFrom: {
56
+ label: 'Reply To Equals From',
57
+ description: 'Whether "reply to" settings are the same as "from"',
58
+ type: 'boolean'
59
+ },
60
+ replyToEmail: {
61
+ label: 'Reply To Email',
62
+ description: 'The Email used by user to Reply To',
63
+ type: 'string',
64
+ required: true
65
+ },
66
+ replyToName: {
67
+ label: 'Reply To Name',
68
+ description: 'The Name used by user to Reply To',
69
+ type: 'string',
70
+ required: true
71
+ },
72
+ bcc: {
73
+ label: 'BCC',
74
+ description: 'BCC list of emails',
75
+ type: 'string',
76
+ required: true
77
+ },
78
+ previewText: {
79
+ label: 'Preview Text',
80
+ description: 'Preview Text',
81
+ type: 'string'
82
+ },
83
+ subject: {
84
+ label: 'Subject',
85
+ description: 'Subject for the email to be sent',
86
+ type: 'string',
87
+ required: true
88
+ },
89
+ body: {
90
+ label: 'Body',
91
+ description: 'The message body',
92
+ type: 'text'
93
+ },
94
+ bodyUrl: {
95
+ label: 'Body URL',
96
+ description: 'URL to the message body',
97
+ type: 'text'
98
+ },
99
+ bodyType: {
100
+ label: 'Body Type',
101
+ description: 'The type of body which is used generally html | design',
102
+ type: 'string',
103
+ required: true
104
+ },
105
+ bodyHtml: {
106
+ label: 'Body Html',
107
+ description: 'The HTML content of the body',
108
+ type: 'string'
109
+ },
110
+ groupId: {
111
+ label: 'Group ID',
112
+ description: 'Subscription group ID',
113
+ type: 'string'
114
+ },
115
+ byPassSubscription: {
116
+ label: 'By Pass Subscription',
117
+ description: 'Send email without subscription check',
118
+ type: 'boolean',
119
+ default: false
120
+ },
121
+ apiLookups: {
122
+ label: 'API Lookups',
123
+ description: 'Any API lookup configs that are needed to send the template',
124
+ type: 'object',
125
+ multiple: true,
126
+ properties: previewApiLookup_1.apiLookupActionFields
127
+ },
128
+ externalIds: {
129
+ label: 'External IDs',
130
+ description: 'An array of user profile identity information.',
131
+ type: 'object',
132
+ multiple: true,
133
+ properties: {
134
+ id: {
135
+ label: 'ID',
136
+ description: 'A unique identifier for the collection.',
137
+ type: 'string'
138
+ },
139
+ type: {
140
+ label: 'type',
141
+ description: 'The external ID contact type.',
142
+ type: 'string'
143
+ },
144
+ subscriptionStatus: {
145
+ label: 'subscriptionStatus',
146
+ description: 'The subscription status for the identity.',
147
+ type: 'string'
148
+ },
149
+ unsubscribeLink: {
150
+ label: 'unsubscribeLink',
151
+ description: 'Unsubscribe link for the end user',
152
+ type: 'string'
153
+ },
154
+ preferencesLink: {
155
+ label: 'preferencesLink',
156
+ description: 'Preferences link for the end user',
157
+ type: 'string'
158
+ },
159
+ groups: {
160
+ label: 'Subscription Groups',
161
+ description: 'Subscription groups and their statuses for this id.',
162
+ type: 'object',
163
+ multiple: true,
164
+ properties: {
165
+ id: {
166
+ label: 'Subscription group id',
167
+ type: 'string'
168
+ },
169
+ isSubscribed: {
170
+ label: 'status',
171
+ description: 'Group subscription status true is subscribed, false is unsubscribed or did-not-subscribe',
172
+ type: 'boolean'
173
+ },
174
+ groupUnsubscribeLink: {
175
+ label: 'groupUnsubscribeLink',
176
+ description: 'Group unsubscribe link for the end user',
177
+ type: 'string'
178
+ }
179
+ }
180
+ }
181
+ },
182
+ default: {
183
+ '@arrayPath': [
184
+ '$.external_ids',
185
+ {
186
+ id: {
187
+ '@path': '$.id'
188
+ },
189
+ type: {
190
+ '@path': '$.type'
191
+ },
192
+ subscriptionStatus: {
193
+ '@path': '$.isSubscribed'
194
+ },
195
+ unsubscribeLink: {
196
+ '@path': '$.unsubscribeLink'
197
+ },
198
+ preferencesLink: {
199
+ '@path': '$.preferencesLink'
200
+ },
201
+ groups: {
202
+ '@path': '$.groups'
203
+ }
204
+ }
205
+ ]
206
+ }
207
+ },
208
+ customArgs: {
209
+ label: 'Custom Args',
210
+ description: 'Additional custom args that we be passed back opaquely on webhook events',
211
+ type: 'object',
212
+ required: false
213
+ },
214
+ traits: {
215
+ label: 'Traits',
216
+ description: "A user profile's traits",
217
+ type: 'object',
218
+ required: false,
219
+ default: { '@path': '$.properties' }
220
+ },
221
+ eventOccurredTS: {
222
+ label: 'Event Timestamp',
223
+ description: 'Time of when the actual event happened.',
224
+ type: 'string',
225
+ required: false,
226
+ default: {
227
+ '@path': '$.timestamp'
228
+ }
229
+ }
230
+ },
231
+ perform: async (request, executeInput) => {
232
+ const performer = new SendEmailPerformer_1.SendEmailPerformer(request, executeInput);
233
+ return performer.perform();
234
+ }
235
+ };
236
+ //# sourceMappingURL=actionDefinition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actionDefinition.js","sourceRoot":"","sources":["../../../../../src/destinations/engage/sendgrid/sendEmail/actionDefinition.ts"],"names":[],"mappings":";;;AAGA,0DAA2D;AAC3D,6DAAyD;AAE5C,QAAA,gBAAgB,GAAwC;IACnE,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,2CAA2C;IACxD,mBAAmB,EAAE,+CAA+C;IACpE,MAAM,EAAE;QACN,IAAI,EAAE;YACJ,KAAK,EAAE,cAAc;YACrB,WAAW,EAAE,sDAAsD;YACnE,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,KAAK;SACf;QACD,eAAe,EAAE;YACf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ACF;iBACF;aACF;SACF;QACD,UAAU,EAAE;YACV,KAAK,EAAE,aAAa;YACpB,WAAW,EAAE,0EAA0E;YACvF,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;SAChB;QACD,MAAM,EAAE;YACN,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,yBAAyB;YACtC,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE;SACrC;QACD,eAAe,EAAE;YACf,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,yCAAyC;YACtD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE,aAAa;aACvB;SACF;KACF;IACD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE;QACvC,MAAM,SAAS,GAAG,IAAI,uCAAkB,CAAC,OAAO,EAAE,YAAY,CAAC,CAAA;QAC/D,OAAO,SAAS,CAAC,OAAO,EAAE,CAAA;IAC5B,CAAC;CACF,CAAA"}
@@ -0,0 +1 @@
1
+ export * from '../../../engage-messaging-sendgrid/sendEmail.types';
@@ -0,0 +1,14 @@
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("../../../engage-messaging-sendgrid/sendEmail.types"), exports);
14
+ //# sourceMappingURL=generated-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../../src/destinations/engage/sendgrid/sendEmail/generated-types.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qFAAkE"}
@@ -0,0 +1 @@
1
+ export * from './actionDefinition';
@@ -0,0 +1,14 @@
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("./actionDefinition"), exports);
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/destinations/engage/sendgrid/sendEmail/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkC"}
@@ -0,0 +1 @@
1
+ export declare function insertEmailPreviewText(html: string, previewText: string): string;
@@ -0,0 +1,23 @@
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
+ exports.insertEmailPreviewText = void 0;
7
+ const cheerio_1 = __importDefault(require("cheerio"));
8
+ const escape_goat_1 = require("escape-goat");
9
+ function insertEmailPreviewText(html, previewText) {
10
+ const $ = cheerio_1.default.load(html);
11
+ $('body').prepend(`
12
+ <div style='display: none; max-height: 0px; overflow: hidden;'>
13
+ ${escape_goat_1.htmlEscape(previewText)}
14
+ </div>
15
+
16
+ <div style='display: none; max-height: 0px; overflow: hidden;'>
17
+ ${'&nbsp;&zwnj;'.repeat(13)}&nbsp;
18
+ </div>
19
+ `);
20
+ return $.html();
21
+ }
22
+ exports.insertEmailPreviewText = insertEmailPreviewText;
23
+ //# sourceMappingURL=insertEmailPreviewText.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insertEmailPreviewText.js","sourceRoot":"","sources":["../../../../../src/destinations/engage/sendgrid/sendEmail/insertEmailPreviewText.ts"],"names":[],"mappings":";;;;;;AAAA,sDAA6B;AAC7B,6CAAwC;AAExC,SAAgB,sBAAsB,CAAC,IAAY,EAAE,WAAmB;IACtE,MAAM,CAAC,GAAG,iBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAG5B,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC;;QAEZ,wBAAU,CAAC,WAAW,CAAC;;;;QAIvB,cAAc,CAAC,MAAM,CAAC,EAAE,CAAC;;GAE9B,CAAC,CAAA;IAEF,OAAO,CAAC,CAAC,IAAI,EAAE,CAAA;AACjB,CAAC;AAfD,wDAeC"}
@@ -0,0 +1 @@
1
+ export declare const isRestrictedDomain: (email: string) => boolean;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isRestrictedDomain = void 0;
4
+ const isRestrictedDomain = (email) => {
5
+ const restricted = ['gmailx.com', 'yahoox.com', 'aolx.com', 'hotmailx.com'];
6
+ const matches = /^.+@(.+)$/.exec(email.toLowerCase());
7
+ if (!matches) {
8
+ return false;
9
+ }
10
+ const domain = matches[1];
11
+ return restricted.includes(domain);
12
+ };
13
+ exports.isRestrictedDomain = isRestrictedDomain;
14
+ //# sourceMappingURL=isRestrictedDomain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isRestrictedDomain.js","sourceRoot":"","sources":["../../../../../src/destinations/engage/sendgrid/sendEmail/isRestrictedDomain.ts"],"names":[],"mappings":";;;AAAO,MAAM,kBAAkB,GAAG,CAAC,KAAa,EAAW,EAAE;IAC3D,MAAM,UAAU,GAAG,CAAC,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,cAAc,CAAC,CAAA;IAC3E,MAAM,OAAO,GAAG,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CAAA;IAErD,IAAI,CAAC,OAAO,EAAE;QACZ,OAAO,KAAK,CAAA;KACb;IAED,MAAM,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;IACzB,OAAO,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;AACpC,CAAC,CAAA;AAVY,QAAA,kBAAkB,sBAU9B"}
@@ -0,0 +1,3 @@
1
+ import type { DestinationDefinition } from '@segment/actions-core';
2
+ import type { Settings } from './generated-types';
3
+ export declare const destinationDefinition: DestinationDefinition<Settings>;
@@ -0,0 +1,172 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.destinationDefinition = void 0;
4
+ const sendSms_1 = require("./sendSms");
5
+ const sendWhatsApp_1 = require("./sendWhatsApp");
6
+ const sendMobilePush_1 = require("./sendMobilePush");
7
+ const getRange = (val) => {
8
+ return Array(val)
9
+ .fill(1)
10
+ .map((x, y) => ({ value: x + y, label: `${x + y}` }));
11
+ };
12
+ const ConnectionOverridesProperties = {
13
+ ct: {
14
+ label: 'Connection timeout',
15
+ description: 'The timeout in milliseconds Twilio will wait to establish its TCP connection to your webserver',
16
+ type: 'number',
17
+ default: 5000,
18
+ choices: getRange(10000)
19
+ },
20
+ rt: {
21
+ label: 'Read timeout',
22
+ description: 'The amount of time in milliseconds after sending your webhook an HTTP request that Twilio will wait for the initial HTTP response packet',
23
+ type: 'number',
24
+ default: 15000,
25
+ choices: getRange(15000)
26
+ },
27
+ tt: {
28
+ label: 'Total timeout',
29
+ description: 'The total time allowed for all timeouts including retries',
30
+ type: 'number',
31
+ default: 15000,
32
+ choices: getRange(15000)
33
+ },
34
+ rc: {
35
+ label: 'Retry count',
36
+ description: 'The number of retry attempts Twilio will make if its connection to your webhook fails',
37
+ type: 'number',
38
+ default: 1,
39
+ choices: getRange(5)
40
+ },
41
+ rp: {
42
+ label: 'Retry policy',
43
+ description: 'The type of failure to retry on',
44
+ type: 'string',
45
+ default: 'ct',
46
+ choices: ['ct', '4xx', '5xx', 'rt', 'all']
47
+ },
48
+ sni: {
49
+ label: 'SNI',
50
+ description: 'The type of failure to retry on',
51
+ type: 'string',
52
+ default: 'unset',
53
+ choices: ['y', 'n', 'unser']
54
+ },
55
+ e: {
56
+ label: 'Edge location',
57
+ description: 'The Twilio edge location where webhooks egress. This can be a list and we rotate through the list as retries happen.',
58
+ type: 'string',
59
+ default: 'ashburn',
60
+ choices: [
61
+ 'ashburn',
62
+ 'ashburn-ix',
63
+ 'dublin',
64
+ 'frankfurt',
65
+ 'frankfurt-ix',
66
+ 'sao-paulo',
67
+ 'singapore',
68
+ 'sydney',
69
+ 'tokyo',
70
+ 'umatilla',
71
+ 'london-ix',
72
+ 'san-jose-ix',
73
+ 'singapore-ix'
74
+ ]
75
+ }
76
+ };
77
+ exports.destinationDefinition = {
78
+ name: 'Engage Messaging Twilio',
79
+ slug: 'actions-personas-messaging-twilio',
80
+ mode: 'cloud',
81
+ description: 'This is an Engage specific action to send an SMS and Whatsapp messages using Twilio API',
82
+ authentication: {
83
+ scheme: 'custom',
84
+ fields: {
85
+ twilioAccountSID: {
86
+ label: 'Twilio Account SID',
87
+ description: 'Twilio Account SID',
88
+ type: 'string',
89
+ required: true
90
+ },
91
+ twilioApiKeySID: {
92
+ label: 'Twilio API Key SID',
93
+ description: 'Twilio API Key SID',
94
+ type: 'string',
95
+ required: true
96
+ },
97
+ twilioApiKeySecret: {
98
+ label: 'Twilio API Key Secret',
99
+ description: 'Twilio API Key Secret',
100
+ type: 'password',
101
+ required: true
102
+ },
103
+ profileApiEnvironment: {
104
+ label: 'Profile API Environment',
105
+ description: 'Profile API Environment',
106
+ type: 'string',
107
+ required: true
108
+ },
109
+ profileApiAccessToken: {
110
+ label: 'Profile API Access Token',
111
+ description: 'Profile API Access Token',
112
+ type: 'password',
113
+ required: true
114
+ },
115
+ spaceId: {
116
+ label: 'Space ID',
117
+ description: 'Space ID',
118
+ type: 'string',
119
+ required: true
120
+ },
121
+ sourceId: {
122
+ label: 'Source ID',
123
+ description: 'Source ID',
124
+ type: 'string',
125
+ required: true
126
+ },
127
+ webhookUrl: {
128
+ label: 'Webhook URL',
129
+ description: 'Webhook URL that will receive all events for the sent message',
130
+ type: 'string',
131
+ format: 'uri',
132
+ required: false
133
+ },
134
+ twilioHostname: {
135
+ label: 'Twilio host name',
136
+ description: 'Overrides the default Twilio host name used mainly for testing without having to send real messages.',
137
+ type: 'string',
138
+ default: 'api.twilio.com',
139
+ required: false
140
+ },
141
+ connectionOverrides: {
142
+ label: 'Connection Overrides',
143
+ description: 'Connection overrides are configuration supported by twilio webhook services. Must be passed as fragments on the callback url',
144
+ type: 'string',
145
+ required: false,
146
+ default: 'rp=all&rc=5',
147
+ properties: ConnectionOverridesProperties
148
+ },
149
+ region: {
150
+ label: 'Region',
151
+ description: 'The region where the message is originating from',
152
+ type: 'string',
153
+ choices: [
154
+ { value: 'us-west-2', label: 'US West 2' },
155
+ { value: 'eu-west-1', label: 'EU West 1' }
156
+ ],
157
+ default: 'us-west-2',
158
+ required: false
159
+ }
160
+ },
161
+ testAuthentication: (request, options) => {
162
+ const hostName = options.settings.twilioHostname ?? 'api.twilio.com';
163
+ return request(`https://${hostName}/2010-04-01`);
164
+ }
165
+ },
166
+ actions: {
167
+ sendSms: sendSms_1.actionDefinition,
168
+ sendWhatsApp: sendWhatsApp_1.actionDefinition,
169
+ sendMobilePush: sendMobilePush_1.actionDefinition
170
+ }
171
+ };
172
+ //# sourceMappingURL=destinationDefinition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"destinationDefinition.js","sourceRoot":"","sources":["../../../../src/destinations/engage/twilio/destinationDefinition.ts"],"names":[],"mappings":";;;AAEA,uCAAuD;AACvD,iDAAiE;AACjE,qDAAqE;A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A;YACpE,OAAO,OAAO,CAAC,WAAW,QAAQ,aAAa,CAAC,CAAA;QAClD,CAAC;KACF;IASD,OAAO,EAAE;QACP,OAAO,EAAP,0BAAO;QACP,YAAY,EAAZ,+BAAY;QACZ,cAAc,EAAd,iCAAc;KACf;CACF,CAAA"}
@@ -0,0 +1 @@
1
+ export * from '../../engage-messaging-twilio/generated-types';
@@ -0,0 +1,14 @@
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("../../engage-messaging-twilio/generated-types"), exports);
14
+ //# sourceMappingURL=generated-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/engage/twilio/generated-types.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gFAA6D"}
@@ -0,0 +1,2 @@
1
+ import { destinationDefinition } from './destinationDefinition';
2
+ export default destinationDefinition;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const destinationDefinition_1 = require("./destinationDefinition");
4
+ exports.default = destinationDefinition_1.destinationDefinition;
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/engage/twilio/index.ts"],"names":[],"mappings":";;AAAA,mEAA+D;AAC/D,kBAAe,6CAAqB,CAAA"}
@@ -0,0 +1,27 @@
1
+ import { TwilioMessageSender } from '../utils';
2
+ import { ExtId } from '../../utils';
3
+ import type { Payload as PushPayload } from './generated-types';
4
+ interface BodyCustomDataBundle {
5
+ requestBody: URLSearchParams;
6
+ customData: object;
7
+ }
8
+ declare type Recepient = ExtId<PushPayload>;
9
+ export declare enum MobilePushExtIdTypes {
10
+ IOS = "ios.push_token",
11
+ ANDROID = "android.push_token"
12
+ }
13
+ export declare class PushSender extends TwilioMessageSender<PushPayload> {
14
+ static readonly externalIdTypes: MobilePushExtIdTypes[];
15
+ getChannelType(): string;
16
+ isSupportedExternalId(externalId: ExtId<PushPayload>): boolean;
17
+ readonly supportedTemplateTypes: string[];
18
+ private DEFAULT_HOSTNAME;
19
+ get twilioHostname(): string;
20
+ get twilioToken(): string;
21
+ beforeSend(recepients: Recepient[]): Promise<void>;
22
+ bodyCustomDataBundle: BodyCustomDataBundle;
23
+ sendToRecepient(recipientDevice: Recepient): Promise<import("@segment/actions-core").ModifiedResponse<unknown>>;
24
+ getBody(): Promise<BodyCustomDataBundle>;
25
+ private removeEmpties;
26
+ }
27
+ export {};