forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

patchSchoolModules.ts14 lines, 529 bytesHistoryRawDownload
1import { client } from "../client";
2import type { SchoolModules } from "../client";
3
4export type PatchSchoolModulesBody = {
5 enable?: string[];
6 disable?: string[];
7 enable_packages?: string[];
8 disable_packages?: string[];
9};
10
11// One atomic re-sell: a 409 names every broken dependency and nothing is written.
12export function patchSchoolModules(slug: string, body: PatchSchoolModulesBody): Promise<SchoolModules> {
13 return client<SchoolModules>(`/schools/${encodeURIComponent(slug)}/modules`, { method: "PATCH", body });
14}