| 1 | import { AnalyticsConfig } from "../.."; |
| 2 | |
| 3 | export interface AnalyticsMetadata { |
| 4 | extensionVersion: string; |
| 5 | } |
| 6 | |
| 7 | export interface ControlPlaneProxyInfo { |
| 8 | workspaceId?: string; |
| 9 | controlPlaneProxyUrl: string; |
| 10 | workOsAccessToken?: string; |
| 11 | } |
| 12 | |
| 13 | export interface IAnalyticsProvider { |
| 14 | capture(event: string, properties: { [key: string]: any }): Promise<void>; |
| 15 | setup( |
| 16 | config: AnalyticsConfig, |
| 17 | uniqueId: string, |
| 18 | controlPlaneProxyInfo?: ControlPlaneProxyInfo, |
| 19 | ): Promise<void>; |
| 20 | shutdown(): Promise<void>; |
| 21 | } |