forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits

getAppointments.ts8 lines, 408 bytesHistoryRawDownload
1import { client } from "../client";
2import { normalizePage, pageQuery, type Page, type PageParams } from "../client";
3import type { Appointment } from "../client";
4
5export async function getAppointments(params?: PageParams, signal?: AbortSignal): Promise<Page<Appointment>> {
6 const data = await client<unknown>(`/appointments${pageQuery(params)}`, { signal });
7 return normalizePage<Appointment>(data);
8}