// Auto-generated items service
import { api } from "./api";

export function getItems() {
  return api.get("/api/items");
}

export function createItem(data: Record<string, unknown>) {
  return api.post("/api/items", data);
}

export function getItem(id: string) {
  return api.get(`/api/items/${id}`);
}

export function updateItem(id: string, data: Record<string, unknown>) {
  return api.put(`/api/items/${id}`, data);
}

export function deleteItem(id: string) {
  return api.delete(`/api/items/${id}`);
}
