@segment/action-destinations 3.262.0-staging-7deef8195 → 3.262.0-staging.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/dist/destinations/amazon-ads/generated-types.d.ts +9 -0
  2. package/dist/destinations/amazon-ads/index.d.ts +2 -2
  3. package/dist/destinations/amazon-ads/index.js +180 -3
  4. package/dist/destinations/amazon-ads/index.js.map +1 -1
  5. package/dist/destinations/amazon-ads/syncAudiences/generated-types.d.ts +19 -0
  6. package/dist/destinations/amazon-ads/syncAudiences/index.js +168 -7
  7. package/dist/destinations/amazon-ads/syncAudiences/index.js.map +1 -1
  8. package/dist/destinations/blackbaud-raisers-edge-nxt/utils/index.d.ts +1 -1
  9. package/dist/destinations/chartmogul/index.js +1 -1
  10. package/dist/destinations/chartmogul/index.js.map +1 -1
  11. package/dist/destinations/display-video-360/addToAudience/index.js +2 -1
  12. package/dist/destinations/display-video-360/addToAudience/index.js.map +1 -1
  13. package/dist/destinations/display-video-360/errors.d.ts +1 -1
  14. package/dist/destinations/engage/utils/EngageActionPerformer.js +17 -2
  15. package/dist/destinations/engage/utils/EngageActionPerformer.js.map +1 -1
  16. package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.d.ts +3 -0
  17. package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.js +15 -0
  18. package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.js.map +1 -1
  19. package/dist/destinations/engage/utils/track.d.ts +20 -17
  20. package/dist/destinations/gameball/index.js +1 -1
  21. package/dist/destinations/gameball/index.js.map +1 -1
  22. package/dist/destinations/google-enhanced-conversions/functions.js.map +1 -1
  23. package/dist/destinations/hubspot/upsertCustomObjectRecord/index.js +4 -4
  24. package/dist/destinations/hubspot/upsertCustomObjectRecord/index.js.map +1 -1
  25. package/dist/destinations/index.js +0 -3
  26. package/dist/destinations/index.js.map +1 -1
  27. package/dist/destinations/kameleoon/index.js +9 -15
  28. package/dist/destinations/kameleoon/index.js.map +1 -1
  29. package/dist/destinations/kameleoon/logEvent/generated-types.d.ts +0 -2
  30. package/dist/destinations/kameleoon/logEvent/index.js +1 -13
  31. package/dist/destinations/kameleoon/logEvent/index.js.map +1 -1
  32. package/dist/destinations/klaviyo/functions.d.ts +7 -4
  33. package/dist/destinations/klaviyo/functions.js +80 -1
  34. package/dist/destinations/klaviyo/functions.js.map +1 -1
  35. package/dist/destinations/klaviyo/removeProfile/index.js +2 -0
  36. package/dist/destinations/klaviyo/removeProfile/index.js.map +1 -1
  37. package/dist/destinations/klaviyo/types.d.ts +97 -0
  38. package/dist/destinations/klaviyo/upsertProfile/index.js +29 -19
  39. package/dist/destinations/klaviyo/upsertProfile/index.js.map +1 -1
  40. package/dist/destinations/koala/identify/index.js +1 -6
  41. package/dist/destinations/koala/identify/index.js.map +1 -1
  42. package/dist/destinations/liveramp-audiences/audienceEnteredS3/index.js +2 -2
  43. package/dist/destinations/liveramp-audiences/audienceEnteredS3/index.js.map +1 -1
  44. package/dist/destinations/liveramp-audiences/audienceEnteredSftp/index.js +2 -2
  45. package/dist/destinations/liveramp-audiences/audienceEnteredSftp/index.js.map +1 -1
  46. package/dist/destinations/marketo-static-lists/addToList/index.js +4 -2
  47. package/dist/destinations/marketo-static-lists/addToList/index.js.map +1 -1
  48. package/dist/destinations/mixpanel/utils.d.ts +13 -0
  49. package/dist/destinations/mixpanel/utils.js +117 -0
  50. package/dist/destinations/mixpanel/utils.js.map +1 -0
  51. package/dist/destinations/moloco-rmp/index.js +2 -2
  52. package/dist/destinations/salesforce/generated-types.d.ts +0 -2
  53. package/dist/destinations/salesforce/index.d.ts +1 -1
  54. package/dist/destinations/salesforce/index.js +10 -22
  55. package/dist/destinations/salesforce/index.js.map +1 -1
  56. package/dist/destinations/salesforce/sf-operations.d.ts +1 -3
  57. package/dist/destinations/salesforce/sf-operations.js +0 -25
  58. package/dist/destinations/salesforce/sf-operations.js.map +1 -1
  59. package/dist/destinations/segment/segment-properties.js +2 -2
  60. package/dist/destinations/segment/segment-properties.js.map +1 -1
  61. package/dist/destinations/snap-conversions-api/_tests_/index.test.js +488 -420
  62. package/dist/destinations/snap-conversions-api/_tests_/index.test.js.map +1 -1
  63. package/dist/destinations/snap-conversions-api/index.js +42 -42
  64. package/dist/destinations/snap-conversions-api/index.js.map +1 -1
  65. package/dist/destinations/snap-conversions-api/reportConversionEvent/generated-types.d.ts +18 -97
  66. package/dist/destinations/snap-conversions-api/reportConversionEvent/index.js +29 -7
  67. package/dist/destinations/snap-conversions-api/reportConversionEvent/index.js.map +1 -1
  68. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v3.d.ts +4 -0
  69. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v3.js +119 -593
  70. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v3.js.map +1 -1
  71. package/dist/destinations/snap-conversions-api/reportConversionEvent/utils.d.ts +4 -3
  72. package/dist/destinations/snap-conversions-api/reportConversionEvent/utils.js +1 -6
  73. package/dist/destinations/snap-conversions-api/reportConversionEvent/utils.js.map +1 -1
  74. package/dist/destinations/stackadapt/forwardEvent/generated-types.d.ts +4 -4
  75. package/dist/destinations/stackadapt/forwardEvent/index.js +7 -11
  76. package/dist/destinations/stackadapt/forwardEvent/index.js.map +1 -1
  77. package/dist/destinations/tiktok-conversions/index.js +75 -163
  78. package/dist/destinations/tiktok-conversions/index.js.map +1 -1
  79. package/dist/destinations/tiktok-conversions/reportWebEvent/generated-types.d.ts +4 -12
  80. package/dist/destinations/tiktok-conversions/reportWebEvent/index.d.ts +1 -1
  81. package/dist/destinations/tiktok-conversions/reportWebEvent/index.js +233 -5
  82. package/dist/destinations/tiktok-conversions/reportWebEvent/index.js.map +1 -1
  83. package/package.json +3 -3
  84. package/dist/destinations/inleads-ai/common-fields.d.ts +0 -3
  85. package/dist/destinations/inleads-ai/common-fields.js +0 -238
  86. package/dist/destinations/inleads-ai/common-fields.js.map +0 -1
  87. package/dist/destinations/inleads-ai/contants.d.ts +0 -4
  88. package/dist/destinations/inleads-ai/contants.js +0 -8
  89. package/dist/destinations/inleads-ai/contants.js.map +0 -1
  90. package/dist/destinations/inleads-ai/generated-types.d.ts +0 -3
  91. package/dist/destinations/inleads-ai/generated-types.js +0 -3
  92. package/dist/destinations/inleads-ai/generated-types.js.map +0 -1
  93. package/dist/destinations/inleads-ai/group/generated-types.d.ts +0 -44
  94. package/dist/destinations/inleads-ai/group/generated-types.js +0 -3
  95. package/dist/destinations/inleads-ai/group/generated-types.js.map +0 -1
  96. package/dist/destinations/inleads-ai/group/index.d.ts +0 -5
  97. package/dist/destinations/inleads-ai/group/index.js +0 -76
  98. package/dist/destinations/inleads-ai/group/index.js.map +0 -1
  99. package/dist/destinations/inleads-ai/identify/generated-types.d.ts +0 -46
  100. package/dist/destinations/inleads-ai/identify/generated-types.js +0 -3
  101. package/dist/destinations/inleads-ai/identify/generated-types.js.map +0 -1
  102. package/dist/destinations/inleads-ai/identify/index.d.ts +0 -5
  103. package/dist/destinations/inleads-ai/identify/index.js +0 -120
  104. package/dist/destinations/inleads-ai/identify/index.js.map +0 -1
  105. package/dist/destinations/inleads-ai/index.d.ts +0 -4
  106. package/dist/destinations/inleads-ai/index.js +0 -67
  107. package/dist/destinations/inleads-ai/index.js.map +0 -1
  108. package/dist/destinations/inleads-ai/track/generated-types.d.ts +0 -45
  109. package/dist/destinations/inleads-ai/track/generated-types.js +0 -3
  110. package/dist/destinations/inleads-ai/track/generated-types.js.map +0 -1
  111. package/dist/destinations/inleads-ai/track/index.d.ts +0 -5
  112. package/dist/destinations/inleads-ai/track/index.js +0 -64
  113. package/dist/destinations/inleads-ai/track/index.js.map +0 -1
  114. package/dist/destinations/kameleoon/group/generated-types.d.ts +0 -12
  115. package/dist/destinations/kameleoon/group/generated-types.js +0 -3
  116. package/dist/destinations/kameleoon/group/generated-types.js.map +0 -1
  117. package/dist/destinations/kameleoon/group/index.d.ts +0 -5
  118. package/dist/destinations/kameleoon/group/index.js +0 -94
  119. package/dist/destinations/kameleoon/group/index.js.map +0 -1
  120. package/dist/destinations/kameleoon/identify/generated-types.d.ts +0 -11
  121. package/dist/destinations/kameleoon/identify/generated-types.js +0 -3
  122. package/dist/destinations/kameleoon/identify/generated-types.js.map +0 -1
  123. package/dist/destinations/kameleoon/identify/index.d.ts +0 -5
  124. package/dist/destinations/kameleoon/identify/index.js +0 -87
  125. package/dist/destinations/kameleoon/identify/index.js.map +0 -1
  126. package/dist/destinations/kameleoon/page/generated-types.d.ts +0 -15
  127. package/dist/destinations/kameleoon/page/generated-types.js +0 -3
  128. package/dist/destinations/kameleoon/page/generated-types.js.map +0 -1
  129. package/dist/destinations/kameleoon/page/index.d.ts +0 -5
  130. package/dist/destinations/kameleoon/page/index.js +0 -99
  131. package/dist/destinations/kameleoon/page/index.js.map +0 -1
  132. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-input-fields-deprecated.d.ts +0 -31
  133. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-input-fields-deprecated.js +0 -174
  134. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-input-fields-deprecated.js.map +0 -1
  135. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-input-fields-v3.d.ts +0 -16
  136. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-input-fields-v3.js +0 -640
  137. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-input-fields-v3.js.map +0 -1
  138. package/dist/destinations/spiffy/generated-types.d.ts +0 -5
  139. package/dist/destinations/spiffy/generated-types.js +0 -3
  140. package/dist/destinations/spiffy/generated-types.js.map +0 -1
  141. package/dist/destinations/spiffy/index.d.ts +0 -4
  142. package/dist/destinations/spiffy/index.js +0 -62
  143. package/dist/destinations/spiffy/index.js.map +0 -1
  144. package/dist/destinations/spiffy/send/generated-types.d.ts +0 -8
  145. package/dist/destinations/spiffy/send/generated-types.js +0 -3
  146. package/dist/destinations/spiffy/send/generated-types.js.map +0 -1
  147. package/dist/destinations/spiffy/send/index.d.ts +0 -5
  148. package/dist/destinations/spiffy/send/index.js +0 -42
  149. package/dist/destinations/spiffy/send/index.js.map +0 -1
  150. package/dist/destinations/tiktok-conversions/common_fields.d.ts +0 -2
  151. package/dist/destinations/tiktok-conversions/common_fields.js +0 -244
  152. package/dist/destinations/tiktok-conversions/common_fields.js.map +0 -1
  153. package/dist/destinations/tiktok-conversions/formatter.d.ts +0 -3
  154. package/dist/destinations/tiktok-conversions/formatter.js +0 -43
  155. package/dist/destinations/tiktok-conversions/formatter.js.map +0 -1
  156. package/dist/destinations/tiktok-conversions/utils.d.ts +0 -4
  157. package/dist/destinations/tiktok-conversions/utils.js +0 -65
  158. package/dist/destinations/tiktok-conversions/utils.js.map +0 -1
  159. package/dist/destinations/xtremepush/generated-types.d.ts +0 -4
  160. package/dist/destinations/xtremepush/generated-types.js +0 -3
  161. package/dist/destinations/xtremepush/generated-types.js.map +0 -1
  162. package/dist/destinations/xtremepush/identify/generated-types.d.ts +0 -14
  163. package/dist/destinations/xtremepush/identify/generated-types.js +0 -3
  164. package/dist/destinations/xtremepush/identify/generated-types.js.map +0 -1
  165. package/dist/destinations/xtremepush/identify/index.d.ts +0 -5
  166. package/dist/destinations/xtremepush/identify/index.js +0 -87
  167. package/dist/destinations/xtremepush/identify/index.js.map +0 -1
  168. package/dist/destinations/xtremepush/index.d.ts +0 -4
  169. package/dist/destinations/xtremepush/index.js +0 -66
  170. package/dist/destinations/xtremepush/index.js.map +0 -1
  171. package/dist/destinations/xtremepush/track/generated-types.d.ts +0 -15
  172. package/dist/destinations/xtremepush/track/generated-types.js +0 -3
  173. package/dist/destinations/xtremepush/track/generated-types.js.map +0 -1
  174. package/dist/destinations/xtremepush/track/index.d.ts +0 -5
  175. package/dist/destinations/xtremepush/track/index.js +0 -95
  176. package/dist/destinations/xtremepush/track/index.js.map +0 -1
