@walkeros/web-destination-heap 3.4.2 → 4.0.0-next-1777463920154

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 CHANGED
@@ -11,7 +11,7 @@
11
11
  [NPM Package](https://www.npmjs.com/package/@walkeros/web-destination-heap)
12
12
  • [Documentation](https://www.walkeros.io/docs/destinations/web/heap)
13
13
 
14
- This package forwards walkerOS events to [Heap](https://www.heap.io/) — product
14
+ This package forwards walkerOS events to [Heap](https://www.heap.io/) - product
15
15
  analytics with auto-capture, heatmaps, and session replay. Loads the official
16
16
  Heap snippet from Heap's CDN and forwards events through `window.heap.track()`.
17
17
 
@@ -21,16 +21,16 @@ them as `heap.track()` calls plus identity and persistent property updates.
21
21
 
22
22
  ## Features
23
23
 
24
- - **Default event forwarding** — every walkerOS event becomes
24
+ - **Default event forwarding** - every walkerOS event becomes
25
25
  `heap.track(name, properties)`
26
- - **Identity** — `heap.identify(id)` and `heap.resetIdentity()` for login/logout
27
- - **User properties** — `heap.addUserProperties({...})` at destination or rule
26
+ - **Identity** - `heap.identify(id)` and `heap.resetIdentity()` for login/logout
27
+ - **User properties** - `heap.addUserProperties({...})` at destination or rule
28
28
  level
29
- - **Persistent event properties** — `heap.addEventProperties({...})` and
29
+ - **Persistent event properties** - `heap.addEventProperties({...})` and
30
30
  `heap.clearEventProperties()` via rule settings
31
- - **Consent** — `heap.startTracking()` / `heap.stopTracking()` wired to walkerOS
31
+ - **Consent** - `heap.startTracking()` / `heap.stopTracking()` wired to walkerOS
32
32
  `config.consent`
33
- - **Snippet injection** — loads `heap-<appId>.js` from Heap's CDN with
33
+ - **Snippet injection** - loads `heap-<appId>.js` from Heap's CDN with
34
34
  `disablePageviewAutocapture: true` and `disableTextCapture: true` defaults so
35
35
  walkerOS sources own event capture
36
36
 
@@ -73,39 +73,39 @@ await startFlow({
73
73
  | `disableSessionReplay` | `boolean` | Disable Heap session replay. | No |
74
74
  | `secureCookie` | `boolean` | SSL-only cookies. | No |
75
75
  | `ingestServer` | `string` | Custom server endpoint (first-party proxy). | No |
76
- | `identify` | `Mapping.Value` | Destination-level identity mapping — resolves to a string for `heap.identify()` | No |
77
- | `userProperties` | `Mapping.Value` | Destination-level user properties mapping — resolves to an object for `heap.addUserProperties()` | No |
76
+ | `identify` | `Mapping.Value` | Destination-level identity mapping - resolves to a string for `heap.identify()` | No |
77
+ | `userProperties` | `Mapping.Value` | Destination-level user properties mapping - resolves to an object for `heap.addUserProperties()` | No |
78
78
  | `heapConfig` | `HeapConfig` | Passthrough for additional `heap.load()` options | No |
79
79
 
80
80
  ### Mapping (`rule.settings`)
81
81
 
82
82
  | Name | Type | Description |
83
83
  | ---------------------- | -------------------------- | -------------------------------------------------------------------------------- |
84
- | `identify` | `Mapping.Value` | Per-event identity — resolves to a string for `heap.identify()` |
84
+ | `identify` | `Mapping.Value` | Per-event identity - resolves to a string for `heap.identify()` |
85
85
  | `reset` | `boolean \| Mapping.Value` | Truthy triggers `heap.resetIdentity()` (e.g. on logout) |
86
- | `userProperties` | `Mapping.Value` | Per-event user properties — resolves to object for `heap.addUserProperties()` |
87
- | `eventProperties` | `Mapping.Value` | Persistent event properties — resolves to object for `heap.addEventProperties()` |
86
+ | `userProperties` | `Mapping.Value` | Per-event user properties - resolves to object for `heap.addUserProperties()` |
87
+ | `eventProperties` | `Mapping.Value` | Persistent event properties - resolves to object for `heap.addEventProperties()` |
88
88
  | `clearEventProperties` | `boolean \| Mapping.Value` | Truthy triggers `heap.clearEventProperties()` |
89
89
 
90
90
  Standard mapping features also apply:
91
91
 
92
- - `name` — rename the forwarded event (`heap.track(<new name>, ...)`)
93
- - `skip` — suppress the default `heap.track(...)` call while still running
92
+ - `name` - rename the forwarded event (`heap.track(<new name>, ...)`)
93
+ - `silent` - suppress the default `heap.track(...)` call while still running
94
94
  `identify` / `userProperties` / `reset` / `eventProperties`
95
- - `ignore` — drop the event entirely
96
- - `data` — resolve event properties forwarded as the second argument to
95
+ - `ignore` - drop the event entirely
96
+ - `data` - resolve event properties forwarded as the second argument to
97
97
  `heap.track(...)`
98
98
 
99
99
  ## Identity
100
100
 
101
- Heap identity is sticky — call `heap.identify(id)` on login and
101
+ Heap identity is sticky - call `heap.identify(id)` on login and
102
102
  `heap.resetIdentity()` on logout. A typical mapping:
103
103
 
104
104
  ```typescript
105
105
  mapping: {
106
106
  user: {
107
107
  login: {
108
- skip: true,
108
+ silent: true,
109
109
  settings: {
110
110
  identify: 'data.email',
111
111
  userProperties: {
@@ -114,7 +114,7 @@ mapping: {
114
114
  },
115
115
  },
116
116
  logout: {
117
- skip: true,
117
+ silent: true,
118
118
  settings: { reset: true },
119
119
  },
120
120
  },
package/dist/dev.d.mts CHANGED
@@ -140,7 +140,7 @@ type HeapStepExample = Flow.StepExample & {
140
140
  settings?: Partial<Settings>;
141
141
  };
142
142
  /**
143
- * Default event forwarding — every walkerOS event becomes
143
+ * Default event forwarding - every walkerOS event becomes
144
144
  * heap.track(event.name, properties). With no mapping, properties is `{}`.
145
145
  */
146
146
  declare const defaultEventForwarding: HeapStepExample;
@@ -150,36 +150,36 @@ declare const defaultEventForwarding: HeapStepExample;
150
150
  */
151
151
  declare const destinationLevelInclude: HeapStepExample;
152
152
  /**
153
- * Destination-level settings.identify — heap.identify() resolves user.id,
153
+ * Destination-level settings.identify - heap.identify() resolves user.id,
154
154
  * then the default heap.track() call fires.
155
155
  */
156
156
  declare const destinationLevelIdentify: HeapStepExample;
157
157
  /**
158
- * Per-event login identify — heap.identify() from data.email + user
159
- * properties from the same rule. skip: true suppresses the track() call.
158
+ * Per-event login identify - heap.identify() from data.email + user
159
+ * properties from the same rule. silent: true suppresses the track() call.
160
160
  */
161
161
  declare const userLoginIdentify: HeapStepExample;
162
162
  /**
163
- * User logout — heap.resetIdentity(). skip: true suppresses the track() call.
163
+ * User logout - heap.resetIdentity(). silent: true suppresses the track() call.
164
164
  */
165
165
  declare const userLogoutReset: HeapStepExample;
166
166
  /**
167
- * Event with user properties from mapping — heap.addUserProperties() fires,
167
+ * Event with user properties from mapping - heap.addUserProperties() fires,
168
168
  * then the default heap.track() call.
169
169
  */
170
170
  declare const eventWithUserProperties: HeapStepExample;
171
171
  /**
172
- * Global event properties — heap.addEventProperties() sets persistent
173
- * properties on all subsequent events. skip: true on this rule.
172
+ * Global event properties - heap.addEventProperties() sets persistent
173
+ * properties on all subsequent events. silent: true on this rule.
174
174
  */
175
175
  declare const globalEventProperties: HeapStepExample;
176
176
  /**
177
- * Consent revoked — on('consent') handler calls heap.stopTracking()
177
+ * Consent revoked - on('consent') handler calls heap.stopTracking()
178
178
  * when a required consent key is false.
179
179
  */
180
180
  declare const consentRevokeStopTracking: HeapStepExample;
181
181
  /**
182
- * Consent granted — on('consent') handler calls heap.startTracking()
182
+ * Consent granted - on('consent') handler calls heap.startTracking()
183
183
  * when all required consent keys are true.
184
184
  */
185
185
  declare const consentGrantStartTracking: HeapStepExample;
package/dist/dev.d.ts CHANGED
@@ -140,7 +140,7 @@ type HeapStepExample = Flow.StepExample & {
140
140
  settings?: Partial<Settings>;
141
141
  };
142
142
  /**
143
- * Default event forwarding — every walkerOS event becomes
143
+ * Default event forwarding - every walkerOS event becomes
144
144
  * heap.track(event.name, properties). With no mapping, properties is `{}`.
145
145
  */
146
146
  declare const defaultEventForwarding: HeapStepExample;
@@ -150,36 +150,36 @@ declare const defaultEventForwarding: HeapStepExample;
150
150
  */
151
151
  declare const destinationLevelInclude: HeapStepExample;
152
152
  /**
153
- * Destination-level settings.identify — heap.identify() resolves user.id,
153
+ * Destination-level settings.identify - heap.identify() resolves user.id,
154
154
  * then the default heap.track() call fires.
155
155
  */
156
156
  declare const destinationLevelIdentify: HeapStepExample;
157
157
  /**
158
- * Per-event login identify — heap.identify() from data.email + user
159
- * properties from the same rule. skip: true suppresses the track() call.
158
+ * Per-event login identify - heap.identify() from data.email + user
159
+ * properties from the same rule. silent: true suppresses the track() call.
160
160
  */
161
161
  declare const userLoginIdentify: HeapStepExample;
162
162
  /**
163
- * User logout — heap.resetIdentity(). skip: true suppresses the track() call.
163
+ * User logout - heap.resetIdentity(). silent: true suppresses the track() call.
164
164
  */
165
165
  declare const userLogoutReset: HeapStepExample;
166
166
  /**
167
- * Event with user properties from mapping — heap.addUserProperties() fires,
167
+ * Event with user properties from mapping - heap.addUserProperties() fires,
168
168
  * then the default heap.track() call.
169
169
  */
170
170
  declare const eventWithUserProperties: HeapStepExample;
171
171
  /**
172
- * Global event properties — heap.addEventProperties() sets persistent
173
- * properties on all subsequent events. skip: true on this rule.
172
+ * Global event properties - heap.addEventProperties() sets persistent
173
+ * properties on all subsequent events. silent: true on this rule.
174
174
  */
175
175
  declare const globalEventProperties: HeapStepExample;
176
176
  /**
177
- * Consent revoked — on('consent') handler calls heap.stopTracking()
177
+ * Consent revoked - on('consent') handler calls heap.stopTracking()
178
178
  * when a required consent key is false.
179
179
  */
180
180
  declare const consentRevokeStopTracking: HeapStepExample;
181
181
  /**
182
- * Consent granted — on('consent') handler calls heap.startTracking()
182
+ * Consent granted - on('consent') handler calls heap.startTracking()
183
183
  * when all required consent keys are true.
184
184
  */
185
185
  declare const consentGrantStartTracking: HeapStepExample;