58 lines
1.6 KiB
TypeScript
58 lines
1.6 KiB
TypeScript
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;
|
|
}>;
|
|
}
|