@walkeros/server-destination-rudderstack 4.8.1 → 4.8.3-next-1793115089237

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-rudderstack",
4
- "version": "4.8.1",
4
+ "version": "4.8.3-next-1793115089237",
5
5
  "type": "destination",
6
6
  "platform": [
7
7
  "server"
@@ -22,13 +22,13 @@
22
22
  "description": "Per-event group assignment. Resolves to { groupId, traits? }. Use with rule-level silent: true on company/team events."
23
23
  },
24
24
  "page": {
25
- "description": "Per-event page call. Resolves to { name, properties? } or true for minimal page(). RudderStack requires name (falls back to empty string). Use with silent: true."
25
+ "description": "Per-event page call. Resolves to { name?, properties? }, or true for a page() call without a name. Use with silent: true."
26
26
  },
27
27
  "screen": {
28
- "description": "Per-event screen call (mobile backends). Resolves to { name, properties? } or true for minimal screen(). RudderStack requires name (falls back to empty string). Use with silent: true."
28
+ "description": "Per-event screen call (mobile backends). Resolves to { name?, properties? }, or true for a screen() call without a name. Use with silent: true."
29
29
  },
30
30
  "alias": {
31
- "description": "Per-event alias call. Resolves to { previousId }. Links anonymous user to identified user. Use with rule-level silent: true."
31
+ "description": "Per-event alias call. Resolves to { previousId }. Links that anonymous id to the event userId, which the call needs: an event without a userId fails. Use with rule-level silent: true."
32
32
  }
33
33
  },
34
34
  "additionalProperties": false
@@ -63,7 +63,7 @@
63
63
  "type": "integer",
64
64
  "exclusiveMinimum": 0,
65
65
  "maximum": 9007199254740991,
66
- "description": "Events to enqueue before flushing a batch. Default: 20."
66
+ "description": "Events the SDK sends in one request. Each push and each config.batch batch flushes the SDK and waits until its calls are sent. Default: 20."
67
67
  },
68
68
  "flushInterval": {
69
69
  "type": "integer",
@@ -75,7 +75,7 @@
75
75
  "type": "integer",
76
76
  "exclusiveMinimum": 0,
77
77
  "maximum": 9007199254740991,
78
- "description": "Maximum batch payload size in bytes. Default: 460800 (~500KB)."
78
+ "description": "Maximum batch payload size in bytes. Default: 460800 (450 KB)."
79
79
  },
80
80
  "maxInternalQueueSize": {
81
81
  "type": "integer",
@@ -91,7 +91,13 @@
91
91
  "type": "integer",
92
92
  "minimum": 0,
93
93
  "maximum": 9007199254740991,
94
- "description": "Retry attempts for failed batches. Default: 3."
94
+ "description": "Retries the SDK makes for a failed request, a tenth of config.timeout apart. Default: 2, which ends within config.timeout. A value set here wins."
95
+ },
96
+ "timeout": {
97
+ "type": "integer",
98
+ "exclusiveMinimum": 0,
99
+ "maximum": 9007199254740991,
100
+ "description": "Time one request may take, in milliseconds. Default: a quarter of config.timeout (2500 at the 10 s default). A value set here wins."
95
101
  },
96
102
  "enable": {
97
103
  "type": "boolean",
@@ -102,10 +108,10 @@
102
108
  "description": "Enable gzip compression for requests. Default: true."
103
109
  },
104
110
  "identify": {
105
- "description": "Destination-level identity mapping. Resolves to { traits } object. Fires identify() on the first push and re-fires when values change."
111
+ "description": "Destination-level identity mapping. Resolves to { userId?, traits? }. identify() fires when the userId or traits differ from the previous identify call this destination sent; the anonymousId is not compared."
106
112
  },
107
113
  "group": {
108
- "description": "Destination-level group mapping. Resolves to { groupId, traits }. Fires group() on the first push and re-fires on change."
114
+ "description": "Destination-level group mapping. Resolves to { groupId, traits? }. group() fires when the groupId or traits differ from the previous group call this destination sent; the user is not compared."
109
115
  },
