@studious-lms/server 1.4.1 → 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 (149) 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 +22 -2
  59. package/dist/pipelines/aiLabChat.d.ts.map +1 -1
  60. package/dist/pipelines/aiLabChat.js +125 -95
  61. package/dist/pipelines/aiLabChat.js.map +1 -1
  62. package/dist/pipelines/aiLabChatContract.d.ts +22 -22
  63. package/dist/pipelines/gradeWorksheet.d.ts +8 -8
  64. package/dist/pipelines/gradeWorksheet.js +4 -4
  65. package/dist/pipelines/gradeWorksheet.js.map +1 -1
  66. package/dist/pipelines/labChatPrompt.d.ts +27 -0
  67. package/dist/pipelines/labChatPrompt.d.ts.map +1 -1
  68. package/dist/pipelines/labChatPrompt.js +143 -69
  69. package/dist/pipelines/labChatPrompt.js.map +1 -1
  70. package/dist/routers/_app.d.ts +1439 -1223
  71. package/dist/routers/_app.d.ts.map +1 -1
  72. package/dist/routers/agenda.d.ts +16 -16
  73. package/dist/routers/announcement.d.ts +19 -19
  74. package/dist/routers/assignment.d.ts +307 -291
  75. package/dist/routers/assignment.d.ts.map +1 -1
  76. package/dist/routers/assignment.js +3 -2
  77. package/dist/routers/assignment.js.map +1 -1
  78. package/dist/routers/attendance.d.ts +7 -7
  79. package/dist/routers/auth.d.ts +1 -1
  80. package/dist/routers/class.d.ts +77 -71
  81. package/dist/routers/class.d.ts.map +1 -1
  82. package/dist/routers/comment.d.ts +6 -6
  83. package/dist/routers/conversation.d.ts +11 -11
  84. package/dist/routers/event.d.ts +35 -35
  85. package/dist/routers/file.d.ts +12 -12
  86. package/dist/routers/folder.d.ts +54 -54
  87. package/dist/routers/labChat.d.ts +12 -12
  88. package/dist/routers/marketing.d.ts +2 -2
  89. package/dist/routers/message.d.ts +2 -2
  90. package/dist/routers/newtonChat.d.ts +1 -1
  91. package/dist/routers/notifications.d.ts +4 -4
  92. package/dist/routers/section.d.ts +7 -7
  93. package/dist/routers/studentProgress.d.ts +86 -0
  94. package/dist/routers/studentProgress.d.ts.map +1 -1
  95. package/dist/routers/studentProgress.js +14 -4
  96. package/dist/routers/studentProgress.js.map +1 -1
  97. package/dist/routers/user.d.ts +1 -1
  98. package/dist/routers/worksheet.d.ts +58 -58
  99. package/dist/seedDatabase.d.ts +1 -1
  100. package/dist/services/agenda.d.ts +16 -16
  101. package/dist/services/announcement.d.ts +8 -8
  102. package/dist/services/assignment.d.ts +299 -283
  103. package/dist/services/assignment.d.ts.map +1 -1
  104. package/dist/services/assignment.js +24 -5
  105. package/dist/services/assignment.js.map +1 -1
  106. package/dist/services/attendance.d.ts +7 -7
  107. package/dist/services/auth.d.ts +1 -1
  108. package/dist/services/class.d.ts +73 -67
  109. package/dist/services/class.d.ts.map +1 -1
  110. package/dist/services/comment.d.ts +6 -6
  111. package/dist/services/conversation.d.ts +11 -11
  112. package/dist/services/event.d.ts +31 -31
  113. package/dist/services/file.d.ts +12 -12
  114. package/dist/services/folder.d.ts +52 -52
  115. package/dist/services/labChat.d.ts +12 -12
  116. package/dist/services/marketing.d.ts +2 -2
  117. package/dist/services/notification.d.ts +4 -4
  118. package/dist/services/section.d.ts +6 -6
  119. package/dist/services/studentProgress.d.ts +75 -0
  120. package/dist/services/studentProgress.d.ts.map +1 -1
  121. package/dist/services/studentProgress.js +296 -106
  122. package/dist/services/studentProgress.js.map +1 -1
  123. package/dist/services/worksheet.d.ts +49 -49
  124. package/dist/utils/inference.d.ts +0 -11
  125. package/dist/utils/inference.d.ts.map +1 -1
  126. package/dist/utils/inference.js +2 -50
  127. package/dist/utils/inference.js.map +1 -1
  128. package/package.json +1 -1
  129. package/prisma/migrations/20260410124000_add_submission_recommendation_state/migration.sql +14 -0
  130. package/prisma/schema.prisma +14 -0
  131. package/src/index.ts +39 -51
  132. package/src/lib/config/cors.ts +96 -0
  133. package/src/lib/config/env.ts +12 -1
  134. package/src/lib/prisma.ts +25 -6
  135. package/src/middleware/security.ts +1 -1
  136. package/src/pipelines/aiLabChat.ts +175 -104
  137. package/src/pipelines/gradeWorksheet.ts +2 -2
  138. package/src/pipelines/labChatPrompt.ts +196 -68
  139. package/src/routers/assignment.ts +1 -0
  140. package/src/routers/studentProgress.ts +25 -1
  141. package/src/services/assignment.ts +30 -2
  142. package/src/services/studentProgress.ts +421 -120
  143. package/src/utils/inference.ts +0 -61
  144. package/tests/lib/cors.test.ts +103 -0
  145. package/tests/pipelines/aiLabChat.test.ts +64 -84
  146. package/tests/routers/studentProgress.test.ts +2 -31
  147. package/tests/utils/aiLabChatPrompt.test.ts +114 -6
  148. package/tests/utils/studentProgress.test.ts +361 -0
  149. package/vitest.unit.config.ts +1 -0
@@ -29,13 +29,11 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
29
29
  type: import(".prisma/client").$Enums.AssignmentType;
30
30
  id: string;
31
31
  createdAt: Date | null;
32
+ modifiedAt: Date | null;
32
33
  classId: string;
33
34
  title: string;
34
- dueDate: Date;
35
- maxGrade: number | null;
36
- eventId: string | null;
37
35
  instructions: string;
38
- modifiedAt: Date | null;
36
+ dueDate: Date;
39
37
  teacherId: string;
40
38
  acceptFiles: boolean;
41
39
  acceptExtendedResponse: boolean;
@@ -44,9 +42,11 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
44
42
  aiPolicyLevel: number;
45
43
  sectionId: string | null;
46
44
  graded: boolean;
45
+ maxGrade: number | null;
47
46
  weight: number;
48
47
  inProgress: boolean;
49
48
  template: boolean;
49
+ eventId: string | null;
50
50
  markSchemeId: string | null;
51
51
  order: number | null;
52
52
  gradingBoundaryId: string | null;
@@ -73,13 +73,11 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
73
73
  type: import(".prisma/client").$Enums.AssignmentType;
74
74
  id: string;
75
75
  createdAt: Date | null;
76
+ modifiedAt: Date | null;
76
77
  classId: string;
77
78
  title: string;
78
- dueDate: Date;
79
- maxGrade: number | null;
80
- eventId: string | null;
81
79
  instructions: string;
82
- modifiedAt: Date | null;
80
+ dueDate: Date;
83
81
  teacherId: string;
84
82
  acceptFiles: boolean;
85
83
  acceptExtendedResponse: boolean;
@@ -88,9 +86,11 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
88
86
  aiPolicyLevel: number;
89
87
  sectionId: string | null;
90
88
  graded: boolean;
