import { TextObjectFilterResult } from "../TextObjectFilter.model";

export type FindPartidosParams = {
    _id?: string;
    name?: string;
    code?: number;
    provincia: string;
};

export interface IPartido {
    id?: string;
    name: string;
    code: number;
    provincia: string;
    latitude: number;
    longitude: number;
}

export interface IPartidosAdapter {
    find(filters: FindPartidosParams): Promise<IPartido[]>;
}

export interface IPartidosManager {
    partidos: IPartidosAdapter;
    filterAll(data: FindPartidosParams): Promise<TextObjectFilterResult[]>;
}
