@studious-lms/server 1.13.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 (306) 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 -198
  32. package/dist/models/class.d.ts.map +1 -1
  33. package/dist/models/class.js +2 -2
  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 +267 -115
  38. package/dist/models/comment.d.ts.map +1 -1
  39. package/dist/models/conversation.d.ts +199 -73
  40. package/dist/models/conversation.d.ts.map +1 -1
  41. package/dist/models/department.d.ts +196 -70
  42. package/dist/models/department.d.ts.map +1 -1
  43. package/dist/models/event.d.ts +287 -125
  44. package/dist/models/event.d.ts.map +1 -1
  45. package/dist/models/file.d.ts +389 -263
  46. package/dist/models/file.d.ts.map +1 -1
  47. package/dist/models/folder.d.ts +433 -181
  48. package/dist/models/folder.d.ts.map +1 -1
  49. package/dist/models/labChat.d.ts +209 -83
  50. package/dist/models/labChat.d.ts.map +1 -1
  51. package/dist/models/marketing.d.ts +80 -26
  52. package/dist/models/marketing.d.ts.map +1 -1
  53. package/dist/models/message.d.ts +95 -41
  54. package/dist/models/message.d.ts.map +1 -1
  55. package/dist/models/newtonChat.d.ts +83 -29
  56. package/dist/models/newtonChat.d.ts.map +1 -1
  57. package/dist/models/notification.d.ts +61 -25
  58. package/dist/models/notification.d.ts.map +1 -1
  59. package/dist/models/school.d.ts +349 -133
  60. package/dist/models/school.d.ts.map +1 -1
  61. package/dist/models/section.d.ts +216 -72
  62. package/dist/models/section.d.ts.map +1 -1
  63. package/dist/models/tag.d.ts +156 -48
  64. package/dist/models/tag.d.ts.map +1 -1
  65. package/dist/models/user.d.ts +82 -28
  66. package/dist/models/user.d.ts.map +1 -1
  67. package/dist/models/worksheet.d.ts +1020 -411
  68. package/dist/models/worksheet.d.ts.map +1 -1
  69. package/dist/models/worksheet.js +8 -2
  70. package/dist/models/worksheet.js.map +1 -1
  71. package/dist/pipelines/aiLabChat.d.ts +0 -8
  72. package/dist/pipelines/aiLabChat.d.ts.map +1 -1
  73. package/dist/pipelines/aiLabChat.js +50 -67
  74. package/dist/pipelines/aiLabChat.js.map +1 -1
  75. package/dist/pipelines/aiLabChatContract.d.ts +393 -388
  76. package/dist/pipelines/aiLabChatContract.d.ts.map +1 -1
  77. package/dist/pipelines/aiLabChatContract.js +63 -69
  78. package/dist/pipelines/aiLabChatContract.js.map +1 -1
  79. package/dist/pipelines/aiNewtonChat.d.ts.map +1 -1
  80. package/dist/pipelines/aiNewtonChat.js +41 -41
  81. package/dist/pipelines/aiNewtonChat.js.map +1 -1
  82. package/dist/pipelines/gradeWorksheet.d.ts +8 -8
  83. package/dist/pipelines/labChatPrompt.d.ts +10 -8
  84. package/dist/pipelines/labChatPrompt.d.ts.map +1 -1
  85. package/dist/pipelines/labChatPrompt.js +47 -67
  86. package/dist/pipelines/labChatPrompt.js.map +1 -1
  87. package/dist/pipelines/pdfToWorksheet.d.ts +2 -2
  88. package/dist/routers/_app.d.ts +2203 -1957
  89. package/dist/routers/_app.d.ts.map +1 -1
  90. package/dist/routers/_app.js +4 -2
  91. package/dist/routers/_app.js.map +1 -1
  92. package/dist/routers/admin.d.ts +13 -13
  93. package/dist/routers/agenda.d.ts +18 -18
  94. package/dist/routers/announcement.d.ts +32 -32
  95. package/dist/routers/assignment.d.ts +335 -335
  96. package/dist/routers/attendance.d.ts +10 -10
  97. package/dist/routers/auth.d.ts +2 -2
  98. package/dist/routers/class.d.ts +147 -147
  99. package/dist/routers/comment.d.ts +22 -22
  100. package/dist/routers/conversation.d.ts +17 -17
  101. package/dist/routers/department.d.ts +34 -34
  102. package/dist/routers/discussion.d.ts +65 -53
  103. package/dist/routers/discussion.d.ts.map +1 -1
  104. package/dist/routers/discussion.js +6 -2
  105. package/dist/routers/discussion.js.map +1 -1
  106. package/dist/routers/embedding.d.ts +69 -0
  107. package/dist/routers/embedding.d.ts.map +1 -0
  108. package/dist/routers/embedding.js +143 -0
  109. package/dist/routers/embedding.js.map +1 -0
  110. package/dist/routers/event.d.ts +39 -39
  111. package/dist/routers/file.d.ts +12 -12
  112. package/dist/routers/folder.d.ts +38 -38
  113. package/dist/routers/labChat.d.ts +19 -19
  114. package/dist/routers/marketing.d.ts +2 -2
  115. package/dist/routers/message.d.ts +13 -13
  116. package/dist/routers/newtonChat.d.ts +4 -4
  117. package/dist/routers/notifications.d.ts +9 -9
  118. package/dist/routers/permissions.d.ts +14 -14
  119. package/dist/routers/school.d.ts +55 -55
  120. package/dist/routers/search.d.ts +22 -1
  121. package/dist/routers/search.d.ts.map +1 -1
  122. package/dist/routers/search.js +9 -3
  123. package/dist/routers/search.js.map +1 -1
  124. package/dist/routers/section.d.ts +4 -4
  125. package/dist/routers/studentProgress.d.ts +1 -1
  126. package/dist/routers/tag.d.ts +7 -7
  127. package/dist/routers/user.d.ts +10 -10
  128. package/dist/routers/worksheet.d.ts +95 -57
  129. package/dist/routers/worksheet.d.ts.map +1 -1
  130. package/dist/routers/worksheet.js +26 -2
  131. package/dist/routers/worksheet.js.map +1 -1
  132. package/dist/routes/aiStream.d.ts +2 -0
  133. package/dist/routes/aiStream.d.ts.map +1 -0
  134. package/dist/routes/aiStream.js +696 -0
  135. package/dist/routes/aiStream.js.map +1 -0
  136. package/dist/seedDatabase.d.ts +2 -2
  137. package/dist/seedDatabase.js +6 -6
  138. package/dist/seedDatabase.js.map +1 -1
  139. package/dist/services/adminInstitution.d.ts +8 -8
  140. package/dist/services/adminRunJob.d.ts +4 -4
  141. package/dist/services/agenda.d.ts +18 -18
  142. package/dist/services/aiChatStream.d.ts +68 -0
  143. package/dist/services/aiChatStream.d.ts.map +1 -0
  144. package/dist/services/aiChatStream.js +157 -0
  145. package/dist/services/aiChatStream.js.map +1 -0
  146. package/dist/services/aiModifierTools.d.ts +32 -0
  147. package/dist/services/aiModifierTools.d.ts.map +1 -0
  148. package/dist/services/aiModifierTools.js +165 -0
  149. package/dist/services/aiModifierTools.js.map +1 -0
  150. package/dist/services/aiProposalTools.d.ts +32 -0
  151. package/dist/services/aiProposalTools.d.ts.map +1 -0
  152. package/dist/services/aiProposalTools.js +207 -0
  153. package/dist/services/aiProposalTools.js.map +1 -0
  154. package/dist/services/aiStream.d.ts +22 -0
  155. package/dist/services/aiStream.d.ts.map +1 -0
  156. package/dist/services/aiStream.js +142 -0
  157. package/dist/services/aiStream.js.map +1 -0
  158. package/dist/services/aiTools.d.ts +16 -0
  159. package/dist/services/aiTools.d.ts.map +1 -0
  160. package/dist/services/aiTools.js +271 -0
  161. package/dist/services/aiTools.js.map +1 -0
  162. package/dist/services/announcement.d.ts +12 -12
  163. package/dist/services/announcement.d.ts.map +1 -1
  164. package/dist/services/announcement.js +7 -2
  165. package/dist/services/announcement.js.map +1 -1
  166. package/dist/services/assignment.d.ts +293 -293
  167. package/dist/services/assignment.d.ts.map +1 -1
  168. package/dist/services/assignment.js +28 -9
  169. package/dist/services/assignment.js.map +1 -1
  170. package/dist/services/attendance.d.ts +10 -10
  171. package/dist/services/auth.d.ts +2 -2
  172. package/dist/services/class.d.ts +138 -138
  173. package/dist/services/class.d.ts.map +1 -1
  174. package/dist/services/class.js +19 -3
  175. package/dist/services/class.js.map +1 -1
  176. package/dist/services/comment.d.ts +22 -22
  177. package/dist/services/conversation.d.ts +17 -17
  178. package/dist/services/department.d.ts +33 -33
  179. package/dist/services/discussion.d.ts +58 -58
  180. package/dist/services/discussion.d.ts.map +1 -1
  181. package/dist/services/discussion.js +8 -8
  182. package/dist/services/discussion.js.map +1 -1
  183. package/dist/services/discussionSummary.d.ts +21 -0
  184. package/dist/services/discussionSummary.d.ts.map +1 -0
  185. package/dist/services/discussionSummary.js +179 -0
  186. package/dist/services/discussionSummary.js.map +1 -0
  187. package/dist/services/embedding.d.ts +67 -0
  188. package/dist/services/embedding.d.ts.map +1 -0
  189. package/dist/services/embedding.js +226 -0
  190. package/dist/services/embedding.js.map +1 -0
  191. package/dist/services/event.d.ts +37 -37
  192. package/dist/services/file.d.ts +24 -24
  193. package/dist/services/folder.d.ts +36 -36
  194. package/dist/services/labChat.d.ts +19 -19
  195. package/dist/services/marketing.d.ts +2 -2
  196. package/dist/services/message.d.ts +11 -11
  197. package/dist/services/message.d.ts.map +1 -1
  198. package/dist/services/message.js +2 -2
  199. package/dist/services/message.js.map +1 -1
  200. package/dist/services/newtonChat.d.ts +4 -4
  201. package/dist/services/notification.d.ts +9 -9
  202. package/dist/services/notification.d.ts.map +1 -1
  203. package/dist/services/permissions.d.ts +14 -14
  204. package/dist/services/school.d.ts +50 -50
  205. package/dist/services/search.d.ts +12 -0
  206. package/dist/services/search.d.ts.map +1 -1
  207. package/dist/services/search.js +120 -2
  208. package/dist/services/search.js.map +1 -1
  209. package/dist/services/section.d.ts +3 -3
  210. package/dist/services/tag.d.ts +4 -4
  211. package/dist/services/user.d.ts +4 -4
  212. package/dist/services/user.d.ts.map +1 -1
  213. package/dist/services/user.js +10 -15
  214. package/dist/services/user.js.map +1 -1
  215. package/dist/services/worksheet.d.ts +60 -48
  216. package/dist/services/worksheet.d.ts.map +1 -1
  217. package/dist/services/worksheet.js +11 -4
  218. package/dist/services/worksheet.js.map +1 -1
  219. package/dist/utils/streamBroadcast.d.ts +11 -0
  220. package/dist/utils/streamBroadcast.d.ts.map +1 -0
  221. package/dist/utils/streamBroadcast.js +32 -0
  222. package/dist/utils/streamBroadcast.js.map +1 -0
  223. package/dist/workers/connection.d.ts +15 -0
  224. package/dist/workers/connection.d.ts.map +1 -1
  225. package/dist/workers/connection.js +20 -2
  226. package/dist/workers/connection.js.map +1 -1
  227. package/dist/workers/index.js +4 -2
  228. package/dist/workers/index.js.map +1 -1
  229. package/dist/workers/processors/createRunJobWorker.d.ts.map +1 -1
  230. package/dist/workers/processors/createRunJobWorker.js +31 -8
  231. package/dist/workers/processors/createRunJobWorker.js.map +1 -1
  232. package/dist/workers/processors/embedContent.d.ts +8 -0
  233. package/dist/workers/processors/embedContent.d.ts.map +1 -0
  234. package/dist/workers/processors/embedContent.js +76 -0
  235. package/dist/workers/processors/embedContent.js.map +1 -0
  236. package/dist/workers/queues.d.ts +6 -0
  237. package/dist/workers/queues.d.ts.map +1 -1
  238. package/dist/workers/queues.js +5 -3
  239. package/dist/workers/queues.js.map +1 -1
  240. package/package.json +5 -1
  241. package/prisma/migrations/20260609215135_init/migration.sql +1412 -0
  242. package/prisma/migrations/20260610130000_add_worksheet_tags/migration.sql +13 -0
  243. package/prisma/schema.prisma +38 -7
  244. package/src/index.ts +4 -0
  245. package/src/lib/config/cors.ts +32 -9
  246. package/src/lib/config/env.ts +6 -0
  247. package/src/lib/googleCloudStorage.ts +21 -0
  248. package/src/lib/prisma.ts +40 -1
  249. package/src/models/class.ts +3 -2
  250. package/src/models/worksheet.ts +5 -2
  251. package/src/pipelines/aiLabChat.ts +54 -79
  252. package/src/pipelines/aiLabChatContract.ts +69 -69
  253. package/src/pipelines/aiNewtonChat.ts +46 -43
  254. package/src/pipelines/labChatPrompt.ts +63 -88
  255. package/src/routers/_app.ts +2 -0
  256. package/src/routers/discussion.ts +7 -0
  257. package/src/routers/embedding.ts +159 -0
  258. package/src/routers/search.ts +10 -1
  259. package/src/routers/worksheet.ts +27 -0
  260. package/src/routes/aiStream.ts +789 -0
  261. package/src/seedDatabase.ts +4 -4
  262. package/src/services/aiChatStream.ts +219 -0
  263. package/src/services/aiModifierTools.ts +188 -0
  264. package/src/services/aiProposalTools.ts +272 -0
  265. package/src/services/aiStream.ts +175 -0
  266. package/src/services/aiTools.ts +290 -0
  267. package/src/services/announcement.ts +7 -0
  268. package/src/services/assignment.ts +28 -7
  269. package/src/services/class.ts +20 -1
  270. package/src/services/discussion.ts +9 -8
  271. package/src/services/discussionSummary.ts +226 -0
  272. package/src/services/embedding.ts +285 -0
  273. package/src/services/message.ts +2 -2
  274. package/src/services/search.ts +138 -0
  275. package/src/services/user.ts +9 -17
  276. package/src/services/worksheet.ts +9 -2
  277. package/src/utils/streamBroadcast.ts +48 -0
  278. package/src/workers/connection.ts +19 -0
  279. package/src/workers/index.ts +2 -0
  280. package/src/workers/processors/createRunJobWorker.ts +32 -6
  281. package/src/workers/processors/embedContent.ts +90 -0
  282. package/src/workers/queues.ts +5 -1
  283. package/tests/unit/pipelines/aiLabChatContract.test.ts +38 -21
  284. package/tests/unit/pipelines/labChatPrompt.test.ts +23 -36
  285. package/prisma/migrations/20250807062924_init/migration.sql +0 -436
  286. package/prisma/migrations/20250919063704_init2/migration.sql +0 -24
  287. package/prisma/migrations/20250920143543_add_profile_fields/migration.sql +0 -15
  288. package/prisma/migrations/20250922165147_add_chat_models/migration.sql +0 -68
  289. package/prisma/migrations/20250922165314_add_chat_roles/migration.sql +0 -5
  290. package/prisma/migrations/20250922171242_refactor_notification_system/migration.sql +0 -20
  291. package/prisma/migrations/20250922172208_add_mentions_system/migration.sql +0 -21
  292. package/prisma/migrations/20250925072732_add_lab_chat_system/migration.sql +0 -25
  293. package/prisma/migrations/20251020151505_add_upload_tracking_fields/migration.sql +0 -57
  294. package/prisma/migrations/20251109122857_annuoncements_comments/migration.sql +0 -30
  295. package/prisma/migrations/20251109135555_reactions_announcements_comments/migration.sql +0 -35
  296. package/prisma/migrations/20260410124000_add_submission_recommendation_state/migration.sql +0 -14
  297. package/prisma/migrations/20260415103500_add_session_type/migration.sql +0 -33
  298. package/prisma/migrations/20260415133000_add_ai_usage_logs/migration.sql +0 -19
  299. package/prisma/migrations/20260417083000_add_conversation_member_hidden_at/migration.sql +0 -2
  300. package/prisma/migrations/20260502230500_assignment_submission_comments/migration.sql +0 -60
  301. package/prisma/migrations/20260504071500_school_memberships/migration.sql +0 -81
  302. package/prisma/migrations/20260506162500_consolidate_run_job_and_unify_job_status/migration.sql +0 -166
  303. package/prisma/migrations/20260509220000_institution_overhaul/migration.sql +0 -184
  304. package/prisma/migrations/20260510170000_add_folder_permissions/migration.sql +0 -93
  305. package/prisma/migrations/20260510183000_add_discussions/migration.sql +0 -151
  306. /package/.github/workflows/{npm.yml → npm-publish.yml} +0 -0
