forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits

postAcademicYear.ts15 lines, 573 bytesHistoryRawDownload
1import { client } from "../client";
2import type { AcademicYear, GradePromotion } from "../client";
3
4export 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
13export function postAcademicYear(body: PostAcademicYearBody): Promise<AcademicYear> {
14 return client<AcademicYear>("/academic-years", { method: "POST", body });
15}