@studious-lms/server 1.13.0 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (375) hide show
  1. package/.dockerignore +28 -0
  2. package/.env.example +5 -0
  3. package/.github/workflows/deploy.yml +123 -0
  4. package/Dockerfile +54 -0
  5. package/dist/index.js +5 -2
  6. package/dist/index.js.map +1 -1
  7. package/dist/instrument.js +3 -3
  8. package/dist/instrument.js.map +1 -1
  9. package/dist/lib/config/cors.d.ts.map +1 -1
  10. package/dist/lib/config/cors.js +31 -11
  11. package/dist/lib/config/cors.js.map +1 -1
  12. package/dist/lib/config/env.d.ts +17 -0
  13. package/dist/lib/config/env.d.ts.map +1 -1
  14. package/dist/lib/config/env.js +8 -2
  15. package/dist/lib/config/env.js.map +1 -1
  16. package/dist/lib/googleCloudStorage.d.ts +10 -0
  17. package/dist/lib/googleCloudStorage.d.ts.map +1 -1
  18. package/dist/lib/googleCloudStorage.js +22 -2
  19. package/dist/lib/googleCloudStorage.js.map +1 -1
  20. package/dist/lib/inferDocumentFormat.d.ts +10 -0
  21. package/dist/lib/inferDocumentFormat.d.ts.map +1 -0
  22. package/dist/lib/inferDocumentFormat.js +48 -0
  23. package/dist/lib/inferDocumentFormat.js.map +1 -0
  24. package/dist/lib/legal.d.ts +3 -0
  25. package/dist/lib/legal.d.ts.map +1 -0
  26. package/dist/lib/legal.js +6 -0
  27. package/dist/lib/legal.js.map +1 -0
  28. package/dist/lib/prisma.d.ts +104 -5
  29. package/dist/lib/prisma.d.ts.map +1 -1
  30. package/dist/lib/prisma.js +33 -2
  31. package/dist/lib/prisma.js.map +1 -1
  32. package/dist/models/agenda.d.ts +20 -20
  33. package/dist/models/announcement.d.ts +211 -101
  34. package/dist/models/announcement.d.ts.map +1 -1
  35. package/dist/models/assignment.d.ts +560 -362
  36. package/dist/models/assignment.d.ts.map +1 -1
  37. package/dist/models/attendance.d.ts +197 -71
  38. package/dist/models/attendance.d.ts.map +1 -1
  39. package/dist/models/auth.d.ts +356 -114
  40. package/dist/models/auth.d.ts.map +1 -1
  41. package/dist/models/auth.js +4 -2
  42. package/dist/models/auth.js.map +1 -1
  43. package/dist/models/class.d.ts +327 -201
  44. package/dist/models/class.d.ts.map +1 -1
  45. package/dist/models/class.js +2 -2
  46. package/dist/models/class.js.map +1 -1
  47. package/dist/models/cloudStorage.d.ts +146 -56
  48. package/dist/models/cloudStorage.d.ts.map +1 -1
  49. package/dist/models/comment.d.ts +262 -110
  50. package/dist/models/comment.d.ts.map +1 -1
  51. package/dist/models/conversation.d.ts +206 -80
  52. package/dist/models/conversation.d.ts.map +1 -1
  53. package/dist/models/department.d.ts +196 -70
  54. package/dist/models/department.d.ts.map +1 -1
  55. package/dist/models/event.d.ts +305 -141
  56. package/dist/models/event.d.ts.map +1 -1
  57. package/dist/models/file.d.ts +422 -272
  58. package/dist/models/file.d.ts.map +1 -1
  59. package/dist/models/folder.d.ts +433 -181
  60. package/dist/models/folder.d.ts.map +1 -1
  61. package/dist/models/labChat.d.ts +205 -79
  62. package/dist/models/labChat.d.ts.map +1 -1
  63. package/dist/models/marketing.d.ts +79 -38
  64. package/dist/models/marketing.d.ts.map +1 -1
  65. package/dist/models/marketing.js +12 -4
  66. package/dist/models/marketing.js.map +1 -1
  67. package/dist/models/message.d.ts +97 -43
  68. package/dist/models/message.d.ts.map +1 -1
  69. package/dist/models/newtonChat.d.ts +84 -30
  70. package/dist/models/newtonChat.d.ts.map +1 -1
  71. package/dist/models/notification.d.ts +57 -21
  72. package/dist/models/notification.d.ts.map +1 -1
  73. package/dist/models/school.d.ts +349 -133
  74. package/dist/models/school.d.ts.map +1 -1
  75. package/dist/models/section.d.ts +216 -72
  76. package/dist/models/section.d.ts.map +1 -1
  77. package/dist/models/tag.d.ts +156 -48
  78. package/dist/models/tag.d.ts.map +1 -1
  79. package/dist/models/user.d.ts +82 -28
  80. package/dist/models/user.d.ts.map +1 -1
  81. package/dist/models/worksheet.d.ts +1032 -423
  82. package/dist/models/worksheet.d.ts.map +1 -1
  83. package/dist/models/worksheet.js +8 -2
  84. package/dist/models/worksheet.js.map +1 -1
  85. package/dist/pipelines/aiLabChat.d.ts +7 -9
  86. package/dist/pipelines/aiLabChat.d.ts.map +1 -1
  87. package/dist/pipelines/aiLabChat.js +194 -125
  88. package/dist/pipelines/aiLabChat.js.map +1 -1
  89. package/dist/pipelines/aiLabChatContract.d.ts +233 -389
  90. package/dist/pipelines/aiLabChatContract.d.ts.map +1 -1
  91. package/dist/pipelines/aiLabChatContract.js +54 -70
  92. package/dist/pipelines/aiLabChatContract.js.map +1 -1
  93. package/dist/pipelines/aiNewtonChat.d.ts.map +1 -1
  94. package/dist/pipelines/aiNewtonChat.js +41 -41
  95. package/dist/pipelines/aiNewtonChat.js.map +1 -1
  96. package/dist/pipelines/gradeWorksheet.d.ts +8 -8
  97. package/dist/pipelines/labChatPrompt.d.ts +18 -11
  98. package/dist/pipelines/labChatPrompt.d.ts.map +1 -1
  99. package/dist/pipelines/labChatPrompt.js +93 -75
  100. package/dist/pipelines/labChatPrompt.js.map +1 -1
  101. package/dist/pipelines/pdfToWorksheet.d.ts +1 -1
  102. package/dist/routers/_app.d.ts +2601 -2151
  103. package/dist/routers/_app.d.ts.map +1 -1
  104. package/dist/routers/_app.js +4 -2
  105. package/dist/routers/_app.js.map +1 -1
  106. package/dist/routers/admin.d.ts +13 -13
  107. package/dist/routers/agenda.d.ts +18 -18
  108. package/dist/routers/announcement.d.ts +60 -60
  109. package/dist/routers/assignment.d.ts +393 -383
  110. package/dist/routers/assignment.d.ts.map +1 -1
  111. package/dist/routers/attendance.d.ts +10 -10
  112. package/dist/routers/auth.d.ts +4 -2
  113. package/dist/routers/auth.d.ts.map +1 -1
  114. package/dist/routers/auth.js +15 -2
  115. package/dist/routers/auth.js.map +1 -1
  116. package/dist/routers/class.d.ts +157 -153
  117. package/dist/routers/class.d.ts.map +1 -1
  118. package/dist/routers/comment.d.ts +18 -18
  119. package/dist/routers/conversation.d.ts +11 -11
  120. package/dist/routers/department.d.ts +34 -34
  121. package/dist/routers/discussion.d.ts +68 -56
  122. package/dist/routers/discussion.d.ts.map +1 -1
  123. package/dist/routers/discussion.js +6 -2
  124. package/dist/routers/discussion.js.map +1 -1
  125. package/dist/routers/embedding.d.ts +73 -0
  126. package/dist/routers/embedding.d.ts.map +1 -0
  127. package/dist/routers/embedding.js +151 -0
  128. package/dist/routers/embedding.js.map +1 -0
  129. package/dist/routers/event.d.ts +57 -55
  130. package/dist/routers/event.d.ts.map +1 -1
  131. package/dist/routers/file.d.ts +14 -14
  132. package/dist/routers/folder.d.ts +38 -38
  133. package/dist/routers/labChat.d.ts +16 -16
  134. package/dist/routers/marketing.d.ts +1 -14
  135. package/dist/routers/marketing.d.ts.map +1 -1
  136. package/dist/routers/message.d.ts +13 -13
  137. package/dist/routers/newtonChat.d.ts +4 -4
  138. package/dist/routers/notifications.d.ts +5 -5
  139. package/dist/routers/permissions.d.ts +14 -14
  140. package/dist/routers/school.d.ts +59 -55
  141. package/dist/routers/school.d.ts.map +1 -1
  142. package/dist/routers/search.d.ts +22 -1
  143. package/dist/routers/search.d.ts.map +1 -1
  144. package/dist/routers/search.js +9 -3
  145. package/dist/routers/search.js.map +1 -1
  146. package/dist/routers/section.d.ts +4 -4
  147. package/dist/routers/studentProgress.d.ts +1 -1
  148. package/dist/routers/tag.d.ts +7 -7
  149. package/dist/routers/user.d.ts +99 -10
  150. package/dist/routers/user.d.ts.map +1 -1
  151. package/dist/routers/user.js +19 -2
  152. package/dist/routers/user.js.map +1 -1
  153. package/dist/routers/worksheet.d.ts +93 -55
  154. package/dist/routers/worksheet.d.ts.map +1 -1
  155. package/dist/routers/worksheet.js +26 -2
  156. package/dist/routers/worksheet.js.map +1 -1
  157. package/dist/routes/aiStream.d.ts +2 -0
  158. package/dist/routes/aiStream.d.ts.map +1 -0
  159. package/dist/routes/aiStream.js +726 -0
  160. package/dist/routes/aiStream.js.map +1 -0
  161. package/dist/seedDatabase.d.ts +3 -1
  162. package/dist/seedDatabase.d.ts.map +1 -1
  163. package/dist/seedDatabase.js +6 -6
  164. package/dist/seedDatabase.js.map +1 -1
  165. package/dist/services/adminInstitution.d.ts +8 -8
  166. package/dist/services/adminRunJob.d.ts +4 -4
  167. package/dist/services/agenda.d.ts +18 -18
  168. package/dist/services/aiChatStream.d.ts +88 -0
  169. package/dist/services/aiChatStream.d.ts.map +1 -0
  170. package/dist/services/aiChatStream.js +254 -0
  171. package/dist/services/aiChatStream.js.map +1 -0
  172. package/dist/services/aiModifierTools.d.ts +16 -0
  173. package/dist/services/aiModifierTools.d.ts.map +1 -0
  174. package/dist/services/aiModifierTools.js +274 -0
  175. package/dist/services/aiModifierTools.js.map +1 -0
  176. package/dist/services/aiProposalTools.d.ts +32 -0
  177. package/dist/services/aiProposalTools.d.ts.map +1 -0
  178. package/dist/services/aiProposalTools.js +207 -0
  179. package/dist/services/aiProposalTools.js.map +1 -0
  180. package/dist/services/aiStream.d.ts +22 -0
  181. package/dist/services/aiStream.d.ts.map +1 -0
  182. package/dist/services/aiStream.js +142 -0
  183. package/dist/services/aiStream.js.map +1 -0
  184. package/dist/services/aiTools.d.ts +16 -0
  185. package/dist/services/aiTools.d.ts.map +1 -0
  186. package/dist/services/aiTools.js +271 -0
  187. package/dist/services/aiTools.js.map +1 -0
  188. package/dist/services/announcement.d.ts +42 -42
  189. package/dist/services/announcement.d.ts.map +1 -1
  190. package/dist/services/announcement.js +7 -2
  191. package/dist/services/announcement.js.map +1 -1
  192. package/dist/services/assignment.d.ts +355 -345
  193. package/dist/services/assignment.d.ts.map +1 -1
  194. package/dist/services/assignment.js +30 -9
  195. package/dist/services/assignment.js.map +1 -1
  196. package/dist/services/attendance.d.ts +10 -10
  197. package/dist/services/auth.d.ts +4 -2
  198. package/dist/services/auth.d.ts.map +1 -1
  199. package/dist/services/auth.js +13 -4
  200. package/dist/services/auth.js.map +1 -1
  201. package/dist/services/class.d.ts +146 -142
  202. package/dist/services/class.d.ts.map +1 -1
  203. package/dist/services/class.js +24 -4
  204. package/dist/services/class.js.map +1 -1
  205. package/dist/services/comment.d.ts +18 -18
  206. package/dist/services/conversation.d.ts +11 -11
  207. package/dist/services/department.d.ts +33 -33
  208. package/dist/services/discussion.d.ts +58 -58
  209. package/dist/services/discussion.d.ts.map +1 -1
  210. package/dist/services/discussion.js +15 -8
  211. package/dist/services/discussion.js.map +1 -1
  212. package/dist/services/discussionSummary.d.ts +21 -0
  213. package/dist/services/discussionSummary.d.ts.map +1 -0
  214. package/dist/services/discussionSummary.js +179 -0
  215. package/dist/services/discussionSummary.js.map +1 -0
  216. package/dist/services/embedding.d.ts +85 -0
  217. package/dist/services/embedding.d.ts.map +1 -0
  218. package/dist/services/embedding.js +372 -0
  219. package/dist/services/embedding.js.map +1 -0
  220. package/dist/services/event.d.ts +55 -53
  221. package/dist/services/event.d.ts.map +1 -1
  222. package/dist/services/file.d.ts +28 -28
  223. package/dist/services/folder.d.ts +36 -36
  224. package/dist/services/folder.d.ts.map +1 -1
  225. package/dist/services/folder.js +32 -2
  226. package/dist/services/folder.js.map +1 -1
  227. package/dist/services/labChat.d.ts +16 -16
  228. package/dist/services/marketing.d.ts +2 -15
  229. package/dist/services/marketing.d.ts.map +1 -1
  230. package/dist/services/marketing.js +5 -5
  231. package/dist/services/marketing.js.map +1 -1
  232. package/dist/services/message.d.ts +11 -11
  233. package/dist/services/message.d.ts.map +1 -1
  234. package/dist/services/message.js +2 -2
  235. package/dist/services/message.js.map +1 -1
  236. package/dist/services/newtonChat.d.ts +4 -4
  237. package/dist/services/notification.d.ts +5 -5
  238. package/dist/services/notification.d.ts.map +1 -1
  239. package/dist/services/openaiDocumentGen.d.ts +37 -0
  240. package/dist/services/openaiDocumentGen.d.ts.map +1 -0
  241. package/dist/services/openaiDocumentGen.js +262 -0
  242. package/dist/services/openaiDocumentGen.js.map +1 -0
  243. package/dist/services/permissions.d.ts +14 -14
  244. package/dist/services/school.d.ts +54 -50
  245. package/dist/services/school.d.ts.map +1 -1
  246. package/dist/services/search.d.ts +13 -1
  247. package/dist/services/search.d.ts.map +1 -1
  248. package/dist/services/search.js +145 -2
  249. package/dist/services/search.js.map +1 -1
  250. package/dist/services/section.d.ts +3 -3
  251. package/dist/services/tag.d.ts +4 -4
  252. package/dist/services/user.d.ts +4 -4
  253. package/dist/services/user.d.ts.map +1 -1
  254. package/dist/services/user.js +10 -15
  255. package/dist/services/user.js.map +1 -1
  256. package/dist/services/userPrivacy.d.ts +86 -0
  257. package/dist/services/userPrivacy.d.ts.map +1 -0
  258. package/dist/services/userPrivacy.js +184 -0
  259. package/dist/services/userPrivacy.js.map +1 -0
  260. package/dist/services/worksheet.d.ts +86 -57
  261. package/dist/services/worksheet.d.ts.map +1 -1
  262. package/dist/services/worksheet.js +57 -5
  263. package/dist/services/worksheet.js.map +1 -1
  264. package/dist/utils/email.d.ts.map +1 -1
  265. package/dist/utils/email.js +7 -3
  266. package/dist/utils/email.js.map +1 -1
  267. package/dist/utils/streamBroadcast.d.ts +11 -0
  268. package/dist/utils/streamBroadcast.d.ts.map +1 -0
  269. package/dist/utils/streamBroadcast.js +32 -0
  270. package/dist/utils/streamBroadcast.js.map +1 -0
  271. package/dist/workers/connection.d.ts +15 -0
  272. package/dist/workers/connection.d.ts.map +1 -1
  273. package/dist/workers/connection.js +20 -2
  274. package/dist/workers/connection.js.map +1 -1
  275. package/dist/workers/index.js +4 -2
  276. package/dist/workers/index.js.map +1 -1
  277. package/dist/workers/processors/createRunJobWorker.d.ts.map +1 -1
  278. package/dist/workers/processors/createRunJobWorker.js +31 -8
  279. package/dist/workers/processors/createRunJobWorker.js.map +1 -1
  280. package/dist/workers/processors/embedContent.d.ts +8 -0
  281. package/dist/workers/processors/embedContent.d.ts.map +1 -0
  282. package/dist/workers/processors/embedContent.js +67 -0
  283. package/dist/workers/processors/embedContent.js.map +1 -0
  284. package/dist/workers/queues.d.ts +6 -0
  285. package/dist/workers/queues.d.ts.map +1 -1
  286. package/dist/workers/queues.js +5 -3
  287. package/dist/workers/queues.js.map +1 -1
  288. package/package.json +5 -1
  289. package/prisma/migrations/20260609215135_init/migration.sql +1412 -0
  290. package/prisma/migrations/20260610130000_add_worksheet_tags/migration.sql +13 -0
  291. package/prisma/migrations/20260610140000_expand_embedding_source_types/migration.sql +4 -0
  292. package/prisma/migrations/20260611120000_add_user_terms_acceptance/migration.sql +3 -0
  293. package/prisma/schema.prisma +44 -7
  294. package/src/index.ts +4 -0
  295. package/src/instrument.ts +1 -1
  296. package/src/lib/config/cors.ts +32 -9
  297. package/src/lib/config/env.ts +6 -0
  298. package/src/lib/googleCloudStorage.ts +21 -0
  299. package/src/lib/inferDocumentFormat.ts +58 -0
  300. package/src/lib/legal.ts +2 -0
  301. package/src/lib/prisma.ts +40 -1
  302. package/src/models/auth.ts +4 -0
  303. package/src/models/class.ts +3 -2
  304. package/src/models/marketing.ts +10 -2
  305. package/src/models/worksheet.ts +5 -2
  306. package/src/pipelines/aiLabChat.ts +245 -146
  307. package/src/pipelines/aiLabChatContract.ts +59 -69
  308. package/src/pipelines/aiNewtonChat.ts +46 -43
  309. package/src/pipelines/labChatPrompt.ts +115 -90
  310. package/src/routers/_app.ts +2 -0
  311. package/src/routers/auth.ts +13 -0
  312. package/src/routers/discussion.ts +7 -0
  313. package/src/routers/embedding.ts +164 -0
  314. package/src/routers/search.ts +10 -1
  315. package/src/routers/user.ts +26 -0
  316. package/src/routers/worksheet.ts +27 -0
  317. package/src/routes/aiStream.ts +827 -0
  318. package/src/seedDatabase.ts +4 -4
  319. package/src/services/aiChatStream.ts +341 -0
  320. package/src/services/aiModifierTools.ts +341 -0
  321. package/src/services/aiProposalTools.ts +274 -0
  322. package/src/services/aiStream.ts +175 -0
  323. package/src/services/aiTools.ts +290 -0
  324. package/src/services/announcement.ts +7 -0
  325. package/src/services/assignment.ts +31 -7
  326. package/src/services/auth.ts +14 -2
  327. package/src/services/class.ts +27 -2
  328. package/src/services/discussion.ts +22 -8
  329. package/src/services/discussionSummary.ts +226 -0
  330. package/src/services/embedding.ts +446 -0
  331. package/src/services/folder.ts +31 -0
  332. package/src/services/marketing.ts +3 -3
  333. package/src/services/message.ts +2 -2
  334. package/src/services/openaiDocumentGen.ts +319 -0
  335. package/src/services/search.ts +163 -1
  336. package/src/services/user.ts +9 -17
  337. package/src/services/userPrivacy.ts +196 -0
  338. package/src/services/worksheet.ts +77 -3
  339. package/src/utils/email.ts +5 -1
  340. package/src/utils/streamBroadcast.ts +48 -0
  341. package/src/workers/connection.ts +19 -0
  342. package/src/workers/index.ts +2 -0
  343. package/src/workers/processors/createRunJobWorker.ts +32 -6
  344. package/src/workers/processors/embedContent.ts +86 -0
  345. package/src/workers/queues.ts +5 -1
  346. package/tests/helpers/registerInput.ts +20 -0
  347. package/tests/integration/globalSetup.ts +10 -18
  348. package/tests/integration/routers/auth.test.ts +13 -18
  349. package/tests/unit/lib/inferDocumentFormat.test.ts +33 -0
  350. package/tests/unit/pipelines/aiLabChatContract.test.ts +38 -21
  351. package/tests/unit/pipelines/labChatPrompt.test.ts +23 -36
  352. package/tests/unit/services/aiChatStream.test.ts +92 -0
  353. package/tests/unit/services/openaiDocumentGen.test.ts +65 -0
  354. package/prisma/migrations/20250807062924_init/migration.sql +0 -436
  355. package/prisma/migrations/20250919063704_init2/migration.sql +0 -24
  356. package/prisma/migrations/20250920143543_add_profile_fields/migration.sql +0 -15
  357. package/prisma/migrations/20250922165147_add_chat_models/migration.sql +0 -68
  358. package/prisma/migrations/20250922165314_add_chat_roles/migration.sql +0 -5
  359. package/prisma/migrations/20250922171242_refactor_notification_system/migration.sql +0 -20
  360. package/prisma/migrations/20250922172208_add_mentions_system/migration.sql +0 -21
  361. package/prisma/migrations/20250925072732_add_lab_chat_system/migration.sql +0 -25
  362. package/prisma/migrations/20251020151505_add_upload_tracking_fields/migration.sql +0 -57
  363. package/prisma/migrations/20251109122857_annuoncements_comments/migration.sql +0 -30
  364. package/prisma/migrations/20251109135555_reactions_announcements_comments/migration.sql +0 -35
  365. package/prisma/migrations/20260410124000_add_submission_recommendation_state/migration.sql +0 -14
  366. package/prisma/migrations/20260415103500_add_session_type/migration.sql +0 -33
  367. package/prisma/migrations/20260415133000_add_ai_usage_logs/migration.sql +0 -19
  368. package/prisma/migrations/20260417083000_add_conversation_member_hidden_at/migration.sql +0 -2
  369. package/prisma/migrations/20260502230500_assignment_submission_comments/migration.sql +0 -60
  370. package/prisma/migrations/20260504071500_school_memberships/migration.sql +0 -81
  371. package/prisma/migrations/20260506162500_consolidate_run_job_and_unify_job_status/migration.sql +0 -166
  372. package/prisma/migrations/20260509220000_institution_overhaul/migration.sql +0 -184
  373. package/prisma/migrations/20260510170000_add_folder_permissions/migration.sql +0 -93
  374. package/prisma/migrations/20260510183000_add_discussions/migration.sql +0 -151
  375. /package/.github/workflows/{npm.yml → npm-publish.yml} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"folder.d.ts","sourceRoot":"/","sources":["models/folder.ts"],"names":[],"mappings":"AAsBA,2DAA2D;AAC3D,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;GAOtE;AAED,6BAA6B;AAC7B,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;GAI9C;AAED,kCAAkC;AAClC,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAKvD;AAED,wCAAwC;AACxC,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM;;;;;;;;;;;;;;;GAOtD;AAED,6CAA6C;AAC7C,wBAAsB,sBAAsB,CAAC,OAAO,EAAE,MAAM;;;;;;;;;GAW3D;AAED,uBAAuB;AACvB,wBAAgB,YAAY,CAAC,IAAI,EAAE;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAkBzD;AAED,+CAA+C;AAC/C,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAOpE;AAED,+CAA+C;AAC/C,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAOvD;AAED,uBAAuB;AACvB,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIhD;AAED,iCAAiC;AACjC,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAS1E;AAED,oCAAoC;AACpC,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUxC;AAED,0CAA0C;AAC1C,wBAAgB,0BAA0B,CAAC,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAIpD;AAED,6BAA6B;AAC7B,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAIjD"}
