@segment/action-destinations 3.300.1-klaviyo.0 → 3.301.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 (388) hide show
  1. package/dist/destinations/actions-pardot/pa-operations.d.ts +1 -1
  2. package/dist/destinations/adjust/functions.d.ts +1 -1
  3. package/dist/destinations/adobe-target/adobeTarget_operations.d.ts +1 -1
  4. package/dist/destinations/airship/utilities.d.ts +7 -7
  5. package/dist/destinations/amazon-amc/index.js +10 -2
  6. package/dist/destinations/amazon-amc/index.js.map +1 -1
  7. package/dist/destinations/blackbaud-raisers-edge-nxt/utils/index.d.ts +1 -1
  8. package/dist/destinations/braze/utils.d.ts +6 -6
  9. package/dist/destinations/contentstack/customAttributesSync/utils.d.ts +1 -1
  10. package/dist/destinations/cordial/cordial-client.d.ts +8 -8
  11. package/dist/destinations/customerio/utils.d.ts +1 -1
  12. package/dist/destinations/engage-messaging-sendgrid/sendEmail/SendEmailPerformer.d.ts +1 -1
  13. package/dist/destinations/engage-messaging-twilio/sendMobilePush/PushSender.d.ts +1 -1
  14. package/dist/destinations/engage-messaging-twilio/utils/PhoneMessageSender.d.ts +1 -1
  15. package/dist/destinations/facebook-custom-audiences/fbca-operations.d.ts +2 -2
  16. package/dist/destinations/facebook-custom-audiences/fbca-operations.js +32 -6
  17. package/dist/destinations/facebook-custom-audiences/fbca-operations.js.map +1 -1
  18. package/dist/destinations/facebook-custom-audiences/index.js +0 -3
  19. package/dist/destinations/facebook-custom-audiences/index.js.map +1 -1
  20. package/dist/destinations/facebook-custom-audiences/sync/generated-types.d.ts +5 -5
  21. package/dist/destinations/facebook-custom-audiences/sync/index.js +26 -27
  22. package/dist/destinations/facebook-custom-audiences/sync/index.js.map +1 -1
  23. package/dist/destinations/gameball/util.d.ts +1 -1
  24. package/dist/destinations/google-analytics-4/ga4-functions.d.ts +1 -1
  25. package/dist/destinations/google-sheets/postSheet/operations.d.ts +1 -1
  26. package/dist/destinations/klaviyo/addProfileToList/generated-types.d.ts +0 -1
  27. package/dist/destinations/klaviyo/addProfileToList/index.js +5 -14
  28. package/dist/destinations/klaviyo/addProfileToList/index.js.map +1 -1
  29. package/dist/destinations/klaviyo/functions.d.ts +6 -7
  30. package/dist/destinations/klaviyo/functions.js +7 -23
  31. package/dist/destinations/klaviyo/functions.js.map +1 -1
  32. package/dist/destinations/klaviyo/orderCompleted/generated-types.d.ts +0 -1
  33. package/dist/destinations/klaviyo/orderCompleted/index.js +2 -15
  34. package/dist/destinations/klaviyo/orderCompleted/index.js.map +1 -1
  35. package/dist/destinations/klaviyo/properties.d.ts +0 -1
  36. package/dist/destinations/klaviyo/properties.js +1 -7
  37. package/dist/destinations/klaviyo/properties.js.map +1 -1
  38. package/dist/destinations/klaviyo/removeProfile/generated-types.d.ts +0 -1
  39. package/dist/destinations/klaviyo/removeProfile/index.js +7 -24
  40. package/dist/destinations/klaviyo/removeProfile/index.js.map +1 -1
  41. package/dist/destinations/klaviyo/removeProfileFromList/generated-types.d.ts +0 -1
  42. package/dist/destinations/klaviyo/removeProfileFromList/index.js +6 -18
  43. package/dist/destinations/klaviyo/removeProfileFromList/index.js.map +1 -1
  44. package/dist/destinations/klaviyo/subscribeProfile/index.js +1 -9
  45. package/dist/destinations/klaviyo/subscribeProfile/index.js.map +1 -1
  46. package/dist/destinations/klaviyo/trackEvent/index.js +0 -4
  47. package/dist/destinations/klaviyo/trackEvent/index.js.map +1 -1
  48. package/dist/destinations/klaviyo/unsubscribeProfile/index.js +1 -9
  49. package/dist/destinations/klaviyo/unsubscribeProfile/index.js.map +1 -1
  50. package/dist/destinations/klaviyo/upsertProfile/index.js +1 -9
  51. package/dist/destinations/klaviyo/upsertProfile/index.js.map +1 -1
  52. package/dist/destinations/launchdarkly-audiences/syncAudience/custom-audience-operations.d.ts +1 -1
  53. package/dist/lib/test-data.js +0 -2
  54. package/dist/lib/test-data.js.map +1 -1
  55. package/package.json +4 -4
  56. package/dist/destinations/amazon-ads/generated-types.d.ts +0 -3
  57. package/dist/destinations/amazon-ads/generated-types.js +0 -3
  58. package/dist/destinations/amazon-ads/generated-types.js.map +0 -1
  59. package/dist/destinations/amazon-ads/index.d.ts +0 -4
  60. package/dist/destinations/amazon-ads/index.js +0 -87
  61. package/dist/destinations/amazon-ads/index.js.map +0 -1
  62. package/dist/destinations/amazon-ads/syncAudiences/generated-types.d.ts +0 -2
  63. package/dist/destinations/amazon-ads/syncAudiences/generated-types.js +0 -3
  64. package/dist/destinations/amazon-ads/syncAudiences/generated-types.js.map +0 -1
  65. package/dist/destinations/amazon-ads/syncAudiences/index.d.ts +0 -5
  66. package/dist/destinations/amazon-ads/syncAudiences/index.js +0 -15
  67. package/dist/destinations/amazon-ads/syncAudiences/index.js.map +0 -1
  68. package/dist/destinations/amazon-ads/types.d.ts +0 -22
  69. package/dist/destinations/amazon-ads/types.js +0 -11
  70. package/dist/destinations/amazon-ads/types.js.map +0 -1
  71. package/dist/destinations/amazon-ads/utils.d.ts +0 -31
  72. package/dist/destinations/amazon-ads/utils.js +0 -18
  73. package/dist/destinations/amazon-ads/utils.js.map +0 -1
  74. package/dist/destinations/contentstack/constants.d.ts +0 -3
  75. package/dist/destinations/contentstack/constants.js +0 -7
  76. package/dist/destinations/contentstack/constants.js.map +0 -1
  77. package/dist/destinations/dynamic-yield-audiences/syncAudience/types.d.ts +0 -22
  78. package/dist/destinations/dynamic-yield-audiences/syncAudience/types.js +0 -3
  79. package/dist/destinations/dynamic-yield-audiences/syncAudience/types.js.map +0 -1
  80. package/dist/destinations/dynamic-yield-audiences/types.d.ts +0 -8
  81. package/dist/destinations/dynamic-yield-audiences/types.js +0 -12
  82. package/dist/destinations/dynamic-yield-audiences/types.js.map +0 -1
  83. package/dist/destinations/engage/sendgrid/destinationDefinition.d.ts +0 -3
  84. package/dist/destinations/engage/sendgrid/destinationDefinition.js +0 -70
  85. package/dist/destinations/engage/sendgrid/destinationDefinition.js.map +0 -1
  86. package/dist/destinations/engage/sendgrid/generated-types.d.ts +0 -1
  87. package/dist/destinations/engage/sendgrid/generated-types.js +0 -14
  88. package/dist/destinations/engage/sendgrid/generated-types.js.map +0 -1
  89. package/dist/destinations/engage/sendgrid/index.d.ts +0 -2
  90. package/dist/destinations/engage/sendgrid/index.js +0 -5
  91. package/dist/destinations/engage/sendgrid/index.js.map +0 -1
  92. package/dist/destinations/engage/sendgrid/previewApiLookup/actionDefinition.d.ts +0 -4
  93. package/dist/destinations/engage/sendgrid/previewApiLookup/actionDefinition.js +0 -28
  94. package/dist/destinations/engage/sendgrid/previewApiLookup/actionDefinition.js.map +0 -1
  95. package/dist/destinations/engage/sendgrid/previewApiLookup/generated-types.d.ts +0 -1
  96. package/dist/destinations/engage/sendgrid/previewApiLookup/generated-types.js +0 -14
  97. package/dist/destinations/engage/sendgrid/previewApiLookup/generated-types.js.map +0 -1
  98. package/dist/destinations/engage/sendgrid/previewApiLookup/index.d.ts +0 -1
  99. package/dist/destinations/engage/sendgrid/previewApiLookup/index.js +0 -14
  100. package/dist/destinations/engage/sendgrid/previewApiLookup/index.js.map +0 -1
  101. package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.d.ts +0 -44
  102. package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js +0 -419
  103. package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js.map +0 -1
  104. package/dist/destinations/engage/sendgrid/sendEmail/UnlayerResponse.d.ts +0 -12
  105. package/dist/destinations/engage/sendgrid/sendEmail/UnlayerResponse.js +0 -3
  106. package/dist/destinations/engage/sendgrid/sendEmail/UnlayerResponse.js.map +0 -1
  107. package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.d.ts +0 -4
  108. package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.js +0 -257
  109. package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.js.map +0 -1
  110. package/dist/destinations/engage/sendgrid/sendEmail/generated-types.d.ts +0 -1
  111. package/dist/destinations/engage/sendgrid/sendEmail/generated-types.js +0 -14
  112. package/dist/destinations/engage/sendgrid/sendEmail/generated-types.js.map +0 -1
  113. package/dist/destinations/engage/sendgrid/sendEmail/index.d.ts +0 -1
  114. package/dist/destinations/engage/sendgrid/sendEmail/index.js +0 -14
  115. package/dist/destinations/engage/sendgrid/sendEmail/index.js.map +0 -1
  116. package/dist/destinations/engage/sendgrid/sendEmail/insertEmailPreviewText.d.ts +0 -1
  117. package/dist/destinations/engage/sendgrid/sendEmail/insertEmailPreviewText.js +0 -23
  118. package/dist/destinations/engage/sendgrid/sendEmail/insertEmailPreviewText.js.map +0 -1
  119. package/dist/destinations/engage/sendgrid/sendEmail/isRestrictedDomain.d.ts +0 -1
  120. package/dist/destinations/engage/sendgrid/sendEmail/isRestrictedDomain.js +0 -14
  121. package/dist/destinations/engage/sendgrid/sendEmail/isRestrictedDomain.js.map +0 -1
  122. package/dist/destinations/engage/twilio/destinationDefinition.d.ts +0 -3
  123. package/dist/destinations/engage/twilio/destinationDefinition.js +0 -172
  124. package/dist/destinations/engage/twilio/destinationDefinition.js.map +0 -1
  125. package/dist/destinations/engage/twilio/generated-types.d.ts +0 -1
  126. package/dist/destinations/engage/twilio/generated-types.js +0 -14
  127. package/dist/destinations/engage/twilio/generated-types.js.map +0 -1
  128. package/dist/destinations/engage/twilio/index.d.ts +0 -2
  129. package/dist/destinations/engage/twilio/index.js +0 -5
  130. package/dist/destinations/engage/twilio/index.js.map +0 -1
  131. package/dist/destinations/engage/twilio/sendMobilePush/PushSender.d.ts +0 -28
  132. package/dist/destinations/engage/twilio/sendMobilePush/PushSender.js +0 -151
  133. package/dist/destinations/engage/twilio/sendMobilePush/PushSender.js.map +0 -1
  134. package/dist/destinations/engage/twilio/sendMobilePush/actionDefinition.d.ts +0 -4
  135. package/dist/destinations/engage/twilio/sendMobilePush/actionDefinition.js +0 -250
  136. package/dist/destinations/engage/twilio/sendMobilePush/actionDefinition.js.map +0 -1
  137. package/dist/destinations/engage/twilio/sendMobilePush/generated-types.d.ts +0 -1
  138. package/dist/destinations/engage/twilio/sendMobilePush/generated-types.js +0 -14
  139. package/dist/destinations/engage/twilio/sendMobilePush/generated-types.js.map +0 -1
  140. package/dist/destinations/engage/twilio/sendMobilePush/index.d.ts +0 -1
  141. package/dist/destinations/engage/twilio/sendMobilePush/index.js +0 -14
  142. package/dist/destinations/engage/twilio/sendMobilePush/index.js.map +0 -1
  143. package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.d.ts +0 -9
  144. package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.js +0 -72
  145. package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.js.map +0 -1
  146. package/dist/destinations/engage/twilio/sendSms/actionDefinition.d.ts +0 -4
  147. package/dist/destinations/engage/twilio/sendSms/actionDefinition.js +0 -162
  148. package/dist/destinations/engage/twilio/sendSms/actionDefinition.js.map +0 -1
  149. package/dist/destinations/engage/twilio/sendSms/generated-types.d.ts +0 -1
  150. package/dist/destinations/engage/twilio/sendSms/generated-types.js +0 -14
  151. package/dist/destinations/engage/twilio/sendSms/generated-types.js.map +0 -1
  152. package/dist/destinations/engage/twilio/sendSms/index.d.ts +0 -1
  153. package/dist/destinations/engage/twilio/sendSms/index.js +0 -14
  154. package/dist/destinations/engage/twilio/sendSms/index.js.map +0 -1
  155. package/dist/destinations/engage/twilio/sendWhatsApp/WhatsAppMessageSender.d.ts +0 -9
  156. package/dist/destinations/engage/twilio/sendWhatsApp/WhatsAppMessageSender.js +0 -89
  157. package/dist/destinations/engage/twilio/sendWhatsApp/WhatsAppMessageSender.js.map +0 -1
  158. package/dist/destinations/engage/twilio/sendWhatsApp/actionDefinition.d.ts +0 -4
  159. package/dist/destinations/engage/twilio/sendWhatsApp/actionDefinition.js +0 -136
  160. package/dist/destinations/engage/twilio/sendWhatsApp/actionDefinition.js.map +0 -1
  161. package/dist/destinations/engage/twilio/sendWhatsApp/generated-types.d.ts +0 -1
  162. package/dist/destinations/engage/twilio/sendWhatsApp/generated-types.js +0 -14
  163. package/dist/destinations/engage/twilio/sendWhatsApp/generated-types.js.map +0 -1
  164. package/dist/destinations/engage/twilio/sendWhatsApp/index.d.ts +0 -1
  165. package/dist/destinations/engage/twilio/sendWhatsApp/index.js +0 -14
  166. package/dist/destinations/engage/twilio/sendWhatsApp/index.js.map +0 -1
  167. package/dist/destinations/engage/twilio/utils/PhoneMessageSender.d.ts +0 -16
  168. package/dist/destinations/engage/twilio/utils/PhoneMessageSender.js +0 -71
  169. package/dist/destinations/engage/twilio/utils/PhoneMessageSender.js.map +0 -1
  170. package/dist/destinations/engage/twilio/utils/TwilioMessageSender.d.ts +0 -16
  171. package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js +0 -115
  172. package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js.map +0 -1
  173. package/dist/destinations/engage/twilio/utils/index.d.ts +0 -2
  174. package/dist/destinations/engage/twilio/utils/index.js +0 -15
  175. package/dist/destinations/engage/twilio/utils/index.js.map +0 -1
  176. package/dist/destinations/engage/twilio/utils/types.d.ts +0 -23
  177. package/dist/destinations/engage/twilio/utils/types.js +0 -3
  178. package/dist/destinations/engage/twilio/utils/types.js.map +0 -1
  179. package/dist/destinations/engage/utils/AggregateError.d.ts +0 -14
  180. package/dist/destinations/engage/utils/AggregateError.js +0 -26
  181. package/dist/destinations/engage/utils/AggregateError.js.map +0 -1
  182. package/dist/destinations/engage/utils/EngageActionPerformer.d.ts +0 -42
  183. package/dist/destinations/engage/utils/EngageActionPerformer.js +0 -148
  184. package/dist/destinations/engage/utils/EngageActionPerformer.js.map +0 -1
  185. package/dist/destinations/engage/utils/EngageLogger.d.ts +0 -18
  186. package/dist/destinations/engage/utils/EngageLogger.js +0 -52
  187. package/dist/destinations/engage/utils/EngageLogger.js.map +0 -1
  188. package/dist/destinations/engage/utils/EngageStats.d.ts +0 -18
  189. package/dist/destinations/engage/utils/EngageStats.js +0 -95
  190. package/dist/destinations/engage/utils/EngageStats.js.map +0 -1
  191. package/dist/destinations/engage/utils/IntegrationErrorWrapper.d.ts +0 -12
  192. package/dist/destinations/engage/utils/IntegrationErrorWrapper.js +0 -31
  193. package/dist/destinations/engage/utils/IntegrationErrorWrapper.js.map +0 -1
  194. package/dist/destinations/engage/utils/MessageSendPerformer.d.ts +0 -65
  195. package/dist/destinations/engage/utils/MessageSendPerformer.js +0 -211
  196. package/dist/destinations/engage/utils/MessageSendPerformer.js.map +0 -1
  197. package/dist/destinations/engage/utils/Profile.d.ts +0 -6
  198. package/dist/destinations/engage/utils/Profile.js +0 -3
  199. package/dist/destinations/engage/utils/Profile.js.map +0 -1
  200. package/dist/destinations/engage/utils/ResponseError.d.ts +0 -25
  201. package/dist/destinations/engage/utils/ResponseError.js +0 -22
  202. package/dist/destinations/engage/utils/ResponseError.js.map +0 -1
  203. package/dist/destinations/engage/utils/apiLookups.d.ts +0 -22
  204. package/dist/destinations/engage/utils/apiLookups.js +0 -189
  205. package/dist/destinations/engage/utils/apiLookups.js.map +0 -1
  206. package/dist/destinations/engage/utils/getProfileApiEndpoint.d.ts +0 -2
  207. package/dist/destinations/engage/utils/getProfileApiEndpoint.js +0 -10
  208. package/dist/destinations/engage/utils/getProfileApiEndpoint.js.map +0 -1
  209. package/dist/destinations/engage/utils/index.d.ts +0 -9
  210. package/dist/destinations/engage/utils/index.js +0 -22
  211. package/dist/destinations/engage/utils/index.js.map +0 -1
  212. package/dist/destinations/engage/utils/isDestinationActionService.d.ts +0 -1
  213. package/dist/destinations/engage/utils/isDestinationActionService.js +0 -8
  214. package/dist/destinations/engage/utils/isDestinationActionService.js.map +0 -1
  215. package/dist/destinations/engage/utils/isRetryableError.d.ts +0 -2
  216. package/dist/destinations/engage/utils/isRetryableError.js +0 -33
  217. package/dist/destinations/engage/utils/isRetryableError.js.map +0 -1
  218. package/dist/destinations/engage/utils/operationTracking/GenericMethodDecorator.d.ts +0 -1
  219. package/dist/destinations/engage/utils/operationTracking/GenericMethodDecorator.js +0 -3
  220. package/dist/destinations/engage/utils/operationTracking/GenericMethodDecorator.js.map +0 -1
  221. package/dist/destinations/engage/utils/operationTracking/OperationDecorator.d.ts +0 -46
  222. package/dist/destinations/engage/utils/operationTracking/OperationDecorator.js +0 -46
  223. package/dist/destinations/engage/utils/operationTracking/OperationDecorator.js.map +0 -1
  224. package/dist/destinations/engage/utils/operationTracking/OperationDuration.d.ts +0 -12
  225. package/dist/destinations/engage/utils/operationTracking/OperationDuration.js +0 -23
  226. package/dist/destinations/engage/utils/operationTracking/OperationDuration.js.map +0 -1
  227. package/dist/destinations/engage/utils/operationTracking/OperationErrorHandler.d.ts +0 -12
  228. package/dist/destinations/engage/utils/operationTracking/OperationErrorHandler.js +0 -35
  229. package/dist/destinations/engage/utils/operationTracking/OperationErrorHandler.js.map +0 -1
  230. package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.d.ts +0 -14
  231. package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.js +0 -31
  232. package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.js.map +0 -1
  233. package/dist/destinations/engage/utils/operationTracking/OperationLogger.d.ts +0 -31
  234. package/dist/destinations/engage/utils/operationTracking/OperationLogger.js +0 -104
  235. package/dist/destinations/engage/utils/operationTracking/OperationLogger.js.map +0 -1
  236. package/dist/destinations/engage/utils/operationTracking/OperationStats.d.ts +0 -39
  237. package/dist/destinations/engage/utils/operationTracking/OperationStats.js +0 -130
  238. package/dist/destinations/engage/utils/operationTracking/OperationStats.js.map +0 -1
  239. package/dist/destinations/engage/utils/operationTracking/OperationTracker.test.d.ts +0 -1
  240. package/dist/destinations/engage/utils/operationTracking/OperationTracker.test.js +0 -377
  241. package/dist/destinations/engage/utils/operationTracking/OperationTracker.test.js.map +0 -1
  242. package/dist/destinations/engage/utils/operationTracking/OperationTree.d.ts +0 -23
  243. package/dist/destinations/engage/utils/operationTracking/OperationTree.js +0 -49
  244. package/dist/destinations/engage/utils/operationTracking/OperationTree.js.map +0 -1
  245. package/dist/destinations/engage/utils/operationTracking/TrackedError.d.ts +0 -6
  246. package/dist/destinations/engage/utils/operationTracking/TrackedError.js +0 -3
  247. package/dist/destinations/engage/utils/operationTracking/TrackedError.js.map +0 -1
  248. package/dist/destinations/engage/utils/operationTracking/index.d.ts +0 -10
  249. package/dist/destinations/engage/utils/operationTracking/index.js +0 -23
  250. package/dist/destinations/engage/utils/operationTracking/index.js.map +0 -1
  251. package/dist/destinations/engage/utils/operationTracking/wrapTryCatchFinallyPromisable.d.ts +0 -21
  252. package/dist/destinations/engage/utils/operationTracking/wrapTryCatchFinallyPromisable.js +0 -99
  253. package/dist/destinations/engage/utils/operationTracking/wrapTryCatchFinallyPromisable.js.map +0 -1
  254. package/dist/destinations/engage/utils/testUtils.d.ts +0 -6
  255. package/dist/destinations/engage/utils/testUtils.js +0 -26
  256. package/dist/destinations/engage/utils/testUtils.js.map +0 -1
  257. package/dist/destinations/engage/utils/track.d.ts +0 -52
  258. package/dist/destinations/engage/utils/track.js +0 -9
  259. package/dist/destinations/engage/utils/track.js.map +0 -1
  260. package/dist/destinations/engage-messaging-sendgrid/previewApiLookup.types.d.ts +0 -16
  261. package/dist/destinations/engage-messaging-sendgrid/previewApiLookup.types.js +0 -3
  262. package/dist/destinations/engage-messaging-sendgrid/previewApiLookup.types.js.map +0 -1
  263. package/dist/destinations/engage-messaging-sendgrid/sendEmail.types.d.ts +0 -56
  264. package/dist/destinations/engage-messaging-sendgrid/sendEmail.types.js +0 -3
  265. package/dist/destinations/engage-messaging-sendgrid/sendEmail.types.js.map +0 -1
  266. package/dist/destinations/engage-messaging-twilio/sendMobilePush.types.d.ts +0 -39
  267. package/dist/destinations/engage-messaging-twilio/sendMobilePush.types.js +0 -3
  268. package/dist/destinations/engage-messaging-twilio/sendMobilePush.types.js.map +0 -1
  269. package/dist/destinations/engage-messaging-twilio/sendSms.types.d.ts +0 -27
  270. package/dist/destinations/engage-messaging-twilio/sendSms.types.js +0 -3
  271. package/dist/destinations/engage-messaging-twilio/sendSms.types.js.map +0 -1
  272. package/dist/destinations/engage-messaging-twilio/sendWhatsApp.types.d.ts +0 -25
  273. package/dist/destinations/engage-messaging-twilio/sendWhatsApp.types.js +0 -3
  274. package/dist/destinations/engage-messaging-twilio/sendWhatsApp.types.js.map +0 -1
  275. package/dist/destinations/facebook-custom-audiences/add/generated-types.d.ts +0 -2
  276. package/dist/destinations/facebook-custom-audiences/add/generated-types.js +0 -3
  277. package/dist/destinations/facebook-custom-audiences/add/generated-types.js.map +0 -1
  278. package/dist/destinations/facebook-custom-audiences/add/index.d.ts +0 -5
  279. package/dist/destinations/facebook-custom-audiences/add/index.js +0 -11
  280. package/dist/destinations/facebook-custom-audiences/add/index.js.map +0 -1
  281. package/dist/destinations/facebook-custom-audiences/remove/generated-types.d.ts +0 -2
  282. package/dist/destinations/facebook-custom-audiences/remove/generated-types.js +0 -3
  283. package/dist/destinations/facebook-custom-audiences/remove/generated-types.js.map +0 -1
  284. package/dist/destinations/facebook-custom-audiences/remove/index.d.ts +0 -5
  285. package/dist/destinations/facebook-custom-audiences/remove/index.js +0 -11
  286. package/dist/destinations/facebook-custom-audiences/remove/index.js.map +0 -1
  287. package/dist/destinations/first-party-dv360/functions.d.ts +0 -17
  288. package/dist/destinations/first-party-dv360/functions.js +0 -38
  289. package/dist/destinations/first-party-dv360/functions.js.map +0 -1
  290. package/dist/destinations/klaviyo/orderCompleted/formatters.d.ts +0 -26
  291. package/dist/destinations/klaviyo/orderCompleted/formatters.js +0 -62
  292. package/dist/destinations/klaviyo/orderCompleted/formatters.js.map +0 -1
  293. package/dist/destinations/klaviyo/orderCompleted/types.d.ts +0 -2
  294. package/dist/destinations/klaviyo/orderCompleted/types.js +0 -3
  295. package/dist/destinations/klaviyo/orderCompleted/types.js.map +0 -1
  296. package/dist/destinations/mappings-two-test/generated-types.d.ts +0 -3
  297. package/dist/destinations/mappings-two-test/generated-types.js +0 -3
  298. package/dist/destinations/mappings-two-test/generated-types.js.map +0 -1
  299. package/dist/destinations/mappings-two-test/index.d.ts +0 -4
  300. package/dist/destinations/mappings-two-test/index.js +0 -34
  301. package/dist/destinations/mappings-two-test/index.js.map +0 -1
  302. package/dist/destinations/mappings-two-test/inputMethods/generated-types.d.ts +0 -29
  303. package/dist/destinations/mappings-two-test/inputMethods/generated-types.js +0 -3
  304. package/dist/destinations/mappings-two-test/inputMethods/generated-types.js.map +0 -1
  305. package/dist/destinations/mappings-two-test/inputMethods/index.d.ts +0 -5
  306. package/dist/destinations/mappings-two-test/inputMethods/index.js +0 -200
  307. package/dist/destinations/mappings-two-test/inputMethods/index.js.map +0 -1
  308. package/dist/destinations/mappings-two-test/kitchenSink/generated-types.d.ts +0 -53
  309. package/dist/destinations/mappings-two-test/kitchenSink/generated-types.js +0 -3
  310. package/dist/destinations/mappings-two-test/kitchenSink/generated-types.js.map +0 -1
  311. package/dist/destinations/mappings-two-test/kitchenSink/index.d.ts +0 -5
  312. package/dist/destinations/mappings-two-test/kitchenSink/index.js +0 -289
  313. package/dist/destinations/mappings-two-test/kitchenSink/index.js.map +0 -1
  314. package/dist/destinations/mappings-two-test/sendEvent/generated-types.d.ts +0 -17
  315. package/dist/destinations/mappings-two-test/sendEvent/generated-types.js +0 -3
  316. package/dist/destinations/mappings-two-test/sendEvent/generated-types.js.map +0 -1
  317. package/dist/destinations/mappings-two-test/sendEvent/index.d.ts +0 -5
  318. package/dist/destinations/mappings-two-test/sendEvent/index.js +0 -345
  319. package/dist/destinations/mappings-two-test/sendEvent/index.js.map +0 -1
  320. package/dist/destinations/responsys/asyncMergePetRecords/generated-types.d.ts +0 -14
  321. package/dist/destinations/responsys/asyncMergePetRecords/generated-types.js +0 -3
  322. package/dist/destinations/responsys/asyncMergePetRecords/generated-types.js.map +0 -1
  323. package/dist/destinations/responsys/asyncMergePetRecords/index.d.ts +0 -5
  324. package/dist/destinations/responsys/asyncMergePetRecords/index.js +0 -113
  325. package/dist/destinations/responsys/asyncMergePetRecords/index.js.map +0 -1
  326. package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.d.ts +0 -20
  327. package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.js +0 -3
  328. package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.js.map +0 -1
  329. package/dist/destinations/responsys/asyncMergeProfileListMembers/index.d.ts +0 -5
  330. package/dist/destinations/responsys/asyncMergeProfileListMembers/index.js +0 -174
  331. package/dist/destinations/responsys/asyncMergeProfileListMembers/index.js.map +0 -1
  332. package/dist/destinations/responsys/rsp-operations.d.ts +0 -14
  333. package/dist/destinations/responsys/rsp-operations.js +0 -33
  334. package/dist/destinations/responsys/rsp-operations.js.map +0 -1
  335. package/dist/destinations/responsys/rsp-properties.d.ts +0 -4
  336. package/dist/destinations/responsys/rsp-properties.js +0 -27
  337. package/dist/destinations/responsys/rsp-properties.js.map +0 -1
  338. package/dist/destinations/responsys-cloud/generated-types.d.ts +0 -20
  339. package/dist/destinations/responsys-cloud/generated-types.js +0 -3
  340. package/dist/destinations/responsys-cloud/generated-types.js.map +0 -1
  341. package/dist/destinations/responsys-cloud/index.d.ts +0 -4
  342. package/dist/destinations/responsys-cloud/index.js +0 -207
  343. package/dist/destinations/responsys-cloud/index.js.map +0 -1
  344. package/dist/destinations/responsys-cloud/sendAudience/generated-types.d.ts +0 -16
  345. package/dist/destinations/responsys-cloud/sendAudience/generated-types.js +0 -3
  346. package/dist/destinations/responsys-cloud/sendAudience/generated-types.js.map +0 -1
  347. package/dist/destinations/responsys-cloud/sendAudience/index.d.ts +0 -5
  348. package/dist/destinations/responsys-cloud/sendAudience/index.js +0 -109
  349. package/dist/destinations/responsys-cloud/sendAudience/index.js.map +0 -1
  350. package/dist/destinations/responsys-cloud/sendCustomTraits/generated-types.d.ts +0 -11
  351. package/dist/destinations/responsys-cloud/sendCustomTraits/generated-types.js +0 -3
  352. package/dist/destinations/responsys-cloud/sendCustomTraits/generated-types.js.map +0 -1
  353. package/dist/destinations/responsys-cloud/sendCustomTraits/index.d.ts +0 -5
  354. package/dist/destinations/responsys-cloud/sendCustomTraits/index.js +0 -72
  355. package/dist/destinations/responsys-cloud/sendCustomTraits/index.js.map +0 -1
  356. package/dist/destinations/responsys-cloud/shared_properties.d.ts +0 -3
  357. package/dist/destinations/responsys-cloud/shared_properties.js +0 -19
  358. package/dist/destinations/responsys-cloud/shared_properties.js.map +0 -1
  359. package/dist/destinations/responsys-cloud/types.d.ts +0 -38
  360. package/dist/destinations/responsys-cloud/types.js +0 -3
  361. package/dist/destinations/responsys-cloud/types.js.map +0 -1
  362. package/dist/destinations/responsys-cloud/upsertListMember/generated-types.d.ts +0 -14
  363. package/dist/destinations/responsys-cloud/upsertListMember/generated-types.js +0 -3
  364. package/dist/destinations/responsys-cloud/upsertListMember/generated-types.js.map +0 -1
  365. package/dist/destinations/responsys-cloud/upsertListMember/index.d.ts +0 -5
  366. package/dist/destinations/responsys-cloud/upsertListMember/index.js +0 -85
  367. package/dist/destinations/responsys-cloud/upsertListMember/index.js.map +0 -1
  368. package/dist/destinations/responsys-cloud/utils.d.ts +0 -20
  369. package/dist/destinations/responsys-cloud/utils.js +0 -179
  370. package/dist/destinations/responsys-cloud/utils.js.map +0 -1
  371. package/dist/destinations/snap-conversions-api/_tests_/capiV2tests.d.ts +0 -1
  372. package/dist/destinations/snap-conversions-api/_tests_/capiV2tests.js +0 -381
  373. package/dist/destinations/snap-conversions-api/_tests_/capiV2tests.js.map +0 -1
  374. package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.d.ts +0 -1
  375. package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.js +0 -581
  376. package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.js.map +0 -1
  377. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v2.d.ts +0 -4
  378. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v2.js +0 -97
  379. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v2.js.map +0 -1
  380. package/dist/destinations/snap-conversions-api/snap-capi-properties.d.ts +0 -30
  381. package/dist/destinations/snap-conversions-api/snap-capi-properties.js +0 -316
  382. package/dist/destinations/snap-conversions-api/snap-capi-properties.js.map +0 -1
  383. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.d.ts +0 -3
  384. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js +0 -34
  385. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js.map +0 -1
  386. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.d.ts +0 -3
  387. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.js +0 -43
  388. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.js.map +0 -1
