@walkeros/cli 4.8.1 → 4.8.3-next-1793115089237

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 (51) hide show
  1. package/CHANGELOG.md +115 -3
  2. package/README.md +2 -2
  3. package/dist/cli.js +4149 -4149
  4. package/dist/dev.d.ts +51 -3
  5. package/dist/dev.js +186 -0
  6. package/dist/dev.js.map +1 -1
  7. package/dist/examples/README.md +12 -1
  8. package/dist/examples/contracts/app.json +261 -0
  9. package/dist/examples/contracts/base.json +708 -0
  10. package/dist/examples/contracts/ecommerce.json +963 -0
  11. package/dist/examples/contracts/leadgen.json +240 -0
  12. package/dist/examples/contracts/publisher.json +372 -0
  13. package/dist/examples/contracts/saas.json +229 -0
  14. package/dist/examples/contracts/travel.json +234 -0
  15. package/dist/examples/customers/README.md +4 -1
  16. package/dist/examples/event.json +1 -1
  17. package/dist/examples/flow-complete.json +107 -130
  18. package/dist/examples/flow-complete.md +12 -10
  19. package/dist/examples/flow-order-complete.json +1 -1
  20. package/dist/examples/flow.json +1 -1
  21. package/dist/examples/index.d.ts +34 -4
  22. package/dist/examples/index.js +128 -139
  23. package/dist/examples/index.js.map +1 -1
  24. package/dist/examples/shared/README.md +4 -0
  25. package/dist/index.d.ts +63 -223
  26. package/dist/index.js +572 -992
  27. package/dist/index.js.map +1 -1
  28. package/dist/validate.d.ts +1 -1
  29. package/dist/validate.js +337 -204
  30. package/dist/validate.js.map +1 -1
  31. package/examples/README.md +12 -1
  32. package/examples/contracts/app.json +261 -0
  33. package/examples/contracts/base.json +708 -0
  34. package/examples/contracts/ecommerce.json +963 -0
  35. package/examples/contracts/leadgen.json +240 -0
  36. package/examples/contracts/publisher.json +372 -0
  37. package/examples/contracts/saas.json +229 -0
  38. package/examples/contracts/travel.json +234 -0
  39. package/examples/customers/README.md +4 -1
  40. package/examples/event.json +1 -1
  41. package/examples/flow-complete.json +107 -130
  42. package/examples/flow-complete.md +12 -10
  43. package/examples/flow-order-complete.json +1 -1
  44. package/examples/flow.json +1 -1
  45. package/examples/shared/README.md +4 -0
  46. package/package.json +30 -30
  47. package/src/telemetry/flow.json +42 -34
  48. package/dist/examples/test.html +0 -43
  49. package/dist/examples/web-serve.js +0 -25503
  50. package/examples/test.html +0 -43
  51. package/examples/web-serve.js +0 -25503
