@walkeros/web-destination-api 3.4.0 → 3.4.1-next-1776790594143

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.
@@ -75,7 +75,7 @@ function L(e2, t = {}, n = {}) {
75
75
  }
76
76
  function fe(e2 = {}) {
77
77
  var _a;
78
- const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ 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: "3.4.0", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
78
+ const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ 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: "3.4.1-next-1776790594143", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
79
79
  if (e2.name) {
80
80
  const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
81
81
  t2 && n2 && (r.entity = t2, r.action = n2);
@@ -90,6 +90,8 @@ function le(e2 = "entity action", t = {}) {
90
90
  // src/examples/step.ts
91
91
  var URL = "https://api.example.com/events";
92
92
  var entityAction = {
93
+ title: "Entity action",
94
+ description: "A generic entity action event is forwarded to the configured API endpoint with the mapped data JSON body.",
93
95
  in: le("entity action", { timestamp: 1700000500 }),
94
96
  mapping: {
95
97
  data: "data"
@@ -109,6 +111,8 @@ var entityAction = {
109
111
  ]
110
112
  };
111
113
  var pageView = {
114
+ title: "Page view",
115
+ description: "A page view is POSTed to the configured API endpoint with the event data section as the JSON body.",
112
116
  in: le("page view", { timestamp: 1700000501 }),
113
117
  mapping: {
114
118
  data: "data"
@@ -130,6 +134,8 @@ var pageView = {
130
134
  ]
131
135
  };
132
136
  var customTransform = {
137
+ title: "Custom payload",
138
+ description: "An order event is reshaped via a data mapping into a custom JSON body for the API endpoint.",
133
139
  in: le("order complete", { timestamp: 1700000502 }),
134
140
  mapping: {
135
141
  data: {
@@ -54,7 +54,7 @@ function L(e2, t = {}, n = {}) {
54
54
  }
55
55
  function fe(e2 = {}) {
56
56
  var _a;
57
- const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ 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: "3.4.0", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
57
+ const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ 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: "3.4.1-next-1776790594143", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
58
58
  if (e2.name) {
59
59
  const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
60
60
  t2 && n2 && (r.entity = t2, r.action = n2);
@@ -69,6 +69,8 @@ function le(e2 = "entity action", t = {}) {
69
69
  // src/examples/step.ts
70
70
  var URL = "https://api.example.com/events";
71
71
  var entityAction = {
72
+ title: "Entity action",
73
+ description: "A generic entity action event is forwarded to the configured API endpoint with the mapped data JSON body.",
72
74
  in: le("entity action", { timestamp: 1700000500 }),
73
75
  mapping: {
74
76
  data: "data"
@@ -88,6 +90,8 @@ var entityAction = {
88
90
  ]
89
91
  };
90
92
  var pageView = {
93
+ title: "Page view",
94
+ description: "A page view is POSTed to the configured API endpoint with the event data section as the JSON body.",
91
95
  in: le("page view", { timestamp: 1700000501 }),
92
96
  mapping: {
93
97
  data: "data"
@@ -109,6 +113,8 @@ var pageView = {
109
113
  ]
110
114
  };
111
115
  var customTransform = {
116
+ title: "Custom payload",
117
+ description: "An order event is reshaped via a data mapping into a custom JSON body for the API endpoint.",
112
118
  in: le("order complete", { timestamp: 1700000502 }),
113
119
  mapping: {
114
120
  data: {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$meta": {
3
3
  "package": "@walkeros/web-destination-api",
4
- "version": "3.4.0",
4
+ "version": "3.4.1-next-1776790594143",
5
5
  "type": "destination",
6
6
  "platform": [
7
7
  "web"
@@ -76,6 +76,8 @@
76
76
  },
77
77
  "step": {
78
78
  "customTransform": {
79
+ "title": "Custom payload",
80
+ "description": "An order event is reshaped via a data mapping into a custom JSON body for the API endpoint.",
79
81
  "in": {
80
82
  "name": "order complete",
81
83
  "data": {
@@ -162,7 +164,7 @@
162
164
  "group": "gr0up",
163
165
  "count": 1,
164
166
  "version": {
165
- "source": "3.4.0",
167
+ "source": "3.4.1-next-1776790594143",
166
168
  "tagging": 1
167
169
  },
168
170
  "source": {
@@ -196,6 +198,8 @@
196
198
  ]
197
199
  },
198
200
  "entityAction": {
201
+ "title": "Entity action",
202
+ "description": "A generic entity action event is forwarded to the configured API endpoint with the mapped data JSON body.",
199
203
  "in": {
200
204
  "name": "entity action",
201
205
  "data": {
@@ -252,7 +256,7 @@
252
256
  "group": "gr0up",
253
257
  "count": 1,
254
258
  "version": {
255
- "source": "3.4.0",
259
+ "source": "3.4.1-next-1776790594143",
256
260
  "tagging": 1
257
261
  },
258
262
  "source": {
@@ -276,6 +280,8 @@
276
280
  ]
277
281
  },
278
282
  "pageView": {
283
+ "title": "Page view",
284
+ "description": "A page view is POSTed to the configured API endpoint with the event data section as the JSON body.",
279
285
  "in": {
280
286
  "name": "page view",
281
287
  "data": {
@@ -330,7 +336,7 @@
330
336
  "group": "gr0up",
331
337
  "count": 1,
332
338
  "version": {
333
- "source": "3.4.0",
339
+ "source": "3.4.1-next-1776790594143",
334
340
  "tagging": 1
335
341
  },
336
342
  "source": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@walkeros/web-destination-api",
3
3
  "description": "Web API destination for walkerOS",
4
- "version": "3.4.0",
4
+ "version": "3.4.1-next-1776790594143",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.mjs",
@@ -37,10 +37,10 @@
37
37
  "update": "npx npm-check-updates -u && npm update"
38
38
  },
39
39
  "dependencies": {
40
- "@walkeros/web-core": "3.4.0"
40
+ "@walkeros/web-core": "3.4.1-next-1776790594143"
41
41
  },
42
42
  "devDependencies": {
43
- "@walkeros/collector": "3.4.0"
43
+ "@walkeros/collector": "3.4.1-next-1776790594143"
44
44
  },
45
45
  "repository": {
46
46
  "url": "git+https://github.com/elbwalker/walkerOS.git",