import { client } from "./client"; import type { Term } from "./types"; export type PostTermBody = { name: string; starts_at: number; ends_at: number; }; export function postTerm(body: PostTermBody): Promise { return client("/terms", { method: "POST", body }); }