@walkeros/cli 2.2.0-next-1773136823705 → 3.0.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 +52 -4
- package/README.md +1 -1
- package/dist/cli.js +759 -521
- package/dist/examples/README.md +1 -1
- package/dist/examples/flow-complete.json +71 -66
- package/dist/examples/flow-order-complete.json +1 -1
- package/dist/examples/flow-selfhost-test.json +1 -1
- package/dist/examples/flow-simple.json +1 -1
- package/dist/examples/flow.json +1 -1
- package/dist/examples/server-collect.json +1 -1
- package/dist/examples/web-serve.json +1 -1
- package/dist/index.d.ts +76 -76
- package/dist/index.js +306 -132
- package/dist/index.js.map +1 -1
- package/examples/README.md +1 -1
- package/examples/flow-complete.json +71 -66
- package/examples/flow-order-complete.json +1 -1
- package/examples/flow-selfhost-test.json +1 -1
- package/examples/flow-simple.json +1 -1
- package/examples/flow.json +1 -1
- package/examples/server-collect.json +1 -1
- package/examples/web-serve.json +1 -1
- package/package.json +7 -7
package/examples/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://walkeros.io/schema/flow/
|
|
3
|
-
"version":
|
|
2
|
+
"$schema": "https://walkeros.io/schema/flow/v3.json",
|
|
3
|
+
"version": 3,
|
|
4
4
|
"variables": {
|
|
5
5
|
"currency": "EUR",
|
|
6
6
|
"flowVersion": "1.0.0",
|
|
@@ -35,6 +35,70 @@
|
|
|
35
35
|
]
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
|
+
"contract": {
|
|
39
|
+
"default": {
|
|
40
|
+
"tagging": 1,
|
|
41
|
+
"description": "Web shop tracking contract",
|
|
42
|
+
"globals": {
|
|
43
|
+
"type": "object",
|
|
44
|
+
"properties": {
|
|
45
|
+
"environment": { "type": "string" },
|
|
46
|
+
"version": { "type": "string" }
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"consent": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"required": ["functional"],
|
|
52
|
+
"properties": {
|
|
53
|
+
"functional": { "type": "boolean", "const": true }
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"events": {
|
|
57
|
+
"product": {
|
|
58
|
+
"*": {
|
|
59
|
+
"description": "A product in the catalog",
|
|
60
|
+
"properties": {
|
|
61
|
+
"data": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"required": ["id", "name"],
|
|
64
|
+
"properties": {
|
|
65
|
+
"id": { "type": "string", "description": "Product SKU" },
|
|
66
|
+
"name": { "type": "string", "description": "Display name" }
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"add": {
|
|
72
|
+
"description": "Product added to cart",
|
|
73
|
+
"properties": {
|
|
74
|
+
"data": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"required": ["quantity"],
|
|
77
|
+
"properties": {
|
|
78
|
+
"quantity": { "type": "integer", "minimum": 1 }
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"order": {
|
|
85
|
+
"complete": {
|
|
86
|
+
"description": "Purchase completed",
|
|
87
|
+
"properties": {
|
|
88
|
+
"data": {
|
|
89
|
+
"type": "object",
|
|
90
|
+
"required": ["id", "total"],
|
|
91
|
+
"properties": {
|
|
92
|
+
"id": { "type": "string" },
|
|
93
|
+
"total": { "type": "number", "minimum": 0 }
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
38
102
|
"flows": {
|
|
39
103
|
"web": {
|
|
40
104
|
"web": {
|
|
@@ -199,19 +263,8 @@
|
|
|
199
263
|
"package": "@walkeros/transformer-validator",
|
|
200
264
|
"config": {
|
|
201
265
|
"settings": {
|
|
202
|
-
"
|
|
203
|
-
|
|
204
|
-
"add": {
|
|
205
|
-
"schema": {
|
|
206
|
-
"properties": {
|
|
207
|
-
"data": {
|
|
208
|
-
"required": ["id", "name"]
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
}
|
|
266
|
+
"events": "$contract.default.events",
|
|
267
|
+
"globals": "$contract.default.globals"
|
|
215
268
|
}
|
|
216
269
|
}
|
|
217
270
|
}
|
|
@@ -619,57 +672,9 @@
|
|
|
619
672
|
"config": {
|
|
620
673
|
"settings": {
|
|
621
674
|
"format": true,
|
|
622
|
-
"
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
{
|
|
626
|
-
"condition": "$code:(event) => Number(event.data?.quantity ?? 0) > 10",
|
|
627
|
-
"schema": {
|
|
628
|
-
"properties": {
|
|
629
|
-
"data": {
|
|
630
|
-
"required": [
|
|
631
|
-
"id",
|
|
632
|
-
"name",
|
|
633
|
-
"price",
|
|
634
|
-
"quantity",
|
|
635
|
-
"warehouse"
|
|
636
|
-
]
|
|
637
|
-
}
|
|
638
|
-
}
|
|
639
|
-
}
|
|
640
|
-
},
|
|
641
|
-
{
|
|
642
|
-
"schema": {
|
|
643
|
-
"properties": {
|
|
644
|
-
"data": {
|
|
645
|
-
"required": ["id", "name", "price"]
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
],
|
|
651
|
-
"*": {
|
|
652
|
-
"schema": {
|
|
653
|
-
"properties": {
|
|
654
|
-
"data": {
|
|
655
|
-
"required": ["id", "name", "price"]
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
},
|
|
661
|
-
"order": {
|
|
662
|
-
"complete": {
|
|
663
|
-
"schema": {
|
|
664
|
-
"properties": {
|
|
665
|
-
"data": {
|
|
666
|
-
"required": ["id", "total"]
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
}
|
|
675
|
+
"events": "$contract.default.events",
|
|
676
|
+
"globals": "$contract.default.globals",
|
|
677
|
+
"consent": "$contract.default.consent"
|
|
673
678
|
}
|
|
674
679
|
}
|
|
675
680
|
}
|
package/examples/flow.json
CHANGED
package/examples/web-serve.json
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@walkeros/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "walkerOS CLI - Bundle and deploy walkerOS components",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"sideEffects": false,
|
|
7
6
|
"type": "module",
|
|
8
7
|
"main": "./dist/index.js",
|
|
9
8
|
"types": "./dist/index.d.ts",
|
|
@@ -15,7 +14,8 @@
|
|
|
15
14
|
"./dev": {
|
|
16
15
|
"types": "./dist/dev.d.ts",
|
|
17
16
|
"default": "./dist/dev.js"
|
|
18
|
-
}
|
|
17
|
+
},
|
|
18
|
+
"./examples/*": "./examples/*"
|
|
19
19
|
},
|
|
20
20
|
"bin": {
|
|
21
21
|
"walkeros": "./dist/cli.js"
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"docker:publish": "bash scripts/publish-docker.sh"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@walkeros/core": "
|
|
48
|
-
"@walkeros/server-core": "
|
|
47
|
+
"@walkeros/core": "^3.0.0",
|
|
48
|
+
"@walkeros/server-core": "^3.0.0",
|
|
49
49
|
"ajv": "^8.17.1",
|
|
50
50
|
"chalk": "^5.6.2",
|
|
51
51
|
"commander": "^14.0.2",
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"@types/jsdom": "^21.1.7",
|
|
67
67
|
"@types/pacote": "^11.1.8",
|
|
68
68
|
"@types/semver": "^7.7.1",
|
|
69
|
-
"@walkeros/config": "
|
|
70
|
-
"@walkeros/core": "
|
|
69
|
+
"@walkeros/config": "*",
|
|
70
|
+
"@walkeros/core": "*",
|
|
71
71
|
"msw": "^2.12.10",
|
|
72
72
|
"openapi-typescript": "^7.13.0",
|
|
73
73
|
"tsx": "^4.21.0"
|