@@ -30,10 +30,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
30
30
  id: string;
31
31
  createdAt: Date | null;
32
32
  classId: string;
33
- modifiedAt: Date | null;
34
33
  title: string;
35
- instructions: string;
36
34
  dueDate: Date;
35
+ maxGrade: number | null;
36
+ eventId: string | null;
37
+ instructions: string;
38
+ modifiedAt: Date | null;
37
39
  teacherId: string;
38
40
  acceptFiles: boolean;
39
41
  acceptExtendedResponse: boolean;
@@ -42,11 +44,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
42
44
  aiPolicyLevel: number;
43
45
  sectionId: string | null;
44
46
  graded: boolean;
45
- maxGrade: number | null;
46
47
  weight: number;
47
48
  inProgress: boolean;
48
49
  template: boolean;
49
- eventId: string | null;
50
50
  markSchemeId: string | null;
51
51
  order: number | null;
52
52
  gradingBoundaryId: string | null;
@@ -74,10 +74,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
74
74
  id: string;
75
75
  createdAt: Date | null;
76
76
  classId: string;
77
- modifiedAt: Date | null;
78
77
  title: string;
79
- instructions: string;
80
78
  dueDate: Date;
79
+ maxGrade: number | null;
80
+ eventId: string | null;
81
+ instructions: string;
82
+ modifiedAt: Date | null;
81
83
  teacherId: string;
82
84
  acceptFiles: boolean;
83
85
  acceptExtendedResponse: boolean;
@@ -86,11 +88,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
86
88
  aiPolicyLevel: number;
87
89
  sectionId: string | null;
88
90
  graded: boolean;
89
- maxGrade: number | null;
90
91
  weight: number;
91
92
  inProgress: boolean;
92
93
  template: boolean;
93
- eventId: string | null;
94
94
  markSchemeId: string | null;
95
95
  order: number | null;
96
96
  gradingBoundaryId: string | null;
@@ -102,8 +102,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
102
102
  [x: string]: unknown;
103
103
  classId: string;
104
104
  title: string;
105
- instructions: string;
106
105
  dueDate: string;
106
+ instructions: string;
107
107
  type?: "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "DISCUSSION" | "PRESENTATION" | "LAB" | "OTHER" | undefined;
108
108
  id?: string | undefined;
109
109
  files?: {
@@ -111,6 +111,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
111
111
  name: string;
112
112
  size: number;
113
113
  }[] | undefined;
114
+ maxGrade?: number | undefined;
114
115
  acceptFiles?: boolean | undefined;
115
116
  acceptExtendedResponse?: boolean | undefined;
116
117
  acceptWorksheet?: boolean | undefined;
@@ -118,7 +119,6 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
118
119
  aiPolicyLevel?: number | undefined;
119
120
  sectionId?: string | undefined;
120
121
  graded?: boolean | undefined;
121
- maxGrade?: number | undefined;
122
122
  weight?: number | undefined;
123
123
  inProgress?: boolean | undefined;
124
124
  markSchemeId?: string | undefined;
