import type { SupportedCurrencies } from './index.ts'; import type { Locale } from '../services/index.ts'; export type AutomaticProposal = { id: string; b2b2c: boolean; conciergeService: boolean; hidePrices: boolean; clients: { email: string; phone: string; selected: boolean; last_name: string; contact_id: string; first_name: string; }[]; housesIds: string[]; current: boolean; language: string; message: string; petFriendly: boolean; state: 'done' | 'in_progress' | 'editing'; suitableForChildren: boolean; suitableForPeopleWithReducedMobility: boolean; automaticProposalHouses: AutomaticProposalHouse[]; salesInformations: { email: string; first_name: string; last_name: string; phone: string; }; sortedBy: 'date' | 'destination'; }; export type AutomaticProposalComment = { accepted: boolean; clientComment: string; currentClient: boolean; email: string; fullName: string; id: string; }; export type AutomaticProposalHouse = { ai_suggested: boolean; check_in_date: string; check_out_date: string; comments: AutomaticProposalComment[] | null; featured: { identifier: string; name: { fr: string; en: string; }; type_identifiers: string[]; }[]; house_id: number; id: number; price: { CHF: number; EUR: number; GBP: number; USD: number; }; sales_comment: string | null; }; export type AutomaticProposalAssistedPayload = { automatic_proposal_assisted: { start_at: string; end_at: string; base_house_id: number; house_ai_suggestion_limit: number; }; }; export type AutomaticProposalUpdatePayload = { automatic_proposal: { houses?: { amount: number | null; check_in_date: string; check_out_date: string; currency: SupportedCurrencies; house_id: number; sales_comment: string | null; }[]; concierge_service?: boolean; client_ids?: string[]; hide_prices?: boolean; language?: Locale; message?: string; pet_friendly?: boolean; sorted_by?: 'date' | 'destination'; state?: 'done' | 'in_progress' | 'editing'; suitable_for_children?: boolean; suitable_for_people_with_reduced_mobility?: boolean; }; };