Merge remote-tracking branch 'origin/dev' into feat/endpoints-beschermen-met-authenticatie-#105
# Conflicts: # backend/src/controllers/questions.ts # backend/src/data/questions/question-repository.ts # backend/src/interfaces/question.ts # backend/src/services/questions.ts # common/src/interfaces/question.ts
This commit is contained in:
commit
8c387d6811
59 changed files with 2100 additions and 292 deletions
|
@ -1,14 +1,19 @@
|
|||
import { UserDTO } from './user';
|
||||
import { QuestionDTO, QuestionId } from './question';
|
||||
import { TeacherDTO } from './teacher';
|
||||
|
||||
export interface AnswerDTO {
|
||||
author: UserDTO;
|
||||
author: TeacherDTO;
|
||||
toQuestion: QuestionDTO;
|
||||
sequenceNumber: number;
|
||||
timestamp: string;
|
||||
content: string;
|
||||
}
|
||||
|
||||
export interface AnswerData {
|
||||
author: string;
|
||||
content: string;
|
||||
}
|
||||
|
||||
export interface AnswerId {
|
||||
author: string;
|
||||
toQuestion: QuestionId;
|
||||
|
|
|
@ -11,7 +11,7 @@ export interface Transition {
|
|||
};
|
||||
}
|
||||
|
||||
export interface LearningObjectIdentifier {
|
||||
export interface LearningObjectIdentifierDTO {
|
||||
hruid: string;
|
||||
language: Language;
|
||||
version?: number;
|
||||
|
|
|
@ -1,17 +1,22 @@
|
|||
import { LearningObjectIdentifier } from './learning-content';
|
||||
import { LearningObjectIdentifierDTO } from './learning-content';
|
||||
import { StudentDTO } from './student';
|
||||
import { GroupDTO } from './group';
|
||||
|
||||
export interface QuestionDTO {
|
||||
learningObjectIdentifier: LearningObjectIdentifier;
|
||||
learningObjectIdentifier: LearningObjectIdentifierDTO;
|
||||
sequenceNumber?: number;
|
||||
author: StudentDTO;
|
||||
inGroup: GroupDTO;
|
||||
timestamp?: string;
|
||||
timestamp: string;
|
||||
content: string;
|
||||
}
|
||||
|
||||
export interface QuestionData {
|
||||
author?: string;
|
||||
content: string;
|
||||
}
|
||||
|
||||
export interface QuestionId {
|
||||
learningObjectIdentifier: LearningObjectIdentifier;
|
||||
learningObjectIdentifier: LearningObjectIdentifierDTO;
|
||||
sequenceNumber: number;
|
||||
}
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { GroupDTO } from './group';
|
||||
import { LearningObjectIdentifier } from './learning-content';
|
||||
import { LearningObjectIdentifierDTO } from './learning-content';
|
||||
import { StudentDTO } from './student';
|
||||
import { Language } from '../util/language';
|
||||
|
||||
export interface SubmissionDTO {
|
||||
learningObjectIdentifier: LearningObjectIdentifier;
|
||||
learningObjectIdentifier: LearningObjectIdentifierDTO;
|
||||
|
||||
submissionNumber?: number;
|
||||
submitter: StudentDTO;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue