@studious-lms/server 1.4.0 → 1.4.2

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 (166) hide show
  1. package/.env.example +6 -0
  2. package/.env.test.example +2 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +36 -50
  5. package/dist/index.js.map +1 -1
  6. package/dist/lib/config/cors.d.ts +16 -0
  7. package/dist/lib/config/cors.d.ts.map +1 -0
  8. package/dist/lib/config/cors.js +75 -0
  9. package/dist/lib/config/cors.js.map +1 -0
  10. package/dist/lib/config/env.d.ts +14 -0
  11. package/dist/lib/config/env.d.ts.map +1 -1
  12. package/dist/lib/config/env.js +9 -2
  13. package/dist/lib/config/env.js.map +1 -1
  14. package/dist/lib/prisma.d.ts +14 -2
  15. package/dist/lib/prisma.d.ts.map +1 -1
  16. package/dist/lib/prisma.js +27 -8
  17. package/dist/lib/prisma.js.map +1 -1
  18. package/dist/middleware/security.d.ts.map +1 -1
  19. package/dist/middleware/security.js +3 -3
  20. package/dist/middleware/security.js.map +1 -1
  21. package/dist/models/agenda.d.ts +16 -16
  22. package/dist/models/announcement.d.ts +59 -23
  23. package/dist/models/announcement.d.ts.map +1 -1
  24. package/dist/models/assignment.d.ts +363 -276
  25. package/dist/models/assignment.d.ts.map +1 -1
  26. package/dist/models/attendance.d.ts +63 -21
  27. package/dist/models/attendance.d.ts.map +1 -1
  28. package/dist/models/auth.d.ts +102 -18
  29. package/dist/models/auth.d.ts.map +1 -1
  30. package/dist/models/class.d.ts +112 -64
  31. package/dist/models/class.d.ts.map +1 -1
  32. package/dist/models/comment.d.ts +52 -16
  33. package/dist/models/comment.d.ts.map +1 -1
  34. package/dist/models/conversation.d.ts +46 -16
  35. package/dist/models/conversation.d.ts.map +1 -1
  36. package/dist/models/event.d.ts +107 -53
  37. package/dist/models/event.d.ts.map +1 -1
  38. package/dist/models/file.d.ts +213 -165
  39. package/dist/models/file.d.ts.map +1 -1
  40. package/dist/models/folder.d.ts +161 -77
  41. package/dist/models/folder.d.ts.map +1 -1
  42. package/dist/models/labChat.d.ts +73 -31
  43. package/dist/models/labChat.d.ts.map +1 -1
  44. package/dist/models/marketing.d.ts +25 -7
  45. package/dist/models/marketing.d.ts.map +1 -1
  46. package/dist/models/message.d.ts +31 -13
  47. package/dist/models/message.d.ts.map +1 -1
  48. package/dist/models/newtonChat.d.ts +34 -10
  49. package/dist/models/newtonChat.d.ts.map +1 -1
  50. package/dist/models/notification.d.ts +25 -7
  51. package/dist/models/notification.d.ts.map +1 -1
  52. package/dist/models/section.d.ts +71 -23
  53. package/dist/models/section.d.ts.map +1 -1
  54. package/dist/models/user.d.ts +27 -9
  55. package/dist/models/user.d.ts.map +1 -1
  56. package/dist/models/worksheet.d.ts +237 -108
  57. package/dist/models/worksheet.d.ts.map +1 -1
  58. package/dist/pipelines/aiLabChat.d.ts +30 -6
  59. package/dist/pipelines/aiLabChat.d.ts.map +1 -1
  60. package/dist/pipelines/aiLabChat.js +157 -234
  61. package/dist/pipelines/aiLabChat.js.map +1 -1
  62. package/dist/pipelines/aiLabChatContract.d.ts +413 -0
  63. package/dist/pipelines/aiLabChatContract.d.ts.map +1 -0
  64. package/dist/pipelines/aiLabChatContract.js +74 -0
  65. package/dist/pipelines/aiLabChatContract.js.map +1 -0
  66. package/dist/pipelines/gradeWorksheet.d.ts +8 -8
  67. package/dist/pipelines/gradeWorksheet.js +4 -4
  68. package/dist/pipelines/gradeWorksheet.js.map +1 -1
  69. package/dist/pipelines/labChatPrompt.d.ts +29 -0
  70. package/dist/pipelines/labChatPrompt.d.ts.map +1 -0
  71. package/dist/pipelines/labChatPrompt.js +146 -0
  72. package/dist/pipelines/labChatPrompt.js.map +1 -0
  73. package/dist/routers/_app.d.ts +1622 -1260
  74. package/dist/routers/_app.d.ts.map +1 -1
  75. package/dist/routers/_app.js +4 -2
  76. package/dist/routers/_app.js.map +1 -1
  77. package/dist/routers/agenda.d.ts +16 -16
  78. package/dist/routers/announcement.d.ts +19 -19
  79. package/dist/routers/assignment.d.ts +307 -291
  80. package/dist/routers/assignment.d.ts.map +1 -1
  81. package/dist/routers/assignment.js +3 -2
  82. package/dist/routers/assignment.js.map +1 -1
  83. package/dist/routers/attendance.d.ts +7 -7
  84. package/dist/routers/auth.d.ts +1 -1
  85. package/dist/routers/class.d.ts +77 -71
  86. package/dist/routers/class.d.ts.map +1 -1
  87. package/dist/routers/comment.d.ts +6 -6
  88. package/dist/routers/conversation.d.ts +11 -11
  89. package/dist/routers/event.d.ts +35 -35
  90. package/dist/routers/file.d.ts +12 -12
  91. package/dist/routers/folder.d.ts +54 -54
  92. package/dist/routers/labChat.d.ts +12 -12
  93. package/dist/routers/marketing.d.ts +2 -2
  94. package/dist/routers/message.d.ts +2 -2
  95. package/dist/routers/newtonChat.d.ts +1 -1
  96. package/dist/routers/notifications.d.ts +4 -4
  97. package/dist/routers/section.d.ts +7 -7
  98. package/dist/routers/studentProgress.d.ts +161 -0
  99. package/dist/routers/studentProgress.d.ts.map +1 -0
  100. package/dist/routers/studentProgress.js +43 -0
  101. package/dist/routers/studentProgress.js.map +1 -0
  102. package/dist/routers/user.d.ts +1 -1
  103. package/dist/routers/worksheet.d.ts +58 -58
  104. package/dist/seedDatabase.d.ts +1 -1
  105. package/dist/services/agenda.d.ts +16 -16
  106. package/dist/services/announcement.d.ts +8 -8
  107. package/dist/services/assignment.d.ts +299 -283
  108. package/dist/services/assignment.d.ts.map +1 -1
  109. package/dist/services/assignment.js +24 -5
  110. package/dist/services/assignment.js.map +1 -1
  111. package/dist/services/attendance.d.ts +7 -7
  112. package/dist/services/auth.d.ts +1 -1
  113. package/dist/services/class.d.ts +73 -67
  114. package/dist/services/class.d.ts.map +1 -1
  115. package/dist/services/comment.d.ts +6 -6
  116. package/dist/services/conversation.d.ts +11 -11
  117. package/dist/services/event.d.ts +31 -31
  118. package/dist/services/file.d.ts +12 -12
  119. package/dist/services/folder.d.ts +52 -52
  120. package/dist/services/labChat.d.ts +12 -12
  121. package/dist/services/labChat.d.ts.map +1 -1
  122. package/dist/services/labChat.js +31 -15
  123. package/dist/services/labChat.js.map +1 -1
  124. package/dist/services/marketing.d.ts +2 -2
  125. package/dist/services/message.d.ts.map +1 -1
  126. package/dist/services/message.js +90 -48
  127. package/dist/services/message.js.map +1 -1
  128. package/dist/services/notification.d.ts +4 -4
  129. package/dist/services/section.d.ts +6 -6
  130. package/dist/services/studentProgress.d.ts +120 -0
  131. package/dist/services/studentProgress.d.ts.map +1 -0
  132. package/dist/services/studentProgress.js +481 -0
  133. package/dist/services/studentProgress.js.map +1 -0
  134. package/dist/services/worksheet.d.ts +49 -49
  135. package/dist/utils/inference.d.ts +0 -11
  136. package/dist/utils/inference.d.ts.map +1 -1
  137. package/dist/utils/inference.js +2 -50
  138. package/dist/utils/inference.js.map +1 -1
  139. package/package.json +2 -2
  140. package/prisma/migrations/20260410124000_add_submission_recommendation_state/migration.sql +14 -0
  141. package/prisma/schema.prisma +14 -0
  142. package/sentry.properties +3 -0
  143. package/src/index.ts +39 -51
  144. package/src/lib/config/cors.ts +96 -0
  145. package/src/lib/config/env.ts +12 -1
  146. package/src/lib/prisma.ts +25 -6
  147. package/src/middleware/security.ts +1 -1
  148. package/src/pipelines/aiLabChat.ts +206 -246
  149. package/src/pipelines/aiLabChatContract.ts +75 -0
  150. package/src/pipelines/gradeWorksheet.ts +2 -2
  151. package/src/pipelines/labChatPrompt.ts +196 -0
  152. package/src/routers/_app.ts +4 -2
  153. package/src/routers/assignment.ts +1 -0
  154. package/src/routers/studentProgress.ts +71 -0
  155. package/src/services/assignment.ts +30 -2
  156. package/src/services/labChat.ts +31 -22
  157. package/src/services/message.ts +97 -48
  158. package/src/services/studentProgress.ts +691 -0
  159. package/src/utils/inference.ts +0 -61
  160. package/tests/lib/aiLabChatContract.test.ts +32 -0
  161. package/tests/lib/cors.test.ts +103 -0
  162. package/tests/pipelines/aiLabChat.test.ts +75 -0
  163. package/tests/routers/studentProgress.test.ts +254 -0
  164. package/tests/utils/aiLabChatPrompt.test.ts +126 -0
  165. package/tests/utils/studentProgress.test.ts +361 -0
  166. package/vitest.unit.config.ts +8 -1
