@segment/action-destinations 3.299.0 → 3.300.1-klaviyo.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 (384) hide show
  1. package/dist/destinations/amazon-ads/generated-types.d.ts +3 -0
  2. package/dist/destinations/amazon-ads/generated-types.js.map +1 -0
  3. package/dist/destinations/amazon-ads/index.d.ts +4 -0
  4. package/dist/destinations/amazon-ads/index.js +87 -0
  5. package/dist/destinations/amazon-ads/index.js.map +1 -0
  6. package/dist/destinations/amazon-ads/syncAudiences/generated-types.d.ts +2 -0
  7. package/dist/destinations/amazon-ads/syncAudiences/generated-types.js.map +1 -0
  8. package/dist/destinations/amazon-ads/syncAudiences/index.d.ts +5 -0
  9. package/dist/destinations/amazon-ads/syncAudiences/index.js +15 -0
  10. package/dist/destinations/amazon-ads/syncAudiences/index.js.map +1 -0
  11. package/dist/destinations/amazon-ads/types.d.ts +22 -0
  12. package/dist/destinations/amazon-ads/types.js +11 -0
  13. package/dist/destinations/amazon-ads/types.js.map +1 -0
  14. package/dist/destinations/amazon-ads/utils.d.ts +31 -0
  15. package/dist/destinations/amazon-ads/utils.js +18 -0
  16. package/dist/destinations/amazon-ads/utils.js.map +1 -0
  17. package/dist/destinations/blackbaud-raisers-edge-nxt/utils/index.d.ts +1 -1
  18. package/dist/destinations/contentstack/constants.d.ts +3 -0
  19. package/dist/destinations/contentstack/constants.js +7 -0
  20. package/dist/destinations/contentstack/constants.js.map +1 -0
  21. package/dist/destinations/customerio/utils.d.ts +1 -1
  22. package/dist/destinations/dynamic-yield-audiences/syncAudience/types.d.ts +22 -0
  23. package/dist/destinations/dynamic-yield-audiences/syncAudience/types.js +3 -0
  24. package/dist/destinations/dynamic-yield-audiences/syncAudience/types.js.map +1 -0
  25. package/dist/destinations/dynamic-yield-audiences/types.d.ts +8 -0
  26. package/dist/destinations/dynamic-yield-audiences/types.js +12 -0
  27. package/dist/destinations/dynamic-yield-audiences/types.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/sendgrid/previewApiLookup/actionDefinition.d.ts +4 -0
  38. package/dist/destinations/engage/sendgrid/previewApiLookup/actionDefinition.js +28 -0
  39. package/dist/destinations/engage/sendgrid/previewApiLookup/actionDefinition.js.map +1 -0
  40. package/dist/destinations/engage/sendgrid/previewApiLookup/generated-types.d.ts +1 -0
  41. package/dist/destinations/engage/sendgrid/previewApiLookup/generated-types.js +14 -0
  42. package/dist/destinations/engage/sendgrid/previewApiLookup/generated-types.js.map +1 -0
  43. package/dist/destinations/engage/sendgrid/previewApiLookup/index.d.ts +1 -0
  44. package/dist/destinations/engage/sendgrid/previewApiLookup/index.js +14 -0
  45. package/dist/destinations/engage/sendgrid/previewApiLookup/index.js.map +1 -0
  46. package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.d.ts +44 -0
  47. package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js +419 -0
  48. package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js.map +1 -0
  49. package/dist/destinations/engage/sendgrid/sendEmail/UnlayerResponse.d.ts +12 -0
  50. package/dist/destinations/engage/sendgrid/sendEmail/UnlayerResponse.js +3 -0
  51. package/dist/destinations/engage/sendgrid/sendEmail/UnlayerResponse.js.map +1 -0
  52. package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.d.ts +4 -0
  53. package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.js +257 -0
  54. package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.js.map +1 -0
  55. package/dist/destinations/engage/sendgrid/sendEmail/generated-types.d.ts +1 -0
  56. package/dist/destinations/engage/sendgrid/sendEmail/generated-types.js +14 -0
  57. package/dist/destinations/engage/sendgrid/sendEmail/generated-types.js.map +1 -0
  58. package/dist/destinations/engage/sendgrid/sendEmail/index.d.ts +1 -0
  59. package/dist/destinations/engage/sendgrid/sendEmail/index.js +14 -0
  60. package/dist/destinations/engage/sendgrid/sendEmail/index.js.map +1 -0
  61. package/dist/destinations/engage/sendgrid/sendEmail/insertEmailPreviewText.d.ts +1 -0
  62. package/dist/destinations/engage/sendgrid/sendEmail/insertEmailPreviewText.js +23 -0
  63. package/dist/destinations/engage/sendgrid/sendEmail/insertEmailPreviewText.js.map +1 -0
  64. package/dist/destinations/engage/sendgrid/sendEmail/isRestrictedDomain.d.ts +1 -0
  65. package/dist/destinations/engage/sendgrid/sendEmail/isRestrictedDomain.js +14 -0
  66. package/dist/destinations/engage/sendgrid/sendEmail/isRestrictedDomain.js.map +1 -0
  67. package/dist/destinations/engage/twilio/destinationDefinition.d.ts +3 -0
  68. package/dist/destinations/engage/twilio/destinationDefinition.js +172 -0
  69. package/dist/destinations/engage/twilio/destinationDefinition.js.map +1 -0
  70. package/dist/destinations/engage/twilio/generated-types.d.ts +1 -0
  71. package/dist/destinations/engage/twilio/generated-types.js +14 -0
  72. package/dist/destinations/engage/twilio/generated-types.js.map +1 -0
  73. package/dist/destinations/engage/twilio/index.d.ts +2 -0
  74. package/dist/destinations/engage/twilio/index.js +5 -0
  75. package/dist/destinations/engage/twilio/index.js.map +1 -0
  76. package/dist/destinations/engage/twilio/sendMobilePush/PushSender.d.ts +28 -0
  77. package/dist/destinations/engage/twilio/sendMobilePush/PushSender.js +151 -0
  78. package/dist/destinations/engage/twilio/sendMobilePush/PushSender.js.map +1 -0
  79. package/dist/destinations/engage/twilio/sendMobilePush/actionDefinition.d.ts +4 -0
  80. package/dist/destinations/engage/twilio/sendMobilePush/actionDefinition.js +250 -0
  81. package/dist/destinations/engage/twilio/sendMobilePush/actionDefinition.js.map +1 -0
  82. package/dist/destinations/engage/twilio/sendMobilePush/generated-types.d.ts +1 -0
  83. package/dist/destinations/engage/twilio/sendMobilePush/generated-types.js +14 -0
  84. package/dist/destinations/engage/twilio/sendMobilePush/generated-types.js.map +1 -0
  85. package/dist/destinations/engage/twilio/sendMobilePush/index.d.ts +1 -0
  86. package/dist/destinations/engage/twilio/sendMobilePush/index.js +14 -0
  87. package/dist/destinations/engage/twilio/sendMobilePush/index.js.map +1 -0
  88. package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.d.ts +9 -0
  89. package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.js +72 -0
  90. package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.js.map +1 -0
  91. package/dist/destinations/engage/twilio/sendSms/actionDefinition.d.ts +4 -0
  92. package/dist/destinations/engage/twilio/sendSms/actionDefinition.js +162 -0
  93. package/dist/destinations/engage/twilio/sendSms/actionDefinition.js.map +1 -0
  94. package/dist/destinations/engage/twilio/sendSms/generated-types.d.ts +1 -0
  95. package/dist/destinations/engage/twilio/sendSms/generated-types.js +14 -0
  96. package/dist/destinations/engage/twilio/sendSms/generated-types.js.map +1 -0
  97. package/dist/destinations/engage/twilio/sendSms/index.d.ts +1 -0
  98. package/dist/destinations/engage/twilio/sendSms/index.js +14 -0
  99. package/dist/destinations/engage/twilio/sendSms/index.js.map +1 -0
  100. package/dist/destinations/engage/twilio/sendWhatsApp/WhatsAppMessageSender.d.ts +9 -0
  101. package/dist/destinations/engage/twilio/sendWhatsApp/WhatsAppMessageSender.js +89 -0
  102. package/dist/destinations/engage/twilio/sendWhatsApp/WhatsAppMessageSender.js.map +1 -0
  103. package/dist/destinations/engage/twilio/sendWhatsApp/actionDefinition.d.ts +4 -0
  104. package/dist/destinations/engage/twilio/sendWhatsApp/actionDefinition.js +136 -0
  105. package/dist/destinations/engage/twilio/sendWhatsApp/actionDefinition.js.map +1 -0
  106. package/dist/destinations/engage/twilio/sendWhatsApp/generated-types.d.ts +1 -0
  107. package/dist/destinations/engage/twilio/sendWhatsApp/generated-types.js +14 -0
  108. package/dist/destinations/engage/twilio/sendWhatsApp/generated-types.js.map +1 -0
  109. package/dist/destinations/engage/twilio/sendWhatsApp/index.d.ts +1 -0
  110. package/dist/destinations/engage/twilio/sendWhatsApp/index.js +14 -0
  111. package/dist/destinations/engage/twilio/sendWhatsApp/index.js.map +1 -0
  112. package/dist/destinations/engage/twilio/utils/PhoneMessageSender.d.ts +16 -0
  113. package/dist/destinations/engage/twilio/utils/PhoneMessageSender.js +71 -0
  114. package/dist/destinations/engage/twilio/utils/PhoneMessageSender.js.map +1 -0
  115. package/dist/destinations/engage/twilio/utils/TwilioMessageSender.d.ts +16 -0
  116. package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js +115 -0
  117. package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js.map +1 -0
  118. package/dist/destinations/engage/twilio/utils/index.d.ts +2 -0
  119. package/dist/destinations/engage/twilio/utils/index.js +15 -0
  120. package/dist/destinations/engage/twilio/utils/index.js.map +1 -0
  121. package/dist/destinations/engage/twilio/utils/types.d.ts +23 -0
  122. package/dist/destinations/engage/twilio/utils/types.js +3 -0
  123. package/dist/destinations/engage/twilio/utils/types.js.map +1 -0
  124. package/dist/destinations/engage/utils/AggregateError.d.ts +14 -0
  125. package/dist/destinations/engage/utils/AggregateError.js +26 -0
  126. package/dist/destinations/engage/utils/AggregateError.js.map +1 -0
  127. package/dist/destinations/engage/utils/EngageActionPerformer.d.ts +42 -0
  128. package/dist/destinations/engage/utils/EngageActionPerformer.js +148 -0
  129. package/dist/destinations/engage/utils/EngageActionPerformer.js.map +1 -0
  130. package/dist/destinations/engage/utils/EngageLogger.d.ts +18 -0
  131. package/dist/destinations/engage/utils/EngageLogger.js +52 -0
  132. package/dist/destinations/engage/utils/EngageLogger.js.map +1 -0
  133. package/dist/destinations/engage/utils/EngageStats.d.ts +18 -0
  134. package/dist/destinations/engage/utils/EngageStats.js +95 -0
  135. package/dist/destinations/engage/utils/EngageStats.js.map +1 -0
  136. package/dist/destinations/engage/utils/IntegrationErrorWrapper.d.ts +12 -0
  137. package/dist/destinations/engage/utils/IntegrationErrorWrapper.js +31 -0
  138. package/dist/destinations/engage/utils/IntegrationErrorWrapper.js.map +1 -0
  139. package/dist/destinations/engage/utils/MessageSendPerformer.d.ts +65 -0
  140. package/dist/destinations/engage/utils/MessageSendPerformer.js +211 -0
  141. package/dist/destinations/engage/utils/MessageSendPerformer.js.map +1 -0
  142. package/dist/destinations/engage/utils/Profile.d.ts +6 -0
  143. package/dist/destinations/engage/utils/Profile.js +3 -0
  144. package/dist/destinations/engage/utils/Profile.js.map +1 -0
  145. package/dist/destinations/engage/utils/ResponseError.d.ts +25 -0
  146. package/dist/destinations/engage/utils/ResponseError.js +22 -0
  147. package/dist/destinations/engage/utils/ResponseError.js.map +1 -0
  148. package/dist/destinations/engage/utils/apiLookups.d.ts +22 -0
  149. package/dist/destinations/engage/utils/apiLookups.js +189 -0
  150. package/dist/destinations/engage/utils/apiLookups.js.map +1 -0
  151. package/dist/destinations/engage/utils/getProfileApiEndpoint.d.ts +2 -0
  152. package/dist/destinations/engage/utils/getProfileApiEndpoint.js +10 -0
  153. package/dist/destinations/engage/utils/getProfileApiEndpoint.js.map +1 -0
  154. package/dist/destinations/engage/utils/index.d.ts +9 -0
  155. package/dist/destinations/engage/utils/index.js +22 -0
  156. package/dist/destinations/engage/utils/index.js.map +1 -0
  157. package/dist/destinations/engage/utils/isDestinationActionService.d.ts +1 -0
  158. package/dist/destinations/engage/utils/isDestinationActionService.js +8 -0
  159. package/dist/destinations/engage/utils/isDestinationActionService.js.map +1 -0
  160. package/dist/destinations/engage/utils/isRetryableError.d.ts +2 -0
  161. package/dist/destinations/engage/utils/isRetryableError.js +33 -0
  162. package/dist/destinations/engage/utils/isRetryableError.js.map +1 -0
  163. package/dist/destinations/engage/utils/operationTracking/GenericMethodDecorator.d.ts +1 -0
  164. package/dist/destinations/engage/utils/operationTracking/GenericMethodDecorator.js +3 -0
  165. package/dist/destinations/engage/utils/operationTracking/GenericMethodDecorator.js.map +1 -0
  166. package/dist/destinations/engage/utils/operationTracking/OperationDecorator.d.ts +46 -0
  167. package/dist/destinations/engage/utils/operationTracking/OperationDecorator.js +46 -0
  168. package/dist/destinations/engage/utils/operationTracking/OperationDecorator.js.map +1 -0
  169. package/dist/destinations/engage/utils/operationTracking/OperationDuration.d.ts +12 -0
  170. package/dist/destinations/engage/utils/operationTracking/OperationDuration.js +23 -0
  171. package/dist/destinations/engage/utils/operationTracking/OperationDuration.js.map +1 -0
  172. package/dist/destinations/engage/utils/operationTracking/OperationErrorHandler.d.ts +12 -0
  173. package/dist/destinations/engage/utils/operationTracking/OperationErrorHandler.js +35 -0
  174. package/dist/destinations/engage/utils/operationTracking/OperationErrorHandler.js.map +1 -0
  175. package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.d.ts +14 -0
  176. package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.js +31 -0
  177. package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.js.map +1 -0
  178. package/dist/destinations/engage/utils/operationTracking/OperationLogger.d.ts +31 -0
  179. package/dist/destinations/engage/utils/operationTracking/OperationLogger.js +104 -0
  180. package/dist/destinations/engage/utils/operationTracking/OperationLogger.js.map +1 -0
  181. package/dist/destinations/engage/utils/operationTracking/OperationStats.d.ts +39 -0
  182. package/dist/destinations/engage/utils/operationTracking/OperationStats.js +130 -0
  183. package/dist/destinations/engage/utils/operationTracking/OperationStats.js.map +1 -0
  184. package/dist/destinations/engage/utils/operationTracking/OperationTracker.test.d.ts +1 -0
  185. package/dist/destinations/engage/utils/operationTracking/OperationTracker.test.js +377 -0
  186. package/dist/destinations/engage/utils/operationTracking/OperationTracker.test.js.map +1 -0
  187. package/dist/destinations/engage/utils/operationTracking/OperationTree.d.ts +23 -0
  188. package/dist/destinations/engage/utils/operationTracking/OperationTree.js +49 -0
  189. package/dist/destinations/engage/utils/operationTracking/OperationTree.js.map +1 -0
  190. package/dist/destinations/engage/utils/operationTracking/TrackedError.d.ts +6 -0
  191. package/dist/destinations/engage/utils/operationTracking/TrackedError.js +3 -0
  192. package/dist/destinations/engage/utils/operationTracking/TrackedError.js.map +1 -0
  193. package/dist/destinations/engage/utils/operationTracking/index.d.ts +10 -0
  194. package/dist/destinations/engage/utils/operationTracking/index.js +23 -0
  195. package/dist/destinations/engage/utils/operationTracking/index.js.map +1 -0
  196. package/dist/destinations/engage/utils/operationTracking/wrapTryCatchFinallyPromisable.d.ts +21 -0
  197. package/dist/destinations/engage/utils/operationTracking/wrapTryCatchFinallyPromisable.js +99 -0
  198. package/dist/destinations/engage/utils/operationTracking/wrapTryCatchFinallyPromisable.js.map +1 -0
  199. package/dist/destinations/engage/utils/testUtils.d.ts +6 -0
  200. package/dist/destinations/engage/utils/testUtils.js +26 -0
  201. package/dist/destinations/engage/utils/testUtils.js.map +1 -0
  202. package/dist/destinations/engage/utils/track.d.ts +52 -0
  203. package/dist/destinations/engage/utils/track.js +9 -0
  204. package/dist/destinations/engage/utils/track.js.map +1 -0
  205. package/dist/destinations/engage-messaging-sendgrid/previewApiLookup.types.d.ts +16 -0
  206. package/dist/destinations/engage-messaging-sendgrid/previewApiLookup.types.js +3 -0
  207. package/dist/destinations/engage-messaging-sendgrid/previewApiLookup.types.js.map +1 -0
  208. package/dist/destinations/engage-messaging-sendgrid/sendEmail.types.d.ts +56 -0
  209. package/dist/destinations/engage-messaging-sendgrid/sendEmail.types.js +3 -0
  210. package/dist/destinations/engage-messaging-sendgrid/sendEmail.types.js.map +1 -0
  211. package/dist/destinations/engage-messaging-twilio/sendMobilePush.types.d.ts +39 -0
  212. package/dist/destinations/engage-messaging-twilio/sendMobilePush.types.js +3 -0
  213. package/dist/destinations/engage-messaging-twilio/sendMobilePush.types.js.map +1 -0
  214. package/dist/destinations/engage-messaging-twilio/sendSms.types.d.ts +27 -0
  215. package/dist/destinations/engage-messaging-twilio/sendSms.types.js +3 -0
  216. package/dist/destinations/engage-messaging-twilio/sendSms.types.js.map +1 -0
  217. package/dist/destinations/engage-messaging-twilio/sendWhatsApp.types.d.ts +25 -0
  218. package/dist/destinations/engage-messaging-twilio/sendWhatsApp.types.js +3 -0
  219. package/dist/destinations/engage-messaging-twilio/sendWhatsApp.types.js.map +1 -0
  220. package/dist/destinations/facebook-custom-audiences/add/generated-types.d.ts +2 -0
  221. package/dist/destinations/facebook-custom-audiences/add/generated-types.js +3 -0
  222. package/dist/destinations/facebook-custom-audiences/add/generated-types.js.map +1 -0
  223. package/dist/destinations/facebook-custom-audiences/add/index.d.ts +5 -0
  224. package/dist/destinations/facebook-custom-audiences/add/index.js +11 -0
  225. package/dist/destinations/facebook-custom-audiences/add/index.js.map +1 -0
  226. package/dist/destinations/facebook-custom-audiences/remove/generated-types.d.ts +2 -0
  227. package/dist/destinations/facebook-custom-audiences/remove/generated-types.js +3 -0
  228. package/dist/destinations/facebook-custom-audiences/remove/generated-types.js.map +1 -0
  229. package/dist/destinations/facebook-custom-audiences/remove/index.d.ts +5 -0
  230. package/dist/destinations/facebook-custom-audiences/remove/index.js +11 -0
  231. package/dist/destinations/facebook-custom-audiences/remove/index.js.map +1 -0
  232. package/dist/destinations/first-party-dv360/functions.d.ts +17 -0
  233. package/dist/destinations/first-party-dv360/functions.js +38 -0
  234. package/dist/destinations/first-party-dv360/functions.js.map +1 -0
  235. package/dist/destinations/klaviyo/addProfileToList/generated-types.d.ts +1 -0
  236. package/dist/destinations/klaviyo/addProfileToList/index.js +14 -5
  237. package/dist/destinations/klaviyo/addProfileToList/index.js.map +1 -1
  238. package/dist/destinations/klaviyo/functions.d.ts +3 -2
  239. package/dist/destinations/klaviyo/functions.js +23 -7
  240. package/dist/destinations/klaviyo/functions.js.map +1 -1
  241. package/dist/destinations/klaviyo/orderCompleted/formatters.d.ts +26 -0
  242. package/dist/destinations/klaviyo/orderCompleted/formatters.js +62 -0
  243. package/dist/destinations/klaviyo/orderCompleted/formatters.js.map +1 -0
  244. package/dist/destinations/klaviyo/orderCompleted/generated-types.d.ts +1 -0
  245. package/dist/destinations/klaviyo/orderCompleted/index.js +15 -2
  246. package/dist/destinations/klaviyo/orderCompleted/index.js.map +1 -1
  247. package/dist/destinations/klaviyo/orderCompleted/types.d.ts +2 -0
  248. package/dist/destinations/klaviyo/orderCompleted/types.js +3 -0
  249. package/dist/destinations/klaviyo/orderCompleted/types.js.map +1 -0
  250. package/dist/destinations/klaviyo/properties.d.ts +1 -0
  251. package/dist/destinations/klaviyo/properties.js +7 -1
  252. package/dist/destinations/klaviyo/properties.js.map +1 -1
  253. package/dist/destinations/klaviyo/removeProfile/generated-types.d.ts +1 -0
  254. package/dist/destinations/klaviyo/removeProfile/index.js +24 -7
  255. package/dist/destinations/klaviyo/removeProfile/index.js.map +1 -1
  256. package/dist/destinations/klaviyo/removeProfileFromList/generated-types.d.ts +1 -0
  257. package/dist/destinations/klaviyo/removeProfileFromList/index.js +18 -6
  258. package/dist/destinations/klaviyo/removeProfileFromList/index.js.map +1 -1
  259. package/dist/destinations/klaviyo/subscribeProfile/index.js +9 -1
  260. package/dist/destinations/klaviyo/subscribeProfile/index.js.map +1 -1
  261. package/dist/destinations/klaviyo/trackEvent/index.js +4 -0
  262. package/dist/destinations/klaviyo/trackEvent/index.js.map +1 -1
  263. package/dist/destinations/klaviyo/unsubscribeProfile/index.js +9 -1
  264. package/dist/destinations/klaviyo/unsubscribeProfile/index.js.map +1 -1
  265. package/dist/destinations/klaviyo/upsertProfile/index.js +9 -1
  266. package/dist/destinations/klaviyo/upsertProfile/index.js.map +1 -1
  267. package/dist/destinations/mappings-two-test/generated-types.d.ts +3 -0
  268. package/dist/destinations/mappings-two-test/generated-types.js +3 -0
  269. package/dist/destinations/mappings-two-test/generated-types.js.map +1 -0
  270. package/dist/destinations/mappings-two-test/index.js +34 -0
  271. package/dist/destinations/mappings-two-test/index.js.map +1 -0
  272. package/dist/destinations/mappings-two-test/inputMethods/generated-types.d.ts +29 -0
  273. package/dist/destinations/mappings-two-test/inputMethods/generated-types.js +3 -0
  274. package/dist/destinations/mappings-two-test/inputMethods/generated-types.js.map +1 -0
  275. package/dist/destinations/mappings-two-test/inputMethods/index.d.ts +5 -0
  276. package/dist/destinations/mappings-two-test/inputMethods/index.js +200 -0
  277. package/dist/destinations/mappings-two-test/inputMethods/index.js.map +1 -0
  278. package/dist/destinations/mappings-two-test/kitchenSink/generated-types.d.ts +53 -0
  279. package/dist/destinations/mappings-two-test/kitchenSink/generated-types.js +3 -0
  280. package/dist/destinations/mappings-two-test/kitchenSink/generated-types.js.map +1 -0
  281. package/dist/destinations/mappings-two-test/kitchenSink/index.d.ts +5 -0
  282. package/dist/destinations/mappings-two-test/kitchenSink/index.js +289 -0
  283. package/dist/destinations/mappings-two-test/kitchenSink/index.js.map +1 -0
  284. package/dist/destinations/mappings-two-test/sendEvent/generated-types.d.ts +17 -0
  285. package/dist/destinations/mappings-two-test/sendEvent/generated-types.js +3 -0
  286. package/dist/destinations/mappings-two-test/sendEvent/generated-types.js.map +1 -0
  287. package/dist/destinations/mappings-two-test/sendEvent/index.d.ts +5 -0
  288. package/dist/destinations/mappings-two-test/sendEvent/index.js +345 -0
  289. package/dist/destinations/mappings-two-test/sendEvent/index.js.map +1 -0
  290. package/dist/destinations/responsys/asyncMergePetRecords/generated-types.d.ts +14 -0
  291. package/dist/destinations/responsys/asyncMergePetRecords/generated-types.js +3 -0
  292. package/dist/destinations/responsys/asyncMergePetRecords/generated-types.js.map +1 -0
  293. package/dist/destinations/responsys/asyncMergePetRecords/index.d.ts +5 -0
  294. package/dist/destinations/responsys/asyncMergePetRecords/index.js +113 -0
  295. package/dist/destinations/responsys/asyncMergePetRecords/index.js.map +1 -0
  296. package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.d.ts +20 -0
  297. package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.js +3 -0
  298. package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.js.map +1 -0
  299. package/dist/destinations/responsys/asyncMergeProfileListMembers/index.d.ts +5 -0
  300. package/dist/destinations/responsys/asyncMergeProfileListMembers/index.js +174 -0
  301. package/dist/destinations/responsys/asyncMergeProfileListMembers/index.js.map +1 -0
  302. package/dist/destinations/responsys/rsp-operations.d.ts +14 -0
  303. package/dist/destinations/responsys/rsp-operations.js +33 -0
  304. package/dist/destinations/responsys/rsp-operations.js.map +1 -0
  305. package/dist/destinations/responsys/rsp-properties.d.ts +4 -0
  306. package/dist/destinations/responsys/rsp-properties.js +27 -0
  307. package/dist/destinations/responsys/rsp-properties.js.map +1 -0
  308. package/dist/destinations/responsys-cloud/generated-types.d.ts +20 -0
  309. package/dist/destinations/responsys-cloud/generated-types.js +3 -0
  310. package/dist/destinations/responsys-cloud/generated-types.js.map +1 -0
  311. package/dist/destinations/responsys-cloud/index.d.ts +4 -0
  312. package/dist/destinations/responsys-cloud/index.js +207 -0
  313. package/dist/destinations/responsys-cloud/index.js.map +1 -0
  314. package/dist/destinations/responsys-cloud/sendAudience/generated-types.d.ts +16 -0
  315. package/dist/destinations/responsys-cloud/sendAudience/generated-types.js +3 -0
  316. package/dist/destinations/responsys-cloud/sendAudience/generated-types.js.map +1 -0
  317. package/dist/destinations/responsys-cloud/sendAudience/index.js +109 -0
  318. package/dist/destinations/responsys-cloud/sendAudience/index.js.map +1 -0
  319. package/dist/destinations/responsys-cloud/sendCustomTraits/generated-types.d.ts +11 -0
  320. package/dist/destinations/responsys-cloud/sendCustomTraits/generated-types.js +3 -0
  321. package/dist/destinations/responsys-cloud/sendCustomTraits/generated-types.js.map +1 -0
  322. package/dist/destinations/responsys-cloud/sendCustomTraits/index.d.ts +5 -0
  323. package/dist/destinations/responsys-cloud/sendCustomTraits/index.js +72 -0
  324. package/dist/destinations/responsys-cloud/sendCustomTraits/index.js.map +1 -0
  325. package/dist/destinations/responsys-cloud/shared_properties.d.ts +3 -0
  326. package/dist/destinations/responsys-cloud/shared_properties.js +19 -0
  327. package/dist/destinations/responsys-cloud/shared_properties.js.map +1 -0
  328. package/dist/destinations/responsys-cloud/types.d.ts +38 -0
  329. package/dist/destinations/responsys-cloud/types.js +3 -0
  330. package/dist/destinations/responsys-cloud/types.js.map +1 -0
  331. package/dist/destinations/responsys-cloud/upsertListMember/generated-types.d.ts +14 -0
  332. package/dist/destinations/responsys-cloud/upsertListMember/generated-types.js +3 -0
  333. package/dist/destinations/responsys-cloud/upsertListMember/generated-types.js.map +1 -0
  334. package/dist/destinations/responsys-cloud/upsertListMember/index.d.ts +5 -0
  335. package/dist/destinations/responsys-cloud/upsertListMember/index.js +85 -0
  336. package/dist/destinations/responsys-cloud/upsertListMember/index.js.map +1 -0
  337. package/dist/destinations/responsys-cloud/utils.d.ts +20 -0
  338. package/dist/destinations/responsys-cloud/utils.js +179 -0
  339. package/dist/destinations/responsys-cloud/utils.js.map +1 -0
  340. package/dist/destinations/snap-conversions-api/_tests_/capiV2tests.d.ts +1 -0
  341. package/dist/destinations/snap-conversions-api/_tests_/capiV2tests.js +381 -0
  342. package/dist/destinations/snap-conversions-api/_tests_/capiV2tests.js.map +1 -0
  343. package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.d.ts +1 -0
  344. package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.js +581 -0
  345. package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.js.map +1 -0
  346. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v2.d.ts +4 -0
  347. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v2.js +97 -0
  348. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v2.js.map +1 -0
  349. package/dist/destinations/snap-conversions-api/snap-capi-properties.d.ts +30 -0
  350. package/dist/destinations/snap-conversions-api/snap-capi-properties.js +316 -0
  351. package/dist/destinations/snap-conversions-api/snap-capi-properties.js.map +1 -0
  352. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.d.ts +3 -0
  353. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js +34 -0
  354. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js.map +1 -0
  355. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.d.ts +3 -0
  356. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.js +43 -0
  357. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.js.map +1 -0
  358. package/dist/destinations/webhook-extensible/__test__/webhook.test.js.map +1 -0
  359. package/dist/destinations/webhook-extensible/generated-types.js +3 -0
  360. package/dist/destinations/webhook-extensible/generated-types.js.map +1 -0
  361. package/dist/destinations/webhook-extensible/index.d.ts +4 -0
  362. package/dist/destinations/webhook-extensible/index.js.map +1 -0
  363. package/dist/destinations/webhook-extensible/send/generated-types.js +3 -0
  364. package/dist/destinations/webhook-extensible/send/generated-types.js.map +1 -0
  365. package/dist/destinations/webhook-extensible/send/index.d.ts +5 -0
  366. package/dist/destinations/webhook-extensible/send/index.js.map +1 -0
  367. package/dist/lib/test-data.js +2 -0
  368. package/dist/lib/test-data.js.map +1 -1
  369. package/package.json +2 -2
  370. package/dist/destinations/webook-extensible/__test__/webhook.test.js.map +0 -1
  371. package/dist/destinations/webook-extensible/generated-types.js.map +0 -1
  372. package/dist/destinations/webook-extensible/index.js.map +0 -1
  373. package/dist/destinations/webook-extensible/send/generated-types.js.map +0 -1
  374. package/dist/destinations/webook-extensible/send/index.js.map +0 -1
  375. /package/dist/destinations/{webook-extensible → amazon-ads}/generated-types.js +0 -0
  376. /package/dist/destinations/{webook-extensible/send → amazon-ads/syncAudiences}/generated-types.js +0 -0
  377. /package/dist/destinations/{webook-extensible → mappings-two-test}/index.d.ts +0 -0
  378. /package/dist/destinations/{webook-extensible/send → responsys-cloud/sendAudience}/index.d.ts +0 -0
  379. /package/dist/destinations/{webook-extensible → webhook-extensible}/__test__/webhook.test.d.ts +0 -0
  380. /package/dist/destinations/{webook-extensible → webhook-extensible}/__test__/webhook.test.js +0 -0
  381. /package/dist/destinations/{webook-extensible → webhook-extensible}/generated-types.d.ts +0 -0
  382. /package/dist/destinations/{webook-extensible → webhook-extensible}/index.js +0 -0
  383. /package/dist/destinations/{webook-extensible → webhook-extensible}/send/generated-types.d.ts +0 -0
  384. /package/dist/destinations/{webook-extensible → webhook-extensible}/send/index.js +0 -0
