@studious-lms/server 1.4.1 → 1.4.2

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 (149) hide show
  1. package/.env.example +6 -0
  2. package/.env.test.example +2 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +36 -50
  5. package/dist/index.js.map +1 -1
  6. package/dist/lib/config/cors.d.ts +16 -0
  7. package/dist/lib/config/cors.d.ts.map +1 -0
  8. package/dist/lib/config/cors.js +75 -0
  9. package/dist/lib/config/cors.js.map +1 -0
  10. package/dist/lib/config/env.d.ts +14 -0
  11. package/dist/lib/config/env.d.ts.map +1 -1
  12. package/dist/lib/config/env.js +9 -2
  13. package/dist/lib/config/env.js.map +1 -1
  14. package/dist/lib/prisma.d.ts +14 -2
  15. package/dist/lib/prisma.d.ts.map +1 -1
  16. package/dist/lib/prisma.js +27 -8
  17. package/dist/lib/prisma.js.map +1 -1
  18. package/dist/middleware/security.d.ts.map +1 -1
  19. package/dist/middleware/security.js +3 -3
  20. package/dist/middleware/security.js.map +1 -1
  21. package/dist/models/agenda.d.ts +16 -16
  22. package/dist/models/announcement.d.ts +59 -23
  23. package/dist/models/announcement.d.ts.map +1 -1
  24. package/dist/models/assignment.d.ts +363 -276
  25. package/dist/models/assignment.d.ts.map +1 -1
  26. package/dist/models/attendance.d.ts +63 -21
  27. package/dist/models/attendance.d.ts.map +1 -1
  28. package/dist/models/auth.d.ts +102 -18
  29. package/dist/models/auth.d.ts.map +1 -1
  30. package/dist/models/class.d.ts +112 -64
  31. package/dist/models/class.d.ts.map +1 -1
  32. package/dist/models/comment.d.ts +52 -16
  33. package/dist/models/comment.d.ts.map +1 -1
  34. package/dist/models/conversation.d.ts +46 -16
  35. package/dist/models/conversation.d.ts.map +1 -1
  36. package/dist/models/event.d.ts +107 -53
  37. package/dist/models/event.d.ts.map +1 -1
  38. package/dist/models/file.d.ts +213 -165
  39. package/dist/models/file.d.ts.map +1 -1
  40. package/dist/models/folder.d.ts +161 -77
  41. package/dist/models/folder.d.ts.map +1 -1
  42. package/dist/models/labChat.d.ts +73 -31
  43. package/dist/models/labChat.d.ts.map +1 -1
  44. package/dist/models/marketing.d.ts +25 -7
  45. package/dist/models/marketing.d.ts.map +1 -1
  46. package/dist/models/message.d.ts +31 -13
  47. package/dist/models/message.d.ts.map +1 -1
  48. package/dist/models/newtonChat.d.ts +34 -10
  49. package/dist/models/newtonChat.d.ts.map +1 -1
  50. package/dist/models/notification.d.ts +25 -7
  51. package/dist/models/notification.d.ts.map +1 -1
  52. package/dist/models/section.d.ts +71 -23
  53. package/dist/models/section.d.ts.map +1 -1
  54. package/dist/models/user.d.ts +27 -9
  55. package/dist/models/user.d.ts.map +1 -1
  56. package/dist/models/worksheet.d.ts +237 -108
  57. package/dist/models/worksheet.d.ts.map +1 -1
  58. package/dist/pipelines/aiLabChat.d.ts +22 -2
  59. package/dist/pipelines/aiLabChat.d.ts.map +1 -1
  60. package/dist/pipelines/aiLabChat.js +125 -95
  61. package/dist/pipelines/aiLabChat.js.map +1 -1
  62. package/dist/pipelines/aiLabChatContract.d.ts +22 -22
  63. package/dist/pipelines/gradeWorksheet.d.ts +8 -8
  64. package/dist/pipelines/gradeWorksheet.js +4 -4
  65. package/dist/pipelines/gradeWorksheet.js.map +1 -1
  66. package/dist/pipelines/labChatPrompt.d.ts +27 -0
  67. package/dist/pipelines/labChatPrompt.d.ts.map +1 -1
  68. package/dist/pipelines/labChatPrompt.js +143 -69
  69. package/dist/pipelines/labChatPrompt.js.map +1 -1
  70. package/dist/routers/_app.d.ts +1439 -1223
  71. package/dist/routers/_app.d.ts.map +1 -1
  72. package/dist/routers/agenda.d.ts +16 -16
  73. package/dist/routers/announcement.d.ts +19 -19
  74. package/dist/routers/assignment.d.ts +307 -291
  75. package/dist/routers/assignment.d.ts.map +1 -1
  76. package/dist/routers/assignment.js +3 -2
  77. package/dist/routers/assignment.js.map +1 -1
  78. package/dist/routers/attendance.d.ts +7 -7
  79. package/dist/routers/auth.d.ts +1 -1
  80. package/dist/routers/class.d.ts +77 -71
  81. package/dist/routers/class.d.ts.map +1 -1
  82. package/dist/routers/comment.d.ts +6 -6
  83. package/dist/routers/conversation.d.ts +11 -11
  84. package/dist/routers/event.d.ts +35 -35
  85. package/dist/routers/file.d.ts +12 -12
  86. package/dist/routers/folder.d.ts +54 -54
  87. package/dist/routers/labChat.d.ts +12 -12
  88. package/dist/routers/marketing.d.ts +2 -2
  89. package/dist/routers/message.d.ts +2 -2
  90. package/dist/routers/newtonChat.d.ts +1 -1
  91. package/dist/routers/notifications.d.ts +4 -4
  92. package/dist/routers/section.d.ts +7 -7
  93. package/dist/routers/studentProgress.d.ts +86 -0
  94. package/dist/routers/studentProgress.d.ts.map +1 -1
  95. package/dist/routers/studentProgress.js +14 -4
  96. package/dist/routers/studentProgress.js.map +1 -1
  97. package/dist/routers/user.d.ts +1 -1
  98. package/dist/routers/worksheet.d.ts +58 -58
  99. package/dist/seedDatabase.d.ts +1 -1
  100. package/dist/services/agenda.d.ts +16 -16
  101. package/dist/services/announcement.d.ts +8 -8
  102. package/dist/services/assignment.d.ts +299 -283
  103. package/dist/services/assignment.d.ts.map +1 -1
  104. package/dist/services/assignment.js +24 -5
  105. package/dist/services/assignment.js.map +1 -1
  106. package/dist/services/attendance.d.ts +7 -7
  107. package/dist/services/auth.d.ts +1 -1
  108. package/dist/services/class.d.ts +73 -67
  109. package/dist/services/class.d.ts.map +1 -1
  110. package/dist/services/comment.d.ts +6 -6
  111. package/dist/services/conversation.d.ts +11 -11
  112. package/dist/services/event.d.ts +31 -31
  113. package/dist/services/file.d.ts +12 -12
  114. package/dist/services/folder.d.ts +52 -52
  115. package/dist/services/labChat.d.ts +12 -12
  116. package/dist/services/marketing.d.ts +2 -2
  117. package/dist/services/notification.d.ts +4 -4
  118. package/dist/services/section.d.ts +6 -6
  119. package/dist/services/studentProgress.d.ts +75 -0
  120. package/dist/services/studentProgress.d.ts.map +1 -1
  121. package/dist/services/studentProgress.js +296 -106
  122. package/dist/services/studentProgress.js.map +1 -1
  123. package/dist/services/worksheet.d.ts +49 -49
  124. package/dist/utils/inference.d.ts +0 -11
  125. package/dist/utils/inference.d.ts.map +1 -1
  126. package/dist/utils/inference.js +2 -50
  127. package/dist/utils/inference.js.map +1 -1
  128. package/package.json +1 -1
  129. package/prisma/migrations/20260410124000_add_submission_recommendation_state/migration.sql +14 -0
  130. package/prisma/schema.prisma +14 -0
  131. package/src/index.ts +39 -51
  132. package/src/lib/config/cors.ts +96 -0
  133. package/src/lib/config/env.ts +12 -1
  134. package/src/lib/prisma.ts +25 -6
  135. package/src/middleware/security.ts +1 -1
  136. package/src/pipelines/aiLabChat.ts +175 -104
  137. package/src/pipelines/gradeWorksheet.ts +2 -2
  138. package/src/pipelines/labChatPrompt.ts +196 -68
  139. package/src/routers/assignment.ts +1 -0
  140. package/src/routers/studentProgress.ts +25 -1
  141. package/src/services/assignment.ts +30 -2
  142. package/src/services/studentProgress.ts +421 -120
  143. package/src/utils/inference.ts +0 -61
  144. package/tests/lib/cors.test.ts +103 -0
  145. package/tests/pipelines/aiLabChat.test.ts +64 -84
  146. package/tests/routers/studentProgress.test.ts +2 -31
  147. package/tests/utils/aiLabChatPrompt.test.ts +114 -6
  148. package/tests/utils/studentProgress.test.ts +361 -0
  149. package/vitest.unit.config.ts +1 -0
