@studious-lms/server 1.2.27 → 1.2.29

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.
@@ -99,6 +99,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
99
99
  submissions: {
100
100
  id: string;
101
101
  studentId: string;
102
+ gradeReceived: number | null;
103
+ rubricState: string | null;
104
+ teacherComments: string | null;
102
105
  submittedAt: Date | null;
103
106
  submitted: boolean | null;
104
107
  returned: boolean | null;
@@ -571,6 +574,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
571
574
  teacherId: string;
572
575
  inProgress: boolean;
573
576
  order: number | null;
577
+ worksheetId: string | null;
574
578
  }[];
575
579
  meta: object;
576
580
  }>;
@@ -609,6 +613,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
609
613
  teacherId: string;
610
614
  inProgress: boolean;
611
615
  order: number | null;
616
+ worksheetId: string | null;
612
617
  };
613
618
  meta: object;
614
619
  }>;
@@ -647,6 +652,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
647
652
  teacherId: string;
648
653
  inProgress: boolean;
649
654
  order: number | null;
655
+ worksheetId: string | null;
650
656
  };
651
657
  meta: object;
652
658
  }>;
@@ -676,6 +682,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
676
682
  teacherId: string;
677
683
  inProgress: boolean;
678
684
  order: number | null;
685
+ worksheetId: string | null;
679
686
  };
680
687
  meta: object;
681
688
  }>;
@@ -709,6 +716,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
709
716
  teacherId: string;
710
717
  inProgress: boolean;
711
718
  order: number | null;
719
+ worksheetId: string | null;
712
720
  };
713
721
  meta: object;
714
722
  }>;
@@ -1184,6 +1192,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1184
1192
  teacherId: string;
1185
1193
  inProgress: boolean;
1186
1194
  order: number | null;
1195
+ worksheetId: string | null;
1187
1196
  } | null;
1188
1197
  meta: object;
1189
1198
  }>;
@@ -1214,6 +1223,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1214
1223
  teacherId: string;
1215
1224
  inProgress: boolean;
1216
1225
  order: number | null;
1226
+ worksheetId: string | null;
1217
1227
  } | null;
1218
1228
  meta: object;
1219
1229
  }>;
@@ -1244,6 +1254,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1244
1254
  teacherId: string;
1245
1255
  inProgress: boolean;
1246
1256
  order: number | null;
1257
+ worksheetId: string | null;
1247
1258
  } | null;
1248
1259
  meta: object;
1249
1260
  }>;
@@ -1482,6 +1493,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1482
1493
  teacherId: string;
1483
1494
  inProgress: boolean;
1484
1495
  order: number | null;
1496
+ worksheetId: string | null;
1485
1497
  };
1486
1498
  meta: object;
1487
1499
  }>;
@@ -1530,6 +1542,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1530
1542
  teacherId: string;
1531
1543
  inProgress: boolean;
1532
1544
  order: number | null;
1545
+ worksheetId: string | null;
1533
1546
  };
1534
1547
  student: {
1535
1548
  id: string;
@@ -1643,6 +1656,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1643
1656
  teacherId: string;
1644
1657
  inProgress: boolean;
1645
1658
  order: number | null;
1659
+ worksheetId: string | null;
1646
1660
  };
1647
1661
  student: {
1648
1662
  id: string;
@@ -1776,6 +1790,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1776
1790
  teacherId: string;
1777
1791
  inProgress: boolean;
1778
1792
  order: number | null;
1793
+ worksheetId: string | null;
1779
1794
  };
1780
1795
  student: {
1781
1796
  id: string;
@@ -1917,6 +1932,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1917
1932
  teacherId: string;
1918
1933
  inProgress: boolean;
1919
1934
  order: number | null;
1935
+ worksheetId: string | null;
1920
1936
  };
1921
1937
  student: {
1922
1938
  id: string;
@@ -2011,6 +2027,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2011
2027
  teacherId: string;
2012
2028
  inProgress: boolean;
2013
2029
  order: number | null;
2030
+ worksheetId: string | null;
2014
2031
  };
2015
2032
  student: {
2016
2033
  id: string;
@@ -2154,6 +2171,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2154
2171
  teacherId: string;
2155
2172
  inProgress: boolean;
2156
2173
  order: number | null;
2174
+ worksheetId: string | null;
2157
2175
  };
2158
2176
  student: {
2159
2177
  id: string;
@@ -2255,6 +2273,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2255
2273
  teacherId: string;
2256
2274
  inProgress: boolean;
2257
2275
  order: number | null;
2276
+ worksheetId: string | null;
2258
2277
  };
2259
2278
  };
2260
2279
  meta: object;
@@ -2306,6 +2325,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2306
2325
  teacherId: string;
2307
2326
  inProgress: boolean;
2308
2327
  order: number | null;
2328
+ worksheetId: string | null;
2309
2329
  };
2310
2330
  };
2311
2331
  meta: object;
@@ -2433,6 +2453,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2433
2453
  teacherId: string;
2434
2454
  inProgress: boolean;
2435
2455
  order: number | null;
2456
+ worksheetId: string | null;
2436
2457
  };
2437
2458
  meta: object;
2438
2459
  }>;
@@ -2524,6 +2545,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2524
2545
  teacherId: string;
2525
2546
  inProgress: boolean;
2526
2547
  order: number | null;
2548
+ worksheetId: string | null;
2527
2549
  };
2528
2550
  meta: object;
2529
2551
  }>;
@@ -2616,6 +2638,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2616
2638
  teacherId: string;
2617
2639
  inProgress: boolean;
2618
2640
  order: number | null;
2641
+ worksheetId: string | null;
2619
2642
  };
2620
2643
  meta: object;
2621
2644
  }>;
@@ -2707,6 +2730,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2707
2730
  teacherId: string;
2708
2731
  inProgress: boolean;
2709
2732
  order: number | null;
2733
+ worksheetId: string | null;
2710
2734
  };
2711
2735
  meta: object;
2712
2736
  }>;
@@ -3279,6 +3303,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3279
3303
  teacherId: string;
3280
3304
  inProgress: boolean;
3281
3305
  order: number | null;
3306
+ worksheetId: string | null;
3282
3307
  };
3283
3308
  };
3284
3309
  meta: object;
@@ -3323,6 +3348,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3323
3348
  teacherId: string;
3324
3349
  inProgress: boolean;
3325
3350
  order: number | null;
3351
+ worksheetId: string | null;
3326
3352
  };
3327
3353
  };
3328
3354
  meta: object;
@@ -4659,6 +4685,374 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4659
4685
  meta: object;
4660
4686
  }>;
4661
4687
  }>>;
