@studious-lms/server 1.4.1 → 1.4.3

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 (248) hide show
  1. package/.coderabbit.yaml +4 -1
  2. package/.env.example +6 -0
  3. package/.env.test.example +2 -0
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +101 -76
  6. package/dist/index.js.map +1 -1
  7. package/dist/lib/config/cors.d.ts +16 -0
  8. package/dist/lib/config/cors.d.ts.map +1 -0
  9. package/dist/lib/config/cors.js +75 -0
  10. package/dist/lib/config/cors.js.map +1 -0
  11. package/dist/lib/config/env.d.ts +14 -0
  12. package/dist/lib/config/env.d.ts.map +1 -1
  13. package/dist/lib/config/env.js +9 -2
  14. package/dist/lib/config/env.js.map +1 -1
  15. package/dist/lib/fileUpload.d.ts +10 -2
  16. package/dist/lib/fileUpload.d.ts.map +1 -1
  17. package/dist/lib/fileUpload.js +38 -6
  18. package/dist/lib/fileUpload.js.map +1 -1
  19. package/dist/lib/prisma.d.ts +14 -2
  20. package/dist/lib/prisma.d.ts.map +1 -1
  21. package/dist/lib/prisma.js +27 -8
  22. package/dist/lib/prisma.js.map +1 -1
  23. package/dist/middleware/auth.d.ts.map +1 -1
  24. package/dist/middleware/auth.js +18 -5
  25. package/dist/middleware/auth.js.map +1 -1
  26. package/dist/middleware/security.d.ts.map +1 -1
  27. package/dist/middleware/security.js +3 -3
  28. package/dist/middleware/security.js.map +1 -1
  29. package/dist/models/agenda.d.ts +16 -16
  30. package/dist/models/announcement.d.ts +59 -23
  31. package/dist/models/announcement.d.ts.map +1 -1
  32. package/dist/models/assignment.d.ts +363 -276
  33. package/dist/models/assignment.d.ts.map +1 -1
  34. package/dist/models/attendance.d.ts +63 -21
  35. package/dist/models/attendance.d.ts.map +1 -1
  36. package/dist/models/auth.d.ts +115 -26
  37. package/dist/models/auth.d.ts.map +1 -1
  38. package/dist/models/auth.js +53 -30
  39. package/dist/models/auth.js.map +1 -1
  40. package/dist/models/class.d.ts +115 -65
  41. package/dist/models/class.d.ts.map +1 -1
  42. package/dist/models/class.js +16 -4
  43. package/dist/models/class.js.map +1 -1
  44. package/dist/models/comment.d.ts +52 -16
  45. package/dist/models/comment.d.ts.map +1 -1
  46. package/dist/models/conversation.d.ts +46 -16
  47. package/dist/models/conversation.d.ts.map +1 -1
  48. package/dist/models/event.d.ts +107 -53
  49. package/dist/models/event.d.ts.map +1 -1
  50. package/dist/models/file.d.ts +213 -165
  51. package/dist/models/file.d.ts.map +1 -1
  52. package/dist/models/folder.d.ts +161 -77
  53. package/dist/models/folder.d.ts.map +1 -1
  54. package/dist/models/labChat.d.ts +73 -31
  55. package/dist/models/labChat.d.ts.map +1 -1
  56. package/dist/models/marketing.d.ts +25 -7
  57. package/dist/models/marketing.d.ts.map +1 -1
  58. package/dist/models/message.d.ts +31 -13
  59. package/dist/models/message.d.ts.map +1 -1
  60. package/dist/models/newtonChat.d.ts +34 -10
  61. package/dist/models/newtonChat.d.ts.map +1 -1
  62. package/dist/models/notification.d.ts +29 -10
  63. package/dist/models/notification.d.ts.map +1 -1
  64. package/dist/models/notification.js +13 -9
  65. package/dist/models/notification.js.map +1 -1
  66. package/dist/models/section.d.ts +71 -23
  67. package/dist/models/section.d.ts.map +1 -1
  68. package/dist/models/user.d.ts +27 -9
  69. package/dist/models/user.d.ts.map +1 -1
  70. package/dist/models/worksheet.d.ts +606 -106
  71. package/dist/models/worksheet.d.ts.map +1 -1
  72. package/dist/models/worksheet.js +168 -2
  73. package/dist/models/worksheet.js.map +1 -1
  74. package/dist/pipelines/aiLabChat.d.ts +22 -2
  75. package/dist/pipelines/aiLabChat.d.ts.map +1 -1
  76. package/dist/pipelines/aiLabChat.js +133 -95
  77. package/dist/pipelines/aiLabChat.js.map +1 -1
  78. package/dist/pipelines/aiLabChatContract.d.ts +25 -25
  79. package/dist/pipelines/aiNewtonChat.d.ts.map +1 -1
  80. package/dist/pipelines/aiNewtonChat.js +25 -14
  81. package/dist/pipelines/aiNewtonChat.js.map +1 -1
  82. package/dist/pipelines/gradeWorksheet.d.ts +8 -8
  83. package/dist/pipelines/gradeWorksheet.d.ts.map +1 -1
  84. package/dist/pipelines/gradeWorksheet.js +12 -5
  85. package/dist/pipelines/gradeWorksheet.js.map +1 -1
  86. package/dist/pipelines/labChatPrompt.d.ts +27 -0
  87. package/dist/pipelines/labChatPrompt.d.ts.map +1 -1
  88. package/dist/pipelines/labChatPrompt.js +143 -69
  89. package/dist/pipelines/labChatPrompt.js.map +1 -1
  90. package/dist/routers/_app.d.ts +1579 -1257
  91. package/dist/routers/_app.d.ts.map +1 -1
  92. package/dist/routers/agenda.d.ts +16 -16
  93. package/dist/routers/announcement.d.ts +19 -19
  94. package/dist/routers/assignment.d.ts +307 -291
  95. package/dist/routers/assignment.d.ts.map +1 -1
  96. package/dist/routers/assignment.js +3 -2
  97. package/dist/routers/assignment.js.map +1 -1
  98. package/dist/routers/attendance.d.ts +7 -7
  99. package/dist/routers/auth.d.ts +1 -1
  100. package/dist/routers/class.d.ts +79 -72
  101. package/dist/routers/class.d.ts.map +1 -1
  102. package/dist/routers/class.js +3 -3
  103. package/dist/routers/class.js.map +1 -1
  104. package/dist/routers/comment.d.ts +6 -6
  105. package/dist/routers/conversation.d.ts +11 -11
  106. package/dist/routers/event.d.ts +35 -35
  107. package/dist/routers/file.d.ts +12 -12
  108. package/dist/routers/folder.d.ts +54 -54
  109. package/dist/routers/labChat.d.ts +18 -12
  110. package/dist/routers/labChat.d.ts.map +1 -1
  111. package/dist/routers/labChat.js +5 -3
  112. package/dist/routers/labChat.js.map +1 -1
  113. package/dist/routers/marketing.d.ts +2 -2
  114. package/dist/routers/message.d.ts +33 -2
  115. package/dist/routers/message.d.ts.map +1 -1
  116. package/dist/routers/message.js +27 -4
  117. package/dist/routers/message.js.map +1 -1
  118. package/dist/routers/newtonChat.d.ts +7 -1
  119. package/dist/routers/newtonChat.d.ts.map +1 -1
  120. package/dist/routers/newtonChat.js +5 -4
  121. package/dist/routers/newtonChat.js.map +1 -1
  122. package/dist/routers/notifications.d.ts +13 -6
  123. package/dist/routers/notifications.d.ts.map +1 -1
  124. package/dist/routers/notifications.js +4 -4
  125. package/dist/routers/notifications.js.map +1 -1
  126. package/dist/routers/section.d.ts +7 -7
  127. package/dist/routers/studentProgress.d.ts +86 -0
  128. package/dist/routers/studentProgress.d.ts.map +1 -1
  129. package/dist/routers/studentProgress.js +14 -4
  130. package/dist/routers/studentProgress.js.map +1 -1
  131. package/dist/routers/user.d.ts +1 -1
  132. package/dist/routers/worksheet.d.ts +64 -62
  133. package/dist/routers/worksheet.d.ts.map +1 -1
  134. package/dist/routers/worksheet.js +18 -16
  135. package/dist/routers/worksheet.js.map +1 -1
  136. package/dist/seedDatabase.d.ts +1 -1
  137. package/dist/services/agenda.d.ts +16 -16
  138. package/dist/services/announcement.d.ts +8 -8
  139. package/dist/services/assignment.d.ts +299 -283
  140. package/dist/services/assignment.d.ts.map +1 -1
  141. package/dist/services/assignment.js +24 -5
  142. package/dist/services/assignment.js.map +1 -1
  143. package/dist/services/attendance.d.ts +7 -7
  144. package/dist/services/auth.d.ts +2 -2
  145. package/dist/services/auth.d.ts.map +1 -1
  146. package/dist/services/auth.js +19 -12
  147. package/dist/services/auth.js.map +1 -1
  148. package/dist/services/class.d.ts +74 -68
  149. package/dist/services/class.d.ts.map +1 -1
  150. package/dist/services/class.js +6 -3
  151. package/dist/services/class.js.map +1 -1
  152. package/dist/services/comment.d.ts +6 -6
  153. package/dist/services/conversation.d.ts +11 -11
  154. package/dist/services/event.d.ts +31 -31
  155. package/dist/services/file.d.ts +12 -12
  156. package/dist/services/file.d.ts.map +1 -1
  157. package/dist/services/file.js +7 -2
  158. package/dist/services/file.js.map +1 -1
  159. package/dist/services/folder.d.ts +52 -52
  160. package/dist/services/labChat.d.ts +18 -12
  161. package/dist/services/labChat.d.ts.map +1 -1
  162. package/dist/services/labChat.js +30 -18
  163. package/dist/services/labChat.js.map +1 -1
  164. package/dist/services/marketing.d.ts +2 -2
  165. package/dist/services/message.d.ts +30 -0
  166. package/dist/services/message.d.ts.map +1 -1
  167. package/dist/services/message.js +97 -21
  168. package/dist/services/message.js.map +1 -1
  169. package/dist/services/newtonChat.d.ts +6 -1
  170. package/dist/services/newtonChat.d.ts.map +1 -1
  171. package/dist/services/newtonChat.js +36 -18
  172. package/dist/services/newtonChat.js.map +1 -1
  173. package/dist/services/notification.d.ts +16 -9
  174. package/dist/services/notification.d.ts.map +1 -1
  175. package/dist/services/notification.js +24 -9
  176. package/dist/services/notification.js.map +1 -1
  177. package/dist/services/section.d.ts +6 -6
  178. package/dist/services/studentProgress.d.ts +75 -0
  179. package/dist/services/studentProgress.d.ts.map +1 -1
  180. package/dist/services/studentProgress.js +300 -107
  181. package/dist/services/studentProgress.js.map +1 -1
  182. package/dist/services/worksheet.d.ts +64 -64
  183. package/dist/services/worksheet.d.ts.map +1 -1
  184. package/dist/services/worksheet.js +138 -54
  185. package/dist/services/worksheet.js.map +1 -1
  186. package/dist/trpc.d.ts.map +1 -1
  187. package/dist/trpc.js +11 -17
  188. package/dist/trpc.js.map +1 -1
  189. package/dist/utils/inference.d.ts +9 -12
  190. package/dist/utils/inference.d.ts.map +1 -1
  191. package/dist/utils/inference.js +135 -95
  192. package/dist/utils/inference.js.map +1 -1
  193. package/package.json +1 -1
  194. package/prisma/migrations/20260410124000_add_submission_recommendation_state/migration.sql +14 -0
  195. package/prisma/migrations/20260415103500_add_session_type/migration.sql +33 -0
  196. package/prisma/migrations/20260415133000_add_ai_usage_logs/migration.sql +19 -0
  197. package/prisma/schema.prisma +41 -1
  198. package/scripts/test-pre-push.ts +6 -2
  199. package/src/index.ts +119 -79
  200. package/src/lib/config/cors.ts +96 -0
  201. package/src/lib/config/env.ts +12 -1
  202. package/src/lib/fileUpload.ts +55 -5
  203. package/src/lib/prisma.ts +25 -6
  204. package/src/middleware/auth.ts +19 -4
  205. package/src/middleware/security.ts +1 -1
  206. package/src/models/auth.ts +59 -29
  207. package/src/models/class.ts +15 -4
  208. package/src/models/notification.ts +13 -7
  209. package/src/models/worksheet.ts +202 -0
  210. package/src/pipelines/aiLabChat.ts +183 -104
  211. package/src/pipelines/aiNewtonChat.ts +24 -14
  212. package/src/pipelines/gradeWorksheet.ts +10 -2
  213. package/src/pipelines/labChatPrompt.ts +196 -68
  214. package/src/routers/assignment.ts +1 -0
  215. package/src/routers/class.ts +2 -2
  216. package/src/routers/labChat.ts +3 -1
  217. package/src/routers/message.ts +38 -1
  218. package/src/routers/newtonChat.ts +4 -2
  219. package/src/routers/notifications.ts +2 -2
  220. package/src/routers/studentProgress.ts +25 -1
  221. package/src/routers/worksheet.ts +31 -19
  222. package/src/services/assignment.ts +30 -2
  223. package/src/services/auth.ts +26 -12
  224. package/src/services/class.ts +4 -1
  225. package/src/services/file.ts +6 -0
  226. package/src/services/labChat.ts +42 -18
  227. package/src/services/message.ts +163 -18
  228. package/src/services/newtonChat.ts +49 -18
  229. package/src/services/notification.ts +27 -8
  230. package/src/services/studentProgress.ts +425 -121
  231. package/src/services/worksheet.ts +191 -51
  232. package/src/trpc.ts +12 -18
  233. package/src/utils/inference.ts +205 -112
  234. package/tests/globalSetup.ts +13 -4
  235. package/tests/lib/cors.test.ts +103 -0
  236. package/tests/pipelines/aiLabChat.test.ts +64 -84
  237. package/tests/routers/auth.test.ts +120 -17
  238. package/tests/routers/class.test.ts +7 -1
  239. package/tests/routers/message.test.ts +236 -9
  240. package/tests/routers/newtonChat.test.ts +81 -0
  241. package/tests/routers/notification.test.ts +12 -0
  242. package/tests/routers/studentProgress.test.ts +2 -31
  243. package/tests/routers/worksheet.test.ts +194 -0
  244. package/tests/setup.ts +22 -5
  245. package/tests/utils/aiLabChatPrompt.test.ts +114 -6
  246. package/tests/utils/inference.test.ts +218 -0
  247. package/tests/utils/studentProgress.test.ts +361 -0
  248. package/vitest.unit.config.ts +1 -0
