import type { PublicEventType } from "@calcom/features/eventtypes/lib/getPublicEvent"; import { EventRepository } from "@calcom/features/eventtypes/repositories/EventRepository"; import type { TEventInputSchema } from "./event.schema"; interface EventHandlerOptions { input: TEventInputSchema; userId?: number; } export const eventHandler = async ({ input, userId }: EventHandlerOptions): Promise => { return await EventRepository.getPublicEvent(input, userId); }; export default eventHandler;