@studious-lms/server 1.4.6 → 1.4.9

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 (177) hide show
  1. package/.github/workflows/npm.yml +28 -0
  2. package/dist/models/access.d.ts +112 -0
  3. package/dist/models/access.d.ts.map +1 -0
  4. package/dist/models/access.js +49 -0
  5. package/dist/models/access.js.map +1 -0
  6. package/dist/models/announcement.d.ts +17 -2
  7. package/dist/models/announcement.d.ts.map +1 -1
  8. package/dist/models/announcement.js +21 -4
  9. package/dist/models/announcement.js.map +1 -1
  10. package/dist/models/assignment.d.ts +69 -37
  11. package/dist/models/assignment.d.ts.map +1 -1
  12. package/dist/models/assignment.js +124 -15
  13. package/dist/models/assignment.js.map +1 -1
  14. package/dist/models/attendance.d.ts +1 -1
  15. package/dist/models/attendance.d.ts.map +1 -1
  16. package/dist/models/attendance.js +6 -5
  17. package/dist/models/attendance.js.map +1 -1
  18. package/dist/models/auth.d.ts +5 -5
  19. package/dist/models/auth.d.ts.map +1 -1
  20. package/dist/models/auth.js +7 -11
  21. package/dist/models/auth.js.map +1 -1
  22. package/dist/models/class.d.ts +26 -26
  23. package/dist/models/class.d.ts.map +1 -1
  24. package/dist/models/class.js +7 -11
  25. package/dist/models/class.js.map +1 -1
  26. package/dist/models/comment.d.ts +134 -70
  27. package/dist/models/comment.d.ts.map +1 -1
  28. package/dist/models/comment.js +30 -42
  29. package/dist/models/comment.js.map +1 -1
  30. package/dist/models/conversation.d.ts +7 -7
  31. package/dist/models/event.d.ts +52 -3
  32. package/dist/models/event.d.ts.map +1 -1
  33. package/dist/models/event.js +56 -6
  34. package/dist/models/event.js.map +1 -1
  35. package/dist/models/file.d.ts +178 -103
  36. package/dist/models/file.d.ts.map +1 -1
  37. package/dist/models/file.js +54 -14
  38. package/dist/models/file.js.map +1 -1
  39. package/dist/models/folder.d.ts +22 -22
  40. package/dist/models/folder.d.ts.map +1 -1
  41. package/dist/models/folder.js +5 -4
  42. package/dist/models/folder.js.map +1 -1
  43. package/dist/models/labChat.d.ts +20 -20
  44. package/dist/models/labChat.d.ts.map +1 -1
  45. package/dist/models/labChat.js +8 -10
  46. package/dist/models/labChat.js.map +1 -1
  47. package/dist/models/marketing.d.ts +1 -1
  48. package/dist/models/message.d.ts +6 -6
  49. package/dist/models/newtonChat.d.ts +5 -5
  50. package/dist/models/school.d.ts +361 -0
  51. package/dist/models/school.d.ts.map +1 -0
  52. package/dist/models/school.js +314 -0
  53. package/dist/models/school.js.map +1 -0
  54. package/dist/models/section.d.ts +1 -1
  55. package/dist/models/section.d.ts.map +1 -1
  56. package/dist/models/section.js +5 -4
  57. package/dist/models/section.js.map +1 -1
  58. package/dist/models/user.d.ts +4 -4
  59. package/dist/models/worksheet.d.ts +163 -141
  60. package/dist/models/worksheet.d.ts.map +1 -1
  61. package/dist/models/worksheet.js +42 -17
  62. package/dist/models/worksheet.js.map +1 -1
  63. package/dist/pipelines/gradeWorksheet.d.ts +2 -2
  64. package/dist/pipelines/pdfToWorksheet.d.ts +1 -1
  65. package/dist/routers/_app.d.ts +1271 -327
  66. package/dist/routers/_app.d.ts.map +1 -1
  67. package/dist/routers/_app.js +4 -2
  68. package/dist/routers/_app.js.map +1 -1
  69. package/dist/routers/announcement.d.ts +5 -5
  70. package/dist/routers/announcement.d.ts.map +1 -1
  71. package/dist/routers/announcement.js +25 -5
  72. package/dist/routers/announcement.js.map +1 -1
  73. package/dist/routers/assignment.d.ts +79 -44
  74. package/dist/routers/assignment.d.ts.map +1 -1
  75. package/dist/routers/assignment.js +32 -12
  76. package/dist/routers/assignment.js.map +1 -1
  77. package/dist/routers/class.d.ts +40 -20
  78. package/dist/routers/class.d.ts.map +1 -1
  79. package/dist/routers/class.js +3 -2
  80. package/dist/routers/class.js.map +1 -1
  81. package/dist/routers/comment.d.ts +5 -5
  82. package/dist/routers/conversation.d.ts +6 -6
  83. package/dist/routers/event.d.ts +21 -2
  84. package/dist/routers/event.d.ts.map +1 -1
  85. package/dist/routers/file.d.ts +2 -2
  86. package/dist/routers/folder.d.ts +24 -24
  87. package/dist/routers/labChat.d.ts +7 -7
  88. package/dist/routers/school.d.ts +384 -0
  89. package/dist/routers/school.d.ts.map +1 -0
  90. package/dist/routers/school.js +79 -0
  91. package/dist/routers/school.js.map +1 -0
  92. package/dist/routers/search.d.ts +1 -1
  93. package/dist/routers/worksheet.d.ts +36 -20
  94. package/dist/routers/worksheet.d.ts.map +1 -1
  95. package/dist/routers/worksheet.js +10 -3
  96. package/dist/routers/worksheet.js.map +1 -1
  97. package/dist/services/announcement.d.ts.map +1 -1
  98. package/dist/services/announcement.js +10 -6
  99. package/dist/services/announcement.js.map +1 -1
  100. package/dist/services/assignment.d.ts +66 -36
  101. package/dist/services/assignment.d.ts.map +1 -1
  102. package/dist/services/assignment.js +37 -3
  103. package/dist/services/assignment.js.map +1 -1
  104. package/dist/services/class.d.ts +39 -19
  105. package/dist/services/class.d.ts.map +1 -1
  106. package/dist/services/class.js +52 -15
  107. package/dist/services/class.js.map +1 -1
  108. package/dist/services/comment.d.ts +5 -5
  109. package/dist/services/comment.d.ts.map +1 -1
  110. package/dist/services/comment.js +8 -3
  111. package/dist/services/comment.js.map +1 -1
  112. package/dist/services/conversation.d.ts +6 -6
  113. package/dist/services/event.d.ts +21 -2
  114. package/dist/services/event.d.ts.map +1 -1
  115. package/dist/services/event.js +11 -7
  116. package/dist/services/event.js.map +1 -1
  117. package/dist/services/file.d.ts +2 -2
  118. package/dist/services/file.d.ts.map +1 -1
  119. package/dist/services/file.js +17 -8
  120. package/dist/services/file.js.map +1 -1
  121. package/dist/services/folder.d.ts +24 -24
  122. package/dist/services/labChat.d.ts +7 -7
  123. package/dist/services/school.d.ts +299 -0
  124. package/dist/services/school.d.ts.map +1 -0
  125. package/dist/services/school.js +225 -0
  126. package/dist/services/school.js.map +1 -0
  127. package/dist/services/worksheet.d.ts +31 -20
  128. package/dist/services/worksheet.d.ts.map +1 -1
  129. package/dist/services/worksheet.js +37 -3
  130. package/dist/services/worksheet.js.map +1 -1
  131. package/package.json +1 -1
  132. package/prisma/migrations/20260504071500_school_memberships/migration.sql +81 -0
  133. package/prisma/schema.prisma +66 -2
  134. package/src/models/access.ts +48 -0
  135. package/src/models/announcement.ts +19 -2
  136. package/src/models/assignment.ts +149 -13
  137. package/src/models/attendance.ts +4 -3
  138. package/src/models/auth.ts +8 -9
  139. package/src/models/class.ts +8 -9
  140. package/src/models/comment.ts +29 -40
  141. package/src/models/event.ts +54 -4
  142. package/src/models/file.ts +53 -12
  143. package/src/models/folder.ts +3 -2
  144. package/src/models/labChat.ts +9 -8
  145. package/src/models/school.ts +361 -0
  146. package/src/models/section.ts +3 -2
  147. package/src/models/worksheet.ts +61 -12
  148. package/src/routers/_app.ts +2 -0
  149. package/src/routers/announcement.ts +30 -4
  150. package/src/routers/assignment.ts +46 -9
  151. package/src/routers/class.ts +1 -0
  152. package/src/routers/school.ts +122 -0
  153. package/src/routers/worksheet.ts +18 -0
  154. package/src/services/announcement.ts +12 -4
  155. package/src/services/assignment.ts +47 -1
  156. package/src/services/class.ts +61 -14
  157. package/src/services/comment.ts +10 -1
  158. package/src/services/event.ts +23 -6
  159. package/src/services/file.ts +20 -6
  160. package/src/services/school.ts +308 -0
  161. package/src/services/worksheet.ts +46 -0
  162. package/dist/lib/notificationHandler.d.ts +0 -25
  163. package/dist/lib/notificationHandler.d.ts.map +0 -1
  164. package/dist/lib/notificationHandler.js +0 -32
  165. package/dist/lib/notificationHandler.js.map +0 -1
  166. package/dist/server/pipelines/aiLabChat.d.ts +0 -21
  167. package/dist/server/pipelines/aiLabChat.d.ts.map +0 -1
  168. package/dist/server/pipelines/aiLabChat.js +0 -456
  169. package/dist/server/pipelines/aiLabChat.js.map +0 -1
  170. package/dist/server/pipelines/aiNewtonChat.d.ts +0 -30
  171. package/dist/server/pipelines/aiNewtonChat.d.ts.map +0 -1
  172. package/dist/server/pipelines/aiNewtonChat.js +0 -285
  173. package/dist/server/pipelines/aiNewtonChat.js.map +0 -1
  174. package/dist/server/pipelines/gradeWorksheet.d.ts +0 -30
  175. package/dist/server/pipelines/gradeWorksheet.d.ts.map +0 -1
  176. package/dist/server/pipelines/gradeWorksheet.js +0 -248
  177. package/dist/server/pipelines/gradeWorksheet.js.map +0 -1
@@ -115,6 +115,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
115
115
  returned: boolean | null | undefined;
116
116
  type: import(".prisma/client").$Enums.AssignmentType;
117
117
  id: string;
118
+ createdAt: Date | null;
119
+ section: {
120
+ name: string;
121
+ id: string;
122
+ } | null;
118
123
  submissions: {
119
124
  id: string;
120
125
  studentId: string;
@@ -125,11 +130,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
125
130
  submitted: boolean | null;
126
131
  returned: boolean | null;
127
132
  }[];
128
- section: {
129
- name: string;
130
- id: string;
131
- } | null;
132
- createdAt: Date | null;
133
133
  title: string;
134
134
  instructions: string;
135
135
  dueDate: Date;
@@ -162,7 +162,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
162
162
  } | null;
163
163
  };
164
164
  }[];
165
- students: {
165
+ teachers: {
166
166
  id: string;
167
167
  username: string;
168
168
  profile: {
@@ -171,7 +171,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
171
171
  profilePictureThumbnail: string | null;
172
172
  } | null;
173
173
  }[];
174
- teachers: {
174
+ students: {
175
175
  id: string;
176
176
  username: string;
177
177
  profile: {
@@ -214,11 +214,31 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
214
214
  name: string;
215
215
  subject: string;
216
216
  section: string;
217
+ schoolId?: string | undefined;
217
218
  color?: string | undefined;
218
- students?: string[] | undefined;
219
219
  teachers?: string[] | undefined;
220
+ students?: string[] | undefined;
220
221
  };
221
222
  output: {
223
+ teachers: {
224
+ id: string;
225
+ username: string;
226
+ email: string;
227
+ password: string;
228
+ verified: boolean;
229
+ role: import(".prisma/client").$Enums.UserRole;
230
+ schoolId: string | null;
231
+ }[];
232
+ students: {
233
+ id: string;
234
+ username: string;
235
+ email: string;
236
+ password: string;
237
+ verified: boolean;
238
+ role: import(".prisma/client").$Enums.UserRole;
239
+ schoolId: string | null;
240
+ }[];
241
+ } & {
222
242
  name: string;
223
243
  id: string;
224
244
  schoolId: string | null;
@@ -376,8 +396,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
376
396
  };
377
397
  } & {
378
398
  id: string;
379
- assignmentId: string;
380
399
  createdAt: Date;
400
+ assignmentId: string;
381
401
  modifiedAt: Date;
382
402
  studentId: string;
383
403
  extendedResponse: string | null;
@@ -411,8 +431,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
411
431
  };
412
432
  } & {
413
433
  id: string;
414
- assignmentId: string;
415
434
  createdAt: Date;
435
+ assignmentId: string;
416
436
  modifiedAt: Date;
417
437
  studentId: string;
418
438
  extendedResponse: string | null;
@@ -789,13 +809,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
789
809
  type: string;
790
810
  name: string;
791
811
  id: string;
792
- size: number | null;
793
- uploadedAt: Date | null;
794
- thumbnailId: string | null;
795
812
  user: {
796
813
  id: string;
797
814
  username: string;
798
815
  } | null;
816
+ size: number | null;
817
+ uploadedAt: Date | null;
818
+ thumbnailId: string | null;
799
819
  }[];
800
820
  students: {
801
821
  id: string;
@@ -805,26 +825,26 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
805
825
  type: string;
806
826
  name: string;
807
827
  id: string;
808
- size: number | null;
809
- uploadedAt: Date | null;
810
- thumbnailId: string | null;
811
828
  user: {
812
829
  id: string;
813
830
  username: string;
814
831
  } | null;
832
+ size: number | null;
833
+ uploadedAt: Date | null;
834
+ thumbnailId: string | null;
815
835
  }[];
816
836
  annotations: {
817
837
  path: string;
818
838
  type: string;
819
839
  name: string;
820
840
  id: string;
821
- size: number | null;
822
- uploadedAt: Date | null;
823
- thumbnailId: string | null;
824
841
  user: {
825
842
  id: string;
826
843
  username: string;
827
844
  } | null;
845
+ size: number | null;
846
+ uploadedAt: Date | null;
847
+ thumbnailId: string | null;
828
848
  }[];
829
849
  }[];
830
850
  }[];
@@ -840,11 +860,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
840
860
  assignments: {
841
861
  type: import(".prisma/client").$Enums.AssignmentType;
842
862
  id: string;
863
+ createdAt: Date | null;
843
864
  section: {
844
865
  name: string;
845
866
  id: string;
846
867
  } | null;
847
- createdAt: Date | null;
848
868
  classId: string;
849
869
  title: string;
850
870
  instructions: string;
@@ -1164,10 +1184,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1164
1184
  } & {
1165
1185
  status: import(".prisma/client").$Enums.GenerationStatus | null;
1166
1186
  id: string;
1187
+ createdAt: Date;
1167
1188
  assignmentId: string | null;
1168
1189
  submissionId: string | null;
1169
1190
  announcementId: string | null;
1170
- createdAt: Date;
1171
1191
  modifiedAt: Date | null;
1172
1192
  content: string;
1173
1193
  authorId: string;
@@ -1196,10 +1216,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1196
1216
  } & {
1197
1217
  status: import(".prisma/client").$Enums.GenerationStatus | null;
1198
1218
  id: string;
1219
+ createdAt: Date;
1199
1220
  assignmentId: string | null;
1200
1221
  submissionId: string | null;
1201
1222
  announcementId: string | null;
1202
- createdAt: Date;
1203
1223
  modifiedAt: Date | null;
1204
1224
  content: string;
1205
1225
  authorId: string;
@@ -1248,10 +1268,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1248
1268
  } & {
1249
1269
  status: import(".prisma/client").$Enums.GenerationStatus | null;
1250
1270
  id: string;
1271
+ createdAt: Date;
1251
1272
  assignmentId: string | null;
1252
1273
  submissionId: string | null;
1253
1274
  announcementId: string | null;
1254
- createdAt: Date;
1255
1275
  modifiedAt: Date | null;
1256
1276
  content: string;
1257
1277
  authorId: string;
@@ -1261,10 +1281,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1261
1281
  } & {
1262
1282
  status: import(".prisma/client").$Enums.GenerationStatus | null;
1263
1283
  id: string;
1284
+ createdAt: Date;
1264
1285
  assignmentId: string | null;
1265
1286
  submissionId: string | null;
1266
1287
  announcementId: string | null;
1267
- createdAt: Date;
1268
1288
  modifiedAt: Date | null;
1269
1289
  content: string;
1270
1290
  authorId: string;
@@ -1296,9 +1316,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1296
1316
  } & {
1297
1317
  type: import(".prisma/client").$Enums.ReactionType;
1298
1318
  id: string;
1319
+ createdAt: Date;
1299
1320
  userId: string;
1300
1321
  announcementId: string | null;
1301
- createdAt: Date;
1302
1322
  commentId: string | null;
1303
1323
  };
