@studious-lms/server 1.4.6 → 1.4.9

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.
Files changed (177) hide show
  1. package/.github/workflows/npm.yml +28 -0
  2. package/dist/models/access.d.ts +112 -0
  3. package/dist/models/access.d.ts.map +1 -0
  4. package/dist/models/access.js +49 -0
  5. package/dist/models/access.js.map +1 -0
  6. package/dist/models/announcement.d.ts +17 -2
  7. package/dist/models/announcement.d.ts.map +1 -1
  8. package/dist/models/announcement.js +21 -4
  9. package/dist/models/announcement.js.map +1 -1
  10. package/dist/models/assignment.d.ts +69 -37
  11. package/dist/models/assignment.d.ts.map +1 -1
  12. package/dist/models/assignment.js +124 -15
  13. package/dist/models/assignment.js.map +1 -1
  14. package/dist/models/attendance.d.ts +1 -1
  15. package/dist/models/attendance.d.ts.map +1 -1
  16. package/dist/models/attendance.js +6 -5
  17. package/dist/models/attendance.js.map +1 -1
  18. package/dist/models/auth.d.ts +5 -5
  19. package/dist/models/auth.d.ts.map +1 -1
  20. package/dist/models/auth.js +7 -11
  21. package/dist/models/auth.js.map +1 -1
  22. package/dist/models/class.d.ts +26 -26
  23. package/dist/models/class.d.ts.map +1 -1
  24. package/dist/models/class.js +7 -11
  25. package/dist/models/class.js.map +1 -1
  26. package/dist/models/comment.d.ts +134 -70
  27. package/dist/models/comment.d.ts.map +1 -1
  28. package/dist/models/comment.js +30 -42
  29. package/dist/models/comment.js.map +1 -1
  30. package/dist/models/conversation.d.ts +7 -7
  31. package/dist/models/event.d.ts +52 -3
  32. package/dist/models/event.d.ts.map +1 -1
  33. package/dist/models/event.js +56 -6
  34. package/dist/models/event.js.map +1 -1
  35. package/dist/models/file.d.ts +178 -103
  36. package/dist/models/file.d.ts.map +1 -1
  37. package/dist/models/file.js +54 -14
  38. package/dist/models/file.js.map +1 -1
  39. package/dist/models/folder.d.ts +22 -22
  40. package/dist/models/folder.d.ts.map +1 -1
  41. package/dist/models/folder.js +5 -4
  42. package/dist/models/folder.js.map +1 -1
  43. package/dist/models/labChat.d.ts +20 -20
  44. package/dist/models/labChat.d.ts.map +1 -1
  45. package/dist/models/labChat.js +8 -10
  46. package/dist/models/labChat.js.map +1 -1
  47. package/dist/models/marketing.d.ts +1 -1
  48. package/dist/models/message.d.ts +6 -6
  49. package/dist/models/newtonChat.d.ts +5 -5
  50. package/dist/models/school.d.ts +361 -0
  51. package/dist/models/school.d.ts.map +1 -0
  52. package/dist/models/school.js +314 -0
  53. package/dist/models/school.js.map +1 -0
  54. package/dist/models/section.d.ts +1 -1
  55. package/dist/models/section.d.ts.map +1 -1
  56. package/dist/models/section.js +5 -4
  57. package/dist/models/section.js.map +1 -1
  58. package/dist/models/user.d.ts +4 -4
  59. package/dist/models/worksheet.d.ts +163 -141
  60. package/dist/models/worksheet.d.ts.map +1 -1
  61. package/dist/models/worksheet.js +42 -17
  62. package/dist/models/worksheet.js.map +1 -1
  63. package/dist/pipelines/gradeWorksheet.d.ts +2 -2
  64. package/dist/pipelines/pdfToWorksheet.d.ts +1 -1
  65. package/dist/routers/_app.d.ts +1271 -327
  66. package/dist/routers/_app.d.ts.map +1 -1
  67. package/dist/routers/_app.js +4 -2
  68. package/dist/routers/_app.js.map +1 -1
  69. package/dist/routers/announcement.d.ts +5 -5
  70. package/dist/routers/announcement.d.ts.map +1 -1
  71. package/dist/routers/announcement.js +25 -5
  72. package/dist/routers/announcement.js.map +1 -1
  73. package/dist/routers/assignment.d.ts +79 -44
  74. package/dist/routers/assignment.d.ts.map +1 -1
  75. package/dist/routers/assignment.js +32 -12
  76. package/dist/routers/assignment.js.map +1 -1
  77. package/dist/routers/class.d.ts +40 -20
  78. package/dist/routers/class.d.ts.map +1 -1
  79. package/dist/routers/class.js +3 -2
  80. package/dist/routers/class.js.map +1 -1
  81. package/dist/routers/comment.d.ts +5 -5
  82. package/dist/routers/conversation.d.ts +6 -6
  83. package/dist/routers/event.d.ts +21 -2
  84. package/dist/routers/event.d.ts.map +1 -1
  85. package/dist/routers/file.d.ts +2 -2
  86. package/dist/routers/folder.d.ts +24 -24
  87. package/dist/routers/labChat.d.ts +7 -7
  88. package/dist/routers/school.d.ts +384 -0
  89. package/dist/routers/school.d.ts.map +1 -0
  90. package/dist/routers/school.js +79 -0
  91. package/dist/routers/school.js.map +1 -0
  92. package/dist/routers/search.d.ts +1 -1
  93. package/dist/routers/worksheet.d.ts +36 -20
  94. package/dist/routers/worksheet.d.ts.map +1 -1
  95. package/dist/routers/worksheet.js +10 -3
  96. package/dist/routers/worksheet.js.map +1 -1
  97. package/dist/services/announcement.d.ts.map +1 -1
  98. package/dist/services/announcement.js +10 -6
  99. package/dist/services/announcement.js.map +1 -1
  100. package/dist/services/assignment.d.ts +66 -36
  101. package/dist/services/assignment.d.ts.map +1 -1
  102. package/dist/services/assignment.js +37 -3
  103. package/dist/services/assignment.js.map +1 -1
  104. package/dist/services/class.d.ts +39 -19
  105. package/dist/services/class.d.ts.map +1 -1
  106. package/dist/services/class.js +52 -15
  107. package/dist/services/class.js.map +1 -1
  108. package/dist/services/comment.d.ts +5 -5
  109. package/dist/services/comment.d.ts.map +1 -1
  110. package/dist/services/comment.js +8 -3
  111. package/dist/services/comment.js.map +1 -1
  112. package/dist/services/conversation.d.ts +6 -6
  113. package/dist/services/event.d.ts +21 -2
  114. package/dist/services/event.d.ts.map +1 -1
  115. package/dist/services/event.js +11 -7
  116. package/dist/services/event.js.map +1 -1
  117. package/dist/services/file.d.ts +2 -2
  118. package/dist/services/file.d.ts.map +1 -1
  119. package/dist/services/file.js +17 -8
  120. package/dist/services/file.js.map +1 -1
  121. package/dist/services/folder.d.ts +24 -24
  122. package/dist/services/labChat.d.ts +7 -7
  123. package/dist/services/school.d.ts +299 -0
  124. package/dist/services/school.d.ts.map +1 -0
  125. package/dist/services/school.js +225 -0
  126. package/dist/services/school.js.map +1 -0
  127. package/dist/services/worksheet.d.ts +31 -20
  128. package/dist/services/worksheet.d.ts.map +1 -1
  129. package/dist/services/worksheet.js +37 -3
  130. package/dist/services/worksheet.js.map +1 -1
  131. package/package.json +1 -1
  132. package/prisma/migrations/20260504071500_school_memberships/migration.sql +81 -0
  133. package/prisma/schema.prisma +66 -2
  134. package/src/models/access.ts +48 -0
  135. package/src/models/announcement.ts +19 -2
  136. package/src/models/assignment.ts +149 -13
  137. package/src/models/attendance.ts +4 -3
  138. package/src/models/auth.ts +8 -9
  139. package/src/models/class.ts +8 -9
  140. package/src/models/comment.ts +29 -40
  141. package/src/models/event.ts +54 -4
  142. package/src/models/file.ts +53 -12
  143. package/src/models/folder.ts +3 -2
  144. package/src/models/labChat.ts +9 -8
  145. package/src/models/school.ts +361 -0
  146. package/src/models/section.ts +3 -2
  147. package/src/models/worksheet.ts +61 -12
  148. package/src/routers/_app.ts +2 -0
  149. package/src/routers/announcement.ts +30 -4
  150. package/src/routers/assignment.ts +46 -9
  151. package/src/routers/class.ts +1 -0
  152. package/src/routers/school.ts +122 -0
  153. package/src/routers/worksheet.ts +18 -0
  154. package/src/services/announcement.ts +12 -4
  155. package/src/services/assignment.ts +47 -1
  156. package/src/services/class.ts +61 -14
  157. package/src/services/comment.ts +10 -1
  158. package/src/services/event.ts +23 -6
  159. package/src/services/file.ts +20 -6
  160. package/src/services/school.ts +308 -0
  161. package/src/services/worksheet.ts +46 -0
  162. package/dist/lib/notificationHandler.d.ts +0 -25
  163. package/dist/lib/notificationHandler.d.ts.map +0 -1
  164. package/dist/lib/notificationHandler.js +0 -32
  165. package/dist/lib/notificationHandler.js.map +0 -1
  166. package/dist/server/pipelines/aiLabChat.d.ts +0 -21
  167. package/dist/server/pipelines/aiLabChat.d.ts.map +0 -1
  168. package/dist/server/pipelines/aiLabChat.js +0 -456
  169. package/dist/server/pipelines/aiLabChat.js.map +0 -1
  170. package/dist/server/pipelines/aiNewtonChat.d.ts +0 -30
  171. package/dist/server/pipelines/aiNewtonChat.d.ts.map +0 -1
  172. package/dist/server/pipelines/aiNewtonChat.js +0 -285
  173. package/dist/server/pipelines/aiNewtonChat.js.map +0 -1
  174. package/dist/server/pipelines/gradeWorksheet.d.ts +0 -30
  175. package/dist/server/pipelines/gradeWorksheet.d.ts.map +0 -1
  176. package/dist/server/pipelines/gradeWorksheet.js +0 -248
  177. package/dist/server/pipelines/gradeWorksheet.js.map +0 -1
