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 PostAcademicYearBody = { |
| 5 | name: string; |
| 6 | /** May lie in the past — a school adopting the app mid-year backfills legitimately. */ |
| 7 | starts_at: number; |
| 8 | ends_at: number; |
| 9 | /** The sınıf-geçme policy; omit while the rollover is undecided. */ |
| 10 | grade_promotions?: GradePromotion[] | null; |
| 11 | }; |
| 12 | |
| 13 | export function postAcademicYear(body: PostAcademicYearBody): Promise<AcademicYear> { |
| 14 | return client<AcademicYear>("/academic-years", { method: "POST", body }); |
| 15 | } |