import { client } from "../client"; import type { School } from "../client"; export type CreateSchoolBody = { /** Immutable once taken: names the school's database, blobs and cookie prefix. */ slug: string; name: string; admin_username: string; admin_password: string; /** Omitted sells the whole catalog. */ modules?: string[]; }; export function postSchool(body: CreateSchoolBody): Promise { return client("/schools", { method: "POST", body }); }