@segment/action-destinations 3.162.0 → 3.162.1-staged-fb-capi.54

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 (254) hide show
  1. package/dist/destinations/acoustic/Utility/eventprocessing.js +18 -18
  2. package/dist/destinations/acoustic/Utility/eventprocessing.js.map +1 -1
  3. package/dist/destinations/airship/customEvents/generated-types.d.ts +9 -0
  4. package/dist/destinations/airship/customEvents/generated-types.js +3 -0
  5. package/dist/destinations/airship/customEvents/generated-types.js.map +1 -0
  6. package/dist/destinations/airship/customEvents/index.d.ts +5 -0
  7. package/dist/destinations/airship/customEvents/index.js +59 -0
  8. package/dist/destinations/airship/customEvents/index.js.map +1 -0
  9. package/dist/destinations/airship/generated-types.d.ts +5 -0
  10. package/dist/destinations/airship/generated-types.js +3 -0
  11. package/dist/destinations/airship/generated-types.js.map +1 -0
  12. package/dist/destinations/airship/index.d.ts +4 -0
  13. package/dist/destinations/airship/index.js +97 -0
  14. package/dist/destinations/airship/index.js.map +1 -0
  15. package/dist/destinations/airship/manageTags/generated-types.d.ts +7 -0
  16. package/dist/destinations/airship/manageTags/generated-types.js +3 -0
  17. package/dist/destinations/airship/manageTags/generated-types.js.map +1 -0
  18. package/dist/destinations/airship/manageTags/index.d.ts +5 -0
  19. package/dist/destinations/airship/manageTags/index.js +38 -0
  20. package/dist/destinations/airship/manageTags/index.js.map +1 -0
  21. package/dist/destinations/airship/setAttributes/generated-types.d.ts +30 -0
  22. package/dist/destinations/airship/setAttributes/generated-types.js +3 -0
  23. package/dist/destinations/airship/setAttributes/generated-types.js.map +1 -0
  24. package/dist/destinations/airship/setAttributes/index.d.ts +5 -0
  25. package/dist/destinations/airship/setAttributes/index.js +182 -0
  26. package/dist/destinations/airship/setAttributes/index.js.map +1 -0
  27. package/dist/destinations/airship/utilities.d.ts +28 -0
  28. package/dist/destinations/airship/utilities.js +146 -0
  29. package/dist/destinations/airship/utilities.js.map +1 -0
  30. package/dist/destinations/calliper/alias/generated-types.d.ts +5 -0
  31. package/dist/destinations/calliper/alias/generated-types.js +3 -0
  32. package/dist/destinations/calliper/alias/generated-types.js.map +1 -0
  33. package/dist/destinations/calliper/alias/index.d.ts +5 -0
  34. package/dist/destinations/calliper/alias/index.js +60 -0
  35. package/dist/destinations/calliper/alias/index.js.map +1 -0
  36. package/dist/destinations/calliper/generated-types.d.ts +4 -0
  37. package/dist/destinations/calliper/generated-types.js +3 -0
  38. package/dist/destinations/calliper/generated-types.js.map +1 -0
  39. package/dist/destinations/calliper/identifyGroup/generated-types.d.ts +7 -0
  40. package/dist/destinations/calliper/identifyGroup/generated-types.js +3 -0
  41. package/dist/destinations/calliper/identifyGroup/generated-types.js.map +1 -0
  42. package/dist/destinations/calliper/identifyGroup/index.d.ts +5 -0
  43. package/dist/destinations/calliper/identifyGroup/index.js +53 -0
  44. package/dist/destinations/calliper/identifyGroup/index.js.map +1 -0
  45. package/dist/destinations/calliper/identifyUser/generated-types.d.ts +14 -0
  46. package/dist/destinations/calliper/identifyUser/generated-types.js +3 -0
  47. package/dist/destinations/calliper/identifyUser/generated-types.js.map +1 -0
  48. package/dist/destinations/calliper/identifyUser/index.d.ts +5 -0
  49. package/dist/destinations/calliper/identifyUser/index.js +152 -0
  50. package/dist/destinations/calliper/identifyUser/index.js.map +1 -0
  51. package/dist/destinations/calliper/index.d.ts +4 -0
  52. package/dist/destinations/calliper/index.js +81 -0
  53. package/dist/destinations/calliper/index.js.map +1 -0
  54. package/dist/destinations/calliper/trackEvent/eventProperties.d.ts +2 -0
  55. package/dist/destinations/calliper/trackEvent/eventProperties.js +231 -0
  56. package/dist/destinations/calliper/trackEvent/eventProperties.js.map +1 -0
  57. package/dist/destinations/calliper/trackEvent/generated-types.d.ts +32 -0
  58. package/dist/destinations/calliper/trackEvent/generated-types.js +3 -0
  59. package/dist/destinations/calliper/trackEvent/generated-types.js.map +1 -0
  60. package/dist/destinations/calliper/trackEvent/index.d.ts +5 -0
  61. package/dist/destinations/calliper/trackEvent/index.js +65 -0
  62. package/dist/destinations/calliper/trackEvent/index.js.map +1 -0
  63. package/dist/destinations/calliper/utils/constants.d.ts +1 -0
  64. package/dist/destinations/calliper/utils/constants.js +5 -0
  65. package/dist/destinations/calliper/utils/constants.js.map +1 -0
  66. package/dist/destinations/calliper/utils/helpers.d.ts +1 -0
  67. package/dist/destinations/calliper/utils/helpers.js +8 -0
  68. package/dist/destinations/calliper/utils/helpers.js.map +1 -0
  69. package/dist/destinations/engage-messaging-sendgrid/sendEmail/generated-types.d.ts +1 -0
  70. package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js +159 -122
  71. package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js.map +1 -1
  72. package/dist/destinations/facebook-conversions-api/addToCart/generated-types.d.ts +21 -0
  73. package/dist/destinations/facebook-conversions-api/addToCart/index.js +3 -0
  74. package/dist/destinations/facebook-conversions-api/addToCart/index.js.map +1 -1
  75. package/dist/destinations/facebook-conversions-api/custom/generated-types.d.ts +21 -0
  76. package/dist/destinations/facebook-conversions-api/custom/index.js +3 -0
  77. package/dist/destinations/facebook-conversions-api/custom/index.js.map +1 -1
  78. package/dist/destinations/facebook-conversions-api/fb-capi-app-data.d.ts +10 -0
  79. package/dist/destinations/facebook-conversions-api/fb-capi-app-data.js +179 -0
  80. package/dist/destinations/facebook-conversions-api/fb-capi-app-data.js.map +1 -0
  81. package/dist/destinations/facebook-conversions-api/index.js +1 -1
  82. package/dist/destinations/facebook-conversions-api/index.js.map +1 -1
  83. package/dist/destinations/facebook-conversions-api/initiateCheckout/generated-types.d.ts +21 -0
  84. package/dist/destinations/facebook-conversions-api/initiateCheckout/index.js +3 -0
  85. package/dist/destinations/facebook-conversions-api/initiateCheckout/index.js.map +1 -1
  86. package/dist/destinations/facebook-conversions-api/pageView/generated-types.d.ts +21 -0
  87. package/dist/destinations/facebook-conversions-api/pageView/index.js +3 -0
  88. package/dist/destinations/facebook-conversions-api/pageView/index.js.map +1 -1
  89. package/dist/destinations/facebook-conversions-api/purchase/generated-types.d.ts +21 -0
  90. package/dist/destinations/facebook-conversions-api/purchase/index.js +3 -0
  91. package/dist/destinations/facebook-conversions-api/purchase/index.js.map +1 -1
  92. package/dist/destinations/facebook-conversions-api/search/generated-types.d.ts +21 -0
  93. package/dist/destinations/facebook-conversions-api/search/index.js +3 -0
  94. package/dist/destinations/facebook-conversions-api/search/index.js.map +1 -1
  95. package/dist/destinations/facebook-conversions-api/viewContent/generated-types.d.ts +21 -0
  96. package/dist/destinations/facebook-conversions-api/viewContent/index.js +3 -0
  97. package/dist/destinations/facebook-conversions-api/viewContent/index.js.map +1 -1
  98. package/dist/destinations/facebook-custom-audiences/generated-types.d.ts +3 -0
  99. package/dist/destinations/facebook-custom-audiences/generated-types.js +3 -0
  100. package/dist/destinations/facebook-custom-audiences/generated-types.js.map +1 -0
  101. package/dist/destinations/facebook-custom-audiences/index.d.ts +4 -0
  102. package/dist/destinations/facebook-custom-audiences/index.js +32 -0
  103. package/dist/destinations/facebook-custom-audiences/index.js.map +1 -0
  104. package/dist/destinations/facebook-custom-audiences/syncEngage/generated-types.d.ts +3 -0
  105. package/dist/destinations/facebook-custom-audiences/syncEngage/generated-types.js +3 -0
  106. package/dist/destinations/facebook-custom-audiences/syncEngage/generated-types.js.map +1 -0
  107. package/dist/destinations/facebook-custom-audiences/syncEngage/index.d.ts +5 -0
  108. package/dist/destinations/facebook-custom-audiences/syncEngage/index.js +18 -0
  109. package/dist/destinations/facebook-custom-audiences/syncEngage/index.js.map +1 -0
  110. package/dist/destinations/facebook-custom-audiences/syncRetl/generated-types.d.ts +3 -0
  111. package/dist/destinations/facebook-custom-audiences/syncRetl/generated-types.js +3 -0
  112. package/dist/destinations/facebook-custom-audiences/syncRetl/generated-types.js.map +1 -0
  113. package/dist/destinations/facebook-custom-audiences/syncRetl/index.d.ts +5 -0
  114. package/dist/destinations/facebook-custom-audiences/syncRetl/index.js +18 -0
  115. package/dist/destinations/facebook-custom-audiences/syncRetl/index.js.map +1 -0
  116. package/dist/destinations/fullstory/index.js +1 -1
  117. package/dist/destinations/fullstory/index.js.map +1 -1
  118. package/dist/destinations/google-enhanced-conversions/functions.d.ts +1 -0
  119. package/dist/destinations/google-enhanced-conversions/functions.js +3 -1
  120. package/dist/destinations/google-enhanced-conversions/functions.js.map +1 -1
  121. package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js +3 -1
  122. package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js.map +1 -1
  123. package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js +3 -1
  124. package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js.map +1 -1
  125. package/dist/destinations/heap/identifyUser/index.js +0 -3
  126. package/dist/destinations/heap/identifyUser/index.js.map +1 -1
  127. package/dist/destinations/heap/trackEvent/index.js +0 -3
  128. package/dist/destinations/heap/trackEvent/index.js.map +1 -1
  129. package/dist/destinations/index.js +6 -0
  130. package/dist/destinations/index.js.map +1 -1
  131. package/dist/destinations/iterable/index.js +3 -3
  132. package/dist/destinations/iterable/index.js.map +1 -1
  133. package/dist/destinations/iterable/shared-fields.d.ts +15 -1
  134. package/dist/destinations/iterable/shared-fields.js +19 -17
  135. package/dist/destinations/iterable/shared-fields.js.map +1 -1
  136. package/dist/destinations/iterable/trackEvent/index.js +4 -1
  137. package/dist/destinations/iterable/trackEvent/index.js.map +1 -1
  138. package/dist/destinations/iterable/trackPurchase/generated-types.d.ts +1 -4
  139. package/dist/destinations/iterable/trackPurchase/index.js +21 -26
  140. package/dist/destinations/iterable/trackPurchase/index.js.map +1 -1
  141. package/dist/destinations/iterable/updateCart/generated-types.d.ts +1 -4
  142. package/dist/destinations/iterable/updateCart/index.js +21 -28
  143. package/dist/destinations/iterable/updateCart/index.js.map +1 -1
  144. package/dist/destinations/iterable/updateUser/generated-types.d.ts +1 -1
  145. package/dist/destinations/iterable/updateUser/index.js +12 -8
  146. package/dist/destinations/iterable/updateUser/index.js.map +1 -1
  147. package/dist/destinations/iterable/utils.d.ts +4 -0
  148. package/dist/destinations/iterable/utils.js +63 -0
  149. package/dist/destinations/iterable/utils.js.map +1 -0
  150. package/dist/destinations/livelike-cloud/trackEvent/index.js +0 -3
  151. package/dist/destinations/livelike-cloud/trackEvent/index.js.map +1 -1
  152. package/dist/destinations/liveramp-audiences/audienceEntered/generated-types.d.ts +9 -0
  153. package/dist/destinations/liveramp-audiences/audienceEntered/generated-types.js +3 -0
  154. package/dist/destinations/liveramp-audiences/audienceEntered/generated-types.js.map +1 -0
  155. package/dist/destinations/liveramp-audiences/audienceEntered/index.d.ts +5 -0
  156. package/dist/destinations/liveramp-audiences/audienceEntered/index.js +78 -0
  157. package/dist/destinations/liveramp-audiences/audienceEntered/index.js.map +1 -0
  158. package/dist/destinations/liveramp-audiences/audienceEntered/s3.d.ts +6 -0
  159. package/dist/destinations/liveramp-audiences/audienceEntered/s3.js +37 -0
  160. package/dist/destinations/liveramp-audiences/audienceEntered/s3.js.map +1 -0
  161. package/dist/destinations/liveramp-audiences/audienceEntered/sftp.d.ts +7 -0
  162. package/dist/destinations/liveramp-audiences/audienceEntered/sftp.js +48 -0
  163. package/dist/destinations/liveramp-audiences/audienceEntered/sftp.js.map +1 -0
  164. package/dist/destinations/liveramp-audiences/generated-types.d.ts +12 -0
  165. package/dist/destinations/liveramp-audiences/generated-types.js +3 -0
  166. package/dist/destinations/liveramp-audiences/generated-types.js.map +1 -0
  167. package/dist/destinations/liveramp-audiences/index.d.ts +4 -0
  168. package/dist/destinations/liveramp-audiences/index.js +89 -0
  169. package/dist/destinations/liveramp-audiences/index.js.map +1 -0
  170. package/dist/destinations/liveramp-audiences/operations.d.ts +8 -0
  171. package/dist/destinations/liveramp-audiences/operations.js +32 -0
  172. package/dist/destinations/liveramp-audiences/operations.js.map +1 -0
  173. package/dist/destinations/loops/createOrUpdateContact/generated-types.d.ts +5 -0
  174. package/dist/destinations/loops/createOrUpdateContact/index.js +24 -7
  175. package/dist/destinations/loops/createOrUpdateContact/index.js.map +1 -1
  176. package/dist/destinations/loops/index.js +11 -1
  177. package/dist/destinations/loops/index.js.map +1 -1
  178. package/dist/destinations/loops/sendEvent/generated-types.d.ts +5 -0
  179. package/dist/destinations/loops/sendEvent/generated-types.js +3 -0
  180. package/dist/destinations/loops/sendEvent/generated-types.js.map +1 -0
  181. package/dist/destinations/loops/sendEvent/index.d.ts +5 -0
  182. package/dist/destinations/loops/sendEvent/index.js +52 -0
  183. package/dist/destinations/loops/sendEvent/index.js.map +1 -0
  184. package/dist/destinations/noop/generated-types.d.ts +2 -0
  185. package/dist/destinations/noop/generated-types.js +3 -0
  186. package/dist/destinations/noop/generated-types.js.map +1 -0
  187. package/dist/destinations/noop/index.d.ts +4 -0
  188. package/dist/destinations/noop/index.js +27 -0
  189. package/dist/destinations/noop/index.js.map +1 -0
  190. package/dist/destinations/noop/noop/generated-types.d.ts +3 -0
  191. package/dist/destinations/noop/noop/generated-types.js +3 -0
  192. package/dist/destinations/noop/noop/generated-types.js.map +1 -0
  193. package/dist/destinations/noop/noop/index.d.ts +5 -0
  194. package/dist/destinations/noop/noop/index.js +19 -0
  195. package/dist/destinations/noop/noop/index.js.map +1 -0
  196. package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/functions.d.ts +1 -0
  197. package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/functions.js +11 -1
  198. package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/functions.js.map +1 -1
  199. package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/index.js +4 -1
  200. package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/index.js.map +1 -1
  201. package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/mock-dataFile.d.ts +1 -0
  202. package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/mock-dataFile.js +2 -1
  203. package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/mock-dataFile.js.map +1 -1
  204. package/dist/destinations/revx/generated-types.d.ts +3 -0
  205. package/dist/destinations/revx/generated-types.js +3 -0
  206. package/dist/destinations/revx/generated-types.js.map +1 -0
  207. package/dist/destinations/revx/index.d.ts +4 -0
  208. package/dist/destinations/revx/index.js +36 -0
  209. package/dist/destinations/revx/index.js.map +1 -0
  210. package/dist/destinations/revx/sendRevxPing/generated-types.d.ts +41 -0
  211. package/dist/destinations/revx/sendRevxPing/generated-types.js +3 -0
  212. package/dist/destinations/revx/sendRevxPing/generated-types.js.map +1 -0
  213. package/dist/destinations/revx/sendRevxPing/index.d.ts +5 -0
  214. package/dist/destinations/revx/sendRevxPing/index.js +268 -0
  215. package/dist/destinations/revx/sendRevxPing/index.js.map +1 -0
  216. package/dist/destinations/segment-profiles/generated-types.d.ts +0 -1
  217. package/dist/destinations/segment-profiles/helperFunctions.d.ts +0 -7
  218. package/dist/destinations/segment-profiles/helperFunctions.js +1 -45
  219. package/dist/destinations/segment-profiles/helperFunctions.js.map +1 -1
  220. package/dist/destinations/segment-profiles/index.js +0 -14
  221. package/dist/destinations/segment-profiles/index.js.map +1 -1
  222. package/dist/destinations/segment-profiles/properties.js +10 -1
  223. package/dist/destinations/segment-profiles/properties.js.map +1 -1
  224. package/dist/destinations/segment-profiles/sendGroup/index.js +0 -8
  225. package/dist/destinations/segment-profiles/sendGroup/index.js.map +1 -1
  226. package/dist/destinations/segment-profiles/sendIdentify/index.js +0 -8
  227. package/dist/destinations/segment-profiles/sendIdentify/index.js.map +1 -1
  228. package/dist/destinations/snap-conversions-api/snap-capi-properties.js +2 -1
  229. package/dist/destinations/snap-conversions-api/snap-capi-properties.js.map +1 -1
  230. package/dist/destinations/the-trade-desk-crm/generated-types.d.ts +2 -0
  231. package/dist/destinations/the-trade-desk-crm/index.js +15 -1
  232. package/dist/destinations/the-trade-desk-crm/index.js.map +1 -1
  233. package/dist/destinations/tiktok-conversions/reportWebEvent/index.js +1 -1
  234. package/dist/destinations/tiktok-conversions/reportWebEvent/index.js.map +1 -1
  235. package/dist/destinations/usermaven/common-definitions.js +2 -2
  236. package/dist/destinations/usermaven/common-definitions.js.map +1 -1
  237. package/dist/destinations/usermaven/generated-types.d.ts +1 -0
  238. package/dist/destinations/usermaven/group/generated-types.d.ts +2 -2
  239. package/dist/destinations/usermaven/identify/generated-types.d.ts +2 -2
  240. package/dist/destinations/usermaven/index.js +19 -2
  241. package/dist/destinations/usermaven/index.js.map +1 -1
  242. package/dist/destinations/usermaven/page/generated-types.d.ts +31 -0
  243. package/dist/destinations/usermaven/page/generated-types.js +3 -0
  244. package/dist/destinations/usermaven/page/generated-types.js.map +1 -0
  245. package/dist/destinations/usermaven/page/index.d.ts +5 -0
  246. package/dist/destinations/usermaven/page/index.js +58 -0
  247. package/dist/destinations/usermaven/page/index.js.map +1 -0
  248. package/dist/destinations/usermaven/request-params.js +15 -10
  249. package/dist/destinations/usermaven/request-params.js.map +1 -1
  250. package/dist/destinations/usermaven/track/generated-types.d.ts +2 -2
  251. package/dist/lib/AWS/s3.d.ts +4 -0
  252. package/dist/lib/AWS/s3.js +21 -0
  253. package/dist/lib/AWS/s3.js.map +1 -0
  254. package/package.json +8 -5
