1 import { TelemetryCollapsibleLeftSidebarEvents, TelemetryMeasurementGroups } from '@proton/shared/lib/api/telemetry';
2 import { sendTelemetryReport } from '@proton/shared/lib/helpers/metrics';
4 import type { APP_NAMES } from '../constants';
5 import type { Api } from '../interfaces';
7 export const enum COLLAPSE_EVENTS {
11 export const enum SOURCE_EVENT {
12 BUTTON_SIDEBAR = 'BUTTON_SIDEBAR',
13 BUTTON_FOLDERS = 'BUTTON_FOLDERS',
14 BUTTON_LABELS = 'BUTTON_LABELS',
17 export const sendRequestCollapsibleSidebarReport = ({
24 action: COLLAPSE_EVENTS;
25 application: APP_NAMES;
26 sourceEvent: SOURCE_EVENT;
28 void sendTelemetryReport({
30 measurementGroup: TelemetryMeasurementGroups.collapsibleLeftSidebar,
31 event: TelemetryCollapsibleLeftSidebarEvents.toggleLeftSidebar,