@@ -1,15 +1,243 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const common_fields_1 = require("../common_fields");
4
- const utils_1 = require("../utils");
3
+ const formatter_1 = require("./formatter");
5
4
  const action = {
6
5
  title: 'Report Web Event',
7
- description: 'Report Web events directly to TikTok. Data shared can power TikTok solutions like dynamic product ads, custom targeting, campaign optimization and attribution.',
6
+ description: 'Report events directly to TikTok. Data shared can power TikTok solutions like dynamic product ads, custom targeting, campaign optimization and attribution.',
8
7
  fields: {
9
- ...common_fields_1.commonFields
8
+ event: {
9
+ label: 'Event Name',
10
+ type: 'string',
11
+ required: true,
12
+ description: 'Conversion event name. Please refer to the "Supported Web Events" section on in TikTok’s [Events API documentation](https://ads.tiktok.com/marketing_api/docs?id=1701890979375106) for accepted event names.'
13
+ },
14
+ event_id: {
15
+ label: 'Event ID',
16
+ type: 'string',
17
+ description: 'Any hashed ID that can identify a unique user/session.',
18
+ default: {
19
+ '@path': '$.messageId'
20
+ }
21
+ },
22
+ timestamp: {
23
+ label: 'Event Timestamp',
24
+ type: 'string',
25
+ description: 'Timestamp that the event took place, in ISO 8601 format.',
26
+ default: {
27
+ '@path': '$.timestamp'
28
+ }
29
+ },
30
+ phone_number: {
31
+ label: 'Phone Number',
32
+ description: 'Phone number of the user who triggered the conversion event, in E.164 standard format, e.g. +14150000000. Segment will hash this value before sending to TikTok.',
33
+ type: 'string',
34
+ default: {
35
+ '@if': {
36
+ exists: { '@path': '$.properties.phone' },
37
+ then: { '@path': '$.properties.phone' },
38
+ else: { '@path': '$.traits.phone' }
39
+ }
40
+ }
41
+ },
42
+ email: {
43
+ label: 'Email',
44
+ description: 'Email address of the user who triggered the conversion event. Segment will hash this value before sending to TikTok.',
45
+ type: 'string',
46
+ format: 'email',
47
+ default: {
48
+ '@if': {
49
+ exists: { '@path': '$.properties.email' },
50
+ then: { '@path': '$.properties.email' },
51
+ else: { '@path': '$.traits.email' }
52
+ }
53
+ }
54
+ },
55
+ external_id: {
56
+ label: 'External ID',
57
+ description: 'Uniquely identifies the user who triggered the conversion event. Segment will hash this value before sending to TikTok.',
58
+ type: 'string',
59
+ default: {
60
+ '@if': {
61
+ exists: { '@path': '$.userId' },
62
+ then: { '@path': '$.userId' },
63
+ else: { '@path': '$.anonymousId' }
64
+ }
65
+ }
66
+ },
67
+ ttclid: {
68
+ label: 'TikTok Click ID',
69
+ description: 'The value of the ttclid used to match website visitor events with TikTok ads. The ttclid is valid for 7 days. See [Set up ttclid](https://ads.tiktok.com/marketing_api/docs?rid=4eezrhr6lg4&id=1681728034437121) for details.',
70
+ type: 'string',
71
+ default: {
72
+ '@if': {
73
+ exists: { '@path': '$.properties.ttclid' },
74
+ then: { '@path': '$.properties.ttclid' },
75
+ else: { '@path': '$.traits.ttclid' }
76
+ }
77
+ }
78
+ },
79
+ lead_id: {
80
+ label: 'TikTok Lead ID',
81
+ description: 'ID of TikTok leads. Every lead will have its own lead_id when exported from TikTok. This feature is in Beta. Please contact your TikTok representative to inquire regarding availability',
82
+ type: 'string',
83
+ default: {
84
+ '@if': {
85
+ exists: { '@path': '$.properties.lead_id' },
86
+ then: { '@path': '$.properties.lead_id' },
87
+ else: { '@path': '$.traits.lead_id' }
88
+ }
89
+ }
90
+ },
91
+ url: {
92
+ label: 'Page URL',
93
+ type: 'string',
94
+ description: 'The page URL where the conversion event took place.',
95
+ default: {
96
+ '@path': '$.context.page.url'
97
+ }
98
+ },
99
+ referrer: {
100
+ label: 'Page Referrer',
101
+ type: 'string',
102
+ description: 'The page referrer.',
103
+ default: {
104
+ '@path': '$.context.page.referrer'
105
+ }
106
+ },
107
+ ip: {
108
+ label: 'IP Address',
109
+ type: 'string',
110
+ description: 'IP address of the browser.',
111
+ default: {
112
+ '@path': '$.context.ip'
113
+ }
114
+ },
115
+ user_agent: {
116
+ label: 'User Agent',
117
+ type: 'string',
118
+ description: 'User agent from the user’s device.',
119
+ default: {
120
+ '@path': '$.context.userAgent'
121
+ }
122
+ },
123
+ contents: {
124
+ label: 'Contents',
125
+ type: 'object',
126
+ multiple: true,
127
+ description: 'Related items in a web event.',
128
+ properties: {
129
+ price: {
130
+ label: 'Price',
131
+ description: 'Price of the item.',
132
+ type: 'number'
133
+ },
134
+ quantity: {
135
+ label: 'Quantity',
136
+ description: 'Number of items.',
137
+ type: 'number'
138
+ },
139
+ content_type: {
140
+ label: 'Content Type',
141
+ description: 'Type of the product item.',
142
+ type: 'string'
143
+ },
144
+ content_id: {
145
+ label: 'Content ID',
146
+ description: 'ID of the product item.',
147
+ type: 'string'
148
+ }
149
+ }
150
+ },
151
+ currency: {
152
+ label: 'Currency',
153
+ type: 'string',
154
+ description: 'Currency for the value specified as ISO 4217 code.',
155
+ default: {
156
+ '@path': '$.properties.currency'
157
+ }
158
+ },
159
+ value: {
160
+ label: 'Value',
161
+ type: 'number',
162
+ description: 'Value of the order or items sold.',
163
+ default: {
164
+ '@if': {
165
+ exists: { '@path': '$.properties.value' },
166
+ then: { '@path': '$.properties.value' },
167
+ else: { '@path': '$.properties.revenue' }
168
+ }
169
+ }
170
+ },
171
+ description: {
172
+ label: 'Description',
173
+ type: 'string',
174
+ description: 'A string description of the web event.'
175
+ },
176
+ query: {
177
+ label: 'Query',
178
+ type: 'string',
179
+ description: 'The text string that was searched for.',
180
+ default: {
181
+ '@path': '$.properties.query'
182
+ }
183
+ },
184
+ test_event_code: {
185
+ label: 'Test Event Code',
186
+ type: 'string',
187
+ description: 'Use this field to specify that events should be test events rather than actual traffic. You can find your Test Event Code in your TikTok Events Manager under the "Test Event" tab. You\'ll want to remove your Test Event Code when sending real traffic through this integration.'
188
+ }
10
189
  },
11
190
  perform: (request, { payload, settings }) => {
12
- return utils_1.performWebEvent(request, settings, payload);
191
+ const userData = {
192
+ hashedExternalId: formatter_1.formatUserId(payload.external_id),
193
+ hashedEmail: formatter_1.formatEmail(payload.email),
194
+ hashedPhoneNumber: formatter_1.formatPhone(payload.phone_number)
195
+ };
196
+ let payloadUrl, urlTtclid;
197
+ if (payload.url) {
198
+ try {
199
+ payloadUrl = new URL(payload.url);
200
+ }
201
+ catch (error) {
202
+ }
203
+ }
204
+ if (payloadUrl)
205
+ urlTtclid = payloadUrl.searchParams.get('ttclid');
206
+ return request('https://business-api.tiktok.com/open_api/v1.3/pixel/track/', {
207
+ method: 'post',
208
+ json: {
209
+ pixel_code: settings.pixelCode,
210
+ event: payload.event,
211
+ event_id: payload.event_id ? `${payload.event_id}` : undefined,
212
+ timestamp: payload.timestamp,
213
+ test_event_code: payload.test_event_code,
214
+ context: {
215
+ user: {
216
+ external_id: userData.hashedExternalId,
217
+ phone_number: userData.hashedPhoneNumber,
218
+ email: userData.hashedEmail,
219
+ lead_id: payload.lead_id
220
+ },
221
+ ad: {
222
+ callback: payload.ttclid ? payload.ttclid : urlTtclid ? urlTtclid : undefined
223
+ },
224
+ page: {
225
+ url: payload.url,
226
+ referrer: payload.referrer
227
+ },
228
+ ip: payload.ip,
229
+ user_agent: payload.user_agent
230
+ },
231
+ properties: {
232
+ contents: payload.contents,
233
+ currency: payload.currency,
234
+ value: payload.value,
235
+ description: payload.description,
236
+ query: payload.query
237
+ },
238
+ partner_name: 'Segment'
239
+ }
240
+ });
13
241
  }
14
242
  };
