@walkeros/cli 4.8.1 → 4.8.2
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 +56 -0
- package/dist/cli.js +3663 -3665
- package/dist/examples/event.json +1 -1
- package/dist/examples/flow-complete.json +89 -127
- package/dist/examples/flow-complete.md +7 -7
- package/dist/examples/flow-order-complete.json +1 -1
- package/dist/examples/flow.json +1 -1
- package/dist/examples/index.d.ts +34 -4
- package/dist/examples/index.js +108 -134
- package/dist/examples/index.js.map +1 -1
- package/dist/index.d.ts +22 -182
- package/dist/index.js +418 -865
- package/dist/index.js.map +1 -1
- package/dist/validate.d.ts +1 -1
- package/dist/validate.js +80 -79
- package/dist/validate.js.map +1 -1
- package/examples/event.json +1 -1
- package/examples/flow-complete.json +89 -127
- package/examples/flow-complete.md +7 -7
- package/examples/flow-order-complete.json +1 -1
- package/examples/flow.json +1 -1
- package/package.json +30 -30
- package/src/telemetry/flow.json +42 -34
|
@@ -256,7 +256,7 @@ curl -I http://localhost:8080/walker.js
|
|
|
256
256
|
|
|
257
257
|
```bash
|
|
258
258
|
walkeros validate packages/cli/examples/flow-complete.json -f web --path destinations.collect
|
|
259
|
-
walkeros push packages/cli/examples/flow-complete.json -f web -e '{"name":"order complete","data":{"id":"ORD-100","
|
|
259
|
+
walkeros push packages/cli/examples/flow-complete.json -f web -e '{"name":"order complete","data":{"id":"ORD-100","value":149.8,"currency":"EUR"}}' --simulate destination.ga4
|
|
260
260
|
```
|
|
261
261
|
|
|
262
262
|
- The second line prints `mapping: none (skipped before mapping)`: the event has
|
|
@@ -294,8 +294,8 @@ walkeros push packages/cli/examples/flow-complete.json -f web -e '{"name":"order
|
|
|
294
294
|
key reads a path from the event.
|
|
295
295
|
- `value-fn` at
|
|
296
296
|
`/flows/web/destinations/ga4/config/mapping/order/complete/data/map/value/fn`:
|
|
297
|
-
fn computes a value from the event, here the
|
|
298
|
-
key are alternatives: next to a key, fn never runs.
|
|
297
|
+
fn computes a value from the event, here the order value rounded to cents.
|
|
298
|
+
fn and key are alternatives: next to a key, fn never runs.
|
|
299
299
|
- `value-loop` at
|
|
300
300
|
`/flows/web/destinations/ga4/config/mapping/order/complete/data/map/items/loop`:
|
|
301
301
|
loop turns nested products into GA4 items.
|
|
@@ -314,7 +314,7 @@ walkeros push packages/cli/examples/flow-complete.json -f web -e '{"name":"order
|
|
|
314
314
|
value is a constant.
|
|
315
315
|
- `rule-condition` at
|
|
316
316
|
`/flows/web/destinations/ga4/config/mapping/order/complete/condition`: A
|
|
317
|
-
rule condition skips the rule, here for orders without a
|
|
317
|
+
rule condition skips the rule, here for orders without a value.
|
|
318
318
|
- `rule-settings` at
|
|
319
319
|
`/flows/server/destinations/piwikpro/config/mapping/order/complete/settings`:
|
|
320
320
|
Rule settings are per-event package options: the Piwik PRO goal for orders.
|
|
@@ -332,7 +332,7 @@ walkeros push packages/cli/examples/flow-complete.json -f web -e '{"name":"order
|
|
|
332
332
|
- **CLI:** the GA4 purchase, with consent and one product:
|
|
333
333
|
|
|
334
334
|
```bash
|
|
335
|
-
walkeros push packages/cli/examples/flow-complete.json -f web -e '{"name":"order complete","data":{"id":"ORD-100","
|
|
335
|
+
walkeros push packages/cli/examples/flow-complete.json -f web -e '{"name":"order complete","data":{"id":"ORD-100","value":149.8,"currency":"EUR"},"nested":[{"entity":"product","data":{"id":"SKU-1","name":"Linen shirt","price":74.9,"quantity":2}}],"consent":{"functional":true}}' --simulate destination.ga4
|
|
336
336
|
```
|
|
337
337
|
|
|
338
338
|
- Output:
|
|
@@ -636,7 +636,7 @@ walkeros push packages/cli/examples/flow-complete.json -f server -e '{"name":"pr
|
|
|
636
636
|
|
|
637
637
|
```bash
|
|
638
638
|
walkeros validate packages/cli/examples/flow-complete.json -t contract
|
|
639
|
-
walkeros push packages/cli/examples/flow-complete.json -f server -e '{"name":"order complete","data":{"id":"ORD-100","
|
|
639
|
+
walkeros push packages/cli/examples/flow-complete.json -f server -e '{"name":"order complete","data":{"id":"ORD-100","value":149.8,"currency":"EUR"},"globals":{"language":"en"},"consent":{"functional":true}}' --simulate transformer.validate
|
|
640
640
|
```
|
|
641
641
|
|
|
642
642
|
- **MCP:** `flow_validate`, `flow_simulate`.
|
|
@@ -760,7 +760,7 @@ walkeros push packages/cli/examples/flow-complete.json -f server -e '{"name":"pa
|
|
|
760
760
|
(`user.ltv: 420`, `user.segment: "loyal"`):
|
|
761
761
|
|
|
762
762
|
```bash
|
|
763
|
-
walkeros push packages/cli/examples/flow-complete.json -f server -e '{"name":"order complete","data":{"id":"ORD-100","
|
|
763
|
+
walkeros push packages/cli/examples/flow-complete.json -f server -e '{"name":"order complete","data":{"id":"ORD-100","value":149.8,"currency":"EUR"},"user":{"id":"cust-42"}}' --simulate transformer.loadUser
|
|
764
764
|
```
|
|
765
765
|
|
|
766
766
|
- Build the web bundle straight into the shared folder (web builds ignore root
|
package/dist/examples/flow.json
CHANGED
package/dist/examples/index.d.ts
CHANGED
|
@@ -1688,10 +1688,6 @@ declare const teaching: {
|
|
|
1688
1688
|
docs: {
|
|
1689
1689
|
page: string;
|
|
1690
1690
|
}[];
|
|
1691
|
-
example: {
|
|
1692
|
-
step: string;
|
|
1693
|
-
name: string;
|
|
1694
|
-
};
|
|
1695
1691
|
cli: string[];
|
|
1696
1692
|
};
|
|
1697
1693
|
'file-headers': {
|
|
@@ -2002,6 +1998,15 @@ declare const flowCompleteCoverage: {
|
|
|
2002
1998
|
init: {
|
|
2003
1999
|
excluded: string;
|
|
2004
2000
|
};
|
|
2001
|
+
pushBatch: {
|
|
2002
|
+
excluded: string;
|
|
2003
|
+
};
|
|
2004
|
+
on: {
|
|
2005
|
+
excluded: string;
|
|
2006
|
+
};
|
|
2007
|
+
destroy: {
|
|
2008
|
+
excluded: string;
|
|
2009
|
+
};
|
|
2005
2010
|
};
|
|
2006
2011
|
source: {
|
|
2007
2012
|
package: "step-package";
|
|
@@ -2082,6 +2087,8 @@ declare const flowCompleteCoverage: {
|
|
|
2082
2087
|
mapping: "example-mapping";
|
|
2083
2088
|
out: "example-out";
|
|
2084
2089
|
command: "example-command";
|
|
2090
|
+
outcome: Excluded;
|
|
2091
|
+
respond: Excluded;
|
|
2085
2092
|
};
|
|
2086
2093
|
sourceConfig: {
|
|
2087
2094
|
settings: "step-settings";
|
|
@@ -2152,6 +2159,9 @@ declare const flowCompleteCoverage: {
|
|
|
2152
2159
|
state: "state-set";
|
|
2153
2160
|
init: Excluded;
|
|
2154
2161
|
disabled: Excluded;
|
|
2162
|
+
timeout: {
|
|
2163
|
+
excluded: string;
|
|
2164
|
+
};
|
|
2155
2165
|
mock: Excluded;
|
|
2156
2166
|
chainMocks: Excluded;
|
|
2157
2167
|
mapping: "ga4-consent-map";
|
|
@@ -2179,6 +2189,9 @@ declare const flowCompleteCoverage: {
|
|
|
2179
2189
|
queueMax: {
|
|
2180
2190
|
excluded: string;
|
|
2181
2191
|
};
|
|
2192
|
+
consentDenied: {
|
|
2193
|
+
excluded: string;
|
|
2194
|
+
};
|
|
2182
2195
|
name: Excluded;
|
|
2183
2196
|
release: {
|
|
2184
2197
|
excluded: string;
|
|
@@ -2377,6 +2390,15 @@ declare const flowCompleteManifest: {
|
|
|
2377
2390
|
init: {
|
|
2378
2391
|
excluded: string;
|
|
2379
2392
|
};
|
|
2393
|
+
pushBatch: {
|
|
2394
|
+
excluded: string;
|
|
2395
|
+
};
|
|
2396
|
+
on: {
|
|
2397
|
+
excluded: string;
|
|
2398
|
+
};
|
|
2399
|
+
destroy: {
|
|
2400
|
+
excluded: string;
|
|
2401
|
+
};
|
|
2380
2402
|
};
|
|
2381
2403
|
source: {
|
|
2382
2404
|
package: "step-package";
|
|
@@ -2457,6 +2479,8 @@ declare const flowCompleteManifest: {
|
|
|
2457
2479
|
mapping: "example-mapping";
|
|
2458
2480
|
out: "example-out";
|
|
2459
2481
|
command: "example-command";
|
|
2482
|
+
outcome: Excluded;
|
|
2483
|
+
respond: Excluded;
|
|
2460
2484
|
};
|
|
2461
2485
|
sourceConfig: {
|
|
2462
2486
|
settings: "step-settings";
|
|
@@ -2527,6 +2551,9 @@ declare const flowCompleteManifest: {
|
|
|
2527
2551
|
state: "state-set";
|
|
2528
2552
|
init: Excluded;
|
|
2529
2553
|
disabled: Excluded;
|
|
2554
|
+
timeout: {
|
|
2555
|
+
excluded: string;
|
|
2556
|
+
};
|
|
2530
2557
|
mock: Excluded;
|
|
2531
2558
|
chainMocks: Excluded;
|
|
2532
2559
|
mapping: "ga4-consent-map";
|
|
@@ -2554,6 +2581,9 @@ declare const flowCompleteManifest: {
|
|
|
2554
2581
|
queueMax: {
|
|
2555
2582
|
excluded: string;
|
|
2556
2583
|
};
|
|
2584
|
+
consentDenied: {
|
|
2585
|
+
excluded: string;
|
|
2586
|
+
};
|
|
2557
2587
|
name: Excluded;
|
|
2558
2588
|
release: {
|
|
2559
2589
|
excluded: string;
|