1304
1324
  };
@@ -1493,6 +1513,41 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1493
1513
  };
1494
1514
  meta: object;
1495
1515
  }>;
1516
+ duplicateAssignment: import("@trpc/server").TRPCMutationProcedure<{
1517
+ input: {
1518
+ [x: string]: unknown;
1519
+ classId: string;
1520
+ assignmentId: string;
1521
+ title: string;
1522
+ };
1523
+ output: {
1524
+ type: import(".prisma/client").$Enums.AssignmentType;
1525
+ id: string;
1526
+ createdAt: Date | null;
1527
+ modifiedAt: Date | null;
1528
+ classId: string;
1529
+ title: string;
1530
+ instructions: string;
1531
+ dueDate: Date;
1532
+ teacherId: string;
1533
+ acceptFiles: boolean;
1534
+ acceptExtendedResponse: boolean;
1535
+ acceptWorksheet: boolean;
1536
+ gradeWithAI: boolean;
1537
+ aiPolicyLevel: number;
1538
+ sectionId: string | null;
1539
+ graded: boolean;
1540
+ maxGrade: number | null;
1541
+ weight: number;
1542
+ inProgress: boolean;
1543
+ template: boolean;
1544
+ eventId: string | null;
1545
+ markSchemeId: string | null;
1546
+ order: number | null;
1547
+ gradingBoundaryId: string | null;
1548
+ };
1549
+ meta: object;
1550
+ }>;
1496
1551
  update: import("@trpc/server").TRPCMutationProcedure<{
1497
1552
  input: {
1498
1553
  [x: string]: unknown;
@@ -1525,12 +1580,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1525
1580
  output: {
1526
1581
  type: import(".prisma/client").$Enums.AssignmentType;
1527
1582
  id: string;
1528
- submissions: {
1529
- student: {
1530
- id: string;
1531
- username: string;
1532
- };
1533
- }[];
1583
+ createdAt: Date | null;
1534
1584
  class: {
1535
1585
  name: string;
1536
1586
  id: string;
@@ -1547,7 +1597,12 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1547
1597
  classId: string;
1548
1598
  order: number | null;
1549
1599
  } | null;
1550
- createdAt: Date | null;
1600
+ submissions: {
1601
+ student: {
1602
+ id: string;
1603
+ username: string;
1604
+ };
1605
+ }[];
1551
1606
  title: string;
1552
1607
  instructions: string;
1553
1608
  dueDate: Date;
@@ -1577,8 +1632,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1577
1632
  type: string;
1578
1633
  name: string;
1579
1634
  id: string;
1580
- size: number | null;
1581
1635
  userId: string | null;
1636
+ size: number | null;
1582
1637
  uploadedAt: Date | null;
1583
1638
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1584
1639
  uploadUrl: string | null;
@@ -1625,12 +1680,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1625
1680
  name: string;
1626
1681
  id: string;
1627
1682
  }[];
1628
- submissions: {
1629
- student: {
1630
- id: string;
1631
- username: string;
1632
- };
1633
- }[];
1634
1683
  class: {
1635
1684
  name: string;
1636
1685
  id: string;
@@ -1639,6 +1688,12 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1639
1688
  name: string;
1640
1689
  id: string;
1641
1690
  } | null;
1691
+ submissions: {
1692
+ student: {
1693
+ id: string;
1694
+ username: string;
1695
+ };
1696
+ }[];
1642
1697
  markScheme: {
1643
1698
  id: string;
1644
1699
  structured: string;
@@ -1761,8 +1816,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1761
1816
  type: string;
1762
1817
  name: string;
1763
1818
  id: string;
1764
- size: number | null;
1765
1819
  userId: string | null;
1820
+ size: number | null;
1766
1821
  uploadedAt: Date | null;
1767
1822
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1768
1823
  uploadUrl: string | null;
@@ -1789,8 +1844,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1789
1844
  type: string;
1790
1845
  name: string;
1791
1846
  id: string;
1792
- size: number | null;
1793
1847
  userId: string | null;
1848
+ size: number | null;
1794
1849
  uploadedAt: Date | null;
1795
1850
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1796
1851
  uploadUrl: string | null;
@@ -1817,8 +1872,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1817
1872
  username: string;
1818
1873
  };
1819
1874
  id: string;
1820
- assignmentId: string;
1821
1875
  createdAt: Date;
1876
+ assignmentId: string;
1822
1877
  modifiedAt: Date;
1823
1878
  studentId: string;
1824
1879
  extendedResponse: string | null;
@@ -1895,8 +1950,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1895
1950
  type: string;
1896
1951
  name: string;
1897
1952
  id: string;
1898
- size: number | null;
1899
1953
  userId: string | null;
1954
+ size: number | null;
1900
1955
  uploadedAt: Date | null;
1901
1956
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1902
1957
  uploadUrl: string | null;
@@ -1923,8 +1978,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1923
1978
  type: string;
1924
1979
  name: string;
1925
1980
  id: string;
1926
- size: number | null;
1927
1981
  userId: string | null;
1982
+ size: number | null;
1928
1983
  uploadedAt: Date | null;
1929
1984
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1930
1985
  uploadUrl: string | null;
@@ -1951,10 +2006,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1951
2006
  username: string;
1952
2007
  profile: {
1953
2008
  id: string;
1954
- userId: string;
1955
2009
  createdAt: Date;
1956
- location: string | null;
1957
2010
  updatedAt: Date;
2011
+ userId: string;
2012
+ location: string | null;
1958
2013
  displayName: string | null;
1959
2014
  bio: string | null;
1960
2015
  website: string | null;
@@ -1963,8 +2018,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1963
2018
  } | null;
1964
2019
  };
1965
2020
  id: string;
1966
- assignmentId: string;
1967
2021
  createdAt: Date;
2022
+ assignmentId: string;
1968
2023
  modifiedAt: Date;
1969
2024
  studentId: string;
1970
2025
  extendedResponse: string | null;
@@ -2046,8 +2101,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2046
2101
  type: string;
2047
2102
  name: string;
2048
2103
  id: string;
2049
- size: number | null;
2050
2104
  userId: string | null;
2105
+ size: number | null;
2051
2106
  uploadedAt: Date | null;
2052
2107
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
2053
2108
  uploadUrl: string | null;
@@ -2075,8 +2130,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2075
2130
  };
2076
2131
  } & {
2077
2132
  id: string;
2078
- assignmentId: string;
2079
2133
  createdAt: Date;
2134
+ assignmentId: string;
2080
2135
  modifiedAt: Date;
2081
2136
  studentId: string;
2082
2137
  extendedResponse: string | null;
@@ -2150,8 +2205,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2150
2205
  type: string;
2151
2206
  name: string;
2152
2207
  id: string;
2153
- size: number | null;
2154
2208
  userId: string | null;
2209
+ size: number | null;
2155
2210
  uploadedAt: Date | null;
2156
2211
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
2157
2212
  uploadUrl: string | null;
@@ -2178,8 +2233,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2178
2233
  type: string;
2179
2234
  name: string;
2180
2235
  id: string;
2181
- size: number | null;
2182
2236
  userId: string | null;
2237
+ size: number | null;
2183
2238
  uploadedAt: Date | null;
2184
2239
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
2185
2240
  uploadUrl: string | null;
@@ -2211,8 +2266,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2211
2266
  } | null;
2212
2267
  };
2213
2268
  id: string;
2214
- assignmentId: string;
2215
2269
  createdAt: Date;
2270
+ assignmentId: string;
2216
2271
  modifiedAt: Date;
2217
2272
  studentId: string;
2218
2273
  extendedResponse: string | null;
@@ -2258,10 +2313,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2258
2313
  } & {
2259
2314
  status: import(".prisma/client").$Enums.GenerationStatus | null;
2260
2315
  id: string;
2316
+ createdAt: Date;
2261
2317
  assignmentId: string | null;
2262
2318
  submissionId: string | null;
2263
2319
  announcementId: string | null;
2264
- createdAt: Date;
2265
2320
  modifiedAt: Date | null;
2266
2321
  content: string;
2267
2322
  authorId: string;
@@ -2271,10 +2326,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2271
2326
  } & {
2272
2327
  status: import(".prisma/client").$Enums.GenerationStatus | null;
2273
2328
  id: string;
2329
+ createdAt: Date;
2274
2330
  assignmentId: string | null;
2275
2331
  submissionId: string | null;
2276
2332
  announcementId: string | null;
2277
- createdAt: Date;
2278
2333
  modifiedAt: Date | null;
2279
2334
  content: string;
2280
2335
  authorId: string;
@@ -2316,10 +2371,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2316
2371
  } & {
2317
2372
  status: import(".prisma/client").$Enums.GenerationStatus | null;
2318
2373
  id: string;
2374
+ createdAt: Date;
2319
2375
  assignmentId: string | null;
2320
2376
  submissionId: string | null;
2321
2377
  announcementId: string | null;
2322
- createdAt: Date;
2323
2378
  modifiedAt: Date | null;
2324
2379
  content: string;
2325
2380
  authorId: string;
@@ -2329,10 +2384,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2329
2384
  } & {
2330
2385
  status: import(".prisma/client").$Enums.GenerationStatus | null;
2331
2386
  id: string;
2387
+ createdAt: Date;
2332
2388
  assignmentId: string | null;
2333
2389
  submissionId: string | null;
2334
2390
  announcementId: string | null;
2335
- createdAt: Date;
2336
2391
  modifiedAt: Date | null;
2337
2392
  content: string;
2338
2393
  authorId: string;
@@ -2373,10 +2428,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2373
2428
  } & {
2374
2429
  status: import(".prisma/client").$Enums.GenerationStatus | null;
2375
2430
  id: string;
2431
+ createdAt: Date;
2376
2432
  assignmentId: string | null;
2377
2433
  submissionId: string | null;
2378
2434
  announcementId: string | null;
2379
- createdAt: Date;
2380
2435
  modifiedAt: Date | null;
2381
2436
  content: string;
2382
2437
  authorId: string;
@@ -2386,10 +2441,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2386
2441
  } & {
2387
2442
  status: import(".prisma/client").$Enums.GenerationStatus | null;
2388
2443
  id: string;
2444
+ createdAt: Date;
2389
2445
  assignmentId: string | null;
2390
2446
  submissionId: string | null;
2391
2447
  announcementId: string | null;
2392
- createdAt: Date;
2393
2448
  modifiedAt: Date | null;
2394
2449
  content: string;
2395
2450
  authorId: string;
@@ -2432,10 +2487,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2432
2487
  } & {
2433
2488
  status: import(".prisma/client").$Enums.GenerationStatus | null;
2434
2489
  id: string;
2490
+ createdAt: Date;
2435
2491
  assignmentId: string | null;
2436
2492
  submissionId: string | null;
2437
2493
  announcementId: string | null;
2438
- createdAt: Date;
2439
2494
  modifiedAt: Date | null;
2440
2495
  content: string;
2441
2496
  authorId: string;
@@ -2445,10 +2500,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2445
2500
  } & {
2446
2501
  status: import(".prisma/client").$Enums.GenerationStatus | null;
2447
2502
  id: string;
2503
+ createdAt: Date;
2448
2504
  assignmentId: string | null;
2449
2505
  submissionId: string | null;
2450
2506
  announcementId: string | null;
2451
- createdAt: Date;
2452
2507
  modifiedAt: Date | null;
2453
2508
  content: string;
2454
2509
  authorId: string;
@@ -2532,8 +2587,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2532
2587
  type: string;
2533
2588
  name: string;
2534
2589
  id: string;
2535
- size: number | null;
2536
2590
  userId: string | null;
2591
+ size: number | null;
2537
2592
  uploadedAt: Date | null;
2538
2593
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
2539
2594
  uploadUrl: string | null;
@@ -2560,8 +2615,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2560
2615
  type: string;
2561
2616
  name: string;
2562
2617
  id: string;
2563
- size: number | null;
2564
2618
  userId: string | null;
2619
+ size: number | null;
2565
2620
  uploadedAt: Date | null;
2566
2621
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
2567
2622
  uploadUrl: string | null;
@@ -2589,8 +2644,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2589
2644
  type: string;
2590
2645
  name: string;
2591
2646
  id: string;
2592
- size: number | null;
2593
2647
  userId: string | null;
2648
+ size: number | null;
2594
2649
  uploadedAt: Date | null;
2595
2650
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
2596
2651
  uploadUrl: string | null;
@@ -2617,8 +2672,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2617
2672
  type: string;
2618
2673
  name: string;
2619
2674
  id: string;
2620
- size: number | null;
2621
2675
  userId: string | null;
2676
+ size: number | null;
2622
2677
  uploadedAt: Date | null;
2623
2678
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
2624
2679
  uploadUrl: string | null;
@@ -2651,8 +2706,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2651
2706
  };
2652
2707
  } & {
2653
2708
  id: string;
2654
- assignmentId: string;
2655
2709
  createdAt: Date;
2710
+ assignmentId: string;
2656
2711
  modifiedAt: Date;
2657
2712
  studentId: string;
2658
2713
  extendedResponse: string | null;
@@ -2852,8 +2907,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2852
2907
  type: string;
2853
2908
  name: string;
2854
2909
  id: string;
2855
- size: number | null;
2856
2910
  userId: string | null;
2911
+ size: number | null;
2857
2912
  uploadedAt: Date | null;
2858
2913
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
2859
2914
  uploadUrl: string | null;
@@ -2947,8 +3002,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2947
3002
  type: string;
2948
3003
  name: string;
2949
3004
  id: string;
2950
- size: number | null;
2951
3005
  userId: string | null;
3006
+ size: number | null;
2952
3007
  uploadedAt: Date | null;
2953
3008
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
2954
3009
  uploadUrl: string | null;
@@ -3043,8 +3098,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3043
3098
  type: string;
3044
3099
  name: string;
3045
3100
  id: string;
3046
- size: number | null;
3047
3101
  userId: string | null;
3102
+ size: number | null;
3048
3103
  uploadedAt: Date | null;
3049
3104
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
3050
3105
  uploadUrl: string | null;
@@ -3138,8 +3193,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3138
3193
  type: string;
3139
3194
  name: string;
3140
3195
  id: string;
3141
- size: number | null;
3142
3196
  userId: string | null;
3197
+ size: number | null;
3143
3198
  uploadedAt: Date | null;
3144
3199
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
3145
3200
  uploadUrl: string | null;
@@ -3642,7 +3697,26 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3642
3697
  role: import(".prisma/client").$Enums.UserRole;
3643
3698
  schoolId: string | null;
3644
3699
  } | null;
3645
- class: {
3700
+ class: ({
3701
+ school: ({
3702
+ users: {
3703
+ id: string;
3704
+ }[];
3705
+ memberships: {
3706
+ userId: string;
3707
+ }[];
3708
+ } & {
3709
+ name: string;
3710
+ id: string;
3711
+ logoId: string | null;
3712
+ subdomain: string | null;
3713
+ createdAt: Date;
3714
+ updatedAt: Date;
3715
+ }) | null;
3716
+ teachers: {
3717
+ id: string;
3718
+ }[];
3719
+ } & {
3646
3720
  name: string;
3647
3721
  id: string;
3648
3722
  schoolId: string | null;
@@ -3650,7 +3724,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3650
3724
  color: string | null;
3651
3725
  section: string;
3652
3726
  syllabus: string | null;
3653
- } | null;
3727
+ }) | null;
3654
3728
  assignmentsAttached: {
3655
3729
  type: import(".prisma/client").$Enums.AssignmentType;
3656
3730
  id: string;
@@ -4169,8 +4243,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4169
4243
  type: string;
4170
4244
  name: string;
4171
4245
  id: string;
4172
- size: number | null;
4173
4246
  userId: string | null;
4247
+ size: number | null;
4174
4248
  uploadedAt: Date | null;
4175
4249
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
4176
4250
  uploadUrl: string | null;
@@ -4211,8 +4285,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4211
4285
  type: string;
4212
4286
  name: string;
4213
4287
  id: string;
4214
- size: number | null;
4215
4288
  userId: string | null;
4289
+ size: number | null;
4216
4290
  uploadedAt: Date | null;
4217
4291
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
4218
4292
  uploadUrl: string | null;
@@ -4278,21 +4352,21 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4278
4352
  type: string;
4279
4353
  name: string;
4280
4354
  id: string;
4281
- size: number | null;
4282
- uploadedAt: Date | null;
4283
4355
  user: {
4284
4356
  id: string;
4285
4357
  username: string;
4286
4358
  } | null;
4359
+ size: number | null;
4360
+ uploadedAt: Date | null;
4287
4361
  }[];