4688
+ worksheet: import("@trpc/server").TRPCBuiltRouter<{
4689
+ ctx: import("../trpc.js").Context;
4690
+ meta: object;
4691
+ errorShape: {
4692
+ data: {
4693
+ zodError: import("zod").typeToFlattenedError<any, string> | null;
4694
+ prismaError: import("../utils/prismaErrorHandler.js").PrismaErrorInfo | null;
4695
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
4696
+ httpStatus: number;
4697
+ path?: string;
4698
+ stack?: string;
4699
+ };
4700
+ message: string;
4701
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
4702
+ };
4703
+ transformer: false;
4704
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
4705
+ getWorksheet: import("@trpc/server").TRPCQueryProcedure<{
4706
+ input: {
4707
+ worksheetId: string;
4708
+ };
4709
+ output: {
4710
+ class: {
4711
+ id: string;
4712
+ schoolId: string | null;
4713
+ name: string;
4714
+ subject: string;
4715
+ color: string | null;
4716
+ section: string;
4717
+ syllabus: string | null;
4718
+ } | null;
4719
+ questions: {
4720
+ type: import(".prisma/client").$Enums.WorksheetQuestionType;
4721
+ id: string;
4722
+ options: import("@prisma/client/runtime/library.js").JsonValue | null;
4723
+ createdAt: Date;
4724
+ worksheetId: string;
4725
+ markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
4726
+ updatedAt: Date;
4727
+ question: string;
4728
+ answer: string;
4729
+ }[];
4730
+ } & {
4731
+ id: string;
4732
+ name: string;
4733
+ classId: string;
4734
+ createdAt: Date;
4735
+ updatedAt: Date;
4736
+ };
4737
+ meta: object;
4738
+ }>;
4739
+ listWorksheets: import("@trpc/server").TRPCQueryProcedure<{
4740
+ input: {
4741
+ classId: string;
4742
+ };
4743
+ output: {
4744
+ questionCount: number;
4745
+ questions: {
4746
+ id: string;
4747
+ }[];
4748
+ id: string;
4749
+ name: string;
4750
+ classId: string;
4751
+ createdAt: Date;
4752
+ updatedAt: Date;
4753
+ }[];
4754
+ meta: object;
4755
+ }>;
4756
+ updateWorksheet: import("@trpc/server").TRPCMutationProcedure<{
4757
+ input: {
4758
+ worksheetId: string;
4759
+ name?: string | undefined;
4760
+ };
4761
+ output: {
4762
+ id: string;
4763
+ name: string;
4764
+ classId: string;
4765
+ createdAt: Date;
4766
+ updatedAt: Date;
4767
+ };
4768
+ meta: object;
4769
+ }>;
4770
+ deleteWorksheet: import("@trpc/server").TRPCMutationProcedure<{
4771
+ input: {
4772
+ worksheetId: string;
4773
+ };
4774
+ output: {
4775
+ id: string;
4776
+ name: string;
4777
+ classId: string;
4778
+ createdAt: Date;
4779
+ updatedAt: Date;
4780
+ };
4781
+ meta: object;
4782
+ }>;
4783
+ create: import("@trpc/server").TRPCMutationProcedure<{
4784
+ input: {
4785
+ name: string;
4786
+ classId: string;
4787
+ };
4788
+ output: {
4789
+ id: string;
4790
+ name: string;
4791
+ classId: string;
4792
+ createdAt: Date;
4793
+ updatedAt: Date;
4794
+ };
4795
+ meta: object;
4796
+ }>;
4797
+ addQuestion: import("@trpc/server").TRPCMutationProcedure<{
4798
+ input: {
4799
+ type: "ESSAY" | "MULTIPLE_CHOICE" | "TRUE_FALSE" | "SHORT_ANSWER" | "LONG_ANSWER" | "MATH_EXPRESSION";
4800
+ worksheetId: string;
4801
+ question: string;
4802
+ answer: string;
4803
+ options?: any;
4804
+ markScheme?: any;
4805
+ };
4806
+ output: {
4807
+ type: import(".prisma/client").$Enums.WorksheetQuestionType;
4808
+ id: string;
4809
+ options: import("@prisma/client/runtime/library.js").JsonValue | null;
4810
+ createdAt: Date;
4811
+ worksheetId: string;
4812
+ markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
4813
+ updatedAt: Date;
4814
+ question: string;
4815
+ answer: string;
4816
+ };
4817
+ meta: object;
4818
+ }>;
4819
+ updateQuestion: import("@trpc/server").TRPCMutationProcedure<{
4820
+ input: {
4821
+ worksheetId: string;
4822
+ questionId: string;
4823
+ type?: "ESSAY" | "MULTIPLE_CHOICE" | "TRUE_FALSE" | "SHORT_ANSWER" | "LONG_ANSWER" | "MATH_EXPRESSION" | undefined;
4824
+ options?: any;
4825
+ markScheme?: any;
4826
+ question?: string | undefined;
4827
+ answer?: string | undefined;
4828
+ };
4829
+ output: {
4830
+ type: import(".prisma/client").$Enums.WorksheetQuestionType;
4831
+ id: string;
4832
+ options: import("@prisma/client/runtime/library.js").JsonValue | null;
4833
+ createdAt: Date;
4834
+ worksheetId: string;
4835
+ markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
4836
+ updatedAt: Date;
4837
+ question: string;
4838
+ answer: string;
4839
+ };
4840
+ meta: object;
4841
+ }>;
4842
+ deleteQuestion: import("@trpc/server").TRPCMutationProcedure<{
4843
+ input: {
4844
+ worksheetId: string;
4845
+ questionId: string;
4846
+ };
4847
+ output: {
4848
+ type: import(".prisma/client").$Enums.WorksheetQuestionType;
4849
+ id: string;
4850
+ options: import("@prisma/client/runtime/library.js").JsonValue | null;
4851
+ createdAt: Date;
4852
+ worksheetId: string;
4853
+ markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
4854
+ updatedAt: Date;
4855
+ question: string;
4856
+ answer: string;
4857
+ };
4858
+ meta: object;
4859
+ }>;
4860
+ getWorksheetSubmission: import("@trpc/server").TRPCQueryProcedure<{
4861
+ input: {
4862
+ submissionId: string;
4863
+ worksheetId: string;
4864
+ };
4865
+ output: ({
4866
+ responses: {
4867
+ id: string;
4868
+ feedback: string | null;
4869
+ studentId: string;
4870
+ createdAt: Date;
4871
+ updatedAt: Date;
4872
+ questionId: string;
4873
+ response: string;
4874
+ isCorrect: boolean;
4875
+ studentWorksheetResponseId: string | null;
4876
+ }[];
4877
+ } & {
4878
+ id: string;
4879
+ submissionId: string | null;
4880
+ studentId: string;
4881
+ createdAt: Date;
4882
+ worksheetId: string;
4883
+ updatedAt: Date;
4884
+ submittedAt: Date | null;
4885
+ submitted: boolean;
4886
+ })[];
4887
+ meta: object;
4888
+ }>;
4889
+ answerQuestion: import("@trpc/server").TRPCMutationProcedure<{
4890
+ input: {
4891
+ questionId: string;
4892
+ worksheetResponseId: string;
4893
+ response: string;
4894
+ };
4895
+ output: ({
4896
+ responses: {
4897
+ id: string;
4898
+ feedback: string | null;
4899
+ studentId: string;
4900
+ createdAt: Date;
4901
+ updatedAt: Date;
4902
+ questionId: string;
4903
+ response: string;
4904
+ isCorrect: boolean;
4905
+ studentWorksheetResponseId: string | null;
4906
+ }[];
4907
+ } & {
4908
+ id: string;
4909
+ submissionId: string | null;
4910
+ studentId: string;
4911
+ createdAt: Date;
4912
+ worksheetId: string;
4913
+ updatedAt: Date;
4914
+ submittedAt: Date | null;
4915
+ submitted: boolean;
4916
+ }) | null;
4917
+ meta: object;
4918
+ }>;
4919
+ submitWorksheet: import("@trpc/server").TRPCMutationProcedure<{
4920
+ input: {
4921
+ worksheetResponseId: string;
4922
+ };
4923
+ output: {
4924
+ responses: {
4925
+ id: string;
4926
+ feedback: string | null;
4927
+ studentId: string;
4928
+ createdAt: Date;
4929
+ updatedAt: Date;
4930
+ questionId: string;
4931
+ response: string;
4932
+ isCorrect: boolean;
4933
+ studentWorksheetResponseId: string | null;
4934
+ }[];
4935
+ } & {
4936
+ id: string;
4937
+ submissionId: string | null;
4938
+ studentId: string;
4939
+ createdAt: Date;
4940
+ worksheetId: string;
4941
+ updatedAt: Date;
4942
+ submittedAt: Date | null;
4943
+ submitted: boolean;
4944
+ };
4945
+ meta: object;
4946
+ }>;
4947
+ getOrCreateWorksheetResponse: import("@trpc/server").TRPCMutationProcedure<{
4948
+ input: {
4949
+ studentId: string;
4950
+ worksheetId: string;
4951
+ };
4952
+ output: {
4953
+ responses: ({
4954
+ question: {
4955
+ type: import(".prisma/client").$Enums.WorksheetQuestionType;
4956
+ id: string;
4957
+ options: import("@prisma/client/runtime/library.js").JsonValue | null;
4958
+ createdAt: Date;
4959
+ worksheetId: string;
4960
+ markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
4961
+ updatedAt: Date;
4962
+ question: string;
4963
+ answer: string;
4964
+ };
4965
+ } & {
4966
+ id: string;
4967
+ feedback: string | null;
4968
+ studentId: string;
4969
+ createdAt: Date;
4970
+ updatedAt: Date;
4971
+ questionId: string;
4972
+ response: string;
4973
+ isCorrect: boolean;
4974
+ studentWorksheetResponseId: string | null;
4975
+ })[];
4976
+ } & {
4977
+ id: string;
4978
+ submissionId: string | null;
4979
+ studentId: string;
4980
+ createdAt: Date;
4981
+ worksheetId: string;
4982
+ updatedAt: Date;
4983
+ submittedAt: Date | null;
4984
+ submitted: boolean;
4985
+ };
4986
+ meta: object;
4987
+ }>;
4988
+ getWorksheetResponses: import("@trpc/server").TRPCQueryProcedure<{
4989
+ input: {
4990
+ worksheetId: string;
4991
+ };
4992
+ output: ({
4993
+ student: {
4994
+ id: string;
4995
+ username: string;
4996
+ profile: {
4997
+ displayName: string | null;
4998
+ profilePicture: string | null;
4999
+ } | null;
5000
+ };
5001
+ responses: ({
5002
+ question: {
5003
+ type: import(".prisma/client").$Enums.WorksheetQuestionType;
5004
+ id: string;
5005
+ options: import("@prisma/client/runtime/library.js").JsonValue | null;
5006
+ createdAt: Date;
5007
+ worksheetId: string;
5008
+ markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
5009
+ updatedAt: Date;
5010
+ question: string;
5011
+ answer: string;
5012
+ };
5013
+ } & {
5014
+ id: string;
5015
+ feedback: string | null;
5016
+ studentId: string;
5017
+ createdAt: Date;
5018
+ updatedAt: Date;
5019
+ questionId: string;
5020
+ response: string;
5021
+ isCorrect: boolean;
5022
+ studentWorksheetResponseId: string | null;
5023
+ })[];
5024
+ } & {
5025
+ id: string;
5026
+ submissionId: string | null;
5027
+ studentId: string;
5028
+ createdAt: Date;
5029
+ worksheetId: string;
5030
+ updatedAt: Date;
5031
+ submittedAt: Date | null;
5032
+ submitted: boolean;
5033
+ })[];
5034
+ meta: object;
5035
+ }>;
5036
+ gradeAnswer: import("@trpc/server").TRPCMutationProcedure<{
5037
+ input: {
5038
+ responseId: string;
5039
+ isCorrect: boolean;
5040
+ feedback?: string | undefined;
5041
+ };
5042
+ output: {
5043
+ id: string;
5044
+ feedback: string | null;
5045
+ studentId: string;
5046
+ createdAt: Date;
5047
+ updatedAt: Date;
5048
+ questionId: string;
5049
+ response: string;
5050
+ isCorrect: boolean;
5051
+ studentWorksheetResponseId: string | null;
5052
+ };
5053
+ meta: object;
5054
+ }>;
5055
+ }>>;
4662
5056
  }>>;
