@segment/action-destinations 3.131.1-ga4-cloud.12 → 3.131.1-gads-test.19

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 (223) hide show
  1. package/dist/destinations/algolia-insights/algolia-insight-api.d.ts +26 -0
  2. package/dist/destinations/algolia-insights/algolia-insight-api.js +8 -0
  3. package/dist/destinations/algolia-insights/algolia-insight-api.js.map +1 -0
  4. package/dist/destinations/algolia-insights/conversionEvents/generated-types.d.ts +9 -0
  5. package/dist/destinations/algolia-insights/conversionEvents/generated-types.js +3 -0
  6. package/dist/destinations/algolia-insights/conversionEvents/generated-types.js.map +1 -0
  7. package/dist/destinations/algolia-insights/conversionEvents/index.d.ts +6 -0
  8. package/dist/destinations/algolia-insights/conversionEvents/index.js +83 -0
  9. package/dist/destinations/algolia-insights/conversionEvents/index.js.map +1 -0
  10. package/dist/destinations/algolia-insights/generated-types.d.ts +4 -0
  11. package/dist/destinations/algolia-insights/generated-types.js +3 -0
  12. package/dist/destinations/algolia-insights/generated-types.js.map +1 -0
  13. package/dist/destinations/algolia-insights/index.d.ts +5 -0
  14. package/dist/destinations/algolia-insights/index.js +54 -0
  15. package/dist/destinations/algolia-insights/index.js.map +1 -0
  16. package/dist/destinations/algolia-insights/productClickedEvents/generated-types.d.ts +8 -0
  17. package/dist/destinations/algolia-insights/productClickedEvents/generated-types.js +3 -0
  18. package/dist/destinations/algolia-insights/productClickedEvents/generated-types.js.map +1 -0
  19. package/dist/destinations/algolia-insights/productClickedEvents/index.d.ts +6 -0
  20. package/dist/destinations/algolia-insights/productClickedEvents/index.js +91 -0
  21. package/dist/destinations/algolia-insights/productClickedEvents/index.js.map +1 -0
  22. package/dist/destinations/algolia-insights/productViewedEvents/generated-types.d.ts +7 -0
  23. package/dist/destinations/algolia-insights/productViewedEvents/generated-types.js +3 -0
  24. package/dist/destinations/algolia-insights/productViewedEvents/generated-types.js.map +1 -0
  25. package/dist/destinations/algolia-insights/productViewedEvents/index.d.ts +6 -0
  26. package/dist/destinations/algolia-insights/productViewedEvents/index.js +81 -0
  27. package/dist/destinations/algolia-insights/productViewedEvents/index.js.map +1 -0
  28. package/dist/destinations/blackbaud-raisers-edge-nxt/api/index.d.ts +20 -0
  29. package/dist/destinations/blackbaud-raisers-edge-nxt/api/index.js +133 -0
  30. package/dist/destinations/blackbaud-raisers-edge-nxt/api/index.js.map +1 -0
  31. package/dist/destinations/blackbaud-raisers-edge-nxt/constants/index.d.ts +2 -0
  32. package/dist/destinations/blackbaud-raisers-edge-nxt/constants/index.js +6 -0
  33. package/dist/destinations/blackbaud-raisers-edge-nxt/constants/index.js.map +1 -0
  34. package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/fixtures.d.ts +80 -0
  35. package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/fixtures.js +151 -0
  36. package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/fixtures.js.map +1 -0
  37. package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/generated-types.d.ts +35 -0
  38. package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/generated-types.js +3 -0
  39. package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/generated-types.js.map +1 -0
  40. package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/index.d.ts +5 -0
  41. package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/index.js +619 -0
  42. package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/index.js.map +1 -0
  43. package/dist/destinations/blackbaud-raisers-edge-nxt/generated-types.d.ts +3 -0
  44. package/dist/destinations/blackbaud-raisers-edge-nxt/generated-types.js +3 -0
  45. package/dist/destinations/blackbaud-raisers-edge-nxt/generated-types.js.map +1 -0
  46. package/dist/destinations/blackbaud-raisers-edge-nxt/index.d.ts +4 -0
  47. package/dist/destinations/blackbaud-raisers-edge-nxt/index.js +53 -0
  48. package/dist/destinations/blackbaud-raisers-edge-nxt/index.js.map +1 -0
  49. package/dist/destinations/blackbaud-raisers-edge-nxt/types/index.d.ts +67 -0
  50. package/dist/destinations/blackbaud-raisers-edge-nxt/types/index.js +3 -0
  51. package/dist/destinations/blackbaud-raisers-edge-nxt/types/index.js.map +1 -0
  52. package/dist/destinations/blackbaud-raisers-edge-nxt/utils/index.d.ts +8 -0
  53. package/dist/destinations/blackbaud-raisers-edge-nxt/utils/index.js +44 -0
  54. package/dist/destinations/blackbaud-raisers-edge-nxt/utils/index.js.map +1 -0
  55. package/dist/destinations/google-analytics-4/addPaymentInfo/generated-types.d.ts +1 -3
  56. package/dist/destinations/google-analytics-4/addPaymentInfo/index.js +3 -10
  57. package/dist/destinations/google-analytics-4/addPaymentInfo/index.js.map +1 -1
  58. package/dist/destinations/google-analytics-4/addToCart/generated-types.d.ts +1 -3
  59. package/dist/destinations/google-analytics-4/addToCart/index.js +3 -10
  60. package/dist/destinations/google-analytics-4/addToCart/index.js.map +1 -1
  61. package/dist/destinations/google-analytics-4/addToWishlist/generated-types.d.ts +1 -3
  62. package/dist/destinations/google-analytics-4/addToWishlist/index.js +3 -10
  63. package/dist/destinations/google-analytics-4/addToWishlist/index.js.map +1 -1
  64. package/dist/destinations/google-analytics-4/beginCheckout/generated-types.d.ts +1 -3
  65. package/dist/destinations/google-analytics-4/beginCheckout/index.js +3 -10
  66. package/dist/destinations/google-analytics-4/beginCheckout/index.js.map +1 -1
  67. package/dist/destinations/google-analytics-4/customEvent/generated-types.d.ts +1 -3
  68. package/dist/destinations/google-analytics-4/customEvent/index.js +3 -10
  69. package/dist/destinations/google-analytics-4/customEvent/index.js.map +1 -1
  70. package/dist/destinations/google-analytics-4/ga4-functions.d.ts +0 -3
  71. package/dist/destinations/google-analytics-4/ga4-functions.js +1 -31
  72. package/dist/destinations/google-analytics-4/ga4-functions.js.map +1 -1
  73. package/dist/destinations/google-analytics-4/ga4-properties.d.ts +0 -2
  74. package/dist/destinations/google-analytics-4/ga4-properties.js +3 -17
  75. package/dist/destinations/google-analytics-4/ga4-properties.js.map +1 -1
  76. package/dist/destinations/google-analytics-4/ga4-types.d.ts +0 -14
  77. package/dist/destinations/google-analytics-4/ga4-types.js +0 -6
  78. package/dist/destinations/google-analytics-4/ga4-types.js.map +1 -1
  79. package/dist/destinations/google-analytics-4/generateLead/generated-types.d.ts +1 -3
  80. package/dist/destinations/google-analytics-4/generateLead/index.js +3 -10
  81. package/dist/destinations/google-analytics-4/generateLead/index.js.map +1 -1
  82. package/dist/destinations/google-analytics-4/generated-types.d.ts +1 -2
  83. package/dist/destinations/google-analytics-4/index.js +10 -15
  84. package/dist/destinations/google-analytics-4/index.js.map +1 -1
  85. package/dist/destinations/google-analytics-4/login/generated-types.d.ts +1 -3
  86. package/dist/destinations/google-analytics-4/login/index.js +3 -10
  87. package/dist/destinations/google-analytics-4/login/index.js.map +1 -1
  88. package/dist/destinations/google-analytics-4/pageView/generated-types.d.ts +1 -3
  89. package/dist/destinations/google-analytics-4/pageView/index.js +3 -10
  90. package/dist/destinations/google-analytics-4/pageView/index.js.map +1 -1
  91. package/dist/destinations/google-analytics-4/purchase/generated-types.d.ts +1 -3
  92. package/dist/destinations/google-analytics-4/purchase/index.js +3 -10
  93. package/dist/destinations/google-analytics-4/purchase/index.js.map +1 -1
  94. package/dist/destinations/google-analytics-4/refund/generated-types.d.ts +1 -3
  95. package/dist/destinations/google-analytics-4/refund/index.js +3 -10
  96. package/dist/destinations/google-analytics-4/refund/index.js.map +1 -1
  97. package/dist/destinations/google-analytics-4/removeFromCart/generated-types.d.ts +1 -3
  98. package/dist/destinations/google-analytics-4/removeFromCart/index.js +3 -10
  99. package/dist/destinations/google-analytics-4/removeFromCart/index.js.map +1 -1
  100. package/dist/destinations/google-analytics-4/search/generated-types.d.ts +1 -3
  101. package/dist/destinations/google-analytics-4/search/index.js +3 -10
  102. package/dist/destinations/google-analytics-4/search/index.js.map +1 -1
  103. package/dist/destinations/google-analytics-4/selectItem/generated-types.d.ts +1 -3
  104. package/dist/destinations/google-analytics-4/selectItem/index.js +3 -10
  105. package/dist/destinations/google-analytics-4/selectItem/index.js.map +1 -1
  106. package/dist/destinations/google-analytics-4/selectPromotion/generated-types.d.ts +1 -3
  107. package/dist/destinations/google-analytics-4/selectPromotion/index.js +3 -10
  108. package/dist/destinations/google-analytics-4/selectPromotion/index.js.map +1 -1
  109. package/dist/destinations/google-analytics-4/signUp/generated-types.d.ts +1 -3
  110. package/dist/destinations/google-analytics-4/signUp/index.js +3 -10
  111. package/dist/destinations/google-analytics-4/signUp/index.js.map +1 -1
  112. package/dist/destinations/google-analytics-4/viewCart/generated-types.d.ts +1 -3
  113. package/dist/destinations/google-analytics-4/viewCart/index.js +3 -10
  114. package/dist/destinations/google-analytics-4/viewCart/index.js.map +1 -1
  115. package/dist/destinations/google-analytics-4/viewItem/generated-types.d.ts +1 -3
  116. package/dist/destinations/google-analytics-4/viewItem/index.js +3 -10
  117. package/dist/destinations/google-analytics-4/viewItem/index.js.map +1 -1
  118. package/dist/destinations/google-analytics-4/viewItemList/generated-types.d.ts +1 -3
  119. package/dist/destinations/google-analytics-4/viewItemList/index.js +3 -10
  120. package/dist/destinations/google-analytics-4/viewItemList/index.js.map +1 -1
  121. package/dist/destinations/google-analytics-4/viewPromotion/generated-types.d.ts +1 -3
  122. package/dist/destinations/google-analytics-4/viewPromotion/index.js +3 -10
  123. package/dist/destinations/google-analytics-4/viewPromotion/index.js.map +1 -1
  124. package/dist/destinations/google-enhanced-conversions/functions.d.ts +2 -1
  125. package/dist/destinations/google-enhanced-conversions/functions.js +2 -2
  126. package/dist/destinations/google-enhanced-conversions/functions.js.map +1 -1
  127. package/dist/destinations/google-enhanced-conversions/types.d.ts +2 -1
  128. package/dist/destinations/google-enhanced-conversions/types.js +8 -2
  129. package/dist/destinations/google-enhanced-conversions/types.js.map +1 -1
  130. package/dist/destinations/google-enhanced-conversions/uploadCallConversion/index.js +3 -3
  131. package/dist/destinations/google-enhanced-conversions/uploadCallConversion/index.js.map +1 -1
  132. package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js +3 -3
  133. package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js.map +1 -1
  134. package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js +2 -2
  135. package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js.map +1 -1
  136. package/dist/destinations/heap/flat.d.ts +1 -2
  137. package/dist/destinations/heap/flat.js +11 -1
  138. package/dist/destinations/heap/flat.js.map +1 -1
  139. package/dist/destinations/heap/heapUtils.d.ts +8 -0
  140. package/dist/destinations/heap/heapUtils.js +41 -0
  141. package/dist/destinations/heap/heapUtils.js.map +1 -0
  142. package/dist/destinations/heap/trackEvent/generated-types.d.ts +0 -1
  143. package/dist/destinations/heap/trackEvent/index.js +18 -54
  144. package/dist/destinations/heap/trackEvent/index.js.map +1 -1
  145. package/dist/destinations/launchpad/generated-types.d.ts +5 -0
  146. package/dist/destinations/launchpad/generated-types.js +3 -0
  147. package/dist/destinations/launchpad/generated-types.js.map +1 -0
  148. package/dist/destinations/launchpad/groupIdentifyUser/generated-types.d.ts +9 -0
  149. package/dist/destinations/launchpad/groupIdentifyUser/generated-types.js +3 -0
  150. package/dist/destinations/launchpad/groupIdentifyUser/generated-types.js.map +1 -0
  151. package/dist/destinations/launchpad/groupIdentifyUser/index.d.ts +5 -0
  152. package/dist/destinations/launchpad/groupIdentifyUser/index.js +79 -0
  153. package/dist/destinations/launchpad/groupIdentifyUser/index.js.map +1 -0
  154. package/dist/destinations/launchpad/identifyUser/generated-types.d.ts +8 -0
  155. package/dist/destinations/launchpad/identifyUser/generated-types.js +3 -0
  156. package/dist/destinations/launchpad/identifyUser/generated-types.js.map +1 -0
  157. package/dist/destinations/launchpad/identifyUser/index.d.ts +5 -0
  158. package/dist/destinations/launchpad/identifyUser/index.js +79 -0
  159. package/dist/destinations/launchpad/identifyUser/index.js.map +1 -0
  160. package/dist/destinations/launchpad/index.d.ts +4 -0
  161. package/dist/destinations/launchpad/index.js +96 -0
  162. package/dist/destinations/launchpad/index.js.map +1 -0
  163. package/dist/destinations/launchpad/launchpad-types.d.ts +28 -0
  164. package/dist/destinations/launchpad/launchpad-types.js +3 -0
  165. package/dist/destinations/launchpad/launchpad-types.js.map +1 -0
  166. package/dist/destinations/launchpad/trackEvent/generated-types.d.ts +18 -0
  167. package/dist/destinations/launchpad/trackEvent/generated-types.js +3 -0
  168. package/dist/destinations/launchpad/trackEvent/generated-types.js.map +1 -0
  169. package/dist/destinations/launchpad/trackEvent/index.d.ts +5 -0
  170. package/dist/destinations/launchpad/trackEvent/index.js +62 -0
  171. package/dist/destinations/launchpad/trackEvent/index.js.map +1 -0
  172. package/dist/destinations/launchpad/trackEvent/launchpad-properties.d.ts +2 -0
  173. package/dist/destinations/launchpad/trackEvent/launchpad-properties.js +87 -0
  174. package/dist/destinations/launchpad/trackEvent/launchpad-properties.js.map +1 -0
  175. package/dist/destinations/launchpad/utils.d.ts +6 -0
  176. package/dist/destinations/launchpad/utils.js +20 -0
  177. package/dist/destinations/launchpad/utils.js.map +1 -0
  178. package/dist/destinations/livelike-cloud/generated-types.d.ts +4 -0
  179. package/dist/destinations/livelike-cloud/generated-types.js +3 -0
  180. package/dist/destinations/livelike-cloud/generated-types.js.map +1 -0
  181. package/dist/destinations/livelike-cloud/index.d.ts +4 -0
  182. package/dist/destinations/livelike-cloud/index.js +84 -0
  183. package/dist/destinations/livelike-cloud/index.js.map +1 -0
  184. package/dist/destinations/livelike-cloud/properties.d.ts +1 -0
  185. package/dist/destinations/livelike-cloud/properties.js +5 -0
  186. package/dist/destinations/livelike-cloud/properties.js.map +1 -0
  187. package/dist/destinations/livelike-cloud/trackEvent/generated-types.d.ts +11 -0
  188. package/dist/destinations/livelike-cloud/trackEvent/generated-types.js +3 -0
  189. package/dist/destinations/livelike-cloud/trackEvent/generated-types.js.map +1 -0
  190. package/dist/destinations/livelike-cloud/trackEvent/index.d.ts +5 -0
  191. package/dist/destinations/livelike-cloud/trackEvent/index.js +101 -0
  192. package/dist/destinations/livelike-cloud/trackEvent/index.js.map +1 -0
  193. package/dist/destinations/pinterest-conversions/generated-types.d.ts +4 -0
  194. package/dist/destinations/pinterest-conversions/generated-types.js +3 -0
  195. package/dist/destinations/pinterest-conversions/generated-types.js.map +1 -0
  196. package/dist/destinations/pinterest-conversions/index.d.ts +4 -0
  197. package/dist/destinations/pinterest-conversions/index.js +29 -0
  198. package/dist/destinations/pinterest-conversions/index.js.map +1 -0
  199. package/dist/destinations/twilio-studio/generated-types.d.ts +6 -0
  200. package/dist/destinations/twilio-studio/generated-types.js +3 -0
  201. package/dist/destinations/twilio-studio/generated-types.js.map +1 -0
  202. package/dist/destinations/twilio-studio/index.d.ts +4 -0
  203. package/dist/destinations/twilio-studio/index.js +55 -0
  204. package/dist/destinations/twilio-studio/index.js.map +1 -0
  205. package/dist/destinations/twilio-studio/triggerStudioFlow/generated-types.d.ts +8 -0
  206. package/dist/destinations/twilio-studio/triggerStudioFlow/generated-types.js +3 -0
  207. package/dist/destinations/twilio-studio/triggerStudioFlow/generated-types.js.map +1 -0
  208. package/dist/destinations/twilio-studio/triggerStudioFlow/index.d.ts +5 -0
  209. package/dist/destinations/twilio-studio/triggerStudioFlow/index.js +84 -0
  210. package/dist/destinations/twilio-studio/triggerStudioFlow/index.js.map +1 -0
  211. package/dist/destinations/twilio-studio/utils.d.ts +29 -0
  212. package/dist/destinations/twilio-studio/utils.js +43 -0
  213. package/dist/destinations/twilio-studio/utils.js.map +1 -0
  214. package/dist/destinations/vwo/identifyUser/index.js +6 -6
  215. package/dist/destinations/vwo/identifyUser/index.js.map +1 -1
  216. package/dist/destinations/vwo/index.js +1 -1
  217. package/dist/destinations/vwo/index.js.map +1 -1
  218. package/dist/destinations/vwo/pageVisit/index.js +6 -6
  219. package/dist/destinations/vwo/pageVisit/index.js.map +1 -1
  220. package/dist/destinations/vwo/trackEvent/index.js +7 -7
  221. package/dist/destinations/vwo/trackEvent/index.js.map +1 -1
  222. package/dist/destinations/vwo/utility.js +2 -2
  223. package/package.json +4 -4