@@ -39,9 +39,9 @@ export declare const conversationRouter: import("@trpc/server").TRPCBuiltRouter<
39
39
  };
40
40
  } & {
41
41
  id: string;
42
- role: import(".prisma/client").$Enums.ConversationRole;
43
42
  userId: string;
44
43
  conversationId: string;
44
+ role: import(".prisma/client").$Enums.ConversationRole;
45
45
  joinedAt: Date;
46
46
  lastViewedAt: Date | null;
47
47
  lastViewedMentionAt: Date | null;
@@ -56,11 +56,11 @@ export declare const conversationRouter: import("@trpc/server").TRPCBuiltRouter<
56
56
  };
57
57
  } & {
58
58
  status: import(".prisma/client").$Enums.GenerationStatus | null;
59
+ meta: import("@prisma/client/runtime/library.js").JsonValue | null;
59
60
  id: string;
61
+ conversationId: string;
60
62
  createdAt: Date;
61
- meta: import("@prisma/client/runtime/library.js").JsonValue | null;
62
63
  content: string;
63
- conversationId: string;
64
64
  senderId: string;
65
65
  };
66
66
  unreadCount: number;
@@ -86,19 +86,19 @@ export declare const conversationRouter: import("@trpc/server").TRPCBuiltRouter<
86
86
  };
