hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiB0069847Burak Boduroğlu2 months ago552 commits
| 1 | import { client } from "../client"; |
| 2 | import type { Message } from "../client"; |
| 3 | |
| 4 | export type PostMessageBody = { |
| 5 | recipient_id: string; |
| 6 | subject: string; |
| 7 | body?: string | null; |
| 8 | label?: string | null; |
| 9 | }; |
| 10 | |
| 11 | export function postMessage(body: PostMessageBody): Promise<Message> { |
| 12 | return client<Message>("/messages", { method: "POST", body }); |
| 13 | } |