| 1 | interface Risk { |
| 2 | risk: string; |
| 3 | explanation: string; |
| 4 | severity: "low" | "medium" | "high"; |
| 5 | _id: string; |
| 6 | } |
| 7 | |
| 8 | interface Opportunity { |
| 9 | opportunity: string; |
| 10 | explanation: string; |
| 11 | impact: "low" | "medium" | "high"; |
| 12 | _id: string; |
| 13 | } |
| 14 | |
| 15 | interface CompensationStructure { |
| 16 | baseSalary: string; |
| 17 | bonuses: string; |
| 18 | equity: string; |
| 19 | otherBenefits: string; |
| 20 | } |
| 21 | |
| 22 | export interface ContractAnalysis { |
| 23 | userId: string; |
| 24 | contractText: string; |
| 25 | risks: Risk[]; |
| 26 | opportunities: Opportunity[]; |
| 27 | summary: string; |
| 28 | recommendations: string[]; |
| 29 | keyClauses: string[]; |
| 30 | legalCompliance: string; |
| 31 | negotiationPoints: string[]; |
| 32 | contractDuration: string; |
| 33 | terminationConditions: string; |
| 34 | overallScore: number; |
| 35 | compensationStructure: CompensationStructure; |
| 36 | performanceMetrics: string[]; |
| 37 | contractType: string; |
| 38 | intellectualPropertyClauses: string; |
| 39 | version: number; |
| 40 | expirationDate: string | null; |
| 41 | language: string; |
| 42 | aiModel: string; |
| 43 | _id: string; |
| 44 | createdAt: string; |
| 45 | __v: number; |
| 46 | } |