@@ -0,0 +1,41 @@
1
+ export interface Payload {
2
+ os: string;
3
+ advertising_id?: string;
4
+ event_name?: string;
5
+ type?: string;
6
+ idfv?: string;
7
+ time?: string | number;
8
+ event_properties?: {
9
+ [k: string]: unknown;
10
+ };
11
+ user_properties?: {
12
+ [k: string]: unknown;
13
+ };
14
+ app_version?: string;
15
+ os_name?: string;
16
+ os_version?: string;
17
+ device_brand?: string;
18
+ device_manufacturer?: string;
19
+ device_model?: string;
20
+ carrier?: string;
21
+ country?: string;
22
+ region?: string;
23
+ city?: string;
24
+ dma?: string;
25
+ language?: string;
26
+ product?: {
27
+ price?: number;
28
+ quantity?: number;
29
+ productId?: string;
30
+ [k: string]: unknown;
31
+ };
32
+ products?: {
33
+ price?: number;
34
+ quantity?: number;
35
+ productId?: string;
36
+ [k: string]: unknown;
37
+ }[];
38
+ location_lat?: number;
39
+ location_lng?: number;
40
+ ip?: string;
41
+ }
@@ -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/revx/sendRevxPing/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import type { 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,268 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const action = {
4
+ title: 'Send Revx Ping',
5
+ description: 'Send event to revx',
6
+ defaultSubscription: 'type = "track" or type ="screen"',
7
+ fields: {
8
+ os: {
9
+ label: 'Platform',
10
+ type: 'string',
11
+ description: 'Platform of the device.',
12
+ required: true,
13
+ default: {
14
+ '@path': '$.context.device.type'
15
+ }
16
+ },
17
+ advertising_id: {
18
+ label: 'Identifier For Advertiser (IDFA/GAID)',
19
+ type: 'string',
20
+ description: 'Identifier For Advertiser (IDFA/GAID)',
21
+ default: { '@path': '$.context.device.advertisingId' }
22
+ },
23
+ event_name: {
24
+ label: 'Event name',
25
+ description: 'A unique identifier for your event.',
26
+ type: 'string',
27
+ default: {
28
+ '@if': {
29
+ exists: { '@path': '$.name' },
30
+ then: { '@path': '$.name' },
31
+ else: { '@path': '$.event' }
32
+ }
33
+ }
34
+ },
35
+ type: {
36
+ label: 'Request type',
37
+ description: 'A unique identifier for your request type.',
38
+ type: 'string',
39
+ default: { '@path': '$.type' }
40
+ },
41
+ idfv: {
42
+ label: 'Identifier For Vendor (IDFV)',
43
+ type: 'string',
44
+ description: 'Identifier for Device Id for IOS and Android',
45
+ default: {
46
+ '@path': '$.context.device.id'
47
+ }
48
+ },
49
+ time: {
50
+ label: 'Timestamp',
51
+ type: 'datetime',
52
+ description: 'The timestamp of the event. If time is not sent with the event, it will be set to the request upload time.',
53
+ default: {
54
+ '@path': '$.timestamp'
55
+ }
56
+ },
57
+ event_properties: {
58
+ label: 'Event Properties',
59
+ type: 'object',
60
+ description: 'An object of key-value pairs that represent additional data to be sent along with the event.',
61
+ default: {
62
+ '@path': '$.properties'
63
+ }
64
+ },
65
+ user_properties: {
66
+ label: 'User Properties',
67
+ type: 'object',
68
+ description: 'An object of key-value pairs that represent additional data tied to the user',
69
+ default: {
70
+ '@path': '$.context.traits'
71
+ }
72
+ },
73
+ app_version: {
74
+ label: 'App Version',
75
+ type: 'string',
76
+ description: 'The current version of your application.',
77
+ default: {
78
+ '@path': '$.context.app.version'
79
+ }
80
+ },
81
+ os_name: {
82
+ label: 'OS Name',
83
+ type: 'string',
84
+ description: 'The name of the mobile operating system or browser that the user is using.',
85
+ default: {
86
+ '@path': '$.context.os.name'
87
+ }
88
+ },
89
+ os_version: {
90
+ label: 'OS Version',
91
+ type: 'string',
92
+ description: 'The version of the mobile operating system or browser the user is using.',
93
+ default: {
94
+ '@path': '$.context.os.version'
95
+ }
96
+ },
97
+ device_brand: {
98
+ label: 'Device Brand',
99
+ type: 'string',
100
+ description: 'The device brand that the user is using.',
101
+ default: {
102
+ '@path': '$.context.device.brand'
103
+ }
104
+ },
105
+ device_manufacturer: {
106
+ label: 'Device Manufacturer',
107
+ type: 'string',
108
+ description: 'The device manufacturer that the user is using.',
109
+ default: {
110
+ '@path': '$.context.device.manufacturer'
111
+ }
112
+ },
113
+ device_model: {
114
+ label: 'Device Model',
115
+ type: 'string',
116
+ description: 'The device model that the user is using.',
117
+ default: {
118
+ '@path': '$.context.device.model'
119
+ }
120
+ },
121
+ carrier: {
122
+ label: 'Carrier',
123
+ type: 'string',
124
+ description: 'The carrier that the user is using.',
125
+ default: {
126
+ '@path': '$.context.network.carrier'
127
+ }
128
+ },
129
+ country: {
130
+ label: 'Country',
131
+ type: 'string',
132
+ description: 'The current country of the user.',
133
+ default: {
134
+ '@path': '$.context.location.country'
135
+ }
136
+ },
137
+ region: {
138
+ label: 'Region',
139
+ type: 'string',
140
+ description: 'The current region of the user.',
141
+ default: {
142
+ '@path': '$.context.location.region'
143
+ }
144
+ },
145
+ city: {
146
+ label: 'City',
147
+ type: 'string',
148
+ description: 'The current city of the user.',
149
+ default: {
150
+ '@path': '$.context.location.city'
151
+ }
152
+ },
153
+ dma: {
154
+ label: 'Designated Market Area',
155
+ type: 'string',
156
+ description: 'The current Designated Market Area of the user.'
157
+ },
158
+ language: {
159
+ label: 'Language',
160
+ type: 'string',
161
+ description: 'The language set by the user.',
162
+ default: {
163
+ '@path': '$.context.locale'
164
+ }
165
+ },
166
+ product: {
167
+ label: 'Product',
168
+ description: 'The single product viewed or Added to cart.',
169
+ type: 'object',
170
+ additionalProperties: true,
171
+ properties: {
172
+ price: {
173
+ label: 'Price',
174
+ type: 'number',
175
+ description: 'The price of the item purchased. Required for revenue data if the revenue field is not sent. You can use negative values to indicate refunds.'
176
+ },
177
+ quantity: {
178
+ label: 'Quantity',
179
+ type: 'integer',
180
+ description: 'The quantity of the item purchased. Defaults to 1 if not specified.'
181
+ },
182
+ productId: {
183
+ label: 'Product ID',
184
+ type: 'string',
185
+ description: 'An identifier for the item purchased. You must send a price and quantity or revenue with this field.'
186
+ }
187
+ },
188
+ default: {
189
+ price: { '@path': '$.properties.price' },
190
+ quantity: { '@path': '$.properties.quantity' },
191
+ productId: { '@path': '$.properties.product_id' }
192
+ }
193
+ },
194
+ products: {
195
+ label: 'Products',
196
+ description: 'The list of products purchased.',
197
+ type: 'object',
198
+ multiple: true,
199
+ additionalProperties: true,
200
+ properties: {
201
+ price: {
202
+ label: 'Price',
203
+ type: 'number',
204
+ description: 'The price of the item purchased. Required for revenue data if the revenue field is not sent. You can use negative values to indicate refunds.'
205
+ },
206
+ quantity: {
207
+ label: 'Quantity',
208
+ type: 'integer',
209
+ description: 'The quantity of the item purchased. Defaults to 1 if not specified.'
210
+ },
211
+ productId: {
212
+ label: 'Product ID',
213
+ type: 'string',
214
+ description: 'An identifier for the item purchased. You must send a price and quantity or revenue with this field.'
215
+ }
216
+ },
217
+ default: {
218
+ '@arrayPath': [
219
+ '$.properties.products',
220
+ {
221
+ price: {
222
+ '@path': 'price'
223
+ },
224
+ quantity: {
225
+ '@path': 'quantity'
226
+ },
227
+ productId: {
228
+ '@path': 'product_id'
229
+ }
230
+ }
231
+ ]
232
+ }
233
+ },
234
+ location_lat: {
235
+ label: 'Latitude',
236
+ type: 'number',
237
+ description: 'The current Latitude of the user.',
238
+ default: {
239
+ '@path': '$.context.location.latitude'
240
+ }
241
+ },
242
+ location_lng: {
243
+ label: 'Longtitude',
244
+ type: 'number',
245
+ description: 'The current Longitude of the user.',
246
+ default: {
247
+ '@path': '$.context.location.longitude'
248
+ }
249
+ },
250
+ ip: {
251
+ label: 'IP Address',
252
+ type: 'string',
253
+ description: 'The IP address of the user. Use "$remote" to use the IP address on the upload request. ',
254
+ default: {
255
+ '@path': '$.context.ip'
256
+ }
257
+ }
258
+ },
259
+ perform: (request, { settings, payload }) => {
260
+ const body = { ...settings, ...payload };
261
+ return request('https://segmentdata.atomex.net/data/1x1.gif', {
262
+ method: 'post',
263
+ json: body
264
+ });
265
+ }
266
+ };
267
+ exports.default = action;
268
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/revx/sendRevxPing/index.ts"],"names":[],"mappings":";;AAIA,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,gBAAgB;IACvB,WAAW,EAAE,oBAAoB;IACjC,mBAAmB,EAAE,kCAAkC;IACvD,MAAM,EAAE;QACN,EAAE,EAAE;YACF,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,yBAAyB;YACtC,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,uBAAuB;aACjC;SACF;QACD,cAAc,EAAE;YACd,KAAK,EAAE,u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;AAED,kBAAe,MAAM,CAAA"}
@@ -1,4 +1,3 @@
1
1
  export interface Settings {
2
- segment_papi_token: string;
3
2
  endpoint: string;
4
3
  }
@@ -1,8 +1 @@
1
- import { RequestClient, DynamicFieldResponse } from '@segment/actions-core';
2
- interface GetEngageSpaceParams {
3
- endpoint: string;
4
- bearerToken: string;
5
- }
6
- export declare function getEngageSpaces(request: RequestClient, data: GetEngageSpaceParams): Promise<DynamicFieldResponse>;
7
1
  export declare function generateSegmentAPIAuthHeaders(writeKey: string): string;
8
- export {};
@@ -1,50 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generateSegmentAPIAuthHeaders = exports.getEngageSpaces = void 0;
4
- const properties_1 = require("./properties");
5
- async function getEngageSpaces(request, data) {
6
- let cursor = 'MA==';
7
- const choices = [];
8
- let response;
9
- const segmentPAPIEndpoint = properties_1.SEGMENT_ENDPOINTS[data.endpoint || properties_1.DEFAULT_SEGMENT_ENDPOINT].papi;
10
- do {
11
- const publicApiUrl = `${segmentPAPIEndpoint}/sources?pagination%5Bcount%5D=${properties_1.PAGINATION_COUNT}&pagination%5Bcursor%5D=${cursor}`;
12
- try {
13
- response = await request(publicApiUrl, {
14
- headers: {
15
- authorization: `Bearer ${data.bearerToken}`
16
- },
17
- method: 'GET',
18
- skipResponseCloning: true
19
- });
20
- for (const source of response.data.data.sources) {
21
- if (source.metadata.slug !== 'personas-compute') {
22
- continue;
23
- }
24
- choices.push({
25
- label: source.name,
26
- value: source.writeKeys[0]
27
- });
28
- }
29
- }
30
- catch (err) {
31
- return {
32
- choices: [],
33
- error: {
34
- message: err?.response?.errors?.message ?? 'Unknown Error',
35
- code: err?.response?.statusText ?? 'Unknown Error'
36
- }
37
- };
38
- }
39
- if (response.data.data.pagination.next) {
40
- cursor = response.data.data.pagination.next;
41
- }
42
- } while (response.data.data.pagination.next);
43
- return {
44
- choices
45
- };
46
- }
47
- exports.getEngageSpaces = getEngageSpaces;
3
+ exports.generateSegmentAPIAuthHeaders = void 0;
48
4
  function generateSegmentAPIAuthHeaders(writeKey) {
49
5
  return `Basic ${Buffer.from(writeKey + ':').toString('base64')}`;
50
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"helperFunctions.js","sourceRoot":"","sources":["../../../src/destinations/segment-profiles/helperFunctions.ts"],"names":[],"mappings":";;;AACA,6CAA4F;AAuCrF,KAAK,UAAU,eAAe,CACnC,OAAsB,EACtB,IAA0B;IAE1B,IAAI,MAAM,GAAG,MAAM,CAAA;IACnB,MAAM,OAAO,GAAuB,EAAE,CAAA;IACtC,IAAI,QAA2C,CAAA;IAE/C,MAAM,mBAAmB,GAAG,8BAAiB,CAAC,IAAI,CAAC,QAAQ,IAAI,qCAAwB,CAAC,CAAC,IAAI,CAAA;IAE7F,GAAG;QAED,MAAM,YAAY,GAAG,GAAG,mBAAmB,kCAAkC,6BAAgB,2BAA2B,MAAM,EAAE,CAAA;QAEhI,IAAI;YACF,QAAQ,GAAG,MAAM,OAAO,CAAkB,YAAY,EAAE;gBACtD,OAAO,EAAE;oBACP,aAAa,EAAE,UAAU,IAAI,CAAC,WAAW,EAAE;iBAC5C;gBACD,MAAM,EAAE,KAAK;gBACb,mBAAmB,EAAE,IAAI;aAC1B,CAAC,CAAA;YAEF,KAAK,MAAM,MAAM,IAAI,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;gBAC/C,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,kBAAkB,EAAE;oBAC/C,SAAQ;iBACT;gBAED,OAAO,CAAC,IAAI,CAAC;oBACX,KAAK,EAAE,MAAM,CAAC,IAAI;oBAClB,KAAK,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;iBAC3B,CAAC,CAAA;aACH;SACF;QAAC,OAAO,GAAG,EAAE;YACZ,OAAO;gBACL,OAAO,EAAE,EAAE;gBACX,KAAK,EAAE;oBACL,OAAO,EAAG,GAA6B,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,IAAI,eAAe;oBACrF,IAAI,EAAG,GAA6B,EAAE,QAAQ,EAAE,UAAU,IAAI,eAAe;iBAC9E;aACF,CAAA;SACF;QAED,IAAI,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE;YACtC,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAA;SAC5C;KACF,QAAQ,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,EAAC;IAE5C,OAAO;QACL,OAAO;KACR,CAAA;AACH,CAAC;AAnDD,0CAmDC;AAED,SAAgB,6BAA6B,CAAC,QAAgB;IAI5D,OAAO,SAAS,MAAM,CAAC,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAA;AAClE,CAAC;AALD,sEAKC"}
1
+ {"version":3,"file":"helperFunctions.js","sourceRoot":"","sources":["../../../src/destinations/segment-profiles/helperFunctions.ts"],"names":[],"mappings":";;;AAAA,SAAgB,6BAA6B,CAAC,QAAgB;IAI5D,OAAO,SAAS,MAAM,CAAC,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAA;AAClE,CAAC;AALD,sEAKC"}
@@ -13,12 +13,6 @@ const destination = {
13
13
  authentication: {
14
14
  scheme: 'custom',
15
15
  fields: {
16
- segment_papi_token: {
17
- label: 'Segment Public API Token',
18
- description: 'The Segment Public API requires that you have an authentication token before you send requests. [This document](https://docs.segmentapis.com/tag/Getting-Started#section/Get-an-API-token) explains how to setup a token.',
19
- type: 'password',
20
- required: true
21
- },
22
16
  endpoint: {
23
17
  label: 'Endpoint Region',
24
18
  description: 'The region to send your data.',
@@ -31,14 +25,6 @@ const destination = {
31
25
  default: properties_1.DEFAULT_SEGMENT_ENDPOINT,
32
26
  required: true
33
27
  }
34
- },
35
- testAuthentication: async (request, { settings }) => {
36
- const { endpoint } = settings;
37
- return request(properties_1.SEGMENT_ENDPOINTS[endpoint || properties_1.DEFAULT_SEGMENT_ENDPOINT].papi, {
38
- headers: {
39
- authorization: `Bearer ${settings.segment_papi_token}`
40
- }
41
- });
42
28
  }
43
29
  },
44
30
  actions: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/segment-profiles/index.ts"],"names":[],"mappings":";;;;;AAEA,6CAA0E;AAE1E,4DAAmC;AAEnC,kEAAyC;AAEzC,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE,OAAO;IACb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,kBAAkB,EAAE;gBAClB,KAAK,EAAE,0BAA0B;gBACjC,WAAW,EACT,2NAA2N;gBAC7N,IAAI,EAAE,UAAU;gBAChB,QAAQ,EAAE,IAAI;aACf;YACD,QAAQ,EAAE;gBACR,KAAK,EAAE,iBAAiB;gBACxB,WAAW,EAAE,+BAA+B;gBAC5C,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,8BAAiB,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;oBACpD,KAAK,EAAE,8BAAiB,CAAC,GAAG,CAAC,CAAC,KAAK;oBACnC,KAAK,EAAE,GAAG;iBACX,CAAC,CAAC;gBACH,OAAO,EAAE,qCAAwB;gBACjC,QAAQ,EAAE,IAAI;aACf;SACF;QACD,kBAAkB,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;YAClD,MAAM,EAAE,QAAQ,EAAE,GAAG,QAAQ,CAAA;YAC7B,OAAO,OAAO,CAAC,8BAAiB,CAAC,QAAQ,IAAI,qCAAwB,CAAC,CAAC,IAAI,EAAE;gBAC3E,OAAO,EAAE;oBACP,aAAa,EAAE,UAAU,QAAQ,CAAC,kBAAkB,EAAE;iBACvD;aACF,CAAC,CAAA;QACJ,CAAC;KACF;IACD,OAAO,EAAE;QACP,SAAS,EAAT,mBAAS;QACT,YAAY,EAAZ,sBAAY;KACb;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/segment-profiles/index.ts"],"names":[],"mappings":";;;;;AAEA,6CAA0E;AAE1E,4DAAmC;AAEnC,kEAAyC;AAEzC,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE,OAAO;IACb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,QAAQ,EAAE;gBACR,KAAK,EAAE,iBAAiB;gBACxB,WAAW,EAAE,+BAA+B;gBAC5C,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,8BAAiB,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;oBACpD,KAAK,EAAE,8BAAiB,CAAC,GAAG,CAAC,CAAC,KAAK;oBACnC,KAAK,EAAE,GAAG;iBACX,CAAC,CAAC;gBACH,OAAO,EAAE,qCAAwB;gBACjC,QAAQ,EAAE,IAAI;aACf;SACF;KACF;IACD,OAAO,EAAE;QACP,SAAS,EAAT,mBAAS;QACT,YAAY,EAAZ,sBAAY;KACb;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PAGINATION_COUNT = exports.DEFAULT_SEGMENT_ENDPOINT = exports.SEGMENT_ENDPOINTS = void 0;
4
- exports.SEGMENT_ENDPOINTS = {
4
+ const SEG_ENDPOINT = {
5
5
  north_america: {
6
6
  label: 'North America',
7
7
  url: 'https://api.segment.io/v1',
@@ -15,6 +15,15 @@ exports.SEGMENT_ENDPOINTS = {
15
15
  papi: 'https://eu1.api.segmentapis.com'
16
16
  }
17
17
  };
18
+ if (process.env.NODE_ENV != 'production') {
19
+ SEG_ENDPOINT.stage = {
20
+ label: 'Staging',
21
+ url: 'https://api.segment.build/v1',
22
+ cdn: 'https://cdn.segment.build/v1',
23
+ papi: 'https://api.segmentapis.build'
24
+ };
25
+ }
26
+ exports.SEGMENT_ENDPOINTS = SEG_ENDPOINT;
18
27
  exports.DEFAULT_SEGMENT_ENDPOINT = 'north_america';
19
28
  exports.PAGINATION_COUNT = 10;
20
29
  //# sourceMappingURL=properties.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../src/destinations/segment-profiles/properties.ts"],"names":[],"mappings":";;;AAOa,QAAA,iBAAiB,GAAuC;IACnE,aAAa,EAAE;QACb,KAAK,EAAE,eAAe;QACtB,GAAG,EAAE,2BAA2B;QAChC,GAAG,EAAE,4BAA4B;QACjC,IAAI,EAAE,6BAA6B;KACpC;IACD,MAAM,EAAE;QACN,KAAK,EAAE,QAAQ;QACf,GAAG,EAAE,uCAAuC;QAC5C,GAAG,EAAE,4BAA4B;QACjC,IAAI,EAAE,iCAAiC;KACxC;CACF,CAAA;AAEY,QAAA,wBAAwB,GAAG,eAAe,CAAA;AAE1C,QAAA,gBAAgB,GAAG,EAAE,CAAA"}
1
+ {"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../src/destinations/segment-profiles/properties.ts"],"names":[],"mappings":";;;AAMA,MAAM,YAAY,GAAuC;IACvD,aAAa,EAAE;QACb,KAAK,EAAE,eAAe;QACtB,GAAG,EAAE,2BAA2B;QAChC,GAAG,EAAE,4BAA4B;QACjC,IAAI,EAAE,6BAA6B;KACpC;IACD,MAAM,EAAE;QACN,KAAK,EAAE,QAAQ;QACf,GAAG,EAAE,uCAAuC;QAC5C,GAAG,EAAE,4BAA4B;QACjC,IAAI,EAAE,iCAAiC;KACxC;CACF,CAAA;AACD,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,YAAY,EAAE;IACxC,YAAY,CAAC,KAAK,GAAG;QACnB,KAAK,EAAE,SAAS;QAChB,GAAG,EAAE,8BAA8B;QACnC,GAAG,EAAE,8BAA8B;QACnC,IAAI,EAAE,+BAA+B;KACtC,CAAA;CACF;AACY,QAAA,iBAAiB,GAAG,YAAY,CAAA;AAChC,QAAA,wBAAwB,GAAG,eAAe,CAAA;AAE1C,QAAA,gBAAgB,GAAG,EAAE,CAAA"}
@@ -15,14 +15,6 @@ const action = {
15
15
  group_id: { ...segment_properties_1.group_id, required: true },
16
16
  traits: segment_properties_1.traits
17
17
  },
18
- dynamicFields: {
19
- engage_space: async (request, { settings }) => {
20
- return helperFunctions_1.getEngageSpaces(request, {
21
- endpoint: settings.endpoint,
22
- bearerToken: settings.segment_papi_token
23
- });
24
- }
25
- },
26
18
  perform: (request, { payload, settings }) => {
27
19
  if (!payload.anonymous_id && !payload.user_id) {
28
20
  throw errors_1.MissingUserOrAnonymousIdThrowableError;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment-profiles/sendGroup/index.ts"],"names":[],"mappings":";;AAGA,8DAA6F;AAC7F,wDAAmF;AACnF,8CAAiD;AACjD,sCAAyG;AAEzG,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,wGAAwG;IACrH,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,YAAY,EAAZ,iCAAY;QACZ,OAAO,EAAP,4BAAO;QACP,YAAY,EAAZ,iCAAY;QACZ,QAAQ,EAAE,EAAE,GAAG,6BAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QACzC,MAAM,EAAN,2BAAM;KACP;IACD,aAAa,EAAE;QACb,YAAY,EAAE,KAAK,EAAE,OA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@ const action = {
15
15
  group_id: segment_properties_1.group_id,
16
16
  traits: segment_properties_1.traits
17
17
  },
18
- dynamicFields: {
19
- engage_space: async (request, { settings }) => {
20
- return helperFunctions_1.getEngageSpaces(request, {
21
- endpoint: settings.endpoint,
22
- bearerToken: settings.segment_papi_token
23
- });
24
- }
25
- },
26
18
  perform: (request, { payload, settings }) => {
27
19
  if (!payload.anonymous_id && !payload.user_id) {
28
20
  throw errors_1.MissingUserOrAnonymousIdThrowableError;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment-profiles/sendIdentify/index.ts"],"names":[],"mappings":";;AAGA,8DAA6F;AAC7F,wDAAmF;AACnF,8CAAiD;AACjD,sCAAyG;AAEzG,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EACT,gIAAgI;IAClI,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,YAAY,EAAZ,iCAAY;QACZ,OAAO,EAAP,4BAAO;QACP,YAAY,EAAZ,iCAAY;QACZ,QAAQ,EAAR,6BAAQ;QACR,MAAM,EAAN,2BAAM;KACP;IACD,aAAa,EAAE;QACb,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;YAC5C,OAAO,iCAAe,CAAC,OAAO,EAAE;gBAC9B,QAAQ,EAAE,QAAQ,CAAC,QAAQ;gBAC3B,WAAW,EAAE,QAAQ,CAAC,kBAAkB;aACzC,CAAC,CAAA;QACJ,CAAC;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC1C,IAAI,CAAC,OAAO,CAAC,YAAY,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;YAC7C,MAAM,+CAAsC,CAAA;SAC7C;QACD,MAAM,YAAY,GAAW;YAC3B,MAAM,EAAE,OAAO,EAAE,OAAO;YACxB,WAAW,EAAE,OAAO,E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,GAAW;YAC3B,MAAM,EAAE,OAAO,EAAE,OAAO;YACxB,WAAW,EAAE,OAAO,EAAE,YAAY;YAClC,OAAO,EAAE,OAAO,EAAE,QAAQ;YAC1B,MAAM,EAAE;gBACN,GAAG,OAAO,EAAE,MAAM;aACnB;YACD,YAAY,EAAE;gBAGZ,GAAG,EAAE,KAAK;aACX;SACF,CAAA;QAGD,IAAI,CAAC,QAAQ,CAAC,QAAQ,IAAI,CAAC,CAAC,QAAQ,CAAC,QAAQ,IAAI,8BAAiB,CAAC,EAAE;YACnE,MAAM,8CAAqC,CAAA;SAC5C;QAED,MAAM,uBAAuB,GAAG,8BAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAA;QACxE,OAAO,OAAO,CAAC,GAAG,uBAAuB,WAAW,EAAE;YACpD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,YAAY;YAClB,OAAO,EAAE;gBACP,aAAa,EAAE,+CAA6B,CAAC,OAAO,CAAC,YAAY,CAAC;aACnE;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -282,6 +282,7 @@ const hash = (value) => {
282
282
  return hash.digest('hex');
283
283
  };
284
284
  exports.hash = hash;
285
+ const isHashedEmail = (email) => new RegExp(/[0-9abcdef]{64}/gi).test(email);
285
286
  const formatPayload = (payload) => {
286
287
  if (payload.email) {
287
288
  payload.email = payload.email.replace(/\s/g, '').toLowerCase();
@@ -297,7 +298,7 @@ const formatPayload = (payload) => {
297
298
  event_conversion_type: payload?.event_conversion_type,
298
299
  event_tag: payload?.event_tag,
299
300
  timestamp: Date.parse(payload?.timestamp),
300
- hashed_email: exports.hash(payload?.email),
301
+ hashed_email: isHashedEmail(String(payload?.email)) ? payload?.email : exports.hash(payload?.email),
301
302
  hashed_mobile_ad_id: exports.hash(payload?.mobile_ad_id),
302
303
  uuid_c1: payload?.uuid_c1,
303
304
  hashed_idfv: exports.hash(payload?.idfv),
@@ -1 +1 @@
1
- {"version":3,"file":"snap-capi-properties.js","sourceRoot":"","sources":["../../../src/destinations/snap-conversions-api/snap-capi-properties.ts"],"names":[],"mappings":";;;AAAA,wDAAwD;AAExD,mCAAmC;AAItB,QAAA,uBAAuB,GAAG,IAAI,GAAG,CAAC;IAC7C,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;CACN,CAAC,CAAA;AAEW,QAAA,UAAU,GAAe;IACpC,KAAK,EAAE,YAAY;IACnB,WAAW,EACT,8QAA8Q;IAChR,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,qBAAqB,GAAe;IAC/C,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EAAE,uEAAuE;IACpF,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE;QACP,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;QACtC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;QAC9B,EAAE,KAAK,EAAE,YAAY,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,OAAO,EAAE,aAAa;QACrC,QAAQ,EAAE,OAAO,EAAE,QAAQ;QAC3B,cAAc,EAAE,OAAO,EAAE,cAAc;QACvC,YAAY,EAAE,OAAO,EAAE,YAAY;QACnC,UAAU,EAAE,OAAO,EAAE,UAAU;QAC/B,QAAQ,EAAE,OAAO,EAAE,QAAQ;KAC5B,CAAA;AACH,CAAC,CAAA;AA7CY,QAAA,aAAa,iBA6CzB"}
1
+ {"version":3,"file":"snap-capi-properties.js","sourceRoot":"","sources":["../../../src/destinations/snap-conversions-api/snap-capi-properties.ts"],"names":[],"mappings":";;;AAAA,wDAAwD;AAExD,mCAAmC;AAItB,QAAA,uBAAuB,GAAG,IAAI,GAAG,CAAC;IAC7C,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;CACN,CAAC,CAAA;AAEW,QAAA,UAAU,GAAe;IACpC,KAAK,EAAE,YAAY;IACnB,WAAW,EACT,8QAA8Q;IAChR,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,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mBAAmB,EAAE,YAAI,CAAC,OAAO,EAAE,YAAY,CAAC;QAChD,UAAU,EAAE,OAAO,EAAE,UAAU;QAC/B,iBAAiB,EAAE,YAAI,CAAC,OAAO,EAAE,UAAU,CAAC;QAC5C,aAAa,EAAE,OAAO,EAAE,aAAa;QACrC,QAAQ,EAAE,OAAO,EAAE,QAAQ;QAC3B,WAAW,EAAE,OAAO,EAAE,WAAW;QACjC,YAAY,EAAE,OAAO,EAAE,YAAY;QACnC,KAAK,EAAE,OAAO,EAAE,KAAK;QACrB,QAAQ,EAAE,OAAO,EAAE,QAAQ;QAC3B,cAAc,EAAE,OAAO,EAAE,cAAc;QACvC,KAAK,EAAE,OAAO,EAAE,KAAK;QACrB,eAAe,EAAE,OAAO,EAAE,eAAe;QACzC,aAAa,EAAE,OAAO,EAAE,aAAa;QACrC,QAAQ,EAAE,OAAO,EAAE,QAAQ;QAC3B,cAAc,EAAE,OAAO,EAAE,cAAc;QACvC,YAAY,EAAE,OAAO,EAAE,YAAY;QACnC,UAAU,EAAE,OAAO,EAAE,UAAU;QAC/B,QAAQ,EAAE,OAAO,EAAE,QAAQ;KAC5B,CAAA;AACH,CAAC,CAAA;AA7CY,QAAA,aAAa,iBA6CzB"}
@@ -1,4 +1,6 @@
1
1
  export interface Settings {
2
2
  auth_token: string;
3
3
  advertiser_id: string;
4
+ __segment_internal_engage_force_full_sync: boolean;
5
+ __segment_internal_engage_batch_sync: boolean;
4
6
  }
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const syncAudience_1 = __importDefault(require("./syncAudience"));
7
7
  const destination = {
8
- name: 'The Trade Desk Crm',
8
+ name: 'The Trade Desk CRM',
9
9
  slug: 'actions-the-trade-desk-crm',
10
10
  mode: 'cloud',
11
11
  authentication: {
@@ -22,6 +22,20 @@ const destination = {
22
22
  description: 'The platform ID of the advertiser for which to retrieve the status of the specified CRM data segment.',
23
23
  type: 'string',
24
24
  required: true
25
+ },
26
+ __segment_internal_engage_force_full_sync: {
27
+ label: 'Force Full Sync',
28
+ description: 'Force Full Sync',
29
+ type: 'boolean',
30
+ required: true,
31
+ default: true
32
+ },
33
+ __segment_internal_engage_batch_sync: {
34
+ label: 'Supports batch sync via ADS',
35
+ description: 'Supports batch sync via ADS',
36
+ type: 'boolean',
37
+ required: true,
38
+ default: true
25
39
  }
26
40
  }
27
41
  },
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/the-trade-desk-crm/index.ts"],"names":[],"mappings":";;;;;AAGA,kEAAyC;AAEzC,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE,4BAA4B;IAClC,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,UAAU,EAAE;gBACV,KAAK,EAAE,sBAAsB;gBAC7B,WAAW,EACT,yRAAyR;gBAC3R,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,aAAa,EAAE;gBACb,KAAK,EAAE,eAAe;gBACtB,WAAW,EACT,uGAAuG;gBACzG,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;SACF;KACF;IACD,OAAO,EAAE;QACP,YAAY,EAAZ,sBAAY;KACb;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/the-trade-desk-crm/index.ts"],"names":[],"mappings":";;;;;AAGA,kEAAyC;AAEzC,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE,4BAA4B;IAClC,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,UAAU,EAAE;gBACV,KAAK,EAAE,sBAAsB;gBAC7B,WAAW,EACT,yRAAyR;gBAC3R,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,aAAa,EAAE;gBACb,KAAK,EAAE,eAAe;gBACtB,WAAW,EACT,uGAAuG;gBACzG,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,yCAAyC,EAAE;gBACzC,KAAK,EAAE,iBAAiB;gBACxB,WAAW,EAAE,iBAAiB;gBAC9B,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,IAAI;aACd;YACD,oCAAoC,EAAE;gBACpC,KAAK,EAAE,6BAA6B;gBACpC,WAAW,EAAE,6BAA6B;gBAC1C,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,IAAI;aACd;SACF;KACF;IACD,OAAO,EAAE;QACP,YAAY,EAAZ,sBAAY;KACb;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
@@ -208,7 +208,7 @@ const action = {
208
208
  json: {
209
209
  pixel_code: settings.pixelCode,
210
210
  event: payload.event,
211
- event_id: payload.event_id ? `${payload.event_id}_seg` : undefined,
211
+ event_id: payload.event_id ? `${payload.event_id}` : undefined,
212
212
  timestamp: payload.timestamp,
213
213
  test_event_code: payload.test_event_code,
214
214
  context: {