hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiB5fcd955Burak Boduroğlu2 months ago730 commits
| 1 | import { client } from "../client"; |
| 2 | import type { AppointmentSlot } from "../client"; |
| 3 | |
| 4 | export type PublishSlotsBody = { |
| 5 | starts_at: number; |
| 6 | ends_at: number; |
| 7 | note?: string | null; |
| 8 | repeat_weekly?: boolean; |
| 9 | until?: number | null; |
| 10 | }; |
| 11 | |
| 12 | export function postSlots(body: PublishSlotsBody): Promise<AppointmentSlot[]> { |
| 13 | return client<AppointmentSlot[]>("/appointments/slots", { method: "POST", body }); |
| 14 | } |