forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB5fcd955Burak Boduroğlu2 months ago730 commits

postSlots.ts14 lines, 407 bytesHistoryRawDownload
1import { client } from "../client";
2import type { AppointmentSlot } from "../client";
3
4export type PublishSlotsBody = {
5 starts_at: number;
6 ends_at: number;
7 note?: string | null;
8 repeat_weekly?: boolean;
9 until?: number | null;
10};
11
12export function postSlots(body: PublishSlotsBody): Promise<AppointmentSlot[]> {
13 return client<AppointmentSlot[]>("/appointments/slots", { method: "POST", body });
14}