260710_0
This commit is contained in:
@@ -40,6 +40,47 @@ export interface SurfaceModelSummary {
|
||||
created_at: string | null;
|
||||
}
|
||||
|
||||
export interface SurfaceInputFileSummary {
|
||||
id: number;
|
||||
file_type: string;
|
||||
original_filename: string;
|
||||
raw_file_path: string;
|
||||
file_size_mb: number | null;
|
||||
crs_epsg: number | null;
|
||||
status: string | null;
|
||||
created_at: string | null;
|
||||
}
|
||||
|
||||
export interface SurfaceInputFileListResponse {
|
||||
status: string;
|
||||
project_id: string;
|
||||
files: SurfaceInputFileSummary[];
|
||||
}
|
||||
|
||||
export interface SurfacePointCloudSampleResponse {
|
||||
status: string;
|
||||
project_id: string;
|
||||
point_count: number;
|
||||
sampled_count: number;
|
||||
bounds: Record<string, number>;
|
||||
points: [number, number, number][];
|
||||
}
|
||||
|
||||
export interface SurfaceGroundStatsResponse {
|
||||
status: string;
|
||||
project_id: string;
|
||||
filters: Record<string, Record<string, unknown>>;
|
||||
}
|
||||
|
||||
export interface SurfaceStatusResponse {
|
||||
project_id: string;
|
||||
status: "pending" | "in_progress" | "completed" | "failed";
|
||||
model_count: number;
|
||||
progress_percent: number;
|
||||
current_stage: string;
|
||||
message: string;
|
||||
}
|
||||
|
||||
/** 지표면 모델 목록 응답 (SurfaceModelListResponse) */
|
||||
export interface SurfaceModelListResponse {
|
||||
status: string;
|
||||
@@ -88,3 +129,36 @@ export async function listSurfaceModels(projectId: string): Promise<SurfaceModel
|
||||
method: "GET",
|
||||
});
|
||||
}
|
||||
|
||||
export async function listSurfaceInputFiles(
|
||||
projectId: string,
|
||||
): Promise<SurfaceInputFileListResponse> {
|
||||
return requestJson<SurfaceInputFileListResponse>(`/projects/${projectId}/surface/input-files`, {
|
||||
method: "GET",
|
||||
});
|
||||
}
|
||||
|
||||
export async function fetchSurfacePointCloud(
|
||||
projectId: string,
|
||||
): Promise<SurfacePointCloudSampleResponse> {
|
||||
return requestJson<SurfacePointCloudSampleResponse>(
|
||||
`/projects/${projectId}/surface/point-cloud`,
|
||||
{
|
||||
method: "GET",
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
export async function fetchSurfaceGroundStats(
|
||||
projectId: string,
|
||||
): Promise<SurfaceGroundStatsResponse> {
|
||||
return requestJson<SurfaceGroundStatsResponse>(`/projects/${projectId}/surface/ground-stats`, {
|
||||
method: "GET",
|
||||
});
|
||||
}
|
||||
|
||||
export async function fetchSurfaceStatus(projectId: string): Promise<SurfaceStatusResponse> {
|
||||
return requestJson<SurfaceStatusResponse>(`/projects/${projectId}/surface/status`, {
|
||||
method: "GET",
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user