import { apiClient } from '../apiClient'

export default {
  generate: (data) => apiClient('/api/report-html', { method: 'POST', data }),
  stream: (taskId) => apiClient(`/api/report-html/stream/${taskId}`),
  getReports: () => apiClient('/api/reports'),
  getConversations: () => apiClient('/api/reports/conversations'),
  getConversationDetail: (convId) => apiClient(`/api/reports/conversations/${convId}`),
  getReportDetail: (reportId) => apiClient(`/api/reports/${reportId}`),
  deleteReport: (reportId) => apiClient(`/api/reports/${reportId}`, { method: 'DELETE' }),
  inlineEdit: (data) => apiClient('/api/report-inline-edit', { method: 'POST', data }),
  saveEdit: (data) => apiClient('/api/report-save-edit', { method: 'POST', data }),
  followup: (data) => apiClient('/api/report-followup', { method: 'POST', data })
}