@@ -1,47 +1,89 @@
1
1
  /** @returns Class with students and teachers for lab creation. */
2
- export declare function findClassWithTeachersForLab(classId: string, teacherId: string): import(".prisma/client").Prisma.Prisma__ClassClient<({
2
+ export declare function findClassWithTeachersForLab(classId: string, teacherId: 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
+ }, {}>, "Class", "findFirst", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
3
27
  teachers: {
4
28
  id: string;
5
29
  username: string;
6
30
  profile: {
7
- displayName: string | null;
8
31
  profilePicture: string | null;
32
+ displayName: string | null;
9
33
  } | null;
10
34
  }[];
11
35
  students: {
12
36
  id: string;
13
37
  username: string;
14
38
  profile: {
15
- displayName: string | null;
16
39
  profilePicture: string | null;
40
+ displayName: string | null;
17
41
  } | null;
18
42
  }[];
19
43
  } & {
20
- name: string;
44
+ section: string;
21
45
  id: string;
46
+ name: string;
22
47
  schoolId: string | null;
23
- subject: string;
24
48
  color: string | null;
25
- section: string;
49
+ subject: string;
26
50
  syllabus: string | null;
27
51
  departmentId: string | null;
28
52
  discussionsEnabled: boolean;
29
53
  studentsCanCreateDiscussions: boolean;
30
54
  studentsCanReply: boolean;
31
- }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
32
- datasources: {
33
- db: {
34
- url: string;
55
+ }) | null>;
56
+ /** @returns Lab chat if user is a conversation member. */
57
+ export declare function findLabChatByMember(labChatId: string, userId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
58
+ result: {
59
+ userProfile: {
60
+ profilePicture: () => {
61
+ needs: {
62
+ profilePicture: true;
63
+ };
64
+ compute(profile: {
65
+ profilePicture: string | null;
66
+ }): string | null;
67
+ };
68
+ profilePictureThumbnail: () => {
69
+ needs: {
70
+ profilePictureThumbnail: true;
71
+ };
72
+ compute(profile: {
73
+ profilePictureThumbnail: string | null;
74
+ }): string | null;
75
+ };
35
76
  };
36
77
  };
37
- }>;
38
- /** @returns Lab chat if user is a conversation member. */
39
- export declare function findLabChatByMember(labChatId: string, userId: string): import(".prisma/client").Prisma.Prisma__LabChatClient<({
78
+ model: {};
79
+ query: {};
80
+ client: {};
81
+ }, {}>, "LabChat", "findFirst", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
40
82
  class: {
41
- name: string;
83
+ section: string;
42
84
  id: string;
85
+ name: string;
43
86
  subject: string;
44
- section: string;
45
87
  };
46
88
  conversation: {
47
89
  members: ({
@@ -49,8 +91,8 @@ export declare function findLabChatByMember(labChatId: string, userId: string):
49
91
  id: string;
50
92
  username: string;
51
93
  profile: {
52
- displayName: string | null;
53
94
  profilePicture: string | null;
95
+ displayName: string | null;
54
96
  } | null;
55
97
  };
56
98
  } & {
@@ -65,18 +107,18 @@ export declare function findLabChatByMember(labChatId: string, userId: string):
65
107
  })[];
66
108
  } & {
67
109
  type: import(".prisma/client").$Enums.ConversationType;
68
- name: string | null;
69
110
  id: string;
70
111
  createdAt: Date;
71
112
  updatedAt: Date;
113
+ name: string | null;
72
114
  displayInChat: boolean;
73
115
  };
74
116
  createdBy: {
75
117
  id: string;
76
118
  username: string;
77
119
  profile: {
78
- displayName: string | null;
79
120
  profilePicture: string | null;
121
+ displayName: string | null;
80
122
  } | null;
81
123
  };
82
124
  } & {
@@ -85,18 +127,36 @@ export declare function findLabChatByMember(labChatId: string, userId: string):
85
127
  createdAt: Date;
86
128
  updatedAt: Date;
87
129
  classId: string;
88
- conversationId: string;
89
130
  title: string;
131
+ conversationId: string;
90
132
  createdById: string;
91
- }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
92
- datasources: {
93
- db: {
94
- url: string;
133
+ }) | null>;
134
+ /** @returns Lab chat if user is class teacher or school admin. */
135
+ export declare function findLabChatByTeacher(labChatId: string, userId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
136
+ result: {
137
+ userProfile: {
138
+ profilePicture: () => {
139
+ needs: {
140
+ profilePicture: true;
141
+ };
142
+ compute(profile: {
143
+ profilePicture: string | null;
144
+ }): string | null;
145
+ };
146
+ profilePictureThumbnail: () => {
147
+ needs: {
148
+ profilePictureThumbnail: true;
149
+ };
150
+ compute(profile: {
151
+ profilePictureThumbnail: string | null;
152
+ }): string | null;
153
+ };
95
154
  };
96
155
  };
97
- }>;
98
- /** @returns Lab chat if user is class teacher or school admin. */
99
- export declare function findLabChatByTeacher(labChatId: string, userId: string): import(".prisma/client").Prisma.Prisma__LabChatClient<({
156
+ model: {};
157
+ query: {};
158
+ client: {};
159
+ }, {}>, "LabChat", "findFirst", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
100
160
  conversation: {
101
161
  id: string;
102
162
  };
@@ -106,23 +166,41 @@ export declare function findLabChatByTeacher(labChatId: string, userId: string):
106
166
  createdAt: Date;
107
167
  updatedAt: Date;
108
168
  classId: string;
109
- conversationId: string;
110
169
  title: string;
170
+ conversationId: string;
111
171
  createdById: string;
112
- }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
113
- datasources: {
114
- db: {
115
- url: string;
172
+ }) | null>;
173
+ /** @returns Lab chat by ID. */
174
+ export declare function findLabChatById(labChatId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
175
+ result: {
176
+ userProfile: {
177
+ profilePicture: () => {
178
+ needs: {
179
+ profilePicture: true;
180
+ };
181
+ compute(profile: {
182
+ profilePicture: string | null;
183
+ }): string | null;
184
+ };
185
+ profilePictureThumbnail: () => {
186
+ needs: {
187
+ profilePictureThumbnail: true;
188
+ };
189
+ compute(profile: {
190
+ profilePictureThumbnail: string | null;
191
+ }): string | null;
192
+ };
116
193
  };
117
194
  };
118
- }>;
119
- /** @returns Lab chat by ID. */
120
- export declare function findLabChatById(labChatId: string): import(".prisma/client").Prisma.Prisma__LabChatClient<({
195
+ model: {};
196
+ query: {};
197
+ client: {};
198
+ }, {}>, "LabChat", "findFirst", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
121
199
  class: {
122
- name: string;
200
+ section: string;
123
201
  id: string;
202
+ name: string;
124
203
  subject: string;
125
- section: string;
126
204
  };
127
205
  conversation: {
128
206
  members: ({
@@ -130,8 +208,8 @@ export declare function findLabChatById(labChatId: string): import(".prisma/clie
130
208
  id: string;
131
209
  username: string;
132
210
  profile: {
133
- displayName: string | null;
134
211
  profilePicture: string | null;
212
+ displayName: string | null;
135
213
  } | null;
136
214
  };
137
215
  } & {
@@ -146,18 +224,18 @@ export declare function findLabChatById(labChatId: string): import(".prisma/clie
146
224
  })[];
147
225
  } & {
148
226
  type: import(".prisma/client").$Enums.ConversationType;
149
- name: string | null;
150
227
  id: string;
151
228
  createdAt: Date;
152
229
  updatedAt: Date;
230
+ name: string | null;
153
231
  displayInChat: boolean;
154
232
  };
155
233
  createdBy: {
156
234
  id: string;
157
235
  username: string;
158
236
  profile: {
159
- displayName: string | null;
160
237
  profilePicture: string | null;
238
+ displayName: string | null;
161
239
  } | null;
162
240
  };
163
241
  } & {
@@ -166,38 +244,50 @@ export declare function findLabChatById(labChatId: string): import(".prisma/clie
166
244
  createdAt: Date;
167
245
  updatedAt: Date;
168
246
  classId: string;
169
- conversationId: string;
170
247
  title: string;
248
+ conversationId: string;
171
249
  createdById: string;
172
- }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
173
- datasources: {
174
- db: {
175
- url: string;
250
+ }) | null>;
251
+ /** @returns Class if user is student, teacher, or school admin. */
252
+ export declare function findClassMembership(classId: string, userId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
253
+ result: {
254
+ userProfile: {
255
+ profilePicture: () => {
256
+ needs: {
257
+ profilePicture: true;
258
+ };
259
+ compute(profile: {
260
+ profilePicture: string | null;
261
+ }): string | null;
262
+ };
263
+ profilePictureThumbnail: () => {
264
+ needs: {
265
+ profilePictureThumbnail: true;
266
+ };
267
+ compute(profile: {
268
+ profilePictureThumbnail: string | null;
269
+ }): string | null;
270
+ };
176
271
  };
177
272
  };
178
- }>;
179
- /** @returns Class if user is student, teacher, or school admin. */
180
- export declare function findClassMembership(classId: string, userId: string): import(".prisma/client").Prisma.Prisma__ClassClient<{
181
- name: string;
273
+ model: {};
274
+ query: {};
275
+ client: {};
276
+ }, {}>, "Class", "findFirst", null> & import("@prisma/client/runtime/library.js").PrismaPromise<{
277
+ section: string;
182
278
  id: string;
279
+ name: string;
183
280
  schoolId: string | null;
184
- subject: string;
185
281
  color: string | null;
186
- section: string;
282
+ subject: string;
187
283
  syllabus: string | null;
188
284
  departmentId: string | null;
189
285
  discussionsEnabled: boolean;
190
286
  studentsCanCreateDiscussions: boolean;
191
287
  studentsCanReply: boolean;
192
- } | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
193
- datasources: {
194
- db: {
195
- url: string;
196
- };
197
- };
198
- }>;
288
+ } | null>;
199
289
  /** @returns Lab chats for a class. */
