@walkeros/web-destination-pinterest 3.3.0 → 3.4.0-next-1776749829492

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 CHANGED
@@ -133,12 +133,9 @@ declare namespace env {
133
133
 
134
134
  /**
135
135
  * Output convention:
136
- * - Single SDK call: out = ['window.pintrk', 'track', 'checkout', { ... }]
137
- * (flat array: first element is the dot-path, remaining elements are args)
138
- * - Multiple SDK calls: out = [ [path, ...args], [path, ...args] ]
136
+ * - Single SDK call: out = [['pintrk', 'track', 'checkout', { ... }]]
137
+ * - Multiple SDK calls: out = [['pintrk', ...], ['pintrk', ...]]
139
138
  * - Zero SDK calls: out = []
140
- *
141
- * The step-examples test runner normalizes both shapes via flatten().
142
139
  */
143
140
  /**
144
141
  * Default event forwarding — no rule. Without a mapping.name, the walkerOS
@@ -163,55 +160,34 @@ declare const pageViewRename: Flow.StepExample;
163
160
  */
164
161
  declare const siteSearch: Flow.StepExample;
165
162
  /**
166
- * Single-product viewcontent. Illustrates:
167
- * - currency fallback via { key, value: 'EUR' }
168
- * - flat product_* parameter names
163
+ * Single-product viewcontent.
169
164
  */
170
165
  declare const productViewContent: Flow.StepExample;
171
166
  /**
172
167
  * Add-to-cart with an inline line_items array.
173
- *
174
- * Pinterest sends a single track() call with line_items as an ARRAY
175
- * INSIDE the event data — NOT a loop of N separate calls.
176
168
  */
177
169
  declare const productAddToCart: Flow.StepExample;
178
170
  /**
179
171
  * Multi-product checkout — the canonical Pinterest ecommerce pattern.
180
- * `line_items.loop: ["nested", { condition, map }]` iterates event.nested
181
- * and produces ONE array inside a SINGLE track() call.
182
- *
183
- * Default fixture has 3 nested entries: ers (420 black), cc (42, no color),
184
- * gift (no price → filtered out by condition).
185
172
  */
186
173
  declare const orderCompleteCheckout: Flow.StepExample;
187
174
  /**
188
175
  * Lead conversion with per-event enhanced matching update.
189
- *
190
- * The rule-level settings.identify resolves to { em, external_id } and
191
- * triggers pintrk('set', data) BEFORE the track() call — enhanced
192
- * matching data is associated with the same event via event_id.
193
176
  */
194
177
  declare const userLoginLead: Flow.StepExample;
195
178
  /**
196
179
  * mapping.skip — processes side effects (identify set) but suppresses
197
- * the default pintrk('track', ...) call. Useful when an upstream
198
- * destination already fired the conversion and you only want to update
199
- * enhanced matching.
180
+ * the default pintrk('track', ...) call.
200
181
  */
201
182
  declare const identifyOnlySkip: Flow.StepExample;
202
183
  /**
203
184
  * Consent revocation — walkerOS walker consent { marketing: false }.
204
185
  * The destination's on('consent') handler flips the runtime state flag
205
- * and stops calling pintrk('track', ...) for subsequent events. There
206
- * is NO opt_out SDK call — Pinterest has no such API.
207
- *
208
- * Expected out: [] — no pintrk calls fire as a direct result of the
209
- * consent dispatch.
186
+ * and stops calling pintrk('track', ...) for subsequent events.
210
187
  */
211
188
  declare const consentRevoke: Flow.StepExample;
212
189
  /**
213
- * Consent grant — explicit opt-in. Same behavior: the destination's
214
- * on('consent') flips the flag. No SDK call fires.
190
+ * Consent grant — explicit opt-in.
215
191
  */
216
192
  declare const consentGrant: Flow.StepExample;
217
193
 
package/dist/dev.d.ts CHANGED
@@ -133,12 +133,9 @@ declare namespace env {
133
133
 
134
134
  /**
135
135
  * Output convention:
136
- * - Single SDK call: out = ['window.pintrk', 'track', 'checkout', { ... }]
137
- * (flat array: first element is the dot-path, remaining elements are args)
138
- * - Multiple SDK calls: out = [ [path, ...args], [path, ...args] ]
136
+ * - Single SDK call: out = [['pintrk', 'track', 'checkout', { ... }]]
137
+ * - Multiple SDK calls: out = [['pintrk', ...], ['pintrk', ...]]
139
138
  * - Zero SDK calls: out = []
140
- *
141
- * The step-examples test runner normalizes both shapes via flatten().
142
139
  */
143
140
  /**
144
141
  * Default event forwarding — no rule. Without a mapping.name, the walkerOS
@@ -163,55 +160,34 @@ declare const pageViewRename: Flow.StepExample;
163
160
  */
164
161
  declare const siteSearch: Flow.StepExample;
165
162
  /**
166
- * Single-product viewcontent. Illustrates:
167
- * - currency fallback via { key, value: 'EUR' }
168
- * - flat product_* parameter names
163
+ * Single-product viewcontent.
169
164
  */
170
165
  declare const productViewContent: Flow.StepExample;
171
166
  /**
172
167
  * Add-to-cart with an inline line_items array.
173
- *
174
- * Pinterest sends a single track() call with line_items as an ARRAY
175
- * INSIDE the event data — NOT a loop of N separate calls.
176
168
  */
177
169
  declare const productAddToCart: Flow.StepExample;
178
170
  /**
179
171
  * Multi-product checkout — the canonical Pinterest ecommerce pattern.
180
- * `line_items.loop: ["nested", { condition, map }]` iterates event.nested
181
- * and produces ONE array inside a SINGLE track() call.
182
- *
183
- * Default fixture has 3 nested entries: ers (420 black), cc (42, no color),
184
- * gift (no price → filtered out by condition).
185
172
  */
186
173
  declare const orderCompleteCheckout: Flow.StepExample;
187
174
  /**
188
175
  * Lead conversion with per-event enhanced matching update.
189
- *
190
- * The rule-level settings.identify resolves to { em, external_id } and
191
- * triggers pintrk('set', data) BEFORE the track() call — enhanced
192
- * matching data is associated with the same event via event_id.
193
176
  */
194
177
  declare const userLoginLead: Flow.StepExample;
195
178
  /**
196
179
  * mapping.skip — processes side effects (identify set) but suppresses
197
- * the default pintrk('track', ...) call. Useful when an upstream
198
- * destination already fired the conversion and you only want to update
199
- * enhanced matching.
180
+ * the default pintrk('track', ...) call.
200
181
  */
201
182
  declare const identifyOnlySkip: Flow.StepExample;
202
183
  /**
203
184
  * Consent revocation — walkerOS walker consent { marketing: false }.
204
185
  * The destination's on('consent') handler flips the runtime state flag
205
- * and stops calling pintrk('track', ...) for subsequent events. There
206
- * is NO opt_out SDK call — Pinterest has no such API.
207
- *
208
- * Expected out: [] — no pintrk calls fire as a direct result of the
209
- * consent dispatch.
186
+ * and stops calling pintrk('track', ...) for subsequent events.
210
187
  */
211
188
  declare const consentRevoke: Flow.StepExample;
212
189
  /**
213
- * Consent grant — explicit opt-in. Same behavior: the destination's
214
- * on('consent') flips the flag. No SDK call fires.
190
+ * Consent grant — explicit opt-in.
215
191
  */
216
192
  declare const consentGrant: Flow.StepExample;
217
193