@@ -1,6 +1,10 @@
1
+ /**
2
+ * Worksheet model – worksheets, questions, submissions, student progress, grading.
3
+ */
4
+ import type { Prisma } from "@prisma/client";
1
5
  import type { WorksheetQuestionType, GenerationStatus } from "@prisma/client";
2
6
  /** @returns Worksheet with questions and class. */
3
- export declare function findWorksheetById(id: string): import(".prisma/client").Prisma.Prisma__WorksheetClient<({
7
+ export declare function findWorksheetById(id: string): Prisma.Prisma__WorksheetClient<({
4
8
  class: {
5
9
  name: string;
6
10
  id: string;
@@ -12,14 +16,14 @@ export declare function findWorksheetById(id: string): import(".prisma/client").
12
16
  } | null;
13
17
  questions: {
14
18
  type: import(".prisma/client").$Enums.WorksheetQuestionType;
15
- options: import("@prisma/client/runtime/library.js").JsonValue | null;
19
+ options: Prisma.JsonValue | null;
16
20
  id: string;
17
21
  createdAt: Date;
22
+ updatedAt: Date;
18
23
  order: number | null;
19
24
  points: number;
20
- updatedAt: Date;
21
25
  worksheetId: string;
22
- markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
26
+ markScheme: Prisma.JsonValue | null;
23
27
  question: string;
24
28
  answer: string;
25
29
  }[];
@@ -27,8 +31,8 @@ export declare function findWorksheetById(id: string): import(".prisma/client").
27
31
  name: string;
28
32
  id: string;
29
33
  createdAt: Date;
30
- classId: string;
31
34
  updatedAt: Date;
35
+ classId: string;
32
36
  }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
33
37
  datasources: {
34
38
  db: {
@@ -37,12 +41,12 @@ export declare function findWorksheetById(id: string): import(".prisma/client").
37
41
  };
38
42
  }>;
39
43
  /** @returns Worksheet by ID (minimal). */
40
- export declare function findWorksheetByIdMinimal(id: string): import(".prisma/client").Prisma.Prisma__WorksheetClient<{
44
+ export declare function findWorksheetByIdMinimal(id: string): Prisma.Prisma__WorksheetClient<{
41
45
  name: string;
42
46
  id: string;
43
47
  createdAt: Date;
44
- classId: string;
45
48
  updatedAt: Date;
49
+ classId: string;
46
50
  } | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
47
51
  datasources: {
48
52
  db: {
@@ -51,7 +55,7 @@ export declare function findWorksheetByIdMinimal(id: string): import(".prisma/cl
51
55
  };
52
56
  }>;
53
57
  /** @returns Worksheet by ID for an authorized class member. */
54
- export declare function findWorksheetByIdForClassMember(id: string, userId: string): import(".prisma/client").Prisma.Prisma__WorksheetClient<({
58
+ export declare function findWorksheetByIdForClassMember(id: string, userId: string): Prisma.Prisma__WorksheetClient<({
55
59
  class: {
56
60
  name: string;
57
61
  id: string;
@@ -63,14 +67,14 @@ export declare function findWorksheetByIdForClassMember(id: string, userId: stri
63
67
  } | null;
64
68
  questions: {
65
69
  type: import(".prisma/client").$Enums.WorksheetQuestionType;
66
- options: import("@prisma/client/runtime/library.js").JsonValue | null;
70
+ options: Prisma.JsonValue | null;
67
71
  id: string;
68
72
  createdAt: Date;
73
+ updatedAt: Date;
69
74
  order: number | null;
70
75
  points: number;
71
- updatedAt: Date;
72
76
  worksheetId: string;
73
- markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
77
+ markScheme: Prisma.JsonValue | null;
74
78
  question: string;
75
79
  answer: string;
76
80
  }[];
@@ -78,8 +82,8 @@ export declare function findWorksheetByIdForClassMember(id: string, userId: stri
78
82
  name: string;
79
83
  id: string;
80
84
  createdAt: Date;
81
- classId: string;
82
85
  updatedAt: Date;
86
+ classId: string;
83
87
  }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
84
88
  datasources: {
85
89
  db: {
@@ -88,7 +92,7 @@ export declare function findWorksheetByIdForClassMember(id: string, userId: stri
88
92
  };
89
93
  }>;
90
94
  /** @returns Worksheet by ID for an authorized teacher. */
91
- export declare function findWorksheetByIdForTeacher(id: string, userId: string): import(".prisma/client").Prisma.Prisma__WorksheetClient<({
95
+ export declare function findWorksheetByIdForTeacher(id: string, userId: string): Prisma.Prisma__WorksheetClient<({
92
96
  class: {
93
97
  name: string;
94
98
  id: string;
@@ -100,14 +104,14 @@ export declare function findWorksheetByIdForTeacher(id: string, userId: string):
100
104
  } | null;
101
105
  questions: {
102
106
  type: import(".prisma/client").$Enums.WorksheetQuestionType;
103
- options: import("@prisma/client/runtime/library.js").JsonValue | null;
107
+ options: Prisma.JsonValue | null;
104
108
  id: string;
105
109
  createdAt: Date;
110
+ updatedAt: Date;
106
111
  order: number | null;
107
112
  points: number;
108
- updatedAt: Date;
109
113
  worksheetId: string;
110
- markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
114
+ markScheme: Prisma.JsonValue | null;
111
115
  question: string;
112
116
  answer: string;
113
117
  }[];
@@ -115,8 +119,8 @@ export declare function findWorksheetByIdForTeacher(id: string, userId: string):
115
119
  name: string;
116
120
  id: string;
117
121
  createdAt: Date;
118
- classId: string;
119
122
  updatedAt: Date;
123
+ classId: string;
120
124
  }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
121
125
  datasources: {
122
126
  db: {
@@ -125,7 +129,7 @@ export declare function findWorksheetByIdForTeacher(id: string, userId: string):
125
129
  };
126
130
  }>;
127
131
  /** @returns Worksheets for a class. */
128
- export declare function findWorksheetsByClassId(classId: string): import(".prisma/client").Prisma.PrismaPromise<({
132
+ export declare function findWorksheetsByClassId(classId: string): Prisma.PrismaPromise<({
129
133
  questions: {
130
134
  id: string;
131
135
  }[];
@@ -133,20 +137,20 @@ export declare function findWorksheetsByClassId(classId: string): import(".prism
133
137
  name: string;
134
138
  id: string;
135
139
  createdAt: Date;
136
- classId: string;
137
140
  updatedAt: Date;
141
+ classId: string;
138
142
  })[]>;
139
143
  /** @returns Worksheet question by ID for an authorized teacher. */
140
- export declare function findWorksheetQuestionByIdForTeacher(id: string, userId: string): import(".prisma/client").Prisma.Prisma__WorksheetQuestionClient<{
144
+ export declare function findWorksheetQuestionByIdForTeacher(id: string, userId: string): Prisma.Prisma__WorksheetQuestionClient<{
141
145
  type: import(".prisma/client").$Enums.WorksheetQuestionType;
142
- options: import("@prisma/client/runtime/library.js").JsonValue | null;
146
+ options: Prisma.JsonValue | null;
143
147
  id: string;
144
148
  createdAt: Date;
149
+ updatedAt: Date;
145
150
  order: number | null;
146
151
  points: number;
147
- updatedAt: Date;
148
152
  worksheetId: string;
149
- markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
153
+ markScheme: Prisma.JsonValue | null;
150
154
  question: string;
151
155
  answer: string;
152
156
  } | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
@@ -157,16 +161,16 @@ export declare function findWorksheetQuestionByIdForTeacher(id: string, userId:
157
161
  };
158
162
  }>;
159
163
  /** @returns Worksheet question scoped to a worksheet. */
160
- export declare function findWorksheetQuestionByIdInWorksheet(id: string, worksheetId: string): import(".prisma/client").Prisma.Prisma__WorksheetQuestionClient<{
164
+ export declare function findWorksheetQuestionByIdInWorksheet(id: string, worksheetId: string): Prisma.Prisma__WorksheetQuestionClient<{
161
165
  type: import(".prisma/client").$Enums.WorksheetQuestionType;
162
- options: import("@prisma/client/runtime/library.js").JsonValue | null;
166
+ options: Prisma.JsonValue | null;
163
167
  id: string;
164
168
  createdAt: Date;
169
+ updatedAt: Date;
165
170
  order: number | null;
166
171
  points: number;
167
- updatedAt: Date;
168
172
  worksheetId: string;
169
- markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
173
+ markScheme: Prisma.JsonValue | null;
170
174
  question: string;
171
175
  answer: string;
172
176
  } | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
@@ -180,12 +184,12 @@ export declare function findWorksheetQuestionByIdInWorksheet(id: string, workshe
180
184
  export declare function createWorksheet(data: {
181
185
  classId: string;
182
186
  name: string;
183
- }): import(".prisma/client").Prisma.Prisma__WorksheetClient<{
187
+ }): Prisma.Prisma__WorksheetClient<{
184
188
  name: string;
185
189
  id: string;
186
190
  createdAt: Date;
187
- classId: string;
188
191
  updatedAt: Date;
192
+ classId: string;
189
193
  }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
190
194
  datasources: {
191
195
  db: {
@@ -196,12 +200,12 @@ export declare function createWorksheet(data: {
196
200
  /** Update worksheet name. */
197
201
  export declare function updateWorksheet(id: string, data: {
198
202
  name?: string;
199
- }): import(".prisma/client").Prisma.Prisma__WorksheetClient<{
203
+ }): Prisma.Prisma__WorksheetClient<{
200
204
  name: string;
201
205
  id: string;
202
206
  createdAt: Date;
203
- classId: string;
204
207
  updatedAt: Date;
208
+ classId: string;
205
209
  }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
206
210
  datasources: {
207
211
  db: {
@@ -210,12 +214,12 @@ export declare function updateWorksheet(id: string, data: {
210
214
  };
211
215
  }>;
212
216
  /** Delete a worksheet. */
213
- export declare function deleteWorksheet(id: string): import(".prisma/client").Prisma.Prisma__WorksheetClient<{
217
+ export declare function deleteWorksheet(id: string): Prisma.Prisma__WorksheetClient<{
214
218
  name: string;
215
219
  id: string;
216
220
  createdAt: Date;
217
- classId: string;
218
221
  updatedAt: Date;
222
+ classId: string;
219
223
  }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
220
224
  datasources: {
221
225
  db: {
@@ -223,17 +227,35 @@ export declare function deleteWorksheet(id: string): import(".prisma/client").Pr
223
227
  };
224
228
  };
225
229
  }>;
230
+ /**
231
+ * Clone a worksheet and its questions into another class with a new name.
232
+ * Does not copy student responses or assignment links.
233
+ */
234
+ export declare function duplicateWorksheetWithClient(tx: Prisma.TransactionClient, sourceWorksheetId: string, targetClassId: string, name: string): Promise<{
235
+ name: string;
236
+ id: string;
237
+ createdAt: Date;
238
+ updatedAt: Date;
239
+ classId: string;
240
+ } | null>;
241
+ export declare function duplicateWorksheet(sourceWorksheetId: string, targetClassId: string, name: string): Promise<{
242
+ name: string;
243
+ id: string;
244
+ createdAt: Date;
245
+ updatedAt: Date;
246
+ classId: string;
247
+ } | null>;
226
248
  /** @returns Questions for a worksheet. */
227
- export declare function findQuestionsByWorksheetId(worksheetId: string): import(".prisma/client").Prisma.PrismaPromise<{
249
+ export declare function findQuestionsByWorksheetId(worksheetId: string): Prisma.PrismaPromise<{
228
250
  type: import(".prisma/client").$Enums.WorksheetQuestionType;
229
- options: import("@prisma/client/runtime/library.js").JsonValue | null;
251
+ options: Prisma.JsonValue | null;
230
252
  id: string;
231
253
  createdAt: Date;
254
+ updatedAt: Date;
232
255
  order: number | null;
233
256
  points: number;
234
- updatedAt: Date;
235
257
  worksheetId: string;
236
- markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
258
+ markScheme: Prisma.JsonValue | null;
237
259
  question: string;
238
260
  answer: string;
239
261
  }[]>;
@@ -247,16 +269,16 @@ export declare function createWorksheetQuestion(data: {
247
269
  options?: object;
248
270
  markScheme?: object;
249
271
  order?: number;
250
- }): import(".prisma/client").Prisma.Prisma__WorksheetQuestionClient<{
272
+ }): Prisma.Prisma__WorksheetQuestionClient<{
251
273
  type: import(".prisma/client").$Enums.WorksheetQuestionType;
252
- options: import("@prisma/client/runtime/library.js").JsonValue | null;
274
+ options: Prisma.JsonValue | null;
253
275
  id: string;
254
276
  createdAt: Date;
277
+ updatedAt: Date;
255
278
  order: number | null;
256
279
  points: number;
257
- updatedAt: Date;
258
280
  worksheetId: string;
259
- markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
281
+ markScheme: Prisma.JsonValue | null;
260
282
  question: string;
261
283
  answer: string;
262
284
  }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
@@ -267,16 +289,16 @@ export declare function createWorksheetQuestion(data: {
267
289
  };
268
290
  }>;
269
291
  /** Update question order. */
270
- export declare function updateWorksheetQuestionOrder(id: string, order: number): import(".prisma/client").Prisma.Prisma__WorksheetQuestionClient<{
292
+ export declare function updateWorksheetQuestionOrder(id: string, order: number): Prisma.Prisma__WorksheetQuestionClient<{
271
293
  type: import(".prisma/client").$Enums.WorksheetQuestionType;
272
- options: import("@prisma/client/runtime/library.js").JsonValue | null;
294
+ options: Prisma.JsonValue | null;
273
295
  id: string;
274
296
  createdAt: Date;
297
+ updatedAt: Date;
275
298
  order: number | null;
276
299
  points: number;
277
- updatedAt: Date;
278
300
  worksheetId: string;
279
- markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
301
+ markScheme: Prisma.JsonValue | null;
280
302
  question: string;
281
303
  answer: string;
282
304
  }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
@@ -294,16 +316,16 @@ export declare function updateWorksheetQuestion(id: string, data: {
294
316
  options?: object;
295
317
  markScheme?: object;
296
318
  type?: WorksheetQuestionType;
297
- }): import(".prisma/client").Prisma.Prisma__WorksheetQuestionClient<{
319
+ }): Prisma.Prisma__WorksheetQuestionClient<{
298
320
  type: import(".prisma/client").$Enums.WorksheetQuestionType;
299
- options: import("@prisma/client/runtime/library.js").JsonValue | null;
321
+ options: Prisma.JsonValue | null;
300
322
  id: string;
301
323
  createdAt: Date;
324
+ updatedAt: Date;
302
325
  order: number | null;
303
326
  points: number;
304
- updatedAt: Date;
305
327
  worksheetId: string;
306
- markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
328
+ markScheme: Prisma.JsonValue | null;
307
329
  question: string;
308
330
  answer: string;
309
331
  }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
@@ -314,16 +336,16 @@ export declare function updateWorksheetQuestion(id: string, data: {
314
336
  };
315
337
  }>;
316
338
  /** Delete a worksheet question. */
317
- export declare function deleteWorksheetQuestion(id: string): import(".prisma/client").Prisma.Prisma__WorksheetQuestionClient<{
339
+ export declare function deleteWorksheetQuestion(id: string): Prisma.Prisma__WorksheetQuestionClient<{
318
340
  type: import(".prisma/client").$Enums.WorksheetQuestionType;
319
- options: import("@prisma/client/runtime/library.js").JsonValue | null;
341
+ options: Prisma.JsonValue | null;
320
342
  id: string;
321
343
  createdAt: Date;
344
+ updatedAt: Date;
322
345
  order: number | null;
323
346
  points: number;
324
- updatedAt: Date;
325
347
  worksheetId: string;
326
- markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
348
+ markScheme: Prisma.JsonValue | null;
327
349
  question: string;
328
350
  answer: string;
329
351
  }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
@@ -334,10 +356,10 @@ export declare function deleteWorksheetQuestion(id: string): import(".prisma/cli
334
356
  };
335
357
  }>;
336
358
  /** @returns Submission by ID. */
337
- export declare function findSubmissionById(id: string): import(".prisma/client").Prisma.Prisma__SubmissionClient<{
359
+ export declare function findSubmissionById(id: string): Prisma.Prisma__SubmissionClient<{
338
360
  id: string;
339
- assignmentId: string;
340
361
  createdAt: Date;
362
+ assignmentId: string;
341
363
  modifiedAt: Date;
342
364
  studentId: string;
343
365
  extendedResponse: string | null;
@@ -358,7 +380,7 @@ export declare function findSubmissionById(id: string): import(".prisma/client")
358
380
  };
359
381
  }>;
360
382
  /** @returns Submission if requester is the owning student or a class teacher for the worksheet. */
361
- export declare function findSubmissionByIdForWorksheetAccess(id: string, worksheetId: string, worksheetClassId: string, userId: string): import(".prisma/client").Prisma.Prisma__SubmissionClient<{
383
+ export declare function findSubmissionByIdForWorksheetAccess(id: string, worksheetId: string, worksheetClassId: string, userId: string): Prisma.Prisma__SubmissionClient<{
362
384
  id: string;
363
385
  studentId: string;
364
386
  } | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
@@ -369,7 +391,7 @@ export declare function findSubmissionByIdForWorksheetAccess(id: string, workshe
369
391
  };
370
392
  }>;
371
393
  /** @returns Worksheet response for submission and worksheet. */
372
- export declare function findWorksheetResponseBySubmissionAndWorksheet(submissionId: string, worksheetId: string): import(".prisma/client").Prisma.Prisma__StudentWorksheetResponseClient<({
394
+ export declare function findWorksheetResponseBySubmissionAndWorksheet(submissionId: string, worksheetId: string): Prisma.Prisma__StudentWorksheetResponseClient<({
373
395
  responses: ({
374
396
  comments: {
375
397
  id: string;
@@ -378,24 +400,24 @@ export declare function findWorksheetResponseBySubmissionAndWorksheet(submission
378
400
  status: import(".prisma/client").$Enums.GenerationStatus | null;
379
401
  id: string;
380
402
  createdAt: Date;
403
+ updatedAt: Date | null;
381
404
  studentId: string;
382
405
  questionId: string;
383
406
  response: string;
384
407
  isCorrect: boolean;
385
- markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
408
+ markschemeState: Prisma.JsonValue | null;
386
409
  points: number;
387
410
  feedback: string | null;
388
- updatedAt: Date | null;
389
411
  studentWorksheetResponseId: string | null;
390
412
  })[];
391
413
  } & {
392
414
  id: string;
393
- submissionId: string | null;
394
415
  createdAt: Date;
416
+ updatedAt: Date;
417
+ submissionId: string | null;
395
418
  studentId: string;
396
419
  submittedAt: Date | null;
397
420
  submitted: boolean;
398
- updatedAt: Date;
399
421
  worksheetId: string;
400
422
  }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
401
423
  datasources: {
@@ -414,24 +436,24 @@ export declare function findOrCreateWorksheetResponse(submissionId: string, work
414
436
  status: import(".prisma/client").$Enums.GenerationStatus | null;
415
437
  id: string;
416
438
  createdAt: Date;
439
+ updatedAt: Date | null;
417
440
  studentId: string;
418
441
  questionId: string;
419
442
  response: string;
420
443
  isCorrect: boolean;
421
- markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
444
+ markschemeState: Prisma.JsonValue | null;
422
445
  points: number;
423
446
  feedback: string | null;
424
- updatedAt: Date | null;
425
447
  studentWorksheetResponseId: string | null;
426
448
  })[];
427
449
  } & {
428
450
  id: string;
429
- submissionId: string | null;
430
451
  createdAt: Date;
452
+ updatedAt: Date;
453
+ submissionId: string | null;
431
454
  studentId: string;
432
455
  submittedAt: Date | null;
433
456
  submitted: boolean;
434
- updatedAt: Date;
435
457
  worksheetId: string;
436
458
  }>;
437
459
  /** Create a worksheet response. */
@@ -439,7 +461,7 @@ export declare function createWorksheetResponse(data: {
439
461
  worksheetId: string;
440
462
  submissionId: string;
441
463
  studentId: string;
442
- }): import(".prisma/client").Prisma.Prisma__StudentWorksheetResponseClient<{
464
+ }): Prisma.Prisma__StudentWorksheetResponseClient<{
443
465
  responses: ({
444
466
  comments: {
445
467
  id: string;
@@ -448,24 +470,24 @@ export declare function createWorksheetResponse(data: {
448
470
  status: import(".prisma/client").$Enums.GenerationStatus | null;
449
471
  id: string;
450
472
  createdAt: Date;
473
+ updatedAt: Date | null;
451
474
  studentId: string;
452
475
  questionId: string;
453
476
  response: string;
454
477
  isCorrect: boolean;
455
- markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
478
+ markschemeState: Prisma.JsonValue | null;
456
479
  points: number;
457
480
  feedback: string | null;
458
- updatedAt: Date | null;
459
481
  studentWorksheetResponseId: string | null;
460
482
  })[];
461
483
  } & {
462
484
  id: string;
463
- submissionId: string | null;
464
485
  createdAt: Date;
486
+ updatedAt: Date;
487
+ submissionId: string | null;
465
488
  studentId: string;
466
489
  submittedAt: Date | null;
467
490
  submitted: boolean;
468
- updatedAt: Date;
469
491
  worksheetId: string;
470
492
  }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
471
493
  datasources: {
@@ -475,29 +497,29 @@ export declare function createWorksheetResponse(data: {
475
497
  };
476
498
  }>;
477
499
  /** @returns Worksheet response by ID. */
478
- export declare function findWorksheetResponseById(id: string): import(".prisma/client").Prisma.Prisma__StudentWorksheetResponseClient<({
500
+ export declare function findWorksheetResponseById(id: string): Prisma.Prisma__StudentWorksheetResponseClient<({
479
501
  responses: {
480
502
  status: import(".prisma/client").$Enums.GenerationStatus | null;
481
503
  id: string;
482
504
  createdAt: Date;
505
+ updatedAt: Date | null;
483
506
  studentId: string;
484
507
  questionId: string;
485
508
  response: string;
486
509
  isCorrect: boolean;
487
- markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
510
+ markschemeState: Prisma.JsonValue | null;
488
511
  points: number;
489
512
  feedback: string | null;
490
- updatedAt: Date | null;
491
513
  studentWorksheetResponseId: string | null;
492
514
  }[];
493
515
  } & {
494
516
  id: string;
495
- submissionId: string | null;
496
517
  createdAt: Date;
518
+ updatedAt: Date;
519
+ submissionId: string | null;
497
520
  studentId: string;
498
521
  submittedAt: Date | null;
499
522
  submitted: boolean;
500
- updatedAt: Date;
501
523
  worksheetId: string;
502
524
  }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
503
525
  datasources: {
@@ -507,36 +529,36 @@ export declare function findWorksheetResponseById(id: string): import(".prisma/c
507
529
  };
508
530
  }>;
509
531
  /** @returns Worksheet response if requester is the owning student. */
510
- export declare function findWorksheetResponseByIdForStudent(id: string, userId: string): import(".prisma/client").Prisma.Prisma__StudentWorksheetResponseClient<({
532
+ export declare function findWorksheetResponseByIdForStudent(id: string, userId: string): Prisma.Prisma__StudentWorksheetResponseClient<({
511
533
  worksheet: {
512
534
  name: string;
513
535
  id: string;
514
536
  createdAt: Date;
515
- classId: string;
516
537
  updatedAt: Date;
538
+ classId: string;
517
539
  };
518
540
  responses: {
519
541
  status: import(".prisma/client").$Enums.GenerationStatus | null;
520
542
  id: string;
521
543
  createdAt: Date;
544
+ updatedAt: Date | null;
522
545
  studentId: string;
523
546
  questionId: string;
524
547
  response: string;
525
548
  isCorrect: boolean;
526
- markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
549
+ markschemeState: Prisma.JsonValue | null;
527
550
  points: number;
528
551
  feedback: string | null;
529
- updatedAt: Date | null;
530
552
  studentWorksheetResponseId: string | null;
531
553
  }[];
532
554
  } & {
533
555
  id: string;
534
- submissionId: string | null;
535
556
  createdAt: Date;
557
+ updatedAt: Date;
558
+ submissionId: string | null;
536
559
  studentId: string;
537
560
  submittedAt: Date | null;
538
561
  submitted: boolean;
539
- updatedAt: Date;
540
562
  worksheetId: string;
541
563
  }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
542
564
  datasources: {
@@ -546,36 +568,36 @@ export declare function findWorksheetResponseByIdForStudent(id: string, userId:
546
568
  };
547
569
  }>;
548
570
  /** @returns Worksheet response if requester is a class teacher. */
549
- export declare function findWorksheetResponseByIdForTeacher(id: string, userId: string): import(".prisma/client").Prisma.Prisma__StudentWorksheetResponseClient<({
571
+ export declare function findWorksheetResponseByIdForTeacher(id: string, userId: string): Prisma.Prisma__StudentWorksheetResponseClient<({
550
572
  worksheet: {
551
573
  name: string;
552
574
  id: string;
553
575
  createdAt: Date;
554
- classId: string;
555
576
  updatedAt: Date;
577
+ classId: string;
556
578
  };
557
579
  responses: {
558
580
  status: import(".prisma/client").$Enums.GenerationStatus | null;
559
581
  id: string;
560
582
  createdAt: Date;
583
+ updatedAt: Date | null;
561
584
  studentId: string;
562
585
  questionId: string;
563
586
  response: string;
564
587
  isCorrect: boolean;
565
- markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
588
+ markschemeState: Prisma.JsonValue | null;
566
589
  points: number;
567
590
  feedback: string | null;
568
- updatedAt: Date | null;
569
591
  studentWorksheetResponseId: string | null;
570
592
  }[];
571
593
  } & {
572
594
  id: string;
573
- submissionId: string | null;
574
595
  createdAt: Date;
596
+ updatedAt: Date;
597
+ submissionId: string | null;
575
598
  studentId: string;
576
599
  submittedAt: Date | null;
577
600
  submitted: boolean;
578
- updatedAt: Date;
579
601
  worksheetId: string;
580
602
  }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
581
603
  datasources: {
@@ -585,29 +607,29 @@ export declare function findWorksheetResponseByIdForTeacher(id: string, userId:
585
607
  };
586
608
  }>;
587
609
  /** @returns Worksheet response with question responses. */
588
- export declare function findWorksheetResponseWithResponses(id: string, questionId?: string): import(".prisma/client").Prisma.Prisma__StudentWorksheetResponseClient<({
610
+ export declare function findWorksheetResponseWithResponses(id: string, questionId?: string): Prisma.Prisma__StudentWorksheetResponseClient<({
589
611
  responses: {
590
612
  status: import(".prisma/client").$Enums.GenerationStatus | null;
591
613
  id: string;
592
614
  createdAt: Date;
615
+ updatedAt: Date | null;
593
616
  studentId: string;
594
617
  questionId: string;
595
618
  response: string;
596
619
  isCorrect: boolean;
597
- markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
620
+ markschemeState: Prisma.JsonValue | null;
598
621
  points: number;
599
622
  feedback: string | null;
600
- updatedAt: Date | null;
601
623
  studentWorksheetResponseId: string | null;
602
624
  }[];
603
625
  } & {
604
626
  id: string;
605
- submissionId: string | null;
606
627
  createdAt: Date;
628
+ updatedAt: Date;
629
+ submissionId: string | null;
607
630
  studentId: string;
608
631
  submittedAt: Date | null;
609
632
  submitted: boolean;
610
- updatedAt: Date;
611
633
  worksheetId: string;
612
634
  }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
613
635
  datasources: {
@@ -617,36 +639,36 @@ export declare function findWorksheetResponseWithResponses(id: string, questionI
617
639
  };
618
640
  }>;
619
641
  /** @returns Worksheet response with scoped responses if requester is the owning student. */
620
- export declare function findWorksheetResponseWithResponsesForStudent(id: string, userId: string, questionId?: string): import(".prisma/client").Prisma.Prisma__StudentWorksheetResponseClient<({
642
+ export declare function findWorksheetResponseWithResponsesForStudent(id: string, userId: string, questionId?: string): Prisma.Prisma__StudentWorksheetResponseClient<({
621
643
  worksheet: {
622
644
  name: string;
623
645
  id: string;
624
646
  createdAt: Date;
625
- classId: string;
626
647
  updatedAt: Date;
648
+ classId: string;
627
649
  };
628
650
  responses: {
629
651
  status: import(".prisma/client").$Enums.GenerationStatus | null;
630
652
  id: string;
631
653
  createdAt: Date;
654
+ updatedAt: Date | null;
632
655
  studentId: string;
633
656
  questionId: string;
634
657
  response: string;
635
658
  isCorrect: boolean;
636
- markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
659
+ markschemeState: Prisma.JsonValue | null;
637
660
  points: number;
638
661
  feedback: string | null;
639
- updatedAt: Date | null;
640
662
  studentWorksheetResponseId: string | null;
641
663
  }[];
642
664
  } & {
643
665
  id: string;
644
- submissionId: string | null;
645
666
  createdAt: Date;
667
+ updatedAt: Date;
668
+ submissionId: string | null;
646
669
  studentId: string;
647
670
  submittedAt: Date | null;
648
671
  submitted: boolean;
649
- updatedAt: Date;
650
672
  worksheetId: string;
651
673
  }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
652
674
  datasources: {
@@ -656,36 +678,36 @@ export declare function findWorksheetResponseWithResponsesForStudent(id: string,
656
678
  };
657
679
  }>;
658
680
  /** @returns Worksheet response with scoped responses if requester is a class teacher. */
659
- export declare function findWorksheetResponseWithResponsesForTeacher(id: string, userId: string, questionId?: string): import(".prisma/client").Prisma.Prisma__StudentWorksheetResponseClient<({
681
+ export declare function findWorksheetResponseWithResponsesForTeacher(id: string, userId: string, questionId?: string): Prisma.Prisma__StudentWorksheetResponseClient<({
660
682
  worksheet: {
661
683
  name: string;
662
684
  id: string;
663
685
  createdAt: Date;
664
- classId: string;
665
686
  updatedAt: Date;
687
+ classId: string;
666
688
  };
667
689
  responses: {
668
690
  status: import(".prisma/client").$Enums.GenerationStatus | null;
669
691
  id: string;
670
692
  createdAt: Date;
693
+ updatedAt: Date | null;
671
694
  studentId: string;
672
695
  questionId: string;
673
696
  response: string;
674
697
  isCorrect: boolean;
675
- markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
698
+ markschemeState: Prisma.JsonValue | null;
676
699
  points: number;
677
700
  feedback: string | null;
678
- updatedAt: Date | null;
679
701
  studentWorksheetResponseId: string | null;
680
702
  }[];
681
703
  } & {
682
704
  id: string;
683
- submissionId: string | null;
684
705
  createdAt: Date;
706
+ updatedAt: Date;
707
+ submissionId: string | null;
685
708
  studentId: string;
686
709
  submittedAt: Date | null;
687
710
  submitted: boolean;
688
- updatedAt: Date;
689
711
  worksheetId: string;
690
712
  }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
691
713
  datasources: {
@@ -695,16 +717,16 @@ export declare function findWorksheetResponseWithResponsesForTeacher(id: string,
695
717
  };
696
718
  }>;
697
719
  /** @returns Worksheet question by ID. */
698
- export declare function findWorksheetQuestionById(id: string): import(".prisma/client").Prisma.Prisma__WorksheetQuestionClient<{
720
+ export declare function findWorksheetQuestionById(id: string): Prisma.Prisma__WorksheetQuestionClient<{
699
721
  type: import(".prisma/client").$Enums.WorksheetQuestionType;
700
- options: import("@prisma/client/runtime/library.js").JsonValue | null;
722
+ options: Prisma.JsonValue | null;
701
723
  id: string;
702
724
  createdAt: Date;
725
+ updatedAt: Date;
703
726
  order: number | null;
704
727
  points: number;
705
- updatedAt: Date;
706
728
  worksheetId: string;
707
- markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
729
+ markScheme: Prisma.JsonValue | null;
708
730
  question: string;
709
731
  answer: string;
710
732
  } | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
@@ -715,27 +737,27 @@ export declare function findWorksheetQuestionById(id: string): import(".prisma/c
715
737
  };
716
738
  }>;
717
739
  /** @returns Student question progress if requester is a class teacher. */
718
- export declare function findStudentQuestionProgressByIdForTeacher(id: string, userId: string): import(".prisma/client").Prisma.Prisma__StudentQuestionProgressClient<({
740
+ export declare function findStudentQuestionProgressByIdForTeacher(id: string, userId: string): Prisma.Prisma__StudentQuestionProgressClient<({
719
741
  studentWorksheetResponse: {
720
742
  id: string;
721
- submissionId: string | null;
722
743
  createdAt: Date;
744
+ updatedAt: Date;
745
+ submissionId: string | null;
723
746
  studentId: string;
724
747
  submittedAt: Date | null;
725
748
  submitted: boolean;
726
- updatedAt: Date;
727
749
  worksheetId: string;
728
750
  } | null;
729
751
  question: {
730
752
  type: import(".prisma/client").$Enums.WorksheetQuestionType;
731
- options: import("@prisma/client/runtime/library.js").JsonValue | null;
753
+ options: Prisma.JsonValue | null;
732
754
  id: string;
733
755
  createdAt: Date;
756
+ updatedAt: Date;
734
757
  order: number | null;
735
758
  points: number;
736
- updatedAt: Date;
737
759
  worksheetId: string;
738
- markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
760
+ markScheme: Prisma.JsonValue | null;
739
761
  question: string;
740
762
  answer: string;
741
763
  };
@@ -743,14 +765,14 @@ export declare function findStudentQuestionProgressByIdForTeacher(id: string, us
743
765
  status: import(".prisma/client").$Enums.GenerationStatus | null;
744
766
  id: string;
745
767
  createdAt: Date;
768
+ updatedAt: Date | null;
746
769
  studentId: string;
747
770
  questionId: string;
748
771
  response: string;
749
772
  isCorrect: boolean;
750
- markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
773
+ markschemeState: Prisma.JsonValue | null;
751
774
  points: number;
752
775
  feedback: string | null;
753
- updatedAt: Date | null;
754
776
  studentWorksheetResponseId: string | null;
755
777
  }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
756
778
  datasources: {
@@ -760,27 +782,27 @@ export declare function findStudentQuestionProgressByIdForTeacher(id: string, us
760
782
  };
761
783
  }>;
762
784
  /** @returns Student question progress by id and worksheet response if requester is a class teacher. */
763
- export declare function findStudentQuestionProgressByIdForTeacherAndResponse(id: string, studentWorksheetResponseId: string, userId: string): import(".prisma/client").Prisma.Prisma__StudentQuestionProgressClient<({
785
+ export declare function findStudentQuestionProgressByIdForTeacherAndResponse(id: string, studentWorksheetResponseId: string, userId: string): Prisma.Prisma__StudentQuestionProgressClient<({
764
786
  studentWorksheetResponse: {
765
787
  id: string;
766
- submissionId: string | null;
767
788
  createdAt: Date;
789
+ updatedAt: Date;
790
+ submissionId: string | null;
768
791
  studentId: string;
769
792
  submittedAt: Date | null;
770
793
  submitted: boolean;
771
- updatedAt: Date;
772
794
  worksheetId: string;
773
795
  } | null;
774
796
  question: {
775
797
  type: import(".prisma/client").$Enums.WorksheetQuestionType;
776
- options: import("@prisma/client/runtime/library.js").JsonValue | null;
798
+ options: Prisma.JsonValue | null;
777
799
  id: string;
778
800
  createdAt: Date;
801
+ updatedAt: Date;
779
802
  order: number | null;
780
803
  points: number;
781
- updatedAt: Date;
782
804
  worksheetId: string;
783
- markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
805
+ markScheme: Prisma.JsonValue | null;
784
806
  question: string;
785
807
  answer: string;
786
808
  };
@@ -788,14 +810,14 @@ export declare function findStudentQuestionProgressByIdForTeacherAndResponse(id:
788
810
  status: import(".prisma/client").$Enums.GenerationStatus | null;
789
811
  id: string;
790
812
  createdAt: Date;
813
+ updatedAt: Date | null;
791
814
  studentId: string;
792
815
  questionId: string;
793
816
  response: string;
794
817
  isCorrect: boolean;
795
- markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
818
+ markschemeState: Prisma.JsonValue | null;
796
819
  points: number;
797
820
  feedback: string | null;
798
- updatedAt: Date | null;
799
821
  studentWorksheetResponseId: string | null;
800
822
  }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
801
823
  datasources: {
@@ -810,18 +832,18 @@ export declare function updateStudentQuestionProgress(id: string, data: {
810
832
  isCorrect?: boolean;
811
833
  points?: number;
812
834
  status?: GenerationStatus;
813
- }): import(".prisma/client").Prisma.Prisma__StudentQuestionProgressClient<{
835
+ }): Prisma.Prisma__StudentQuestionProgressClient<{
814
836
  status: import(".prisma/client").$Enums.GenerationStatus | null;
815
837
  id: string;
816
838
  createdAt: Date;
839
+ updatedAt: Date | null;
817
840
  studentId: string;
818
841
  questionId: string;
819
842
  response: string;
820
843
  isCorrect: boolean;
821
- markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
844
+ markschemeState: Prisma.JsonValue | null;
822
845
  points: number;
823
846
  feedback: string | null;
824
- updatedAt: Date | null;
825
847
  studentWorksheetResponseId: string | null;
826
848
  }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
827
849
  datasources: {
@@ -838,18 +860,18 @@ export declare function createStudentQuestionProgress(data: {
838
860
  response: string;
839
861
  isCorrect?: boolean;
840
862
  points?: number;
841
- }): import(".prisma/client").Prisma.Prisma__StudentQuestionProgressClient<{
863
+ }): Prisma.Prisma__StudentQuestionProgressClient<{
842
864
  status: import(".prisma/client").$Enums.GenerationStatus | null;
843
865
  id: string;
844
866
  createdAt: Date;
867
+ updatedAt: Date | null;
845
868
  studentId: string;
846
869
  questionId: string;
847
870
  response: string;
848
871
  isCorrect: boolean;
849
- markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
872
+ markschemeState: Prisma.JsonValue | null;
850
873
  points: number;
851
874
  feedback: string | null;
852
- updatedAt: Date | null;
853
875
  studentWorksheetResponseId: string | null;
854
876
  }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
855
877
  datasources: {
@@ -859,18 +881,18 @@ export declare function createStudentQuestionProgress(data: {
859
881
  };
860
882
  }>;
861
883
  /** @returns Student's progress for a question. */
862
- export declare function findStudentQuestionProgress(studentId: string, questionId: string, studentWorksheetResponseId: string): import(".prisma/client").Prisma.Prisma__StudentQuestionProgressClient<{
884
+ export declare function findStudentQuestionProgress(studentId: string, questionId: string, studentWorksheetResponseId: string): Prisma.Prisma__StudentQuestionProgressClient<{
863
885
  status: import(".prisma/client").$Enums.GenerationStatus | null;
864
886
  id: string;
865
887
  createdAt: Date;
888
+ updatedAt: Date | null;
866
889
  studentId: string;
867
890
  questionId: string;
868
891
  response: string;
869
892
  isCorrect: boolean;
870
- markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
893
+ markschemeState: Prisma.JsonValue | null;
871
894
  points: number;
872
895
  feedback: string | null;
873
- updatedAt: Date | null;
874
896
  studentWorksheetResponseId: string | null;
875
897
  } | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
876
898
  datasources: {
@@ -886,18 +908,18 @@ export declare function updateStudentQuestionProgressForGrading(id: string, data
886
908
  markschemeState?: object;
887
909
  points?: number;
888
910
  response?: string;
889
- }): import(".prisma/client").Prisma.Prisma__StudentQuestionProgressClient<{
911
+ }): Prisma.Prisma__StudentQuestionProgressClient<{
890
912
  status: import(".prisma/client").$Enums.GenerationStatus | null;
891
913
  id: string;
892
914
  createdAt: Date;
915
+ updatedAt: Date | null;
893
916
  studentId: string;
894
917
  questionId: string;
895
918
  response: string;
896
919
  isCorrect: boolean;
897
- markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
920
+ markschemeState: Prisma.JsonValue | null;
898
921
  points: number;
899
922
  feedback: string | null;
900
- updatedAt: Date | null;
901
923
  studentWorksheetResponseId: string | null;
902
924
  }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
903
925
  datasources: {
@@ -916,18 +938,18 @@ export declare function createStudentQuestionProgressForGrading(data: {
916
938
  feedback?: string;
917
939
  markschemeState?: object;
918
940
  points?: number;
919
- }): import(".prisma/client").Prisma.Prisma__StudentQuestionProgressClient<{
941
+ }): Prisma.Prisma__StudentQuestionProgressClient<{
920
942
  status: import(".prisma/client").$Enums.GenerationStatus | null;
921
943
  id: string;
922
944
  createdAt: Date;
945
+ updatedAt: Date | null;
923
946
  studentId: string;
924
947
  questionId: string;
925
948
  response: string;
926
949
  isCorrect: boolean;
927
- markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
950
+ markschemeState: Prisma.JsonValue | null;
928
951
  points: number;
929
952
  feedback: string | null;
930
- updatedAt: Date | null;
931
953
  studentWorksheetResponseId: string | null;
932
954
  }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
933
955
  datasources: {
@@ -941,13 +963,13 @@ export declare function createComment(data: {
941
963
  studentQuestionProgressId: string;
942
964
  content: string;
943
965
  authorId: string;
944
- }): import(".prisma/client").Prisma.Prisma__CommentClient<{
966
+ }): Prisma.Prisma__CommentClient<{
945
967
  status: import(".prisma/client").$Enums.GenerationStatus | null;
946
968
  id: string;
969
+ createdAt: Date;
947
970
  assignmentId: string | null;
948
971
  submissionId: string | null;
949
972
  announcementId: string | null;
950
- createdAt: Date;
951
973
  modifiedAt: Date | null;
952
974
  content: string;
953
975
  authorId: string;