hezarfen_frontend
Clone
https://git.tahinli.com/Hezarfen/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiB5fcd955Burak Boduroğlu2 months ago730 commits
| 1 | import { client } from "../client"; |
| 2 | import type { ExamWeightEntry } from "../client"; |
| 3 | |
| 4 | // Manager+. `kind` must be one the school runs (400 `unknown_exam_kind`); |
| 5 | // `weight` 1..100. Inheriting sections pick the change up at once. |
| 6 | export function patchOfferingExamWeight(id: string, body: ExamWeightEntry): Promise<{ weights: ExamWeightEntry[] }> { |
| 7 | return client<{ weights: ExamWeightEntry[] }>(`/offerings/${id}/exam-weights`, { method: "PATCH", body }); |
| 8 | } |