// Caminho: services/perfisApi.ts import api from './api'; export interface Profile { id: any; full_name?: string; avatar_url?: string; [key: string]: any; } export const perfisApi = { list: async (): Promise => { const response = await api.get('/rest/v1/profiles?select=*'); return response.data; }, update: async (userId: string, data: Partial): Promise => { const response = await api.patch(`/rest/v1/profiles?id=eq.${userId}`, data, { headers: { 'Prefer': 'return=representation' } }); return response.data[0]; }, };