@metarouter/ajs-starter-kit 1.0.153 → 1.0.155
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/adobe-bdia/kit.etag.json +1 -1
- package/.dist/adobe-bdia/metadata.json +5 -1
- package/.dist/adobe-bdia/playbook.etag.json +1 -1
- package/.dist/adobe-bdia/playbook.json +1 -1
- package/.dist/attentive/kit.etag.json +1 -1
- package/.dist/attentive/metadata.json +4 -0
- package/.dist/attentive/playbook.etag.json +1 -1
- package/.dist/attentive/playbook.json +101 -303
- package/.dist/connection-schemas.json +4 -0
- package/.dist/engage-front/kit.etag.json +1 -1
- package/.dist/engage-front/metadata.json +4 -0
- package/.dist/engage-front/playbook.etag.json +1 -1
- package/.dist/engage-front/playbook.json +153 -22
- package/.dist/facebook-pixel/kit.etag.json +1 -1
- package/.dist/facebook-pixel/metadata.json +4 -0
- package/.dist/facebook-pixel/playbook.etag.json +1 -1
- package/.dist/facebook-pixel/playbook.json +18 -1
- package/.dist/google-ads/connection.etag.json +1 -1
- package/.dist/google-ads/connection.json +1 -1
- package/.dist/google-ads/kit.etag.json +1 -1
- package/.dist/google-ads/metadata.json +4 -0
- package/.dist/google-ads/playbook.etag.json +1 -1
- package/.dist/google-ads/playbook.json +47 -10
- package/.dist/google-cm360/kit.etag.json +1 -1
- package/.dist/google-cm360/metadata.json +4 -0
- package/.dist/google-cm360/playbook.etag.json +1 -1
- package/.dist/google-cm360/playbook.json +17 -22
- package/.dist/hightouch/connection.etag.json +1 -0
- package/.dist/hightouch/connection.json +87 -0
- package/.dist/hightouch/kit.etag.json +1 -0
- package/.dist/hightouch/metadata.json +21 -0
- package/.dist/hightouch/playbook.etag.json +1 -0
- package/.dist/hightouch/playbook.json +451 -0
- package/.dist/pipeline-router/connection.etag.json +1 -0
- package/.dist/pipeline-router/connection.json +3 -0
- package/.dist/pipeline-router/kit.etag.json +1 -0
- package/.dist/pipeline-router/metadata.json +21 -0
- package/.dist/pipeline-router/playbook.etag.json +1 -0
- package/.dist/pipeline-router/playbook.json +30 -0
- package/.dist/reddit-ads/kit.etag.json +1 -1
- package/.dist/reddit-ads/metadata.json +5 -1
- package/.dist/reddit-ads/playbook.etag.json +1 -1
- package/.dist/reddit-ads/playbook.json +1 -1
- package/.dist/snapchat-capi/kit.etag.json +1 -1
- package/.dist/snapchat-capi/metadata.json +4 -0
- package/.dist/snapchat-capi/playbook.etag.json +1 -1
- package/.dist/snapchat-capi/playbook.json +21 -1
- package/.dist/teads/kit.etag.json +1 -1
- package/.dist/teads/metadata.json +5 -1
- package/.dist/teads/playbook.etag.json +1 -1
- package/.dist/teads/playbook.json +1 -1
- package/README.md +25 -24
- package/index.js +21 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.2.0",
|
|
3
3
|
"default": {
|
|
4
4
|
"filters": [
|
|
5
5
|
{
|
|
@@ -12,6 +12,36 @@
|
|
|
12
12
|
}
|
|
13
13
|
]
|
|
14
14
|
},
|
|
15
|
+
"global": {
|
|
16
|
+
"filters": [
|
|
17
|
+
{
|
|
18
|
+
"byConditions": {
|
|
19
|
+
"action": "allow",
|
|
20
|
+
"when": {
|
|
21
|
+
"matchesAny": {
|
|
22
|
+
"conditions": [
|
|
23
|
+
{
|
|
24
|
+
"inputPathExists": {
|
|
25
|
+
"inputPath": "traits.email"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"inputPathExists": {
|
|
30
|
+
"inputPath": "traits.phone"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"inputPathExists": {
|
|
35
|
+
"inputPath": "userId"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
},
|
|
15
45
|
"eventSpecific": {
|
|
16
46
|
"identify": {
|
|
17
47
|
"mappings": [
|
|
@@ -34,7 +64,7 @@
|
|
|
34
64
|
{
|
|
35
65
|
"expression": {
|
|
36
66
|
"lang": "lua",
|
|
37
|
-
"body": "return {\n
|
|
67
|
+
"body": "if input.traits and input.traits.username then\n return {\n { name = \"username\", value = input.traits.username }\n }\nend"
|
|
38
68
|
}
|
|
39
69
|
}
|
|
40
70
|
]
|
|
@@ -86,7 +116,7 @@
|
|
|
86
116
|
{
|
|
87
117
|
"expression": {
|
|
88
118
|
"lang": "lua",
|
|
89
|
-
"body": "return {\n
|
|
119
|
+
"body": "if input.traits and input.traits.username then\n return {\n { name = \"username\", value = input.traits.username }\n }\nend"
|
|
90
120
|
}
|
|
91
121
|
}
|
|
92
122
|
]
|
|
@@ -142,7 +172,7 @@
|
|
|
142
172
|
{
|
|
143
173
|
"expression": {
|
|
144
174
|
"lang": "lua",
|
|
145
|
-
"body": "return {\n { name = \"username\", value = input.traits.username }\n}"
|
|
175
|
+
"body": "if input.traits and input.traits.username then\n return {\n { name = \"username\", value = input.traits.username }\n }\nend"
|
|
146
176
|
}
|
|
147
177
|
}
|
|
148
178
|
]
|
|
@@ -194,7 +224,7 @@
|
|
|
194
224
|
{
|
|
195
225
|
"expression": {
|
|
196
226
|
"lang": "lua",
|
|
197
|
-
"body": "return {\n { name = \"username\", value = input.traits.username }\n}"
|
|
227
|
+
"body": "if input.traits and input.traits.username then\n return {\n { name = \"username\", value = input.traits.username }\n }\nend"
|
|
198
228
|
}
|
|
199
229
|
}
|
|
200
230
|
]
|
|
@@ -241,7 +271,7 @@
|
|
|
241
271
|
},
|
|
242
272
|
{
|
|
243
273
|
"inputKey": "messageId",
|
|
244
|
-
"outputKey": "
|
|
274
|
+
"outputKey": "externalEventId"
|
|
245
275
|
},
|
|
246
276
|
{
|
|
247
277
|
"inputKey": "input",
|
|
@@ -262,7 +292,7 @@
|
|
|
262
292
|
{
|
|
263
293
|
"expression": {
|
|
264
294
|
"lang": "lua",
|
|
265
|
-
"body": "return {\n { name = \"username\", value = input.traits.username }\n}"
|
|
295
|
+
"body": "if input.traits and input.traits.username then\n return {\n { name = \"username\", value = input.traits.username }\n }\nend"
|
|
266
296
|
}
|
|
267
297
|
}
|
|
268
298
|
]
|
|
@@ -289,19 +319,7 @@
|
|
|
289
319
|
},
|
|
290
320
|
{
|
|
291
321
|
"inputKey": "messageId",
|
|
292
|
-
"outputKey": "
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
"inputKey": "input",
|
|
296
|
-
"outputKey": "properties.products",
|
|
297
|
-
"transforms": [
|
|
298
|
-
{
|
|
299
|
-
"expression": {
|
|
300
|
-
"lang": "lua",
|
|
301
|
-
"body": "return MAP(input.properties.products, function(p)\n return {\n product_id = p.product_id,\n sku = p.sku,\n category = p.category,\n name = p.name,\n brand = p.brand,\n variant = p.variant,\n price = p.price,\n quantity = p.quantity or 1,\n coupon = p.coupon,\n position = p.position,\n url = p.url,\n image_url = p.image_url\n }\nend)"
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
]
|
|
322
|
+
"outputKey": "externalEventId"
|
|
305
323
|
},
|
|
306
324
|
{
|
|
307
325
|
"inputKey": "properties.affiliation",
|
|
@@ -320,6 +338,10 @@
|
|
|
320
338
|
}
|
|
321
339
|
]
|
|
322
340
|
},
|
|
341
|
+
{
|
|
342
|
+
"inputKey": "properties.products",
|
|
343
|
+
"outputKey": "properties.products"
|
|
344
|
+
},
|
|
323
345
|
{
|
|
324
346
|
"inputKey": "properties.discount",
|
|
325
347
|
"outputKey": "properties.discount"
|
|
@@ -363,7 +385,7 @@
|
|
|
363
385
|
{
|
|
364
386
|
"expression": {
|
|
365
387
|
"lang": "lua",
|
|
366
|
-
"body": "return {\n { name = \"username\", value = input.traits.username }\n}"
|
|
388
|
+
"body": "if input.traits and input.traits.username then\n return {\n { name = \"username\", value = input.traits.username }\n }\nend"
|
|
367
389
|
}
|
|
368
390
|
}
|
|
369
391
|
]
|
|
@@ -390,27 +412,11 @@
|
|
|
390
412
|
},
|
|
391
413
|
{
|
|
392
414
|
"inputKey": "messageId",
|
|
393
|
-
"outputKey": "
|
|
394
|
-
},
|
|
395
|
-
{
|
|
396
|
-
"inputKey": "properties.category",
|
|
397
|
-
"outputKey": "properties.category"
|
|
398
|
-
},
|
|
399
|
-
{
|
|
400
|
-
"inputKey": "properties.list_id",
|
|
401
|
-
"outputKey": "properties.list_id"
|
|
415
|
+
"outputKey": "externalEventId"
|
|
402
416
|
},
|
|
403
417
|
{
|
|
404
|
-
"inputKey": "
|
|
405
|
-
"outputKey": "properties
|
|
406
|
-
"transforms": [
|
|
407
|
-
{
|
|
408
|
-
"expression": {
|
|
409
|
-
"lang": "lua",
|
|
410
|
-
"body": "return MAP(input.properties.products, function(p)\n return{\n product_id = p.product_id,\n sku = p.sku,\n category = p.category,\n name = p.name,\n brand = p.brand,\n variant = p.variant,\n price = p.price,\n quantity = p.quantity or 1,\n coupon = p.coupon,\n position = p.position,\n url = p.url,\n image_url = p.image_url\n }\nend)"
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
]
|
|
418
|
+
"inputKey": "properties",
|
|
419
|
+
"outputKey": "properties"
|
|
414
420
|
},
|
|
415
421
|
{
|
|
416
422
|
"inputKey": "input",
|
|
@@ -431,7 +437,7 @@
|
|
|
431
437
|
{
|
|
432
438
|
"expression": {
|
|
433
439
|
"lang": "lua",
|
|
434
|
-
"body": "return {\n { name = \"username\", value = input.traits.username }\n}"
|
|
440
|
+
"body": "if input.traits and input.traits.username then\n return {\n { name = \"username\", value = input.traits.username }\n }\nend"
|
|
435
441
|
}
|
|
436
442
|
}
|
|
437
443
|
]
|
|
@@ -458,7 +464,7 @@
|
|
|
458
464
|
},
|
|
459
465
|
{
|
|
460
466
|
"inputKey": "messageId",
|
|
461
|
-
"outputKey": "
|
|
467
|
+
"outputKey": "externalEventId"
|
|
462
468
|
},
|
|
463
469
|
{
|
|
464
470
|
"inputKey": "properties.cart_id",
|
|
@@ -474,16 +480,8 @@
|
|
|
474
480
|
]
|
|
475
481
|
},
|
|
476
482
|
{
|
|
477
|
-
"inputKey": "
|
|
478
|
-
"outputKey": "properties.products"
|
|
479
|
-
"transforms": [
|
|
480
|
-
{
|
|
481
|
-
"expression": {
|
|
482
|
-
"lang": "lua",
|
|
483
|
-
"body": "return MAP(input.properties.products, function(p)\n return {\n product_id = p.product_id,\n sku = p.sku,\n category = p.category,\n name = p.name,\n brand = p.brand,\n variant = p.variant,\n price = p.price,\n quantity = p.quantity or 1,\n coupon = p.coupon,\n position = p.position,\n url = p.url,\n image_url = p.image_url\n }\n end)"
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
]
|
|
483
|
+
"inputKey": "properties.products",
|
|
484
|
+
"outputKey": "properties.products"
|
|
487
485
|
},
|
|
488
486
|
{
|
|
489
487
|
"inputKey": "input",
|
|
@@ -504,7 +502,7 @@
|
|
|
504
502
|
{
|
|
505
503
|
"expression": {
|
|
506
504
|
"lang": "lua",
|
|
507
|
-
"body": "return {\n { name = \"username\", value = input.traits.username }\n}"
|
|
505
|
+
"body": "if input.traits and input.traits.username then\n return {\n { name = \"username\", value = input.traits.username }\n }\nend"
|
|
508
506
|
}
|
|
509
507
|
}
|
|
510
508
|
]
|
|
@@ -531,7 +529,7 @@
|
|
|
531
529
|
},
|
|
532
530
|
{
|
|
533
531
|
"inputKey": "messageId",
|
|
534
|
-
"outputKey": "
|
|
532
|
+
"outputKey": "externalEventId"
|
|
535
533
|
},
|
|
536
534
|
{
|
|
537
535
|
"inputKey": "properties.affiliation",
|
|
@@ -559,16 +557,8 @@
|
|
|
559
557
|
"outputKey": "properties.order_id"
|
|
560
558
|
},
|
|
561
559
|
{
|
|
562
|
-
"inputKey": "
|
|
563
|
-
"outputKey": "properties.products"
|
|
564
|
-
"transforms": [
|
|
565
|
-
{
|
|
566
|
-
"expression": {
|
|
567
|
-
"lang": "lua",
|
|
568
|
-
"body": "return MAP(input.properties.products, function(p)\n return {\n product_id = p.product_id,\n sku = p.sku,\n category = p.category,\n name = p.name,\n brand = p.brand,\n variant = p.variant,\n price = p.price,\n quantity = p.quantity or 1,\n coupon = p.coupon,\n position = p.position,\n url = p.url,\n image_url = p.image_url\n}\nend)"
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
]
|
|
560
|
+
"inputKey": "properties.products",
|
|
561
|
+
"outputKey": "properties.products"
|
|
572
562
|
},
|
|
573
563
|
{
|
|
574
564
|
"inputKey": "properties.revenue",
|
|
@@ -605,7 +595,7 @@
|
|
|
605
595
|
{
|
|
606
596
|
"expression": {
|
|
607
597
|
"lang": "lua",
|
|
608
|
-
"body": "return {\n { name = \"username\", value = input.traits.username }\n}"
|
|
598
|
+
"body": "if input.traits and input.traits.username then\n return {\n { name = \"username\", value = input.traits.username }\n }\nend"
|
|
609
599
|
}
|
|
610
600
|
}
|
|
611
601
|
]
|
|
@@ -630,10 +620,6 @@
|
|
|
630
620
|
"inputKey": "event",
|
|
631
621
|
"outputKey": "type"
|
|
632
622
|
},
|
|
633
|
-
{
|
|
634
|
-
"inputKey": "messageId",
|
|
635
|
-
"outputKey": "properties.messageId"
|
|
636
|
-
},
|
|
637
623
|
{
|
|
638
624
|
"inputKey": "properties.affiliation",
|
|
639
625
|
"outputKey": "properties.affiliation"
|
|
@@ -664,16 +650,12 @@
|
|
|
664
650
|
"outputKey": "properties.order_id"
|
|
665
651
|
},
|
|
666
652
|
{
|
|
667
|
-
"inputKey": "
|
|
668
|
-
"outputKey": "
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
"lang": "lua"
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
]
|
|
653
|
+
"inputKey": "messageId",
|
|
654
|
+
"outputKey": "externalEventId"
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
"inputKey": "properties.products",
|
|
658
|
+
"outputKey": "properties.products"
|
|
677
659
|
},
|
|
678
660
|
{
|
|
679
661
|
"inputKey": "properties.revenue",
|
|
@@ -710,7 +692,7 @@
|
|
|
710
692
|
{
|
|
711
693
|
"expression": {
|
|
712
694
|
"lang": "lua",
|
|
713
|
-
"body": "return {\n { name = \"username\", value = input.traits.username }\n}"
|
|
695
|
+
"body": "if input.traits and input.traits.username then\n return {\n { name = \"username\", value = input.traits.username }\n }\nend"
|
|
714
696
|
}
|
|
715
697
|
}
|
|
716
698
|
]
|
|
@@ -748,8 +730,12 @@
|
|
|
748
730
|
]
|
|
749
731
|
},
|
|
750
732
|
{
|
|
751
|
-
"inputKey": "
|
|
752
|
-
"outputKey": "
|
|
733
|
+
"inputKey": "messageId",
|
|
734
|
+
"outputKey": "externalEventId"
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
"inputKey": "properties",
|
|
738
|
+
"outputKey": "properties"
|
|
753
739
|
},
|
|
754
740
|
{
|
|
755
741
|
"inputKey": "input",
|
|
@@ -758,7 +744,7 @@
|
|
|
758
744
|
{
|
|
759
745
|
"expression": {
|
|
760
746
|
"lang": "lua",
|
|
761
|
-
"body": "return {\n
|
|
747
|
+
"body": "if input.traits and input.traits.username then\n return {\n { name = \"username\", value = input.traits.username }\n }\nend"
|
|
762
748
|
}
|
|
763
749
|
}
|
|
764
750
|
]
|
|
@@ -785,55 +771,11 @@
|
|
|
785
771
|
},
|
|
786
772
|
{
|
|
787
773
|
"inputKey": "messageId",
|
|
788
|
-
"outputKey": "
|
|
789
|
-
},
|
|
790
|
-
{
|
|
791
|
-
"inputKey": "properties.brand",
|
|
792
|
-
"outputKey": "properties.brand"
|
|
793
|
-
},
|
|
794
|
-
{
|
|
795
|
-
"inputKey": "properties.category",
|
|
796
|
-
"outputKey": "properties.category"
|
|
797
|
-
},
|
|
798
|
-
{
|
|
799
|
-
"inputKey": "properties.coupon",
|
|
800
|
-
"outputKey": "properties.coupon"
|
|
801
|
-
},
|
|
802
|
-
{
|
|
803
|
-
"inputKey": "properties.image_url",
|
|
804
|
-
"outputKey": "properties.image_url"
|
|
805
|
-
},
|
|
806
|
-
{
|
|
807
|
-
"inputKey": "properties.name",
|
|
808
|
-
"outputKey": "properties.name"
|
|
809
|
-
},
|
|
810
|
-
{
|
|
811
|
-
"inputKey": "properties.position",
|
|
812
|
-
"outputKey": "properties.position"
|
|
774
|
+
"outputKey": "externalEventId"
|
|
813
775
|
},
|
|
814
776
|
{
|
|
815
|
-
"inputKey": "properties
|
|
816
|
-
"outputKey": "properties
|
|
817
|
-
},
|
|
818
|
-
{
|
|
819
|
-
"inputKey": "properties.product_id",
|
|
820
|
-
"outputKey": "properties.product_id"
|
|
821
|
-
},
|
|
822
|
-
{
|
|
823
|
-
"inputKey": "properties.quantity",
|
|
824
|
-
"outputKey": "properties.quantity"
|
|
825
|
-
},
|
|
826
|
-
{
|
|
827
|
-
"inputKey": "properties.sku",
|
|
828
|
-
"outputKey": "properties.sku"
|
|
829
|
-
},
|
|
830
|
-
{
|
|
831
|
-
"inputKey": "properties.url",
|
|
832
|
-
"outputKey": "properties.url"
|
|
833
|
-
},
|
|
834
|
-
{
|
|
835
|
-
"inputKey": "properties.variant",
|
|
836
|
-
"outputKey": "properties.variant"
|
|
777
|
+
"inputKey": "properties",
|
|
778
|
+
"outputKey": "properties"
|
|
837
779
|
},
|
|
838
780
|
{
|
|
839
781
|
"inputKey": "input",
|
|
@@ -854,7 +796,7 @@
|
|
|
854
796
|
{
|
|
855
797
|
"expression": {
|
|
856
798
|
"lang": "lua",
|
|
857
|
-
"body": "return {\n { name = \"username\", value = input.traits.username }\n}"
|
|
799
|
+
"body": "if input.traits and input.traits.username then\n return {\n { name = \"username\", value = input.traits.username }\n }\nend"
|
|
858
800
|
}
|
|
859
801
|
}
|
|
860
802
|
]
|
|
@@ -881,59 +823,11 @@
|
|
|
881
823
|
},
|
|
882
824
|
{
|
|
883
825
|
"inputKey": "messageId",
|
|
884
|
-
"outputKey": "
|
|
885
|
-
},
|
|
886
|
-
{
|
|
887
|
-
"inputKey": "properties.brand",
|
|
888
|
-
"outputKey": "properties.brand"
|
|
826
|
+
"outputKey": "externalEventId"
|
|
889
827
|
},
|
|
890
828
|
{
|
|
891
|
-
"inputKey": "properties
|
|
892
|
-
"outputKey": "properties
|
|
893
|
-
},
|
|
894
|
-
{
|
|
895
|
-
"inputKey": "properties.category",
|
|
896
|
-
"outputKey": "properties.category"
|
|
897
|
-
},
|
|
898
|
-
{
|
|
899
|
-
"inputKey": "properties.coupon",
|
|
900
|
-
"outputKey": "properties.coupon"
|
|
901
|
-
},
|
|
902
|
-
{
|
|
903
|
-
"inputKey": "properties.image_url",
|
|
904
|
-
"outputKey": "properties.image_url"
|
|
905
|
-
},
|
|
906
|
-
{
|
|
907
|
-
"inputKey": "properties.name",
|
|
908
|
-
"outputKey": "properties.name"
|
|
909
|
-
},
|
|
910
|
-
{
|
|
911
|
-
"inputKey": "properties.position",
|
|
912
|
-
"outputKey": "properties.position"
|
|
913
|
-
},
|
|
914
|
-
{
|
|
915
|
-
"inputKey": "properties.price",
|
|
916
|
-
"outputKey": "properties.price"
|
|
917
|
-
},
|
|
918
|
-
{
|
|
919
|
-
"inputKey": "properties.product_id",
|
|
920
|
-
"outputKey": "properties.product_id"
|
|
921
|
-
},
|
|
922
|
-
{
|
|
923
|
-
"inputKey": "properties.quantity",
|
|
924
|
-
"outputKey": "properties.quantity"
|
|
925
|
-
},
|
|
926
|
-
{
|
|
927
|
-
"inputKey": "properties.sku",
|
|
928
|
-
"outputKey": "properties.sku"
|
|
929
|
-
},
|
|
930
|
-
{
|
|
931
|
-
"inputKey": "properties.url",
|
|
932
|
-
"outputKey": "properties.url"
|
|
933
|
-
},
|
|
934
|
-
{
|
|
935
|
-
"inputKey": "properties.variant",
|
|
936
|
-
"outputKey": "properties.variant"
|
|
829
|
+
"inputKey": "properties",
|
|
830
|
+
"outputKey": "properties"
|
|
937
831
|
},
|
|
938
832
|
{
|
|
939
833
|
"inputKey": "input",
|
|
@@ -954,7 +848,7 @@
|
|
|
954
848
|
{
|
|
955
849
|
"expression": {
|
|
956
850
|
"lang": "lua",
|
|
957
|
-
"body": "return {\n { name = \"username\", value = input.traits.username }\n}"
|
|
851
|
+
"body": "if input.traits and input.traits.username then\n return {\n { name = \"username\", value = input.traits.username }\n }\nend"
|
|
958
852
|
}
|
|
959
853
|
}
|
|
960
854
|
]
|
|
@@ -981,15 +875,11 @@
|
|
|
981
875
|
},
|
|
982
876
|
{
|
|
983
877
|
"inputKey": "messageId",
|
|
984
|
-
"outputKey": "
|
|
985
|
-
},
|
|
986
|
-
{
|
|
987
|
-
"inputKey": "properties.checkout_id",
|
|
988
|
-
"outputKey": "properties.checkout_id"
|
|
878
|
+
"outputKey": "externalEventId"
|
|
989
879
|
},
|
|
990
880
|
{
|
|
991
|
-
"inputKey": "properties
|
|
992
|
-
"outputKey": "properties
|
|
881
|
+
"inputKey": "properties",
|
|
882
|
+
"outputKey": "properties"
|
|
993
883
|
},
|
|
994
884
|
{
|
|
995
885
|
"inputKey": "input",
|
|
@@ -1010,7 +900,7 @@
|
|
|
1010
900
|
{
|
|
1011
901
|
"expression": {
|
|
1012
902
|
"lang": "lua",
|
|
1013
|
-
"body": "return {\n { name = \"username\", value = input.traits.username }\n}"
|
|
903
|
+
"body": "if input.traits and input.traits.username then\n return {\n { name = \"username\", value = input.traits.username }\n }\nend"
|
|
1014
904
|
}
|
|
1015
905
|
}
|
|
1016
906
|
]
|
|
@@ -1037,23 +927,11 @@
|
|
|
1037
927
|
},
|
|
1038
928
|
{
|
|
1039
929
|
"inputKey": "messageId",
|
|
1040
|
-
"outputKey": "
|
|
930
|
+
"outputKey": "externalEventId"
|
|
1041
931
|
},
|
|
1042
932
|
{
|
|
1043
|
-
"inputKey": "properties
|
|
1044
|
-
"outputKey": "properties
|
|
1045
|
-
},
|
|
1046
|
-
{
|
|
1047
|
-
"inputKey": "properties.name",
|
|
1048
|
-
"outputKey": "properties.name"
|
|
1049
|
-
},
|
|
1050
|
-
{
|
|
1051
|
-
"inputKey": "properties.position",
|
|
1052
|
-
"outputKey": "properties.position"
|
|
1053
|
-
},
|
|
1054
|
-
{
|
|
1055
|
-
"inputKey": "properties.promotion_id",
|
|
1056
|
-
"outputKey": "properties.promotion_id"
|
|
933
|
+
"inputKey": "properties",
|
|
934
|
+
"outputKey": "properties"
|
|
1057
935
|
},
|
|
1058
936
|
{
|
|
1059
937
|
"inputKey": "input",
|
|
@@ -1074,7 +952,7 @@
|
|
|
1074
952
|
{
|
|
1075
953
|
"expression": {
|
|
1076
954
|
"lang": "lua",
|
|
1077
|
-
"body": "return {\n { name = \"username\", value = input.traits.username }\n}"
|
|
955
|
+
"body": "if input.traits and input.traits.username then\n return {\n { name = \"username\", value = input.traits.username }\n }\nend"
|
|
1078
956
|
}
|
|
1079
957
|
}
|
|
1080
958
|
]
|
|
@@ -1101,23 +979,11 @@
|
|
|
1101
979
|
},
|
|
1102
980
|
{
|
|
1103
981
|
"inputKey": "messageId",
|
|
1104
|
-
"outputKey": "
|
|
1105
|
-
},
|
|
1106
|
-
{
|
|
1107
|
-
"inputKey": "properties.creative",
|
|
1108
|
-
"outputKey": "properties.creative"
|
|
1109
|
-
},
|
|
1110
|
-
{
|
|
1111
|
-
"inputKey": "properties.name",
|
|
1112
|
-
"outputKey": "properties.name"
|
|
1113
|
-
},
|
|
1114
|
-
{
|
|
1115
|
-
"inputKey": "properties.position",
|
|
1116
|
-
"outputKey": "properties.position"
|
|
982
|
+
"outputKey": "externalEventId"
|
|
1117
983
|
},
|
|
1118
984
|
{
|
|
1119
|
-
"inputKey": "properties
|
|
1120
|
-
"outputKey": "properties
|
|
985
|
+
"inputKey": "properties",
|
|
986
|
+
"outputKey": "properties"
|
|
1121
987
|
},
|
|
1122
988
|
{
|
|
1123
989
|
"inputKey": "input",
|
|
@@ -1138,7 +1004,7 @@
|
|
|
1138
1004
|
{
|
|
1139
1005
|
"expression": {
|
|
1140
1006
|
"lang": "lua",
|
|
1141
|
-
"body": "return {\n { name = \"username\", value = input.traits.username }\n}"
|
|
1007
|
+
"body": "if input.traits and input.traits.username then\n return {\n { name = \"username\", value = input.traits.username }\n }\nend"
|
|
1142
1008
|
}
|
|
1143
1009
|
}
|
|
1144
1010
|
]
|
|
@@ -1165,19 +1031,11 @@
|
|
|
1165
1031
|
},
|
|
1166
1032
|
{
|
|
1167
1033
|
"inputKey": "messageId",
|
|
1168
|
-
"outputKey": "
|
|
1034
|
+
"outputKey": "externalEventId"
|
|
1169
1035
|
},
|
|
1170
1036
|
{
|
|
1171
|
-
"inputKey": "properties
|
|
1172
|
-
"outputKey": "properties
|
|
1173
|
-
},
|
|
1174
|
-
{
|
|
1175
|
-
"inputKey": "properties.cart_id",
|
|
1176
|
-
"outputKey": "properties.cart_id"
|
|
1177
|
-
},
|
|
1178
|
-
{
|
|
1179
|
-
"inputKey": "properties.coupon_id",
|
|
1180
|
-
"outputKey": "properties.coupon_id"
|
|
1037
|
+
"inputKey": "properties",
|
|
1038
|
+
"outputKey": "properties"
|
|
1181
1039
|
},
|
|
1182
1040
|
{
|
|
1183
1041
|
"inputKey": "input",
|
|
@@ -1198,7 +1056,7 @@
|
|
|
1198
1056
|
{
|
|
1199
1057
|
"expression": {
|
|
1200
1058
|
"lang": "lua",
|
|
1201
|
-
"body": "return {\n { name = \"username\", value = input.traits.username }\n}"
|
|
1059
|
+
"body": "if input.traits and input.traits.username then\n return {\n { name = \"username\", value = input.traits.username }\n }\nend"
|
|
1202
1060
|
}
|
|
1203
1061
|
}
|
|
1204
1062
|
]
|
|
@@ -1225,63 +1083,11 @@
|
|
|
1225
1083
|
},
|
|
1226
1084
|
{
|
|
1227
1085
|
"inputKey": "messageId",
|
|
1228
|
-
"outputKey": "
|
|
1229
|
-
},
|
|
1230
|
-
{
|
|
1231
|
-
"inputKey": "properties.wishlist_id",
|
|
1232
|
-
"outputKey": "properties.wishlist_id"
|
|
1233
|
-
},
|
|
1234
|
-
{
|
|
1235
|
-
"inputKey": "properties.wishlist_name",
|
|
1236
|
-
"outputKey": "properties.wishlist_name"
|
|
1237
|
-
},
|
|
1238
|
-
{
|
|
1239
|
-
"inputKey": "properties.product_id",
|
|
1240
|
-
"outputKey": "properties.product_id"
|
|
1241
|
-
},
|
|
1242
|
-
{
|
|
1243
|
-
"inputKey": "properties.sku",
|
|
1244
|
-
"outputKey": "properties.sku"
|
|
1245
|
-
},
|
|
1246
|
-
{
|
|
1247
|
-
"inputKey": "properties.category",
|
|
1248
|
-
"outputKey": "properties.category"
|
|
1249
|
-
},
|
|
1250
|
-
{
|
|
1251
|
-
"inputKey": "properties.name",
|
|
1252
|
-
"outputKey": "properties.name"
|
|
1253
|
-
},
|
|
1254
|
-
{
|
|
1255
|
-
"inputKey": "properties.brand",
|
|
1256
|
-
"outputKey": "properties.brand"
|
|
1257
|
-
},
|
|
1258
|
-
{
|
|
1259
|
-
"inputKey": "properties.variant",
|
|
1260
|
-
"outputKey": "properties.variant"
|
|
1261
|
-
},
|
|
1262
|
-
{
|
|
1263
|
-
"inputKey": "properties.price",
|
|
1264
|
-
"outputKey": "properties.price"
|
|
1265
|
-
},
|
|
1266
|
-
{
|
|
1267
|
-
"inputKey": "properties.quantity",
|
|
1268
|
-
"outputKey": "properties.quantity"
|
|
1269
|
-
},
|
|
1270
|
-
{
|
|
1271
|
-
"inputKey": "properties.coupon",
|
|
1272
|
-
"outputKey": "properties.coupon"
|
|
1086
|
+
"outputKey": "externalEventId"
|
|
1273
1087
|
},
|
|
1274
1088
|
{
|
|
1275
|
-
"inputKey": "properties
|
|
1276
|
-
"outputKey": "properties
|
|
1277
|
-
},
|
|
1278
|
-
{
|
|
1279
|
-
"inputKey": "properties.url",
|
|
1280
|
-
"outputKey": "properties.url"
|
|
1281
|
-
},
|
|
1282
|
-
{
|
|
1283
|
-
"inputKey": "properties.image_url",
|
|
1284
|
-
"outputKey": "properties.image_url"
|
|
1089
|
+
"inputKey": "properties",
|
|
1090
|
+
"outputKey": "properties"
|
|
1285
1091
|
},
|
|
1286
1092
|
{
|
|
1287
1093
|
"inputKey": "input",
|
|
@@ -1302,7 +1108,7 @@
|
|
|
1302
1108
|
{
|
|
1303
1109
|
"expression": {
|
|
1304
1110
|
"lang": "lua",
|
|
1305
|
-
"body": "return {\n { name = \"username\", value = input.traits.username }\n}"
|
|
1111
|
+
"body": "if input.traits and input.traits.username then\n return {\n { name = \"username\", value = input.traits.username }\n }\nend"
|
|
1306
1112
|
}
|
|
1307
1113
|
}
|
|
1308
1114
|
]
|
|
@@ -1329,7 +1135,7 @@
|
|
|
1329
1135
|
},
|
|
1330
1136
|
{
|
|
1331
1137
|
"inputKey": "messageId",
|
|
1332
|
-
"outputKey": "
|
|
1138
|
+
"outputKey": "externalEventId"
|
|
1333
1139
|
},
|
|
1334
1140
|
{
|
|
1335
1141
|
"inputKey": "properties.affiliation",
|
|
@@ -1373,16 +1179,8 @@
|
|
|
1373
1179
|
]
|
|
1374
1180
|
},
|
|
1375
1181
|
{
|
|
1376
|
-
"inputKey": "
|
|
1377
|
-
"outputKey": "properties.products"
|
|
1378
|
-
"transforms": [
|
|
1379
|
-
{
|
|
1380
|
-
"expression": {
|
|
1381
|
-
"lang": "lua",
|
|
1382
|
-
"body": "return MAP(input.properties.products, function(p)\n return {\n product_id = p.product_id,\n sku = p.sku,\n category = p.category,\n name = p.name,\n brand = p.brand,\n variant = p.variant,\n price = p.price,\n quantity = p.quantity or 1,\n coupon = p.coupon,\n position = p.position,\n url = p.url,\n image_url = p.image_url\n }\nend)"
|
|
1383
|
-
}
|
|
1384
|
-
}
|
|
1385
|
-
]
|
|
1182
|
+
"inputKey": "properties.products",
|
|
1183
|
+
"outputKey": "properties.products"
|
|
1386
1184
|
},
|
|
1387
1185
|
{
|
|
1388
1186
|
"inputKey": "input",
|
|
@@ -1403,7 +1201,7 @@
|
|
|
1403
1201
|
{
|
|
1404
1202
|
"expression": {
|
|
1405
1203
|
"lang": "lua",
|
|
1406
|
-
"body": "return {\n
|
|
1204
|
+
"body": "if input.traits and input.traits.username then\n return {\n { name = \"username\", value = input.traits.username }\n }\n end"
|
|
1407
1205
|
}
|
|
1408
1206
|
}
|
|
1409
1207
|
]
|