@studious-lms/server 1.12.0 → 1.14.0

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 (338) hide show
  1. package/.dockerignore +28 -0
  2. package/.env.example +5 -0
  3. package/.github/workflows/deploy.yml +123 -0
  4. package/Dockerfile +54 -0
  5. package/dist/index.js +5 -2
  6. package/dist/index.js.map +1 -1
  7. package/dist/lib/config/cors.d.ts.map +1 -1
  8. package/dist/lib/config/cors.js +31 -11
  9. package/dist/lib/config/cors.js.map +1 -1
  10. package/dist/lib/config/env.d.ts +17 -0
  11. package/dist/lib/config/env.d.ts.map +1 -1
  12. package/dist/lib/config/env.js +8 -2
  13. package/dist/lib/config/env.js.map +1 -1
  14. package/dist/lib/googleCloudStorage.d.ts +10 -0
  15. package/dist/lib/googleCloudStorage.d.ts.map +1 -1
  16. package/dist/lib/googleCloudStorage.js +22 -2
  17. package/dist/lib/googleCloudStorage.js.map +1 -1
  18. package/dist/lib/prisma.d.ts +104 -5
  19. package/dist/lib/prisma.d.ts.map +1 -1
  20. package/dist/lib/prisma.js +33 -2
  21. package/dist/lib/prisma.js.map +1 -1
  22. package/dist/models/agenda.d.ts +20 -20
  23. package/dist/models/announcement.d.ts +177 -69
  24. package/dist/models/announcement.d.ts.map +1 -1
  25. package/dist/models/assignment.d.ts +551 -353
  26. package/dist/models/assignment.d.ts.map +1 -1
  27. package/dist/models/attendance.d.ts +197 -71
  28. package/dist/models/attendance.d.ts.map +1 -1
  29. package/dist/models/auth.d.ts +348 -114
  30. package/dist/models/auth.d.ts.map +1 -1
  31. package/dist/models/class.d.ts +324 -188
  32. package/dist/models/class.d.ts.map +1 -1
  33. package/dist/models/class.js +9 -3
  34. package/dist/models/class.js.map +1 -1
  35. package/dist/models/cloudStorage.d.ts +146 -56
  36. package/dist/models/cloudStorage.d.ts.map +1 -1
  37. package/dist/models/comment.d.ts +269 -110
  38. package/dist/models/comment.d.ts.map +1 -1
  39. package/dist/models/comment.js +3 -2
  40. package/dist/models/comment.js.map +1 -1
  41. package/dist/models/conversation.d.ts +206 -63
  42. package/dist/models/conversation.d.ts.map +1 -1
  43. package/dist/models/conversation.js +13 -2
  44. package/dist/models/conversation.js.map +1 -1
  45. package/dist/models/department.d.ts +196 -70
  46. package/dist/models/department.d.ts.map +1 -1
  47. package/dist/models/event.d.ts +287 -125
  48. package/dist/models/event.d.ts.map +1 -1
  49. package/dist/models/file.d.ts +389 -263
  50. package/dist/models/file.d.ts.map +1 -1
  51. package/dist/models/folder.d.ts +433 -181
  52. package/dist/models/folder.d.ts.map +1 -1
  53. package/dist/models/labChat.d.ts +209 -83
  54. package/dist/models/labChat.d.ts.map +1 -1
  55. package/dist/models/marketing.d.ts +80 -26
  56. package/dist/models/marketing.d.ts.map +1 -1
  57. package/dist/models/message.d.ts +95 -41
  58. package/dist/models/message.d.ts.map +1 -1
  59. package/dist/models/newtonChat.d.ts +83 -29
  60. package/dist/models/newtonChat.d.ts.map +1 -1
  61. package/dist/models/notification.d.ts +61 -25
  62. package/dist/models/notification.d.ts.map +1 -1
  63. package/dist/models/school.d.ts +349 -133
  64. package/dist/models/school.d.ts.map +1 -1
  65. package/dist/models/section.d.ts +216 -72
  66. package/dist/models/section.d.ts.map +1 -1
  67. package/dist/models/tag.d.ts +156 -48
  68. package/dist/models/tag.d.ts.map +1 -1
  69. package/dist/models/user.d.ts +82 -28
  70. package/dist/models/user.d.ts.map +1 -1
  71. package/dist/models/worksheet.d.ts +1023 -410
  72. package/dist/models/worksheet.d.ts.map +1 -1
  73. package/dist/models/worksheet.js +19 -7
  74. package/dist/models/worksheet.js.map +1 -1
  75. package/dist/pipelines/aiLabChat.d.ts +0 -8
  76. package/dist/pipelines/aiLabChat.d.ts.map +1 -1
  77. package/dist/pipelines/aiLabChat.js +50 -67
  78. package/dist/pipelines/aiLabChat.js.map +1 -1
  79. package/dist/pipelines/aiLabChatContract.d.ts +393 -388
  80. package/dist/pipelines/aiLabChatContract.d.ts.map +1 -1
  81. package/dist/pipelines/aiLabChatContract.js +63 -69
  82. package/dist/pipelines/aiLabChatContract.js.map +1 -1
  83. package/dist/pipelines/aiNewtonChat.d.ts.map +1 -1
  84. package/dist/pipelines/aiNewtonChat.js +41 -41
  85. package/dist/pipelines/aiNewtonChat.js.map +1 -1
  86. package/dist/pipelines/gradeWorksheet.d.ts +8 -8
  87. package/dist/pipelines/gradeWorksheet.d.ts.map +1 -1
  88. package/dist/pipelines/gradeWorksheet.js +59 -14
  89. package/dist/pipelines/gradeWorksheet.js.map +1 -1
  90. package/dist/pipelines/labChatPrompt.d.ts +10 -8
  91. package/dist/pipelines/labChatPrompt.d.ts.map +1 -1
  92. package/dist/pipelines/labChatPrompt.js +47 -67
  93. package/dist/pipelines/labChatPrompt.js.map +1 -1
  94. package/dist/pipelines/pdfToWorksheet.d.ts +2 -2
  95. package/dist/routers/_app.d.ts +2268 -1898
  96. package/dist/routers/_app.d.ts.map +1 -1
  97. package/dist/routers/_app.js +4 -2
  98. package/dist/routers/_app.js.map +1 -1
  99. package/dist/routers/admin.d.ts +13 -13
  100. package/dist/routers/agenda.d.ts +18 -18
  101. package/dist/routers/announcement.d.ts +32 -28
  102. package/dist/routers/announcement.d.ts.map +1 -1
  103. package/dist/routers/announcement.js +6 -5
  104. package/dist/routers/announcement.js.map +1 -1
  105. package/dist/routers/assignment.d.ts +335 -327
  106. package/dist/routers/assignment.d.ts.map +1 -1
  107. package/dist/routers/assignment.js +4 -4
  108. package/dist/routers/assignment.js.map +1 -1
  109. package/dist/routers/attendance.d.ts +10 -10
  110. package/dist/routers/auth.d.ts +2 -2
  111. package/dist/routers/class.d.ts +170 -147
  112. package/dist/routers/class.d.ts.map +1 -1
  113. package/dist/routers/comment.d.ts +40 -16
  114. package/dist/routers/comment.d.ts.map +1 -1
  115. package/dist/routers/comment.js +6 -3
  116. package/dist/routers/comment.js.map +1 -1
  117. package/dist/routers/conversation.d.ts +17 -17
  118. package/dist/routers/department.d.ts +34 -34
  119. package/dist/routers/discussion.d.ts +65 -53
  120. package/dist/routers/discussion.d.ts.map +1 -1
  121. package/dist/routers/discussion.js +6 -2
  122. package/dist/routers/discussion.js.map +1 -1
  123. package/dist/routers/embedding.d.ts +69 -0
  124. package/dist/routers/embedding.d.ts.map +1 -0
  125. package/dist/routers/embedding.js +143 -0
  126. package/dist/routers/embedding.js.map +1 -0
  127. package/dist/routers/event.d.ts +39 -39
  128. package/dist/routers/file.d.ts +12 -12
  129. package/dist/routers/folder.d.ts +38 -38
  130. package/dist/routers/labChat.d.ts +19 -19
  131. package/dist/routers/marketing.d.ts +2 -2
  132. package/dist/routers/message.d.ts +13 -13
  133. package/dist/routers/newtonChat.d.ts +4 -4
  134. package/dist/routers/notifications.d.ts +9 -9
  135. package/dist/routers/permissions.d.ts +14 -14
  136. package/dist/routers/school.d.ts +55 -55
  137. package/dist/routers/search.d.ts +22 -1
  138. package/dist/routers/search.d.ts.map +1 -1
  139. package/dist/routers/search.js +9 -3
  140. package/dist/routers/search.js.map +1 -1
  141. package/dist/routers/section.d.ts +4 -4
  142. package/dist/routers/studentProgress.d.ts +1 -1
  143. package/dist/routers/tag.d.ts +7 -7
  144. package/dist/routers/user.d.ts +10 -10
  145. package/dist/routers/worksheet.d.ts +97 -56
  146. package/dist/routers/worksheet.d.ts.map +1 -1
  147. package/dist/routers/worksheet.js +28 -2
  148. package/dist/routers/worksheet.js.map +1 -1
  149. package/dist/routes/aiStream.d.ts +2 -0
  150. package/dist/routes/aiStream.d.ts.map +1 -0
  151. package/dist/routes/aiStream.js +696 -0
  152. package/dist/routes/aiStream.js.map +1 -0
  153. package/dist/seedDatabase.d.ts +2 -2
  154. package/dist/seedDatabase.js +6 -6
  155. package/dist/seedDatabase.js.map +1 -1
  156. package/dist/services/adminInstitution.d.ts +8 -8
  157. package/dist/services/adminRunJob.d.ts +4 -4
  158. package/dist/services/agenda.d.ts +18 -18
  159. package/dist/services/aiChatStream.d.ts +68 -0
  160. package/dist/services/aiChatStream.d.ts.map +1 -0
  161. package/dist/services/aiChatStream.js +157 -0
  162. package/dist/services/aiChatStream.js.map +1 -0
  163. package/dist/services/aiModifierTools.d.ts +32 -0
  164. package/dist/services/aiModifierTools.d.ts.map +1 -0
  165. package/dist/services/aiModifierTools.js +165 -0
  166. package/dist/services/aiModifierTools.js.map +1 -0
  167. package/dist/services/aiProposalTools.d.ts +32 -0
  168. package/dist/services/aiProposalTools.d.ts.map +1 -0
  169. package/dist/services/aiProposalTools.js +207 -0
  170. package/dist/services/aiProposalTools.js.map +1 -0
  171. package/dist/services/aiStream.d.ts +22 -0
  172. package/dist/services/aiStream.d.ts.map +1 -0
  173. package/dist/services/aiStream.js +142 -0
  174. package/dist/services/aiStream.js.map +1 -0
  175. package/dist/services/aiTools.d.ts +16 -0
  176. package/dist/services/aiTools.d.ts.map +1 -0
  177. package/dist/services/aiTools.js +271 -0
  178. package/dist/services/aiTools.js.map +1 -0
  179. package/dist/services/announcement.d.ts +12 -12
  180. package/dist/services/announcement.d.ts.map +1 -1
  181. package/dist/services/announcement.js +7 -2
  182. package/dist/services/announcement.js.map +1 -1
  183. package/dist/services/assignment.d.ts +293 -293
  184. package/dist/services/assignment.d.ts.map +1 -1
  185. package/dist/services/assignment.js +36 -15
  186. package/dist/services/assignment.js.map +1 -1
  187. package/dist/services/attendance.d.ts +10 -10
  188. package/dist/services/auth.d.ts +2 -2
  189. package/dist/services/class.d.ts +161 -138
  190. package/dist/services/class.d.ts.map +1 -1
  191. package/dist/services/class.js +25 -4
  192. package/dist/services/class.js.map +1 -1
  193. package/dist/services/comment.d.ts +34 -16
  194. package/dist/services/comment.d.ts.map +1 -1
  195. package/dist/services/comment.js +23 -2
  196. package/dist/services/comment.js.map +1 -1
  197. package/dist/services/conversation.d.ts +17 -17
  198. package/dist/services/conversation.d.ts.map +1 -1
  199. package/dist/services/conversation.js +9 -7
  200. package/dist/services/conversation.js.map +1 -1
  201. package/dist/services/department.d.ts +33 -33
  202. package/dist/services/discussion.d.ts +58 -58
  203. package/dist/services/discussion.d.ts.map +1 -1
  204. package/dist/services/discussion.js +8 -8
  205. package/dist/services/discussion.js.map +1 -1
  206. package/dist/services/discussionSummary.d.ts +21 -0
  207. package/dist/services/discussionSummary.d.ts.map +1 -0
  208. package/dist/services/discussionSummary.js +179 -0
  209. package/dist/services/discussionSummary.js.map +1 -0
  210. package/dist/services/embedding.d.ts +67 -0
  211. package/dist/services/embedding.d.ts.map +1 -0
  212. package/dist/services/embedding.js +226 -0
  213. package/dist/services/embedding.js.map +1 -0
  214. package/dist/services/event.d.ts +37 -37
  215. package/dist/services/file.d.ts +24 -24
  216. package/dist/services/folder.d.ts +36 -36
  217. package/dist/services/labChat.d.ts +19 -19
  218. package/dist/services/marketing.d.ts +2 -2
  219. package/dist/services/message.d.ts +11 -11
  220. package/dist/services/message.d.ts.map +1 -1
  221. package/dist/services/message.js +2 -2
  222. package/dist/services/message.js.map +1 -1
  223. package/dist/services/newtonChat.d.ts +4 -4
  224. package/dist/services/notification.d.ts +9 -9
  225. package/dist/services/notification.d.ts.map +1 -1
  226. package/dist/services/permissions.d.ts +14 -14
  227. package/dist/services/school.d.ts +50 -50
  228. package/dist/services/search.d.ts +12 -0
  229. package/dist/services/search.d.ts.map +1 -1
  230. package/dist/services/search.js +120 -2
  231. package/dist/services/search.js.map +1 -1
  232. package/dist/services/section.d.ts +3 -3
  233. package/dist/services/tag.d.ts +4 -4
  234. package/dist/services/user.d.ts +4 -4
  235. package/dist/services/user.d.ts.map +1 -1
  236. package/dist/services/user.js +10 -15
  237. package/dist/services/user.js.map +1 -1
  238. package/dist/services/worksheet.d.ts +62 -47
  239. package/dist/services/worksheet.d.ts.map +1 -1
  240. package/dist/services/worksheet.js +11 -4
  241. package/dist/services/worksheet.js.map +1 -1
  242. package/dist/utils/streamBroadcast.d.ts +11 -0
  243. package/dist/utils/streamBroadcast.d.ts.map +1 -0
  244. package/dist/utils/streamBroadcast.js +32 -0
  245. package/dist/utils/streamBroadcast.js.map +1 -0
  246. package/dist/workers/connection.d.ts +15 -0
  247. package/dist/workers/connection.d.ts.map +1 -1
  248. package/dist/workers/connection.js +20 -2
  249. package/dist/workers/connection.js.map +1 -1
  250. package/dist/workers/index.js +4 -2
  251. package/dist/workers/index.js.map +1 -1
  252. package/dist/workers/processors/createRunJobWorker.d.ts.map +1 -1
  253. package/dist/workers/processors/createRunJobWorker.js +31 -8
  254. package/dist/workers/processors/createRunJobWorker.js.map +1 -1
  255. package/dist/workers/processors/embedContent.d.ts +8 -0
  256. package/dist/workers/processors/embedContent.d.ts.map +1 -0
  257. package/dist/workers/processors/embedContent.js +76 -0
  258. package/dist/workers/processors/embedContent.js.map +1 -0
  259. package/dist/workers/queues.d.ts +6 -0
  260. package/dist/workers/queues.d.ts.map +1 -1
  261. package/dist/workers/queues.js +5 -3
  262. package/dist/workers/queues.js.map +1 -1
  263. package/package.json +5 -1
  264. package/prisma/migrations/20260609215135_init/migration.sql +1412 -0
  265. package/prisma/migrations/20260610130000_add_worksheet_tags/migration.sql +13 -0
  266. package/prisma/schema.prisma +39 -7
  267. package/src/index.ts +4 -0
  268. package/src/lib/config/cors.ts +32 -9
  269. package/src/lib/config/env.ts +6 -0
  270. package/src/lib/googleCloudStorage.ts +21 -0
  271. package/src/lib/prisma.ts +40 -1
  272. package/src/models/class.ts +10 -3
  273. package/src/models/comment.ts +1 -0
  274. package/src/models/conversation.ts +12 -0
  275. package/src/models/worksheet.ts +16 -7
  276. package/src/pipelines/aiLabChat.ts +54 -79
  277. package/src/pipelines/aiLabChatContract.ts +69 -69
  278. package/src/pipelines/aiNewtonChat.ts +46 -43
  279. package/src/pipelines/gradeWorksheet.ts +66 -15
  280. package/src/pipelines/labChatPrompt.ts +63 -88
  281. package/src/routers/_app.ts +2 -0
  282. package/src/routers/announcement.ts +4 -3
  283. package/src/routers/assignment.ts +2 -2
  284. package/src/routers/comment.ts +5 -0
  285. package/src/routers/discussion.ts +7 -0
  286. package/src/routers/embedding.ts +159 -0
  287. package/src/routers/search.ts +10 -1
  288. package/src/routers/worksheet.ts +29 -0
  289. package/src/routes/aiStream.ts +789 -0
  290. package/src/seedDatabase.ts +4 -4
  291. package/src/services/aiChatStream.ts +219 -0
  292. package/src/services/aiModifierTools.ts +188 -0
  293. package/src/services/aiProposalTools.ts +272 -0
  294. package/src/services/aiStream.ts +175 -0
  295. package/src/services/aiTools.ts +290 -0
  296. package/src/services/announcement.ts +7 -0
  297. package/src/services/assignment.ts +36 -14
  298. package/src/services/class.ts +30 -2
  299. package/src/services/comment.ts +22 -0
  300. package/src/services/conversation.ts +9 -4
  301. package/src/services/discussion.ts +9 -8
  302. package/src/services/discussionSummary.ts +226 -0
  303. package/src/services/embedding.ts +285 -0
  304. package/src/services/message.ts +2 -2
  305. package/src/services/search.ts +138 -0
  306. package/src/services/user.ts +9 -17
  307. package/src/services/worksheet.ts +10 -2
  308. package/src/utils/streamBroadcast.ts +48 -0
  309. package/src/workers/connection.ts +19 -0
  310. package/src/workers/index.ts +2 -0
  311. package/src/workers/processors/createRunJobWorker.ts +32 -6
  312. package/src/workers/processors/embedContent.ts +90 -0
  313. package/src/workers/queues.ts +5 -1
  314. package/tests/integration/routers/conversation.test.ts +9 -7
  315. package/tests/unit/pipelines/aiLabChatContract.test.ts +38 -21
  316. package/tests/unit/pipelines/labChatPrompt.test.ts +23 -36
  317. package/prisma/migrations/20250807062924_init/migration.sql +0 -436
  318. package/prisma/migrations/20250919063704_init2/migration.sql +0 -24
  319. package/prisma/migrations/20250920143543_add_profile_fields/migration.sql +0 -15
  320. package/prisma/migrations/20250922165147_add_chat_models/migration.sql +0 -68
  321. package/prisma/migrations/20250922165314_add_chat_roles/migration.sql +0 -5
  322. package/prisma/migrations/20250922171242_refactor_notification_system/migration.sql +0 -20
  323. package/prisma/migrations/20250922172208_add_mentions_system/migration.sql +0 -21
  324. package/prisma/migrations/20250925072732_add_lab_chat_system/migration.sql +0 -25
  325. package/prisma/migrations/20251020151505_add_upload_tracking_fields/migration.sql +0 -57
  326. package/prisma/migrations/20251109122857_annuoncements_comments/migration.sql +0 -30
  327. package/prisma/migrations/20251109135555_reactions_announcements_comments/migration.sql +0 -35
  328. package/prisma/migrations/20260410124000_add_submission_recommendation_state/migration.sql +0 -14
  329. package/prisma/migrations/20260415103500_add_session_type/migration.sql +0 -33
  330. package/prisma/migrations/20260415133000_add_ai_usage_logs/migration.sql +0 -19
  331. package/prisma/migrations/20260417083000_add_conversation_member_hidden_at/migration.sql +0 -2
  332. package/prisma/migrations/20260502230500_assignment_submission_comments/migration.sql +0 -60
  333. package/prisma/migrations/20260504071500_school_memberships/migration.sql +0 -81
  334. package/prisma/migrations/20260506162500_consolidate_run_job_and_unify_job_status/migration.sql +0 -166
  335. package/prisma/migrations/20260509220000_institution_overhaul/migration.sql +0 -184
  336. package/prisma/migrations/20260510170000_add_folder_permissions/migration.sql +0 -93
  337. package/prisma/migrations/20260510183000_add_discussions/migration.sql +0 -151
  338. /package/.github/workflows/{npm.yml → npm-publish.yml} +0 -0
@@ -1,13 +1,39 @@
1
1
  /** @returns Assignment by ID. */
2
- export declare function findAssignmentById(id: string): import(".prisma/client").Prisma.Prisma__AssignmentClient<{
2
+ export declare function findAssignmentById(id: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
3
+ result: {
4
+ userProfile: {
5
+ profilePicture: () => {
6
+ needs: {
7
+ profilePicture: true;
8
+ };
9
+ compute(profile: {
10
+ profilePicture: string | null;
11
+ }): string | null;
12
+ };
13
+ profilePictureThumbnail: () => {
14
+ needs: {
15
+ profilePictureThumbnail: true;
16
+ };
17
+ compute(profile: {
18
+ profilePictureThumbnail: string | null;
19
+ }): string | null;
20
+ };
21
+ };
22
+ };
23
+ model: {};
24
+ query: {};
25
+ client: {};
26
+ }, {}>, "Assignment", "findUnique", null> & import("@prisma/client/runtime/library.js").PrismaPromise<{
3
27
  type: import(".prisma/client").$Enums.AssignmentType;
4
28
  id: string;
5
29
  createdAt: Date | null;
6
30
  classId: string;
7
- modifiedAt: Date | null;
8
31
  title: string;
9
- instructions: string;
10
32
  dueDate: Date;
33
+ maxGrade: number | null;
34
+ eventId: string | null;
35
+ instructions: string;
36
+ modifiedAt: Date | null;
11
37
  teacherId: string;
12
38
  acceptFiles: boolean;
13
39
  acceptExtendedResponse: boolean;
@@ -16,30 +42,54 @@ export declare function findAssignmentById(id: string): import(".prisma/client")
16
42
  aiPolicyLevel: number;
17
43
  sectionId: string | null;
18
44
  graded: boolean;
19
- maxGrade: number | null;
20
45
  weight: number;
21
46
  inProgress: boolean;
22
47
  template: boolean;
23
- eventId: string | null;
24
48
  markSchemeId: string | null;
25
49
  order: number | null;
26
50
  gradingBoundaryId: string | null;
27
- } | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
28
- datasources: {
29
- db: {
30
- url: string;
51
+ } | null>;
52
+ /** @returns Assignment with full details for get. */
53
+ export declare function findAssignmentWithDetails(id: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
54
+ result: {
55
+ userProfile: {
56
+ profilePicture: () => {
57
+ needs: {
58
+ profilePicture: true;
59
+ };
60
+ compute(profile: {
61
+ profilePicture: string | null;
62
+ }): string | null;
63
+ };
64
+ profilePictureThumbnail: () => {
65
+ needs: {
66
+ profilePictureThumbnail: true;
67
+ };
68
+ compute(profile: {
69
+ profilePictureThumbnail: string | null;
70
+ }): string | null;
71
+ };
31
72
  };
32
73
  };
33
- }>;
34
- /** @returns Assignment with full details for get. */
35
- export declare function findAssignmentWithDetails(id: string): import(".prisma/client").Prisma.Prisma__AssignmentClient<({
74
+ model: {};
75
+ query: {};
76
+ client: {};
77
+ }, {}>, "Assignment", "findUnique", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
36
78
  class: {
37
- name: string;
38
79
  id: string;
80
+ name: string;
39
81
  };
82
+ markScheme: {
83
+ id: string;
84
+ structured: string;
85
+ } | null;
86
+ gradingBoundary: {
87
+ id: string;
88
+ structured: string;
89
+ } | null;
40
90
  section: {
41
- name: string;
42
91
  id: string;
92
+ name: string;
43
93
  } | null;
44
94
  submissions: {
45
95
  student: {
@@ -47,17 +97,9 @@ export declare function findAssignmentWithDetails(id: string): import(".prisma/c
47
97
  username: string;
48
98
  };
49
99
  }[];
50
- markScheme: {
51
- id: string;
52
- structured: string;
53
- } | null;
54
- gradingBoundary: {
55
- id: string;
56
- structured: string;
57
- } | null;
58
100
  worksheets: {
59
- name: string;
60
101
  id: string;
102
+ name: string;
61
103
  }[];
62
104
  teacher: {
63
105
  id: string;
@@ -66,19 +108,19 @@ export declare function findAssignmentWithDetails(id: string): import(".prisma/c
66
108
  attachments: {
67
109
  path: string;
68
110
  type: string;
69
- name: string;
70
111
  id: string;
112
+ name: string;
71
113
  size: number | null;
72
114
  uploadedAt: Date | null;
73
115
  thumbnailId: string | null;
74
116
  }[];
75
117
  eventAttached: {
76
- name: string | null;
77
118
  id: string;
119
+ location: string | null;
120
+ name: string | null;
78
121
  color: string | null;
79
122
  startTime: Date;
80
123
  endTime: Date;
81
- location: string | null;
82
124
  remarks: string | null;
83
125
  } | null;
84
126
  } & {
@@ -86,10 +128,12 @@ export declare function findAssignmentWithDetails(id: string): import(".prisma/c
86
128
  id: string;
87
129
  createdAt: Date | null;
88
130
  classId: string;
89
- modifiedAt: Date | null;
90
131
  title: string;
91
- instructions: string;
92
132
  dueDate: Date;
133
+ maxGrade: number | null;
134
+ eventId: string | null;
135
+ instructions: string;
136
+ modifiedAt: Date | null;
93
137
  teacherId: string;
94
138
  acceptFiles: boolean;
95
139
  acceptExtendedResponse: boolean;
@@ -98,34 +142,53 @@ export declare function findAssignmentWithDetails(id: string): import(".prisma/c
98
142
  aiPolicyLevel: number;
99
143
  sectionId: string | null;
100
144
  graded: boolean;
101
- maxGrade: number | null;
102
145
  weight: number;
103
146
  inProgress: boolean;
104
147
  template: boolean;
105
- eventId: string | null;
106
148
  markSchemeId: string | null;
107
149
  order: number | null;
108
150
  gradingBoundaryId: string | null;
109
- }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
110
- datasources: {
111
- db: {
112
- url: string;
151
+ }) | null>;
152
+ /** @returns Assignment with attachments for delete. */
153
+ export declare function findAssignmentForDelete(id: string, teacherId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
154
+ result: {
155
+ userProfile: {
156
+ profilePicture: () => {
157
+ needs: {
158
+ profilePicture: true;
159
+ };
160
+ compute(profile: {
161
+ profilePicture: string | null;
162
+ }): string | null;
163
+ };
164
+ profilePictureThumbnail: () => {
165
+ needs: {
166
+ profilePictureThumbnail: true;
167
+ };
168
+ compute(profile: {
169
+ profilePictureThumbnail: string | null;
170
+ }): string | null;
171
+ };
113
172
  };
114
173
  };
115
- }>;
116
- /** @returns Assignment with attachments for delete. */
117
- export declare function findAssignmentForDelete(id: string, teacherId: string): import(".prisma/client").Prisma.Prisma__AssignmentClient<({
174
+ model: {};
175
+ query: {};
176
+ client: {};
177
+ }, {}>, "Assignment", "findFirst", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
118
178
  submissions: ({
119
- annotations: ({
179
+ attachments: ({
120
180
  thumbnail: {
121
181
  path: string;
122
182
  type: string;
123
- name: string;
124
183
  id: string;
125
184
  userId: string | null;
126
- folderId: string | null;
185
+ name: string;
127
186
  size: number | null;
128
187
  uploadedAt: Date | null;
188
+ assignmentId: string | null;
189
+ submissionId: string | null;
190
+ thumbnailId: string | null;
191
+ annotationId: string | null;
129
192
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
130
193
  uploadUrl: string | null;
131
194
  uploadExpiresAt: Date | null;
@@ -135,11 +198,8 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
135
198
  uploadRetryCount: number;
136
199
  isOrphaned: boolean;
137
200
  cleanupAt: Date | null;
138
- thumbnailId: string | null;
139
- assignmentId: string | null;
140
- submissionId: string | null;
141
- annotationId: string | null;
142
201
  classDraftId: string | null;
202
+ folderId: string | null;
143
203
  conversationId: string | null;
144
204
  messageId: string | null;
145
205
  announcementId: string | null;
@@ -150,12 +210,15 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
150
210
  } & {
151
211
  path: string;
152
212
  type: string;
153
- name: string;
154
213
  id: string;
155
214
  userId: string | null;
156
- folderId: string | null;
215
+ name: string;
157
216
  size: number | null;
158
217
  uploadedAt: Date | null;
218
+ assignmentId: string | null;
219
+ submissionId: string | null;
220
+ thumbnailId: string | null;
221
+ annotationId: string | null;
159
222
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
160
223
  uploadUrl: string | null;
161
224
  uploadExpiresAt: Date | null;
@@ -165,11 +228,8 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
165
228
  uploadRetryCount: number;
166
229
  isOrphaned: boolean;
167
230
  cleanupAt: Date | null;
168
- thumbnailId: string | null;
169
- assignmentId: string | null;
170
- submissionId: string | null;
171
- annotationId: string | null;
172
231
  classDraftId: string | null;
232
+ folderId: string | null;
173
233
  conversationId: string | null;
174
234
  messageId: string | null;
175
235
  announcementId: string | null;
@@ -177,16 +237,19 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
177
237
  discussionReplyId: string | null;
178
238
  schoolDevelopementProgramId: string | null;
179
239
  })[];
180
- attachments: ({
240
+ annotations: ({
181
241
  thumbnail: {
182
242
  path: string;
183
243
  type: string;
184
- name: string;
185
244
  id: string;
186
245
  userId: string | null;
187
- folderId: string | null;
246
+ name: string;
188
247
  size: number | null;
189
248
  uploadedAt: Date | null;
249
+ assignmentId: string | null;
250
+ submissionId: string | null;
251
+ thumbnailId: string | null;
252
+ annotationId: string | null;
190
253
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
191
254
  uploadUrl: string | null;
192
255
  uploadExpiresAt: Date | null;
@@ -196,11 +259,8 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
196
259
  uploadRetryCount: number;
197
260
  isOrphaned: boolean;
198
261
  cleanupAt: Date | null;
199
- thumbnailId: string | null;
200
- assignmentId: string | null;
201
- submissionId: string | null;
202
- annotationId: string | null;
203
262
  classDraftId: string | null;
263
+ folderId: string | null;
204
264
  conversationId: string | null;
205
265
  messageId: string | null;
206
266
  announcementId: string | null;
@@ -211,12 +271,15 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
211
271
  } & {
212
272
  path: string;
213
273
  type: string;
214
- name: string;
215
274
  id: string;
216
275
  userId: string | null;
217
- folderId: string | null;
276
+ name: string;
218
277
  size: number | null;
219
278
  uploadedAt: Date | null;
279
+ assignmentId: string | null;
280
+ submissionId: string | null;
281
+ thumbnailId: string | null;
282
+ annotationId: string | null;
220
283
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
221
284
  uploadUrl: string | null;
222
285
  uploadExpiresAt: Date | null;
@@ -226,11 +289,8 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
226
289
  uploadRetryCount: number;
227
290
  isOrphaned: boolean;
228
291
  cleanupAt: Date | null;
229
- thumbnailId: string | null;
230
- assignmentId: string | null;
231
- submissionId: string | null;
232
- annotationId: string | null;
233
292
  classDraftId: string | null;
293
+ folderId: string | null;
234
294
  conversationId: string | null;
235
295
  messageId: string | null;
236
296
  announcementId: string | null;
@@ -259,12 +319,15 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
259
319
  thumbnail: {
260
320
  path: string;
261
321
  type: string;
262
- name: string;
263
322
  id: string;
264
323
  userId: string | null;
265
- folderId: string | null;
324
+ name: string;
266
325
  size: number | null;
267
326
  uploadedAt: Date | null;
327
+ assignmentId: string | null;
328
+ submissionId: string | null;
329
+ thumbnailId: string | null;
330
+ annotationId: string | null;
268
331
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
269
332
  uploadUrl: string | null;
270
333
  uploadExpiresAt: Date | null;
@@ -274,11 +337,8 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
274
337
  uploadRetryCount: number;
275
338
  isOrphaned: boolean;
276
339
  cleanupAt: Date | null;
277
- thumbnailId: string | null;
278
- assignmentId: string | null;
279
- submissionId: string | null;
280
- annotationId: string | null;
281
340
  classDraftId: string | null;
341
+ folderId: string | null;
282
342
  conversationId: string | null;
283
343
  messageId: string | null;
284
344
  announcementId: string | null;
@@ -289,12 +349,15 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
289
349
  } & {
290
350
  path: string;
291
351
  type: string;
292
- name: string;
293
352
  id: string;
294
353
  userId: string | null;
295
- folderId: string | null;
354
+ name: string;
296
355
  size: number | null;
297
356
  uploadedAt: Date | null;
357
+ assignmentId: string | null;
358
+ submissionId: string | null;
359
+ thumbnailId: string | null;
360
+ annotationId: string | null;
298
361
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
299
362
  uploadUrl: string | null;
300
363
  uploadExpiresAt: Date | null;
@@ -304,11 +367,8 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
304
367
  uploadRetryCount: number;
305
368
  isOrphaned: boolean;
306
369
  cleanupAt: Date | null;
307
- thumbnailId: string | null;
308
- assignmentId: string | null;
309
- submissionId: string | null;
310
- annotationId: string | null;
311
370
  classDraftId: string | null;
371
+ folderId: string | null;
312
372
  conversationId: string | null;
313
373
  messageId: string | null;
314
374
  announcementId: string | null;
@@ -321,10 +381,12 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
321
381
  id: string;
322
382
  createdAt: Date | null;
323
383
  classId: string;
324
- modifiedAt: Date | null;
325
384
  title: string;
326
- instructions: string;
327
385
  dueDate: Date;
386
+ maxGrade: number | null;
387
+ eventId: string | null;
388
+ instructions: string;
389
+ modifiedAt: Date | null;
328
390
  teacherId: string;
329
391
  acceptFiles: boolean;
330
392
  acceptExtendedResponse: boolean;
@@ -333,44 +395,60 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
333
395
  aiPolicyLevel: number;
334
396
  sectionId: string | null;
335
397
  graded: boolean;
336
- maxGrade: number | null;
337
398
  weight: number;
338
399
  inProgress: boolean;
339
400
  template: boolean;
340
- eventId: string | null;
341
401
  markSchemeId: string | null;
342
402
  order: number | null;
343
403
  gradingBoundaryId: string | null;
344
- }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
345
- datasources: {
346
- db: {
347
- url: string;
348
- };
349
- };
350
- }>;
404
+ }) | null>;
351
405
  /** @returns Assignments due today. */
352
- export declare function findAssignmentsDueToday(): import(".prisma/client").Prisma.PrismaPromise<{
406
+ export declare function findAssignmentsDueToday(): import("@prisma/client/runtime/library.js").PrismaPromise<{
353
407
  type: import(".prisma/client").$Enums.AssignmentType;
354
- id: string;
355
408
  class: {
356
- name: string;
357
409
  id: string;
410
+ name: string;
358
411
  };
412
+ id: string;
359
413
  title: string;
360
414
  dueDate: Date;
361
- graded: boolean;
362
415
  maxGrade: number | null;
416
+ graded: boolean;
363
417
  }[]>;
364
418
  /** @returns Submission by assignment and student. */
365
- export declare function findSubmissionByAssignmentAndStudent(assignmentId: string, studentId: string): import(".prisma/client").Prisma.Prisma__SubmissionClient<({
419
+ export declare function findSubmissionByAssignmentAndStudent(assignmentId: string, studentId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
420
+ result: {
421
+ userProfile: {
422
+ profilePicture: () => {
423
+ needs: {
424
+ profilePicture: true;
425
+ };
426
+ compute(profile: {
427
+ profilePicture: string | null;
428
+ }): string | null;
429
+ };
430
+ profilePictureThumbnail: () => {
431
+ needs: {
432
+ profilePictureThumbnail: true;
433
+ };
434
+ compute(profile: {
435
+ profilePictureThumbnail: string | null;
436
+ }): string | null;
437
+ };
438
+ };
439
+ };
440
+ model: {};
441
+ query: {};
442
+ client: {};
443
+ }, {}>, "Submission", "findFirst", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
366
444
  assignment: {
367
445
  class: {
368
- name: string;
446
+ section: string;
369
447
  id: string;
448
+ name: string;
370
449
  schoolId: string | null;
371
- subject: string;
372
450
  color: string | null;
373
- section: string;
451
+ subject: string;
374
452
  syllabus: string | null;
375
453
  departmentId: string | null;
376
454
  discussionsEnabled: boolean;
@@ -386,18 +464,20 @@ export declare function findSubmissionByAssignmentAndStudent(assignmentId: strin
386
464
  structured: string;
387
465
  } | null;
388
466
  worksheets: {
389
- name: string;
390
467
  id: string;
468
+ name: string;
391
469
  }[];
392
470
  } & {
393
471
  type: import(".prisma/client").$Enums.AssignmentType;
394
472
  id: string;
395
473
  createdAt: Date | null;
396
474
  classId: string;
397
- modifiedAt: Date | null;
398
475
  title: string;
399
- instructions: string;
400
476
  dueDate: Date;
477
+ maxGrade: number | null;
478
+ eventId: string | null;
479
+ instructions: string;
480
+ modifiedAt: Date | null;
401
481
  teacherId: string;
402
482
  acceptFiles: boolean;
403
483
  acceptExtendedResponse: boolean;
@@ -406,24 +486,25 @@ export declare function findSubmissionByAssignmentAndStudent(assignmentId: strin
406
486
  aiPolicyLevel: number;
407
487
  sectionId: string | null;
408
488
  graded: boolean;
409
- maxGrade: number | null;
410
489
  weight: number;
411
490
  inProgress: boolean;
412
491
  template: boolean;
413
- eventId: string | null;
414
492
  markSchemeId: string | null;
415
493
  order: number | null;
416
494
  gradingBoundaryId: string | null;
417
495
  };
418
- annotations: {
496
+ attachments: {
419
497
  path: string;
420
498
  type: string;
421
- name: string;
422
499
  id: string;
423
500
  userId: string | null;
424
- folderId: string | null;
501
+ name: string;
425
502
  size: number | null;
426
503
  uploadedAt: Date | null;
504
+ assignmentId: string | null;
505
+ submissionId: string | null;
506
+ thumbnailId: string | null;
507
+ annotationId: string | null;
427
508
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
428
509
  uploadUrl: string | null;
429
510
  uploadExpiresAt: Date | null;
@@ -433,11 +514,8 @@ export declare function findSubmissionByAssignmentAndStudent(assignmentId: strin
433
514
  uploadRetryCount: number;
434
515
  isOrphaned: boolean;
435
516
  cleanupAt: Date | null;
436
- thumbnailId: string | null;
437
- assignmentId: string | null;
438
- submissionId: string | null;
439
- annotationId: string | null;
440
517
  classDraftId: string | null;
518
+ folderId: string | null;
441
519
  conversationId: string | null;
442
520
  messageId: string | null;
443
521
  announcementId: string | null;
@@ -445,15 +523,34 @@ export declare function findSubmissionByAssignmentAndStudent(assignmentId: strin
445
523
  discussionReplyId: string | null;
446
524
  schoolDevelopementProgramId: string | null;
447
525
  }[];
448
- attachments: {
526
+ student: {
527
+ id: string;
528
+ username: string;
529
+ profile: {
530
+ id: string;
531
+ userId: string;
532
+ displayName: string | null;
533
+ bio: string | null;
534
+ location: string | null;
535
+ website: string | null;
536
+ createdAt: Date;
537
+ updatedAt: Date;
538
+ profilePicture: string | null;
539
+ profilePictureThumbnail: string | null;
540
+ } | null;
541
+ };
542
+ annotations: {
449
543
  path: string;
450
544
  type: string;
451
- name: string;
452
545
  id: string;
453
546
  userId: string | null;
454
- folderId: string | null;
547
+ name: string;
455
548
  size: number | null;
456
549
  uploadedAt: Date | null;
550
+ assignmentId: string | null;
551
+ submissionId: string | null;
552
+ thumbnailId: string | null;
553
+ annotationId: string | null;
457
554
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
458
555
  uploadUrl: string | null;
459
556
  uploadExpiresAt: Date | null;
@@ -463,11 +560,8 @@ export declare function findSubmissionByAssignmentAndStudent(assignmentId: strin
463
560
  uploadRetryCount: number;
464
561
  isOrphaned: boolean;
465
562
  cleanupAt: Date | null;
466
- thumbnailId: string | null;
467
- assignmentId: string | null;
468
- submissionId: string | null;
469
- annotationId: string | null;
470
563
  classDraftId: string | null;
564
+ folderId: string | null;
471
565
  conversationId: string | null;
472
566
  messageId: string | null;
473
567
  announcementId: string | null;
@@ -475,22 +569,6 @@ export declare function findSubmissionByAssignmentAndStudent(assignmentId: strin
475
569
  discussionReplyId: string | null;
476
570
  schoolDevelopementProgramId: string | null;
477
571
  }[];
478
- student: {
479
- id: string;
480
- username: string;
481
- profile: {
482
- id: string;
483
- createdAt: Date;
484
- updatedAt: Date;
485
- userId: string;
486
- location: string | null;
487
- displayName: string | null;
488
- bio: string | null;
489
- website: string | null;
490
- profilePicture: string | null;
491
- profilePictureThumbnail: string | null;
492
- } | null;
493
- };
494
572
  } & {
495
573
  id: string;
496
574
  createdAt: Date;
@@ -507,23 +585,41 @@ export declare function findSubmissionByAssignmentAndStudent(assignmentId: strin
507
585
  submittedAt: Date | null;
508
586
  submitted: boolean | null;
509
587
  returned: boolean | null;
510
- }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
511
- datasources: {
512
- db: {
513
- url: string;
588
+ }) | null>;
589
+ /** @returns Submission by ID for class member. */
590
+ export declare function findSubmissionByIdForClassMember(submissionId: string, classId: string, userId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
591
+ result: {
592
+ userProfile: {
593
+ profilePicture: () => {
594
+ needs: {
595
+ profilePicture: true;
596
+ };
597
+ compute(profile: {
598
+ profilePicture: string | null;
599
+ }): string | null;
600
+ };
601
+ profilePictureThumbnail: () => {
602
+ needs: {
603
+ profilePictureThumbnail: true;
604
+ };
605
+ compute(profile: {
606
+ profilePictureThumbnail: string | null;
607
+ }): string | null;
608
+ };
514
609
  };
515
610
  };
516
- }>;
517
- /** @returns Submission by ID for class member. */
518
- export declare function findSubmissionByIdForClassMember(submissionId: string, classId: string, userId: string): import(".prisma/client").Prisma.Prisma__SubmissionClient<({
611
+ model: {};
612
+ query: {};
613
+ client: {};
614
+ }, {}>, "Submission", "findFirst", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
519
615
  assignment: {
520
616
  class: {
521
- name: string;
617
+ section: string;
522
618
  id: string;
619
+ name: string;
523
620
  schoolId: string | null;
524
- subject: string;
525
621
  color: string | null;
526
- section: string;
622
+ subject: string;
527
623
  syllabus: string | null;
528
624
  departmentId: string | null;
529
625
  discussionsEnabled: boolean;
@@ -539,18 +635,20 @@ export declare function findSubmissionByIdForClassMember(submissionId: string, c
539
635
  structured: string;
540
636
  } | null;
541
637
  worksheets: {
542
- name: string;
543
638
  id: string;
639
+ name: string;
544
640
  }[];
545
641
  } & {
546
642
  type: import(".prisma/client").$Enums.AssignmentType;
547
643
  id: string;
548
644
  createdAt: Date | null;
549
645
  classId: string;
550
- modifiedAt: Date | null;
551
646
  title: string;
552
- instructions: string;
553
647
  dueDate: Date;
648
+ maxGrade: number | null;
649
+ eventId: string | null;
650
+ instructions: string;
651
+ modifiedAt: Date | null;
554
652
  teacherId: string;
555
653
  acceptFiles: boolean;
556
654
  acceptExtendedResponse: boolean;
@@ -559,24 +657,25 @@ export declare function findSubmissionByIdForClassMember(submissionId: string, c
559
657
  aiPolicyLevel: number;
560
658
  sectionId: string | null;
561
659
  graded: boolean;
562
- maxGrade: number | null;
563
660
  weight: number;
564
661
  inProgress: boolean;
565
662
  template: boolean;
566
- eventId: string | null;
567
663
  markSchemeId: string | null;
568
664
  order: number | null;
569
665
  gradingBoundaryId: string | null;
570
666
  };
571
- annotations: {
667
+ attachments: {
572
668
  path: string;
573
669
  type: string;
574
- name: string;
575
670
  id: string;
576
671
  userId: string | null;
577
- folderId: string | null;
672
+ name: string;
578
673
  size: number | null;
579
674
  uploadedAt: Date | null;
675
+ assignmentId: string | null;
676
+ submissionId: string | null;
677
+ thumbnailId: string | null;
678
+ annotationId: string | null;
580
679
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
581
680
  uploadUrl: string | null;
582
681
  uploadExpiresAt: Date | null;
@@ -586,11 +685,8 @@ export declare function findSubmissionByIdForClassMember(submissionId: string, c
586
685
  uploadRetryCount: number;
587
686
  isOrphaned: boolean;
588
687
  cleanupAt: Date | null;
589
- thumbnailId: string | null;
590
- assignmentId: string | null;
591
- submissionId: string | null;
592
- annotationId: string | null;
593
688
  classDraftId: string | null;
689
+ folderId: string | null;
594
690
  conversationId: string | null;
595
691
  messageId: string | null;
596
692
  announcementId: string | null;
@@ -598,15 +694,34 @@ export declare function findSubmissionByIdForClassMember(submissionId: string, c
598
694
  discussionReplyId: string | null;
599
695
  schoolDevelopementProgramId: string | null;
600
696
  }[];
601
- attachments: {
697
+ student: {
698
+ id: string;
699
+ username: string;
700
+ profile: {
701
+ id: string;
702
+ userId: string;
703
+ displayName: string | null;
704
+ bio: string | null;
705
+ location: string | null;
706
+ website: string | null;
707
+ createdAt: Date;
708
+ updatedAt: Date;
709
+ profilePicture: string | null;
710
+ profilePictureThumbnail: string | null;
711
+ } | null;
712
+ };
713
+ annotations: {
602
714
  path: string;
603
715
  type: string;
604
- name: string;
605
716
  id: string;
606
717
  userId: string | null;
607
- folderId: string | null;
718
+ name: string;
608
719
  size: number | null;
609
720
  uploadedAt: Date | null;
721
+ assignmentId: string | null;
722
+ submissionId: string | null;
723
+ thumbnailId: string | null;
724
+ annotationId: string | null;
610
725
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
611
726
  uploadUrl: string | null;
612
727
  uploadExpiresAt: Date | null;
@@ -616,11 +731,8 @@ export declare function findSubmissionByIdForClassMember(submissionId: string, c
616
731
  uploadRetryCount: number;
617
732
  isOrphaned: boolean;
618
733
  cleanupAt: Date | null;
619
- thumbnailId: string | null;
620
- assignmentId: string | null;
621
- submissionId: string | null;
622
- annotationId: string | null;
623
734
  classDraftId: string | null;
735
+ folderId: string | null;
624
736
  conversationId: string | null;
625
737
  messageId: string | null;
626
738
  announcementId: string | null;
@@ -628,22 +740,6 @@ export declare function findSubmissionByIdForClassMember(submissionId: string, c
628
740
  discussionReplyId: string | null;
629
741
  schoolDevelopementProgramId: string | null;
630
742
  }[];
631
- student: {
632
- id: string;
633
- username: string;
634
- profile: {
635
- id: string;
636
- createdAt: Date;
637
- updatedAt: Date;
638
- userId: string;
639
- location: string | null;
640
- displayName: string | null;
641
- bio: string | null;
642
- website: string | null;
643
- profilePicture: string | null;
644
- profilePictureThumbnail: string | null;
645
- } | null;
646
- };
647
743
  } & {
648
744
  id: string;
649
745
  createdAt: Date;
@@ -660,23 +756,41 @@ export declare function findSubmissionByIdForClassMember(submissionId: string, c
660
756
  submittedAt: Date | null;
661
757
  submitted: boolean | null;
662
758
  returned: boolean | null;
663
- }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
664
- datasources: {
665
- db: {
666
- url: string;
759
+ }) | null>;
760
+ /** @returns Submission by ID for update (student or teacher). */
761
+ export declare function findSubmissionForUpdate(submissionId: string, userId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
762
+ result: {
763
+ userProfile: {
764
+ profilePicture: () => {
765
+ needs: {
766
+ profilePicture: true;
767
+ };
768
+ compute(profile: {
769
+ profilePicture: string | null;
770
+ }): string | null;
771
+ };
772
+ profilePictureThumbnail: () => {
773
+ needs: {
774
+ profilePictureThumbnail: true;
775
+ };
776
+ compute(profile: {
777
+ profilePictureThumbnail: string | null;
778
+ }): string | null;
779
+ };
667
780
  };
668
781
  };
669
- }>;
670
- /** @returns Submission by ID for update (student or teacher). */
671
- export declare function findSubmissionForUpdate(submissionId: string, userId: string): import(".prisma/client").Prisma.Prisma__SubmissionClient<({
782
+ model: {};
783
+ query: {};
784
+ client: {};
785
+ }, {}>, "Submission", "findFirst", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
672
786
  assignment: {
673
787
  class: {
674
- name: string;
788
+ section: string;
675
789
  id: string;
790
+ name: string;
676
791
  schoolId: string | null;
677
- subject: string;
678
792
  color: string | null;
679
- section: string;
793
+ subject: string;
680
794
  syllabus: string | null;
681
795
  departmentId: string | null;
682
796
  discussionsEnabled: boolean;
@@ -696,10 +810,12 @@ export declare function findSubmissionForUpdate(submissionId: string, userId: st
696
810
  id: string;
697
811
  createdAt: Date | null;
698
812
  classId: string;
699
- modifiedAt: Date | null;
700
813
  title: string;
701
- instructions: string;
702
814
  dueDate: Date;
815
+ maxGrade: number | null;
816
+ eventId: string | null;
817
+ instructions: string;
818
+ modifiedAt: Date | null;
703
819
  teacherId: string;
704
820
  acceptFiles: boolean;
705
821
  acceptExtendedResponse: boolean;
@@ -708,11 +824,9 @@ export declare function findSubmissionForUpdate(submissionId: string, userId: st
708
824
  aiPolicyLevel: number;
709
825
  sectionId: string | null;
710
826
  graded: boolean;
711
- maxGrade: number | null;
712
827
  weight: number;
713
828
  inProgress: boolean;
714
829
  template: boolean;
715
- eventId: string | null;
716
830
  markSchemeId: string | null;
717
831
  order: number | null;
718
832
  gradingBoundaryId: string | null;
@@ -721,12 +835,15 @@ export declare function findSubmissionForUpdate(submissionId: string, userId: st
721
835
  thumbnail: {
722
836
  path: string;
723
837
  type: string;
724
- name: string;
725
838
  id: string;
726
839
  userId: string | null;
727
- folderId: string | null;
840
+ name: string;
728
841
  size: number | null;
729
842
  uploadedAt: Date | null;
843
+ assignmentId: string | null;
844
+ submissionId: string | null;
845
+ thumbnailId: string | null;
846
+ annotationId: string | null;
730
847
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
731
848
  uploadUrl: string | null;
732
849
  uploadExpiresAt: Date | null;
@@ -736,11 +853,8 @@ export declare function findSubmissionForUpdate(submissionId: string, userId: st
736
853
  uploadRetryCount: number;
737
854
  isOrphaned: boolean;
738
855
  cleanupAt: Date | null;
739
- thumbnailId: string | null;
740
- assignmentId: string | null;
741
- submissionId: string | null;
742
- annotationId: string | null;
743
856
  classDraftId: string | null;
857
+ folderId: string | null;
744
858
  conversationId: string | null;
745
859
  messageId: string | null;
746
860
  announcementId: string | null;
@@ -751,12 +865,15 @@ export declare function findSubmissionForUpdate(submissionId: string, userId: st
751
865
  } & {
752
866
  path: string;
753
867
  type: string;
754
- name: string;
755
868
  id: string;
756
869
  userId: string | null;
757
- folderId: string | null;
870
+ name: string;
758
871
  size: number | null;
759
872
  uploadedAt: Date | null;
873
+ assignmentId: string | null;
874
+ submissionId: string | null;
875
+ thumbnailId: string | null;
876
+ annotationId: string | null;
760
877
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
761
878
  uploadUrl: string | null;
762
879
  uploadExpiresAt: Date | null;
@@ -766,11 +883,8 @@ export declare function findSubmissionForUpdate(submissionId: string, userId: st
766
883
  uploadRetryCount: number;
767
884
  isOrphaned: boolean;
768
885
  cleanupAt: Date | null;
769
- thumbnailId: string | null;
770
- assignmentId: string | null;
771
- submissionId: string | null;
772
- annotationId: string | null;
773
886
  classDraftId: string | null;
887
+ folderId: string | null;
774
888
  conversationId: string | null;
775
889
  messageId: string | null;
776
890
  announcementId: string | null;
@@ -794,23 +908,41 @@ export declare function findSubmissionForUpdate(submissionId: string, userId: st
794
908
  submittedAt: Date | null;
795
909
  submitted: boolean | null;
796
910
  returned: boolean | null;
797
- }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
798
- datasources: {
799
- db: {
800
- url: string;
911
+ }) | null>;
912
+ /** Create a submission. */
913
+ export declare function createSubmission(assignmentId: string, studentId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
914
+ result: {
915
+ userProfile: {
916
+ profilePicture: () => {
917
+ needs: {
918
+ profilePicture: true;
919
+ };
920
+ compute(profile: {
921
+ profilePicture: string | null;
922
+ }): string | null;
923
+ };
924
+ profilePictureThumbnail: () => {
925
+ needs: {
926
+ profilePictureThumbnail: true;
927
+ };
928
+ compute(profile: {
929
+ profilePictureThumbnail: string | null;
930
+ }): string | null;
931
+ };
801
932
  };
802
933
  };
803
- }>;
804
- /** Create a submission. */
805
- export declare function createSubmission(assignmentId: string, studentId: string): import(".prisma/client").Prisma.Prisma__SubmissionClient<{
934
+ model: {};
935
+ query: {};
936
+ client: {};
937
+ }, {}>, "Submission", "create", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
806
938
  assignment: {
807
939
  class: {
808
- name: string;
940
+ section: string;
809
941
  id: string;
942
+ name: string;
810
943
  schoolId: string | null;
811
- subject: string;
812
944
  color: string | null;
813
- section: string;
945
+ subject: string;
814
946
  syllabus: string | null;
815
947
  departmentId: string | null;
816
948
  discussionsEnabled: boolean;
@@ -826,18 +958,20 @@ export declare function createSubmission(assignmentId: string, studentId: string
826
958
  structured: string;
827
959
  } | null;
828
960
  worksheets: {
829
- name: string;
830
961
  id: string;
962
+ name: string;
831
963
  }[];
832
964
  } & {
833
965
  type: import(".prisma/client").$Enums.AssignmentType;
834
966
  id: string;
835
967
  createdAt: Date | null;
836
968
  classId: string;
837
- modifiedAt: Date | null;
838
969
  title: string;
839
- instructions: string;
840
970
  dueDate: Date;
971
+ maxGrade: number | null;
972
+ eventId: string | null;
973
+ instructions: string;
974
+ modifiedAt: Date | null;
841
975
  teacherId: string;
842
976
  acceptFiles: boolean;
843
977
  acceptExtendedResponse: boolean;
@@ -846,24 +980,25 @@ export declare function createSubmission(assignmentId: string, studentId: string
846
980
  aiPolicyLevel: number;
847
981
  sectionId: string | null;
848
982
  graded: boolean;
849
- maxGrade: number | null;
850
983
  weight: number;
851
984
  inProgress: boolean;
852
985
  template: boolean;
853
- eventId: string | null;
854
986
  markSchemeId: string | null;
855
987
  order: number | null;
856
988
  gradingBoundaryId: string | null;
857
989
  };
858
- annotations: {
990
+ attachments: {
859
991
  path: string;
860
992
  type: string;
861
- name: string;
862
993
  id: string;
863
994
  userId: string | null;
864
- folderId: string | null;
995
+ name: string;
865
996
  size: number | null;
866
997
  uploadedAt: Date | null;
998
+ assignmentId: string | null;
999
+ submissionId: string | null;
1000
+ thumbnailId: string | null;
1001
+ annotationId: string | null;
867
1002
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
868
1003
  uploadUrl: string | null;
869
1004
  uploadExpiresAt: Date | null;
@@ -873,11 +1008,8 @@ export declare function createSubmission(assignmentId: string, studentId: string
873
1008
  uploadRetryCount: number;
874
1009
  isOrphaned: boolean;
875
1010
  cleanupAt: Date | null;
876
- thumbnailId: string | null;
877
- assignmentId: string | null;
878
- submissionId: string | null;
879
- annotationId: string | null;
880
1011
  classDraftId: string | null;
1012
+ folderId: string | null;
881
1013
  conversationId: string | null;
882
1014
  messageId: string | null;
883
1015
  announcementId: string | null;
@@ -885,15 +1017,22 @@ export declare function createSubmission(assignmentId: string, studentId: string
885
1017
  discussionReplyId: string | null;
886
1018
  schoolDevelopementProgramId: string | null;
887
1019
  }[];
888
- attachments: {
1020
+ student: {
1021
+ id: string;
1022
+ username: string;
1023
+ };
1024
+ annotations: {
889
1025
  path: string;
890
1026
  type: string;
891
- name: string;
892
1027
  id: string;
893
1028
  userId: string | null;
894
- folderId: string | null;
1029
+ name: string;
895
1030
  size: number | null;
896
1031
  uploadedAt: Date | null;
1032
+ assignmentId: string | null;
1033
+ submissionId: string | null;
1034
+ thumbnailId: string | null;
1035
+ annotationId: string | null;
897
1036
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
898
1037
  uploadUrl: string | null;
899
1038
  uploadExpiresAt: Date | null;
@@ -903,11 +1042,8 @@ export declare function createSubmission(assignmentId: string, studentId: string
903
1042
  uploadRetryCount: number;
904
1043
  isOrphaned: boolean;
905
1044
  cleanupAt: Date | null;
906
- thumbnailId: string | null;
907
- assignmentId: string | null;
908
- submissionId: string | null;
909
- annotationId: string | null;
910
1045
  classDraftId: string | null;
1046
+ folderId: string | null;
911
1047
  conversationId: string | null;
912
1048
  messageId: string | null;
913
1049
  announcementId: string | null;
@@ -915,10 +1051,6 @@ export declare function createSubmission(assignmentId: string, studentId: string
915
1051
  discussionReplyId: string | null;
916
1052
  schoolDevelopementProgramId: string | null;
917
1053
  }[];
918
- student: {
919
- id: string;
920
- username: string;
921
- };
922
1054
  } & {
923
1055
  id: string;
924
1056
  createdAt: Date;
@@ -935,27 +1067,45 @@ export declare function createSubmission(assignmentId: string, studentId: string
935
1067
  submittedAt: Date | null;
936
1068
  submitted: boolean | null;
937
1069
  returned: boolean | null;
938
- }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
939
- datasources: {
940
- db: {
941
- url: string;
942
- };
943
- };
944
1070
  }>;
945
1071
  /** @returns Sections for a class. */
946
- export declare function findSectionsByClassId(classId: string): import(".prisma/client").Prisma.PrismaPromise<{
947
- name: string;
1072
+ export declare function findSectionsByClassId(classId: string): import("@prisma/client/runtime/library.js").PrismaPromise<{
948
1073
  id: string;
1074
+ name: string;
949
1075
  }[]>;
950
1076
  /** @returns Assignment with class for teacher (auth check). */
951
- export declare function findAssignmentWithClassForTeacher(assignmentId: string, teacherId: string): import(".prisma/client").Prisma.Prisma__AssignmentClient<({
1077
+ export declare function findAssignmentWithClassForTeacher(assignmentId: string, teacherId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
1078
+ result: {
1079
+ userProfile: {
1080
+ profilePicture: () => {
1081
+ needs: {
1082
+ profilePicture: true;
1083
+ };
1084
+ compute(profile: {
1085
+ profilePicture: string | null;
1086
+ }): string | null;
1087
+ };
1088
+ profilePictureThumbnail: () => {
1089
+ needs: {
1090
+ profilePictureThumbnail: true;
1091
+ };
1092
+ compute(profile: {
1093
+ profilePictureThumbnail: string | null;
1094
+ }): string | null;
1095
+ };
1096
+ };
1097
+ };
1098
+ model: {};
1099
+ query: {};
1100
+ client: {};
1101
+ }, {}>, "Assignment", "findFirst", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
952
1102
  class: {
953
- name: string;
1103
+ section: string;
954
1104
  id: string;
1105
+ name: string;
955
1106
  schoolId: string | null;
956
- subject: string;
957
1107
  color: string | null;
958
- section: string;
1108
+ subject: string;
959
1109
  syllabus: string | null;
960
1110
  departmentId: string | null;
961
1111
  discussionsEnabled: boolean;
@@ -967,10 +1117,12 @@ export declare function findAssignmentWithClassForTeacher(assignmentId: string,
967
1117
  id: string;
968
1118
  createdAt: Date | null;
969
1119
  classId: string;
970
- modifiedAt: Date | null;
971
1120
  title: string;
972
- instructions: string;
973
1121
  dueDate: Date;
1122
+ maxGrade: number | null;
1123
+ eventId: string | null;
1124
+ instructions: string;
1125
+ modifiedAt: Date | null;
974
1126
  teacherId: string;
975
1127
  acceptFiles: boolean;
976
1128
  acceptExtendedResponse: boolean;
@@ -979,21 +1131,13 @@ export declare function findAssignmentWithClassForTeacher(assignmentId: string,
979
1131
  aiPolicyLevel: number;
980
1132
  sectionId: string | null;
981
1133
  graded: boolean;
982
- maxGrade: number | null;
983
1134
  weight: number;
984
1135
  inProgress: boolean;
985
1136
  template: boolean;
986
- eventId: string | null;
987
1137
  markSchemeId: string | null;
988
1138
  order: number | null;
989
1139
  gradingBoundaryId: string | null;
990
- }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
991
- datasources: {
992
- db: {
993
- url: string;
994
- };
995
- };
996
- }>;
1140
+ }) | null>;
997
1141
  /**
998
1142
  * Clone an assignment into another class with a new title: copies settings, duplicates linked
999
1143
  * worksheets into the target class, clones attachment file records (same storage path),
@@ -1005,10 +1149,12 @@ export declare function duplicateAssignment(sourceAssignmentId: string, targetCl
1005
1149
  id: string;
1006
1150
  createdAt: Date | null;
1007
1151
  classId: string;
1008
- modifiedAt: Date | null;
1009
1152
  title: string;
1010
- instructions: string;
1011
1153
  dueDate: Date;
1154
+ maxGrade: number | null;
1155
+ eventId: string | null;
1156
+ instructions: string;
1157
+ modifiedAt: Date | null;
1012
1158
  teacherId: string;
1013
1159
  acceptFiles: boolean;
1014
1160
  acceptExtendedResponse: boolean;
@@ -1017,25 +1163,23 @@ export declare function duplicateAssignment(sourceAssignmentId: string, targetCl
1017
1163
  aiPolicyLevel: number;
1018
1164
  sectionId: string | null;
1019
1165
  graded: boolean;
1020
- maxGrade: number | null;
1021
1166
  weight: number;
1022
1167
  inProgress: boolean;
1023
1168
  template: boolean;
1024
- eventId: string | null;
1025
1169
  markSchemeId: string | null;
1026
1170
  order: number | null;
1027
1171
  gradingBoundaryId: string | null;
1028
1172
  } | null>;
1029
1173
  /** @returns Submissions for assignment (teacher view). */
1030
- export declare function findSubmissionsByAssignmentForTeacher(assignmentId: string, teacherId: string): import(".prisma/client").Prisma.PrismaPromise<({
1174
+ export declare function findSubmissionsByAssignmentForTeacher(assignmentId: string, teacherId: string): import("@prisma/client/runtime/library.js").PrismaPromise<({
1031
1175
  assignment: {
1032
1176
  class: {
1033
- name: string;
1177
+ section: string;
1034
1178
  id: string;
1179
+ name: string;
1035
1180
  schoolId: string | null;
1036
- subject: string;
1037
1181
  color: string | null;
1038
- section: string;
1182
+ subject: string;
1039
1183
  syllabus: string | null;
1040
1184
  departmentId: string | null;
1041
1185
  discussionsEnabled: boolean;
@@ -1055,10 +1199,12 @@ export declare function findSubmissionsByAssignmentForTeacher(assignmentId: stri
1055
1199
  id: string;
1056
1200
  createdAt: Date | null;
1057
1201
  classId: string;
1058
- modifiedAt: Date | null;
1059
1202
  title: string;
1060
- instructions: string;
1061
1203
  dueDate: Date;
1204
+ maxGrade: number | null;
1205
+ eventId: string | null;
1206
+ instructions: string;
1207
+ modifiedAt: Date | null;
1062
1208
  teacherId: string;
1063
1209
  acceptFiles: boolean;
1064
1210
  acceptExtendedResponse: boolean;
@@ -1067,11 +1213,9 @@ export declare function findSubmissionsByAssignmentForTeacher(assignmentId: stri
1067
1213
  aiPolicyLevel: number;
1068
1214
  sectionId: string | null;
1069
1215
  graded: boolean;
1070
- maxGrade: number | null;
1071
1216
  weight: number;
1072
1217
  inProgress: boolean;
1073
1218
  template: boolean;
1074
- eventId: string | null;
1075
1219
  markSchemeId: string | null;
1076
1220
  order: number | null;
1077
1221
  gradingBoundaryId: string | null;
@@ -1080,12 +1224,15 @@ export declare function findSubmissionsByAssignmentForTeacher(assignmentId: stri
1080
1224
  thumbnail: {
1081
1225
  path: string;
1082
1226
  type: string;
1083
- name: string;
1084
1227
  id: string;
1085
1228
  userId: string | null;
1086
- folderId: string | null;
1229
+ name: string;
1087
1230
  size: number | null;
1088
1231
  uploadedAt: Date | null;
1232
+ assignmentId: string | null;
1233
+ submissionId: string | null;
1234
+ thumbnailId: string | null;
1235
+ annotationId: string | null;
1089
1236
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1090
1237
  uploadUrl: string | null;
1091
1238
  uploadExpiresAt: Date | null;
@@ -1095,11 +1242,8 @@ export declare function findSubmissionsByAssignmentForTeacher(assignmentId: stri
1095
1242
  uploadRetryCount: number;
1096
1243
  isOrphaned: boolean;
1097
1244
  cleanupAt: Date | null;
1098
- thumbnailId: string | null;
1099
- assignmentId: string | null;
1100
- submissionId: string | null;
1101
- annotationId: string | null;
1102
1245
  classDraftId: string | null;
1246
+ folderId: string | null;
1103
1247
  conversationId: string | null;
1104
1248
  messageId: string | null;
1105
1249
  announcementId: string | null;
@@ -1110,12 +1254,15 @@ export declare function findSubmissionsByAssignmentForTeacher(assignmentId: stri
1110
1254
  } & {
1111
1255
  path: string;
1112
1256
  type: string;
1113
- name: string;
1114
1257
  id: string;
1115
1258
  userId: string | null;
1116
- folderId: string | null;
1259
+ name: string;
1117
1260
  size: number | null;
1118
1261
  uploadedAt: Date | null;
1262
+ assignmentId: string | null;
1263
+ submissionId: string | null;
1264
+ thumbnailId: string | null;
1265
+ annotationId: string | null;
1119
1266
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1120
1267
  uploadUrl: string | null;
1121
1268
  uploadExpiresAt: Date | null;
@@ -1125,11 +1272,8 @@ export declare function findSubmissionsByAssignmentForTeacher(assignmentId: stri
1125
1272
  uploadRetryCount: number;
1126
1273
  isOrphaned: boolean;
1127
1274
  cleanupAt: Date | null;
1128
- thumbnailId: string | null;
1129
- assignmentId: string | null;
1130
- submissionId: string | null;
1131
- annotationId: string | null;
1132
1275
  classDraftId: string | null;
1276
+ folderId: string | null;
1133
1277
  conversationId: string | null;
1134
1278
  messageId: string | null;
1135
1279
  announcementId: string | null;
@@ -1141,8 +1285,8 @@ export declare function findSubmissionsByAssignmentForTeacher(assignmentId: stri
1141
1285
  id: string;
1142
1286
  username: string;
1143
1287
  profile: {
1144
- displayName: string | null;
1145
1288
  profilePicture: string | null;
1289
+ displayName: string | null;
1146
1290
  profilePictureThumbnail: string | null;
1147
1291
  } | null;
1148
1292
  };
@@ -1164,15 +1308,39 @@ export declare function findSubmissionsByAssignmentForTeacher(assignmentId: stri
1164
1308
  returned: boolean | null;
1165
1309
  })[]>;
1166
1310
  /** @returns Submission by ID for teacher update. */
1167
- export declare function findSubmissionForTeacherUpdate(submissionId: string, teacherId: string): import(".prisma/client").Prisma.Prisma__SubmissionClient<({
1311
+ export declare function findSubmissionForTeacherUpdate(submissionId: string, teacherId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
1312
+ result: {
1313
+ userProfile: {
1314
+ profilePicture: () => {
1315
+ needs: {
1316
+ profilePicture: true;
1317
+ };
1318
+ compute(profile: {
1319
+ profilePicture: string | null;
1320
+ }): string | null;
1321
+ };
1322
+ profilePictureThumbnail: () => {
1323
+ needs: {
1324
+ profilePictureThumbnail: true;
1325
+ };
1326
+ compute(profile: {
1327
+ profilePictureThumbnail: string | null;
1328
+ }): string | null;
1329
+ };
1330
+ };
1331
+ };
1332
+ model: {};
1333
+ query: {};
1334
+ client: {};
1335
+ }, {}>, "Submission", "findFirst", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
1168
1336
  assignment: {
1169
1337
  class: {
1170
- name: string;
1338
+ section: string;
1171
1339
  id: string;
1340
+ name: string;
1172
1341
  schoolId: string | null;
1173
- subject: string;
1174
1342
  color: string | null;
1175
- section: string;
1343
+ subject: string;
1176
1344
  syllabus: string | null;
1177
1345
  departmentId: string | null;
1178
1346
  discussionsEnabled: boolean;
@@ -1192,10 +1360,12 @@ export declare function findSubmissionForTeacherUpdate(submissionId: string, tea
1192
1360
  id: string;
1193
1361
  createdAt: Date | null;
1194
1362
  classId: string;
1195
- modifiedAt: Date | null;
1196
1363
  title: string;
1197
- instructions: string;
1198
1364
  dueDate: Date;
1365
+ maxGrade: number | null;
1366
+ eventId: string | null;
1367
+ instructions: string;
1368
+ modifiedAt: Date | null;
1199
1369
  teacherId: string;
1200
1370
  acceptFiles: boolean;
1201
1371
  acceptExtendedResponse: boolean;
@@ -1204,25 +1374,26 @@ export declare function findSubmissionForTeacherUpdate(submissionId: string, tea
1204
1374
  aiPolicyLevel: number;
1205
1375
  sectionId: string | null;
1206
1376
  graded: boolean;
1207
- maxGrade: number | null;
1208
1377
  weight: number;
1209
1378
  inProgress: boolean;
1210
1379
  template: boolean;
1211
- eventId: string | null;
1212
1380
  markSchemeId: string | null;
1213
1381
  order: number | null;
1214
1382
  gradingBoundaryId: string | null;
1215
1383
  };
1216
- annotations: ({
1384
+ attachments: ({
1217
1385
  thumbnail: {
1218
1386
  path: string;
1219
1387
  type: string;
1220
- name: string;
1221
1388
  id: string;
1222
1389
  userId: string | null;
1223
- folderId: string | null;
1390
+ name: string;
1224
1391
  size: number | null;
1225
1392
  uploadedAt: Date | null;
1393
+ assignmentId: string | null;
1394
+ submissionId: string | null;
1395
+ thumbnailId: string | null;
1396
+ annotationId: string | null;
1226
1397
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1227
1398
  uploadUrl: string | null;
1228
1399
  uploadExpiresAt: Date | null;
@@ -1232,11 +1403,8 @@ export declare function findSubmissionForTeacherUpdate(submissionId: string, tea
1232
1403
  uploadRetryCount: number;
1233
1404
  isOrphaned: boolean;
1234
1405
  cleanupAt: Date | null;
1235
- thumbnailId: string | null;
1236
- assignmentId: string | null;
1237
- submissionId: string | null;
1238
- annotationId: string | null;
1239
1406
  classDraftId: string | null;
1407
+ folderId: string | null;
1240
1408
  conversationId: string | null;
1241
1409
  messageId: string | null;
1242
1410
  announcementId: string | null;
@@ -1247,12 +1415,15 @@ export declare function findSubmissionForTeacherUpdate(submissionId: string, tea
1247
1415
  } & {
1248
1416
  path: string;
1249
1417
  type: string;
1250
- name: string;
1251
1418
  id: string;
1252
1419
  userId: string | null;
1253
- folderId: string | null;
1420
+ name: string;
1254
1421
  size: number | null;
1255
1422
  uploadedAt: Date | null;
1423
+ assignmentId: string | null;
1424
+ submissionId: string | null;
1425
+ thumbnailId: string | null;
1426
+ annotationId: string | null;
1256
1427
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1257
1428
  uploadUrl: string | null;
1258
1429
  uploadExpiresAt: Date | null;
@@ -1262,11 +1433,8 @@ export declare function findSubmissionForTeacherUpdate(submissionId: string, tea
1262
1433
  uploadRetryCount: number;
1263
1434
  isOrphaned: boolean;
1264
1435
  cleanupAt: Date | null;
1265
- thumbnailId: string | null;
1266
- assignmentId: string | null;
1267
- submissionId: string | null;
1268
- annotationId: string | null;
1269
1436
  classDraftId: string | null;
1437
+ folderId: string | null;
1270
1438
  conversationId: string | null;
1271
1439
  messageId: string | null;
1272
1440
  announcementId: string | null;
@@ -1274,16 +1442,19 @@ export declare function findSubmissionForTeacherUpdate(submissionId: string, tea
1274
1442
  discussionReplyId: string | null;
1275
1443
  schoolDevelopementProgramId: string | null;
1276
1444
  })[];
1277
- attachments: ({
1445
+ annotations: ({
1278
1446
  thumbnail: {
1279
1447
  path: string;
1280
1448
  type: string;
1281
- name: string;
1282
1449
  id: string;
1283
1450
  userId: string | null;
1284
- folderId: string | null;
1451
+ name: string;
1285
1452
  size: number | null;
1286
1453
  uploadedAt: Date | null;
1454
+ assignmentId: string | null;
1455
+ submissionId: string | null;
1456
+ thumbnailId: string | null;
1457
+ annotationId: string | null;
1287
1458
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1288
1459
  uploadUrl: string | null;
1289
1460
  uploadExpiresAt: Date | null;
@@ -1293,11 +1464,8 @@ export declare function findSubmissionForTeacherUpdate(submissionId: string, tea
1293
1464
  uploadRetryCount: number;
1294
1465
  isOrphaned: boolean;
1295
1466
  cleanupAt: Date | null;
1296
- thumbnailId: string | null;
1297
- assignmentId: string | null;
1298
- submissionId: string | null;
1299
- annotationId: string | null;
1300
1467
  classDraftId: string | null;
1468
+ folderId: string | null;
1301
1469
  conversationId: string | null;
1302
1470
  messageId: string | null;
1303
1471
  announcementId: string | null;
@@ -1308,12 +1476,15 @@ export declare function findSubmissionForTeacherUpdate(submissionId: string, tea
1308
1476
  } & {
1309
1477
  path: string;
1310
1478
  type: string;
1311
- name: string;
1312
1479
  id: string;
1313
1480
  userId: string | null;
1314
- folderId: string | null;
1481
+ name: string;
1315
1482
  size: number | null;
1316
1483
  uploadedAt: Date | null;
1484
+ assignmentId: string | null;
1485
+ submissionId: string | null;
1486
+ thumbnailId: string | null;
1487
+ annotationId: string | null;
1317
1488
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1318
1489
  uploadUrl: string | null;
1319
1490
  uploadExpiresAt: Date | null;
@@ -1323,11 +1494,8 @@ export declare function findSubmissionForTeacherUpdate(submissionId: string, tea
1323
1494
  uploadRetryCount: number;
1324
1495
  isOrphaned: boolean;
1325
1496
  cleanupAt: Date | null;
1326
- thumbnailId: string | null;
1327
- assignmentId: string | null;
1328
- submissionId: string | null;
1329
- annotationId: string | null;
1330
1497
  classDraftId: string | null;
1498
+ folderId: string | null;
1331
1499
  conversationId: string | null;
1332
1500
  messageId: string | null;
1333
1501
  announcementId: string | null;
@@ -1351,28 +1519,46 @@ export declare function findSubmissionForTeacherUpdate(submissionId: string, tea
1351
1519
  submittedAt: Date | null;
1352
1520
  submitted: boolean | null;
1353
1521
  returned: boolean | null;
1354
- }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
1355
- datasources: {
1356
- db: {
1357
- url: string;
1358
- };
1359
- };
1360
- }>;
1522
+ }) | null>;
1361
1523
  /** @returns Events in class that don't have this assignment attached. */
1362
- export declare function findAvailableEventsForAssignment(classId: string, assignmentId: string): import(".prisma/client").Prisma.PrismaPromise<{
1363
- name: string | null;
1524
+ export declare function findAvailableEventsForAssignment(classId: string, assignmentId: string): import("@prisma/client/runtime/library.js").PrismaPromise<{
1364
1525
  id: string;
1526
+ location: string | null;
1527
+ name: string | null;
1365
1528
  color: string | null;
1366
1529
  startTime: Date;
1367
1530
  endTime: Date;
1368
- location: string | null;
1369
1531
  remarks: string | null;
1370
1532
  }[]>;
1371
1533
  /** Attach assignment to event. */
1372
- export declare function attachAssignmentToEvent(assignmentId: string, eventId: string): import(".prisma/client").Prisma.Prisma__AssignmentClient<{
1534
+ export declare function attachAssignmentToEvent(assignmentId: string, eventId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
1535
+ result: {
1536
+ userProfile: {
1537
+ profilePicture: () => {
1538
+ needs: {
1539
+ profilePicture: true;
1540
+ };
1541
+ compute(profile: {
1542
+ profilePicture: string | null;
1543
+ }): string | null;
1544
+ };
1545
+ profilePictureThumbnail: () => {
1546
+ needs: {
1547
+ profilePictureThumbnail: true;
1548
+ };
1549
+ compute(profile: {
1550
+ profilePictureThumbnail: string | null;
1551
+ }): string | null;
1552
+ };
1553
+ };
1554
+ };
1555
+ model: {};
1556
+ query: {};
1557
+ client: {};
1558
+ }, {}>, "Assignment", "update", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
1373
1559
  section: {
1374
- name: string;
1375
1560
  id: string;
1561
+ name: string;
1376
1562
  } | null;
1377
1563
  teacher: {
1378
1564
  id: string;
@@ -1380,12 +1566,12 @@ export declare function attachAssignmentToEvent(assignmentId: string, eventId: s
1380
1566
  };
1381
1567
  attachments: {
1382
1568
  type: string;
1383
- name: string;
1384
1569
  id: string;
1570
+ name: string;
1385
1571
  }[];
1386
1572
  eventAttached: {
1387
- name: string | null;
1388
1573
  id: string;
1574
+ name: string | null;
1389
1575
  color: string | null;
1390
1576
  startTime: Date;
1391
1577
  endTime: Date;
@@ -1395,10 +1581,12 @@ export declare function attachAssignmentToEvent(assignmentId: string, eventId: s
1395
1581
  id: string;
1396
1582
  createdAt: Date | null;
1397
1583
  classId: string;
1398
- modifiedAt: Date | null;
1399
1584
  title: string;
1400
- instructions: string;
1401
1585
  dueDate: Date;
1586
+ maxGrade: number | null;
1587
+ eventId: string | null;
1588
+ instructions: string;
1589
+ modifiedAt: Date | null;
1402
1590
  teacherId: string;
1403
1591
  acceptFiles: boolean;
1404
1592
  acceptExtendedResponse: boolean;
@@ -1407,26 +1595,42 @@ export declare function attachAssignmentToEvent(assignmentId: string, eventId: s
1407
1595
  aiPolicyLevel: number;
1408
1596
  sectionId: string | null;
1409
1597
  graded: boolean;
1410
- maxGrade: number | null;
1411
1598
  weight: number;
1412
1599
  inProgress: boolean;
1413
1600
  template: boolean;
1414
- eventId: string | null;
1415
1601
  markSchemeId: string | null;
1416
1602
  order: number | null;
1417
1603
  gradingBoundaryId: string | null;
1418
- }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
1419
- datasources: {
1420
- db: {
1421
- url: string;
1422
- };
1423
- };
1424
1604
  }>;
1425
1605
  /** Detach assignment from event. */
1426
- export declare function detachAssignmentFromEvent(assignmentId: string): import(".prisma/client").Prisma.Prisma__AssignmentClient<{
1606
+ export declare function detachAssignmentFromEvent(assignmentId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
1607
+ result: {
1608
+ userProfile: {
1609
+ profilePicture: () => {
1610
+ needs: {
1611
+ profilePicture: true;
1612
+ };
1613
+ compute(profile: {
1614
+ profilePicture: string | null;
1615
+ }): string | null;
1616
+ };
1617
+ profilePictureThumbnail: () => {
1618
+ needs: {
1619
+ profilePictureThumbnail: true;
1620
+ };
1621
+ compute(profile: {
1622
+ profilePictureThumbnail: string | null;
1623
+ }): string | null;
1624
+ };
1625
+ };
1626
+ };
1627
+ model: {};
1628
+ query: {};
1629
+ client: {};
1630
+ }, {}>, "Assignment", "update", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
1427
1631
  section: {
1428
- name: string;
1429
1632
  id: string;
1633
+ name: string;
1430
1634
  } | null;
1431
1635
  teacher: {
1432
1636
  id: string;
@@ -1434,12 +1638,12 @@ export declare function detachAssignmentFromEvent(assignmentId: string): import(
1434
1638
  };
1435
1639
  attachments: {
1436
1640
  type: string;
1437
- name: string;
1438
1641
  id: string;
1642
+ name: string;
1439
1643
  }[];
1440
1644
  eventAttached: {
1441
- name: string | null;
1442
1645
  id: string;
1646
+ name: string | null;
1443
1647
  color: string | null;
1444
1648
  startTime: Date;
1445
1649
  endTime: Date;
@@ -1449,10 +1653,12 @@ export declare function detachAssignmentFromEvent(assignmentId: string): import(
1449
1653
  id: string;
1450
1654
  createdAt: Date | null;
1451
1655
  classId: string;
1452
- modifiedAt: Date | null;
1453
1656
  title: string;
1454
- instructions: string;
1455
1657
  dueDate: Date;
1658
+ maxGrade: number | null;
1659
+ eventId: string | null;
1660
+ instructions: string;
1661
+ modifiedAt: Date | null;
1456
1662
  teacherId: string;
1457
1663
  acceptFiles: boolean;
1458
1664
  acceptExtendedResponse: boolean;
@@ -1461,19 +1667,11 @@ export declare function detachAssignmentFromEvent(assignmentId: string): import(
1461
1667
  aiPolicyLevel: number;
1462
1668
  sectionId: string | null;
1463
1669
  graded: boolean;
1464
- maxGrade: number | null;
1465
1670
  weight: number;
1466
1671
  inProgress: boolean;
1467
1672
  template: boolean;
1468
- eventId: string | null;
1469
1673
  markSchemeId: string | null;
1470
1674
  order: number | null;
1471
1675
  gradingBoundaryId: string | null;
1472
- }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
1473
- datasources: {
1474
- db: {
1475
- url: string;
1476
- };
1477
- };
1478
1676
  }>;
1479
1677
  //# sourceMappingURL=assignment.d.ts.map