200
- export declare function findLabChatsByClass(classId: string): import(".prisma/client").Prisma.PrismaPromise<({
290
+ export declare function findLabChatsByClass(classId: string): import("@prisma/client/runtime/library.js").PrismaPromise<({
201
291
  conversation: {
202
292
  _count: {
203
293
  messages: number;
@@ -215,17 +305,17 @@ export declare function findLabChatsByClass(classId: string): import(".prisma/cl
215
305
  meta: import("@prisma/client/runtime/library.js").JsonValue | null;
216
306
  id: string;
217
307
  createdAt: Date;
218
- conversationId: string;
219
308
  content: string;
220
309
  senderId: string;
310
+ conversationId: string;
221
311
  runJobId: string | null;
222
312
  })[];
223
313
  } & {
224
314
  type: import(".prisma/client").$Enums.ConversationType;
225
- name: string | null;
226
315
  id: string;
227
316
  createdAt: Date;
228
317
  updatedAt: Date;
318
+ name: string | null;
229
319
  displayInChat: boolean;
230
320
  };
231
321
  createdBy: {
@@ -241,12 +331,36 @@ export declare function findLabChatsByClass(classId: string): import(".prisma/cl
241
331
  createdAt: Date;
242
332
  updatedAt: Date;
243
333
  classId: string;
244
- conversationId: string;
245
334
  title: string;
335
+ conversationId: string;
246
336
  createdById: string;
247
337
  })[]>;
248
338
  /** @returns Lab chat if user can post (member or teacher). */
249
- export declare function findLabChatForPost(labChatId: string, userId: string): import(".prisma/client").Prisma.Prisma__LabChatClient<({
339
+ export declare function findLabChatForPost(labChatId: string, userId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
340
+ result: {
341
+ userProfile: {
342
+ profilePicture: () => {
343
+ needs: {
344
+ profilePicture: true;
345
+ };
346
+ compute(profile: {
347
+ profilePicture: string | null;
348
+ }): string | null;
349
+ };
350
+ profilePictureThumbnail: () => {
351
+ needs: {
352
+ profilePictureThumbnail: true;
353
+ };
354
+ compute(profile: {
355
+ profilePictureThumbnail: string | null;
356
+ }): string | null;
357
+ };
358
+ };
359
+ };
360
+ model: {};
361
+ query: {};
362
+ client: {};
363
+ }, {}>, "LabChat", "findFirst", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
250
364
  conversation: {
251
365
  id: string;
252
366
  };
@@ -256,35 +370,47 @@ export declare function findLabChatForPost(labChatId: string, userId: string): i
256
370
  createdAt: Date;
257
371
  updatedAt: Date;
258
372
  classId: string;
259
- conversationId: string;
260
373
  title: string;
374
+ conversationId: string;
261
375
  createdById: string;
262
- }) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
263
- datasources: {
264
- db: {
265
- url: string;
376
+ }) | null>;
377
+ /** @returns Lab chat if user can delete (teacher). */
378
+ export declare function findLabChatForDelete(labChatId: string, userId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
379
+ result: {
380
+ userProfile: {
381
+ profilePicture: () => {
382
+ needs: {
383
+ profilePicture: true;
384
+ };
385
+ compute(profile: {
386
+ profilePicture: string | null;
387
+ }): string | null;
388
+ };
389
+ profilePictureThumbnail: () => {
390
+ needs: {
391
+ profilePictureThumbnail: true;
392
+ };
393
+ compute(profile: {
394
+ profilePictureThumbnail: string | null;
395
+ }): string | null;
396
+ };
266
397
  };
267
398
  };
268
- }>;
269
- /** @returns Lab chat if user can delete (teacher). */
270
- export declare function findLabChatForDelete(labChatId: string, userId: string): import(".prisma/client").Prisma.Prisma__LabChatClient<{
399
+ model: {};
400
+ query: {};
401
+ client: {};
402
+ }, {}>, "LabChat", "findFirst", null> & import("@prisma/client/runtime/library.js").PrismaPromise<{
271
403
  context: string;
272
404
  id: string;
273
405
  createdAt: Date;
274
406
  updatedAt: Date;
275
407
  classId: string;
276
- conversationId: string;
277
408
  title: string;
409
+ conversationId: string;
278
410
  createdById: string;
279
- } | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
280
- datasources: {
281
- db: {
282
- url: string;
283
- };
284
- };
285
- }>;
411
+ } | null>;
286
412
  /** @returns Conversation members for mentioned user IDs. */
287
- export declare function findMentionedMemberships(conversationId: string, userIds: string[]): import(".prisma/client").Prisma.PrismaPromise<{
413
+ export declare function findMentionedMemberships(conversationId: string, userIds: string[]): import("@prisma/client/runtime/library.js").PrismaPromise<{
288
414
  id: string;
289
415
  userId: string;
290
416
  role: import(".prisma/client").$Enums.ConversationRole;
@@ -1 +1 @@
1
- {"version":3,"file":"labChat.d.ts","sourceRoot":"/","sources":["models/labChat.ts"],"names":[],"mappings":"AAoDA,kEAAkE;AAClE,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiC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AgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAUpE;AAED,kEAAkE;AAClE,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAYrE;AAED,+BAA+B;AAC/B,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAKhD;AAED,mEAAmE;AACnE,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAOlE;AAED,sCAAsC;AACtC,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwClD;AAED,8DAA8D;AAC9D,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAYnE;AAED,sDAAsD;AACtD,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAOrE;AAED,4DAA4D;AAC5D,wBAAgB,wBAAwB,CACtC,cAAc,EAAE,MAAM,EACtB,OAAO,EAAE,MAAM,EAAE;;;;;;;;;KAQlB"}
@@ -16,13 +16,37 @@ export declare function createSchoolDevelopmentProgram(data: {
16
16
  eligibilityInformation?: string;
17
17
  whyHelp?: string;
18
18
  additionalInformation?: string;
19
- }): import(".prisma/client").Prisma.Prisma__SchoolDevelopementProgramClient<{
19
+ }): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
20
+ result: {
21
+ userProfile: {
22
+ profilePicture: () => {
23
+ needs: {
24
+ profilePicture: true;
25
+ };
26
+ compute(profile: {
27
+ profilePicture: string | null;
28
+ }): string | null;
29
+ };
30
+ profilePictureThumbnail: () => {
31
+ needs: {
32
+ profilePictureThumbnail: true;
33
+ };
34
+ compute(profile: {
35
+ profilePictureThumbnail: string | null;
36
+ }): string | null;
37
+ };
38
+ };
39
+ };
40
+ model: {};
41
+ query: {};
42
+ client: {};
43
+ }, {}>, "SchoolDevelopementProgram", "create", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
20
44
  type: string;
21
45
  status: string;
22
- name: string;
23
46
  id: string;
24
- submittedAt: Date | null;
25
47
  website: string | null;
48
+ name: string;
49
+ submittedAt: Date | null;
26
50
  address: string;
27
51
  city: string;
28
52
  country: string;
@@ -36,55 +60,72 @@ export declare function createSchoolDevelopmentProgram(data: {
36
60
  whyHelp: string | null;
37
61
  additionalInformation: string | null;
38
62
  reviewedAt: Date | null;
39
- }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
40
- datasources: {
41
- db: {
42
- url: string;
63
+ }>;
64
+ /** Public status lookup — omits contact PII (email, phone, address). */
65
+ export declare function findSchoolDevelopmentProgramStatusById(id: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
66
+ result: {
67
+ userProfile: {
68
+ profilePicture: () => {
69
+ needs: {
70
+ profilePicture: true;
71
+ };
72
+ compute(profile: {
73
+ profilePicture: string | null;
74
+ }): string | null;
75
+ };
76
+ profilePictureThumbnail: () => {
77
+ needs: {
78
+ profilePictureThumbnail: true;
79
+ };
80
+ compute(profile: {
81
+ profilePictureThumbnail: string | null;
82
+ }): string | null;
83
+ };
43
84
  };
44
85
  };
45
- }>;
46
- /** @returns School development program by ID. */
47
- export declare function findSchoolDevelopmentProgramById(id: string): import(".prisma/client").Prisma.Prisma__SchoolDevelopementProgramClient<{
48
- type: string;
86
+ model: {};
87
+ query: {};
88
+ client: {};
89
+ }, {}>, "SchoolDevelopementProgram", "findUnique", null> & import("@prisma/client/runtime/library.js").PrismaPromise<{
49
90
  status: string;
50
- name: string;
51
91
  id: string;
92
+ name: string;
52
93
  submittedAt: Date | null;
53
- website: string | null;
54
- address: string;
55
94
  city: string;
56
95
  country: string;
57
- numberOfStudents: number;
58
- numberOfTeachers: number;
59
- contactName: string | null;
60
- contactRole: string | null;
61
- contactEmail: string | null;
62
- contactPhone: string | null;
63
- eligibilityInformation: string | null;
64
- whyHelp: string | null;
65
- additionalInformation: string | null;
66
- reviewedAt: Date | null;
67
- } | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
68
- datasources: {
69
- db: {
70
- url: string;
71
- };
72
- };
73
- }>;
96
+ } | null>;
74
97
  /** Create an early access request. */
75
98
  export declare function createEarlyAccessRequest(data: {
76
99
  email: string;
77
100
  institutionSize: string;
78
- }): import(".prisma/client").Prisma.Prisma__EarlyAccessRequestClient<{
101
+ }): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
102
+ result: {
103
+ userProfile: {
104
+ profilePicture: () => {
105
+ needs: {
106
+ profilePicture: true;
107
+ };
108
+ compute(profile: {
109
+ profilePicture: string | null;
110
+ }): string | null;
111
+ };
112
+ profilePictureThumbnail: () => {
113
+ needs: {
114
+ profilePictureThumbnail: true;
115
+ };
116
+ compute(profile: {
117
+ profilePictureThumbnail: string | null;
118
+ }): string | null;
119
+ };
120
+ };
121
+ };
122
+ model: {};
123
+ query: {};
124
+ client: {};
125
+ }, {}>, "EarlyAccessRequest", "create", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
79
126
  id: string;
