20 lines
632 B
TypeScript
20 lines
632 B
TypeScript
import { Repository } from 'typeorm';
|
|
import { AdminBoundary } from './entities/admin-boundary.entity';
|
|
export declare class AdminBoundariesService {
|
|
private adminBoundaryRepo;
|
|
private readonly logger;
|
|
constructor(adminBoundaryRepo: Repository<AdminBoundary>);
|
|
importGeoJSON(targetCountryCode: string, geoJson: any): Promise<{
|
|
success: boolean;
|
|
imported: number;
|
|
errors: number;
|
|
skipped: number;
|
|
}>;
|
|
importFromFile(countryCode: string, filePath: string): Promise<{
|
|
success: boolean;
|
|
imported: number;
|
|
errors: number;
|
|
skipped: number;
|
|
}>;
|
|
}
|