forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

getMyInsight.ts13 lines, 620 bytesHistoryRawDownload
1import { client } from "../client";
2import type { StudentInsight } from "../client";
3
4/**
5 * The caller's own insight. A student gets their summary, their own cards and
6 * their segment profile — and `attention` always empty: the attention list is
7 * written about them, never for them. Any other role gets the cards addressed
8 * to them (a teacher's `T4` cards about their students) with `summary` and
9 * `segments` empty, so neither section can be rendered as "no data".
10 */
11export function getMyInsight(signal?: AbortSignal): Promise<StudentInsight> {
12 return client<StudentInsight>("/insights/me", { signal });
13}