@segment/analytics-browser-actions-tiktok-pixel 1.94.1-staging-108b283de.0 → 1.95.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 (75) hide show
  1. package/dist/cjs/constants.d.ts +2 -0
  2. package/dist/cjs/constants.js +6 -0
  3. package/dist/cjs/constants.js.map +1 -0
  4. package/dist/cjs/fields/common_fields.d.ts +2 -0
  5. package/dist/cjs/{common_fields.js → fields/common_fields.js} +2 -113
  6. package/dist/cjs/fields/common_fields.js.map +1 -0
  7. package/dist/cjs/identify/generated-types.d.ts +0 -17
  8. package/dist/cjs/identify/index.js +10 -20
  9. package/dist/cjs/identify/index.js.map +1 -1
  10. package/dist/cjs/reportWebEvent/fields.d.ts +2 -0
  11. package/dist/cjs/reportWebEvent/fields.js +161 -0
  12. package/dist/cjs/reportWebEvent/fields.js.map +1 -0
  13. package/dist/cjs/reportWebEvent/generated-types.d.ts +62 -11
  14. package/dist/cjs/reportWebEvent/index.js +12 -24
  15. package/dist/cjs/reportWebEvent/index.js.map +1 -1
  16. package/dist/cjs/reportWebEvent/travel_fields.d.ts +2 -0
  17. package/dist/cjs/reportWebEvent/travel_fields.js +210 -0
  18. package/dist/cjs/reportWebEvent/travel_fields.js.map +1 -0
  19. package/dist/cjs/reportWebEvent/utils.d.ts +3 -0
  20. package/dist/cjs/reportWebEvent/utils.js +101 -0
  21. package/dist/cjs/reportWebEvent/utils.js.map +1 -0
  22. package/dist/cjs/reportWebEvent/vehicle_fields.d.ts +2 -0
  23. package/dist/cjs/reportWebEvent/vehicle_fields.js +255 -0
  24. package/dist/cjs/reportWebEvent/vehicle_fields.js.map +1 -0
  25. package/dist/cjs/types.d.ts +85 -29
  26. package/dist/cjs/utils.d.ts +4 -0
  27. package/dist/cjs/utils.js +18 -0
  28. package/dist/cjs/utils.js.map +1 -0
  29. package/dist/esm/constants.d.ts +2 -0
  30. package/dist/esm/constants.js +3 -0
  31. package/dist/esm/constants.js.map +1 -0
  32. package/dist/esm/fields/common_fields.d.ts +2 -0
  33. package/dist/esm/{common_fields.js → fields/common_fields.js} +1 -112
  34. package/dist/esm/fields/common_fields.js.map +1 -0
  35. package/dist/esm/identify/generated-types.d.ts +0 -17
  36. package/dist/esm/identify/index.js +10 -20
  37. package/dist/esm/identify/index.js.map +1 -1
  38. package/dist/esm/reportWebEvent/fields.d.ts +2 -0
  39. package/dist/esm/reportWebEvent/fields.js +158 -0
  40. package/dist/esm/reportWebEvent/fields.js.map +1 -0
  41. package/dist/esm/reportWebEvent/generated-types.d.ts +62 -11
  42. package/dist/esm/reportWebEvent/index.js +12 -24
  43. package/dist/esm/reportWebEvent/index.js.map +1 -1
  44. package/dist/esm/reportWebEvent/travel_fields.d.ts +2 -0
  45. package/dist/esm/reportWebEvent/travel_fields.js +207 -0
  46. package/dist/esm/reportWebEvent/travel_fields.js.map +1 -0
  47. package/dist/esm/reportWebEvent/utils.d.ts +3 -0
  48. package/dist/esm/reportWebEvent/utils.js +98 -0
  49. package/dist/esm/reportWebEvent/utils.js.map +1 -0
  50. package/dist/esm/reportWebEvent/vehicle_fields.d.ts +2 -0
  51. package/dist/esm/reportWebEvent/vehicle_fields.js +252 -0
  52. package/dist/esm/reportWebEvent/vehicle_fields.js.map +1 -0
  53. package/dist/esm/types.d.ts +85 -29
  54. package/dist/esm/utils.d.ts +4 -0
  55. package/dist/esm/utils.js +15 -0
  56. package/dist/esm/utils.js.map +1 -0
  57. package/dist/tsconfig.tsbuildinfo +1 -1
  58. package/package.json +4 -4
  59. package/src/constants.ts +2 -0
  60. package/src/{common_fields.ts → fields/common_fields.ts} +1 -114
  61. package/src/identify/generated-types.ts +0 -65
  62. package/src/identify/index.ts +10 -20
  63. package/src/reportWebEvent/__tests__/index.test.ts +521 -23
  64. package/src/reportWebEvent/fields.ts +162 -0
  65. package/src/reportWebEvent/generated-types.ts +239 -41
  66. package/src/reportWebEvent/index.ts +14 -26
  67. package/src/reportWebEvent/travel_fields.ts +216 -0
  68. package/src/reportWebEvent/utils.ts +167 -0
  69. package/src/reportWebEvent/vehicle_fields.ts +255 -0
  70. package/src/types.ts +89 -54
  71. package/src/utils.ts +18 -0
  72. package/dist/cjs/common_fields.d.ts +0 -2
  73. package/dist/cjs/common_fields.js.map +0 -1
  74. package/dist/esm/common_fields.d.ts +0 -2
  75. package/dist/esm/common_fields.js.map +0 -1
