@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 +1 @@
1
- {"version":3,"file":"school.d.ts","sourceRoot":"/","sources":["models/school.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAyBtD,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;GAIpE;AAED,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;GAI1E;AAED,wBAAgB,+BAA+B,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;GAI/E;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;MAmBvD;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,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,CAAC,IAAI,EAAE;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,oBAAoB,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,IAAI,CAAC;CACjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAOA;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;KAsBjD;AAED,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQpE;AAED,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAKrD;AAED,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;;;;;;GAuClE"}
@@ -1,37 +1,73 @@
1
1
  /** @returns Section by ID. */
2
- export declare function findSectionById(id: string): import(".prisma/client").Prisma.Prisma__SectionClient<{
3
- name: string;
2
+ export declare function findSectionById(id: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
3
+ result: {
4
+ userProfile: {
5
+ profilePicture: () => {
6
+ needs: {
7
+ profilePicture: true;
8
+ };
9
+ compute(profile: {
10
+ profilePicture: string | null;
11
+ }): string | null;
12
+ };
13
+ profilePictureThumbnail: () => {
14
+ needs: {
15
+ profilePictureThumbnail: true;
16
+ };
17
+ compute(profile: {
18
+ profilePictureThumbnail: string | null;
19
+ }): string | null;
20
+ };
21
+ };
22
+ };
23
+ model: {};
24
+ query: {};
25
+ client: {};
26
+ }, {}>, "Section", "findUnique", null> & import("@prisma/client/runtime/library.js").PrismaPromise<{
4
27
  id: string;
28
+ name: string;
5
29
  color: string | null;
6
30
  classId: string;
7
31
  order: number | null;
8
- } | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
9
- datasources: {
10
- db: {
11
- url: string;
32
+ } | null>;
33
+ /** @returns Class if user is a teacher or school admin. */
34
+ export declare function findClassWithTeacher(classId: string, teacherId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
35
+ result: {
36
+ userProfile: {
37
+ profilePicture: () => {
38
+ needs: {
39
+ profilePicture: true;
40
+ };
41
+ compute(profile: {
42
+ profilePicture: string | null;
43
+ }): string | null;
44
+ };
45
+ profilePictureThumbnail: () => {
46
+ needs: {
47
+ profilePictureThumbnail: true;
48
+ };
49
+ compute(profile: {
50
+ profilePictureThumbnail: string | null;
51
+ }): string | null;
52
+ };
12
53
  };
13
54
  };
14
- }>;
15
- /** @returns Class if user is a teacher or school admin. */
16
- export declare function findClassWithTeacher(classId: string, teacherId: string): import(".prisma/client").Prisma.Prisma__ClassClient<{
17
- name: string;
55
+ model: {};
56
+ query: {};
57
+ client: {};
58
+ }, {}>, "Class", "findFirst", null> & import("@prisma/client/runtime/library.js").PrismaPromise<{
59
+ section: string;
18
60
  id: string;
61
+ name: string;
19
62
  schoolId: string | null;
20
- subject: string;
21
63
  color: string | null;
22
- section: string;
64
+ subject: string;
23
65
  syllabus: string | null;
24
66
  departmentId: string | null;
25
67
  discussionsEnabled: boolean;
26
68
  studentsCanCreateDiscussions: boolean;
27
69
  studentsCanReply: boolean;
28
- } | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
29
- datasources: {
30
- db: {
31
- url: string;
32
- };
33
- };
34
- }>;
70
+ } | null>;
35
71
  /** Create a section in a class. */
36
72
  export declare function createSection(data: {
37
73
  id?: string;
@@ -39,53 +75,115 @@ export declare function createSection(data: {
39
75
  order: number;
40
76
  classId: string;
41
77
  color?: string;
42
- }): import(".prisma/client").Prisma.Prisma__SectionClient<{
43
- name: string;
78
+ }): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
79
+ result: {
80
+ userProfile: {
81
+ profilePicture: () => {
82
+ needs: {
83
+ profilePicture: true;
84
+ };
85
+ compute(profile: {
86
+ profilePicture: string | null;
87
+ }): string | null;
88
+ };
89
+ profilePictureThumbnail: () => {
90
+ needs: {
91
+ profilePictureThumbnail: true;
92
+ };
93
+ compute(profile: {
94
+ profilePictureThumbnail: string | null;
95
+ }): string | null;
96
+ };
97
+ };
98
+ };
99
+ model: {};
100
+ query: {};
101
+ client: {};
102
+ }, {}>, "Section", "create", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
44
103
  id: string;
104
+ name: string;
45
105
  color: string | null;
46
106
  classId: string;
47
107
  order: number | null;
48
- }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
49
- datasources: {
50
- db: {
51
- url: string;
52
- };
53
- };
54
108
  }>;
