// 목록 아이템
export type AerialItem = {
  mapId: string;
  fileName: string;
  region: string;
  scale: string;
  capturedDttm: string;
  fileSize: string;
  createdDttm: string;
  createdBy: string;
  status: string;
};

// 상세 정보
export type AerialDetail = {
  uuid: string;
  fileName: string;
  fileSize: number;
  region: string;
  category: string;
  createdName: string;
  createdDttm: string;
  capturedDttm: string;
  latitude: number;
  longitude: number;
};

// 지역 (시/도)
export type Region = {
  code: string;
  name: string;
};

// 폴더
export type Folder = {
  folderNm: string;
  parentFolderNm: string;
  parentPath: string;
  fullPath: string;
  depth: number;
  childCnt: number;
  lastModified: string;
  isValid: boolean;
};

export type FolderListResponse = {
  dirPath: string;
  folders: Folder[];
};

// 청크 업로드
export type ChunkUploadParams = {
  fileName: string;
  fileSize: number;
  chunkIndex: number;
  chunkTotalIndex: number;
  chunkFile: Blob;
};

export type ChunkUploadResponse = {
  uuid: string;
  filePath: string;
  fileName: string;
  chunkIndex: number;
  chunkTotalIndex: number;
  uploadId?: string;
};

// 목록 조회 파라미터
export type AerialListParams = {
  dateRangeType: 'capturedDttm' | 'createdDttm';
  strtDttm: string;
  endDttm: string;
  page?: number;
  size?: number;
};