89
+ maxGrade: number | null;
91
90
  weight: number;
92
91
  inProgress: boolean;
93
92
  template: boolean;
93
+ eventId: string | null;
94
94
  markSchemeId: string | null;
95
95
  order: number | null;
96
96
  gradingBoundaryId: string | null;
@@ -102,8 +102,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
102
102
  [x: string]: unknown;
103
103
  classId: string;
104
104
  title: string;
105
- dueDate: string;
106
105
  instructions: string;
106
+ dueDate: string;
107
107
  type?: "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "DISCUSSION" | "PRESENTATION" | "LAB" | "OTHER" | undefined;
108
108
  id?: string | undefined;
109
109
  files?: {
@@ -111,7 +111,6 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
111
111
  name: string;
112
112
  size: number;
113
113
  }[] | undefined;
114
- maxGrade?: number | undefined;
115
114
  acceptFiles?: boolean | undefined;
116
115
  acceptExtendedResponse?: boolean | undefined;
117
116
  acceptWorksheet?: boolean | undefined;
@@ -119,6 +118,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
119
118
  aiPolicyLevel?: number | undefined;
120
119
  sectionId?: string | undefined;
121
120
  graded?: boolean | undefined;
121
+ maxGrade?: number | undefined;
122
122
  weight?: number | undefined;
123
123
  inProgress?: boolean | undefined;
124
124
  markSchemeId?: string | undefined;
@@ -126,23 +126,24 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
126
126
  existingFileIds?: string[] | undefined;
127
127
  worksheetIds?: string[] | undefined;
128
128
  studentIds?: string[] | undefined;
129
+ sourceAssignmentId?: string | undefined;
129
130
  };
130
131
  output: {
131
132
  type: import(".prisma/client").$Enums.AssignmentType;
132
133
  id: string;
133
134
  class: {
134
- id: string;
135
135
  name: string;
136
+ id: string;
136
137
  };
137
138
  section: {
138
- id: string;
139
139
  name: string;
140
+ id: string;
140
141
  } | null;
141
142
  title: string;
142
- dueDate: Date;
143
- maxGrade: number | null;
144
143
  instructions: string;
144
+ dueDate: Date;
145
145
  graded: boolean;
146
+ maxGrade: number | null;
146
147
  weight: number;
147
148
  teacher: {
148
149
  id: string;
@@ -150,8 +151,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
150
151
  };
151
152
  attachments: {
152
153
  type: string;
153
- id: string;
154
154
  name: string;
155
+ id: string;
155
156
  }[];
156
157
  };
157
158
  meta: object;
@@ -168,9 +169,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
168
169
  size: number;
169
170
  }[] | undefined;
170
171
  title?: string | undefined;
171
- dueDate?: string | undefined;
172
- maxGrade?: number | undefined;
173
172
  instructions?: string | undefined;
173
+ dueDate?: string | undefined;
174
174
  acceptFiles?: boolean | undefined;
175
175
  acceptExtendedResponse?: boolean | undefined;
176
176
  acceptWorksheet?: boolean | undefined;
@@ -178,6 +178,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
178
178
  aiPolicyLevel?: number | undefined;
179
179
  sectionId?: string | null | undefined;
180
180
  graded?: boolean | undefined;
181
+ maxGrade?: number | undefined;
181
182
  weight?: number | undefined;
182
183
  inProgress?: boolean | undefined;
183
184
  existingFileIds?: string[] | undefined;
@@ -194,28 +195,28 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
194
195
  username: string;
195
196
  };
196
197
  }[];
197
- createdAt: Date | null;
198
198
  class: {
199
+ name: string;
199
200
  id: string;
200
201
  schoolId: string | null;
201
- name: string;
202
202
  subject: string;
203
203
  color: string | null;
204
204
  section: string;
205
205
  syllabus: string | null;
206
206
  };
207
207
  section: {
208
- id: string;
209
- classId: string;
210
208
  name: string;
209
+ id: string;
211
210
  color: string | null;
211
+ classId: string;
212
212
  order: number | null;
213
213
  } | null;
214
+ createdAt: Date | null;
214
215
  title: string;
215
- dueDate: Date;
216
- maxGrade: number | null;
217
216
  instructions: string;
217
+ dueDate: Date;
218
218
  graded: boolean;
219
+ maxGrade: number | null;
219
220
  weight: number;
220
221
  markSchemeId: string | null;
221
222
  teacher: {
@@ -230,22 +231,19 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
230
231
  attachments: {
231
232
  path: string;
232
233
  type: string;
233
- id: string;
234
234
  name: string;
235
+ id: string;
235
236
  size: number | null;
236
237
  uploadedAt: Date | null;
238
+ thumbnailId: string | null;
237
239
  thumbnail: {
238
240
  path: string;
239
241
  type: string;
240
- id: string;
241
- userId: string | null;
242
242
  name: string;
243
+ id: string;
243
244
  size: number | null;
245
+ userId: string | null;
244
246
  uploadedAt: Date | null;
245
- assignmentId: string | null;
246
- submissionId: string | null;
247
- thumbnailId: string | null;
248
- annotationId: string | null;
249
247
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
250
248
  uploadUrl: string | null;
251
249
  uploadExpiresAt: Date | null;
@@ -255,6 +253,10 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
255
253
  uploadRetryCount: number;
256
254
  isOrphaned: boolean;
257
255
  cleanupAt: Date | null;
256
+ thumbnailId: string | null;
257
+ assignmentId: string | null;
258
+ submissionId: string | null;
259
+ annotationId: string | null;
258
260
  classDraftId: string | null;
259
261
  folderId: string | null;
260
262
  conversationId: string | null;
@@ -262,7 +264,6 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
262
264
  announcementId: string | null;
263
265
  schoolDevelopementProgramId: string | null;
264
266
  } | null;
265
- thumbnailId: string | null;
266
267
  }[];
267
268
  };
268
269
  meta: object;
@@ -285,8 +286,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
285
286
  };