15
243
  exports.default = action;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/tiktok-conversions/reportWebEvent/index.ts"],"names":[],"mappings":";;AAGA,oDAA+C;AAC/C,oCAA0C;AAE1C,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,kBAAkB;IACzB,WAAW,EACT,iKAAiK;IACnK,MAAM,EAAE;QACN,GAAG,4BAAY;KAChB;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC1C,OAAO,uBAAe,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA;IACpD,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/tiktok-conversions/reportWebEvent/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;wBACJ,WAAW,EAAE,QAAQ,CAAC,gBAAgB;wBACtC,YAAY,EAAE,QAAQ,CAAC,iBAAiB;wBACxC,KAAK,EAAE,QAAQ,CAAC,WAAW;wBAC3B,OAAO,EAAE,OAAO,CAAC,OAAO;qBACzB;oBACD,EAAE,EAAE;wBACF,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;qBAC9E;oBACD,IAAI,EAAE;wBACJ,GAAG,EAAE,OAAO,CAAC,GAAG;wBAChB,QAAQ,EAAE,OAAO,CAAC,QAAQ;qBAC3B;oBACD,EAAE,EAAE,OAAO,CAAC,EAAE;oBACd,UAAU,EAAE,OAAO,CAAC,UAAU;iBAC/B;gBACD,UAAU,EAAE;oBACV,QAAQ,EAAE,OAAO,CAAC,QAAQ;oBAC1B,QAAQ,EAAE,OAAO,CAAC,QAAQ;oBAC1B,KAAK,EAAE,OAAO,CAAC,KAAK;oBACpB,WAAW,EAAE,OAAO,CAAC,WAAW;oBAChC,KAAK,EAAE,OAAO,CAAC,KAAK;iBACrB;gBACD,YAAY,EAAE,SAAS;aACxB;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
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.262.0-staging-7deef8195",
4
+ "version": "3.262.0-staging.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/segmentio/action-destinations",
@@ -43,8 +43,8 @@
43
43
  "@bufbuild/protobuf": "^1.4.2",