87
87
  } & {
88
88
  id: string;
89
- role: import(".prisma/client").$Enums.ConversationRole;
90
89
  userId: string;
91
90
  conversationId: string;
91
+ role: import(".prisma/client").$Enums.ConversationRole;
92
92
  joinedAt: Date;
93
93
  lastViewedAt: Date | null;
94
94
  lastViewedMentionAt: Date | null;
95
95
  })[];
96
96
  } & {
97
97
  type: import(".prisma/client").$Enums.ConversationType;
98
+ name: string | null;
98
99
  id: string;
99
100
  createdAt: Date;
100
101
  updatedAt: Date;
101
- name: string | null;
102
102
  displayInChat: boolean;
103
103
  };
104
104
  meta: object;
@@ -119,19 +119,19 @@ export declare const conversationRouter: import("@trpc/server").TRPCBuiltRouter<
119
119
  };
120
120
  } & {
121
121
  id: string;
122
- role: import(".prisma/client").$Enums.ConversationRole;
123
122
  userId: string;
124
123
  conversationId: string;
124
+ role: import(".prisma/client").$Enums.ConversationRole;
125
125
  joinedAt: Date;
126
126
  lastViewedAt: Date | null;
127
127
  lastViewedMentionAt: Date | null;
128
128
  })[];
