import { apiClient } from './client';

export async function getUserOverride(cardId: string) {
  const res = await apiClient.get('/overrides', { params: { card_id: cardId } });
  return res.data.data;
}

export async function upsertUserOverride(data: Record<string, any>) {
  await apiClient.put('/overrides', data);
}

export async function deleteUserOverride(cardId: string) {
  await apiClient.delete('/overrides', { params: { card_id: cardId } });
}