@@ -163,13 +163,13 @@ var flow_complete_default = {
163
163
  properties: {
164
164
  data: {
165
165
  type: "object",
166
- required: ["id", "total", "currency"],
166
+ required: ["id", "value", "currency"],
167
167
  properties: {
168
168
  id: {
169
169
  type: "string",
170
170
  minLength: 1
171
171
  },
172
- total: {
172
+ value: {
173
173
  type: "number",
174
174
  minimum: 0
175
175
  },
@@ -264,25 +264,25 @@ var flow_complete_default = {
264
264
  bundle: {
265
265
  packages: {
266
266
  "@walkeros/collector": {
267
- version: "4.8.1"
267
+ version: "4.8.3-next-1793115089237"
268
268
  },
269
269
  "@walkeros/web-source-cmp-usercentrics": {
270
- version: "4.8.1"
270
+ version: "4.8.3-next-1793115089237"
271
271
  },
272
272
  "@walkeros/web-source-session": {
273
- version: "4.8.1"
273
+ version: "4.8.3-next-1793115089237"
274
274
  },
275
275
  "@walkeros/web-source-datalayer": {
276
- version: "4.8.1"
276
+ version: "4.8.3-next-1793115089237"
277
277
  },
278
278
  "@walkeros/web-source-browser": {
279
- version: "4.8.1"
279
+ version: "4.8.3-next-1793115089237"
280
280
  },
281
281
  "@walkeros/web-destination-gtag": {
282
- version: "4.8.1"
282
+ version: "4.8.3-next-1793115089237"
283
283
  },
284
284
  "@walkeros/web-destination-api": {
285
- version: "4.8.1"
285
+ version: "4.8.3-next-1793115089237"
286
286
  }
287
287
  },
288
288
  env: {
@@ -328,7 +328,7 @@ var flow_complete_default = {
328
328
  examples: {
329
329
  explicitDecision: {
330
330
  title: "Explicit decision",
331
- description: "The user accepts every category in the banner. categoryMap turns essential and functional into functional, so the collector receives exactly the consent keys the contract names.",
331
+ description: "The user accepts every category in the banner. categoryMap folds essential into functional so the collector receives exactly the consent keys the contract names; because any deny denies, functional still follows the functional category, and essential never grants it alone.",
332
332
  public: true,
333
333
  trigger: {
334
334
  type: "consent",
@@ -538,15 +538,13 @@ var flow_complete_default = {
538
538
  dataLayer: {
539
539
  add_to_cart: {
540
540
  name: "product add",
541
- data: {
542
- map: {
543
- id: "data.items.0.item_id",
544
- name: "data.items.0.item_name",
545
- price: "data.items.0.price",
546
- quantity: {
547
- key: "data.items.0.quantity",
548
- value: 1
549
- }
541
+ policy: {
542
+ "data.id": "data.items.0.item_id",
543
+ "data.name": "data.items.0.item_name",
544
+ "data.price": "data.items.0.price",
545
+ "data.quantity": {
546
+ key: "data.items.0.quantity",
547
+ value: 1
550
548
  }
551
549
  }
552
550
  }
@@ -759,7 +757,7 @@ var flow_complete_default = {
759
757
  action: "complete",
760
758
  data: {
761
759
  id: "ORD-100",
762
- total: 149.8,
760
+ value: 149.8,
763
761
  currency: "EUR",
764
762
  coupon: "WELCOME10"
765
763
  },
@@ -813,7 +811,7 @@ var flow_complete_default = {
813
811
  action: "complete",
814
812
  data: {
815
813
  id: "ORD-100",
816
- total: 149.8,
814
+ value: 149.8,
817
815
  currency: "EUR",
818
816
  coupon: "WELCOME10"
819
817
  },
@@ -956,7 +954,14 @@ var flow_complete_default = {
956
954
  ga4: {
957
955
  measurementId: "$env.GA4_MEASUREMENT_ID:G-MAINSITE"
958
956
  },
959
- como: true
957
+ como: {
958
+ marketing: [
959
+ "ad_storage",
960
+ "ad_user_data",
961
+ "ad_personalization"
962
+ ],
963
+ functional: "analytics_storage"
964
+ }
960
965
  },
961
966
  mapping: {
962
967
  product: {
@@ -989,12 +994,12 @@ var flow_complete_default = {
989
994
  order: {
990
995
  complete: {
991
996
  name: "purchase",
992
- condition: "$code:(event) => event.data && event.data.total > 0",
997
+ condition: "$code:(event) => event.data && event.data.value > 0",
993
998
  data: {
994
999
  map: {
995
1000
  transaction_id: "data.id",
996
1001
  value: {
997
- fn: "$code:(event) => Math.round(Number(event.data.total) * 100) / 100"
1002
+ fn: "$code:(event) => Math.round(Number(event.data.value) * 100) / 100"
998
1003
  },
999
1004
  currency: [
1000
1005
  "data.currency",
@@ -1036,12 +1041,12 @@ var flow_complete_default = {
1036
1041
  public: true,
1037
1042
  mapping: {
1038
1043
  name: "purchase",
1039
- condition: "$code:(event) => event.data && event.data.total > 0",
1044
+ condition: "$code:(event) => event.data && event.data.value > 0",
1040
1045
  data: {
1041
1046
  map: {
1042
1047
  transaction_id: "data.id",
1043
1048
  value: {
1044
- fn: "$code:(event) => Math.round(Number(event.data.total) * 100) / 100"
1049
+ fn: "$code:(event) => Math.round(Number(event.data.value) * 100) / 100"
1045
1050
  },
1046
1051
  currency: [
1047
1052
  "data.currency",
@@ -1079,7 +1084,7 @@ var flow_complete_default = {
1079
1084
  action: "complete",
1080
1085
  data: {
1081
1086
  id: "ORD-100",
1082
- total: 149.8,
1087
+ value: 149.8,
1083
1088
  currency: "EUR",
1084
1089
  coupon: "WELCOME10"
1085
1090
  },
@@ -1173,12 +1178,12 @@ var flow_complete_default = {
1173
1178
  description: "The coupon condition leaves the parameter out when the order has none.",
1174
1179
  mapping: {
1175
1180
  name: "purchase",
1176
- condition: "$code:(event) => event.data && event.data.total > 0",
1181
+ condition: "$code:(event) => event.data && event.data.value > 0",
1177
1182
  data: {
1178
1183
  map: {
1179
1184
  transaction_id: "data.id",
1180
1185
  value: {
1181
- fn: "$code:(event) => Math.round(Number(event.data.total) * 100) / 100"
1186
+ fn: "$code:(event) => Math.round(Number(event.data.value) * 100) / 100"
1182
1187
  },
1183
1188
  currency: [
1184
1189
  "data.currency",
@@ -1216,7 +1221,7 @@ var flow_complete_default = {
1216
1221
  action: "complete",
1217
1222
  data: {
1218
1223
  id: "ORD-101",
1219
- total: 129.9,
1224
+ value: 129.9,
1220
1225
  currency: "EUR"
1221
1226
  },
1222
1227
  id: "ev-order-complete",
@@ -1444,6 +1449,14 @@ var flow_complete_default = {
1444
1449
  settings: {
1445
1450
  gtm: {
1446
1451
  containerId: "$env.GTM_ID:GTM-SHOP01"
1452
+ },
1453
+ como: {
1454
+ marketing: [
1455
+ "ad_storage",
1456
+ "ad_user_data",
1457
+ "ad_personalization"
1458
+ ],
1459
+ functional: "analytics_storage"
1447
1460
  }
1448
1461
  },
1449
1462
  mapping: {
@@ -1649,7 +1662,7 @@ var flow_complete_default = {
1649
1662
  action: "complete",
1650
1663
  data: {
1651
1664
  id: "ORD-100",
1652
- total: 149.8,
1665
+ value: 149.8,
1653
1666
  currency: "EUR",
1654
1667
  coupon: "WELCOME10"
1655
1668
  },
@@ -1700,7 +1713,7 @@ var flow_complete_default = {
1700
1713
  [
1701
1714
  "sendWeb",
1702
1715
  "http://localhost:8080/collect",
1703
- '[{"name":"order complete","data":{"id":"ORD-100","total":149.8,"currency":"EUR","coupon":"WELCOME10"},"context":{},"globals":{"site":"shop","language":"en","pageGroup":"checkout"},"custom":{},"user":{"device":"d3v1c3","session":"s3ss10n","id":"cust-42","email":"jane@example.com"},"nested":[{"entity":"product","data":{"id":"SKU-1","name":"Trail Runner","price":129.9,"quantity":1}},{"entity":"product","data":{"id":"SKU-2","name":"Running Socks","price":9.95,"quantity":2}}],"consent":{"functional":true,"marketing":true},"id":"ev-order-complete","trigger":"load","entity":"order","action":"complete","timestamp":1700000000000,"source":{"type":"browser","platform":"web","url":"https://www.example.com/checkout/thanks","count":1,"release":{"web":"4.6.1"}}}]',
1716
+ '[{"name":"order complete","data":{"id":"ORD-100","value":149.8,"currency":"EUR","coupon":"WELCOME10"},"context":{},"globals":{"site":"shop","language":"en","pageGroup":"checkout"},"custom":{},"user":{"device":"d3v1c3","session":"s3ss10n","id":"cust-42","email":"jane@example.com"},"nested":[{"entity":"product","data":{"id":"SKU-1","name":"Trail Runner","price":129.9,"quantity":1}},{"entity":"product","data":{"id":"SKU-2","name":"Running Socks","price":9.95,"quantity":2}}],"consent":{"functional":true,"marketing":true},"id":"ev-order-complete","trigger":"load","entity":"order","action":"complete","timestamp":1700000000000,"source":{"type":"browser","platform":"web","url":"https://www.example.com/checkout/thanks","count":1,"release":{"web":"4.6.1"}}}]',
1704
1717
  {
1705
1718
  transport: "beacon"
1706
1719
  }
@@ -1716,7 +1729,7 @@ var flow_complete_default = {
1716
1729
  action: "complete",
1717
1730
  data: {
1718
1731
  id: "ORD-100",
1719
- total: 149.8,
1732
+ value: 149.8,
1720
1733
  currency: "EUR",
1721
1734
  coupon: "WELCOME10"
1722
1735
  },
@@ -1766,7 +1779,7 @@ var flow_complete_default = {
1766
1779
  [
1767
1780
  "sendWeb",
1768
1781
  "http://localhost:8080/collect",
1769
- '[{"name":"order complete","data":{"id":"ORD-100","total":149.8,"currency":"EUR","coupon":"WELCOME10"},"context":{},"globals":{"site":"shop","language":"en","pageGroup":"checkout"},"custom":{},"user":{"device":"d3v1c3","session":"s3ss10n","id":"cust-42"},"nested":[{"entity":"product","data":{"id":"SKU-1","name":"Trail Runner","price":129.9,"quantity":1}},{"entity":"product","data":{"id":"SKU-2","name":"Running Socks","price":9.95,"quantity":2}}],"consent":{"functional":true},"id":"ev-order-complete","trigger":"load","entity":"order","action":"complete","timestamp":1700000000000,"source":{"type":"browser","platform":"web","url":"https://www.example.com/checkout/thanks","count":1,"release":{"web":"4.6.1"}}}]',
1782
+ '[{"name":"order complete","data":{"id":"ORD-100","value":149.8,"currency":"EUR","coupon":"WELCOME10"},"context":{},"globals":{"site":"shop","language":"en","pageGroup":"checkout"},"custom":{},"user":{"device":"d3v1c3","session":"s3ss10n","id":"cust-42"},"nested":[{"entity":"product","data":{"id":"SKU-1","name":"Trail Runner","price":129.9,"quantity":1}},{"entity":"product","data":{"id":"SKU-2","name":"Running Socks","price":9.95,"quantity":2}}],"consent":{"functional":true},"id":"ev-order-complete","trigger":"load","entity":"order","action":"complete","timestamp":1700000000000,"source":{"type":"browser","platform":"web","url":"https://www.example.com/checkout/thanks","count":1,"release":{"web":"4.6.1"}}}]',
1770
1783
  {
1771
1784
  transport: "beacon"
1772
1785
  }
@@ -1788,40 +1801,40 @@ var flow_complete_default = {
1788
1801
  bundle: {
1789
1802
  packages: {
1790
1803
  "@walkeros/collector": {
1791
- version: "4.8.1"
1804
+ version: "4.8.3-next-1793115089237"
1792
1805
  },
1793
1806
  "@walkeros/server-source-express": {
1794
- version: "4.8.1"
1807
+ version: "4.8.3-next-1793115089237"
1795
1808
  },
1796
1809
  "@walkeros/transformer-ga4": {
1797
- version: "4.8.1"
1810
+ version: "4.8.3-next-1793115089237"
1798
1811
  },
1799
1812
  "@walkeros/transformer-validate": {
1800
- version: "4.8.1"
1813
+ version: "4.8.3-next-1793115089237"
1801
1814
  },
1802
1815
  "@walkeros/server-transformer-bot": {
1803
- version: "4.8.1"
1816
+ version: "4.8.3-next-1793115089237"
1804
1817
  },
1805
1818
  "@walkeros/server-transformer-fingerprint": {
1806
- version: "4.8.1"
1819
+ version: "4.8.3-next-1793115089237"
1807
1820
  },
1808
1821
  "@walkeros/server-transformer-file": {
1809
- version: "4.8.1"
1822
+ version: "4.8.3-next-1793115089237"
1810
1823
  },
1811
1824
  "@walkeros/server-store-fs": {
1812
- version: "4.8.1"
1825
+ version: "4.8.3-next-1793115089237"
1813
1826
  },
1814
1827
  "@walkeros/server-destination-gcp": {
1815
- version: "4.8.1"
1828
+ version: "4.8.3-next-1793115089237"
1816
1829
  },
1817
1830
  "@walkeros/server-destination-meta": {
1818
- version: "4.8.1"
1831
+ version: "4.8.3-next-1793115089237"
1819
1832
  },
1820
1833
  "@walkeros/server-destination-piwikpro": {
1821
- version: "4.8.1"
1834
+ version: "4.8.3-next-1793115089237"
1822
1835
  },
1823
1836
  "@walkeros/server-destination-datamanager": {
1824
- version: "4.8.1"
1837
+ version: "4.8.3-next-1793115089237"
1825
1838
  }
1826
1839
  }
1827
1840
  }
@@ -1907,7 +1920,7 @@ var flow_complete_default = {
1907
1920
  },
1908
1921
  ingest: {
1909
1922
  map: {
1910
- ip: "ip",
1923
+ ip: "headers.x-client-ip",
1911
1924
  path: "path",
1912
1925
  method: "method",
1913
1926
  url: "url",
@@ -1989,7 +2002,7 @@ var flow_complete_default = {
1989
2002
  action: "complete",
1990
2003
  data: {
1991
2004
  id: "ORD-100",
1992
- total: 149.8,
2005
+ value: 149.8,
1993
2006
  currency: "EUR",
1994
2007
  coupon: "WELCOME10"
1995
2008
  },
@@ -2046,7 +2059,7 @@ var flow_complete_default = {
2046
2059
  action: "complete",
2047
2060
  data: {
2048
2061
  id: "ORD-100",
2049
- total: 149.8,
2062
+ value: 149.8,
2050
2063
  currency: "EUR",
2051
2064
  coupon: "WELCOME10"
2052
2065
  },
@@ -2140,7 +2153,7 @@ var flow_complete_default = {
2140
2153
  data: {
2141
2154
  id: "SUB-77",
2142
2155
  currency: "EUR",
2143
- total: 59.9
2156
+ value: 59.9
2144
2157
  },
2145
2158
  user: {
2146
2159
  device: "cid-9",
@@ -2430,42 +2443,6 @@ var flow_complete_default = {
2430
2443
  },
2431
2444
  next: {
2432
2445
  stop: true
2433
- },
2434
- examples: {
2435
- walkerJs: {
2436
- title: "Serve walker.js first party",
2437
- description: "GET /walker.js is answered from the assets store with the configured headers; the step returns false and its next stops, so a script request never becomes an event. Proven over HTTP in the flow test.",
2438
- public: true,
2439
- in: {
2440
- name: "page view",
2441
- entity: "page",
2442
- action: "view",
2443
- data: {
2444
- domain: "www.example.com",
2445
- title: "Trail Runner",
2446
- id: "/product/trail-runner"
2447
- },
2448
- id: "ev-page-view",
2449
- trigger: "load",
2450
- timestamp: 17e11,
2451
- consent: {
2452
- functional: true,
2453
- marketing: true
2454
- },
2455
- globals: {
2456
- language: "en",
2457
- pageGroup: "product"
2458
- },
2459
- user: {
2460
- device: "d3v1c3",
2461
- session: "s3ss10n"
2462
- },
2463
- source: {
2464
- type: "express",
2465
- platform: "server"
2466
- }
2467
- }
2468
- }
2469
2446
  }
2470
2447
  },
2471
2448
  dedup: {
@@ -2490,7 +2467,7 @@ var flow_complete_default = {
2490
2467
  action: "complete",
2491
2468
  data: {
2492
2469
  id: "ORD-100",
2493
- total: 149.8,
2470
+ value: 149.8,
2494
2471
  currency: "EUR",
2495
2472
  coupon: "WELCOME10"
2496
2473
  },
@@ -2547,7 +2524,7 @@ var flow_complete_default = {
2547
2524
  action: "complete",
2548
2525
  data: {
2549
2526
  id: "ORD-100",
2550
- total: 149.8,
2527
+ value: 149.8,
2551
2528
  currency: "EUR",
2552
2529
  coupon: "WELCOME10"
2553
2530
  },
@@ -2620,7 +2597,7 @@ var flow_complete_default = {
2620
2597
  action: "complete",
2621
2598
  data: {
2622
2599
  id: "ORD-100",
2623
- total: 149.8,
2600
+ value: 149.8,
2624
2601
  currency: "EUR",
2625
2602
  coupon: "WELCOME10"
2626
2603
  },
@@ -2677,7 +2654,7 @@ var flow_complete_default = {
2677
2654
  action: "complete",
2678
2655
  data: {
2679
2656
  id: "ORD-100",
2680
- total: 149.8,
2657
+ value: 149.8,
2681
2658
  currency: "EUR",
2682
2659
  coupon: "WELCOME10"
2683
2660
  },
@@ -2744,7 +2721,7 @@ var flow_complete_default = {
2744
2721
  action: "complete",
2745
2722
  data: {
2746
2723
  id: "ORD-100",
2747
- total: 149.8,
2724
+ value: 149.8,
2748
2725
  currency: "EUR",
2749
2726
  coupon: "WELCOME10"
2750
2727
  },
@@ -2801,7 +2778,7 @@ var flow_complete_default = {
2801
2778
  action: "complete",
2802
2779
  data: {
2803
2780
  id: "ORD-100",
2804
- total: 149.8,
2781
+ value: 149.8,
2805
2782
  currency: "EUR",
2806
2783
  coupon: "WELCOME10"
2807
2784
  },
@@ -2863,7 +2840,7 @@ var flow_complete_default = {
2863
2840
  action: "complete",
2864
2841
  data: {
2865
2842
  id: "ORD-100",
2866
- total: 149.8,
2843
+ value: 149.8,
2867
2844
  currency: "EUR",
2868
2845
  coupon: "WELCOME10"
2869
2846
  },
@@ -2920,7 +2897,7 @@ var flow_complete_default = {
2920
2897
  action: "complete",
2921
2898
  data: {
2922
2899
  id: "ORD-100",
2923
- total: 149.8,
2900
+ value: 149.8,
2924
2901
  currency: "EUR",
2925
2902
  coupon: "WELCOME10"
2926
2903
  },
@@ -3014,7 +2991,7 @@ var flow_complete_default = {
3014
2991
  action: "complete",
3015
2992
  data: {
3016
2993
  id: "ORD-100",
3017
- total: 149.8,
2994
+ value: 149.8,
3018
2995
  currency: "EUR",
3019
2996
  coupon: "WELCOME10"
3020
2997
  },
@@ -3074,7 +3051,7 @@ var flow_complete_default = {
3074
3051
  action: "complete",
3075
3052
  data: {
3076
3053
  id: "ORD-100",
3077
- total: 149.8,
3054
+ value: 149.8,
3078
3055
  currency: "EUR",
3079
3056
  coupon: "WELCOME10"
3080
3057
  },
@@ -3157,7 +3134,7 @@ var flow_complete_default = {
3157
3134
  action: "complete",
3158
3135
  data: {
3159
3136
  id: "ORD-100",
3160
- total: 149.8,
3137
+ value: 149.8,
3161
3138
  currency: "EUR",
3162
3139
  coupon: "WELCOME10"
3163
3140
  },
@@ -3217,7 +3194,7 @@ var flow_complete_default = {
3217
3194
  action: "complete",
3218
3195
  data: {
3219
3196
  id: "ORD-100",
3220
- total: 149.8,
3197
+ value: 149.8,
3221
3198
  currency: "EUR",
3222
3199
  coupon: "WELCOME10"
3223
3200
  },
@@ -3388,7 +3365,7 @@ var flow_complete_default = {
3388
3365
  action: "complete",
3389
3366
  data: {
3390
3367
  id: "ORD-100",
3391
- total: 149.8,
3368
+ value: 149.8,
3392
3369
  currency: "EUR",
3393
3370
  coupon: "WELCOME10"
3394
3371
  },
@@ -3448,7 +3425,7 @@ var flow_complete_default = {
3448
3425
  action: "complete",
3449
3426
  data: {
3450
3427
  id: "ORD-100",
3451
- total: 149.8,
3428
+ value: 149.8,
3452
3429
  currency: "EUR",
3453
3430
  coupon: "WELCOME10"
3454
3431
  },
@@ -3523,7 +3500,7 @@ var flow_complete_default = {
3523
3500
  action: "complete",
3524
3501
  data: {
3525
3502
  id: "ORD-100",
3526
- total: 149.8,
3503
+ value: 149.8,
3527
3504
  currency: "EUR",
3528
3505
  coupon: "WELCOME10"
3529
3506
  },
@@ -3584,7 +3561,7 @@ var flow_complete_default = {
3584
3561
  action: "complete",
3585
3562
  data: {
3586
3563
  id: "ORD-100",
3587
- total: 149.8,
3564
+ value: 149.8,
3588
3565
  currency: "EUR",
3589
3566
  coupon: "WELCOME10"
3590
3567
  },
@@ -3649,7 +3626,7 @@ var flow_complete_default = {
3649
3626
  action: "complete",
3650
3627
  data: {
3651
3628
  id: "ORD-100",
3652
- total: 149.8,
3629
+ value: 149.8,
3653
3630
  currency: "EUR",
3654
3631
  coupon: "WELCOME10"
3655
3632
  },
@@ -3708,7 +3685,7 @@ var flow_complete_default = {
3708
3685
  action: "complete",
3709
3686
  data: {
3710
3687
  id: "ORD-100",
3711
- total: 149.8,
3688
+ value: 149.8,
3712
3689
  currency: "EUR",
3713
3690
  coupon: "WELCOME10"
3714
3691
  },
@@ -3798,7 +3775,7 @@ var flow_complete_default = {
3798
3775
  action: "complete",
3799
3776
  data: {
3800
3777
  id: "ORD-100",
3801
- total: 149.8,
3778
+ value: 149.8,
3802
3779
  currency: "EUR",
3803
3780
  coupon: "WELCOME10"
3804
3781
  },
@@ -3860,7 +3837,7 @@ var flow_complete_default = {
3860
3837
  action: "complete",
3861
3838
  data: {
3862
3839
  id: "ORD-100",
3863
- total: 149.8,
3840
+ value: 149.8,
3864
3841
  currency: "EUR",
3865
3842
  coupon: "WELCOME10"
3866
3843
  },
@@ -3965,7 +3942,7 @@ var flow_complete_default = {
3965
3942
  action: "complete",
3966
3943
  data: {
3967
3944
  id: "ORD-100",
3968
- total: 149.8,
3945
+ value: 149.8,
3969
3946
  currency: "EUR",
3970
3947
  coupon: "WELCOME10"
3971
3948
  },
@@ -4028,7 +4005,7 @@ var flow_complete_default = {
4028
4005
  action: "complete",
4029
4006
  data: {
4030
4007
  id: "ORD-100",
4031
- total: 149.8,
4008
+ value: 149.8,
4032
4009
  currency: "EUR",
4033
4010
  coupon: "WELCOME10"
4034
4011
  },
@@ -4109,7 +4086,7 @@ var flow_complete_default = {
4109
4086
  action: "complete",
4110
4087
  data: {
4111
4088
  id: "ORD-100",
4112
- total: 149.8,
4089
+ value: 149.8,
4113
4090
  currency: "EUR",
4114
4091
  coupon: "WELCOME10"
4115
4092
  },
@@ -4172,7 +4149,7 @@ var flow_complete_default = {
4172
4149
  action: "complete",
4173
4150
  data: {
4174
4151
  id: "ORD-100",
4175
- total: 149.8,
4152
+ value: 149.8,
4176
4153
  currency: "EUR",
4177
4154
  coupon: "WELCOME10"
4178
4155
  },
@@ -4277,7 +4254,7 @@ var flow_complete_default = {
4277
4254
  action: "complete",
4278
4255
  data: {
4279
4256
  id: "ORD-100",
4280
- total: 149.8,
4257
+ value: 149.8,
4281
4258
  currency: "EUR",
4282
4259
  coupon: "WELCOME10"
4283
4260
  },
@@ -4334,7 +4311,7 @@ var flow_complete_default = {
4334
4311
  [
4335
4312
  "PubSub.topic.publishMessage",
4336
4313
  {
4337
- data: '{"name":"order complete","data":{"id":"ORD-100","total":149.8,"currency":"EUR","coupon":"WELCOME10"},"context":{},"globals":{"language":"en","pageGroup":"checkout"},"custom":{},"user":{"device":"d3v1c3","session":"s3ss10n","id":"cust-42","email":"4cdea64501d6109d0a25750a7ce1d5c87e5fc927c61b674f191b73e28b582c93","hash":"cea3ca84340feb4a","botScore":null,"botCategory":"unknown","ltv":420,"segment":"loyal"},"nested":[{"entity":"product","data":{"id":"SKU-1","name":"Trail Runner","price":129.9,"quantity":1}},{"entity":"product","data":{"id":"SKU-2","name":"Running Socks","price":9.95,"quantity":2}}],"consent":{"functional":true,"marketing":true},"id":"ev-order-complete","trigger":"load","entity":"order","action":"complete","timestamp":1700000000000,"timing":0,"source":{"type":"express","platform":"server","url":"https://www.example.com/checkout/thanks","valid":true,"count":1,"release":{"server":"4.6.1"}}}'
4314
+ data: '{"name":"order complete","data":{"id":"ORD-100","value":149.8,"currency":"EUR","coupon":"WELCOME10"},"context":{},"globals":{"language":"en","pageGroup":"checkout"},"custom":{},"user":{"device":"d3v1c3","session":"s3ss10n","id":"cust-42","email":"4cdea64501d6109d0a25750a7ce1d5c87e5fc927c61b674f191b73e28b582c93","hash":"7f1b2860213c9d3d","botScore":0,"botCategory":"human","ltv":420,"segment":"loyal"},"nested":[{"entity":"product","data":{"id":"SKU-1","name":"Trail Runner","price":129.9,"quantity":1}},{"entity":"product","data":{"id":"SKU-2","name":"Running Socks","price":9.95,"quantity":2}}],"consent":{"functional":true,"marketing":true},"id":"ev-order-complete","trigger":"load","entity":"order","action":"complete","timestamp":1700000000000,"timing":0,"source":{"type":"express","platform":"server","url":"https://www.example.com/checkout/thanks","valid":true,"count":1,"release":{"server":"4.6.1"}}}'
4338
4315
  }
4339
4316
  ]
4340
4317
  ]
@@ -4384,7 +4361,7 @@ var flow_complete_default = {
4384
4361
  },
4385
4362
  data: {
4386
4363
  map: {
4387
- value: "data.total",
4364
+ value: "data.value",
4388
4365
  currency: [
4389
4366
  "data.currency",
4390
4367
  {
@@ -4434,7 +4411,7 @@ var flow_complete_default = {
4434
4411
  },
4435
4412
  data: {
4436
4413
  map: {
4437
- value: "data.total",
4414
+ value: "data.value",
4438
4415
  currency: [
4439
4416
  "data.currency",
4440
4417
  {
@@ -4451,7 +4428,7 @@ var flow_complete_default = {
4451
4428
  action: "complete",
4452
4429
  data: {
4453
4430
  id: "ORD-100",
4454
- total: 149.8,
4431
+ value: 149.8,
4455
4432
  currency: "EUR",
4456
4433
  coupon: "WELCOME10"
4457
4434
  },
@@ -4593,7 +4570,7 @@ var flow_complete_default = {
4593
4570
  name: "ecommerceOrder",
4594
4571
  settings: {
4595
4572
  goalId: "$env.PIWIK_ORDER_GOAL:6a0f4c1e-3b2d-4e8f-a7c9-1d2e3f4a5b6c",
4596
- goalValue: "data.total"
4573
+ goalValue: "data.value"
4597
4574
  },
4598
4575
  data: {
4599
4576
  set: [
@@ -4616,7 +4593,7 @@ var flow_complete_default = {
4616
4593
  {
4617
4594
  map: {
4618
4595
  orderId: "data.id",
4619
- grandTotal: "data.total"
4596
+ grandTotal: "data.value"
4620
4597
  }
4621
4598
  }
4622
4599
  ]
@@ -4639,7 +4616,7 @@ var flow_complete_default = {
4639
4616
  name: "ecommerceOrder",
4640
4617
  settings: {
4641
4618
  goalId: "$env.PIWIK_ORDER_GOAL:6a0f4c1e-3b2d-4e8f-a7c9-1d2e3f4a5b6c",
4642
- goalValue: "data.total"
4619
+ goalValue: "data.value"
4643
4620
  },
4644
4621
  data: {
4645
4622
  set: [
@@ -4662,7 +4639,7 @@ var flow_complete_default = {
4662
4639
  {
4663
4640
  map: {
4664
4641
  orderId: "data.id",
4665
- grandTotal: "data.total"
4642
+ grandTotal: "data.value"
4666
4643
  }
4667
4644
  }
4668
4645
  ]
@@ -4674,7 +4651,7 @@ var flow_complete_default = {
4674
4651
  action: "complete",
4675
4652
  data: {
4676
4653
  id: "ORD-100",
4677
- total: 149.8,
4654
+ value: 149.8,
4678
4655
  currency: "EUR",
4679
4656
  coupon: "WELCOME10"
4680
4657
  },
@@ -4766,7 +4743,7 @@ var flow_complete_default = {
4766
4743
  data: {
4767
4744
  map: {
4768
4745
  transactionId: "data.id",
4769
- conversionValue: "data.total",
4746
+ conversionValue: "data.value",
4770
4747
  currency: [
4771
4748
  "data.currency",
4772
4749
  {
@@ -4800,7 +4777,7 @@ var flow_complete_default = {
4800
4777
  data: {
4801
4778
  map: {
4802
4779
  transactionId: "data.id",
4803
- conversionValue: "data.total",
4780
+ conversionValue: "data.value",
4804
4781
  currency: [
4805
4782
  "data.currency",
4806
4783
  {
@@ -4817,7 +4794,7 @@ var flow_complete_default = {
4817
4794
  action: "complete",
4818
4795
  data: {
4819
4796
  id: "ORD-100",
4820
- total: 149.8,
4797
+ value: 149.8,
4821
4798
  currency: "EUR",
4822
4799
  coupon: "WELCOME10",
4823
4800
  session: {
@@ -4898,13 +4875,13 @@ var flow_complete_default = {
4898
4875
  bundle: {
4899
4876
  packages: {
4900
4877
  "@walkeros/collector": {
4901
- version: "4.8.1"
4878
+ version: "4.8.3-next-1793115089237"
4902
4879
  },
4903
4880
  "@walkeros/server-source-gcp": {
4904
- version: "4.8.1"
4881
+ version: "4.8.3-next-1793115089237"
4905
4882
  },
4906
4883
  "@walkeros/server-destination-gcp": {
4907
- version: "4.8.1"
4884
+ version: "4.8.3-next-1793115089237"
4908
4885
  }
4909
4886
  }
4910
4887
  }
@@ -4936,7 +4913,7 @@ var flow_complete_default = {
4936
4913
  public: true,
4937
4914
  in: {
4938
4915
  id: "msg-1",
4939
- dataString: '{"name":"order complete","entity":"order","action":"complete","data":{"id":"ORD-100","total":149.8,"currency":"EUR","coupon":"WELCOME10"},"id":"ev-order-complete","trigger":"load","timestamp":1700000000000,"consent":{"functional":true,"marketing":true},"globals":{"language":"en","pageGroup":"checkout"},"user":{"device":"d3v1c3","session":"s3ss10n","id":"cust-42","email":"31b4ae339b671c9e81adbe27e74b38f09a4756300de6b81998c83a3964cbb849","hash":"5f1c0a9e7d3b2c41","botScore":0,"botCategory":"human","ltv":420,"segment":"loyal"},"source":{"type":"express","platform":"server","url":"https://www.example.com/checkout/thanks","valid":true},"nested":[{"entity":"product","data":{"id":"SKU-1","name":"Trail Runner","price":129.9,"quantity":1}},{"entity":"product","data":{"id":"SKU-2","name":"Running Socks","price":9.95,"quantity":2}}]}',
4916
+ dataString: '{"name":"order complete","entity":"order","action":"complete","data":{"id":"ORD-100","value":149.8,"currency":"EUR","coupon":"WELCOME10"},"id":"ev-order-complete","trigger":"load","timestamp":1700000000000,"consent":{"functional":true,"marketing":true},"globals":{"language":"en","pageGroup":"checkout"},"user":{"device":"d3v1c3","session":"s3ss10n","id":"cust-42","email":"31b4ae339b671c9e81adbe27e74b38f09a4756300de6b81998c83a3964cbb849","hash":"5f1c0a9e7d3b2c41","botScore":0,"botCategory":"human","ltv":420,"segment":"loyal"},"source":{"type":"express","platform":"server","url":"https://www.example.com/checkout/thanks","valid":true},"nested":[{"entity":"product","data":{"id":"SKU-1","name":"Trail Runner","price":129.9,"quantity":1}},{"entity":"product","data":{"id":"SKU-2","name":"Running Socks","price":9.95,"quantity":2}}]}',
4940
4917
  attributes: {}
4941
4918
  },
4942
4919
  out: [
@@ -4948,7 +4925,7 @@ var flow_complete_default = {
4948
4925
  action: "complete",
4949
4926
  data: {
4950
4927
  id: "ORD-100",
4951
- total: 149.8,
4928
+ value: 149.8,
4952
4929
  currency: "EUR",
4953
4930
  coupon: "WELCOME10"
4954
4931
  },
@@ -5040,7 +5017,7 @@ var flow_complete_default = {
5040
5017
  action: "complete",
5041
5018
  data: {
5042
5019
  id: "ORD-100",
5043
- total: 149.8,
5020
+ value: 149.8,
5044
5021
  currency: "EUR",
5045
5022
  coupon: "WELCOME10"
5046
5023
  },
@@ -5098,7 +5075,7 @@ var flow_complete_default = {
5098
5075
  [
5099
5076
  {
5100
5077
  name: "order complete",
5101
- data: '{"id":"ORD-100","total":149.8,"currency":"EUR","coupon":"WELCOME10"}',
5078
+ data: '{"id":"ORD-100","value":149.8,"currency":"EUR","coupon":"WELCOME10"}',
5102
5079
  context: null,
5103
5080
  globals: '{"language":"en","pageGroup":"checkout"}',
5104
5081
  custom: null,
@@ -5275,7 +5252,7 @@ var teaching = {
5275
5252
  chapter: "consent-privacy",
5276
5253
  level: "intermediate",
5277
5254
  useCases: ["consent"],
5278
- note: "categoryMap maps CMP categories onto exactly the consent keys the contract names.",
5255
+ note: "categoryMap maps CMP categories onto exactly the consent keys the contract names; folded in, essential never grants functional alone.",
5279
5256
  docs: []
5280
5257
  },
5281
5258
  "cmp-explicit-only": {
@@ -5555,7 +5532,7 @@ var teaching = {
5555
5532
  note: "examples are the contract of a step: this in gives this out, checked by simulation.",
5556
5533
  docs: [{ page: "getting-started/flow/step-examples" }],
5557
5534
  cli: [
5558
- `walkeros push ${FILE} -f web -e '{"name":"order complete","data":{"id":"ORD-100","total":149.8,"currency":"EUR"}}' --simulate destination.ga4`
5535
+ `walkeros push ${FILE} -f web -e '{"name":"order complete","data":{"id":"ORD-100","value":149.8,"currency":"EUR"}}' --simulate destination.ga4`
5559
5536
  ]
5560
5537
  },
5561
5538
  "example-title": {
@@ -5679,7 +5656,7 @@ var teaching = {
5679
5656
  chapter: "mapping",
5680
5657
  level: "intermediate",
5681
5658
  useCases: [],
5682
- note: "fn computes a value from the event, here the total rounded to cents. fn and key are alternatives: next to a key, fn never runs.",
5659
+ note: "fn computes a value from the event, here the order value rounded to cents. fn and key are alternatives: next to a key, fn never runs.",
5683
5660
  docs: []
5684
5661
  },
5685
5662
  "value-loop": {
@@ -5729,7 +5706,7 @@ var teaching = {
5729
5706
  chapter: "mapping",
5730
5707
  level: "intermediate",
5731
5708
  useCases: [],
5732
- note: "A rule condition skips the rule, here for orders without a total.",
5709
+ note: "A rule condition skips the rule, here for orders without a value.",
5733
5710
  docs: []
5734
5711
  },
5735
5712
  "rule-settings": {
@@ -5923,7 +5900,7 @@ var teaching = {
5923
5900
  chapter: "consent-privacy",
5924
5901
  level: "intermediate",
5925
5902
  useCases: ["consent"],
5926
- note: "como turns walker consent into Google Consent Mode calls.",
5903
+ note: "como maps this flow's consent keys to Google Consent Mode: functional to analytics_storage, marketing to the ad parameters.",
5927
5904
  docs: [],
5928
5905
  example: { step: "ga4", name: "consentUpdate" }
5929
5906
  },
@@ -6551,7 +6528,6 @@ var teaching = {
6551
6528
  useCases: ["script-serving"],
6552
6529
  note: "walker.js is served first party from the server flow.",
6553
6530
  docs: [{ page: "transformers/file" }],
6554
- example: { step: "file", name: "walkerJs" },
6555
6531
  cli: [
6556
6532
  `walkeros bundle ${FILE} -f web -o packages/cli/examples/shared/walker.js`
6557
6533
  ]
@@ -6852,7 +6828,12 @@ var flowCompleteCoverage = {
6852
6828
  code: {
6853
6829
  push: "code-push",
6854
6830
  type: "code-type",
6855
- init: { excluded: "the inline pageGroup step needs no setup" }
6831
+ init: { excluded: "the inline pageGroup step needs no setup" },
6832
+ pushBatch: {
6833
+ excluded: "the inline pageGroup step is a transformer; batching is a destination concern"
6834
+ },
6835
+ on: { excluded: "the inline pageGroup step reacts to no collector event" },
6836
+ destroy: { excluded: "the inline pageGroup step holds nothing to release" }
6856
6837
  },
6857
6838
  source: {
6858
6839
  package: "step-package",
@@ -6926,7 +6907,9 @@ var flowCompleteCoverage = {
6926
6907
  trigger: "example-trigger",
6927
6908
  mapping: "example-mapping",
6928
6909
  out: "example-out",
6929
- command: "example-command"
6910
+ command: "example-command",
6911
+ outcome: RUNTIME("outcome (a failure example, public: false)"),
6912
+ respond: RUNTIME("respond (a failure example, public: false)")
6930
6913
  },
6931
6914
  sourceConfig: {
6932
6915
  settings: "step-settings",
@@ -6991,6 +6974,9 @@ var flowCompleteCoverage = {
6991
6974
  state: "state-set",
6992
6975
  init: RUNTIME("init"),
6993
6976
  disabled: RUNTIME("disabled"),
6977
+ timeout: {
6978
+ excluded: "the transformers here initialize at once; the default 10 s applies"
6979
+ },
6994
6980
  mock: RUNTIME("mock"),
6995
6981
  chainMocks: RUNTIME("chainMocks"),
6996
6982
  mapping: "ga4-consent-map"
@@ -7018,6 +7004,9 @@ var flowCompleteCoverage = {
7018
7004
  queueMax: {
7019
7005
  excluded: "the default bound fits; dlqMax is the knob this file turns"
7020
7006
  },
7007
+ consentDenied: {
7008
+ excluded: "walkeros bundle sets it for server flows; this web example keeps the default queue"
7009
+ },
7021
7010
  name: RUNTIME("name"),
7022
7011
  release: {
7023
7012
  excluded: "set by walkeros bundle --release, never written by hand"
@@ -7160,7 +7149,7 @@ var flowCompleteCli = [
7160
7149
  chapter: "chains-routing"
7161
7150
  },
7162
7151
  {
7163
- command: `walkeros push ${FILE} -f web -e '{"name":"order complete","data":{"id":"ORD-100","total":149.8,"currency":"EUR"}}' --simulate destination.ga4`,
7152
+ command: `walkeros push ${FILE} -f web -e '{"name":"order complete","data":{"id":"ORD-100","value":149.8,"currency":"EUR"}}' --simulate destination.ga4`,
7164
7153
  chapter: "mapping"
7165
7154
  },
7166
7155
  {