@vkontakte/videoplayer-statistics 1.0.100-dev.04f0bb5f.0 → 1.0.100-dev.319d6ebf.0
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/es2018.cjs +3 -3
- package/es2018.esm.js +3 -3
- package/es2024.cjs +3 -3
- package/es2024.esm.js +3 -3
- package/esnext.cjs +3 -3
- package/esnext.esm.js +3 -3
- package/evergreen.esm.js +3 -3
- package/package.json +3 -3
- package/types/ShareVSID.d.ts +3 -3
- package/types/index.d.ts +6 -5
- package/types/mediascopePixel/MediascopePixel.d.ts +36 -36
- package/types/mediascopePixel/Stopwatch.d.ts +10 -10
- package/types/mediascopePixel/types.d.ts +5 -5
- package/types/oneStat/Api.d.ts +35 -34
- package/types/oneStat/ApiTransport.d.ts +19 -19
- package/types/oneStat/Logger.d.ts +35 -35
- package/types/oneStat/OneStat.d.ts +309 -307
- package/types/oneStat/config.d.ts +32 -32
- package/types/oneStat/env.d.ts +3 -3
- package/types/oneStat/index.d.ts +9 -6
- package/types/oneStat/types.d.ts +43 -43
- package/types/oneStat/uiEvents.d.ts +19 -19
- package/types/oneStat/utils/mappers.d.ts +2 -2
- package/types/oneStat/utils/shorten.d.ts +1 -1
- package/types/oneStat/utils/timeSynchronisation.d.ts +8 -8
- package/types/oneStat/utils/watchCoverage.d.ts +4 -4
- package/types/oneStat/values.d.ts +63 -64
- package/types/shared/useModeController.d.ts +6 -5
- package/types/thinOneStat/Api.d.ts +32 -32
- package/types/thinOneStat/ApiTransport.d.ts +19 -19
- package/types/thinOneStat/Logger.d.ts +35 -35
- package/types/thinOneStat/ThinOneStat.d.ts +271 -271
- package/types/thinOneStat/config.d.ts +21 -20
- package/types/thinOneStat/env.d.ts +3 -3
- package/types/thinOneStat/events.d.ts +21 -21
- package/types/thinOneStat/index.d.ts +6 -4
- package/types/thinOneStat/types.d.ts +24 -24
- package/types/thinOneStat/utils/calculateTotalViewTime.d.ts +2 -2
- package/types/thinOneStat/utils/downloadBytes.d.ts +4 -4
- package/types/thinOneStat/utils/mappers.d.ts +3 -2
- package/types/thinOneStat/utils/timeSynchronisation.d.ts +8 -8
- package/types/thinOneStat/utils/watchCoverage.d.ts +4 -4
- package/types/thinOneStat/utils/watchedN.d.ts +5 -5
- package/types/thinOneStat/values.d.ts +67 -67
- package/es2015.cjs +0 -6
- package/es2015.esm.js +0 -6
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { IConfig } from
|
|
2
|
-
import { ILogger as IDebugLogger, IError, ISubject } from
|
|
3
|
-
import { IApi } from
|
|
4
|
-
import { ILogItem } from
|
|
1
|
+
import type { IConfig } from "./config";
|
|
2
|
+
import type { ILogger as IDebugLogger, IError, ISubject } from "@vkontakte/videoplayer-shared";
|
|
3
|
+
import type { IApi } from "./Api";
|
|
4
|
+
import type { ILogItem } from "./types";
|
|
5
5
|
export interface ILoggerParams {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
config: IConfig;
|
|
7
|
+
api: IApi;
|
|
8
|
+
debugLogger: IDebugLogger;
|
|
9
|
+
error$: ISubject<IError>;
|
|
10
|
+
userSalt?: string;
|
|
11
11
|
}
|
|
12
12
|
type FlushParams = {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
wantBeacon?: boolean;
|
|
14
|
+
clearStorage?: boolean;
|
|
15
15
|
};
|
|
16
16
|
export declare class Logger {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
17
|
+
private params;
|
|
18
|
+
private api;
|
|
19
|
+
private error$;
|
|
20
|
+
private subscription;
|
|
21
|
+
private userSalt;
|
|
22
|
+
private unsaltedStorage;
|
|
23
|
+
private lastVsid;
|
|
24
|
+
private isPaused;
|
|
25
|
+
private firstFlush;
|
|
26
|
+
private debouncedFlush;
|
|
27
|
+
private loggerDebugLog;
|
|
28
|
+
constructor(params: ILoggerParams);
|
|
29
|
+
private isUrgent;
|
|
30
|
+
private safeFlush;
|
|
31
|
+
private readFromStorage;
|
|
32
|
+
private addToStorage;
|
|
33
|
+
private getFromStorage;
|
|
34
|
+
private markStorageSent;
|
|
35
|
+
private housekeepStorage;
|
|
36
|
+
log(item: ILogItem): void;
|
|
37
|
+
flush({ wantBeacon, clearStorage }?: FlushParams): void;
|
|
38
|
+
pause(): void;
|
|
39
|
+
resume(): void;
|
|
40
|
+
destroy(): void;
|
|
41
41
|
}
|
|
42
42
|
export {};
|