74 lines
1.7 KiB
TypeScript
74 lines
1.7 KiB
TypeScript
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<string, CommentValue>;
|
|
};
|
|
|
|
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<CsiSummary, "wave">;
|
|
|
|
export type CsiMetricKey = keyof Omit<CsiData, "wave">;
|
|
|
|
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<string, CsiRank>;
|
|
commentValues: Record<string, CommentValue>;
|
|
};
|
|
|
|
export type CsiSummaryMap = Record<string, CsiSummary[]>;
|
|
|
|
export type CsiDataMap = Record<string, CsiData[]>;
|
|
|
|
export type DivDetailDataMap = Record<string, DivDetailData>;
|