299 lines
8.4 KiB
TypeScript
299 lines
8.4 KiB
TypeScript
import type { ApiResponse, SewerageStatusInfo, StatisticsInputCommonInfoBase } from "../statistics-interface";
|
|
|
|
/** 하수저류시설 Tab1 — `SewageReservoirInpColumn.tabKey` */
|
|
export const SEWAGE_RESERVOIR_STATS_CD = "ST00040001" as const;
|
|
|
|
/** 검증 결과 한 건 */
|
|
export interface SewageReservoirVerificationResultItem {
|
|
vrfcCd: string;
|
|
rsnExpln: string;
|
|
nowVlCn: string;
|
|
compVlCn: string;
|
|
}
|
|
|
|
/** 필드명 → 검증 결과 배열 */
|
|
export type SewageReservoirVerificationResult = Record<
|
|
string,
|
|
SewageReservoirVerificationResultItem[]
|
|
>;
|
|
|
|
/** 하수저류시설 조회 `data.commonInfo` */
|
|
export interface SewageReservoirCommonInfo extends StatisticsInputCommonInfoBase {
|
|
statsYr: string;
|
|
ctpvNm: string;
|
|
sewerBzmnCd: string;
|
|
statsCd: string;
|
|
verificationResult?: SewageReservoirVerificationResult;
|
|
}
|
|
|
|
/**
|
|
* 하수저류시설 조회 `data.sewageReservoirList[]` 한 행.
|
|
* `SewageReservoirInpColumn` fieldName과 동일 (`ctpvNm` 그리드 값은 `commonInfo.ctpvNm` 시도명).
|
|
*/
|
|
export interface SewageReservoirItem {
|
|
admdstCd: string;
|
|
sggNm: string;
|
|
admdstNm: string;
|
|
fcltSn: string;
|
|
fcltNm: string;
|
|
fcltPstnCn: string;
|
|
oprtngStrtYmd: string;
|
|
planDesignFreqCnt: number;
|
|
fldngPrvtnYn: string;
|
|
wqPlltnMtgtYn: string;
|
|
rtlztnUsgYn: string;
|
|
fcltStrctCn: string | null;
|
|
wtrStrgZoneArea: number;
|
|
impdFcltCpct: number;
|
|
grssPpqty: number;
|
|
pumpFcltN1DmtrExpln: number;
|
|
pumpFcltN1PerPpqty: number;
|
|
pumpFcltN1PumpCnt: number;
|
|
pumpFcltN1RsrvPumpCnt: number;
|
|
pumpFcltN2DmtrExpln: number;
|
|
pumpFcltN2PerPpqty: number;
|
|
pumpFcltN2PumpCnt: number;
|
|
pumpFcltN2RsrvPumpCnt: number;
|
|
pumpFcltN3DmtrExpln: number;
|
|
pumpFcltN3PerPpqty: number;
|
|
pumpFcltN3PumpCnt: number;
|
|
pumpFcltN3RsrvPumpCnt: number;
|
|
prcsgFcltYn: string;
|
|
ddrztnEqpmYn: string;
|
|
oslfEtgtYn: string;
|
|
mltvMthCn: string | null;
|
|
impdMthCn: string | null;
|
|
impdPrcsMthdCn: string | null;
|
|
dschgWtrsExpln: string;
|
|
prcptnLastDspsQnt: number;
|
|
ctmnLastDspsQnt: number;
|
|
prcptnLastDspsMthdExpln: string;
|
|
ctmnLastDspsMthdExpln: string;
|
|
oprtngDayCnt: number;
|
|
grssMltvQnt: number;
|
|
rmrk: string | null;
|
|
verificationResult?: SewageReservoirVerificationResult;
|
|
}
|
|
|
|
export interface SewageReservoirResponseData {
|
|
statusInfo: SewerageStatusInfo;
|
|
commonInfo: SewageReservoirCommonInfo;
|
|
sewageReservoirList: SewageReservoirItem[];
|
|
}
|
|
|
|
export type SewageReservoirApiResponse = ApiResponse<SewageReservoirResponseData> & {
|
|
message: string;
|
|
};
|
|
|
|
/** 빗물펌프장 Tab2 `data.commonInfo` */
|
|
export interface RainfallPumpStationCommonInfo extends StatisticsInputCommonInfoBase {
|
|
statsYr: string;
|
|
ctpvNm: string;
|
|
sewerBzmnCd: string;
|
|
statsCd: string;
|
|
verificationResult?: SewageReservoirVerificationResult;
|
|
}
|
|
|
|
/**
|
|
* 빗물펌프장 조회 `data.rainfallPumpStationList[]` 한 행.
|
|
* `RainfallPumpStationInpColumn` fieldName과 동일 (ctpvNm은 commonInfo에서 그리드에 합침).
|
|
*/
|
|
export interface RainfallPumpStationItem {
|
|
admdstCd: string;
|
|
sggNm: string;
|
|
admdstNm: string;
|
|
fcltSn: string;
|
|
fcltNm: string;
|
|
fcltPstnCn: string;
|
|
fcltyKndCn: string;
|
|
oprtngStrtYmd: string;
|
|
planDesignFreqCnt: number;
|
|
wtrStrgZoneArea: number;
|
|
rsvrYn: string;
|
|
rsvrImpndQnt: number;
|
|
abstnRgnImpdQnt: number;
|
|
grssPpqty: number;
|
|
|
|
pumpFcltN1DmtrExpln: number;
|
|
pumpFcltN1PerPpqty: number;
|
|
pumpFcltN1PumpCnt: number;
|
|
pumpFcltN1RsrvPumpCnt: number;
|
|
|
|
pumpFcltN2DmtrExpln: number;
|
|
pumpFcltN2PerPpqty: number;
|
|
pumpFcltN2PumpCnt: number;
|
|
pumpFcltN2RsrvPumpCnt: number;
|
|
|
|
pumpFcltN3DmtrExpln: number;
|
|
pumpFcltN3PerPpqty: number;
|
|
pumpFcltN3PumpCnt: number;
|
|
pumpFcltN3RsrvPumpCnt: number;
|
|
|
|
prcsgFcltYn: string;
|
|
ddrztnEqpmYn: string;
|
|
oslfEtgtYn: string;
|
|
dschgWtrsExpln: string;
|
|
|
|
prcptnLastDspsQnt: number;
|
|
ctmnLastDspsQnt: number;
|
|
prcptnLastDspsMthdExpln: string;
|
|
ctmnLastDspsMthdExpln: string;
|
|
|
|
oprtngDayCnt: number;
|
|
grssMltvQnt: number;
|
|
|
|
rmrk: string | null;
|
|
verificationResult?: SewageReservoirVerificationResult;
|
|
}
|
|
|
|
export interface RainfallPumpStationResponseData {
|
|
statusInfo: SewerageStatusInfo;
|
|
commonInfo: RainfallPumpStationCommonInfo;
|
|
rainfallPumpStationList: RainfallPumpStationItem[];
|
|
}
|
|
|
|
export type RainfallPumpStationApiResponse = ApiResponse<RainfallPumpStationResponseData> & {
|
|
message: string;
|
|
};
|
|
|
|
/** 하수저류시설(ST00040001) 조회 요청 파라미터 */
|
|
export interface SewageReservoirRequestParams {
|
|
ctpvNm?: string;
|
|
sggNm?: string;
|
|
sewerBzmnCd?: string;
|
|
statsYr?: string;
|
|
mode?: string;
|
|
fcltNm?: string;
|
|
}
|
|
|
|
/**
|
|
* 하수저류시설(ST00040001) 저장 — `saveList` / `deleteList` 항목.
|
|
* `sggNm`·검증결과는 저장 요청에서 제외.
|
|
*/
|
|
export type SewageReservoirSaveItem = Omit<
|
|
SewageReservoirItem,
|
|
"sggNm" | "verificationResult" | "oprtngStrtYmd"
|
|
> & {
|
|
oprtngStrtYmd: string | null;
|
|
};
|
|
|
|
/** 하수저류시설(ST00040001) 저장 API 요청 */
|
|
export interface SewageReservoirSaveRequest {
|
|
statsYr: string;
|
|
ctpvNm: string;
|
|
sggNm: string;
|
|
sewerBzmnCd: string;
|
|
userId: string;
|
|
superAdmin?: string;
|
|
noApplicable?: boolean;
|
|
saveList: SewageReservoirSaveItem[];
|
|
deleteList: SewageReservoirSaveItem[];
|
|
}
|
|
|
|
export interface SewageReservoirSaveResponse {
|
|
status: string;
|
|
message?: string;
|
|
data?: string;
|
|
}
|
|
|
|
/** 하수저류시설(ST00040001) 제출 API 요청 */
|
|
export interface SewageReservoirSubmitRequest {
|
|
statsYr: string;
|
|
ctpvNm: string;
|
|
sggNm: string;
|
|
sewerBzmnCd: string;
|
|
userId: string;
|
|
laePicNm: string;
|
|
laePicTelNo: string;
|
|
laeKbrdrDeptNm: string;
|
|
laeKbrdrJbgdNm: string;
|
|
laeIdfrNm: string;
|
|
laeIdfrTelNo: string;
|
|
laeIdfrDeptNm: string;
|
|
laeIdfrJbgdNm: string;
|
|
noApplicable?: boolean;
|
|
submitList: SewageReservoirSaveItem[];
|
|
deleteList: SewageReservoirSaveItem[];
|
|
}
|
|
|
|
export interface SewageReservoirSubmitResponse {
|
|
status: string;
|
|
message?: string;
|
|
data?: {
|
|
finalStatus: string;
|
|
nvpassed: boolean;
|
|
};
|
|
}
|
|
|
|
/**
|
|
* 빗물펌프장(ST00040002) 저장 — `saveList` / `deleteList` 항목.
|
|
* `sggNm`·검증결과는 저장 요청에서 제외.
|
|
*/
|
|
export type RainfallPumpStationSaveItem = Omit<
|
|
RainfallPumpStationItem,
|
|
"sggNm" | "verificationResult" | "oprtngStrtYmd"
|
|
> & {
|
|
oprtngStrtYmd: string | null;
|
|
};
|
|
|
|
/**
|
|
* 빗물펌프장(ST00040002) 저장 API 요청
|
|
* (요청 shape은 예시 JSON과 동일)
|
|
*/
|
|
export interface RainfallPumpStationSaveRequest {
|
|
statsYr: string;
|
|
ctpvNm: string;
|
|
sggNm: string;
|
|
sewerBzmnCd: string;
|
|
userId: string;
|
|
superAdmin?: string;
|
|
noApplicable?: boolean;
|
|
saveList: RainfallPumpStationSaveItem[];
|
|
deleteList: RainfallPumpStationSaveItem[];
|
|
}
|
|
|
|
/** 빗물펌프장(ST00040002) 저장 응답 */
|
|
export type RainfallPumpStationSaveResponse = SewageReservoirSaveResponse;
|
|
|
|
/** 빗물펌프장(ST00040002) 제출 API 요청 */
|
|
export interface RainfallPumpStationSubmitRequest {
|
|
statsYr: string;
|
|
ctpvNm: string;
|
|
sggNm: string;
|
|
sewerBzmnCd: string;
|
|
userId: string;
|
|
laePicNm: string;
|
|
laePicTelNo: string;
|
|
laeKbrdrDeptNm: string;
|
|
laeKbrdrJbgdNm: string;
|
|
laeIdfrNm: string;
|
|
laeIdfrTelNo: string;
|
|
laeIdfrDeptNm: string;
|
|
laeIdfrJbgdNm: string;
|
|
noApplicable?: boolean;
|
|
submitList: RainfallPumpStationSaveItem[];
|
|
deleteList: RainfallPumpStationSaveItem[];
|
|
}
|
|
|
|
/** 빗물펌프장(ST00040002) 제출 응답 */
|
|
export type RainfallPumpStationSubmitResponse = SewageReservoirSubmitResponse;
|
|
|
|
export interface StatisticsInputSewageReservoirPumpService {
|
|
getSewageReservoirList(params: SewageReservoirRequestParams): Promise<SewageReservoirApiResponse>;
|
|
getRainfallPumpStationList(
|
|
params: SewageReservoirRequestParams,
|
|
): Promise<RainfallPumpStationApiResponse>;
|
|
saveSewageReservoir(request: SewageReservoirSaveRequest): Promise<SewageReservoirSaveResponse>;
|
|
submitSewageReservoir(
|
|
request: SewageReservoirSubmitRequest,
|
|
): Promise<SewageReservoirSubmitResponse>;
|
|
/** 빗물펌프장 저장 — ST00040002 */
|
|
saveRainfallPumpStation(
|
|
request: RainfallPumpStationSaveRequest,
|
|
): Promise<RainfallPumpStationSaveResponse>;
|
|
/** 빗물펌프장 제출 — ST00040002 */
|
|
submitRainfallPumpStation(
|
|
request: RainfallPumpStationSubmitRequest,
|
|
): Promise<RainfallPumpStationSubmitResponse>;
|
|
}
|