4663
5057
  export type AppRouter = typeof appRouter;
4664
5058
  export type RouterInputs = inferRouterInputs<AppRouter>;
@@ -4763,6 +5157,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
4763
5157
  submissions: {
4764
5158
  id: string;
4765
5159
  studentId: string;
5160
+ gradeReceived: number | null;
5161
+ rubricState: string | null;
5162
+ teacherComments: string | null;
4766
5163
  submittedAt: Date | null;
4767
5164
  submitted: boolean | null;
4768
5165
  returned: boolean | null;
@@ -5235,6 +5632,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5235
5632
  teacherId: string;
5236
5633
  inProgress: boolean;
5237
5634
  order: number | null;
5635
+ worksheetId: string | null;
5238
5636
  }[];
5239
5637
  meta: object;
5240
5638
  }>;
@@ -5273,6 +5671,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5273
5671
  teacherId: string;
5274
5672
  inProgress: boolean;
5275
5673
  order: number | null;
5674
+ worksheetId: string | null;
5276
5675
  };
5277
5676
  meta: object;
5278
5677
  }>;
@@ -5311,6 +5710,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5311
5710
  teacherId: string;
5312
5711
  inProgress: boolean;
5313
5712
  order: number | null;
5713
+ worksheetId: string | null;
5314
5714
  };
