import type { PageableList, PageableParams } from "@/shared/model"; import type { StAnlsDtlResponse } from "./statistics-analysis-detail-interface"; export interface StAnlsRsltResponse { rsltSn: number; // 결과 일련번호 anlsSn: number; // 분석 일련번호 vrfcTrgtSn: number; // 검증 대상 일련번호 admdstCd: string; // 행정구역 코드 admdstNm: string; // 행정구역 명칭 sido: string; // 시도 gugun: string; // 시군구 adstDong: string; // 행정동 drngBzmnCd: string; // 하수도 사업자 코드 pipeSeCd: string; // 파이프 구분 코드 fcltNm: string; // 시설명 addr: string; // 주소 prvyrVl: number | null; // 전년도 값 cryrVl: number | null; // 당해년도 값 chgRt: number | null; // 변경율 (r_i) trsfRt: number | null; // 변환 비율 (s_i) otlrTrsfRt: number | null; // 이상치 변환 비율 (E_i) otlrYn: string; // 이상치 여부 (y/n) } export interface StAnlsRsltSearchParams extends PageableParams { anlsSn?: number; // 분석 일련번호 vrfcTrgtSn?: number; // 검증 대상 일련번호 admdstCd?: string; // 행정구역 코드 admdstNm?: string; // 행정구역 명칭 fcltNm?: string; // 시설명 otlrYn?: string; // 이상치 여부 (y/n) } export type StAnlsRsltListApiResponse = PageableList; export interface ChartBoundaryPointDto { xPrev: number; // 전년도 값 (x축) yLower: number; // 이상치 하한 당년값 (y축) yUpper: number; // 이상치 상한 당년값 (y축) } export interface ChartRetDto { dtl: StAnlsDtlResponse; // 분석 상세 파라미터 (mu, r_mid, T_L, T_U 등) list: ChartBoundaryPointDto[]; // HBR 경계선 곡선 데이터 리스트 (x_prev, y_lower, y_upper) }