@@ -130,20 +130,20 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
130
130
  };
131
131
  output: {
132
132
  type: import(".prisma/client").$Enums.AssignmentType;
133
- id: string;
134
133
  class: {
135
- name: string;
136
134
  id: string;
135
+ name: string;
137
136
  };
138
137
  section: {
139
- name: string;
140
138
  id: string;
139
+ name: string;
141
140
  } | null;
141
+ id: string;
142
142
  title: string;
143
- instructions: string;
144
143
  dueDate: Date;
145
- graded: boolean;
146
144
  maxGrade: number | null;
145
+ instructions: string;
146
+ graded: boolean;
147
147
  weight: number;
148
148
  teacher: {
149
149
  id: string;
@@ -151,8 +151,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
151
151
  };
152
152
  attachments: {
153
153
  type: string;
154
- name: string;
155
154
  id: string;
155
+ name: string;
156
156
  }[];
157
157
  };
158
158
  meta: object;
@@ -161,18 +161,20 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
161
161
  input: {
162
162
  [x: string]: unknown;
163
163
  classId: string;
164
- assignmentId: string;
165
164
  title: string;
165
+ assignmentId: string;
166
166
  };
167
167
  output: {
168
168
  type: import(".prisma/client").$Enums.AssignmentType;
169
169
  id: string;
170
170
  createdAt: Date | null;
171
171
  classId: string;
172
- modifiedAt: Date | null;
173
172
  title: string;
174
- instructions: string;
175
173
  dueDate: Date;
174
+ maxGrade: number | null;
175
+ eventId: string | null;
176
+ instructions: string;
177
+ modifiedAt: Date | null;
176
178
  teacherId: string;
177
179
  acceptFiles: boolean;
178
180
  acceptExtendedResponse: boolean;
@@ -181,11 +183,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
181
183
  aiPolicyLevel: number;
182
184
  sectionId: string | null;
183
185
  graded: boolean;
184
- maxGrade: number | null;
185
186
  weight: number;
186
187
  inProgress: boolean;
187
188
  template: boolean;
188
- eventId: string | null;
189
189
  markSchemeId: string | null;
190
190
  order: number | null;
191
191
  gradingBoundaryId: string | null;
@@ -204,8 +204,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
204
204
  size: number;
205
205
  }[] | undefined;
206
206
  title?: string | undefined;
207
- instructions?: string | undefined;
208
207
  dueDate?: string | undefined;
208
+ maxGrade?: number | undefined;
209
+ instructions?: string | undefined;
209
210
  acceptFiles?: boolean | undefined;
210
211
  acceptExtendedResponse?: boolean | undefined;
211
212
  acceptWorksheet?: boolean | undefined;
@@ -213,7 +214,6 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
213
214
  aiPolicyLevel?: number | undefined;
214
215
  sectionId?: string | null | undefined;
215
216
  graded?: boolean | undefined;
216
- maxGrade?: number | undefined;
217
217
  weight?: number | undefined;
218
218
  inProgress?: boolean | undefined;
219
219
  existingFileIds?: string[] | undefined;
@@ -223,15 +223,13 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
223
223
  };
224
224
  output: {
225
225
  type: import(".prisma/client").$Enums.AssignmentType;
226
- id: string;
227
- createdAt: Date | null;
228
226
  class: {
229
- name: string;
227
+ section: string;
230
228
  id: string;
229
+ name: string;
231
230
  schoolId: string | null;
232
- subject: string;
233
231
  color: string | null;
234
- section: string;
232
+ subject: string;
235
233
  syllabus: string | null;
236
234
  departmentId: string | null;
237
235
  discussionsEnabled: boolean;
@@ -239,12 +237,14 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
239
237
  studentsCanReply: boolean;
240
238
  };
241
239
  section: {
242
- name: string;
243
240
  id: string;
241
+ name: string;
244
242
  color: string | null;
245
243
  classId: string;
246
244
  order: number | null;
247
245
  } | null;
246
+ id: string;
247
+ createdAt: Date | null;
248
248
  submissions: {
249
249
  student: {
250
250
  id: string;
@@ -252,10 +252,10 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
252
252
  };
253
253
  }[];
254
254
  title: string;
255
- instructions: string;
256
255
  dueDate: Date;
257
- graded: boolean;
258
256
  maxGrade: number | null;
257
+ instructions: string;
258
+ graded: boolean;
259
259
  weight: number;
260
260
  markSchemeId: string | null;
261
261
  teacher: {
@@ -269,20 +269,22 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
269
269
  attachments: {
270
270
  path: string;
271
271
  type: string;
272
- name: string;
273
272
  id: string;
273
+ name: string;
274
274
  size: number | null;
275
275
  uploadedAt: Date | null;
276
- thumbnailId: string | null;
277
276
  thumbnail: {
278
277
  path: string;
279
278
  type: string;
280
- name: string;
281
279
  id: string;
282
280
  userId: string | null;
283
- folderId: string | null;
281
+ name: string;
284
282
  size: number | null;
285
283
  uploadedAt: Date | null;
284
+ assignmentId: string | null;
285
+ submissionId: string | null;
286
+ thumbnailId: string | null;
287
+ annotationId: string | null;
286
288
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
287
289
  uploadUrl: string | null;
288
290
  uploadExpiresAt: Date | null;
@@ -292,11 +294,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
292
294
  uploadRetryCount: number;
293
295
  isOrphaned: boolean;
294
296
  cleanupAt: Date | null;
295
- thumbnailId: string | null;
296
- assignmentId: string | null;
297
- submissionId: string | null;
298
- annotationId: string | null;
299
297
  classDraftId: string | null;
298
+ folderId: string | null;
300
299
  conversationId: string | null;
301
300
  messageId: string | null;
302
301
  announcementId: string | null;
@@ -304,6 +303,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
304
303
  discussionReplyId: string | null;
305
304
  schoolDevelopementProgramId: string | null;
306
305
  } | null;
306
+ thumbnailId: string | null;
307
307
  }[];
308
308
  };
309
309
  meta: object;
@@ -326,16 +326,24 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
326
326
  };
