import type { CATEGORY_KEY_MAP, DASHBOARD_COMMENT_ROWS_BY_CATEGORY, DASHBOARD_METRICS_BY_CATEGORY, } from "@/config/kfpa.config"; export type CategoryKey = keyof typeof CATEGORY_KEY_MAP; export type DivKey = string; export type CommentValue = { directExperience: string; indirectExperience: string; capability: string; }; export type CommentField = keyof CommentValue; export type CommentColumn = { key: string; label: string; }; export type RequestWriteDivComment = { divId: number; commentValues: Record; }; export type CsiSummary = { wave: number; sampleCount: number | null; csi: number | null; }; export type CsiData = { wave: number; sampleCount: number; csi: number; direct1: number; direct2: number; indirect1: number; indirect2: number; }; export type CsiSummaryMetricKey = keyof Omit; export type CsiMetricKey = keyof Omit; export type DashboardMetricGroup = "csi" | "direct" | "indirect"; export type DashboardMetricConfig = (typeof DASHBOARD_METRICS_BY_CATEGORY)[keyof typeof DASHBOARD_METRICS_BY_CATEGORY][number]; export type DashboardCommentRowConfig = (typeof DASHBOARD_COMMENT_ROWS_BY_CATEGORY)[keyof typeof DASHBOARD_COMMENT_ROWS_BY_CATEGORY][number]; export type CsiRank = { csi: number; divRank: number; }; export type RankRowConfig = readonly [string, string]; export type DivDetailData = { csiRanks: Record; commentValues: Record; }; export type CsiSummaryMap = Record; export type CsiDataMap = Record; export type DivDetailDataMap = Record;