5315
5715
  meta: object;
5316
5716
  }>;
@@ -5340,6 +5740,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5340
5740
  teacherId: string;
5341
5741
  inProgress: boolean;
5342
5742
  order: number | null;
5743
+ worksheetId: string | null;
5343
5744
  };
5344
5745
  meta: object;
5345
5746
  }>;
@@ -5373,6 +5774,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5373
5774
  teacherId: string;
5374
5775
  inProgress: boolean;
5375
5776
  order: number | null;
5777
+ worksheetId: string | null;
5376
5778
  };
5377
5779
  meta: object;
5378
5780
  }>;
@@ -5848,6 +6250,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5848
6250
  teacherId: string;
5849
6251
  inProgress: boolean;
5850
6252
  order: number | null;
6253
+ worksheetId: string | null;
5851
6254
  } | null;
5852
6255
  meta: object;
5853
6256
  }>;
@@ -5878,6 +6281,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5878
6281
  teacherId: string;
5879
6282
  inProgress: boolean;
5880
6283
  order: number | null;
6284
+ worksheetId: string | null;
5881
6285
  } | null;
5882
6286
  meta: object;
5883
6287
  }>;
@@ -5908,6 +6312,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5908
6312
  teacherId: string;
5909
6313
  inProgress: boolean;
5910
6314
  order: number | null;
6315
+ worksheetId: string | null;
5911
6316
  } | null;
5912
6317
  meta: object;
5913
6318
  }>;
@@ -6146,6 +6551,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6146
6551
  teacherId: string;
6147
6552
  inProgress: boolean;
6148
6553
  order: number | null;
6554
+ worksheetId: string | null;
6149
6555
  };
6150
6556
  meta: object;
6151
6557
  }>;
@@ -6194,6 +6600,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6194
6600
  teacherId: string;
6195
6601
  inProgress: boolean;
6196
6602
  order: number | null;
6603
+ worksheetId: string | null;
6197
6604
  };
6198
6605
  student: {
6199
6606
  id: string;
@@ -6307,6 +6714,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6307
6714
  teacherId: string;
6308
6715
  inProgress: boolean;
6309
6716
  order: number | null;
6717
+ worksheetId: string | null;
6310
6718
  };
6311
6719
  student: {
6312
6720
  id: string;
@@ -6440,6 +6848,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6440
6848
  teacherId: string;
6441
6849
  inProgress: boolean;
6442
6850
  order: number | null;
6851
+ worksheetId: string | null;
6443
6852
  };
6444
6853
  student: {
6445
6854
  id: string;
@@ -6581,6 +6990,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6581
6990
  teacherId: string;
6582
6991
  inProgress: boolean;
6583
6992
  order: number | null;
6993
+ worksheetId: string | null;
6584
6994
  };
6585
6995
  student: {
6586
6996
  id: string;
@@ -6675,6 +7085,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6675
7085
  teacherId: string;
6676
7086
  inProgress: boolean;
6677
7087
  order: number | null;
7088
+ worksheetId: string | null;
6678
7089
  };
6679
7090
  student: {
6680
7091
  id: string;
@@ -6818,6 +7229,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6818
7229
  teacherId: string;
6819
7230
  inProgress: boolean;
6820
7231
  order: number | null;
7232
+ worksheetId: string | null;
6821
7233
  };
6822
7234
  student: {
6823
7235
  id: string;
@@ -6919,6 +7331,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6919
7331
  teacherId: string;
6920
7332
  inProgress: boolean;
6921
7333
  order: number | null;
7334
+ worksheetId: string | null;
6922
7335
  };
6923
7336
  };
6924
7337
  meta: object;
@@ -6970,6 +7383,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6970
7383
  teacherId: string;
6971
7384
  inProgress: boolean;
6972
7385
  order: number | null;