327
327
  output: {
328
328
  sections: {
329
- name: string;
330
329
  id: string;
330
+ name: string;
331
331
  }[];
332
332
  class: {
333
- name: string;
334
333
  id: string;
334
+ name: string;
335
335
  };
336
+ markScheme: {
337
+ id: string;
338
+ structured: string;
339
+ } | null;
340
+ gradingBoundary: {
341
+ id: string;
342
+ structured: string;
343
+ } | null;
336
344
  section: {
337
- name: string;
338
345
  id: string;
346
+ name: string;
339
347
  } | null;
340
348
  submissions: {
341
349
  student: {
@@ -343,17 +351,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
343
351
  username: string;
344
352
  };
345
353
  }[];
346
- markScheme: {
347
- id: string;
348
- structured: string;
349
- } | null;
350
- gradingBoundary: {
351
- id: string;
352
- structured: string;
353
- } | null;
354
354
  worksheets: {
355
- name: string;
356
355
  id: string;
356
+ name: string;
357
357
  }[];
358
358
  teacher: {
359
359
  id: string;
@@ -362,29 +362,31 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
362
362
  attachments: {
363
363
  path: string;
364
364
  type: string;
365
- name: string;
366
365
  id: string;
366
+ name: string;
367
367
  size: number | null;
368
368
  uploadedAt: Date | null;
369
369
  thumbnailId: string | null;
370
370
  }[];
371
371
  eventAttached: {
372
- name: string | null;
373
372
  id: string;
373
+ location: string | null;
374
+ name: string | null;
374
375
  color: string | null;
375
376
  startTime: Date;
376
377
  endTime: Date;
377
- location: string | null;
378
378
  remarks: string | null;
379
379
  } | null;
380
380
  type: import(".prisma/client").$Enums.AssignmentType;
381
381
  id: string;
382
382
  createdAt: Date | null;
383
383
  classId: string;
384
- modifiedAt: Date | null;
385
384
  title: string;
386
- instructions: string;
387
385
  dueDate: Date;
386
+ maxGrade: number | null;
387
+ eventId: string | null;
388
+ instructions: string;
389
+ modifiedAt: Date | null;
388
390
  teacherId: string;
389
391
  acceptFiles: boolean;
390
392
  acceptExtendedResponse: boolean;
@@ -393,11 +395,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
393
395
  aiPolicyLevel: number;
394
396
  sectionId: string | null;
395
397
  graded: boolean;
396
- maxGrade: number | null;
397
398
  weight: number;
398
399
  inProgress: boolean;
399
400
  template: boolean;
400
- eventId: string | null;
401
401
  markSchemeId: string | null;
402
402
  order: number | null;
403
403
  gradingBoundaryId: string | null;
@@ -414,12 +414,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
414
414
  late: boolean;
415
415
  assignment: {
416
416
  class: {
417
- name: string;
417
+ section: string;
418
418
  id: string;
419
+ name: string;
419
420
  schoolId: string | null;
420
- subject: string;
421
421
  color: string | null;
422
- section: string;
422
+ subject: string;
423
423
  syllabus: string | null;
424
424
  departmentId: string | null;
425
425
  discussionsEnabled: boolean;
@@ -435,18 +435,20 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
435
435
  structured: string;
436
436
  } | null;
437
437
  worksheets: {
438
- name: string;
439
438
  id: string;
439
+ name: string;
440
440
  }[];
441
441
  } & {
442
442
  type: import(".prisma/client").$Enums.AssignmentType;
443
443
  id: string;
444
444
  createdAt: Date | null;
445
445
  classId: string;
446
- modifiedAt: Date | null;
447
446
  title: string;
448
- instructions: string;
449
447
  dueDate: Date;
448
+ maxGrade: number | null;
449
+ eventId: string | null;
450
+ instructions: string;
451
+ modifiedAt: Date | null;
450
452
  teacherId: string;
451
453
  acceptFiles: boolean;
452
454
  acceptExtendedResponse: boolean;
@@ -455,24 +457,25 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
455
457
  aiPolicyLevel: number;
456
458
  sectionId: string | null;
457
459
  graded: boolean;
458
- maxGrade: number | null;
459
460
  weight: number;
460
461
  inProgress: boolean;
461
462
  template: boolean;
462
- eventId: string | null;
463
463
  markSchemeId: string | null;
464
464
  order: number | null;
465
465
  gradingBoundaryId: string | null;
466
466
  };
467
- annotations: {
467
+ attachments: {
468
468
  path: string;
469
469
  type: string;
470
- name: string;
471
470
  id: string;
472
471
  userId: string | null;
473
- folderId: string | null;
472
+ name: string;
474
473
  size: number | null;
475
474
  uploadedAt: Date | null;
475
+ assignmentId: string | null;
476
+ submissionId: string | null;
477
+ thumbnailId: string | null;
478
+ annotationId: string | null;
476
479
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
477
480
  uploadUrl: string | null;
478
481
  uploadExpiresAt: Date | null;
@@ -482,11 +485,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
482
485
  uploadRetryCount: number;
483
486
  isOrphaned: boolean;
484
487
  cleanupAt: Date | null;
485
- thumbnailId: string | null;
486
- assignmentId: string | null;
487
- submissionId: string | null;
488
- annotationId: string | null;
489
488
  classDraftId: string | null;
489
+ folderId: string | null;
490
490
  conversationId: string | null;
491
491
  messageId: string | null;
492
492
  announcementId: string | null;
@@ -494,15 +494,22 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
494
494
  discussionReplyId: string | null;
495
495
  schoolDevelopementProgramId: string | null;
496
496
  }[];
497
- attachments: {
497
+ student: {
498
+ id: string;
499
+ username: string;
500
+ };
501
+ annotations: {
498
502
  path: string;
499
503
  type: string;
500
- name: string;
501
504
  id: string;
502
505
  userId: string | null;
503
- folderId: string | null;
506
+ name: string;
504
507
  size: number | null;
505
508
  uploadedAt: Date | null;
509
+ assignmentId: string | null;
510
+ submissionId: string | null;
511
+ thumbnailId: string | null;
512
+ annotationId: string | null;
506
513
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
507
514
  uploadUrl: string | null;
508
515
  uploadExpiresAt: Date | null;
@@ -512,11 +519,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
512
519
  uploadRetryCount: number;
513
520
  isOrphaned: boolean;
514
521
  cleanupAt: Date | null;
515
- thumbnailId: string | null;
516
- assignmentId: string | null;
517
- submissionId: string | null;
518
- annotationId: string | null;
519
522
  classDraftId: string | null;
523
+ folderId: string | null;
520
524
  conversationId: string | null;
521
525
  messageId: string | null;
522
526
  announcementId: string | null;
@@ -524,10 +528,6 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
524
528
  discussionReplyId: string | null;
525
529
  schoolDevelopementProgramId: string | null;
526
530
  }[];
527
- student: {
528
- id: string;
529
- username: string;
530
- };
531
531
  id: string;
532
532
  createdAt: Date;
533
533
  assignmentId: string;
@@ -556,12 +556,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
556
556
  late: boolean;
557
557
  assignment: {
558
558
  class: {
559
- name: string;
559
+ section: string;
560
560
  id: string;
561
+ name: string;
561
562
  schoolId: string | null;
562
- subject: string;
563
563
  color: string | null;
564
- section: string;
564
+ subject: string;
565
565
  syllabus: string | null;
566
566
  departmentId: string | null;
567
567
  discussionsEnabled: boolean;
@@ -577,18 +577,20 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
577
577
  structured: string;
578
578
  } | null;
579
579
  worksheets: {
580
- name: string;
581
580
  id: string;
581
+ name: string;
582
582
  }[];
583
583
  } & {
584
584
  type: import(".prisma/client").$Enums.AssignmentType;
585
585
  id: string;
586
586
  createdAt: Date | null;
587
587
  classId: string;
588
- modifiedAt: Date | null;
589
588
  title: string;
590
- instructions: string;
591
589
  dueDate: Date;
590
+ maxGrade: number | null;
591
+ eventId: string | null;
592
+ instructions: string;
593
+ modifiedAt: Date | null;
592
594
  teacherId: string;
593
595
  acceptFiles: boolean;
594
596
  acceptExtendedResponse: boolean;
@@ -597,24 +599,25 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
597
599
  aiPolicyLevel: number;
598
600
  sectionId: string | null;
599
601
  graded: boolean;
600
- maxGrade: number | null;
601
602
  weight: number;
602
603
  inProgress: boolean;
603
604
  template: boolean;
604
- eventId: string | null;
605
605
  markSchemeId: string | null;
606
606
  order: number | null;
607
607
  gradingBoundaryId: string | null;
608
608
  };
609
- annotations: {
609
+ attachments: {
610
610
  path: string;
611
611
  type: string;
612
- name: string;
613
612
  id: string;
614
613
  userId: string | null;
615
- folderId: string | null;
614
+ name: string;
616
615
  size: number | null;
617
616
  uploadedAt: Date | null;
617
+ assignmentId: string | null;
618
+ submissionId: string | null;
619
+ thumbnailId: string | null;
620
+ annotationId: string | null;
618
621
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
619
622
  uploadUrl: string | null;
620
623
  uploadExpiresAt: Date | null;
@@ -624,11 +627,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
624
627
  uploadRetryCount: number;
625
628
  isOrphaned: boolean;
626
629
  cleanupAt: Date | null;
627
- thumbnailId: string | null;
628
- assignmentId: string | null;
629
- submissionId: string | null;
630
- annotationId: string | null;
631
630
  classDraftId: string | null;
631
+ folderId: string | null;
632
632
  conversationId: string | null;
633
633
  messageId: string | null;
634
634
  announcementId: string | null;
@@ -636,15 +636,34 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
636
636
  discussionReplyId: string | null;
637
637
  schoolDevelopementProgramId: string | null;
638
638
  }[];
639
- attachments: {
639
+ student: {
640
+ id: string;
641
+ username: string;
642
+ profile: {
643
+ id: string;
644
+ userId: string;
645
+ displayName: string | null;
646
+ bio: string | null;
647
+ location: string | null;
648
+ website: string | null;
649
+ createdAt: Date;
650
+ updatedAt: Date;
651
+ profilePicture: string | null;
652
+ profilePictureThumbnail: string | null;
653
+ } | null;
654
+ };
655
+ annotations: {
640
656
  path: string;
641
657
  type: string;
642
- name: string;
643
658
  id: string;
644
659
  userId: string | null;
645
- folderId: string | null;
660
+ name: string;
646
661
  size: number | null;
647
662
  uploadedAt: Date | null;
663
+ assignmentId: string | null;
664
+ submissionId: string | null;
665
+ thumbnailId: string | null;
666
+ annotationId: string | null;
648
667
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
649
668
  uploadUrl: string | null;
650
669
  uploadExpiresAt: Date | null;
@@ -654,11 +673,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
654
673
  uploadRetryCount: number;
655
674
  isOrphaned: boolean;
656
675
  cleanupAt: Date | null;
657
- thumbnailId: string | null;
658
- assignmentId: string | null;
659
- submissionId: string | null;
660
- annotationId: string | null;
661
676
  classDraftId: string | null;
677
+ folderId: string | null;
662
678
  conversationId: string | null;
663
679
  messageId: string | null;
664
680
  announcementId: string | null;
@@ -666,22 +682,6 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
666
682
  discussionReplyId: string | null;
667
683
  schoolDevelopementProgramId: string | null;
668
684
  }[];
669
- student: {
670
- id: string;
671
- username: string;
672
- profile: {
673
- id: string;
674
- createdAt: Date;
675
- updatedAt: Date;
676
- userId: string;
677
- location: string | null;
678
- displayName: string | null;
679
- bio: string | null;
680
- website: string | null;
681
- profilePicture: string | null;
682
- profilePictureThumbnail: string | null;
683
- } | null;
684
- };
685
685
  id: string;
686
686
  createdAt: Date;
687
687
  assignmentId: string;
@@ -719,12 +719,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
719
719
  output: {
720
720
  assignment: {
721
721
  class: {
722
- name: string;
722
+ section: string;
723
723
  id: string;
724
+ name: string;
724
725
  schoolId: string | null;
725
- subject: string;
726
726
  color: string | null;
727
- section: string;
727
+ subject: string;
728
728
  syllabus: string | null;
729
729
  departmentId: string | null;
730
730
  discussionsEnabled: boolean;
@@ -744,10 +744,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
744
744
  id: string;
745
745
  createdAt: Date | null;
746
746
  classId: string;
747
- modifiedAt: Date | null;
748
747
  title: string;
749
- instructions: string;
750
748
  dueDate: Date;
749
+ maxGrade: number | null;
750
+ eventId: string | null;
751
+ instructions: string;
752
+ modifiedAt: Date | null;
751
753
  teacherId: string;
752
754
  acceptFiles: boolean;
753
755
  acceptExtendedResponse: boolean;
@@ -756,11 +758,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
756
758
  aiPolicyLevel: number;
757
759
  sectionId: string | null;
758
760
  graded: boolean;
759
- maxGrade: number | null;
760
761
  weight: number;
761
762
  inProgress: boolean;
762
763
  template: boolean;
763
- eventId: string | null;
764
764
  markSchemeId: string | null;
765
765
  order: number | null;
766
766
  gradingBoundaryId: string | null;
@@ -768,12 +768,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
768
768
  attachments: {
769
769
  path: string;
770
770
  type: string;
771
- name: string;
772
771
  id: string;
773
772
  userId: string | null;
774
- folderId: string | null;
773
+ name: string;
775
774
  size: number | null;
776
775
  uploadedAt: Date | null;
776
+ assignmentId: string | null;
777
+ submissionId: string | null;
778
+ thumbnailId: string | null;
779
+ annotationId: string | null;
777
780
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
778
781
  uploadUrl: string | null;
779
782
  uploadExpiresAt: Date | null;
@@ -783,11 +786,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
783
786
  uploadRetryCount: number;
784
787
  isOrphaned: boolean;
785
788
  cleanupAt: Date | null;
786
- thumbnailId: string | null;
787
- assignmentId: string | null;
788
- submissionId: string | null;
789
- annotationId: string | null;
790
789
  classDraftId: string | null;
790
+ folderId: string | null;
791
791
  conversationId: string | null;
792
792
  messageId: string | null;
793
793
  announcementId: string | null;
@@ -828,12 +828,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
828
828
  late: boolean;
829
829
  assignment: {
830
830
  class: {
831
- name: string;
831
+ section: string;
832
832
  id: string;
833
+ name: string;
833
834
  schoolId: string | null;
834
- subject: string;
835
835
  color: string | null;
836
- section: string;
836
+ subject: string;
837
837
  syllabus: string | null;
838
838
  departmentId: string | null;
839
839
  discussionsEnabled: boolean;
@@ -853,10 +853,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
853
853
  id: string;
854
854
  createdAt: Date | null;
855
855
  classId: string;
856
- modifiedAt: Date | null;
857
856
  title: string;
858
- instructions: string;
859
857
  dueDate: Date;
858
+ maxGrade: number | null;
859
+ eventId: string | null;
860
+ instructions: string;
861
+ modifiedAt: Date | null;
860
862
  teacherId: string;
861
863
  acceptFiles: boolean;
862
864
  acceptExtendedResponse: boolean;
@@ -865,11 +867,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
865
867
  aiPolicyLevel: number;
866
868
  sectionId: string | null;
867
869
  graded: boolean;
868
- maxGrade: number | null;
869
870
  weight: number;
870
871
  inProgress: boolean;
871
872
  template: boolean;
872
- eventId: string | null;
873
873
  markSchemeId: string | null;
874
874
  order: number | null;
875
875
  gradingBoundaryId: string | null;
@@ -878,12 +878,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
878
878
  thumbnail: {
879
879
  path: string;
880
880
  type: string;
881
- name: string;
882
881
  id: string;
883
882
  userId: string | null;
884
- folderId: string | null;
883
+ name: string;
885
884
  size: number | null;
886
885
  uploadedAt: Date | null;
886
+ assignmentId: string | null;
887
+ submissionId: string | null;
888
+ thumbnailId: string | null;
889
+ annotationId: string | null;
887
890
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
888
891
  uploadUrl: string | null;
889
892
  uploadExpiresAt: Date | null;
@@ -893,11 +896,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
893
896
  uploadRetryCount: number;
894
897
  isOrphaned: boolean;
895
898
  cleanupAt: Date | null;
896
- thumbnailId: string | null;
897
- assignmentId: string | null;
898
- submissionId: string | null;
899
- annotationId: string | null;
900
899
  classDraftId: string | null;
900
+ folderId: string | null;
901
901
  conversationId: string | null;
902
902
  messageId: string | null;
903
903
  announcementId: string | null;
@@ -908,12 +908,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
908
908
  } & {
909
909
  path: string;
910
910
  type: string;
911
- name: string;
912
911
  id: string;
913
912
  userId: string | null;
914
- folderId: string | null;
913
+ name: string;
915
914
  size: number | null;
916
915
  uploadedAt: Date | null;
916
+ assignmentId: string | null;
917
+ submissionId: string | null;
918
+ thumbnailId: string | null;
919
+ annotationId: string | null;
917
920
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
918
921
  uploadUrl: string | null;
919
922
  uploadExpiresAt: Date | null;
@@ -923,11 +926,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
923
926
  uploadRetryCount: number;
924
927
  isOrphaned: boolean;
925
928
  cleanupAt: Date | null;
926
- thumbnailId: string | null;
927
- assignmentId: string | null;
928
- submissionId: string | null;
929
- annotationId: string | null;
930
929
  classDraftId: string | null;
930
+ folderId: string | null;
931
931
  conversationId: string | null;
932
932
  messageId: string | null;
933
933
  announcementId: string | null;
@@ -939,8 +939,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
939
939
  id: string;
940
940
  username: string;
941
941
  profile: {
942
- displayName: string | null;
943
942
  profilePicture: string | null;
943
+ displayName: string | null;
944
944
  profilePictureThumbnail: string | null;
945
945
  } | null;
946
946
  };
@@ -974,8 +974,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
974
974
  id: string;
975
975
  username: string;
976
976
  profile: {
977
- displayName: string | null;
978
977
  profilePicture: string | null;
978
+ displayName: string | null;
979
979
  profilePictureThumbnail: string | null;
980
980
  } | null;
981
981
  };
@@ -984,35 +984,35 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
984
984
  id: string;
985
985
  username: string;
986
986
  profile: {
987
- displayName: string | null;
988
987
  profilePicture: string | null;
988
+ displayName: string | null;
989
989
  profilePictureThumbnail: string | null;
990
990
  } | null;
991
991
  };
992
992
  } & {
993
993
  id: string;
994
994
  createdAt: Date;
995
+ content: string;
995
996
  assignmentId: string | null;
996
997
  submissionId: string | null;
997
- announcementId: string | null;
998
998
  modifiedAt: Date | null;
999
- content: string;
999
+ announcementId: string | null;
1000
1000
  authorId: string;
1001
- parentCommentId: string | null;
1002
1001
  isPinned: boolean;
1002
+ parentCommentId: string | null;
1003
1003
  studentQuestionProgressId: string | null;
1004
1004
  })[];
1005
1005
  } & {
1006
1006
  id: string;
1007
1007
  createdAt: Date;
1008
+ content: string;
1008
1009
  assignmentId: string | null;
1009
1010
  submissionId: string | null;
1010
- announcementId: string | null;
1011
1011
  modifiedAt: Date | null;
1012
- content: string;
1012
+ announcementId: string | null;
1013
1013
  authorId: string;
1014
- parentCommentId: string | null;
1015
1014
  isPinned: boolean;
1015
+ parentCommentId: string | null;
1016
1016
  studentQuestionProgressId: string | null;
1017
1017
  })[];
1018
1018
  };
@@ -1022,8 +1022,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1022
1022
  input: {
1023
1023
  [x: string]: unknown;
1024
1024
  classId: string;
1025
- assignmentId: string;
1026
1025
  content: string;
1026
+ assignmentId: string;
1027
1027
  parentCommentId?: string | undefined;
1028
1028
  };
1029
1029
  output: {
@@ -1032,8 +1032,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1032
1032
  id: string;
1033
1033
  username: string;
1034
1034
  profile: {
1035
- displayName: string | null;
1036
1035
  profilePicture: string | null;
1036
+ displayName: string | null;
1037
1037
  profilePictureThumbnail: string | null;
1038
1038
  } | null;
1039
1039
  };
@@ -1042,35 +1042,35 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1042
1042
  id: string;
1043
1043
  username: string;
1044
1044
  profile: {
1045
- displayName: string | null;
1046
1045
  profilePicture: string | null;
1046
+ displayName: string | null;
1047
1047
  profilePictureThumbnail: string | null;
1048
1048
  } | null;
1049
1049
  };
1050
1050
  } & {
1051
1051
  id: string;
1052
1052
  createdAt: Date;
1053
+ content: string;
1053
1054
  assignmentId: string | null;
1054
1055
  submissionId: string | null;
1055
- announcementId: string | null;
1056
1056
  modifiedAt: Date | null;
1057
- content: string;
1057
+ announcementId: string | null;
1058
1058
  authorId: string;
1059
- parentCommentId: string | null;
1060
1059
  isPinned: boolean;
1060
+ parentCommentId: string | null;
1061
1061
  studentQuestionProgressId: string | null;
1062
1062
  })[];
1063
1063
  } & {
1064
1064
  id: string;
1065
1065
  createdAt: Date;
1066
+ content: string;
1066
1067
  assignmentId: string | null;
1067
1068
  submissionId: string | null;
1068
- announcementId: string | null;
1069
1069
  modifiedAt: Date | null;
1070
- content: string;
1070
+ announcementId: string | null;
1071
1071
  authorId: string;
1072
- parentCommentId: string | null;
1073
1072
  isPinned: boolean;
1073
+ parentCommentId: string | null;
1074
1074
  studentQuestionProgressId: string | null;
1075
1075
  };
1076
1076
  };