80
127
  createdAt: Date;
81
128
  email: string;
82
129
  institutionSize: string;
83
- }, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
84
- datasources: {
85
- db: {
86
- url: string;
87
- };
88
- };
89
130
  }>;
90
131
  //# sourceMappingURL=marketing.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"marketing.d.ts","sourceRoot":"/","sources":["models/marketing.ts"],"names":[],"mappings":"AAKA,uDAAuD;AACvD,wBAAgB,8BAA8B,CAAC,IAAI,EAAE;IACnD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;;;;;;;;;;;;;;;;;;;;;;;;;;GAIA;AAED,iDAAiD;AACjD,wBAAgB,gCAAgC,CAAC,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;GAI1D;AAED,sCAAsC;AACtC,wBAAgB,wBAAwB,CAAC,IAAI,EAAE;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;CACzB;;;;;;;;;;;GAIA"}
1
+ {"version":3,"file":"marketing.d.ts","sourceRoot":"/","sources":["models/marketing.ts"],"names":[],"mappings":"AAKA,uDAAuD;AACvD,wBAAgB,8BAA8B,CAAC,IAAI,EAAE;IACnD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIA;AAED,wEAAwE;AACxE,wBAAgB,sCAAsC,CAAC,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAYhE;AAED,sCAAsC;AACtC,wBAAgB,wBAAwB,CAAC,IAAI,EAAE;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;CACzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIA"}
@@ -2,7 +2,7 @@
2
2
  * Marketing model – school development programs, early access requests.
