@walkeros/server-destination-meta 2.0.1 → 2.1.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/dist/dev.d.mts +16 -294
- package/dist/dev.d.ts +16 -294
- package/dist/dev.js +1 -1
- package/dist/dev.js.map +1 -1
- package/dist/dev.mjs +1 -1
- package/dist/dev.mjs.map +1 -1
- package/dist/examples/index.d.mts +8 -288
- package/dist/examples/index.d.ts +8 -288
- package/dist/examples/index.js +72 -70
- package/dist/examples/index.mjs +72 -69
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/walkerOS.json +177 -79
- package/package.json +4 -4
package/dist/examples/index.js
CHANGED
|
@@ -21,8 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var examples_exports = {};
|
|
22
22
|
__export(examples_exports, {
|
|
23
23
|
env: () => env_exports,
|
|
24
|
-
|
|
25
|
-
mapping: () => mapping_exports
|
|
24
|
+
step: () => step_exports
|
|
26
25
|
});
|
|
27
26
|
module.exports = __toCommonJS(examples_exports);
|
|
28
27
|
|
|
@@ -47,91 +46,94 @@ var push = {
|
|
|
47
46
|
};
|
|
48
47
|
var simulation = ["sendServer"];
|
|
49
48
|
|
|
50
|
-
// src/examples/
|
|
51
|
-
var
|
|
52
|
-
__export(
|
|
53
|
-
|
|
49
|
+
// src/examples/step.ts
|
|
50
|
+
var step_exports = {};
|
|
51
|
+
__export(step_exports, {
|
|
52
|
+
lead: () => lead,
|
|
53
|
+
purchase: () => purchase
|
|
54
54
|
});
|
|
55
55
|
var import_core = require("@walkeros/core");
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
var purchase = {
|
|
57
|
+
in: (0, import_core.getEvent)("order complete", {
|
|
58
|
+
timestamp: 1700000900,
|
|
59
|
+
data: { id: "ORD-300", total: 249.99, currency: "EUR" },
|
|
60
|
+
nested: [
|
|
61
|
+
{ entity: "product", data: { id: "SKU-A1", price: 129.99, quantity: 2 } }
|
|
62
|
+
],
|
|
63
|
+
user: { id: "user-123", device: "device-456" },
|
|
64
|
+
source: { type: "server", id: "https://shop.example.com", previous_id: "" }
|
|
65
|
+
}),
|
|
66
|
+
mapping: {
|
|
67
|
+
name: "Purchase",
|
|
68
|
+
data: {
|
|
69
|
+
map: {
|
|
70
|
+
order_id: "data.id",
|
|
71
|
+
currency: { key: "data.currency", value: "EUR" },
|
|
72
|
+
value: "data.total",
|
|
73
|
+
contents: {
|
|
74
|
+
loop: [
|
|
75
|
+
"nested",
|
|
76
|
+
{
|
|
77
|
+
condition: (entity) => (0, import_core.isObject)(entity) && entity.entity === "product",
|
|
78
|
+
map: {
|
|
79
|
+
id: "data.id",
|
|
80
|
+
item_price: "data.price",
|
|
81
|
+
quantity: { key: "data.quantity", value: 1 }
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
num_items: {
|
|
87
|
+
fn: (event) => event.nested.filter(
|
|
88
|
+
(item) => item.entity === "product"
|
|
89
|
+
).length
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
out: {
|
|
59
95
|
data: [
|
|
60
96
|
{
|
|
61
97
|
event_name: "Purchase",
|
|
62
|
-
event_time:
|
|
63
|
-
event_id:
|
|
64
|
-
event_source_url:
|
|
98
|
+
event_time: 1700000900,
|
|
99
|
+
event_id: "1700000900-gr0up-1",
|
|
100
|
+
event_source_url: "https://shop.example.com",
|
|
65
101
|
action_source: "website",
|
|
66
102
|
user_data: {
|
|
67
|
-
external_id: [
|
|
68
|
-
"cc8e27118413234d4297ed00a02711365312c79325df9b5b8f4199cbd0b96e7e",
|
|
69
|
-
"9176e6f336dbdb4f99b0e45cbd7e41e0e2323812b236822842a61ffbd362ac8c"
|
|
70
|
-
]
|
|
103
|
+
external_id: ["user-123"]
|
|
71
104
|
},
|
|
72
|
-
order_id: String(event.data.id),
|
|
73
105
|
currency: "EUR",
|
|
74
|
-
value:
|
|
75
|
-
contents:
|
|
76
|
-
id: String(item.data.id),
|
|
77
|
-
quantity: Number(item.data.quantity) || 1,
|
|
78
|
-
item_price: Number(item.data.price)
|
|
79
|
-
})),
|
|
80
|
-
num_items: 2
|
|
106
|
+
value: 249.99,
|
|
107
|
+
contents: [{ id: "SKU-A1", quantity: 2, item_price: 129.99 }]
|
|
81
108
|
}
|
|
82
109
|
]
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// src/examples/mapping.ts
|
|
87
|
-
var mapping_exports = {};
|
|
88
|
-
__export(mapping_exports, {
|
|
89
|
-
InitUserData: () => InitUserData,
|
|
90
|
-
Purchase: () => Purchase2,
|
|
91
|
-
config: () => config
|
|
92
|
-
});
|
|
93
|
-
var import_core2 = require("@walkeros/core");
|
|
94
|
-
var InitUserData = {
|
|
95
|
-
pixelId: "p1x3l1d",
|
|
96
|
-
accessToken: "s3cr3t",
|
|
97
|
-
user_data: {
|
|
98
|
-
external_id: { set: ["user.device", "user.session"] }
|
|
99
110
|
}
|
|
100
111
|
};
|
|
101
|
-
var
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
},
|
|
121
|
-
num_items: {
|
|
122
|
-
fn: (event) => event.nested.filter(
|
|
123
|
-
(item) => item.entity === "product"
|
|
124
|
-
).length
|
|
112
|
+
var lead = {
|
|
113
|
+
in: (0, import_core.getEvent)("form submit", {
|
|
114
|
+
timestamp: 1700000901,
|
|
115
|
+
data: { type: "newsletter" },
|
|
116
|
+
user: { email: "user@example.com" },
|
|
117
|
+
source: { type: "server", id: "https://example.com", previous_id: "" }
|
|
118
|
+
}),
|
|
119
|
+
mapping: void 0,
|
|
120
|
+
out: {
|
|
121
|
+
data: [
|
|
122
|
+
{
|
|
123
|
+
event_name: "Lead",
|
|
124
|
+
event_time: 1700000901,
|
|
125
|
+
event_id: "1700000901-gr0up-1",
|
|
126
|
+
event_source_url: "https://example.com",
|
|
127
|
+
action_source: "website",
|
|
128
|
+
user_data: {
|
|
129
|
+
email: ["user@example.com"]
|
|
130
|
+
}
|
|
125
131
|
}
|
|
126
|
-
|
|
132
|
+
]
|
|
127
133
|
}
|
|
128
134
|
};
|
|
129
|
-
var config = {
|
|
130
|
-
order: { complete: Purchase2 }
|
|
131
|
-
};
|
|
132
135
|
// Annotate the CommonJS export names for ESM import in node:
|
|
133
136
|
0 && (module.exports = {
|
|
134
137
|
env,
|
|
135
|
-
|
|
136
|
-
mapping
|
|
138
|
+
step
|
|
137
139
|
});
|
package/dist/examples/index.mjs
CHANGED
|
@@ -25,90 +25,93 @@ var push = {
|
|
|
25
25
|
};
|
|
26
26
|
var simulation = ["sendServer"];
|
|
27
27
|
|
|
28
|
-
// src/examples/
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
31
|
-
|
|
28
|
+
// src/examples/step.ts
|
|
29
|
+
var step_exports = {};
|
|
30
|
+
__export(step_exports, {
|
|
31
|
+
lead: () => lead,
|
|
32
|
+
purchase: () => purchase
|
|
32
33
|
});
|
|
33
|
-
import { getEvent } from "@walkeros/core";
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
import { getEvent, isObject } from "@walkeros/core";
|
|
35
|
+
var purchase = {
|
|
36
|
+
in: getEvent("order complete", {
|
|
37
|
+
timestamp: 1700000900,
|
|
38
|
+
data: { id: "ORD-300", total: 249.99, currency: "EUR" },
|
|
39
|
+
nested: [
|
|
40
|
+
{ entity: "product", data: { id: "SKU-A1", price: 129.99, quantity: 2 } }
|
|
41
|
+
],
|
|
42
|
+
user: { id: "user-123", device: "device-456" },
|
|
43
|
+
source: { type: "server", id: "https://shop.example.com", previous_id: "" }
|
|
44
|
+
}),
|
|
45
|
+
mapping: {
|
|
46
|
+
name: "Purchase",
|
|
47
|
+
data: {
|
|
48
|
+
map: {
|
|
49
|
+
order_id: "data.id",
|
|
50
|
+
currency: { key: "data.currency", value: "EUR" },
|
|
51
|
+
value: "data.total",
|
|
52
|
+
contents: {
|
|
53
|
+
loop: [
|
|
54
|
+
"nested",
|
|
55
|
+
{
|
|
56
|
+
condition: (entity) => isObject(entity) && entity.entity === "product",
|
|
57
|
+
map: {
|
|
58
|
+
id: "data.id",
|
|
59
|
+
item_price: "data.price",
|
|
60
|
+
quantity: { key: "data.quantity", value: 1 }
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
num_items: {
|
|
66
|
+
fn: (event) => event.nested.filter(
|
|
67
|
+
(item) => item.entity === "product"
|
|
68
|
+
).length
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
out: {
|
|
37
74
|
data: [
|
|
38
75
|
{
|
|
39
76
|
event_name: "Purchase",
|
|
40
|
-
event_time:
|
|
41
|
-
event_id:
|
|
42
|
-
event_source_url:
|
|
77
|
+
event_time: 1700000900,
|
|
78
|
+
event_id: "1700000900-gr0up-1",
|
|
79
|
+
event_source_url: "https://shop.example.com",
|
|
43
80
|
action_source: "website",
|
|
44
81
|
user_data: {
|
|
45
|
-
external_id: [
|
|
46
|
-
"cc8e27118413234d4297ed00a02711365312c79325df9b5b8f4199cbd0b96e7e",
|
|
47
|
-
"9176e6f336dbdb4f99b0e45cbd7e41e0e2323812b236822842a61ffbd362ac8c"
|
|
48
|
-
]
|
|
82
|
+
external_id: ["user-123"]
|
|
49
83
|
},
|
|
50
|
-
order_id: String(event.data.id),
|
|
51
84
|
currency: "EUR",
|
|
52
|
-
value:
|
|
53
|
-
contents:
|
|
54
|
-
id: String(item.data.id),
|
|
55
|
-
quantity: Number(item.data.quantity) || 1,
|
|
56
|
-
item_price: Number(item.data.price)
|
|
57
|
-
})),
|
|
58
|
-
num_items: 2
|
|
85
|
+
value: 249.99,
|
|
86
|
+
contents: [{ id: "SKU-A1", quantity: 2, item_price: 129.99 }]
|
|
59
87
|
}
|
|
60
88
|
]
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// src/examples/mapping.ts
|
|
65
|
-
var mapping_exports = {};
|
|
66
|
-
__export(mapping_exports, {
|
|
67
|
-
InitUserData: () => InitUserData,
|
|
68
|
-
Purchase: () => Purchase2,
|
|
69
|
-
config: () => config
|
|
70
|
-
});
|
|
71
|
-
import { isObject } from "@walkeros/core";
|
|
72
|
-
var InitUserData = {
|
|
73
|
-
pixelId: "p1x3l1d",
|
|
74
|
-
accessToken: "s3cr3t",
|
|
75
|
-
user_data: {
|
|
76
|
-
external_id: { set: ["user.device", "user.session"] }
|
|
77
89
|
}
|
|
78
90
|
};
|
|
79
|
-
var
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
},
|
|
99
|
-
num_items: {
|
|
100
|
-
fn: (event) => event.nested.filter(
|
|
101
|
-
(item) => item.entity === "product"
|
|
102
|
-
).length
|
|
91
|
+
var lead = {
|
|
92
|
+
in: getEvent("form submit", {
|
|
93
|
+
timestamp: 1700000901,
|
|
94
|
+
data: { type: "newsletter" },
|
|
95
|
+
user: { email: "user@example.com" },
|
|
96
|
+
source: { type: "server", id: "https://example.com", previous_id: "" }
|
|
97
|
+
}),
|
|
98
|
+
mapping: void 0,
|
|
99
|
+
out: {
|
|
100
|
+
data: [
|
|
101
|
+
{
|
|
102
|
+
event_name: "Lead",
|
|
103
|
+
event_time: 1700000901,
|
|
104
|
+
event_id: "1700000901-gr0up-1",
|
|
105
|
+
event_source_url: "https://example.com",
|
|
106
|
+
action_source: "website",
|
|
107
|
+
user_data: {
|
|
108
|
+
email: ["user@example.com"]
|
|
109
|
+
}
|
|
103
110
|
}
|
|
104
|
-
|
|
111
|
+
]
|
|
105
112
|
}
|
|
106
113
|
};
|
|
107
|
-
var config = {
|
|
108
|
-
order: { complete: Purchase2 }
|
|
109
|
-
};
|
|
110
114
|
export {
|
|
111
115
|
env_exports as env,
|
|
112
|
-
|
|
113
|
-
mapping_exports as mapping
|
|
116
|
+
step_exports as step
|
|
114
117
|
};
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/walkerOS.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$meta": {
|
|
3
3
|
"package": "@walkeros/server-destination-meta",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.1",
|
|
5
5
|
"type": "destination",
|
|
6
6
|
"platform": "server"
|
|
7
7
|
},
|
|
@@ -86,98 +86,196 @@
|
|
|
86
86
|
"sendServer"
|
|
87
87
|
]
|
|
88
88
|
},
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
"set": [
|
|
101
|
-
"user.device",
|
|
102
|
-
"user.session"
|
|
89
|
+
"step": {
|
|
90
|
+
"lead": {
|
|
91
|
+
"in": {
|
|
92
|
+
"name": "form submit",
|
|
93
|
+
"data": {
|
|
94
|
+
"type": "newsletter"
|
|
95
|
+
},
|
|
96
|
+
"context": {
|
|
97
|
+
"dev": [
|
|
98
|
+
"test",
|
|
99
|
+
1
|
|
103
100
|
]
|
|
101
|
+
},
|
|
102
|
+
"globals": {
|
|
103
|
+
"lang": "elb"
|
|
104
|
+
},
|
|
105
|
+
"custom": {
|
|
106
|
+
"completely": "random"
|
|
107
|
+
},
|
|
108
|
+
"user": {
|
|
109
|
+
"email": "user@example.com"
|
|
110
|
+
},
|
|
111
|
+
"nested": [
|
|
112
|
+
{
|
|
113
|
+
"entity": "child",
|
|
114
|
+
"data": {
|
|
115
|
+
"is": "subordinated"
|
|
116
|
+
},
|
|
117
|
+
"nested": [],
|
|
118
|
+
"context": {
|
|
119
|
+
"element": [
|
|
120
|
+
"child",
|
|
121
|
+
0
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"consent": {
|
|
127
|
+
"functional": true
|
|
128
|
+
},
|
|
129
|
+
"id": "1700000901-gr0up-1",
|
|
130
|
+
"trigger": "test",
|
|
131
|
+
"entity": "form",
|
|
132
|
+
"action": "submit",
|
|
133
|
+
"timestamp": 1700000901,
|
|
134
|
+
"timing": 3.14,
|
|
135
|
+
"group": "gr0up",
|
|
136
|
+
"count": 1,
|
|
137
|
+
"version": {
|
|
138
|
+
"source": "2.0.1",
|
|
139
|
+
"tagging": 1
|
|
140
|
+
},
|
|
141
|
+
"source": {
|
|
142
|
+
"type": "server",
|
|
143
|
+
"id": "https://example.com",
|
|
144
|
+
"previous_id": ""
|
|
104
145
|
}
|
|
146
|
+
},
|
|
147
|
+
"out": {
|
|
148
|
+
"data": [
|
|
149
|
+
{
|
|
150
|
+
"event_name": "Lead",
|
|
151
|
+
"event_time": 1700000901,
|
|
152
|
+
"event_id": "1700000901-gr0up-1",
|
|
153
|
+
"event_source_url": "https://example.com",
|
|
154
|
+
"action_source": "website",
|
|
155
|
+
"user_data": {
|
|
156
|
+
"email": [
|
|
157
|
+
"user@example.com"
|
|
158
|
+
]
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
]
|
|
105
162
|
}
|
|
106
163
|
},
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
"
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
"
|
|
164
|
+
"purchase": {
|
|
165
|
+
"in": {
|
|
166
|
+
"name": "order complete",
|
|
167
|
+
"data": {
|
|
168
|
+
"id": "ORD-300",
|
|
169
|
+
"total": 249.99,
|
|
170
|
+
"currency": "EUR"
|
|
171
|
+
},
|
|
172
|
+
"context": {
|
|
173
|
+
"shopping": [
|
|
174
|
+
"complete",
|
|
175
|
+
0
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
"globals": {
|
|
179
|
+
"pagegroup": "shop"
|
|
180
|
+
},
|
|
181
|
+
"custom": {
|
|
182
|
+
"completely": "random"
|
|
183
|
+
},
|
|
184
|
+
"user": {
|
|
185
|
+
"id": "user-123",
|
|
186
|
+
"device": "device-456"
|
|
187
|
+
},
|
|
188
|
+
"nested": [
|
|
189
|
+
{
|
|
190
|
+
"entity": "product",
|
|
191
|
+
"data": {
|
|
192
|
+
"id": "SKU-A1",
|
|
193
|
+
"price": 129.99,
|
|
194
|
+
"quantity": 2
|
|
138
195
|
}
|
|
139
196
|
}
|
|
197
|
+
],
|
|
198
|
+
"consent": {
|
|
199
|
+
"functional": true
|
|
200
|
+
},
|
|
201
|
+
"id": "1700000900-gr0up-1",
|
|
202
|
+
"trigger": "load",
|
|
203
|
+
"entity": "order",
|
|
204
|
+
"action": "complete",
|
|
205
|
+
"timestamp": 1700000900,
|
|
206
|
+
"timing": 3.14,
|
|
207
|
+
"group": "gr0up",
|
|
208
|
+
"count": 1,
|
|
209
|
+
"version": {
|
|
210
|
+
"source": "2.0.1",
|
|
211
|
+
"tagging": 1
|
|
212
|
+
},
|
|
213
|
+
"source": {
|
|
214
|
+
"type": "server",
|
|
215
|
+
"id": "https://shop.example.com",
|
|
216
|
+
"previous_id": ""
|
|
140
217
|
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
"
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
-
"quantity": {
|
|
166
|
-
"key": "data.quantity",
|
|
167
|
-
"value": 1
|
|
168
|
-
}
|
|
218
|
+
},
|
|
219
|
+
"mapping": {
|
|
220
|
+
"name": "Purchase",
|
|
221
|
+
"data": {
|
|
222
|
+
"map": {
|
|
223
|
+
"order_id": "data.id",
|
|
224
|
+
"currency": {
|
|
225
|
+
"key": "data.currency",
|
|
226
|
+
"value": "EUR"
|
|
227
|
+
},
|
|
228
|
+
"value": "data.total",
|
|
229
|
+
"contents": {
|
|
230
|
+
"loop": [
|
|
231
|
+
"nested",
|
|
232
|
+
{
|
|
233
|
+
"condition": {
|
|
234
|
+
"$code": "e=>y(e)&&\"product\"===e.entity"
|
|
235
|
+
},
|
|
236
|
+
"map": {
|
|
237
|
+
"id": "data.id",
|
|
238
|
+
"item_price": "data.price",
|
|
239
|
+
"quantity": {
|
|
240
|
+
"key": "data.quantity",
|
|
241
|
+
"value": 1
|
|
169
242
|
}
|
|
170
243
|
}
|
|
171
|
-
]
|
|
172
|
-
},
|
|
173
|
-
"num_items": {
|
|
174
|
-
"fn": {
|
|
175
|
-
"$code": "e=>e.nested.filter(e=>\"product\"===e.entity).length"
|
|
176
244
|
}
|
|
245
|
+
]
|
|
246
|
+
},
|
|
247
|
+
"num_items": {
|
|
248
|
+
"fn": {
|
|
249
|
+
"$code": "e=>e.nested.filter(e=>\"product\"===e.entity).length"
|
|
177
250
|
}
|
|
178
251
|
}
|
|
179
252
|
}
|
|
180
253
|
}
|
|
254
|
+
},
|
|
255
|
+
"out": {
|
|
256
|
+
"data": [
|
|
257
|
+
{
|
|
258
|
+
"event_name": "Purchase",
|
|
259
|
+
"event_time": 1700000900,
|
|
260
|
+
"event_id": "1700000900-gr0up-1",
|
|
261
|
+
"event_source_url": "https://shop.example.com",
|
|
262
|
+
"action_source": "website",
|
|
263
|
+
"user_data": {
|
|
264
|
+
"external_id": [
|
|
265
|
+
"user-123"
|
|
266
|
+
]
|
|
267
|
+
},
|
|
268
|
+
"currency": "EUR",
|
|
269
|
+
"value": 249.99,
|
|
270
|
+
"contents": [
|
|
271
|
+
{
|
|
272
|
+
"id": "SKU-A1",
|
|
273
|
+
"quantity": 2,
|
|
274
|
+
"item_price": 129.99
|
|
275
|
+
}
|
|
276
|
+
]
|
|
277
|
+
}
|
|
278
|
+
]
|
|
181
279
|
}
|
|
182
280
|
}
|
|
183
281
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@walkeros/server-destination-meta",
|
|
3
3
|
"description": "Meta server destination for walkerOS",
|
|
4
|
-
"version": "2.0
|
|
4
|
+
"version": "2.1.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"update": "npx npm-check-updates -u && npm update"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@walkeros/core": "^2.
|
|
37
|
-
"@walkeros/server-core": "^2.
|
|
36
|
+
"@walkeros/core": "^2.1.0",
|
|
37
|
+
"@walkeros/server-core": "^2.1.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@walkeros/collector": "^2.
|
|
40
|
+
"@walkeros/collector": "^2.1.0"
|
|
41
41
|
},
|
|
42
42
|
"repository": {
|
|
43
43
|
"url": "git+https://github.com/elbwalker/walkerOS.git",
|