@@ -77,8 +77,6 @@ function setTestData(seedName, type, fieldName, format, choices) {
77
77
  val = chance.email();
78
78
  if (fieldName === 'currency')
79
79
  val = chance.currency().code;
80
- if (fieldName === 'phone_number')
81
- val = '+' + chance.phone({ formatted: false });
82
80
  return val;
83
81
  }
84
82
  function setData(eventData, chanceName, fieldName, field, data) {
@@ -1 +1 @@
1
- {"version":3,"file":"test-data.js","sourceRoot":"","sources":["../../src/lib/test-data.ts"],"names":[],"mappings":";;;;;;AAEA,oDAA2B;AAG3B,SAAS,WAAW,CAAC,QAAgB,EAAE,IAAY,EAAE,SAAkB,EAAE,MAAe,EAAE,OAAiB;IACzG,MAAM,MAAM,GAAG,IAAI,gBAAM,CAAC,QAAQ,CAAC,CAAA;IAEnC,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;QAC1B,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;QAEtC,IAAI,MAAM,CAAC,KAAK,EAAE;YAChB,OAAO,MAAM,CAAC,KAAK,CAAA;SACpB;QACD,OAAO,MAAM,CAAA;KACd;IACD,IAAI,GAAQ,CAAA;IACZ,QAAQ,IAAI,EAAE;QACZ,KAAK,SAAS;YACZ,GAAG,GAAG,MAAM,CAAC,IAAI,EAAE,CAAA;YACnB,MAAK;QACP,KAAK,UAAU;YACb,GAAG,GAAG,0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EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAA;aAC5E;YAED,KAAK,MAAM,YAAY,IAAI,cAAc,EAAE;gBACzC,MAAM,QAAQ,GAAG,UAAU,CAAC,YAAY,CAAC,CAAA;gBACzC,OAAO,GAAG,OAAO,CAAC,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAA;aAC7D;YAED,SAAS,GAAG,OAAO,CAAC,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,CAAA;YAC9D,SAAQ;SACT;QAED,IAAI,IAAI,IAAI,SAAS,EAAE;YACrB,MAAM,OAAO,GAAG;gBACd,mBAAmB,EAAE;oBACnB,SAAS,EAAE,IAAI;oBACf,SAAS,EAAE,KAAK;iBACjB;aACF,CAAA;YACD,SAAS,GAAG,OAAO,CAAC,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,CAAA;YAC9D,SAAQ;SACT;QACD,SAAS,GAAG,OAAO,CAAC,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,CAAC,CAAA;KACtD;IAED,OAAO,CAAC,SAAS,EAAE,YAAY,CAAC,CAAA;AAClC,CAAC;AAvDD,4CAuDC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@segment/action-destinations",
3
3
  "description": "Destination Actions engine and definitions.",
4
- "version": "3.300.1-klaviyo.0",
4
+ "version": "3.301.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/segmentio/action-destinations",
@@ -44,8 +44,8 @@
44
44
  "@bufbuild/protobuf": "^1.4.2",
45
45
  "@bufbuild/protoc-gen-es": "^1.4.2",
46
46
  "@segment/a1-notation": "^2.1.4",
47
- "@segment/actions-core": "^3.126.0",
48
- "@segment/actions-shared": "^1.107.0",
47
+ "@segment/actions-core": "^3.127.0",
48
+ "@segment/actions-shared": "^1.108.0",
49
49
  "@types/node": "^18.11.15",
50
50
  "ajv-formats": "^2.1.1",
51
51
  "aws4": "^1.12.0",
@@ -87,5 +87,5 @@
87
87
  "__tests__/__helpers__/"
88
88
  ]
89
89
  },
