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 { WeeklySlot } from "../client"; |
| 3 | |
| 4 | /** Minutes past midnight; `weekday` 1 (Monday) .. 7. A null topic uses the title. */ |
| 5 | export type CreateWeeklySlotBody = { weekday: number; starts_at: number; ends_at: number; topic?: string | null }; |
| 6 | |
| 7 | // Manager+. 409 `slot_overlap` for an intersecting window, `slot_cap` when full. |
| 8 | export function postOfferingWeeklySlot(id: string, body: CreateWeeklySlotBody): Promise<WeeklySlot> { |
| 9 | return client<WeeklySlot>(`/offerings/${id}/weekly-plan`, { method: "POST", body }); |
| 10 | } |