hezarfen_frontend
Clone
https://git.tahinli.com/Hezarfen/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits
| 1 | import { client } from "../client"; |
| 2 | import type { Appointment } from "../client"; |
| 3 | |
| 4 | // The backend pins which proposal is being accepted: the caller echoes the |
| 5 | // proposed window it read, and a superseded proposal returns 409. |
| 6 | export type AcceptRescheduleBody = { proposed_starts_at: number; proposed_ends_at: number }; |
| 7 | |
| 8 | export function patchAcceptReschedule(id: string, body: AcceptRescheduleBody): Promise<Appointment> { |
| 9 | return client<Appointment>(`/appointments/${id}/reschedule/accept`, { method: "PATCH", body }); |
| 10 | } |