4288
4362
  childFolders: {
4289
4363
  name: string;
4290
4364
  id: string;
4365
+ color: string | null;
4291
4366
  _count: {
4292
4367
  files: number;
4293
4368
  childFolders: number;
4294
4369
  };
4295
- color: string | null;
4296
4370
  }[];
4297
4371
  } & {
4298
4372
  name: string;
@@ -4314,21 +4388,21 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4314
4388
  type: string;
4315
4389
  name: string;
4316
4390
  id: string;
4317
- size: number | null;
4318
- uploadedAt: Date | null;
4319
4391
  user: {
4320
4392
  id: string;
4321
4393
  username: string;
4322
4394
  } | null;
4395
+ size: number | null;
4396
+ uploadedAt: Date | null;
4323
4397
  }[];
4324
4398
  childFolders: {
4325
4399
  name: string;
4326
4400
  id: string;
4401
+ color: string | null;
4327
4402
  _count: {
4328
4403
  files: number;
4329
4404
  childFolders: number;
4330
4405
  };
4331
- color: string | null;
4332
4406
  }[];
4333
4407
  parentFolder: {
4334
4408
  name: string;
@@ -4353,21 +4427,21 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4353
4427
  type: string;
4354
4428
  name: string;
4355
4429
  id: string;
4356
- size: number | null;
4357
- uploadedAt: Date | null;
4358
4430
  user: {
4359
4431
  id: string;
4360
4432
  username: string;
4361
4433
  } | null;
4434
+ size: number | null;
4435
+ uploadedAt: Date | null;
4362
4436
  }[];
4363
4437
  childFolders: {
4364
4438
  name: string;
4365
4439
  id: string;
4440
+ color: string | null;
4366
4441
  _count: {
4367
4442
  files: number;
4368
4443
  childFolders: number;
4369
4444
  };
4370
- color: string | null;
4371
4445
  }[];
4372
4446
  } & {
4373
4447
  name: string;
@@ -4389,21 +4463,21 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4389
4463
  type: string;
4390
4464
  name: string;
4391
4465
  id: string;
4392
- size: number | null;
4393
- uploadedAt: Date | null;
4394
4466
  user: {
4395
4467
  id: string;
4396
4468
  username: string;
4397
4469
  } | null;
4470
+ size: number | null;
4471
+ uploadedAt: Date | null;
4398
4472
  }[];
4399
4473
  childFolders: {
4400
4474
  name: string;
4401
4475
  id: string;
4476
+ color: string | null;
4402
4477
  _count: {
4403
4478
  files: number;
4404
4479
  childFolders: number;
4405
4480
  };
4406
- color: string | null;
4407
4481
  }[];
4408
4482
  } & {
4409
4483
  name: string;
@@ -4424,24 +4498,24 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4424
4498
  type: string;
4425
4499
  name: string;
4426
4500
  id: string;
4427
- size: number | null;
4428
- uploadedAt: Date | null;
4429
4501
  user: {
4430
4502
  id: string;
4431
4503
  username: string;
4432
4504
  } | null;
4505
+ size: number | null;
4506
+ uploadedAt: Date | null;
4433
4507
  }[];
4434
4508
  childFolders: {
4435
4509
  name: string;
4436
4510
  id: string;
4437
- files: {
4438
- id: string;
4439
- }[];
4511
+ color: string | null;
4440
4512
  _count: {
4441
4513
  files: number;
4442
4514
  childFolders: number;
4443
4515
  };
4444
- color: string | null;
4516
+ files: {
4517
+ id: string;
4518
+ }[];
4445
4519
  childFolders: {
4446
4520
  id: string;
4447
4521
  }[];
@@ -4497,21 +4571,21 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4497
4571
  type: string;
4498
4572
  name: string;
4499
4573
  id: string;
4500
- size: number | null;
4501
- uploadedAt: Date | null;
4502
4574
  user: {
4503
4575
  id: string;
4504
4576
  username: string;
4505
4577
  } | null;
4578
+ size: number | null;
4579
+ uploadedAt: Date | null;
4506
4580
  }[];
4507
4581
  childFolders: {
4508
4582
  name: string;
4509
4583
  id: string;
4584
+ color: string | null;
4510
4585
  _count: {
4511
4586
  files: number;
4512
4587
  childFolders: number;
4513
4588
  };
4514
- color: string | null;
4515
4589
  }[];
4516
4590
  } & {
4517
4591
  name: string;
@@ -4535,21 +4609,21 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4535
4609
  type: string;
4536
4610
  name: string;
4537
4611
  id: string;
4538
- size: number | null;
4539
- uploadedAt: Date | null;
4540
4612
  user: {
4541
4613
  id: string;
4542
4614
  username: string;
4543
4615
  } | null;
4616
+ size: number | null;
4617
+ uploadedAt: Date | null;
4544
4618
  }[];
4545
4619
  childFolders: {
4546
4620
  name: string;
4547
4621
  id: string;
4622
+ color: string | null;
4548
4623
  _count: {
4549
4624
  files: number;
4550
4625
  childFolders: number;
4551
4626
  };
4552
- color: string | null;
4553
4627
  }[];
4554
4628
  } & {
4555
4629
  name: string;
@@ -4748,9 +4822,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4748
4822
  };
4749
4823
  } & {
4750
4824
  id: string;
4825
+ role: import(".prisma/client").$Enums.ConversationRole;
4751
4826
  userId: string;
4752
4827
  conversationId: string;
4753
- role: import(".prisma/client").$Enums.ConversationRole;
4754
4828
  joinedAt: Date;
4755
4829
  hiddenAt: Date | null;
4756
4830
  lastViewedAt: Date | null;
@@ -4768,8 +4842,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4768
4842
  status: import(".prisma/client").$Enums.GenerationStatus | null;
4769
4843
  meta: import("@prisma/client/runtime/library.js").JsonValue | null;
4770
4844
  id: string;
4771
- conversationId: string;
4772
4845
  createdAt: Date;
4846
+ conversationId: string;
4773
4847
  content: string;
4774
4848
  senderId: string;
4775
4849
  };
@@ -4796,9 +4870,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4796
4870
  };
4797
4871
  } & {
4798
4872
  id: string;
4873
+ role: import(".prisma/client").$Enums.ConversationRole;
4799
4874
  userId: string;
4800
4875
  conversationId: string;
4801
- role: import(".prisma/client").$Enums.ConversationRole;
4802
4876
  joinedAt: Date;
4803
4877
  hiddenAt: Date | null;
4804
4878
  lastViewedAt: Date | null;
@@ -4830,9 +4904,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4830
4904
  };
4831
4905
  } & {
4832
4906
  id: string;
4907
+ role: import(".prisma/client").$Enums.ConversationRole;
4833
4908
  userId: string;
4834
4909
  conversationId: string;
4835
- role: import(".prisma/client").$Enums.ConversationRole;
4836
4910
  joinedAt: Date;
4837
4911
  hiddenAt: Date | null;
4838
4912
  lastViewedAt: Date | null;
@@ -4874,9 +4948,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4874
4948
  };
4875
4949
  } & {
4876
4950
  id: string;
4951
+ role: import(".prisma/client").$Enums.ConversationRole;
4877
4952
  userId: string;
4878
4953
  conversationId: string;
4879
- role: import(".prisma/client").$Enums.ConversationRole;
4880
4954
  joinedAt: Date;
4881
4955
  hiddenAt: Date | null;
4882
4956
  lastViewedAt: Date | null;
@@ -4909,9 +4983,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4909
4983
  };
4910
4984
  } & {
4911
4985
  id: string;
4986
+ role: import(".prisma/client").$Enums.ConversationRole;
4912
4987
  userId: string;
4913
4988
  conversationId: string;
4914
- role: import(".prisma/client").$Enums.ConversationRole;
4915
4989
  joinedAt: Date;
4916
4990
  hiddenAt: Date | null;
4917
4991
  lastViewedAt: Date | null;
@@ -5158,9 +5232,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5158
5232
  };
5159
5233
  } & {
5160
5234
  id: string;
5235
+ role: import(".prisma/client").$Enums.ConversationRole;
5161
5236
  userId: string;
5162
5237
  conversationId: string;
5163
- role: import(".prisma/client").$Enums.ConversationRole;
5164
5238
  joinedAt: Date;
5165
5239
  hiddenAt: Date | null;
5166
5240
  lastViewedAt: Date | null;
@@ -5184,11 +5258,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5184
5258
  } & {
5185
5259
  context: string;
5186
5260
  id: string;
5187
- conversationId: string;
5188
5261
  createdAt: Date;
5262
+ updatedAt: Date;
5263
+ conversationId: string;
5189
5264
  classId: string;
5190
5265
  title: string;
5191
- updatedAt: Date;
5192
5266
  createdById: string;
5193
5267
  };
5194
5268
  meta: object;
@@ -5217,9 +5291,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5217
5291
  };
5218
5292
  } & {
5219
5293
  id: string;
5294
+ role: import(".prisma/client").$Enums.ConversationRole;
5220
5295
  userId: string;
5221
5296
  conversationId: string;
5222
- role: import(".prisma/client").$Enums.ConversationRole;
5223
5297
  joinedAt: Date;
5224
5298
  hiddenAt: Date | null;
5225
5299
  lastViewedAt: Date | null;
@@ -5243,11 +5317,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5243
5317
  };
5244
5318
  context: string;
5245
5319
  id: string;
5246
- conversationId: string;
5247
5320
  createdAt: Date;
5321
+ updatedAt: Date;
5322
+ conversationId: string;
5248
5323
  classId: string;
5249
5324
  title: string;
5250
- updatedAt: Date;
5251
5325
  createdById: string;
5252
5326
  };
5253
5327
  meta: object;
@@ -5282,8 +5356,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5282
5356
  status: import(".prisma/client").$Enums.GenerationStatus | null;
5283
5357
  meta: import("@prisma/client/runtime/library.js").JsonValue | null;
5284
5358
  id: string;
5285
- conversationId: string;
5286
5359
  createdAt: Date;
5360
+ conversationId: string;
5287
5361
  content: string;
5288
5362
  senderId: string;
5289
5363
  };
@@ -5513,9 +5587,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5513
5587
  options: import("@prisma/client/runtime/library.js").JsonValue | null;
5514
5588
  id: string;
5515
5589
  createdAt: Date;
5590
+ updatedAt: Date;
5516
5591
  order: number | null;
5517
5592
  points: number;
5518
- updatedAt: Date;
5519
5593
  worksheetId: string;
5520
5594
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
5521
5595
  question: string;
@@ -5525,8 +5599,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5525
5599
  name: string;
5526
5600
  id: string;
5527
5601
  createdAt: Date;
5528
- classId: string;
5529
5602
  updatedAt: Date;
5603
+ classId: string;
5530
5604
  };
5531
5605
  meta: object;
5532
5606
  }>;
@@ -5552,8 +5626,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5552
5626
  name: string;
5553
5627
  id: string;
5554
5628
  createdAt: Date;
5555
- classId: string;
5556
5629
  updatedAt: Date;
5630
+ classId: string;
5557
5631
  }[];
5558
5632
  meta: object;
5559
5633
  }>;
@@ -5566,8 +5640,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5566
5640
  name: string;
5567
5641
  id: string;
5568
5642
  createdAt: Date;
5569
- classId: string;
5570
5643
  updatedAt: Date;
5644
+ classId: string;
5571
5645
  };
5572
5646
  meta: object;
5573
5647
  }>;
@@ -5579,8 +5653,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5579
5653
  name: string;
5580
5654
  id: string;
5581
5655
  createdAt: Date;
5582
- classId: string;
5583
5656
  updatedAt: Date;
5657
+ classId: string;
5584
5658
  };
5585
5659
  meta: object;
5586
5660
  }>;
@@ -5594,8 +5668,24 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5594
5668
  name: string;
5595
5669
  id: string;
5596
5670
  createdAt: Date;
5671
+ updatedAt: Date;
5672
+ classId: string;
5673
+ };
5674
+ meta: object;
5675
+ }>;
5676
+ duplicateWorksheet: import("@trpc/server").TRPCMutationProcedure<{
5677
+ input: {
5678
+ [x: string]: unknown;
5597
5679
  classId: string;
5680
+ name: string;
5681
+ worksheetId: string;
5682
+ };
5683
+ output: {
5684
+ name: string;
5685
+ id: string;
5686
+ createdAt: Date;
5598
5687
  updatedAt: Date;
5688
+ classId: string;
5599
5689
  };
5600
5690
  meta: object;
5601
5691
  }>;
@@ -5609,8 +5699,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5609
5699
  name: string;
5610
5700
  id: string;
5611
5701
  createdAt: Date;
5612
- classId: string;
5613
5702
  updatedAt: Date;
5703
+ classId: string;
5614
5704
  };
5615
5705
  meta: object;
5616
5706
  }>;
@@ -5654,8 +5744,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5654
5744
  name: string;
5655
5745
  id: string;
5656
5746
  createdAt: Date;
5657
- classId: string;
5658
5747
  updatedAt: Date;
5748
+ classId: string;
5659
5749
  };
5660
5750
  meta: object;
5661
5751
  }>;
@@ -5674,9 +5764,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5674
5764
  options: import("@prisma/client/runtime/library.js").JsonValue | null;
5675
5765
  id: string;
5676
5766
  createdAt: Date;
5767
+ updatedAt: Date;
5677
5768
  order: number | null;
5678
5769
  points: number;
5679
- updatedAt: Date;
5680
5770
  worksheetId: string;
5681
5771
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
5682
5772
  question: string;
@@ -5712,9 +5802,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5712
5802
  options: import("@prisma/client/runtime/library.js").JsonValue | null;
5713
5803
  id: string;
5714
5804
  createdAt: Date;
5805
+ updatedAt: Date;
5715
5806
  order: number | null;
5716
5807
  points: number;
5717
- updatedAt: Date;
5718
5808
  worksheetId: string;
5719
5809
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
5720
5810
  question: string;
@@ -5732,9 +5822,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5732
5822
  options: import("@prisma/client/runtime/library.js").JsonValue | null;
5733
5823
  id: string;
5734
5824
  createdAt: Date;
5825
+ updatedAt: Date;
5735
5826
  order: number | null;
5736
5827
  points: number;
5737
- updatedAt: Date;
5738
5828
  worksheetId: string;
5739
5829
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
5740
5830
  question: string;
@@ -5756,6 +5846,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5756
5846
  status: import(".prisma/client").$Enums.GenerationStatus | null;
5757
5847
  id: string;
5758
5848
  createdAt: Date;
5849
+ updatedAt: Date | null;
5759
5850
  studentId: string;
5760
5851
  questionId: string;
5761
5852
  response: string;
@@ -5763,17 +5854,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5763
5854
  markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
5764
5855
  points: number;
5765
5856
  feedback: string | null;
5766
- updatedAt: Date | null;
5767
5857
  studentWorksheetResponseId: string | null;
5768
5858
  })[];
5769
5859
  } & {
5770
5860
  id: string;
5771
- submissionId: string | null;
5772
5861
  createdAt: Date;
5862
+ updatedAt: Date;
5863
+ submissionId: string | null;
5773
5864
  studentId: string;
5774
5865
  submittedAt: Date | null;
5775
5866
  submitted: boolean;
5776
- updatedAt: Date;
5777
5867
  worksheetId: string;
5778
5868
  };
5779
5869
  meta: object;
@@ -5789,6 +5879,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5789
5879
  status: import(".prisma/client").$Enums.GenerationStatus | null;
5790
5880
  id: string;
5791
5881
  createdAt: Date;
5882
+ updatedAt: Date | null;
5792
5883
  studentId: string;
5793
5884
  questionId: string;
5794
5885
  response: string;
@@ -5796,17 +5887,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5796
5887
  markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
5797
5888
  points: number;
5798
5889
  feedback: string | null;
5799
- updatedAt: Date | null;
5800
5890
  studentWorksheetResponseId: string | null;
5801
5891
  }[];
5802
5892
  } & {
5803
5893
  id: string;
5804
- submissionId: string | null;
5805
5894
  createdAt: Date;
5895
+ updatedAt: Date;
5896
+ submissionId: string | null;
5806
5897
  studentId: string;
5807
5898
  submittedAt: Date | null;
5808
5899
  submitted: boolean;
5809
- updatedAt: Date;
5810
5900
  worksheetId: string;
5811
5901
  };
5812
5902
  meta: object;
@@ -5820,6 +5910,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5820
5910
  status: import(".prisma/client").$Enums.GenerationStatus | null;
5821
5911
  id: string;
5822
5912
  createdAt: Date;
5913
+ updatedAt: Date | null;
5823
5914
  studentId: string;
5824
5915
  questionId: string;
5825
5916
  response: string;
@@ -5827,7 +5918,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5827
5918
  markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
5828
5919
  points: number;
5829
5920
  feedback: string | null;
5830
- updatedAt: Date | null;
5831
5921
  studentWorksheetResponseId: string | null;
5832
5922
  };
5833
5923
  meta: object;
@@ -5841,6 +5931,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5841
5931
  status: import(".prisma/client").$Enums.GenerationStatus | null;
5842
5932
  id: string;
5843
5933
  createdAt: Date;
5934
+ updatedAt: Date | null;
5844
5935
  studentId: string;
5845
5936
  questionId: string;
5846
5937
  response: string;
@@ -5848,7 +5939,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5848
5939
  markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
5849
5940
  points: number;
5850
5941
  feedback: string | null;
5851
- updatedAt: Date | null;
5852
5942
  studentWorksheetResponseId: string | null;
5853
5943
  };
5854
5944
  meta: object;
@@ -5868,6 +5958,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5868
5958
  status: import(".prisma/client").$Enums.GenerationStatus | null;
5869
5959
  id: string;
5870
5960
  createdAt: Date;
5961
+ updatedAt: Date | null;
5871
5962
  studentId: string;
5872
5963
  questionId: string;
5873
5964
  response: string;
@@ -5875,7 +5966,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5875
5966
  markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
5876
5967
  points: number;
5877
5968
  feedback: string | null;
5878
- updatedAt: Date | null;
5879
5969
  studentWorksheetResponseId: string | null;
5880
5970
  };
5881
5971
  meta: object;
@@ -5888,10 +5978,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5888
5978
  output: {
5889
5979
  status: import(".prisma/client").$Enums.GenerationStatus | null;
5890
5980
  id: string;
5981
+ createdAt: Date;
5891
5982
  assignmentId: string | null;
5892
5983
  submissionId: string | null;
5893
5984
  announcementId: string | null;
5894
- createdAt: Date;
5895
5985
  modifiedAt: Date | null;
5896
5986
  content: string;
5897
5987
  authorId: string;
@@ -5935,6 +6025,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5935
6025
  };
5936
6026
  output: {
5937
6027
  id: string;
6028
+ createdAt: Date;
5938
6029
  assignmentId: string | null;
5939
6030
  submissionId: string | null;
5940
6031
  announcementId: string | null;
@@ -5950,7 +6041,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5950
6041
  } | null;
5951
6042
  };
5952
6043
  }[];
5953
- createdAt: Date;
5954
6044
  modifiedAt: Date | null;
5955
6045
  content: string;
5956
6046
  parentCommentId: string | null;
@@ -5983,10 +6073,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5983
6073
  } & {
5984
6074
  status: import(".prisma/client").$Enums.GenerationStatus | null;
5985
6075
  id: string;
6076
+ createdAt: Date;
5986
6077
  assignmentId: string | null;
5987
6078
  submissionId: string | null;
5988
6079
  announcementId: string | null;
5989
- createdAt: Date;
5990
6080
  modifiedAt: Date | null;
5991
6081
  content: string;
5992
6082
  authorId: string;
@@ -6003,10 +6093,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6003
6093
  output: {
6004
6094
  status: import(".prisma/client").$Enums.GenerationStatus | null;
6005
6095
  id: string;
6096
+ createdAt: Date;
6006
6097
  assignmentId: string | null;
6007
6098
  submissionId: string | null;
6008
6099
  announcementId: string | null;
6009
- createdAt: Date;
6010
6100
  modifiedAt: Date | null;
6011
6101
  content: string;
6012
6102
  authorId: string;
@@ -6023,10 +6113,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6023
6113
  output: {
6024
6114
  status: import(".prisma/client").$Enums.GenerationStatus | null;
6025
6115
  id: string;
6116
+ createdAt: Date;
6026
6117
  assignmentId: string | null;
6027
6118
  submissionId: string | null;
6028
6119
  announcementId: string | null;
6029
- createdAt: Date;
6030
6120
  modifiedAt: Date | null;
6031
6121
  content: string;
6032
6122
  authorId: string;
@@ -6063,9 +6153,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6063
6153
  } & {
6064
6154
  type: import(".prisma/client").$Enums.ReactionType;
6065
6155
  id: string;
6156
+ createdAt: Date;
6066
6157
  userId: string;
6067
6158
  announcementId: string | null;
6068
- createdAt: Date;
6069
6159
  commentId: string | null;
6070
6160
  };
6071
6161
  };
@@ -6284,7 +6374,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6284
6374
  query: string;
6285
6375
  results: {
6286
6376
  id: string;
6287
- type: "file" | "class" | "section" | "syllabus" | "assignment" | "event" | "announcement" | "worksheet";
6377
+ type: "class" | "section" | "syllabus" | "file" | "assignment" | "announcement" | "event" | "worksheet";
6288
6378
  title: string;
6289
6379
  subtitle: string;
6290
6380
  classId: string;
@@ -6297,28 +6387,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6297
6387
  meta: object;
6298
6388
  }>;
6299
6389
  }>>;
