@segment/action-destinations 3.261.1-staging.0 → 3.262.0-staging-dbf2c12ff

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 (236) hide show
  1. package/dist/destinations/amazon-ads/generated-types.d.ts +0 -9
  2. package/dist/destinations/amazon-ads/index.d.ts +2 -2
  3. package/dist/destinations/amazon-ads/index.js +3 -180
  4. package/dist/destinations/amazon-ads/index.js.map +1 -1
  5. package/dist/destinations/amazon-ads/syncAudiences/generated-types.d.ts +0 -19
  6. package/dist/destinations/amazon-ads/syncAudiences/index.js +7 -158
  7. package/dist/destinations/amazon-ads/syncAudiences/index.js.map +1 -1
  8. package/dist/destinations/chartmogul/index.js +1 -1
  9. package/dist/destinations/chartmogul/index.js.map +1 -1
  10. package/dist/destinations/customerio/utils.d.ts +1 -1
  11. package/dist/destinations/display-video-360/addToAudience/index.js +1 -2
  12. package/dist/destinations/display-video-360/addToAudience/index.js.map +1 -1
  13. package/dist/destinations/engage/utils/EngageActionPerformer.js +2 -17
  14. package/dist/destinations/engage/utils/EngageActionPerformer.js.map +1 -1
  15. package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.d.ts +0 -3
  16. package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.js +0 -15
  17. package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.js.map +1 -1
  18. package/dist/destinations/engage/utils/track.d.ts +17 -20
  19. package/dist/destinations/engage-messaging-sendgrid/sendEmail/generated-types.d.ts +36 -0
  20. package/dist/destinations/engage-messaging-sendgrid/sendEmail/generated-types.js.map +1 -0
  21. package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js +452 -0
  22. package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js.map +1 -0
  23. package/dist/destinations/engage-messaging-twilio/sendSms/generated-types.d.ts +22 -0
  24. package/dist/destinations/engage-messaging-twilio/sendSms/generated-types.js.map +1 -0
  25. package/dist/destinations/{responsys/asyncMergeProfileListMembers → engage-messaging-twilio/sendSms}/index.d.ts +1 -1
  26. package/dist/destinations/engage-messaging-twilio/sendSms/index.js +131 -0
  27. package/dist/destinations/engage-messaging-twilio/sendSms/index.js.map +1 -0
  28. package/dist/destinations/engage-messaging-twilio/sendSms/sms-sender.d.ts +23 -0
  29. package/dist/destinations/engage-messaging-twilio/sendSms/sms-sender.js +131 -0
  30. package/dist/destinations/engage-messaging-twilio/sendSms/sms-sender.js.map +1 -0
  31. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/generated-types.d.ts +24 -0
  32. package/dist/destinations/{engage/sendgrid/Profile.js → engage-messaging-twilio/sendWhatsApp/generated-types.js} +1 -1
  33. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/generated-types.js.map +1 -0
  34. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/index.d.ts +5 -0
  35. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/index.js +133 -0
  36. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/index.js.map +1 -0
  37. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/whatsapp-sender.d.ts +21 -0
  38. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/whatsapp-sender.js +75 -0
  39. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/whatsapp-sender.js.map +1 -0
  40. package/dist/destinations/engage-messaging-twilio/utils/message-sender.d.ts +24 -0
  41. package/dist/destinations/engage-messaging-twilio/utils/message-sender.js +111 -0
  42. package/dist/destinations/engage-messaging-twilio/utils/message-sender.js.map +1 -0
  43. package/dist/destinations/gameball/index.js +1 -1
  44. package/dist/destinations/gameball/index.js.map +1 -1
  45. package/dist/destinations/google-enhanced-conversions/functions.js.map +1 -1
  46. package/dist/destinations/hubspot/helperFunctions.d.ts +7 -0
  47. package/dist/destinations/hubspot/helperFunctions.js +27 -0
  48. package/dist/destinations/hubspot/helperFunctions.js.map +1 -0
  49. package/dist/destinations/hubspot/upsertCustomObjectRecord/index.js +4 -4
  50. package/dist/destinations/hubspot/upsertCustomObjectRecord/index.js.map +1 -1
  51. package/dist/destinations/index.js +3 -0
  52. package/dist/destinations/index.js.map +1 -1
  53. package/dist/destinations/inleads-ai/common-fields.d.ts +3 -0
  54. package/dist/destinations/inleads-ai/common-fields.js +238 -0
  55. package/dist/destinations/inleads-ai/common-fields.js.map +1 -0
  56. package/dist/destinations/inleads-ai/contants.d.ts +4 -0
  57. package/dist/destinations/inleads-ai/contants.js +8 -0
  58. package/dist/destinations/inleads-ai/contants.js.map +1 -0
  59. package/dist/destinations/inleads-ai/generated-types.d.ts +3 -0
  60. package/dist/destinations/inleads-ai/generated-types.js +3 -0
  61. package/dist/destinations/inleads-ai/generated-types.js.map +1 -0
  62. package/dist/destinations/inleads-ai/group/generated-types.d.ts +44 -0
  63. package/dist/destinations/inleads-ai/group/generated-types.js +3 -0
  64. package/dist/destinations/inleads-ai/group/generated-types.js.map +1 -0
  65. package/dist/destinations/inleads-ai/group/index.d.ts +5 -0
  66. package/dist/destinations/inleads-ai/group/index.js +76 -0
  67. package/dist/destinations/inleads-ai/group/index.js.map +1 -0
  68. package/dist/destinations/inleads-ai/identify/generated-types.d.ts +46 -0
  69. package/dist/destinations/inleads-ai/identify/generated-types.js +3 -0
  70. package/dist/destinations/inleads-ai/identify/generated-types.js.map +1 -0
  71. package/dist/destinations/inleads-ai/identify/index.d.ts +5 -0
  72. package/dist/destinations/inleads-ai/identify/index.js +120 -0
  73. package/dist/destinations/inleads-ai/identify/index.js.map +1 -0
  74. package/dist/destinations/inleads-ai/index.d.ts +4 -0
  75. package/dist/destinations/inleads-ai/index.js +67 -0
  76. package/dist/destinations/inleads-ai/index.js.map +1 -0
  77. package/dist/destinations/inleads-ai/track/generated-types.d.ts +45 -0
  78. package/dist/destinations/inleads-ai/track/generated-types.js +3 -0
  79. package/dist/destinations/inleads-ai/track/generated-types.js.map +1 -0
  80. package/dist/destinations/inleads-ai/track/index.d.ts +5 -0
  81. package/dist/destinations/inleads-ai/track/index.js +64 -0
  82. package/dist/destinations/inleads-ai/track/index.js.map +1 -0
  83. package/dist/destinations/kameleoon/group/generated-types.d.ts +12 -0
  84. package/dist/destinations/kameleoon/group/generated-types.js +3 -0
  85. package/dist/destinations/kameleoon/group/generated-types.js.map +1 -0
  86. package/dist/destinations/kameleoon/group/index.d.ts +5 -0
  87. package/dist/destinations/kameleoon/group/index.js +94 -0
  88. package/dist/destinations/kameleoon/group/index.js.map +1 -0
  89. package/dist/destinations/kameleoon/identify/generated-types.d.ts +11 -0
  90. package/dist/destinations/kameleoon/identify/generated-types.js +3 -0
  91. package/dist/destinations/kameleoon/identify/generated-types.js.map +1 -0
  92. package/dist/destinations/kameleoon/identify/index.d.ts +5 -0
  93. package/dist/destinations/kameleoon/identify/index.js +87 -0
  94. package/dist/destinations/kameleoon/identify/index.js.map +1 -0
  95. package/dist/destinations/kameleoon/index.js +15 -9
  96. package/dist/destinations/kameleoon/index.js.map +1 -1
  97. package/dist/destinations/kameleoon/logEvent/generated-types.d.ts +2 -0
  98. package/dist/destinations/kameleoon/logEvent/index.js +13 -1
  99. package/dist/destinations/kameleoon/logEvent/index.js.map +1 -1
  100. package/dist/destinations/kameleoon/page/generated-types.d.ts +15 -0
  101. package/dist/destinations/kameleoon/page/generated-types.js +3 -0
  102. package/dist/destinations/kameleoon/page/generated-types.js.map +1 -0
  103. package/dist/destinations/kameleoon/page/index.d.ts +5 -0
  104. package/dist/destinations/kameleoon/page/index.js +99 -0
  105. package/dist/destinations/kameleoon/page/index.js.map +1 -0
  106. package/dist/destinations/klaviyo/functions.d.ts +4 -7
  107. package/dist/destinations/klaviyo/functions.js +1 -80
  108. package/dist/destinations/klaviyo/functions.js.map +1 -1
  109. package/dist/destinations/klaviyo/removeProfile/index.js +0 -2
  110. package/dist/destinations/klaviyo/removeProfile/index.js.map +1 -1
  111. package/dist/destinations/klaviyo/types.d.ts +0 -97
  112. package/dist/destinations/klaviyo/upsertProfile/index.js +19 -29
  113. package/dist/destinations/klaviyo/upsertProfile/index.js.map +1 -1
  114. package/dist/destinations/koala/identify/index.js +6 -1
  115. package/dist/destinations/koala/identify/index.js.map +1 -1
  116. package/dist/destinations/liveramp-audiences/audienceEnteredS3/index.js +2 -2
  117. package/dist/destinations/liveramp-audiences/audienceEnteredS3/index.js.map +1 -1
  118. package/dist/destinations/liveramp-audiences/audienceEnteredSftp/index.js +2 -2
  119. package/dist/destinations/liveramp-audiences/audienceEnteredSftp/index.js.map +1 -1
  120. package/dist/destinations/marketo-static-lists/addToList/index.js +2 -4
  121. package/dist/destinations/marketo-static-lists/addToList/index.js.map +1 -1
  122. package/dist/destinations/moloco-rmp/index.js +2 -2
  123. package/dist/destinations/segment/segment-properties.js +2 -2
  124. package/dist/destinations/segment/segment-properties.js.map +1 -1
  125. package/dist/destinations/snap-conversions-api/_tests_/index.test.js +420 -488
  126. package/dist/destinations/snap-conversions-api/_tests_/index.test.js.map +1 -1
  127. package/dist/destinations/snap-conversions-api/index.js +42 -42
  128. package/dist/destinations/snap-conversions-api/index.js.map +1 -1
  129. package/dist/destinations/snap-conversions-api/reportConversionEvent/generated-types.d.ts +97 -18
  130. package/dist/destinations/snap-conversions-api/reportConversionEvent/index.js +7 -29
  131. package/dist/destinations/snap-conversions-api/reportConversionEvent/index.js.map +1 -1
  132. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-input-fields-deprecated.d.ts +31 -0
  133. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-input-fields-deprecated.js +174 -0
  134. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-input-fields-deprecated.js.map +1 -0
  135. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-input-fields-v3.d.ts +16 -0
  136. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-input-fields-v3.js +640 -0
  137. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-input-fields-v3.js.map +1 -0
  138. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v3.d.ts +0 -4
  139. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v3.js +593 -119
  140. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v3.js.map +1 -1
  141. package/dist/destinations/snap-conversions-api/reportConversionEvent/utils.d.ts +3 -4
  142. package/dist/destinations/snap-conversions-api/reportConversionEvent/utils.js +6 -1
  143. package/dist/destinations/snap-conversions-api/reportConversionEvent/utils.js.map +1 -1
  144. package/dist/destinations/spiffy/generated-types.d.ts +5 -0
  145. package/dist/destinations/spiffy/generated-types.js +3 -0
  146. package/dist/destinations/spiffy/generated-types.js.map +1 -0
  147. package/dist/destinations/spiffy/index.d.ts +4 -0
  148. package/dist/destinations/spiffy/index.js +62 -0
  149. package/dist/destinations/spiffy/index.js.map +1 -0
  150. package/dist/destinations/spiffy/send/generated-types.d.ts +8 -0
  151. package/dist/destinations/spiffy/send/generated-types.js +3 -0
  152. package/dist/destinations/spiffy/send/generated-types.js.map +1 -0
  153. package/dist/destinations/spiffy/send/index.d.ts +5 -0
  154. package/dist/destinations/spiffy/send/index.js +42 -0
  155. package/dist/destinations/spiffy/send/index.js.map +1 -0
  156. package/dist/destinations/stackadapt/forwardEvent/generated-types.d.ts +4 -4
  157. package/dist/destinations/stackadapt/forwardEvent/index.js +11 -7
  158. package/dist/destinations/stackadapt/forwardEvent/index.js.map +1 -1
  159. package/dist/destinations/tiktok-conversions/common_fields.d.ts +2 -0
  160. package/dist/destinations/tiktok-conversions/common_fields.js +244 -0
  161. package/dist/destinations/tiktok-conversions/common_fields.js.map +1 -0
  162. package/dist/destinations/{tiktok-offline-conversions/reportOfflineEvent → tiktok-conversions}/formatter.js +11 -11
  163. package/dist/destinations/tiktok-conversions/formatter.js.map +1 -0
  164. package/dist/destinations/tiktok-conversions/index.js +163 -75
  165. package/dist/destinations/tiktok-conversions/index.js.map +1 -1
  166. package/dist/destinations/tiktok-conversions/reportWebEvent/generated-types.d.ts +12 -4
  167. package/dist/destinations/tiktok-conversions/reportWebEvent/index.d.ts +1 -1
  168. package/dist/destinations/tiktok-conversions/reportWebEvent/index.js +5 -233
  169. package/dist/destinations/tiktok-conversions/reportWebEvent/index.js.map +1 -1
  170. package/dist/destinations/tiktok-conversions/utils.d.ts +4 -0
  171. package/dist/destinations/tiktok-conversions/utils.js +65 -0
  172. package/dist/destinations/tiktok-conversions/utils.js.map +1 -0
  173. package/dist/destinations/vernst-test/generated-types.d.ts +2 -0
  174. package/dist/destinations/vernst-test/generated-types.js +3 -0
  175. package/dist/destinations/vernst-test/generated-types.js.map +1 -0
  176. package/dist/destinations/vernst-test/index.d.ts +4 -0
  177. package/dist/destinations/vernst-test/index.js +20 -0
  178. package/dist/destinations/vernst-test/index.js.map +1 -0
  179. package/dist/destinations/vernst-test/pingWebhook/generated-types.d.ts +3 -0
  180. package/dist/destinations/vernst-test/pingWebhook/generated-types.js +3 -0
  181. package/dist/destinations/vernst-test/pingWebhook/generated-types.js.map +1 -0
  182. package/dist/destinations/vernst-test/pingWebhook/index.d.ts +5 -0
  183. package/dist/destinations/vernst-test/pingWebhook/index.js +21 -0
  184. package/dist/destinations/vernst-test/pingWebhook/index.js.map +1 -0
  185. package/dist/destinations/xtremepush/generated-types.d.ts +4 -0
  186. package/dist/destinations/xtremepush/generated-types.js +3 -0
  187. package/dist/destinations/xtremepush/generated-types.js.map +1 -0
  188. package/dist/destinations/xtremepush/identify/generated-types.d.ts +14 -0
  189. package/dist/destinations/xtremepush/identify/generated-types.js +3 -0
  190. package/dist/destinations/xtremepush/identify/generated-types.js.map +1 -0
  191. package/dist/destinations/xtremepush/identify/index.d.ts +5 -0
  192. package/dist/destinations/xtremepush/identify/index.js +87 -0
  193. package/dist/destinations/xtremepush/identify/index.js.map +1 -0
  194. package/dist/destinations/xtremepush/index.d.ts +4 -0
  195. package/dist/destinations/xtremepush/index.js +66 -0
  196. package/dist/destinations/xtremepush/index.js.map +1 -0
  197. package/dist/destinations/xtremepush/track/generated-types.d.ts +15 -0
  198. package/dist/destinations/xtremepush/track/generated-types.js +3 -0
  199. package/dist/destinations/xtremepush/track/generated-types.js.map +1 -0
  200. package/dist/destinations/xtremepush/track/index.d.ts +5 -0
  201. package/dist/destinations/xtremepush/track/index.js +95 -0
  202. package/dist/destinations/xtremepush/track/index.js.map +1 -0
  203. package/package.json +3 -3
  204. package/dist/destinations/engage/sendgrid/Profile.d.ts +0 -6
  205. package/dist/destinations/engage/sendgrid/Profile.js.map +0 -1
  206. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.d.ts +0 -21
  207. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js +0 -174
  208. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js.map +0 -1
  209. package/dist/destinations/responsys/asyncMergePetRecords/generated-types.d.ts +0 -14
  210. package/dist/destinations/responsys/asyncMergePetRecords/generated-types.js.map +0 -1
  211. package/dist/destinations/responsys/asyncMergePetRecords/index.js +0 -113
  212. package/dist/destinations/responsys/asyncMergePetRecords/index.js.map +0 -1
  213. package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.d.ts +0 -20
  214. package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.js.map +0 -1
  215. package/dist/destinations/responsys/asyncMergeProfileListMembers/index.js +0 -174
  216. package/dist/destinations/responsys/asyncMergeProfileListMembers/index.js.map +0 -1
  217. package/dist/destinations/responsys/rsp-operations.d.ts +0 -14
  218. package/dist/destinations/responsys/rsp-operations.js +0 -33
  219. package/dist/destinations/responsys/rsp-operations.js.map +0 -1
  220. package/dist/destinations/responsys/rsp-properties.d.ts +0 -4
  221. package/dist/destinations/responsys/rsp-properties.js +0 -27
  222. package/dist/destinations/responsys/rsp-properties.js.map +0 -1
  223. package/dist/destinations/snap-conversions-api/_tests_/capiV2tests.d.ts +0 -1
  224. package/dist/destinations/snap-conversions-api/_tests_/capiV2tests.js +0 -381
  225. package/dist/destinations/snap-conversions-api/_tests_/capiV2tests.js.map +0 -1
  226. package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.d.ts +0 -1
  227. package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.js +0 -581
  228. package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.js.map +0 -1
  229. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v2.d.ts +0 -4
  230. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v2.js +0 -97
  231. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v2.js.map +0 -1
  232. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.js.map +0 -1
  233. package/dist/destinations/{responsys/asyncMergePetRecords → engage-messaging-sendgrid/sendEmail}/generated-types.js +0 -0
  234. package/dist/destinations/{responsys/asyncMergePetRecords → engage-messaging-sendgrid/sendEmail}/index.d.ts +0 -0
  235. package/dist/destinations/{responsys/asyncMergeProfileListMembers → engage-messaging-twilio/sendSms}/generated-types.js +0 -0
  236. package/dist/destinations/{tiktok-offline-conversions/reportOfflineEvent → tiktok-conversions}/formatter.d.ts +1 -1
