import type { BookingCreateBody } from "@calcom/prisma/zod-utils"; import * as fetch from "@lib/core/http/fetch-wrapper"; import type { BookingResponse } from "@lib/types/booking"; type BookingCreateBodyForMutation = Omit; const createBooking = async (data: BookingCreateBodyForMutation) => { const response = await fetch.post("/api/book/event", data); return response; }; export default createBooking;