forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

postOfferingWeeklySlot.ts10 lines, 557 bytesHistoryRawDownload
1import { client } from "../client";
2import type { WeeklySlot } from "../client";
3
4/** Minutes past midnight; `weekday` 1 (Monday) .. 7. A null topic uses the title. */
5export 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.
8export function postOfferingWeeklySlot(id: string, body: CreateWeeklySlotBody): Promise<WeeklySlot> {
9 return client<WeeklySlot>(`/offerings/${id}/weekly-plan`, { method: "POST", body });
10}