@uniteverses/shared 1.0.20 → 1.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -14,4 +14,5 @@ npm publish --access public
14
14
  #
15
15
 
16
16
  cd uniteverses-website
17
+ npm cache clean --force
17
18
  npm install @uniteverses/shared@1.0.X
@@ -18,6 +18,7 @@ export interface SatExamCorrectAnswer {
18
18
  questionId: string;
19
19
  value: string;
20
20
  }
21
+ export type SatExamQuestionDifficulty = 'easy' | 'medium' | 'hard';
21
22
  export interface SatExamQuestion {
22
23
  id: string;
23
24
  sectionId: string;
@@ -26,10 +27,15 @@ export interface SatExamQuestion {
26
27
  order: number;
27
28
  correctOptionId: string | null;
28
29
  explanation: string | null;
30
+ difficulty: SatExamQuestionDifficulty;
31
+ difficultyValue: number;
32
+ discrimination: number;
33
+ guessing: number;
29
34
  type: SatExamQuestionType;
30
35
  options: SatExamOption[];
31
36
  correctAnswers: SatExamCorrectAnswer[];
32
37
  }
38
+ export type SatExamSectionDifficulty = 'standard' | 'easy' | 'hard';
33
39
  export interface SatExamSection {
34
40
  id: string;
35
41
  examId: string;
@@ -37,6 +43,10 @@ export interface SatExamSection {
37
43
  order: number;
38
44
  timeLimitMinutes: number | null;
39
45
  module: number | null;
46
+ difficulty: SatExamSectionDifficulty;
47
+ routingThreshold: number | null;
48
+ easyNextSectionId: string | null;
49
+ hardNextSectionId: string | null;
40
50
  questions: SatExamQuestion[];
41
51
  }
42
52
  export interface SatExam {
@@ -65,12 +75,20 @@ export interface CreateSatExamSectionInput {
65
75
  order: number;
66
76
  timeLimitMinutes?: number;
67
77
  module?: number;
78
+ difficulty?: SatExamSectionDifficulty;
79
+ routingThreshold?: number;
80
+ easyNextSectionId?: string;
81
+ hardNextSectionId?: string;
68
82
  }
69
83
  export interface UpdateSatExamSectionInput {
70
84
  name?: string;
71
85
  order?: number;
72
86
  timeLimitMinutes?: number | null;
73
87
  module?: number | null;
88
+ difficulty?: SatExamSectionDifficulty;
89
+ routingThreshold?: number | null;
90
+ easyNextSectionId?: string | null;
91
+ hardNextSectionId?: string | null;
74
92
  }
75
93
  export interface CreateSatExamQuestionInput {
76
94
  sectionId: string;
@@ -79,6 +97,10 @@ export interface CreateSatExamQuestionInput {
79
97
  order: number;
80
98
  correctOptionId?: string;
81
99
  explanation?: string;
100
+ difficulty?: SatExamQuestionDifficulty;
101
+ difficultyValue?: number;
102
+ discrimination?: number;
103
+ guessing?: number;
82
104
  options?: {
83
105
  text: string;
84
106
  order: number;
@@ -90,6 +112,10 @@ export interface UpdateSatExamQuestionInput {
90
112
  order?: number;
91
113
  correctOptionId?: string | null;
92
114
  explanation?: string | null;
115
+ difficulty?: SatExamQuestionDifficulty;
116
+ difficultyValue?: number;
117
+ discrimination?: number;
118
+ guessing?: number;
93
119
  }
94
120
  export interface CreateSatExamQuestionTypeInput {
95
121
  name: string;
@@ -108,3 +134,10 @@ export interface UpdateSatExamOptionInput {
108
134
  text?: string;
109
135
  order?: number;
110
136
  }
137
+ export interface CreateSatExamCorrectAnswerInput {
138
+ questionId: string;
139
+ value: string;
140
+ }
141
+ export interface UpdateSatExamCorrectAnswerInput {
142
+ value?: string;
143
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniteverses/shared",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [