@studious-lms/server 1.13.0 → 1.15.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 (375) 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/instrument.js +3 -3
  8. package/dist/instrument.js.map +1 -1
  9. package/dist/lib/config/cors.d.ts.map +1 -1
  10. package/dist/lib/config/cors.js +31 -11
  11. package/dist/lib/config/cors.js.map +1 -1
  12. package/dist/lib/config/env.d.ts +17 -0
  13. package/dist/lib/config/env.d.ts.map +1 -1
  14. package/dist/lib/config/env.js +8 -2
  15. package/dist/lib/config/env.js.map +1 -1
  16. package/dist/lib/googleCloudStorage.d.ts +10 -0
  17. package/dist/lib/googleCloudStorage.d.ts.map +1 -1
  18. package/dist/lib/googleCloudStorage.js +22 -2
  19. package/dist/lib/googleCloudStorage.js.map +1 -1
  20. package/dist/lib/inferDocumentFormat.d.ts +10 -0
  21. package/dist/lib/inferDocumentFormat.d.ts.map +1 -0
  22. package/dist/lib/inferDocumentFormat.js +48 -0
  23. package/dist/lib/inferDocumentFormat.js.map +1 -0
  24. package/dist/lib/legal.d.ts +3 -0
  25. package/dist/lib/legal.d.ts.map +1 -0
  26. package/dist/lib/legal.js +6 -0
  27. package/dist/lib/legal.js.map +1 -0
  28. package/dist/lib/prisma.d.ts +104 -5
  29. package/dist/lib/prisma.d.ts.map +1 -1
  30. package/dist/lib/prisma.js +33 -2
  31. package/dist/lib/prisma.js.map +1 -1
  32. package/dist/models/agenda.d.ts +20 -20
  33. package/dist/models/announcement.d.ts +211 -101
  34. package/dist/models/announcement.d.ts.map +1 -1
  35. package/dist/models/assignment.d.ts +560 -362
  36. package/dist/models/assignment.d.ts.map +1 -1
  37. package/dist/models/attendance.d.ts +197 -71
  38. package/dist/models/attendance.d.ts.map +1 -1
  39. package/dist/models/auth.d.ts +356 -114
  40. package/dist/models/auth.d.ts.map +1 -1
  41. package/dist/models/auth.js +4 -2
  42. package/dist/models/auth.js.map +1 -1
  43. package/dist/models/class.d.ts +327 -201
  44. package/dist/models/class.d.ts.map +1 -1
  45. package/dist/models/class.js +2 -2
  46. package/dist/models/class.js.map +1 -1
  47. package/dist/models/cloudStorage.d.ts +146 -56
  48. package/dist/models/cloudStorage.d.ts.map +1 -1
  49. package/dist/models/comment.d.ts +262 -110
  50. package/dist/models/comment.d.ts.map +1 -1
  51. package/dist/models/conversation.d.ts +206 -80
  52. package/dist/models/conversation.d.ts.map +1 -1
  53. package/dist/models/department.d.ts +196 -70
  54. package/dist/models/department.d.ts.map +1 -1
  55. package/dist/models/event.d.ts +305 -141
  56. package/dist/models/event.d.ts.map +1 -1
  57. package/dist/models/file.d.ts +422 -272
  58. package/dist/models/file.d.ts.map +1 -1
  59. package/dist/models/folder.d.ts +433 -181
  60. package/dist/models/folder.d.ts.map +1 -1
  61. package/dist/models/labChat.d.ts +205 -79
  62. package/dist/models/labChat.d.ts.map +1 -1
  63. package/dist/models/marketing.d.ts +79 -38
  64. package/dist/models/marketing.d.ts.map +1 -1
  65. package/dist/models/marketing.js +12 -4
  66. package/dist/models/marketing.js.map +1 -1
  67. package/dist/models/message.d.ts +97 -43
  68. package/dist/models/message.d.ts.map +1 -1
  69. package/dist/models/newtonChat.d.ts +84 -30
  70. package/dist/models/newtonChat.d.ts.map +1 -1
  71. package/dist/models/notification.d.ts +57 -21
  72. package/dist/models/notification.d.ts.map +1 -1
  73. package/dist/models/school.d.ts +349 -133
  74. package/dist/models/school.d.ts.map +1 -1
  75. package/dist/models/section.d.ts +216 -72
  76. package/dist/models/section.d.ts.map +1 -1
  77. package/dist/models/tag.d.ts +156 -48
  78. package/dist/models/tag.d.ts.map +1 -1
  79. package/dist/models/user.d.ts +82 -28
  80. package/dist/models/user.d.ts.map +1 -1
  81. package/dist/models/worksheet.d.ts +1032 -423
  82. package/dist/models/worksheet.d.ts.map +1 -1
  83. package/dist/models/worksheet.js +8 -2
  84. package/dist/models/worksheet.js.map +1 -1
  85. package/dist/pipelines/aiLabChat.d.ts +7 -9
  86. package/dist/pipelines/aiLabChat.d.ts.map +1 -1
  87. package/dist/pipelines/aiLabChat.js +194 -125
  88. package/dist/pipelines/aiLabChat.js.map +1 -1
  89. package/dist/pipelines/aiLabChatContract.d.ts +233 -389
  90. package/dist/pipelines/aiLabChatContract.d.ts.map +1 -1
  91. package/dist/pipelines/aiLabChatContract.js +54 -70
  92. package/dist/pipelines/aiLabChatContract.js.map +1 -1
  93. package/dist/pipelines/aiNewtonChat.d.ts.map +1 -1
  94. package/dist/pipelines/aiNewtonChat.js +41 -41
  95. package/dist/pipelines/aiNewtonChat.js.map +1 -1
  96. package/dist/pipelines/gradeWorksheet.d.ts +8 -8
  97. package/dist/pipelines/labChatPrompt.d.ts +18 -11
  98. package/dist/pipelines/labChatPrompt.d.ts.map +1 -1
  99. package/dist/pipelines/labChatPrompt.js +93 -75
  100. package/dist/pipelines/labChatPrompt.js.map +1 -1
  101. package/dist/pipelines/pdfToWorksheet.d.ts +1 -1
  102. package/dist/routers/_app.d.ts +2601 -2151
  103. package/dist/routers/_app.d.ts.map +1 -1
  104. package/dist/routers/_app.js +4 -2
  105. package/dist/routers/_app.js.map +1 -1
  106. package/dist/routers/admin.d.ts +13 -13
  107. package/dist/routers/agenda.d.ts +18 -18
  108. package/dist/routers/announcement.d.ts +60 -60
  109. package/dist/routers/assignment.d.ts +393 -383
  110. package/dist/routers/assignment.d.ts.map +1 -1
  111. package/dist/routers/attendance.d.ts +10 -10
  112. package/dist/routers/auth.d.ts +4 -2
  113. package/dist/routers/auth.d.ts.map +1 -1
  114. package/dist/routers/auth.js +15 -2
  115. package/dist/routers/auth.js.map +1 -1
  116. package/dist/routers/class.d.ts +157 -153
  117. package/dist/routers/class.d.ts.map +1 -1
  118. package/dist/routers/comment.d.ts +18 -18
  119. package/dist/routers/conversation.d.ts +11 -11
  120. package/dist/routers/department.d.ts +34 -34
  121. package/dist/routers/discussion.d.ts +68 -56
  122. package/dist/routers/discussion.d.ts.map +1 -1
  123. package/dist/routers/discussion.js +6 -2
  124. package/dist/routers/discussion.js.map +1 -1
  125. package/dist/routers/embedding.d.ts +73 -0
  126. package/dist/routers/embedding.d.ts.map +1 -0
  127. package/dist/routers/embedding.js +151 -0
  128. package/dist/routers/embedding.js.map +1 -0
  129. package/dist/routers/event.d.ts +57 -55
  130. package/dist/routers/event.d.ts.map +1 -1
  131. package/dist/routers/file.d.ts +14 -14
  132. package/dist/routers/folder.d.ts +38 -38
  133. package/dist/routers/labChat.d.ts +16 -16
  134. package/dist/routers/marketing.d.ts +1 -14
  135. package/dist/routers/marketing.d.ts.map +1 -1
  136. package/dist/routers/message.d.ts +13 -13
  137. package/dist/routers/newtonChat.d.ts +4 -4
  138. package/dist/routers/notifications.d.ts +5 -5
  139. package/dist/routers/permissions.d.ts +14 -14
  140. package/dist/routers/school.d.ts +59 -55
  141. package/dist/routers/school.d.ts.map +1 -1
  142. package/dist/routers/search.d.ts +22 -1
  143. package/dist/routers/search.d.ts.map +1 -1
  144. package/dist/routers/search.js +9 -3
  145. package/dist/routers/search.js.map +1 -1
  146. package/dist/routers/section.d.ts +4 -4
  147. package/dist/routers/studentProgress.d.ts +1 -1
  148. package/dist/routers/tag.d.ts +7 -7
  149. package/dist/routers/user.d.ts +99 -10
  150. package/dist/routers/user.d.ts.map +1 -1
  151. package/dist/routers/user.js +19 -2
  152. package/dist/routers/user.js.map +1 -1
  153. package/dist/routers/worksheet.d.ts +93 -55
  154. package/dist/routers/worksheet.d.ts.map +1 -1
  155. package/dist/routers/worksheet.js +26 -2
  156. package/dist/routers/worksheet.js.map +1 -1
  157. package/dist/routes/aiStream.d.ts +2 -0
  158. package/dist/routes/aiStream.d.ts.map +1 -0
  159. package/dist/routes/aiStream.js +726 -0
  160. package/dist/routes/aiStream.js.map +1 -0
  161. package/dist/seedDatabase.d.ts +3 -1
  162. package/dist/seedDatabase.d.ts.map +1 -1
  163. package/dist/seedDatabase.js +6 -6
  164. package/dist/seedDatabase.js.map +1 -1
  165. package/dist/services/adminInstitution.d.ts +8 -8
  166. package/dist/services/adminRunJob.d.ts +4 -4
  167. package/dist/services/agenda.d.ts +18 -18
  168. package/dist/services/aiChatStream.d.ts +88 -0
  169. package/dist/services/aiChatStream.d.ts.map +1 -0
  170. package/dist/services/aiChatStream.js +254 -0
  171. package/dist/services/aiChatStream.js.map +1 -0
  172. package/dist/services/aiModifierTools.d.ts +16 -0
  173. package/dist/services/aiModifierTools.d.ts.map +1 -0
  174. package/dist/services/aiModifierTools.js +274 -0
  175. package/dist/services/aiModifierTools.js.map +1 -0
  176. package/dist/services/aiProposalTools.d.ts +32 -0
  177. package/dist/services/aiProposalTools.d.ts.map +1 -0
  178. package/dist/services/aiProposalTools.js +207 -0
  179. package/dist/services/aiProposalTools.js.map +1 -0
  180. package/dist/services/aiStream.d.ts +22 -0
  181. package/dist/services/aiStream.d.ts.map +1 -0
  182. package/dist/services/aiStream.js +142 -0
  183. package/dist/services/aiStream.js.map +1 -0
  184. package/dist/services/aiTools.d.ts +16 -0
  185. package/dist/services/aiTools.d.ts.map +1 -0
  186. package/dist/services/aiTools.js +271 -0
  187. package/dist/services/aiTools.js.map +1 -0
  188. package/dist/services/announcement.d.ts +42 -42
  189. package/dist/services/announcement.d.ts.map +1 -1
  190. package/dist/services/announcement.js +7 -2
  191. package/dist/services/announcement.js.map +1 -1
  192. package/dist/services/assignment.d.ts +355 -345
  193. package/dist/services/assignment.d.ts.map +1 -1
  194. package/dist/services/assignment.js +30 -9
  195. package/dist/services/assignment.js.map +1 -1
  196. package/dist/services/attendance.d.ts +10 -10
  197. package/dist/services/auth.d.ts +4 -2
  198. package/dist/services/auth.d.ts.map +1 -1
  199. package/dist/services/auth.js +13 -4
  200. package/dist/services/auth.js.map +1 -1
  201. package/dist/services/class.d.ts +146 -142
  202. package/dist/services/class.d.ts.map +1 -1
  203. package/dist/services/class.js +24 -4
  204. package/dist/services/class.js.map +1 -1
  205. package/dist/services/comment.d.ts +18 -18
  206. package/dist/services/conversation.d.ts +11 -11
  207. package/dist/services/department.d.ts +33 -33
  208. package/dist/services/discussion.d.ts +58 -58
  209. package/dist/services/discussion.d.ts.map +1 -1
  210. package/dist/services/discussion.js +15 -8
  211. package/dist/services/discussion.js.map +1 -1
  212. package/dist/services/discussionSummary.d.ts +21 -0
  213. package/dist/services/discussionSummary.d.ts.map +1 -0
  214. package/dist/services/discussionSummary.js +179 -0
  215. package/dist/services/discussionSummary.js.map +1 -0
  216. package/dist/services/embedding.d.ts +85 -0
  217. package/dist/services/embedding.d.ts.map +1 -0
  218. package/dist/services/embedding.js +372 -0
  219. package/dist/services/embedding.js.map +1 -0
  220. package/dist/services/event.d.ts +55 -53
  221. package/dist/services/event.d.ts.map +1 -1
  222. package/dist/services/file.d.ts +28 -28
  223. package/dist/services/folder.d.ts +36 -36
  224. package/dist/services/folder.d.ts.map +1 -1
  225. package/dist/services/folder.js +32 -2
  226. package/dist/services/folder.js.map +1 -1
  227. package/dist/services/labChat.d.ts +16 -16
  228. package/dist/services/marketing.d.ts +2 -15
  229. package/dist/services/marketing.d.ts.map +1 -1
  230. package/dist/services/marketing.js +5 -5
  231. package/dist/services/marketing.js.map +1 -1
  232. package/dist/services/message.d.ts +11 -11
  233. package/dist/services/message.d.ts.map +1 -1
  234. package/dist/services/message.js +2 -2
  235. package/dist/services/message.js.map +1 -1
  236. package/dist/services/newtonChat.d.ts +4 -4
  237. package/dist/services/notification.d.ts +5 -5
  238. package/dist/services/notification.d.ts.map +1 -1
  239. package/dist/services/openaiDocumentGen.d.ts +37 -0
  240. package/dist/services/openaiDocumentGen.d.ts.map +1 -0
  241. package/dist/services/openaiDocumentGen.js +262 -0
  242. package/dist/services/openaiDocumentGen.js.map +1 -0
  243. package/dist/services/permissions.d.ts +14 -14
  244. package/dist/services/school.d.ts +54 -50
  245. package/dist/services/school.d.ts.map +1 -1
  246. package/dist/services/search.d.ts +13 -1
  247. package/dist/services/search.d.ts.map +1 -1
  248. package/dist/services/search.js +145 -2
  249. package/dist/services/search.js.map +1 -1
  250. package/dist/services/section.d.ts +3 -3
  251. package/dist/services/tag.d.ts +4 -4
  252. package/dist/services/user.d.ts +4 -4
  253. package/dist/services/user.d.ts.map +1 -1
  254. package/dist/services/user.js +10 -15
  255. package/dist/services/user.js.map +1 -1
  256. package/dist/services/userPrivacy.d.ts +86 -0
  257. package/dist/services/userPrivacy.d.ts.map +1 -0
  258. package/dist/services/userPrivacy.js +184 -0
  259. package/dist/services/userPrivacy.js.map +1 -0
  260. package/dist/services/worksheet.d.ts +86 -57
  261. package/dist/services/worksheet.d.ts.map +1 -1
  262. package/dist/services/worksheet.js +57 -5
  263. package/dist/services/worksheet.js.map +1 -1
  264. package/dist/utils/email.d.ts.map +1 -1
  265. package/dist/utils/email.js +7 -3
  266. package/dist/utils/email.js.map +1 -1
  267. package/dist/utils/streamBroadcast.d.ts +11 -0
  268. package/dist/utils/streamBroadcast.d.ts.map +1 -0
  269. package/dist/utils/streamBroadcast.js +32 -0
  270. package/dist/utils/streamBroadcast.js.map +1 -0
  271. package/dist/workers/connection.d.ts +15 -0
  272. package/dist/workers/connection.d.ts.map +1 -1
  273. package/dist/workers/connection.js +20 -2
  274. package/dist/workers/connection.js.map +1 -1
  275. package/dist/workers/index.js +4 -2
  276. package/dist/workers/index.js.map +1 -1
  277. package/dist/workers/processors/createRunJobWorker.d.ts.map +1 -1
  278. package/dist/workers/processors/createRunJobWorker.js +31 -8
  279. package/dist/workers/processors/createRunJobWorker.js.map +1 -1
  280. package/dist/workers/processors/embedContent.d.ts +8 -0
  281. package/dist/workers/processors/embedContent.d.ts.map +1 -0
  282. package/dist/workers/processors/embedContent.js +67 -0
  283. package/dist/workers/processors/embedContent.js.map +1 -0
  284. package/dist/workers/queues.d.ts +6 -0
  285. package/dist/workers/queues.d.ts.map +1 -1
  286. package/dist/workers/queues.js +5 -3
  287. package/dist/workers/queues.js.map +1 -1
  288. package/package.json +5 -1
  289. package/prisma/migrations/20260609215135_init/migration.sql +1412 -0
  290. package/prisma/migrations/20260610130000_add_worksheet_tags/migration.sql +13 -0
  291. package/prisma/migrations/20260610140000_expand_embedding_source_types/migration.sql +4 -0
  292. package/prisma/migrations/20260611120000_add_user_terms_acceptance/migration.sql +3 -0
  293. package/prisma/schema.prisma +44 -7
  294. package/src/index.ts +4 -0
  295. package/src/instrument.ts +1 -1
  296. package/src/lib/config/cors.ts +32 -9
  297. package/src/lib/config/env.ts +6 -0
  298. package/src/lib/googleCloudStorage.ts +21 -0
  299. package/src/lib/inferDocumentFormat.ts +58 -0
  300. package/src/lib/legal.ts +2 -0
  301. package/src/lib/prisma.ts +40 -1
  302. package/src/models/auth.ts +4 -0
  303. package/src/models/class.ts +3 -2
  304. package/src/models/marketing.ts +10 -2
  305. package/src/models/worksheet.ts +5 -2
  306. package/src/pipelines/aiLabChat.ts +245 -146
  307. package/src/pipelines/aiLabChatContract.ts +59 -69
  308. package/src/pipelines/aiNewtonChat.ts +46 -43
  309. package/src/pipelines/labChatPrompt.ts +115 -90
  310. package/src/routers/_app.ts +2 -0
  311. package/src/routers/auth.ts +13 -0
  312. package/src/routers/discussion.ts +7 -0
  313. package/src/routers/embedding.ts +164 -0
  314. package/src/routers/search.ts +10 -1
  315. package/src/routers/user.ts +26 -0
  316. package/src/routers/worksheet.ts +27 -0
  317. package/src/routes/aiStream.ts +827 -0
  318. package/src/seedDatabase.ts +4 -4
  319. package/src/services/aiChatStream.ts +341 -0
  320. package/src/services/aiModifierTools.ts +341 -0
  321. package/src/services/aiProposalTools.ts +274 -0
  322. package/src/services/aiStream.ts +175 -0
  323. package/src/services/aiTools.ts +290 -0
  324. package/src/services/announcement.ts +7 -0
  325. package/src/services/assignment.ts +31 -7
  326. package/src/services/auth.ts +14 -2
  327. package/src/services/class.ts +27 -2
  328. package/src/services/discussion.ts +22 -8
  329. package/src/services/discussionSummary.ts +226 -0
  330. package/src/services/embedding.ts +446 -0
  331. package/src/services/folder.ts +31 -0
  332. package/src/services/marketing.ts +3 -3
  333. package/src/services/message.ts +2 -2
  334. package/src/services/openaiDocumentGen.ts +319 -0
  335. package/src/services/search.ts +163 -1
  336. package/src/services/user.ts +9 -17
  337. package/src/services/userPrivacy.ts +196 -0
  338. package/src/services/worksheet.ts +77 -3
  339. package/src/utils/email.ts +5 -1
  340. package/src/utils/streamBroadcast.ts +48 -0
  341. package/src/workers/connection.ts +19 -0
  342. package/src/workers/index.ts +2 -0
  343. package/src/workers/processors/createRunJobWorker.ts +32 -6
  344. package/src/workers/processors/embedContent.ts +86 -0
  345. package/src/workers/queues.ts +5 -1
  346. package/tests/helpers/registerInput.ts +20 -0
  347. package/tests/integration/globalSetup.ts +10 -18
  348. package/tests/integration/routers/auth.test.ts +13 -18
  349. package/tests/unit/lib/inferDocumentFormat.test.ts +33 -0
  350. package/tests/unit/pipelines/aiLabChatContract.test.ts +38 -21
  351. package/tests/unit/pipelines/labChatPrompt.test.ts +23 -36
  352. package/tests/unit/services/aiChatStream.test.ts +92 -0
  353. package/tests/unit/services/openaiDocumentGen.test.ts +65 -0
  354. package/prisma/migrations/20250807062924_init/migration.sql +0 -436
  355. package/prisma/migrations/20250919063704_init2/migration.sql +0 -24
  356. package/prisma/migrations/20250920143543_add_profile_fields/migration.sql +0 -15
  357. package/prisma/migrations/20250922165147_add_chat_models/migration.sql +0 -68
  358. package/prisma/migrations/20250922165314_add_chat_roles/migration.sql +0 -5
  359. package/prisma/migrations/20250922171242_refactor_notification_system/migration.sql +0 -20
  360. package/prisma/migrations/20250922172208_add_mentions_system/migration.sql +0 -21
  361. package/prisma/migrations/20250925072732_add_lab_chat_system/migration.sql +0 -25
  362. package/prisma/migrations/20251020151505_add_upload_tracking_fields/migration.sql +0 -57
  363. package/prisma/migrations/20251109122857_annuoncements_comments/migration.sql +0 -30
  364. package/prisma/migrations/20251109135555_reactions_announcements_comments/migration.sql +0 -35
  365. package/prisma/migrations/20260410124000_add_submission_recommendation_state/migration.sql +0 -14
  366. package/prisma/migrations/20260415103500_add_session_type/migration.sql +0 -33
  367. package/prisma/migrations/20260415133000_add_ai_usage_logs/migration.sql +0 -19
  368. package/prisma/migrations/20260417083000_add_conversation_member_hidden_at/migration.sql +0 -2
  369. package/prisma/migrations/20260502230500_assignment_submission_comments/migration.sql +0 -60
  370. package/prisma/migrations/20260504071500_school_memberships/migration.sql +0 -81
  371. package/prisma/migrations/20260506162500_consolidate_run_job_and_unify_job_status/migration.sql +0 -166
  372. package/prisma/migrations/20260509220000_institution_overhaul/migration.sql +0 -184
  373. package/prisma/migrations/20260510170000_add_folder_permissions/migration.sql +0 -93
  374. package/prisma/migrations/20260510183000_add_discussions/migration.sql +0 -151
  375. /package/.github/workflows/{npm.yml → npm-publish.yml} +0 -0
