import { PhotoAttachment } from './photos';

// Testimonial/Review type definitions (aligned with Rails ReviewSerializer)
export interface Testimonial {
  id: number;
  reviewer_name: string;
  reviewer_title?: string;
  company?: string;
  rating?: number;
  content_markdown: string;
  source?: string;
  source_url?: string;
  featured: boolean;
  reviewed_at: string;
  created_at: string;
  updated_at: string;
  photo_attachments?: PhotoAttachment[];
}

export interface TestimonialParams {
  source?: string;
  rating?: number;
  verified?: boolean;
  featured?: boolean;
  page?: number;
  per_page?: number;
}

export type TestimonialResponse = Testimonial[];