44
44
  "@bufbuild/protoc-gen-es": "^1.4.2",
45
45
  "@segment/a1-notation": "^2.1.4",
46
- "@segment/actions-core": "3.107.0-staging-7deef8195",
47
- "@segment/actions-shared": "^1.88.0",
46
+ "@segment/actions-core": "3.106.0-staging-5f3508561",
47
+ "@segment/actions-shared": "^1.87.0",
48
48
  "@types/node": "^18.11.15",
49
49
  "ajv-formats": "^2.1.1",
50
50
  "aws4": "^1.12.0",
@@ -1,3 +0,0 @@
1
- import { ActionDefinition } from '@segment/actions-core';
2
- import { Settings } from './generated-types';
3
- export declare const commonFields: ActionDefinition<Settings>['fields'];
@@ -1,238 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.commonFields = void 0;
4
- exports.commonFields = {
5
- userMeta: {
6
- label: 'User Metadata',
7
- type: 'object',
8
- description: 'User metadata including IP, Location, etc.',
9
- properties: {
10
- ip: {
11
- label: 'IP Address',
12
- description: "The user's IP address.",
13
- type: 'string',
14
- required: false
15
- },
16
- latitude: {
17
- label: 'Latitude',
18
- description: "The latitude coordinate of the user's location.",
19
- type: 'number',
20
- required: false
21
- },
22
- longitude: {
23
- label: 'Longitude',
24
- description: "The longitude coordinate of the user's location.",
25
- type: 'number',
26
- required: false
27
- },
28
- country: {
29
- label: 'Country',
30
- description: "The country of the user's location.",
31
- type: 'string',
32
- required: false
33
- },
34
- city: {
35
- label: 'City',
36
- description: "The city of the user's location.",
37
- type: 'string',
38
- required: false
39
- },
40
- browser: {
41
- label: 'Browser',
42
- description: "The user's web browser.",
43
- type: 'string',
44
- required: false
45
- },
46
- os: {
47
- label: 'Operating System',
48
- description: "The user's operating system.",
49
- type: 'string',
50
- required: false
51
- },
52
- osVersion: {
53
- label: 'OS Version',
54
- description: "The version of the user's operating system.",
55
- type: 'string',
56
- required: false
57
- },
58
- deviceType: {
59
- label: 'Device Type',
60
- description: 'The type of device the user is using.',
61
- type: 'string',
62
- required: false
63
- },
64
- deviceVendor: {
65
- label: 'Device Vendor',
66
- description: "The vendor or manufacturer of the user's device.",
67
- type: 'string',
68
- required: false
69
- },
70
- deviceModel: {
71
- label: 'Device Model',
72
- description: "The model of the user's device.",
73
- type: 'string',
74
- required: false
75
- },
76
- timeZone: {
77
- label: 'Time Zone',
78
- description: "The time zone of the user's location.",
79
- type: 'string',
80
- required: false
81
- }
82
- },
83
- default: {
84
- ip: { '@path': '$.context.ip' },
85
- latitude: { '@path': '$.context.location.latitude' },
86
- longitude: { '@path': '$.context.location.longitude' },
87
- country: { '@path': '$.context.location.country' },
88
- city: { '@path': '$.context.location.city' },
89
- browser: { '@path': '$.context.userAgent' },
90
- os: { '@path': '$.context.os.name' },
91
- osVersion: { '@path': '$.context.os.version' },
92
- deviceType: { '@path': '$.context.device.type' },
93
- deviceVendor: { '@path': '$.context.device.manufacturer' },
94
- deviceModel: { '@path': '$.context.device.model' },
95
- timeZone: {
96
- '@if': {
97
- exists: { '@path': '$.context.timezone' },
98
- then: { '@path': '$.context.timezone' },
99
- else: { '@path': '$.properties.timezone' }
100
- }
101
- }
102
- },
103
- defaultObjectUI: 'keyvalue'
104
- },
105
- anonymous_id: {
106
- type: 'string',
107
- allowNull: true,
108
- required: false,
109
- description: 'User Anonymous id',
110
- label: 'Anonymous ID',
111
- default: { '@path': '$.anonymousId' }
112
- },
113
- event_id: {
114
- type: 'string',
115
- required: false,
116
- description: 'The ID of the event.',
117
- label: 'Event ID',
118
- default: { '@path': '$.messageId' }
119
- },
120
- url: {
121
- type: 'string',
122
- required: false,
123
- description: 'The URL of the page where the event occurred.',
124
- label: 'URL',
125
- default: { '@path': '$.context.page.url' }
126
- },
127
- referer: {
128
- type: 'string',
129
- required: false,
130
- description: 'The referrer of the page where the event occurred.',
131
- label: 'Referrer',
132
- default: { '@path': '$.context.page.referrer' }
133
- },
134
- user_language: {
135
- type: 'string',
136
- required: false,
137
- description: 'The language of the browser.',
138
- label: 'User Language',
139
- default: { '@path': '$.context.locale' }
140
- },
141
- utc_time: {
142
- type: 'string',
143
- required: true,
144
- description: 'The time of the event in UTC.',
145
- label: 'UTC Time',
146
- format: 'date-time',
147
- default: { '@path': '$.timestamp' }
148
- },
149
- utm: {
150
- type: 'object',
151
- required: false,
152
- description: 'Information about the UTM parameters.',
153
- label: 'UTM',
154
- properties: {
155
- source: {
156
- label: 'Source',
157
- description: 'The source of the campaign.',
158
- type: 'string'
159
- },
160
- medium: {
161
- label: 'Medium',
162
- description: 'The medium of the campaign.',
163
- type: 'string'
164
- },
165
- name: {
166
- label: 'Name',
167
- description: 'The name of the campaign.',
168
- type: 'string'
169
- },
170
- term: {
171
- label: 'Term',
172
- description: 'The term of the campaign.',
173
- type: 'string'
174
- },
175
- content: {
176
- label: 'Content',
177
- description: 'The content of the campaign.',
178
- type: 'string'
179
- }
180
- },
181
- default: {
182
- source: { '@path': '$.context.campaign.source' },
183
- medium: { '@path': '$.context.campaign.medium' },
184
- name: { '@path': '$.context.campaign.name' },
185
- term: { '@path': '$.context.campaign.term' },
186
- content: { '@path': '$.context.campaign.content' }
187
- }
188
- },
189
- screen: {
190
- type: 'object',
191
- required: false,
192
- description: 'Information about the screen.',
193
- label: 'Screen',
194
- properties: {
195
- height: {
196
- label: 'Height',
197
- description: 'The height of the screen.',
198
- type: 'integer'
199
- },
200
- width: {
201
- label: 'Width',
202
- description: 'The width of the screen.',
203
- type: 'integer'
204
- },
205
- density: {
206
- label: 'Density',
207
- description: 'The density of the screen.',
208
- type: 'number'
209
- }
210
- },
211
- default: {
212
- height: { '@path': '$.context.screen.height' },
213
- width: { '@path': '$.context.screen.width' },
214
- density: { '@path': '$.context.screen.density' }
215
- }
216
- },
217
- timezone: {
218
- type: 'string',
219
- required: false,
220
- description: 'The timezone of the browser.',
221
- label: 'Timezone',
222
- default: {
223
- '@if': {
224
- exists: { '@path': '$.context.timezone' },
225
- then: { '@path': '$.context.timezone' },
226
- else: { '@path': '$.properties.timezone' }
227
- }
228
- }
229
- },
230
- source_ip: {
231
- type: 'string',
232
- required: false,
233
- description: 'The IP address of the user.',
234
- label: 'IP Address',
235
- default: { '@path': '$.context.ip' }
236
- }
237
- };
238
- //# sourceMappingURL=common-fields.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"common-fields.js","source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AE,4BAA4B;gBACzC,IAAI,EAAE,QAAQ;aACf;SACF;QACD,OAAO,EAAE;YACP,MAAM,EAAE,EAAE,OAAO,EAAE,yBAAyB,EAAE;YAC9C,KAAK,EAAE,EAAE,OAAO,EAAE,wBAAwB,EAAE;YAC5C,OAAO,EAAE,EAAE,OAAO,EAAE,0BAA0B,EAAE;SACjD;KACF;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,8BAA8B;QAC3C,KAAK,EAAE,UAAU;QACjB,OAAO,EAAE;YACP,KAAK,EAAE;gBACL,MAAM,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;gBACzC,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;gBACvC,IAAI,EAAE,EAAE,OAAO,EAAE,uBAAuB,EAAE;aAC3C;SACF;KACF;IACD,SAAS,EAAE;QACT,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,6BAA6B;QAC1C,KAAK,EAAE,YAAY;QACnB,OAAO,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE;KACrC;CACF,CAAA"}
@@ -1,4 +0,0 @@
1
- export declare const IntegrationName = "Inleads AI";
2
- export declare const IntegrationWebsite = "inleads.ai";
3
- export declare const IntegrationBaseUrl = "https://server.inleads.ai";
4
- export declare const PartnerActionName = "postToInleadsAI";
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PartnerActionName = exports.IntegrationBaseUrl = exports.IntegrationWebsite = exports.IntegrationName = void 0;
4
- exports.IntegrationName = "Inleads AI";
5
- exports.IntegrationWebsite = "inleads.ai";
6
- exports.IntegrationBaseUrl = "https://server.inleads.ai";
7
- exports.PartnerActionName = "postToInleadsAI";
8
- //# sourceMappingURL=contants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"contants.js","sourceRoot":"","sources":["../../../src/destinations/inleads-ai/contants.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,YAAY,CAAC;AAC/B,QAAA,kBAAkB,GAAG,YAAY,CAAC;AAClC,QAAA,kBAAkB,GAAG,2BAA2B,CAAC;AACjD,QAAA,iBAAiB,GAAG,iBAAiB,CAAC"}
@@ -1,3 +0,0 @@
1
- export interface Settings {
2
- apiKey: string;
3
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=generated-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/destinations/inleads-ai/generated-types.ts"],"names":[],"mappings":""}
@@ -1,44 +0,0 @@
1
- export interface Payload {
2
- account_id: string;
3
- user_id?: string;
4
- name: string;
5
- created_at?: string;
6
- traits?: {
7
- [k: string]: unknown;
8
- };
9
- website?: string;
10
- userMeta?: {
11
- ip?: string;
12
- latitude?: number;
13
- longitude?: number;
14
- country?: string;
15
- city?: string;
16
- browser?: string;
17
- os?: string;
18
- osVersion?: string;
19
- deviceType?: string;
20
- deviceVendor?: string;
21
- deviceModel?: string;
22
- timeZone?: string;
23
- };
24
- anonymous_id?: string | null;
25
- event_id?: string;
26
- url?: string;
27
- referer?: string;
28
- user_language?: string;
29
- utc_time: string;
30
- utm?: {
31
- source?: string;
32
- medium?: string;
33
- name?: string;
34
- term?: string;
35
- content?: string;
36
- };
37
- screen?: {
38
- height?: number;
39
- width?: number;
40
- density?: number;
41
- };
42
- timezone?: string;
43
- source_ip?: string;
44
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=generated-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/inleads-ai/group/generated-types.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
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;