@@ -3,13 +3,11 @@ export declare function findAssignmentById(id: string): import(".prisma/client")
3
3
  type: import(".prisma/client").$Enums.AssignmentType;
4
4
  id: string;
5
5
  createdAt: Date | null;
6
+ modifiedAt: Date | null;
6
7
  classId: string;
7
8
  title: string;
8
- dueDate: Date;
9
- maxGrade: number | null;
10
- eventId: string | null;
11
9
  instructions: string;
12
- modifiedAt: Date | null;
10
+ dueDate: Date;
13
11
  teacherId: string;
14
12
  acceptFiles: boolean;
15
13
  acceptExtendedResponse: boolean;
@@ -18,13 +16,21 @@ export declare function findAssignmentById(id: string): import(".prisma/client")
18
16
  aiPolicyLevel: number;
19
17
  sectionId: string | null;
20
18
  graded: boolean;
19
+ maxGrade: number | null;
21
20
  weight: number;
22
21
  inProgress: boolean;
23
22
  template: boolean;
23
+ eventId: string | null;
24
24
  markSchemeId: string | null;
25
25
  order: number | null;
26
26
  gradingBoundaryId: string | null;
27
- } | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, import(".prisma/client").Prisma.PrismaClientOptions>;
27
+ } | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
28
+ datasources: {
29
+ db: {
30
+ url: string;
31
+ };
32
+ };
33
+ }>;
28
34
  /** @returns Assignment with full details for get. */
