feat: status teacher invite

This commit is contained in:
Gabriellvl 2025-04-14 16:50:54 +02:00
parent 783c91b2e3
commit f3d2b3313c
16 changed files with 184 additions and 79 deletions

View file

@ -1,8 +1,8 @@
import { StudentDTO } from './student';
import { ClassJoinRequestStatus } from '../util/class-join-request';
import { ClassStatus } from '../util/class-join-request';
export interface ClassJoinRequestDTO {
requester: StudentDTO;
class: string;
status: ClassJoinRequestStatus;
status: ClassStatus;
}

View file

@ -1,13 +1,16 @@
import { UserDTO } from './user';
import {ClassStatus} from "../util/class-join-request";
export interface TeacherInvitationDTO {
sender: string | UserDTO;
receiver: string | UserDTO;
classId: string;
status: ClassStatus;
}
export interface TeacherInvitationData {
sender: string;
receiver: string;
class: string;
accepted?: boolean;
}

View file

@ -1,4 +1,4 @@
export enum ClassJoinRequestStatus {
export enum ClassStatus {
Open = 'open',
Accepted = 'accepted',
Declined = 'declined',