@studious-lms/server 1.12.0 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (338) hide show
  1. package/.dockerignore +28 -0
  2. package/.env.example +5 -0
  3. package/.github/workflows/deploy.yml +123 -0
  4. package/Dockerfile +54 -0
  5. package/dist/index.js +5 -2
  6. package/dist/index.js.map +1 -1
  7. package/dist/lib/config/cors.d.ts.map +1 -1
  8. package/dist/lib/config/cors.js +31 -11
  9. package/dist/lib/config/cors.js.map +1 -1
  10. package/dist/lib/config/env.d.ts +17 -0
  11. package/dist/lib/config/env.d.ts.map +1 -1
  12. package/dist/lib/config/env.js +8 -2
  13. package/dist/lib/config/env.js.map +1 -1
  14. package/dist/lib/googleCloudStorage.d.ts +10 -0
  15. package/dist/lib/googleCloudStorage.d.ts.map +1 -1
  16. package/dist/lib/googleCloudStorage.js +22 -2
  17. package/dist/lib/googleCloudStorage.js.map +1 -1
  18. package/dist/lib/prisma.d.ts +104 -5
  19. package/dist/lib/prisma.d.ts.map +1 -1
  20. package/dist/lib/prisma.js +33 -2
  21. package/dist/lib/prisma.js.map +1 -1
  22. package/dist/models/agenda.d.ts +20 -20
  23. package/dist/models/announcement.d.ts +177 -69
  24. package/dist/models/announcement.d.ts.map +1 -1
  25. package/dist/models/assignment.d.ts +551 -353
  26. package/dist/models/assignment.d.ts.map +1 -1
  27. package/dist/models/attendance.d.ts +197 -71
  28. package/dist/models/attendance.d.ts.map +1 -1
  29. package/dist/models/auth.d.ts +348 -114
  30. package/dist/models/auth.d.ts.map +1 -1
  31. package/dist/models/class.d.ts +324 -188
  32. package/dist/models/class.d.ts.map +1 -1
  33. package/dist/models/class.js +9 -3
  34. package/dist/models/class.js.map +1 -1
  35. package/dist/models/cloudStorage.d.ts +146 -56
  36. package/dist/models/cloudStorage.d.ts.map +1 -1
  37. package/dist/models/comment.d.ts +269 -110
  38. package/dist/models/comment.d.ts.map +1 -1
  39. package/dist/models/comment.js +3 -2
  40. package/dist/models/comment.js.map +1 -1
  41. package/dist/models/conversation.d.ts +206 -63
  42. package/dist/models/conversation.d.ts.map +1 -1
  43. package/dist/models/conversation.js +13 -2
  44. package/dist/models/conversation.js.map +1 -1
  45. package/dist/models/department.d.ts +196 -70
  46. package/dist/models/department.d.ts.map +1 -1
  47. package/dist/models/event.d.ts +287 -125
  48. package/dist/models/event.d.ts.map +1 -1
  49. package/dist/models/file.d.ts +389 -263
  50. package/dist/models/file.d.ts.map +1 -1
  51. package/dist/models/folder.d.ts +433 -181
  52. package/dist/models/folder.d.ts.map +1 -1
  53. package/dist/models/labChat.d.ts +209 -83
  54. package/dist/models/labChat.d.ts.map +1 -1
  55. package/dist/models/marketing.d.ts +80 -26
  56. package/dist/models/marketing.d.ts.map +1 -1
  57. package/dist/models/message.d.ts +95 -41
  58. package/dist/models/message.d.ts.map +1 -1
  59. package/dist/models/newtonChat.d.ts +83 -29
  60. package/dist/models/newtonChat.d.ts.map +1 -1
  61. package/dist/models/notification.d.ts +61 -25
  62. package/dist/models/notification.d.ts.map +1 -1
  63. package/dist/models/school.d.ts +349 -133
  64. package/dist/models/school.d.ts.map +1 -1
  65. package/dist/models/section.d.ts +216 -72
  66. package/dist/models/section.d.ts.map +1 -1
  67. package/dist/models/tag.d.ts +156 -48
  68. package/dist/models/tag.d.ts.map +1 -1
  69. package/dist/models/user.d.ts +82 -28
  70. package/dist/models/user.d.ts.map +1 -1
  71. package/dist/models/worksheet.d.ts +1023 -410
  72. package/dist/models/worksheet.d.ts.map +1 -1
  73. package/dist/models/worksheet.js +19 -7
  74. package/dist/models/worksheet.js.map +1 -1
  75. package/dist/pipelines/aiLabChat.d.ts +0 -8
  76. package/dist/pipelines/aiLabChat.d.ts.map +1 -1
  77. package/dist/pipelines/aiLabChat.js +50 -67
  78. package/dist/pipelines/aiLabChat.js.map +1 -1
  79. package/dist/pipelines/aiLabChatContract.d.ts +393 -388
  80. package/dist/pipelines/aiLabChatContract.d.ts.map +1 -1
  81. package/dist/pipelines/aiLabChatContract.js +63 -69
  82. package/dist/pipelines/aiLabChatContract.js.map +1 -1
  83. package/dist/pipelines/aiNewtonChat.d.ts.map +1 -1
  84. package/dist/pipelines/aiNewtonChat.js +41 -41
  85. package/dist/pipelines/aiNewtonChat.js.map +1 -1
  86. package/dist/pipelines/gradeWorksheet.d.ts +8 -8
  87. package/dist/pipelines/gradeWorksheet.d.ts.map +1 -1
  88. package/dist/pipelines/gradeWorksheet.js +59 -14
  89. package/dist/pipelines/gradeWorksheet.js.map +1 -1
  90. package/dist/pipelines/labChatPrompt.d.ts +10 -8
  91. package/dist/pipelines/labChatPrompt.d.ts.map +1 -1
  92. package/dist/pipelines/labChatPrompt.js +47 -67
  93. package/dist/pipelines/labChatPrompt.js.map +1 -1
  94. package/dist/pipelines/pdfToWorksheet.d.ts +2 -2
  95. package/dist/routers/_app.d.ts +2268 -1898
  96. package/dist/routers/_app.d.ts.map +1 -1
  97. package/dist/routers/_app.js +4 -2
  98. package/dist/routers/_app.js.map +1 -1
  99. package/dist/routers/admin.d.ts +13 -13
  100. package/dist/routers/agenda.d.ts +18 -18
  101. package/dist/routers/announcement.d.ts +32 -28
  102. package/dist/routers/announcement.d.ts.map +1 -1
  103. package/dist/routers/announcement.js +6 -5
  104. package/dist/routers/announcement.js.map +1 -1
  105. package/dist/routers/assignment.d.ts +335 -327
  106. package/dist/routers/assignment.d.ts.map +1 -1
  107. package/dist/routers/assignment.js +4 -4
  108. package/dist/routers/assignment.js.map +1 -1
  109. package/dist/routers/attendance.d.ts +10 -10
  110. package/dist/routers/auth.d.ts +2 -2
  111. package/dist/routers/class.d.ts +170 -147
  112. package/dist/routers/class.d.ts.map +1 -1
  113. package/dist/routers/comment.d.ts +40 -16
  114. package/dist/routers/comment.d.ts.map +1 -1
  115. package/dist/routers/comment.js +6 -3
  116. package/dist/routers/comment.js.map +1 -1
  117. package/dist/routers/conversation.d.ts +17 -17
  118. package/dist/routers/department.d.ts +34 -34
  119. package/dist/routers/discussion.d.ts +65 -53
  120. package/dist/routers/discussion.d.ts.map +1 -1
  121. package/dist/routers/discussion.js +6 -2
  122. package/dist/routers/discussion.js.map +1 -1
  123. package/dist/routers/embedding.d.ts +69 -0
  124. package/dist/routers/embedding.d.ts.map +1 -0
  125. package/dist/routers/embedding.js +143 -0
  126. package/dist/routers/embedding.js.map +1 -0
  127. package/dist/routers/event.d.ts +39 -39
  128. package/dist/routers/file.d.ts +12 -12
  129. package/dist/routers/folder.d.ts +38 -38
  130. package/dist/routers/labChat.d.ts +19 -19
  131. package/dist/routers/marketing.d.ts +2 -2
  132. package/dist/routers/message.d.ts +13 -13
  133. package/dist/routers/newtonChat.d.ts +4 -4
  134. package/dist/routers/notifications.d.ts +9 -9
  135. package/dist/routers/permissions.d.ts +14 -14
  136. package/dist/routers/school.d.ts +55 -55
  137. package/dist/routers/search.d.ts +22 -1
  138. package/dist/routers/search.d.ts.map +1 -1
  139. package/dist/routers/search.js +9 -3
  140. package/dist/routers/search.js.map +1 -1
  141. package/dist/routers/section.d.ts +4 -4
  142. package/dist/routers/studentProgress.d.ts +1 -1
  143. package/dist/routers/tag.d.ts +7 -7
  144. package/dist/routers/user.d.ts +10 -10
  145. package/dist/routers/worksheet.d.ts +97 -56
  146. package/dist/routers/worksheet.d.ts.map +1 -1
  147. package/dist/routers/worksheet.js +28 -2
  148. package/dist/routers/worksheet.js.map +1 -1
  149. package/dist/routes/aiStream.d.ts +2 -0
  150. package/dist/routes/aiStream.d.ts.map +1 -0
  151. package/dist/routes/aiStream.js +696 -0
  152. package/dist/routes/aiStream.js.map +1 -0
  153. package/dist/seedDatabase.d.ts +2 -2
  154. package/dist/seedDatabase.js +6 -6
  155. package/dist/seedDatabase.js.map +1 -1
  156. package/dist/services/adminInstitution.d.ts +8 -8
  157. package/dist/services/adminRunJob.d.ts +4 -4
  158. package/dist/services/agenda.d.ts +18 -18
  159. package/dist/services/aiChatStream.d.ts +68 -0
  160. package/dist/services/aiChatStream.d.ts.map +1 -0
  161. package/dist/services/aiChatStream.js +157 -0
  162. package/dist/services/aiChatStream.js.map +1 -0
  163. package/dist/services/aiModifierTools.d.ts +32 -0
  164. package/dist/services/aiModifierTools.d.ts.map +1 -0
  165. package/dist/services/aiModifierTools.js +165 -0
  166. package/dist/services/aiModifierTools.js.map +1 -0
  167. package/dist/services/aiProposalTools.d.ts +32 -0
  168. package/dist/services/aiProposalTools.d.ts.map +1 -0
  169. package/dist/services/aiProposalTools.js +207 -0
  170. package/dist/services/aiProposalTools.js.map +1 -0
  171. package/dist/services/aiStream.d.ts +22 -0
  172. package/dist/services/aiStream.d.ts.map +1 -0
  173. package/dist/services/aiStream.js +142 -0
  174. package/dist/services/aiStream.js.map +1 -0
  175. package/dist/services/aiTools.d.ts +16 -0
  176. package/dist/services/aiTools.d.ts.map +1 -0
  177. package/dist/services/aiTools.js +271 -0
  178. package/dist/services/aiTools.js.map +1 -0
  179. package/dist/services/announcement.d.ts +12 -12
  180. package/dist/services/announcement.d.ts.map +1 -1
  181. package/dist/services/announcement.js +7 -2
  182. package/dist/services/announcement.js.map +1 -1
  183. package/dist/services/assignment.d.ts +293 -293
  184. package/dist/services/assignment.d.ts.map +1 -1
  185. package/dist/services/assignment.js +36 -15
  186. package/dist/services/assignment.js.map +1 -1
  187. package/dist/services/attendance.d.ts +10 -10
  188. package/dist/services/auth.d.ts +2 -2
  189. package/dist/services/class.d.ts +161 -138
  190. package/dist/services/class.d.ts.map +1 -1
  191. package/dist/services/class.js +25 -4
  192. package/dist/services/class.js.map +1 -1
  193. package/dist/services/comment.d.ts +34 -16
  194. package/dist/services/comment.d.ts.map +1 -1
  195. package/dist/services/comment.js +23 -2
  196. package/dist/services/comment.js.map +1 -1
  197. package/dist/services/conversation.d.ts +17 -17
  198. package/dist/services/conversation.d.ts.map +1 -1
  199. package/dist/services/conversation.js +9 -7
  200. package/dist/services/conversation.js.map +1 -1
  201. package/dist/services/department.d.ts +33 -33
  202. package/dist/services/discussion.d.ts +58 -58
  203. package/dist/services/discussion.d.ts.map +1 -1
  204. package/dist/services/discussion.js +8 -8
  205. package/dist/services/discussion.js.map +1 -1
  206. package/dist/services/discussionSummary.d.ts +21 -0
  207. package/dist/services/discussionSummary.d.ts.map +1 -0
  208. package/dist/services/discussionSummary.js +179 -0
  209. package/dist/services/discussionSummary.js.map +1 -0
  210. package/dist/services/embedding.d.ts +67 -0
  211. package/dist/services/embedding.d.ts.map +1 -0
  212. package/dist/services/embedding.js +226 -0
  213. package/dist/services/embedding.js.map +1 -0
  214. package/dist/services/event.d.ts +37 -37
  215. package/dist/services/file.d.ts +24 -24
  216. package/dist/services/folder.d.ts +36 -36
  217. package/dist/services/labChat.d.ts +19 -19
  218. package/dist/services/marketing.d.ts +2 -2
  219. package/dist/services/message.d.ts +11 -11
  220. package/dist/services/message.d.ts.map +1 -1
  221. package/dist/services/message.js +2 -2
  222. package/dist/services/message.js.map +1 -1
  223. package/dist/services/newtonChat.d.ts +4 -4
  224. package/dist/services/notification.d.ts +9 -9
  225. package/dist/services/notification.d.ts.map +1 -1
  226. package/dist/services/permissions.d.ts +14 -14
  227. package/dist/services/school.d.ts +50 -50
  228. package/dist/services/search.d.ts +12 -0
  229. package/dist/services/search.d.ts.map +1 -1
  230. package/dist/services/search.js +120 -2
  231. package/dist/services/search.js.map +1 -1
  232. package/dist/services/section.d.ts +3 -3
  233. package/dist/services/tag.d.ts +4 -4
  234. package/dist/services/user.d.ts +4 -4
  235. package/dist/services/user.d.ts.map +1 -1
  236. package/dist/services/user.js +10 -15
  237. package/dist/services/user.js.map +1 -1
  238. package/dist/services/worksheet.d.ts +62 -47
  239. package/dist/services/worksheet.d.ts.map +1 -1
  240. package/dist/services/worksheet.js +11 -4
  241. package/dist/services/worksheet.js.map +1 -1
  242. package/dist/utils/streamBroadcast.d.ts +11 -0
  243. package/dist/utils/streamBroadcast.d.ts.map +1 -0
  244. package/dist/utils/streamBroadcast.js +32 -0
  245. package/dist/utils/streamBroadcast.js.map +1 -0
  246. package/dist/workers/connection.d.ts +15 -0
  247. package/dist/workers/connection.d.ts.map +1 -1
  248. package/dist/workers/connection.js +20 -2
  249. package/dist/workers/connection.js.map +1 -1
  250. package/dist/workers/index.js +4 -2
  251. package/dist/workers/index.js.map +1 -1
  252. package/dist/workers/processors/createRunJobWorker.d.ts.map +1 -1
  253. package/dist/workers/processors/createRunJobWorker.js +31 -8
  254. package/dist/workers/processors/createRunJobWorker.js.map +1 -1
  255. package/dist/workers/processors/embedContent.d.ts +8 -0
  256. package/dist/workers/processors/embedContent.d.ts.map +1 -0
  257. package/dist/workers/processors/embedContent.js +76 -0
  258. package/dist/workers/processors/embedContent.js.map +1 -0
  259. package/dist/workers/queues.d.ts +6 -0
  260. package/dist/workers/queues.d.ts.map +1 -1
  261. package/dist/workers/queues.js +5 -3
  262. package/dist/workers/queues.js.map +1 -1
  263. package/package.json +5 -1
  264. package/prisma/migrations/20260609215135_init/migration.sql +1412 -0
  265. package/prisma/migrations/20260610130000_add_worksheet_tags/migration.sql +13 -0
  266. package/prisma/schema.prisma +39 -7
  267. package/src/index.ts +4 -0
  268. package/src/lib/config/cors.ts +32 -9
  269. package/src/lib/config/env.ts +6 -0
  270. package/src/lib/googleCloudStorage.ts +21 -0
  271. package/src/lib/prisma.ts +40 -1
  272. package/src/models/class.ts +10 -3
  273. package/src/models/comment.ts +1 -0
  274. package/src/models/conversation.ts +12 -0
  275. package/src/models/worksheet.ts +16 -7
  276. package/src/pipelines/aiLabChat.ts +54 -79
  277. package/src/pipelines/aiLabChatContract.ts +69 -69
  278. package/src/pipelines/aiNewtonChat.ts +46 -43
  279. package/src/pipelines/gradeWorksheet.ts +66 -15
  280. package/src/pipelines/labChatPrompt.ts +63 -88
  281. package/src/routers/_app.ts +2 -0
  282. package/src/routers/announcement.ts +4 -3
  283. package/src/routers/assignment.ts +2 -2
  284. package/src/routers/comment.ts +5 -0
  285. package/src/routers/discussion.ts +7 -0
  286. package/src/routers/embedding.ts +159 -0
  287. package/src/routers/search.ts +10 -1
  288. package/src/routers/worksheet.ts +29 -0
  289. package/src/routes/aiStream.ts +789 -0
  290. package/src/seedDatabase.ts +4 -4
  291. package/src/services/aiChatStream.ts +219 -0
  292. package/src/services/aiModifierTools.ts +188 -0
  293. package/src/services/aiProposalTools.ts +272 -0
  294. package/src/services/aiStream.ts +175 -0
  295. package/src/services/aiTools.ts +290 -0
  296. package/src/services/announcement.ts +7 -0
  297. package/src/services/assignment.ts +36 -14
  298. package/src/services/class.ts +30 -2
  299. package/src/services/comment.ts +22 -0
  300. package/src/services/conversation.ts +9 -4
  301. package/src/services/discussion.ts +9 -8
  302. package/src/services/discussionSummary.ts +226 -0
  303. package/src/services/embedding.ts +285 -0
  304. package/src/services/message.ts +2 -2
  305. package/src/services/search.ts +138 -0
  306. package/src/services/user.ts +9 -17
  307. package/src/services/worksheet.ts +10 -2
  308. package/src/utils/streamBroadcast.ts +48 -0
  309. package/src/workers/connection.ts +19 -0
  310. package/src/workers/index.ts +2 -0
  311. package/src/workers/processors/createRunJobWorker.ts +32 -6
  312. package/src/workers/processors/embedContent.ts +90 -0
  313. package/src/workers/queues.ts +5 -1
  314. package/tests/integration/routers/conversation.test.ts +9 -7
  315. package/tests/unit/pipelines/aiLabChatContract.test.ts +38 -21
  316. package/tests/unit/pipelines/labChatPrompt.test.ts +23 -36
  317. package/prisma/migrations/20250807062924_init/migration.sql +0 -436
  318. package/prisma/migrations/20250919063704_init2/migration.sql +0 -24
  319. package/prisma/migrations/20250920143543_add_profile_fields/migration.sql +0 -15
  320. package/prisma/migrations/20250922165147_add_chat_models/migration.sql +0 -68
  321. package/prisma/migrations/20250922165314_add_chat_roles/migration.sql +0 -5
  322. package/prisma/migrations/20250922171242_refactor_notification_system/migration.sql +0 -20
  323. package/prisma/migrations/20250922172208_add_mentions_system/migration.sql +0 -21
  324. package/prisma/migrations/20250925072732_add_lab_chat_system/migration.sql +0 -25
  325. package/prisma/migrations/20251020151505_add_upload_tracking_fields/migration.sql +0 -57
  326. package/prisma/migrations/20251109122857_annuoncements_comments/migration.sql +0 -30
  327. package/prisma/migrations/20251109135555_reactions_announcements_comments/migration.sql +0 -35
  328. package/prisma/migrations/20260410124000_add_submission_recommendation_state/migration.sql +0 -14
  329. package/prisma/migrations/20260415103500_add_session_type/migration.sql +0 -33
  330. package/prisma/migrations/20260415133000_add_ai_usage_logs/migration.sql +0 -19
  331. package/prisma/migrations/20260417083000_add_conversation_member_hidden_at/migration.sql +0 -2
  332. package/prisma/migrations/20260502230500_assignment_submission_comments/migration.sql +0 -60
  333. package/prisma/migrations/20260504071500_school_memberships/migration.sql +0 -81
  334. package/prisma/migrations/20260506162500_consolidate_run_job_and_unify_job_status/migration.sql +0 -166
  335. package/prisma/migrations/20260509220000_institution_overhaul/migration.sql +0 -184
  336. package/prisma/migrations/20260510170000_add_folder_permissions/migration.sql +0 -93
  337. package/prisma/migrations/20260510183000_add_discussions/migration.sql +0 -151
  338. /package/.github/workflows/{npm.yml → npm-publish.yml} +0 -0
