/** Lightweight per-trip rows fetched for the role dashboards. */

export interface PermitLite {
  id: string
  trip_id: string
  document_id: string | null
  state_code: string
  permit_number: string | null
  effective_date: string | null
  expiration_date: string | null
}

export interface TripDriver {
  trip_id: string
  name: string
  email: string
}

/**
 * Route requests per trip, for the driver's Active Trip route section.
 * A purchased route is delivered in THREE formats (2026-09-07 meeting):
 * Google Maps (1..N parts), a GPX file, and a Hummer GPS deep link.
 */
export interface RouteRequestLite {
  id: string
  trip_id: string
  type: string
  state_code: string | null
  status: string
  route_type: 'express' | 'extended' | null
  route_links: string[] | null
  route_gpx_url: string | null
  route_hummer_url: string | null
  /** Who ordered it — shown to everyone on the trip (Task 70). */
  requested_by: string | null
  requester_label: string
  /** Permit requests only: the expired permit being re-ordered (Task 75). */
  replaces_permit_id: string | null
}