29
35
  export declare function findAssignmentWithDetails(id: string): import(".prisma/client").Prisma.Prisma__AssignmentClient<({
30
36
  submissions: {
@@ -34,16 +40,24 @@ export declare function findAssignmentWithDetails(id: string): import(".prisma/c
34
40
  };
35
41
  }[];
36
42
  class: {
37
- id: string;
38
43
  name: string;
44
+ id: string;
39
45
  };
40
46
  section: {
41
- id: string;
42
47
  name: string;
48
+ id: string;
43
49
  } | null;
44
- worksheets: {
50
+ markScheme: {
45
51
  id: string;
52
+ structured: string;
53
+ } | null;
54
+ gradingBoundary: {
55
+ id: string;
56
+ structured: string;
57
+ } | null;
58
+ worksheets: {
46
59
  name: string;
60
+ id: string;
47
61
  }[];
48
62
  teacher: {
49
63
  id: string;
@@ -52,40 +66,30 @@ export declare function findAssignmentWithDetails(id: string): import(".prisma/c
52
66
  attachments: {
53
67
  path: string;
54
68
  type: string;
55
- id: string;
56
69
  name: string;
70
+ id: string;
57
71
  size: number | null;
58
72
  uploadedAt: Date | null;
59
73
  thumbnailId: string | null;
60
74
  }[];
61
75
  eventAttached: {
62
- id: string;
63
- location: string | null;
64
76
  name: string | null;
77
+ id: string;
65
78
  color: string | null;
66
79
  startTime: Date;
67
80
  endTime: Date;
81
+ location: string | null;
68
82
  remarks: string | null;
69
83
  } | null;
70
- markScheme: {
71
- id: string;
72
- structured: string;
73
- } | null;
74
- gradingBoundary: {
75
- id: string;
76
- structured: string;
77
- } | null;
78
84
  } & {
79
85
  type: import(".prisma/client").$Enums.AssignmentType;
80
86
  id: string;
81
87
  createdAt: Date | null;
88
+ modifiedAt: Date | null;
82
89
  classId: string;
83
90
  title: string;
84
- dueDate: Date;
85
- maxGrade: number | null;
86
- eventId: string | null;
87
91
  instructions: string;
88
- modifiedAt: Date | null;
92
+ dueDate: Date;
89
93
  teacherId: string;
90
94
  acceptFiles: boolean;
91
95
  acceptExtendedResponse: boolean;
@@ -94,29 +98,33 @@ export declare function findAssignmentWithDetails(id: string): import(".prisma/c
94
98
  aiPolicyLevel: number;
95
99
  sectionId: string | null;
96
100
  graded: boolean;
101
+ maxGrade: number | null;
97
102
  weight: number;
98
103
  inProgress: boolean;
99
104
  template: boolean;
105
+ eventId: string | null;
100
106
  markSchemeId: string | null;
101
107
  order: number | null;
102
108
  gradingBoundaryId: string | null;
103
- }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, import(".prisma/client").Prisma.PrismaClientOptions>;
109
+ }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
110
+ datasources: {
111
+ db: {
112
+ url: string;
113
+ };
114
+ };
115
+ }>;
104
116
  /** @returns Assignment with attachments for delete. */
105
117
  export declare function findAssignmentForDelete(id: string, teacherId: string): import(".prisma/client").Prisma.Prisma__AssignmentClient<({
106
118
  submissions: ({
107
- attachments: ({
119
+ annotations: ({
108
120
  thumbnail: {
109
121
  path: string;
110
122
  type: string;
111
- id: string;
112
- userId: string | null;
113
123
  name: string;
124
+ id: string;
114
125
  size: number | null;
126
+ userId: string | null;
115
127
  uploadedAt: Date | null;
116
- assignmentId: string | null;
117
- submissionId: string | null;
118
- thumbnailId: string | null;
119
- annotationId: string | null;
120
128
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
121
129
  uploadUrl: string | null;
122
130
  uploadExpiresAt: Date | null;
@@ -126,6 +134,10 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
126
134
  uploadRetryCount: number;
127
135
  isOrphaned: boolean;
128
136
  cleanupAt: Date | null;
137
+ thumbnailId: string | null;
138
+ assignmentId: string | null;
139
+ submissionId: string | null;
140
+ annotationId: string | null;
129
141
  classDraftId: string | null;
130
142
  folderId: string | null;
131
143
  conversationId: string | null;
@@ -136,15 +148,11 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
136
148
  } & {
137
149
  path: string;
138
150
  type: string;
139
- id: string;
140
- userId: string | null;
141
151
  name: string;
152
+ id: string;
142
153
  size: number | null;
154
+ userId: string | null;
143
155
  uploadedAt: Date | null;
144
- assignmentId: string | null;
145
- submissionId: string | null;
146
- thumbnailId: string | null;
147
- annotationId: string | null;
148
156
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
149
157
  uploadUrl: string | null;
150
158
  uploadExpiresAt: Date | null;
@@ -154,6 +162,10 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
154
162
  uploadRetryCount: number;
155
163
  isOrphaned: boolean;
156
164
  cleanupAt: Date | null;
165
+ thumbnailId: string | null;
166
+ assignmentId: string | null;
167
+ submissionId: string | null;
168
+ annotationId: string | null;
157
169
  classDraftId: string | null;
158
170
  folderId: string | null;
159
171
  conversationId: string | null;
@@ -161,19 +173,15 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
161
173
  announcementId: string | null;
162
174
  schoolDevelopementProgramId: string | null;
163
175
  })[];
164
- annotations: ({
176
+ attachments: ({
165
177
  thumbnail: {
166
178
  path: string;
167
179
  type: string;
168
- id: string;
169
- userId: string | null;
170
180
  name: string;
181
+ id: string;
171
182
  size: number | null;
183
+ userId: string | null;
172
184
  uploadedAt: Date | null;
173
- assignmentId: string | null;
174
- submissionId: string | null;
175
- thumbnailId: string | null;
176
- annotationId: string | null;
177
185
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
178
186
  uploadUrl: string | null;
179
187
  uploadExpiresAt: Date | null;
@@ -183,6 +191,10 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
183
191
  uploadRetryCount: number;
184
192
  isOrphaned: boolean;
185
193
  cleanupAt: Date | null;
194
+ thumbnailId: string | null;
195
+ assignmentId: string | null;
196
+ submissionId: string | null;
197
+ annotationId: string | null;
186
198
  classDraftId: string | null;
187
199
  folderId: string | null;
188
200
  conversationId: string | null;
@@ -193,15 +205,11 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
193
205
  } & {
194
206
  path: string;
195
207
  type: string;
196
- id: string;
197
- userId: string | null;
198
208
  name: string;
209
+ id: string;
199
210
  size: number | null;
211
+ userId: string | null;
200
212
  uploadedAt: Date | null;
201
- assignmentId: string | null;
202
- submissionId: string | null;
203
- thumbnailId: string | null;
204
- annotationId: string | null;
205
213
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
206
214
  uploadUrl: string | null;
207
215
  uploadExpiresAt: Date | null;
@@ -211,6 +219,10 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
211
219
  uploadRetryCount: number;
212
220
  isOrphaned: boolean;
213
221
  cleanupAt: Date | null;
222
+ thumbnailId: string | null;
223
+ assignmentId: string | null;
224
+ submissionId: string | null;
225
+ annotationId: string | null;
214
226
  classDraftId: string | null;
215
227
  folderId: string | null;
216
228
  conversationId: string | null;
@@ -220,12 +232,15 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
220
232
  })[];
221
233
  } & {
222
234
  id: string;
223
- createdAt: Date;
224
235
  assignmentId: string;
236
+ createdAt: Date;
225
237
  modifiedAt: Date;
226
238
  studentId: string;
227
239
  extendedResponse: string | null;
228
240
  gradeReceived: number | null;
241
+ recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
242
+ recommendationUpdatedAt: Date | null;
243
+ targetedAssignmentId: string | null;
229
244
  rubricState: string | null;
230
245
  teacherComments: string | null;
231
246
  submittedAt: Date | null;
@@ -236,15 +251,11 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
236
251
  thumbnail: {
237
252
  path: string;
238
253
  type: string;
239
- id: string;
240
- userId: string | null;
241
254
  name: string;
255
+ id: string;
242
256
  size: number | null;
257
+ userId: string | null;
243
258
  uploadedAt: Date | null;
244
- assignmentId: string | null;
245
- submissionId: string | null;
246
- thumbnailId: string | null;
247
- annotationId: string | null;
248
259
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
249
260
  uploadUrl: string | null;
250
261
  uploadExpiresAt: Date | null;
@@ -254,6 +265,10 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
254
265
  uploadRetryCount: number;
255
266
  isOrphaned: boolean;
256
267
  cleanupAt: Date | null;
268
+ thumbnailId: string | null;
269
+ assignmentId: string | null;
270
+ submissionId: string | null;
271
+ annotationId: string | null;
257
272
  classDraftId: string | null;
258
273
  folderId: string | null;
259
274
  conversationId: string | null;
@@ -264,15 +279,11 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
264
279
  } & {
265
280
  path: string;
266
281
  type: string;
267
- id: string;
268
- userId: string | null;
269
282
  name: string;
283
+ id: string;
270
284
  size: number | null;
285
+ userId: string | null;
271
286
  uploadedAt: Date | null;
272
- assignmentId: string | null;
273
- submissionId: string | null;
274
- thumbnailId: string | null;
275
- annotationId: string | null;
276
287
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
277
288
  uploadUrl: string | null;
278
289
  uploadExpiresAt: Date | null;
@@ -282,6 +293,10 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
282
293
  uploadRetryCount: number;
283
294
  isOrphaned: boolean;
284
295
  cleanupAt: Date | null;
296
+ thumbnailId: string | null;
297
+ assignmentId: string | null;
298
+ submissionId: string | null;
299
+ annotationId: string | null;
285
300
  classDraftId: string | null;
286
301
  folderId: string | null;
287
302
  conversationId: string | null;
@@ -293,13 +308,11 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
293
308
  type: import(".prisma/client").$Enums.AssignmentType;
294
309
  id: string;
295
310
  createdAt: Date | null;
311
+ modifiedAt: Date | null;
296
312
  classId: string;
297
313
  title: string;
298
- dueDate: Date;
299
- maxGrade: number | null;
300
- eventId: string | null;
301
314
  instructions: string;
302
- modifiedAt: Date | null;
315
+ dueDate: Date;
303
316
  teacherId: string;
304
317
  acceptFiles: boolean;
305
318
  acceptExtendedResponse: boolean;
@@ -308,42 +321,46 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
308
321
  aiPolicyLevel: number;
309
322
  sectionId: string | null;
310
323
  graded: boolean;
324
+ maxGrade: number | null;
311
325
  weight: number;
312
326
  inProgress: boolean;
313
327
  template: boolean;
328
+ eventId: string | null;
314
329
  markSchemeId: string | null;
315
330
  order: number | null;
316
331
  gradingBoundaryId: string | null;
317
- }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, import(".prisma/client").Prisma.PrismaClientOptions>;
332
+ }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
333
+ datasources: {
334
+ db: {
335
+ url: string;
336
+ };
337
+ };
338
+ }>;
318
339
  /** @returns Assignments due today. */
319
340
  export declare function findAssignmentsDueToday(): import(".prisma/client").Prisma.PrismaPromise<{
320
341
  type: import(".prisma/client").$Enums.AssignmentType;
321
342
  id: string;
322
343
  class: {
323
- id: string;
324
344
  name: string;
345
+ id: string;
325
346
  };
326
347
  title: string;
327
348
  dueDate: Date;
328
- maxGrade: number | null;
329
349
  graded: boolean;
350
+ maxGrade: number | null;
330
351
  }[]>;
331
352
  /** @returns Submission by assignment and student. */
332
353
  export declare function findSubmissionByAssignmentAndStudent(assignmentId: string, studentId: string): import(".prisma/client").Prisma.Prisma__SubmissionClient<({
333
354
  assignment: {
334
355
  class: {
356
+ name: string;
335
357
  id: string;
336
358
  schoolId: string | null;
337
- name: string;
338
359
  subject: string;
339
360
  color: string | null;
340
361
  section: string;
341
362
  syllabus: string | null;
342
363
  };
343
- worksheets: {
344
- id: string;
345
- name: string;
346
- }[];
347
364
  markScheme: {
348
365
  id: string;
349
366
  structured: string;
@@ -352,17 +369,19 @@ export declare function findSubmissionByAssignmentAndStudent(assignmentId: strin
352
369
  id: string;
353
370
  structured: string;
354
371
  } | null;
372
+ worksheets: {
373
+ name: string;
374
+ id: string;
375
+ }[];
355
376
  } & {
356
377
  type: import(".prisma/client").$Enums.AssignmentType;
357
378
  id: string;
358
379
  createdAt: Date | null;
380
+ modifiedAt: Date | null;
359
381
  classId: string;
360
382
  title: string;
361
- dueDate: Date;
362
- maxGrade: number | null;
363
- eventId: string | null;
364
383
  instructions: string;
365
- modifiedAt: Date | null;
384
+ dueDate: Date;
366
385
  teacherId: string;
367
386
  acceptFiles: boolean;
368
387
  acceptExtendedResponse: boolean;
@@ -371,25 +390,23 @@ export declare function findSubmissionByAssignmentAndStudent(assignmentId: strin
371
390
  aiPolicyLevel: number;
372
391
  sectionId: string | null;
373
392
  graded: boolean;
393
+ maxGrade: number | null;
374
394
  weight: number;
375
395
  inProgress: boolean;
376
396
  template: boolean;
397
+ eventId: string | null;
377
398
  markSchemeId: string | null;
378
399
  order: number | null;
379
400
  gradingBoundaryId: string | null;
380
401
  };
381
- attachments: {
402
+ annotations: {
382
403
  path: string;
383
404
  type: string;
384
- id: string;
385
- userId: string | null;
386
405
  name: string;
406
+ id: string;
387
407
  size: number | null;
408
+ userId: string | null;
388
409
  uploadedAt: Date | null;
389
- assignmentId: string | null;
390
- submissionId: string | null;
391
- thumbnailId: string | null;
392
- annotationId: string | null;
393
410
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
394
411
  uploadUrl: string | null;
395
412
  uploadExpiresAt: Date | null;
@@ -399,6 +416,10 @@ export declare function findSubmissionByAssignmentAndStudent(assignmentId: strin
399
416
  uploadRetryCount: number;
400
417
  isOrphaned: boolean;
401
418
  cleanupAt: Date | null;
419
+ thumbnailId: string | null;
420
+ assignmentId: string | null;
421
+ submissionId: string | null;
422
+ annotationId: string | null;
402
423
  classDraftId: string | null;
403
424
  folderId: string | null;
404
425
  conversationId: string | null;
@@ -406,34 +427,14 @@ export declare function findSubmissionByAssignmentAndStudent(assignmentId: strin
406
427
  announcementId: string | null;
407
428
  schoolDevelopementProgramId: string | null;
408
429
  }[];
409
- student: {
410
- id: string;
411
- username: string;
412
- profile: {
413
- id: string;
414
- userId: string;
415
- displayName: string | null;
416
- bio: string | null;
417
- location: string | null;
418
- website: string | null;
419
- profilePicture: string | null;
420
- profilePictureThumbnail: string | null;
421
- createdAt: Date;
422
- updatedAt: Date;
423
- } | null;
424
- };
425
- annotations: {
430
+ attachments: {
426
431
  path: string;
427
432
  type: string;
428
- id: string;
429
- userId: string | null;
430
433
  name: string;
434
+ id: string;
431
435
  size: number | null;
436
+ userId: string | null;
432
437
  uploadedAt: Date | null;
433
- assignmentId: string | null;
434
- submissionId: string | null;
435
- thumbnailId: string | null;
436
- annotationId: string | null;
437
438
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
438
439
  uploadUrl: string | null;
439
440
  uploadExpiresAt: Date | null;
@@ -443,6 +444,10 @@ export declare function findSubmissionByAssignmentAndStudent(assignmentId: strin
443
444
  uploadRetryCount: number;
444
445
  isOrphaned: boolean;
445
446
  cleanupAt: Date | null;
447
+ thumbnailId: string | null;
448
+ assignmentId: string | null;
449
+ submissionId: string | null;
450
+ annotationId: string | null;
446
451
  classDraftId: string | null;
447
452
  folderId: string | null;
448
453
  conversationId: string | null;
@@ -450,36 +455,57 @@ export declare function findSubmissionByAssignmentAndStudent(assignmentId: strin
450
455
  announcementId: string | null;
451
456
  schoolDevelopementProgramId: string | null;
452
457
  }[];
458
+ student: {
459
+ id: string;
460
+ username: string;
461
+ profile: {
462
+ id: string;
463
+ userId: string;
464
+ createdAt: Date;
465
+ location: string | null;
466
+ updatedAt: Date;
467
+ displayName: string | null;
468
+ bio: string | null;
469
+ website: string | null;
470
+ profilePicture: string | null;
471
+ profilePictureThumbnail: string | null;
472
+ } | null;
473
+ };
453
474
  } & {
454
475
  id: string;
455
- createdAt: Date;
456
476
  assignmentId: string;
477
+ createdAt: Date;
457
478
  modifiedAt: Date;
458
479
  studentId: string;
459
480
  extendedResponse: string | null;
460
481
  gradeReceived: number | null;
482
+ recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
483
+ recommendationUpdatedAt: Date | null;
484
+ targetedAssignmentId: string | null;
461
485
  rubricState: string | null;
462
486
  teacherComments: string | null;
463
487
  submittedAt: Date | null;
464
488
  submitted: boolean | null;
465
489
  returned: boolean | null;
466
- }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, import(".prisma/client").Prisma.PrismaClientOptions>;
490
+ }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
491
+ datasources: {
492
+ db: {
493
+ url: string;
494
+ };
495
+ };
496
+ }>;
467
497
  /** @returns Submission by ID for class member. */
468
498
  export declare function findSubmissionByIdForClassMember(submissionId: string, classId: string, userId: string): import(".prisma/client").Prisma.Prisma__SubmissionClient<({
469
499
  assignment: {
470
500
  class: {
501
+ name: string;
471
502
  id: string;
472
503
  schoolId: string | null;
473
- name: string;
474
504
  subject: string;
475
505
  color: string | null;
476
506
  section: string;
477
507
  syllabus: string | null;
478
508
  };
479
- worksheets: {
480
- id: string;
481
- name: string;
482
- }[];
483
509
  markScheme: {
484
510
  id: string;
485
511
  structured: string;
@@ -488,17 +514,19 @@ export declare function findSubmissionByIdForClassMember(submissionId: string, c
488
514
  id: string;
489
515
  structured: string;
490
516
  } | null;
517
+ worksheets: {
518
+ name: string;
519
+ id: string;
520
+ }[];
491
521
  } & {
492
522
  type: import(".prisma/client").$Enums.AssignmentType;
493
523
  id: string;
494
524
  createdAt: Date | null;
525
+ modifiedAt: Date | null;
495
526
  classId: string;
496
527
  title: string;
497
- dueDate: Date;
498
- maxGrade: number | null;
499
- eventId: string | null;
500
528
  instructions: string;
501
- modifiedAt: Date | null;
529
+ dueDate: Date;
502
530
  teacherId: string;
503
531
  acceptFiles: boolean;
504
532
  acceptExtendedResponse: boolean;
@@ -507,25 +535,23 @@ export declare function findSubmissionByIdForClassMember(submissionId: string, c
507
535
  aiPolicyLevel: number;
508
536
  sectionId: string | null;
509
537
  graded: boolean;
538
+ maxGrade: number | null;
510
539
  weight: number;
511
540
  inProgress: boolean;
512
541
  template: boolean;
542
+ eventId: string | null;
513
543
  markSchemeId: string | null;
514
544
  order: number | null;
515
545
  gradingBoundaryId: string | null;
516
546
  };
517
- attachments: {
547
+ annotations: {
518
548
  path: string;
519
549
  type: string;
520
- id: string;
521
- userId: string | null;
522
550
  name: string;
551
+ id: string;
523
552
  size: number | null;
553
+ userId: string | null;
524
554
  uploadedAt: Date | null;
525
- assignmentId: string | null;
526
- submissionId: string | null;
527
- thumbnailId: string | null;
528
- annotationId: string | null;
529
555
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
530
556
  uploadUrl: string | null;
531
557
  uploadExpiresAt: Date | null;
@@ -535,6 +561,10 @@ export declare function findSubmissionByIdForClassMember(submissionId: string, c
535
561
  uploadRetryCount: number;
536
562
  isOrphaned: boolean;
537
563
  cleanupAt: Date | null;
564
+ thumbnailId: string | null;
565
+ assignmentId: string | null;
566
+ submissionId: string | null;
567
+ annotationId: string | null;
538
568
  classDraftId: string | null;
539
569
  folderId: string | null;
540
570
  conversationId: string | null;
@@ -542,34 +572,14 @@ export declare function findSubmissionByIdForClassMember(submissionId: string, c
542
572
  announcementId: string | null;
543
573
  schoolDevelopementProgramId: string | null;
544
574
  }[];
545
- student: {
546
- id: string;
547
- username: string;
548
- profile: {
549
- id: string;
550
- userId: string;
551
- displayName: string | null;
552
- bio: string | null;
553
- location: string | null;
554
- website: string | null;
555
- profilePicture: string | null;
556
- profilePictureThumbnail: string | null;
557
- createdAt: Date;
558
- updatedAt: Date;
559
- } | null;
560
- };
561
- annotations: {
575
+ attachments: {
562
576
  path: string;
563
577
  type: string;
564
- id: string;
565
- userId: string | null;
566
578
  name: string;
579
+ id: string;
567
580
  size: number | null;
581
+ userId: string | null;
568
582
  uploadedAt: Date | null;
569
- assignmentId: string | null;
570
- submissionId: string | null;
571
- thumbnailId: string | null;
572
- annotationId: string | null;
573
583
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
574
584
  uploadUrl: string | null;
575
585
  uploadExpiresAt: Date | null;
@@ -579,6 +589,10 @@ export declare function findSubmissionByIdForClassMember(submissionId: string, c
579
589
  uploadRetryCount: number;
580
590
  isOrphaned: boolean;
581
591
  cleanupAt: Date | null;
592
+ thumbnailId: string | null;
593
+ assignmentId: string | null;
594
+ submissionId: string | null;
595
+ annotationId: string | null;
582
596
  classDraftId: string | null;
583
597
  folderId: string | null;
584
598
  conversationId: string | null;
@@ -586,27 +600,52 @@ export declare function findSubmissionByIdForClassMember(submissionId: string, c
586
600
  announcementId: string | null;
587
601
  schoolDevelopementProgramId: string | null;
588
602
  }[];
603
+ student: {
604
+ id: string;
605
+ username: string;
606
+ profile: {
607
+ id: string;
608
+ userId: string;
609
+ createdAt: Date;
610
+ location: string | null;
611
+ updatedAt: Date;
612
+ displayName: string | null;
613
+ bio: string | null;
614
+ website: string | null;
615
+ profilePicture: string | null;
616
+ profilePictureThumbnail: string | null;
617
+ } | null;
618
+ };
589
619
  } & {
590
620
  id: string;
591
- createdAt: Date;
592
621
  assignmentId: string;
622
+ createdAt: Date;
593
623
  modifiedAt: Date;
594
624
  studentId: string;
595
625
  extendedResponse: string | null;
596
626
  gradeReceived: number | null;
627
+ recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
628
+ recommendationUpdatedAt: Date | null;
629
+ targetedAssignmentId: string | null;
597
630
  rubricState: string | null;
598
631
  teacherComments: string | null;
599
632
  submittedAt: Date | null;
600
633
  submitted: boolean | null;
601
634
  returned: boolean | null;
602
- }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, import(".prisma/client").Prisma.PrismaClientOptions>;
635
+ }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
636
+ datasources: {
637
+ db: {
638
+ url: string;
639
+ };
640
+ };
641
+ }>;
603
642
  /** @returns Submission by ID for update (student or teacher). */
604
643
  export declare function findSubmissionForUpdate(submissionId: string, userId: string): import(".prisma/client").Prisma.Prisma__SubmissionClient<({
605
644
  assignment: {
606
645
  class: {
646
+ name: string;
607
647
  id: string;
608
648
  schoolId: string | null;
609
- name: string;
610
649
  subject: string;
611
650
  color: string | null;
612
651
  section: string;
@@ -624,13 +663,11 @@ export declare function findSubmissionForUpdate(submissionId: string, userId: st
624
663
  type: import(".prisma/client").$Enums.AssignmentType;
625
664
  id: string;
626
665
  createdAt: Date | null;
666
+ modifiedAt: Date | null;
627
667
  classId: string;
628
668
  title: string;
629
- dueDate: Date;
630
- maxGrade: number | null;
631
- eventId: string | null;
632
669
  instructions: string;
633
- modifiedAt: Date | null;
670
+ dueDate: Date;
634
671
  teacherId: string;
635
672
  acceptFiles: boolean;
636
673
  acceptExtendedResponse: boolean;
@@ -639,9 +676,11 @@ export declare function findSubmissionForUpdate(submissionId: string, userId: st
639
676
  aiPolicyLevel: number;
640
677
  sectionId: string | null;
641
678
  graded: boolean;
679
+ maxGrade: number | null;
642
680
  weight: number;
643
681
  inProgress: boolean;
644
682
  template: boolean;
683
+ eventId: string | null;
645
684
  markSchemeId: string | null;
646
685
  order: number | null;
647
686
  gradingBoundaryId: string | null;
@@ -650,15 +689,11 @@ export declare function findSubmissionForUpdate(submissionId: string, userId: st
650
689
  thumbnail: {
651
690
  path: string;
652
691
  type: string;
653
- id: string;
654
- userId: string | null;
655
692
  name: string;
693
+ id: string;
656
694
  size: number | null;
695
+ userId: string | null;
657
696
  uploadedAt: Date | null;
658
- assignmentId: string | null;
659
- submissionId: string | null;
660
- thumbnailId: string | null;
661
- annotationId: string | null;
662
697
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
663
698
  uploadUrl: string | null;
664
699
  uploadExpiresAt: Date | null;
@@ -668,6 +703,10 @@ export declare function findSubmissionForUpdate(submissionId: string, userId: st
668
703
  uploadRetryCount: number;
669
704
  isOrphaned: boolean;
670
705
  cleanupAt: Date | null;
706
+ thumbnailId: string | null;
707
+ assignmentId: string | null;
708
+ submissionId: string | null;
709
+ annotationId: string | null;
671
710
  classDraftId: string | null;
672
711
  folderId: string | null;
673
712
  conversationId: string | null;
@@ -678,15 +717,11 @@ export declare function findSubmissionForUpdate(submissionId: string, userId: st
678
717
  } & {
679
718
  path: string;
680
719
  type: string;
681
- id: string;
682
- userId: string | null;
683
720
  name: string;
721
+ id: string;
684
722
  size: number | null;
723
+ userId: string | null;
685
724
  uploadedAt: Date | null;
686
- assignmentId: string | null;
687
- submissionId: string | null;
688
- thumbnailId: string | null;
689
- annotationId: string | null;
690
725
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
691
726
  uploadUrl: string | null;
692
727
  uploadExpiresAt: Date | null;
@@ -696,6 +731,10 @@ export declare function findSubmissionForUpdate(submissionId: string, userId: st
696
731
  uploadRetryCount: number;
697
732
  isOrphaned: boolean;
698
733
  cleanupAt: Date | null;
734
+ thumbnailId: string | null;
735
+ assignmentId: string | null;
736
+ submissionId: string | null;
737
+ annotationId: string | null;
699
738
  classDraftId: string | null;
700
739
  folderId: string | null;
701
740
  conversationId: string | null;
@@ -705,34 +744,39 @@ export declare function findSubmissionForUpdate(submissionId: string, userId: st
705
744
  })[];
706
745
  } & {
707
746
  id: string;
708
- createdAt: Date;
709
747
  assignmentId: string;
748
+ createdAt: Date;
710
749
  modifiedAt: Date;
711
750
  studentId: string;
712
751
  extendedResponse: string | null;
713
752
  gradeReceived: number | null;
753
+ recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
754
+ recommendationUpdatedAt: Date | null;
755
+ targetedAssignmentId: string | null;
714
756
  rubricState: string | null;
715
757
  teacherComments: string | null;
716
758
  submittedAt: Date | null;
717
759
  submitted: boolean | null;
718
760
  returned: boolean | null;
719
- }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, import(".prisma/client").Prisma.PrismaClientOptions>;
761
+ }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
762
+ datasources: {
763
+ db: {
764
+ url: string;
765
+ };
766
+ };
767
+ }>;
720
768
  /** Create a submission. */
721
769
  export declare function createSubmission(assignmentId: string, studentId: string): import(".prisma/client").Prisma.Prisma__SubmissionClient<{
722
770
  assignment: {
723
771
  class: {
772
+ name: string;
724
773
  id: string;
725
774
  schoolId: string | null;
726
- name: string;
727
775
  subject: string;
728
776
  color: string | null;
729
777
  section: string;
730
778
  syllabus: string | null;
731
779
  };
732
- worksheets: {
733
- id: string;
734
- name: string;
735
- }[];
736
780
  markScheme: {
737
781
  id: string;
738
782
  structured: string;
@@ -741,17 +785,19 @@ export declare function createSubmission(assignmentId: string, studentId: string
741
785
  id: string;
742
786
  structured: string;
743
787
  } | null;
788
+ worksheets: {
789
+ name: string;
790
+ id: string;
791
+ }[];
744
792
  } & {
745
793
  type: import(".prisma/client").$Enums.AssignmentType;
746
794
  id: string;
747
795
  createdAt: Date | null;
796
+ modifiedAt: Date | null;
748
797
  classId: string;
749
798
  title: string;
750
- dueDate: Date;
751
- maxGrade: number | null;
752
- eventId: string | null;
753
799
  instructions: string;
754
- modifiedAt: Date | null;
800
+ dueDate: Date;
755
801
  teacherId: string;
756
802
  acceptFiles: boolean;
757
803
  acceptExtendedResponse: boolean;
@@ -760,25 +806,23 @@ export declare function createSubmission(assignmentId: string, studentId: string
760
806
  aiPolicyLevel: number;
761
807
  sectionId: string | null;
762
808
  graded: boolean;
809
+ maxGrade: number | null;
763
810
  weight: number;
764
811
  inProgress: boolean;
765
812
  template: boolean;
813
+ eventId: string | null;
766
814
  markSchemeId: string | null;
767
815
  order: number | null;
768
816
  gradingBoundaryId: string | null;
769
817
  };
770
- attachments: {
818
+ annotations: {
771
819
  path: string;
772
820
  type: string;
773
- id: string;
774
- userId: string | null;
775
821
  name: string;
822
+ id: string;
776
823
  size: number | null;
824
+ userId: string | null;
777
825
  uploadedAt: Date | null;
778
- assignmentId: string | null;
779
- submissionId: string | null;
780
- thumbnailId: string | null;
781
- annotationId: string | null;
782
826
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
783
827
  uploadUrl: string | null;
784
828
  uploadExpiresAt: Date | null;
@@ -788,6 +832,10 @@ export declare function createSubmission(assignmentId: string, studentId: string
788
832
  uploadRetryCount: number;
789
833
  isOrphaned: boolean;
790
834
  cleanupAt: Date | null;
835
+ thumbnailId: string | null;
836
+ assignmentId: string | null;
837
+ submissionId: string | null;
838
+ annotationId: string | null;
791
839
  classDraftId: string | null;
792
840
  folderId: string | null;
793
841
  conversationId: string | null;
@@ -795,22 +843,14 @@ export declare function createSubmission(assignmentId: string, studentId: string
795
843
  announcementId: string | null;
796
844
  schoolDevelopementProgramId: string | null;
797
845
  }[];
798
- student: {
799
- id: string;
800
- username: string;
801
- };
802
- annotations: {
846
+ attachments: {
803
847
  path: string;
804
848
  type: string;
805
- id: string;
806
- userId: string | null;
807
849
  name: string;
850
+ id: string;
808
851
  size: number | null;
852
+ userId: string | null;
809
853
  uploadedAt: Date | null;
810
- assignmentId: string | null;
811
- submissionId: string | null;
812
- thumbnailId: string | null;
813
- annotationId: string | null;
814
854
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
815
855
  uploadUrl: string | null;
816
856
  uploadExpiresAt: Date | null;
@@ -820,6 +860,10 @@ export declare function createSubmission(assignmentId: string, studentId: string
820
860
  uploadRetryCount: number;
821
861
  isOrphaned: boolean;
822
862
  cleanupAt: Date | null;
863
+ thumbnailId: string | null;
864
+ assignmentId: string | null;
865
+ submissionId: string | null;
866
+ annotationId: string | null;
823
867
  classDraftId: string | null;
824
868
  folderId: string | null;
825
869
  conversationId: string | null;
@@ -827,31 +871,44 @@ export declare function createSubmission(assignmentId: string, studentId: string
827
871
  announcementId: string | null;
828
872
  schoolDevelopementProgramId: string | null;
829
873
  }[];
874
+ student: {
875
+ id: string;
876
+ username: string;
877
+ };
830
878
  } & {
831
879
  id: string;
832
- createdAt: Date;
833
880
  assignmentId: string;
881
+ createdAt: Date;
834
882
  modifiedAt: Date;
835
883
  studentId: string;
836
884
  extendedResponse: string | null;
837
885
  gradeReceived: number | null;
886
+ recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
887
+ recommendationUpdatedAt: Date | null;
888
+ targetedAssignmentId: string | null;
838
889
  rubricState: string | null;
839
890
  teacherComments: string | null;
840
891
  submittedAt: Date | null;
841
892
  submitted: boolean | null;
842
893
  returned: boolean | null;
843
- }, never, import("@prisma/client/runtime/library.js").DefaultArgs, import(".prisma/client").Prisma.PrismaClientOptions>;
894
+ }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
895
+ datasources: {
896
+ db: {
897
+ url: string;
898
+ };
899
+ };
900
+ }>;
844
901
  /** @returns Sections for a class. */
845
902
  export declare function findSectionsByClassId(classId: string): import(".prisma/client").Prisma.PrismaPromise<{
846
- id: string;
847
903
  name: string;
904
+ id: string;
848
905
  }[]>;
849
906
  /** @returns Assignment with class for teacher (auth check). */
850
907
  export declare function findAssignmentWithClassForTeacher(assignmentId: string, teacherId: string): import(".prisma/client").Prisma.Prisma__AssignmentClient<({
851
908
  class: {
909
+ name: string;
852
910
  id: string;
853
911
  schoolId: string | null;
854
- name: string;
855
912
  subject: string;
856
913
  color: string | null;
857
914
  section: string;
@@ -861,13 +918,11 @@ export declare function findAssignmentWithClassForTeacher(assignmentId: string,
861
918
  type: import(".prisma/client").$Enums.AssignmentType;
862
919
  id: string;
863
920
  createdAt: Date | null;
921
+ modifiedAt: Date | null;
864
922
  classId: string;
865
923
  title: string;
866
- dueDate: Date;
867
- maxGrade: number | null;
868
- eventId: string | null;
869
924
  instructions: string;
870
- modifiedAt: Date | null;
925
+ dueDate: Date;
871
926
  teacherId: string;
872
927
  acceptFiles: boolean;
873
928
  acceptExtendedResponse: boolean;
@@ -876,20 +931,28 @@ export declare function findAssignmentWithClassForTeacher(assignmentId: string,
876
931
  aiPolicyLevel: number;
877
932
  sectionId: string | null;
878
933
  graded: boolean;
934
+ maxGrade: number | null;
879
935
  weight: number;
880
936
  inProgress: boolean;
881
937
  template: boolean;
938
+ eventId: string | null;
882
939
  markSchemeId: string | null;
883
940
  order: number | null;
884
941
  gradingBoundaryId: string | null;
885
- }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, import(".prisma/client").Prisma.PrismaClientOptions>;
942
+ }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
943
+ datasources: {
944
+ db: {
945
+ url: string;
946
+ };
947
+ };
948
+ }>;
886
949
  /** @returns Submissions for assignment (teacher view). */
887
950
  export declare function findSubmissionsByAssignmentForTeacher(assignmentId: string, teacherId: string): import(".prisma/client").Prisma.PrismaPromise<({
888
951
  assignment: {
889
952
  class: {
953
+ name: string;
890
954
  id: string;
891
955
  schoolId: string | null;
892
- name: string;
893
956
  subject: string;
894
957
  color: string | null;
895
958
  section: string;
@@ -907,13 +970,11 @@ export declare function findSubmissionsByAssignmentForTeacher(assignmentId: stri
907
970
  type: import(".prisma/client").$Enums.AssignmentType;
908
971
  id: string;
909
972
  createdAt: Date | null;
973
+ modifiedAt: Date | null;
910
974
  classId: string;
911
975
  title: string;
912
- dueDate: Date;
913
- maxGrade: number | null;
914
- eventId: string | null;
915
976
  instructions: string;
916
- modifiedAt: Date | null;
977
+ dueDate: Date;
917
978
  teacherId: string;
918
979
  acceptFiles: boolean;
919
980
  acceptExtendedResponse: boolean;
@@ -922,9 +983,11 @@ export declare function findSubmissionsByAssignmentForTeacher(assignmentId: stri
922
983
  aiPolicyLevel: number;
923
984
  sectionId: string | null;
924
985
  graded: boolean;
986
+ maxGrade: number | null;
925
987
  weight: number;
926
988
  inProgress: boolean;
927
989
  template: boolean;
990
+ eventId: string | null;
928
991
  markSchemeId: string | null;
929
992
  order: number | null;
930
993
  gradingBoundaryId: string | null;
@@ -933,15 +996,11 @@ export declare function findSubmissionsByAssignmentForTeacher(assignmentId: stri
933
996
  thumbnail: {
934
997
  path: string;
935
998
  type: string;
936
- id: string;
937
- userId: string | null;
938
999
  name: string;
1000
+ id: string;
939
1001
  size: number | null;
1002
+ userId: string | null;
940
1003
  uploadedAt: Date | null;
941
- assignmentId: string | null;
942
- submissionId: string | null;
943
- thumbnailId: string | null;
944
- annotationId: string | null;
945
1004
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
946
1005
  uploadUrl: string | null;
947
1006
  uploadExpiresAt: Date | null;
@@ -951,6 +1010,10 @@ export declare function findSubmissionsByAssignmentForTeacher(assignmentId: stri
951
1010
  uploadRetryCount: number;
952
1011
  isOrphaned: boolean;
953
1012
  cleanupAt: Date | null;
1013
+ thumbnailId: string | null;
1014
+ assignmentId: string | null;
1015
+ submissionId: string | null;
1016
+ annotationId: string | null;
954
1017
  classDraftId: string | null;
955
1018
  folderId: string | null;
956
1019
  conversationId: string | null;
@@ -961,15 +1024,11 @@ export declare function findSubmissionsByAssignmentForTeacher(assignmentId: stri
961
1024
  } & {
962
1025
  path: string;
963
1026
  type: string;
964
- id: string;
965
- userId: string | null;
966
1027
  name: string;
1028
+ id: string;
967
1029
  size: number | null;
1030
+ userId: string | null;
968
1031
  uploadedAt: Date | null;
969
- assignmentId: string | null;
970
- submissionId: string | null;
971
- thumbnailId: string | null;
972
- annotationId: string | null;
973
1032
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
974
1033
  uploadUrl: string | null;
975
1034
  uploadExpiresAt: Date | null;
@@ -979,6 +1038,10 @@ export declare function findSubmissionsByAssignmentForTeacher(assignmentId: stri
979
1038
  uploadRetryCount: number;
980
1039
  isOrphaned: boolean;
981
1040
  cleanupAt: Date | null;
1041
+ thumbnailId: string | null;
1042
+ assignmentId: string | null;
1043
+ submissionId: string | null;
1044
+ annotationId: string | null;
982
1045
  classDraftId: string | null;
983
1046
  folderId: string | null;
984
1047
  conversationId: string | null;
@@ -997,12 +1060,15 @@ export declare function findSubmissionsByAssignmentForTeacher(assignmentId: stri
997
1060
  };
998
1061
  } & {
999
1062
  id: string;
1000
- createdAt: Date;
1001
1063
  assignmentId: string;
1064
+ createdAt: Date;
1002
1065
  modifiedAt: Date;
1003
1066
  studentId: string;
1004
1067
  extendedResponse: string | null;
1005
1068
  gradeReceived: number | null;
1069
+ recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
1070
+ recommendationUpdatedAt: Date | null;
1071
+ targetedAssignmentId: string | null;
1006
1072
  rubricState: string | null;
1007
1073
  teacherComments: string | null;
1008
1074
  submittedAt: Date | null;
@@ -1013,9 +1079,9 @@ export declare function findSubmissionsByAssignmentForTeacher(assignmentId: stri
1013
1079
  export declare function findSubmissionForTeacherUpdate(submissionId: string, teacherId: string): import(".prisma/client").Prisma.Prisma__SubmissionClient<({
1014
1080
  assignment: {
1015
1081
  class: {
1082
+ name: string;
1016
1083
  id: string;
1017
1084
  schoolId: string | null;
1018
- name: string;
1019
1085
  subject: string;
1020
1086
  color: string | null;
1021
1087
  section: string;
@@ -1033,13 +1099,11 @@ export declare function findSubmissionForTeacherUpdate(submissionId: string, tea
1033
1099
  type: import(".prisma/client").$Enums.AssignmentType;
1034
1100
  id: string;
1035
1101
  createdAt: Date | null;
1102
+ modifiedAt: Date | null;
1036
1103
  classId: string;
1037
1104
  title: string;
1038
- dueDate: Date;
1039
- maxGrade: number | null;
1040
- eventId: string | null;
1041
1105
  instructions: string;
1042
- modifiedAt: Date | null;
1106
+ dueDate: Date;
1043
1107
  teacherId: string;
1044
1108
  acceptFiles: boolean;
1045
1109
  acceptExtendedResponse: boolean;
@@ -1048,26 +1112,24 @@ export declare function findSubmissionForTeacherUpdate(submissionId: string, tea
1048
1112
  aiPolicyLevel: number;
1049
1113
  sectionId: string | null;
1050
1114
  graded: boolean;
1115
+ maxGrade: number | null;
1051
1116
  weight: number;
1052
1117
  inProgress: boolean;
1053
1118
  template: boolean;
1119
+ eventId: string | null;
1054
1120
  markSchemeId: string | null;
1055
1121
  order: number | null;
1056
1122
  gradingBoundaryId: string | null;
1057
1123
  };
1058
- attachments: ({
1124
+ annotations: ({
1059
1125
  thumbnail: {
1060
1126
  path: string;
1061
1127
  type: string;
1062
- id: string;
1063
- userId: string | null;
1064
1128
  name: string;
1129
+ id: string;
1065
1130
  size: number | null;
1131
+ userId: string | null;
1066
1132
  uploadedAt: Date | null;
1067
- assignmentId: string | null;
1068
- submissionId: string | null;
1069
- thumbnailId: string | null;
1070
- annotationId: string | null;
1071
1133
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1072
1134
  uploadUrl: string | null;
1073
1135
  uploadExpiresAt: Date | null;
@@ -1077,6 +1139,10 @@ export declare function findSubmissionForTeacherUpdate(submissionId: string, tea
1077
1139
  uploadRetryCount: number;
1078
1140
  isOrphaned: boolean;
1079
1141
  cleanupAt: Date | null;
1142
+ thumbnailId: string | null;
1143
+ assignmentId: string | null;
1144
+ submissionId: string | null;
1145
+ annotationId: string | null;
1080
1146
  classDraftId: string | null;
1081
1147
  folderId: string | null;
1082
1148
  conversationId: string | null;
@@ -1087,15 +1153,11 @@ export declare function findSubmissionForTeacherUpdate(submissionId: string, tea
1087
1153
  } & {
1088
1154
  path: string;
1089
1155
  type: string;
1090
- id: string;
1091
- userId: string | null;
1092
1156
  name: string;
1157
+ id: string;
1093
1158
  size: number | null;
1159
+ userId: string | null;
1094
1160
  uploadedAt: Date | null;
1095
- assignmentId: string | null;
1096
- submissionId: string | null;
1097
- thumbnailId: string | null;
1098
- annotationId: string | null;
1099
1161
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1100
1162
  uploadUrl: string | null;
1101
1163
  uploadExpiresAt: Date | null;
@@ -1105,6 +1167,10 @@ export declare function findSubmissionForTeacherUpdate(submissionId: string, tea
1105
1167
  uploadRetryCount: number;
1106
1168
  isOrphaned: boolean;
1107
1169
  cleanupAt: Date | null;
1170
+ thumbnailId: string | null;
1171
+ assignmentId: string | null;
1172
+ submissionId: string | null;
1173
+ annotationId: string | null;
1108
1174
  classDraftId: string | null;
1109
1175
  folderId: string | null;
1110
1176
  conversationId: string | null;
@@ -1112,19 +1178,15 @@ export declare function findSubmissionForTeacherUpdate(submissionId: string, tea
1112
1178
  announcementId: string | null;
1113
1179
  schoolDevelopementProgramId: string | null;
1114
1180
  })[];
1115
- annotations: ({
1181
+ attachments: ({
1116
1182
  thumbnail: {
1117
1183
  path: string;
1118
1184
  type: string;
1119
- id: string;
1120
- userId: string | null;
1121
1185
  name: string;
1186
+ id: string;
1122
1187
  size: number | null;
1188
+ userId: string | null;
1123
1189
  uploadedAt: Date | null;
1124
- assignmentId: string | null;
1125
- submissionId: string | null;
1126
- thumbnailId: string | null;
1127
- annotationId: string | null;
1128
1190
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1129
1191
  uploadUrl: string | null;
1130
1192
  uploadExpiresAt: Date | null;
@@ -1134,6 +1196,10 @@ export declare function findSubmissionForTeacherUpdate(submissionId: string, tea
1134
1196
  uploadRetryCount: number;
1135
1197
  isOrphaned: boolean;
1136
1198
  cleanupAt: Date | null;
1199
+ thumbnailId: string | null;
1200
+ assignmentId: string | null;
1201
+ submissionId: string | null;
1202
+ annotationId: string | null;
1137
1203
  classDraftId: string | null;
1138
1204
  folderId: string | null;
1139
1205
  conversationId: string | null;
@@ -1144,15 +1210,11 @@ export declare function findSubmissionForTeacherUpdate(submissionId: string, tea
1144
1210
  } & {
1145
1211
  path: string;
1146
1212
  type: string;
1147
- id: string;
1148
- userId: string | null;
1149
1213
  name: string;
1214
+ id: string;
1150
1215
  size: number | null;
1216
+ userId: string | null;
1151
1217
  uploadedAt: Date | null;
1152
- assignmentId: string | null;
1153
- submissionId: string | null;
1154
- thumbnailId: string | null;
1155
- annotationId: string | null;
1156
1218
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1157
1219
  uploadUrl: string | null;
1158
1220
  uploadExpiresAt: Date | null;
@@ -1162,6 +1224,10 @@ export declare function findSubmissionForTeacherUpdate(submissionId: string, tea
1162
1224
  uploadRetryCount: number;
1163
1225
  isOrphaned: boolean;
1164
1226
  cleanupAt: Date | null;
1227
+ thumbnailId: string | null;
1228
+ assignmentId: string | null;
1229
+ submissionId: string | null;
1230
+ annotationId: string | null;
1165
1231
  classDraftId: string | null;
1166
1232
  folderId: string | null;
1167
1233
  conversationId: string | null;
@@ -1171,33 +1237,42 @@ export declare function findSubmissionForTeacherUpdate(submissionId: string, tea
1171
1237
  })[];
1172
1238
  } & {
1173
1239
  id: string;
1174
- createdAt: Date;
1175
1240
  assignmentId: string;
1241
+ createdAt: Date;
1176
1242
  modifiedAt: Date;
1177
1243
  studentId: string;
1178
1244
  extendedResponse: string | null;
1179
1245
  gradeReceived: number | null;
1246
+ recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
1247
+ recommendationUpdatedAt: Date | null;
1248
+ targetedAssignmentId: string | null;
1180
1249
  rubricState: string | null;
1181
1250
  teacherComments: string | null;
1182
1251
  submittedAt: Date | null;
1183
1252
  submitted: boolean | null;
1184
1253
  returned: boolean | null;
1185
- }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, import(".prisma/client").Prisma.PrismaClientOptions>;
1254
+ }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
1255
+ datasources: {
1256
+ db: {
1257
+ url: string;
1258
+ };
1259
+ };
1260
+ }>;
1186
1261
  /** @returns Events in class that don't have this assignment attached. */
1187
1262
  export declare function findAvailableEventsForAssignment(classId: string, assignmentId: string): import(".prisma/client").Prisma.PrismaPromise<{
1188
- id: string;
1189
- location: string | null;
1190
1263
  name: string | null;
1264
+ id: string;
1191
1265
  color: string | null;
1192
1266
  startTime: Date;
1193
1267
  endTime: Date;
1268
+ location: string | null;
1194
1269
  remarks: string | null;
1195
1270
  }[]>;
1196
1271
  /** Attach assignment to event. */
1197
1272
  export declare function attachAssignmentToEvent(assignmentId: string, eventId: string): import(".prisma/client").Prisma.Prisma__AssignmentClient<{
1198
1273
  section: {
1199
- id: string;
1200
1274
  name: string;
1275
+ id: string;
1201
1276
  } | null;
1202
1277
  teacher: {
1203
1278
  id: string;
@@ -1205,12 +1280,12 @@ export declare function attachAssignmentToEvent(assignmentId: string, eventId: s
1205
1280
  };
1206
1281
  attachments: {
1207
1282
  type: string;
1208
- id: string;
1209
1283
  name: string;
1284
+ id: string;
1210
1285
  }[];
1211
1286
  eventAttached: {
1212
- id: string;
1213
1287
  name: string | null;
1288
+ id: string;
1214
1289
  color: string | null;
1215
1290
  startTime: Date;
1216
1291
  endTime: Date;
@@ -1219,13 +1294,11 @@ export declare function attachAssignmentToEvent(assignmentId: string, eventId: s
1219
1294
  type: import(".prisma/client").$Enums.AssignmentType;
1220
1295
  id: string;
1221
1296
  createdAt: Date | null;
1297
+ modifiedAt: Date | null;
1222
1298
  classId: string;
1223
1299
  title: string;
1224
- dueDate: Date;
1225
- maxGrade: number | null;
1226
- eventId: string | null;
1227
1300
  instructions: string;
1228
- modifiedAt: Date | null;
1301
+ dueDate: Date;
1229
1302
  teacherId: string;
1230
1303
  acceptFiles: boolean;
1231
1304
  acceptExtendedResponse: boolean;
@@ -1234,18 +1307,26 @@ export declare function attachAssignmentToEvent(assignmentId: string, eventId: s
1234
1307
  aiPolicyLevel: number;
1235
1308
  sectionId: string | null;
1236
1309
  graded: boolean;
1310
+ maxGrade: number | null;
1237
1311
  weight: number;
1238
1312
  inProgress: boolean;
1239
1313
  template: boolean;
1314
+ eventId: string | null;
1240
1315
  markSchemeId: string | null;
1241
1316
  order: number | null;
1242
1317
  gradingBoundaryId: string | null;
1243
- }, never, import("@prisma/client/runtime/library.js").DefaultArgs, import(".prisma/client").Prisma.PrismaClientOptions>;
1318
+ }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
1319
+ datasources: {
1320
+ db: {
1321
+ url: string;
1322
+ };
1323
+ };
1324
+ }>;
1244
1325
  /** Detach assignment from event. */
1245
1326
  export declare function detachAssignmentFromEvent(assignmentId: string): import(".prisma/client").Prisma.Prisma__AssignmentClient<{
1246
1327
  section: {
1247
- id: string;
1248
1328
  name: string;
1329
+ id: string;
1249
1330
  } | null;
1250
1331
  teacher: {
1251
1332
  id: string;
@@ -1253,12 +1334,12 @@ export declare function detachAssignmentFromEvent(assignmentId: string): import(
1253
1334
  };
1254
1335
  attachments: {
1255
1336
  type: string;
1256
- id: string;
1257
1337
  name: string;
1338
+ id: string;
1258
1339
  }[];
1259
1340
  eventAttached: {
1260
- id: string;
1261
1341
  name: string | null;
1342
+ id: string;
1262
1343
  color: string | null;
1263
1344
  startTime: Date;
1264
1345
  endTime: Date;
@@ -1267,13 +1348,11 @@ export declare function detachAssignmentFromEvent(assignmentId: string): import(
1267
1348
  type: import(".prisma/client").$Enums.AssignmentType;
1268
1349
  id: string;
1269
1350
  createdAt: Date | null;
1351
+ modifiedAt: Date | null;
1270
1352
  classId: string;
1271
1353
  title: string;
1272
- dueDate: Date;
1273
- maxGrade: number | null;
1274
- eventId: string | null;
1275
1354
  instructions: string;
1276
- modifiedAt: Date | null;
1355
+ dueDate: Date;
1277
1356
  teacherId: string;
1278
1357
  acceptFiles: boolean;
1279
1358
  acceptExtendedResponse: boolean;
@@ -1282,11 +1361,19 @@ export declare function detachAssignmentFromEvent(assignmentId: string): import(
1282
1361
  aiPolicyLevel: number;
1283
1362
  sectionId: string | null;
1284
1363
  graded: boolean;
1364
+ maxGrade: number | null;
1285
1365
  weight: number;
1286
1366
  inProgress: boolean;
1287
1367
  template: boolean;
1368
+ eventId: string | null;
1288
1369
  markSchemeId: string | null;
1289
1370
  order: number | null;
1290
1371
  gradingBoundaryId: string | null;
1291
- }, never, import("@prisma/client/runtime/library.js").DefaultArgs, import(".prisma/client").Prisma.PrismaClientOptions>;
1372
+ }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
1373
+ datasources: {
1374
+ db: {
1375
+ url: string;
1376
+ };
1377
+ };
1378
+ }>;
1292
1379
  //# sourceMappingURL=assignment.d.ts.map