@walkeros/web-destination-heap 3.4.0 → 3.4.1

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.
@@ -100,7 +100,7 @@ function L(e2, t = {}, n = {}) {
100
100
  }
101
101
  function fe(e2 = {}) {
102
102
  var _a;
103
- 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 });
103
+ 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", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
104
104
  if (e2.name) {
105
105
  const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
106
106
  t2 && n2 && (r.entity = t2, r.action = n2);
@@ -114,10 +114,14 @@ function le(e2 = "entity action", t = {}) {
114
114
 
115
115
  // src/examples/step.ts
116
116
  var defaultEventForwarding = {
117
+ title: "Default track",
118
+ description: "A walker event becomes a Heap track call with the event name and empty properties.",
117
119
  in: le("product view", { timestamp: 1700000100 }),
118
120
  out: [["heap.track", "product view", {}]]
119
121
  };
120
122
  var destinationLevelInclude = {
123
+ title: "Renamed purchase",
124
+ description: "An order complete is renamed to purchase and mapped to Heap track properties such as order_id, total, and currency.",
121
125
  in: le("order complete", { timestamp: 1700000101 }),
122
126
  mapping: {
123
127
  name: "purchase",
@@ -138,6 +142,8 @@ var destinationLevelInclude = {
138
142
  ]
139
143
  };
140
144
  var destinationLevelIdentify = {
145
+ title: "Destination identify",
146
+ description: "Destination-level identify calls heap.identify with the user id before firing the default track.",
141
147
  in: le("page view", { timestamp: 1700000102 }),
142
148
  settings: {
143
149
  identify: "user.id"
@@ -148,6 +154,8 @@ var destinationLevelIdentify = {
148
154
  ]
149
155
  };
150
156
  var userLoginIdentify = {
157
+ title: "User login identify",
158
+ description: "A user login identifies the Heap user by email and adds user properties while skipping the track.",
151
159
  in: le("user login", {
152
160
  timestamp: 1700000103,
153
161
  data: {
@@ -174,6 +182,8 @@ var userLoginIdentify = {
174
182
  ]
175
183
  };
176
184
  var userLogoutReset = {
185
+ title: "User logout reset",
186
+ description: "A user logout calls heap.resetIdentity to clear the identified user from the Heap client.",
177
187
  in: le("user logout", { timestamp: 1700000104 }),
178
188
  mapping: {
179
189
  skip: true,
@@ -184,6 +194,8 @@ var userLogoutReset = {
184
194
  out: [["heap.resetIdentity"]]
185
195
  };
186
196
  var eventWithUserProperties = {
197
+ title: "User properties on event",
198
+ description: "An order fires Heap addUserProperties with last-order fields and then tracks the event.",
187
199
  in: le("order complete", {
188
200
  timestamp: 1700000105,
189
201
  data: {
@@ -211,6 +223,8 @@ var eventWithUserProperties = {
211
223
  ]
212
224
  };
213
225
  var globalEventProperties = {
226
+ title: "Global event properties",
227
+ description: "A page view sets persistent Heap event properties so all subsequent events include the page category.",
214
228
  in: le("page view", {
215
229
  timestamp: 1700000106,
216
230
  data: { category: "docs" }
@@ -228,11 +242,15 @@ var globalEventProperties = {
228
242
  out: [["heap.addEventProperties", { page_category: "docs" }]]
229
243
  };
230
244
  var consentRevokeStopTracking = {
245
+ title: "Consent revoked",
246
+ description: "A walker consent revoke for analytics calls heap.stopTracking to pause event capture.",
231
247
  command: "consent",
232
248
  in: { analytics: false },
233
249
  out: [["heap.stopTracking"]]
234
250
  };
235
251
  var consentGrantStartTracking = {
252
+ title: "Consent granted",
253
+ description: "A walker consent grant for analytics calls heap.startTracking to resume event capture.",
236
254
  command: "consent",
237
255
  in: { analytics: true },
238
256
  out: [["heap.startTracking"]]
@@ -79,7 +79,7 @@ function L(e2, t = {}, n = {}) {
79
79
  }
80
80
  function fe(e2 = {}) {
81
81
  var _a;
82
- 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 });
82
+ 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", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
83
83
  if (e2.name) {
84
84
  const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
85
85
  t2 && n2 && (r.entity = t2, r.action = n2);
@@ -93,10 +93,14 @@ function le(e2 = "entity action", t = {}) {
93
93
 
94
94
  // src/examples/step.ts
95
95
  var defaultEventForwarding = {
96
+ title: "Default track",
97
+ description: "A walker event becomes a Heap track call with the event name and empty properties.",
96
98
  in: le("product view", { timestamp: 1700000100 }),
97
99
  out: [["heap.track", "product view", {}]]
98
100
  };
99
101
  var destinationLevelInclude = {
102
+ title: "Renamed purchase",
103
+ description: "An order complete is renamed to purchase and mapped to Heap track properties such as order_id, total, and currency.",
100
104
  in: le("order complete", { timestamp: 1700000101 }),
101
105
  mapping: {
102
106
  name: "purchase",
@@ -117,6 +121,8 @@ var destinationLevelInclude = {
117
121
  ]
118
122
  };
119
123
  var destinationLevelIdentify = {
124
+ title: "Destination identify",
125
+ description: "Destination-level identify calls heap.identify with the user id before firing the default track.",
120
126
  in: le("page view", { timestamp: 1700000102 }),
121
127
  settings: {
122
128
  identify: "user.id"
@@ -127,6 +133,8 @@ var destinationLevelIdentify = {
127
133
  ]
128
134
  };
129
135
  var userLoginIdentify = {
136
+ title: "User login identify",
137
+ description: "A user login identifies the Heap user by email and adds user properties while skipping the track.",
130
138
  in: le("user login", {
131
139
  timestamp: 1700000103,
132
140
  data: {
@@ -153,6 +161,8 @@ var userLoginIdentify = {
153
161
  ]
154
162
  };
155
163
  var userLogoutReset = {
164
+ title: "User logout reset",
165
+ description: "A user logout calls heap.resetIdentity to clear the identified user from the Heap client.",
156
166
  in: le("user logout", { timestamp: 1700000104 }),
157
167
  mapping: {
158
168
  skip: true,
@@ -163,6 +173,8 @@ var userLogoutReset = {
163
173
  out: [["heap.resetIdentity"]]
164
174
  };
165
175
  var eventWithUserProperties = {
176
+ title: "User properties on event",
177
+ description: "An order fires Heap addUserProperties with last-order fields and then tracks the event.",
166
178
  in: le("order complete", {
167
179
  timestamp: 1700000105,
168
180
  data: {
@@ -190,6 +202,8 @@ var eventWithUserProperties = {
190
202
  ]
191
203
  };
192
204
  var globalEventProperties = {
205
+ title: "Global event properties",
206
+ description: "A page view sets persistent Heap event properties so all subsequent events include the page category.",
193
207
  in: le("page view", {
194
208
  timestamp: 1700000106,
195
209
  data: { category: "docs" }
@@ -207,11 +221,15 @@ var globalEventProperties = {
207
221
  out: [["heap.addEventProperties", { page_category: "docs" }]]
208
222
  };
209
223
  var consentRevokeStopTracking = {
224
+ title: "Consent revoked",
225
+ description: "A walker consent revoke for analytics calls heap.stopTracking to pause event capture.",
210
226
  command: "consent",
211
227
  in: { analytics: false },
212
228
  out: [["heap.stopTracking"]]
213
229
  };
214
230
  var consentGrantStartTracking = {
231
+ title: "Consent granted",
232
+ description: "A walker consent grant for analytics calls heap.startTracking to resume event capture.",
215
233
  command: "consent",
216
234
  in: { analytics: true },
217
235
  out: [["heap.startTracking"]]
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$meta": {
3
3
  "package": "@walkeros/web-destination-heap",
4
- "version": "3.4.0",
4
+ "version": "3.4.1",
5
5
  "type": "destination",
6
6
  "platform": [
7
7
  "web"
@@ -156,6 +156,8 @@
156
156
  },
157
157
  "step": {
158
158
  "consentGrantStartTracking": {
159
+ "title": "Consent granted",
160
+ "description": "A walker consent grant for analytics calls heap.startTracking to resume event capture.",
159
161
  "command": "consent",
160
162
  "in": {
161
163
  "analytics": true
@@ -167,6 +169,8 @@
167
169
  ]
168
170
  },
169
171
  "consentRevokeStopTracking": {
172
+ "title": "Consent revoked",
173
+ "description": "A walker consent revoke for analytics calls heap.stopTracking to pause event capture.",
170
174
  "command": "consent",
171
175
  "in": {
172
176
  "analytics": false
@@ -178,6 +182,8 @@
178
182
  ]
179
183
  },
180
184
  "defaultEventForwarding": {
185
+ "title": "Default track",
186
+ "description": "A walker event becomes a Heap track call with the event name and empty properties.",
181
187
  "in": {
182
188
  "name": "product view",
183
189
  "data": {
@@ -217,7 +223,7 @@
217
223
  "group": "gr0up",
218
224
  "count": 1,
219
225
  "version": {
220
- "source": "3.4.0",
226
+ "source": "3.4.1",
221
227
  "tagging": 1
222
228
  },
223
229
  "source": {
@@ -235,6 +241,8 @@
235
241
  ]
236
242
  },
237
243
  "destinationLevelIdentify": {
244
+ "title": "Destination identify",
245
+ "description": "Destination-level identify calls heap.identify with the user id before firing the default track.",
238
246
  "in": {
239
247
  "name": "page view",
240
248
  "data": {
@@ -289,7 +297,7 @@
289
297
  "group": "gr0up",
290
298
  "count": 1,
291
299
  "version": {
292
- "source": "3.4.0",
300
+ "source": "3.4.1",
293
301
  "tagging": 1
294
302
  },
295
303
  "source": {
@@ -314,6 +322,8 @@
314
322
  ]
315
323
  },
316
324
  "destinationLevelInclude": {
325
+ "title": "Renamed purchase",
326
+ "description": "An order complete is renamed to purchase and mapped to Heap track properties such as order_id, total, and currency.",
317
327
  "in": {
318
328
  "name": "order complete",
319
329
  "data": {
@@ -400,7 +410,7 @@
400
410
  "group": "gr0up",
401
411
  "count": 1,
402
412
  "version": {
403
- "source": "3.4.0",
413
+ "source": "3.4.1",
404
414
  "tagging": 1
405
415
  },
406
416
  "source": {
@@ -435,6 +445,8 @@
435
445
  ]
436
446
  },
437
447
  "eventWithUserProperties": {
448
+ "title": "User properties on event",
449
+ "description": "An order fires Heap addUserProperties with last-order fields and then tracks the event.",
438
450
  "in": {
439
451
  "name": "order complete",
440
452
  "data": {
@@ -519,7 +531,7 @@
519
531
  "group": "gr0up",
520
532
  "count": 1,
521
533
  "version": {
522
- "source": "3.4.0",
534
+ "source": "3.4.1",
523
535
  "tagging": 1
524
536
  },
525
537
  "source": {
@@ -554,6 +566,8 @@
554
566
  ]
555
567
  },
556
568
  "globalEventProperties": {
569
+ "title": "Global event properties",
570
+ "description": "A page view sets persistent Heap event properties so all subsequent events include the page category.",
557
571
  "in": {
558
572
  "name": "page view",
559
573
  "data": {
@@ -603,7 +617,7 @@
603
617
  "group": "gr0up",
604
618
  "count": 1,
605
619
  "version": {
606
- "source": "3.4.0",
620
+ "source": "3.4.1",
607
621
  "tagging": 1
608
622
  },
609
623
  "source": {
@@ -632,6 +646,8 @@
632
646
  ]
633
647
  },
634
648
  "userLoginIdentify": {
649
+ "title": "User login identify",
650
+ "description": "A user login identifies the Heap user by email and adds user properties while skipping the track.",
635
651
  "in": {
636
652
  "name": "user login",
637
653
  "data": {
@@ -683,7 +699,7 @@
683
699
  "group": "gr0up",
684
700
  "count": 1,
685
701
  "version": {
686
- "source": "3.4.0",
702
+ "source": "3.4.1",
687
703
  "tagging": 1
688
704
  },
689
705
  "source": {
@@ -719,6 +735,8 @@
719
735
  ]
720
736
  },
721
737
  "userLogoutReset": {
738
+ "title": "User logout reset",
739
+ "description": "A user logout calls heap.resetIdentity to clear the identified user from the Heap client.",
722
740
  "in": {
723
741
  "name": "user logout",
724
742
  "data": {
@@ -775,7 +793,7 @@
775
793
  "group": "gr0up",
776
794
  "count": 1,
777
795
  "version": {
778
- "source": "3.4.0",
796
+ "source": "3.4.1",
779
797
  "tagging": 1
780
798
  },
781
799
  "source": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@walkeros/web-destination-heap",
3
3
  "description": "Heap web destination for walkerOS (product analytics, auto-capture)",
4
- "version": "3.4.0",
4
+ "version": "3.4.1",
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"
41
41
  },
42
42
  "devDependencies": {
43
- "@walkeros/collector": "3.4.0"
43
+ "@walkeros/collector": "3.4.1"
44
44
  },
45
45
  "repository": {
46
46
  "url": "git+https://github.com/elbwalker/walkerOS.git",