@@ -85,10 +85,10 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
85
85
  output: {
86
86
  class: {
87
87
  sections: {
88
- id: string;
89
- classId: string;
90
88
  name: string;
89
+ id: string;
91
90
  color: string | null;
91
+ classId: string;
92
92
  order: number | null;
93
93
  }[];
94
94
  assignments: {
@@ -107,16 +107,16 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
107
107
  submitted: boolean | null;
108
108
  returned: boolean | null;
109
109
  }[];
110
- createdAt: Date | null;
111
110
  section: {
112
- id: string;
113
111
  name: string;
112
+ id: string;
114
113
  } | null;
114
+ createdAt: Date | null;
115
115
  title: string;
116
- dueDate: Date;
117
- maxGrade: number | null;
118
116
  instructions: string;
117
+ dueDate: Date;
119
118
  graded: boolean;
119
+ maxGrade: number | null;
120
120
  weight: number;
121
121
  inProgress: boolean;
122
122
  order: number | null;
@@ -132,8 +132,8 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
132
132
  announcements: {
133
133
  id: string;
134
134
  createdAt: Date;
135
- remarks: string;
136
135
  modifiedAt: Date | null;
136
+ remarks: string;
137
137
  teacher: {
138
138
  id: string;
139
139
  username: string;
@@ -162,9 +162,9 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
162
162
  profilePictureThumbnail: string | null;
163
163
  } | null;
164
164
  }[];
165
+ name: string;
165
166
  id: string;
166
167
  schoolId: string | null;
167
- name: string;
168
168
  subject: string;
169
169
  color: string | null;
170
170
  section: string;
@@ -183,8 +183,8 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
183
183
  };
184
184
  output: {
185
185
  updatedClass: {
186
- id: string;
187
186
  name: string;
187
+ id: string;
188
188
  subject: string;
189
189
  section: string;
190
190
  };
@@ -201,9 +201,9 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
201
201
  teachers?: string[] | undefined;
202
202
  };
203
203
  output: {
204
+ name: string;
204
205
  id: string;
205
206
  schoolId: string | null;
206
- name: string;
207
207
  subject: string;
208
208
  color: string | null;
209
209
  section: string;
@@ -232,8 +232,8 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
232
232
  };
233
233
  output: {
234
234
  updatedClass: {
235
- id: string;
236
235
  name: string;
236
+ id: string;
237
237
  subject: string;
238
238
  section: string;
239
239
  };
@@ -253,9 +253,9 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
253
253
  };
254
254
  output: {
255
255
  updatedClass: {
256
+ name: string;
256
257
  id: string;
257
258
  schoolId: string | null;
258
- name: string;
259
259
  subject: string;
260
260
  color: string | null;
261
261
  section: string;
@@ -277,9 +277,9 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
277
277
  };
278
278
  output: {
279
279
  updatedClass: {
280
+ name: string;
280
281
  id: string;
281
282
  schoolId: string | null;
282
- name: string;
283
283
  subject: string;
284
284
  color: string | null;
285
285
  section: string;
@@ -305,8 +305,8 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
305
305
  };
306
306
  output: {
307
307
  joinedClass: {
308
- id: string;
309
308
  name: string;
309
+ id: string;
310
310
  subject: string;
311
311
  section: string;
312
312
  };
@@ -358,12 +358,15 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
358
358
  };
359
359
  } & {
360
360
  id: string;
361
- createdAt: Date;
362
361
  assignmentId: string;
362
+ createdAt: Date;
363
363
  modifiedAt: Date;
364
364
  studentId: string;
365
365
  extendedResponse: string | null;
366
366
  gradeReceived: number | null;
367
+ recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
368
+ recommendationUpdatedAt: Date | null;
369
+ targetedAssignmentId: string | null;
367
370
  rubricState: string | null;
368
371
  teacherComments: string | null;
369
372
  submittedAt: Date | null;
@@ -390,12 +393,15 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
390
393
  };
391
394
  } & {
392
395
  id: string;
393
- createdAt: Date;
394
396
  assignmentId: string;
397
+ createdAt: Date;
395
398
  modifiedAt: Date;
396
399
  studentId: string;
397
400
  extendedResponse: string | null;
398
401
  gradeReceived: number | null;
402
+ recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
403
+ recommendationUpdatedAt: Date | null;
404
+ targetedAssignmentId: string | null;
399
405
  rubricState: string | null;
400
406
  teacherComments: string | null;
401
407
  submittedAt: Date | null;
@@ -547,9 +553,9 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
547
553
  contents: string;
548
554
  };
549
555
  output: {
556
+ name: string;
550
557
  id: string;
551
558
  schoolId: string | null;
552
- name: string;
553
559
  subject: string;
554
560
  color: string | null;
555
561
  section: string;
@@ -566,13 +572,11 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
566
572
  type: import(".prisma/client").$Enums.AssignmentType;
567
573
  id: string;
568
574
  createdAt: Date | null;
575
+ modifiedAt: Date | null;
569
576
  classId: string;
570
577
  title: string;
571
- dueDate: Date;
572
- maxGrade: number | null;
573
- eventId: string | null;
574
578
  instructions: string;
575
- modifiedAt: Date | null;
579
+ dueDate: Date;
576
580
  teacherId: string;
577
581
  acceptFiles: boolean;
578
582
  acceptExtendedResponse: boolean;
@@ -581,9 +585,11 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
581
585
  aiPolicyLevel: number;
582
586
  sectionId: string | null;
583
587
  graded: boolean;
588
+ maxGrade: number | null;
584
589
  weight: number;
585
590
  inProgress: boolean;
586
591
  template: boolean;
592
+ eventId: string | null;
587
593
  markSchemeId: string | null;
588
594
  order: number | null;
589
595
  gradingBoundaryId: string | null;
@@ -598,9 +604,9 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
598
604
  title: string;
599
605
  instructions: string;
600
606
  dueDate?: Date | undefined;
601
- maxGrade?: number | undefined;
602
607
  sectionId?: string | undefined;
603
608
  graded?: boolean | undefined;
609
+ maxGrade?: number | undefined;
604
610
  weight?: number | undefined;
605
611
  markSchemeId?: string | undefined;
606
612
  gradingBoundaryId?: string | undefined;
@@ -609,13 +615,11 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
609
615
  type: import(".prisma/client").$Enums.AssignmentType;
610
616
  id: string;
611
617
  createdAt: Date | null;
618
+ modifiedAt: Date | null;
612
619
  classId: string;
613
620
  title: string;
614
- dueDate: Date;
615
- maxGrade: number | null;
616
- eventId: string | null;
617
621
  instructions: string;
618
- modifiedAt: Date | null;
622
+ dueDate: Date;
619
623
  teacherId: string;
620
624
  acceptFiles: boolean;
621
625
  acceptExtendedResponse: boolean;
@@ -624,9 +628,11 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
624
628
  aiPolicyLevel: number;
625
629
  sectionId: string | null;
626
630
  graded: boolean;
631
+ maxGrade: number | null;
627
632
  weight: number;
628
633
  inProgress: boolean;
629
634
  template: boolean;
635
+ eventId: string | null;
630
636
  markSchemeId: string | null;
631
637
  order: number | null;
632
638
  gradingBoundaryId: string | null;
@@ -639,11 +645,11 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
639
645
  classId: string;
640
646
  draftId: string;
641
647
  title?: string | undefined;
642
- dueDate?: Date | undefined;
643
- maxGrade?: number | undefined;
644
648
  instructions?: string | undefined;
649
+ dueDate?: Date | undefined;
645
650
  sectionId?: string | undefined;
646
651
  graded?: boolean | undefined;
652
+ maxGrade?: number | undefined;
647
653
  weight?: number | undefined;
648
654
  markSchemeId?: string | undefined;
649
655
  gradingBoundaryId?: string | undefined;
@@ -652,13 +658,11 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
652
658
  type: import(".prisma/client").$Enums.AssignmentType;
653
659
  id: string;
654
660
  createdAt: Date | null;
661
+ modifiedAt: Date | null;
655
662
  classId: string;
656
663
  title: string;
657
- dueDate: Date;
658
- maxGrade: number | null;
659
- eventId: string | null;
660
664
  instructions: string;
661
- modifiedAt: Date | null;
665
+ dueDate: Date;
662
666
  teacherId: string;
663
667
  acceptFiles: boolean;
664
668
  acceptExtendedResponse: boolean;
@@ -667,9 +671,11 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
667
671
  aiPolicyLevel: number;
668
672
  sectionId: string | null;
669
673
  graded: boolean;
674
+ maxGrade: number | null;
670
675
  weight: number;
671
676
  inProgress: boolean;
672
677
  template: boolean;
678
+ eventId: string | null;
673
679
  markSchemeId: string | null;
674
680
  order: number | null;
675
681
  gradingBoundaryId: string | null;
@@ -686,13 +692,11 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
686
692
  type: import(".prisma/client").$Enums.AssignmentType;
687
693
  id: string;
688
694
  createdAt: Date | null;
695
+ modifiedAt: Date | null;
689
696
  classId: string;
690
697
  title: string;
691
- dueDate: Date;
692
- maxGrade: number | null;
693
- eventId: string | null;
694
698
  instructions: string;
695
- modifiedAt: Date | null;
699
+ dueDate: Date;
696
700
  teacherId: string;
697
701
  acceptFiles: boolean;
698
702
  acceptExtendedResponse: boolean;
@@ -701,9 +705,11 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
701
705
  aiPolicyLevel: number;
702
706
  sectionId: string | null;
703
707
  graded: boolean;
708
+ maxGrade: number | null;
704
709
  weight: number;
705
710
  inProgress: boolean;
706
711
  template: boolean;
712
+ eventId: string | null;
707
713
  markSchemeId: string | null;
708
714
  order: number | null;
709
715
  gradingBoundaryId: string | null;
@@ -716,21 +722,19 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
716
722
  classId: string;
717
723
  draftId: string;
718
724
  dueDate?: Date | undefined;
719
- maxGrade?: number | undefined;
720
725
  graded?: boolean | undefined;
726
+ maxGrade?: number | undefined;
721
727
  weight?: number | undefined;
722
728
  };
723
729
  output: {
724
730
  type: import(".prisma/client").$Enums.AssignmentType;
725
731
  id: string;
726
732
  createdAt: Date | null;
733
+ modifiedAt: Date | null;
727
734
  classId: string;
728
735
  title: string;
729
- dueDate: Date;
730
- maxGrade: number | null;
731
- eventId: string | null;
732
736
  instructions: string;
733
- modifiedAt: Date | null;
737
+ dueDate: Date;
734
738
  teacherId: string;
735
739
  acceptFiles: boolean;
736
740
  acceptExtendedResponse: boolean;
@@ -739,9 +743,11 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
739
743
  aiPolicyLevel: number;
740
744
  sectionId: string | null;
741
745
  graded: boolean;
746
+ maxGrade: number | null;
742
747
  weight: number;
743
748
  inProgress: boolean;
744
749
  template: boolean;
750
+ eventId: string | null;
745
751
  markSchemeId: string | null;
746
752
  order: number | null;
747
753
  gradingBoundaryId: string | null;
@@ -763,15 +769,15 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
763
769
  teacherAttachments: {
764
770
  path: string;
765
771
  type: string;
766
- user: {
767
- id: string;
768
- username: string;
769
- } | null;
770
- id: string;
771
772
  name: string;
773
+ id: string;
772
774
  size: number | null;
773
775
  uploadedAt: Date | null;
774
776
  thumbnailId: string | null;
777
+ user: {
778
+ id: string;
779
+ username: string;
780
+ } | null;
775
781
  }[];
776
782
  students: {
777
783
  id: string;
@@ -779,28 +785,28 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
779
785
  attachments: {
780
786
  path: string;
781
787
  type: string;
782
- user: {
783
- id: string;
784
- username: string;
785
- } | null;
786
- id: string;
787
788
  name: string;
789
+ id: string;
788
790
  size: number | null;
789
791
  uploadedAt: Date | null;
790
792
  thumbnailId: string | null;
791
- }[];
792
- annotations: {
793
- path: string;
794
- type: string;
795
793
  user: {
796
794
  id: string;
797
795
  username: string;
798
796
  } | null;
799
- id: string;
797
+ }[];
798
+ annotations: {
799
+ path: string;
800
+ type: string;
800
801
  name: string;
802
+ id: string;
801
803
  size: number | null;
802
804
  uploadedAt: Date | null;
803
805
  thumbnailId: string | null;
806
+ user: {
807
+ id: string;
808
+ username: string;
809
+ } | null;
804
810
  }[];
805
811
  }[];
806
812
  }[];
@@ -816,20 +822,15 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
816
822
  assignments: {
817
823
  type: import(".prisma/client").$Enums.AssignmentType;
818
824
  id: string;
819
- createdAt: Date | null;
820
- classId: string;
821
825
  section: {
822
- id: string;
823
826
  name: string;
824
- } | null;
825
- worksheets: {
826
827
  id: string;
827
- }[];
828
+ } | null;
829
+ createdAt: Date | null;
830
+ classId: string;
828
831
  title: string;
829
- dueDate: Date;
830
- maxGrade: number | null;
831
- eventId: string | null;
832
832
  instructions: string;
833
+ dueDate: Date;
833
834
  teacherId: string;
834
835
  acceptFiles: boolean;
835
836
  acceptExtendedResponse: boolean;
@@ -838,8 +839,10 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
838
839
  aiPolicyLevel: number;
839
840
  sectionId: string | null;
840
841
  graded: boolean;
842
+ maxGrade: number | null;
841
843
  weight: number;
842
844
  inProgress: boolean;
845
+ eventId: string | null;
843
846
  markSchemeId: string | null;
844
847
  order: number | null;
845
848
  gradingBoundaryId: string | null;
@@ -851,27 +854,30 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
851
854
  id: string;
852
855
  structured: string;
853
856
  } | null;
