@xylabs/pixel 4.13.20 → 4.13.22

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.
Files changed (2) hide show
  1. package/README.md +1270 -3
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -12,13 +12,1280 @@
12
12
  [![snyk-badge][]][snyk-link]
13
13
  [![socket-badge][]][socket-link]
14
14
 
15
- Version: 4.13.19
16
15
 
17
16
  Event Client for xylabs ESB
18
17
 
19
- ## Documentation
18
+ ## Reference
19
+
20
+ **@xylabs/pixel**
21
+
22
+ ***
23
+
24
+ ## Classes
25
+
26
+ - [PixelApi](#classes/PixelApi)
27
+ - [XyPixel](#classes/XyPixel)
28
+ - [Referrer](#classes/Referrer)
29
+ - [UniqueUserId](#classes/UniqueUserId)
30
+ - [UserEventHandler](#classes/UserEventHandler)
31
+ - [UtmFields](#classes/UtmFields)
32
+ - [XyUserEventHandler](#classes/XyUserEventHandler)
33
+
34
+ ## Interfaces
35
+
36
+ - [UserEvent](#interfaces/UserEvent)
37
+ - [CommonFields](#interfaces/CommonFields)
38
+ - [FunnelStartedFields](#interfaces/FunnelStartedFields)
39
+ - [PurchaseFields](#interfaces/PurchaseFields)
40
+ - [TestStartedFields](#interfaces/TestStartedFields)
41
+ - [UserClickFields](#interfaces/UserClickFields)
42
+ - [ViewContentFields](#interfaces/ViewContentFields)
43
+ - [XyLabsTrackingEventJson](#interfaces/XyLabsTrackingEventJson)
44
+
45
+ ## Type Aliases
46
+
47
+ - [UserEventSystem](#type-aliases/UserEventSystem)
48
+
49
+ ### classes
50
+
51
+ ### <a id="PixelApi"></a>PixelApi
52
+
53
+ [**@xylabs/pixel**](#../README)
54
+
55
+ ***
56
+
57
+ ## Constructors
58
+
59
+ ### Constructor
60
+
61
+ ```ts
62
+ new PixelApi(baseUri): PixelApi;
63
+ ```
64
+
65
+ ### Parameters
66
+
67
+ #### baseUri
68
+
69
+ `string` = `'prod'`
70
+
71
+ ### Returns
72
+
73
+ `PixelApi`
74
+
75
+ ## Methods
76
+
77
+ ### trackEvents()
78
+
79
+ ```ts
80
+ trackEvents(events): Promise<any>;
81
+ ```
82
+
83
+ ### Parameters
84
+
85
+ #### events
86
+
87
+ [`UserEvent`](#../interfaces/UserEvent)[]
88
+
89
+ ### Returns
90
+
91
+ `Promise`\<`any`\>
92
+
93
+ ### <a id="Referrer"></a>Referrer
94
+
95
+ [**@xylabs/pixel**](#../README)
96
+
97
+ ***
98
+
99
+ ## Constructors
100
+
101
+ ### Constructor
102
+
103
+ ```ts
104
+ new Referrer(): Referrer;
105
+ ```
106
+
107
+ ### Returns
108
+
109
+ `Referrer`
110
+
111
+ ## Properties
112
+
113
+ ### local
114
+
115
+ ```ts
116
+ local: string;
117
+ ```
118
+
119
+ ***
120
+
121
+ ### session
122
+
123
+ ```ts
124
+ session: string;
125
+ ```
126
+
127
+ ## Methods
128
+
129
+ ### toJson()
130
+
131
+ ```ts
132
+ toJson():
133
+ | undefined
134
+ | {
135
+ local: string;
136
+ session: string;
137
+ };
138
+ ```
139
+
140
+ ### Returns
141
+
142
+ \| `undefined`
143
+ \| \{
144
+ `local`: `string`;
145
+ `session`: `string`;
146
+ \}
147
+
148
+ ### <a id="UniqueUserId"></a>UniqueUserId
149
+
150
+ [**@xylabs/pixel**](#../README)
151
+
152
+ ***
153
+
154
+ ## Constructors
155
+
156
+ ### Constructor
157
+
158
+ ```ts
159
+ new UniqueUserId(): UniqueUserId;
160
+ ```
161
+
162
+ ### Returns
163
+
164
+ `UniqueUserId`
165
+
166
+ ## Properties
167
+
168
+ ### id
169
+
170
+ ```ts
171
+ id: string;
172
+ ```
173
+
174
+ ## Methods
175
+
176
+ ### toString()
177
+
178
+ ```ts
179
+ toString(): string;
180
+ ```
181
+
182
+ ### Returns
183
+
184
+ `string`
185
+
186
+ ### <a id="UserEventHandler"></a>UserEventHandler
187
+
188
+ [**@xylabs/pixel**](#../README)
189
+
190
+ ***
191
+
192
+ ## Extended by
193
+
194
+ - [`XyUserEventHandler`](#XyUserEventHandler)
195
+
196
+ ## Type Parameters
197
+
198
+ ### TData
199
+
200
+ `TData` *extends* `EmptyObject`
201
+
202
+ ## Constructors
203
+
204
+ ### Constructor
205
+
206
+ ```ts
207
+ new UserEventHandler<TData>(): UserEventHandler<TData>;
208
+ ```
209
+
210
+ ### Returns
211
+
212
+ `UserEventHandler`\<`TData`\>
213
+
214
+ ## Methods
215
+
216
+ ### funnelStarted()
217
+
218
+ ```ts
219
+ abstract funnelStarted<T>(fields): Promisable<void>;
220
+ ```
221
+
222
+ ### Type Parameters
223
+
224
+ #### T
225
+
226
+ `T` *extends* `object`
227
+
228
+ ### Parameters
229
+
230
+ #### fields
231
+
232
+ [`FunnelStartedFields`](#../interfaces/FunnelStartedFields) | `T`
233
+
234
+ ### Returns
235
+
236
+ `Promisable`\<`void`\>
237
+
238
+ ***
239
+
240
+ ### testStarted()
241
+
242
+ ```ts
243
+ abstract testStarted<T>(fields): Promisable<void>;
244
+ ```
245
+
246
+ ### Type Parameters
247
+
248
+ #### T
249
+
250
+ `T` *extends* `object`
251
+
252
+ ### Parameters
253
+
254
+ #### fields
255
+
256
+ [`TestStartedFields`](#../interfaces/TestStartedFields) | `T`
257
+
258
+ ### Returns
259
+
260
+ `Promisable`\<`void`\>
261
+
262
+ ***
263
+
264
+ ### userClick()
265
+
266
+ ```ts
267
+ abstract userClick<T>(fields): Promisable<void>;
268
+ ```
269
+
270
+ ### Type Parameters
271
+
272
+ #### T
273
+
274
+ `T` *extends* `object`
275
+
276
+ ### Parameters
277
+
278
+ #### fields
279
+
280
+ [`UserClickFields`](#../interfaces/UserClickFields) | `T`
281
+
282
+ ### Returns
283
+
284
+ `Promisable`\<`void`\>
285
+
286
+ ***
287
+
288
+ ### viewContent()
289
+
290
+ ```ts
291
+ abstract viewContent<T>(fields): Promisable<void>;
292
+ ```
293
+
294
+ ### Type Parameters
295
+
296
+ #### T
297
+
298
+ `T` *extends* `object`
299
+
300
+ ### Parameters
301
+
302
+ #### fields
303
+
304
+ `T` | [`ViewContentFields`](#../interfaces/ViewContentFields)
305
+
306
+ ### Returns
307
+
308
+ `Promisable`\<`void`\>
309
+
310
+ ### <a id="UtmFields"></a>UtmFields
311
+
312
+ [**@xylabs/pixel**](#../README)
313
+
314
+ ***
315
+
316
+ ## Constructors
317
+
318
+ ### Constructor
319
+
320
+ ```ts
321
+ new UtmFields(): UtmFields;
322
+ ```
323
+
324
+ ### Returns
325
+
326
+ `UtmFields`
327
+
328
+ ## Properties
329
+
330
+ ### fields
331
+
332
+ ```ts
333
+ fields: Record<string, string>[] = [];
334
+ ```
335
+
336
+ ## Methods
337
+
338
+ ### getUtmRecord()
339
+
340
+ ```ts
341
+ getUtmRecord(): null | Record<string, string>;
342
+ ```
343
+
344
+ ### Returns
345
+
346
+ `null` \| `Record`\<`string`, `string`\>
347
+
348
+ ***
349
+
350
+ ### toString()
351
+
352
+ ```ts
353
+ toString(): string;
354
+ ```
355
+
356
+ ### Returns
357
+
358
+ `string`
359
+
360
+ ***
361
+
362
+ ### update()
363
+
364
+ ```ts
365
+ update(): Record<string, string>[];
366
+ ```
367
+
368
+ ### Returns
369
+
370
+ `Record`\<`string`, `string`\>[]
371
+
372
+ ### <a id="XyPixel"></a>XyPixel
373
+
374
+ [**@xylabs/pixel**](#../README)
375
+
376
+ ***
377
+
378
+ ## Properties
379
+
380
+ ### api
381
+
382
+ ```ts
383
+ static api: PixelApi;
384
+ ```
385
+
386
+ ***
387
+
388
+ ### cid
389
+
390
+ ```ts
391
+ cid: string;
392
+ ```
393
+
394
+ ***
395
+
396
+ ### email?
397
+
398
+ ```ts
399
+ optional email: string;
400
+ ```
401
+
402
+ ***
403
+
404
+ ### email\_hash?
405
+
406
+ ```ts
407
+ optional email_hash: null | string;
408
+ ```
409
+
410
+ ***
411
+
412
+ ### exids?
413
+
414
+ ```ts
415
+ optional exids: ExIds;
416
+ ```
417
+
418
+ ***
419
+
420
+ ### pixelId?
421
+
422
+ ```ts
423
+ optional pixelId: string;
424
+ ```
425
+
426
+ ***
427
+
428
+ ### queue
429
+
430
+ ```ts
431
+ queue: UserEvent[] = [];
432
+ ```
433
+
434
+ ## Accessors
435
+
436
+ ### instance
437
+
438
+ ### Get Signature
439
+
440
+ ```ts
441
+ get static instance(): XyPixel;
442
+ ```
443
+
444
+ #### Returns
445
+
446
+ `XyPixel`
447
+
448
+ ## Methods
449
+
450
+ ### init()
451
+
452
+ ```ts
453
+ static init(pixelId): XyPixel;
454
+ ```
455
+
456
+ ### Parameters
457
+
458
+ #### pixelId
459
+
460
+ `string`
461
+
462
+ ### Returns
463
+
464
+ `XyPixel`
465
+
466
+ ***
467
+
468
+ ### selectApi()
469
+
470
+ ```ts
471
+ static selectApi(api): void;
472
+ ```
473
+
474
+ ### Parameters
475
+
476
+ #### api
477
+
478
+ [`PixelApi`](#PixelApi)
479
+
480
+ ### Returns
481
+
482
+ `void`
483
+
484
+ ***
485
+
486
+ ### identify()
487
+
488
+ ```ts
489
+ identify(email?): void;
490
+ ```
491
+
492
+ ### Parameters
493
+
494
+ #### email?
495
+
496
+ `string`
497
+
498
+ ### Returns
499
+
500
+ `void`
501
+
502
+ ***
503
+
504
+ ### send()
505
+
506
+ ```ts
507
+ send<T>(
508
+ event,
509
+ fields?,
510
+ eventId?): Promise<void>;
511
+ ```
512
+
513
+ ### Type Parameters
514
+
515
+ #### T
516
+
517
+ `T` *extends* `JsonObject`
518
+
519
+ ### Parameters
520
+
521
+ #### event
522
+
523
+ `string`
524
+
525
+ #### fields?
526
+
527
+ `T`
528
+
529
+ #### eventId?
530
+
531
+ `string`
532
+
533
+ ### Returns
534
+
535
+ `Promise`\<`void`\>
536
+
537
+ ### <a id="XyUserEventHandler"></a>XyUserEventHandler
538
+
539
+ [**@xylabs/pixel**](#../README)
540
+
541
+ ***
542
+
543
+ ## Extends
544
+
545
+ - [`UserEventHandler`](#UserEventHandler)\<`T`\>
546
+
547
+ ## Type Parameters
548
+
549
+ ### T
550
+
551
+ `T` *extends* `EmptyObject` = `EmptyObject`
552
+
553
+ ## Constructors
554
+
555
+ ### Constructor
556
+
557
+ ```ts
558
+ new XyUserEventHandler<T>(): XyUserEventHandler<T>;
559
+ ```
560
+
561
+ ### Returns
562
+
563
+ `XyUserEventHandler`\<`T`\>
564
+
565
+ ### Overrides
566
+
567
+ [`UserEventHandler`](#UserEventHandler).[`constructor`](UserEventHandler.md#constructor)
568
+
569
+ ## Methods
570
+
571
+ ### funnelStarted()
572
+
573
+ ```ts
574
+ funnelStarted(fields): Promise<void>;
575
+ ```
576
+
577
+ ### Parameters
578
+
579
+ #### fields
580
+
581
+ [`FunnelStartedFields`](#../interfaces/FunnelStartedFields) | `T`
582
+
583
+ ### Returns
584
+
585
+ `Promise`\<`void`\>
586
+
587
+ ### Overrides
588
+
589
+ [`UserEventHandler`](#UserEventHandler).[`funnelStarted`](UserEventHandler.md#funnelstarted)
590
+
591
+ ***
592
+
593
+ ### purchase()
594
+
595
+ ```ts
596
+ purchase(fields): Promise<void>;
597
+ ```
598
+
599
+ ### Parameters
600
+
601
+ #### fields
602
+
603
+ [`PurchaseFields`](#../interfaces/PurchaseFields) | `T`
604
+
605
+ ### Returns
606
+
607
+ `Promise`\<`void`\>
608
+
609
+ ***
610
+
611
+ ### testStarted()
612
+
613
+ ```ts
614
+ testStarted(fields): Promise<void>;
615
+ ```
616
+
617
+ ### Parameters
618
+
619
+ #### fields
620
+
621
+ [`TestStartedFields`](#../interfaces/TestStartedFields) | `T`
622
+
623
+ ### Returns
624
+
625
+ `Promise`\<`void`\>
626
+
627
+ ### Overrides
628
+
629
+ [`UserEventHandler`](#UserEventHandler).[`testStarted`](UserEventHandler.md#teststarted)
630
+
631
+ ***
632
+
633
+ ### userClick()
634
+
635
+ ```ts
636
+ userClick(fields): Promise<void>;
637
+ ```
638
+
639
+ ### Parameters
640
+
641
+ #### fields
642
+
643
+ [`UserClickFields`](#../interfaces/UserClickFields) | `T`
644
+
645
+ ### Returns
646
+
647
+ `Promise`\<`void`\>
648
+
649
+ ### Overrides
650
+
651
+ [`UserEventHandler`](#UserEventHandler).[`userClick`](UserEventHandler.md#userclick)
652
+
653
+ ***
654
+
655
+ ### viewContent()
656
+
657
+ ```ts
658
+ viewContent(fields): Promise<void>;
659
+ ```
660
+
661
+ ### Parameters
662
+
663
+ #### fields
664
+
665
+ [`ViewContentFields`](#../interfaces/ViewContentFields) | `T`
666
+
667
+ ### Returns
668
+
669
+ `Promise`\<`void`\>
670
+
671
+ ### Overrides
672
+
673
+ [`UserEventHandler`](#UserEventHandler).[`viewContent`](UserEventHandler.md#viewcontent)
674
+
675
+ ### interfaces
676
+
677
+ ### <a id="CommonFields"></a>CommonFields
678
+
679
+ [**@xylabs/pixel**](#../README)
680
+
681
+ ***
682
+
683
+ ## Extended by
684
+
685
+ - [`FunnelStartedFields`](#FunnelStartedFields)
686
+ - [`PurchaseFields`](#PurchaseFields)
687
+ - [`TestStartedFields`](#TestStartedFields)
688
+ - [`UserClickFields`](#UserClickFields)
689
+ - [`ViewContentFields`](#ViewContentFields)
690
+
691
+ ## Properties
692
+
693
+ ### funnel?
694
+
695
+ ```ts
696
+ optional funnel: string;
697
+ ```
698
+
699
+ ***
700
+
701
+ ### testData?
702
+
703
+ ```ts
704
+ optional testData: string;
705
+ ```
706
+
707
+ ### <a id="FunnelStartedFields"></a>FunnelStartedFields
708
+
709
+ [**@xylabs/pixel**](#../README)
710
+
711
+ ***
712
+
713
+ ## Extends
714
+
715
+ - [`CommonFields`](#CommonFields)
716
+
717
+ ## Properties
718
+
719
+ ### funnel?
720
+
721
+ ```ts
722
+ optional funnel: string;
723
+ ```
724
+
725
+ ### Inherited from
726
+
727
+ [`CommonFields`](#CommonFields).[`funnel`](CommonFields.md#funnel)
728
+
729
+ ***
730
+
731
+ ### testData?
732
+
733
+ ```ts
734
+ optional testData: string;
735
+ ```
736
+
737
+ ### Inherited from
738
+
739
+ [`CommonFields`](#CommonFields).[`testData`](CommonFields.md#testdata)
740
+
741
+ ***
742
+
743
+ ### name
744
+
745
+ ```ts
746
+ name: string;
747
+ ```
748
+
749
+ ### <a id="PurchaseFields"></a>PurchaseFields
750
+
751
+ [**@xylabs/pixel**](#../README)
752
+
753
+ ***
754
+
755
+ ## Extends
756
+
757
+ - [`CommonFields`](#CommonFields)
758
+
759
+ ## Properties
760
+
761
+ ### funnel?
762
+
763
+ ```ts
764
+ optional funnel: string;
765
+ ```
766
+
767
+ ### Inherited from
768
+
769
+ [`CommonFields`](#CommonFields).[`funnel`](CommonFields.md#funnel)
770
+
771
+ ***
772
+
773
+ ### testData?
774
+
775
+ ```ts
776
+ optional testData: string;
777
+ ```
778
+
779
+ ### Inherited from
780
+
781
+ [`CommonFields`](#CommonFields).[`testData`](CommonFields.md#testdata)
782
+
783
+ ***
784
+
785
+ ### id
786
+
787
+ ```ts
788
+ id: string;
789
+ ```
790
+
791
+ ***
792
+
793
+ ### name?
794
+
795
+ ```ts
796
+ optional name: string;
797
+ ```
798
+
799
+ ***
800
+
801
+ ### price?
802
+
803
+ ```ts
804
+ optional price: number;
805
+ ```
806
+
807
+ ***
808
+
809
+ ### value?
810
+
811
+ ```ts
812
+ optional value: number;
813
+ ```
814
+
815
+ ### <a id="TestStartedFields"></a>TestStartedFields
816
+
817
+ [**@xylabs/pixel**](#../README)
818
+
819
+ ***
820
+
821
+ ## Extends
822
+
823
+ - [`CommonFields`](#CommonFields)
824
+
825
+ ## Properties
826
+
827
+ ### funnel?
828
+
829
+ ```ts
830
+ optional funnel: string;
831
+ ```
832
+
833
+ ### Inherited from
834
+
835
+ [`CommonFields`](#CommonFields).[`funnel`](CommonFields.md#funnel)
836
+
837
+ ***
838
+
839
+ ### testData?
840
+
841
+ ```ts
842
+ optional testData: string;
843
+ ```
844
+
845
+ ### Inherited from
846
+
847
+ [`CommonFields`](#CommonFields).[`testData`](CommonFields.md#testdata)
848
+
849
+ ***
850
+
851
+ ### name
852
+
853
+ ```ts
854
+ name: string;
855
+ ```
856
+
857
+ ### <a id="UserClickFields"></a>UserClickFields
858
+
859
+ [**@xylabs/pixel**](#../README)
860
+
861
+ ***
862
+
863
+ ## Extends
864
+
865
+ - [`CommonFields`](#CommonFields)
866
+
867
+ ## Properties
868
+
869
+ ### funnel?
870
+
871
+ ```ts
872
+ optional funnel: string;
873
+ ```
874
+
875
+ ### Inherited from
876
+
877
+ [`CommonFields`](#CommonFields).[`funnel`](CommonFields.md#funnel)
878
+
879
+ ***
880
+
881
+ ### testData?
882
+
883
+ ```ts
884
+ optional testData: string;
885
+ ```
886
+
887
+ ### Inherited from
888
+
889
+ [`CommonFields`](#CommonFields).[`testData`](CommonFields.md#testdata)
890
+
891
+ ***
892
+
893
+ ### elementName
894
+
895
+ ```ts
896
+ elementName: string;
897
+ ```
898
+
899
+ ***
900
+
901
+ ### elementType
902
+
903
+ ```ts
904
+ elementType: string;
905
+ ```
906
+
907
+ ***
908
+
909
+ ### intent?
910
+
911
+ ```ts
912
+ optional intent: string;
913
+ ```
914
+
915
+ ***
916
+
917
+ ### placement?
918
+
919
+ ```ts
920
+ optional placement: string;
921
+ ```
922
+
923
+ ### <a id="UserEvent"></a>UserEvent
924
+
925
+ [**@xylabs/pixel**](#../README)
926
+
927
+ ***
928
+
929
+ ## Properties
930
+
931
+ ### cid
932
+
933
+ ```ts
934
+ cid: string;
935
+ ```
936
+
937
+ ***
938
+
939
+ ### create\_time?
940
+
941
+ ```ts
942
+ optional create_time: number;
943
+ ```
944
+
945
+ ***
946
+
947
+ ### email?
948
+
949
+ ```ts
950
+ optional email: string;
951
+ ```
952
+
953
+ ***
954
+
955
+ ### email\_hash?
956
+
957
+ ```ts
958
+ optional email_hash: string;
959
+ ```
960
+
961
+ ***
962
+
963
+ ### event?
964
+
965
+ ```ts
966
+ optional event: string;
967
+ ```
968
+
969
+ ***
970
+
971
+ ### event\_id?
972
+
973
+ ```ts
974
+ optional event_id: string;
975
+ ```
976
+
977
+ ***
978
+
979
+ ### exids?
980
+
981
+ ```ts
982
+ optional exids: ExIds;
983
+ ```
984
+
985
+ ***
986
+
987
+ ### fields?
988
+
989
+ ```ts
990
+ optional fields: Record<string, unknown>;
991
+ ```
992
+
993
+ ***
994
+
995
+ ### host?
996
+
997
+ ```ts
998
+ optional host: string;
999
+ ```
1000
+
1001
+ ***
1002
+
1003
+ ### pathname?
1004
+
1005
+ ```ts
1006
+ optional pathname: string;
1007
+ ```
1008
+
1009
+ ***
1010
+
1011
+ ### pixel?
1012
+
1013
+ ```ts
1014
+ optional pixel: string;
1015
+ ```
1016
+
1017
+ ***
1018
+
1019
+ ### receive\_time?
1020
+
1021
+ ```ts
1022
+ optional receive_time: number;
1023
+ ```
1024
+
1025
+ ***
1026
+
1027
+ ### referrer?
1028
+
1029
+ ```ts
1030
+ optional referrer: object;
1031
+ ```
1032
+
1033
+ ### local
1034
+
1035
+ ```ts
1036
+ local: string;
1037
+ ```
1038
+
1039
+ ### session
1040
+
1041
+ ```ts
1042
+ session: string;
1043
+ ```
1044
+
1045
+ ***
1046
+
1047
+ ### rid?
1048
+
1049
+ ```ts
1050
+ optional rid: string;
1051
+ ```
1052
+
1053
+ ***
1054
+
1055
+ ### system?
1056
+
1057
+ ```ts
1058
+ optional system: ParsedResult;
1059
+ ```
1060
+
1061
+ ***
1062
+
1063
+ ### uid?
1064
+
1065
+ ```ts
1066
+ optional uid: string;
1067
+ ```
1068
+
1069
+ ***
1070
+
1071
+ ### utm?
1072
+
1073
+ ```ts
1074
+ optional utm: Record<string, string>[] | Record<string, string[]>;
1075
+ ```
1076
+
1077
+ ### <a id="ViewContentFields"></a>ViewContentFields
1078
+
1079
+ [**@xylabs/pixel**](#../README)
1080
+
1081
+ ***
1082
+
1083
+ ## Extends
1084
+
1085
+ - [`CommonFields`](#CommonFields)
1086
+
1087
+ ## Properties
1088
+
1089
+ ### funnel?
1090
+
1091
+ ```ts
1092
+ optional funnel: string;
1093
+ ```
1094
+
1095
+ ### Inherited from
1096
+
1097
+ [`CommonFields`](#CommonFields).[`funnel`](CommonFields.md#funnel)
1098
+
1099
+ ***
1100
+
1101
+ ### testData?
1102
+
1103
+ ```ts
1104
+ optional testData: string;
1105
+ ```
1106
+
1107
+ ### Inherited from
1108
+
1109
+ [`CommonFields`](#CommonFields).[`testData`](CommonFields.md#testdata)
1110
+
1111
+ ***
1112
+
1113
+ ### name
1114
+
1115
+ ```ts
1116
+ name: string;
1117
+ ```
1118
+
1119
+ ***
1120
+
1121
+ ### path
1122
+
1123
+ ```ts
1124
+ path: string;
1125
+ ```
1126
+
1127
+ ### <a id="XyLabsTrackingEventJson"></a>XyLabsTrackingEventJson
1128
+
1129
+ [**@xylabs/pixel**](#../README)
1130
+
1131
+ ***
1132
+
1133
+ ## Properties
1134
+
1135
+ ### cid
1136
+
1137
+ ```ts
1138
+ cid: string;
1139
+ ```
1140
+
1141
+ ***
1142
+
1143
+ ### create\_time?
1144
+
1145
+ ```ts
1146
+ optional create_time: number;
1147
+ ```
1148
+
1149
+ ***
1150
+
1151
+ ### email?
1152
+
1153
+ ```ts
1154
+ optional email: string;
1155
+ ```
1156
+
1157
+ ***
1158
+
1159
+ ### email\_hash?
1160
+
1161
+ ```ts
1162
+ optional email_hash: string;
1163
+ ```
1164
+
1165
+ ***
1166
+
1167
+ ### event?
1168
+
1169
+ ```ts
1170
+ optional event: string;
1171
+ ```
1172
+
1173
+ ***
1174
+
1175
+ ### event\_id?
1176
+
1177
+ ```ts
1178
+ optional event_id: string;
1179
+ ```
1180
+
1181
+ ***
1182
+
1183
+ ### exids?
1184
+
1185
+ ```ts
1186
+ optional exids: Record<string, string>;
1187
+ ```
1188
+
1189
+ ***
1190
+
1191
+ ### fields?
1192
+
1193
+ ```ts
1194
+ optional fields: Record<string, unknown>;
1195
+ ```
1196
+
1197
+ ***
1198
+
1199
+ ### host?
1200
+
1201
+ ```ts
1202
+ optional host: string;
1203
+ ```
1204
+
1205
+ ***
1206
+
1207
+ ### ip?
1208
+
1209
+ ```ts
1210
+ optional ip: string;
1211
+ ```
1212
+
1213
+ ***
1214
+
1215
+ ### pathname?
1216
+
1217
+ ```ts
1218
+ optional pathname: string;
1219
+ ```
1220
+
1221
+ ***
1222
+
1223
+ ### pixel?
1224
+
1225
+ ```ts
1226
+ optional pixel: string;
1227
+ ```
1228
+
1229
+ ***
1230
+
1231
+ ### receive\_time?
1232
+
1233
+ ```ts
1234
+ optional receive_time: number;
1235
+ ```
1236
+
1237
+ ***
1238
+
1239
+ ### rid?
1240
+
1241
+ ```ts
1242
+ optional rid: string;
1243
+ ```
1244
+
1245
+ ***
1246
+
1247
+ ### system?
1248
+
1249
+ ```ts
1250
+ optional system: unknown;
1251
+ ```
1252
+
1253
+ ***
1254
+
1255
+ ### ua?
1256
+
1257
+ ```ts
1258
+ optional ua: string;
1259
+ ```
1260
+
1261
+ ***
1262
+
1263
+ ### uid?
1264
+
1265
+ ```ts
1266
+ optional uid: string;
1267
+ ```
1268
+
1269
+ ***
1270
+
1271
+ ### utm?
1272
+
1273
+ ```ts
1274
+ optional utm: Record<string, string>[] | Record<string, string[]>;
1275
+ ```
1276
+
1277
+ ### type-aliases
1278
+
1279
+ ### <a id="UserEventSystem"></a>UserEventSystem
1280
+
1281
+ [**@xylabs/pixel**](#../README)
1282
+
1283
+ ***
1284
+
1285
+ ```ts
1286
+ type UserEventSystem = Bowser.Parser.ParsedResult;
1287
+ ```
20
1288
 
21
- Coming Soon!
22
1289
 
23
1290
  Part of [sdk-js](https://www.npmjs.com/package/@xyo-network/sdk-js)
24
1291
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xylabs/pixel",
3
- "version": "4.13.20",
3
+ "version": "4.13.22",
4
4
  "description": "Event Client for xylabs ESB",
5
5
  "homepage": "https://xylabs.com",
6
6
  "bugs": {
@@ -35,10 +35,10 @@
35
35
  "src"
36
36
  ],
37
37
  "dependencies": {
38
- "@xylabs/assert": "^4.13.20",
39
- "@xylabs/object": "^4.13.20",
40
- "@xylabs/promise": "^4.13.20",
41
- "@xylabs/typeof": "^4.13.20",
38
+ "@xylabs/assert": "^4.13.22",
39
+ "@xylabs/object": "^4.13.22",
40
+ "@xylabs/promise": "^4.13.22",
41
+ "@xylabs/typeof": "^4.13.22",
42
42
  "async-mutex": "^0.5.0",
43
43
  "axios": "^1.10.0",
44
44
  "bowser": "^2.11.0",
@@ -48,7 +48,7 @@
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/js-cookie": "^3.0.6",
51
- "@types/node": "^24.0.14",
51
+ "@types/node": "^24.0.15",
52
52
  "@types/spark-md5": "^3.0.5",
53
53
  "@xylabs/ts-scripts-yarn3": "^7.0.0",
54
54
  "@xylabs/tsconfig-dom": "^7.0.0",