/**
 * Shared type definitions used across multiple API modules.
 */

export interface PaginatedResponse<T> {
  items: T[];
  total: number;
  page: number;
  page_size: number;
}

export interface Contact {
  id: string;
  first_name: string;
  last_name: string;
  email: string;
  phone?: string | null;
  position?: string | null;
  company_ids?: string[];
  created_at?: string;
  updated_at?: string;
}

export interface ContactDetail extends Contact {
  companies?: Array<{ id: string; name: string }>;
}
