hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits
| 1 | import { client } from "../client"; |
| 2 | import type { Instance } from "../client"; |
| 3 | |
| 4 | /** Both fields are non-clearable: omit to keep, never send null. */ |
| 5 | export type PatchInstanceBody = { |
| 6 | ders_saati?: number; |
| 7 | counts_toward_karne?: boolean; |
| 8 | }; |
| 9 | |
| 10 | export function patchInstanceById(id: string, body: PatchInstanceBody): Promise<Instance> { |
| 11 | return client<Instance>(`/instances/${id}`, { method: "PATCH", body }); |
| 12 | } |