@studious-lms/server 1.2.26 → 1.2.28
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.
- package/dist/routers/_app.d.ts +774 -0
- package/dist/routers/_app.d.ts.map +1 -1
- package/dist/routers/_app.js +2 -0
- package/dist/routers/assignment.d.ts +16 -0
- package/dist/routers/assignment.d.ts.map +1 -1
- package/dist/routers/auth.js +1 -1
- package/dist/routers/class.d.ts +9 -0
- package/dist/routers/class.d.ts.map +1 -1
- package/dist/routers/class.js +4 -0
- package/dist/routers/event.d.ts +2 -0
- package/dist/routers/event.d.ts.map +1 -1
- package/dist/routers/worksheet.d.ts +362 -0
- package/dist/routers/worksheet.d.ts.map +1 -0
- package/dist/routers/worksheet.js +365 -0
- package/package.json +1 -1
- package/prisma/schema.prisma +70 -1
- package/src/routers/_app.ts +2 -0
- package/src/routers/auth.ts +1 -1
- package/src/routers/class.ts +4 -0
- package/src/routers/worksheet.ts +419 -0
package/dist/routers/_app.d.ts
CHANGED
|
@@ -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;
|
|
@@ -138,6 +141,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
138
141
|
} | null;
|
|
139
142
|
};
|
|
140
143
|
createdAt: Date;
|
|
144
|
+
modifiedAt: Date | null;
|
|
141
145
|
}[];
|
|
142
146
|
students: {
|
|
143
147
|
id: string;
|
|
@@ -570,6 +574,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
570
574
|
teacherId: string;
|
|
571
575
|
inProgress: boolean;
|
|
572
576
|
order: number | null;
|
|
577
|
+
worksheetId: string | null;
|
|
573
578
|
}[];
|
|
574
579
|
meta: object;
|
|
575
580
|
}>;
|
|
@@ -608,6 +613,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
608
613
|
teacherId: string;
|
|
609
614
|
inProgress: boolean;
|
|
610
615
|
order: number | null;
|
|
616
|
+
worksheetId: string | null;
|
|
611
617
|
};
|
|
612
618
|
meta: object;
|
|
613
619
|
}>;
|
|
@@ -646,6 +652,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
646
652
|
teacherId: string;
|
|
647
653
|
inProgress: boolean;
|
|
648
654
|
order: number | null;
|
|
655
|
+
worksheetId: string | null;
|
|
649
656
|
};
|
|
650
657
|
meta: object;
|
|
651
658
|
}>;
|
|
@@ -675,6 +682,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
675
682
|
teacherId: string;
|
|
676
683
|
inProgress: boolean;
|
|
677
684
|
order: number | null;
|
|
685
|
+
worksheetId: string | null;
|
|
678
686
|
};
|
|
679
687
|
meta: object;
|
|
680
688
|
}>;
|
|
@@ -708,6 +716,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
708
716
|
teacherId: string;
|
|
709
717
|
inProgress: boolean;
|
|
710
718
|
order: number | null;
|
|
719
|
+
worksheetId: string | null;
|
|
711
720
|
};
|
|
712
721
|
meta: object;
|
|
713
722
|
}>;
|
|
@@ -1183,6 +1192,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1183
1192
|
teacherId: string;
|
|
1184
1193
|
inProgress: boolean;
|
|
1185
1194
|
order: number | null;
|
|
1195
|
+
worksheetId: string | null;
|
|
1186
1196
|
} | null;
|
|
1187
1197
|
meta: object;
|
|
1188
1198
|
}>;
|
|
@@ -1213,6 +1223,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1213
1223
|
teacherId: string;
|
|
1214
1224
|
inProgress: boolean;
|
|
1215
1225
|
order: number | null;
|
|
1226
|
+
worksheetId: string | null;
|
|
1216
1227
|
} | null;
|
|
1217
1228
|
meta: object;
|
|
1218
1229
|
}>;
|
|
@@ -1243,6 +1254,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1243
1254
|
teacherId: string;
|
|
1244
1255
|
inProgress: boolean;
|
|
1245
1256
|
order: number | null;
|
|
1257
|
+
worksheetId: string | null;
|
|
1246
1258
|
} | null;
|
|
1247
1259
|
meta: object;
|
|
1248
1260
|
}>;
|
|
@@ -1481,6 +1493,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1481
1493
|
teacherId: string;
|
|
1482
1494
|
inProgress: boolean;
|
|
1483
1495
|
order: number | null;
|
|
1496
|
+
worksheetId: string | null;
|
|
1484
1497
|
};
|
|
1485
1498
|
meta: object;
|
|
1486
1499
|
}>;
|
|
@@ -1529,6 +1542,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1529
1542
|
teacherId: string;
|
|
1530
1543
|
inProgress: boolean;
|
|
1531
1544
|
order: number | null;
|
|
1545
|
+
worksheetId: string | null;
|
|
1532
1546
|
};
|
|
1533
1547
|
student: {
|
|
1534
1548
|
id: string;
|
|
@@ -1642,6 +1656,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1642
1656
|
teacherId: string;
|
|
1643
1657
|
inProgress: boolean;
|
|
1644
1658
|
order: number | null;
|
|
1659
|
+
worksheetId: string | null;
|
|
1645
1660
|
};
|
|
1646
1661
|
student: {
|
|
1647
1662
|
id: string;
|
|
@@ -1775,6 +1790,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1775
1790
|
teacherId: string;
|
|
1776
1791
|
inProgress: boolean;
|
|
1777
1792
|
order: number | null;
|
|
1793
|
+
worksheetId: string | null;
|
|
1778
1794
|
};
|
|
1779
1795
|
student: {
|
|
1780
1796
|
id: string;
|
|
@@ -1916,6 +1932,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1916
1932
|
teacherId: string;
|
|
1917
1933
|
inProgress: boolean;
|
|
1918
1934
|
order: number | null;
|
|
1935
|
+
worksheetId: string | null;
|
|
1919
1936
|
};
|
|
1920
1937
|
student: {
|
|
1921
1938
|
id: string;
|
|
@@ -2010,6 +2027,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2010
2027
|
teacherId: string;
|
|
2011
2028
|
inProgress: boolean;
|
|
2012
2029
|
order: number | null;
|
|
2030
|
+
worksheetId: string | null;
|
|
2013
2031
|
};
|
|
2014
2032
|
student: {
|
|
2015
2033
|
id: string;
|
|
@@ -2153,6 +2171,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2153
2171
|
teacherId: string;
|
|
2154
2172
|
inProgress: boolean;
|
|
2155
2173
|
order: number | null;
|
|
2174
|
+
worksheetId: string | null;
|
|
2156
2175
|
};
|
|
2157
2176
|
student: {
|
|
2158
2177
|
id: string;
|
|
@@ -2254,6 +2273,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2254
2273
|
teacherId: string;
|
|
2255
2274
|
inProgress: boolean;
|
|
2256
2275
|
order: number | null;
|
|
2276
|
+
worksheetId: string | null;
|
|
2257
2277
|
};
|
|
2258
2278
|
};
|
|
2259
2279
|
meta: object;
|
|
@@ -2305,6 +2325,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2305
2325
|
teacherId: string;
|
|
2306
2326
|
inProgress: boolean;
|
|
2307
2327
|
order: number | null;
|
|
2328
|
+
worksheetId: string | null;
|
|
2308
2329
|
};
|
|
2309
2330
|
};
|
|
2310
2331
|
meta: object;
|
|
@@ -2432,6 +2453,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2432
2453
|
teacherId: string;
|
|
2433
2454
|
inProgress: boolean;
|
|
2434
2455
|
order: number | null;
|
|
2456
|
+
worksheetId: string | null;
|
|
2435
2457
|
};
|
|
2436
2458
|
meta: object;
|
|
2437
2459
|
}>;
|
|
@@ -2523,6 +2545,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2523
2545
|
teacherId: string;
|
|
2524
2546
|
inProgress: boolean;
|
|
2525
2547
|
order: number | null;
|
|
2548
|
+
worksheetId: string | null;
|
|
2526
2549
|
};
|
|
2527
2550
|
meta: object;
|
|
2528
2551
|
}>;
|
|
@@ -2615,6 +2638,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2615
2638
|
teacherId: string;
|
|
2616
2639
|
inProgress: boolean;
|
|
2617
2640
|
order: number | null;
|
|
2641
|
+
worksheetId: string | null;
|
|
2618
2642
|
};
|
|
2619
2643
|
meta: object;
|
|
2620
2644
|
}>;
|
|
@@ -2706,6 +2730,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2706
2730
|
teacherId: string;
|
|
2707
2731
|
inProgress: boolean;
|
|
2708
2732
|
order: number | null;
|
|
2733
|
+
worksheetId: string | null;
|
|
2709
2734
|
};
|
|
2710
2735
|
meta: object;
|
|
2711
2736
|
}>;
|
|
@@ -3278,6 +3303,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3278
3303
|
teacherId: string;
|
|
3279
3304
|
inProgress: boolean;
|
|
3280
3305
|
order: number | null;
|
|
3306
|
+
worksheetId: string | null;
|
|
3281
3307
|
};
|
|
3282
3308
|
};
|
|
3283
3309
|
meta: object;
|
|
@@ -3322,6 +3348,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3322
3348
|
teacherId: string;
|
|
3323
3349
|
inProgress: boolean;
|
|
3324
3350
|
order: number | null;
|
|
3351
|
+
worksheetId: string | null;
|
|
3325
3352
|
};
|
|
3326
3353
|
};
|
|
3327
3354
|
meta: object;
|
|
@@ -4658,6 +4685,366 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4658
4685
|
meta: object;
|
|
4659
4686
|
}>;
|
|
4660
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
|
+
createdAt: Date;
|
|
4723
|
+
worksheetId: string;
|
|
4724
|
+
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4725
|
+
updatedAt: Date;
|
|
4726
|
+
question: string;
|
|
4727
|
+
answer: string;
|
|
4728
|
+
}[];
|
|
4729
|
+
} & {
|
|
4730
|
+
id: string;
|
|
4731
|
+
name: string;
|
|
4732
|
+
classId: string;
|
|
4733
|
+
createdAt: Date;
|
|
4734
|
+
updatedAt: Date;
|
|
4735
|
+
};
|
|
4736
|
+
meta: object;
|
|
4737
|
+
}>;
|
|
4738
|
+
listWorksheets: import("@trpc/server").TRPCQueryProcedure<{
|
|
4739
|
+
input: {
|
|
4740
|
+
classId: string;
|
|
4741
|
+
};
|
|
4742
|
+
output: {
|
|
4743
|
+
questionCount: number;
|
|
4744
|
+
questions: {
|
|
4745
|
+
id: string;
|
|
4746
|
+
}[];
|
|
4747
|
+
id: string;
|
|
4748
|
+
name: string;
|
|
4749
|
+
classId: string;
|
|
4750
|
+
createdAt: Date;
|
|
4751
|
+
updatedAt: Date;
|
|
4752
|
+
}[];
|
|
4753
|
+
meta: object;
|
|
4754
|
+
}>;
|
|
4755
|
+
updateWorksheet: import("@trpc/server").TRPCMutationProcedure<{
|
|
4756
|
+
input: {
|
|
4757
|
+
worksheetId: string;
|
|
4758
|
+
name?: string | undefined;
|
|
4759
|
+
};
|
|
4760
|
+
output: {
|
|
4761
|
+
id: string;
|
|
4762
|
+
name: string;
|
|
4763
|
+
classId: string;
|
|
4764
|
+
createdAt: Date;
|
|
4765
|
+
updatedAt: Date;
|
|
4766
|
+
};
|
|
4767
|
+
meta: object;
|
|
4768
|
+
}>;
|
|
4769
|
+
deleteWorksheet: import("@trpc/server").TRPCMutationProcedure<{
|
|
4770
|
+
input: {
|
|
4771
|
+
worksheetId: string;
|
|
4772
|
+
};
|
|
4773
|
+
output: {
|
|
4774
|
+
id: string;
|
|
4775
|
+
name: string;
|
|
4776
|
+
classId: string;
|
|
4777
|
+
createdAt: Date;
|
|
4778
|
+
updatedAt: Date;
|
|
4779
|
+
};
|
|
4780
|
+
meta: object;
|
|
4781
|
+
}>;
|
|
4782
|
+
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
4783
|
+
input: {
|
|
4784
|
+
name: string;
|
|
4785
|
+
classId: string;
|
|
4786
|
+
};
|
|
4787
|
+
output: {
|
|
4788
|
+
id: string;
|
|
4789
|
+
name: string;
|
|
4790
|
+
classId: string;
|
|
4791
|
+
createdAt: Date;
|
|
4792
|
+
updatedAt: Date;
|
|
4793
|
+
};
|
|
4794
|
+
meta: object;
|
|
4795
|
+
}>;
|
|
4796
|
+
addQuestion: import("@trpc/server").TRPCMutationProcedure<{
|
|
4797
|
+
input: {
|
|
4798
|
+
type: "ESSAY" | "MULTIPLE_CHOICE" | "TRUE_FALSE" | "SHORT_ANSWER" | "LONG_ANSWER" | "MATH_EXPRESSION";
|
|
4799
|
+
worksheetId: string;
|
|
4800
|
+
question: string;
|
|
4801
|
+
answer: string;
|
|
4802
|
+
markScheme?: any;
|
|
4803
|
+
};
|
|
4804
|
+
output: {
|
|
4805
|
+
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
4806
|
+
id: string;
|
|
4807
|
+
createdAt: Date;
|
|
4808
|
+
worksheetId: string;
|
|
4809
|
+
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4810
|
+
updatedAt: Date;
|
|
4811
|
+
question: string;
|
|
4812
|
+
answer: string;
|
|
4813
|
+
};
|
|
4814
|
+
meta: object;
|
|
4815
|
+
}>;
|
|
4816
|
+
updateQuestion: import("@trpc/server").TRPCMutationProcedure<{
|
|
4817
|
+
input: {
|
|
4818
|
+
worksheetId: string;
|
|
4819
|
+
questionId: string;
|
|
4820
|
+
type?: "ESSAY" | "MULTIPLE_CHOICE" | "TRUE_FALSE" | "SHORT_ANSWER" | "LONG_ANSWER" | "MATH_EXPRESSION" | undefined;
|
|
4821
|
+
markScheme?: any;
|
|
4822
|
+
question?: string | undefined;
|
|
4823
|
+
answer?: string | undefined;
|
|
4824
|
+
};
|
|
4825
|
+
output: {
|
|
4826
|
+
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
4827
|
+
id: string;
|
|
4828
|
+
createdAt: Date;
|
|
4829
|
+
worksheetId: string;
|
|
4830
|
+
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4831
|
+
updatedAt: Date;
|
|
4832
|
+
question: string;
|
|
4833
|
+
answer: string;
|
|
4834
|
+
};
|
|
4835
|
+
meta: object;
|
|
4836
|
+
}>;
|
|
4837
|
+
deleteQuestion: import("@trpc/server").TRPCMutationProcedure<{
|
|
4838
|
+
input: {
|
|
4839
|
+
worksheetId: string;
|
|
4840
|
+
questionId: string;
|
|
4841
|
+
};
|
|
4842
|
+
output: {
|
|
4843
|
+
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
4844
|
+
id: string;
|
|
4845
|
+
createdAt: Date;
|
|
4846
|
+
worksheetId: string;
|
|
4847
|
+
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4848
|
+
updatedAt: Date;
|
|
4849
|
+
question: string;
|
|
4850
|
+
answer: string;
|
|
4851
|
+
};
|
|
4852
|
+
meta: object;
|
|
4853
|
+
}>;
|
|
4854
|
+
getWorksheetSubmission: import("@trpc/server").TRPCQueryProcedure<{
|
|
4855
|
+
input: {
|
|
4856
|
+
submissionId: string;
|
|
4857
|
+
worksheetId: string;
|
|
4858
|
+
};
|
|
4859
|
+
output: ({
|
|
4860
|
+
responses: {
|
|
4861
|
+
id: string;
|
|
4862
|
+
feedback: string | null;
|
|
4863
|
+
studentId: string;
|
|
4864
|
+
createdAt: Date;
|
|
4865
|
+
updatedAt: Date;
|
|
4866
|
+
questionId: string;
|
|
4867
|
+
response: string;
|
|
4868
|
+
isCorrect: boolean;
|
|
4869
|
+
studentWorksheetResponseId: string | null;
|
|
4870
|
+
}[];
|
|
4871
|
+
} & {
|
|
4872
|
+
id: string;
|
|
4873
|
+
submissionId: string | null;
|
|
4874
|
+
studentId: string;
|
|
4875
|
+
createdAt: Date;
|
|
4876
|
+
worksheetId: string;
|
|
4877
|
+
updatedAt: Date;
|
|
4878
|
+
submittedAt: Date | null;
|
|
4879
|
+
submitted: boolean;
|
|
4880
|
+
})[];
|
|
4881
|
+
meta: object;
|
|
4882
|
+
}>;
|
|
4883
|
+
answerQuestion: import("@trpc/server").TRPCMutationProcedure<{
|
|
4884
|
+
input: {
|
|
4885
|
+
questionId: string;
|
|
4886
|
+
worksheetResponseId: string;
|
|
4887
|
+
response: string;
|
|
4888
|
+
};
|
|
4889
|
+
output: ({
|
|
4890
|
+
responses: {
|
|
4891
|
+
id: string;
|
|
4892
|
+
feedback: string | null;
|
|
4893
|
+
studentId: string;
|
|
4894
|
+
createdAt: Date;
|
|
4895
|
+
updatedAt: Date;
|
|
4896
|
+
questionId: string;
|
|
4897
|
+
response: string;
|
|
4898
|
+
isCorrect: boolean;
|
|
4899
|
+
studentWorksheetResponseId: string | null;
|
|
4900
|
+
}[];
|
|
4901
|
+
} & {
|
|
4902
|
+
id: string;
|
|
4903
|
+
submissionId: string | null;
|
|
4904
|
+
studentId: string;
|
|
4905
|
+
createdAt: Date;
|
|
4906
|
+
worksheetId: string;
|
|
4907
|
+
updatedAt: Date;
|
|
4908
|
+
submittedAt: Date | null;
|
|
4909
|
+
submitted: boolean;
|
|
4910
|
+
}) | null;
|
|
4911
|
+
meta: object;
|
|
4912
|
+
}>;
|
|
4913
|
+
submitWorksheet: import("@trpc/server").TRPCMutationProcedure<{
|
|
4914
|
+
input: {
|
|
4915
|
+
worksheetResponseId: string;
|
|
4916
|
+
};
|
|
4917
|
+
output: {
|
|
4918
|
+
responses: {
|
|
4919
|
+
id: string;
|
|
4920
|
+
feedback: string | null;
|
|
4921
|
+
studentId: string;
|
|
4922
|
+
createdAt: Date;
|
|
4923
|
+
updatedAt: Date;
|
|
4924
|
+
questionId: string;
|
|
4925
|
+
response: string;
|
|
4926
|
+
isCorrect: boolean;
|
|
4927
|
+
studentWorksheetResponseId: string | null;
|
|
4928
|
+
}[];
|
|
4929
|
+
} & {
|
|
4930
|
+
id: string;
|
|
4931
|
+
submissionId: string | null;
|
|
4932
|
+
studentId: string;
|
|
4933
|
+
createdAt: Date;
|
|
4934
|
+
worksheetId: string;
|
|
4935
|
+
updatedAt: Date;
|
|
4936
|
+
submittedAt: Date | null;
|
|
4937
|
+
submitted: boolean;
|
|
4938
|
+
};
|
|
4939
|
+
meta: object;
|
|
4940
|
+
}>;
|
|
4941
|
+
getOrCreateWorksheetResponse: import("@trpc/server").TRPCMutationProcedure<{
|
|
4942
|
+
input: {
|
|
4943
|
+
studentId: string;
|
|
4944
|
+
worksheetId: string;
|
|
4945
|
+
};
|
|
4946
|
+
output: {
|
|
4947
|
+
responses: ({
|
|
4948
|
+
question: {
|
|
4949
|
+
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
4950
|
+
id: string;
|
|
4951
|
+
createdAt: Date;
|
|
4952
|
+
worksheetId: string;
|
|
4953
|
+
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4954
|
+
updatedAt: Date;
|
|
4955
|
+
question: string;
|
|
4956
|
+
answer: string;
|
|
4957
|
+
};
|
|
4958
|
+
} & {
|
|
4959
|
+
id: string;
|
|
4960
|
+
feedback: string | null;
|
|
4961
|
+
studentId: string;
|
|
4962
|
+
createdAt: Date;
|
|
4963
|
+
updatedAt: Date;
|
|
4964
|
+
questionId: string;
|
|
4965
|
+
response: string;
|
|
4966
|
+
isCorrect: boolean;
|
|
4967
|
+
studentWorksheetResponseId: string | null;
|
|
4968
|
+
})[];
|
|
4969
|
+
} & {
|
|
4970
|
+
id: string;
|
|
4971
|
+
submissionId: string | null;
|
|
4972
|
+
studentId: string;
|
|
4973
|
+
createdAt: Date;
|
|
4974
|
+
worksheetId: string;
|
|
4975
|
+
updatedAt: Date;
|
|
4976
|
+
submittedAt: Date | null;
|
|
4977
|
+
submitted: boolean;
|
|
4978
|
+
};
|
|
4979
|
+
meta: object;
|
|
4980
|
+
}>;
|
|
4981
|
+
getWorksheetResponses: import("@trpc/server").TRPCQueryProcedure<{
|
|
4982
|
+
input: {
|
|
4983
|
+
worksheetId: string;
|
|
4984
|
+
};
|
|
4985
|
+
output: ({
|
|
4986
|
+
student: {
|
|
4987
|
+
id: string;
|
|
4988
|
+
username: string;
|
|
4989
|
+
profile: {
|
|
4990
|
+
displayName: string | null;
|
|
4991
|
+
profilePicture: string | null;
|
|
4992
|
+
} | null;
|
|
4993
|
+
};
|
|
4994
|
+
responses: ({
|
|
4995
|
+
question: {
|
|
4996
|
+
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
4997
|
+
id: string;
|
|
4998
|
+
createdAt: Date;
|
|
4999
|
+
worksheetId: string;
|
|
5000
|
+
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
5001
|
+
updatedAt: Date;
|
|
5002
|
+
question: string;
|
|
5003
|
+
answer: string;
|
|
5004
|
+
};
|
|
5005
|
+
} & {
|
|
5006
|
+
id: string;
|
|
5007
|
+
feedback: string | null;
|
|
5008
|
+
studentId: string;
|
|
5009
|
+
createdAt: Date;
|
|
5010
|
+
updatedAt: Date;
|
|
5011
|
+
questionId: string;
|
|
5012
|
+
response: string;
|
|
5013
|
+
isCorrect: boolean;
|
|
5014
|
+
studentWorksheetResponseId: string | null;
|
|
5015
|
+
})[];
|
|
5016
|
+
} & {
|
|
5017
|
+
id: string;
|
|
5018
|
+
submissionId: string | null;
|
|
5019
|
+
studentId: string;
|
|
5020
|
+
createdAt: Date;
|
|
5021
|
+
worksheetId: string;
|
|
5022
|
+
updatedAt: Date;
|
|
5023
|
+
submittedAt: Date | null;
|
|
5024
|
+
submitted: boolean;
|
|
5025
|
+
})[];
|
|
5026
|
+
meta: object;
|
|
5027
|
+
}>;
|
|
5028
|
+
gradeAnswer: import("@trpc/server").TRPCMutationProcedure<{
|
|
5029
|
+
input: {
|
|
5030
|
+
responseId: string;
|
|
5031
|
+
isCorrect: boolean;
|
|
5032
|
+
feedback?: string | undefined;
|
|
5033
|
+
};
|
|
5034
|
+
output: {
|
|
5035
|
+
id: string;
|
|
5036
|
+
feedback: string | null;
|
|
5037
|
+
studentId: string;
|
|
5038
|
+
createdAt: Date;
|
|
5039
|
+
updatedAt: Date;
|
|
5040
|
+
questionId: string;
|
|
5041
|
+
response: string;
|
|
5042
|
+
isCorrect: boolean;
|
|
5043
|
+
studentWorksheetResponseId: string | null;
|
|
5044
|
+
};
|
|
5045
|
+
meta: object;
|
|
5046
|
+
}>;
|
|
5047
|
+
}>>;
|
|
4661
5048
|
}>>;
|
|
4662
5049
|
export type AppRouter = typeof appRouter;
|
|
4663
5050
|
export type RouterInputs = inferRouterInputs<AppRouter>;
|
|
@@ -4762,6 +5149,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
4762
5149
|
submissions: {
|
|
4763
5150
|
id: string;
|
|
4764
5151
|
studentId: string;
|
|
5152
|
+
gradeReceived: number | null;
|
|
5153
|
+
rubricState: string | null;
|
|
5154
|
+
teacherComments: string | null;
|
|
4765
5155
|
submittedAt: Date | null;
|
|
4766
5156
|
submitted: boolean | null;
|
|
4767
5157
|
returned: boolean | null;
|
|
@@ -4801,6 +5191,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
4801
5191
|
} | null;
|
|
4802
5192
|
};
|
|
4803
5193
|
createdAt: Date;
|
|
5194
|
+
modifiedAt: Date | null;
|
|
4804
5195
|
}[];
|
|
4805
5196
|
students: {
|
|
4806
5197
|
id: string;
|
|
@@ -5233,6 +5624,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5233
5624
|
teacherId: string;
|
|
5234
5625
|
inProgress: boolean;
|
|
5235
5626
|
order: number | null;
|
|
5627
|
+
worksheetId: string | null;
|
|
5236
5628
|
}[];
|
|
5237
5629
|
meta: object;
|
|
5238
5630
|
}>;
|
|
@@ -5271,6 +5663,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5271
5663
|
teacherId: string;
|
|
5272
5664
|
inProgress: boolean;
|
|
5273
5665
|
order: number | null;
|
|
5666
|
+
worksheetId: string | null;
|
|
5274
5667
|
};
|
|
5275
5668
|
meta: object;
|
|
5276
5669
|
}>;
|
|
@@ -5309,6 +5702,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5309
5702
|
teacherId: string;
|
|
5310
5703
|
inProgress: boolean;
|
|
5311
5704
|
order: number | null;
|
|
5705
|
+
worksheetId: string | null;
|
|
5312
5706
|
};
|
|
5313
5707
|
meta: object;
|
|
5314
5708
|
}>;
|
|
@@ -5338,6 +5732,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5338
5732
|
teacherId: string;
|
|
5339
5733
|
inProgress: boolean;
|
|
5340
5734
|
order: number | null;
|
|
5735
|
+
worksheetId: string | null;
|
|
5341
5736
|
};
|
|
5342
5737
|
meta: object;
|
|
5343
5738
|
}>;
|
|
@@ -5371,6 +5766,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5371
5766
|
teacherId: string;
|
|
5372
5767
|
inProgress: boolean;
|
|
5373
5768
|
order: number | null;
|
|
5769
|
+
worksheetId: string | null;
|
|
5374
5770
|
};
|
|
5375
5771
|
meta: object;
|
|
5376
5772
|
}>;
|
|
@@ -5846,6 +6242,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5846
6242
|
teacherId: string;
|
|
5847
6243
|
inProgress: boolean;
|
|
5848
6244
|
order: number | null;
|
|
6245
|
+
worksheetId: string | null;
|
|
5849
6246
|
} | null;
|
|
5850
6247
|
meta: object;
|
|
5851
6248
|
}>;
|
|
@@ -5876,6 +6273,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5876
6273
|
teacherId: string;
|
|
5877
6274
|
inProgress: boolean;
|
|
5878
6275
|
order: number | null;
|
|
6276
|
+
worksheetId: string | null;
|
|
5879
6277
|
} | null;
|
|
5880
6278
|
meta: object;
|
|
5881
6279
|
}>;
|
|
@@ -5906,6 +6304,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5906
6304
|
teacherId: string;
|
|
5907
6305
|
inProgress: boolean;
|
|
5908
6306
|
order: number | null;
|
|
6307
|
+
worksheetId: string | null;
|
|
5909
6308
|
} | null;
|
|
5910
6309
|
meta: object;
|
|
5911
6310
|
}>;
|
|
@@ -6144,6 +6543,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6144
6543
|
teacherId: string;
|
|
6145
6544
|
inProgress: boolean;
|
|
6146
6545
|
order: number | null;
|
|
6546
|
+
worksheetId: string | null;
|
|
6147
6547
|
};
|
|
6148
6548
|
meta: object;
|
|
6149
6549
|
}>;
|
|
@@ -6192,6 +6592,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6192
6592
|
teacherId: string;
|
|
6193
6593
|
inProgress: boolean;
|
|
6194
6594
|
order: number | null;
|
|
6595
|
+
worksheetId: string | null;
|
|
6195
6596
|
};
|
|
6196
6597
|
student: {
|
|
6197
6598
|
id: string;
|
|
@@ -6305,6 +6706,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6305
6706
|
teacherId: string;
|
|
6306
6707
|
inProgress: boolean;
|
|
6307
6708
|
order: number | null;
|
|
6709
|
+
worksheetId: string | null;
|
|
6308
6710
|
};
|
|
6309
6711
|
student: {
|
|
6310
6712
|
id: string;
|
|
@@ -6438,6 +6840,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6438
6840
|
teacherId: string;
|
|
6439
6841
|
inProgress: boolean;
|
|
6440
6842
|
order: number | null;
|
|
6843
|
+
worksheetId: string | null;
|
|
6441
6844
|
};
|
|
6442
6845
|
student: {
|
|
6443
6846
|
id: string;
|
|
@@ -6579,6 +6982,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6579
6982
|
teacherId: string;
|
|
6580
6983
|
inProgress: boolean;
|
|
6581
6984
|
order: number | null;
|
|
6985
|
+
worksheetId: string | null;
|
|
6582
6986
|
};
|
|
6583
6987
|
student: {
|
|
6584
6988
|
id: string;
|
|
@@ -6673,6 +7077,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6673
7077
|
teacherId: string;
|
|
6674
7078
|
inProgress: boolean;
|
|
6675
7079
|
order: number | null;
|
|
7080
|
+
worksheetId: string | null;
|
|
6676
7081
|
};
|
|
6677
7082
|
student: {
|
|
6678
7083
|
id: string;
|
|
@@ -6816,6 +7221,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6816
7221
|
teacherId: string;
|
|
6817
7222
|
inProgress: boolean;
|
|
6818
7223
|
order: number | null;
|
|
7224
|
+
worksheetId: string | null;
|
|
6819
7225
|
};
|
|
6820
7226
|
student: {
|
|
6821
7227
|
id: string;
|
|
@@ -6917,6 +7323,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6917
7323
|
teacherId: string;
|
|
6918
7324
|
inProgress: boolean;
|
|
6919
7325
|
order: number | null;
|
|
7326
|
+
worksheetId: string | null;
|
|
6920
7327
|
};
|
|
6921
7328
|
};
|
|
6922
7329
|
meta: object;
|
|
@@ -6968,6 +7375,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6968
7375
|
teacherId: string;
|
|
6969
7376
|
inProgress: boolean;
|
|
6970
7377
|
order: number | null;
|
|
7378
|
+
worksheetId: string | null;
|
|
6971
7379
|
};
|
|
6972
7380
|
};
|
|
6973
7381
|
meta: object;
|
|
@@ -7095,6 +7503,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
7095
7503
|
teacherId: string;
|
|
7096
7504
|
inProgress: boolean;
|
|
7097
7505
|
order: number | null;
|
|
7506
|
+
worksheetId: string | null;
|
|
7098
7507
|
};
|
|
7099
7508
|
meta: object;
|
|
7100
7509
|
}>;
|
|
@@ -7186,6 +7595,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
7186
7595
|
teacherId: string;
|
|
7187
7596
|
inProgress: boolean;
|
|
7188
7597
|
order: number | null;
|
|
7598
|
+
worksheetId: string | null;
|
|
7189
7599
|
};
|
|
7190
7600
|
meta: object;
|
|
7191
7601
|
}>;
|
|
@@ -7278,6 +7688,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
7278
7688
|
teacherId: string;
|
|
7279
7689
|
inProgress: boolean;
|
|
7280
7690
|
order: number | null;
|
|
7691
|
+
worksheetId: string | null;
|
|
7281
7692
|
};
|
|
7282
7693
|
meta: object;
|
|
7283
7694
|
}>;
|
|
@@ -7369,6 +7780,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
7369
7780
|
teacherId: string;
|
|
7370
7781
|
inProgress: boolean;
|
|
7371
7782
|
order: number | null;
|
|
7783
|
+
worksheetId: string | null;
|
|
7372
7784
|
};
|
|
7373
7785
|
meta: object;
|
|
7374
7786
|
}>;
|
|
@@ -7941,6 +8353,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
7941
8353
|
teacherId: string;
|
|
7942
8354
|
inProgress: boolean;
|
|
7943
8355
|
order: number | null;
|
|
8356
|
+
worksheetId: string | null;
|
|
7944
8357
|
};
|
|
7945
8358
|
};
|
|
7946
8359
|
meta: object;
|
|
@@ -7985,6 +8398,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
7985
8398
|
teacherId: string;
|
|
7986
8399
|
inProgress: boolean;
|
|
7987
8400
|
order: number | null;
|
|
8401
|
+
worksheetId: string | null;
|
|
7988
8402
|
};
|
|
7989
8403
|
};
|
|
7990
8404
|
meta: object;
|
|
@@ -9321,5 +9735,365 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
9321
9735
|
meta: object;
|
|
9322
9736
|
}>;
|
|
9323
9737
|
}>>;
|
|
9738
|
+
worksheet: import("@trpc/server").TRPCBuiltRouter<{
|
|
9739
|
+
ctx: import("../trpc.js").Context;
|
|
9740
|
+
meta: object;
|
|
9741
|
+
errorShape: {
|
|
9742
|
+
data: {
|
|
9743
|
+
zodError: import("zod").typeToFlattenedError<any, string> | null;
|
|
9744
|
+
prismaError: import("../utils/prismaErrorHandler.js").PrismaErrorInfo | null;
|
|
9745
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
9746
|
+
httpStatus: number;
|
|
9747
|
+
path?: string;
|
|
9748
|
+
stack?: string;
|
|
9749
|
+
};
|
|
9750
|
+
message: string;
|
|
9751
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
9752
|
+
};
|
|
9753
|
+
transformer: false;
|
|
9754
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
9755
|
+
getWorksheet: import("@trpc/server").TRPCQueryProcedure<{
|
|
9756
|
+
input: {
|
|
9757
|
+
worksheetId: string;
|
|
9758
|
+
};
|
|
9759
|
+
output: {
|
|
9760
|
+
class: {
|
|
9761
|
+
id: string;
|
|
9762
|
+
schoolId: string | null;
|
|
9763
|
+
name: string;
|
|
9764
|
+
subject: string;
|
|
9765
|
+
color: string | null;
|
|
9766
|
+
section: string;
|
|
9767
|
+
syllabus: string | null;
|
|
9768
|
+
} | null;
|
|
9769
|
+
questions: {
|
|
9770
|
+
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
9771
|
+
id: string;
|
|
9772
|
+
createdAt: Date;
|
|
9773
|
+
worksheetId: string;
|
|
9774
|
+
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
9775
|
+
updatedAt: Date;
|
|
9776
|
+
question: string;
|
|
9777
|
+
answer: string;
|
|
9778
|
+
}[];
|
|
9779
|
+
} & {
|
|
9780
|
+
id: string;
|
|
9781
|
+
name: string;
|
|
9782
|
+
classId: string;
|
|
9783
|
+
createdAt: Date;
|
|
9784
|
+
updatedAt: Date;
|
|
9785
|
+
};
|
|
9786
|
+
meta: object;
|
|
9787
|
+
}>;
|
|
9788
|
+
listWorksheets: import("@trpc/server").TRPCQueryProcedure<{
|
|
9789
|
+
input: {
|
|
9790
|
+
classId: string;
|
|
9791
|
+
};
|
|
9792
|
+
output: {
|
|
9793
|
+
questionCount: number;
|
|
9794
|
+
questions: {
|
|
9795
|
+
id: string;
|
|
9796
|
+
}[];
|
|
9797
|
+
id: string;
|
|
9798
|
+
name: string;
|
|
9799
|
+
classId: string;
|
|
9800
|
+
createdAt: Date;
|
|
9801
|
+
updatedAt: Date;
|
|
9802
|
+
}[];
|
|
9803
|
+
meta: object;
|
|
9804
|
+
}>;
|
|
9805
|
+
updateWorksheet: import("@trpc/server").TRPCMutationProcedure<{
|
|
9806
|
+
input: {
|
|
9807
|
+
worksheetId: string;
|
|
9808
|
+
name?: string | undefined;
|
|
9809
|
+
};
|
|
9810
|
+
output: {
|
|
9811
|
+
id: string;
|
|
9812
|
+
name: string;
|
|
9813
|
+
classId: string;
|
|
9814
|
+
createdAt: Date;
|
|
9815
|
+
updatedAt: Date;
|
|
9816
|
+
};
|
|
9817
|
+
meta: object;
|
|
9818
|
+
}>;
|
|
9819
|
+
deleteWorksheet: import("@trpc/server").TRPCMutationProcedure<{
|
|
9820
|
+
input: {
|
|
9821
|
+
worksheetId: string;
|
|
9822
|
+
};
|
|
9823
|
+
output: {
|
|
9824
|
+
id: string;
|
|
9825
|
+
name: string;
|
|
9826
|
+
classId: string;
|
|
9827
|
+
createdAt: Date;
|
|
9828
|
+
updatedAt: Date;
|
|
9829
|
+
};
|
|
9830
|
+
meta: object;
|
|
9831
|
+
}>;
|
|
9832
|
+
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
9833
|
+
input: {
|
|
9834
|
+
name: string;
|
|
9835
|
+
classId: string;
|
|
9836
|
+
};
|
|
9837
|
+
output: {
|
|
9838
|
+
id: string;
|
|
9839
|
+
name: string;
|
|
9840
|
+
classId: string;
|
|
9841
|
+
createdAt: Date;
|
|
9842
|
+
updatedAt: Date;
|
|
9843
|
+
};
|
|
9844
|
+
meta: object;
|
|
9845
|
+
}>;
|
|
9846
|
+
addQuestion: import("@trpc/server").TRPCMutationProcedure<{
|
|
9847
|
+
input: {
|
|
9848
|
+
type: "ESSAY" | "MULTIPLE_CHOICE" | "TRUE_FALSE" | "SHORT_ANSWER" | "LONG_ANSWER" | "MATH_EXPRESSION";
|
|
9849
|
+
worksheetId: string;
|
|
9850
|
+
question: string;
|
|
9851
|
+
answer: string;
|
|
9852
|
+
markScheme?: any;
|
|
9853
|
+
};
|
|
9854
|
+
output: {
|
|
9855
|
+
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
9856
|
+
id: string;
|
|
9857
|
+
createdAt: Date;
|
|
9858
|
+
worksheetId: string;
|
|
9859
|
+
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
9860
|
+
updatedAt: Date;
|
|
9861
|
+
question: string;
|
|
9862
|
+
answer: string;
|
|
9863
|
+
};
|
|
9864
|
+
meta: object;
|
|
9865
|
+
}>;
|
|
9866
|
+
updateQuestion: import("@trpc/server").TRPCMutationProcedure<{
|
|
9867
|
+
input: {
|
|
9868
|
+
worksheetId: string;
|
|
9869
|
+
questionId: string;
|
|
9870
|
+
type?: "ESSAY" | "MULTIPLE_CHOICE" | "TRUE_FALSE" | "SHORT_ANSWER" | "LONG_ANSWER" | "MATH_EXPRESSION" | undefined;
|
|
9871
|
+
markScheme?: any;
|
|
9872
|
+
question?: string | undefined;
|
|
9873
|
+
answer?: string | undefined;
|
|
9874
|
+
};
|
|
9875
|
+
output: {
|
|
9876
|
+
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
9877
|
+
id: string;
|
|
9878
|
+
createdAt: Date;
|
|
9879
|
+
worksheetId: string;
|
|
9880
|
+
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
9881
|
+
updatedAt: Date;
|
|
9882
|
+
question: string;
|
|
9883
|
+
answer: string;
|
|
9884
|
+
};
|
|
9885
|
+
meta: object;
|
|
9886
|
+
}>;
|
|
9887
|
+
deleteQuestion: import("@trpc/server").TRPCMutationProcedure<{
|
|
9888
|
+
input: {
|
|
9889
|
+
worksheetId: string;
|
|
9890
|
+
questionId: string;
|
|
9891
|
+
};
|
|
9892
|
+
output: {
|
|
9893
|
+
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
9894
|
+
id: string;
|
|
9895
|
+
createdAt: Date;
|
|
9896
|
+
worksheetId: string;
|
|
9897
|
+
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
9898
|
+
updatedAt: Date;
|
|
9899
|
+
question: string;
|
|
9900
|
+
answer: string;
|
|
9901
|
+
};
|
|
9902
|
+
meta: object;
|
|
9903
|
+
}>;
|
|
9904
|
+
getWorksheetSubmission: import("@trpc/server").TRPCQueryProcedure<{
|
|
9905
|
+
input: {
|
|
9906
|
+
submissionId: string;
|
|
9907
|
+
worksheetId: string;
|
|
9908
|
+
};
|
|
9909
|
+
output: ({
|
|
9910
|
+
responses: {
|
|
9911
|
+
id: string;
|
|
9912
|
+
feedback: string | null;
|
|
9913
|
+
studentId: string;
|
|
9914
|
+
createdAt: Date;
|
|
9915
|
+
updatedAt: Date;
|
|
9916
|
+
questionId: string;
|
|
9917
|
+
response: string;
|
|
9918
|
+
isCorrect: boolean;
|
|
9919
|
+
studentWorksheetResponseId: string | null;
|
|
9920
|
+
}[];
|
|
9921
|
+
} & {
|
|
9922
|
+
id: string;
|
|
9923
|
+
submissionId: string | null;
|
|
9924
|
+
studentId: string;
|
|
9925
|
+
createdAt: Date;
|
|
9926
|
+
worksheetId: string;
|
|
9927
|
+
updatedAt: Date;
|
|
9928
|
+
submittedAt: Date | null;
|
|
9929
|
+
submitted: boolean;
|
|
9930
|
+
})[];
|
|
9931
|
+
meta: object;
|
|
9932
|
+
}>;
|
|
9933
|
+
answerQuestion: import("@trpc/server").TRPCMutationProcedure<{
|
|
9934
|
+
input: {
|
|
9935
|
+
questionId: string;
|
|
9936
|
+
worksheetResponseId: string;
|
|
9937
|
+
response: string;
|
|
9938
|
+
};
|
|
9939
|
+
output: ({
|
|
9940
|
+
responses: {
|
|
9941
|
+
id: string;
|
|
9942
|
+
feedback: string | null;
|
|
9943
|
+
studentId: string;
|
|
9944
|
+
createdAt: Date;
|
|
9945
|
+
updatedAt: Date;
|
|
9946
|
+
questionId: string;
|
|
9947
|
+
response: string;
|
|
9948
|
+
isCorrect: boolean;
|
|
9949
|
+
studentWorksheetResponseId: string | null;
|
|
9950
|
+
}[];
|
|
9951
|
+
} & {
|
|
9952
|
+
id: string;
|
|
9953
|
+
submissionId: string | null;
|
|
9954
|
+
studentId: string;
|
|
9955
|
+
createdAt: Date;
|
|
9956
|
+
worksheetId: string;
|
|
9957
|
+
updatedAt: Date;
|
|
9958
|
+
submittedAt: Date | null;
|
|
9959
|
+
submitted: boolean;
|
|
9960
|
+
}) | null;
|
|
9961
|
+
meta: object;
|
|
9962
|
+
}>;
|
|
9963
|
+
submitWorksheet: import("@trpc/server").TRPCMutationProcedure<{
|
|
9964
|
+
input: {
|
|
9965
|
+
worksheetResponseId: string;
|
|
9966
|
+
};
|
|
9967
|
+
output: {
|
|
9968
|
+
responses: {
|
|
9969
|
+
id: string;
|
|
9970
|
+
feedback: string | null;
|
|
9971
|
+
studentId: string;
|
|
9972
|
+
createdAt: Date;
|
|
9973
|
+
updatedAt: Date;
|
|
9974
|
+
questionId: string;
|
|
9975
|
+
response: string;
|
|
9976
|
+
isCorrect: boolean;
|
|
9977
|
+
studentWorksheetResponseId: string | null;
|
|
9978
|
+
}[];
|
|
9979
|
+
} & {
|
|
9980
|
+
id: string;
|
|
9981
|
+
submissionId: string | null;
|
|
9982
|
+
studentId: string;
|
|
9983
|
+
createdAt: Date;
|
|
9984
|
+
worksheetId: string;
|
|
9985
|
+
updatedAt: Date;
|
|
9986
|
+
submittedAt: Date | null;
|
|
9987
|
+
submitted: boolean;
|
|
9988
|
+
};
|
|
9989
|
+
meta: object;
|
|
9990
|
+
}>;
|
|
9991
|
+
getOrCreateWorksheetResponse: import("@trpc/server").TRPCMutationProcedure<{
|
|
9992
|
+
input: {
|
|
9993
|
+
studentId: string;
|
|
9994
|
+
worksheetId: string;
|
|
9995
|
+
};
|
|
9996
|
+
output: {
|
|
9997
|
+
responses: ({
|
|
9998
|
+
question: {
|
|
9999
|
+
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
10000
|
+
id: string;
|
|
10001
|
+
createdAt: Date;
|
|
10002
|
+
worksheetId: string;
|
|
10003
|
+
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10004
|
+
updatedAt: Date;
|
|
10005
|
+
question: string;
|
|
10006
|
+
answer: string;
|
|
10007
|
+
};
|
|
10008
|
+
} & {
|
|
10009
|
+
id: string;
|
|
10010
|
+
feedback: string | null;
|
|
10011
|
+
studentId: string;
|
|
10012
|
+
createdAt: Date;
|
|
10013
|
+
updatedAt: Date;
|
|
10014
|
+
questionId: string;
|
|
10015
|
+
response: string;
|
|
10016
|
+
isCorrect: boolean;
|
|
10017
|
+
studentWorksheetResponseId: string | null;
|
|
10018
|
+
})[];
|
|
10019
|
+
} & {
|
|
10020
|
+
id: string;
|
|
10021
|
+
submissionId: string | null;
|
|
10022
|
+
studentId: string;
|
|
10023
|
+
createdAt: Date;
|
|
10024
|
+
worksheetId: string;
|
|
10025
|
+
updatedAt: Date;
|
|
10026
|
+
submittedAt: Date | null;
|
|
10027
|
+
submitted: boolean;
|
|
10028
|
+
};
|
|
10029
|
+
meta: object;
|
|
10030
|
+
}>;
|
|
10031
|
+
getWorksheetResponses: import("@trpc/server").TRPCQueryProcedure<{
|
|
10032
|
+
input: {
|
|
10033
|
+
worksheetId: string;
|
|
10034
|
+
};
|
|
10035
|
+
output: ({
|
|
10036
|
+
student: {
|
|
10037
|
+
id: string;
|
|
10038
|
+
username: string;
|
|
10039
|
+
profile: {
|
|
10040
|
+
displayName: string | null;
|
|
10041
|
+
profilePicture: string | null;
|
|
10042
|
+
} | null;
|
|
10043
|
+
};
|
|
10044
|
+
responses: ({
|
|
10045
|
+
question: {
|
|
10046
|
+
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
10047
|
+
id: string;
|
|
10048
|
+
createdAt: Date;
|
|
10049
|
+
worksheetId: string;
|
|
10050
|
+
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10051
|
+
updatedAt: Date;
|
|
10052
|
+
question: string;
|
|
10053
|
+
answer: string;
|
|
10054
|
+
};
|
|
10055
|
+
} & {
|
|
10056
|
+
id: string;
|
|
10057
|
+
feedback: string | null;
|
|
10058
|
+
studentId: string;
|
|
10059
|
+
createdAt: Date;
|
|
10060
|
+
updatedAt: Date;
|
|
10061
|
+
questionId: string;
|
|
10062
|
+
response: string;
|
|
10063
|
+
isCorrect: boolean;
|
|
10064
|
+
studentWorksheetResponseId: string | null;
|
|
10065
|
+
})[];
|
|
10066
|
+
} & {
|
|
10067
|
+
id: string;
|
|
10068
|
+
submissionId: string | null;
|
|
10069
|
+
studentId: string;
|
|
10070
|
+
createdAt: Date;
|
|
10071
|
+
worksheetId: string;
|
|
10072
|
+
updatedAt: Date;
|
|
10073
|
+
submittedAt: Date | null;
|
|
10074
|
+
submitted: boolean;
|
|
10075
|
+
})[];
|
|
10076
|
+
meta: object;
|
|
10077
|
+
}>;
|
|
10078
|
+
gradeAnswer: import("@trpc/server").TRPCMutationProcedure<{
|
|
10079
|
+
input: {
|
|
10080
|
+
responseId: string;
|
|
10081
|
+
isCorrect: boolean;
|
|
10082
|
+
feedback?: string | undefined;
|
|
10083
|
+
};
|
|
10084
|
+
output: {
|
|
10085
|
+
id: string;
|
|
10086
|
+
feedback: string | null;
|
|
10087
|
+
studentId: string;
|
|
10088
|
+
createdAt: Date;
|
|
10089
|
+
updatedAt: Date;
|
|
10090
|
+
questionId: string;
|
|
10091
|
+
response: string;
|
|
10092
|
+
isCorrect: boolean;
|
|
10093
|
+
studentWorksheetResponseId: string | null;
|
|
10094
|
+
};
|
|
10095
|
+
meta: object;
|
|
10096
|
+
}>;
|
|
10097
|
+
}>>;
|
|
9324
10098
|
}>>;
|
|
9325
10099
|
//# sourceMappingURL=_app.d.ts.map
|