import { apiClient } from './client';
import type { ProsthesisCatalogEntry } from '@/types/treatment-catalog';

export const prosthesisCatalogApi = {
  list: async (
    labOrganizationId?: string,
  ): Promise<{ success: boolean; data: ProsthesisCatalogEntry[] }> => {
    const response = await apiClient.get('/prosthesis-catalog', {
      params: labOrganizationId ? { labOrganizationId } : undefined,
    });
    return response.data;
  },
};
