@segment/action-destinations 3.312.0 → 3.312.1-staging-1989539c2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (378) hide show
  1. package/dist/destinations/actions-pardot/prospects/index.js +1 -2
  2. package/dist/destinations/actions-pardot/prospects/index.js.map +1 -1
  3. package/dist/destinations/amazon-amc/syncAudiencesToDSP/index.js +49 -29
  4. package/dist/destinations/amazon-amc/syncAudiencesToDSP/index.js.map +1 -1
  5. package/dist/destinations/contentstack/customAttributesSync/generated-types.d.ts +7 -0
  6. package/dist/destinations/contentstack/customAttributesSync/generated-types.js +3 -0
  7. package/dist/destinations/contentstack/customAttributesSync/generated-types.js.map +1 -0
  8. package/dist/destinations/contentstack/customAttributesSync/index.d.ts +5 -0
  9. package/dist/destinations/contentstack/customAttributesSync/index.js +54 -0
  10. package/dist/destinations/contentstack/customAttributesSync/index.js.map +1 -0
  11. package/dist/destinations/contentstack/customAttributesSync/types.d.ts +14 -0
  12. package/dist/destinations/contentstack/customAttributesSync/types.js +3 -0
  13. package/dist/destinations/contentstack/customAttributesSync/types.js.map +1 -0
  14. package/dist/destinations/contentstack/customAttributesSync/utils.d.ts +4 -0
  15. package/dist/destinations/contentstack/customAttributesSync/utils.js +20 -0
  16. package/dist/destinations/contentstack/customAttributesSync/utils.js.map +1 -0
  17. package/dist/destinations/contentstack/types.d.ts +12 -0
  18. package/dist/destinations/contentstack/types.js +3 -0
  19. package/dist/destinations/contentstack/types.js.map +1 -0
  20. package/dist/destinations/customerio/utils.d.ts +1 -1
  21. package/dist/destinations/engage/sendgrid/destinationDefinition.d.ts +3 -0
  22. package/dist/destinations/engage/sendgrid/destinationDefinition.js +70 -0
  23. package/dist/destinations/engage/sendgrid/destinationDefinition.js.map +1 -0
  24. package/dist/destinations/engage/sendgrid/generated-types.d.ts +1 -0
  25. package/dist/destinations/engage/sendgrid/generated-types.js +14 -0
  26. package/dist/destinations/engage/sendgrid/generated-types.js.map +1 -0
  27. package/dist/destinations/engage/sendgrid/index.d.ts +2 -0
  28. package/dist/destinations/engage/sendgrid/index.js +5 -0
  29. package/dist/destinations/engage/sendgrid/index.js.map +1 -0
  30. package/dist/destinations/engage/sendgrid/previewApiLookup/actionDefinition.d.ts +4 -0
  31. package/dist/destinations/engage/sendgrid/previewApiLookup/actionDefinition.js +28 -0
  32. package/dist/destinations/engage/sendgrid/previewApiLookup/actionDefinition.js.map +1 -0
  33. package/dist/destinations/engage/sendgrid/previewApiLookup/generated-types.d.ts +1 -0
  34. package/dist/destinations/engage/sendgrid/previewApiLookup/generated-types.js +14 -0
  35. package/dist/destinations/engage/sendgrid/previewApiLookup/generated-types.js.map +1 -0
  36. package/dist/destinations/engage/sendgrid/previewApiLookup/index.d.ts +1 -0
  37. package/dist/destinations/engage/sendgrid/previewApiLookup/index.js +14 -0
  38. package/dist/destinations/engage/sendgrid/previewApiLookup/index.js.map +1 -0
  39. package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.d.ts +44 -0
  40. package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js +419 -0
  41. package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js.map +1 -0
  42. package/dist/destinations/engage/sendgrid/sendEmail/UnlayerResponse.d.ts +12 -0
  43. package/dist/destinations/engage/sendgrid/sendEmail/UnlayerResponse.js +3 -0
  44. package/dist/destinations/engage/sendgrid/sendEmail/UnlayerResponse.js.map +1 -0
  45. package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.d.ts +4 -0
  46. package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.js +257 -0
  47. package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.js.map +1 -0
  48. package/dist/destinations/engage/sendgrid/sendEmail/generated-types.d.ts +1 -0
  49. package/dist/destinations/engage/sendgrid/sendEmail/generated-types.js +14 -0
  50. package/dist/destinations/engage/sendgrid/sendEmail/generated-types.js.map +1 -0
  51. package/dist/destinations/engage/sendgrid/sendEmail/index.d.ts +1 -0
  52. package/dist/destinations/engage/sendgrid/sendEmail/index.js +14 -0
  53. package/dist/destinations/engage/sendgrid/sendEmail/index.js.map +1 -0
  54. package/dist/destinations/engage/sendgrid/sendEmail/insertEmailPreviewText.d.ts +1 -0
  55. package/dist/destinations/engage/sendgrid/sendEmail/insertEmailPreviewText.js +23 -0
  56. package/dist/destinations/engage/sendgrid/sendEmail/insertEmailPreviewText.js.map +1 -0
  57. package/dist/destinations/engage/sendgrid/sendEmail/isRestrictedDomain.d.ts +1 -0
  58. package/dist/destinations/engage/sendgrid/sendEmail/isRestrictedDomain.js +14 -0
  59. package/dist/destinations/engage/sendgrid/sendEmail/isRestrictedDomain.js.map +1 -0
  60. package/dist/destinations/engage/twilio/destinationDefinition.d.ts +3 -0
  61. package/dist/destinations/engage/twilio/destinationDefinition.js +172 -0
  62. package/dist/destinations/engage/twilio/destinationDefinition.js.map +1 -0
  63. package/dist/destinations/engage/twilio/generated-types.d.ts +1 -0
  64. package/dist/destinations/engage/twilio/generated-types.js +14 -0
  65. package/dist/destinations/engage/twilio/generated-types.js.map +1 -0
  66. package/dist/destinations/engage/twilio/index.d.ts +2 -0
  67. package/dist/destinations/engage/twilio/index.js +5 -0
  68. package/dist/destinations/engage/twilio/index.js.map +1 -0
  69. package/dist/destinations/engage/twilio/sendMobilePush/PushSender.d.ts +28 -0
  70. package/dist/destinations/engage/twilio/sendMobilePush/PushSender.js +151 -0
  71. package/dist/destinations/engage/twilio/sendMobilePush/PushSender.js.map +1 -0
  72. package/dist/destinations/engage/twilio/sendMobilePush/actionDefinition.d.ts +4 -0
  73. package/dist/destinations/engage/twilio/sendMobilePush/actionDefinition.js +250 -0
  74. package/dist/destinations/engage/twilio/sendMobilePush/actionDefinition.js.map +1 -0
  75. package/dist/destinations/engage/twilio/sendMobilePush/generated-types.d.ts +1 -0
  76. package/dist/destinations/engage/twilio/sendMobilePush/generated-types.js +14 -0
  77. package/dist/destinations/engage/twilio/sendMobilePush/generated-types.js.map +1 -0
  78. package/dist/destinations/engage/twilio/sendMobilePush/index.d.ts +1 -0
  79. package/dist/destinations/engage/twilio/sendMobilePush/index.js +14 -0
  80. package/dist/destinations/engage/twilio/sendMobilePush/index.js.map +1 -0
  81. package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.d.ts +9 -0
  82. package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.js +72 -0
  83. package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.js.map +1 -0
  84. package/dist/destinations/engage/twilio/sendSms/actionDefinition.d.ts +4 -0
  85. package/dist/destinations/engage/twilio/sendSms/actionDefinition.js +162 -0
  86. package/dist/destinations/engage/twilio/sendSms/actionDefinition.js.map +1 -0
  87. package/dist/destinations/engage/twilio/sendSms/generated-types.d.ts +1 -0
  88. package/dist/destinations/engage/twilio/sendSms/generated-types.js +14 -0
  89. package/dist/destinations/engage/twilio/sendSms/generated-types.js.map +1 -0
  90. package/dist/destinations/engage/twilio/sendSms/index.d.ts +1 -0
  91. package/dist/destinations/engage/twilio/sendSms/index.js +14 -0
  92. package/dist/destinations/engage/twilio/sendSms/index.js.map +1 -0
  93. package/dist/destinations/engage/twilio/sendWhatsApp/WhatsAppMessageSender.d.ts +9 -0
  94. package/dist/destinations/engage/twilio/sendWhatsApp/WhatsAppMessageSender.js +89 -0
  95. package/dist/destinations/engage/twilio/sendWhatsApp/WhatsAppMessageSender.js.map +1 -0
  96. package/dist/destinations/engage/twilio/sendWhatsApp/actionDefinition.d.ts +4 -0
  97. package/dist/destinations/engage/twilio/sendWhatsApp/actionDefinition.js +136 -0
  98. package/dist/destinations/engage/twilio/sendWhatsApp/actionDefinition.js.map +1 -0
  99. package/dist/destinations/engage/twilio/sendWhatsApp/generated-types.d.ts +1 -0
  100. package/dist/destinations/engage/twilio/sendWhatsApp/generated-types.js +14 -0
  101. package/dist/destinations/engage/twilio/sendWhatsApp/generated-types.js.map +1 -0
  102. package/dist/destinations/engage/twilio/sendWhatsApp/index.d.ts +1 -0
  103. package/dist/destinations/engage/twilio/sendWhatsApp/index.js +14 -0
  104. package/dist/destinations/engage/twilio/sendWhatsApp/index.js.map +1 -0
  105. package/dist/destinations/engage/twilio/utils/PhoneMessageSender.d.ts +16 -0
  106. package/dist/destinations/engage/twilio/utils/PhoneMessageSender.js +71 -0
  107. package/dist/destinations/engage/twilio/utils/PhoneMessageSender.js.map +1 -0
  108. package/dist/destinations/engage/twilio/utils/TwilioMessageSender.d.ts +16 -0
  109. package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js +115 -0
  110. package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js.map +1 -0
  111. package/dist/destinations/engage/twilio/utils/index.d.ts +2 -0
  112. package/dist/destinations/engage/twilio/utils/index.js +15 -0
  113. package/dist/destinations/engage/twilio/utils/index.js.map +1 -0
  114. package/dist/destinations/engage/twilio/utils/types.d.ts +23 -0
  115. package/dist/destinations/engage/twilio/utils/types.js +3 -0
  116. package/dist/destinations/engage/twilio/utils/types.js.map +1 -0
  117. package/dist/destinations/engage/utils/AggregateError.d.ts +14 -0
  118. package/dist/destinations/engage/utils/AggregateError.js +26 -0
  119. package/dist/destinations/engage/utils/AggregateError.js.map +1 -0
  120. package/dist/destinations/engage/utils/EngageActionPerformer.d.ts +42 -0
  121. package/dist/destinations/engage/utils/EngageActionPerformer.js +148 -0
  122. package/dist/destinations/engage/utils/EngageActionPerformer.js.map +1 -0
  123. package/dist/destinations/engage/utils/EngageLogger.d.ts +18 -0
  124. package/dist/destinations/engage/utils/EngageLogger.js +52 -0
  125. package/dist/destinations/engage/utils/EngageLogger.js.map +1 -0
  126. package/dist/destinations/engage/utils/EngageStats.d.ts +18 -0
  127. package/dist/destinations/engage/utils/EngageStats.js +95 -0
  128. package/dist/destinations/engage/utils/EngageStats.js.map +1 -0
  129. package/dist/destinations/engage/utils/IntegrationErrorWrapper.d.ts +12 -0
  130. package/dist/destinations/engage/utils/IntegrationErrorWrapper.js +31 -0
  131. package/dist/destinations/engage/utils/IntegrationErrorWrapper.js.map +1 -0
  132. package/dist/destinations/engage/utils/MessageSendPerformer.d.ts +65 -0
  133. package/dist/destinations/engage/utils/MessageSendPerformer.js +211 -0
  134. package/dist/destinations/engage/utils/MessageSendPerformer.js.map +1 -0
  135. package/dist/destinations/engage/utils/Profile.d.ts +6 -0
  136. package/dist/destinations/engage/utils/Profile.js +3 -0
  137. package/dist/destinations/engage/utils/Profile.js.map +1 -0
  138. package/dist/destinations/engage/utils/ResponseError.d.ts +25 -0
  139. package/dist/destinations/engage/utils/ResponseError.js +22 -0
  140. package/dist/destinations/engage/utils/ResponseError.js.map +1 -0
  141. package/dist/destinations/engage/utils/apiLookups.d.ts +22 -0
  142. package/dist/destinations/engage/utils/apiLookups.js +189 -0
  143. package/dist/destinations/engage/utils/apiLookups.js.map +1 -0
  144. package/dist/destinations/engage/utils/getProfileApiEndpoint.d.ts +2 -0
  145. package/dist/destinations/engage/utils/getProfileApiEndpoint.js +10 -0
  146. package/dist/destinations/engage/utils/getProfileApiEndpoint.js.map +1 -0
  147. package/dist/destinations/engage/utils/index.d.ts +9 -0
  148. package/dist/destinations/engage/utils/index.js +22 -0
  149. package/dist/destinations/engage/utils/index.js.map +1 -0
  150. package/dist/destinations/engage/utils/isDestinationActionService.d.ts +1 -0
  151. package/dist/destinations/engage/utils/isDestinationActionService.js +8 -0
  152. package/dist/destinations/engage/utils/isDestinationActionService.js.map +1 -0
  153. package/dist/destinations/engage/utils/isRetryableError.d.ts +2 -0
  154. package/dist/destinations/engage/utils/isRetryableError.js +33 -0
  155. package/dist/destinations/engage/utils/isRetryableError.js.map +1 -0
  156. package/dist/destinations/engage/utils/operationTracking/GenericMethodDecorator.d.ts +1 -0
  157. package/dist/destinations/engage/utils/operationTracking/GenericMethodDecorator.js +3 -0
  158. package/dist/destinations/engage/utils/operationTracking/GenericMethodDecorator.js.map +1 -0
  159. package/dist/destinations/engage/utils/operationTracking/OperationDecorator.d.ts +46 -0
  160. package/dist/destinations/engage/utils/operationTracking/OperationDecorator.js +46 -0
  161. package/dist/destinations/engage/utils/operationTracking/OperationDecorator.js.map +1 -0
  162. package/dist/destinations/engage/utils/operationTracking/OperationDuration.d.ts +12 -0
  163. package/dist/destinations/engage/utils/operationTracking/OperationDuration.js +23 -0
  164. package/dist/destinations/engage/utils/operationTracking/OperationDuration.js.map +1 -0
  165. package/dist/destinations/engage/utils/operationTracking/OperationErrorHandler.d.ts +12 -0
  166. package/dist/destinations/engage/utils/operationTracking/OperationErrorHandler.js +35 -0
  167. package/dist/destinations/engage/utils/operationTracking/OperationErrorHandler.js.map +1 -0
  168. package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.d.ts +14 -0
  169. package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.js +31 -0
  170. package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.js.map +1 -0
  171. package/dist/destinations/engage/utils/operationTracking/OperationLogger.d.ts +31 -0
  172. package/dist/destinations/engage/utils/operationTracking/OperationLogger.js +104 -0
  173. package/dist/destinations/engage/utils/operationTracking/OperationLogger.js.map +1 -0
  174. package/dist/destinations/engage/utils/operationTracking/OperationStats.d.ts +39 -0
  175. package/dist/destinations/engage/utils/operationTracking/OperationStats.js +130 -0
  176. package/dist/destinations/engage/utils/operationTracking/OperationStats.js.map +1 -0
  177. package/dist/destinations/engage/utils/operationTracking/OperationTracker.test.d.ts +1 -0
  178. package/dist/destinations/engage/utils/operationTracking/OperationTracker.test.js +377 -0
  179. package/dist/destinations/engage/utils/operationTracking/OperationTracker.test.js.map +1 -0
  180. package/dist/destinations/engage/utils/operationTracking/OperationTree.d.ts +23 -0
  181. package/dist/destinations/engage/utils/operationTracking/OperationTree.js +49 -0
  182. package/dist/destinations/engage/utils/operationTracking/OperationTree.js.map +1 -0
  183. package/dist/destinations/engage/utils/operationTracking/TrackedError.d.ts +6 -0
  184. package/dist/destinations/engage/utils/operationTracking/TrackedError.js +3 -0
  185. package/dist/destinations/engage/utils/operationTracking/TrackedError.js.map +1 -0
  186. package/dist/destinations/engage/utils/operationTracking/index.d.ts +10 -0
  187. package/dist/destinations/engage/utils/operationTracking/index.js +23 -0
  188. package/dist/destinations/engage/utils/operationTracking/index.js.map +1 -0
  189. package/dist/destinations/engage/utils/operationTracking/wrapTryCatchFinallyPromisable.d.ts +21 -0
  190. package/dist/destinations/engage/utils/operationTracking/wrapTryCatchFinallyPromisable.js +99 -0
  191. package/dist/destinations/engage/utils/operationTracking/wrapTryCatchFinallyPromisable.js.map +1 -0
  192. package/dist/destinations/engage/utils/testUtils.d.ts +6 -0
  193. package/dist/destinations/engage/utils/testUtils.js +26 -0
  194. package/dist/destinations/engage/utils/testUtils.js.map +1 -0
  195. package/dist/destinations/engage/utils/track.d.ts +52 -0
  196. package/dist/destinations/engage/utils/track.js +9 -0
  197. package/dist/destinations/engage/utils/track.js.map +1 -0
  198. package/dist/destinations/engage-messaging-sendgrid/previewApiLookup/apiLookups.d.ts +3 -3
  199. package/dist/destinations/engage-messaging-sendgrid/previewApiLookup/apiLookups.js +9 -9
  200. package/dist/destinations/engage-messaging-sendgrid/previewApiLookup/apiLookups.js.map +1 -1
  201. package/dist/destinations/engage-messaging-sendgrid/previewApiLookup.types.d.ts +16 -0
  202. package/dist/destinations/engage-messaging-sendgrid/previewApiLookup.types.js +3 -0
  203. package/dist/destinations/engage-messaging-sendgrid/previewApiLookup.types.js.map +1 -0
  204. package/dist/destinations/engage-messaging-sendgrid/sendEmail/SendEmailPerformer.d.ts +2 -1
  205. package/dist/destinations/engage-messaging-sendgrid/sendEmail/SendEmailPerformer.js +11 -3
  206. package/dist/destinations/engage-messaging-sendgrid/sendEmail/SendEmailPerformer.js.map +1 -1
  207. package/dist/destinations/engage-messaging-sendgrid/sendEmail.types.d.ts +56 -0
  208. package/dist/destinations/engage-messaging-sendgrid/sendEmail.types.js +3 -0
  209. package/dist/destinations/engage-messaging-sendgrid/sendEmail.types.js.map +1 -0
  210. package/dist/destinations/engage-messaging-twilio/sendMobilePush.types.d.ts +39 -0
  211. package/dist/destinations/engage-messaging-twilio/sendMobilePush.types.js +3 -0
  212. package/dist/destinations/engage-messaging-twilio/sendMobilePush.types.js.map +1 -0
  213. package/dist/destinations/engage-messaging-twilio/sendSms.types.d.ts +27 -0
  214. package/dist/destinations/engage-messaging-twilio/sendSms.types.js +3 -0
  215. package/dist/destinations/engage-messaging-twilio/sendSms.types.js.map +1 -0
  216. package/dist/destinations/engage-messaging-twilio/sendWhatsApp.types.d.ts +25 -0
  217. package/dist/destinations/engage-messaging-twilio/sendWhatsApp.types.js +3 -0
  218. package/dist/destinations/engage-messaging-twilio/sendWhatsApp.types.js.map +1 -0
  219. package/dist/destinations/facebook-conversions-api/addToCart2/generated-types.d.ts +67 -0
  220. package/dist/destinations/facebook-conversions-api/addToCart2/generated-types.js +3 -0
  221. package/dist/destinations/facebook-conversions-api/addToCart2/generated-types.js.map +1 -0
  222. package/dist/destinations/facebook-conversions-api/addToCart2/index.d.ts +5 -0
  223. package/dist/destinations/facebook-conversions-api/addToCart2/index.js +108 -0
  224. package/dist/destinations/facebook-conversions-api/addToCart2/index.js.map +1 -0
  225. package/dist/destinations/facebook-conversions-api/custom2/generated-types.d.ts +57 -0
  226. package/dist/destinations/facebook-conversions-api/custom2/generated-types.js +3 -0
  227. package/dist/destinations/facebook-conversions-api/custom2/generated-types.js.map +1 -0
  228. package/dist/destinations/facebook-conversions-api/custom2/index.d.ts +5 -0
  229. package/dist/destinations/facebook-conversions-api/custom2/index.js +72 -0
  230. package/dist/destinations/facebook-conversions-api/custom2/index.js.map +1 -0
  231. package/dist/destinations/facebook-conversions-api/index.js +15 -1
  232. package/dist/destinations/facebook-conversions-api/index.js.map +1 -1
  233. package/dist/destinations/facebook-conversions-api/initiateCheckout2/generated-types.d.ts +67 -0
  234. package/dist/destinations/facebook-conversions-api/initiateCheckout2/generated-types.js +3 -0
  235. package/dist/destinations/facebook-conversions-api/initiateCheckout2/generated-types.js.map +1 -0
  236. package/dist/destinations/facebook-conversions-api/initiateCheckout2/index.d.ts +5 -0
  237. package/dist/destinations/facebook-conversions-api/initiateCheckout2/index.js +111 -0
  238. package/dist/destinations/facebook-conversions-api/initiateCheckout2/index.js.map +1 -0
  239. package/dist/destinations/facebook-conversions-api/pageView2/generated-types.d.ts +56 -0
  240. package/dist/destinations/facebook-conversions-api/pageView2/generated-types.js +3 -0
  241. package/dist/destinations/facebook-conversions-api/pageView2/generated-types.js.map +1 -0
  242. package/dist/destinations/facebook-conversions-api/pageView2/index.d.ts +5 -0
  243. package/dist/destinations/facebook-conversions-api/pageView2/index.js +66 -0
  244. package/dist/destinations/facebook-conversions-api/pageView2/index.js.map +1 -0
  245. package/dist/destinations/facebook-conversions-api/purchase2/generated-types.d.ts +68 -0
  246. package/dist/destinations/facebook-conversions-api/purchase2/generated-types.js +3 -0
  247. package/dist/destinations/facebook-conversions-api/purchase2/generated-types.js.map +1 -0
  248. package/dist/destinations/facebook-conversions-api/purchase2/index.d.ts +5 -0
  249. package/dist/destinations/facebook-conversions-api/purchase2/index.js +114 -0
  250. package/dist/destinations/facebook-conversions-api/purchase2/index.js.map +1 -0
  251. package/dist/destinations/facebook-conversions-api/search2/generated-types.d.ts +67 -0
  252. package/dist/destinations/facebook-conversions-api/search2/generated-types.js +3 -0
  253. package/dist/destinations/facebook-conversions-api/search2/generated-types.js.map +1 -0
  254. package/dist/destinations/facebook-conversions-api/search2/index.d.ts +5 -0
  255. package/dist/destinations/facebook-conversions-api/search2/index.js +115 -0
  256. package/dist/destinations/facebook-conversions-api/search2/index.js.map +1 -0
  257. package/dist/destinations/facebook-conversions-api/viewContent2/generated-types.d.ts +68 -0
  258. package/dist/destinations/facebook-conversions-api/viewContent2/generated-types.js +3 -0
  259. package/dist/destinations/facebook-conversions-api/viewContent2/generated-types.js.map +1 -0
  260. package/dist/destinations/facebook-conversions-api/viewContent2/index.d.ts +5 -0
  261. package/dist/destinations/facebook-conversions-api/viewContent2/index.js +110 -0
  262. package/dist/destinations/facebook-conversions-api/viewContent2/index.js.map +1 -0
  263. package/dist/destinations/facebook-custom-audiences/add/generated-types.d.ts +2 -0
  264. package/dist/destinations/facebook-custom-audiences/add/generated-types.js +3 -0
  265. package/dist/destinations/facebook-custom-audiences/add/generated-types.js.map +1 -0
  266. package/dist/destinations/facebook-custom-audiences/add/index.d.ts +5 -0
  267. package/dist/destinations/facebook-custom-audiences/add/index.js +11 -0
  268. package/dist/destinations/facebook-custom-audiences/add/index.js.map +1 -0
  269. package/dist/destinations/facebook-custom-audiences/remove/generated-types.d.ts +2 -0
  270. package/dist/destinations/facebook-custom-audiences/remove/generated-types.js +3 -0
  271. package/dist/destinations/facebook-custom-audiences/remove/generated-types.js.map +1 -0
  272. package/dist/destinations/facebook-custom-audiences/remove/index.d.ts +5 -0
  273. package/dist/destinations/facebook-custom-audiences/remove/index.js +11 -0
  274. package/dist/destinations/facebook-custom-audiences/remove/index.js.map +1 -0
  275. package/dist/destinations/first-party-dv360/functions.d.ts +17 -0
  276. package/dist/destinations/first-party-dv360/functions.js +38 -0
  277. package/dist/destinations/first-party-dv360/functions.js.map +1 -0
  278. package/dist/destinations/google-sheets/constants.d.ts +1 -0
  279. package/dist/destinations/google-sheets/constants.js +2 -1
  280. package/dist/destinations/google-sheets/constants.js.map +1 -1
  281. package/dist/destinations/google-sheets/postSheet/generated-types.d.ts +1 -0
  282. package/dist/destinations/google-sheets/postSheet/index.js +25 -9
  283. package/dist/destinations/google-sheets/postSheet/index.js.map +1 -1
  284. package/dist/destinations/google-sheets/postSheet/operations.d.ts +3 -1
  285. package/dist/destinations/google-sheets/postSheet/operations.js +5 -4
  286. package/dist/destinations/google-sheets/postSheet/operations.js.map +1 -1
  287. package/dist/destinations/google-sheets/postSheet2/index.js +20 -4
  288. package/dist/destinations/google-sheets/postSheet2/index.js.map +1 -1
  289. package/dist/destinations/google-sheets/postSheet2/operations2.d.ts +3 -1
  290. package/dist/destinations/google-sheets/postSheet2/operations2.js +6 -5
  291. package/dist/destinations/google-sheets/postSheet2/operations2.js.map +1 -1
  292. package/dist/destinations/hubspot/customEvent/hubspot-api.d.ts +62 -0
  293. package/dist/destinations/hubspot/customEvent/hubspot-api.js +305 -0
  294. package/dist/destinations/hubspot/customEvent/hubspot-api.js.map +1 -0
  295. package/dist/destinations/hubspot/upsertObject/hubspot-api.d.ts +219 -0
  296. package/dist/destinations/hubspot/upsertObject/hubspot-api.js +609 -0
  297. package/dist/destinations/hubspot/upsertObject/hubspot-api.js.map +1 -0
  298. package/dist/destinations/linkedin-conversions/index.js +18 -0
  299. package/dist/destinations/linkedin-conversions/index.js.map +1 -1
  300. package/dist/destinations/mappings-two-test/generated-types.d.ts +3 -0
  301. package/dist/destinations/mappings-two-test/generated-types.js +3 -0
  302. package/dist/destinations/mappings-two-test/generated-types.js.map +1 -0
  303. package/dist/destinations/mappings-two-test/index.d.ts +4 -0
  304. package/dist/destinations/mappings-two-test/index.js +34 -0
  305. package/dist/destinations/mappings-two-test/index.js.map +1 -0
  306. package/dist/destinations/mappings-two-test/inputMethods/generated-types.d.ts +29 -0
  307. package/dist/destinations/mappings-two-test/inputMethods/generated-types.js +3 -0
  308. package/dist/destinations/mappings-two-test/inputMethods/generated-types.js.map +1 -0
  309. package/dist/destinations/mappings-two-test/inputMethods/index.d.ts +5 -0
  310. package/dist/destinations/mappings-two-test/inputMethods/index.js +200 -0
  311. package/dist/destinations/mappings-two-test/inputMethods/index.js.map +1 -0
  312. package/dist/destinations/mappings-two-test/kitchenSink/generated-types.d.ts +53 -0
  313. package/dist/destinations/mappings-two-test/kitchenSink/generated-types.js +3 -0
  314. package/dist/destinations/mappings-two-test/kitchenSink/generated-types.js.map +1 -0
  315. package/dist/destinations/mappings-two-test/kitchenSink/index.d.ts +5 -0
  316. package/dist/destinations/mappings-two-test/kitchenSink/index.js +289 -0
  317. package/dist/destinations/mappings-two-test/kitchenSink/index.js.map +1 -0
  318. package/dist/destinations/mappings-two-test/sendEvent/generated-types.d.ts +17 -0
  319. package/dist/destinations/mappings-two-test/sendEvent/generated-types.js +3 -0
  320. package/dist/destinations/mappings-two-test/sendEvent/generated-types.js.map +1 -0
  321. package/dist/destinations/mappings-two-test/sendEvent/index.d.ts +5 -0
  322. package/dist/destinations/mappings-two-test/sendEvent/index.js +345 -0
  323. package/dist/destinations/mappings-two-test/sendEvent/index.js.map +1 -0
  324. package/dist/destinations/salesforce/account2/generated-types.d.ts +32 -0
  325. package/dist/destinations/salesforce/account2/generated-types.js +3 -0
  326. package/dist/destinations/salesforce/account2/generated-types.js.map +1 -0
  327. package/dist/destinations/salesforce/account2/index.d.ts +5 -0
  328. package/dist/destinations/salesforce/account2/index.js +248 -0
  329. package/dist/destinations/salesforce/account2/index.js.map +1 -0
  330. package/dist/destinations/salesforce/cases2/generated-types.d.ts +17 -0
  331. package/dist/destinations/salesforce/cases2/generated-types.js +3 -0
  332. package/dist/destinations/salesforce/cases2/generated-types.js.map +1 -0
  333. package/dist/destinations/salesforce/cases2/index.d.ts +5 -0
  334. package/dist/destinations/salesforce/cases2/index.js +76 -0
  335. package/dist/destinations/salesforce/cases2/index.js.map +1 -0
  336. package/dist/destinations/salesforce/contact2/generated-types.d.ts +25 -0
  337. package/dist/destinations/salesforce/contact2/generated-types.js +3 -0
  338. package/dist/destinations/salesforce/contact2/generated-types.js.map +1 -0
  339. package/dist/destinations/salesforce/contact2/index.d.ts +5 -0
  340. package/dist/destinations/salesforce/contact2/index.js +192 -0
  341. package/dist/destinations/salesforce/contact2/index.js.map +1 -0
  342. package/dist/destinations/salesforce/customObject2/generated-types.d.ts +17 -0
  343. package/dist/destinations/salesforce/customObject2/generated-types.js +3 -0
  344. package/dist/destinations/salesforce/customObject2/generated-types.js.map +1 -0
  345. package/dist/destinations/salesforce/customObject2/index.d.ts +5 -0
  346. package/dist/destinations/salesforce/customObject2/index.js +97 -0
  347. package/dist/destinations/salesforce/customObject2/index.js.map +1 -0
  348. package/dist/destinations/salesforce/index.js +3 -1
  349. package/dist/destinations/salesforce/index.js.map +1 -1
  350. package/dist/destinations/salesforce/lead2/generated-types.d.ts +25 -0
  351. package/dist/destinations/salesforce/lead2/generated-types.js +3 -0
  352. package/dist/destinations/salesforce/lead2/generated-types.js.map +1 -0
  353. package/dist/destinations/salesforce/lead2/index.d.ts +5 -0
  354. package/dist/destinations/salesforce/lead2/index.js +200 -0
  355. package/dist/destinations/salesforce/lead2/index.js.map +1 -0
  356. package/dist/destinations/salesforce/opportunity2/generated-types.d.ts +21 -0
  357. package/dist/destinations/salesforce/opportunity2/generated-types.js +3 -0
  358. package/dist/destinations/salesforce/opportunity2/generated-types.js.map +1 -0
  359. package/dist/destinations/salesforce/opportunity2/index.d.ts +5 -0
  360. package/dist/destinations/salesforce/opportunity2/index.js +112 -0
  361. package/dist/destinations/salesforce/opportunity2/index.js.map +1 -0
  362. package/dist/destinations/salesforce/sf-operations.d.ts +1 -0
  363. package/dist/destinations/salesforce/sf-operations.js +20 -0
  364. package/dist/destinations/salesforce/sf-operations.js.map +1 -1
  365. package/dist/destinations/salesforce/sf-properties.d.ts +1 -0
  366. package/dist/destinations/salesforce/sf-properties.js +40 -6
  367. package/dist/destinations/salesforce/sf-properties.js.map +1 -1
  368. package/dist/destinations/webhook/send/index.js +3 -1
  369. package/dist/destinations/webhook/send/index.js.map +1 -1
  370. package/dist/destinations/webhook-extensible/generated-types.d.ts +4 -0
  371. package/dist/destinations/webhook-extensible/index.js +49 -4
  372. package/dist/destinations/webhook-extensible/index.js.map +1 -1
  373. package/dist/destinations/webhook-extensible/send/index.js +2 -2
  374. package/dist/destinations/webhook-extensible/send/index.js.map +1 -1
  375. package/dist/destinations/webhook-extensible/types.d.ts +6 -0
  376. package/dist/destinations/webhook-extensible/types.js +3 -0
  377. package/dist/destinations/webhook-extensible/types.js.map +1 -0
  378. package/package.json +4 -4
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const actions_core_1 = require("@segment/actions-core");
4
+ const constants_1 = require("../constants");
5
+ const utils_1 = require("../utils");
6
+ const fb_capi_properties_1 = require("../fb-capi-properties");
7
+ const fb_capi_user_data_1 = require("../fb-capi-user-data");
8
+ const fb_capi_app_data_1 = require("../fb-capi-app-data");
9
+ const action = {
10
+ title: 'Search',
11
+ description: 'Send event when a user searches content or products',
12
+ defaultSubscription: 'type = "track" and event = "Products Searched"',
13
+ syncMode: {
14
+ description: 'Define how the records from your destination will be synced.',
15
+ label: 'How to sync records',
16
+ default: 'add',
17
+ choices: [{ label: 'Insert Records', value: 'add' }]
18
+ },
19
+ fields: {
20
+ action_source: { ...fb_capi_properties_1.action_source, required: true },
21
+ event_time: { ...fb_capi_properties_1.event_time, required: true },
22
+ user_data: fb_capi_user_data_1.user_data_field,
23
+ app_data_field: fb_capi_app_data_1.app_data_field,
24
+ content_category: fb_capi_properties_1.content_category,
25
+ content_ids: fb_capi_properties_1.content_ids,
26
+ contents: {
27
+ ...fb_capi_properties_1.contents,
28
+ default: {
29
+ '@arrayPath': [
30
+ '$.properties',
31
+ {
32
+ id: {
33
+ '@path': '$.product_id'
34
+ },
35
+ quantity: {
36
+ '@path': '$.quantity'
37
+ },
38
+ item_price: {
39
+ '@path': '$.price'
40
+ }
41
+ }
42
+ ]
43
+ }
44
+ },
45
+ currency: fb_capi_properties_1.currency,
46
+ event_id: fb_capi_properties_1.event_id,
47
+ event_source_url: fb_capi_properties_1.event_source_url,
48
+ search_string: {
49
+ label: 'Search String',
50
+ description: 'A search query made by a user. This must be a string.',
51
+ type: 'string',
52
+ default: {
53
+ '@path': '$.properties.query'
54
+ }
55
+ },
56
+ value: fb_capi_properties_1.value,
57
+ custom_data: fb_capi_properties_1.custom_data,
58
+ data_processing_options: fb_capi_properties_1.data_processing_options,
59
+ data_processing_options_country: fb_capi_properties_1.data_processing_options_country,
60
+ data_processing_options_state: fb_capi_properties_1.data_processing_options_state
61
+ },
62
+ perform: (request, { payload, settings, features, statsContext, syncMode }) => {
63
+ if (syncMode === 'add') {
64
+ if (payload.currency && !constants_1.CURRENCY_ISO_CODES.has(payload.currency)) {
65
+ throw new actions_core_1.IntegrationError(`${payload.currency} is not a valid currency code.`, 'Misconfigured required field', 400);
66
+ }
67
+ if (!payload.user_data) {
68
+ throw new actions_core_1.IntegrationError('Must include at least one user data property', 'Misconfigured required field', 400);
69
+ }
70
+ if (payload.action_source === 'website' && payload.user_data.client_user_agent === undefined) {
71
+ throw new actions_core_1.IntegrationError('If action source is "Website" then client_user_agent must be defined', 'Misconfigured required field', 400);
72
+ }
73
+ if (payload.contents) {
74
+ const err = fb_capi_properties_1.validateContents(payload.contents);
75
+ if (err)
76
+ throw err;
77
+ }
78
+ const [data_options, country_code, state_code] = fb_capi_properties_1.dataProcessingOptions(payload.data_processing_options, payload.data_processing_options_country, payload.data_processing_options_state);
79
+ return request(`https://graph.facebook.com/v${utils_1.get_api_version(features, statsContext)}/${settings.pixelId}/events`, {
80
+ method: 'POST',
81
+ json: {
82
+ data: [
83
+ {
84
+ event_name: 'Search',
85
+ event_time: payload.event_time,
86
+ action_source: payload.action_source,
87
+ event_id: payload.event_id,
88
+ event_source_url: payload.event_source_url,
89
+ user_data: fb_capi_user_data_1.hash_user_data({ user_data: payload.user_data }),
90
+ custom_data: {
91
+ ...payload.custom_data,
92
+ currency: payload.currency,
93
+ content_ids: payload.content_ids,
94
+ contents: payload.contents,
95
+ content_category: payload.content_category,
96
+ value: payload.value,
97
+ search_string: payload.search_string
98
+ },
99
+ app_data: fb_capi_app_data_1.generate_app_data(payload.app_data_field),
100
+ data_processing_options: data_options,
101
+ data_processing_options_country: country_code,
102
+ data_processing_options_state: state_code
103
+ }
104
+ ],
105
+ ...(settings.testEventCode && { test_event_code: settings.testEventCode })
106
+ }
107
+ });
108
+ }
109
+ else {
110
+ throw new actions_core_1.IntegrationError(`Sync mode ${syncMode} is not supported`, 'Misconfigured sync mode', 400);
111
+ }
112
+ }
113
+ };
114
+ exports.default = action;
115
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot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AAE,MAAM;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE;wBACJ;4BACE,UAAU,EAAE,QAAQ;4BACpB,UAAU,EAAE,OAAO,CAAC,UAAU;4BAC9B,aAAa,EAAE,OAAO,CAAC,aAAa;4BACpC,QAAQ,EAAE,OAAO,CAAC,QAAQ;4BAC1B,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;4BAC1C,SAAS,EAAE,kCAAc,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC;4BAC3D,WAAW,EAAE;gCACX,GAAG,OAAO,CAAC,WAAW;gCACtB,QAAQ,EAAE,OAAO,CAAC,QAAQ;gCAC1B,WAAW,EAAE,OAAO,CAAC,WAAW;gCAChC,QAAQ,EAAE,OAAO,CAAC,QAAQ;gCAC1B,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;gCAC1C,KAAK,EAAE,OAAO,CAAC,KAAK;gCACpB,aAAa,EAAE,OAAO,CAAC,aAAa;6BACrC;4BACD,QAAQ,EAAE,oCAAiB,CAAC,OAAO,CAAC,cAAc,CAAC;4BACnD,uBAAuB,EAAE,YAAY;4BACrC,+BAA+B,EAAE,YAAY;4BAC7C,6BAA6B,EAAE,UAAU;yBAC1C;qBACF;oBACD,GAAG,CAAC,QAAQ,CAAC,aAAa,IAAI,EAAE,eAAe,EAAE,QAAQ,CAAC,aAAa,EAAE,CAAC;iBAC3E;aACF,CACF,CAAA;SACF;aAAM;YACL,MAAM,IAAI,+BAAgB,CAAC,aAAa,QAAQ,mBAAmB,EAAE,yBAAyB,EAAE,GAAG,CAAC,CAAA;SACrG;IACH,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,68 @@
1
+ export interface Payload {
2
+ action_source: string;
3
+ event_time: string;
4
+ user_data: {
5
+ externalId?: string[];
6
+ email?: string;
7
+ phone?: string;
8
+ gender?: string;
9
+ dateOfBirth?: string;
10
+ lastName?: string;
11
+ firstName?: string;
12
+ city?: string;
13
+ state?: string;
14
+ zip?: string;
15
+ country?: string;
16
+ client_ip_address?: string;
17
+ client_user_agent?: string;
18
+ fbc?: string;
19
+ fbp?: string;
20
+ subscriptionID?: string;
21
+ leadID?: number;
22
+ fbLoginID?: number;
23
+ anonId?: string;
24
+ partner_id?: string;
25
+ partner_name?: string;
26
+ };
27
+ app_data_field?: {
28
+ use_app_data?: boolean;
29
+ advertiser_tracking_enabled?: boolean;
30
+ application_tracking_enabled?: boolean;
31
+ version?: string;
32
+ packageName?: string;
33
+ shortVersion?: string;
34
+ longVersion?: string;
35
+ osVersion?: string;
36
+ deviceName?: string;
37
+ locale?: string;
38
+ timezone?: string;
39
+ carrier?: string;
40
+ width?: string;
41
+ height?: string;
42
+ density?: string;
43
+ cpuCores?: string;
44
+ storageSize?: string;
45
+ freeStorage?: string;
46
+ deviceTimezone?: string;
47
+ };
48
+ content_category?: string;
49
+ content_ids?: string[];
50
+ content_name?: string;
51
+ content_type?: string;
52
+ contents?: {
53
+ id?: string;
54
+ quantity?: number;
55
+ item_price?: number;
56
+ delivery_category?: string;
57
+ }[];
58
+ currency?: string;
59
+ event_id?: string;
60
+ event_source_url?: string;
61
+ value?: number;
62
+ custom_data?: {
63
+ [k: string]: unknown;
64
+ };
65
+ data_processing_options?: boolean;
66
+ data_processing_options_country?: number;
67
+ data_processing_options_state?: number;
68
+ }
@@ -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/facebook-conversions-api/viewContent2/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,110 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const actions_core_1 = require("@segment/actions-core");
4
+ const fb_capi_properties_1 = require("../fb-capi-properties");
5
+ const fb_capi_user_data_1 = require("../fb-capi-user-data");
6
+ const constants_1 = require("../constants");
7
+ const utils_1 = require("../utils");
8
+ const fb_capi_app_data_1 = require("../fb-capi-app-data");
9
+ const action = {
10
+ title: 'View Content',
11
+ description: 'Send event when a user views content or a product',
12
+ defaultSubscription: 'type = "track" and event = "Product Viewed"',
13
+ syncMode: {
14
+ description: 'Define how the records from your destination will be synced.',
15
+ label: 'How to sync records',
16
+ default: 'add',
17
+ choices: [{ label: 'Insert Records', value: 'add' }]
18
+ },
19
+ fields: {
20
+ action_source: { ...fb_capi_properties_1.action_source, required: true },
21
+ event_time: { ...fb_capi_properties_1.event_time, required: true },
22
+ user_data: fb_capi_user_data_1.user_data_field,
23
+ app_data_field: fb_capi_app_data_1.app_data_field,
24
+ content_category: fb_capi_properties_1.content_category,
25
+ content_ids: { ...fb_capi_properties_1.content_ids, default: { '@path': '$.properties.product_id' } },
26
+ content_name: fb_capi_properties_1.content_name,
27
+ content_type: fb_capi_properties_1.content_type,
28
+ contents: {
29
+ ...fb_capi_properties_1.contents,
30
+ default: {
31
+ '@arrayPath': [
32
+ '$.properties',
33
+ {
34
+ id: {
35
+ '@path': '$.product_id'
36
+ },
37
+ quantity: {
38
+ '@path': '$.quantity'
39
+ },
40
+ item_price: {
41
+ '@path': '$.price'
42
+ }
43
+ }
44
+ ]
45
+ }
46
+ },
47
+ currency: fb_capi_properties_1.currency,
48
+ event_id: fb_capi_properties_1.event_id,
49
+ event_source_url: fb_capi_properties_1.event_source_url,
50
+ value: { ...fb_capi_properties_1.value, default: { '@path': '$.properties.price' } },
51
+ custom_data: fb_capi_properties_1.custom_data,
52
+ data_processing_options: fb_capi_properties_1.data_processing_options,
53
+ data_processing_options_country: fb_capi_properties_1.data_processing_options_country,
54
+ data_processing_options_state: fb_capi_properties_1.data_processing_options_state
55
+ },
56
+ perform: (request, { payload, settings, features, statsContext, syncMode }) => {
57
+ if (syncMode === 'add') {
58
+ if (payload.currency && !constants_1.CURRENCY_ISO_CODES.has(payload.currency)) {
59
+ throw new actions_core_1.IntegrationError(`${payload.currency} is not a valid currency code.`, 'Misconfigured required field', 400);
60
+ }
61
+ if (!payload.user_data) {
62
+ throw new actions_core_1.IntegrationError('Must include at least one user data property', 'Misconfigured required field', 400);
63
+ }
64
+ if (payload.action_source === 'website' && payload.user_data.client_user_agent === undefined) {
65
+ throw new actions_core_1.IntegrationError('If action source is "Website" then client_user_agent must be defined', 'Misconfigured required field', 400);
66
+ }
67
+ if (payload.contents) {
68
+ const err = fb_capi_properties_1.validateContents(payload.contents);
69
+ if (err)
70
+ throw err;
71
+ }
72
+ const [data_options, country_code, state_code] = fb_capi_properties_1.dataProcessingOptions(payload.data_processing_options, payload.data_processing_options_country, payload.data_processing_options_state);
73
+ return request(`https://graph.facebook.com/v${utils_1.get_api_version(features, statsContext)}/${settings.pixelId}/events`, {
74
+ method: 'POST',
75
+ json: {
76
+ data: [
77
+ {
78
+ event_name: 'ViewContent',
79
+ event_time: payload.event_time,
80
+ action_source: payload.action_source,
81
+ event_id: payload.event_id,
82
+ event_source_url: payload.event_source_url,
83
+ user_data: fb_capi_user_data_1.hash_user_data({ user_data: payload.user_data }),
84
+ custom_data: {
85
+ ...payload.custom_data,
86
+ currency: payload.currency,
87
+ value: payload.value,
88
+ content_ids: payload.content_ids,
89
+ content_name: payload.content_name,
90
+ content_type: payload.content_type,
91
+ contents: payload.contents,
92
+ content_category: payload.content_category
93
+ },
94
+ app_data: fb_capi_app_data_1.generate_app_data(payload.app_data_field),
95
+ data_processing_options: data_options,
96
+ data_processing_options_country: country_code,
97
+ data_processing_options_state: state_code
98
+ }
99
+ ],
100
+ ...(settings.testEventCode && { test_event_code: settings.testEventCode })
101
+ }
102
+ });
103
+ }
104
+ else {
105
+ throw new actions_core_1.IntegrationError(`Sync mode ${syncMode} is not supported`, 'Misconfigured sync mode', 400);
106
+ }
107
+ }
108
+ };
109
+ exports.default = action;
110
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/facebook-conversions-api/viewContent2/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAC1E,8DAkB8B;AAC9B,4DAAsE;AAGtE,4CAAiD;AACjD,oCAA0C;AAC1C,0DAAuE;AAEvE,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE,mDAAmD;IAChE,mBAAmB,EAAE,6CAA6C;IAClE,QAAQ,EAAE;QACR,WAAW,EAAE,8DAA8D;QAC3E,KAAK,EAAE,qBAAqB;QAC5B,OAAO,EAAE,KAAK;QACd,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;KACrD;IACD,MAAM,EAAE;QACN,aAAa,EAAE,EAAE,GAAG,kCAAa,EAAE,QAAQ,EAAE,IAAI,EAAE;QACnD,UAAU,EAAE,EAAE,GAAG,+BAAU,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC7C,SAAS,EAAE,mCAAe;QAC1B,cAAc,EAAE,iCAAc;QAC9B,gBAAgB,EAAE,qCAAgB;QAClC,WAAW,EAAE,EAAE,GAAG,gCAAW,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,yBAAyB,EAAE,EAAE;QAChF,YAAY,EAAE,iCAAY;QAC1B,YAAY,EAAE,iCAAY;QAC1B,QAAQ,EAAE;YACR,GAAG,6BAAQ;YACX,OAAO,EAAE;gBAEP,YAAY,EAAE;oBACZ,cAAc;oBACd;wBACE,EAAE,EAAE;4BACF,OAAO,EAAE,cAAc;yBACxB;wBACD,QAAQ,EAAE;4BACR,OAAO,EAAE,YAAY;yBACtB;wBACD,UAAU,EAAE;4BACV,OAAO,EAAE,SAAS;yBACnB;qBACF;iBACF;aACF;SACF;QACD,QAAQ,EAAE,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e,MAAM,CAAA"}
@@ -0,0 +1,2 @@
1
+ export interface Payload {
2
+ }
@@ -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/facebook-custom-audiences/add/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
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;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const action = {
4
+ title: 'Add',
5
+ description: 'This action is in charge of adding elements to your audience.',
6
+ fields: {},
7
+ perform: (_request, _data) => {
8
+ }
9
+ };
10
+ exports.default = action;
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/facebook-custom-audiences/add/index.ts"],"names":[],"mappings":";;AAIA,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,KAAK;IACZ,WAAW,EAAE,+DAA+D;IAC5E,MAAM,EAAE,EAAE;IACV,OAAO,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE;IAM7B,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,2 @@
1
+ export interface Payload {
2
+ }
@@ -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/facebook-custom-audiences/remove/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
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;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const action = {
4
+ title: 'Remove',
5
+ description: 'This action is in charge of removing elements to your audience.',
6
+ fields: {},
7
+ perform: (_request, _data) => {
8
+ }
9
+ };
10
+ exports.default = action;
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/facebook-custom-audiences/remove/index.ts"],"names":[],"mappings":";;AAIA,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,iEAAiE;IAC9E,MAAM,EAAE,EAAE;IACV,OAAO,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE;IAM7B,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,17 @@
1
+ import { RequestClient } from '@segment/actions-core';
2
+ interface createAudienceRequestParams {
3
+ advertiserId: string;
4
+ audienceName: string;
5
+ description?: string;
6
+ membershipDurationDays: string;
7
+ audienceType: string;
8
+ token?: string;
9
+ }
10
+ interface getAudienceParams {
11
+ advertiserId: string;
12
+ audienceId: string;
13
+ token?: string;
14
+ }
15
+ export declare const createAudienceRequest: (_request: RequestClient, params: createAudienceRequestParams) => Promise<Response>;
16
+ export declare const getAudienceRequest: (_request: RequestClient, params: getAudienceParams) => Promise<Response>;
17
+ export {};
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAudienceRequest = exports.createAudienceRequest = void 0;
4
+ const DV360API = `https://displayvideo.googleapis.com/v3/firstAndThirdPartyAudiences`;
5
+ const createAudienceRequest = (_request, params) => {
6
+ const { advertiserId, audienceName, description, membershipDurationDays, audienceType, token } = params;
7
+ const endpoint = DV360API + `?advertiserId=${advertiserId}`;
8
+ return _request(endpoint, {
9
+ method: 'POST',
10
+ headers: {
11
+ authorization: `Bearer ${token}`,
12
+ 'Content-Type': 'application/json; charset=utf-8'
13
+ },
14
+ json: {
15
+ displayName: audienceName,
16
+ audienceType: audienceType,
17
+ membershipDurationDays: membershipDurationDays,
18
+ description: description,
19
+ audienceSource: 'AUDIENCE_SOURCE_UNSPECIFIED',
20
+ firstAndThirdPartyAudienceType: 'FIRST_AND_THIRD_PARTY_AUDIENCE_TYPE_FIRST_PARTY'
21
+ }
22
+ });
23
+ };
24
+ exports.createAudienceRequest = createAudienceRequest;
25
+ const getAudienceRequest = (_request, params) => {
26
+ const { advertiserId, audienceId, token } = params;
27
+ const endpoint = DV360API + `/${audienceId}?advertiserId=${advertiserId}`;
28
+ console.log(endpoint);
29
+ return _request(endpoint, {
30
+ method: 'GET',
31
+ headers: {
32
+ authorization: `Bearer ${token}`,
33
+ 'Content-Type': 'application/json; charset=utf-8'
34
+ }
35
+ });
36
+ };
37
+ exports.getAudienceRequest = getAudienceRequest;
38
+ //# sourceMappingURL=functions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../src/destinations/first-party-dv360/functions.ts"],"names":[],"mappings":";;;AAEA,MAAM,QAAQ,GAAG,oEAAoE,CAAA;AAiB9E,MAAM,qBAAqB,GAAG,CACnC,QAAuB,EACvB,MAAmC,EAChB,EAAE;IACrB,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,sBAAsB,EAAE,YAAY,EAAE,KAAK,EAAE,GAAG,MAAM,CAAA;IAEvG,MAAM,QAAQ,GAAG,QAAQ,GAAG,iBAAiB,YAAY,EAAE,CAAA;IAE3D,OAAO,QAAQ,CAAC,QAAQ,EAAE;QACxB,MAAM,EAAE,MAAM;QACd,OAAO,EAAE;YACP,aAAa,EAAE,UAAU,KAAK,EAAE;YAChC,cAAc,EAAE,iCAAiC;SAClD;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,YAAY;YACzB,YAAY,EAAE,YAAY;YAC1B,sBAAsB,EAAE,sBAAsB;YAC9C,WAAW,EAAE,WAAW;YACxB,cAAc,EAAE,6BAA6B;YAC7C,8BAA8B,EAAE,iDAAiD;SAClF;KACF,CAAC,CAAA;AACJ,CAAC,CAAA;AAvBY,QAAA,qBAAqB,yBAuBjC;AAEM,MAAM,kBAAkB,GAAG,CAAC,QAAuB,EAAE,MAAyB,EAAqB,EAAE;IAC1G,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,MAAM,CAAA;IAElD,MAAM,QAAQ,GAAG,QAAQ,GAAG,IAAI,UAAU,iBAAiB,YAAY,EAAE,CAAA;IACzE,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;IAErB,OAAO,QAAQ,CAAC,QAAQ,EAAE;QACxB,MAAM,EAAE,KAAK;QACb,OAAO,EAAE;YACP,aAAa,EAAE,UAAU,KAAK,EAAE;YAChC,cAAc,EAAE,iCAAiC;SAClD;KACF,CAAC,CAAA;AACJ,CAAC,CAAA;AAbY,QAAA,kBAAkB,sBAa9B"}
@@ -1,3 +1,4 @@
1
1
  export declare const CONSTANTS: {
2
2
  MAX_CELLS: number;
3
+ MAX_CELLS_CANARY: number;
3
4
  };
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CONSTANTS = void 0;
4
4
  exports.CONSTANTS = {
5
- MAX_CELLS: 300000
5
+ MAX_CELLS: 300000,
6
+ MAX_CELLS_CANARY: 1000000
6
7
  };