@@ -0,0 +1,207 @@
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 sendCustomTraits_1 = __importDefault(require("./sendCustomTraits"));
8
+ const sendAudience_1 = __importDefault(require("./sendAudience"));
9
+ const upsertListMember_1 = __importDefault(require("./upsertListMember"));
10
+ const destination = {
11
+ name: 'Responsys Cloud (Actions)',
12
+ slug: 'actions-responsys-cloud',
13
+ mode: 'cloud',
14
+ description: 'Send Profile List Member and Profile Extension Table data to Responsys.',
15
+ authentication: {
16
+ scheme: 'oauth2',
17
+ fields: {
18
+ segmentWriteKey: {
19
+ label: 'Segment Source WriteKey',
20
+ description: "Optionally forward Responses from Segment's requests to Responsys to a Segment Source.",
21
+ type: 'string',
22
+ required: false
23
+ },
24
+ segmentWriteKeyRegion: {
25
+ label: 'Segment WriteKey Region',
26
+ description: 'Segment Region to forward responses from Responsys to. Segment Source WriteKey must also be populated',
27
+ type: 'string',
28
+ choices: [
29
+ { label: 'US', value: 'US' },
30
+ { label: 'EU', value: 'EU' }
31
+ ],
32
+ required: false,
33
+ default: 'US'
34
+ },
35
+ username: {
36
+ label: 'Username',
37
+ description: 'Responsys username',
38
+ type: 'string',
39
+ required: true
40
+ },
41
+ userPassword: {
42
+ label: 'Password',
43
+ description: 'Responsys password',
44
+ type: 'string',
45
+ required: true
46
+ },
47
+ baseUrl: {
48
+ label: 'Responsys endpoint URL',
49
+ description: "Responsys endpoint URL. Refer to Responsys documentation for more details. Must start with 'HTTPS://'. See [Responsys docs](https://docs.oracle.com/en/cloud/saas/marketing/responsys-develop/API/GetStarted/Authentication/auth-endpoints-rest.htm).",
50
+ type: 'string',
51
+ format: 'uri',
52
+ required: true
53
+ },
54
+ profileListName: {
55
+ label: 'List Name',
56
+ description: "Name of the Profile Extension Table's Contact List.",
57
+ type: 'string',
58
+ required: true
59
+ },
60
+ profileExtensionTable: {
61
+ label: 'PET Name',
62
+ description: 'Profile Extension Table (PET) Name. Required if using the "Send Custom Traits" Action.',
63
+ type: 'string',
64
+ required: false
65
+ },
66
+ insertOnNoMatch: {
67
+ label: 'Insert On No Match',
68
+ description: 'Indicates what should be done for records where a match is not found.',
69
+ type: 'boolean',
70
+ default: true,
71
+ required: true
72
+ },
73
+ matchColumnName1: {
74
+ label: 'First Column Match',
75
+ description: 'First match column for determining whether an insert or update should occur.',
76
+ type: 'string',
77
+ choices: [
78
+ { label: 'RIID', value: 'RIID' },
79
+ { label: 'CUSTOMER_ID', value: 'CUSTOMER_ID' },
80
+ { label: 'EMAIL_ADDRESS', value: 'EMAIL_ADDRESS' },
81
+ { label: 'MOBILE_NUMBER', value: 'MOBILE_NUMBER' },
82
+ { label: 'EMAIL_MD5_HASH', value: 'EMAIL_MD5_HASH' },
83
+ { label: 'EMAIL_SHA256_HASH', value: 'EMAIL_SHA256_HASH' }
84
+ ],
85
+ default: 'EMAIL_ADDRESS',
86
+ required: true
87
+ },
88
+ matchColumnName2: {
89
+ label: 'Second Column Match',
90
+ description: 'Second match column for determining whether an insert or update should occur.',
91
+ type: 'string',
92
+ choices: [
93
+ { label: 'RIID', value: 'RIID' },
94
+ { label: 'CUSTOMER_ID', value: 'CUSTOMER_ID' },
95
+ { label: 'EMAIL_ADDRESS', value: 'EMAIL_ADDRESS' },
96
+ { label: 'MOBILE_NUMBER', value: 'MOBILE_NUMBER' },
97
+ { label: 'EMAIL_MD5_HASH', value: 'EMAIL_MD5_HASH' },
98
+ { label: 'EMAIL_SHA256_HASH', value: 'EMAIL_SHA256_HASH' }
99
+ ]
100
+ },
101
+ updateOnMatch: {
102
+ label: 'Update On Match',
103
+ description: 'Controls how the existing record should be updated. Defaults to Replace All.',
104
+ type: 'string',
105
+ required: true,
106
+ choices: [
107
+ { label: 'Replace All', value: 'REPLACE_ALL' },
108
+ { label: 'No Update', value: 'NO_UPDATE' }
109
+ ],
110
+ default: 'REPLACE_ALL'
111
+ },
112
+ textValue: {
113
+ label: 'Text Value',
114
+ description: "Value of incoming preferred email format data. For example, 'T' may represent a preference for Text formatted email.",
115
+ type: 'string'
116
+ },
117
+ matchOperator: {
118
+ label: 'Match Operator',
119
+ description: 'Operator to join match column names.',
120
+ type: 'string',
121
+ choices: [
122
+ { label: 'None', value: 'NONE' },
123
+ { label: 'And', value: 'AND' }
124
+ ],
125
+ default: 'AND'
126
+ },
127
+ optoutValue: {
128
+ label: 'Optout Value',
129
+ description: "Value of incoming opt-out status data that represents an optout status. For example, 'O' may represent an opt-out status.",
130
+ type: 'string'
131
+ },
132
+ rejectRecordIfChannelEmpty: {
133
+ label: 'Reject Record If Channel Empty',
134
+ description: 'String containing comma-separated channel codes that if specified will result in record rejection when the channel address field is null. See [Responsys API docs](https://docs.oracle.com/en/cloud/saas/marketing/responsys-rest-api/op-rest-api-v1.3-lists-listname-members-post.html)',
135
+ type: 'string'
136
+ },
137
+ defaultPermissionStatus: {
138
+ label: 'Default Permission Status',
139
+ description: 'This value must be specified as either OPTIN or OPTOUT. defaults to OPTOUT.',
140
+ type: 'string',
141
+ required: true,
142
+ choices: [
143
+ { label: 'Opt In', value: 'OPTIN' },
144
+ { label: 'Opt Out', value: 'OPTOUT' }
145
+ ],
146
+ default: 'OPTOUT'
147
+ },
148
+ htmlValue: {
149
+ label: 'Preferred Email Format',
150
+ description: "Value of incoming preferred email format data. For example, 'H' may represent a preference for HTML formatted email.",
151
+ type: 'string'
152
+ },
153
+ optinValue: {
154
+ label: 'Optin Value',
155
+ description: "Value of incoming opt-in status data that represents an opt-in status. For example, 'I' may represent an opt-in status.",
156
+ type: 'string'
157
+ }
158
+ },
159
+ testAuthentication: (_, { settings }) => {
160
+ if (settings.profileListName.toUpperCase() !== settings.profileListName) {
161
+ throw new actions_core_1.IntegrationError('List Name field must be in Uppercase', 'INVALID_PROFILE_LIST_NAME', 400);
162
+ }
163
+ if (settings.profileExtensionTable) {
164
+ if (settings.profileExtensionTable.toUpperCase() !== settings.profileExtensionTable) {
165
+ throw new actions_core_1.IntegrationError('PET Name field must be in Uppercase', 'INVALID_PET_NAME', 400);
166
+ }
167
+ const regex = /^[A-Z0-9_]+$/;
168
+ if (!regex.test(settings.profileExtensionTable)) {
169
+ throw new actions_core_1.IntegrationError('The PET Name field must be capitalized and may only contain letters from A to Z, numbers from 0 to 9, and underscore characters.', 'INVALID_PET_NAME', 400);
170
+ }
171
+ }
172
+ if (settings.baseUrl.startsWith('https://'.toLowerCase())) {
173
+ return Promise.resolve('Success');
174
+ }
175
+ else {
176
+ throw new actions_core_1.IntegrationError('Responsys endpoint URL must start with https://', 'INVALID_URL', 400);
177
+ }
178
+ },
179
+ refreshAccessToken: async (request, { settings }) => {
180
+ const baseUrl = settings.baseUrl?.replace(/\/$/, '');
181
+ const endpoint = `${baseUrl}/rest/api/v1.3/auth/token`;
182
+ const res = await request(endpoint, {
183
+ method: 'POST',
184
+ headers: {
185
+ 'Content-Type': 'application/x-www-form-urlencoded'
186
+ },
187
+ body: `user_name=${encodeURIComponent(settings.username)}&password=${encodeURIComponent(settings.userPassword)}&auth_type=password`
188
+ });
189
+ return { accessToken: res.data.authToken };
190
+ }
191
+ },
192
+ extendRequest({ auth }) {
193
+ return {
194
+ headers: {
195
+ 'Content-Type': 'application/json',
196
+ authorization: `${auth?.accessToken}`
197
+ }
198
+ };
199
+ },
200
+ actions: {
201
+ sendAudience: sendAudience_1.default,
202
+ sendCustomTraits: sendCustomTraits_1.default,
203
+ upsertListMember: upsertListMember_1.default
204
+ }
205
+ };
206
+ exports.default = destination;
207
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/responsys-cloud/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA+E;AAE/E,0EAAiD;AACjD,kEAAyC;AACzC,0EAAiD;AAMjD,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,2BAA2B;IACjC,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,yEAAyE;IACtF,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,eAAe,EAAE;gBACf,KAAK,EAAE,yBAAyB;gBAChC,WAAW,EAAE,wFAAwF;gBACrG,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,KAAK;aAChB;YACD,qBAAqB,EAAE;gBACrB,KAAK,EAAE,yBAAyB;gBAChC,WAAW,EACT,uGAAuG;gBACzG,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE;oBAC5B,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE;iBAC7B;gBACD,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE,IAAI;aACd;YACD,QAAQ,EAAE;gBACR,KAAK,EAAE,UAAU;gBACjB,WAAW,EAAE,oBAAoB;gBACjC,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,YAAY,EAAE;gBACZ,KAAK,EAAE,UAAU;gBACjB,WAAW,EAAE,oBAAoB;gBACjC,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,OAAO,EAAE;gBACP,KAAK,EAAE,wBAAwB;gBAC/B,WAAW,EACT,uPAAuP;gBACzP,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,KAAK;gBACb,QA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A;aAClC;iBAAM;gBACL,MAAM,IAAI,+BAAgB,CAAC,iDAAiD,EAAE,aAAa,EAAE,GAAG,CAAC,CAAA;aAClG;QACH,CAAC;QACD,kBAAkB,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;YAClD,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAA;YACpD,MAAM,QAAQ,GAAG,GAAG,OAAO,2BAA2B,CAAA;YAEtD,MAAM,GAAG,GAAG,MAAM,OAAO,CAAuB,QAAQ,EAAE;gBACxD,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE;oBACP,cAAc,EAAE,mCAAmC;iBACpD;gBACD,IAAI,EAAE,aAAa,kBAAkB,CAAC,QAAQ,CAAC,QAAQ,CAAC,aAAa,kBAAkB,CACrF,QAAQ,CAAC,YAAY,CACtB,qBAAqB;aACvB,CAAC,CAAA;YACF,OAAO,EAAE,WAAW,EAAE,GAAG,CAAC,IAAI,CAAC,SAAS,EAAE,CAAA;QAC5C,CAAC;KACF;IACD,aAAa,CAAC,EAAE,IAAI,EAAE;QACpB,OAAO;YACL,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;gBAClC,aAAa,EAAE,GAAG,IAAI,EAAE,WAAW,EAAE;aACtC;SACF,CAAA;IACH,CAAC;IACD,OAAO,EAAE;QACP,YAAY,EAAZ,sBAAY;QACZ,gBAAgB,EAAhB,0BAAgB;QAChB,gBAAgB,EAAhB,0BAAgB;KACjB;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
@@ -0,0 +1,16 @@
1
+ export interface Payload {
2
+ userData: {
3
+ EMAIL_ADDRESS_?: string;
4
+ CUSTOMER_ID_?: string;
5
+ [k: string]: unknown;
6
+ };
7
+ computation_key: string;
8
+ traits_or_props: {
9
+ [k: string]: unknown;
10
+ };
11
+ computation_class: string;
12
+ enable_batching?: boolean;
13
+ batch_size?: number;
14
+ stringify: boolean;
15
+ timestamp: string | number;
16
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=generated-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/responsys-cloud/sendAudience/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,109 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const shared_properties_1 = require("../shared_properties");
4
+ const utils_1 = require("../utils");
5
+ const action = {
6
+ title: 'Send Audience',
7
+ description: 'Send Engage Audience to a Profile Extension Table in Responsys',
8
+ defaultSubscription: 'type = "identify" or type = "track"',
9
+ fields: {
10
+ userData: {
11
+ label: 'Recipient Data',
12
+ description: 'Record data that represents field names and corresponding values for each profile.',
13
+ type: 'object',
14
+ defaultObjectUI: 'keyvalue',
15
+ required: true,
16
+ additionalProperties: true,
17
+ properties: {
18
+ EMAIL_ADDRESS_: {
19
+ label: 'Email address',
20
+ description: "The user's email address",
21
+ type: 'string',
22
+ format: 'email',
23
+ required: false
24
+ },
25
+ CUSTOMER_ID_: {
26
+ label: 'Customer ID',
27
+ description: 'Responsys Customer ID.',
28
+ type: 'string',
29
+ required: false
30
+ }
31
+ },
32
+ default: {
33
+ EMAIL_ADDRESS_: {
34
+ '@if': {
35
+ exists: { '@path': '$.traits.email' },
36
+ then: { '@path': '$.traits.email' },
37
+ else: { '@path': '$.context.traits.email' }
38
+ }
39
+ },
40
+ CUSTOMER_ID_: { '@path': '$.userId' }
41
+ }
42
+ },
43
+ computation_key: {
44
+ label: 'Segment Audience Key',
45
+ description: 'A unique identifier assigned to a specific audience in Segment.',
46
+ type: 'string',
47
+ required: true,
48
+ unsafe_hidden: true,
49
+ default: { '@path': '$.context.personas.computation_key' }
50
+ },
51
+ traits_or_props: {
52
+ label: 'Traits or Properties',
53
+ description: 'Hidden field used to access traits or properties objects from Engage payloads.',
54
+ type: 'object',
55
+ required: true,
56
+ unsafe_hidden: true,
57
+ default: {
58
+ '@if': {
59
+ exists: { '@path': '$.traits' },
60
+ then: { '@path': '$.traits' },
61
+ else: { '@path': '$.properties' }
62
+ }
63
+ }
64
+ },
65
+ computation_class: {
66
+ label: 'Segment Audience Computation Class',
67
+ description: "Hidden field used to verify that the payload is generated by an Audience. Payloads not containing computation_class = 'audience' will be dropped before the perform() fuction call.",
68
+ type: 'string',
69
+ required: true,
70
+ unsafe_hidden: true,
71
+ default: { '@path': '$.context.personas.computation_class' },
72
+ choices: [{ label: 'Audience', value: 'audience' }]
73
+ },
74
+ enable_batching: shared_properties_1.enable_batching,
75
+ batch_size: shared_properties_1.batch_size,
76
+ stringify: {
77
+ label: 'Stringify Recipient Data',
78
+ description: 'If true, all Recipient data will be converted to strings before being sent to Responsys.',
79
+ type: 'boolean',
80
+ required: true,
81
+ default: false
82
+ },
83
+ timestamp: {
84
+ label: 'Timestamp',
85
+ description: 'The timestamp of when the event occurred.',
86
+ type: 'datetime',
87
+ required: true,
88
+ unsafe_hidden: true,
89
+ default: {
90
+ '@path': '$.timestamp'
91
+ }
92
+ }
93
+ },
94
+ perform: async (request, data) => {
95
+ const { payload, settings, statsContext } = data;
96
+ const userDataFieldNames = utils_1.getUserDataFieldNames(data);
97
+ utils_1.validateCustomTraits({ profileExtensionTable: settings.profileExtensionTable, timestamp: payload.timestamp, statsContext: statsContext });
98
+ utils_1.validateListMemberPayload(payload.userData);
99
+ return utils_1.sendCustomTraits(request, [payload], data.settings, userDataFieldNames, true);
100
+ },
101
+ performBatch: async (request, data) => {
102
+ const { payload, settings, statsContext } = data;
103
+ const userDataFieldNames = utils_1.getUserDataFieldNames(data);
104
+ utils_1.validateCustomTraits({ profileExtensionTable: settings.profileExtensionTable, timestamp: payload[0].timestamp, statsContext: statsContext });
105
+ return utils_1.sendCustomTraits(request, data.payload, data.settings, userDataFieldNames, true);
106
+ }
107
+ };
108
+ exports.default = action;
109
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/responsys-cloud/sendAudience/index.ts"],"names":[],"mappings":";;AAGA,4DAAkE;AAClE,oCAAmH;AAGnH,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,gEAAgE;IAC7E,mBAAmB,EAAE,qCAAqC;IAC1D,MAAM,EAAE;QACN,QAAQ,EAAE;YACR,KAAK,EAAE,gBAAgB;YACvB,WAAW,EAAE,oFAAoF;YACjG,IAAI,EAAE,QAAQ;YACd,eAAe,EAAE,UAAU;YAC3B,QAAQ,EAAE,IAAI;YACd,oBAAoB,EAAE,IAAI;YAC1B,UAAU,EAAE;gBACV,cAAc,EAAE;oBACd,KAAK,EAAE,eAAe;oBACtB,WAAW,EAAE,0BAA0B;oBACvC,IAAI,EAAE,QAAQ;oBACd,MAAM,EAAE,OAAO;oBACf,QAAQ,EAAE,KAAK;iBAChB;gBACD,YAAY,EAAE;oBACZ,KAAK,EAAE,aAAa;oBACpB,WAAW,EAAE,wBAAwB;oBACrC,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,KAAK;iBAChB;aACF;YACD,OAAO,EAAE;gBACP,cAAc,EAAE;oBACd,KAAK,EAAE;wBACL,MAAM,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE;wBACrC,IAAI,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE;wBACnC,IAAI,EAAE,EAAE,OAAO,EAAE,wBAAwB,EAAE;qBAC5C;iBACF;gBACD,YAAY,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;aACtC;SACF;QACD,eAAe,EAAE;YACf,KAAK,EAAE,sBAAsB;YAC7B,WAAW,EAAE,iEAAiE;YAC9E,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,aAAa,EAAE,IAAI;YACnB,OAAO,EAAE,EAAE,OAAO,EAAE,oCAAoC,EAAE;SAC3D;QAC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AC,EAAE,qBAAqB,EAAE,QAAQ,CAAC,qBAAqB,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC,CAAA;QACzI,iCAAyB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;QAE3C,OAAO,wBAAgB,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,QAAQ,EAAE,kBAAkB,EAAE,IAAI,CAAC,CAAA;IACtF,CAAC;IAED,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;QACpC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,IAAI,CAAA;QAEhD,MAAM,kBAAkB,GAAG,6BAAqB,CAAC,IAAuB,CAAC,CAAA;QACzE,4BAAoB,CAAC,EAAE,qBAAqB,EAAE,QAAQ,CAAC,qBAAqB,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC,CAAA;QAE5I,OAAO,wBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,kBAAkB,EAAE,IAAI,CAAC,CAAA;IACzF,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,11 @@
1
+ export interface Payload {
2
+ userData: {
3
+ EMAIL_ADDRESS_?: string;
4
+ CUSTOMER_ID_?: string;
5
+ [k: string]: unknown;
6
+ };
7
+ enable_batching?: boolean;
8
+ batch_size?: number;
9
+ stringify: boolean;
10
+ timestamp: string | number;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=generated-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/responsys-cloud/sendCustomTraits/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { ActionDefinition } from '@segment/actions-core';
2
+ import type { Settings } from '../generated-types';
3
+ import type { Payload } from './generated-types';
4
+ declare const action: ActionDefinition<Settings, Payload>;
5
+ export default action;
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const shared_properties_1 = require("../shared_properties");
4
+ const utils_1 = require("../utils");
5
+ const action = {
6
+ title: 'Send Custom Traits',
7
+ description: 'Send Custom Traits to a Profile Extension Table in Responsys',
8
+ defaultSubscription: 'type = "identify"',
9
+ fields: {
10
+ userData: {
11
+ label: 'Recipient Data',
12
+ description: 'Record data that represents field names and corresponding values for each profile.',
13
+ type: 'object',
14
+ defaultObjectUI: 'keyvalue',
15
+ required: true,
16
+ additionalProperties: true,
17
+ properties: {
18
+ EMAIL_ADDRESS_: {
19
+ label: 'Email address',
20
+ description: "The user's email address",
21
+ type: 'string',
22
+ format: 'email',
23
+ required: false
24
+ },
25
+ CUSTOMER_ID_: {
26
+ label: 'Customer ID',
27
+ description: 'Responsys Customer ID.',
28
+ type: 'string',
29
+ required: false
30
+ }
31
+ },
32
+ default: {
33
+ EMAIL_ADDRESS_: { '@path': '$.traits.email' },
34
+ CUSTOMER_ID_: { '@path': '$.userId' }
35
+ }
36
+ },
37
+ enable_batching: shared_properties_1.enable_batching,
38
+ batch_size: shared_properties_1.batch_size,
39
+ stringify: {
40
+ label: 'Stringify Recipient Data',
41
+ description: 'If true, all Recipient data will be converted to strings before being sent to Responsys.',
42
+ type: 'boolean',
43
+ required: true,
44
+ default: false
45
+ },
46
+ timestamp: {
47
+ label: 'Timestamp',
48
+ description: 'The timestamp of when the event occurred.',
49
+ type: 'datetime',
50
+ required: true,
51
+ unsafe_hidden: true,
52
+ default: {
53
+ '@path': '$.timestamp'
54
+ }
55
+ }
56
+ },
57
+ perform: async (request, data) => {
58
+ const { payload, settings, statsContext } = data;
59
+ const userDataFieldNames = utils_1.getUserDataFieldNames(data);
60
+ utils_1.validateCustomTraits({ profileExtensionTable: settings.profileExtensionTable, timestamp: payload.timestamp, statsContext: statsContext });
61
+ utils_1.validateListMemberPayload(payload.userData);
62
+ return utils_1.sendCustomTraits(request, [payload], settings, userDataFieldNames);
63
+ },
64
+ performBatch: async (request, data) => {
65
+ const { payload, settings, statsContext } = data;
66
+ const userDataFieldNames = utils_1.getUserDataFieldNames(data);
67
+ utils_1.validateCustomTraits({ profileExtensionTable: settings.profileExtensionTable, timestamp: payload[0].timestamp, statsContext: statsContext });
68
+ return utils_1.sendCustomTraits(request, data.payload, data.settings, userDataFieldNames);
69
+ }
70
+ };
71
+ exports.default = action;
72
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/responsys-cloud/sendCustomTraits/index.ts"],"names":[],"mappings":";;AAGA,4DAAkE;AAClE,oCAAmH;AAGnH,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,oBAAoB;IAC3B,WAAW,EAAE,8DAA8D;IAC3E,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,QAAQ,EAAE;YACR,KAAK,EAAE,gBAAgB;YACvB,WAAW,EAAE,oFAAoF;YACjG,IAAI,EAAE,QAAQ;YACd,eAAe,EAAE,UAAU;YAC3B,QAAQ,EAAE,IAAI;YACd,oBAAoB,EAAE,IAAI;YAC1B,UAAU,EAAE;gBACV,cAAc,EAAE;oBACd,KAAK,EAAE,eAAe;oBACtB,WAAW,EAAE,0BAA0B;oBACvC,IAAI,EAAE,QAAQ;oBACd,MAAM,EAAE,OAAO;oBACf,QAAQ,EAAE,KAAK;iBAChB;gBACD,YAAY,EAAE;oBACZ,KAAK,EAAE,aAAa;oBACpB,WAAW,EAAE,wBAAwB;oBACrC,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,KAAK;iBAChB;aACF;YACD,OAAO,EAAE;gBACP,cAAc,EAAE,EAAE,OAAO,EAAE,gB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S,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC,CAAA;QAE5I,OAAO,wBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAA;IACnF,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { InputField } from '@segment/actions-core/destination-kit/types';
2
+ export declare const enable_batching: InputField;
3
+ export declare const batch_size: InputField;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.batch_size = exports.enable_batching = void 0;
4
+ exports.enable_batching = {
5
+ label: 'Use Responsys Async API',
6
+ description: 'Once enabled, Segment will collect events into batches of 200 before sending to Responsys.',
7
+ type: 'boolean',
8
+ default: true,
9
+ unsafe_hidden: true
10
+ };
11
+ exports.batch_size = {
12
+ label: 'Batch Size',
13
+ description: 'Maximum number of events to include in each batch. Actual batch sizes may be lower.',
14
+ type: 'number',
15
+ required: false,
16
+ unsafe_hidden: true,
17
+ default: 200
18
+ };
19
+ //# sourceMappingURL=shared_properties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared_properties.js","sourceRoot":"","sources":["../../../src/destinations/responsys-cloud/shared_properties.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAe;IACzC,KAAK,EAAE,yBAAyB;IAChC,WAAW,EAAE,4FAA4F;IACzG,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAI;IACb,aAAa,EAAE,IAAI;CACpB,CAAA;AAEY,QAAA,UAAU,GAAe;IACpC,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,qFAAqF;IAClG,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,KAAK;IACf,aAAa,EAAE,IAAI;IACnB,OAAO,EAAE,GAAG;CACb,CAAA"}
@@ -0,0 +1,38 @@
1
+ export interface Data {
2
+ rawMapping: {
3
+ userData: {
4
+ [k: string]: unknown;
5
+ };
6
+ };
7
+ }
8
+ export declare type MergeRule = {
9
+ htmlValue?: string;
10
+ optinValue?: string;
11
+ textValue?: string;
12
+ insertOnNoMatch?: boolean;
13
+ updateOnMatch?: string;
14
+ matchColumnName1?: string;
15
+ matchColumnName2?: string;
16
+ matchOperator?: string;
17
+ optoutValue?: string;
18
+ rejectRecordIfChannelEmpty?: string;
19
+ defaultPermissionStatus?: string;
20
+ };
21
+ export declare type RecordData = {
22
+ fieldNames: string[];
23
+ records: unknown[][];
24
+ mapTemplateName: string;
25
+ };
26
+ export declare type ListMemberRequestBody = {
27
+ recordData: RecordData;
28
+ } & {
29
+ mergeRule: MergeRule;
30
+ };
31
+ export declare type CustomTraitsRequestBody = {
32
+ recordData: RecordData;
33
+ } & {
34
+ insertOnNoMatch?: boolean;
35
+ updateOnMatch?: string;
36
+ matchColumnName1?: string;
37
+ matchColumnName2?: string;
38
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/destinations/responsys-cloud/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ export interface Payload {
2
+ userData: {
3
+ EMAIL_ADDRESS_?: string;
4
+ EMAIL_MD5_HASH_?: string;
5
+ EMAIL_SHA256_HASH_?: string;
6
+ RIID_?: string;
7
+ CUSTOMER_ID_?: string;
8
+ MOBILE_NUMBER_?: string;
9
+ [k: string]: unknown;
10
+ };
11
+ stringify: boolean;
12
+ enable_batching?: boolean;
13
+ batch_size?: number;
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=generated-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/responsys-cloud/upsertListMember/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { ActionDefinition } from '@segment/actions-core';
2
+ import type { Settings } from '../generated-types';
3
+ import type { Payload } from './generated-types';
4
+ declare const action: ActionDefinition<Settings, Payload>;
5
+ export default action;