@walkeros/server-destination-mixpanel 4.8.1 → 4.8.2

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$meta": {
3
3
  "package": "@walkeros/server-destination-mixpanel",
4
- "version": "4.8.1",
4
+ "version": "4.8.2",
5
5
  "type": "destination",
6
6
  "platform": [
7
7
  "server"
@@ -96,7 +96,7 @@
96
96
  "push": {
97
97
  "Mixpanel": {
98
98
  "init": {
99
- "$code": "function(){return{track:m,import:m,alias:m,people:{...u},groups:{...g}}}"
99
+ "$code": "function(){return{track:u,import:u,alias:u,people:{...g},groups:{...v}}}"
100
100
  }
101
101
  }
102
102
  },
@@ -158,7 +158,7 @@
158
158
  "consent": {
159
159
  "functional": true
160
160
  },
161
- "id": "1f8a2888192f36d9",
161
+ "id": "8fabe94b14cda33d",
162
162
  "trigger": "test",
163
163
  "entity": "user",
164
164
  "action": "login",
@@ -236,7 +236,7 @@
236
236
  "consent": {
237
237
  "functional": true
238
238
  },
239
- "id": "ed9e9b5a3b36b817",
239
+ "id": "e7de94b506abdbfc",
240
240
  "trigger": "test",
241
241
  "entity": "profile",
242
242
  "action": "update",
@@ -360,6 +360,73 @@
360
360
  ]
361
361
  ]
362
362
  },
363
+ "allPeopleOperationsSkip": {
364
+ "public": false,
365
+ "description": "A profile update event without the data its rule reads has no profile or group to address: nothing is sent, and that is not a failure.",
366
+ "in": {
367
+ "name": "profile update",
368
+ "entity": "profile",
369
+ "action": "update",
370
+ "timestamp": 1700000992000
371
+ },
372
+ "mapping": {
373
+ "silent": true,
374
+ "settings": {
375
+ "identify": {
376
+ "map": {
377
+ "distinctId": "user.id"
378
+ }
379
+ },
380
+ "people": {
381
+ "map": {
382
+ "set": {
383
+ "map": {
384
+ "name": "data.name",
385
+ "email": "data.email"
386
+ }
387
+ },
388
+ "set_once": {
389
+ "map": {
390
+ "signup_source": "data.source"
391
+ }
392
+ },
393
+ "increment": {
394
+ "map": {
395
+ "page_views": {
396
+ "value": 1
397
+ }
398
+ }
399
+ },
400
+ "append": {
401
+ "map": {
402
+ "visited_pages": "data.page"
403
+ }
404
+ },
405
+ "union": {
406
+ "map": {
407
+ "unique_tags": {
408
+ "value": [
409
+ "active"
410
+ ]
411
+ }
412
+ }
413
+ },
414
+ "remove": {
415
+ "map": {
416
+ "tags": "data.removed_tag"
417
+ }
418
+ },
419
+ "unset": {
420
+ "value": [
421
+ "old_plan"
422
+ ]
423
+ }
424
+ }
425
+ }
426
+ }
427
+ },
428
+ "out": []
429
+ },
363
430
  "companyGroupProfile": {
364
431
  "title": "Group profile",
365
432
  "description": "A company update sets Mixpanel group profile properties via groups.set and groups.set_once.",
@@ -400,7 +467,7 @@
400
467
  "consent": {
401
468
  "functional": true
402
469
  },
403
- "id": "d831fe48b0aa0e24",
470
+ "id": "c9375a508c541c6a",
404
471
  "trigger": "test",
405
472
  "entity": "company",
406
473
  "action": "update",
@@ -459,6 +526,42 @@
459
526
  ]
460
527
  ]
461
528
  },