6300
- }>>;
6301
- export type AppRouter = typeof appRouter;
6302
- export type RouterInputs = inferRouterInputs<AppRouter>;
6303
- export type RouterOutputs = inferRouterOutputs<AppRouter>;
6304
- export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6305
- ctx: import("../trpc.js").Context;
6306
- meta: object;
6307
- errorShape: {
6308
- data: {
6309
- zodError: import("zod").typeToFlattenedError<any, string> | null;
6310
- prismaError: import("../utils/prismaErrorHandler.js").PrismaErrorInfo | null;
6311
- code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
6312
- httpStatus: number;
6313
- path?: string;
6314
- stack?: string;
6315
- };
6316
- message: string;
6317
- code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
6318
- };
6319
- transformer: false;
6320
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
6321
- class: import("@trpc/server").TRPCBuiltRouter<{
6390
+ school: import("@trpc/server").TRPCBuiltRouter<{
6322
6391
  ctx: import("../trpc.js").Context;
6323
6392
  meta: object;
6324
6393
  errorShape: {
@@ -6335,27 +6404,120 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6335
6404
  };
6336
6405
  transformer: false;
6337
6406
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
6338
- getAll: import("@trpc/server").TRPCQueryProcedure<{
6339
- input: void;
6407
+ getCurrent: import("@trpc/server").TRPCQueryProcedure<{
6408
+ input: {
6409
+ schoolId?: string | undefined;
6410
+ } | undefined;
6340
6411
  output: {
6341
- teacherInClass: {
6412
+ activeSchool: {
6413
+ name: string;
6414
+ id: string;
6415
+ logoId: string | null;
6416
+ subdomain: string | null;
6417
+ createdAt: Date;
6418
+ updatedAt: Date;
6419
+ } | null;
6420
+ activeRole: import(".prisma/client").$Enums.SchoolMembershipRole | null;
6421
+ memberships: ({
6422
+ school: {
6423
+ name: string;
6424
+ id: string;
6425
+ logoId: string | null;
6426
+ subdomain: string | null;
6427
+ createdAt: Date;
6428
+ updatedAt: Date;
6429
+ };
6430
+ } & {
6431
+ status: import(".prisma/client").$Enums.SchoolMembershipStatus;
6432
+ id: string;
6433
+ createdAt: Date;
6434
+ updatedAt: Date;
6435
+ role: import(".prisma/client").$Enums.SchoolMembershipRole;
6436
+ schoolId: string;
6437
+ userId: string;
6438
+ })[];
6439
+ };
6440
+ meta: object;
6441
+ }>;
6442
+ create: import("@trpc/server").TRPCMutationProcedure<{
6443
+ input: {
6444
+ name: string;
6445
+ logoId?: string | undefined;
6446
+ subdomain?: string | undefined;
6447
+ };
6448
+ output: {
6449
+ school: {
6450
+ memberships: {
6451
+ status: import(".prisma/client").$Enums.SchoolMembershipStatus;
6452
+ id: string;
6453
+ createdAt: Date;
6454
+ updatedAt: Date;
6455
+ role: import(".prisma/client").$Enums.SchoolMembershipRole;
6456
+ schoolId: string;
6457
+ userId: string;
6458
+ }[];
6459
+ } & {
6460
+ name: string;
6461
+ id: string;
6462
+ logoId: string | null;
6463
+ subdomain: string | null;
6464
+ createdAt: Date;
6465
+ updatedAt: Date;
6466
+ };
6467
+ };
6468
+ meta: object;
6469
+ }>;
6470
+ getAdminOverview: import("@trpc/server").TRPCQueryProcedure<{
6471
+ input: {
6472
+ schoolId: string;
6473
+ };
6474
+ output: {
6475
+ school: {
6342
6476
  id: string;
6343
6477
  name: string;
6344
- section: string;
6345
- subject: string;
6346
- dueToday: {
6347
- type: import(".prisma/client").$Enums.AssignmentType;
6478
+ subdomain: string | null;
6479
+ counts: {
6480
+ ADMIN: number;
6481
+ TEACHER: number;
6482
+ STUDENT: number;
6483
+ classes: number;
6484
+ members: number;
6485
+ pendingInvites: number;
6486
+ };
6487
+ recentClasses: {
6488
+ name: string;
6348
6489
  id: string;
6349
- title: string;
6350
- dueDate: Date;
6490
+ subject: string;
6491
+ color: string | null;
6492
+ section: string;
6493
+ _count: {
6494
+ teachers: number;
6495
+ students: number;
6496
+ };
6351
6497
  }[];
6352
- assignments: {
6353
- type: import(".prisma/client").$Enums.AssignmentType;
6498
+ recentInvites: {
6354
6499
  id: string;
6355
- title: string;
6356
- dueDate: Date;
6500
+ createdAt: Date;
6501
+ email: string;
6502
+ role: import(".prisma/client").$Enums.SchoolMembershipRole;
6503
+ expiresAt: Date;
6357
6504
  }[];
6358
- members: {
6505
+ };
6506
+ };
6507
+ meta: object;
6508
+ }>;
6509
+ listClasses: import("@trpc/server").TRPCQueryProcedure<{
6510
+ input: {
6511
+ schoolId: string;
6512
+ };
6513
+ output: {
6514
+ classes: ({
6515
+ _count: {
6516
+ assignments: number;
6517
+ teachers: number;
6518
+ students: number;
6519
+ };
6520
+ teachers: {
6359
6521
  id: string;
6360
6522
  username: string;
6361
6523
  profile: {
@@ -6364,40 +6526,350 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6364
6526
  profilePictureThumbnail: string | null;
6365
6527
  } | null;
6366
6528
  }[];
6367
- color: string | null;
6368
- }[];
6369
- studentInClass: {
6370
- id: string;
6529
+ students: {
6530
+ id: string;
6531
+ }[];
6532
+ } & {
6371
6533
  name: string;
6372
- section: string;
6534
+ id: string;
6535
+ schoolId: string | null;
6373
6536
  subject: string;
6374
- dueToday: {
6375
- type: import(".prisma/client").$Enums.AssignmentType;
6537
+ color: string | null;
6538
+ section: string;
6539
+ syllabus: string | null;
6540
+ })[];
6541
+ };
6542
+ meta: object;
6543
+ }>;
6544
+ createClass: import("@trpc/server").TRPCMutationProcedure<{
6545
+ input: {
6546
+ name: string;
6547
+ schoolId: string;
6548
+ subject: string;
6549
+ section: string;
6550
+ color?: string | undefined;
6551
+ teachers?: string[] | undefined;
6552
+ students?: string[] | undefined;
6553
+ };
6554
+ output: {
6555
+ class: {
6556
+ teachers: {
6376
6557
  id: string;
6377
- title: string;
6378
- dueDate: Date;
6558
+ username: string;
6559
+ email: string;
6560
+ password: string;
6561
+ verified: boolean;
6562
+ role: import(".prisma/client").$Enums.UserRole;
6563
+ schoolId: string | null;
6379
6564
  }[];
6380
- assignments: {
6381
- type: import(".prisma/client").$Enums.AssignmentType;
6565
+ students: {
6382
6566
  id: string;
6383
- title: string;
6384
- dueDate: Date;
6567
+ username: string;
6568
+ email: string;
6569
+ password: string;
6570
+ verified: boolean;
6571
+ role: import(".prisma/client").$Enums.UserRole;
6572
+ schoolId: string | null;
6385
6573
  }[];
6386
- members: {
6574
+ } & {
6575
+ name: string;
6576
+ id: string;
6577
+ schoolId: string | null;
6578
+ subject: string;
6579
+ color: string | null;
6580
+ section: string;
6581
+ syllabus: string | null;
6582
+ };
6583
+ };
6584
+ meta: object;
6585
+ }>;
6586
+ listMembers: import("@trpc/server").TRPCQueryProcedure<{
6587
+ input: {
6588
+ schoolId: string;
6589
+ };
6590
+ output: {
6591
+ members: {
6592
+ status: import(".prisma/client").$Enums.SchoolMembershipStatus;
6593
+ id: string;
6594
+ createdAt: Date;
6595
+ updatedAt: Date;
6596
+ user: {
6387
6597
  id: string;
6388
6598
  username: string;
6599
+ email: string;
6389
6600
  profile: {
6390
6601
  displayName: string | null;
6391
6602
  profilePicture: string | null;
6392
6603
  profilePictureThumbnail: string | null;
6393
6604
  } | null;
6394
- }[];
6395
- color: string | null;
6605
+ };
6606
+ role: import(".prisma/client").$Enums.SchoolMembershipRole;
6396
6607
  }[];
6397
6608
  };
6398
6609
  meta: object;
6399
6610
  }>;
6400
- get: import("@trpc/server").TRPCQueryProcedure<{
6611
+ addMember: import("@trpc/server").TRPCMutationProcedure<{
6612
+ input: {
6613
+ role: "STUDENT" | "TEACHER" | "ADMIN";
6614
+ schoolId: string;
6615
+ memberUserId: string;
6616
+ };
6617
+ output: {
6618
+ membership: {
6619
+ status: import(".prisma/client").$Enums.SchoolMembershipStatus;
6620
+ id: string;
6621
+ createdAt: Date;
6622
+ updatedAt: Date;
6623
+ role: import(".prisma/client").$Enums.SchoolMembershipRole;
6624
+ schoolId: string;
6625
+ userId: string;
6626
+ };
6627
+ };
6628
+ meta: object;
6629
+ }>;
6630
+ updateMemberRole: import("@trpc/server").TRPCMutationProcedure<{
6631
+ input: {
6632
+ role: "STUDENT" | "TEACHER" | "ADMIN";
6633
+ schoolId: string;
6634
+ memberUserId: string;
6635
+ };
6636
+ output: {
6637
+ membership: {
6638
+ status: import(".prisma/client").$Enums.SchoolMembershipStatus;
6639
+ id: string;
6640
+ createdAt: Date;
6641
+ updatedAt: Date;
6642
+ role: import(".prisma/client").$Enums.SchoolMembershipRole;
6643
+ schoolId: string;
6644
+ userId: string;
6645
+ };
6646
+ };
6647
+ meta: object;
6648
+ }>;
6649
+ removeMember: import("@trpc/server").TRPCMutationProcedure<{
6650
+ input: {
6651
+ schoolId: string;
6652
+ memberUserId: string;
6653
+ };
6654
+ output: {
6655
+ success: boolean;
6656
+ };
6657
+ meta: object;
6658
+ }>;
6659
+ listInvites: import("@trpc/server").TRPCQueryProcedure<{
6660
+ input: {
6661
+ schoolId: string;
6662
+ };
6663
+ output: {
6664
+ invites: {
6665
+ status: import(".prisma/client").$Enums.SchoolInviteStatus;
6666
+ id: string;
6667
+ createdAt: Date;
6668
+ email: string;
6669
+ role: import(".prisma/client").$Enums.SchoolMembershipRole;
6670
+ expiresAt: Date;
6671
+ acceptedAt: Date | null;
6672
+ revokedAt: Date | null;
6673
+ invitedBy: {
6674
+ id: string;
6675
+ username: string;
6676
+ profile: {
6677
+ displayName: string | null;
6678
+ } | null;
6679
+ };
6680
+ }[];
6681
+ };
6682
+ meta: object;
6683
+ }>;
6684
+ createInvite: import("@trpc/server").TRPCMutationProcedure<{
6685
+ input: {
6686
+ email: string;
6687
+ role: "STUDENT" | "TEACHER" | "ADMIN";
6688
+ schoolId: string;
6689
+ };
6690
+ output: {
6691
+ invite: {
6692
+ school: {
6693
+ name: string;
6694
+ id: string;
6695
+ };
6696
+ } & {
6697
+ status: import(".prisma/client").$Enums.SchoolInviteStatus;
6698
+ id: string;
6699
+ createdAt: Date;
6700
+ updatedAt: Date;
6701
+ email: string;
6702
+ role: import(".prisma/client").$Enums.SchoolMembershipRole;
6703
+ schoolId: string;
6704
+ token: string;
6705
+ expiresAt: Date;
6706
+ acceptedAt: Date | null;
6707
+ revokedAt: Date | null;
6708
+ invitedById: string;
6709
+ };
6710
+ };
6711
+ meta: object;
6712
+ }>;
6713
+ revokeInvite: import("@trpc/server").TRPCMutationProcedure<{
6714
+ input: {
6715
+ schoolId: string;
6716
+ inviteId: string;
6717
+ };
6718
+ output: {
6719
+ invite: {
6720
+ status: import(".prisma/client").$Enums.SchoolInviteStatus;
6721
+ id: string;
6722
+ createdAt: Date;
6723
+ updatedAt: Date;
6724
+ email: string;
6725
+ role: import(".prisma/client").$Enums.SchoolMembershipRole;
6726
+ schoolId: string;
6727
+ token: string;
6728
+ expiresAt: Date;
6729
+ acceptedAt: Date | null;
6730
+ revokedAt: Date | null;
6731
+ invitedById: string;
6732
+ };
6733
+ };
6734
+ meta: object;
6735
+ }>;
6736
+ getInvite: import("@trpc/server").TRPCQueryProcedure<{
6737
+ input: {
6738
+ token: string;
6739
+ };
6740
+ output: {
6741
+ invite: {
6742
+ id: string;
6743
+ email: string;
6744
+ role: import(".prisma/client").$Enums.SchoolMembershipRole;
6745
+ school: {
6746
+ name: string;
6747
+ id: string;
6748
+ };
6749
+ expiresAt: Date;
6750
+ };
6751
+ };
6752
+ meta: object;
6753
+ }>;
6754
+ acceptInvite: import("@trpc/server").TRPCMutationProcedure<{
6755
+ input: {
6756
+ token: string;
6757
+ };
6758
+ output: {
6759
+ membership: {
6760
+ status: import(".prisma/client").$Enums.SchoolMembershipStatus;
6761
+ id: string;
6762
+ createdAt: Date;
6763
+ updatedAt: Date;
6764
+ role: import(".prisma/client").$Enums.SchoolMembershipRole;
6765
+ schoolId: string;
6766
+ userId: string;
6767
+ };
6768
+ };
6769
+ meta: object;
6770
+ }>;
6771
+ }>>;
6772
+ }>>;
6773
+ export type AppRouter = typeof appRouter;
6774
+ export type RouterInputs = inferRouterInputs<AppRouter>;
6775
+ export type RouterOutputs = inferRouterOutputs<AppRouter>;
6776
+ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6777
+ ctx: import("../trpc.js").Context;
6778
+ meta: object;
6779
+ errorShape: {
6780
+ data: {
6781
+ zodError: import("zod").typeToFlattenedError<any, string> | null;
6782
+ prismaError: import("../utils/prismaErrorHandler.js").PrismaErrorInfo | null;
6783
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
6784
+ httpStatus: number;
6785
+ path?: string;
6786
+ stack?: string;
6787
+ };
6788
+ message: string;
6789
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
6790
+ };
6791
+ transformer: false;
6792
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
6793
+ class: import("@trpc/server").TRPCBuiltRouter<{
6794
+ ctx: import("../trpc.js").Context;
6795
+ meta: object;
6796
+ errorShape: {
6797
+ data: {
6798
+ zodError: import("zod").typeToFlattenedError<any, string> | null;
6799
+ prismaError: import("../utils/prismaErrorHandler.js").PrismaErrorInfo | null;
6800
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
6801
+ httpStatus: number;
6802
+ path?: string;
6803
+ stack?: string;
6804
+ };
6805
+ message: string;
6806
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
6807
+ };
6808
+ transformer: false;
6809
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
6810
+ getAll: import("@trpc/server").TRPCQueryProcedure<{
6811
+ input: void;
6812
+ output: {
6813
+ teacherInClass: {
6814
+ id: string;
6815
+ name: string;
6816
+ section: string;
6817
+ subject: string;
6818
+ dueToday: {
6819
+ type: import(".prisma/client").$Enums.AssignmentType;
6820
+ id: string;
6821
+ title: string;
6822
+ dueDate: Date;
6823
+ }[];
6824
+ assignments: {
6825
+ type: import(".prisma/client").$Enums.AssignmentType;
6826
+ id: string;
6827
+ title: string;
6828
+ dueDate: Date;
6829
+ }[];
6830
+ members: {
6831
+ id: string;
6832
+ username: string;
6833
+ profile: {
6834
+ displayName: string | null;
6835
+ profilePicture: string | null;
6836
+ profilePictureThumbnail: string | null;
6837
+ } | null;
6838
+ }[];
6839
+ color: string | null;
6840
+ }[];
6841
+ studentInClass: {
6842
+ id: string;
6843
+ name: string;
6844
+ section: string;
6845
+ subject: string;
6846
+ dueToday: {
6847
+ type: import(".prisma/client").$Enums.AssignmentType;
6848
+ id: string;
6849
+ title: string;
6850
+ dueDate: Date;
6851
+ }[];
6852
+ assignments: {
6853
+ type: import(".prisma/client").$Enums.AssignmentType;
6854
+ id: string;
6855
+ title: string;
6856
+ dueDate: Date;
6857
+ }[];
6858
+ members: {
6859
+ id: string;
6860
+ username: string;
6861
+ profile: {
6862
+ displayName: string | null;
6863
+ profilePicture: string | null;
6864
+ profilePictureThumbnail: string | null;
6865
+ } | null;
6866
+ }[];
6867
+ color: string | null;
6868
+ }[];
6869
+ };
6870
+ meta: object;
6871
+ }>;
6872
+ get: import("@trpc/server").TRPCQueryProcedure<{
6401
6873
  input: {
6402
6874
  [x: string]: unknown;
6403
6875
  classId: string;
@@ -6417,6 +6889,11 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6417
6889
  returned: boolean | null | undefined;
6418
6890
  type: import(".prisma/client").$Enums.AssignmentType;
6419
6891
  id: string;
6892
+ createdAt: Date | null;
6893
+ section: {
6894
+ name: string;
6895
+ id: string;
6896
+ } | null;
6420
6897
  submissions: {
6421
6898
  id: string;
6422
6899
  studentId: string;
@@ -6427,11 +6904,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6427
6904
  submitted: boolean | null;
6428
6905
  returned: boolean | null;
6429
6906
  }[];
6430
- section: {
6431
- name: string;
6432
- id: string;
6433
- } | null;
6434
- createdAt: Date | null;
6435
6907
  title: string;
6436
6908
  instructions: string;
6437
6909
  dueDate: Date;
@@ -6464,7 +6936,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6464
6936
  } | null;
6465
6937
  };
6466
6938
  }[];
6467
- students: {
6939
+ teachers: {
6468
6940
  id: string;
6469
6941
  username: string;
6470
6942
  profile: {
@@ -6473,7 +6945,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6473
6945
  profilePictureThumbnail: string | null;
6474
6946
  } | null;
6475
6947
  }[];
6476
- teachers: {
6948
+ students: {
6477
6949
  id: string;
6478
6950
  username: string;
6479
6951
  profile: {
@@ -6516,11 +6988,31 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6516
6988
  name: string;
6517
6989
  subject: string;
6518
6990
  section: string;
6991
+ schoolId?: string | undefined;
6519
6992
  color?: string | undefined;
6520
- students?: string[] | undefined;
6521
6993
  teachers?: string[] | undefined;
6994
+ students?: string[] | undefined;
6522
6995
  };
6523
6996
  output: {
6997
+ teachers: {
6998
+ id: string;
6999
+ username: string;
7000
+ email: string;
7001
+ password: string;
7002
+ verified: boolean;
7003
+ role: import(".prisma/client").$Enums.UserRole;
7004
+ schoolId: string | null;
7005
+ }[];
7006
+ students: {
7007
+ id: string;
7008
+ username: string;
7009
+ email: string;
7010
+ password: string;
7011
+ verified: boolean;
7012
+ role: import(".prisma/client").$Enums.UserRole;
7013
+ schoolId: string | null;
7014
+ }[];
7015
+ } & {
6524
7016
  name: string;
6525
7017
  id: string;
6526
7018
  schoolId: string | null;
@@ -6678,8 +7170,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6678
7170
  };
6679
7171
  } & {
6680
7172
  id: string;
6681
- assignmentId: string;
6682
7173
  createdAt: Date;
7174
+ assignmentId: string;
6683
7175
  modifiedAt: Date;
6684
7176
  studentId: string;
6685
7177
  extendedResponse: string | null;
@@ -6713,8 +7205,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6713
7205
  };
6714
7206
  } & {
6715
7207
  id: string;
6716
- assignmentId: string;
6717
7208
  createdAt: Date;
7209
+ assignmentId: string;
6718
7210
  modifiedAt: Date;
6719
7211
  studentId: string;
6720
7212
  extendedResponse: string | null;
@@ -7091,13 +7583,13 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7091
7583
  type: string;
7092
7584
  name: string;
7093
7585
  id: string;
7094
- size: number | null;
7095
- uploadedAt: Date | null;
7096
- thumbnailId: string | null;
7097
7586
  user: {
7098
7587
  id: string;
7099
7588
  username: string;
7100
7589
  } | null;
7590
+ size: number | null;
7591
+ uploadedAt: Date | null;
7592
+ thumbnailId: string | null;
7101
7593
  }[];
7102
7594
  students: {
7103
7595
  id: string;
@@ -7107,28 +7599,28 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7107
7599
  type: string;
7108
7600
  name: string;
7109
7601
  id: string;
7110
- size: number | null;
7111
- uploadedAt: Date | null;
7112
- thumbnailId: string | null;
7113
7602
  user: {
7114
7603
  id: string;
7115
7604
  username: string;
7116
7605
  } | null;
7606
+ size: number | null;
7607
+ uploadedAt: Date | null;
7608
+ thumbnailId: string | null;
7117
7609
  }[];
7118
7610
  annotations: {
7119
7611
  path: string;
7120
7612
  type: string;
7121
7613
  name: string;
7122
7614
  id: string;
7123
- size: number | null;
7124
- uploadedAt: Date | null;
7125
- thumbnailId: string | null;
7126
7615
  user: {
7127
7616
  id: string;
7128
7617
  username: string;
7129
7618
  } | null;
7130
- }[];
7131
- }[];
7619
+ size: number | null;
7620
+ uploadedAt: Date | null;
7621
+ thumbnailId: string | null;
7622
+ }[];
7623
+ }[];
7132
7624
  }[];
7133
7625
  meta: object;
7134
7626
  }>;
@@ -7142,11 +7634,11 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7142
7634
  assignments: {
7143
7635
  type: import(".prisma/client").$Enums.AssignmentType;
7144
7636
  id: string;
7637
+ createdAt: Date | null;
7145
7638
  section: {
7146
7639
  name: string;
7147
7640
  id: string;
7148
7641
  } | null;
7149
- createdAt: Date | null;
7150
7642
  classId: string;
7151
7643
  title: string;
7152
7644
  instructions: string;
@@ -7466,10 +7958,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7466
7958
  } & {
7467
7959
  status: import(".prisma/client").$Enums.GenerationStatus | null;
7468
7960
  id: string;
7961
+ createdAt: Date;
7469
7962
  assignmentId: string | null;
7470
7963
  submissionId: string | null;
7471
7964
  announcementId: string | null;
7472
- createdAt: Date;
7473
7965
  modifiedAt: Date | null;
7474
7966
  content: string;
7475
7967
  authorId: string;
@@ -7498,10 +7990,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7498
7990
  } & {
7499
7991
  status: import(".prisma/client").$Enums.GenerationStatus | null;
7500
7992
  id: string;
7993
+ createdAt: Date;
7501
7994
  assignmentId: string | null;
7502
7995
  submissionId: string | null;
7503
7996
  announcementId: string | null;
7504
- createdAt: Date;
7505
7997
  modifiedAt: Date | null;
7506
7998
  content: string;
7507
7999
  authorId: string;
@@ -7550,10 +8042,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7550
8042
  } & {
7551
8043
  status: import(".prisma/client").$Enums.GenerationStatus | null;
7552
8044
  id: string;
8045
+ createdAt: Date;
7553
8046
  assignmentId: string | null;
7554
8047
  submissionId: string | null;
7555
8048
  announcementId: string | null;
7556
- createdAt: Date;
7557
8049
  modifiedAt: Date | null;
7558
8050
  content: string;
7559
8051
  authorId: string;
@@ -7563,10 +8055,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7563
8055
  } & {
7564
8056
  status: import(".prisma/client").$Enums.GenerationStatus | null;
7565
8057
  id: string;
8058
+ createdAt: Date;
7566
8059
  assignmentId: string | null;
7567
8060
  submissionId: string | null;
7568
8061
  announcementId: string | null;
7569
- createdAt: Date;
7570
8062
  modifiedAt: Date | null;
7571
8063
  content: string;
7572
8064
  authorId: string;
@@ -7598,9 +8090,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7598
8090
  } & {
7599
8091
  type: import(".prisma/client").$Enums.ReactionType;
7600
8092
  id: string;
8093
+ createdAt: Date;
7601
8094
  userId: string;
7602
8095
  announcementId: string | null;
7603
- createdAt: Date;
7604
8096
  commentId: string | null;
7605
8097
  };
7606
8098
  };
@@ -7795,6 +8287,41 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7795
8287
  };
7796
8288
  meta: object;
7797
8289
  }>;
8290
+ duplicateAssignment: import("@trpc/server").TRPCMutationProcedure<{
8291
+ input: {
8292
+ [x: string]: unknown;
8293
+ classId: string;
8294
+ assignmentId: string;
8295
+ title: string;
8296
+ };
8297
+ output: {
8298
+ type: import(".prisma/client").$Enums.AssignmentType;
8299
+ id: string;
8300
+ createdAt: Date | null;
8301
+ modifiedAt: Date | null;
8302
+ classId: string;
8303
+ title: string;
8304
+ instructions: string;
8305
+ dueDate: Date;
8306
+ teacherId: string;
8307
+ acceptFiles: boolean;
8308
+ acceptExtendedResponse: boolean;
8309
+ acceptWorksheet: boolean;
8310
+ gradeWithAI: boolean;
8311
+ aiPolicyLevel: number;
8312
+ sectionId: string | null;
8313
+ graded: boolean;
8314
+ maxGrade: number | null;
8315
+ weight: number;
8316
+ inProgress: boolean;
8317
+ template: boolean;
8318
+ eventId: string | null;
8319
+ markSchemeId: string | null;
8320
+ order: number | null;
8321
+ gradingBoundaryId: string | null;
8322
+ };
8323
+ meta: object;
8324
+ }>;
7798
8325
  update: import("@trpc/server").TRPCMutationProcedure<{
7799
8326
  input: {
7800
8327
  [x: string]: unknown;
@@ -7827,12 +8354,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7827
8354
  output: {
7828
8355
  type: import(".prisma/client").$Enums.AssignmentType;
7829
8356
  id: string;
7830
- submissions: {
7831
- student: {
7832
- id: string;
7833
- username: string;
7834
- };
7835
- }[];
8357
+ createdAt: Date | null;
7836
8358
  class: {
7837
8359
  name: string;
7838
8360
  id: string;
@@ -7849,7 +8371,12 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7849
8371
  classId: string;
7850
8372
  order: number | null;
7851
8373
  } | null;
7852
- createdAt: Date | null;
8374
+ submissions: {
8375
+ student: {
8376
+ id: string;
8377
+ username: string;
8378
+ };
8379
+ }[];
7853
8380
  title: string;
7854
8381
  instructions: string;
7855
8382
  dueDate: Date;
@@ -7879,8 +8406,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7879
8406
  type: string;
7880
8407
  name: string;
7881
8408
  id: string;
7882
- size: number | null;
7883
8409
  userId: string | null;
8410
+ size: number | null;
7884
8411
  uploadedAt: Date | null;
7885
8412
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
7886
8413
  uploadUrl: string | null;
@@ -7927,12 +8454,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7927
8454
  name: string;
7928
8455
  id: string;
7929
8456
  }[];
7930
- submissions: {
7931
- student: {
7932
- id: string;
7933
- username: string;
7934
- };
7935
- }[];
7936
8457
  class: {
7937
8458
  name: string;
7938
8459
  id: string;
@@ -7941,6 +8462,12 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7941
8462
  name: string;
7942
8463
  id: string;
7943
8464
  } | null;
8465
+ submissions: {
8466
+ student: {
8467
+ id: string;
8468
+ username: string;
8469
+ };
8470
+ }[];
7944
8471
  markScheme: {
7945
8472
  id: string;
7946
8473
  structured: string;
@@ -8063,8 +8590,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8063
8590
  type: string;
8064
8591
  name: string;
8065
8592
  id: string;
8066
- size: number | null;
8067
8593
  userId: string | null;
8594
+ size: number | null;
8068
8595
  uploadedAt: Date | null;
8069
8596
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
8070
8597
  uploadUrl: string | null;
@@ -8091,8 +8618,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8091
8618
  type: string;
8092
8619
  name: string;
8093
8620
  id: string;
8094
- size: number | null;
8095
8621
  userId: string | null;
8622
+ size: number | null;
8096
8623
  uploadedAt: Date | null;
8097
8624
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
8098
8625
  uploadUrl: string | null;
@@ -8119,8 +8646,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8119
8646
  username: string;
8120
8647
  };
8121
8648
  id: string;
8122
- assignmentId: string;
8123
8649
  createdAt: Date;
8650
+ assignmentId: string;
8124
8651
  modifiedAt: Date;
8125
8652
  studentId: string;
8126
8653
  extendedResponse: string | null;
@@ -8197,8 +8724,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8197
8724
  type: string;
8198
8725
  name: string;
8199
8726
  id: string;
8200
- size: number | null;
8201
8727
  userId: string | null;
8728
+ size: number | null;
8202
8729
  uploadedAt: Date | null;
8203
8730
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
8204
8731
  uploadUrl: string | null;
@@ -8225,8 +8752,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8225
8752
  type: string;
8226
8753
  name: string;
8227
8754
  id: string;
8228
- size: number | null;
8229
8755
  userId: string | null;
8756
+ size: number | null;
8230
8757
  uploadedAt: Date | null;
8231
8758
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
8232
8759
  uploadUrl: string | null;
@@ -8253,10 +8780,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8253
8780
  username: string;
8254
8781
  profile: {
8255
8782
  id: string;
8256
- userId: string;
8257
8783
  createdAt: Date;
8258
- location: string | null;
8259
8784
  updatedAt: Date;
8785
+ userId: string;
8786
+ location: string | null;
8260
8787
  displayName: string | null;
8261
8788
  bio: string | null;
8262
8789
  website: string | null;
@@ -8265,8 +8792,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8265
8792
  } | null;
8266
8793
  };
8267
8794
  id: string;
8268
- assignmentId: string;
8269
8795
  createdAt: Date;
8796
+ assignmentId: string;
8270
8797
  modifiedAt: Date;
8271
8798
  studentId: string;
8272
8799
  extendedResponse: string | null;
@@ -8348,8 +8875,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8348
8875
  type: string;
8349
8876
  name: string;
8350
8877
  id: string;
8351
- size: number | null;
8352
8878
  userId: string | null;
8879
+ size: number | null;
8353
8880
  uploadedAt: Date | null;
8354
8881
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
8355
8882
  uploadUrl: string | null;
@@ -8377,8 +8904,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8377
8904
  };
8378
8905
  } & {
8379
8906
  id: string;
8380
- assignmentId: string;
8381
8907
  createdAt: Date;
8908
+ assignmentId: string;
8382
8909
  modifiedAt: Date;
8383
8910
  studentId: string;
8384
8911
  extendedResponse: string | null;
@@ -8452,8 +8979,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8452
8979
  type: string;
8453
8980
  name: string;
8454
8981
  id: string;
8455
- size: number | null;
8456
8982
  userId: string | null;
8983
+ size: number | null;
8457
8984
  uploadedAt: Date | null;
8458
8985
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
8459
8986
  uploadUrl: string | null;
@@ -8480,8 +9007,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8480
9007
  type: string;
8481
9008
  name: string;
8482
9009
  id: string;
8483
- size: number | null;
8484
9010
  userId: string | null;
9011
+ size: number | null;
8485
9012
  uploadedAt: Date | null;
8486
9013
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
8487
9014
  uploadUrl: string | null;
@@ -8513,8 +9040,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8513
9040
  } | null;