7386
+ worksheetId: string | null;
6973
7387
  };
6974
7388
  };
6975
7389
  meta: object;
@@ -7097,6 +7511,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7097
7511
  teacherId: string;
7098
7512
  inProgress: boolean;
7099
7513
  order: number | null;
7514
+ worksheetId: string | null;
7100
7515
  };
7101
7516
  meta: object;
7102
7517
  }>;
@@ -7188,6 +7603,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7188
7603
  teacherId: string;
7189
7604
  inProgress: boolean;
7190
7605
  order: number | null;
7606
+ worksheetId: string | null;
7191
7607
  };
7192
7608
  meta: object;
7193
7609
  }>;
@@ -7280,6 +7696,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7280
7696
  teacherId: string;
7281
7697
  inProgress: boolean;
7282
7698
  order: number | null;
7699
+ worksheetId: string | null;
7283
7700
  };
7284
7701
  meta: object;
7285
7702
  }>;
@@ -7371,6 +7788,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7371
7788
  teacherId: string;
7372
7789
  inProgress: boolean;
7373
7790
  order: number | null;
7791
+ worksheetId: string | null;
7374
7792
  };
7375
7793
  meta: object;
7376
7794
  }>;
@@ -7943,6 +8361,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7943
8361
  teacherId: string;
7944
8362
  inProgress: boolean;
7945
8363
  order: number | null;
8364
+ worksheetId: string | null;
7946
8365
  };
7947
8366
  };
7948
8367
  meta: object;
@@ -7987,6 +8406,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7987
8406
  teacherId: string;
7988
8407
  inProgress: boolean;
7989
8408
  order: number | null;
8409
+ worksheetId: string | null;
7990
8410
  };
7991
8411
  };
7992
8412
  meta: object;
@@ -9323,5 +9743,373 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9323
9743
  meta: object;
9324
9744
  }>;
9325
9745
  }>>;
