hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits
| 1 | import { client } from "../client"; |
| 2 | import 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 | */ |
| 11 | export function getMyInsight(signal?: AbortSignal): Promise<StudentInsight> { |
| 12 | return client<StudentInsight>("/insights/me", { signal }); |
| 13 | } |