@segment/action-destinations 3.331.7-staging → 3.331.7-staging.1

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 (119) hide show
  1. package/dist/destinations/absmartly/segment.d.ts +11 -0
  2. package/dist/destinations/absmartly/segment.js +3 -0
  3. package/dist/destinations/absmartly/segment.js.map +1 -0
  4. package/dist/destinations/blackbaud-raisers-edge-nxt/utils/index.d.ts +1 -1
  5. package/dist/destinations/braze/updateUserProfile/__snapshots__/__snapshots__/snapshot.test.js.snap +208 -0
  6. package/dist/destinations/braze/updateUserProfile/__snapshots__/snapshot.test.d.ts +1 -0
  7. package/dist/destinations/braze/updateUserProfile/__snapshots__/snapshot.test.js +184 -0
  8. package/dist/destinations/braze/updateUserProfile/__snapshots__/snapshot.test.js.map +1 -0
  9. package/dist/destinations/display-video-360/addToAudience/generated-types.d.ts +1 -1
  10. package/dist/destinations/display-video-360/addToAudience/index.js +2 -3
  11. package/dist/destinations/display-video-360/addToAudience/index.js.map +1 -1
  12. package/dist/destinations/display-video-360/index.js +3 -3
  13. package/dist/destinations/display-video-360/index.js.map +1 -1
  14. package/dist/destinations/display-video-360/properties.d.ts +1 -1
  15. package/dist/destinations/display-video-360/properties.js +17 -14
  16. package/dist/destinations/display-video-360/properties.js.map +1 -1
  17. package/dist/destinations/display-video-360/removeFromAudience/generated-types.d.ts +1 -1
  18. package/dist/destinations/display-video-360/removeFromAudience/index.js +2 -3
  19. package/dist/destinations/display-video-360/removeFromAudience/index.js.map +1 -1
  20. package/dist/destinations/display-video-360/shared.js +3 -3
  21. package/dist/destinations/display-video-360/shared.js.map +1 -1
  22. package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.js +3 -0
  23. package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.js.map +1 -1
  24. package/dist/destinations/gleap/generated-types.d.ts +3 -0
  25. package/dist/destinations/gleap/generated-types.js +3 -0
  26. package/dist/destinations/gleap/generated-types.js.map +1 -0
  27. package/dist/destinations/gleap/identifyContact/generated-types.d.ts +18 -0
  28. package/dist/destinations/gleap/identifyContact/generated-types.js +3 -0
  29. package/dist/destinations/gleap/identifyContact/generated-types.js.map +1 -0
  30. package/dist/destinations/gleap/identifyContact/index.d.ts +5 -0
  31. package/dist/destinations/gleap/identifyContact/index.js +155 -0
  32. package/dist/destinations/gleap/identifyContact/index.js.map +1 -0
  33. package/dist/destinations/gleap/index.d.ts +4 -0
  34. package/dist/destinations/gleap/index.js +52 -0
  35. package/dist/destinations/gleap/index.js.map +1 -0
  36. package/dist/destinations/gleap/trackEvent/generated-types.d.ts +10 -0
  37. package/dist/destinations/gleap/trackEvent/generated-types.js +3 -0
  38. package/dist/destinations/gleap/trackEvent/generated-types.js.map +1 -0
  39. package/dist/destinations/gleap/trackEvent/index.d.ts +5 -0
  40. package/dist/destinations/gleap/trackEvent/index.js +111 -0
  41. package/dist/destinations/gleap/trackEvent/index.js.map +1 -0
  42. package/dist/destinations/klaviyo/addProfileToList/generated-types.d.ts +2 -1
  43. package/dist/destinations/klaviyo/addProfileToList/index.js +7 -0
  44. package/dist/destinations/klaviyo/addProfileToList/index.js.map +1 -1
  45. package/dist/destinations/klaviyo/functions.d.ts +8 -0
  46. package/dist/destinations/klaviyo/functions.js +34 -1
  47. package/dist/destinations/klaviyo/functions.js.map +1 -1
  48. package/dist/destinations/klaviyo/properties.d.ts +2 -1
  49. package/dist/destinations/klaviyo/properties.js +8 -3
  50. package/dist/destinations/klaviyo/properties.js.map +1 -1
  51. package/dist/destinations/klaviyo/removeProfileFromList/generated-types.d.ts +1 -1
  52. package/dist/destinations/klaviyo/removeProfileToList/generated-types.d.ts +4 -0
  53. package/dist/destinations/klaviyo/removeProfileToList/generated-types.js +3 -0
  54. package/dist/destinations/klaviyo/removeProfileToList/generated-types.js.map +1 -0
  55. package/dist/destinations/klaviyo/removeProfileToList/index.d.ts +5 -0
  56. package/dist/destinations/klaviyo/removeProfileToList/index.js +41 -0
  57. package/dist/destinations/klaviyo/removeProfileToList/index.js.map +1 -0
  58. package/dist/destinations/klaviyo/upsertProfile/generated-types.d.ts +1 -0
  59. package/dist/destinations/klaviyo/upsertProfile/index.js +26 -1
  60. package/dist/destinations/klaviyo/upsertProfile/index.js.map +1 -1
  61. package/dist/destinations/linkedin-conversions/api/index.d.ts +1 -1
  62. package/dist/destinations/linkedin-conversions/api/index.js +1 -1
  63. package/dist/destinations/linkedin-conversions/streamConversion/index.js +1 -1
  64. package/dist/destinations/linkedin-conversions/streamConversion/index.js.map +1 -1
  65. package/dist/destinations/mixpanel/utils.d.ts +13 -0
  66. package/dist/destinations/mixpanel/utils.js +117 -0
  67. package/dist/destinations/mixpanel/utils.js.map +1 -0
  68. package/dist/destinations/tiktok-audiences/properties.js +5 -4
  69. package/dist/destinations/tiktok-audiences/properties.js.map +1 -1
  70. package/dist/destinations/tiktok-conversions/index.js +92 -3
  71. package/dist/destinations/tiktok-conversions/index.js.map +1 -1
  72. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.d.ts +3 -3
  73. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js +33 -24
  74. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js.map +1 -1
  75. package/dist/destinations/tiktok-conversions/reportWebEvent/generated-types.d.ts +12 -4
  76. package/dist/destinations/tiktok-conversions/reportWebEvent/index.js +113 -40
  77. package/dist/destinations/tiktok-conversions/reportWebEvent/index.js.map +1 -1
  78. package/dist/destinations/tiktok-offline-conversions/index.js +199 -48
  79. package/dist/destinations/tiktok-offline-conversions/index.js.map +1 -1
  80. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.d.ts +3 -0
  81. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.js +43 -0
  82. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.js.map +1 -0
  83. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/generated-types.d.ts +33 -0
  84. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/generated-types.js +3 -0
  85. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/generated-types.js.map +1 -0
  86. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/index.d.ts +5 -0
  87. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/index.js +317 -0
  88. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/index.js.map +1 -0
  89. package/dist/destinations/trackey/identifyUser/generated-types.d.ts +8 -0
  90. package/dist/destinations/trackey/identifyUser/generated-types.js +3 -0
  91. package/dist/destinations/trackey/identifyUser/generated-types.js.map +1 -0
  92. package/dist/destinations/trackey/identifyUser/index.d.ts +5 -0
  93. package/dist/destinations/trackey/identifyUser/index.js +52 -0
  94. package/dist/destinations/trackey/identifyUser/index.js.map +1 -0
  95. package/dist/destinations/trackey/identifyUser.types.d.ts +8 -0
  96. package/dist/destinations/trackey/identifyUser.types.js +3 -0
  97. package/dist/destinations/trackey/identifyUser.types.js.map +1 -0
  98. package/dist/destinations/trackey/registerCompany/generated-types.d.ts +9 -0
  99. package/dist/destinations/trackey/registerCompany/generated-types.js +3 -0
  100. package/dist/destinations/trackey/registerCompany/generated-types.js.map +1 -0
  101. package/dist/destinations/trackey/registerCompany/index.d.ts +5 -0
  102. package/dist/destinations/trackey/registerCompany/index.js +60 -0
  103. package/dist/destinations/trackey/registerCompany/index.js.map +1 -0
  104. package/dist/destinations/trackey/registerCompany.types.d.ts +9 -0
  105. package/dist/destinations/trackey/registerCompany.types.js +3 -0
  106. package/dist/destinations/trackey/registerCompany.types.js.map +1 -0
  107. package/dist/destinations/trackey/trackEvent/generated-types.d.ts +12 -0
  108. package/dist/destinations/trackey/trackEvent/generated-types.js +3 -0
  109. package/dist/destinations/trackey/trackEvent/generated-types.js.map +1 -0
  110. package/dist/destinations/trackey/trackEvent/index.d.ts +5 -0
  111. package/dist/destinations/trackey/trackEvent/index.js +68 -0
  112. package/dist/destinations/trackey/trackEvent/index.js.map +1 -0
  113. package/dist/destinations/trackey/trackEvent.types.d.ts +12 -0
  114. package/dist/destinations/trackey/trackEvent.types.js +3 -0
  115. package/dist/destinations/trackey/trackEvent.types.js.map +1 -0
  116. package/package.json +1 -1
  117. package/dist/destinations/display-video-360/listManagement.d.ts +0 -9
  118. package/dist/destinations/display-video-360/listManagement.js +0 -16
  119. package/dist/destinations/display-video-360/listManagement.js.map +0 -1
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const constants_1 = require("../constants");
4
+ const action = {
5
+ title: 'Track Event',
6
+ description: 'Track an event',
7
+ defaultSubscription: 'type = "track"',
8
+ fields: {
9
+ userId: {
10
+ label: 'User ID',
11
+ type: 'string',
12
+ required: true,
13
+ description: 'The user identifier to associate the event with',
14
+ default: { '@path': '$.userId' }
15
+ },
16
+ event: {
17
+ label: 'Event Name',
18
+ type: 'string',
19
+ required: true,
20
+ description: 'Name of the Segment track() event',
21
+ default: { '@path': '$.event' }
22
+ },
23
+ messageId: {
24
+ label: 'Message ID',
25
+ type: 'string',
26
+ description: 'A unique value for each event.',
27
+ default: {
28
+ '@path': '$.messageId'
29
+ }
30
+ },
31
+ timestamp: {
32
+ label: 'Event Timestamp',
33
+ type: 'string',
34
+ required: true,
35
+ description: 'Timestamp that the event took place, in ISO 8601 format. e.g. 2019-06-12T19:11:01.152Z',
36
+ default: { '@path': '$.timestamp' }
37
+ },
38
+ properties: {
39
+ label: 'Event Properties',
40
+ type: 'object',
41
+ required: false,
42
+ description: 'Additional information associated with the track() event',
43
+ default: { '@path': '$.properties' }
44
+ },
45
+ groupId: {
46
+ label: 'Group ID',
47
+ type: 'object',
48
+ required: false,
49
+ description: 'Company ID associated with the event',
50
+ default: { '@path': '$.context.group_id' }
51
+ }
52
+ },
53
+ perform: (request, { payload }) => {
54
+ return request(constants_1.baseUrl, {
55
+ method: 'POST',
56
+ json: {
57
+ userId: payload.userId,
58
+ event: payload.event,
59
+ messageId: payload.messageId,
60
+ timestamp: payload.timestamp,
61
+ properties: payload.properties,
62
+ groupId: payload.groupId
63
+ }
64
+ });
65
+ }
66
+ };
67
+ exports.default = action;
68
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/trackey/trackEvent/index.ts"],"names":[],"mappings":";;AAGA,4CAAsC;AAEtC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,gBAAgB;IAC7B,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,MAAM,EAAE;YACN,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,iDAAiD;YAC9D,OAAO,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;SACjC;QACD,KAAK,EAAE;YACL,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,mCAAmC;YAChD,OAAO,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;SAChC;QACD,SAAS,EAAE;YACT,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,gCAAgC;YAC7C,OAAO,EAAE;gBACP,OAAO,EAAE,aAAa;aACvB;SACF;QACD,SAAS,EAAE;YACT,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,wFAAwF;YACrG,OAAO,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE;SACpC;QACD,UAAU,EAAE;YACV,KAAK,EAAE,kBAAkB;YACzB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,WAAW,EAAE,0DAA0D;YACvE,OAAO,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE;SACrC;QACD,OAAO,EAAE;YACP,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,WAAW,EAAE,sCAAsC;YACnD,OAAO,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;SAC3C;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAChC,OAAO,OAAO,CAAC,mBAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,UAAU,EAAE,OAAO,CAAC,UAAU;gBAC9B,OAAO,EAAE,OAAO,CAAC,OAAO;aACzB;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,12 @@
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
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=trackEvent.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trackEvent.types.js","sourceRoot":"","sources":["../../../src/destinations/trackey/trackEvent.types.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@segment/action-destinations",
3
3
  "description": "Destination Actions engine and definitions.",