286
287
  output: {
287
288
  sections: {
288
- id: string;
289
289
  name: string;
290
+ id: string;
290
291
  }[];
291
292
  submissions: {
292
293
  student: {
@@ -295,16 +296,24 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
295
296
  };
296
297
  }[];
297
298
  class: {
298
- id: string;
299
299
  name: string;
300
+ id: string;
300
301
  };
301
302
  section: {
302
- id: string;
303
303
  name: string;
304
+ id: string;
304
305
  } | null;
305
- worksheets: {
306
+ markScheme: {
307
+ id: string;
308
+ structured: string;
309
+ } | null;
310
+ gradingBoundary: {
306
311
  id: string;
312
+ structured: string;
313
+ } | null;
314
+ worksheets: {
307
315
  name: string;
316
+ id: string;
308
317
  }[];
309
318
  teacher: {
310
319
  id: string;
@@ -313,39 +322,29 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
313
322
  attachments: {
314
323
  path: string;
315
324
  type: string;
316
- id: string;
317
325
  name: string;
326
+ id: string;
318
327
  size: number | null;
319
328
  uploadedAt: Date | null;
320
329
  thumbnailId: string | null;
321
330
  }[];
322
331
  eventAttached: {
323
- id: string;
324
- location: string | null;
325
332
  name: string | null;
333
+ id: string;
326
334
  color: string | null;
327
335
  startTime: Date;
328
336
  endTime: Date;
337
+ location: string | null;
329
338
  remarks: string | null;
330
339
  } | null;
331
- markScheme: {
332
- id: string;
333
- structured: string;
334
- } | null;
335
- gradingBoundary: {
336
- id: string;
337
- structured: string;
338
- } | null;
339
340
  type: import(".prisma/client").$Enums.AssignmentType;
340
341
  id: string;
341
342
  createdAt: Date | null;
343
+ modifiedAt: Date | null;
342
344
  classId: string;
343
345
  title: string;
344
- dueDate: Date;
345
- maxGrade: number | null;
346
- eventId: string | null;
347
346
  instructions: string;
348
- modifiedAt: Date | null;
347
+ dueDate: Date;
349
348
  teacherId: string;
350
349
  acceptFiles: boolean;
351
350
  acceptExtendedResponse: boolean;
@@ -354,9 +353,11 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
354
353
  aiPolicyLevel: number;
355
354
  sectionId: string | null;
356
355
  graded: boolean;
356
+ maxGrade: number | null;
357
357
  weight: number;
358
358
  inProgress: boolean;
359
359
  template: boolean;
360
+ eventId: string | null;
360
361
  markSchemeId: string | null;
361
362
  order: number | null;
362
363
  gradingBoundaryId: string | null;
@@ -373,18 +374,14 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
373
374
  late: boolean;
374
375
  assignment: {
375
376
  class: {
377
+ name: string;
376
378
  id: string;
377
379
  schoolId: string | null;
378
- name: string;
379
380
  subject: string;
380
381
  color: string | null;
381
382
  section: string;
382
383
  syllabus: string | null;
383
384
  };
384
- worksheets: {
385
- id: string;
386
- name: string;
387
- }[];
388
385
  markScheme: {
389
386
  id: string;
390
387
  structured: string;
@@ -393,17 +390,19 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
393
390
  id: string;
394
391
  structured: string;
395
392
  } | null;
393
+ worksheets: {
394
+ name: string;
395
+ id: string;
396
+ }[];
396
397
  } & {
397
398
  type: import(".prisma/client").$Enums.AssignmentType;
398
399
  id: string;
399
400
  createdAt: Date | null;
401
+ modifiedAt: Date | null;
400
402
  classId: string;
401
403
  title: string;
402
- dueDate: Date;
403
- maxGrade: number | null;
404
- eventId: string | null;
405
404
  instructions: string;
406
- modifiedAt: Date | null;
405
+ dueDate: Date;
407
406
  teacherId: string;
408
407
  acceptFiles: boolean;
409
408
  acceptExtendedResponse: boolean;
@@ -412,25 +411,23 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
412
411
  aiPolicyLevel: number;
413
412
  sectionId: string | null;
414
413
  graded: boolean;
414
+ maxGrade: number | null;
415
415
  weight: number;
416
416
  inProgress: boolean;
417
417
  template: boolean;
418
+ eventId: string | null;
418
419
  markSchemeId: string | null;
419
420
  order: number | null;
420
421
  gradingBoundaryId: string | null;
421
422
  };
422
- attachments: {
423
+ annotations: {
423
424
  path: string;
424
425
  type: string;
425
- id: string;
426
- userId: string | null;
427
426
  name: string;
427
+ id: string;
428
428
  size: number | null;
429
+ userId: string | null;
429
430
  uploadedAt: Date | null;
430
- assignmentId: string | null;
431
- submissionId: string | null;
432
- thumbnailId: string | null;
433
- annotationId: string | null;
434
431
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
435
432
  uploadUrl: string | null;
436
433
  uploadExpiresAt: Date | null;
@@ -440,6 +437,10 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
440
437
  uploadRetryCount: number;
441
438
  isOrphaned: boolean;
442
439
  cleanupAt: Date | null;
440
+ thumbnailId: string | null;
441
+ assignmentId: string | null;
442
+ submissionId: string | null;
443
+ annotationId: string | null;
443
444
  classDraftId: string | null;
444
445
  folderId: string | null;
445
446
  conversationId: string | null;
@@ -447,22 +448,14 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
447
448
  announcementId: string | null;
448
449
  schoolDevelopementProgramId: string | null;
449
450
  }[];
450
- student: {
451
- id: string;
452
- username: string;
453
- };
454
- annotations: {
451
+ attachments: {
455
452
  path: string;
456
453
  type: string;
457
- id: string;
458
- userId: string | null;
459
454
  name: string;
455
+ id: string;
460
456
  size: number | null;
457
+ userId: string | null;
461
458
  uploadedAt: Date | null;
462
- assignmentId: string | null;
463
- submissionId: string | null;
464
- thumbnailId: string | null;
465
- annotationId: string | null;
466
459
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
467
460
  uploadUrl: string | null;
468
461
  uploadExpiresAt: Date | null;
@@ -472,6 +465,10 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
472
465
  uploadRetryCount: number;
473
466
  isOrphaned: boolean;
474
467
  cleanupAt: Date | null;
468
+ thumbnailId: string | null;
469
+ assignmentId: string | null;
470
+ submissionId: string | null;
471
+ annotationId: string | null;
475
472
  classDraftId: string | null;
476
473
  folderId: string | null;
477
474
  conversationId: string | null;
@@ -479,13 +476,20 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
479
476
  announcementId: string | null;
480
477
  schoolDevelopementProgramId: string | null;
481
478
  }[];
479
+ student: {
480
+ id: string;
481
+ username: string;
482
+ };
482
483
  id: string;
483
- createdAt: Date;
484
484
  assignmentId: string;
485
+ createdAt: Date;
485
486
  modifiedAt: Date;
486
487
  studentId: string;
487
488
  extendedResponse: string | null;
488
489
  gradeReceived: number | null;
490
+ recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
491
+ recommendationUpdatedAt: Date | null;
492
+ targetedAssignmentId: string | null;
489
493
  rubricState: string | null;
490
494
  teacherComments: string | null;
491
495
  submittedAt: Date | null;
@@ -504,18 +508,14 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
504
508
  late: boolean;
505
509
  assignment: {
506
510
  class: {
511
+ name: string;
507
512
  id: string;
508
513
  schoolId: string | null;
509
- name: string;
510
514
  subject: string;
511
515
  color: string | null;
512
516
  section: string;
513
517
  syllabus: string | null;
514
518
  };
515
- worksheets: {
516
- id: string;
517
- name: string;
518
- }[];
519
519
  markScheme: {
520
520
  id: string;
521
521
  structured: string;
@@ -524,17 +524,19 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
524
524
  id: string;
525
525
  structured: string;
526
526
  } | null;
527
+ worksheets: {
528
+ name: string;
529
+ id: string;
530
+ }[];
527
531
  } & {
528
532
  type: import(".prisma/client").$Enums.AssignmentType;
529
533
  id: string;
530
534
  createdAt: Date | null;
535
+ modifiedAt: Date | null;
531
536
  classId: string;
532
537
  title: string;
533
- dueDate: Date;
534
- maxGrade: number | null;
535
- eventId: string | null;
536
538
  instructions: string;
537
- modifiedAt: Date | null;
539
+ dueDate: Date;
538
540
  teacherId: string;
539
541
  acceptFiles: boolean;
540
542
  acceptExtendedResponse: boolean;
@@ -543,25 +545,23 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
543
545
  aiPolicyLevel: number;
544
546
  sectionId: string | null;
545
547
  graded: boolean;
548
+ maxGrade: number | null;
546
549
  weight: number;
547
550
  inProgress: boolean;
548
551
  template: boolean;
552
+ eventId: string | null;
549
553
  markSchemeId: string | null;
550
554
  order: number | null;
551
555
  gradingBoundaryId: string | null;
552
556
  };
553
- attachments: {
557
+ annotations: {
554
558
  path: string;
555
559
  type: string;
556
- id: string;
557
- userId: string | null;
558
560
  name: string;
561
+ id: string;
559
562
  size: number | null;
563
+ userId: string | null;
560
564
  uploadedAt: Date | null;
561
- assignmentId: string | null;
562
- submissionId: string | null;
563
- thumbnailId: string | null;
564
- annotationId: string | null;
565
565
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
566
566
  uploadUrl: string | null;
567
567
  uploadExpiresAt: Date | null;
@@ -571,6 +571,10 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
571
571
  uploadRetryCount: number;
572
572
  isOrphaned: boolean;
573
573
  cleanupAt: Date | null;
574
+ thumbnailId: string | null;
575
+ assignmentId: string | null;
576
+ submissionId: string | null;
577
+ annotationId: string | null;
574
578
  classDraftId: string | null;
575
579
  folderId: string | null;
576
580
  conversationId: string | null;
@@ -578,34 +582,14 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
578
582
  announcementId: string | null;
579
583
  schoolDevelopementProgramId: string | null;
580
584
  }[];
581
- student: {
582
- id: string;
583
- username: string;
584
- profile: {
585
- id: string;
586
- userId: string;
587
- displayName: string | null;
588
- bio: string | null;
589
- location: string | null;
590
- website: string | null;
591
- profilePicture: string | null;
592
- profilePictureThumbnail: string | null;
593
- createdAt: Date;
594
- updatedAt: Date;
595
- } | null;
596
- };
597
- annotations: {
585
+ attachments: {
598
586
  path: string;
599
587
  type: string;
600
- id: string;
601
- userId: string | null;
602
588
  name: string;
589
+ id: string;
603
590
  size: number | null;
591
+ userId: string | null;
604
592
  uploadedAt: Date | null;
605
- assignmentId: string | null;
606
- submissionId: string | null;
607
- thumbnailId: string | null;
608
- annotationId: string | null;
609
593
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
610
594
  uploadUrl: string | null;
611
595
  uploadExpiresAt: Date | null;
@@ -615,6 +599,10 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
615
599
  uploadRetryCount: number;
616
600
  isOrphaned: boolean;
617
601
  cleanupAt: Date | null;
602
+ thumbnailId: string | null;
603
+ assignmentId: string | null;
604
+ submissionId: string | null;
605
+ annotationId: string | null;
618
606
  classDraftId: string | null;
619
607
  folderId: string | null;
620
608
  conversationId: string | null;
@@ -622,13 +610,32 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
622
610
  announcementId: string | null;
623
611
  schoolDevelopementProgramId: string | null;
624
612
  }[];
613
+ student: {
614
+ id: string;
615
+ username: string;
616
+ profile: {
617
+ id: string;
618
+ userId: string;
619
+ createdAt: Date;
620
+ location: string | null;
621
+ updatedAt: Date;
622
+ displayName: string | null;
623
+ bio: string | null;
624
+ website: string | null;
625
+ profilePicture: string | null;
626
+ profilePictureThumbnail: string | null;
627
+ } | null;
628
+ };
625
629
  id: string;
626
- createdAt: Date;
627
630
  assignmentId: string;
631
+ createdAt: Date;
628
632
  modifiedAt: Date;
629
633
  studentId: string;
630
634
  extendedResponse: string | null;
631
635
  gradeReceived: number | null;
636
+ recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
637
+ recommendationUpdatedAt: Date | null;
638
+ targetedAssignmentId: string | null;
632
639
  rubricState: string | null;
633
640
  teacherComments: string | null;
634
641
  submittedAt: Date | null;
@@ -656,9 +663,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
656
663
  output: {
657
664
  assignment: {
658
665
  class: {
666
+ name: string;
659
667
  id: string;
660
668
  schoolId: string | null;
661
- name: string;
662
669
  subject: string;
663
670
  color: string | null;
664
671
  section: string;
@@ -676,13 +683,11 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
676
683
  type: import(".prisma/client").$Enums.AssignmentType;
677
684
  id: string;
678
685
  createdAt: Date | null;
686
+ modifiedAt: Date | null;
679
687
  classId: string;
680
688
  title: string;
681
- dueDate: Date;
682
- maxGrade: number | null;
683
- eventId: string | null;
684
689
  instructions: string;
685
- modifiedAt: Date | null;
690
+ dueDate: Date;
686
691
  teacherId: string;
687
692
  acceptFiles: boolean;
688
693
  acceptExtendedResponse: boolean;
@@ -691,9 +696,11 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
691
696
  aiPolicyLevel: number;
692
697
  sectionId: string | null;
693
698
  graded: boolean;
699
+ maxGrade: number | null;
694
700
  weight: number;
695
701
  inProgress: boolean;
696
702
  template: boolean;
703
+ eventId: string | null;
697
704
  markSchemeId: string | null;
698
705
  order: number | null;
699
706
  gradingBoundaryId: string | null;
@@ -701,15 +708,11 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
701
708
  attachments: {
702
709
  path: string;
703
710
  type: string;
704
- id: string;
705
- userId: string | null;
706
711
  name: string;
712
+ id: string;
707
713
  size: number | null;
714
+ userId: string | null;
708
715
  uploadedAt: Date | null;
709
- assignmentId: string | null;
710
- submissionId: string | null;
711
- thumbnailId: string | null;
712
- annotationId: string | null;
713
716
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
714
717
  uploadUrl: string | null;
715
718
  uploadExpiresAt: Date | null;
@@ -719,6 +722,10 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
719
722
  uploadRetryCount: number;
720
723
  isOrphaned: boolean;
721
724
  cleanupAt: Date | null;
725
+ thumbnailId: string | null;
726
+ assignmentId: string | null;
727
+ submissionId: string | null;
728
+ annotationId: string | null;
722
729
  classDraftId: string | null;
723
730
  folderId: string | null;
724
731
  conversationId: string | null;
@@ -732,12 +739,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
732
739
  };
733
740
  } & {
734
741
  id: string;
735
- createdAt: Date;
736
742
  assignmentId: string;
743
+ createdAt: Date;
737
744
  modifiedAt: Date;
738
745
  studentId: string;
739
746
  extendedResponse: string | null;
740
747
  gradeReceived: number | null;
748
+ recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
749
+ recommendationUpdatedAt: Date | null;
750
+ targetedAssignmentId: string | null;
741
751
  rubricState: string | null;
742
752
  teacherComments: string | null;
743
753
  submittedAt: Date | null;
@@ -756,9 +766,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
756
766
  late: boolean;
757
767
  assignment: {
758
768
  class: {
769
+ name: string;
759
770
  id: string;
760
771
  schoolId: string | null;
761
- name: string;
762
772
  subject: string;
763
773
  color: string | null;
764
774
  section: string;
@@ -776,13 +786,11 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
776
786
  type: import(".prisma/client").$Enums.AssignmentType;
777
787
  id: string;
778
788
  createdAt: Date | null;
789
+ modifiedAt: Date | null;
779
790
  classId: string;
780
791
  title: string;
781
- dueDate: Date;
782
- maxGrade: number | null;
783
- eventId: string | null;
784
792
  instructions: string;
785
- modifiedAt: Date | null;
793
+ dueDate: Date;
786
794
  teacherId: string;
787
795
  acceptFiles: boolean;
788
796
  acceptExtendedResponse: boolean;
@@ -791,9 +799,11 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
791
799
  aiPolicyLevel: number;
792
800
  sectionId: string | null;
793
801
  graded: boolean;
802
+ maxGrade: number | null;
794
803
  weight: number;
795
804
  inProgress: boolean;
796
805
  template: boolean;
806
+ eventId: string | null;
797
807
  markSchemeId: string | null;
798
808
  order: number | null;
799
809
  gradingBoundaryId: string | null;
@@ -802,15 +812,11 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
802
812
  thumbnail: {
803
813
  path: string;
804
814
  type: string;
805
- id: string;
806
- userId: string | null;
807
815
  name: string;
816
+ id: string;
808
817
  size: number | null;
818
+ userId: string | null;
809
819
  uploadedAt: Date | null;
810
- assignmentId: string | null;
811
- submissionId: string | null;
812
- thumbnailId: string | null;
813
- annotationId: string | null;
814
820
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
815
821
  uploadUrl: string | null;
816
822
  uploadExpiresAt: Date | null;
@@ -820,6 +826,10 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
820
826
  uploadRetryCount: number;
821
827
  isOrphaned: boolean;
822
828
  cleanupAt: Date | null;
829
+ thumbnailId: string | null;
830
+ assignmentId: string | null;
831
+ submissionId: string | null;
832
+ annotationId: string | null;
823
833
  classDraftId: string | null;
824
834
  folderId: string | null;
825
835
  conversationId: string | null;
@@ -830,15 +840,11 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
830
840
  } & {
831
841
  path: string;
832
842
  type: string;
833
- id: string;
834
- userId: string | null;
835
843
  name: string;
844
+ id: string;
836
845
  size: number | null;
846
+ userId: string | null;
837
847
  uploadedAt: Date | null;
838
- assignmentId: string | null;
839
- submissionId: string | null;
840
- thumbnailId: string | null;
841
- annotationId: string | null;
842
848
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
843
849
  uploadUrl: string | null;
844
850
  uploadExpiresAt: Date | null;
@@ -848,6 +854,10 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
848
854
  uploadRetryCount: number;
849
855
  isOrphaned: boolean;
850
856
  cleanupAt: Date | null;
857
+ thumbnailId: string | null;
858
+ assignmentId: string | null;
859
+ submissionId: string | null;
860
+ annotationId: string | null;
851
861
  classDraftId: string | null;
852
862
  folderId: string | null;
853
863
  conversationId: string | null;
@@ -865,12 +875,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
865
875
  } | null;
866
876
  };
867
877
  id: string;
868
- createdAt: Date;
869
878
  assignmentId: string;
879
+ createdAt: Date;
870
880
  modifiedAt: Date;
871
881
  studentId: string;
872
882
  extendedResponse: string | null;
873
883
  gradeReceived: number | null;
884
+ recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
885
+ recommendationUpdatedAt: Date | null;
886
+ targetedAssignmentId: string | null;
874
887
  rubricState: string | null;
875
888
  teacherComments: string | null;
876
889
  submittedAt: Date | null;
@@ -885,8 +898,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
885
898
  classId: string;
886
899
  assignmentId: string;
887
900
  submissionId: string;
888
- feedback?: string | undefined;
889
901
  gradeReceived?: number | null | undefined;
902
+ feedback?: string | undefined;
890
903
  existingFileIds?: string[] | undefined;
891
904
  removedAttachments?: string[] | undefined;
892
905
  newAttachments?: {
@@ -905,9 +918,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
905
918
  output: {
906
919
  assignment: {
907
920
  class: {
921
+ name: string;
908
922
  id: string;
909
923
  schoolId: string | null;
910
- name: string;
911
924
  subject: string;
912
925
  color: string | null;
913
926
  section: string;
@@ -925,13 +938,11 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
925
938
  type: import(".prisma/client").$Enums.AssignmentType;
926
939
  id: string;
927
940
  createdAt: Date | null;
941
+ modifiedAt: Date | null;
928
942
  classId: string;
929
943
  title: string;
930
- dueDate: Date;
931
- maxGrade: number | null;
932
- eventId: string | null;
933
944
  instructions: string;
934
- modifiedAt: Date | null;
945
+ dueDate: Date;
935
946
  teacherId: string;
936
947
  acceptFiles: boolean;
937
948
  acceptExtendedResponse: boolean;
@@ -940,26 +951,24 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
940
951
  aiPolicyLevel: number;
941
952
  sectionId: string | null;
942
953
  graded: boolean;
954
+ maxGrade: number | null;
943
955
  weight: number;
944
956
  inProgress: boolean;
945
957
  template: boolean;
958
+ eventId: string | null;
946
959
  markSchemeId: string | null;
947
960
  order: number | null;
948
961
  gradingBoundaryId: string | null;
949
962
  };
950
- attachments: ({
963
+ annotations: ({
951
964
  thumbnail: {
952
965
  path: string;
953
966
  type: string;
954
- id: string;
955
- userId: string | null;
956
967
  name: string;
968
+ id: string;
957
969
  size: number | null;
970
+ userId: string | null;
958
971
  uploadedAt: Date | null;
959
- assignmentId: string | null;
960
- submissionId: string | null;
961
- thumbnailId: string | null;
962
- annotationId: string | null;
963
972
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
964
973
  uploadUrl: string | null;
965
974
  uploadExpiresAt: Date | null;
@@ -969,6 +978,10 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
969
978
  uploadRetryCount: number;
970
979
  isOrphaned: boolean;
971
980
  cleanupAt: Date | null;
981
+ thumbnailId: string | null;
982
+ assignmentId: string | null;
983
+ submissionId: string | null;
984
+ annotationId: string | null;
972
985
  classDraftId: string | null;
973
986
  folderId: string | null;
974
987
  conversationId: string | null;
@@ -979,15 +992,11 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
979
992
  } & {
980
993
  path: string;
981
994
  type: string;
982
- id: string;
983
- userId: string | null;
984
995
  name: string;
996
+ id: string;
985
997
  size: number | null;
998
+ userId: string | null;
986
999
  uploadedAt: Date | null;
987
- assignmentId: string | null;
988
- submissionId: string | null;
989
- thumbnailId: string | null;
990
- annotationId: string | null;
991
1000
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
992
1001
  uploadUrl: string | null;
993
1002
  uploadExpiresAt: Date | null;
@@ -997,6 +1006,10 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
997
1006
  uploadRetryCount: number;
998
1007
  isOrphaned: boolean;
999
1008
  cleanupAt: Date | null;
1009
+ thumbnailId: string | null;
1010
+ assignmentId: string | null;
1011
+ submissionId: string | null;
1012
+ annotationId: string | null;
1000
1013
  classDraftId: string | null;
1001
1014
  folderId: string | null;
1002
1015
  conversationId: string | null;
@@ -1004,28 +1017,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1004
1017
  announcementId: string | null;
1005
1018
  schoolDevelopementProgramId: string | null;
1006
1019
  })[];
1007
- student: {
1008
- id: string;
1009
- username: string;
1010
- profile: {
1011
- displayName: string | null;
1012
- profilePicture: string | null;
1013
- profilePictureThumbnail: string | null;
1014
- } | null;
1015
- };
1016
- annotations: ({
1020
+ attachments: ({
1017
1021
  thumbnail: {
1018
1022
  path: string;
1019
1023
  type: string;
1020
- id: string;
1021
- userId: string | null;
1022
1024
  name: string;
1025
+ id: string;
1023
1026
  size: number | null;
1027
+ userId: string | null;
1024
1028
  uploadedAt: Date | null;
1025
- assignmentId: string | null;
1026
- submissionId: string | null;
1027
- thumbnailId: string | null;
1028
- annotationId: string | null;
1029
1029
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1030
1030
  uploadUrl: string | null;
1031
1031
  uploadExpiresAt: Date | null;
@@ -1035,6 +1035,10 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1035
1035
  uploadRetryCount: number;
1036
1036
  isOrphaned: boolean;
1037
1037
  cleanupAt: Date | null;
1038
+ thumbnailId: string | null;
1039
+ assignmentId: string | null;
1040
+ submissionId: string | null;
1041
+ annotationId: string | null;
1038
1042
  classDraftId: string | null;
1039
1043
  folderId: string | null;
1040
1044
  conversationId: string | null;
@@ -1045,15 +1049,11 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1045
1049
  } & {
1046
1050
  path: string;
1047
1051
  type: string;
1048
- id: string;
1049
- userId: string | null;
1050
1052
  name: string;
1053
+ id: string;
1051
1054
  size: number | null;
1055
+ userId: string | null;
1052
1056
  uploadedAt: Date | null;
1053
- assignmentId: string | null;
1054
- submissionId: string | null;
1055
- thumbnailId: string | null;
1056
- annotationId: string | null;
1057
1057
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1058
1058
  uploadUrl: string | null;
1059
1059
  uploadExpiresAt: Date | null;
@@ -1063,6 +1063,10 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1063
1063
  uploadRetryCount: number;
1064
1064
  isOrphaned: boolean;
1065
1065
  cleanupAt: Date | null;
1066
+ thumbnailId: string | null;
1067
+ assignmentId: string | null;
1068
+ submissionId: string | null;
1069
+ annotationId: string | null;
1066
1070
  classDraftId: string | null;
1067
1071
  folderId: string | null;
1068
1072
  conversationId: string | null;
@@ -1070,14 +1074,26 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1070
1074
  announcementId: string | null;
1071
1075
  schoolDevelopementProgramId: string | null;
1072
1076
  })[];
1077
+ student: {
1078
+ id: string;
1079
+ username: string;
1080
+ profile: {
1081
+ displayName: string | null;
1082
+ profilePicture: string | null;
1083
+ profilePictureThumbnail: string | null;
1084
+ } | null;
1085
+ };
1073
1086
  } & {
1074
1087
  id: string;
1075
- createdAt: Date;
1076
1088
  assignmentId: string;
1089
+ createdAt: Date;
1077
1090
  modifiedAt: Date;
1078
1091
  studentId: string;
1079
1092
  extendedResponse: string | null;
1080
1093
  gradeReceived: number | null;
1094
+ recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
1095
+ recommendationUpdatedAt: Date | null;
1096
+ targetedAssignmentId: string | null;
1081
1097
  rubricState: string | null;
1082
1098
  teacherComments: string | null;
1083
1099
  submittedAt: Date | null;
@@ -1096,8 +1112,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1096
1112
  output: {
1097
1113
  assignment: {
1098
1114
  section: {
1099
- id: string;
1100
1115
  name: string;
1116
+ id: string;
1101
1117
  } | null;
1102
1118
  teacher: {
1103
1119
  id: string;
@@ -1105,12 +1121,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1105
1121
  };
1106
1122
  attachments: {
1107
1123
  type: string;
1108
- id: string;
1109
1124
  name: string;
1125
+ id: string;
1110
1126
  }[];
1111
1127
  eventAttached: {
1112
- id: string;
1113
1128
  name: string | null;
1129
+ id: string;
1114
1130
  color: string | null;
1115
1131
  startTime: Date;
1116
1132
  endTime: Date;
@@ -1119,13 +1135,11 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1119
1135
  type: import(".prisma/client").$Enums.AssignmentType;
1120
1136
  id: string;
1121
1137
  createdAt: Date | null;
1138
+ modifiedAt: Date | null;
1122
1139
  classId: string;
1123
1140
  title: string;
1124
- dueDate: Date;
1125
- maxGrade: number | null;
1126
- eventId: string | null;
1127
1141
  instructions: string;
1128
- modifiedAt: Date | null;
1142
+ dueDate: Date;
1129
1143
  teacherId: string;
1130
1144
  acceptFiles: boolean;
1131
1145
  acceptExtendedResponse: boolean;
@@ -1134,9 +1148,11 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1134
1148
  aiPolicyLevel: number;
1135
1149
  sectionId: string | null;
1136
1150
  graded: boolean;
1151
+ maxGrade: number | null;
1137
1152
  weight: number;
1138
1153
  inProgress: boolean;
1139
1154
  template: boolean;
1155
+ eventId: string | null;
1140
1156
  markSchemeId: string | null;
1141
1157
  order: number | null;
1142
1158
  gradingBoundaryId: string | null;
@@ -1153,8 +1169,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1153
1169
  output: {
1154
1170
  assignment: {
1155
1171
  section: {
1156
- id: string;
1157
1172
  name: string;
1173
+ id: string;
1158
1174
  } | null;
1159
1175
  teacher: {
1160
1176
  id: string;
@@ -1162,12 +1178,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1162
1178
  };
1163
1179
  attachments: {
1164
1180
  type: string;
1165
- id: string;
1166
1181
  name: string;
1182
+ id: string;
1167
1183
  }[];
1168
1184
  eventAttached: {
1169
- id: string;
1170
1185
  name: string | null;
1186
+ id: string;
1171
1187
  color: string | null;
1172
1188
  startTime: Date;
1173
1189
  endTime: Date;
@@ -1176,13 +1192,11 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1176
1192
  type: import(".prisma/client").$Enums.AssignmentType;
1177
1193
  id: string;
1178
1194
  createdAt: Date | null;
1195
+ modifiedAt: Date | null;
1179
1196
  classId: string;
1180
1197
  title: string;
1181
- dueDate: Date;
1182
- maxGrade: number | null;
1183
- eventId: string | null;
1184
1198
  instructions: string;
1185
- modifiedAt: Date | null;
1199
+ dueDate: Date;
1186
1200
  teacherId: string;
1187
1201
  acceptFiles: boolean;
1188
1202
  acceptExtendedResponse: boolean;
@@ -1191,9 +1205,11 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1191
1205
  aiPolicyLevel: number;
1192
1206
  sectionId: string | null;
1193
1207
  graded: boolean;
1208
+ maxGrade: number | null;
1194
1209
  weight: number;
1195
1210
  inProgress: boolean;
1196
1211
  template: boolean;
1212
+ eventId: string | null;
1197
1213
  markSchemeId: string | null;
1198
1214
  order: number | null;
1199
1215
  gradingBoundaryId: string | null;
@@ -1209,12 +1225,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1209
1225
  };
1210
1226
  output: {
1211
1227
  events: {
1212
- id: string;
1213
- location: string | null;
1214
1228
  name: string | null;
1229
+ id: string;
1215
1230
  color: string | null;
1216
1231
  startTime: Date;
1217
1232
  endTime: Date;
1233
+ location: string | null;
1218
1234
  remarks: string | null;
1219
1235
  }[];
1220
1236
  };
@@ -1227,12 +1243,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1227
1243
  type: import(".prisma/client").$Enums.AssignmentType;
1228
1244
  id: string;
1229
1245
  class: {
1230
- id: string;
1231
1246
  name: string;
1247
+ id: string;
1232
1248
  };
1233
1249
  title: string;
1234
- maxGrade: number | null;
1235
1250
  graded: boolean;
1251
+ maxGrade: number | null;
1236
1252
  }[];
1237
1253
  meta: object;
1238
1254
  }>;
@@ -1245,12 +1261,17 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1245
1261
  };
1246
1262
  output: {
1247
1263
  section: {
1248
- id: string;
1249
- classId: string;
1250
1264
  name: string;
1265
+ id: string;
1251
1266
  color: string | null;
1267
+ classId: string;
1252
1268
  order: number | null;
1253
1269
  } | null;
1270
+ markScheme: {
1271
+ id: string;
1272
+ classId: string;
1273
+ structured: string;
1274
+ } | null;
1254
1275
  teacher: {
1255
1276
  id: string;
1256
1277
  username: string;
@@ -1263,15 +1284,11 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1263
1284
  attachments: {
1264
1285
  path: string;
1265
1286
  type: string;
1266
- id: string;
1267
- userId: string | null;
1268
1287
  name: string;
1288
+ id: string;
1269
1289
  size: number | null;
1290
+ userId: string | null;
1270
1291
  uploadedAt: Date | null;
1271
- assignmentId: string | null;
1272
- submissionId: string | null;
1273
- thumbnailId: string | null;
1274
- annotationId: string | null;
1275
1292
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1276
1293
  uploadUrl: string | null;
1277
1294
  uploadExpiresAt: Date | null;
@@ -1281,6 +1298,10 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1281
1298
  uploadRetryCount: number;
1282
1299
  isOrphaned: boolean;
1283
1300
  cleanupAt: Date | null;
1301
+ thumbnailId: string | null;
1302
+ assignmentId: string | null;
1303
+ submissionId: string | null;
1304
+ annotationId: string | null;
1284
1305
  classDraftId: string | null;
1285
1306
  folderId: string | null;
1286
1307
  conversationId: string | null;
@@ -1289,32 +1310,25 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1289
1310
  schoolDevelopementProgramId: string | null;
1290
1311
  }[];
1291
1312
  eventAttached: {
1313
+ name: string | null;
1292
1314
  id: string;
1293
1315
  userId: string | null;
1294
- location: string | null;
1295
- classId: string | null;
1296
- name: string | null;
1297
1316
  color: string | null;
1317
+ classId: string | null;
1298
1318
  startTime: Date;
1299
1319
  endTime: Date;
1320
+ location: string | null;
1300
1321
  remarks: string | null;
1301
1322
  } | null;
1302
- markScheme: {
1303
- id: string;
1304
- classId: string;
1305
- structured: string;
1306
- } | null;
1307
1323
  } & {
1308
1324
  type: import(".prisma/client").$Enums.AssignmentType;
1309
1325
  id: string;
1310
1326
  createdAt: Date | null;
1327
+ modifiedAt: Date | null;
1311
1328
  classId: string;
1312
1329
  title: string;
1313
- dueDate: Date;
1314
- maxGrade: number | null;
1315
- eventId: string | null;
1316
1330
  instructions: string;
1317
- modifiedAt: Date | null;
1331
+ dueDate: Date;
1318
1332
  teacherId: string;
1319
1333
  acceptFiles: boolean;
1320
1334
  acceptExtendedResponse: boolean;
@@ -1323,9 +1337,11 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1323
1337
  aiPolicyLevel: number;
1324
1338
  sectionId: string | null;
1325
1339
  graded: boolean;
1340
+ maxGrade: number | null;
1326
1341
  weight: number;
1327
1342
  inProgress: boolean;
1328
1343
  template: boolean;
1344
+ eventId: string | null;
1329
1345
  markSchemeId: string | null;
1330
1346
  order: number | null;
1331
1347
  gradingBoundaryId: string | null;
@@ -1340,12 +1356,17 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1340
1356
  };
1341
1357
  output: {
1342
1358
  section: {
1343
- id: string;
1344
- classId: string;
1345
1359
  name: string;
1360
+ id: string;
1346
1361
  color: string | null;
1362
+ classId: string;
1347
1363
  order: number | null;
1348
1364
  } | null;
1365
+ markScheme: {
1366
+ id: string;
1367
+ classId: string;
1368
+ structured: string;
1369
+ } | null;
1349
1370
  teacher: {
1350
1371
  id: string;
1351
1372
  username: string;
@@ -1358,15 +1379,11 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1358
1379
  attachments: {
1359
1380
  path: string;
1360
1381
  type: string;
1361
- id: string;
1362
- userId: string | null;
1363
1382
  name: string;
1383
+ id: string;
1364
1384
  size: number | null;
1385
+ userId: string | null;
1365
1386
  uploadedAt: Date | null;
1366
- assignmentId: string | null;
1367
- submissionId: string | null;
1368
- thumbnailId: string | null;
1369
- annotationId: string | null;
1370
1387
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1371
1388
  uploadUrl: string | null;
1372
1389
  uploadExpiresAt: Date | null;
@@ -1376,6 +1393,10 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1376
1393
  uploadRetryCount: number;
1377
1394
  isOrphaned: boolean;
1378
1395
  cleanupAt: Date | null;
1396
+ thumbnailId: string | null;
1397
+ assignmentId: string | null;
1398
+ submissionId: string | null;
1399
+ annotationId: string | null;
1379
1400
  classDraftId: string | null;
1380
1401
  folderId: string | null;
1381
1402
  conversationId: string | null;
@@ -1384,32 +1405,25 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1384
1405
  schoolDevelopementProgramId: string | null;
1385
1406
  }[];
1386
1407
  eventAttached: {
1408
+ name: string | null;
1387
1409
  id: string;
1388
1410
  userId: string | null;
1389
- location: string | null;
1390
- classId: string | null;
1391
- name: string | null;
1392
1411
  color: string | null;
1412
+ classId: string | null;
1393
1413
  startTime: Date;
1394
1414
  endTime: Date;
1415
+ location: string | null;
1395
1416
  remarks: string | null;
1396
1417
  } | null;
1397
- markScheme: {
1398
- id: string;
1399
- classId: string;
1400
- structured: string;
1401
- } | null;
1402
1418
  } & {
1403
1419
  type: import(".prisma/client").$Enums.AssignmentType;
1404
1420
  id: string;
1405
1421
  createdAt: Date | null;
1422
+ modifiedAt: Date | null;
1406
1423
  classId: string;
1407
1424
  title: string;
1408
- dueDate: Date;
1409
- maxGrade: number | null;
1410
- eventId: string | null;
1411
1425
  instructions: string;
1412
- modifiedAt: Date | null;
1426
+ dueDate: Date;
1413
1427
  teacherId: string;
1414
1428
  acceptFiles: boolean;
1415
1429
  acceptExtendedResponse: boolean;
@@ -1418,9 +1432,11 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1418
1432
  aiPolicyLevel: number;
1419
1433
  sectionId: string | null;
1420
1434
  graded: boolean;
1435
+ maxGrade: number | null;
1421
1436
  weight: number;
1422
1437
  inProgress: boolean;
1423
1438
  template: boolean;
1439
+ eventId: string | null;
1424
1440
  markSchemeId: string | null;
1425
1441
  order: number | null;
1426
1442
  gradingBoundaryId: string | null;
@@ -1436,12 +1452,17 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1436
1452
  };
1437
1453
  output: {
1438
1454
  section: {
1439
- id: string;
1440
- classId: string;
1441
1455
  name: string;
1456
+ id: string;
1442
1457
  color: string | null;
1458
+ classId: string;
1443
1459
  order: number | null;
1444
1460
  } | null;
1461
+ gradingBoundary: {
1462
+ id: string;
1463
+ classId: string;
1464
+ structured: string;
1465
+ } | null;
1445
1466
  teacher: {
1446
1467
  id: string;
1447
1468
  username: string;
@@ -1454,15 +1475,11 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1454
1475
  attachments: {
1455
1476
  path: string;
1456
1477
  type: string;
1457
- id: string;
1458
- userId: string | null;
1459
1478
  name: string;
1479
+ id: string;
1460
1480
  size: number | null;
1481
+ userId: string | null;
1461
1482
  uploadedAt: Date | null;
1462
- assignmentId: string | null;
1463
- submissionId: string | null;
1464
- thumbnailId: string | null;
1465
- annotationId: string | null;
1466
1483
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1467
1484
  uploadUrl: string | null;
1468
1485
  uploadExpiresAt: Date | null;
@@ -1472,6 +1489,10 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1472
1489
  uploadRetryCount: number;
1473
1490
  isOrphaned: boolean;
1474
1491
  cleanupAt: Date | null;
1492
+ thumbnailId: string | null;
1493
+ assignmentId: string | null;
1494
+ submissionId: string | null;
1495
+ annotationId: string | null;
1475
1496
  classDraftId: string | null;
1476
1497
  folderId: string | null;
1477
1498
  conversationId: string | null;
@@ -1480,32 +1501,25 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1480
1501
  schoolDevelopementProgramId: string | null;
1481
1502
  }[];
1482
1503
  eventAttached: {
1504
+ name: string | null;
1483
1505
  id: string;
1484
1506
  userId: string | null;
1485
- location: string | null;
1486
- classId: string | null;
1487
- name: string | null;
1488
1507
  color: string | null;
1508
+ classId: string | null;
1489
1509
  startTime: Date;
1490
1510
  endTime: Date;
1511
+ location: string | null;
1491
1512
  remarks: string | null;
1492
1513
  } | null;
1493
- gradingBoundary: {
1494
- id: string;
1495
- classId: string;
1496
- structured: string;
1497
- } | null;
1498
1514
  } & {
1499
1515
  type: import(".prisma/client").$Enums.AssignmentType;
1500
1516
  id: string;
1501
1517
  createdAt: Date | null;
1518
+ modifiedAt: Date | null;
1502
1519
  classId: string;
1503
1520
  title: string;
1504
- dueDate: Date;
1505
- maxGrade: number | null;
1506
- eventId: string | null;
1507
1521
  instructions: string;
1508
- modifiedAt: Date | null;
1522
+ dueDate: Date;
1509
1523
  teacherId: string;
1510
1524
  acceptFiles: boolean;
1511
1525
  acceptExtendedResponse: boolean;
@@ -1514,9 +1528,11 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1514
1528
  aiPolicyLevel: number;
1515
1529
  sectionId: string | null;
1516
1530
  graded: boolean;
1531
+ maxGrade: number | null;
1517
1532
  weight: number;
1518
1533
  inProgress: boolean;
1519
1534
  template: boolean;
1535
+ eventId: string | null;
1520
1536
  markSchemeId: string | null;
1521
1537
  order: number | null;
1522
1538
  gradingBoundaryId: string | null;
@@ -1531,12 +1547,17 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1531
1547
  };
1532
1548
  output: {
1533
1549
  section: {
1534
- id: string;
1535
- classId: string;
1536
1550
  name: string;
1551
+ id: string;
1537
1552
  color: string | null;
1553
+ classId: string;
1538
1554
  order: number | null;
1539
1555
  } | null;
1556
+ gradingBoundary: {
1557
+ id: string;
1558
+ classId: string;
1559
+ structured: string;
1560
+ } | null;
1540
1561
  teacher: {
1541
1562
  id: string;
1542
1563
  username: string;
@@ -1549,15 +1570,11 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1549
1570
  attachments: {
1550
1571
  path: string;
1551
1572
  type: string;
1552
- id: string;
1553
- userId: string | null;
1554
1573
  name: string;
1574
+ id: string;
1555
1575
  size: number | null;
1576
+ userId: string | null;
1556
1577
  uploadedAt: Date | null;
1557
- assignmentId: string | null;
1558
- submissionId: string | null;
1559
- thumbnailId: string | null;
1560
- annotationId: string | null;
1561
1578
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1562
1579
  uploadUrl: string | null;
1563
1580
  uploadExpiresAt: Date | null;
@@ -1567,6 +1584,10 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1567
1584
  uploadRetryCount: number;
1568
1585
  isOrphaned: boolean;
1569
1586
  cleanupAt: Date | null;
1587
+ thumbnailId: string | null;
1588
+ assignmentId: string | null;
1589
+ submissionId: string | null;
1590
+ annotationId: string | null;
1570
1591
  classDraftId: string | null;
1571
1592
  folderId: string | null;
1572
1593
  conversationId: string | null;
@@ -1575,32 +1596,25 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1575
1596
  schoolDevelopementProgramId: string | null;
1576
1597
  }[];
1577
1598
  eventAttached: {
1599
+ name: string | null;
1578
1600
  id: string;
1579
1601
  userId: string | null;
1580
- location: string | null;
1581
- classId: string | null;
1582
- name: string | null;
1583
1602
  color: string | null;
1603
+ classId: string | null;
1584
1604
  startTime: Date;
1585
1605
  endTime: Date;
1606
+ location: string | null;
1586
1607
  remarks: string | null;
1587
1608
  } | null;
1588
- gradingBoundary: {
1589
- id: string;
1590
- classId: string;
1591
- structured: string;
1592
- } | null;
1593
1609
  } & {
1594
1610
  type: import(".prisma/client").$Enums.AssignmentType;
1595
1611
  id: string;
1596
1612
  createdAt: Date | null;
1613
+ modifiedAt: Date | null;
1597
1614
  classId: string;
1598
1615
  title: string;
1599
- dueDate: Date;
1600
- maxGrade: number | null;
1601
- eventId: string | null;
1602
1616
  instructions: string;
1603
- modifiedAt: Date | null;
1617
+ dueDate: Date;
1604
1618
  teacherId: string;
1605
1619
  acceptFiles: boolean;
1606
1620
  acceptExtendedResponse: boolean;
@@ -1609,9 +1623,11 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1609
1623
  aiPolicyLevel: number;
1610
1624
  sectionId: string | null;
1611
1625
  graded: boolean;
1626
+ maxGrade: number | null;
1612
1627
  weight: number;
1613
1628
  inProgress: boolean;
1614
1629
  template: boolean;
1630
+ eventId: string | null;
1615
1631
  markSchemeId: string | null;
1616
1632
  order: number | null;
1617
1633
  gradingBoundaryId: string | null;
@@ -1622,12 +1638,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1622
1638
  input: {
1623
1639
  [x: string]: unknown;
1624
1640
  classId: string;
1641
+ assignmentId: string;
1625
1642
  files: {
1626
1643
  type: string;
1627
1644
  name: string;
1628
1645
  size: number;
1629
1646
  }[];
1630
- assignmentId: string;
1631
1647
  };
1632
1648
  output: {
1633
1649
  success: boolean;
@@ -1639,12 +1655,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1639
1655
  input: {
1640
1656
  [x: string]: unknown;
1641
1657
  classId: string;
1658
+ submissionId: string;
1642
1659
  files: {
1643
1660
  type: string;
1644
1661
  name: string;
1645
1662
  size: number;
1646
1663
  }[];
1647
- submissionId: string;
1648
1664
  };
1649
1665
  output: {
1650
1666
  success: boolean;
@@ -1684,12 +1700,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1684
1700
  input: {
1685
1701
  [x: string]: unknown;
1686
1702
  classId: string;
1703
+ submissionId: string;
1687
1704
  files: {
1688
1705
  type: string;
1689
1706
  name: string;
1690
1707
  size: number;
1691
1708
  }[];
1692
- submissionId: string;
1693
1709
  };
1694
1710
  output: {
1695
1711
  success: boolean;