@segment/action-destinations 3.363.1-node-engine-upgrade.1 → 3.364.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 (401) hide show
  1. package/dist/destinations/salesforce/account/index.js +2 -2
  2. package/dist/destinations/salesforce/account/index.js.map +1 -1
  3. package/dist/destinations/salesforce/account2/index.js +2 -2
  4. package/dist/destinations/salesforce/account2/index.js.map +1 -1
  5. package/dist/destinations/salesforce/cases/index.js +2 -2
  6. package/dist/destinations/salesforce/cases/index.js.map +1 -1
  7. package/dist/destinations/salesforce/cases2/index.js +2 -2
  8. package/dist/destinations/salesforce/cases2/index.js.map +1 -1
  9. package/dist/destinations/salesforce/contact/index.js +2 -2
  10. package/dist/destinations/salesforce/contact/index.js.map +1 -1
  11. package/dist/destinations/salesforce/contact2/index.js +2 -2
  12. package/dist/destinations/salesforce/contact2/index.js.map +1 -1
  13. package/dist/destinations/salesforce/customObject/index.js +2 -2
  14. package/dist/destinations/salesforce/customObject/index.js.map +1 -1
  15. package/dist/destinations/salesforce/customObject2/index.js +2 -2
  16. package/dist/destinations/salesforce/customObject2/index.js.map +1 -1
  17. package/dist/destinations/salesforce/lead/index.js +2 -2
  18. package/dist/destinations/salesforce/lead/index.js.map +1 -1
  19. package/dist/destinations/salesforce/lead2/index.js +2 -2
  20. package/dist/destinations/salesforce/lead2/index.js.map +1 -1
  21. package/dist/destinations/salesforce/opportunity/index.js +2 -2
  22. package/dist/destinations/salesforce/opportunity/index.js.map +1 -1
  23. package/dist/destinations/salesforce/opportunity2/index.js +2 -2
  24. package/dist/destinations/salesforce/opportunity2/index.js.map +1 -1
  25. package/dist/destinations/salesforce/sf-operations.d.ts +4 -3
  26. package/dist/destinations/salesforce/sf-operations.js +35 -16
  27. package/dist/destinations/salesforce/sf-operations.js.map +1 -1
  28. package/package.json +5 -5
  29. package/dist/destinations/accoil-analytics/postToAccoil/generated-types.d.ts +0 -5
  30. package/dist/destinations/accoil-analytics/postToAccoil/generated-types.js +0 -3
  31. package/dist/destinations/accoil-analytics/postToAccoil/generated-types.js.map +0 -1
  32. package/dist/destinations/accoil-analytics/postToAccoil/index.d.ts +0 -5
  33. package/dist/destinations/accoil-analytics/postToAccoil/index.js +0 -28
  34. package/dist/destinations/accoil-analytics/postToAccoil/index.js.map +0 -1
  35. package/dist/destinations/braze/createAliasV2.types.d.ts +0 -5
  36. package/dist/destinations/braze/createAliasV2.types.js +0 -3
  37. package/dist/destinations/braze/createAliasV2.types.js.map +0 -1
  38. package/dist/destinations/braze/identifyUserV2.types.d.ts +0 -8
  39. package/dist/destinations/braze/identifyUserV2.types.js +0 -3
  40. package/dist/destinations/braze/identifyUserV2.types.js.map +0 -1
  41. package/dist/destinations/campaign-manager-360/common-fields.d.ts +0 -3
  42. package/dist/destinations/campaign-manager-360/common-fields.js +0 -306
  43. package/dist/destinations/campaign-manager-360/common-fields.js.map +0 -1
  44. package/dist/destinations/campaign-manager-360/conversionAdjustmentUpload/generated-types.d.ts +0 -45
  45. package/dist/destinations/campaign-manager-360/conversionAdjustmentUpload/generated-types.js +0 -3
  46. package/dist/destinations/campaign-manager-360/conversionAdjustmentUpload/generated-types.js.map +0 -1
  47. package/dist/destinations/campaign-manager-360/conversionAdjustmentUpload/index.d.ts +0 -5
  48. package/dist/destinations/campaign-manager-360/conversionAdjustmentUpload/index.js +0 -86
  49. package/dist/destinations/campaign-manager-360/conversionAdjustmentUpload/index.js.map +0 -1
  50. package/dist/destinations/campaign-manager-360/conversionUpload/generated-types.d.ts +0 -50
  51. package/dist/destinations/campaign-manager-360/conversionUpload/generated-types.js +0 -3
  52. package/dist/destinations/campaign-manager-360/conversionUpload/generated-types.js.map +0 -1
  53. package/dist/destinations/campaign-manager-360/conversionUpload/index.d.ts +0 -5
  54. package/dist/destinations/campaign-manager-360/conversionUpload/index.js +0 -131
  55. package/dist/destinations/campaign-manager-360/conversionUpload/index.js.map +0 -1
  56. package/dist/destinations/campaign-manager-360/generated-types.d.ts +0 -5
  57. package/dist/destinations/campaign-manager-360/generated-types.js +0 -3
  58. package/dist/destinations/campaign-manager-360/generated-types.js.map +0 -1
  59. package/dist/destinations/campaign-manager-360/index.d.ts +0 -4
  60. package/dist/destinations/campaign-manager-360/index.js +0 -63
  61. package/dist/destinations/campaign-manager-360/index.js.map +0 -1
  62. package/dist/destinations/campaign-manager-360/types.d.ts +0 -116
  63. package/dist/destinations/campaign-manager-360/types.js +0 -23
  64. package/dist/destinations/campaign-manager-360/types.js.map +0 -1
  65. package/dist/destinations/campaign-manager-360/utils.d.ts +0 -21
  66. package/dist/destinations/campaign-manager-360/utils.js +0 -175
  67. package/dist/destinations/campaign-manager-360/utils.js.map +0 -1
  68. package/dist/destinations/contentstack/customAttributesSync/generated-types.d.ts +0 -7
  69. package/dist/destinations/contentstack/customAttributesSync/generated-types.js +0 -3
  70. package/dist/destinations/contentstack/customAttributesSync/generated-types.js.map +0 -1
  71. package/dist/destinations/contentstack/customAttributesSync/index.d.ts +0 -5
  72. package/dist/destinations/contentstack/customAttributesSync/index.js +0 -54
  73. package/dist/destinations/contentstack/customAttributesSync/index.js.map +0 -1
  74. package/dist/destinations/contentstack/customAttributesSync/types.d.ts +0 -14
  75. package/dist/destinations/contentstack/customAttributesSync/types.js +0 -3
  76. package/dist/destinations/contentstack/customAttributesSync/types.js.map +0 -1
  77. package/dist/destinations/contentstack/customAttributesSync/utils.d.ts +0 -4
  78. package/dist/destinations/contentstack/customAttributesSync/utils.js +0 -20
  79. package/dist/destinations/contentstack/customAttributesSync/utils.js.map +0 -1
  80. package/dist/destinations/contentstack/types.d.ts +0 -12
  81. package/dist/destinations/contentstack/types.js +0 -3
  82. package/dist/destinations/contentstack/types.js.map +0 -1
  83. package/dist/destinations/dynamic-yield-audiences/syncAudience/types.d.ts +0 -22
  84. package/dist/destinations/dynamic-yield-audiences/syncAudience/types.js +0 -3
  85. package/dist/destinations/dynamic-yield-audiences/syncAudience/types.js.map +0 -1
  86. package/dist/destinations/dynamic-yield-audiences/types.d.ts +0 -8
  87. package/dist/destinations/dynamic-yield-audiences/types.js +0 -12
  88. package/dist/destinations/dynamic-yield-audiences/types.js.map +0 -1
  89. package/dist/destinations/engage/sendgrid/Profile.d.ts +0 -6
  90. package/dist/destinations/engage/sendgrid/Profile.js +0 -3
  91. package/dist/destinations/engage/sendgrid/Profile.js.map +0 -1
  92. package/dist/destinations/engage/sendgrid/destinationDefinition.d.ts +0 -3
  93. package/dist/destinations/engage/sendgrid/destinationDefinition.js +0 -70
  94. package/dist/destinations/engage/sendgrid/destinationDefinition.js.map +0 -1
  95. package/dist/destinations/engage/sendgrid/generated-types.d.ts +0 -1
  96. package/dist/destinations/engage/sendgrid/generated-types.js +0 -14
  97. package/dist/destinations/engage/sendgrid/generated-types.js.map +0 -1
  98. package/dist/destinations/engage/sendgrid/index.d.ts +0 -2
  99. package/dist/destinations/engage/sendgrid/index.js +0 -5
  100. package/dist/destinations/engage/sendgrid/index.js.map +0 -1
  101. package/dist/destinations/engage/sendgrid/previewApiLookup/actionDefinition.d.ts +0 -4
  102. package/dist/destinations/engage/sendgrid/previewApiLookup/actionDefinition.js +0 -28
  103. package/dist/destinations/engage/sendgrid/previewApiLookup/actionDefinition.js.map +0 -1
  104. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.d.ts +0 -21
  105. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js +0 -174
  106. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js.map +0 -1
  107. package/dist/destinations/engage/sendgrid/previewApiLookup/generated-types.d.ts +0 -1
  108. package/dist/destinations/engage/sendgrid/previewApiLookup/generated-types.js +0 -14
  109. package/dist/destinations/engage/sendgrid/previewApiLookup/generated-types.js.map +0 -1
  110. package/dist/destinations/engage/sendgrid/previewApiLookup/index.d.ts +0 -1
  111. package/dist/destinations/engage/sendgrid/previewApiLookup/index.js +0 -14
  112. package/dist/destinations/engage/sendgrid/previewApiLookup/index.js.map +0 -1
  113. package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.d.ts +0 -44
  114. package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js +0 -419
  115. package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js.map +0 -1
  116. package/dist/destinations/engage/sendgrid/sendEmail/UnlayerResponse.d.ts +0 -12
  117. package/dist/destinations/engage/sendgrid/sendEmail/UnlayerResponse.js +0 -3
  118. package/dist/destinations/engage/sendgrid/sendEmail/UnlayerResponse.js.map +0 -1
  119. package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.d.ts +0 -4
  120. package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.js +0 -257
  121. package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.js.map +0 -1
  122. package/dist/destinations/engage/sendgrid/sendEmail/generated-types.d.ts +0 -1
  123. package/dist/destinations/engage/sendgrid/sendEmail/generated-types.js +0 -14
  124. package/dist/destinations/engage/sendgrid/sendEmail/generated-types.js.map +0 -1
  125. package/dist/destinations/engage/sendgrid/sendEmail/index.d.ts +0 -1
  126. package/dist/destinations/engage/sendgrid/sendEmail/index.js +0 -14
  127. package/dist/destinations/engage/sendgrid/sendEmail/index.js.map +0 -1
  128. package/dist/destinations/engage/sendgrid/sendEmail/insertEmailPreviewText.d.ts +0 -1
  129. package/dist/destinations/engage/sendgrid/sendEmail/insertEmailPreviewText.js +0 -23
  130. package/dist/destinations/engage/sendgrid/sendEmail/insertEmailPreviewText.js.map +0 -1
  131. package/dist/destinations/engage/sendgrid/sendEmail/isRestrictedDomain.d.ts +0 -1
  132. package/dist/destinations/engage/sendgrid/sendEmail/isRestrictedDomain.js +0 -14
  133. package/dist/destinations/engage/sendgrid/sendEmail/isRestrictedDomain.js.map +0 -1
  134. package/dist/destinations/engage/twilio/destinationDefinition.d.ts +0 -3
  135. package/dist/destinations/engage/twilio/destinationDefinition.js +0 -172
  136. package/dist/destinations/engage/twilio/destinationDefinition.js.map +0 -1
  137. package/dist/destinations/engage/twilio/generated-types.d.ts +0 -1
  138. package/dist/destinations/engage/twilio/generated-types.js +0 -14
  139. package/dist/destinations/engage/twilio/generated-types.js.map +0 -1
  140. package/dist/destinations/engage/twilio/index.d.ts +0 -2
  141. package/dist/destinations/engage/twilio/index.js +0 -5
  142. package/dist/destinations/engage/twilio/index.js.map +0 -1
  143. package/dist/destinations/engage/twilio/sendMobilePush/PushSender.d.ts +0 -28
  144. package/dist/destinations/engage/twilio/sendMobilePush/PushSender.js +0 -151
  145. package/dist/destinations/engage/twilio/sendMobilePush/PushSender.js.map +0 -1
  146. package/dist/destinations/engage/twilio/sendMobilePush/actionDefinition.d.ts +0 -4
  147. package/dist/destinations/engage/twilio/sendMobilePush/actionDefinition.js +0 -250
  148. package/dist/destinations/engage/twilio/sendMobilePush/actionDefinition.js.map +0 -1
  149. package/dist/destinations/engage/twilio/sendMobilePush/generated-types.d.ts +0 -1
  150. package/dist/destinations/engage/twilio/sendMobilePush/generated-types.js +0 -14
  151. package/dist/destinations/engage/twilio/sendMobilePush/generated-types.js.map +0 -1
  152. package/dist/destinations/engage/twilio/sendMobilePush/index.d.ts +0 -1
  153. package/dist/destinations/engage/twilio/sendMobilePush/index.js +0 -14
  154. package/dist/destinations/engage/twilio/sendMobilePush/index.js.map +0 -1
  155. package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.d.ts +0 -9
  156. package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.js +0 -72
  157. package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.js.map +0 -1
  158. package/dist/destinations/engage/twilio/sendSms/actionDefinition.d.ts +0 -4
  159. package/dist/destinations/engage/twilio/sendSms/actionDefinition.js +0 -162
  160. package/dist/destinations/engage/twilio/sendSms/actionDefinition.js.map +0 -1
  161. package/dist/destinations/engage/twilio/sendSms/generated-types.d.ts +0 -1
  162. package/dist/destinations/engage/twilio/sendSms/generated-types.js +0 -14
  163. package/dist/destinations/engage/twilio/sendSms/generated-types.js.map +0 -1
  164. package/dist/destinations/engage/twilio/sendSms/index.d.ts +0 -1
  165. package/dist/destinations/engage/twilio/sendSms/index.js +0 -14
  166. package/dist/destinations/engage/twilio/sendSms/index.js.map +0 -1
  167. package/dist/destinations/engage/twilio/sendWhatsApp/WhatsAppMessageSender.d.ts +0 -9
  168. package/dist/destinations/engage/twilio/sendWhatsApp/WhatsAppMessageSender.js +0 -89
  169. package/dist/destinations/engage/twilio/sendWhatsApp/WhatsAppMessageSender.js.map +0 -1
  170. package/dist/destinations/engage/twilio/sendWhatsApp/actionDefinition.d.ts +0 -4
  171. package/dist/destinations/engage/twilio/sendWhatsApp/actionDefinition.js +0 -136
  172. package/dist/destinations/engage/twilio/sendWhatsApp/actionDefinition.js.map +0 -1
  173. package/dist/destinations/engage/twilio/sendWhatsApp/generated-types.d.ts +0 -1
  174. package/dist/destinations/engage/twilio/sendWhatsApp/generated-types.js +0 -14
  175. package/dist/destinations/engage/twilio/sendWhatsApp/generated-types.js.map +0 -1
  176. package/dist/destinations/engage/twilio/sendWhatsApp/index.d.ts +0 -1
  177. package/dist/destinations/engage/twilio/sendWhatsApp/index.js +0 -14
  178. package/dist/destinations/engage/twilio/sendWhatsApp/index.js.map +0 -1
  179. package/dist/destinations/engage/twilio/utils/PhoneMessageSender.d.ts +0 -16
  180. package/dist/destinations/engage/twilio/utils/PhoneMessageSender.js +0 -71
  181. package/dist/destinations/engage/twilio/utils/PhoneMessageSender.js.map +0 -1
  182. package/dist/destinations/engage/twilio/utils/TwilioMessageSender.d.ts +0 -16
  183. package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js +0 -115
  184. package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js.map +0 -1
  185. package/dist/destinations/engage/twilio/utils/index.d.ts +0 -2
  186. package/dist/destinations/engage/twilio/utils/index.js +0 -15
  187. package/dist/destinations/engage/twilio/utils/index.js.map +0 -1
  188. package/dist/destinations/engage/twilio/utils/types.d.ts +0 -23
  189. package/dist/destinations/engage/twilio/utils/types.js +0 -3
  190. package/dist/destinations/engage/twilio/utils/types.js.map +0 -1
  191. package/dist/destinations/engage/utils/AggregateError.d.ts +0 -14
  192. package/dist/destinations/engage/utils/AggregateError.js +0 -26
  193. package/dist/destinations/engage/utils/AggregateError.js.map +0 -1
  194. package/dist/destinations/engage/utils/EngageActionPerformer.d.ts +0 -42
  195. package/dist/destinations/engage/utils/EngageActionPerformer.js +0 -148
  196. package/dist/destinations/engage/utils/EngageActionPerformer.js.map +0 -1
  197. package/dist/destinations/engage/utils/EngageLogger.d.ts +0 -18
  198. package/dist/destinations/engage/utils/EngageLogger.js +0 -52
  199. package/dist/destinations/engage/utils/EngageLogger.js.map +0 -1
  200. package/dist/destinations/engage/utils/EngageStats.d.ts +0 -18
  201. package/dist/destinations/engage/utils/EngageStats.js +0 -95
  202. package/dist/destinations/engage/utils/EngageStats.js.map +0 -1
  203. package/dist/destinations/engage/utils/IntegrationErrorWrapper.d.ts +0 -12
  204. package/dist/destinations/engage/utils/IntegrationErrorWrapper.js +0 -31
  205. package/dist/destinations/engage/utils/IntegrationErrorWrapper.js.map +0 -1
  206. package/dist/destinations/engage/utils/MessageSendPerformer.d.ts +0 -65
  207. package/dist/destinations/engage/utils/MessageSendPerformer.js +0 -211
  208. package/dist/destinations/engage/utils/MessageSendPerformer.js.map +0 -1
  209. package/dist/destinations/engage/utils/Profile.d.ts +0 -6
  210. package/dist/destinations/engage/utils/Profile.js +0 -3
  211. package/dist/destinations/engage/utils/Profile.js.map +0 -1
  212. package/dist/destinations/engage/utils/ResponseError.d.ts +0 -25
  213. package/dist/destinations/engage/utils/ResponseError.js +0 -22
  214. package/dist/destinations/engage/utils/ResponseError.js.map +0 -1
  215. package/dist/destinations/engage/utils/apiLookups.d.ts +0 -22
  216. package/dist/destinations/engage/utils/apiLookups.js +0 -189
  217. package/dist/destinations/engage/utils/apiLookups.js.map +0 -1
  218. package/dist/destinations/engage/utils/getProfileApiEndpoint.d.ts +0 -2
  219. package/dist/destinations/engage/utils/getProfileApiEndpoint.js +0 -10
  220. package/dist/destinations/engage/utils/getProfileApiEndpoint.js.map +0 -1
  221. package/dist/destinations/engage/utils/index.d.ts +0 -9
  222. package/dist/destinations/engage/utils/index.js +0 -22
  223. package/dist/destinations/engage/utils/index.js.map +0 -1
  224. package/dist/destinations/engage/utils/isDestinationActionService.d.ts +0 -1
  225. package/dist/destinations/engage/utils/isDestinationActionService.js +0 -8
  226. package/dist/destinations/engage/utils/isDestinationActionService.js.map +0 -1
  227. package/dist/destinations/engage/utils/isRetryableError.d.ts +0 -2
  228. package/dist/destinations/engage/utils/isRetryableError.js +0 -33
  229. package/dist/destinations/engage/utils/isRetryableError.js.map +0 -1
  230. package/dist/destinations/engage/utils/operationTracking/GenericMethodDecorator.d.ts +0 -1
  231. package/dist/destinations/engage/utils/operationTracking/GenericMethodDecorator.js +0 -3
  232. package/dist/destinations/engage/utils/operationTracking/GenericMethodDecorator.js.map +0 -1
  233. package/dist/destinations/engage/utils/operationTracking/OperationDecorator.d.ts +0 -46
  234. package/dist/destinations/engage/utils/operationTracking/OperationDecorator.js +0 -46
  235. package/dist/destinations/engage/utils/operationTracking/OperationDecorator.js.map +0 -1
  236. package/dist/destinations/engage/utils/operationTracking/OperationDuration.d.ts +0 -12
  237. package/dist/destinations/engage/utils/operationTracking/OperationDuration.js +0 -23
  238. package/dist/destinations/engage/utils/operationTracking/OperationDuration.js.map +0 -1
  239. package/dist/destinations/engage/utils/operationTracking/OperationErrorHandler.d.ts +0 -12
  240. package/dist/destinations/engage/utils/operationTracking/OperationErrorHandler.js +0 -35
  241. package/dist/destinations/engage/utils/operationTracking/OperationErrorHandler.js.map +0 -1
  242. package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.d.ts +0 -14
  243. package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.js +0 -31
  244. package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.js.map +0 -1
  245. package/dist/destinations/engage/utils/operationTracking/OperationLogger.d.ts +0 -31
  246. package/dist/destinations/engage/utils/operationTracking/OperationLogger.js +0 -104
  247. package/dist/destinations/engage/utils/operationTracking/OperationLogger.js.map +0 -1
  248. package/dist/destinations/engage/utils/operationTracking/OperationStats.d.ts +0 -39
  249. package/dist/destinations/engage/utils/operationTracking/OperationStats.js +0 -130
  250. package/dist/destinations/engage/utils/operationTracking/OperationStats.js.map +0 -1
  251. package/dist/destinations/engage/utils/operationTracking/OperationTracker.test.d.ts +0 -1
  252. package/dist/destinations/engage/utils/operationTracking/OperationTracker.test.js +0 -377
  253. package/dist/destinations/engage/utils/operationTracking/OperationTracker.test.js.map +0 -1
  254. package/dist/destinations/engage/utils/operationTracking/OperationTree.d.ts +0 -23
  255. package/dist/destinations/engage/utils/operationTracking/OperationTree.js +0 -49
  256. package/dist/destinations/engage/utils/operationTracking/OperationTree.js.map +0 -1
  257. package/dist/destinations/engage/utils/operationTracking/TrackedError.d.ts +0 -6
  258. package/dist/destinations/engage/utils/operationTracking/TrackedError.js +0 -3
  259. package/dist/destinations/engage/utils/operationTracking/TrackedError.js.map +0 -1
  260. package/dist/destinations/engage/utils/operationTracking/index.d.ts +0 -10
  261. package/dist/destinations/engage/utils/operationTracking/index.js +0 -23
  262. package/dist/destinations/engage/utils/operationTracking/index.js.map +0 -1
  263. package/dist/destinations/engage/utils/operationTracking/wrapTryCatchFinallyPromisable.d.ts +0 -21
  264. package/dist/destinations/engage/utils/operationTracking/wrapTryCatchFinallyPromisable.js +0 -99
  265. package/dist/destinations/engage/utils/operationTracking/wrapTryCatchFinallyPromisable.js.map +0 -1
  266. package/dist/destinations/engage/utils/testUtils.d.ts +0 -6
  267. package/dist/destinations/engage/utils/testUtils.js +0 -26
  268. package/dist/destinations/engage/utils/testUtils.js.map +0 -1
  269. package/dist/destinations/engage/utils/track.d.ts +0 -52
  270. package/dist/destinations/engage/utils/track.js +0 -9
  271. package/dist/destinations/engage/utils/track.js.map +0 -1
  272. package/dist/destinations/engage-messaging-sendgrid/previewApiLookup.types.d.ts +0 -16
  273. package/dist/destinations/engage-messaging-sendgrid/previewApiLookup.types.js +0 -3
  274. package/dist/destinations/engage-messaging-sendgrid/previewApiLookup.types.js.map +0 -1
  275. package/dist/destinations/engage-messaging-sendgrid/sendEmail.types.d.ts +0 -56
  276. package/dist/destinations/engage-messaging-sendgrid/sendEmail.types.js +0 -3
  277. package/dist/destinations/engage-messaging-sendgrid/sendEmail.types.js.map +0 -1
  278. package/dist/destinations/engage-messaging-twilio/sendMobilePush.types.d.ts +0 -39
  279. package/dist/destinations/engage-messaging-twilio/sendMobilePush.types.js +0 -3
  280. package/dist/destinations/engage-messaging-twilio/sendMobilePush.types.js.map +0 -1
  281. package/dist/destinations/engage-messaging-twilio/sendSms.types.d.ts +0 -27
  282. package/dist/destinations/engage-messaging-twilio/sendSms.types.js +0 -3
  283. package/dist/destinations/engage-messaging-twilio/sendSms.types.js.map +0 -1
  284. package/dist/destinations/engage-messaging-twilio/sendWhatsApp.types.d.ts +0 -25
  285. package/dist/destinations/engage-messaging-twilio/sendWhatsApp.types.js +0 -3
  286. package/dist/destinations/engage-messaging-twilio/sendWhatsApp.types.js.map +0 -1
  287. package/dist/destinations/facebook-custom-audiences/add/generated-types.d.ts +0 -2
  288. package/dist/destinations/facebook-custom-audiences/add/generated-types.js +0 -3
  289. package/dist/destinations/facebook-custom-audiences/add/generated-types.js.map +0 -1
  290. package/dist/destinations/facebook-custom-audiences/add/index.d.ts +0 -5
  291. package/dist/destinations/facebook-custom-audiences/add/index.js +0 -11
  292. package/dist/destinations/facebook-custom-audiences/add/index.js.map +0 -1
  293. package/dist/destinations/facebook-custom-audiences/remove/generated-types.d.ts +0 -2
  294. package/dist/destinations/facebook-custom-audiences/remove/generated-types.js +0 -3
  295. package/dist/destinations/facebook-custom-audiences/remove/generated-types.js.map +0 -1
  296. package/dist/destinations/facebook-custom-audiences/remove/index.d.ts +0 -5
  297. package/dist/destinations/facebook-custom-audiences/remove/index.js +0 -11
  298. package/dist/destinations/facebook-custom-audiences/remove/index.js.map +0 -1
  299. package/dist/destinations/first-party-dv360/addToList/generated-types.d.ts +0 -2
  300. package/dist/destinations/first-party-dv360/addToList/generated-types.js +0 -3
  301. package/dist/destinations/first-party-dv360/addToList/generated-types.js.map +0 -1
  302. package/dist/destinations/first-party-dv360/addToList/index.d.ts +0 -5
  303. package/dist/destinations/first-party-dv360/addToList/index.js +0 -11
  304. package/dist/destinations/first-party-dv360/addToList/index.js.map +0 -1
  305. package/dist/destinations/hubspot/customEvent/dynamic-fields.d.ts +0 -5
  306. package/dist/destinations/hubspot/customEvent/dynamic-fields.js +0 -112
  307. package/dist/destinations/hubspot/customEvent/dynamic-fields.js.map +0 -1
  308. package/dist/destinations/hubspot/customEvent/event-completion.d.ts +0 -3
  309. package/dist/destinations/hubspot/customEvent/event-completion.js +0 -17
  310. package/dist/destinations/hubspot/customEvent/event-completion.js.map +0 -1
  311. package/dist/destinations/hubspot/customEvent/hubspot-api.d.ts +0 -62
  312. package/dist/destinations/hubspot/customEvent/hubspot-api.js +0 -305
  313. package/dist/destinations/hubspot/customEvent/hubspot-api.js.map +0 -1
  314. package/dist/destinations/hubspot/customEvent/utils.d.ts +0 -14
  315. package/dist/destinations/hubspot/customEvent/utils.js +0 -303
  316. package/dist/destinations/hubspot/customEvent/utils.js.map +0 -1
  317. package/dist/destinations/hubspot/customEvent/validation.d.ts +0 -3
  318. package/dist/destinations/hubspot/customEvent/validation.js +0 -66
  319. package/dist/destinations/hubspot/customEvent/validation.js.map +0 -1
  320. package/dist/destinations/hubspot/upsertObject/dynamic-fields.d.ts +0 -7
  321. package/dist/destinations/hubspot/upsertObject/dynamic-fields.js +0 -222
  322. package/dist/destinations/hubspot/upsertObject/dynamic-fields.js.map +0 -1
  323. package/dist/destinations/hubspot/upsertObject/hubspot-api.d.ts +0 -219
  324. package/dist/destinations/hubspot/upsertObject/hubspot-api.js +0 -609
  325. package/dist/destinations/hubspot/upsertObject/hubspot-api.js.map +0 -1
  326. package/dist/destinations/hubspot/upsertObject/utils.d.ts +0 -13
  327. package/dist/destinations/hubspot/upsertObject/utils.js +0 -547
  328. package/dist/destinations/hubspot/upsertObject/utils.js.map +0 -1
  329. package/dist/destinations/klaviyo/removeProfileToList/generated-types.d.ts +0 -5
  330. package/dist/destinations/klaviyo/removeProfileToList/generated-types.js +0 -3
  331. package/dist/destinations/klaviyo/removeProfileToList/generated-types.js.map +0 -1
  332. package/dist/destinations/klaviyo/removeProfileToList/index.d.ts +0 -5
  333. package/dist/destinations/klaviyo/removeProfileToList/index.js +0 -62
  334. package/dist/destinations/klaviyo/removeProfileToList/index.js.map +0 -1
  335. package/dist/destinations/mixpanel/incrementProperties/__test__/__snapshots__/snapshot.test.js.snap +0 -18
  336. package/dist/destinations/mixpanel/utils.d.ts +0 -13
  337. package/dist/destinations/mixpanel/utils.js +0 -117
  338. package/dist/destinations/mixpanel/utils.js.map +0 -1
  339. package/dist/destinations/movable-ink/categoryView/generated-types.d.ts +0 -22
  340. package/dist/destinations/movable-ink/categoryView/generated-types.js +0 -3
  341. package/dist/destinations/movable-ink/categoryView/generated-types.js.map +0 -1
  342. package/dist/destinations/movable-ink/categoryView/index.d.ts +0 -5
  343. package/dist/destinations/movable-ink/categoryView/index.js +0 -43
  344. package/dist/destinations/movable-ink/categoryView/index.js.map +0 -1
  345. package/dist/destinations/movable-ink/conversion/generated-types.d.ts +0 -20
  346. package/dist/destinations/movable-ink/conversion/generated-types.js +0 -3
  347. package/dist/destinations/movable-ink/conversion/generated-types.js.map +0 -1
  348. package/dist/destinations/movable-ink/conversion/index.d.ts +0 -5
  349. package/dist/destinations/movable-ink/conversion/index.js +0 -45
  350. package/dist/destinations/movable-ink/conversion/index.js.map +0 -1
  351. package/dist/destinations/movable-ink/fields.d.ts +0 -21
  352. package/dist/destinations/movable-ink/fields.js +0 -236
  353. package/dist/destinations/movable-ink/fields.js.map +0 -1
  354. package/dist/destinations/movable-ink/identify/generated-types.d.ts +0 -7
  355. package/dist/destinations/movable-ink/identify/generated-types.js +0 -3
  356. package/dist/destinations/movable-ink/identify/generated-types.js.map +0 -1
  357. package/dist/destinations/movable-ink/identify/index.d.ts +0 -5
  358. package/dist/destinations/movable-ink/identify/index.js +0 -32
  359. package/dist/destinations/movable-ink/identify/index.js.map +0 -1
  360. package/dist/destinations/movable-ink/productAdded/generated-types.d.ts +0 -22
  361. package/dist/destinations/movable-ink/productAdded/generated-types.js +0 -3
  362. package/dist/destinations/movable-ink/productAdded/generated-types.js.map +0 -1
  363. package/dist/destinations/movable-ink/productAdded/index.d.ts +0 -5
  364. package/dist/destinations/movable-ink/productAdded/index.js +0 -43
  365. package/dist/destinations/movable-ink/productAdded/index.js.map +0 -1
  366. package/dist/destinations/movable-ink/productViewed/generated-types.d.ts +0 -21
  367. package/dist/destinations/movable-ink/productViewed/generated-types.js +0 -3
  368. package/dist/destinations/movable-ink/productViewed/generated-types.js.map +0 -1
  369. package/dist/destinations/movable-ink/productViewed/index.d.ts +0 -5
  370. package/dist/destinations/movable-ink/productViewed/index.js +0 -43
  371. package/dist/destinations/movable-ink/productViewed/index.js.map +0 -1
  372. package/dist/destinations/movable-ink/search/generated-types.d.ts +0 -12
  373. package/dist/destinations/movable-ink/search/generated-types.js +0 -3
  374. package/dist/destinations/movable-ink/search/generated-types.js.map +0 -1
  375. package/dist/destinations/movable-ink/search/index.d.ts +0 -5
  376. package/dist/destinations/movable-ink/search/index.js +0 -43
  377. package/dist/destinations/movable-ink/search/index.js.map +0 -1
  378. package/dist/destinations/movable-ink/sendCustomEvent/generated-types.d.ts +0 -25
  379. package/dist/destinations/movable-ink/sendCustomEvent/generated-types.js +0 -3
  380. package/dist/destinations/movable-ink/sendCustomEvent/generated-types.js.map +0 -1
  381. package/dist/destinations/movable-ink/sendCustomEvent/index.d.ts +0 -5
  382. package/dist/destinations/movable-ink/sendCustomEvent/index.js +0 -48
  383. package/dist/destinations/movable-ink/sendCustomEvent/index.js.map +0 -1
  384. package/dist/destinations/responsys/shared_properties.d.ts +0 -3
  385. package/dist/destinations/responsys/shared_properties.js +0 -19
  386. package/dist/destinations/responsys/shared_properties.js.map +0 -1
  387. package/dist/destinations/snap-conversions-api/snap-capi-properties.d.ts +0 -35
  388. package/dist/destinations/snap-conversions-api/snap-capi-properties.js +0 -401
  389. package/dist/destinations/snap-conversions-api/snap-capi-properties.js.map +0 -1
  390. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.d.ts +0 -3
  391. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js +0 -34
  392. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js.map +0 -1
  393. package/dist/destinations/trackey/group.types.d.ts +0 -11
  394. package/dist/destinations/trackey/group.types.js +0 -3
  395. package/dist/destinations/trackey/group.types.js.map +0 -1
  396. package/dist/destinations/trackey/identify.types.d.ts +0 -11
  397. package/dist/destinations/trackey/identify.types.js +0 -3
  398. package/dist/destinations/trackey/identify.types.js.map +0 -1
  399. package/dist/destinations/trackey/track.types.d.ts +0 -12
  400. package/dist/destinations/trackey/track.types.js +0 -3
  401. package/dist/destinations/trackey/track.types.js.map +0 -1