@@ -1089,8 +1089,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1089
1089
  id: string;
1090
1090
  username: string;
1091
1091
  profile: {
1092
- displayName: string | null;
1093
1092
  profilePicture: string | null;
1093
+ displayName: string | null;
1094
1094
  profilePictureThumbnail: string | null;
1095
1095
  } | null;
1096
1096
  };
@@ -1099,35 +1099,35 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1099
1099
  id: string;
1100
1100
  username: string;
1101
1101
  profile: {
1102
- displayName: string | null;
1103
1102
  profilePicture: string | null;
1103
+ displayName: string | null;
1104
1104
  profilePictureThumbnail: string | null;
1105
1105
  } | null;
1106
1106
  };
1107
1107
  } & {
1108
1108
  id: string;
1109
1109
  createdAt: Date;
1110
+ content: string;
1110
1111
  assignmentId: string | null;
1111
1112
  submissionId: string | null;
1112
- announcementId: string | null;
1113
1113
  modifiedAt: Date | null;
1114
- content: string;
1114
+ announcementId: string | null;
1115
1115
  authorId: string;
1116
- parentCommentId: string | null;
1117
1116
  isPinned: boolean;
1117
+ parentCommentId: string | null;
1118
1118
  studentQuestionProgressId: string | null;
1119
1119
  })[];
1120
1120
  } & {
1121
1121
  id: string;
1122
1122
  createdAt: Date;
1123
+ content: string;
1123
1124
  assignmentId: string | null;
1124
1125
  submissionId: string | null;
1125
- announcementId: string | null;
1126
1126
  modifiedAt: Date | null;
1127
- content: string;
1127
+ announcementId: string | null;
1128
1128
  authorId: string;
1129
- parentCommentId: string | null;
1130
1129
  isPinned: boolean;
1130
+ parentCommentId: string | null;
1131
1131
  studentQuestionProgressId: string | null;
1132
1132
  })[];
1133
1133
  };
@@ -1137,9 +1137,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1137
1137
  input: {
1138
1138
  [x: string]: unknown;
1139
1139
  classId: string;
1140
+ content: string;
1140
1141
  assignmentId: string;
1141
1142
  submissionId: string;
1142
- content: string;
1143
1143
  parentCommentId?: string | undefined;
1144
1144
  };