857
+ worksheets: {
858
+ id: string;
859
+ }[];
854
860
  }[];
855
861
  sections: {
856
- id: string;
857
- classId: string;
858
862
  name: string;
863
+ id: string;
859
864
  color: string | null;
865
+ classId: string;
860
866
  order: number | null;
861
867
  }[];
862
868
  worksheets: {
869
+ name: string;
863
870
  id: string;
864
871
  classId: string;
865
- name: string;
866
872
  questions: {
867
873
  options: import("@prisma/client/runtime/library.js").JsonValue;
868
874
  type: import(".prisma/client").$Enums.WorksheetQuestionType;
869
875
  order: number | null;
870
- markScheme: import("@prisma/client/runtime/library.js").JsonValue;
876
+ points: number;
871
877
  worksheetId: string;
878
+ markScheme: import("@prisma/client/runtime/library.js").JsonValue;
872
879
  question: string;
873
880
  answer: string;
874
- points: number;
875
881
  }[];
876
882
  }[];
877
883
  markSchemes: {
@@ -884,9 +890,9 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
884
890
  classId: string;
885
891
  structured: string;
886
892
  }[];
893
+ name: string;
887
894
  id: string;
888
895
  schoolId: string | null;
889
- name: string;
890
896
  subject: string;
891
897
  color: string | null;