@@ -2,27 +2,35 @@ export declare function assignmentExists(id: string): Promise<boolean>;
2
2
  export declare function getDueToday(): Promise<{
3
3
  dueDate: string;
4
4
  type: import(".prisma/client").$Enums.AssignmentType;
5
- id: string;
6
5
  class: {
7
- name: string;
8
6
  id: string;
7
+ name: string;
9
8
  };
9
+ id: string;
10
10
  title: string;
11
- graded: boolean;
12
11
  maxGrade: number | null;
12
+ graded: boolean;
13
13
  }[]>;
14
14
  export declare function getAssignment(id: string, _classId: string): Promise<{
15
15
  sections: {
16
- name: string;
17
16
  id: string;
17
+ name: string;
18
18
  }[];
19
19
  class: {
20
- name: string;
21
20
  id: string;
21
+ name: string;
22
22
  };
23
+ markScheme: {
24
+ id: string;
25
+ structured: string;
26
+ } | null;
27
+ gradingBoundary: {
28
+ id: string;
29
+ structured: string;
30
+ } | null;
23
31
  section: {
24
- name: string;
25
32
  id: string;
33
+ name: string;
26
34
  } | null;
27
35
  submissions: {
28
36
  student: {
@@ -30,48 +38,42 @@ export declare function getAssignment(id: string, _classId: string): Promise<{
30
38
  username: string;
31
39
  };
32
40
  }[];
33
- markScheme: {
34
- id: string;
35
- structured: string;
36
- } | null;
37
- gradingBoundary: {
38
- id: string;
39
- structured: string;
40
- } | null;
41
41
  worksheets: {
42
- name: string;
43
42
  id: string;
43
+ name: string;
44
44
  }[];
45
- teacher: {
46
- id: string;
47
- username: string;
48
- };
49
45
  attachments: {
50
46
  path: string;
51
47
  type: string;
52
- name: string;
53
48
  id: string;
49
+ name: string;
54
50
  size: number | null;
55
51
  uploadedAt: Date | null;
56
52
  thumbnailId: string | null;
57
53
  }[];
54
+ teacher: {
55
+ id: string;
56
+ username: string;
57
+ };
58
58
  eventAttached: {
59
- name: string | null;
60
59
  id: string;
60
+ location: string | null;
61
+ name: string | null;
61
62
  color: string | null;
62
63
  startTime: Date;
63
64
  endTime: Date;
64
- location: string | null;
65
65
  remarks: string | null;
66
66
  } | null;
67
67
  type: import(".prisma/client").$Enums.AssignmentType;
68
68
  id: string;
69
69
  createdAt: Date | null;
70
70
  classId: string;
71
- modifiedAt: Date | null;
72
71
  title: string;
73
- instructions: string;
74
72
  dueDate: Date;
73
+ maxGrade: number | null;
74
+ eventId: string | null;
75
+ instructions: string;
76
+ modifiedAt: Date | null;
75
77
  teacherId: string;
76
78
  acceptFiles: boolean;
77
79
  acceptExtendedResponse: boolean;
@@ -80,11 +82,9 @@ export declare function getAssignment(id: string, _classId: string): Promise<{
80
82
  aiPolicyLevel: number;
81
83
  sectionId: string | null;
82
84
  graded: boolean;
83
- maxGrade: number | null;
84
85
  weight: number;
85
86
  inProgress: boolean;
86
87
  template: boolean;
87
- eventId: string | null;
88
88
  markSchemeId: string | null;
89
89
  order: number | null;
90
90
  gradingBoundaryId: string | null;
@@ -93,12 +93,12 @@ export declare function getSubmission(assignmentId: string, studentId: string):
93
93
  late: boolean;
94
94
  assignment: {
95
95
  class: {
96
- name: string;
96
+ section: string;
97
97
  id: string;
98
+ name: string;
98
99
  schoolId: string | null;
99
- subject: string;
100
100
  color: string | null;
101
- section: string;
101
+ subject: string;
102
102
  syllabus: string | null;
103
103
  departmentId: string | null;
104
104
  discussionsEnabled: boolean;
@@ -114,18 +114,20 @@ export declare function getSubmission(assignmentId: string, studentId: string):
114
114
  structured: string;
115
115
  } | null;
116
116
  worksheets: {
117
- name: string;
118
117
  id: string;
118
+ name: string;
119
119
  }[];
120
120
  } & {
121
121
  type: import(".prisma/client").$Enums.AssignmentType;
122
122
  id: string;
123
123
  createdAt: Date | null;
124
124
  classId: string;
125
- modifiedAt: Date | null;
126
125
  title: string;
127
- instructions: string;
128
126
  dueDate: Date;
127
+ maxGrade: number | null;
128
+ eventId: string | null;
129
+ instructions: string;
130
+ modifiedAt: Date | null;
129
131
  teacherId: string;
130
132
  acceptFiles: boolean;
131
133
  acceptExtendedResponse: boolean;
@@ -134,24 +136,26 @@ export declare function getSubmission(assignmentId: string, studentId: string):
134
136
  aiPolicyLevel: number;
135
137
  sectionId: string | null;
136
138
  graded: boolean;
137
- maxGrade: number | null;
138
139
  weight: number;
139
140
  inProgress: boolean;
140
141
  template: boolean;
141
- eventId: string | null;
142
142
  markSchemeId: string | null;
143
143
  order: number | null;
144
144
  gradingBoundaryId: string | null;
145
145
  };
146
- annotations: {
146
+ attachments: {
147
147
  path: string;
148
148
  type: string;
149
- name: string;
150
149
  id: string;
151
150
  userId: string | null;
152
- folderId: string | null;
151
+ name: string;
153
152
  size: number | null;
154
153
  uploadedAt: Date | null;
154
+ assignmentId: string | null;
155
+ submissionId: string | null;
156
+ thumbnailId: string | null;
157
+ annotationId: string | null;
158
+ conversationId: string | null;
155
159
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
156
160
  uploadUrl: string | null;
157
161
  uploadExpiresAt: Date | null;
@@ -161,27 +165,27 @@ export declare function getSubmission(assignmentId: string, studentId: string):
161
165
  uploadRetryCount: number;
162
166
  isOrphaned: boolean;
163
167
  cleanupAt: Date | null;
164
- thumbnailId: string | null;
165
- assignmentId: string | null;
166
- submissionId: string | null;
167
- annotationId: string | null;
168
168
  classDraftId: string | null;
169
- conversationId: string | null;
169
+ folderId: string | null;
170
170
  messageId: string | null;
171
171
  announcementId: string | null;
172
172
  discussionId: string | null;
173
173
  discussionReplyId: string | null;
174
174
  schoolDevelopementProgramId: string | null;
175
175
  }[];
176
- attachments: {
176
+ annotations: {
177
177
  path: string;
178
178
  type: string;
179
- name: string;
180
179
  id: string;
181
180
  userId: string | null;
182
- folderId: string | null;
181
+ name: string;
183
182
  size: number | null;
184
183
  uploadedAt: Date | null;
184
+ assignmentId: string | null;
185
+ submissionId: string | null;
186
+ thumbnailId: string | null;
187
+ annotationId: string | null;
188
+ conversationId: string | null;
185
189
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
186
190
  uploadUrl: string | null;
187
191
  uploadExpiresAt: Date | null;
@@ -191,12 +195,8 @@ export declare function getSubmission(assignmentId: string, studentId: string):
191
195
  uploadRetryCount: number;
192
196
  isOrphaned: boolean;
193
197
  cleanupAt: Date | null;
194
- thumbnailId: string | null;
195
- assignmentId: string | null;
196
- submissionId: string | null;
197
- annotationId: string | null;
198
198
  classDraftId: string | null;
199
- conversationId: string | null;
199
+ folderId: string | null;
200
200
  messageId: string | null;
201
201
  announcementId: string | null;
202
202
  discussionId: string | null;
@@ -210,8 +210,8 @@ export declare function getSubmission(assignmentId: string, studentId: string):
210
210
  id: string;
211
211
  createdAt: Date;
212
212
  assignmentId: string;
213
- modifiedAt: Date;
214
213
  studentId: string;
214
+ modifiedAt: Date;
215
215
  extendedResponse: string | null;
216
216
  gradeReceived: number | null;
217
217
  recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
@@ -227,12 +227,12 @@ export declare function getSubmissionById(submissionId: string, classId: string,
227
227
  late: boolean;
228
228
  assignment: {
229
229
  class: {
230
- name: string;
230
+ section: string;
231
231
  id: string;
232
+ name: string;
232
233
  schoolId: string | null;
233
- subject: string;
234
234
  color: string | null;
235
- section: string;
235
+ subject: string;
236
236
  syllabus: string | null;
237
237
  departmentId: string | null;
238
238
  discussionsEnabled: boolean;
@@ -248,18 +248,20 @@ export declare function getSubmissionById(submissionId: string, classId: string,
248
248
  structured: string;
249
249
  } | null;
250
250
  worksheets: {
251
- name: string;
252
251
  id: string;
252
+ name: string;
253
253
  }[];
254
254
  } & {
255
255
  type: import(".prisma/client").$Enums.AssignmentType;
256
256
  id: string;
257
257
  createdAt: Date | null;
258
258
  classId: string;
259
- modifiedAt: Date | null;
260
259
  title: string;
261
- instructions: string;
262
260
  dueDate: Date;
261
+ maxGrade: number | null;
262
+ eventId: string | null;
263
+ instructions: string;
264
+ modifiedAt: Date | null;
263
265
  teacherId: string;
264
266
  acceptFiles: boolean;
265
267
  acceptExtendedResponse: boolean;
@@ -268,24 +270,26 @@ export declare function getSubmissionById(submissionId: string, classId: string,
268
270
  aiPolicyLevel: number;
269
271
  sectionId: string | null;
270
272
  graded: boolean;
271
- maxGrade: number | null;
272
273
  weight: number;
273
274
  inProgress: boolean;
274
275
  template: boolean;
275
- eventId: string | null;
276
276
  markSchemeId: string | null;
277
277
  order: number | null;
278
278
  gradingBoundaryId: string | null;
279
279
  };
280
- annotations: {
280
+ attachments: {
281
281
  path: string;
282
282
  type: string;
283
- name: string;
284
283
  id: string;
285
284
  userId: string | null;
286
- folderId: string | null;
285
+ name: string;
287
286
  size: number | null;
288
287
  uploadedAt: Date | null;
288
+ assignmentId: string | null;
289
+ submissionId: string | null;
290
+ thumbnailId: string | null;
291
+ annotationId: string | null;
292
+ conversationId: string | null;
289
293
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
290
294
  uploadUrl: string | null;
291
295
  uploadExpiresAt: Date | null;
@@ -295,27 +299,27 @@ export declare function getSubmissionById(submissionId: string, classId: string,
295
299
  uploadRetryCount: number;
296
300
  isOrphaned: boolean;
297
301
  cleanupAt: Date | null;
298
- thumbnailId: string | null;
299
- assignmentId: string | null;
300
- submissionId: string | null;
301
- annotationId: string | null;
302
302
  classDraftId: string | null;
303
- conversationId: string | null;
303
+ folderId: string | null;
304
304
  messageId: string | null;
305
305
  announcementId: string | null;
306
306
  discussionId: string | null;
307
307
  discussionReplyId: string | null;
308
308
  schoolDevelopementProgramId: string | null;
309
309
  }[];
310
- attachments: {
310
+ annotations: {
311
311
  path: string;
312
312
  type: string;
313
- name: string;
314
313
  id: string;
315
314
  userId: string | null;
316
- folderId: string | null;
315
+ name: string;
317
316
  size: number | null;
318
317
  uploadedAt: Date | null;
318
+ assignmentId: string | null;
319
+ submissionId: string | null;
320
+ thumbnailId: string | null;
321
+ annotationId: string | null;
322
+ conversationId: string | null;
319
323
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
320
324
  uploadUrl: string | null;
321
325
  uploadExpiresAt: Date | null;
@@ -325,12 +329,8 @@ export declare function getSubmissionById(submissionId: string, classId: string,
325
329
  uploadRetryCount: number;
326
330
  isOrphaned: boolean;
327
331
  cleanupAt: Date | null;
328
- thumbnailId: string | null;
329
- assignmentId: string | null;
330
- submissionId: string | null;
331
- annotationId: string | null;
332
332
  classDraftId: string | null;
333
- conversationId: string | null;
333
+ folderId: string | null;
334
334
  messageId: string | null;
335
335
  announcementId: string | null;
336
336
  discussionId: string | null;
@@ -342,13 +342,13 @@ export declare function getSubmissionById(submissionId: string, classId: string,
342
342
  username: string;
343
343
  profile: {
344
344
  id: string;
345
- createdAt: Date;
346
- updatedAt: Date;
347
345
  userId: string;
348
- location: string | null;
349
346
  displayName: string | null;
350
347
  bio: string | null;
348
+ location: string | null;
351
349
  website: string | null;
350
+ createdAt: Date;
351
+ updatedAt: Date;
352
352
  profilePicture: string | null;
353
353
  profilePictureThumbnail: string | null;
354
354
  } | null;
@@ -356,8 +356,8 @@ export declare function getSubmissionById(submissionId: string, classId: string,
356
356
  id: string;
357
357
  createdAt: Date;
358
358
  assignmentId: string;
359
- modifiedAt: Date;
360
359
  studentId: string;
360
+ modifiedAt: Date;
361
361
  extendedResponse: string | null;
362
362
  gradeReceived: number | null;
363
363
  recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
@@ -373,12 +373,12 @@ export declare function getSubmissions(assignmentId: string, teacherId: string):
373
373
  late: boolean;
374
374
  assignment: {
375
375
  class: {
376
- name: string;
376
+ section: string;
377
377
  id: string;
378
+ name: string;
378
379
  schoolId: string | null;
379
- subject: string;
380
380
  color: string | null;
381
- section: string;
381
+ subject: string;
382
382
  syllabus: string | null;
383
383
  departmentId: string | null;
384
384
  discussionsEnabled: boolean;
@@ -398,10 +398,12 @@ export declare function getSubmissions(assignmentId: string, teacherId: string):
398
398
  id: string;
399
399
  createdAt: Date | null;
400
400
  classId: string;
401
- modifiedAt: Date | null;
402
401
  title: string;
403
- instructions: string;
404
402
  dueDate: Date;
403
+ maxGrade: number | null;
404
+ eventId: string | null;
405
+ instructions: string;
406
+ modifiedAt: Date | null;
405
407
  teacherId: string;
406
408
  acceptFiles: boolean;
407
409
  acceptExtendedResponse: boolean;
@@ -410,11 +412,9 @@ export declare function getSubmissions(assignmentId: string, teacherId: string):
410
412
  aiPolicyLevel: number;
411
413
  sectionId: string | null;
412
414
  graded: boolean;
413
- maxGrade: number | null;
414
415
  weight: number;
415
416
  inProgress: boolean;
416
417
  template: boolean;
417
- eventId: string | null;
418
418
  markSchemeId: string | null;
419
419
  order: number | null;
420
420
  gradingBoundaryId: string | null;
@@ -423,12 +423,16 @@ export declare function getSubmissions(assignmentId: string, teacherId: string):
423
423
  thumbnail: {
424
424
  path: string;
425
425
  type: string;
426
- name: string;
427
426
  id: string;
428
427
  userId: string | null;
429
- folderId: string | null;
428
+ name: string;
430
429
  size: number | null;
431
430
  uploadedAt: Date | null;
431
+ assignmentId: string | null;
432
+ submissionId: string | null;
433
+ thumbnailId: string | null;
434
+ annotationId: string | null;
435
+ conversationId: string | null;
432
436
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
433
437
  uploadUrl: string | null;
434
438
  uploadExpiresAt: Date | null;
@@ -438,12 +442,8 @@ export declare function getSubmissions(assignmentId: string, teacherId: string):
438
442
  uploadRetryCount: number;
439
443
  isOrphaned: boolean;
440
444
  cleanupAt: Date | null;
441
- thumbnailId: string | null;
442
- assignmentId: string | null;
443
- submissionId: string | null;
444
- annotationId: string | null;
445
445
  classDraftId: string | null;
446
- conversationId: string | null;
446
+ folderId: string | null;
447
447
  messageId: string | null;
448
448
  announcementId: string | null;
449
449
  discussionId: string | null;
@@ -453,12 +453,16 @@ export declare function getSubmissions(assignmentId: string, teacherId: string):
453
453
  } & {
454
454
  path: string;
455
455
  type: string;
456
- name: string;
457
456
  id: string;
458
457
  userId: string | null;
459
- folderId: string | null;
458
+ name: string;
460
459
  size: number | null;
461
460
  uploadedAt: Date | null;
461
+ assignmentId: string | null;
462
+ submissionId: string | null;
463
+ thumbnailId: string | null;
464
+ annotationId: string | null;
465
+ conversationId: string | null;
462
466
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
463
467
  uploadUrl: string | null;
464
468
  uploadExpiresAt: Date | null;
@@ -468,12 +472,8 @@ export declare function getSubmissions(assignmentId: string, teacherId: string):
468
472
  uploadRetryCount: number;
469
473
  isOrphaned: boolean;
470
474
  cleanupAt: Date | null;
471
- thumbnailId: string | null;
472
- assignmentId: string | null;
473
- submissionId: string | null;
474
- annotationId: string | null;
475
475
  classDraftId: string | null;
476
- conversationId: string | null;
476
+ folderId: string | null;
477
477
  messageId: string | null;
478
478
  announcementId: string | null;
479
479
  discussionId: string | null;
@@ -484,16 +484,16 @@ export declare function getSubmissions(assignmentId: string, teacherId: string):
484
484
  id: string;
485
485
  username: string;
486
486
  profile: {
487
- displayName: string | null;
488
487
  profilePicture: string | null;
488
+ displayName: string | null;
489
489
  profilePictureThumbnail: string | null;
490
490
  } | null;
491
491
  };
492
492
  id: string;
493
493
  createdAt: Date;
494
494
  assignmentId: string;
495
- modifiedAt: Date;
496
495
  studentId: string;
496
+ modifiedAt: Date;
497
497
  extendedResponse: string | null;
498
498
  gradeReceived: number | null;
499
499
  recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
@@ -535,30 +535,30 @@ export declare function createAssignmentRecord(userId: string, input: {
535
535
  sourceAssignmentId?: string;
536
536
  }): Promise<{
537
537
  type: import(".prisma/client").$Enums.AssignmentType;
538
- id: string;
539
538
  class: {
540
- name: string;
541
539
  id: string;
540
+ name: string;
542
541
  };
543
542
  section: {
544
- name: string;
545
543
  id: string;
544
+ name: string;
546
545
  } | null;
546
+ id: string;
547
547
  title: string;
548
- instructions: string;
549
548
  dueDate: Date;
550
- graded: boolean;
551
549
  maxGrade: number | null;
550
+ attachments: {
551
+ type: string;
552
+ id: string;
553
+ name: string;
554
+ }[];
555
+ instructions: string;
556
+ graded: boolean;
552
557
  weight: number;
553
558
  teacher: {
554
559
  id: string;
555
560
  username: string;
556
561
  };
557
- attachments: {
558
- type: string;
559
- name: string;
560
- id: string;
561
- }[];
562
562
  }>;
563
563
  /**
564
564
  * Duplicate an assignment into another class. Caller must teach both the source assignment’s
@@ -569,10 +569,12 @@ export declare function duplicateAssignmentRecord(assignmentId: string, classId:
569
569
  id: string;
570
570
  createdAt: Date | null;
571
571
  classId: string;
572
- modifiedAt: Date | null;
573
572
  title: string;
574
- instructions: string;
575
573
  dueDate: Date;
574
+ maxGrade: number | null;
575
+ eventId: string | null;
576
+ instructions: string;
577
+ modifiedAt: Date | null;
576
578
  teacherId: string;
577
579
  acceptFiles: boolean;
578
580
  acceptExtendedResponse: boolean;
@@ -581,11 +583,9 @@ export declare function duplicateAssignmentRecord(assignmentId: string, classId:
581
583
  aiPolicyLevel: number;
582
584
  sectionId: string | null;
583
585
  graded: boolean;
584
- maxGrade: number | null;
585
586
  weight: number;
586
587
  inProgress: boolean;
587
588
  template: boolean;
588
- eventId: string | null;
589
589
  markSchemeId: string | null;
590
590
  order: number | null;
591
591
  gradingBoundaryId: string | null;
@@ -618,15 +618,13 @@ export declare function updateAssignmentRecord(userId: string, input: {
618
618
  studentIds?: string[];
619
619
  }): Promise<{
620
620
  type: import(".prisma/client").$Enums.AssignmentType;
621
- id: string;
622
- createdAt: Date | null;
623
621
  class: {
624
- name: string;
622
+ section: string;
625
623
  id: string;
624
+ name: string;
626
625
  schoolId: string | null;
627
- subject: string;
628
626
  color: string | null;
629
- section: string;
627
+ subject: string;
630
628
  syllabus: string | null;
631
629
  departmentId: string | null;
632
630
  discussionsEnabled: boolean;
@@ -634,12 +632,14 @@ export declare function updateAssignmentRecord(userId: string, input: {
634
632
  studentsCanReply: boolean;
635
633
  };
636
634
  section: {
637
- name: string;
638
635
  id: string;
636
+ name: string;
639
637
  color: string | null;
640
638
  classId: string;
641
639
  order: number | null;
642
640
  } | null;
641
+ id: string;
642
+ createdAt: Date | null;
643
643
  submissions: {
644
644
  student: {
645
645
  id: string;
@@ -647,37 +647,28 @@ export declare function updateAssignmentRecord(userId: string, input: {
647
647
  };
648
648
  }[];
649
649
  title: string;
650
- instructions: string;
651
650
  dueDate: Date;
652
- graded: boolean;
653
651
  maxGrade: number | null;
654
- weight: number;
655
- markSchemeId: string | null;
656
- teacher: {
657
- id: string;
658
- username: string;
659
- email: string;
660
- password: string;
661
- verified: boolean;
662
- schoolId: string | null;
663
- };
664
652
  attachments: {
665
653
  path: string;
666
654
  type: string;
667
- name: string;
668
655
  id: string;
656
+ name: string;
669
657
  size: number | null;
670
658
  uploadedAt: Date | null;
671
- thumbnailId: string | null;
672
659
  thumbnail: {
673
660
  path: string;
674
661
  type: string;
675
- name: string;
676
662
  id: string;
677
663
  userId: string | null;
678
- folderId: string | null;
664
+ name: string;
679
665
  size: number | null;
680
666
  uploadedAt: Date | null;
667
+ assignmentId: string | null;
668
+ submissionId: string | null;
669
+ thumbnailId: string | null;
670
+ annotationId: string | null;
671
+ conversationId: string | null;
681
672
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
682
673
  uploadUrl: string | null;
683
674
  uploadExpiresAt: Date | null;
@@ -687,19 +678,30 @@ export declare function updateAssignmentRecord(userId: string, input: {
687
678
  uploadRetryCount: number;
688
679
  isOrphaned: boolean;
689
680
  cleanupAt: Date | null;
690
- thumbnailId: string | null;
691
- assignmentId: string | null;
692
- submissionId: string | null;
693
- annotationId: string | null;
694
681
  classDraftId: string | null;
695
- conversationId: string | null;
682
+ folderId: string | null;
696
683
  messageId: string | null;
697
684
  announcementId: string | null;
698
685
  discussionId: string | null;
699
686
  discussionReplyId: string | null;
700
687
  schoolDevelopementProgramId: string | null;
701
688
  } | null;
689
+ thumbnailId: string | null;
702
690
  }[];
691
+ instructions: string;
692
+ graded: boolean;
693
+ weight: number;
694
+ markSchemeId: string | null;
695
+ teacher: {
696
+ id: string;
697
+ username: string;
698
+ email: string;
699
+ password: string;
700
+ verified: boolean;
701
+ termsAcceptedAt: Date | null;
702
+ termsVersion: string | null;
703
+ schoolId: string | null;
704
+ };
703
705
  }>;
704
706
  export declare function deleteAssignmentRecord(userId: string, id: string, _classId: string): Promise<{
705
707
  id: string;
@@ -720,12 +722,12 @@ export declare function updateSubmissionRecord(userId: string, input: {
720
722
  }): Promise<{
721
723
  assignment: {
722
724
  class: {
723
- name: string;
725
+ section: string;
724
726
  id: string;
727
+ name: string;
725
728
  schoolId: string | null;
726
- subject: string;
727
729
  color: string | null;
728
- section: string;
730
+ subject: string;
729
731
  syllabus: string | null;
730
732
  departmentId: string | null;
731
733
  discussionsEnabled: boolean;
@@ -745,10 +747,12 @@ export declare function updateSubmissionRecord(userId: string, input: {
745
747
  id: string;
746
748
  createdAt: Date | null;
747
749
  classId: string;
748
- modifiedAt: Date | null;
749
750
  title: string;
750
- instructions: string;
751
751
  dueDate: Date;
752
+ maxGrade: number | null;
753
+ eventId: string | null;
754
+ instructions: string;
755
+ modifiedAt: Date | null;
752
756
  teacherId: string;
753
757
  acceptFiles: boolean;
754
758
  acceptExtendedResponse: boolean;
@@ -757,11 +761,9 @@ export declare function updateSubmissionRecord(userId: string, input: {
757
761
  aiPolicyLevel: number;
758
762
  sectionId: string | null;
759
763
  graded: boolean;
760
- maxGrade: number | null;
761
764
  weight: number;
762
765
  inProgress: boolean;
763
766
  template: boolean;
764
- eventId: string | null;
765
767
  markSchemeId: string | null;
766
768
  order: number | null;
767
769
  gradingBoundaryId: string | null;
@@ -769,12 +771,16 @@ export declare function updateSubmissionRecord(userId: string, input: {
769
771
  attachments: {
770
772
  path: string;
771
773
  type: string;
772
- name: string;
773
774
  id: string;
774
775
  userId: string | null;
775
- folderId: string | null;
776
+ name: string;
776
777
  size: number | null;
777
778
  uploadedAt: Date | null;
779
+ assignmentId: string | null;
780
+ submissionId: string | null;
781
+ thumbnailId: string | null;
782
+ annotationId: string | null;
783
+ conversationId: string | null;
778
784
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
779
785
  uploadUrl: string | null;
780
786
  uploadExpiresAt: Date | null;
@@ -784,12 +790,8 @@ export declare function updateSubmissionRecord(userId: string, input: {
784
790
  uploadRetryCount: number;
785
791
  isOrphaned: boolean;
786
792
  cleanupAt: Date | null;
787
- thumbnailId: string | null;
788
- assignmentId: string | null;
789
- submissionId: string | null;
790
- annotationId: string | null;
791
793
  classDraftId: string | null;
792
- conversationId: string | null;
794
+ folderId: string | null;
793
795
  messageId: string | null;
794
796
  announcementId: string | null;
795
797
  discussionId: string | null;
@@ -804,8 +806,8 @@ export declare function updateSubmissionRecord(userId: string, input: {
804
806
  id: string;
805
807
  createdAt: Date;
806
808
  assignmentId: string;
807
- modifiedAt: Date;
808
809
  studentId: string;
810
+ modifiedAt: Date;
809
811
  extendedResponse: string | null;
810
812
  gradeReceived: number | null;
811
813
  recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
@@ -840,12 +842,12 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
840
842
  }): Promise<{
841
843
  assignment: {
842
844
  class: {
843
- name: string;
845
+ section: string;
844
846
  id: string;
847
+ name: string;
845
848
  schoolId: string | null;
846
- subject: string;
847
849
  color: string | null;
848
- section: string;
850
+ subject: string;
849
851
  syllabus: string | null;
850
852
  departmentId: string | null;
851
853
  discussionsEnabled: boolean;
@@ -865,10 +867,12 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
865
867
  id: string;
866
868
  createdAt: Date | null;
867
869
  classId: string;
868
- modifiedAt: Date | null;
869
870
  title: string;
870
- instructions: string;
871
871
  dueDate: Date;
872
+ maxGrade: number | null;
873
+ eventId: string | null;
874
+ instructions: string;
875
+ modifiedAt: Date | null;
872
876
  teacherId: string;
873
877
  acceptFiles: boolean;
874
878
  acceptExtendedResponse: boolean;
@@ -877,25 +881,27 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
877
881
  aiPolicyLevel: number;
878
882
  sectionId: string | null;
879
883
  graded: boolean;
880
- maxGrade: number | null;
881
884
  weight: number;
882
885
  inProgress: boolean;
883
886
  template: boolean;
884
- eventId: string | null;
885
887
  markSchemeId: string | null;
886
888
  order: number | null;
887
889
  gradingBoundaryId: string | null;
888
890
  };
889
- annotations: ({
891
+ attachments: ({
890
892
  thumbnail: {
891
893
  path: string;
892
894
  type: string;
893
- name: string;
894
895
  id: string;
895
896
  userId: string | null;
896
- folderId: string | null;
897
+ name: string;
897
898
  size: number | null;
898
899
  uploadedAt: Date | null;
900
+ assignmentId: string | null;
901
+ submissionId: string | null;
902
+ thumbnailId: string | null;
903
+ annotationId: string | null;
904
+ conversationId: string | null;
899
905
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
900
906
  uploadUrl: string | null;
901
907
  uploadExpiresAt: Date | null;
@@ -905,12 +911,8 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
905
911
  uploadRetryCount: number;
906
912
  isOrphaned: boolean;
907
913
  cleanupAt: Date | null;
908
- thumbnailId: string | null;
909
- assignmentId: string | null;
910
- submissionId: string | null;
911
- annotationId: string | null;
912
914
  classDraftId: string | null;
913
- conversationId: string | null;
915
+ folderId: string | null;
914
916
  messageId: string | null;
915
917
  announcementId: string | null;
916
918
  discussionId: string | null;
@@ -920,12 +922,16 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
920
922
  } & {
921
923
  path: string;
922
924
  type: string;
923
- name: string;
924
925
  id: string;
925
926
  userId: string | null;
926
- folderId: string | null;
927
+ name: string;
927
928
  size: number | null;
928
929
  uploadedAt: Date | null;
930
+ assignmentId: string | null;
931
+ submissionId: string | null;
932
+ thumbnailId: string | null;
933
+ annotationId: string | null;
934
+ conversationId: string | null;
929
935
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
930
936
  uploadUrl: string | null;
931
937
  uploadExpiresAt: Date | null;
@@ -935,28 +941,28 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
935
941
  uploadRetryCount: number;
936
942
  isOrphaned: boolean;
937
943
  cleanupAt: Date | null;
938
- thumbnailId: string | null;
939
- assignmentId: string | null;
940
- submissionId: string | null;
941
- annotationId: string | null;
942
944
  classDraftId: string | null;
943
- conversationId: string | null;
945
+ folderId: string | null;
944
946
  messageId: string | null;
945
947
  announcementId: string | null;
946
948
  discussionId: string | null;
947
949
  discussionReplyId: string | null;
948
950
  schoolDevelopementProgramId: string | null;
949
951
  })[];
950
- attachments: ({
952
+ annotations: ({
951
953
  thumbnail: {
952
954
  path: string;
953
955
  type: string;
954
- name: string;
955
956
  id: string;
956
957
  userId: string | null;
957
- folderId: string | null;
958
+ name: string;
958
959
  size: number | null;
959
960
  uploadedAt: Date | null;
961
+ assignmentId: string | null;
962
+ submissionId: string | null;
963
+ thumbnailId: string | null;
964
+ annotationId: string | null;
965
+ conversationId: string | null;
960
966
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
961
967
  uploadUrl: string | null;
962
968
  uploadExpiresAt: Date | null;
@@ -966,12 +972,8 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
966
972
  uploadRetryCount: number;
967
973
  isOrphaned: boolean;
968
974
  cleanupAt: Date | null;
969
- thumbnailId: string | null;
970
- assignmentId: string | null;
971
- submissionId: string | null;
972
- annotationId: string | null;
973
975
  classDraftId: string | null;
974
- conversationId: string | null;
976
+ folderId: string | null;
975
977
  messageId: string | null;
976
978
  announcementId: string | null;
977
979
  discussionId: string | null;
@@ -981,12 +983,16 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
981
983
  } & {
982
984
  path: string;
983
985
  type: string;
984
- name: string;
985
986
  id: string;
986
987
  userId: string | null;
987
- folderId: string | null;
988
+ name: string;
988
989
  size: number | null;
989
990
  uploadedAt: Date | null;
991
+ assignmentId: string | null;
992
+ submissionId: string | null;
993
+ thumbnailId: string | null;
994
+ annotationId: string | null;
995
+ conversationId: string | null;
990
996
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
991
997
  uploadUrl: string | null;
992
998
  uploadExpiresAt: Date | null;
@@ -996,12 +1002,8 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
996
1002
  uploadRetryCount: number;
997
1003
  isOrphaned: boolean;
998
1004
  cleanupAt: Date | null;
999
- thumbnailId: string | null;
1000
- assignmentId: string | null;
1001
- submissionId: string | null;
1002
- annotationId: string | null;
1003
1005
  classDraftId: string | null;
1004
- conversationId: string | null;
1006
+ folderId: string | null;
1005
1007
  messageId: string | null;
1006
1008
  announcementId: string | null;
1007
1009
  discussionId: string | null;
@@ -1012,8 +1014,8 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
1012
1014
  id: string;
1013
1015
  username: string;
1014
1016
  profile: {
1015
- displayName: string | null;
1016
1017
  profilePicture: string | null;
1018
+ displayName: string | null;
1017
1019
  profilePictureThumbnail: string | null;
1018
1020
  } | null;
1019
1021
  };
@@ -1021,8 +1023,8 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
1021
1023
  id: string;
1022
1024
  createdAt: Date;
1023
1025
  assignmentId: string;
1024
- modifiedAt: Date;
1025
1026
  studentId: string;
1027
+ modifiedAt: Date;
1026
1028
  extendedResponse: string | null;
1027
1029
  gradeReceived: number | null;
1028
1030
  recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
@@ -1037,21 +1039,21 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
1037
1039
  export declare function attachAssignmentToEventRecord(teacherId: string, assignmentId: string, eventId: string): Promise<{
1038
1040
  assignment: {
1039
1041
  section: {
1040
- name: string;
1041
1042
  id: string;
1043
+ name: string;
1042
1044
  } | null;
1043
- teacher: {
1044
- id: string;
1045
- username: string;
1046
- };
1047
1045
  attachments: {
1048
1046
  type: string;
1049
- name: string;
1050
1047
  id: string;
1048
+ name: string;
1051
1049
  }[];
1050
+ teacher: {
1051
+ id: string;
1052
+ username: string;
1053
+ };
1052
1054
  eventAttached: {
1053
- name: string | null;
1054
1055
  id: string;
1056
+ name: string | null;
1055
1057
  color: string | null;
1056
1058
  startTime: Date;
1057
1059
  endTime: Date;
@@ -1061,10 +1063,12 @@ export declare function attachAssignmentToEventRecord(teacherId: string, assignm
1061
1063
  id: string;
1062
1064
  createdAt: Date | null;
1063
1065
  classId: string;
1064
- modifiedAt: Date | null;
1065
1066
  title: string;
1066
- instructions: string;
1067
1067
  dueDate: Date;
1068
+ maxGrade: number | null;
1069
+ eventId: string | null;
1070
+ instructions: string;
1071
+ modifiedAt: Date | null;
1068
1072
  teacherId: string;
1069
1073
  acceptFiles: boolean;
1070
1074
  acceptExtendedResponse: boolean;
@@ -1073,11 +1077,9 @@ export declare function attachAssignmentToEventRecord(teacherId: string, assignm
1073
1077
  aiPolicyLevel: number;
1074
1078
  sectionId: string | null;
1075
1079
  graded: boolean;
1076
- maxGrade: number | null;
1077
1080
  weight: number;
1078
1081
  inProgress: boolean;
1079
1082
  template: boolean;
1080
- eventId: string | null;
1081
1083
  markSchemeId: string | null;
1082
1084
  order: number | null;
1083
1085
  gradingBoundaryId: string | null;
@@ -1086,21 +1088,21 @@ export declare function attachAssignmentToEventRecord(teacherId: string, assignm
1086
1088
  export declare function detachAssignmentFromEventRecord(teacherId: string, assignmentId: string): Promise<{
1087
1089
  assignment: {
1088
1090
  section: {
1089
- name: string;
1090
1091
  id: string;
1092
+ name: string;
1091
1093
  } | null;
1092
- teacher: {
1093
- id: string;
1094
- username: string;
1095
- };
1096
1094
  attachments: {
1097
1095
  type: string;
1098
- name: string;
1099
1096
  id: string;
1097
+ name: string;
1100
1098
  }[];
1099
+ teacher: {
1100
+ id: string;
1101
+ username: string;
1102
+ };
1101
1103
  eventAttached: {
1102
- name: string | null;
1103
1104
  id: string;
1105
+ name: string | null;
1104
1106
  color: string | null;
1105
1107
  startTime: Date;
1106
1108
  endTime: Date;
@@ -1110,10 +1112,12 @@ export declare function detachAssignmentFromEventRecord(teacherId: string, assig
1110
1112
  id: string;
1111
1113
  createdAt: Date | null;
1112
1114
  classId: string;
1113
- modifiedAt: Date | null;
1114
1115
  title: string;
1115
- instructions: string;
1116
1116
  dueDate: Date;
1117
+ maxGrade: number | null;
1118
+ eventId: string | null;
1119
+ instructions: string;
1120
+ modifiedAt: Date | null;
1117
1121
  teacherId: string;
1118
1122
  acceptFiles: boolean;
1119
1123
  acceptExtendedResponse: boolean;
@@ -1122,11 +1126,9 @@ export declare function detachAssignmentFromEventRecord(teacherId: string, assig
1122
1126
  aiPolicyLevel: number;
1123
1127
  sectionId: string | null;
1124
1128
  graded: boolean;
1125
- maxGrade: number | null;
1126
1129
  weight: number;
1127
1130
  inProgress: boolean;
1128
1131
  template: boolean;
1129
- eventId: string | null;
1130
1132
  markSchemeId: string | null;
1131
1133
  order: number | null;
1132
1134
  gradingBoundaryId: string | null;
@@ -1134,47 +1136,43 @@ export declare function detachAssignmentFromEventRecord(teacherId: string, assig
1134
1136
  }>;
1135
1137
  export declare function getAvailableEventsForAssignment(teacherId: string, assignmentId: string): Promise<{
1136
1138
  events: {
1137
- name: string | null;
1138
1139
  id: string;
1140
+ location: string | null;
1141
+ name: string | null;
1139
1142
  color: string | null;
1140
1143
  startTime: Date;
1141
1144
  endTime: Date;
1142
- location: string | null;
1143
1145
  remarks: string | null;
1144
1146
  }[];
1145
1147
  }>;
1146
1148
  export declare function attachMarkSchemeRecord(teacherId: string, assignmentId: string, markSchemeId: string | null): Promise<{
1147
- section: {
1148
- name: string;
1149
- id: string;
1150
- color: string | null;
1151
- classId: string;
1152
- order: number | null;
1153
- } | null;
1154
1149
  markScheme: {
1155
- name: string | null;
1156
1150
  id: string;
1157
- departmentId: string | null;
1151
+ name: string | null;
1158
1152
  classId: string | null;
1153
+ departmentId: string | null;
1159
1154
  structured: string;
1160
1155
  } | null;
1161
- teacher: {
1156
+ section: {
1162
1157
  id: string;
1163
- username: string;
1164
- email: string;
1165
- password: string;
1166
- verified: boolean;
1167
- schoolId: string | null;
1168
- };
1158
+ name: string;
1159
+ color: string | null;
1160
+ classId: string;
1161
+ order: number | null;
1162
+ } | null;
1169
1163
  attachments: {
1170
1164
  path: string;
1171
1165
  type: string;
1172
- name: string;
1173
1166
  id: string;
1174
1167
  userId: string | null;
1175
- folderId: string | null;
1168
+ name: string;
1176
1169
  size: number | null;
1177
1170
  uploadedAt: Date | null;
1171
+ assignmentId: string | null;
1172
+ submissionId: string | null;
1173
+ thumbnailId: string | null;
1174
+ annotationId: string | null;
1175
+ conversationId: string | null;
1178
1176
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1179
1177
  uploadUrl: string | null;
1180
1178
  uploadExpiresAt: Date | null;
@@ -1184,27 +1182,33 @@ export declare function attachMarkSchemeRecord(teacherId: string, assignmentId:
1184
1182
  uploadRetryCount: number;
1185
1183
  isOrphaned: boolean;
1186
1184
  cleanupAt: Date | null;
1187
- thumbnailId: string | null;
1188
- assignmentId: string | null;
1189
- submissionId: string | null;
1190
- annotationId: string | null;
1191
1185
  classDraftId: string | null;
1192
- conversationId: string | null;
1186
+ folderId: string | null;
1193
1187
  messageId: string | null;
1194
1188
  announcementId: string | null;
1195
1189
  discussionId: string | null;
1196
1190
  discussionReplyId: string | null;
1197
1191
  schoolDevelopementProgramId: string | null;
1198
1192
  }[];
1193
+ teacher: {
1194
+ id: string;
1195
+ username: string;
1196
+ email: string;
1197
+ password: string;
1198
+ verified: boolean;
1199
+ termsAcceptedAt: Date | null;
1200
+ termsVersion: string | null;
1201
+ schoolId: string | null;
1202
+ };
1199
1203
  eventAttached: {
1200
- name: string | null;
1201
1204
  id: string;
1202
1205
  userId: string | null;
1206
+ location: string | null;
1207
+ name: string | null;
1203
1208
  color: string | null;
1204
1209
  classId: string | null;
1205
1210
  startTime: Date;
1206
1211
  endTime: Date;
1207
- location: string | null;
1208
1212
  remarks: string | null;
1209
1213
  } | null;
1210
1214
  } & {
@@ -1212,10 +1216,12 @@ export declare function attachMarkSchemeRecord(teacherId: string, assignmentId:
1212
1216
  id: string;
1213
1217
  createdAt: Date | null;
1214
1218
  classId: string;
1215
- modifiedAt: Date | null;
1216
1219
  title: string;
1217
- instructions: string;
1218
1220
  dueDate: Date;
1221
+ maxGrade: number | null;
1222
+ eventId: string | null;
1223
+ instructions: string;
1224
+ modifiedAt: Date | null;
1219
1225
  teacherId: string;
1220
1226
  acceptFiles: boolean;
1221
1227
  acceptExtendedResponse: boolean;
@@ -1224,47 +1230,41 @@ export declare function attachMarkSchemeRecord(teacherId: string, assignmentId:
1224
1230
  aiPolicyLevel: number;
1225
1231
  sectionId: string | null;
1226
1232
  graded: boolean;
1227
- maxGrade: number | null;
1228
1233
  weight: number;
1229
1234
  inProgress: boolean;
1230
1235
  template: boolean;
1231
- eventId: string | null;
1232
1236
  markSchemeId: string | null;
1233
1237
  order: number | null;
1234
1238
  gradingBoundaryId: string | null;
1235
1239
  }>;
1236
1240
  export declare function detachMarkSchemeRecord(teacherId: string, assignmentId: string): Promise<{
1237
- section: {
1238
- name: string;
1239
- id: string;
1240
- color: string | null;
1241
- classId: string;
1242
- order: number | null;
1243
- } | null;
1244
1241
  markScheme: {
1245
- name: string | null;
1246
1242
  id: string;
1247
- departmentId: string | null;
1243
+ name: string | null;
1248
1244
  classId: string | null;
1245
+ departmentId: string | null;
1249
1246
  structured: string;
1250
1247
  } | null;
1251
- teacher: {
1248
+ section: {
1252
1249
  id: string;
1253
- username: string;
1254
- email: string;
1255
- password: string;
1256
- verified: boolean;
1257
- schoolId: string | null;
1258
- };
1250
+ name: string;
1251
+ color: string | null;
1252
+ classId: string;
1253
+ order: number | null;
1254
+ } | null;
1259
1255
  attachments: {
1260
1256
  path: string;
1261
1257
  type: string;
1262
- name: string;
1263
1258
  id: string;
1264
1259
  userId: string | null;
1265
- folderId: string | null;
1260
+ name: string;
1266
1261
  size: number | null;
1267
1262
  uploadedAt: Date | null;
1263
+ assignmentId: string | null;
1264
+ submissionId: string | null;
1265
+ thumbnailId: string | null;
1266
+ annotationId: string | null;
1267
+ conversationId: string | null;
1268
1268
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1269
1269
  uploadUrl: string | null;
1270
1270
  uploadExpiresAt: Date | null;
@@ -1274,27 +1274,33 @@ export declare function detachMarkSchemeRecord(teacherId: string, assignmentId:
1274
1274
  uploadRetryCount: number;
1275
1275
  isOrphaned: boolean;
1276
1276
  cleanupAt: Date | null;
1277
- thumbnailId: string | null;
1278
- assignmentId: string | null;
1279
- submissionId: string | null;
1280
- annotationId: string | null;
1281
1277
  classDraftId: string | null;
1282
- conversationId: string | null;
1278
+ folderId: string | null;
1283
1279
  messageId: string | null;
1284
1280
  announcementId: string | null;
1285
1281
  discussionId: string | null;
1286
1282
  discussionReplyId: string | null;
1287
1283
  schoolDevelopementProgramId: string | null;
1288
1284
  }[];
1285
+ teacher: {
1286
+ id: string;
1287
+ username: string;
1288
+ email: string;
1289
+ password: string;
1290
+ verified: boolean;
1291
+ termsAcceptedAt: Date | null;
1292
+ termsVersion: string | null;
1293
+ schoolId: string | null;
1294
+ };
1289
1295
  eventAttached: {
1290
- name: string | null;
1291
1296
  id: string;
1292
1297
  userId: string | null;
1298
+ location: string | null;
1299
+ name: string | null;
1293
1300
  color: string | null;
1294
1301
  classId: string | null;
1295
1302
  startTime: Date;
1296
1303
  endTime: Date;
1297
- location: string | null;
1298
1304
  remarks: string | null;
1299
1305
  } | null;
1300
1306
  } & {
@@ -1302,10 +1308,12 @@ export declare function detachMarkSchemeRecord(teacherId: string, assignmentId:
1302
1308
  id: string;
1303
1309
  createdAt: Date | null;
1304
1310
  classId: string;
1305
- modifiedAt: Date | null;
1306
1311
  title: string;
1307
- instructions: string;
1308
1312
  dueDate: Date;
1313
+ maxGrade: number | null;
1314
+ eventId: string | null;
1315
+ instructions: string;
1316
+ modifiedAt: Date | null;
1309
1317
  teacherId: string;
1310
1318
  acceptFiles: boolean;
1311
1319
  acceptExtendedResponse: boolean;
@@ -1314,47 +1322,41 @@ export declare function detachMarkSchemeRecord(teacherId: string, assignmentId:
1314
1322
  aiPolicyLevel: number;
1315
1323
  sectionId: string | null;
1316
1324
  graded: boolean;
1317
- maxGrade: number | null;
1318
1325
  weight: number;
1319
1326
  inProgress: boolean;
1320
1327
  template: boolean;
1321
- eventId: string | null;
1322
1328
  markSchemeId: string | null;
1323
1329
  order: number | null;
1324
1330
  gradingBoundaryId: string | null;
1325
1331
  }>;
1326
1332
  export declare function attachGradingBoundaryRecord(teacherId: string, assignmentId: string, gradingBoundaryId: string | null): Promise<{
1327
- section: {
1328
- name: string;
1329
- id: string;
1330
- color: string | null;
1331
- classId: string;
1332
- order: number | null;
1333
- } | null;
1334
1333
  gradingBoundary: {
1335
- name: string | null;
1336
1334
  id: string;
1337
- departmentId: string | null;
1335
+ name: string | null;
1338
1336
  classId: string | null;
1337
+ departmentId: string | null;
1339
1338
  structured: string;
1340
1339
  } | null;
1341
- teacher: {
1340
+ section: {
1342
1341
  id: string;
1343
- username: string;
1344
- email: string;
1345
- password: string;
1346
- verified: boolean;
1347
- schoolId: string | null;
1348
- };
1342
+ name: string;
1343
+ color: string | null;
1344
+ classId: string;
1345
+ order: number | null;
1346
+ } | null;
1349
1347
  attachments: {
1350
1348
  path: string;
1351
1349
  type: string;
1352
- name: string;
1353
1350
  id: string;
1354
1351
  userId: string | null;
1355
- folderId: string | null;
1352
+ name: string;
1356
1353
  size: number | null;
1357
1354
  uploadedAt: Date | null;
1355
+ assignmentId: string | null;
1356
+ submissionId: string | null;
1357
+ thumbnailId: string | null;
1358
+ annotationId: string | null;
1359
+ conversationId: string | null;
1358
1360
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1359
1361
  uploadUrl: string | null;
1360
1362
  uploadExpiresAt: Date | null;
@@ -1364,27 +1366,33 @@ export declare function attachGradingBoundaryRecord(teacherId: string, assignmen
1364
1366
  uploadRetryCount: number;
1365
1367
  isOrphaned: boolean;
1366
1368
  cleanupAt: Date | null;
1367
- thumbnailId: string | null;
1368
- assignmentId: string | null;
1369
- submissionId: string | null;
1370
- annotationId: string | null;
1371
1369
  classDraftId: string | null;
1372
- conversationId: string | null;
1370
+ folderId: string | null;
1373
1371
  messageId: string | null;
1374
1372
  announcementId: string | null;
1375
1373
  discussionId: string | null;
1376
1374
  discussionReplyId: string | null;
1377
1375
  schoolDevelopementProgramId: string | null;
1378
1376
  }[];
1377
+ teacher: {
1378
+ id: string;
1379
+ username: string;
1380
+ email: string;
1381
+ password: string;
1382
+ verified: boolean;
1383
+ termsAcceptedAt: Date | null;
1384
+ termsVersion: string | null;
1385
+ schoolId: string | null;
1386
+ };
1379
1387
  eventAttached: {
1380
- name: string | null;
1381
1388
  id: string;
1382
1389
  userId: string | null;
1390
+ location: string | null;
1391
+ name: string | null;
1383
1392
  color: string | null;
1384
1393
  classId: string | null;
1385
1394
  startTime: Date;
1386
1395
  endTime: Date;
1387
- location: string | null;
1388
1396
  remarks: string | null;
1389
1397
  } | null;
1390
1398
  } & {
@@ -1392,10 +1400,12 @@ export declare function attachGradingBoundaryRecord(teacherId: string, assignmen
1392
1400
  id: string;
1393
1401
  createdAt: Date | null;
1394
1402
  classId: string;
1395
- modifiedAt: Date | null;
1396
1403
  title: string;
1397
- instructions: string;
1398
1404
  dueDate: Date;
1405
+ maxGrade: number | null;
1406
+ eventId: string | null;
1407
+ instructions: string;
1408
+ modifiedAt: Date | null;
1399
1409
  teacherId: string;
1400
1410
  acceptFiles: boolean;
1401
1411
  acceptExtendedResponse: boolean;
@@ -1404,47 +1414,41 @@ export declare function attachGradingBoundaryRecord(teacherId: string, assignmen
1404
1414
  aiPolicyLevel: number;
1405
1415
  sectionId: string | null;
1406
1416
  graded: boolean;
1407
- maxGrade: number | null;
1408
1417
  weight: number;
1409
1418
  inProgress: boolean;
1410
1419
  template: boolean;
1411
- eventId: string | null;
1412
1420
  markSchemeId: string | null;
1413
1421
  order: number | null;
1414
1422
  gradingBoundaryId: string | null;
1415
1423
  }>;
1416
1424
  export declare function detachGradingBoundaryRecord(teacherId: string, assignmentId: string): Promise<{
1417
- section: {
1418
- name: string;
1419
- id: string;
1420
- color: string | null;
1421
- classId: string;
1422
- order: number | null;
1423
- } | null;
1424
1425
  gradingBoundary: {
1425
- name: string | null;
1426
1426
  id: string;
1427
- departmentId: string | null;
1427
+ name: string | null;
1428
1428
  classId: string | null;
1429
+ departmentId: string | null;
1429
1430
  structured: string;
1430
1431
  } | null;
1431
- teacher: {
1432
+ section: {
1432
1433
  id: string;
1433
- username: string;
1434
- email: string;
1435
- password: string;
1436
- verified: boolean;
1437
- schoolId: string | null;
1438
- };
1434
+ name: string;
1435
+ color: string | null;
1436
+ classId: string;
1437
+ order: number | null;
1438
+ } | null;
1439
1439
  attachments: {
1440
1440
  path: string;
1441
1441
  type: string;
1442
- name: string;
1443
1442
  id: string;
1444
1443
  userId: string | null;
1445
- folderId: string | null;
1444
+ name: string;
1446
1445
  size: number | null;
1447
1446
  uploadedAt: Date | null;
1447
+ assignmentId: string | null;
1448
+ submissionId: string | null;
1449
+ thumbnailId: string | null;
1450
+ annotationId: string | null;
1451
+ conversationId: string | null;
1448
1452
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1449
1453
  uploadUrl: string | null;
1450
1454
  uploadExpiresAt: Date | null;
@@ -1454,27 +1458,33 @@ export declare function detachGradingBoundaryRecord(teacherId: string, assignmen
1454
1458
  uploadRetryCount: number;
1455
1459
  isOrphaned: boolean;
1456
1460
  cleanupAt: Date | null;
1457
- thumbnailId: string | null;
1458
- assignmentId: string | null;
1459
- submissionId: string | null;
1460
- annotationId: string | null;
1461
1461
  classDraftId: string | null;
1462
- conversationId: string | null;
1462
+ folderId: string | null;
1463
1463
  messageId: string | null;
1464
1464
  announcementId: string | null;
1465
1465
  discussionId: string | null;
1466
1466
  discussionReplyId: string | null;
1467
1467
  schoolDevelopementProgramId: string | null;
1468
1468
  }[];
1469
+ teacher: {
1470
+ id: string;
1471
+ username: string;
1472
+ email: string;
1473
+ password: string;
1474
+ verified: boolean;
1475
+ termsAcceptedAt: Date | null;
1476
+ termsVersion: string | null;
1477
+ schoolId: string | null;
1478
+ };
1469
1479
  eventAttached: {
1470
- name: string | null;
1471
1480
  id: string;
1472
1481
  userId: string | null;
1482
+ location: string | null;
1483
+ name: string | null;
1473
1484
  color: string | null;
1474
1485
  classId: string | null;
1475
1486
  startTime: Date;
1476
1487
  endTime: Date;
1477
- location: string | null;
1478
1488
  remarks: string | null;
1479
1489
  } | null;
1480
1490
  } & {
@@ -1482,10 +1492,12 @@ export declare function detachGradingBoundaryRecord(teacherId: string, assignmen
1482
1492
  id: string;
1483
1493
  createdAt: Date | null;
1484
1494
  classId: string;
1485
- modifiedAt: Date | null;
1486
1495
  title: string;
1487
- instructions: string;
1488
1496
  dueDate: Date;
1497
+ maxGrade: number | null;
1498
+ eventId: string | null;
1499
+ instructions: string;
1500
+ modifiedAt: Date | null;
1489
1501
  teacherId: string;
1490
1502
  acceptFiles: boolean;
1491
1503
  acceptExtendedResponse: boolean;
@@ -1494,11 +1506,9 @@ export declare function detachGradingBoundaryRecord(teacherId: string, assignmen
1494
1506
  aiPolicyLevel: number;
1495
1507
  sectionId: string | null;
1496
1508
  graded: boolean;
1497
- maxGrade: number | null;
1498
1509
  weight: number;
1499
1510
  inProgress: boolean;
1500
1511
  template: boolean;
1501
- eventId: string | null;
1502
1512
  markSchemeId: string | null;
1503
1513
  order: number | null;
1504
1514
  gradingBoundaryId: string | null;
@@ -1513,10 +1523,12 @@ export declare function reorderAssignmentRecord(teacherId: string, input: {
1513
1523
  id: string;
1514
1524
  createdAt: Date | null;
1515
1525
  classId: string;
1516
- modifiedAt: Date | null;
1517
1526
  title: string;
1518
- instructions: string;
1519
1527
  dueDate: Date;
1528
+ maxGrade: number | null;
1529
+ eventId: string | null;
1530
+ instructions: string;
1531
+ modifiedAt: Date | null;
1520
1532
  teacherId: string;
1521
1533
  acceptFiles: boolean;
1522
1534
  acceptExtendedResponse: boolean;
@@ -1525,11 +1537,9 @@ export declare function reorderAssignmentRecord(teacherId: string, input: {
1525
1537
  aiPolicyLevel: number;
1526
1538
  sectionId: string | null;
1527
1539
  graded: boolean;
1528
- maxGrade: number | null;
1529
1540
  weight: number;
1530
1541
  inProgress: boolean;
1531
1542
  template: boolean;
1532
- eventId: string | null;
1533
1543
  markSchemeId: string | null;
1534
1544
  order: number | null;
1535
1545
  gradingBoundaryId: string | null;
@@ -1543,10 +1553,12 @@ export declare function moveAssignmentRecord(teacherId: string, input: {
1543
1553
  id: string;
1544
1554
  createdAt: Date | null;
1545
1555
  classId: string;
1546
- modifiedAt: Date | null;
1547
1556
  title: string;
1548
- instructions: string;
1549
1557
  dueDate: Date;
1558
+ maxGrade: number | null;
1559
+ eventId: string | null;
1560
+ instructions: string;
1561
+ modifiedAt: Date | null;
1550
1562
  teacherId: string;
1551
1563
  acceptFiles: boolean;
1552
1564
  acceptExtendedResponse: boolean;
@@ -1555,11 +1567,9 @@ export declare function moveAssignmentRecord(teacherId: string, input: {
1555
1567
  aiPolicyLevel: number;
1556
1568
  sectionId: string | null;
1557
1569
  graded: boolean;
1558
- maxGrade: number | null;
1559
1570
  weight: number;
1560
1571
  inProgress: boolean;
1561
1572
  template: boolean;
1562
- eventId: string | null;
1563
1573
  markSchemeId: string | null;
1564
1574
  order: number | null;
1565
1575
  gradingBoundaryId: string | null;