3
3
  */
4
4
 
5
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="fdc418fa-ea66-5ab4-9ecd-ec50207cf861")}catch(e){}}();
5
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0ace5974-3200-5f1b-97d3-6b30aa4af12e")}catch(e){}}();
6
6
  import { prisma } from "../lib/prisma.js";
7
7
  /** Create a school development program application. */
8
8
  export function createSchoolDevelopmentProgram(data) {
@@ -10,10 +10,18 @@ export function createSchoolDevelopmentProgram(data) {
10
10
  data,
11
11
  });
12
12
  }
13
- /** @returns School development program by ID. */
14
- export function findSchoolDevelopmentProgramById(id) {
13
+ /** Public status lookup — omits contact PII (email, phone, address). */
14
+ export function findSchoolDevelopmentProgramStatusById(id) {
15
15
  return prisma.schoolDevelopementProgram.findUnique({
16
16
  where: { id },
17
+ select: {
18
+ id: true,
19
+ name: true,
20
+ city: true,
21
+ country: true,
22
+ status: true,
23
+ submittedAt: true,
24
+ },
17
25
  });
18
26
  }
19
27
  /** Create an early access request. */
@@ -23,4 +31,4 @@ export function createEarlyAccessRequest(data) {
23
31
  });
24
32
  }
25
33
  //# sourceMappingURL=marketing.js.map
26
- //# debugId=fdc418fa-ea66-5ab4-9ecd-ec50207cf861
34
+ //# debugId=0ace5974-3200-5f1b-97d3-6b30aa4af12e