@hawk.so/types 0.6.3 → 0.6.4
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.
|
@@ -63,6 +63,11 @@ export interface CatcherMessage<Type extends CatcherMessageType> {
|
|
|
63
63
|
* All information about the event
|
|
64
64
|
*/
|
|
65
65
|
payload: CatcherMessagePayload<Type>;
|
|
66
|
+
/**
|
|
67
|
+
* Number of identical occurrences this message represents.
|
|
68
|
+
* Computed on Catcher side to dedupe similar events caused in the same time.
|
|
69
|
+
*/
|
|
70
|
+
count?: number;
|
|
66
71
|
}
|
|
67
72
|
/**
|
|
68
73
|
* Type that represents a Catcher message accepted by the collector
|
|
@@ -29,6 +29,12 @@ export interface RepetitionDBScheme {
|
|
|
29
29
|
* (created by the Collector)
|
|
30
30
|
*/
|
|
31
31
|
timestamp: number;
|
|
32
|
+
/**
|
|
33
|
+
* Number of real client-side occurrences merged into this single repetition
|
|
34
|
+
* by Catcher-side debounce (see CatcherMessage.count).
|
|
35
|
+
* Absent or 1 — this repetition represents a single occurrence.
|
|
36
|
+
*/
|
|
37
|
+
count?: number;
|
|
32
38
|
}
|
|
33
39
|
/**
|
|
34
40
|
* Repetition with decoded event data
|
package/package.json
CHANGED
|
@@ -83,6 +83,12 @@ export interface CatcherMessage<Type extends CatcherMessageType> {
|
|
|
83
83
|
* All information about the event
|
|
84
84
|
*/
|
|
85
85
|
payload: CatcherMessagePayload<Type>;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Number of identical occurrences this message represents.
|
|
89
|
+
* Computed on Catcher side to dedupe similar events caused in the same time.
|
|
90
|
+
*/
|
|
91
|
+
count?: number;
|
|
86
92
|
}
|
|
87
93
|
|
|
88
94
|
/**
|
|
@@ -34,6 +34,13 @@ export interface RepetitionDBScheme {
|
|
|
34
34
|
* (created by the Collector)
|
|
35
35
|
*/
|
|
36
36
|
timestamp: number;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Number of real client-side occurrences merged into this single repetition
|
|
40
|
+
* by Catcher-side debounce (see CatcherMessage.count).
|
|
41
|
+
* Absent or 1 — this repetition represents a single occurrence.
|
|
42
|
+
*/
|
|
43
|
+
count?: number;
|
|
37
44
|
}
|
|
38
45
|
|
|
39
46
|
/**
|