@100mslive/hms-video-store 0.12.3-alpha.2 → 0.12.3-alpha.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.
@@ -66,7 +66,7 @@ export default class AnalyticsEventFactory {
66
66
  }): AnalyticsEvent;
67
67
  static publishStats(properties: PublishAnalyticPayload): AnalyticsEvent;
68
68
  static subscribeStats(properties: SubscribeAnalyticPayload): AnalyticsEvent;
69
- static getKrispUsage(sessionID: string): AnalyticsEvent;
69
+ static getKrispUsage(duration: number): AnalyticsEvent;
70
70
  static transportLeave(): AnalyticsEvent;
71
71
  private static eventNameFor;
72
72
  private static getPropertiesWithError;
@@ -1,10 +1,11 @@
1
1
  import AnalyticsEvent from '../analytics/AnalyticsEvent';
2
- declare class PluginUsageTracker {
2
+ import { EventBus } from '../events/EventBus';
3
+ export declare class PluginUsageTracker {
4
+ private eventBus;
3
5
  private pluginUsage;
4
6
  private pluginLastAddedAt;
5
- getPluginUsage: (name: string, sessionID: string) => number | undefined;
6
- updatePluginUsageData: (event: AnalyticsEvent, sessionID: string) => void;
7
- private cleanup;
7
+ constructor(eventBus: EventBus);
8
+ getPluginUsage: (name: string) => number | undefined;
9
+ updatePluginUsageData: (event: AnalyticsEvent) => void;
10
+ cleanup: () => void;
8
11
  }
9
- export declare const pluginUsageTracker: PluginUsageTracker;
10
- export {};