@@ -0,0 +1,2 @@
1
+ export declare const VEHICLE_FIELDS = "vehicle_fields";
2
+ export declare const TRAVEL_FIELDS = "travel_fields";
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TRAVEL_FIELDS = exports.VEHICLE_FIELDS = void 0;
4
+ exports.VEHICLE_FIELDS = 'vehicle_fields';
5
+ exports.TRAVEL_FIELDS = 'travel_fields';
6
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GAAG,gBAAgB,CAAA;AACjC,QAAA,aAAa,GAAG,eAAe,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { InputField } from '@segment/actions-core';
2
+ export declare const common_fields: Record<string, InputField>;
@@ -1,21 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.commonFields = void 0;
4
- exports.commonFields = {
5
- event: {
6
- label: 'Event Name',
7
- type: 'string',
8
- required: true,
9
- description: 'Conversion event name. Please refer to the "Supported Web Events" section on in TikTok’s [Pixel SDK documentation](https://business-api.tiktok.com/portal/docs?id=1739585696931842) for accepted event names.'
10
- },
11
- event_id: {
12
- label: 'Event ID',
13
- type: 'string',
14
- description: 'Any hashed ID that can identify a unique user/session.',
15
- default: {
16
- '@path': '$.messageId'
17
- }
18
- },
3
+ exports.common_fields = void 0;
4
+ exports.common_fields = {
19
5
  phone_number: {
20
6
  label: 'Phone Number',
21
7
  description: 'A single phone number in E.164 standard format. TikTok Pixel will hash this value before sending to TikTok. e.g. +14150000000. Segment will hash this value before sending to TikTok.',
@@ -124,22 +110,6 @@ exports.commonFields = {
124
110
  }
125
111
  }
126
112
  },
127
- order_id: {
128
- label: 'Order ID',
129
- type: 'string',
130
- description: 'Order ID of the transaction.',
131
- default: {
132
- '@path': '$.properties.order_id'
133
- }
134
- },
135
- shop_id: {
136
- label: 'Shop ID',
137
- type: 'string',
138
- description: 'Shop ID of the transaction.',
139
- default: {
140
- '@path': '$.properties.shop_id'
141
- }
142
- },
143
113
  external_id: {
144
114
  label: 'External ID',
145
115
  description: 'Uniquely identifies the user who triggered the conversion event. TikTok Pixel will hash this value before sending to TikTok.',
@@ -152,87 +122,6 @@ exports.commonFields = {
152
122
  else: { '@path': '$.anonymousId' }
153
123
  }
154
124
  }
155
- },
156
- contents: {
157
- label: 'Contents',
158
- type: 'object',
159
- multiple: true,
160
- description: 'Related item details for the event.',
161
- properties: {
162
- price: {
163
- label: 'Price',
164
- description: 'Price of the item.',
165
- type: 'number'
166
- },
167
- quantity: {
168
- label: 'Quantity',
169
- description: 'Number of items.',
170
- type: 'number'
171
- },
172
- content_category: {
173
- label: 'Content Category',
174
- description: 'Category of the product item.',
175
- type: 'string'
176
- },
177
- content_id: {
178
- label: 'Content ID',
179
- description: 'ID of the product item.',
180
- type: 'string'
181
- },
182
- content_name: {
183
- label: 'Content Name',
184
- description: 'Name of the product item.',
185
- type: 'string'
186
- },
187
- brand: {
188
- label: 'Brand',
189
- description: 'Brand name of the product item.',
190
- type: 'string'
191
- }
192
- }
193
- },
194
- content_type: {
195
- label: 'Content Type',
196
- description: 'Type of the product item. When the `content_id` in the `Contents` field is specified as a `sku_id`, set this field to `product`. When the `content_id` in the `Contents` field is specified as an `item_group_id`, set this field to `product_group`.',
197
- type: 'string',
198
- choices: [
199
- { label: 'product', value: 'product' },
200
- { label: 'product_group', value: 'product_group' }
201
- ],
202
- default: 'product'
203
- },
204
- currency: {
205
- label: 'Currency',
206
- type: 'string',
207
- description: 'Currency for the value specified as ISO 4217 code.',
208
- default: {
209
- '@path': '$.properties.currency'
210
- }
211
- },
212
- value: {
213
- label: 'Value',
214
- type: 'number',
215
- description: 'Value of the order or items sold.',
216
- default: {
217
- '@if': {
218
- exists: { '@path': '$.properties.value' },
219
- then: { '@path': '$.properties.value' },
220
- else: { '@path': '$.properties.revenue' }
221
- }
222
- }
223
- },
224
- description: {
225
- label: 'Description',
226
- type: 'string',
227
- description: 'A string description of the web event.'
228
- },
229
- query: {
230
- label: 'Query',
231
- type: 'string',
232
- description: 'The text string that was searched for.',
233
- default: {
234
- '@path': '$.properties.query'
235
- }
236
125
  }
