forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB5fcd955Burak Boduroğlu2 months ago730 commits

getInsightRuns.ts10 lines, 513 bytesHistoryRawDownload
1import { client, normalizePage, pageQuery, type Page, type PageParams } from "../client";
2import type { InsightRun } from "../client";
3
4/**
5 * The run ledger, newest first. Manager+ only: `pending_students` names
6 * people, and ZEKA's output contract confines that to the management view.
7 */
8export async function getInsightRuns(params?: PageParams, signal?: AbortSignal): Promise<Page<InsightRun>> {
9 return normalizePage<InsightRun>(await client<unknown>(`/insights/runs${pageQuery(params)}`, { signal }));
10}