Skip to content

Commit

Permalink
read teacher
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Aug 27, 2024
1 parent 6ca074a commit 4ce4ff9
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions src/api/endpoints/klass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,22 @@ import {
type RetrieveArg,
type RetrieveResult,
} from "../../utils/api"
import type { Class, Teacher } from "../models"
import type { Class, Teacher, SchoolTeacher } from "../models"
import { type TagTypes } from "../tagTypes"
import urls from "../urls"

export const CLASS_TAG: TagTypes = "Class"

export type RetrieveClassResult = RetrieveResult<
Class,
| "name"
| "read_classmates_data"
| "receive_requests_until"
| "school"
| "teacher"
>
"name" | "read_classmates_data" | "receive_requests_until" | "school"
> & { teacher: SchoolTeacher }
export type RetrieveClassArg = RetrieveArg<Class>

export type ListClassesResult = ListResult<
Class,
| "name"
| "read_classmates_data"
| "receive_requests_until"
| "school"
| "teacher"
"name" | "read_classmates_data" | "receive_requests_until" | "school",
{ teacher: SchoolTeacher }
>
export type ListClassesArg = ListArg<{ teacher: Teacher["id"] }>

Expand Down

0 comments on commit 4ce4ff9

Please sign in to comment.