237
126
  };
238
127
  //# sourceMappingURL=common_fields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common_fields.js","sourceRoot":"","sources":["../../../src/fields/common_fields.ts"],"names":[],"mappings":";;;AAEa,QAAA,aAAa,GAA+B;IACvD,YAAY,EAAE;QACZ,KAAK,EAAE,cAAc;QACrB,WAAW,EACT,uLAAuL;QACzL,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,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,wBAAwB,EAAE;aAC5C;SACF;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE,OAAO;QACd,WAAW,EAAE,wFAAwF;QACrG,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,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,wBAAwB,EAAE;aAC5C;SACF;KACF;IACD,UAAU,E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D,IAAI,EAAE,EAAE,OAAO,EAAE,2BAA2B,EAAE;oBAC9C,IAAI,EAAE,EAAE,OAAO,EAAE,+BAA+B,EAAE;iBACnD;aACF;YACD,OAAO,EAAE;gBACP,KAAK,EAAE;oBACL,MAAM,EAAE,EAAE,OAAO,EAAE,8BAA8B,EAAE;oBACnD,IAAI,EAAE,EAAE,OAAO,EAAE,8BAA8B,EAAE;oBACjD,IAAI,EAAE,EAAE,OAAO,EAAE,kCAAkC,EAAE;iBACtD;aACF;YACD,QAAQ,EAAE;gBACR,KAAK,EAAE;oBACL,MAAM,EAAE,EAAE,OAAO,EAAE,kCAAkC,EAAE;oBACvD,IAAI,EAAE,EAAE,OAAO,EAAE,kCAAkC,EAAE;oBACrD,IAAI,EAAE,EAAE,OAAO,EAAE,sCAAsC,EAAE;iBAC1D;aACF;YACD,KAAK,EAAE;gBACL,KAAK,EAAE;oBACL,MAAM,EAAE,EAAE,OAAO,EAAE,4BAA4B,EAAE;oBACjD,IAAI,EAAE,EAAE,OAAO,EAAE,4BAA4B,EAAE;oBAC/C,IAAI,EAAE,EAAE,OAAO,EAAE,gCAAgC,EAAE;iBACpD;aACF;SACF;KACF;IACD,WAAW,EAAE;QACX,KAAK,EAAE,aAAa;QACpB,WAAW,EACT,8HAA8H;QAChI,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE;YACP,KAAK,EAAE;gBACL,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;gBAC/B,IAAI,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;gBAC7B,IAAI,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE;aACnC;SACF;KACF;CACF,CAAA"}