1145
1145
  output: {
@@ -1148,8 +1148,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1148
1148
  id: string;
1149
1149
  username: string;
1150
1150
  profile: {
1151
- displayName: string | null;
1152
1151
  profilePicture: string | null;
1152
+ displayName: string | null;
1153
1153
  profilePictureThumbnail: string | null;
1154
1154
  } | null;
1155
1155
  };
@@ -1158,35 +1158,35 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1158
1158
  id: string;
1159
1159
  username: string;
1160
1160
  profile: {
1161
- displayName: string | null;
1162
1161
  profilePicture: string | null;
1162
+ displayName: string | null;
1163
1163
  profilePictureThumbnail: string | null;
1164
1164
  } | null;
1165
1165
  };
1166
1166
  } & {
1167
1167
  id: string;
1168
1168
  createdAt: Date;
1169
+ content: string;
1169
1170
  assignmentId: string | null;
1170
1171
  submissionId: string | null;
1171
- announcementId: string | null;
1172
1172
  modifiedAt: Date | null;
1173
- content: string;
1173
+ announcementId: string | null;
1174
1174
  authorId: string;
1175
- parentCommentId: string | null;
1176
1175
  isPinned: boolean;
1176
+ parentCommentId: string | null;
1177
1177
  studentQuestionProgressId: string | null;
1178
1178
  })[];
1179
1179
  } & {
1180
1180
  id: string;
1181
1181
  createdAt: Date;
1182
+ content: string;
1182
1183
  assignmentId: string | null;
1183
1184
  submissionId: string | null;
1184
- announcementId: string | null;
1185
1185
  modifiedAt: Date | null;
1186
- content: string;
1186
+ announcementId: string | null;
1187
1187
  authorId: string;
1188
- parentCommentId: string | null;
1189
1188
  isPinned: boolean;
1189
+ parentCommentId: string | null;
1190
1190
  studentQuestionProgressId: string | null;
1191
1191
  };
1192
1192
  };
@@ -1198,8 +1198,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1198
1198
  classId: string;
1199
1199
  assignmentId: string;
1200
1200
  submissionId: string;
1201
- gradeReceived?: number | null | undefined;
1202
1201
  feedback?: string | undefined;
1202
+ gradeReceived?: number | null | undefined;
1203
1203
  existingFileIds?: string[] | undefined;
1204
1204
  removedAttachments?: string[] | undefined;
