Skip to content

Commit

Permalink
Merge pull request #36 from polyglot-edu/20-new-execution-api-concept
Browse files Browse the repository at this point in the history
type update
  • Loading branch information
tmaog authored Apr 12, 2024
2 parents bf3dacb + fe00272 commit 2489854
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
14 changes: 0 additions & 14 deletions src/execution/plugins/Node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@ export type MultipleChoiceQuestionNodeData = {
question: string;
choices: string[];
isChoiceCorrect: boolean[];
aiQuestion: boolean;
solution: string;
language: string;
text: string;
level: number;
questionCategory: number;
n_o_ca: number;
nedd: number;
n_o_d: number;
};

export type CodingQuestionNodeData = {
Expand All @@ -49,12 +40,7 @@ export type CloseEndedQuestionNodeData = {
export type OpenQuestionNodeData = {
question: string;
material: string;
aiQuestion: boolean;
language?: string;
questionGenerated?: string;
possibleAnswer?: string;
questionCategory?: number;
questionType?: number;
};

export const zip = <T, K>(a: T[], b: K[]) =>
Expand Down
14 changes: 0 additions & 14 deletions src/models/node.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,7 @@ export const openQuestionNodeSchema = new mongoose.Schema({
data: {
question: {type: String},
material: {type: String},
aiQuestion: {type: Boolean},
language: {type: String},
questionGenerated: {type: String},
possibleAnswer: {type: String},
questionCategory: {type: Number},
questionType: {type: Number},
}
}, options);

Expand All @@ -178,15 +173,6 @@ export const multipleChoiceQuestionNodeSchema = new mongoose.Schema({
question: {type: String},
choices: [{type: String}],
isChoiceCorrect: [{type: Boolean}],
aiQuestion: {type: String},
solution: {type: String},
language: {type: String},
text: {type: String},
level: {type: Number},
questionCategory: {type: Number},
n_o_ca: {type: Number},
nedd: {type: Number},
n_o_d: {type: Number},
}
}, options);

Expand Down

0 comments on commit 2489854

Please sign in to comment.