@walkeros/web-destination-api 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/README.md +1 -1
- package/dist/dev.d.mts +3 -1
- package/dist/dev.d.ts +3 -1
- 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 +3 -1
- package/dist/examples/index.d.ts +3 -1
- package/dist/examples/index.js +38 -12
- package/dist/examples/index.mjs +38 -12
- package/dist/walkerOS.json +114 -1
- package/package.json +5 -5
|
@@ -22,11 +22,13 @@ declare namespace env {
|
|
|
22
22
|
|
|
23
23
|
declare const entityAction: Flow.StepExample;
|
|
24
24
|
declare const pageView: Flow.StepExample;
|
|
25
|
+
declare const customTransform: Flow.StepExample;
|
|
25
26
|
|
|
27
|
+
declare const step_customTransform: typeof customTransform;
|
|
26
28
|
declare const step_entityAction: typeof entityAction;
|
|
27
29
|
declare const step_pageView: typeof pageView;
|
|
28
30
|
declare namespace step {
|
|
29
|
-
export { step_entityAction as entityAction, step_pageView as pageView };
|
|
31
|
+
export { step_customTransform as customTransform, step_entityAction as entityAction, step_pageView as pageView };
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
export { env, step };
|
package/dist/examples/index.d.ts
CHANGED
|
@@ -22,11 +22,13 @@ declare namespace env {
|
|
|
22
22
|
|
|
23
23
|
declare const entityAction: Flow.StepExample;
|
|
24
24
|
declare const pageView: Flow.StepExample;
|
|
25
|
+
declare const customTransform: Flow.StepExample;
|
|
25
26
|
|
|
27
|
+
declare const step_customTransform: typeof customTransform;
|
|
26
28
|
declare const step_entityAction: typeof entityAction;
|
|
27
29
|
declare const step_pageView: typeof pageView;
|
|
28
30
|
declare namespace step {
|
|
29
|
-
export { step_entityAction as entityAction, step_pageView as pageView };
|
|
31
|
+
export { step_customTransform as customTransform, step_entityAction as entityAction, step_pageView as pageView };
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
export { env, step };
|
package/dist/examples/index.js
CHANGED
|
@@ -52,43 +52,44 @@ var simulation = [
|
|
|
52
52
|
// src/examples/step.ts
|
|
53
53
|
var step_exports = {};
|
|
54
54
|
__export(step_exports, {
|
|
55
|
+
customTransform: () => customTransform,
|
|
55
56
|
entityAction: () => entityAction,
|
|
56
57
|
pageView: () => pageView
|
|
57
58
|
});
|
|
58
59
|
|
|
59
60
|
// ../../../core/dist/index.mjs
|
|
60
61
|
var e = Object.defineProperty;
|
|
61
|
-
var
|
|
62
|
+
var c = {};
|
|
62
63
|
((t, n) => {
|
|
63
64
|
for (var o in n) e(t, o, { get: n[o], enumerable: true });
|
|
64
|
-
})(
|
|
65
|
-
var
|
|
66
|
-
var
|
|
67
|
-
function
|
|
68
|
-
n = { ...
|
|
65
|
+
})(c, { Level: () => a });
|
|
66
|
+
var a = ((e2) => (e2[e2.ERROR = 0] = "ERROR", e2[e2.WARN = 1] = "WARN", e2[e2.INFO = 2] = "INFO", e2[e2.DEBUG = 3] = "DEBUG", e2))(a || {});
|
|
67
|
+
var I = { merge: true, shallow: true, extend: true };
|
|
68
|
+
function W(e2, t = {}, n = {}) {
|
|
69
|
+
n = { ...I, ...n };
|
|
69
70
|
const o = Object.entries(t).reduce((t2, [o2, r]) => {
|
|
70
|
-
const
|
|
71
|
-
return n.merge && Array.isArray(
|
|
71
|
+
const s = e2[o2];
|
|
72
|
+
return n.merge && Array.isArray(s) && Array.isArray(r) ? t2[o2] = r.reduce((e3, t3) => e3.includes(t3) ? e3 : [...e3, t3], [...s]) : (n.extend || o2 in e2) && (t2[o2] = r), t2;
|
|
72
73
|
}, {});
|
|
73
74
|
return n.shallow ? { ...e2, ...o } : (Object.assign(e2, o), e2);
|
|
74
75
|
}
|
|
75
76
|
function re(e2 = {}) {
|
|
76
77
|
var _a;
|
|
77
|
-
const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r =
|
|
78
|
+
const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = W({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${t}-${n}-${o}`, trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, group: n, count: o, version: { source: "2.1.1", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
|
|
78
79
|
if (e2.name) {
|
|
79
80
|
const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
|
|
80
81
|
t2 && n2 && (r.entity = t2, r.action = n2);
|
|
81
82
|
}
|
|
82
83
|
return r;
|
|
83
84
|
}
|
|
84
|
-
function
|
|
85
|
+
function se(e2 = "entity action", t = {}) {
|
|
85
86
|
const n = t.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), o = { data: { id: "ers", name: "Everyday Ruck Snack", color: "black", size: "l", price: 420 } }, r = { data: { id: "cc", name: "Cool Cap", size: "one size", price: 42 } };
|
|
86
87
|
return re({ ...{ "cart view": { data: { currency: "EUR", value: 2 * o.data.price }, context: { shopping: ["cart", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", data: { ...o.data, quantity: 2 }, context: { shopping: ["cart", 0] }, nested: [] }], trigger: "load" }, "checkout view": { data: { step: "payment", currency: "EUR", value: o.data.price + r.data.price }, context: { shopping: ["checkout", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", ...o, context: { shopping: ["checkout", 0] }, nested: [] }, { entity: "product", ...r, context: { shopping: ["checkout", 0] }, nested: [] }], trigger: "load" }, "order complete": { data: { id: "0rd3r1d", currency: "EUR", shipping: 5.22, taxes: 73.76, total: 555 }, context: { shopping: ["complete", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", ...o, context: { shopping: ["complete", 0] }, nested: [] }, { entity: "product", ...r, context: { shopping: ["complete", 0] }, nested: [] }, { entity: "gift", data: { name: "Surprise" }, context: { shopping: ["complete", 0] }, nested: [] }], trigger: "load" }, "page view": { data: { domain: "www.example.com", title: "walkerOS documentation", referrer: "https://www.walkeros.io/", search: "?foo=bar", hash: "#hash", id: "/docs/" }, globals: { pagegroup: "docs" }, trigger: "load" }, "product add": { ...o, context: { shopping: ["intent", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "click" }, "product view": { ...o, context: { shopping: ["detail", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "load" }, "product visible": { data: { ...o.data, position: 3, promo: true }, context: { shopping: ["discover", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "load" }, "promotion visible": { data: { name: "Setting up tracking easily", position: "hero" }, context: { ab_test: ["engagement", 0] }, globals: { pagegroup: "homepage" }, trigger: "visible" }, "session start": { data: { id: "s3ss10n", start: n, isNew: true, count: 1, runs: 1, isStart: true, storage: true, referrer: "", device: "c00k13" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n", hash: "h4sh", address: "street number", email: "user@example.com", phone: "+49 123 456 789", userAgent: "Mozilla...", browser: "Chrome", browserVersion: "90", deviceType: "desktop", language: "de-DE", country: "DE", region: "HH", city: "Hamburg", zip: "20354", timezone: "Berlin", os: "walkerOS", osVersion: "1.0", screenSize: "1337x420", ip: "127.0.0.0", internal: true, custom: "value" } } }[e2], ...t, name: e2 });
|
|
87
88
|
}
|
|
88
89
|
|
|
89
90
|
// src/examples/step.ts
|
|
90
91
|
var entityAction = {
|
|
91
|
-
in:
|
|
92
|
+
in: se("entity action", { timestamp: 1700000500 }),
|
|
92
93
|
mapping: {
|
|
93
94
|
data: "data"
|
|
94
95
|
},
|
|
@@ -100,7 +101,7 @@ var entityAction = {
|
|
|
100
101
|
})
|
|
101
102
|
};
|
|
102
103
|
var pageView = {
|
|
103
|
-
in:
|
|
104
|
+
in: se("page view", { timestamp: 1700000501 }),
|
|
104
105
|
mapping: {
|
|
105
106
|
data: "data"
|
|
106
107
|
},
|
|
@@ -113,6 +114,31 @@ var pageView = {
|
|
|
113
114
|
id: "/docs/"
|
|
114
115
|
})
|
|
115
116
|
};
|
|
117
|
+
var customTransform = {
|
|
118
|
+
in: se("order complete", { timestamp: 1700000502 }),
|
|
119
|
+
mapping: {
|
|
120
|
+
data: {
|
|
121
|
+
map: {
|
|
122
|
+
order_id: "data.id",
|
|
123
|
+
amount: "data.total",
|
|
124
|
+
tax: "data.taxes",
|
|
125
|
+
shipping_cost: "data.shipping",
|
|
126
|
+
currency: "data.currency",
|
|
127
|
+
event_name: "name",
|
|
128
|
+
user_id: "user.id"
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
out: JSON.stringify({
|
|
133
|
+
order_id: "0rd3r1d",
|
|
134
|
+
amount: 555,
|
|
135
|
+
tax: 73.76,
|
|
136
|
+
shipping_cost: 5.22,
|
|
137
|
+
currency: "EUR",
|
|
138
|
+
event_name: "order complete",
|
|
139
|
+
user_id: "us3r"
|
|
140
|
+
})
|
|
141
|
+
};
|
|
116
142
|
// Annotate the CommonJS export names for ESM import in node:
|
|
117
143
|
0 && (module.exports = {
|
|
118
144
|
env,
|
package/dist/examples/index.mjs
CHANGED
|
@@ -31,43 +31,44 @@ var simulation = [
|
|
|
31
31
|
// src/examples/step.ts
|
|
32
32
|
var step_exports = {};
|
|
33
33
|
__export(step_exports, {
|
|
34
|
+
customTransform: () => customTransform,
|
|
34
35
|
entityAction: () => entityAction,
|
|
35
36
|
pageView: () => pageView
|
|
36
37
|
});
|
|
37
38
|
|
|
38
39
|
// ../../../core/dist/index.mjs
|
|
39
40
|
var e = Object.defineProperty;
|
|
40
|
-
var
|
|
41
|
+
var c = {};
|
|
41
42
|
((t, n) => {
|
|
42
43
|
for (var o in n) e(t, o, { get: n[o], enumerable: true });
|
|
43
|
-
})(
|
|
44
|
-
var
|
|
45
|
-
var
|
|
46
|
-
function
|
|
47
|
-
n = { ...
|
|
44
|
+
})(c, { Level: () => a });
|
|
45
|
+
var a = ((e2) => (e2[e2.ERROR = 0] = "ERROR", e2[e2.WARN = 1] = "WARN", e2[e2.INFO = 2] = "INFO", e2[e2.DEBUG = 3] = "DEBUG", e2))(a || {});
|
|
46
|
+
var I = { merge: true, shallow: true, extend: true };
|
|
47
|
+
function W(e2, t = {}, n = {}) {
|
|
48
|
+
n = { ...I, ...n };
|
|
48
49
|
const o = Object.entries(t).reduce((t2, [o2, r]) => {
|
|
49
|
-
const
|
|
50
|
-
return n.merge && Array.isArray(
|
|
50
|
+
const s = e2[o2];
|
|
51
|
+
return n.merge && Array.isArray(s) && Array.isArray(r) ? t2[o2] = r.reduce((e3, t3) => e3.includes(t3) ? e3 : [...e3, t3], [...s]) : (n.extend || o2 in e2) && (t2[o2] = r), t2;
|
|
51
52
|
}, {});
|
|
52
53
|
return n.shallow ? { ...e2, ...o } : (Object.assign(e2, o), e2);
|
|
53
54
|
}
|
|
54
55
|
function re(e2 = {}) {
|
|
55
56
|
var _a;
|
|
56
|
-
const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r =
|
|
57
|
+
const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = W({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${t}-${n}-${o}`, trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, group: n, count: o, version: { source: "2.1.1", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
|
|
57
58
|
if (e2.name) {
|
|
58
59
|
const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
|
|
59
60
|
t2 && n2 && (r.entity = t2, r.action = n2);
|
|
60
61
|
}
|
|
61
62
|
return r;
|
|
62
63
|
}
|
|
63
|
-
function
|
|
64
|
+
function se(e2 = "entity action", t = {}) {
|
|
64
65
|
const n = t.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), o = { data: { id: "ers", name: "Everyday Ruck Snack", color: "black", size: "l", price: 420 } }, r = { data: { id: "cc", name: "Cool Cap", size: "one size", price: 42 } };
|
|
65
66
|
return re({ ...{ "cart view": { data: { currency: "EUR", value: 2 * o.data.price }, context: { shopping: ["cart", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", data: { ...o.data, quantity: 2 }, context: { shopping: ["cart", 0] }, nested: [] }], trigger: "load" }, "checkout view": { data: { step: "payment", currency: "EUR", value: o.data.price + r.data.price }, context: { shopping: ["checkout", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", ...o, context: { shopping: ["checkout", 0] }, nested: [] }, { entity: "product", ...r, context: { shopping: ["checkout", 0] }, nested: [] }], trigger: "load" }, "order complete": { data: { id: "0rd3r1d", currency: "EUR", shipping: 5.22, taxes: 73.76, total: 555 }, context: { shopping: ["complete", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", ...o, context: { shopping: ["complete", 0] }, nested: [] }, { entity: "product", ...r, context: { shopping: ["complete", 0] }, nested: [] }, { entity: "gift", data: { name: "Surprise" }, context: { shopping: ["complete", 0] }, nested: [] }], trigger: "load" }, "page view": { data: { domain: "www.example.com", title: "walkerOS documentation", referrer: "https://www.walkeros.io/", search: "?foo=bar", hash: "#hash", id: "/docs/" }, globals: { pagegroup: "docs" }, trigger: "load" }, "product add": { ...o, context: { shopping: ["intent", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "click" }, "product view": { ...o, context: { shopping: ["detail", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "load" }, "product visible": { data: { ...o.data, position: 3, promo: true }, context: { shopping: ["discover", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "load" }, "promotion visible": { data: { name: "Setting up tracking easily", position: "hero" }, context: { ab_test: ["engagement", 0] }, globals: { pagegroup: "homepage" }, trigger: "visible" }, "session start": { data: { id: "s3ss10n", start: n, isNew: true, count: 1, runs: 1, isStart: true, storage: true, referrer: "", device: "c00k13" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n", hash: "h4sh", address: "street number", email: "user@example.com", phone: "+49 123 456 789", userAgent: "Mozilla...", browser: "Chrome", browserVersion: "90", deviceType: "desktop", language: "de-DE", country: "DE", region: "HH", city: "Hamburg", zip: "20354", timezone: "Berlin", os: "walkerOS", osVersion: "1.0", screenSize: "1337x420", ip: "127.0.0.0", internal: true, custom: "value" } } }[e2], ...t, name: e2 });
|
|
66
67
|
}
|
|
67
68
|
|
|
68
69
|
// src/examples/step.ts
|
|
69
70
|
var entityAction = {
|
|
70
|
-
in:
|
|
71
|
+
in: se("entity action", { timestamp: 1700000500 }),
|
|
71
72
|
mapping: {
|
|
72
73
|
data: "data"
|
|
73
74
|
},
|
|
@@ -79,7 +80,7 @@ var entityAction = {
|
|
|
79
80
|
})
|
|
80
81
|
};
|
|
81
82
|
var pageView = {
|
|
82
|
-
in:
|
|
83
|
+
in: se("page view", { timestamp: 1700000501 }),
|
|
83
84
|
mapping: {
|
|
84
85
|
data: "data"
|
|
85
86
|
},
|
|
@@ -92,6 +93,31 @@ var pageView = {
|
|
|
92
93
|
id: "/docs/"
|
|
93
94
|
})
|
|
94
95
|
};
|
|
96
|
+
var customTransform = {
|
|
97
|
+
in: se("order complete", { timestamp: 1700000502 }),
|
|
98
|
+
mapping: {
|
|
99
|
+
data: {
|
|
100
|
+
map: {
|
|
101
|
+
order_id: "data.id",
|
|
102
|
+
amount: "data.total",
|
|
103
|
+
tax: "data.taxes",
|
|
104
|
+
shipping_cost: "data.shipping",
|
|
105
|
+
currency: "data.currency",
|
|
106
|
+
event_name: "name",
|
|
107
|
+
user_id: "user.id"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
out: JSON.stringify({
|
|
112
|
+
order_id: "0rd3r1d",
|
|
113
|
+
amount: 555,
|
|
114
|
+
tax: 73.76,
|
|
115
|
+
shipping_cost: 5.22,
|
|
116
|
+
currency: "EUR",
|
|
117
|
+
event_name: "order complete",
|
|
118
|
+
user_id: "us3r"
|
|
119
|
+
})
|
|
120
|
+
};
|
|
95
121
|
export {
|
|
96
122
|
env_exports as env,
|
|
97
123
|
step_exports as step
|
package/dist/walkerOS.json
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"package": "@walkeros/web-destination-api",
|
|
4
4
|
"version": "2.1.1",
|
|
5
5
|
"type": "destination",
|
|
6
|
-
"platform": "web"
|
|
6
|
+
"platform": "web",
|
|
7
|
+
"docs": "https://www.walkeros.io/docs/destinations/api/web",
|
|
8
|
+
"source": "https://github.com/elbwalker/walkerOS/tree/main/packages/web/destinations/api/src"
|
|
7
9
|
},
|
|
8
10
|
"schemas": {
|
|
9
11
|
"mapping": {
|
|
@@ -71,6 +73,117 @@
|
|
|
71
73
|
]
|
|
72
74
|
},
|
|
73
75
|
"step": {
|
|
76
|
+
"customTransform": {
|
|
77
|
+
"in": {
|
|
78
|
+
"name": "order complete",
|
|
79
|
+
"data": {
|
|
80
|
+
"id": "0rd3r1d",
|
|
81
|
+
"currency": "EUR",
|
|
82
|
+
"shipping": 5.22,
|
|
83
|
+
"taxes": 73.76,
|
|
84
|
+
"total": 555
|
|
85
|
+
},
|
|
86
|
+
"context": {
|
|
87
|
+
"shopping": [
|
|
88
|
+
"complete",
|
|
89
|
+
0
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
"globals": {
|
|
93
|
+
"pagegroup": "shop"
|
|
94
|
+
},
|
|
95
|
+
"custom": {
|
|
96
|
+
"completely": "random"
|
|
97
|
+
},
|
|
98
|
+
"user": {
|
|
99
|
+
"id": "us3r",
|
|
100
|
+
"device": "c00k13",
|
|
101
|
+
"session": "s3ss10n"
|
|
102
|
+
},
|
|
103
|
+
"nested": [
|
|
104
|
+
{
|
|
105
|
+
"entity": "product",
|
|
106
|
+
"data": {
|
|
107
|
+
"id": "ers",
|
|
108
|
+
"name": "Everyday Ruck Snack",
|
|
109
|
+
"color": "black",
|
|
110
|
+
"size": "l",
|
|
111
|
+
"price": 420
|
|
112
|
+
},
|
|
113
|
+
"context": {
|
|
114
|
+
"shopping": [
|
|
115
|
+
"complete",
|
|
116
|
+
0
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
"nested": []
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"entity": "product",
|
|
123
|
+
"data": {
|
|
124
|
+
"id": "cc",
|
|
125
|
+
"name": "Cool Cap",
|
|
126
|
+
"size": "one size",
|
|
127
|
+
"price": 42
|
|
128
|
+
},
|
|
129
|
+
"context": {
|
|
130
|
+
"shopping": [
|
|
131
|
+
"complete",
|
|
132
|
+
0
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
"nested": []
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"entity": "gift",
|
|
139
|
+
"data": {
|
|
140
|
+
"name": "Surprise"
|
|
141
|
+
},
|
|
142
|
+
"context": {
|
|
143
|
+
"shopping": [
|
|
144
|
+
"complete",
|
|
145
|
+
0
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
"nested": []
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
"consent": {
|
|
152
|
+
"functional": true
|
|
153
|
+
},
|
|
154
|
+
"id": "1700000502-gr0up-1",
|
|
155
|
+
"trigger": "load",
|
|
156
|
+
"entity": "order",
|
|
157
|
+
"action": "complete",
|
|
158
|
+
"timestamp": 1700000502,
|
|
159
|
+
"timing": 3.14,
|
|
160
|
+
"group": "gr0up",
|
|
161
|
+
"count": 1,
|
|
162
|
+
"version": {
|
|
163
|
+
"source": "2.1.1",
|
|
164
|
+
"tagging": 1
|
|
165
|
+
},
|
|
166
|
+
"source": {
|
|
167
|
+
"type": "web",
|
|
168
|
+
"id": "https://localhost:80",
|
|
169
|
+
"previous_id": "http://remotehost:9001"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"mapping": {
|
|
173
|
+
"data": {
|
|
174
|
+
"map": {
|
|
175
|
+
"order_id": "data.id",
|
|
176
|
+
"amount": "data.total",
|
|
177
|
+
"tax": "data.taxes",
|
|
178
|
+
"shipping_cost": "data.shipping",
|
|
179
|
+
"currency": "data.currency",
|
|
180
|
+
"event_name": "name",
|
|
181
|
+
"user_id": "user.id"
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
"out": "{\"order_id\":\"0rd3r1d\",\"amount\":555,\"tax\":73.76,\"shipping_cost\":5.22,\"currency\":\"EUR\",\"event_name\":\"order complete\",\"user_id\":\"us3r\"}"
|
|
186
|
+
},
|
|
74
187
|
"entityAction": {
|
|
75
188
|
"in": {
|
|
76
189
|
"name": "entity action",
|
package/package.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@walkeros/web-destination-api",
|
|
3
3
|
"description": "Web API destination for walkerOS",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "3.0.0",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"sideEffects": false,
|
|
7
6
|
"main": "./dist/index.js",
|
|
8
7
|
"module": "./dist/index.mjs",
|
|
9
8
|
"types": "./dist/index.d.ts",
|
|
@@ -37,10 +36,10 @@
|
|
|
37
36
|
"update": "npx npm-check-updates -u && npm update"
|
|
38
37
|
},
|
|
39
38
|
"dependencies": {
|
|
40
|
-
"@walkeros/web-core": "
|
|
39
|
+
"@walkeros/web-core": "^3.0.0"
|
|
41
40
|
},
|
|
42
41
|
"devDependencies": {
|
|
43
|
-
"@walkeros/collector": "
|
|
42
|
+
"@walkeros/collector": "^3.0.0"
|
|
44
43
|
},
|
|
45
44
|
"repository": {
|
|
46
45
|
"url": "git+https://github.com/elbwalker/walkerOS.git",
|
|
@@ -53,7 +52,8 @@
|
|
|
53
52
|
},
|
|
54
53
|
"walkerOS": {
|
|
55
54
|
"type": "destination",
|
|
56
|
-
"platform": "web"
|
|
55
|
+
"platform": "web",
|
|
56
|
+
"docs": "https://www.walkeros.io/docs/destinations/api/web"
|
|
57
57
|
},
|
|
58
58
|
"keywords": [
|
|
59
59
|
"walkerOS",
|