merge: merge fix/183-post-assignment into dev
This commit is contained in:
commit
5a593cb88f
67 changed files with 2205 additions and 2129 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ export interface GroupDTO {
|
|||
class: string | ClassDTO;
|
||||
assignment: number | AssignmentDTO;
|
||||
groupNumber: number;
|
||||
members: string[] | StudentDTO[];
|
||||
members?: string[] | StudentDTO[];
|
||||
}
|
||||
|
||||
export interface GroupDTOId {
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
import { LearningObjectIdentifierDTO } from './learning-content';
|
||||
import { StudentDTO } from './student';
|
||||
import { GroupDTO } from './group';
|
||||
|
||||
export interface QuestionDTO {
|
||||
learningObjectIdentifier: LearningObjectIdentifierDTO;
|
||||
sequenceNumber?: number;
|
||||
author: StudentDTO;
|
||||
inGroup: GroupDTO;
|
||||
timestamp: string;
|
||||
content: string;
|
||||
}
|
||||
|
@ -12,6 +14,7 @@ export interface QuestionDTO {
|
|||
export interface QuestionData {
|
||||
author?: string;
|
||||
content: string;
|
||||
inGroup: GroupDTO;
|
||||
}
|
||||
|
||||
export interface QuestionId {
|
||||
|
|
|
@ -1,8 +1,16 @@
|
|||
import { UserDTO } from './user';
|
||||
import { ClassDTO } from './class';
|
||||
import { ClassStatus } from '../util/class-join-request';
|
||||
|
||||
export interface TeacherInvitationDTO {
|
||||
sender: string | UserDTO;
|
||||
receiver: string | UserDTO;
|
||||
class: string | ClassDTO;
|
||||
classId: string;
|
||||
status: ClassStatus;
|
||||
}
|
||||
|
||||
export interface TeacherInvitationData {
|
||||
sender: string;
|
||||
receiver: string;
|
||||
class: string;
|
||||
accepted?: boolean; // Use for put requests, else skip
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
export enum ClassJoinRequestStatus {
|
||||
export enum ClassStatus {
|
||||
Open = 'open',
|
||||
Accepted = 'accepted',
|
||||
Declined = 'declined',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue