260515_01_ENH: 클라이언트 수정사항 반영 및 다른 조사들 data 연결
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
import {CATEGORY_KEY_MAP, DIV_KEY_MAP} from "@/config/kfpaConfig";
|
||||
import type {
|
||||
CATEGORY_KEY_MAP,
|
||||
DASHBOARD_COMMENT_ROWS_BY_CATEGORY,
|
||||
DASHBOARD_METRICS_BY_CATEGORY,
|
||||
} from "@/config/kfpaConfig";
|
||||
|
||||
export type CategoryKey = keyof typeof CATEGORY_KEY_MAP;
|
||||
|
||||
export type DivKey = keyof typeof DIV_KEY_MAP;
|
||||
export type DivKey = string;
|
||||
|
||||
export type CommentValue = {
|
||||
directExperience: string;
|
||||
@@ -10,30 +14,60 @@ export type CommentValue = {
|
||||
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;
|
||||
safeHelp: number;
|
||||
recHelp: number;
|
||||
staffProf: number;
|
||||
staffAtt: 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>;
|
||||
|
||||
Reference in New Issue
Block a user