8514
9041
  };
8515
9042
  id: string;
8516
- assignmentId: string;
8517
9043
  createdAt: Date;
9044
+ assignmentId: string;
8518
9045
  modifiedAt: Date;
8519
9046
  studentId: string;
8520
9047
  extendedResponse: string | null;
@@ -8560,10 +9087,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8560
9087
  } & {
8561
9088
  status: import(".prisma/client").$Enums.GenerationStatus | null;
8562
9089
  id: string;
9090
+ createdAt: Date;
8563
9091
  assignmentId: string | null;
8564
9092
  submissionId: string | null;
8565
9093
  announcementId: string | null;
8566
- createdAt: Date;
8567
9094
  modifiedAt: Date | null;
8568
9095
  content: string;
8569
9096
  authorId: string;
@@ -8573,10 +9100,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8573
9100
  } & {
8574
9101
  status: import(".prisma/client").$Enums.GenerationStatus | null;
8575
9102
  id: string;
9103
+ createdAt: Date;
8576
9104
  assignmentId: string | null;
8577
9105
  submissionId: string | null;
8578
9106
  announcementId: string | null;
8579
- createdAt: Date;
8580
9107
  modifiedAt: Date | null;
8581
9108
  content: string;
8582
9109
  authorId: string;
@@ -8618,10 +9145,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8618
9145
  } & {
8619
9146
  status: import(".prisma/client").$Enums.GenerationStatus | null;
8620
9147
  id: string;
9148
+ createdAt: Date;
8621
9149
  assignmentId: string | null;
8622
9150
  submissionId: string | null;
8623
9151
  announcementId: string | null;
8624
- createdAt: Date;
8625
9152
  modifiedAt: Date | null;
8626
9153
  content: string;
8627
9154
  authorId: string;
@@ -8631,10 +9158,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8631
9158
  } & {
8632
9159
  status: import(".prisma/client").$Enums.GenerationStatus | null;
8633
9160
  id: string;
9161
+ createdAt: Date;
8634
9162
  assignmentId: string | null;
8635
9163
  submissionId: string | null;
8636
9164
  announcementId: string | null;
8637
- createdAt: Date;
8638
9165
  modifiedAt: Date | null;
8639
9166
  content: string;
8640
9167
  authorId: string;
@@ -8675,10 +9202,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8675
9202
  } & {
8676
9203
  status: import(".prisma/client").$Enums.GenerationStatus | null;
8677
9204
  id: string;
9205
+ createdAt: Date;
8678
9206
  assignmentId: string | null;
8679
9207
  submissionId: string | null;
8680
9208
  announcementId: string | null;
8681
- createdAt: Date;
8682
9209
  modifiedAt: Date | null;
8683
9210
  content: string;
8684
9211
  authorId: string;
@@ -8688,10 +9215,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8688
9215
  } & {
8689
9216
  status: import(".prisma/client").$Enums.GenerationStatus | null;
8690
9217
  id: string;
9218
+ createdAt: Date;
8691
9219
  assignmentId: string | null;
8692
9220
  submissionId: string | null;
8693
9221
  announcementId: string | null;
8694
- createdAt: Date;
8695
9222
  modifiedAt: Date | null;
8696
9223
  content: string;
8697
9224
  authorId: string;
@@ -8734,10 +9261,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8734
9261
  } & {
8735
9262
  status: import(".prisma/client").$Enums.GenerationStatus | null;
8736
9263
  id: string;
9264
+ createdAt: Date;
8737
9265
  assignmentId: string | null;
8738
9266
  submissionId: string | null;
8739
9267
  announcementId: string | null;
8740
- createdAt: Date;
8741
9268
  modifiedAt: Date | null;
8742
9269
  content: string;
8743
9270
  authorId: string;
@@ -8747,10 +9274,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8747
9274
  } & {
8748
9275
  status: import(".prisma/client").$Enums.GenerationStatus | null;
8749
9276
  id: string;
9277
+ createdAt: Date;
8750
9278
  assignmentId: string | null;
8751
9279
  submissionId: string | null;
8752
9280
  announcementId: string | null;
8753
- createdAt: Date;
8754
9281
  modifiedAt: Date | null;
8755
9282
  content: string;
8756
9283
  authorId: string;
@@ -8834,8 +9361,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8834
9361
  type: string;
8835
9362
  name: string;
8836
9363
  id: string;
8837
- size: number | null;
8838
9364
  userId: string | null;
9365
+ size: number | null;
8839
9366
  uploadedAt: Date | null;
8840
9367
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
8841
9368
  uploadUrl: string | null;
@@ -8862,8 +9389,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8862
9389
  type: string;
8863
9390
  name: string;
8864
9391
  id: string;
8865
- size: number | null;
8866
9392
  userId: string | null;
9393
+ size: number | null;
8867
9394
  uploadedAt: Date | null;
8868
9395
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
8869
9396
  uploadUrl: string | null;
@@ -8891,8 +9418,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8891
9418
  type: string;
8892
9419
  name: string;
8893
9420
  id: string;
8894
- size: number | null;
8895
9421
  userId: string | null;
9422
+ size: number | null;
8896
9423
  uploadedAt: Date | null;
8897
9424
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
8898
9425
  uploadUrl: string | null;
@@ -8919,8 +9446,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8919
9446
  type: string;
8920
9447
  name: string;
8921
9448
  id: string;
8922
- size: number | null;
8923
9449
  userId: string | null;
9450
+ size: number | null;
8924
9451
  uploadedAt: Date | null;
8925
9452
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
8926
9453
  uploadUrl: string | null;
@@ -8953,8 +9480,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8953
9480
  };
8954
9481
  } & {
8955
9482
  id: string;
8956
- assignmentId: string;
8957
9483
  createdAt: Date;
9484
+ assignmentId: string;
8958
9485
  modifiedAt: Date;
8959
9486
  studentId: string;
8960
9487
  extendedResponse: string | null;
@@ -9154,8 +9681,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9154
9681
  type: string;
9155
9682
  name: string;
9156
9683
  id: string;
9157
- size: number | null;
9158
9684
  userId: string | null;
9685
+ size: number | null;
9159
9686
  uploadedAt: Date | null;
9160
9687
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
9161
9688
  uploadUrl: string | null;
@@ -9249,8 +9776,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9249
9776
  type: string;
9250
9777
  name: string;
9251
9778
  id: string;
9252
- size: number | null;
9253
9779
  userId: string | null;
9780
+ size: number | null;
9254
9781
  uploadedAt: Date | null;
9255
9782
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
9256
9783
  uploadUrl: string | null;
@@ -9345,8 +9872,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9345
9872
  type: string;
9346
9873
  name: string;
9347
9874
  id: string;
9348
- size: number | null;
9349
9875
  userId: string | null;
9876
+ size: number | null;
9350
9877
  uploadedAt: Date | null;
9351
9878
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
9352
9879
  uploadUrl: string | null;
@@ -9440,8 +9967,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9440
9967
  type: string;
9441
9968
  name: string;
9442
9969
  id: string;
9443
- size: number | null;
9444
9970
  userId: string | null;
9971
+ size: number | null;
9445
9972
  uploadedAt: Date | null;
9446
9973
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
9447
9974
  uploadUrl: string | null;
@@ -9944,7 +10471,26 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9944
10471
  role: import(".prisma/client").$Enums.UserRole;
9945
10472
  schoolId: string | null;
9946
10473
  } | null;
9947
- class: {
10474
+ class: ({
10475
+ school: ({
10476
+ users: {
10477
+ id: string;
10478
+ }[];
10479
+ memberships: {
10480
+ userId: string;
10481
+ }[];
10482
+ } & {
10483
+ name: string;
10484
+ id: string;
10485
+ logoId: string | null;
10486
+ subdomain: string | null;
10487
+ createdAt: Date;
10488
+ updatedAt: Date;
10489
+ }) | null;
10490
+ teachers: {
10491
+ id: string;
10492
+ }[];
10493
+ } & {
9948
10494
  name: string;
9949
10495
  id: string;
9950
10496
  schoolId: string | null;
@@ -9952,7 +10498,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9952
10498
  color: string | null;
9953
10499
  section: string;
9954
10500
  syllabus: string | null;
9955
- } | null;
10501
+ }) | null;
9956
10502
  assignmentsAttached: {
9957
10503
  type: import(".prisma/client").$Enums.AssignmentType;
9958
10504
  id: string;
@@ -10471,8 +11017,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10471
11017
  type: string;
10472
11018
  name: string;
10473
11019
  id: string;
10474
- size: number | null;
10475
11020
  userId: string | null;
11021
+ size: number | null;
10476
11022
  uploadedAt: Date | null;
10477
11023
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
10478
11024
  uploadUrl: string | null;
@@ -10513,8 +11059,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10513
11059
  type: string;
10514
11060
  name: string;
10515
11061
  id: string;
10516
- size: number | null;
10517
11062
  userId: string | null;
11063
+ size: number | null;
10518
11064
  uploadedAt: Date | null;
10519
11065
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
10520
11066
  uploadUrl: string | null;
@@ -10580,21 +11126,21 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10580
11126
  type: string;
10581
11127
  name: string;
10582
11128
  id: string;
10583
- size: number | null;
10584
- uploadedAt: Date | null;
10585
11129
  user: {
10586
11130
  id: string;
10587
11131
  username: string;
10588
11132
  } | null;
11133
+ size: number | null;
11134
+ uploadedAt: Date | null;
10589
11135
  }[];
10590
11136
  childFolders: {
10591
11137
  name: string;
10592
11138
  id: string;
11139
+ color: string | null;
10593
11140
  _count: {
10594
11141
  files: number;
10595
11142
  childFolders: number;
10596
11143
  };
10597
- color: string | null;
10598
11144
  }[];
10599
11145
  } & {
10600
11146
  name: string;
@@ -10616,21 +11162,21 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10616
11162
  type: string;
10617
11163
  name: string;
10618
11164
  id: string;
10619
- size: number | null;
10620
- uploadedAt: Date | null;
10621
11165
  user: {
10622
11166
  id: string;
10623
11167
  username: string;
10624
11168
  } | null;
11169
+ size: number | null;
11170
+ uploadedAt: Date | null;
10625
11171
  }[];
10626
11172
  childFolders: {
10627
11173
  name: string;
10628
11174
  id: string;
11175
+ color: string | null;
10629
11176
  _count: {
10630
11177
  files: number;
10631
11178
  childFolders: number;
10632
11179
  };
10633
- color: string | null;
10634
11180
  }[];
10635
11181
  parentFolder: {
10636
11182
  name: string;
@@ -10655,21 +11201,21 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10655
11201
  type: string;
10656
11202
  name: string;
10657
11203
  id: string;
10658
- size: number | null;
10659
- uploadedAt: Date | null;
10660
11204
  user: {
10661
11205
  id: string;
10662
11206
  username: string;
10663
11207
  } | null;
11208
+ size: number | null;
11209
+ uploadedAt: Date | null;
10664
11210
  }[];
