@segment/action-destinations 3.337.1-staging → 3.337.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 (189) hide show
  1. package/dist/destinations/blackbaud-raisers-edge-nxt/utils/index.d.ts +1 -1
  2. package/dist/destinations/braze/index.js.map +1 -1
  3. package/dist/destinations/braze/updateUserProfile/__snapshots__/snapshot.test.d.ts +1 -0
  4. package/dist/destinations/braze/updateUserProfile/__snapshots__/snapshot.test.js +184 -0
  5. package/dist/destinations/braze/updateUserProfile/__snapshots__/snapshot.test.js.map +1 -0
  6. package/dist/destinations/courier/generated-types.d.ts +4 -0
  7. package/dist/destinations/courier/generated-types.js +3 -0
  8. package/dist/destinations/courier/generated-types.js.map +1 -0
  9. package/dist/destinations/courier/index.d.ts +4 -0
  10. package/dist/destinations/courier/index.js +44 -0
  11. package/dist/destinations/courier/index.js.map +1 -0
  12. package/dist/destinations/courier/postToCourier/generated-types.d.ts +5 -0
  13. package/dist/destinations/courier/postToCourier/generated-types.js +3 -0
  14. package/dist/destinations/courier/postToCourier/generated-types.js.map +1 -0
  15. package/dist/destinations/courier/postToCourier/index.d.ts +5 -0
  16. package/dist/destinations/courier/postToCourier/index.js +35 -0
  17. package/dist/destinations/courier/postToCourier/index.js.map +1 -0
  18. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.d.ts +2 -5
  19. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js +18 -98
  20. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js.map +1 -1
  21. package/dist/destinations/facebook-conversions-api/constants.d.ts +1 -1
  22. package/dist/destinations/facebook-conversions-api/constants.js +1 -1
  23. package/dist/destinations/index.js +5 -0
  24. package/dist/destinations/index.js.map +1 -1
  25. package/dist/destinations/kameleoon/index.js +1 -1
  26. package/dist/destinations/kameleoon/index.js.map +1 -1
  27. package/dist/destinations/klaviyo/properties.js +1 -1
  28. package/dist/destinations/klaviyo/properties.js.map +1 -1
  29. package/dist/destinations/klaviyo/removeProfileToList/generated-types.d.ts +4 -0
  30. package/dist/destinations/klaviyo/removeProfileToList/generated-types.js +3 -0
  31. package/dist/destinations/klaviyo/removeProfileToList/generated-types.js.map +1 -0
  32. package/dist/destinations/klaviyo/removeProfileToList/index.d.ts +5 -0
  33. package/dist/destinations/klaviyo/removeProfileToList/index.js +43 -0
  34. package/dist/destinations/klaviyo/removeProfileToList/index.js.map +1 -0
  35. package/dist/destinations/movable-ink/categoryView/generated-types.d.ts +22 -0
  36. package/dist/destinations/movable-ink/categoryView/generated-types.js +3 -0
  37. package/dist/destinations/movable-ink/categoryView/generated-types.js.map +1 -0
  38. package/dist/destinations/movable-ink/categoryView/index.d.ts +5 -0
  39. package/dist/destinations/movable-ink/categoryView/index.js +43 -0
  40. package/dist/destinations/movable-ink/categoryView/index.js.map +1 -0
  41. package/dist/destinations/movable-ink/conversion/generated-types.d.ts +20 -0
  42. package/dist/destinations/movable-ink/conversion/generated-types.js +3 -0
  43. package/dist/destinations/movable-ink/conversion/generated-types.js.map +1 -0
  44. package/dist/destinations/movable-ink/conversion/index.d.ts +5 -0
  45. package/dist/destinations/movable-ink/conversion/index.js +45 -0
  46. package/dist/destinations/movable-ink/conversion/index.js.map +1 -0
  47. package/dist/destinations/movable-ink/fields.d.ts +21 -0
  48. package/dist/destinations/movable-ink/fields.js +236 -0
  49. package/dist/destinations/movable-ink/fields.js.map +1 -0
  50. package/dist/destinations/movable-ink/identify/generated-types.d.ts +7 -0
  51. package/dist/destinations/movable-ink/identify/generated-types.js +3 -0
  52. package/dist/destinations/movable-ink/identify/generated-types.js.map +1 -0
  53. package/dist/destinations/movable-ink/identify/index.d.ts +5 -0
  54. package/dist/destinations/movable-ink/identify/index.js +32 -0
  55. package/dist/destinations/movable-ink/identify/index.js.map +1 -0
  56. package/dist/destinations/movable-ink/productAdded/generated-types.d.ts +22 -0
  57. package/dist/destinations/movable-ink/productAdded/generated-types.js +3 -0
  58. package/dist/destinations/movable-ink/productAdded/generated-types.js.map +1 -0
  59. package/dist/destinations/movable-ink/productAdded/index.d.ts +5 -0
  60. package/dist/destinations/movable-ink/productAdded/index.js +43 -0
  61. package/dist/destinations/movable-ink/productAdded/index.js.map +1 -0
  62. package/dist/destinations/movable-ink/productViewed/generated-types.d.ts +21 -0
  63. package/dist/destinations/movable-ink/productViewed/generated-types.js +3 -0
  64. package/dist/destinations/movable-ink/productViewed/generated-types.js.map +1 -0
  65. package/dist/destinations/movable-ink/productViewed/index.d.ts +5 -0
  66. package/dist/destinations/movable-ink/productViewed/index.js +43 -0
  67. package/dist/destinations/movable-ink/productViewed/index.js.map +1 -0
  68. package/dist/destinations/movable-ink/search/generated-types.d.ts +12 -0
  69. package/dist/destinations/movable-ink/search/generated-types.js +3 -0
  70. package/dist/destinations/movable-ink/search/generated-types.js.map +1 -0
  71. package/dist/destinations/movable-ink/search/index.d.ts +5 -0
  72. package/dist/destinations/movable-ink/search/index.js +43 -0
  73. package/dist/destinations/movable-ink/search/index.js.map +1 -0
  74. package/dist/destinations/movable-ink/sendCustomEvent/generated-types.d.ts +25 -0
  75. package/dist/destinations/movable-ink/sendCustomEvent/generated-types.js +3 -0
  76. package/dist/destinations/movable-ink/sendCustomEvent/generated-types.js.map +1 -0
  77. package/dist/destinations/movable-ink/sendCustomEvent/index.d.ts +5 -0
  78. package/dist/destinations/movable-ink/sendCustomEvent/index.js +48 -0
  79. package/dist/destinations/movable-ink/sendCustomEvent/index.js.map +1 -0
  80. package/dist/destinations/schematic/generated-types.d.ts +3 -0
  81. package/dist/destinations/schematic/generated-types.js +3 -0
  82. package/dist/destinations/schematic/generated-types.js.map +1 -0
  83. package/dist/destinations/schematic/identifyUser/generated-types.d.ts +18 -0
  84. package/dist/destinations/schematic/identifyUser/generated-types.js +3 -0
  85. package/dist/destinations/schematic/identifyUser/generated-types.js.map +1 -0
  86. package/dist/destinations/schematic/identifyUser/index.d.ts +5 -0
  87. package/dist/destinations/schematic/identifyUser/index.js +114 -0
  88. package/dist/destinations/schematic/identifyUser/index.js.map +1 -0
  89. package/dist/destinations/schematic/index.d.ts +4 -0
  90. package/dist/destinations/schematic/index.js +58 -0
  91. package/dist/destinations/schematic/index.js.map +1 -0
  92. package/dist/destinations/schematic/trackEvent/generated-types.d.ts +13 -0
  93. package/dist/destinations/schematic/trackEvent/generated-types.js +3 -0
  94. package/dist/destinations/schematic/trackEvent/generated-types.js.map +1 -0
  95. package/dist/destinations/schematic/trackEvent/index.d.ts +5 -0
  96. package/dist/destinations/schematic/trackEvent/index.js +89 -0
  97. package/dist/destinations/schematic/trackEvent/index.js.map +1 -0
  98. package/dist/destinations/segment/sendGroup/index.js +36 -0
  99. package/dist/destinations/segment/sendGroup/index.js.map +1 -1
  100. package/dist/destinations/segment/sendIdentify/index.js +37 -1
  101. package/dist/destinations/segment/sendIdentify/index.js.map +1 -1
  102. package/dist/destinations/segment/sendPage/index.js +44 -0
  103. package/dist/destinations/segment/sendPage/index.js.map +1 -1
  104. package/dist/destinations/segment/sendScreen/index.js +37 -0
  105. package/dist/destinations/segment/sendScreen/index.js.map +1 -1
  106. package/dist/destinations/segment/sendTrack/index.js +41 -0
  107. package/dist/destinations/segment/sendTrack/index.js.map +1 -1
  108. package/dist/destinations/surveysparrow/createContact/generated-types.d.ts +10 -0
  109. package/dist/destinations/surveysparrow/createContact/generated-types.js +3 -0
  110. package/dist/destinations/surveysparrow/createContact/generated-types.js.map +1 -0
  111. package/dist/destinations/surveysparrow/createContact/index.d.ts +5 -0
  112. package/dist/destinations/surveysparrow/createContact/index.js +105 -0
  113. package/dist/destinations/surveysparrow/createContact/index.js.map +1 -0
  114. package/dist/destinations/surveysparrow/generated-types.d.ts +3 -0
  115. package/dist/destinations/surveysparrow/generated-types.js +3 -0
  116. package/dist/destinations/surveysparrow/generated-types.js.map +1 -0
  117. package/dist/destinations/surveysparrow/index.d.ts +4 -0
  118. package/dist/destinations/surveysparrow/index.js +40 -0
  119. package/dist/destinations/surveysparrow/index.js.map +1 -0
  120. package/dist/destinations/surveysparrow/triggerSurvey/generated-types.d.ts +10 -0
  121. package/dist/destinations/surveysparrow/triggerSurvey/generated-types.js +3 -0
  122. package/dist/destinations/surveysparrow/triggerSurvey/generated-types.js.map +1 -0
  123. package/dist/destinations/surveysparrow/triggerSurvey/index.d.ts +8 -0
  124. package/dist/destinations/surveysparrow/triggerSurvey/index.js +165 -0
  125. package/dist/destinations/surveysparrow/triggerSurvey/index.js.map +1 -0
  126. package/dist/destinations/tiktok-conversions-sandbox/common_fields.d.ts +2 -0
  127. package/dist/destinations/tiktok-conversions-sandbox/common_fields.js +244 -0
  128. package/dist/destinations/tiktok-conversions-sandbox/common_fields.js.map +1 -0
  129. package/dist/destinations/tiktok-conversions-sandbox/formatter.d.ts +3 -0
  130. package/dist/destinations/tiktok-conversions-sandbox/formatter.js +43 -0
  131. package/dist/destinations/tiktok-conversions-sandbox/formatter.js.map +1 -0
  132. package/dist/destinations/tiktok-conversions-sandbox/generated-types.d.ts +4 -0
  133. package/dist/destinations/tiktok-conversions-sandbox/generated-types.js +3 -0
  134. package/dist/destinations/tiktok-conversions-sandbox/generated-types.js.map +1 -0
  135. package/dist/destinations/tiktok-conversions-sandbox/index.d.ts +4 -0
  136. package/dist/destinations/tiktok-conversions-sandbox/index.js +247 -0
  137. package/dist/destinations/tiktok-conversions-sandbox/index.js.map +1 -0
  138. package/dist/destinations/tiktok-conversions-sandbox/reportWebEvent/generated-types.d.ts +33 -0
  139. package/dist/destinations/tiktok-conversions-sandbox/reportWebEvent/generated-types.js +3 -0
  140. package/dist/destinations/tiktok-conversions-sandbox/reportWebEvent/generated-types.js.map +1 -0
  141. package/dist/destinations/tiktok-conversions-sandbox/reportWebEvent/index.d.ts +5 -0
  142. package/dist/destinations/tiktok-conversions-sandbox/reportWebEvent/index.js +16 -0
  143. package/dist/destinations/tiktok-conversions-sandbox/reportWebEvent/index.js.map +1 -0
  144. package/dist/destinations/tiktok-conversions-sandbox/utils.d.ts +4 -0
  145. package/dist/destinations/tiktok-conversions-sandbox/utils.js +65 -0
  146. package/dist/destinations/tiktok-conversions-sandbox/utils.js.map +1 -0
  147. package/dist/destinations/tiktok-offline-conversions-sandbox/common_fields.d.ts +2 -0
  148. package/dist/destinations/tiktok-offline-conversions-sandbox/common_fields.js +244 -0
  149. package/dist/destinations/tiktok-offline-conversions-sandbox/common_fields.js.map +1 -0
  150. package/dist/destinations/tiktok-offline-conversions-sandbox/formatter.d.ts +3 -0
  151. package/dist/destinations/tiktok-offline-conversions-sandbox/formatter.js +43 -0
  152. package/dist/destinations/tiktok-offline-conversions-sandbox/formatter.js.map +1 -0
  153. package/dist/destinations/tiktok-offline-conversions-sandbox/generated-types.d.ts +4 -0
  154. package/dist/destinations/tiktok-offline-conversions-sandbox/generated-types.js +3 -0
  155. package/dist/destinations/tiktok-offline-conversions-sandbox/generated-types.js.map +1 -0
  156. package/dist/destinations/tiktok-offline-conversions-sandbox/index.d.ts +4 -0
  157. package/dist/destinations/tiktok-offline-conversions-sandbox/index.js +251 -0
  158. package/dist/destinations/tiktok-offline-conversions-sandbox/index.js.map +1 -0
  159. package/dist/destinations/tiktok-offline-conversions-sandbox/reportOfflineEvent/generated-types.d.ts +33 -0
  160. package/dist/destinations/tiktok-offline-conversions-sandbox/reportOfflineEvent/generated-types.js +3 -0
  161. package/dist/destinations/tiktok-offline-conversions-sandbox/reportOfflineEvent/generated-types.js.map +1 -0
  162. package/dist/destinations/tiktok-offline-conversions-sandbox/reportOfflineEvent/index.d.ts +5 -0
  163. package/dist/destinations/tiktok-offline-conversions-sandbox/reportOfflineEvent/index.js +16 -0
  164. package/dist/destinations/tiktok-offline-conversions-sandbox/reportOfflineEvent/index.js.map +1 -0
  165. package/dist/destinations/tiktok-offline-conversions-sandbox/trackNonPaymentOfflineConversion/generated-types.d.ts +33 -0
  166. package/dist/destinations/tiktok-offline-conversions-sandbox/trackNonPaymentOfflineConversion/generated-types.js +3 -0
  167. package/dist/destinations/tiktok-offline-conversions-sandbox/trackNonPaymentOfflineConversion/generated-types.js.map +1 -0
  168. package/dist/destinations/tiktok-offline-conversions-sandbox/trackNonPaymentOfflineConversion/index.d.ts +5 -0
  169. package/dist/destinations/tiktok-offline-conversions-sandbox/trackNonPaymentOfflineConversion/index.js +16 -0
  170. package/dist/destinations/tiktok-offline-conversions-sandbox/trackNonPaymentOfflineConversion/index.js.map +1 -0
  171. package/dist/destinations/tiktok-offline-conversions-sandbox/trackPaymentOfflineConversion/generated-types.d.ts +33 -0
  172. package/dist/destinations/tiktok-offline-conversions-sandbox/trackPaymentOfflineConversion/generated-types.js +3 -0
  173. package/dist/destinations/tiktok-offline-conversions-sandbox/trackPaymentOfflineConversion/generated-types.js.map +1 -0
  174. package/dist/destinations/tiktok-offline-conversions-sandbox/trackPaymentOfflineConversion/index.d.ts +5 -0
  175. package/dist/destinations/tiktok-offline-conversions-sandbox/trackPaymentOfflineConversion/index.js +16 -0
  176. package/dist/destinations/tiktok-offline-conversions-sandbox/trackPaymentOfflineConversion/index.js.map +1 -0
  177. package/dist/destinations/tiktok-offline-conversions-sandbox/utils.d.ts +8 -0
  178. package/dist/destinations/tiktok-offline-conversions-sandbox/utils.js +68 -0
  179. package/dist/destinations/tiktok-offline-conversions-sandbox/utils.js.map +1 -0
  180. package/dist/destinations/trackey/group.types.d.ts +11 -0
  181. package/dist/destinations/trackey/group.types.js +3 -0
  182. package/dist/destinations/trackey/group.types.js.map +1 -0
  183. package/dist/destinations/trackey/identify.types.d.ts +11 -0
  184. package/dist/destinations/trackey/identify.types.js +3 -0
  185. package/dist/destinations/trackey/identify.types.js.map +1 -0
  186. package/dist/destinations/trackey/track.types.d.ts +12 -0
  187. package/dist/destinations/trackey/track.types.js +3 -0
  188. package/dist/destinations/trackey/track.types.js.map +1 -0
  189. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/kameleoon/index.ts"],"names":[],"mappings":";;;;;AACA,wDAAqD;AAGrD,0DAAi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xC,IAAI,CAAC,GAAG,CAAC,CAAA;YAEZ,OAAO,OAAO,CAAC,qBAAQ,GAAG,aAAa,GAAG,MAAM,EAAE;gBAChD,MAAM,EAAE,KAAK;aACd,CAAC,CAAA;QACJ,CAAC;KACF;IACD,OAAO;IACP,OAAO,EAAE;QACP,QAAQ,EAAR,kBAAQ;KACT;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.batch_size = exports.enable_batching = exports.external_id = exports.email = exports.list_id = void 0;
