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 { Message, MessageFolder } from "../client"; |
| 3 | |
| 4 | export type PatchMessageBody = { |
| 5 | folder?: MessageFolder | null; |
| 6 | read?: boolean | null; |
| 7 | }; |
| 8 | |
| 9 | export function patchMessageById(id: string, body: PatchMessageBody): Promise<Message> { |
| 10 | return client<Message>(`/messages/${id}`, { method: "PATCH", body }); |
| 11 | } |