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

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

export interface IProvincia {
    id?: string;
    name: string;
    code: number;
}

export interface IProvinciasAdapter {
    find(filters: FindProvinciasParams): Promise<IProvincia[]>;
}

export interface IProvinciasManager {
    provincias: IProvinciasAdapter;
    filterAll(data: FindProvinciasParams): Promise<TextObjectFilterResult[]>;
}
