import api from '../../../services/api'; import type { SatUnit } from '../types/unit-measure.interfaces'; // Respuesta del endpoint de unidades SAT export interface SatUnitsResponse { data: SatUnit[]; } export const satUnitsService = { /** * Get all SAT units with search filter */ async getSatUnits(search: string = ''): Promise { try { const response = await api.get('/api/sat/units', { params: { search }, }); return response.data; } catch (error) { console.error('Error al obtener unidades SAT:', error); throw error; } } };