129
129
  } & {
130
130
  type: import(".prisma/client").$Enums.ConversationType;
131
+ name: string | null;
131
132
  id: string;
132
133
  createdAt: Date;
133
134
  updatedAt: Date;
134
- name: string | null;
135
135
  displayInChat: boolean;
136
136
  };
137
137
  meta: object;
@@ -153,19 +153,19 @@ export declare const conversationRouter: import("@trpc/server").TRPCBuiltRouter<
153
153
  };
154
154
  } & {
155
155
  id: string;
156
- role: import(".prisma/client").$Enums.ConversationRole;
157
156
  userId: string;
158
157
  conversationId: string;
158
+ role: import(".prisma/client").$Enums.ConversationRole;
159
159
  joinedAt: Date;
160
160
  lastViewedAt: Date | null;
161
161
  lastViewedMentionAt: Date | null;
162
162
  })[];
163
163
  } & {
164
164
  type: import(".prisma/client").$Enums.ConversationType;
165
+ name: string | null;
165
166
  id: string;
166
167
  createdAt: Date;
167
168
  updatedAt: Date;
168
- name: string | null;
169
169
  displayInChat: boolean;
170
170
  };
171
171
  meta: object;
@@ -187,19 +187,19 @@ export declare const conversationRouter: import("@trpc/server").TRPCBuiltRouter<
187
187
  };
