@walkeros/web-destination-tiktok 3.4.0 → 3.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -121,7 +121,7 @@ function L(e2, t = {}, n = {}) {
121
121
  }
122
122
  function fe(e2 = {}) {
123
123
  var _a;
124
- const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${t}-${n}-${o}`, trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, group: n, count: o, version: { source: "3.4.0", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
124
+ const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${t}-${n}-${o}`, trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, group: n, count: o, version: { source: "3.4.1", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
125
125
  if (e2.name) {
126
126
  const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
127
127
  t2 && n2 && (r.entity = t2, r.action = n2);
@@ -135,6 +135,8 @@ function le(e2 = "entity action", t = {}) {
135
135
 
136
136
  // src/examples/step.ts
137
137
  var defaultEventForwarding = {
138
+ title: "Default track",
139
+ description: "Without a mapping the walker event name is forwarded to ttq.track with an event_id for TikTok dedup.",
138
140
  in: le("product view"),
139
141
  out: [
140
142
  [
@@ -146,11 +148,14 @@ var defaultEventForwarding = {
146
148
  ]
147
149
  };
148
150
  var wildcardIgnored = {
151
+ public: false,
149
152
  in: le("product view"),
150
153
  mapping: { ignore: true },
151
154
  out: []
152
155
  };
153
156
  var productViewContent = {
157
+ title: "View content",
158
+ description: "A product view is renamed to the TikTok ViewContent standard event with content_type, id, value, and currency.",
154
159
  in: le("product view"),
155
160
  mapping: {
156
161
  name: "ViewContent",
@@ -185,6 +190,8 @@ var productViewContent = {
185
190
  ]
186
191
  };
187
192
  var destinationLevelInclude = {
193
+ title: "Include data",
194
+ description: "Destination-level include flattens the event data section into prefixed TikTok event parameters.",
188
195
  in: le("product view"),
189
196
  configInclude: ["data"],
190
197
  out: [
@@ -203,6 +210,8 @@ var destinationLevelInclude = {
203
210
  ]
204
211
  };
205
212
  var ruleIncludeReplaces = {
213
+ title: "Rule include overrides",
214
+ description: "A per-rule include replaces the destination-level include so this event forwards only globals.",
206
215
  in: le("order complete"),
207
216
  configInclude: ["data"],
208
217
  mapping: {
@@ -220,6 +229,8 @@ var ruleIncludeReplaces = {
220
229
  ]
221
230
  };
222
231
  var destinationLevelIdentify = {
232
+ title: "Advanced matching",
233
+ description: "Destination-level identify calls ttq.identify with email, phone, and external id for TikTok advanced matching.",
223
234
  in: le("page view", {
224
235
  data: {
225
236
  email: "user@acme.com",
@@ -248,6 +259,8 @@ var destinationLevelIdentify = {
248
259
  ]
249
260
  };
250
261
  var userRegisterCompleteRegistration = {
262
+ title: "Complete registration",
263
+ description: "A user register fires ttq.identify for advanced matching and then tracks CompleteRegistration.",
251
264
  in: le("user register", {
252
265
  data: {
253
266
  email: "new@acme.com",
@@ -293,6 +306,8 @@ var userRegisterCompleteRegistration = {
293
306
  ]
294
307
  };
295
308
  var orderCompleteCompletePayment = {
309
+ title: "Complete payment",
310
+ description: "A completed order is mapped to TikTok CompletePayment with value, currency, and nested product contents.",
296
311
  in: le("order complete"),
297
312
  mapping: {
298
313
  name: "CompletePayment",
@@ -355,6 +370,8 @@ var orderCompleteCompletePayment = {
355
370
  ]
356
371
  };
357
372
  var searchSubmitSearch = {
373
+ title: "Search",
374
+ description: "A search submit fires TikTok Search with the query field mapped from event data.",
358
375
  in: le("search submit", {
359
376
  data: {
360
377
  term: "hiking backpack"
@@ -381,6 +398,8 @@ var searchSubmitSearch = {
381
398
  ]
382
399
  };
383
400
  var consentGrantEnableCookie = {
401
+ title: "Consent granted",
402
+ description: "A walker consent grant for marketing calls ttq.enableCookie so TikTok can set and read its attribution cookie.",
384
403
  command: "consent",
385
404
  in: { marketing: true },
386
405
  settings: {},
@@ -388,6 +407,8 @@ var consentGrantEnableCookie = {
388
407
  out: [["ttq.enableCookie"]]
389
408
  };
390
409
  var consentRevokeDisableCookie = {
410
+ title: "Consent revoked",
411
+ description: "A walker consent revoke for marketing calls ttq.disableCookie so TikTok stops using its first-party cookie.",
391
412
  command: "consent",
392
413
  in: { marketing: false },
393
414
  settings: {},
@@ -100,7 +100,7 @@ function L(e2, t = {}, n = {}) {
100
100
  }
101
101
  function fe(e2 = {}) {
102
102
  var _a;
103
- const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${t}-${n}-${o}`, trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, group: n, count: o, version: { source: "3.4.0", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
103
+ const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${t}-${n}-${o}`, trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, group: n, count: o, version: { source: "3.4.1", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
104
104
  if (e2.name) {
105
105
  const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
106
106
  t2 && n2 && (r.entity = t2, r.action = n2);
@@ -114,6 +114,8 @@ function le(e2 = "entity action", t = {}) {
114
114
 
115
115
  // src/examples/step.ts
116
116
  var defaultEventForwarding = {
117
+ title: "Default track",
118
+ description: "Without a mapping the walker event name is forwarded to ttq.track with an event_id for TikTok dedup.",
117
119
  in: le("product view"),
118
120
  out: [
119
121
  [
@@ -125,11 +127,14 @@ var defaultEventForwarding = {
125
127
  ]
126
128
  };
127
129
  var wildcardIgnored = {
130
+ public: false,
128
131
  in: le("product view"),
129
132
  mapping: { ignore: true },
130
133
  out: []
131
134
  };
132
135
  var productViewContent = {
136
+ title: "View content",
137
+ description: "A product view is renamed to the TikTok ViewContent standard event with content_type, id, value, and currency.",
133
138
  in: le("product view"),
134
139
  mapping: {
135
140
  name: "ViewContent",
@@ -164,6 +169,8 @@ var productViewContent = {
164
169
  ]
165
170
  };
166
171
  var destinationLevelInclude = {
172
+ title: "Include data",
173
+ description: "Destination-level include flattens the event data section into prefixed TikTok event parameters.",
167
174
  in: le("product view"),
168
175
  configInclude: ["data"],
169
176
  out: [
@@ -182,6 +189,8 @@ var destinationLevelInclude = {
182
189
  ]
183
190
  };
184
191
  var ruleIncludeReplaces = {
192
+ title: "Rule include overrides",
193
+ description: "A per-rule include replaces the destination-level include so this event forwards only globals.",
185
194
  in: le("order complete"),
186
195
  configInclude: ["data"],
187
196
  mapping: {
@@ -199,6 +208,8 @@ var ruleIncludeReplaces = {
199
208
  ]
200
209
  };
201
210
  var destinationLevelIdentify = {
211
+ title: "Advanced matching",
212
+ description: "Destination-level identify calls ttq.identify with email, phone, and external id for TikTok advanced matching.",
202
213
  in: le("page view", {
203
214
  data: {
204
215
  email: "user@acme.com",
@@ -227,6 +238,8 @@ var destinationLevelIdentify = {
227
238
  ]
228
239
  };
229
240
  var userRegisterCompleteRegistration = {
241
+ title: "Complete registration",
242
+ description: "A user register fires ttq.identify for advanced matching and then tracks CompleteRegistration.",
230
243
  in: le("user register", {
231
244
  data: {
232
245
  email: "new@acme.com",
@@ -272,6 +285,8 @@ var userRegisterCompleteRegistration = {
272
285
  ]
273
286
  };
274
287
  var orderCompleteCompletePayment = {
288
+ title: "Complete payment",
289
+ description: "A completed order is mapped to TikTok CompletePayment with value, currency, and nested product contents.",
275
290
  in: le("order complete"),
276
291
  mapping: {
277
292
  name: "CompletePayment",
@@ -334,6 +349,8 @@ var orderCompleteCompletePayment = {
334
349
  ]
335
350
  };
336
351
  var searchSubmitSearch = {
352
+ title: "Search",
353
+ description: "A search submit fires TikTok Search with the query field mapped from event data.",
337
354
  in: le("search submit", {
338
355
  data: {
339
356
  term: "hiking backpack"
@@ -360,6 +377,8 @@ var searchSubmitSearch = {
360
377
  ]
361
378
  };
362
379
  var consentGrantEnableCookie = {
380
+ title: "Consent granted",
381
+ description: "A walker consent grant for marketing calls ttq.enableCookie so TikTok can set and read its attribution cookie.",
363
382
  command: "consent",
364
383
  in: { marketing: true },
365
384
  settings: {},
@@ -367,6 +386,8 @@ var consentGrantEnableCookie = {
367
386
  out: [["ttq.enableCookie"]]
368
387
  };
369
388
  var consentRevokeDisableCookie = {
389
+ title: "Consent revoked",
390
+ description: "A walker consent revoke for marketing calls ttq.disableCookie so TikTok stops using its first-party cookie.",
370
391
  command: "consent",
371
392
  in: { marketing: false },
372
393
  settings: {},
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$meta": {
3
3
  "package": "@walkeros/web-destination-tiktok",
4
- "version": "3.4.0",
4
+ "version": "3.4.1",
5
5
  "type": "destination",
6
6
  "platform": [
7
7
  "web"
@@ -94,6 +94,8 @@
94
94
  },
95
95
  "step": {
96
96
  "consentGrantEnableCookie": {
97
+ "title": "Consent granted",
98
+ "description": "A walker consent grant for marketing calls ttq.enableCookie so TikTok can set and read its attribution cookie.",
97
99
  "command": "consent",
98
100
  "in": {
99
101
  "marketing": true
@@ -106,6 +108,8 @@
106
108
  ]
107
109
  },
108
110
  "consentRevokeDisableCookie": {
111
+ "title": "Consent revoked",
112
+ "description": "A walker consent revoke for marketing calls ttq.disableCookie so TikTok stops using its first-party cookie.",
109
113
  "command": "consent",
110
114
  "in": {
111
115
  "marketing": false
@@ -118,6 +122,8 @@
118
122
  ]
119
123
  },
120
124
  "defaultEventForwarding": {
125
+ "title": "Default track",
126
+ "description": "Without a mapping the walker event name is forwarded to ttq.track with an event_id for TikTok dedup.",
121
127
  "in": {
122
128
  "name": "product view",
123
129
  "data": {
@@ -157,7 +163,7 @@
157
163
  "group": "gr0up",
158
164
  "count": 1,
159
165
  "version": {
160
- "source": "3.4.0",
166
+ "source": "3.4.1",
161
167
  "tagging": 1
162
168
  },
163
169
  "source": {
@@ -178,6 +184,8 @@
178
184
  ]
179
185
  },
180
186
  "destinationLevelIdentify": {
187
+ "title": "Advanced matching",
188
+ "description": "Destination-level identify calls ttq.identify with email, phone, and external id for TikTok advanced matching.",
181
189
  "in": {
182
190
  "name": "page view",
183
191
  "data": {
@@ -228,7 +236,7 @@
228
236
  "group": "gr0up",
229
237
  "count": 1,
230
238
  "version": {
231
- "source": "3.4.0",
239
+ "source": "3.4.1",
232
240
  "tagging": 1
233
241
  },
234
242
  "source": {
@@ -266,6 +274,8 @@
266
274
  ]
267
275
  },
268
276
  "destinationLevelInclude": {
277
+ "title": "Include data",
278
+ "description": "Destination-level include flattens the event data section into prefixed TikTok event parameters.",
269
279
  "in": {
270
280
  "name": "product view",
271
281
  "data": {
@@ -305,7 +315,7 @@
305
315
  "group": "gr0up",
306
316
  "count": 1,
307
317
  "version": {
308
- "source": "3.4.0",
318
+ "source": "3.4.1",
309
319
  "tagging": 1
310
320
  },
311
321
  "source": {
@@ -335,6 +345,8 @@
335
345
  ]
336
346
  },
337
347
  "orderCompleteCompletePayment": {
348
+ "title": "Complete payment",
349
+ "description": "A completed order is mapped to TikTok CompletePayment with value, currency, and nested product contents.",
338
350
  "in": {
339
351
  "name": "order complete",
340
352
  "data": {
@@ -421,7 +433,7 @@
421
433
  "group": "gr0up",
422
434
  "count": 1,
423
435
  "version": {
424
- "source": "3.4.0",
436
+ "source": "3.4.1",
425
437
  "tagging": 1
426
438
  },
427
439
  "source": {
@@ -498,6 +510,8 @@
498
510
  ]
499
511
  },
500
512
  "productViewContent": {
513
+ "title": "View content",
514
+ "description": "A product view is renamed to the TikTok ViewContent standard event with content_type, id, value, and currency.",
501
515
  "in": {
502
516
  "name": "product view",
503
517
  "data": {
@@ -537,7 +551,7 @@
537
551
  "group": "gr0up",
538
552
  "count": 1,
539
553
  "version": {
540
- "source": "3.4.0",
554
+ "source": "3.4.1",
541
555
  "tagging": 1
542
556
  },
543
557
  "source": {
@@ -583,6 +597,8 @@
583
597
  ]
584
598
  },
585
599
  "ruleIncludeReplaces": {
600
+ "title": "Rule include overrides",
601
+ "description": "A per-rule include replaces the destination-level include so this event forwards only globals.",
586
602
  "in": {
587
603
  "name": "order complete",
588
604
  "data": {
@@ -669,7 +685,7 @@
669
685
  "group": "gr0up",
670
686
  "count": 1,
671
687
  "version": {
672
- "source": "3.4.0",
688
+ "source": "3.4.1",
673
689
  "tagging": 1
674
690
  },
675
691
  "source": {
@@ -700,6 +716,8 @@
700
716
  ]
701
717
  },
702
718
  "searchSubmitSearch": {
719
+ "title": "Search",
720
+ "description": "A search submit fires TikTok Search with the query field mapped from event data.",
703
721
  "in": {
704
722
  "name": "search submit",
705
723
  "data": {
@@ -749,7 +767,7 @@
749
767
  "group": "gr0up",
750
768
  "count": 1,
751
769
  "version": {
752
- "source": "3.4.0",
770
+ "source": "3.4.1",
753
771
  "tagging": 1
754
772
  },
755
773
  "source": {
@@ -781,6 +799,8 @@
781
799
  ]
782
800
  },
783
801
  "userRegisterCompleteRegistration": {
802
+ "title": "Complete registration",
803
+ "description": "A user register fires ttq.identify for advanced matching and then tracks CompleteRegistration.",
784
804
  "in": {
785
805
  "name": "user register",
786
806
  "data": {
@@ -832,7 +852,7 @@
832
852
  "group": "gr0up",
833
853
  "count": 1,
834
854
  "version": {
835
- "source": "3.4.0",
855
+ "source": "3.4.1",
836
856
  "tagging": 1
837
857
  },
838
858
  "source": {
@@ -883,6 +903,7 @@
883
903
  ]
884
904
  },
885
905
  "wildcardIgnored": {
906
+ "public": false,
886
907
  "in": {
887
908
  "name": "product view",
888
909
  "data": {
@@ -922,7 +943,7 @@
922
943
  "group": "gr0up",
923
944
  "count": 1,
924
945
  "version": {
925
- "source": "3.4.0",
946
+ "source": "3.4.1",
926
947
  "tagging": 1
927
948
  },
928
949
  "source": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@walkeros/web-destination-tiktok",
3
3
  "description": "TikTok Pixel web destination for walkerOS (conversion tracking, Advanced Matching)",
4
- "version": "3.4.0",
4
+ "version": "3.4.1",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.mjs",
@@ -37,10 +37,10 @@
37
37
  "update": "npx npm-check-updates -u && npm update"
38
38
  },
39
39
  "dependencies": {
40
- "@walkeros/web-core": "3.4.0"
40
+ "@walkeros/web-core": "3.4.1"
41
41
  },
42
42
  "devDependencies": {
43
- "@walkeros/collector": "3.4.0"
43
+ "@walkeros/collector": "3.4.1"
44
44
  },
45
45
  "repository": {
46
46
  "url": "git+https://github.com/elbwalker/walkerOS.git",