@walkeros/server-destination-amplitude 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.
- package/CHANGELOG.md +34 -0
- package/README.md +1 -1
- package/dist/dev.d.mts +24 -7
- package/dist/dev.d.ts +24 -7
- package/dist/dev.js +1 -1
- package/dist/dev.js.map +1 -1
- package/dist/dev.mjs +1 -1
- package/dist/dev.mjs.map +1 -1
- package/dist/examples/index.d.mts +23 -6
- package/dist/examples/index.d.ts +23 -6
- package/dist/examples/index.js +71 -29
- package/dist/examples/index.mjs +72 -30
- package/dist/index.d.mts +16 -6
- package/dist/index.d.ts +16 -6
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/walkerOS.json +154 -26
- package/package.json +5 -4
package/dist/walkerOS.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$meta": {
|
|
3
3
|
"package": "@walkeros/server-destination-amplitude",
|
|
4
|
-
"version": "4.8.
|
|
4
|
+
"version": "4.8.2",
|
|
5
5
|
"type": "destination",
|
|
6
6
|
"platform": [
|
|
7
7
|
"server"
|
|
@@ -61,19 +61,19 @@
|
|
|
61
61
|
"type": "integer",
|
|
62
62
|
"exclusiveMinimum": 0,
|
|
63
63
|
"maximum": 9007199254740991,
|
|
64
|
-
"description": "How
|
|
64
|
+
"description": "How long (in ms) the SDK waits before it sends queued events, and before its first retry of a failed request. Default: a tenth of config.timeout (1000 at the 10 s default). A value set here wins."
|
|
65
65
|
},
|
|
66
66
|
"flushQueueSize": {
|
|
67
67
|
"type": "integer",
|
|
68
68
|
"exclusiveMinimum": 0,
|
|
69
69
|
"maximum": 9007199254740991,
|
|
70
|
-
"description": "
|
|
70
|
+
"description": "Events the SDK sends in one request. Each push and each config.batch batch flushes the SDK and waits until Amplitude answered its calls. Default: 200."
|
|
71
71
|
},
|
|
72
72
|
"flushMaxRetries": {
|
|
73
73
|
"type": "integer",
|
|
74
74
|
"minimum": 0,
|
|
75
75
|
"maximum": 9007199254740991,
|
|
76
|
-
"description": "
|
|
76
|
+
"description": "Attempts per event, the first send included. Default: as many as end within config.timeout with the SDK's waits, each request bounded by a quarter of it (3 at the 10 s default). A value set here wins."
|
|
77
77
|
},
|
|
78
78
|
"useBatch": {
|
|
79
79
|
"type": "boolean",
|
|
@@ -126,22 +126,22 @@
|
|
|
126
126
|
"$code": "()=>({promise:Promise.resolve()})"
|
|
127
127
|
},
|
|
128
128
|
"track": {
|
|
129
|
-
"$code": "()=>{}"
|
|
129
|
+
"$code": "()=>({promise:Promise.resolve()})"
|
|
130
130
|
},
|
|
131
131
|
"identify": {
|
|
132
|
-
"$code": "()=>{}"
|
|
132
|
+
"$code": "()=>({promise:Promise.resolve()})"
|
|
133
133
|
},
|
|
134
134
|
"revenue": {
|
|
135
|
-
"$code": "()=>{}"
|
|
135
|
+
"$code": "()=>({promise:Promise.resolve()})"
|
|
136
136
|
},
|
|
137
137
|
"setOptOut": {
|
|
138
138
|
"$code": "()=>{}"
|
|
139
139
|
},
|
|
140
140
|
"setGroup": {
|
|
141
|
-
"$code": "()=>{}"
|
|
141
|
+
"$code": "()=>({promise:Promise.resolve()})"
|
|
142
142
|
},
|
|
143
143
|
"groupIdentify": {
|
|
144
|
-
"$code": "()=>{}"
|
|
144
|
+
"$code": "()=>({promise:Promise.resolve()})"
|
|
145
145
|
},
|
|
146
146
|
"flush": {
|
|
147
147
|
"$code": "()=>({promise:Promise.resolve()})"
|
|
@@ -160,22 +160,22 @@
|
|
|
160
160
|
"$code": "()=>({promise:Promise.resolve()})"
|
|
161
161
|
},
|
|
162
162
|
"track": {
|
|
163
|
-
"$code": "()=>{}"
|
|
163
|
+
"$code": "()=>({promise:Promise.resolve()})"
|
|
164
164
|
},
|
|
165
165
|
"identify": {
|
|
166
|
-
"$code": "()=>{}"
|
|
166
|
+
"$code": "()=>({promise:Promise.resolve()})"
|
|
167
167
|
},
|
|
168
168
|
"revenue": {
|
|
169
|
-
"$code": "()=>{}"
|
|
169
|
+
"$code": "()=>({promise:Promise.resolve()})"
|
|
170
170
|
},
|
|
171
171
|
"setOptOut": {
|
|
172
172
|
"$code": "()=>{}"
|
|
173
173
|
},
|
|
174
174
|
"setGroup": {
|
|
175
|
-
"$code": "()=>{}"
|
|
175
|
+
"$code": "()=>({promise:Promise.resolve()})"
|
|
176
176
|
},
|
|
177
177
|
"groupIdentify": {
|
|
178
|
-
"$code": "()=>{}"
|
|
178
|
+
"$code": "()=>({promise:Promise.resolve()})"
|
|
179
179
|
},
|
|
180
180
|
"flush": {
|
|
181
181
|
"$code": "()=>({promise:Promise.resolve()})"
|
|
@@ -268,7 +268,7 @@
|
|
|
268
268
|
"consent": {
|
|
269
269
|
"functional": true
|
|
270
270
|
},
|
|
271
|
-
"id": "
|
|
271
|
+
"id": "ev1700000100",
|
|
272
272
|
"trigger": "load",
|
|
273
273
|
"entity": "product",
|
|
274
274
|
"action": "view",
|
|
@@ -285,7 +285,10 @@
|
|
|
285
285
|
[
|
|
286
286
|
"amplitude.track",
|
|
287
287
|
"product view",
|
|
288
|
-
{}
|
|
288
|
+
{},
|
|
289
|
+
{
|
|
290
|
+
"insert_id": "ev1700000100"
|
|
291
|
+
}
|
|
289
292
|
]
|
|
290
293
|
]
|
|
291
294
|
},
|
|
@@ -330,7 +333,7 @@
|
|
|
330
333
|
"consent": {
|
|
331
334
|
"functional": true
|
|
332
335
|
},
|
|
333
|
-
"id": "
|
|
336
|
+
"id": "ev1700000104",
|
|
334
337
|
"trigger": "load",
|
|
335
338
|
"entity": "page",
|
|
336
339
|
"action": "view",
|
|
@@ -358,6 +361,7 @@
|
|
|
358
361
|
"page view",
|
|
359
362
|
{},
|
|
360
363
|
{
|
|
364
|
+
"insert_id": "ev1700000104",
|
|
361
365
|
"user_id": "us3r",
|
|
362
366
|
"device_id": "c00k13",
|
|
363
367
|
"session_id": 394324160
|
|
@@ -398,7 +402,7 @@
|
|
|
398
402
|
"consent": {
|
|
399
403
|
"functional": true
|
|
400
404
|
},
|
|
401
|
-
"id": "
|
|
405
|
+
"id": "ev1700000102",
|
|
402
406
|
"trigger": "load",
|
|
403
407
|
"entity": "product",
|
|
404
408
|
"action": "view",
|
|
@@ -424,6 +428,9 @@
|
|
|
424
428
|
"data_color": "black",
|
|
425
429
|
"data_size": "l",
|
|
426
430
|
"data_price": 420
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"insert_id": "ev1700000102"
|
|
427
434
|
}
|
|
428
435
|
]
|
|
429
436
|
]
|
|
@@ -541,7 +548,7 @@
|
|
|
541
548
|
"consent": {
|
|
542
549
|
"functional": true
|
|
543
550
|
},
|
|
544
|
-
"id": "
|
|
551
|
+
"id": "ev1700000109",
|
|
545
552
|
"trigger": "test",
|
|
546
553
|
"entity": "company",
|
|
547
554
|
"action": "update",
|
|
@@ -590,7 +597,10 @@
|
|
|
590
597
|
[
|
|
591
598
|
"amplitude.setGroup",
|
|
592
599
|
"company",
|
|
593
|
-
"Acme"
|
|
600
|
+
"Acme",
|
|
601
|
+
{
|
|
602
|
+
"insert_id": "ev1700000109-group"
|
|
603
|
+
}
|
|
594
604
|
],
|
|
595
605
|
[
|
|
596
606
|
"amplitude.groupIdentify",
|
|
@@ -604,10 +614,56 @@
|
|
|
604
614
|
"setOnce": {
|
|
605
615
|
"founded": 2020
|
|
606
616
|
}
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"insert_id": "ev1700000109-groupIdentify"
|
|
607
620
|
}
|
|
608
621
|
]
|
|
609
622
|
]
|
|
610
623
|
},
|
|
624
|
+
"groupAssignmentWithoutData": {
|
|
625
|
+
"public": false,
|
|
626
|
+
"description": "A silent group rule whose name finds no data sends nothing: an unmet mapping, not a failure, so the push returns normally.",
|
|
627
|
+
"in": {
|
|
628
|
+
"name": "company update",
|
|
629
|
+
"entity": "company",
|
|
630
|
+
"action": "update",
|
|
631
|
+
"timestamp": 1700000111
|
|
632
|
+
},
|
|
633
|
+
"mapping": {
|
|
634
|
+
"silent": true,
|
|
635
|
+
"settings": {
|
|
636
|
+
"group": {
|
|
637
|
+
"map": {
|
|
638
|
+
"type": {
|
|
639
|
+
"value": "company"
|
|
640
|
+
},
|
|
641
|
+
"name": "data.company"
|
|
642
|
+
}
|
|
643
|
+
},
|
|
644
|
+
"groupIdentify": {
|
|
645
|
+
"map": {
|
|
646
|
+
"type": {
|
|
647
|
+
"value": "company"
|
|
648
|
+
},
|
|
649
|
+
"name": "data.company",
|
|
650
|
+
"set": {
|
|
651
|
+
"map": {
|
|
652
|
+
"industry": "data.industry",
|
|
653
|
+
"size": "data.employee_count"
|
|
654
|
+
}
|
|
655
|
+
},
|
|
656
|
+
"setOnce": {
|
|
657
|
+
"map": {
|
|
658
|
+
"founded": "data.founded_year"
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
},
|
|
665
|
+
"out": []
|
|
666
|
+
},
|
|
611
667
|
"orderCompleteMultiProduct": {
|
|
612
668
|
"title": "Multi-product order",
|
|
613
669
|
"description": "An order with multiple nested products fires one amplitude.revenue per product plus a single track for the order.",
|
|
@@ -618,7 +674,7 @@
|
|
|
618
674
|
"currency": "EUR",
|
|
619
675
|
"shipping": 5.22,
|
|
620
676
|
"taxes": 73.76,
|
|
621
|
-
"
|
|
677
|
+
"value": 555
|
|
622
678
|
},
|
|
623
679
|
"context": {
|
|
624
680
|
"shopping": [
|
|
@@ -688,7 +744,7 @@
|
|
|
688
744
|
"consent": {
|
|
689
745
|
"functional": true
|
|
690
746
|
},
|
|
691
|
-
"id": "
|
|
747
|
+
"id": "ev1700000108",
|
|
692
748
|
"trigger": "load",
|
|
693
749
|
"entity": "order",
|
|
694
750
|
"action": "complete",
|
|
@@ -743,6 +799,9 @@
|
|
|
743
799
|
"quantity": 1,
|
|
744
800
|
"revenueType": "purchase",
|
|
745
801
|
"currency": "EUR"
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
"insert_id": "ev1700000108-revenue-0"
|
|
746
805
|
}
|
|
747
806
|
],
|
|
748
807
|
[
|
|
@@ -753,6 +812,9 @@
|
|
|
753
812
|
"quantity": 1,
|
|
754
813
|
"revenueType": "purchase",
|
|
755
814
|
"currency": "EUR"
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
"insert_id": "ev1700000108-revenue-1"
|
|
756
818
|
}
|
|
757
819
|
],
|
|
758
820
|
[
|
|
@@ -763,12 +825,74 @@
|
|
|
763
825
|
"data_currency": "EUR",
|
|
764
826
|
"data_shipping": 5.22,
|
|
765
827
|
"data_taxes": 73.76,
|
|
766
|
-
"
|
|
828
|
+
"data_value": 555,
|
|
767
829
|
"globals_pagegroup": "shop"
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
"insert_id": "ev1700000108"
|
|
768
833
|
}
|
|
769
834
|
]
|
|
770
835
|
]
|
|
771
836
|
},
|
|
837
|
+
"silentRule": {
|
|
838
|
+
"public": false,
|
|
839
|
+
"description": "A rule with silent: true and no identify, group or revenue mapping sends nothing to Amplitude.",
|
|
840
|
+
"in": {
|
|
841
|
+
"name": "page view",
|
|
842
|
+
"data": {
|
|
843
|
+
"domain": "www.example.com",
|
|
844
|
+
"title": "walkerOS documentation",
|
|
845
|
+
"referrer": "https://www.walkeros.io/",
|
|
846
|
+
"search": "?foo=bar",
|
|
847
|
+
"hash": "#hash",
|
|
848
|
+
"id": "/docs/"
|
|
849
|
+
},
|
|
850
|
+
"context": {
|
|
851
|
+
"dev": [
|
|
852
|
+
"test",
|
|
853
|
+
1
|
|
854
|
+
]
|
|
855
|
+
},
|
|
856
|
+
"globals": {
|
|
857
|
+
"pagegroup": "docs"
|
|
858
|
+
},
|
|
859
|
+
"custom": {
|
|
860
|
+
"completely": "random"
|
|
861
|
+
},
|
|
862
|
+
"user": {
|
|
863
|
+
"id": "us3r",
|
|
864
|
+
"device": "c00k13",
|
|
865
|
+
"session": "s3ss10n"
|
|
866
|
+
},
|
|
867
|
+
"nested": [
|
|
868
|
+
{
|
|
869
|
+
"entity": "child",
|
|
870
|
+
"data": {
|
|
871
|
+
"is": "subordinated"
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
],
|
|
875
|
+
"consent": {
|
|
876
|
+
"functional": true
|
|
877
|
+
},
|
|
878
|
+
"id": "f0cc5f6fec3d8eeb",
|
|
879
|
+
"trigger": "load",
|
|
880
|
+
"entity": "page",
|
|
881
|
+
"action": "view",
|
|
882
|
+
"timestamp": 1700000110,
|
|
883
|
+
"timing": 3.14,
|
|
884
|
+
"source": {
|
|
885
|
+
"count": 1,
|
|
886
|
+
"trace": "0a1b2c3d4e5f60718293a4b5c6d7e8f9",
|
|
887
|
+
"type": "collector",
|
|
888
|
+
"schema": "4"
|
|
889
|
+
}
|
|
890
|
+
},
|
|
891
|
+
"mapping": {
|
|
892
|
+
"silent": true
|
|
893
|
+
},
|
|
894
|
+
"out": []
|
|
895
|
+
},
|
|
772
896
|
"subscriptionRenewRevenue": {
|
|
773
897
|
"title": "Subscription revenue",
|
|
774
898
|
"description": "A subscription renewal fires a single amplitude.revenue call with productId, price, and a currency fallback.",
|
|
@@ -806,7 +930,7 @@
|
|
|
806
930
|
"consent": {
|
|
807
931
|
"functional": true
|
|
808
932
|
},
|
|
809
|
-
"id": "
|
|
933
|
+
"id": "ev1700000107",
|
|
810
934
|
"trigger": "test",
|
|
811
935
|
"entity": "subscription",
|
|
812
936
|
"action": "renew",
|
|
@@ -845,6 +969,9 @@
|
|
|
845
969
|
"price": 9.99,
|
|
846
970
|
"revenueType": "renewal",
|
|
847
971
|
"currency": "EUR"
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
"insert_id": "ev1700000107-revenue-0"
|
|
848
975
|
}
|
|
849
976
|
]
|
|
850
977
|
]
|
|
@@ -888,7 +1015,7 @@
|
|
|
888
1015
|
"consent": {
|
|
889
1016
|
"functional": true
|
|
890
1017
|
},
|
|
891
|
-
"id": "
|
|
1018
|
+
"id": "ev1700000105",
|
|
892
1019
|
"trigger": "test",
|
|
893
1020
|
"entity": "user",
|
|
894
1021
|
"action": "login",
|
|
@@ -947,6 +1074,7 @@
|
|
|
947
1074
|
}
|
|
948
1075
|
},
|
|
949
1076
|
{
|
|
1077
|
+
"insert_id": "ev1700000105-identify",
|
|
950
1078
|
"user_id": "new-user-123"
|
|
951
1079
|
}
|
|
952
1080
|
]
|
|
@@ -994,7 +1122,7 @@
|
|
|
994
1122
|
"consent": {
|
|
995
1123
|
"functional": true
|
|
996
1124
|
},
|
|
997
|
-
"id": "
|
|
1125
|
+
"id": "948b7d0a8428ac65",
|
|
998
1126
|
"trigger": "test",
|
|
999
1127
|
"entity": "debug",
|
|
1000
1128
|
"action": "noise",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@walkeros/server-destination-amplitude",
|
|
3
3
|
"description": "Amplitude server destination for walkerOS",
|
|
4
|
-
"version": "4.8.
|
|
4
|
+
"version": "4.8.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
@@ -35,12 +35,13 @@
|
|
|
35
35
|
"update": "npx npm-check-updates -u && npm update"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
+
"@amplitude/analytics-core": "2.48.2",
|
|
38
39
|
"@amplitude/analytics-node": "^1.5.53",
|
|
39
|
-
"@walkeros/core": "4.8.
|
|
40
|
-
"@walkeros/server-core": "4.8.
|
|
40
|
+
"@walkeros/core": "4.8.2",
|
|
41
|
+
"@walkeros/server-core": "4.8.2"
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|
|
43
|
-
"@walkeros/collector": "4.8.
|
|
44
|
+
"@walkeros/collector": "4.8.2"
|
|
44
45
|
},
|
|
45
46
|
"repository": {
|
|
46
47
|
"url": "git+https://github.com/elbwalker/walkerOS.git",
|