Skip to content

Commit b487e43

Browse files
flow setup type
1 parent 4690f2e commit b487e43

File tree

23 files changed

+1218
-1510
lines changed

23 files changed

+1218
-1510
lines changed
Lines changed: 57 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,68 @@
11
{
2-
"flow": {
3-
"web": {},
4-
"destinations": {
5-
"demo": {
6-
"code": "destinationDemo",
7-
"config": {
8-
"consent": {
9-
"marketing": true
10-
},
11-
"settings": {
12-
"name": "Order Complete with Consent Demo",
13-
"values": ["name", "data", "user", "source", "consent"]
14-
},
15-
"mapping": {
16-
"order": {
17-
"complete": {
18-
"name": "purchase",
19-
"data": {
20-
"map": {
21-
"transaction_id": "data.id",
22-
"value": "data.total",
23-
"currency": "data.currency",
24-
"tax": "data.tax",
25-
"shipping": "data.shipping",
26-
"email": {
27-
"key": "user.email",
28-
"consent": {
29-
"marketing": true
30-
}
31-
},
32-
"gclid": {
33-
"key": "user.gclid",
34-
"consent": {
35-
"marketing": true
36-
}
37-
},
38-
"source_url": "source.id"
2+
"version": 1,
3+
"environments": {
4+
"default": {
5+
"web": {},
6+
"packages": {
7+
"@walkeros/collector": {
8+
"version": "latest",
9+
"imports": ["startFlow"]
10+
},
11+
"@walkeros/destination-demo": {
12+
"version": "latest",
13+
"imports": ["destinationDemo"]
14+
}
15+
},
16+
"destinations": {
17+
"demo": {
18+
"code": "destinationDemo",
19+
"config": {
20+
"consent": {
21+
"marketing": true
22+
},
23+
"settings": {
24+
"name": "Order Complete with Consent Demo",
25+
"values": ["name", "data", "user", "source", "consent"]
26+
},
27+
"mapping": {
28+
"order": {
29+
"complete": {
30+
"name": "purchase",
31+
"data": {
32+
"map": {
33+
"transaction_id": "data.id",
34+
"value": "data.total",
35+
"currency": "data.currency",
36+
"tax": "data.tax",
37+
"shipping": "data.shipping",
38+
"email": {
39+
"key": "user.email",
40+
"consent": {
41+
"marketing": true
42+
}
43+
},
44+
"gclid": {
45+
"key": "user.gclid",
46+
"consent": {
47+
"marketing": true
48+
}
49+
},
50+
"source_url": "source.id"
51+
}
3952
}
4053
}
4154
}
4255
}
4356
}
4457
}
45-
}
46-
},
47-
"collector": {
48-
"run": true,
49-
"globals": {
50-
"environment": "production",
51-
"version": "1.0.0"
52-
}
53-
}
54-
},
55-
"build": {
56-
"packages": {
57-
"@walkeros/collector": {
58-
"version": "latest",
59-
"imports": ["startFlow"]
6058
},
61-
"@walkeros/destination-demo": {
62-
"version": "latest",
63-
"imports": ["destinationDemo"]
59+
"collector": {
60+
"run": true,
61+
"globals": {
62+
"environment": "production",
63+
"version": "1.0.0"
64+
}
6465
}
65-
},
66-
"output": "flow-order-complete.js"
66+
}
6767
}
6868
}
Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
{
2-
"flow": {
3-
"web": {},
4-
"destinations": {
5-
"demo": {
6-
"code": "destinationDemo",
7-
"config": {
8-
"settings": {
9-
"name": "Simple Demo",
10-
"values": ["name", "data", "user", "consent"]
2+
"version": 1,
3+
"environments": {
4+
"default": {
5+
"web": {},
6+
"packages": {
7+
"@walkeros/collector": {
8+
"version": "latest",
9+
"imports": ["startFlow"]
10+
},
11+
"@walkeros/destination-demo": {
12+
"version": "latest",
13+
"imports": ["destinationDemo"]
14+
}
15+
},
16+
"destinations": {
17+
"demo": {
18+
"code": "destinationDemo",
19+
"config": {
20+
"settings": {
21+
"name": "Simple Demo",
22+
"values": ["name", "data", "user", "consent"]
23+
}
1124
}
1225
}
13-
}
14-
},
15-
"collector": {
16-
"run": true
17-
}
18-
},
19-
"build": {
20-
"packages": {
21-
"@walkeros/collector": {
22-
"version": "latest",
23-
"imports": ["startFlow"]
2426
},
25-
"@walkeros/destination-demo": {
26-
"version": "latest",
27-
"imports": ["destinationDemo"]
27+
"collector": {
28+
"run": true
2829
}
29-
},
30-
"output": "flow-simple.js"
30+
}
3131
}
3232
}

packages/cli/examples/flow.json

Lines changed: 69 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,82 @@
11
{
2-
"flow": {
3-
"web": {},
4-
"destinations": {
5-
"ga4": {
6-
"code": "destinationGtag",
7-
"config": {
8-
"consent": {
9-
"marketing": true
10-
},
11-
"settings": {
12-
"ga4": {
13-
"measurementId": "G-XXXXXXXXXX"
14-
}
15-
},
16-
"mapping": {
17-
"order": {
18-
"complete": {
19-
"name": "purchase",
20-
"data": {
21-
"map": {
22-
"transaction_id": "data.id",
23-
"value": "data.total",
24-
"currency": "data.currency",
25-
"tax": "data.tax",
26-
"shipping": "data.shipping",
27-
"email": {
28-
"key": "user.email",
29-
"consent": {
30-
"marketing": true
31-
}
32-
},
33-
"gclid": {
34-
"key": "user.gclid",
35-
"consent": {
36-
"marketing": true
37-
}
38-
},
39-
"source_url": "source.id"
2+
"version": 1,
3+
"environments": {
4+
"default": {
5+
"web": {},
6+
"packages": {
7+
"@walkeros/collector": {
8+
"version": "latest",
9+
"imports": ["startFlow"]
10+
},
11+
"@walkeros/web-destination-gtag": {
12+
"version": "latest",
13+
"imports": ["destinationGtag"]
14+
},
15+
"@walkeros/destination-demo": {
16+
"version": "latest",
17+
"imports": ["destinationDemo"]
18+
}
19+
},
20+
"destinations": {
21+
"ga4": {
22+
"code": "destinationGtag",
23+
"config": {
24+
"consent": {
25+
"marketing": true
26+
},
27+
"settings": {
28+
"ga4": {
29+
"measurementId": "G-XXXXXXXXXX"
30+
}
31+
},
32+
"mapping": {
33+
"order": {
34+
"complete": {
35+
"name": "purchase",
36+
"data": {
37+
"map": {
38+
"transaction_id": "data.id",
39+
"value": "data.total",
40+
"currency": "data.currency",
41+
"tax": "data.tax",
42+
"shipping": "data.shipping",
43+
"email": {
44+
"key": "user.email",
45+
"consent": {
46+
"marketing": true
47+
}
48+
},
49+
"gclid": {
50+
"key": "user.gclid",
51+
"consent": {
52+
"marketing": true
53+
}
54+
},
55+
"source_url": "source.id"
56+
}
4057
}
4158
}
4259
}
4360
}
4461
}
62+
},
63+
"demo": {
64+
"code": "destinationDemo",
65+
"config": {
66+
"settings": {
67+
"name": "Order Complete Demo",
68+
"values": ["name", "data", "user", "source", "consent"]
69+
}
70+
}
4571
}
4672
},
47-
"demo": {
48-
"code": "destinationDemo",
49-
"config": {
50-
"settings": {
51-
"name": "Order Complete Demo",
52-
"values": ["name", "data", "user", "source", "consent"]
53-
}
73+
"collector": {
74+
"run": true,
75+
"globals": {
76+
"environment": "production",
77+
"version": "1.0.0"
5478
}
5579
}
56-
},
57-
"collector": {
58-
"run": true,
59-
"globals": {
60-
"environment": "production",
61-
"version": "1.0.0"
62-
}
6380
}
64-
},
65-
"build": {
66-
"packages": {
67-
"@walkeros/collector": {
68-
"version": "latest",
69-
"imports": ["startFlow"]
70-
},
71-
"@walkeros/web-destination-gtag": {
72-
"version": "latest",
73-
"imports": ["destinationGtag"]
74-
},
75-
"@walkeros/destination-demo": {
76-
"version": "latest",
77-
"imports": ["destinationDemo"]
78-
}
79-
},
80-
"output": "flow.js"
8181
}
8282
}

0 commit comments

Comments
 (0)