@@ -1,13 +1,12 @@
1
1
  import { ContextFromDecorator } from './operationTracking';
2
2
  export declare const track: ((decoratorArgs?: ({
3
+ shouldStats?: ((args: import("./operationTracking").OperationStatsEventArgs) => boolean | void) | undefined;
4
+ } & {
3
5
  onError?: ((ctx: import("./operationTracking").OperationErrorHandlerContext<import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>>) => void) | undefined;
4
- } & import("./operationTracking").OperationLoggerDecoratorArgs & {
6
+ } & {
5
7
  onTry?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => void) | undefined;
6
8
  onFinally?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => void) | undefined;
7
- onCatch?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => void) | undefined;
8
- } & {
9
- shouldStats?: ((args: import("./operationTracking").OperationStatsEventArgs) => boolean | void) | undefined;
10
- } & {
9
+ } & import("./operationTracking").OperationLoggerDecoratorArgs & {
11
10
  wrapIntegrationError?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => import("@segment/actions-core/*").IntegrationError | [message: string, code: string, status: number]) | undefined;
12
11
  }) | undefined) => import("./operationTracking").GenericMethodDecorator<(this: any, ...args: any[]) => any>) & {
13
12
  getCurrentOperation(classInstance: any): (import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any> & {
@@ -16,8 +15,13 @@ export declare const track: ((decoratorArgs?: ({
16
15
  }) | undefined;
17
16
  } & {
18
17
  _contextType: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any> & {
19
- start?: number | undefined;
20
- duration?: number | undefined;
18
+ tags: string[];
19
+ sharedContext: {
20
+ tags: string[];
21
+ };
22
+ decoratorArgs?: {
23
+ shouldStats?: ((args: import("./operationTracking").OperationStatsEventArgs) => boolean | void) | undefined;
24
+ } | undefined;
21
25
  } & {
22
26
  decoratorArgs?: {
23
27
  onError?: ((ctx: import("./operationTracking").OperationErrorHandlerContext<import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>>) => void) | undefined;
@@ -26,26 +30,19 @@ export declare const track: ((decoratorArgs?: ({
26
30
  parent?: (import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any> & any) | undefined;
27
31
  sharedContext: {};
28
32
  } & {
29
- logs: string[];
30
- logMetadata?: Record<string, unknown> | undefined;
31
- decoratorArgs?: import("./operationTracking").OperationLoggerDecoratorArgs | undefined;
32
- sharedContext: import("./operationTracking").OperationLoggerSharedContext;
33
+ start?: number | undefined;
34
+ duration?: number | undefined;
33
35
  } & {
34
36
  onFinally: (() => void)[];
35
- onCatch: (() => void)[];
36
37
  decoratorArgs?: {
37
38
  onTry?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => void) | undefined;
38
39
  onFinally?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => void) | undefined;
39
- onCatch?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => void) | undefined;
40
40
  } | undefined;
41
41
  } & {
42
- tags: string[];
43
- sharedContext: {
44
- tags: string[];
45
- };
46
- decoratorArgs?: {
47
- shouldStats?: ((args: import("./operationTracking").OperationStatsEventArgs) => boolean | void) | undefined;
48
- } | undefined;
42
+ logs: string[];
43
+ logMetadata?: Record<string, unknown> | undefined;
44
+ decoratorArgs?: import("./operationTracking").OperationLoggerDecoratorArgs | undefined;
45
+ sharedContext: import("./operationTracking").OperationLoggerSharedContext;
49
46
  } & {
50
47
  decoratorArgs?: {
51
48
  wrapIntegrationError?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => import("@segment/actions-core/*").IntegrationError | [message: string, code: string, status: number]) | undefined;
@@ -0,0 +1,36 @@
1
+ export interface Payload {
2
+ send?: boolean;
3
+ traitEnrichment?: boolean;
4
+ userId?: string;
5
+ toEmail?: string;
6
+ fromDomain?: string | null;
7
+ fromEmail: string;
8
+ fromName: string;
9
+ replyToEqualsFrom?: boolean;
10
+ replyToEmail: string;
11
+ replyToName: string;
12
+ bcc: string;
13
+ previewText?: string;
14
+ subject: string;
15
+ body?: string;
16
+ bodyUrl?: string;
17
+ bodyType: string;
18
+ bodyHtml?: string;
19
+ groupId?: string;
20
+ externalIds?: {
21
+ id?: string;
22
+ type?: string;
23
+ subscriptionStatus?: string;
24
+ groups?: {
25
+ id?: string;
26
+ isSubscribed?: boolean;
27
+ }[];
28
+ }[];
29
+ customArgs?: {
30
+ [k: string]: unknown;
31
+ };
32
+ traits?: {
33
+ [k: string]: unknown;
34
+ };
35
+ eventOccurredTS?: string;
36
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/engage-messaging-sendgrid/sendEmail/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,452 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const actions_core_1 = require("@segment/actions-core");
7
+ const liquidjs_1 = require("liquidjs");
8
+ const cheerio_1 = __importDefault(require("cheerio"));
9
+ const escape_goat_1 = require("escape-goat");
10
+ const Liquid = new liquidjs_1.Liquid();
11
+ const insertEmailPreviewText = (html, previewText) => {
12
+ const $ = cheerio_1.default.load(html);
13
+ $('body').prepend(`
14
+ <div style='display: none; max-height: 0px; overflow: hidden;'>
15
+ ${escape_goat_1.htmlEscape(previewText)}
16
+ </div>
17
+
18
+ <div style='display: none; max-height: 0px; overflow: hidden;'>
19
+ ${'&nbsp;&zwnj;'.repeat(13)}&nbsp;
20
+ </div>
21
+ `);
22
+ return $.html();
23
+ };
24
+ const getProfileApiEndpoint = (environment, region) => {
25
+ const domainName = region === 'eu-west-1' ? 'profiles.euw1.segment' : 'profiles.segment';
26
+ const topLevelName = environment === 'production' ? 'com' : 'build';
27
+ return `https://${domainName}.${topLevelName}`;
28
+ };
29
+ const fetchProfileTraits = async (request, settings, profileId, statsClient, tags, logger) => {
30
+ try {
31
+ const endpoint = getProfileApiEndpoint(settings.profileApiEnvironment, settings.region);
32
+ const response = await request(`${endpoint}/v1/spaces/${settings.spaceId}/collections/users/profiles/user_id:${profileId}/traits?limit=200`, {
33
+ headers: {
34
+ authorization: `Basic ${Buffer.from(settings.profileApiAccessToken + ':').toString('base64')}`,
35
+ 'content-type': 'application/json'
36
+ }
37
+ });
38
+ tags.push(`profile_status_code:${response.status}`);
39
+ statsClient?.incr('actions-personas-messaging-sendgrid.profile_invoked', 1, tags);
40
+ const body = await response.json();
41
+ return body.traits;
42
+ }
43
+ catch (error) {
44
+ logger?.error(`TE Messaging: Email profile traits request failure - ${settings.spaceId} - [${error}]`);
45
+ tags.push('reason:profile_error');
46
+ statsClient?.incr('actions-personas-messaging-sendgrid.error', 1, tags);
47
+ throw new actions_core_1.IntegrationError('Unable to get profile traits for the email message', 'Email trait fetch failure', 500);
48
+ }
49
+ };
50
+ const isRestrictedDomain = (email) => {
51
+ const restricted = ['gmailx.com', 'yahoox.com', 'aolx.com', 'hotmailx.com'];
52
+ const matches = /^.+@(.+)$/.exec(email.toLowerCase());
53
+ if (!matches) {
54
+ return false;
55
+ }
56
+ const domain = matches[1];
57
+ return restricted.includes(domain);
58
+ };
59
+ const generateEmailHtml = async (request, settings, design, statsClient, tags, logger) => {
60
+ try {
61
+ statsClient?.incr('actions-personas-messaging-sendgrid.unlayer_request', 1, tags);
62
+ const response = await request('https://api.unlayer.com/v2/export/html', {
63
+ method: 'POST',
64
+ headers: {
65
+ authorization: `Basic ${Buffer.from(`${settings.unlayerApiKey}:`).toString('base64')}`,
66
+ 'content-type': 'application/json'
67
+ },
68
+ body: JSON.stringify({
69
+ displayMode: 'email',
70
+ design: JSON.parse(design)
71
+ })
72
+ });
73
+ const body = await response.json();
74
+ return body.data.html;
75
+ }
76
+ catch (error) {
77
+ logger?.error(`TE Messaging: Email export request failure - ${settings.spaceId} - [${error}]`);
78
+ tags.push('reason:generate_email_html');
79
+ statsClient?.incr('actions-personas-messaging-sendgrid.error', 1, tags);
80
+ throw new actions_core_1.IntegrationError('Unable to export email as HTML', 'Export HTML failure', 400);
81
+ }
82
+ };
83
+ const parseTemplating = async (content, profile, contentType, statsClient, tags, settings, logger) => {
84
+ try {
85
+ const parsedContent = await Liquid.parseAndRender(content, { profile });
86
+ return parsedContent;
87
+ }
88
+ catch (error) {
89
+ logger?.error(`TE Messaging: Email templating parse failure - ${settings.spaceId} - [${error}]`);
90
+ tags.push('reason:parse_templating');
91
+ statsClient?.incr('actions-personas-messaging-sendgrid.error', 1, tags);
92
+ throw new actions_core_1.IntegrationError(`Unable to parse templating in email ${contentType}`, `${contentType} templating parse failure`, 400);
93
+ }
94
+ };
95
+ const EXTERNAL_ID_KEY = 'email';
96
+ const action = {
97
+ title: 'Send Email',
98
+ description: 'Sends Email to a user powered by SendGrid',
99
+ defaultSubscription: 'type = "track" and event = "Audience Entered"',
100
+ fields: {
101
+ send: {
102
+ label: 'Send Message',
103
+ description: 'Whether or not the message should actually get sent.',
104
+ type: 'boolean',
105
+ required: false,
106
+ default: false
107
+ },
108
+ traitEnrichment: {
109
+ label: 'Trait Enrich',
110
+ description: 'Whether or not trait enrich from event (i.e without profile api call)',
111
+ type: 'boolean',
112
+ required: false,
113
+ default: true
114
+ },
115
+ userId: {
116
+ label: 'User ID',
117
+ description: 'User ID in Segment',
118
+ type: 'string',
119
+ required: false,
120
+ default: { '@path': '$.userId' }
121
+ },
122
+ toEmail: {
123
+ label: 'Test Email',
124
+ description: 'Email to send to when testing',
125
+ type: 'string'
126
+ },
127
+ fromDomain: {
128
+ label: 'From Domain',
129
+ description: 'Verified domain in Sendgrid',
130
+ type: 'string',
131
+ allowNull: true
132
+ },
133
+ fromEmail: {
134
+ label: 'From Email',
135
+ description: 'From Email',
136
+ type: 'string',
137
+ required: true
138
+ },
139
+ fromName: {
140
+ label: 'From Name',
141
+ description: 'From Name displayed to end user email',
142
+ type: 'string',
143
+ required: true
144
+ },
145
+ replyToEqualsFrom: {
146
+ label: 'Reply To Equals From',
147
+ description: 'Whether "reply to" settings are the same as "from"',
148
+ type: 'boolean'
149
+ },
150
+ replyToEmail: {
151
+ label: 'Reply To Email',
152
+ description: 'The Email used by user to Reply To',
153
+ type: 'string',
154
+ required: true
155
+ },
156
+ replyToName: {
157
+ label: 'Reply To Name',
158
+ description: 'The Name used by user to Reply To',
159
+ type: 'string',
160
+ required: true
161
+ },
162
+ bcc: {
163
+ label: 'BCC',
164
+ description: 'BCC list of emails',
165
+ type: 'string',
166
+ required: true
167
+ },
168
+ previewText: {
169
+ label: 'Preview Text',
170
+ description: 'Preview Text',
171
+ type: 'string'
172
+ },
173
+ subject: {
174
+ label: 'Subject',
175
+ description: 'Subject for the email to be sent',
176
+ type: 'string',
177
+ required: true
178
+ },
179
+ body: {
180
+ label: 'Body',
181
+ description: 'The message body',
182
+ type: 'text'
183
+ },
184
+ bodyUrl: {
185
+ label: 'Body URL',
186
+ description: 'URL to the message body',
187
+ type: 'text'
188
+ },
189
+ bodyType: {
190
+ label: 'Body Type',
191
+ description: 'The type of body which is used generally html | design',
192
+ type: 'string',
193
+ required: true
194
+ },
195
+ bodyHtml: {
196
+ label: 'Body Html',
197
+ description: 'The HTML content of the body',
198
+ type: 'string'
199
+ },
200
+ groupId: {
201
+ label: 'Group ID',
202
+ description: 'Subscription group ID',
203
+ type: 'string'
204
+ },
205
+ externalIds: {
206
+ label: 'External IDs',
207
+ description: 'An array of user profile identity information.',
208
+ type: 'object',
209
+ multiple: true,
210
+ properties: {
211
+ id: {
212
+ label: 'ID',
213
+ description: 'A unique identifier for the collection.',
214
+ type: 'string'
215
+ },
216
+ type: {
217
+ label: 'type',
218
+ description: 'The external ID contact type.',
219
+ type: 'string'
220
+ },
221
+ subscriptionStatus: {
222
+ label: 'ID',
223
+ description: 'The subscription status for the identity.',
224
+ type: 'string'
225
+ },
226
+ groups: {
227
+ label: 'Subscription Groups',
228
+ description: 'Subscription groups and their statuses for this id.',
229
+ type: 'object',
230
+ multiple: true,
231
+ properties: {
232
+ id: {
233
+ label: 'Subscription group id',
234
+ type: 'string'
235
+ },
236
+ isSubscribed: {
237
+ label: 'status',
238
+ description: 'Group subscription status true is subscribed, false is unsubscribed or did-not-subscribe',
239
+ type: 'boolean'
240
+ }
241
+ }
242
+ }
243
+ },
244
+ default: {
245
+ '@arrayPath': [
246
+ '$.external_ids',
247
+ {
248
+ id: {
249
+ '@path': '$.id'
250
+ },
251
+ type: {
252
+ '@path': '$.type'
253
+ },
254
+ subscriptionStatus: {
255
+ '@path': '$.isSubscribed'
256
+ },
257
+ groups: {
258
+ '@path': '$.groups'
259
+ }
260
+ }
261
+ ]
262
+ }
263
+ },
264
+ customArgs: {
265
+ label: 'Custom Args',
266
+ description: 'Additional custom args that we be passed back opaquely on webhook events',
267
+ type: 'object',
268
+ required: false
269
+ },
270
+ traits: {
271
+ label: 'Traits',
272
+ description: "A user profile's traits",
273
+ type: 'object',
274
+ required: false,
275
+ default: { '@path': '$.properties' }
276
+ },
277
+ eventOccurredTS: {
278
+ label: 'Event Timestamp',
279
+ description: 'Time of when the actual event happened.',
280
+ type: 'string',
281
+ required: false,
282
+ default: {
283
+ '@path': '$.timestamp'
284
+ }
285
+ }
286
+ },
287
+ perform: async (request, { settings, payload, statsContext, logger }) => {
288
+ const statsClient = statsContext?.statsClient;
289
+ const tags = statsContext?.tags ?? [];
290
+ if (!settings.region) {
291
+ settings.region = 'us-west-2';
292
+ }
293
+ tags.push(`space_id:${settings.spaceId}`, `projectid:${settings.sourceId}`, `region:${settings.region}`);
294
+ if (!payload.send) {
295
+ logger?.info(`TE Messaging: Email send disabled - ${settings.spaceId}`);
296
+ statsClient?.incr('actions-personas-messaging-sendgrid.send-disabled', 1, tags);
297
+ return;
298
+ }
299
+ const emailProfile = payload?.externalIds?.find((meta) => meta.type === 'email');
300
+ if (!emailProfile?.subscriptionStatus ||
301
+ ['unsubscribed', 'did not subscribed', 'false'].includes(emailProfile.subscriptionStatus)) {
302
+ logger?.info(`TE Messaging: Email recipient not subscribed or external ids were omitted from request - ${settings.spaceId}`);
303
+ statsClient?.incr('actions-personas-messaging-sendgrid.notsubscribed', 1, tags);
304
+ return;
305
+ }
306
+ else if (['subscribed', 'true'].includes(emailProfile?.subscriptionStatus)) {
307
+ statsClient?.incr('actions-personas-messaging-sendgrid.subscribed', 1, tags);
308
+ if (payload.groupId && payload.groupId.length !== 0) {
309
+ const group = (payload.externalIds ?? [])
310
+ .flatMap((externalId) => externalId.groups)
311
+ .find((group) => group?.id === payload.groupId);
312
+ if (!group) {
313
+ statsClient?.incr('actions-personas-messaging-sendgrid.group_notfound', 1, tags);
314
+ return;
315
+ }
316
+ else if (!group.isSubscribed) {
317
+ statsClient?.incr('actions-personas-messaging-sendgrid.group_notsubscribed', 1, tags);
318
+ return;
319
+ }
320
+ statsClient?.incr('actions-personas-messaging-sendgrid.group_subscribed', 1, tags);
321
+ }
322
+ let traits;
323
+ if (payload.traitEnrichment) {
324
+ traits = payload?.traits ? payload?.traits : JSON.parse('{}');
325
+ }
326
+ else {
327
+ if (!payload.userId) {
328
+ logger?.error(`TE Messaging: Unable to process email, no userId provided and trait enrichment disabled - ${settings.spaceId}`);
329
+ tags.push('reason:missing_user_id');
330
+ statsClient?.incr('actions-personas-messaging-sendgrid.error', 1, tags);
331
+ throw new actions_core_1.IntegrationError('Unable to process email, no userId provided and trait enrichment disabled', 'Invalid parameters', 400);
332
+ }
333
+ traits = await fetchProfileTraits(request, settings, payload.userId, statsClient, tags, logger);
334
+ }
335
+ const profile = {
336
+ email: emailProfile.id,
337
+ traits
338
+ };
339
+ const toEmail = payload.toEmail || profile.email;
340
+ if (!toEmail) {
341
+ return;
342
+ }
343
+ if (isRestrictedDomain(toEmail)) {
344
+ logger?.error(`TE Messaging: Emails with gmailx.com, yahoox.com, aolx.com, and hotmailx.com domains are blocked - ${settings.spaceId}`);
345
+ tags.push('reason:restricted_domain');
346
+ statsClient?.incr('actions-personas-messaging-sendgrid.error', 1, tags);
347
+ throw new actions_core_1.IntegrationError('Emails with gmailx.com, yahoox.com, aolx.com, and hotmailx.com domains are blocked.', 'Invalid input', 400);
348
+ }
349
+ let name;
350
+ if (traits.first_name && traits.last_name) {
351
+ name = `${traits.first_name} ${traits.last_name}`;
352
+ }
353
+ else if (traits.firstName && traits.lastName) {
354
+ name = `${traits.firstName} ${traits.lastName}`;
355
+ }
356
+ else if (traits.name) {
357
+ name = traits.name;
358
+ }
359
+ else {
360
+ name = traits.first_name || traits.last_name || traits.firstName || traits.lastName || 'User';
361
+ }
362
+ const bcc = JSON.parse(payload.bcc ?? '[]');
363
+ const parsedSubject = await parseTemplating(payload.subject, profile, 'Subject', statsClient, tags, settings, logger);
364
+ let parsedBodyHtml;
365
+ if (payload.bodyUrl && settings.unlayerApiKey) {
366
+ const { content: body } = await request(payload.bodyUrl, { method: 'GET', skipResponseCloning: true });
367
+ const bodyHtml = payload.bodyType === 'html'
368
+ ? body
369
+ : await generateEmailHtml(request, settings, body, statsClient, tags, logger);
370
+ parsedBodyHtml = await parseTemplating(bodyHtml, profile, 'Body', statsClient, tags, settings, logger);
371
+ }
372
+ else {
373
+ parsedBodyHtml = await parseTemplating(payload.bodyHtml ?? '', profile, 'Body HTML', statsClient, tags, settings, logger);
374
+ }
375
+ if (payload.bodyType === 'design' && payload.previewText) {
376
+ const parsedPreviewText = await parseTemplating(payload.previewText, profile, 'Preview text', statsClient, tags, settings, logger);
377
+ parsedBodyHtml = insertEmailPreviewText(parsedBodyHtml, parsedPreviewText);
378
+ }
379
+ try {
380
+ statsClient?.incr('actions-personas-messaging-sendgrid.request', 1, tags);
381
+ const req = {
382
+ method: 'post',
383
+ headers: {
384
+ authorization: `Bearer ${settings.sendGridApiKey}`
385
+ },
386
+ json: {
387
+ personalizations: [
388
+ {
389
+ to: [
390
+ {
391
+ email: toEmail,
392
+ name: name
393
+ }
394
+ ],
395
+ bcc: bcc.length > 0 ? bcc : undefined,
396
+ custom_args: {
397
+ ...payload.customArgs,
398
+ source_id: settings.sourceId,
399
+ space_id: settings.spaceId,
400
+ user_id: payload.userId ?? undefined,
401
+ __segment_internal_external_id_key__: EXTERNAL_ID_KEY,
402
+ __segment_internal_external_id_value__: profile[EXTERNAL_ID_KEY]
403
+ }
404
+ }
405
+ ],
406
+ from: {
407
+ email: payload.fromEmail,
408
+ name: payload.fromName
409
+ },
410
+ reply_to: {
411
+ email: payload.replyToEmail,
412
+ name: payload.replyToName
413
+ },
414
+ subject: parsedSubject,
415
+ content: [
416
+ {
417
+ type: 'text/html',
418
+ value: parsedBodyHtml
419
+ }
420
+ ],
421
+ tracking_settings: {
422
+ subscription_tracking: {
423
+ enable: true,
424
+ substitution_tag: '[unsubscribe]'
425
+ }
426
+ }
427
+ }
428
+ };
429
+ statsClient?.set('actions-personas-messaging-sendgrid.request_body_size', JSON.stringify(req).length, tags);
430
+ const response = await request('https://api.sendgrid.com/v3/mail/send', req);
431
+ tags.push(`sendgrid_status_code:${response.status}`);
432
+ statsClient?.incr('actions-personas-messaging-sendgrid.response', 1, tags);
433
+ if (payload?.eventOccurredTS != undefined) {
434
+ statsClient?.histogram('actions-personas-messaging-sendgrid.eventDeliveryTS', Date.now() - new Date(payload?.eventOccurredTS).getTime(), tags);
435
+ }
436
+ return response;
437
+ }
438
+ catch (error) {
439
+ logger?.error(`TE Messaging: Email message request failure - ${settings.spaceId} - [${error}]`);
440
+ statsClient?.incr('actions-personas-messaging-sendgrid.request-failure', 1, tags);
441
+ throw new actions_core_1.IntegrationError('Unable to send email message', 'SendGrid API request failure', 500);
442
+ }
443
+ }
444
+ else {
445
+ logger?.error(`TE Messaging: Email subscription status invalid "${emailProfile.subscriptionStatus}" - ${settings.spaceId}`);
446
+ statsClient?.incr('actions-personas-messaging-sendgrid.sendgrid-error', 1, tags);
447
+ throw new actions_core_1.IntegrationError(`Failed to process the subscription state: "${emailProfile.subscriptionStatus}"`, 'Invalid subscriptionStatus value', 400);
448
+ }
449
+ }
450
+ };
451
+ exports.default = action;
452
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/engage-messaging-sendgrid/sendEmail/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA0F;AAG1F,uCAA6C;AAC7C,sDAA6B;AAC7B,6CAAwC;AAExC,MAAM,MAAM,GAAG,IAAI,iBAAQ,EAAE,CAAA;AAI7B,MAAM,sBAAsB,GAAG,CAAC,IAAY,EAAE,WAAmB,EAAU,EAAE;IAC3E,MAAM,CAAC,GAAG,iBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAG5B,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC;;QAEZ,wBAAU,CAAC,WAAW,CAAC;;;;QAIvB,cAAc,CAAC,MAAM,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e,MAAM,CAAA"}
@@ -0,0 +1,22 @@
1
+ export interface Payload {
2
+ userId?: string;
3
+ toNumber?: string;
4
+ from: string;
5
+ body?: string;
6
+ contentSid?: string;
7
+ customArgs?: {
8
+ [k: string]: unknown;
9
+ };
10
+ connectionOverrides?: string;
11
+ send?: boolean;
12
+ traitEnrichment?: boolean;
13
+ externalIds?: {
14
+ id?: string;
15
+ type?: string;
16
+ subscriptionStatus?: string;
17
+ }[];
18
+ traits?: {
19
+ [k: string]: unknown;
20
+ };
21
+ eventOccurredTS?: string;
22
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/engage-messaging-twilio/sendSms/generated-types.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- import { ActionDefinition } from '@segment/actions-core';
1
+ import type { ActionDefinition } from '@segment/actions-core';
2
2
  import type { Settings } from '../generated-types';
3
3
  import type { Payload } from './generated-types';
4
4
  declare const action: ActionDefinition<Settings, Payload>;