import { SearchRequest } from ".";
import { ShootingDTO } from "./shooting.types";

export type CustomerDTO = {
  id: string;
  lastname: string;
  firstname: string;
  email: string;
  phone: string;
  address: string;
  zipcode: string;
  city: string;
  shootings: ShootingDTO[];
  createdAt: string;
  updatedAt: string;
  manifest_url?: string;
  guest_manifest_url?: string;
};

export type CreateCustomerDTO = {
  lastname: string;
  firstname: string;
  email: string;
  phone: string;
  address: string;
  zipcode: string;
  city: string;
};

export type UpdateCustomerDTO = {
  id: string;
  lastname?: string;
  firstname?: string;
  email?: string;
  phone?: string;
  address?: string;
  zipcode?: string;
  city?: string;
};

export type SearchCustomerDTO = SearchRequest<{
  shootingIds?: string[];
}>;
