import type { ResidenceResponse, MyResidenceResponse } from '@/lib/api/residences';

const now = new Date().toISOString();

export const demoResidences: ResidenceResponse[] = [
  {
    id: 1,
    name: 'Maple Street House',
    property_type_id: 1,
    property_type: { id: 1, name: 'House', icon: '🏠' },
    street_address: '742 Maple Street',
    apartment_unit: '',
    city: 'Springfield',
    state_province: 'IL',
    postal_code: '62704',
    country: 'US',
    bedrooms: 3,
    bathrooms: 2,
    square_footage: 1800,
    lot_size: 6500,
    year_built: 1995,
    description: 'A charming 3-bedroom home with a spacious backyard and updated kitchen.',
    purchase_date: '2022-06-15',
    purchase_price: 285000,
    is_primary: true,
    is_owner: true,
    owner_id: 1,
    user_count: 1,
    created_at: '2024-01-15T10:00:00Z',
    updated_at: now,
  },
  {
    id: 2,
    name: 'Downtown Apartment',
    property_type_id: 2,
    property_type: { id: 2, name: 'Apartment', icon: '🏢' },
    street_address: '100 Main Street',
    apartment_unit: 'Apt 4B',
    city: 'Springfield',
    state_province: 'IL',
    postal_code: '62701',
    country: 'US',
    bedrooms: 1,
    bathrooms: 1,
    square_footage: 750,
    description: 'A cozy downtown apartment close to shops and restaurants.',
    is_primary: false,
    is_owner: true,
    owner_id: 1,
    user_count: 2,
    created_at: '2024-03-01T10:00:00Z',
    updated_at: now,
  },
];

export const demoMyResidences: MyResidenceResponse[] = [
  {
    residence: demoResidences[0],
    task_summary: { total: 10, overdue: 2, due_soon: 3, in_progress: 1, completed: 2 },
  },
  {
    residence: demoResidences[1],
    task_summary: { total: 5, overdue: 0, due_soon: 0, in_progress: 0, completed: 1 },
  },
];