892
898
  section: string;
@@ -1 +1 @@
1
- {"version":3,"file":"class.d.ts","sourceRoot":"/","sources":["routers/class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA2CxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgStB,CAAC"}
1
+ {"version":3,"file":"class.d.ts","sourceRoot":"/","sources":["routers/class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA2CxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgStB,CAAC"}
@@ -36,8 +36,8 @@ export declare const commentRouter: import("@trpc/server").TRPCBuiltRouter<{
36
36
  };
37
37
  }[];
38
38
  createdAt: Date;
39
- content: string;
40
39
  modifiedAt: Date | null;
40
+ content: string;
41
41
  author: {
42
42
  id: string;
43
43
  username: string;
@@ -67,10 +67,10 @@ export declare const commentRouter: import("@trpc/server").TRPCBuiltRouter<{
67
67
  } & {
68
68
  status: import(".prisma/client").$Enums.GenerationStatus | null;
69
69
  id: string;
70
+ announcementId: string | null;
70
71
  createdAt: Date;
71
- content: string;
72
72
  modifiedAt: Date | null;
73
- announcementId: string | null;
73
+ content: string;
74
74
  authorId: string;
75
75
  parentCommentId: string | null;
76
76
  studentQuestionProgressId: string | null;
@@ -85,10 +85,10 @@ export declare const commentRouter: import("@trpc/server").TRPCBuiltRouter<{
85
85
  output: {
86
86
  status: import(".prisma/client").$Enums.GenerationStatus | null;
87
87
  id: string;
88
+ announcementId: string | null;
88
89
  createdAt: Date;
89
- content: string;
90
90
  modifiedAt: Date | null;
91
- announcementId: string | null;
91
+ content: string;
92
92
  authorId: string;
93
93
  parentCommentId: string | null;
94
94
  studentQuestionProgressId: string | null;
@@ -115,8 +115,8 @@ export declare const commentRouter: import("@trpc/server").TRPCBuiltRouter<{
115
115
  type: import(".prisma/client").$Enums.ReactionType;
116
116
  id: string;
117
117
  userId: string;
118
- createdAt: Date;
119
118
  announcementId: string | null;
119
+ createdAt: Date;
120
120
  commentId: string | null;
121
121
  };
122
122
  };
@@ -39,9 +39,9 @@ export declare const conversationRouter: import("@trpc/server").TRPCBuiltRouter<
39
39
  };
40
40
  } & {
41
41
  id: string;
42
- role: import(".prisma/client").$Enums.ConversationRole;
43
42
  userId: string;
44
43
  conversationId: string;
44
+ role: import(".prisma/client").$Enums.ConversationRole;
45
45
  joinedAt: Date;
46
46
  lastViewedAt: Date | null;
47
47
  lastViewedMentionAt: Date | null;
@@ -56,11 +56,11 @@ export declare const conversationRouter: import("@trpc/server").TRPCBuiltRouter<
56
56
  };
57
57
  } & {
58
58
  status: import(".prisma/client").$Enums.GenerationStatus | null;
59
+ meta: import("@prisma/client/runtime/library.js").JsonValue | null;
59
60
  id: string;
61
+ conversationId: string;
60
62
  createdAt: Date;
61
- meta: import("@prisma/client/runtime/library.js").JsonValue | null;
62
63
  content: string;
63
- conversationId: string;
64
64
  senderId: string;
65
65
  };
66
66
  unreadCount: number;
@@ -86,19 +86,19 @@ export declare const conversationRouter: import("@trpc/server").TRPCBuiltRouter<
86
86
  };