529
+ "companyGroupProfileSkip": {
530
+ "public": false,
531
+ "description": "A company update event without the data its rule reads has no profile or group to address: nothing is sent, and that is not a failure.",
532
+ "in": {
533
+ "name": "company update",
534
+ "entity": "company",
535
+ "action": "update",
536
+ "timestamp": 1700000993000
537
+ },
538
+ "mapping": {
539
+ "silent": true,
540
+ "settings": {
541
+ "groupProfile": {
542
+ "map": {
543
+ "key": {
544
+ "value": "company_id"
545
+ },
546
+ "id": "data.company_id",
547
+ "set": {
548
+ "map": {
549
+ "name": "data.company_name",
550
+ "plan": "data.plan",
551
+ "employee_count": "data.employee_count"
552
+ }
553
+ },
554
+ "set_once": {
555
+ "map": {
556
+ "founded": "data.founded_year"
557
+ }
558
+ }
559
+ }
560
+ }
561
+ }
562
+ },
563
+ "out": []
564
+ },
462
565
  "defaultEventForwarding": {
463
566
  "title": "Default track",
464
567
  "description": "A walkerOS event is forwarded to Mixpanel as a track call with the user id as the distinct_id.",
@@ -492,7 +595,7 @@
492
595
  "consent": {
493
596
  "functional": true
494
597
  },
495
- "id": "b083251f1fa5dbc9",
598
+ "id": "db22fb16c70f663d",
496
599
  "trigger": "load",
497
600
  "entity": "product",
498
601
  "action": "view",
@@ -528,7 +631,7 @@
528
631
  "in": {
529
632
  "name": "order complete",
530
633
  "data": {
531
- "total": 99.99
634
+ "value": 99.99
532
635
  },
533
636
  "context": {
534
637
  "shopping": [
@@ -598,7 +701,7 @@
598
701
  "consent": {
599
702
  "functional": true
600
703
  },
601
- "id": "8c5d248f108f9e8a",
704
+ "id": "235d0d7bd7a213f2",
602
705
  "trigger": "load",
603
706
  "entity": "order",
604
707
  "action": "complete",
@@ -667,7 +770,7 @@
667
770
  "consent": {
668
771
  "functional": true
669
772
  },
670
- "id": "58de3a0a9c3fbe15",
773
+ "id": "ac972c2181285cfe",
671
774
  "trigger": "test",
672
775
  "entity": "user",
673
776
  "action": "login",
@@ -699,6 +802,65 @@
699
802
  ]
700
803
  ]
701
804
  },
805
+ "silentRule": {
806
+ "public": false,
807
+ "description": "A rule with silent: true sends nothing to Mixpanel.",
808
+ "in": {
809
+ "name": "page view",
810
+ "data": {
811
+ "domain": "www.example.com",
812
+ "title": "walkerOS documentation",
813
+ "referrer": "https://www.walkeros.io/",
814
+ "search": "?foo=bar",
815
+ "hash": "#hash",
816
+ "id": "/docs/"
817
+ },
818
+ "context": {
819
+ "dev": [
820
+ "test",
821
+ 1
822
+ ]
823
+ },
824
+ "globals": {
825
+ "pagegroup": "docs"
826
+ },
827
+ "custom": {
828
+ "completely": "random"
829
+ },
830
+ "user": {
831
+ "id": "us3r",
832
+ "device": "c00k13",
833
+ "session": "s3ss10n"
834
+ },
835
+ "nested": [
836
+ {
837
+ "entity": "child",
838
+ "data": {
839
+ "is": "subordinated"
840
+ }
841
+ }
842
+ ],
843
+ "consent": {
844
+ "functional": true
845
+ },
846
+ "id": "f0cc5f6fec3d8eeb",
847
+ "trigger": "load",
848
+ "entity": "page",
849
+ "action": "view",
850
+ "timestamp": 1700000990000,
851
+ "timing": 3.14,
852
+ "source": {
853
+ "count": 1,
854
+ "trace": "0a1b2c3d4e5f60718293a4b5c6d7e8f9",
855
+ "type": "collector",
856
+ "schema": "4"
857
+ }
858
+ },
859
+ "mapping": {
860
+ "silent": true
861
+ },
862
+ "out": []
863
+ },
702
864
  "trackWithGroup": {
703
865
  "title": "Track with group",
704
866
  "description": "A group key and id are attached as a Mixpanel track property so the event is associated with a company or account.",
@@ -735,7 +897,7 @@
735
897
  "consent": {
736
898
  "functional": true
737
899
  },
738
- "id": "e383787eab8762de",
900
+ "id": "f0cc5f6fec3d8eeb",
739
901
  "trigger": "load",
740
902
  "entity": "page",
741
903
  "action": "view",
@@ -811,7 +973,7 @@
811
973
  "consent": {
812
974
  "functional": true
813
975
  },
814
- "id": "7f695da38a6c64b3",
976
+ "id": "db22fb16c70f663d",
815
977
  "trigger": "load",
816
978
  "entity": "product",
817
979
  "action": "view",
@@ -888,7 +1050,7 @@
888
1050
  "consent": {
889
1051
  "functional": true
890
1052
  },
891
- "id": "e8fd3d0907ae9a5c",
1053
+ "id": "516e424b2c08267f",
892
1054
  "trigger": "test",
893
1055
  "entity": "user",
894
1056
  "action": "login",
@@ -960,6 +1122,50 @@
960
1122
  ]
961
1123
  ]