55
109
  /** @returns Sections for a class (id, order only). */
56
- export declare function findSectionsByClassId(classId: string): import(".prisma/client").Prisma.PrismaPromise<{
110
+ export declare function findSectionsByClassId(classId: string): import("@prisma/client/runtime/library.js").PrismaPromise<{
57
111
  id: string;
58
112
  order: number | null;
59
113
  }[]>;
60
114
  /** @returns Assignments for a class (id, order only). */
61
- export declare function findAssignmentsByClassId(classId: string): import(".prisma/client").Prisma.PrismaPromise<{
115
+ export declare function findAssignmentsByClassId(classId: string): import("@prisma/client/runtime/library.js").PrismaPromise<{
62
116
  id: string;
63
117
  order: number | null;
64
118
  }[]>;
65
119
  /** Update section order. */
66
- export declare function updateSectionOrder(id: string, order: number): import(".prisma/client").Prisma.Prisma__SectionClient<{
67
- name: string;
120
+ export declare function updateSectionOrder(id: string, order: number): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
121
+ result: {
122
+ userProfile: {
123
+ profilePicture: () => {
124
+ needs: {
125
+ profilePicture: true;
126
+ };
127
+ compute(profile: {
128
+ profilePicture: string | null;
129
+ }): string | null;
130
+ };
131
+ profilePictureThumbnail: () => {
132
+ needs: {
133
+ profilePictureThumbnail: true;
134
+ };
135
+ compute(profile: {
136
+ profilePictureThumbnail: string | null;
137
+ }): string | null;
138
+ };
139
+ };
140
+ };
141
+ model: {};
142
+ query: {};
143
+ client: {};
144
+ }, {}>, "Section", "update", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
68
145
  id: string;
146
+ name: string;
69
147
  color: string | null;
70
148
  classId: string;
71
149
  order: number | null;
72
- }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
73
- datasources: {
74
- db: {
75
- url: string;
76
- };
77
- };
78
150
  }>;
79
151
  /** Update assignment order. */
80
- export declare function updateAssignmentOrder(id: string, order: number): import(".prisma/client").Prisma.Prisma__AssignmentClient<{
152
+ export declare function updateAssignmentOrder(id: string, order: number): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
153
+ result: {
154
+ userProfile: {
155
+ profilePicture: () => {
156
+ needs: {
157
+ profilePicture: true;
158
+ };
159
+ compute(profile: {
160
+ profilePicture: string | null;
161
+ }): string | null;
162
+ };
163
+ profilePictureThumbnail: () => {
164
+ needs: {
165
+ profilePictureThumbnail: true;
166
+ };
167
+ compute(profile: {
168
+ profilePictureThumbnail: string | null;
169
+ }): string | null;
170
+ };
171
+ };
172
+ };
173
+ model: {};
174
+ query: {};
175
+ client: {};
176
+ }, {}>, "Assignment", "update", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
81
177
  type: import(".prisma/client").$Enums.AssignmentType;
82
178
  id: string;
83
179
  createdAt: Date | null;
84
180
  classId: string;
85
- modifiedAt: Date | null;
86
181
  title: string;
87
- instructions: string;
88
182
  dueDate: Date;
183
+ maxGrade: number | null;
184
+ eventId: string | null;
185
+ instructions: string;
186
+ modifiedAt: Date | null;
89
187
  teacherId: string;
90
188
  acceptFiles: boolean;
91
189
  acceptExtendedResponse: boolean;
@@ -94,61 +192,107 @@ export declare function updateAssignmentOrder(id: string, order: number): import
94
192
  aiPolicyLevel: number;
95
193
  sectionId: string | null;
96
194
  graded: boolean;
97
- maxGrade: number | null;
98
195
  weight: number;
99
196
  inProgress: boolean;
100
197
  template: boolean;
101
- eventId: string | null;
102
198
  markSchemeId: string | null;
103
199
  order: number | null;
104
200
  gradingBoundaryId: string | null;
105
- }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
106
- datasources: {
107
- db: {
108
- url: string;
109
- };
110
- };
111
201
  }>;
112
202
  /** Update section name and color. */