87
87
  } & {
88
88
  id: string;
89
- role: import(".prisma/client").$Enums.ConversationRole;
90
89
  userId: string;
91
90
  conversationId: string;
91
+ role: import(".prisma/client").$Enums.ConversationRole;
92
92
  joinedAt: Date;
93
93
  lastViewedAt: Date | null;
94
94
  lastViewedMentionAt: Date | null;
95
95
  })[];
96
96
  } & {
97
97
  type: import(".prisma/client").$Enums.ConversationType;
98
+ name: string | null;
98
99
  id: string;
99
100
  createdAt: Date;
100
101
  updatedAt: Date;
101
- name: string | null;
102
102
  displayInChat: boolean;
103
103
  };
104
104
  meta: object;
@@ -119,19 +119,19 @@ export declare const conversationRouter: import("@trpc/server").TRPCBuiltRouter<
119
119
  };
120
120
  } & {
121
121
  id: string;
122
- role: import(".prisma/client").$Enums.ConversationRole;
123
122
  userId: string;
124
123
  conversationId: string;
124
+ role: import(".prisma/client").$Enums.ConversationRole;
125
125
  joinedAt: Date;
126
126
  lastViewedAt: Date | null;
127
127
  lastViewedMentionAt: Date | null;
128
128
  })[];
