@walkeros/web-destination-amplitude 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.
@@ -210,7 +210,7 @@ function L(e2, t = {}, n = {}) {
210
210
  }
211
211
  function fe(e2 = {}) {
212
212
  var _a;
213
- 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 });
213
+ 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 });
214
214
  if (e2.name) {
215
215
  const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
216
216
  t2 && n2 && (r.entity = t2, r.action = n2);
@@ -224,15 +224,20 @@ function le(e2 = "entity action", t = {}) {
224
224
 
225
225
  // src/examples/step.ts
226
226
  var defaultEventForwarding = {
227
+ title: "Default track",
228
+ description: "A walker event is forwarded to Amplitude as an amplitude.track call with the event name and empty properties.",
227
229
  in: le("product view", { timestamp: 1700000100 }),
228
230
  out: [["amplitude.track", "product view", {}]]
229
231
  };
230
232
  var wildcardIgnored = {
233
+ public: false,
231
234
  in: le("debug noise", { timestamp: 1700000101 }),
232
235
  mapping: { ignore: true },
233
236
  out: []
234
237
  };
235
238
  var destinationLevelInclude = {
239
+ title: "Include data",
240
+ description: "Destination-level include flattens the event data section into prefixed event_properties on every track call.",
236
241
  in: le("product view", { timestamp: 1700000102 }),
237
242
  configInclude: ["data"],
238
243
  out: [
@@ -250,6 +255,8 @@ var destinationLevelInclude = {
250
255
  ]
251
256
  };
252
257
  var ruleIncludeReplaces = {
258
+ title: "Rule include overrides",
259
+ description: "A per-rule include replaces the destination-level include for the matched event, here using only globals.",
253
260
  in: le("order complete", { timestamp: 1700000103 }),
254
261
  configInclude: ["data"],
255
262
  mapping: {
@@ -266,6 +273,8 @@ var ruleIncludeReplaces = {
266
273
  ]
267
274
  };
268
275
  var destinationLevelIdentify = {
276
+ title: "Destination identify",
277
+ description: "Destination-level identify sets userId, deviceId, and sessionId on the Amplitude client before sending events; setters only re-fire when the resolved values change (cached values are not re-applied on subsequent pushes).",
269
278
  in: le("page view", { timestamp: 1700000104 }),
270
279
  settings: {
271
280
  identify: {
@@ -284,6 +293,8 @@ var destinationLevelIdentify = {
284
293
  ]
285
294
  };
286
295
  var userLoginIdentify = {
296
+ title: "User login identify",
297
+ description: "A user login sets the Amplitude userId and runs identify with set, setOnce, and add operations.",
287
298
  in: le("user login", {
288
299
  timestamp: 1700000105,
289
300
  data: {
@@ -341,6 +352,8 @@ var userLoginIdentify = {
341
352
  ]
342
353
  };
343
354
  var userLogoutReset = {
355
+ title: "User logout reset",
356
+ description: "A user logout calls amplitude.reset to clear the userId and regenerate the deviceId.",
344
357
  in: le("user logout", { timestamp: 1700000106 }),
345
358
  mapping: {
346
359
  skip: true,
@@ -351,6 +364,8 @@ var userLogoutReset = {
351
364
  out: [["amplitude.reset"]]
352
365
  };
353
366
  var subscriptionRenewRevenue = {
367
+ title: "Subscription revenue",
368
+ description: "A subscription renewal fires a single amplitude.revenue call with productId, price, and currency fallback.",
354
369
  in: le("subscription renew", {
355
370
  timestamp: 1700000107,
356
371
  data: {
@@ -384,6 +399,8 @@ var subscriptionRenewRevenue = {
384
399
  ]
385
400
  };
386
401
  var orderCompleteMultiProduct = {
402
+ title: "Multi-product order",
403
+ description: "An order fires one amplitude.revenue call per nested product plus a single track for the order totals.",
387
404
  in: le("order complete", { timestamp: 1700000108 }),
388
405
  mapping: {
389
406
  include: ["data", "globals"],
@@ -446,6 +463,8 @@ var orderCompleteMultiProduct = {
446
463
  ]
447
464
  };
448
465
  var groupAssignmentWithProperties = {
466
+ title: "Group assignment",
467
+ description: "A company update assigns the user to a group and sets group properties via setGroup and groupIdentify.",
449
468
  in: le("company update", {
450
469
  timestamp: 1700000109,
451
470
  data: {
@@ -502,12 +521,16 @@ var groupAssignmentWithProperties = {
502
521
  ]
503
522
  };
504
523
  var consentRevokeOptOut = {
524
+ title: "Consent revoked",
525
+ description: "A walker consent command with analytics denied opts out of Amplitude tracking via setOptOut(true).",
505
526
  command: "consent",
506
527
  in: { analytics: false },
507
528
  settings: {},
508
529
  out: [["amplitude.setOptOut", true]]
509
530
  };
510
531
  var consentGrantOptIn = {
532
+ title: "Consent granted",
533
+ description: "A walker consent command with analytics granted opts back into Amplitude tracking via setOptOut(false).",
511
534
  command: "consent",
512
535
  in: { analytics: true },
513
536
  settings: {},
@@ -189,7 +189,7 @@ function L(e2, t = {}, n = {}) {
189
189
  }
190
190
  function fe(e2 = {}) {
191
191
  var _a;
192
- 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 });
192
+ 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 });
193
193
  if (e2.name) {
194
194
  const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
195
195
  t2 && n2 && (r.entity = t2, r.action = n2);
@@ -203,15 +203,20 @@ function le(e2 = "entity action", t = {}) {
203
203
 
204
204
  // src/examples/step.ts
205
205
  var defaultEventForwarding = {
206
+ title: "Default track",
207
+ description: "A walker event is forwarded to Amplitude as an amplitude.track call with the event name and empty properties.",
206
208
  in: le("product view", { timestamp: 1700000100 }),
207
209
  out: [["amplitude.track", "product view", {}]]
208
210
  };
209
211
  var wildcardIgnored = {
212
+ public: false,
210
213
  in: le("debug noise", { timestamp: 1700000101 }),
211
214
  mapping: { ignore: true },
212
215
  out: []
213
216
  };
214
217
  var destinationLevelInclude = {
218
+ title: "Include data",
219
+ description: "Destination-level include flattens the event data section into prefixed event_properties on every track call.",
215
220
  in: le("product view", { timestamp: 1700000102 }),
216
221
  configInclude: ["data"],
217
222
  out: [
@@ -229,6 +234,8 @@ var destinationLevelInclude = {
229
234
  ]
230
235
  };
231
236
  var ruleIncludeReplaces = {
237
+ title: "Rule include overrides",
238
+ description: "A per-rule include replaces the destination-level include for the matched event, here using only globals.",
232
239
  in: le("order complete", { timestamp: 1700000103 }),
233
240
  configInclude: ["data"],
234
241
  mapping: {
@@ -245,6 +252,8 @@ var ruleIncludeReplaces = {
245
252
  ]
246
253
  };
247
254
  var destinationLevelIdentify = {
255
+ title: "Destination identify",
256
+ description: "Destination-level identify sets userId, deviceId, and sessionId on the Amplitude client before sending events; setters only re-fire when the resolved values change (cached values are not re-applied on subsequent pushes).",
248
257
  in: le("page view", { timestamp: 1700000104 }),
249
258
  settings: {
250
259
  identify: {
@@ -263,6 +272,8 @@ var destinationLevelIdentify = {
263
272
  ]
264
273
  };
265
274
  var userLoginIdentify = {
275
+ title: "User login identify",
276
+ description: "A user login sets the Amplitude userId and runs identify with set, setOnce, and add operations.",
266
277
  in: le("user login", {
267
278
  timestamp: 1700000105,
268
279
  data: {
@@ -320,6 +331,8 @@ var userLoginIdentify = {
320
331
  ]
321
332
  };
322
333
  var userLogoutReset = {
334
+ title: "User logout reset",
335
+ description: "A user logout calls amplitude.reset to clear the userId and regenerate the deviceId.",
323
336
  in: le("user logout", { timestamp: 1700000106 }),
324
337
  mapping: {
325
338
  skip: true,
@@ -330,6 +343,8 @@ var userLogoutReset = {
330
343
  out: [["amplitude.reset"]]
331
344
  };
332
345
  var subscriptionRenewRevenue = {
346
+ title: "Subscription revenue",
347
+ description: "A subscription renewal fires a single amplitude.revenue call with productId, price, and currency fallback.",
333
348
  in: le("subscription renew", {
334
349
  timestamp: 1700000107,
335
350
  data: {
@@ -363,6 +378,8 @@ var subscriptionRenewRevenue = {
363
378
  ]
364
379
  };
365
380
  var orderCompleteMultiProduct = {
381
+ title: "Multi-product order",
382
+ description: "An order fires one amplitude.revenue call per nested product plus a single track for the order totals.",
366
383
  in: le("order complete", { timestamp: 1700000108 }),
367
384
  mapping: {
368
385
  include: ["data", "globals"],
@@ -425,6 +442,8 @@ var orderCompleteMultiProduct = {
425
442
  ]
426
443
  };
427
444
  var groupAssignmentWithProperties = {
445
+ title: "Group assignment",
446
+ description: "A company update assigns the user to a group and sets group properties via setGroup and groupIdentify.",
428
447
  in: le("company update", {
429
448
  timestamp: 1700000109,
430
449
  data: {
@@ -481,12 +500,16 @@ var groupAssignmentWithProperties = {
481
500
  ]
482
501
  };
483
502
  var consentRevokeOptOut = {
503
+ title: "Consent revoked",
504
+ description: "A walker consent command with analytics denied opts out of Amplitude tracking via setOptOut(true).",
484
505
  command: "consent",
485
506
  in: { analytics: false },
486
507
  settings: {},
487
508
  out: [["amplitude.setOptOut", true]]
488
509
  };
489
510
  var consentGrantOptIn = {
511
+ title: "Consent granted",
512
+ description: "A walker consent command with analytics granted opts back into Amplitude tracking via setOptOut(false).",
490
513
  command: "consent",
491
514
  in: { analytics: true },
492
515
  settings: {},
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$meta": {
3
3
  "package": "@walkeros/web-destination-amplitude",
4
- "version": "3.4.0",
4
+ "version": "3.4.1",
5
5
  "type": "destination",
6
6
  "platform": [
7
7
  "web"
@@ -219,6 +219,8 @@
219
219
  },
220
220
  "step": {
221
221
  "consentGrantOptIn": {
222
+ "title": "Consent granted",
223
+ "description": "A walker consent command with analytics granted opts back into Amplitude tracking via setOptOut(false).",
222
224
  "command": "consent",
223
225
  "in": {
224
226
  "analytics": true
@@ -232,6 +234,8 @@
232
234
  ]
233
235
  },
234
236
  "consentRevokeOptOut": {
237
+ "title": "Consent revoked",
238
+ "description": "A walker consent command with analytics denied opts out of Amplitude tracking via setOptOut(true).",
235
239
  "command": "consent",
236
240
  "in": {
237
241
  "analytics": false
@@ -245,6 +249,8 @@
245
249
  ]
246
250
  },
247
251
  "defaultEventForwarding": {
252
+ "title": "Default track",
253
+ "description": "A walker event is forwarded to Amplitude as an amplitude.track call with the event name and empty properties.",
248
254
  "in": {
249
255
  "name": "product view",
250
256
  "data": {
@@ -284,7 +290,7 @@
284
290
  "group": "gr0up",
285
291
  "count": 1,
286
292
  "version": {
287
- "source": "3.4.0",
293
+ "source": "3.4.1",
288
294
  "tagging": 1
289
295
  },
290
296
  "source": {
@@ -302,6 +308,8 @@
302
308
  ]
303
309
  },
304
310
  "destinationLevelIdentify": {
311
+ "title": "Destination identify",
312
+ "description": "Destination-level identify sets userId, deviceId, and sessionId on the Amplitude client before sending events; setters only re-fire when the resolved values change (cached values are not re-applied on subsequent pushes).",
305
313
  "in": {
306
314
  "name": "page view",
307
315
  "data": {
@@ -356,7 +364,7 @@
356
364
  "group": "gr0up",
357
365
  "count": 1,
358
366
  "version": {
359
- "source": "3.4.0",
367
+ "source": "3.4.1",
360
368
  "tagging": 1
361
369
  },
362
370
  "source": {
@@ -395,6 +403,8 @@
395
403
  ]
396
404
  },
397
405
  "destinationLevelInclude": {
406
+ "title": "Include data",
407
+ "description": "Destination-level include flattens the event data section into prefixed event_properties on every track call.",
398
408
  "in": {
399
409
  "name": "product view",
400
410
  "data": {
@@ -434,7 +444,7 @@
434
444
  "group": "gr0up",
435
445
  "count": 1,
436
446
  "version": {
437
- "source": "3.4.0",
447
+ "source": "3.4.1",
438
448
  "tagging": 1
439
449
  },
440
450
  "source": {
@@ -461,6 +471,8 @@
461
471
  ]
462
472
  },
463
473
  "groupAssignmentWithProperties": {
474
+ "title": "Group assignment",
475
+ "description": "A company update assigns the user to a group and sets group properties via setGroup and groupIdentify.",
464
476
  "in": {
465
477
  "name": "company update",
466
478
  "data": {
@@ -513,7 +525,7 @@
513
525
  "group": "gr0up",
514
526
  "count": 1,
515
527
  "version": {
516
- "source": "3.4.0",
528
+ "source": "3.4.1",
517
529
  "tagging": 1
518
530
  },
519
531
  "source": {
@@ -577,6 +589,8 @@
577
589
  ]
578
590
  },
579
591
  "orderCompleteMultiProduct": {
592
+ "title": "Multi-product order",
593
+ "description": "An order fires one amplitude.revenue call per nested product plus a single track for the order totals.",
580
594
  "in": {
581
595
  "name": "order complete",
582
596
  "data": {
@@ -663,7 +677,7 @@
663
677
  "group": "gr0up",
664
678
  "count": 1,
665
679
  "version": {
666
- "source": "3.4.0",
680
+ "source": "3.4.1",
667
681
  "tagging": 1
668
682
  },
669
683
  "source": {
@@ -741,6 +755,8 @@
741
755
  ]
742
756
  },
743
757
  "ruleIncludeReplaces": {
758
+ "title": "Rule include overrides",
759
+ "description": "A per-rule include replaces the destination-level include for the matched event, here using only globals.",
744
760
  "in": {
745
761
  "name": "order complete",
746
762
  "data": {
@@ -827,7 +843,7 @@
827
843
  "group": "gr0up",
828
844
  "count": 1,
829
845
  "version": {
830
- "source": "3.4.0",
846
+ "source": "3.4.1",
831
847
  "tagging": 1
832
848
  },
833
849
  "source": {
@@ -855,6 +871,8 @@
855
871
  ]
856
872
  },
857
873
  "subscriptionRenewRevenue": {
874
+ "title": "Subscription revenue",
875
+ "description": "A subscription renewal fires a single amplitude.revenue call with productId, price, and currency fallback.",
858
876
  "in": {
859
877
  "name": "subscription renew",
860
878
  "data": {
@@ -905,7 +923,7 @@
905
923
  "group": "gr0up",
906
924
  "count": 1,
907
925
  "version": {
908
- "source": "3.4.0",
926
+ "source": "3.4.1",
909
927
  "tagging": 1
910
928
  },
911
929
  "source": {
@@ -945,6 +963,8 @@
945
963
  ]
946
964
  },
947
965
  "userLoginIdentify": {
966
+ "title": "User login identify",
967
+ "description": "A user login sets the Amplitude userId and runs identify with set, setOnce, and add operations.",
948
968
  "in": {
949
969
  "name": "user login",
950
970
  "data": {
@@ -997,7 +1017,7 @@
997
1017
  "group": "gr0up",
998
1018
  "count": 1,
999
1019
  "version": {
1000
- "source": "3.4.0",
1020
+ "source": "3.4.1",
1001
1021
  "tagging": 1
1002
1022
  },
1003
1023
  "source": {
@@ -1059,6 +1079,8 @@
1059
1079
  ]
1060
1080
  },
1061
1081
  "userLogoutReset": {
1082
+ "title": "User logout reset",
1083
+ "description": "A user logout calls amplitude.reset to clear the userId and regenerate the deviceId.",
1062
1084
  "in": {
1063
1085
  "name": "user logout",
1064
1086
  "data": {
@@ -1115,7 +1137,7 @@
1115
1137
  "group": "gr0up",
1116
1138
  "count": 1,
1117
1139
  "version": {
1118
- "source": "3.4.0",
1140
+ "source": "3.4.1",
1119
1141
  "tagging": 1
1120
1142
  },
1121
1143
  "source": {
@@ -1137,6 +1159,7 @@
1137
1159
  ]
1138
1160
  },
1139
1161
  "wildcardIgnored": {
1162
+ "public": false,
1140
1163
  "in": {
1141
1164
  "name": "debug noise",
1142
1165
  "data": {
@@ -1193,7 +1216,7 @@
1193
1216
  "group": "gr0up",
1194
1217
  "count": 1,
1195
1218
  "version": {
1196
- "source": "3.4.0",
1219
+ "source": "3.4.1",
1197
1220
  "tagging": 1
1198
1221
  },
1199
1222
  "source": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@walkeros/web-destination-amplitude",
3
3
  "description": "Amplitude web destination for walkerOS (analytics, session replay, experiments, guides & surveys)",
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",
@@ -38,10 +38,10 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@amplitude/unified": "^1.0.16",
41
- "@walkeros/web-core": "3.4.0"
41
+ "@walkeros/web-core": "3.4.1"
42
42
  },
43
43
  "devDependencies": {
44
- "@walkeros/collector": "3.4.0"
44
+ "@walkeros/collector": "3.4.1"
45
45
  },
46
46
  "repository": {
47
47
  "url": "git+https://github.com/elbwalker/walkerOS.git",