| |
| |
| |
| |
|
|
| |
| export interface User { |
| id: number; |
| email: string; |
| full_name?: string; |
| is_premium: boolean; |
| } |
|
|
| export interface AuthResponse { |
| access_token: string; |
| token_type: string; |
| } |
|
|
| |
| export interface Author { |
| name: string; |
| affiliation?: string; |
| orcid?: string; |
| } |
|
|
| export interface Paper { |
| id: number; |
| openalex_id: string; |
| title: string; |
| authors: Author[]; |
| publication_year: number; |
| journal_name?: string; |
| abstract?: string; |
| doi?: string; |
| pdf_url?: string; |
| relevance_score?: number; |
| created_at: string; |
| } |
|
|
| |
| export type ExtractionStatus = "pending" | "processing" | "completed" | "failed"; |
|
|
| export interface Extraction { |
| id: number; |
| job_id: string; |
| paper_id: number; |
| status: ExtractionStatus; |
| |
| |
| pico_population: string; |
| pico_intervention: string; |
| pico_comparison: string; |
| pico_outcome: string; |
| |
| risk_of_bias_data?: string; |
| created_at: string; |
| } |
|
|
| |
| export interface PicoContext { |
| job_id: string; |
| population: string; |
| intervention: string; |
| comparison: string; |
| outcome: string; |
| } |
|
|
| |
| export type StudyDesign = "RCT" | "Systematic Review" | "Meta-Analysis" | "Cohort Study" | "Case Report" | "Observational"; |
|
|
| export interface ManuscriptSection { |
| id: number; |
| name: string; |
| content: string; |
| order_index: number; |
| } |
|
|
| export interface Manuscript { |
| id: string; |
| title: string; |
| target_journal?: string; |
| study_design: StudyDesign; |
| pico_context_id: string; |
| sections: ManuscriptSection[]; |
| updated_at: string; |
| } |
|
|
| |
| export interface PaginatedResponse<T> { |
| items: T[]; |
| total: number; |
| page: number; |
| size: number; |
| } |
|
|