import { PhotoAttachment } from './photos';

// Location type definitions (aligned with Rails LocationSerializer)
export interface Location {
  id: number;
  name: string;
  slug: string;
  address_line_1: string;
  address_line_2?: string;
  city: string;
  state: string;
  zip_code: string;
  country?: string;
  latitude?: number;
  longitude?: number;
  phone?: string;
  email?: string;
  description_markdown?: string;
  business_hours?: string;
  is_primary: boolean;
  active: boolean;
  sort_order: number;
  created_at: string;
  updated_at: string;
  photo_attachments?: PhotoAttachment[];
}

export interface LocationParams {
  active?: boolean;
  is_primary?: boolean;
  sort_order?: number;
  page?: number;
  per_page?: number;
}

export type LocationResponse = Location[];
