@segment/action-destinations 3.287.0 → 3.288.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 (143) hide show
  1. package/dist/destinations/amazon-ads/generated-types.d.ts +3 -0
  2. package/dist/destinations/amazon-ads/generated-types.js +3 -0
  3. package/dist/destinations/amazon-ads/generated-types.js.map +1 -0
  4. package/dist/destinations/amazon-ads/index.d.ts +4 -0
  5. package/dist/destinations/amazon-ads/index.js +87 -0
  6. package/dist/destinations/amazon-ads/index.js.map +1 -0
  7. package/dist/destinations/amazon-ads/syncAudiences/generated-types.d.ts +2 -0
  8. package/dist/destinations/amazon-ads/syncAudiences/generated-types.js +3 -0
  9. package/dist/destinations/amazon-ads/syncAudiences/generated-types.js.map +1 -0
  10. package/dist/destinations/amazon-ads/syncAudiences/index.d.ts +5 -0
  11. package/dist/destinations/amazon-ads/syncAudiences/index.js +15 -0
  12. package/dist/destinations/amazon-ads/syncAudiences/index.js.map +1 -0
  13. package/dist/destinations/amazon-ads/types.d.ts +22 -0
  14. package/dist/destinations/amazon-ads/types.js +11 -0
  15. package/dist/destinations/amazon-ads/types.js.map +1 -0
  16. package/dist/destinations/blackbaud-raisers-edge-nxt/utils/index.d.ts +1 -1
  17. package/dist/destinations/customerio/utils.d.ts +1 -1
  18. package/dist/destinations/display-video-360/listManagement.d.ts +9 -0
  19. package/dist/destinations/display-video-360/listManagement.js +16 -0
  20. package/dist/destinations/display-video-360/listManagement.js.map +1 -0
  21. package/dist/destinations/dynamic-yield-audiences/syncAudience/types.d.ts +22 -0
  22. package/dist/destinations/dynamic-yield-audiences/syncAudience/types.js.map +1 -0
  23. package/dist/destinations/dynamic-yield-audiences/types.d.ts +8 -0
  24. package/dist/destinations/dynamic-yield-audiences/types.js +12 -0
  25. package/dist/destinations/dynamic-yield-audiences/types.js.map +1 -0
  26. package/dist/destinations/engage/sendgrid/Profile.d.ts +6 -0
  27. package/dist/destinations/engage/sendgrid/Profile.js +3 -0
  28. package/dist/destinations/engage/sendgrid/Profile.js.map +1 -0
  29. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.d.ts +21 -0
  30. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js +174 -0
  31. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js.map +1 -0
  32. package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js +1 -2
  33. package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js.map +1 -1
  34. package/dist/destinations/engage/twilio/sendMobilePush/PushSender.d.ts +1 -0
  35. package/dist/destinations/engage/twilio/sendMobilePush/PushSender.js +20 -2
  36. package/dist/destinations/engage/twilio/sendMobilePush/PushSender.js.map +1 -1
  37. package/dist/destinations/engage/utils/EngageActionPerformer.js +0 -1
  38. package/dist/destinations/engage/utils/EngageActionPerformer.js.map +1 -1
  39. package/dist/destinations/engage/utils/ResponseError.d.ts +0 -1
  40. package/dist/destinations/engage/utils/ResponseError.js.map +1 -1
  41. package/dist/destinations/klaviyo/orderCompleted/generated-types.d.ts +0 -9
  42. package/dist/destinations/klaviyo/orderCompleted/index.js +64 -166
  43. package/dist/destinations/klaviyo/orderCompleted/index.js.map +1 -1
  44. package/dist/destinations/klaviyo/trackEvent/index.js +1 -1
  45. package/dist/destinations/klaviyo/trackEvent/index.js.map +1 -1
  46. package/dist/destinations/movable-ink/categoryView/generated-types.d.ts +22 -0
  47. package/dist/destinations/movable-ink/categoryView/generated-types.js +3 -0
  48. package/dist/destinations/movable-ink/categoryView/generated-types.js.map +1 -0
  49. package/dist/destinations/movable-ink/categoryView/index.d.ts +5 -0
  50. package/dist/destinations/movable-ink/categoryView/index.js +43 -0
  51. package/dist/destinations/movable-ink/categoryView/index.js.map +1 -0
  52. package/dist/destinations/movable-ink/conversion/generated-types.d.ts +20 -0
  53. package/dist/destinations/movable-ink/conversion/generated-types.js +3 -0
  54. package/dist/destinations/movable-ink/conversion/generated-types.js.map +1 -0
  55. package/dist/destinations/movable-ink/conversion/index.d.ts +5 -0
  56. package/dist/destinations/movable-ink/conversion/index.js +45 -0
  57. package/dist/destinations/movable-ink/conversion/index.js.map +1 -0
  58. package/dist/destinations/movable-ink/fields.d.ts +21 -0
  59. package/dist/destinations/movable-ink/fields.js +236 -0
  60. package/dist/destinations/movable-ink/fields.js.map +1 -0
  61. package/dist/destinations/movable-ink/identify/generated-types.d.ts +7 -0
  62. package/dist/destinations/movable-ink/identify/generated-types.js +3 -0
  63. package/dist/destinations/movable-ink/identify/generated-types.js.map +1 -0
  64. package/dist/destinations/movable-ink/identify/index.d.ts +5 -0
  65. package/dist/destinations/movable-ink/identify/index.js +32 -0
  66. package/dist/destinations/movable-ink/identify/index.js.map +1 -0
  67. package/dist/destinations/movable-ink/productAdded/generated-types.d.ts +22 -0
  68. package/dist/destinations/movable-ink/productAdded/generated-types.js +3 -0
  69. package/dist/destinations/movable-ink/productAdded/generated-types.js.map +1 -0
  70. package/dist/destinations/movable-ink/productAdded/index.d.ts +5 -0
  71. package/dist/destinations/movable-ink/productAdded/index.js +43 -0
  72. package/dist/destinations/movable-ink/productAdded/index.js.map +1 -0
  73. package/dist/destinations/movable-ink/productViewed/generated-types.d.ts +21 -0
  74. package/dist/destinations/movable-ink/productViewed/generated-types.js +3 -0
  75. package/dist/destinations/movable-ink/productViewed/generated-types.js.map +1 -0
  76. package/dist/destinations/movable-ink/productViewed/index.d.ts +5 -0
  77. package/dist/destinations/movable-ink/productViewed/index.js +43 -0
  78. package/dist/destinations/movable-ink/productViewed/index.js.map +1 -0
  79. package/dist/destinations/movable-ink/search/generated-types.d.ts +12 -0
  80. package/dist/destinations/movable-ink/search/generated-types.js +3 -0
  81. package/dist/destinations/movable-ink/search/generated-types.js.map +1 -0
  82. package/dist/destinations/movable-ink/search/index.d.ts +5 -0
  83. package/dist/destinations/movable-ink/search/index.js +43 -0
  84. package/dist/destinations/movable-ink/search/index.js.map +1 -0
  85. package/dist/destinations/movable-ink/sendCustomEvent/generated-types.d.ts +25 -0
  86. package/dist/destinations/movable-ink/sendCustomEvent/generated-types.js +3 -0
  87. package/dist/destinations/movable-ink/sendCustomEvent/generated-types.js.map +1 -0
  88. package/dist/destinations/movable-ink/sendCustomEvent/index.d.ts +5 -0
  89. package/dist/destinations/movable-ink/sendCustomEvent/index.js +48 -0
  90. package/dist/destinations/movable-ink/sendCustomEvent/index.js.map +1 -0
  91. package/dist/destinations/responsys/asyncMergePetRecords/generated-types.d.ts +14 -0
  92. package/dist/destinations/responsys/asyncMergePetRecords/generated-types.js +3 -0
  93. package/dist/destinations/responsys/asyncMergePetRecords/generated-types.js.map +1 -0
  94. package/dist/destinations/responsys/asyncMergePetRecords/index.d.ts +5 -0
  95. package/dist/destinations/responsys/asyncMergePetRecords/index.js +113 -0
  96. package/dist/destinations/responsys/asyncMergePetRecords/index.js.map +1 -0
  97. package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.d.ts +20 -0
  98. package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.js +3 -0
  99. package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.js.map +1 -0
  100. package/dist/destinations/responsys/asyncMergeProfileListMembers/index.d.ts +5 -0
  101. package/dist/destinations/responsys/asyncMergeProfileListMembers/index.js +174 -0
  102. package/dist/destinations/responsys/asyncMergeProfileListMembers/index.js.map +1 -0
  103. package/dist/destinations/responsys/rsp-operations.d.ts +14 -0
  104. package/dist/destinations/responsys/rsp-operations.js +33 -0
  105. package/dist/destinations/responsys/rsp-operations.js.map +1 -0
  106. package/dist/destinations/responsys/rsp-properties.d.ts +4 -0
  107. package/dist/destinations/responsys/rsp-properties.js +27 -0
  108. package/dist/destinations/responsys/rsp-properties.js.map +1 -0
  109. package/dist/destinations/snap-conversions-api/_tests_/capiV2tests.d.ts +1 -0
  110. package/dist/destinations/snap-conversions-api/_tests_/capiV2tests.js +381 -0
  111. package/dist/destinations/snap-conversions-api/_tests_/capiV2tests.js.map +1 -0
  112. package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.d.ts +1 -0
  113. package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.js +581 -0
  114. package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.js.map +1 -0
  115. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v2.d.ts +4 -0
  116. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v2.js +97 -0
  117. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v2.js.map +1 -0
  118. package/dist/destinations/snap-conversions-api/snap-capi-properties.d.ts +30 -0
  119. package/dist/destinations/snap-conversions-api/snap-capi-properties.js +316 -0
  120. package/dist/destinations/snap-conversions-api/snap-capi-properties.js.map +1 -0
  121. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.d.ts +3 -0
  122. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js +34 -0
  123. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js.map +1 -0
  124. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.d.ts +3 -0
  125. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.js +43 -0
  126. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.js.map +1 -0
  127. package/dist/destinations/trackey/group.types.d.ts +11 -0
  128. package/dist/destinations/trackey/group.types.js +3 -0
  129. package/dist/destinations/trackey/group.types.js.map +1 -0
  130. package/dist/destinations/trackey/identify.types.d.ts +11 -0
  131. package/dist/destinations/trackey/identify.types.js +3 -0
  132. package/dist/destinations/trackey/identify.types.js.map +1 -0
  133. package/dist/destinations/trackey/track.types.d.ts +12 -0
  134. package/dist/destinations/trackey/track.types.js +3 -0
  135. package/dist/destinations/trackey/track.types.js.map +1 -0
  136. package/package.json +4 -4
  137. package/dist/destinations/klaviyo/orderCompleted/formatters.d.ts +0 -26
  138. package/dist/destinations/klaviyo/orderCompleted/formatters.js +0 -62
  139. package/dist/destinations/klaviyo/orderCompleted/formatters.js.map +0 -1
  140. package/dist/destinations/klaviyo/orderCompleted/types.d.ts +0 -2
  141. package/dist/destinations/klaviyo/orderCompleted/types.js.map +0 -1
  142. package/dist/destinations/mixpanel/incrementProperties/__test__/__snapshots__/snapshot.test.js.snap +0 -18
  143. /package/dist/destinations/{klaviyo/orderCompleted → dynamic-yield-audiences/syncAudience}/types.js +0 -0
