@walkeros/web-destination-pinterest 3.3.0-next-1776098542393

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.
@@ -0,0 +1,913 @@
1
+ {
2
+ "$meta": {
3
+ "package": "@walkeros/web-destination-pinterest",
4
+ "version": "3.2.0",
5
+ "type": "destination",
6
+ "platform": [
7
+ "web"
8
+ ],
9
+ "docs": "https://www.walkeros.io/docs/destinations/web/pinterest",
10
+ "source": "https://github.com/elbwalker/walkerOS/tree/main/packages/web/destinations/pinterest/src"
11
+ },
12
+ "schemas": {
13
+ "mapping": {
14
+ "$schema": "http://json-schema.org/draft-07/schema#",
15
+ "type": "object",
16
+ "properties": {
17
+ "identify": {
18
+ "description": "Per-event identity override. Resolves to { em?, external_id? } and fires pintrk(\"set\", data) when the resolved value differs from the current state."
19
+ }
20
+ },
21
+ "additionalProperties": false
22
+ },
23
+ "settings": {
24
+ "$schema": "http://json-schema.org/draft-07/schema#",
25
+ "type": "object",
26
+ "properties": {
27
+ "apiKey": {
28
+ "type": "string",
29
+ "minLength": 6,
30
+ "pattern": "^\\d+$",
31
+ "description": "Your Pinterest Tag ID (numeric string, e.g. \"2612345678901\"). Found in Pinterest Ads Manager under Conversions → Pinterest Tag. Passed to pintrk(\"load\", tagId)."
32
+ },
33
+ "pageview": {
34
+ "type": "boolean",
35
+ "description": "Fire pintrk(\"page\") once in init after core.js loads. Default true (matches Pinterest's base code convention). Set false when walkerOS sources already emit page view events and you would otherwise get a duplicate initial fire."
36
+ },
37
+ "identify": {
38
+ "description": "walkerOS mapping value resolving to enhanced matching fields: { em?: string, external_id?: string }. em is auto-hashed by the Pinterest JS tag — do not hash before passing. Passed to pintrk(\"load\", tagId, data) on init and pintrk(\"set\", data) when the resolved value changes."
39
+ }
40
+ },
41
+ "required": [
42
+ "apiKey"
43
+ ],
44
+ "additionalProperties": false
45
+ }
46
+ },
47
+ "examples": {
48
+ "env": {
49
+ "init": {
50
+ "window": {},
51
+ "document": {
52
+ "createElement": {
53
+ "$code": "()=>({src:\"\",async:!1,dataset:{},setAttribute:()=>{},removeAttribute:()=>{}})"
54
+ },
55
+ "head": {
56
+ "appendChild": {
57
+ "$code": "()=>{}"
58
+ }
59
+ },
60
+ "getElementsByTagName": {
61
+ "$code": "()=>[{parentNode:{insertBefore:()=>{}}}]"
62
+ },
63
+ "querySelector": {
64
+ "$code": "()=>null"
65
+ }
66
+ }
67
+ },
68
+ "push": {
69
+ "window": {
70
+ "pintrk": {
71
+ "$code": "()=>{}"
72
+ }
73
+ },
74
+ "document": {
75
+ "createElement": {
76
+ "$code": "()=>({src:\"\",async:!1,dataset:{},setAttribute:()=>{},removeAttribute:()=>{}})"
77
+ },
78
+ "head": {
79
+ "appendChild": {
80
+ "$code": "()=>{}"
81
+ }
82
+ },
83
+ "getElementsByTagName": {
84
+ "$code": "()=>[{parentNode:{insertBefore:()=>{}}}]"
85
+ },
86
+ "querySelector": {
87
+ "$code": "()=>null"
88
+ }
89
+ }
90
+ },
91
+ "simulation": [
92
+ "call:window.pintrk"
93
+ ]
94
+ },
95
+ "step": {
96
+ "consentGrant": {
97
+ "command": "consent",
98
+ "in": {
99
+ "marketing": true
100
+ },
101
+ "out": []
102
+ },
103
+ "consentRevoke": {
104
+ "command": "consent",
105
+ "in": {
106
+ "marketing": false
107
+ },
108
+ "out": []
109
+ },
110
+ "defaultForward": {
111
+ "in": {
112
+ "name": "page view",
113
+ "data": {
114
+ "domain": "www.example.com",
115
+ "title": "walkerOS documentation",
116
+ "referrer": "https://www.walkeros.io/",
117
+ "search": "?foo=bar",
118
+ "hash": "#hash",
119
+ "id": "/docs/"
120
+ },
121
+ "context": {
122
+ "dev": [
123
+ "test",
124
+ 1
125
+ ]
126
+ },
127
+ "globals": {
128
+ "pagegroup": "docs"
129
+ },
130
+ "custom": {
131
+ "completely": "random"
132
+ },
133
+ "user": {
134
+ "id": "us3r",
135
+ "device": "c00k13",
136
+ "session": "s3ss10n"
137
+ },
138
+ "nested": [
139
+ {
140
+ "entity": "child",
141
+ "data": {
142
+ "is": "subordinated"
143
+ },
144
+ "nested": [],
145
+ "context": {
146
+ "element": [
147
+ "child",
148
+ 0
149
+ ]
150
+ }
151
+ }
152
+ ],
153
+ "consent": {
154
+ "functional": true
155
+ },
156
+ "id": "ev-1700000100",
157
+ "trigger": "load",
158
+ "entity": "page",
159
+ "action": "view",
160
+ "timestamp": 1700000100,
161
+ "timing": 3.14,
162
+ "group": "gr0up",
163
+ "count": 1,
164
+ "version": {
165
+ "source": "3.2.0",
166
+ "tagging": 1
167
+ },
168
+ "source": {
169
+ "type": "web",
170
+ "id": "https://localhost:80",
171
+ "previous_id": "http://remotehost:9001"
172
+ }
173
+ },
174
+ "out": [
175
+ "window.pintrk",
176
+ "track",
177
+ "page view",
178
+ {
179
+ "event_id": "ev-1700000100"
180
+ }
181
+ ]
182
+ },
183
+ "identifyOnlySkip": {
184
+ "in": {
185
+ "name": "user update",
186
+ "data": {
187
+ "id": "usr_456",
188
+ "email": "new@example.com"
189
+ },
190
+ "context": {
191
+ "dev": [
192
+ "test",
193
+ 1
194
+ ]
195
+ },
196
+ "globals": {
197
+ "lang": "elb"
198
+ },
199
+ "custom": {
200
+ "completely": "random"
201
+ },
202
+ "user": {
203
+ "id": "us3r",
204
+ "device": "c00k13",
205
+ "session": "s3ss10n"
206
+ },
207
+ "nested": [
208
+ {
209
+ "entity": "child",
210
+ "data": {
211
+ "is": "subordinated"
212
+ },
213
+ "nested": [],
214
+ "context": {
215
+ "element": [
216
+ "child",
217
+ 0
218
+ ]
219
+ }
220
+ }
221
+ ],
222
+ "consent": {
223
+ "functional": true
224
+ },
225
+ "id": "ev-1700000108",
226
+ "trigger": "test",
227
+ "entity": "user",
228
+ "action": "update",
229
+ "timestamp": 1700000108,
230
+ "timing": 3.14,
231
+ "group": "gr0up",
232
+ "count": 1,
233
+ "version": {
234
+ "source": "3.2.0",
235
+ "tagging": 1
236
+ },
237
+ "source": {
238
+ "type": "web",
239
+ "id": "https://localhost:80",
240
+ "previous_id": "http://remotehost:9001"
241
+ }
242
+ },
243
+ "mapping": {
244
+ "skip": true,
245
+ "settings": {
246
+ "identify": {
247
+ "map": {
248
+ "em": "data.email",
249
+ "external_id": "data.id"
250
+ }
251
+ }
252
+ }
253
+ },
254
+ "out": [
255
+ "window.pintrk",
256
+ "set",
257
+ {
258
+ "em": "new@example.com",
259
+ "external_id": "usr_456"
260
+ }
261
+ ]
262
+ },
263
+ "orderCompleteCheckout": {
264
+ "in": {
265
+ "name": "order complete",
266
+ "data": {
267
+ "id": "0rd3r1d",
268
+ "currency": "EUR",
269
+ "shipping": 5.22,
270
+ "taxes": 73.76,
271
+ "total": 555
272
+ },
273
+ "context": {
274
+ "shopping": [
275
+ "complete",
276
+ 0
277
+ ]
278
+ },
279
+ "globals": {
280
+ "pagegroup": "shop"
281
+ },
282
+ "custom": {
283
+ "completely": "random"
284
+ },
285
+ "user": {
286
+ "id": "us3r",
287
+ "device": "c00k13",
288
+ "session": "s3ss10n"
289
+ },
290
+ "nested": [
291
+ {
292
+ "entity": "product",
293
+ "data": {
294
+ "id": "ers",
295
+ "name": "Everyday Ruck Snack",
296
+ "color": "black",
297
+ "size": "l",
298
+ "price": 420
299
+ },
300
+ "context": {
301
+ "shopping": [
302
+ "complete",
303
+ 0
304
+ ]
305
+ },
306
+ "nested": []
307
+ },
308
+ {
309
+ "entity": "product",
310
+ "data": {
311
+ "id": "cc",
312
+ "name": "Cool Cap",
313
+ "size": "one size",
314
+ "price": 42
315
+ },
316
+ "context": {
317
+ "shopping": [
318
+ "complete",
319
+ 0
320
+ ]
321
+ },
322
+ "nested": []
323
+ },
324
+ {
325
+ "entity": "gift",
326
+ "data": {
327
+ "name": "Surprise"
328
+ },
329
+ "context": {
330
+ "shopping": [
331
+ "complete",
332
+ 0
333
+ ]
334
+ },
335
+ "nested": []
336
+ }
337
+ ],
338
+ "consent": {
339
+ "functional": true
340
+ },
341
+ "id": "ev-1700000106",
342
+ "trigger": "load",
343
+ "entity": "order",
344
+ "action": "complete",
345
+ "timestamp": 1700000106,
346
+ "timing": 3.14,
347
+ "group": "gr0up",
348
+ "count": 1,
349
+ "version": {
350
+ "source": "3.2.0",
351
+ "tagging": 1
352
+ },
353
+ "source": {
354
+ "type": "web",
355
+ "id": "https://localhost:80",
356
+ "previous_id": "http://remotehost:9001"
357
+ }
358
+ },
359
+ "mapping": {
360
+ "name": "checkout",
361
+ "data": {
362
+ "map": {
363
+ "value": "data.total",
364
+ "order_id": "data.id",
365
+ "currency": {
366
+ "key": "data.currency",
367
+ "value": "EUR"
368
+ },
369
+ "line_items": {
370
+ "loop": [
371
+ "nested",
372
+ {
373
+ "condition": {
374
+ "$code": "e=>{var n;return\"number\"==typeof(null==(n=null==e?void 0:e.data)?void 0:n.price)}"
375
+ },
376
+ "map": {
377
+ "product_id": "data.id",
378
+ "product_name": "data.color",
379
+ "product_price": "data.price",
380
+ "product_quantity": {
381
+ "value": 1
382
+ }
383
+ }
384
+ }
385
+ ]
386
+ }
387
+ }
388
+ }
389
+ },
390
+ "out": [
391
+ "window.pintrk",
392
+ "track",
393
+ "checkout",
394
+ {
395
+ "value": 555,
396
+ "order_id": "0rd3r1d",
397
+ "currency": "EUR",
398
+ "line_items": [
399
+ {
400
+ "product_id": "ers",
401
+ "product_name": "black",
402
+ "product_price": 420,
403
+ "product_quantity": 1
404
+ },
405
+ {
406
+ "product_id": "cc",
407
+ "product_price": 42,
408
+ "product_quantity": 1
409
+ }
410
+ ],
411
+ "event_id": "ev-1700000106"
412
+ }
413
+ ]
414
+ },
415
+ "pageViewRename": {
416
+ "in": {
417
+ "name": "page view",
418
+ "data": {
419
+ "domain": "www.example.com",
420
+ "title": "walkerOS documentation",
421
+ "referrer": "https://www.walkeros.io/",
422
+ "search": "?foo=bar",
423
+ "hash": "#hash",
424
+ "id": "/docs/"
425
+ },
426
+ "context": {
427
+ "dev": [
428
+ "test",
429
+ 1
430
+ ]
431
+ },
432
+ "globals": {
433
+ "pagegroup": "docs"
434
+ },
435
+ "custom": {
436
+ "completely": "random"
437
+ },
438
+ "user": {
439
+ "id": "us3r",
440
+ "device": "c00k13",
441
+ "session": "s3ss10n"
442
+ },
443
+ "nested": [
444
+ {
445
+ "entity": "child",
446
+ "data": {
447
+ "is": "subordinated"
448
+ },
449
+ "nested": [],
450
+ "context": {
451
+ "element": [
452
+ "child",
453
+ 0
454
+ ]
455
+ }
456
+ }
457
+ ],
458
+ "consent": {
459
+ "functional": true
460
+ },
461
+ "id": "ev-1700000102",
462
+ "trigger": "load",
463
+ "entity": "page",
464
+ "action": "view",
465
+ "timestamp": 1700000102,
466
+ "timing": 3.14,
467
+ "group": "gr0up",
468
+ "count": 1,
469
+ "version": {
470
+ "source": "3.2.0",
471
+ "tagging": 1
472
+ },
473
+ "source": {
474
+ "type": "web",
475
+ "id": "https://localhost:80",
476
+ "previous_id": "http://remotehost:9001"
477
+ }
478
+ },
479
+ "mapping": {
480
+ "name": "pagevisit"
481
+ },
482
+ "out": [
483
+ "window.pintrk",
484
+ "track",
485
+ "pagevisit",
486
+ {
487
+ "event_id": "ev-1700000102"
488
+ }
489
+ ]
490
+ },
491
+ "productAddToCart": {
492
+ "in": {
493
+ "name": "product add",
494
+ "data": {
495
+ "id": "ers",
496
+ "name": "Everyday Ruck Snack",
497
+ "color": "black",
498
+ "size": "l",
499
+ "price": 420
500
+ },
501
+ "context": {
502
+ "shopping": [
503
+ "intent",
504
+ 0
505
+ ]
506
+ },
507
+ "globals": {
508
+ "pagegroup": "shop"
509
+ },
510
+ "custom": {
511
+ "completely": "random"
512
+ },
513
+ "user": {
514
+ "id": "us3r",
515
+ "device": "c00k13",
516
+ "session": "s3ss10n"
517
+ },
518
+ "nested": [],
519
+ "consent": {
520
+ "functional": true
521
+ },
522
+ "id": "ev-1700000105",
523
+ "trigger": "click",
524
+ "entity": "product",
525
+ "action": "add",
526
+ "timestamp": 1700000105,
527
+ "timing": 3.14,
528
+ "group": "gr0up",
529
+ "count": 1,
530
+ "version": {
531
+ "source": "3.2.0",
532
+ "tagging": 1
533
+ },
534
+ "source": {
535
+ "type": "web",
536
+ "id": "https://localhost:80",
537
+ "previous_id": "http://remotehost:9001"
538
+ }
539
+ },
540
+ "mapping": {
541
+ "name": "addtocart",
542
+ "data": {
543
+ "map": {
544
+ "value": "data.price",
545
+ "order_quantity": {
546
+ "value": 1
547
+ },
548
+ "currency": {
549
+ "key": "data.currency",
550
+ "value": "EUR"
551
+ },
552
+ "line_items": {
553
+ "set": [
554
+ {
555
+ "map": {
556
+ "product_id": "data.id",
557
+ "product_name": "data.color",
558
+ "product_price": "data.price",
559
+ "product_quantity": {
560
+ "value": 1
561
+ }
562
+ }
563
+ }
564
+ ]
565
+ }
566
+ }
567
+ }
568
+ },
569
+ "out": [
570
+ "window.pintrk",
571
+ "track",
572
+ "addtocart",
573
+ {
574
+ "value": 420,
575
+ "order_quantity": 1,
576
+ "currency": "EUR",
577
+ "line_items": [
578
+ {
579
+ "product_id": "ers",
580
+ "product_name": "black",
581
+ "product_price": 420,
582
+ "product_quantity": 1
583
+ }
584
+ ],
585
+ "event_id": "ev-1700000105"
586
+ }
587
+ ]
588
+ },
589
+ "productViewContent": {
590
+ "in": {
591
+ "name": "product view",
592
+ "data": {
593
+ "id": "ers",
594
+ "name": "Everyday Ruck Snack",
595
+ "color": "black",
596
+ "size": "l",
597
+ "price": 420
598
+ },
599
+ "context": {
600
+ "shopping": [
601
+ "detail",
602
+ 0
603
+ ]
604
+ },
605
+ "globals": {
606
+ "pagegroup": "shop"
607
+ },
608
+ "custom": {
609
+ "completely": "random"
610
+ },
611
+ "user": {
612
+ "id": "us3r",
613
+ "device": "c00k13",
614
+ "session": "s3ss10n"
615
+ },
616
+ "nested": [],
617
+ "consent": {
618
+ "functional": true
619
+ },
620
+ "id": "ev-1700000104",
621
+ "trigger": "load",
622
+ "entity": "product",
623
+ "action": "view",
624
+ "timestamp": 1700000104,
625
+ "timing": 3.14,
626
+ "group": "gr0up",
627
+ "count": 1,
628
+ "version": {
629
+ "source": "3.2.0",
630
+ "tagging": 1
631
+ },
632
+ "source": {
633
+ "type": "web",
634
+ "id": "https://localhost:80",
635
+ "previous_id": "http://remotehost:9001"
636
+ }
637
+ },
638
+ "mapping": {
639
+ "name": "viewcontent",
640
+ "data": {
641
+ "map": {
642
+ "value": "data.price",
643
+ "currency": {
644
+ "key": "data.currency",
645
+ "value": "EUR"
646
+ },
647
+ "product_id": "data.id",
648
+ "product_name": "data.color"
649
+ }
650
+ }
651
+ },
652
+ "out": [
653
+ "window.pintrk",
654
+ "track",
655
+ "viewcontent",
656
+ {
657
+ "value": 420,
658
+ "currency": "EUR",
659
+ "product_id": "ers",
660
+ "product_name": "black",
661
+ "event_id": "ev-1700000104"
662
+ }
663
+ ]
664
+ },
665
+ "siteSearch": {
666
+ "in": {
667
+ "name": "site search",
668
+ "data": {
669
+ "query": "leather jacket"
670
+ },
671
+ "context": {
672
+ "dev": [
673
+ "test",
674
+ 1
675
+ ]
676
+ },
677
+ "globals": {
678
+ "lang": "elb"
679
+ },
680
+ "custom": {
681
+ "completely": "random"
682
+ },
683
+ "user": {
684
+ "id": "us3r",
685
+ "device": "c00k13",
686
+ "session": "s3ss10n"
687
+ },
688
+ "nested": [
689
+ {
690
+ "entity": "child",
691
+ "data": {
692
+ "is": "subordinated"
693
+ },
694
+ "nested": [],
695
+ "context": {
696
+ "element": [
697
+ "child",
698
+ 0
699
+ ]
700
+ }
701
+ }
702
+ ],
703
+ "consent": {
704
+ "functional": true
705
+ },
706
+ "id": "ev-1700000103",
707
+ "trigger": "test",
708
+ "entity": "site",
709
+ "action": "search",
710
+ "timestamp": 1700000103,
711
+ "timing": 3.14,
712
+ "group": "gr0up",
713
+ "count": 1,
714
+ "version": {
715
+ "source": "3.2.0",
716
+ "tagging": 1
717
+ },
718
+ "source": {
719
+ "type": "web",
720
+ "id": "https://localhost:80",
721
+ "previous_id": "http://remotehost:9001"
722
+ }
723
+ },
724
+ "mapping": {
725
+ "name": "search",
726
+ "data": {
727
+ "map": {
728
+ "search_query": "data.query"
729
+ }
730
+ }
731
+ },
732
+ "out": [
733
+ "window.pintrk",
734
+ "track",
735
+ "search",
736
+ {
737
+ "search_query": "leather jacket",
738
+ "event_id": "ev-1700000103"
739
+ }
740
+ ]
741
+ },
742
+ "userLoginLead": {
743
+ "in": {
744
+ "name": "user login",
745
+ "data": {
746
+ "id": "usr_123",
747
+ "email": "jane@example.com"
748
+ },
749
+ "context": {
750
+ "dev": [
751
+ "test",
752
+ 1
753
+ ]
754
+ },
755
+ "globals": {
756
+ "lang": "elb"
757
+ },
758
+ "custom": {
759
+ "completely": "random"
760
+ },
761
+ "user": {
762
+ "id": "us3r",
763
+ "device": "c00k13",
764
+ "session": "s3ss10n"
765
+ },
766
+ "nested": [
767
+ {
768
+ "entity": "child",
769
+ "data": {
770
+ "is": "subordinated"
771
+ },
772
+ "nested": [],
773
+ "context": {
774
+ "element": [
775
+ "child",
776
+ 0
777
+ ]
778
+ }
779
+ }
780
+ ],
781
+ "consent": {
782
+ "functional": true
783
+ },
784
+ "id": "ev-1700000107",
785
+ "trigger": "test",
786
+ "entity": "user",
787
+ "action": "login",
788
+ "timestamp": 1700000107,
789
+ "timing": 3.14,
790
+ "group": "gr0up",
791
+ "count": 1,
792
+ "version": {
793
+ "source": "3.2.0",
794
+ "tagging": 1
795
+ },
796
+ "source": {
797
+ "type": "web",
798
+ "id": "https://localhost:80",
799
+ "previous_id": "http://remotehost:9001"
800
+ }
801
+ },
802
+ "mapping": {
803
+ "name": "lead",
804
+ "settings": {
805
+ "identify": {
806
+ "map": {
807
+ "em": "data.email",
808
+ "external_id": "data.id"
809
+ }
810
+ }
811
+ },
812
+ "data": {
813
+ "map": {
814
+ "lead_type": {
815
+ "value": "login"
816
+ }
817
+ }
818
+ }
819
+ },
820
+ "out": [
821
+ [
822
+ "window.pintrk",
823
+ "set",
824
+ {
825
+ "em": "jane@example.com",
826
+ "external_id": "usr_123"
827
+ }
828
+ ],
829
+ [
830
+ "window.pintrk",
831
+ "track",
832
+ "lead",
833
+ {
834
+ "lead_type": "login",
835
+ "event_id": "ev-1700000107"
836
+ }
837
+ ]
838
+ ]
839
+ },
840
+ "wildcardIgnored": {
841
+ "in": {
842
+ "name": "debug noise",
843
+ "data": {
844
+ "string": "foo",
845
+ "number": 1,
846
+ "boolean": true,
847
+ "array": [
848
+ 0,
849
+ "text",
850
+ false
851
+ ]
852
+ },
853
+ "context": {
854
+ "dev": [
855
+ "test",
856
+ 1
857
+ ]
858
+ },
859
+ "globals": {
860
+ "lang": "elb"
861
+ },
862
+ "custom": {
863
+ "completely": "random"
864
+ },
865
+ "user": {
866
+ "id": "us3r",
867
+ "device": "c00k13",
868
+ "session": "s3ss10n"
869
+ },
870
+ "nested": [
871
+ {
872
+ "entity": "child",
873
+ "data": {
874
+ "is": "subordinated"
875
+ },
876
+ "nested": [],
877
+ "context": {
878
+ "element": [
879
+ "child",
880
+ 0
881
+ ]
882
+ }
883
+ }
884
+ ],
885
+ "consent": {
886
+ "functional": true
887
+ },
888
+ "id": "1700000101-gr0up-1",
889
+ "trigger": "test",
890
+ "entity": "debug",
891
+ "action": "noise",
892
+ "timestamp": 1700000101,
893
+ "timing": 3.14,
894
+ "group": "gr0up",
895
+ "count": 1,
896
+ "version": {
897
+ "source": "3.2.0",
898
+ "tagging": 1
899
+ },
900
+ "source": {
901
+ "type": "web",
902
+ "id": "https://localhost:80",
903
+ "previous_id": "http://remotehost:9001"
904
+ }
905
+ },
906
+ "mapping": {
907
+ "ignore": true
908
+ },
909
+ "out": []
910
+ }
911
+ }
912
+ }
913
+ }