962
1124
  },
1125
+ "userLoginPeopleSetSkip": {
1126
+ "public": false,
1127
+ "description": "A user login event without the data its rule reads has no profile or group to address: nothing is sent, and that is not a failure.",
1128
+ "in": {
1129
+ "name": "user login",
1130
+ "entity": "user",
1131
+ "action": "login",
1132
+ "timestamp": 1700000991000
1133
+ },
1134
+ "mapping": {
1135
+ "silent": true,
1136
+ "settings": {
1137
+ "identify": {
1138
+ "map": {
1139
+ "distinctId": "data.user_id"
1140
+ }
1141
+ },
1142
+ "people": {
1143
+ "map": {
1144
+ "set": {
1145
+ "map": {
1146
+ "plan": "data.plan",
1147
+ "company": "data.company",
1148
+ "email": "data.email"
1149
+ }
1150
+ },
1151
+ "set_once": {
1152
+ "map": {
1153
+ "first_login": "timestamp"
1154
+ }
1155
+ },
1156
+ "increment": {
1157
+ "map": {
1158
+ "login_count": {
1159
+ "value": 1
1160
+ }
1161
+ }
1162
+ }
1163
+ }
1164
+ }
1165
+ }
1166
+ },
1167
+ "out": []
1168
+ },
963
1169
  "wildcardIgnored": {
964
1170
  "public": false,
965
1171
  "in": {
@@ -1002,7 +1208,7 @@
1002
1208
  "consent": {
1003
1209
  "functional": true
1004
1210
  },
1005
- "id": "41c70132ae42e7e4",
1211
+ "id": "6960615d32a4612a",
1006
1212
  "trigger": "test",
1007
1213
  "entity": "debug",
1008
1214
  "action": "noise",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@walkeros/server-destination-mixpanel",
3
3
  "description": "Mixpanel server destination for walkerOS",
4
- "version": "4.8.1",
4
+ "version": "4.8.2",
5
5
  "license": "MIT",
6
6
  "exports": {
7
7
  ".": {
@@ -35,12 +35,12 @@
35
35
  "update": "npx npm-check-updates -u && npm update"
36
36
  },
37
37
  "dependencies": {
38
- "@walkeros/core": "4.8.1",
39
- "@walkeros/server-core": "4.8.1",
38
+ "@walkeros/core": "4.8.2",
39
+ "@walkeros/server-core": "4.8.2",
40
40
  "mixpanel": "^0.22.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@walkeros/collector": "4.8.1"
43
+ "@walkeros/collector": "4.8.2"
44
44
  },
45
45
  "repository": {
46
46
  "url": "git+https://github.com/elbwalker/walkerOS.git",