10665
11211
  childFolders: {
10666
11212
  name: string;
10667
11213
  id: string;
11214
+ color: string | null;
10668
11215
  _count: {
10669
11216
  files: number;
10670
11217
  childFolders: number;
10671
11218
  };
10672
- color: string | null;
10673
11219
  }[];
10674
11220
  } & {
10675
11221
  name: string;
@@ -10691,21 +11237,21 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10691
11237
  type: string;
10692
11238
  name: string;
10693
11239
  id: string;
10694
- size: number | null;
10695
- uploadedAt: Date | null;
10696
11240
  user: {
10697
11241
  id: string;
10698
11242
  username: string;
10699
11243
  } | null;
11244
+ size: number | null;
11245
+ uploadedAt: Date | null;
10700
11246
  }[];
10701
11247
  childFolders: {
10702
11248
  name: string;
10703
11249
  id: string;
11250
+ color: string | null;
10704
11251
  _count: {
10705
11252
  files: number;
10706
11253
  childFolders: number;
10707
11254
  };
10708
- color: string | null;
10709
11255
  }[];
10710
11256
  } & {
10711
11257
  name: string;
@@ -10726,24 +11272,24 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10726
11272
  type: string;
10727
11273
  name: string;
10728
11274
  id: string;
10729
- size: number | null;
10730
- uploadedAt: Date | null;
10731
11275
  user: {
10732
11276
  id: string;
10733
11277
  username: string;
10734
11278
  } | null;
11279
+ size: number | null;
11280
+ uploadedAt: Date | null;
10735
11281
  }[];
10736
11282
  childFolders: {
10737
11283
  name: string;
10738
11284
  id: string;
10739
- files: {
10740
- id: string;
10741
- }[];
11285
+ color: string | null;
10742
11286
  _count: {
10743
11287
  files: number;
10744
11288
  childFolders: number;
10745
11289
  };
10746
- color: string | null;
11290
+ files: {
11291
+ id: string;
11292
+ }[];
10747
11293
  childFolders: {
10748
11294
  id: string;
10749
11295
  }[];
@@ -10799,21 +11345,21 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10799
11345
  type: string;
10800
11346
  name: string;
10801
11347
  id: string;
10802
- size: number | null;
10803
- uploadedAt: Date | null;
10804
11348
  user: {
10805
11349
  id: string;
10806
11350
  username: string;
10807
11351
  } | null;
11352
+ size: number | null;
11353
+ uploadedAt: Date | null;
10808
11354
  }[];
10809
11355
  childFolders: {
10810
11356
  name: string;
10811
11357
  id: string;
11358
+ color: string | null;
10812
11359
  _count: {
10813
11360
  files: number;
10814
11361
  childFolders: number;
10815
11362
  };
10816
- color: string | null;
10817
11363
  }[];
10818
11364
  } & {
10819
11365
  name: string;
@@ -10837,21 +11383,21 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10837
11383
  type: string;
10838
11384
  name: string;
10839
11385
  id: string;
10840
- size: number | null;
10841
- uploadedAt: Date | null;
10842
11386
  user: {
10843
11387
  id: string;
10844
11388
  username: string;
10845
11389
  } | null;
11390
+ size: number | null;
11391
+ uploadedAt: Date | null;
10846
11392
  }[];
10847
11393
  childFolders: {
10848
11394
  name: string;
10849
11395
  id: string;
11396
+ color: string | null;
10850
11397
  _count: {
10851
11398
  files: number;
10852
11399
  childFolders: number;
10853
11400
  };
10854
- color: string | null;
10855
11401
  }[];
10856
11402
  } & {
10857
11403
  name: string;
@@ -11050,9 +11596,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11050
11596
  };
11051
11597
  } & {
11052
11598
  id: string;
11599
+ role: import(".prisma/client").$Enums.ConversationRole;
11053
11600
  userId: string;
11054
11601
  conversationId: string;
11055
- role: import(".prisma/client").$Enums.ConversationRole;
11056
11602
  joinedAt: Date;
11057
11603
  hiddenAt: Date | null;
11058
11604
  lastViewedAt: Date | null;
@@ -11070,8 +11616,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11070
11616
  status: import(".prisma/client").$Enums.GenerationStatus | null;
11071
11617
  meta: import("@prisma/client/runtime/library.js").JsonValue | null;
11072
11618
  id: string;
11073
- conversationId: string;
11074
11619
  createdAt: Date;
11620
+ conversationId: string;
11075
11621
  content: string;
11076
11622
  senderId: string;
11077
11623
  };
@@ -11098,9 +11644,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11098
11644
  };
11099
11645
  } & {
11100
11646
  id: string;
11647
+ role: import(".prisma/client").$Enums.ConversationRole;
11101
11648
  userId: string;
11102
11649
  conversationId: string;
11103
- role: import(".prisma/client").$Enums.ConversationRole;
11104
11650
  joinedAt: Date;
11105
11651
  hiddenAt: Date | null;
11106
11652
  lastViewedAt: Date | null;
@@ -11132,9 +11678,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11132
11678
  };
11133
11679
  } & {
11134
11680
  id: string;
11681
+ role: import(".prisma/client").$Enums.ConversationRole;
11135
11682
  userId: string;
11136
11683
  conversationId: string;
11137
- role: import(".prisma/client").$Enums.ConversationRole;
11138
11684
  joinedAt: Date;
11139
11685
  hiddenAt: Date | null;
11140
11686
  lastViewedAt: Date | null;
@@ -11176,9 +11722,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11176
11722
  };
11177
11723
  } & {
11178
11724
  id: string;
11725
+ role: import(".prisma/client").$Enums.ConversationRole;
11179
11726
  userId: string;
11180
11727
  conversationId: string;
11181
- role: import(".prisma/client").$Enums.ConversationRole;
11182
11728
  joinedAt: Date;
11183
11729
  hiddenAt: Date | null;
11184
11730
  lastViewedAt: Date | null;
@@ -11211,9 +11757,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11211
11757
  };
11212
11758
  } & {
11213
11759
  id: string;
11760
+ role: import(".prisma/client").$Enums.ConversationRole;
11214
11761
  userId: string;
11215
11762
  conversationId: string;
11216
- role: import(".prisma/client").$Enums.ConversationRole;
11217
11763
  joinedAt: Date;
11218
11764
  hiddenAt: Date | null;
11219
11765
  lastViewedAt: Date | null;
@@ -11460,9 +12006,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11460
12006
  };
11461
12007
  } & {
11462
12008
  id: string;
12009
+ role: import(".prisma/client").$Enums.ConversationRole;
11463
12010
  userId: string;
11464
12011
  conversationId: string;
11465
- role: import(".prisma/client").$Enums.ConversationRole;
11466
12012
  joinedAt: Date;
11467
12013
  hiddenAt: Date | null;
11468
12014
  lastViewedAt: Date | null;
@@ -11486,11 +12032,11 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11486
12032
  } & {
11487
12033
  context: string;
11488
12034
  id: string;
11489
- conversationId: string;
11490
12035
  createdAt: Date;
12036
+ updatedAt: Date;
12037
+ conversationId: string;
11491
12038
  classId: string;
11492
12039
  title: string;
11493
- updatedAt: Date;
11494
12040
  createdById: string;
11495
12041
  };
11496
12042
  meta: object;
@@ -11519,9 +12065,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11519
12065
  };
11520
12066
  } & {
11521
12067
  id: string;
12068
+ role: import(".prisma/client").$Enums.ConversationRole;
11522
12069
  userId: string;
11523
12070
  conversationId: string;
11524
- role: import(".prisma/client").$Enums.ConversationRole;
11525
12071
  joinedAt: Date;
11526
12072
  hiddenAt: Date | null;
11527
12073
  lastViewedAt: Date | null;
@@ -11545,11 +12091,11 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11545
12091
  };
11546
12092
  context: string;
11547
12093
  id: string;
11548
- conversationId: string;
11549
12094
  createdAt: Date;
12095
+ updatedAt: Date;
12096
+ conversationId: string;
11550
12097
  classId: string;
11551
12098
  title: string;
11552
- updatedAt: Date;
11553
12099
  createdById: string;
11554
12100
  };
11555
12101
  meta: object;
@@ -11584,8 +12130,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11584
12130
  status: import(".prisma/client").$Enums.GenerationStatus | null;
11585
12131
  meta: import("@prisma/client/runtime/library.js").JsonValue | null;
11586
12132
  id: string;
11587
- conversationId: string;
11588
12133
  createdAt: Date;
12134
+ conversationId: string;
11589
12135
  content: string;
11590
12136
  senderId: string;
11591
12137
  };
@@ -11815,9 +12361,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11815
12361
  options: import("@prisma/client/runtime/library.js").JsonValue | null;
11816
12362
  id: string;
11817
12363
  createdAt: Date;
12364
+ updatedAt: Date;
11818
12365
  order: number | null;
11819
12366
  points: number;
11820
- updatedAt: Date;
11821
12367
  worksheetId: string;
11822
12368
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
11823
12369
  question: string;
@@ -11827,8 +12373,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11827
12373
  name: string;
11828
12374
  id: string;
11829
12375
  createdAt: Date;
11830
- classId: string;
11831
12376
  updatedAt: Date;
12377
+ classId: string;
11832
12378
  };
11833
12379
  meta: object;
11834
12380
  }>;
@@ -11854,8 +12400,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11854
12400
  name: string;
11855
12401
  id: string;
11856
12402
  createdAt: Date;
11857
- classId: string;
11858
12403
  updatedAt: Date;
12404
+ classId: string;
11859
12405
  }[];
11860
12406
  meta: object;
11861
12407
  }>;
@@ -11868,8 +12414,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11868
12414
  name: string;
11869
12415
  id: string;
11870
12416
  createdAt: Date;
11871
- classId: string;
11872
12417
  updatedAt: Date;
12418
+ classId: string;
11873
12419
  };
11874
12420
  meta: object;
11875
12421
  }>;
@@ -11881,8 +12427,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11881
12427
  name: string;
11882
12428
  id: string;
11883
12429
  createdAt: Date;
11884
- classId: string;
11885
12430
  updatedAt: Date;
12431
+ classId: string;
11886
12432
  };
11887
12433
  meta: object;
11888
12434
  }>;
@@ -11896,8 +12442,24 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11896
12442
  name: string;
11897
12443
  id: string;
11898
12444
  createdAt: Date;
12445
+ updatedAt: Date;
12446
+ classId: string;
12447
+ };
12448
+ meta: object;
12449
+ }>;
12450
+ duplicateWorksheet: import("@trpc/server").TRPCMutationProcedure<{
12451
+ input: {
12452
+ [x: string]: unknown;
11899
12453
  classId: string;
12454
+ name: string;
12455
+ worksheetId: string;
12456
+ };
12457
+ output: {
12458
+ name: string;
12459
+ id: string;
12460
+ createdAt: Date;
11900
12461
  updatedAt: Date;
12462
+ classId: string;
11901
12463
  };
11902
12464
  meta: object;
11903
12465
  }>;
@@ -11911,8 +12473,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11911
12473
  name: string;
11912
12474
  id: string;
11913
12475
  createdAt: Date;
11914
- classId: string;
11915
12476
  updatedAt: Date;
12477
+ classId: string;
11916
12478
  };
11917
12479
  meta: object;
11918
12480
  }>;
@@ -11956,8 +12518,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11956
12518
  name: string;
11957
12519
  id: string;
11958
12520
  createdAt: Date;
11959
- classId: string;
11960
12521
  updatedAt: Date;
12522
+ classId: string;
11961
12523
  };
11962
12524
  meta: object;
11963
12525
  }>;
@@ -11976,9 +12538,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11976
12538
  options: import("@prisma/client/runtime/library.js").JsonValue | null;
11977
12539
  id: string;
11978
12540
  createdAt: Date;
12541
+ updatedAt: Date;
11979
12542
  order: number | null;
11980
12543
  points: number;
11981
- updatedAt: Date;
11982
12544
  worksheetId: string;
11983
12545
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
11984
12546
  question: string;
@@ -12014,9 +12576,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12014
12576
  options: import("@prisma/client/runtime/library.js").JsonValue | null;
12015
12577
  id: string;
12016
12578
  createdAt: Date;
12579
+ updatedAt: Date;
12017
12580
  order: number | null;
12018
12581
  points: number;
12019
- updatedAt: Date;
12020
12582
  worksheetId: string;
12021
12583
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
12022
12584
  question: string;
@@ -12034,9 +12596,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12034
12596
  options: import("@prisma/client/runtime/library.js").JsonValue | null;
12035
12597
  id: string;
12036
12598
  createdAt: Date;
12599
+ updatedAt: Date;
12037
12600
  order: number | null;
12038
12601
  points: number;
12039
- updatedAt: Date;
12040
12602
  worksheetId: string;
12041
12603
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
12042
12604
  question: string;
@@ -12058,6 +12620,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12058
12620
  status: import(".prisma/client").$Enums.GenerationStatus | null;
12059
12621
  id: string;
12060
12622
  createdAt: Date;
12623
+ updatedAt: Date | null;
12061
12624
  studentId: string;
12062
12625
  questionId: string;
12063
12626
  response: string;
@@ -12065,17 +12628,16 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12065
12628
  markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
12066
12629
  points: number;
12067
12630
  feedback: string | null;
12068
- updatedAt: Date | null;
12069
12631
  studentWorksheetResponseId: string | null;
12070
12632
  })[];
12071
12633
  } & {
12072
12634
  id: string;
12073
- submissionId: string | null;
12074
12635
  createdAt: Date;
12636
+ updatedAt: Date;
12637
+ submissionId: string | null;
12075
12638
  studentId: string;
12076
12639
  submittedAt: Date | null;
12077
12640
  submitted: boolean;
12078
- updatedAt: Date;
12079
12641
  worksheetId: string;
12080
12642
  };
12081
12643
  meta: object;
@@ -12091,6 +12653,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12091
12653
  status: import(".prisma/client").$Enums.GenerationStatus | null;
12092
12654
  id: string;
12093
12655
  createdAt: Date;
12656
+ updatedAt: Date | null;
12094
12657
  studentId: string;
12095
12658
  questionId: string;
12096
12659
  response: string;
@@ -12098,17 +12661,16 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12098
12661
  markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
12099
12662
  points: number;
12100
12663
  feedback: string | null;
12101
- updatedAt: Date | null;
12102
12664
  studentWorksheetResponseId: string | null;
12103
12665
  }[];
12104
12666
  } & {
12105
12667
  id: string;
12106
- submissionId: string | null;
12107
12668
  createdAt: Date;
12669
+ updatedAt: Date;
12670
+ submissionId: string | null;
12108
12671
  studentId: string;
12109
12672
  submittedAt: Date | null;
12110
12673
  submitted: boolean;
12111
- updatedAt: Date;
12112
12674
  worksheetId: string;
12113
12675
  };
12114
12676
  meta: object;
@@ -12122,6 +12684,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12122
12684
  status: import(".prisma/client").$Enums.GenerationStatus | null;
12123
12685
  id: string;
12124
12686
  createdAt: Date;
12687
+ updatedAt: Date | null;
12125
12688
  studentId: string;
12126
12689
  questionId: string;
12127
12690
  response: string;
@@ -12129,7 +12692,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12129
12692
  markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
12130
12693
  points: number;
12131
12694
  feedback: string | null;
12132
- updatedAt: Date | null;
12133
12695
  studentWorksheetResponseId: string | null;
12134
12696
  };
12135
12697
  meta: object;
@@ -12143,6 +12705,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12143
12705
  status: import(".prisma/client").$Enums.GenerationStatus | null;
12144
12706
  id: string;
12145
12707
  createdAt: Date;
12708
+ updatedAt: Date | null;
12146
12709
  studentId: string;
12147
12710
  questionId: string;
12148
12711
  response: string;
@@ -12150,7 +12713,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12150
12713
  markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
12151
12714
  points: number;
12152
12715
  feedback: string | null;
12153
- updatedAt: Date | null;
12154
12716
  studentWorksheetResponseId: string | null;
12155
12717
  };
12156
12718
  meta: object;
@@ -12170,6 +12732,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12170
12732
  status: import(".prisma/client").$Enums.GenerationStatus | null;
12171
12733
  id: string;
12172
12734
  createdAt: Date;