9746
+ worksheet: import("@trpc/server").TRPCBuiltRouter<{
9747
+ ctx: import("../trpc.js").Context;
9748
+ meta: object;
9749
+ errorShape: {
9750
+ data: {
9751
+ zodError: import("zod").typeToFlattenedError<any, string> | null;
9752
+ prismaError: import("../utils/prismaErrorHandler.js").PrismaErrorInfo | null;
9753
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
9754
+ httpStatus: number;
9755
+ path?: string;
9756
+ stack?: string;
9757
+ };
9758
+ message: string;
9759
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
9760
+ };
9761
+ transformer: false;
9762
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
9763
+ getWorksheet: import("@trpc/server").TRPCQueryProcedure<{
9764
+ input: {
9765
+ worksheetId: string;
9766
+ };
9767
+ output: {
9768
+ class: {
9769
+ id: string;
9770
+ schoolId: string | null;
9771
+ name: string;
9772
+ subject: string;
9773
+ color: string | null;
9774
+ section: string;
9775
+ syllabus: string | null;
9776
+ } | null;
9777
+ questions: {
9778
+ type: import(".prisma/client").$Enums.WorksheetQuestionType;
9779
+ id: string;
9780
+ options: import("@prisma/client/runtime/library.js").JsonValue | null;
9781
+ createdAt: Date;
9782
+ worksheetId: string;
9783
+ markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
9784
+ updatedAt: Date;
9785
+ question: string;
9786
+ answer: string;
9787
+ }[];
9788
+ } & {
9789
+ id: string;
9790
+ name: string;
9791
+ classId: string;
9792
+ createdAt: Date;
9793
+ updatedAt: Date;
9794
+ };
9795
+ meta: object;
9796
+ }>;
9797
+ listWorksheets: import("@trpc/server").TRPCQueryProcedure<{
9798
+ input: {
9799
+ classId: string;
9800
+ };
9801
+ output: {
9802
+ questionCount: number;
9803
+ questions: {
9804
+ id: string;
9805
+ }[];
9806
+ id: string;
9807
+ name: string;
9808
+ classId: string;
9809
+ createdAt: Date;
9810
+ updatedAt: Date;
9811
+ }[];
9812
+ meta: object;
9813
+ }>;
9814
+ updateWorksheet: import("@trpc/server").TRPCMutationProcedure<{
9815
+ input: {
9816
+ worksheetId: string;
9817
+ name?: string | undefined;
9818
+ };
9819
+ output: {
9820
+ id: string;
9821
+ name: string;
9822
+ classId: string;
9823
+ createdAt: Date;
9824
+ updatedAt: Date;
9825
+ };
9826
+ meta: object;
9827
+ }>;
9828
+ deleteWorksheet: import("@trpc/server").TRPCMutationProcedure<{
9829
+ input: {
9830
+ worksheetId: string;
9831
+ };
9832
+ output: {
9833
+ id: string;
9834
+ name: string;
9835
+ classId: string;
9836
+ createdAt: Date;
9837
+ updatedAt: Date;
9838
+ };
9839
+ meta: object;
9840
+ }>;
9841
+ create: import("@trpc/server").TRPCMutationProcedure<{
9842
+ input: {
9843
+ name: string;
9844
+ classId: string;
9845
+ };
9846
+ output: {
9847
+ id: string;
9848
+ name: string;
9849
+ classId: string;
9850
+ createdAt: Date;
9851
+ updatedAt: Date;
9852
+ };
9853
+ meta: object;
9854
+ }>;
9855
+ addQuestion: import("@trpc/server").TRPCMutationProcedure<{
9856
+ input: {
9857
+ type: "ESSAY" | "MULTIPLE_CHOICE" | "TRUE_FALSE" | "SHORT_ANSWER" | "LONG_ANSWER" | "MATH_EXPRESSION";
9858
+ worksheetId: string;
9859
+ question: string;
9860
+ answer: string;
9861
+ options?: any;
9862
+ markScheme?: any;
9863
+ };
9864
+ output: {
9865
+ type: import(".prisma/client").$Enums.WorksheetQuestionType;
9866
+ id: string;
9867
+ options: import("@prisma/client/runtime/library.js").JsonValue | null;
9868
+ createdAt: Date;
9869
+ worksheetId: string;
9870
+ markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
9871
+ updatedAt: Date;
9872
+ question: string;
9873
+ answer: string;
9874
+ };
9875
+ meta: object;
9876
+ }>;
9877
+ updateQuestion: import("@trpc/server").TRPCMutationProcedure<{
9878
+ input: {
9879
+ worksheetId: string;
9880
+ questionId: string;
9881
+ type?: "ESSAY" | "MULTIPLE_CHOICE" | "TRUE_FALSE" | "SHORT_ANSWER" | "LONG_ANSWER" | "MATH_EXPRESSION" | undefined;
9882
+ options?: any;
9883
+ markScheme?: any;
9884
+ question?: string | undefined;
9885
+ answer?: string | undefined;
9886
+ };
9887
+ output: {
9888
+ type: import(".prisma/client").$Enums.WorksheetQuestionType;
9889
+ id: string;
9890
+ options: import("@prisma/client/runtime/library.js").JsonValue | null;
9891
+ createdAt: Date;
9892
+ worksheetId: string;
9893
+ markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
9894
+ updatedAt: Date;
9895
+ question: string;
9896
+ answer: string;
9897
+ };
9898
+ meta: object;
9899
+ }>;
9900
+ deleteQuestion: import("@trpc/server").TRPCMutationProcedure<{
9901
+ input: {
9902
+ worksheetId: string;
9903
+ questionId: string;
9904
+ };
9905
+ output: {
9906
+ type: import(".prisma/client").$Enums.WorksheetQuestionType;
9907
+ id: string;
9908
+ options: import("@prisma/client/runtime/library.js").JsonValue | null;
9909
+ createdAt: Date;
9910
+ worksheetId: string;
9911
+ markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
9912
+ updatedAt: Date;
9913
+ question: string;
9914
+ answer: string;
9915
+ };
9916
+ meta: object;
9917
+ }>;
9918
+ getWorksheetSubmission: import("@trpc/server").TRPCQueryProcedure<{
9919
+ input: {
9920
+ submissionId: string;
9921
+ worksheetId: string;
9922
+ };
9923
+ output: ({
9924
+ responses: {
9925
+ id: string;
9926
+ feedback: string | null;
9927
+ studentId: string;
9928
+ createdAt: Date;
9929
+ updatedAt: Date;
9930
+ questionId: string;
9931
+ response: string;
9932
+ isCorrect: boolean;
9933
+ studentWorksheetResponseId: string | null;
9934
+ }[];
9935
+ } & {
9936
+ id: string;
9937
+ submissionId: string | null;
9938
+ studentId: string;
9939
+ createdAt: Date;
9940
+ worksheetId: string;
9941
+ updatedAt: Date;
9942
+ submittedAt: Date | null;
9943
+ submitted: boolean;
9944
+ })[];
9945
+ meta: object;
9946
+ }>;
9947
+ answerQuestion: import("@trpc/server").TRPCMutationProcedure<{
9948
+ input: {
9949
+ questionId: string;
9950
+ worksheetResponseId: string;
9951
+ response: string;
9952
+ };
9953
+ output: ({
9954
+ responses: {
9955
+ id: string;
9956
+ feedback: string | null;
9957
+ studentId: string;
9958
+ createdAt: Date;
9959
+ updatedAt: Date;
9960
+ questionId: string;
9961
+ response: string;
9962
+ isCorrect: boolean;
9963
+ studentWorksheetResponseId: string | null;
9964
+ }[];
9965
+ } & {
9966
+ id: string;
9967
+ submissionId: string | null;
9968
+ studentId: string;
9969
+ createdAt: Date;
9970
+ worksheetId: string;
9971
+ updatedAt: Date;
9972
+ submittedAt: Date | null;
9973
+ submitted: boolean;
9974
+ }) | null;
9975
+ meta: object;
9976
+ }>;
9977
+ submitWorksheet: import("@trpc/server").TRPCMutationProcedure<{
9978
+ input: {
9979
+ worksheetResponseId: string;
9980
+ };
9981
+ output: {
9982
+ responses: {
9983
+ id: string;
9984
+ feedback: string | null;
9985
+ studentId: string;
9986
+ createdAt: Date;
9987
+ updatedAt: Date;
9988
+ questionId: string;
9989
+ response: string;
9990
+ isCorrect: boolean;
9991
+ studentWorksheetResponseId: string | null;
9992
+ }[];
9993
+ } & {
9994
+ id: string;
9995
+ submissionId: string | null;
9996
+ studentId: string;
9997
+ createdAt: Date;
9998
+ worksheetId: string;
9999
+ updatedAt: Date;
10000
+ submittedAt: Date | null;
10001
+ submitted: boolean;
10002
+ };
10003
+ meta: object;
10004
+ }>;
10005
+ getOrCreateWorksheetResponse: import("@trpc/server").TRPCMutationProcedure<{
10006
+ input: {
10007
+ studentId: string;
10008
+ worksheetId: string;
10009
+ };
10010
+ output: {
10011
+ responses: ({
10012
+ question: {
10013
+ type: import(".prisma/client").$Enums.WorksheetQuestionType;
10014
+ id: string;
10015
+ options: import("@prisma/client/runtime/library.js").JsonValue | null;
10016
+ createdAt: Date;
10017
+ worksheetId: string;
10018
+ markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
10019
+ updatedAt: Date;
10020
+ question: string;
10021
+ answer: string;
10022
+ };
10023
+ } & {
10024
+ id: string;
10025
+ feedback: string | null;
10026
+ studentId: string;
10027
+ createdAt: Date;
10028
+ updatedAt: Date;
10029
+ questionId: string;
10030
+ response: string;
10031
+ isCorrect: boolean;
10032
+ studentWorksheetResponseId: string | null;
10033
+ })[];
10034
+ } & {
10035
+ id: string;
10036
+ submissionId: string | null;
10037
+ studentId: string;
10038
+ createdAt: Date;
10039
+ worksheetId: string;
10040
+ updatedAt: Date;
10041
+ submittedAt: Date | null;
10042
+ submitted: boolean;
10043
+ };
10044
+ meta: object;
10045
+ }>;
10046
+ getWorksheetResponses: import("@trpc/server").TRPCQueryProcedure<{
10047
+ input: {
10048
+ worksheetId: string;
10049
+ };
10050
+ output: ({
10051
+ student: {
10052
+ id: string;
10053
+ username: string;
10054
+ profile: {
10055
+ displayName: string | null;
10056
+ profilePicture: string | null;
10057
+ } | null;
10058
+ };
10059
+ responses: ({
10060
+ question: {
10061
+ type: import(".prisma/client").$Enums.WorksheetQuestionType;
10062
+ id: string;
10063
+ options: import("@prisma/client/runtime/library.js").JsonValue | null;
10064
+ createdAt: Date;
10065
+ worksheetId: string;
10066
+ markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
10067
+ updatedAt: Date;
10068
+ question: string;
10069
+ answer: string;
10070
+ };
10071
+ } & {
10072
+ id: string;
10073
+ feedback: string | null;
10074
+ studentId: string;
10075
+ createdAt: Date;
10076
+ updatedAt: Date;
10077
+ questionId: string;
10078
+ response: string;
10079
+ isCorrect: boolean;
10080
+ studentWorksheetResponseId: string | null;
10081
+ })[];
10082
+ } & {
10083
+ id: string;
10084
+ submissionId: string | null;
10085
+ studentId: string;
10086
+ createdAt: Date;
10087
+ worksheetId: string;
10088
+ updatedAt: Date;
10089
+ submittedAt: Date | null;
10090
+ submitted: boolean;
10091
+ })[];
10092
+ meta: object;
10093
+ }>;
10094
+ gradeAnswer: import("@trpc/server").TRPCMutationProcedure<{
10095
+ input: {
10096
+ responseId: string;
10097
+ isCorrect: boolean;
10098
+ feedback?: string | undefined;
10099
+ };
10100
+ output: {
10101
+ id: string;
10102
+ feedback: string | null;
10103
+ studentId: string;
10104
+ createdAt: Date;
10105
+ updatedAt: Date;
10106
+ questionId: string;
10107
+ response: string;
10108
+ isCorrect: boolean;
10109
+ studentWorksheetResponseId: string | null;
10110
+ };
10111
+ meta: object;
10112
+ }>;
10113
+ }>>;
9326
10114
  }>>;
9327
10115
  //# sourceMappingURL=_app.d.ts.map