import { client } from "./client"; import type { Event, EventAudience } from "./types"; /** Omitted time fields keep their value; explicit null clears them. */ export type PatchEventBody = { title?: string | null; description?: string | null; audience?: EventAudience | null; starts_at?: number | null; ends_at?: number | null; }; export function patchEventById(id: string, body: PatchEventBody): Promise { return client(`/events/${id}`, { method: "PATCH", body }); }