110
116
  "integrations": {
111
117
  "type": "object",
@@ -113,7 +119,7 @@
113
119
  "type": "string"
114
120
  },
115
121
  "additionalProperties": {},
116
- "description": "Enable/disable downstream RudderStack destinations. Example: { \"All\": true, \"Mixpanel\": false }."
122
+ "description": "Has no effect: the destination does not add integrations to its calls."
117
123
  }
118
124
  },
119
125
  "required": [
@@ -128,22 +134,22 @@
128
134
  "push": {
129
135
  "analytics": {
130
136
  "track": {
131
- "$code": "()=>{}"
137
+ "$code": "(e,t)=>t?.()"
132
138
  },
133
139
  "identify": {
134
- "$code": "()=>{}"
140
+ "$code": "(e,t)=>t?.()"
135
141
  },
136
142
  "group": {
137
- "$code": "()=>{}"
143
+ "$code": "(e,t)=>t?.()"
138
144
  },
139
145
  "page": {
140
- "$code": "()=>{}"
146
+ "$code": "(e,t)=>t?.()"
141
147
  },
142
148
  "screen": {
143
- "$code": "()=>{}"
149
+ "$code": "(e,t)=>t?.()"
144
150
  },
145
151
  "alias": {
146
- "$code": "()=>{}"
152
+ "$code": "(e,t)=>t?.()"
147
153
  },
148
154
  "flush": {
149
155
  "$code": "()=>Promise.resolve()"
@@ -159,6 +165,15 @@
159
165
  "call:analytics.alias"
160
166
  ]
161
167
  },
168
+ "minimal": {
169
+ "settings": {
170
+ "writeKey": "test-write-key",
171
+ "dataPlaneUrl": "https://hosted.rudderlabs.com"
172
+ },
173
+ "secrets": {
174
+ "writeKey": "RUDDERSTACK_WRITE_KEY"
175
+ }
176
+ },
162
177
  "step": {
163
178
  "aliasUser": {
164
179
  "title": "Alias user",
@@ -195,11 +210,11 @@
195
210
  "consent": {
196
211
  "functional": true
197
212
  },
198
- "id": "46570213963b155b",
213
+ "id": "ev1700000107",
199
214
  "trigger": "test",
200
215
  "entity": "identity",
201
216
  "action": "merge",
202
- "timestamp": 1700000107,
217
+ "timestamp": 1700000107000,
203
218
  "timing": 3.14,
204
219
  "source": {
205
220
  "count": 1,
@@ -222,6 +237,7 @@
222
237
  [
223
238
  "analytics.alias",
224
239
  {
240
+ "messageId": "ev1700000107-alias",
225
241
  "userId": "registered-456",
226
242
  "previousId": "anonymous-123",
227
243
  "timestamp": {}
@@ -239,7 +255,8 @@
239
255
  "name": "Everyday Ruck Snack",
240
256
  "color": "black",
241
257
  "size": "l",
242
- "price": 420
258
+ "price": 420,
259
+ "currency": "EUR"
243
260
  },
244
261
  "context": {
245
262
  "shopping": [
@@ -260,11 +277,11 @@
260
277
  "consent": {
261
278
  "functional": true
262
279
  },
263
- "id": "439eeb7c3d01d735",
280
+ "id": "ev1700000108",
264
281
  "trigger": "load",
265
282
  "entity": "product",
266
283
  "action": "view",
267
- "timestamp": 1700000108,
284
+ "timestamp": 1700000108000,
268
285
  "timing": 3.14,
269
286
  "source": {
270
287
  "count": 1,
@@ -278,6 +295,7 @@
278
295
  [
279
296
  "analytics.track",
280
297
  {
298
+ "messageId": "ev1700000108",
281
299
  "anonymousId": "s3ss10n",
282
300
  "event": "product view",
283
301
  "properties": {},
@@ -324,11 +342,11 @@
324
342
  "consent": {
325
343
  "functional": true
326
344
  },
327
- "id": "cc09fca9d6a5ec8a",
345
+ "id": "ev1700000104",
328
346
  "trigger": "test",
329
347
  "entity": "company",
330
348
  "action": "update",
331
- "timestamp": 1700000104,
349
+ "timestamp": 1700000104000,
332
350
  "timing": 3.14,
333
351
  "source": {
334
352
  "count": 1,
@@ -358,6 +376,7 @@
358
376
  [
359
377
  "analytics.group",
360
378
  {
379
+ "messageId": "ev1700000104-group",
361
380
  "userId": "us3r",
362
381
  "anonymousId": "s3ss10n",
363
382
  "groupId": "comp-456",
@@ -371,6 +390,38 @@
371
390
  ]
372
391
  ]
373
392
  },
393
+ "companyGroupWithoutData": {
394
+ "public": false,
395
+ "description": "A silent group rule whose groupId finds no data sends nothing: an unmet mapping, not a failure, so the push returns normally.",
396
+ "in": {
397
+ "name": "company update",
398
+ "entity": "company",
399
+ "action": "update",
400
+ "timestamp": 1700000120000,
401
+ "user": {
402
+ "id": "us3r",
403
+ "session": "s3ss10n"
404
+ }
405
+ },
406
+ "mapping": {
407
+ "silent": true,
408
+ "settings": {
409
+ "group": {
410
+ "map": {
411
+ "groupId": "data.company_id",
412
+ "traits": {
413
+ "map": {
414
+ "name": "data.company_name",
415
+ "industry": "data.industry",
416
+ "employees": "data.employees"
417
+ }
418
+ }
419
+ }
420
+ }
421
+ }
422
+ },
423
+ "out": []
424
+ },
374
425
  "defaultTrack": {
375
426
  "title": "Default track",
376
427
  "description": "A walker event becomes a RudderStack analytics.track call with userId and anonymousId resolved from the event.",
@@ -381,7 +432,8 @@
381
432
  "name": "Everyday Ruck Snack",
382
433
  "color": "black",
383
434
  "size": "l",
384
- "price": 420
435
+ "price": 420,
436
+ "currency": "EUR"
385
437
  },
386
438
  "context": {
387
439
  "shopping": [
@@ -403,11 +455,11 @@
403
455
  "consent": {
404
456
  "functional": true
405
457
  },
406
- "id": "0373a0e101699eaa",
458
+ "id": "ev1700000100",
407
459
  "trigger": "load",
408
460
  "entity": "product",
409
461
  "action": "view",
410
- "timestamp": 1700000100,
462
+ "timestamp": 1700000100000,
411
463
  "timing": 3.14,
412
464
  "source": {
413
465
  "count": 1,
@@ -420,6 +472,7 @@
420
472
  [
421
473
  "analytics.track",
422
474
  {
475
+ "messageId": "ev1700000100",
423
476
  "userId": "us3r",
424
477
  "anonymousId": "s3ss10n",
425
478
  "event": "product view",
@@ -431,7 +484,7 @@
431
484
  },
432
485
  "destinationIdentify": {
433
486
  "title": "Destination identify",
434
- "description": "Destination-level identify fires analytics.identify with traits on the first push only, then the track call follows.",
487
+ "description": "With settings.identify mapping the email trait to 'user.email', the first push fires analytics.identify with the traits before the track call. Later pushes repeat it only when the userId or traits differ.",
435
488
  "in": {
436
489
  "name": "page view",
437
490
  "data": {
@@ -470,11 +523,11 @@
470
523
  "consent": {
471
524
  "functional": true
472
525
  },
473
- "id": "aa260be0334ddcad",
526
+ "id": "ev1700000102",
474
527
  "trigger": "load",
475
528
  "entity": "page",
476
529
  "action": "view",
477
- "timestamp": 1700000102,
530
+ "timestamp": 1700000102000,
478
531
  "timing": 3.14,
479
532
  "source": {
480
533
  "count": 1,
@@ -498,6 +551,7 @@
498
551
  [
499
552
  "analytics.identify",
500
553
  {
554
+ "messageId": "ev1700000102-identify",
501
555
  "userId": "us3r",
502
556
  "anonymousId": "s3ss10n",
503
557
  "traits": {
@@ -509,6 +563,7 @@
509
563
  [
510
564
  "analytics.track",
511
565
  {
566
+ "messageId": "ev1700000102",
512
567
  "userId": "us3r",
513
568
  "anonymousId": "s3ss10n",
514
569
  "event": "page view",
@@ -526,9 +581,10 @@
526
581
  "data": {
527
582
  "id": "0rd3r1d",
528
583
  "currency": "EUR",
584
+ "value": 462,
585
+ "tax": 73.76,
529
586
  "shipping": 5.22,
530
- "taxes": 73.76,
531
- "total": 555
587
+ "total": 467.22
532
588
  },
533
589
  "context": {
534
590
  "shopping": [
@@ -597,11 +653,11 @@
597
653
  "consent": {
598
654
  "functional": true
599
655
  },
600
- "id": "f62036119d30c8f6",
656
+ "id": "ev1700000101",
601
657
  "trigger": "load",
602
658
  "entity": "order",
603
659
  "action": "complete",
604
- "timestamp": 1700000101,
660
+ "timestamp": 1700000101000,
605
661
  "timing": 3.14,
606
662
  "source": {
607
663
  "count": 1,
@@ -617,6 +673,7 @@
617
673
  [
618
674
  "analytics.track",
619
675
  {
676
+ "messageId": "ev1700000101",
620
677
  "userId": "us3r",
621
678
  "anonymousId": "s3ss10n",
622
679
  "event": "Order Completed",
@@ -626,6 +683,118 @@
626
683
  ]
627
684
  ]
628
685
  },
686
+ "noIdentityCompany": {
687
+ "public": false,
688
+ "description": "A company update event without userId or anonymousId cannot be sent to RudderStack: the push fails with missing-input instead of counting as delivered.",
689
+ "in": {
690
+ "name": "company update",
691
+ "entity": "company",
692
+ "action": "update",
693
+ "timestamp": 1700000114
694
+ },
695
+ "out": [],
696
+ "outcome": {
697
+ "status": "failed",
698
+ "code": "missing-input",
699
+ "retryable": false
700
+ }
701
+ },
702
+ "noIdentityLogin": {
703
+ "public": false,
704
+ "description": "A user login event without userId or anonymousId cannot be sent to RudderStack: the push fails with missing-input instead of counting as delivered.",
705
+ "in": {
706
+ "name": "user login",
707
+ "entity": "user",
708
+ "action": "login",
709
+ "timestamp": 1700000113
710
+ },
711
+ "out": [],
712
+ "outcome": {
713
+ "status": "failed",
714
+ "code": "missing-input",
715
+ "retryable": false
716
+ }
717
+ },
718
+ "noIdentityMerge": {
719
+ "public": false,
720
+ "description": "A identity merge event without userId or anonymousId cannot be sent to RudderStack: the push fails with missing-input instead of counting as delivered.",
721
+ "in": {
722
+ "name": "identity merge",
723
+ "entity": "identity",
724
+ "action": "merge",
725
+ "timestamp": 1700000116
726
+ },
727
+ "out": [],
728
+ "outcome": {
729
+ "status": "failed",
730
+ "code": "missing-input",
731
+ "retryable": false
732
+ }
733
+ },
734
+ "noIdentityOrder": {
735
+ "public": false,
736
+ "description": "A order complete event without userId or anonymousId cannot be sent to RudderStack: the push fails with missing-input instead of counting as delivered.",
737
+ "in": {
738
+ "name": "order complete",
739
+ "entity": "order",
740
+ "action": "complete",
741
+ "timestamp": 1700000111
742
+ },
743
+ "out": [],
744
+ "outcome": {
745
+ "status": "failed",
746
+ "code": "missing-input",
747
+ "retryable": false
748
+ }
749
+ },
750
+ "noIdentityPage": {
751
+ "public": false,
752
+ "description": "A page view event without userId or anonymousId cannot be sent to RudderStack: the push fails with missing-input instead of counting as delivered.",
753
+ "in": {
754
+ "name": "page view",
755
+ "entity": "page",
756
+ "action": "view",
757
+ "timestamp": 1700000112
758
+ },
759
+ "out": [],
760
+ "outcome": {
761
+ "status": "failed",
762
+ "code": "missing-input",
763
+ "retryable": false
764
+ }
765
+ },
766
+ "noIdentityProduct": {
767
+ "public": false,
768
+ "description": "A product view event without userId or anonymousId cannot be sent to RudderStack: the push fails with missing-input instead of counting as delivered.",
769
+ "in": {
770
+ "name": "product view",
771
+ "entity": "product",
772
+ "action": "view",
773
+ "timestamp": 1700000110
774
+ },
775
+ "out": [],
776
+ "outcome": {
777
+ "status": "failed",
778
+ "code": "missing-input",
779
+ "retryable": false
780
+ }
781
+ },
782
+ "noIdentityScreen": {
783
+ "public": false,
784
+ "description": "A screen view event without userId or anonymousId cannot be sent to RudderStack: the push fails with missing-input instead of counting as delivered.",
785
+ "in": {
786
+ "name": "screen view",
787
+ "entity": "screen",
788
+ "action": "view",
789
+ "timestamp": 1700000115
790
+ },
791
+ "out": [],
792
+ "outcome": {
793
+ "status": "failed",
794
+ "code": "missing-input",
795
+ "retryable": false
796
+ }
797
+ },
629
798
  "pageView": {
630
799
  "title": "Page view",
631
800
  "description": "A page view fires analytics.page with a resolved page name and properties instead of a generic track.",
@@ -662,11 +831,11 @@
662
831
  "consent": {
663
832
  "functional": true
664
833
  },
665
- "id": "e664cb0d7249cbf2",
834
+ "id": "ev1700000105",
666
835
  "trigger": "load",
667
836
  "entity": "page",
668
837
  "action": "view",
669
- "timestamp": 1700000105,
838
+ "timestamp": 1700000105000,
670
839
  "timing": 3.14,
671
840
  "source": {
672
841
  "count": 1,
@@ -694,6 +863,7 @@
694
863
  [
695
864
  "analytics.page",
696
865
  {
866
+ "messageId": "ev1700000105-page",
697
867
  "userId": "us3r",
698
868
  "anonymousId": "s3ss10n",
699
869
  "name": "Getting Started",
@@ -742,11 +912,11 @@
742
912
  "consent": {
743
913
  "functional": true
744
914
  },
745
- "id": "a7c7dc1fbdd40c55",
915
+ "id": "ev1700000106",
746
916
  "trigger": "test",
747
917
  "entity": "screen",
748
918
  "action": "view",
749
- "timestamp": 1700000106,
919
+ "timestamp": 1700000106000,
750
920
  "timing": 3.14,
751
921
  "source": {
752
922
  "count": 1,
@@ -774,6 +944,7 @@
774
944
  [
775
945
  "analytics.screen",
776
946
  {
947
+ "messageId": "ev1700000106-screen",
777
948
  "userId": "us3r",
778
949
  "anonymousId": "s3ss10n",
779
950
  "name": "Welcome",
@@ -785,6 +956,64 @@
785
956
  ]
786
957
  ]
787
958
  },
959
+ "silentRule": {
960
+ "public": false,
961
+ "description": "A rule with silent: true and no identify, group, page, screen or alias mapping sends nothing to RudderStack.",
962
+ "in": {
963
+ "name": "page view",
964
+ "data": {
965
+ "domain": "www.example.com",
966
+ "title": "walkerOS documentation",
967
+ "referrer": "https://www.walkeros.io/",
968
+ "search": "?foo=bar",
969
+ "hash": "#hash",
970
+ "id": "/docs/"
971
+ },
972
+ "context": {
973
+ "dev": [
974
+ "test",
975
+ 1
976
+ ]
977
+ },
978
+ "globals": {
979
+ "pagegroup": "docs"
980
+ },
981
+ "custom": {
982
+ "completely": "random"
983
+ },
984
+ "user": {
985
+ "id": "us3r",
986
+ "session": "s3ss10n"
987
+ },
988
+ "nested": [
989
+ {
990
+ "entity": "child",
991
+ "data": {
992
+ "is": "subordinated"
993
+ }
994
+ }
995
+ ],
996
+ "consent": {
997
+ "functional": true
998
+ },
999
+ "id": "f0cc5f6fec3d8eeb",
1000
+ "trigger": "load",
1001
+ "entity": "page",
1002
+ "action": "view",
1003
+ "timestamp": 1700000117000,
1004
+ "timing": 3.14,
1005
+ "source": {
1006
+ "count": 1,
1007
+ "trace": "0a1b2c3d4e5f60718293a4b5c6d7e8f9",
1008
+ "type": "collector",
1009
+ "schema": "4"
1010
+ }
1011
+ },
1012
+ "mapping": {
1013
+ "silent": true
1014
+ },
1015
+ "out": []
1016
+ },
788
1017
  "userLoginIdentify": {
789
1018
  "title": "User login identify",
790
1019
  "description": "A user login fires only an analytics.identify call with the resolved userId and traits, skipping the track.",
@@ -823,11 +1052,11 @@
823
1052
  "consent": {
824
1053
  "functional": true
825
1054
  },
826
- "id": "8d6a792e74c4e168",
1055
+ "id": "ev1700000103",
827
1056
  "trigger": "test",
828
1057
  "entity": "user",
829
1058
  "action": "login",
830
- "timestamp": 1700000103,
1059
+ "timestamp": 1700000103000,
831
1060
  "timing": 3.14,
832
1061
  "source": {
833
1062
  "count": 1,
@@ -857,6 +1086,7 @@
857
1086
  [
858
1087
  "analytics.identify",
859
1088
  {
1089
+ "messageId": "ev1700000103-identify",
860
1090
  "userId": "new-user-123",
861
1091
  "anonymousId": "s3ss10n",
862
1092
  "traits": {
@@ -910,11 +1140,11 @@
910
1140
  "consent": {
911
1141
  "functional": true
912
1142
  },
913
- "id": "473f27fdc78c8974",
1143
+ "id": "cd412b3ddf42c87a",
914
1144
  "trigger": "test",
915
1145
  "entity": "debug",
916
1146
  "action": "noise",
917
- "timestamp": 1700000109,
1147
+ "timestamp": 1700000109000,
918
1148
  "timing": 3.14,
919
1149
  "source": {
920
1150
  "count": 1,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@walkeros/server-destination-rudderstack",
3
3
  "description": "RudderStack CDP server destination for walkerOS (@rudderstack/rudder-sdk-node, full Segment Spec)",
4
- "version": "4.8.1",
4
+ "version": "4.8.3-next-1793115089237",
5
5
  "license": "MIT",
6
6
  "exports": {
7
7
  ".": {
@@ -36,11 +36,11 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@rudderstack/rudder-sdk-node": "^3.0.0",
39
- "@walkeros/core": "4.8.1",
40
- "@walkeros/server-core": "4.8.1"
39
+ "@walkeros/core": "4.8.3-next-1793115089237",
40
+ "@walkeros/server-core": "4.8.3-next-1793115089237"
41
41
  },
42
42
  "devDependencies": {
43
- "@walkeros/collector": "4.8.1"
43
+ "@walkeros/collector": "4.8.3-next-1793115089237"
44
44
  },
45
45
  "repository": {
46
46
  "url": "git+https://github.com/elbwalker/walkerOS.git",