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 { AcademicYear, GradePromotion } from "../client"; |
| 3 | |
| 4 | export type PatchAcademicYearBody = { |
| 5 | name?: string | null; |
| 6 | starts_at?: number | null; |
| 7 | ends_at?: number | null; |
| 8 | /** The whole new policy, not a delta: a grade left out is no longer promoted. */ |
| 9 | grade_promotions?: GradePromotion[] | null; |
| 10 | }; |
| 11 | |
| 12 | /** An archived year is read-only. */ |
| 13 | export function patchAcademicYearById(id: string, body: PatchAcademicYearBody): Promise<AcademicYear> { |
| 14 | return client<AcademicYear>(`/academic-years/${id}`, { method: "PATCH", body }); |
| 15 | } |