@@ -1,26 +0,0 @@
1
- import { Product } from './types';
2
- export declare function convertKeysToTitleCase(obj: Record<string, unknown>, level?: number): Record<string, unknown>;
3
- export declare function formatOrderedProduct(product: Product, order_id?: string, unique_event_id?: String): {
4
- unique_id: string | undefined;
5
- productProperties: {
6
- OrderId: string | undefined;
7
- ProductId: unknown;
8
- SKU: string | undefined;
9
- ProductName: string | undefined;
10
- Quantity: number | undefined;
11
- Categories: string[];
12
- ProductURL: string | undefined;
13
- ImageURL: string | undefined;
14
- };
15
- };
16
- export declare function formatProductItems(product: Product): {
17
- ProductId: unknown;
18
- SKU: string | undefined;
19
- ProductName: string | undefined;
20
- Quantity: number | undefined;
21
- ItemPrice: number | undefined;
22
- RowTotal: number | undefined;
23
- Categories: string[];
24
- ProductURL: string | undefined;
25
- ImageURL: string | undefined;
26
- };
@@ -1,62 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.formatProductItems = exports.formatOrderedProduct = exports.convertKeysToTitleCase = void 0;
4
- function toTitleCase(str) {
5
- return (str
6
- .replace(/[^a-zA-Z0-9]/g, ' ')
7
- .replace(/\s+/g, ' ')
8
- .trim()
9
- .split(' ')
10
- .map((word) => word.charAt(0).toUpperCase() + word.slice(1))
11
- .join(''));
12
- }
13
- function convertKeysToTitleCase(obj, level = 0) {
14
- if (level > 1)
15
- return obj;
16
- return Object.fromEntries(Object.entries(obj).map(([key, value]) => {
17
- if (typeof value === 'object' && !Array.isArray(value)) {
18
- return [toTitleCase(key), convertKeysToTitleCase(value, level + 1)];
19
- }
20
- if (Array.isArray(value)) {
21
- return [toTitleCase(key), value];
22
- }
23
- return [toTitleCase(key), value];
24
- }));
25
- }
26
- exports.convertKeysToTitleCase = convertKeysToTitleCase;
27
- function formatOrderedProduct(product, order_id, unique_event_id) {
28
- const event_id = unique_event_id ?? order_id;
29
- const unique_product_id = product.product_id || product.sku || product?.id;
30
- const unique_id = event_id && unique_product_id ? `${event_id}_${unique_product_id}` : undefined;
31
- const { name, quantity, sku, price, url, image_url, category, product_id, id, ...otherProperties } = product;
32
- const productProperties = {
33
- OrderId: order_id,
34
- ProductId: product_id ?? id,
35
- SKU: sku,
36
- ProductName: name,
37
- Quantity: quantity,
38
- Categories: category ? [category] : [],
39
- ProductURL: url,
40
- ImageURL: image_url,
41
- ...convertKeysToTitleCase(otherProperties)
42
- };
43
- return { unique_id, productProperties };
44
- }
45
- exports.formatOrderedProduct = formatOrderedProduct;
46
- function formatProductItems(product) {
47
- const { sku, name, quantity, price, category, url, image_url, id, product_id, ...otherProperties } = product;
48
- return {
49
- ProductId: product_id ?? id,
50
- SKU: sku,
51
- ProductName: name,
52
- Quantity: quantity,
53
- ItemPrice: price,
54
- RowTotal: price,
55
- Categories: category ? [category] : [],
56
- ProductURL: url,
57
- ImageURL: image_url,
58
- ...convertKeysToTitleCase(otherProperties)
59
- };
60
- }
61
- exports.formatProductItems = formatProductItems;
62
- //# sourceMappingURL=formatters.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatters.js","sourceRoot":"","sources":["../../../../src/destinations/klaviyo/orderCompleted/formatters.ts"],"names":[],"mappings":";;;AAEA,SAAS,WAAW,CAAC,GAAW;IAC9B,OAAO,CACL,GAAG;SAEA,OAAO,CAAC,eAAe,EAAE,GAAG,CAAC;SAE7B,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;SAEpB,IAAI,EAAE;SACN,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC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EAAE,UAAU,EAAE,EAAE,EAAE,GAAG,eAAe,EAAE,GAAG,OAAO,CAAA;IAC5G,MAAM,iBAAiB,GAAG;QACxB,OAAO,EAAE,QAAQ;QACjB,SAAS,EAAE,UAAU,IAAI,EAAE;QAC3B,GAAG,EAAE,GAAG;QACR,WAAW,EAAE,IAAI;QACjB,QAAQ,EAAE,QAAQ;QAClB,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE;QACtC,UAAU,EAAE,GAAG;QACf,QAAQ,EAAE,SAAS;QAGnB,GAAG,sBAAsB,CAAC,eAAe,CAAC;KAC3C,CAAA;IACD,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAA;AACzC,CAAC;AAtBD,oDAsBC;AAED,SAAgB,kBAAkB,CAAC,OAAgB;IACjD,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,eAAe,EAAE,GAAG,OAAO,CAAA;IAC5G,OAAO;QACL,SAAS,EAAE,UAAU,IAAI,EAAE;QAC3B,GAAG,EAAE,GAAG;QACR,WAAW,EAAE,IAAI;QACjB,QAAQ,EAAE,QAAQ;QAClB,SAAS,EAAE,KAAK;QAChB,QAAQ,EAAE,KAAK;QACf,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE;QACtC,UAAU,EAAE,GAAG;QACf,QAAQ,EAAE,SAAS;QAGnB,GAAG,sBAAsB,CAAC,eAAe,CAAC;KAC3C,CAAA;AACH,CAAC;AAhBD,gDAgBC"}
@@ -1,2 +0,0 @@
1
- import type { Payload } from './generated-types';
2
- export declare type Product = NonNullable<Payload['products']>[number];
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/destinations/klaviyo/orderCompleted/types.ts"],"names":[],"mappings":""}
@@ -1,18 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`Testing snapshot for Mixpanel's identifyUser destination action: all fields 1`] = `"data=%7B%22event%22%3A%22%24identify%22%2C%22properties%22%3A%7B%22%24identified_id%22%3A%221SVsemB5FYy7%23Wu9%22%2C%22%24anon_id%22%3A%221SVsemB5FYy7%23Wu9%22%2C%22token%22%3A%221SVsemB5FYy7%23Wu9%22%2C%22segment_source_name%22%3A%221SVsemB5FYy7%23Wu9%22%7D%7D"`;
4
-
5
- exports[`Testing snapshot for Mixpanel's identifyUser destination action: required fields 1`] = `"data=%7B%22event%22%3A%22%24identify%22%2C%22properties%22%3A%7B%22%24identified_id%22%3A%221SVsemB5FYy7%23Wu9%22%2C%22%24anon_id%22%3A%221SVsemB5FYy7%23Wu9%22%2C%22token%22%3A%221SVsemB5FYy7%23Wu9%22%2C%22segment_source_name%22%3A%221SVsemB5FYy7%23Wu9%22%7D%7D"`;
6
-
7
- exports[`Testing snapshot for Mixpanel's identifyUser destination action: required fields 2`] = `
8
- Headers {
9
- Symbol(map): Object {
10
- "Content-Type": Array [
11
- "application/x-www-form-urlencoded;charset=UTF-8",
12
- ],
13
- "user-agent": Array [
14
- "Segment (Actions)",
15
- ],
16
- },
17
- }
18
- `;