UNPKG

analytica-frontend-lib

Version:

Repositório público dos componentes utilizados nas plataformas da Analytica Ensino

21 lines 896 B
import type { OverviewAggregationType } from '../components/SimulatedStudentsOverview/types'; /** * Get the overview aggregation type based on user profile * * - GENERAL_MANAGER: students (default) * - REGIONAL_MANAGER: municipalities (aggregated by city) * - UNIT_MANAGER: classes (aggregated by turma) * - TEACHER: students (default) * * @param profileName - The user's profile name * @returns The aggregation type to use */ export declare function getAggregationTypeByProfile(profileName: string | undefined): OverviewAggregationType; /** * Check if the profile should use aggregated overview (classes or municipalities) * * @param profileName - The user's profile name * @returns True if the profile should use aggregated overview */ export declare function shouldUseAggregatedOverview(profileName: string | undefined): boolean; //# sourceMappingURL=profileAggregation.d.ts.map