113
203
  export declare function updateSection(id: string, data: {
114
204
  name: string;
115
205
  color?: string;
116
- }): import(".prisma/client").Prisma.Prisma__SectionClient<{
117
- name: string;
206
+ }): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
207
+ result: {
208
+ userProfile: {
209
+ profilePicture: () => {
210
+ needs: {
211
+ profilePicture: true;
212
+ };
213
+ compute(profile: {
214
+ profilePicture: string | null;
215
+ }): string | null;
216
+ };
217
+ profilePictureThumbnail: () => {
218
+ needs: {
219
+ profilePictureThumbnail: true;
220
+ };
221
+ compute(profile: {
222
+ profilePictureThumbnail: string | null;
223
+ }): string | null;
224
+ };
225
+ };
226
+ };
227
+ model: {};
228
+ query: {};
229
+ client: {};
230
+ }, {}>, "Section", "update", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
118
231
  id: string;
232
+ name: string;
119
233
  color: string | null;
120
234
  classId: string;
121
235
  order: number | null;
122
- }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
123
- datasources: {
124
- db: {
125
- url: string;
126
- };
127
- };
128
236
  }>;
129
237
  /** Delete a section. */
130
- export declare function deleteSectionById(id: string): import(".prisma/client").Prisma.Prisma__SectionClient<{
131
- name: string;
238
+ export declare function deleteSectionById(id: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
239
+ result: {
240
+ userProfile: {
241
+ profilePicture: () => {
242
+ needs: {
243
+ profilePicture: true;
244
+ };
245
+ compute(profile: {
246
+ profilePicture: string | null;
247
+ }): string | null;
248
+ };
249
+ profilePictureThumbnail: () => {
250
+ needs: {
251
+ profilePictureThumbnail: true;
252
+ };
253
+ compute(profile: {
254
+ profilePictureThumbnail: string | null;
255
+ }): string | null;
256
+ };
257
+ };
258
+ };
259
+ model: {};
260
+ query: {};
261
+ client: {};
262
+ }, {}>, "Section", "delete", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
132
263
  id: string;
264
+ name: string;
133
265
  color: string | null;
134
266
  classId: string;
135
267
  order: number | null;
136
- }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
137
- datasources: {
138
- db: {
139
- url: string;
140
- };
141
- };
142
268
  }>;
143
269
  /** @returns Section by ID and classId. */
144
- export declare function findSectionByClassAndId(sectionId: string, classId: string): import(".prisma/client").Prisma.Prisma__SectionClient<{
145
- id: string;
146
- classId: string;
147
- } | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
148
- datasources: {
149
- db: {
150
- url: string;
270
+ export declare function findSectionByClassAndId(sectionId: string, classId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
271
+ result: {
272
+ userProfile: {
273
+ profilePicture: () => {
274
+ needs: {
275
+ profilePicture: true;
276
+ };
277
+ compute(profile: {
278
+ profilePicture: string | null;
279
+ }): string | null;
280
+ };
281
+ profilePictureThumbnail: () => {
282
+ needs: {
283
+ profilePictureThumbnail: true;
284
+ };
285
+ compute(profile: {
286
+ profilePictureThumbnail: string | null;
287
+ }): string | null;
288
+ };
151
289
  };
152
290
  };
153
- }>;
291
+ model: {};
292
+ query: {};
293
+ client: {};
294
+ }, {}>, "Section", "findFirst", null> & import("@prisma/client/runtime/library.js").PrismaPromise<{
295
+ id: string;
296
+ classId: string;
297
+ } | null>;
154
298
  //# sourceMappingURL=section.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"section.d.ts","sourceRoot":"/","sources":["models/section.ts"],"names":[],"mappings":"AAMA,8BAA8B;AAC9B,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM;;;;;;;;;;;;GAIzC;AAED,2DAA2D;AAC3D,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;GAOtE;AAED,mCAAmC;AACnC,wBAAgB,aAAa,CAAC,IAAI,EAAE;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;;;;;;;;;;;;GAUA;AAED,sDAAsD;AACtD,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM;;;KAKpD;AAED,yDAAyD;AACzD,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM;;;KAKvD;AAED,4BAA4B;AAC5B,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;;;;;;;;;;;;GAK3D;AAED,+BAA+B;AAC/B,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAK9D;AAED,qCAAqC;AACrC,wBAAgB,aAAa,CAC3B,EAAE,EAAE,MAAM,EACV,IAAI,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE;;;;;;;;;;;;GAMvC;AAED,wBAA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AE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAMvC;AAED,wBAAwB;AACxB,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAI3C;AAED,0CAA0C;AAC1C,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;UAKzE"}
@@ -1,115 +1,223 @@
1
1
  export type TagTarget = "USER" | "CLASS" | "RUBRIC" | "BOUNDARY";
2
2
  export declare function listTagsForSchool(schoolId: string, options?: {
3
3
  departmentId?: string | null;
4
- }): import(".prisma/client").Prisma.PrismaPromise<{
5
- name: string;
4
+ }): import("@prisma/client/runtime/library.js").PrismaPromise<{
6
5
  id: string;
7
6
  createdAt: Date;
8
7
  updatedAt: Date;
8
+ name: string;
9
9
  schoolId: string;
10
10
  color: string;
11
11
  departmentId: string | null;
12
12
  }[]>;
