import { PhotoAttachment } from './photos';

// Job posting type definitions
export interface JobPosting {
  id: number;
  title: string;
  slug: string;
  description_markdown: string;
  requirements_markdown?: string;
  benefits_markdown?: string;
  employment_type: string;
  location: string;
  experience_level?: string;
  remote_ok?: boolean;
  salary_range?: string;
  posted_at: string;
  expires_at?: string;
  status: 'active' | 'inactive' | 'expired';
  featured: boolean;
  created_at: string;
  updated_at: string;
  photo_attachments?: PhotoAttachment[];
}

export interface JobPostingParams {
  featured?: boolean;
  employment_type?: string;
  location?: string;
  q?: string;
  page?: number;
  per_page?: number;
}

export type JobPostingResponse = JobPosting[];