4
4
  exports.list_id = {
5
5
  label: 'List Id',
6
- description: `'Insert the ID of the default list that you'd like to subscribe users to when you call .identify().'`,
6
+ description: `Insert the ID of the default list that you'd like to subscribe users to when you call .identify().`,
7
7
  type: 'string',
8
8
  default: {
9
9
  '@path': '$.context.personas.external_audience_id'
@@ -1 +1 @@
1
- {"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../src/destinations/klaviyo/properties.ts"],"names":[],"mappings":";;;AAEa,QAAA,OAAO,GAAe;IACjC,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,sGAAsG;IACnH,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE;QACP,OAAO,EAAE,yCAAyC;KACnD;IACD,aAAa,EAAE,IAAI;IACnB,QAAQ,EAAE,IAAI;CACf,CAAA;AAEY,QAAA,KAAK,GAAe;IAC/B,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,qCAAqC;IAClD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE;QACP,OAAO,EAAE,wBAAwB;KAClC;IACD,QAAQ,EAAE,IAAI;CACf,CAAA;AAEY,QAAA,WAAW,GAAe;IACrC,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,iJAAiJ;IAC9J,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,eAAe,GAAe;IACzC,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EAAE,0DAA0D;IACvE,OAAO,EAAE,IAAI;CACd,CAAA;AAEY,QAAA,UAAU,GAAe;IACpC,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,qFAAqF;IAClG,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,KAAK;IACf,aAAa,EAAE,IAAI;IACnB,OAAO,EAAE,KAAK;CACf,CAAA"}
1
+ {"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../src/destinations/klaviyo/properties.ts"],"names":[],"mappings":";;;AAEa,QAAA,OAAO,GAAe;IACjC,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,oGAAoG;IACjH,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE;QACP,OAAO,EAAE,yCAAyC;KACnD;IACD,aAAa,EAAE,IAAI;IACnB,QAAQ,EAAE,IAAI;CACf,CAAA;AAEY,QAAA,KAAK,GAAe;IAC/B,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,qCAAqC;IAClD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE;QACP,OAAO,EAAE,wBAAwB;KAClC;IACD,QAAQ,EAAE,IAAI;CACf,CAAA;AAEY,QAAA,WAAW,GAAe;IACrC,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,iJAAiJ;IAC9J,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,eAAe,GAAe;IACzC,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EAAE,0DAA0D;IACvE,OAAO,EAAE,IAAI;CACd,CAAA;AAEY,QAAA,UAAU,GAAe;IACpC,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,qFAAqF;IAClG,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,KAAK;IACf,aAAa,EAAE,IAAI;IACnB,OAAO,EAAE,KAAK;CACf,CAAA"}
@@ -0,0 +1,4 @@
1
+ export interface Payload {
2
+ email?: string;
3
+ list_id?: string;
4
+ }
@@ -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/klaviyo/removeProfileToList/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 { Payload } from './generated-types';
4
+ declare const action: ActionDefinition<Settings, Payload>;
5
+ export default action;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const actions_core_1 = require("@segment/actions-core");
4
+ const functions_1 = require("../functions");
5
+ const properties_1 = require("../properties");
6
+ const action = {
7
+ title: 'Remove profile from list',
8
+ description: 'Remove profile from list',
9
+ fields: {
10
+ email: { ...properties_1.email },
11
+ list_id: { ...properties_1.external_id }
12
+ },
13
+ perform: async (request, { payload }) => {
14
+ const { email, list_id } = payload;
15
+ if (!email || !list_id) {
16
+ throw new actions_core_1.IntegrationError("Insert the ID of the default list that you'd like to subscribe users", 'Missing required fields', 400);
17
+ }
18
+ try {
19
+ const profileData = await functions_1.getProfile(request, email);
20
+ const v = JSON.parse(profileData.content);
21
+ if (Object.keys(v).length !== 0) {
22
+ console.log(v);
23
+ const listData = {
24
+ data: [
25
+ {
26
+ type: 'profile',
27
+ id: v.data[0].id
28
+ }
29
+ ]
30
+ };
31
+ const list = await functions_1.executeProfileList(request, 'DELETE', listData, list_id);
32
+ return list;
33
+ }
34
+ return;
35
+ }
36
+ catch (error) {
37
+ console.log(error);
38
+ throw new Error('An error occurred while processing the request');
39
+ }
40
+ }
41
+ };
42
+ exports.default = action;
43
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/klaviyo/removeProfileToList/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAK1E,4CAA6D;AAC7D,8CAAkD;AA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}
@@ -0,0 +1,22 @@
1
+ export interface Payload {
2
+ movable_ink_url?: string;
3
+ user_id?: string;
4
+ anonymous_id?: string;
5
+ timestamp: string | number;
6
+ timezone?: string;
7
+ products_required_false?: {
8
+ id: string;
9
+ title?: string;
10
+ price?: number;
11
+ url?: string;
12
+ quantity?: number;
13
+ [k: string]: unknown;
14
+ }[];
15
+ categories: {
16
+ id: string;
17
+ url?: string;
18
+ }[];
19
+ meta?: {
20
+ [k: string]: unknown;
21
+ };
22
+ }
@@ -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/movable-ink/categoryView/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,43 @@
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 fields_1 = require("../fields");
8
+ const omit_1 = __importDefault(require("lodash/omit"));
9
+ const action = {
10
+ title: 'Category View',
11
+ description: 'Send a "Category View" event to Movable Ink',
12
+ defaultSubscription: 'type = "track" and event = "Category Viewed"',
13
+ fields: {
14
+ movable_ink_url: fields_1.movable_ink_url,
15
+ user_id: fields_1.user_id,
16
+ anonymous_id: fields_1.anonymous_id,
17
+ timestamp: fields_1.timestamp,
18
+ timezone: fields_1.timezone,
19
+ products_required_false: fields_1.products_required_false,
20
+ categories: fields_1.categories,
21
+ meta: fields_1.meta
22
+ },
23
+ perform: (request, { settings, payload }) => {
24
+ const url = payload?.movable_ink_url ?? settings?.movable_ink_url;
25
+ if (!url)
26
+ throw new actions_core_1.IntegrationError('"Movable Ink URL" setting or "Movable Ink URL" field must be populated', 'MISSING_DESTINATION_URL', 400);
27
+ return request(url, {
28
+ method: 'POST',
29
+ json: {
30
+ event_name: 'Category View',
31
+ user_id: payload.user_id,
32
+ anonymous_id: payload.anonymous_id,
33
+ timestamp: payload.timestamp,
34
+ timezone: payload.timezone,
35
+ product: payload.products_required_false,
36
+ categories: payload.categories,
37
+ metadata: { ...omit_1.default(payload.meta, ['products_required_false', 'categories']) }
38
+ }
39
+ });
40
+ }
41
+ };
42
+ exports.default = action;
43
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/movable-ink/categoryView/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA0E;AAG1E,sCASkB;AAClB,uDAA8B;AAE9B,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,6CAA6C;IAC1D,mBAAmB,EAAE,8CAA8C;IACnE,MAAM,EAAE;QACN,eAAe,EAAf,wBAAe;QACf,OAAO,EAAP,gBAAO;QACP,YAAY,EAAZ,qBAAY;QACZ,SAAS,EAAT,kBAAS;QACT,QAAQ,EAAR,iBAAQ;QACR,uBAAuB,EAAvB,gCAAuB;QACvB,UAAU,EAAV,mBAAU;QACV,IAAI,EAAJ,aAAI;KACL;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QAC1C,MAAM,GAAG,GAAG,OAAO,EAAE,eAAe,IAAI,QAAQ,EAAE,eAAe,CAAA;QACjE,IAAI,CAAC,GAAG;YACN,MAAM,IAAI,+BAAgB,CACxB,wEAAwE,EACxE,yBAAyB,EACzB,GAAG,CACJ,CAAA;QAEH,OAAO,OAAO,CAAC,GAAG,EAAE;YAClB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,UAAU,EAAE,eAAe;gBAC3B,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,YAAY,EAAE,OAAO,CAAC,YAAY;gBAClC,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,QAAQ,EAAE,OAAO,CAAC,QAAQ;gBAC1B,OAAO,EAAE,OAAO,CAAC,uBAAuB;gBACxC,UAAU,EAAE,OAAO,CAAC,UAAU;gBAC9B,QAAQ,EAAE,EAAE,GAAG,cAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,yBAAyB,EAAE,YAAY,CAAC,CAAC,EAAE;aAC/E;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,20 @@
1
+ export interface Payload {
2
+ movable_ink_url?: string;
3
+ user_id?: string;
4
+ anonymous_id?: string;
5
+ timestamp: string | number;
6
+ timezone?: string;
7
+ products: {
8
+ id: string;
9
+ title?: string;
10
+ price?: number;
11
+ url?: string;
12
+ quantity?: number;
13
+ [k: string]: unknown;
14
+ }[];
15
+ order_id: string;
16
+ revenue: number;
17
+ meta?: {
18
+ [k: string]: unknown;
19
+ };
20
+ }
@@ -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/movable-ink/conversion/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,45 @@
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 fields_1 = require("../fields");
8
+ const omit_1 = __importDefault(require("lodash/omit"));
9
+ const action = {
10
+ title: 'Conversion',
11
+ description: 'Send a Conversion event Movable Ink',
12
+ defaultSubscription: 'type = "track" and event = "Order Completed"',
13
+ fields: {
14
+ movable_ink_url: fields_1.movable_ink_url,
15
+ user_id: fields_1.user_id,
16
+ anonymous_id: fields_1.anonymous_id,
17
+ timestamp: fields_1.timestamp,
18
+ timezone: fields_1.timezone,
19
+ products: fields_1.products,
20
+ order_id: fields_1.order_id,
21
+ revenue: fields_1.revenue,
22
+ meta: fields_1.meta
23
+ },
24
+ perform: (request, { settings, payload }) => {
25
+ const url = payload?.movable_ink_url ?? settings?.movable_ink_url;
26
+ if (!url)
27
+ throw new actions_core_1.IntegrationError('"Movable Ink URL" setting or "Movable Ink URL" field must be populated', 'MISSING_DESTINATION_URL', 400);
28
+ return request(url, {
29
+ method: 'POST',
30
+ json: {
31
+ event_name: 'Conversion',
32
+ user_id: payload.user_id,
33
+ anonymous_id: payload.anonymous_id,
34
+ timestamp: payload.timestamp,
35
+ timezone: payload.timezone,
36
+ products: payload.products,
37
+ order_id: payload.order_id,
38
+ revenue: payload.revenue,
39
+ metadata: { ...omit_1.default(payload.meta, ['products', 'order_id', 'revenue']) }
40
+ }
41
+ });
42
+ }
43
+ };
44
+ exports.default = action;
45
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/movable-ink/conversion/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA0E;AAG1E,sCAUkB;AAClB,uDAA8B;AAE9B,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,qCAAqC;IAClD,mBAAmB,EAAE,8CAA8C;IACnE,MAAM,EAAE;QACN,eAAe,EAAf,wBAAe;QACf,OAAO,EAAP,gBAAO;QACP,YAAY,EAAZ,qBAAY;QACZ,SAAS,EAAT,kBAAS;QACT,QAAQ,EAAR,iBAAQ;QACR,QAAQ,EAAR,iBAAQ;QACR,QAAQ,EAAR,iBAAQ;QACR,OAAO,EAAP,gBAAO;QACP,IAAI,EAAJ,aAAI;KACL;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QAC1C,MAAM,GAAG,GAAG,OAAO,EAAE,eAAe,IAAI,QAAQ,EAAE,eAAe,CAAA;QACjE,IAAI,CAAC,GAAG;YACN,MAAM,IAAI,+BAAgB,CACxB,wEAAwE,EACxE,yBAAyB,EACzB,GAAG,CACJ,CAAA;QAEH,OAAO,OAAO,CAAC,GAAG,EAAE;YAClB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,UAAU,EAAE,YAAY;gBACxB,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,YAAY,EAAE,OAAO,CAAC,YAAY;gBAClC,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,QAAQ,EAAE,OAAO,CAAC,QAAQ;gBAC1B,QAAQ,EAAE,OAAO,CAAC,QAAQ;gBAC1B,QAAQ,EAAE,OAAO,CAAC,QAAQ;gBAC1B,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,QAAQ,EAAE,EAAE,GAAG,cAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC,EAAE;aACzE;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,21 @@
1
+ import { InputField } from '@segment/actions-core/destination-kit/types';
2
+ export declare const movable_ink_url: InputField;
3
+ export declare const timestamp: InputField;
4
+ export declare const timezone: InputField;
5
+ export declare const event_name: InputField;
6
+ export declare const user_id: InputField;
7
+ export declare const anonymous_id: InputField;
8
+ export declare const meta: InputField;
9
+ export declare const query_url: InputField;
10
+ export declare const revenue: InputField;
11
+ export declare const revenue_required_false: InputField;
12
+ export declare const query: InputField;
13
+ export declare const order_id: InputField;
14
+ export declare const order_id_required_false: InputField;
15
+ export declare const product_quantity: InputField;
16
+ export declare const product: InputField;
17
+ export declare const product_with_quantity: InputField;
18
+ export declare const products: InputField;
19
+ export declare const products_required_false: InputField;
20
+ export declare const categories: InputField;
21
+ export declare const categories_required_false: InputField;
@@ -0,0 +1,236 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.categories_required_false = exports.categories = exports.products_required_false = exports.products = exports.product_with_quantity = exports.product = exports.product_quantity = exports.order_id_required_false = exports.order_id = exports.query = exports.revenue_required_false = exports.revenue = exports.query_url = exports.meta = exports.anonymous_id = exports.user_id = exports.event_name = exports.timezone = exports.timestamp = exports.movable_ink_url = void 0;
4
+ exports.movable_ink_url = {
5
+ label: 'Movable Ink URL',
6
+ description: 'The Movable Ink URL to send data to. This field overrides the "Movable Ink URL" setting.',
7
+ type: 'string',
8
+ required: false,
9
+ format: 'uri'
10
+ };
11
+ exports.timestamp = {
12
+ label: 'timestamp',
13
+ description: "Timestamp for the event. Must be in ISO 8601 format. For example '2023-09-18T11:45:59.533Z'. Segment will convert to Unix time before sending to Movable Ink.",
14
+ type: 'datetime',
15
+ required: true,
16
+ default: { '@path': '$.timestamp' }
17
+ };
18
+ exports.timezone = {
19
+ label: 'Timezone',
20
+ description: 'The timezone of where the event took place (TZ database name in the IANA Time Zone Database)',
21
+ type: 'string',
22
+ required: false,
23
+ default: {
24
+ '@if': {
25
+ exists: { '@path': '$.context.timezone' },
26
+ then: { '@path': '$.context.timezone' },
27
+ else: { '@path': '$.properties.timezone' }
28
+ }
29
+ }
30
+ };
31
+ exports.event_name = {
32
+ label: 'Event Name',
33
+ description: 'The name of the event to send',
34
+ type: 'string',
35
+ required: true,
36
+ default: { '@path': '$.event' }
37
+ };
38
+ exports.user_id = {
39
+ label: 'User ID',
40
+ description: 'The unique identifier of the profile that triggered this event.',
41
+ type: 'string',
42
+ required: false,
43
+ default: { '@path': '$.userId' }
44
+ };
45
+ exports.anonymous_id = {
46
+ label: 'Anonymous ID',
47
+ description: 'A unique identifier of the anonymous profile that triggered this event.',
48
+ type: 'string',
49
+ required: false,
50
+ default: { '@path': '$.anonymousId' }
51
+ };
52
+ exports.meta = {
53
+ label: 'Metadata',
54
+ description: 'A map of meta data to provide additional context about the event.',
55
+ type: 'object',
56
+ defaultObjectUI: 'keyvalue',
57
+ additionalProperties: true,
58
+ required: false,
59
+ default: { '@path': '$.properties' }
60
+ };
61
+ exports.query_url = {
62
+ label: 'Query URL',
63
+ description: 'The URL of a query the user searched with',
64
+ type: 'string',
65
+ required: false,
66
+ default: { '@path': '$.properties.url' }
67
+ };
68
+ exports.revenue = {
69
+ label: 'Revenue',
70
+ description: 'The revenue generated by the purchase',
71
+ type: 'number',
72
+ required: true,
73
+ default: { '@path': '$.properties.revenue' }
74
+ };
75
+ exports.revenue_required_false = {
76
+ ...exports.revenue,
77
+ required: false
78
+ };
79
+ exports.query = {
80
+ label: 'Query',
81
+ description: 'Query the user searched with',
82
+ type: 'string',
83
+ required: true,
84
+ default: { '@path': '$.properties.query' }
85
+ };
86
+ exports.order_id = {
87
+ label: 'Order ID',
88
+ description: 'Unique ID for the purchase',
89
+ type: 'string',
90
+ required: true,
91
+ default: { '@path': '$.properties.order_id' }
92
+ };
93
+ exports.order_id_required_false = {
94
+ ...exports.order_id,
95
+ required: false
96
+ };
97
+ exports.product_quantity = {
98
+ label: 'Product Quantity',
99
+ description: 'The quantity of the product.',
100
+ type: 'integer',
101
+ required: false,
102
+ default: { '@path': '$.properties.quantity' }
103
+ };
104
+ exports.product = {
105
+ label: 'Product Details',
106
+ description: 'Product details to associate with the event',
107
+ type: 'object',
108
+ required: true,
109
+ multiple: false,
110
+ additionalProperties: true,
111
+ properties: {
112
+ id: {
113
+ label: 'Product ID',
114
+ description: 'The unique identifier of the product.',
115
+ type: 'string',
116
+ required: true
117
+ },
118
+ title: {
119
+ label: 'Product title',
120
+ description: 'The title or name of the product.',
121
+ type: 'string',
122
+ required: false
123
+ },
124
+ price: {
125
+ label: 'Product price',
126
+ description: 'The product price.',
127
+ type: 'number',
128
+ required: false
129
+ },
130
+ url: {
131
+ label: 'Product URL',
132
+ description: 'The URL of the product.',
133
+ type: 'string',
134
+ required: false
135
+ }
136
+ },
137
+ default: {
138
+ id: { '@path': '$.properties.product_id' },
139
+ title: { '@path': '$.properties.name' },
140
+ price: { '@path': '$.properties.price' },
141
+ url: { '@path': '$.properties.url' }
142
+ }
143
+ };
144
+ exports.product_with_quantity = {
145
+ ...exports.product,
146
+ properties: {
147
+ ...exports.product.properties,
148
+ quantity: {
149
+ label: 'Quantity',
150
+ description: 'The quantity of the product.',
151
+ type: 'integer',
152
+ required: false
153
+ }
154
+ },
155
+ default: {
156
+ ...exports.product.default,
157
+ quantity: { '@path': '$.quantity' }
158
+ }
159
+ };
160
+ exports.products = {
161
+ label: 'Products',
162
+ description: 'Product details to associate with the event.',
163
+ type: 'object',
164
+ required: true,
165
+ multiple: true,
166
+ additionalProperties: true,
167
+ properties: {
168
+ id: {
169
+ label: 'Product ID',
170
+ description: 'The unique identifier of the product.',
171
+ type: 'string',
172
+ required: true
173
+ },
174
+ title: {
175
+ label: 'Product title',
176
+ description: 'The title or name of the product.',
177
+ type: 'string',
178
+ required: false
179
+ },
180
+ price: {
181
+ label: 'Product price',
182
+ description: 'The product price.',
183
+ type: 'number',
184
+ required: false
185
+ },
186
+ url: {
187
+ label: 'Product URL',
188
+ description: 'The URL of the product.',
189
+ type: 'string',
190
+ required: false
191
+ },
192
+ quantity: {
193
+ label: 'Product Quantity',
194
+ description: 'The quantity of the product.',
195
+ type: 'integer',
196
+ required: false
197
+ }
198
+ },
199
+ default: {
200
+ '@arrayPath': [
201
+ '$.properties.products',
202
+ {
203
+ id: { '@path': '$.product_id' },
204
+ title: { '@path': '$.name' },
205
+ price: { '@path': '$.price' },
206
+ url: { '@path': '$.url' },
207
+ quantity: { '@path': '$.quantity' }
208
+ }
209
+ ]
210
+ }
211
+ };
212
+ exports.products_required_false = {
213
+ ...exports.products,
214
+ required: false
215
+ };
216
+ exports.categories = {
217
+ label: 'Categories',
218
+ description: 'Product Category details',
219
+ type: 'object',
220
+ multiple: true,
221
+ required: true,
222
+ defaultObjectUI: 'keyvalue',
223
+ additionalProperties: false,
224
+ properties: {
225
+ id: { label: 'Category ID', description: 'The unique identifier of the Category.', type: 'string', required: true },
226
+ url: { label: 'Category URL', description: 'The URL of the Category', type: 'string' }
227
+ },
228
+ default: {
229
+ '@arrayPath': ['$.properties.categories', { id: { '@path': '$.id' }, url: { '@path': '$.url' } }]
230
+ }
231
+ };
232
+ exports.categories_required_false = {
233
+ ...exports.categories,
234
+ required: false
235
+ };
236
+ //# sourceMappingURL=fields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../src/destinations/movable-ink/fields.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAe;IACzC,KAAK,EAAE,iBAAiB;IACxB,WAAW,EAAE,0FAA0F;IACvG,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,KAAK;CACd,CAAA;AAEY,QAAA,SAAS,GAAe;IACnC,KAAK,EAAE,WAAW;IAClB,WAAW,EACT,+JAA+J;IACjK,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE;CACpC,CAAA;AAEY,QAAA,QAAQ,GAAe;IAClC,KAAK,EAAE,UAAU;IACjB,WAAW,EAAE,8FAA8F;IAC3G,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE;QACP,KAAK,EAAE;YACL,MAAM,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;YACzC,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;YACvC,IAAI,EAAE,EAAE,OAAO,EAAE,uBAAuB,EAA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,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,CAAC;KAClG;CACF,CAAA;AAEY,QAAA,yBAAyB,GAAe;IACnD,GAAG,kBAAU;IACb,QAAQ,EAAE,KAAK;CAChB,CAAA"}
@@ -0,0 +1,7 @@
1
+ export interface Payload {
2
+ movable_ink_url?: string;
3
+ user_id?: string;
4
+ anonymous_id?: string;
5
+ timestamp: string | number;
6
+ timezone?: string;
7
+ }
@@ -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/movable-ink/identify/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,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const actions_core_1 = require("@segment/actions-core");
4
+ const fields_1 = require("../fields");
5
+ const action = {
6
+ title: 'Identify',
7
+ description: 'Send an Identify event to Movable Ink, to assocate a userId with an anonymousId',
8
+ defaultSubscription: 'type = "identify"',
9
+ fields: {
10
+ movable_ink_url: fields_1.movable_ink_url,
11
+ user_id: fields_1.user_id,
12
+ anonymous_id: fields_1.anonymous_id,
13
+ timestamp: fields_1.timestamp,
14
+ timezone: fields_1.timezone
15
+ },
16
+ perform: (request, { settings, payload }) => {
17
+ const url = payload?.movable_ink_url ?? settings?.movable_ink_url;
18
+ if (!url)
19
+ throw new actions_core_1.IntegrationError('"Movable Ink URL" setting or "Movable Ink URL" field must be populated', 'MISSING_DESTINATION_URL', 400);
20
+ return request(url, {
21
+ method: 'POST',
22
+ json: {
23
+ user_id: payload.user_id,
24
+ anonymous_id: payload.anonymous_id,
25
+ timestamp: payload.timestamp,
26
+ timezone: payload.timezone
27
+ }
28
+ });
29
+ }
30
+ };
31
+ exports.default = action;
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/movable-ink/identify/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAG1E,sCAAuF;AAEvF,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,UAAU;IACjB,WAAW,EAAE,iFAAiF;IAC9F,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,eAAe,EAAf,wBAAe;QACf,OAAO,EAAP,gBAAO;QACP,YAAY,EAAZ,qBAAY;QACZ,SAAS,EAAT,kBAAS;QACT,QAAQ,EAAR,iBAAQ;KACT;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QAC1C,MAAM,GAAG,GAAG,OAAO,EAAE,eAAe,IAAI,QAAQ,EAAE,eAAe,CAAA;QACjE,IAAI,CAAC,GAAG;YACN,MAAM,IAAI,+BAAgB,CACxB,wEAAwE,EACxE,yBAAyB,EACzB,GAAG,CACJ,CAAA;QAEH,OAAO,OAAO,CAAC,GAAG,EAAE;YAClB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,YAAY,EAAE,OAAO,CAAC,YAAY;gBAClC,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,QAAQ,EAAE,OAAO,CAAC,QAAQ;aAC3B;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,22 @@
1
+ export interface Payload {
2
+ movable_ink_url?: string;
3
+ user_id?: string;
4
+ anonymous_id?: string;
5
+ timestamp: string | number;
6
+ timezone?: string;
7
+ product_with_quantity: {
8
+ id: string;
9
+ title?: string;
10
+ price?: number;
11
+ url?: string;
12
+ quantity?: number;
13
+ [k: string]: unknown;
14
+ };
15
+ categories_required_false?: {
16
+ id: string;
17
+ url?: string;
18
+ }[];
19
+ meta?: {
20
+ [k: string]: unknown;
21
+ };
22
+ }
@@ -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/movable-ink/productAdded/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;