129
129
  } & {
130
130
  type: import(".prisma/client").$Enums.ConversationType;
131
+ name: string | null;
131
132
  id: string;
132
133
  createdAt: Date;
133
134
  updatedAt: Date;
134
- name: string | null;
135
135
  displayInChat: boolean;
136
136
  };
137
137
  meta: object;
@@ -153,19 +153,19 @@ export declare const conversationRouter: import("@trpc/server").TRPCBuiltRouter<
153
153
  };
154
154
  } & {
155
155
  id: string;
156
- role: import(".prisma/client").$Enums.ConversationRole;
157
156
  userId: string;
158
157
  conversationId: string;
158
+ role: import(".prisma/client").$Enums.ConversationRole;
159
159
  joinedAt: Date;
160
160
  lastViewedAt: Date | null;
161
161
  lastViewedMentionAt: Date | null;
162
162
  })[];
163
163
  } & {
164
164
  type: import(".prisma/client").$Enums.ConversationType;
165
+ name: string | null;
165
166
  id: string;
166
167
  createdAt: Date;
167
168
  updatedAt: Date;
168
- name: string | null;
169
169
  displayInChat: boolean;
170
170
  };
171
171
  meta: object;
@@ -187,19 +187,19 @@ export declare const conversationRouter: import("@trpc/server").TRPCBuiltRouter<
187
187
  };
188
188
  } & {
189
189
  id: string;
190
- role: import(".prisma/client").$Enums.ConversationRole;
191
190
  userId: string;
192
191
  conversationId: string;
192
+ role: import(".prisma/client").$Enums.ConversationRole;
193
193
  joinedAt: Date;
194
194
  lastViewedAt: Date | null;
195
195
  lastViewedMentionAt: Date | null;
196
196
  })[];
197
197
  } & {
198
198
  type: import(".prisma/client").$Enums.ConversationType;
199
+ name: string | null;
199
200
  id: string;
200
201
  createdAt: Date;
201
202
  updatedAt: Date;
202
- name: string | null;
203
203
  displayInChat: boolean;
204
204
  };
205
205
  meta: object;