import { client } from "../client"; import type { SchoolModules } from "../client"; export type PatchSchoolModulesBody = { enable?: string[]; disable?: string[]; enable_packages?: string[]; disable_packages?: string[]; }; // One atomic re-sell: a 409 names every broken dependency and nothing is written. export function patchSchoolModules(slug: string, body: PatchSchoolModulesBody): Promise { return client(`/schools/${encodeURIComponent(slug)}/modules`, { method: "PATCH", body }); }