90
- "gitHead": "9c04e12c4a0e81f6b68dca0a297fb2c0209d2431"
90
+ "gitHead": "99bf3baf8cbb7f2f02c20fb3430162e64f2126d7"
91
91
  }
@@ -1,3 +0,0 @@
1
- export interface Settings {
2
- region: string;
3
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=generated-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/destinations/amazon-ads/generated-types.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- import type { AudienceDestinationDefinition } from '@segment/actions-core';
2
- import type { Settings } from './generated-types';
3
- declare const destination: AudienceDestinationDefinition<Settings>;
4
- export default destination;
@@ -1,87 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const actions_core_1 = require("@segment/actions-core");
7
- const syncAudiences_1 = __importDefault(require("./syncAudiences"));
8
- const destination = {
9
- name: 'Amazon Ads',
10
- slug: 'actions-amazon-ads',
11
- mode: 'cloud',
12
- authentication: {
13
- scheme: 'oauth2',
14
- fields: {
15
- region: {
16
- label: 'Region',
17
- description: 'Region for API Endpoint, either NA, EU, FE.',
18
- choices: [
19
- { label: 'North America (NA)', value: 'https://advertising-api.amazon.com' },
20
- { label: 'Europe (EU)', value: 'https://advertising-api-eu.amazon.com' },
21
- { label: 'Far East (FE)', value: 'https://advertising-api-fe.amazon.com' }
22
- ],
23
- default: 'North America (NA)',
24
- type: 'string',
25
- required: true
26
- }
27
- },
28
- testAuthentication: async (request, { auth }) => {
29
- if (!auth?.accessToken) {
30
- throw new actions_core_1.InvalidAuthenticationError('Please authenticate via Oauth before enabling the destination.');
31
- }
32
- try {
33
- await request('https://advertising-api.amazon.com/v2/profiles', {
34
- method: 'GET'
35
- });
36
- }
37
- catch (e) {
38
- const error = e;
39
- if (error.message === 'Unauthorized') {
40
- throw new Error('Invalid Amazon Oauth access token. Please reauthenticate to retrieve a valid access token before enabling the destination.');
41
- }
42
- throw e;
43
- }
44
- },
45
- refreshAccessToken: async (request, { auth }) => {
46
- let res;
47
- try {
48
- res = await request('https://api.amazon.com/auth/o2/token', {
49
- method: 'POST',
50
- body: new URLSearchParams({
51
- refresh_token: auth.refreshToken,
52
- client_id: auth.clientId,
53
- client_secret: auth.clientSecret,
54
- grant_type: 'refresh_token'
55
- })
56
- });
57
- }
58
- catch (e) {
59
- const error = e;
60
- if (error.response?.data?.error === 'invalid_grant') {
61
- throw new actions_core_1.IntegrationError(`Invalid Authentication: Your refresh token is invalid or expired. Please re-authenticate to fetch a new refresh token.`, actions_core_1.ErrorCodes.REFRESH_TOKEN_EXPIRED, 401);
62
- }
63
- throw new actions_core_1.IntegrationError(`Failed to fetch a new access token. Reason: ${error.response?.data?.error}`, actions_core_1.ErrorCodes.OAUTH_REFRESH_FAILED, 401);
64
- }
65
- return { accessToken: res?.data?.access_token };
66
- }
67
- },
68
- extendRequest({ auth }) {
69
- return {
70
- headers: {
71
- authorization: `Bearer ${auth?.accessToken}`
72
- }
73
- };
74
- },
75
- audienceFields: {},
76
- audienceConfig: {
77
- mode: {
78
- type: 'synced',
79
- full_audience_sync: false
80
- }
81
- },
82
- actions: {
83
- syncAudiences: syncAudiences_1.default
84
- }
85
- };
86
- exports.default = destination;
87
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/amazon-ads/index.ts"],"names":[],"mappings":";;;;;AACA,wDAAgG;AAIhG,oEAA2C;AAG3C,MAAM,WAAW,GAA4C;IAC3D,IAAI,EAAE,Y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AC,YAAY;wBAChC,SAAS,EAAE,IAAI,CAAC,QAAQ;wBACxB,aAAa,EAAE,IAAI,CAAC,YAAY;wBAChC,UAAU,EAAE,eAAe;qBAC5B,CAAC;iBACH,CAAC,CAAA;aACH;YAAC,OAAO,CAAM,EAAE;gBACf,MAAM,KAAK,GAAG,CAA4B,CAAA;gBAC1C,IAAI,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,KAAK,KAAK,eAAe,EAAE;oBACnD,MAAM,IAAI,+BAAgB,CACxB,wHAAwH,EACxH,yBAAU,CAAC,qBAAqB,EAChC,GAAG,CACJ,CAAA;iBACF;gBAED,MAAM,IAAI,+BAAgB,CACxB,+CAA+C,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,EAC5E,yBAAU,CAAC,oBAAoB,EAC/B,GAAG,CACJ,CAAA;aACF;YAED,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,IAAI,EAAE,YAAY,EAAE,CAAA;QACjD,CAAC;KACF;IACD,aAAa,CAAC,EAAE,IAAI,EAAE;QACpB,OAAO;YACL,OAAO,EAAE;gBACP,aAAa,EAAE,UAAU,IAAI,EAAE,WAAW,EAAE;aAC7C;SACF,CAAA;IACH,CAAC;IAED,cAAc,EAAE,EAAE;IAElB,cAAc,EAAE;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,kBAAkB,EAAE,KAAK;SAC1B;KAWF;IACD,OAAO,EAAE;QACP,aAAa,EAAb,uBAAa;KACd;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
@@ -1,2 +0,0 @@
1
- export interface Payload {
2
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=generated-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/amazon-ads/syncAudiences/generated-types.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- import type { ActionDefinition } from '@segment/actions-core';
2
- import type { Settings } from '../generated-types';
3
- import type { Payload } from './generated-types';
4
- declare const action: ActionDefinition<Settings, Payload>;
5
- export default action;
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const action = {
4
- title: 'Sync Audiences',
5
- description: 'Sync audiences from Segment to Amazon Ads Audience.',
6
- fields: {},
7
- perform: (request, data) => {
8
- return request('https://example.com', {
9
- method: 'post',
10
- json: data.payload
11
- });
12
- }
13
- };
14
- exports.default = action;
15
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/amazon-ads/syncAudiences/index.ts"],"names":[],"mappings":";;AAIA,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,gBAAgB;IACvB,WAAW,EAAE,qDAAqD;IAClE,MAAM,EAAE,EAAE;IACV,OAAO,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QACzB,OAAO,OAAO,CAAC,qBAAqB,EAAE;YACpC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI,CAAC,OAAO;SACnB,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -1,22 +0,0 @@
1
- import { HTTPError } from '@segment/actions-core';
2
- export interface RefreshTokenResponse {
3
- access_token: string;
4
- scope: string;
5
- expires_in: number;
6
- token_type: string;
7
- }
8
- export declare class AmazonTestAuthenticationError extends HTTPError {
9
- response: Response & {
10
- data: {
11
- message: string;
12
- };
13
- };
14
- }
15
- export declare class AmazonRefreshTokenError extends HTTPError {
16
- response: Response & {
17
- data: {
18
- error: string;
19
- error_description: string;
20
- };
21
- };
22
- }
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AmazonRefreshTokenError = exports.AmazonTestAuthenticationError = void 0;
4
- const actions_core_1 = require("@segment/actions-core");
5
- class AmazonTestAuthenticationError extends actions_core_1.HTTPError {
6
- }
7
- exports.AmazonTestAuthenticationError = AmazonTestAuthenticationError;
8
- class AmazonRefreshTokenError extends actions_core_1.HTTPError {
9
- }
10
- exports.AmazonRefreshTokenError = AmazonRefreshTokenError;
11
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/destinations/amazon-ads/types.ts"],"names":[],"mappings":";;;AAAA,wDAAiD;AAajD,MAAa,6BAA8B,SAAQ,wBAAS;CAM3D;AAND,sEAMC;AAED,MAAa,uBAAwB,SAAQ,wBAAS;CAOrD;AAPD,0DAOC"}
@@ -1,31 +0,0 @@
1
- import { HTTPError } from '@segment/actions-core';
2
- export declare class AmazonAdsError extends HTTPError {
3
- response: Response & {
4
- data: {
5
- status: string;
6
- message: string;
7
- };
8
- };
9
- }
10
- export interface AudiencePayload {
11
- name: string;
12
- description: string;
13
- countryCode: string;
14
- targetResource: {
15
- advertiserId: string;
16
- };
17
- metadata: {
18
- externalAudienceId: string;
19
- ttl?: number;
20
- audienceFees?: {
21
- cpmCents: number;
22
- currency: string;
23
- }[];
24
- };
25
- }
26
- export declare const AUTHORIZATION_URL: any;
27
- export declare const CONSTANTS: {
28
- CREATE: string;
29
- DELETE: string;
30
- };
31
- export declare const CURRENCY: string[];
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CURRENCY = exports.CONSTANTS = exports.AUTHORIZATION_URL = exports.AmazonAdsError = void 0;
4
- const actions_core_1 = require("@segment/actions-core");
5
- class AmazonAdsError extends actions_core_1.HTTPError {
6
- }
7
- exports.AmazonAdsError = AmazonAdsError;
8
- exports.AUTHORIZATION_URL = {
9
- 'https://advertising-api.amazon.com': 'https://api.amazon.com/auth/o2/token',
10
- 'https://advertising-api-eu.amazon.com': 'https://api.amazon.co.uk/auth/o2/token',
11
- 'https://advertising-api-fe.amazon.com': 'https://api.amazon.co.jp/auth/o2/token'
12
- };
13
- exports.CONSTANTS = {
14
- CREATE: 'CREATE',
15
- DELETE: 'DELETE'
16
- };
17
- exports.CURRENCY = ['USD', 'CAD', 'JPY', 'GBP', 'EUR', 'SAR', 'AUD', 'AED', 'CNY', 'MXN', 'INR', 'SEK', 'TRY'];
18
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/destinations/amazon-ads/utils.ts"],"names":[],"mappings":";;;AAAA,wDAAiD;AAEjD,MAAa,cAAe,SAAQ,wBAAS;CAO5C;AAPD,wCAOC;AAmBY,QAAA,iBAAiB,GAAQ;IACpC,oCAAoC,EAAE,sCAAsC;IAC5E,uCAAuC,EAAE,wCAAwC;IACjF,uCAAuC,EAAE,wCAAwC;CAClF,CAAA;AACY,QAAA,SAAS,GAAG;IACvB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;CACjB,CAAA;AACY,QAAA,QAAQ,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA"}
@@ -1,3 +0,0 @@
1
- export declare const PERSONALIZE_API_BASE_URL = "https://personalization-api.contentstack.com";
2
- export declare const PERSONALIZE_EDGE_API_URL = "https://personalization-edge.contentstack.com";
3
- export declare const ACCESS_TOKEN_URL = "https://developerhub-api.contentstack.com/apps/token";
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ACCESS_TOKEN_URL = exports.PERSONALIZE_EDGE_API_URL = exports.PERSONALIZE_API_BASE_URL = void 0;
4
- exports.PERSONALIZE_API_BASE_URL = 'https://personalization-api.contentstack.com';
5
- exports.PERSONALIZE_EDGE_API_URL = 'https://personalization-edge.contentstack.com';
6
- exports.ACCESS_TOKEN_URL = 'https://developerhub-api.contentstack.com/apps/token';
7
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/destinations/contentstack/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG,8CAA8C,CAAA;AACzE,QAAA,wBAAwB,GAAG,+CAA+C,CAAA;AAC1E,QAAA,gBAAgB,GAAG,sDAAsD,CAAA"}
@@ -1,22 +0,0 @@
1
- import { Payload } from './generated-types';
2
- export interface Data {
3
- payload: Payload & {
4
- context?: {
5
- [k: string]: unknown;
6
- personas?: {
7
- computation_key?: string;
8
- computation_class?: string;
9
- };
10
- };
11
- };
12
- rawData?: {
13
- context?: {
14
- personas?: {
15
- computation_key?: string;
16
- computation_class?: string;
17
- };
18
- };
19
- properties?: Record<string, boolean>;
20
- traits?: Record<string, boolean>;
21
- };
22
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/destinations/dynamic-yield-audiences/syncAudience/types.ts"],"names":[],"mappings":""}
@@ -1,8 +0,0 @@
1
- export declare type AudienceAction = 'ADD' | 'REMOVE';
2
- export declare enum Priority {
3
- UserIdThenEmail = "user_id_then_email",
4
- UserIdThenAnonymousId = "user_id_then_anonymousId",
5
- UserIdThenEmailThenAnonymousId = "user_id_then_email_then_anonymousId",
6
- UserIdOnly = "user_id_only",
7
- EmailOnly = "email_only"
8
- }
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Priority = void 0;
4
- var Priority;
5
- (function (Priority) {
6
- Priority["UserIdThenEmail"] = "user_id_then_email";
7
- Priority["UserIdThenAnonymousId"] = "user_id_then_anonymousId";
8
- Priority["UserIdThenEmailThenAnonymousId"] = "user_id_then_email_then_anonymousId";
9
- Priority["UserIdOnly"] = "user_id_only";
10
- Priority["EmailOnly"] = "email_only";
11
- })(Priority = exports.Priority || (exports.Priority = {}));
12
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/destinations/dynamic-yield-audiences/types.ts"],"names":[],"mappings":";;;AAEA,IAAY,QAMX;AAND,WAAY,QAAQ;IAClB,kDAAsC,CAAA;IACtC,8DAAkD,CAAA;IAClD,kFAAsE,CAAA;IACtE,uCAA2B,CAAA;IAC3B,oCAAwB,CAAA;AAC1B,CAAC,EANW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAMnB"}
@@ -1,3 +0,0 @@
1
- import type { DestinationDefinition } from '@segment/actions-core';
2
- import type { Settings } from './generated-types';
3
- export declare const destinationDefinition: DestinationDefinition<Settings>;
@@ -1,70 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.destinationDefinition = void 0;
4
- const sendEmail_1 = require("./sendEmail");
5
- const previewApiLookup_1 = require("./previewApiLookup");
6
- exports.destinationDefinition = {
7
- name: 'Engage Messaging SendGrid',
8
- slug: 'actions-personas-messaging-sendgrid',
9
- mode: 'cloud',
10
- description: 'This is an Engage specific action to send an email',
11
- authentication: {
12
- scheme: 'custom',
13
- fields: {
14
- unlayerApiKey: {
15
- label: 'Unlayer API Key',
16
- type: 'password',
17
- description: 'The API key for your Unlayer account'
18
- },
19
- sendGridApiKey: {
20
- label: 'API Key',
21
- type: 'password',
22
- description: 'The Api Key for your SendGrid account',
23
- required: true
24
- },
25
- profileApiEnvironment: {
26
- label: 'Profile API Environment',
27
- description: 'Profile API Environment',
28
- type: 'string',
29
- required: true
30
- },
31
- profileApiAccessToken: {
32
- label: 'Profile API Access Token',
33
- description: 'Profile API Access Token',
34
- type: 'password',
35
- required: true
36
- },
37
- spaceId: {
38
- label: 'Space ID',
39
- description: 'Space ID',
40
- type: 'string',
41
- required: true
42
- },
43
- sourceId: {
44
- label: 'Source ID',
45
- description: 'Source ID',
46
- type: 'string',
47
- required: true
48
- },
49
- region: {
50
- label: 'Region',
51
- description: 'The region where the email is originating from',
52
- type: 'string',
53
- choices: [
54
- { value: 'us-west-2', label: 'US West 2' },
55
- { value: 'eu-west-1', label: 'EU West 1' }
56
- ],
57
- default: 'us-west-2',
58
- required: false
59
- }
60
- },
61
- testAuthentication: (request) => {
62
- return request('https://api.sendgrid.com/v3/mail_settings');
63
- }
64
- },
65
- actions: {
66
- sendEmail: sendEmail_1.actionDefinition,
67
- previewApiLookup: previewApiLookup_1.actionDefinition
68
- }
69
- };
70
- //# sourceMappingURL=destinationDefinition.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"destinationDefinition.js","sourceRoot":"","sources":["../../../../src/destinations/engage/sendgrid/destinationDefinition.ts"],"names":[],"mappings":";;;AAEA,2CAA2D;AAC3D,yDAAyE;AAE5D,QAAA,qBAAqB,GAAoC;IACpE,IAAI,EAAE,2BAA2B;IACjC,IAAI,EAAE,qCAAqC;IAC3C,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,oDAAoD;IACjE,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,aAAa,EAAE;gBACb,KAAK,EAAE,iBAAiB;gBACxB,IAAI,EAAE,UAAU;gBAChB,WAAW,EAAE,sCAAsC;aACpD;YACD,cAAc,EAAE;gBACd,KAAK,EAAE,SAAS;gBAChB,IAAI,EAAE,UAAU;gBAChB,WAAW,EAAE,uCAAuC;gBACpD,QAAQ,EAAE,IAAI;aACf;YACD,qBAAqB,EAAE;gBACrB,KAAK,EAAE,yBAAyB;gBAChC,WAAW,EAAE,yBAAyB;gBACtC,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,qBAAqB,EAAE;gBACrB,KAAK,EAAE,0BAA0B;gBACjC,WAAW,EAAE,0BAA0B;gBACvC,IAAI,EAAE,UAAU;gBAChB,QAAQ,EAAE,IAAI;aACf;YACD,OAAO,EAAE;gBACP,KAAK,EAAE,UAAU;gBACjB,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,QAAQ,EAAE;gBACR,KAAK,EAAE,WAAW;gBAClB,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,MAAM,EAAE;gBACN,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,gDAAgD;gBAC7D,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;oBAC1C,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;iBAC3C;gBACD,OAAO,EAAE,WAAW;gBACpB,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,kBAAkB,EAAE,CAAC,OAAO,EAAE,EAAE;YAC9B,OAAO,OAAO,CAAC,2CAA2C,CAAC,CAAA;QAC7D,CAAC;KACF;IACD,OAAO,EAAE;QACP,SAAS,EAAT,4BAAS;QACT,gBAAgB,EAAhB,mCAAgB;KACjB;CACF,CAAA"}
@@ -1 +0,0 @@
1
- export * from '../../engage-messaging-sendgrid/generated-types';
@@ -1,14 +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("../../engage-messaging-sendgrid/generated-types"), exports);
14
- //# sourceMappingURL=generated-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/engage/sendgrid/generated-types.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kFAA+D"}
@@ -1,2 +0,0 @@
1
- import { destinationDefinition } from './destinationDefinition';
2
- export default destinationDefinition;
@@ -1,5 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/engage/sendgrid/index.ts"],"names":[],"mappings":";;AAAA,mEAA+D;AAC/D,kBAAe,6CAAqB,CAAA"}
@@ -1,4 +0,0 @@
1
- import { ActionDefinition } from '@segment/actions-core';
2
- import { Settings } from '../generated-types';
3
- import { Payload } from './generated-types';
4
- export declare const actionDefinition: ActionDefinition<Settings, Payload>;
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.actionDefinition = void 0;
4
- const apiLookups_1 = require("../../utils/apiLookups");
5
- exports.actionDefinition = {
6
- title: 'Perform a single API lookup',
7
- description: 'Perform a single API lookup and return the response',
8
- fields: {
9
- ...apiLookups_1.apiLookupActionFields,
10
- traits: {
11
- label: 'Traits',
12
- description: "A user profile's traits",
13
- type: 'object',
14
- required: false
15
- }
16
- },
17
- perform: async (request, { settings, payload, statsContext, logger }) => {
18
- const statsClient = statsContext?.statsClient;
19
- const tags = statsContext?.tags ?? [];
20
- const { traits = {}, ...apiLookupConfig } = payload;
21
- const profile = { traits: traits };
22
- const data = await apiLookups_1.performApiLookup(request, apiLookupConfig, profile, statsClient, tags, settings, logger);
23
- return {
24
- data
25
- };
26
- }
27
- };
28
- //# sourceMappingURL=actionDefinition.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"actionDefinition.js","sourceRoot":"","sources":["../../../../../src/destinations/engage/sendgrid/previewApiLookup/actionDefinition.ts"],"names":[],"mappings":";;;AAGA,uDAAgF;AAGnE,QAAA,gBAAgB,GAAwC;IACnE,KAAK,EAAE,6BAA6B;IACpC,WAAW,EAAE,qDAAqD;IAClE,MAAM,EAAE;QACN,GAAG,kCAAqB;QACxB,MAAM,EAAE;YACN,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,yBAAyB;YACtC,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;SAChB;KACF;IACD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE;QACtE,MAAM,WAAW,GAAG,YAAY,EAAE,WAAW,CAAA;QAC7C,MAAM,IAAI,GAAG,YAAY,EAAE,IAAI,IAAI,EAAE,CAAA;QACrC,MAAM,EAAE,MAAM,GAAG,EAAE,EAAE,GAAG,eAAe,EAAE,GAAG,OAAO,CAAA;QACnD,MAAM,OAAO,GAAY,EAAE,MAAM,EAAE,MAAgC,EAAE,CAAA;QACrE,MAAM,IAAI,GAAG,MAAM,6BAAgB,CAAC,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAA;QAC3G,OAAO;YACL,IAAI;SACL,CAAA;IACH,CAAC;CACF,CAAA"}
@@ -1 +0,0 @@
1
- export * from '../../../engage-messaging-sendgrid/previewApiLookup.types';
@@ -1,14 +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("../../../engage-messaging-sendgrid/previewApiLookup.types"), exports);
14
- //# sourceMappingURL=generated-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../../src/destinations/engage/sendgrid/previewApiLookup/generated-types.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4FAAyE"}
@@ -1 +0,0 @@
1
- export * from './actionDefinition';
@@ -1,14 +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("./actionDefinition"), exports);
14
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/destinations/engage/sendgrid/previewApiLookup/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkC"}