188
188
  } & {
189
189
  id: string;
190
- role: import(".prisma/client").$Enums.ConversationRole;
191
190
  userId: string;
192
191
  conversationId: string;
192
+ role: import(".prisma/client").$Enums.ConversationRole;
193
193
  joinedAt: Date;
194
194
  lastViewedAt: Date | null;
195
195
  lastViewedMentionAt: Date | null;
196
196
  })[];
197
197
  } & {
198
198
  type: import(".prisma/client").$Enums.ConversationType;
199
+ name: string | null;
199
200
  id: string;
200
201
  createdAt: Date;
201
202
  updatedAt: Date;
202
- name: string | null;
203
203
  displayInChat: boolean;
204
204
  };
205
205
  meta: object;
@@ -32,9 +32,9 @@ export declare const eventRouter: import("@trpc/server").TRPCBuiltRouter<{
32
32
  schoolId: string | null;
33
33
  } | null;
34
34
  class: {
35
+ name: string;
35
36
  id: string;
36
37
  schoolId: string | null;
37
- name: string;
38
38
  subject: string;
39
39
  color: string | null;
40
40
  section: string;
@@ -44,14 +44,14 @@ export declare const eventRouter: import("@trpc/server").TRPCBuiltRouter<{
44
44
  type: import(".prisma/client").$Enums.AssignmentType;
45
45
  id: string;
46
46
  section: {
47
- id: string;
48
47
  name: string;
48
+ id: string;
49
49
  } | null;
50
50
  title: string;
51
- dueDate: Date;
52
- maxGrade: number | null;
53
51
  instructions: string;
52
+ dueDate: Date;
54
53
  graded: boolean;
54
+ maxGrade: number | null;
55
55
  weight: number;
56
56
  teacher: {
57
57
  id: string;
@@ -59,19 +59,19 @@ export declare const eventRouter: import("@trpc/server").TRPCBuiltRouter<{
59
59
  };
60
60
  attachments: {
61
61
  type: string;
62
- id: string;
63
62
  name: string;
63
+ id: string;
64
64
  }[];
65
65
  }[];
66
66
  } & {
67
+ name: string | null;
67
68
  id: string;
68
69
  userId: string | null;
69
- location: string | null;
70
- classId: string | null;
71
- name: string | null;
72
70
  color: string | null;
71
+ classId: string | null;
73
72
  startTime: Date;
74
73
  endTime: Date;
74
+ location: string | null;
75
75
  remarks: string | null;
76
76
  };
77
77
  };
