export interface User {
    id: number;
    name: string;
    email: string;
    email_verified_at?: string;
}

export type PageProps<
    T extends Record<string, unknown> = Record<string, unknown>,
> = T & {
    auth: {
        user: User;
    };
};


export type ExpertiseType = 'primaire'|'sapiteur'
export type ExpertiseStatus = 'draft'|'in_progress'|'waiting'|'done'|'archived'

export interface Party { role: string; name: string }

export interface Expertise {
  id: number
  reference: string
  title: string
  type: ExpType
  status: ExpStatus
  jurisdiction?: string
  case_number?: string
  portalis_number?: string
  appointment_date?: string
  due_date?: string
  mission_received_at?: string
  mission_accepted_at?: string
  judge?: string
  clerk?: string
  location?: string
  notes?: string
  nature?: string
  cadre?: string
  parties?: Party[]
}