@@ -1,401 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.formatPayload = exports.hash = exports.conversionType = exports.click_id = exports.os_version = exports.device_model = exports.sign_up_method = exports.page_url = exports.search_string = exports.client_dedup_id = exports.level = exports.transaction_id = exports.currency = exports.price = exports.number_items = exports.description = exports.item_ids = exports.brands = exports.item_category = exports.ip_address = exports.user_agent = exports.phone_number = exports.idfv = exports.uuid_c1 = exports.mobile_ad_id = exports.email = exports.timestamp = exports.event_tag = exports.event_conversion_type = exports.event_type = exports.products = exports.CURRENCY_ISO_4217_CODES = void 0;
4
- const actions_core_1 = require("@segment/actions-core");
5
- const crypto_1 = require("crypto");
6
- exports.CURRENCY_ISO_4217_CODES = new Set([
7
- 'USD',
8
- 'AED',
9
- 'AUD',
10
- 'BGN',
11
- 'BRL',
12
- 'CAD',
13
- 'CHF',
14
- 'CLP',
15
- 'CNY',
16
- 'COP',
17
- 'CZK',
18
- 'DKK',
19
- 'EGP',
20
- 'EUR',
21
- 'GBP',
22
- 'GIP',
23
- 'HKD',
24
- 'HRK',
25
- 'HUF',
26
- 'IDR',
27
- 'ILS',
28
- 'INR',
29
- 'JPY',
30
- 'KRW',
31
- 'KWD',
32
- 'KZT',
33
- 'LBP',
34
- 'MXN',
35
- 'MYR',
36
- 'NGN',
37
- 'NOK',
38
- 'NZD',
39
- 'PEN',
40
- 'PHP',
41
- 'PKR',
42
- 'PLN',
43
- 'QAR',
44
- 'RON',
45
- 'RUB',
46
- 'SAR',
47
- 'SEK',
48
- 'SGD',
49
- 'THB',
50
- 'TRY',
51
- 'TWD',
52
- 'TZS',
53
- 'UAH',
54
- 'VND',
55
- 'ZAR',
56
- 'ALL',
57
- 'BHD',
58
- 'DZD',
59
- 'GHS',
60
- 'IQD',
61
- 'ISK',
62
- 'JOD',
63
- 'KES',
64
- 'MAD',
65
- 'OMR',
66
- 'XOF'
67
- ]);
68
- exports.products = {
69
- label: 'Products',
70
- description: "Use this field to send details of mulitple products / items. This field overrides individual 'Item ID', 'Item Category' and 'Brand' fields. Note: total purchase value is tracked using the 'Price' field",
71
- type: 'object',
72
- multiple: true,
73
- additionalProperties: false,
74
- properties: {
75
- item_id: {
76
- label: 'Item ID',
77
- type: 'string',
78
- description: 'Identfier for the item. International Article Number (EAN) when applicable, or other product or category identifier.',
79
- allowNull: false
80
- },
81
- item_category: {
82
- label: 'Category',
83
- type: 'string',
84
- description: 'Category of the item. This field accepts a string.',
85
- allowNull: false
86
- },
87
- brand: {
88
- label: 'Brand',
89
- type: 'string',
90
- description: 'Brand associated with the item. This field accepts a string.',
91
- allowNull: false
92
- }
93
- },
94
- default: {
95
- '@arrayPath': [
96
- '$.properties.products',
97
- {
98
- item_id: {
99
- '@path': 'product_id'
100
- },
101
- item_category: {
102
- '@path': 'category'
103
- },
104
- brand: {
105
- '@path': 'brand'
106
- }
107
- }
108
- ]
109
- }
110
- };
111
- exports.event_type = {
112
- label: 'Event Type',
113
- description: 'The conversion event type. For custom events, you must use one of the predefined event types (i.e. CUSTOM_EVENT_1). Please refer to the possible event types in [Snapchat Marketing API docs](https://marketingapi.snapchat.com/docs/conversion.html#conversion-parameters).',
114
- type: 'string'
115
- };
116
- exports.event_conversion_type = {
117
- label: 'Event Conversion Type',
118
- description: 'Where the event took place. This must be OFFLINE, WEB, or MOBILE_APP.',
119
- type: 'string',
120
- choices: [
121
- { label: 'Offline', value: 'OFFLINE' },
122
- { label: 'Web', value: 'WEB' },
123
- { label: 'Mobile App', value: 'MOBILE_APP' }
124
- ]
125
- };
126
- exports.event_tag = {
127
- label: 'Event Tag',
128
- description: 'Custom event label.',
129
- type: 'string'
130
- };
131
- exports.timestamp = {
132
- label: 'Event Timestamp',
133
- description: 'The Epoch timestamp for when the conversion happened. The timestamp cannot be more than 28 days in the past.',
134
- type: 'string',
135
- default: {
136
- '@path': '$.timestamp'
137
- }
138
- };
139
- exports.email = {
140
- label: 'Email',
141
- description: 'Email address of the user who triggered the conversion event. Segment will normalize and hash this value before sending to Snapchat. [Snapchat requires](https://marketingapi.snapchat.com/docs/conversion.html#conversion-parameters) that every payload contain values for Email or Phone Number or Mobile Ad Identifier or both IP Address and User Agent fields. Also see [Segment documentation](https://segment.com/docs/connections/destinations/catalog/actions-snap-conversions/#required-parameters-and-hashing).',
142
- type: 'string',
143
- default: {
144
- '@if': {
145
- exists: { '@path': '$.properties.email' },
146
- then: { '@path': '$.properties.email' },
147
- else: { '@path': '$.traits.email' }
148
- }
149
- }
150
- };
151
- exports.mobile_ad_id = {
152
- label: 'Mobile Ad Identifier',
153
- description: 'Mobile ad identifier (IDFA or AAID) of the user who triggered the conversion event. Segment will normalize and hash this value before sending to Snapchat. [Snapchat requires](https://marketingapi.snapchat.com/docs/conversion.html#conversion-parameters) that every payload contain values for Email or Phone Number or Mobile Ad Identifier or both IP Address and User Agent fields. Also see [Segment documentation](https://segment.com/docs/connections/destinations/catalog/actions-snap-conversions/#required-parameters-and-hashing).',
154
- type: 'string',
155
- default: {
156
- '@path': '$.context.device.advertisingId'
157
- }
158
- };
159
- exports.uuid_c1 = {
160
- label: 'uuid_c1 Cookie',
161
- description: 'Unique user ID cookie. If you are using the Pixel SDK, you can access a cookie1 by looking at the _scid value.',
162
- type: 'string',
163
- default: {
164
- '@path': '$.integrations.Snap Conversions Api.uuid_c1'
165
- }
166
- };
167
- exports.idfv = {
168
- label: 'Identifier for Vendor',
169
- description: 'IDFV of the user’s device. Segment will normalize and hash this value before sending to Snapchat.',
170
- type: 'string',
171
- default: {
172
- '@path': '$.context.device.id'
173
- }
174
- };
175
- exports.phone_number = {
176
- label: 'Phone Number',
177
- description: 'Phone number of the user who triggered the conversion event. Segment will normalize and hash this value before sending to Snapchat. [Snapchat requires](https://marketingapi.snapchat.com/docs/conversion.html#conversion-parameters) that every payload contain values for Email or Phone Number or Mobile Ad Identifier or both IP Address and User Agent fields. Also see [Segment documentation](https://segment.com/docs/connections/destinations/catalog/actions-snap-conversions/#required-parameters-and-hashing).',
178
- type: 'string',
179
- default: {
180
- '@if': {
181
- exists: { '@path': '$.properties.phone' },
182
- then: { '@path': '$.properties.phone' },
183
- else: { '@path': '$.traits.phone' }
184
- }
185
- }
186
- };
187
- exports.user_agent = {
188
- label: 'User Agent',
189
- description: 'User agent from the user’s device. [Snapchat requires](https://marketingapi.snapchat.com/docs/conversion.html#conversion-parameters) that every payload contain values for Email or Phone Number or Mobile Ad Identifier or both IP Address and User Agent fields. Also see [Segment documentation](https://segment.com/docs/connections/destinations/catalog/actions-snap-conversions/#required-parameters-and-hashing).',
190
- type: 'string',
191
- default: {
192
- '@path': '$.context.userAgent'
193
- }
194
- };
195
- exports.ip_address = {
196
- label: 'IP Address',
197
- description: 'IP address of the device or browser. Segment will normalize and hash this value before sending to Snapchat. [Snapchat requires](https://marketingapi.snapchat.com/docs/conversion.html#conversion-parameters) that every payload contain values for Email or Phone Number or Mobile Ad Identifier or both IP Address and User Agent fields. Also see [Segment documentation](https://segment.com/docs/connections/destinations/catalog/actions-snap-conversions/#required-parameters-and-hashing).',
198
- type: 'string',
199
- default: {
200
- '@path': '$.context.ip'
201
- }
202
- };
203
- exports.item_category = {
204
- label: 'Item Category',
205
- description: 'Category of the item. This field accepts a string.',
206
- type: 'string',
207
- default: {
208
- '@path': '$.properties.category'
209
- }
210
- };
211
- exports.brands = {
212
- label: 'Brand',
213
- description: 'Brand associated with the item. This field accepts a string or a list of strings',
214
- type: 'string',
215
- multiple: true,
216
- default: {
217
- '@path': '$.properties.brand'
218
- }
219
- };
220
- exports.item_ids = {
221
- label: 'Item ID',
222
- description: 'Identfier for the item. International Article Number (EAN) when applicable, or other product or category identifier.',
223
- type: 'string',
224
- default: {
225
- '@path': '$.properties.product_id'
226
- }
227
- };
228
- exports.description = {
229
- label: 'Description',
230
- description: 'A string description for additional info.',
231
- type: 'string'
232
- };
233
- exports.number_items = {
234
- label: 'Number of Items',
235
- description: 'Number of items. This field accepts a string only. e.g. "5"',
236
- type: 'string',
237
- default: {
238
- '@path': '$.properties.quantity'
239
- }
240
- };
241
- exports.price = {
242
- label: 'Price',
243
- description: "Total value of the purchase. This should be a single number. Can be overriden using the 'Track Purchase Value Per Product' field.",
244
- type: 'number',
245
- default: {
246
- '@if': {
247
- exists: { '@path': '$.properties.revenue' },
248
- then: { '@path': '$.properties.revenue' },
249
- else: { '@path': '$.properties.total' }
250
- }
251
- }
252
- };
253
- exports.currency = {
254
- label: 'Currency',
255
- description: 'Currency for the value specified as ISO 4217 code.',
256
- type: 'string',
257
- default: {
258
- '@path': '$.properties.currency'
259
- }
260
- };
261
- exports.transaction_id = {
262
- label: 'Transaction ID',
263
- description: 'Transaction ID or order ID tied to the conversion event. Please refer to the [Snapchat Marketing API docs](https://marketingapi.snapchat.com/docs/conversion.html#deduplication) for information on how this field is used for deduplication against Snap Pixel SDK and App Ads Kit events.',
264
- type: 'string',
265
- default: {
266
- '@path': '$.properties.order_id'
267
- }
268
- };
269
- exports.level = {
270
- label: 'Level',
271
- description: 'Represents a level in the context of a game.',
272
- type: 'string'
273
- };
274
- exports.client_dedup_id = {
275
- label: 'Client Deduplication ID',
276
- description: 'If you are reporting events via more than one method (Snap Pixel, App Ads Kit, Conversions API) you should use the same client_dedup_id across all methods. Please refer to the [Snapchat Marketing API docs](https://marketingapi.snapchat.com/docs/conversion.html#deduplication) for information on how this field is used for deduplication against Snap Pixel SDK and App Adds Kit events.',
277
- type: 'string'
278
- };
279
- exports.search_string = {
280
- label: 'Search String',
281
- description: 'The text string that was searched for.',
282
- type: 'string',
283
- default: {
284
- '@path': '$.properties.query'
285
- }
286
- };
287
- exports.page_url = {
288
- label: 'Page URL',
289
- description: 'The URL of the web page where the event took place.',
290
- type: 'string',
291
- default: {
292
- '@path': '$.context.page.url'
293
- }
294
- };
295
- exports.sign_up_method = {
296
- label: 'Sign Up Method',
297
- description: 'A string indicating the sign up method.',
298
- type: 'string'
299
- };
300
- exports.device_model = {
301
- label: 'Device Model',
302
- description: 'The user’s device model.',
303
- type: 'string'
304
- };
305
- exports.os_version = {
306
- label: 'OS Version',
307
- description: 'The user’s OS version.',
308
- type: 'string'
309
- };
310
- exports.click_id = {
311
- label: 'Click ID',
312
- description: "The ID value stored in the landing page URL's `&ScCid=` query parameter. Using this ID improves ad measurement performance. We also encourage advertisers who are using `click_id` to pass the full url in the `page_url` field. For more details, please refer to [Sending a Click ID](#sending-a-click-id)",
313
- type: 'string',
314
- default: {
315
- '@path': '$.integrations.Snap Conversions Api.click_id'
316
- }
317
- };
318
- const conversionType = (settings, event_conversion_type) => {
319
- if (event_conversion_type === 'MOBILE_APP') {
320
- if (!settings?.snap_app_id || !settings?.app_id) {
321
- throw new actions_core_1.IntegrationError('If event conversion type is "MOBILE_APP" then Snap App ID and App ID must be defined', 'Misconfigured required field', 400);
322
- }
323
- delete settings?.pixel_id;
324
- }
325
- else {
326
- if (!settings?.pixel_id) {
327
- throw new actions_core_1.IntegrationError(`If event conversion type is "${event_conversion_type}" then Pixel ID must be defined`, 'Misconfigured required field', 400);
328
- }
329
- delete settings?.snap_app_id;
330
- delete settings?.app_id;
331
- }
332
- return settings;
333
- };
334
- exports.conversionType = conversionType;
335
- const hash = (value) => {
336
- if (value === undefined)
337
- return;
338
- const hash = crypto_1.createHash('sha256');
339
- hash.update(value);
340
- return hash.digest('hex');
341
- };
342
- exports.hash = hash;
343
- const isHashedEmail = (email) => new RegExp(/[0-9abcdef]{64}/gi).test(email);
344
- const transformProperty = (property, items) => items
345
- .map((i) => i[property] === undefined || i[property] === null
346
- ? ''
347
- : typeof i[property] === 'number'
348
- ? i[property].toString()
349
- : i[property].toString().replace(/;/g, ''))
350
- .join(';');
351
- const formatPayload = (payload) => {
352
- if (payload.email) {
353
- payload.email = payload.email.replace(/\s/g, '').toLowerCase();
354
- }
355
- if (payload.phone_number) {
356
- payload.phone_number = payload.phone_number.replace(/\D|^0+/g, '');
357
- }
358
- if (payload.mobile_ad_id) {
359
- payload.mobile_ad_id = payload.mobile_ad_id.toLowerCase();
360
- }
361
- let item_ids = undefined;
362
- let item_category = undefined;
363
- let brands = undefined;
364
- const p = payload?.products;
365
- if (p && Array.isArray(p) && p.length > 0) {
366
- item_ids = transformProperty('item_id', p);
367
- item_category = transformProperty('item_category', p);
368
- brands = p.map((product) => product.brand ?? '');
369
- }
370
- return {
371
- event_type: payload?.event_type,
372
- event_conversion_type: payload?.event_conversion_type,
373
- event_tag: payload?.event_tag,
374
- timestamp: Date.parse(payload?.timestamp),
375
- hashed_email: isHashedEmail(String(payload?.email)) ? payload?.email : exports.hash(payload?.email),
376
- hashed_mobile_ad_id: exports.hash(payload?.mobile_ad_id),
377
- uuid_c1: payload?.uuid_c1,
378
- hashed_idfv: exports.hash(payload?.idfv),
379
- hashed_phone_number: exports.hash(payload?.phone_number),
380
- user_agent: payload?.user_agent,
381
- hashed_ip_address: exports.hash(payload?.ip_address),
382
- item_category: item_category ?? payload?.item_category,
383
- brands: brands ?? payload?.brands,
384
- item_ids: item_ids ?? payload?.item_ids,
385
- description: payload?.description,
386
- number_items: payload?.number_items,
387
- price: payload?.price,
388
- currency: payload?.currency,
389
- transaction_id: payload?.transaction_id,
390
- level: payload?.level,
391
- client_dedup_id: payload?.client_dedup_id,
392
- search_string: payload?.search_string,
393
- page_url: payload?.page_url,
394
- sign_up_method: payload?.sign_up_method,
395
- device_model: payload?.device_model,
396
- os_version: payload?.os_version,
397
- click_id: payload?.click_id
398
- };
399
- };
400
- exports.formatPayload = formatPayload;
401
- //# sourceMappingURL=snap-capi-properties.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"snap-capi-properties.js","sourceRoot":"","sources":["../../../src/destinations/snap-conversions-api/snap-capi-properties.ts"],"names":[],"mappings":";;;AAAA,wDAAwD;AAExD,mCAAmC;AAItB,QAAA,uBAAuB,GAAG,IAAI,GAAG,CAAC;IAC7C,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;CACN,CAAC,CAAA;AAEW,QAAA,QAAQ,GAAe;IAClC,KAAK,EAAE,UAA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,YAAY,EAAE,OAAO,EAAE,YAAY;QACnC,KAAK,EAAE,OAAO,EAAE,KAAK;QACrB,QAAQ,EAAE,OAAO,EAAE,QAAQ;QAC3B,cAAc,EAAE,OAAO,EAAE,cAAc;QACvC,KAAK,EAAE,OAAO,EAAE,KAAK;QACrB,eAAe,EAAE,OAAO,EAAE,eAAe;QACzC,aAAa,EAAE,OAAO,EAAE,aAAa;QACrC,QAAQ,EAAE,OAAO,EAAE,QAAQ;QAC3B,cAAc,EAAE,OAAO,EAAE,cAAc;QACvC,YAAY,EAAE,OAAO,EAAE,YAAY;QACnC,UAAU,EAAE,OAAO,EAAE,UAAU;QAC/B,QAAQ,EAAE,OAAO,EAAE,QAAQ;KAC5B,CAAA;AACH,CAAC,CAAA;AA1DY,QAAA,aAAa,iBA0DzB"}
@@ -1,3 +0,0 @@
1
- export declare function formatEmail(email: string | undefined): string | undefined;
2
- export declare function formatUserId(userId: string | undefined): string | undefined;
3
- export declare function formatPhone(phone: string | undefined): string | undefined;
@@ -1,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.formatPhone = exports.formatUserId = exports.formatEmail = void 0;
4
- const crypto_1 = require("crypto");
5
- function formatEmail(email) {
6
- if (email) {
7
- return hashAndEncode(email.toLowerCase());
8
- }
9
- return undefined;
10
- }
11
- exports.formatEmail = formatEmail;
12
- function formatUserId(userId) {
13
- if (userId) {
14
- return hashAndEncode(userId.toLowerCase().trim());
15
- }
16
- return undefined;
17
- }
18
- exports.formatUserId = formatUserId;
19
- function formatPhone(phone) {
20
- if (!phone)
21
- return undefined;
22
- const validatedPhone = phone.match(/[0-9]{0,14}/g);
23
- if (validatedPhone === null) {
24
- throw new Error(`${phone} is not a valid E.164 phone number.`);
25
- }
26
- let formattedPhone = `+${phone.replace(/[^0-9]/g, '')}`;
27
- formattedPhone = formattedPhone.substring(0, 15);
28
- return hashAndEncode(formattedPhone);
29
- }
30
- exports.formatPhone = formatPhone;
31
- function hashAndEncode(property) {
32
- return crypto_1.createHash('sha256').update(property).digest('hex');
33
- }
34
- //# sourceMappingURL=formatter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatter.js","sourceRoot":"","sources":["../../../../src/destinations/tiktok-conversions/reportWebEvent/formatter.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AAKnC,SAAgB,WAAW,CAAC,KAAyB;IACnD,IAAI,KAAK,EAAE;QACT,OAAO,aAAa,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CAAA;KAC1C;IACD,OAAO,SAAS,CAAA;AAClB,CAAC;AALD,kCAKC;AAOD,SAAgB,YAAY,CAAC,MAA0B;IACrD,IAAI,MAAM,EAAE;QACV,OAAO,aAAa,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC,CAAA;KAClD;IACD,OAAO,SAAS,CAAA;AAClB,CAAC;AALD,oCAKC;AAOD,SAAgB,WAAW,CAAC,KAAyB;IACnD,IAAI,CAAC,KAAK;QAAE,OAAO,SAAS,CAAA;IAE5B,MAAM,cAAc,GAAG,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAA;IAClD,IAAI,cAAc,KAAK,IAAI,EAAE;QAC3B,MAAM,IAAI,KAAK,CAAC,GAAG,KAAK,qCAAqC,CAAC,CAAA;KAC/D;IAED,IAAI,cAAc,GAAG,IAAI,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,EAAE,CAAA;IAEvD,cAAc,GAAG,cAAc,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA;IAChD,OAAO,aAAa,CAAC,cAAc,CAAC,CAAA;AACtC,CAAC;AAZD,kCAYC;AAED,SAAS,aAAa,CAAC,QAAgB;IACrC,OAAO,mBAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;AAC5D,CAAC"}
@@ -1,11 +0,0 @@
1
- export interface Payload {
2
- userId: string;
3
- messageId?: string;
4
- timestamp: string;
5
- traits?: {
6
- [k: string]: unknown;
7
- };
8
- groupId: {
9
- [k: string]: unknown;
10
- };
11
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=group.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"group.types.js","sourceRoot":"","sources":["../../../src/destinations/trackey/group.types.ts"],"names":[],"mappings":""}
@@ -1,11 +0,0 @@
1
- export interface Payload {
2
- userId: string;
3
- messageId?: string;
4
- timestamp: string;
5
- traits?: {
6
- [k: string]: unknown;
7
- };
8
- groupId?: {
9
- [k: string]: unknown;
10
- };
11
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=identify.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identify.types.js","sourceRoot":"","sources":["../../../src/destinations/trackey/identify.types.ts"],"names":[],"mappings":""}
@@ -1,12 +0,0 @@
1
- export interface Payload {
2
- userId: string;
3
- event: string;
4
- messageId?: string;
5
- timestamp: string;
6
- properties?: {
7
- [k: string]: unknown;
8
- };
9
- groupId?: {
10
- [k: string]: unknown;
11
- };
12
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=track.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"track.types.js","sourceRoot":"","sources":["../../../src/destinations/trackey/track.types.ts"],"names":[],"mappings":""}