fix(tactical): resolve DTO types and TS1272 build error for isolatedModules

This commit is contained in:
Hamza-Ayed
2026-08-18 09:46:04 +03:00
parent bd287d155b
commit 941420f5c0
86 changed files with 3614 additions and 1556 deletions
+57
View File
@@ -0,0 +1,57 @@
import { Repository, DataSource } from 'typeorm';
import { CandidateRoad } from './candidate-road.entity';
import { RoadSegmentStat } from './road-stat.entity';
export declare class RoadRefinementController {
private readonly candidateRepo;
private readonly roadStatRepo;
private readonly dataSource;
private readonly logger;
constructor(candidateRepo: Repository<CandidateRoad>, roadStatRepo: Repository<RoadSegmentStat>, dataSource: DataSource);
getSummary(): Promise<{
roads: {
analyzed: number;
closed: number;
};
candidates: {
total: number;
pending: number;
};
}>;
getCandidates(status?: string): Promise<any>;
submitManualCandidate(body: {
geojson: any;
name?: string;
highway?: string;
}): Promise<{
success: boolean;
candidate: any;
}>;
approveCandidate(id: string): Promise<{
success: boolean;
id: string;
status: string;
}>;
rejectCandidate(id: string): Promise<{
success: boolean;
id: string;
status: string;
}>;
getClosures(): Promise<any>;
discoverOvertureGaps(): Promise<{
success: boolean;
candidatesFound: number;
message: string;
} | {
success: boolean;
candidatesFound: any;
message?: undefined;
}>;
discoverClosures(): Promise<{
success: boolean;
roadsClosed: number;
}>;
snapExistingApprovedRoads(): Promise<{
success: boolean;
message: string;
}>;
}