@@ -81,26 +81,26 @@ export declare const eventRouter: import("@trpc/server").TRPCBuiltRouter<{
81
81
  input: {
82
82
  startTime: string;
83
83
  endTime: string;
84
- location?: string | undefined;
85
- classId?: string | undefined;
86
84
  name?: string | undefined;
87
85
  color?: string | undefined;
86
+ classId?: string | undefined;
87
+ location?: string | undefined;
88
88
  remarks?: string | undefined;
89
89
  };
90
90
  output: {
91
91
  event: {
92
+ name: string | null;
92
93
  id: string;
93
94
  userId: string | null;
94
- location: string | null;
95
- classId: string | null;
96
95
  class: {
97
- id: string;
98
96
  name: string;
97
+ id: string;
99
98
  } | null;
100
- name: string | null;
101
99
  color: string | null;
100
+ classId: string | null;
102
101
  startTime: Date;
103
102
  endTime: Date;
103
+ location: string | null;
104
104
  remarks: string | null;
105
105
  };
106
106
  };
@@ -112,23 +112,23 @@ export declare const eventRouter: import("@trpc/server").TRPCBuiltRouter<{
112
112
  data: {
113
113
  startTime: string;
114
114
  endTime: string;
115
- location?: string | undefined;
116
- classId?: string | undefined;
117
115
  name?: string | undefined;
118
116
  color?: string | undefined;
117
+ classId?: string | undefined;
118
+ location?: string | undefined;
119
119
  remarks?: string | undefined;
120
120
  };
121
121
  };
122
122
  output: {
123
123
  event: {
124
+ name: string | null;
124
125
  id: string;
125
126
  userId: string | null;
126
- location: string | null;
127
- classId: string | null;
128
- name: string | null;
129
127
  color: string | null;
128
+ classId: string | null;
130
129
  startTime: Date;
131
130
  endTime: Date;
131
+ location: string | null;
132
132
  remarks: string | null;
133
133
  };
134
134
  };
@@ -151,8 +151,8 @@ export declare const eventRouter: import("@trpc/server").TRPCBuiltRouter<{
151
151
  output: {
152
152
  assignment: {
153
153
  section: {
154
- id: string;
155
154
  name: string;
155
+ id: string;
156
156
  } | null;
157
157
  teacher: {
158
158
  id: string;
@@ -160,20 +160,18 @@ export declare const eventRouter: import("@trpc/server").TRPCBuiltRouter<{
160
160
  };
161
161
  attachments: {
162
162
  type: string;
163
- id: string;
164
163
  name: string;
164
+ id: string;
165
165
  }[];
166
166
  } & {
167
167
  type: import(".prisma/client").$Enums.AssignmentType;
168
168
  id: string;
169
169
  createdAt: Date | null;
170
+ modifiedAt: Date | null;
170
171
  classId: string;
171
172
  title: string;
172
- dueDate: Date;
173
- maxGrade: number | null;
174
- eventId: string | null;
175
173
  instructions: string;
176
- modifiedAt: Date | null;
174
+ dueDate: Date;
177
175
  teacherId: string;
178
176
  acceptFiles: boolean;
179
177
  acceptExtendedResponse: boolean;
@@ -182,9 +180,11 @@ export declare const eventRouter: import("@trpc/server").TRPCBuiltRouter<{
182
180
  aiPolicyLevel: number;
183
181
  sectionId: string | null;
184
182
  graded: boolean;
183
+ maxGrade: number | null;
185
184
  weight: number;
186
185
  inProgress: boolean;
187
186
  template: boolean;
187
+ eventId: string | null;
188
188
  markSchemeId: string | null;
189
189
  order: number | null;
190
190
  gradingBoundaryId: string | null;
@@ -200,8 +200,8 @@ export declare const eventRouter: import("@trpc/server").TRPCBuiltRouter<{
200
200
  output: {
201
201
  assignment: {
202
202
  section: {
203
- id: string;
204
203
  name: string;
204
+ id: string;
205
205
  } | null;
206
206
  teacher: {
207
207
  id: string;
@@ -209,20 +209,18 @@ export declare const eventRouter: import("@trpc/server").TRPCBuiltRouter<{
209
209
  };
210
210
  attachments: {
211
211
  type: string;
212
- id: string;
213
212
  name: string;
213
+ id: string;
214
214
  }[];
215
215
  } & {
216
216
  type: import(".prisma/client").$Enums.AssignmentType;
217
217
  id: string;
218
218
  createdAt: Date | null;
219
+ modifiedAt: Date | null;
219
220
  classId: string;
220
221
  title: string;
221
- dueDate: Date;
222
- maxGrade: number | null;
223
- eventId: string | null;
224
222
  instructions: string;
225
- modifiedAt: Date | null;
223
+ dueDate: Date;
226
224
  teacherId: string;
227
225
  acceptFiles: boolean;
228
226
  acceptExtendedResponse: boolean;
@@ -231,9 +229,11 @@ export declare const eventRouter: import("@trpc/server").TRPCBuiltRouter<{
231
229
  aiPolicyLevel: number;
232
230
  sectionId: string | null;
233
231
  graded: boolean;
232
+ maxGrade: number | null;
234
233
  weight: number;
235
234
  inProgress: boolean;
236
235
  template: boolean;
236
+ eventId: string | null;
237
237
  markSchemeId: string | null;
238
238
  order: number | null;
239
239
  gradingBoundaryId: string | null;
@@ -250,14 +250,14 @@ export declare const eventRouter: import("@trpc/server").TRPCBuiltRouter<{
250
250
  type: import(".prisma/client").$Enums.AssignmentType;
251
251
  id: string;
252
252
  section: {
253
- id: string;
254
253
  name: string;
254
+ id: string;
255
255
  } | null;
256
256
  title: string;
257
- dueDate: Date;
258
- maxGrade: number | null;
259
257
  instructions: string;
258
+ dueDate: Date;
260
259
  graded: boolean;
260
+ maxGrade: number | null;
261
261
  weight: number;
262
262
  teacher: {
263
263
  id: string;
@@ -265,8 +265,8 @@ export declare const eventRouter: import("@trpc/server").TRPCBuiltRouter<{
265
265
  };
266
266
  attachments: {
267
267
  type: string;
268
- id: string;
269
268
  name: string;
269
+ id: string;
270
270
  }[];
271
271
  }[];
272
272
  };
@@ -40,15 +40,11 @@ export declare const fileRouter: import("@trpc/server").TRPCBuiltRouter<{
40
40
  } & {
41
41
  path: string;
42
42
  type: string;
43
- id: string;
44
- userId: string | null;
45
43
  name: string;
44
+ id: string;
46
45
  size: number | null;
46
+ userId: string | null;
47
47
  uploadedAt: Date | null;
48
- assignmentId: string | null;
49
- submissionId: string | null;
50
- thumbnailId: string | null;
51
- annotationId: string | null;
52
48
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
53
49
  uploadUrl: string | null;
54
50
  uploadExpiresAt: Date | null;
@@ -58,6 +54,10 @@ export declare const fileRouter: import("@trpc/server").TRPCBuiltRouter<{
58
54
  uploadRetryCount: number;
59
55
  isOrphaned: boolean;
60
56
  cleanupAt: Date | null;
57
+ thumbnailId: string | null;
58
+ assignmentId: string | null;
59
+ submissionId: string | null;
60
+ annotationId: string | null;
61
61
  classDraftId: string | null;
62
62
  folderId: string | null;
63
63
  conversationId: string | null;
@@ -82,15 +82,11 @@ export declare const fileRouter: import("@trpc/server").TRPCBuiltRouter<{
82
82
  } & {
83
83
  path: string;
84
84
  type: string;
85
- id: string;
86
- userId: string | null;
87
85
  name: string;
86
+ id: string;
88
87
  size: number | null;
88
+ userId: string | null;
89
89
  uploadedAt: Date | null;
90
- assignmentId: string | null;
91
- submissionId: string | null;
92
- thumbnailId: string | null;
93
- annotationId: string | null;
94
90
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
95
91
  uploadUrl: string | null;
96
92
  uploadExpiresAt: Date | null;
@@ -100,6 +96,10 @@ export declare const fileRouter: import("@trpc/server").TRPCBuiltRouter<{
100
96
  uploadRetryCount: number;
101
97
  isOrphaned: boolean;
102
98
  cleanupAt: Date | null;
99
+ thumbnailId: string | null;
100
+ assignmentId: string | null;
101
+ submissionId: string | null;
102
+ annotationId: string | null;
103
103
  classDraftId: string | null;
104
104
  folderId: string | null;
105
105
  conversationId: string | null;