4
- "version": "3.331.7-staging",
4
+ "version": "3.331.7-staging.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/segmentio/action-destinations",
@@ -1,9 +0,0 @@
1
- declare type BasicListTypeMap = {
2
- basicUserList: any;
3
- [key: string]: any;
4
- } | {
5
- crmBasedUserList: any;
6
- [key: string]: any;
7
- };
8
- export declare const buildListTypeMap: (listType: string) => BasicListTypeMap;
9
- export {};
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.buildListTypeMap = void 0;
4
- const cjs_1 = require("@segment/actions-core/dist/cjs");
5
- const buildListTypeMap = (listType) => {
6
- switch (listType) {
7
- case 'basicUserList':
8
- return { basicUserList: {}, type: 'REMARKETING', membershipStatus: 'OPEN' };
9
- case 'customerMatchList':
10
- return { crmBasedUserList: { uploadKeyType: 'CONTACT_INFO' } };
11
- default:
12
- throw new cjs_1.IntegrationError('Invalid list type', 'INVALID_REQUEST_DATA', 400);
13
- }
14
- };
15
- exports.buildListTypeMap = buildListTypeMap;
16
- //# sourceMappingURL=listManagement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listManagement.js","sourceRoot":"","sources":["../../../src/destinations/display-video-360/listManagement.ts"],"names":[],"mappings":";;;AAAA,wDAAiE;AAI1D,MAAM,gBAAgB,GAAG,CAAC,QAAgB,EAAoB,EAAE;IACrE,QAAQ,QAAQ,EAAE;QAChB,KAAK,eAAe;YAClB,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,EAAE,CAAA;QAC7E,KAAK,mBAAmB;YACtB,OAAO,EAAE,gBAAgB,EAAE,EAAE,aAAa,EAAE,cAAc,EAAE,EAAE,CAAA;QAChE;YACE,MAAM,IAAI,sBAAgB,CAAC,mBAAmB,EAAE,sBAAsB,EAAE,GAAG,CAAC,CAAA;KAC/E;AACH,CAAC,CAAA;AATY,QAAA,gBAAgB,oBAS5B"}