Test Docker
This commit is contained in:
@@ -39,6 +39,39 @@ export interface ResumenProvincial extends Omit<MunicipioResultados, 'municipioN
|
||||
provinciaNombre: string;
|
||||
}
|
||||
|
||||
export interface BancaResultado {
|
||||
agrupacionNombre: string;
|
||||
bancas: number;
|
||||
}
|
||||
|
||||
export interface ProyeccionBancas {
|
||||
seccionNombre: string;
|
||||
proyeccion: BancaResultado[];
|
||||
}
|
||||
|
||||
export interface TelegramaDetalle {
|
||||
id: string;
|
||||
ambitoGeograficoId: number;
|
||||
contenidoBase64: string;
|
||||
fechaEscaneo: string;
|
||||
fechaTotalizacion: string;
|
||||
}
|
||||
|
||||
export const getBancasPorSeccion = async (seccionId: string): Promise<ProyeccionBancas> => {
|
||||
const response = await apiClient.get<ProyeccionBancas>(`/resultados/bancas/${seccionId}`);
|
||||
return response.data;
|
||||
};
|
||||
|
||||
export const getListaTelegramas = async (): Promise<string[]> => {
|
||||
const response = await apiClient.get<string[]>('/telegramas');
|
||||
return response.data;
|
||||
};
|
||||
|
||||
export const getTelegramaPorId = async (mesaId: string): Promise<TelegramaDetalle> => {
|
||||
const response = await apiClient.get<TelegramaDetalle>(`/telegramas/${mesaId}`);
|
||||
return response.data;
|
||||
};
|
||||
|
||||
export const getMunicipios = async (): Promise<MunicipioSimple[]> => {
|
||||
const response = await apiClient.get<MunicipioSimple[]>('/catalogos/municipios');
|
||||
return response.data;
|
||||
|
||||
Reference in New Issue
Block a user