@@ -0,0 +1,4 @@
1
+ import type { DestinationDefinition } from '@segment/actions-core';
2
+ import type { Settings } from './generated-types';
3
+ declare const destination: DestinationDefinition<Settings>;
4
+ export default destination;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const destination = {
4
+ name: 'Pinterest Conversions API',
5
+ slug: 'actions-pinterest-conversions-api',
6
+ mode: 'cloud',
7
+ authentication: {
8
+ scheme: 'custom',
9
+ fields: {
10
+ ad_account_id: {
11
+ label: 'Ad Account ID',
12
+ description: 'Unique identifier of an ad account. This can be found in the Pinterest UI by following the steps mentioned [here](https://developers.pinterest.com/docs/conversions/conversion-management/#Finding%20your%20%2Cad_account_id).',
13
+ type: 'string',
14
+ required: true
15
+ },
16
+ conversion_token: {
17
+ label: 'Conversion Token',
18
+ description: 'The conversion token for your Pinterest account. This can be found in the Pinterest UI by following the steps mentioned [here](https://developers.pinterest.com/docs/conversions/conversion-management/#Authenticating%20for%20the%20send%20conversion%20events%20endpoint).',
19
+ type: 'password',
20
+ required: true
21
+ }
22
+ },
23
+ testAuthentication: (_request) => {
24
+ }
25
+ },
26
+ actions: {}
27
+ };
28
+ exports.default = destination;
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/pinterest-conversions/index.ts"],"names":[],"mappings":";;AAGA,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,2BAA2B;IACjC,IAAI,EAAE,mCAAmC;IACzC,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,aAAa,EAAE;gBACb,KAAK,EAAE,eAAe;gBACtB,WAAW,EACT,gOAAgO;gBAClO,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,gBAAgB,EAAE;gBAChB,KAAK,EAAE,kBAAkB;gBACzB,WAAW,EACT,8QAA8Q;gBAChR,IAAI,EAAE,UAAU;gBAChB,QAAQ,EAAE,IAAI;aACf;SACF;QACD,kBAAkB,EAAE,CAAC,QAAQ,EAAE,EAAE;QAIjC,CAAC;KACF;IAED,OAAO,EAAE,EAAE;CACZ,CAAA;AAED,kBAAe,WAAW,CAAA"}
@@ -0,0 +1,6 @@
1
+ export interface Settings {
2
+ accountSid: string;
3
+ authToken: string;
4
+ spaceId: string;
5
+ profileApiAccessToken: string;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=generated-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/destinations/twilio-studio/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type { DestinationDefinition } from '@segment/actions-core';
2
+ import type { Settings } from './generated-types';
3
+ declare const destination: DestinationDefinition<Settings>;
4
+ export default destination;
@@ -0,0 +1,55 @@
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 triggerStudioFlow_1 = __importDefault(require("./triggerStudioFlow"));
7
+ const destination = {
8
+ name: 'Twilio Studio',
9
+ slug: 'actions-twilio-studio',
10
+ mode: 'cloud',
11
+ authentication: {
12
+ scheme: 'basic',
13
+ fields: {
14
+ accountSid: {
15
+ label: 'Account SID',
16
+ description: 'Your Twilio Account SID, starting with AC. You can find this in the Account Info section of your dashboard in the [Twilio Console](https://www.twilio.com/console).',
17
+ type: 'string',
18
+ required: true
19
+ },
20
+ authToken: {
21
+ label: 'Auth Token',
22
+ description: 'Your Twilio Auth Token. You can find this in the Account Info section of your dashboard in the [Twilio Console](https://www.twilio.com/console).',
23
+ type: 'password',
24
+ required: true
25
+ },
26
+ spaceId: {
27
+ label: 'Space ID',
28
+ description: 'Your Segment Space ID.',
29
+ type: 'string',
30
+ required: true
31
+ },
32
+ profileApiAccessToken: {
33
+ label: 'Profile API Access Token',
34
+ description: 'Your Segment Profile API Access Token.',
35
+ type: 'password',
36
+ required: true
37
+ }
38
+ },
39
+ testAuthentication: (request) => {
40
+ return request('https://api.twilio.com/2010-04-01/Accounts');
41
+ }
42
+ },
43
+ extendRequest({ settings }) {
44
+ return {
45
+ headers: {
46
+ authorization: `Basic ${Buffer.from(`${settings.accountSid}:${settings.authToken}`).toString('base64')}`
47
+ }
48
+ };
49
+ },
50
+ actions: {
51
+ triggerStudioFlow: triggerStudioFlow_1.default
52
+ }
53
+ };
54
+ exports.default = destination;
55
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/twilio-studio/index.ts"],"names":[],"mappings":";;;;;AAGA,4EAAmD;AAEnD,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,OAAO;QACf,MAAM,EAAE;YACN,UAAU,EAAE;gBACV,KAAK,EAAE,aAAa;gBACpB,WAAW,EACT,qKAAqK;gBACvK,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,SAAS,EAAE;gBACT,KAAK,EAAE,YAAY;gBACnB,WAAW,EACT,kJAAkJ;gBACpJ,IAAI,EAAE,UAAU;gBAChB,QAAQ,EAAE,IAAI;aACf;YACD,OAAO,EAAE;gBACP,KAAK,EAAE,UAAU;gBACjB,WAAW,EAAE,wBAAwB;gBACrC,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,qBAAqB,EAAE;gBACrB,KAAK,EAAE,0BAA0B;gBACjC,WAAW,EAAE,wCAAwC;gBACrD,IAAI,EAAE,UAAU;gBAChB,QAAQ,EAAE,IAAI;aACf;SACF;QACD,kBAAkB,EAAE,CAAC,OAAO,EAAE,EAAE;YAC9B,OAAO,OAAO,CAAC,4CAA4C,CAAC,CAAA;QAC9D,CAAC;KACF;IAED,aAAa,CAAC,EAAE,QAAQ,EAAE;QACxB,OAAO;YACL,OAAO,EAAE;gBACP,aAAa,EAAE,SAAS,MAAM,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,UAAU,IAAI,QAAQ,CAAC,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;aACzG;SACF,CAAA;IACH,CAAC;IAED,OAAO,EAAE;QACP,iBAAiB,EAAjB,2BAAiB;KAClB;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
@@ -0,0 +1,8 @@
1
+ export interface Payload {
2
+ flowSid: string;
3
+ from: string;
4
+ coolingOffPeriod?: number;
5
+ userId?: string;
6
+ anonymousId?: string;
7
+ eventType: string;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=generated-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/twilio-studio/triggerStudioFlow/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { ActionDefinition } from '@segment/actions-core';
2
+ import type { Settings } from '../generated-types';
3
+ import type { Payload } from './generated-types';
4
+ declare const action: ActionDefinition<Settings, Payload>;
5
+ export default action;
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const actions_core_1 = require("@segment/actions-core");
4
+ const utils_1 = require("../utils");
5
+ const action = {
6
+ title: 'Trigger Studio Flow',
7
+ description: 'Trigger a Flow in Twilio Studio to initiate an outbound call or message. The Flow will execute via the REST API trigger.',
8
+ fields: {
9
+ flowSid: {
10
+ label: 'Flow SID',
11
+ description: 'The Flow SID, starting with FW, for the Studio Flow to trigger.',
12
+ type: 'string',
13
+ required: true
14
+ },
15
+ from: {
16
+ label: 'From Phone Number',
17
+ description: 'The Twilio phone number to initiate calls or messages from during the Flow Execution. Use [E.164](https://www.twilio.com/docs/glossary/what-e164) format (+1xxxxxxxxxx).',
18
+ type: 'string',
19
+ required: true
20
+ },
21
+ coolingOffPeriod: {
22
+ label: 'Cooling-off Period (in seconds)',
23
+ description: 'The amount of time during which the Flow can only be triggered once per Flow SID - User ID combination. Default is 60 seconds.',
24
+ type: 'number',
25
+ default: 60
26
+ },
27
+ userId: {
28
+ label: 'User ID',
29
+ description: 'A Distinct User ID',
30
+ type: 'hidden',
31
+ default: { '@path': '$.userId' }
32
+ },
33
+ anonymousId: {
34
+ label: 'Anonymous ID',
35
+ description: 'A Distinct External ID',
36
+ type: 'hidden',
37
+ default: { '@path': '$.anonymousId' }
38
+ },
39
+ eventType: {
40
+ label: 'Event type',
41
+ type: 'hidden',
42
+ description: 'The type of the event being performed.',
43
+ required: true,
44
+ default: {
45
+ '@path': '$.type'
46
+ }
47
+ }
48
+ },
49
+ perform: async (request, { settings, payload, stateContext }) => {
50
+ if (payload.eventType !== 'identify') {
51
+ throw new actions_core_1.IntegrationError('Unable to trigger Studio Flow. Only Identify Events are allowed!', `Incompatible Event Type: ${payload.eventType}`, 400);
52
+ }
53
+ if (!payload.userId && !payload.anonymousId) {
54
+ throw new actions_core_1.IntegrationError('Unable to trigger Studio Flow. No User identifier found for this Segment profile!', `No userId found in the Segment Event`, 400);
55
+ }
56
+ if (stateContext &&
57
+ !utils_1.shouldSendToStudio(`${payload.flowSid}_${payload.userId || payload.anonymousId}`, stateContext, payload.coolingOffPeriod)) {
58
+ throw new actions_core_1.IntegrationError(`Unable to trigger Studio Flow. Only 1 request allowed per Flow SID - User ID combination in ${payload.coolingOffPeriod || utils_1.DEFAULT_COOLING_OFF_PERIOD} seconds`, 'Cooling off Period', 400);
59
+ }
60
+ const toAddress = await utils_1.getToAddressField(request, settings, payload);
61
+ if (!toAddress) {
62
+ throw new actions_core_1.IntegrationError('Unable to trigger Studio Flow. No Contact Address Found!', 'Trigger Studio Flow no contact address found failure', 400);
63
+ }
64
+ const url = `${utils_1.STUDIO_BASE_URL}/v2/Flows/${payload.flowSid}/Executions`;
65
+ const parametersMap = JSON.stringify({ source: 'studio_segment_destination' });
66
+ try {
67
+ await request(url, {
68
+ method: 'post',
69
+ body: new URLSearchParams({
70
+ From: payload.from,
71
+ To: toAddress,
72
+ Parameters: parametersMap
73
+ })
74
+ });
75
+ }
76
+ catch (err) {
77
+ const error = err;
78
+ const errData = error.response.data;
79
+ throw new actions_core_1.IntegrationError(`Unable to trigger Studio Flow. ${errData?.message}`, `Twilio Error Code: ${errData?.code}`, errData?.status);
80
+ }
81
+ }
82
+ };
83
+ exports.default = action;
84
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/twilio-studio/triggerStudioFlow/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAG1E,oCAMiB;AAEjB,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EACT,0HAA0H;IAC5H,MAAM,EAAE;QACN,OAAO,EAAE;YACP,KAAK,EAAE,UAAU;YACjB,WAAW,EAAE,iEAAiE;YAC9E,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACf;QACD,IAAI,EAAE;YACJ,KAAK,EAAE,mBAAmB;YAC1B,WAAW,EACT,0KAA0K;YAC5K,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACf;QACD,gBAAgB,EAAE;YAChB,KAAK,EAAE,iCAAiC;YACxC,WAAW,EACT,gIAAgI;YAClI,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;SACZ;QACD,MAAM,EAAE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AAA;QACrE,IAAI,CAAC,SAAS,EAAE;YACd,MAAM,IAAI,+BAAgB,CACxB,0DAA0D,EAC1D,sDAAsD,EACtD,GAAG,CACJ,CAAA;SACF;QACD,MAAM,GAAG,GAAG,GAAG,uBAAe,aAAa,OAAO,CAAC,OAAO,aAAa,CAAA;QACvE,MAAM,aAAa,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,4BAA4B,EAAE,CAAC,CAAA;QAC9E,IAAI;YACF,MAAM,OAAO,CAAC,GAAG,EAAE;gBACjB,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,IAAI,eAAe,CAAC;oBACxB,IAAI,EAAE,OAAO,CAAC,IAAI;oBAClB,EAAE,EAAE,SAAS;oBACb,UAAU,EAAE,aAAa;iBAC1B,CAAC;aACH,CAAC,CAAA;SACH;QAAC,OAAO,GAAG,EAAE;YACZ,MAAM,KAAK,GAAG,GAAkB,CAAA;YAChC,MAAM,OAAO,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAA;YACnC,MAAM,IAAI,+BAAgB,CACxB,kCAAkC,OAAO,EAAE,OAAO,EAAE,EACpD,sBAAsB,OAAO,EAAE,IAAI,EAAE,EACrC,OAAO,EAAE,MAAM,CAChB,CAAA;SACF;IACH,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,29 @@
1
+ import { RequestOptions, HTTPError } from '@segment/actions-core';
2
+ import { StateContext } from '@segment/actions-core/src/destination-kit';
3
+ import type { Settings } from './generated-types';
4
+ import type { Payload } from './triggerStudioFlow/generated-types';
5
+ interface ExternalId {
6
+ id: string;
7
+ type: string;
8
+ source_id: string;
9
+ collection: string;
10
+ created_at: string;
11
+ encoding: string;
12
+ }
13
+ declare type RequestFn = (url: string, options?: RequestOptions) => Promise<Response>;
14
+ export interface TwilioError extends HTTPError {
15
+ response: Response & {
16
+ data: {
17
+ status: number;
18
+ message: string;
19
+ code: string;
20
+ };
21
+ };
22
+ }
23
+ export declare const STUDIO_BASE_URL = "https://studio.twilio.com";
24
+ export declare const PROFILE_API_BASE_URL = "https://profiles.segment.com";
25
+ export declare const DEFAULT_COOLING_OFF_PERIOD = 60;
26
+ export declare const getToAddressField: (request: RequestFn, settings: Settings, payload: Payload) => Promise<string | false>;
27
+ export declare const fetchProfileExternalIds: (request: RequestFn, settings: Settings, userId: string, anonymousId: string) => Promise<ExternalId[]>;
28
+ export declare const shouldSendToStudio: (cacheKey: string, stateContext: StateContext, coolingOffPeriod: number) => boolean;
29
+ export {};
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.shouldSendToStudio = exports.fetchProfileExternalIds = exports.getToAddressField = exports.DEFAULT_COOLING_OFF_PERIOD = exports.PROFILE_API_BASE_URL = exports.STUDIO_BASE_URL = void 0;
4
+ const actions_core_1 = require("@segment/actions-core");
5
+ exports.STUDIO_BASE_URL = 'https://studio.twilio.com';
6
+ exports.PROFILE_API_BASE_URL = 'https://profiles.segment.com';
7
+ exports.DEFAULT_COOLING_OFF_PERIOD = 60;
8
+ const getToAddressField = async (request, settings, payload) => {
9
+ const externalIds = await exports.fetchProfileExternalIds(request, settings, payload.userId, payload.anonymousId);
10
+ if (externalIds.length <= 0) {
11
+ return false;
12
+ }
13
+ const latestId = externalIds.reduce((acc, current) => {
14
+ return new Date(acc.created_at) > new Date(current.created_at) ? acc : current;
15
+ });
16
+ return latestId?.id;
17
+ };
18
+ exports.getToAddressField = getToAddressField;
19
+ const fetchProfileExternalIds = async (request, settings, userId, anonymousId) => {
20
+ try {
21
+ const identifier = userId ? `user_id:${userId}` : `anonymous_id:${anonymousId}`;
22
+ const response = await request(`${exports.PROFILE_API_BASE_URL}/v1/spaces/${settings.spaceId}/collections/users/profiles/${identifier}/external_ids?include=phone`, {
23
+ headers: {
24
+ authorization: `Basic ${Buffer.from(settings.profileApiAccessToken + ':').toString('base64')}`,
25
+ 'content-type': 'application/json'
26
+ }
27
+ });
28
+ const body = await response.json();
29
+ return body.data;
30
+ }
31
+ catch (error) {
32
+ throw new actions_core_1.IntegrationError('Unable to trigger Studio Flow. Fetching phone external Id failed.', 'Profile fetch API failure', 500);
33
+ }
34
+ };
35
+ exports.fetchProfileExternalIds = fetchProfileExternalIds;
36
+ const shouldSendToStudio = (cacheKey, stateContext, coolingOffPeriod) => {
37
+ if (stateContext?.getRequestContext?.(cacheKey))
38
+ return false;
39
+ stateContext?.setResponseContext?.(cacheKey, cacheKey, { second: coolingOffPeriod || exports.DEFAULT_COOLING_OFF_PERIOD });
40
+ return true;
41
+ };
42
+ exports.shouldSendToStudio = shouldSendToStudio;
43
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/destinations/twilio-studio/utils.ts"],"names":[],"mappings":";;;AAAA,wDAAmF;AAwBtE,QAAA,eAAe,GAAG,2BAA2B,CAAA;AAC7C,QAAA,oBAAoB,GAAG,8BAA8B,CAAA;AAGrD,QAAA,0BAA0B,GAAG,EAAE,CAAA;AAGrC,MAAM,iBAAiB,GAAG,KAAK,EAAE,OAAkB,EAAE,QAAkB,EAAE,OAAgB,EAAE,EAAE;IAClG,MAAM,WAAW,GAAG,MAAM,+BAAuB,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,MAAO,EAAE,OAAO,CAAC,WAAY,CAAC,CAAA;IAC3G,IAAI,WAAW,CAAC,MAAM,IAAI,CAAC,EAAE;QAC3B,OAAO,KAAK,CAAA;KACb;IACD,MAAM,QAAQ,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE;QACnD,OAAO,IAAI,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAA;IAChF,CAAC,CAAC,CAAA;IACF,OAAO,QA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 Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const utility_1 = require("../utility");
4
4
  const action = {
5
5
  title: 'Identify User',
6
- description: "Maps segment's visitor traits to VWO visitors' attributes",
6
+ description: "Maps Segment's visitor traits to the visitor attributes in VWO",
7
7
  defaultSubscription: 'type = "identify"',
8
8
  fields: {
9
9
  attributes: {
10
- description: 'A JSON object containing additional attributes that will be associated with the event.',
10
+ description: `Visitor's attributes to be mapped`,
11
11
  label: 'attributes',
12
12
  required: true,
13
13
  type: 'object',
@@ -25,7 +25,7 @@ const action = {
25
25
  }
26
26
  },
27
27
  page: {
28
- description: 'Page Context',
28
+ description: 'Contains context information regarding a webpage',
29
29
  label: 'Page',
30
30
  required: true,
31
31
  type: 'object',
@@ -34,7 +34,7 @@ const action = {
34
34
  }
35
35
  },
36
36
  ip: {
37
- description: 'IP Address',
37
+ description: 'IP address of the user',
38
38
  label: 'IP Address',
39
39
  required: false,
40
40
  type: 'string',
@@ -43,7 +43,7 @@ const action = {
43
43
  }
44
44
  },
45
45
  userAgent: {
46
- description: 'User Agent',
46
+ description: 'User-Agent of the user',
47
47
  label: 'User Agent',
48
48
  required: true,
49
49
  type: 'string',
@@ -52,7 +52,7 @@ const action = {
52
52
  }
53
53
  },
54
54
  timestamp: {
55
- description: 'Timestamp',
55
+ description: 'Timestamp on the event',
56
56
  label: 'Timestamp',
57
57
  required: true,
58
58
  type: 'string',
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/vwo/identifyUser/index.ts"],"names":[],"mappings":";;AAGA,wCAA4D;AAE5D,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,2DAA2D;IACxE,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,UAAU,EAAE;YACV,WAAW,EAAE,wFAAwF;YACrG,KAAK,EAAE,YAAY;YACnB,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,QAAQ;YACd,OAAO,EA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,SAAS,EAAE,OAAO,EAAE,IAAI,CAAC,CAAA;QAC9E,iBAAiB,CAAC,CAAC,CAAC,OAAO,GAAG,iBAAiB,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,OAAO,CAAA;QACnF,MAAM,QAAQ,GAAG,sDAAsD,SAAS,MAAM,QAAQ,CAAC,YAAY,EAAE,CAAA;QAC7G,OAAO,OAAO,CAAC,QAAQ,EAAE;YACvB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,iBAAiB;YACvB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/vwo/identifyUser/index.ts"],"names":[],"mappings":";;AAGA,wCAA4D;AAE5D,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,gEAAgE;IAC7E,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,UAAU,EAAE;YACV,WAAW,EAAE,mCAAmC;YAChD,KAAK,EAAE,YAAY;YACnB,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,OAAO,EAAE;YACP,WAAW,EAAE,UAAU;YACvB,KAAK,EAAE,UAAU;YACjB,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,mBAAmB;aAC7B;SACF;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,kDAAkD;YAC/D,KAAK,EAAE,MAAM;YACb,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,gBAAgB;aAC1B;SACF;QACD,EAAE,EAAE;YACF,WAAW,EAAE,wBAAwB;YACrC,KAAK,EAAE,YAAY;YACnB,QAAQ,EAAE,KAA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
36
  fields: {
37
37
  vwoAccountId: {
38
- label: 'Your VWO account ID, used for fetching your VWO async smart code. ',
38
+ label: 'Your VWO account ID',
39
39
  description: 'Enter your VWO Account ID',
40
40
  type: 'number',
41
41
  required: true
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/vwo/index.ts"],"names":[],"mappings":";;;;;AAEA,wDAAqD;AAErD,8DAAqC;AACrC,kEAAyC;AACzC,4DAAmC;AAEnC,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,OAAO;IACb,OAAO,EAAE;QACP;YACE,IAAI,EAAE,aAAa;YACnB,SAAS,EAAE,gBAAgB;YAC3B,aAAa,EAAE,YAAY;YAC3B,OAAO,EAAE,4BAAa,CAAC,oBAAU,CAAC,MAAM,CAAC;SAC1C;QACD;YACE,IAAI,EAAE,eAAe;YACrB,SAAS,EAAE,mBAAmB;YAC9B,aAAa,EAAE,cAAc;YAC7B,OAAO,EAAE,4BAAa,CAAC,sBAAY,CAAC,MAAM,CAAC;SAC5C;QACD;YACE,IAAI,EAAE,YAAY;YAClB,SAAS,EAAE,eAAe;YAC1B,aAAa,EAAE,WAAW;YAC1B,OAAO,EAAE,4BAAa,CAAC,mBAAS,CAAC,MAAM,CAAC;SACzC;KACF;IACD,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,YAAY,EAAE;gBACZ,KAAK,EAAE,oEAAoE;gBAC3E,WAAW,EAAE,2BAA2B;gBACxC,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;SACF;QACD,kBAAkB,EAAE,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;YAC7C,IAAI,QAAQ,CAAC,YAAY,GAAG,CAAC,IAAI,QAAQ,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,MAAM,GAAG,CAAC,EAAE;gBA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G,CAAC,IAAI,QAAQ,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,MAAM,GAAG,CAAC,EAAE;gBAC5E,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAA;aAClE;iBAAM;gBACL,OAAO,IAAI,CAAA;aACZ;QACH,CAAC;KACF;IAED,OAAO,EAAE;QACP,UAAU,EAAV,oBAAU;QACV,YAAY,EAAZ,sBAAY;QACZ,SAAS,EAAT,mBAAS;KACV;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const utility_1 = require("../utility");
4
4
  const action = {
5
5
  title: 'Page Visit',
6
- description: 'Sends page visit information to VWO',
6
+ description: `Sends Segment's page event to VWO`,
7
7
  fields: {
8
8
  url: {
9
- description: 'The URL of the page',
9
+ description: 'URL of the webpage',
10
10
  label: 'Page URL',
11
11
  required: true,
12
12
  type: 'string',
@@ -24,7 +24,7 @@ const action = {
24
24
  }
25
25
  },
26
26
  page: {
27
- description: 'Page Context',
27
+ description: 'Contains context information regarding a webpage',
28
28
  label: 'Page',
29
29
  required: true,
30
30
  type: 'object',
@@ -33,7 +33,7 @@ const action = {
33
33
  }
34
34
  },
35
35
  ip: {
36
- description: 'IP Address',
36
+ description: 'IP address of the user',
37
37
  label: 'IP Address',
38
38
  required: false,
39
39
  type: 'string',
@@ -42,7 +42,7 @@ const action = {
42
42
  }
43
43
  },
44
44
  userAgent: {
45
- description: 'User Agent',
45
+ description: 'User-Agent of the user',
46
46
  label: 'User Agent',
47
47
  required: true,
48
48
  type: 'string',
@@ -51,7 +51,7 @@ const action = {
51
51
  }
52
52
  },
53
53
  timestamp: {
54
- description: 'Timestamp',
54
+ description: 'Timestamp on the event',
55
55
  label: 'Timestamp',
56
56
  required: true,
57
57
  type: 'string',
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/vwo/pageVisit/index.ts"],"names":[],"mappings":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KAAK,EAAE,YAAY;YACnB,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,cAAc;aACxB;SACF;QACD,SAAS,EAAE;YACT,WAAW,EAAE,wBAAwB;YACrC,KAAK,EAAE,YAAY;YACnB,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,qBAAqB;aAC/B;SACF;QACD,SAAS,EAAE;YACT,WAAW,EAAE,wBAAwB;YACrC,KAAK,EAAE,WAAW;YAClB,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,aAAa;aACvB;SACF;KACF;IACD,mBAAmB,EAAE,eAAe;IACpC,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QAC1C,MAAM,SAAS,GAAG,cAAc,CAAA;QAChC,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,GAAG,uBAAa,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,CAAC,CAAA;QAC/E,iBAAiB,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,GAAG,CAAA;QACpD,MAAM,QAAQ,GAAG,sDAAsD,SAAS,MAAM,QAAQ,CAAC,YAAY,EAAE,CAAA;QAC7G,OAAO,OAAO,CAAC,QAAQ,EAAE;YACvB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,iBAAiB;YACvB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const utility_1 = require("../utility");
4
4
  const action = {
5
5
  title: 'Track Event',
6
- description: 'Sends track events to VWO',
6
+ description: `Sends Segment's track event to VWO`,
7
7
  defaultSubscription: 'type = "track"',
8
8
  fields: {
9
9
  name: {
10
- description: 'The name of the event.',
10
+ description: 'Name of the event',
11
11
  label: 'Name',
12
12
  required: true,
13
13
  type: 'string',
@@ -16,7 +16,7 @@ const action = {
16
16
  }
17
17
  },
18
18
  properties: {
19
- description: 'A JSON object containing additional properties that will be associated with the event.',
19
+ description: 'JSON object containing additional properties that will be associated with the event.',
20
20
  label: 'Properties',
21
21
  required: false,
22
22
  type: 'object',
@@ -34,7 +34,7 @@ const action = {
34
34
  }
35
35
  },
36
36
  page: {
37
- description: 'Page Context',
37
+ description: 'Contains context information regarding a webpage',
38
38
  label: 'Page',
39
39
  required: true,
40
40
  type: 'object',
@@ -43,7 +43,7 @@ const action = {
43
43
  }
44
44
  },
45
45
  ip: {
46
- description: 'IP Address',
46
+ description: 'IP address of the user',
47
47
  label: 'IP Address',
48
48
  required: false,
49
49
  type: 'string',
@@ -52,7 +52,7 @@ const action = {
52
52
  }
53
53
  },
54
54
  userAgent: {
55
- description: 'User Agent',
55
+ description: 'User-Agent of the user',
56
56
  label: 'User Agent',
57
57
  required: true,
58
58
  type: 'string',
@@ -61,7 +61,7 @@ const action = {
61
61
  }
62
62
  },
63
63
  timestamp: {
64
- description: 'Timestamp',
64
+ description: 'Timestamp on the event',
65
65
  label: 'Timestamp',
66
66
  required: true,
67
67
  type: 'string',
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/vwo/trackEvent/index.ts"],"names":[],"mappings":";;AAGA,wCAA6D;AAE7D,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,2BAA2B;IACxC,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,IAAI,EAAE;YACJ,WAAW,EAAE,wBAAwB;YACrC,KAAK,EAAE,MAAM;YACb,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,SAAS;aACnB;SACF;QACD,UAAU,EAA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E,IAAI,EAAE,IAAI,CAAC,CAAA;QAC7F,iBAAiB,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,IAAI,CAAA;QAChE,MAAM,QAAQ,GAAG,sDAAsD,kBAAkB,MAAM,QAAQ,CAAC,YAAY,EAAE,CAAA;QACtH,OAAO,OAAO,CAAC,QAAQ,EAAE;YACvB,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI,EAAE,iBAAiB;SACxB,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/vwo/trackEvent/index.ts"],"names":[],"mappings":";;AAGA,wCAA6D;AAE7D,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,oCAAoC;IACjD,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,IAAI,EAAE;YACJ,WAAW,EAAE,mBAAmB;YAChC,KAAK,EAAE,MAAM;YACb,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,SAAS;aACnB;SACF;QACD,UAAU,EAAE;YACV,WAAW,EAAE,sFAAsF;YACnG,KAAK,EAAE,YAAY;YACnB,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,cAAc;aACxB;SACF;QACD,OAAO,EAAE;YACP,WAAW,EAAE,UAAU;YACvB,KAAK,EAAE,UAAU;YACjB,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,uBAAuB;aACjC;SACF;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,kDAAkD;YAC/D,KAAK,EAAE,MAAM;YACb,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,QAAQ;YAC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vent, isTrack = false) {
45
45
  }
46
46
  exports.formatPayload = formatPayload;
47
47
  function sanitiseEventName(name) {
48
- return 'segment_' + name;
48
+ return 'segment.' + name;
49
49
  }
50
50
  exports.sanitiseEventName = sanitiseEventName;
51
51
  function formatAttributes(attributes) {
52
52
  const formattedAttributes = {};
53
53
  for (const key in attributes) {
54
- formattedAttributes[`segment_${key}`] = attributes[key];
54
+ formattedAttributes[`segment.${key}`] = attributes[key];
55
55
  }
56
56
  return formattedAttributes;
57
57
  }
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.131.1-ga4-cloud.12+24db59d0",
4
+ "version": "3.131.1-gads-test.19+b9a15030",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/segmentio/action-destinations",
@@ -39,8 +39,8 @@
39
39
  "dependencies": {
40
40
  "@amplitude/ua-parser-js": "^0.7.25",
41
41
  "@segment/a1-notation": "^2.1.4",
42
- "@segment/actions-core": "^3.51.1-ga4-cloud.12+24db59d0",
43
- "@segment/actions-shared": "^1.33.1-ga4-cloud.12+24db59d0",
42
+ "@segment/actions-core": "^3.51.0",
43
+ "@segment/actions-shared": "^1.33.0",
44
44
  "@types/node": "^18.11.15",
45
45
  "cheerio": "^1.0.0-rc.10",
46
46
  "dayjs": "^1.10.7",
@@ -68,5 +68,5 @@
68
68
  "lcov"
69
69
  ]
70
70
  },
71
- "gitHead": "24db59d03642c872e7124e32828dcf450108f5b8"
71
+ "gitHead": "b9a15030dbb5cfd4742188c39041a504b19313a0"
72
72
  }