13
- export declare function getTag(tagId: string): import(".prisma/client").Prisma.Prisma__TagClient<{
14
- name: string;
13
+ export declare function getTag(tagId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
14
+ result: {
15
+ userProfile: {
16
+ profilePicture: () => {
17
+ needs: {
18
+ profilePicture: true;
19
+ };
20
+ compute(profile: {
21
+ profilePicture: string | null;
22
+ }): string | null;
23
+ };
24
+ profilePictureThumbnail: () => {
25
+ needs: {
26
+ profilePictureThumbnail: true;
27
+ };
28
+ compute(profile: {
29
+ profilePictureThumbnail: string | null;
30
+ }): string | null;
31
+ };
32
+ };
33
+ };
34
+ model: {};
35
+ query: {};
36
+ client: {};
37
+ }, {}>, "Tag", "findUnique", null> & import("@prisma/client/runtime/library.js").PrismaPromise<{
15
38
  id: string;
16
39
  createdAt: Date;
17
40
  updatedAt: Date;
41
+ name: string;
18
42
  schoolId: string;
19
43
  color: string;
20
44
  departmentId: string | null;
21
- } | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
22
- datasources: {
23
- db: {
24
- url: string;
25
- };
26
- };
27
- }>;
45
+ } | null>;
28
46
  export declare function createTag(data: {
29
47
  schoolId: string;
30
48
  departmentId?: string | null;
31
49
  name: string;
32
50
  color?: string;
33
- }): import(".prisma/client").Prisma.Prisma__TagClient<{
34
- name: string;
51
+ }): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
52
+ result: {
53
+ userProfile: {
54
+ profilePicture: () => {
55
+ needs: {
56
+ profilePicture: true;
57
+ };
58
+ compute(profile: {
59
+ profilePicture: string | null;
60
+ }): string | null;
61
+ };
62
+ profilePictureThumbnail: () => {
63
+ needs: {
64
+ profilePictureThumbnail: true;
65
+ };
66
+ compute(profile: {
67
+ profilePictureThumbnail: string | null;
68
+ }): string | null;
69
+ };
70
+ };
71
+ };
72
+ model: {};
73
+ query: {};
74
+ client: {};
75
+ }, {}>, "Tag", "create", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
35
76
  id: string;
36
77
  createdAt: Date;
37
78
  updatedAt: Date;
79
+ name: string;
38
80
  schoolId: string;
39
81
  color: string;
40
82
  departmentId: string | null;
41
- }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
42
- datasources: {
43
- db: {
44
- url: string;
45
- };
46
- };
47
83
  }>;
48
84
  export declare function updateTag(tagId: string, data: {
49
85
  name?: string;
50
86
  color?: string;
51
87
  departmentId?: string | null;
52
- }): import(".prisma/client").Prisma.Prisma__TagClient<{
53
- name: string;
88
+ }): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
89
+ result: {
90
+ userProfile: {
91
+ profilePicture: () => {
92
+ needs: {
93
+ profilePicture: true;
94
+ };
95
+ compute(profile: {
96
+ profilePicture: string | null;
97
+ }): string | null;
98
+ };
99
+ profilePictureThumbnail: () => {
100
+ needs: {
101
+ profilePictureThumbnail: true;
102
+ };
103
+ compute(profile: {
104
+ profilePictureThumbnail: string | null;
105
+ }): string | null;
106
+ };
107
+ };
108
+ };
109
+ model: {};
110
+ query: {};
111
+ client: {};
112
+ }, {}>, "Tag", "update", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
54
113
  id: string;
55
114
  createdAt: Date;
56
115
  updatedAt: Date;
116
+ name: string;
57
117
  schoolId: string;