@@ -1,19 +1,97 @@
1
1
  /** @returns File with assignment, submission, annotations, folder, announcement for permission checks. */
2
- export declare function findFileById(fileId: string): import(".prisma/client").Prisma.Prisma__FileClient<({
3
- assignment: ({
4
- class: {
2
+ export declare function findFileById(fileId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
3
+ result: {
4
+ userProfile: {
5
+ profilePicture: () => {
6
+ needs: {
7
+ profilePicture: true;
8
+ };
9
+ compute(profile: {
10
+ profilePicture: string | null;
11
+ }): string | null;
12
+ };
13
+ profilePictureThumbnail: () => {
14
+ needs: {
15
+ profilePictureThumbnail: true;
16
+ };
17
+ compute(profile: {
18
+ profilePictureThumbnail: string | null;
19
+ }): string | null;
20
+ };
21
+ };
22
+ };
23
+ model: {};
24
+ query: {};
25
+ client: {};
26
+ }, {}>, "File", "findUnique", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
27
+ folder: ({
28
+ class: ({
5
29
  school: ({
6
30
  memberships: {
7
31
  userId: string;
8
32
  }[];
9
33
  } & {
10
- name: string;
11
34
  id: string;
35
+ createdAt: Date;
36
+ updatedAt: Date;
37
+ name: string;
12
38
  description: string | null;
13
39
  logoId: string | null;
14
40
  subdomain: string | null;
41
+ }) | null;
42
+ teachers: {
43
+ id: string;
44
+ username: string;
45
+ email: string;
46
+ password: string;
47
+ verified: boolean;
48
+ schoolId: string | null;
49
+ }[];
50
+ students: {
51
+ id: string;
52
+ username: string;
53
+ email: string;
54
+ password: string;
55
+ verified: boolean;
56
+ schoolId: string | null;
57
+ }[];
58
+ } & {
59
+ section: string;
60
+ id: string;
61
+ name: string;
62
+ schoolId: string | null;
63
+ color: string | null;
64
+ subject: string;
65
+ syllabus: string | null;
66
+ departmentId: string | null;
67
+ discussionsEnabled: boolean;
68
+ studentsCanCreateDiscussions: boolean;
69
+ studentsCanReply: boolean;
70
+ }) | null;
71
+ } & {
72
+ id: string;
73
+ name: string;
74
+ scope: import(".prisma/client").$Enums.FolderScope;
75
+ parentFolderId: string | null;
76
+ color: string | null;
77
+ classId: string | null;
78
+ schoolStorageId: string | null;
79
+ personalOwnerId: string | null;
80
+ }) | null;
81
+ assignment: ({
82
+ class: {
83
+ school: ({
84
+ memberships: {
85
+ userId: string;
86
+ }[];
87
+ } & {
88
+ id: string;
15
89
  createdAt: Date;
16
90
  updatedAt: Date;
91
+ name: string;
92
+ description: string | null;
93
+ logoId: string | null;
94
+ subdomain: string | null;
17
95
  }) | null;
18
96
  teachers: {
19
97
  id: string;
@@ -32,12 +110,12 @@ export declare function findFileById(fileId: string): import(".prisma/client").P
32
110
  schoolId: string | null;
33
111
  }[];
34
112
  } & {
35
- name: string;
113
+ section: string;
36
114
  id: string;
115
+ name: string;
37
116
  schoolId: string | null;
38
- subject: string;
39
117
  color: string | null;
40
- section: string;
118
+ subject: string;
41
119
  syllabus: string | null;
42
120
  departmentId: string | null;
43
121
  discussionsEnabled: boolean;
@@ -49,10 +127,12 @@ export declare function findFileById(fileId: string): import(".prisma/client").P
49
127
  id: string;
50
128
  createdAt: Date | null;
51
129
  classId: string;
52
- modifiedAt: Date | null;
53
130
  title: string;
54
- instructions: string;
55
131
  dueDate: Date;
132
+ maxGrade: number | null;
133
+ eventId: string | null;
134
+ instructions: string;
135
+ modifiedAt: Date | null;
56
136
  teacherId: string;
57
137
  acceptFiles: boolean;
58
138
  acceptExtendedResponse: boolean;
@@ -61,15 +141,65 @@ export declare function findFileById(fileId: string): import(".prisma/client").P
61
141
  aiPolicyLevel: number;
62
142
  sectionId: string | null;
63
143
  graded: boolean;
64
- maxGrade: number | null;
65
144
  weight: number;
66
145
  inProgress: boolean;
67
146
  template: boolean;
68
- eventId: string | null;
69
147
  markSchemeId: string | null;
70
148
  order: number | null;
71
149
  gradingBoundaryId: string | null;
72
150
  }) | null;
151
+ announcement: ({
152
+ class: {
153
+ school: ({
154
+ memberships: {
155
+ userId: string;
156
+ }[];
157
+ } & {
158
+ id: string;
159
+ createdAt: Date;
160
+ updatedAt: Date;
161
+ name: string;
162
+ description: string | null;
163
+ logoId: string | null;
164
+ subdomain: string | null;
165
+ }) | null;
166
+ teachers: {
167
+ id: string;
168
+ username: string;
169
+ email: string;
170
+ password: string;
171
+ verified: boolean;
172
+ schoolId: string | null;
173
+ }[];
174
+ students: {
175
+ id: string;
176
+ username: string;
177
+ email: string;
178
+ password: string;
179
+ verified: boolean;
180
+ schoolId: string | null;
181
+ }[];
182
+ } & {
183
+ section: string;
184
+ id: string;
185
+ name: string;
186
+ schoolId: string | null;
187
+ color: string | null;
188
+ subject: string;
189
+ syllabus: string | null;
190
+ departmentId: string | null;
191
+ discussionsEnabled: boolean;
192
+ studentsCanCreateDiscussions: boolean;
193
+ studentsCanReply: boolean;
194
+ };
195
+ } & {
196
+ id: string;
197
+ createdAt: Date;
198
+ classId: string;
199
+ remarks: string;
200
+ modifiedAt: Date | null;
201
+ teacherId: string;
202
+ }) | null;
73
203
  submission: ({
74
204
  assignment: {
75
205
  class: {
@@ -78,13 +208,13 @@ export declare function findFileById(fileId: string): import(".prisma/client").P
78
208
  userId: string;
79
209
  }[];
80
210
  } & {
81
- name: string;
82
211
  id: string;
212
+ createdAt: Date;
213
+ updatedAt: Date;
214
+ name: string;
83
215
  description: string | null;
84
216
  logoId: string | null;
85
217
  subdomain: string | null;
86
- createdAt: Date;
87
- updatedAt: Date;
88
218
  }) | null;
89
219
  teachers: {
90
220
  id: string;
@@ -103,12 +233,12 @@ export declare function findFileById(fileId: string): import(".prisma/client").P
103
233
  schoolId: string | null;
104
234
  }[];
105
235
  } & {
106
- name: string;
236
+ section: string;
107
237
  id: string;
238
+ name: string;
108
239
  schoolId: string | null;
109
- subject: string;
110
240
  color: string | null;
111
- section: string;
241
+ subject: string;
112
242
  syllabus: string | null;
113
243
  departmentId: string | null;
114
244
  discussionsEnabled: boolean;
@@ -120,10 +250,12 @@ export declare function findFileById(fileId: string): import(".prisma/client").P
120
250
  id: string;
121
251
  createdAt: Date | null;
122
252
  classId: string;
123
- modifiedAt: Date | null;
124
253
  title: string;
125
- instructions: string;
126
254
  dueDate: Date;
255
+ maxGrade: number | null;
256
+ eventId: string | null;
257
+ instructions: string;
258
+ modifiedAt: Date | null;
127
259
  teacherId: string;
128
260
  acceptFiles: boolean;
129
261
  acceptExtendedResponse: boolean;
@@ -132,11 +264,9 @@ export declare function findFileById(fileId: string): import(".prisma/client").P
132
264
  aiPolicyLevel: number;
133
265
  sectionId: string | null;
134
266
  graded: boolean;
135
- maxGrade: number | null;
136
267
  weight: number;
137
268
  inProgress: boolean;
138
269
  template: boolean;
139
- eventId: string | null;
140
270
  markSchemeId: string | null;
141
271
  order: number | null;
142
272
  gradingBoundaryId: string | null;
@@ -174,13 +304,13 @@ export declare function findFileById(fileId: string): import(".prisma/client").P
174
304
  userId: string;
175
305
  }[];
176
306
  } & {
177
- name: string;
178
307
  id: string;
308
+ createdAt: Date;
309
+ updatedAt: Date;
310
+ name: string;
179
311
  description: string | null;
180
312
  logoId: string | null;
181
313
  subdomain: string | null;
182
- createdAt: Date;
183
- updatedAt: Date;
184
314
  }) | null;
185
315
  teachers: {
186
316
  id: string;
@@ -199,12 +329,12 @@ export declare function findFileById(fileId: string): import(".prisma/client").P
199
329
  schoolId: string | null;
200
330
  }[];
201
331
  } & {
202
- name: string;
332
+ section: string;
203
333
  id: string;
334
+ name: string;
204
335
  schoolId: string | null;
205
- subject: string;
206
336
  color: string | null;
207
- section: string;
337
+ subject: string;
208
338
  syllabus: string | null;
209
339
  departmentId: string | null;
210
340
  discussionsEnabled: boolean;
@@ -216,10 +346,12 @@ export declare function findFileById(fileId: string): import(".prisma/client").P
216
346
  id: string;
217
347
  createdAt: Date | null;
218
348
  classId: string;
219
- modifiedAt: Date | null;
220
349
  title: string;
221
- instructions: string;
222
350
  dueDate: Date;
351
+ maxGrade: number | null;
352
+ eventId: string | null;
353
+ instructions: string;
354
+ modifiedAt: Date | null;
223
355
  teacherId: string;
224
356
  acceptFiles: boolean;
225
357
  acceptExtendedResponse: boolean;
@@ -228,11 +360,9 @@ export declare function findFileById(fileId: string): import(".prisma/client").P
228
360
  aiPolicyLevel: number;
229
361
  sectionId: string | null;
230
362
  graded: boolean;
231
- maxGrade: number | null;
232
363
  weight: number;
233
364
  inProgress: boolean;
234
365
  template: boolean;
235
- eventId: string | null;
236
366
  markSchemeId: string | null;
237
367
  order: number | null;
238
368
  gradingBoundaryId: string | null;
@@ -262,121 +392,18 @@ export declare function findFileById(fileId: string): import(".prisma/client").P
262
392
  submitted: boolean | null;
263
393
  returned: boolean | null;
264
394
  }) | null;
265
- folder: ({
266
- class: ({
267
- school: ({
268
- memberships: {
269
- userId: string;
270
- }[];
271
- } & {
272
- name: string;
273
- id: string;
274
- description: string | null;
275
- logoId: string | null;
276
- subdomain: string | null;
277
- createdAt: Date;
278
- updatedAt: Date;
279
- }) | null;
280
- teachers: {
281
- id: string;
282
- username: string;
283
- email: string;
284
- password: string;
285
- verified: boolean;
286
- schoolId: string | null;
287
- }[];
288
- students: {
289
- id: string;
290
- username: string;
291
- email: string;
292
- password: string;
293
- verified: boolean;
294
- schoolId: string | null;
295
- }[];
296
- } & {
297
- name: string;
298
- id: string;
299
- schoolId: string | null;
300
- subject: string;
301
- color: string | null;
302
- section: string;
303
- syllabus: string | null;
304
- departmentId: string | null;
305
- discussionsEnabled: boolean;
306
- studentsCanCreateDiscussions: boolean;
307
- studentsCanReply: boolean;
308
- }) | null;
309
- } & {
310
- name: string;
311
- id: string;
312
- color: string | null;
313
- classId: string | null;
314
- schoolStorageId: string | null;
315
- personalOwnerId: string | null;
316
- scope: import(".prisma/client").$Enums.FolderScope;
317
- parentFolderId: string | null;
318
- }) | null;
319
- announcement: ({
320
- class: {
321
- school: ({
322
- memberships: {
323
- userId: string;
324
- }[];
325
- } & {
326
- name: string;
327
- id: string;
328
- description: string | null;
329
- logoId: string | null;
330
- subdomain: string | null;
331
- createdAt: Date;
332
- updatedAt: Date;
333
- }) | null;
334
- teachers: {
335
- id: string;
336
- username: string;
337
- email: string;
338
- password: string;
339
- verified: boolean;
340
- schoolId: string | null;
341
- }[];
342
- students: {
343
- id: string;
344
- username: string;
345
- email: string;
346
- password: string;
347
- verified: boolean;
348
- schoolId: string | null;
349
- }[];
350
- } & {
351
- name: string;
352
- id: string;
353
- schoolId: string | null;
354
- subject: string;
355
- color: string | null;
356
- section: string;
357
- syllabus: string | null;
358
- departmentId: string | null;
359
- discussionsEnabled: boolean;
360
- studentsCanCreateDiscussions: boolean;
361
- studentsCanReply: boolean;
362
- };
363
- } & {
364
- id: string;
365
- createdAt: Date;
366
- classId: string;
367
- modifiedAt: Date | null;
368
- teacherId: string;
369
- remarks: string;
370
- }) | null;
371
395
  } & {
372
396
  path: string;
373
397
  type: string;
374
- name: string;
375
398
  id: string;
376
399
  userId: string | null;
377
- folderId: string | null;
400
+ name: string;
378
401
  size: number | null;
379
402
  uploadedAt: Date | null;
403
+ assignmentId: string | null;
404
+ submissionId: string | null;
405
+ thumbnailId: string | null;
406
+ annotationId: string | null;
380
407
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
381
408
  uploadUrl: string | null;
382
409
  uploadExpiresAt: Date | null;
@@ -386,34 +413,49 @@ export declare function findFileById(fileId: string): import(".prisma/client").P
386
413
  uploadRetryCount: number;
387
414
  isOrphaned: boolean;
388
415
  cleanupAt: Date | null;
389
- thumbnailId: string | null;
390
- assignmentId: string | null;
391
- submissionId: string | null;
392
- annotationId: string | null;
393
416
  classDraftId: string | null;
417
+ folderId: string | null;
394
418
  conversationId: string | null;
395
419
  messageId: string | null;
396
420
  announcementId: string | null;
397
421
  discussionId: string | null;
398
422
  discussionReplyId: string | null;
399
423
  schoolDevelopementProgramId: string | null;
400
- }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
401
- datasources: {
402
- db: {
403
- url: string;
424
+ }) | null>;
425
+ /** @returns File with folder and class. */
426
+ export declare function findFileWithFolder(fileId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
427
+ result: {
428
+ userProfile: {
429
+ profilePicture: () => {
430
+ needs: {
431
+ profilePicture: true;
432
+ };
433
+ compute(profile: {
434
+ profilePicture: string | null;
435
+ }): string | null;
436
+ };
437
+ profilePictureThumbnail: () => {
438
+ needs: {
439
+ profilePictureThumbnail: true;
440
+ };
441
+ compute(profile: {
442
+ profilePictureThumbnail: string | null;
443
+ }): string | null;
444
+ };
404
445
  };
405
446
  };
406
- }>;
407
- /** @returns File with folder and class. */
408
- export declare function findFileWithFolder(fileId: string): import(".prisma/client").Prisma.Prisma__FileClient<({
447
+ model: {};
448
+ query: {};
449
+ client: {};
450
+ }, {}>, "File", "findUnique", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
409
451
  folder: ({
410
452
  class: {
411
- name: string;
453
+ section: string;
412
454
  id: string;
455
+ name: string;
413
456
  schoolId: string | null;
414
- subject: string;
415
457
  color: string | null;
416
- section: string;
458
+ subject: string;
417
459
  syllabus: string | null;
418
460
  departmentId: string | null;
419
461
  discussionsEnabled: boolean;
@@ -421,24 +463,27 @@ export declare function findFileWithFolder(fileId: string): import(".prisma/clie
421
463
  studentsCanReply: boolean;
422
464
  } | null;
423
465
  } & {
424
- name: string;
425
466
  id: string;
467
+ name: string;
468
+ scope: import(".prisma/client").$Enums.FolderScope;
469
+ parentFolderId: string | null;
426
470
  color: string | null;
427
471
  classId: string | null;
428
472
  schoolStorageId: string | null;
429
473
  personalOwnerId: string | null;
430
- scope: import(".prisma/client").$Enums.FolderScope;
431
- parentFolderId: string | null;
432
474
  }) | null;
433
475
  } & {
434
476
  path: string;
435
477
  type: string;
436
- name: string;
437
478
  id: string;
438
479
  userId: string | null;
439
- folderId: string | null;
480
+ name: string;
440
481
  size: number | null;
441
482
  uploadedAt: Date | null;
483
+ assignmentId: string | null;
484
+ submissionId: string | null;
485
+ thumbnailId: string | null;
486
+ annotationId: string | null;
442
487
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
443
488
  uploadUrl: string | null;
444
489
  uploadExpiresAt: Date | null;
@@ -448,35 +493,77 @@ export declare function findFileWithFolder(fileId: string): import(".prisma/clie
448
493
  uploadRetryCount: number;
449
494
  isOrphaned: boolean;
450
495
  cleanupAt: Date | null;
451
- thumbnailId: string | null;
452
- assignmentId: string | null;
453
- submissionId: string | null;
454
- annotationId: string | null;
455
496
  classDraftId: string | null;
497
+ folderId: string | null;
456
498
  conversationId: string | null;
457
499
  messageId: string | null;
458
500
  announcementId: string | null;
459
501
  discussionId: string | null;
460
502
  discussionReplyId: string | null;
461
503
  schoolDevelopementProgramId: string | null;
462
- }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
463
- datasources: {
464
- db: {
465
- url: string;
504
+ }) | null>;
505
+ /** @returns File with folder and thumbnail. */
506
+ export declare function findFileWithFolderAndThumbnail(fileId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
507
+ result: {
508
+ userProfile: {
509
+ profilePicture: () => {
510
+ needs: {
511
+ profilePicture: true;
512
+ };
513
+ compute(profile: {
514
+ profilePicture: string | null;
515
+ }): string | null;
516
+ };
517
+ profilePictureThumbnail: () => {
518
+ needs: {
519
+ profilePictureThumbnail: true;
520
+ };
521
+ compute(profile: {
522
+ profilePictureThumbnail: string | null;
523
+ }): string | null;
524
+ };
466
525
  };
467
526
  };
468
- }>;
469
- /** @returns File with folder and thumbnail. */
470
- export declare function findFileWithFolderAndThumbnail(fileId: string): import(".prisma/client").Prisma.Prisma__FileClient<({
527
+ model: {};
528
+ query: {};
529
+ client: {};
530
+ }, {}>, "File", "findUnique", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
531
+ folder: ({
532
+ class: {
533
+ section: string;
534
+ id: string;
535
+ name: string;
536
+ schoolId: string | null;
537
+ color: string | null;
538
+ subject: string;
539
+ syllabus: string | null;
540
+ departmentId: string | null;
541
+ discussionsEnabled: boolean;
542
+ studentsCanCreateDiscussions: boolean;
543
+ studentsCanReply: boolean;
544
+ } | null;
545
+ } & {
546
+ id: string;
547
+ name: string;
548
+ scope: import(".prisma/client").$Enums.FolderScope;
549
+ parentFolderId: string | null;
550
+ color: string | null;
551
+ classId: string | null;
552
+ schoolStorageId: string | null;
553
+ personalOwnerId: string | null;
554
+ }) | null;
471
555
  thumbnail: {
472
556
  path: string;
473
557
  type: string;
474
- name: string;
475
558
  id: string;
476
559
  userId: string | null;
477
- folderId: string | null;
560
+ name: string;
478
561
  size: number | null;
479
562
  uploadedAt: Date | null;
563
+ assignmentId: string | null;
564
+ submissionId: string | null;
565
+ thumbnailId: string | null;
566
+ annotationId: string | null;
480
567
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
481
568
  uploadUrl: string | null;
482
569
  uploadExpiresAt: Date | null;
@@ -486,11 +573,8 @@ export declare function findFileWithFolderAndThumbnail(fileId: string): import("
486
573
  uploadRetryCount: number;
487
574
  isOrphaned: boolean;
488
575
  cleanupAt: Date | null;
489
- thumbnailId: string | null;
490
- assignmentId: string | null;
491
- submissionId: string | null;
492
- annotationId: string | null;
493
576
  classDraftId: string | null;
577
+ folderId: string | null;
494
578
  conversationId: string | null;
495
579
  messageId: string | null;
496
580
  announcementId: string | null;
@@ -498,39 +582,18 @@ export declare function findFileWithFolderAndThumbnail(fileId: string): import("
498
582
  discussionReplyId: string | null;
499
583
  schoolDevelopementProgramId: string | null;
500
584
  } | null;
501
- folder: ({
502
- class: {
503
- name: string;
504
- id: string;
505
- schoolId: string | null;
506
- subject: string;
507
- color: string | null;
508
- section: string;
509
- syllabus: string | null;
510
- departmentId: string | null;
511
- discussionsEnabled: boolean;
512
- studentsCanCreateDiscussions: boolean;
513
- studentsCanReply: boolean;
514
- } | null;
515
- } & {
516
- name: string;
517
- id: string;
518
- color: string | null;
519
- classId: string | null;
520
- schoolStorageId: string | null;
521
- personalOwnerId: string | null;
522
- scope: import(".prisma/client").$Enums.FolderScope;
523
- parentFolderId: string | null;
524
- }) | null;
525
585
  } & {
526
586
  path: string;
527
587
  type: string;
528
- name: string;
529
588
  id: string;
530
589
  userId: string | null;
531
- folderId: string | null;
590
+ name: string;
532
591
  size: number | null;
533
592
  uploadedAt: Date | null;
593
+ assignmentId: string | null;
594
+ submissionId: string | null;
595
+ thumbnailId: string | null;
596
+ annotationId: string | null;
534
597
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
535
598
  uploadUrl: string | null;
536
599
  uploadExpiresAt: Date | null;
@@ -540,33 +603,48 @@ export declare function findFileWithFolderAndThumbnail(fileId: string): import("
540
603
  uploadRetryCount: number;
541
604
  isOrphaned: boolean;
542
605
  cleanupAt: Date | null;
543
- thumbnailId: string | null;
544
- assignmentId: string | null;
545
- submissionId: string | null;
546
- annotationId: string | null;
547
606
  classDraftId: string | null;
607
+ folderId: string | null;
548
608
  conversationId: string | null;
549
609
  messageId: string | null;
550
610
  announcementId: string | null;
551
611
  discussionId: string | null;
552
612
  discussionReplyId: string | null;
553
613
  schoolDevelopementProgramId: string | null;
554
- }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
555
- datasources: {
556
- db: {
557
- url: string;
614
+ }) | null>;
615
+ /** @returns Folder by ID with class. */
616
+ export declare function findFolderById(folderId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
617
+ result: {
618
+ userProfile: {
619
+ profilePicture: () => {
620
+ needs: {
621
+ profilePicture: true;
622
+ };
623
+ compute(profile: {
624
+ profilePicture: string | null;
625
+ }): string | null;
626
+ };
627
+ profilePictureThumbnail: () => {
628
+ needs: {
629
+ profilePictureThumbnail: true;
630
+ };
631
+ compute(profile: {
632
+ profilePictureThumbnail: string | null;
633
+ }): string | null;
634
+ };
558
635
  };
559
636
  };
560
- }>;
561
- /** @returns Folder by ID with class. */
562
- export declare function findFolderById(folderId: string): import(".prisma/client").Prisma.Prisma__FolderClient<({
637
+ model: {};
638
+ query: {};
639
+ client: {};
640
+ }, {}>, "Folder", "findUnique", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
563
641
  class: {
564
- name: string;
642
+ section: string;
565
643
  id: string;
644
+ name: string;
566
645
  schoolId: string | null;
567
- subject: string;
568
646
  color: string | null;
569
- section: string;
647
+ subject: string;
570
648
  syllabus: string | null;
571
649
  departmentId: string | null;
572
650
  discussionsEnabled: boolean;
@@ -574,23 +652,41 @@ export declare function findFolderById(folderId: string): import(".prisma/client
574
652
  studentsCanReply: boolean;
575
653
  } | null;
576
654
  } & {
577
- name: string;
578
655
  id: string;
656
+ name: string;
657
+ scope: import(".prisma/client").$Enums.FolderScope;
658
+ parentFolderId: string | null;
579
659
  color: string | null;
580
660
  classId: string | null;
581
661
  schoolStorageId: string | null;
582
662
  personalOwnerId: string | null;
583
- scope: import(".prisma/client").$Enums.FolderScope;
584
- parentFolderId: string | null;
585
- }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
586
- datasources: {
587
- db: {
588
- url: string;
663
+ }) | null>;
664
+ /** Move file to a folder. */
665
+ export declare function updateFileFolder(fileId: string, folderId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
666
+ result: {
667
+ userProfile: {
668
+ profilePicture: () => {
669
+ needs: {
670
+ profilePicture: true;
671
+ };
672
+ compute(profile: {
673
+ profilePicture: string | null;
674
+ }): string | null;
675
+ };
676
+ profilePictureThumbnail: () => {
677
+ needs: {
678
+ profilePictureThumbnail: true;
679
+ };
680
+ compute(profile: {
681
+ profilePictureThumbnail: string | null;
682
+ }): string | null;
683
+ };
589
684
  };
590
685
  };
591
- }>;
592
- /** Move file to a folder. */
593
- export declare function updateFileFolder(fileId: string, folderId: string): import(".prisma/client").Prisma.Prisma__FileClient<{
686
+ model: {};
687
+ query: {};
688
+ client: {};
689
+ }, {}>, "File", "update", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
594
690
  user: {
595
691
  id: string;
596
692
  username: string;
@@ -598,12 +694,15 @@ export declare function updateFileFolder(fileId: string, folderId: string): impo
598
694
  } & {
599
695
  path: string;
600
696
  type: string;
601
- name: string;
602
697
  id: string;
603
698
  userId: string | null;
604
- folderId: string | null;
699
+ name: string;
605
700
  size: number | null;
606
701
  uploadedAt: Date | null;
702
+ assignmentId: string | null;
703
+ submissionId: string | null;
704
+ thumbnailId: string | null;
705
+ annotationId: string | null;
607
706
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
608
707
  uploadUrl: string | null;
609
708
  uploadExpiresAt: Date | null;
@@ -613,26 +712,41 @@ export declare function updateFileFolder(fileId: string, folderId: string): impo
613
712
  uploadRetryCount: number;
614
713
  isOrphaned: boolean;
615
714
  cleanupAt: Date | null;
616
- thumbnailId: string | null;
617
- assignmentId: string | null;
618
- submissionId: string | null;
619
- annotationId: string | null;
620
715
  classDraftId: string | null;
716
+ folderId: string | null;
621
717
  conversationId: string | null;
622
718
  messageId: string | null;
623
719
  announcementId: string | null;
624
720
  discussionId: string | null;
625
721
  discussionReplyId: string | null;
626
722
  schoolDevelopementProgramId: string | null;
627
- }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
628
- datasources: {
629
- db: {
630
- url: string;
631
- };
632
- };
633
723
  }>;
634
724
  /** Rename a file. */
635
- export declare function updateFileName(fileId: string, name: string): import(".prisma/client").Prisma.Prisma__FileClient<{
725
+ export declare function updateFileName(fileId: string, name: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
726
+ result: {
727
+ userProfile: {
728
+ profilePicture: () => {
729
+ needs: {
730
+ profilePicture: true;
731
+ };
732
+ compute(profile: {
733
+ profilePicture: string | null;
734
+ }): string | null;
735
+ };
736
+ profilePictureThumbnail: () => {
737
+ needs: {
738
+ profilePictureThumbnail: true;
739
+ };
740
+ compute(profile: {
741
+ profilePictureThumbnail: string | null;
742
+ }): string | null;
743
+ };
744
+ };
745
+ };
746
+ model: {};
747
+ query: {};
748
+ client: {};
749
+ }, {}>, "File", "update", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
636
750
  user: {
637
751
  id: string;
638
752
  username: string;
@@ -640,12 +754,15 @@ export declare function updateFileName(fileId: string, name: string): import(".p
640
754
  } & {
641
755
  path: string;
642
756
  type: string;
643
- name: string;
644
757
  id: string;
645
758
  userId: string | null;
646
- folderId: string | null;
759
+ name: string;
647
760
  size: number | null;
648
761
  uploadedAt: Date | null;
762
+ assignmentId: string | null;
763
+ submissionId: string | null;
764
+ thumbnailId: string | null;
765
+ annotationId: string | null;
649
766
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
650
767
  uploadUrl: string | null;
651
768
  uploadExpiresAt: Date | null;
@@ -655,34 +772,52 @@ export declare function updateFileName(fileId: string, name: string): import(".p
655
772
  uploadRetryCount: number;
656
773
  isOrphaned: boolean;
657
774
  cleanupAt: Date | null;
658
- thumbnailId: string | null;
659
- assignmentId: string | null;
660
- submissionId: string | null;
661
- annotationId: string | null;
662
775
  classDraftId: string | null;
776
+ folderId: string | null;
663
777
  conversationId: string | null;
664
778
  messageId: string | null;
665
779
  announcementId: string | null;
666
780
  discussionId: string | null;
667
781
  discussionReplyId: string | null;
668
782
  schoolDevelopementProgramId: string | null;
669
- }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
670
- datasources: {
671
- db: {
672
- url: string;
673
- };
674
- };
675
783
  }>;
676
784
  /** Delete a file record. */
677
- export declare function deleteFileById(fileId: string): import(".prisma/client").Prisma.Prisma__FileClient<{
785
+ export declare function deleteFileById(fileId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
786
+ result: {
787
+ userProfile: {
788
+ profilePicture: () => {
789
+ needs: {
790
+ profilePicture: true;
791
+ };
792
+ compute(profile: {
793
+ profilePicture: string | null;
794
+ }): string | null;
795
+ };
796
+ profilePictureThumbnail: () => {
797
+ needs: {
798
+ profilePictureThumbnail: true;
799
+ };
800
+ compute(profile: {
801
+ profilePictureThumbnail: string | null;
802
+ }): string | null;
803
+ };
804
+ };
805
+ };
806
+ model: {};
807
+ query: {};
808
+ client: {};
809
+ }, {}>, "File", "delete", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
678
810
  path: string;
679
811
  type: string;
680
- name: string;
681
812
  id: string;
682
813
  userId: string | null;
683
- folderId: string | null;
814
+ name: string;
684
815
  size: number | null;
685
816
  uploadedAt: Date | null;
817
+ assignmentId: string | null;
818
+ submissionId: string | null;
819
+ thumbnailId: string | null;
820
+ annotationId: string | null;
686
821
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
687
822
  uploadUrl: string | null;
688
823
  uploadExpiresAt: Date | null;
@@ -692,22 +827,13 @@ export declare function deleteFileById(fileId: string): import(".prisma/client")
692
827
  uploadRetryCount: number;
693
828
  isOrphaned: boolean;
694
829
  cleanupAt: Date | null;
695
- thumbnailId: string | null;
696
- assignmentId: string | null;
697
- submissionId: string | null;
698
- annotationId: string | null;
699
830
  classDraftId: string | null;
831
+ folderId: string | null;
700
832
  conversationId: string | null;
701
833
  messageId: string | null;
702
834
  announcementId: string | null;
703
835
  discussionId: string | null;
704
836
  discussionReplyId: string | null;
705
837
  schoolDevelopementProgramId: string | null;
706
- }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
707
- datasources: {
708
- db: {
709
- url: string;
710
- };
711
- };
712
838
  }>;
713
839
  //# sourceMappingURL=file.d.ts.map