12735
+ updatedAt: Date | null;
12173
12736
  studentId: string;
12174
12737
  questionId: string;
12175
12738
  response: string;
@@ -12177,7 +12740,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12177
12740
  markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
12178
12741
  points: number;
12179
12742
  feedback: string | null;
12180
- updatedAt: Date | null;
12181
12743
  studentWorksheetResponseId: string | null;
12182
12744
  };
12183
12745
  meta: object;
@@ -12190,10 +12752,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12190
12752
  output: {
12191
12753
  status: import(".prisma/client").$Enums.GenerationStatus | null;
12192
12754
  id: string;
12755
+ createdAt: Date;
12193
12756
  assignmentId: string | null;
12194
12757
  submissionId: string | null;
12195
12758
  announcementId: string | null;
12196
- createdAt: Date;
12197
12759
  modifiedAt: Date | null;
12198
12760
  content: string;
12199
12761
  authorId: string;
@@ -12237,6 +12799,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12237
12799
  };
12238
12800
  output: {
12239
12801
  id: string;
12802
+ createdAt: Date;
12240
12803
  assignmentId: string | null;
12241
12804
  submissionId: string | null;
12242
12805
  announcementId: string | null;
@@ -12252,7 +12815,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12252
12815
  } | null;
12253
12816
  };
12254
12817
  }[];
12255
- createdAt: Date;
12256
12818
  modifiedAt: Date | null;
12257
12819
  content: string;
12258
12820
  parentCommentId: string | null;
@@ -12285,10 +12847,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12285
12847
  } & {
12286
12848
  status: import(".prisma/client").$Enums.GenerationStatus | null;
12287
12849
  id: string;
12850
+ createdAt: Date;
12288
12851
  assignmentId: string | null;
12289
12852
  submissionId: string | null;
12290
12853
  announcementId: string | null;
12291
- createdAt: Date;
12292
12854
  modifiedAt: Date | null;
12293
12855
  content: string;
12294
12856
  authorId: string;
@@ -12305,10 +12867,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12305
12867
  output: {
12306
12868
  status: import(".prisma/client").$Enums.GenerationStatus | null;
12307
12869
  id: string;
12870
+ createdAt: Date;
12308
12871
  assignmentId: string | null;
12309
12872
  submissionId: string | null;
12310
12873
  announcementId: string | null;
12311
- createdAt: Date;
12312
12874
  modifiedAt: Date | null;
12313
12875
  content: string;
12314
12876
  authorId: string;
@@ -12325,10 +12887,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12325
12887
  output: {
12326
12888
  status: import(".prisma/client").$Enums.GenerationStatus | null;
12327
12889
  id: string;
12890
+ createdAt: Date;
12328
12891
  assignmentId: string | null;
12329
12892
  submissionId: string | null;
12330
12893
  announcementId: string | null;
12331
- createdAt: Date;
12332
12894
  modifiedAt: Date | null;
12333
12895
  content: string;
12334
12896
  authorId: string;
@@ -12365,9 +12927,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12365
12927
  } & {
12366
12928
  type: import(".prisma/client").$Enums.ReactionType;
12367
12929
  id: string;
12930
+ createdAt: Date;
12368
12931
  userId: string;
12369
12932
  announcementId: string | null;
12370
- createdAt: Date;
12371
12933
  commentId: string | null;
12372
12934
  };
12373
12935
  };
@@ -12586,7 +13148,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12586
13148
  query: string;
12587
13149
  results: {
12588
13150
  id: string;
12589
- type: "file" | "class" | "section" | "syllabus" | "assignment" | "event" | "announcement" | "worksheet";
13151
+ type: "class" | "section" | "syllabus" | "file" | "assignment" | "announcement" | "event" | "worksheet";
12590
13152
  title: string;
12591
13153
  subtitle: string;
12592
13154
  classId: string;
@@ -12599,5 +13161,387 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12599
13161
  meta: object;
12600
13162
  }>;
12601
13163
  }>>;
13164
+ school: import("@trpc/server").TRPCBuiltRouter<{
13165
+ ctx: import("../trpc.js").Context;
13166
+ meta: object;
13167
+ errorShape: {
13168
+ data: {
13169
+ zodError: import("zod").typeToFlattenedError<any, string> | null;
13170
+ prismaError: import("../utils/prismaErrorHandler.js").PrismaErrorInfo | null;
13171
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
13172
+ httpStatus: number;
13173
+ path?: string;
13174
+ stack?: string;
13175
+ };
13176
+ message: string;
13177
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
13178
+ };
13179
+ transformer: false;
13180
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
13181
+ getCurrent: import("@trpc/server").TRPCQueryProcedure<{
13182
+ input: {
13183
+ schoolId?: string | undefined;
13184
+ } | undefined;
13185
+ output: {
13186
+ activeSchool: {
13187
+ name: string;
13188
+ id: string;
13189
+ logoId: string | null;
13190
+ subdomain: string | null;
13191
+ createdAt: Date;
13192
+ updatedAt: Date;
13193
+ } | null;
13194
+ activeRole: import(".prisma/client").$Enums.SchoolMembershipRole | null;
13195
+ memberships: ({
13196
+ school: {
13197
+ name: string;
13198
+ id: string;
13199
+ logoId: string | null;
13200
+ subdomain: string | null;
13201
+ createdAt: Date;
13202
+ updatedAt: Date;
13203
+ };
13204
+ } & {
13205
+ status: import(".prisma/client").$Enums.SchoolMembershipStatus;
13206
+ id: string;
13207
+ createdAt: Date;
13208
+ updatedAt: Date;
13209
+ role: import(".prisma/client").$Enums.SchoolMembershipRole;
13210
+ schoolId: string;
13211
+ userId: string;
13212
+ })[];
13213
+ };
13214
+ meta: object;
13215
+ }>;
13216
+ create: import("@trpc/server").TRPCMutationProcedure<{
13217
+ input: {
13218
+ name: string;
13219
+ logoId?: string | undefined;
13220
+ subdomain?: string | undefined;
13221
+ };
13222
+ output: {
13223
+ school: {
13224
+ memberships: {
13225
+ status: import(".prisma/client").$Enums.SchoolMembershipStatus;
13226
+ id: string;
13227
+ createdAt: Date;
13228
+ updatedAt: Date;
13229
+ role: import(".prisma/client").$Enums.SchoolMembershipRole;
13230
+ schoolId: string;
13231
+ userId: string;
13232
+ }[];
13233
+ } & {
13234
+ name: string;
13235
+ id: string;
13236
+ logoId: string | null;
13237
+ subdomain: string | null;
13238
+ createdAt: Date;
13239
+ updatedAt: Date;
13240
+ };
13241
+ };
13242
+ meta: object;
13243
+ }>;
13244
+ getAdminOverview: import("@trpc/server").TRPCQueryProcedure<{
13245
+ input: {
13246
+ schoolId: string;
13247
+ };
13248
+ output: {
13249
+ school: {
13250
+ id: string;
13251
+ name: string;
13252
+ subdomain: string | null;
13253
+ counts: {
13254
+ ADMIN: number;
13255
+ TEACHER: number;
13256
+ STUDENT: number;
13257
+ classes: number;
13258
+ members: number;
13259
+ pendingInvites: number;
13260
+ };
13261
+ recentClasses: {
13262
+ name: string;
13263
+ id: string;
13264
+ subject: string;
13265
+ color: string | null;
13266
+ section: string;
13267
+ _count: {
13268
+ teachers: number;
13269
+ students: number;
13270
+ };
13271
+ }[];
13272
+ recentInvites: {
13273
+ id: string;
13274
+ createdAt: Date;
13275
+ email: string;
13276
+ role: import(".prisma/client").$Enums.SchoolMembershipRole;
13277
+ expiresAt: Date;
13278
+ }[];
13279
+ };
13280
+ };
13281
+ meta: object;
13282
+ }>;
13283
+ listClasses: import("@trpc/server").TRPCQueryProcedure<{
13284
+ input: {
13285
+ schoolId: string;
13286
+ };
13287
+ output: {
13288
+ classes: ({
13289
+ _count: {
13290
+ assignments: number;
13291
+ teachers: number;
13292
+ students: number;
13293
+ };
13294
+ teachers: {
13295
+ id: string;
13296
+ username: string;
13297
+ profile: {
13298
+ displayName: string | null;
13299
+ profilePicture: string | null;
13300
+ profilePictureThumbnail: string | null;
13301
+ } | null;
13302
+ }[];
13303
+ students: {
13304
+ id: string;
13305
+ }[];
13306
+ } & {
13307
+ name: string;
13308
+ id: string;
13309
+ schoolId: string | null;
13310
+ subject: string;
13311
+ color: string | null;
13312
+ section: string;
13313
+ syllabus: string | null;
13314
+ })[];
13315
+ };
13316
+ meta: object;
13317
+ }>;
13318
+ createClass: import("@trpc/server").TRPCMutationProcedure<{
13319
+ input: {
13320
+ name: string;
13321
+ schoolId: string;
13322
+ subject: string;
13323
+ section: string;
13324
+ color?: string | undefined;
13325
+ teachers?: string[] | undefined;
13326
+ students?: string[] | undefined;
13327
+ };
13328
+ output: {
13329
+ class: {
13330
+ teachers: {
13331
+ id: string;
13332
+ username: string;
13333
+ email: string;
13334
+ password: string;
13335
+ verified: boolean;
13336
+ role: import(".prisma/client").$Enums.UserRole;
13337
+ schoolId: string | null;
13338
+ }[];
13339
+ students: {
13340
+ id: string;
13341
+ username: string;
13342
+ email: string;
13343
+ password: string;
13344
+ verified: boolean;
13345
+ role: import(".prisma/client").$Enums.UserRole;
13346
+ schoolId: string | null;
13347
+ }[];
13348
+ } & {
13349
+ name: string;
13350
+ id: string;
13351
+ schoolId: string | null;
13352
+ subject: string;
13353
+ color: string | null;
13354
+ section: string;
13355
+ syllabus: string | null;
13356
+ };
13357
+ };
13358
+ meta: object;
13359
+ }>;
13360
+ listMembers: import("@trpc/server").TRPCQueryProcedure<{
13361
+ input: {
13362
+ schoolId: string;
13363
+ };
13364
+ output: {
13365
+ members: {
13366
+ status: import(".prisma/client").$Enums.SchoolMembershipStatus;
13367
+ id: string;
13368
+ createdAt: Date;
13369
+ updatedAt: Date;
13370
+ user: {
13371
+ id: string;
13372
+ username: string;
13373
+ email: string;
13374
+ profile: {
13375
+ displayName: string | null;
13376
+ profilePicture: string | null;
13377
+ profilePictureThumbnail: string | null;
13378
+ } | null;
13379
+ };
13380
+ role: import(".prisma/client").$Enums.SchoolMembershipRole;
13381
+ }[];
13382
+ };
13383
+ meta: object;
13384
+ }>;
13385
+ addMember: import("@trpc/server").TRPCMutationProcedure<{
13386
+ input: {
13387
+ role: "STUDENT" | "TEACHER" | "ADMIN";
13388
+ schoolId: string;
13389
+ memberUserId: string;
13390
+ };
13391
+ output: {
13392
+ membership: {
13393
+ status: import(".prisma/client").$Enums.SchoolMembershipStatus;
13394
+ id: string;
13395
+ createdAt: Date;
13396
+ updatedAt: Date;
13397
+ role: import(".prisma/client").$Enums.SchoolMembershipRole;
13398
+ schoolId: string;
13399
+ userId: string;
13400
+ };
13401
+ };
13402
+ meta: object;
13403
+ }>;
13404
+ updateMemberRole: import("@trpc/server").TRPCMutationProcedure<{
13405
+ input: {
13406
+ role: "STUDENT" | "TEACHER" | "ADMIN";
13407
+ schoolId: string;
13408
+ memberUserId: string;
13409
+ };
13410
+ output: {
13411
+ membership: {
13412
+ status: import(".prisma/client").$Enums.SchoolMembershipStatus;
13413
+ id: string;
13414
+ createdAt: Date;
13415
+ updatedAt: Date;
13416
+ role: import(".prisma/client").$Enums.SchoolMembershipRole;
13417
+ schoolId: string;
13418
+ userId: string;
13419
+ };
13420
+ };
13421
+ meta: object;
13422
+ }>;
13423
+ removeMember: import("@trpc/server").TRPCMutationProcedure<{
13424
+ input: {
13425
+ schoolId: string;
13426
+ memberUserId: string;
13427
+ };
13428
+ output: {
13429
+ success: boolean;
13430
+ };
13431
+ meta: object;
13432
+ }>;
13433
+ listInvites: import("@trpc/server").TRPCQueryProcedure<{
13434
+ input: {
13435
+ schoolId: string;
13436
+ };
13437
+ output: {
13438
+ invites: {
13439
+ status: import(".prisma/client").$Enums.SchoolInviteStatus;
13440
+ id: string;
13441
+ createdAt: Date;
13442
+ email: string;
13443
+ role: import(".prisma/client").$Enums.SchoolMembershipRole;
13444
+ expiresAt: Date;
13445
+ acceptedAt: Date | null;
13446
+ revokedAt: Date | null;
13447
+ invitedBy: {
13448
+ id: string;
13449
+ username: string;
13450
+ profile: {
13451
+ displayName: string | null;
13452
+ } | null;
13453
+ };
13454
+ }[];
13455
+ };
13456
+ meta: object;
13457
+ }>;
13458
+ createInvite: import("@trpc/server").TRPCMutationProcedure<{
13459
+ input: {
13460
+ email: string;
13461
+ role: "STUDENT" | "TEACHER" | "ADMIN";
13462
+ schoolId: string;
13463
+ };
13464
+ output: {
13465
+ invite: {
13466
+ school: {
13467
+ name: string;
13468
+ id: string;
13469
+ };
13470
+ } & {
13471
+ status: import(".prisma/client").$Enums.SchoolInviteStatus;
13472
+ id: string;
13473
+ createdAt: Date;
13474
+ updatedAt: Date;
13475
+ email: string;
13476
+ role: import(".prisma/client").$Enums.SchoolMembershipRole;
13477
+ schoolId: string;
13478
+ token: string;
13479
+ expiresAt: Date;
13480
+ acceptedAt: Date | null;
13481
+ revokedAt: Date | null;
13482
+ invitedById: string;
13483
+ };
13484
+ };
13485
+ meta: object;
13486
+ }>;
13487
+ revokeInvite: import("@trpc/server").TRPCMutationProcedure<{
13488
+ input: {
13489
+ schoolId: string;
13490
+ inviteId: string;
13491
+ };
13492
+ output: {
13493
+ invite: {
13494
+ status: import(".prisma/client").$Enums.SchoolInviteStatus;
13495
+ id: string;
13496
+ createdAt: Date;
13497
+ updatedAt: Date;
13498
+ email: string;
13499
+ role: import(".prisma/client").$Enums.SchoolMembershipRole;
13500
+ schoolId: string;
13501
+ token: string;
13502
+ expiresAt: Date;
13503
+ acceptedAt: Date | null;
13504
+ revokedAt: Date | null;
13505
+ invitedById: string;
13506
+ };
13507
+ };
13508
+ meta: object;
13509
+ }>;
13510
+ getInvite: import("@trpc/server").TRPCQueryProcedure<{
13511
+ input: {
13512
+ token: string;
13513
+ };
13514
+ output: {
13515
+ invite: {
13516
+ id: string;
13517
+ email: string;
13518
+ role: import(".prisma/client").$Enums.SchoolMembershipRole;
13519
+ school: {
13520
+ name: string;
13521
+ id: string;
13522
+ };
13523
+ expiresAt: Date;
13524
+ };
13525
+ };
13526
+ meta: object;
13527
+ }>;
13528
+ acceptInvite: import("@trpc/server").TRPCMutationProcedure<{
13529
+ input: {
13530
+ token: string;
13531
+ };
13532
+ output: {
13533
+ membership: {
13534
+ status: import(".prisma/client").$Enums.SchoolMembershipStatus;
13535
+ id: string;
13536
+ createdAt: Date;
13537
+ updatedAt: Date;
13538
+ role: import(".prisma/client").$Enums.SchoolMembershipRole;
13539
+ schoolId: string;
13540
+ userId: string;
13541
+ };
13542
+ };
13543
+ meta: object;
13544
+ }>;
13545
+ }>>;
12602
13546
  }>>;
12603
13547
  //# sourceMappingURL=_app.d.ts.map