import { apiCall } from "@/utils/callApi";

// Types

export type AppointmentPayload = {
  storeId: string;
  storeName: string;
  date: string;
  timeSlot: string;
  slotPeriod: string;
  name: string;
  phone: string;
  email: string;
  celebrating: string;
  celebratingOther?: string;
  lookingFor: string;
};

// Book Appointment (POST)

export function bookAppointment(payload: AppointmentPayload) {
  return apiCall<any>("/clientapi/appointment", {
    method: "POST",
    body: payload,
  });
}