import { Location } from './location';
export type OfferId = string;

export type OfferBody = {
  ownerId: string;
  ownerName: string;
  slots: number;
  freeSlots: number;
  title: string;
  description: string;
  image?: string;
  location: Location;
  dateStart: number;
  dateEnd: number;
};

export type Offer = OfferBody & {
  id: OfferId;
  deleted?: boolean;
  distance?: number;
};