7
8
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/destinations/google-sheets/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG;IAIvB,SAAS,EAAE,MAAM;CAClB,CAAA"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/destinations/google-sheets/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG;IAIvB,SAAS,EAAE,MAAM;IAKjB,gBAAgB,EAAE,OAAS;CAC5B,CAAA"}
@@ -8,4 +8,5 @@ export interface Payload {
8
8
  [k: string]: unknown;
9
9
  };
10
10
  enable_batching?: boolean;
11
+ batch_size?: number;
11
12
  }
@@ -49,14 +49,14 @@ const action = {
49
49
  fields: {
50
50
  label: 'Fields',
51
51
  description: `
52
- The fields to write to the spreadsheet.
52
+ The fields to write to the spreadsheet.
53
+
54
+ On the left-hand side, input the name of the field as it will appear in the Google Sheet.
53
55
 
54
- On the left-hand side, input the name of the field as it will appear in the Google Sheet.
55
-
56
56
  On the right-hand side, select the field from your data model that maps to the given field in your sheet.
57
-
57
+
58
58
  ---
59
-
59
+
60
60
  `,
61
61
  type: 'object',
62
62
  required: true,
@@ -67,13 +67,29 @@ const action = {
67
67
  label: 'Batch Data to Google Sheets',
68
68
  description: 'Set as true to ensure Segment sends data to Google Sheets in batches. Please do not set to false.',
69
69
  default: true
70
+ },
71
+ batch_size: {
72
+ type: 'number',
73
+ label: 'Batch Size',
74
+ description: 'The number of rows to write to the spreadsheet in a single batch. The maximum value is 1000.',
75
+ default: 50000,
76
+ required: true,
77
+ unsafe_hidden: true
78
+ },
79
+ batch_bytes: {
80
+ type: 'number',
81
+ label: 'Batch Bytes',
82
+ description: 'The number of bytes to write to the spreadsheet in a single batch. The maximum value is 4000000.',
83
+ default: 2000000,
84
+ required: true,
85
+ unsafe_hidden: true
70
86
  }
71
87
  },
72
- perform: (request, { payload }) => {
73
- return operations_1.processData(request, [payload]);
88
+ perform: (request, { payload, features }) => {
89
+ return operations_1.processData(request, [payload], features);
74
90
  },
75
- performBatch: (request, { payload }) => {
76
- return operations_1.processData(request, payload);
91
+ performBatch: (request, { payload, features }) => {
92
+ return operations_1.processData(request, payload, features);
77
93
  }
78
94
  };
79
95
  exports.default = action;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/google-s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,QAAQ,EAAE,IAAI;YACd,eAAe,EAAE,eAAe;SACjC;QACD,eAAe,EAAE;YACf,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,6BAA6B;YACpC,WAAW,EAAE,mGAAmG;YAChH,OAAO,EAAE,IAAI;SACd;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAChC,OAAO,wBAAW,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IACxC,CAAC;IACD,YAAY,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QACrC,OAAO,wBAAW,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;IACtC,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/google-sheets/postSheet/index.ts"],"names":[],"mappings":";;AAIA,6CAA0C;AAE1C,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,8CAA8C;IAC3D,mBAAmB,EAAE,oCAAoC;IAEzD,MAAM,EAAE;QACN,iBAAiB,EAAE;YACjB,KAAK,EAAE,mBAAmB;YAC1B,WAAW,EAAE,iEAAiE;YAC9E,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE;SACvC;QACD,cAAc,EAAE;YACd,KAAK,EAAE,gBAAgB;YACvB,WAAW,EACT,uGAAuG;YACzG,IAAI,EAAE,QAAQ;YACd,aAAa,EAAE,IAAI;YACnB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;SAChC;QACD,cAAc,EAAE;YACd,KAAK,EAAE,gBAAgB;YACvB,WAAW,EACT,6JAA6J;YAC/J,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,EAAE;SACZ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AAY,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC/C,OAAO,wBAAW,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAA;IAChD,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -6,5 +6,7 @@ export declare type MappingSettings = {
6
6
  dataFormat: string;
7
7
  columns: string[];
8
8
  };
9
- declare function processData(request: RequestClient, events: Payload[]): Promise<(import("@segment/actions-core/src").ModifiedResponse<unknown> | undefined)[]>;
9
+ declare function processData(request: RequestClient, events: Payload[], features?: {
10
+ [k: string]: boolean;
11
+ }): Promise<(import("@segment/actions-core/src").ModifiedResponse<unknown> | undefined)[]>;
10
12
  export { processData };
@@ -14,10 +14,11 @@ const generateColumnValuesFromFields = (identifier, fields, columns) => {
14
14
  retVal.unshift(identifier);
15
15
  return retVal;
16
16
  };
17
- function processGetSpreadsheetResponse(response, events, mappingSettings) {
17
+ function processGetSpreadsheetResponse(response, events, mappingSettings, features) {
18
18
  const numColumns = mappingSettings.columns.length;
19
19
  const numRows = response.values?.length;
20
- if (numRows * numColumns > constants_1.CONSTANTS.MAX_CELLS) {
20
+ const MAX_CELLS = features['GOOGLE_SHEETS_NEW_MAX_CELLS_ENABLED'] ? constants_1.CONSTANTS.MAX_CELLS_CANARY : constants_1.CONSTANTS.MAX_CELLS;
21
+ if (numRows * numColumns > MAX_CELLS) {
21
22
  throw new actions_core_1.IntegrationError('Sheet has reached maximum limit', 'INVALID_REQUEST_DATA', 400);
22
23
  }
23
24
  const updateBatch = [];
@@ -76,7 +77,7 @@ async function processAppendBatch(mappingSettings, appendBatch, gs) {
76
77
  const values = appendBatch.map(({ identifier, event }) => generateColumnValuesFromFields(identifier, event, mappingSettings.columns));
77
78
  return gs.append(mappingSettings, `A${DATA_ROW_OFFSET}`, values);
78
79
  }
79
- async function processData(request, events) {
80
+ async function processData(request, events, features = {}) {
80
81
  const mappingSettings = {
81
82
  spreadsheetId: events[0].spreadsheet_id,
82
83
  spreadsheetName: events[0].spreadsheet_name,
@@ -85,7 +86,7 @@ async function processData(request, events) {
85
86
  };
86
87
  const gs = new index_1.GoogleSheets(request);
87
88
  const response = await gs.get(mappingSettings, `A${DATA_ROW_OFFSET}:A`);
88
- const { appendBatch, updateBatch } = processGetSpreadsheetResponse(response.data, events, mappingSettings);
89
+ const { appendBatch, updateBatch } = processGetSpreadsheetResponse(response.data, events, mappingSettings, features);
89
90
  const promises = [
90
91
  processUpdateBatch(mappingSettings, updateBatch, gs),
91
92
  processAppendBatch(mappingSettings, appendBatch, gs)
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/destinations/google-sheets/postSheet/operations.ts"],"names":[],"mappings":";;;;;;AACA,wDAAuE;AACvE,+CAA+D;AAC/D,4CAAwC;AAExC,uEAAqC;AA4BrC,MAAM,eAAe,GAAG,CAAC,CAAA;AAwBzB,MAAM,8BAA8B,GAAG,CAAC,UAAkB,EAAE,MAAc,EAAE,OAAiB,EAAE,EAAE;IAC/F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAA;IACtD,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAA;IAC1B,OAAO,MAAM,CAAA;AACf,CAAC,CAAA;AAQD,SAAS,6BAA6B,CAAC,QAAqB,EAAE,MAAiB,EAAE,eAAgC;IAC/G,MAAM,UAAU,GAAG,eAAe,CAAC,OAAO,CAAC,MAAM,CAAA;IACjD,MAAM,OAAO,GAAG,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IAEvC,IAAI,OAAO,GAAG,UAAU,GAAG,qBAAS,CAAC,SAAS,EAAE;QAC9C,MAAM,IAAI,+BAAgB,CAAC,iCAAiC,EAAE,sBAAsB,EAAE,GAAG,CAAC,CAAA;KAC3F;IAED,MAAM,WAAW,GAAk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