58
118
  color: string;
59
119
  departmentId: string | null;
60
- }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
61
- datasources: {
62
- db: {
63
- url: string;
120
+ }>;
121
+ export declare function deleteTag(tagId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
122
+ result: {
123
+ userProfile: {
124
+ profilePicture: () => {
125
+ needs: {
126
+ profilePicture: true;
127
+ };
128
+ compute(profile: {
129
+ profilePicture: string | null;
130
+ }): string | null;
131
+ };
132
+ profilePictureThumbnail: () => {
133
+ needs: {
134
+ profilePictureThumbnail: true;
135
+ };
136
+ compute(profile: {
137
+ profilePictureThumbnail: string | null;
138
+ }): string | null;
139
+ };
64
140
  };
65
141
  };
66
- }>;
67
- export declare function deleteTag(tagId: string): import(".prisma/client").Prisma.Prisma__TagClient<{
68
- name: string;
142
+ model: {};
143
+ query: {};
144
+ client: {};
145
+ }, {}>, "Tag", "delete", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
69
146
  id: string;
70
147
  createdAt: Date;
71
148
  updatedAt: Date;
149
+ name: string;
72
150
  schoolId: string;
73
151
  color: string;
74
152
  departmentId: string | null;
75
- }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
76
- datasources: {
77
- db: {
78
- url: string;
79
- };
80
- };
81
153
  }>;
82
154
  export declare function attachTagToTarget(params: {
83
155
  tagId: string;
84
156
  target: TagTarget;
85
157
  targetId: string;
86
- }): import(".prisma/client").Prisma.Prisma__TagClient<{
87
- id: string;
88
- }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
89
- datasources: {
90
- db: {
91
- url: string;
158
+ }): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
159
+ result: {
160
+ userProfile: {
161
+ profilePicture: () => {
162
+ needs: {
163
+ profilePicture: true;
164
+ };
165
+ compute(profile: {
166
+ profilePicture: string | null;
167
+ }): string | null;
168
+ };
169
+ profilePictureThumbnail: () => {
170
+ needs: {
171
+ profilePictureThumbnail: true;
172
+ };
173
+ compute(profile: {
174
+ profilePictureThumbnail: string | null;
175
+ }): string | null;
176
+ };
92
177
  };
93
178
  };
179
+ model: {};
180
+ query: {};
181
+ client: {};
182
+ }, {}>, "Tag", "update", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
183
+ id: string;
94
184
  }>;
95
185
  export declare function detachTagFromTarget(params: {
96
186
  tagId: string;
97
187
  target: TagTarget;
98
188
  targetId: string;
99
- }): import(".prisma/client").Prisma.Prisma__TagClient<{
100
- id: string;
101
- }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
102
- datasources: {
103
- db: {
104
- url: string;
189
+ }): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
190
+ result: {
191
+ userProfile: {
192
+ profilePicture: () => {
193
+ needs: {
194
+ profilePicture: true;
195
+ };
196
+ compute(profile: {
197
+ profilePicture: string | null;
198
+ }): string | null;
199
+ };
200
+ profilePictureThumbnail: () => {
201
+ needs: {
202
+ profilePictureThumbnail: true;
203
+ };
204
+ compute(profile: {
205
+ profilePictureThumbnail: string | null;
206
+ }): string | null;
207
+ };
105
208
  };
106
209
  };
210
+ model: {};
211
+ query: {};
212
+ client: {};
213
+ }, {}>, "Tag", "update", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
214
+ id: string;
107
215
  }>;
108
- export declare function listTagsAttachedTo(target: TagTarget, targetId: string): import(".prisma/client").Prisma.PrismaPromise<{
109
- name: string;
216
+ export declare function listTagsAttachedTo(target: TagTarget, targetId: string): import("@prisma/client/runtime/library.js").PrismaPromise<{
110
217
  id: string;
111
218
  createdAt: Date;
112
219
  updatedAt: Date;
220
+ name: string;
113
221
  schoolId: string;
114
222
  color: string;
115
223
  departmentId: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"tag.d.ts","sourceRoot":"/","sources":["models/tag.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEjE,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE;IAAE,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE;;;;;;;;KAc3C;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM;;;;;;;;;;;;;;GAKnC;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;;;;;;;;;;;;;;GAUA;AAED,wBAAgB,SAAS,CACvB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE;;;;;;;;;;;;;;GAOtE;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM;;;;;;;;;;;;;;GAEtC;AASD,wBAAgB,iBAAi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