import { client } from "../client"; import { normalizePage, pageQuery, type Page, type PageParams } from "../client"; import type { CourseSession } from "../client"; export async function getCourseSessions( courseId: string, params?: PageParams, signal?: AbortSignal, ): Promise> { const data = await client(`/courses/${courseId}/sessions${pageQuery(params)}`, { signal }); return normalizePage(data); }