1205
1205
  newAttachments?: {
@@ -1218,12 +1218,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1218
1218
  output: {
1219
1219
  assignment: {
1220
1220
  class: {
1221
- name: string;
1221
+ section: string;
1222
1222
  id: string;
1223
+ name: string;
1223
1224
  schoolId: string | null;
1224
- subject: string;
1225
1225
  color: string | null;
1226
- section: string;
1226
+ subject: string;
1227
1227
  syllabus: string | null;
1228
1228
  departmentId: string | null;
1229
1229
  discussionsEnabled: boolean;
@@ -1243,10 +1243,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1243
1243
  id: string;
1244
1244
  createdAt: Date | null;
1245
1245
  classId: string;
1246
- modifiedAt: Date | null;
1247
1246
  title: string;
1248
- instructions: string;
1249
1247
  dueDate: Date;
1248
+ maxGrade: number | null;
1249
+ eventId: string | null;
1250
+ instructions: string;
1251
+ modifiedAt: Date | null;
1250
1252
  teacherId: string;
1251
1253
  acceptFiles: boolean;
1252
1254
  acceptExtendedResponse: boolean;
@@ -1255,25 +1257,26 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1255
1257
  aiPolicyLevel: number;
1256
1258
  sectionId: string | null;
1257
1259
  graded: boolean;
1258
- maxGrade: number | null;
1259
1260
  weight: number;
1260
1261
  inProgress: boolean;
1261
1262
  template: boolean;
1262
- eventId: string | null;
1263
1263
  markSchemeId: string | null;
1264
1264
  order: number | null;
1265
1265
  gradingBoundaryId: string | null;
1266
1266
  };
1267
- annotations: ({
1267
+ attachments: ({
1268
1268
  thumbnail: {
1269
1269
  path: string;
1270
1270
  type: string;
1271
- name: string;
1272
1271
  id: string;
1273
1272
  userId: string | null;
1274
- folderId: string | null;
1273
+ name: string;
1275
1274
  size: number | null;
1276
1275
  uploadedAt: Date | null;
1276
+ assignmentId: string | null;
1277
+ submissionId: string | null;
1278
+ thumbnailId: string | null;
1279
+ annotationId: string | null;
1277
1280
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1278
1281
  uploadUrl: string | null;
1279
1282
  uploadExpiresAt: Date | null;
@@ -1283,11 +1286,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1283
1286
  uploadRetryCount: number;
1284
1287
  isOrphaned: boolean;
1285
1288
  cleanupAt: Date | null;
1286
- thumbnailId: string | null;
1287
- assignmentId: string | null;
1288
- submissionId: string | null;
1289
- annotationId: string | null;
1290
1289
  classDraftId: string | null;
1290
+ folderId: string | null;
1291
1291
  conversationId: string | null;
1292
1292
  messageId: string | null;
1293
1293
  announcementId: string | null;
@@ -1298,12 +1298,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1298
1298
  } & {
1299
1299
  path: string;
1300
1300
  type: string;
1301
- name: string;
1302
1301
  id: string;
1303
1302
  userId: string | null;
1304
- folderId: string | null;
1303
+ name: string;
1305
1304
  size: number | null;
1306
1305
  uploadedAt: Date | null;
1306
+ assignmentId: string | null;
1307
+ submissionId: string | null;
1308
+ thumbnailId: string | null;
1309
+ annotationId: string | null;
1307
1310
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1308
1311
  uploadUrl: string | null;
1309
1312
  uploadExpiresAt: Date | null;
@@ -1313,11 +1316,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1313
1316
  uploadRetryCount: number;
1314
1317
  isOrphaned: boolean;
1315
1318
  cleanupAt: Date | null;
1316
- thumbnailId: string | null;
1317
- assignmentId: string | null;
1318
- submissionId: string | null;
1319
- annotationId: string | null;
1320
1319
  classDraftId: string | null;
1320
+ folderId: string | null;
1321
1321
  conversationId: string | null;
1322
1322
  messageId: string | null;
1323
1323
  announcementId: string | null;
@@ -1325,16 +1325,28 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1325
1325
  discussionReplyId: string | null;
1326
1326
  schoolDevelopementProgramId: string | null;
1327
1327
  })[];
1328
- attachments: ({
1328
+ student: {
1329
+ id: string;
1330
+ username: string;
1331
+ profile: {
1332
+ profilePicture: string | null;
1333
+ displayName: string | null;
1334
+ profilePictureThumbnail: string | null;
1335
+ } | null;
1336
+ };
1337
+ annotations: ({
1329
1338
  thumbnail: {
1330
1339
  path: string;
1331
1340
  type: string;
1332
- name: string;
1333
1341
  id: string;
1334
1342
  userId: string | null;
1335
- folderId: string | null;
1343
+ name: string;
1336
1344
  size: number | null;
1337
1345
  uploadedAt: Date | null;
1346
+ assignmentId: string | null;
1347
+ submissionId: string | null;
1348
+ thumbnailId: string | null;
1349
+ annotationId: string | null;
1338
1350
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1339
1351
  uploadUrl: string | null;
1340
1352
  uploadExpiresAt: Date | null;
@@ -1344,11 +1356,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1344
1356
  uploadRetryCount: number;
1345
1357
  isOrphaned: boolean;
1346
1358
  cleanupAt: Date | null;
1347
- thumbnailId: string | null;
1348
- assignmentId: string | null;
1349
- submissionId: string | null;
1350
- annotationId: string | null;
1351
1359
  classDraftId: string | null;
1360
+ folderId: string | null;
1352
1361
  conversationId: string | null;
1353
1362
  messageId: string | null;
1354
1363
  announcementId: string | null;
@@ -1359,12 +1368,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1359
1368
  } & {
1360
1369
  path: string;
1361
1370
  type: string;
1362
- name: string;
1363
1371
  id: string;
1364
1372
  userId: string | null;
1365
- folderId: string | null;
1373
+ name: string;
1366
1374
  size: number | null;
1367
1375
  uploadedAt: Date | null;
1376
+ assignmentId: string | null;
1377
+ submissionId: string | null;
1378
+ thumbnailId: string | null;
1379
+ annotationId: string | null;
1368
1380
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1369
1381
  uploadUrl: string | null;
1370
1382
  uploadExpiresAt: Date | null;
@@ -1374,11 +1386,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1374
1386
  uploadRetryCount: number;
1375
1387
  isOrphaned: boolean;
1376
1388
  cleanupAt: Date | null;
1377
- thumbnailId: string | null;
1378
- assignmentId: string | null;
1379
- submissionId: string | null;
1380
- annotationId: string | null;
1381
1389
  classDraftId: string | null;
1390
+ folderId: string | null;
1382
1391
  conversationId: string | null;
1383
1392
  messageId: string | null;
1384
1393
  announcementId: string | null;
@@ -1386,15 +1395,6 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1386
1395
  discussionReplyId: string | null;
1387
1396
  schoolDevelopementProgramId: string | null;
1388
1397
  })[];
1389
- student: {
1390
- id: string;
1391
- username: string;
1392
- profile: {
1393
- displayName: string | null;
1394
- profilePicture: string | null;
1395
- profilePictureThumbnail: string | null;
1396
- } | null;
1397
- };
1398
1398
  } & {
1399
1399
  id: string;
1400
1400
  createdAt: Date;
@@ -1424,8 +1424,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1424
1424
  output: {
1425
1425
  assignment: {
1426
1426
  section: {
1427
- name: string;
1428
1427
  id: string;
1428
+ name: string;
1429
1429
  } | null;
1430
1430
  teacher: {
1431
1431
  id: string;
@@ -1433,12 +1433,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1433
1433
  };
1434
1434
  attachments: {
1435
1435
  type: string;
1436
- name: string;
1437
1436
  id: string;
1437
+ name: string;
1438
1438
  }[];
1439
1439
  eventAttached: {
1440
- name: string | null;
1441
1440
  id: string;
1441
+ name: string | null;
1442
1442
  color: string | null;
1443
1443
  startTime: Date;
1444
1444
  endTime: Date;
@@ -1448,10 +1448,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1448
1448
  id: string;
1449
1449
  createdAt: Date | null;
1450
1450
  classId: string;
1451
- modifiedAt: Date | null;
1452
1451
  title: string;
1453
- instructions: string;
1454
1452
  dueDate: Date;
1453
+ maxGrade: number | null;
1454
+ eventId: string | null;
1455
+ instructions: string;
1456
+ modifiedAt: Date | null;
1455
1457
  teacherId: string;
1456
1458
  acceptFiles: boolean;
1457
1459
  acceptExtendedResponse: boolean;
@@ -1460,11 +1462,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1460
1462
  aiPolicyLevel: number;
1461
1463
  sectionId: string | null;
1462
1464
  graded: boolean;
1463
- maxGrade: number | null;
1464
1465
  weight: number;
1465
1466
  inProgress: boolean;
1466
1467
  template: boolean;
1467
- eventId: string | null;
1468
1468
  markSchemeId: string | null;
1469
1469
  order: number | null;
1470
1470
  gradingBoundaryId: string | null;
@@ -1481,8 +1481,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1481
1481
  output: {
1482
1482
  assignment: {
1483
1483
  section: {
1484
- name: string;
1485
1484
  id: string;
1485
+ name: string;
1486
1486
  } | null;
1487
1487
  teacher: {
1488
1488
  id: string;
@@ -1490,12 +1490,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1490
1490
  };
1491
1491
  attachments: {
1492
1492
  type: string;
1493
- name: string;
1494
1493
  id: string;
1494
+ name: string;
1495
1495
  }[];
1496
1496
  eventAttached: {
1497
- name: string | null;
1498
1497
  id: string;
1498
+ name: string | null;
1499
1499
  color: string | null;
1500
1500
  startTime: Date;
1501
1501
  endTime: Date;
@@ -1505,10 +1505,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1505
1505
  id: string;
1506
1506
  createdAt: Date | null;
1507
1507
  classId: string;
1508
- modifiedAt: Date | null;
1509
1508
  title: string;
1510
- instructions: string;
1511
1509
  dueDate: Date;
1510
+ maxGrade: number | null;
1511
+ eventId: string | null;
1512
+ instructions: string;
1513
+ modifiedAt: Date | null;
1512
1514
  teacherId: string;
1513
1515
  acceptFiles: boolean;
1514
1516
  acceptExtendedResponse: boolean;
@@ -1517,11 +1519,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1517
1519
  aiPolicyLevel: number;
1518
1520
  sectionId: string | null;
1519
1521
  graded: boolean;
1520
- maxGrade: number | null;
1521
1522
  weight: number;
1522
1523
  inProgress: boolean;
1523
1524
  template: boolean;
1524
- eventId: string | null;
1525
1525
  markSchemeId: string | null;
1526
1526
  order: number | null;
1527
1527
  gradingBoundaryId: string | null;
@@ -1537,12 +1537,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1537
1537
  };
1538
1538
  output: {
1539
1539
  events: {
1540
- name: string | null;
1541
1540
  id: string;
1541
+ location: string | null;
1542
+ name: string | null;
1542
1543
  color: string | null;
1543
1544
  startTime: Date;
1544
1545
  endTime: Date;
1545
- location: string | null;
1546
1546
  remarks: string | null;
1547
1547
  }[];
1548
1548
  };
@@ -1553,14 +1553,14 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1553
1553
  output: {
1554
1554
  dueDate: string;
1555
1555
  type: import(".prisma/client").$Enums.AssignmentType;
1556
- id: string;
1557
1556
  class: {
1558
- name: string;
1559
1557
  id: string;
1558
+ name: string;
1560
1559
  };
1560
+ id: string;
1561
1561
  title: string;
1562
- graded: boolean;
1563
1562
  maxGrade: number | null;
1563
+ graded: boolean;
1564
1564
  }[];
1565
1565
  meta: object;
1566
1566
  }>;
@@ -1572,20 +1572,20 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1572
1572
  markSchemeId: string | null;
1573
1573
  };
1574
1574
  output: {
1575
+ markScheme: {
1576
+ id: string;
1577
+ name: string | null;
1578
+ classId: string | null;
1579
+ departmentId: string | null;
1580
+ structured: string;
1581
+ } | null;
1575
1582
  section: {
1576
- name: string;
1577
1583
  id: string;
1584
+ name: string;
1578
1585
  color: string | null;
1579
1586
  classId: string;
1580
1587
  order: number | null;
1581
1588
  } | null;
1582
- markScheme: {
1583
- name: string | null;
1584
- id: string;
1585
- departmentId: string | null;
1586
- classId: string | null;
1587
- structured: string;
1588
- } | null;
1589
1589
  teacher: {
1590
1590
  id: string;
1591
1591
  username: string;
@@ -1597,12 +1597,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1597
1597
  attachments: {
1598
1598
  path: string;
1599
1599
  type: string;
1600
- name: string;
1601
1600
  id: string;
1602
1601
  userId: string | null;
1603
- folderId: string | null;
1602
+ name: string;
1604
1603
  size: number | null;
1605
1604
  uploadedAt: Date | null;
1605
+ assignmentId: string | null;
1606
+ submissionId: string | null;
1607
+ thumbnailId: string | null;
1608
+ annotationId: string | null;
1606
1609
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1607
1610
  uploadUrl: string | null;
1608
1611
  uploadExpiresAt: Date | null;
@@ -1612,11 +1615,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1612
1615
  uploadRetryCount: number;
1613
1616
  isOrphaned: boolean;
1614
1617
  cleanupAt: Date | null;
1615
- thumbnailId: string | null;
1616
- assignmentId: string | null;
1617
- submissionId: string | null;
1618
- annotationId: string | null;
1619
1618
  classDraftId: string | null;
1619
+ folderId: string | null;
1620
1620
  conversationId: string | null;
1621
1621
  messageId: string | null;
1622
1622
  announcementId: string | null;
@@ -1625,14 +1625,14 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1625
1625
  schoolDevelopementProgramId: string | null;
1626
1626
  }[];
1627
1627
  eventAttached: {
1628
- name: string | null;
1629
1628
  id: string;
1630
1629
  userId: string | null;
1630
+ location: string | null;
1631
+ name: string | null;
1631
1632
  color: string | null;
1632
1633
  classId: string | null;
1633
1634
  startTime: Date;
1634
1635
  endTime: Date;
1635
- location: string | null;
1636
1636
  remarks: string | null;
1637
1637
  } | null;
1638
1638
  } & {
@@ -1640,10 +1640,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1640
1640
  id: string;
1641
1641
  createdAt: Date | null;
1642
1642
  classId: string;
1643
- modifiedAt: Date | null;
1644
1643
  title: string;
1645
- instructions: string;
1646
1644
  dueDate: Date;
1645
+ maxGrade: number | null;
1646
+ eventId: string | null;
1647
+ instructions: string;
1648
+ modifiedAt: Date | null;
1647
1649
  teacherId: string;
1648
1650
  acceptFiles: boolean;
1649
1651
  acceptExtendedResponse: boolean;
@@ -1652,11 +1654,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1652
1654
  aiPolicyLevel: number;
1653
1655
  sectionId: string | null;
1654
1656
  graded: boolean;
1655
- maxGrade: number | null;
1656
1657
  weight: number;
1657
1658
  inProgress: boolean;
1658
1659
  template: boolean;
1659
- eventId: string | null;
1660
1660
  markSchemeId: string | null;
1661
1661
  order: number | null;
1662
1662
  gradingBoundaryId: string | null;
@@ -1670,20 +1670,20 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1670
1670
  assignmentId: string;
1671
1671
  };
1672
1672
  output: {
1673
+ markScheme: {
1674
+ id: string;
1675
+ name: string | null;
1676
+ classId: string | null;
1677
+ departmentId: string | null;
1678
+ structured: string;
1679
+ } | null;
1673
1680
  section: {
1674
- name: string;
1675
1681
  id: string;
1682
+ name: string;
1676
1683
  color: string | null;
1677
1684
  classId: string;
1678
1685
  order: number | null;
1679
1686
  } | null;
1680
- markScheme: {
1681
- name: string | null;
1682
- id: string;
1683
- departmentId: string | null;
1684
- classId: string | null;
1685
- structured: string;
1686
- } | null;
1687
1687
  teacher: {
1688
1688
  id: string;
1689
1689
  username: string;
@@ -1695,12 +1695,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1695
1695
  attachments: {
1696
1696
  path: string;
1697
1697
  type: string;
1698
- name: string;
1699
1698
  id: string;
1700
1699
  userId: string | null;
1701
- folderId: string | null;
1700
+ name: string;
1702
1701
  size: number | null;
1703
1702
  uploadedAt: Date | null;
1703
+ assignmentId: string | null;
1704
+ submissionId: string | null;
1705
+ thumbnailId: string | null;
1706
+ annotationId: string | null;
1704
1707
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1705
1708
  uploadUrl: string | null;
1706
1709
  uploadExpiresAt: Date | null;
@@ -1710,11 +1713,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1710
1713
  uploadRetryCount: number;
1711
1714
  isOrphaned: boolean;
1712
1715
  cleanupAt: Date | null;
1713
- thumbnailId: string | null;
1714
- assignmentId: string | null;
1715
- submissionId: string | null;
1716
- annotationId: string | null;
1717
1716
  classDraftId: string | null;
1717
+ folderId: string | null;
1718
1718
  conversationId: string | null;
1719
1719
  messageId: string | null;
1720
1720
  announcementId: string | null;
@@ -1723,14 +1723,14 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1723
1723
  schoolDevelopementProgramId: string | null;
1724
1724
  }[];
1725
1725
  eventAttached: {
1726
- name: string | null;
1727
1726
  id: string;
1728
1727
  userId: string | null;
1728
+ location: string | null;
1729
+ name: string | null;
1729
1730
  color: string | null;
1730
1731
  classId: string | null;
1731
1732
  startTime: Date;
1732
1733
  endTime: Date;
1733
- location: string | null;
1734
1734
  remarks: string | null;
1735
1735
  } | null;
1736
1736
  } & {
@@ -1738,10 +1738,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1738
1738
  id: string;
1739
1739
  createdAt: Date | null;
1740
1740
  classId: string;
1741
- modifiedAt: Date | null;
1742
1741
  title: string;
1743
- instructions: string;
1744
1742
  dueDate: Date;
1743
+ maxGrade: number | null;
1744
+ eventId: string | null;
1745
+ instructions: string;
1746
+ modifiedAt: Date | null;
1745
1747
  teacherId: string;
1746
1748
  acceptFiles: boolean;
1747
1749
  acceptExtendedResponse: boolean;
@@ -1750,11 +1752,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1750
1752
  aiPolicyLevel: number;
1751
1753
  sectionId: string | null;
1752
1754
  graded: boolean;
1753
- maxGrade: number | null;
1754
1755
  weight: number;
1755
1756
  inProgress: boolean;
1756
1757
  template: boolean;
1757
- eventId: string | null;
1758
1758
  markSchemeId: string | null;
1759
1759
  order: number | null;
1760
1760
  gradingBoundaryId: string | null;
@@ -1769,20 +1769,20 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1769
1769
  gradingBoundaryId: string | null;
1770
1770
  };
1771
1771
  output: {
1772
+ gradingBoundary: {
1773
+ id: string;
1774
+ name: string | null;
1775
+ classId: string | null;
1776
+ departmentId: string | null;
1777
+ structured: string;
1778
+ } | null;
1772
1779
  section: {
1773
- name: string;
1774
1780
  id: string;
1781
+ name: string;
1775
1782
  color: string | null;
1776
1783
  classId: string;
1777
1784
  order: number | null;
1778
1785
  } | null;
1779
- gradingBoundary: {
1780
- name: string | null;
1781
- id: string;
1782
- departmentId: string | null;
1783
- classId: string | null;
1784
- structured: string;
1785
- } | null;
1786
1786
  teacher: {
1787
1787
  id: string;
1788
1788
  username: string;
@@ -1794,12 +1794,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1794
1794
  attachments: {
1795
1795
  path: string;
1796
1796
  type: string;
1797
- name: string;
1798
1797
  id: string;
1799
1798
  userId: string | null;
1800
- folderId: string | null;
1799
+ name: string;
1801
1800
  size: number | null;
1802
1801
  uploadedAt: Date | null;
1802
+ assignmentId: string | null;
1803
+ submissionId: string | null;
1804
+ thumbnailId: string | null;
1805
+ annotationId: string | null;
1803
1806
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1804
1807
  uploadUrl: string | null;
1805
1808
  uploadExpiresAt: Date | null;
@@ -1809,11 +1812,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1809
1812
  uploadRetryCount: number;
1810
1813
  isOrphaned: boolean;
1811
1814
  cleanupAt: Date | null;
1812
- thumbnailId: string | null;
1813
- assignmentId: string | null;
1814
- submissionId: string | null;
1815
- annotationId: string | null;
1816
1815
  classDraftId: string | null;
1816
+ folderId: string | null;
1817
1817
  conversationId: string | null;
1818
1818
  messageId: string | null;
1819
1819
  announcementId: string | null;
@@ -1822,14 +1822,14 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1822
1822
  schoolDevelopementProgramId: string | null;
1823
1823
  }[];
1824
1824
  eventAttached: {
1825
- name: string | null;
1826
1825
  id: string;
1827
1826
  userId: string | null;
1827
+ location: string | null;
1828
+ name: string | null;
1828
1829
  color: string | null;
1829
1830
  classId: string | null;
1830
1831
  startTime: Date;
1831
1832
  endTime: Date;
1832
- location: string | null;
1833
1833
  remarks: string | null;
1834
1834
  } | null;
1835
1835
  } & {
@@ -1837,10 +1837,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1837
1837
  id: string;
1838
1838
  createdAt: Date | null;
1839
1839
  classId: string;
1840
- modifiedAt: Date | null;
1841
1840
  title: string;
1842
- instructions: string;
1843
1841
  dueDate: Date;
1842
+ maxGrade: number | null;
1843
+ eventId: string | null;
1844
+ instructions: string;
1845
+ modifiedAt: Date | null;
1844
1846
  teacherId: string;
1845
1847
  acceptFiles: boolean;
1846
1848
  acceptExtendedResponse: boolean;
@@ -1849,11 +1851,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1849
1851
  aiPolicyLevel: number;
1850
1852
  sectionId: string | null;
1851
1853
  graded: boolean;
1852
- maxGrade: number | null;
1853
1854
  weight: number;
1854
1855
  inProgress: boolean;
1855
1856
  template: boolean;
1856
- eventId: string | null;
1857
1857
  markSchemeId: string | null;
1858
1858
  order: number | null;
1859
1859
  gradingBoundaryId: string | null;
@@ -1867,20 +1867,20 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1867
1867
  assignmentId: string;
1868
1868
  };
1869
1869
  output: {
1870
+ gradingBoundary: {
1871
+ id: string;
1872
+ name: string | null;
1873
+ classId: string | null;
1874
+ departmentId: string | null;
1875
+ structured: string;
1876
+ } | null;
1870
1877
  section: {
1871
- name: string;
1872
1878
  id: string;
1879
+ name: string;
1873
1880
  color: string | null;
1874
1881
  classId: string;
1875
1882
  order: number | null;
1876
1883
  } | null;
1877
- gradingBoundary: {
1878
- name: string | null;
1879
- id: string;
1880
- departmentId: string | null;
1881
- classId: string | null;
1882
- structured: string;
1883
- } | null;
1884
1884
  teacher: {
1885
1885
  id: string;
1886
1886
  username: string;
@@ -1892,12 +1892,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1892
1892
  attachments: {
1893
1893
  path: string;
1894
1894
  type: string;
1895
- name: string;
1896
1895
  id: string;
1897
1896
  userId: string | null;
1898
- folderId: string | null;
1897
+ name: string;
1899
1898
  size: number | null;
1900
1899
  uploadedAt: Date | null;
1900
+ assignmentId: string | null;
1901
+ submissionId: string | null;
1902
+ thumbnailId: string | null;
1903
+ annotationId: string | null;
1901
1904
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1902
1905
  uploadUrl: string | null;
1903
1906
  uploadExpiresAt: Date | null;
@@ -1907,11 +1910,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1907
1910
  uploadRetryCount: number;
1908
1911
  isOrphaned: boolean;
1909
1912
  cleanupAt: Date | null;
1910
- thumbnailId: string | null;
1911
- assignmentId: string | null;
1912
- submissionId: string | null;
1913
- annotationId: string | null;
1914
1913
  classDraftId: string | null;
1914
+ folderId: string | null;
1915
1915
  conversationId: string | null;
1916
1916
  messageId: string | null;
1917
1917
  announcementId: string | null;
@@ -1920,14 +1920,14 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1920
1920
  schoolDevelopementProgramId: string | null;
1921
1921
  }[];
1922
1922
  eventAttached: {
1923
- name: string | null;
1924
1923
  id: string;
1925
1924
  userId: string | null;
1925
+ location: string | null;
1926
+ name: string | null;
1926
1927
  color: string | null;
1927
1928
  classId: string | null;
1928
1929
  startTime: Date;
1929
1930
  endTime: Date;
1930
- location: string | null;
1931
1931
  remarks: string | null;
1932
1932
  } | null;
1933
1933
  } & {
@@ -1935,10 +1935,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1935
1935
  id: string;
1936
1936
  createdAt: Date | null;
1937
1937
  classId: string;
1938
- modifiedAt: Date | null;
1939
1938
  title: string;
1940
- instructions: string;
1941
1939
  dueDate: Date;
1940
+ maxGrade: number | null;
1941
+ eventId: string | null;
1942
+ instructions: string;
1943
+ modifiedAt: Date | null;
1942
1944
  teacherId: string;
1943
1945
  acceptFiles: boolean;
1944
1946
  acceptExtendedResponse: boolean;
@@ -1947,11 +1949,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1947
1949
  aiPolicyLevel: number;
1948
1950
  sectionId: string | null;
1949
1951
  graded: boolean;
1950
- maxGrade: number | null;
1951
1952
  weight: number;
1952
1953
  inProgress: boolean;
1953
1954
  template: boolean;
1954
- eventId: string | null;
1955
1955
  markSchemeId: string | null;
1956
1956
  order: number | null;
1957
1957
  gradingBoundaryId: string | null;
@@ -1962,12 +1962,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1962
1962
  input: {
1963
1963
  [x: string]: unknown;
1964
1964
  classId: string;
1965
- assignmentId: string;
1966
1965
  files: {
1967
1966
  type: string;
1968
1967
  name: string;
1969
1968
  size: number;
1970
1969
  }[];
1970
+ assignmentId: string;
1971
1971
  };
1972
1972
  output: {
1973
1973
  success: boolean;
@@ -1979,12 +1979,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
1979
1979
  input: {
1980
1980
  [x: string]: unknown;
1981
1981
  classId: string;
1982
- submissionId: string;
1983
1982
  files: {
1984
1983
  type: string;
1985
1984
  name: string;
1986
1985
  size: number;
1987
1986
  }[];
1987
+ submissionId: string;
1988
1988
  };
1989
1989
  output: {
1990
1990
  success: boolean;
@@ -2024,12 +2024,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
2024
2024
  input: {
2025
2025
  [x: string]: unknown;
2026
2026
  classId: string;
2027
- submissionId: string;
2028
2027
  files: {
2029
2028
  type: string;
2030
2029
  name: string;
2031
2030
  size: number;
2032
2031
  }[];
2032
+ submissionId: string;
2033
2033
  };
2034
2034
  output: {
2035
2035
  success: boolean;
@@ -2053,8 +2053,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
2053
2053
  }>;
2054
2054
  updateUploadProgress: import("@trpc/server").TRPCMutationProcedure<{
2055
2055
  input: {
2056
- fileId: string;
2057
2056
  progress: number;
2057
+ fileId: string;
2058
2058
  };
2059
2059
  output: {
2060
2060
  success: boolean;