import { apiClient } from '@/lib/api-client';
import type {
  QuotationDocumentDataResponse,
  QuotationDocumentPreviewResponse
} from './types';

export async function getQuotationDocumentData(id: string) {
  return apiClient<QuotationDocumentDataResponse>(`/crm/quotations/${id}/document-data`);
}

export async function getQuotationDocumentPreview(id: string) {
  return apiClient<QuotationDocumentPreviewResponse>(`/crm/quotations/${id}/document-preview`);
}
