Files
calendar/packages/features/bookings/lib/create-booking.ts
T
Hariom BalharaandGitHub 1730ef7d5d feat: Add framework to send all events fired for embed to Analytics Apps (#15173)
* Send all events to analytics apps

* feat: Start sending all events fired for embed to Analytics Apps(GTM Support added)

* Add tests
2024-05-31 16:07:09 +00:00

15 lines
401 B
TypeScript

import { post } from "@calcom/lib/fetch-wrapper";
import type { BookingCreateBody, BookingResponse } from "../types";
export const createBooking = async (data: BookingCreateBody) => {
const response = await post<
Omit<BookingCreateBody, "startTime" | "endTime">,
BookingResponse & {
startTime: string;
endTime: string;
}
>("/api/book/event", data);
return response;
};