1 import type { Api } from '@proton/shared/lib/interfaces';
3 import { TelemetryDesktopEvents, TelemetryMeasurementGroups } from '../api/telemetry';
4 import { DESKTOP_PLATFORMS } from '../constants';
5 import { sendTelemetryReport } from '../helpers/metrics';
7 export async function reportClientLaunch(installSource: string | null, product: 'mail' | 'pass', api: Api) {
8 if (typeof installSource !== 'string') {
12 await sendTelemetryReport({
14 event: TelemetryDesktopEvents.client_first_launch,
15 measurementGroup: TelemetryMeasurementGroups.clientInstalls,
17 client: DESKTOP_PLATFORMS.WINDOWS,
19 install_source: installSource,