hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiB4e0a329Burak Boduroğlu2 months ago537 commits
| 1 | import { client } from "../client"; |
| 2 | import type { WorkEntry } from "../client"; |
| 3 | |
| 4 | /** Omitted fields keep their value; null never clears here. */ |
| 5 | export type PatchWorkEntryBody = { |
| 6 | check_in?: number; |
| 7 | check_out?: number; |
| 8 | }; |
| 9 | |
| 10 | export function patchWorkEntryById(id: string, body: PatchWorkEntryBody): Promise<WorkEntry> { |
| 11 | return client<WorkEntry>(`/work/entries/${id}`, { method: "PATCH", body }); |
| 12 | } |