@@ -1,6 +1,4 @@
1
1
  export interface Payload {
2
- event: string;
3
- event_id?: string;
4
2
  phone_number?: string[];
5
3
  email?: string[];
6
4
  first_name?: string;
@@ -11,20 +9,5 @@ export interface Payload {
11
9
  zip_code?: string;
12
10
  state?: string;
13
11
  };
14
- order_id?: string;
15
- shop_id?: string;
16
12
  external_id?: string[];
17
- contents?: {
18
- price?: number;
19
- quantity?: number;
20
- content_category?: string;
21
- content_id?: string;
22
- content_name?: string;
23
- brand?: string;
24
- }[];
25
- content_type?: string;
26
- currency?: string;
27
- value?: number;
28
- description?: string;
29
- query?: string;
30
13
  }
@@ -1,32 +1,32 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const formatter_1 = require("../formatter");
4
- const common_fields_1 = require("../common_fields");
3
+ const utils_1 = require("../utils");
4
+ const common_fields_1 = require("../fields/common_fields");
5
5
  const action = {
6
6
  title: 'Identify',
7
7
  description: 'Use a Segment identify() call to sent PII data to TikTok Pixel. Note that the PII information will be sent with the next track() call.',
8
8
  defaultSubscription: 'type = "identify"',
9
9
  platform: 'web',
10
10
  fields: {
11
- ...common_fields_1.commonFields,
11
+ ...common_fields_1.common_fields,
12
12
  phone_number: {
13
- ...common_fields_1.commonFields.phone_number,
13
+ ...common_fields_1.common_fields.phone_number,
14
14
  default: { '@path': '$.traits.phone' }
15
15
  },
16
16
  email: {
17
- ...common_fields_1.commonFields.email,
17
+ ...common_fields_1.common_fields.email,
18
18
  default: { '@path': '$.traits.email' }
19
19
  },
20
20
  first_name: {
21
- ...common_fields_1.commonFields.first_name,
21
+ ...common_fields_1.common_fields.first_name,
22
22
  default: { '@path': '$.traits.first_name' }
23
23
  },
24
24
  last_name: {
25
- ...common_fields_1.commonFields.last_name,
25
+ ...common_fields_1.common_fields.last_name,
26
26
  default: { '@path': '$.traits.last_name' }
27
27
  },
28
28
  address: {
29
- ...common_fields_1.commonFields.address,
29
+ ...common_fields_1.common_fields.address,
30
30
  default: {
31
31
  city: { '@path': '$.traits.address.city' },
32
32
  country: { '@path': '$.traits.address.country' },
@@ -35,19 +35,9 @@ const action = {
35
35
  }
36
36
  }
37
37
  },
38
- perform: (ttq, { payload }) => {
38
+ perform: (ttq, { payload, settings }) => {
39
39
  if (payload.email || payload.phone_number || payload.external_id) {
40
- ttq.identify({
41
- email: (0, formatter_1.handleArrayInput)(payload.email),
42
- phone_number: (0, formatter_1.formatPhone)((0, formatter_1.handleArrayInput)(payload.phone_number)),
43
- external_id: (0, formatter_1.handleArrayInput)(payload.external_id),
44
- first_name: (0, formatter_1.formatString)(payload.first_name),
45
- last_name: (0, formatter_1.formatString)(payload.last_name),
46
- city: (0, formatter_1.formatAddress)(payload.address?.city),
47
- state: (0, formatter_1.formatAddress)(payload.address?.state),
48
- country: (0, formatter_1.formatAddress)(payload.address?.country),
49
- zip_code: (0, formatter_1.formatString)(payload.address?.zip_code)
50
- });
40
+ ttq.instance(settings.pixelCode).identify((0, utils_1.getUser)(payload));
51
41
  }
52
42
  }
53
43
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/identify/index.ts"],"names":[],"mappings":";;AAGA,4CAAyF;AAEzF,oDAA+C;AAG/C,MAAM,MAAM,GAA4D;IACtE,KAAK,EAAE,UAAU;IACjB,WAAW,EACT,wIAAwI;IAC1I,mBAAmB,EAAE,mBAAmB;IACxC,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE;QACN,GAAG,4BAAY;QACf,YAAY,EAAE;YACZ,GAAG,4BAAY,CAAC,YAAY;YAC5B,OAAO,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE;SACvC;QACD,KAAK,EAAE;YACL,GAAG,4BAAY,CAAC,KAAK;YACrB,OAAO,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE;SACvC;QACD,UAAU,EAAE;YACV,GAAG,4BAAY,CAAC,UAAU;YAC1B,OAAO,EAAE,EAAE,OAAO,EAAE,qBAAqB,EAAE;SAC5C;QACD,SAAS,EAAE;YACT,GAAG,4BAAY,CAAC,SAAS;YACzB,OAAO,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;SAC3C;QACD,OAAO,EAAE;YACP,GAAG,4BAAY,CAAC,OAAO;YACvB,OAAO,EAAE;gBACP,IAAI,EAA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1
+ import { InputField } from '@segment/actions-core';
2
+ export declare const track_fields: Record<string, InputField>;
@@ -0,0 +1,161 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.track_fields = void 0;
4
+ const constants_1 = require("../constants");
5
+ exports.track_fields = {
6
+ event_spec_type: {
7
+ label: 'Additional Fields',
8
+ type: 'string',
9
+ description: 'Include fields for travel or vehicle events.',
10
+ choices: [
11
+ { value: constants_1.TRAVEL_FIELDS, label: 'Travel Fields' },
12
+ { value: constants_1.VEHICLE_FIELDS, label: 'Vehicle Fields' }
13
+ ]
14
+ },
15
+ event: {
16
+ label: 'Event Name',
17
+ type: 'string',
18
+ required: true,
19
+ description: 'Conversion event name. Please refer to the "Supported Web Events" section on in TikTok’s [Pixel SDK documentation](https://business-api.tiktok.com/portal/docs?id=1739585696931842) for accepted event names.'
20
+ },
21
+ event_id: {
22
+ label: 'Event ID',
23
+ type: 'string',
24
+ description: 'Any hashed ID that can identify a unique user/session.',
25
+ default: {
26
+ '@path': '$.messageId'
27
+ }
28
+ },
29
+ order_id: {
30
+ label: 'Order ID',
31
+ type: 'string',
32
+ description: 'Order ID of the transaction.',
33
+ default: {
34
+ '@path': '$.properties.order_id'
35
+ }
36
+ },
37
+ shop_id: {
38
+ label: 'Shop ID',
39
+ type: 'string',
40
+ description: 'Shop ID of the transaction.',
41
+ default: {
42
+ '@path': '$.properties.shop_id'
43
+ }
44
+ },
45
+ contents: {
46
+ label: 'Contents',
47
+ type: 'object',
48
+ multiple: true,
49
+ description: 'Related item details for the event.',
50
+ properties: {
51
+ price: {
52
+ label: 'Price',
53
+ description: 'Price of the item.',
54
+ type: 'number'
55
+ },
56
+ quantity: {
57
+ label: 'Quantity',
58
+ description: 'Number of items.',
59
+ type: 'number'
60
+ },
61
+ content_category: {
62
+ label: 'Content Category',
63
+ description: 'Category of the product item.',
64
+ type: 'string'
65
+ },
66
+ content_id: {
67
+ label: 'Content ID',
68
+ description: 'ID of the product item.',
69
+ type: 'string'
70
+ },
71
+ content_name: {
72
+ label: 'Content Name',
73
+ description: 'Name of the product item.',
74
+ type: 'string'
75
+ },
76
+ brand: {
77
+ label: 'Brand',
78
+ description: 'Brand name of the product item.',
79
+ type: 'string'
80
+ }
81
+ }
82
+ },
83
+ content_ids: {
84
+ label: 'Content IDs',
85
+ description: "Product IDs associated with the event, such as SKUs. Do not populate this field if the 'Contents' field is populated. This field accepts a single string value or an array of string values.",
86
+ type: 'string',
87
+ multiple: true,
88
+ default: {
89
+ '@path': '$.properties.content_ids'
90
+ }
91
+ },
92
+ num_items: {
93
+ label: 'Number of Items',
94
+ type: 'number',
95
+ description: 'Number of items when checkout was initiated. Used with the InitiateCheckout event.',
96
+ default: {
97
+ '@path': '$.properties.num_items'
98
+ }
99
+ },
100
+ content_type: {
101
+ label: 'Content Type',
102
+ description: 'Type of the product item. When the `content_id` in the `Contents` field is specified as a `sku_id`, set this field to `product`. When the `content_id` in the `Contents` field is specified as an `item_group_id`, set this field to `product_group`.',
103
+ type: 'string',
104
+ choices: [
105
+ { label: 'product', value: 'product' },
106
+ { label: 'product_group', value: 'product_group' }
107
+ ],
108
+ default: 'product'
109
+ },
110
+ currency: {
111
+ label: 'Currency',
112
+ type: 'string',
113
+ description: 'Currency for the value specified as ISO 4217 code.',
114
+ default: {
115
+ '@path': '$.properties.currency'
116
+ }
117
+ },
118
+ value: {
119
+ label: 'Value',
120
+ type: 'number',
121
+ description: 'Value of the order or items sold.',
122
+ default: {
123
+ '@if': {
124
+ exists: { '@path': '$.properties.value' },
125
+ then: { '@path': '$.properties.value' },
126
+ else: { '@path': '$.properties.revenue' }
127
+ }
128
+ }
129
+ },
130
+ description: {
131
+ label: 'Description',
132
+ type: 'string',
133
+ description: 'A string description of the web event.'
134
+ },
135
+ query: {
136
+ label: 'Query',
137
+ type: 'string',
138
+ description: 'The text string that was searched for.',
139
+ default: {
140
+ '@path': '$.properties.query'
141
+ }
142
+ },
143
+ search_string: {
144
+ label: 'Search String',
145
+ type: 'string',
146
+ description: 'The text string entered by the user for the search. Optionally used with the Search event.',
147
+ default: {
148
+ '@path': '$.properties.search_string'
149
+ },
150
+ depends_on: {
151
+ conditions: [
152
+ {
153
+ fieldKey: 'event',
154
+ operator: 'is',
155
+ value: 'Search'
156
+ }
157
+ ]
158
+ }
159
+ }
160
+ };
161
+ //# sourceMappingURL=fields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../src/reportWebEvent/fields.ts"],"names":[],"mappings":";;;AACA,4CAA4D;AAE/C,QAAA,YAAY,GAA+B;IACpD,eAAe,EAAE;QACb,KAAK,EAAE,mBAAmB;QAC1B,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,8CAA8C;QAC3D,OAAO,EAAE;YACT,EAAE,KAAK,EAAE,yBAAa,EAAE,KAAK,EAAE,eAAe,EAAE;YAChD,EAAE,KAAK,EAAE,0BAAc,EAAE,KAAK,EAAE,gBAAgB,EAAE;SACjD;KACJ;IACD,KAAK,EAAE;QACH,KAAK,EAAE,YAAY;QACnB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,WAAW,EACX,+MAA+M;KAClN;IACD,QAAQ,EAAE;QACN,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,wDAAwD;QACrE,OAAO,EAAE;YACT,OAAO,EAAE,aAAa;SACrB;KACJ;IACD,QAAQ,EAAE;QACN,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,8BAA8B;QAC3C,OAAO,EAAE;YACT,OAAO,EAAE,uBAAuB;SAC/B;KACJ;IACD,OAAO,EAAE;QACL,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,6BAA6B;QAC1C,OAAO,EAAE;YACT,OAAO,EAAE,sBAAsB;SAC9B;KACJ;IACD,QAAQ,EAAE;QACN,KAAK,EAAE,UAAU;QACjB,IAAI,EA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AE,eAAe,EAAE;SACjD;QACD,OAAO,EAAE,SAAS;KACrB;IACD,QAAQ,EAAE;QACN,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,oDAAoD;QACjE,OAAO,EAAE;YACT,OAAO,EAAE,uBAAuB;SAC/B;KACJ;IACD,KAAK,EAAE;QACH,KAAK,EAAE,OAAO;QACd,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,mCAAmC;QAChD,OAAO,EAAE;YACT,KAAK,EAAE;gBACH,MAAM,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;gBACzC,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;gBACvC,IAAI,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE;aAC5C;SACA;KACJ;IACD,WAAW,EAAE;QACT,KAAK,EAAE,aAAa;QACpB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,wCAAwC;KACxD;IACD,KAAK,EAAE;QACH,KAAK,EAAE,OAAO;QACd,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,wCAAwC;QACrD,OAAO,EAAE;YACT,OAAO,EAAE,oBAAoB;SAC5B;KACJ;IACD,aAAa,EAAE;QACX,KAAK,EAAE,eAAe;QACtB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,4FAA4F;QACzG,OAAO,EAAE;YACT,OAAO,EAAE,4BAA4B;SACpC;QACD,UAAU,EAAE;YACZ,UAAU,EAAE;gBACR;oBACA,QAAQ,EAAE,OAAO;oBACjB,QAAQ,EAAE,IAAI;oBACd,KAAK,EAAE,QAAQ;iBACd;aACJ;SACA;KACJ;CACJ,CAAA"}
@@ -1,19 +1,9 @@
1
1
  export interface Payload {
2
+ event_spec_type?: string;
2
3
  event: string;
3
4
  event_id?: string;
4
- phone_number?: string[];
5
- email?: string[];
6
- first_name?: string;
7
- last_name?: string;
8
- address?: {
9
- city?: string;
10
- country?: string;
11
- zip_code?: string;
12
- state?: string;
13
- };
14
5
  order_id?: string;
15
6
  shop_id?: string;
16
- external_id?: string[];
17
7
  contents?: {
18
8
  price?: number;
19
9
  quantity?: number;
@@ -22,9 +12,70 @@ export interface Payload {
22
12
  content_name?: string;
23
13
  brand?: string;
24
14
  }[];
15
+ content_ids?: string[];
16
+ num_items?: number;
25
17
  content_type?: string;
26
18
  currency?: string;
27
19
  value?: number;
28
20
  description?: string;
29
21
  query?: string;
22
+ search_string?: string;
23
+ phone_number?: string[];
24
+ email?: string[];
25
+ first_name?: string;
26
+ last_name?: string;
27
+ address?: {
28
+ city?: string;
29
+ country?: string;
30
+ zip_code?: string;
31
+ state?: string;
32
+ };
33
+ external_id?: string[];
34
+ vehicle_fields?: {
35
+ postal_code?: string;
36
+ make?: string;
37
+ model?: string;
38
+ year?: number;
39
+ state_of_vehicle?: string;
40
+ mileage_value?: number;
41
+ mileage_unit?: string;
42
+ exterior_color?: string;
43
+ transmission?: string;
44
+ body_style?: string;
45
+ fuel_type?: string;
46
+ drivetrain?: string;
47
+ preferred_price_range_min?: number;
48
+ preferred_price_range_max?: number;
49
+ trim?: string;
50
+ vin?: string;
51
+ interior_color?: string;
52
+ condition_of_vehicle?: string;
53
+ viewcontent_type?: string;
54
+ search_type?: string;
55
+ registration_type?: string;
56
+ };
57
+ travel_fields?: {
58
+ city?: string;
59
+ region?: string;
60
+ country?: string;
61
+ checkin_date?: string;
62
+ checkout_date?: string;
63
+ num_adults?: number;
64
+ num_children?: number;
65
+ num_infants?: number;
66
+ suggested_hotels?: string[];
67
+ departing_departure_date?: string;
68
+ returning_departure_date?: string;
69
+ origin_airport?: string;
70
+ destination_airport?: string;
71
+ destination_ids?: string[];
72
+ departing_arrival_date?: string;
73
+ returning_arrival_date?: string;
74
+ travel_class?: string;
75
+ user_score?: number;
76
+ preferred_num_stops?: number;
77
+ travel_start?: string;
78
+ travel_end?: string;
79
+ suggested_destinations?: string[];
80
+ };
30
81
  }
@@ -1,39 +1,27 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const formatter_1 = require("../formatter");
4
- const common_fields_1 = require("../common_fields");
3
+ const utils_1 = require("../utils");
4
+ const utils_2 = require("./utils");
5
+ const fields_1 = require("./fields");
6
+ const common_fields_1 = require("../fields/common_fields");
7
+ const travel_fields_1 = require("./travel_fields");
8
+ const vehicle_fields_1 = require("./vehicle_fields");
5
9
  const action = {
6
10
  title: 'Report Web Event',
7
11
  description: 'Report events directly to TikTok. Data shared can power TikTok solutions like dynamic product ads, custom targeting, campaign optimization and attribution.',
8
12
  platform: 'web',
9
13
  defaultSubscription: 'type = "track"',
10
14
  fields: {
11
- ...common_fields_1.commonFields
15
+ ...fields_1.track_fields,
16
+ ...common_fields_1.common_fields,
17
+ vehicle_fields: vehicle_fields_1.vehicle_fields,
18
+ travel_fields: travel_fields_1.travel_fields
12
19
  },
13
20
  perform: (ttq, { payload, settings }) => {
14
21
  if (payload.email || payload.phone_number || payload.external_id) {
15
- ttq.identify({
16
- email: (0, formatter_1.handleArrayInput)(payload.email),
17
- phone_number: (0, formatter_1.formatPhone)((0, formatter_1.handleArrayInput)(payload.phone_number)),
18
- external_id: (0, formatter_1.handleArrayInput)(payload.external_id),
19
- first_name: (0, formatter_1.formatString)(payload.first_name),
20
- last_name: (0, formatter_1.formatString)(payload.last_name),
21
- city: (0, formatter_1.formatAddress)(payload.address?.city),
22
- state: (0, formatter_1.formatAddress)(payload.address?.state),
23
- country: (0, formatter_1.formatAddress)(payload.address?.country),
24
- zip_code: (0, formatter_1.formatString)(payload.address?.zip_code)
25
- });
22
+ ttq.instance(settings.pixelCode).identify((0, utils_1.getUser)(payload));
26
23
  }
27
- ttq.instance(settings.pixelCode).track(payload.event, {
28
- contents: payload.contents ? payload.contents : [],
29
- content_type: payload.content_type ? payload.content_type : undefined,
30
- currency: payload.currency ? payload.currency : 'USD',
31
- value: payload.value || payload.value === 0 ? payload.value : undefined,
32
- query: payload.query ? payload.query : undefined,
33
- description: payload.description ? payload.description : undefined,
34
- order_id: payload.order_id ? payload.order_id : undefined,
35
- shop_id: payload.shop_id ? payload.shop_id : undefined
36
- }, {
24
+ ttq.instance(settings.pixelCode).track(payload.event, (0, utils_2.getAllProperties)(payload), {
37
25
  event_id: payload.event_id ? payload.event_id : ''
38
26
  });
39
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/reportWebEvent/index.ts"],"names":[],"mappings":";;AAGA,4CAAyF;AAEzF,oDAA+C;AAE/C,MAAM,MAAM,GAA4D;IACtE,KAAK,EAAE,kBAAkB;IACzB,WAAW,EACT,6JAA6J;IAC/J,QAAQ,EAAE,KAAK;IACf,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,GAAG,4BAAY;KAChB;IACD,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QACtC,IAAI,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,YAAY,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;YACjE,GAAG,CAAC,QAAQ,CAAC;gBACX,KAAK,EAAE,IAAA,4BAAgB,EAAC,OAAO,CAAC,KAAK,CAAC;gBACtC,YAAY,EAAE,IAAA,uBAAW,EAAC,IAAA,4BAAgB,EAAC,OAAO,CAAC,YAAY,CAAC,CAAC;gBACjE,WAAW,EAAE,IAAA,4BAAgB,EAAC,OAAO,CAAC,WAAW,CAAC;gBAClD,UAAU,EAAE,IAAA,wBAAY,EAAC,OAAO,CAAC,UAAU,CAAC;gBAC5C,SAAS,EAAE,IAAA,wBAAY,EAAC,OAAO,CAAC,SAAS,CAAC;gBAC1C,IAAI,EAAE,IAAA,yBAAa,EAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC;gBAC1C,KAAK,EAAE,IAAA,yBAAa,EAAC,OAAO,CAAC,OAAO,EAAE,KAAK,CAAC;gBAC5C,OAAO,EAAE,IAAA,yBAAa,EAAC,OAAO,CAAC,OAAO,EAAE,OAAO,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sources":["../../../src/reportWebEvent/index.ts"],"names":[],"mappings":";;AAGA,oCAAkC;AAClC,mCAA0C;AAE1C,qCAAuC;AACvC,2DAAuD;AACvD,mDAA+C;AAC/C,qDAAiD;AAEjD,MAAM,MAAM,GAA4D;IACtE,KAAK,EAAE,kBAAkB;IACzB,WAAW,EACT,6JAA6J;IAC/J,QAAQ,EAAE,KAAK;IACf,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,GAAG,qBAAY;QACf,GAAG,6BAAa;QAChB,cAAc,EAAd,+BAAc;QACd,aAAa,EAAb,6BAAa;KACd;IACD,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QACtC,IAAI,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,YAAY,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;YACjE,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,IAAA,eAAO,EAAC,OAAO,CAAC,CAAC,CAAA;QAC7D,CAAC;QAED,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,KAAK,CACpC,OAAO,CAAC,KAAK,EACb,IAAA,wBAAgB,EAAC,OAAO,CAAC,EACzB;YACE,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE;SACnD,CACF,CAAA;IACH,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { InputField } from '@segment/actions-core';
2
+ export declare const travel_fields: InputField;