@walkeros/cli 4.7.0-next-1790722899482 → 4.7.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.
- package/CHANGELOG.md +80 -28
- package/dist/cli.js +7832 -6480
- package/dist/dev.d.ts +6 -0
- package/dist/dev.js +13 -1
- package/dist/dev.js.map +1 -1
- package/dist/examples/customers/README.md +3 -3
- package/dist/examples/customers/cust-1001 +1 -1
- package/dist/examples/customers/cust-42 +1 -1
- package/dist/examples/flow-complete.json +112 -29
- package/dist/examples/flow-complete.md +29 -11
- package/dist/examples/index.d.ts +12 -0
- package/dist/examples/index.js +126 -34
- package/dist/examples/index.js.map +1 -1
- package/dist/index.d.ts +42 -18
- package/dist/index.js +1484 -675
- package/dist/index.js.map +1 -1
- package/examples/customers/README.md +3 -3
- package/examples/customers/cust-1001 +1 -1
- package/examples/customers/cust-42 +1 -1
- package/examples/flow-complete.json +112 -29
- package/examples/flow-complete.md +29 -11
- package/package.json +29 -8
package/dist/examples/index.js
CHANGED
|
@@ -264,25 +264,25 @@ var flow_complete_default = {
|
|
|
264
264
|
bundle: {
|
|
265
265
|
packages: {
|
|
266
266
|
"@walkeros/collector": {
|
|
267
|
-
version: "4.7.0
|
|
267
|
+
version: "4.7.0"
|
|
268
268
|
},
|
|
269
269
|
"@walkeros/web-source-cmp-usercentrics": {
|
|
270
|
-
version: "4.7.0
|
|
270
|
+
version: "4.7.0"
|
|
271
271
|
},
|
|
272
272
|
"@walkeros/web-source-session": {
|
|
273
|
-
version: "4.7.0
|
|
273
|
+
version: "4.7.0"
|
|
274
274
|
},
|
|
275
275
|
"@walkeros/web-source-datalayer": {
|
|
276
|
-
version: "4.7.0
|
|
276
|
+
version: "4.7.0"
|
|
277
277
|
},
|
|
278
278
|
"@walkeros/web-source-browser": {
|
|
279
|
-
version: "4.7.0
|
|
279
|
+
version: "4.7.0"
|
|
280
280
|
},
|
|
281
281
|
"@walkeros/web-destination-gtag": {
|
|
282
|
-
version: "4.7.0
|
|
282
|
+
version: "4.7.0"
|
|
283
283
|
},
|
|
284
284
|
"@walkeros/web-destination-api": {
|
|
285
|
-
version: "4.7.0
|
|
285
|
+
version: "4.7.0"
|
|
286
286
|
}
|
|
287
287
|
},
|
|
288
288
|
env: {
|
|
@@ -363,6 +363,16 @@ var flow_complete_default = {
|
|
|
363
363
|
]
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
+
],
|
|
367
|
+
out: [
|
|
368
|
+
[
|
|
369
|
+
"elb",
|
|
370
|
+
"walker consent",
|
|
371
|
+
{
|
|
372
|
+
functional: true,
|
|
373
|
+
marketing: true
|
|
374
|
+
}
|
|
375
|
+
]
|
|
366
376
|
]
|
|
367
377
|
},
|
|
368
378
|
implicitSuppressed: {
|
|
@@ -433,12 +443,77 @@ var flow_complete_default = {
|
|
|
433
443
|
trigger: {
|
|
434
444
|
type: "load",
|
|
435
445
|
options: {
|
|
436
|
-
url: "https://www.example.com/?utm_source=google&utm_medium=cpc&utm_campaign=trail&gclid=gclid-abc123"
|
|
446
|
+
url: "https://www.example.com/?utm_source=google&utm_medium=cpc&utm_campaign=trail&gclid=gclid-abc123",
|
|
447
|
+
referrer: "https://www.google.com/"
|
|
437
448
|
}
|
|
438
449
|
},
|
|
439
450
|
in: {
|
|
440
451
|
storage: true
|
|
441
|
-
}
|
|
452
|
+
},
|
|
453
|
+
out: [
|
|
454
|
+
[
|
|
455
|
+
"elb",
|
|
456
|
+
"user",
|
|
457
|
+
{
|
|
458
|
+
session: "s3ss10n",
|
|
459
|
+
device: "d3v1c3"
|
|
460
|
+
}
|
|
461
|
+
],
|
|
462
|
+
[
|
|
463
|
+
"elb",
|
|
464
|
+
"session",
|
|
465
|
+
{
|
|
466
|
+
id: "s3ss10n",
|
|
467
|
+
start: 17902512e5,
|
|
468
|
+
isNew: true,
|
|
469
|
+
count: 1,
|
|
470
|
+
runs: 1,
|
|
471
|
+
isStart: true,
|
|
472
|
+
storage: true,
|
|
473
|
+
referrer: "www.google.com",
|
|
474
|
+
campaign: "trail",
|
|
475
|
+
medium: "cpc",
|
|
476
|
+
source: "google",
|
|
477
|
+
gclid: "gclid-abc123",
|
|
478
|
+
clickId: "gclid",
|
|
479
|
+
platform: "google",
|
|
480
|
+
marketing: true,
|
|
481
|
+
device: "d3v1c3",
|
|
482
|
+
updated: 17902512e5
|
|
483
|
+
}
|
|
484
|
+
],
|
|
485
|
+
[
|
|
486
|
+
"elb",
|
|
487
|
+
{
|
|
488
|
+
name: "session start",
|
|
489
|
+
data: {
|
|
490
|
+
id: "s3ss10n",
|
|
491
|
+
start: 17902512e5,
|
|
492
|
+
isNew: true,
|
|
493
|
+
count: 1,
|
|
494
|
+
runs: 1,
|
|
495
|
+
isStart: true,
|
|
496
|
+
storage: true,
|
|
497
|
+
referrer: "www.google.com",
|
|
498
|
+
campaign: "trail",
|
|
499
|
+
medium: "cpc",
|
|
500
|
+
source: "google",
|
|
501
|
+
gclid: "gclid-abc123",
|
|
502
|
+
clickId: "gclid",
|
|
503
|
+
platform: "google",
|
|
504
|
+
marketing: true,
|
|
505
|
+
device: "d3v1c3",
|
|
506
|
+
updated: 17902512e5
|
|
507
|
+
},
|
|
508
|
+
source: {
|
|
509
|
+
type: "session",
|
|
510
|
+
platform: "web",
|
|
511
|
+
url: "https://www.example.com/?utm_source=google&utm_medium=cpc&utm_campaign=trail&gclid=gclid-abc123",
|
|
512
|
+
referrer: "https://www.google.com/"
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
]
|
|
516
|
+
]
|
|
442
517
|
}
|
|
443
518
|
}
|
|
444
519
|
},
|
|
@@ -1712,40 +1787,40 @@ var flow_complete_default = {
|
|
|
1712
1787
|
bundle: {
|
|
1713
1788
|
packages: {
|
|
1714
1789
|
"@walkeros/collector": {
|
|
1715
|
-
version: "4.7.0
|
|
1790
|
+
version: "4.7.0"
|
|
1716
1791
|
},
|
|
1717
1792
|
"@walkeros/server-source-express": {
|
|
1718
|
-
version: "4.7.0
|
|
1793
|
+
version: "4.7.0"
|
|
1719
1794
|
},
|
|
1720
1795
|
"@walkeros/transformer-ga4": {
|
|
1721
|
-
version: "4.7.0
|
|
1796
|
+
version: "4.7.0"
|
|
1722
1797
|
},
|
|
1723
1798
|
"@walkeros/transformer-validate": {
|
|
1724
|
-
version: "4.7.0
|
|
1799
|
+
version: "4.7.0"
|
|
1725
1800
|
},
|
|
1726
1801
|
"@walkeros/server-transformer-bot": {
|
|
1727
|
-
version: "4.7.0
|
|
1802
|
+
version: "4.7.0"
|
|
1728
1803
|
},
|
|
1729
1804
|
"@walkeros/server-transformer-fingerprint": {
|
|
1730
|
-
version: "4.7.0
|
|
1805
|
+
version: "4.7.0"
|
|
1731
1806
|
},
|
|
1732
1807
|
"@walkeros/server-transformer-file": {
|
|
1733
|
-
version: "4.7.0
|
|
1808
|
+
version: "4.7.0"
|
|
1734
1809
|
},
|
|
1735
1810
|
"@walkeros/server-store-fs": {
|
|
1736
|
-
version: "4.7.0
|
|
1811
|
+
version: "4.7.0"
|
|
1737
1812
|
},
|
|
1738
1813
|
"@walkeros/server-destination-gcp": {
|
|
1739
|
-
version: "4.7.0
|
|
1814
|
+
version: "4.7.0"
|
|
1740
1815
|
},
|
|
1741
1816
|
"@walkeros/server-destination-meta": {
|
|
1742
|
-
version: "4.7.0
|
|
1817
|
+
version: "4.7.0"
|
|
1743
1818
|
},
|
|
1744
1819
|
"@walkeros/server-destination-piwikpro": {
|
|
1745
|
-
version: "4.7.0
|
|
1820
|
+
version: "4.7.0"
|
|
1746
1821
|
},
|
|
1747
1822
|
"@walkeros/server-destination-datamanager": {
|
|
1748
|
-
version: "4.7.0
|
|
1823
|
+
version: "4.7.0"
|
|
1749
1824
|
}
|
|
1750
1825
|
}
|
|
1751
1826
|
}
|
|
@@ -3012,7 +3087,8 @@ var flow_complete_default = {
|
|
|
3012
3087
|
hash: "5f1c0a9e7d3b2c41",
|
|
3013
3088
|
botScore: 0,
|
|
3014
3089
|
botCategory: "human",
|
|
3015
|
-
ltv: 420
|
|
3090
|
+
ltv: 420,
|
|
3091
|
+
segment: "loyal"
|
|
3016
3092
|
},
|
|
3017
3093
|
source: {
|
|
3018
3094
|
type: "express",
|
|
@@ -3052,12 +3128,18 @@ var flow_complete_default = {
|
|
|
3052
3128
|
mode: "get",
|
|
3053
3129
|
store: "customers",
|
|
3054
3130
|
key: "event.user.id",
|
|
3055
|
-
value: "event.user
|
|
3131
|
+
value: "event.user",
|
|
3132
|
+
mapping: {
|
|
3133
|
+
map: {
|
|
3134
|
+
ltv: "ltv",
|
|
3135
|
+
segment: "segment"
|
|
3136
|
+
}
|
|
3137
|
+
}
|
|
3056
3138
|
},
|
|
3057
3139
|
examples: {
|
|
3058
3140
|
knownCustomer: {
|
|
3059
3141
|
title: "Known customer",
|
|
3060
|
-
description: "The customer id is looked up in the customers store (fs demo data, cached for five minutes) and
|
|
3142
|
+
description: "The customer id is looked up in the customers store (fs demo data, cached for five minutes) and its lifetime value and segment are merged into user, next to the id and hash already there.",
|
|
3061
3143
|
public: true,
|
|
3062
3144
|
in: {
|
|
3063
3145
|
name: "order complete",
|
|
@@ -3148,7 +3230,8 @@ var flow_complete_default = {
|
|
|
3148
3230
|
hash: "5f1c0a9e7d3b2c41",
|
|
3149
3231
|
botScore: 0,
|
|
3150
3232
|
botCategory: "human",
|
|
3151
|
-
ltv: 420
|
|
3233
|
+
ltv: 420,
|
|
3234
|
+
segment: "loyal"
|
|
3152
3235
|
},
|
|
3153
3236
|
source: {
|
|
3154
3237
|
type: "express",
|
|
@@ -4238,7 +4321,7 @@ var flow_complete_default = {
|
|
|
4238
4321
|
[
|
|
4239
4322
|
"PubSub.topic.publishMessage",
|
|
4240
4323
|
{
|
|
4241
|
-
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},"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"}}}'
|
|
4324
|
+
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"}}}'
|
|
4242
4325
|
}
|
|
4243
4326
|
]
|
|
4244
4327
|
]
|
|
@@ -4798,13 +4881,13 @@ var flow_complete_default = {
|
|
|
4798
4881
|
bundle: {
|
|
4799
4882
|
packages: {
|
|
4800
4883
|
"@walkeros/collector": {
|
|
4801
|
-
version: "4.7.0
|
|
4884
|
+
version: "4.7.0"
|
|
4802
4885
|
},
|
|
4803
4886
|
"@walkeros/server-source-gcp": {
|
|
4804
|
-
version: "4.7.0
|
|
4887
|
+
version: "4.7.0"
|
|
4805
4888
|
},
|
|
4806
4889
|
"@walkeros/server-destination-gcp": {
|
|
4807
|
-
version: "4.7.0
|
|
4890
|
+
version: "4.7.0"
|
|
4808
4891
|
}
|
|
4809
4892
|
}
|
|
4810
4893
|
}
|
|
@@ -6148,7 +6231,7 @@ var teaching = {
|
|
|
6148
6231
|
useCases: ["contracts"],
|
|
6149
6232
|
note: "The contract names what every event must carry; the validate step and validate --strict read it.",
|
|
6150
6233
|
docs: [{ page: "getting-started/flow/contract" }],
|
|
6151
|
-
cli: [`walkeros validate
|
|
6234
|
+
cli: [`walkeros validate ${FILE} -t contract`]
|
|
6152
6235
|
},
|
|
6153
6236
|
"contract-extend": {
|
|
6154
6237
|
pointer: "/contract/server/extend",
|
|
@@ -6392,12 +6475,20 @@ var teaching = {
|
|
|
6392
6475
|
note: "store reads from a named store instead of the built-in cache.",
|
|
6393
6476
|
docs: [{ page: "collector/state" }]
|
|
6394
6477
|
},
|
|
6478
|
+
"state-mapping": {
|
|
6479
|
+
pointer: "/flows/server/transformers/loadUser/state/mapping",
|
|
6480
|
+
chapter: "state-stores",
|
|
6481
|
+
level: "advanced",
|
|
6482
|
+
useCases: [],
|
|
6483
|
+
note: "mapping picks fields from the stored row and merges them into the target.",
|
|
6484
|
+
docs: [{ page: "collector/state" }]
|
|
6485
|
+
},
|
|
6395
6486
|
"load-user": {
|
|
6396
6487
|
pointer: "/flows/server/transformers/loadUser",
|
|
6397
6488
|
chapter: "state-stores",
|
|
6398
6489
|
level: "advanced",
|
|
6399
6490
|
useCases: [],
|
|
6400
|
-
note: "loadUser puts the customer lifetime value on logged-in events.",
|
|
6491
|
+
note: "loadUser puts the customer lifetime value and segment on logged-in events.",
|
|
6401
6492
|
docs: [{ page: "collector/state" }],
|
|
6402
6493
|
example: { step: "loadUser", name: "knownCustomer" }
|
|
6403
6494
|
},
|
|
@@ -6632,7 +6723,7 @@ var teaching = {
|
|
|
6632
6723
|
chapter: "build-run",
|
|
6633
6724
|
level: "beginner",
|
|
6634
6725
|
useCases: ["deploy"],
|
|
6635
|
-
note: "
|
|
6726
|
+
note: "validate --strict warns for a listed package without a version; an unlisted step package is added as latest.",
|
|
6636
6727
|
docs: []
|
|
6637
6728
|
},
|
|
6638
6729
|
"root-include": {
|
|
@@ -6988,7 +7079,8 @@ var flowCompleteCoverage = {
|
|
|
6988
7079
|
mode: "state-set",
|
|
6989
7080
|
store: "state-store",
|
|
6990
7081
|
key: "state-key",
|
|
6991
|
-
value: "state-value"
|
|
7082
|
+
value: "state-value",
|
|
7083
|
+
mapping: "state-mapping"
|
|
6992
7084
|
},
|
|
6993
7085
|
matchOperator: {
|
|
6994
7086
|
eq: "op-eq",
|
|
@@ -7032,7 +7124,7 @@ var flowCompleteCoverage = {
|
|
|
7032
7124
|
var flowCompleteCli = [
|
|
7033
7125
|
{ command: `walkeros validate ${FILE} --strict`, chapter: "tour" },
|
|
7034
7126
|
{
|
|
7035
|
-
command: `walkeros validate
|
|
7127
|
+
command: `walkeros validate ${FILE} -t contract`,
|
|
7036
7128
|
chapter: "contract"
|
|
7037
7129
|
},
|
|
7038
7130
|
{
|