hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits
| 1 | import { client } from "../client"; |
| 2 | import type { BlueprintResult } from "../client"; |
| 3 | |
| 4 | export type CreateBlueprintBody = { grade: string; course_ids: string[] }; |
| 5 | |
| 6 | // Manager+. Creates the blueprint and immediately applies it to every existing |
| 7 | // class at that grade; pairs that could not land come back in `skipped`. |
| 8 | // A grade that already holds a blueprint is a 409. |
| 9 | export function postClassBlueprint(body: CreateBlueprintBody): Promise<BlueprintResult> { |
| 10 | return client<BlueprintResult>("/classes/blueprints", { method: "POST", body }); |
| 11 | } |